cloudcommerce 0.34.0 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/action.yml +11 -3
- 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/pages/[...slug].astro +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/pages/app/account.astro +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/pages/app/index.astro +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/pages/index.astro +1 -1
- package/ecomplus-stores/barra-doce/functions/ssr/src/pages/~fallback.astro +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 +6 -6
- package/packages/api/lib/api.js +1 -1
- package/packages/api/lib/api.js.map +1 -1
- package/packages/api/package.json +1 -1
- package/packages/api/src/api.ts +1 -1
- package/packages/apps/affilate-program/package.json +2 -2
- package/packages/apps/correios/package.json +2 -2
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +2 -2
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +2 -2
- package/packages/apps/fb-conversions/package.json +2 -2
- package/packages/apps/flash-courier/package.json +1 -1
- package/packages/apps/frenet/package.json +2 -2
- package/packages/apps/galaxpay/package.json +2 -2
- package/packages/apps/google-analytics/lib/google-analytics-events.js +4 -4
- package/packages/apps/google-analytics/lib/google-analytics-events.js.map +1 -1
- package/packages/apps/google-analytics/package.json +2 -2
- package/packages/apps/google-analytics/src/google-analytics-events.ts +4 -4
- 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 +2 -2
- package/packages/apps/mercadopago/package.json +2 -2
- package/packages/apps/pagarme/package.json +2 -2
- package/packages/apps/pagarme-v5/package.json +2 -2
- package/packages/apps/paghiper/package.json +2 -2
- package/packages/apps/pix/package.json +2 -2
- package/packages/apps/tiny-erp/package.json +2 -2
- package/packages/apps/webhooks/package.json +2 -2
- package/packages/cli/package.json +4 -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 +2 -2
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +2 -2
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +2 -2
- package/packages/passport/package.json +2 -2
- package/packages/ssr/lib/analytics/send-to-ga4.js +44 -0
- package/packages/ssr/lib/analytics/send-to-ga4.js.map +1 -0
- package/packages/ssr/lib/analytics/send-to-meta.js +44 -0
- package/packages/ssr/lib/analytics/send-to-meta.js.map +1 -0
- package/packages/ssr/lib/analytics/send-to-tiktok.js +44 -0
- package/packages/ssr/lib/analytics/send-to-tiktok.js.map +1 -0
- package/packages/ssr/lib/analytics-events.js +52 -24
- package/packages/ssr/lib/analytics-events.js.map +1 -1
- package/packages/ssr/lib/firebase/serve-storefront.js +16 -3
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +6 -5
- package/packages/ssr/src/analytics/send-to-ga4.ts +56 -0
- package/packages/ssr/src/analytics/send-to-meta.ts +50 -0
- package/packages/ssr/src/analytics/send-to-tiktok.ts +49 -0
- package/packages/ssr/src/analytics-events.ts +57 -27
- package/packages/ssr/src/firebase/serve-storefront.ts +17 -3
- package/packages/storefront/dist/client/_astro/AccountPage.700be123.js +1 -0
- package/packages/storefront/dist/client/_astro/{CartSidebar.8151e4ee.js → CartSidebar.430b55df.js} +1 -1
- package/packages/storefront/dist/client/_astro/HeroSlider.bd684ed8.js +1 -0
- package/packages/storefront/dist/client/_astro/PitchBar.06e0f831.js +1 -0
- package/packages/storefront/dist/client/_astro/{Prices.311303d8.js → Prices.0e829c31.js} +1 -1
- package/packages/storefront/dist/client/_astro/ProductDetails.06da998d.js +1 -0
- package/packages/storefront/dist/client/_astro/ProductShelf.3f4f38b5.js +1 -0
- package/packages/storefront/dist/client/_astro/ProductShelf.bf82838b.js +1 -0
- package/packages/storefront/dist/client/_astro/QuantitySelector.ebf60845.js +1 -0
- package/packages/storefront/dist/client/_astro/SearchModal.b6aa5ef7.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.2d6e361a.js +4 -0
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.f75743ee.js +1 -0
- package/packages/storefront/dist/client/_astro/_slug_.e7cac999.css +1 -0
- package/packages/storefront/dist/client/_astro/client.41b42098.js +1 -0
- package/packages/storefront/dist/client/_astro/customer-session.5ab9ab1a.js +1 -0
- package/packages/storefront/dist/client/_astro/ecom-utils.5cbfb95e.js +1 -0
- package/packages/storefront/dist/client/_astro/{format-money.8962a5ab.js → format-money.9cf6b04d.js} +1 -1
- package/packages/storefront/dist/client/_astro/{hoisted.57d8d9d0.js → hoisted.085a62c9.js} +1 -1
- package/packages/storefront/dist/client/_astro/hoisted.799e5593.js +1 -0
- package/packages/storefront/dist/client/_astro/{i18n.78f362d9.js → i18n.29216eeb.js} +1 -1
- package/packages/storefront/dist/client/_astro/{img.bfbd75a8.js → img.4f23a3dd.js} +1 -1
- package/packages/storefront/dist/client/_astro/index.570b84fe.js +1 -0
- package/packages/storefront/dist/client/_astro/index.8ac1db99.js +1 -0
- package/packages/storefront/dist/client/_astro/{modules-info.3c447a07.js → modules-info.55780599.js} +1 -1
- package/packages/storefront/dist/client/_astro/name.01410784.js +1 -0
- package/packages/storefront/dist/client/_astro/shopping-cart.d9f601dd.js +1 -0
- package/packages/storefront/dist/client/_astro/{use-analytics.d0c184ef.js → use-analytics.cc95e346.js} +1 -1
- package/packages/storefront/dist/client/_astro/{use-product-card.e0990572.js → use-product-card.437911bb.js} +1 -1
- package/packages/storefront/dist/server/chunks/{CartSidebar_03b51b57.mjs → CartSidebar_eab28771.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/SearchModal_f66549d4.mjs +147 -0
- package/packages/storefront/dist/server/chunks/{_.._4def02ff.mjs → _.._5a781fb3.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{account_2ee873cf.mjs → account_519edb70.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/astro/{assets-service_66a9c838.mjs → assets-service_a9d9ab5f.mjs} +58 -10
- package/packages/storefront/dist/server/chunks/{astro_8447f017.mjs → astro_d98f7186.mjs} +7 -1
- package/packages/storefront/dist/server/chunks/{index_5dcbbe32.mjs → index_10e14f85.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{index_37bacd45.mjs → index_5e3ed8a0.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{node_b3ae36f1.mjs → node_1119b0d1.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{__80fd1c60.mjs → __93ade2dd.mjs} +485 -224
- package/packages/storefront/dist/server/chunks/pages/account_e5d410a7.mjs +28 -0
- package/packages/storefront/dist/server/chunks/pages/{index_8e1d063c.mjs → index_7e25afc1.mjs} +29 -8
- package/packages/storefront/dist/server/chunks/pages/node_bd378ac0.mjs +93 -0
- package/packages/storefront/dist/server/chunks/pages/{~fallback_6ff698cd.mjs → ~fallback_73578d2f.mjs} +16 -6
- package/packages/storefront/dist/server/chunks/{~fallback_7c4b84d5.mjs → ~fallback_41122b9b.mjs} +1 -1
- package/packages/storefront/dist/server/entry.mjs +8 -8
- package/packages/storefront/dist/server/{manifest_2019b8a9.mjs → manifest_6bc0c00d.mjs} +2 -2
- package/packages/storefront/dist/server/renderers.mjs +5 -3
- package/packages/storefront/package.json +8 -8
- package/packages/storefront/src/lib/assets/forms.css +35 -30
- package/packages/storefront/src/lib/components/Carousel.vue +3 -1
- package/packages/storefront/src/lib/components/CarouselControl.vue +1 -1
- package/packages/storefront/src/lib/components/Drawer.vue +45 -7
- package/packages/storefront/src/lib/components/globals/Fade.vue +1 -1
- package/packages/storefront/src/lib/composables/use-product-shelf.ts +1 -1
- package/packages/storefront/src/lib/scripts/vbeta-app.ts +25 -15
- package/packages/storefront/src/lib/ssr-context.ts +11 -8
- package/packages/storefront/src/lib/state/search-engine.ts +101 -0
- package/packages/storefront/src/lib/state/shopping-cart.ts +52 -65
- package/packages/storefront/src/lib/state/use-analytics.ts +2 -1
- package/packages/storefront/src/lib/state/use-storage.ts +5 -2
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/packages/ssr/lib/analytics-providers/google-analytics.js +0 -48
- package/packages/ssr/lib/analytics-providers/google-analytics.js.map +0 -1
- package/packages/ssr/lib/analytics-providers/meta-conversions-api.js +0 -44
- package/packages/ssr/lib/analytics-providers/meta-conversions-api.js.map +0 -1
- package/packages/ssr/src/analytics-providers/google-analytics.ts +0 -67
- package/packages/ssr/src/analytics-providers/meta-conversions-api.ts +0 -57
- package/packages/storefront/dist/client/_astro/AccountPage.6ead88b1.js +0 -1
- package/packages/storefront/dist/client/_astro/HeroSlider.46474cda.js +0 -1
- package/packages/storefront/dist/client/_astro/PitchBar.fbca6881.js +0 -1
- package/packages/storefront/dist/client/_astro/ProductDetails.d66f9f7e.js +0 -1
- package/packages/storefront/dist/client/_astro/ProductShelf.9536b4c1.js +0 -1
- package/packages/storefront/dist/client/_astro/QuantitySelector.e74e368a.js +0 -1
- package/packages/storefront/dist/client/_astro/SearchModal.83b73e0b.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.06f4d486.js +0 -4
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.dd1a60ce.js +0 -1
- package/packages/storefront/dist/client/_astro/_slug_.52cde7a0.css +0 -1
- package/packages/storefront/dist/client/_astro/client.7c1b0374.js +0 -1
- package/packages/storefront/dist/client/_astro/customer-session.2d173cc1.js +0 -1
- 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.c385a436.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.f16496bc.js +0 -1
- package/packages/storefront/dist/client/_astro/index.e02b88b7.js +0 -1
- package/packages/storefront/dist/client/_astro/index.e20e07e3.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/name.3cd31c8b.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.6b03b120.js +0 -1
- package/packages/storefront/dist/client/~fallback.html +0 -74
- package/packages/storefront/dist/client/~index.html +0 -120
- package/packages/storefront/dist/server/chunks/SearchModal_2afca4fe.mjs +0 -18
- package/packages/storefront/dist/server/chunks/pages/account_bfd9a66a.mjs +0 -21
- package/packages/storefront/dist/server/chunks/pages/node_530334cf.mjs +0 -160
- package/packages/storefront/dist/server/images.dist.csv +0 -30
- package/packages/storefront/dist/server/images.src.csv +0 -11
- package/packages/storefront/dist/server/static-builds.csv +0 -66
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, i as renderComponent, m as maybeRenderHead } from '../astro_d98f7186.mjs';
|
|
2
|
+
import { l as loadRouteContext, $ as $$BaseHead, a as $$Picture, b as $$Base } from './__93ade2dd.mjs';
|
|
3
|
+
|
|
4
|
+
const $$Astro = createAstro("https://demo.ecomplus.app");
|
|
5
|
+
const $$Account = createComponent(async ($$result, $$props, $$slots) => {
|
|
6
|
+
const Astro2 = $$result.createAstro($$Astro, $$props, $$slots);
|
|
7
|
+
Astro2.self = $$Account;
|
|
8
|
+
let routeContext;
|
|
9
|
+
try {
|
|
10
|
+
routeContext = await loadRouteContext(Astro2);
|
|
11
|
+
} catch (err) {
|
|
12
|
+
return err.astroResponse;
|
|
13
|
+
}
|
|
14
|
+
const { settings } = routeContext;
|
|
15
|
+
return renderTemplate`<html${addAttribute(routeContext.lang.replace("_", "-"), "lang")}>
|
|
16
|
+
${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "BaseHead", $$BaseHead, { "slot": "base-head" })}`, "default": ($$result2) => renderTemplate`
|
|
17
|
+
|
|
18
|
+
${maybeRenderHead()}<main>
|
|
19
|
+
${renderComponent($$result2, "AccountPage", null, { "client:only": true, "client:component-hydration": "only", "client:component-path": "~/components/AccountPage.vue", "client:component-export": "default" }, { "logo": ($$result3) => renderTemplate`${renderComponent($$result3, "Picture", $$Picture, { "slot": "logo", "src": settings.logo, "alt": settings.name, "widths": [300], "loading": "lazy", "class": "max-w-[150px]" })}` })}
|
|
20
|
+
</main>
|
|
21
|
+
` })}
|
|
22
|
+
</html>`;
|
|
23
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro", void 0);
|
|
24
|
+
|
|
25
|
+
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro";
|
|
26
|
+
const $$url = "/app/account";
|
|
27
|
+
|
|
28
|
+
export { $$Account as default, $$file as file, $$url as url };
|
package/packages/storefront/dist/server/chunks/pages/{index_8e1d063c.mjs → index_7e25afc1.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
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 './
|
|
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_d98f7186.mjs';
|
|
2
|
+
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 './__93ade2dd.mjs';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
import { useSSRContext, defineComponent, ref, onMounted, resolveComponent, mergeProps, withCtx, createVNode, withDirectives, vShow, renderSlot, openBlock, createBlock, Fragment, renderList, createTextVNode, toDisplayString } from 'vue';
|
|
5
5
|
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderStyle, ssrRenderClass, ssrRenderList, ssrRenderSlot, ssrInterpolate } from 'vue/server-renderer';
|
|
@@ -145,7 +145,10 @@ const $$Home = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
145
145
|
const { routeContext } = Astro2.locals;
|
|
146
146
|
const { heroSlider } = await usePageHero({ routeContext });
|
|
147
147
|
const heroSlides = heroSlider.slides;
|
|
148
|
-
return renderTemplate`${maybeRenderHead()}<main>
|
|
148
|
+
return renderTemplate`${maybeRenderHead()}<main>
|
|
149
|
+
${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 })}`}` })}`}
|
|
150
|
+
${renderComponent($$result, "Sections", $$Sections, {})}
|
|
151
|
+
</main>`;
|
|
149
152
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Home.astro", void 0);
|
|
150
153
|
|
|
151
154
|
const $$Astro$1 = createAstro("https://demo.ecomplus.app");
|
|
@@ -162,7 +165,15 @@ const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
162
165
|
}
|
|
163
166
|
loadError = err;
|
|
164
167
|
}
|
|
165
|
-
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}>
|
|
168
|
+
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}>
|
|
169
|
+
${routeContext && renderTemplate`${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "BaseHead", $$BaseHead, { "slot": "base-head" })}`, "default": ($$result2) => renderTemplate`
|
|
170
|
+
|
|
171
|
+
${renderComponent($$result2, "PageHeader", $$PageHeader, {})}
|
|
172
|
+
${renderComponent($$result2, "HomeMain", $$Home, {})}
|
|
173
|
+
${renderComponent($$result2, "PageFooter", $$PageFooter, {})}
|
|
174
|
+
` })}`}
|
|
175
|
+
${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment$1, {}, { "default": ($$result2) => renderTemplate`${unescapeHTML(loadError.responseHTML)}` })}`}
|
|
176
|
+
</html>`;
|
|
166
177
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro", void 0);
|
|
167
178
|
|
|
168
179
|
const $$file$1 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro";
|
|
@@ -189,9 +200,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
189
200
|
});
|
|
190
201
|
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
191
202
|
const _component_ALink = resolveComponent("ALink");
|
|
192
|
-
_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">`);
|
|
203
|
+
_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="/">`);
|
|
193
204
|
ssrRenderSlot(_ctx.$slots, "logo", {}, null, _push, _parent);
|
|
194
|
-
_push(
|
|
205
|
+
_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"><!--[-->`);
|
|
195
206
|
ssrRenderList(_ctx.$settings.serviceLinks, ({ title, href }, i) => {
|
|
196
207
|
_push(`<li>`);
|
|
197
208
|
_push(ssrRenderComponent(_component_ALink, {
|
|
@@ -238,7 +249,11 @@ const $$Index = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
238
249
|
const { settings, getContent } = routeContext;
|
|
239
250
|
const layoutContent = await getContent("layout");
|
|
240
251
|
const { footer: { stamps } } = layoutContent;
|
|
241
|
-
return renderTemplate`<html${addAttribute(routeContext.lang.replace("_", "-"), "lang")}>
|
|
252
|
+
return renderTemplate`<html${addAttribute(routeContext.lang.replace("_", "-"), "lang")}>
|
|
253
|
+
${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "Fragment", Fragment$1, { "slot": "base-head" }, { "default": ($$result3) => renderTemplate`
|
|
254
|
+
${renderComponent($$result3, "BaseHead", $$BaseHead, {})}
|
|
255
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ecomplus/storefront-twbs@7/dist/cdn/storefront-twbs.min.css">
|
|
256
|
+
<style>
|
|
242
257
|
body {
|
|
243
258
|
--primary: var(--c-primary);
|
|
244
259
|
--primary-yiq: var(--c-on-primary);
|
|
@@ -279,7 +294,13 @@ const $$Index = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
279
294
|
#storefront-app p {
|
|
280
295
|
margin-bottom: 1rem;
|
|
281
296
|
}
|
|
282
|
-
</style
|
|
297
|
+
</style>
|
|
298
|
+
` })}`, "default": ($$result2) => renderTemplate`
|
|
299
|
+
|
|
300
|
+
${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]" })}` })}
|
|
301
|
+
|
|
302
|
+
` })}
|
|
303
|
+
</html>`;
|
|
283
304
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro", void 0);
|
|
284
305
|
|
|
285
306
|
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro";
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { isRemotePath } from '@astrojs/internal-helpers/path';
|
|
2
|
+
import { readFile } from 'fs/promises';
|
|
3
|
+
import mime from 'mime/lite.js';
|
|
4
|
+
import 'os';
|
|
5
|
+
import { a as getConfiguredImageService, b as isRemoteAllowed } from '../astro/assets-service_a9d9ab5f.mjs';
|
|
6
|
+
import { i as imageConfig, g as assetsDir } from './__93ade2dd.mjs';
|
|
7
|
+
|
|
8
|
+
const fnv1a52 = (str) => {
|
|
9
|
+
const len = str.length;
|
|
10
|
+
let i = 0, t0 = 0, v0 = 8997, t1 = 0, v1 = 33826, t2 = 0, v2 = 40164, t3 = 0, v3 = 52210;
|
|
11
|
+
while (i < len) {
|
|
12
|
+
v0 ^= str.charCodeAt(i++);
|
|
13
|
+
t0 = v0 * 435;
|
|
14
|
+
t1 = v1 * 435;
|
|
15
|
+
t2 = v2 * 435;
|
|
16
|
+
t3 = v3 * 435;
|
|
17
|
+
t2 += v0 << 8;
|
|
18
|
+
t3 += v1 << 8;
|
|
19
|
+
t1 += t0 >>> 16;
|
|
20
|
+
v0 = t0 & 65535;
|
|
21
|
+
t2 += t1 >>> 16;
|
|
22
|
+
v1 = t1 & 65535;
|
|
23
|
+
v3 = t3 + (t2 >>> 16) & 65535;
|
|
24
|
+
v2 = t2 & 65535;
|
|
25
|
+
}
|
|
26
|
+
return (v3 & 15) * 281474976710656 + v2 * 4294967296 + v1 * 65536 + (v0 ^ v3 >> 4);
|
|
27
|
+
};
|
|
28
|
+
const etag = (payload, weak = false) => {
|
|
29
|
+
const prefix = weak ? 'W/"' : '"';
|
|
30
|
+
return prefix + fnv1a52(payload).toString(36) + payload.length.toString(36) + '"';
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
async function loadLocalImage(src, url) {
|
|
34
|
+
const filePath = new URL("." + src, assetsDir);
|
|
35
|
+
let buffer = void 0;
|
|
36
|
+
try {
|
|
37
|
+
buffer = await readFile(filePath);
|
|
38
|
+
} catch (e) {
|
|
39
|
+
const sourceUrl = new URL(src, url.origin);
|
|
40
|
+
buffer = await loadRemoteImage(sourceUrl);
|
|
41
|
+
}
|
|
42
|
+
return buffer;
|
|
43
|
+
}
|
|
44
|
+
async function loadRemoteImage(src) {
|
|
45
|
+
try {
|
|
46
|
+
const res = await fetch(src);
|
|
47
|
+
if (!res.ok) {
|
|
48
|
+
return void 0;
|
|
49
|
+
}
|
|
50
|
+
return Buffer.from(await res.arrayBuffer());
|
|
51
|
+
} catch (err) {
|
|
52
|
+
return void 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
const GET = async ({ request }) => {
|
|
56
|
+
try {
|
|
57
|
+
const imageService = await getConfiguredImageService();
|
|
58
|
+
if (!("transform" in imageService)) {
|
|
59
|
+
throw new Error("Configured image service is not a local service");
|
|
60
|
+
}
|
|
61
|
+
const url = new URL(request.url);
|
|
62
|
+
const transform = await imageService.parseURL(url, imageConfig);
|
|
63
|
+
if (!transform?.src) {
|
|
64
|
+
throw new Error("Incorrect transform returned by `parseURL`");
|
|
65
|
+
}
|
|
66
|
+
let inputBuffer = void 0;
|
|
67
|
+
if (isRemotePath(transform.src)) {
|
|
68
|
+
if (isRemoteAllowed(transform.src, imageConfig) === false) {
|
|
69
|
+
return new Response("Forbidden", { status: 403 });
|
|
70
|
+
}
|
|
71
|
+
inputBuffer = await loadRemoteImage(new URL(transform.src));
|
|
72
|
+
} else {
|
|
73
|
+
inputBuffer = await loadLocalImage(transform.src, url);
|
|
74
|
+
}
|
|
75
|
+
if (!inputBuffer) {
|
|
76
|
+
return new Response("Not Found", { status: 404 });
|
|
77
|
+
}
|
|
78
|
+
const { data, format } = await imageService.transform(inputBuffer, transform, imageConfig);
|
|
79
|
+
return new Response(data, {
|
|
80
|
+
status: 200,
|
|
81
|
+
headers: {
|
|
82
|
+
"Content-Type": mime.getType(format) ?? `image/${format}`,
|
|
83
|
+
"Cache-Control": "public, max-age=31536000",
|
|
84
|
+
ETag: etag(data.toString()),
|
|
85
|
+
Date: (/* @__PURE__ */ new Date()).toUTCString()
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
} catch (err) {
|
|
89
|
+
return new Response(`Server Error: ${err}`, { status: 500 });
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export { GET };
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as loadRouteContext, $ as $$BaseHead, e as $$PageHeader, b as $$Base } from './
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, m as maybeRenderHead, h as addAttribute, i as renderComponent } from '../astro_d98f7186.mjs';
|
|
2
|
+
import { l as loadRouteContext, $ as $$BaseHead, e as $$PageHeader, b as $$Base } from './__93ade2dd.mjs';
|
|
3
3
|
import 'clsx';
|
|
4
4
|
|
|
5
5
|
const $$Astro$1 = createAstro("https://demo.ecomplus.app");
|
|
6
6
|
const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
7
7
|
const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
|
|
8
8
|
Astro2.self = $$Fallback;
|
|
9
|
-
return renderTemplate`${maybeRenderHead()}<main>
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
return renderTemplate`${maybeRenderHead()}<main>
|
|
10
|
+
<h1>Error :/</h1>
|
|
11
|
+
<p class="instructions">
|
|
12
|
+
Check out the <code>src/pages</code> directory to get started.<br>
|
|
13
|
+
<strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
|
|
14
|
+
</p>
|
|
15
|
+
</main>`;
|
|
12
16
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Fallback.astro", void 0);
|
|
13
17
|
|
|
14
18
|
const $$Astro = createAstro("https://demo.ecomplus.app");
|
|
@@ -21,7 +25,13 @@ const $$fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
21
25
|
} catch (err) {
|
|
22
26
|
return err.astroResponse;
|
|
23
27
|
}
|
|
24
|
-
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}>
|
|
28
|
+
return renderTemplate`<html${addAttribute(routeContext?.lang.replace("_", "-"), "lang")}>
|
|
29
|
+
${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => renderTemplate`${renderComponent($$result2, "BaseHead", $$BaseHead, { "slot": "base-head" })}`, "default": ($$result2) => renderTemplate`
|
|
30
|
+
|
|
31
|
+
${renderComponent($$result2, "PageHeader", $$PageHeader, {})}
|
|
32
|
+
${renderComponent($$result2, "FallbackMain", $$Fallback, {})}
|
|
33
|
+
` })}
|
|
34
|
+
</html>`;
|
|
25
35
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro", void 0);
|
|
26
36
|
|
|
27
37
|
const $$file = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/~fallback.astro";
|
|
@@ -3,9 +3,9 @@ import http from 'node:http';
|
|
|
3
3
|
import { TLSSocket } from 'node:tls';
|
|
4
4
|
import { appendForwardSlash as appendForwardSlash$1, joinPaths, slash, prependForwardSlash, removeTrailingForwardSlash, collapseDuplicateSlashes } from '@astrojs/internal-helpers/path';
|
|
5
5
|
import 'cookie';
|
|
6
|
-
import { l as levels, d as dateTimeFormat, A as AstroCookies, c as computePreferredLocale, a as computePreferredLocaleList, b as computeCurrentLocale, r as routeIsRedirect, e as redirectRouteStatus, f as redirectRouteGenerate, g as routeIsFallback, h as attachCookiesToResponse, i as createAPIContext, j as callEndpoint, k as callMiddleware, L as Logger, m as AstroIntegrationLogger, R as RouteCache, n as getSetCookiesFromResponse, o as createRenderContext, manifest } from './
|
|
6
|
+
import { l as levels, d as dateTimeFormat, A as AstroCookies, c as computePreferredLocale, a as computePreferredLocaleList, b as computeCurrentLocale, r as routeIsRedirect, e as redirectRouteStatus, f as redirectRouteGenerate, g as routeIsFallback, h as attachCookiesToResponse, i as createAPIContext, j as callEndpoint, k as callMiddleware, L as Logger, m as AstroIntegrationLogger, R as RouteCache, n as getSetCookiesFromResponse, o as createRenderContext, manifest } from './manifest_6bc0c00d.mjs';
|
|
7
7
|
import { yellow, dim, bold, cyan, red, reset } from 'kleur/colors';
|
|
8
|
-
import { A as AstroError, R as ReservedSlotName,
|
|
8
|
+
import { A as AstroError, R as ReservedSlotName, k as renderSlotToString, o as renderJSX, p as chunkToString, C as ClientAddressNotAvailable, S as StaticClientAddressNotAvailable, q as ResponseSentError, t as CantRenderPage, v as renderPage$1 } from './chunks/astro_d98f7186.mjs';
|
|
9
9
|
import 'clsx';
|
|
10
10
|
import buffer from 'node:buffer';
|
|
11
11
|
import crypto from 'node:crypto';
|
|
@@ -1360,12 +1360,12 @@ const adapter = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
1360
1360
|
start
|
|
1361
1361
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
1362
1362
|
|
|
1363
|
-
const _page0 = () => import('./chunks/
|
|
1364
|
-
const _page1 = () => import('./chunks/
|
|
1365
|
-
const _page2 = () => import('./chunks/~
|
|
1366
|
-
const _page3 = () => import('./chunks/
|
|
1367
|
-
const _page4 = () => import('./chunks/
|
|
1368
|
-
const _page5 = () => import('./chunks/_..
|
|
1363
|
+
const _page0 = () => import('./chunks/node_1119b0d1.mjs');
|
|
1364
|
+
const _page1 = () => import('./chunks/index_5e3ed8a0.mjs');
|
|
1365
|
+
const _page2 = () => import('./chunks/~fallback_41122b9b.mjs');
|
|
1366
|
+
const _page3 = () => import('./chunks/index_10e14f85.mjs');
|
|
1367
|
+
const _page4 = () => import('./chunks/account_519edb70.mjs');
|
|
1368
|
+
const _page5 = () => import('./chunks/_.._5a781fb3.mjs');const pageMap = new Map([["../../node_modules/.pnpm/astro@3.6.0_@types+node@18.18.13_typescript@5.2.2/node_modules/astro/dist/assets/endpoint/node.js", _page0],["src/pages/index.astro", _page1],["src/pages/~fallback.astro", _page2],["src/pages/app/index.astro", _page3],["src/pages/app/account.astro", _page4],["src/pages/[...slug].astro", _page5]]);
|
|
1369
1369
|
const _manifest = Object.assign(manifest, {
|
|
1370
1370
|
pageMap,
|
|
1371
1371
|
renderers,
|
|
@@ -3,7 +3,7 @@ import { serialize, parse } from 'cookie';
|
|
|
3
3
|
import { bold } from 'kleur/colors';
|
|
4
4
|
import 'string-width';
|
|
5
5
|
import mime from 'mime';
|
|
6
|
-
import { A as AstroError,
|
|
6
|
+
import { A as AstroError, q as ResponseSentError, w as MiddlewareNoDataOrNextCalled, x as MiddlewareNotAResponse, G as GetStaticPathsRequired, y as InvalidGetStaticPathsReturn, z as InvalidGetStaticPathsEntry, B as GetStaticPathsExpectedParams, D as GetStaticPathsInvalidRouteParam, P as PageNumberParamNotFound, H as GetStaticPathsRemovedRSSHelper, N as NoMatchingStaticPathFound, J as PrerenderDynamicEndpointPathCollide, K as LocalsNotAnObject, O as ASTRO_VERSION, C as ClientAddressNotAvailable, S as StaticClientAddressNotAvailable, Q as renderEndpoint } from './chunks/astro_d98f7186.mjs';
|
|
7
7
|
import 'clsx';
|
|
8
8
|
import { compile } from 'path-to-regexp';
|
|
9
9
|
|
|
@@ -1064,6 +1064,6 @@ function deserializeManifest(serializedManifest) {
|
|
|
1064
1064
|
};
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
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@3.6.0_@types+node@18.18.
|
|
1067
|
+
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@3.6.0_@types+node@18.18.13_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.085a62c9.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.e7cac999.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.085a62c9.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.e7cac999.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.799e5593.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.e7cac999.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.085a62c9.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.e7cac999.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.085a62c9.js"}],"styles":[{"type":"external","src":"/_astro/_slug_.e7cac999.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_e5d410a7.mjs","/../../node_modules/.pnpm/astro@3.6.0_@types+node@18.18.13_typescript@5.2.2/node_modules/astro/dist/assets/endpoint/node.js":"chunks/pages/node_bd378ac0.mjs","/src/pages/~fallback.astro":"chunks/pages/~fallback_73578d2f.mjs","\u0000@astrojs-manifest":"manifest_6bc0c00d.mjs","\u0000@astro-page:../../node_modules/.pnpm/astro@3.6.0_@types+node@18.18.13_typescript@5.2.2/node_modules/astro/dist/assets/endpoint/node@_@js":"chunks/node_1119b0d1.mjs","\u0000@astro-page:src/pages/index@_@astro":"chunks/index_5e3ed8a0.mjs","\u0000@astro-page:src/pages/~fallback@_@astro":"chunks/~fallback_41122b9b.mjs","\u0000@astro-page:src/pages/app/index@_@astro":"chunks/index_10e14f85.mjs","\u0000@astro-page:src/pages/app/account@_@astro":"chunks/account_519edb70.mjs","\u0000@astro-page:src/pages/[...slug]@_@astro":"chunks/_.._5a781fb3.mjs","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/SearchModal.vue":"_astro/SearchModal.b6aa5ef7.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/components/CartSidebar.vue":"_astro/CartSidebar.430b55df.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe.css?used&inline":"_astro/photoswipe.01431ec7.js","~/components/ProductShelf.vue":"_astro/ProductShelf.bf82838b.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe-lightbox.esm.js":"_astro/photoswipe-lightbox.esm.c157838f.js","~/components/AccountPage.vue":"_astro/AccountPage.700be123.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/scripts/firebase-app.ts":"_astro/firebase-app.992a296f.js","~/components/ProductDetails.vue":"_astro/ProductDetails.06da998d.js","~/components/HeroSlider.vue":"_astro/HeroSlider.bd684ed8.js","/astro/hoisted.js?q=1":"_astro/hoisted.085a62c9.js","~/components/PitchBar.vue":"_astro/PitchBar.06e0f831.js","@astrojs/vue/client.js":"_astro/client.41b42098.js","~/components/ShopHeader.vue":"_astro/ShopHeader.2d6e361a.js","/astro/hoisted.js?q=0":"_astro/hoisted.799e5593.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/photoswipe/dist/photoswipe.esm.js":"_astro/photoswipe.esm.92c2d901.js","astro:scripts/before-hydration.js":""},"assets":["/_astro/_slug_.e7cac999.css","/robots.txt","/_astro/AccountPage.700be123.js","/_astro/CartSidebar.430b55df.js","/_astro/HeroSlider.bd684ed8.js","/_astro/PitchBar.06e0f831.js","/_astro/Prices.0e829c31.js","/_astro/ProductDetails.06da998d.js","/_astro/ProductShelf.3f4f38b5.js","/_astro/ProductShelf.bf82838b.js","/_astro/QuantitySelector.ebf60845.js","/_astro/SearchModal.b6aa5ef7.js","/_astro/ShopHeader.2d6e361a.js","/_astro/_plugin-vue_export-helper.f75743ee.js","/_astro/afetch.f4507208.js","/_astro/client.41b42098.js","/_astro/customer-session.5ab9ab1a.js","/_astro/ecom-utils.5cbfb95e.js","/_astro/firebase-app.992a296f.js","/_astro/format-money.9cf6b04d.js","/_astro/hoisted.085a62c9.js","/_astro/hoisted.799e5593.js","/_astro/i18n.29216eeb.js","/_astro/img-sizes.41e0efe4.js","/_astro/img.4f23a3dd.js","/_astro/index-61e5ac61.bdc8d0cd.js","/_astro/index.570b84fe.js","/_astro/index.8ac1db99.js","/_astro/modules-info.55780599.js","/_astro/name.01410784.js","/_astro/photoswipe-lightbox.esm.c157838f.js","/_astro/photoswipe.01431ec7.js","/_astro/photoswipe.esm.92c2d901.js","/_astro/price.04ceb6c4.js","/_astro/sf-utils.b04e1813.js","/_astro/shopping-cart.d9f601dd.js","/_astro/use-analytics.cc95e346.js","/_astro/use-product-card.437911bb.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"]});
|
|
1068
1068
|
|
|
1069
1069
|
export { AstroCookies as A, Logger as L, RouteCache as R, computePreferredLocaleList as a, computeCurrentLocale as b, computePreferredLocale as c, dateTimeFormat as d, redirectRouteStatus as e, redirectRouteGenerate as f, routeIsFallback as g, attachCookiesToResponse as h, createAPIContext as i, callEndpoint as j, callMiddleware as k, levels as l, AstroIntegrationLogger as m, manifest, getSetCookiesFromResponse as n, createRenderContext as o, routeIsRedirect as r };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSSRContext, defineComponent, computed, createVNode, resolveDynamicComponent, mergeProps, withCtx, renderSlot, inject, ref, watch, toRef, onMounted, onBeforeUnmount, provide, h, createSSRApp } from 'vue';
|
|
2
2
|
import { ssrRenderSlotInner, ssrRenderVNode, ssrRenderSlot, ssrRenderAttrs, ssrRenderClass, ssrRenderComponent, renderToString } from 'vue/server-renderer';
|
|
3
3
|
import { img, imgSizes, i18n, formatMoney } from '@ecomplus/utils';
|
|
4
|
-
import { _ as _export_sfc } from './chunks/pages/
|
|
4
|
+
import { _ as _export_sfc } from './chunks/pages/__93ade2dd.mjs';
|
|
5
5
|
import { useScroll, useElementHover, useDebounceFn } from '@vueuse/core';
|
|
6
6
|
|
|
7
7
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
@@ -322,7 +322,7 @@ function _sfc_ssrRender$1(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
322
322
|
_push(`<button${ssrRenderAttrs(mergeProps({
|
|
323
323
|
type: "button",
|
|
324
324
|
"aria-label": !$props.isPrev ? "Pr\xF3ximo" : "Anterior",
|
|
325
|
-
class: ["
|
|
325
|
+
class: ["group absolute z-[2]", $setup.isX ? `${!$props.isPrev ? "right-0" : "left-0"} top-0` : `${!$props.isPrev ? "bottom-0" : "top-0"} left-0`],
|
|
326
326
|
"data-carousel-control": !$props.isPrev ? "next" : "previous"
|
|
327
327
|
}, _attrs))}>`);
|
|
328
328
|
ssrRenderSlot(_ctx.$slots, "default", {}, () => {
|
|
@@ -351,7 +351,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
351
351
|
index: { default: 0 },
|
|
352
352
|
autoplay: {},
|
|
353
353
|
axis: { default: "x" },
|
|
354
|
-
hasControls: { type: Boolean }
|
|
354
|
+
hasControls: { type: Boolean },
|
|
355
|
+
wrapperKey: {}
|
|
355
356
|
},
|
|
356
357
|
emits: ["update:index"],
|
|
357
358
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -505,6 +506,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
505
506
|
onMounted(() => {
|
|
506
507
|
calcOnInit();
|
|
507
508
|
});
|
|
509
|
+
watch(toRef(props, "wrapperKey"), calcOnInit);
|
|
508
510
|
onBeforeUnmount(() => {
|
|
509
511
|
clearTimeout(autoplayTimer);
|
|
510
512
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/storefront",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.35.1",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce storefront with Astro",
|
|
6
6
|
"bin": {
|
|
7
7
|
"storefront": "./scripts/build-prod.sh"
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@cloudcommerce/i18n": "workspace:*",
|
|
37
37
|
"@ecomplus/utils": "1.5.0-rc.5",
|
|
38
38
|
"@fastify/deepmerge": "^1.3.0",
|
|
39
|
-
"@iconify-json/fa6-brands": "^1.1.
|
|
40
|
-
"@iconify-json/heroicons": "^1.1.
|
|
41
|
-
"@iconify-json/logos": "^1.1.
|
|
39
|
+
"@iconify-json/fa6-brands": "^1.1.14",
|
|
40
|
+
"@iconify-json/heroicons": "^1.1.14",
|
|
41
|
+
"@iconify-json/logos": "^1.1.39",
|
|
42
42
|
"@types/gtag.js": "^0.0.18",
|
|
43
43
|
"@vite-pwa/astro": "^0.1.5",
|
|
44
44
|
"@vueuse/core": "10.6.1",
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
"semver": "^7.5.4",
|
|
54
54
|
"sharp": "^0.32.6",
|
|
55
55
|
"tailwindcss": "^3.3.5",
|
|
56
|
-
"unocss": "^0.57.
|
|
56
|
+
"unocss": "^0.57.7",
|
|
57
57
|
"unplugin-auto-import": "^0.16.7",
|
|
58
58
|
"vite": "^4.5.0",
|
|
59
|
-
"vite-plugin-pwa": "^0.17.
|
|
60
|
-
"vue": "^3.3.
|
|
59
|
+
"vite-plugin-pwa": "^0.17.2",
|
|
60
|
+
"vue": "^3.3.9"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@cloudcommerce/eslint": "workspace:*",
|
|
64
64
|
"@cloudcommerce/types": "workspace:*",
|
|
65
|
-
"@vue/runtime-core": "^3.3.
|
|
65
|
+
"@vue/runtime-core": "^3.3.9"
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -21,7 +21,7 @@ select {
|
|
|
21
21
|
background-color: var(--c-background);
|
|
22
22
|
border-color: theme('colors.base.500');
|
|
23
23
|
border-width: 1px;
|
|
24
|
-
border-radius:
|
|
24
|
+
border-radius: theme('borderRadius.DEFAULT');
|
|
25
25
|
padding-top: 0.5rem;
|
|
26
26
|
padding-right: 0.75rem;
|
|
27
27
|
padding-bottom: 0.5rem;
|
|
@@ -31,21 +31,23 @@ select {
|
|
|
31
31
|
--un-shadow: 0 0 #0000;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
[type='
|
|
36
|
-
[type='
|
|
37
|
-
[type='
|
|
38
|
-
[type='
|
|
39
|
-
[type='
|
|
40
|
-
[type='
|
|
41
|
-
[type='
|
|
42
|
-
[type='
|
|
43
|
-
[type='
|
|
44
|
-
[type='
|
|
45
|
-
[type='
|
|
46
|
-
[
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
:where(
|
|
35
|
+
[type='text'],
|
|
36
|
+
[type='email'],
|
|
37
|
+
[type='url'],
|
|
38
|
+
[type='password'],
|
|
39
|
+
[type='number'],
|
|
40
|
+
[type='date'],
|
|
41
|
+
[type='datetime-local'],
|
|
42
|
+
[type='month'],
|
|
43
|
+
[type='search'],
|
|
44
|
+
[type='tel'],
|
|
45
|
+
[type='time'],
|
|
46
|
+
[type='week'],
|
|
47
|
+
[multiple],
|
|
48
|
+
textarea,
|
|
49
|
+
select
|
|
50
|
+
):focus {
|
|
49
51
|
outline: 2px solid transparent;
|
|
50
52
|
outline-offset: 2px;
|
|
51
53
|
--un-ring-inset: var(--un-empty,/*!*/ /*!*/);
|
|
@@ -140,8 +142,10 @@ select {
|
|
|
140
142
|
border-radius: 100%;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
|
-
|
|
144
|
-
[type='
|
|
145
|
+
:where(
|
|
146
|
+
[type='checkbox'],
|
|
147
|
+
[type='radio']
|
|
148
|
+
):focus {
|
|
145
149
|
outline: 2px solid transparent;
|
|
146
150
|
outline-offset: 2px;
|
|
147
151
|
--un-ring-inset: var(--un-empty,/*!*/ /*!*/);
|
|
@@ -153,8 +157,10 @@ select {
|
|
|
153
157
|
box-shadow: var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);
|
|
154
158
|
}
|
|
155
159
|
|
|
156
|
-
|
|
157
|
-
[type='
|
|
160
|
+
:where(
|
|
161
|
+
[type='checkbox'],
|
|
162
|
+
[type='radio']
|
|
163
|
+
):checked {
|
|
158
164
|
border-color: transparent;
|
|
159
165
|
background-color: currentColor;
|
|
160
166
|
background-size: 100% 100%;
|
|
@@ -162,23 +168,23 @@ select {
|
|
|
162
168
|
background-repeat: no-repeat;
|
|
163
169
|
}
|
|
164
170
|
|
|
165
|
-
[type='checkbox']:checked {
|
|
171
|
+
:where([type='checkbox']):checked {
|
|
166
172
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
|
167
173
|
}
|
|
168
174
|
|
|
169
|
-
[type='radio']:checked {
|
|
175
|
+
:where([type='radio']):checked {
|
|
170
176
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
|
171
177
|
}
|
|
172
178
|
|
|
173
|
-
|
|
174
|
-
[type='checkbox']
|
|
175
|
-
[type='radio']
|
|
176
|
-
|
|
179
|
+
:where(
|
|
180
|
+
[type='checkbox'],
|
|
181
|
+
[type='radio']
|
|
182
|
+
):where(:checked):is(:hover, :focus) {
|
|
177
183
|
border-color: transparent;
|
|
178
184
|
background-color: currentColor;
|
|
179
185
|
}
|
|
180
186
|
|
|
181
|
-
[type='checkbox']:indeterminate {
|
|
187
|
+
:where([type='checkbox']):indeterminate {
|
|
182
188
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
|
|
183
189
|
border-color: transparent;
|
|
184
190
|
background-color: currentColor;
|
|
@@ -187,8 +193,7 @@ select {
|
|
|
187
193
|
background-repeat: no-repeat;
|
|
188
194
|
}
|
|
189
195
|
|
|
190
|
-
[type='checkbox']:indeterminate:hover,
|
|
191
|
-
[type='checkbox']:indeterminate:focus {
|
|
196
|
+
:where([type='checkbox']:indeterminate):is(:hover, :focus) {
|
|
192
197
|
border-color: transparent;
|
|
193
198
|
background-color: currentColor;
|
|
194
199
|
}
|
|
@@ -203,7 +208,7 @@ select {
|
|
|
203
208
|
line-height: inherit;
|
|
204
209
|
}
|
|
205
210
|
|
|
206
|
-
[type='file']:focus {
|
|
211
|
+
:where([type='file']):focus {
|
|
207
212
|
outline: 1px solid ButtonText;
|
|
208
213
|
outline: 1px auto -webkit-focus-ring-color;
|
|
209
214
|
}
|
|
@@ -36,7 +36,8 @@ export interface Props {
|
|
|
36
36
|
index?: number;
|
|
37
37
|
autoplay?: number; // milliseconds
|
|
38
38
|
axis?: 'x' | 'y';
|
|
39
|
-
hasControls?: boolean
|
|
39
|
+
hasControls?: boolean;
|
|
40
|
+
wrapperKey?: string | number | null;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -203,6 +204,7 @@ onMounted(() => {
|
|
|
203
204
|
window.addEventListener('resize', onResize);
|
|
204
205
|
}
|
|
205
206
|
});
|
|
207
|
+
watch(toRef(props, 'wrapperKey'), calcOnInit);
|
|
206
208
|
onBeforeUnmount(() => {
|
|
207
209
|
if (!import.meta.env.SSR) {
|
|
208
210
|
window.removeEventListener('resize', onResize);
|
|
@@ -18,7 +18,7 @@ const isX = axis === 'x';
|
|
|
18
18
|
type="button"
|
|
19
19
|
:aria-label="!isPrev ? $t.i19next : $t.i19previous"
|
|
20
20
|
@click="changeSlide(!isPrev ? 1 : -1)"
|
|
21
|
-
class="
|
|
21
|
+
class="group absolute z-[2]"
|
|
22
22
|
:class="isX
|
|
23
23
|
? `${(!isPrev ? 'right-0' : 'left-0')} top-0`
|
|
24
24
|
: `${(!isPrev ? 'bottom-0' : 'top-0')} left-0`"
|