cloudcommerce 0.0.75 → 0.0.76
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.
- package/.vscode/extensions.json +2 -1
- package/.vscode/settings.json +9 -0
- package/CHANGELOG.md +17 -0
- package/package.json +1 -1
- package/packages/api/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/cli/config/firebase.json +7 -0
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +1 -1
- package/packages/storefront/astro.config.mjs +9 -3
- package/packages/storefront/dist/client/assets/_...3d331176.css +1 -0
- package/packages/storefront/dist/client/assets/{fallback.9cd2ed3f.css → _...b330a555.css} +1 -1
- package/packages/storefront/dist/client/assets/_...c1ec409f.css +4 -0
- package/packages/storefront/dist/client/assets/fallback-index.552fd862.css +1 -0
- package/packages/storefront/dist/client/assets/{_...27b7eb4d.css → fallback.a3f85892.css} +1 -1
- package/packages/storefront/dist/client/assets/{index.c5a9ea80.css → index.73f26ab5.css} +1 -1
- package/packages/storefront/dist/client/client.80baece3.js +1 -0
- package/packages/storefront/dist/client/hoisted.61a32b69.js +661 -0
- package/packages/storefront/dist/server/entry.mjs +326 -161
- package/packages/storefront/package.json +6 -1
- package/packages/storefront/src/html.d.ts +23 -0
- package/packages/storefront/src/lib/components/Card.astro +1 -1
- package/packages/storefront/src/lib/components/LoginModal.vue +14 -20
- package/packages/storefront/src/lib/layouts/Base.astro +129 -0
- package/packages/storefront/src/lib/layouts/Checkout.astro +0 -0
- package/packages/storefront/src/lib/layouts/Pages.astro +30 -0
- package/packages/storefront/src/lib/layouts/meta/Head.astro +62 -1
- package/packages/storefront/src/lib/layouts/meta/Json.astro +49 -10
- package/packages/storefront/src/lib/main/Home.astro +84 -0
- package/packages/storefront/src/lib/main/Wildcard.astro +0 -0
- package/packages/storefront/src/lib/ssr-context.ts +2 -1
- package/packages/storefront/src/lib/views/[...slug].astro +3 -3
- package/packages/storefront/src/lib/views/fallback.astro +5 -3
- package/packages/storefront/src/lib/views/index.astro +4 -3
- package/packages/storefront/src/pages/index.astro +7 -2
- package/packages/storefront/tailwind.config.ts +0 -0
- package/packages/storefront/uno.config.ts +98 -0
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/LoginModal.d6b935cf.js +0 -1
- package/packages/storefront/dist/client/assets/_...b3f65c5c.css +0 -1
- package/packages/storefront/dist/client/assets/fallback-index.90217cf0.css +0 -1
- package/packages/storefront/dist/client/chunks/index.esm.69f70489.js +0 -1726
- package/packages/storefront/dist/client/chunks/index.esm2017.1194d1a1.js +0 -457
- package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.a7337834.js +0 -1
- package/packages/storefront/dist/client/client.80b904f3.js +0 -1
- package/packages/storefront/dist/client/hoisted.24787260.js +0 -376
- 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
|
|
3
|
-
import { renderToString as renderToString$1
|
|
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
|
|
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
|
|
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$
|
|
1838
|
-
const $$Astro$
|
|
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$
|
|
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
|
-
<
|
|
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$
|
|
1849
|
-
const $$url$
|
|
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$
|
|
1921
|
+
$$metadata: $$metadata$b,
|
|
1854
1922
|
default: $$Head,
|
|
1855
|
-
file: $$file$
|
|
1856
|
-
url: $$url$
|
|
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$
|
|
1864
|
-
const $$Astro$
|
|
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$
|
|
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
|
-
} =
|
|
1877
|
-
|
|
1878
|
-
window.
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
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,175 @@ 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$
|
|
1897
|
-
const $$url$
|
|
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$
|
|
2002
|
+
$$metadata: $$metadata$a,
|
|
1902
2003
|
default: $$Json,
|
|
1903
|
-
file: $$file$
|
|
1904
|
-
url: $$url$
|
|
2004
|
+
file: $$file$a,
|
|
2005
|
+
url: $$url$a
|
|
1905
2006
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
1906
2007
|
|
|
1907
|
-
const
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
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 colorVariations = {
|
|
2042
|
+
whiter: -0.75,
|
|
2043
|
+
white: -0.5,
|
|
2044
|
+
lightest: -0.33,
|
|
2045
|
+
lighter: -0.21,
|
|
2046
|
+
light: -0.1,
|
|
2047
|
+
lighten: -0.07,
|
|
2048
|
+
base: 0,
|
|
2049
|
+
darken: 0.08,
|
|
2050
|
+
dark: 0.1,
|
|
2051
|
+
darker: 0.13,
|
|
2052
|
+
darkest: 0.16,
|
|
2053
|
+
black: 0.5,
|
|
2054
|
+
...globalThis.storefront_color_variations
|
|
2055
|
+
};
|
|
2056
|
+
const colorCSSVars = {};
|
|
2057
|
+
Object.keys(brandColors).forEach((colorName) => {
|
|
2058
|
+
const color = $$module1__default(brandColors[colorName]);
|
|
2059
|
+
Object.keys(colorVariations).forEach((colorVariation) => {
|
|
2060
|
+
const colorShift = colorVariations[colorVariation];
|
|
2061
|
+
const colorLabel = `${colorName}-${colorVariation}`;
|
|
2062
|
+
colorCSSVars[colorLabel] = color.darken(colorShift).hex();
|
|
2063
|
+
if (!colorLabel.includes("white") && !colorLabel.includes("black")) {
|
|
2064
|
+
colorCSSVars[`${colorLabel}-yiq`] = color.isLight() ? "var(--yiq-text-dark)" : "var(--yiq-text-light)";
|
|
2065
|
+
colorCSSVars[`${colorLabel}-rgb`] = `${color.red()}, ${color.green()}, ${color.blue()}`;
|
|
2066
|
+
}
|
|
2067
|
+
});
|
|
2068
|
+
});
|
|
2069
|
+
const $$definedVars = defineStyleVars([colorCSSVars]);
|
|
2070
|
+
const STYLES = [
|
|
2071
|
+
{ props: { "is:global": true, "define:vars": colorCSSVars }, children: `:root {
|
|
2072
|
+
--white: #fff;
|
|
2073
|
+
--gray: #6c757d;
|
|
2074
|
+
--gray-dark: #343a40;
|
|
2075
|
+
--yiq-text-light: var(--white);
|
|
2076
|
+
--yiq-text-dark: var(--gray-dark);
|
|
1921
2077
|
}
|
|
1922
|
-
};
|
|
1923
2078
|
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
2079
|
+
body,
|
|
2080
|
+
body [data-theme=light],
|
|
2081
|
+
body [data-theme=dark] {
|
|
2082
|
+
--primary: var(--primary-base);
|
|
2083
|
+
--primary-hover: var(--primary-darkest);
|
|
2084
|
+
--primary-focus: var(--primary-whiter);
|
|
2085
|
+
--primary-inverse: var(--primary-yiq);
|
|
2086
|
+
--secondary: var(--secondary-base);
|
|
2087
|
+
--secondary-hover: var(--secondary-darkest);
|
|
2088
|
+
--secondary-focus: var(--secondary-whiter);
|
|
2089
|
+
--secondary-inverse: var(--secondary-yiq);
|
|
1928
2090
|
}
|
|
1929
|
-
return target;
|
|
1930
|
-
};
|
|
1931
2091
|
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
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 = [];
|
|
2092
|
+
@media only screen and (prefers-color-scheme: dark) {
|
|
2093
|
+
:root:not([data-theme=light]) a {
|
|
2094
|
+
--color: var(--primary-lightest);
|
|
2095
|
+
}
|
|
2096
|
+
:root:not([data-theme=light]) a:is([aria-current], :hover, :active, :focus) {
|
|
2097
|
+
--color: var(--primary-light);
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
[data-theme=light] a {
|
|
2101
|
+
--color: var(--primary) !important;
|
|
2102
|
+
}
|
|
2103
|
+
[data-theme=light] a:is([aria-current], :hover, :active, :focus) {
|
|
2104
|
+
--color: var(--primary-hover) !important;
|
|
2105
|
+
}` }
|
|
2106
|
+
];
|
|
1977
2107
|
for (const STYLE of STYLES)
|
|
1978
2108
|
$$result.styles.add(STYLE);
|
|
1979
|
-
return renderTemplate`<html${addAttribute(lang.replace("_", "-"), "lang")}
|
|
2109
|
+
return renderTemplate`<html${addAttribute(lang.replace("_", "-"), "lang")}${addAttribute($$definedVars, "style")}>
|
|
1980
2110
|
<head>
|
|
1981
|
-
${renderComponent($$result, "MetaHead", $$Head, { "
|
|
1982
|
-
|
|
1983
|
-
${
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
${renderComponent($$result, "MetaJson", $$Json, { "class": "astro-6MFH5UJ4" })}
|
|
1988
|
-
${renderSlot($$result, $$slots["firebase-init"])}
|
|
1989
|
-
</body>
|
|
2111
|
+
${renderComponent($$result, "MetaHead", $$Head, { "pageContext": pageContext, "title": title })}
|
|
2112
|
+
${renderComponent($$result, "MetaJson", $$Json, { "pageContext": pageContext })}
|
|
2113
|
+
${renderSlot($$result, $$slots["before-head-end"], renderTemplate`
|
|
2114
|
+
${cmsCustomCode.css && renderTemplate`<style>{cmsCustomCode.css}</style>`}
|
|
2115
|
+
`)}${renderHead($$result)}</head>${cmsCustomCode.html_head && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${markHTMLString(cmsCustomCode.html_head)}` })}`}
|
|
2116
|
+
|
|
1990
2117
|
</html>
|
|
1991
2118
|
|
|
2119
|
+
|
|
2120
|
+
${renderSlot($$result, $$slots["default"])}
|
|
2121
|
+
|
|
2122
|
+
${renderSlot($$result, $$slots["before-body-end"], renderTemplate`
|
|
2123
|
+
${cmsCustomCode.html_body && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${markHTMLString(cmsCustomCode.html_body)}` })}`}
|
|
2124
|
+
`)}
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
1992
2128
|
`;
|
|
1993
2129
|
});
|
|
1994
2130
|
|
|
1995
|
-
const $$file$
|
|
1996
|
-
const $$url$
|
|
2131
|
+
const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro";
|
|
2132
|
+
const $$url$9 = undefined;
|
|
1997
2133
|
|
|
1998
2134
|
const $$module1$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
2135
|
+
__proto__: null,
|
|
2136
|
+
$$metadata: $$metadata$9,
|
|
2137
|
+
default: $$Base,
|
|
2138
|
+
file: $$file$9,
|
|
2139
|
+
url: $$url$9
|
|
2140
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2141
|
+
|
|
2142
|
+
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: [] });
|
|
2143
|
+
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/");
|
|
2144
|
+
const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
|
|
2145
|
+
const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
|
|
2146
|
+
Astro2.self = $$Pages;
|
|
2147
|
+
const { pageContext, title } = Astro2.props;
|
|
2148
|
+
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`
|
|
2149
|
+
${maybeRenderHead($$result)}<div class="i-shopping-cart" text="sky-500"></div>
|
|
2150
|
+
<div class="i-google-pay w-32"></div>
|
|
2151
|
+
<div class="i-logos:apple bg-primary"></div>
|
|
2152
|
+
<div class="i-heroicons:user bg-primary-light"></div>
|
|
2153
|
+
<div class="i-user bg-primary-dark"></div>
|
|
2154
|
+
<div class="i-user bg-secondary-hover"></div>
|
|
2155
|
+
<div class="i-user bg-contrast"></div>
|
|
2156
|
+
`)}${renderSlot($$result, $$slots["default"])}` })}`;
|
|
2157
|
+
});
|
|
2158
|
+
|
|
2159
|
+
const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro";
|
|
2160
|
+
const $$url$8 = undefined;
|
|
2161
|
+
|
|
2162
|
+
const $$module1$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
1999
2163
|
__proto__: null,
|
|
2000
2164
|
$$metadata: $$metadata$8,
|
|
2001
|
-
default: $$
|
|
2165
|
+
default: $$Pages,
|
|
2002
2166
|
file: $$file$8,
|
|
2003
2167
|
url: $$url$8
|
|
2004
2168
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
@@ -2012,13 +2176,13 @@ const $$Card = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
2012
2176
|
const STYLES = [];
|
|
2013
2177
|
for (const STYLE of STYLES)
|
|
2014
2178
|
$$result.styles.add(STYLE);
|
|
2015
|
-
return renderTemplate`${maybeRenderHead($$result)}<li class="link-card astro-
|
|
2016
|
-
<a${addAttribute(href, "href")} class="astro-
|
|
2017
|
-
<h2 class="astro-
|
|
2179
|
+
return renderTemplate`${maybeRenderHead($$result)}<li class="link-card astro-L6PLFHRK" data-theme="light">
|
|
2180
|
+
<a${addAttribute(href, "href")} class="astro-L6PLFHRK">
|
|
2181
|
+
<h2 class="astro-L6PLFHRK">
|
|
2018
2182
|
${title}
|
|
2019
|
-
<span class="astro-
|
|
2183
|
+
<span class="astro-L6PLFHRK">→</span>
|
|
2020
2184
|
</h2>
|
|
2021
|
-
<p class="astro-
|
|
2185
|
+
<p class="astro-L6PLFHRK">
|
|
2022
2186
|
${body}
|
|
2023
2187
|
</p>
|
|
2024
2188
|
</a>
|
|
@@ -2037,49 +2201,49 @@ const $$module2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
|
|
|
2037
2201
|
url: $$url$7
|
|
2038
2202
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2039
2203
|
|
|
2040
|
-
const $$metadata$6 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/
|
|
2041
|
-
const $$Astro$6 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/
|
|
2042
|
-
const $$
|
|
2204
|
+
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: [] });
|
|
2205
|
+
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/");
|
|
2206
|
+
const $$Home = createComponent(async ($$result, $$props, $$slots) => {
|
|
2043
2207
|
const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
|
|
2044
|
-
Astro2.self = $$
|
|
2208
|
+
Astro2.self = $$Home;
|
|
2045
2209
|
const products = (await api.get("products")).data.result;
|
|
2046
2210
|
const STYLES = [];
|
|
2047
2211
|
for (const STYLE of STYLES)
|
|
2048
2212
|
$$result.styles.add(STYLE);
|
|
2049
|
-
return renderTemplate`${
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2213
|
+
return renderTemplate`${maybeRenderHead($$result)}<main class="astro-CROUVL72">
|
|
2214
|
+
<h1 class="astro-CROUVL72">Welcome to <span class="text-gradient astro-CROUVL72">Astro</span></h1>
|
|
2215
|
+
<p class="instructions astro-CROUVL72">
|
|
2216
|
+
Check out the <code class="astro-CROUVL72">src/pages</code> directory to get started.<br class="astro-CROUVL72">
|
|
2217
|
+
<strong class="astro-CROUVL72">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
|
|
2218
|
+
</p>
|
|
2219
|
+
<ul role="list" class="link-card-grid astro-CROUVL72">
|
|
2220
|
+
${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" })}
|
|
2221
|
+
${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-CROUVL72" })}
|
|
2222
|
+
${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-CROUVL72" })}
|
|
2223
|
+
${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" })}
|
|
2224
|
+
</ul>
|
|
2225
|
+
<ul role="list" class="mt-3 fs-20 astro-CROUVL72">
|
|
2226
|
+
${products.map((product) => renderTemplate`<li class="astro-CROUVL72">
|
|
2227
|
+
<a${addAttribute(`/${product.slug}`, "href")} class="astro-CROUVL72">${product.sku}</a>
|
|
2228
|
+
</li>`)}
|
|
2229
|
+
</ul>
|
|
2230
|
+
</main>
|
|
2067
2231
|
|
|
2068
2232
|
`;
|
|
2069
2233
|
});
|
|
2070
2234
|
|
|
2071
|
-
const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/
|
|
2235
|
+
const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro";
|
|
2072
2236
|
const $$url$6 = undefined;
|
|
2073
2237
|
|
|
2074
|
-
const $$
|
|
2238
|
+
const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
2075
2239
|
__proto__: null,
|
|
2076
2240
|
$$metadata: $$metadata$6,
|
|
2077
|
-
default: $$
|
|
2241
|
+
default: $$Home,
|
|
2078
2242
|
file: $$file$6,
|
|
2079
2243
|
url: $$url$6
|
|
2080
2244
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2081
2245
|
|
|
2082
|
-
const $$metadata$5 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", { modules: [{ module: $$module1$2, specifier: "../lib/
|
|
2246
|
+
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
2247
|
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
2248
|
const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
2085
2249
|
const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
|
|
@@ -2094,7 +2258,7 @@ const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
2094
2258
|
}
|
|
2095
2259
|
loadError = err;
|
|
2096
2260
|
}
|
|
2097
|
-
return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "
|
|
2261
|
+
return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "HomeMain", $$Home, { "pageContext": pageContext })}` })}`}
|
|
2098
2262
|
${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${markHTMLString(loadError.responseHTML)}` })}`}`;
|
|
2099
2263
|
});
|
|
2100
2264
|
|
|
@@ -2109,25 +2273,26 @@ const _page1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
2109
2273
|
url: $$url$5
|
|
2110
2274
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2111
2275
|
|
|
2112
|
-
const $$metadata$4 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/fallback.astro", { modules: [{ module: $$module1$
|
|
2276
|
+
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
2277
|
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
2278
|
const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
2115
2279
|
const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
|
|
2116
2280
|
Astro2.self = $$Fallback$1;
|
|
2281
|
+
const { pageContext } = Astro2.props;
|
|
2117
2282
|
const STYLES = [];
|
|
2118
2283
|
for (const STYLE of STYLES)
|
|
2119
2284
|
$$result.styles.add(STYLE);
|
|
2120
|
-
return renderTemplate`${renderComponent($$result, "
|
|
2121
|
-
<h1 class="astro-
|
|
2122
|
-
<p class="instructions astro-
|
|
2123
|
-
Check out the <code class="astro-
|
|
2124
|
-
<strong class="astro-
|
|
2285
|
+
return renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext, "class": "astro-ABZGQ24L" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-ABZGQ24L">
|
|
2286
|
+
<h1 class="astro-ABZGQ24L">Error :/</h1>
|
|
2287
|
+
<p class="instructions astro-ABZGQ24L">
|
|
2288
|
+
Check out the <code class="astro-ABZGQ24L">src/pages</code> directory to get started.<br class="astro-ABZGQ24L">
|
|
2289
|
+
<strong class="astro-ABZGQ24L">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
|
|
2125
2290
|
</p>
|
|
2126
|
-
<ul role="list" class="link-card-grid astro-
|
|
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-
|
|
2128
|
-
${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-
|
|
2129
|
-
${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-
|
|
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-
|
|
2291
|
+
<ul role="list" class="link-card-grid astro-ABZGQ24L">
|
|
2292
|
+
${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" })}
|
|
2293
|
+
${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-ABZGQ24L" })}
|
|
2294
|
+
${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-ABZGQ24L" })}
|
|
2295
|
+
${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
2296
|
</ul>
|
|
2132
2297
|
</main>` })}
|
|
2133
2298
|
|
|
@@ -2189,7 +2354,7 @@ const _page3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
2189
2354
|
url: $$url$2
|
|
2190
2355
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2191
2356
|
|
|
2192
|
-
const $$metadata$1 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/[...slug].astro", { modules: [{ module: $$module1$
|
|
2357
|
+
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
2358
|
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
2359
|
const $$$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
2195
2360
|
const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
|
|
@@ -2199,13 +2364,13 @@ const $$$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
2199
2364
|
const STYLES = [];
|
|
2200
2365
|
for (const STYLE of STYLES)
|
|
2201
2366
|
$$result.styles.add(STYLE);
|
|
2202
|
-
return renderTemplate`${renderComponent($$result, "
|
|
2203
|
-
<h1 class="astro-
|
|
2204
|
-
<hr class="astro-
|
|
2205
|
-
<div class="mt-3 astro-
|
|
2206
|
-
<mark class="astro-
|
|
2207
|
-
<p class="astro-
|
|
2208
|
-
<em class="astro-
|
|
2367
|
+
return renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext, "class": "astro-SFD47MBJ" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-SFD47MBJ">
|
|
2368
|
+
<h1 class="astro-SFD47MBJ">Hello <span class="text-gradient astro-SFD47MBJ">${apiDoc.name}</span></h1>
|
|
2369
|
+
<hr class="astro-SFD47MBJ">
|
|
2370
|
+
<div class="mt-3 astro-SFD47MBJ">
|
|
2371
|
+
<mark class="astro-SFD47MBJ">${apiDoc._id}</mark> from <i class="astro-SFD47MBJ">${apiResource}</i>
|
|
2372
|
+
<p class="astro-SFD47MBJ">${Math.random()}</p>
|
|
2373
|
+
<em class="astro-SFD47MBJ">Lorem ipsum dolor sit amet</em>
|
|
2209
2374
|
</div>
|
|
2210
2375
|
</main>` })}
|
|
2211
2376
|
|
|
@@ -2325,7 +2490,7 @@ function deserializeManifest(serializedManifest) {
|
|
|
2325
2490
|
};
|
|
2326
2491
|
}
|
|
2327
2492
|
|
|
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"]}), {
|
|
2493
|
+
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/_...3d331176.css","assets/_...c1ec409f.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/_...c1ec409f.css","assets/_...3d331176.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/_...3d331176.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/_...c1ec409f.css","assets/_...b330a555.css","assets/_...3d331176.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/_...c1ec409f.css","/assets/_...3d331176.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
2494
|
pageMap: pageMap,
|
|
2330
2495
|
renderers: renderers
|
|
2331
2496
|
});
|