cloudcommerce 2.0.4 → 2.0.6
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/.github/workflows/test-apps.yml +2 -2
- package/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/action.yml +4 -4
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/ssr/src/assets/style.css +2 -2
- package/ecomplus-stores/barra-doce/functions/ssr/src/components/ProductCard.vue +1 -1
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/package.json +2 -2
- package/packages/api/lib/api.d.ts +8 -2
- package/packages/api/lib/api.js +8 -6
- package/packages/api/lib/api.js.map +1 -1
- package/packages/api/package.json +3 -2
- package/packages/api/src/api.ts +12 -6
- package/packages/api/tests/index.test.ts +9 -0
- package/packages/api/types.d.ts +35 -26
- package/packages/apps/affiliate-program/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/pagarme-v5/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/lib/firebase/functions-checkout/handle-order-transaction.js.map +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/modules/src/firebase/functions-checkout/handle-order-transaction.ts +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/lib/cron-ssr-save-views.js +8 -4
- package/packages/ssr/lib/lib/cron-ssr-save-views.js.map +1 -1
- package/packages/ssr/package.json +2 -2
- package/packages/ssr/src/lib/cron-ssr-save-views.ts +8 -4
- package/packages/storefront/config/storefront.tailwind.cjs +10 -1
- package/packages/storefront/config/storefront.unocss.cjs +1 -1
- package/packages/storefront/dist/client/_astro/AccountPage.oxrx8xO0.js +1 -0
- package/packages/storefront/dist/client/_astro/CartSidebar.ShqcM66P.js +1 -0
- package/packages/storefront/dist/client/_astro/HeroSlider.OYdereCn.js +1 -0
- package/packages/storefront/dist/client/_astro/PitchBar.RVEArMQA.js +1 -0
- package/packages/storefront/dist/client/_astro/Prices.Bsod-tLh.js +1 -0
- package/packages/storefront/dist/client/_astro/ProductDetails.TQM36pzk.js +7 -0
- package/packages/storefront/dist/client/_astro/ProductShelf.HX1P9sTW.js +1 -0
- package/packages/storefront/dist/client/_astro/ProductShelf._0iHMZBO.js +1 -0
- package/packages/storefront/dist/client/_astro/QuantitySelector.SEAsIOhe.js +1 -0
- package/packages/storefront/dist/client/_astro/SearchModal.JVuqMQFe.js +1 -0
- package/packages/storefront/dist/client/_astro/SearchShowcase.zwEq0xsL.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.BoPmUmjI.js +7 -0
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.40kDRyEO.js +1 -0
- package/packages/storefront/dist/client/_astro/{_slug_.cfRx-rdA.css → _slug_.PTG68eA8.css} +1 -1
- package/packages/storefront/dist/client/_astro/client.nPN_zw-c.js +1 -0
- package/packages/storefront/dist/client/_astro/customer-session.yn5lG3w3.js +7 -0
- package/packages/storefront/dist/client/_astro/format-money.ykh8O7d2.js +1 -0
- package/packages/storefront/dist/client/_astro/grid-title.z5ui_5pL.js +1 -0
- package/packages/storefront/dist/client/_astro/hoisted.FcmEawNA.js +1 -0
- package/packages/storefront/dist/client/_astro/hoisted.daSrX1-i.js +1 -0
- package/packages/storefront/dist/client/_astro/hoisted.hpPOAcMM.js +1 -0
- package/packages/storefront/dist/client/_astro/i18n.MycOopxQ.js +1 -0
- package/packages/storefront/dist/client/_astro/img.c2KI4eO6.js +1 -0
- package/packages/storefront/dist/client/_astro/index.8acAQSHW.js +1 -0
- package/packages/storefront/dist/client/_astro/index.NRzvVgQf.js +1 -0
- package/packages/storefront/dist/client/_astro/modules-info.dHD0h8Nc.js +1 -0
- package/packages/storefront/dist/client/_astro/name.itYHl42A.js +1 -0
- package/packages/storefront/dist/client/_astro/runtime-core.esm-bundler.Pr2hdd7G.js +1 -0
- package/packages/storefront/dist/client/_astro/shopping-cart.MgpVRgys.js +1 -0
- package/packages/storefront/dist/client/_astro/use-analytics.D9xd-k7D.js +1 -0
- package/packages/storefront/dist/client/_astro/use-product-card.gKh9czSW.js +1 -0
- package/packages/storefront/dist/client/_astro/use-text-value.ZIz7zsXT.js +4 -0
- package/packages/storefront/dist/server/chunks/{CartSidebar_gCUGFy65.mjs → CartSidebar_8VAKl-jR.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{SearchModal_2uYZ9tHy.mjs → SearchModal_7debttOi.mjs} +5 -5
- package/packages/storefront/dist/server/chunks/{_.._FnNLvTNv.mjs → _.._D6rq0cLa.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{account_iZ2QmK5E.mjs → _page__WXDIwV7g.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{~fallback_wxuqpDXG.mjs → account_DOT2RzND.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/astro/{assets-service_TpUb271h.mjs → assets-service_gJYJeEDH.mjs} +9 -5
- package/packages/storefront/dist/server/chunks/{astro_PpArQAsY.mjs → astro_H-6uiAAG.mjs} +36 -30
- package/packages/storefront/dist/server/chunks/index_eXlHIU83.mjs +6 -0
- package/packages/storefront/dist/server/chunks/{node_wOa5hJmt.mjs → node_-eQO2yOn.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{__cEcxuEWe.mjs → __fI3NeWvy.mjs} +1750 -730
- package/packages/storefront/dist/server/chunks/pages/_page__Piz8geXW.mjs +165 -0
- package/packages/storefront/dist/server/chunks/pages/{account_WliDuQOB.mjs → account_6pD7OYw-.mjs} +6 -3
- package/packages/storefront/dist/server/chunks/pages/index_2F5yi6YO.mjs +128 -0
- package/packages/storefront/dist/server/chunks/pages/{node_ZaY4t9qW.mjs → node_-Buhxl8v.mjs} +3 -3
- package/packages/storefront/dist/server/chunks/pages/{~fallback_TL5hPXF_.mjs → ~fallback_okEL1qQ3.mjs} +25 -8
- package/packages/storefront/dist/server/chunks/~fallback_M-xiy2GE.mjs +6 -0
- package/packages/storefront/dist/server/entry.mjs +34 -29
- package/packages/storefront/dist/server/manifest_oV2meNKS.mjs +196 -0
- package/packages/storefront/dist/server/renderers.mjs +5 -612
- package/packages/storefront/package.json +3 -3
- package/packages/storefront/src/lib/components/globals/ALink.vue +1 -0
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/AccountPage.Osc6ffV0.js +0 -1
- package/packages/storefront/dist/client/_astro/CartSidebar.LrfpXG2B.js +0 -1
- package/packages/storefront/dist/client/_astro/HeroSlider.Zf6kCaqD.js +0 -1
- package/packages/storefront/dist/client/_astro/PitchBar.N4d9fV8H.js +0 -1
- package/packages/storefront/dist/client/_astro/Prices.eQ9Vd255.js +0 -1
- package/packages/storefront/dist/client/_astro/ProductDetails.Ln_jf57U.js +0 -7
- package/packages/storefront/dist/client/_astro/ProductShelf.X389bv9S.js +0 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.vj6lVDCr.js +0 -1
- package/packages/storefront/dist/client/_astro/QuantitySelector.qSJQlvTe.js +0 -1
- package/packages/storefront/dist/client/_astro/SearchModal.BrVoDBvg.js +0 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.KAz3nwco.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.mFKGzhIu.js +0 -7
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper._suIQ7WC.js +0 -1
- package/packages/storefront/dist/client/_astro/client.PdegUP6S.js +0 -1
- package/packages/storefront/dist/client/_astro/customer-session.KkTHFOXl.js +0 -7
- package/packages/storefront/dist/client/_astro/ecom-icon_12falx.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_15pqnO.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-icon_t3guw.png +0 -0
- package/packages/storefront/dist/client/_astro/ecom-utils.Ld2zf-Ve.js +0 -1
- package/packages/storefront/dist/client/_astro/format-money.Axn0YFLJ.js +0 -1
- package/packages/storefront/dist/client/_astro/grid-title.GntHOijE.js +0 -1
- package/packages/storefront/dist/client/_astro/headphone_T2Jjc.avif +0 -0
- package/packages/storefront/dist/client/_astro/headphone_Z1CG18r.webp +0 -0
- package/packages/storefront/dist/client/_astro/hoisted.3ec9NcvP.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.UnTlypMd.js +0 -1
- package/packages/storefront/dist/client/_astro/i18n.3-NUtxYq.js +0 -1
- package/packages/storefront/dist/client/_astro/img.pozlYdd3.js +0 -1
- package/packages/storefront/dist/client/_astro/index.TkCbiY_p.js +0 -1
- package/packages/storefront/dist/client/_astro/index.m6fK0JXC.js +0 -1
- package/packages/storefront/dist/client/_astro/logo_1UBsBq.webp +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1K5PE9.png +0 -0
- package/packages/storefront/dist/client/_astro/logo_Z1KIIl1.avif +0 -0
- package/packages/storefront/dist/client/_astro/modules-info.mmwB1qIJ.js +0 -1
- package/packages/storefront/dist/client/_astro/name.49dZlpDx.js +0 -1
- package/packages/storefront/dist/client/_astro/passion_LHbe9.webp +0 -0
- package/packages/storefront/dist/client/_astro/passion_Z23MeUb.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1TtOHY.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_1f5opX.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_IUskt.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Uxfdf.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z15uApA.png +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1Ap1Im.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_Z1JT1HB.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_ZY9mtN.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect8589_tMFW0.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_1TgQXS.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_2Nm1z.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_DIqwR.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z1IKDb2.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z29FI4V.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_Z2kFHGk.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect859_ZkpPFI.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect859_jXzBi.png +0 -0
- package/packages/storefront/dist/client/_astro/rect859_x1l16.webp +0 -0
- package/packages/storefront/dist/client/_astro/rect89_1TSfW7.avif +0 -0
- package/packages/storefront/dist/client/_astro/rect89_Z1re32x.webp +0 -0
- package/packages/storefront/dist/client/_astro/shopping-cart.Ean2uW2R.js +0 -1
- package/packages/storefront/dist/client/_astro/use-analytics.Y7amTmnr.js +0 -1
- package/packages/storefront/dist/client/_astro/use-product-card.zB4z32bC.js +0 -1
- package/packages/storefront/dist/client/_astro/use-text-value.f9pDzruv.js +0 -4
- package/packages/storefront/dist/client/app/account/index.html +0 -56
- package/packages/storefront/dist/client/app/index.html +0 -96
- package/packages/storefront/dist/client/headset-gamer-corsair-hs40-raptor-ca-9011122-naap-vinho/index.html +0 -107
- package/packages/storefront/dist/client/index.html +0 -120
- package/packages/storefront/dist/client/macbook-apple-pro-15.4-intel-core-i7-2.6ghz-ram-16gb-ssd-512gb-mr972ll/a-prata/index.html +0 -107
- package/packages/storefront/dist/client/mouse-gamer-corsair-optico-harpoon-rgb-ch-9301011-na/index.html +0 -107
- package/packages/storefront/dist/client/teclado-gamer-fortrek-mecanico-k5-rgb-outemu-blue-preto/index.html +0 -107
- package/packages/storefront/dist/client/~fallback/index.html +0 -74
- package/packages/storefront/dist/server/chunks/index_1q5IpD39.mjs +0 -6
- package/packages/storefront/dist/server/chunks/index_JEU6B2DI.mjs +0 -6
- package/packages/storefront/dist/server/chunks/pages/index_2bQLkQf-.mjs +0 -317
- package/packages/storefront/dist/server/manifest_YgAgEwvF.mjs +0 -196
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate, m as maybeRenderHead, i as renderComponent, h as addAttribute, u as unescapeHTML, F as Fragment$1 } from '../astro_PpArQAsY.mjs';
|
|
2
|
-
import 'kleur/colors';
|
|
3
|
-
import { _ as _export_sfc, B as Banner, u as usePageHero, c as $$BannerPictures, d as $$Sections, l as loadRouteContext, $ as $$BaseHead, e as $$PageHeader, f as $$PageFooter, b as $$Base, F as FooterStamps, a as $$Picture } from './__cEcxuEWe.mjs';
|
|
4
|
-
import 'clsx';
|
|
5
|
-
import { useSSRContext, defineComponent, ref, onMounted, resolveComponent, mergeProps, withCtx, createVNode, withDirectives, vShow, renderSlot, openBlock, createBlock, Fragment, renderList, createTextVNode, toDisplayString } from 'vue';
|
|
6
|
-
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderStyle, ssrRenderClass, ssrRenderList, ssrRenderSlot, ssrInterpolate } from 'vue/server-renderer';
|
|
7
|
-
|
|
8
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "HeroSlider",
|
|
10
|
-
props: {
|
|
11
|
-
autoplay: {},
|
|
12
|
-
slides: {}
|
|
13
|
-
},
|
|
14
|
-
setup(__props, { expose: __expose }) {
|
|
15
|
-
__expose();
|
|
16
|
-
const isMounted = ref(false);
|
|
17
|
-
onMounted(() => {
|
|
18
|
-
isMounted.value = true;
|
|
19
|
-
});
|
|
20
|
-
const __returned__ = { isMounted, Banner };
|
|
21
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
22
|
-
return __returned__;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
function _sfc_ssrRender$1(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
26
|
-
const _component_Carousel = resolveComponent("Carousel");
|
|
27
|
-
const _component_CarouselControl = resolveComponent("CarouselControl");
|
|
28
|
-
_push(`<section${ssrRenderAttrs(mergeProps({ class: "relative mx-auto mb-9 md:mb-12" }, _attrs))}>`);
|
|
29
|
-
_push(ssrRenderComponent(_component_Carousel, {
|
|
30
|
-
autoplay: $props.autoplay,
|
|
31
|
-
class: "secondary [&>*]:items-center"
|
|
32
|
-
}, {
|
|
33
|
-
controls: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
34
|
-
if (_push2) {
|
|
35
|
-
_push2(`<div style="${ssrRenderStyle($props.slides.length > 1 ? null : { display: "none" })}" class="absolute bottom-5 right-5 z-10 flex w-screen items-center justify-end xl:left-1/2 xl:right-auto xl:-ms-[640px] xl:max-w-screen-xl"${_scopeId}><div class="${ssrRenderClass([$setup.isMounted ? "opacity-100" : "opacity-20 [&>*]:cursor-wait", "text-primary relative h-10 w-20 rounded-full bg-white/50 shadow-sm ring-1 ring-black/5 transition-opacity"])}"${_scopeId}>`);
|
|
36
|
-
_push2(ssrRenderComponent(_component_CarouselControl, {
|
|
37
|
-
class: "hover:bg-primary/10 h-10 w-10 rounded-full",
|
|
38
|
-
"is-prev": ""
|
|
39
|
-
}, {
|
|
40
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
41
|
-
if (_push3) {
|
|
42
|
-
_push3(`<i class="i-arrow-right rotate-180"${_scopeId2}></i>`);
|
|
43
|
-
} else {
|
|
44
|
-
return [
|
|
45
|
-
createVNode("i", { class: "i-arrow-right rotate-180" })
|
|
46
|
-
];
|
|
47
|
-
}
|
|
48
|
-
}),
|
|
49
|
-
_: 1
|
|
50
|
-
}, _parent2, _scopeId));
|
|
51
|
-
_push2(ssrRenderComponent(_component_CarouselControl, { class: "hover:bg-primary/10 h-10 w-10 rounded-full" }, {
|
|
52
|
-
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
53
|
-
if (_push3) {
|
|
54
|
-
_push3(`<i class="i-arrow-right"${_scopeId2}></i>`);
|
|
55
|
-
} else {
|
|
56
|
-
return [
|
|
57
|
-
createVNode("i", { class: "i-arrow-right" })
|
|
58
|
-
];
|
|
59
|
-
}
|
|
60
|
-
}),
|
|
61
|
-
_: 1
|
|
62
|
-
}, _parent2, _scopeId));
|
|
63
|
-
_push2(`</div></div>`);
|
|
64
|
-
} else {
|
|
65
|
-
return [
|
|
66
|
-
withDirectives(createVNode("div", { class: "absolute bottom-5 right-5 z-10 flex w-screen items-center justify-end xl:left-1/2 xl:right-auto xl:-ms-[640px] xl:max-w-screen-xl" }, [
|
|
67
|
-
createVNode("div", {
|
|
68
|
-
class: ["text-primary relative h-10 w-20 rounded-full bg-white/50 shadow-sm ring-1 ring-black/5 transition-opacity", $setup.isMounted ? "opacity-100" : "opacity-20 [&>*]:cursor-wait"]
|
|
69
|
-
}, [
|
|
70
|
-
createVNode(_component_CarouselControl, {
|
|
71
|
-
class: "hover:bg-primary/10 h-10 w-10 rounded-full",
|
|
72
|
-
"is-prev": ""
|
|
73
|
-
}, {
|
|
74
|
-
default: withCtx(() => [
|
|
75
|
-
createVNode("i", { class: "i-arrow-right rotate-180" })
|
|
76
|
-
]),
|
|
77
|
-
_: 1
|
|
78
|
-
}),
|
|
79
|
-
createVNode(_component_CarouselControl, { class: "hover:bg-primary/10 h-10 w-10 rounded-full" }, {
|
|
80
|
-
default: withCtx(() => [
|
|
81
|
-
createVNode("i", { class: "i-arrow-right" })
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
})
|
|
85
|
-
], 2)
|
|
86
|
-
], 512), [
|
|
87
|
-
[vShow, $props.slides.length > 1]
|
|
88
|
-
])
|
|
89
|
-
];
|
|
90
|
-
}
|
|
91
|
-
}),
|
|
92
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
93
|
-
if (_push2) {
|
|
94
|
-
_push2(`<!--[-->`);
|
|
95
|
-
ssrRenderList($props.slides, (slide, i) => {
|
|
96
|
-
_push2(`<li class="shrink-0 basis-full"${_scopeId}>`);
|
|
97
|
-
_push2(ssrRenderComponent($setup["Banner"], mergeProps({ ...slide, headingTag: i === 0 ? "h2" : "h3" }, { class: "w-screen max-w-screen-2xl" }), {
|
|
98
|
-
picture: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
99
|
-
if (_push3) {
|
|
100
|
-
ssrRenderSlot(_ctx.$slots, `picture-${i}`, {}, null, _push3, _parent3, _scopeId2);
|
|
101
|
-
} else {
|
|
102
|
-
return [
|
|
103
|
-
renderSlot(_ctx.$slots, `picture-${i}`)
|
|
104
|
-
];
|
|
105
|
-
}
|
|
106
|
-
}),
|
|
107
|
-
_: 2
|
|
108
|
-
}, _parent2, _scopeId));
|
|
109
|
-
_push2(`</li>`);
|
|
110
|
-
});
|
|
111
|
-
_push2(`<!--]-->`);
|
|
112
|
-
} else {
|
|
113
|
-
return [
|
|
114
|
-
(openBlock(true), createBlock(Fragment, null, renderList($props.slides, (slide, i) => {
|
|
115
|
-
return openBlock(), createBlock("li", {
|
|
116
|
-
key: i,
|
|
117
|
-
class: "shrink-0 basis-full"
|
|
118
|
-
}, [
|
|
119
|
-
createVNode($setup["Banner"], mergeProps({ ...slide, headingTag: i === 0 ? "h2" : "h3" }, { class: "w-screen max-w-screen-2xl" }), {
|
|
120
|
-
picture: withCtx(() => [
|
|
121
|
-
renderSlot(_ctx.$slots, `picture-${i}`)
|
|
122
|
-
]),
|
|
123
|
-
_: 2
|
|
124
|
-
}, 1040)
|
|
125
|
-
]);
|
|
126
|
-
}), 128))
|
|
127
|
-
];
|
|
128
|
-
}
|
|
129
|
-
}),
|
|
130
|
-
_: 3
|
|
131
|
-
}, _parent));
|
|
132
|
-
_push(`</section>`);
|
|
133
|
-
}
|
|
134
|
-
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
135
|
-
_sfc_main$1.setup = (props, ctx) => {
|
|
136
|
-
const ssrContext = useSSRContext();
|
|
137
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/HeroSlider.vue");
|
|
138
|
-
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
139
|
-
};
|
|
140
|
-
const HeroSlider = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["ssrRender", _sfc_ssrRender$1]]);
|
|
141
|
-
|
|
142
|
-
const $$Astro$2 = createAstro("https://demo.ecomplus.app");
|
|
143
|
-
const $$Home = createComponent(async ($$result, $$props, $$slots) => {
|
|
144
|
-
const Astro2 = $$result.createAstro($$Astro$2, $$props, $$slots);
|
|
145
|
-
Astro2.self = $$Home;
|
|
146
|
-
const { routeContext } = Astro2.locals;
|
|
147
|
-
const { heroSlider } = await usePageHero({ routeContext });
|
|
148
|
-
const heroSlides = heroSlider.slides;
|
|
149
|
-
return renderTemplate`${maybeRenderHead()}<main>
|
|
150
|
-
${heroSlider.slides.length && renderTemplate`${renderComponent($$result, "HeroSlider", HeroSlider, { ...heroSlider, "client:idle": true, "client:component-hydration": "idle", "client:component-path": "~/components/HeroSlider.vue", "client:component-export": "default" }, { "picture-0": ($$result2) => renderTemplate`${heroSlides[0] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-0", ...heroSlides[0], "index": 0 })}`}`, "picture-1": ($$result2) => renderTemplate`${heroSlides[1] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-1", ...heroSlides[1], "index": 1 })}`}`, "picture-2": ($$result2) => renderTemplate`${heroSlides[2] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-2", ...heroSlides[2], "index": 2 })}`}`, "picture-3": ($$result2) => renderTemplate`${heroSlides[3] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-3", ...heroSlides[3], "index": 3 })}`}`, "picture-4": ($$result2) => renderTemplate`${heroSlides[4] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-4", ...heroSlides[4], "index": 4 })}`}`, "picture-5": ($$result2) => renderTemplate`${heroSlides[5] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-5", ...heroSlides[5], "index": 5 })}`}`, "picture-6": ($$result2) => renderTemplate`${heroSlides[6] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-6", ...heroSlides[6], "index": 6 })}`}`, "picture-7": ($$result2) => renderTemplate`${heroSlides[7] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-7", ...heroSlides[7], "index": 7 })}`}`, "picture-8": ($$result2) => renderTemplate`${heroSlides[8] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-8", ...heroSlides[8], "index": 8 })}`}`, "picture-9": ($$result2) => renderTemplate`${heroSlides[9] && renderTemplate`${renderComponent($$result2, "BannerPictures", $$BannerPictures, { "slot": "picture-9", ...heroSlides[9], "index": 9 })}`}` })}`}
|
|
151
|
-
${renderComponent($$result, "Sections", $$Sections, {})}
|
|
152
|
-
</main>`;
|
|
153
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Home.astro", void 0);
|
|
154
|
-
|
|
155
|
-
const $$Astro$1 = createAstro("https://demo.ecomplus.app");
|
|
156
|
-
const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
157
|
-
const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
|
|
158
|
-
Astro2.self = $$Index$1;
|
|
159
|
-
let routeContext;
|
|
160
|
-
let loadError;
|
|
161
|
-
try {
|
|
162
|
-
routeContext = await loadRouteContext(Astro2);
|
|
163
|
-
} catch (err) {
|
|
164
|
-
if (err.astroResponse) {
|
|
165
|
-
return err.astroResponse;
|
|
166
|
-
}
|
|
167
|
-
loadError = err;
|
|
168
|
-
}
|
|
169
|
-
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}>
|
|
170
|
-
${routeContext && renderTemplate`${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "BaseHead", $$BaseHead, { "slot": "base-head" })}`, "default": ($$result2) => renderTemplate`
|
|
171
|
-
|
|
172
|
-
${renderComponent($$result2, "PageHeader", $$PageHeader, {})}
|
|
173
|
-
${renderComponent($$result2, "HomeMain", $$Home, {})}
|
|
174
|
-
${renderComponent($$result2, "PageFooter", $$PageFooter, {})}
|
|
175
|
-
` })}`}
|
|
176
|
-
${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment$1, {}, { "default": ($$result2) => renderTemplate`${unescapeHTML(loadError.responseHTML)}` })}`}
|
|
177
|
-
</html>`;
|
|
178
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", void 0);
|
|
179
|
-
|
|
180
|
-
const $$file$1 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro";
|
|
181
|
-
const $$url$1 = "";
|
|
182
|
-
|
|
183
|
-
const index$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
184
|
-
__proto__: null,
|
|
185
|
-
default: $$Index$1,
|
|
186
|
-
file: $$file$1,
|
|
187
|
-
url: $$url$1
|
|
188
|
-
}, Symbol.toStringTag, { value: 'Module' }));
|
|
189
|
-
|
|
190
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
191
|
-
__name: "CheckoutPage",
|
|
192
|
-
props: {
|
|
193
|
-
footerStamps: {}
|
|
194
|
-
},
|
|
195
|
-
setup(__props, { expose: __expose }) {
|
|
196
|
-
__expose();
|
|
197
|
-
const __returned__ = { FooterStamps };
|
|
198
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
199
|
-
return __returned__;
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
203
|
-
const _component_ALink = resolveComponent("ALink");
|
|
204
|
-
_push(`<article${ssrRenderAttrs(mergeProps({ class: "flex min-h-screen flex-col justify-end" }, _attrs))}><section class="bg-base-50"><div class="ui-section flex flex-wrap items-center justify-center gap-6 lg:gap-12"><a href="/">`);
|
|
205
|
-
ssrRenderSlot(_ctx.$slots, "logo", {}, null, _push, _parent);
|
|
206
|
-
_push(`</a><div class="flex items-center gap-2"><i class="i-shield-check-solid bg-success-400 m-0 text-3xl"></i><span class="text-base-600 text-base">${ssrInterpolate("Compra segura")}</span></div></div></section><section class="grow"><article id="storefront-app"></article></section><section class="bg-base-50 mt-4 lg:mt-8"><nav class="ui-section-slim"><ul class="mt-6 flex flex-wrap justify-center gap-6 lg:gap-8"><!--[-->`);
|
|
207
|
-
ssrRenderList(_ctx.$settings.serviceLinks, ({ title, href }, i) => {
|
|
208
|
-
_push(`<li>`);
|
|
209
|
-
_push(ssrRenderComponent(_component_ALink, {
|
|
210
|
-
href,
|
|
211
|
-
target: "blank",
|
|
212
|
-
class: "ui-link text-base-700"
|
|
213
|
-
}, {
|
|
214
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
215
|
-
if (_push2) {
|
|
216
|
-
_push2(`${ssrInterpolate(title)} <i class="bg-base-300 i-arrow-top-right-on-square ml-0.5"${_scopeId}></i>`);
|
|
217
|
-
} else {
|
|
218
|
-
return [
|
|
219
|
-
createTextVNode(toDisplayString(title) + " ", 1),
|
|
220
|
-
createVNode("i", { class: "bg-base-300 i-arrow-top-right-on-square ml-0.5" })
|
|
221
|
-
];
|
|
222
|
-
}
|
|
223
|
-
}),
|
|
224
|
-
_: 2
|
|
225
|
-
}, _parent));
|
|
226
|
-
_push(`</li>`);
|
|
227
|
-
});
|
|
228
|
-
_push(`<!--]--></ul></nav>`);
|
|
229
|
-
_push(ssrRenderComponent($setup["FooterStamps"], { stamps: $props.footerStamps }, null, _parent));
|
|
230
|
-
_push(`</section></article>`);
|
|
231
|
-
}
|
|
232
|
-
const _sfc_setup = _sfc_main.setup;
|
|
233
|
-
_sfc_main.setup = (props, ctx) => {
|
|
234
|
-
const ssrContext = useSSRContext();
|
|
235
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/CheckoutPage.vue");
|
|
236
|
-
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
237
|
-
};
|
|
238
|
-
const CheckoutPage = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
239
|
-
|
|
240
|
-
const $$Astro = createAstro("https://demo.ecomplus.app");
|
|
241
|
-
const $$Index = createComponent(async ($$result, $$props, $$slots) => {
|
|
242
|
-
const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
|
|
243
|
-
Astro2.self = $$Index;
|
|
244
|
-
let routeContext;
|
|
245
|
-
try {
|
|
246
|
-
routeContext = await loadRouteContext(Astro2);
|
|
247
|
-
} catch (err) {
|
|
248
|
-
return err.astroResponse;
|
|
249
|
-
}
|
|
250
|
-
const { settings, getContent } = routeContext;
|
|
251
|
-
const layoutContent = await getContent("layout");
|
|
252
|
-
const { footer: { stamps } } = layoutContent;
|
|
253
|
-
return renderTemplate`<html${addAttribute(routeContext.lang.replace("_", "-"), "lang")}>
|
|
254
|
-
${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "Fragment", Fragment$1, { "slot": "base-head" }, { "default": ($$result3) => renderTemplate`
|
|
255
|
-
${renderComponent($$result3, "BaseHead", $$BaseHead, {})}
|
|
256
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-twbs@7/dist/cdn/storefront-twbs.min.css">
|
|
257
|
-
<style>
|
|
258
|
-
body {
|
|
259
|
-
--primary: var(--c-primary);
|
|
260
|
-
--primary-yiq: var(--c-on-primary);
|
|
261
|
-
--primary-rgb: var(--rgb-primary);
|
|
262
|
-
--primary-darken: var(--c-primary);
|
|
263
|
-
--primary-darken-yiq: var(--c-on-primary);
|
|
264
|
-
--primary-darken-rgb: var(--rgb-primary);
|
|
265
|
-
--primary-dark: var(--c-primary-bold);
|
|
266
|
-
--primary-dark-yiq: var(--c-on-primary-bold);
|
|
267
|
-
--primary-dark-rgb: var(--rgb-primary-bold);
|
|
268
|
-
--primary-darker: var(--c-primary-bold);
|
|
269
|
-
--primary-darker-yiq: var(--c-on-primary-bold);
|
|
270
|
-
--primary-darker-rgb: var(--rgb-primary-bold);
|
|
271
|
-
--primary-darkest: rgb(var(--rgb-primary-900));
|
|
272
|
-
--primary-darkest-yiq: var(--c-on-dark);
|
|
273
|
-
--primary-darkest-rgb: var(--rgb-primary-900);
|
|
274
|
-
--primary-black: rgb(var(--rgb-primary-950));
|
|
275
|
-
--primary-lighten: var(--c-primary);
|
|
276
|
-
--primary-lighten-yiq: var(--c-on-primary);
|
|
277
|
-
--primary-lighten-rgb: var(--rgb-primary);
|
|
278
|
-
--primary-light: var(--c-primary-subtle);
|
|
279
|
-
--primary-light-yiq: var(--c-on-primary-subtle);
|
|
280
|
-
--primary-light-rgb: var(--rgb-primary-subtle);
|
|
281
|
-
--primary-lighter: var(--c-primary-subtle);
|
|
282
|
-
--primary-lighter-yiq: var(--c-on-primary-subtle);
|
|
283
|
-
--primary-lighter-rgb: var(--rgb-primary-subtle);
|
|
284
|
-
--primary-lightest: rgb(var(--rgb-primary-200));
|
|
285
|
-
--primary-lightest-yiq: var(--c-on-light);
|
|
286
|
-
--primary-lightest-rgb: var(--rgb-primary-200);
|
|
287
|
-
}
|
|
288
|
-
#storefront-app .lead {
|
|
289
|
-
margin-bottom: 1.25rem;
|
|
290
|
-
}
|
|
291
|
-
#storefront-app hr {
|
|
292
|
-
margin-top: 1rem;
|
|
293
|
-
margin-bottom: 1rem;
|
|
294
|
-
}
|
|
295
|
-
#storefront-app p {
|
|
296
|
-
margin-bottom: 1rem;
|
|
297
|
-
}
|
|
298
|
-
</style>
|
|
299
|
-
` })}`, "default": ($$result2) => renderTemplate`
|
|
300
|
-
|
|
301
|
-
${renderComponent($$result2, "CheckoutPage", CheckoutPage, { "footerStamps": stamps }, { "logo": ($$result3) => renderTemplate`${renderComponent($$result3, "Picture", $$Picture, { "slot": "logo", "src": settings.logo, "alt": settings.name, "widths": [300], "loading": "lazy", "class": "max-w-[150px]" })}` })}
|
|
302
|
-
|
|
303
|
-
` })}
|
|
304
|
-
</html>`;
|
|
305
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro", void 0);
|
|
306
|
-
|
|
307
|
-
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro";
|
|
308
|
-
const $$url = "/app";
|
|
309
|
-
|
|
310
|
-
const index = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
311
|
-
__proto__: null,
|
|
312
|
-
default: $$Index,
|
|
313
|
-
file: $$file,
|
|
314
|
-
url: $$url
|
|
315
|
-
}, Symbol.toStringTag, { value: 'Module' }));
|
|
316
|
-
|
|
317
|
-
export { index as a, index$1 as i };
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import '@astrojs/internal-helpers/path';
|
|
2
|
-
import 'cookie';
|
|
3
|
-
import { bold, red, yellow, dim, blue } from 'kleur/colors';
|
|
4
|
-
import 'string-width';
|
|
5
|
-
import './chunks/astro_PpArQAsY.mjs';
|
|
6
|
-
import 'clsx';
|
|
7
|
-
import { compile } from 'path-to-regexp';
|
|
8
|
-
|
|
9
|
-
const dateTimeFormat = new Intl.DateTimeFormat([], {
|
|
10
|
-
hour: "2-digit",
|
|
11
|
-
minute: "2-digit",
|
|
12
|
-
second: "2-digit",
|
|
13
|
-
hour12: false
|
|
14
|
-
});
|
|
15
|
-
const levels = {
|
|
16
|
-
debug: 20,
|
|
17
|
-
info: 30,
|
|
18
|
-
warn: 40,
|
|
19
|
-
error: 50,
|
|
20
|
-
silent: 90
|
|
21
|
-
};
|
|
22
|
-
function log(opts, level, label, message, newLine = true) {
|
|
23
|
-
const logLevel = opts.level;
|
|
24
|
-
const dest = opts.dest;
|
|
25
|
-
const event = {
|
|
26
|
-
label,
|
|
27
|
-
level,
|
|
28
|
-
message,
|
|
29
|
-
newLine
|
|
30
|
-
};
|
|
31
|
-
if (!isLogLevelEnabled(logLevel, level)) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
dest.write(event);
|
|
35
|
-
}
|
|
36
|
-
function isLogLevelEnabled(configuredLogLevel, level) {
|
|
37
|
-
return levels[configuredLogLevel] <= levels[level];
|
|
38
|
-
}
|
|
39
|
-
function info(opts, label, message, newLine = true) {
|
|
40
|
-
return log(opts, "info", label, message, newLine);
|
|
41
|
-
}
|
|
42
|
-
function warn(opts, label, message, newLine = true) {
|
|
43
|
-
return log(opts, "warn", label, message, newLine);
|
|
44
|
-
}
|
|
45
|
-
function error(opts, label, message, newLine = true) {
|
|
46
|
-
return log(opts, "error", label, message, newLine);
|
|
47
|
-
}
|
|
48
|
-
function debug(...args) {
|
|
49
|
-
if ("_astroGlobalDebug" in globalThis) {
|
|
50
|
-
globalThis._astroGlobalDebug(...args);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function getEventPrefix({ level, label }) {
|
|
54
|
-
const timestamp = `${dateTimeFormat.format(/* @__PURE__ */ new Date())}`;
|
|
55
|
-
const prefix = [];
|
|
56
|
-
if (level === "error" || level === "warn") {
|
|
57
|
-
prefix.push(bold(timestamp));
|
|
58
|
-
prefix.push(`[${level.toUpperCase()}]`);
|
|
59
|
-
} else {
|
|
60
|
-
prefix.push(timestamp);
|
|
61
|
-
}
|
|
62
|
-
if (label) {
|
|
63
|
-
prefix.push(`[${label}]`);
|
|
64
|
-
}
|
|
65
|
-
if (level === "error") {
|
|
66
|
-
return red(prefix.join(" "));
|
|
67
|
-
}
|
|
68
|
-
if (level === "warn") {
|
|
69
|
-
return yellow(prefix.join(" "));
|
|
70
|
-
}
|
|
71
|
-
if (prefix.length === 1) {
|
|
72
|
-
return dim(prefix[0]);
|
|
73
|
-
}
|
|
74
|
-
return dim(prefix[0]) + " " + blue(prefix.splice(1).join(" "));
|
|
75
|
-
}
|
|
76
|
-
if (typeof process !== "undefined") {
|
|
77
|
-
let proc = process;
|
|
78
|
-
if ("argv" in proc && Array.isArray(proc.argv)) {
|
|
79
|
-
if (proc.argv.includes("--verbose")) ; else if (proc.argv.includes("--silent")) ; else ;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
class Logger {
|
|
83
|
-
options;
|
|
84
|
-
constructor(options) {
|
|
85
|
-
this.options = options;
|
|
86
|
-
}
|
|
87
|
-
info(label, message, newLine = true) {
|
|
88
|
-
info(this.options, label, message, newLine);
|
|
89
|
-
}
|
|
90
|
-
warn(label, message, newLine = true) {
|
|
91
|
-
warn(this.options, label, message, newLine);
|
|
92
|
-
}
|
|
93
|
-
error(label, message, newLine = true) {
|
|
94
|
-
error(this.options, label, message, newLine);
|
|
95
|
-
}
|
|
96
|
-
debug(label, ...messages) {
|
|
97
|
-
debug(label, ...messages);
|
|
98
|
-
}
|
|
99
|
-
level() {
|
|
100
|
-
return this.options.level;
|
|
101
|
-
}
|
|
102
|
-
forkIntegrationLogger(label) {
|
|
103
|
-
return new AstroIntegrationLogger(this.options, label);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
class AstroIntegrationLogger {
|
|
107
|
-
options;
|
|
108
|
-
label;
|
|
109
|
-
constructor(logging, label) {
|
|
110
|
-
this.options = logging;
|
|
111
|
-
this.label = label;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Creates a new logger instance with a new label, but the same log options.
|
|
115
|
-
*/
|
|
116
|
-
fork(label) {
|
|
117
|
-
return new AstroIntegrationLogger(this.options, label);
|
|
118
|
-
}
|
|
119
|
-
info(message) {
|
|
120
|
-
info(this.options, this.label, message);
|
|
121
|
-
}
|
|
122
|
-
warn(message) {
|
|
123
|
-
warn(this.options, this.label, message);
|
|
124
|
-
}
|
|
125
|
-
error(message) {
|
|
126
|
-
error(this.options, this.label, message);
|
|
127
|
-
}
|
|
128
|
-
debug(message) {
|
|
129
|
-
debug(this.label, message);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function getRouteGenerator(segments, addTrailingSlash) {
|
|
134
|
-
const template = segments.map((segment) => {
|
|
135
|
-
return "/" + segment.map((part) => {
|
|
136
|
-
if (part.spread) {
|
|
137
|
-
return `:${part.content.slice(3)}(.*)?`;
|
|
138
|
-
} else if (part.dynamic) {
|
|
139
|
-
return `:${part.content}`;
|
|
140
|
-
} else {
|
|
141
|
-
return part.content.normalize().replace(/\?/g, "%3F").replace(/#/g, "%23").replace(/%5B/g, "[").replace(/%5D/g, "]").replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
142
|
-
}
|
|
143
|
-
}).join("");
|
|
144
|
-
}).join("");
|
|
145
|
-
let trailing = "";
|
|
146
|
-
if (addTrailingSlash === "always" && segments.length) {
|
|
147
|
-
trailing = "/";
|
|
148
|
-
}
|
|
149
|
-
const toPath = compile(template + trailing);
|
|
150
|
-
return toPath;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function deserializeRouteData(rawRouteData) {
|
|
154
|
-
return {
|
|
155
|
-
route: rawRouteData.route,
|
|
156
|
-
type: rawRouteData.type,
|
|
157
|
-
pattern: new RegExp(rawRouteData.pattern),
|
|
158
|
-
params: rawRouteData.params,
|
|
159
|
-
component: rawRouteData.component,
|
|
160
|
-
generate: getRouteGenerator(rawRouteData.segments, rawRouteData._meta.trailingSlash),
|
|
161
|
-
pathname: rawRouteData.pathname || void 0,
|
|
162
|
-
segments: rawRouteData.segments,
|
|
163
|
-
prerender: rawRouteData.prerender,
|
|
164
|
-
redirect: rawRouteData.redirect,
|
|
165
|
-
redirectRoute: rawRouteData.redirectRoute ? deserializeRouteData(rawRouteData.redirectRoute) : void 0,
|
|
166
|
-
fallbackRoutes: rawRouteData.fallbackRoutes.map((fallback) => {
|
|
167
|
-
return deserializeRouteData(fallback);
|
|
168
|
-
})
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
function deserializeManifest(serializedManifest) {
|
|
173
|
-
const routes = [];
|
|
174
|
-
for (const serializedRoute of serializedManifest.routes) {
|
|
175
|
-
routes.push({
|
|
176
|
-
...serializedRoute,
|
|
177
|
-
routeData: deserializeRouteData(serializedRoute.routeData)
|
|
178
|
-
});
|
|
179
|
-
const route = serializedRoute;
|
|
180
|
-
route.routeData = deserializeRouteData(serializedRoute.routeData);
|
|
181
|
-
}
|
|
182
|
-
const assets = new Set(serializedManifest.assets);
|
|
183
|
-
const componentMetadata = new Map(serializedManifest.componentMetadata);
|
|
184
|
-
const clientDirectives = new Map(serializedManifest.clientDirectives);
|
|
185
|
-
return {
|
|
186
|
-
...serializedManifest,
|
|
187
|
-
assets,
|
|
188
|
-
componentMetadata,
|
|
189
|
-
clientDirectives,
|
|
190
|
-
routes
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
const manifest = deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":[],"scripts":[],"styles":[],"routeData":{"type":"endpoint","route":"/_image","pattern":"^\\/_image$","segments":[[{"content":"_image","dynamic":false,"spread":false}]],"params":[],"component":"../../node_modules/.pnpm/astro@4.0.7_@types+node@18.19.3_typescript@5.2.2/node_modules/astro/dist/assets/endpoint/node.js","pathname":"/_image","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.3ec9NcvP.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.cfRx-rdA.css"}],"routeData":{"route":"/","type":"page","pattern":"^\\/$","segments":[],"params":[],"component":"src/pages/index.astro","pathname":"/","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.3ec9NcvP.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.cfRx-rdA.css"}],"routeData":{"route":"/~fallback","type":"page","pattern":"^\\/~fallback\\/?$","segments":[[{"content":"~fallback","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/~fallback.astro","pathname":"/~fallback","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.UnTlypMd.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.cfRx-rdA.css"}],"routeData":{"route":"/app","type":"page","pattern":"^\\/app\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/index.astro","pathname":"/app","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.3ec9NcvP.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.cfRx-rdA.css"}],"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","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.3ec9NcvP.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.cfRx-rdA.css"}],"routeData":{"route":"/[...slug]","type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","prerender":false,"fallbackRoutes":[],"_meta":{"trailingSlash":"ignore"}}}],"site":"https://demo.ecomplus.app","base":"/","trailingSlash":"ignore","compressHTML":false,"componentMetadata":[["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/[...slug]@_@astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astrojs-ssr-virtual-entry",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/app/account@_@astro",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/app/index@_@astro",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/index@_@astro",{"propagation":"in-tree","containsHead":false}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro",{"propagation":"in-tree","containsHead":false}],["\u0000@astro-page:src/pages/~fallback@_@astro",{"propagation":"in-tree","containsHead":false}]],"renderers":[],"clientDirectives":[["idle","(()=>{var i=t=>{let e=async()=>{await(await t())()};\"requestIdleCallback\"in window?window.requestIdleCallback(e):setTimeout(e,200)};(self.Astro||(self.Astro={})).idle=i;window.dispatchEvent(new Event(\"astro:idle\"));})();"],["load","(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).load=e;window.dispatchEvent(new Event(\"astro:load\"));})();"],["media","(()=>{var s=(i,t)=>{let a=async()=>{await(await i())()};if(t.value){let e=matchMedia(t.value);e.matches?a():e.addEventListener(\"change\",a,{once:!0})}};(self.Astro||(self.Astro={})).media=s;window.dispatchEvent(new Event(\"astro:media\"));})();"],["only","(()=>{var e=async t=>{await(await t())()};(self.Astro||(self.Astro={})).only=e;window.dispatchEvent(new Event(\"astro:only\"));})();"],["visible","(()=>{var r=(i,c,s)=>{let n=async()=>{await(await i())()},t=new IntersectionObserver(e=>{for(let o of e)if(o.isIntersecting){t.disconnect(),n();break}});for(let e of s.children)t.observe(e)};(self.Astro||(self.Astro={})).visible=r;window.dispatchEvent(new Event(\"astro:visible\"));})();"],["context","(()=>{var n=(d,i)=>{let t=async()=>{await(await d())()},e=()=>{if(i.value===\"idle\"){if(typeof window.requestIdleCallback==\"function\"){setTimeout(()=>window.requestIdleCallback(t),9);return}setTimeout(t,200);return}t()},o=window.$storefront?.apiContext?.doc._id||null;if(window._firstLoadContextId===o&&window._emitedContextId===o){console.log(\"[ctx] first load\"),e(),document.addEventListener(\"astro:beforeload\",()=>{delete window._firstLoadContextId},{once:!0});return}window.addEventListener(\"storefront:apiContext\",e,{once:!0})};(self.Astro||(self.Astro={})).context=n;window.dispatchEvent(new Event(\"astro:context\"));})();\n"]],"entryModules":{"\u0000@astrojs-ssr-virtual-entry":"entry.mjs","\u0000@astro-renderers":"renderers.mjs","\u0000empty-middleware":"_empty-middleware.mjs","/src/pages/app/account.astro":"chunks/pages/account_WliDuQOB.mjs","/../../node_modules/.pnpm/astro@4.0.7_@types+node@18.19.3_typescript@5.2.2/node_modules/astro/dist/assets/endpoint/node.js":"chunks/pages/node_ZaY4t9qW.mjs","/src/pages/~fallback.astro":"chunks/pages/~fallback_TL5hPXF_.mjs","\u0000@astrojs-manifest":"manifest_YgAgEwvF.mjs","\u0000@astro-page:../../node_modules/.pnpm/astro@4.0.7_@types+node@18.19.3_typescript@5.2.2/node_modules/astro/dist/assets/endpoint/node@_@js":"chunks/node_wOa5hJmt.mjs","\u0000@astro-page:src/pages/index@_@astro":"chunks/index_1q5IpD39.mjs","\u0000@astro-page:src/pages/~fallback@_@astro":"chunks/~fallback_wxuqpDXG.mjs","\u0000@astro-page:src/pages/app/index@_@astro":"chunks/index_JEU6B2DI.mjs","\u0000@astro-page:src/pages/app/account@_@astro":"chunks/account_iZ2QmK5E.mjs","\u0000@astro-page:src/pages/[...slug]@_@astro":"chunks/_.._FnNLvTNv.mjs","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/SearchModal.vue":"_astro/SearchModal.BrVoDBvg.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/CartSidebar.vue":"_astro/CartSidebar.LrfpXG2B.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe.css?inline":"_astro/photoswipe.0V7m2jWu.js","~/components/AccountPage.vue":"_astro/AccountPage.Osc6ffV0.js","~/components/ProductDetails.vue":"_astro/ProductDetails.Ln_jf57U.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe-lightbox.esm.js":"_astro/photoswipe-lightbox.esm.dZBqKD9u.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/scripts/firebase-app.ts":"_astro/firebase-app.cPMfoOsn.js","~/components/PitchBar.vue":"_astro/PitchBar.N4d9fV8H.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe.esm.js":"_astro/photoswipe.esm.Ylh9TGkz.js","/astro/hoisted.js?q=0":"_astro/hoisted.UnTlypMd.js","@astrojs/vue/client.js":"_astro/client.PdegUP6S.js","~/components/ProductShelf.vue":"_astro/ProductShelf.X389bv9S.js","~/components/HeroSlider.vue":"_astro/HeroSlider.Zf6kCaqD.js","/astro/hoisted.js?q=1":"_astro/hoisted.3ec9NcvP.js","~/components/SearchShowcase.vue":"_astro/SearchShowcase.KAz3nwco.js","~/components/ShopHeader.vue":"_astro/ShopHeader.mFKGzhIu.js","astro:scripts/before-hydration.js":""},"assets":["/_astro/_slug_.cfRx-rdA.css","/robots.txt","/_astro/AccountPage.Osc6ffV0.js","/_astro/CartSidebar.LrfpXG2B.js","/_astro/HeroSlider.Zf6kCaqD.js","/_astro/PitchBar.N4d9fV8H.js","/_astro/Prices.eQ9Vd255.js","/_astro/ProductDetails.Ln_jf57U.js","/_astro/ProductShelf.X389bv9S.js","/_astro/ProductShelf.vj6lVDCr.js","/_astro/QuantitySelector.qSJQlvTe.js","/_astro/SearchModal.BrVoDBvg.js","/_astro/SearchShowcase.KAz3nwco.js","/_astro/ShopHeader.mFKGzhIu.js","/_astro/_plugin-vue_export-helper._suIQ7WC.js","/_astro/afetch.5c8VmT0-.js","/_astro/client.PdegUP6S.js","/_astro/customer-session.KkTHFOXl.js","/_astro/ecom-utils.Ld2zf-Ve.js","/_astro/firebase-app.cPMfoOsn.js","/_astro/format-money.Axn0YFLJ.js","/_astro/grid-title.GntHOijE.js","/_astro/hoisted.3ec9NcvP.js","/_astro/hoisted.UnTlypMd.js","/_astro/i18n.3-NUtxYq.js","/_astro/img-sizes.gxAI9JNh.js","/_astro/img.pozlYdd3.js","/_astro/index-dd468b12.D5s8VdAL.js","/_astro/index.TkCbiY_p.js","/_astro/index.m6fK0JXC.js","/_astro/modules-info.mmwB1qIJ.js","/_astro/name.49dZlpDx.js","/_astro/photoswipe-lightbox.esm.dZBqKD9u.js","/_astro/photoswipe.0V7m2jWu.js","/_astro/photoswipe.esm.Ylh9TGkz.js","/_astro/price.Easct8WC.js","/_astro/sf-utils.yjuG8NjM.js","/_astro/shopping-cart.Ean2uW2R.js","/_astro/use-analytics.Y7amTmnr.js","/_astro/use-product-card.zB4z32bC.js","/_astro/use-text-value.f9pDzruv.js","/img/icon.png","/img/large-icon.png","/img/uploads/banner2.webp","/img/uploads/ecom-icon.png","/img/uploads/headphone.webp","/img/uploads/logo.png","/img/uploads/og-image.png","/img/uploads/passion.webp","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.webp"]});
|
|
195
|
-
|
|
196
|
-
export { AstroIntegrationLogger as A, Logger as L, getEventPrefix as g, levels as l, manifest };
|