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
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, l as renderComponent, n as Fragment } from '../astro_Cu3MZ9xv.mjs';
|
|
2
|
-
import 'kleur/colors';
|
|
3
|
-
import { K as loadRouteContext, M as $$BaseHead, V as i19error, N as $$PageHeader, W as $$Fallback, O as $$PageFooter, L as $$Base } from './404_CMwuVMu1.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")}>
|
|
17
|
-
${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "Fragment", Fragment, { "slot": "base-head" }, { "default": ($$result3) => renderTemplate`
|
|
18
|
-
${renderComponent($$result3, "BaseHead", $$BaseHead, {})}
|
|
19
|
-
<title>${`${i19error} | ${settings.name}`}</title>
|
|
20
|
-
` })}`, "default": ($$result2) => renderTemplate`
|
|
21
|
-
|
|
22
|
-
${renderComponent($$result2, "PageHeader", $$PageHeader, {})}
|
|
23
|
-
${renderComponent($$result2, "FallbackMain", $$Fallback, {})}
|
|
24
|
-
${renderComponent($$result2, "PageFooter", $$PageFooter, {})}
|
|
25
|
-
` })}
|
|
26
|
-
</html>`;
|
|
27
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro", void 0);
|
|
28
|
-
|
|
29
|
-
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro";
|
|
30
|
-
const $$url = "/~fallback";
|
|
31
|
-
|
|
32
|
-
export { $$fallback as default, $$file as file, $$url as url };
|
|
@@ -1,206 +0,0 @@
|
|
|
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_Cu3MZ9xv.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.15_@types+node@18.19.28_typescript@5.4.3/node_modules/astro/dist/assets/endpoint/node.js","pathname":"/_image","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.BeKMioW4.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.HhgCFKHv.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.BeKMioW4.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.HhgCFKHv.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.-C0vLMXT.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.HhgCFKHv.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.BeKMioW4.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.HhgCFKHv.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.Bf1gCkSN.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.HhgCFKHv.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.BeKMioW4.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.HhgCFKHv.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/hoisted.BeKMioW4.js"},{"type":"external","value":"/_astro/page.FdSlRisw.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.HhgCFKHv.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":false,"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__C1x19nYF.mjs","/src/pages/app/account.astro":"chunks/pages/account_B5Z6wDBy.mjs","/../../node_modules/.pnpm/astro@4.5.15_@types+node@18.19.28_typescript@5.4.3/node_modules/astro/dist/assets/endpoint/node.js":"chunks/pages/node_mvX6Tssv.mjs","/src/pages/~fallback.astro":"chunks/pages/~fallback_D2ugBVgc.mjs","\u0000@astrojs-manifest":"manifest_D4v8KX-D.mjs","\u0000@astro-page:../../node_modules/.pnpm/astro@4.5.15_@types+node@18.19.28_typescript@5.4.3/node_modules/astro/dist/assets/endpoint/node@_@js":"chunks/node_lZaNT3E1.mjs","\u0000@astro-page:src/pages/~fallback@_@astro":"chunks/~fallback_CrFe__-f.mjs","\u0000@astro-page:src/pages/404@_@astro":"chunks/404_BcY_5eJJ.mjs","\u0000@astro-page:src/pages/admin/index@_@astro":"chunks/index_BKS_40rA.mjs","\u0000@astro-page:src/pages/app/account@_@astro":"chunks/account_tfs9KFTy.mjs","\u0000@astro-page:src/pages/app/index@_@astro":"chunks/index_CGzMgZTN.mjs","\u0000@astro-page:src/pages/blog/[page]@_@astro":"chunks/_page__Dz-iZHMh.mjs","\u0000@astro-page:src/pages/[...slug]@_@astro":"chunks/_.._Bt6Uzpk2.mjs","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/SearchModal.vue":"_astro/SearchModal.DWNSfxML.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/CartSidebar.vue":"_astro/CartSidebar.DAvJKL2c.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","/astro/hoisted.js?q=1":"_astro/hoisted.Bf1gCkSN.js","~/components/PitchBar.vue":"_astro/PitchBar.CEGsee2q.js","~/components/AccountPage.vue":"_astro/AccountPage.Cf0WE6GF.js","~/components/ProductDetails.vue":"_astro/ProductDetails.BpZtnS8j.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/scripts/firebase-app.ts":"_astro/firebase-app.CmI1zl7o.js","/astro/hoisted.js?q=0":"_astro/hoisted.-C0vLMXT.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe-lightbox.esm.js":"_astro/photoswipe-lightbox.esm.BbYxSZIB.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe.esm.js":"_astro/photoswipe.esm.C0FT-EY-.js","/astro/hoisted.js?q=2":"_astro/hoisted.BeKMioW4.js","~/components/ProductShelf.vue":"_astro/ProductShelf.C0TU_sRb.js","@astrojs/vue/client.js":"_astro/client.D_V8TfA5.js","~/components/ShopHeader.vue":"_astro/ShopHeader.D7qqQxFD.js","~/components/SearchShowcase.vue":"_astro/SearchShowcase.CUkbXIRk.js","astro:scripts/before-hydration.js":""},"inlinedScripts":[],"assets":["/_astro/_slug_.HhgCFKHv.css","/robots.txt","/_astro/AccountPage.Cf0WE6GF.js","/_astro/CartSidebar.DAvJKL2c.js","/_astro/HeroSlider.DyjSOy4Q.js","/_astro/PitchBar.CEGsee2q.js","/_astro/Prices.9RhV7hCY.js","/_astro/ProductDetails.BpZtnS8j.js","/_astro/ProductShelf.C0TU_sRb.js","/_astro/SearchModal.DWNSfxML.js","/_astro/SearchShowcase.CUkbXIRk.js","/_astro/ShippingCalculator.DZSCK4xv.js","/_astro/ShopHeader.D7qqQxFD.js","/_astro/_commonjsHelpers.Cpj98o6Y.js","/_astro/_plugin-vue_export-helper.6K9uDcVo.js","/_astro/afetch.DPLba2tr.js","/_astro/client.D_V8TfA5.js","/_astro/customer-session.Cctko5_9.js","/_astro/firebase-app.CmI1zl7o.js","/_astro/format-money.D19_eJVX.js","/_astro/grid-title.CZdq2sDS.js","/_astro/hoisted.-C0vLMXT.js","/_astro/hoisted.BeKMioW4.js","/_astro/hoisted.Bf1gCkSN.js","/_astro/i18n.DPcLqMFO.js","/_astro/img-sizes.rFK7so02.js","/_astro/img.Be85e5da.js","/_astro/index-a8cf6c8f.k99a-gIB.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.Cqc6p5UR.js","/_astro/use-analytics.bP3a5cR0.js","/_astro/use-cms-preview.BxKK4a1X.js","/_astro/use-product-card.Cj9Q-Y1A.js","/_astro/use-text-value.DT0v9Yj_.js","/img/icon.png","/img/large-icon.png","/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 };
|