cloudcommerce 0.0.110 → 0.0.112
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/.ecomplus/stores/monocard/.firebaserc +5 -0
- package/.ecomplus/stores/monocard/.github/renovate.json +5 -0
- package/.ecomplus/stores/monocard/.github/workflows/build-and-deploy.yml +41 -0
- package/.ecomplus/stores/monocard/.github/workflows/calibreapp-image-actions.yml +23 -0
- package/.ecomplus/stores/monocard/.vscode/extensions.json +8 -0
- package/.ecomplus/stores/monocard/.vscode/settings.json +5 -0
- package/.ecomplus/stores/monocard/LICENSE.md +230 -0
- package/.ecomplus/stores/monocard/README.md +117 -0
- package/.ecomplus/stores/monocard/README.pt-BR.md +117 -0
- package/.ecomplus/stores/monocard/functions/config.json +3 -0
- package/.ecomplus/stores/monocard/functions/core/index.js +9 -0
- package/.ecomplus/stores/monocard/functions/core/package.json +20 -0
- package/.ecomplus/stores/monocard/functions/events/index.js +9 -0
- package/.ecomplus/stores/monocard/functions/events/package.json +21 -0
- package/.ecomplus/stores/monocard/functions/example.env +10 -0
- package/.ecomplus/stores/monocard/functions/modules/index.js +9 -0
- package/.ecomplus/stores/monocard/functions/modules/package.json +21 -0
- package/.ecomplus/stores/monocard/functions/passport/index.js +9 -0
- package/.ecomplus/stores/monocard/functions/passport/package.json +21 -0
- package/.ecomplus/stores/monocard/functions/ssr/astro.config.mjs +4 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/blog.json +18 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/brands.json +24 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/categories.json +24 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/code.json +5 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/collections.json +24 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/contacts.json +13 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/footer.json +46 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/header.json +35 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/home.json +45 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/info.json +18 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/maintenance.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/menu.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/pages/contato.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/pages/entrega.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/pages/faq.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/pages/pagamentos.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/pages/privacidade.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/pages/sobre-nos.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/pages/termos.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/pages/trocas.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/posts/esta-loja-e-um-pwa.json +9 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/products.json +32 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/search.json +8 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/settings.json +21 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/social.json +5 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/analytics.json +11 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/compre-confie.json +11 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/ebit.json +11 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/fb-pixel.json +12 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/gmc-ratings.json +12 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/minicart.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/offers-notification.json +11 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/opinioes-verificadas.json +18 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/product-card.json +10 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/product.json +13 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/search-engine.json +8 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/search.json +6 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/tag-manager.json +12 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/tawkto.json +12 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/trustvox.json +15 -0
- package/.ecomplus/stores/monocard/functions/ssr/content/widgets/user.json +5 -0
- package/.ecomplus/stores/monocard/functions/ssr/index.js +18 -0
- package/.ecomplus/stores/monocard/functions/ssr/package.json +27 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/admin/config.json +1 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/cms-preview.css +274 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/cms.css +114 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/cvv.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/icons/bootstrap-icons/font/storefront-icons.woff2 +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/icons/feather-icons/font/storefront-icons.woff2 +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/icons/font-awesome/font/storefront-icons.woff2 +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/icons/line-awesome/font/storefront-icons.woff2 +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/icons/tabler-icons/font/storefront-icons.woff2 +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/img-placeholder.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/payments.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/assets/ssl-safe.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/icon.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/large-icon.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/banner1.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/banner2.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/banner2.webp +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/favicon.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/headless.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/headphone.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/headphone.webp +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/icon.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/large-icon.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/logo.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/logo.webp +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/og-image.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/passion.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/passion.webp +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/pwa-reliable.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/rect8589.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/rect859.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/rect89.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/rect89.webp +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/img/uploads/ssl-safe.png +0 -0
- package/.ecomplus/stores/monocard/functions/ssr/public/robots.txt +8 -0
- package/.ecomplus/stores/monocard/functions/ssr/src/env.d.ts +3 -0
- package/.ecomplus/stores/monocard/functions/ssr/src/pages/[...slug].astro +38 -0
- package/.ecomplus/stores/monocard/functions/ssr/src/pages/fallback.astro +21 -0
- package/.ecomplus/stores/monocard/functions/ssr/src/pages/index.astro +33 -0
- package/.ecomplus/stores/monocard/functions/ssr/src/scripts/InlineScripts.astro +10 -0
- package/.ecomplus/stores/monocard/functions/ssr/tailwind.config.cjs +4 -0
- package/.ecomplus/stores/monocard/functions/ssr/tsconfig.json +3 -0
- package/.ecomplus/stores/monocard/functions/ssr/uno.config.ts +4 -0
- package/.ecomplus/stores/monocard/package.json +28 -0
- package/.ecomplus/stores/monocard/scripts/install.sh +8 -0
- package/.gitmodules +3 -0
- package/CHANGELOG.md +10 -0
- package/CONTRIBUTING.md +2 -1
- package/action.yml +1 -1
- package/package.json +1 -1
- package/packages/api/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +2 -2
- package/packages/storefront/client.d.ts +1 -1
- package/packages/storefront/dist/client/{LoginDrawer.e69d1c74.js → LoginDrawer.1061c69c.js} +1 -1
- package/packages/storefront/dist/client/assets/{_...d5980663.css → _...129504ca.css} +2 -2
- package/packages/storefront/dist/client/chunks/LoginDrawer.4d10fa17.js +1 -0
- package/packages/storefront/dist/client/chunks/{LoginForm.892d64a5.js → LoginForm.dd3df9d8.js} +2 -2
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/entry.mjs +245 -207
- package/packages/storefront/package.json +2 -2
- package/packages/storefront/src/lib/components/LoginDrawer.vue +39 -39
- package/packages/storefront/src/lib/layouts/Base.astro +5 -7
- package/packages/storefront/src/lib/scripts/firebase-app.ts +1 -10
- package/packages/storefront/src/pages/[...slug].astro +2 -0
- package/packages/storefront/src/pages/fallback.astro +2 -0
- package/packages/storefront/src/pages/index.astro +2 -0
- package/packages/storefront/src/scripts/InlineScripts.astro +11 -0
- package/packages/types/package.json +1 -1
- package/pnpm-workspace.yaml +3 -1
- package/packages/storefront/dist/client/chunks/LoginDrawer.0c26574f.js +0 -1
|
@@ -23,6 +23,7 @@ import 'node:path';
|
|
|
23
23
|
import 'magic-string';
|
|
24
24
|
import 'node:stream';
|
|
25
25
|
import 'slash';
|
|
26
|
+
import 'cookie';
|
|
26
27
|
import 'string-width';
|
|
27
28
|
import 'path-browserify';
|
|
28
29
|
import { compile } from 'path-to-regexp';
|
|
@@ -63,7 +64,7 @@ const _renderer1 = {
|
|
|
63
64
|
renderToStaticMarkup: renderToStaticMarkup$1,
|
|
64
65
|
};
|
|
65
66
|
|
|
66
|
-
const ASTRO_VERSION = "1.
|
|
67
|
+
const ASTRO_VERSION = "1.4.6";
|
|
67
68
|
function createDeprecatedFetchContentFn() {
|
|
68
69
|
return () => {
|
|
69
70
|
throw new Error("Deprecated: Astro.fetchContent() has been replaced with Astro.glob().");
|
|
@@ -120,6 +121,9 @@ const markHTMLString = (value) => {
|
|
|
120
121
|
}
|
|
121
122
|
return value;
|
|
122
123
|
};
|
|
124
|
+
function isHTMLString(value) {
|
|
125
|
+
return Object.prototype.toString.call(value) === "[object HTMLString]";
|
|
126
|
+
}
|
|
123
127
|
function markHTMLBytes(bytes) {
|
|
124
128
|
return new HTMLBytes(bytes);
|
|
125
129
|
}
|
|
@@ -153,6 +157,10 @@ function unescapeHTML(str) {
|
|
|
153
157
|
return markHTMLString(str);
|
|
154
158
|
}
|
|
155
159
|
|
|
160
|
+
function removeLeadingForwardSlashWindows(path) {
|
|
161
|
+
return path.startsWith("/") && path[2] === ":" ? path.substring(1) : path;
|
|
162
|
+
}
|
|
163
|
+
|
|
156
164
|
class Metadata {
|
|
157
165
|
constructor(filePathname, opts) {
|
|
158
166
|
this.modules = opts.modules;
|
|
@@ -160,18 +168,17 @@ class Metadata {
|
|
|
160
168
|
this.hydratedComponents = opts.hydratedComponents;
|
|
161
169
|
this.clientOnlyComponents = opts.clientOnlyComponents;
|
|
162
170
|
this.hydrationDirectives = opts.hydrationDirectives;
|
|
171
|
+
this.filePath = removeLeadingForwardSlashWindows(filePathname);
|
|
163
172
|
this.mockURL = new URL(filePathname, "http://example.com");
|
|
164
173
|
this.metadataCache = /* @__PURE__ */ new Map();
|
|
165
174
|
}
|
|
166
175
|
resolvePath(specifier) {
|
|
167
176
|
if (specifier.startsWith(".")) {
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return resolved;
|
|
177
|
+
const url = new URL(specifier, this.mockURL);
|
|
178
|
+
return removeLeadingForwardSlashWindows(decodeURI(url.pathname));
|
|
179
|
+
} else {
|
|
180
|
+
return specifier;
|
|
173
181
|
}
|
|
174
|
-
return specifier;
|
|
175
182
|
}
|
|
176
183
|
getPath(Component) {
|
|
177
184
|
const metadata = this.getComponentMetadata(Component);
|
|
@@ -440,6 +447,80 @@ async function generateHydrateScript(scriptOptions, metadata) {
|
|
|
440
447
|
return island;
|
|
441
448
|
}
|
|
442
449
|
|
|
450
|
+
class SlotString extends HTMLString {
|
|
451
|
+
constructor(content, instructions) {
|
|
452
|
+
super(content);
|
|
453
|
+
this.instructions = instructions;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
async function renderSlot(_result, slotted, fallback) {
|
|
457
|
+
if (slotted) {
|
|
458
|
+
let iterator = renderChild(slotted);
|
|
459
|
+
let content = "";
|
|
460
|
+
let instructions = null;
|
|
461
|
+
for await (const chunk of iterator) {
|
|
462
|
+
if (chunk.type === "directive") {
|
|
463
|
+
if (instructions === null) {
|
|
464
|
+
instructions = [];
|
|
465
|
+
}
|
|
466
|
+
instructions.push(chunk);
|
|
467
|
+
} else {
|
|
468
|
+
content += chunk;
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
return markHTMLString(new SlotString(content, instructions));
|
|
472
|
+
}
|
|
473
|
+
return fallback;
|
|
474
|
+
}
|
|
475
|
+
async function renderSlots(result, slots = {}) {
|
|
476
|
+
let slotInstructions = null;
|
|
477
|
+
let children = {};
|
|
478
|
+
if (slots) {
|
|
479
|
+
await Promise.all(
|
|
480
|
+
Object.entries(slots).map(
|
|
481
|
+
([key, value]) => renderSlot(result, value).then((output) => {
|
|
482
|
+
if (output.instructions) {
|
|
483
|
+
if (slotInstructions === null) {
|
|
484
|
+
slotInstructions = [];
|
|
485
|
+
}
|
|
486
|
+
slotInstructions.push(...output.instructions);
|
|
487
|
+
}
|
|
488
|
+
children[key] = output;
|
|
489
|
+
})
|
|
490
|
+
)
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
return { slotInstructions, children };
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
async function* renderChild(child) {
|
|
497
|
+
child = await child;
|
|
498
|
+
if (child instanceof SlotString) {
|
|
499
|
+
if (child.instructions) {
|
|
500
|
+
yield* child.instructions;
|
|
501
|
+
}
|
|
502
|
+
yield child;
|
|
503
|
+
} else if (isHTMLString(child)) {
|
|
504
|
+
yield child;
|
|
505
|
+
} else if (Array.isArray(child)) {
|
|
506
|
+
for (const value of child) {
|
|
507
|
+
yield markHTMLString(await renderChild(value));
|
|
508
|
+
}
|
|
509
|
+
} else if (typeof child === "function") {
|
|
510
|
+
yield* renderChild(child());
|
|
511
|
+
} else if (typeof child === "string") {
|
|
512
|
+
yield markHTMLString(escapeHTML(child));
|
|
513
|
+
} else if (!child && child !== 0) ; else if (child instanceof AstroComponent || Object.prototype.toString.call(child) === "[object AstroComponent]") {
|
|
514
|
+
yield* renderAstroComponent(child);
|
|
515
|
+
} else if (ArrayBuffer.isView(child)) {
|
|
516
|
+
yield child;
|
|
517
|
+
} else if (typeof child === "object" && (Symbol.asyncIterator in child || Symbol.iterator in child)) {
|
|
518
|
+
yield* child;
|
|
519
|
+
} else {
|
|
520
|
+
yield child;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
443
524
|
var idle_prebuilt_default = `(self.Astro=self.Astro||{}).idle=t=>{const e=async()=>{await(await t())()};"requestIdleCallback"in window?window.requestIdleCallback(e):setTimeout(e,200)},window.dispatchEvent(new Event("astro:idle"));`;
|
|
444
525
|
|
|
445
526
|
var load_prebuilt_default = `(self.Astro=self.Astro||{}).load=a=>{(async()=>await(await a())())()},window.dispatchEvent(new Event("astro:load"));`;
|
|
@@ -514,46 +595,22 @@ function stringifyChunk(result, chunk) {
|
|
|
514
595
|
}
|
|
515
596
|
class HTMLParts {
|
|
516
597
|
constructor() {
|
|
517
|
-
this.parts =
|
|
598
|
+
this.parts = "";
|
|
518
599
|
}
|
|
519
600
|
append(part, result) {
|
|
520
601
|
if (ArrayBuffer.isView(part)) {
|
|
521
|
-
this.parts.
|
|
602
|
+
this.parts += decoder.decode(part);
|
|
522
603
|
} else {
|
|
523
|
-
this.parts
|
|
604
|
+
this.parts += stringifyChunk(result, part);
|
|
524
605
|
}
|
|
525
606
|
}
|
|
526
607
|
toString() {
|
|
527
|
-
|
|
528
|
-
for (const part of this.parts) {
|
|
529
|
-
if (ArrayBuffer.isView(part)) {
|
|
530
|
-
html += decoder.decode(part);
|
|
531
|
-
} else {
|
|
532
|
-
html += part;
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
return html;
|
|
608
|
+
return this.parts;
|
|
536
609
|
}
|
|
537
610
|
toArrayBuffer() {
|
|
538
|
-
this.parts
|
|
539
|
-
if (typeof part === "string") {
|
|
540
|
-
this.parts[i] = encoder.encode(String(part));
|
|
541
|
-
}
|
|
542
|
-
});
|
|
543
|
-
return concatUint8Arrays(this.parts);
|
|
611
|
+
return encoder.encode(this.parts);
|
|
544
612
|
}
|
|
545
613
|
}
|
|
546
|
-
function concatUint8Arrays(arrays) {
|
|
547
|
-
let len = 0;
|
|
548
|
-
arrays.forEach((arr) => len += arr.length);
|
|
549
|
-
let merged = new Uint8Array(len);
|
|
550
|
-
let offset = 0;
|
|
551
|
-
arrays.forEach((arr) => {
|
|
552
|
-
merged.set(arr, offset);
|
|
553
|
-
offset += arr.length;
|
|
554
|
-
});
|
|
555
|
-
return merged;
|
|
556
|
-
}
|
|
557
614
|
|
|
558
615
|
function validateComponentProps(props, displayName) {
|
|
559
616
|
var _a;
|
|
@@ -637,44 +694,6 @@ async function renderTemplate(htmlParts, ...expressions) {
|
|
|
637
694
|
return new AstroComponent(htmlParts, expressions);
|
|
638
695
|
}
|
|
639
696
|
|
|
640
|
-
async function* renderChild(child) {
|
|
641
|
-
child = await child;
|
|
642
|
-
if (child instanceof HTMLString) {
|
|
643
|
-
yield child;
|
|
644
|
-
} else if (Array.isArray(child)) {
|
|
645
|
-
for (const value of child) {
|
|
646
|
-
yield markHTMLString(await renderChild(value));
|
|
647
|
-
}
|
|
648
|
-
} else if (typeof child === "function") {
|
|
649
|
-
yield* renderChild(child());
|
|
650
|
-
} else if (typeof child === "string") {
|
|
651
|
-
yield markHTMLString(escapeHTML(child));
|
|
652
|
-
} else if (!child && child !== 0) ; else if (child instanceof AstroComponent || Object.prototype.toString.call(child) === "[object AstroComponent]") {
|
|
653
|
-
yield* renderAstroComponent(child);
|
|
654
|
-
} else if (ArrayBuffer.isView(child)) {
|
|
655
|
-
yield child;
|
|
656
|
-
} else if (typeof child === "object" && (Symbol.asyncIterator in child || Symbol.iterator in child)) {
|
|
657
|
-
yield* child;
|
|
658
|
-
} else {
|
|
659
|
-
yield child;
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
async function renderSlot(result, slotted, fallback) {
|
|
663
|
-
if (slotted) {
|
|
664
|
-
let iterator = renderChild(slotted);
|
|
665
|
-
let content = "";
|
|
666
|
-
for await (const chunk of iterator) {
|
|
667
|
-
if (chunk.type === "directive") {
|
|
668
|
-
content += stringifyChunk(result, chunk);
|
|
669
|
-
} else {
|
|
670
|
-
content += chunk;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
return markHTMLString(content);
|
|
674
|
-
}
|
|
675
|
-
return fallback;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
697
|
/**
|
|
679
698
|
* shortdash - https://github.com/bibig/node-shorthash
|
|
680
699
|
*
|
|
@@ -779,14 +798,14 @@ Make sure to use the static attribute syntax (\`${key}={value}\`) instead of the
|
|
|
779
798
|
return "";
|
|
780
799
|
}
|
|
781
800
|
if (key === "class:list") {
|
|
782
|
-
const listValue = toAttributeString(serializeListValue(value));
|
|
801
|
+
const listValue = toAttributeString(serializeListValue(value), shouldEscape);
|
|
783
802
|
if (listValue === "") {
|
|
784
803
|
return "";
|
|
785
804
|
}
|
|
786
805
|
return markHTMLString(` ${key.slice(0, -5)}="${listValue}"`);
|
|
787
806
|
}
|
|
788
807
|
if (key === "style" && !(value instanceof HTMLString) && typeof value === "object") {
|
|
789
|
-
return markHTMLString(` ${key}="${toStyleString(value)}"`);
|
|
808
|
+
return markHTMLString(` ${key}="${toAttributeString(toStyleString(value), shouldEscape)}"`);
|
|
790
809
|
}
|
|
791
810
|
if (key === "className") {
|
|
792
811
|
return markHTMLString(` class="${toAttributeString(value, shouldEscape)}"`);
|
|
@@ -853,7 +872,7 @@ function guessRenderers(componentUrl) {
|
|
|
853
872
|
return ["@astrojs/vue"];
|
|
854
873
|
case "jsx":
|
|
855
874
|
case "tsx":
|
|
856
|
-
return ["@astrojs/react", "@astrojs/preact"];
|
|
875
|
+
return ["@astrojs/react", "@astrojs/preact", "@astrojs/vue (jsx)"];
|
|
857
876
|
default:
|
|
858
877
|
return ["@astrojs/react", "@astrojs/preact", "@astrojs/vue", "@astrojs/svelte"];
|
|
859
878
|
}
|
|
@@ -882,18 +901,10 @@ async function renderComponent(result, displayName, Component, _props, slots = {
|
|
|
882
901
|
return markHTMLString(children2);
|
|
883
902
|
}
|
|
884
903
|
case "html": {
|
|
885
|
-
const children2 =
|
|
886
|
-
if (slots) {
|
|
887
|
-
await Promise.all(
|
|
888
|
-
Object.entries(slots).map(
|
|
889
|
-
([key, value]) => renderSlot(result, value).then((output) => {
|
|
890
|
-
children2[key] = output;
|
|
891
|
-
})
|
|
892
|
-
)
|
|
893
|
-
);
|
|
894
|
-
}
|
|
904
|
+
const { slotInstructions: slotInstructions2, children: children2 } = await renderSlots(result, slots);
|
|
895
905
|
const html2 = Component.render({ slots: children2 });
|
|
896
|
-
|
|
906
|
+
const hydrationHtml = slotInstructions2 ? slotInstructions2.map((instr) => stringifyChunk(result, instr)).join("") : "";
|
|
907
|
+
return markHTMLString(hydrationHtml + html2);
|
|
897
908
|
}
|
|
898
909
|
case "astro-factory": {
|
|
899
910
|
async function* renderAstroComponentInline() {
|
|
@@ -928,16 +939,7 @@ There are no \`integrations\` set in your \`astro.config.mjs\` file.
|
|
|
928
939
|
Did you mean to add ${formatList(probableRendererNames.map((r) => "`" + r + "`"))}?`;
|
|
929
940
|
throw new Error(message);
|
|
930
941
|
}
|
|
931
|
-
const children =
|
|
932
|
-
if (slots) {
|
|
933
|
-
await Promise.all(
|
|
934
|
-
Object.entries(slots).map(
|
|
935
|
-
([key, value]) => renderSlot(result, value).then((output) => {
|
|
936
|
-
children[key] = output;
|
|
937
|
-
})
|
|
938
|
-
)
|
|
939
|
-
);
|
|
940
|
-
}
|
|
942
|
+
const { children, slotInstructions } = await renderSlots(result, slots);
|
|
941
943
|
let renderer;
|
|
942
944
|
if (metadata.hydrate !== "only") {
|
|
943
945
|
if (Component && Component[Renderer]) {
|
|
@@ -1053,10 +1055,16 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
|
|
|
1053
1055
|
}
|
|
1054
1056
|
}
|
|
1055
1057
|
if (!hydration) {
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1058
|
+
return async function* () {
|
|
1059
|
+
if (slotInstructions) {
|
|
1060
|
+
yield* slotInstructions;
|
|
1061
|
+
}
|
|
1062
|
+
if (isPage || (renderer == null ? void 0 : renderer.name) === "astro:jsx") {
|
|
1063
|
+
yield html;
|
|
1064
|
+
} else {
|
|
1065
|
+
yield markHTMLString(html.replace(/\<\/?astro-slot\>/g, ""));
|
|
1066
|
+
}
|
|
1067
|
+
}();
|
|
1060
1068
|
}
|
|
1061
1069
|
const astroId = shorthash(
|
|
1062
1070
|
`<!--${metadata.componentExport.value}:${metadata.componentUrl}-->
|
|
@@ -1090,6 +1098,9 @@ ${serializeProps(
|
|
|
1090
1098
|
island.props["await-children"] = "";
|
|
1091
1099
|
}
|
|
1092
1100
|
async function* renderAll() {
|
|
1101
|
+
if (slotInstructions) {
|
|
1102
|
+
yield* slotInstructions;
|
|
1103
|
+
}
|
|
1093
1104
|
yield { type: "directive", hydration, result };
|
|
1094
1105
|
yield markHTMLString(renderElement$1("astro-island", island, false));
|
|
1095
1106
|
}
|
|
@@ -1101,9 +1112,8 @@ const uniqueElements = (item, index, all) => {
|
|
|
1101
1112
|
const children = item.children;
|
|
1102
1113
|
return index === all.findIndex((i) => JSON.stringify(i.props) === props && i.children == children);
|
|
1103
1114
|
};
|
|
1104
|
-
const alreadyHeadRenderedResults = /* @__PURE__ */ new WeakSet();
|
|
1105
1115
|
function renderHead(result) {
|
|
1106
|
-
|
|
1116
|
+
result._metadata.hasRenderedHead = true;
|
|
1107
1117
|
const styles = Array.from(result.styles).filter(uniqueElements).map((style) => renderElement$1("style", style));
|
|
1108
1118
|
result.styles.clear();
|
|
1109
1119
|
const scripts = Array.from(result.scripts).filter(uniqueElements).map((script, i) => {
|
|
@@ -1113,7 +1123,7 @@ function renderHead(result) {
|
|
|
1113
1123
|
return markHTMLString(links.join("\n") + styles.join("\n") + scripts.join("\n"));
|
|
1114
1124
|
}
|
|
1115
1125
|
async function* maybeRenderHead(result) {
|
|
1116
|
-
if (
|
|
1126
|
+
if (result._metadata.hasRenderedHead) {
|
|
1117
1127
|
return;
|
|
1118
1128
|
}
|
|
1119
1129
|
yield renderHead(result);
|
|
@@ -1208,6 +1218,7 @@ function transformSetDirectives(vnode) {
|
|
|
1208
1218
|
}
|
|
1209
1219
|
function createVNode(type, props) {
|
|
1210
1220
|
const vnode = {
|
|
1221
|
+
[Renderer]: "astro:jsx",
|
|
1211
1222
|
[AstroJSX]: true,
|
|
1212
1223
|
type,
|
|
1213
1224
|
props: props ?? {}
|
|
@@ -1230,6 +1241,8 @@ async function renderJSX(result, vnode) {
|
|
|
1230
1241
|
return vnode;
|
|
1231
1242
|
case typeof vnode === "string":
|
|
1232
1243
|
return markHTMLString(escapeHTML(vnode));
|
|
1244
|
+
case typeof vnode === "function":
|
|
1245
|
+
return vnode;
|
|
1233
1246
|
case (!vnode && vnode !== 0):
|
|
1234
1247
|
return "";
|
|
1235
1248
|
case Array.isArray(vnode):
|
|
@@ -1239,6 +1252,10 @@ async function renderJSX(result, vnode) {
|
|
|
1239
1252
|
}
|
|
1240
1253
|
if (isVNode(vnode)) {
|
|
1241
1254
|
switch (true) {
|
|
1255
|
+
case !vnode.type: {
|
|
1256
|
+
throw new Error(`Unable to render ${result._metadata.pathname} because it contains an undefined Component!
|
|
1257
|
+
Did you forget to import the component or is it possible there is a typo?`);
|
|
1258
|
+
}
|
|
1242
1259
|
case vnode.type === Symbol.for("astro:fragment"):
|
|
1243
1260
|
return renderJSX(result, vnode.props.children);
|
|
1244
1261
|
case vnode.type.isAstroComponentFactory: {
|
|
@@ -12913,10 +12930,10 @@ const $$module1$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePropert
|
|
|
12913
12930
|
loadPageContext
|
|
12914
12931
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
12915
12932
|
|
|
12916
|
-
const $$metadata$
|
|
12917
|
-
const $$Astro$
|
|
12933
|
+
const $$metadata$e = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro", { modules: [{ module: $$module1$4, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
12934
|
+
const $$Astro$e = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
12918
12935
|
const $$BaseHead = createComponent(async ($$result, $$props, $$slots) => {
|
|
12919
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
12936
|
+
const Astro2 = $$result.createAstro($$Astro$e, $$props, $$slots);
|
|
12920
12937
|
Astro2.self = $$BaseHead;
|
|
12921
12938
|
const {
|
|
12922
12939
|
storeId,
|
|
@@ -12973,25 +12990,25 @@ ${cmsSocial.twitter_username && renderTemplate`<meta name="twitter:site"${addAtt
|
|
|
12973
12990
|
`;
|
|
12974
12991
|
});
|
|
12975
12992
|
|
|
12976
|
-
const $$file$
|
|
12977
|
-
const $$url$
|
|
12993
|
+
const $$file$e = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro";
|
|
12994
|
+
const $$url$e = undefined;
|
|
12978
12995
|
|
|
12979
12996
|
const $$module1$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
12980
12997
|
__proto__: null,
|
|
12981
|
-
$$metadata: $$metadata$
|
|
12998
|
+
$$metadata: $$metadata$e,
|
|
12982
12999
|
default: $$BaseHead,
|
|
12983
|
-
file: $$file$
|
|
12984
|
-
url: $$url$
|
|
13000
|
+
file: $$file$e,
|
|
13001
|
+
url: $$url$e
|
|
12985
13002
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
12986
13003
|
|
|
12987
|
-
var __freeze = Object.freeze;
|
|
12988
|
-
var __defProp = Object.defineProperty;
|
|
12989
|
-
var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) }));
|
|
12990
|
-
var _a;
|
|
12991
|
-
const $$metadata$
|
|
12992
|
-
const $$Astro$
|
|
13004
|
+
var __freeze$1 = Object.freeze;
|
|
13005
|
+
var __defProp$1 = Object.defineProperty;
|
|
13006
|
+
var __template$1 = (cooked, raw) => __freeze$1(__defProp$1(cooked, "raw", { value: __freeze$1(raw || cooked.slice()) }));
|
|
13007
|
+
var _a$1;
|
|
13008
|
+
const $$metadata$d = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro", { modules: [{ module: $$module1$4, specifier: "@ecomplus/utils", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
13009
|
+
const $$Astro$d = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
12993
13010
|
const $$BaseStateJson = createComponent(async ($$result, $$props, $$slots) => {
|
|
12994
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
13011
|
+
const Astro2 = $$result.createAstro($$Astro$d, $$props, $$slots);
|
|
12995
13012
|
Astro2.self = $$BaseStateJson;
|
|
12996
13013
|
const {
|
|
12997
13014
|
pageContext: {
|
|
@@ -13052,54 +13069,54 @@ window.storefront.context = ${JSON.stringify({
|
|
|
13052
13069
|
url: `https://${domain}/`,
|
|
13053
13070
|
logo: `https://${domain}${settings.logo}`
|
|
13054
13071
|
});
|
|
13055
|
-
return renderTemplate(_a || (_a = __template(["<script>", '<\/script>\n<script type="application/ld+json">', "<\/script>\n"])), unescapeHTML(inlineClientJS), unescapeHTML(inlineJSONLd));
|
|
13072
|
+
return renderTemplate(_a$1 || (_a$1 = __template$1(["<script>", '<\/script>\n<script type="application/ld+json">', "<\/script>\n"])), unescapeHTML(inlineClientJS), unescapeHTML(inlineJSONLd));
|
|
13056
13073
|
});
|
|
13057
13074
|
|
|
13058
|
-
const $$file$
|
|
13059
|
-
const $$url$
|
|
13075
|
+
const $$file$d = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro";
|
|
13076
|
+
const $$url$d = undefined;
|
|
13060
13077
|
|
|
13061
13078
|
const $$module2$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
13062
13079
|
__proto__: null,
|
|
13063
|
-
$$metadata: $$metadata$
|
|
13080
|
+
$$metadata: $$metadata$d,
|
|
13064
13081
|
default: $$BaseStateJson,
|
|
13065
|
-
file: $$file$
|
|
13066
|
-
url: $$url$
|
|
13082
|
+
file: $$file$d,
|
|
13083
|
+
url: $$url$d
|
|
13067
13084
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
13068
13085
|
|
|
13069
|
-
const $$metadata$
|
|
13086
|
+
const $$metadata$c = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [{ type: "inline", value: `
|
|
13070
13087
|
import { registerSW } from 'virtual:pwa-register';
|
|
13071
13088
|
registerSW();
|
|
13072
13089
|
` }] });
|
|
13073
|
-
const $$Astro$
|
|
13090
|
+
const $$Astro$c = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
13074
13091
|
const $$BaseBody = createComponent(async ($$result, $$props, $$slots) => {
|
|
13075
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
13092
|
+
const Astro2 = $$result.createAstro($$Astro$c, $$props, $$slots);
|
|
13076
13093
|
Astro2.self = $$BaseBody;
|
|
13077
13094
|
const STYLES = [];
|
|
13078
13095
|
for (const STYLE of STYLES)
|
|
13079
13096
|
$$result.styles.add(STYLE);
|
|
13080
13097
|
return renderTemplate`${maybeRenderHead($$result)}<body>
|
|
13081
13098
|
${renderSlot($$result, $$slots["default"])}
|
|
13082
|
-
|
|
13099
|
+
${maybeRenderHead($$result)}
|
|
13083
13100
|
${renderSlot($$result, $$slots["before-body-end"])}
|
|
13084
13101
|
|
|
13085
13102
|
</body>`;
|
|
13086
13103
|
});
|
|
13087
13104
|
|
|
13088
|
-
const $$file$
|
|
13089
|
-
const $$url$
|
|
13105
|
+
const $$file$c = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro";
|
|
13106
|
+
const $$url$c = undefined;
|
|
13090
13107
|
|
|
13091
13108
|
const $$module3$4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
13092
13109
|
__proto__: null,
|
|
13093
|
-
$$metadata: $$metadata$
|
|
13110
|
+
$$metadata: $$metadata$c,
|
|
13094
13111
|
default: $$BaseBody,
|
|
13095
|
-
file: $$file$
|
|
13096
|
-
url: $$url$
|
|
13112
|
+
file: $$file$c,
|
|
13113
|
+
url: $$url$c
|
|
13097
13114
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
13098
13115
|
|
|
13099
|
-
const $$metadata$
|
|
13100
|
-
const $$Astro$
|
|
13116
|
+
const $$metadata$b = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro", { modules: [{ module: $$module1$2, specifier: "./BaseHead.astro", assert: {} }, { module: $$module2$2, specifier: "./BaseStateJson.astro", assert: {} }, { module: $$module3$4, specifier: "./BaseBody.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
13117
|
+
const $$Astro$b = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
13101
13118
|
const $$Base = createComponent(async ($$result, $$props, $$slots) => {
|
|
13102
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
13119
|
+
const Astro2 = $$result.createAstro($$Astro$b, $$props, $$slots);
|
|
13103
13120
|
Astro2.self = $$Base;
|
|
13104
13121
|
const { pageContext, title } = Astro2.props;
|
|
13105
13122
|
const { cms } = pageContext;
|
|
@@ -13107,25 +13124,22 @@ const $$Base = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
13107
13124
|
return renderTemplate`<head>
|
|
13108
13125
|
${renderComponent($$result, "BaseHead", $$BaseHead, { "pageContext": pageContext, "title": title })}
|
|
13109
13126
|
${renderComponent($$result, "BaseStateJson", $$BaseStateJson, { "pageContext": pageContext })}
|
|
13110
|
-
${
|
|
13111
|
-
|
|
13112
|
-
|
|
13113
|
-
|
|
13114
|
-
|
|
13115
|
-
${renderComponent($$result, "BaseBody", $$BaseBody, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderSlot($$result, $$slots["default"])}${renderSlot($$result, $$slots["before-body-end"], renderTemplate`
|
|
13116
|
-
${cmsCustomCode.html_body && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(cmsCustomCode.html_body)}` })}`}
|
|
13117
|
-
`)}` })}`;
|
|
13127
|
+
${cmsCustomCode.css && renderTemplate`<style>{cmsCustomCode.css}</style>`}
|
|
13128
|
+
${renderHead($$result)}</head>${cmsCustomCode.html_head && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(cmsCustomCode.html_head)}` })}`}
|
|
13129
|
+
${renderSlot($$result, $$slots["before-head-end"])}
|
|
13130
|
+
|
|
13131
|
+
${renderComponent($$result, "BaseBody", $$BaseBody, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderSlot($$result, $$slots["default"])}${cmsCustomCode.html_body && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(cmsCustomCode.html_body)}` })}`}${renderSlot($$result, $$slots["before-body-end"])}` })}`;
|
|
13118
13132
|
});
|
|
13119
13133
|
|
|
13120
|
-
const $$file$
|
|
13121
|
-
const $$url$
|
|
13134
|
+
const $$file$b = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro";
|
|
13135
|
+
const $$url$b = undefined;
|
|
13122
13136
|
|
|
13123
13137
|
const $$module1$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
13124
13138
|
__proto__: null,
|
|
13125
|
-
$$metadata: $$metadata$
|
|
13139
|
+
$$metadata: $$metadata$b,
|
|
13126
13140
|
default: $$Base,
|
|
13127
|
-
file: $$file$
|
|
13128
|
-
url: $$url$
|
|
13141
|
+
file: $$file$b,
|
|
13142
|
+
url: $$url$b
|
|
13129
13143
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
13130
13144
|
|
|
13131
13145
|
const i19a = "a";
|
|
@@ -15665,24 +15679,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15665
15679
|
const LoginForm = defineAsyncComponent(() => loadingLoginForm);
|
|
15666
15680
|
const isLogged = ref(false);
|
|
15667
15681
|
return (_ctx, _push, _parent, _attrs) => {
|
|
15668
|
-
_push(
|
|
15682
|
+
_push(`<div${ssrRenderAttrs(mergeProps({ class: "login-offcanvas" }, _attrs))}><div>`);
|
|
15669
15683
|
ssrRenderSlot(_ctx.$slots, "toggle", { isVisible: isVisible.value }, () => {
|
|
15670
15684
|
_push(`<a${ssrRenderAttr("href", __props.accountUrl)}${ssrRenderAttr("title", unref(i19myAccountAndOrders))}><div class="${ssrRenderClass(__props.accountIconClass)}"></div></a>`);
|
|
15671
15685
|
}, _push, _parent);
|
|
15672
15686
|
_push(`</div>`);
|
|
15673
15687
|
_push(ssrRenderComponent(ADrawer, {
|
|
15674
15688
|
modelValue: isVisible.value,
|
|
15675
|
-
"onUpdate:modelValue": ($event) => isVisible.value = $event
|
|
15676
|
-
class: "login-offcanvas"
|
|
15689
|
+
"onUpdate:modelValue": ($event) => isVisible.value = $event
|
|
15677
15690
|
}, {
|
|
15678
15691
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
15679
15692
|
if (_push2) {
|
|
15680
15693
|
ssrRenderSlot(_ctx.$slots, "form", {}, () => {
|
|
15694
|
+
_push2(`<div class="w-80"${_scopeId}>`);
|
|
15681
15695
|
_push2(ssrRenderComponent(unref(LoginForm), {
|
|
15682
|
-
class: "w-80",
|
|
15683
15696
|
onLogin: ($event) => isLogged.value = true,
|
|
15684
15697
|
onLogout: ($event) => isLogged.value = false
|
|
15685
15698
|
}, null, _parent2, _scopeId));
|
|
15699
|
+
_push2(`</div>`);
|
|
15686
15700
|
}, _push2, _parent2, _scopeId);
|
|
15687
15701
|
ssrRenderSlot(_ctx.$slots, "nav", { isLogged: isLogged.value }, () => {
|
|
15688
15702
|
_push2(`<hr${_scopeId}><aside${_scopeId}><nav${_scopeId}><ul${_scopeId}>`);
|
|
@@ -15700,11 +15714,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15700
15714
|
} else {
|
|
15701
15715
|
return [
|
|
15702
15716
|
renderSlot$1(_ctx.$slots, "form", {}, () => [
|
|
15703
|
-
createVNode$1(
|
|
15704
|
-
|
|
15705
|
-
|
|
15706
|
-
|
|
15707
|
-
|
|
15717
|
+
createVNode$1("div", { class: "w-80" }, [
|
|
15718
|
+
createVNode$1(unref(LoginForm), {
|
|
15719
|
+
onLogin: ($event) => isLogged.value = true,
|
|
15720
|
+
onLogout: ($event) => isLogged.value = false
|
|
15721
|
+
}, null, 8, ["onLogin", "onLogout"])
|
|
15722
|
+
])
|
|
15708
15723
|
]),
|
|
15709
15724
|
renderSlot$1(_ctx.$slots, "nav", { isLogged: isLogged.value }, () => [
|
|
15710
15725
|
createVNode$1("hr"),
|
|
@@ -15740,7 +15755,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15740
15755
|
}),
|
|
15741
15756
|
_: 3
|
|
15742
15757
|
}, _parent));
|
|
15743
|
-
_push(
|
|
15758
|
+
_push(`</div>`);
|
|
15744
15759
|
};
|
|
15745
15760
|
}
|
|
15746
15761
|
});
|
|
@@ -15752,15 +15767,15 @@ _sfc_main.setup = (props, ctx) => {
|
|
|
15752
15767
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
15753
15768
|
};
|
|
15754
15769
|
|
|
15755
|
-
const $$module5 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
15770
|
+
const $$module5$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
15756
15771
|
__proto__: null,
|
|
15757
15772
|
default: _sfc_main
|
|
15758
15773
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15759
15774
|
|
|
15760
|
-
const $$metadata$
|
|
15761
|
-
const $$Astro$
|
|
15775
|
+
const $$metadata$a = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro", { modules: [{ module: $$module1, specifier: "@cloudcommerce/i18n/src/pt_br", assert: {} }, { module: $$module2$1, specifier: "../ssr/image", assert: {} }, { module: $$module3$3, specifier: "../components/TopBar.vue", assert: {} }, { module: $$module4$1, specifier: "../components/TheHeader.vue", assert: {} }, { module: $$module5$1, specifier: "../components/LoginDrawer.vue", assert: {} }], hydratedComponents: [_sfc_main], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set(["idle"]), hoisted: [] });
|
|
15776
|
+
const $$Astro$a = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
15762
15777
|
const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
|
|
15763
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
15778
|
+
const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
|
|
15764
15779
|
Astro2.self = $$PagesHeader;
|
|
15765
15780
|
const {
|
|
15766
15781
|
pageContext: {
|
|
@@ -15819,12 +15834,12 @@ const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
15819
15834
|
};
|
|
15820
15835
|
globalThis.TheHeaderProps = {
|
|
15821
15836
|
logo: {
|
|
15822
|
-
...await getImage({
|
|
15837
|
+
...(await getImage({
|
|
15823
15838
|
src: settings.logo,
|
|
15824
15839
|
width: 150,
|
|
15825
15840
|
format: "webp",
|
|
15826
15841
|
quality: 90
|
|
15827
|
-
}),
|
|
15842
|
+
})),
|
|
15828
15843
|
alt: settings.name
|
|
15829
15844
|
},
|
|
15830
15845
|
...theHeaderProps
|
|
@@ -15835,28 +15850,28 @@ const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
15835
15850
|
};
|
|
15836
15851
|
return renderTemplate`${renderSlot($$result, $$slots["top-bar"], renderTemplate`
|
|
15837
15852
|
${renderComponent($$result, "TopBar", _sfc_main$3, { ...globalThis.TopBarProps })}
|
|
15838
|
-
|
|
15853
|
+
|
|
15839
15854
|
${renderSlot($$result, $$slots["header"], renderTemplate`
|
|
15840
|
-
${renderComponent($$result, "TheHeader", _sfc_main$2, { ...globalThis.TheHeaderProps }, { "buttons": () => renderTemplate`${renderComponent($$result, "Fragment", Fragment, { "slot": "buttons" }, { "default": () => renderTemplate`${renderComponent($$result, "LoginDrawer", _sfc_main, { "client:idle": true, ...globalThis.LoginDrawerProps, "client:component-hydration": "idle", "client:component-path": "
|
|
15855
|
+
${renderComponent($$result, "TheHeader", _sfc_main$2, { ...globalThis.TheHeaderProps }, { "buttons": () => renderTemplate`${renderComponent($$result, "Fragment", Fragment, { "slot": "buttons" }, { "default": () => renderTemplate`${renderComponent($$result, "LoginDrawer", _sfc_main, { "client:idle": true, ...globalThis.LoginDrawerProps, "client:component-hydration": "idle", "client:component-path": "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginDrawer.vue", "client:component-export": "default" })}` })}` })}
|
|
15841
15856
|
`)}
|
|
15842
|
-
`;
|
|
15857
|
+
`)}`;
|
|
15843
15858
|
});
|
|
15844
15859
|
|
|
15845
|
-
const $$file$
|
|
15846
|
-
const $$url$
|
|
15860
|
+
const $$file$a = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro";
|
|
15861
|
+
const $$url$a = undefined;
|
|
15847
15862
|
|
|
15848
15863
|
const $$module2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
15849
15864
|
__proto__: null,
|
|
15850
|
-
$$metadata: $$metadata$
|
|
15865
|
+
$$metadata: $$metadata$a,
|
|
15851
15866
|
default: $$PagesHeader,
|
|
15852
|
-
file: $$file$
|
|
15853
|
-
url: $$url$
|
|
15867
|
+
file: $$file$a,
|
|
15868
|
+
url: $$url$a
|
|
15854
15869
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15855
15870
|
|
|
15856
|
-
const $$metadata$
|
|
15857
|
-
const $$Astro$
|
|
15871
|
+
const $$metadata$9 = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro", { modules: [{ module: $$module1$1, specifier: "./Base.astro", assert: {} }, { module: $$module2, specifier: "./PagesHeader.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
15872
|
+
const $$Astro$9 = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
15858
15873
|
const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
|
|
15859
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
15874
|
+
const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
|
|
15860
15875
|
Astro2.self = $$Pages;
|
|
15861
15876
|
const { pageContext, title } = Astro2.props;
|
|
15862
15877
|
return renderTemplate`${renderComponent($$result, "Base", $$Base, { "pageContext": pageContext, "title": title }, { "before-body-end": () => renderTemplate`${renderComponent($$result, "Fragment", Fragment, { "slot": "before-body-end" }, { "default": () => renderTemplate`${renderSlot($$result, $$slots["before-body-end"])}` })}`, "before-head-end": () => renderTemplate`${renderComponent($$result, "Fragment", Fragment, { "slot": "before-head-end" }, { "default": () => renderTemplate`${renderSlot($$result, $$slots["before-head-end"])}` })}`, "default": () => renderTemplate`${renderSlot($$result, $$slots["header"], renderTemplate`
|
|
@@ -15864,21 +15879,21 @@ const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
15864
15879
|
`)}${renderSlot($$result, $$slots["default"])}` })}`;
|
|
15865
15880
|
});
|
|
15866
15881
|
|
|
15867
|
-
const $$file$
|
|
15868
|
-
const $$url$
|
|
15882
|
+
const $$file$9 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Pages.astro";
|
|
15883
|
+
const $$url$9 = undefined;
|
|
15869
15884
|
|
|
15870
15885
|
const $$module3$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
15871
15886
|
__proto__: null,
|
|
15872
|
-
$$metadata: $$metadata$
|
|
15887
|
+
$$metadata: $$metadata$9,
|
|
15873
15888
|
default: $$Pages,
|
|
15874
|
-
file: $$file$
|
|
15875
|
-
url: $$url$
|
|
15889
|
+
file: $$file$9,
|
|
15890
|
+
url: $$url$9
|
|
15876
15891
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15877
15892
|
|
|
15878
|
-
const $$metadata$
|
|
15879
|
-
const $$Astro$
|
|
15893
|
+
const $$metadata$8 = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro", { modules: [{ module: $$module2$3, specifier: "@cloudcommerce/api", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
15894
|
+
const $$Astro$8 = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
15880
15895
|
const $$Home = createComponent(async ($$result, $$props, $$slots) => {
|
|
15881
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
15896
|
+
const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
|
|
15882
15897
|
Astro2.self = $$Home;
|
|
15883
15898
|
const products = (await api.get("products")).data.result;
|
|
15884
15899
|
return renderTemplate`${maybeRenderHead($$result)}<main>
|
|
@@ -15891,19 +15906,42 @@ const $$Home = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
15891
15906
|
</main>`;
|
|
15892
15907
|
});
|
|
15893
15908
|
|
|
15894
|
-
const $$file$
|
|
15895
|
-
const $$url$
|
|
15909
|
+
const $$file$8 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Home.astro";
|
|
15910
|
+
const $$url$8 = undefined;
|
|
15896
15911
|
|
|
15897
15912
|
const $$module3$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
15898
15913
|
__proto__: null,
|
|
15899
|
-
$$metadata: $$metadata$
|
|
15914
|
+
$$metadata: $$metadata$8,
|
|
15900
15915
|
default: $$Home,
|
|
15916
|
+
file: $$file$8,
|
|
15917
|
+
url: $$url$8
|
|
15918
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15919
|
+
|
|
15920
|
+
var __freeze = Object.freeze;
|
|
15921
|
+
var __defProp = Object.defineProperty;
|
|
15922
|
+
var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) }));
|
|
15923
|
+
var _a;
|
|
15924
|
+
const $$metadata$7 = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/scripts/InlineScripts.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
15925
|
+
const $$Astro$7 = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/scripts/InlineScripts.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
15926
|
+
const $$InlineScripts = createComponent(async ($$result, $$props, $$slots) => {
|
|
15927
|
+
const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
|
|
15928
|
+
Astro2.self = $$InlineScripts;
|
|
15929
|
+
return renderTemplate(_a || (_a = __template(["<script>\n window.firebaseConfig = {\n apiKey: 'AIzaSyCrVzemDgpyp9i6ni7Yc5ZuEVfXYwl-4J0',\n authDomain: 'ecom2-002.firebaseapp.com',\n projectId: 'ecom2-002',\n storageBucket: 'ecom2-002.appspot.com',\n messagingSenderId: '402807248219',\n appId: '1:402807248219:web:cf7d57759751e74776367e',\n measurementId: 'G-SC592CE0GB',\n };\n<\/script>\n"])));
|
|
15930
|
+
});
|
|
15931
|
+
|
|
15932
|
+
const $$file$7 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/scripts/InlineScripts.astro";
|
|
15933
|
+
const $$url$7 = undefined;
|
|
15934
|
+
|
|
15935
|
+
const $$module5 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
15936
|
+
__proto__: null,
|
|
15937
|
+
$$metadata: $$metadata$7,
|
|
15938
|
+
default: $$InlineScripts,
|
|
15901
15939
|
file: $$file$7,
|
|
15902
15940
|
url: $$url$7
|
|
15903
15941
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15904
15942
|
|
|
15905
|
-
const $$metadata$6 = createMetadata("
|
|
15906
|
-
const $$Astro$6 = createAstro("
|
|
15943
|
+
const $$metadata$6 = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", { modules: [{ module: $$module1$3, specifier: "../lib/ssr-context", assert: {} }, { module: $$module3$2, specifier: "../lib/layouts/Pages.astro", assert: {} }, { module: $$module3$1, specifier: "../lib/main/Home.astro", assert: {} }, { module: $$module5, specifier: "../scripts/InlineScripts.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
15944
|
+
const $$Astro$6 = createAstro("/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/");
|
|
15907
15945
|
const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
15908
15946
|
const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
|
|
15909
15947
|
Astro2.self = $$Index$1;
|
|
@@ -15918,7 +15956,7 @@ const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
15918
15956
|
loadError = err;
|
|
15919
15957
|
}
|
|
15920
15958
|
return renderTemplate`<html${addAttribute(pageContext?.lang.replace("_", "-"), "lang")}>
|
|
15921
|
-
${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "HomeMain", $$Home, { "pageContext": pageContext })}` })}`}
|
|
15959
|
+
${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "before-head-end": () => renderTemplate`${renderComponent($$result, "InlineScripts", $$InlineScripts, { "slot": "before-head-end" })}`, "default": () => renderTemplate`${renderComponent($$result, "HomeMain", $$Home, { "pageContext": pageContext })}` })}`}
|
|
15922
15960
|
${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(loadError.responseHTML)}` })}`}
|
|
15923
15961
|
|
|
15924
15962
|
</html>`;
|
|
@@ -15935,8 +15973,8 @@ const _page1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
15935
15973
|
url: $$url$6
|
|
15936
15974
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15937
15975
|
|
|
15938
|
-
const $$metadata$5 = createMetadata("
|
|
15939
|
-
const $$Astro$5 = createAstro("
|
|
15976
|
+
const $$metadata$5 = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Fallback.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
15977
|
+
const $$Astro$5 = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Fallback.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
15940
15978
|
const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
15941
15979
|
const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
|
|
15942
15980
|
Astro2.self = $$Fallback$1;
|
|
@@ -15960,8 +15998,8 @@ const $$module3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
|
|
|
15960
15998
|
url: $$url$5
|
|
15961
15999
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15962
16000
|
|
|
15963
|
-
const $$metadata$4 = createMetadata("
|
|
15964
|
-
const $$Astro$4 = createAstro("
|
|
16001
|
+
const $$metadata$4 = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro", { modules: [{ module: $$module1$3, specifier: "../lib/ssr-context", assert: {} }, { module: $$module3$2, specifier: "../lib/layouts/Pages.astro", assert: {} }, { module: $$module3, specifier: "../lib/main/Fallback.astro", assert: {} }, { module: $$module5, specifier: "../scripts/InlineScripts.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
16002
|
+
const $$Astro$4 = createAstro("/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/");
|
|
15965
16003
|
const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
15966
16004
|
const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
|
|
15967
16005
|
Astro2.self = $$Fallback;
|
|
@@ -15972,7 +16010,7 @@ const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
15972
16010
|
return err.astroResponse;
|
|
15973
16011
|
}
|
|
15974
16012
|
return renderTemplate`<html${addAttribute(pageContext?.lang.replace("_", "-"), "lang")}>
|
|
15975
|
-
${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "FallbackMain", $$Fallback$1, { "pageContext": pageContext })}` })}
|
|
16013
|
+
${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "before-head-end": () => renderTemplate`${renderComponent($$result, "InlineScripts", $$InlineScripts, { "slot": "before-head-end" })}`, "default": () => renderTemplate`${renderComponent($$result, "FallbackMain", $$Fallback$1, { "pageContext": pageContext })}` })}
|
|
15976
16014
|
</html>`;
|
|
15977
16015
|
});
|
|
15978
16016
|
|
|
@@ -15987,8 +16025,8 @@ const _page2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
15987
16025
|
url: $$url$4
|
|
15988
16026
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15989
16027
|
|
|
15990
|
-
const $$metadata$3 = createMetadata("
|
|
15991
|
-
const $$Astro$3 = createAstro("
|
|
16028
|
+
const $$metadata$3 = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
16029
|
+
const $$Astro$3 = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
15992
16030
|
const $$Index = createComponent(async ($$result, $$props, $$slots) => {
|
|
15993
16031
|
const Astro2 = $$result.createAstro($$Astro$3, $$props, $$slots);
|
|
15994
16032
|
Astro2.self = $$Index;
|
|
@@ -16006,8 +16044,8 @@ const _page3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
16006
16044
|
url: $$url$3
|
|
16007
16045
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
16008
16046
|
|
|
16009
|
-
const $$metadata$2 = createMetadata("
|
|
16010
|
-
const $$Astro$2 = createAstro("
|
|
16047
|
+
const $$metadata$2 = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
16048
|
+
const $$Astro$2 = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
16011
16049
|
const $$Account = createComponent(async ($$result, $$props, $$slots) => {
|
|
16012
16050
|
const Astro2 = $$result.createAstro($$Astro$2, $$props, $$slots);
|
|
16013
16051
|
Astro2.self = $$Account;
|
|
@@ -16025,8 +16063,8 @@ const _page4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
16025
16063
|
url: $$url$2
|
|
16026
16064
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
16027
16065
|
|
|
16028
|
-
const $$metadata$1 = createMetadata("
|
|
16029
|
-
const $$Astro$1 = createAstro("
|
|
16066
|
+
const $$metadata$1 = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Wildcard.astro", { modules: [], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
16067
|
+
const $$Astro$1 = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/main/Wildcard.astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
16030
16068
|
const $$Wildcard = createComponent(async ($$result, $$props, $$slots) => {
|
|
16031
16069
|
const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
|
|
16032
16070
|
Astro2.self = $$Wildcard;
|
|
@@ -16055,8 +16093,8 @@ const $$module4 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
|
|
|
16055
16093
|
url: $$url$1
|
|
16056
16094
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
16057
16095
|
|
|
16058
|
-
const $$metadata = createMetadata("
|
|
16059
|
-
const $$Astro = createAstro("
|
|
16096
|
+
const $$metadata = createMetadata("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro", { modules: [{ module: $$module1$3, specifier: "../lib/ssr-context", assert: {} }, { module: $$module2$3, specifier: "@cloudcommerce/api", assert: {} }, { module: $$module3$2, specifier: "../lib/layouts/Pages.astro", assert: {} }, { module: $$module4, specifier: "../lib/main/Wildcard.astro", assert: {} }, { module: $$module5, specifier: "../scripts/InlineScripts.astro", assert: {} }], hydratedComponents: [], clientOnlyComponents: [], hydrationDirectives: /* @__PURE__ */ new Set([]), hoisted: [] });
|
|
16097
|
+
const $$Astro = createAstro("/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro", "https://storefront-demo.e-com.plus/", "file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/");
|
|
16060
16098
|
async function getStaticPaths() {
|
|
16061
16099
|
return (await api.get("products?sort=-sales&limit=4&fields=slug")).data.result.map(({ slug }) => ({ params: { slug } }));
|
|
16062
16100
|
}
|
|
@@ -16077,7 +16115,7 @@ const $$ = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
16077
16115
|
loadError = err;
|
|
16078
16116
|
}
|
|
16079
16117
|
return renderTemplate`<html${addAttribute(pageContext?.lang.replace("_", "-"), "lang")}>
|
|
16080
|
-
${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": () => renderTemplate`${renderComponent($$result, "WildcardMain", $$Wildcard, { "pageContext": pageContext })}` })}`}
|
|
16118
|
+
${pageContext && renderTemplate`${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "before-head-end": () => renderTemplate`${renderComponent($$result, "InlineScripts", $$InlineScripts, { "slot": "before-head-end" })}`, "default": () => renderTemplate`${renderComponent($$result, "WildcardMain", $$Wildcard, { "pageContext": pageContext })}` })}`}
|
|
16081
16119
|
${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": () => renderTemplate`${unescapeHTML(loadError.responseHTML)}` })}`}
|
|
16082
16120
|
|
|
16083
16121
|
</html>`;
|
|
@@ -16167,7 +16205,7 @@ function deserializeManifest(serializedManifest) {
|
|
|
16167
16205
|
};
|
|
16168
16206
|
}
|
|
16169
16207
|
|
|
16170
|
-
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.8.1/node_modules/@astrojs/image/dist/endpoint.js","pathname":"/_image","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...d5980663.css"],"scripts":[{"type":"external","value":"hoisted.71b2f749.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/_...d5980663.css"],"scripts":[{"type":"external","value":"hoisted.71b2f749.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":[],"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/account","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","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...d5980663.css"],"scripts":[{"type":"external","value":"hoisted.71b2f749.js"},{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/[...slug]","type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","_meta":{"trailingSlash":"ignore"}}}],"site":"https://storefront-demo.e-com.plus/","base":"/","markdown":{"drafts":false,"syntaxHighlight":"shiki","shikiConfig":{"langs":[],"theme":"github-dark","wrap":false},"remarkPlugins":[],"rehypePlugins":[],"remarkRehype":{},"extendDefaultPlugins":false,"isAstroFlavoredMd":false},"pageMap":null,"renderers":[],"entryModules":{"\u0000@astrojs-ssr-virtual-entry":"entry.mjs","@astrojs/vue/client.js":"client.246ab4a4.js","/astro/hoisted.js?q=0":"hoisted.71b2f749.js","astro:scripts/page.js":"page.3aa82516.js","/@fs/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginDrawer.vue":"LoginDrawer.e69d1c74.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginForm.vue":"chunks/LoginForm.892d64a5.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/.pnpm/workbox-window@6.5.4/node_modules/workbox-window/build/workbox-window.prod.es5.mjs":"chunks/workbox-window.prod.es5.4b654ae6.js","astro:scripts/before-hydration.js":""},"assets":["/assets/_...d5980663.css","/manifest.webmanifest","/registerSW.js","/LoginDrawer.e69d1c74.js","/client.246ab4a4.js","/hoisted.71b2f749.js","/page.3aa82516.js","/robots.txt","/sw.js","/workbox-6f0d1f78.js","/assets/cms-preview.css","/assets/cms.css","/assets/cvv.png","/assets/img-placeholder.png","/assets/payments.png","/assets/ssl-safe.png","/admin/config.json","/chunks/LoginDrawer.0c26574f.js","/chunks/LoginForm.892d64a5.js","/chunks/preload-helper.f15ab524.js","/chunks/runtime-dom.esm-bundler.7f8f570f.js","/chunks/workbox-window.prod.es5.4b654ae6.js","/img/icon.png","/img/large-icon.png","/img/uploads/banner1.png","/img/uploads/banner2.png","/img/uploads/banner2.webp","/img/uploads/favicon.png","/img/uploads/headless.png","/img/uploads/headphone.png","/img/uploads/headphone.webp","/img/uploads/icon.png","/img/uploads/large-icon.png","/img/uploads/logo.png","/img/uploads/logo.webp","/img/uploads/og-image.png","/img/uploads/passion.png","/img/uploads/passion.webp","/img/uploads/pwa-reliable.png","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.png","/img/uploads/rect89.webp","/img/uploads/ssl-safe.png","/assets/icons/bootstrap-icons/font/storefront-icons.woff2","/assets/icons/feather-icons/font/storefront-icons.woff2","/assets/icons/font-awesome/font/storefront-icons.woff2","/assets/icons/line-awesome/font/storefront-icons.woff2","/assets/icons/tabler-icons/font/storefront-icons.woff2","/page.3aa82516.js","/~partytown/partytown-atomics.js","/~partytown/partytown-media.js","/~partytown/partytown-sw.js","/~partytown/partytown.js"]}), {
|
|
16208
|
+
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.8.1/node_modules/@astrojs/image/dist/endpoint.js","pathname":"/_image","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...129504ca.css"],"scripts":[{"type":"external","value":"hoisted.71b2f749.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/_...129504ca.css"],"scripts":[{"type":"external","value":"hoisted.71b2f749.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":[],"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/account","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","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["assets/_...129504ca.css"],"scripts":[{"type":"external","value":"hoisted.71b2f749.js"},{"type":"external","value":"page.3aa82516.js"},{"stage":"head-inline","children":"!(function(w,p,f,c){c=w[p]=Object.assign(w[p]||{},{\"lib\":\"/~partytown/\",\"debug\":false});c[f]=(c[f]||[])})(window,'partytown','forward');/* Partytown 0.4.5 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\"/\"==(a=(o.lib||\"/~partytown/\")+(o.debug?\"debug/\":\"\"))[0]&&(s=e.querySelectorAll('script[type=\"text/partytown\"]'),i!=t?i.dispatchEvent(new CustomEvent(\"pt1\",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener(\"pt0\",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\"partytown-sw.js\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\"statechange\",(function(t){\"activated\"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?\"script\":\"iframe\"),t||(c.setAttribute(\"style\",\"display:block;width:0;height:0;border:0;visibility:hidden\"),c.setAttribute(\"aria-hidden\",!0)),c.src=a+\"partytown-\"+(t?\"atomics.js?v=0.4.5\":\"sandbox-sw.html?\"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement(\"script\")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(\".\").map((function(e,n,i){p=p[i[n]]=n+1<i.length?\"push\"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),\"complete\"==e.readyState?u():(t.addEventListener(\"DOMContentLoaded\",u),t.addEventListener(\"load\",u))}(window,document,navigator,top,window.crossOriginIsolated);"}],"routeData":{"route":"/[...slug]","type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","_meta":{"trailingSlash":"ignore"}}}],"site":"https://storefront-demo.e-com.plus/","base":"/","markdown":{"drafts":false,"syntaxHighlight":"shiki","shikiConfig":{"langs":[],"theme":"github-dark","wrap":false},"remarkPlugins":[],"rehypePlugins":[],"remarkRehype":{},"extendDefaultPlugins":false,"isAstroFlavoredMd":false},"pageMap":null,"renderers":[],"entryModules":{"\u0000@astrojs-ssr-virtual-entry":"entry.mjs","@astrojs/vue/client.js":"client.246ab4a4.js","/astro/hoisted.js?q=0":"hoisted.71b2f749.js","astro:scripts/page.js":"page.3aa82516.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginDrawer.vue":"LoginDrawer.1061c69c.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/components/LoginForm.vue":"chunks/LoginForm.dd3df9d8.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/.pnpm/workbox-window@6.5.4/node_modules/workbox-window/build/workbox-window.prod.es5.mjs":"chunks/workbox-window.prod.es5.4b654ae6.js","astro:scripts/before-hydration.js":""},"assets":["/assets/_...129504ca.css","/manifest.webmanifest","/registerSW.js","/LoginDrawer.1061c69c.js","/client.246ab4a4.js","/hoisted.71b2f749.js","/page.3aa82516.js","/robots.txt","/sw.js","/workbox-6f0d1f78.js","/admin/config.json","/assets/cms-preview.css","/assets/cms.css","/assets/cvv.png","/assets/img-placeholder.png","/assets/payments.png","/assets/ssl-safe.png","/chunks/LoginDrawer.4d10fa17.js","/chunks/LoginForm.dd3df9d8.js","/chunks/preload-helper.f15ab524.js","/chunks/runtime-dom.esm-bundler.7f8f570f.js","/chunks/workbox-window.prod.es5.4b654ae6.js","/img/icon.png","/img/large-icon.png","/img/uploads/banner1.png","/img/uploads/banner2.png","/img/uploads/banner2.webp","/img/uploads/favicon.png","/img/uploads/headless.png","/img/uploads/headphone.png","/img/uploads/headphone.webp","/img/uploads/icon.png","/img/uploads/large-icon.png","/img/uploads/logo.png","/img/uploads/logo.webp","/img/uploads/og-image.png","/img/uploads/passion.png","/img/uploads/passion.webp","/img/uploads/pwa-reliable.png","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.png","/img/uploads/rect89.webp","/img/uploads/ssl-safe.png","/assets/icons/bootstrap-icons/font/storefront-icons.woff2","/assets/icons/feather-icons/font/storefront-icons.woff2","/assets/icons/font-awesome/font/storefront-icons.woff2","/assets/icons/line-awesome/font/storefront-icons.woff2","/assets/icons/tabler-icons/font/storefront-icons.woff2","/page.3aa82516.js","/~partytown/partytown-atomics.js","/~partytown/partytown-media.js","/~partytown/partytown-sw.js","/~partytown/partytown.js"]}), {
|
|
16171
16209
|
pageMap: pageMap,
|
|
16172
16210
|
renderers: renderers
|
|
16173
16211
|
});
|