@fluid-topics/ft-reader-attachments 1.1.24 → 1.1.26
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.
|
@@ -229,11 +229,11 @@
|
|
|
229
229
|
`,I=e.css`
|
|
230
230
|
`,U=o.FtReduxStore.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class E{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=U.getState(),r=null!=t?t:e;if(o&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,r,!0)}static get(t){var o;return null!=t?E.build(t):null!==(o=E.API)&&void 0!==o?o:E.API=E.build()}static await(t){return new Promise((o=>{let e=E.get(t);if(e)o(e);else{const r=U.subscribe((()=>{e=E.get(t),e&&(r(),o(e))}))}}))}}var R;const W=Symbol("clearAfterUnitTest");class k{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[R]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=U.getState().uiLocale,U.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=U.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var r;if(t=t.toLowerCase(),Object.keys(e).length>0){const a={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...e};o.deepEqual(this.defaultMessages[t],a)||(this.defaultMessages[t]=a,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...r){var a,i,n;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(i=null===(a=this.cache.getNow(t))||void 0===a?void 0:a.messages)&&void 0!==i?i:{};return new o.ParametrizedLabelResolver(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},l).resolve(e,...r)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}R=W,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new k((async(t,o)=>(await E.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new k((async(t,o)=>(await E.await()).getCustomMessageContext(t,o))));const L=window.FluidTopicsI18nService,$=window.FluidTopicsCustomI18nService;var K=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class Z extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>E.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
|
|
231
231
|
<slot></slot>
|
|
232
|
-
`}update(t){super.update(t),t.has("baseUrl")&&U.actions.baseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&U.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&U.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&U.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&U.actions.noCustom(this.noCustom),t.has("editorMode")&&U.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&U.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&U.actions.session(this.session),t.has("availableUiLocales")&&U.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>L.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Z.elementDefinitions={},Z.styles=I,K([r.property()],Z.prototype,"baseUrl",void 0),K([r.property()],Z.prototype,"apiIntegrationIdentifier",void 0),K([r.property()],Z.prototype,"uiLocale",void 0),K([o.jsonProperty(null)],Z.prototype,"availableUiLocales",void 0),K([o.jsonProperty(null)],Z.prototype,"metadataConfiguration",void 0),K([r.property({type:Boolean})],Z.prototype,"editorMode",void 0),K([r.property({type:Boolean})],Z.prototype,"noCustom",void 0),K([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Z.prototype,"noCustomComponent",void 0),K([r.property({type:Boolean})],Z.prototype,"withManualResources",void 0),K([o.jsonProperty([])],Z.prototype,"messageContexts",void 0),K([o.jsonProperty(void 0)],Z.prototype,"session",void 0),K([r.property({type:Object})],Z.prototype,"apiProvider",void 0);class z{async listMySearches(){var t;return(null===(t=U.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await E.await()).listMySearches(U.getState().session.profile.userId):[]}}const B=new o.CacheRegistry;class F{async listMyBookmarks(){return B.get("bookmarks",(async()=>(await E.await()).listMyBookmarks(U.getState().session.profile.userId)))}clearCache(){B.clear("bookmarks")}}const D=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new F,U.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=U.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){D.actions.savedSearches(void 0)}clearMyBookmarks(){D.actions.bookmarks(void 0)}async reloadMySearches(){const t=new z,o=await t.listMySearches();D.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;D.actions.bookmarks(o)}}},o.customElement("ft-app-context")(Z);var A=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};const G=Symbol("i18nProperties"),H=Symbol("i18nUnsubs");function M(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?$:L}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const a=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...a)}onI18nUpdate(t){var o;null===(o=this[G])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[G])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[G]&&new Set([...this[G].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[H].has(t)||this[H].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[H].forEach((t=>t())),this[H].clear()}}return o=H,A([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class j extends(M(o.FtLitElement)){}class P extends(M(o.FtLitElementRedux)){}var T=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class _ extends P{constructor(){super(),this.editorMode=!1,this.addStore(U)}render(){return this.key&&this.context?e.html`
|
|
232
|
+
`}update(t){super.update(t),t.has("baseUrl")&&(U.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&U.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&U.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&U.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&U.actions.noCustom(this.noCustom),t.has("editorMode")&&U.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&U.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&U.actions.session(this.session),t.has("availableUiLocales")&&U.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>L.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Z.elementDefinitions={},Z.styles=I,K([r.property()],Z.prototype,"baseUrl",void 0),K([r.property()],Z.prototype,"apiIntegrationIdentifier",void 0),K([r.property()],Z.prototype,"uiLocale",void 0),K([o.jsonProperty(null)],Z.prototype,"availableUiLocales",void 0),K([o.jsonProperty(null)],Z.prototype,"metadataConfiguration",void 0),K([r.property({type:Boolean})],Z.prototype,"editorMode",void 0),K([r.property({type:Boolean})],Z.prototype,"noCustom",void 0),K([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Z.prototype,"noCustomComponent",void 0),K([r.property({type:Boolean})],Z.prototype,"withManualResources",void 0),K([o.jsonProperty([])],Z.prototype,"messageContexts",void 0),K([o.jsonProperty(void 0)],Z.prototype,"session",void 0),K([r.property({type:Object})],Z.prototype,"apiProvider",void 0);class z{async listMySearches(){var t;return(null===(t=U.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await E.await()).listMySearches(U.getState().session.profile.userId):[]}}const B=new o.CacheRegistry;class F{async listMyBookmarks(){return B.get("bookmarks",(async()=>(await E.await()).listMyBookmarks(U.getState().session.profile.userId)))}clearCache(){B.clear("bookmarks")}}const D=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=U.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new F,U.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=U.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){D.actions.savedSearches(void 0)}clearMyBookmarks(){D.actions.bookmarks(void 0)}async reloadMySearches(){const t=new z,o=await t.listMySearches();D.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;D.actions.bookmarks(o)}}},o.customElement("ft-app-context")(Z);var A=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};const G=Symbol("i18nProperties"),H=Symbol("i18nUnsubs");function M(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?$:L}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const a=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...a)}onI18nUpdate(t){var o;null===(o=this[G])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[G])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[G]&&new Set([...this[G].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[H].has(t)||this[H].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[H].forEach((t=>t())),this[H].clear()}}return o=H,A([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class j extends(M(o.FtLitElement)){}class P extends(M(o.FtLitElementRedux)){}var T=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class _ extends P{constructor(){super(),this.editorMode=!1,this.addStore(U)}render(){return this.key&&this.context?e.html`
|
|
233
233
|
<span class="ft-i18n">
|
|
234
234
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
235
235
|
</span>
|
|
236
|
-
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}_.elementDefinitions={},_.styles=w,T([o.redux()],_.prototype,"editorMode",void 0),T([r.property()],_.prototype,"context",void 0),T([r.property()],_.prototype,"key",void 0),T([o.jsonProperty([])],_.prototype,"args",void 0),T([r.property()],_.prototype,"defaultMessage",void 0);class Y{static build(t){return new Y(t)}static fromGwt(t){return new Y(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>L.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(_);const q=Y.build("designedReaderAttachments"),X={download:"Download “{0}”"};var V,J;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE=""}(V||(V={})),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=""}(J||(J={}));const Q=new Map([...["abw"].map((t=>[t,J.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,J.AUDIO])),...["avi"].map((t=>[t,J.AVI])),...["chm","xhs"].map((t=>[t,J.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,J.CODE])),...["csv"].map((t=>[t,J.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,J.DITA])),...["epub"].map((t=>[t,J.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,J.EXCEL])),...["flac"].map((t=>[t,J.FLAC])),...["gif"].map((t=>[t,J.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,J.GZIP])),...["html","htm","xhtml"].map((t=>[t,J.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,J.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,J.JPEG])),...["json"].map((t=>[t,J.JSON])),...["m4a","m4p"].map((t=>[t,J.M4A])),...["mov","qt"].map((t=>[t,J.MOV])),...["mp3"].map((t=>[t,J.MP3])),...["mp4","m4v"].map((t=>[t,J.MP4])),...["ogg","oga"].map((t=>[t,J.OGG])),...["pdf","ps"].map((t=>[t,J.PDF])),...["png"].map((t=>[t,J.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,J.POWERPOINT])),...["rar"].map((t=>[t,J.RAR])),...["stp"].map((t=>[t,J.STP])),...["txt","rtf","md","mdown"].map((t=>[t,J.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,J.VIDEO])),...["wav"].map((t=>[t,J.WAV])),...["wma"].map((t=>[t,J.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,J.WORD])),...["xml","xsl","rdf"].map((t=>[t,J.XML])),...["yaml","yml","x-yaml"].map((t=>[t,J.YAML])),...["zip"].map((t=>[t,J.ZIP]))]),tt=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const ot={[J.ABW]:"#91ABC6",[J.AUDIO]:"#1795E3",[J.AVI]:"#E63324",[J.CHM]:"#71C3EB",[J.CODE]:"#71C3EB",[J.CSV]:"#1F7345",[J.DITA]:"#71C3EB",[J.EPUB]:"#85B926",[J.EXCEL]:"#1F7345",[J.FLAC]:"#1795E3",[J.GIF]:"#59B031",[J.GZIP]:"#F8AB36",[J.HTML]:"#71C3EB",[J.IMAGE]:"#59B031",[J.JPEG]:"#59B031",[J.JSON]:"#71C3EB",[J.M4A]:"#1795E3",[J.MOV]:"#E63324",[J.MP3]:"#1795E3",[J.MP4]:"#E63324",[J.OGG]:"#1795E3",[J.PDF]:"#E44948",[J.PNG]:"#59B031",[J.POWERPOINT]:"#B54A2B",[J.RAR]:"#F8AB36",[J.STP]:"#3764B1",[J.TEXT]:"#3162AB",[J.UNKNOWN]:"#999999",[J.VIDEO]:"#E63324",[J.WAV]:"#1795E3",[J.WMA]:"#1795E3",[J.WORD]:"#3162AB",[J.XML]:"#71C3EB",[J.YAML]:"#71C3EB",[J.ZIP]:"#F8AB36"};var et;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(et||(et={}));var rt=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class at extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(et).includes(this.variant)?this.variant:et.fluid_topics,o=t!==et.material||!!this.value;return e.html`
|
|
236
|
+
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){var o;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(o=this.defaultMessage)&&void 0!==o?o:""})}}_.elementDefinitions={},_.styles=w,T([o.redux()],_.prototype,"editorMode",void 0),T([r.property()],_.prototype,"context",void 0),T([r.property()],_.prototype,"key",void 0),T([o.jsonProperty([])],_.prototype,"args",void 0),T([r.property()],_.prototype,"defaultMessage",void 0);class Y{static build(t){return new Y(t)}static fromGwt(t){return new Y(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>L.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(_);const q=Y.build("designedReaderAttachments"),X={download:"Download “{0}”"};var V,J;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE=""}(V||(V={})),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=""}(J||(J={}));const Q=new Map([...["abw"].map((t=>[t,J.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,J.AUDIO])),...["avi"].map((t=>[t,J.AVI])),...["chm","xhs"].map((t=>[t,J.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,J.CODE])),...["csv"].map((t=>[t,J.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,J.DITA])),...["epub"].map((t=>[t,J.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,J.EXCEL])),...["flac"].map((t=>[t,J.FLAC])),...["gif"].map((t=>[t,J.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,J.GZIP])),...["html","htm","xhtml"].map((t=>[t,J.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,J.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,J.JPEG])),...["json"].map((t=>[t,J.JSON])),...["m4a","m4p"].map((t=>[t,J.M4A])),...["mov","qt"].map((t=>[t,J.MOV])),...["mp3"].map((t=>[t,J.MP3])),...["mp4","m4v"].map((t=>[t,J.MP4])),...["ogg","oga"].map((t=>[t,J.OGG])),...["pdf","ps"].map((t=>[t,J.PDF])),...["png"].map((t=>[t,J.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,J.POWERPOINT])),...["rar"].map((t=>[t,J.RAR])),...["stp"].map((t=>[t,J.STP])),...["txt","rtf","md","mdown"].map((t=>[t,J.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,J.VIDEO])),...["wav"].map((t=>[t,J.WAV])),...["wma"].map((t=>[t,J.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,J.WORD])),...["xml","xsl","rdf"].map((t=>[t,J.XML])),...["yaml","yml","x-yaml"].map((t=>[t,J.YAML])),...["zip"].map((t=>[t,J.ZIP]))]),tt=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const ot={[J.ABW]:"#91ABC6",[J.AUDIO]:"#1795E3",[J.AVI]:"#E63324",[J.CHM]:"#71C3EB",[J.CODE]:"#71C3EB",[J.CSV]:"#1F7345",[J.DITA]:"#71C3EB",[J.EPUB]:"#85B926",[J.EXCEL]:"#1F7345",[J.FLAC]:"#1795E3",[J.GIF]:"#59B031",[J.GZIP]:"#F8AB36",[J.HTML]:"#71C3EB",[J.IMAGE]:"#59B031",[J.JPEG]:"#59B031",[J.JSON]:"#71C3EB",[J.M4A]:"#1795E3",[J.MOV]:"#E63324",[J.MP3]:"#1795E3",[J.MP4]:"#E63324",[J.OGG]:"#1795E3",[J.PDF]:"#E44948",[J.PNG]:"#59B031",[J.POWERPOINT]:"#B54A2B",[J.RAR]:"#F8AB36",[J.STP]:"#3764B1",[J.TEXT]:"#3162AB",[J.UNKNOWN]:"#999999",[J.VIDEO]:"#E63324",[J.WAV]:"#1795E3",[J.WMA]:"#1795E3",[J.WORD]:"#3162AB",[J.XML]:"#71C3EB",[J.YAML]:"#71C3EB",[J.ZIP]:"#F8AB36"};var et;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(et||(et={}));var rt=function(t,o,e,r){for(var a,i=arguments.length,n=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(a=t[l])&&(n=(i<3?a(n):i>3?a(o,e,n):a(o,e))||n);return i>3&&n&&Object.defineProperty(o,e,n),n};class at extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(et).includes(this.variant)?this.variant:et.fluid_topics,o=t!==et.material||!!this.value;return e.html`
|
|
237
237
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
238
238
|
${i.unsafeHTML(this.resolvedIcon)}
|
|
239
239
|
<slot ?hidden=${o}></slot>
|
|
@@ -358,7 +358,7 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
358
358
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
359
359
|
*/class wi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=xi.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?wi.build(t):null!==(e=wi.API)&&void 0!==e?e:wi.API=wi.build()}static await(t){return new Promise((e=>{let o=wi.get(t);if(o)e(o);else{const r=xi.subscribe((()=>{o=wi.get(t),o&&(r(),e(o))}))}}))}}var Si;const Ni=Symbol("clearAfterUnitTest");class Ci{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Si]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=xi.getState().uiLocale,xi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=xi.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};L(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Be(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Si=Ni,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ci((async(t,e)=>(await wi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ci((async(t,e)=>(await wi.await()).getCustomMessageContext(t,e))));const Ei=window.FluidTopicsI18nService,Ri=window.FluidTopicsCustomI18nService;var Ui=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ii extends Ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>wi.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return se`
|
|
360
360
|
<slot></slot>
|
|
361
|
-
`}update(t){super.update(t),t.has("baseUrl")&&xi.actions.baseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&xi.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&xi.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&xi.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&xi.actions.noCustom(this.noCustom),t.has("editorMode")&&xi.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&xi.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&xi.actions.session(this.session),t.has("availableUiLocales")&&xi.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ei.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Ii.elementDefinitions={},Ii.styles=Oi,Ui([U()],Ii.prototype,"baseUrl",void 0),Ui([U()],Ii.prototype,"apiIntegrationIdentifier",void 0),Ui([U()],Ii.prototype,"uiLocale",void 0),Ui([A(null)],Ii.prototype,"availableUiLocales",void 0),Ui([A(null)],Ii.prototype,"metadataConfiguration",void 0),Ui([U({type:Boolean})],Ii.prototype,"editorMode",void 0),Ui([U({type:Boolean})],Ii.prototype,"noCustom",void 0),Ui([U({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ii.prototype,"noCustomComponent",void 0),Ui([U({type:Boolean})],Ii.prototype,"withManualResources",void 0),Ui([A([])],Ii.prototype,"messageContexts",void 0),Ui([A(void 0)],Ii.prototype,"session",void 0),Ui([U({type:Object})],Ii.prototype,"apiProvider",void 0);class ki{async listMySearches(){var t;return(null===(t=xi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await wi.await()).listMySearches(xi.getState().session.profile.userId):[]}}const $i=new r;class Li{async listMyBookmarks(){return $i.get("bookmarks",(async()=>(await wi.await()).listMyBookmarks(xi.getState().session.profile.userId)))}clearCache(){$i.clear("bookmarks")}}const Wi=Pr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=xi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Li,xi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=xi.getState();L(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Wi.actions.savedSearches(void 0)}clearMyBookmarks(){Wi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ki,e=await t.listMySearches();Wi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Wi.actions.bookmarks(e)}}},W("ft-app-context")(Ii);var Ai=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ki=Symbol("i18nProperties"),ji=Symbol("i18nUnsubs");function Fi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ri:Ei}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ki])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ki]&&new Set([...this[Ki].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ji].has(t)||this[ji].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[ji].forEach((t=>t())),this[ji].clear()}}return e=ji,Ai([U({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Mi extends(Fi(Ze)){}class Zi extends(Fi(Je)){}var zi=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bi extends Zi{constructor(){super(),this.editorMode=!1,this.addStore(xi)}render(){return this.key&&this.context?se`
|
|
361
|
+
`}update(t){super.update(t),t.has("baseUrl")&&(xi.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&xi.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&xi.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&xi.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&xi.actions.noCustom(this.noCustom),t.has("editorMode")&&xi.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&xi.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&xi.actions.session(this.session),t.has("availableUiLocales")&&xi.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ei.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Ii.elementDefinitions={},Ii.styles=Oi,Ui([U()],Ii.prototype,"baseUrl",void 0),Ui([U()],Ii.prototype,"apiIntegrationIdentifier",void 0),Ui([U()],Ii.prototype,"uiLocale",void 0),Ui([A(null)],Ii.prototype,"availableUiLocales",void 0),Ui([A(null)],Ii.prototype,"metadataConfiguration",void 0),Ui([U({type:Boolean})],Ii.prototype,"editorMode",void 0),Ui([U({type:Boolean})],Ii.prototype,"noCustom",void 0),Ui([U({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ii.prototype,"noCustomComponent",void 0),Ui([U({type:Boolean})],Ii.prototype,"withManualResources",void 0),Ui([A([])],Ii.prototype,"messageContexts",void 0),Ui([A(void 0)],Ii.prototype,"session",void 0),Ui([U({type:Object})],Ii.prototype,"apiProvider",void 0);class ki{async listMySearches(){var t;return(null===(t=xi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await wi.await()).listMySearches(xi.getState().session.profile.userId):[]}}const $i=new r;class Li{async listMyBookmarks(){return $i.get("bookmarks",(async()=>(await wi.await()).listMyBookmarks(xi.getState().session.profile.userId)))}clearCache(){$i.clear("bookmarks")}}const Wi=Pr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=xi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Li,xi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=xi.getState();L(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Wi.actions.savedSearches(void 0)}clearMyBookmarks(){Wi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ki,e=await t.listMySearches();Wi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Wi.actions.bookmarks(e)}}},W("ft-app-context")(Ii);var Ai=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ki=Symbol("i18nProperties"),ji=Symbol("i18nUnsubs");function Fi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ri:Ei}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ki])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ki]&&new Set([...this[Ki].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ji].has(t)||this[ji].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[ji].forEach((t=>t())),this[ji].clear()}}return e=ji,Ai([U({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Mi extends(Fi(Ze)){}class Zi extends(Fi(Je)){}var zi=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bi extends Zi{constructor(){super(),this.editorMode=!1,this.addStore(xi)}render(){return this.key&&this.context?se`
|
|
362
362
|
<span class="ft-i18n">
|
|
363
363
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
364
364
|
</span>
|
|
@@ -368,7 +368,7 @@ let we=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
368
368
|
* Copyright 2017 Google LLC
|
|
369
369
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
370
370
|
*/
|
|
371
|
-
let Ti=class extends fi{constructor(t){if(super(t),this.et=rt,t.type!==ci)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ti.directiveName="unsafeHTML",Ti.resultType=1;const Hi=li(Ti);var Gi,qi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE=""}(Gi||(Gi={})),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=""}(qi||(qi={}));const Vi=new Map([...["abw"].map((t=>[t,qi.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,qi.AUDIO])),...["avi"].map((t=>[t,qi.AVI])),...["chm","xhs"].map((t=>[t,qi.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,qi.CODE])),...["csv"].map((t=>[t,qi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qi.DITA])),...["epub"].map((t=>[t,qi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qi.EXCEL])),...["flac"].map((t=>[t,qi.FLAC])),...["gif"].map((t=>[t,qi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qi.GZIP])),...["html","htm","xhtml"].map((t=>[t,qi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,qi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qi.JPEG])),...["json"].map((t=>[t,qi.JSON])),...["m4a","m4p"].map((t=>[t,qi.M4A])),...["mov","qt"].map((t=>[t,qi.MOV])),...["mp3"].map((t=>[t,qi.MP3])),...["mp4","m4v"].map((t=>[t,qi.MP4])),...["ogg","oga"].map((t=>[t,qi.OGG])),...["pdf","ps"].map((t=>[t,qi.PDF])),...["png"].map((t=>[t,qi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qi.POWERPOINT])),...["rar"].map((t=>[t,qi.RAR])),...["stp"].map((t=>[t,qi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qi.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,qi.VIDEO])),...["wav"].map((t=>[t,qi.WAV])),...["wma"].map((t=>[t,qi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qi.WORD])),...["xml","xsl","rdf"].map((t=>[t,qi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qi.YAML])),...["zip"].map((t=>[t,qi.ZIP]))]),Yi=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Ji={[qi.ABW]:"#91ABC6",[qi.AUDIO]:"#1795E3",[qi.AVI]:"#E63324",[qi.CHM]:"#71C3EB",[qi.CODE]:"#71C3EB",[qi.CSV]:"#1F7345",[qi.DITA]:"#71C3EB",[qi.EPUB]:"#85B926",[qi.EXCEL]:"#1F7345",[qi.FLAC]:"#1795E3",[qi.GIF]:"#59B031",[qi.GZIP]:"#F8AB36",[qi.HTML]:"#71C3EB",[qi.IMAGE]:"#59B031",[qi.JPEG]:"#59B031",[qi.JSON]:"#71C3EB",[qi.M4A]:"#1795E3",[qi.MOV]:"#E63324",[qi.MP3]:"#1795E3",[qi.MP4]:"#E63324",[qi.OGG]:"#1795E3",[qi.PDF]:"#E44948",[qi.PNG]:"#59B031",[qi.POWERPOINT]:"#B54A2B",[qi.RAR]:"#F8AB36",[qi.STP]:"#3764B1",[qi.TEXT]:"#3162AB",[qi.UNKNOWN]:"#999999",[qi.VIDEO]:"#E63324",[qi.WAV]:"#1795E3",[qi.WMA]:"#1795E3",[qi.WORD]:"#3162AB",[qi.XML]:"#71C3EB",[qi.YAML]:"#71C3EB",[qi.ZIP]:"#F8AB36"};var Xi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xi||(Xi={}));var Qi=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class tn extends Ze{constructor(){super(...arguments),this.resolvedIcon=le}render(){const t=this.variant&&Object.values(Xi).includes(this.variant)?this.variant:Xi.fluid_topics,e=t!==Xi.material||!!this.value;return se`
|
|
371
|
+
let Ti=class extends fi{constructor(t){if(super(t),this.et=rt,t.type!==ci)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ti.directiveName="unsafeHTML",Ti.resultType=1;const Hi=li(Ti);var Gi,qi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_NORMALIZED="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK="",t.CLONE="",t.CLONE_LINK_SIMPLE=""}(Gi||(Gi={})),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=""}(qi||(qi={}));const Vi=new Map([...["abw"].map((t=>[t,qi.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,qi.AUDIO])),...["avi"].map((t=>[t,qi.AVI])),...["chm","xhs"].map((t=>[t,qi.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,qi.CODE])),...["csv"].map((t=>[t,qi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qi.DITA])),...["epub"].map((t=>[t,qi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qi.EXCEL])),...["flac"].map((t=>[t,qi.FLAC])),...["gif"].map((t=>[t,qi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qi.GZIP])),...["html","htm","xhtml"].map((t=>[t,qi.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,qi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qi.JPEG])),...["json"].map((t=>[t,qi.JSON])),...["m4a","m4p"].map((t=>[t,qi.M4A])),...["mov","qt"].map((t=>[t,qi.MOV])),...["mp3"].map((t=>[t,qi.MP3])),...["mp4","m4v"].map((t=>[t,qi.MP4])),...["ogg","oga"].map((t=>[t,qi.OGG])),...["pdf","ps"].map((t=>[t,qi.PDF])),...["png"].map((t=>[t,qi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qi.POWERPOINT])),...["rar"].map((t=>[t,qi.RAR])),...["stp"].map((t=>[t,qi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qi.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,qi.VIDEO])),...["wav"].map((t=>[t,qi.WAV])),...["wma"].map((t=>[t,qi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qi.WORD])),...["xml","xsl","rdf"].map((t=>[t,qi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qi.YAML])),...["zip"].map((t=>[t,qi.ZIP]))]),Yi=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Ji={[qi.ABW]:"#91ABC6",[qi.AUDIO]:"#1795E3",[qi.AVI]:"#E63324",[qi.CHM]:"#71C3EB",[qi.CODE]:"#71C3EB",[qi.CSV]:"#1F7345",[qi.DITA]:"#71C3EB",[qi.EPUB]:"#85B926",[qi.EXCEL]:"#1F7345",[qi.FLAC]:"#1795E3",[qi.GIF]:"#59B031",[qi.GZIP]:"#F8AB36",[qi.HTML]:"#71C3EB",[qi.IMAGE]:"#59B031",[qi.JPEG]:"#59B031",[qi.JSON]:"#71C3EB",[qi.M4A]:"#1795E3",[qi.MOV]:"#E63324",[qi.MP3]:"#1795E3",[qi.MP4]:"#E63324",[qi.OGG]:"#1795E3",[qi.PDF]:"#E44948",[qi.PNG]:"#59B031",[qi.POWERPOINT]:"#B54A2B",[qi.RAR]:"#F8AB36",[qi.STP]:"#3764B1",[qi.TEXT]:"#3162AB",[qi.UNKNOWN]:"#999999",[qi.VIDEO]:"#E63324",[qi.WAV]:"#1795E3",[qi.WMA]:"#1795E3",[qi.WORD]:"#3162AB",[qi.XML]:"#71C3EB",[qi.YAML]:"#71C3EB",[qi.ZIP]:"#F8AB36"};var Xi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xi||(Xi={}));var Qi=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class tn extends Ze{constructor(){super(...arguments),this.resolvedIcon=le}render(){const t=this.variant&&Object.values(Xi).includes(this.variant)?this.variant:Xi.fluid_topics,e=t!==Xi.material||!!this.value;return se`
|
|
372
372
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
373
373
|
${Hi(this.resolvedIcon)}
|
|
374
374
|
<slot ?hidden=${e}></slot>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-attachments",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26",
|
|
4
4
|
"description": "Reader component to list map attachments",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-app-context": "1.1.
|
|
23
|
-
"@fluid-topics/ft-i18n": "1.1.
|
|
24
|
-
"@fluid-topics/ft-icon": "1.1.
|
|
25
|
-
"@fluid-topics/ft-reader-context": "1.1.
|
|
26
|
-
"@fluid-topics/ft-ripple": "1.1.
|
|
27
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
28
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
29
|
-
"@fluid-topics/public-api": "1.0.
|
|
22
|
+
"@fluid-topics/ft-app-context": "1.1.26",
|
|
23
|
+
"@fluid-topics/ft-i18n": "1.1.26",
|
|
24
|
+
"@fluid-topics/ft-icon": "1.1.26",
|
|
25
|
+
"@fluid-topics/ft-reader-context": "1.1.26",
|
|
26
|
+
"@fluid-topics/ft-ripple": "1.1.26",
|
|
27
|
+
"@fluid-topics/ft-typography": "1.1.26",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "1.1.26",
|
|
29
|
+
"@fluid-topics/public-api": "1.0.56",
|
|
30
30
|
"lit": "3.1.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "6734976f5a7f6b986917a085be0c38ca3ae562a0"
|
|
33
33
|
}
|