cloudcommerce 0.0.85 → 0.0.87

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 (49) hide show
  1. package/.vscode/settings.json +0 -3
  2. package/CHANGELOG.md +17 -0
  3. package/action.yml +1 -0
  4. package/package.json +1 -1
  5. package/packages/api/package.json +1 -1
  6. package/packages/apps/correios/package.json +1 -1
  7. package/packages/apps/custom-shipping/package.json +1 -1
  8. package/packages/apps/discounts/package.json +1 -1
  9. package/packages/apps/frenet/package.json +1 -1
  10. package/packages/apps/tiny-erp/package.json +1 -1
  11. package/packages/cli/package.json +1 -1
  12. package/packages/config/package.json +1 -1
  13. package/packages/events/package.json +1 -1
  14. package/packages/firebase/package.json +1 -1
  15. package/packages/modules/package.json +1 -1
  16. package/packages/passport/package.json +1 -1
  17. package/packages/ssr/package.json +1 -1
  18. package/packages/storefront/astro.config.mjs +1 -4
  19. package/packages/storefront/dist/client/assets/_...73e01db2.css +4 -0
  20. package/packages/storefront/dist/client/assets/{_...2fc8f657.css → _...ee104f19.css} +1 -1
  21. package/packages/storefront/dist/server/entry.mjs +154 -185
  22. package/packages/storefront/package.json +1 -2
  23. package/packages/storefront/src/assets/pico.css +2626 -0
  24. package/packages/storefront/src/lib/helpers/image.ts +24 -10
  25. package/packages/storefront/src/lib/layouts/Base.astro +4 -105
  26. package/packages/storefront/src/lib/layouts/BaseBody.astro +108 -0
  27. package/packages/storefront/src/lib/layouts/PagesHeader.astro +1 -1
  28. package/packages/storefront/src/lib/main/Fallback.astro +15 -0
  29. package/packages/storefront/src/lib/main/Home.astro +1 -66
  30. package/packages/storefront/src/lib/main/Wildcard.astro +21 -0
  31. package/packages/storefront/src/lib/ssr-context.ts +2 -2
  32. package/packages/storefront/src/pages/[...slug].astro +10 -2
  33. package/packages/storefront/src/pages/fallback.astro +8 -2
  34. package/packages/storefront/src/pages/index.astro +3 -0
  35. package/packages/types/package.json +1 -1
  36. package/packages/events/lib/firebase.js +0 -5
  37. package/packages/events/lib/firebase.js.map +0 -1
  38. package/packages/events/lib/index.js +0 -2
  39. package/packages/events/lib/index.js.map +0 -1
  40. package/packages/storefront/dist/client/assets/_...7af61807.css +0 -4
  41. package/packages/storefront/dist/client/assets/_...b330a555.css +0 -1
  42. package/packages/storefront/dist/client/assets/fallback-index.552fd862.css +0 -1
  43. package/packages/storefront/dist/client/assets/fallback.a3f85892.css +0 -1
  44. package/packages/storefront/dist/client/assets/index.73f26ab5.css +0 -1
  45. package/packages/storefront/src/lib/components/Card.astro +0 -74
  46. package/packages/storefront/src/lib/views/[...slug].astro +0 -77
  47. package/packages/storefront/src/lib/views/app/index.astro +0 -0
  48. package/packages/storefront/src/lib/views/fallback.astro +0 -81
  49. package/packages/storefront/src/lib/views/index.astro +0 -88
@@ -8,10 +8,10 @@ import sharp$1 from 'sharp';
8
8
  import fs from 'fs';
9
9
  import { resolve } from 'path';
10
10
  import Deepmerge from '@fastify/deepmerge';
11
- /* empty css */import * as $$module1$7 from 'color';
12
- import $$module1__default$1 from 'color';
13
- import * as $$module1$6 from '@ecomplus/utils';
11
+ import * as $$module1$5 from '@ecomplus/utils';
14
12
  import $$module1__default from '@ecomplus/utils';
13
+ /* empty css */import * as $$module1$6 from 'color';
14
+ import $$module1__default$1 from 'color';
15
15
  import sizeOf from 'image-size';
16
16
  import 'kleur/colors';
17
17
  import 'node:fs/promises';
@@ -21,7 +21,7 @@ import 'node:url';
21
21
  import 'magic-string';
22
22
  import 'node:stream';
23
23
  import 'slash';
24
- /* empty css *//* empty css *//* empty css *//* empty css */import 'string-width';
24
+ import 'string-width';
25
25
  import 'path-browserify';
26
26
  import { compile } from 'path-to-regexp';
27
27
 
@@ -1803,7 +1803,7 @@ api.del = del;
1803
1803
  api.delete = del;
1804
1804
  // # sourceMappingURL=api.js.map
1805
1805
 
1806
- const $$module1$5 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1806
+ const $$module1$4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1807
1807
  __proto__: null,
1808
1808
  default: api,
1809
1809
  setMiddleware,
@@ -1972,11 +1972,11 @@ const loadPageContext = async (Astro, {
1972
1972
  Astro.response.headers.set("X-SSR-Error", error.message);
1973
1973
  }
1974
1974
  Astro.response.status = status;
1975
- err.responseHTML = `<html><head>
1975
+ err.responseHTML = `<head>
1976
1976
  <meta http-equiv="refresh" content="0;
1977
1977
  url=/fallback?status=${status}&url=${encodeURIComponent(urlPath)}"/>
1978
1978
  </head>
1979
- <body></body></html>`;
1979
+ <body></body>`;
1980
1980
  throw err;
1981
1981
  }
1982
1982
  if (urlPath === "/fallback") {
@@ -1993,14 +1993,14 @@ const loadPageContext = async (Astro, {
1993
1993
  };
1994
1994
  };
1995
1995
 
1996
- const $$module2$4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1996
+ const $$module1$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1997
1997
  __proto__: null,
1998
1998
  default: loadPageContext,
1999
1999
  getConfig,
2000
2000
  loadPageContext
2001
2001
  }, Symbol.toStringTag, { value: 'Module' }));
2002
2002
 
2003
- const $$metadata$c = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro", { modules: [{ module: $$module1$6, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2003
+ 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: [] });
2004
2004
  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/");
2005
2005
  const $$BaseHead = createComponent(async ($$result, $$props, $$slots) => {
2006
2006
  const Astro2 = $$result.createAstro($$Astro$c, $$props, $$slots);
@@ -2067,7 +2067,7 @@ ${cmsSocial.twitter_username && renderTemplate`<meta name="twitter:site"${addAtt
2067
2067
  const $$file$c = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro";
2068
2068
  const $$url$c = undefined;
2069
2069
 
2070
- const $$module2$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2070
+ const $$module1$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2071
2071
  __proto__: null,
2072
2072
  $$metadata: $$metadata$c,
2073
2073
  default: $$BaseHead,
@@ -2079,7 +2079,7 @@ var __freeze = Object.freeze;
2079
2079
  var __defProp = Object.defineProperty;
2080
2080
  var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) }));
2081
2081
  var _a;
2082
- const $$metadata$b = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro", { modules: [{ module: $$module1$6, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2082
+ 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: [] });
2083
2083
  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/");
2084
2084
  const $$BaseStateJson = createComponent(async ($$result, $$props, $$slots) => {
2085
2085
  const Astro2 = $$result.createAstro($$Astro$b, $$props, $$slots);
@@ -2148,7 +2148,7 @@ window.storefront.context = ${JSON.stringify({
2148
2148
  const $$file$b = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro";
2149
2149
  const $$url$b = undefined;
2150
2150
 
2151
- const $$module3$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2151
+ const $$module2$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2152
2152
  __proto__: null,
2153
2153
  $$metadata: $$metadata$b,
2154
2154
  default: $$BaseStateJson,
@@ -2156,7 +2156,7 @@ const $$module3$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
2156
2156
  url: $$url$b
2157
2157
  }, Symbol.toStringTag, { value: 'Module' }));
2158
2158
 
2159
- const $$metadata$a = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro", { modules: [{ module: $$module1$7, specifier: "color", assert: {} }, { module: $$module2$3, specifier: "./BaseHead.astro", assert: {} }, { module: $$module3$2, specifier: "./BaseStateJson.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [{ type: "inline", value: `
2159
+ 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: `
2160
2160
  import { registerSW } from 'virtual:pwa-register';
2161
2161
  import { initializeApp } from 'firebase/app';
2162
2162
  registerSW();
@@ -2171,18 +2171,12 @@ const $$metadata$a = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/
2171
2171
  };
2172
2172
  initializeApp(firebaseConfig);
2173
2173
  ` }] });
2174
- 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/");
2175
- const $$Base = createComponent(async ($$result, $$props, $$slots) => {
2174
+ 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/");
2175
+ const $$BaseBody = createComponent(async ($$result, $$props, $$slots) => {
2176
2176
  const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
2177
- Astro2.self = $$Base;
2178
- const { pageContext, title } = Astro2.props;
2179
- const {
2180
- lang,
2181
- primaryColor,
2182
- secondaryColor,
2183
- cms
2184
- } = pageContext;
2185
- const cmsCustomCode = cms("code");
2177
+ Astro2.self = $$BaseBody;
2178
+ const { pageContext } = Astro2.props;
2179
+ const { primaryColor, secondaryColor } = pageContext;
2186
2180
  const brandColors = {
2187
2181
  primary: primaryColor,
2188
2182
  secondary: secondaryColor,
@@ -2219,11 +2213,11 @@ const $$Base = createComponent(async ($$result, $$props, $$slots) => {
2219
2213
  { props: { "is:global": true, "define:vars": colorCSSVars }, children: `:root {
2220
2214
  --content-max-width: 80rem;
2221
2215
  --white: #fff;
2222
- --gray-50: theme('colors.gray.50');
2223
- --gray-200: theme('colors.gray.200');
2224
- --gray-700: theme('colors.gray.700');
2225
- --gray-800: theme('colors.gray.800');
2226
- --gray-900: theme('colors.gray.900');
2216
+ --gray-50: #f9fafb;
2217
+ --gray-200: #e5e7eb;
2218
+ --gray-700: #374151;
2219
+ --gray-800: #1f2937;
2220
+ --gray-900: #111827;
2227
2221
  --surface-color: var(--gray-50);
2228
2222
  --surface-border-color: var(--gray-200);
2229
2223
  --yiq-text-light: var(--white);
@@ -2259,37 +2253,55 @@ const $$Base = createComponent(async ($$result, $$props, $$slots) => {
2259
2253
  ];
2260
2254
  for (const STYLE of STYLES)
2261
2255
  $$result.styles.add(STYLE);
2262
- return renderTemplate`<html${addAttribute(lang.replace("_", "-"), "lang")}${addAttribute($$definedVars, "style")}>
2263
- <head>
2256
+ return renderTemplate`${maybeRenderHead($$result)}<body${addAttribute($$definedVars, "style")}>
2257
+ ${renderSlot($$result, $$slots["default"])}
2258
+
2259
+ ${renderSlot($$result, $$slots["before-body-end"])}
2260
+
2261
+ </body>`;
2262
+ });
2263
+
2264
+ const $$file$a = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro";
2265
+ const $$url$a = undefined;
2266
+
2267
+ const $$module3$4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2268
+ __proto__: null,
2269
+ $$metadata: $$metadata$a,
2270
+ default: $$BaseBody,
2271
+ file: $$file$a,
2272
+ url: $$url$a
2273
+ }, Symbol.toStringTag, { value: 'Module' }));
2274
+
2275
+ 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: [] });
2276
+ 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/");
2277
+ const $$Base = createComponent(async ($$result, $$props, $$slots) => {
2278
+ const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
2279
+ Astro2.self = $$Base;
2280
+ const { pageContext, title } = Astro2.props;
2281
+ const { cms } = pageContext;
2282
+ const cmsCustomCode = cms("code");
2283
+ return renderTemplate`<head>
2264
2284
  ${renderComponent($$result, "BaseHead", $$BaseHead, { "pageContext": pageContext, "title": title })}
2265
2285
  ${renderComponent($$result, "BaseStateJson", $$BaseStateJson, { "pageContext": pageContext })}
2266
2286
  ${renderSlot($$result, $$slots["before-head-end"], renderTemplate`
2267
2287
  ${cmsCustomCode.css && renderTemplate`<style>{cmsCustomCode.css}</style>`}
2268
2288
  `)}${renderHead($$result)}</head>${cmsCustomCode.html_head && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(cmsCustomCode.html_head)}` })}`}
2269
2289
 
2270
- </html>
2271
-
2272
2290
 
2273
- ${renderSlot($$result, $$slots["default"])}
2274
-
2275
- ${renderSlot($$result, $$slots["before-body-end"], renderTemplate`
2291
+ ${renderComponent($$result, "BaseBody", $$BaseBody, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderSlot($$result, $$slots["default"])}${renderSlot($$result, $$slots["before-body-end"], renderTemplate`
2276
2292
  ${cmsCustomCode.html_body && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(cmsCustomCode.html_body)}` })}`}
2277
- `)}
2278
-
2279
-
2280
-
2281
- `;
2293
+ `)}` })}`;
2282
2294
  });
2283
2295
 
2284
- const $$file$a = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro";
2285
- const $$url$a = undefined;
2296
+ const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro";
2297
+ const $$url$9 = undefined;
2286
2298
 
2287
- const $$module1$4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2299
+ const $$module1$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2288
2300
  __proto__: null,
2289
- $$metadata: $$metadata$a,
2301
+ $$metadata: $$metadata$9,
2290
2302
  default: $$Base,
2291
- file: $$file$a,
2292
- url: $$url$a
2303
+ file: $$file$9,
2304
+ url: $$url$9
2293
2305
  }, Symbol.toStringTag, { value: 'Module' }));
2294
2306
 
2295
2307
  function resolveSize(transform) {
@@ -2404,20 +2416,34 @@ const tryImageSize = (src) => {
2404
2416
  }
2405
2417
  return dimensions;
2406
2418
  };
2407
- const getImage = (options) => {
2408
- const { src } = options;
2409
- if (typeof src === "string" && !options.aspectRatio && (!options.width || !options.height)) {
2410
- const { width, height } = tryImageSize(src);
2411
- return getImage$1({
2412
- width,
2413
- ...options,
2414
- aspectRatio: width && height ? width / height : 1
2415
- });
2419
+ const getImage = async (options) => {
2420
+ if (options.width) {
2421
+ options.width *= 2;
2422
+ } else if (options.height) {
2423
+ options.height *= 2;
2424
+ }
2425
+ if (typeof options.src === "string" && !options.aspectRatio && (!options.width || !options.height)) {
2426
+ const { width, height } = tryImageSize(options.src);
2427
+ if (width) {
2428
+ if (!options.width) {
2429
+ options.width = width;
2430
+ }
2431
+ options.aspectRatio = height ? width / height : 1;
2432
+ }
2433
+ }
2434
+ const imgAttrs = await getImage$1(options);
2435
+ imgAttrs.src += imgAttrs.src.includes("?") ? "&" : "?";
2436
+ imgAttrs.src += `V=${{"BASE_URL":"/","MODE":"production","DEV":false,"PROD":true}.DEPLOY_RAND || "_"}`;
2437
+ if (typeof imgAttrs.width === "number") {
2438
+ imgAttrs.width /= 2;
2439
+ }
2440
+ if (typeof imgAttrs.height === "number") {
2441
+ imgAttrs.height /= 2;
2416
2442
  }
2417
- return getImage$1(options);
2443
+ return imgAttrs;
2418
2444
  };
2419
2445
 
2420
- const $$module1$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2446
+ const $$module1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2421
2447
  __proto__: null,
2422
2448
  default: getImage,
2423
2449
  tryImageSize,
@@ -2571,15 +2597,15 @@ _sfc_main.setup = (props, ctx) => {
2571
2597
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
2572
2598
  };
2573
2599
 
2574
- const $$module3$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2600
+ const $$module3$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2575
2601
  __proto__: null,
2576
2602
  default: _sfc_main
2577
2603
  }, Symbol.toStringTag, { value: 'Module' }));
2578
2604
 
2579
- const $$metadata$9 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro", { modules: [{ module: $$module1$3, specifier: "../helpers/image", assert: {} }, { module: $$module2$2, specifier: "../components/TopBar.vue", assert: {} }, { module: $$module3$1, specifier: "../components/TheHeader.vue", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2580
- 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/");
2605
+ 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: [] });
2606
+ 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/");
2581
2607
  const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
2582
- const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
2608
+ const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
2583
2609
  Astro2.self = $$PagesHeader;
2584
2610
  const {
2585
2611
  pageContext: {
@@ -2625,7 +2651,7 @@ const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
2625
2651
  hasPhoneLinks: header.contacts_stripe.phone_wpp,
2626
2652
  hasNetworkLinks: header.contacts_stripe.socials,
2627
2653
  contacts,
2628
- ...Astro2.props.topBarProps
2654
+ ...topBarProps
2629
2655
  };
2630
2656
  const logoWebpAttrs = await getImage({
2631
2657
  src: settings.logo,
@@ -2642,21 +2668,21 @@ ${renderSlot($$result, $$slots["header"], renderTemplate`
2642
2668
  `)}`;
2643
2669
  });
2644
2670
 
2645
- const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro";
2646
- const $$url$9 = undefined;
2671
+ const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro";
2672
+ const $$url$8 = undefined;
2647
2673
 
2648
2674
  const $$module2$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2649
2675
  __proto__: null,
2650
- $$metadata: $$metadata$9,
2676
+ $$metadata: $$metadata$8,
2651
2677
  default: $$PagesHeader,
2652
- file: $$file$9,
2653
- url: $$url$9
2678
+ file: $$file$8,
2679
+ url: $$url$8
2654
2680
  }, Symbol.toStringTag, { value: 'Module' }));
2655
2681
 
2656
- const $$metadata$8 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro", { modules: [{ module: $$module1$4, specifier: "./Base.astro", assert: {} }, { module: $$module2$1, specifier: "./PagesHeader.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2657
- 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/");
2682
+ 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: [] });
2683
+ 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/");
2658
2684
  const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
2659
- const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
2685
+ const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
2660
2686
  Astro2.self = $$Pages;
2661
2687
  const { pageContext, title } = Astro2.props;
2662
2688
  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`
@@ -2664,86 +2690,37 @@ const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
2664
2690
  `)}${renderSlot($$result, $$slots["default"])}` })}`;
2665
2691
  });
2666
2692
 
2667
- const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro";
2668
- const $$url$8 = undefined;
2669
-
2670
- const $$module1$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2671
- __proto__: null,
2672
- $$metadata: $$metadata$8,
2673
- default: $$Pages,
2674
- file: $$file$8,
2675
- url: $$url$8
2676
- }, Symbol.toStringTag, { value: 'Module' }));
2677
-
2678
- const $$metadata$7 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Card.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2679
- const $$Astro$7 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Card.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2680
- const $$Card = createComponent(async ($$result, $$props, $$slots) => {
2681
- const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
2682
- Astro2.self = $$Card;
2683
- const { href, title, body } = Astro2.props;
2684
- const STYLES = [];
2685
- for (const STYLE of STYLES)
2686
- $$result.styles.add(STYLE);
2687
- return renderTemplate`${maybeRenderHead($$result)}<li class="link-card astro-L6PLFHRK" data-theme="light">
2688
- <a${addAttribute(href, "href")} class="astro-L6PLFHRK">
2689
- <h2 class="astro-L6PLFHRK">
2690
- ${title}
2691
- <span class="astro-L6PLFHRK">&rarr;</span>
2692
- </h2>
2693
- <p class="astro-L6PLFHRK">
2694
- ${body}
2695
- </p>
2696
- </a>
2697
- </li>
2698
- `;
2699
- });
2700
-
2701
- const $$file$7 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Card.astro";
2693
+ const $$file$7 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro";
2702
2694
  const $$url$7 = undefined;
2703
2695
 
2704
2696
  const $$module2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2705
2697
  __proto__: null,
2706
2698
  $$metadata: $$metadata$7,
2707
- default: $$Card,
2699
+ default: $$Pages,
2708
2700
  file: $$file$7,
2709
2701
  url: $$url$7
2710
2702
  }, Symbol.toStringTag, { value: 'Module' }));
2711
2703
 
2712
- const $$metadata$6 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro", { modules: [{ module: $$module1$5, specifier: "@cloudcommerce/api", assert: {} }, { module: $$module2, specifier: "../components/Card.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2704
+ 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: [] });
2713
2705
  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/");
2714
2706
  const $$Home = createComponent(async ($$result, $$props, $$slots) => {
2715
2707
  const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
2716
2708
  Astro2.self = $$Home;
2717
2709
  const products = (await api.get("products")).data.result;
2718
- const STYLES = [];
2719
- for (const STYLE of STYLES)
2720
- $$result.styles.add(STYLE);
2721
- return renderTemplate`${maybeRenderHead($$result)}<main class="astro-CROUVL72">
2722
- <h1 class="astro-CROUVL72">Welcome to <span class="text-gradient astro-CROUVL72">Astro</span></h1>
2723
- <p class="instructions astro-CROUVL72">
2724
- Check out the <code class="astro-CROUVL72">src/pages</code> directory to get started.<br class="astro-CROUVL72">
2725
- <strong class="astro-CROUVL72">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
2726
- </p>
2727
- <ul role="list" class="link-card-grid astro-CROUVL72">
2728
- ${renderComponent($$result, "Card", $$Card, { "href": "https://docs.astro.build/", "title": "Documentation", "body": "Learn how Astro works and explore the official API docs.", "class": "astro-CROUVL72" })}
2729
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-CROUVL72" })}
2730
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-CROUVL72" })}
2731
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/chat/", "title": "Chat", "body": "Come say hi to our amazing Discord community. \u2764\uFE0F", "class": "astro-CROUVL72" })}
2732
- </ul>
2733
- <ul role="list" class="mt-3 fs-20 astro-CROUVL72">
2734
- ${products.map((product) => renderTemplate`<li class="astro-CROUVL72">
2735
- <a${addAttribute(`/${product.slug}`, "href")} class="astro-CROUVL72">${product.sku}</a>
2710
+ return renderTemplate`${maybeRenderHead($$result)}<main>
2711
+ <h1>Welcome to <span class="text-primary">Astro</span></h1>
2712
+ <ul role="list" class="mt-3 fs-20">
2713
+ ${products.map((product) => renderTemplate`<li>
2714
+ <a${addAttribute(`/${product.slug}`, "href")}>${product.sku}</a>
2736
2715
  </li>`)}
2737
2716
  </ul>
2738
- </main>
2739
-
2740
- `;
2717
+ </main>`;
2741
2718
  });
2742
2719
 
2743
2720
  const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro";
2744
2721
  const $$url$6 = undefined;
2745
2722
 
2746
- const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2723
+ const $$module3$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2747
2724
  __proto__: null,
2748
2725
  $$metadata: $$metadata$6,
2749
2726
  default: $$Home,
@@ -2751,7 +2728,7 @@ const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
2751
2728
  url: $$url$6
2752
2729
  }, Symbol.toStringTag, { value: 'Module' }));
2753
2730
 
2754
- const $$metadata$5 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", { modules: [{ module: $$module2$4, specifier: "../lib/ssr-context", assert: {} }, { module: $$module1$2, specifier: "../lib/layouts/Pages.astro", assert: {} }, { module: $$module3, specifier: "../lib/main/Home.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2731
+ 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: [] });
2755
2732
  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/");
2756
2733
  const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
2757
2734
  const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
@@ -2766,8 +2743,11 @@ const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
2766
2743
  }
2767
2744
  loadError = err;
2768
2745
  }
2769
- return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "HomeMain", $$Home, { "pageContext": pageContext })}` })}`}
2770
- ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(loadError.responseHTML)}` })}`}`;
2746
+ return renderTemplate`<html${addAttribute(pageContext?.lang.replace("_", "-"), "lang")}>
2747
+ ${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "HomeMain", $$Home, { "pageContext": pageContext })}` })}`}
2748
+ ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(loadError.responseHTML)}` })}`}
2749
+
2750
+ </html>`;
2771
2751
  });
2772
2752
 
2773
2753
  const $$file$5 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro";
@@ -2781,36 +2761,24 @@ const _page1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2781
2761
  url: $$url$5
2782
2762
  }, Symbol.toStringTag, { value: 'Module' }));
2783
2763
 
2784
- const $$metadata$4 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/fallback.astro", { modules: [{ module: $$module1$2, specifier: "../layouts/Pages.astro", assert: {} }, { module: $$module2, specifier: "../components/Card.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2785
- const $$Astro$4 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/fallback.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2764
+ 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: [] });
2765
+ 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/");
2786
2766
  const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
2787
2767
  const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
2788
2768
  Astro2.self = $$Fallback$1;
2789
- const { pageContext } = Astro2.props;
2790
- const STYLES = [];
2791
- for (const STYLE of STYLES)
2792
- $$result.styles.add(STYLE);
2793
- return renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext, "class": "astro-ABZGQ24L" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-ABZGQ24L">
2794
- <h1 class="astro-ABZGQ24L">Error :/</h1>
2795
- <p class="instructions astro-ABZGQ24L">
2796
- Check out the <code class="astro-ABZGQ24L">src/pages</code> directory to get started.<br class="astro-ABZGQ24L">
2797
- <strong class="astro-ABZGQ24L">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
2798
- </p>
2799
- <ul role="list" class="link-card-grid astro-ABZGQ24L">
2800
- ${renderComponent($$result, "Card", $$Card, { "href": "https://docs.astro.build/", "title": "Documentation", "body": "Learn how Astro works and explore the official API docs.", "class": "astro-ABZGQ24L" })}
2801
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-ABZGQ24L" })}
2802
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-ABZGQ24L" })}
2803
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/chat/", "title": "Chat", "body": "Come say hi to our amazing Discord community. \u2764\uFE0F", "class": "astro-ABZGQ24L" })}
2804
- </ul>
2805
- </main>` })}
2806
-
2807
- `;
2769
+ return renderTemplate`${maybeRenderHead($$result)}<main>
2770
+ <h1>Error :/</h1>
2771
+ <p class="instructions">
2772
+ Check out the <code>src/pages</code> directory to get started.<br>
2773
+ <strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
2774
+ </p>
2775
+ </main>`;
2808
2776
  });
2809
2777
 
2810
- const $$file$4 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/fallback.astro";
2778
+ const $$file$4 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Fallback.astro";
2811
2779
  const $$url$4 = undefined;
2812
2780
 
2813
- const $$module1$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2781
+ const $$module3$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2814
2782
  __proto__: null,
2815
2783
  $$metadata: $$metadata$4,
2816
2784
  default: $$Fallback$1,
@@ -2818,7 +2786,7 @@ const $$module1$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
2818
2786
  url: $$url$4
2819
2787
  }, Symbol.toStringTag, { value: 'Module' }));
2820
2788
 
2821
- const $$metadata$3 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro", { modules: [{ module: $$module1$1, specifier: "../lib/views/fallback.astro", assert: {} }, { module: $$module2$4, specifier: "../lib/ssr-context", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2789
+ 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: [] });
2822
2790
  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/");
2823
2791
  const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
2824
2792
  const Astro2 = $$result.createAstro($$Astro$3, $$props, $$slots);
@@ -2829,7 +2797,9 @@ const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
2829
2797
  } catch (err) {
2830
2798
  return err.astroResponse;
2831
2799
  }
2832
- return renderTemplate`${renderComponent($$result, "ViewFallback", $$Fallback$1, { "pageContext": pageContext })}`;
2800
+ return renderTemplate`<html${addAttribute(pageContext?.lang.replace("_", "-"), "lang")}>
2801
+ ${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "FallbackMain", $$Fallback$1, { "pageContext": pageContext })}` })}
2802
+ </html>`;
2833
2803
  });
2834
2804
 
2835
2805
  const $$file$3 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro";
@@ -2862,41 +2832,37 @@ const _page3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2862
2832
  url: $$url$2
2863
2833
  }, Symbol.toStringTag, { value: 'Module' }));
2864
2834
 
2865
- const $$metadata$1 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/[...slug].astro", { modules: [{ module: $$module1$2, specifier: "../layouts/Pages.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2866
- const $$Astro$1 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/[...slug].astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2867
- const $$$1 = createComponent(async ($$result, $$props, $$slots) => {
2835
+ const $$metadata$1 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Wildcard.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2836
+ const $$Astro$1 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Wildcard.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2837
+ const $$Wildcard = createComponent(async ($$result, $$props, $$slots) => {
2868
2838
  const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
2869
- Astro2.self = $$$1;
2870
- const { pageContext } = Astro2.props;
2871
- const { apiResource, apiDoc } = pageContext;
2872
- const STYLES = [];
2873
- for (const STYLE of STYLES)
2874
- $$result.styles.add(STYLE);
2875
- return renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext, "class": "astro-SFD47MBJ" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-SFD47MBJ">
2876
- <h1 class="astro-SFD47MBJ">Hello <span class="text-gradient astro-SFD47MBJ">${apiDoc.name}</span></h1>
2877
- <hr class="astro-SFD47MBJ">
2878
- <div class="mt-3 astro-SFD47MBJ">
2879
- <mark class="astro-SFD47MBJ">${apiDoc._id}</mark> from <i class="astro-SFD47MBJ">${apiResource}</i>
2880
- <p class="astro-SFD47MBJ">${Math.random()}</p>
2881
- <em class="astro-SFD47MBJ">Lorem ipsum dolor sit amet</em>
2882
- </div>
2883
- </main>` })}
2884
-
2885
- `;
2839
+ Astro2.self = $$Wildcard;
2840
+ const {
2841
+ pageContext: { apiResource, apiDoc }
2842
+ } = Astro2.props;
2843
+ return renderTemplate`${maybeRenderHead($$result)}<main>
2844
+ <h1>Hello <span class="text-gradient">${apiDoc.name}</span></h1>
2845
+ <hr>
2846
+ <div class="mt-3">
2847
+ <mark>${apiDoc._id}</mark> from <i>${apiResource}</i>
2848
+ <p>${Math.random()}</p>
2849
+ <em>Lorem ipsum dolor sit amet</em>
2850
+ </div>
2851
+ </main>`;
2886
2852
  });
2887
2853
 
2888
- const $$file$1 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/[...slug].astro";
2854
+ const $$file$1 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Wildcard.astro";
2889
2855
  const $$url$1 = undefined;
2890
2856
 
2891
- const $$module1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2857
+ const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2892
2858
  __proto__: null,
2893
2859
  $$metadata: $$metadata$1,
2894
- default: $$$1,
2860
+ default: $$Wildcard,
2895
2861
  file: $$file$1,
2896
2862
  url: $$url$1
2897
2863
  }, Symbol.toStringTag, { value: 'Module' }));
2898
2864
 
2899
- const $$metadata = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro", { modules: [{ module: $$module1, specifier: "../lib/views/[...slug].astro", assert: {} }, { module: $$module2$4, specifier: "../lib/ssr-context", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2865
+ const $$metadata = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro", { modules: [{ module: $$module1$3, specifier: "../lib/ssr-context", assert: {} }, { module: $$module2, specifier: "../lib/layouts/Pages.astro", assert: {} }, { module: $$module3, specifier: "../lib/main/Wildcard.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2900
2866
  const $$Astro = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2901
2867
  const $$ = createComponent(async ($$result, $$props, $$slots) => {
2902
2868
  const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
@@ -2914,8 +2880,11 @@ const $$ = createComponent(async ($$result, $$props, $$slots) => {
2914
2880
  }
2915
2881
  loadError = err;
2916
2882
  }
2917
- return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "ViewWildcard", $$$1, { "pageContext": pageContext })}`}
2918
- ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(loadError.responseHTML)}` })}`}`;
2883
+ return renderTemplate`<html${addAttribute(pageContext?.lang.replace("_", "-"), "lang")}>
2884
+ ${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "WildcardMain", $$Wildcard, { "pageContext": pageContext })}` })}`}
2885
+ ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(loadError.responseHTML)}` })}`}
2886
+
2887
+ </html>`;
2919
2888
  });
2920
2889
 
2921
2890
  const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro";
@@ -3001,7 +2970,7 @@ function deserializeManifest(serializedManifest) {
3001
2970
  };
3002
2971
  }
3003
2972
 
3004
- const _manifest = Object.assign(deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":[],"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":{"type":"endpoint","route":"/_image","pattern":"^\\/_image$","segments":[[{"content":"_image","dynamic":false,"spread":false}]],"params":[],"component":"../../node_modules/.pnpm/@astrojs+image@0.7.1/node_modules/@astrojs/image/dist/endpoint.js","pathname":"/_image","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...2fc8f657.css","assets/_...7af61807.css","assets/fallback-index.552fd862.css","assets/index.73f26ab5.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/_...2fc8f657.css","assets/_...7af61807.css","assets/fallback-index.552fd862.css","assets/fallback.a3f85892.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/_...2fc8f657.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/_...2fc8f657.css","assets/_...7af61807.css","assets/_...b330a555.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/_...b330a555.css","/assets/fallback.a3f85892.css","/assets/fallback-index.552fd862.css","/assets/index.73f26ab5.css","/assets/_...7af61807.css","/assets/_...2fc8f657.css","/manifest.webmanifest","/registerSW.js","/client.80baece3.js","/hoisted.46e058d2.js","/page.3aa82516.js","/robots.txt","/sw.js","/workbox-361aba39.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"]}), {
2973
+ const _manifest = Object.assign(deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":[],"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":{"type":"endpoint","route":"/_image","pattern":"^\\/_image$","segments":[[{"content":"_image","dynamic":false,"spread":false}]],"params":[],"component":"../../node_modules/.pnpm/@astrojs+image@0.7.1/node_modules/@astrojs/image/dist/endpoint.js","pathname":"/_image","_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":"/","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-361aba39.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"]}), {
3005
2974
  pageMap: pageMap,
3006
2975
  renderers: renderers
3007
2976
  });