cloudcommerce 0.0.96 → 0.0.98

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 (84) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +3 -3
  3. package/packages/api/package.json +1 -1
  4. package/packages/apps/correios/lib-mjs/correios-ws.mjs +2 -1
  5. package/packages/apps/correios/package.json +1 -1
  6. package/packages/apps/custom-shipping/package.json +1 -1
  7. package/packages/apps/discounts/package.json +1 -1
  8. package/packages/apps/frenet/package.json +1 -1
  9. package/packages/apps/tiny-erp/lib/event-to-tiny.js +94 -94
  10. package/packages/apps/tiny-erp/lib/index.js +1 -1
  11. package/packages/apps/tiny-erp/lib/integration/after-tiny-queue.js +74 -71
  12. package/packages/apps/tiny-erp/lib/integration/export-order-to-tiny.js +73 -70
  13. package/packages/apps/tiny-erp/lib/integration/export-product-to-tiny.js +53 -49
  14. package/packages/apps/tiny-erp/lib/integration/helpers/format-tiny-date.js +3 -3
  15. package/packages/apps/tiny-erp/lib/integration/import-order-from-tiny.js +75 -76
  16. package/packages/apps/tiny-erp/lib/integration/import-product-from-tiny.js +140 -137
  17. package/packages/apps/tiny-erp/lib/integration/parsers/order-from-tiny.js +39 -40
  18. package/packages/apps/tiny-erp/lib/integration/parsers/order-to-tiny.js +178 -173
  19. package/packages/apps/tiny-erp/lib/integration/parsers/product-from-tiny.js +171 -173
  20. package/packages/apps/tiny-erp/lib/integration/parsers/product-to-tiny.js +127 -123
  21. package/packages/apps/tiny-erp/lib/integration/parsers/status-from-tiny.js +32 -32
  22. package/packages/apps/tiny-erp/lib/integration/parsers/status-to-tiny.js +37 -37
  23. package/packages/apps/tiny-erp/lib/integration/post-tiny-erp.js +43 -42
  24. package/packages/apps/tiny-erp/lib/tiny-erp.js +6 -8
  25. package/packages/apps/tiny-erp/lib/tiny-webhook.js +73 -76
  26. package/packages/apps/tiny-erp/package.json +2 -2
  27. package/packages/cli/package.json +1 -1
  28. package/packages/config/package.json +1 -1
  29. package/packages/events/package.json +2 -2
  30. package/packages/firebase/package.json +3 -3
  31. package/packages/modules/lib/firebase/ajv.js +19 -24
  32. package/packages/modules/lib/firebase/call-app-module.js +116 -110
  33. package/packages/modules/lib/firebase/checkout.js +151 -152
  34. package/packages/modules/lib/firebase/functions-checkout/fix-items.js +194 -187
  35. package/packages/modules/lib/firebase/functions-checkout/get-custumerId.js +25 -26
  36. package/packages/modules/lib/firebase/functions-checkout/handle-order-transaction.js +110 -109
  37. package/packages/modules/lib/firebase/functions-checkout/new-order.js +177 -177
  38. package/packages/modules/lib/firebase/functions-checkout/request-to-module.js +59 -59
  39. package/packages/modules/lib/firebase/functions-checkout/utils.js +195 -197
  40. package/packages/modules/lib/firebase/handle-module.js +144 -146
  41. package/packages/modules/lib/firebase/proxy-apps.js +2 -1
  42. package/packages/modules/lib/firebase/serve-modules-api.js +52 -53
  43. package/packages/modules/lib/firebase.js +4 -6
  44. package/packages/modules/lib/index.js +12 -15
  45. package/packages/modules/package.json +2 -2
  46. package/packages/passport/package.json +2 -2
  47. package/packages/ssr/package.json +2 -2
  48. package/packages/storefront/.eslintrc.cjs +1 -0
  49. package/packages/storefront/astro.config.mjs +11 -1
  50. package/packages/storefront/dist/client/LoginOffcanvas.daf3f717.js +1 -0
  51. package/packages/storefront/dist/client/assets/_...522e6bf2.css +4 -0
  52. package/packages/storefront/dist/client/assets/{_...ee104f19.css → _...a48b75c7.css} +1 -1
  53. package/packages/storefront/dist/client/chunks/LoginForm.d9251274.js +1066 -0
  54. package/packages/storefront/dist/client/chunks/LoginOffcanvas.07fe6492.js +1 -0
  55. package/packages/storefront/dist/client/{hoisted.46e058d2.js → chunks/index.esm.84a649c7.js} +77 -17
  56. package/packages/storefront/dist/client/chunks/preload-helper.f15ab524.js +1 -0
  57. package/packages/storefront/dist/client/chunks/runtime-dom.esm-bundler.738639ee.js +1 -0
  58. package/packages/storefront/dist/client/client.b552d86a.js +1 -0
  59. package/packages/storefront/dist/client/hoisted.054c36ac.js +1 -0
  60. package/packages/storefront/dist/client/manifest.webmanifest +1 -1
  61. package/packages/storefront/dist/client/sw.js +1 -1
  62. package/packages/storefront/dist/server/entry.mjs +370 -180
  63. package/packages/storefront/dist/server/manifest.webmanifest +1 -1
  64. package/packages/storefront/package.json +6 -5
  65. package/packages/storefront/src/assets/pico.css +0 -1
  66. package/packages/storefront/src/env.d.ts +1 -1
  67. package/packages/storefront/src/lib/components/AOffcanvas.vue +98 -0
  68. package/packages/storefront/src/lib/components/LoginForm.vue +54 -0
  69. package/packages/storefront/src/lib/components/LoginOffcanvas.vue +41 -0
  70. package/packages/storefront/src/lib/components/TheHeader.vue +37 -3
  71. package/packages/storefront/src/lib/components/TopBar.vue +13 -21
  72. package/packages/storefront/src/lib/layouts/BaseBody.astro +41 -38
  73. package/packages/storefront/src/lib/layouts/BaseHead.astro +0 -5
  74. package/packages/storefront/src/lib/layouts/BaseStateJson.astro +12 -11
  75. package/packages/storefront/src/lib/layouts/PagesHeader.astro +29 -20
  76. package/packages/storefront/src/lib/scripts/firebase-app.ts +16 -0
  77. package/packages/storefront/src/lib/{helpers → ssr}/image.ts +1 -1
  78. package/packages/storefront/src/pages/app/account.astro +0 -0
  79. package/packages/storefront/storefront.config.mjs +1 -1
  80. package/packages/storefront/tsconfig.json +4 -1
  81. package/packages/types/package.json +1 -1
  82. package/packages/storefront/dist/client/assets/_...73e01db2.css +0 -4
  83. package/packages/storefront/dist/client/client.80baece3.js +0 -1
  84. package/packages/storefront/src/lib/components/LoginModal.vue +0 -82
@@ -1,8 +1,8 @@
1
1
  import * as adapter from '@astrojs/node/server.js';
2
- import { defineComponent, h, createSSRApp, mergeProps, createVNode as createVNode$1, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, useSSRContext } from 'vue';
3
- import { renderToString as renderToString$1, ssrRenderAttrs, ssrRenderSlot, ssrRenderVNode, ssrInterpolate, ssrRenderClass, ssrRenderList, ssrRenderAttr } from 'vue/server-renderer';
2
+ import { defineComponent, h, createSSRApp, mergeProps, createVNode as createVNode$1, resolveDynamicComponent, withCtx, createTextVNode, toDisplayString, useSSRContext, toRefs, unref, ref, watch, toRef, computed, defineAsyncComponent, renderSlot as renderSlot$1 } from 'vue';
3
+ import { renderToString as renderToString$1, ssrRenderAttrs, ssrRenderSlot, ssrRenderVNode, ssrInterpolate, ssrRenderList, ssrRenderAttr, ssrRenderClass, ssrRenderComponent } from 'vue/server-renderer';
4
4
  import { escape } from 'html-escaper';
5
- /* empty css */import fs from 'fs';
5
+ /* empty css */import fs from 'fs';
6
6
  import { resolve } from 'path';
7
7
  import Deepmerge from '@fastify/deepmerge';
8
8
  import * as $$module1$5 from '@ecomplus/utils';
@@ -10,6 +10,7 @@ import $$module1__default from '@ecomplus/utils';
10
10
  /* empty css */import * as $$module1$6 from 'color';
11
11
  import $$module1__default$1 from 'color';
12
12
  import imageSize from 'image-size';
13
+ import { i19close, i19myAccountAndOrders } from '@ecomplus/i18n/src/pt_br/index.js';
13
14
  import 'mime';
14
15
  import 'kleur/colors';
15
16
  import 'string-width';
@@ -1680,7 +1681,7 @@ const _getConfig = () => {
1680
1681
 
1681
1682
  const settings = cms('settings');
1682
1683
  const { domain } = settings;
1683
- const primaryColor = settings.primary_color || '#20c997';
1684
+ const primaryColor = settings.primary_color || '#137c5c';
1684
1685
  const secondaryColor = settings.secondary_color || '#343a40';
1685
1686
 
1686
1687
  return {
@@ -1789,10 +1790,10 @@ const $$module1$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
1789
1790
  loadPageContext
1790
1791
  }, Symbol.toStringTag, { value: 'Module' }));
1791
1792
 
1792
- const $$metadata$c = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro", { modules: [{ module: $$module1$5, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1793
- const $$Astro$c = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1793
+ const $$metadata$d = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro", { modules: [{ module: $$module1$5, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1794
+ const $$Astro$d = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1794
1795
  const $$BaseHead = createComponent(async ($$result, $$props, $$slots) => {
1795
- const Astro2 = $$result.createAstro($$Astro$c, $$props, $$slots);
1796
+ const Astro2 = $$result.createAstro($$Astro$d, $$props, $$slots);
1796
1797
  Astro2.self = $$BaseHead;
1797
1798
  const {
1798
1799
  storeId,
@@ -1835,7 +1836,6 @@ ${renderTemplate`<link rel="manifest" href="/manifest.webmanifest">`}
1835
1836
  <link rel="apple-touch-icon"${addAttribute(settings.icon, "href")}>
1836
1837
  <meta name="apple-mobile-web-app-capable" content="yes">
1837
1838
  <meta name="apple-mobile-web-app-status-bar-style" content="default">
1838
-
1839
1839
  <meta property="og:site_name"${addAttribute(settings.name, "content")}>
1840
1840
  <meta property="og:url"${addAttribute(canonicalUrl, "content")}>
1841
1841
  <meta property="og:title"${addAttribute(title, "content")}>
@@ -1846,45 +1846,43 @@ ${ogImage && renderTemplate`<meta property="og:image"${addAttribute(ogImage, "co
1846
1846
  ${cmsSocial.fb_app_id && renderTemplate`<meta property="fb:app_id"${addAttribute(cmsSocial.fb_app_id, "content")}>`}
1847
1847
  <meta name="twitter:card" content="summary">
1848
1848
  ${cmsSocial.twitter_username && renderTemplate`<meta name="twitter:site"${addAttribute(cmsSocial.twitter_username, "content")}>`}
1849
-
1850
- <link rel="preconnect" href="https://ecomplus.io/" crossorigin>
1851
- <link rel="dns-prefetch" href="https://ecomplus.io/">
1852
1849
  <meta name="ecom-store-id"${addAttribute(String(storeId), "content")}>
1853
1850
  `;
1854
1851
  });
1855
1852
 
1856
- const $$file$c = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro";
1857
- const $$url$c = undefined;
1853
+ const $$file$d = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro";
1854
+ const $$url$d = undefined;
1858
1855
 
1859
1856
  const $$module1$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1860
1857
  __proto__: null,
1861
- $$metadata: $$metadata$c,
1858
+ $$metadata: $$metadata$d,
1862
1859
  default: $$BaseHead,
1863
- file: $$file$c,
1864
- url: $$url$c
1860
+ file: $$file$d,
1861
+ url: $$url$d
1865
1862
  }, Symbol.toStringTag, { value: 'Module' }));
1866
1863
 
1867
1864
  var __freeze = Object.freeze;
1868
1865
  var __defProp = Object.defineProperty;
1869
1866
  var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) }));
1870
1867
  var _a;
1871
- const $$metadata$b = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro", { modules: [{ module: $$module1$5, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1872
- const $$Astro$b = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1868
+ const $$metadata$c = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro", { modules: [{ module: $$module1$5, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1869
+ const $$Astro$c = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1873
1870
  const $$BaseStateJson = createComponent(async ($$result, $$props, $$slots) => {
1874
- const Astro2 = $$result.createAstro($$Astro$b, $$props, $$slots);
1871
+ const Astro2 = $$result.createAstro($$Astro$c, $$props, $$slots);
1875
1872
  Astro2.self = $$BaseStateJson;
1876
- const { pageContext } = Astro2.props;
1877
1873
  const {
1878
- storeId,
1879
- apiResource,
1880
- apiDoc,
1881
- lang,
1882
- countryCode,
1883
- currency,
1884
- currencySymbol,
1885
- domain,
1886
- settings
1887
- } = pageContext;
1874
+ pageContext: {
1875
+ storeId,
1876
+ apiResource,
1877
+ apiDoc,
1878
+ lang,
1879
+ countryCode,
1880
+ currency,
1881
+ currencySymbol,
1882
+ domain,
1883
+ settings
1884
+ }
1885
+ } = Astro2.props;
1888
1886
  let inlineClientJS = `
1889
1887
  window.storefront = ${JSON.stringify({
1890
1888
  settings: {
@@ -1934,18 +1932,18 @@ window.storefront.context = ${JSON.stringify({
1934
1932
  return renderTemplate(_a || (_a = __template(["<script>", '<\/script>\n<script type="application/ld+json">', "<\/script>\n"])), unescapeHTML(inlineClientJS), unescapeHTML(inlineJSONLd));
1935
1933
  });
1936
1934
 
1937
- const $$file$b = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro";
1938
- const $$url$b = undefined;
1935
+ const $$file$c = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro";
1936
+ const $$url$c = undefined;
1939
1937
 
1940
1938
  const $$module2$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1941
1939
  __proto__: null,
1942
- $$metadata: $$metadata$b,
1940
+ $$metadata: $$metadata$c,
1943
1941
  default: $$BaseStateJson,
1944
- file: $$file$b,
1945
- url: $$url$b
1942
+ file: $$file$c,
1943
+ url: $$url$c
1946
1944
  }, Symbol.toStringTag, { value: 'Module' }));
1947
1945
 
1948
- const $$metadata$a = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro", { modules: [{ module: $$module1$6, specifier: "color", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [{ type: "inline", value: `
1946
+ const $$metadata$b = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro", { modules: [{ module: $$module1$6, specifier: "color", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [{ type: "inline", value: `
1949
1947
  import { registerSW } from 'virtual:pwa-register';
1950
1948
  import { initializeApp } from 'firebase/app';
1951
1949
  registerSW();
@@ -1960,9 +1958,9 @@ const $$metadata$a = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/
1960
1958
  };
1961
1959
  initializeApp(firebaseConfig);
1962
1960
  ` }] });
1963
- const $$Astro$a = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1961
+ const $$Astro$b = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1964
1962
  const $$BaseBody = createComponent(async ($$result, $$props, $$slots) => {
1965
- const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
1963
+ const Astro2 = $$result.createAstro($$Astro$b, $$props, $$slots);
1966
1964
  Astro2.self = $$BaseBody;
1967
1965
  const { pageContext } = Astro2.props;
1968
1966
  const { primaryColor, secondaryColor } = pageContext;
@@ -2000,45 +1998,49 @@ const $$BaseBody = createComponent(async ($$result, $$props, $$slots) => {
2000
1998
  const $$definedVars = defineStyleVars([colorCSSVars]);
2001
1999
  const STYLES = [
2002
2000
  { props: { "is:global": true, "define:vars": colorCSSVars }, children: `:root {
2003
- --content-max-width: 80rem;
2004
- --white: #fff;
2005
- --gray-50: #f9fafb;
2006
- --gray-200: #e5e7eb;
2007
- --gray-700: #374151;
2008
- --gray-800: #1f2937;
2009
- --gray-900: #111827;
2010
- --surface-color: var(--gray-50);
2011
- --surface-border-color: var(--gray-200);
2012
- --yiq-text-light: var(--white);
2013
- --yiq-text-dark: var(--gray-900);
2014
- }
2015
- body,
2016
- body [data-theme=light],
2017
- body [data-theme=dark] {
2018
- --primary: var(--primary-500);
2019
- --primary-hover: var(--primary-700);
2020
- --primary-focus: rgba(var(--primary-200-rgb), 0.2);
2021
- --primary-inverse: var(--primary-500-yiq);
2022
- --secondary: var(--secondary-500);
2023
- --secondary-hover: var(--secondary-700);
2024
- --secondary-focus: rgba(var(--secondary-200-rgb), 0.2);
2025
- --secondary-inverse: var(--secondary-500-yiq);
2026
- }
2027
- @media only screen and (prefers-color-scheme: dark) {
2028
- :root:not([data-theme=light]) {
2029
- --surface-color: var(--gray-800);
2030
- --surface-border-color: var(--gray-700);
2031
- }
2032
- :root:not([data-theme=light]) a {
2033
- --color: var(--primary-200);
2034
- }
2035
- :root:not([data-theme=light]) a:is([aria-current], :hover, :active, :focus) {
2036
- --color: var(--primary-400);
2037
- }
2038
- }
2039
- body {
2040
- overflow-x: hidden;
2041
- }` }
2001
+ --content-max-width: 80rem;
2002
+ --white: #fff;
2003
+ --gray-50: #f9fafb;
2004
+ --gray-200: #e5e7eb;
2005
+ --gray-400: #94a3b8;
2006
+ --gray-600: #4b5563;
2007
+ --gray-700: #374151;
2008
+ --gray-800: #1f2937;
2009
+ --gray-900: #111827;
2010
+ --gray: var(--gray-600);
2011
+ --gray-accent: var(--gray-800);
2012
+ --surface-color: var(--gray-50);
2013
+ --surface-border-color: var(--gray-200);
2014
+ --yiq-text-light: var(--white);
2015
+ --yiq-text-dark: var(--gray-900);
2016
+ }
2017
+ body {
2018
+ --primary: var(--primary-500);
2019
+ --primary-hover: var(--primary-700);
2020
+ --primary-focus: rgba(var(--primary-200-rgb), 0.2);
2021
+ --primary-inverse: var(--primary-500-yiq);
2022
+ --secondary: var(--secondary-500);
2023
+ --secondary-hover: var(--secondary-700);
2024
+ --secondary-focus: rgba(var(--secondary-200-rgb), 0.2);
2025
+ --secondary-inverse: var(--secondary-500-yiq);
2026
+ }
2027
+ @media only screen and (prefers-color-scheme: dark) {
2028
+ :root:not([data-theme=light]) {
2029
+ --gray: var(--gray-400);
2030
+ --gray-accent: var(--gray-200);
2031
+ --surface-color: var(--gray-800);
2032
+ --surface-border-color: var(--gray-700);
2033
+ }
2034
+ :root:not([data-theme=light]) a:not([role=button]) {
2035
+ --color: var(--primary-100);
2036
+ }
2037
+ :root:not([data-theme=light]) a:not([role=button]):is([aria-current], :hover, :active, :focus) {
2038
+ --color: var(--primary-300);
2039
+ }
2040
+ }
2041
+ body {
2042
+ overflow-x: hidden;
2043
+ }` }
2042
2044
  ];
2043
2045
  for (const STYLE of STYLES)
2044
2046
  $$result.styles.add(STYLE);
@@ -2050,21 +2052,21 @@ const $$BaseBody = createComponent(async ($$result, $$props, $$slots) => {
2050
2052
  </body>`;
2051
2053
  });
2052
2054
 
2053
- const $$file$a = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro";
2054
- const $$url$a = undefined;
2055
+ const $$file$b = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro";
2056
+ const $$url$b = undefined;
2055
2057
 
2056
2058
  const $$module3$4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2057
2059
  __proto__: null,
2058
- $$metadata: $$metadata$a,
2060
+ $$metadata: $$metadata$b,
2059
2061
  default: $$BaseBody,
2060
- file: $$file$a,
2061
- url: $$url$a
2062
+ file: $$file$b,
2063
+ url: $$url$b
2062
2064
  }, Symbol.toStringTag, { value: 'Module' }));
2063
2065
 
2064
- const $$metadata$9 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro", { modules: [{ module: $$module1$2, specifier: "./BaseHead.astro", assert: {} }, { module: $$module2$3, specifier: "./BaseStateJson.astro", assert: {} }, { module: $$module3$4, specifier: "./BaseBody.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2065
- const $$Astro$9 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2066
+ const $$metadata$a = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro", { modules: [{ module: $$module1$2, specifier: "./BaseHead.astro", assert: {} }, { module: $$module2$3, specifier: "./BaseStateJson.astro", assert: {} }, { module: $$module3$4, specifier: "./BaseBody.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2067
+ const $$Astro$a = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2066
2068
  const $$Base = createComponent(async ($$result, $$props, $$slots) => {
2067
- const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
2069
+ const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
2068
2070
  Astro2.self = $$Base;
2069
2071
  const { pageContext, title } = Astro2.props;
2070
2072
  const { cms } = pageContext;
@@ -2082,15 +2084,15 @@ ${renderComponent($$result, "BaseBody", $$BaseBody, { "pageContext": pageContext
2082
2084
  `)}` })}`;
2083
2085
  });
2084
2086
 
2085
- const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro";
2086
- const $$url$9 = undefined;
2087
+ const $$file$a = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro";
2088
+ const $$url$a = undefined;
2087
2089
 
2088
2090
  const $$module1$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2089
2091
  __proto__: null,
2090
- $$metadata: $$metadata$9,
2092
+ $$metadata: $$metadata$a,
2091
2093
  default: $$Base,
2092
- file: $$file$9,
2093
- url: $$url$9
2094
+ file: $$file$a,
2095
+ url: $$url$a
2094
2096
  }, Symbol.toStringTag, { value: 'Module' }));
2095
2097
 
2096
2098
  const tryImageSize = (src) => {
@@ -2105,7 +2107,7 @@ const tryImageSize = (src) => {
2105
2107
  }
2106
2108
  return dimensions;
2107
2109
  };
2108
- const getImageAttrs = async (attrs) => {
2110
+ const getImageAttrs = (attrs) => {
2109
2111
  if (!attrs.width || !attrs.height) {
2110
2112
  const { width, height } = tryImageSize(attrs.src);
2111
2113
  if (width) {
@@ -2128,7 +2130,7 @@ const $$module1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
2128
2130
  getImageAttrs
2129
2131
  }, Symbol.toStringTag, { value: 'Module' }));
2130
2132
 
2131
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2133
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2132
2134
  __name: "TopBar",
2133
2135
  __ssrInlineRender: true,
2134
2136
  props: {
@@ -2140,19 +2142,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2140
2142
  hasNetworkLinks: { type: Boolean },
2141
2143
  socialNetworks: { default() {
2142
2144
  return ["facebook", "twitter", "youtube", "pinterest", "instagram", "tiktok"];
2143
- } },
2144
- countdownClass: null,
2145
- pageLinksClass: null,
2146
- contactLinksClass: null,
2147
- socialNetworksClass: null
2145
+ } }
2148
2146
  },
2149
2147
  setup(__props) {
2150
2148
  return (_ctx, _push, _parent, _attrs) => {
2151
2149
  _push(`<div${ssrRenderAttrs(mergeProps({ class: "top-bar w-full bg-surface" }, _attrs))}>`);
2152
- ssrRenderSlot(_ctx.$slots, "countdown", { marketingStripe: __props.marketingStripe, countdownClass: __props.countdownClass }, () => {
2150
+ ssrRenderSlot(_ctx.$slots, "countdown", { marketingStripe: __props.marketingStripe }, () => {
2153
2151
  if (__props.marketingStripe && __props.marketingStripe.text) {
2154
2152
  ssrRenderVNode(_push, createVNode$1(resolveDynamicComponent(__props.marketingStripe.link ? "a" : "div"), {
2155
- class: ["top-bar__countdown block text-sm text-center p-1 whitespace-nowrap overflow-x-auto", [__props.countdownClass, __props.marketingStripe.link ? "primary" : "secondary"]],
2153
+ class: ["top-bar__countdown block text-sm text-center p-1 whitespace-nowrap overflow-x-auto", __props.marketingStripe.link ? "primary" : "secondary"],
2156
2154
  href: __props.marketingStripe.link
2157
2155
  }, {
2158
2156
  default: withCtx((_, _push2, _parent2, _scopeId) => {
@@ -2172,9 +2170,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2172
2170
  }, _push, _parent);
2173
2171
  if (__props.hasNavbar) {
2174
2172
  _push(`<div class="top-bar__nav hidden md:block py-2"><div class="container"><div class="flex items-center lg:px-2 xl:px-4"><div class="grow text-xs">`);
2175
- ssrRenderSlot(_ctx.$slots, "contacts-container", { pageLinks: __props.pageLinks, pageLinksClass: __props.pageLinksClass }, () => {
2173
+ ssrRenderSlot(_ctx.$slots, "page-links", { pageLinks: __props.pageLinks }, () => {
2176
2174
  if (__props.pageLinks) {
2177
- _push(`<nav class="${ssrRenderClass([__props.pageLinksClass, "top-bar__page-links inline-block mr-4 font-semibold"])}"><!--[-->`);
2175
+ _push(`<nav class="top-bar__page-links inline-block mr-4 font-semibold"><!--[-->`);
2178
2176
  ssrRenderList(__props.pageLinks, ({ link, title }, i) => {
2179
2177
  _push(`<a class="mr-2 lg:mr-3"${ssrRenderAttr("href", link)}>${ssrInterpolate(title)}</a>`);
2180
2178
  });
@@ -2183,15 +2181,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2183
2181
  _push(`<!---->`);
2184
2182
  }
2185
2183
  }, _push, _parent);
2186
- ssrRenderSlot(_ctx.$slots, "contact-links", { contacts: __props.contacts, hasPhoneLinks: __props.hasPhoneLinks, contactLinksClass: __props.contactLinksClass }, () => {
2184
+ ssrRenderSlot(_ctx.$slots, "contact-links", { contacts: __props.contacts, hasPhoneLinks: __props.hasPhoneLinks }, () => {
2187
2185
  if (__props.hasPhoneLinks) {
2188
- _push(`<div class="${ssrRenderClass([__props.contactLinksClass, "top-bar__contact-links inline-block"])}">`);
2186
+ _push(`<div class="top-bar__contact-links inline-block">`);
2189
2187
  if (__props.contacts.whatsapp) {
2190
2188
  _push(`<a href="javascript:;" target="_blank" rel="noopener"${ssrRenderAttr("data-whatsapp-tel", __props.contacts.whatsapp.replace(/\D/g, ""))} class="mr-2"><i class="i-whatsapp"></i> ${ssrInterpolate(__props.contacts.whatsapp)}</a>`);
2191
2189
  } else {
2192
2190
  _push(`<!---->`);
2193
2191
  }
2194
- if (__props.contacts.phone) {
2192
+ if (__props.contacts.phone && __props.contacts.phone !== __props.contacts.whatsapp) {
2195
2193
  _push(`<a${ssrRenderAttr("href", `tel:+${__props.contacts.phone.replace(/\D/g, "")}`)} target="_blank" rel="noopener" class="mr-2"><i class="i-phone"></i> ${ssrInterpolate(__props.contacts.phone)}</a>`);
2196
2194
  } else {
2197
2195
  _push(`<!---->`);
@@ -2202,13 +2200,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2202
2200
  }
2203
2201
  }, _push, _parent);
2204
2202
  _push(`</div>`);
2205
- ssrRenderSlot(_ctx.$slots, "social-networks", { contacts: __props.contacts, hasNetworkLinks: __props.hasNetworkLinks, socialNetworksClass: __props.socialNetworksClass }, () => {
2203
+ ssrRenderSlot(_ctx.$slots, "social-networks", { contacts: __props.contacts, hasNetworkLinks: __props.hasNetworkLinks }, () => {
2206
2204
  if (__props.hasNetworkLinks) {
2207
2205
  _push(`<div class="top-bar__social-networks leading-none"><!--[-->`);
2208
2206
  ssrRenderList(__props.socialNetworks, (network) => {
2209
2207
  _push(`<!--[-->`);
2210
2208
  if (__props.contacts[network]) {
2211
- _push(`<a${ssrRenderAttr("href", __props.contacts[network])} target="_blank" rel="noopener" class="ml-1">`);
2209
+ _push(`<a${ssrRenderAttr("href", __props.contacts[network])} target="_blank" rel="noopener" class="ml-1"${ssrRenderAttr("aria-label", `Follow on ${network}`)}>`);
2212
2210
  if (network === "facebook") {
2213
2211
  _push(`<i class="i-facebook"></i>`);
2214
2212
  } else if (network === "youtube") {
@@ -2244,46 +2242,208 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2244
2242
  }
2245
2243
  });
2246
2244
 
2247
- const _sfc_setup$1 = _sfc_main$1.setup;
2248
- _sfc_main$1.setup = (props, ctx) => {
2245
+ const _sfc_setup$3 = _sfc_main$3.setup;
2246
+ _sfc_main$3.setup = (props, ctx) => {
2249
2247
  const ssrContext = useSSRContext();
2250
2248
  (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/TopBar.vue");
2251
- return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
2249
+ return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
2252
2250
  };
2253
2251
 
2254
2252
  const $$module2$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2255
2253
  __proto__: null,
2256
- default: _sfc_main$1
2254
+ default: _sfc_main$3
2257
2255
  }, Symbol.toStringTag, { value: 'Module' }));
2258
2256
 
2259
- const _sfc_main = /* @__PURE__ */ defineComponent({
2257
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2260
2258
  __name: "TheHeader",
2261
2259
  __ssrInlineRender: true,
2260
+ props: {
2261
+ logo: null,
2262
+ gridClass: { default: "grid grid-flow-col auto-cols-max justify-between items-center" },
2263
+ actionsGridClass: { default: "grid items-center text-2xl" }
2264
+ },
2262
2265
  setup(__props) {
2266
+ const props = __props;
2267
+ const { logo } = toRefs(props);
2263
2268
  return (_ctx, _push, _parent, _attrs) => {
2264
- _push(`<header${ssrRenderAttrs(mergeProps({ class: "header bg-surface bg-opacity-70 sticky py-1 sm:py-2" }, _attrs))}><div class="container"><div class="grid items-center"><div class="i-bars-3-bottom-left md:hidden"></div>`);
2265
- ssrRenderSlot(_ctx.$slots, "logo", {}, null, _push, _parent);
2269
+ _push(`<header${ssrRenderAttrs(mergeProps({ class: "header bg-surface bg-opacity-70 sticky py-1 sm:py-2" }, _attrs))}><div class="container"><div class="${ssrRenderClass(__props.gridClass)}">`);
2270
+ ssrRenderSlot(_ctx.$slots, "aside", {}, () => {
2271
+ _push(`<div class="header__aside md:hidden"><div class="i-bars-3-bottom-left"></div></div>`);
2272
+ }, _push, _parent);
2273
+ ssrRenderSlot(_ctx.$slots, "logo", { logo: unref(logo) }, () => {
2274
+ if (unref(logo)) {
2275
+ _push(`<a href="/" class="header__logo">`);
2276
+ ssrRenderVNode(_push, createVNode$1(resolveDynamicComponent(unref(logo).alt ? "h1" : "span"), { class: "m-0" }, {
2277
+ default: withCtx((_, _push2, _parent2, _scopeId) => {
2278
+ if (_push2) {
2279
+ _push2(`<img${ssrRenderAttrs(unref(logo))}${_scopeId}>`);
2280
+ } else {
2281
+ return [
2282
+ createVNode$1("img", unref(logo), null, 16)
2283
+ ];
2284
+ }
2285
+ }),
2286
+ _: 1
2287
+ }), _parent);
2288
+ _push(`</a>`);
2289
+ } else {
2290
+ _push(`<!---->`);
2291
+ }
2292
+ }, _push, _parent);
2293
+ ssrRenderSlot(_ctx.$slots, "actions-grid", {}, () => {
2294
+ _push(`<div class="${ssrRenderClass(__props.actionsGridClass)}">`);
2295
+ ssrRenderSlot(_ctx.$slots, "nav", {}, null, _push, _parent);
2296
+ ssrRenderSlot(_ctx.$slots, "search", {}, null, _push, _parent);
2297
+ ssrRenderSlot(_ctx.$slots, "buttons", {}, null, _push, _parent);
2298
+ _push(`</div>`);
2299
+ }, _push, _parent);
2266
2300
  _push(`</div></div></header>`);
2267
2301
  };
2268
2302
  }
2269
2303
  });
2270
2304
 
2305
+ const _sfc_setup$2 = _sfc_main$2.setup;
2306
+ _sfc_main$2.setup = (props, ctx) => {
2307
+ const ssrContext = useSSRContext();
2308
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/TheHeader.vue");
2309
+ return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
2310
+ };
2311
+
2312
+ const $$module3$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2313
+ __proto__: null,
2314
+ default: _sfc_main$2
2315
+ }, Symbol.toStringTag, { value: 'Module' }));
2316
+
2317
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2318
+ __name: "AOffcanvas",
2319
+ __ssrInlineRender: true,
2320
+ props: {
2321
+ modelValue: { type: Boolean, default: false },
2322
+ placement: { default: "end" }
2323
+ },
2324
+ emits: ["update:modelValue"],
2325
+ setup(__props, { emit }) {
2326
+ const props = __props;
2327
+ const close = () => emit("update:modelValue", false);
2328
+ const article = ref(null);
2329
+ const outsideClickListener = (ev) => {
2330
+ if (!article.value?.contains(ev.target)) {
2331
+ close();
2332
+ }
2333
+ };
2334
+ const escClickListener = (ev) => {
2335
+ if (ev.key === "Escape") {
2336
+ close();
2337
+ }
2338
+ };
2339
+ watch(toRef(props, "modelValue"), async (isOpen) => {
2340
+ if (isOpen) {
2341
+ document.body.style.maxWidth = `${document.body.offsetWidth}px`;
2342
+ document.body.style.overflow = "hidden";
2343
+ setTimeout(() => {
2344
+ document.addEventListener("click", outsideClickListener, { passive: true });
2345
+ document.addEventListener("keydown", escClickListener, { passive: true });
2346
+ }, 500);
2347
+ } else {
2348
+ document.removeEventListener("click", outsideClickListener);
2349
+ document.removeEventListener("keydown", escClickListener);
2350
+ }
2351
+ });
2352
+ const transition3dTx = computed(() => {
2353
+ return props.placement === "end" ? "100%" : "-100%";
2354
+ });
2355
+ return (_ctx, _push, _parent, _attrs) => {
2356
+ ({ style: {
2357
+ "--d23880fa": unref(transition3dTx)
2358
+ } });
2359
+ if (__props.modelValue) {
2360
+ _push(`<dialog${ssrRenderAttrs(mergeProps({
2361
+ class: ["offcanvas p-0", __props.placement === "end" ? "justify-end" : "justify-start"],
2362
+ open: __props.modelValue
2363
+ }, _attrs))} data-v-8bddc837><article class="rounded-none h-full max-h-screen m-0" data-v-8bddc837><a href="#close"${ssrRenderAttr("aria-label", unref(i19close))} class="close" data-target="modal-example" data-v-8bddc837></a>`);
2364
+ ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
2365
+ _push(`</article></dialog>`);
2366
+ } else {
2367
+ _push(`<!---->`);
2368
+ }
2369
+ };
2370
+ }
2371
+ });
2372
+
2373
+ const _export_sfc = (sfc, props) => {
2374
+ const target = sfc.__vccOpts || sfc;
2375
+ for (const [key, val] of props) {
2376
+ target[key] = val;
2377
+ }
2378
+ return target;
2379
+ };
2380
+
2381
+ const _sfc_setup$1 = _sfc_main$1.setup;
2382
+ _sfc_main$1.setup = (props, ctx) => {
2383
+ const ssrContext = useSSRContext();
2384
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/AOffcanvas.vue");
2385
+ return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
2386
+ };
2387
+ const AOffcanvas = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8bddc837"]]);
2388
+
2389
+ const _sfc_main = /* @__PURE__ */ defineComponent({
2390
+ __name: "LoginOffcanvas",
2391
+ __ssrInlineRender: true,
2392
+ props: {
2393
+ accountUrl: { default: "/app/account" },
2394
+ accountIconClass: { default: "i-user-circle" }
2395
+ },
2396
+ setup(__props) {
2397
+ const isVisible = ref(false);
2398
+ const loadingLoginForm = Promise.resolve();
2399
+ const LoginForm = defineAsyncComponent(() => loadingLoginForm);
2400
+ return (_ctx, _push, _parent, _attrs) => {
2401
+ _push(`<!--[--><div>`);
2402
+ ssrRenderSlot(_ctx.$slots, "toggle", { isVisible: isVisible.value }, () => {
2403
+ _push(`<a${ssrRenderAttr("href", __props.accountUrl)}${ssrRenderAttr("title", unref(i19myAccountAndOrders))}><div class="${ssrRenderClass(__props.accountIconClass)}"></div></a>`);
2404
+ }, _push, _parent);
2405
+ _push(`</div>`);
2406
+ _push(ssrRenderComponent(AOffcanvas, {
2407
+ modelValue: isVisible.value,
2408
+ "onUpdate:modelValue": ($event) => isVisible.value = $event,
2409
+ class: "login-offcanvas"
2410
+ }, {
2411
+ default: withCtx((_, _push2, _parent2, _scopeId) => {
2412
+ if (_push2) {
2413
+ ssrRenderSlot(_ctx.$slots, "form", {}, () => {
2414
+ _push2(ssrRenderComponent(unref(LoginForm), { class: "max-w-xs" }, null, _parent2, _scopeId));
2415
+ }, _push2, _parent2, _scopeId);
2416
+ } else {
2417
+ return [
2418
+ renderSlot$1(_ctx.$slots, "form", {}, () => [
2419
+ createVNode$1(unref(LoginForm), { class: "max-w-xs" })
2420
+ ])
2421
+ ];
2422
+ }
2423
+ }),
2424
+ _: 3
2425
+ }, _parent));
2426
+ _push(`<!--]-->`);
2427
+ };
2428
+ }
2429
+ });
2430
+
2271
2431
  const _sfc_setup = _sfc_main.setup;
2272
2432
  _sfc_main.setup = (props, ctx) => {
2273
2433
  const ssrContext = useSSRContext();
2274
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/TheHeader.vue");
2434
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/LoginOffcanvas.vue");
2275
2435
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
2276
2436
  };
2277
2437
 
2278
- const $$module3$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2438
+ const $$module4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2279
2439
  __proto__: null,
2280
2440
  default: _sfc_main
2281
2441
  }, Symbol.toStringTag, { value: 'Module' }));
2282
2442
 
2283
- const $$metadata$8 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro", { modules: [{ module: $$module1, specifier: "../helpers/image", assert: {} }, { module: $$module2$2, specifier: "../components/TopBar.vue", assert: {} }, { module: $$module3$3, specifier: "../components/TheHeader.vue", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2284
- const $$Astro$8 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2443
+ const $$metadata$9 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro", { modules: [{ module: $$module1, specifier: "../ssr/image", assert: {} }, { module: $$module2$2, specifier: "../components/TopBar.vue", assert: {} }, { module: $$module3$3, specifier: "../components/TheHeader.vue", assert: {} }, { module: $$module4, specifier: "../components/LoginOffcanvas.vue", assert: {} }], hydratedComponents: [_sfc_main], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set(["idle"]), hoisted: [] });
2444
+ const $$Astro$9 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2285
2445
  const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
2286
- const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
2446
+ const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
2287
2447
  Astro2.self = $$PagesHeader;
2288
2448
  const {
2289
2449
  pageContext: {
@@ -2292,7 +2452,8 @@ const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
2292
2452
  cms
2293
2453
  },
2294
2454
  topBarProps,
2295
- logoTransform
2455
+ theHeaderProps,
2456
+ loginOffcanvasProps
2296
2457
  } = Astro2.props;
2297
2458
  const header = cms("header");
2298
2459
  const contacts = cms("contacts");
@@ -2331,33 +2492,43 @@ const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
2331
2492
  contacts,
2332
2493
  ...topBarProps
2333
2494
  };
2334
- const logoWebpAttrs = await getImageAttrs({
2335
- src: settings.logo,
2336
- width: 150
2337
- });
2495
+ globalThis.TheHeaderProps = {
2496
+ logo: {
2497
+ ...getImageAttrs({
2498
+ src: settings.logo,
2499
+ width: 150
2500
+ }),
2501
+ alt: settings.name
2502
+ },
2503
+ ...theHeaderProps
2504
+ };
2505
+ globalThis.LoginOffcanvasProps = {
2506
+ ...loginOffcanvasProps
2507
+ };
2338
2508
  return renderTemplate`${renderSlot($$result, $$slots["top-bar"], renderTemplate`
2339
- ${renderComponent($$result, "TopBar", _sfc_main$1, { ...globalThis.TopBarProps })}
2509
+ ${renderComponent($$result, "TopBar", _sfc_main$3, { ...globalThis.TopBarProps })}
2340
2510
  `)}
2341
2511
  ${renderSlot($$result, $$slots["header"], renderTemplate`
2342
- ${renderComponent($$result, "TheHeader", _sfc_main, {}, { "logo": () => renderTemplate`${maybeRenderHead($$result)}<img${spreadAttributes(logoWebpAttrs)}${addAttribute(`${settings.name} (logo)`, "alt")}>` })}
2343
- `)}`;
2512
+ ${renderComponent($$result, "TheHeader", _sfc_main$2, { ...globalThis.TheHeaderProps }, { "buttons": () => renderTemplate`${renderComponent($$result, "Fragment", Fragment, { "slot": "buttons" }, { "default": () => renderTemplate`${renderComponent($$result, "LoginOffcanvas", _sfc_main, { "client:idle": true, ...globalThis.LoginOffcanvasProps, "client:component-hydration": "idle", "client:component-path": "/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginOffcanvas.vue", "client:component-export": "default" })}` })}` })}
2513
+ `)}
2514
+ `;
2344
2515
  });
2345
2516
 
2346
- const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro";
2347
- const $$url$8 = undefined;
2517
+ const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro";
2518
+ const $$url$9 = undefined;
2348
2519
 
2349
2520
  const $$module2$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2350
2521
  __proto__: null,
2351
- $$metadata: $$metadata$8,
2522
+ $$metadata: $$metadata$9,
2352
2523
  default: $$PagesHeader,
2353
- file: $$file$8,
2354
- url: $$url$8
2524
+ file: $$file$9,
2525
+ url: $$url$9
2355
2526
  }, Symbol.toStringTag, { value: 'Module' }));
2356
2527
 
2357
- const $$metadata$7 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro", { modules: [{ module: $$module1$1, specifier: "./Base.astro", assert: {} }, { module: $$module2$1, specifier: "./PagesHeader.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2358
- const $$Astro$7 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2528
+ const $$metadata$8 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro", { modules: [{ module: $$module1$1, specifier: "./Base.astro", assert: {} }, { module: $$module2$1, specifier: "./PagesHeader.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2529
+ const $$Astro$8 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2359
2530
  const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
2360
- const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
2531
+ const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
2361
2532
  Astro2.self = $$Pages;
2362
2533
  const { pageContext, title } = Astro2.props;
2363
2534
  return renderTemplate`${renderComponent($$result, "Base", $$Base, { "pageContext": pageContext, "title": title }, { "before-body-end": () => renderTemplate`${renderComponent($$result, "Fragment", Fragment, { "slot": "before-body-end" }, { "default": () => renderTemplate`${renderSlot($$result, $$slots["before-body-end"])}` })}`, "before-head-end": () => renderTemplate`${renderComponent($$result, "Fragment", Fragment, { "slot": "before-head-end" }, { "default": () => renderTemplate`${renderSlot($$result, $$slots["before-head-end"])}` })}`, "default": () => renderTemplate`${renderSlot($$result, $$slots["header"], renderTemplate`
@@ -2365,21 +2536,21 @@ const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
2365
2536
  `)}${renderSlot($$result, $$slots["default"])}` })}`;
2366
2537
  });
2367
2538
 
2368
- const $$file$7 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro";
2369
- const $$url$7 = undefined;
2539
+ const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro";
2540
+ const $$url$8 = undefined;
2370
2541
 
2371
2542
  const $$module2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2372
2543
  __proto__: null,
2373
- $$metadata: $$metadata$7,
2544
+ $$metadata: $$metadata$8,
2374
2545
  default: $$Pages,
2375
- file: $$file$7,
2376
- url: $$url$7
2546
+ file: $$file$8,
2547
+ url: $$url$8
2377
2548
  }, Symbol.toStringTag, { value: 'Module' }));
2378
2549
 
2379
- const $$metadata$6 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro", { modules: [{ module: $$module1$4, specifier: "@cloudcommerce/api", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2380
- const $$Astro$6 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2550
+ const $$metadata$7 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro", { modules: [{ module: $$module1$4, specifier: "@cloudcommerce/api", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2551
+ const $$Astro$7 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2381
2552
  const $$Home = createComponent(async ($$result, $$props, $$slots) => {
2382
- const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
2553
+ const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
2383
2554
  Astro2.self = $$Home;
2384
2555
  const products = (await api.get("products")).data.result;
2385
2556
  return renderTemplate`${maybeRenderHead($$result)}<main>
@@ -2392,21 +2563,21 @@ const $$Home = createComponent(async ($$result, $$props, $$slots) => {
2392
2563
  </main>`;
2393
2564
  });
2394
2565
 
2395
- const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro";
2396
- const $$url$6 = undefined;
2566
+ const $$file$7 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro";
2567
+ const $$url$7 = undefined;
2397
2568
 
2398
2569
  const $$module3$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2399
2570
  __proto__: null,
2400
- $$metadata: $$metadata$6,
2571
+ $$metadata: $$metadata$7,
2401
2572
  default: $$Home,
2402
- file: $$file$6,
2403
- url: $$url$6
2573
+ file: $$file$7,
2574
+ url: $$url$7
2404
2575
  }, Symbol.toStringTag, { value: 'Module' }));
2405
2576
 
2406
- const $$metadata$5 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", { modules: [{ module: $$module1$3, specifier: "../lib/ssr-context", assert: {} }, { module: $$module2, specifier: "../lib/layouts/Pages.astro", assert: {} }, { module: $$module3$2, specifier: "../lib/main/Home.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2407
- const $$Astro$5 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2577
+ const $$metadata$6 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", { modules: [{ module: $$module1$3, specifier: "../lib/ssr-context", assert: {} }, { module: $$module2, specifier: "../lib/layouts/Pages.astro", assert: {} }, { module: $$module3$2, specifier: "../lib/main/Home.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2578
+ const $$Astro$6 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2408
2579
  const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
2409
- const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
2580
+ const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
2410
2581
  Astro2.self = $$Index$1;
2411
2582
  let pageContext;
2412
2583
  let loadError;
@@ -2425,21 +2596,21 @@ ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment,
2425
2596
  </html>`;
2426
2597
  });
2427
2598
 
2428
- const $$file$5 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro";
2429
- const $$url$5 = "";
2599
+ const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro";
2600
+ const $$url$6 = "";
2430
2601
 
2431
2602
  const _page0 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2432
2603
  __proto__: null,
2433
- $$metadata: $$metadata$5,
2604
+ $$metadata: $$metadata$6,
2434
2605
  default: $$Index$1,
2435
- file: $$file$5,
2436
- url: $$url$5
2606
+ file: $$file$6,
2607
+ url: $$url$6
2437
2608
  }, Symbol.toStringTag, { value: 'Module' }));
2438
2609
 
2439
- const $$metadata$4 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Fallback.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2440
- const $$Astro$4 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Fallback.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2610
+ const $$metadata$5 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Fallback.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2611
+ const $$Astro$5 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Fallback.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2441
2612
  const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
2442
- const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
2613
+ const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
2443
2614
  Astro2.self = $$Fallback$1;
2444
2615
  return renderTemplate`${maybeRenderHead($$result)}<main>
2445
2616
  <h1>Error :/</h1>
@@ -2450,21 +2621,21 @@ const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
2450
2621
  </main>`;
2451
2622
  });
2452
2623
 
2453
- const $$file$4 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Fallback.astro";
2454
- const $$url$4 = undefined;
2624
+ const $$file$5 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Fallback.astro";
2625
+ const $$url$5 = undefined;
2455
2626
 
2456
2627
  const $$module3$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2457
2628
  __proto__: null,
2458
- $$metadata: $$metadata$4,
2629
+ $$metadata: $$metadata$5,
2459
2630
  default: $$Fallback$1,
2460
- file: $$file$4,
2461
- url: $$url$4
2631
+ file: $$file$5,
2632
+ url: $$url$5
2462
2633
  }, Symbol.toStringTag, { value: 'Module' }));
2463
2634
 
2464
- const $$metadata$3 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro", { modules: [{ module: $$module1$3, specifier: "../lib/ssr-context", assert: {} }, { module: $$module2, specifier: "../lib/layouts/Pages.astro", assert: {} }, { module: $$module3$1, specifier: "../lib/main/Fallback.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2465
- const $$Astro$3 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2635
+ const $$metadata$4 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro", { modules: [{ module: $$module1$3, specifier: "../lib/ssr-context", assert: {} }, { module: $$module2, specifier: "../lib/layouts/Pages.astro", assert: {} }, { module: $$module3$1, specifier: "../lib/main/Fallback.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2636
+ const $$Astro$4 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2466
2637
  const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
2467
- const Astro2 = $$result.createAstro($$Astro$3, $$props, $$slots);
2638
+ const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
2468
2639
  Astro2.self = $$Fallback;
2469
2640
  let pageContext;
2470
2641
  try {
@@ -2477,32 +2648,51 @@ ${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext
2477
2648
  </html>`;
2478
2649
  });
2479
2650
 
2480
- const $$file$3 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro";
2481
- const $$url$3 = "/fallback";
2651
+ const $$file$4 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro";
2652
+ const $$url$4 = "/fallback";
2482
2653
 
2483
2654
  const _page1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2484
2655
  __proto__: null,
2485
- $$metadata: $$metadata$3,
2656
+ $$metadata: $$metadata$4,
2486
2657
  default: $$Fallback,
2487
- file: $$file$3,
2488
- url: $$url$3
2658
+ file: $$file$4,
2659
+ url: $$url$4
2489
2660
  }, Symbol.toStringTag, { value: 'Module' }));
2490
2661
 
2491
- const $$metadata$2 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2492
- const $$Astro$2 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2662
+ const $$metadata$3 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2663
+ const $$Astro$3 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2493
2664
  const $$Index = createComponent(async ($$result, $$props, $$slots) => {
2494
- const Astro2 = $$result.createAstro($$Astro$2, $$props, $$slots);
2665
+ const Astro2 = $$result.createAstro($$Astro$3, $$props, $$slots);
2495
2666
  Astro2.self = $$Index;
2496
2667
  return renderTemplate``;
2497
2668
  });
2498
2669
 
2499
- const $$file$2 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro";
2500
- const $$url$2 = "/app";
2670
+ const $$file$3 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro";
2671
+ const $$url$3 = "/app";
2501
2672
 
2502
2673
  const _page2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2503
2674
  __proto__: null,
2504
- $$metadata: $$metadata$2,
2675
+ $$metadata: $$metadata$3,
2505
2676
  default: $$Index,
2677
+ file: $$file$3,
2678
+ url: $$url$3
2679
+ }, Symbol.toStringTag, { value: 'Module' }));
2680
+
2681
+ const $$metadata$2 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2682
+ const $$Astro$2 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2683
+ const $$Account = createComponent(async ($$result, $$props, $$slots) => {
2684
+ const Astro2 = $$result.createAstro($$Astro$2, $$props, $$slots);
2685
+ Astro2.self = $$Account;
2686
+ return renderTemplate``;
2687
+ });
2688
+
2689
+ const $$file$2 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro";
2690
+ const $$url$2 = "/app/account";
2691
+
2692
+ const _page3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2693
+ __proto__: null,
2694
+ $$metadata: $$metadata$2,
2695
+ default: $$Account,
2506
2696
  file: $$file$2,
2507
2697
  url: $$url$2
2508
2698
  }, Symbol.toStringTag, { value: 'Module' }));
@@ -2565,7 +2755,7 @@ ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment,
2565
2755
  const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro";
2566
2756
  const $$url = "/[...slug]";
2567
2757
 
2568
- const _page3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2758
+ const _page4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2569
2759
  __proto__: null,
2570
2760
  $$metadata,
2571
2761
  default: $$,
@@ -2573,7 +2763,7 @@ const _page3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2573
2763
  url: $$url
2574
2764
  }, Symbol.toStringTag, { value: 'Module' }));
2575
2765
 
2576
- const pageMap = new Map([['src/pages/index.astro', _page0],['src/pages/fallback.astro', _page1],['src/pages/app/index.astro', _page2],['src/pages/[...slug].astro', _page3],]);
2766
+ const pageMap = new Map([['src/pages/index.astro', _page0],['src/pages/fallback.astro', _page1],['src/pages/app/index.astro', _page2],['src/pages/app/account.astro', _page3],['src/pages/[...slug].astro', _page4],]);
2577
2767
  const renderers = [Object.assign({"name":"astro:jsx","serverEntrypoint":"astro/jsx/server.js","jsxImportSource":"astro"}, { ssr: server_default }),Object.assign({"name":"@astrojs/vue","clientEntrypoint":"@astrojs/vue/client.js","serverEntrypoint":"@astrojs/vue/server.js"}, { ssr: _renderer1 }),];
2578
2768
 
2579
2769
  if (typeof process !== "undefined") {
@@ -2645,7 +2835,7 @@ function deserializeManifest(serializedManifest) {
2645
2835
  };
2646
2836
  }
2647
2837
 
2648
- const _manifest = Object.assign(deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":["assets/_...ee104f19.css","assets/_...73e01db2.css"],"scripts":[{"type":"external","value":"hoisted.46e058d2.js"},{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/","type":"page","pattern":"^\\/$","segments":[],"params":[],"component":"src/pages/index.astro","pathname":"/","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...ee104f19.css","assets/_...73e01db2.css"],"scripts":[{"type":"external","value":"hoisted.46e058d2.js"},{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/fallback","type":"page","pattern":"^\\/fallback\\/?$","segments":[[{"content":"fallback","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/fallback.astro","pathname":"/fallback","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...ee104f19.css"],"scripts":[{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/app","type":"page","pattern":"^\\/app\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/index.astro","pathname":"/app","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...ee104f19.css","assets/_...73e01db2.css"],"scripts":[{"type":"external","value":"hoisted.46e058d2.js"},{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/[...slug]","type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","_meta":{"trailingSlash":"ignore"}}}],"site":"https://storefront-demo.e-com.plus/","base":"/","markdown":{"drafts":false,"syntaxHighlight":"shiki","shikiConfig":{"langs":[],"theme":"github-dark","wrap":false},"remarkPlugins":[],"rehypePlugins":[],"remarkRehype":{},"extendDefaultPlugins":false,"isAstroFlavoredMd":false},"pageMap":null,"renderers":[],"entryModules":{"\u0000@astrojs-ssr-virtual-entry":"entry.mjs","@astrojs/vue/client.js":"client.80baece3.js","/astro/hoisted.js?q=0":"hoisted.46e058d2.js","astro:scripts/page.js":"page.3aa82516.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/.pnpm/workbox-window@6.5.4/node_modules/workbox-window/build/workbox-window.prod.es5.mjs":"chunks/workbox-window.prod.es5.4b654ae6.js","astro:scripts/before-hydration.js":""},"assets":["/assets/_...73e01db2.css","/assets/_...ee104f19.css","/manifest.webmanifest","/registerSW.js","/client.80baece3.js","/hoisted.46e058d2.js","/page.3aa82516.js","/robots.txt","/sw.js","/workbox-6f0d1f78.js","/admin/config.json","/assets/cms-preview.css","/assets/cms.css","/assets/cvv.png","/assets/img-placeholder.png","/assets/payments.png","/assets/ssl-safe.png","/chunks/workbox-window.prod.es5.4b654ae6.js","/img/icon.png","/img/large-icon.png","/img/uploads/banner1.png","/img/uploads/banner2.png","/img/uploads/banner2.webp","/img/uploads/favicon.png","/img/uploads/headless.png","/img/uploads/headphone.png","/img/uploads/headphone.webp","/img/uploads/icon.png","/img/uploads/large-icon.png","/img/uploads/logo.png","/img/uploads/logo.webp","/img/uploads/og-image.png","/img/uploads/passion.png","/img/uploads/passion.webp","/img/uploads/pwa-reliable.png","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.png","/img/uploads/rect89.webp","/img/uploads/ssl-safe.png","/assets/icons/bootstrap-icons/font/storefront-icons.woff2","/assets/icons/feather-icons/font/storefront-icons.woff2","/assets/icons/font-awesome/font/storefront-icons.woff2","/assets/icons/line-awesome/font/storefront-icons.woff2","/assets/icons/tabler-icons/font/storefront-icons.woff2","/page.3aa82516.js","/~partytown/partytown-atomics.js","/~partytown/partytown-media.js","/~partytown/partytown-sw.js","/~partytown/partytown.js"]}), {
2838
+ const _manifest = Object.assign(deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":["assets/_...a48b75c7.css","assets/_...522e6bf2.css"],"scripts":[{"type":"external","value":"hoisted.054c36ac.js"},{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/","type":"page","pattern":"^\\/$","segments":[],"params":[],"component":"src/pages/index.astro","pathname":"/","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...a48b75c7.css","assets/_...522e6bf2.css"],"scripts":[{"type":"external","value":"hoisted.054c36ac.js"},{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/fallback","type":"page","pattern":"^\\/fallback\\/?$","segments":[[{"content":"fallback","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/fallback.astro","pathname":"/fallback","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...a48b75c7.css"],"scripts":[{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/app","type":"page","pattern":"^\\/app\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/index.astro","pathname":"/app","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...a48b75c7.css"],"scripts":[{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/app/account","type":"page","pattern":"^\\/app\\/account\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}],[{"content":"account","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/account.astro","pathname":"/app/account","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...a48b75c7.css","assets/_...522e6bf2.css"],"scripts":[{"type":"external","value":"hoisted.054c36ac.js"},{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/[...slug]","type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","_meta":{"trailingSlash":"ignore"}}}],"site":"https://storefront-demo.e-com.plus/","base":"/","markdown":{"drafts":false,"syntaxHighlight":"shiki","shikiConfig":{"langs":[],"theme":"github-dark","wrap":false},"remarkPlugins":[],"rehypePlugins":[],"remarkRehype":{},"extendDefaultPlugins":false,"isAstroFlavoredMd":false},"pageMap":null,"renderers":[],"entryModules":{"\u0000@astrojs-ssr-virtual-entry":"entry.mjs","@astrojs/vue/client.js":"client.b552d86a.js","/astro/hoisted.js?q=0":"hoisted.054c36ac.js","astro:scripts/page.js":"page.3aa82516.js","/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginOffcanvas.vue":"LoginOffcanvas.daf3f717.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginForm.vue":"chunks/LoginForm.d9251274.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/.pnpm/workbox-window@6.5.4/node_modules/workbox-window/build/workbox-window.prod.es5.mjs":"chunks/workbox-window.prod.es5.4b654ae6.js","astro:scripts/before-hydration.js":""},"assets":["/assets/_...522e6bf2.css","/assets/_...a48b75c7.css","/manifest.webmanifest","/registerSW.js","/LoginOffcanvas.daf3f717.js","/client.b552d86a.js","/hoisted.054c36ac.js","/page.3aa82516.js","/robots.txt","/sw.js","/workbox-6f0d1f78.js","/admin/config.json","/assets/cms-preview.css","/assets/cms.css","/assets/cvv.png","/assets/img-placeholder.png","/assets/payments.png","/assets/ssl-safe.png","/chunks/LoginForm.d9251274.js","/chunks/LoginOffcanvas.07fe6492.js","/chunks/index.esm.84a649c7.js","/chunks/preload-helper.f15ab524.js","/chunks/runtime-dom.esm-bundler.738639ee.js","/chunks/workbox-window.prod.es5.4b654ae6.js","/img/icon.png","/img/large-icon.png","/img/uploads/banner1.png","/img/uploads/banner2.png","/img/uploads/banner2.webp","/img/uploads/favicon.png","/img/uploads/headless.png","/img/uploads/headphone.png","/img/uploads/headphone.webp","/img/uploads/icon.png","/img/uploads/large-icon.png","/img/uploads/logo.png","/img/uploads/logo.webp","/img/uploads/og-image.png","/img/uploads/passion.png","/img/uploads/passion.webp","/img/uploads/pwa-reliable.png","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.png","/img/uploads/rect89.webp","/img/uploads/ssl-safe.png","/assets/icons/bootstrap-icons/font/storefront-icons.woff2","/assets/icons/feather-icons/font/storefront-icons.woff2","/assets/icons/font-awesome/font/storefront-icons.woff2","/assets/icons/line-awesome/font/storefront-icons.woff2","/assets/icons/tabler-icons/font/storefront-icons.woff2","/page.3aa82516.js","/~partytown/partytown-atomics.js","/~partytown/partytown-media.js","/~partytown/partytown-sw.js","/~partytown/partytown.js"]}), {
2649
2839
  pageMap: pageMap,
2650
2840
  renderers: renderers
2651
2841
  });