cloudcommerce 2.13.0 → 2.14.0
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/CHANGELOG.md +22 -0
- package/ecomplus-stores/barradoce/conf/firebase.json +1 -0
- package/ecomplus-stores/barradoce/functions/many/package.json +3 -3
- package/ecomplus-stores/barradoce/functions/ssr/content/extra-pages/promocoes.md +1 -1
- package/ecomplus-stores/barradoce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barradoce/functions/ssr/src/components/AccountMenu.vue +18 -15
- package/ecomplus-stores/barradoce/functions/ssr/src/components/AccountPage.vue +5 -5
- package/ecomplus-stores/barradoce/functions/ssr/src/components/LoginForm.vue +16 -10
- package/ecomplus-stores/barradoce/functions/ssr/src/components/ShopFooter.vue +1 -1
- package/ecomplus-stores/barradoce/functions/ssr/src/pages/sitemap-[index].xml.astro +75 -0
- package/ecomplus-stores/barradoce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barradoce/package.json +2 -2
- package/package.json +2 -2
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagaleve/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/pagarme-v5/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/ci/bunny-config-base.sh +4 -6
- package/packages/cli/config/firebase.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/feeds/lib/firebase/render-catalog.js +272 -0
- package/packages/feeds/lib/firebase/render-catalog.js.map +1 -0
- package/packages/feeds/lib/firebase/render-sitemap.js +42 -0
- package/packages/feeds/lib/firebase/render-sitemap.js.map +1 -0
- package/packages/feeds/lib/firebase/serve-feeds.js +22 -270
- package/packages/feeds/lib/firebase/serve-feeds.js.map +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/feeds/src/firebase/render-catalog.ts +286 -0
- package/packages/feeds/src/firebase/render-sitemap.ts +46 -0
- package/packages/feeds/src/firebase/serve-feeds.ts +22 -283
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/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/dist/client/_astro/{AccountPage.Cf0WE6GF.js → AccountPage.CKu0oakN.js} +1 -1
- package/packages/storefront/dist/client/_astro/{CartSidebar.DAvJKL2c.js → CartSidebar.Bxz7ZD9N.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductDetails.BpZtnS8j.js → ProductDetails.PkZr50hA.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.C0TU_sRb.js → ProductShelf.BKz6WXbp.js} +1 -1
- package/packages/storefront/dist/client/_astro/{SearchModal.DWNSfxML.js → SearchModal.BIrixnFb.js} +1 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.YMZqG8rj.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.BOLegIRO.js +7 -0
- package/packages/storefront/dist/client/_astro/{_slug_.HhgCFKHv.css → _slug_.oAbCb631.css} +1 -1
- package/packages/storefront/dist/client/_astro/customer-session.B9MvrBAQ.js +7 -0
- package/packages/storefront/dist/client/_astro/ecom-icon.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_12falx.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_15pqnO.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_t3guw.png +0 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.CmI1zl7o.js → firebase-app.DPioxxma.js} +1 -1
- package/packages/storefront/dist/client/_astro/headphone.webp +0 -0
- package/packages/storefront/dist/client/_astro/headphone_T2Jjc.avif +0 -0
- package/packages/storefront/dist/client/_astro/headphone_Z1CG18r.webp +0 -0
- package/packages/storefront/dist/client/_astro/{hoisted.BeKMioW4.js → hoisted.8Sq2YuJM.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.Bf1gCkSN.js → hoisted.BzVcl7We.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.-C0vLMXT.js → hoisted.CPcG9RpX.js} +1 -1
- package/packages/storefront/dist/client/_astro/{index-a8cf6c8f.k99a-gIB.js → index-219c3cac.78peI8kt.js} +3 -3
- package/packages/storefront/dist/client/_astro/logo.png +0 -0
- package/packages/storefront/dist/client/_astro/logo_1UBsBq.webp +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1K5PE9.png +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1KIIl1.avif +0 -0
- package/packages/storefront/dist/client/_astro/passion.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_LHbe9.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_Z23MeUb.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1TtOHY.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1f5opX.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_IUskt.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Uxfdf.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z15uApA.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1Ap1Im.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1JT1HB.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_ZY9mtN.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_tMFW0.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1TgQXS.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_2Nm1z.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_DIqwR.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z1IKDb2.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z29FI4V.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z2kFHGk.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_ZkpPFI.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_jXzBi.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_x1l16.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89_1TSfW7.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect89_Z1re32x.webp +0 -0
- package/packages/storefront/dist/client/_astro/{shopping-cart.Cqc6p5UR.js → shopping-cart.D8fbm2Dv.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-analytics.bP3a5cR0.js → use-analytics.D_peWG3X.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-product-card.Cj9Q-Y1A.js → use-product-card.BCGHZKB5.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-text-value.DT0v9Yj_.js → use-text-value.BFLvKnYE.js} +1 -1
- package/packages/storefront/dist/client/assets/cvv.png +0 -0
- package/packages/storefront/dist/client/assets/payments.png +0 -0
- package/packages/storefront/dist/client/robots.txt +2 -0
- package/packages/storefront/dist/client/~fallback.html +112 -0
- package/packages/storefront/dist/client/~index.html +137 -0
- package/packages/storefront/dist/server/_astro-internal_middleware.mjs +2 -2
- package/packages/storefront/dist/server/chunks/404_BUZm2bP1.mjs +5 -0
- package/packages/storefront/dist/server/chunks/{CartSidebar_tmly-0ip.mjs → CartSidebar_kQSDOTj2.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{SearchModal_CGNQss2j.mjs → SearchModal_O1xTrm-9.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/{_.._Bt6Uzpk2.mjs → _.._6Bd7O3FD.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{_astro-internal_middleware_CqUpziyW.mjs → _astro-internal_middleware_BnKXd-Ev.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{_page__Dz-iZHMh.mjs → _page__CXnal5Rn.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{account_tfs9KFTy.mjs → account_C6XTKIP9.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/astro/{assets-service_DSoC_W52.mjs → assets-service_146xb0vN.mjs} +11 -67
- package/packages/storefront/dist/server/chunks/{astro_Cu3MZ9xv.mjs → astro_DIU6qHCh.mjs} +34 -79
- package/packages/storefront/dist/server/chunks/{index_CGzMgZTN.mjs → index_EbDDnIXs.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{index_BKS_40rA.mjs → index_STpvD2cy.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{node_lZaNT3E1.mjs → node_DHQVZgH_.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{404_CMwuVMu1.mjs → 404_n3mvoSWv.mjs} +94 -1140
- package/packages/storefront/dist/server/chunks/pages/{__Dz53F-0T.mjs → __C9Nd4c7_.mjs} +11 -42
- package/packages/storefront/dist/server/chunks/pages/{_page__C1x19nYF.mjs → _page__BnXBvVvn.mjs} +4 -20
- package/packages/storefront/dist/server/chunks/pages/account_Dk-8R3rY.mjs +22 -0
- package/packages/storefront/dist/server/chunks/pages/{index_CqvjdvSg.mjs → index_us3QX6kE.mjs} +5 -22
- package/packages/storefront/dist/server/chunks/pages/node_BGdGQ52C.mjs +1864 -0
- package/packages/storefront/dist/server/chunks/pages/sitemap-_index__rcX10oKd.mjs +32 -0
- package/packages/storefront/dist/server/chunks/pages/~fallback_BNfV6ECv.mjs +22 -0
- package/packages/storefront/dist/server/chunks/sitemap-_index__e6mToVZH.mjs +5 -0
- package/packages/storefront/dist/server/chunks/{~fallback_CrFe__-f.mjs → ~fallback_Cg1Pbe1d.mjs} +1 -1
- package/packages/storefront/dist/server/entry.mjs +18 -17
- package/packages/storefront/dist/server/images.dist.csv +37 -0
- package/packages/storefront/dist/server/images.src.csv +13 -0
- package/packages/storefront/dist/server/manifest_xBcEm6Np.mjs +206 -0
- package/packages/storefront/dist/server/middleware.mjs +2 -2
- package/packages/storefront/dist/server/renderers.mjs +1 -1
- package/packages/storefront/dist/server/static-builds.csv +80 -0
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/scripts/build-prod.sh +17 -0
- package/packages/storefront/src/lib/components/AccountLink.vue +16 -11
- package/packages/storefront/src/lib/components/globals/Skeleton.vue +6 -4
- package/packages/storefront/src/lib/composables/use-login-form.ts +6 -1
- package/packages/storefront/src/lib/scripts/vbeta-app.ts +11 -2
- package/packages/storefront/src/lib/state/customer-session.ts +8 -1
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.CUkbXIRk.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.D7qqQxFD.js +0 -7
- package/packages/storefront/dist/client/_astro/customer-session.Cctko5_9.js +0 -7
- package/packages/storefront/dist/client/assets/.gitkeep +0 -2
- package/packages/storefront/dist/server/chunks/404_BcY_5eJJ.mjs +0 -5
- package/packages/storefront/dist/server/chunks/pages/account_B5Z6wDBy.mjs +0 -32
- package/packages/storefront/dist/server/chunks/pages/node_mvX6Tssv.mjs +0 -879
- package/packages/storefront/dist/server/chunks/pages/~fallback_D2ugBVgc.mjs +0 -32
- package/packages/storefront/dist/server/manifest_D4v8KX-D.mjs +0 -206
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { c as createAstro, b as createComponent, r as renderTemplate, h as renderComponent, u as unescapeHTML, F as Fragment } from '../astro_DIU6qHCh.mjs';
|
|
2
|
+
import 'kleur/colors';
|
|
3
|
+
import { K as loadRouteContext } from './404_n3mvoSWv.mjs';
|
|
4
|
+
|
|
5
|
+
const $$Astro = createAstro("https://demo.ecomplus.app");
|
|
6
|
+
const partial = true;
|
|
7
|
+
async function getStaticPaths() {
|
|
8
|
+
return [];
|
|
9
|
+
}
|
|
10
|
+
const $$Sitemapindex = createComponent(async ($$result, $$props, $$slots) => {
|
|
11
|
+
const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
|
|
12
|
+
Astro2.self = $$Sitemapindex;
|
|
13
|
+
let routeContext;
|
|
14
|
+
try {
|
|
15
|
+
routeContext = await loadRouteContext(Astro2);
|
|
16
|
+
} catch (err) {
|
|
17
|
+
return err.astroResponse;
|
|
18
|
+
}
|
|
19
|
+
const { settings: { domain } } = routeContext;
|
|
20
|
+
Astro2.response.headers.set("Content-Type", "application/xml; charset=UTF-8");
|
|
21
|
+
const xml = `<?xml version="1.0" encoding="UTF-8"?>
|
|
22
|
+
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
23
|
+
<sitemap><loc>https://${domain}/sitemap-0.xml</loc></sitemap>
|
|
24
|
+
<sitemap><loc>https://${domain}/sitemap-products.xml</loc></sitemap>
|
|
25
|
+
</sitemapindex>`;
|
|
26
|
+
return renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": ($$result2) => renderTemplate`${unescapeHTML(xml)}` })}`;
|
|
27
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/sitemap-[index].xml.astro", void 0);
|
|
28
|
+
|
|
29
|
+
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/sitemap-[index].xml.astro";
|
|
30
|
+
const $$url = "/sitemap-[index].xml";
|
|
31
|
+
|
|
32
|
+
export { $$Sitemapindex as default, $$file as file, getStaticPaths, partial, $$url as url };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { c as createAstro, b as createComponent, r as renderTemplate, d as addAttribute, h as renderComponent, F as Fragment } from '../astro_DIU6qHCh.mjs';
|
|
2
|
+
import 'kleur/colors';
|
|
3
|
+
import { K as loadRouteContext, M as $$BaseHead, S as i19error, N as $$PageHeader, T as $$Fallback, O as $$PageFooter, L as $$Base } from './404_n3mvoSWv.mjs';
|
|
4
|
+
|
|
5
|
+
const $$Astro = createAstro("https://demo.ecomplus.app");
|
|
6
|
+
const $$fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
7
|
+
const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
|
|
8
|
+
Astro2.self = $$fallback;
|
|
9
|
+
let routeContext;
|
|
10
|
+
try {
|
|
11
|
+
routeContext = await loadRouteContext(Astro2);
|
|
12
|
+
} catch (err) {
|
|
13
|
+
return err.astroResponse;
|
|
14
|
+
}
|
|
15
|
+
const { settings } = routeContext;
|
|
16
|
+
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}> ${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "Fragment", Fragment, { "slot": "base-head" }, { "default": ($$result3) => renderTemplate`${renderComponent($$result3, "BaseHead", $$BaseHead, {})}<title>${`${i19error} | ${settings.name}`}</title>` })}`, "default": ($$result2) => renderTemplate`${renderComponent($$result2, "PageHeader", $$PageHeader, {})}${renderComponent($$result2, "FallbackMain", $$Fallback, {})}${renderComponent($$result2, "PageFooter", $$PageFooter, {})}` })}</html>`;
|
|
17
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro", void 0);
|
|
18
|
+
|
|
19
|
+
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro";
|
|
20
|
+
const $$url = "/~fallback";
|
|
21
|
+
|
|
22
|
+
export { $$fallback as default, $$file as file, $$url as url };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { renderers } from './renderers.mjs';
|
|
2
|
-
import { l as levels, g as getEventPrefix, L as Logger, A as AstroIntegrationLogger, manifest } from './
|
|
2
|
+
import { l as levels, g as getEventPrefix, L as Logger, A as AstroIntegrationLogger, manifest } from './manifest_xBcEm6Np.mjs';
|
|
3
3
|
import { appendForwardSlash as appendForwardSlash$1, joinPaths, trimSlashes, fileExtension, slash, prependForwardSlash as prependForwardSlash$1, removeTrailingForwardSlash, collapseDuplicateSlashes } from '@astrojs/internal-helpers/path';
|
|
4
|
-
import { A as AstroError, R as ResponseSentError,
|
|
4
|
+
import { A as AstroError, R as ResponseSentError, n as MiddlewareNoDataOrNextCalled, o as MiddlewareNotAResponse, p as ROUTE_TYPE_HEADER, q as REROUTE_DIRECTIVE_HEADER, G as GetStaticPathsRequired, t as InvalidGetStaticPathsReturn, v as InvalidGetStaticPathsEntry, w as GetStaticPathsExpectedParams, x as GetStaticPathsInvalidRouteParam, P as PageNumberParamNotFound, D as DEFAULT_404_COMPONENT, N as NoMatchingStaticPathFound, y as PrerenderDynamicEndpointPathCollide, z as ReservedSlotName, e as renderSlotToString, B as renderJSX, C as chunkToString, H as LocalsNotAnObject, J as clientLocalsSymbol, K as clientAddressSymbol$1, O as ClientAddressNotAvailable, S as StaticClientAddressNotAvailable, Q as ASTRO_VERSION, T as responseSentSymbol$1, V as AstroResponseHeadersReassigned, W as renderPage, X as renderEndpoint, Y as REROUTABLE_STATUS_CODES } from './chunks/astro_DIU6qHCh.mjs';
|
|
5
5
|
import { serialize, parse } from 'cookie';
|
|
6
6
|
import 'clsx';
|
|
7
|
-
import { s as sequence, o as onRequest } from './chunks/_astro-
|
|
7
|
+
import { s as sequence, o as onRequest } from './chunks/_astro-internal_middleware_BnKXd-Ev.mjs';
|
|
8
8
|
import 'kleur/colors';
|
|
9
9
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
10
10
|
import https$1 from 'https';
|
|
@@ -1387,7 +1387,7 @@ function ensure404Route(manifest) {
|
|
|
1387
1387
|
params: [],
|
|
1388
1388
|
pattern: /\/404/,
|
|
1389
1389
|
prerender: false,
|
|
1390
|
-
segments: [
|
|
1390
|
+
segments: [],
|
|
1391
1391
|
type: "page",
|
|
1392
1392
|
route: "/404",
|
|
1393
1393
|
fallbackRoutes: [],
|
|
@@ -1858,9 +1858,8 @@ class NodeApp extends App {
|
|
|
1858
1858
|
*/
|
|
1859
1859
|
static createRequest(req, { skipBody = false } = {}) {
|
|
1860
1860
|
const protocol = req.headers["x-forwarded-proto"] ?? ("encrypted" in req.socket && req.socket.encrypted ? "https" : "http");
|
|
1861
|
-
const hostname = req.headers
|
|
1862
|
-
const
|
|
1863
|
-
const url = `${protocol}://${hostname}${port ? `:${port}` : ""}${req.url}`;
|
|
1861
|
+
const hostname = req.headers.host || req.headers[":authority"];
|
|
1862
|
+
const url = `${protocol}://${hostname}${req.url}`;
|
|
1864
1863
|
const options = {
|
|
1865
1864
|
method: req.method || "GET",
|
|
1866
1865
|
headers: makeRequestHeaders(req)
|
|
@@ -2258,23 +2257,25 @@ const serverEntrypointModule = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.de
|
|
|
2258
2257
|
start
|
|
2259
2258
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
2260
2259
|
|
|
2261
|
-
const _page0 = () => import('./chunks/
|
|
2262
|
-
const _page1 = () => import('./chunks/~
|
|
2263
|
-
const _page2 = () => import('./chunks/
|
|
2264
|
-
const _page3 = () => import('./chunks/
|
|
2265
|
-
const _page4 = () => import('./chunks/
|
|
2266
|
-
const _page5 = () => import('./chunks/
|
|
2267
|
-
const _page6 = () => import('./chunks/
|
|
2268
|
-
const _page7 = () => import('./chunks/
|
|
2260
|
+
const _page0 = () => import('./chunks/node_DHQVZgH_.mjs');
|
|
2261
|
+
const _page1 = () => import('./chunks/~fallback_Cg1Pbe1d.mjs');
|
|
2262
|
+
const _page2 = () => import('./chunks/404_BUZm2bP1.mjs');
|
|
2263
|
+
const _page3 = () => import('./chunks/index_STpvD2cy.mjs');
|
|
2264
|
+
const _page4 = () => import('./chunks/account_C6XTKIP9.mjs');
|
|
2265
|
+
const _page5 = () => import('./chunks/index_EbDDnIXs.mjs');
|
|
2266
|
+
const _page6 = () => import('./chunks/_page__CXnal5Rn.mjs');
|
|
2267
|
+
const _page7 = () => import('./chunks/sitemap-_index__e6mToVZH.mjs');
|
|
2268
|
+
const _page8 = () => import('./chunks/_.._6Bd7O3FD.mjs');
|
|
2269
2269
|
const pageMap = new Map([
|
|
2270
|
-
["../../node_modules/.pnpm/astro@4.5.
|
|
2270
|
+
["../../node_modules/.pnpm/astro@4.5.10/node_modules/astro/dist/assets/endpoint/node.js", _page0],
|
|
2271
2271
|
["src/pages/~fallback.astro", _page1],
|
|
2272
2272
|
["src/pages/404.astro", _page2],
|
|
2273
2273
|
["src/pages/admin/index.astro", _page3],
|
|
2274
2274
|
["src/pages/app/account.astro", _page4],
|
|
2275
2275
|
["src/pages/app/index.astro", _page5],
|
|
2276
2276
|
["src/pages/blog/[page].astro", _page6],
|
|
2277
|
-
["src/pages/[
|
|
2277
|
+
["src/pages/sitemap-[index].xml.astro", _page7],
|
|
2278
|
+
["src/pages/[...slug].astro", _page8]
|
|
2278
2279
|
]);
|
|
2279
2280
|
|
|
2280
2281
|
const _manifest = Object.assign(manifest, {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
ecom-icon_12falx.png,192,192
|
|
2
|
+
ecom-icon_15pqnO.png,512,512
|
|
3
|
+
ecom-icon.png,1024,1024
|
|
4
|
+
ecom-icon_t3guw.png,32,32
|
|
5
|
+
logo.png,411,97
|
|
6
|
+
logo_Z1K5PE9.png,300,71
|
|
7
|
+
rect8589_1TtOHY.png,640,159
|
|
8
|
+
rect8589.png,1500,373
|
|
9
|
+
rect8589_Uxfdf.png,1500,373
|
|
10
|
+
rect8589_Z15uApA.png,828,206
|
|
11
|
+
rect859_DIqwR.png,640,159
|
|
12
|
+
rect859_jXzBi.png,1500,373
|
|
13
|
+
rect859.png,1500,373
|
|
14
|
+
rect859_Z1IKDb2.png,828,206
|
|
15
|
+
headphone.webp,480,320
|
|
16
|
+
headphone_Z1CG18r.webp,480,320
|
|
17
|
+
logo_1UBsBq.webp,300,71
|
|
18
|
+
passion_LHbe9.webp,480,320
|
|
19
|
+
passion.webp,480,320
|
|
20
|
+
rect8589_1f5opX.webp,640,159
|
|
21
|
+
rect8589_IUskt.webp,1500,373
|
|
22
|
+
rect8589_Z1JT1HB.webp,828,206
|
|
23
|
+
rect859_x1l16.webp,828,206
|
|
24
|
+
rect859_Z29FI4V.webp,640,159
|
|
25
|
+
rect859_ZkpPFI.webp,1500,373
|
|
26
|
+
rect89.webp,1201,311
|
|
27
|
+
rect89_Z1re32x.webp,1201,311
|
|
28
|
+
headphone_T2Jjc.avif,480,320
|
|
29
|
+
logo_Z1KIIl1.avif,300,71
|
|
30
|
+
passion_Z23MeUb.avif,480,320
|
|
31
|
+
rect8589_tMFW0.avif,828,206
|
|
32
|
+
rect8589_Z1Ap1Im.avif,640,159
|
|
33
|
+
rect8589_ZY9mtN.avif,1500,373
|
|
34
|
+
rect859_1TgQXS.avif,1500,373
|
|
35
|
+
rect859_2Nm1z.avif,640,159
|
|
36
|
+
rect859_Z2kFHGk.avif,828,206
|
|
37
|
+
rect89_1TSfW7.avif,1201,311
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
assets/cvv.png,150,187
|
|
2
|
+
assets/payments.png,60,676
|
|
3
|
+
img/icon.png,512,512
|
|
4
|
+
img/large-icon.png,1024,1024
|
|
5
|
+
img/uploads/ecom-icon.png,1024,1024
|
|
6
|
+
img/uploads/logo.png,411,97
|
|
7
|
+
img/uploads/og-image.png,1200,1200
|
|
8
|
+
img/uploads/rect8589.png,1500,373
|
|
9
|
+
img/uploads/rect859.png,1500,373
|
|
10
|
+
img/uploads/banner2.webp,1200,311
|
|
11
|
+
img/uploads/headphone.webp,480,320
|
|
12
|
+
img/uploads/passion.webp,480,320
|
|
13
|
+
img/uploads/rect89.webp,1201,311
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import '@astrojs/internal-helpers/path';
|
|
2
|
+
import 'cookie';
|
|
3
|
+
import { bold, red, yellow, dim, blue } from 'kleur/colors';
|
|
4
|
+
import 'string-width';
|
|
5
|
+
import './chunks/astro_DIU6qHCh.mjs';
|
|
6
|
+
import 'clsx';
|
|
7
|
+
import { compile } from 'path-to-regexp';
|
|
8
|
+
|
|
9
|
+
const dateTimeFormat = new Intl.DateTimeFormat([], {
|
|
10
|
+
hour: "2-digit",
|
|
11
|
+
minute: "2-digit",
|
|
12
|
+
second: "2-digit",
|
|
13
|
+
hour12: false
|
|
14
|
+
});
|
|
15
|
+
const levels = {
|
|
16
|
+
debug: 20,
|
|
17
|
+
info: 30,
|
|
18
|
+
warn: 40,
|
|
19
|
+
error: 50,
|
|
20
|
+
silent: 90
|
|
21
|
+
};
|
|
22
|
+
function log(opts, level, label, message, newLine = true) {
|
|
23
|
+
const logLevel = opts.level;
|
|
24
|
+
const dest = opts.dest;
|
|
25
|
+
const event = {
|
|
26
|
+
label,
|
|
27
|
+
level,
|
|
28
|
+
message,
|
|
29
|
+
newLine
|
|
30
|
+
};
|
|
31
|
+
if (!isLogLevelEnabled(logLevel, level)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
dest.write(event);
|
|
35
|
+
}
|
|
36
|
+
function isLogLevelEnabled(configuredLogLevel, level) {
|
|
37
|
+
return levels[configuredLogLevel] <= levels[level];
|
|
38
|
+
}
|
|
39
|
+
function info(opts, label, message, newLine = true) {
|
|
40
|
+
return log(opts, "info", label, message, newLine);
|
|
41
|
+
}
|
|
42
|
+
function warn(opts, label, message, newLine = true) {
|
|
43
|
+
return log(opts, "warn", label, message, newLine);
|
|
44
|
+
}
|
|
45
|
+
function error(opts, label, message, newLine = true) {
|
|
46
|
+
return log(opts, "error", label, message, newLine);
|
|
47
|
+
}
|
|
48
|
+
function debug(...args) {
|
|
49
|
+
if ("_astroGlobalDebug" in globalThis) {
|
|
50
|
+
globalThis._astroGlobalDebug(...args);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function getEventPrefix({ level, label }) {
|
|
54
|
+
const timestamp = `${dateTimeFormat.format(/* @__PURE__ */ new Date())}`;
|
|
55
|
+
const prefix = [];
|
|
56
|
+
if (level === "error" || level === "warn") {
|
|
57
|
+
prefix.push(bold(timestamp));
|
|
58
|
+
prefix.push(`[${level.toUpperCase()}]`);
|
|
59
|
+
} else {
|
|
60
|
+
prefix.push(timestamp);
|
|
61
|
+
}
|
|
62
|
+
if (label) {
|
|
63
|
+
prefix.push(`[${label}]`);
|
|
64
|
+
}
|
|
65
|
+
if (level === "error") {
|
|
66
|
+
return red(prefix.join(" "));
|
|
67
|
+
}
|
|
68
|
+
if (level === "warn") {
|
|
69
|
+
return yellow(prefix.join(" "));
|
|
70
|
+
}
|
|
71
|
+
if (prefix.length === 1) {
|
|
72
|
+
return dim(prefix[0]);
|
|
73
|
+
}
|
|
74
|
+
return dim(prefix[0]) + " " + blue(prefix.splice(1).join(" "));
|
|
75
|
+
}
|
|
76
|
+
if (typeof process !== "undefined") {
|
|
77
|
+
let proc = process;
|
|
78
|
+
if ("argv" in proc && Array.isArray(proc.argv)) {
|
|
79
|
+
if (proc.argv.includes("--verbose")) ; else if (proc.argv.includes("--silent")) ; else ;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
class Logger {
|
|
83
|
+
options;
|
|
84
|
+
constructor(options) {
|
|
85
|
+
this.options = options;
|
|
86
|
+
}
|
|
87
|
+
info(label, message, newLine = true) {
|
|
88
|
+
info(this.options, label, message, newLine);
|
|
89
|
+
}
|
|
90
|
+
warn(label, message, newLine = true) {
|
|
91
|
+
warn(this.options, label, message, newLine);
|
|
92
|
+
}
|
|
93
|
+
error(label, message, newLine = true) {
|
|
94
|
+
error(this.options, label, message, newLine);
|
|
95
|
+
}
|
|
96
|
+
debug(label, ...messages) {
|
|
97
|
+
debug(label, ...messages);
|
|
98
|
+
}
|
|
99
|
+
level() {
|
|
100
|
+
return this.options.level;
|
|
101
|
+
}
|
|
102
|
+
forkIntegrationLogger(label) {
|
|
103
|
+
return new AstroIntegrationLogger(this.options, label);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
class AstroIntegrationLogger {
|
|
107
|
+
options;
|
|
108
|
+
label;
|
|
109
|
+
constructor(logging, label) {
|
|
110
|
+
this.options = logging;
|
|
111
|
+
this.label = label;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Creates a new logger instance with a new label, but the same log options.
|
|
115
|
+
*/
|
|
116
|
+
fork(label) {
|
|
117
|
+
return new AstroIntegrationLogger(this.options, label);
|
|
118
|
+
}
|
|
119
|
+
info(message) {
|
|
120
|
+
info(this.options, this.label, message);
|
|
121
|
+
}
|
|
122
|
+
warn(message) {
|
|
123
|
+
warn(this.options, this.label, message);
|
|
124
|
+
}
|
|
125
|
+
error(message) {
|
|
126
|
+
error(this.options, this.label, message);
|
|
127
|
+
}
|
|
128
|
+
debug(message) {
|
|
129
|
+
debug(this.label, message);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function getRouteGenerator(segments, addTrailingSlash) {
|
|
134
|
+
const template = segments.map((segment) => {
|
|
135
|
+
return "/" + segment.map((part) => {
|
|
136
|
+
if (part.spread) {
|
|
137
|
+
return `:${part.content.slice(3)}(.*)?`;
|
|
138
|
+
} else if (part.dynamic) {
|
|
139
|
+
return `:${part.content}`;
|
|
140
|
+
} else {
|
|
141
|
+
return part.content.normalize().replace(/\?/g, "%3F").replace(/#/g, "%23").replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
142
|
+
}
|
|
143
|
+
}).join("");
|
|
144
|
+
}).join("");
|
|
145
|
+
let trailing = "";
|
|
146
|
+
if (addTrailingSlash === "always" && segments.length) {
|
|
147
|
+
trailing = "/";
|
|
148
|
+
}
|
|
149
|
+
const toPath = compile(template + trailing);
|
|
150
|
+
return (params) => {
|
|
151
|
+
const path = toPath(params);
|
|
152
|
+
return path || "/";
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function deserializeRouteData(rawRouteData) {
|
|
157
|
+
return {
|
|
158
|
+
route: rawRouteData.route,
|
|
159
|
+
type: rawRouteData.type,
|
|
160
|
+
pattern: new RegExp(rawRouteData.pattern),
|
|
161
|
+
params: rawRouteData.params,
|
|
162
|
+
component: rawRouteData.component,
|
|
163
|
+
generate: getRouteGenerator(rawRouteData.segments, rawRouteData._meta.trailingSlash),
|
|
164
|
+
pathname: rawRouteData.pathname || void 0,
|
|
165
|
+
segments: rawRouteData.segments,
|
|
166
|
+
prerender: rawRouteData.prerender,
|
|
167
|
+
redirect: rawRouteData.redirect,
|
|
168
|
+
redirectRoute: rawRouteData.redirectRoute ? deserializeRouteData(rawRouteData.redirectRoute) : void 0,
|
|
169
|
+
fallbackRoutes: rawRouteData.fallbackRoutes.map((fallback) => {
|
|
170
|
+
return deserializeRouteData(fallback);
|
|
171
|
+
}),
|
|
172
|
+
isIndex: rawRouteData.isIndex
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
function deserializeManifest(serializedManifest) {
|
|
177
|
+
const routes = [];
|
|
178
|
+
for (const serializedRoute of serializedManifest.routes) {
|
|
179
|
+
routes.push({
|
|
180
|
+
...serializedRoute,
|
|
181
|
+
routeData: deserializeRouteData(serializedRoute.routeData)
|
|
182
|
+
});
|
|
183
|
+
const route = serializedRoute;
|
|
184
|
+
route.routeData = deserializeRouteData(serializedRoute.routeData);
|
|
185
|
+
}
|
|
186
|
+
const assets = new Set(serializedManifest.assets);
|
|
187
|
+
const componentMetadata = new Map(serializedManifest.componentMetadata);
|
|
188
|
+
const inlinedScripts = new Map(serializedManifest.inlinedScripts);
|
|
189
|
+
const clientDirectives = new Map(serializedManifest.clientDirectives);
|
|
190
|
+
return {
|
|
191
|
+
// in case user middleware exists, this no-op middleware will be reassigned (see plugin-ssr.ts)
|
|
192
|
+
middleware(_, next) {
|
|
193
|
+
return next();
|
|
194
|
+
},
|
|
195
|
+
...serializedManifest,
|
|
196
|
+
assets,
|
|
197
|
+
componentMetadata,
|
|
198
|
+
inlinedScripts,
|
|
199
|
+
clientDirectives,
|
|
200
|
+
routes
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
const manifest = deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[],"routeData":{"type":"endpoint","isIndex":false,"route":"/_image","pattern":"^\\/_image$","segments":[[{"content":"_image","dynamic":false,"spread":false}]],"params":[],"component":"../../node_modules/.pnpm/astro@4.5.10/node_modules/astro/dist/assets/endpoint/node.js","pathname":"/_image","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.8Sq2YuJM.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.oAbCb631.css"}],"routeData":{"route":"/~fallback","isIndex":false,"type":"page","pattern":"^\\/~fallback\\/?$","segments":[[{"content":"~fallback","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/~fallback.astro","pathname":"/~fallback","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.8Sq2YuJM.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.oAbCb631.css"}],"routeData":{"route":"/404","isIndex":false,"type":"page","pattern":"^\\/404\\/?$","segments":[[{"content":"404","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/404.astro","pathname":"/404","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.CPcG9RpX.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.oAbCb631.css"}],"routeData":{"route":"/admin","isIndex":true,"type":"page","pattern":"^\\/admin\\/?$","segments":[[{"content":"admin","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/admin/index.astro","pathname":"/admin","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.8Sq2YuJM.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.oAbCb631.css"}],"routeData":{"route":"/app/account","isIndex":false,"type":"page","pattern":"^\\/app\\/account\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}],[{"content":"account","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/account.astro","pathname":"/app/account","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.BzVcl7We.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.oAbCb631.css"}],"routeData":{"route":"/app","isIndex":true,"type":"page","pattern":"^\\/app\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/index.astro","pathname":"/app","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.8Sq2YuJM.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.oAbCb631.css"}],"routeData":{"route":"/blog/[page]","isIndex":false,"type":"page","pattern":"^\\/blog\\/([^/]+?)\\/?$","segments":[[{"content":"blog","dynamic":false,"spread":false}],[{"content":"page","dynamic":true,"spread":false}]],"params":["page"],"component":"src/pages/blog/[page].astro","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[],"routeData":{"route":"/sitemap-[index].xml","isIndex":false,"type":"page","pattern":"^\\/sitemap-([^/]+?)\\.xml\\/?$","segments":[[{"content":"sitemap-","dynamic":false,"spread":false},{"content":"index","dynamic":true,"spread":false},{"content":".xml","dynamic":false,"spread":false}]],"params":["index"],"component":"src/pages/sitemap-[index].xml.astro","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.8Sq2YuJM.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.oAbCb631.css"}],"routeData":{"route":"/[...slug]","isIndex":false,"type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}}],"site":"https://demo.ecomplus.app","base":"/","trailingSlash":"ignore","compressHTML":true,"componentMetadata":[],"renderers":[],"clientDirectives":[["idle","(()=>{var i=t=>{let e=async()=>{await(await t())()};\"requestIdleCallback\"in window?window.requestIdleCallback(e):setTimeout(e,200)};(self.Astro||(self.Astro={})).idle=i;window.dispatchEvent(new Event(\"astro:idle\"));})();"],["load","(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event(\"astro:load\"));})();"],["media","(()=>{var s=(i,t)=>{let a=async()=>{await(await i())()};if(t.value){let e=matchMedia(t.value);e.matches?a():e.addEventListener(\"change\",a,{once:!0})}};(self.Astro||(self.Astro={})).media=s;window.dispatchEvent(new Event(\"astro:media\"));})();"],["only","(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event(\"astro:only\"));})();"],["visible","(()=>{var l=(s,i,o)=>{let r=async()=>{await(await s())()},t=typeof i.value==\"object\"?i.value:void 0,c={rootMargin:t==null?void 0:t.rootMargin},n=new IntersectionObserver(e=>{for(let a of e)if(a.isIntersecting){n.disconnect(),r();break}},c);for(let e of o.children)n.observe(e)};(self.Astro||(self.Astro={})).visible=l;window.dispatchEvent(new Event(\"astro:visible\"));})();"],["sf","(()=>{var v=i=>new Promise(n=>{let r={},t=new IntersectionObserver(o=>{for(let c of o)if(c.isIntersecting){t.disconnect(),n();break}},r);for(let o of i.children)t.observe(o)}),l=new Promise(i=>{let n=new AbortController;[\"keydown\",\"mousemove\",\"pointerdown\",\"touchstart\",\"scroll\"].forEach(r=>{document.addEventListener(r,()=>{i(),n.abort(),window.dispatchEvent(new Event(\"firstInteraction\"))},{once:!0,passive:!0,signal:n.signal})})});window.$firstInteraction=l;var w=(i,n,r)=>{let t=(Array.isArray(n.value)?n.value:[n.value]).reduce((e,s)=>(typeof s==\"string\"&&s.split(\",\").forEach(u=>{e.push(u)}),e),[]),o=!t.length||t.includes(\"lazy\"),c=!o&&t.includes(\"eager\"),d=async()=>{t.includes(\"interaction\")&&await l,await(await i())()},a=async()=>{for(let e=0;e<t.length;e++)if(typeof t[e]==\"string\"&&t[e].startsWith(\"data:\")){let s=t[e].substring(5);if(!window.$storefront?.data?.[s]){window.addEventListener(`storefront:data:${s}`,a,{once:!0});return}}if(o&&await v(r),o||t.includes(\"idle\")){if(typeof window.requestIdleCallback==\"function\"){window.requestIdleCallback(d);return}setTimeout(d,100);return}d()};if(c){a();return}let f=window.$storefront?.apiContext?.doc._id||null;if(window._firstLoadContextId===f&&window._emitedContextId===f){a();return}window.addEventListener(\"storefront:apiContext\",a,{once:!0})};(self.Astro||(self.Astro={})).sf=w;window.dispatchEvent(new Event(\"astro:sf\"));})();\n"]],"entryModules":{"\u0000astro-internal:middleware":"_astro-internal_middleware.mjs","\u0000@astrojs-ssr-virtual-entry":"entry.mjs","\u0000@astro-renderers":"renderers.mjs","/src/pages/blog/[page].astro":"chunks/pages/_page__BnXBvVvn.mjs","/src/pages/app/account.astro":"chunks/pages/account_Dk-8R3rY.mjs","/../../node_modules/.pnpm/astro@4.5.10/node_modules/astro/dist/assets/endpoint/node.js":"chunks/pages/node_BGdGQ52C.mjs","/src/pages/sitemap-[index].xml.astro":"chunks/pages/sitemap-_index__rcX10oKd.mjs","/src/pages/~fallback.astro":"chunks/pages/~fallback_BNfV6ECv.mjs","\u0000@astrojs-manifest":"manifest_xBcEm6Np.mjs","\u0000@astro-page:../../node_modules/.pnpm/astro@4.5.10/node_modules/astro/dist/assets/endpoint/node@_@js":"chunks/node_DHQVZgH_.mjs","\u0000@astro-page:src/pages/~fallback@_@astro":"chunks/~fallback_Cg1Pbe1d.mjs","\u0000@astro-page:src/pages/404@_@astro":"chunks/404_BUZm2bP1.mjs","\u0000@astro-page:src/pages/admin/index@_@astro":"chunks/index_STpvD2cy.mjs","\u0000@astro-page:src/pages/app/account@_@astro":"chunks/account_C6XTKIP9.mjs","\u0000@astro-page:src/pages/app/index@_@astro":"chunks/index_EbDDnIXs.mjs","\u0000@astro-page:src/pages/blog/[page]@_@astro":"chunks/_page__CXnal5Rn.mjs","\u0000@astro-page:src/pages/sitemap-[index].xml@_@astro":"chunks/sitemap-_index__e6mToVZH.mjs","\u0000@astro-page:src/pages/[...slug]@_@astro":"chunks/_.._6Bd7O3FD.mjs","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/SearchModal.vue":"_astro/SearchModal.BIrixnFb.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/CartSidebar.vue":"_astro/CartSidebar.Bxz7ZD9N.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe.css?inline":"_astro/photoswipe.CNpEZKfy.js","astro:scripts/page.js":"_astro/page.FdSlRisw.js","~/components/HeroSlider.vue":"_astro/HeroSlider.DyjSOy4Q.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/scripts/firebase-app.ts":"_astro/firebase-app.DPioxxma.js","/astro/hoisted.js?q=1":"_astro/hoisted.BzVcl7We.js","~/components/PitchBar.vue":"_astro/PitchBar.CEGsee2q.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe-lightbox.esm.js":"_astro/photoswipe-lightbox.esm.BbYxSZIB.js","/astro/hoisted.js?q=0":"_astro/hoisted.CPcG9RpX.js","~/components/ProductDetails.vue":"_astro/ProductDetails.PkZr50hA.js","~/components/AccountPage.vue":"_astro/AccountPage.CKu0oakN.js","/astro/hoisted.js?q=2":"_astro/hoisted.8Sq2YuJM.js","~/components/ProductShelf.vue":"_astro/ProductShelf.BKz6WXbp.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe.esm.js":"_astro/photoswipe.esm.C0FT-EY-.js","@astrojs/vue/client.js":"_astro/client.D_V8TfA5.js","~/components/ShopHeader.vue":"_astro/ShopHeader.BOLegIRO.js","~/components/SearchShowcase.vue":"_astro/SearchShowcase.YMZqG8rj.js","astro:scripts/before-hydration.js":""},"inlinedScripts":[],"assets":["/_astro/_slug_.oAbCb631.css","/robots.txt","/assets/cvv.png","/assets/payments.png","/img/icon.png","/img/large-icon.png","/_astro/AccountPage.CKu0oakN.js","/_astro/CartSidebar.Bxz7ZD9N.js","/_astro/HeroSlider.DyjSOy4Q.js","/_astro/PitchBar.CEGsee2q.js","/_astro/Prices.9RhV7hCY.js","/_astro/ProductDetails.PkZr50hA.js","/_astro/ProductShelf.BKz6WXbp.js","/_astro/SearchModal.BIrixnFb.js","/_astro/SearchShowcase.YMZqG8rj.js","/_astro/ShippingCalculator.DZSCK4xv.js","/_astro/ShopHeader.BOLegIRO.js","/_astro/_commonjsHelpers.Cpj98o6Y.js","/_astro/_plugin-vue_export-helper.6K9uDcVo.js","/_astro/afetch.DPLba2tr.js","/_astro/client.D_V8TfA5.js","/_astro/customer-session.B9MvrBAQ.js","/_astro/firebase-app.DPioxxma.js","/_astro/format-money.D19_eJVX.js","/_astro/grid-title.CZdq2sDS.js","/_astro/hoisted.8Sq2YuJM.js","/_astro/hoisted.BzVcl7We.js","/_astro/hoisted.CPcG9RpX.js","/_astro/i18n.DPcLqMFO.js","/_astro/img-sizes.rFK7so02.js","/_astro/img.Be85e5da.js","/_astro/index-219c3cac.78peI8kt.js","/_astro/index.BCNoXz_Z.js","/_astro/index.BgtOIB20.js","/_astro/index.DlxZwqDP.js","/_astro/modules-info.BswYf_-7.js","/_astro/name.Dll7Wwmg.js","/_astro/page.FdSlRisw.js","/_astro/photoswipe-lightbox.esm.BbYxSZIB.js","/_astro/photoswipe.CNpEZKfy.js","/_astro/photoswipe.esm.C0FT-EY-.js","/_astro/price.CHiL6Z1J.js","/_astro/sf-utils.C9ygvYIB.js","/_astro/shopping-cart.D8fbm2Dv.js","/_astro/use-analytics.D_peWG3X.js","/_astro/use-cms-preview.BxKK4a1X.js","/_astro/use-product-card.BCGHZKB5.js","/_astro/use-text-value.BFLvKnYE.js","/img/uploads/banner2.webp","/img/uploads/ecom-icon.png","/img/uploads/headphone.webp","/img/uploads/logo.png","/img/uploads/og-image.png","/img/uploads/passion.webp","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.webp","/_astro/page.FdSlRisw.js"],"buildFormat":"directory"});
|
|
205
|
+
|
|
206
|
+
export { AstroIntegrationLogger as A, Logger as L, getEventPrefix as g, levels as l, manifest };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@astrojs/internal-helpers/path';
|
|
2
2
|
import 'cookie';
|
|
3
|
-
export { o as onRequest } from './chunks/_astro-
|
|
4
|
-
import './chunks/pages/
|
|
3
|
+
export { o as onRequest } from './chunks/_astro-internal_middleware_BnKXd-Ev.mjs';
|
|
4
|
+
import './chunks/pages/404_n3mvoSWv.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, h, createSSRApp } from 'vue';
|
|
2
2
|
import { renderToString } from 'vue/server-renderer';
|
|
3
|
-
import {
|
|
3
|
+
import { U as mod, V as createApp } from './chunks/pages/404_n3mvoSWv.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Astro passes `children` as a string of HTML, so we need
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/_astro/AccountPage.CKu0oakN.js
|
|
2
|
+
/_astro/afetch.DPLba2tr.js
|
|
3
|
+
/_astro/CartSidebar.Bxz7ZD9N.js
|
|
4
|
+
/_astro/client.D_V8TfA5.js
|
|
5
|
+
/_astro/_commonjsHelpers.Cpj98o6Y.js
|
|
6
|
+
/_astro/customer-session.B9MvrBAQ.js
|
|
7
|
+
/_astro/ecom-icon_12falx.png
|
|
8
|
+
/_astro/ecom-icon_15pqnO.png
|
|
9
|
+
/_astro/ecom-icon.png
|
|
10
|
+
/_astro/ecom-icon_t3guw.png
|
|
11
|
+
/_astro/firebase-app.DPioxxma.js
|
|
12
|
+
/_astro/format-money.D19_eJVX.js
|
|
13
|
+
/_astro/grid-title.CZdq2sDS.js
|
|
14
|
+
/_astro/headphone_T2Jjc.avif
|
|
15
|
+
/_astro/headphone.webp
|
|
16
|
+
/_astro/headphone_Z1CG18r.webp
|
|
17
|
+
/_astro/HeroSlider.DyjSOy4Q.js
|
|
18
|
+
/_astro/hoisted.8Sq2YuJM.js
|
|
19
|
+
/_astro/hoisted.BzVcl7We.js
|
|
20
|
+
/_astro/hoisted.CPcG9RpX.js
|
|
21
|
+
/_astro/i18n.DPcLqMFO.js
|
|
22
|
+
/_astro/img.Be85e5da.js
|
|
23
|
+
/_astro/img-sizes.rFK7so02.js
|
|
24
|
+
/_astro/index-219c3cac.78peI8kt.js
|
|
25
|
+
/_astro/index.BCNoXz_Z.js
|
|
26
|
+
/_astro/index.BgtOIB20.js
|
|
27
|
+
/_astro/index.DlxZwqDP.js
|
|
28
|
+
/_astro/logo_1UBsBq.webp
|
|
29
|
+
/_astro/logo.png
|
|
30
|
+
/_astro/logo_Z1K5PE9.png
|
|
31
|
+
/_astro/logo_Z1KIIl1.avif
|
|
32
|
+
/_astro/modules-info.BswYf_-7.js
|
|
33
|
+
/_astro/name.Dll7Wwmg.js
|
|
34
|
+
/_astro/page.FdSlRisw.js
|
|
35
|
+
/_astro/passion_LHbe9.webp
|
|
36
|
+
/_astro/passion.webp
|
|
37
|
+
/_astro/passion_Z23MeUb.avif
|
|
38
|
+
/_astro/photoswipe.CNpEZKfy.js
|
|
39
|
+
/_astro/photoswipe.esm.C0FT-EY-.js
|
|
40
|
+
/_astro/photoswipe-lightbox.esm.BbYxSZIB.js
|
|
41
|
+
/_astro/PitchBar.CEGsee2q.js
|
|
42
|
+
/_astro/_plugin-vue_export-helper.6K9uDcVo.js
|
|
43
|
+
/_astro/price.CHiL6Z1J.js
|
|
44
|
+
/_astro/Prices.9RhV7hCY.js
|
|
45
|
+
/_astro/ProductDetails.PkZr50hA.js
|
|
46
|
+
/_astro/ProductShelf.BKz6WXbp.js
|
|
47
|
+
/_astro/rect8589_1f5opX.webp
|
|
48
|
+
/_astro/rect8589_1TtOHY.png
|
|
49
|
+
/_astro/rect8589_IUskt.webp
|
|
50
|
+
/_astro/rect8589.png
|
|
51
|
+
/_astro/rect8589_tMFW0.avif
|
|
52
|
+
/_astro/rect8589_Uxfdf.png
|
|
53
|
+
/_astro/rect8589_Z15uApA.png
|
|
54
|
+
/_astro/rect8589_Z1Ap1Im.avif
|
|
55
|
+
/_astro/rect8589_Z1JT1HB.webp
|
|
56
|
+
/_astro/rect8589_ZY9mtN.avif
|
|
57
|
+
/_astro/rect859_1TgQXS.avif
|
|
58
|
+
/_astro/rect859_2Nm1z.avif
|
|
59
|
+
/_astro/rect859_DIqwR.png
|
|
60
|
+
/_astro/rect859_jXzBi.png
|
|
61
|
+
/_astro/rect859.png
|
|
62
|
+
/_astro/rect859_x1l16.webp
|
|
63
|
+
/_astro/rect859_Z1IKDb2.png
|
|
64
|
+
/_astro/rect859_Z29FI4V.webp
|
|
65
|
+
/_astro/rect859_Z2kFHGk.avif
|
|
66
|
+
/_astro/rect859_ZkpPFI.webp
|
|
67
|
+
/_astro/rect89_1TSfW7.avif
|
|
68
|
+
/_astro/rect89.webp
|
|
69
|
+
/_astro/rect89_Z1re32x.webp
|
|
70
|
+
/_astro/SearchModal.BIrixnFb.js
|
|
71
|
+
/_astro/SearchShowcase.YMZqG8rj.js
|
|
72
|
+
/_astro/sf-utils.C9ygvYIB.js
|
|
73
|
+
/_astro/ShippingCalculator.DZSCK4xv.js
|
|
74
|
+
/_astro/ShopHeader.BOLegIRO.js
|
|
75
|
+
/_astro/shopping-cart.D8fbm2Dv.js
|
|
76
|
+
/_astro/_slug_.oAbCb631.css
|
|
77
|
+
/_astro/use-analytics.D_peWG3X.js
|
|
78
|
+
/_astro/use-cms-preview.BxKK4a1X.js
|
|
79
|
+
/_astro/use-product-card.BCGHZKB5.js
|
|
80
|
+
/_astro/use-text-value.BFLvKnYE.js
|
|
@@ -36,4 +36,21 @@ ls ./dist/client/_astro/* \
|
|
|
36
36
|
2>/dev/null
|
|
37
37
|
sed -i -e 's/.\/dist\/client//g' ./dist/server/static-builds.csv
|
|
38
38
|
|
|
39
|
+
if [[ -n $STOREFRONT_BASE_DIR ]]; then
|
|
40
|
+
base_dir=$(realpath "$STOREFRONT_BASE_DIR")
|
|
41
|
+
else
|
|
42
|
+
base_dir=$(pwd)
|
|
43
|
+
fi
|
|
44
|
+
content_dir=$(realpath "$base_dir/content")
|
|
45
|
+
settings_path="$content_dir/settings.json"
|
|
46
|
+
domain=$(grep '"domain"' $settings_path | awk -F\" '{ print $4 }')
|
|
47
|
+
|
|
48
|
+
robots_file="./dist/client/robots.txt"
|
|
49
|
+
if [[ -f $robots_file ]]; then
|
|
50
|
+
if ! grep -q "Sitemap: " "$robots_file"; then
|
|
51
|
+
echo "" >> "$robots_file"
|
|
52
|
+
echo "Sitemap: https://$domain/sitemap-index.xml" >> "$robots_file"
|
|
53
|
+
fi
|
|
54
|
+
fi
|
|
55
|
+
|
|
39
56
|
exit 0
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, computed, nextTick } from 'vue';
|
|
3
|
+
import { isLogged } from '@@sf/state/customer-session';
|
|
3
4
|
|
|
4
5
|
export interface Props {
|
|
5
|
-
to?: 'orders' | 'favorites';
|
|
6
|
-
|
|
6
|
+
to?: 'orders' | 'favorites' | 'account';
|
|
7
|
+
loginUrl?: string;
|
|
7
8
|
returnUrl?: string | null;
|
|
8
9
|
isSignUp?: boolean;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
const props = withDefaults(defineProps<Props>(), {
|
|
12
|
-
|
|
13
|
+
loginUrl: '/app/account',
|
|
13
14
|
});
|
|
14
15
|
const locationUrl = ref('');
|
|
15
16
|
if (globalThis.location?.href) {
|
|
@@ -18,24 +19,28 @@ if (globalThis.location?.href) {
|
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
const href = computed(() => {
|
|
21
|
-
let url = props.accountUrl;
|
|
22
22
|
const returnUrl = props.returnUrl || locationUrl.value;
|
|
23
|
-
|
|
23
|
+
const loggedTo = !isLogged.value ? null : (props.to || 'account');
|
|
24
|
+
if (!loggedTo) {
|
|
25
|
+
let { loginUrl } = props;
|
|
24
26
|
if (props.isSignUp) {
|
|
25
|
-
|
|
27
|
+
loginUrl += '?sign_up&';
|
|
26
28
|
} else {
|
|
27
|
-
|
|
29
|
+
loginUrl += '?';
|
|
28
30
|
}
|
|
29
|
-
return returnUrl ? `${
|
|
31
|
+
return returnUrl ? `${loginUrl}return_url=${returnUrl}` : loginUrl;
|
|
30
32
|
}
|
|
31
33
|
const { settings } = globalThis.$storefront;
|
|
32
|
-
if (
|
|
34
|
+
if (loggedTo === 'orders' && settings.ordersUrl) {
|
|
33
35
|
return settings.ordersUrl;
|
|
34
36
|
}
|
|
35
|
-
if (
|
|
37
|
+
if (loggedTo === 'favorites' && settings.favoritesUrl) {
|
|
36
38
|
return settings.favoritesUrl;
|
|
37
39
|
}
|
|
38
|
-
|
|
40
|
+
if (loggedTo === 'account' && settings.accountUrl) {
|
|
41
|
+
return settings.accountUrl;
|
|
42
|
+
}
|
|
43
|
+
return `/app/#/account/${loggedTo}`;
|
|
39
44
|
});
|
|
40
45
|
</script>
|
|
41
46
|
|
|
@@ -38,10 +38,12 @@ const nextRowsClassName = computed(() => {
|
|
|
38
38
|
v-if="numRows > 4"
|
|
39
39
|
:class="[nextRowsClassName, isLarge ? 'max-w-[600px]' : 'max-w-[300px]']"
|
|
40
40
|
></div>
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
<template v-if="numRows > 5">
|
|
42
|
+
<div
|
|
43
|
+
v-for="n in (numRows - 5)" :key="n"
|
|
44
|
+
:class="[nextRowsClassName, isLarge ? 'max-w-[720px]' : 'max-w-[360px]']"
|
|
45
|
+
></div>
|
|
46
|
+
</template>
|
|
45
47
|
<span class="sr-only">Loading...</span>
|
|
46
48
|
</div>
|
|
47
49
|
</template>
|