cloudcommerce 0.0.72 → 0.0.75

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/CHANGELOG.md +24 -0
  2. package/package.json +8 -8
  3. package/packages/api/package.json +1 -1
  4. package/packages/apps/correios/package.json +1 -1
  5. package/packages/apps/custom-shipping/package.json +1 -1
  6. package/packages/apps/discounts/package.json +1 -1
  7. package/packages/apps/frenet/package.json +1 -1
  8. package/packages/apps/tiny-erp/package.json +1 -1
  9. package/packages/cli/config/firebase.json +47 -0
  10. package/packages/cli/package.json +1 -1
  11. package/packages/config/package.json +1 -1
  12. package/packages/events/package.json +1 -1
  13. package/packages/firebase/package.json +1 -1
  14. package/packages/modules/lib/firebase/ajv.js +2 -1
  15. package/packages/modules/lib/firebase/ajv.js.map +1 -1
  16. package/packages/modules/lib/firebase/handle-module.js +5 -1
  17. package/packages/modules/lib/firebase/handle-module.js.map +1 -1
  18. package/packages/modules/lib/firebase/serve-modules-api.js +4 -3
  19. package/packages/modules/lib/firebase/serve-modules-api.js.map +1 -1
  20. package/packages/modules/package.json +2 -1
  21. package/packages/modules/schemas/@checkout.cjs +28 -28
  22. package/packages/modules/schemas/apply_discount.cjs +2 -2
  23. package/packages/modules/schemas/calculate_shipping.cjs +4 -4
  24. package/packages/modules/schemas/create_transaction.cjs +30 -30
  25. package/packages/modules/schemas/list_payments.cjs +6 -6
  26. package/packages/modules/src/firebase/ajv.ts +2 -1
  27. package/packages/modules/src/firebase/handle-module.ts +5 -1
  28. package/packages/modules/src/firebase/serve-modules-api.ts +5 -3
  29. package/packages/passport/package.json +1 -1
  30. package/packages/ssr/lib/firebase/serve-storefront.js +13 -32
  31. package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
  32. package/packages/ssr/package.json +1 -1
  33. package/packages/ssr/src/firebase/serve-storefront.ts +13 -37
  34. package/packages/storefront/astro.config.mjs +2 -0
  35. package/packages/storefront/dist/client/LoginModal.d6b935cf.js +1 -0
  36. package/packages/storefront/dist/client/assets/{_...c08e0a75.css → _...27b7eb4d.css} +1 -1
  37. package/packages/storefront/dist/client/assets/_...b3f65c5c.css +1 -0
  38. package/packages/storefront/dist/client/assets/fallback-index.90217cf0.css +1 -0
  39. package/packages/storefront/dist/client/assets/{404.b3ead908.css → fallback.9cd2ed3f.css} +1 -1
  40. package/packages/storefront/dist/client/assets/{index.9745690c.css → index.c5a9ea80.css} +1 -1
  41. package/packages/storefront/dist/client/chunks/index.esm.69f70489.js +1726 -0
  42. package/packages/storefront/dist/client/chunks/index.esm2017.1194d1a1.js +457 -0
  43. package/packages/storefront/dist/client/chunks/runtime-core.esm-bundler.a7337834.js +1 -0
  44. package/packages/storefront/dist/client/client.80b904f3.js +1 -0
  45. package/packages/storefront/dist/client/hoisted.24787260.js +376 -0
  46. package/packages/storefront/dist/server/entry.mjs +466 -221
  47. package/packages/storefront/package.json +9 -7
  48. package/packages/storefront/src/assets/firebaseui.css +648 -0
  49. package/packages/storefront/src/lib/components/LoginModal.vue +42 -9
  50. package/packages/storefront/src/lib/layouts/Layout.astro +24 -0
  51. package/packages/storefront/src/lib/ssr-context.ts +54 -30
  52. package/packages/storefront/src/lib/views/{404.astro → fallback.astro} +1 -1
  53. package/packages/storefront/src/pages/[...slug].astro +7 -2
  54. package/packages/storefront/src/pages/{404.astro → fallback.astro} +2 -2
  55. package/packages/storefront/src/pages/index.astro +7 -2
  56. package/packages/types/package.json +1 -1
  57. package/packages/storefront/dist/client/assets/404-500-_...d4aa8aff.css +0 -1
  58. package/packages/storefront/dist/client/assets/404-500-index.d9230d24.css +0 -1
  59. package/packages/storefront/dist/client/assets/500.d5d7700b.css +0 -1
  60. package/packages/storefront/dist/client/client.6d48c590.js +0 -1
  61. package/packages/storefront/src/lib/views/500.astro +0 -79
  62. package/packages/storefront/src/pages/500.astro +0 -13
@@ -1,13 +1,14 @@
1
1
  import * as adapter from '@astrojs/node/server.js';
2
- import { defineComponent, h, createSSRApp } from 'vue';
3
- import { renderToString as renderToString$1 } from 'vue/server-renderer';
2
+ import { defineComponent, h, createSSRApp, ref, useSSRContext } from 'vue';
3
+ import { renderToString as renderToString$1, ssrInterpolate, ssrRenderSlot } from 'vue/server-renderer';
4
4
  import { escape } from 'html-escaper';
5
- /* empty css *//* empty css */import { fileURLToPath } from 'url';
5
+ import mime from 'mime';
6
+ import sharp from 'sharp';
7
+ /* empty css *//* empty css */import { fileURLToPath } from 'url';
6
8
  import fs from 'fs';
7
9
  import { resolve } from 'path';
8
10
  import Deepmerge from '@fastify/deepmerge';
9
- /* empty css *//* empty css *//* empty css *//* empty css */import 'mime';
10
- import 'kleur/colors';
11
+ /* empty css *//* empty css *//* empty css */import 'kleur/colors';
11
12
  import 'string-width';
12
13
  import 'path-browserify';
13
14
  import { compile } from 'path-to-regexp';
@@ -30,7 +31,7 @@ const StaticHtml = defineComponent({
30
31
  });
31
32
 
32
33
  function check$1(Component) {
33
- return !!Component['ssrRender'];
34
+ return !!Component['ssrRender'] || !!Component['__ssrInlineRender'];
34
35
  }
35
36
 
36
37
  async function renderToStaticMarkup$1(Component, props, slotted) {
@@ -48,7 +49,7 @@ const _renderer1 = {
48
49
  renderToStaticMarkup: renderToStaticMarkup$1,
49
50
  };
50
51
 
51
- const ASTRO_VERSION = "1.1.5";
52
+ const ASTRO_VERSION = "1.2.2";
52
53
  function createDeprecatedFetchContentFn() {
53
54
  return () => {
54
55
  throw new Error("Deprecated: Astro.fetchContent() has been replaced with Astro.glob().");
@@ -169,17 +170,35 @@ const PROP_TYPE = {
169
170
  BigInt: 6,
170
171
  URL: 7
171
172
  };
172
- function serializeArray(value) {
173
- return value.map((v) => convertToSerializedForm(v));
173
+ function serializeArray(value, metadata = {}, parents = /* @__PURE__ */ new WeakSet()) {
174
+ if (parents.has(value)) {
175
+ throw new Error(`Cyclic reference detected while serializing props for <${metadata.displayName} client:${metadata.hydrate}>!
176
+
177
+ Cyclic references cannot be safely serialized for client-side usage. Please remove the cyclic reference.`);
178
+ }
179
+ parents.add(value);
180
+ const serialized = value.map((v) => {
181
+ return convertToSerializedForm(v, metadata, parents);
182
+ });
183
+ parents.delete(value);
184
+ return serialized;
174
185
  }
175
- function serializeObject(value) {
176
- return Object.fromEntries(
186
+ function serializeObject(value, metadata = {}, parents = /* @__PURE__ */ new WeakSet()) {
187
+ if (parents.has(value)) {
188
+ throw new Error(`Cyclic reference detected while serializing props for <${metadata.displayName} client:${metadata.hydrate}>!
189
+
190
+ Cyclic references cannot be safely serialized for client-side usage. Please remove the cyclic reference.`);
191
+ }
192
+ parents.add(value);
193
+ const serialized = Object.fromEntries(
177
194
  Object.entries(value).map(([k, v]) => {
178
- return [k, convertToSerializedForm(v)];
195
+ return [k, convertToSerializedForm(v, metadata, parents)];
179
196
  })
180
197
  );
198
+ parents.delete(value);
199
+ return serialized;
181
200
  }
182
- function convertToSerializedForm(value) {
201
+ function convertToSerializedForm(value, metadata = {}, parents = /* @__PURE__ */ new WeakSet()) {
183
202
  const tag = Object.prototype.toString.call(value);
184
203
  switch (tag) {
185
204
  case "[object Date]": {
@@ -189,10 +208,16 @@ function convertToSerializedForm(value) {
189
208
  return [PROP_TYPE.RegExp, value.source];
190
209
  }
191
210
  case "[object Map]": {
192
- return [PROP_TYPE.Map, JSON.stringify(serializeArray(Array.from(value)))];
211
+ return [
212
+ PROP_TYPE.Map,
213
+ JSON.stringify(serializeArray(Array.from(value), metadata, parents))
214
+ ];
193
215
  }
194
216
  case "[object Set]": {
195
- return [PROP_TYPE.Set, JSON.stringify(serializeArray(Array.from(value)))];
217
+ return [
218
+ PROP_TYPE.Set,
219
+ JSON.stringify(serializeArray(Array.from(value), metadata, parents))
220
+ ];
196
221
  }
197
222
  case "[object BigInt]": {
198
223
  return [PROP_TYPE.BigInt, value.toString()];
@@ -201,19 +226,20 @@ function convertToSerializedForm(value) {
201
226
  return [PROP_TYPE.URL, value.toString()];
202
227
  }
203
228
  case "[object Array]": {
204
- return [PROP_TYPE.JSON, JSON.stringify(serializeArray(value))];
229
+ return [PROP_TYPE.JSON, JSON.stringify(serializeArray(value, metadata, parents))];
205
230
  }
206
231
  default: {
207
232
  if (value !== null && typeof value === "object") {
208
- return [PROP_TYPE.Value, serializeObject(value)];
233
+ return [PROP_TYPE.Value, serializeObject(value, metadata, parents)];
209
234
  } else {
210
235
  return [PROP_TYPE.Value, value];
211
236
  }
212
237
  }
213
238
  }
214
239
  }
215
- function serializeProps(props) {
216
- return JSON.stringify(serializeObject(props));
240
+ function serializeProps(props, metadata) {
241
+ const serialized = JSON.stringify(serializeObject(props, metadata));
242
+ return serialized;
217
243
  }
218
244
 
219
245
  function serializeListValue(value) {
@@ -323,11 +349,11 @@ async function generateHydrateScript(scriptOptions, metadata) {
323
349
  island.props[key] = value;
324
350
  }
325
351
  }
326
- island.props["component-url"] = await result.resolve(componentUrl);
352
+ island.props["component-url"] = await result.resolve(decodeURI(componentUrl));
327
353
  if (renderer.clientEntrypoint) {
328
354
  island.props["component-export"] = componentExport.value;
329
- island.props["renderer-url"] = await result.resolve(renderer.clientEntrypoint);
330
- island.props["props"] = escapeHTML(serializeProps(props));
355
+ island.props["renderer-url"] = await result.resolve(decodeURI(renderer.clientEntrypoint));
356
+ island.props["props"] = escapeHTML(serializeProps(props, metadata));
331
357
  }
332
358
  island.props["ssr"] = "";
333
359
  island.props["client"] = hydrate;
@@ -917,7 +943,8 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
917
943
  `<!--${metadata.componentExport.value}:${metadata.componentUrl}-->
918
944
  ${html}
919
945
  ${serializeProps(
920
- props
946
+ props,
947
+ metadata
921
948
  )}`
922
949
  );
923
950
  const island = await generateHydrateScript(
@@ -1266,6 +1293,186 @@ var server_default = {
1266
1293
  renderToStaticMarkup
1267
1294
  };
1268
1295
 
1296
+ function isOutputFormat(value) {
1297
+ return ["avif", "jpeg", "png", "webp"].includes(value);
1298
+ }
1299
+ function isAspectRatioString(value) {
1300
+ return /^\d*:\d*$/.test(value);
1301
+ }
1302
+
1303
+ class SharpService {
1304
+ async getImageAttributes(transform) {
1305
+ const { width, height, src, format, quality, aspectRatio, fit, position, background, ...rest } = transform;
1306
+ return {
1307
+ ...rest,
1308
+ width,
1309
+ height
1310
+ };
1311
+ }
1312
+ serializeTransform(transform) {
1313
+ const searchParams = new URLSearchParams();
1314
+ if (transform.quality) {
1315
+ searchParams.append("q", transform.quality.toString());
1316
+ }
1317
+ if (transform.format) {
1318
+ searchParams.append("f", transform.format);
1319
+ }
1320
+ if (transform.width) {
1321
+ searchParams.append("w", transform.width.toString());
1322
+ }
1323
+ if (transform.height) {
1324
+ searchParams.append("h", transform.height.toString());
1325
+ }
1326
+ if (transform.aspectRatio) {
1327
+ searchParams.append("ar", transform.aspectRatio.toString());
1328
+ }
1329
+ if (transform.fit) {
1330
+ searchParams.append("fit", transform.fit);
1331
+ }
1332
+ if (transform.background) {
1333
+ searchParams.append("bg", transform.background);
1334
+ }
1335
+ if (transform.position) {
1336
+ searchParams.append("p", encodeURI(transform.position));
1337
+ }
1338
+ return { searchParams };
1339
+ }
1340
+ parseTransform(searchParams) {
1341
+ let transform = { src: searchParams.get("href") };
1342
+ if (searchParams.has("q")) {
1343
+ transform.quality = parseInt(searchParams.get("q"));
1344
+ }
1345
+ if (searchParams.has("f")) {
1346
+ const format = searchParams.get("f");
1347
+ if (isOutputFormat(format)) {
1348
+ transform.format = format;
1349
+ }
1350
+ }
1351
+ if (searchParams.has("w")) {
1352
+ transform.width = parseInt(searchParams.get("w"));
1353
+ }
1354
+ if (searchParams.has("h")) {
1355
+ transform.height = parseInt(searchParams.get("h"));
1356
+ }
1357
+ if (searchParams.has("ar")) {
1358
+ const ratio = searchParams.get("ar");
1359
+ if (isAspectRatioString(ratio)) {
1360
+ transform.aspectRatio = ratio;
1361
+ } else {
1362
+ transform.aspectRatio = parseFloat(ratio);
1363
+ }
1364
+ }
1365
+ if (searchParams.has("fit")) {
1366
+ transform.fit = searchParams.get("fit");
1367
+ }
1368
+ if (searchParams.has("p")) {
1369
+ transform.position = decodeURI(searchParams.get("p"));
1370
+ }
1371
+ if (searchParams.has("bg")) {
1372
+ transform.background = searchParams.get("bg");
1373
+ }
1374
+ return transform;
1375
+ }
1376
+ async transform(inputBuffer, transform) {
1377
+ const sharpImage = sharp(inputBuffer, { failOnError: false, pages: -1 });
1378
+ sharpImage.rotate();
1379
+ if (transform.width || transform.height) {
1380
+ const width = transform.width && Math.round(transform.width);
1381
+ const height = transform.height && Math.round(transform.height);
1382
+ sharpImage.resize({
1383
+ width,
1384
+ height,
1385
+ fit: transform.fit,
1386
+ position: transform.position,
1387
+ background: transform.background
1388
+ });
1389
+ }
1390
+ if (transform.background) {
1391
+ sharpImage.flatten({ background: transform.background });
1392
+ }
1393
+ if (transform.format) {
1394
+ sharpImage.toFormat(transform.format, { quality: transform.quality });
1395
+ }
1396
+ const { data, info } = await sharpImage.toBuffer({ resolveWithObject: true });
1397
+ return {
1398
+ data,
1399
+ format: info.format
1400
+ };
1401
+ }
1402
+ }
1403
+ const service = new SharpService();
1404
+ var sharp_default = service;
1405
+
1406
+ const fnv1a52 = (str) => {
1407
+ const len = str.length;
1408
+ let i = 0, t0 = 0, v0 = 8997, t1 = 0, v1 = 33826, t2 = 0, v2 = 40164, t3 = 0, v3 = 52210;
1409
+ while (i < len) {
1410
+ v0 ^= str.charCodeAt(i++);
1411
+ t0 = v0 * 435;
1412
+ t1 = v1 * 435;
1413
+ t2 = v2 * 435;
1414
+ t3 = v3 * 435;
1415
+ t2 += v0 << 8;
1416
+ t3 += v1 << 8;
1417
+ t1 += t0 >>> 16;
1418
+ v0 = t0 & 65535;
1419
+ t2 += t1 >>> 16;
1420
+ v1 = t1 & 65535;
1421
+ v3 = t3 + (t2 >>> 16) & 65535;
1422
+ v2 = t2 & 65535;
1423
+ }
1424
+ return (v3 & 15) * 281474976710656 + v2 * 4294967296 + v1 * 65536 + (v0 ^ v3 >> 4);
1425
+ };
1426
+ const etag = (payload, weak = false) => {
1427
+ const prefix = weak ? 'W/"' : '"';
1428
+ return prefix + fnv1a52(payload).toString(36) + payload.length.toString(36) + '"';
1429
+ };
1430
+
1431
+ function isRemoteImage(src) {
1432
+ return /^http(s?):\/\//.test(src);
1433
+ }
1434
+
1435
+ async function loadRemoteImage(src) {
1436
+ try {
1437
+ const res = await fetch(src);
1438
+ if (!res.ok) {
1439
+ return void 0;
1440
+ }
1441
+ return Buffer.from(await res.arrayBuffer());
1442
+ } catch {
1443
+ return void 0;
1444
+ }
1445
+ }
1446
+ const get$1 = async ({ request }) => {
1447
+ try {
1448
+ const url = new URL(request.url);
1449
+ const transform = sharp_default.parseTransform(url.searchParams);
1450
+ let inputBuffer = void 0;
1451
+ const sourceUrl = isRemoteImage(transform.src) ? new URL(transform.src) : new URL(transform.src, url.origin);
1452
+ inputBuffer = await loadRemoteImage(sourceUrl);
1453
+ if (!inputBuffer) {
1454
+ return new Response("Not Found", { status: 404 });
1455
+ }
1456
+ const { data, format } = await sharp_default.transform(inputBuffer, transform);
1457
+ return new Response(data, {
1458
+ status: 200,
1459
+ headers: {
1460
+ "Content-Type": mime.getType(format) || "",
1461
+ "Cache-Control": "public, max-age=31536000",
1462
+ ETag: etag(data.toString()),
1463
+ Date: new Date().toUTCString()
1464
+ }
1465
+ });
1466
+ } catch (err) {
1467
+ return new Response(`Server Error: ${err}`, { status: 500 });
1468
+ }
1469
+ };
1470
+
1471
+ const _page0 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1472
+ __proto__: null,
1473
+ get: get$1
1474
+ }, Symbol.toStringTag, { value: 'Module' }));
1475
+
1269
1476
  // @ts-ignore
1270
1477
  const _env$1 = (Object.assign({"BASE_URL":"/","MODE":"production","DEV":false,"PROD":true},{LANG:process.env.LANG,ECOM_STORE_ID:process.env.ECOM_STORE_ID,BASE_URL:'/',}))
1271
1478
  || (typeof process === 'object' && process?.env)
@@ -1430,7 +1637,7 @@ api.del = del;
1430
1637
  api.delete = del;
1431
1638
  // # sourceMappingURL=api.js.map
1432
1639
 
1433
- const $$module1$5 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1640
+ const $$module1$4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1434
1641
  __proto__: null,
1435
1642
  default: api,
1436
1643
  setMiddleware,
@@ -1539,54 +1746,77 @@ const getConfig = _getConfig;
1539
1746
  if (!globalThis.api_prefetch_endpoints) {
1540
1747
  globalThis.api_prefetch_endpoints = ["categories"];
1541
1748
  }
1749
+ const setResponseCache = (Astro, maxAge, sMaxAge) => {
1750
+ const headerName = Object.assign({"BASE_URL":"/","MODE":"production","DEV":false,"PROD":true}, { SSR: true }).PROD ? "Cache-Control" : "X-Cache-Control";
1751
+ let cacheControl = `public, max-age=${maxAge}`;
1752
+ if (sMaxAge) {
1753
+ cacheControl += `, s-maxage=${sMaxAge}, stale-while-revalidate=86400`;
1754
+ }
1755
+ Astro.response.headers.set(headerName, cacheControl);
1756
+ };
1542
1757
  const loadPageContext = async (Astro, {
1543
1758
  cmsCollection,
1544
1759
  apiPrefetchEndpoints = globalThis.api_prefetch_endpoints
1545
1760
  } = {}) => {
1761
+ const urlPath = Astro.url.pathname;
1546
1762
  const { slug } = Astro.params;
1547
1763
  const config = getConfig();
1548
1764
  let cmsContent;
1549
1765
  let apiResource;
1550
1766
  let apiDoc;
1551
1767
  const apiState = {};
1768
+ const apiOptions = {
1769
+ fetch,
1770
+ isNoAuth: true
1771
+ };
1772
+ const apiFetchings = [
1773
+ null,
1774
+ ...apiPrefetchEndpoints.map((endpoint) => api.get(endpoint, apiOptions))
1775
+ ];
1552
1776
  if (slug) {
1553
1777
  if (cmsCollection) {
1554
1778
  cmsContent = config.cms(`${cmsCollection}/${slug}`);
1555
1779
  } else {
1556
- const apiOptions = {
1557
- fetch,
1558
- isNoAuth: true
1559
- };
1560
- const apiFetchings = [
1561
- api.get(`slugs/${slug}`, apiOptions),
1562
- ...apiPrefetchEndpoints.map((endpoint) => api.get(endpoint, apiOptions))
1563
- ];
1564
- try {
1565
- const [slugResponse, ...prefetchResponses] = await Promise.all(apiFetchings);
1566
- apiResource = slugResponse.data.resource;
1567
- apiDoc = slugResponse.data.doc;
1568
- apiState[`${apiResource}/${apiDoc._id}`] = apiDoc;
1569
- prefetchResponses.forEach(({ config: { endpoint }, data }) => {
1570
- apiState[endpoint] = data;
1571
- });
1572
- } catch (e) {
1573
- const error = e;
1574
- let toUrl;
1575
- if (error.statusCode === 404) {
1576
- toUrl = "/404";
1577
- Astro.response.headers.set("Cache-Control", "public, max-age=120");
1578
- } else {
1579
- console.error(error);
1580
- toUrl = "/500";
1581
- Astro.response.headers.set("X-SSR-Error", error.stack);
1582
- }
1583
- const err = new Error(`Load page context failed: ${error.message}`);
1584
- err.originalError = error;
1585
- err.redirectUrl = `${toUrl}?url=${encodeURIComponent(Astro.url.pathname)}`;
1780
+ apiFetchings[0] = api.get(`slugs/${slug}`, apiOptions);
1781
+ }
1782
+ }
1783
+ try {
1784
+ const [slugResponse, ...prefetchResponses] = await Promise.all(apiFetchings);
1785
+ if (slugResponse) {
1786
+ apiResource = slugResponse.data.resource;
1787
+ apiDoc = slugResponse.data.doc;
1788
+ apiState[`${apiResource}/${apiDoc._id}`] = apiDoc;
1789
+ }
1790
+ prefetchResponses.forEach(({ config: { endpoint }, data }) => {
1791
+ apiState[endpoint] = data;
1792
+ });
1793
+ } catch (err) {
1794
+ const error = err;
1795
+ const status = error.statusCode || 500;
1796
+ if (status === 404) {
1797
+ if (urlPath.endsWith("/")) {
1798
+ err.redirectUrl = urlPath.slice(0, -1);
1586
1799
  err.astroResponse = Astro.redirect(err.redirectUrl);
1587
1800
  throw err;
1588
1801
  }
1802
+ setResponseCache(Astro, 120, 300);
1803
+ } else {
1804
+ console.error(error);
1805
+ setResponseCache(Astro, 30);
1806
+ Astro.response.headers.set("X-SSR-Error", error.message);
1589
1807
  }
1808
+ Astro.response.status = status;
1809
+ err.responseHTML = `<html><head>
1810
+ <meta http-equiv="refresh" content="0;
1811
+ url=/fallback?status=${status}&url=${encodeURIComponent(urlPath)}"/>
1812
+ </head>
1813
+ <body></body></html>`;
1814
+ throw err;
1815
+ }
1816
+ if (urlPath === "/fallback") {
1817
+ setResponseCache(Astro, 3600, 86400);
1818
+ } else {
1819
+ setResponseCache(Astro, 120, 600);
1590
1820
  }
1591
1821
  return {
1592
1822
  ...config,
@@ -1604,10 +1834,10 @@ const $$module2$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
1604
1834
  loadPageContext
1605
1835
  }, Symbol.toStringTag, { value: 'Module' }));
1606
1836
 
1607
- const $$metadata$c = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Head.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1608
- const $$Astro$c = 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/");
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/");
1609
1839
  const $$Head = createComponent(async ($$result, $$props, $$slots) => {
1610
- const Astro2 = $$result.createAstro($$Astro$c, $$props, $$slots);
1840
+ const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
1611
1841
  Astro2.self = $$Head;
1612
1842
  return renderTemplate`<meta charset="UTF-8">
1613
1843
  <meta name="viewport" content="width=device-width">
@@ -1615,25 +1845,25 @@ const $$Head = createComponent(async ($$result, $$props, $$slots) => {
1615
1845
  `;
1616
1846
  });
1617
1847
 
1618
- const $$file$c = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Head.astro";
1619
- const $$url$c = undefined;
1848
+ const $$file$a = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Head.astro";
1849
+ const $$url$a = undefined;
1620
1850
 
1621
1851
  const $$module2$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1622
1852
  __proto__: null,
1623
- $$metadata: $$metadata$c,
1853
+ $$metadata: $$metadata$a,
1624
1854
  default: $$Head,
1625
- file: $$file$c,
1626
- url: $$url$c
1855
+ file: $$file$a,
1856
+ url: $$url$a
1627
1857
  }, Symbol.toStringTag, { value: 'Module' }));
1628
1858
 
1629
1859
  var __freeze = Object.freeze;
1630
1860
  var __defProp = Object.defineProperty;
1631
1861
  var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) }));
1632
1862
  var _a;
1633
- const $$metadata$b = 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: [] });
1634
- const $$Astro$b = 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/");
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/");
1635
1865
  const $$Json = createComponent(async ($$result, $$props, $$slots) => {
1636
- const Astro2 = $$result.createAstro($$Astro$b, $$props, $$slots);
1866
+ const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
1637
1867
  Astro2.self = $$Json;
1638
1868
  const {
1639
1869
  storeId,
@@ -1663,66 +1893,132 @@ window._settings = ${JSON.stringify({
1663
1893
  return renderTemplate(_a || (_a = __template(["<script>", '<\/script>\n<script type="application/ld+json">', "<\/script>\n"])), markHTMLString(inlineClientJS), markHTMLString(inlineJSONLd));
1664
1894
  });
1665
1895
 
1666
- const $$file$b = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Json.astro";
1667
- const $$url$b = undefined;
1896
+ const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/meta/Json.astro";
1897
+ const $$url$9 = undefined;
1668
1898
 
1669
1899
  const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1670
1900
  __proto__: null,
1671
- $$metadata: $$metadata$b,
1901
+ $$metadata: $$metadata$9,
1672
1902
  default: $$Json,
1673
- file: $$file$b,
1674
- url: $$url$b
1903
+ file: $$file$9,
1904
+ url: $$url$9
1905
+ }, Symbol.toStringTag, { value: 'Module' }));
1906
+
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
1920
+ };
1921
+ }
1922
+ };
1923
+
1924
+ const _export_sfc = (sfc, props) => {
1925
+ const target = sfc.__vccOpts || sfc;
1926
+ for (const [key, val] of props) {
1927
+ target[key] = val;
1928
+ }
1929
+ return target;
1930
+ };
1931
+
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
1675
1948
  }, Symbol.toStringTag, { value: 'Module' }));
1676
1949
 
1677
- const $$metadata$a = 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: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1678
- const $$Astro$a = 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/");
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/");
1679
1971
  const $$Layout = createComponent(async ($$result, $$props, $$slots) => {
1680
- const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
1972
+ const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
1681
1973
  Astro2.self = $$Layout;
1682
1974
  const { lang } = getConfig();
1683
1975
  const { title } = Astro2.props;
1684
1976
  const STYLES = [];
1685
1977
  for (const STYLE of STYLES)
1686
1978
  $$result.styles.add(STYLE);
1687
- return renderTemplate`<html${addAttribute(lang.replace("_", "-"), "lang")} class="astro-6U5GBOCX">
1979
+ return renderTemplate`<html${addAttribute(lang.replace("_", "-"), "lang")} class="astro-6MFH5UJ4">
1688
1980
  <head>
1689
- ${renderComponent($$result, "MetaHead", $$Head, { "class": "astro-6U5GBOCX" })}
1981
+ ${renderComponent($$result, "MetaHead", $$Head, { "class": "astro-6MFH5UJ4" })}
1690
1982
  <title>${title}</title>
1691
1983
  ${renderHead($$result)}</head>
1692
- <body class="astro-6U5GBOCX">
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" })}
1693
1986
  ${renderSlot($$result, $$slots["default"])}
1694
- ${renderComponent($$result, "MetaJson", $$Json, { "class": "astro-6U5GBOCX" })}
1987
+ ${renderComponent($$result, "MetaJson", $$Json, { "class": "astro-6MFH5UJ4" })}
1988
+ ${renderSlot($$result, $$slots["firebase-init"])}
1989
+ </body>
1990
+ </html>
1695
1991
 
1696
- </body></html>`;
1992
+ `;
1697
1993
  });
1698
1994
 
1699
- const $$file$a = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Layout.astro";
1700
- const $$url$a = undefined;
1995
+ const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Layout.astro";
1996
+ const $$url$8 = undefined;
1701
1997
 
1702
- const $$module1$4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1998
+ const $$module1$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1703
1999
  __proto__: null,
1704
- $$metadata: $$metadata$a,
2000
+ $$metadata: $$metadata$8,
1705
2001
  default: $$Layout,
1706
- file: $$file$a,
1707
- url: $$url$a
2002
+ file: $$file$8,
2003
+ url: $$url$8
1708
2004
  }, Symbol.toStringTag, { value: 'Module' }));
1709
2005
 
1710
- const $$metadata$9 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Card.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1711
- const $$Astro$9 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Card.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2006
+ const $$metadata$7 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Card.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2007
+ const $$Astro$7 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Card.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1712
2008
  const $$Card = createComponent(async ($$result, $$props, $$slots) => {
1713
- const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
2009
+ const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
1714
2010
  Astro2.self = $$Card;
1715
2011
  const { href, title, body } = Astro2.props;
1716
2012
  const STYLES = [];
1717
2013
  for (const STYLE of STYLES)
1718
2014
  $$result.styles.add(STYLE);
1719
- return renderTemplate`${maybeRenderHead($$result)}<li class="link-card astro-ASCHB54V">
1720
- <a${addAttribute(href, "href")} class="astro-ASCHB54V">
1721
- <h2 class="astro-ASCHB54V">
2015
+ return renderTemplate`${maybeRenderHead($$result)}<li class="link-card astro-ZCG72YVN">
2016
+ <a${addAttribute(href, "href")} class="astro-ZCG72YVN">
2017
+ <h2 class="astro-ZCG72YVN">
1722
2018
  ${title}
1723
- <span class="astro-ASCHB54V">&rarr;</span>
2019
+ <span class="astro-ZCG72YVN">&rarr;</span>
1724
2020
  </h2>
1725
- <p class="astro-ASCHB54V">
2021
+ <p class="astro-ZCG72YVN">
1726
2022
  ${body}
1727
2023
  </p>
1728
2024
  </a>
@@ -1730,41 +2026,41 @@ const $$Card = createComponent(async ($$result, $$props, $$slots) => {
1730
2026
  `;
1731
2027
  });
1732
2028
 
1733
- const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Card.astro";
1734
- const $$url$9 = undefined;
2029
+ const $$file$7 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/Card.astro";
2030
+ const $$url$7 = undefined;
1735
2031
 
1736
2032
  const $$module2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1737
2033
  __proto__: null,
1738
- $$metadata: $$metadata$9,
2034
+ $$metadata: $$metadata$7,
1739
2035
  default: $$Card,
1740
- file: $$file$9,
1741
- url: $$url$9
2036
+ file: $$file$7,
2037
+ url: $$url$7
1742
2038
  }, Symbol.toStringTag, { value: 'Module' }));
1743
2039
 
1744
- const $$metadata$8 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/index.astro", { modules: [{ module: $$module1$5, specifier: "@cloudcommerce/api", assert: {} }, { module: $$module1$4, specifier: "../layouts/Layout.astro", assert: {} }, { module: $$module2, specifier: "../components/Card.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1745
- const $$Astro$8 = 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/");
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/");
1746
2042
  const $$Index$2 = createComponent(async ($$result, $$props, $$slots) => {
1747
- const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
2043
+ const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
1748
2044
  Astro2.self = $$Index$2;
1749
2045
  const products = (await api.get("products")).data.result;
1750
2046
  const STYLES = [];
1751
2047
  for (const STYLE of STYLES)
1752
2048
  $$result.styles.add(STYLE);
1753
- return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Welcome to Astro.", "class": "astro-FWWSR4V6" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-FWWSR4V6">
1754
- <h1 class="astro-FWWSR4V6">Welcome to <span class="text-gradient astro-FWWSR4V6">Astro</span></h1>
1755
- <p class="instructions astro-FWWSR4V6">
1756
- Check out the <code class="astro-FWWSR4V6">src/pages</code> directory to get started.<br class="astro-FWWSR4V6">
1757
- <strong class="astro-FWWSR4V6">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
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.
1758
2054
  </p>
1759
- <ul role="list" class="link-card-grid astro-FWWSR4V6">
1760
- ${renderComponent($$result, "Card", $$Card, { "href": "https://docs.astro.build/", "title": "Documentation", "body": "Learn how Astro works and explore the official API docs.", "class": "astro-FWWSR4V6" })}
1761
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-FWWSR4V6" })}
1762
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-FWWSR4V6" })}
1763
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/chat/", "title": "Chat", "body": "Come say hi to our amazing Discord community. \u2764\uFE0F", "class": "astro-FWWSR4V6" })}
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" })}
1764
2060
  </ul>
1765
- <ul role="list" class="mt-3 fs-20 astro-FWWSR4V6">
1766
- ${products.map((product) => renderTemplate`<li class="astro-FWWSR4V6">
1767
- <a${addAttribute(`/${product.slug}`, "href")} class="astro-FWWSR4V6">${product.sku}</a>
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>
1768
2064
  </li>`)}
1769
2065
  </ul>
1770
2066
  </main>` })}
@@ -1772,160 +2068,104 @@ const $$Index$2 = createComponent(async ($$result, $$props, $$slots) => {
1772
2068
  `;
1773
2069
  });
1774
2070
 
1775
- const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/index.astro";
1776
- const $$url$8 = undefined;
1777
-
1778
- const $$module1$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1779
- __proto__: null,
1780
- $$metadata: $$metadata$8,
1781
- default: $$Index$2,
1782
- file: $$file$8,
1783
- url: $$url$8
1784
- }, Symbol.toStringTag, { value: 'Module' }));
1785
-
1786
- const $$metadata$7 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", { modules: [{ module: $$module1$3, specifier: "../lib/views/index.astro", assert: {} }, { module: $$module2$2, specifier: "../lib/ssr-context", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1787
- const $$Astro$7 = 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/");
1788
- const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
1789
- const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
1790
- Astro2.self = $$Index$1;
1791
- let pageContext;
1792
- try {
1793
- pageContext = await loadPageContext(Astro2);
1794
- } catch (err) {
1795
- return err.astroResponse;
1796
- }
1797
- return renderTemplate`${renderComponent($$result, "ViewHome", $$Index$2, { "pageContext": pageContext })}`;
1798
- });
1799
-
1800
- const $$file$7 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro";
1801
- const $$url$7 = "";
1802
-
1803
- const _page0 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1804
- __proto__: null,
1805
- $$metadata: $$metadata$7,
1806
- default: $$Index$1,
1807
- file: $$file$7,
1808
- url: $$url$7
1809
- }, Symbol.toStringTag, { value: 'Module' }));
1810
-
1811
- const $$metadata$6 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/404.astro", { modules: [{ module: $$module1$4, specifier: "../layouts/Layout.astro", assert: {} }, { module: $$module2, specifier: "../components/Card.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1812
- const $$Astro$6 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/404.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1813
- const $$404$1 = createComponent(async ($$result, $$props, $$slots) => {
1814
- const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
1815
- Astro2.self = $$404$1;
1816
- const STYLES = [];
1817
- for (const STYLE of STYLES)
1818
- $$result.styles.add(STYLE);
1819
- return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Welcome to Astro.", "class": "astro-DJT3DWAO" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-DJT3DWAO">
1820
- <h1 class="astro-DJT3DWAO">404</h1>
1821
- <p class="instructions astro-DJT3DWAO">
1822
- Check out the <code class="astro-DJT3DWAO">src/pages</code> directory to get started.<br class="astro-DJT3DWAO">
1823
- <strong class="astro-DJT3DWAO">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
1824
- </p>
1825
- <ul role="list" class="link-card-grid astro-DJT3DWAO">
1826
- ${renderComponent($$result, "Card", $$Card, { "href": "https://docs.astro.build/", "title": "Documentation", "body": "Learn how Astro works and explore the official API docs.", "class": "astro-DJT3DWAO" })}
1827
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-DJT3DWAO" })}
1828
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-DJT3DWAO" })}
1829
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/chat/", "title": "Chat", "body": "Come say hi to our amazing Discord community. \u2764\uFE0F", "class": "astro-DJT3DWAO" })}
1830
- </ul>
1831
- </main>` })}
1832
-
1833
- `;
1834
- });
1835
-
1836
- const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/404.astro";
2071
+ const $$file$6 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/index.astro";
1837
2072
  const $$url$6 = undefined;
1838
2073
 
1839
2074
  const $$module1$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1840
2075
  __proto__: null,
1841
2076
  $$metadata: $$metadata$6,
1842
- default: $$404$1,
2077
+ default: $$Index$2,
1843
2078
  file: $$file$6,
1844
2079
  url: $$url$6
1845
2080
  }, Symbol.toStringTag, { value: 'Module' }));
1846
2081
 
1847
- const $$metadata$5 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/404.astro", { modules: [{ module: $$module1$2, specifier: "../lib/views/404.astro", assert: {} }, { module: $$module2$2, specifier: "../lib/ssr-context", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1848
- const $$Astro$5 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/404.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1849
- const $$404 = createComponent(async ($$result, $$props, $$slots) => {
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: [] });
2083
+ 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
+ const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
1850
2085
  const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
1851
- Astro2.self = $$404;
2086
+ Astro2.self = $$Index$1;
1852
2087
  let pageContext;
2088
+ let loadError;
1853
2089
  try {
1854
2090
  pageContext = await loadPageContext(Astro2);
1855
2091
  } catch (err) {
1856
- return err.astroResponse;
2092
+ if (err.astroResponse) {
2093
+ return err.astroResponse;
2094
+ }
2095
+ loadError = err;
1857
2096
  }
1858
- return renderTemplate`${renderComponent($$result, "View404", $$404$1, { "pageContext": pageContext })}`;
2097
+ return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "ViewHome", $$Index$2, { "pageContext": pageContext })}`}
2098
+ ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${markHTMLString(loadError.responseHTML)}` })}`}`;
1859
2099
  });
1860
2100
 
1861
- const $$file$5 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/404.astro";
1862
- const $$url$5 = "/404";
2101
+ const $$file$5 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro";
2102
+ const $$url$5 = "";
1863
2103
 
1864
2104
  const _page1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1865
2105
  __proto__: null,
1866
2106
  $$metadata: $$metadata$5,
1867
- default: $$404,
2107
+ default: $$Index$1,
1868
2108
  file: $$file$5,
1869
2109
  url: $$url$5
1870
2110
  }, Symbol.toStringTag, { value: 'Module' }));
1871
2111
 
1872
- const $$metadata$4 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/500.astro", { modules: [{ module: $$module1$4, specifier: "../layouts/Layout.astro", assert: {} }, { module: $$module2, specifier: "../components/Card.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1873
- const $$Astro$4 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/500.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1874
- const $$500$1 = createComponent(async ($$result, $$props, $$slots) => {
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: [] });
2113
+ 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
+ const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
1875
2115
  const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
1876
- Astro2.self = $$500$1;
2116
+ Astro2.self = $$Fallback$1;
1877
2117
  const STYLES = [];
1878
2118
  for (const STYLE of STYLES)
1879
2119
  $$result.styles.add(STYLE);
1880
- return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": "Welcome to Astro.", "class": "astro-NR6LLUHL" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-NR6LLUHL">
1881
- <h1 class="astro-NR6LLUHL">5xx</h1>
1882
- <p class="instructions astro-NR6LLUHL">
1883
- Check out the <code class="astro-NR6LLUHL">src/pages</code> directory to get started.<br class="astro-NR6LLUHL">
1884
- <strong class="astro-NR6LLUHL">Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
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.
1885
2125
  </p>
1886
- <ul role="list" class="link-card-grid astro-NR6LLUHL">
1887
- ${renderComponent($$result, "Card", $$Card, { "href": "https://docs.astro.build/", "title": "Documentation", "body": "Learn how Astro works and explore the official API docs.", "class": "astro-NR6LLUHL" })}
1888
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/integrations/", "title": "Integrations", "body": "Supercharge your project with new frameworks and libraries.", "class": "astro-NR6LLUHL" })}
1889
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/themes/", "title": "Themes", "body": "Explore a galaxy of community-built starter themes.", "class": "astro-NR6LLUHL" })}
1890
- ${renderComponent($$result, "Card", $$Card, { "href": "https://astro.build/chat/", "title": "Chat", "body": "Come say hi to our amazing Discord community. \u2764\uFE0F", "class": "astro-NR6LLUHL" })}
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" })}
1891
2131
  </ul>
1892
2132
  </main>` })}
1893
2133
 
1894
2134
  `;
1895
2135
  });
1896
2136
 
1897
- const $$file$4 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/500.astro";
2137
+ const $$file$4 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/fallback.astro";
1898
2138
  const $$url$4 = undefined;
1899
2139
 
1900
2140
  const $$module1$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1901
2141
  __proto__: null,
1902
2142
  $$metadata: $$metadata$4,
1903
- default: $$500$1,
2143
+ default: $$Fallback$1,
1904
2144
  file: $$file$4,
1905
2145
  url: $$url$4
1906
2146
  }, Symbol.toStringTag, { value: 'Module' }));
1907
2147
 
1908
- const $$metadata$3 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/500.astro", { modules: [{ module: $$module1$1, specifier: "../lib/views/500.astro", assert: {} }, { module: $$module2$2, specifier: "../lib/ssr-context", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
1909
- const $$Astro$3 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/500.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
1910
- const $$500 = createComponent(async ($$result, $$props, $$slots) => {
2148
+ const $$metadata$3 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro", { modules: [{ module: $$module1$1, specifier: "../lib/views/fallback.astro", assert: {} }, { module: $$module2$2, specifier: "../lib/ssr-context", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
2149
+ const $$Astro$3 = createAstro("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
2150
+ const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
1911
2151
  const Astro2 = $$result.createAstro($$Astro$3, $$props, $$slots);
1912
- Astro2.self = $$500;
2152
+ Astro2.self = $$Fallback;
1913
2153
  let pageContext;
1914
2154
  try {
1915
2155
  pageContext = await loadPageContext(Astro2);
1916
2156
  } catch (err) {
1917
2157
  return err.astroResponse;
1918
2158
  }
1919
- return renderTemplate`${renderComponent($$result, "View500", $$500$1, { "pageContext": pageContext })}`;
2159
+ return renderTemplate`${renderComponent($$result, "ViewFallback", $$Fallback$1, { "pageContext": pageContext })}`;
1920
2160
  });
1921
2161
 
1922
- const $$file$3 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/500.astro";
1923
- const $$url$3 = "/500";
2162
+ const $$file$3 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro";
2163
+ const $$url$3 = "/fallback";
1924
2164
 
1925
2165
  const _page2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1926
2166
  __proto__: null,
1927
2167
  $$metadata: $$metadata$3,
1928
- default: $$500,
2168
+ default: $$Fallback,
1929
2169
  file: $$file$3,
1930
2170
  url: $$url$3
1931
2171
  }, Symbol.toStringTag, { value: 'Module' }));
@@ -1949,7 +2189,7 @@ const _page3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
1949
2189
  url: $$url$2
1950
2190
  }, Symbol.toStringTag, { value: 'Module' }));
1951
2191
 
1952
- const $$metadata$1 = createMetadata("/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/views/[...slug].astro", { modules: [{ module: $$module1$4, specifier: "../layouts/Layout.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
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: [] });
1953
2193
  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/");
1954
2194
  const $$$1 = createComponent(async ($$result, $$props, $$slots) => {
1955
2195
  const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
@@ -1959,13 +2199,13 @@ const $$$1 = createComponent(async ($$result, $$props, $$slots) => {
1959
2199
  const STYLES = [];
1960
2200
  for (const STYLE of STYLES)
1961
2201
  $$result.styles.add(STYLE);
1962
- return renderTemplate`${renderComponent($$result, "Layout", $$Layout, { "title": apiDoc.name, "class": "astro-JWBYURAL" }, { "default": () => renderTemplate`${maybeRenderHead($$result)}<main class="astro-JWBYURAL">
1963
- <h1 class="astro-JWBYURAL">Hello <span class="text-gradient astro-JWBYURAL">${apiDoc.name}</span></h1>
1964
- <hr class="astro-JWBYURAL">
1965
- <div class="mt-3 astro-JWBYURAL">
1966
- <mark class="astro-JWBYURAL">${apiDoc._id}</mark> from <i class="astro-JWBYURAL">${apiResource}</i>
1967
- <p class="astro-JWBYURAL">${Math.random()}</p>
1968
- <em class="astro-JWBYURAL">Lorem ipsum dolor sit amet</em>
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>
1969
2209
  </div>
1970
2210
  </main>` })}
1971
2211
 
@@ -1989,12 +2229,17 @@ const $$ = createComponent(async ($$result, $$props, $$slots) => {
1989
2229
  const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
1990
2230
  Astro2.self = $$;
1991
2231
  let pageContext;
2232
+ let loadError;
1992
2233
  try {
1993
2234
  pageContext = await loadPageContext(Astro2);
1994
2235
  } catch (err) {
1995
- return err.astroResponse;
2236
+ if (err.astroResponse) {
2237
+ return err.astroResponse;
2238
+ }
2239
+ loadError = err;
1996
2240
  }
1997
- return renderTemplate`${renderComponent($$result, "ViewWildcard", $$$1, { "pageContext": pageContext })}`;
2241
+ return renderTemplate`${pageContext && renderTemplate`${renderComponent($$result, "ViewWildcard", $$$1, { "pageContext": pageContext })}`}
2242
+ ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${markHTMLString(loadError.responseHTML)}` })}`}`;
1998
2243
  });
1999
2244
 
2000
2245
  const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro";
@@ -2008,7 +2253,7 @@ const _page4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2008
2253
  url: $$url
2009
2254
  }, Symbol.toStringTag, { value: 'Module' }));
2010
2255
 
2011
- const pageMap = new Map([['src/pages/index.astro', _page0],['src/pages/404.astro', _page1],['src/pages/500.astro', _page2],['src/pages/app/index.astro', _page3],['src/pages/[...slug].astro', _page4],]);
2256
+ const pageMap = new Map([['../../node_modules/.pnpm/@astrojs+image@0.7.0/node_modules/@astrojs/image/dist/endpoint.js', _page0],['src/pages/index.astro', _page1],['src/pages/fallback.astro', _page2],['src/pages/app/index.astro', _page3],['src/pages/[...slug].astro', _page4],]);
2012
2257
  const renderers = [Object.assign({"name":"astro:jsx","serverEntrypoint":"astro/jsx/server.js","jsxImportSource":"astro"}, { ssr: server_default }),Object.assign({"name":"@astrojs/vue","clientEntrypoint":"@astrojs/vue/client.js","serverEntrypoint":"@astrojs/vue/server.js"}, { ssr: _renderer1 }),];
2013
2258
 
2014
2259
  if (typeof process !== "undefined") {
@@ -2080,7 +2325,7 @@ function deserializeManifest(serializedManifest) {
2080
2325
  };
2081
2326
  }
2082
2327
 
2083
- const _manifest = Object.assign(deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":["assets/404-500-_...d4aa8aff.css","assets/404-500-index.d9230d24.css","assets/index.9745690c.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":"/","type":"page","pattern":"^\\/$","segments":[],"params":[],"component":"src/pages/index.astro","pathname":"/","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/404-500-_...d4aa8aff.css","assets/404-500-index.d9230d24.css","assets/404.b3ead908.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":"/404","type":"page","pattern":"^\\/404\\/?$","segments":[[{"content":"404","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/404.astro","pathname":"/404","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/404-500-_...d4aa8aff.css","assets/404-500-index.d9230d24.css","assets/500.d5d7700b.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":"/500","type":"page","pattern":"^\\/500\\/?$","segments":[[{"content":"500","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/500.astro","pathname":"/500","_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/404-500-_...d4aa8aff.css","assets/_...c08e0a75.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":"/[...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.6d48c590.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/404.b3ead908.css","/assets/500.d5d7700b.css","/assets/404-500-_...d4aa8aff.css","/assets/404-500-index.d9230d24.css","/assets/_...c08e0a75.css","/assets/index.9745690c.css","/client.6d48c590.js","/favicon.ico","/page.3aa82516.js","/page.3aa82516.js","/~partytown/partytown-atomics.js","/~partytown/partytown-media.js","/~partytown/partytown-sw.js","/~partytown/partytown.js"]}), {
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"]}), {
2084
2329
  pageMap: pageMap,
2085
2330
  renderers: renderers
2086
2331
  });