@fluid-topics/ft-reader-toc 2.2.6 → 2.2.7
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.
|
@@ -81,7 +81,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
81
81
|
<li>${this.helperText}</li>
|
|
82
82
|
`)}
|
|
83
83
|
</ul>
|
|
84
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Ft.error:this.warningMessages.length?Ft.warning:Ft.default}}return ce([g()],e.prototype,"warningRules",void 0),ce([g()],e.prototype,"errorRules",void 0),ce([g()],e.prototype,"validateOn",void 0),ce([g({type:Boolean})],e.prototype,"validateAtRender",void 0),ce([g()],e.prototype,"label",void 0),ce([g({type:Boolean})],e.prototype,"hideLabel",void 0),ce([g()],e.prototype,"name",void 0),ce([g({type:Boolean})],e.prototype,"disabled",void 0),ce([g()],e.prototype,"helperText",void 0),ce([g()],e.prototype,"forceStatus",void 0),ce([g({reflect:!0})],e.prototype,"value",void 0),ce([H()],e.prototype,"errorMessages",void 0),ce([H()],e.prototype,"warningMessages",void 0),ce([H()],e.prototype,"status",void 0),ce([H()],e.prototype,"focused",void 0),ce([H()],e.prototype,"additionalWarningRules",void 0),ce([H()],e.prototype,"additionalErrorRules",void 0),e});var so=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),so(n,e);return!0},dn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},ld=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),Lh(e)}};function Rh(t){this._$AN!==void 0?(dn(this),this._$AM=t,ld(this)):this._$AM=t}function Th(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)so(n[a],!1),dn(n[a]);else n!=null&&(so(n,!1),dn(n));else so(this,t)}var Lh=t=>{t.type==qe.CHILD&&(t._$AP??=Th,t._$AQ??=Rh)},Sr=class extends Ne{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),ld(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(so(this,e),dn(this))}setValue(e){if(vs(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Ta=class extends Sr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return re}update(e){return this.part=e,this.ensureFocusTrap(e.element),re}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,n;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((n=this.lastTrap)===null||n===void 0?void 0:n.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,n,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(i=this.lastTrap)===null||i===void 0||i.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=0;n<r.length;n++){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=r.length-1;n>=0;n--){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ke&&await e.updateComplete}isInsideElement(e,r){for(let n=e;n;n=n.parentNode){if(n===r)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},ES=Oe(Ta);var dd;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(dd||(dd={}));var Ih={sm:640,md:768,lg:1024,xl:1280},La=class extends Sr{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>D);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:Ih[e]}},wS=Oe(La);var Ia,ka,Na,Pa,co=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Na=(ka=(Ia=window.safari)===null||Ia===void 0?void 0:Ia.pushNotification)===null||ka===void 0?void 0:ka.toString())!==null&&Na!==void 0?Na:"")==="[object SafariRemoteNotification]",kh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Pa=window.ftGlobals)!==null&&Pa!==void 0?Pa:{lit:zn,litDecorators:Vn,litRepeat:Wn,litClassMap:Gn,litStyleMap:jn,litUnsafeHTML:Zn,wcUtils:{...qn,...ii,...Xn,...di,...ba,...pi,...Jn,...mi,...ni,...Ti,...Ea,...id,...ua,...Li,...hi,...Mi,...ya,...Pi,...Ca,...Oa,...Rc,...ti,...Fi,...gi,...zi,...ad,...Lc,...Hi,...ca,...va,...Ii,...Ni,...ha,...si,...wa,isSafari:co,isTouchScreen:kh,setVariable:B}};function*Er(t,e){if(t!==void 0){let r=0;for(let n of t)yield e(n,r++)}}var He=t=>t??D;var ud=Symbol.for(""),Nh=t=>{if(t?.r===ud)return t?._$litStatic$},Da=t=>({_$litStatic$:t,r:ud});var pd=new Map,Ma=t=>(e,...r)=>{let n=r.length,i,a,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=r[u],(i=Nh(a))!==void 0);)d+=i+e[++u],h=!0;u!==n&&l.push(a),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=pd.get(f))===void 0&&(s.raw=s,pd.set(f,e=s)),r=l}return t(e,...r)},Ua=Ma(L),LE=Ma(Mn),IE=Ma(Un);var tt;(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"})(tt||(tt={}));var fd=o.extend("--ft-typography-font-family","",N.titleFont),pt=o.extend("--ft-typography-font-family","",N.contentFont),A={fontFamily:pt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:o.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Bt={fontFamily:o.extend("--ft-typography-title-font-family","",fd),fontSize:o.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-text-decoration","",A.textDecoration,"inherit")},zt={fontFamily:o.extend("--ft-typography-title-dense-font-family","",fd),fontSize:o.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-dense-text-decoration","",A.textDecoration,"inherit")},Ht={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",pt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle1-text-decoration","",A.textDecoration,"inherit")},Vt={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",pt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle2-text-decoration","",A.textDecoration,"inherit")},Wt={fontFamily:o.extend("--ft-typography-body1-font-family","",pt),fontSize:o.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body1-text-decoration","",A.textDecoration,"inherit")},Te={fontFamily:o.extend("--ft-typography-body2-font-family","",pt),fontSize:o.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body2-text-decoration","",A.textDecoration,"inherit")},Gt={fontFamily:o.extend("--ft-typography-caption-font-family","",pt),fontSize:o.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-caption-text-decoration","",A.textDecoration,"inherit")},jt={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",pt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-breadcrumb-text-decoration","",A.textDecoration,"inherit")},Kt={fontFamily:o.extend("--ft-typography-overline-font-family","",pt),fontSize:o.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-overline-text-decoration","",A.textDecoration,"inherit")},Ve={fontFamily:o.extend("--ft-typography-button-font-family","",pt),fontSize:o.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-button-text-decoration","",A.textDecoration,"inherit")},hd=T`
|
|
84
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Ft.error:this.warningMessages.length?Ft.warning:Ft.default}}return ce([g()],e.prototype,"warningRules",void 0),ce([g()],e.prototype,"errorRules",void 0),ce([g()],e.prototype,"validateOn",void 0),ce([g({type:Boolean})],e.prototype,"validateAtRender",void 0),ce([g()],e.prototype,"label",void 0),ce([g({type:Boolean})],e.prototype,"hideLabel",void 0),ce([g()],e.prototype,"name",void 0),ce([g({type:Boolean})],e.prototype,"disabled",void 0),ce([g()],e.prototype,"helperText",void 0),ce([g()],e.prototype,"forceStatus",void 0),ce([g({reflect:!0})],e.prototype,"value",void 0),ce([H()],e.prototype,"errorMessages",void 0),ce([H()],e.prototype,"warningMessages",void 0),ce([H()],e.prototype,"status",void 0),ce([H()],e.prototype,"focused",void 0),ce([H()],e.prototype,"additionalWarningRules",void 0),ce([H()],e.prototype,"additionalErrorRules",void 0),e});var so=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),so(n,e);return!0},dn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},ld=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),Lh(e)}};function Rh(t){this._$AN!==void 0?(dn(this),this._$AM=t,ld(this)):this._$AM=t}function Th(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)so(n[a],!1),dn(n[a]);else n!=null&&(so(n,!1),dn(n));else so(this,t)}var Lh=t=>{t.type==qe.CHILD&&(t._$AP??=Th,t._$AQ??=Rh)},Sr=class extends Ne{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),ld(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(so(this,e),dn(this))}setValue(e){if(vs(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Ta=class extends Sr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return re}update(e){return this.part=e,this.ensureFocusTrap(e.element),re}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,n;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((n=this.lastTrap)===null||n===void 0?void 0:n.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,n,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(i=this.lastTrap)===null||i===void 0||i.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=0;n<r.length;n++){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=r.length-1;n>=0;n--){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof ke&&await e.updateComplete}isInsideElement(e,r){for(let n=e;n;n=n.parentNode){if(n===r)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},ES=Oe(Ta);var dd;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(dd||(dd={}));var Ih={sm:640,md:768,lg:1024,xl:1280},La=class extends Sr{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[r,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>D);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:Ih[e]}},wS=Oe(La);var Ia,ka,Na,Pa,co=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Na=(ka=(Ia=window.safari)===null||Ia===void 0?void 0:Ia.pushNotification)===null||ka===void 0?void 0:ka.toString())!==null&&Na!==void 0?Na:"")==="[object SafariRemoteNotification]",kh="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Pa=window.ftGlobals)!==null&&Pa!==void 0?Pa:{lit:zn,litDecorators:Vn,litRepeat:Wn,litClassMap:Gn,litStyleMap:jn,litUnsafeHTML:Zn,wcUtils:{...qn,...ii,...Xn,...di,...ba,...pi,...Jn,...mi,...ni,...Ti,...Ea,...id,...ua,...Li,...hi,...Mi,...ya,...Pi,...Ca,...Oa,...Rc,...ti,...Fi,...gi,...zi,...ad,...Lc,...Hi,...ca,...va,...Ii,...Ni,...ha,...si,...wa,isSafari:co,isTouchScreen:kh,setVariable:B}};function*Er(t,e){if(t!==void 0){let r=0;for(let n of t)yield e(n,r++)}}var He=t=>t??D;var ud=Symbol.for(""),Nh=t=>{if(t?.r===ud)return t?._$litStatic$},Da=t=>({_$litStatic$:t,r:ud});var pd=new Map,Ma=t=>(e,...r)=>{let n=r.length,i,a,s=[],l=[],d,u=0,h=!1;for(;u<n;){for(d=e[u];u<n&&(a=r[u],(i=Nh(a))!==void 0);)d+=i+e[++u],h=!0;u!==n&&l.push(a),s.push(d),u++}if(u===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=pd.get(f))===void 0&&(s.raw=s,pd.set(f,e=s)),r=l}return t(e,...r)},Ua=Ma(L),kE=Ma(Mn),NE=Ma(Un);var tt;(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"})(tt||(tt={}));var fd=o.extend("--ft-typography-font-family","",N.titleFont),pt=o.extend("--ft-typography-font-family","",N.contentFont),A={fontFamily:pt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:o.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Bt={fontFamily:o.extend("--ft-typography-title-font-family","",fd),fontSize:o.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-text-decoration","",A.textDecoration,"inherit")},zt={fontFamily:o.extend("--ft-typography-title-dense-font-family","",fd),fontSize:o.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-title-dense-text-decoration","",A.textDecoration,"inherit")},Ht={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",pt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle1-text-decoration","",A.textDecoration,"inherit")},Vt={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",pt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-subtitle2-text-decoration","",A.textDecoration,"inherit")},Wt={fontFamily:o.extend("--ft-typography-body1-font-family","",pt),fontSize:o.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body1-text-decoration","",A.textDecoration,"inherit")},Te={fontFamily:o.extend("--ft-typography-body2-font-family","",pt),fontSize:o.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-body2-text-decoration","",A.textDecoration,"inherit")},Gt={fontFamily:o.extend("--ft-typography-caption-font-family","",pt),fontSize:o.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-caption-text-decoration","",A.textDecoration,"inherit")},jt={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",pt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit"),textDecoration:o.extend("--ft-typography-breadcrumb-text-decoration","",A.textDecoration,"inherit")},Kt={fontFamily:o.extend("--ft-typography-overline-font-family","",pt),fontSize:o.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-overline-text-decoration","",A.textDecoration,"inherit")},Ve={fontFamily:o.extend("--ft-typography-button-font-family","",pt),fontSize:o.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase"),textDecoration:o.extend("--ft-typography-button-text-decoration","",A.textDecoration,"inherit")},hd=T`
|
|
85
85
|
.ft-typography--title {
|
|
86
86
|
font-family: ${Bt.fontFamily};
|
|
87
87
|
font-size: ${Bt.fontSize};
|
|
@@ -367,7 +367,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
367
367
|
position: relative;
|
|
368
368
|
word-break: break-word;
|
|
369
369
|
}
|
|
370
|
-
`;var Mh="ft-app-info",Zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zt.eventName="authentication-change";var po=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};po.eventName="ui-locale-changed";var Uh={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>U.dispatchEvent(new Zt(e.payload)),0))}},U=Mt.get({name:Mh,reducers:Uh,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 un=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},XC=ne(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(U)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>Ut.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return un([g({type:Boolean})],e.prototype,"useLongDateFormat",void 0),un([g({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),un([Be({store:U.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),un([Be({store:U.name})],e.prototype,"uiLocale",void 0),e});var qt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=U.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=U.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var Or=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:qt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):qt.await()}};var Le=class extends Or{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Ye,this.cache=e?i.commonCache:new Ye}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var fn=class extends Le{async listMySearches(){let{session:e}=U.getState();return rd(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var hn=class extends Le{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var mn=class extends Le{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=U.getState().session;return!!e?.sessionAuthenticated}};var gn=class extends Le{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=U.getState().session;return!!e?.sessionAuthenticated}};var $h="ft-user-assets",Fh={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(Pe).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:i}=e.payload;Ha(t,r,[...za(t,r),i]),Fd(t,r,1,n),Bd(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Ha(t,r,za(t,r).map(i=>i.id===n.id?n:i)),Bd(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Ha(t,r,za(t,r).filter(a=>a.id!==i)),Fd(t,r,-1,n)}},zd={[Pe.SEARCHES]:"savedSearches",[Pe.BOOKMARKS]:"bookmarks",[Pe.BOOKS]:void 0,[Pe.COLLECTIONS]:void 0},za=(t,e)=>{var r;let n=zd[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Ha=(t,e,r)=>{let n=zd[e];n&&(t[n]=r)},Fd=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Pe.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},Bd=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ge=Mt.get({name:$h,reducers:Fh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Pe).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Va=class{constructor(e=new mn,r=new gn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new hn,this.savedSearchesService=new fn,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=U.getState();he((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ge.actions.clearAssetCount(),ge.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ge.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ge.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ge.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ge.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ge.getState().assetCounts.allAsset[e]!==r.count&&ge.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ge.getState().assetCounts.bookmarkByMap[e]!==r.count&&ge.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ge.getState().assetCounts.bookmarkByMap).length!==0;e===Pe.BOOKMARKS&&r&&ge.actions.clearBookmarkCountByMap(),ge.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ge.actions.bookmarks(r)}}},Bh=new Va;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Bh);var Wa=class{addCommand(e,r=!1){U.commands.add(e,r)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wa;var Hd,Ar=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},zh=Symbol("clearAfterUnitTest"),yn=class extends No(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Hd]=()=>{this.defaultMessages={},this.cache=new Ye,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=U.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};he(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Xr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof Ot)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ar({loadedContexts:e})),this.dispatchEvent(new Ar({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Ar({loadedContexts:[e]})),this.dispatchEvent(new Ar({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Io(0).then(()=>n()).catch(()=>null)))}};Hd=zh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var wr=window.FluidTopicsI18nService,bn=window.FluidTopicsCustomI18nService;var Ga=class{highlightHtml(e,r,n){$i(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Ga;var ja=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=U.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a,s;if(e==null)return"";try{return Ut.format(e,(n=r?.locale)!==null&&n!==void 0?n:U.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new ja;var uo=class{static get(e,r){var n,i,a,s;let l=U.getState(),{lang:d,region:u}=(a=(i=(n=l.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new xr(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${u}`)}};var Ka=class{urlToSearchRequest(e){return uo.get().parse(e)}searchRequestToUrl(e){return uo.get().serialize(e)}};window.FluidTopicsUrlService=new Ka;var Yt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Yt.eventName="before-location-change";var Xt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Xt.eventName="change";var Za=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Vd=new Za;var xn=class t extends it{static build(){return new t(window.history,Vd,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Xt(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[a,s,l])=>{let d=new Yt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let u=r(),h={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:d.detail.nextLocation.href};n.apply(i,[h,s,h.href]),this.setCurrentState(h,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(e){this.addEventListener(Yt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Yt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Xt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Xt.eventName,e)}currentItem(){return Ue(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 Ue(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return Ue(r.find(n=>e(n)))}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 Ue(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=xn.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 Wd=T`
|
|
370
|
+
`;var Mh="ft-app-info",Zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Zt.eventName="authentication-change";var po=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};po.eventName="ui-locale-changed";var Uh={session:(t,e)=>{he(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>U.dispatchEvent(new Zt(e.payload)),0))}},U=Mt.get({name:Mh,reducers:Uh,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 un=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},QC=ne(Symbol("withDateFormat"),function(t){class e extends t{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(U)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var i,a;return((a=(i=this.metadataDescriptors.find(l=>l.key===n))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1)?l=>Ut.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return un([g({type:Boolean})],e.prototype,"useLongDateFormat",void 0),un([g({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),un([Be({store:U.name,selector:r=>{var n,i;return(i=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&i!==void 0?i:[]}})],e.prototype,"metadataDescriptors",void 0),un([Be({store:U.name})],e.prototype,"uiLocale",void 0),e});var qt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=U.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=U.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var Or=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:qt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):qt.await()}};var Le=class extends Or{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Ye,this.cache=e?i.commonCache:new Ye}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var fn=class extends Le{async listMySearches(){let{session:e}=U.getState();return rd(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var hn=class extends Le{async listMyBookmarks(){let e=U.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var mn=class extends Le{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=U.getState().session;return!!e?.sessionAuthenticated}};var gn=class extends Le{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=U.getState().session;return!!e?.sessionAuthenticated}};var $h="ft-user-assets",Fh={setAssetCount:(t,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;t.assetCounts.allAsset[r]=n},clearAssetCount:t=>{Object.values(Pe).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:n,asset:i}=e.payload;Ha(t,r,[...za(t,r),i]),Fd(t,r,1,n),Bd(t,i)},editAsset:(t,e)=>{let{assetType:r,asset:n}=e.payload;Ha(t,r,za(t,r).map(i=>i.id===n.id?n:i)),Bd(t,n)},removeAsset:(t,e)=>{let{assetType:r,mapId:n,assetId:i}=e.payload;Ha(t,r,za(t,r).filter(a=>a.id!==i)),Fd(t,r,-1,n)}},zd={[Pe.SEARCHES]:"savedSearches",[Pe.BOOKMARKS]:"bookmarks",[Pe.BOOKS]:void 0,[Pe.COLLECTIONS]:void 0},za=(t,e)=>{var r;let n=zd[e];return n?(r=t[n])!==null&&r!==void 0?r:[]:[]},Ha=(t,e,r)=>{let n=zd[e];n&&(t[n]=r)},Fd=(t,e,r,n)=>{let i=t.assetCounts.allAsset[e];if(i!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,i+r),e===Pe.BOOKMARKS&&n)){let a=t.assetCounts.bookmarkByMap[n];t.assetCounts.bookmarkByMap[n]=Math.max(0,a+r)}},Bd=(t,e)=>{let r=t.assetLabels.map(i=>i.title),n=e.labels.filter(i=>!r.includes(i)).map(i=>({title:i}));t.assetLabels.push(...n)},ge=Mt.get({name:$h,reducers:Fh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Pe).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Va=class{constructor(e=new mn,r=new gn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new hn,this.savedSearchesService=new fn,U.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=U.getState();he((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ge.actions.clearAssetCount(),ge.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ge.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ge.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ge.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ge.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ge.getState().assetCounts.allAsset[e]!==r.count&&ge.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ge.getState().assetCounts.bookmarkByMap[e]!==r.count&&ge.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ge.getState().assetCounts.bookmarkByMap).length!==0;e===Pe.BOOKMARKS&&r&&ge.actions.clearBookmarkCountByMap(),ge.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;ge.actions.bookmarks(r)}}},Bh=new Va;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Bh);var Wa=class{addCommand(e,r=!1){U.commands.add(e,r)}consumeCommand(e){return U.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Wa;var Hd,Ar=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},zh=Symbol("clearAfterUnitTest"),yn=class extends No(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Hd]=()=>{this.defaultMessages={},this.cache=new Ye,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=U.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};he(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Xr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(i){!(i instanceof Ot)&&r&&console.error(i)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Ar({loadedContexts:e})),this.dispatchEvent(new Ar({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Ar({loadedContexts:[e]})),this.dispatchEvent(new Ar({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>Io(0).then(()=>n()).catch(()=>null)))}};Hd=zh;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends yn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends yn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var wr=window.FluidTopicsI18nService,bn=window.FluidTopicsCustomI18nService;var Ga=class{highlightHtml(e,r,n){$i(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Ga;var ja=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=U.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a,s;if(e==null)return"";try{return Ut.format(e,(n=r?.locale)!==null&&n!==void 0?n:U.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new ja;var uo=class{static get(e,r){var n,i,a,s;let l=U.getState(),{lang:d,region:u}=(a=(i=(n=l.localesConfiguration)===null||n===void 0?void 0:n.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new xr(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${d}-${u}`)}};var Ka=class{urlToSearchRequest(e){return uo.get().parse(e)}searchRequestToUrl(e){return uo.get().serialize(e)}};window.FluidTopicsUrlService=new Ka;var Yt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Yt.eventName="before-location-change";var Xt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Xt.eventName="change";var Za=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Vd=new Za;var xn=class t extends it{static build(){return new t(window.history,Vd,()=>window.location,!1)}constructor(e,r,n,i){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(i)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),he(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Xt(this.currentItem())),0)}installProxies(){let e=r=>(n,i,[a,s,l])=>{let d=new Yt(new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin));this.dispatchEvent(d);let u=r(),h={...u===this.currentIndex?this.currentState:void 0,...a,index:u,href:d.detail.nextLocation.href};n.apply(i,[h,s,h.href]),this.setCurrentState(h,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addBeforeLocationChangeListener(e){this.addEventListener(Yt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Yt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Xt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Xt.eventName,e)}currentItem(){return Ue(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 Ue(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return Ue(r.find(n=>e(n)))}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 Ue(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let i=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,n);)this.hasState(a)&&(i=a),a++;return i}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let i=r??this.currentState.majorStateId,a=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return a==null||a!=i}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=xn.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 Wd=T`
|
|
371
371
|
`;function Gd(t,e){let{authenticationRequired:r,session:n}=U.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):t()}var vn=class extends Or{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var qa=class t extends ao{static build(e){return new t(U,e)}constructor(e,r){super(),this.store=e,this.cache=new Ye,this.withManualResources=!0,this.userLocaleService=new vn,this.cleanSessionDebouncer=new pe,this.reloadConfiguration=()=>{var n;(n=this.cache)===null||n===void 0||n.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new pe(500),this.apiProvider=r??(()=>qt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Zt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Zt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>Gd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(n=>{n.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new po(n)))}).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)}},jd=qa.build();var Jt=class extends Event{constructor(e,r,n,i){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=i??!1}};var fo=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:i,callbackRef:a}of n){let s=i.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Jt(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,i=this.pendingContextRequests.get(e.context);i===void 0&&this.pendingContextRequests.set(e.context,i={callbacks:new WeakMap,requests:[]});let a=i.callbacks.get(r);a===void 0&&i.callbacks.set(r,a=new WeakSet),a.has(n)||(a.add(n),i.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ae=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},J=class extends ct{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=jd,this.contextRoot=new fo}render(){return L`
|
|
372
372
|
<slot></slot>
|
|
373
373
|
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>wr.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};J.elementDefinitions={};J.styles=Wd;ae([g()],J.prototype,"baseUrl",void 0);ae([g()],J.prototype,"tenantId",void 0);ae([g()],J.prototype,"apiIntegrationIdentifier",void 0);ae([g()],J.prototype,"apiIntegrationAppVersion",void 0);ae([g()],J.prototype,"uiLocale",void 0);ae([Ae(null)],J.prototype,"availableUiLocales",void 0);ae([Ae(null)],J.prototype,"metadataConfiguration",void 0);ae([g({type:Boolean})],J.prototype,"editorMode",void 0);ae([g({type:Boolean})],J.prototype,"noCustom",void 0);ae([g({type:Boolean})],J.prototype,"openExternalDocumentInNewTab",void 0);ae([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomComponent",void 0);ae([g({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],J.prototype,"noCustomCode",void 0);ae([g({type:Boolean})],J.prototype,"withManualResources",void 0);ae([g({type:Boolean})],J.prototype,"navigatorOnline",void 0);ae([g({type:Boolean})],J.prototype,"forcedOffline",void 0);ae([g({type:Boolean})],J.prototype,"authenticationRequired",void 0);ae([Ae([])],J.prototype,"messageContexts",void 0);ae([Ae(void 0)],J.prototype,"session",void 0);var Kd={"ft-app-context":J};Z(Kd);var Ya=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,n]=e.split(".");return{context:r,key:n,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},_r=new Ya;var Wh=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},mo=Symbol("i18nAttributes"),Zd=Symbol("i18nListAttributes"),qd=Symbol("i18nProperties"),Sn=Symbol("i18nContexts"),ho=Symbol("i18nUnsubs"),On=ne(Symbol("withI18n"),function(t){var e,r;class n extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?bn:wr}i18n(a){let{context:s,key:l,message:d}=a,{custom:u,args:h,argsProvider:f}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let m=h??(f?f(this):[]);return this.getI18nService(u).resolveMessage(s,l,...m)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(_r.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var u;return((u=d?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,u=(h,f,m)=>m?.context&&m.key&&a(h,f,m)?{...m,message:this.i18n({context:m.context,key:m.key,custom:m.custom,...h})}:m;(s=this[mo])===null||s===void 0||s.forEach((h,f)=>d[f]=u(h,f,d[f])),(l=this[Zd])===null||l===void 0||l.forEach((h,f)=>{var m;return d[f]=(m=d[f])===null||m===void 0?void 0:m.map(x=>u(h,f,x))})}updateI18nProperties(a){var s;(s=this[qd])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[Sn].set(d,{isCustomContext:l}),this[ho].has(d)||this[ho].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[Sn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Sn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ho].forEach(a=>a()),this[ho].clear()}}return e=Sn,r=ho,Wh([g({type:Boolean})],n.prototype,"useCustomMessageContexts",void 0),n}),En=class extends On(K){},Cn=class extends On(ct){};var Xa=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(n=>typeof n=="string"?_r.fromAttribute(n):n):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Gh=new Xa;var Yd=(t,e)=>(r,n)=>{var i;r.constructor.createProperty(n,{type:Object,hasChanged:we,converter:_r,...e}),r[mo]=(i=r[mo])!==null&&i!==void 0?i:new Map,r[mo].set(n,t??{})};var An=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?bn:wr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(n,i)=>{let a=i;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(n,i)=>(...a)=>this.service.resolveMessage(this.name,i,...a)}),this.rawMessages=new Proxy({},{get:(n,i)=>this.service.resolveRawMessage(this.name,i)}),this.keys=new Proxy({},{get:(n,i)=>()=>i}),this.attributes=new Proxy({},{get:(n,i)=>()=>({context:this.name,key:i,message:this.service.resolveRawMessage(this.name,i)})})}};var Xd=T`
|
|
@@ -438,7 +438,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
438
438
|
.ft-icon--material {
|
|
439
439
|
font-family: ${ye.materialFontFamily}, "Material Icons", sans-serif;
|
|
440
440
|
}
|
|
441
|
-
`,Nt];var je;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(je||(je={}));var wn;(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="󨃱"})(wn||(wn={}));var C;(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=""})(C||(C={}));var
|
|
441
|
+
`,Nt];var je;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(je||(je={}));var wn;(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="󨃱"})(wn||(wn={}));var C;(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=""})(C||(C={}));var P_=new Map([...["abw"].map(t=>[t,C.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,C.AUDIO]),...["avi"].map(t=>[t,C.AVI]),...["chm","xhs"].map(t=>[t,C.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,C.CODE]),...["csv"].map(t=>[t,C.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,C.DITA]),...["epub"].map(t=>[t,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,C.EXCEL]),...["flac"].map(t=>[t,C.FLAC]),...["gif"].map(t=>[t,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,C.GZIP]),...["html","htm","xhtml"].map(t=>[t,C.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,C.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,C.JPEG]),...["json"].map(t=>[t,C.JSON]),...["m4a","m4p"].map(t=>[t,C.M4A]),...["mov","qt"].map(t=>[t,C.MOV]),...["mp3"].map(t=>[t,C.MP3]),...["mp4","m4v"].map(t=>[t,C.MP4]),...["ogg","oga"].map(t=>[t,C.OGG]),...["pdf","ps"].map(t=>[t,C.PDF]),...["png"].map(t=>[t,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,C.POWERPOINT]),...["rar"].map(t=>[t,C.RAR]),...["stp"].map(t=>[t,C.STP]),...["txt","rtf","md","mdown"].map(t=>[t,C.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,C.VIDEO]),...["wav"].map(t=>[t,C.WAV]),...["wma"].map(t=>[t,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,C.WORD]),...["xml","xsl","rdf"].map(t=>[t,C.XML]),...["yaml","yml","x-yaml"].map(t=>[t,C.YAML]),...["zip"].map(t=>[t,C.ZIP])]);var D_={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var go=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},de=class extends K{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=D}render(){let e=this.variant&&Object.values(je).includes(this.variant)?this.variant:je.fluid_topics,r=e!==je.material||!!this.value;return L`
|
|
442
442
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
443
443
|
${Kn(this.resolvedIcon)}
|
|
444
444
|
<slot ?hidden=${r}></slot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-toc",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.7",
|
|
4
4
|
"description": "Main table of content for integrated reader",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "2.2.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "2.2.
|
|
24
|
-
"@fluid-topics/ft-size-watcher": "2.2.
|
|
25
|
-
"@fluid-topics/ft-typography": "2.2.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
22
|
+
"@fluid-topics/ft-icon": "2.2.7",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "2.2.7",
|
|
24
|
+
"@fluid-topics/ft-size-watcher": "2.2.7",
|
|
25
|
+
"@fluid-topics/ft-typography": "2.2.7",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "2.2.7",
|
|
27
27
|
"lit": "3.3.3"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "dff67505fe1e41bc42e0bdfafc7060ca40f8dc9d"
|
|
30
30
|
}
|