@fluid-topics/ft-reader-search-in-document 2.2.49 → 2.2.50
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.
|
@@ -350,7 +350,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
|
|
|
350
350
|
position: relative;
|
|
351
351
|
word-break: break-word;
|
|
352
352
|
}
|
|
353
|
-
`});var jE,fr,Rn,KE,N,Qe=d(()=>{"use strict";C();jE="ft-app-info",fr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};fr.eventName="authentication-change";Rn=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Rn.eventName="ui-locale-changed";KE={session:(t,e)=>{_e(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new fr(e.payload)),0))}},N=Rr.get({name:jE,reducers:KE,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 ta,xN,Ky=d(()=>{"use strict";G();Gs();Ks();Qe();C();ta=function(t,e,r,o){var n=arguments.length,s=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xN=Oe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,s;return((s=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ta([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ta([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ta([ce({store:N.name,selector:r=>{var o,n;return(n=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),ta([ce({store:N.name})],e.prototype,"uiLocale",void 0),e})});var Do,Vd=d(()=>{"use strict";Qe();Do=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=N.getState(),n=e??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let n=N.subscribe(()=>{o=t.get(e),o&&(n(),r(o))})}})}}});var Oi,Hd=d(()=>{"use strict";Vd();Oi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Do.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Do.await()}}});var Ye,qr=d(()=>{"use strict";C();Hd();Ye=class extends Oi{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([l],[u])=>l.localeCompare(u)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new nr,this.cache=e?n.commonCache:new nr}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}}});var ra,Wd=d(()=>{"use strict";Qe();Ht();qr();ra=class extends Ye{async listMySearches(){let{session:e}=N.getState();return Ji(e,Ae.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var oa,Gd=d(()=>{"use strict";Qe();qr();oa=class extends Ye{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var ia,qy=d(()=>{"use strict";Qe();qr();ia=class extends Ye{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(`/api/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(`/api/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}}});var na,Zy=d(()=>{"use strict";qr();Qe();na=class extends Ye{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/api/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}}});var qE,ZE,Xy,jd,Kd,Qy,Yy,ot,qd,QE,Zd=d(()=>{"use strict";Ht();C();Wd();Gd();Qe();qy();Zy();qE="ft-user-assets",ZE={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(It).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:o,asset:n}=e.payload;Kd(t,r,[...jd(t,r),n]),Qy(t,r,1,o),Yy(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;Kd(t,r,jd(t,r).map(n=>n.id===o.id?o:n)),Yy(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:n}=e.payload;Kd(t,r,jd(t,r).filter(s=>s.id!==n)),Qy(t,r,-1,o)}},Xy={[It.SEARCHES]:"savedSearches",[It.BOOKMARKS]:"bookmarks",[It.BOOKS]:void 0,[It.COLLECTIONS]:void 0},jd=(t,e)=>{var r;let o=Xy[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},Kd=(t,e,r)=>{let o=Xy[e];o&&(t[o]=r)},Qy=(t,e,r,o)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===It.BOOKMARKS&&o)){let s=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,s+r)}},Yy=(t,e)=>{let r=t.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...o)},ot=Rr.get({name:qE,reducers:ZE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(It).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),qd=class{constructor(e=new ia,r=new na){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new oa,this.savedSearchesService=new ra,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();_e((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ot.actions.clearAssetCount(),ot.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ot.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ot.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ot.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ot.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ot.getState().assetCounts.allAsset[e]!==r.count&&ot.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ot.getState().assetCounts.bookmarkByMap[e]!==r.count&&ot.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ot.getState().assetCounts.bookmarkByMap).length!==0;e===It.BOOKMARKS&&r&&ot.actions.clearBookmarkCountByMap(),ot.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;ot.actions.bookmarks(r)}}},QE=new qd;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=QE)});var Jy=d(()=>{"use strict";Ht();Zd()});var Qd,eb=d(()=>{"use strict";Qe();Qd=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Qd});var tb,wi,YE,sa,Ai,aa,rb=d(()=>{"use strict";Qe();C();qr();wi=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},YE=Symbol("clearAfterUnitTest"),sa=class extends ss(Ye){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[tb]=()=>{this.defaultMessages={},this.cache=new nr,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.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 o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};_e(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var n;let s=e.toLowerCase(),a=this.resolveContext(s);return new Wr((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},a).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof ir)&&r&&console.error(n)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new wi({loadedContexts:e})),this.dispatchEvent(new wi({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new wi({loadedContexts:[e]})),this.dispatchEvent(new wi({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>is(0).then(()=>o()).catch(()=>null)))}};tb=YE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sa{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sa{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});Ai=window.FluidTopicsI18nService,aa=window.FluidTopicsCustomI18nService});var Yd,ob=d(()=>{"use strict";C();Yd=class{highlightHtml(e,r,o){xc(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Yd});var Xd,ib=d(()=>{"use strict";C();Qe();Xd=class{isDate(e){var r,o,n,s;return(s=(o=((n=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||o===void 0?void 0:o.date)!==null&&s!==void 0?s:!1}format(e,r){var o,n,s,a;if(e==null)return"";try{return wo.format(e,(o=r?.locale)!==null&&o!==void 0?o:N.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Xd});var Tr,Jd=d(()=>{"use strict";C();Qe();Tr=class{static get(e,r,{baseUrl:o,localesConfiguration:n,availableContentLocales:s}=N.getState()){var a;if(r==="all"&&n?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(l=>l.lang===r)){let l=n?.defaultLocales.defaultContentLocale;r=l?`${l.lang}-${l.region}`:(a=s[0])===null||a===void 0?void 0:a.lang}return new Wt(o,e??20,n?.allLanguagesAllowed,r,s)}}});var la,nb=d(()=>{"use strict";qr();la=class extends Ye{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([o,n])=>Array.isArray(n)?[o,n.map(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,a)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(a.key):typeof s=="string"&&typeof a=="string"?s.localeCompare(a):String(s).localeCompare(String(a)))]:typeof n=="object"&&n!==null?[o,this.sortEventArrays(n)]:[o,n]);return Object.fromEntries(r)}sendEvents(e,r){let o="anything not undefined";return document.dispatchEvent(new CustomEvent("ft:analytics:userevents",{detail:e})),this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(n=>(console.info(r),console.debug(n),o)),1e3)}}});var eu,sb=d(()=>{"use strict";Jd();eu=class{urlToSearchRequest(e){return Tr.get().parse(e)}searchRequestToUrl(e){return Tr.get().serialize(e)}};window.FluidTopicsUrlService=new eu});var $o,Bo,ab=d(()=>{"use strict";$o=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};$o.eventName="before-location-change";Bo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Bo.eventName="change"});var tu,lb,cb=d(()=>{"use strict";tu=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))}},lb=new tu});var ca,db=d(()=>{"use strict";C();ab();cb();ca=class t extends Cr{static build(){return new t(window.history,lb,()=>window.location,!1)}constructor(e,r,o,n){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),_e(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Bo(this.currentItem())),0)}installProxies(){let e=r=>(o,n,[s,a,l])=>{let u=new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),f=new $o(u);this.dispatchEvent(f);let g=r(),m={...g===this.currentIndex?this.currentState:void 0,...s,index:g,href:f.detail.nextLocation.href};o.apply(n,[m,a,m.href]),this.setCurrentState(m,!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 o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener($o.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener($o.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Bo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Bo.eventName,e)}currentItem(){return gt(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 gt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return gt(r.find(o=>e(o)))}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 gt(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 o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,o);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return s==null||s!=n}}});var ub=d(()=>{"use strict";db();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ca.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 pb=d(()=>{"use strict";Qe()});var da=d(()=>{"use strict";Gd();Vd();eb();rb();qr();ob();Wd();ib();Jd();nb();sb();ub();pb()});var fb,ru=d(()=>{"use strict";L();fb=E`
|
|
353
|
+
`});var jE,fr,Rn,KE,N,Qe=d(()=>{"use strict";C();jE="ft-app-info",fr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};fr.eventName="authentication-change";Rn=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Rn.eventName="ui-locale-changed";KE={session:(t,e)=>{_e(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>N.dispatchEvent(new fr(e.payload)),0))}},N=Rr.get({name:jE,reducers:KE,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 ta,xN,Ky=d(()=>{"use strict";G();Gs();Ks();Qe();C();ta=function(t,e,r,o){var n=arguments.length,s=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xN=Oe(Symbol("withDateFormat"),function(t){class e extends t{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(N)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,s;return((s=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ta([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ta([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ta([ce({store:N.name,selector:r=>{var o,n;return(n=(o=r.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),ta([ce({store:N.name})],e.prototype,"uiLocale",void 0),e})});var Do,Vd=d(()=>{"use strict";Qe();Do=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:o}=N.getState(),n=e??o;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let o=t.get(e);if(o)r(o);else{let n=N.subscribe(()=>{o=t.get(e),o&&(n(),r(o))})}})}}});var Oi,Hd=d(()=>{"use strict";Vd();Oi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Do.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Do.await()}}});var Ye,qr=d(()=>{"use strict";C();Hd();Ye=class extends Oi{constructor(e=!0,r){var o;super(r),this.sortObjectFields=(s,a)=>typeof a!="object"||a==null||Array.isArray(a)?a:Object.fromEntries(Object.entries(a).sort(([l],[u])=>l.localeCompare(u)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new nr,this.cache=e?n.commonCache:new nr}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,o)=>0|31*r+o.charCodeAt(0),0))}}});var ra,Wd=d(()=>{"use strict";Qe();Ht();qr();ra=class extends Ye{async listMySearches(){let{session:e}=N.getState();return Ji(e,Ae.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var oa,Gd=d(()=>{"use strict";Qe();qr();oa=class extends Ye{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var ia,qy=d(()=>{"use strict";Qe();qr();ia=class extends Ye{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(`/api/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(`/api/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}}});var na,Zy=d(()=>{"use strict";qr();Qe();na=class extends Ye{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await(await this.awaitApi).get("/api/user/assets/labels")).labels,this.CACHE_DURATION):[]}isAuthenticated(){let e=N.getState().session;return!!e?.sessionAuthenticated}}});var qE,ZE,Xy,jd,Kd,Qy,Yy,ot,qd,QE,Zd=d(()=>{"use strict";Ht();C();Wd();Gd();Qe();qy();Zy();qE="ft-user-assets",ZE={setAssetCount:(t,e)=>{let{userAssetType:r,count:o}=e.payload.assetCount;t.assetCounts.allAsset[r]=o},clearAssetCount:t=>{Object.values(It).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:o,asset:n}=e.payload;Kd(t,r,[...jd(t,r),n]),Qy(t,r,1,o),Yy(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:o}=e.payload;Kd(t,r,jd(t,r).map(n=>n.id===o.id?o:n)),Yy(t,o)},removeAsset:(t,e)=>{let{assetType:r,mapId:o,assetId:n}=e.payload;Kd(t,r,jd(t,r).filter(s=>s.id!==n)),Qy(t,r,-1,o)}},Xy={[It.SEARCHES]:"savedSearches",[It.BOOKMARKS]:"bookmarks",[It.BOOKS]:void 0,[It.COLLECTIONS]:void 0},jd=(t,e)=>{var r;let o=Xy[e];return o?(r=t[o])!==null&&r!==void 0?r:[]:[]},Kd=(t,e,r)=>{let o=Xy[e];o&&(t[o]=r)},Qy=(t,e,r,o)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===It.BOOKMARKS&&o)){let s=t.assetCounts.bookmarkByMap[o];t.assetCounts.bookmarkByMap[o]=Math.max(0,s+r)}},Yy=(t,e)=>{let r=t.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...o)},ot=Rr.get({name:qE,reducers:ZE,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(It).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),qd=class{constructor(e=new ia,r=new na){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new oa,this.savedSearchesService=new ra,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=N.getState();_e((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ot.actions.clearAssetCount(),ot.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ot.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ot.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ot.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ot.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ot.getState().assetCounts.allAsset[e]!==r.count&&ot.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ot.getState().assetCounts.bookmarkByMap[e]!==r.count&&ot.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ot.getState().assetCounts.bookmarkByMap).length!==0;e===It.BOOKMARKS&&r&&ot.actions.clearBookmarkCountByMap(),ot.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;ot.actions.bookmarks(r)}}},QE=new qd;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=QE)});var Jy=d(()=>{"use strict";Ht();Zd()});var Qd,eb=d(()=>{"use strict";Qe();Qd=class{addCommand(e,r=!1){N.commands.add(e,r)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Qd});var tb,wi,YE,sa,Ai,aa,rb=d(()=>{"use strict";Qe();C();qr();wi=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},YE=Symbol("clearAfterUnitTest"),sa=class extends ss(Ye){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[tb]=()=>{this.defaultMessages={},this.cache=new nr,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.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 o;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...r};_e(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,o;return this.fetchContext(e),(o=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,r){let o=e.toLowerCase();return this.resolveContext(o)[r]}resolveMessage(e,r,...o){var n;let s=e.toLowerCase(),a=this.resolveContext(s);return new Wr((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},a).resolve(r,...o)}async fetchContext(e){let r=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof ir)&&r&&console.error(n)}return o}subscribe(e,r){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new wi({loadedContexts:e})),this.dispatchEvent(new wi({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new wi({loadedContexts:[e]})),this.dispatchEvent(new wi({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>is(0).then(()=>o()).catch(()=>null)))}};tb=YE;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sa{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sa{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});Ai=window.FluidTopicsI18nService,aa=window.FluidTopicsCustomI18nService});var Yd,ob=d(()=>{"use strict";C();Yd=class{highlightHtml(e,r,o){xc(e,r,o)}};window.FluidTopicsHighlightHtmlService=new Yd});var Xd,ib=d(()=>{"use strict";C();Qe();Xd=class{isDate(e){var r,o,n,s;return(s=(o=((n=(r=N.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||o===void 0?void 0:o.date)!==null&&s!==void 0?s:!1}format(e,r){var o,n,s,a;if(e==null)return"";try{return wo.format(e,(o=r?.locale)!==null&&o!==void 0?o:N.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(a=r?.onlyTime)!==null&&a!==void 0?a:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Xd});var Tr,Jd=d(()=>{"use strict";C();Qe();Tr=class{static get(e,r,{baseUrl:o,localesConfiguration:n,availableContentLocales:s}=N.getState()){var a;if(r==="all"&&n?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(l=>l.lang===r)){let l=n?.defaultLocales.defaultContentLocale;r=l?`${l.lang}-${l.region}`:(a=s[0])===null||a===void 0?void 0:a.lang}return new Wt(o,e??20,n?.allLanguagesAllowed,r,s)}}});var la,nb=d(()=>{"use strict";qr();la=class extends Ye{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([o,n])=>Array.isArray(n)?[o,n.map(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,a)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(a.key):typeof s=="string"&&typeof a=="string"?s.localeCompare(a):String(s).localeCompare(String(a)))]:typeof n=="object"&&n!==null?[o,this.sortEventArrays(n)]:[o,n]);return Object.fromEntries(r)}sendEvents(e,r){let o="anything not undefined";return document.dispatchEvent(new CustomEvent("ft:analytics:userevents",{detail:e})),this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(n=>(console.info(r),console.debug(n),o)),1e3)}}});var eu,sb=d(()=>{"use strict";Jd();eu=class{urlToSearchRequest(e){return Tr.get().parse(e)}searchRequestToUrl(e){return Tr.get().serialize(e)}};window.FluidTopicsUrlService=new eu});var $o,Bo,ab=d(()=>{"use strict";$o=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};$o.eventName="before-location-change";Bo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Bo.eventName="change"});var tu,lb,cb=d(()=>{"use strict";tu=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))}},lb=new tu});var ca,db=d(()=>{"use strict";C();ab();cb();ca=class t extends Cr{static build(){return new t(window.history,lb,()=>window.location,!1)}constructor(e,r,o,n){var s,a;super(),this.history=e,this.historyStorage=r,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(a=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&a!==void 0?a:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let o=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),_e(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Bo(this.currentItem())),0)}installProxies(){let e=r=>(o,n,[s,a,l])=>{let u=new URL(typeof l=="string"?l:(l??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),f=new $o(u);this.dispatchEvent(f);let g=r(),m={...g===this.currentIndex?this.currentState:void 0,...s,index:g,href:f.detail.nextLocation.href};o.apply(n,[m,a,m.href]),this.setCurrentState(m,!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 o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(o)}addBeforeLocationChangeListener(e){this.addEventListener($o.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener($o.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Bo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Bo.eventName,e)}currentItem(){return gt(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 gt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return gt(r.find(o=>e(o)))}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 gt(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 o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!o)return e;let n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,o);)this.hasState(s)&&(n=s),s++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var o;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,s=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return s==null||s!=n}}});var ub=d(()=>{"use strict";db();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ca.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 pb=d(()=>{"use strict";Qe()});var da=d(()=>{"use strict";Gd();Vd();eb();rb();qr();ob();Wd();ib();Jd();nb();sb();ub();pb()});var fb,ru=d(()=>{"use strict";L();fb=E`
|
|
354
354
|
`});var hb=d(()=>{"use strict"});function mb(t,e){let{authenticationRequired:r,session:o}=N.getState();return r&&!o?.sessionAuthenticated?Promise.resolve(e):t()}var gb=d(()=>{"use strict";Qe()});var ua,yb=d(()=>{"use strict";Hd();ua=class extends Oi{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var ou,Uo,iu=d(()=>{"use strict";C();Qe();gb();da();Ht();yb();ou=class t extends Oo{static build(e){return new t(N,e)}constructor(e,r){super(),this.store=e,this.cache=new nr,this.withManualResources=!0,this.userLocaleService=new ua,this.knownContexts=new ni,this.knownCustomComponents=new ni,this.cleanSessionDebouncer=new ie,this.reloadConfiguration=()=>{var o;(o=this.cache)===null||o===void 0||o.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ie(500),this.apiProvider=r??(()=>Do.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(fr.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(fr.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",()=>mb(()=>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(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Rn(o)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return mh(N.getState().session,...e)}},Uo=ou.build()});var zo,_n=d(()=>{zo=class extends Event{constructor(e,r,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=o,this.subscribe=n??!1}}});var bb=d(()=>{});var nu=d(()=>{_n();});var xb=d(()=>{});var su=d(()=>{_n();xb();});var kn,vb=d(()=>{_n();kn=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:o}=r;for(let{elementRef:n,callbackRef:s}of o){let a=n.deref(),l=s.deref();a===void 0||l===void 0||a.dispatchEvent(new zo(e.context,a,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(o)||(s.add(o),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(o)}))}}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 Sb=d(()=>{su();});var Cb=d(()=>{nu();});var Eb=d(()=>{_n();bb();nu();su();vb();Sb();Cb()});var Ue,Ce,au=d(()=>{"use strict";L();G();C();ru();da();iu();Eb();Ue=function(t,e,r,o){var n=arguments.length,s=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ce=class extends bt{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=Uo,this.contextRoot=new kn}render(){return b`
|
|
355
355
|
<slot></slot>
|
|
356
356
|
`}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(o=>Ai.addContext(o)),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())}};Ce.elementDefinitions={};Ce.styles=fb;Ue([h()],Ce.prototype,"baseUrl",void 0);Ue([h()],Ce.prototype,"tenantId",void 0);Ue([h()],Ce.prototype,"apiIntegrationIdentifier",void 0);Ue([h()],Ce.prototype,"apiIntegrationAppVersion",void 0);Ue([h()],Ce.prototype,"uiLocale",void 0);Ue([le(null)],Ce.prototype,"availableUiLocales",void 0);Ue([le(null)],Ce.prototype,"metadataConfiguration",void 0);Ue([h({type:Boolean})],Ce.prototype,"editorMode",void 0);Ue([h({type:Boolean})],Ce.prototype,"noCustom",void 0);Ue([h({type:Boolean})],Ce.prototype,"openExternalDocumentInNewTab",void 0);Ue([h({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Ce.prototype,"noCustomComponent",void 0);Ue([h({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],Ce.prototype,"noCustomCode",void 0);Ue([h({type:Boolean})],Ce.prototype,"withManualResources",void 0);Ue([h({type:Boolean})],Ce.prototype,"navigatorOnline",void 0);Ue([h({type:Boolean})],Ce.prototype,"forcedOffline",void 0);Ue([h({type:Boolean})],Ce.prototype,"authenticationRequired",void 0);Ue([le([])],Ce.prototype,"messageContexts",void 0);Ue([le(void 0)],Ce.prototype,"session",void 0)});var Ob,wb=d(()=>{"use strict";au();Ob={"ft-app-context":Ce}});var Ab=d(()=>{"use strict";C();wb();$(Ob)});var Qt=d(()=>{"use strict";Ky();Qe();Zd();Jy();da();ru();hb();au();iu();Ab()});var lu,Ri,pa=d(()=>{"use strict";lu=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,o]=e.split(".");return{context:r,key:o,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ri=new lu});var eO,In,Rb,_b,fa,Ln,pt,ha,ma,Tn=d(()=>{"use strict";C();Qt();G();pa();eO=function(t,e,r,o){var n=arguments.length,s=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,o);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(n<3?a(s):n>3?a(e,r,s):a(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},In=Symbol("i18nAttributes"),Rb=Symbol("i18nListAttributes"),_b=Symbol("i18nProperties"),fa=Symbol("i18nContexts"),Ln=Symbol("i18nUnsubs"),pt=Oe(Symbol("withI18n"),function(t){var e,r;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(s){return s??this.useCustomMessageContexts?aa:Ai}i18n(s){let{context:a,key:l,message:u}=s,{custom:f,args:g,argsProvider:m}=s;if(a&&l){this.hasI18nContext(a)||this.addI18nContext(a,void 0,f);let y=g??(m?m(this):[]);return this.getI18nService(f).resolveMessage(a,l,...y)}return u}async awaitI18n(s){let{context:a,custom:l}=s;return a&&await this.getI18nService(l).prepareContext(a),this.i18n(s)}customI18n(s,a){if(Ri.isI18nKey(s)){let[l,u]=s.split(".");return this.i18n({custom:!0,context:l,key:u,...a})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((a,l,u)=>s.has(l)||typeof a.argsProvider=="function"),this.updateI18nProperties(a=>typeof a.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((a,l,u)=>{var f;return((f=u?.context)===null||f===void 0?void 0:f.toLowerCase())===s}),this.updateI18nProperties(a=>a.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var a,l;let u=this,f=(g,m,y)=>y?.context&&y.key&&s(g,m,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...g})}:y;(a=this[In])===null||a===void 0||a.forEach((g,m)=>u[m]=f(g,m,u[m])),(l=this[Rb])===null||l===void 0||l.forEach((g,m)=>{var y;return u[m]=(y=u[m])===null||y===void 0?void 0:y.map(w=>f(g,m,w))})}updateI18nProperties(s){var a;(a=this[_b])===null||a===void 0||a.forEach((l,u)=>{s(l,u)&&(this[u]=this.i18n(l))})}addI18nMessages(s,a,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,a,l)}addI18nContext(s,a,l){let u=(typeof s=="string"?s:s.name).toLowerCase();l=typeof s=="string"?l:s.custom,this[fa].set(u,{isCustomContext:l}),this[Ln].has(u)||this[Ln].set(u,this.getI18nService(l).subscribe(u,()=>this.onI18nUpdate(u))),this.getI18nService(l).prepareContext(u,a)}hasI18nContext(s){return this[fa].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[fa].forEach((s,a)=>this.addI18nContext(a,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ln].forEach(s=>s()),this[Ln].clear()}}return e=fa,r=Ln,eO([h({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),ha=class extends pt(F){},ma=class extends pt(bt){}});var cu,tO,kb=d(()=>{"use strict";pa();cu=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(o=>typeof o=="string"?Ri.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},tO=new cu});var Vo,ga=d(()=>{"use strict";Tn();C();pa();kb();Vo=(t,e)=>(r,o)=>{var n;r.constructor.createProperty(o,{type:Object,hasChanged:lt,converter:Ri,...e}),r[In]=(n=r[In])!==null&&n!==void 0?n:new Map,r[In].set(o,t??{})}});var Pt,Lb=d(()=>{"use strict";Qt();Pt=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?aa:Ai}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(o,n)=>{let s=n;return a=>({context:this.name,key:s,custom:this.custom,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var Ib=d(()=>{"use strict";Tn()});var Tb,du=d(()=>{"use strict";L();Tb=E`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-search-in-document",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.50",
|
|
4
4
|
"description": "A search component to retrieve occurrences in documents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,23 +19,23 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "2.2.
|
|
23
|
-
"@fluid-topics/ft-card": "2.2.
|
|
24
|
-
"@fluid-topics/ft-i18n": "2.2.
|
|
25
|
-
"@fluid-topics/ft-reader-context": "2.2.
|
|
26
|
-
"@fluid-topics/ft-ripple": "2.2.
|
|
27
|
-
"@fluid-topics/ft-search-context": "2.2.
|
|
28
|
-
"@fluid-topics/ft-search-input": "2.2.
|
|
29
|
-
"@fluid-topics/ft-search-load-more-button": "2.2.
|
|
30
|
-
"@fluid-topics/ft-search-result-abstract": "2.2.
|
|
31
|
-
"@fluid-topics/ft-search-result-context": "2.2.
|
|
32
|
-
"@fluid-topics/ft-search-result-title": "2.2.
|
|
33
|
-
"@fluid-topics/ft-search-results": "2.2.
|
|
34
|
-
"@fluid-topics/ft-search-results-number": "2.2.
|
|
35
|
-
"@fluid-topics/ft-typography": "2.2.
|
|
36
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
37
|
-
"@fluid-topics/public-api": "1.0.
|
|
22
|
+
"@fluid-topics/ft-button": "2.2.50",
|
|
23
|
+
"@fluid-topics/ft-card": "2.2.50",
|
|
24
|
+
"@fluid-topics/ft-i18n": "2.2.50",
|
|
25
|
+
"@fluid-topics/ft-reader-context": "2.2.50",
|
|
26
|
+
"@fluid-topics/ft-ripple": "2.2.50",
|
|
27
|
+
"@fluid-topics/ft-search-context": "2.2.50",
|
|
28
|
+
"@fluid-topics/ft-search-input": "2.2.50",
|
|
29
|
+
"@fluid-topics/ft-search-load-more-button": "2.2.50",
|
|
30
|
+
"@fluid-topics/ft-search-result-abstract": "2.2.50",
|
|
31
|
+
"@fluid-topics/ft-search-result-context": "2.2.50",
|
|
32
|
+
"@fluid-topics/ft-search-result-title": "2.2.50",
|
|
33
|
+
"@fluid-topics/ft-search-results": "2.2.50",
|
|
34
|
+
"@fluid-topics/ft-search-results-number": "2.2.50",
|
|
35
|
+
"@fluid-topics/ft-typography": "2.2.50",
|
|
36
|
+
"@fluid-topics/ft-wc-utils": "2.2.50",
|
|
37
|
+
"@fluid-topics/public-api": "1.0.151",
|
|
38
38
|
"lit": "3.3.3"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "827b5f0b91f05b76d24e8c231411908394c47b4e"
|
|
41
41
|
}
|