@fluid-topics/ft-viewer 2.2.37 → 2.2.38
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-viewer.light.js +135 -135
- package/build/ft-viewer.min.js +166 -166
- package/package.json +17 -17
package/build/ft-viewer.light.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";(()=>{var ch=Object.create;var gl=Object.defineProperty;var dh=Object.getOwnPropertyDescriptor;var uh=Object.getOwnPropertyNames;var ph=Object.getPrototypeOf,fh=Object.prototype.hasOwnProperty;var sr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var hh=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of uh(e))!fh.call(t,n)&&n!==i&&gl(t,n,{get:()=>e[n],enumerable:!(r=dh(e,n))||r.enumerable});return t};var c=(t,e,i)=>(i=t!=null?ch(ph(t)):{},hh(e||!t||!t.__esModule?gl(i,"default",{value:t,enumerable:!0}):i,t));var h=sr((ag,yl)=>{yl.exports=ftGlobals.wcUtils});var $=sr((lg,vl)=>{vl.exports=ftGlobals.litDecorators});var S=sr((Ig,wl)=>{wl.exports=ftGlobals.lit});var br=sr((xb,Td)=>{Td.exports=ftGlobals.litRepeat});var Va=sr((Jb,lu)=>{lu.exports=ftGlobals.litUnsafeHTML});var ut=sr((uE,Mu)=>{Mu.exports=ftGlobals.litClassMap});var sh=c(h());var bl=c(h()),Sl=c($());var Xt=class extends Event{constructor(e,i,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i,this.callback=r,this.subscribe=n??!1}};var ar=class{constructor(e,i,r,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,s)),this.unsubscribe=s},this.host=e,i.context!==void 0){let o=i;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=i,this.callback=r,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Xt(this.context,this.host,this.t,this.subscribe))}};var Mn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,i=!1){let r=i||!Object.is(e,this.o);this.o=e,r&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[i,{disposer:r}]of this.subscriptions)i(this.o,r)},e!==void 0&&(this.value=e)}addCallback(e,i,r){if(!r)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:i});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Gs=class extends Event{constructor(e,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i}},lr=class extends Mn{constructor(e,i,r){super(i.context!==void 0?i.initialValue:r),this.onContextRequest=n=>{if(n.context!==this.context)return;let o=n.contextTarget??n.composedPath()[0];o!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,o,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let o=new Set;for(let[s,{consumerHost:a}]of this.subscriptions)o.has(s)||(o.add(s),a.dispatchEvent(new Xt(this.context,a,s,!0)));n.stopPropagation()},this.host=e,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Gs(this.context,this.host))}};var Gr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let i=this.pendingContextRequests.get(e.context);if(i===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:r}=i;for(let{elementRef:n,callbackRef:o}of r){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Xt(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let i=e.contextTarget??e.composedPath()[0],r=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(i);o===void 0&&n.callbacks.set(i,o=new WeakSet),o.has(r)||(o.add(r),n.requests.push({elementRef:new WeakRef(i),callbackRef:new WeakRef(r)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};function qr({context:t}){return(e,i)=>{let r=new WeakMap;if(typeof i=="object")return{get(){return e.get.call(this)},set(n){return r.get(this).setValue(n),e.set.call(this,n)},init(n){return r.set(this,new lr(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{r.set(s,new lr(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,i),o;if(n===void 0){let s=new WeakMap;o={get(){return s.get(this)},set(a){r.get(this).setValue(a),s.set(this,a)},configurable:!0,enumerable:!0}}else{let s=n.set;o={...n,set(a){r.get(this).setValue(a),s?.call(this,a)}}}return void Object.defineProperty(e,i,o)}}}function Yr({context:t,subscribe:e}){return(i,r)=>{typeof r=="object"?r.addInitializer((function(){new ar(this,{context:t,callback:n=>{i.set.call(this,n)},subscribe:e})})):i.constructor.addInitializer((n=>{new ar(n,{context:t,callback:o=>{n[r]=o},subscribe:e})}))}}var mh=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},qs="asset-viewer-state-manager",Ft=(0,bl.applyMixinOnce)(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(r){super.willUpdate(r),r.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}get service(){var r;return(r=this.viewerStateManager)===null||r===void 0?void 0:r.service}}return mh([Yr({context:qs,subscribe:!0}),(0,Sl.state)()],e.prototype,"viewerStateManager",void 0),e});var wd=c(S()),xr=c(h());var El=c(h()),gh={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Nn=t=>El.FtReduxStore.get({name:"ft-viewer-"+t,initialState:{documentId:void 0,unstructuredDocument:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0,configuration:void 0,documentRating:void 0,assetRating:void 0,relatives:void 0},reducers:gh});var xd=c(h());var ga=c($());var Al=c($(),1);var Ys=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},yh=t=>({fromAttribute:e=>{if(e==null)return Zr(t);try{return JSON.parse(e)}catch{return Zr(t)}},toAttribute:e=>JSON.stringify(e)});function _l(t,e){return(0,Al.property)({type:Object,converter:yh(t),hasChanged:Xr,...e??{}})}function vh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!cr(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!cr(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!cr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function cr(t,e){try{return vh(t,e)}catch{return!1}}function Xr(t,e){return!cr(t,e)}function Zr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function $n(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var Cl=c($(),1);var Zs=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Xr,attribute:!1,...e};(0,Cl.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var Fn=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Ti=c($(),1);var Un=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Bn=c(S(),1);var Vn=class extends Bn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return(0,Bn.adoptStyles)(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){Ys(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function Tl(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var ur=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Dl,Rl=Symbol("constructorPrototype"),Ol=Symbol("constructorName"),Ll=Symbol("exportpartsDebouncer"),kl=Symbol("dynamicDependenciesLoaded"),dr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dr.eventName="exportparts-updated";var Ut=class extends Vn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dl]=new Un(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[Ll].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ol]=this.constructor.name,this[Rl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ol]&&Object.setPrototypeOf(this,this[Rl])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[kl]||(i[kl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new dr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=Tl(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=f=>f!=null&&f.trim().length>0,d=e.filter(l).map(f=>f.trim());if(d.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(s=(r=f.getAttribute("part"))===null||r===void 0?void 0:r.split(" "))!==null&&s!==void 0?s:[],w=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],T=[...y,...w].filter(l).map(b=>b.trim());for(let b of T)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>d.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};Dl=Ll;ur([(0,Ti.property)()],Ut.prototype,"exportpartsPrefix",void 0);ur([_l([])],Ut.prototype,"exportpartsPrefixes",void 0);ur([(0,Ti.property)({reflect:!0})],Ut.prototype,"exportparts",void 0);ur([(0,Ti.property)()],Ut.prototype,"customStylesheet",void 0);ur([(0,Ti.property)()],Ut.prototype,"elementToFocus",void 0);ur([(0,Ti.state)()],Ut.prototype,"useAdoptedStyleSheets",void 0);function Hn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Jr=Symbol("internalReduxEventsUnsubscribers"),pi=Symbol("internalStoresUnsubscribers"),Ri=Symbol("internalStores"),xh=$n(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ri].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ri].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ri].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ri].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Ri].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ri].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let d=this.getStore(s.store);d&&(s.store?this[pi].has(s.store):this[pi].size>0)&&(this[a]=s.selector(d.getState(),this))}})}subscribeToStore(s,a){var l,d;this[pi].set(s,a.subscribe(()=>this.updateFromStores())),this[Jr].set(s,[]),Hn(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,p)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,p)=>{if(typeof this[p]=="function"&&(!u.store||a.name===u.store)){let f=y=>this[p](y);a.addEventListener(u.eventName,f),this[Jr].get(s).push(()=>a.removeEventListener(u.eventName,f))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[pi].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[pi].has(s)&&this[pi].get(s)(),this[pi].delete(s),(a=this[Jr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Jr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=pi,i=Ri,r=Jr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Il=class extends xh(Ut){};function Re(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 bh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Pl=bh,Xs=()=>Math.random().toString(36).substring(7).split("").join("."),Sh={INIT:`@@redux/INIT${Xs()}`,REPLACE:`@@redux/REPLACE${Xs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xs()}`},zn=Sh;function jn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Js(t,e,i){if(typeof t!="function")throw new Error(Re(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Re(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Re(1));return i(Js)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function d(){s===o&&(s=new Map,o.forEach((b,k)=>{s.set(k,b)}))}function u(){if(l)throw new Error(Re(3));return n}function p(b){if(typeof b!="function")throw new Error(Re(4));if(l)throw new Error(Re(5));let k=!0;d();let H=a++;return s.set(H,b),function(){if(k){if(l)throw new Error(Re(6));k=!1,d(),s.delete(H),o=null}}}function f(b){if(!jn(b))throw new Error(Re(7));if(typeof b.type>"u")throw new Error(Re(8));if(typeof b.type!="string")throw new Error(Re(17));if(l)throw new Error(Re(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(H=>{H()}),b}function y(b){if(typeof b!="function")throw new Error(Re(10));r=b,f({type:zn.REPLACE})}function w(){let b=p;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(Re(11));function H(){let A=k;A.next&&A.next(u())}return H(),{unsubscribe:b(H)}},[Pl](){return this}}}return f({type:zn.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[Pl]:w}}function wh(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:zn.INIT})>"u")throw new Error(Re(12));if(typeof i(void 0,{type:zn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Re(13))})}function Qs(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{wh(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let d=!1,u={};for(let p=0;p<r.length;p++){let f=r[p],y=i[f],w=a[f],T=y(w,l);if(typeof T>"u"){let b=l&&l.type;throw new Error(Re(14))}u[f]=T,d=d||T!==w}return d=d||r.length!==Object.keys(a).length,d?u:a}}function Qr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function Ml(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(Re(15))},s={getState:n.getState,dispatch:(l,...d)=>o(l,...d)},a=t.map(l=>l(s));return o=Qr(...a)(n.dispatch),{...n,dispatch:o}}}function Nl(t){return jn(t)&&"type"in t&&typeof t.type=="string"}var Wl=Symbol.for("immer-nothing"),$l=Symbol.for("immer-draftable"),Pe=Symbol.for("immer-state");function At(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var nt=Object,fr=nt.getPrototypeOf,qn="constructor",eo="prototype",ra="configurable",Yn="enumerable",Kn="writable",en="value",Vt=t=>!!t&&!!t[Pe];function ot(t){return t?Kl(t)||io(t)||!!t[$l]||!!t[qn]?.[$l]||ro(t)||on(t):!1}var Eh=nt[eo][qn].toString(),Fl=new WeakMap;function Kl(t){if(!t||!ua(t))return!1;let e=fr(t);if(e===null||e===nt[eo])return!0;let i=nt.hasOwnProperty.call(e,qn)&&e[qn];if(i===Object)return!0;if(!pr(i))return!1;let r=Fl.get(i);return r===void 0&&(r=Function.toString.call(i),Fl.set(i,r)),r===Eh}function to(t,e,i=!0){nn(t)===0?(i?Reflect.ownKeys(t):nt.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function nn(t){let e=t[Pe];return e?e.type_:io(t)?1:ro(t)?2:on(t)?3:0}var ea=(t,e,i=nn(t))=>i===2?t.has(e):nt[eo].hasOwnProperty.call(t,e),na=(t,e,i=nn(t))=>i===2?t.get(e):t[e],Zn=(t,e,i,r=nn(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function Ah(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var io=Array.isArray,ro=t=>t instanceof Map,on=t=>t instanceof Set,ua=t=>typeof t=="object",pr=t=>typeof t=="function",ta=t=>typeof t=="boolean";function _h(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Jt=t=>t.copy_||t.base_;var pa=t=>t.modified_?t.copy_:t.base_;function oa(t,e){if(ro(t))return new Map(t);if(on(t))return new Set(t);if(io(t))return Array[eo].slice.call(t);let i=Kl(t);if(e===!0||e==="class_only"&&!i){let r=nt.getOwnPropertyDescriptors(t);delete r[Pe];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[Kn]===!1&&(a[Kn]=!0,a[ra]=!0),(a.get||a.set)&&(r[s]={[ra]:!0,[Kn]:!0,[Yn]:a[Yn],[en]:t[s]})}return nt.create(fr(t),r)}else{let r=fr(t);if(r!==null&&i)return{...t};let n=nt.create(r);return nt.assign(n,t)}}function no(t,e=!1){return oo(t)||Vt(t)||!ot(t)||(nn(t)>1&&nt.defineProperties(t,{set:Wn,add:Wn,clear:Wn,delete:Wn}),nt.freeze(t),e&&to(t,(i,r)=>{no(r,!0)},!1)),t}function Ch(){At(2)}var Wn={[en]:Ch};function oo(t){return t===null||!ua(t)?!0:nt.isFrozen(t)}var Xn="MapSet",sa="Patches",Ul="ArrayMethods",Gl={};function Oi(t){let e=Gl[t];return e||At(0,t),e}var Vl=t=>!!Gl[t];var tn,ql=()=>tn,Th=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Vl(Xn)?Oi(Xn):void 0,arrayMethodsPlugin_:Vl(Ul)?Oi(Ul):void 0});function Bl(t,e){e&&(t.patchPlugin_=Oi(sa),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function aa(t){la(t),t.drafts_.forEach(Rh),t.drafts_=null}function la(t){t===tn&&(tn=t.parent_)}var Hl=t=>tn=Th(tn,t);function Rh(t){let e=t[Pe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function zl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[Pe].modified_&&(aa(e),At(4)),ot(t)&&(t=jl(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[Pe].base_,t,e)}else t=jl(e,i);return Oh(e,t,!0),aa(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Wl?t:void 0}function jl(t,e){if(oo(e))return e;let i=e[Pe];if(!i)return Jn(e,t.handledSet_,t);if(!so(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);Xl(i,t)}return i.copy_}function Oh(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&no(e,i)}function Yl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var so=(t,e)=>t.scope_===e,kh=[];function Zl(t,e,i,r){let n=Jt(t),o=t.type_;if(r!==void 0&&na(n,r,o)===e){Zn(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;to(n,(l,d)=>{if(Vt(d)){let u=a.get(d)||[];u.push(l),a.set(d,u)}})}let s=t.draftLocations_.get(e)??kh;for(let a of s)Zn(n,a,i,o)}function Dh(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!so(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=pa(o);Zl(t,o.draft_??o,s,i),Xl(o,n)})}function Xl(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}Yl(t)}}function Lh(t,e,i){let{scope_:r}=t;if(Vt(i)){let n=i[Pe];so(n,r)&&n.callbacks_.push(function(){Gn(t);let s=pa(n);Zl(t,i,s,e)})}else ot(i)&&t.callbacks_.push(function(){let o=Jt(t);t.type_===3?o.has(i)&&Jn(i,r.handledSet_,r):na(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Jn(na(t.copy_,e,t.type_),r.handledSet_,r)})}function Jn(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Vt(t)||e.has(t)||!ot(t)||oo(t)||(e.add(t),to(t,(r,n)=>{if(Vt(n)){let o=n[Pe];if(so(o,i)){let s=pa(o);Zn(t,r,s,t.type_),Yl(o)}}else ot(n)&&Jn(n,e,i)})),t}function Ih(t,e){let i=io(t),r={type_:i?1:0,scope_:e?e.scope_:ql(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=Qn;i&&(n=[r],o=rn);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var Qn={get(t,e){if(e===Pe)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=Jt(t);if(!ea(n,e,t.type_))return Mh(t,n,e);let o=n[e];if(t.finalized_||!ot(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&_h(e))return o;if(o===ia(t.base_,e)||Ph(t,e,o)){Gn(t);let s=t.type_===1?+e:e,a=da(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in Jt(t)},ownKeys(t){return Reflect.ownKeys(Jt(t))},set(t,e,i){let r=Jl(Jt(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=ia(Jt(t),e),o=n?.[Pe];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.delete(e),!0;if(Ah(i,n)&&(i!==void 0||ea(t.base_,e,t.type_)))return!0;Gn(t),ca(t)}return t.copy_[e]===i&&(i!==void 0||ea(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),Lh(t,e,i)),!0},deleteProperty(t,e){return Gn(t),ia(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ca(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=Jt(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[Kn]:!0,[ra]:t.type_!==1||e!=="length",[Yn]:r[Yn],[en]:i[e]}},defineProperty(){At(11)},getPrototypeOf(t){return fr(t.base_)},setPrototypeOf(){At(12)}},rn={};for(let t in Qn){let e=Qn[t];rn[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}rn.deleteProperty=function(t,e){return rn.set.call(this,t,e,void 0)};rn.set=function(t,e,i){return Qn.set.call(this,t[0],e,i,t[0])};function ia(t,e){let i=t[Pe];return(i?Jt(i):t)[e]}function Ph(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||!ot(i)||i[Pe]?!1:t.baseRefs_.has(i)}function Mh(t,e,i){let r=Jl(e,i);return r?en in r?r[en]:r.get?.call(t.draft_):void 0}function Jl(t,e){if(!(e in t))return;let i=fr(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=fr(i)}}function ca(t){t.modified_||(t.modified_=!0,t.parent_&&ca(t.parent_))}function Gn(t){t.copy_||(t.assigned_=new Map,t.copy_=oa(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Nh=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(pr(e)&&!pr(i)){let o=i;i=e;let s=this;return function(l=o,...d){return s.produce(l,u=>i.call(this,u,...d))}}pr(i)||At(6),r!==void 0&&!pr(r)&&At(7);let n;if(ot(e)){let o=Hl(this),s=da(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?aa(o):la(o)}return Bl(o,r),zl(n,o)}else if(!e||!ua(e)){if(n=i(e),n===void 0&&(n=e),n===Wl&&(n=void 0),this.autoFreeze_&&no(n,!0),r){let o=[],s=[];Oi(sa).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else At(1,e)},this.produceWithPatches=(e,i)=>{if(pr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},ta(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ta(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ta(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ot(t)||At(8),Vt(t)&&(t=Ql(t));let e=Hl(this),i=da(e,t,void 0);return i[Pe].isManual_=!0,la(e),i}finishDraft(t,e){let i=t&&t[Pe];(!i||!i.isManual_)&&At(9);let{scope_:r}=i;return Bl(r,e),zl(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Oi(sa).applyPatches_;return Vt(t)?r(t,e):this.produce(t,n=>r(n,e))}};function da(t,e,i,r){let[n,o]=ro(e)?Oi(Xn).proxyMap_(e,i):on(e)?Oi(Xn).proxySet_(e,i):Ih(e,i);return(i?.scope_??ql()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?Dh(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:d}=l;o.modified_&&d&&d.generatePatches_(o,[],l)}),n}function Ql(t){return Vt(t)||At(10,t),ec(t)}function ec(t){if(!ot(t)||oo(t))return t;let e=t[Pe],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=oa(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=oa(t,!0);let n=i;return on(i)&&(i=new Set),to(n,(o,s)=>{Zn(i,o,ec(s))},r),e&&(e.finalized_=!1),i}var $h=globalThis.Iterator,ny=typeof $h?.from=="function";var Fh=new Nh,fa=Fh.produce;function tc(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var ic=tc(),rc=tc;var Uh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qr:Qr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Vh=t=>t&&typeof t.match=="function";function fi(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(Bt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>Nl(r)&&r.type===t,i}var lc=class sn extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,sn.prototype)}static get[Symbol.species](){return sn}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new sn(...e[0].concat(this)):new sn(...e.concat(this))}};function nc(t){return ot(t)?fa(t,()=>{}):t}function ao(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function Bh(t){return typeof t=="boolean"}var Hh=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new lc;return i&&(Bh(i)?s.push(ic):s.push(rc(i.extraArgument))),s},zh="RTK_autoBatch";var oc=t=>e=>{setTimeout(e,t)},jh=(t,e)=>i=>{let r=!1,n,o,s=()=>{r||(r=!0,cancelAnimationFrame(n),clearTimeout(o),i())};n=t(s),o=setTimeout(s,e)},Wh=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?jh(window.requestAnimationFrame,100):oc(10):t.type==="callback"?t.queueNotification:oc(t.timeout),d=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let p=()=>n&&u(),f=r.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[zh],o=!n,o&&(s||(s=!0,l(d))),r.dispatch(u)}finally{n=!0}}})},Kh=t=>function(i){let{autoBatch:r=!0}=i??{},n=new lc(t);return r&&n.push(Wh(typeof r=="object"?r:void 0)),n};function cc(t){let e=Hh(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(jn(i))l=Qs(i);else throw new Error(Bt(1));let d;typeof r=="function"?d=r(e):d=e();let u=Qr;n&&(u=Uh({trace:!1,...typeof n=="object"&&n}));let p=Ml(...d),f=Kh(p),y=typeof a=="function"?a(f):f(),w=u(...y);return Js(l,s,w)}function dc(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Bt(28));if(a in e)throw new Error(Bt(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function Gh(t){return typeof t=="function"}function qh(t,e){let[i,r,n]=dc(e),o;if(Gh(t))o=()=>nc(t());else{let a=nc(t);o=()=>a}function s(a=o(),l){let d=[i[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[n]),d.reduce((u,p)=>{if(p)if(Vt(u)){let f=p(u,l);return f===void 0?u:f}else{if(ot(u))return fa(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(Bt(9))}return f}}return u},a)}return s.getInitialState=o,s}var Yh=(t,e)=>Vh(t)?t.match(e):t(e);function Zh(...t){return e=>t.some(i=>Yh(i,e))}var Xh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Jh=(t=21)=>{let e="",i=t;for(;i--;)e+=Xh[Math.random()*64|0];return e},Qh=["name","message","stack","code"],ha=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},sc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},em=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of Qh)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},ac="External signal was aborted",tm=(()=>{function t(e,i,r){let n=fi(e+"/fulfilled",(l,d,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),o=fi(e+"/pending",(l,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:l,requestStatus:"pending"}})),s=fi(e+"/rejected",(l,d,u,p,f)=>({payload:p,error:(r&&r.serializeError||em)(l||"Rejected"),meta:{...f||{},arg:u,requestId:d,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:d}={}){return(u,p,f)=>{let y=r?.idGenerator?r.idGenerator(l):Jh(),w=new AbortController,T,b;function k(E){b=E,w.abort()}d&&(d.aborted?k(ac):d.addEventListener("abort",()=>k(ac),{once:!0}));let H=(async function(){let E;try{let A=r?.condition?.(l,{getState:p,extra:f});if(rm(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(w.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let K=new Promise((U,ye)=>{T=()=>{ye({name:"AbortError",message:b||"Aborted"})},w.signal.addEventListener("abort",T,{once:!0})});u(o(y,l,r?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),E=await Promise.race([K,Promise.resolve(i(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:w.signal,abort:k,rejectWithValue:((U,ye)=>new ha(U,ye)),fulfillWithValue:((U,ye)=>new sc(U,ye))})).then(U=>{if(U instanceof ha)throw U;return U instanceof sc?n(U.payload,y,l,U.meta):n(U,y,l)})])}catch(A){E=A instanceof ha?s(null,y,l,A.payload,A.meta):s(A,y,l)}finally{T&&w.signal.removeEventListener("abort",T)}return r&&!r.dispatchConditionRejection&&s.match(E)&&E.meta.condition||u(E),E})();return Object.assign(H,{abort:k,requestId:y,arg:l,unwrap(){return H.then(im)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:Zh(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function im(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function rm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var uc=Symbol.for("rtk-slice-createasyncthunk"),py={[uc]:tm};function nm(t,e){return`${t}/${e}`}function om({creators:t}={}){let e=t?.asyncThunk?.[uc];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(Bt(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(am()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(E,A){let K=typeof E=="string"?E:E.type;if(!K)throw new Error(Bt(12));if(K in l.sliceCaseReducersByType)throw new Error(Bt(13));return l.sliceCaseReducersByType[K]=A,d},addMatcher(E,A){return l.sliceMatchers.push({matcher:E,reducer:A}),d},exposeAction(E,A){return l.actionCreators[E]=A,d},exposeCaseReducer(E,A){return l.sliceCaseReducersByName[E]=A,d}};a.forEach(E=>{let A=s[E],K={reducerName:E,type:nm(n,E),createNotation:typeof r.reducers=="function"};cm(A)?um(K,A,d,e):lm(K,A,d)});function u(){let[E={},A=[],K=void 0]=typeof r.extraReducers=="function"?dc(r.extraReducers):[r.extraReducers],U={...E,...l.sliceCaseReducersByType};return qh(r.initialState,ye=>{for(let Ie in U)ye.addCase(Ie,U[Ie]);for(let Ie of l.sliceMatchers)ye.addMatcher(Ie.matcher,Ie.reducer);for(let Ie of A)ye.addMatcher(Ie.matcher,Ie.reducer);K&&ye.addDefaultCase(K)})}let p=E=>E,f=new Map,y=new WeakMap,w;function T(E,A){return w||(w=u()),w(E,A)}function b(){return w||(w=u()),w.getInitialState()}function k(E,A=!1){function K(ye){let Ie=ye[E];return typeof Ie>"u"&&A&&(Ie=ao(y,K,b)),Ie}function U(ye=p){return ao(ao(f,A,()=>new WeakMap),ye,()=>{let Ie={};for(let[Pn,mt]of Object.entries(r.selectors??{}))Ie[Pn]=sm(mt,ye,()=>ao(y,ye,b),A);return Ie})}return{reducerPath:E,getSelectors:U,get selectors(){return U(K)},selectSlice:K}}let H={name:n,reducer:T,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...k(o),injectInto(E,{reducerPath:A,...K}={}){let U=A??o;return E.inject({reducerPath:U,reducer:T},K),{...H,...k(U,!0)}}};return H}}function sm(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var pc=om();function am(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function lm({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!dm(r))throw new Error(Bt(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?fi(t,s):fi(t))}function cm(t){return t._reducerDefinitionType==="asyncThunk"}function dm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function um({type:t,reducerName:e},i,r,n){if(!n)throw new Error(Bt(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:d,options:u}=i,p=n(t,o,u);r.exposeAction(e,p),s&&r.addCase(p.fulfilled,s),a&&r.addCase(p.pending,a),l&&r.addCase(p.rejected,l),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(e,{fulfilled:s||lo,pending:a||lo,rejected:l||lo,settled:d||lo})}function lo(){}var fc="listener",hc="completed",mc="cancelled",fy=`task-${mc}`,hy=`task-${hc}`,my=`${fc}-${mc}`,gy=`${fc}-${hc}`;var{assign:gc}=Object;var ma="listenerMiddleware";var pm=gc(fi(`${ma}/add`),{withTypes:()=>pm}),yy=fi(`${ma}/removeAll`),fm=gc(fi(`${ma}/remove`),{withTypes:()=>fm});function Bt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var hm=$n(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),co=class extends hm(Object){};window.ftReduxStores||(window.ftReduxStores={});var yc=class t extends co{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(Hn(o))return o;if(n==null)return;let s=pc({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=cc({reducer:(l,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let u=Zr(s.getInitialState());for(let p of d.keeping)u[p]=(l??u)[p];return u}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...d.overwrites};return s.reducer(l,d)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus,n.deprecatedKeys)}constructor(e,i,r,n){super(),this.reduxSlice=e,this.reduxStore=i,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Fn,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let o=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,l)=>{let d=a,u=s[d];return u?(...p)=>{let f=u(...p.map(o));return this.reduxStore.dispatch(f),f}:p=>{let f=d,y=this.getState()[f];cr(y,p)||this.setState({[f]:o(p)})}}}),this.eventBus=r??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var uo=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var po=c(h()),mm="ft-app-info",st=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};st.eventName="authentication-change";var ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ki.eventName="ui-locale-changed";var gm={session:(t,e)=>{(0,po.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>v.dispatchEvent(new st(e.payload)),0))}},v=po.FtReduxStore.get({name:mm,reducers:gm,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var vc=c(h()),fo=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},xc=(0,vc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(v)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>uo.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return fo([(0,ga.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),fo([(0,ga.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),fo([Zs({store:v.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),fo([Zs({store:v.name})],e.prototype,"uiLocale",void 0),e});var bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var Sc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Sc||(Sc={}));var wc;(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"})(wc||(wc={}));var Ec;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ec||(Ec={}));var Ac;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ac||(Ac={}));var _c;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(_c||(_c={}));var Cc;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Cc||(Cc={}));var Tc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Tc||(Tc={}));var Rc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Rc||(Rc={}));var Oc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Oc||(Oc={}));var kc;(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",t.DOC_DIFF="DOC_DIFF"})(kc||(kc={}));var Dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Dc||(Dc={}));var Lc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Lc||(Lc={}));var Ic;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ic||(Ic={}));var Pc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Pc||(Pc={}));var Ee;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ee||(Ee={}));var Mc;(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"})(Mc||(Mc={}));var Nc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Nc||(Nc={}));var $c;(function(t){t.ASC="ASC",t.DESC="DESC"})($c||($c={}));var Fc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Fc||(Fc={}));var Uc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Uc||(Uc={}));var Vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Vc||(Vc={}));var ho;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ho||(ho={}));var Bc;(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"})(Bc||(Bc={}));var Hc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Hc||(Hc={}));var zc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(zc||(zc={}));var jc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(jc||(jc={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var re;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(re||(re={}));var gt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(gt||(gt={}));var Kc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Kc||(Kc={}));var Gc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Gc||(Gc={}));var qc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(qc||(qc={}));var Yc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Yc||(Yc={}));var Zc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Zc||(Zc={}));var Xc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Xc||(Xc={}));var Jc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Jc||(Jc={}));var Qc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Qc||(Qc={}));var ed;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ed||(ed={}));var td;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(td||(td={}));var id;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(id||(id={}));var mo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(mo||(mo={}));var ym={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN,re.BEHAVIOR_DATA_USER],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function rd(t,e){return t===e||(ym[t]??[]).some(i=>rd(i,e))}function hr(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(r=>rd(r,e))}function nd(t,...e){return t==null?!1:e.some(i=>hr(t,i))}var bo=c(h());var ya=c(h());var Ht=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=v.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=v.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var mr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ht.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ht.await()}};var Oe=class extends mr{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new ya.CacheRegistry,this.cache=e?n.commonCache:new ya.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var go=class extends Oe{async listMySearches(){let{session:e}=v.getState();return hr(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var yo=class extends Oe{async listMyBookmarks(){let e=v.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var vo=class extends Oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var xo=class extends Oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var vm="ft-user-assets",xm={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(gt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;xa(t,i,[...va(t,i),n]),od(t,i,1,r),sd(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;xa(t,i,va(t,i).map(n=>n.id===r.id?r:n)),sd(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;xa(t,i,va(t,i).filter(o=>o.id!==n)),od(t,i,-1,r)}},ad={[gt.SEARCHES]:"savedSearches",[gt.BOOKMARKS]:"bookmarks",[gt.BOOKS]:void 0,[gt.COLLECTIONS]:void 0},va=(t,e)=>{var i;let r=ad[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},xa=(t,e,i)=>{let r=ad[e];r&&(t[r]=i)},od=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===gt.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},sd=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},Ve=bo.FtReduxStore.get({name:vm,reducers:xm,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(gt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ba=class{constructor(e=new vo,i=new xo){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=v.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yo,this.savedSearchesService=new go,v.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=v.getState();(0,bo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ve.actions.clearAssetCount(),Ve.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ve.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ve.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ve.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ve.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&Ve.getState().assetCounts.allAsset[e]!==i.count&&Ve.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&Ve.getState().assetCounts.bookmarkByMap[e]!==i.count&&Ve.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(Ve.getState().assetCounts.bookmarkByMap).length!==0;e===gt.BOOKMARKS&&i&&Ve.actions.clearBookmarkCountByMap(),Ve.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 i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ve.actions.bookmarks(i)}}},bm=new ba;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=bm);var Sa=class{addCommand(e,i=!1){v.commands.add(e,i)}consumeCommand(e){return v.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Sa;var yt=c(h());var ld,gr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Sm=Symbol("clearAfterUnitTest"),So=class extends(0,yt.withEventBus)(Oe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ld]=()=>{this.defaultMessages={},this.cache=new yt.CacheRegistry,this.listeners={}},this.currentUiLocale=v.getState().uiLocale,v.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=v.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,yt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new yt.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof yt.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new gr({loadedContexts:e})),this.dispatchEvent(new gr({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new gr({loadedContexts:[e]})),this.dispatchEvent(new gr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,yt.delay)(0).then(()=>r()).catch(()=>null)))}};ld=Sm;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends So{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends So{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var yr=window.FluidTopicsI18nService,wo=window.FluidTopicsCustomI18nService;var cd=c(h()),wa=class{highlightHtml(e,i,r){(0,cd.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new wa;var dd=c(h());var Ea=class{isDate(e){var i,r,n,o;return(o=(r=((n=(i=v.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||r===void 0?void 0:r.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return dd.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:v.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Ea;var ud=c(h());var an=class{static get(e,i,{baseUrl:r,localesConfiguration:n,availableContentLocales:o}=v.getState()){var s;if(!i||o.length>0&&!o.some(a=>a.lang===i)){let a=n?.defaultLocales.defaultContentLocale;i=a?`${a.lang}-${a.region}`:(s=o[0])===null||s===void 0?void 0:s.lang}return new ud.SearchPlaceConverter(r,e??20,n?.allLanguagesAllowed,i,o)}};var Aa=class{urlToSearchRequest(e){return an.get().parse(e)}searchRequestToUrl(e){return an.get().serialize(e)}};window.FluidTopicsUrlService=new Aa;var Qt=c(h());var Di=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Di.eventName="before-location-change";var Li=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Li.eventName="change";var _a=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},pd=new _a;var Eo=class t extends Qt.WithEventBus{static build(){return new t(window.history,pd,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Qt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Li(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new Di(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let d=i(),u={...d===this.currentIndex?this.currentState:void 0,...o,index:d,href:l.detail.nextLocation.href};r.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(Di.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Di.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Li.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Li.eventName,e)}currentItem(){return(0,Qt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Qt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,Qt.deepCopy)(i.find(r=>e(r)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Qt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Eo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Ao=class{constructor(){this.storeListeners=[]}store(e,i){if(this.isAuthenticated())return;let r=JSON.stringify(i);window.localStorage.setItem(e,r),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:r,storageArea:window.localStorage}))}get(e){var i,r;if(!this.isAuthenticated())return(r=JSON.parse((i=window.localStorage.getItem(e))!==null&&i!==void 0?i:"null"))!==null&&r!==void 0?r:void 0}addStoreListener(e,i){let r=n=>{n.key===e()&&!this.isAuthenticated()&&i()};this.storeListeners.push(r),window.addEventListener("storage",r)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var fd=c(S());var hd=fd.css`
|
|
2
|
-
`;var
|
|
1
|
+
"use strict";(()=>{var dh=Object.create;var gl=Object.defineProperty;var uh=Object.getOwnPropertyDescriptor;var ph=Object.getOwnPropertyNames;var fh=Object.getPrototypeOf,hh=Object.prototype.hasOwnProperty;var sr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var mh=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ph(e))!hh.call(t,n)&&n!==i&&gl(t,n,{get:()=>e[n],enumerable:!(r=uh(e,n))||r.enumerable});return t};var c=(t,e,i)=>(i=t!=null?dh(fh(t)):{},mh(e||!t||!t.__esModule?gl(i,"default",{value:t,enumerable:!0}):i,t));var h=sr((lg,yl)=>{yl.exports=ftGlobals.wcUtils});var $=sr((cg,vl)=>{vl.exports=ftGlobals.litDecorators});var S=sr((Pg,wl)=>{wl.exports=ftGlobals.lit});var br=sr((bb,Rd)=>{Rd.exports=ftGlobals.litRepeat});var Va=sr((Qb,cu)=>{cu.exports=ftGlobals.litUnsafeHTML});var ut=sr((pE,Nu)=>{Nu.exports=ftGlobals.litClassMap});var ah=c(h());var bl=c(h()),Sl=c($());var Xt=class extends Event{constructor(e,i,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i,this.callback=r,this.subscribe=n??!1}};var ar=class{constructor(e,i,r,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,s)),this.unsubscribe=s},this.host=e,i.context!==void 0){let o=i;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=i,this.callback=r,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Xt(this.context,this.host,this.t,this.subscribe))}};var Mn=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,i=!1){let r=i||!Object.is(e,this.o);this.o=e,r&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[i,{disposer:r}]of this.subscriptions)i(this.o,r)},e!==void 0&&(this.value=e)}addCallback(e,i,r){if(!r)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:i});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Gs=class extends Event{constructor(e,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i}},lr=class extends Mn{constructor(e,i,r){super(i.context!==void 0?i.initialValue:r),this.onContextRequest=n=>{if(n.context!==this.context)return;let o=n.contextTarget??n.composedPath()[0];o!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,o,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let o=new Set;for(let[s,{consumerHost:a}]of this.subscriptions)o.has(s)||(o.add(s),a.dispatchEvent(new Xt(this.context,a,s,!0)));n.stopPropagation()},this.host=e,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Gs(this.context,this.host))}};var Gr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let i=this.pendingContextRequests.get(e.context);if(i===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:r}=i;for(let{elementRef:n,callbackRef:o}of r){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Xt(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let i=e.contextTarget??e.composedPath()[0],r=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(i);o===void 0&&n.callbacks.set(i,o=new WeakSet),o.has(r)||(o.add(r),n.requests.push({elementRef:new WeakRef(i),callbackRef:new WeakRef(r)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};function qr({context:t}){return(e,i)=>{let r=new WeakMap;if(typeof i=="object")return{get(){return e.get.call(this)},set(n){return r.get(this).setValue(n),e.set.call(this,n)},init(n){return r.set(this,new lr(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{r.set(s,new lr(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,i),o;if(n===void 0){let s=new WeakMap;o={get(){return s.get(this)},set(a){r.get(this).setValue(a),s.set(this,a)},configurable:!0,enumerable:!0}}else{let s=n.set;o={...n,set(a){r.get(this).setValue(a),s?.call(this,a)}}}return void Object.defineProperty(e,i,o)}}}function Yr({context:t,subscribe:e}){return(i,r)=>{typeof r=="object"?r.addInitializer((function(){new ar(this,{context:t,callback:n=>{i.set.call(this,n)},subscribe:e})})):i.constructor.addInitializer((n=>{new ar(n,{context:t,callback:o=>{n[r]=o},subscribe:e})}))}}var gh=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},qs="asset-viewer-state-manager",Ft=(0,bl.applyMixinOnce)(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(r){super.willUpdate(r),r.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}get service(){var r;return(r=this.viewerStateManager)===null||r===void 0?void 0:r.service}}return gh([Yr({context:qs,subscribe:!0}),(0,Sl.state)()],e.prototype,"viewerStateManager",void 0),e});var Ed=c(S()),xr=c(h());var El=c(h()),yh={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Nn=t=>El.FtReduxStore.get({name:"ft-viewer-"+t,initialState:{documentId:void 0,unstructuredDocument:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0,configuration:void 0,documentRating:void 0,assetRating:void 0,relatives:void 0},reducers:yh});var bd=c(h());var ga=c($());var Al=c($(),1);var Ys=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},vh=t=>({fromAttribute:e=>{if(e==null)return Zr(t);try{return JSON.parse(e)}catch{return Zr(t)}},toAttribute:e=>JSON.stringify(e)});function _l(t,e){return(0,Al.property)({type:Object,converter:vh(t),hasChanged:Xr,...e??{}})}function xh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!cr(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!cr(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!cr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function cr(t,e){try{return xh(t,e)}catch{return!1}}function Xr(t,e){return!cr(t,e)}function Zr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function $n(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var Cl=c($(),1);var Zs=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Xr,attribute:!1,...e};(0,Cl.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var Fn=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Ti=c($(),1);var Un=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Bn=c(S(),1);var Vn=class extends Bn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return(0,Bn.adoptStyles)(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){Ys(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function Tl(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var ur=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Dl,Rl=Symbol("constructorPrototype"),Ol=Symbol("constructorName"),Il=Symbol("exportpartsDebouncer"),kl=Symbol("dynamicDependenciesLoaded"),dr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dr.eventName="exportparts-updated";var Ut=class extends Vn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Dl]=new Un(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[Il].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ol]=this.constructor.name,this[Rl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ol]&&Object.setPrototypeOf(this,this[Rl])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[kl]||(i[kl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new dr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=Tl(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=f=>f!=null&&f.trim().length>0,d=e.filter(l).map(f=>f.trim());if(d.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(s=(r=f.getAttribute("part"))===null||r===void 0?void 0:r.split(" "))!==null&&s!==void 0?s:[],w=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],T=[...y,...w].filter(l).map(b=>b.trim());for(let b of T)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>d.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};Dl=Il;ur([(0,Ti.property)()],Ut.prototype,"exportpartsPrefix",void 0);ur([_l([])],Ut.prototype,"exportpartsPrefixes",void 0);ur([(0,Ti.property)({reflect:!0})],Ut.prototype,"exportparts",void 0);ur([(0,Ti.property)()],Ut.prototype,"customStylesheet",void 0);ur([(0,Ti.property)()],Ut.prototype,"elementToFocus",void 0);ur([(0,Ti.state)()],Ut.prototype,"useAdoptedStyleSheets",void 0);function Hn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Jr=Symbol("internalReduxEventsUnsubscribers"),pi=Symbol("internalStoresUnsubscribers"),Ri=Symbol("internalStores"),bh=$n(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ri].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ri].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ri].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ri].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Ri].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ri].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let d=this.getStore(s.store);d&&(s.store?this[pi].has(s.store):this[pi].size>0)&&(this[a]=s.selector(d.getState(),this))}})}subscribeToStore(s,a){var l,d;this[pi].set(s,a.subscribe(()=>this.updateFromStores())),this[Jr].set(s,[]),Hn(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,p)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((u,p)=>{if(typeof this[p]=="function"&&(!u.store||a.name===u.store)){let f=y=>this[p](y);a.addEventListener(u.eventName,f),this[Jr].get(s).push(()=>a.removeEventListener(u.eventName,f))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[pi].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[pi].has(s)&&this[pi].get(s)(),this[pi].delete(s),(a=this[Jr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Jr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=pi,i=Ri,r=Jr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ll=class extends bh(Ut){};function Re(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 Sh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Pl=Sh,Xs=()=>Math.random().toString(36).substring(7).split("").join("."),wh={INIT:`@@redux/INIT${Xs()}`,REPLACE:`@@redux/REPLACE${Xs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xs()}`},zn=wh;function jn(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Js(t,e,i){if(typeof t!="function")throw new Error(Re(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Re(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Re(1));return i(Js)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function d(){s===o&&(s=new Map,o.forEach((b,k)=>{s.set(k,b)}))}function u(){if(l)throw new Error(Re(3));return n}function p(b){if(typeof b!="function")throw new Error(Re(4));if(l)throw new Error(Re(5));let k=!0;d();let H=a++;return s.set(H,b),function(){if(k){if(l)throw new Error(Re(6));k=!1,d(),s.delete(H),o=null}}}function f(b){if(!jn(b))throw new Error(Re(7));if(typeof b.type>"u")throw new Error(Re(8));if(typeof b.type!="string")throw new Error(Re(17));if(l)throw new Error(Re(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(H=>{H()}),b}function y(b){if(typeof b!="function")throw new Error(Re(10));r=b,f({type:zn.REPLACE})}function w(){let b=p;return{subscribe(k){if(typeof k!="object"||k===null)throw new Error(Re(11));function H(){let A=k;A.next&&A.next(u())}return H(),{unsubscribe:b(H)}},[Pl](){return this}}}return f({type:zn.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[Pl]:w}}function Eh(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:zn.INIT})>"u")throw new Error(Re(12));if(typeof i(void 0,{type:zn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Re(13))})}function Qs(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{Eh(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let d=!1,u={};for(let p=0;p<r.length;p++){let f=r[p],y=i[f],w=a[f],T=y(w,l);if(typeof T>"u"){let b=l&&l.type;throw new Error(Re(14))}u[f]=T,d=d||T!==w}return d=d||r.length!==Object.keys(a).length,d?u:a}}function Qr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function Ml(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(Re(15))},s={getState:n.getState,dispatch:(l,...d)=>o(l,...d)},a=t.map(l=>l(s));return o=Qr(...a)(n.dispatch),{...n,dispatch:o}}}function Nl(t){return jn(t)&&"type"in t&&typeof t.type=="string"}var Wl=Symbol.for("immer-nothing"),$l=Symbol.for("immer-draftable"),Pe=Symbol.for("immer-state");function At(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var nt=Object,fr=nt.getPrototypeOf,qn="constructor",eo="prototype",ra="configurable",Yn="enumerable",Kn="writable",en="value",Vt=t=>!!t&&!!t[Pe];function ot(t){return t?Kl(t)||io(t)||!!t[$l]||!!t[qn]?.[$l]||ro(t)||on(t):!1}var Ah=nt[eo][qn].toString(),Fl=new WeakMap;function Kl(t){if(!t||!ua(t))return!1;let e=fr(t);if(e===null||e===nt[eo])return!0;let i=nt.hasOwnProperty.call(e,qn)&&e[qn];if(i===Object)return!0;if(!pr(i))return!1;let r=Fl.get(i);return r===void 0&&(r=Function.toString.call(i),Fl.set(i,r)),r===Ah}function to(t,e,i=!0){nn(t)===0?(i?Reflect.ownKeys(t):nt.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function nn(t){let e=t[Pe];return e?e.type_:io(t)?1:ro(t)?2:on(t)?3:0}var ea=(t,e,i=nn(t))=>i===2?t.has(e):nt[eo].hasOwnProperty.call(t,e),na=(t,e,i=nn(t))=>i===2?t.get(e):t[e],Zn=(t,e,i,r=nn(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function _h(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var io=Array.isArray,ro=t=>t instanceof Map,on=t=>t instanceof Set,ua=t=>typeof t=="object",pr=t=>typeof t=="function",ta=t=>typeof t=="boolean";function Ch(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Jt=t=>t.copy_||t.base_;var pa=t=>t.modified_?t.copy_:t.base_;function oa(t,e){if(ro(t))return new Map(t);if(on(t))return new Set(t);if(io(t))return Array[eo].slice.call(t);let i=Kl(t);if(e===!0||e==="class_only"&&!i){let r=nt.getOwnPropertyDescriptors(t);delete r[Pe];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[Kn]===!1&&(a[Kn]=!0,a[ra]=!0),(a.get||a.set)&&(r[s]={[ra]:!0,[Kn]:!0,[Yn]:a[Yn],[en]:t[s]})}return nt.create(fr(t),r)}else{let r=fr(t);if(r!==null&&i)return{...t};let n=nt.create(r);return nt.assign(n,t)}}function no(t,e=!1){return oo(t)||Vt(t)||!ot(t)||(nn(t)>1&&nt.defineProperties(t,{set:Wn,add:Wn,clear:Wn,delete:Wn}),nt.freeze(t),e&&to(t,(i,r)=>{no(r,!0)},!1)),t}function Th(){At(2)}var Wn={[en]:Th};function oo(t){return t===null||!ua(t)?!0:nt.isFrozen(t)}var Xn="MapSet",sa="Patches",Ul="ArrayMethods",Gl={};function Oi(t){let e=Gl[t];return e||At(0,t),e}var Vl=t=>!!Gl[t];var tn,ql=()=>tn,Rh=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Vl(Xn)?Oi(Xn):void 0,arrayMethodsPlugin_:Vl(Ul)?Oi(Ul):void 0});function Bl(t,e){e&&(t.patchPlugin_=Oi(sa),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function aa(t){la(t),t.drafts_.forEach(Oh),t.drafts_=null}function la(t){t===tn&&(tn=t.parent_)}var Hl=t=>tn=Rh(tn,t);function Oh(t){let e=t[Pe];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function zl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[Pe].modified_&&(aa(e),At(4)),ot(t)&&(t=jl(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[Pe].base_,t,e)}else t=jl(e,i);return kh(e,t,!0),aa(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Wl?t:void 0}function jl(t,e){if(oo(e))return e;let i=e[Pe];if(!i)return Jn(e,t.handledSet_,t);if(!so(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);Xl(i,t)}return i.copy_}function kh(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&no(e,i)}function Yl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var so=(t,e)=>t.scope_===e,Dh=[];function Zl(t,e,i,r){let n=Jt(t),o=t.type_;if(r!==void 0&&na(n,r,o)===e){Zn(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;to(n,(l,d)=>{if(Vt(d)){let u=a.get(d)||[];u.push(l),a.set(d,u)}})}let s=t.draftLocations_.get(e)??Dh;for(let a of s)Zn(n,a,i,o)}function Ih(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!so(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=pa(o);Zl(t,o.draft_??o,s,i),Xl(o,n)})}function Xl(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}Yl(t)}}function Lh(t,e,i){let{scope_:r}=t;if(Vt(i)){let n=i[Pe];so(n,r)&&n.callbacks_.push(function(){Gn(t);let s=pa(n);Zl(t,i,s,e)})}else ot(i)&&t.callbacks_.push(function(){let o=Jt(t);t.type_===3?o.has(i)&&Jn(i,r.handledSet_,r):na(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Jn(na(t.copy_,e,t.type_),r.handledSet_,r)})}function Jn(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Vt(t)||e.has(t)||!ot(t)||oo(t)||(e.add(t),to(t,(r,n)=>{if(Vt(n)){let o=n[Pe];if(so(o,i)){let s=pa(o);Zn(t,r,s,t.type_),Yl(o)}}else ot(n)&&Jn(n,e,i)})),t}function Ph(t,e){let i=io(t),r={type_:i?1:0,scope_:e?e.scope_:ql(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=Qn;i&&(n=[r],o=rn);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var Qn={get(t,e){if(e===Pe)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=Jt(t);if(!ea(n,e,t.type_))return Nh(t,n,e);let o=n[e];if(t.finalized_||!ot(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&Ch(e))return o;if(o===ia(t.base_,e)||Mh(t,e,o)){Gn(t);let s=t.type_===1?+e:e,a=da(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in Jt(t)},ownKeys(t){return Reflect.ownKeys(Jt(t))},set(t,e,i){let r=Jl(Jt(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=ia(Jt(t),e),o=n?.[Pe];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.delete(e),!0;if(_h(i,n)&&(i!==void 0||ea(t.base_,e,t.type_)))return!0;Gn(t),ca(t)}return t.copy_[e]===i&&(i!==void 0||ea(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),Lh(t,e,i)),!0},deleteProperty(t,e){return Gn(t),ia(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ca(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=Jt(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[Kn]:!0,[ra]:t.type_!==1||e!=="length",[Yn]:r[Yn],[en]:i[e]}},defineProperty(){At(11)},getPrototypeOf(t){return fr(t.base_)},setPrototypeOf(){At(12)}},rn={};for(let t in Qn){let e=Qn[t];rn[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}rn.deleteProperty=function(t,e){return rn.set.call(this,t,e,void 0)};rn.set=function(t,e,i){return Qn.set.call(this,t[0],e,i,t[0])};function ia(t,e){let i=t[Pe];return(i?Jt(i):t)[e]}function Mh(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||!ot(i)||i[Pe]?!1:t.baseRefs_.has(i)}function Nh(t,e,i){let r=Jl(e,i);return r?en in r?r[en]:r.get?.call(t.draft_):void 0}function Jl(t,e){if(!(e in t))return;let i=fr(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=fr(i)}}function ca(t){t.modified_||(t.modified_=!0,t.parent_&&ca(t.parent_))}function Gn(t){t.copy_||(t.assigned_=new Map,t.copy_=oa(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var $h=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(pr(e)&&!pr(i)){let o=i;i=e;let s=this;return function(l=o,...d){return s.produce(l,u=>i.call(this,u,...d))}}pr(i)||At(6),r!==void 0&&!pr(r)&&At(7);let n;if(ot(e)){let o=Hl(this),s=da(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?aa(o):la(o)}return Bl(o,r),zl(n,o)}else if(!e||!ua(e)){if(n=i(e),n===void 0&&(n=e),n===Wl&&(n=void 0),this.autoFreeze_&&no(n,!0),r){let o=[],s=[];Oi(sa).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else At(1,e)},this.produceWithPatches=(e,i)=>{if(pr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},ta(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ta(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ta(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ot(t)||At(8),Vt(t)&&(t=Ql(t));let e=Hl(this),i=da(e,t,void 0);return i[Pe].isManual_=!0,la(e),i}finishDraft(t,e){let i=t&&t[Pe];(!i||!i.isManual_)&&At(9);let{scope_:r}=i;return Bl(r,e),zl(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Oi(sa).applyPatches_;return Vt(t)?r(t,e):this.produce(t,n=>r(n,e))}};function da(t,e,i,r){let[n,o]=ro(e)?Oi(Xn).proxyMap_(e,i):on(e)?Oi(Xn).proxySet_(e,i):Ph(e,i);return(i?.scope_??ql()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?Ih(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:d}=l;o.modified_&&d&&d.generatePatches_(o,[],l)}),n}function Ql(t){return Vt(t)||At(10,t),ec(t)}function ec(t){if(!ot(t)||oo(t))return t;let e=t[Pe],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=oa(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=oa(t,!0);let n=i;return on(i)&&(i=new Set),to(n,(o,s)=>{Zn(i,o,ec(s))},r),e&&(e.finalized_=!1),i}var Fh=globalThis.Iterator,oy=typeof Fh?.from=="function";var Uh=new $h,fa=Uh.produce;function tc(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var ic=tc(),rc=tc;var Vh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qr:Qr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Bh=t=>t&&typeof t.match=="function";function fi(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(Bt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>Nl(r)&&r.type===t,i}var lc=class sn extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,sn.prototype)}static get[Symbol.species](){return sn}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new sn(...e[0].concat(this)):new sn(...e.concat(this))}};function nc(t){return ot(t)?fa(t,()=>{}):t}function ao(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function Hh(t){return typeof t=="boolean"}var zh=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new lc;return i&&(Hh(i)?s.push(ic):s.push(rc(i.extraArgument))),s},jh="RTK_autoBatch";var oc=t=>e=>{setTimeout(e,t)},Wh=(t,e)=>i=>{let r=!1,n,o,s=()=>{r||(r=!0,cancelAnimationFrame(n),clearTimeout(o),i())};n=t(s),o=setTimeout(s,e)},Kh=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Wh(window.requestAnimationFrame,100):oc(10):t.type==="callback"?t.queueNotification:oc(t.timeout),d=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let p=()=>n&&u(),f=r.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[jh],o=!n,o&&(s||(s=!0,l(d))),r.dispatch(u)}finally{n=!0}}})},Gh=t=>function(i){let{autoBatch:r=!0}=i??{},n=new lc(t);return r&&n.push(Kh(typeof r=="object"?r:void 0)),n};function cc(t){let e=zh(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(jn(i))l=Qs(i);else throw new Error(Bt(1));let d;typeof r=="function"?d=r(e):d=e();let u=Qr;n&&(u=Vh({trace:!1,...typeof n=="object"&&n}));let p=Ml(...d),f=Gh(p),y=typeof a=="function"?a(f):f(),w=u(...y);return Js(l,s,w)}function dc(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Bt(28));if(a in e)throw new Error(Bt(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function qh(t){return typeof t=="function"}function Yh(t,e){let[i,r,n]=dc(e),o;if(qh(t))o=()=>nc(t());else{let a=nc(t);o=()=>a}function s(a=o(),l){let d=[i[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[n]),d.reduce((u,p)=>{if(p)if(Vt(u)){let f=p(u,l);return f===void 0?u:f}else{if(ot(u))return fa(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(Bt(9))}return f}}return u},a)}return s.getInitialState=o,s}var Zh=(t,e)=>Bh(t)?t.match(e):t(e);function Xh(...t){return e=>t.some(i=>Zh(i,e))}var Jh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Qh=(t=21)=>{let e="",i=t;for(;i--;)e+=Jh[Math.random()*64|0];return e},em=["name","message","stack","code"],ha=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},sc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},tm=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of em)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},ac="External signal was aborted",im=(()=>{function t(e,i,r){let n=fi(e+"/fulfilled",(l,d,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),o=fi(e+"/pending",(l,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:l,requestStatus:"pending"}})),s=fi(e+"/rejected",(l,d,u,p,f)=>({payload:p,error:(r&&r.serializeError||tm)(l||"Rejected"),meta:{...f||{},arg:u,requestId:d,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:d}={}){return(u,p,f)=>{let y=r?.idGenerator?r.idGenerator(l):Qh(),w=new AbortController,T,b;function k(E){b=E,w.abort()}d&&(d.aborted?k(ac):d.addEventListener("abort",()=>k(ac),{once:!0}));let H=(async function(){let E;try{let A=r?.condition?.(l,{getState:p,extra:f});if(nm(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(w.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let K=new Promise((U,ye)=>{T=()=>{ye({name:"AbortError",message:b||"Aborted"})},w.signal.addEventListener("abort",T,{once:!0})});u(o(y,l,r?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),E=await Promise.race([K,Promise.resolve(i(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:w.signal,abort:k,rejectWithValue:((U,ye)=>new ha(U,ye)),fulfillWithValue:((U,ye)=>new sc(U,ye))})).then(U=>{if(U instanceof ha)throw U;return U instanceof sc?n(U.payload,y,l,U.meta):n(U,y,l)})])}catch(A){E=A instanceof ha?s(null,y,l,A.payload,A.meta):s(A,y,l)}finally{T&&w.signal.removeEventListener("abort",T)}return r&&!r.dispatchConditionRejection&&s.match(E)&&E.meta.condition||u(E),E})();return Object.assign(H,{abort:k,requestId:y,arg:l,unwrap(){return H.then(rm)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:Xh(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function rm(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function nm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var uc=Symbol.for("rtk-slice-createasyncthunk"),fy={[uc]:im};function om(t,e){return`${t}/${e}`}function sm({creators:t}={}){let e=t?.asyncThunk?.[uc];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(Bt(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(lm()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(E,A){let K=typeof E=="string"?E:E.type;if(!K)throw new Error(Bt(12));if(K in l.sliceCaseReducersByType)throw new Error(Bt(13));return l.sliceCaseReducersByType[K]=A,d},addMatcher(E,A){return l.sliceMatchers.push({matcher:E,reducer:A}),d},exposeAction(E,A){return l.actionCreators[E]=A,d},exposeCaseReducer(E,A){return l.sliceCaseReducersByName[E]=A,d}};a.forEach(E=>{let A=s[E],K={reducerName:E,type:om(n,E),createNotation:typeof r.reducers=="function"};dm(A)?pm(K,A,d,e):cm(K,A,d)});function u(){let[E={},A=[],K=void 0]=typeof r.extraReducers=="function"?dc(r.extraReducers):[r.extraReducers],U={...E,...l.sliceCaseReducersByType};return Yh(r.initialState,ye=>{for(let Le in U)ye.addCase(Le,U[Le]);for(let Le of l.sliceMatchers)ye.addMatcher(Le.matcher,Le.reducer);for(let Le of A)ye.addMatcher(Le.matcher,Le.reducer);K&&ye.addDefaultCase(K)})}let p=E=>E,f=new Map,y=new WeakMap,w;function T(E,A){return w||(w=u()),w(E,A)}function b(){return w||(w=u()),w.getInitialState()}function k(E,A=!1){function K(ye){let Le=ye[E];return typeof Le>"u"&&A&&(Le=ao(y,K,b)),Le}function U(ye=p){return ao(ao(f,A,()=>new WeakMap),ye,()=>{let Le={};for(let[Pn,mt]of Object.entries(r.selectors??{}))Le[Pn]=am(mt,ye,()=>ao(y,ye,b),A);return Le})}return{reducerPath:E,getSelectors:U,get selectors(){return U(K)},selectSlice:K}}let H={name:n,reducer:T,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...k(o),injectInto(E,{reducerPath:A,...K}={}){let U=A??o;return E.inject({reducerPath:U,reducer:T},K),{...H,...k(U,!0)}}};return H}}function am(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var pc=sm();function lm(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function cm({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!um(r))throw new Error(Bt(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?fi(t,s):fi(t))}function dm(t){return t._reducerDefinitionType==="asyncThunk"}function um(t){return t._reducerDefinitionType==="reducerWithPrepare"}function pm({type:t,reducerName:e},i,r,n){if(!n)throw new Error(Bt(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:d,options:u}=i,p=n(t,o,u);r.exposeAction(e,p),s&&r.addCase(p.fulfilled,s),a&&r.addCase(p.pending,a),l&&r.addCase(p.rejected,l),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(e,{fulfilled:s||lo,pending:a||lo,rejected:l||lo,settled:d||lo})}function lo(){}var fc="listener",hc="completed",mc="cancelled",hy=`task-${mc}`,my=`task-${hc}`,gy=`${fc}-${mc}`,yy=`${fc}-${hc}`;var{assign:gc}=Object;var ma="listenerMiddleware";var fm=gc(fi(`${ma}/add`),{withTypes:()=>fm}),vy=fi(`${ma}/removeAll`),hm=gc(fi(`${ma}/remove`),{withTypes:()=>hm});function Bt(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var mm=$n(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),co=class extends mm(Object){};window.ftReduxStores||(window.ftReduxStores={});var yc=class t extends co{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(Hn(o))return o;if(n==null)return;let s=pc({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=cc({reducer:(l,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let u=Zr(s.getInitialState());for(let p of d.keeping)u[p]=(l??u)[p];return u}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...d.overwrites};return s.reducer(l,d)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus,n.deprecatedKeys)}constructor(e,i,r,n){super(),this.reduxSlice=e,this.reduxStore=i,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Fn,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let o=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,l)=>{let d=a,u=s[d];return u?(...p)=>{let f=u(...p.map(o));return this.reduxStore.dispatch(f),f}:p=>{let f=d,y=this.getState()[f];cr(y,p)||this.setState({[f]:o(p)})}}}),this.eventBus=r??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var uo=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var po=c(h()),gm="ft-app-info",st=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};st.eventName="authentication-change";var ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ki.eventName="ui-locale-changed";var ym={session:(t,e)=>{(0,po.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>v.dispatchEvent(new st(e.payload)),0))}},v=po.FtReduxStore.get({name:gm,reducers:ym,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var vc=c(h()),fo=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},xc=(0,vc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(v)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>uo.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return fo([(0,ga.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),fo([(0,ga.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),fo([Zs({store:v.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),fo([Zs({store:v.name})],e.prototype,"uiLocale",void 0),e});var bc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(bc||(bc={}));var Sc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Sc||(Sc={}));var wc;(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"})(wc||(wc={}));var Ec;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ec||(Ec={}));var Ac;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ac||(Ac={}));var _c;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(_c||(_c={}));var Cc;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(Cc||(Cc={}));var Tc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Tc||(Tc={}));var Rc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Rc||(Rc={}));var Oc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Oc||(Oc={}));var kc;(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",t.DOC_DIFF="DOC_DIFF"})(kc||(kc={}));var Dc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Dc||(Dc={}));var Ic;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ic||(Ic={}));var Lc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Lc||(Lc={}));var Pc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Pc||(Pc={}));var Ee;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ee||(Ee={}));var Mc;(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"})(Mc||(Mc={}));var Nc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Nc||(Nc={}));var $c;(function(t){t.ASC="ASC",t.DESC="DESC"})($c||($c={}));var Fc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Fc||(Fc={}));var Uc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Uc||(Uc={}));var Vc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Vc||(Vc={}));var ho;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ho||(ho={}));var Bc;(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"})(Bc||(Bc={}));var Hc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Hc||(Hc={}));var zc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(zc||(zc={}));var jc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(jc||(jc={}));var Wc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Wc||(Wc={}));var re;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(re||(re={}));var gt;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(gt||(gt={}));var Kc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Kc||(Kc={}));var Gc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Gc||(Gc={}));var qc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(qc||(qc={}));var Yc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Yc||(Yc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Xc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Xc||(Xc={}));var Jc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Jc||(Jc={}));var Qc;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(Qc||(Qc={}));var ed;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ed||(ed={}));var td;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(td||(td={}));var id;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(id||(id={}));var rd;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(rd||(rd={}));var mo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(mo||(mo={}));var vm={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN,re.BEHAVIOR_DATA_USER],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function nd(t,e){return t===e||(vm[t]??[]).some(i=>nd(i,e))}function hr(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(r=>nd(r,e))}function od(t,...e){return t==null?!1:e.some(i=>hr(t,i))}var bo=c(h());var ya=c(h());var Ht=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=v.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=v.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var mr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ht.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ht.await()}};var Oe=class extends mr{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new ya.CacheRegistry,this.cache=e?n.commonCache:new ya.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var go=class extends Oe{async listMySearches(){let{session:e}=v.getState();return hr(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var yo=class extends Oe{async listMyBookmarks(){let e=v.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var vo=class extends Oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var xo=class extends Oe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var xm="ft-user-assets",bm={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(gt).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;xa(t,i,[...va(t,i),n]),sd(t,i,1,r),ad(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;xa(t,i,va(t,i).map(n=>n.id===r.id?r:n)),ad(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;xa(t,i,va(t,i).filter(o=>o.id!==n)),sd(t,i,-1,r)}},ld={[gt.SEARCHES]:"savedSearches",[gt.BOOKMARKS]:"bookmarks",[gt.BOOKS]:void 0,[gt.COLLECTIONS]:void 0},va=(t,e)=>{var i;let r=ld[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},xa=(t,e,i)=>{let r=ld[e];r&&(t[r]=i)},sd=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===gt.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},ad=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},Ve=bo.FtReduxStore.get({name:xm,reducers:bm,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(gt).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ba=class{constructor(e=new vo,i=new xo){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=v.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yo,this.savedSearchesService=new go,v.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=v.getState();(0,bo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ve.actions.clearAssetCount(),Ve.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ve.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ve.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ve.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ve.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&Ve.getState().assetCounts.allAsset[e]!==i.count&&Ve.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&Ve.getState().assetCounts.bookmarkByMap[e]!==i.count&&Ve.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(Ve.getState().assetCounts.bookmarkByMap).length!==0;e===gt.BOOKMARKS&&i&&Ve.actions.clearBookmarkCountByMap(),Ve.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 i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ve.actions.bookmarks(i)}}},Sm=new ba;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Sm);var Sa=class{addCommand(e,i=!1){v.commands.add(e,i)}consumeCommand(e){return v.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Sa;var yt=c(h());var cd,gr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},wm=Symbol("clearAfterUnitTest"),So=class extends(0,yt.withEventBus)(Oe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[cd]=()=>{this.defaultMessages={},this.cache=new yt.CacheRegistry,this.listeners={}},this.currentUiLocale=v.getState().uiLocale,v.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=v.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,yt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new yt.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof yt.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new gr({loadedContexts:e})),this.dispatchEvent(new gr({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new gr({loadedContexts:[e]})),this.dispatchEvent(new gr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,yt.delay)(0).then(()=>r()).catch(()=>null)))}};cd=wm;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends So{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends So{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var yr=window.FluidTopicsI18nService,wo=window.FluidTopicsCustomI18nService;var dd=c(h()),wa=class{highlightHtml(e,i,r){(0,dd.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new wa;var ud=c(h());var Ea=class{isDate(e){var i,r,n,o;return(o=(r=((n=(i=v.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||r===void 0?void 0:r.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return ud.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:v.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Ea;var pd=c(h());var an=class{static get(e,i,{baseUrl:r,localesConfiguration:n,availableContentLocales:o}=v.getState()){var s;if(!i||o.length>0&&!o.some(a=>a.lang===i)){let a=n?.defaultLocales.defaultContentLocale;i=a?`${a.lang}-${a.region}`:(s=o[0])===null||s===void 0?void 0:s.lang}return new pd.SearchPlaceConverter(r,e??20,n?.allLanguagesAllowed,i,o)}};var Aa=class{urlToSearchRequest(e){return an.get().parse(e)}searchRequestToUrl(e){return an.get().serialize(e)}};window.FluidTopicsUrlService=new Aa;var Qt=c(h());var Di=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Di.eventName="before-location-change";var Ii=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Ii.eventName="change";var _a=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},fd=new _a;var Eo=class t extends Qt.WithEventBus{static build(){return new t(window.history,fd,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Qt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Ii(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),d=new Di(l);this.dispatchEvent(d);let u=i(),p={...u===this.currentIndex?this.currentState:void 0,...o,index:u,href:d.detail.nextLocation.href};r.apply(n,[p,s,p.href]),this.setCurrentState(p,!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 i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(Di.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Di.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Ii.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Ii.eventName,e)}currentItem(){return(0,Qt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Qt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,Qt.deepCopy)(i.find(r=>e(r)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Qt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Eo.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var Ao=class{constructor(){this.storeListeners=[]}store(e,i){if(this.isAuthenticated())return;let r=JSON.stringify(i);window.localStorage.setItem(e,r),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:r,storageArea:window.localStorage}))}get(e){var i,r;if(!this.isAuthenticated())return(r=JSON.parse((i=window.localStorage.getItem(e))!==null&&i!==void 0?i:"null"))!==null&&r!==void 0?r:void 0}addStoreListener(e,i){let r=n=>{n.key===e()&&!this.isAuthenticated()&&i()};this.storeListeners.push(r),window.addEventListener("storage",r)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var hd=c(S());var md=hd.css`
|
|
2
|
+
`;var yd=c(S()),Be=c($()),Li=c(h());var zt=c(h());function gd(t,e){let{authenticationRequired:i,session:r}=v.getState();return i&&!r?.sessionAuthenticated?Promise.resolve(e):t()}var _o=class extends mr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Ca=class t extends zt.FtStateManager{static build(e){return new t(v,e)}constructor(e,i){super(),this.store=e,this.cache=new zt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new _o,this.knownContexts=new zt.AbstractRegistry,this.knownCustomComponents=new zt.AbstractRegistry,this.cleanSessionDebouncer=new zt.Debouncer,this.reloadConfiguration=()=>{var r;(r=this.cache)===null||r===void 0||r.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new zt.Debouncer(500),this.apiProvider=i??(()=>Ht.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(st.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(st.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let i=await this.apiProvider().getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},i.idleTimeoutInMillis),i});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let i=await this.cache.get("availableContentLocales",()=>gd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=i.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,i){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:i}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ki(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return od(v.getState().session,...e)}},at=Ca.build();var Ae=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},X=class extends Li.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=at,this.contextRoot=new Gr}render(){return yd.html`
|
|
3
3
|
<slot></slot>
|
|
4
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var i;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>yr.addContext(r)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};X.elementDefinitions={};X.styles=
|
|
4
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var i;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>yr.addContext(r)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};X.elementDefinitions={};X.styles=md;Ae([(0,Be.property)()],X.prototype,"baseUrl",void 0);Ae([(0,Be.property)()],X.prototype,"tenantId",void 0);Ae([(0,Be.property)()],X.prototype,"apiIntegrationIdentifier",void 0);Ae([(0,Be.property)()],X.prototype,"apiIntegrationAppVersion",void 0);Ae([(0,Be.property)()],X.prototype,"uiLocale",void 0);Ae([(0,Li.jsonProperty)(null)],X.prototype,"availableUiLocales",void 0);Ae([(0,Li.jsonProperty)(null)],X.prototype,"metadataConfiguration",void 0);Ae([(0,Be.property)({type:Boolean})],X.prototype,"editorMode",void 0);Ae([(0,Be.property)({type:Boolean})],X.prototype,"noCustom",void 0);Ae([(0,Be.property)({type:Boolean})],X.prototype,"openExternalDocumentInNewTab",void 0);Ae([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],X.prototype,"noCustomComponent",void 0);Ae([(0,Be.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],X.prototype,"noCustomCode",void 0);Ae([(0,Be.property)({type:Boolean})],X.prototype,"withManualResources",void 0);Ae([(0,Be.property)({type:Boolean})],X.prototype,"navigatorOnline",void 0);Ae([(0,Be.property)({type:Boolean})],X.prototype,"forcedOffline",void 0);Ae([(0,Be.property)({type:Boolean})],X.prototype,"authenticationRequired",void 0);Ae([(0,Li.jsonProperty)([])],X.prototype,"messageContexts",void 0);Ae([(0,Li.jsonProperty)(void 0)],X.prototype,"session",void 0);var xd=c(h());var vd={"ft-app-context":X};(0,xd.customElements)(vd);var vr=class extends bd.FtStateManager{constructor(e,i){super(),this.store=e,this.service=i,v.addEventListener(st.eventName,()=>{i.clearCache(),this.clear()})}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var wd=c(h()),hi;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(hi||(hi={}));var Sd;(function(t){t.FIT_TO_CONTAINER="fit-to-container",t.ZOOM_REAL_SIZE="zoom-real-size",t.ZOOM_IN="zoom-in",t.ZOOM_OUT="zoom-out",t.ROTATE_LEFT="rotate-left",t.ROTATE_RIGHT="rotate-right"})(Sd||(Sd={}));var Pi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:(0,wd.deepCopy)(e),composed:!0,bubbles:!0})}};Pi.eventName="ft-viewer-loaded";var Co=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};Co.eventName="ft-viewer-not-found";var To=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};To.eventName="ft-viewer-unauthorized";var Ro=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};Ro.eventName="ft-viewer-forbidden";var Oo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e,composed:!0,bubbles:!0})}};Oo.eventName="ft-viewer-load-error";function ko(t,e){let i=e;i.status===401?t.dispatchEvent(new To):i.status===403?t.dispatchEvent(new Ro):i.status===404?t.dispatchEvent(new Co):t.dispatchEvent(new Oo(e))}var Do=class extends Oe{getAsset(e,i,r){let n={[hi.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,i),[hi.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,i),[hi.RESOURCE]:()=>this.api.getMapResource(e,i)};return this.cache.get(i,n[r])}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Io=class t extends vr{static build(e){return new t(Nn(e),new Do)}constructor(e,i){super(e,i),this.store=e,this.service=i}async load(){let{documentId:e,assetId:i,origin:r}=this.store.getState();if(e&&i&&r){let n=await this.service.getAsset(e,i,r);this.store.actions.document(n.holder),this.store.actions.descriptor({id:n.id,portalUrl:n.portalUrl,filename:n.filename,fingerprint:n.fingerprint,displayName:n.displayName,alt:n.displayName,mimeType:n.mimeType,size:n.size,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:n.contentUrl}),this.store.actions.watermark(n.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(e,i,r){return this.store.actions.documentId(e),this.store.actions.assetId(i),this.store.actions.origin(r),await this.reload(),this.store.getState()}};var Lo=c($());var ln=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ei=class extends xr.FtLitElementRedux{constructor(){super(...arguments),this.viewerStateManager=Io.build(this.id||(0,xr.randomId)(6))}render(){return Ed.html`
|
|
5
5
|
<slot></slot>
|
|
6
|
-
`}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.load()}async load(){try{let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new Pi(e))}catch(e){ko(this,e)}}connectedCallback(){super.connectedCallback(),at.knownContexts.register(this),this.addStore(v),this.load()}disconnectedCallback(){super.disconnectedCallback(),at.knownContexts.unregister(this)}onAuthenticationChange(){this.viewerStateManager.reload()}};ln([(0,
|
|
6
|
+
`}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.load()}async load(){try{let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new Pi(e))}catch(e){ko(this,e)}}connectedCallback(){super.connectedCallback(),at.knownContexts.register(this),this.addStore(v),this.load()}disconnectedCallback(){super.disconnectedCallback(),at.knownContexts.unregister(this)}onAuthenticationChange(){this.viewerStateManager.reload()}};ln([(0,Lo.property)()],ei.prototype,"documentId",void 0);ln([(0,Lo.property)()],ei.prototype,"assetId",void 0);ln([(0,Lo.property)()],ei.prototype,"origin",void 0);ln([qr({context:qs})],ei.prototype,"viewerStateManager",void 0);ln([(0,xr.reduxEventListener)({eventName:st.eventName})],ei.prototype,"onAuthenticationChange",null);var Ad=c(h()),Ge=class extends Ad.FtLitElementRedux{};var Ct=c(S()),zi=c(h()),Tt=c($());var _d=c(S()),Cd=c(h()),Em={position:Cd.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Td=_d.css`
|
|
7
7
|
:host {
|
|
8
8
|
position: absolute;
|
|
9
9
|
top: 0;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.ft-watermark-container {
|
|
17
|
-
position: ${
|
|
17
|
+
position: ${Em.position};
|
|
18
18
|
top: 0;
|
|
19
19
|
text-align: center;
|
|
20
20
|
}
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
.ft-watermark {
|
|
23
23
|
z-index: 79;
|
|
24
24
|
}
|
|
25
|
-
`;var Er=c(S()),Hi=c($());var
|
|
26
|
-
\f\r]`,cn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
27
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ld=/'/g,Id=/"/g,$d=/^(?:script|style|textarea|title)$/i,Ma=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),Fd=Ma(1),Ud=Ma(2),Vd=Ma(3),un=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),Pd=new WeakMap,Ni=$i.createTreeWalker($i,129);function Bd(t,e){if(!Pa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Od!==void 0?Od.createHTML(e):e}var _m=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=cn;for(let a=0;a<i;a++){let l=t[a],d,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===cn?u[1]==="!--"?s=kd:u[1]!==void 0?s=Dd:u[2]!==void 0?($d.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Mi):u[3]!==void 0&&(s=Mi):s===Mi?u[0]===">"?(s=n??cn,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Mi:u[3]==='"'?Id:Ld):s===Id||s===Ld?s=Mi:s===kd||s===Dd?s=cn:(s=Mi,n=void 0);let y=s===Mi&&t[a+1].startsWith("/>")?" ":"";o+=s===cn?l+Em:p>=0?(r.push(d),l.slice(0,p)+Md+l.slice(p)+mi+y):l+mi+(p===-2?a:y)}return[Bd(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},pn=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[d,u]=_m(e,i);if(this.el=t.createElement(d,r),Ni.currentNode=this.el.content,i===2||i===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Ni.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Md)){let f=u[s++],y=n.getAttribute(p).split(mi),w=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:w[2],strings:y,ctor:w[1]==="."?Oa:w[1]==="?"?ka:w[1]==="@"?Da:wr}),n.removeAttribute(p)}else p.startsWith(mi)&&(l.push({type:6,index:o}),n.removeAttribute(p));if($d.test(n.tagName)){let p=n.textContent.split(mi),f=p.length-1;if(f>0){n.textContent=Po?Po.emptyScript:"";for(let y=0;y<f;y++)n.append(p[y],Mo()),Ni.nextNode(),l.push({type:2,index:++o});n.append(p[f],Mo())}}}else if(n.nodeType===8)if(n.data===Nd)l.push({type:2,index:o});else{let p=-1;for(;(p=n.data.indexOf(mi,p+1))!==-1;)l.push({type:7,index:o}),p+=mi.length-1}o++}}static createElement(e,i){let r=$i.createElement("template");return r.innerHTML=e,r}};function Sr(t,e,i=t,r){if(e===un)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=dn(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Sr(t,n._$AS(t,e.values),n,r)),e}var Ra=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??$i).importNode(i,!0);Ni.currentNode=n;let o=Ni.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new No(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new La(o,this,e)),this._$AV.push(d),l=r[++a]}s!==l?.index&&(o=Ni.nextNode(),s++)}return Ni.currentNode=$i,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},No=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=he,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Sr(this,e,i),dn(e)?e===he||e==null||e===""?(this._$AH!==he&&this._$AR(),this._$AH=he):e!==this._$AH&&e!==un&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Am(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==he&&dn(this._$AH)?this._$AA.nextSibling.data=e:this.T($i.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=pn.createElement(Bd(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new Ra(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=Pd.get(e.strings);return i===void 0&&Pd.set(e.strings,i=new pn(e)),i}k(e){Pa(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Mo()),this.O(Mo()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Rd(e).nextSibling;Rd(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},wr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=he,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=he}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Sr(this,e,i,0),s=!dn(e)||e!==this._$AH&&e!==un,s&&(this._$AH=e);else{let a=e,l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Sr(this,a[r+l],i,l),d===un&&(d=this._$AH[l]),s||=!dn(d)||d!==this._$AH[l],d===he?e=he:e!==he&&(e+=(d??"")+o[l+1]),this._$AH[l]=d}s&&!n&&this.j(e)}j(e){e===he?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Oa=class extends wr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===he?void 0:e}},ka=class extends wr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==he)}},Da=class extends wr{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Sr(this,e,i,0)??he)===un)return;let r=this._$AH,n=e===he&&r!==he||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==he&&(r===he||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},La=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Sr(this,e)}};var Cm=Ia.litHtmlPolyfillSupport;Cm?.(pn,No),(Ia.litHtmlVersions??=[]).push("3.3.3");var zd=Symbol.for(""),Tm=t=>{if(t?.r===zd)return t?._$litStatic$},Na=t=>({_$litStatic$:t,r:zd});var Hd=new Map,$a=t=>(e,...i)=>{let r=i.length,n,o,s=[],a=[],l,d=0,u=!1;for(;d<r;){for(l=e[d];d<r&&(o=i[d],(n=Tm(o))!==void 0);)l+=n+e[++d],u=!0;d!==r&&a.push(o),s.push(l),d++}if(d===r&&s.push(e[r]),u){let p=s.join("$$lit$$");(e=Hd.get(p))===void 0&&(s.raw=s,Hd.set(p,e=s)),i=a}return t(e,...i)},Fa=$a(Fd),wb=$a(Ud),Eb=$a(Vd);var Ua=c($()),tu=c(h());var V;(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"})(V||(V={}));var vt=c(S()),m=c(h()),jd=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),ri=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),x={fontFamily:ri,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ti={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",jd),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",x.textDecoration,"inherit")},ii={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",jd),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",x.textDecoration,"inherit")},Fi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",x.textDecoration,"inherit")},Ui={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",x.textDecoration,"inherit")},lt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",x.textDecoration,"inherit")},ct={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",x.textDecoration,"inherit")},qe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",x.textDecoration,"inherit")},Vi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",x.textDecoration,"inherit")},Bi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",x.textDecoration,"inherit")},Me={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",x.textDecoration,"inherit")},Wd=vt.css`
|
|
25
|
+
`;var Er=c(S()),Hi=c($());var ou=c(br()),su=c(h());var La=globalThis,Od=t=>t,Po=La.trustedTypes,kd=Po?Po.createPolicy("lit-html",{createHTML:t=>t}):void 0,Nd="$lit$",mi=`lit$${Math.random().toFixed(9).slice(2)}$`,$d="?"+mi,Am=`<${$d}>`,$i=document,Mo=()=>$i.createComment(""),dn=t=>t===null||typeof t!="object"&&typeof t!="function",Pa=Array.isArray,_m=t=>Pa(t)||typeof t?.[Symbol.iterator]=="function",Ta=`[
|
|
26
|
+
\f\r]`,cn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Dd=/-->/g,Id=/>/g,Mi=RegExp(`>|${Ta}(?:([^\\s"'>=/]+)(${Ta}*=${Ta}*(?:[^
|
|
27
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ld=/'/g,Pd=/"/g,Fd=/^(?:script|style|textarea|title)$/i,Ma=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),Ud=Ma(1),Vd=Ma(2),Bd=Ma(3),un=Symbol.for("lit-noChange"),he=Symbol.for("lit-nothing"),Md=new WeakMap,Ni=$i.createTreeWalker($i,129);function Hd(t,e){if(!Pa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return kd!==void 0?kd.createHTML(e):e}var Cm=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=cn;for(let a=0;a<i;a++){let l=t[a],d,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===cn?u[1]==="!--"?s=Dd:u[1]!==void 0?s=Id:u[2]!==void 0?(Fd.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Mi):u[3]!==void 0&&(s=Mi):s===Mi?u[0]===">"?(s=n??cn,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Mi:u[3]==='"'?Pd:Ld):s===Pd||s===Ld?s=Mi:s===Dd||s===Id?s=cn:(s=Mi,n=void 0);let y=s===Mi&&t[a+1].startsWith("/>")?" ":"";o+=s===cn?l+Am:p>=0?(r.push(d),l.slice(0,p)+Nd+l.slice(p)+mi+y):l+mi+(p===-2?a:y)}return[Hd(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},pn=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[d,u]=Cm(e,i);if(this.el=t.createElement(d,r),Ni.currentNode=this.el.content,i===2||i===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Ni.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Nd)){let f=u[s++],y=n.getAttribute(p).split(mi),w=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:w[2],strings:y,ctor:w[1]==="."?Oa:w[1]==="?"?ka:w[1]==="@"?Da:wr}),n.removeAttribute(p)}else p.startsWith(mi)&&(l.push({type:6,index:o}),n.removeAttribute(p));if(Fd.test(n.tagName)){let p=n.textContent.split(mi),f=p.length-1;if(f>0){n.textContent=Po?Po.emptyScript:"";for(let y=0;y<f;y++)n.append(p[y],Mo()),Ni.nextNode(),l.push({type:2,index:++o});n.append(p[f],Mo())}}}else if(n.nodeType===8)if(n.data===$d)l.push({type:2,index:o});else{let p=-1;for(;(p=n.data.indexOf(mi,p+1))!==-1;)l.push({type:7,index:o}),p+=mi.length-1}o++}}static createElement(e,i){let r=$i.createElement("template");return r.innerHTML=e,r}};function Sr(t,e,i=t,r){if(e===un)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=dn(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Sr(t,n._$AS(t,e.values),n,r)),e}var Ra=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??$i).importNode(i,!0);Ni.currentNode=n;let o=Ni.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new No(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new Ia(o,this,e)),this._$AV.push(d),l=r[++a]}s!==l?.index&&(o=Ni.nextNode(),s++)}return Ni.currentNode=$i,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},No=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=he,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Sr(this,e,i),dn(e)?e===he||e==null||e===""?(this._$AH!==he&&this._$AR(),this._$AH=he):e!==this._$AH&&e!==un&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):_m(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==he&&dn(this._$AH)?this._$AA.nextSibling.data=e:this.T($i.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=pn.createElement(Hd(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new Ra(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=Md.get(e.strings);return i===void 0&&Md.set(e.strings,i=new pn(e)),i}k(e){Pa(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Mo()),this.O(Mo()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Od(e).nextSibling;Od(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},wr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=he,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=he}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Sr(this,e,i,0),s=!dn(e)||e!==this._$AH&&e!==un,s&&(this._$AH=e);else{let a=e,l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Sr(this,a[r+l],i,l),d===un&&(d=this._$AH[l]),s||=!dn(d)||d!==this._$AH[l],d===he?e=he:e!==he&&(e+=(d??"")+o[l+1]),this._$AH[l]=d}s&&!n&&this.j(e)}j(e){e===he?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Oa=class extends wr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===he?void 0:e}},ka=class extends wr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==he)}},Da=class extends wr{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Sr(this,e,i,0)??he)===un)return;let r=this._$AH,n=e===he&&r!==he||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==he&&(r===he||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ia=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Sr(this,e)}};var Tm=La.litHtmlPolyfillSupport;Tm?.(pn,No),(La.litHtmlVersions??=[]).push("3.3.3");var jd=Symbol.for(""),Rm=t=>{if(t?.r===jd)return t?._$litStatic$},Na=t=>({_$litStatic$:t,r:jd});var zd=new Map,$a=t=>(e,...i)=>{let r=i.length,n,o,s=[],a=[],l,d=0,u=!1;for(;d<r;){for(l=e[d];d<r&&(o=i[d],(n=Rm(o))!==void 0);)l+=n+e[++d],u=!0;d!==r&&a.push(o),s.push(l),d++}if(d===r&&s.push(e[r]),u){let p=s.join("$$lit$$");(e=zd.get(p))===void 0&&(s.raw=s,zd.set(p,e=s)),i=a}return t(e,...i)},Fa=$a(Ud),Eb=$a(Vd),Ab=$a(Bd);var Ua=c($()),iu=c(h());var V;(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"})(V||(V={}));var vt=c(S()),m=c(h()),Wd=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),ri=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),x={fontFamily:ri,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},ti={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Wd),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",x.textDecoration,"inherit")},ii={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Wd),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",x.textDecoration,"inherit")},Fi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",x.textDecoration,"inherit")},Ui={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",x.textDecoration,"inherit")},lt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",x.textDecoration,"inherit")},ct={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",x.textDecoration,"inherit")},qe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",x.textDecoration,"inherit")},Vi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",x.textDecoration,"inherit")},Bi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",x.textDecoration,"inherit")},Me={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ri),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",x.textDecoration,"inherit")},Kd=vt.css`
|
|
28
28
|
.ft-typography--title {
|
|
29
29
|
font-family: ${ti.fontFamily};
|
|
30
30
|
font-size: ${ti.fontSize};
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
text-transform: ${ti.textTransform};
|
|
35
35
|
text-decoration: ${ti.textDecoration};
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,Gd=vt.css`
|
|
38
38
|
.ft-typography--title-dense {
|
|
39
39
|
font-family: ${ii.fontFamily};
|
|
40
40
|
font-size: ${ii.fontSize};
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
text-transform: ${ii.textTransform};
|
|
45
45
|
text-decoration: ${ii.textDecoration};
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,qd=vt.css`
|
|
48
48
|
.ft-typography--subtitle1 {
|
|
49
49
|
font-family: ${Fi.fontFamily};
|
|
50
50
|
font-size: ${Fi.fontSize};
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
text-transform: ${Fi.textTransform};
|
|
55
55
|
text-decoration: ${Fi.textDecoration};
|
|
56
56
|
}
|
|
57
|
-
`,
|
|
57
|
+
`,Yd=vt.css`
|
|
58
58
|
.ft-typography--subtitle2 {
|
|
59
59
|
font-family: ${Ui.fontFamily};
|
|
60
60
|
font-size: ${Ui.fontSize};
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
text-transform: ${lt.textTransform};
|
|
76
76
|
text-decoration: ${lt.textDecoration};
|
|
77
77
|
}
|
|
78
|
-
`,
|
|
78
|
+
`,Zd=vt.css`
|
|
79
79
|
.ft-typography--body2 {
|
|
80
80
|
font-family: ${ct.fontFamily};
|
|
81
81
|
font-size: ${ct.fontSize};
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
text-transform: ${qe.textTransform};
|
|
96
96
|
text-decoration: ${qe.textDecoration};
|
|
97
97
|
}
|
|
98
|
-
`,
|
|
98
|
+
`,Xd=vt.css`
|
|
99
99
|
.ft-typography--breadcrumb {
|
|
100
100
|
font-family: ${Vi.fontFamily};
|
|
101
101
|
font-size: ${Vi.fontSize};
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
text-transform: ${Vi.textTransform};
|
|
106
106
|
text-decoration: ${Vi.textDecoration};
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,Jd=vt.css`
|
|
109
109
|
.ft-typography--overline {
|
|
110
110
|
font-family: ${Bi.fontFamily};
|
|
111
111
|
font-size: ${Bi.fontSize};
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
text-transform: ${Bi.textTransform};
|
|
116
116
|
text-decoration: ${Bi.textDecoration};
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`,Qd=vt.css`
|
|
119
119
|
.ft-typography--button {
|
|
120
120
|
font-family: ${Me.fontFamily};
|
|
121
121
|
font-size: ${Me.fontSize};
|
|
@@ -125,11 +125,11 @@
|
|
|
125
125
|
text-transform: ${Me.textTransform};
|
|
126
126
|
text-decoration: ${Me.textDecoration};
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,eu=vt.css`
|
|
129
129
|
.ft-typography {
|
|
130
130
|
vertical-align: inherit;
|
|
131
131
|
}
|
|
132
|
-
`;var
|
|
132
|
+
`;var tu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},F=class extends iu.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}render(){return this.element?Fa`
|
|
133
133
|
<${Na(this.element)}
|
|
134
134
|
part="text"
|
|
135
135
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
</${Na(this.element)}>
|
|
138
138
|
`:Fa`
|
|
139
139
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
140
|
-
`}};F.styles=[
|
|
140
|
+
`}};F.styles=[Kd,Gd,qd,Yd,gi,Zd,$o,Xd,Jd,Qd,eu];tu([(0,Ua.property)()],F.prototype,"element",void 0);tu([(0,Ua.property)()],F.prototype,"variant",void 0);var nu=c(h());var ru={"ft-typography":F};(0,nu.customElements)(ru);var Fo=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},_t=class extends su.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,i,r;return this.watermark?Er.html`
|
|
141
141
|
<style>
|
|
142
142
|
.ft-watermark {
|
|
143
143
|
height: ${this.height}px;
|
|
@@ -152,11 +152,11 @@
|
|
|
152
152
|
transform="rotate(-45)"
|
|
153
153
|
fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
|
|
154
154
|
fill-opacity="${(i=this.watermark)===null||i===void 0?void 0:i.opacity}%">
|
|
155
|
-
${(0,
|
|
155
|
+
${(0,ou.repeat)(((r=this.watermark)===null||r===void 0?void 0:r.text)||[],n=>Er.svg`<tspan x="0" dy="1.2em">${n}</tspan>`)}
|
|
156
156
|
</text>
|
|
157
157
|
</svg>
|
|
158
158
|
</div>
|
|
159
|
-
`:Er.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let i=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",i.x+" "+i.y+" "+i.width+" "+i.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};_t.styles=[
|
|
159
|
+
`:Er.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let i=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",i.x+" "+i.y+" "+i.width+" "+i.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};_t.styles=[Td,gi];Fo([(0,Hi.query)(".ft-watermark")],_t.prototype,"svg",void 0);Fo([(0,Hi.property)({attribute:!1})],_t.prototype,"watermark",void 0);Fo([(0,Hi.property)({attribute:!1})],_t.prototype,"heightReference",void 0);Fo([(0,Hi.state)()],_t.prototype,"height",void 0);var lu=c(h());var au={"ft-content-watermark":_t};(0,lu.customElements)(au);var du=c(Va()),dt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},le=class extends(0,zi.withConditionalVisibility)(Ge){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return Ct.html`
|
|
160
160
|
${this.renderContent()}
|
|
161
161
|
<ft-content-watermark part="watermark"
|
|
162
162
|
.watermark=${this.watermark}
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
alt="${(i=this.descriptor)===null||i===void 0?void 0:i.alt}"
|
|
172
172
|
@load=${this.onImageLoad}>
|
|
173
173
|
`:Ct.html`
|
|
174
|
-
${(0,
|
|
174
|
+
${(0,du.unsafeHTML)(this.svgContent)}
|
|
175
175
|
`}
|
|
176
176
|
|
|
177
177
|
</div>
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
max-height: 100%;
|
|
226
226
|
border: none;
|
|
227
227
|
}
|
|
228
|
-
`;dt([(0,zi.redux)({store:"viewer"})],le.prototype,"descriptor",void 0);dt([(0,Tt.state)()],le.prototype,"viewerType",void 0);dt([(0,Tt.state)()],le.prototype,"inlineSvgAllowed",void 0);dt([(0,zi.redux)({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],le.prototype,"zoom",void 0);dt([(0,zi.redux)({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],le.prototype,"rotation",void 0);dt([(0,zi.redux)({store:"viewer"})],le.prototype,"watermark",void 0);dt([(0,Tt.query)("img")],le.prototype,"image",void 0);dt([(0,Tt.query)("svg")],le.prototype,"svg",void 0);dt([(0,Tt.query)(".image-viewer")],le.prototype,"imageViewer",void 0);dt([(0,Tt.query)(".image-container")],le.prototype,"imageContainer",void 0);dt([(0,Tt.state)()],le.prototype,"imageHeight",void 0);dt([(0,Tt.state)()],le.prototype,"imageWidth",void 0);dt([(0,Tt.state)()],le.prototype,"svgContent",void 0);var Uo=class extends Ft(le){};var
|
|
228
|
+
`;dt([(0,zi.redux)({store:"viewer"})],le.prototype,"descriptor",void 0);dt([(0,Tt.state)()],le.prototype,"viewerType",void 0);dt([(0,Tt.state)()],le.prototype,"inlineSvgAllowed",void 0);dt([(0,zi.redux)({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],le.prototype,"zoom",void 0);dt([(0,zi.redux)({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],le.prototype,"rotation",void 0);dt([(0,zi.redux)({store:"viewer"})],le.prototype,"watermark",void 0);dt([(0,Tt.query)("img")],le.prototype,"image",void 0);dt([(0,Tt.query)("svg")],le.prototype,"svg",void 0);dt([(0,Tt.query)(".image-viewer")],le.prototype,"imageViewer",void 0);dt([(0,Tt.query)(".image-container")],le.prototype,"imageContainer",void 0);dt([(0,Tt.state)()],le.prototype,"imageHeight",void 0);dt([(0,Tt.state)()],le.prototype,"imageWidth",void 0);dt([(0,Tt.state)()],le.prototype,"svgContent",void 0);var Uo=class extends Ft(le){};var uu=c(h()),Ar=c(S());var Om=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ni=class extends Ge{render(){return this.filename?Ar.html`
|
|
229
229
|
<ft-typography variant="${V.body1}" part="filename">
|
|
230
230
|
${this.filename}
|
|
231
231
|
</ft-typography>
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
[part="filename"]::part(text) {
|
|
234
234
|
margin: unset;
|
|
235
235
|
}
|
|
236
|
-
`;
|
|
236
|
+
`;Om([(0,uu.redux)({store:"viewer",selector:({descriptor:t})=>t?.filename})],ni.prototype,"filename",void 0);var Vo=class extends Ft(ni){};var pu=c(h()),_r=c(S());var km=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ji=class extends Ge{render(){return this.displayName?_r.html`
|
|
237
237
|
<ft-typography variant="${V.title}" part="display-name" element="h2">
|
|
238
238
|
${this.displayName}
|
|
239
239
|
</ft-typography>
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
[part="display-name"]::part(text) {
|
|
242
242
|
margin: unset;
|
|
243
243
|
}
|
|
244
|
-
`;
|
|
244
|
+
`;km([(0,pu.redux)({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ji.prototype,"displayName",void 0);var Bo=class extends Ft(ji){};var mn=c(h()),zo=c(S());var fu=c(S()),Rt=c(h()),ce={size:Rt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Rt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Rt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Rt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Rt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Rt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Rt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Rt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},hu=[fu.css`
|
|
245
245
|
:host, i.ft-icon {
|
|
246
246
|
display: inline-flex;
|
|
247
247
|
align-items: center;
|
|
@@ -289,16 +289,16 @@
|
|
|
289
289
|
.ft-icon--material {
|
|
290
290
|
font-family: ${ce.materialFontFamily}, "Material Icons", sans-serif;
|
|
291
291
|
}
|
|
292
|
-
`,Rt.noTextSelect];var _e;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(_e||(_e={}));var fn=c(S()),yi=c($()),hu=c(h()),mu=c(Va());var jt;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(jt||(jt={}));var g;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(g||(g={}));var Ba=new Map([...["abw"].map(t=>[t,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),km=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Ho(t,e){var i,r,n,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((i=km.get(t))!==null&&i!==void 0?i:t)+"/").split("/");return(o=(n=(r=Ba.get(a))!==null&&r!==void 0?r:Ba.get(e))!==null&&n!==void 0?n:Ba.get(s))!==null&&o!==void 0?o:g.UNKNOWN}var Ha={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var hn=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},z=class extends hu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=fn.nothing}render(){let e=this.variant&&Object.values(_e).includes(this.variant)?this.variant:_e.fluid_topics,i=e!==_e.material||!!this.value;return fn.html`
|
|
292
|
+
`,Rt.noTextSelect];var _e;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(_e||(_e={}));var fn=c(S()),yi=c($()),mu=c(h()),gu=c(Va());var jt;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(jt||(jt={}));var g;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(g||(g={}));var Ba=new Map([...["abw"].map(t=>[t,g.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),Dm=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Ho(t,e){var i,r,n,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((i=Dm.get(t))!==null&&i!==void 0?i:t)+"/").split("/");return(o=(n=(r=Ba.get(a))!==null&&r!==void 0?r:Ba.get(e))!==null&&n!==void 0?n:Ba.get(s))!==null&&o!==void 0?o:g.UNKNOWN}var Ha={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var hn=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},z=class extends mu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=fn.nothing}render(){let e=this.variant&&Object.values(_e).includes(this.variant)?this.variant:_e.fluid_topics,i=e!==_e.material||!!this.value;return fn.html`
|
|
293
293
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
294
|
-
${(0,
|
|
294
|
+
${(0,gu.unsafeHTML)(this.resolvedIcon)}
|
|
295
295
|
<slot ?hidden=${i}></slot>
|
|
296
296
|
</i>
|
|
297
|
-
`}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}update(e){super.update(e),["value","variant"].some(i=>e.has(i))&&this.resolveIcon()}resolveIcon(){var e,i;let r=this.value||this.getTextContent();switch(this.variant){case _e.file_format:this.resolvedIcon=(e=g[r.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:r;break;case _e.material:this.resolvedIcon=this.value||fn.nothing;break;default:this.resolvedIcon=(i=jt[r.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:r;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};z.elementDefinitions={};z.styles=
|
|
297
|
+
`}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}update(e){super.update(e),["value","variant"].some(i=>e.has(i))&&this.resolveIcon()}resolveIcon(){var e,i;let r=this.value||this.getTextContent();switch(this.variant){case _e.file_format:this.resolvedIcon=(e=g[r.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:r;break;case _e.material:this.resolvedIcon=this.value||fn.nothing;break;default:this.resolvedIcon=(i=jt[r.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:r;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};z.elementDefinitions={};z.styles=hu;hn([(0,yi.property)()],z.prototype,"variant",void 0);hn([(0,yi.property)()],z.prototype,"value",void 0);hn([(0,yi.property)({reflect:!0,attribute:"aria-hidden"})],z.prototype,"ariaHidden",void 0);hn([(0,yi.state)()],z.prototype,"resolvedIcon",void 0);hn([(0,yi.query)("slot")],z.prototype,"slottedContent",void 0);var vu=c(h());var yu={"ft-icon":z};(0,vu.customElements)(yu);var xu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},oi=class extends Ge{render(){var e,i;return this.mimeType?zo.html`
|
|
298
298
|
<ft-icon part="icon"
|
|
299
299
|
variant="${_e.file_format}"
|
|
300
300
|
value="${Ho(this.mimeType,(0,mn.last)((i=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&i!==void 0?i:[]))}"></ft-icon>
|
|
301
|
-
`:zo.nothing}};oi.elementDefinitions={"ft-icon":z};
|
|
301
|
+
`:zo.nothing}};oi.elementDefinitions={"ft-icon":z};xu([(0,mn.redux)({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],oi.prototype,"mimeType",void 0);xu([(0,mn.redux)({store:"viewer",selector:({descriptor:t})=>t?.filename})],oi.prototype,"filename",void 0);var jo=class extends Ft(oi){};var bu=c(h()),Cr=c(S());var Im=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},si=class extends Ge{render(){return this.documentTitle?Cr.html`
|
|
302
302
|
<ft-typography variant="${V.title}" part="title" element="h1">
|
|
303
303
|
${this.documentTitle}
|
|
304
304
|
</ft-typography>
|
|
@@ -306,14 +306,14 @@
|
|
|
306
306
|
[part="title"]::part(text) {
|
|
307
307
|
margin: unset;
|
|
308
308
|
}
|
|
309
|
-
`;
|
|
309
|
+
`;Im([(0,bu.redux)({store:"viewer",selector:({document:t})=>t?.title})],si.prototype,"documentTitle",void 0);var Wo=class extends Ft(si){};var Eu=c(S()),Au=c($());var Ki=c(h());var Su;(function(t){t.RATING="RATING"})(Su||(Su={}));var ai;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(ai||(ai={}));var vi;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(vi||(vi={}));var Ko=class extends Oe{getDocument(e){return this.cache.get(e,()=>this.api.getUnstructuredDocument(e))}getAttachments(e){return this.cache.get(`${e}-attachments`,()=>this.api.getUdAttachments(e))}clearAttachments(e){this.cache.clear(`${e}-attachments`)}getAttachmentDownloadLink(e,i){return this.makeAbsolute(`${this.api.endpoints.khub.documents.documentId(e).attachments.attachmentId(i).content}?download=true&locationValue=viewer`)}makeAbsolute(e){return this.api.makeAbsolute(e)}async awaitMakeAbsolute(e){return(await this.awaitApi).makeAbsolute(e)}async getDocumentRating(e){return(await this.api.getDocumentRating(e)).publication}async rateDocument(e,i,r){return this.api.rateDocument(e,i,r)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,i,r){return this.api.sendDocumentFeedback(e,i,r)}isFeatureAccessible(e,{session:i}){switch(e){case vi.FEEDBACK:return hr(i??[],re.FEEDBACK_USER);case vi.RATING:return hr(i??[],re.RATING_USER);default:return!1}}getConfiguration(){return this.cache.get("configuration",()=>this.api.getViewerConfiguration())}fetchRelativesForDocument(e,i){let r={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}}],sort:[],facets:[]};return this.api.search(r)}getRelativesForDocument(e,i){return this.cache.get("document-relatives-"+e+"-"+i.join("-"),()=>this.fetchRelativesForDocument(e,i))}};var Wi=c(h());var Go=class t extends vr{static build(e){return new t(Nn(e),new Ko)}constructor(e,i,r){super(e,i),this.store=e,this.service=i,this.clusteringHelperProvider=r,this.metadataForSwitchToRelatives=new Set,e.actions.origin(hi.UNSTRUCTURED_DOCUMENT)}async load(){var e,i;let{documentId:r}=this.store.getState();if(r){let[n]=await Promise.all([this.service.getDocument(r),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:mo.UNSTRUCTURED_DOCUMENT,id:n.id,lang:(e=n.lang)!==null&&e!==void 0?e:"en-US",title:n.title,metadata:n.metadata,portalUrl:n.viewerUrl});let o=await this.service.awaitMakeAbsolute(n.contentApiEndpoint);this.store.actions.descriptor({id:n.id,portalUrl:n.viewerUrl,filename:n.filename,fingerprint:n.lastEdition,displayName:n.title,alt:(i=n.description)!==null&&i!==void 0?i:n.title,mimeType:n.mimeType,size:0,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:o}),this.store.actions.watermark(n.watermark),this.fetchMapRating(),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}return this.store.getState()}async fetchMapRating(){var e;let{documentId:i}=this.store.getState();i&&at.userHasAnyRole("RATING_USER")&&this.store.actions.documentRating(await((e=this.service)===null||e===void 0?void 0:e.getDocumentRating(i)))}clear(){this.store.clearKeeping("documentId","origin")}reload(){return this.clear(),this.load()}setDocumentId(e){return this.store.actions.documentId(e),this.reload()}async loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(i=>this.store.actions.configuration(i))}async fetchRelatives(){var e;let{document:i,configuration:r}=this.store.getState(),n=i?.metadata.filter(o=>o.key==r?.relativePivotMetadata).flatMap(o=>o.values);if(n!==void 0&&n.length>0){let o=await((e=this.service)===null||e===void 0?void 0:e.getRelativesForDocument(r.relativePivotMetadata,n)),s=o?.results.flatMap(a=>a.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(ai.clusteringHelperCreated))}createClusteringHelper(){var e,i;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let{relatives:r,documentId:n}=this.store.getState();if(r){let o=r.find(a=>(0,Wi.accessResultId)(a)==n),s=(i=(e=v.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&i!==void 0?i:[];return new Wi.ClusteringHelper(r,o,this.metadataForSwitchToRelatives,s)}}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getRelativeDocumentUrlForLocale(e){var i;this.store.getState().relatives==null&&await this.fetchRelatives();let r=Wi.ClusteringHelper.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e);return(0,Wi.accessResultUrl)(r)}onUdAttachmentsUpdate(){var e;let{documentId:i}=this.store.getState();i&&((e=this.service)===null||e===void 0||e.clearAttachments(i),this.store.dispatchEvent(new Event(ai.udAttachmentsUpdate)))}};var qo=c(h()),za=c($());var wu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ja="ud-viewer-state-manager",Ye=(0,qo.applyMixinOnce)(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var r;return(r=this.viewerStateManager)===null||r===void 0?void 0:r.service}willUpdate(r){var n,o,s;super.willUpdate(r),r.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(r.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),r.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(s=r.get("neededUdvRequests"))!==null&&s!==void 0?s:[]),(o=this.viewerStateManager)===null||o===void 0||o.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(r){this.clearStateManager(),this.viewerStateManager=r,this.addStore(r.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(r){r&&(r.registerComponent(this,this.neededUdvRequests),this.addStore(r.store,"viewer"))}unregisterFromUdvStateManager(r){r&&(r.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return wu([Yr({context:ja,subscribe:!0}),(0,za.state)()],e.prototype,"viewerStateManager",void 0),wu([(0,za.state)({hasChanged:qo.hasChanged})],e.prototype,"neededUdvRequests",void 0),e});var Yo=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},xi=class extends Ki.FtLitElementRedux{constructor(){super(...arguments),this.viewerStateManager=Go.build(this.id||(0,Ki.randomId)(6))}render(){return Eu.html`
|
|
310
310
|
<slot></slot>
|
|
311
|
-
`}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.load()}async load(){try{let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new Pi(e))}catch(e){ko(this,e)}}connectedCallback(){super.connectedCallback(),at.knownContexts.register(this),this.addStore(v),this.load()}disconnectedCallback(){super.disconnectedCallback(),at.knownContexts.unregister(this)}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var i;if(!((i=v.getState().localesConfiguration)===null||i===void 0)&&i.uiLanguageSetsReaderLanguage){at===null||at===void 0||at.stopReloadDebouncer();let r=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);r?window.location.assign(r):window.location.reload()}}};Yo([(0,
|
|
311
|
+
`}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.load()}async load(){try{let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new Pi(e))}catch(e){ko(this,e)}}connectedCallback(){super.connectedCallback(),at.knownContexts.register(this),this.addStore(v),this.load()}disconnectedCallback(){super.disconnectedCallback(),at.knownContexts.unregister(this)}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var i;if(!((i=v.getState().localesConfiguration)===null||i===void 0)&&i.uiLanguageSetsReaderLanguage){at===null||at===void 0||at.stopReloadDebouncer();let r=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);r?window.location.assign(r):window.location.reload()}}};Yo([(0,Au.property)()],xi.prototype,"documentId",void 0);Yo([qr({context:ja})],xi.prototype,"viewerStateManager",void 0);Yo([(0,Ki.reduxEventListener)({eventName:st.eventName})],xi.prototype,"onAuthenticationChange",null);Yo([(0,Ki.reduxEventListener)({store:v.name,eventName:ki.eventName})],xi.prototype,"reactToUiLocaleChanged",null);var Zo=class extends Ye(le){};var Xo=class extends Ye(ni){};var Jo=class extends Ye(si){};var Qo=class extends Ye(oi){};var ds=c(h());var Ze=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?wo:yr}constructor(e,i=!1){this.name=e,this.custom=i,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(r,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(r,n)=>()=>n}),this.attributes=new Proxy({},{get:(r,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Rr=c(h());var _u=c($());var Wa=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[i,r]=e.split(".");return{context:i,key:r,custom:i!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Tr=new Wa;var Lm=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},yn=Symbol("i18nAttributes"),Cu=Symbol("i18nListAttributes"),vn=Symbol("i18nProperties"),es=Symbol("i18nContexts"),gn=Symbol("i18nUnsubs"),Xe=(0,Rr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,i;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[i]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?wo:yr}i18n(o){let{context:s,key:a,message:l}=o,{custom:d,args:u,argsProvider:p}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,d);let f=u??(p?p(this):[]);return this.getI18nService(d).resolveMessage(s,a,...f)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(Tr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var d;return((d=l?.context)===null||d===void 0?void 0:d.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,d=(u,p,f)=>f?.context&&f.key&&o(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(s=this[yn])===null||s===void 0||s.forEach((u,p)=>l[p]=d(u,p,l[p])),(a=this[Cu])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(y=>d(u,p,y))})}updateI18nProperties(o){var s;(s=this[vn])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[es].set(l,{isCustomContext:a}),this[gn].has(l)||this[gn].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[es].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[es].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[gn].forEach(o=>o()),this[gn].clear()}}return e=es,i=gn,Lm([(0,_u.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}),ts=class extends Xe(Rr.FtLitElement){},is=class extends Xe(Rr.FtLitElementRedux){};var rs=(t,e)=>(i,r)=>{var n,o;i.constructor.createProperty(r,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:r};i[vn]=(o=i[vn])!==null&&o!==void 0?o:new Map,i[vn].set(r,s)};var Tu=c(S());var Ru=Tu.css`
|
|
312
312
|
`;var ns=c(S()),kr=c($()),os=c(h());var Or=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},xt=class extends is{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(v)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:ns.nothing:ns.html`
|
|
313
313
|
<span class="ft-i18n">
|
|
314
314
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
315
315
|
</span>
|
|
316
|
-
`}update(e){var i;super.update(e),["context","key","defaultMessage"].some(r=>e.has(r))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(i=this.defaultMessage)!==null&&i!==void 0?i:""})}};xt.elementDefinitions={};xt.styles=
|
|
316
|
+
`}update(e){var i;super.update(e),["context","key","defaultMessage"].some(r=>e.has(r))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(i=this.defaultMessage)!==null&&i!==void 0?i:""})}};xt.elementDefinitions={};xt.styles=Ru;Or([(0,os.redux)()],xt.prototype,"editorMode",void 0);Or([(0,kr.property)()],xt.prototype,"context",void 0);Or([(0,kr.property)()],xt.prototype,"key",void 0);Or([(0,os.jsonProperty)([])],xt.prototype,"args",void 0);Or([(0,kr.property)()],xt.prototype,"defaultMessage",void 0);Or([(0,kr.state)()],xt.prototype,"editorMessage",void 0);var ku=c(h());var Ou={"ft-i18n":xt};(0,ku.customElements)(Ou);var ve=c(h()),Du={itemsGap:ve.FtCssVariableFactory.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:ve.FtCssVariableFactory.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:ve.FtCssVariableFactory.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-border-color","",ve.designSystemVariables.colorOutline),itemBorderRadius:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-border-radius","",ve.designSystemVariables.borderRadiusS),itemBackgroundColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-background-color","",ve.designSystemVariables.colorSurface),itemTextColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-text-color","",ve.designSystemVariables.colorOnSurfaceMedium),itemHoverBackgroundColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-hover-background-color","",ve.designSystemVariables.colorPrimary),itemHoverTextColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-hover-text-color","",ve.designSystemVariables.colorOnSurfaceHigh),fileFormatIconSize:ve.FtCssVariableFactory.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:ve.FtCssVariableFactory.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var cs=c(h());var Dr=c(h()),Pu=c($());var ss;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(ss||(ss={}));var Iu;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Iu||(Iu={}));var Pm=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Ga=class extends Dr.FtContextRegistrationEvent{constructor(e){super("register-ft-reader-component",e)}},Ka=Symbol("registerInterval"),qa=(0,Dr.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Ka]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Ka]):this.dispatchEvent(new Ga({target:this}))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ka,Pm([(0,Pu.state)()],i.prototype,"stateManager",void 0),i}),Lu=class extends qa(Dr.FtLitElementRedux){};var Ya=Ze.build("designedReaderAttachments"),Mu={download:"Download \u201C{0}\u201D"};var Gi=c(S()),Ir=c($()),Lr=c(h()),qu=c(br());var Yu=c(ut());var ju=c(S()),ke=c($()),Wu=c(ut()),xn=c(h());var Hu=c(S()),me=c(h()),$u=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorContent),G={color:$u,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",$u),opacityContentOnSurfacePressed:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Fu=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorPrimary),Uu={color:Fu,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",Fu)},Vu=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorSecondary),Bu={color:Vu,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",Vu)},zu=Hu.css`
|
|
317
317
|
:host {
|
|
318
318
|
display: contents;
|
|
319
319
|
}
|
|
@@ -368,19 +368,19 @@
|
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
371
|
-
background-color: ${
|
|
371
|
+
background-color: ${Bu.backgroundColor};
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
375
|
-
background-color: ${
|
|
375
|
+
background-color: ${Bu.color};
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
379
|
-
background-color: ${
|
|
379
|
+
background-color: ${Uu.backgroundColor};
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
383
|
-
background-color: ${
|
|
383
|
+
background-color: ${Uu.color};
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
.ft-ripple .ft-ripple--background {
|
|
@@ -425,20 +425,20 @@
|
|
|
425
425
|
opacity: ${G.opacityContentOnSurfacePressed};
|
|
426
426
|
transform: translate(-50%, -50%) scale(1);
|
|
427
427
|
}
|
|
428
|
-
`;var Je=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},M=class extends xn.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new xn.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new xn.Debouncer(10),this.moveRipple=e=>{var i,r;let{x:n,y:o}=this.getCoordinates(e),s=(r=(i=this.ripple)===null||i===void 0?void 0:i.getBoundingClientRect())!==null&&r!==void 0?r:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return
|
|
428
|
+
`;var Je=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},M=class extends xn.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new xn.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new xn.Debouncer(10),this.moveRipple=e=>{var i,r;let{x:n,y:o}=this.getCoordinates(e),s=(r=(i=this.ripple)===null||i===void 0?void 0:i.getBoundingClientRect())!==null&&r!==void 0?r:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ju.html`
|
|
429
429
|
<style>
|
|
430
430
|
.ft-ripple .ft-ripple--effect {
|
|
431
431
|
left: ${this.originX}px;
|
|
432
432
|
top: ${this.originY}px;
|
|
433
433
|
}
|
|
434
434
|
</style>
|
|
435
|
-
<div class="${(0,
|
|
435
|
+
<div class="${(0,Wu.classMap)(e)}">
|
|
436
436
|
<div class="ft-ripple--background"></div>
|
|
437
437
|
<div class="ft-ripple--effect"></div>
|
|
438
438
|
</div>
|
|
439
|
-
`}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 i,r;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(r=this.target)===null||r===void 0||r.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,i;let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;r&&this.setupFor((i=this.target)!==null&&i!==void 0?i:r)}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 i=(...a)=>l=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(l)},r=i("mouseup","contextmenu"),n=i("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&i("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",r,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,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",r,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,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 i=e,r=e,n,o;return i.x!=null?{x:n,y:o}=i:r.touches!=null&&(n=r.touches[0].clientX,o=r.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let i of e.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};M.elementDefinitions={};M.styles=
|
|
440
|
-
<div part="container" class="${(0,
|
|
441
|
-
${(0,
|
|
439
|
+
`}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 i,r;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(r=this.target)===null||r===void 0||r.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,i;let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;r&&this.setupFor((i=this.target)!==null&&i!==void 0?i:r)}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 i=(...a)=>l=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(l)},r=i("mouseup","contextmenu"),n=i("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&i("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",r,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,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",r,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,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 i=e,r=e,n,o;return i.x!=null?{x:n,y:o}=i:r.touches!=null&&(n=r.touches[0].clientX,o=r.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let i of e.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};M.elementDefinitions={};M.styles=zu;Je([(0,ke.property)({type:Boolean})],M.prototype,"primary",void 0);Je([(0,ke.property)({type:Boolean})],M.prototype,"secondary",void 0);Je([(0,ke.property)({type:Boolean})],M.prototype,"unbounded",void 0);Je([(0,ke.property)({type:Boolean})],M.prototype,"activated",void 0);Je([(0,ke.property)({type:Boolean})],M.prototype,"selected",void 0);Je([(0,ke.property)({type:Boolean})],M.prototype,"disabled",void 0);Je([(0,ke.state)()],M.prototype,"hovered",void 0);Je([(0,ke.state)()],M.prototype,"focused",void 0);Je([(0,ke.state)()],M.prototype,"pressed",void 0);Je([(0,ke.state)()],M.prototype,"rippling",void 0);Je([(0,ke.state)()],M.prototype,"originX",void 0);Je([(0,ke.state)()],M.prototype,"originY",void 0);Je([(0,ke.query)(".ft-ripple")],M.prototype,"ripple",void 0);Je([(0,ke.query)(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0);var Gu=c(h());var Ku={"ft-ripple":M};(0,Gu.customElements)(Ku);var as=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Mm={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},Ot=class extends(0,Lr.withAnalytics)(Lr.FtLitElementRedux,Mm){constructor(){super(...arguments),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1}render(){if(this.canRender()){let e={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return Gi.html`
|
|
440
|
+
<div part="container" class="${(0,Yu.classMap)(e)}">
|
|
441
|
+
${(0,qu.repeat)(this.attachments,i=>i.id,i=>{var r;let n=Ho(i.mimeType,(0,Lr.last)(i.file.split(".")));return Gi.html`
|
|
442
442
|
<div part="attachment">
|
|
443
443
|
<a part="viewer-link" href="${this.getAttachmentViewerLink(i)}"
|
|
444
444
|
aria-label="${this.getAttachmentAriaLabel(i)}"
|
|
@@ -463,7 +463,7 @@
|
|
|
463
463
|
</div>
|
|
464
464
|
`})}
|
|
465
465
|
</div>
|
|
466
|
-
`}return Gi.nothing}getAttachmentAriaLabel(e){var i;let r=e.name,n=e.file;if(r===n)return n;let o=(i=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&i!==void 0?i:"";return r+" "+o}canRender(){var e,i;return((i=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&i!==void 0?i:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};Ot.elementDefinitions={"ft-icon":z,"ft-ripple":M,"ft-typography":F};as([(0,
|
|
466
|
+
`}return Gi.nothing}getAttachmentAriaLabel(e){var i;let r=e.name,n=e.file;if(r===n)return n;let o=(i=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&i!==void 0?i:"";return r+" "+o}canRender(){var e,i;return((i=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&i!==void 0?i:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};Ot.elementDefinitions={"ft-icon":z,"ft-ripple":M,"ft-typography":F};as([(0,Ir.property)({type:Boolean})],Ot.prototype,"hideFileFormatIcon",void 0);as([(0,Ir.property)({type:Boolean})],Ot.prototype,"hideFilename",void 0);as([(0,Ir.property)({type:Boolean})],Ot.prototype,"hideDownloadIcon",void 0);as([(0,Ir.state)()],Ot.prototype,"attachments",void 0);var Zu=c(S()),bn=c(h());function ls(t){return Zu.css`
|
|
467
467
|
[part="container"] {
|
|
468
468
|
display: flex;
|
|
469
469
|
flex-direction: column;
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
.hide-download-icon [part="download-link"] {
|
|
531
531
|
display: none;
|
|
532
532
|
}
|
|
533
|
-
`}var
|
|
533
|
+
`}var Xu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},qi=class extends qa(Xe(Ot)){constructor(){super(),this.addI18nContext(Ya,Mu)}update(e){super.update(e),e.has("map")&&this.updateAttachments()}updateAttachments(){var e;this.map?(e=this.service)===null||e===void 0||e.getAttachments().then(i=>this.attachments=i):this.attachments=void 0}getAttachmentDownloadLink(e){var i,r;return(r=(i=this.service)===null||i===void 0?void 0:i.getAttachmentDownloadLink(e.id))!==null&&r!==void 0?r:""}getAttachmentDownloadLinkAriaLabel(e){return Ya.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var i,r;return e.externalLink?e.viewerUrl:(i=this.service)===null||i===void 0?void 0:i.makeAbsolute((r=e.viewerUrl)!==null&&r!==void 0?r:"")}};qi.styles=ls(Du);Xu([(0,cs.redux)({store:"reader"})],qi.prototype,"map",void 0);Xu([(0,cs.reduxEventListener)({eventName:ss.mapAttachmentsUpdate})],qi.prototype,"updateAttachments",null);var Qu=c(h());var Ju={"ft-reader-attachments":qi};(0,Qu.customElements)(Ju);var xe=c(h()),ep={itemsGap:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-border-color","",xe.designSystemVariables.colorOutline),itemBorderRadius:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-border-radius","",xe.designSystemVariables.borderRadiusS),itemBackgroundColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-background-color","",xe.designSystemVariables.colorSurface),itemTextColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-text-color","",xe.designSystemVariables.colorOnSurfaceMedium),itemHoverBackgroundColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-hover-background-color","",xe.designSystemVariables.colorPrimary),itemHoverTextColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-hover-text-color","",xe.designSystemVariables.colorOnSurfaceHigh),fileFormatIconSize:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var Pr=Ze.build("designedUdViewer"),tp={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var ip=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Yi=class extends Ye(Xe(Ot)){constructor(){super(),this.addI18nContext(Pr,tp)}update(e){super.update(e),e.has("document")&&this.updateAttachments()}updateAttachments(){var e;this.document?(e=this.service)===null||e===void 0||e.getAttachments(this.document.id).then(i=>this.attachments=i):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(e){var i,r;return(r=(i=this.service)===null||i===void 0?void 0:i.getAttachmentDownloadLink(this.document.id,e.id))!==null&&r!==void 0?r:""}getAttachmentDownloadLinkAriaLabel(e){return Pr.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var i,r;return e.externalLink?e.viewerUrl:(i=this.service)===null||i===void 0?void 0:i.makeAbsolute((r=e.viewerUrl)!==null&&r!==void 0?r:"")}};Yi.styles=ls(ep);ip([(0,ds.redux)({store:"viewer"})],Yi.prototype,"document",void 0);ip([(0,ds.reduxEventListener)({eventName:ai.udAttachmentsUpdate})],Yi.prototype,"updateAttachments",null);var Pf=c(S()),Nt=c($()),tt=c(h());var us=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},ps=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var Kt=c(h());var Pp=c(S()),St=c($()),bt=c(h());var rp=c(S()),bi=c(h()),Sn={distance:bi.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:bi.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:bi.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:bi.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",bi.designSystemVariables.borderRadiusS),maxWidth:bi.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},np=rp.css`
|
|
534
534
|
.ft-tooltip--container {
|
|
535
535
|
display: block;
|
|
536
536
|
}
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
position: relative;
|
|
562
562
|
word-break: break-word;
|
|
563
563
|
}
|
|
564
|
-
`;var op=["top","right","bottom","left"],np=["start","end"],Xa=op.reduce((t,e)=>t.concat(e,e+"-"+np[0],e+"-"+np[1]),[]),wn=Math.min,Si=Math.max,En=Math.round;var Wt=t=>({x:t,y:t}),Mm={left:"right",right:"left",bottom:"top",top:"bottom"};function sp(t,e,i){return Si(t,wn(e,i))}function fs(t,e){return typeof t=="function"?t(e):t}function An(t){return t.split("-")[0]}function wi(t){return t.split("-")[1]}function Ja(t){return t==="x"?"y":"x"}function Qa(t){return t==="y"?"height":"width"}function hs(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function el(t){return Ja(hs(t))}function ap(t,e,i){i===void 0&&(i=!1);let r=wi(t),n=el(t),o=Qa(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Za(s)),[s,Za(s)]}function lp(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Za(t){let e=An(t);return Mm[e]+t.slice(e.length)}function Nm(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function cp(t){return typeof t!="number"?Nm(t):{top:t,right:t,bottom:t,left:t}}function Zi(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function dp(t,e,i){let{reference:r,floating:n}=t,o=hs(e),s=el(e),a=Qa(s),l=An(e),d=o==="y",u=r.x+r.width/2-n.width/2,p=r.y+r.height/2-n.height/2,f=r[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:r.y-n.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-n.width,y:p};break;default:y={x:r.x,y:r.y}}let w=wi(e);return w&&(y[s]+=f*(w==="end"?1:-1)*(i&&d?-1:1)),y}async function up(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=fs(e,t),w=cp(y),b=a[f?p==="floating"?"reference":"floating":p],k=Zi(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:l})),H=p==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),A=await(o.isElement==null?void 0:o.isElement(E))&&await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1},K=Zi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:H,offsetParent:E,strategy:l}):H);return{top:(k.top-K.top+w.top)/A.y,bottom:(K.bottom-k.bottom+w.bottom)/A.y,left:(k.left-K.left+w.left)/A.x,right:(K.right-k.right+w.right)/A.x}}var $m=50,pp=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:up},l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=dp(d,r,l),f=r,y=0,w={};for(let T=0;T<o.length;T++){let b=o[T];if(!b)continue;let{name:k,fn:H}=b,{x:E,y:A,data:K,reset:U}=await H({x:u,y:p,initialPlacement:r,placement:f,strategy:n,middlewareData:w,rects:d,platform:a,elements:{reference:t,floating:e}});u=E??u,p=A??p,w[k]={...w[k],...K},U&&y<$m&&(y++,typeof U=="object"&&(U.placement&&(f=U.placement),U.rects&&(d=U.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):U.rects),{x:u,y:p}=dp(d,f,l)),T=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:w}};function Fm(t,e,i){return(t?[...i.filter(n=>wi(n)===t),...i.filter(n=>wi(n)!==t)]:i.filter(n=>An(n)===n)).filter(n=>t?wi(n)===t||(e?lp(n)!==n:!1):!0)}var fp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:d}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=Xa,autoAlignment:y=!0,...w}=fs(t,e),T=p!==void 0||f===Xa?Fm(p||null,y,f):f,b=((i=s.autoPlacement)==null?void 0:i.index)||0,k=T[b];if(k==null)return{};if(a!==k)return{reset:{placement:T[0]}};let H=await l.detectOverflow(e,w),E=ap(k,o,await(l.isRTL==null?void 0:l.isRTL(d.floating))),A=[H[An(k)],H[E[0]],H[E[1]]],K=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:k,overflows:A}],U=T[b+1];if(U)return{data:{index:b+1,overflows:K},reset:{placement:U}};let ye=K.map(mt=>{let Kr=wi(mt.placement);return[mt.placement,Kr&&u?mt.overflows.slice(0,2).reduce((ah,lh)=>ah+lh,0):mt.overflows[0],mt.overflows]}).sort((mt,Kr)=>mt[1]-Kr[1]),Pn=((n=ye.filter(mt=>mt[2].slice(0,wi(mt[0])?2:3).every(Kr=>Kr<=0))[0])==null?void 0:n[0])||ye[0][0];return Pn!==a?{data:{index:b+1,overflows:K},reset:{placement:Pn}}:{}}}};var hp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:H=>{let{x:E,y:A}=H;return{x:E,y:A}}},...d}=fs(t,e),u={x:i,y:r},p=await o.detectOverflow(e,d),f=hs(n),y=Ja(f),w=u[y],T=u[f],b=(H,E)=>sp(E+p[H==="y"?"top":"left"],E,E-p[H==="y"?"bottom":"right"]);s&&(w=b(y,w)),a&&(T=b(f,T));let k=l.fn({...e,[y]:w,[f]:T});return{...k,data:{x:k.x-i,y:k.y-r,enabled:{[y]:s,[f]:a}}}}}};function gs(){return typeof window<"u"}function Ji(t){return gp(t)?(t.nodeName||"").toLowerCase():"#document"}function Qe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function li(t){var e;return(e=(gp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function gp(t){return gs()?t instanceof Node||t instanceof Qe(t).Node:!1}function kt(t){return gs()?t instanceof Element||t instanceof Qe(t).Element:!1}function ci(t){return gs()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function mp(t){return!gs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qe(t).ShadowRoot}function _n(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=Dt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function yp(t){return/^(table|td|th)$/.test(Ji(t))}function Cn(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Um=/transform|translate|scale|rotate|perspective|filter/,Vm=/paint|layout|strict|content/,Xi=t=>!!t&&t!=="none",tl;function Mr(t){let e=kt(t)?Dt(t):t;return Xi(e.transform)||Xi(e.translate)||Xi(e.scale)||Xi(e.rotate)||Xi(e.perspective)||!ys()&&(Xi(e.backdropFilter)||Xi(e.filter))||Um.test(e.willChange||"")||Vm.test(e.contain||"")}function vp(t){let e=Ei(t);for(;ci(e)&&!Nr(e);){if(Mr(e))return e;if(Cn(e))return null;e=Ei(e)}return null}function ys(){return tl==null&&(tl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tl}function Nr(t){return/^(html|body|#document)$/.test(Ji(t))}function Dt(t){return Qe(t).getComputedStyle(t)}function Tn(t){return kt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ei(t){if(Ji(t)==="html")return t;let e=t.assignedSlot||t.parentNode||mp(t)&&t.host||li(t);return mp(e)?e.host:e}function xp(t){let e=Ei(t);return Nr(e)?(t.ownerDocument||t).body:ci(e)&&_n(e)?e:xp(e)}function ms(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=xp(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=Qe(n);if(o){let a=vs(s);return e.concat(s,s.visualViewport||[],_n(n)?n:[],a&&i?ms(a):[])}else return e.concat(n,ms(n,[],i))}function vs(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function wp(t){let e=Dt(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=ci(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=En(i)!==o||En(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function Ep(t){return kt(t)?t:t.contextElement}function $r(t){let e=Ep(t);if(!ci(e))return Wt(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=wp(e),s=(o?En(i.width):i.width)/r,a=(o?En(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Bm=Wt(0);function Ap(t){let e=Qe(t);return!ys()||!e.visualViewport?Bm:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Hm(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===Qe(t)}function Rn(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=Ep(t),s=Wt(1);e&&(r?kt(r)&&(s=$r(r)):s=$r(t));let a=Hm(o,i,r)?Ap(o):Wt(0),l=(n.left+a.x)/s.x,d=(n.top+a.y)/s.y,u=n.width/s.x,p=n.height/s.y;if(o&&r){let f=Qe(o),y=kt(r)?Qe(r):r,w=f,T=vs(w);for(;T&&y!==w;){let b=$r(T),k=T.getBoundingClientRect(),H=Dt(T),E=k.left+(T.clientLeft+parseFloat(H.paddingLeft))*b.x,A=k.top+(T.clientTop+parseFloat(H.paddingTop))*b.y;l*=b.x,d*=b.y,u*=b.x,p*=b.y,l+=E,d+=A,w=Qe(T),T=vs(w)}}return Zi({width:u,height:p,x:l,y:d})}function xs(t,e){let i=Tn(t).scrollLeft;return e?e.left+i:Rn(li(t)).left+i}function _p(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-xs(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function zm(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=li(r),a=e?Cn(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},d=Wt(1),u=Wt(0),p=ci(r);if((p||!o)&&((Ji(r)!=="body"||_n(s))&&(l=Tn(r)),p)){let y=Rn(r);d=$r(r),u.x=y.x+r.clientLeft,u.y=y.y+r.clientTop}let f=s&&!p&&!o?_p(s,l):Wt(0);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-l.scrollLeft*d.x+u.x+f.x,y:i.y*d.y-l.scrollTop*d.y+u.y+f.y}}function jm(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Wm(t){let e=Tn(t),i=t.ownerDocument.body,r=Si(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=Si(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+xs(t),s=-e.scrollTop;return Dt(i).direction==="rtl"&&(o+=Si(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var Km=25;function Gm(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=Qe(t),o=li(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,d=0,u=0;if(s){let f=!ys()||e==="fixed";r?f||(d=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(d=s.offsetLeft,u=s.offsetTop))}if(xs(o)<=0){let f=o.ownerDocument,y=f.body,w=getComputedStyle(y),T=f.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,b=Math.abs(o.clientWidth-y.clientWidth-T),k=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;k<=Km&&(a-=k)}return{width:a,height:l,x:d,y:u}}function qm(t,e){let i=Rn(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=$r(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,d=r*o.y;return{width:s,height:a,x:l,y:d}}function bp(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=Gm(t,i,e);else if(e==="document")r=Wm(li(t));else if(kt(e))r=qm(e,i);else{let n=Ap(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Zi(r)}function Ym(t,e){let i=e.get(t);if(i)return i;let r=ms(t,[],!1).filter(a=>kt(a)&&Ji(a)!=="body"),n=null,o=Dt(t).position==="fixed",s=o?Ei(t):t;for(;kt(s)&&!Nr(s);){let a=Dt(s),l=Mr(s),d=n?n.position:o?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?r=r.filter(p=>p!==s):n=a,s=Ei(s)}return e.set(t,r),r}function Zm(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?Cn(e)?[]:Ym(e,this._c):[].concat(i),r],a=bp(e,s[0],n),l=a.top,d=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let y=bp(e,s[f],n);l=Si(y.top,l),d=wn(y.right,d),u=wn(y.bottom,u),p=Si(y.left,p)}return{width:d-p,height:u-l,x:p,y:l}}function Xm(t){let{width:e,height:i}=wp(t);return{width:e,height:i}}function Jm(t,e,i){let r=ci(e),n=li(e),o=i==="fixed",s=Rn(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Wt(0);if((r||!o)&&((Ji(e)!=="body"||_n(n))&&(a=Tn(e)),r)){let f=Rn(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!r&&n&&(l.x=xs(n));let d=n&&!r&&!o?_p(n,a):Wt(0),u=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:s.width,height:s.height}}function il(t){return Dt(t).position==="static"}function Sp(t,e){if(!ci(t)||Dt(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return li(t)===i&&(i=i.ownerDocument.body),i}function Cp(t,e){let i=Qe(t);if(Cn(t))return i;if(!ci(t)){let n=Ei(t);for(;n&&!Nr(n);){if(kt(n)&&!il(n))return n;n=Ei(n)}return i}let r=Sp(t,e);for(;r&&yp(r)&&il(r);)r=Sp(r,e);return r&&Nr(r)&&il(r)&&!Mr(r)?i:r||vp(t)||i}var Qm=async function(t){let e=this.getOffsetParent||Cp,i=this.getDimensions,r=await i(t.floating);return{reference:Jm(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function eg(t){return Dt(t).direction==="rtl"}var bs={convertOffsetParentRelativeRectToViewportRelativeRect:zm,getDocumentElement:li,getClippingRect:Zm,getOffsetParent:Cp,getElementRects:Qm,getClientRects:jm,getDimensions:Xm,getScale:$r,isElement:kt,isRTL:eg};var Tp=fp,Rp=hp;var Op=(t,e,i)=>{let r=new Map,n=i??{},o={...bs,...n.platform,_c:r};return pp(t,e,{...n,platform:o})};function kp(t){return tg(t)}function rl(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function tg(t){for(let e=t;e;e=rl(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=rl(t);e;e=rl(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||Mr(i)||e.tagName==="BODY"))return e}return null}async function Ss(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},Op(t,e,{strategy:r.strategy,platform:{...bs,getOffsetParent:n=>bs.getOffsetParent(n,kp)},middleware:[Rp({crossAxis:!0}),Tp({allowedPlacements:[r.placement]})]})}var Dp=c(h());var nl=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?Tr.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},ig=new nl;var Lp=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:Dp.hasChanged,converter:Tr,...e}),i[yn]=(n=i[yn])!==null&&n!==void 0?n:new Map,i[yn].set(r,t??{})};var Lt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ne=class extends ts{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new bt.Debouncer,this.revealDebouncer=new bt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",i=>{i.composedPath().includes(this.container)||this.onOut(i)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,i;return Ip.html`
|
|
564
|
+
`;var sp=["top","right","bottom","left"],op=["start","end"],Xa=sp.reduce((t,e)=>t.concat(e,e+"-"+op[0],e+"-"+op[1]),[]),wn=Math.min,Si=Math.max,En=Math.round;var Wt=t=>({x:t,y:t}),Nm={left:"right",right:"left",bottom:"top",top:"bottom"};function ap(t,e,i){return Si(t,wn(e,i))}function fs(t,e){return typeof t=="function"?t(e):t}function An(t){return t.split("-")[0]}function wi(t){return t.split("-")[1]}function Ja(t){return t==="x"?"y":"x"}function Qa(t){return t==="y"?"height":"width"}function hs(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function el(t){return Ja(hs(t))}function lp(t,e,i){i===void 0&&(i=!1);let r=wi(t),n=el(t),o=Qa(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Za(s)),[s,Za(s)]}function cp(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Za(t){let e=An(t);return Nm[e]+t.slice(e.length)}function $m(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function dp(t){return typeof t!="number"?$m(t):{top:t,right:t,bottom:t,left:t}}function Zi(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function up(t,e,i){let{reference:r,floating:n}=t,o=hs(e),s=el(e),a=Qa(s),l=An(e),d=o==="y",u=r.x+r.width/2-n.width/2,p=r.y+r.height/2-n.height/2,f=r[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:r.y-n.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-n.width,y:p};break;default:y={x:r.x,y:r.y}}let w=wi(e);return w&&(y[s]+=f*(w==="end"?1:-1)*(i&&d?-1:1)),y}async function pp(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=fs(e,t),w=dp(y),b=a[f?p==="floating"?"reference":"floating":p],k=Zi(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:l})),H=p==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),A=await(o.isElement==null?void 0:o.isElement(E))&&await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1},K=Zi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:H,offsetParent:E,strategy:l}):H);return{top:(k.top-K.top+w.top)/A.y,bottom:(K.bottom-k.bottom+w.bottom)/A.y,left:(k.left-K.left+w.left)/A.x,right:(K.right-k.right+w.right)/A.x}}var Fm=50,fp=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:pp},l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=up(d,r,l),f=r,y=0,w={};for(let T=0;T<o.length;T++){let b=o[T];if(!b)continue;let{name:k,fn:H}=b,{x:E,y:A,data:K,reset:U}=await H({x:u,y:p,initialPlacement:r,placement:f,strategy:n,middlewareData:w,rects:d,platform:a,elements:{reference:t,floating:e}});u=E??u,p=A??p,w[k]={...w[k],...K},U&&y<Fm&&(y++,typeof U=="object"&&(U.placement&&(f=U.placement),U.rects&&(d=U.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):U.rects),{x:u,y:p}=up(d,f,l)),T=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:w}};function Um(t,e,i){return(t?[...i.filter(n=>wi(n)===t),...i.filter(n=>wi(n)!==t)]:i.filter(n=>An(n)===n)).filter(n=>t?wi(n)===t||(e?cp(n)!==n:!1):!0)}var hp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:d}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=Xa,autoAlignment:y=!0,...w}=fs(t,e),T=p!==void 0||f===Xa?Um(p||null,y,f):f,b=((i=s.autoPlacement)==null?void 0:i.index)||0,k=T[b];if(k==null)return{};if(a!==k)return{reset:{placement:T[0]}};let H=await l.detectOverflow(e,w),E=lp(k,o,await(l.isRTL==null?void 0:l.isRTL(d.floating))),A=[H[An(k)],H[E[0]],H[E[1]]],K=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:k,overflows:A}],U=T[b+1];if(U)return{data:{index:b+1,overflows:K},reset:{placement:U}};let ye=K.map(mt=>{let Kr=wi(mt.placement);return[mt.placement,Kr&&u?mt.overflows.slice(0,2).reduce((lh,ch)=>lh+ch,0):mt.overflows[0],mt.overflows]}).sort((mt,Kr)=>mt[1]-Kr[1]),Pn=((n=ye.filter(mt=>mt[2].slice(0,wi(mt[0])?2:3).every(Kr=>Kr<=0))[0])==null?void 0:n[0])||ye[0][0];return Pn!==a?{data:{index:b+1,overflows:K},reset:{placement:Pn}}:{}}}};var mp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:H=>{let{x:E,y:A}=H;return{x:E,y:A}}},...d}=fs(t,e),u={x:i,y:r},p=await o.detectOverflow(e,d),f=hs(n),y=Ja(f),w=u[y],T=u[f],b=(H,E)=>ap(E+p[H==="y"?"top":"left"],E,E-p[H==="y"?"bottom":"right"]);s&&(w=b(y,w)),a&&(T=b(f,T));let k=l.fn({...e,[y]:w,[f]:T});return{...k,data:{x:k.x-i,y:k.y-r,enabled:{[y]:s,[f]:a}}}}}};function gs(){return typeof window<"u"}function Ji(t){return yp(t)?(t.nodeName||"").toLowerCase():"#document"}function Qe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function li(t){var e;return(e=(yp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function yp(t){return gs()?t instanceof Node||t instanceof Qe(t).Node:!1}function kt(t){return gs()?t instanceof Element||t instanceof Qe(t).Element:!1}function ci(t){return gs()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function gp(t){return!gs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qe(t).ShadowRoot}function _n(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=Dt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function vp(t){return/^(table|td|th)$/.test(Ji(t))}function Cn(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Vm=/transform|translate|scale|rotate|perspective|filter/,Bm=/paint|layout|strict|content/,Xi=t=>!!t&&t!=="none",tl;function Mr(t){let e=kt(t)?Dt(t):t;return Xi(e.transform)||Xi(e.translate)||Xi(e.scale)||Xi(e.rotate)||Xi(e.perspective)||!ys()&&(Xi(e.backdropFilter)||Xi(e.filter))||Vm.test(e.willChange||"")||Bm.test(e.contain||"")}function xp(t){let e=Ei(t);for(;ci(e)&&!Nr(e);){if(Mr(e))return e;if(Cn(e))return null;e=Ei(e)}return null}function ys(){return tl==null&&(tl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tl}function Nr(t){return/^(html|body|#document)$/.test(Ji(t))}function Dt(t){return Qe(t).getComputedStyle(t)}function Tn(t){return kt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ei(t){if(Ji(t)==="html")return t;let e=t.assignedSlot||t.parentNode||gp(t)&&t.host||li(t);return gp(e)?e.host:e}function bp(t){let e=Ei(t);return Nr(e)?(t.ownerDocument||t).body:ci(e)&&_n(e)?e:bp(e)}function ms(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=bp(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=Qe(n);if(o){let a=vs(s);return e.concat(s,s.visualViewport||[],_n(n)?n:[],a&&i?ms(a):[])}else return e.concat(n,ms(n,[],i))}function vs(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ep(t){let e=Dt(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=ci(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=En(i)!==o||En(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function Ap(t){return kt(t)?t:t.contextElement}function $r(t){let e=Ap(t);if(!ci(e))return Wt(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=Ep(e),s=(o?En(i.width):i.width)/r,a=(o?En(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Hm=Wt(0);function _p(t){let e=Qe(t);return!ys()||!e.visualViewport?Hm:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zm(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===Qe(t)}function Rn(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=Ap(t),s=Wt(1);e&&(r?kt(r)&&(s=$r(r)):s=$r(t));let a=zm(o,i,r)?_p(o):Wt(0),l=(n.left+a.x)/s.x,d=(n.top+a.y)/s.y,u=n.width/s.x,p=n.height/s.y;if(o&&r){let f=Qe(o),y=kt(r)?Qe(r):r,w=f,T=vs(w);for(;T&&y!==w;){let b=$r(T),k=T.getBoundingClientRect(),H=Dt(T),E=k.left+(T.clientLeft+parseFloat(H.paddingLeft))*b.x,A=k.top+(T.clientTop+parseFloat(H.paddingTop))*b.y;l*=b.x,d*=b.y,u*=b.x,p*=b.y,l+=E,d+=A,w=Qe(T),T=vs(w)}}return Zi({width:u,height:p,x:l,y:d})}function xs(t,e){let i=Tn(t).scrollLeft;return e?e.left+i:Rn(li(t)).left+i}function Cp(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-xs(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function jm(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=li(r),a=e?Cn(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},d=Wt(1),u=Wt(0),p=ci(r);if((p||!o)&&((Ji(r)!=="body"||_n(s))&&(l=Tn(r)),p)){let y=Rn(r);d=$r(r),u.x=y.x+r.clientLeft,u.y=y.y+r.clientTop}let f=s&&!p&&!o?Cp(s,l):Wt(0);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-l.scrollLeft*d.x+u.x+f.x,y:i.y*d.y-l.scrollTop*d.y+u.y+f.y}}function Wm(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Km(t){let e=Tn(t),i=t.ownerDocument.body,r=Si(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=Si(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+xs(t),s=-e.scrollTop;return Dt(i).direction==="rtl"&&(o+=Si(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var Gm=25;function qm(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=Qe(t),o=li(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,d=0,u=0;if(s){let f=!ys()||e==="fixed";r?f||(d=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(d=s.offsetLeft,u=s.offsetTop))}if(xs(o)<=0){let f=o.ownerDocument,y=f.body,w=getComputedStyle(y),T=f.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,b=Math.abs(o.clientWidth-y.clientWidth-T),k=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;k<=Gm&&(a-=k)}return{width:a,height:l,x:d,y:u}}function Ym(t,e){let i=Rn(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=$r(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,d=r*o.y;return{width:s,height:a,x:l,y:d}}function Sp(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=qm(t,i,e);else if(e==="document")r=Km(li(t));else if(kt(e))r=Ym(e,i);else{let n=_p(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Zi(r)}function Zm(t,e){let i=e.get(t);if(i)return i;let r=ms(t,[],!1).filter(a=>kt(a)&&Ji(a)!=="body"),n=null,o=Dt(t).position==="fixed",s=o?Ei(t):t;for(;kt(s)&&!Nr(s);){let a=Dt(s),l=Mr(s),d=n?n.position:o?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?r=r.filter(p=>p!==s):n=a,s=Ei(s)}return e.set(t,r),r}function Xm(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?Cn(e)?[]:Zm(e,this._c):[].concat(i),r],a=Sp(e,s[0],n),l=a.top,d=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let y=Sp(e,s[f],n);l=Si(y.top,l),d=wn(y.right,d),u=wn(y.bottom,u),p=Si(y.left,p)}return{width:d-p,height:u-l,x:p,y:l}}function Jm(t){let{width:e,height:i}=Ep(t);return{width:e,height:i}}function Qm(t,e,i){let r=ci(e),n=li(e),o=i==="fixed",s=Rn(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Wt(0);if((r||!o)&&((Ji(e)!=="body"||_n(n))&&(a=Tn(e)),r)){let f=Rn(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!r&&n&&(l.x=xs(n));let d=n&&!r&&!o?Cp(n,a):Wt(0),u=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:s.width,height:s.height}}function il(t){return Dt(t).position==="static"}function wp(t,e){if(!ci(t)||Dt(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return li(t)===i&&(i=i.ownerDocument.body),i}function Tp(t,e){let i=Qe(t);if(Cn(t))return i;if(!ci(t)){let n=Ei(t);for(;n&&!Nr(n);){if(kt(n)&&!il(n))return n;n=Ei(n)}return i}let r=wp(t,e);for(;r&&vp(r)&&il(r);)r=wp(r,e);return r&&Nr(r)&&il(r)&&!Mr(r)?i:r||xp(t)||i}var eg=async function(t){let e=this.getOffsetParent||Tp,i=this.getDimensions,r=await i(t.floating);return{reference:Qm(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tg(t){return Dt(t).direction==="rtl"}var bs={convertOffsetParentRelativeRectToViewportRelativeRect:jm,getDocumentElement:li,getClippingRect:Xm,getOffsetParent:Tp,getElementRects:eg,getClientRects:Wm,getDimensions:Jm,getScale:$r,isElement:kt,isRTL:tg};var Rp=hp,Op=mp;var kp=(t,e,i)=>{let r=new Map,n=i??{},o={...bs,...n.platform,_c:r};return fp(t,e,{...n,platform:o})};function Dp(t){return ig(t)}function rl(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function ig(t){for(let e=t;e;e=rl(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=rl(t);e;e=rl(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||Mr(i)||e.tagName==="BODY"))return e}return null}async function Ss(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},kp(t,e,{strategy:r.strategy,platform:{...bs,getOffsetParent:n=>bs.getOffsetParent(n,Dp)},middleware:[Op({crossAxis:!0}),Rp({allowedPlacements:[r.placement]})]})}var Ip=c(h());var nl=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?Tr.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},rg=new nl;var Lp=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:Ip.hasChanged,converter:Tr,...e}),i[yn]=(n=i[yn])!==null&&n!==void 0?n:new Map,i[yn].set(r,t??{})};var It=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ne=class extends ts{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new bt.Debouncer,this.revealDebouncer=new bt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",i=>{i.composedPath().includes(this.container)||this.onOut(i)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,i;return Pp.html`
|
|
565
565
|
<div part="container"
|
|
566
566
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
567
567
|
<slot part="slot"></slot>
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
</div>
|
|
577
577
|
</div>
|
|
578
578
|
</div>
|
|
579
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var i,r;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(i=this.tooltip)===null||i===void 0||i.showPopover()):(r=this.tooltip)===null||r===void 0||r.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(i=>e.has(i))&&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,i){let r=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(i),this.text=n,this.manual=r}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(i=>i.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&&Ss(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:i})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${i}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${bt.designSystemVariables.transitionDuration}, left ${bt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,bt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ne.elementDefinitions={"ft-typography":F};ne.styles=
|
|
579
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var i,r;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(i=this.tooltip)===null||i===void 0||i.showPopover()):(r=this.tooltip)===null||r===void 0||r.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(i=>e.has(i))&&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,i){let r=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(i),this.text=n,this.manual=r}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(i=>i.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&&Ss(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:i})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${i}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${bt.designSystemVariables.transitionDuration}, left ${bt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,bt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ne.elementDefinitions={"ft-typography":F};ne.styles=np;It([Lp()],ne.prototype,"text",void 0);It([(0,St.property)({type:Boolean})],ne.prototype,"manual",void 0);It([(0,St.property)({type:Boolean})],ne.prototype,"inline",void 0);It([(0,bt.numberProperty)()],ne.prototype,"delay",void 0);It([(0,St.property)()],ne.prototype,"position",void 0);It([(0,bt.jsonProperty)([])],ne.prototype,"ignoreMatchingElements",void 0);It([(0,St.queryAssignedNodes)()],ne.prototype,"slotNodes",void 0);It([(0,St.query)(".ft-tooltip--container")],ne.prototype,"container",void 0);It([(0,St.query)(".ft-tooltip")],ne.prototype,"tooltip",void 0);It([(0,St.query)(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);It([(0,St.state)()],ne.prototype,"visible",void 0);var Np=c(h());var Mp={"ft-tooltip":ne};(0,Np.customElements)(Mp);var $p=c(S()),On=c(h()),Qi={color:On.FtCssVariableFactory.extend("--ft-loader-color","",On.designSystemVariables.colorPrimary),size:On.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Fp=$p.css`
|
|
580
580
|
:host {
|
|
581
581
|
line-height: 0;
|
|
582
582
|
}
|
|
@@ -645,14 +645,14 @@
|
|
|
645
645
|
transform: translate(calc(0.35 * ${Qi.size}), 0);
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
`;var
|
|
648
|
+
`;var Up=c(S()),Vp=c(h());var er=class extends Vp.FtLitElement{render(){return Up.html`
|
|
649
649
|
<div class="ft-loader">
|
|
650
650
|
<div></div>
|
|
651
651
|
<div></div>
|
|
652
652
|
<div></div>
|
|
653
653
|
<div></div>
|
|
654
654
|
</div>
|
|
655
|
-
`}};er.styles
|
|
655
|
+
`}};er.styles=Fp;var Hp=c(h());var Bp={"ft-loader":er};(0,Hp.customElements)(Bp);var Ai=c(S()),Es=c(ut()),j=c($());var wt=t=>t??he;var ws=c(S()),R=c(h());var zp=R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorPrimary),B={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorSurface),borderRadius:R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusL),color:zp,fontSize:R.FtCssVariableFactory.extend("--ft-button-font-size","",Me.fontSize),iconSize:R.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:R.FtCssVariableFactory.extend("--ft-button-ripple-color","",zp),verticalPadding:R.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:R.FtCssVariableFactory.external(R.designSystemVariables.colorOpacityDisabled,"Design system")},jp=R.FtCssVariableFactory.extend("--ft-button-primary-color","",R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorOnPrimary)),ol={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-primary-background-color","",R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorPrimary)),color:jp,rippleColor:R.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",jp)},Lt={borderRadius:R.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusM)),verticalPadding:R.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Wp=ws.css`
|
|
656
656
|
:host {
|
|
657
657
|
display: inline-block;
|
|
658
658
|
max-width: 100%;
|
|
@@ -742,17 +742,17 @@
|
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
&.ft-button--dense {
|
|
745
|
-
padding: ${
|
|
746
|
-
border-radius: ${
|
|
747
|
-
${(0,R.setVariable)(G.borderRadius,
|
|
745
|
+
padding: ${Lt.verticalPadding} ${Lt.horizontalPadding};
|
|
746
|
+
border-radius: ${Lt.borderRadius};
|
|
747
|
+
${(0,R.setVariable)(G.borderRadius,Lt.borderRadius)};
|
|
748
748
|
|
|
749
749
|
.ft-button--label {
|
|
750
|
-
margin: 0 ${
|
|
750
|
+
margin: 0 ${Lt.iconPadding};
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
&.ft-button--dense.ft-button--outlined {
|
|
755
|
-
padding: calc(${
|
|
755
|
+
padding: calc(${Lt.verticalPadding} - 1px) calc(${Lt.horizontalPadding} - 1px);
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
&.ft-button--round {
|
|
@@ -761,8 +761,8 @@
|
|
|
761
761
|
}
|
|
762
762
|
|
|
763
763
|
&.ft-button--round.ft-button--dense {
|
|
764
|
-
border-radius: calc(var(--button-internal-line-height) / 2 + ${
|
|
765
|
-
${(0,R.setVariable)(G.borderRadius,ws.css`calc(var(--button-internal-line-height) / 2 + ${
|
|
764
|
+
border-radius: calc(var(--button-internal-line-height) / 2 + ${Lt.verticalPadding});
|
|
765
|
+
${(0,R.setVariable)(G.borderRadius,ws.css`calc(var(--button-internal-line-height) / 2 + ${Lt.verticalPadding})`)};
|
|
766
766
|
}
|
|
767
767
|
|
|
768
768
|
&.ft-button--no-text {
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
padding: ${B.verticalPadding};
|
|
774
774
|
|
|
775
775
|
&.ft-button--dense {
|
|
776
|
-
padding: ${
|
|
776
|
+
padding: ${Lt.verticalPadding};
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
&.ft-button--outlined {
|
|
@@ -781,7 +781,7 @@
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
&.ft-button--outlined.ft-button--dense {
|
|
784
|
-
padding: calc(${
|
|
784
|
+
padding: calc(${Lt.verticalPadding} - 1px);
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
|
|
@@ -836,7 +836,7 @@
|
|
|
836
836
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
837
837
|
`:Ai.html`
|
|
838
838
|
<slot part="icon" name="icon"></slot>
|
|
839
|
-
`}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,i){var r;return(r=this.tooltip)===null||r===void 0?void 0:r.showTemporaryText(e,i)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":M,"ft-tooltip":ne,"ft-icon":z,"ft-loader":er,"ft-typography":F};O.styles=[Kt.safariEllipsisFix,
|
|
839
|
+
`}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,i){var r;return(r=this.tooltip)===null||r===void 0?void 0:r.showTemporaryText(e,i)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};O.elementDefinitions={"ft-ripple":M,"ft-tooltip":ne,"ft-icon":z,"ft-loader":er,"ft-typography":F};O.styles=[Kt.safariEllipsisFix,Wp,Kt.noTextSelect];O.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let i=e.target.getRootNode();i instanceof ShadowRoot&&i.host?i.host.hasTextContent=e.boundingClientRect.width>0:O.labelsObserver.unobserve(e.target)}});Y([(0,j.property)({type:Boolean})],O.prototype,"primary",void 0);Y([(0,j.property)({type:Boolean})],O.prototype,"outlined",void 0);Y([(0,j.property)({type:Boolean})],O.prototype,"dense",void 0);Y([(0,j.property)({type:Boolean})],O.prototype,"round",void 0);Y([(0,j.property)({type:Boolean})],O.prototype,"disabled",void 0);Y([(0,j.property)()],O.prototype,"icon",void 0);Y([(0,j.property)()],O.prototype,"iconVariant",void 0);Y([(0,j.property)({type:Boolean})],O.prototype,"trailingIcon",void 0);Y([(0,j.property)()],O.prototype,"label",void 0);Y([(0,j.property)()],O.prototype,"type",void 0);Y([(0,j.property)()],O.prototype,"href",void 0);Y([(0,j.property)()],O.prototype,"target",void 0);Y([(0,j.property)({type:Boolean})],O.prototype,"loading",void 0);Y([(0,j.property)({attribute:"aria-label"})],O.prototype,"ariaLabel",void 0);Y([(0,j.property)()],O.prototype,"ariaHasPopup",void 0);Y([(0,j.property)({attribute:"aria-pressed"})],O.prototype,"ariaPressed",void 0);Y([(0,j.property)({attribute:"aria-expanded"})],O.prototype,"ariaExpanded",void 0);Y([(0,j.property)()],O.prototype,"tooltipPosition",void 0);Y([(0,j.property)({type:Boolean})],O.prototype,"hideTooltip",void 0);Y([(0,j.property)({type:Boolean})],O.prototype,"forceTooltip",void 0);Y([(0,j.property)({type:Boolean})],O.prototype,"activated",void 0);Y([(0,j.query)(".ft-button")],O.prototype,"button",void 0);Y([(0,j.query)(".ft-button--label")],O.prototype,"labelContainer",void 0);Y([(0,j.state)()],O.prototype,"hasTextContent",void 0);Y([(0,j.query)(".ft-button--label slot")],O.prototype,"slottedContent",void 0);Y([(0,j.query)("[part=tooltip]")],O.prototype,"tooltip",void 0);var Gp=c(h());var Kp={"ft-button":O};(0,Gp.customElements)(Kp);var As=c(S()),Gt=c($()),Xp=c(ut()),di=c(h());var Fr=c(S()),et=c($()),Ur=c(h());var Zp=c(ut());var qp=c(S()),He=c(h());var se=c(h());var ae={textColor:se.FtCssVariableFactory.extend("--ft-switch-text-color","",se.designSystemVariables.colorOnSurfaceHigh),backgroundColor:se.FtCssVariableFactory.extend("--ft-switch-background-color","",se.designSystemVariables.colorSurface),selectedTextColor:se.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",se.designSystemVariables.colorPrimary),selectedBackgroundColor:se.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",se.designSystemVariables.colorPrimary),borderColor:se.FtCssVariableFactory.extend("--ft-switch-border-color","",se.designSystemVariables.colorOutline),borderRadius:se.FtCssVariableFactory.extend("--ft-switch-border-radius","",se.designSystemVariables.borderRadiusL),fontSize:se.FtCssVariableFactory.extend("--ft-switch-font-size","",Me.fontSize),iconSize:se.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:se.FtCssVariableFactory.extend("--ft-switch-text-color","",se.designSystemVariables.colorOnSurfaceMedium),rippleColor:se.FtCssVariableFactory.extend("--ft-switch-ripple-color","",se.designSystemVariables.colorPrimary),outlineColor:se.FtCssVariableFactory.extend("--ft-switch-outline-color","",se.designSystemVariables.colorPrimary)};var be={borderRadiusLeft:He.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",He.designSystemVariables.borderRadiusL),borderRadiusRight:He.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",He.designSystemVariables.borderRadiusL),borderWidthLeft:He.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:He.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:He.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Yp=qp.css`
|
|
840
840
|
.ft-switch-option {
|
|
841
841
|
position: relative;
|
|
842
842
|
display: inline-block;
|
|
@@ -925,7 +925,7 @@
|
|
|
925
925
|
color: ${ae.selectedTextColor};
|
|
926
926
|
}
|
|
927
927
|
`;var Pt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},sl=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},al=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},de=class extends Ur.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new al(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(Fr.html`
|
|
928
|
-
<label part="label" for="input" class="${(0,
|
|
928
|
+
<label part="label" for="input" class="${(0,Zp.classMap)(e)}"
|
|
929
929
|
@click=${this.onChange}>
|
|
930
930
|
<div class="ft-switch-option--content">
|
|
931
931
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
@@ -948,8 +948,8 @@
|
|
|
948
948
|
</ft-tooltip>
|
|
949
949
|
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new sl(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?Fr.html`
|
|
950
950
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
951
|
-
`:Fr.nothing}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};de.elementDefinitions={"ft-ripple":M,"ft-typography":F,"ft-tooltip":ne,"ft-icon":z};de.styles=[Ur.safariEllipsisFix,
|
|
952
|
-
<div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,
|
|
951
|
+
`:Fr.nothing}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};de.elementDefinitions={"ft-ripple":M,"ft-typography":F,"ft-tooltip":ne,"ft-icon":z};de.styles=[Ur.safariEllipsisFix,Yp];Pt([(0,et.property)()],de.prototype,"value",void 0);Pt([(0,et.property)()],de.prototype,"icon",void 0);Pt([(0,et.property)()],de.prototype,"iconVariant",void 0);Pt([(0,et.property)()],de.prototype,"label",void 0);Pt([(0,et.property)()],de.prototype,"tooltipPosition",void 0);Pt([(0,et.property)({type:Boolean,reflect:!0})],de.prototype,"selected",void 0);Pt([(0,et.property)({type:Boolean})],de.prototype,"trailingIcon",void 0);Pt([(0,et.property)({type:Boolean})],de.prototype,"unselectable",void 0);Pt([(0,et.query)(".ft-switch-option--content slot")],de.prototype,"slottedContent",void 0);Pt([(0,et.query)(".ft-switch-option--input")],de.prototype,"input",void 0);Pt([(0,et.state)()],de.prototype,"isFocused",void 0);var tr=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ll=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ze=class extends di.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(i=>i.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return As.html`
|
|
952
|
+
<div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,Xp.classMap)(e)}" role="radiogroup" aria-label="${this.label}">
|
|
953
953
|
<slot @slotchange=${this.onSlotchange}
|
|
954
954
|
@option-change=${this.onOptionChangeByScript}
|
|
955
955
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
@@ -989,7 +989,7 @@
|
|
|
989
989
|
--switch-internal-vertical-padding: 2px;
|
|
990
990
|
--switch-internal-horizontal-padding: 4px;
|
|
991
991
|
}
|
|
992
|
-
`;tr([(0,Gt.property)({type:Boolean})],ze.prototype,"dense",void 0);tr([(0,Gt.property)({type:Boolean})],ze.prototype,"unselectable",void 0);tr([(0,Gt.property)()],ze.prototype,"label",void 0);tr([(0,Gt.query)(".ft-switch slot")],ze.prototype,"slottedContent",void 0);tr([(0,Gt.state)()],ze.prototype,"selectedOption",void 0);tr([(0,Gt.state)()],ze.prototype,"displayFocusWhenUsingKeyboard",void 0);tr([(0,Gt.query)(".ft-switch")],ze.prototype,"ftSwitchDiv",void 0);var
|
|
992
|
+
`;tr([(0,Gt.property)({type:Boolean})],ze.prototype,"dense",void 0);tr([(0,Gt.property)({type:Boolean})],ze.prototype,"unselectable",void 0);tr([(0,Gt.property)()],ze.prototype,"label",void 0);tr([(0,Gt.query)(".ft-switch slot")],ze.prototype,"slottedContent",void 0);tr([(0,Gt.state)()],ze.prototype,"selectedOption",void 0);tr([(0,Gt.state)()],ze.prototype,"displayFocusWhenUsingKeyboard",void 0);tr([(0,Gt.query)(".ft-switch")],ze.prototype,"ftSwitchDiv",void 0);var Qp=c(h());var Jp={"ft-switch":ze,"ft-switch-option":de};(0,Qp.customElements)(Jp);var ui=c(h()),ef=c(S());function _s(t){return ef.css`
|
|
993
993
|
[part="container"] {
|
|
994
994
|
box-sizing: border-box;
|
|
995
995
|
display: flex;
|
|
@@ -1048,26 +1048,26 @@
|
|
|
1048
1048
|
[part="buttons-container"] {
|
|
1049
1049
|
align-self: flex-end;
|
|
1050
1050
|
}
|
|
1051
|
-
`}var De=c(h());var Cs={feedbackInputMinWidth:De.FtCssVariableFactory.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:De.FtCssVariableFactory.external(De.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:De.FtCssVariableFactory.extend("--ft-viewer-feedback-send-feedback-color","",De.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:De.FtCssVariableFactory.extend("--ft-viewer-feedback-send-feedback-background-color","",De.designSystemVariables.colorPrimary),filledRatingColor:De.FtCssVariableFactory.extend("--ft-viewer-feedback-filled-rating-color","",De.designSystemVariables.colorPrimary),emptyRatingColor:De.FtCssVariableFactory.extend("--ft-viewer-feedback-empty-rating-color","",De.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:De.FtCssVariableFactory.external(ti.fontSize,"Typography"),sectionTitleFontSize:De.FtCssVariableFactory.external(ii.fontSize,"Typography"),starsBackgroundColor:De.FtCssVariableFactory.create("--ft-viewer-feedback-stars-background-color","","COLOR",De.designSystemVariables.colorSurface)};var ue=c(S()),pe=c($()),Br=c(h());var
|
|
1051
|
+
`}var De=c(h());var Cs={feedbackInputMinWidth:De.FtCssVariableFactory.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:De.FtCssVariableFactory.external(De.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:De.FtCssVariableFactory.extend("--ft-viewer-feedback-send-feedback-color","",De.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:De.FtCssVariableFactory.extend("--ft-viewer-feedback-send-feedback-background-color","",De.designSystemVariables.colorPrimary),filledRatingColor:De.FtCssVariableFactory.extend("--ft-viewer-feedback-filled-rating-color","",De.designSystemVariables.colorPrimary),emptyRatingColor:De.FtCssVariableFactory.extend("--ft-viewer-feedback-empty-rating-color","",De.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:De.FtCssVariableFactory.external(ti.fontSize,"Typography"),sectionTitleFontSize:De.FtCssVariableFactory.external(ii.fontSize,"Typography"),starsBackgroundColor:De.FtCssVariableFactory.create("--ft-viewer-feedback-stars-background-color","","COLOR",De.designSystemVariables.colorSurface)};var ue=c(S()),pe=c($()),Br=c(h());var nf=c(S()),W=c(h());var tf=c(S()),Z=c(h());var L={fontSize:Z.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Z.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Z.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Z.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Z.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Z.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Z.FtCssVariableFactory.extend("--ft-input-label-border-color","",Z.designSystemVariables.colorOutline),textColor:Z.FtCssVariableFactory.extend("--ft-input-label-text-color","",Z.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:Z.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",Z.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:Z.FtCssVariableFactory.extend("--ft-input-label-background-color","",Z.designSystemVariables.colorSurface),borderRadius:Z.FtCssVariableFactory.extend("--ft-input-label-border-radius","",Z.designSystemVariables.borderRadiusS),colorError:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorError,"Design system")},rf=tf.css`
|
|
1052
1052
|
.ft-input-label {
|
|
1053
1053
|
position: absolute;
|
|
1054
1054
|
inset: 0;
|
|
1055
1055
|
display: flex;
|
|
1056
|
-
background-color: ${
|
|
1057
|
-
border-radius: ${
|
|
1058
|
-
border-color: ${
|
|
1056
|
+
background-color: ${L.backgroundColor};
|
|
1057
|
+
border-radius: ${L.borderRadius} ${L.borderRadius} 0 0;
|
|
1058
|
+
border-color: ${L.borderColor};
|
|
1059
1059
|
border-bottom-width: 1px;
|
|
1060
1060
|
border-bottom-style: solid;
|
|
1061
1061
|
}
|
|
1062
1062
|
|
|
1063
1063
|
.ft-input-label--outlined {
|
|
1064
|
-
border-radius: ${
|
|
1064
|
+
border-radius: ${L.borderRadius};
|
|
1065
1065
|
border-width: 1px;
|
|
1066
1066
|
border-style: solid;
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
1069
|
.ft-input-label.ft-input-label--in-error {
|
|
1070
|
-
border-color: ${
|
|
1070
|
+
border-color: ${L.colorError}
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
1073
|
.ft-input-label:before,
|
|
@@ -1077,7 +1077,7 @@
|
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
.ft-input-label:before {
|
|
1080
|
-
width: calc(${
|
|
1080
|
+
width: calc(${L.horizontalSpacing} - 4px);
|
|
1081
1081
|
flex-shrink: 0;
|
|
1082
1082
|
}
|
|
1083
1083
|
|
|
@@ -1090,20 +1090,20 @@
|
|
|
1090
1090
|
display: flex;
|
|
1091
1091
|
flex-shrink: 1;
|
|
1092
1092
|
position: relative;
|
|
1093
|
-
color: ${
|
|
1093
|
+
color: ${L.textColor};
|
|
1094
1094
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1095
|
-
max-width: calc(${
|
|
1095
|
+
max-width: calc(${L.labelMaxWidth} - 2 * (${L.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1096
1096
|
text-overflow: ellipsis;
|
|
1097
|
-
${(0,Z.setVariable)(qe.fontSize,
|
|
1098
|
-
${(0,Z.setVariable)(qe.lineHeight,
|
|
1097
|
+
${(0,Z.setVariable)(qe.fontSize,L.fontSize)};
|
|
1098
|
+
${(0,Z.setVariable)(qe.lineHeight,L.fontSize)};
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
1101
|
.ft-input-label--in-error .ft-input-label--text {
|
|
1102
|
-
color: ${
|
|
1102
|
+
color: ${L.colorError}
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
1105
|
.ft-input-label--disabled .ft-input-label--text {
|
|
1106
|
-
color: ${
|
|
1106
|
+
color: ${L.disabledTextColor};
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
1109
|
.ft-input-label--hidden-text {
|
|
@@ -1120,29 +1120,29 @@
|
|
|
1120
1120
|
overflow: hidden;
|
|
1121
1121
|
white-space: nowrap;
|
|
1122
1122
|
text-overflow: ellipsis;
|
|
1123
|
-
padding: ${
|
|
1124
|
-
margin: calc(${
|
|
1123
|
+
padding: ${L.verticalSpacing} 4px;
|
|
1124
|
+
margin: calc(${L.verticalSpacing} * -1) 0;
|
|
1125
1125
|
max-width: 100%;
|
|
1126
1126
|
box-sizing: border-box;
|
|
1127
1127
|
}
|
|
1128
1128
|
|
|
1129
1129
|
.ft-input-label--raised .ft-input-label--text {
|
|
1130
|
-
${(0,Z.setVariable)(qe.fontSize,
|
|
1131
|
-
${(0,Z.setVariable)(qe.lineHeight,
|
|
1130
|
+
${(0,Z.setVariable)(qe.fontSize,L.raisedFontSize)};
|
|
1131
|
+
${(0,Z.setVariable)(qe.lineHeight,L.raisedFontSize)};
|
|
1132
1132
|
}
|
|
1133
1133
|
|
|
1134
1134
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1135
|
-
top: ${
|
|
1135
|
+
top: ${L.verticalSpacing};
|
|
1136
1136
|
}
|
|
1137
1137
|
|
|
1138
1138
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1139
1139
|
padding: 2px 4px;
|
|
1140
|
-
z-index: ${
|
|
1141
|
-
background-color: ${
|
|
1142
|
-
border-radius: ${
|
|
1140
|
+
z-index: ${L.raisedZIndex};
|
|
1141
|
+
background-color: ${L.backgroundColor};
|
|
1142
|
+
border-radius: ${L.borderRadius};
|
|
1143
1143
|
top: calc((${qe.lineHeight} / -2) + 2px);
|
|
1144
1144
|
}
|
|
1145
|
-
`;var q={fontSize:W.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:W.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:W.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:W.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:W.FtCssVariableFactory.extend("--ft-text-area-helper-color","",W.designSystemVariables.colorOnSurfaceMedium),colorPrimary:W.FtCssVariableFactory.external(W.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:W.FtCssVariableFactory.external(W.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:W.FtCssVariableFactory.external(W.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:W.FtCssVariableFactory.external(W.designSystemVariables.borderRadiusS,"Design system"),colorError:W.FtCssVariableFactory.external(W.designSystemVariables.colorError,"Design system")},nf
|
|
1145
|
+
`;var q={fontSize:W.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:W.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:W.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:W.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:W.FtCssVariableFactory.extend("--ft-text-area-helper-color","",W.designSystemVariables.colorOnSurfaceMedium),colorPrimary:W.FtCssVariableFactory.external(W.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:W.FtCssVariableFactory.external(W.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:W.FtCssVariableFactory.external(W.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:W.FtCssVariableFactory.external(W.designSystemVariables.borderRadiusS,"Design system"),colorError:W.FtCssVariableFactory.external(W.designSystemVariables.colorError,"Design system")},of=nf.css`
|
|
1146
1146
|
*:focus {
|
|
1147
1147
|
outline: none;
|
|
1148
1148
|
}
|
|
@@ -1154,10 +1154,10 @@
|
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
1156
|
ft-input-label {
|
|
1157
|
-
${(0,W.setVariable)(
|
|
1158
|
-
${(0,W.setVariable)(
|
|
1159
|
-
${(0,W.setVariable)(
|
|
1160
|
-
${(0,W.setVariable)(
|
|
1157
|
+
${(0,W.setVariable)(L.fontSize,q.fontSize)};
|
|
1158
|
+
${(0,W.setVariable)(L.raisedFontSize,q.labelSize)};
|
|
1159
|
+
${(0,W.setVariable)(L.verticalSpacing,q.verticalSpacing)};
|
|
1160
|
+
${(0,W.setVariable)(L.horizontalSpacing,q.horizontalSpacing)};
|
|
1161
1161
|
}
|
|
1162
1162
|
|
|
1163
1163
|
.ft-text-area--main-panel {
|
|
@@ -1210,8 +1210,8 @@
|
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
1212
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1213
|
-
${(0,W.setVariable)(
|
|
1214
|
-
${(0,W.setVariable)(
|
|
1213
|
+
${(0,W.setVariable)(L.borderColor,q.colorPrimary)};
|
|
1214
|
+
${(0,W.setVariable)(L.textColor,q.colorPrimary)};
|
|
1215
1215
|
}
|
|
1216
1216
|
|
|
1217
1217
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
@@ -1242,7 +1242,7 @@
|
|
|
1242
1242
|
position: absolute;
|
|
1243
1243
|
bottom: 0;
|
|
1244
1244
|
}
|
|
1245
|
-
`;var Ds=c(S()),Mt=c($()),
|
|
1245
|
+
`;var Ds=c(S()),Mt=c($()),yf=c(ut()),Yt=c(h());var Rs=c(S()),pt=c($()),Os=c(h());var af=c(S()),Vr=c(h()),sf={colorOutline:Vr.FtCssVariableFactory.external(Vr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Vr.FtCssVariableFactory.external(Vr.designSystemVariables.colorOnSurfaceMedium,"Design system")},lf=af.css`
|
|
1246
1246
|
:host {
|
|
1247
1247
|
display: block;
|
|
1248
1248
|
}
|
|
@@ -1253,13 +1253,13 @@
|
|
|
1253
1253
|
|
|
1254
1254
|
ft-icon {
|
|
1255
1255
|
transform: rotate(-45deg);
|
|
1256
|
-
color: ${
|
|
1256
|
+
color: ${sf.colorOutline};
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
1259
1259
|
.ft-resizer--dragging ft-icon,
|
|
1260
1260
|
.ft-resizer:hover ft-icon,
|
|
1261
1261
|
[role="button"][aria-pressed="true"] ft-icon{
|
|
1262
|
-
color: ${
|
|
1262
|
+
color: ${sf.colorOnSurfaceMedium};
|
|
1263
1263
|
}
|
|
1264
1264
|
`;var qt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Ts=class extends CustomEvent{constructor(e,i){super("resize",{detail:{width:e,height:i}})}},Ce=class extends Os.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=_e.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return Rs.html`
|
|
1265
1265
|
<style>
|
|
@@ -1276,16 +1276,16 @@
|
|
|
1276
1276
|
@keydown=${this.initKeydownPress}>
|
|
1277
1277
|
<ft-icon .variant=${this.iconVariant} .value=${this.icon} focusable="false" aria-hidden="true"></ft-icon>
|
|
1278
1278
|
</div>
|
|
1279
|
-
`}initDragFromMouse(e){e.detail>0&&this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let i=e.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(i)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=e.currentTarget;i==="Enter"||i===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):i==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(i==="ArrowLeft"?this.fixedWidth-=10:i==="ArrowRight"?this.fixedWidth+=10:i==="ArrowUp"?this.fixedHeight-=10:i==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(i)&&this.dispatchEvent(new Ts(this.fixedWidth,this.fixedHeight)))}initDrag(e,i){this.dragging=!0,this.startX=e,this.startY=i,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,i){let r=this.fixedWidth+e-this.startX,n=this.fixedHeight+i-this.startY;this.dispatchEvent(new Ts(r,n))}};Ce.elementDefinitions={"ft-icon":z};Ce.styles=[Os.noTextSelect,
|
|
1280
|
-
<div class="${(0,
|
|
1281
|
-
${
|
|
1279
|
+
`}initDragFromMouse(e){e.detail>0&&this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let i=e.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(i)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=e.currentTarget;i==="Enter"||i===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):i==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(i==="ArrowLeft"?this.fixedWidth-=10:i==="ArrowRight"?this.fixedWidth+=10:i==="ArrowUp"?this.fixedHeight-=10:i==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(i)&&this.dispatchEvent(new Ts(this.fixedWidth,this.fixedHeight)))}initDrag(e,i){this.dragging=!0,this.startX=e,this.startY=i,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,i){let r=this.fixedWidth+e-this.startX,n=this.fixedHeight+i-this.startY;this.dispatchEvent(new Ts(r,n))}};Ce.elementDefinitions={"ft-icon":z};Ce.styles=[Os.noTextSelect,lf];qt([(0,pt.property)({type:Number})],Ce.prototype,"initialWidth",void 0);qt([(0,pt.property)({type:Number})],Ce.prototype,"initialHeight",void 0);qt([(0,pt.property)()],Ce.prototype,"icon",void 0);qt([(0,pt.property)()],Ce.prototype,"iconVariant",void 0);qt([(0,pt.property)()],Ce.prototype,"cursor",void 0);qt([(0,pt.property)()],Ce.prototype,"ariaLabel",void 0);qt([(0,pt.state)()],Ce.prototype,"dragging",void 0);qt([(0,pt.state)()],Ce.prototype,"isAriaPressed",void 0);qt([(0,pt.eventOptions)({passive:!0})],Ce.prototype,"initDragFromMouse",null);qt([(0,pt.eventOptions)({passive:!0})],Ce.prototype,"initDragFromTouch",null);var df=c(h());var cf={"ft-resizer":Ce};(0,df.customElements)(cf);var ks=c($());var cl=c(S()),dl=c($());function uf(t,e,i){return t?e(t):i?.(t)}var ff=c(ut()),hf=c(h()),pf=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ir=class extends hf.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return cl.html`
|
|
1280
|
+
<div class="${(0,ff.classMap)(this.inputLabelClasses)}">
|
|
1281
|
+
${uf(this.text,()=>cl.html`
|
|
1282
1282
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1283
1283
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
1284
1284
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1285
1285
|
</div>
|
|
1286
1286
|
`)}
|
|
1287
1287
|
</div>
|
|
1288
|
-
`}};ir.elementDefinitions={};
|
|
1288
|
+
`}};ir.elementDefinitions={};pf([(0,dl.property)({type:String})],ir.prototype,"text",void 0);pf([(0,dl.property)({type:Boolean})],ir.prototype,"raised",void 0);var ul=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ft=class extends ir{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};ft.elementDefinitions={};ft.styles=[$o,rf];ul([(0,ks.property)({type:Boolean})],ft.prototype,"outlined",void 0);ul([(0,ks.property)({type:Boolean})],ft.prototype,"error",void 0);ul([(0,ks.property)({type:Boolean})],ft.prototype,"disabled",void 0);var gf=c(h());var mf={"ft-input-label":ft};(0,gf.customElements)(mf);var Et=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ge=class extends(0,Yt.toFtFormComponent)(Yt.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Ds.html`
|
|
1289
1289
|
<style>
|
|
1290
1290
|
.ft-text-area--main-panel {
|
|
1291
1291
|
height: calc(4 * ${q.verticalSpacing} + ${q.labelSize} + ${q.fontSize} + ${this.height}px);
|
|
@@ -1295,7 +1295,7 @@
|
|
|
1295
1295
|
right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1296
1296
|
}
|
|
1297
1297
|
</style>
|
|
1298
|
-
<div class="${(0,
|
|
1298
|
+
<div class="${(0,yf.classMap)(e)}">
|
|
1299
1299
|
<div class="ft-text-area--main-panel">
|
|
1300
1300
|
<ft-input-label text="${this.label}"
|
|
1301
1301
|
?disabled=${this.disabled}
|
|
@@ -1330,7 +1330,7 @@
|
|
|
1330
1330
|
${this.helper}
|
|
1331
1331
|
</ft-typography>`:void 0}
|
|
1332
1332
|
</div>
|
|
1333
|
-
`}setValue(e,i=!1){this.value=e,this.setFormValue(e),i&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&e.detail.height<this.maxHeight)&&(this.height=e.detail.height)}};ge.elementDefinitions={"ft-input-label":ft,"ft-resizer":Ce,"ft-ripple":M,"ft-typography":F};ge.styles=[gi,
|
|
1333
|
+
`}setValue(e,i=!1){this.value=e,this.setFormValue(e),i&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&e.detail.height<this.maxHeight)&&(this.height=e.detail.height)}};ge.elementDefinitions={"ft-input-label":ft,"ft-resizer":Ce,"ft-ripple":M,"ft-typography":F};ge.styles=[gi,of];Et([(0,Mt.property)({type:String})],ge.prototype,"label",void 0);Et([(0,Mt.property)({reflect:!0})],ge.prototype,"value",void 0);Et([(0,Mt.property)({type:String})],ge.prototype,"helper",void 0);Et([(0,Mt.property)({type:Boolean})],ge.prototype,"outlined",void 0);Et([(0,Mt.property)({type:Boolean})],ge.prototype,"disabled",void 0);Et([(0,Mt.property)({type:Boolean})],ge.prototype,"error",void 0);Et([(0,Yt.numberProperty)({reflect:!0})],ge.prototype,"height",void 0);Et([(0,Yt.numberProperty)()],ge.prototype,"maxHeight",void 0);Et([(0,Mt.query)("textarea")],ge.prototype,"textarea",void 0);Et([(0,Mt.state)()],ge.prototype,"focused",void 0);Et([(0,Yt.ignoreComposingEvents)()],ge.prototype,"onKeyDown",null);Et([(0,Yt.ignoreComposingEvents)()],ge.prototype,"liveUpdateValueFromInputField",null);var xf=c(h());var vf={"ft-text-area":ge};(0,xf.customElements)(vf);var If=c(br());var J=Ze.build("integratedFeedbackComponent"),bf={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var Is=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},Ls=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ps=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var Sf=c(S()),C=c(h());var D={fontSize:C.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:C.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:C.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:C.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:C.FtCssVariableFactory.extend("--ft-text-field-helper-color","",C.designSystemVariables.colorOnSurfaceMedium),colorPrimary:C.FtCssVariableFactory.external(C.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:C.FtCssVariableFactory.external(C.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:C.FtCssVariableFactory.external(C.designSystemVariables.borderRadiusS,"Design system"),colorError:C.FtCssVariableFactory.external(C.designSystemVariables.colorError,"Design system"),prefixColor:C.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",C.designSystemVariables.colorOnSurfaceMedium),iconColor:C.FtCssVariableFactory.extend("--ft-text-field-icon-color","",C.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:C.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:C.FtCssVariableFactory.extend("--ft-text-field-background-color","",C.designSystemVariables.colorSurface),colorOutline:C.FtCssVariableFactory.external(C.designSystemVariables.colorOutline,"Design system"),elevation02:C.FtCssVariableFactory.external(C.designSystemVariables.elevation02,"Design system"),suggestSize:C.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},wf=Sf.css`
|
|
1334
1334
|
*:focus {
|
|
1335
1335
|
outline: none;
|
|
1336
1336
|
}
|
|
@@ -1344,11 +1344,11 @@
|
|
|
1344
1344
|
}
|
|
1345
1345
|
|
|
1346
1346
|
ft-input-label {
|
|
1347
|
-
${(0,C.setVariable)(
|
|
1348
|
-
${(0,C.setVariable)(
|
|
1349
|
-
${(0,C.setVariable)(
|
|
1350
|
-
${(0,C.setVariable)(
|
|
1351
|
-
${(0,C.setVariable)(
|
|
1347
|
+
${(0,C.setVariable)(L.fontSize,D.fontSize)};
|
|
1348
|
+
${(0,C.setVariable)(L.raisedFontSize,D.labelSize)};
|
|
1349
|
+
${(0,C.setVariable)(L.verticalSpacing,D.verticalSpacing)};
|
|
1350
|
+
${(0,C.setVariable)(L.horizontalSpacing,D.horizontalSpacing)};
|
|
1351
|
+
${(0,C.setVariable)(L.backgroundColor,D.backgroundColor)};
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
1354
|
.ft-text-field--main-panel {
|
|
@@ -1427,8 +1427,8 @@
|
|
|
1427
1427
|
}
|
|
1428
1428
|
|
|
1429
1429
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1430
|
-
${(0,C.setVariable)(
|
|
1431
|
-
${(0,C.setVariable)(
|
|
1430
|
+
${(0,C.setVariable)(L.borderColor,D.colorPrimary)};
|
|
1431
|
+
${(0,C.setVariable)(L.textColor,D.colorPrimary)};
|
|
1432
1432
|
}
|
|
1433
1433
|
|
|
1434
1434
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
@@ -1503,13 +1503,13 @@
|
|
|
1503
1503
|
}
|
|
1504
1504
|
|
|
1505
1505
|
.ft-text-field--with-icon {
|
|
1506
|
-
${(0,C.setVariable)(
|
|
1506
|
+
${(0,C.setVariable)(L.labelMaxWidth,`calc(100% - ${ce.size} - ${L.horizontalSpacing})`)};
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
1509
|
.ft-text-field--with-password ft-icon:hover {
|
|
1510
1510
|
cursor: pointer;
|
|
1511
1511
|
}
|
|
1512
|
-
`;var oe=c(S()),
|
|
1512
|
+
`;var oe=c(S()),I=c($()),Rf=c(br()),Of=c(ut());var Ie=c(h());var Ms=Ze.build("ftTextField"),Ef={clear:"Clear",cleared:"Input cleared"};var Cf=c(h()),rr=c(S()),Zt=c($());var Af=c(S());var _f=Af.css`
|
|
1513
1513
|
.ft-text-field-suggestion--suggestion {
|
|
1514
1514
|
position: relative;
|
|
1515
1515
|
padding: 8px 16px;
|
|
@@ -1555,8 +1555,8 @@
|
|
|
1555
1555
|
slot {
|
|
1556
1556
|
pointer-events: none;
|
|
1557
1557
|
}
|
|
1558
|
-
`;var
|
|
1559
|
-
<div class="${(0,
|
|
1558
|
+
`;var Tf=c(ut());var nr=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},pl=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},fl=class extends CustomEvent{constructor(e){super("suggestion-removed",{detail:e,bubbles:!0,composed:!0})}},je=class extends Cf.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return rr.html`
|
|
1559
|
+
<div class="${(0,Tf.classMap)(e)}">
|
|
1560
1560
|
<div
|
|
1561
1561
|
class="ft-text-field-suggestion--suggestion"
|
|
1562
1562
|
tabindex="-1"
|
|
@@ -1587,8 +1587,8 @@
|
|
|
1587
1587
|
</ft-button>
|
|
1588
1588
|
`:rr.nothing}
|
|
1589
1589
|
</div>
|
|
1590
|
-
`}focus(e,i){var r,n;i&&this.removable?(r=this.removeButton)===null||r===void 0||r.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var i;(i=e?this.removeButton:this.suggestion)===null||i===void 0||i.click()}isRemoveButtonFocused(){var e,i;return(i=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&i!==void 0?i:!1}selectSuggestion(){this.dispatchEvent(new pl(this.getValue()))}removeSuggestion(){this.dispatchEvent(new fl(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(i=this.removeButton)===null||i===void 0||i.focus());break}}removeButtonKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(i=this.suggestion)===null||i===void 0||i.focus();break}}};je.elementDefinitions={"ft-ripple":M,"ft-typography":F,"ft-icon":z,"ft-button":O};je.styles=
|
|
1591
|
-
<div class="${(0,
|
|
1590
|
+
`}focus(e,i){var r,n;i&&this.removable?(r=this.removeButton)===null||r===void 0||r.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var i;(i=e?this.removeButton:this.suggestion)===null||i===void 0||i.click()}isRemoveButtonFocused(){var e,i;return(i=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&i!==void 0?i:!1}selectSuggestion(){this.dispatchEvent(new pl(this.getValue()))}removeSuggestion(){this.dispatchEvent(new fl(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(i=this.removeButton)===null||i===void 0||i.focus());break}}removeButtonKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(i=this.suggestion)===null||i===void 0||i.focus();break}}};je.elementDefinitions={"ft-ripple":M,"ft-typography":F,"ft-icon":z,"ft-button":O};je.styles=_f;nr([(0,Zt.property)()],je.prototype,"value",void 0);nr([(0,Zt.property)()],je.prototype,"helper",void 0);nr([(0,Zt.property)({type:Boolean})],je.prototype,"removable",void 0);nr([(0,Zt.property)()],je.prototype,"removeButtonLabel",void 0);nr([(0,Zt.query)(".ft-text-field-suggestion--suggestion")],je.prototype,"suggestion",void 0);nr([(0,Zt.query)(".ft-text-field-suggestion--remove")],je.prototype,"removeButton",void 0);nr([(0,Zt.queryAssignedNodes)()],je.prototype,"assignedNodes",void 0);var N=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},_=class extends Xe((0,Ie.toFtFormComponent)(Ie.FtLitElement)){get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let i=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",i)}focusWithoutSuggestions(){this.showSuggestionsOnFocus=!1,this.focus(),this.showSuggestionsOnFocus=!0}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let i={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return oe.html`
|
|
1591
|
+
<div class="${(0,Of.classMap)(i)}">
|
|
1592
1592
|
<div class="ft-text-field--main-panel"
|
|
1593
1593
|
@keydown=${this.handleKeyboardNavigation}
|
|
1594
1594
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1650,7 +1650,7 @@
|
|
|
1650
1650
|
`:oe.nothing}
|
|
1651
1651
|
</div>
|
|
1652
1652
|
`}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?oe.html`
|
|
1653
|
-
${(0,
|
|
1653
|
+
${(0,Rf.repeat)(this.providedSuggestions,e=>{var i,r;return oe.html`
|
|
1654
1654
|
<ft-text-field-suggestion part="suggestion"
|
|
1655
1655
|
value="${e.value}"
|
|
1656
1656
|
?removable=${e.removable} }
|
|
@@ -1684,7 +1684,7 @@
|
|
|
1684
1684
|
.variant=${this.iconVariant}
|
|
1685
1685
|
.value=${this.icon}
|
|
1686
1686
|
@click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
|
|
1687
|
-
`:oe.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&this.value&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,
|
|
1687
|
+
`:oe.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&this.value&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,Ie.cancelable)(i),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=i)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var i,r,n;!((i=this.input)===null||i===void 0)&&i.matches(":autofill")&&this.dispatchedValue!==((r=this.input)===null||r===void 0?void 0:r.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}constructor(){super(),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=jt.EYE_SLASH,this.passwordRevealedIcon=jt.EYE,this.filterSuggestions=!1,this.clearable=!1,this.clearedAnnouncement="",this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!0,this.visibleSuggestions=[],this.providedSuggestions=[],this.showSuggestionsOnFocus=!0,this.addI18nContext(Ms,Ef)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,i=!1){var r,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Is(e))),i&&this.dispatchedValue!==e&&(this.inputValid=(n=(r=this.input)===null||r===void 0?void 0:r.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Ls(e))):this.dispatchEvent(new Ps(this.input.validationMessage)))}handleInput(e){var i;let r=((i=this.input)===null||i===void 0?void 0:i.value)||"";this.setValue(r,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var i,r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),o;e.key==="ArrowDown"?o=n<this.visibleSuggestions.length-1?n+1:0:o=n>0?n-1:this.visibleSuggestions.length-1,(i=this.visibleSuggestions[o])===null||i===void 0||i.focus(void 0,(r=this.visibleSuggestions[n])===null||r===void 0?void 0:r.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){this.setValue(e.detail,!0),this.focusWithoutSuggestions(),this.hideSuggestions=!0}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.showSuggestionsOnFocus&&(this.hideSuggestions=!1)}keepFocusOnSuggestionsScrollbar(e){e.target===e.currentTarget&&e.preventDefault()}onMainPanelBlur(){var e,i;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,Ie.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:i,y:r})=>{this.suggestionsContainer.style.left=`${i}px`,this.suggestionsContainer.style.top=`${r}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};_.elementDefinitions={"ft-input-label":ft,"ft-ripple":M,"ft-typography":F,"ft-icon":z,"ft-text-field-suggestion":je};_.styles=[gi,Ie.noTextInputDefaultClearButton,wf,Ie.screenReaderStyles];N([(0,I.property)()],_.prototype,"label",void 0);N([(0,I.property)({noAccessor:!0})],_.prototype,"value",null);N([(0,I.state)()],_.prototype,"dispatchedValue",void 0);N([(0,I.property)()],_.prototype,"helper",void 0);N([(0,I.property)()],_.prototype,"suggestionsHelper",void 0);N([(0,I.property)({type:Boolean})],_.prototype,"outlined",void 0);N([(0,I.property)({type:Boolean})],_.prototype,"disabled",void 0);N([(0,I.property)({type:Boolean})],_.prototype,"error",void 0);N([(0,I.property)({type:Boolean})],_.prototype,"fixedMenuPosition",void 0);N([(0,I.property)()],_.prototype,"prefix",void 0);N([(0,I.property)()],_.prototype,"icon",void 0);N([(0,I.property)()],_.prototype,"name",void 0);N([(0,I.property)()],_.prototype,"type",void 0);N([(0,I.property)()],_.prototype,"passwordHiddenIcon",void 0);N([(0,I.property)()],_.prototype,"passwordRevealedIcon",void 0);N([(0,I.property)()],_.prototype,"iconVariant",void 0);N([(0,I.property)({type:Boolean})],_.prototype,"filterSuggestions",void 0);N([(0,I.property)({type:Boolean})],_.prototype,"clearable",void 0);N([(0,I.state)()],_.prototype,"clearedAnnouncement",void 0);N([(0,Ie.numberProperty)()],_.prototype,"maxLength",void 0);N([(0,I.property)({type:Boolean})],_.prototype,"password",void 0);N([(0,I.property)({type:String})],_.prototype,"autocomplete",void 0);N([(0,I.property)({attribute:!1})],_.prototype,"suggestionsProvider",void 0);N([(0,I.property)({type:Boolean})],_.prototype,"hideCurrentValueSuggestion",void 0);N([(0,I.state)()],_.prototype,"focused",void 0);N([(0,I.state)()],_.prototype,"inputValid",void 0);N([(0,I.state)()],_.prototype,"hidePassword",void 0);N([(0,I.state)()],_.prototype,"hideSuggestions",void 0);N([(0,I.state)()],_.prototype,"visibleSuggestions",void 0);N([(0,I.state)()],_.prototype,"providedSuggestions",void 0);N([(0,I.query)(".ft-text-field--main-panel")],_.prototype,"mainPanel",void 0);N([(0,I.query)(".ft-text-field--input")],_.prototype,"input",void 0);N([(0,I.query)(".ft-text-field-suggestion--new-value")],_.prototype,"newValueSuggestion",void 0);N([(0,I.query)(".ft-text-field--suggestions")],_.prototype,"suggestionsContainer",void 0);N([(0,I.queryAll)("ft-text-field-suggestion")],_.prototype,"providedSuggestionsInDom",void 0);N([(0,I.queryAssignedElements)({selector:"ft-text-field-suggestion"})],_.prototype,"slottedSuggestions",void 0);N([(0,Ie.ignoreComposingEvents)()],_.prototype,"handleInput",null);N([(0,Ie.ignoreComposingEvents)()],_.prototype,"catchComposingEvents",null);var Df=c(h());var kf={"ft-text-field":_,"ft-text-field-suggestion":je};(0,Df.customElements)(kf);var Ns=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Se=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Q=class extends Xe(Br.FtLitElementRedux){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(J,bf),this.addStore(v)}get configuredRatingType(){var e,i;return(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:Ee.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,i,r;return(r=(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||i===void 0?void 0:i.type)!==null&&r!==void 0?r:Ee.NO_RATING}get ratingValue(){var e,i,r;return(r=(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||i===void 0?void 0:i.value)!==null&&r!==void 0?r:-1}get ratingDate(){var e,i;let r=(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||i===void 0?void 0:i.date;return typeof r=="string"?(0,Br.parseDate)(r):r}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ue.nothing:ue.html`
|
|
1688
1688
|
<div part="container">
|
|
1689
1689
|
${this.hideTitle?ue.nothing:ue.html`
|
|
1690
1690
|
<ft-typography variant="${V.title}" part="main-title">
|
|
@@ -1706,7 +1706,7 @@
|
|
|
1706
1706
|
</div>
|
|
1707
1707
|
`:ue.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return J.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return J.messages.ratedNow();let i=new Date().toLocaleDateString(),r=e.toLocaleDateString();return i===r?J.messages.ratedToday():J.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case Ee.STARS:return ue.html`
|
|
1708
1708
|
<div part="rating rating-stars">
|
|
1709
|
-
${(0,
|
|
1709
|
+
${(0,If.repeat)(new Array(5),(e,i)=>i,(e,i)=>{let r=this.ratingTypeOfDoneRatingOfThisContent===Ee.STARS&&this.ratingValue>i,n=i+1;return ue.html`
|
|
1710
1710
|
<ft-button round part="rating-stars-${n}"
|
|
1711
1711
|
label="${J.messages.starsRating(n)}"
|
|
1712
1712
|
tooltipPosition="top"
|
|
@@ -1801,7 +1801,7 @@ _________________________________________________________________
|
|
|
1801
1801
|
${e??""}
|
|
1802
1802
|
|
|
1803
1803
|
_________________________________________________________________
|
|
1804
|
-
${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configuration)===null||i===void 0?void 0:i.recipients.join(",")}?subject=${r}&body=${n}`}};var Ne=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ee=class extends Ye(Xe(Ge)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(vi.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(vi.RATING,{session:this.session}))&&this.configuredRatingType!=Ee.NO_RATING}get configuredRatingType(){var e,i;return(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:Ee.NO_RATING}constructor(e=new Ao){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=_e.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Fs,this.i18nProperties={feedbackMainTitle:J.properties.viewerFeedbackMainTitle(),ratingSectionTitle:J.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:J.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:J.properties.viewerFeedbackSectionTitle()},this.loadGuestRating=()=>{let i=this.guestStorage.get(this.guestRatingKey());i&&(this.ratingSummary=i)},this.guestRatingKey=()=>{var i;return"ft-viewer-document-feedback-guest-rating-"+((i=this.document)===null||i===void 0?void 0:i.id)},this.sendRatingDebouncer=new tt.Debouncer(500),this.addStore(v)}render(){return
|
|
1804
|
+
${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configuration)===null||i===void 0?void 0:i.recipients.join(",")}?subject=${r}&body=${n}`}};var Ne=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ee=class extends Ye(Xe(Ge)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(vi.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(vi.RATING,{session:this.session}))&&this.configuredRatingType!=Ee.NO_RATING}get configuredRatingType(){var e,i;return(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:Ee.NO_RATING}constructor(e=new Ao){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=_e.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Fs,this.i18nProperties={feedbackMainTitle:J.properties.viewerFeedbackMainTitle(),ratingSectionTitle:J.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:J.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:J.properties.viewerFeedbackSectionTitle()},this.loadGuestRating=()=>{let i=this.guestStorage.get(this.guestRatingKey());i&&(this.ratingSummary=i)},this.guestRatingKey=()=>{var i;return"ft-viewer-document-feedback-guest-rating-"+((i=this.document)===null||i===void 0?void 0:i.id)},this.sendRatingDebouncer=new tt.Debouncer(500),this.addStore(v)}render(){return Pf.html`
|
|
1805
1805
|
<ft-viewer-feedback
|
|
1806
1806
|
?hideTitle=${this.hideTitle}
|
|
1807
1807
|
iconVariant="${this.iconVariant}"
|
|
@@ -1822,7 +1822,7 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
1822
1822
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1823
1823
|
@open-more-options=${this.openMoreOptions}
|
|
1824
1824
|
></ft-viewer-feedback>
|
|
1825
|
-
`}willUpdate(e){var i,r,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(hl,Lf),["document","configuration","user","mailSubject"].some(o=>e.has(o))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=this.document.prettyUrl)!==null&&n!==void 0?n:"",this.document.metadata,this.configuration,((r=(i=this.session)===null||i===void 0?void 0:i.profile)===null||r===void 0?void 0:r.userId)!=null),["session","document"].some(o=>e.has(o))&&this.session&&this.document&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var i,r,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((i=this.service)===null||i===void 0?void 0:i.unrateDocument(this.document.id)):await((r=this.service)===null||r===void 0?void 0:r.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new tt.FtNotificationEvent({type:"error",message:J.messages.ratingFailure()}))}}async sendFeedback(e){var i;try{this.editorMode?this.dispatchEvent(new tt.FtNotificationEvent({type:"info",message:hl.messages.feedbackAndRatingDisabledInEditor()})):(await((i=this.service)===null||i===void 0?void 0:i.sendDocumentFeedback(this.document.id,e.detail.message,e.detail.from)),this.dispatchEvent(new tt.FtNotificationEvent({type:"info",message:J.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new tt.FtNotificationEvent({type:"error",message:J.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new ps)}openMoreOptions(){var e,i;this.dispatchEvent(new us({documentId:this.document.id,documentTitle:this.displayName||"",ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Ee.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};ee.styles=_s(Cs);ee.elementDefinitions={"ft-viewer-feedback":kn};ee.storedRatingIfAuthenticated=(t,e)=>{var i,r;return!((i=e.session)===null||i===void 0)&&i.sessionAuthenticated?t.documentRating:(r=e.ratingSummary)!==null&&r!==void 0?r:t.documentRating};Ne([(0,tt.redux)({store:v.name})],ee.prototype,"session",void 0);Ne([(0,tt.redux)({store:"viewer"})],ee.prototype,"document",void 0);Ne([(0,tt.redux)({store:v.name})],ee.prototype,"editorMode",void 0);Ne([(0,tt.redux)({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ee.prototype,"configuration",void 0);Ne([(0,tt.redux)({store:"viewer",selector:ee.storedRatingIfAuthenticated})],ee.prototype,"ratingSummary",void 0);Ne([(0,Nt.property)({type:Boolean})],ee.prototype,"hideTitle",void 0);Ne([(0,Nt.property)()],ee.prototype,"iconVariant",void 0);Ne([(0,Nt.property)()],ee.prototype,"emptyStarIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"filledStarIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"emptyLikeIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"filledLikeIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"emptyDislikeIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"filledDislikeIcon",void 0);Ne([(0,Nt.query)("ft-viewer-feedback")],ee.prototype,"viewerFeedback",void 0);Ne([rs($s.properties["mail.file_feedback.subject"](t=>{var e,i;return[((e=t.document)===null||e===void 0?void 0:e.title)||"Document",((i=t.document)===null||i===void 0?void 0:i.filename)||"Filename"]}))],ee.prototype,"mailSubject",void 0);Ne([(0,tt.redux)({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ee.prototype,"displayName",void 0);var
|
|
1825
|
+
`}willUpdate(e){var i,r,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(hl,Lf),["document","configuration","user","mailSubject"].some(o=>e.has(o))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=this.document.prettyUrl)!==null&&n!==void 0?n:"",this.document.metadata,this.configuration,((r=(i=this.session)===null||i===void 0?void 0:i.profile)===null||r===void 0?void 0:r.userId)!=null),["session","document"].some(o=>e.has(o))&&this.session&&this.document&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var i,r,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((i=this.service)===null||i===void 0?void 0:i.unrateDocument(this.document.id)):await((r=this.service)===null||r===void 0?void 0:r.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new tt.FtNotificationEvent({type:"error",message:J.messages.ratingFailure()}))}}async sendFeedback(e){var i;try{this.editorMode?this.dispatchEvent(new tt.FtNotificationEvent({type:"info",message:hl.messages.feedbackAndRatingDisabledInEditor()})):(await((i=this.service)===null||i===void 0?void 0:i.sendDocumentFeedback(this.document.id,e.detail.message,e.detail.from)),this.dispatchEvent(new tt.FtNotificationEvent({type:"info",message:J.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new tt.FtNotificationEvent({type:"error",message:J.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new ps)}openMoreOptions(){var e,i;this.dispatchEvent(new us({documentId:this.document.id,documentTitle:this.displayName||"",ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Ee.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};ee.styles=_s(Cs);ee.elementDefinitions={"ft-viewer-feedback":kn};ee.storedRatingIfAuthenticated=(t,e)=>{var i,r;return!((i=e.session)===null||i===void 0)&&i.sessionAuthenticated?t.documentRating:(r=e.ratingSummary)!==null&&r!==void 0?r:t.documentRating};Ne([(0,tt.redux)({store:v.name})],ee.prototype,"session",void 0);Ne([(0,tt.redux)({store:"viewer"})],ee.prototype,"document",void 0);Ne([(0,tt.redux)({store:v.name})],ee.prototype,"editorMode",void 0);Ne([(0,tt.redux)({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ee.prototype,"configuration",void 0);Ne([(0,tt.redux)({store:"viewer",selector:ee.storedRatingIfAuthenticated})],ee.prototype,"ratingSummary",void 0);Ne([(0,Nt.property)({type:Boolean})],ee.prototype,"hideTitle",void 0);Ne([(0,Nt.property)()],ee.prototype,"iconVariant",void 0);Ne([(0,Nt.property)()],ee.prototype,"emptyStarIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"filledStarIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"emptyLikeIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"filledLikeIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"emptyDislikeIcon",void 0);Ne([(0,Nt.property)()],ee.prototype,"filledDislikeIcon",void 0);Ne([(0,Nt.query)("ft-viewer-feedback")],ee.prototype,"viewerFeedback",void 0);Ne([rs($s.properties["mail.file_feedback.subject"](t=>{var e,i;return[((e=t.document)===null||e===void 0?void 0:e.title)||"Document",((i=t.document)===null||i===void 0?void 0:i.filename)||"Filename"]}))],ee.prototype,"mailSubject",void 0);Ne([(0,tt.redux)({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ee.prototype,"displayName",void 0);var Mf=c(h());var Us=class extends Ye(Mf.FtLitElementRedux){};var We=c(h()),$t=c($());var Nf=c(S());var $f=Nf.css`
|
|
1826
1826
|
:host {
|
|
1827
1827
|
display: inline-block;
|
|
1828
1828
|
}
|
|
@@ -1842,7 +1842,7 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
1842
1842
|
all: unset;
|
|
1843
1843
|
position: relative;
|
|
1844
1844
|
}
|
|
1845
|
-
`;var or=c(S()),Te=c($()),
|
|
1845
|
+
`;var or=c(S()),Te=c($()),Hf=c(ut()),Hr=c(h());var Dn=c(S()),P=c(h());var Ff=P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnSurface),it={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorSurface),color:Ff,fontSize:P.FtCssVariableFactory.extend("--ft-chip-font-size","",ct.fontSize),fontWeight:P.FtCssVariableFactory.extend("--ft-chip-font-weight","",ct.fontWeight),iconSize:P.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:P.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:P.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Ff),horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:P.FtCssVariableFactory.extend("--ft-chip-border-color","",P.designSystemVariables.colorOutline),opacityDisabled:P.FtCssVariableFactory.external(P.designSystemVariables.colorOpacityDisabled,"Design system")},Uf=P.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",P.FtCssVariableFactory.extend("--ft-chip-color","",P.designSystemVariables.colorOnPrimary)),ml={backgroundColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",P.FtCssVariableFactory.extend("--ft-chip-background-color","",P.designSystemVariables.colorPrimary)),color:Uf,rippleColor:P.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Uf)},Vf={horizontalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:P.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Bf=[P.noTextSelect,Dn.css`
|
|
1846
1846
|
:host {
|
|
1847
1847
|
display: inline-block;
|
|
1848
1848
|
max-width: 100%;
|
|
@@ -1882,8 +1882,8 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
1882
1882
|
|
|
1883
1883
|
.ft-chip--dense {
|
|
1884
1884
|
--chip-internal-icon-padding: 3px;
|
|
1885
|
-
--chip-internal-vertical-padding: ${
|
|
1886
|
-
--chip-internal-horizontal-padding: ${
|
|
1885
|
+
--chip-internal-vertical-padding: ${Vf.verticalPadding};
|
|
1886
|
+
--chip-internal-horizontal-padding: ${Vf.horizontalPadding};
|
|
1887
1887
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1888
1888
|
}
|
|
1889
1889
|
|
|
@@ -1983,7 +1983,7 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
1983
1983
|
order: -1;
|
|
1984
1984
|
}
|
|
1985
1985
|
`];var $e=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Vs=class extends CustomEvent{constructor(){super("icon-click")}},te=class extends Hr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let i={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Hr.isSafari};return or.html`
|
|
1986
|
-
<div class="${(0,
|
|
1986
|
+
<div class="${(0,Hf.classMap)(i)}"
|
|
1987
1987
|
aria-label="${this.labelOnIconOnly?or.nothing:this.getLabel()}"
|
|
1988
1988
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1989
1989
|
@keyup=${this.onKeyUp}
|
|
@@ -2010,7 +2010,7 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
2010
2010
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
2011
2011
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
2012
2012
|
</div>
|
|
2013
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Vs))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Vs))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Hr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};te.elementDefinitions={"ft-ripple":M,"ft-typography":F,"ft-icon":z,"ft-button":O};te.styles=
|
|
2013
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Vs))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Vs))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Hr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};te.elementDefinitions={"ft-ripple":M,"ft-typography":F,"ft-icon":z,"ft-button":O};te.styles=Bf;$e([(0,Te.property)({type:Boolean})],te.prototype,"highlighted",void 0);$e([(0,Te.property)({type:Boolean})],te.prototype,"removable",void 0);$e([(0,Te.property)({type:Boolean})],te.prototype,"disabled",void 0);$e([(0,Te.property)({type:Boolean})],te.prototype,"clickable",void 0);$e([(0,Te.property)({type:Boolean})],te.prototype,"iconClickable",void 0);$e([(0,Te.property)({type:Boolean})],te.prototype,"dense",void 0);$e([(0,Te.property)({type:Boolean})],te.prototype,"multiLine",void 0);$e([(0,Te.property)()],te.prototype,"label",void 0);$e([(0,Te.property)()],te.prototype,"iconLabel",void 0);$e([(0,Te.property)({type:Boolean})],te.prototype,"hideIconTooltip",void 0);$e([(0,Te.property)({type:Boolean})],te.prototype,"accessibleLabelOnIcon",void 0);$e([(0,Te.property)()],te.prototype,"icon",void 0);$e([(0,Te.property)()],te.prototype,"iconVariant",void 0);$e([(0,Te.property)({type:Boolean})],te.prototype,"trailingIcon",void 0);$e([(0,Te.property)()],te.prototype,"typographyVariant",void 0);$e([(0,Te.query)("ft-typography slot")],te.prototype,"slottedContent",void 0);var jf=c(h());var zf={"ft-chip":te};(0,jf.customElements)(zf);var Zf=c(S()),we=c($()),Wr=c(h());var Xf=c(ut());var In=c(S()),jr=c($()),zs=c(h());var Wf=c(S()),Bs=c(h()),ng={iconColor:Bs.FtCssVariableFactory.extend("--ft-floating-menu-icon-color","",Bs.designSystemVariables.colorOnSurfaceMedium)},Kf=Wf.css`
|
|
2014
2014
|
.ft-floating-menu-item {
|
|
2015
2015
|
cursor: pointer;
|
|
2016
2016
|
display: flex;
|
|
@@ -2030,7 +2030,7 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
2030
2030
|
}
|
|
2031
2031
|
|
|
2032
2032
|
.ft-floating-menu-item ft-icon {
|
|
2033
|
-
color: ${
|
|
2033
|
+
color: ${ng.iconColor};
|
|
2034
2034
|
margin-left: 0;
|
|
2035
2035
|
flex-shrink: 0;
|
|
2036
2036
|
flex-grow: 0;
|
|
@@ -2045,8 +2045,8 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
2045
2045
|
word-break: break-word;
|
|
2046
2046
|
hyphens: auto;
|
|
2047
2047
|
}
|
|
2048
|
-
`;var
|
|
2049
|
-
<div class="${(0,
|
|
2048
|
+
`;var Gf=c(ut()),zr=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Hs=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Fe=class extends zs.FtLitElement{constructor(){super(...arguments),this.value="",this.notFocusable=!1,this.disabled=!1}get floatingClasses(){return{"ft-floating-menu-item":!0,"ft-floating-menu-item--disabled":this.disabled}}render(){return In.html`
|
|
2049
|
+
<div class="${(0,Gf.classMap)(this.floatingClasses)}"
|
|
2050
2050
|
tabindex="${this.notFocusable||this.disabled?"-1":"0"}"
|
|
2051
2051
|
aria-disabled="${this.disabled}"
|
|
2052
2052
|
@keydown=${e=>this.onKeyDown(e)}
|
|
@@ -2054,14 +2054,14 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
2054
2054
|
<ft-ripple
|
|
2055
2055
|
?disabled=${this.disabled}
|
|
2056
2056
|
></ft-ripple>
|
|
2057
|
-
${this.icon?
|
|
2057
|
+
${this.icon?In.html`
|
|
2058
2058
|
<ft-icon .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
2059
|
-
`:
|
|
2059
|
+
`:In.nothing}
|
|
2060
2060
|
<ft-typography variant="${V.body2}">
|
|
2061
2061
|
<slot></slot>
|
|
2062
2062
|
</ft-typography>
|
|
2063
2063
|
</div>
|
|
2064
|
-
`}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Hs(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Hs(this.value)))}};Fe.elementDefinitions={"ft-icon":z,"ft-ripple":M,"ft-typography":F};Fe.styles=
|
|
2064
|
+
`}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Hs(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Hs(this.value)))}};Fe.elementDefinitions={"ft-icon":z,"ft-ripple":M,"ft-typography":F};Fe.styles=Kf;zr([(0,jr.property)()],Fe.prototype,"iconVariant",void 0);zr([(0,jr.property)()],Fe.prototype,"icon",void 0);zr([(0,jr.property)()],Fe.prototype,"value",void 0);zr([(0,jr.property)({type:Boolean})],Fe.prototype,"notFocusable",void 0);zr([(0,jr.property)({type:Boolean})],Fe.prototype,"disabled",void 0);zr([(0,zs.ignoreComposingEvents)()],Fe.prototype,"onKeyDown",null);var qf=c(S()),ht=c(h()),_i={zIndex:ht.FtCssVariableFactory.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:ht.FtCssVariableFactory.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:ht.FtCssVariableFactory.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:ht.FtCssVariableFactory.extend("--ft-floating-menu-text-color","",ht.designSystemVariables.colorOnSurfaceHigh),colorSurface:ht.FtCssVariableFactory.external(ht.designSystemVariables.colorSurface,"Design system"),menuElevation:ht.FtCssVariableFactory.external(ht.designSystemVariables.elevation02,"Design system"),borderRadiusS:ht.FtCssVariableFactory.external(ht.designSystemVariables.borderRadiusS,"Design system")},Yf=qf.css`
|
|
2065
2065
|
.ft-floating-menu {
|
|
2066
2066
|
color: ${_i.textColor};
|
|
2067
2067
|
display: contents;
|
|
@@ -2092,8 +2092,8 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
2092
2092
|
.ft-floating-menu--open .ft-floating-menu--options {
|
|
2093
2093
|
display: block;
|
|
2094
2094
|
}
|
|
2095
|
-
`;var Ue=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},js=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var Ws=class extends CustomEvent{constructor(e){super("select",{detail:e})}},ie=class extends Wr.FtLitElement{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=_e.fluid_topics,this.disabled=!1,this.menuOpen=!1,this.forceMenuOpen=!1,this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}updated(e){super.updated(e),e.has("menuOpen")&&this.dispatchEvent(new js(this.menuOpen))}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return
|
|
2096
|
-
<div part="container" class="${(0,
|
|
2095
|
+
`;var Ue=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},js=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var Ws=class extends CustomEvent{constructor(e){super("select",{detail:e})}},ie=class extends Wr.FtLitElement{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=_e.fluid_topics,this.disabled=!1,this.menuOpen=!1,this.forceMenuOpen=!1,this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}updated(e){super.updated(e),e.has("menuOpen")&&this.dispatchEvent(new js(this.menuOpen))}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return Zf.html`
|
|
2096
|
+
<div part="container" class="${(0,Xf.classMap)(e)}" @keydown=${this.onKeyDown}>
|
|
2097
2097
|
<slot name="toggle"
|
|
2098
2098
|
part="toggle"
|
|
2099
2099
|
@click=${this.toggleMenu}
|
|
@@ -2123,7 +2123,7 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
2123
2123
|
</div>
|
|
2124
2124
|
</div>
|
|
2125
2125
|
</div>
|
|
2126
|
-
`}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new Ws(e.detail)),this.closeMenu()}onContentClick(e){(0,Wr.eventPathContainsMatchingElement)(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:i,y:r}=await Ss(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${i}px`,this.menuWrapper.style.top=`${r}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};ie.elementDefinitions={"ft-floating-menu-item":Fe,"ft-button":O};ie.styles=
|
|
2126
|
+
`}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new Ws(e.detail)),this.closeMenu()}onContentClick(e){(0,Wr.eventPathContainsMatchingElement)(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:i,y:r}=await Ss(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${i}px`,this.menuWrapper.style.top=`${r}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};ie.elementDefinitions={"ft-floating-menu-item":Fe,"ft-button":O};ie.styles=Yf;Ue([(0,we.property)()],ie.prototype,"horizontalAlignment",void 0);Ue([(0,we.property)()],ie.prototype,"verticalAlignment",void 0);Ue([(0,Wr.jsonProperty)([])],ie.prototype,"closeMenuMatchers",void 0);Ue([(0,we.property)({type:Boolean})],ie.prototype,"primary",void 0);Ue([(0,we.property)()],ie.prototype,"label",void 0);Ue([(0,we.property)()],ie.prototype,"tooltipPosition",void 0);Ue([(0,we.property)()],ie.prototype,"icon",void 0);Ue([(0,we.property)()],ie.prototype,"iconVariant",void 0);Ue([(0,we.property)()],ie.prototype,"text",void 0);Ue([(0,we.property)({type:Boolean})],ie.prototype,"disabled",void 0);Ue([(0,we.state)()],ie.prototype,"menuOpen",void 0);Ue([(0,we.state)()],ie.prototype,"forceMenuOpen",void 0);Ue([(0,we.query)(".ft-floating-menu")],ie.prototype,"container",void 0);Ue([(0,we.query)(".ft-floating-menu--wrapper")],ie.prototype,"menuWrapper",void 0);Ue([(0,we.query)("#actions-button")],ie.prototype,"actionButton",void 0);Ue([(0,we.queryAssignedElements)({slot:"toggle"})],ie.prototype,"customToggle",void 0);var Jf=c(S()),Ks=c(h()),og={color:Ks.FtCssVariableFactory.extend("--ft-floating-menu-label-color","",Ks.designSystemVariables.colorOnSurfaceMedium)},Qf=Jf.css`
|
|
2127
2127
|
.ft-floating-menu-label {
|
|
2128
2128
|
padding: 4px 8px;
|
|
2129
2129
|
}
|
|
@@ -2134,15 +2134,15 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
2134
2134
|
width: max-content;
|
|
2135
2135
|
text-overflow: ellipsis;
|
|
2136
2136
|
overflow: hidden;
|
|
2137
|
-
color: ${
|
|
2137
|
+
color: ${og.color}
|
|
2138
2138
|
}
|
|
2139
|
-
`;var
|
|
2139
|
+
`;var eh=c(S()),th=c(h());var Ci=class extends th.FtLitElement{render(){return eh.html`
|
|
2140
2140
|
<div class="ft-floating-menu-label">
|
|
2141
2141
|
<ft-typography variant="${V.caption}">
|
|
2142
2142
|
<slot></slot>
|
|
2143
2143
|
</ft-typography>
|
|
2144
2144
|
</div>
|
|
2145
|
-
`}};Ci.elementDefinitions={"ft-typography":F};Ci.styles=
|
|
2145
|
+
`}};Ci.elementDefinitions={"ft-typography":F};Ci.styles=Qf;var rh=c(h());var ih={"ft-floating-menu":ie,"ft-floating-menu-item":Fe,"ft-floating-menu-label":Ci};(0,rh.customElements)(ih);var rt=c(S()),oh=c(br());var Ln=c(h());function sg(t){var e;return((e=(0,Ln.accessResult)(t))===null||e===void 0?void 0:e.openMode)===ho.EXTERNAL}function nh(t,e){return sg(t)?(0,Ln.accessResult)(t).originUrl:(0,Ln.accessResultUrl)(t,e)}var Ke=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},fe=class extends xc(Xe(Us)){get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}get metadataLabel(){var e,i,r,n,o,s;return this.metadata?this.metadata.label:(s=(o=(r=(i=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||i===void 0?void 0:i.getMetadataDescriptor(this.key))===null||r===void 0?void 0:r.label)!==null&&o!==void 0?o:(n=this.relatives.find(a=>a.metadata.value))===null||n===void 0?void 0:n.metadata.label)!==null&&s!==void 0?s:this.key}setUdvStateManager(e){super.setUdvStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.translateValues=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(Pr)}willUpdate(e){var i,r,n,o,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((i=this.viewerStateManager)===null||i===void 0||i.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((r=this.viewerStateManager)===null||r===void 0||r.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(n=this.viewerStateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key):(o=this.viewerStateManager)===null||o===void 0||o.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?We.ClusteringHelper.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new We.MetadataValueLocalizer((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,i,r,n;this.useForSwitchingToRelatives&&this.key?this.relatives=(n=(i=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||i===void 0?void 0:i.computeClustersItemsForMetadata(this.key,((r=this.document)===null||r===void 0?void 0:r.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return rt.html`
|
|
2146
2146
|
${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
|
|
2147
2147
|
${this.hideIfEmpty()}
|
|
2148
2148
|
`}hideIfEmpty(){let e=this.flatMetadata==null&&(this.useForSwitchingToRelatives?this.relatives.length===0:!0);return!this.editorMode&&e?rt.html`
|
|
@@ -2156,10 +2156,10 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
2156
2156
|
<ft-floating-menu part="floating-menu" text="Toggle collapsible" trailingIcon>
|
|
2157
2157
|
${this.renderChip(!0)}
|
|
2158
2158
|
<ft-floating-menu-label>${this.metadataLabel}</ft-floating-menu-label>
|
|
2159
|
-
${(0,
|
|
2159
|
+
${(0,oh.repeat)(this.relatives,e=>e.metadata.value,e=>this.renderRelativeItem(e.result,e.metadata))}
|
|
2160
2160
|
</ft-floating-menu>
|
|
2161
2161
|
</div>
|
|
2162
|
-
`}renderRelativeItem(e,i){var r,n;let o=this.translateValues&&(n=new We.MetadataValueLocalizer((r=this.availableContentLocales)!==null&&r!==void 0?r:[]).localize(i))!==null&&n!==void 0?n:i,s=
|
|
2162
|
+
`}renderRelativeItem(e,i){var r,n;let o=this.translateValues&&(n=new We.MetadataValueLocalizer((r=this.availableContentLocales)!==null&&r!==void 0?r:[]).localize(i))!==null&&n!==void 0?n:i,s=nh(e);return rt.html`
|
|
2163
2163
|
<a part="relative-item-link"
|
|
2164
2164
|
href="${s}" >
|
|
2165
2165
|
<ft-ripple part="relative-item-ripple"></ft-ripple>
|
|
@@ -2192,7 +2192,7 @@ ${$s.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
|
|
|
2192
2192
|
text="${d}">
|
|
2193
2193
|
${u}
|
|
2194
2194
|
</ft-tooltip>
|
|
2195
|
-
`}};fe.elementDefinitions={"ft-chip":te,"ft-floating-menu":ie,"ft-floating-menu-item":Fe,"ft-floating-menu-label":Ci,"ft-ripple":M,"ft-tooltip":ne};fe.styles
|
|
2195
|
+
`}};fe.elementDefinitions={"ft-chip":te,"ft-floating-menu":ie,"ft-floating-menu-item":Fe,"ft-floating-menu-label":Ci,"ft-ripple":M,"ft-tooltip":ne};fe.styles=$f;Ke([(0,$t.property)(),(0,We.reduxReactive)()],fe.prototype,"key",void 0);Ke([(0,$t.property)({type:Boolean})],fe.prototype,"multiLine",void 0);Ke([(0,$t.property)({type:Boolean})],fe.prototype,"useForSwitchingToRelatives",void 0);Ke([(0,$t.property)({type:Boolean})],fe.prototype,"displayLabel",void 0);Ke([(0,We.numberProperty)()],fe.prototype,"hierarchicalValueTruncatingLevel",void 0);Ke([(0,$t.property)({type:Boolean})],fe.prototype,"forceTooltip",void 0);Ke([(0,$t.property)({attribute:!1})],fe.prototype,"editorMode",void 0);Ke([(0,$t.property)({type:Boolean})],fe.prototype,"translateValues",void 0);Ke([(0,We.redux)({store:"viewer",selector:(t,e)=>{var i,r;return(r=(i=t.document)===null||i===void 0?void 0:i.metadata)===null||r===void 0?void 0:r.find(n=>n.key===e.key)}})],fe.prototype,"metadata",void 0);Ke([(0,$t.state)()],fe.prototype,"flatMetadata",void 0);Ke([(0,We.redux)({store:"viewer"})],fe.prototype,"document",void 0);Ke([(0,$t.state)()],fe.prototype,"relatives",void 0);Ke([(0,We.redux)({store:v.name})],fe.prototype,"availableContentLocales",void 0);Ke([rs(Pr.properties.itemWithNoValueForSwitchToRelatives())],fe.prototype,"noValueMessage",void 0);Ke([(0,We.reduxEventListener)({eventName:ai.clusteringHelperCreated})],fe.prototype,"updateRelatives",null);var sh={"ft-asset-viewer-content":Uo,"ft-asset-viewer-context":ei,"ft-asset-viewer-document-title":Wo,"ft-asset-viewer-filename":Vo,"ft-asset-viewer-mime-type-icon":jo,"ft-asset-viewer-title":Bo,"ft-ud-viewer-attachments":Yi,"ft-ud-viewer-content":Zo,"ft-ud-viewer-context":xi,"ft-ud-viewer-filename":Xo,"ft-ud-viewer-metadata":fe,"ft-ud-viewer-mime-type-icon":Qo,"ft-ud-viewer-title":Jo,"ft-ud-viewer-feedback":ee};(0,ah.customElements)(sh);})();
|
|
2196
2196
|
/*! Bundled license information:
|
|
2197
2197
|
|
|
2198
2198
|
.store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js:
|