cloudcommerce 0.0.86 → 0.0.88

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 (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/action.yml +1 -1
  3. package/package.json +1 -1
  4. package/packages/api/package.json +1 -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/package.json +1 -1
  10. package/packages/cli/package.json +1 -1
  11. package/packages/config/package.json +1 -1
  12. package/packages/events/package.json +1 -1
  13. package/packages/firebase/package.json +1 -1
  14. package/packages/modules/package.json +1 -1
  15. package/packages/passport/package.json +1 -1
  16. package/packages/ssr/package.json +1 -1
  17. package/packages/storefront/astro.config.mjs +1 -4
  18. package/packages/storefront/dist/client/assets/_...73e01db2.css +4 -0
  19. package/packages/storefront/dist/client/assets/{_...2fc8f657.css → _...ee104f19.css} +1 -1
  20. package/packages/storefront/dist/server/entry.mjs +145 -181
  21. package/packages/storefront/package.json +1 -2
  22. package/packages/storefront/src/assets/pico.css +2626 -0
  23. package/packages/storefront/src/lib/helpers/image.ts +20 -11
  24. package/packages/storefront/src/lib/layouts/Base.astro +4 -105
  25. package/packages/storefront/src/lib/layouts/BaseBody.astro +108 -0
  26. package/packages/storefront/src/lib/layouts/PagesHeader.astro +1 -1
  27. package/packages/storefront/src/lib/main/Fallback.astro +15 -0
  28. package/packages/storefront/src/lib/main/Home.astro +1 -66
  29. package/packages/storefront/src/lib/main/Wildcard.astro +21 -0
  30. package/packages/storefront/src/lib/ssr-context.ts +2 -2
  31. package/packages/storefront/src/pages/[...slug].astro +10 -2
  32. package/packages/storefront/src/pages/fallback.astro +8 -2
  33. package/packages/storefront/src/pages/index.astro +3 -0
  34. package/packages/types/package.json +1 -1
  35. package/packages/storefront/dist/client/assets/_...7af61807.css +0 -4
  36. package/packages/storefront/dist/client/assets/_...b330a555.css +0 -1
  37. package/packages/storefront/dist/client/assets/fallback-index.552fd862.css +0 -1
  38. package/packages/storefront/dist/client/assets/fallback.a3f85892.css +0 -1
  39. package/packages/storefront/dist/client/assets/index.73f26ab5.css +0 -1
  40. package/packages/storefront/src/lib/components/Card.astro +0 -74
  41. package/packages/storefront/src/lib/views/[...slug].astro +0 -77
  42. package/packages/storefront/src/lib/views/app/index.astro +0 -0
  43. package/packages/storefront/src/lib/views/fallback.astro +0 -81
  44. 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,
@@ -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) {
@@ -2405,24 +2417,33 @@ const tryImageSize = (src) => {
2405
2417
  return dimensions;
2406
2418
  };
2407
2419
  const getImage = async (options) => {
2408
- const { src } = options;
2409
- let imgAttrs;
2410
- if (typeof src === "string" && !options.aspectRatio && (!options.width || !options.height)) {
2411
- const { width, height } = tryImageSize(src);
2412
- imgAttrs = await getImage$1({
2413
- width,
2414
- ...options,
2415
- aspectRatio: width && height ? width / height : 1
2416
- });
2417
- } else {
2418
- imgAttrs = await getImage$1(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
+ }
2419
2433
  }
2434
+ const imgAttrs = await getImage$1(options);
2420
2435
  imgAttrs.src += imgAttrs.src.includes("?") ? "&" : "?";
2421
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;
2442
+ }
2422
2443
  return imgAttrs;
2423
2444
  };
2424
2445
 
2425
- const $$module1$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2446
+ const $$module1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2426
2447
  __proto__: null,
2427
2448
  default: getImage,
2428
2449
  tryImageSize,
@@ -2576,15 +2597,15 @@ _sfc_main.setup = (props, ctx) => {
2576
2597
  return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
2577
2598
  };
2578
2599
 
2579
- const $$module3$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2600
+ const $$module3$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2580
2601
  __proto__: null,
2581
2602
  default: _sfc_main
2582
2603
  }, Symbol.toStringTag, { value: 'Module' }));
2583
2604
 
2584
- 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: [] });
2585
- 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/");
2586
2607
  const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
2587
- const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
2608
+ const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
2588
2609
  Astro2.self = $$PagesHeader;
2589
2610
  const {
2590
2611
  pageContext: {
@@ -2630,7 +2651,7 @@ const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
2630
2651
  hasPhoneLinks: header.contacts_stripe.phone_wpp,
2631
2652
  hasNetworkLinks: header.contacts_stripe.socials,
2632
2653
  contacts,
2633
- ...Astro2.props.topBarProps
2654
+ ...topBarProps
2634
2655
  };
2635
2656
  const logoWebpAttrs = await getImage({
2636
2657
  src: settings.logo,
@@ -2647,21 +2668,21 @@ ${renderSlot($$result, $$slots["header"], renderTemplate`
2647
2668
  `)}`;
2648
2669
  });
2649
2670
 
2650
- const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro";
2651
- 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;
2652
2673
 
2653
2674
  const $$module2$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2654
2675
  __proto__: null,
2655
- $$metadata: $$metadata$9,
2676
+ $$metadata: $$metadata$8,
2656
2677
  default: $$PagesHeader,
2657
- file: $$file$9,
2658
- url: $$url$9
2678
+ file: $$file$8,
2679
+ url: $$url$8
2659
2680
  }, Symbol.toStringTag, { value: 'Module' }));
2660
2681
 
2661
- 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: [] });
2662
- 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/");
2663
2684
  const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
2664
- const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
2685
+ const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
2665
2686
  Astro2.self = $$Pages;
2666
2687
  const { pageContext, title } = Astro2.props;
2667
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`
@@ -2669,86 +2690,37 @@ const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
2669
2690
  `)}${renderSlot($$result, $$slots["default"])}` })}`;
2670
2691
  });
2671
2692
 
2672
- const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro";
2673
- const $$url$8 = undefined;
2674
-
2675
- const $$module1$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2676
- __proto__: null,
2677
- $$metadata: $$metadata$8,
2678
- default: $$Pages,
2679
- file: $$file$8,
2680
- url: $$url$8
2681
- }, Symbol.toStringTag, { value: 'Module' }));
2682
-
2683
- 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: [] });
2684
- 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/");
2685
- const $$Card = createComponent(async ($$result, $$props, $$slots) => {
2686
- const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
2687
- Astro2.self = $$Card;
2688
- const { href, title, body } = Astro2.props;
2689
- const STYLES = [];
2690
- for (const STYLE of STYLES)
2691
- $$result.styles.add(STYLE);
2692
- return renderTemplate`${maybeRenderHead($$result)}<li class="link-card astro-L6PLFHRK" data-theme="light">
2693
- <a${addAttribute(href, "href")} class="astro-L6PLFHRK">
2694
- <h2 class="astro-L6PLFHRK">
2695
- ${title}
2696
- <span class="astro-L6PLFHRK">&rarr;</span>
2697
- </h2>
2698
- <p class="astro-L6PLFHRK">
2699
- ${body}
2700
- </p>
2701
- </a>
2702
- </li>
2703
- `;
2704
- });
2705
-
2706
- 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";
2707
2694
  const $$url$7 = undefined;
2708
2695
 
2709
2696
  const $$module2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2710
2697
  __proto__: null,
2711
2698
  $$metadata: $$metadata$7,
2712
- default: $$Card,
2699
+ default: $$Pages,
2713
2700
  file: $$file$7,
2714
2701
  url: $$url$7
2715
2702
  }, Symbol.toStringTag, { value: 'Module' }));
2716
2703
 
2717
- 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: [] });
2718
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/");
2719
2706
  const $$Home = createComponent(async ($$result, $$props, $$slots) => {
2720
2707
  const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
2721
2708
  Astro2.self = $$Home;
2722
2709
  const products = (await api.get("products")).data.result;
2723
- const STYLES = [];
2724
- for (const STYLE of STYLES)
2725
- $$result.styles.add(STYLE);
2726
- return renderTemplate`${maybeRenderHead($$result)}<main class="astro-CROUVL72">
2727
- <h1 class="astro-CROUVL72">Welcome to <span class="text-gradient astro-CROUVL72">Astro</span></h1>
2728
- <p class="instructions astro-CROUVL72">
2729
- Check out the <code class="astro-CROUVL72">src/pages</code> directory to get started.<br class="astro-CROUVL72">
2730
- <strong class="astro-CROUVL72">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
2731
- </p>
2732
- <ul role="list" class="link-card-grid astro-CROUVL72">
2733
- ${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" })}
2734
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-CROUVL72" })}
2735
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-CROUVL72" })}
2736
- ${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" })}
2737
- </ul>
2738
- <ul role="list" class="mt-3 fs-20 astro-CROUVL72">
2739
- ${products.map((product) => renderTemplate`<li class="astro-CROUVL72">
2740
- <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>
2741
2715
  </li>`)}
2742
2716
  </ul>
2743
- </main>
2744
-
2745
- `;
2717
+ </main>`;
2746
2718
  });
2747
2719
 
2748
2720
  const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro";
2749
2721
  const $$url$6 = undefined;
2750
2722
 
2751
- const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2723
+ const $$module3$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2752
2724
  __proto__: null,
2753
2725
  $$metadata: $$metadata$6,
2754
2726
  default: $$Home,
@@ -2756,7 +2728,7 @@ const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
2756
2728
  url: $$url$6
2757
2729
  }, Symbol.toStringTag, { value: 'Module' }));
2758
2730
 
2759
- 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: [] });
2760
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/");
2761
2733
  const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
2762
2734
  const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
@@ -2771,8 +2743,11 @@ const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
2771
2743
  }
2772
2744
  loadError = err;
2773
2745
  }
2774
- return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "HomeMain", $$Home, { "pageContext": pageContext })}` })}`}
2775
- ${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>`;
2776
2751
  });
2777
2752
 
2778
2753
  const $$file$5 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro";
@@ -2786,36 +2761,24 @@ const _page1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2786
2761
  url: $$url$5
2787
2762
  }, Symbol.toStringTag, { value: 'Module' }));
2788
2763
 
2789
- 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: [] });
2790
- 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/");
2791
2766
  const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
2792
2767
  const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
2793
2768
  Astro2.self = $$Fallback$1;
2794
- const { pageContext } = Astro2.props;
2795
- const STYLES = [];
2796
- for (const STYLE of STYLES)
2797
- $$result.styles.add(STYLE);
2798
- return renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext, "class": "astro-ABZGQ24L" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-ABZGQ24L">
2799
- <h1 class="astro-ABZGQ24L">Error :/</h1>
2800
- <p class="instructions astro-ABZGQ24L">
2801
- Check out the <code class="astro-ABZGQ24L">src/pages</code> directory to get started.<br class="astro-ABZGQ24L">
2802
- <strong class="astro-ABZGQ24L">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
2803
- </p>
2804
- <ul role="list" class="link-card-grid astro-ABZGQ24L">
2805
- ${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" })}
2806
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-ABZGQ24L" })}
2807
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-ABZGQ24L" })}
2808
- ${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" })}
2809
- </ul>
2810
- </main>` })}
2811
-
2812
- `;
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>`;
2813
2776
  });
2814
2777
 
2815
- 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";
2816
2779
  const $$url$4 = undefined;
2817
2780
 
2818
- const $$module1$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2781
+ const $$module3$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2819
2782
  __proto__: null,
2820
2783
  $$metadata: $$metadata$4,
2821
2784
  default: $$Fallback$1,
@@ -2823,7 +2786,7 @@ const $$module1$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
2823
2786
  url: $$url$4
2824
2787
  }, Symbol.toStringTag, { value: 'Module' }));
2825
2788
 
2826
- 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: [] });
2827
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/");
2828
2791
  const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
2829
2792
  const Astro2 = $$result.createAstro($$Astro$3, $$props, $$slots);
@@ -2834,7 +2797,9 @@ const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
2834
2797
  } catch (err) {
2835
2798
  return err.astroResponse;
2836
2799
  }
2837
- 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>`;
2838
2803
  });
2839
2804
 
2840
2805
  const $$file$3 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro";
@@ -2867,41 +2832,37 @@ const _page3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2867
2832
  url: $$url$2
2868
2833
  }, Symbol.toStringTag, { value: 'Module' }));
2869
2834
 
2870
- 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: [] });
2871
- 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/");
2872
- 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) => {
2873
2838
  const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
2874
- Astro2.self = $$$1;
2875
- const { pageContext } = Astro2.props;
2876
- const { apiResource, apiDoc } = pageContext;
2877
- const STYLES = [];
2878
- for (const STYLE of STYLES)
2879
- $$result.styles.add(STYLE);
2880
- return renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext, "class": "astro-SFD47MBJ" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-SFD47MBJ">
2881
- <h1 class="astro-SFD47MBJ">Hello <span class="text-gradient astro-SFD47MBJ">${apiDoc.name}</span></h1>
2882
- <hr class="astro-SFD47MBJ">
2883
- <div class="mt-3 astro-SFD47MBJ">
2884
- <mark class="astro-SFD47MBJ">${apiDoc._id}</mark> from <i class="astro-SFD47MBJ">${apiResource}</i>
2885
- <p class="astro-SFD47MBJ">${Math.random()}</p>
2886
- <em class="astro-SFD47MBJ">Lorem ipsum dolor sit amet</em>
2887
- </div>
2888
- </main>` })}
2889
-
2890
- `;
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>`;
2891
2852
  });
2892
2853
 
2893
- 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";
2894
2855
  const $$url$1 = undefined;
2895
2856
 
2896
- const $$module1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2857
+ const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2897
2858
  __proto__: null,
2898
2859
  $$metadata: $$metadata$1,
2899
- default: $$$1,
2860
+ default: $$Wildcard,
2900
2861
  file: $$file$1,
2901
2862
  url: $$url$1
2902
2863
  }, Symbol.toStringTag, { value: 'Module' }));
2903
2864
 
2904
- 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: [] });
2905
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/");
2906
2867
  const $$ = createComponent(async ($$result, $$props, $$slots) => {
2907
2868
  const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
@@ -2919,8 +2880,11 @@ const $$ = createComponent(async ($$result, $$props, $$slots) => {
2919
2880
  }
2920
2881
  loadError = err;
2921
2882
  }
2922
- return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "ViewWildcard", $$$1, { "pageContext": pageContext })}`}
2923
- ${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>`;
2924
2888
  });
2925
2889
 
2926
2890
  const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro";
@@ -3006,7 +2970,7 @@ function deserializeManifest(serializedManifest) {
3006
2970
  };
3007
2971
  }
3008
2972
 
3009
- 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"]}), {
3010
2974
  pageMap: pageMap,
3011
2975
  renderers: renderers
3012
2976
  });