cloudcommerce 0.0.75 → 0.0.77

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 (62) hide show
  1. package/.vscode/extensions.json +2 -1
  2. package/.vscode/settings.json +9 -0
  3. package/CHANGELOG.md +26 -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/config/firebase.json +7 -0
  12. package/packages/cli/package.json +1 -1
  13. package/packages/config/package.json +1 -1
  14. package/packages/events/package.json +1 -1
  15. package/packages/firebase/package.json +1 -1
  16. package/packages/modules/lib/firebase.js +4 -1
  17. package/packages/modules/lib/firebase.js.map +1 -1
  18. package/packages/modules/package.json +1 -1
  19. package/packages/modules/src/firebase.ts +4 -1
  20. package/packages/passport/package.json +1 -1
  21. package/packages/ssr/lib/firebase.js +6 -1
  22. package/packages/ssr/lib/firebase.js.map +1 -1
  23. package/packages/ssr/package.json +1 -1
  24. package/packages/ssr/src/firebase.ts +6 -1
  25. package/packages/storefront/astro.config.mjs +9 -3
  26. package/packages/storefront/dist/client/assets/_...04e396d7.css +4 -0
  27. package/packages/storefront/dist/client/assets/_...65ca64e2.css +1 -0
  28. package/packages/storefront/dist/client/assets/{fallback.9cd2ed3f.css → _...b330a555.css} +1 -1
  29. package/packages/storefront/dist/client/assets/fallback-index.552fd862.css +1 -0
  30. package/packages/storefront/dist/client/assets/{_...27b7eb4d.css → fallback.a3f85892.css} +1 -1
  31. package/packages/storefront/dist/client/assets/{index.c5a9ea80.css → index.73f26ab5.css} +1 -1
  32. package/packages/storefront/dist/client/client.80baece3.js +1 -0
  33. package/packages/storefront/dist/client/hoisted.61a32b69.js +661 -0
  34. package/packages/storefront/dist/server/entry.mjs +324 -161
  35. package/packages/storefront/package.json +7 -1
  36. package/packages/storefront/src/html.d.ts +23 -0
  37. package/packages/storefront/src/lib/components/Card.astro +1 -1
  38. package/packages/storefront/src/lib/components/LoginModal.vue +14 -20
  39. package/packages/storefront/src/lib/layouts/Base.astro +127 -0
  40. package/packages/storefront/src/lib/layouts/Checkout.astro +0 -0
  41. package/packages/storefront/src/lib/layouts/Pages.astro +30 -0
  42. package/packages/storefront/src/lib/layouts/meta/Head.astro +62 -1
  43. package/packages/storefront/src/lib/layouts/meta/Json.astro +49 -10
  44. package/packages/storefront/src/lib/main/Home.astro +84 -0
  45. package/packages/storefront/src/lib/main/Wildcard.astro +0 -0
  46. package/packages/storefront/src/lib/ssr-context.ts +2 -1
  47. package/packages/storefront/src/lib/views/[...slug].astro +3 -3
  48. package/packages/storefront/src/lib/views/fallback.astro +5 -3
  49. package/packages/storefront/src/lib/views/index.astro +4 -3
  50. package/packages/storefront/src/pages/index.astro +7 -2
  51. package/packages/storefront/tailwind.config.ts +30 -0
  52. package/packages/storefront/uno.config.ts +74 -0
  53. package/packages/types/package.json +1 -1
  54. package/packages/storefront/dist/client/LoginModal.d6b935cf.js +0 -1
  55. package/packages/storefront/dist/client/assets/_...b3f65c5c.css +0 -1
  56. package/packages/storefront/dist/client/assets/fallback-index.90217cf0.css +0 -1
  57. package/packages/storefront/dist/client/chunks/index.esm.69f70489.js +0 -1726
  58. package/packages/storefront/dist/client/chunks/index.esm2017.1194d1a1.js +0 -457
  59. package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.a7337834.js +0 -1
  60. package/packages/storefront/dist/client/client.80b904f3.js +0 -1
  61. package/packages/storefront/dist/client/hoisted.24787260.js +0 -376
  62. package/packages/storefront/src/lib/layouts/Layout.astro +0 -84
@@ -1,14 +1,18 @@
1
1
  import * as adapter from '@astrojs/node/server.js';
2
- import { defineComponent, h, createSSRApp, ref, useSSRContext } from 'vue';
3
- import { renderToString as renderToString$1, ssrInterpolate, ssrRenderSlot } from 'vue/server-renderer';
2
+ import { defineComponent, h, createSSRApp } from 'vue';
3
+ import { renderToString as renderToString$1 } from 'vue/server-renderer';
4
4
  import { escape } from 'html-escaper';
5
5
  import mime from 'mime';
6
6
  import sharp from 'sharp';
7
- /* empty css *//* empty css */import { fileURLToPath } from 'url';
7
+ /* empty css */import { fileURLToPath } from 'url';
8
8
  import fs from 'fs';
9
9
  import { resolve } from 'path';
10
10
  import Deepmerge from '@fastify/deepmerge';
11
- /* empty css *//* empty css *//* empty css */import 'kleur/colors';
11
+ /* empty css */import * as $$module1$6 from 'color';
12
+ import $$module1__default from 'color';
13
+ import * as $$module1$5 from '@ecomplus/utils';
14
+ import { img, price } from '@ecomplus/utils';
15
+ /* empty css *//* empty css *//* empty css *//* empty css */import 'kleur/colors';
12
16
  import 'string-width';
13
17
  import 'path-browserify';
14
18
  import { compile } from 'path-to-regexp';
@@ -1024,6 +1028,18 @@ function spreadAttributes(values, _name, { class: scopedClassName } = {}) {
1024
1028
  }
1025
1029
  return markHTMLString(output);
1026
1030
  }
1031
+ function defineStyleVars(defs) {
1032
+ let output = "";
1033
+ let arr = !Array.isArray(defs) ? [defs] : defs;
1034
+ for (const vars of arr) {
1035
+ for (const [key, value] of Object.entries(vars)) {
1036
+ if (value || value === 0) {
1037
+ output += `--${key}: ${value};`;
1038
+ }
1039
+ }
1040
+ }
1041
+ return markHTMLString(output);
1042
+ }
1027
1043
 
1028
1044
  const AstroJSX = "astro:jsx";
1029
1045
  const Empty = Symbol("empty");
@@ -1834,55 +1850,140 @@ const $$module2$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
1834
1850
  loadPageContext
1835
1851
  }, Symbol.toStringTag, { value: 'Module' }));
1836
1852
 
1837
- const $$metadata$a = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Head.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1838
- const $$Astro$a = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Head.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1853
+ const $$metadata$b = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Head.astro", { modules: [{ module: $$module1$5, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1854
+ const $$Astro$b = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Head.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1839
1855
  const $$Head = createComponent(async ($$result, $$props, $$slots) => {
1840
- const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
1856
+ const Astro2 = $$result.createAstro($$Astro$b, $$props, $$slots);
1841
1857
  Astro2.self = $$Head;
1858
+ const {
1859
+ storeId,
1860
+ cmsContent,
1861
+ apiDoc,
1862
+ lang,
1863
+ domain,
1864
+ primaryColor,
1865
+ settings,
1866
+ cms
1867
+ } = Astro2.props.pageContext;
1868
+ const state = apiDoc || cmsContent || {};
1869
+ const title = state.meta_title || state.name || state.title || Astro2.props.title || settings.name;
1870
+ const description = state.meta_description || state.short_description || settings.description;
1871
+ const canonicalUrl = new URL(Astro2.url.pathname, Astro2.site || `https://${domain}`);
1872
+ const cmsSocial = cms("social");
1873
+ const ogLocale = lang.length === 2 ? lang : lang.substring(0, 2) + lang.slice(3).toUpperCase();
1874
+ let ogImage;
1875
+ if (apiDoc) {
1876
+ const picture = img(state, null, "zoom");
1877
+ ogImage = picture && picture.url;
1878
+ }
1879
+ if (!ogImage) {
1880
+ if (cmsSocial.og_image) {
1881
+ ogImage = cmsSocial.og_image.charAt(0) === "/" ? `https://${domain}${cmsSocial.og_image}` : cmsSocial.og_image;
1882
+ }
1883
+ } else {
1884
+ ogImage = ogImage.replace(/(\w+\.)?(ecoms\d)\.com/i, "$2-nyc3.nyc3.cdn.digitaloceanspaces.com");
1885
+ }
1842
1886
  return renderTemplate`<meta charset="UTF-8">
1843
1887
  <meta name="viewport" content="width=device-width">
1844
- <link rel="icon" type="image/x-icon" href="/favicon.ico">
1888
+ <meta name="theme-color"${addAttribute(primaryColor, "content")}>
1889
+ <link rel="icon"${addAttribute(settings.favicon || "/favicon.ico", "href")}>
1890
+ <title>${title}</title>
1891
+ <meta name="description"${addAttribute(description, "content")}>
1892
+ <meta name="author"${addAttribute(settings.name, "content")}>
1893
+ <meta name="generator" content="E-Com Plus Cloud Commerce">
1894
+ <link rel="canonical"${addAttribute(canonicalUrl, "href")}>
1895
+ <link rel="apple-touch-icon"${addAttribute(settings.icon, "href")}>
1896
+ <meta name="apple-mobile-web-app-capable" content="yes">
1897
+ <meta name="apple-mobile-web-app-status-bar-style" content="default">
1898
+
1899
+ <meta property="og:site_name"${addAttribute(settings.name, "content")}>
1900
+ <meta property="og:url"${addAttribute(canonicalUrl, "content")}>
1901
+ <meta property="og:title"${addAttribute(title, "content")}>
1902
+ <meta property="og:description"${addAttribute(description, "content")}>
1903
+ <meta property="og:type" content="website">
1904
+ <meta property="og:locale"${addAttribute(ogLocale, "content")}>
1905
+ ${ogImage && renderTemplate`<meta property="og:image"${addAttribute(ogImage, "content")}>`}
1906
+ ${cmsSocial.fb_app_id && renderTemplate`<meta property="fb:app_id"${addAttribute(cmsSocial.fb_app_id, "content")}>`}
1907
+ <meta name="twitter:card" content="summary">
1908
+ ${cmsSocial.twitter_username && renderTemplate`<meta name="twitter:site"${addAttribute(cmsSocial.twitter_username, "content")}>`}
1909
+
1910
+ <link rel="preconnect" href="https://ecomplus.io/" crossorigin>
1911
+ <link rel="dns-prefetch" href="https://ecomplus.io/">
1912
+ <meta name="ecom-store-id"${addAttribute(String(storeId), "content")}>
1845
1913
  `;
1846
1914
  });
1847
1915
 
1848
- const $$file$a = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Head.astro";
1849
- const $$url$a = undefined;
1916
+ const $$file$b = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Head.astro";
1917
+ const $$url$b = undefined;
1850
1918
 
1851
1919
  const $$module2$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1852
1920
  __proto__: null,
1853
- $$metadata: $$metadata$a,
1921
+ $$metadata: $$metadata$b,
1854
1922
  default: $$Head,
1855
- file: $$file$a,
1856
- url: $$url$a
1923
+ file: $$file$b,
1924
+ url: $$url$b
1857
1925
  }, Symbol.toStringTag, { value: 'Module' }));
1858
1926
 
1859
1927
  var __freeze = Object.freeze;
1860
1928
  var __defProp = Object.defineProperty;
1861
1929
  var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) }));
1862
1930
  var _a;
1863
- const $$metadata$9 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Json.astro", { modules: [{ module: $$module2$2, specifier: "../../ssr-context", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1864
- const $$Astro$9 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Json.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1931
+ const $$metadata$a = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Json.astro", { modules: [{ module: $$module1$5, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1932
+ const $$Astro$a = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Json.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1865
1933
  const $$Json = createComponent(async ($$result, $$props, $$slots) => {
1866
- const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
1934
+ const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
1867
1935
  Astro2.self = $$Json;
1936
+ const { pageContext } = Astro2.props;
1868
1937
  const {
1869
1938
  storeId,
1939
+ apiResource,
1940
+ apiDoc,
1870
1941
  lang,
1871
1942
  countryCode,
1872
1943
  currency,
1873
1944
  currencySymbol,
1874
1945
  domain,
1875
1946
  settings
1876
- } = getConfig();
1877
- const inlineClientJS = `
1878
- window._settings = ${JSON.stringify({
1879
- ...settings,
1880
- store_id: storeId,
1881
- lang,
1882
- country_code: countryCode,
1883
- currency,
1884
- currency_symbol: currencySymbol
1947
+ } = pageContext;
1948
+ let inlineClientJS = `
1949
+ window.storefront = ${JSON.stringify({
1950
+ settings: {
1951
+ ...settings,
1952
+ store_id: storeId,
1953
+ lang,
1954
+ country_code: countryCode,
1955
+ currency,
1956
+ currency_symbol: currencySymbol
1957
+ }
1885
1958
  })};`;
1959
+ if (apiDoc) {
1960
+ if (typeof apiDoc.price === "number") {
1961
+ apiDoc.price = price(apiDoc);
1962
+ }
1963
+ const slimDocRegex = globalThis.storefront_slim_doc_regex || /body|meta|records|description|i18n/;
1964
+ const minifyApiDoc = (nestedDoc) => {
1965
+ if (typeof nestedDoc === "object" && nestedDoc) {
1966
+ if (Array.isArray(nestedDoc)) {
1967
+ nestedDoc.forEach((item) => minifyApiDoc(item));
1968
+ } else {
1969
+ Object.keys(nestedDoc).forEach((field) => {
1970
+ if (slimDocRegex.test(field)) {
1971
+ delete nestedDoc[field];
1972
+ } else {
1973
+ minifyApiDoc(nestedDoc[field]);
1974
+ }
1975
+ });
1976
+ }
1977
+ }
1978
+ return nestedDoc;
1979
+ };
1980
+ inlineClientJS += `
1981
+ window.storefront.context = ${JSON.stringify({
1982
+ resource: apiResource,
1983
+ doc: minifyApiDoc({ ...apiDoc }),
1984
+ timestamp: Date.now()
1985
+ })};`;
1986
+ }
1886
1987
  const inlineJSONLd = JSON.stringify({
1887
1988
  "@context": "http://schema.org",
1888
1989
  "@type": "Organization",
@@ -1893,112 +1994,173 @@ window._settings = ${JSON.stringify({
1893
1994
  return renderTemplate(_a || (_a = __template(["<script>", '<\/script>\n<script type="application/ld+json">', "<\/script>\n"])), markHTMLString(inlineClientJS), markHTMLString(inlineJSONLd));
1894
1995
  });
1895
1996
 
1896
- const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Json.astro";
1897
- const $$url$9 = undefined;
1997
+ const $$file$a = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Json.astro";
1998
+ const $$url$a = undefined;
1898
1999
 
1899
- const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2000
+ const $$module3$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1900
2001
  __proto__: null,
1901
- $$metadata: $$metadata$9,
2002
+ $$metadata: $$metadata$a,
1902
2003
  default: $$Json,
1903
- file: $$file$9,
1904
- url: $$url$9
2004
+ file: $$file$a,
2005
+ url: $$url$a
1905
2006
  }, Symbol.toStringTag, { value: 'Module' }));
1906
2007
 
1907
- const _sfc_main = {
1908
- setup() {
1909
- const count = ref(0);
1910
- const add = () => {
1911
- count.value += 1;
1912
- };
1913
- const subtract = () => {
1914
- count.value -= 1;
1915
- };
1916
- return {
1917
- count,
1918
- add,
1919
- subtract
2008
+ const $$metadata$9 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro", { modules: [{ module: $$module1$6, specifier: "color", assert: {} }, { module: $$module2$1, specifier: "./meta/Head.astro", assert: {} }, { module: $$module3$1, specifier: "./meta/Json.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [{ type: "inline", value: `
2009
+ import { initializeApp } from 'firebase/app';
2010
+ import { getAnalytics } from 'firebase/analytics';
2011
+ // @ts-ignore
2012
+ const firebaseConfig = window.firebaseConfig || {
2013
+ apiKey: "AIzaSyCrVzemDgpyp9i6ni7Yc5ZuEVfXYwl-4J0",
2014
+ authDomain: "ecom2-002.firebaseapp.com",
2015
+ projectId: "ecom2-002",
2016
+ storageBucket: "ecom2-002.appspot.com",
2017
+ messagingSenderId: "402807248219",
2018
+ appId: "1:402807248219:web:cf7d57759751e74776367e",
2019
+ measurementId: "G-SC592CE0GB"
1920
2020
  };
2021
+ const app = initializeApp(firebaseConfig);
2022
+ getAnalytics(app);
2023
+ ` }] });
2024
+ 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/");
2025
+ const $$Base = createComponent(async ($$result, $$props, $$slots) => {
2026
+ const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
2027
+ Astro2.self = $$Base;
2028
+ const { pageContext, title } = Astro2.props;
2029
+ const {
2030
+ lang,
2031
+ primaryColor,
2032
+ secondaryColor,
2033
+ cms
2034
+ } = pageContext;
2035
+ const cmsCustomCode = cms("code");
2036
+ const brandColors = {
2037
+ primary: primaryColor,
2038
+ secondary: secondaryColor,
2039
+ ...globalThis.storefront_brand_colors
2040
+ };
2041
+ const colorVariants = {
2042
+ "50": -0.75,
2043
+ "100": -0.5,
2044
+ "200": -0.33,
2045
+ "300": -0.21,
2046
+ "400": -0.1,
2047
+ "500": 0,
2048
+ "600": 0.1,
2049
+ "700": 0.16,
2050
+ "800": 0.22,
2051
+ "900": 0.5,
2052
+ ...globalThis.storefront_color_variants
2053
+ };
2054
+ const colorCSSVars = {};
2055
+ Object.keys(brandColors).forEach((colorName) => {
2056
+ const color = $$module1__default(brandColors[colorName]);
2057
+ Object.keys(colorVariants).forEach((colorVariant) => {
2058
+ const colorShift = colorVariants[colorVariant];
2059
+ const colorLabel = `${colorName}-${colorVariant}`;
2060
+ colorCSSVars[colorLabel] = color.darken(colorShift).hex();
2061
+ if (Number(colorLabel) > 100 && Number(colorLabel) < 900) {
2062
+ colorCSSVars[`${colorLabel}-yiq`] = color.isLight() ? "var(--yiq-text-dark)" : "var(--yiq-text-light)";
2063
+ colorCSSVars[`${colorLabel}-rgb`] = `${color.red()}, ${color.green()}, ${color.blue()}`;
2064
+ }
2065
+ });
2066
+ });
2067
+ const $$definedVars = defineStyleVars([colorCSSVars]);
2068
+ const STYLES = [
2069
+ { props: { "is:global": true, "define:vars": colorCSSVars }, children: `:root {
2070
+ --white: #fff;
2071
+ --gray: #6c757d;
2072
+ --gray-dark: #343a40;
2073
+ --yiq-text-light: var(--white);
2074
+ --yiq-text-dark: var(--gray-dark);
1921
2075
  }
1922
- };
1923
2076
 
1924
- const _export_sfc = (sfc, props) => {
1925
- const target = sfc.__vccOpts || sfc;
1926
- for (const [key, val] of props) {
1927
- target[key] = val;
2077
+ body,
2078
+ body [data-theme=light],
2079
+ body [data-theme=dark] {
2080
+ --primary: var(--primary-500);
2081
+ --primary-hover: var(--primary-700);
2082
+ --primary-focus: var(--primary-50);
2083
+ --primary-inverse: var(--primary-500-yiq);
2084
+ --secondary: var(--secondary-500);
2085
+ --secondary-hover: var(--secondary-700);
2086
+ --secondary-focus: var(--secondary-50);
2087
+ --secondary-inverse: var(--secondary-500-yiq);
1928
2088
  }
1929
- return target;
1930
- };
1931
2089
 
1932
- function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
1933
- _push(`<!--[--><div class="counter"><button>-</button><pre>${ssrInterpolate($setup.count)}</pre><button>+</button></div><div class="counter-message">`);
1934
- ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
1935
- _push(`</div><div id="firebaseui-auth-container"></div><!--]-->`);
1936
- }
1937
- const _sfc_setup = _sfc_main.setup;
1938
- _sfc_main.setup = (props, ctx) => {
1939
- const ssrContext = useSSRContext();
1940
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/LoginModal.vue");
1941
- return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
1942
- };
1943
- const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
1944
-
1945
- const $$module4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1946
- __proto__: null,
1947
- default: LoginModal
1948
- }, Symbol.toStringTag, { value: 'Module' }));
1949
-
1950
- const $$metadata$8 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Layout.astro", { modules: [{ module: $$module2$2, specifier: "../ssr-context", assert: {} }, { module: $$module2$1, specifier: "./meta/Head.astro", assert: {} }, { module: $$module3, specifier: "./meta/Json.astro", assert: {} }, { module: $$module4, specifier: "../components/LoginModal.vue", assert: {} }], hydratedComponents: [LoginModal], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set(["idle"]), hoisted: [{ type: "inline", value: `
1951
- // Import Firebase in compat version for Auth UI
1952
- // https://github.com/firebase/firebaseui-web#starting-the-sign-in-flow
1953
- import firebase from "firebase/compat/app";
1954
- import { getAnalytics } from "firebase/analytics";
1955
- // @ts-ignore
1956
- const firebaseConfig = window.firebaseConfig || {
1957
- apiKey: "AIzaSyCrVzemDgpyp9i6ni7Yc5ZuEVfXYwl-4J0",
1958
- authDomain: "ecom2-002.firebaseapp.com",
1959
- projectId: "ecom2-002",
1960
- storageBucket: "ecom2-002.appspot.com",
1961
- messagingSenderId: "402807248219",
1962
- appId: "1:402807248219:web:cf7d57759751e74776367e",
1963
- measurementId: "G-SC592CE0GB"
1964
- };
1965
- // @ts-ignore
1966
- window.firebase = firebase;
1967
- const app = firebase.initializeApp(firebaseConfig);
1968
- const analytics = getAnalytics(app);
1969
- ` }] });
1970
- const $$Astro$8 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Layout.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1971
- const $$Layout = createComponent(async ($$result, $$props, $$slots) => {
1972
- const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
1973
- Astro2.self = $$Layout;
1974
- const { lang } = getConfig();
1975
- const { title } = Astro2.props;
1976
- const STYLES = [];
2090
+ @media only screen and (prefers-color-scheme: dark) {
2091
+ :root:not([data-theme=light]) a {
2092
+ --color: var(--primary-200);
2093
+ }
2094
+ :root:not([data-theme=light]) a:is([aria-current], :hover, :active, :focus) {
2095
+ --color: var(--primary-400);
2096
+ }
2097
+ }
2098
+ [data-theme=light] a {
2099
+ --color: var(--primary) !important;
2100
+ }
2101
+ [data-theme=light] a:is([aria-current], :hover, :active, :focus) {
2102
+ --color: var(--primary-hover) !important;
2103
+ }` }
2104
+ ];
1977
2105
  for (const STYLE of STYLES)
1978
2106
  $$result.styles.add(STYLE);
1979
- return renderTemplate`<html${addAttribute(lang.replace("_", "-"), "lang")} class="astro-6MFH5UJ4">
2107
+ return renderTemplate`<html${addAttribute(lang.replace("_", "-"), "lang")}${addAttribute($$definedVars, "style")}>
1980
2108
  <head>
1981
- ${renderComponent($$result, "MetaHead", $$Head, { "class": "astro-6MFH5UJ4" })}
1982
- <title>${title}</title>
1983
- ${renderHead($$result)}</head>
1984
- <body class="astro-6MFH5UJ4">
1985
- ${renderComponent($$result, "LoginModal", LoginModal, { "client:idle": true, "client:component-hydration": "idle", "client:component-path": "/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginModal.vue", "client:component-export": "default", "class": "astro-6MFH5UJ4" })}
1986
- ${renderSlot($$result, $$slots["default"])}
1987
- ${renderComponent($$result, "MetaJson", $$Json, { "class": "astro-6MFH5UJ4" })}
1988
- ${renderSlot($$result, $$slots["firebase-init"])}
1989
- </body>
2109
+ ${renderComponent($$result, "MetaHead", $$Head, { "pageContext": pageContext, "title": title })}
2110
+ ${renderComponent($$result, "MetaJson", $$Json, { "pageContext": pageContext })}
2111
+ ${renderSlot($$result, $$slots["before-head-end"], renderTemplate`
2112
+ ${cmsCustomCode.css && renderTemplate`<style>{cmsCustomCode.css}</style>`}
2113
+ `)}${renderHead($$result)}</head>${cmsCustomCode.html_head && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${markHTMLString(cmsCustomCode.html_head)}` })}`}
2114
+
1990
2115
  </html>
1991
2116
 
2117
+
2118
+ ${renderSlot($$result, $$slots["default"])}
2119
+
2120
+ ${renderSlot($$result, $$slots["before-body-end"], renderTemplate`
2121
+ ${cmsCustomCode.html_body && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${markHTMLString(cmsCustomCode.html_body)}` })}`}
2122
+ `)}
2123
+
2124
+
2125
+
1992
2126
  `;
1993
2127
  });
1994
2128
 
1995
- const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Layout.astro";
1996
- const $$url$8 = undefined;
2129
+ const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro";
2130
+ const $$url$9 = undefined;
1997
2131
 
1998
2132
  const $$module1$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2133
+ __proto__: null,
2134
+ $$metadata: $$metadata$9,
2135
+ default: $$Base,
2136
+ file: $$file$9,
2137
+ url: $$url$9
2138
+ }, Symbol.toStringTag, { value: 'Module' }));
2139
+
2140
+ const $$metadata$8 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro", { modules: [{ module: $$module1$3, specifier: "./Base.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2141
+ 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/");
2142
+ const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
2143
+ const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
2144
+ Astro2.self = $$Pages;
2145
+ const { pageContext, title } = Astro2.props;
2146
+ 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`
2147
+ ${maybeRenderHead($$result)}<div class="i-shopping-cart" text="sky-400"></div>
2148
+ <div class="i-google-pay w-32"></div>
2149
+ <div class="i-logos:apple bg-primary"></div>
2150
+ <div class="i-heroicons:user bg-primary-300"></div>
2151
+ <div class="i-user bg-primary-700"></div>
2152
+ <div class="i-user bg-secondary-hover"></div>
2153
+ <div class="i-user bg-contrast"></div>
2154
+ `)}${renderSlot($$result, $$slots["default"])}` })}`;
2155
+ });
2156
+
2157
+ const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro";
2158
+ const $$url$8 = undefined;
2159
+
2160
+ const $$module1$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1999
2161
  __proto__: null,
2000
2162
  $$metadata: $$metadata$8,
2001
- default: $$Layout,
2163
+ default: $$Pages,
2002
2164
  file: $$file$8,
2003
2165
  url: $$url$8
2004
2166
  }, Symbol.toStringTag, { value: 'Module' }));
@@ -2012,13 +2174,13 @@ const $$Card = createComponent(async ($$result, $$props, $$slots) => {
2012
2174
  const STYLES = [];
2013
2175
  for (const STYLE of STYLES)
2014
2176
  $$result.styles.add(STYLE);
2015
- return renderTemplate`${maybeRenderHead($$result)}<li class="link-card astro-ZCG72YVN">
2016
- <a${addAttribute(href, "href")} class="astro-ZCG72YVN">
2017
- <h2 class="astro-ZCG72YVN">
2177
+ return renderTemplate`${maybeRenderHead($$result)}<li class="link-card astro-L6PLFHRK" data-theme="light">
2178
+ <a${addAttribute(href, "href")} class="astro-L6PLFHRK">
2179
+ <h2 class="astro-L6PLFHRK">
2018
2180
  ${title}
2019
- <span class="astro-ZCG72YVN">&rarr;</span>
2181
+ <span class="astro-L6PLFHRK">&rarr;</span>
2020
2182
  </h2>
2021
- <p class="astro-ZCG72YVN">
2183
+ <p class="astro-L6PLFHRK">
2022
2184
  ${body}
2023
2185
  </p>
2024
2186
  </a>
@@ -2037,49 +2199,49 @@ const $$module2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
2037
2199
  url: $$url$7
2038
2200
  }, Symbol.toStringTag, { value: 'Module' }));
2039
2201
 
2040
- const $$metadata$6 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/index.astro", { modules: [{ module: $$module1$4, specifier: "@cloudcommerce/api", assert: {} }, { module: $$module1$3, specifier: "../layouts/Layout.astro", assert: {} }, { module: $$module2, specifier: "../components/Card.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2041
- const $$Astro$6 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/index.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2042
- const $$Index$2 = createComponent(async ($$result, $$props, $$slots) => {
2202
+ 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: {} }, { module: $$module2, specifier: "../components/Card.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2203
+ 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/");
2204
+ const $$Home = createComponent(async ($$result, $$props, $$slots) => {
2043
2205
  const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
2044
- Astro2.self = $$Index$2;
2206
+ Astro2.self = $$Home;
2045
2207
  const products = (await api.get("products")).data.result;
2046
2208
  const STYLES = [];
2047
2209
  for (const STYLE of STYLES)
2048
2210
  $$result.styles.add(STYLE);
2049
- return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Welcome to Astro.", "class": "astro-EBY2X3Y6" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-EBY2X3Y6">
2050
- <h1 class="astro-EBY2X3Y6">Welcome to <span class="text-gradient astro-EBY2X3Y6">Astro</span></h1>
2051
- <p class="instructions astro-EBY2X3Y6">
2052
- Check out the <code class="astro-EBY2X3Y6">src/pages</code> directory to get started.<br class="astro-EBY2X3Y6">
2053
- <strong class="astro-EBY2X3Y6">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
2054
- </p>
2055
- <ul role="list" class="link-card-grid astro-EBY2X3Y6">
2056
- ${renderComponent($$result, "Card", $$Card, { "href": "https://docs.astro.build/", "title": "Documentation", "body": "Learn how Astro works and explore the official API docs.", "class": "astro-EBY2X3Y6" })}
2057
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-EBY2X3Y6" })}
2058
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-EBY2X3Y6" })}
2059
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/chat/", "title": "Chat", "body": "Come say hi to our amazing Discord community. \u2764\uFE0F", "class": "astro-EBY2X3Y6" })}
2060
- </ul>
2061
- <ul role="list" class="mt-3 fs-20 astro-EBY2X3Y6">
2062
- ${products.map((product) => renderTemplate`<li class="astro-EBY2X3Y6">
2063
- <a${addAttribute(`/${product.slug}`, "href")} class="astro-EBY2X3Y6">${product.sku}</a>
2064
- </li>`)}
2065
- </ul>
2066
- </main>` })}
2211
+ return renderTemplate`${maybeRenderHead($$result)}<main class="astro-CROUVL72">
2212
+ <h1 class="astro-CROUVL72">Welcome to <span class="text-gradient astro-CROUVL72">Astro</span></h1>
2213
+ <p class="instructions astro-CROUVL72">
2214
+ Check out the <code class="astro-CROUVL72">src/pages</code> directory to get started.<br class="astro-CROUVL72">
2215
+ <strong class="astro-CROUVL72">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
2216
+ </p>
2217
+ <ul role="list" class="link-card-grid astro-CROUVL72">
2218
+ ${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" })}
2219
+ ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-CROUVL72" })}
2220
+ ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-CROUVL72" })}
2221
+ ${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" })}
2222
+ </ul>
2223
+ <ul role="list" class="mt-3 fs-20 astro-CROUVL72">
2224
+ ${products.map((product) => renderTemplate`<li class="astro-CROUVL72">
2225
+ <a${addAttribute(`/${product.slug}`, "href")} class="astro-CROUVL72">${product.sku}</a>
2226
+ </li>`)}
2227
+ </ul>
2228
+ </main>
2067
2229
 
2068
2230
  `;
2069
2231
  });
2070
2232
 
2071
- const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/index.astro";
2233
+ const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro";
2072
2234
  const $$url$6 = undefined;
2073
2235
 
2074
- const $$module1$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2236
+ const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2075
2237
  __proto__: null,
2076
2238
  $$metadata: $$metadata$6,
2077
- default: $$Index$2,
2239
+ default: $$Home,
2078
2240
  file: $$file$6,
2079
2241
  url: $$url$6
2080
2242
  }, Symbol.toStringTag, { value: 'Module' }));
2081
2243
 
2082
- const $$metadata$5 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", { modules: [{ module: $$module1$2, specifier: "../lib/views/index.astro", assert: {} }, { module: $$module2$2, specifier: "../lib/ssr-context", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2244
+ const $$metadata$5 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", { modules: [{ module: $$module2$2, 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: [] });
2083
2245
  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/");
2084
2246
  const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
2085
2247
  const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
@@ -2094,7 +2256,7 @@ const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
2094
2256
  }
2095
2257
  loadError = err;
2096
2258
  }
2097
- return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "ViewHome", $$Index$2, { "pageContext": pageContext })}`}
2259
+ return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "HomeMain", $$Home, { "pageContext": pageContext })}` })}`}
2098
2260
  ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${markHTMLString(loadError.responseHTML)}` })}`}`;
2099
2261
  });
2100
2262
 
@@ -2109,25 +2271,26 @@ const _page1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2109
2271
  url: $$url$5
2110
2272
  }, Symbol.toStringTag, { value: 'Module' }));
2111
2273
 
2112
- const $$metadata$4 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/fallback.astro", { modules: [{ module: $$module1$3, specifier: "../layouts/Layout.astro", assert: {} }, { module: $$module2, specifier: "../components/Card.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2274
+ 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: [] });
2113
2275
  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/");
2114
2276
  const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
2115
2277
  const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
2116
2278
  Astro2.self = $$Fallback$1;
2279
+ const { pageContext } = Astro2.props;
2117
2280
  const STYLES = [];
2118
2281
  for (const STYLE of STYLES)
2119
2282
  $$result.styles.add(STYLE);
2120
- return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Welcome to Astro.", "class": "astro-BZIQPEHV" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-BZIQPEHV">
2121
- <h1 class="astro-BZIQPEHV">Error :/</h1>
2122
- <p class="instructions astro-BZIQPEHV">
2123
- Check out the <code class="astro-BZIQPEHV">src/pages</code> directory to get started.<br class="astro-BZIQPEHV">
2124
- <strong class="astro-BZIQPEHV">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
2283
+ return renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext, "class": "astro-ABZGQ24L" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-ABZGQ24L">
2284
+ <h1 class="astro-ABZGQ24L">Error :/</h1>
2285
+ <p class="instructions astro-ABZGQ24L">
2286
+ Check out the <code class="astro-ABZGQ24L">src/pages</code> directory to get started.<br class="astro-ABZGQ24L">
2287
+ <strong class="astro-ABZGQ24L">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
2125
2288
  </p>
2126
- <ul role="list" class="link-card-grid astro-BZIQPEHV">
2127
- ${renderComponent($$result, "Card", $$Card, { "href": "https://docs.astro.build/", "title": "Documentation", "body": "Learn how Astro works and explore the official API docs.", "class": "astro-BZIQPEHV" })}
2128
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-BZIQPEHV" })}
2129
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-BZIQPEHV" })}
2130
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/chat/", "title": "Chat", "body": "Come say hi to our amazing Discord community. \u2764\uFE0F", "class": "astro-BZIQPEHV" })}
2289
+ <ul role="list" class="link-card-grid astro-ABZGQ24L">
2290
+ ${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" })}
2291
+ ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-ABZGQ24L" })}
2292
+ ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-ABZGQ24L" })}
2293
+ ${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" })}
2131
2294
  </ul>
2132
2295
  </main>` })}
2133
2296
 
@@ -2189,7 +2352,7 @@ const _page3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2189
2352
  url: $$url$2
2190
2353
  }, Symbol.toStringTag, { value: 'Module' }));
2191
2354
 
2192
- const $$metadata$1 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/[...slug].astro", { modules: [{ module: $$module1$3, specifier: "../layouts/Layout.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2355
+ 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: [] });
2193
2356
  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/");
2194
2357
  const $$$1 = createComponent(async ($$result, $$props, $$slots) => {
2195
2358
  const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
@@ -2199,13 +2362,13 @@ const $$$1 = createComponent(async ($$result, $$props, $$slots) => {
2199
2362
  const STYLES = [];
2200
2363
  for (const STYLE of STYLES)
2201
2364
  $$result.styles.add(STYLE);
2202
- return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": apiDoc.name, "class": "astro-P5QKJ2WB" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-P5QKJ2WB">
2203
- <h1 class="astro-P5QKJ2WB">Hello <span class="text-gradient astro-P5QKJ2WB">${apiDoc.name}</span></h1>
2204
- <hr class="astro-P5QKJ2WB">
2205
- <div class="mt-3 astro-P5QKJ2WB">
2206
- <mark class="astro-P5QKJ2WB">${apiDoc._id}</mark> from <i class="astro-P5QKJ2WB">${apiResource}</i>
2207
- <p class="astro-P5QKJ2WB">${Math.random()}</p>
2208
- <em class="astro-P5QKJ2WB">Lorem ipsum dolor sit amet</em>
2365
+ return renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext, "class": "astro-SFD47MBJ" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-SFD47MBJ">
2366
+ <h1 class="astro-SFD47MBJ">Hello <span class="text-gradient astro-SFD47MBJ">${apiDoc.name}</span></h1>
2367
+ <hr class="astro-SFD47MBJ">
2368
+ <div class="mt-3 astro-SFD47MBJ">
2369
+ <mark class="astro-SFD47MBJ">${apiDoc._id}</mark> from <i class="astro-SFD47MBJ">${apiResource}</i>
2370
+ <p class="astro-SFD47MBJ">${Math.random()}</p>
2371
+ <em class="astro-SFD47MBJ">Lorem ipsum dolor sit amet</em>
2209
2372
  </div>
2210
2373
  </main>` })}
2211
2374
 
@@ -2325,7 +2488,7 @@ function deserializeManifest(serializedManifest) {
2325
2488
  };
2326
2489
  }
2327
2490
 
2328
- 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.0/node_modules/@astrojs/image/dist/endpoint.js","pathname":"/_image","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...b3f65c5c.css","assets/fallback-index.90217cf0.css","assets/index.c5a9ea80.css"],"scripts":[{"type":"external","value":"hoisted.24787260.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/_...b3f65c5c.css","assets/fallback-index.90217cf0.css","assets/fallback.9cd2ed3f.css"],"scripts":[{"type":"external","value":"hoisted.24787260.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":[],"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/_...b3f65c5c.css","assets/_...27b7eb4d.css"],"scripts":[{"type":"external","value":"hoisted.24787260.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","/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginModal.vue":"LoginModal.d6b935cf.js","@astrojs/vue/client.js":"client.80b904f3.js","/astro/hoisted.js?q=0":"hoisted.24787260.js","astro:scripts/page.js":"page.3aa82516.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/assets/firebaseui.css?used":"chunks/firebaseui.f82af21f.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/.pnpm/firebase@9.9.4/node_modules/firebase/compat/auth/dist/index.esm.js":"chunks/index.esm.69f70489.js","astro:scripts/before-hydration.js":"data:text/javascript;charset=utf-8,//[no before-hydration script]"},"assets":["/assets/_...27b7eb4d.css","/assets/_...b3f65c5c.css","/assets/fallback.9cd2ed3f.css","/assets/fallback-index.90217cf0.css","/assets/index.c5a9ea80.css","/LoginModal.d6b935cf.js","/client.80b904f3.js","/favicon.ico","/hoisted.24787260.js","/page.3aa82516.js","/chunks/index.esm.69f70489.js","/chunks/index.esm2017.1194d1a1.js","/chunks/runtime-core.esm-bundler.a7337834.js","/page.3aa82516.js","/~partytown/partytown-atomics.js","/~partytown/partytown-media.js","/~partytown/partytown-sw.js","/~partytown/partytown.js"]}), {
2491
+ 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.0/node_modules/@astrojs/image/dist/endpoint.js","pathname":"/_image","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...65ca64e2.css","assets/_...04e396d7.css","assets/fallback-index.552fd862.css","assets/index.73f26ab5.css"],"scripts":[{"type":"external","value":"hoisted.61a32b69.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/_...04e396d7.css","assets/_...65ca64e2.css","assets/fallback-index.552fd862.css","assets/fallback.a3f85892.css"],"scripts":[{"type":"external","value":"hoisted.61a32b69.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/_...65ca64e2.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/_...04e396d7.css","assets/_...b330a555.css","assets/_...65ca64e2.css"],"scripts":[{"type":"external","value":"hoisted.61a32b69.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.61a32b69.js","astro:scripts/page.js":"page.3aa82516.js","astro:scripts/before-hydration.js":"data:text/javascript;charset=utf-8,//[no before-hydration script]"},"assets":["/assets/_...b330a555.css","/assets/fallback.a3f85892.css","/assets/fallback-index.552fd862.css","/assets/index.73f26ab5.css","/assets/_...04e396d7.css","/assets/_...65ca64e2.css","/client.80baece3.js","/favicon.ico","/hoisted.61a32b69.js","/page.3aa82516.js","/page.3aa82516.js","/~partytown/partytown-atomics.js","/~partytown/partytown-media.js","/~partytown/partytown-sw.js","/~partytown/partytown.js"]}), {
2329
2492
  pageMap: pageMap,
2330
2493
  renderers: renderers
2331
2494
  });