@fluid-topics/ft-copy-block 1.1.18 → 1.1.20

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.
@@ -843,9 +843,9 @@ const Ko=Symbol.for(""),zo=t=>{if(t?.r===Ko)return t?._$litStatic$},Bo=t=>({_$li
843
843
 
844
844
  `,yr=e.css`
845
845
  `,gr=e.css`
846
- `,ur=o.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setMetadataDescriptors:(t,o)=>{t.metadataDescriptors=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataDescriptors:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class br{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=ur.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?br.build(t):null!==(o=br.API)&&void 0!==o?o:br.API=br.build()}static await(t){return new Promise((o=>{let e=br.get(t);if(e)o(e);else{const r=ur.subscribe((()=>{e=br.get(t),e&&(r(),o(e))}))}}))}}var mr;const xr=Symbol("clearAfterUnitTest");class Or{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[mr]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=ur.getState().uiLocale,ur.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ur.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 i={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...e};o.deepEqual(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...r){var i,n,a;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(n=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==n?n:{};return new o.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},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)))))}}mr=xr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Or((async(t,o)=>(await br.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Or((async(t,o)=>(await br.await()).getCustomMessageContext(t,o))));const vr=window.FluidTopicsI18nService,Nr=window.FluidTopicsCustomI18nService;var Sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wr extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.metadataDescriptors=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>br.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
846
+ `,ur=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 br{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=ur.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?br.build(t):null!==(o=br.API)&&void 0!==o?o:br.API=br.build()}static await(t){return new Promise((o=>{let e=br.get(t);if(e)o(e);else{const r=ur.subscribe((()=>{e=br.get(t),e&&(r(),o(e))}))}}))}}var mr;const xr=Symbol("clearAfterUnitTest");class Or{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[mr]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=ur.getState().uiLocale,ur.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ur.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 i={...null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},...e};o.deepEqual(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...r){var i,n,a;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(n=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==n?n:{};return new o.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},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)))))}}mr=xr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Or((async(t,o)=>(await br.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Or((async(t,o)=>(await br.await()).getCustomMessageContext(t,o))));const vr=window.FluidTopicsI18nService,Nr=window.FluidTopicsCustomI18nService;var Sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wr 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=()=>br.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
847
847
  <slot></slot>
848
- `}update(t){super.update(t),t.has("baseUrl")&&ur.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ur.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ur.actions.setUiLocale(this.uiLocale),t.has("metadataDescriptors")&&ur.actions.setMetadataDescriptors(this.metadataDescriptors),t.has("noCustom")&&ur.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ur.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ur.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ur.actions.setSession(this.session),t.has("availableUiLocales")&&ur.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>vr.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))),null==this.metadataDescriptors&&(this.metadataDescriptors=await this.cache.get("metadataDescriptors",(()=>t.getMetadataDescriptors()))))}}wr.elementDefinitions={},wr.styles=gr,Sr([r.property()],wr.prototype,"baseUrl",void 0),Sr([r.property()],wr.prototype,"apiIntegrationIdentifier",void 0),Sr([r.property()],wr.prototype,"uiLocale",void 0),Sr([o.jsonProperty([])],wr.prototype,"availableUiLocales",void 0),Sr([o.jsonProperty([])],wr.prototype,"metadataDescriptors",void 0),Sr([r.property({type:Boolean})],wr.prototype,"editorMode",void 0),Sr([r.property({type:Boolean})],wr.prototype,"noCustom",void 0),Sr([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],wr.prototype,"noCustomComponent",void 0),Sr([r.property({type:Boolean})],wr.prototype,"withManualResources",void 0),Sr([o.jsonProperty([])],wr.prototype,"messageContexts",void 0),Sr([o.jsonProperty(void 0)],wr.prototype,"session",void 0),Sr([r.property({type:Object})],wr.prototype,"apiProvider",void 0);class Cr{async listMySearches(){var t;return(null===(t=ur.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await br.await()).listMySearches(ur.getState().session.profile.userId):[]}}const $r=new o.CacheRegistry;class Ir{async listMyBookmarks(){return $r.get("bookmarks",(async()=>(await br.await()).listMyBookmarks(ur.getState().session.profile.userId)))}clearCache(){$r.clear("bookmarks")}}const kr=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=ur.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ir,ur.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ur.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(){kr.actions.savedSearches(void 0)}clearMyBookmarks(){kr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Cr,o=await t.listMySearches();kr.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;kr.actions.bookmarks(o)}}},o.customElement("ft-app-context")(wr);var Ur=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Rr=Symbol("i18nProperties"),Wr=Symbol("i18nUnsubs");function Lr(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Nr:vr}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);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 o;null===(o=this[Rr])||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[Rr])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Rr]&&new Set([...this[Rr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[Wr].has(t)||this[Wr].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[Wr].forEach((t=>t())),this[Wr].clear()}}return o=Wr,Ur([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class Er extends(Lr(o.FtLitElement)){}class Zr extends(Lr(o.FtLitElementRedux)){}var Kr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class zr extends Zr{constructor(){super(),this.editorMode=!1,this.addStore(ur)}render(){return this.key&&this.context?e.html`
848
+ `}update(t){super.update(t),t.has("baseUrl")&&ur.actions.baseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ur.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ur.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&ur.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&ur.actions.noCustom(this.noCustom),t.has("editorMode")&&ur.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&ur.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&ur.actions.session(this.session),t.has("availableUiLocales")&&ur.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>vr.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()))}}wr.elementDefinitions={},wr.styles=gr,Sr([r.property()],wr.prototype,"baseUrl",void 0),Sr([r.property()],wr.prototype,"apiIntegrationIdentifier",void 0),Sr([r.property()],wr.prototype,"uiLocale",void 0),Sr([o.jsonProperty(null)],wr.prototype,"availableUiLocales",void 0),Sr([o.jsonProperty(null)],wr.prototype,"metadataConfiguration",void 0),Sr([r.property({type:Boolean})],wr.prototype,"editorMode",void 0),Sr([r.property({type:Boolean})],wr.prototype,"noCustom",void 0),Sr([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],wr.prototype,"noCustomComponent",void 0),Sr([r.property({type:Boolean})],wr.prototype,"withManualResources",void 0),Sr([o.jsonProperty([])],wr.prototype,"messageContexts",void 0),Sr([o.jsonProperty(void 0)],wr.prototype,"session",void 0),Sr([r.property({type:Object})],wr.prototype,"apiProvider",void 0);class Cr{async listMySearches(){var t;return(null===(t=ur.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await br.await()).listMySearches(ur.getState().session.profile.userId):[]}}const $r=new o.CacheRegistry;class Ir{async listMyBookmarks(){return $r.get("bookmarks",(async()=>(await br.await()).listMyBookmarks(ur.getState().session.profile.userId)))}clearCache(){$r.clear("bookmarks")}}const kr=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=ur.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ir,ur.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ur.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(){kr.actions.savedSearches(void 0)}clearMyBookmarks(){kr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Cr,o=await t.listMySearches();kr.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;kr.actions.bookmarks(o)}}},o.customElement("ft-app-context")(wr);var Ur=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Rr=Symbol("i18nProperties"),Wr=Symbol("i18nUnsubs");function Lr(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Nr:vr}i18n(t,o,...e){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);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 o;null===(o=this[Rr])||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[Rr])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Rr]&&new Set([...this[Rr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[Wr].has(t)||this[Wr].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[Wr].forEach((t=>t())),this[Wr].clear()}}return o=Wr,Ur([r.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class Er extends(Lr(o.FtLitElement)){}class Zr extends(Lr(o.FtLitElementRedux)){}var Kr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class zr extends Zr{constructor(){super(),this.editorMode=!1,this.addStore(ur)}render(){return this.key&&this.context?e.html`
849
849
  <span class="ft-i18n">
850
850
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
851
851
  </span>