cloudcommerce 0.6.4 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/action.yml +53 -1
- package/package.json +1 -1
- package/packages/api/package.json +1 -1
- package/packages/apps/correios/package.json +1 -1
- package/packages/apps/custom-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/lib/cli.js +9 -8
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/cli.ts +9 -8
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/firebase/lib/config.d.ts +1 -1
- package/packages/firebase/lib/config.js +1 -1
- package/packages/firebase/lib/config.js.map +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/firebase/src/config.ts +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +1 -1
- package/packages/storefront/dist/client/_astro/PitchBar.fae93937.js +1 -0
- package/packages/storefront/dist/client/_astro/{Prices.2bd87845.js → Prices.c3513660.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductCard.48f0f5ba.js → ProductCard.943cd687.js} +1 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.5b3abae3.js +4 -0
- package/packages/storefront/dist/client/_astro/{_...slug_.cd49465e.css → _...slug_.86768317.css} +1 -1
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.a7457a61.js +1 -0
- package/packages/storefront/dist/client/_astro/client.e1250adc.js +1 -0
- package/packages/storefront/dist/client/_astro/{format-money.060d67ef.js → format-money.6379f63c.js} +1 -1
- package/packages/storefront/dist/client/_astro/index.769c6acb.js +1 -0
- package/packages/storefront/dist/client/_astro/{modules-info.01f8d523.js → modules-info.fbf28964.js} +1 -1
- package/packages/storefront/dist/client/_astro/runtime-dom.esm-bundler.4e28b902.js +1 -0
- package/packages/storefront/dist/client/_astro/server.1bc2fa51.css +1 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/pages/{all.7f368e08.mjs → all.226fa45f.mjs} +128 -80
- package/packages/storefront/dist/server/entry.mjs +20 -28
- package/packages/storefront/package.json +2 -2
- package/packages/storefront/src/lib/components/Carousel.vue +11 -26
- package/packages/storefront/src/lib/components/CarouselControl.vue +2 -1
- package/packages/storefront/src/lib/components/Drawer.vue +11 -3
- package/packages/storefront/src/lib/components/globals/AImg.vue +4 -2
- package/packages/storefront/src/lib/components/globals/Fade.vue +23 -18
- package/packages/storefront/src/lib/composables/use-shop-header.ts +1 -3
- package/packages/types/package.json +1 -1
- package/packages/storefront/dist/client/_astro/PitchBar.b3636d56.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.44e0873d.js +0 -4
- package/packages/storefront/dist/client/_astro/_plugin-vue_export-helper.43eaff51.js +0 -1
- package/packages/storefront/dist/client/_astro/client.14d15518.js +0 -1
- package/packages/storefront/dist/client/_astro/index.3243538d.js +0 -1
- package/packages/storefront/dist/client/_astro/runtime-dom.esm-bundler.cb4db78a.js +0 -1
- package/packages/storefront/dist/client/_astro/server.60de185d.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let e,s={};const r=(r,n)=>(r=new URL(r+".js",n).href,s[r]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=s,document.head.appendChild(e)}else e=r,importScripts(r),s()})).then((()=>{let e=s[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let
|
|
1
|
+
if(!self.define){let e,s={};const r=(r,n)=>(r=new URL(r+".js",n).href,s[r]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=s,document.head.appendChild(e)}else e=r,importScripts(r),s()})).then((()=>{let e=s[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let a={};const l=e=>r(e,o),u={module:{uri:o},exports:a,require:l};s[o]=Promise.all(n.map((e=>u[e]||l(e)))).then((e=>(i(...e),a)))}}define(["./workbox-e2ee76b5"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"_astro/_...slug_.86768317.css",revision:null},{url:"_astro/_plugin-vue_export-helper.a7457a61.js",revision:null},{url:"_astro/client.e1250adc.js",revision:null},{url:"_astro/firebase-app.7ce2ebb1.js",revision:null},{url:"_astro/format-money.6379f63c.js",revision:null},{url:"_astro/hoisted.721ad75d.js",revision:null},{url:"_astro/idle-callback.889bf0ea.js",revision:null},{url:"_astro/index.0c833781.css",revision:null},{url:"_astro/index.769c6acb.js",revision:null},{url:"_astro/modules-info.fbf28964.js",revision:null},{url:"_astro/PitchBar.fae93937.js",revision:null},{url:"_astro/preload-helper.101896b7.js",revision:null},{url:"_astro/Prices.c3513660.js",revision:null},{url:"_astro/ProductCard.943cd687.js",revision:null},{url:"_astro/runtime-dom.esm-bundler.4e28b902.js",revision:null},{url:"_astro/server.1bc2fa51.css",revision:null},{url:"_astro/session-utm.72684b84.js",revision:null},{url:"_astro/ShopHeader.5b3abae3.js",revision:null},{url:"_astro/workbox-window.prod.es5.295a6886.js",revision:null},{url:"img/uploads/large-icon.png",revision:"0b35db516cfa7475b1c2f8c081e8d54d"},{url:"manifest.webmanifest",revision:"6a858866b0560997f368e27ab5418e15"}],{ignoreURLParametersMatching:[/.*/]}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/404"))),e.registerRoute(/^\/$/,new e.NetworkFirst,"GET"),e.registerRoute(/\/((?!(?:admin|assets|img)(\/|$))[^.]+)(\.(?!js|css|xml|txt|png|jpg|jpeg|webp|avif|svg|gif)[^.]+)*$/,new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/assets\//,new e.StaleWhileRevalidate({cacheName:"assets",plugins:[]}),"GET"),e.registerRoute(/^\/_image$/,new e.StaleWhileRevalidate({cacheName:"sharp-images",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/img\/uploads\/.*\.(?:png|jpg|jpeg|webp|avif|svg|gif)$/,new e.StaleWhileRevalidate({cacheName:"cms-images",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/ecomplus\.io/,new e.NetworkFirst({cacheName:"store-api",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/normal\//,new e.CacheFirst({cacheName:"product-thumbnails",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/big\//,new e.CacheFirst({cacheName:"product-pictures",plugins:[new e.ExpirationPlugin({maxEntries:10,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}),"GET")}));
|
|
@@ -1062,7 +1062,7 @@ const usePitchBar = (props) => {
|
|
|
1062
1062
|
|
|
1063
1063
|
const carouselKey = Symbol("carousel");
|
|
1064
1064
|
|
|
1065
|
-
const _sfc_main$
|
|
1065
|
+
const _sfc_main$d = defineComponent({
|
|
1066
1066
|
__name: "CarouselControl",
|
|
1067
1067
|
props: {
|
|
1068
1068
|
direction: { default: 1 }
|
|
@@ -1075,27 +1075,27 @@ const _sfc_main$c = defineComponent({
|
|
|
1075
1075
|
return __returned__;
|
|
1076
1076
|
}
|
|
1077
1077
|
});
|
|
1078
|
-
function _sfc_ssrRender$
|
|
1078
|
+
function _sfc_ssrRender$d(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1079
1079
|
_push(`<button${ssrRenderAttrs(mergeProps({
|
|
1080
1080
|
type: "button",
|
|
1081
1081
|
"aria-label": $props.direction > 0 ? "Pr\xF3ximo" : "Anterior",
|
|
1082
|
-
"
|
|
1083
|
-
|
|
1082
|
+
class: ["group absolute top-0", $props.direction > 0 ? "right-0" : "left-0"],
|
|
1083
|
+
"data-carousel-control": $props.direction > 0 ? "next" : "previous"
|
|
1084
1084
|
}, _attrs))}>`);
|
|
1085
1085
|
ssrRenderSlot(_ctx.$slots, "default", {}, () => {
|
|
1086
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>`);
|
|
1087
1087
|
}, _push, _parent);
|
|
1088
1088
|
_push(`</button>`);
|
|
1089
1089
|
}
|
|
1090
|
-
const _sfc_setup$
|
|
1091
|
-
_sfc_main$
|
|
1090
|
+
const _sfc_setup$d = _sfc_main$d.setup;
|
|
1091
|
+
_sfc_main$d.setup = (props, ctx) => {
|
|
1092
1092
|
const ssrContext = useSSRContext();
|
|
1093
1093
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/CarouselControl.vue");
|
|
1094
|
-
return _sfc_setup$
|
|
1094
|
+
return _sfc_setup$d ? _sfc_setup$d(props, ctx) : void 0;
|
|
1095
1095
|
};
|
|
1096
|
-
const CarouselControl = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1096
|
+
const CarouselControl = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["ssrRender", _sfc_ssrRender$d]]);
|
|
1097
1097
|
|
|
1098
|
-
const _sfc_main$
|
|
1098
|
+
const _sfc_main$c = defineComponent({
|
|
1099
1099
|
__name: "Carousel",
|
|
1100
1100
|
props: {
|
|
1101
1101
|
as: { default: "ul" },
|
|
@@ -1210,7 +1210,10 @@ const _sfc_main$b = defineComponent({
|
|
|
1210
1210
|
calcCurrentIndex();
|
|
1211
1211
|
calcIndexCount();
|
|
1212
1212
|
};
|
|
1213
|
-
const onResize = useDebounceFn(
|
|
1213
|
+
const onResize = useDebounceFn(() => {
|
|
1214
|
+
wrapper.value.scrollLeft = 0;
|
|
1215
|
+
calcOnInit();
|
|
1216
|
+
}, 400);
|
|
1214
1217
|
onMounted(() => {
|
|
1215
1218
|
calcOnInit();
|
|
1216
1219
|
});
|
|
@@ -1232,13 +1235,15 @@ const _sfc_main$b = defineComponent({
|
|
|
1232
1235
|
return __returned__;
|
|
1233
1236
|
}
|
|
1234
1237
|
});
|
|
1235
|
-
function _sfc_ssrRender$
|
|
1238
|
+
function _sfc_ssrRender$c(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1236
1239
|
_push(`<div${ssrRenderAttrs(mergeProps({
|
|
1237
1240
|
ref: "carousel",
|
|
1241
|
+
class: "relative",
|
|
1238
1242
|
"data-carousel": ""
|
|
1239
1243
|
}, _attrs))}>`);
|
|
1240
1244
|
ssrRenderVNode(_push, createVNode(resolveDynamicComponent($props.as), {
|
|
1241
1245
|
ref: "wrapper",
|
|
1246
|
+
class: "flex overflow-x-scroll overflow-y-hidden list-none m-0 p-0",
|
|
1242
1247
|
"data-carousel-wrapper": ""
|
|
1243
1248
|
}, {
|
|
1244
1249
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
@@ -1286,15 +1291,15 @@ function _sfc_ssrRender$b(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1286
1291
|
}, _push, _parent);
|
|
1287
1292
|
_push(`</div>`);
|
|
1288
1293
|
}
|
|
1289
|
-
const _sfc_setup$
|
|
1290
|
-
_sfc_main$
|
|
1294
|
+
const _sfc_setup$c = _sfc_main$c.setup;
|
|
1295
|
+
_sfc_main$c.setup = (props, ctx) => {
|
|
1291
1296
|
const ssrContext = useSSRContext();
|
|
1292
1297
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/Carousel.vue");
|
|
1293
|
-
return _sfc_setup$
|
|
1298
|
+
return _sfc_setup$c ? _sfc_setup$c(props, ctx) : void 0;
|
|
1294
1299
|
};
|
|
1295
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1300
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["ssrRender", _sfc_ssrRender$c]]);
|
|
1296
1301
|
|
|
1297
|
-
const _sfc_main$
|
|
1302
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1298
1303
|
__name: "PitchBar",
|
|
1299
1304
|
props: {
|
|
1300
1305
|
slides: null
|
|
@@ -1311,7 +1316,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1311
1316
|
return __returned__;
|
|
1312
1317
|
}
|
|
1313
1318
|
});
|
|
1314
|
-
function _sfc_ssrRender$
|
|
1319
|
+
function _sfc_ssrRender$b(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1315
1320
|
_push(`<div${ssrRenderAttrs(mergeProps({ class: "bg-base-100 relative z-1" }, _attrs))}><div class="container md:w-2/3 mx-auto px-3 py-1">`);
|
|
1316
1321
|
_push(ssrRenderComponent($setup["Carousel"], {
|
|
1317
1322
|
autoplay: $setup.countValidSlides > 1 ? 7e3 : null
|
|
@@ -1343,7 +1348,7 @@ function _sfc_ssrRender$a(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1343
1348
|
if (_push2) {
|
|
1344
1349
|
_push2(`<!--[-->`);
|
|
1345
1350
|
ssrRenderList($props.slides, (slide, i) => {
|
|
1346
|
-
_push2(`<li${_scopeId}>`);
|
|
1351
|
+
_push2(`<li class="shrink-0 basis-full h-full text-center"${_scopeId}>`);
|
|
1347
1352
|
ssrRenderVNode(_push2, createVNode(resolveDynamicComponent(slide.href ? "ALink" : "span"), {
|
|
1348
1353
|
href: slide.href,
|
|
1349
1354
|
target: slide.target,
|
|
@@ -1374,7 +1379,10 @@ function _sfc_ssrRender$a(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1374
1379
|
} else {
|
|
1375
1380
|
return [
|
|
1376
1381
|
(openBlock(true), createBlock(Fragment$1, null, renderList($props.slides, (slide, i) => {
|
|
1377
|
-
return openBlock(), createBlock("li", {
|
|
1382
|
+
return openBlock(), createBlock("li", {
|
|
1383
|
+
key: i,
|
|
1384
|
+
class: "shrink-0 basis-full h-full text-center"
|
|
1385
|
+
}, [
|
|
1378
1386
|
(openBlock(), createBlock(resolveDynamicComponent(slide.href ? "ALink" : "span"), {
|
|
1379
1387
|
href: slide.href,
|
|
1380
1388
|
target: slide.target,
|
|
@@ -1398,13 +1406,13 @@ function _sfc_ssrRender$a(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1398
1406
|
}, _parent));
|
|
1399
1407
|
_push(`</div></div>`);
|
|
1400
1408
|
}
|
|
1401
|
-
const _sfc_setup$
|
|
1402
|
-
_sfc_main$
|
|
1409
|
+
const _sfc_setup$b = _sfc_main$b.setup;
|
|
1410
|
+
_sfc_main$b.setup = (props, ctx) => {
|
|
1403
1411
|
const ssrContext = useSSRContext();
|
|
1404
1412
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/PitchBar.vue");
|
|
1405
|
-
return _sfc_setup$
|
|
1413
|
+
return _sfc_setup$b ? _sfc_setup$b(props, ctx) : void 0;
|
|
1406
1414
|
};
|
|
1407
|
-
const PitchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1415
|
+
const PitchBar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["ssrRender", _sfc_ssrRender$b]]);
|
|
1408
1416
|
|
|
1409
1417
|
const useStickyHeader = (props) => {
|
|
1410
1418
|
const {
|
|
@@ -1527,7 +1535,6 @@ const useShopHeader = ({
|
|
|
1527
1535
|
}
|
|
1528
1536
|
return false;
|
|
1529
1537
|
});
|
|
1530
|
-
const isSidenavOpen = ref(false);
|
|
1531
1538
|
return {
|
|
1532
1539
|
isSticky,
|
|
1533
1540
|
staticHeight,
|
|
@@ -1537,12 +1544,11 @@ const useShopHeader = ({
|
|
|
1537
1544
|
getSubcategories,
|
|
1538
1545
|
getCategoryTree,
|
|
1539
1546
|
categoryTrees,
|
|
1540
|
-
inlineMenuTrees
|
|
1541
|
-
isSidenavOpen
|
|
1547
|
+
inlineMenuTrees
|
|
1542
1548
|
};
|
|
1543
1549
|
};
|
|
1544
1550
|
|
|
1545
|
-
const _sfc_main$
|
|
1551
|
+
const _sfc_main$a = defineComponent({
|
|
1546
1552
|
__name: "Drawer",
|
|
1547
1553
|
props: {
|
|
1548
1554
|
modelValue: { type: Boolean, default: false },
|
|
@@ -1568,15 +1574,19 @@ const _sfc_main$9 = defineComponent({
|
|
|
1568
1574
|
close();
|
|
1569
1575
|
}
|
|
1570
1576
|
};
|
|
1577
|
+
const scrollbarWidth = ref(0);
|
|
1571
1578
|
watch(toRef(props, "modelValue"), async (isOpen) => {
|
|
1572
1579
|
if (isOpen) {
|
|
1580
|
+
scrollbarWidth.value = window.innerWidth - document.documentElement.clientWidth;
|
|
1573
1581
|
document.body.style.overflow = "hidden";
|
|
1582
|
+
document.body.style.paddingRight = `${scrollbarWidth.value}px`;
|
|
1574
1583
|
setTimeout(() => {
|
|
1575
1584
|
document.addEventListener("click", outsideClickListener, { passive: true });
|
|
1576
1585
|
document.addEventListener("keydown", escClickListener, { passive: true });
|
|
1577
1586
|
}, 500);
|
|
1578
1587
|
} else {
|
|
1579
1588
|
document.body.style.overflow = null;
|
|
1589
|
+
document.body.style.paddingRight = null;
|
|
1580
1590
|
document.removeEventListener("click", outsideClickListener);
|
|
1581
1591
|
document.removeEventListener("keydown", escClickListener);
|
|
1582
1592
|
}
|
|
@@ -1588,9 +1598,9 @@ const _sfc_main$9 = defineComponent({
|
|
|
1588
1598
|
case "end":
|
|
1589
1599
|
return "right";
|
|
1590
1600
|
case "top":
|
|
1591
|
-
return "up";
|
|
1592
|
-
default:
|
|
1593
1601
|
return "down";
|
|
1602
|
+
default:
|
|
1603
|
+
return "up";
|
|
1594
1604
|
}
|
|
1595
1605
|
});
|
|
1596
1606
|
const isFixed = computed(() => {
|
|
@@ -1599,12 +1609,12 @@ const _sfc_main$9 = defineComponent({
|
|
|
1599
1609
|
const isPlacementX = computed(() => {
|
|
1600
1610
|
return props.placement === "start" || props.placement === "end";
|
|
1601
1611
|
});
|
|
1602
|
-
const __returned__ = { props, emit, close, drawer, outsideClickListener, escClickListener, slideTo, isFixed, isPlacementX };
|
|
1612
|
+
const __returned__ = { props, emit, close, drawer, outsideClickListener, escClickListener, scrollbarWidth, slideTo, isFixed, isPlacementX };
|
|
1603
1613
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
1604
1614
|
return __returned__;
|
|
1605
1615
|
}
|
|
1606
1616
|
});
|
|
1607
|
-
function _sfc_ssrRender$
|
|
1617
|
+
function _sfc_ssrRender$a(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1608
1618
|
const _component_Fade = resolveComponent("Fade");
|
|
1609
1619
|
_push(ssrRenderComponent(_component_Fade, mergeProps({
|
|
1610
1620
|
slide: $setup.slideTo,
|
|
@@ -1616,8 +1626,11 @@ function _sfc_ssrRender$9(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1616
1626
|
if ($props.modelValue) {
|
|
1617
1627
|
_push2(`<dialog class="${ssrRenderClass([[
|
|
1618
1628
|
$props.position,
|
|
1619
|
-
$setup.isFixed ? `top-0 left-0 ${$setup.isPlacementX ? "h-screen" : ""}` : null
|
|
1620
|
-
|
|
1629
|
+
$setup.isFixed ? `top-0 left-0 ${$setup.isPlacementX ? "h-screen" : ""}` : null,
|
|
1630
|
+
$setup.isPlacementX ? "max-w-sm" : null
|
|
1631
|
+
], "w-screen shadow p-0 m-0 z-50"])}" style="${ssrRenderStyle({
|
|
1632
|
+
maxWidth: !$setup.isPlacementX ? `calc(100vw - ${$setup.scrollbarWidth}px)` : null
|
|
1633
|
+
})}"${ssrIncludeBooleanAttr($props.modelValue) ? " open" : ""}${ssrRenderAttr("data-drawer", $props.placement)}${_scopeId}><div class="relative h-full"${_scopeId}>`);
|
|
1621
1634
|
if ($props.hasCloseButton) {
|
|
1622
1635
|
_push2(`<button type="button"${ssrRenderAttr("aria-label", "Fechar")} class="${ssrRenderClass([$props.placement === "end" ? "left-2" : "right-2", "absolute top-2"])}" data-drawer-close${_scopeId}>`);
|
|
1623
1636
|
ssrRenderSlot(_ctx.$slots, "close", {}, () => {
|
|
@@ -1660,10 +1673,14 @@ function _sfc_ssrRender$9(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1660
1673
|
$props.modelValue ? (openBlock(), createBlock("dialog", {
|
|
1661
1674
|
key: 0,
|
|
1662
1675
|
ref: "drawer",
|
|
1663
|
-
class: ["w-screen
|
|
1676
|
+
class: ["w-screen shadow p-0 m-0 z-50", [
|
|
1664
1677
|
$props.position,
|
|
1665
|
-
$setup.isFixed ? `top-0 left-0 ${$setup.isPlacementX ? "h-screen" : ""}` : null
|
|
1678
|
+
$setup.isFixed ? `top-0 left-0 ${$setup.isPlacementX ? "h-screen" : ""}` : null,
|
|
1679
|
+
$setup.isPlacementX ? "max-w-sm" : null
|
|
1666
1680
|
]],
|
|
1681
|
+
style: {
|
|
1682
|
+
maxWidth: !$setup.isPlacementX ? `calc(100vw - ${$setup.scrollbarWidth}px)` : null
|
|
1683
|
+
},
|
|
1667
1684
|
open: $props.modelValue,
|
|
1668
1685
|
"data-drawer": $props.placement
|
|
1669
1686
|
}, [
|
|
@@ -1694,20 +1711,20 @@ function _sfc_ssrRender$9(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1694
1711
|
_: 1
|
|
1695
1712
|
})
|
|
1696
1713
|
]))
|
|
1697
|
-
],
|
|
1714
|
+
], 14, ["open", "data-drawer"])) : createCommentVNode("", true)
|
|
1698
1715
|
];
|
|
1699
1716
|
}
|
|
1700
1717
|
}),
|
|
1701
1718
|
_: 3
|
|
1702
1719
|
}, _parent));
|
|
1703
1720
|
}
|
|
1704
|
-
const _sfc_setup$
|
|
1705
|
-
_sfc_main$
|
|
1721
|
+
const _sfc_setup$a = _sfc_main$a.setup;
|
|
1722
|
+
_sfc_main$a.setup = (props, ctx) => {
|
|
1706
1723
|
const ssrContext = useSSRContext();
|
|
1707
1724
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/Drawer.vue");
|
|
1708
|
-
return _sfc_setup$
|
|
1725
|
+
return _sfc_setup$a ? _sfc_setup$a(props, ctx) : void 0;
|
|
1709
1726
|
};
|
|
1710
|
-
const Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1727
|
+
const Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["ssrRender", _sfc_ssrRender$a]]);
|
|
1711
1728
|
|
|
1712
1729
|
const useStorage = (key, initialValue, storage = globalThis.localStorage) => {
|
|
1713
1730
|
if (!storage) {
|
|
@@ -1795,7 +1812,7 @@ userAgent.includes("Safari") && !userAgent.includes("Chrome");
|
|
|
1795
1812
|
const isIOS = /iPad|iPhone|iPod/.test(userAgent) && !window.MSStream;
|
|
1796
1813
|
const isMobile = isIOS || /Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
|
|
1797
1814
|
|
|
1798
|
-
const _sfc_main$
|
|
1815
|
+
const _sfc_main$9 = defineComponent({
|
|
1799
1816
|
__name: "SocialNetworkIcon",
|
|
1800
1817
|
props: {
|
|
1801
1818
|
as: { default: "i" },
|
|
@@ -1829,18 +1846,18 @@ const _sfc_main$8 = defineComponent({
|
|
|
1829
1846
|
return __returned__;
|
|
1830
1847
|
}
|
|
1831
1848
|
});
|
|
1832
|
-
function _sfc_ssrRender$
|
|
1849
|
+
function _sfc_ssrRender$9(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1833
1850
|
ssrRenderVNode(_push, createVNode(resolveDynamicComponent($props.as), mergeProps({ class: $setup.iconClassName }, _attrs), null), _parent);
|
|
1834
1851
|
}
|
|
1835
|
-
const _sfc_setup$
|
|
1836
|
-
_sfc_main$
|
|
1852
|
+
const _sfc_setup$9 = _sfc_main$9.setup;
|
|
1853
|
+
_sfc_main$9.setup = (props, ctx) => {
|
|
1837
1854
|
const ssrContext = useSSRContext();
|
|
1838
1855
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/SocialNetworkIcon.vue");
|
|
1839
|
-
return _sfc_setup$
|
|
1856
|
+
return _sfc_setup$9 ? _sfc_setup$9(props, ctx) : void 0;
|
|
1840
1857
|
};
|
|
1841
|
-
const SocialNetworkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1858
|
+
const SocialNetworkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["ssrRender", _sfc_ssrRender$9]]);
|
|
1842
1859
|
|
|
1843
|
-
const _sfc_main$
|
|
1860
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1844
1861
|
__name: "SocialNetworkLink",
|
|
1845
1862
|
props: {
|
|
1846
1863
|
network: null,
|
|
@@ -1866,7 +1883,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1866
1883
|
return __returned__;
|
|
1867
1884
|
}
|
|
1868
1885
|
});
|
|
1869
|
-
function _sfc_ssrRender$
|
|
1886
|
+
function _sfc_ssrRender$8(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1870
1887
|
const _component_ALink = resolveComponent("ALink");
|
|
1871
1888
|
_push(ssrRenderComponent(_component_ALink, mergeProps({ href: $setup.fixedHref }, _attrs), {
|
|
1872
1889
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
@@ -1887,15 +1904,15 @@ function _sfc_ssrRender$7(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1887
1904
|
_: 3
|
|
1888
1905
|
}, _parent));
|
|
1889
1906
|
}
|
|
1890
|
-
const _sfc_setup$
|
|
1891
|
-
_sfc_main$
|
|
1907
|
+
const _sfc_setup$8 = _sfc_main$8.setup;
|
|
1908
|
+
_sfc_main$8.setup = (props, ctx) => {
|
|
1892
1909
|
const ssrContext = useSSRContext();
|
|
1893
1910
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/SocialNetworkLink.vue");
|
|
1894
|
-
return _sfc_setup$
|
|
1911
|
+
return _sfc_setup$8 ? _sfc_setup$8(props, ctx) : void 0;
|
|
1895
1912
|
};
|
|
1896
|
-
const SocialNetworkLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1913
|
+
const SocialNetworkLink = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["ssrRender", _sfc_ssrRender$8]]);
|
|
1897
1914
|
|
|
1898
|
-
const _sfc_main$
|
|
1915
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1899
1916
|
__name: "ShopSidenavCategory",
|
|
1900
1917
|
props: {
|
|
1901
1918
|
categoryTree: null
|
|
@@ -1918,7 +1935,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1918
1935
|
return __returned__;
|
|
1919
1936
|
}
|
|
1920
1937
|
});
|
|
1921
|
-
function _sfc_ssrRender$
|
|
1938
|
+
function _sfc_ssrRender$7(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1922
1939
|
const _component_AImg = resolveComponent("AImg");
|
|
1923
1940
|
const _component_ShopSidenavCategory = resolveComponent("ShopSidenavCategory", true);
|
|
1924
1941
|
_push(`<li${ssrRenderAttrs(mergeProps({ class: "text-lg text-base-800" }, _attrs))}>`);
|
|
@@ -1954,15 +1971,15 @@ function _sfc_ssrRender$6(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1954
1971
|
}
|
|
1955
1972
|
_push(`</li>`);
|
|
1956
1973
|
}
|
|
1957
|
-
const _sfc_setup$
|
|
1958
|
-
_sfc_main$
|
|
1974
|
+
const _sfc_setup$7 = _sfc_main$7.setup;
|
|
1975
|
+
_sfc_main$7.setup = (props, ctx) => {
|
|
1959
1976
|
const ssrContext = useSSRContext();
|
|
1960
1977
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/ShopSidenavCategory.vue");
|
|
1961
|
-
return _sfc_setup$
|
|
1978
|
+
return _sfc_setup$7 ? _sfc_setup$7(props, ctx) : void 0;
|
|
1962
1979
|
};
|
|
1963
|
-
const ShopSidenavCategory = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1980
|
+
const ShopSidenavCategory = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["ssrRender", _sfc_ssrRender$7]]);
|
|
1964
1981
|
|
|
1965
|
-
const _sfc_main$
|
|
1982
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1966
1983
|
__name: "ShopSidenav",
|
|
1967
1984
|
props: {
|
|
1968
1985
|
categoryTrees: null
|
|
@@ -1983,7 +2000,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1983
2000
|
return __returned__;
|
|
1984
2001
|
}
|
|
1985
2002
|
});
|
|
1986
|
-
function _sfc_ssrRender$
|
|
2003
|
+
function _sfc_ssrRender$6(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1987
2004
|
_push(`<aside${ssrRenderAttrs(mergeProps({ class: "flex flex-col h-full" }, _attrs))}><nav class="py-4 grow"><ul class="relative h-full"><!--[-->`);
|
|
1988
2005
|
ssrRenderList($props.categoryTrees, (categoryTree) => {
|
|
1989
2006
|
_push(ssrRenderComponent($setup["ShopSidenavCategory"], {
|
|
@@ -2008,13 +2025,13 @@ function _sfc_ssrRender$5(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2008
2025
|
});
|
|
2009
2026
|
_push(`<!--]--></ul></footer></aside>`);
|
|
2010
2027
|
}
|
|
2011
|
-
const _sfc_setup$
|
|
2012
|
-
_sfc_main$
|
|
2028
|
+
const _sfc_setup$6 = _sfc_main$6.setup;
|
|
2029
|
+
_sfc_main$6.setup = (props, ctx) => {
|
|
2013
2030
|
const ssrContext = useSSRContext();
|
|
2014
2031
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/ShopSidenav.vue");
|
|
2015
|
-
return _sfc_setup$
|
|
2032
|
+
return _sfc_setup$6 ? _sfc_setup$6(props, ctx) : void 0;
|
|
2016
2033
|
};
|
|
2017
|
-
const ShopSidenav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2034
|
+
const ShopSidenav = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["ssrRender", _sfc_ssrRender$6]]);
|
|
2018
2035
|
|
|
2019
2036
|
const useShopHeaderSubmenu = (props) => {
|
|
2020
2037
|
const categoryPicture = computed(() => props.categoryTree.pictures?.[0]);
|
|
@@ -2054,7 +2071,7 @@ const useShopHeaderSubmenu = (props) => {
|
|
|
2054
2071
|
};
|
|
2055
2072
|
};
|
|
2056
2073
|
|
|
2057
|
-
const _sfc_main$
|
|
2074
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2058
2075
|
__name: "ShopHeaderSubmenu",
|
|
2059
2076
|
props: {
|
|
2060
2077
|
categoryTree: null
|
|
@@ -2079,7 +2096,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2079
2096
|
return __returned__;
|
|
2080
2097
|
}
|
|
2081
2098
|
});
|
|
2082
|
-
function _sfc_ssrRender$
|
|
2099
|
+
function _sfc_ssrRender$5(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
2083
2100
|
const _component_Fade = resolveComponent("Fade");
|
|
2084
2101
|
const _component_AImg = resolveComponent("AImg");
|
|
2085
2102
|
_push(ssrRenderComponent($setup["Popover"], _attrs, {
|
|
@@ -2369,15 +2386,15 @@ function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2369
2386
|
_: 3
|
|
2370
2387
|
}, _parent));
|
|
2371
2388
|
}
|
|
2372
|
-
const _sfc_setup$
|
|
2373
|
-
_sfc_main$
|
|
2389
|
+
const _sfc_setup$5 = _sfc_main$5.setup;
|
|
2390
|
+
_sfc_main$5.setup = (props, ctx) => {
|
|
2374
2391
|
const ssrContext = useSSRContext();
|
|
2375
2392
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/ShopHeaderSubmenu.vue");
|
|
2376
|
-
return _sfc_setup$
|
|
2393
|
+
return _sfc_setup$5 ? _sfc_setup$5(props, ctx) : void 0;
|
|
2377
2394
|
};
|
|
2378
|
-
const ShopHeaderSubmenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2395
|
+
const ShopHeaderSubmenu = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["ssrRender", _sfc_ssrRender$5]]);
|
|
2379
2396
|
|
|
2380
|
-
const _sfc_main$
|
|
2397
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2381
2398
|
__name: "ShopHeaderMenu",
|
|
2382
2399
|
props: {
|
|
2383
2400
|
inlineMenuTrees: null
|
|
@@ -2393,7 +2410,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2393
2410
|
return __returned__;
|
|
2394
2411
|
}
|
|
2395
2412
|
});
|
|
2396
|
-
function _sfc_ssrRender$
|
|
2413
|
+
function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
2397
2414
|
_push(`<nav${ssrRenderAttrs(_attrs)}><ul class="${ssrRenderClass([$props.inlineMenuTrees.length < 7 ? "text-base" : "text-sm", "flex gap-4 xl:gap-5 text-base-700"])}"><!--[-->`);
|
|
2398
2415
|
ssrRenderList($props.inlineMenuTrees, (categoryTree, i) => {
|
|
2399
2416
|
_push(`<li>`);
|
|
@@ -2437,13 +2454,26 @@ function _sfc_ssrRender$3(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2437
2454
|
});
|
|
2438
2455
|
_push(`<!--]--></ul></nav>`);
|
|
2439
2456
|
}
|
|
2440
|
-
const _sfc_setup$
|
|
2441
|
-
_sfc_main$
|
|
2457
|
+
const _sfc_setup$4 = _sfc_main$4.setup;
|
|
2458
|
+
_sfc_main$4.setup = (props, ctx) => {
|
|
2442
2459
|
const ssrContext = useSSRContext();
|
|
2443
2460
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/ShopHeaderMenu.vue");
|
|
2444
|
-
return _sfc_setup$
|
|
2461
|
+
return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
|
|
2445
2462
|
};
|
|
2446
|
-
const ShopHeaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2463
|
+
const ShopHeaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["ssrRender", _sfc_ssrRender$4]]);
|
|
2464
|
+
|
|
2465
|
+
const _sfc_main$3 = {};
|
|
2466
|
+
|
|
2467
|
+
function _sfc_ssrRender$3(_ctx, _push, _parent, _attrs) {
|
|
2468
|
+
_push(`<div${ssrRenderAttrs(mergeProps({ class: "w-full h-40 bg-base-300" }, _attrs))}></div>`);
|
|
2469
|
+
}
|
|
2470
|
+
const _sfc_setup$3 = _sfc_main$3.setup;
|
|
2471
|
+
_sfc_main$3.setup = (props, ctx) => {
|
|
2472
|
+
const ssrContext = useSSRContext()
|
|
2473
|
+
;(ssrContext.modules || (ssrContext.modules = new Set())).add("src/components/SearchModal.vue");
|
|
2474
|
+
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : undefined
|
|
2475
|
+
};
|
|
2476
|
+
const SearchModal = /*#__PURE__*/_export_sfc(_sfc_main$3, [['ssrRender',_sfc_ssrRender$3]]);
|
|
2447
2477
|
|
|
2448
2478
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2449
2479
|
__name: "ShopHeader",
|
|
@@ -2461,10 +2491,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2461
2491
|
isSticky,
|
|
2462
2492
|
positionY,
|
|
2463
2493
|
categoryTrees,
|
|
2464
|
-
inlineMenuTrees
|
|
2465
|
-
isSidenavOpen
|
|
2494
|
+
inlineMenuTrees
|
|
2466
2495
|
} = useShopHeader({ ...props, header });
|
|
2467
|
-
const
|
|
2496
|
+
const isSidenavOpen = ref(false);
|
|
2497
|
+
const isSearchOpen = ref(false);
|
|
2498
|
+
const __returned__ = { props, header, isSticky, positionY, categoryTrees, inlineMenuTrees, isSidenavOpen, isSearchOpen, Drawer, ShopSidenav, ShopHeaderMenu, SearchModal };
|
|
2468
2499
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2469
2500
|
return __returned__;
|
|
2470
2501
|
}
|
|
@@ -2485,7 +2516,7 @@ function _sfc_ssrRender$2(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2485
2516
|
"onUpdate:modelValue": ($event) => $setup.isSidenavOpen = $event,
|
|
2486
2517
|
"has-close-button": false,
|
|
2487
2518
|
position: "absolute",
|
|
2488
|
-
class: "mt-3 -
|
|
2519
|
+
class: $setup.isSticky ? "mt-2 md:mt-3" : "mt-3 sm:mt-4 md:mt-5",
|
|
2489
2520
|
style: { height: `calc(100vh - ${$setup.positionY}px + .5rem)` }
|
|
2490
2521
|
}, {
|
|
2491
2522
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
@@ -2499,6 +2530,23 @@ function _sfc_ssrRender$2(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2499
2530
|
}),
|
|
2500
2531
|
_: 1
|
|
2501
2532
|
}, _parent));
|
|
2533
|
+
_push(ssrRenderComponent($setup["Drawer"], {
|
|
2534
|
+
modelValue: $setup.isSearchOpen,
|
|
2535
|
+
"onUpdate:modelValue": ($event) => $setup.isSearchOpen = $event,
|
|
2536
|
+
"has-close-button": false,
|
|
2537
|
+
placement: "top"
|
|
2538
|
+
}, {
|
|
2539
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2540
|
+
if (_push2) {
|
|
2541
|
+
_push2(ssrRenderComponent($setup["SearchModal"], null, null, _parent2, _scopeId));
|
|
2542
|
+
} else {
|
|
2543
|
+
return [
|
|
2544
|
+
createVNode($setup["SearchModal"])
|
|
2545
|
+
];
|
|
2546
|
+
}
|
|
2547
|
+
}),
|
|
2548
|
+
_: 1
|
|
2549
|
+
}, _parent));
|
|
2502
2550
|
_push(`</header>`);
|
|
2503
2551
|
}
|
|
2504
2552
|
const _sfc_setup$2 = _sfc_main$2.setup;
|