cloudcommerce 0.6.3 → 0.6.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/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/packages/api/lib/types/carts.d.ts +72 -20
- package/packages/api/lib/types/orders.d.ts +72 -20
- package/packages/api/lib/types/products.d.ts +82 -11
- package/packages/api/package.json +1 -1
- package/packages/api/src/types/carts.d.ts +72 -20
- package/packages/api/src/types/orders.d.ts +72 -20
- package/packages/api/src/types/products.d.ts +82 -11
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/frenet/package.json +1 -1
- package/packages/apps/galaxpay/package.json +1 -1
- package/packages/apps/google-analytics/package.json +1 -1
- package/packages/apps/infinitepay/package.json +1 -1
- package/packages/apps/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/lib/firebase/serve-storefront.js +3 -2
- package/packages/ssr/lib/firebase/serve-storefront.js.map +1 -1
- package/packages/ssr/package.json +1 -1
- package/packages/ssr/src/firebase/serve-storefront.ts +3 -2
- package/packages/storefront/dist/client/_astro/PitchBar.b3636d56.js +1 -0
- package/packages/storefront/dist/client/_astro/ShopHeader.44e0873d.js +4 -0
- package/packages/storefront/dist/client/_astro/{_...slug_.a594715c.css → _...slug_.cd49465e.css} +1 -1
- package/packages/storefront/dist/client/_astro/client.14d15518.js +1 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/pages/{all.f15e2c35.mjs → all.7f368e08.mjs} +114 -56
- package/packages/storefront/dist/server/entry.mjs +56 -14
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/src/lib/components/CarouselControl.vue +4 -1
- package/packages/storefront/src/lib/components/globals/AImg.vue +53 -0
- package/packages/storefront/src/lib/layouts/BaseHead.astro +3 -1
- package/packages/storefront/src/lib/pages/_vue.ts +2 -0
- package/packages/storefront/src/vue-globals.d.ts +1 -0
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/PitchBar.5ced676e.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.05d64cc8.js +0 -4
- package/packages/storefront/dist/client/_astro/client.79615b8a.js +0 -1
- package/packages/storefront/dist/client/fallback/index.html +0 -79
- package/packages/storefront/dist/server/chunks/prerender.2527d85d.mjs +0 -2
|
@@ -709,9 +709,9 @@ const getImage = async (options) => {
|
|
|
709
709
|
return imgAttrs;
|
|
710
710
|
};
|
|
711
711
|
|
|
712
|
-
const $$Astro$
|
|
712
|
+
const $$Astro$i = createAstro("https://ecom2-002.web.app");
|
|
713
713
|
const $$BaseHead = createComponent(async ($$result, $$props, $$slots) => {
|
|
714
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
714
|
+
const Astro2 = $$result.createAstro($$Astro$i, $$props, $$slots);
|
|
715
715
|
Astro2.self = $$BaseHead;
|
|
716
716
|
const {
|
|
717
717
|
storeId,
|
|
@@ -771,17 +771,18 @@ ${cmsMetatags?.fb_app_id && renderTemplate`<meta property="fb:app_id"${addAttrib
|
|
|
771
771
|
<meta name="twitter:card" content="summary">
|
|
772
772
|
${cmsMetatags?.twitter_username && renderTemplate`<meta name="twitter:site"${addAttribute(cmsMetatags.twitter_username, "content")}>`}
|
|
773
773
|
<meta name="ecom-store-id"${addAttribute(String(storeId), "content")}>
|
|
774
|
+
|
|
774
775
|
${pwaInfo }
|
|
775
|
-
`;
|
|
776
|
+
${renderTemplate`<link rel="manifest" href="/manifest.webmanifest">`}`;
|
|
776
777
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro");
|
|
777
778
|
|
|
778
779
|
var __freeze$1 = Object.freeze;
|
|
779
780
|
var __defProp$1 = Object.defineProperty;
|
|
780
781
|
var __template$1 = (cooked, raw) => __freeze$1(__defProp$1(cooked, "raw", { value: __freeze$1(raw || cooked.slice()) }));
|
|
781
782
|
var _a$1;
|
|
782
|
-
const $$Astro$
|
|
783
|
+
const $$Astro$h = createAstro("https://ecom2-002.web.app");
|
|
783
784
|
const $$BaseStateJson = createComponent(async ($$result, $$props, $$slots) => {
|
|
784
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
785
|
+
const Astro2 = $$result.createAstro($$Astro$h, $$props, $$slots);
|
|
785
786
|
Astro2.self = $$BaseStateJson;
|
|
786
787
|
const {
|
|
787
788
|
pageContext: {
|
|
@@ -841,9 +842,9 @@ window.storefront.context = ${JSON.stringify({
|
|
|
841
842
|
return renderTemplate(_a$1 || (_a$1 = __template$1(["<script>", '<\/script>\n<script type="application/ld+json">', "<\/script>"])), unescapeHTML(inlineClientJS), unescapeHTML(inlineJSONLd));
|
|
842
843
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro");
|
|
843
844
|
|
|
844
|
-
const $$Astro$
|
|
845
|
+
const $$Astro$g = createAstro("https://ecom2-002.web.app");
|
|
845
846
|
const $$BaseBody = createComponent(async ($$result, $$props, $$slots) => {
|
|
846
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
847
|
+
const Astro2 = $$result.createAstro($$Astro$g, $$props, $$slots);
|
|
847
848
|
Astro2.self = $$BaseBody;
|
|
848
849
|
return renderTemplate`${maybeRenderHead($$result)}<body>
|
|
849
850
|
<div id="teleported-overlap" class="relative z-50"></div>
|
|
@@ -854,9 +855,9 @@ const $$BaseBody = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
854
855
|
</body>`;
|
|
855
856
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro");
|
|
856
857
|
|
|
857
|
-
const $$Astro$
|
|
858
|
+
const $$Astro$f = createAstro("https://ecom2-002.web.app");
|
|
858
859
|
const $$Base$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
859
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
860
|
+
const Astro2 = $$result.createAstro($$Astro$f, $$props, $$slots);
|
|
860
861
|
Astro2.self = $$Base$1;
|
|
861
862
|
const { pageContext, title } = Astro2.props;
|
|
862
863
|
const { cms } = pageContext;
|
|
@@ -876,24 +877,24 @@ var __freeze = Object.freeze;
|
|
|
876
877
|
var __defProp = Object.defineProperty;
|
|
877
878
|
var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", { value: __freeze(raw || cooked.slice()) }));
|
|
878
879
|
var _a;
|
|
879
|
-
const $$Astro$
|
|
880
|
+
const $$Astro$e = createAstro("https://ecom2-002.web.app");
|
|
880
881
|
const $$InlineScripts = createComponent(async ($$result, $$props, $$slots) => {
|
|
881
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
882
|
+
const Astro2 = $$result.createAstro($$Astro$e, $$props, $$slots);
|
|
882
883
|
Astro2.self = $$InlineScripts;
|
|
883
884
|
return renderTemplate(_a || (_a = __template(["<script>\n window.firebaseConfig = {\n apiKey: 'AIzaSyCrVzemDgpyp9i6ni7Yc5ZuEVfXYwl-4J0',\n authDomain: 'ecom2-002.firebaseapp.com',\n projectId: 'ecom2-002',\n storageBucket: 'ecom2-002.appspot.com',\n messagingSenderId: '402807248219',\n appId: '1:402807248219:web:cf7d57759751e74776367e',\n measurementId: 'G-SC592CE0GB',\n };\n<\/script>"])));
|
|
884
885
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/scripts/InlineScripts.astro");
|
|
885
886
|
|
|
886
|
-
const $$Astro$
|
|
887
|
+
const $$Astro$d = createAstro("https://ecom2-002.web.app");
|
|
887
888
|
const $$Base = createComponent(async ($$result, $$props, $$slots) => {
|
|
888
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
889
|
+
const Astro2 = $$result.createAstro($$Astro$d, $$props, $$slots);
|
|
889
890
|
Astro2.self = $$Base;
|
|
890
891
|
const { pageContext, title } = Astro2.props;
|
|
891
892
|
return renderTemplate`${renderComponent($$result, "Base", $$Base$1, { "pageContext": pageContext, "title": title }, { "before-head-end": ($$result2) => renderTemplate`${renderComponent($$result2, "InlineScripts", $$InlineScripts, { "slot": "before-head-end" })}`, "default": ($$result2) => renderTemplate`${renderSlot($$result2, $$slots["default"])}` })}`;
|
|
892
893
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/layouts/Base.astro");
|
|
893
894
|
|
|
894
|
-
const $$Astro$
|
|
895
|
+
const $$Astro$c = createAstro("https://ecom2-002.web.app");
|
|
895
896
|
const $$Image = createComponent(async ($$result, $$props, $$slots) => {
|
|
896
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
897
|
+
const Astro2 = $$result.createAstro($$Astro$c, $$props, $$slots);
|
|
897
898
|
Astro2.self = $$Image;
|
|
898
899
|
const { loading = "lazy", decoding = "async", ...props } = Astro2.props;
|
|
899
900
|
if (props.alt === void 0 || props.alt === null) {
|
|
@@ -903,9 +904,9 @@ const $$Image = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
903
904
|
return renderTemplate`${maybeRenderHead($$result)}<img${spreadAttributes(attrs)}${addAttribute(loading, "loading")}${addAttribute(decoding, "decoding")}>`;
|
|
904
905
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/node_modules/@astrojs/image/components/Image.astro");
|
|
905
906
|
|
|
906
|
-
const $$Astro$
|
|
907
|
+
const $$Astro$b = createAstro("https://ecom2-002.web.app");
|
|
907
908
|
const $$Picture$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
908
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
909
|
+
const Astro2 = $$result.createAstro($$Astro$b, $$props, $$slots);
|
|
909
910
|
Astro2.self = $$Picture$1;
|
|
910
911
|
const {
|
|
911
912
|
src,
|
|
@@ -957,9 +958,9 @@ The "alt" attribute holds a text description of the image, which isn't mandatory
|
|
|
957
958
|
`);
|
|
958
959
|
}
|
|
959
960
|
|
|
960
|
-
const $$Astro$
|
|
961
|
+
const $$Astro$a = createAstro("https://ecom2-002.web.app");
|
|
961
962
|
const $$Picture = createComponent(async ($$result, $$props, $$slots) => {
|
|
962
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
963
|
+
const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
|
|
963
964
|
Astro2.self = $$Picture;
|
|
964
965
|
const props = Astro2.props;
|
|
965
966
|
if (!props.aspectRatio && typeof props.src === "string") {
|
|
@@ -1078,10 +1079,11 @@ function _sfc_ssrRender$c(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1078
1079
|
_push(`<button${ssrRenderAttrs(mergeProps({
|
|
1079
1080
|
type: "button",
|
|
1080
1081
|
"aria-label": $props.direction > 0 ? "Pr\xF3ximo" : "Anterior",
|
|
1081
|
-
"data-carousel-control": $props.direction > 0 ? "next" : "previous"
|
|
1082
|
+
"data-carousel-control": $props.direction > 0 ? "next" : "previous",
|
|
1083
|
+
class: "group"
|
|
1082
1084
|
}, _attrs))}>`);
|
|
1083
1085
|
ssrRenderSlot(_ctx.$slots, "default", {}, () => {
|
|
1084
|
-
_push(`<i class="${ssrRenderClass([$props.direction > 0 ? "i-chevron-right" : "i-chevron-left", "m-0"])}"></i>`);
|
|
1086
|
+
_push(`<i class="${ssrRenderClass([$props.direction > 0 ? "i-chevron-right group-active:translate-x-1" : "i-chevron-left group-active:-translate-x-1", "m-0"])}"></i>`);
|
|
1085
1087
|
}, _push, _parent);
|
|
1086
1088
|
_push(`</button>`);
|
|
1087
1089
|
}
|
|
@@ -1917,12 +1919,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1917
1919
|
}
|
|
1918
1920
|
});
|
|
1919
1921
|
function _sfc_ssrRender$6(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1922
|
+
const _component_AImg = resolveComponent("AImg");
|
|
1920
1923
|
const _component_ShopSidenavCategory = resolveComponent("ShopSidenavCategory", true);
|
|
1921
1924
|
_push(`<li${ssrRenderAttrs(mergeProps({ class: "text-lg text-base-800" }, _attrs))}>`);
|
|
1922
1925
|
if ($props.categoryTree.subcategories.length) {
|
|
1923
1926
|
_push(`<details class="bg-white overflow-y-auto overflow-x-hidden z-10 open:absolute open:top-0 open:left-0 open:w-full open:h-full"><summary class="${ssrRenderClass([$setup.isOpen ? "bg-base-100" : null, "cursor-pointer list-none px-6 py-3 active:bg-base-100 transition-colors"])}"><i class="${ssrRenderClass(!$setup.isOpen ? "i-arrow-right float-right mb-0 mt-1 text-xl text-base-500" : "i-arrow-left text-lg")}"></i>`);
|
|
1924
1927
|
if (!$setup.isOpen && $props.categoryTree.icon) {
|
|
1925
|
-
_push(
|
|
1928
|
+
_push(ssrRenderComponent(_component_AImg, {
|
|
1929
|
+
picture: $props.categoryTree.icon,
|
|
1930
|
+
class: "w-auto h-5 inline mr-3"
|
|
1931
|
+
}, null, _parent));
|
|
1926
1932
|
} else {
|
|
1927
1933
|
_push(`<!---->`);
|
|
1928
1934
|
}
|
|
@@ -1937,7 +1943,10 @@ function _sfc_ssrRender$6(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1937
1943
|
} else {
|
|
1938
1944
|
_push(`<a${ssrRenderAttr("href", `/${$props.categoryTree.slug}`)} class="block px-6 py-3 active:bg-base-200">`);
|
|
1939
1945
|
if (!$setup.isOpen && $props.categoryTree.icon) {
|
|
1940
|
-
_push(
|
|
1946
|
+
_push(ssrRenderComponent(_component_AImg, {
|
|
1947
|
+
picture: $props.categoryTree.icon,
|
|
1948
|
+
class: "w-auto h-5 inline mr-3"
|
|
1949
|
+
}, null, _parent));
|
|
1941
1950
|
} else {
|
|
1942
1951
|
_push(`<!---->`);
|
|
1943
1952
|
}
|
|
@@ -2072,6 +2081,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2072
2081
|
});
|
|
2073
2082
|
function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
2074
2083
|
const _component_Fade = resolveComponent("Fade");
|
|
2084
|
+
const _component_AImg = resolveComponent("AImg");
|
|
2075
2085
|
_push(ssrRenderComponent($setup["Popover"], _attrs, {
|
|
2076
2086
|
default: withCtx(({ open }, _push2, _parent2, _scopeId) => {
|
|
2077
2087
|
if (_push2) {
|
|
@@ -2116,7 +2126,12 @@ function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2116
2126
|
});
|
|
2117
2127
|
_push4(`<!--]-->`);
|
|
2118
2128
|
if ($setup.categoryPicture) {
|
|
2119
|
-
_push4(`<div class="${ssrRenderClass($setup.countMenuCols === 2 ? "basis-1/2" : $setup.countMenuCols < 5 ? "basis-2/5" : "basis-1/3")}"${_scopeId3}
|
|
2129
|
+
_push4(`<div class="${ssrRenderClass($setup.countMenuCols === 2 ? "basis-1/2" : $setup.countMenuCols < 5 ? "basis-2/5" : "basis-1/3")}"${_scopeId3}>`);
|
|
2130
|
+
_push4(ssrRenderComponent(_component_AImg, {
|
|
2131
|
+
picture: $setup.categoryPicture,
|
|
2132
|
+
class: "ml-auto rounded"
|
|
2133
|
+
}, null, _parent4, _scopeId3));
|
|
2134
|
+
_push4(`</div>`);
|
|
2120
2135
|
} else {
|
|
2121
2136
|
_push4(`<!---->`);
|
|
2122
2137
|
}
|
|
@@ -2174,12 +2189,10 @@ function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2174
2189
|
key: 1,
|
|
2175
2190
|
class: $setup.countMenuCols === 2 ? "basis-1/2" : $setup.countMenuCols < 5 ? "basis-2/5" : "basis-1/3"
|
|
2176
2191
|
}, [
|
|
2177
|
-
createVNode(
|
|
2178
|
-
|
|
2179
|
-
src: $setup.categoryPicture.url,
|
|
2180
|
-
alt: $setup.categoryPicture.alt || $props.categoryTree.name,
|
|
2192
|
+
createVNode(_component_AImg, {
|
|
2193
|
+
picture: $setup.categoryPicture,
|
|
2181
2194
|
class: "ml-auto rounded"
|
|
2182
|
-
}, null, 8, ["
|
|
2195
|
+
}, null, 8, ["picture"])
|
|
2183
2196
|
], 2)) : createCommentVNode("", true)
|
|
2184
2197
|
]),
|
|
2185
2198
|
createVNode("a", {
|
|
@@ -2248,12 +2261,10 @@ function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2248
2261
|
key: 1,
|
|
2249
2262
|
class: $setup.countMenuCols === 2 ? "basis-1/2" : $setup.countMenuCols < 5 ? "basis-2/5" : "basis-1/3"
|
|
2250
2263
|
}, [
|
|
2251
|
-
createVNode(
|
|
2252
|
-
|
|
2253
|
-
src: $setup.categoryPicture.url,
|
|
2254
|
-
alt: $setup.categoryPicture.alt || $props.categoryTree.name,
|
|
2264
|
+
createVNode(_component_AImg, {
|
|
2265
|
+
picture: $setup.categoryPicture,
|
|
2255
2266
|
class: "ml-auto rounded"
|
|
2256
|
-
}, null, 8, ["
|
|
2267
|
+
}, null, 8, ["picture"])
|
|
2257
2268
|
], 2)) : createCommentVNode("", true)
|
|
2258
2269
|
]),
|
|
2259
2270
|
createVNode("a", {
|
|
@@ -2335,12 +2346,10 @@ function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2335
2346
|
key: 1,
|
|
2336
2347
|
class: $setup.countMenuCols === 2 ? "basis-1/2" : $setup.countMenuCols < 5 ? "basis-2/5" : "basis-1/3"
|
|
2337
2348
|
}, [
|
|
2338
|
-
createVNode(
|
|
2339
|
-
|
|
2340
|
-
src: $setup.categoryPicture.url,
|
|
2341
|
-
alt: $setup.categoryPicture.alt || $props.categoryTree.name,
|
|
2349
|
+
createVNode(_component_AImg, {
|
|
2350
|
+
picture: $setup.categoryPicture,
|
|
2342
2351
|
class: "ml-auto rounded"
|
|
2343
|
-
}, null, 8, ["
|
|
2352
|
+
}, null, 8, ["picture"])
|
|
2344
2353
|
], 2)) : createCommentVNode("", true)
|
|
2345
2354
|
]),
|
|
2346
2355
|
createVNode("a", {
|
|
@@ -2375,7 +2384,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2375
2384
|
},
|
|
2376
2385
|
setup(__props, { expose }) {
|
|
2377
2386
|
expose();
|
|
2378
|
-
const
|
|
2387
|
+
const props = __props;
|
|
2388
|
+
const hasOneLevelSubcategories = computed(() => {
|
|
2389
|
+
return !!props.inlineMenuTrees.find(({ subcategories }) => !subcategories.length);
|
|
2390
|
+
});
|
|
2391
|
+
const __returned__ = { props, hasOneLevelSubcategories, ShopHeaderSubmenu };
|
|
2379
2392
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2380
2393
|
return __returned__;
|
|
2381
2394
|
}
|
|
@@ -2391,7 +2404,13 @@ function _sfc_ssrRender$3(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2391
2404
|
_push2(`<span class="hover:text-primary group"${_scopeId}><h3 class="${ssrRenderClass([[
|
|
2392
2405
|
$props.inlineMenuTrees.length < 7 ? "decoration-2" : null,
|
|
2393
2406
|
open ? "underline" : null
|
|
2394
|
-
], "group-hover:underline inline"])}"${_scopeId}>${ssrInterpolate(categoryTree.name)}</h3
|
|
2407
|
+
], "group-hover:underline inline"])}"${_scopeId}>${ssrInterpolate(categoryTree.name)}</h3>`);
|
|
2408
|
+
if ($setup.hasOneLevelSubcategories) {
|
|
2409
|
+
_push2(`<i class="${ssrRenderClass([open ? "rotate-180" : null, "i-chevron-down ml-1 transition-transform text-base-400 group-hover:text-primary-subtle"])}"${_scopeId}></i>`);
|
|
2410
|
+
} else {
|
|
2411
|
+
_push2(`<!---->`);
|
|
2412
|
+
}
|
|
2413
|
+
_push2(`</span>`);
|
|
2395
2414
|
} else {
|
|
2396
2415
|
return [
|
|
2397
2416
|
createVNode("span", { class: "hover:text-primary group" }, [
|
|
@@ -2401,9 +2420,10 @@ function _sfc_ssrRender$3(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2401
2420
|
open ? "underline" : null
|
|
2402
2421
|
]]
|
|
2403
2422
|
}, toDisplayString(categoryTree.name), 3),
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2423
|
+
$setup.hasOneLevelSubcategories ? (openBlock(), createBlock("i", {
|
|
2424
|
+
key: 0,
|
|
2425
|
+
class: ["i-chevron-down ml-1 transition-transform text-base-400 group-hover:text-primary-subtle", open ? "rotate-180" : null]
|
|
2426
|
+
}, null, 2)) : createCommentVNode("", true)
|
|
2407
2427
|
])
|
|
2408
2428
|
];
|
|
2409
2429
|
}
|
|
@@ -2489,9 +2509,9 @@ _sfc_main$2.setup = (props, ctx) => {
|
|
|
2489
2509
|
};
|
|
2490
2510
|
const ShopHeader = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["ssrRender", _sfc_ssrRender$2]]);
|
|
2491
2511
|
|
|
2492
|
-
const $$Astro$
|
|
2512
|
+
const $$Astro$9 = createAstro("https://ecom2-002.web.app");
|
|
2493
2513
|
const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
|
|
2494
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
2514
|
+
const Astro2 = $$result.createAstro($$Astro$9, $$props, $$slots);
|
|
2495
2515
|
Astro2.self = $$PagesHeader;
|
|
2496
2516
|
const {
|
|
2497
2517
|
pageContext: {
|
|
@@ -2524,14 +2544,14 @@ const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
2524
2544
|
`)}` })}`;
|
|
2525
2545
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro");
|
|
2526
2546
|
|
|
2527
|
-
const $$Astro$
|
|
2547
|
+
const $$Astro$8 = createAstro("https://ecom2-002.web.app");
|
|
2528
2548
|
const $$Pages = createComponent(async ($$result, $$props, $$slots) => {
|
|
2529
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
2549
|
+
const Astro2 = $$result.createAstro($$Astro$8, $$props, $$slots);
|
|
2530
2550
|
Astro2.self = $$Pages;
|
|
2531
2551
|
const { pageContext, title } = Astro2.props;
|
|
2532
2552
|
const { settings } = pageContext;
|
|
2533
2553
|
return renderTemplate`${renderComponent($$result, "Base", $$Base, { "pageContext": pageContext, "title": title }, { "default": ($$result2) => renderTemplate`${renderSlot($$result2, $$slots["header"], renderTemplate`
|
|
2534
|
-
${renderComponent($$result2, "Header", $$PagesHeader, { "pageContext": pageContext }, { "logo-picture": ($$result3) => renderTemplate`${renderComponent($$result3, "Picture", $$Picture, { "slot": "logo-picture", "src": settings.logo, "alt": settings.name, "widths": [300], "sizes": "150px", "fetchpriority": "high", "class": "hover:drop-shadow-sm" })}` })}
|
|
2554
|
+
${renderComponent($$result2, "Header", $$PagesHeader, { "pageContext": pageContext }, { "logo-picture": ($$result3) => renderTemplate`${renderComponent($$result3, "Picture", $$Picture, { "slot": "logo-picture", "src": settings.logo, "alt": settings.name, "widths": [300], "sizes": "150px", "fetchpriority": "high", "loading": "eager", "class": "hover:drop-shadow-sm" })}` })}
|
|
2535
2555
|
`)}${renderSlot($$result2, $$slots["default"])}` })}`;
|
|
2536
2556
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/layouts/Pages.astro");
|
|
2537
2557
|
|
|
@@ -2984,9 +3004,9 @@ _sfc_main.setup = (props, ctx) => {
|
|
|
2984
3004
|
};
|
|
2985
3005
|
const ProductCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
2986
3006
|
|
|
2987
|
-
const $$Astro$
|
|
3007
|
+
const $$Astro$7 = createAstro("https://ecom2-002.web.app");
|
|
2988
3008
|
const $$Home = createComponent(async ($$result, $$props, $$slots) => {
|
|
2989
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
3009
|
+
const Astro2 = $$result.createAstro($$Astro$7, $$props, $$slots);
|
|
2990
3010
|
Astro2.self = $$Home;
|
|
2991
3011
|
const products = (await api.get("products")).data.result;
|
|
2992
3012
|
return renderTemplate`${maybeRenderHead($$result)}<main>
|
|
@@ -3034,9 +3054,9 @@ const $$Home = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
3034
3054
|
</main>`;
|
|
3035
3055
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Home.astro");
|
|
3036
3056
|
|
|
3037
|
-
const $$Astro$
|
|
3057
|
+
const $$Astro$6 = createAstro("https://ecom2-002.web.app");
|
|
3038
3058
|
const $$Index$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
3039
|
-
const Astro2 = $$result.createAstro($$Astro$
|
|
3059
|
+
const Astro2 = $$result.createAstro($$Astro$6, $$props, $$slots);
|
|
3040
3060
|
Astro2.self = $$Index$1;
|
|
3041
3061
|
let pageContext;
|
|
3042
3062
|
let loadError;
|
|
@@ -3054,12 +3074,50 @@ ${loadError && renderTemplate`${renderComponent($$result, "Fragment", Fragment,
|
|
|
3054
3074
|
</html>`;
|
|
3055
3075
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro");
|
|
3056
3076
|
|
|
3057
|
-
const $$file$
|
|
3058
|
-
const $$url$
|
|
3077
|
+
const $$file$4 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro";
|
|
3078
|
+
const $$url$4 = "";
|
|
3059
3079
|
|
|
3060
3080
|
const _page1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3061
3081
|
__proto__: null,
|
|
3062
3082
|
default: $$Index$1,
|
|
3083
|
+
file: $$file$4,
|
|
3084
|
+
url: $$url$4
|
|
3085
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3086
|
+
|
|
3087
|
+
const $$Astro$5 = createAstro("https://ecom2-002.web.app");
|
|
3088
|
+
const $$Fallback$1 = createComponent(async ($$result, $$props, $$slots) => {
|
|
3089
|
+
const Astro2 = $$result.createAstro($$Astro$5, $$props, $$slots);
|
|
3090
|
+
Astro2.self = $$Fallback$1;
|
|
3091
|
+
return renderTemplate`${maybeRenderHead($$result)}<main>
|
|
3092
|
+
<h1>Error :/</h1>
|
|
3093
|
+
<p class="instructions">
|
|
3094
|
+
Check out the <code>src/pages</code> directory to get started.<br>
|
|
3095
|
+
<strong>Code Challenge:</strong> Tweak the "Welcome to Astro" message above.
|
|
3096
|
+
</p>
|
|
3097
|
+
</main>`;
|
|
3098
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Fallback.astro");
|
|
3099
|
+
|
|
3100
|
+
const $$Astro$4 = createAstro("https://ecom2-002.web.app");
|
|
3101
|
+
const $$Fallback = createComponent(async ($$result, $$props, $$slots) => {
|
|
3102
|
+
const Astro2 = $$result.createAstro($$Astro$4, $$props, $$slots);
|
|
3103
|
+
Astro2.self = $$Fallback;
|
|
3104
|
+
let pageContext;
|
|
3105
|
+
try {
|
|
3106
|
+
pageContext = await loadPageContext(Astro2);
|
|
3107
|
+
} catch (err) {
|
|
3108
|
+
return err.astroResponse;
|
|
3109
|
+
}
|
|
3110
|
+
return renderTemplate`<html${addAttribute(pageContext?.lang.replace("_", "-"), "lang")}>
|
|
3111
|
+
${renderComponent($$result, "PagesLayout", $$Pages, { "pageContext": pageContext }, { "default": ($$result2) => renderTemplate`${renderComponent($$result2, "FallbackMain", $$Fallback$1, { "pageContext": pageContext })}` })}
|
|
3112
|
+
</html>`;
|
|
3113
|
+
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro");
|
|
3114
|
+
|
|
3115
|
+
const $$file$3 = "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro";
|
|
3116
|
+
const $$url$3 = "/fallback";
|
|
3117
|
+
|
|
3118
|
+
const _page2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
3119
|
+
__proto__: null,
|
|
3120
|
+
default: $$Fallback,
|
|
3063
3121
|
file: $$file$3,
|
|
3064
3122
|
url: $$url$3
|
|
3065
3123
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
@@ -3153,4 +3211,4 @@ const _page5 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
3153
3211
|
url: $$url
|
|
3154
3212
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3155
3213
|
|
|
3156
|
-
export {
|
|
3214
|
+
export { _export_sfc as _, _page0 as a, _page1 as b, _page2 as c, _page3 as d, _page4 as e, _page5 as f };
|
|
@@ -13,9 +13,8 @@ import send from 'send';
|
|
|
13
13
|
import enableDestroy from 'server-destroy';
|
|
14
14
|
import { defineComponent, useCssVars, unref, computed, useSSRContext, mergeProps, h as h$2, createSSRApp } from 'vue';
|
|
15
15
|
import { ssrRenderSlotInner, ssrRenderAttrs, ssrRenderSlot, renderToString } from 'vue/server-renderer';
|
|
16
|
-
import { i18n, formatMoney } from '@ecomplus/utils';
|
|
17
|
-
/* empty css */import { _ as _export_sfc, a as _page0, b as _page1, c as
|
|
18
|
-
import { _ as _page2 } from './chunks/prerender.2527d85d.mjs';
|
|
16
|
+
import { img, imgSizes, i18n, formatMoney } from '@ecomplus/utils';
|
|
17
|
+
/* empty css */import { _ as _export_sfc, a as _page0, b as _page1, c as _page2, d as _page3, e as _page4, f as _page5 } from './chunks/pages/all.7f368e08.mjs';
|
|
19
18
|
import 'path-to-regexp';
|
|
20
19
|
import 'tls';
|
|
21
20
|
import 'mime';
|
|
@@ -3126,7 +3125,7 @@ const adapter = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
3126
3125
|
start
|
|
3127
3126
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
3128
3127
|
|
|
3129
|
-
const _sfc_main$
|
|
3128
|
+
const _sfc_main$2 = defineComponent({
|
|
3130
3129
|
__name: "Fade",
|
|
3131
3130
|
props: {
|
|
3132
3131
|
speed: { default: "default" },
|
|
@@ -3261,7 +3260,7 @@ const _sfc_main$1 = defineComponent({
|
|
|
3261
3260
|
return __returned__;
|
|
3262
3261
|
}
|
|
3263
3262
|
});
|
|
3264
|
-
function _sfc_ssrRender$
|
|
3263
|
+
function _sfc_ssrRender$2(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
3265
3264
|
({ style: {
|
|
3266
3265
|
"--68e3b484": $setup.willChange,
|
|
3267
3266
|
"--17a22876": $setup.duration,
|
|
@@ -3274,15 +3273,15 @@ function _sfc_ssrRender$1(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
3274
3273
|
} });
|
|
3275
3274
|
ssrRenderSlotInner(_ctx.$slots, "default", {}, null, _push, _parent, null, true);
|
|
3276
3275
|
}
|
|
3277
|
-
const _sfc_setup$
|
|
3278
|
-
_sfc_main$
|
|
3276
|
+
const _sfc_setup$2 = _sfc_main$2.setup;
|
|
3277
|
+
_sfc_main$2.setup = (props, ctx) => {
|
|
3279
3278
|
const ssrContext = useSSRContext();
|
|
3280
3279
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/globals/Fade.vue");
|
|
3281
|
-
return _sfc_setup$
|
|
3280
|
+
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
|
3282
3281
|
};
|
|
3283
|
-
const Fade = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
3282
|
+
const Fade = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["ssrRender", _sfc_ssrRender$2], ["__scopeId", "data-v-d3912920"]]);
|
|
3284
3283
|
|
|
3285
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3284
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
3286
3285
|
__name: "ALink",
|
|
3287
3286
|
props: {
|
|
3288
3287
|
href: null,
|
|
@@ -3306,7 +3305,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3306
3305
|
return __returned__;
|
|
3307
3306
|
}
|
|
3308
3307
|
});
|
|
3309
|
-
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
3308
|
+
function _sfc_ssrRender$1(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
3310
3309
|
_push(`<a${ssrRenderAttrs(mergeProps({
|
|
3311
3310
|
href: $props.href,
|
|
3312
3311
|
target: $setup.linkTarget,
|
|
@@ -3315,13 +3314,55 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
|
|
|
3315
3314
|
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
|
3316
3315
|
_push(`</a>`);
|
|
3317
3316
|
}
|
|
3317
|
+
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
3318
|
+
_sfc_main$1.setup = (props, ctx) => {
|
|
3319
|
+
const ssrContext = useSSRContext();
|
|
3320
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/globals/ALink.vue");
|
|
3321
|
+
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
3322
|
+
};
|
|
3323
|
+
const ALink = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["ssrRender", _sfc_ssrRender$1]]);
|
|
3324
|
+
|
|
3325
|
+
const _sfc_main = defineComponent({
|
|
3326
|
+
__name: "AImg",
|
|
3327
|
+
props: {
|
|
3328
|
+
picture: null,
|
|
3329
|
+
loading: { default: "lazy" }
|
|
3330
|
+
},
|
|
3331
|
+
setup(__props, { expose }) {
|
|
3332
|
+
expose();
|
|
3333
|
+
const props = __props;
|
|
3334
|
+
const image = computed(() => {
|
|
3335
|
+
if (props.picture.url) {
|
|
3336
|
+
return props.picture;
|
|
3337
|
+
}
|
|
3338
|
+
return img(props.picture);
|
|
3339
|
+
});
|
|
3340
|
+
const dimensions = computed(() => {
|
|
3341
|
+
return imgSizes(image.value);
|
|
3342
|
+
});
|
|
3343
|
+
const attrs = computed(() => ({
|
|
3344
|
+
...props,
|
|
3345
|
+
width: dimensions.value.width || null,
|
|
3346
|
+
height: dimensions.value.height || null,
|
|
3347
|
+
src: image.value.url,
|
|
3348
|
+
alt: image.value.alt,
|
|
3349
|
+
picture: null
|
|
3350
|
+
}));
|
|
3351
|
+
const __returned__ = { props, image, dimensions, attrs };
|
|
3352
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
3353
|
+
return __returned__;
|
|
3354
|
+
}
|
|
3355
|
+
});
|
|
3356
|
+
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
3357
|
+
_push(`<img${ssrRenderAttrs(mergeProps($setup.attrs, _attrs))}>`);
|
|
3358
|
+
}
|
|
3318
3359
|
const _sfc_setup = _sfc_main.setup;
|
|
3319
3360
|
_sfc_main.setup = (props, ctx) => {
|
|
3320
3361
|
const ssrContext = useSSRContext();
|
|
3321
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/globals/
|
|
3362
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/globals/AImg.vue");
|
|
3322
3363
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
3323
3364
|
};
|
|
3324
|
-
const
|
|
3365
|
+
const AImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
3325
3366
|
|
|
3326
3367
|
const formatPercentage = (value, digits = 1) => {
|
|
3327
3368
|
return Number.isInteger(value) ? `${value}%` : `${value.toFixed(digits)}%`;
|
|
@@ -3339,6 +3380,7 @@ const createApp = (app) => {
|
|
|
3339
3380
|
});
|
|
3340
3381
|
app.component("Fade", Fade);
|
|
3341
3382
|
app.component("ALink", ALink);
|
|
3383
|
+
app.component("AImg", AImg);
|
|
3342
3384
|
};
|
|
3343
3385
|
|
|
3344
3386
|
/**
|
|
@@ -3381,7 +3423,7 @@ const _renderer1 = {
|
|
|
3381
3423
|
const pageMap = new Map([["../../node_modules/.pnpm/@astrojs+image@0.15.0_astro@2.0.14+sharp@0.31.3/node_modules/@astrojs/image/dist/endpoint.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],]);
|
|
3382
3424
|
const renderers = [Object.assign({"name":"astro:jsx","serverEntrypoint":"astro/jsx/server.js","jsxImportSource":"astro"}, { ssr: server_default }),Object.assign({"name":"@astrojs/vue","clientEntrypoint":"@astrojs/vue/client.js","serverEntrypoint":"@astrojs/vue/server.js"}, { ssr: _renderer1 }),];
|
|
3383
3425
|
|
|
3384
|
-
const _manifest = Object.assign(deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"
|
|
3426
|
+
const _manifest = Object.assign(deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":[],"scripts":[],"routeData":{"type":"endpoint","route":"/_image","pattern":"^\\/_image$","segments":[[{"content":"_image","dynamic":false,"spread":false}]],"params":[],"component":"../../node_modules/.pnpm/@astrojs+image@0.15.0_astro@2.0.14+sharp@0.31.3/node_modules/@astrojs/image/dist/endpoint.js","pathname":"/_image","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["_astro/_...slug_.cd49465e.css","_astro/index.0c833781.css"],"scripts":[{"type":"external","value":"_astro/hoisted.721ad75d.js"}],"routeData":{"route":"/","type":"page","pattern":"^\\/$","segments":[],"params":[],"component":"src/pages/index.astro","pathname":"/","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["_astro/_...slug_.cd49465e.css"],"scripts":[{"type":"external","value":"_astro/hoisted.721ad75d.js"}],"routeData":{"route":"/fallback","type":"page","pattern":"^\\/fallback\\/?$","segments":[[{"content":"fallback","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/fallback.astro","pathname":"/fallback","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[],"routeData":{"route":"/app","type":"page","pattern":"^\\/app\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/index.astro","pathname":"/app","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[],"routeData":{"route":"/app/account","type":"page","pattern":"^\\/app\\/account\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}],[{"content":"account","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/account.astro","pathname":"/app/account","_meta":{"trailingSlash":"ignore"}}},{"file":"","links":["_astro/_...slug_.cd49465e.css"],"scripts":[{"type":"external","value":"_astro/hoisted.721ad75d.js"}],"routeData":{"route":"/[...slug]","type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","_meta":{"trailingSlash":"ignore"}}}],"site":"https://ecom2-002.web.app","base":"/","markdown":{"drafts":false,"syntaxHighlight":"shiki","shikiConfig":{"langs":[],"theme":"github-dark","wrap":false},"remarkPlugins":[],"rehypePlugins":[],"remarkRehype":{},"gfm":true,"smartypants":true,"contentDir":"file:///home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/content/"},"pageMap":null,"propagation":[["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseStateJson.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseBody.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/Base.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/scripts/InlineScripts.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/layouts/Base.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/node_modules/@astrojs/image/components/Image.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/node_modules/@astrojs/image/components/Picture.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/ssr/Picture.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/PagesHeader.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/layouts/Pages.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Home.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Fallback.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/index.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/app/account.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/main/Wildcard.astro","in-tree"],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro","in-tree"]],"renderers":[],"entryModules":{"\u0000@astrojs-ssr-virtual-entry":"_@astrojs-ssr-virtual-entry.mjs","~/components/Prices.vue":"_astro/Prices.2bd87845.js","@astrojs/vue/client.js":"_astro/client.14d15518.js","/astro/hoisted.js?q=0":"_astro/hoisted.721ad75d.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/workbox-window/build/workbox-window.prod.es5.mjs":"_astro/workbox-window.prod.es5.295a6886.js","~/components/PitchBar.vue":"_astro/PitchBar.b3636d56.js","@@sf/components/ProductCard.vue":"_astro/ProductCard.48f0f5ba.js","~/components/ShopHeader.vue":"_astro/ShopHeader.44e0873d.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/scripts/firebase-app.ts":"_astro/firebase-app.7ce2ebb1.js","astro:scripts/before-hydration.js":""},"assets":["/_astro/index.0c833781.css","/_astro/server.60de185d.css","/_astro/_...slug_.cd49465e.css","/manifest.webmanifest","/robots.txt","/sw.js","/workbox-e2ee76b5.js","/_astro/PitchBar.b3636d56.js","/_astro/Prices.2bd87845.js","/_astro/ProductCard.48f0f5ba.js","/_astro/ShopHeader.44e0873d.js","/_astro/_plugin-vue_export-helper.43eaff51.js","/_astro/client.14d15518.js","/_astro/firebase-app.7ce2ebb1.js","/_astro/format-money.060d67ef.js","/_astro/hoisted.721ad75d.js","/_astro/idle-callback.889bf0ea.js","/_astro/index.3243538d.js","/_astro/modules-info.01f8d523.js","/_astro/preload-helper.101896b7.js","/_astro/runtime-dom.esm-bundler.cb4db78a.js","/_astro/session-utm.72684b84.js","/_astro/workbox-window.prod.es5.295a6886.js","/admin/config.json","/assets/cms-preview.css","/assets/cms.css","/assets/cvv.png","/assets/img-placeholder.png","/assets/payments.png","/assets/ssl-safe.png","/img/icon.png","/img/large-icon.png","/img/uploads/banner1.png","/img/uploads/banner2.png","/img/uploads/banner2.webp","/img/uploads/favicon.png","/img/uploads/headless.png","/img/uploads/headphone.png","/img/uploads/headphone.webp","/img/uploads/icon.png","/img/uploads/large-icon.png","/img/uploads/logo.png","/img/uploads/logo.webp","/img/uploads/og-image.png","/img/uploads/passion.png","/img/uploads/passion.webp","/img/uploads/pwa-reliable.png","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.png","/img/uploads/rect89.webp","/img/uploads/ssl-safe.png","/assets/icons/bootstrap-icons/font/storefront-icons.woff2","/assets/icons/feather-icons/font/storefront-icons.woff2","/assets/icons/font-awesome/font/storefront-icons.woff2","/assets/icons/line-awesome/font/storefront-icons.woff2","/assets/icons/tabler-icons/font/storefront-icons.woff2"]}), {
|
|
3385
3427
|
pageMap: pageMap,
|
|
3386
3428
|
renderers: renderers
|
|
3387
3429
|
});
|
|
@@ -18,11 +18,14 @@ const { changeSlide } = inject(carouselKey);
|
|
|
18
18
|
:aria-label="direction > 0 ? $t.i19next : $t.i19previous"
|
|
19
19
|
@click="changeSlide(direction)"
|
|
20
20
|
:data-carousel-control="direction > 0 ? 'next' : 'previous'"
|
|
21
|
+
class="group"
|
|
21
22
|
>
|
|
22
23
|
<slot>
|
|
23
24
|
<i
|
|
24
25
|
class="m-0"
|
|
25
|
-
:class="direction > 0
|
|
26
|
+
:class="direction > 0
|
|
27
|
+
? 'i-chevron-right group-active:translate-x-1'
|
|
28
|
+
: 'i-chevron-left group-active:-translate-x-1'"
|
|
26
29
|
></i>
|
|
27
30
|
</slot>
|
|
28
31
|
</button>
|