lit-intlayer 8.6.3 → 8.6.5

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.
Files changed (51) hide show
  1. package/dist/cjs/client/IntlayerBinding.cjs +1 -1
  2. package/dist/cjs/client/index.cjs +1 -1
  3. package/dist/cjs/client/installIntlayer.cjs +1 -1
  4. package/dist/cjs/client/useDictionary.cjs +1 -1
  5. package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
  6. package/dist/cjs/client/useIntlayer.cjs +1 -1
  7. package/dist/cjs/client/useLocale.cjs +1 -1
  8. package/dist/cjs/client/useLocaleStorage.cjs +1 -1
  9. package/dist/cjs/client/useRewriteURL.cjs +1 -1
  10. package/dist/cjs/editor/useEditor.cjs +1 -1
  11. package/dist/cjs/format/useCompact.cjs +1 -1
  12. package/dist/cjs/format/useCurrency.cjs +1 -1
  13. package/dist/cjs/format/useDate.cjs +1 -1
  14. package/dist/cjs/format/useIntl.cjs +1 -1
  15. package/dist/cjs/format/useList.cjs +1 -1
  16. package/dist/cjs/format/useNumber.cjs +1 -1
  17. package/dist/cjs/format/usePercentage.cjs +1 -1
  18. package/dist/cjs/format/useRelativeTime.cjs +1 -1
  19. package/dist/cjs/format/useUnit.cjs +1 -1
  20. package/dist/cjs/getDictionary.cjs +1 -1
  21. package/dist/cjs/getIntlayer.cjs +1 -1
  22. package/dist/cjs/html/HTMLRenderer.cjs +1 -1
  23. package/dist/cjs/index.cjs +1 -1
  24. package/dist/cjs/markdown/MarkdownRenderer.cjs +1 -1
  25. package/dist/cjs/markdown/compiler.cjs +1 -1
  26. package/dist/cjs/plugins.cjs +1 -1
  27. package/dist/esm/client/IntlayerBinding.mjs +1 -1
  28. package/dist/esm/client/index.mjs +1 -1
  29. package/dist/esm/client/installIntlayer.mjs +1 -1
  30. package/dist/esm/client/useDictionary.mjs +3 -3
  31. package/dist/esm/client/useDictionaryDynamic.mjs +3 -3
  32. package/dist/esm/client/useIntlayer.mjs +3 -3
  33. package/dist/esm/client/useLocale.mjs +3 -3
  34. package/dist/esm/client/useRewriteURL.mjs +5 -5
  35. package/dist/esm/editor/useEditor.mjs +1 -1
  36. package/dist/esm/format/useCompact.mjs +1 -1
  37. package/dist/esm/format/useCurrency.mjs +1 -1
  38. package/dist/esm/format/useDate.mjs +1 -1
  39. package/dist/esm/format/useIntl.mjs +1 -1
  40. package/dist/esm/format/useList.mjs +1 -1
  41. package/dist/esm/format/useNumber.mjs +1 -1
  42. package/dist/esm/format/usePercentage.mjs +1 -1
  43. package/dist/esm/format/useRelativeTime.mjs +1 -1
  44. package/dist/esm/format/useUnit.mjs +1 -1
  45. package/dist/esm/index.mjs +1 -1
  46. package/dist/esm/plugins.mjs +39 -39
  47. package/dist/{installIntlayer-CyAs4nGc.mjs → installIntlayer-CsvLqZuB.mjs} +16 -15
  48. package/dist/installIntlayer-DMIkS15Y.js +1 -0
  49. package/dist/plugins-D2ByX3NK.js +1 -0
  50. package/package.json +7 -7
  51. package/dist/installIntlayer-Dyc602Pv.js +0 -1
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);var t=class{host;unsubscribeLocale=null;onConnect;onDisconnect;constructor(e,t,n){this.host=e,this.onConnect=t,this.onDisconnect=n,this.host.addController(this)}hostConnected(){this.unsubscribeLocale=e.r().subscribe(()=>{this.host.requestUpdate()}),this.onConnect?.()}hostDisconnected(){this.unsubscribeLocale?.(),this.unsubscribeLocale=null,this.onDisconnect?.()}};exports.IntlayerBinding=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-DMIkS15Y.js`);var t=class{host;unsubscribeLocale=null;onConnect;onDisconnect;constructor(e,t,n){this.host=e,this.onConnect=t,this.onDisconnect=n,this.host.addController(this)}hostConnected(){this.unsubscribeLocale=e.r().subscribe(()=>{this.host.requestUpdate()}),this.onConnect?.()}hostDisconnected(){this.unsubscribeLocale?.(),this.unsubscribeLocale=null,this.onDisconnect?.()}};exports.IntlayerBinding=t;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`),t=require(`./IntlayerBinding.cjs`),n=require(`./useDictionary.cjs`),r=require(`./useDictionaryDynamic.cjs`),i=require(`./useIntlayer.cjs`),a=require(`./useLocaleStorage.cjs`),o=require(`./useLocale.cjs`),s=require(`./useRewriteURL.cjs`);exports.IntlayerBinding=t.IntlayerBinding,exports.IntlayerClient=e.t,exports.LocaleController=o.LocaleController,exports.createIntlayerClient=e.n,exports.getIntlayerClient=e.r,exports.installIntlayer=e.i,exports.localeCookie=a.localeCookie,exports.localeInStorage=a.localeInStorage,exports.setLocaleCookie=a.setLocaleCookie,exports.setLocaleInStorage=a.setLocaleInStorage,exports.useDictionary=n.useDictionary,exports.useDictionaryDynamic=r.useDictionaryDynamic,exports.useIntlayer=i.useIntlayer,exports.useLocale=o.useLocale,exports.useLocaleCookie=a.useLocaleCookie,exports.useLocaleStorage=a.useLocaleStorage,exports.useRewriteURL=s.useRewriteURL;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-DMIkS15Y.js`),t=require(`./IntlayerBinding.cjs`),n=require(`./useDictionary.cjs`),r=require(`./useDictionaryDynamic.cjs`),i=require(`./useIntlayer.cjs`),a=require(`./useLocaleStorage.cjs`),o=require(`./useLocale.cjs`),s=require(`./useRewriteURL.cjs`);exports.IntlayerBinding=t.IntlayerBinding,exports.IntlayerClient=e.t,exports.LocaleController=o.LocaleController,exports.createIntlayerClient=e.n,exports.getIntlayerClient=e.r,exports.installIntlayer=e.i,exports.localeCookie=a.localeCookie,exports.localeInStorage=a.localeInStorage,exports.setLocaleCookie=a.setLocaleCookie,exports.setLocaleInStorage=a.setLocaleInStorage,exports.useDictionary=n.useDictionary,exports.useDictionaryDynamic=r.useDictionaryDynamic,exports.useIntlayer=i.useIntlayer,exports.useLocale=o.useLocale,exports.useLocaleCookie=a.useLocaleCookie,exports.useLocaleStorage=a.useLocaleStorage,exports.useRewriteURL=s.useRewriteURL;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);exports.IntlayerClient=e.t,exports.createIntlayerClient=e.n,exports.getIntlayerClient=e.r,exports.installIntlayer=e.i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-DMIkS15Y.js`);exports.IntlayerClient=e.t,exports.createIntlayerClient=e.n,exports.getIntlayerClient=e.r,exports.installIntlayer=e.i;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`),t=require(`../getDictionary.cjs`),n=require(`./IntlayerBinding.cjs`);let r=require(`@intlayer/config/built`);r=e.o(r);var i=(i,a)=>{let o=e.r(),s=t.getDictionary(i,a??o.locale??r.default.internationalization.defaultLocale);o.subscribe(e=>{s=t.getDictionary(i,a??e)});let c,l=new Proxy({},{get(e,t){if(t===`observe`)return c;if(t===Symbol.toPrimitive)return()=>s[Symbol.toPrimitive]?.()??``;if(t===`toString`)return()=>String(s.toString?.()??``);if(t!==`then`)return s[t]}});return c=e=>(new n.IntlayerBinding(e),l),l};exports.useDictionary=i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`),t=require(`../getDictionary.cjs`),n=require(`./IntlayerBinding.cjs`);let r=require(`@intlayer/config/built`);var i=(i,a)=>{let o=e.r(),s=t.getDictionary(i,a??o.locale??r.internationalization.defaultLocale);o.subscribe(e=>{s=t.getDictionary(i,a??e)});let c,l=new Proxy({},{get(e,t){if(t===`observe`)return c;if(t===Symbol.toPrimitive)return()=>s[Symbol.toPrimitive]?.()??``;if(t===`toString`)return()=>String(s.toString?.()??``);if(t!==`then`)return s[t]}});return c=e=>(new n.IntlayerBinding(e),l),l};exports.useDictionary=i;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`),t=require(`../getDictionary.cjs`),n=require(`./IntlayerBinding.cjs`);let r=require(`@intlayer/config/built`);r=e.o(r);var i=new Map,a=async(e,t)=>{if(!t)return;if(i.has(e))return i.get(e);let n=await t();return i.set(e,n),n},o=new Proxy(()=>{},{get:(e,t)=>{if(t===Symbol.toPrimitive||t===`toString`)return()=>``;if(t!==`then`&&!(typeof t==`string`&&t.startsWith(`_$`))&&t!==`nodeType`&&t!==Symbol.iterator)return o},apply:()=>o,construct:()=>({})}),s=(i,s,c)=>{let l=e.r(),u=()=>c??l.locale??r.default.internationalization.defaultLocale,d,f=new Set,p=e=>{let n=`${String(s)}.${e}`,r=i[e];a(n,r).then(n=>{if(n){d=t.getDictionary(n,e);for(let e of f)e()}})};p(u()),l.subscribe(e=>{p(c??e)});let m,h=new Proxy({},{get(e,t){if(t===`observe`)return m;if(t===Symbol.toPrimitive)return()=>void 0;if(t===`toString`)return()=>``;if(t!==`then`)return d===void 0?o:d[t]}});return m=e=>{let t=()=>e.requestUpdate();return f.add(t),new n.IntlayerBinding(e,()=>{d!==void 0&&e.requestUpdate()},()=>{f.delete(t)}),h},h};exports.useDictionaryDynamic=s;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`),t=require(`../getDictionary.cjs`),n=require(`./IntlayerBinding.cjs`);let r=require(`@intlayer/config/built`);var i=new Map,a=async(e,t)=>{if(!t)return;if(i.has(e))return i.get(e);let n=await t();return i.set(e,n),n},o=new Proxy(()=>{},{get:(e,t)=>{if(t===Symbol.toPrimitive||t===`toString`)return()=>``;if(t!==`then`&&!(typeof t==`string`&&t.startsWith(`_$`))&&t!==`nodeType`&&t!==Symbol.iterator)return o},apply:()=>o,construct:()=>({})}),s=(i,s,c)=>{let l=e.r(),u=()=>c??l.locale??r.internationalization.defaultLocale,d,f=new Set,p=e=>{let n=`${String(s)}.${e}`,r=i[e];a(n,r).then(n=>{if(n){d=t.getDictionary(n,e);for(let e of f)e()}})};p(u()),l.subscribe(e=>{p(c??e)});let m,h=new Proxy({},{get(e,t){if(t===`observe`)return m;if(t===Symbol.toPrimitive)return()=>void 0;if(t===`toString`)return()=>``;if(t!==`then`)return d===void 0?o:d[t]}});return m=e=>{let t=()=>e.requestUpdate();return f.add(t),new n.IntlayerBinding(e,()=>{d!==void 0&&e.requestUpdate()},()=>{f.delete(t)}),h},h};exports.useDictionaryDynamic=s;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`),t=require(`../getIntlayer.cjs`),n=require(`./IntlayerBinding.cjs`);let r=require(`@intlayer/config/built`);r=e.o(r);var i=(i,a)=>{let o=e.r(),s,c=null,l=new Proxy({},{get(e,u){if(u===`observe`)return e=>(new n.IntlayerBinding(e),l);if(u===Symbol.toPrimitive||u===`toString`)return()=>``;if(u===`then`||typeof u==`symbol`||typeof u==`string`&&u.startsWith(`_$`))return;let d=a??o.locale??r.default.internationalization.defaultLocale;return(s!==d||c===null)&&(c=t.getIntlayer(i,d),s=d),c[u]}});return l};exports.useIntlayer=i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`),t=require(`../getIntlayer.cjs`),n=require(`./IntlayerBinding.cjs`);let r=require(`@intlayer/config/built`);var i=(i,a)=>{let o=e.r(),s,c=null,l=new Proxy({},{get(e,u){if(u===`observe`)return e=>(new n.IntlayerBinding(e),l);if(u===Symbol.toPrimitive||u===`toString`)return()=>``;if(u===`then`||typeof u==`symbol`||typeof u==`string`&&u.startsWith(`_$`))return;let d=a??o.locale??r.internationalization.defaultLocale;return(s!==d||c===null)&&(c=t.getIntlayer(i,d),s=d),c[u]}});return l};exports.useIntlayer=i;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`),t=require(`./useLocaleStorage.cjs`);let n=require(`@intlayer/config/built`);n=e.o(n);var r=class{host;_isCookieEnabled;_onLocaleChange;_unsubscribe=null;locale;defaultLocale;availableLocales;constructor(t,r={}){this.host=t,this._isCookieEnabled=r.isCookieEnabled,this._onLocaleChange=r.onLocaleChange;let i=e.r(),{defaultLocale:a,locales:o}=n.default?.internationalization??{};this.locale=i.locale,this.defaultLocale=a,this.availableLocales=o??[],t.addController(this)}setLocale=n=>{if(!this.availableLocales.map(String).includes(n)){console.error(`Locale "${n}" is not available.`);return}let r=e.r();r.setLocale(n),t.setLocaleInStorage(n,this._isCookieEnabled??r.isCookieEnabled??!0),this._onLocaleChange?.(n)};hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.locale=e,this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},i=(e,t={})=>new r(e,t);exports.LocaleController=r,exports.useLocale=i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`),t=require(`./useLocaleStorage.cjs`);let n=require(`@intlayer/config/built`);var r=class{host;_isCookieEnabled;_onLocaleChange;_unsubscribe=null;locale;defaultLocale;availableLocales;constructor(t,r={}){this.host=t,this._isCookieEnabled=r.isCookieEnabled,this._onLocaleChange=r.onLocaleChange;let i=e.r(),{defaultLocale:a,locales:o}=n.internationalization??{};this.locale=i.locale,this.defaultLocale=a,this.availableLocales=o??[],t.addController(this)}setLocale=n=>{if(!this.availableLocales.map(String).includes(n)){console.error(`Locale "${n}" is not available.`);return}let r=e.r();r.setLocale(n),t.setLocaleInStorage(n,this._isCookieEnabled??r.isCookieEnabled??!0),this._onLocaleChange?.(n)};hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.locale=e,this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},i=(e,t={})=>new r(e,t);exports.LocaleController=r,exports.useLocale=i;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../installIntlayer-Dyc602Pv.js`);let e=require(`@intlayer/core/localization`),t=require(`@intlayer/core/utils`);var n=(0,t.getLocaleFromStorageClient)(e.localeStorageOptions),r=n,i=(n,r)=>(0,t.setLocaleInStorageClient)(n,{...e.localeStorageOptions,isCookieEnabled:r}),a=i,o=n=>{let r=(0,t.LocaleStorageClient)({...e.localeStorageOptions,isCookieEnabled:n});return{localeStorage:r.getLocale(),setLocaleStorage:r.setLocale}},s=e=>{let t=o(e);return{localeCookie:t.localeStorage,setLocaleCookie:t.setLocaleStorage}};exports.localeCookie=r,exports.localeInStorage=n,exports.setLocaleCookie=a,exports.setLocaleInStorage=i,exports.useLocaleCookie=s,exports.useLocaleStorage=o;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);let e=require(`@intlayer/core/localization`),t=require(`@intlayer/core/utils`);var n=(0,t.getLocaleFromStorageClient)(e.localeStorageOptions),r=n,i=(n,r)=>(0,t.setLocaleInStorageClient)(n,{...e.localeStorageOptions,isCookieEnabled:r}),a=i,o=n=>{let r=(0,t.LocaleStorageClient)({...e.localeStorageOptions,isCookieEnabled:n});return{localeStorage:r.getLocale(),setLocaleStorage:r.setLocale}},s=e=>{let t=o(e);return{localeCookie:t.localeStorage,setLocaleCookie:t.setLocaleStorage}};exports.localeCookie=r,exports.localeInStorage=n,exports.setLocaleCookie=a,exports.setLocaleInStorage=i,exports.useLocaleCookie=s,exports.useLocaleStorage=o;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/config/built`);t=e.o(t);let n=require(`@intlayer/core/localization`);var r=class{host;_unsubscribe=null;constructor(e){this.host=e,e.addController(this)}_rewrite(e){let r=t.default?.routing?.rewrite;if(typeof window>`u`||!r)return;let i=window.location.pathname,a=(0,n.getRewritePath)(i,e,r);a&&a!==i&&window.history.replaceState(window.history.state,``,a+window.location.search+window.location.hash)}hostConnected(){let t=e.r();this._rewrite(t.locale),this._unsubscribe=t.subscribe(e=>{this._rewrite(e)})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},i=e=>{new r(e)};exports.useRewriteURL=i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/config/built`),n=require(`@intlayer/core/localization`);var r=class{_host;_unsubscribe=null;constructor(e){this._host=e,e.addController(this)}_rewrite(e){let r=t.routing?.rewrite;if(typeof window>`u`||!r)return;let i=window.location.pathname,a=(0,n.getRewritePath)(i,e,r);a&&a!==i&&window.history.replaceState(window.history.state,``,a+window.location.search+window.location.hash)}hostConnected(){let t=e.r();this._rewrite(t.locale),this._unsubscribe=t.subscribe(e=>{this._rewrite(e)})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},i=e=>{new r(e)};exports.useRewriteURL=i;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);exports.useEditor=e.a;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-DMIkS15Y.js`);exports.useEditor=e.a;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.compact)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.compact)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useCompact=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.compact)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.compact)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useCompact=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.currency)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.currency)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useCurrency=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.currency)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.currency)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useCurrency=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>{let n=typeof e[1]==`string`?{...t.presets[e[1]],locale:r.locale}:{...e[1],locale:e[1]?.locale??r.locale};return(0,t.date)(e[0],n)},n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>{let r=typeof n[1]==`string`?{...t.presets[n[1]],locale:e}:{...n[1],locale:n[1]?.locale??e};return(0,t.date)(n[0],r)},this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useDate=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>{let n=typeof e[1]==`string`?{...t.presets[e[1]],locale:r.locale}:{...e[1],locale:e[1]?.locale??r.locale};return(0,t.date)(e[0],n)},n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>{let r=typeof n[1]==`string`?{...t.presets[n[1]],locale:e}:{...n[1],locale:n[1]?.locale??e};return(0,t.date)(n[0],r)},this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useDate=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/core/utils`);var n=class{host;_overrideLocale;_unsubscribe=null;value;constructor(n,r){this.host=n,this._overrideLocale=r;let i=e.r();this.value=(0,t.bindIntl)(this._overrideLocale??i.locale),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(0,t.bindIntl)(this._overrideLocale??e),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=(e,t)=>new n(e,t);exports.useIntl=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/core/utils`);var n=class{host;_overrideLocale;_unsubscribe=null;value;constructor(n,r){this.host=n,this._overrideLocale=r;let i=e.r();this.value=(0,t.bindIntl)(this._overrideLocale??i.locale),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(0,t.bindIntl)(this._overrideLocale??e),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=(e,t)=>new n(e,t);exports.useIntl=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.list)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.list)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useList=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.list)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.list)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useList=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.number)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.number)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useNumber=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.number)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.number)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useNumber=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.percentage)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.percentage)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.usePercentage=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.percentage)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.percentage)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.usePercentage=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.relativeTime)(e[0],e[1],{...e[2],locale:e[2]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.relativeTime)(n[0],n[1],{...n[2],locale:n[2]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useRelativeTime=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.relativeTime)(e[0],e[1],{...e[2],locale:e[2]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.relativeTime)(n[0],n[1],{...n[2],locale:n[2]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useRelativeTime=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../installIntlayer-Dyc602Pv.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.units)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.units)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useUnit=r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`../../installIntlayer-DMIkS15Y.js`);let t=require(`@intlayer/core/formatters`);var n=class{host;_unsubscribe=null;value;constructor(n){this.host=n;let r=e.r();this.value=(...e)=>(0,t.units)(e[0],{...e[1],locale:e[1]?.locale??r.locale}),n.addController(this)}hostConnected(){this._unsubscribe=e.r().subscribe(e=>{this.value=(...n)=>(0,t.units)(n[0],{...n[1],locale:n[1]?.locale??e}),this.host.requestUpdate()})}hostDisconnected(){this._unsubscribe?.(),this._unsubscribe=null}},r=e=>new n(e);exports.useUnit=r;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../installIntlayer-Dyc602Pv.js`);const e=require(`./plugins.cjs`);let t=require(`@intlayer/core/interpreter`);var n=(n,r)=>(0,t.getDictionary)(n,r,e.getPlugins(r));exports.getDictionary=n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../plugins-D2ByX3NK.js`);let t=require(`@intlayer/core/interpreter`);var n=(n,r)=>(0,t.getDictionary)(n,r,e.t(r));exports.getDictionary=n;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../installIntlayer-Dyc602Pv.js`);const e=require(`./plugins.cjs`);let t=require(`@intlayer/core/interpreter`);var n=(n,r)=>(0,t.getIntlayer)(n,r,e.getPlugins(r));exports.getIntlayer=n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../plugins-D2ByX3NK.js`);let t=require(`@intlayer/core/interpreter`);var n=(n,r)=>(0,t.getIntlayer)(n,r,e.t(r));exports.getIntlayer=n;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../installIntlayer-Dyc602Pv.js`);const e=require(`./installIntlayerHTML.cjs`);let t=require(`lit/directives/unsafe-html.js`),n=require(`lit`);var r=(e,t={})=>e,i=({components:t}={})=>{let n=e.useHTML();return e=>n.renderHTML(e,{components:t})},a=class extends n.LitElement{static properties={content:{type:String},components:{attribute:!1}};content=``;components;createRenderRoot(){return this}render(){return this.content?n.html`${(0,t.unsafeHTML)(i({components:this.components})(this.content))}`:n.nothing}};customElements.get(`intlayer-html-renderer`)||customElements.define(`intlayer-html-renderer`,a),exports.HTMLRenderer=a,exports.renderHTML=r,exports.useHTMLRenderer=i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`./installIntlayerHTML.cjs`);let t=require(`lit/directives/unsafe-html.js`),n=require(`lit`);var r=(e,t={})=>e,i=({components:t}={})=>{let n=e.useHTML();return e=>n.renderHTML(e,{components:t})},a=class extends n.LitElement{static properties={content:{type:String},components:{attribute:!1}};content=``;components;createRenderRoot(){return this}render(){return this.content?n.html`${(0,t.unsafeHTML)(i({components:this.components})(this.content))}`:n.nothing}};customElements.get(`intlayer-html-renderer`)||customElements.define(`intlayer-html-renderer`,a),exports.HTMLRenderer=a,exports.renderHTML=r,exports.useHTMLRenderer=i;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../installIntlayer-Dyc602Pv.js`),t=require(`./plugins.cjs`),n=require(`./getDictionary.cjs`),r=require(`./getIntlayer.cjs`),i=require(`./client/IntlayerBinding.cjs`),a=require(`./client/useDictionary.cjs`),o=require(`./client/useDictionaryDynamic.cjs`),s=require(`./client/useIntlayer.cjs`),c=require(`./client/useLocaleStorage.cjs`),l=require(`./client/useLocale.cjs`),u=require(`./client/useRewriteURL.cjs`);require(`./client/index.cjs`),exports.IntlayerBinding=i.IntlayerBinding,exports.IntlayerClient=e.t,exports.LocaleController=l.LocaleController,exports.createIntlayerClient=e.n,exports.getDictionary=n.getDictionary,exports.getIntlayer=r.getIntlayer,exports.getIntlayerClient=e.r,exports.getPlugins=t.getPlugins,exports.htmlPlugin=t.htmlPlugin,exports.insertionPlugin=t.insertionPlugin,exports.installIntlayer=e.i,exports.intlayerNodePlugins=t.intlayerNodePlugins,exports.localeCookie=c.localeCookie,exports.localeInStorage=c.localeInStorage,exports.markdownPlugin=t.markdownPlugin,exports.markdownStringPlugin=t.markdownStringPlugin,exports.setLocaleCookie=c.setLocaleCookie,exports.setLocaleInStorage=c.setLocaleInStorage,exports.useDictionary=a.useDictionary,exports.useDictionaryDynamic=o.useDictionaryDynamic,exports.useEditor=e.a,exports.useIntlayer=s.useIntlayer,exports.useLocale=l.useLocale,exports.useLocaleCookie=c.useLocaleCookie,exports.useLocaleStorage=c.useLocaleStorage,exports.useRewriteURL=u.useRewriteURL;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../plugins-D2ByX3NK.js`),t=require(`../installIntlayer-DMIkS15Y.js`),n=require(`./getDictionary.cjs`),r=require(`./getIntlayer.cjs`),i=require(`./client/IntlayerBinding.cjs`),a=require(`./client/useDictionary.cjs`),o=require(`./client/useDictionaryDynamic.cjs`),s=require(`./client/useIntlayer.cjs`),c=require(`./client/useLocaleStorage.cjs`),l=require(`./client/useLocale.cjs`),u=require(`./client/useRewriteURL.cjs`);require(`./client/index.cjs`),exports.IntlayerBinding=i.IntlayerBinding,exports.IntlayerClient=t.t,exports.LocaleController=l.LocaleController,exports.createIntlayerClient=t.n,exports.getDictionary=n.getDictionary,exports.getIntlayer=r.getIntlayer,exports.getIntlayerClient=t.r,exports.getPlugins=e.t,exports.htmlPlugin=e.n,exports.insertionPlugin=e.r,exports.installIntlayer=t.i,exports.intlayerNodePlugins=e.i,exports.localeCookie=c.localeCookie,exports.localeInStorage=c.localeInStorage,exports.markdownPlugin=e.a,exports.markdownStringPlugin=e.o,exports.setLocaleCookie=c.setLocaleCookie,exports.setLocaleInStorage=c.setLocaleInStorage,exports.useDictionary=a.useDictionary,exports.useDictionaryDynamic=o.useDictionaryDynamic,exports.useEditor=t.a,exports.useIntlayer=s.useIntlayer,exports.useLocale=l.useLocale,exports.useLocaleCookie=c.useLocaleCookie,exports.useLocaleStorage=c.useLocaleStorage,exports.useRewriteURL=u.useRewriteURL;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../installIntlayer-Dyc602Pv.js`);const e=require(`./compiler.cjs`),t=require(`./installIntlayerMarkdown.cjs`);let n=require(`lit/directives/unsafe-html.js`),r=require(`lit`);var i=(t,{forceBlock:n,forceInline:r,preserveFrontmatter:i,tagfilter:a}={})=>e.compileMarkdown(t,{forceBlock:n,forceInline:r,preserveFrontmatter:i,tagfilter:a}),a=(e={})=>{let n=t.useMarkdown();return t=>n.renderMarkdown(t,{forceBlock:e.forceBlock,forceInline:e.forceInline,preserveFrontmatter:e.preserveFrontmatter,tagfilter:e.tagfilter},e.components,e.wrapper)},o=class extends r.LitElement{static properties={content:{type:String},forceBlock:{type:Boolean},forceInline:{type:Boolean},preserveFrontmatter:{type:Boolean},tagfilter:{type:Boolean},renderMarkdown:{attribute:!1}};content=``;forceBlock;forceInline;preserveFrontmatter;tagfilter;renderMarkdownFn;createRenderRoot(){return this}render(){if(!this.content)return r.nothing;let e;return e=this.renderMarkdownFn?this.renderMarkdownFn(this.content,{forceBlock:this.forceBlock,forceInline:this.forceInline,preserveFrontmatter:this.preserveFrontmatter,tagfilter:this.tagfilter},void 0,void 0):a({forceBlock:this.forceBlock,forceInline:this.forceInline,preserveFrontmatter:this.preserveFrontmatter,tagfilter:this.tagfilter})(this.content),r.html`${(0,n.unsafeHTML)(e)}`}};customElements.get(`intlayer-markdown-renderer`)||customElements.define(`intlayer-markdown-renderer`,o),exports.MarkdownRenderer=o,exports.renderMarkdown=i,exports.useMarkdownRenderer=a;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`./compiler.cjs`),t=require(`./installIntlayerMarkdown.cjs`);let n=require(`lit/directives/unsafe-html.js`),r=require(`lit`);var i=(t,{forceBlock:n,forceInline:r,preserveFrontmatter:i,tagfilter:a}={})=>e.compileMarkdown(t,{forceBlock:n,forceInline:r,preserveFrontmatter:i,tagfilter:a}),a=(e={})=>{let n=t.useMarkdown();return t=>n.renderMarkdown(t,{forceBlock:e.forceBlock,forceInline:e.forceInline,preserveFrontmatter:e.preserveFrontmatter,tagfilter:e.tagfilter},e.components,e.wrapper)},o=class extends r.LitElement{static properties={content:{type:String},forceBlock:{type:Boolean},forceInline:{type:Boolean},preserveFrontmatter:{type:Boolean},tagfilter:{type:Boolean},renderMarkdown:{attribute:!1}};content=``;forceBlock;forceInline;preserveFrontmatter;tagfilter;renderMarkdownFn;createRenderRoot(){return this}render(){if(!this.content)return r.nothing;let e;return e=this.renderMarkdownFn?this.renderMarkdownFn(this.content,{forceBlock:this.forceBlock,forceInline:this.forceInline,preserveFrontmatter:this.preserveFrontmatter,tagfilter:this.tagfilter},void 0,void 0):a({forceBlock:this.forceBlock,forceInline:this.forceInline,preserveFrontmatter:this.preserveFrontmatter,tagfilter:this.tagfilter})(this.content),r.html`${(0,n.unsafeHTML)(e)}`}};customElements.get(`intlayer-markdown-renderer`)||customElements.define(`intlayer-markdown-renderer`,o),exports.MarkdownRenderer=o,exports.renderMarkdown=i,exports.useMarkdownRenderer=a;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../installIntlayer-Dyc602Pv.js`);const e=require(`./runtime.cjs`);let t=require(`@intlayer/core/markdown`);var n=(n=``,r={})=>(0,t.compileWithOptions)(n,e.default,r),r=n,i=n;exports.RuleType=t.RuleType,exports.compile=i,exports.compileMarkdown=n,exports.compiler=r,exports.sanitizer=t.sanitizer,exports.slugify=t.slugify;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../../plugins-D2ByX3NK.js`);const e=require(`./runtime.cjs`);let t=require(`@intlayer/core/markdown`);var n=(n=``,r={})=>(0,t.compileWithOptions)(n,e.default,r),r=n,i=n;exports.RuleType=t.RuleType,exports.compile=i,exports.compileMarkdown=n,exports.compiler=r,exports.sanitizer=t.sanitizer,exports.slugify=t.slugify;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../installIntlayer-Dyc602Pv.js`),t=require(`./markdown/runtime.cjs`),n=require(`./renderIntlayerNode.cjs`);let r=require(`@intlayer/core/interpreter`),i=require(`@intlayer/config/built`);i=e.o(i);let a=require(`@intlayer/core/markdown`),o=require(`@intlayer/types/nodeType`);o=e.o(o);let s=require(`lit/directives/unsafe-html.js`),c=require(`lit/static-html.js`);var l=process.env.INTLAYER_NODE_TYPE_INTLAYER_NODE===`false`,u=process.env.INTLAYER_NODE_TYPE_MARKDOWN===`false`,d=process.env.INTLAYER_NODE_TYPE_HTML===`false`,f=process.env.INTLAYER_NODE_TYPE_INSERTION===`false`,p=process.env.INTLAYER_EDITOR_ENABLED===`false`,m=(e=``,n={})=>(0,a.compileWithOptions)(e,t.default,n),h=(e,t,n={})=>{let r=typeof e==`string`?(0,s.unsafeHTML)(e):e;return new Proxy(r,{get(e,r,i){if(r===`value`||r===`raw`)return t;if(r===`toString`||r===Symbol.toPrimitive)return()=>t;if(r!==Symbol.iterator)return r===`__update`?()=>{}:r===`isJSX`?!0:r in n?n[r]:Reflect.get(e,r,i)}})},g=e=>e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`),_=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),v=l?r.fallbackPlugin:{id:`intlayer-node-plugin`,canHandle:e=>typeof e==`bigint`||typeof e==`string`||typeof e==`number`,transform:(e,{children:t,keyPath:r,dictionaryKey:a,...o})=>{if(!p&&i.default.editor.enabled){let e=String(t??``);return h(`<intlayer-content-selector-wrapper key-path="${g(JSON.stringify(r??[]))}" dictionary-key="${g(String(a??``))}">${_(e)}</intlayer-content-selector-wrapper>`,e)}return n.renderIntlayerNode({...o,value:t,children:t})}},y=f?r.fallbackPlugin:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===o.INSERTION,transform:(e,t,n)=>{let i=[...t.keyPath,{type:o.INSERTION}],a=e[o.INSERTION],s={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`,transform:(e,n,i)=>{let a=i(e,{...n,children:e,plugins:(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)});return e=>{let o=(0,r.splitInsertionTemplate)(a,e),s=o.isSimple?o.parts:o.parts.join(``);return i(s,{...n,plugins:t.plugins,children:s})}}},c=n(a,{...t,children:a,keyPath:i,plugins:[s,...t.plugins??[]]});return typeof a==`object`&&a&&`nodeType`in a&&[o.ENUMERATION,o.CONDITION].includes(a.nodeType)?e=>t=>{let n=c(t);return typeof n==`function`?n(e):n}:c}},b=u?r.fallbackPlugin:{id:`markdown-string-plugin`,canHandle:e=>typeof e==`string`,transform:(e,t,r)=>{let{plugins:o,...s}=t,{keyPath:c,dictionaryKey:l}=s,u=r((0,a.getMarkdownMetadata)(e)??{},{plugins:[{id:`markdown-metadata-plugin`,canHandle:e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`||!e,transform:(t,r)=>n.renderIntlayerNode({...r,value:t,children:e})}],dictionaryKey:s.dictionaryKey,keyPath:[]}),d=m(e),f=t=>{let n=m(e,{components:t});return!p&&i.default.editor.enabled?h(`<intlayer-content-selector-wrapper key-path="${g(JSON.stringify(c??[]))}" dictionary-key="${g(String(l??``))}">${n}</intlayer-content-selector-wrapper>`,e):h(n,e)};return!p&&i.default.editor.enabled?h(`<intlayer-content-selector-wrapper key-path="${g(JSON.stringify(c??[]))}" dictionary-key="${g(String(l??``))}">${d}</intlayer-content-selector-wrapper>`,e,{metadata:u,use:f}):h(d,e,{metadata:u,use:f})}},x=u?r.fallbackPlugin:{id:`markdown-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===o.MARKDOWN,transform:(e,t,n)=>{let r=[...t.keyPath,{type:o.MARKDOWN}],i=e[o.MARKDOWN];return n(i,{...t,children:i,keyPath:r,plugins:[b,...t.plugins??[]]})}},S=d?r.fallbackPlugin:{id:`html-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===o.HTML,transform:(e,t)=>{let n=e[o.HTML],{keyPath:a,dictionaryKey:s}=t,l=(e={})=>{let t=Object.fromEntries(Object.entries(e).filter(([,e])=>e).map(([e,t])=>[e,e=>t(e)])),o=(0,r.getHTML)(n,new Proxy(t,{get(e,t){if(typeof t==`string`&&t in e)return e[t];if(typeof t==`string`&&/^[a-z][a-z0-9]*$/.test(t))return e=>c.html`<${(0,c.unsafeStatic)(t)} ...${e}>${e.children}</${(0,c.unsafeStatic)(t)}>`}}));return!p&&i.default.editor.enabled?h(`<intlayer-content-selector-wrapper key-path="${g(JSON.stringify(a??[]))}" dictionary-key="${g(String(s??``))}">${o}</intlayer-content-selector-wrapper>`,n):h(o,n)};return!p&&i.default.editor.enabled?h(`<intlayer-content-selector-wrapper key-path="${g(JSON.stringify(a??[]))}" dictionary-key="${g(String(s??``))}">${n}</intlayer-content-selector-wrapper>`,n,{use:l}):h(n,n,{use:l})}},C=(t,n=!0)=>{let a=t??(typeof window<`u`&&e.r()?.locale)??i.default.internationalization.defaultLocale;return[(0,r.translationPlugin)(a,n?i.default.internationalization.defaultLocale:void 0),r.enumerationPlugin,r.conditionPlugin,(0,r.nestedPlugin)(a),r.filePlugin,r.genderPlugin,v,y,x,S].filter(Boolean)};exports.getPlugins=C,exports.htmlPlugin=S,exports.insertionPlugin=y,exports.intlayerNodePlugins=v,exports.markdownPlugin=x,exports.markdownStringPlugin=b;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../plugins-D2ByX3NK.js`);exports.getPlugins=e.t,exports.htmlPlugin=e.n,exports.insertionPlugin=e.r,exports.intlayerNodePlugins=e.i,exports.markdownPlugin=e.a,exports.markdownStringPlugin=e.o;
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  //#region src/client/IntlayerBinding.ts
3
3
  var t = class {
4
4
  host;
@@ -1,4 +1,4 @@
1
- import { i as e, n as t, r as n, t as r } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { i as e, n as t, r as n, t as r } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { IntlayerBinding as i } from "./IntlayerBinding.mjs";
3
3
  import { useDictionary as a } from "./useDictionary.mjs";
4
4
  import { useDictionaryDynamic as o } from "./useDictionaryDynamic.mjs";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { i as e, n as t, r as n, t as r } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  export { r as IntlayerClient, t as createIntlayerClient, n as getIntlayerClient, e as installIntlayer };
@@ -1,10 +1,10 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { getDictionary as t } from "../getDictionary.mjs";
3
3
  import { IntlayerBinding as n } from "./IntlayerBinding.mjs";
4
- import r from "@intlayer/config/built";
4
+ import { internationalization as r } from "@intlayer/config/built";
5
5
  //#region src/client/useDictionary.ts
6
6
  var i = (i, a) => {
7
- let o = e(), s = t(i, a ?? o.locale ?? r.internationalization.defaultLocale);
7
+ let o = e(), s = t(i, a ?? o.locale ?? r.defaultLocale);
8
8
  o.subscribe((e) => {
9
9
  s = t(i, a ?? e);
10
10
  });
@@ -1,7 +1,7 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { getDictionary as t } from "../getDictionary.mjs";
3
3
  import { IntlayerBinding as n } from "./IntlayerBinding.mjs";
4
- import r from "@intlayer/config/built";
4
+ import { internationalization as r } from "@intlayer/config/built";
5
5
  //#region src/client/useDictionaryDynamic.ts
6
6
  var i = /* @__PURE__ */ new Map(), a = async (e, t) => {
7
7
  if (!t) return;
@@ -16,7 +16,7 @@ var i = /* @__PURE__ */ new Map(), a = async (e, t) => {
16
16
  apply: () => o,
17
17
  construct: () => ({})
18
18
  }), s = (i, s, c) => {
19
- let l = e(), u = () => c ?? l.locale ?? r.internationalization.defaultLocale, d, f = /* @__PURE__ */ new Set(), p = (e) => {
19
+ let l = e(), u = () => c ?? l.locale ?? r.defaultLocale, d, f = /* @__PURE__ */ new Set(), p = (e) => {
20
20
  let n = `${String(s)}.${e}`, r = i[e];
21
21
  a(n, r).then((n) => {
22
22
  if (n) {
@@ -1,14 +1,14 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { getIntlayer as t } from "../getIntlayer.mjs";
3
3
  import { IntlayerBinding as n } from "./IntlayerBinding.mjs";
4
- import r from "@intlayer/config/built";
4
+ import { internationalization as r } from "@intlayer/config/built";
5
5
  //#region src/client/useIntlayer.ts
6
6
  var i = (i, a) => {
7
7
  let o = e(), s, c = null, l = new Proxy({}, { get(e, u) {
8
8
  if (u === "observe") return (e) => (new n(e), l);
9
9
  if (u === Symbol.toPrimitive || u === "toString") return () => "";
10
10
  if (u === "then" || typeof u == "symbol" || typeof u == "string" && u.startsWith("_$")) return;
11
- let d = a ?? o.locale ?? r.internationalization.defaultLocale;
11
+ let d = a ?? o.locale ?? r.defaultLocale;
12
12
  return (s !== d || c === null) && (c = t(i, d), s = d), c[u];
13
13
  } });
14
14
  return l;
@@ -1,6 +1,6 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { setLocaleInStorage as t } from "./useLocaleStorage.mjs";
3
- import n from "@intlayer/config/built";
3
+ import { internationalization as n } from "@intlayer/config/built";
4
4
  //#region src/client/useLocale.ts
5
5
  var r = class {
6
6
  host;
@@ -12,7 +12,7 @@ var r = class {
12
12
  availableLocales;
13
13
  constructor(t, r = {}) {
14
14
  this.host = t, this._isCookieEnabled = r.isCookieEnabled, this._onLocaleChange = r.onLocaleChange;
15
- let i = e(), { defaultLocale: a, locales: o } = n?.internationalization ?? {};
15
+ let i = e(), { defaultLocale: a, locales: o } = n ?? {};
16
16
  this.locale = i.locale, this.defaultLocale = a, this.availableLocales = o ?? [], t.addController(this);
17
17
  }
18
18
  setLocale = (n) => {
@@ -1,15 +1,15 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
2
- import t from "@intlayer/config/built";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
+ import { routing as t } from "@intlayer/config/built";
3
3
  import { getRewritePath as n } from "@intlayer/core/localization";
4
4
  //#region src/client/useRewriteURL.ts
5
5
  var r = class {
6
- host;
6
+ _host;
7
7
  _unsubscribe = null;
8
8
  constructor(e) {
9
- this.host = e, e.addController(this);
9
+ this._host = e, e.addController(this);
10
10
  }
11
11
  _rewrite(e) {
12
- let r = t?.routing?.rewrite;
12
+ let r = t?.rewrite;
13
13
  if (typeof window > "u" || !r) return;
14
14
  let i = window.location.pathname, a = n(i, e, r);
15
15
  a && a !== i && window.history.replaceState(window.history.state, "", a + window.location.search + window.location.hash);
@@ -1,2 +1,2 @@
1
- import { a as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { a as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  export { e as useEditor };
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { compact as t } from "@intlayer/core/formatters";
3
3
  //#region src/format/useCompact.ts
4
4
  var n = class {
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { currency as t } from "@intlayer/core/formatters";
3
3
  //#region src/format/useCurrency.ts
4
4
  var n = class {
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { date as t, presets as n } from "@intlayer/core/formatters";
3
3
  //#region src/format/useDate.ts
4
4
  var r = class {
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { bindIntl as t } from "@intlayer/core/utils";
3
3
  //#region src/format/useIntl.ts
4
4
  var n = class {
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { list as t } from "@intlayer/core/formatters";
3
3
  //#region src/format/useList.ts
4
4
  var n = class {
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { number as t } from "@intlayer/core/formatters";
3
3
  //#region src/format/useNumber.ts
4
4
  var n = class {
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { percentage as t } from "@intlayer/core/formatters";
3
3
  //#region src/format/usePercentage.ts
4
4
  var n = class {
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { relativeTime as t } from "@intlayer/core/formatters";
3
3
  //#region src/format/useRelativeTime.ts
4
4
  var n = class {
@@ -1,4 +1,4 @@
1
- import { r as e } from "../../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../../installIntlayer-CsvLqZuB.mjs";
2
2
  import { units as t } from "@intlayer/core/formatters";
3
3
  //#region src/format/useUnit.ts
4
4
  var n = class {
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, n, r, t as i } from "../installIntlayer-CyAs4nGc.mjs";
1
+ import { a as e, i as t, n, r, t as i } from "../installIntlayer-CsvLqZuB.mjs";
2
2
  import { getPlugins as a, htmlPlugin as o, insertionPlugin as s, intlayerNodePlugins as c, markdownPlugin as l, markdownStringPlugin as u } from "./plugins.mjs";
3
3
  import { getDictionary as d } from "./getDictionary.mjs";
4
4
  import { getIntlayer as f } from "./getIntlayer.mjs";
@@ -1,27 +1,27 @@
1
- import { r as e } from "../installIntlayer-CyAs4nGc.mjs";
1
+ import { r as e } from "../installIntlayer-CsvLqZuB.mjs";
2
2
  import t from "./markdown/runtime.mjs";
3
3
  import { renderIntlayerNode as n } from "./renderIntlayerNode.mjs";
4
4
  import { conditionPlugin as r, enumerationPlugin as i, fallbackPlugin as a, filePlugin as o, genderPlugin as s, getHTML as c, nestedPlugin as l, splitInsertionTemplate as u, translationPlugin as d } from "@intlayer/core/interpreter";
5
- import f from "@intlayer/config/built";
6
- import { compileWithOptions as p, getMarkdownMetadata as m } from "@intlayer/core/markdown";
7
- import * as h from "@intlayer/types/nodeType";
8
- import { unsafeHTML as g } from "lit/directives/unsafe-html.js";
9
- import { html as _, unsafeStatic as v } from "lit/static-html.js";
5
+ import { editor as f, internationalization as p } from "@intlayer/config/built";
6
+ import { compileWithOptions as m, getMarkdownMetadata as h } from "@intlayer/core/markdown";
7
+ import * as g from "@intlayer/types/nodeType";
8
+ import { unsafeHTML as _ } from "lit/directives/unsafe-html.js";
9
+ import { html as v, unsafeStatic as y } from "lit/static-html.js";
10
10
  //#region src/plugins.ts
11
- var y = process.env.INTLAYER_NODE_TYPE_INTLAYER_NODE === "false", b = process.env.INTLAYER_NODE_TYPE_MARKDOWN === "false", x = process.env.INTLAYER_NODE_TYPE_HTML === "false", S = process.env.INTLAYER_NODE_TYPE_INSERTION === "false", C = process.env.INTLAYER_EDITOR_ENABLED === "false", w = (e = "", n = {}) => p(e, t, n), T = (e, t, n = {}) => {
12
- let r = typeof e == "string" ? g(e) : e;
11
+ var b = process.env.INTLAYER_NODE_TYPE_INTLAYER_NODE === "false", x = process.env.INTLAYER_NODE_TYPE_MARKDOWN === "false", S = process.env.INTLAYER_NODE_TYPE_HTML === "false", C = process.env.INTLAYER_NODE_TYPE_INSERTION === "false", w = process.env.INTLAYER_EDITOR_ENABLED === "false", T = (e = "", n = {}) => m(e, t, n), E = (e, t, n = {}) => {
12
+ let r = typeof e == "string" ? _(e) : e;
13
13
  return new Proxy(r, { get(e, r, i) {
14
14
  if (r === "value" || r === "raw") return t;
15
15
  if (r === "toString" || r === Symbol.toPrimitive) return () => t;
16
16
  if (r !== Symbol.iterator) return r === "__update" ? () => {} : r === "isJSX" ? !0 : r in n ? n[r] : Reflect.get(e, r, i);
17
17
  } });
18
- }, E = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;"), D = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), O = y ? a : {
18
+ }, D = (e) => e.replace(/&/g, "&amp;").replace(/"/g, "&quot;"), O = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), k = b ? a : {
19
19
  id: "intlayer-node-plugin",
20
20
  canHandle: (e) => typeof e == "bigint" || typeof e == "string" || typeof e == "number",
21
21
  transform: (e, { children: t, keyPath: r, dictionaryKey: i, ...a }) => {
22
- if (!C && f.editor.enabled) {
22
+ if (!w && f.enabled) {
23
23
  let e = String(t ?? "");
24
- return T(`<intlayer-content-selector-wrapper key-path="${E(JSON.stringify(r ?? []))}" dictionary-key="${E(String(i ?? ""))}">${D(e)}</intlayer-content-selector-wrapper>`, e);
24
+ return E(`<intlayer-content-selector-wrapper key-path="${D(JSON.stringify(r ?? []))}" dictionary-key="${D(String(i ?? ""))}">${O(e)}</intlayer-content-selector-wrapper>`, e);
25
25
  }
26
26
  return n({
27
27
  ...a,
@@ -29,11 +29,11 @@ var y = process.env.INTLAYER_NODE_TYPE_INTLAYER_NODE === "false", b = process.en
29
29
  children: t
30
30
  });
31
31
  }
32
- }, k = S ? a : {
32
+ }, A = C ? a : {
33
33
  id: "insertion-plugin",
34
- canHandle: (e) => typeof e == "object" && e?.nodeType === h.INSERTION,
34
+ canHandle: (e) => typeof e == "object" && e?.nodeType === g.INSERTION,
35
35
  transform: (e, t, n) => {
36
- let r = [...t.keyPath, { type: h.INSERTION }], i = e[h.INSERTION], a = {
36
+ let r = [...t.keyPath, { type: g.INSERTION }], i = e[g.INSERTION], a = {
37
37
  id: "insertion-string-plugin",
38
38
  canHandle: (e) => typeof e == "string",
39
39
  transform: (e, n, r) => {
@@ -57,16 +57,16 @@ var y = process.env.INTLAYER_NODE_TYPE_INTLAYER_NODE === "false", b = process.en
57
57
  keyPath: r,
58
58
  plugins: [a, ...t.plugins ?? []]
59
59
  });
60
- return typeof i == "object" && i && "nodeType" in i && [h.ENUMERATION, h.CONDITION].includes(i.nodeType) ? (e) => (t) => {
60
+ return typeof i == "object" && i && "nodeType" in i && [g.ENUMERATION, g.CONDITION].includes(i.nodeType) ? (e) => (t) => {
61
61
  let n = o(t);
62
62
  return typeof n == "function" ? n(e) : n;
63
63
  } : o;
64
64
  }
65
- }, A = b ? a : {
65
+ }, j = x ? a : {
66
66
  id: "markdown-string-plugin",
67
67
  canHandle: (e) => typeof e == "string",
68
68
  transform: (e, t, r) => {
69
- let { plugins: i, ...a } = t, { keyPath: o, dictionaryKey: s } = a, c = r(m(e) ?? {}, {
69
+ let { plugins: i, ...a } = t, { keyPath: o, dictionaryKey: s } = a, c = r(h(e) ?? {}, {
70
70
  plugins: [{
71
71
  id: "markdown-metadata-plugin",
72
72
  canHandle: (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || !e,
@@ -78,57 +78,57 @@ var y = process.env.INTLAYER_NODE_TYPE_INTLAYER_NODE === "false", b = process.en
78
78
  }],
79
79
  dictionaryKey: a.dictionaryKey,
80
80
  keyPath: []
81
- }), l = w(e), u = (t) => {
82
- let n = w(e, { components: t });
83
- return !C && f.editor.enabled ? T(`<intlayer-content-selector-wrapper key-path="${E(JSON.stringify(o ?? []))}" dictionary-key="${E(String(s ?? ""))}">${n}</intlayer-content-selector-wrapper>`, e) : T(n, e);
81
+ }), l = T(e), u = (t) => {
82
+ let n = T(e, { components: t });
83
+ return !w && f.enabled ? E(`<intlayer-content-selector-wrapper key-path="${D(JSON.stringify(o ?? []))}" dictionary-key="${D(String(s ?? ""))}">${n}</intlayer-content-selector-wrapper>`, e) : E(n, e);
84
84
  };
85
- return !C && f.editor.enabled ? T(`<intlayer-content-selector-wrapper key-path="${E(JSON.stringify(o ?? []))}" dictionary-key="${E(String(s ?? ""))}">${l}</intlayer-content-selector-wrapper>`, e, {
85
+ return !w && f.enabled ? E(`<intlayer-content-selector-wrapper key-path="${D(JSON.stringify(o ?? []))}" dictionary-key="${D(String(s ?? ""))}">${l}</intlayer-content-selector-wrapper>`, e, {
86
86
  metadata: c,
87
87
  use: u
88
- }) : T(l, e, {
88
+ }) : E(l, e, {
89
89
  metadata: c,
90
90
  use: u
91
91
  });
92
92
  }
93
- }, j = b ? a : {
93
+ }, M = x ? a : {
94
94
  id: "markdown-plugin",
95
- canHandle: (e) => typeof e == "object" && e?.nodeType === h.MARKDOWN,
95
+ canHandle: (e) => typeof e == "object" && e?.nodeType === g.MARKDOWN,
96
96
  transform: (e, t, n) => {
97
- let r = [...t.keyPath, { type: h.MARKDOWN }], i = e[h.MARKDOWN];
97
+ let r = [...t.keyPath, { type: g.MARKDOWN }], i = e[g.MARKDOWN];
98
98
  return n(i, {
99
99
  ...t,
100
100
  children: i,
101
101
  keyPath: r,
102
- plugins: [A, ...t.plugins ?? []]
102
+ plugins: [j, ...t.plugins ?? []]
103
103
  });
104
104
  }
105
- }, M = x ? a : {
105
+ }, N = S ? a : {
106
106
  id: "html-plugin",
107
- canHandle: (e) => typeof e == "object" && e?.nodeType === h.HTML,
107
+ canHandle: (e) => typeof e == "object" && e?.nodeType === g.HTML,
108
108
  transform: (e, t) => {
109
- let n = e[h.HTML], { keyPath: r, dictionaryKey: i } = t, a = (e = {}) => {
109
+ let n = e[g.HTML], { keyPath: r, dictionaryKey: i } = t, a = (e = {}) => {
110
110
  let t = Object.fromEntries(Object.entries(e).filter(([, e]) => e).map(([e, t]) => [e, (e) => t(e)])), a = c(n, new Proxy(t, { get(e, t) {
111
111
  if (typeof t == "string" && t in e) return e[t];
112
- if (typeof t == "string" && /^[a-z][a-z0-9]*$/.test(t)) return (e) => _`<${v(t)} ...${e}>${e.children}</${v(t)}>`;
112
+ if (typeof t == "string" && /^[a-z][a-z0-9]*$/.test(t)) return (e) => v`<${y(t)} ...${e}>${e.children}</${y(t)}>`;
113
113
  } }));
114
- return !C && f.editor.enabled ? T(`<intlayer-content-selector-wrapper key-path="${E(JSON.stringify(r ?? []))}" dictionary-key="${E(String(i ?? ""))}">${a}</intlayer-content-selector-wrapper>`, n) : T(a, n);
114
+ return !w && f.enabled ? E(`<intlayer-content-selector-wrapper key-path="${D(JSON.stringify(r ?? []))}" dictionary-key="${D(String(i ?? ""))}">${a}</intlayer-content-selector-wrapper>`, n) : E(a, n);
115
115
  };
116
- return !C && f.editor.enabled ? T(`<intlayer-content-selector-wrapper key-path="${E(JSON.stringify(r ?? []))}" dictionary-key="${E(String(i ?? ""))}">${n}</intlayer-content-selector-wrapper>`, n, { use: a }) : T(n, n, { use: a });
116
+ return !w && f.enabled ? E(`<intlayer-content-selector-wrapper key-path="${D(JSON.stringify(r ?? []))}" dictionary-key="${D(String(i ?? ""))}">${n}</intlayer-content-selector-wrapper>`, n, { use: a }) : E(n, n, { use: a });
117
117
  }
118
- }, N = (t, n = !0) => {
119
- let a = t ?? (typeof window < "u" && e()?.locale) ?? f.internationalization.defaultLocale;
118
+ }, P = (t, n = !0) => {
119
+ let a = t ?? (typeof window < "u" && e()?.locale) ?? p.defaultLocale;
120
120
  return [
121
- d(a, n ? f.internationalization.defaultLocale : void 0),
121
+ d(t ?? p.defaultLocale, n ? p.defaultLocale : void 0),
122
122
  i,
123
123
  r,
124
124
  l(a),
125
125
  o,
126
126
  s,
127
- O,
128
127
  k,
129
- j,
130
- M
128
+ A,
129
+ M,
130
+ N
131
131
  ].filter(Boolean);
132
132
  };
133
133
  //#endregion
134
- export { N as getPlugins, M as htmlPlugin, k as insertionPlugin, O as intlayerNodePlugins, j as markdownPlugin, A as markdownStringPlugin };
134
+ export { P as getPlugins, N as htmlPlugin, A as insertionPlugin, k as intlayerNodePlugins, M as markdownPlugin, j as markdownStringPlugin };
@@ -1,7 +1,8 @@
1
- import e from "@intlayer/config/built";
2
- import { isEnabled as t } from "@intlayer/editor/isEnabled";
1
+ import { internationalization as e } from "@intlayer/config/built";
2
+ import { setIntlayerIdentifier as t } from "@intlayer/config/client";
3
+ import { isEnabled as n } from "@intlayer/editor/isEnabled";
3
4
  //#region src/editor/useEditor.ts
4
- var n = process.env.INTLAYER_EDITOR_ENABLED === "false", r = class {
5
+ var r = process.env.INTLAYER_EDITOR_ENABLED === "false", i = class {
5
6
  host;
6
7
  _stopped = !1;
7
8
  _unsubscribeLocale = null;
@@ -9,9 +10,9 @@ var n = process.env.INTLAYER_EDITOR_ENABLED === "false", r = class {
9
10
  this.host = e, e.addController(this);
10
11
  }
11
12
  hostConnected() {
12
- this._stopped = !1, !(n || !t) && import("@intlayer/editor").then(({ initEditorClient: e }) => {
13
+ this._stopped = !1, !(r || !n) && import("@intlayer/editor").then(({ initEditorClient: e }) => {
13
14
  if (this._stopped) return;
14
- let t = e(), n = c();
15
+ let t = e(), n = l();
15
16
  t.currentLocale.set(n.locale), this._unsubscribeLocale = n.subscribe((e) => {
16
17
  t.currentLocale.set(e);
17
18
  });
@@ -23,13 +24,13 @@ var n = process.env.INTLAYER_EDITOR_ENABLED === "false", r = class {
23
24
  });
24
25
  }
25
26
  };
26
- function i(e) {
27
- if (n || !t) return e ? void 0 : () => {};
27
+ function a(e) {
28
+ if (r || !n) return e ? void 0 : () => {};
28
29
  if (!e) {
29
30
  let e = !1, t = null;
30
31
  return import("@intlayer/editor").then(({ initEditorClient: n }) => {
31
32
  if (e) return;
32
- let r = n(), i = c();
33
+ let r = n(), i = l();
33
34
  r.currentLocale.set(i.locale), t = i.subscribe((e) => {
34
35
  r.currentLocale.set(e);
35
36
  });
@@ -39,16 +40,16 @@ function i(e) {
39
40
  });
40
41
  };
41
42
  }
42
- new r(e);
43
+ new i(e);
43
44
  }
44
45
  //#endregion
45
46
  //#region src/client/installIntlayer.ts
46
- var a = class {
47
+ var o = class {
47
48
  _locale;
48
49
  _listeners = /* @__PURE__ */ new Set();
49
50
  isCookieEnabled;
50
51
  constructor(t, n = !0) {
51
- let { defaultLocale: r } = e.internationalization ?? {};
52
+ let { defaultLocale: r } = e ?? {};
52
53
  this._locale = t ?? r, this.isCookieEnabled = n;
53
54
  }
54
55
  get locale() {
@@ -63,9 +64,9 @@ var a = class {
63
64
  this._listeners.delete(e);
64
65
  };
65
66
  }
66
- }, o = null, s = (e, t = !0) => o || (o = new a(e, t), o), c = () => (o ||= new a(), o), l = ({ locale: e, isCookieEnabled: t } = {}) => {
67
- let n = s(e, t);
68
- return i(), n;
67
+ }, s = null, c = (e, n = !0) => s || (t(), s = new o(e, n), s), l = () => (s ||= new o(), s), u = ({ locale: e, isCookieEnabled: t } = {}) => {
68
+ let n = c(e, t);
69
+ return a(), n;
69
70
  };
70
71
  //#endregion
71
- export { i as a, l as i, s as n, c as r, a as t };
72
+ export { a, u as i, c as n, l as r, o as t };
@@ -0,0 +1 @@
1
+ require(`./plugins-D2ByX3NK.js`);let e=require(`@intlayer/config/built`),t=require(`@intlayer/config/client`),n=require(`@intlayer/editor/isEnabled`);var r=process.env.INTLAYER_EDITOR_ENABLED===`false`,i=class{host;_stopped=!1;_unsubscribeLocale=null;constructor(e){this.host=e,e.addController(this)}hostConnected(){this._stopped=!1,!(r||!n.isEnabled)&&import(`@intlayer/editor`).then(({initEditorClient:e})=>{if(this._stopped)return;let t=e(),n=l();t.currentLocale.set(n.locale),this._unsubscribeLocale=n.subscribe(e=>{t.currentLocale.set(e)})})}hostDisconnected(){this._stopped=!0,this._unsubscribeLocale?.(),this._unsubscribeLocale=null,import(`@intlayer/editor`).then(({stopEditorClient:e})=>{e()})}};function a(e){if(r||!n.isEnabled)return e?void 0:()=>{};if(!e){let e=!1,t=null;return import(`@intlayer/editor`).then(({initEditorClient:n})=>{if(e)return;let r=n(),i=l();r.currentLocale.set(i.locale),t=i.subscribe(e=>{r.currentLocale.set(e)})}),()=>{e=!0,t?.(),import(`@intlayer/editor`).then(({stopEditorClient:e})=>{e()})}}new i(e)}var o=class{_locale;_listeners=new Set;isCookieEnabled;constructor(t,n=!0){let{defaultLocale:r}=e.internationalization??{};this._locale=t??r,this.isCookieEnabled=n}get locale(){return this._locale}setLocale(e){this._locale=e;for(let t of this._listeners)t(e)}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}},s=null,c=(e,n=!0)=>s||((0,t.setIntlayerIdentifier)(),s=new o(e,n),s),l=()=>(s||=new o,s),u=({locale:e,isCookieEnabled:t}={})=>{let n=c(e,t);return a(),n};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));const c=require(`./installIntlayer-DMIkS15Y.js`),l=require(`./cjs/markdown/runtime.cjs`),u=require(`./cjs/renderIntlayerNode.cjs`);let d=require(`@intlayer/core/interpreter`),f=require(`@intlayer/config/built`),p=require(`@intlayer/core/markdown`),m=require(`@intlayer/types/nodeType`);m=s(m);let h=require(`lit/directives/unsafe-html.js`),g=require(`lit/static-html.js`);var _=process.env.INTLAYER_NODE_TYPE_INTLAYER_NODE===`false`,v=process.env.INTLAYER_NODE_TYPE_MARKDOWN===`false`,y=process.env.INTLAYER_NODE_TYPE_HTML===`false`,b=process.env.INTLAYER_NODE_TYPE_INSERTION===`false`,x=process.env.INTLAYER_EDITOR_ENABLED===`false`,S=(e=``,t={})=>(0,p.compileWithOptions)(e,l.default,t),C=(e,t,n={})=>{let r=typeof e==`string`?(0,h.unsafeHTML)(e):e;return new Proxy(r,{get(e,r,i){if(r===`value`||r===`raw`)return t;if(r===`toString`||r===Symbol.toPrimitive)return()=>t;if(r!==Symbol.iterator)return r===`__update`?()=>{}:r===`isJSX`?!0:r in n?n[r]:Reflect.get(e,r,i)}})},w=e=>e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`),T=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),E=_?d.fallbackPlugin:{id:`intlayer-node-plugin`,canHandle:e=>typeof e==`bigint`||typeof e==`string`||typeof e==`number`,transform:(e,{children:t,keyPath:n,dictionaryKey:r,...i})=>{if(!x&&f.editor.enabled){let e=String(t??``);return C(`<intlayer-content-selector-wrapper key-path="${w(JSON.stringify(n??[]))}" dictionary-key="${w(String(r??``))}">${T(e)}</intlayer-content-selector-wrapper>`,e)}return u.renderIntlayerNode({...i,value:t,children:t})}},D=b?d.fallbackPlugin:{id:`insertion-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===m.INSERTION,transform:(e,t,n)=>{let r=[...t.keyPath,{type:m.INSERTION}],i=e[m.INSERTION],a={id:`insertion-string-plugin`,canHandle:e=>typeof e==`string`,transform:(e,n,r)=>{let i=r(e,{...n,children:e,plugins:(t.plugins??[]).filter(e=>e.id!==`intlayer-node-plugin`)});return e=>{let a=(0,d.splitInsertionTemplate)(i,e),o=a.isSimple?a.parts:a.parts.join(``);return r(o,{...n,plugins:t.plugins,children:o})}}},o=n(i,{...t,children:i,keyPath:r,plugins:[a,...t.plugins??[]]});return typeof i==`object`&&i&&`nodeType`in i&&[m.ENUMERATION,m.CONDITION].includes(i.nodeType)?e=>t=>{let n=o(t);return typeof n==`function`?n(e):n}:o}},O=v?d.fallbackPlugin:{id:`markdown-string-plugin`,canHandle:e=>typeof e==`string`,transform:(e,t,n)=>{let{plugins:r,...i}=t,{keyPath:a,dictionaryKey:o}=i,s=n((0,p.getMarkdownMetadata)(e)??{},{plugins:[{id:`markdown-metadata-plugin`,canHandle:e=>typeof e==`string`||typeof e==`number`||typeof e==`boolean`||!e,transform:(t,n)=>u.renderIntlayerNode({...n,value:t,children:e})}],dictionaryKey:i.dictionaryKey,keyPath:[]}),c=S(e),l=t=>{let n=S(e,{components:t});return!x&&f.editor.enabled?C(`<intlayer-content-selector-wrapper key-path="${w(JSON.stringify(a??[]))}" dictionary-key="${w(String(o??``))}">${n}</intlayer-content-selector-wrapper>`,e):C(n,e)};return!x&&f.editor.enabled?C(`<intlayer-content-selector-wrapper key-path="${w(JSON.stringify(a??[]))}" dictionary-key="${w(String(o??``))}">${c}</intlayer-content-selector-wrapper>`,e,{metadata:s,use:l}):C(c,e,{metadata:s,use:l})}},k=v?d.fallbackPlugin:{id:`markdown-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===m.MARKDOWN,transform:(e,t,n)=>{let r=[...t.keyPath,{type:m.MARKDOWN}],i=e[m.MARKDOWN];return n(i,{...t,children:i,keyPath:r,plugins:[O,...t.plugins??[]]})}},A=y?d.fallbackPlugin:{id:`html-plugin`,canHandle:e=>typeof e==`object`&&e?.nodeType===m.HTML,transform:(e,t)=>{let n=e[m.HTML],{keyPath:r,dictionaryKey:i}=t,a=(e={})=>{let t=Object.fromEntries(Object.entries(e).filter(([,e])=>e).map(([e,t])=>[e,e=>t(e)])),a=(0,d.getHTML)(n,new Proxy(t,{get(e,t){if(typeof t==`string`&&t in e)return e[t];if(typeof t==`string`&&/^[a-z][a-z0-9]*$/.test(t))return e=>g.html`<${(0,g.unsafeStatic)(t)} ...${e}>${e.children}</${(0,g.unsafeStatic)(t)}>`}}));return!x&&f.editor.enabled?C(`<intlayer-content-selector-wrapper key-path="${w(JSON.stringify(r??[]))}" dictionary-key="${w(String(i??``))}">${a}</intlayer-content-selector-wrapper>`,n):C(a,n)};return!x&&f.editor.enabled?C(`<intlayer-content-selector-wrapper key-path="${w(JSON.stringify(r??[]))}" dictionary-key="${w(String(i??``))}">${n}</intlayer-content-selector-wrapper>`,n,{use:a}):C(n,n,{use:a})}},j=(e,t=!0)=>{let n=e??(typeof window<`u`&&c.r()?.locale)??f.internationalization.defaultLocale;return[(0,d.translationPlugin)(e??f.internationalization.defaultLocale,t?f.internationalization.defaultLocale:void 0),d.enumerationPlugin,d.conditionPlugin,(0,d.nestedPlugin)(n),d.filePlugin,d.genderPlugin,E,D,k,A].filter(Boolean)};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return k}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return j}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lit-intlayer",
3
- "version": "8.6.3",
3
+ "version": "8.6.5",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Lit applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -103,11 +103,11 @@
103
103
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
104
104
  },
105
105
  "dependencies": {
106
- "@intlayer/api": "8.6.3",
107
- "@intlayer/config": "8.6.3",
108
- "@intlayer/core": "8.6.3",
109
- "@intlayer/editor": "8.6.3",
110
- "@intlayer/types": "8.6.3"
106
+ "@intlayer/api": "8.6.5",
107
+ "@intlayer/config": "8.6.5",
108
+ "@intlayer/core": "8.6.5",
109
+ "@intlayer/editor": "8.6.5",
110
+ "@intlayer/types": "8.6.5"
111
111
  },
112
112
  "devDependencies": {
113
113
  "@types/node": "25.5.0",
@@ -123,7 +123,7 @@
123
123
  "vitest": "4.1.2"
124
124
  },
125
125
  "peerDependencies": {
126
- "intlayer": "8.6.3",
126
+ "intlayer": "8.6.5",
127
127
  "lit": ">=3.0.0"
128
128
  },
129
129
  "peerDependenciesMeta": {
@@ -1 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require(`@intlayer/config/built`);c=s(c);let l=require(`@intlayer/editor/isEnabled`);var u=process.env.INTLAYER_EDITOR_ENABLED===`false`,d=class{host;_stopped=!1;_unsubscribeLocale=null;constructor(e){this.host=e,e.addController(this)}hostConnected(){this._stopped=!1,!(u||!l.isEnabled)&&import(`@intlayer/editor`).then(({initEditorClient:e})=>{if(this._stopped)return;let t=e(),n=g();t.currentLocale.set(n.locale),this._unsubscribeLocale=n.subscribe(e=>{t.currentLocale.set(e)})})}hostDisconnected(){this._stopped=!0,this._unsubscribeLocale?.(),this._unsubscribeLocale=null,import(`@intlayer/editor`).then(({stopEditorClient:e})=>{e()})}};function f(e){if(u||!l.isEnabled)return e?void 0:()=>{};if(!e){let e=!1,t=null;return import(`@intlayer/editor`).then(({initEditorClient:n})=>{if(e)return;let r=n(),i=g();r.currentLocale.set(i.locale),t=i.subscribe(e=>{r.currentLocale.set(e)})}),()=>{e=!0,t?.(),import(`@intlayer/editor`).then(({stopEditorClient:e})=>{e()})}}new d(e)}var p=class{_locale;_listeners=new Set;isCookieEnabled;constructor(e,t=!0){let{defaultLocale:n}=c.default.internationalization??{};this._locale=e??n,this.isCookieEnabled=t}get locale(){return this._locale}setLocale(e){this._locale=e;for(let t of this._listeners)t(e)}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}},m=null,h=(e,t=!0)=>m||(m=new p(e,t),m),g=()=>(m||=new p,m),_=({locale:e,isCookieEnabled:t}={})=>{let n=h(e,t);return f(),n};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});