cloudcommerce 2.10.2 → 2.10.4
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/.vscode/settings.json +3 -3
- package/CHANGELOG.md +15 -0
- package/ecomplus-stores/barradoce/functions/many/package.json +3 -3
- package/ecomplus-stores/barradoce/functions/ssr/content/pages/products.json +1 -4
- package/ecomplus-stores/barradoce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barradoce/functions/ssr/{tailwind.config.cjs → tailwind.config.js} +3 -3
- package/ecomplus-stores/barradoce/functions/ssr/uno.config.js +4 -0
- package/ecomplus-stores/barradoce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barradoce/package.json +2 -2
- package/ecomplus-stores/barradoce/tailwind.config.js +8 -0
- package/package.json +4 -4
- package/packages/api/package.json +1 -1
- package/packages/apps/affiliate-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 +3 -3
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +3 -3
- package/packages/apps/fb-conversions/package.json +3 -3
- package/packages/apps/flash-courier/package.json +2 -2
- package/packages/apps/frenet/package.json +3 -3
- package/packages/apps/galaxpay/package.json +3 -3
- package/packages/apps/google-analytics/package.json +3 -3
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/mandae/package.json +2 -2
- package/packages/apps/melhor-envio/package.json +3 -3
- package/packages/apps/mercadopago/package.json +3 -3
- package/packages/apps/pagarme/package.json +3 -3
- package/packages/apps/pagarme-v5/package.json +2 -2
- package/packages/apps/paghiper/package.json +3 -3
- package/packages/apps/pix/package.json +3 -3
- package/packages/apps/tiny-erp/package.json +3 -3
- package/packages/apps/webhooks/package.json +3 -3
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/base.eslintrc.cjs +1 -0
- package/packages/eslint/package.json +4 -4
- package/packages/events/package.json +3 -3
- package/packages/feeds/package.json +2 -2
- package/packages/firebase/package.json +3 -3
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +3 -3
- package/packages/passport/package.json +3 -3
- package/packages/ssr/package.json +3 -3
- package/packages/storefront/config/{storefront.tailwind.cjs → storefront.tailwind.mjs} +19 -19
- package/packages/storefront/config/{storefront.unocss.cjs → storefront.unocss.mjs} +9 -9
- package/packages/storefront/dist/client/_astro/AccountPage.Cf0WE6GF.js +1 -0
- package/packages/storefront/dist/client/_astro/CartSidebar.DAvJKL2c.js +1 -0
- package/packages/storefront/dist/client/_astro/HeroSlider.DyjSOy4Q.js +1 -0
- package/packages/storefront/dist/client/_astro/PitchBar.CEGsee2q.js +1 -0
- package/packages/storefront/dist/client/_astro/Prices.9RhV7hCY.js +1 -0
- package/packages/storefront/dist/client/_astro/ProductDetails.BpZtnS8j.js +7 -0
- package/packages/storefront/dist/client/_astro/ProductShelf.C0TU_sRb.js +1 -0
- package/packages/storefront/dist/client/_astro/SearchModal.DWNSfxML.js +1 -0
- package/packages/storefront/dist/client/_astro/SearchShowcase.CUkbXIRk.js +1 -0
- package/packages/storefront/dist/client/_astro/ShippingCalculator.DZSCK4xv.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.D7qqQxFD.js +7 -0
- package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.3R8ooc_r.js → _plugin-vue_export-helper.6K9uDcVo.js} +1 -1
- package/packages/storefront/dist/client/_astro/_slug_.HhgCFKHv.css +1 -0
- package/packages/storefront/dist/client/_astro/client.D_V8TfA5.js +1 -0
- package/packages/storefront/dist/client/_astro/customer-session.Cctko5_9.js +7 -0
- package/packages/storefront/dist/client/_astro/{firebase-app.CBckq0Sj.js → firebase-app.CmI1zl7o.js} +1 -1
- package/packages/storefront/dist/client/_astro/{format-money.vLicYTv9.js → format-money.D19_eJVX.js} +1 -1
- package/packages/storefront/dist/client/_astro/{grid-title.CxNZApGL.js → grid-title.CZdq2sDS.js} +1 -1
- package/packages/storefront/dist/client/_astro/hoisted.BeKMioW4.js +1 -0
- package/packages/storefront/dist/client/_astro/hoisted.Bf1gCkSN.js +1 -0
- package/packages/storefront/dist/client/_astro/hoisted.CSjieYcR.js +8 -0
- package/packages/storefront/dist/client/_astro/{i18n.BE5r_SIU.js → i18n.DPcLqMFO.js} +1 -1
- package/packages/storefront/dist/client/_astro/{img.CB-F9VLo.js → img.Be85e5da.js} +1 -1
- package/packages/storefront/dist/client/_astro/{index-bea2a320.CHELEM8n.js → index-a8cf6c8f.k99a-gIB.js} +99 -99
- package/packages/storefront/dist/client/_astro/index.BCNoXz_Z.js +1 -0
- package/packages/storefront/dist/client/_astro/index.BgtOIB20.js +1 -0
- package/packages/storefront/dist/client/_astro/index.DlxZwqDP.js +1 -0
- package/packages/storefront/dist/client/_astro/modules-info.BswYf_-7.js +1 -0
- package/packages/storefront/dist/client/_astro/name.Dll7Wwmg.js +1 -0
- package/packages/storefront/dist/client/_astro/page.FdSlRisw.js +1 -0
- package/packages/storefront/dist/client/_astro/sf-utils.C9ygvYIB.js +13 -0
- package/packages/storefront/dist/client/_astro/shopping-cart.Cqc6p5UR.js +1 -0
- package/packages/storefront/dist/client/_astro/use-analytics.bP3a5cR0.js +1 -0
- package/packages/storefront/dist/client/_astro/{use-cms-preview.CPGTKut8.js → use-cms-preview.BxKK4a1X.js} +1 -1
- package/packages/storefront/dist/client/_astro/use-product-card.Cj9Q-Y1A.js +1 -0
- package/packages/storefront/dist/client/_astro/{use-text-value.D4Rw7N4D.js → use-text-value.DT0v9Yj_.js} +2 -2
- package/packages/storefront/dist/server/_astro-internal_middleware.mjs +4 -0
- package/packages/storefront/dist/server/chunks/404_jTV5wvby.mjs +5 -0
- package/packages/storefront/dist/server/chunks/{CartSidebar_lUckG0fs.mjs → CartSidebar_CV9qwGNE.mjs} +2 -1
- package/packages/storefront/dist/server/chunks/{SearchModal_B2f22Mff.mjs → SearchModal_Cw1ECnXI.mjs} +37 -15
- package/packages/storefront/dist/server/chunks/_.._k1NruPDv.mjs +5 -0
- package/packages/storefront/dist/server/chunks/_astro-internal_middleware_DIG56BhA.mjs +40 -0
- package/packages/storefront/dist/server/chunks/{_page__Ex4FhYrc.mjs → _page__BKNX3RH7.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{account_B7sLjsXD.mjs → account_BZOa6Kmc.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/astro/{assets-service_BOyOfKDQ.mjs → assets-service_MW85B416.mjs} +5 -2
- package/packages/storefront/dist/server/chunks/{astro_B5LBy7PI.mjs → astro_8KdHu_Gf.mjs} +83 -113
- package/packages/storefront/dist/server/chunks/{index_C2hkTn-w.mjs → index_CZ6FSUEb.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{index_BOh755yP.mjs → index_D1o9pXka.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/{node_DavlI8UF.mjs → node_Khrf-0bH.mjs} +1 -1
- package/packages/storefront/dist/server/chunks/pages/{__RXg_hYeF.mjs → 404_BPSxJtl3.mjs} +675 -4955
- package/packages/storefront/dist/server/chunks/pages/__ByRpsTnC.mjs +4630 -0
- package/packages/storefront/dist/server/chunks/pages/{_page__Dyte93f2.mjs → _page__BasreLue.mjs} +32 -9
- package/packages/storefront/dist/server/chunks/pages/{account_C66y6_Y9.mjs → account_MZBvNAyZ.mjs} +2 -2
- package/packages/storefront/dist/server/chunks/pages/{index_EO1hhrt8.mjs → index_CV2ET14h.mjs} +24 -9
- package/packages/storefront/dist/server/chunks/pages/{node_hc25rqYt.mjs → node_1tKTIKG-.mjs} +145 -11
- package/packages/storefront/dist/server/chunks/pages/{~fallback_-K3esUV3.mjs → ~fallback_BVYzgZ5p.mjs} +2 -28
- package/packages/storefront/dist/server/chunks/{~fallback_DQ6yB81s.mjs → ~fallback_xH9bJF7E.mjs} +1 -1
- package/packages/storefront/dist/server/entry.mjs +469 -507
- package/packages/storefront/dist/server/manifest_S9lE9v48.mjs +206 -0
- package/packages/storefront/dist/server/middleware.mjs +4 -0
- package/packages/storefront/dist/server/renderers.mjs +39 -50
- package/packages/storefront/package.json +7 -7
- package/packages/storefront/src/decap-cms/get-cms-config.ts +0 -1
- package/packages/storefront/src/images/picture-base.ts +1 -1
- package/packages/storefront/src/lib/assets/decap-cms.css +13 -3
- package/packages/storefront/src/lib/components/Picture.astro +1 -1
- package/packages/storefront/src/lib/composables/use-product-shelf.ts +1 -1
- package/packages/storefront/tailwind.config.js +3 -0
- package/packages/storefront/uno.config.js +3 -0
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/tailwind.config.js +6 -0
- package/ecomplus-stores/barradoce/functions/ssr/uno.config.cjs +0 -5
- package/ecomplus-stores/barradoce/tailwind.config.cjs +0 -7
- package/packages/storefront/dist/client/_astro/AccountPage.Cq0jrJE5.js +0 -1
- package/packages/storefront/dist/client/_astro/CartSidebar.DkX2BE1w.js +0 -1
- package/packages/storefront/dist/client/_astro/HeroSlider.CZujn8cU.js +0 -1
- package/packages/storefront/dist/client/_astro/PitchBar.DhcSEQPV.js +0 -1
- package/packages/storefront/dist/client/_astro/Prices.D1uItqV5.js +0 -1
- package/packages/storefront/dist/client/_astro/ProductDetails.DDNMc2oj.js +0 -7
- package/packages/storefront/dist/client/_astro/ProductShelf.BwRDTU-V.js +0 -1
- package/packages/storefront/dist/client/_astro/SearchModal.DgrtGsIu.js +0 -1
- package/packages/storefront/dist/client/_astro/SearchShowcase.DggdcmcI.js +0 -1
- package/packages/storefront/dist/client/_astro/ShippingCalculator.B5JIh5xw.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.CIsQLhMR.js +0 -7
- package/packages/storefront/dist/client/_astro/_slug_.CnXAH2gj.css +0 -1
- package/packages/storefront/dist/client/_astro/client.mwowSQrH.js +0 -1
- package/packages/storefront/dist/client/_astro/customer-session.BAjMMoBA.js +0 -7
- package/packages/storefront/dist/client/_astro/hoisted.B8Lw6O9a.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.D4m7OTKi.js +0 -8
- package/packages/storefront/dist/client/_astro/hoisted.DSAg3dYh.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.D_dlmSy5.js +0 -1
- package/packages/storefront/dist/client/_astro/index.BAyyMfaO.js +0 -1
- package/packages/storefront/dist/client/_astro/index.CTTHpJlV.js +0 -1
- package/packages/storefront/dist/client/_astro/modules-info.C6KJuGeB.js +0 -1
- package/packages/storefront/dist/client/_astro/name.CIPngEFN.js +0 -1
- package/packages/storefront/dist/client/_astro/server-data.CUHTES8a.js +0 -1
- package/packages/storefront/dist/client/_astro/sf-utils.xmJHVMAX.js +0 -13
- package/packages/storefront/dist/client/_astro/shopping-cart.DGvCZWRZ.js +0 -1
- package/packages/storefront/dist/client/_astro/use-analytics.BWhF_fCv.js +0 -1
- package/packages/storefront/dist/client/_astro/use-product-card.C-RbCwna.js +0 -1
- package/packages/storefront/dist/server/_noop-middleware.mjs +0 -3
- package/packages/storefront/dist/server/chunks/_.._CvgSOb3Z.mjs +0 -5
- package/packages/storefront/dist/server/manifest_bZVxjk3o.mjs +0 -201
- package/packages/storefront/tailwind.config.cjs +0 -3
- package/packages/storefront/uno.config.cjs +0 -3
- package/tailwind.config.cjs +0 -5
package/packages/storefront/dist/server/chunks/pages/{_page__Dyte93f2.mjs → _page__BasreLue.mjs}
RENAMED
|
@@ -1,12 +1,33 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute,
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, l as renderComponent, n as Fragment, m as maybeRenderHead, u as unescapeHTML } from '../astro_8KdHu_Gf.mjs';
|
|
2
2
|
import 'kleur/colors';
|
|
3
|
-
import {
|
|
3
|
+
import { J as getConfig, _ as _export_sfc, K as loadRouteContext, L as $$Base, M as $$BaseHead, N as $$PageHeader, O as $$PageFooter } from './404_BPSxJtl3.mjs';
|
|
4
|
+
import { formatDate } from '@ecomplus/utils';
|
|
4
5
|
import { useSSRContext, defineComponent, computed, resolveComponent, mergeProps } from 'vue';
|
|
6
|
+
import { P as Pagination } from './__ByRpsTnC.mjs';
|
|
5
7
|
import { ssrRenderAttrs, ssrRenderAttr, ssrRenderComponent, ssrInterpolate, ssrRenderList } from 'vue/server-renderer';
|
|
6
8
|
|
|
7
9
|
const POSTS_PER_PAGE = 13;
|
|
8
10
|
const countBlogPages = async () => {
|
|
9
|
-
const
|
|
11
|
+
const { getContent } = getConfig();
|
|
12
|
+
const postSlugs = await getContent("blog/");
|
|
13
|
+
const datePerSlug = {};
|
|
14
|
+
await Promise.all(postSlugs.map(async (slug) => {
|
|
15
|
+
const content = await getContent(`blog/${slug}`);
|
|
16
|
+
datePerSlug[slug] = content?.date;
|
|
17
|
+
}));
|
|
18
|
+
postSlugs.sort((a, b) => {
|
|
19
|
+
const dateA = datePerSlug[a];
|
|
20
|
+
const dateB = datePerSlug[b];
|
|
21
|
+
if (!dateB)
|
|
22
|
+
return -1;
|
|
23
|
+
if (!dateA)
|
|
24
|
+
return 1;
|
|
25
|
+
if (dateA > dateB)
|
|
26
|
+
return -1;
|
|
27
|
+
if (dateA < dateB)
|
|
28
|
+
return 1;
|
|
29
|
+
return 0;
|
|
30
|
+
});
|
|
10
31
|
const totalPages = Math.ceil(postSlugs.length / POSTS_PER_PAGE) || 1;
|
|
11
32
|
return { postSlugs, totalPages };
|
|
12
33
|
};
|
|
@@ -23,7 +44,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
44
|
const props = __props;
|
|
24
45
|
const featured = computed(() => props.posts[0]);
|
|
25
46
|
const gridPosts = computed(() => props.posts.slice(1));
|
|
26
|
-
const __returned__ = { props, featured, gridPosts,
|
|
47
|
+
const __returned__ = { props, featured, gridPosts, get formatDate() {
|
|
48
|
+
return formatDate;
|
|
49
|
+
}, Pagination };
|
|
27
50
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
28
51
|
return __returned__;
|
|
29
52
|
}
|
|
@@ -41,9 +64,9 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
|
|
|
41
64
|
} else {
|
|
42
65
|
_push(`<!---->`);
|
|
43
66
|
}
|
|
44
|
-
_push(`</a><div class="
|
|
67
|
+
_push(`</a><div class="grow pt-5 prose"><small class="font-semibold uppercase text-base-500">Blog</small><a${ssrRenderAttr("href", `/posts/${$setup.featured.slug}`)} class="not-prose"><h1 class="mb-4 mt-2 ui-title">${ssrInterpolate($setup.featured.title)}</h1></a><p class="text-xl">${$setup.featured.description}</p>`);
|
|
45
68
|
if ($setup.featured.date) {
|
|
46
|
-
_push(`<span class="text-base-600
|
|
69
|
+
_push(`<span class="mr-4 text-base-600">${ssrInterpolate($setup.formatDate($setup.featured.date))}</span>`);
|
|
47
70
|
} else {
|
|
48
71
|
_push(`<!---->`);
|
|
49
72
|
}
|
|
@@ -52,7 +75,7 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
|
|
|
52
75
|
} else {
|
|
53
76
|
_push(`<!---->`);
|
|
54
77
|
}
|
|
55
|
-
_push(`<div class="not-prose
|
|
78
|
+
_push(`<div class="mt-5 not-prose"><a${ssrRenderAttr("href", `/posts/${$setup.featured.slug}`)} class="ui-btn-lg ui-btn-primary"><i class="mr-1 i-chevron-right"></i> ${ssrInterpolate("Ver mais")}</a></div></div></article>`);
|
|
56
79
|
} else {
|
|
57
80
|
_push(`<!---->`);
|
|
58
81
|
}
|
|
@@ -67,9 +90,9 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
|
|
|
67
90
|
} else {
|
|
68
91
|
_push(`<!---->`);
|
|
69
92
|
}
|
|
70
|
-
_push(`<div class="
|
|
93
|
+
_push(`<div class="px-3 pt-4 text-base-700"><h3 class="mb-1 text-xl font-medium text-base-800">${ssrInterpolate(post.title)}</h3><p>${post.description}</p>`);
|
|
71
94
|
if (post.date) {
|
|
72
|
-
_push(`<small class="text-base-500
|
|
95
|
+
_push(`<small class="mt-1 block text-base-500">${ssrInterpolate($setup.formatDate(post.date))}</small>`);
|
|
73
96
|
} else {
|
|
74
97
|
_push(`<!---->`);
|
|
75
98
|
}
|
package/packages/storefront/dist/server/chunks/pages/{account_C66y6_Y9.mjs → account_MZBvNAyZ.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute,
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, l as renderComponent, n as Fragment, m as maybeRenderHead } from '../astro_8KdHu_Gf.mjs';
|
|
2
2
|
import 'kleur/colors';
|
|
3
|
-
import {
|
|
3
|
+
import { K as loadRouteContext, M as $$BaseHead, P as i19myAccount, $ as $$Picture, L as $$Base } from './404_BPSxJtl3.mjs';
|
|
4
4
|
|
|
5
5
|
const $$Astro = createAstro("https://demo.ecomplus.app");
|
|
6
6
|
const $$Account = createComponent(async ($$result, $$props, $$slots) => {
|
package/packages/storefront/dist/server/chunks/pages/{index_EO1hhrt8.mjs → index_CV2ET14h.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute,
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, l as renderComponent, n as Fragment, u as unescapeHTML } from '../astro_8KdHu_Gf.mjs';
|
|
2
2
|
import 'kleur/colors';
|
|
3
|
-
import {
|
|
4
|
-
import { useSSRContext, defineComponent, resolveComponent, mergeProps, withCtx, createTextVNode, toDisplayString, createVNode } from 'vue';
|
|
5
|
-
import { ssrRenderAttrs, ssrRenderSlot, ssrInterpolate, ssrRenderList
|
|
3
|
+
import { K as loadRouteContext, M as $$BaseHead, L as $$Base, Q as FooterStamps, _ as _export_sfc, R as i19shoppingCart, $ as $$Picture } from './404_BPSxJtl3.mjs';
|
|
4
|
+
import { useSSRContext, defineComponent, resolveComponent, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, createVNode } from 'vue';
|
|
5
|
+
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderSlot, ssrInterpolate, ssrRenderList } from 'vue/server-renderer';
|
|
6
6
|
|
|
7
7
|
const cmsCustomCss = "body{[class*=FieldLabel]{font-size:13px;text-transform:none;font-weight:500;width:calc(100% - 30px);~input,~textarea{padding:12px 14px;border-width:1px}~[class*=ColorSwatch]~input{padding:16px 70px}~div[class*=\"83wr9v\"]{padding:14px}~div:not(:has([class*=TopBarContainer])){&:has([class$=-control]){border-width:1px;[class$=-control]{padding-left:4px}}&:has([class*=ImageWrapper]){border-width:1px}}}[class*=\"1qu85o2-FieldLabel\"]{background:none}[class*=TopBarContainer]{[class*=ExpandButtonContainer]{display:none}}[class*=ControlContainer]:has([class*=TopBarContainer]){>[class*=FieldLabel]{display:none}>div{border-radius:5px}}[class*=listControlItem]{[class*=ControlContainer]:first-of-type{margin-top:12px}[class*=DragIconContainer] [class*=IconWrapper]{width:26px;height:26px}}[class*=StyledListItemTopBar]{background-color:#dfdfe399;~div{border-color:#dfdfe399;border-width:1px}}[class*=NestedObjectLabel]{background-color:#dfdfe333}[class*=ControlContainer]{[class*=ImageWrapper]{width:100%;margin:0 0 12px}[class*=FileWidgetButton]{display:inline-block;margin:0 12px 0 0}[class*=FileWidgetButton-button]:not(:first-of-type){display:none}}.Pane.Pane1{max-width:600px}}";
|
|
8
8
|
|
|
@@ -49,9 +49,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
49
49
|
});
|
|
50
50
|
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
51
51
|
const _component_ALink = resolveComponent("ALink");
|
|
52
|
-
_push(`<article${ssrRenderAttrs(mergeProps({ class: "flex min-h-screen flex-col justify-end" }, _attrs))}><section class="bg-base-50"><div class="
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
_push(`<article${ssrRenderAttrs(mergeProps({ class: "flex min-h-screen flex-col justify-end" }, _attrs))}><section class="bg-base-50"><div class="flex flex-wrap items-center justify-center gap-6 ui-section lg:gap-12">`);
|
|
53
|
+
_push(ssrRenderComponent(_component_ALink, { href: "/" }, {
|
|
54
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
55
|
+
if (_push2) {
|
|
56
|
+
ssrRenderSlot(_ctx.$slots, "logo", {}, null, _push2, _parent2, _scopeId);
|
|
57
|
+
} else {
|
|
58
|
+
return [
|
|
59
|
+
renderSlot(_ctx.$slots, "logo")
|
|
60
|
+
];
|
|
61
|
+
}
|
|
62
|
+
}),
|
|
63
|
+
_: 3
|
|
64
|
+
}, _parent));
|
|
65
|
+
_push(`<div class="flex items-center gap-2"><i class="m-0 bg-success-400 text-3xl i-shield-check-solid"></i><span class="text-base text-base-600">${ssrInterpolate("Compra segura")}</span></div></div></section><section class="grow"><article id="storefront-app"></article></section><section class="mt-4 bg-base-50 lg:mt-8"><nav class="ui-section-slim"><ul class="mt-6 flex flex-wrap justify-center gap-6 lg:gap-8"><!--[-->`);
|
|
55
66
|
ssrRenderList(_ctx.$settings.serviceLinks, ({ title, href }, i) => {
|
|
56
67
|
_push(`<li>`);
|
|
57
68
|
_push(ssrRenderComponent(_component_ALink, {
|
|
@@ -61,11 +72,11 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
|
|
|
61
72
|
}, {
|
|
62
73
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
63
74
|
if (_push2) {
|
|
64
|
-
_push2(`${ssrInterpolate(title)} <i class="bg-base-300 i-arrow-top-right-on-square
|
|
75
|
+
_push2(`${ssrInterpolate(title)} <i class="ml-0.5 bg-base-300 i-arrow-top-right-on-square"${_scopeId}></i>`);
|
|
65
76
|
} else {
|
|
66
77
|
return [
|
|
67
78
|
createTextVNode(toDisplayString(title) + " ", 1),
|
|
68
|
-
createVNode("i", { class: "bg-base-300 i-arrow-top-right-on-square
|
|
79
|
+
createVNode("i", { class: "ml-0.5 bg-base-300 i-arrow-top-right-on-square" })
|
|
69
80
|
];
|
|
70
81
|
}
|
|
71
82
|
}),
|
|
@@ -144,6 +155,10 @@ ${renderComponent($$result, "Base", $$Base, {}, { "base-head": ($$result2) => re
|
|
|
144
155
|
#storefront-app p {
|
|
145
156
|
margin-bottom: 1rem;
|
|
146
157
|
}
|
|
158
|
+
#storefront-app .h4 {
|
|
159
|
+
height: auto;
|
|
160
|
+
min-height: 1rem;
|
|
161
|
+
}
|
|
147
162
|
</style>
|
|
148
163
|
` })}`, "default": ($$result2) => renderTemplate`
|
|
149
164
|
|
package/packages/storefront/dist/server/chunks/pages/{node_hc25rqYt.mjs → node_1tKTIKG-.mjs}
RENAMED
|
@@ -1,8 +1,116 @@
|
|
|
1
|
+
import { isAbsolute } from 'node:path';
|
|
2
|
+
import { fileURLToPath } from 'node:url';
|
|
1
3
|
import { isRemotePath } from '@astrojs/internal-helpers/path';
|
|
2
4
|
import { readFile } from 'fs/promises';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
5
|
+
import { A as AstroError, I as InvalidImageService, c as isRemoteAllowed } from '../astro/assets-service_MW85B416.mjs';
|
|
6
|
+
import { S as imageConfig, T as assetsDir, U as outDir } from './404_BPSxJtl3.mjs';
|
|
7
|
+
|
|
8
|
+
function getDefaultExportFromCjs (x) {
|
|
9
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @param typeMap [Object] Map of MIME type -> Array[extensions]
|
|
14
|
+
* @param ...
|
|
15
|
+
*/
|
|
16
|
+
function Mime$1() {
|
|
17
|
+
this._types = Object.create(null);
|
|
18
|
+
this._extensions = Object.create(null);
|
|
19
|
+
|
|
20
|
+
for (let i = 0; i < arguments.length; i++) {
|
|
21
|
+
this.define(arguments[i]);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
this.define = this.define.bind(this);
|
|
25
|
+
this.getType = this.getType.bind(this);
|
|
26
|
+
this.getExtension = this.getExtension.bind(this);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Define mimetype -> extension mappings. Each key is a mime-type that maps
|
|
31
|
+
* to an array of extensions associated with the type. The first extension is
|
|
32
|
+
* used as the default extension for the type.
|
|
33
|
+
*
|
|
34
|
+
* e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']});
|
|
35
|
+
*
|
|
36
|
+
* If a type declares an extension that has already been defined, an error will
|
|
37
|
+
* be thrown. To suppress this error and force the extension to be associated
|
|
38
|
+
* with the new type, pass `force`=true. Alternatively, you may prefix the
|
|
39
|
+
* extension with "*" to map the type to extension, without mapping the
|
|
40
|
+
* extension to the type.
|
|
41
|
+
*
|
|
42
|
+
* e.g. mime.define({'audio/wav', ['wav']}, {'audio/x-wav', ['*wav']});
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
* @param map (Object) type definitions
|
|
46
|
+
* @param force (Boolean) if true, force overriding of existing definitions
|
|
47
|
+
*/
|
|
48
|
+
Mime$1.prototype.define = function(typeMap, force) {
|
|
49
|
+
for (let type in typeMap) {
|
|
50
|
+
let extensions = typeMap[type].map(function(t) {
|
|
51
|
+
return t.toLowerCase();
|
|
52
|
+
});
|
|
53
|
+
type = type.toLowerCase();
|
|
54
|
+
|
|
55
|
+
for (let i = 0; i < extensions.length; i++) {
|
|
56
|
+
const ext = extensions[i];
|
|
57
|
+
|
|
58
|
+
// '*' prefix = not the preferred type for this extension. So fixup the
|
|
59
|
+
// extension, and skip it.
|
|
60
|
+
if (ext[0] === '*') {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if (!force && (ext in this._types)) {
|
|
65
|
+
throw new Error(
|
|
66
|
+
'Attempt to change mapping for "' + ext +
|
|
67
|
+
'" extension from "' + this._types[ext] + '" to "' + type +
|
|
68
|
+
'". Pass `force=true` to allow this, otherwise remove "' + ext +
|
|
69
|
+
'" from the list of extensions for "' + type + '".'
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
this._types[ext] = type;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Use first extension as default
|
|
77
|
+
if (force || !this._extensions[type]) {
|
|
78
|
+
const ext = extensions[0];
|
|
79
|
+
this._extensions[type] = (ext[0] !== '*') ? ext : ext.substr(1);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Lookup a mime type based on extension
|
|
86
|
+
*/
|
|
87
|
+
Mime$1.prototype.getType = function(path) {
|
|
88
|
+
path = String(path);
|
|
89
|
+
let last = path.replace(/^.*[/\\]/, '').toLowerCase();
|
|
90
|
+
let ext = last.replace(/^.*\./, '').toLowerCase();
|
|
91
|
+
|
|
92
|
+
let hasPath = last.length < path.length;
|
|
93
|
+
let hasDot = ext.length < last.length - 1;
|
|
94
|
+
|
|
95
|
+
return (hasDot || !hasPath) && this._types[ext] || null;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Return file extension associated with a mime type
|
|
100
|
+
*/
|
|
101
|
+
Mime$1.prototype.getExtension = function(type) {
|
|
102
|
+
type = /^\s*([^;\s]*)/.test(type) && RegExp.$1;
|
|
103
|
+
return type && this._extensions[type.toLowerCase()] || null;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var Mime_1 = Mime$1;
|
|
107
|
+
|
|
108
|
+
var standard = {"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};
|
|
109
|
+
|
|
110
|
+
let Mime = Mime_1;
|
|
111
|
+
var lite = new Mime(standard);
|
|
112
|
+
|
|
113
|
+
const mime = /*@__PURE__*/getDefaultExportFromCjs(lite);
|
|
6
114
|
|
|
7
115
|
const decoder = new TextDecoder();
|
|
8
116
|
const toUTF8String = (input, start = 0, end = input.length) => decoder.decode(input.slice(start, end));
|
|
@@ -749,7 +857,7 @@ async function getConfiguredImageService() {
|
|
|
749
857
|
if (!globalThis?.astroAsset?.imageService) {
|
|
750
858
|
const { default: service } = await import(
|
|
751
859
|
// @ts-expect-error
|
|
752
|
-
'../astro/assets-
|
|
860
|
+
'../astro/assets-service_MW85B416.mjs'
|
|
753
861
|
).then(n => n.s).catch((e) => {
|
|
754
862
|
const error = new AstroError(InvalidImageService);
|
|
755
863
|
error.cause = e;
|
|
@@ -789,13 +897,30 @@ const etag = (payload, weak = false) => {
|
|
|
789
897
|
};
|
|
790
898
|
|
|
791
899
|
async function loadLocalImage(src, url) {
|
|
792
|
-
const
|
|
900
|
+
const assetsDirPath = fileURLToPath(assetsDir);
|
|
901
|
+
let fileUrl;
|
|
902
|
+
{
|
|
903
|
+
try {
|
|
904
|
+
fileUrl = new URL("." + src, outDir);
|
|
905
|
+
const filePath = fileURLToPath(fileUrl);
|
|
906
|
+
if (!isAbsolute(filePath) || !filePath.startsWith(assetsDirPath)) {
|
|
907
|
+
return void 0;
|
|
908
|
+
}
|
|
909
|
+
} catch (err) {
|
|
910
|
+
return void 0;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
793
913
|
let buffer = void 0;
|
|
794
914
|
try {
|
|
795
|
-
buffer = await readFile(
|
|
915
|
+
buffer = await readFile(fileUrl);
|
|
796
916
|
} catch (e) {
|
|
797
|
-
|
|
798
|
-
|
|
917
|
+
try {
|
|
918
|
+
const sourceUrl = new URL(src, url.origin);
|
|
919
|
+
buffer = await loadRemoteImage(sourceUrl);
|
|
920
|
+
} catch (err) {
|
|
921
|
+
console.error("Could not process image request:", err);
|
|
922
|
+
return void 0;
|
|
923
|
+
}
|
|
799
924
|
}
|
|
800
925
|
return buffer;
|
|
801
926
|
}
|
|
@@ -819,7 +944,11 @@ const GET = async ({ request }) => {
|
|
|
819
944
|
const url = new URL(request.url);
|
|
820
945
|
const transform = await imageService.parseURL(url, imageConfig);
|
|
821
946
|
if (!transform?.src) {
|
|
822
|
-
|
|
947
|
+
const err = new Error(
|
|
948
|
+
"Incorrect transform returned by `parseURL`. Expected a transform with a `src` property."
|
|
949
|
+
);
|
|
950
|
+
console.error("Could not parse image transform from URL:", err);
|
|
951
|
+
return new Response("Internal Server Error", { status: 500 });
|
|
823
952
|
}
|
|
824
953
|
let inputBuffer = void 0;
|
|
825
954
|
if (isRemotePath(transform.src)) {
|
|
@@ -831,7 +960,7 @@ const GET = async ({ request }) => {
|
|
|
831
960
|
inputBuffer = await loadLocalImage(transform.src, url);
|
|
832
961
|
}
|
|
833
962
|
if (!inputBuffer) {
|
|
834
|
-
return new Response("
|
|
963
|
+
return new Response("Internal Server Error", { status: 500 });
|
|
835
964
|
}
|
|
836
965
|
const { data, format } = await imageService.transform(inputBuffer, transform, imageConfig);
|
|
837
966
|
return new Response(data, {
|
|
@@ -845,7 +974,12 @@ const GET = async ({ request }) => {
|
|
|
845
974
|
});
|
|
846
975
|
} catch (err) {
|
|
847
976
|
console.error("Could not process image request:", err);
|
|
848
|
-
return new Response(
|
|
977
|
+
return new Response(
|
|
978
|
+
`Internal Server Error`,
|
|
979
|
+
{
|
|
980
|
+
status: 500
|
|
981
|
+
}
|
|
982
|
+
);
|
|
849
983
|
}
|
|
850
984
|
};
|
|
851
985
|
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import { e as createAstro, f as createComponent, r as renderTemplate,
|
|
1
|
+
import { e as createAstro, f as createComponent, r as renderTemplate, h as addAttribute, l as renderComponent, n as Fragment } from '../astro_8KdHu_Gf.mjs';
|
|
2
2
|
import 'kleur/colors';
|
|
3
|
-
import {
|
|
4
|
-
import 'clsx';
|
|
5
|
-
|
|
6
|
-
const $$Astro$1 = createAstro("https://demo.ecomplus.app");
|
|
7
|
-
const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
8
|
-
const Astro2 = $$result.createAstro($$Astro$1, $$props, $$slots);
|
|
9
|
-
Astro2.self = $$Fallback;
|
|
10
|
-
return renderTemplate`${maybeRenderHead()}<main>
|
|
11
|
-
<article class="prose mx-auto px-8 pb-32 pt-20">
|
|
12
|
-
<h1>${i19error} :/</h1>
|
|
13
|
-
<p class="hidden text-xl" id="errorMsg">
|
|
14
|
-
${i19errorMsg}
|
|
15
|
-
</p>
|
|
16
|
-
<p class="hidden text-xl" id="404Msg">
|
|
17
|
-
${i19notFound} (404)
|
|
18
|
-
</p>
|
|
19
|
-
<p class="text-xl" id="loadingMsg">
|
|
20
|
-
... ... ...
|
|
21
|
-
</p>
|
|
22
|
-
<a href="/" class="text-2xl">
|
|
23
|
-
<i class="i-arrow-right mr-1 rotate-180"></i>
|
|
24
|
-
${i19home}
|
|
25
|
-
</a>
|
|
26
|
-
</article>
|
|
27
|
-
|
|
28
|
-
</main>`;
|
|
29
|
-
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Fallback.astro", void 0);
|
|
3
|
+
import { K as loadRouteContext, M as $$BaseHead, V as i19error, N as $$PageHeader, W as $$Fallback, O as $$PageFooter, L as $$Base } from './404_BPSxJtl3.mjs';
|
|
30
4
|
|
|
31
5
|
const $$Astro = createAstro("https://demo.ecomplus.app");
|
|
32
6
|
const $$fallback = createComponent(async ($$result, $$props, $$slots) => {
|