cloudcommerce 0.6.6 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/renovate.json +1 -1
- package/CHANGELOG.md +30 -0
- package/ecomplus-stores/monocard/.devcontainer/devcontainer.json +3 -0
- package/ecomplus-stores/monocard/.github/workflows/build-and-deploy.yml +4 -9
- package/ecomplus-stores/monocard/.vscode/launch.json +11 -0
- package/ecomplus-stores/monocard/functions/core/package.json +1 -1
- package/ecomplus-stores/monocard/functions/events/package.json +2 -2
- package/ecomplus-stores/monocard/functions/modules/package.json +2 -2
- package/ecomplus-stores/monocard/functions/passport/package.json +2 -2
- package/ecomplus-stores/monocard/functions/ssr/content/header.json +16 -28
- package/ecomplus-stores/monocard/functions/ssr/content/settings.json +39 -2
- package/ecomplus-stores/monocard/functions/ssr/package.json +14 -18
- package/ecomplus-stores/monocard/functions/ssr/public/assets/lotties/img_1.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/assets/lotties/phone-nfc.json +1 -1
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-arcelor-mittal.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-azul.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-banco-pan.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-brinks.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-mastercard.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-pfizer.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-prudential.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo-unimed.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo.webp +0 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/AccountMenu.vue +104 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/CasesGrid.astro +49 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/LottiePhoneNFC.vue +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/components/MonocardCustomizer.vue +8 -8
- package/ecomplus-stores/monocard/functions/ssr/src/components/MotionFade.vue +17 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/PitchBar.vue +61 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/Prices.vue +112 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/SearchModal.vue +6 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopHeader.vue +97 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopHeaderMenu.vue +92 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopSidenav.vue +65 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/ShopSidenavCategory.vue +78 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/header/HeaderButtons.vue +1 -21
- package/ecomplus-stores/monocard/functions/ssr/src/components/header/HeaderNav.vue +1 -1
- package/ecomplus-stores/monocard/functions/ssr/src/env.d.ts +2 -1
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/Base.astro +11 -20
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/Pages.astro +15 -2
- package/ecomplus-stores/monocard/functions/ssr/src/main/Home.astro +53 -32
- package/ecomplus-stores/monocard/functions/ssr/src/pages/[...slug].astro +2 -2
- package/ecomplus-stores/monocard/functions/ssr/src/pages/_vue.ts +8 -1
- package/ecomplus-stores/monocard/functions/ssr/src/pages/comprar/index.astro +0 -2
- package/ecomplus-stores/monocard/functions/ssr/src/pages/fallback.astro +4 -2
- package/ecomplus-stores/monocard/functions/ssr/src/pages/index.astro +1 -1
- package/ecomplus-stores/monocard/functions/ssr/tailwind.config.cjs +29 -1
- package/ecomplus-stores/monocard/functions/ssr/tsconfig.json +0 -4
- package/ecomplus-stores/monocard/functions/ssr/uno.config.cjs +2 -1
- package/ecomplus-stores/monocard/package.json +1 -1
- package/ecomplus-stores/monocard/scripts/install.sh +1 -0
- package/ecomplus-stores/tia-sonia/functions/ssr/package.json +0 -8
- package/package.json +9 -9
- package/packages/api/package.json +1 -1
- package/packages/apps/correios/package.json +2 -2
- package/packages/apps/custom-payment/package.json +1 -1
- package/packages/apps/custom-shipping/package.json +1 -1
- package/packages/apps/datafrete/package.json +2 -2
- package/packages/apps/discounts/package.json +1 -1
- package/packages/apps/emails/package.json +1 -1
- package/packages/apps/fb-conversions/package.json +1 -1
- package/packages/apps/frenet/package.json +2 -2
- package/packages/apps/galaxpay/assets/onload-expression.min.js +1 -0
- package/packages/apps/galaxpay/package.json +2 -2
- package/packages/apps/google-analytics/package.json +2 -2
- package/packages/apps/infinitepay/package.json +2 -2
- package/packages/apps/jadlog/package.json +2 -2
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +2 -2
- package/packages/apps/mercadopago/assets/onload-expression.min.js +1 -0
- package/packages/apps/mercadopago/package.json +2 -2
- package/packages/apps/pagarme/assets/onload-expression.min.js +1 -0
- package/packages/apps/pagarme/package.json +2 -2
- package/packages/apps/paghiper/package.json +2 -2
- package/packages/apps/pix/package.json +2 -2
- package/packages/apps/tiny-erp/package.json +2 -2
- package/packages/apps/webhooks/package.json +2 -2
- package/packages/cli/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +2 -2
- 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 +3 -3
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +6 -6
- package/packages/storefront/dist/client/_astro/PitchBar.db7cd775.js +1 -0
- package/packages/storefront/dist/client/_astro/{Prices.c3513660.js → Prices.55399c72.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductCard.943cd687.js → ProductCard.7e891c08.js} +1 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.301e109b.js +4 -0
- package/packages/storefront/dist/client/_astro/_...slug_.0607a6ef.css +1 -0
- package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.a7457a61.js → _plugin-vue_export-helper.77ed7c18.js} +1 -1
- package/packages/storefront/dist/client/_astro/client.0de2f274.js +1 -0
- package/packages/storefront/dist/client/_astro/{format-money.6379f63c.js → format-money.ab6b71eb.js} +1 -1
- package/packages/storefront/dist/client/_astro/index.16f33784.js +1 -0
- package/packages/storefront/dist/client/_astro/{modules-info.fbf28964.js → modules-info.06ac0727.js} +1 -1
- package/packages/storefront/dist/client/_astro/runtime-dom.esm-bundler.d2f39f33.js +1 -0
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/client/workbox-e0d788d4.js +1 -0
- package/packages/storefront/dist/server/chunks/{astro.a9f695c0.mjs → astro.2e59789d.mjs} +7 -18
- package/packages/storefront/dist/server/chunks/pages/{all.226fa45f.mjs → all.726ca7f4.mjs} +790 -88
- package/packages/storefront/dist/server/entry.mjs +10 -16
- package/packages/storefront/package.json +10 -10
- package/packages/storefront/server.d.ts +5 -0
- package/packages/storefront/src/lib/assets/base.css +5 -0
- package/packages/storefront/src/lib/components/AccountLink.vue +38 -0
- package/packages/storefront/src/lib/layouts/PagesHeader.astro +1 -0
- package/packages/storefront/src/lib/pages/_vue.ts +6 -2
- package/packages/storefront/src/lib/ssr/Picture.astro +13 -4
- package/packages/storefront/src/lib/ssr-context.ts +3 -6
- package/packages/storefront/src/vue-globals.d.ts +2 -0
- package/packages/storefront/tailwind.config.cjs +1 -0
- package/packages/types/index.ts +6 -0
- package/packages/types/package.json +1 -1
- package/pnpm-workspace.yaml +3 -3
- package/ecomplus-stores/monocard/functions/ssr/content/contacts.json +0 -13
- package/ecomplus-stores/monocard/functions/ssr/content/info.json +0 -18
- package/ecomplus-stores/monocard/functions/ssr/public/img/uploads/logo.png +0 -0
- package/ecomplus-stores/monocard/functions/ssr/src/components/HowItWorksAccordion.vue +0 -32
- package/ecomplus-stores/monocard/functions/ssr/src/components/TheHeader.vue +0 -42
- package/ecomplus-stores/monocard/functions/ssr/src/components/TopBar.vue +0 -10
- package/ecomplus-stores/monocard/functions/ssr/src/layouts/PagesHeader.astro +0 -51
- package/packages/storefront/dist/client/_astro/PitchBar.fae93937.js +0 -1
- package/packages/storefront/dist/client/_astro/ShopHeader.5b3abae3.js +0 -4
- package/packages/storefront/dist/client/_astro/_...slug_.86768317.css +0 -1
- package/packages/storefront/dist/client/_astro/client.e1250adc.js +0 -1
- package/packages/storefront/dist/client/_astro/index.769c6acb.js +0 -1
- package/packages/storefront/dist/client/_astro/runtime-dom.esm-bundler.4e28b902.js +0 -1
- package/packages/storefront/dist/client/assets/icons/bootstrap-icons/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/assets/icons/feather-icons/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/assets/icons/font-awesome/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/assets/icons/line-awesome/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/assets/icons/tabler-icons/font/storefront-icons.woff2 +0 -0
- package/packages/storefront/dist/client/workbox-e2ee76b5.js +0 -1
- /package/ecomplus-stores/monocard/functions/ssr/content/{social.json → metatags.json} +0 -0
- /package/ecomplus-stores/monocard/functions/ssr/src/{pages/monocard.astro → layouts/Checkout.astro} +0 -0
|
@@ -9,9 +9,9 @@ import 'node:os';
|
|
|
9
9
|
import sizeOf from 'image-size';
|
|
10
10
|
import 'magic-string';
|
|
11
11
|
import 'node:stream';
|
|
12
|
-
import { c as createAstro, a as createComponent, r as renderTemplate, b as addAttribute, u as unescapeHTML,
|
|
12
|
+
import { c as createAstro, a as createComponent, r as renderTemplate, b as addAttribute, d as renderComponent, u as unescapeHTML, F as Fragment, m as maybeRenderHead, e as renderSlot, f as renderHead, s as spreadAttributes } from '../astro.2e59789d.mjs';
|
|
13
13
|
import api from '@cloudcommerce/api';
|
|
14
|
-
import { reactive, computed, defineComponent, inject, useSSRContext, mergeProps, ref, watch, toRef, onMounted, onBeforeUnmount, provide, createVNode, resolveDynamicComponent, withCtx, renderSlot as renderSlot$1, withDirectives, vShow, openBlock, createBlock, createCommentVNode, Fragment as Fragment$1, renderList, resolveComponent, withModifiers, Teleport, toDisplayString,
|
|
14
|
+
import { reactive, computed, defineComponent, inject, useSSRContext, mergeProps, ref, watch, toRef, onMounted, onBeforeUnmount, provide, createVNode, resolveDynamicComponent, withCtx, renderSlot as renderSlot$1, withDirectives, vShow, openBlock, createBlock, createCommentVNode, Fragment as Fragment$1, renderList, resolveComponent, withModifiers, Teleport, createTextVNode, toDisplayString, setBlockTracking } from 'vue';
|
|
15
15
|
import { img, price, formatMoney, nickname, onPromotion } from '@ecomplus/utils';
|
|
16
16
|
import { ssrRenderAttrs, ssrRenderSlot, ssrRenderClass, ssrRenderVNode, ssrRenderComponent, ssrRenderStyle, ssrRenderList, ssrIncludeBooleanAttr, ssrRenderAttr, ssrRenderTeleport, ssrInterpolate } from 'vue/server-renderer';
|
|
17
17
|
/* empty css */import { EventEmitter } from 'node:events';
|
|
@@ -19,7 +19,7 @@ import fs, { readFileSync } from 'node:fs';
|
|
|
19
19
|
import config from '@cloudcommerce/config';
|
|
20
20
|
import { resolve as resolve$1 } from 'path';
|
|
21
21
|
/* empty css */import { useScroll, useElementHover, useDebounceFn, useTimeout, promiseTimeout } from '@vueuse/core';
|
|
22
|
-
import { Popover, PopoverButton, PopoverPanel } from '@headlessui/vue';
|
|
22
|
+
import { Popover, PopoverButton, PopoverPanel, Menu, MenuButton, MenuItems, MenuItem } from '@headlessui/vue';
|
|
23
23
|
|
|
24
24
|
const _export_sfc = (sfc, props) => {
|
|
25
25
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -311,7 +311,7 @@ const getCMS = () => {
|
|
|
311
311
|
};
|
|
312
312
|
|
|
313
313
|
const _getConfig = () => {
|
|
314
|
-
const { VITE_ECOM_STORE_ID } = (Object.assign({"BASE_URL":"/","MODE":"production","DEV":false,"PROD":true,"SITE":"\"https://ecom2-002.web.app\""
|
|
314
|
+
const { VITE_ECOM_STORE_ID } = (Object.assign({"BASE_URL":"/","MODE":"production","DEV":false,"PROD":true,"SSR":true,"SITE":"\"https://ecom2-002.web.app\""},{ECOM_STORE_ID:process.env.ECOM_STORE_ID,})) || process.env;
|
|
315
315
|
if (VITE_ECOM_STORE_ID) {
|
|
316
316
|
config.set({ storeId: Number(VITE_ECOM_STORE_ID) });
|
|
317
317
|
}
|
|
@@ -470,7 +470,7 @@ const loadPageContext = async (Astro, {
|
|
|
470
470
|
return pageContext;
|
|
471
471
|
};
|
|
472
472
|
|
|
473
|
-
const pwaInfo =
|
|
473
|
+
const pwaInfo = {"pwaInDevEnvironment":false,"webManifest":{"href":"/manifest.webmanifest","useCredentials":false,"linkTag":"<link rel=\"manifest\" href=\"/manifest.webmanifest\">"}};
|
|
474
474
|
|
|
475
475
|
function isRemoteImage(src) {
|
|
476
476
|
return /^(https?:)?\/\//.test(src);
|
|
@@ -569,7 +569,7 @@ async function getImage$1(transform) {
|
|
|
569
569
|
}
|
|
570
570
|
const resolved = await resolveTransform(transform);
|
|
571
571
|
const attributes = await loader.getImageAttributes(resolved);
|
|
572
|
-
const isDev = (_b = (Object.assign({"BASE_URL":"/","MODE":"production","DEV":false,"PROD":true,"SITE":"\"https://ecom2-002.web.app\""
|
|
572
|
+
const isDev = (_b = (Object.assign({"BASE_URL":"/","MODE":"production","DEV":false,"PROD":true,"SSR":true,"SITE":"\"https://ecom2-002.web.app\""},{SSR:true,}))) == null ? void 0 : _b.DEV;
|
|
573
573
|
const isLocalImage = !isRemoteImage(resolved.src);
|
|
574
574
|
const _loader = isDev && isLocalImage ? globalThis.astroImage.defaultLoader : loader;
|
|
575
575
|
if (!_loader) {
|
|
@@ -661,7 +661,7 @@ async function getPicture(params) {
|
|
|
661
661
|
const tryImageSize = (src) => {
|
|
662
662
|
let dimensions = {};
|
|
663
663
|
if (typeof src === "string" && src.startsWith("/")) {
|
|
664
|
-
const { STOREFRONT_BASE_DIR } = Object.assign({"BASE_URL":"/","MODE":"production","DEV":false,"PROD":true,"SITE":"\"https://ecom2-002.web.app\""
|
|
664
|
+
const { STOREFRONT_BASE_DIR } = Object.assign({"BASE_URL":"/","MODE":"production","DEV":false,"PROD":true,"SSR":true,"SITE":"\"https://ecom2-002.web.app\""}, { STOREFRONT_BASE_DIR: process.env.STOREFRONT_BASE_DIR });
|
|
665
665
|
try {
|
|
666
666
|
dimensions = sizeOf(resolve$1(STOREFRONT_BASE_DIR, `public${src}`));
|
|
667
667
|
} catch (e) {
|
|
@@ -772,8 +772,8 @@ ${cmsMetatags?.fb_app_id && renderTemplate`<meta property="fb:app_id"${addAttrib
|
|
|
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 }
|
|
776
|
-
${renderTemplate`<link rel="manifest" href="/manifest.webmanifest">`}`;
|
|
775
|
+
${pwaInfo && renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": ($$result2) => renderTemplate`${unescapeHTML(pwaInfo.webManifest.linkTag)}` })}`}
|
|
776
|
+
${!pwaInfo && !false && renderTemplate`<link rel="manifest" href="/manifest.webmanifest">`}`;
|
|
777
777
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/layouts/BaseHead.astro");
|
|
778
778
|
|
|
779
779
|
var __freeze$1 = Object.freeze;
|
|
@@ -963,8 +963,13 @@ const $$Picture = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
963
963
|
const Astro2 = $$result.createAstro($$Astro$a, $$props, $$slots);
|
|
964
964
|
Astro2.self = $$Picture;
|
|
965
965
|
const props = Astro2.props;
|
|
966
|
-
if (!props.aspectRatio && typeof props.src === "string") {
|
|
967
|
-
|
|
966
|
+
if ((!props.width || !props.height) && !props.aspectRatio && typeof props.src === "string") {
|
|
967
|
+
const { width, height } = tryImageSize(props.src);
|
|
968
|
+
if (height) {
|
|
969
|
+
props.aspectRatio = getAspectRatio({ width, height });
|
|
970
|
+
props.width = width;
|
|
971
|
+
props.height = height;
|
|
972
|
+
}
|
|
968
973
|
}
|
|
969
974
|
return renderTemplate`${renderComponent($$result, "Picture", $$Picture$1, { ...props })}`;
|
|
970
975
|
}, "/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/ssr/Picture.astro");
|
|
@@ -1062,7 +1067,7 @@ const usePitchBar = (props) => {
|
|
|
1062
1067
|
|
|
1063
1068
|
const carouselKey = Symbol("carousel");
|
|
1064
1069
|
|
|
1065
|
-
const _sfc_main$
|
|
1070
|
+
const _sfc_main$f = defineComponent({
|
|
1066
1071
|
__name: "CarouselControl",
|
|
1067
1072
|
props: {
|
|
1068
1073
|
direction: { default: 1 }
|
|
@@ -1075,7 +1080,7 @@ const _sfc_main$d = defineComponent({
|
|
|
1075
1080
|
return __returned__;
|
|
1076
1081
|
}
|
|
1077
1082
|
});
|
|
1078
|
-
function _sfc_ssrRender$
|
|
1083
|
+
function _sfc_ssrRender$f(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1079
1084
|
_push(`<button${ssrRenderAttrs(mergeProps({
|
|
1080
1085
|
type: "button",
|
|
1081
1086
|
"aria-label": $props.direction > 0 ? "Pr\xF3ximo" : "Anterior",
|
|
@@ -1087,15 +1092,15 @@ function _sfc_ssrRender$d(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1087
1092
|
}, _push, _parent);
|
|
1088
1093
|
_push(`</button>`);
|
|
1089
1094
|
}
|
|
1090
|
-
const _sfc_setup$
|
|
1091
|
-
_sfc_main$
|
|
1095
|
+
const _sfc_setup$f = _sfc_main$f.setup;
|
|
1096
|
+
_sfc_main$f.setup = (props, ctx) => {
|
|
1092
1097
|
const ssrContext = useSSRContext();
|
|
1093
1098
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/CarouselControl.vue");
|
|
1094
|
-
return _sfc_setup$
|
|
1099
|
+
return _sfc_setup$f ? _sfc_setup$f(props, ctx) : void 0;
|
|
1095
1100
|
};
|
|
1096
|
-
const CarouselControl = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1101
|
+
const CarouselControl = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["ssrRender", _sfc_ssrRender$f]]);
|
|
1097
1102
|
|
|
1098
|
-
const _sfc_main$
|
|
1103
|
+
const _sfc_main$e = defineComponent({
|
|
1099
1104
|
__name: "Carousel",
|
|
1100
1105
|
props: {
|
|
1101
1106
|
as: { default: "ul" },
|
|
@@ -1235,7 +1240,7 @@ const _sfc_main$c = defineComponent({
|
|
|
1235
1240
|
return __returned__;
|
|
1236
1241
|
}
|
|
1237
1242
|
});
|
|
1238
|
-
function _sfc_ssrRender$
|
|
1243
|
+
function _sfc_ssrRender$e(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1239
1244
|
_push(`<div${ssrRenderAttrs(mergeProps({
|
|
1240
1245
|
ref: "carousel",
|
|
1241
1246
|
class: "relative",
|
|
@@ -1291,15 +1296,15 @@ function _sfc_ssrRender$c(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1291
1296
|
}, _push, _parent);
|
|
1292
1297
|
_push(`</div>`);
|
|
1293
1298
|
}
|
|
1294
|
-
const _sfc_setup$
|
|
1295
|
-
_sfc_main$
|
|
1299
|
+
const _sfc_setup$e = _sfc_main$e.setup;
|
|
1300
|
+
_sfc_main$e.setup = (props, ctx) => {
|
|
1296
1301
|
const ssrContext = useSSRContext();
|
|
1297
1302
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/Carousel.vue");
|
|
1298
|
-
return _sfc_setup$
|
|
1303
|
+
return _sfc_setup$e ? _sfc_setup$e(props, ctx) : void 0;
|
|
1299
1304
|
};
|
|
1300
|
-
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1305
|
+
const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["ssrRender", _sfc_ssrRender$e]]);
|
|
1301
1306
|
|
|
1302
|
-
const _sfc_main$
|
|
1307
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1303
1308
|
__name: "PitchBar",
|
|
1304
1309
|
props: {
|
|
1305
1310
|
slides: null
|
|
@@ -1316,7 +1321,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1316
1321
|
return __returned__;
|
|
1317
1322
|
}
|
|
1318
1323
|
});
|
|
1319
|
-
function _sfc_ssrRender$
|
|
1324
|
+
function _sfc_ssrRender$d(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1320
1325
|
_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">`);
|
|
1321
1326
|
_push(ssrRenderComponent($setup["Carousel"], {
|
|
1322
1327
|
autoplay: $setup.countValidSlides > 1 ? 7e3 : null
|
|
@@ -1406,13 +1411,13 @@ function _sfc_ssrRender$b(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1406
1411
|
}, _parent));
|
|
1407
1412
|
_push(`</div></div>`);
|
|
1408
1413
|
}
|
|
1409
|
-
const _sfc_setup$
|
|
1410
|
-
_sfc_main$
|
|
1414
|
+
const _sfc_setup$d = _sfc_main$d.setup;
|
|
1415
|
+
_sfc_main$d.setup = (props, ctx) => {
|
|
1411
1416
|
const ssrContext = useSSRContext();
|
|
1412
1417
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/PitchBar.vue");
|
|
1413
|
-
return _sfc_setup$
|
|
1418
|
+
return _sfc_setup$d ? _sfc_setup$d(props, ctx) : void 0;
|
|
1414
1419
|
};
|
|
1415
|
-
const PitchBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1420
|
+
const PitchBar = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["ssrRender", _sfc_ssrRender$d]]);
|
|
1416
1421
|
|
|
1417
1422
|
const useStickyHeader = (props) => {
|
|
1418
1423
|
const {
|
|
@@ -1548,7 +1553,7 @@ const useShopHeader = ({
|
|
|
1548
1553
|
};
|
|
1549
1554
|
};
|
|
1550
1555
|
|
|
1551
|
-
const _sfc_main$
|
|
1556
|
+
const _sfc_main$c = defineComponent({
|
|
1552
1557
|
__name: "Drawer",
|
|
1553
1558
|
props: {
|
|
1554
1559
|
modelValue: { type: Boolean, default: false },
|
|
@@ -1614,7 +1619,7 @@ const _sfc_main$a = defineComponent({
|
|
|
1614
1619
|
return __returned__;
|
|
1615
1620
|
}
|
|
1616
1621
|
});
|
|
1617
|
-
function _sfc_ssrRender$
|
|
1622
|
+
function _sfc_ssrRender$c(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1618
1623
|
const _component_Fade = resolveComponent("Fade");
|
|
1619
1624
|
_push(ssrRenderComponent(_component_Fade, mergeProps({
|
|
1620
1625
|
slide: $setup.slideTo,
|
|
@@ -1718,13 +1723,13 @@ function _sfc_ssrRender$a(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1718
1723
|
_: 3
|
|
1719
1724
|
}, _parent));
|
|
1720
1725
|
}
|
|
1721
|
-
const _sfc_setup$
|
|
1722
|
-
_sfc_main$
|
|
1726
|
+
const _sfc_setup$c = _sfc_main$c.setup;
|
|
1727
|
+
_sfc_main$c.setup = (props, ctx) => {
|
|
1723
1728
|
const ssrContext = useSSRContext();
|
|
1724
1729
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/Drawer.vue");
|
|
1725
|
-
return _sfc_setup$
|
|
1730
|
+
return _sfc_setup$c ? _sfc_setup$c(props, ctx) : void 0;
|
|
1726
1731
|
};
|
|
1727
|
-
const Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1732
|
+
const Drawer = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["ssrRender", _sfc_ssrRender$c]]);
|
|
1728
1733
|
|
|
1729
1734
|
const useStorage = (key, initialValue, storage = globalThis.localStorage) => {
|
|
1730
1735
|
if (!storage) {
|
|
@@ -1804,6 +1809,54 @@ networkNames.forEach((network) => {
|
|
|
1804
1809
|
}
|
|
1805
1810
|
});
|
|
1806
1811
|
|
|
1812
|
+
const _sfc_main$b = defineComponent({
|
|
1813
|
+
__name: "AccountLink",
|
|
1814
|
+
props: {
|
|
1815
|
+
to: null,
|
|
1816
|
+
accountUrl: { default: globalThis.storefront.settings.account_url || "/app/account" },
|
|
1817
|
+
returnUrl: { default: globalThis.location?.href },
|
|
1818
|
+
isSignUp: { type: Boolean }
|
|
1819
|
+
},
|
|
1820
|
+
setup(__props, { expose }) {
|
|
1821
|
+
expose();
|
|
1822
|
+
const props = __props;
|
|
1823
|
+
const href = computed(() => {
|
|
1824
|
+
let url = props.accountUrl;
|
|
1825
|
+
if (!props.to) {
|
|
1826
|
+
if (props.isSignUp) {
|
|
1827
|
+
url += "?sign_up&";
|
|
1828
|
+
} else {
|
|
1829
|
+
url += "?";
|
|
1830
|
+
}
|
|
1831
|
+
return `${url}return_url=${props.returnUrl}`;
|
|
1832
|
+
}
|
|
1833
|
+
const { settings } = globalThis.storefront;
|
|
1834
|
+
if (props.to === "orders" && settings.orders_url) {
|
|
1835
|
+
return settings.orders_url;
|
|
1836
|
+
}
|
|
1837
|
+
if (props.to === "favorites" && settings.favorites_url) {
|
|
1838
|
+
return settings.favorites_url;
|
|
1839
|
+
}
|
|
1840
|
+
return `${url}/${props.to}`;
|
|
1841
|
+
});
|
|
1842
|
+
const __returned__ = { props, href };
|
|
1843
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
1844
|
+
return __returned__;
|
|
1845
|
+
}
|
|
1846
|
+
});
|
|
1847
|
+
function _sfc_ssrRender$b(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1848
|
+
_push(`<a${ssrRenderAttrs(mergeProps({ href: $setup.href }, _attrs))}>`);
|
|
1849
|
+
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
|
1850
|
+
_push(`</a>`);
|
|
1851
|
+
}
|
|
1852
|
+
const _sfc_setup$b = _sfc_main$b.setup;
|
|
1853
|
+
_sfc_main$b.setup = (props, ctx) => {
|
|
1854
|
+
const ssrContext = useSSRContext();
|
|
1855
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/AccountLink.vue");
|
|
1856
|
+
return _sfc_setup$b ? _sfc_setup$b(props, ctx) : void 0;
|
|
1857
|
+
};
|
|
1858
|
+
const AccountLink = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["ssrRender", _sfc_ssrRender$b]]);
|
|
1859
|
+
|
|
1807
1860
|
let userAgent;
|
|
1808
1861
|
{
|
|
1809
1862
|
userAgent = "";
|
|
@@ -1812,7 +1865,7 @@ userAgent.includes("Safari") && !userAgent.includes("Chrome");
|
|
|
1812
1865
|
const isIOS = /iPad|iPhone|iPod/.test(userAgent) && !window.MSStream;
|
|
1813
1866
|
const isMobile = isIOS || /Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(userAgent);
|
|
1814
1867
|
|
|
1815
|
-
const _sfc_main$
|
|
1868
|
+
const _sfc_main$a = defineComponent({
|
|
1816
1869
|
__name: "SocialNetworkIcon",
|
|
1817
1870
|
props: {
|
|
1818
1871
|
as: { default: "i" },
|
|
@@ -1846,18 +1899,18 @@ const _sfc_main$9 = defineComponent({
|
|
|
1846
1899
|
return __returned__;
|
|
1847
1900
|
}
|
|
1848
1901
|
});
|
|
1849
|
-
function _sfc_ssrRender$
|
|
1902
|
+
function _sfc_ssrRender$a(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1850
1903
|
ssrRenderVNode(_push, createVNode(resolveDynamicComponent($props.as), mergeProps({ class: $setup.iconClassName }, _attrs), null), _parent);
|
|
1851
1904
|
}
|
|
1852
|
-
const _sfc_setup$
|
|
1853
|
-
_sfc_main$
|
|
1905
|
+
const _sfc_setup$a = _sfc_main$a.setup;
|
|
1906
|
+
_sfc_main$a.setup = (props, ctx) => {
|
|
1854
1907
|
const ssrContext = useSSRContext();
|
|
1855
1908
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/SocialNetworkIcon.vue");
|
|
1856
|
-
return _sfc_setup$
|
|
1909
|
+
return _sfc_setup$a ? _sfc_setup$a(props, ctx) : void 0;
|
|
1857
1910
|
};
|
|
1858
|
-
const SocialNetworkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1911
|
+
const SocialNetworkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["ssrRender", _sfc_ssrRender$a]]);
|
|
1859
1912
|
|
|
1860
|
-
const _sfc_main$
|
|
1913
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1861
1914
|
__name: "SocialNetworkLink",
|
|
1862
1915
|
props: {
|
|
1863
1916
|
network: null,
|
|
@@ -1883,7 +1936,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1883
1936
|
return __returned__;
|
|
1884
1937
|
}
|
|
1885
1938
|
});
|
|
1886
|
-
function _sfc_ssrRender$
|
|
1939
|
+
function _sfc_ssrRender$9(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1887
1940
|
const _component_ALink = resolveComponent("ALink");
|
|
1888
1941
|
_push(ssrRenderComponent(_component_ALink, mergeProps({ href: $setup.fixedHref }, _attrs), {
|
|
1889
1942
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
@@ -1904,15 +1957,15 @@ function _sfc_ssrRender$8(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1904
1957
|
_: 3
|
|
1905
1958
|
}, _parent));
|
|
1906
1959
|
}
|
|
1907
|
-
const _sfc_setup$
|
|
1908
|
-
_sfc_main$
|
|
1960
|
+
const _sfc_setup$9 = _sfc_main$9.setup;
|
|
1961
|
+
_sfc_main$9.setup = (props, ctx) => {
|
|
1909
1962
|
const ssrContext = useSSRContext();
|
|
1910
1963
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/SocialNetworkLink.vue");
|
|
1911
|
-
return _sfc_setup$
|
|
1964
|
+
return _sfc_setup$9 ? _sfc_setup$9(props, ctx) : void 0;
|
|
1912
1965
|
};
|
|
1913
|
-
const SocialNetworkLink = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1966
|
+
const SocialNetworkLink = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["ssrRender", _sfc_ssrRender$9]]);
|
|
1914
1967
|
|
|
1915
|
-
const _sfc_main$
|
|
1968
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1916
1969
|
__name: "ShopSidenavCategory",
|
|
1917
1970
|
props: {
|
|
1918
1971
|
categoryTree: null
|
|
@@ -1935,7 +1988,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1935
1988
|
return __returned__;
|
|
1936
1989
|
}
|
|
1937
1990
|
});
|
|
1938
|
-
function _sfc_ssrRender$
|
|
1991
|
+
function _sfc_ssrRender$8(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
1939
1992
|
const _component_AImg = resolveComponent("AImg");
|
|
1940
1993
|
const _component_ShopSidenavCategory = resolveComponent("ShopSidenavCategory", true);
|
|
1941
1994
|
_push(`<li${ssrRenderAttrs(mergeProps({ class: "text-lg text-base-800" }, _attrs))}>`);
|
|
@@ -1971,15 +2024,15 @@ function _sfc_ssrRender$7(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
1971
2024
|
}
|
|
1972
2025
|
_push(`</li>`);
|
|
1973
2026
|
}
|
|
1974
|
-
const _sfc_setup$
|
|
1975
|
-
_sfc_main$
|
|
2027
|
+
const _sfc_setup$8 = _sfc_main$8.setup;
|
|
2028
|
+
_sfc_main$8.setup = (props, ctx) => {
|
|
1976
2029
|
const ssrContext = useSSRContext();
|
|
1977
2030
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/ShopSidenavCategory.vue");
|
|
1978
|
-
return _sfc_setup$
|
|
2031
|
+
return _sfc_setup$8 ? _sfc_setup$8(props, ctx) : void 0;
|
|
1979
2032
|
};
|
|
1980
|
-
const ShopSidenavCategory = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2033
|
+
const ShopSidenavCategory = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["ssrRender", _sfc_ssrRender$8]]);
|
|
1981
2034
|
|
|
1982
|
-
const _sfc_main$
|
|
2035
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1983
2036
|
__name: "ShopSidenav",
|
|
1984
2037
|
props: {
|
|
1985
2038
|
categoryTrees: null
|
|
@@ -1995,12 +2048,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1995
2048
|
return logout;
|
|
1996
2049
|
}, get socialNetworks() {
|
|
1997
2050
|
return socialNetworks;
|
|
1998
|
-
}, SocialNetworkLink, ShopSidenavCategory };
|
|
2051
|
+
}, AccountLink, SocialNetworkLink, ShopSidenavCategory };
|
|
1999
2052
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2000
2053
|
return __returned__;
|
|
2001
2054
|
}
|
|
2002
2055
|
});
|
|
2003
|
-
function _sfc_ssrRender$
|
|
2056
|
+
function _sfc_ssrRender$7(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
2004
2057
|
_push(`<aside${ssrRenderAttrs(mergeProps({ class: "flex flex-col h-full" }, _attrs))}><nav class="py-4 grow"><ul class="relative h-full"><!--[-->`);
|
|
2005
2058
|
ssrRenderList($props.categoryTrees, (categoryTree) => {
|
|
2006
2059
|
_push(ssrRenderComponent($setup["ShopSidenavCategory"], {
|
|
@@ -2008,7 +2061,23 @@ function _sfc_ssrRender$6(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2008
2061
|
"category-tree": categoryTree
|
|
2009
2062
|
}, null, _parent));
|
|
2010
2063
|
});
|
|
2011
|
-
_push(`<!--]--></ul></nav><footer class="text-base"><div class="flex items-center px-2 py-4 bg-base-100"
|
|
2064
|
+
_push(`<!--]--></ul></nav><footer class="text-base"><div class="flex items-center px-2 py-4 bg-base-100">`);
|
|
2065
|
+
_push(ssrRenderComponent($setup["AccountLink"], { class: "p-2 grow flex items-center gap-3" }, {
|
|
2066
|
+
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
2067
|
+
if (_push2) {
|
|
2068
|
+
_push2(`<i class="i-account text-4xl text-base-500 m-0"${_scopeId}></i><span class="leading-tight"${_scopeId}>${ssrInterpolate(`${"Ol\xE1"} ${$setup.customerName || "Visitante"}`)} <small class="block lowercase font-semibold text-primary"${_scopeId}>${ssrInterpolate("Meus pedidos")}, ${ssrInterpolate("Minha conta")}</small></span>`);
|
|
2069
|
+
} else {
|
|
2070
|
+
return [
|
|
2071
|
+
createVNode("i", { class: "i-account text-4xl text-base-500 m-0" }),
|
|
2072
|
+
createVNode("span", { class: "leading-tight" }, [
|
|
2073
|
+
createTextVNode(toDisplayString(`${"Ol\xE1"} ${$setup.customerName || "Visitante"}`) + " ", 1),
|
|
2074
|
+
createVNode("small", { class: "block lowercase font-semibold text-primary" }, toDisplayString("Meus pedidos") + ", " + toDisplayString("Minha conta"))
|
|
2075
|
+
])
|
|
2076
|
+
];
|
|
2077
|
+
}
|
|
2078
|
+
}),
|
|
2079
|
+
_: 1
|
|
2080
|
+
}, _parent));
|
|
2012
2081
|
if ($setup.isLogged) {
|
|
2013
2082
|
_push(`<button class="p-2 text-right text-base-800"><span class="text-base-600">${ssrInterpolate("Sair")}</span><i class="i-logout text-lg ml-1"></i></button>`);
|
|
2014
2083
|
} else {
|
|
@@ -2025,13 +2094,13 @@ function _sfc_ssrRender$6(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2025
2094
|
});
|
|
2026
2095
|
_push(`<!--]--></ul></footer></aside>`);
|
|
2027
2096
|
}
|
|
2028
|
-
const _sfc_setup$
|
|
2029
|
-
_sfc_main$
|
|
2097
|
+
const _sfc_setup$7 = _sfc_main$7.setup;
|
|
2098
|
+
_sfc_main$7.setup = (props, ctx) => {
|
|
2030
2099
|
const ssrContext = useSSRContext();
|
|
2031
2100
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/ShopSidenav.vue");
|
|
2032
|
-
return _sfc_setup$
|
|
2101
|
+
return _sfc_setup$7 ? _sfc_setup$7(props, ctx) : void 0;
|
|
2033
2102
|
};
|
|
2034
|
-
const ShopSidenav = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2103
|
+
const ShopSidenav = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["ssrRender", _sfc_ssrRender$7]]);
|
|
2035
2104
|
|
|
2036
2105
|
const useShopHeaderSubmenu = (props) => {
|
|
2037
2106
|
const categoryPicture = computed(() => props.categoryTree.pictures?.[0]);
|
|
@@ -2071,7 +2140,7 @@ const useShopHeaderSubmenu = (props) => {
|
|
|
2071
2140
|
};
|
|
2072
2141
|
};
|
|
2073
2142
|
|
|
2074
|
-
const _sfc_main$
|
|
2143
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2075
2144
|
__name: "ShopHeaderSubmenu",
|
|
2076
2145
|
props: {
|
|
2077
2146
|
categoryTree: null
|
|
@@ -2096,7 +2165,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2096
2165
|
return __returned__;
|
|
2097
2166
|
}
|
|
2098
2167
|
});
|
|
2099
|
-
function _sfc_ssrRender$
|
|
2168
|
+
function _sfc_ssrRender$6(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
2100
2169
|
const _component_Fade = resolveComponent("Fade");
|
|
2101
2170
|
const _component_AImg = resolveComponent("AImg");
|
|
2102
2171
|
_push(ssrRenderComponent($setup["Popover"], _attrs, {
|
|
@@ -2119,7 +2188,7 @@ function _sfc_ssrRender$5(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2119
2188
|
default: withCtx((_, _push3, _parent3, _scopeId2) => {
|
|
2120
2189
|
if (_push3) {
|
|
2121
2190
|
_push3(ssrRenderComponent($setup["PopoverPanel"], {
|
|
2122
|
-
class: ["absolute z-20 top-3 left-1/2 -translate-x-1/2 !transform px-6 py-4 rounded-md shadow bg-white text-base text-base-700", $setup.countMenuCols === 1 ? "w-60" : $setup.countMenuCols === 2 ? `w-screen ${$setup.categoryPicture ? "max-w-lg" : "max-w-sm"}` : $setup.countMenuCols === 3 ? `w-screen ${$setup.categoryPicture ? "max-w-xl" : "max-w-md"}` : $setup.countMenuCols < 6 ? "w-screen max-w-3xl" : "w-screen max-w-5xl"]
|
|
2191
|
+
class: ["absolute z-20 top-3 left-1/2 -translate-x-1/2 !transform px-6 py-4 rounded-md backdrop-blur-md shadow bg-white/80 text-base text-base-700", $setup.countMenuCols === 1 ? "w-60" : $setup.countMenuCols === 2 ? `w-screen ${$setup.categoryPicture ? "max-w-lg" : "max-w-sm"}` : $setup.countMenuCols === 3 ? `w-screen ${$setup.categoryPicture ? "max-w-xl" : "max-w-md"}` : $setup.countMenuCols < 6 ? "w-screen max-w-3xl" : "w-screen max-w-5xl"]
|
|
2123
2192
|
}, {
|
|
2124
2193
|
default: withCtx((_2, _push4, _parent4, _scopeId3) => {
|
|
2125
2194
|
if (_push4) {
|
|
@@ -2224,7 +2293,7 @@ function _sfc_ssrRender$5(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2224
2293
|
} else {
|
|
2225
2294
|
return [
|
|
2226
2295
|
createVNode($setup["PopoverPanel"], {
|
|
2227
|
-
class: ["absolute z-20 top-3 left-1/2 -translate-x-1/2 !transform px-6 py-4 rounded-md shadow bg-white text-base text-base-700", $setup.countMenuCols === 1 ? "w-60" : $setup.countMenuCols === 2 ? `w-screen ${$setup.categoryPicture ? "max-w-lg" : "max-w-sm"}` : $setup.countMenuCols === 3 ? `w-screen ${$setup.categoryPicture ? "max-w-xl" : "max-w-md"}` : $setup.countMenuCols < 6 ? "w-screen max-w-3xl" : "w-screen max-w-5xl"]
|
|
2296
|
+
class: ["absolute z-20 top-3 left-1/2 -translate-x-1/2 !transform px-6 py-4 rounded-md backdrop-blur-md shadow bg-white/80 text-base text-base-700", $setup.countMenuCols === 1 ? "w-60" : $setup.countMenuCols === 2 ? `w-screen ${$setup.categoryPicture ? "max-w-lg" : "max-w-sm"}` : $setup.countMenuCols === 3 ? `w-screen ${$setup.categoryPicture ? "max-w-xl" : "max-w-md"}` : $setup.countMenuCols < 6 ? "w-screen max-w-3xl" : "w-screen max-w-5xl"]
|
|
2228
2297
|
}, {
|
|
2229
2298
|
default: withCtx(() => [
|
|
2230
2299
|
createVNode("div", { class: "flex gap-6 w-full" }, [
|
|
@@ -2309,7 +2378,7 @@ function _sfc_ssrRender$5(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2309
2378
|
createVNode(_component_Fade, null, {
|
|
2310
2379
|
default: withCtx(() => [
|
|
2311
2380
|
createVNode($setup["PopoverPanel"], {
|
|
2312
|
-
class: ["absolute z-20 top-3 left-1/2 -translate-x-1/2 !transform px-6 py-4 rounded-md shadow bg-white text-base text-base-700", $setup.countMenuCols === 1 ? "w-60" : $setup.countMenuCols === 2 ? `w-screen ${$setup.categoryPicture ? "max-w-lg" : "max-w-sm"}` : $setup.countMenuCols === 3 ? `w-screen ${$setup.categoryPicture ? "max-w-xl" : "max-w-md"}` : $setup.countMenuCols < 6 ? "w-screen max-w-3xl" : "w-screen max-w-5xl"]
|
|
2381
|
+
class: ["absolute z-20 top-3 left-1/2 -translate-x-1/2 !transform px-6 py-4 rounded-md backdrop-blur-md shadow bg-white/80 text-base text-base-700", $setup.countMenuCols === 1 ? "w-60" : $setup.countMenuCols === 2 ? `w-screen ${$setup.categoryPicture ? "max-w-lg" : "max-w-sm"}` : $setup.countMenuCols === 3 ? `w-screen ${$setup.categoryPicture ? "max-w-xl" : "max-w-md"}` : $setup.countMenuCols < 6 ? "w-screen max-w-3xl" : "w-screen max-w-5xl"]
|
|
2313
2382
|
}, {
|
|
2314
2383
|
default: withCtx(() => [
|
|
2315
2384
|
createVNode("div", { class: "flex gap-6 w-full" }, [
|
|
@@ -2386,15 +2455,15 @@ function _sfc_ssrRender$5(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2386
2455
|
_: 3
|
|
2387
2456
|
}, _parent));
|
|
2388
2457
|
}
|
|
2389
|
-
const _sfc_setup$
|
|
2390
|
-
_sfc_main$
|
|
2458
|
+
const _sfc_setup$6 = _sfc_main$6.setup;
|
|
2459
|
+
_sfc_main$6.setup = (props, ctx) => {
|
|
2391
2460
|
const ssrContext = useSSRContext();
|
|
2392
2461
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/ShopHeaderSubmenu.vue");
|
|
2393
|
-
return _sfc_setup$
|
|
2462
|
+
return _sfc_setup$6 ? _sfc_setup$6(props, ctx) : void 0;
|
|
2394
2463
|
};
|
|
2395
|
-
const ShopHeaderSubmenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2464
|
+
const ShopHeaderSubmenu = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["ssrRender", _sfc_ssrRender$6]]);
|
|
2396
2465
|
|
|
2397
|
-
const _sfc_main$
|
|
2466
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2398
2467
|
__name: "ShopHeaderMenu",
|
|
2399
2468
|
props: {
|
|
2400
2469
|
inlineMenuTrees: null
|
|
@@ -2410,7 +2479,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2410
2479
|
return __returned__;
|
|
2411
2480
|
}
|
|
2412
2481
|
});
|
|
2413
|
-
function _sfc_ssrRender$
|
|
2482
|
+
function _sfc_ssrRender$5(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
2414
2483
|
_push(`<nav${ssrRenderAttrs(_attrs)}><ul class="${ssrRenderClass([$props.inlineMenuTrees.length < 7 ? "text-base" : "text-sm", "flex gap-4 xl:gap-5 text-base-700"])}"><!--[-->`);
|
|
2415
2484
|
ssrRenderList($props.inlineMenuTrees, (categoryTree, i) => {
|
|
2416
2485
|
_push(`<li>`);
|
|
@@ -2448,32 +2517,644 @@ function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
|
|
|
2448
2517
|
_: 2
|
|
2449
2518
|
}, _parent));
|
|
2450
2519
|
} else {
|
|
2451
|
-
_push(`<a${ssrRenderAttr("href", `/${categoryTree.slug}`)} class="hover:text-primary hover:underline
|
|
2520
|
+
_push(`<a${ssrRenderAttr("href", `/${categoryTree.slug}`)} class="${ssrRenderClass([$props.inlineMenuTrees.length < 7 ? "decoration-2" : null, "hover:text-primary hover:underline"])}"><h3 class="inline">${ssrInterpolate(categoryTree.name)}</h3></a>`);
|
|
2452
2521
|
}
|
|
2453
2522
|
_push(`</li>`);
|
|
2454
2523
|
});
|
|
2455
2524
|
_push(`<!--]--></ul></nav>`);
|
|
2456
2525
|
}
|
|
2457
|
-
const _sfc_setup$
|
|
2458
|
-
_sfc_main$
|
|
2526
|
+
const _sfc_setup$5 = _sfc_main$5.setup;
|
|
2527
|
+
_sfc_main$5.setup = (props, ctx) => {
|
|
2459
2528
|
const ssrContext = useSSRContext();
|
|
2460
2529
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/ShopHeaderMenu.vue");
|
|
2461
|
-
return _sfc_setup$
|
|
2530
|
+
return _sfc_setup$5 ? _sfc_setup$5(props, ctx) : void 0;
|
|
2462
2531
|
};
|
|
2463
|
-
const ShopHeaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
2532
|
+
const ShopHeaderMenu = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["ssrRender", _sfc_ssrRender$5]]);
|
|
2464
2533
|
|
|
2465
|
-
const _sfc_main$
|
|
2534
|
+
const _sfc_main$4 = {};
|
|
2466
2535
|
|
|
2467
|
-
function _sfc_ssrRender$
|
|
2536
|
+
function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs) {
|
|
2468
2537
|
_push(`<div${ssrRenderAttrs(mergeProps({ class: "w-full h-40 bg-base-300" }, _attrs))}></div>`);
|
|
2469
2538
|
}
|
|
2470
|
-
const _sfc_setup$
|
|
2471
|
-
_sfc_main$
|
|
2539
|
+
const _sfc_setup$4 = _sfc_main$4.setup;
|
|
2540
|
+
_sfc_main$4.setup = (props, ctx) => {
|
|
2472
2541
|
const ssrContext = useSSRContext()
|
|
2473
2542
|
;(ssrContext.modules || (ssrContext.modules = new Set())).add("src/components/SearchModal.vue");
|
|
2474
|
-
return _sfc_setup$
|
|
2543
|
+
return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : undefined
|
|
2475
2544
|
};
|
|
2476
|
-
const SearchModal = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
2545
|
+
const SearchModal = /*#__PURE__*/_export_sfc(_sfc_main$4, [['ssrRender',_sfc_ssrRender$4]]);
|
|
2546
|
+
|
|
2547
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2548
|
+
__name: "AccountMenu",
|
|
2549
|
+
props: {
|
|
2550
|
+
serviceLinks: null
|
|
2551
|
+
},
|
|
2552
|
+
setup(__props, { expose }) {
|
|
2553
|
+
expose();
|
|
2554
|
+
const __returned__ = { get Menu() {
|
|
2555
|
+
return Menu;
|
|
2556
|
+
}, get MenuButton() {
|
|
2557
|
+
return MenuButton;
|
|
2558
|
+
}, get MenuItems() {
|
|
2559
|
+
return MenuItems;
|
|
2560
|
+
}, get MenuItem() {
|
|
2561
|
+
return MenuItem;
|
|
2562
|
+
}, get socialNetworks() {
|
|
2563
|
+
return socialNetworks;
|
|
2564
|
+
}, get customerName() {
|
|
2565
|
+
return customerName;
|
|
2566
|
+
}, get initializeFirebaseAuth() {
|
|
2567
|
+
return initializeFirebaseAuth;
|
|
2568
|
+
}, get isLogged() {
|
|
2569
|
+
return isLogged;
|
|
2570
|
+
}, get logout() {
|
|
2571
|
+
return logout;
|
|
2572
|
+
}, AccountLink, SocialNetworkLink };
|
|
2573
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2574
|
+
return __returned__;
|
|
2575
|
+
}
|
|
2576
|
+
});
|
|
2577
|
+
function _sfc_ssrRender$3(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
2578
|
+
const _component_Fade = resolveComponent("Fade");
|
|
2579
|
+
const _component_ALink = resolveComponent("ALink");
|
|
2580
|
+
_push(ssrRenderComponent($setup["Menu"], mergeProps({
|
|
2581
|
+
as: "div",
|
|
2582
|
+
class: "relative text-center text-sm text-base-800"
|
|
2583
|
+
}, _attrs), {
|
|
2584
|
+
default: withCtx(({ open }, _push2, _parent2, _scopeId) => {
|
|
2585
|
+
if (_push2) {
|
|
2586
|
+
if (open) {
|
|
2587
|
+
_push2(`<div${_scopeId}><span${_scopeId}>${ssrInterpolate($setup.initializeFirebaseAuth())}</span></div>`);
|
|
2588
|
+
} else {
|
|
2589
|
+
_push2(`<!---->`);
|
|
2590
|
+
}
|
|
2591
|
+
_push2(ssrRenderComponent($setup["MenuButton"], { class: "outline-none" }, {
|
|
2592
|
+
default: withCtx((_, _push3, _parent3, _scopeId2) => {
|
|
2593
|
+
if (_push3) {
|
|
2594
|
+
ssrRenderSlot(_ctx.$slots, "button", { open }, null, _push3, _parent3, _scopeId2);
|
|
2595
|
+
} else {
|
|
2596
|
+
return [
|
|
2597
|
+
renderSlot$1(_ctx.$slots, "button", { open })
|
|
2598
|
+
];
|
|
2599
|
+
}
|
|
2600
|
+
}),
|
|
2601
|
+
_: 2
|
|
2602
|
+
}, _parent2, _scopeId));
|
|
2603
|
+
_push2(ssrRenderComponent(_component_Fade, null, {
|
|
2604
|
+
default: withCtx((_, _push3, _parent3, _scopeId2) => {
|
|
2605
|
+
if (_push3) {
|
|
2606
|
+
_push3(ssrRenderComponent($setup["MenuItems"], { class: "absolute -right-8 mt-2 w-56 rounded-md shadow ring-1 ring-black ring-opacity-5 bg-white divide-y divide-base-100 focus:outline-none" }, {
|
|
2607
|
+
default: withCtx((_2, _push4, _parent4, _scopeId3) => {
|
|
2608
|
+
if (_push4) {
|
|
2609
|
+
_push4(`<div class="p-3 text-base-600"${_scopeId3}>${ssrInterpolate(`${"Ol\xE1"} ${$setup.customerName || "Visitante"}`)} `);
|
|
2610
|
+
_push4(ssrRenderComponent($setup["AccountLink"], { class: "block py-1.5 rounded primary hover:primary-bold my-1" }, {
|
|
2611
|
+
default: withCtx((_3, _push5, _parent5, _scopeId4) => {
|
|
2612
|
+
if (_push5) {
|
|
2613
|
+
_push5(`${ssrInterpolate("Acessar minha conta")}`);
|
|
2614
|
+
} else {
|
|
2615
|
+
return [
|
|
2616
|
+
createTextVNode(toDisplayString("Acessar minha conta"))
|
|
2617
|
+
];
|
|
2618
|
+
}
|
|
2619
|
+
}),
|
|
2620
|
+
_: 2
|
|
2621
|
+
}, _parent4, _scopeId3));
|
|
2622
|
+
if (!$setup.isLogged) {
|
|
2623
|
+
_push4(ssrRenderComponent($setup["AccountLink"], {
|
|
2624
|
+
class: "block font-medium text-primary hover:text-primary-bold",
|
|
2625
|
+
"is-sign-up": ""
|
|
2626
|
+
}, {
|
|
2627
|
+
default: withCtx((_3, _push5, _parent5, _scopeId4) => {
|
|
2628
|
+
if (_push5) {
|
|
2629
|
+
_push5(`${ssrInterpolate("Criar uma conta")}`);
|
|
2630
|
+
} else {
|
|
2631
|
+
return [
|
|
2632
|
+
createTextVNode(toDisplayString("Criar uma conta"))
|
|
2633
|
+
];
|
|
2634
|
+
}
|
|
2635
|
+
}),
|
|
2636
|
+
_: 2
|
|
2637
|
+
}, _parent4, _scopeId3));
|
|
2638
|
+
} else {
|
|
2639
|
+
_push4(`<!---->`);
|
|
2640
|
+
}
|
|
2641
|
+
_push4(`</div><ul class="list-none"${_scopeId3}>`);
|
|
2642
|
+
_push4(ssrRenderComponent($setup["MenuItem"], { as: "li" }, {
|
|
2643
|
+
default: withCtx(({ active }, _push5, _parent5, _scopeId4) => {
|
|
2644
|
+
if (_push5) {
|
|
2645
|
+
_push5(ssrRenderComponent($setup["AccountLink"], {
|
|
2646
|
+
to: "orders",
|
|
2647
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2648
|
+
}, {
|
|
2649
|
+
default: withCtx((_3, _push6, _parent6, _scopeId5) => {
|
|
2650
|
+
if (_push6) {
|
|
2651
|
+
_push6(`${ssrInterpolate("Meus pedidos")}`);
|
|
2652
|
+
} else {
|
|
2653
|
+
return [
|
|
2654
|
+
createTextVNode(toDisplayString("Meus pedidos"))
|
|
2655
|
+
];
|
|
2656
|
+
}
|
|
2657
|
+
}),
|
|
2658
|
+
_: 2
|
|
2659
|
+
}, _parent5, _scopeId4));
|
|
2660
|
+
} else {
|
|
2661
|
+
return [
|
|
2662
|
+
createVNode($setup["AccountLink"], {
|
|
2663
|
+
to: "orders",
|
|
2664
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2665
|
+
}, {
|
|
2666
|
+
default: withCtx(() => [
|
|
2667
|
+
createTextVNode(toDisplayString("Meus pedidos"))
|
|
2668
|
+
]),
|
|
2669
|
+
_: 2
|
|
2670
|
+
}, 1032, ["class"])
|
|
2671
|
+
];
|
|
2672
|
+
}
|
|
2673
|
+
}),
|
|
2674
|
+
_: 2
|
|
2675
|
+
}, _parent4, _scopeId3));
|
|
2676
|
+
_push4(ssrRenderComponent($setup["MenuItem"], { as: "li" }, {
|
|
2677
|
+
default: withCtx(({ active }, _push5, _parent5, _scopeId4) => {
|
|
2678
|
+
if (_push5) {
|
|
2679
|
+
_push5(ssrRenderComponent($setup["AccountLink"], {
|
|
2680
|
+
to: "favorites",
|
|
2681
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2682
|
+
}, {
|
|
2683
|
+
default: withCtx((_3, _push6, _parent6, _scopeId5) => {
|
|
2684
|
+
if (_push6) {
|
|
2685
|
+
_push6(`<i class="i-favorites mr-1"${_scopeId5}></i> ${ssrInterpolate("Meus favoritos")}`);
|
|
2686
|
+
} else {
|
|
2687
|
+
return [
|
|
2688
|
+
createVNode("i", { class: "i-favorites mr-1" }),
|
|
2689
|
+
createTextVNode(" " + toDisplayString("Meus favoritos"))
|
|
2690
|
+
];
|
|
2691
|
+
}
|
|
2692
|
+
}),
|
|
2693
|
+
_: 2
|
|
2694
|
+
}, _parent5, _scopeId4));
|
|
2695
|
+
} else {
|
|
2696
|
+
return [
|
|
2697
|
+
createVNode($setup["AccountLink"], {
|
|
2698
|
+
to: "favorites",
|
|
2699
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2700
|
+
}, {
|
|
2701
|
+
default: withCtx(() => [
|
|
2702
|
+
createVNode("i", { class: "i-favorites mr-1" }),
|
|
2703
|
+
createTextVNode(" " + toDisplayString("Meus favoritos"))
|
|
2704
|
+
]),
|
|
2705
|
+
_: 2
|
|
2706
|
+
}, 1032, ["class"])
|
|
2707
|
+
];
|
|
2708
|
+
}
|
|
2709
|
+
}),
|
|
2710
|
+
_: 2
|
|
2711
|
+
}, _parent4, _scopeId3));
|
|
2712
|
+
_push4(`<!--[-->`);
|
|
2713
|
+
ssrRenderList($props.serviceLinks, ({ title, href }, i) => {
|
|
2714
|
+
_push4(ssrRenderComponent($setup["MenuItem"], {
|
|
2715
|
+
as: "li",
|
|
2716
|
+
key: `s-${i}`
|
|
2717
|
+
}, {
|
|
2718
|
+
default: withCtx(({ active }, _push5, _parent5, _scopeId4) => {
|
|
2719
|
+
if (_push5) {
|
|
2720
|
+
_push5(ssrRenderComponent(_component_ALink, {
|
|
2721
|
+
href,
|
|
2722
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2723
|
+
}, {
|
|
2724
|
+
default: withCtx((_3, _push6, _parent6, _scopeId5) => {
|
|
2725
|
+
if (_push6) {
|
|
2726
|
+
_push6(`${ssrInterpolate(title)}`);
|
|
2727
|
+
} else {
|
|
2728
|
+
return [
|
|
2729
|
+
createTextVNode(toDisplayString(title), 1)
|
|
2730
|
+
];
|
|
2731
|
+
}
|
|
2732
|
+
}),
|
|
2733
|
+
_: 2
|
|
2734
|
+
}, _parent5, _scopeId4));
|
|
2735
|
+
} else {
|
|
2736
|
+
return [
|
|
2737
|
+
createVNode(_component_ALink, {
|
|
2738
|
+
href,
|
|
2739
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2740
|
+
}, {
|
|
2741
|
+
default: withCtx(() => [
|
|
2742
|
+
createTextVNode(toDisplayString(title), 1)
|
|
2743
|
+
]),
|
|
2744
|
+
_: 2
|
|
2745
|
+
}, 1032, ["href", "class"])
|
|
2746
|
+
];
|
|
2747
|
+
}
|
|
2748
|
+
}),
|
|
2749
|
+
_: 2
|
|
2750
|
+
}, _parent4, _scopeId3));
|
|
2751
|
+
});
|
|
2752
|
+
_push4(`<!--]-->`);
|
|
2753
|
+
_push4(ssrRenderComponent($setup["MenuItem"], { as: "li" }, {
|
|
2754
|
+
default: withCtx((_3, _push5, _parent5, _scopeId4) => {
|
|
2755
|
+
if (_push5) {
|
|
2756
|
+
_push5(`<div class="flex justify-center gap-2 p-2 text-base-500 text-base"${_scopeId4}><!--[-->`);
|
|
2757
|
+
ssrRenderList($setup.socialNetworks, (href, network) => {
|
|
2758
|
+
_push5(`<span${_scopeId4}>`);
|
|
2759
|
+
_push5(ssrRenderComponent($setup["SocialNetworkLink"], {
|
|
2760
|
+
network,
|
|
2761
|
+
class: "p-1 hover:text-primary"
|
|
2762
|
+
}, null, _parent5, _scopeId4));
|
|
2763
|
+
_push5(`</span>`);
|
|
2764
|
+
});
|
|
2765
|
+
_push5(`<!--]--></div>`);
|
|
2766
|
+
} else {
|
|
2767
|
+
return [
|
|
2768
|
+
createVNode("div", { class: "flex justify-center gap-2 p-2 text-base-500 text-base" }, [
|
|
2769
|
+
(openBlock(true), createBlock(Fragment$1, null, renderList($setup.socialNetworks, (href, network) => {
|
|
2770
|
+
return openBlock(), createBlock("span", { key: network }, [
|
|
2771
|
+
createVNode($setup["SocialNetworkLink"], {
|
|
2772
|
+
network,
|
|
2773
|
+
class: "p-1 hover:text-primary"
|
|
2774
|
+
}, null, 8, ["network"])
|
|
2775
|
+
]);
|
|
2776
|
+
}), 128))
|
|
2777
|
+
])
|
|
2778
|
+
];
|
|
2779
|
+
}
|
|
2780
|
+
}),
|
|
2781
|
+
_: 2
|
|
2782
|
+
}, _parent4, _scopeId3));
|
|
2783
|
+
if ($setup.isLogged) {
|
|
2784
|
+
_push4(ssrRenderComponent($setup["MenuItem"], { as: "li" }, {
|
|
2785
|
+
default: withCtx((_3, _push5, _parent5, _scopeId4) => {
|
|
2786
|
+
if (_push5) {
|
|
2787
|
+
_push5(`<button class="p-2 text-right text-base-800"${_scopeId4}><span class="text-base-600"${_scopeId4}>${ssrInterpolate("Sair")}</span><i class="i-logout text-lg ml-1"${_scopeId4}></i></button>`);
|
|
2788
|
+
} else {
|
|
2789
|
+
return [
|
|
2790
|
+
createVNode("button", {
|
|
2791
|
+
onClick: $setup.logout,
|
|
2792
|
+
class: "p-2 text-right text-base-800"
|
|
2793
|
+
}, [
|
|
2794
|
+
createVNode("span", { class: "text-base-600" }, toDisplayString("Sair")),
|
|
2795
|
+
createVNode("i", { class: "i-logout text-lg ml-1" })
|
|
2796
|
+
], 8, ["onClick"])
|
|
2797
|
+
];
|
|
2798
|
+
}
|
|
2799
|
+
}),
|
|
2800
|
+
_: 2
|
|
2801
|
+
}, _parent4, _scopeId3));
|
|
2802
|
+
} else {
|
|
2803
|
+
_push4(`<!---->`);
|
|
2804
|
+
}
|
|
2805
|
+
_push4(`</ul>`);
|
|
2806
|
+
} else {
|
|
2807
|
+
return [
|
|
2808
|
+
createVNode("div", { class: "p-3 text-base-600" }, [
|
|
2809
|
+
createTextVNode(toDisplayString(`${"Ol\xE1"} ${$setup.customerName || "Visitante"}`) + " ", 1),
|
|
2810
|
+
createVNode($setup["AccountLink"], { class: "block py-1.5 rounded primary hover:primary-bold my-1" }, {
|
|
2811
|
+
default: withCtx(() => [
|
|
2812
|
+
createTextVNode(toDisplayString("Acessar minha conta"))
|
|
2813
|
+
]),
|
|
2814
|
+
_: 1
|
|
2815
|
+
}),
|
|
2816
|
+
!$setup.isLogged ? (openBlock(), createBlock($setup["AccountLink"], {
|
|
2817
|
+
key: 0,
|
|
2818
|
+
class: "block font-medium text-primary hover:text-primary-bold",
|
|
2819
|
+
"is-sign-up": ""
|
|
2820
|
+
}, {
|
|
2821
|
+
default: withCtx(() => [
|
|
2822
|
+
createTextVNode(toDisplayString("Criar uma conta"))
|
|
2823
|
+
]),
|
|
2824
|
+
_: 1
|
|
2825
|
+
})) : createCommentVNode("", true)
|
|
2826
|
+
]),
|
|
2827
|
+
createVNode("ul", { class: "list-none" }, [
|
|
2828
|
+
createVNode($setup["MenuItem"], { as: "li" }, {
|
|
2829
|
+
default: withCtx(({ active }) => [
|
|
2830
|
+
createVNode($setup["AccountLink"], {
|
|
2831
|
+
to: "orders",
|
|
2832
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2833
|
+
}, {
|
|
2834
|
+
default: withCtx(() => [
|
|
2835
|
+
createTextVNode(toDisplayString("Meus pedidos"))
|
|
2836
|
+
]),
|
|
2837
|
+
_: 2
|
|
2838
|
+
}, 1032, ["class"])
|
|
2839
|
+
]),
|
|
2840
|
+
_: 1
|
|
2841
|
+
}),
|
|
2842
|
+
createVNode($setup["MenuItem"], { as: "li" }, {
|
|
2843
|
+
default: withCtx(({ active }) => [
|
|
2844
|
+
createVNode($setup["AccountLink"], {
|
|
2845
|
+
to: "favorites",
|
|
2846
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2847
|
+
}, {
|
|
2848
|
+
default: withCtx(() => [
|
|
2849
|
+
createVNode("i", { class: "i-favorites mr-1" }),
|
|
2850
|
+
createTextVNode(" " + toDisplayString("Meus favoritos"))
|
|
2851
|
+
]),
|
|
2852
|
+
_: 2
|
|
2853
|
+
}, 1032, ["class"])
|
|
2854
|
+
]),
|
|
2855
|
+
_: 1
|
|
2856
|
+
}),
|
|
2857
|
+
(openBlock(true), createBlock(Fragment$1, null, renderList($props.serviceLinks, ({ title, href }, i) => {
|
|
2858
|
+
return openBlock(), createBlock($setup["MenuItem"], {
|
|
2859
|
+
as: "li",
|
|
2860
|
+
key: `s-${i}`
|
|
2861
|
+
}, {
|
|
2862
|
+
default: withCtx(({ active }) => [
|
|
2863
|
+
createVNode(_component_ALink, {
|
|
2864
|
+
href,
|
|
2865
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2866
|
+
}, {
|
|
2867
|
+
default: withCtx(() => [
|
|
2868
|
+
createTextVNode(toDisplayString(title), 1)
|
|
2869
|
+
]),
|
|
2870
|
+
_: 2
|
|
2871
|
+
}, 1032, ["href", "class"])
|
|
2872
|
+
]),
|
|
2873
|
+
_: 2
|
|
2874
|
+
}, 1024);
|
|
2875
|
+
}), 128)),
|
|
2876
|
+
createVNode($setup["MenuItem"], { as: "li" }, {
|
|
2877
|
+
default: withCtx(() => [
|
|
2878
|
+
createVNode("div", { class: "flex justify-center gap-2 p-2 text-base-500 text-base" }, [
|
|
2879
|
+
(openBlock(true), createBlock(Fragment$1, null, renderList($setup.socialNetworks, (href, network) => {
|
|
2880
|
+
return openBlock(), createBlock("span", { key: network }, [
|
|
2881
|
+
createVNode($setup["SocialNetworkLink"], {
|
|
2882
|
+
network,
|
|
2883
|
+
class: "p-1 hover:text-primary"
|
|
2884
|
+
}, null, 8, ["network"])
|
|
2885
|
+
]);
|
|
2886
|
+
}), 128))
|
|
2887
|
+
])
|
|
2888
|
+
]),
|
|
2889
|
+
_: 1
|
|
2890
|
+
}),
|
|
2891
|
+
$setup.isLogged ? (openBlock(), createBlock($setup["MenuItem"], {
|
|
2892
|
+
key: 0,
|
|
2893
|
+
as: "li"
|
|
2894
|
+
}, {
|
|
2895
|
+
default: withCtx(() => [
|
|
2896
|
+
createVNode("button", {
|
|
2897
|
+
onClick: $setup.logout,
|
|
2898
|
+
class: "p-2 text-right text-base-800"
|
|
2899
|
+
}, [
|
|
2900
|
+
createVNode("span", { class: "text-base-600" }, toDisplayString("Sair")),
|
|
2901
|
+
createVNode("i", { class: "i-logout text-lg ml-1" })
|
|
2902
|
+
], 8, ["onClick"])
|
|
2903
|
+
]),
|
|
2904
|
+
_: 1
|
|
2905
|
+
})) : createCommentVNode("", true)
|
|
2906
|
+
])
|
|
2907
|
+
];
|
|
2908
|
+
}
|
|
2909
|
+
}),
|
|
2910
|
+
_: 2
|
|
2911
|
+
}, _parent3, _scopeId2));
|
|
2912
|
+
} else {
|
|
2913
|
+
return [
|
|
2914
|
+
createVNode($setup["MenuItems"], { class: "absolute -right-8 mt-2 w-56 rounded-md shadow ring-1 ring-black ring-opacity-5 bg-white divide-y divide-base-100 focus:outline-none" }, {
|
|
2915
|
+
default: withCtx(() => [
|
|
2916
|
+
createVNode("div", { class: "p-3 text-base-600" }, [
|
|
2917
|
+
createTextVNode(toDisplayString(`${"Ol\xE1"} ${$setup.customerName || "Visitante"}`) + " ", 1),
|
|
2918
|
+
createVNode($setup["AccountLink"], { class: "block py-1.5 rounded primary hover:primary-bold my-1" }, {
|
|
2919
|
+
default: withCtx(() => [
|
|
2920
|
+
createTextVNode(toDisplayString("Acessar minha conta"))
|
|
2921
|
+
]),
|
|
2922
|
+
_: 1
|
|
2923
|
+
}),
|
|
2924
|
+
!$setup.isLogged ? (openBlock(), createBlock($setup["AccountLink"], {
|
|
2925
|
+
key: 0,
|
|
2926
|
+
class: "block font-medium text-primary hover:text-primary-bold",
|
|
2927
|
+
"is-sign-up": ""
|
|
2928
|
+
}, {
|
|
2929
|
+
default: withCtx(() => [
|
|
2930
|
+
createTextVNode(toDisplayString("Criar uma conta"))
|
|
2931
|
+
]),
|
|
2932
|
+
_: 1
|
|
2933
|
+
})) : createCommentVNode("", true)
|
|
2934
|
+
]),
|
|
2935
|
+
createVNode("ul", { class: "list-none" }, [
|
|
2936
|
+
createVNode($setup["MenuItem"], { as: "li" }, {
|
|
2937
|
+
default: withCtx(({ active }) => [
|
|
2938
|
+
createVNode($setup["AccountLink"], {
|
|
2939
|
+
to: "orders",
|
|
2940
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2941
|
+
}, {
|
|
2942
|
+
default: withCtx(() => [
|
|
2943
|
+
createTextVNode(toDisplayString("Meus pedidos"))
|
|
2944
|
+
]),
|
|
2945
|
+
_: 2
|
|
2946
|
+
}, 1032, ["class"])
|
|
2947
|
+
]),
|
|
2948
|
+
_: 1
|
|
2949
|
+
}),
|
|
2950
|
+
createVNode($setup["MenuItem"], { as: "li" }, {
|
|
2951
|
+
default: withCtx(({ active }) => [
|
|
2952
|
+
createVNode($setup["AccountLink"], {
|
|
2953
|
+
to: "favorites",
|
|
2954
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2955
|
+
}, {
|
|
2956
|
+
default: withCtx(() => [
|
|
2957
|
+
createVNode("i", { class: "i-favorites mr-1" }),
|
|
2958
|
+
createTextVNode(" " + toDisplayString("Meus favoritos"))
|
|
2959
|
+
]),
|
|
2960
|
+
_: 2
|
|
2961
|
+
}, 1032, ["class"])
|
|
2962
|
+
]),
|
|
2963
|
+
_: 1
|
|
2964
|
+
}),
|
|
2965
|
+
(openBlock(true), createBlock(Fragment$1, null, renderList($props.serviceLinks, ({ title, href }, i) => {
|
|
2966
|
+
return openBlock(), createBlock($setup["MenuItem"], {
|
|
2967
|
+
as: "li",
|
|
2968
|
+
key: `s-${i}`
|
|
2969
|
+
}, {
|
|
2970
|
+
default: withCtx(({ active }) => [
|
|
2971
|
+
createVNode(_component_ALink, {
|
|
2972
|
+
href,
|
|
2973
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
2974
|
+
}, {
|
|
2975
|
+
default: withCtx(() => [
|
|
2976
|
+
createTextVNode(toDisplayString(title), 1)
|
|
2977
|
+
]),
|
|
2978
|
+
_: 2
|
|
2979
|
+
}, 1032, ["href", "class"])
|
|
2980
|
+
]),
|
|
2981
|
+
_: 2
|
|
2982
|
+
}, 1024);
|
|
2983
|
+
}), 128)),
|
|
2984
|
+
createVNode($setup["MenuItem"], { as: "li" }, {
|
|
2985
|
+
default: withCtx(() => [
|
|
2986
|
+
createVNode("div", { class: "flex justify-center gap-2 p-2 text-base-500 text-base" }, [
|
|
2987
|
+
(openBlock(true), createBlock(Fragment$1, null, renderList($setup.socialNetworks, (href, network) => {
|
|
2988
|
+
return openBlock(), createBlock("span", { key: network }, [
|
|
2989
|
+
createVNode($setup["SocialNetworkLink"], {
|
|
2990
|
+
network,
|
|
2991
|
+
class: "p-1 hover:text-primary"
|
|
2992
|
+
}, null, 8, ["network"])
|
|
2993
|
+
]);
|
|
2994
|
+
}), 128))
|
|
2995
|
+
])
|
|
2996
|
+
]),
|
|
2997
|
+
_: 1
|
|
2998
|
+
}),
|
|
2999
|
+
$setup.isLogged ? (openBlock(), createBlock($setup["MenuItem"], {
|
|
3000
|
+
key: 0,
|
|
3001
|
+
as: "li"
|
|
3002
|
+
}, {
|
|
3003
|
+
default: withCtx(() => [
|
|
3004
|
+
createVNode("button", {
|
|
3005
|
+
onClick: $setup.logout,
|
|
3006
|
+
class: "p-2 text-right text-base-800"
|
|
3007
|
+
}, [
|
|
3008
|
+
createVNode("span", { class: "text-base-600" }, toDisplayString("Sair")),
|
|
3009
|
+
createVNode("i", { class: "i-logout text-lg ml-1" })
|
|
3010
|
+
], 8, ["onClick"])
|
|
3011
|
+
]),
|
|
3012
|
+
_: 1
|
|
3013
|
+
})) : createCommentVNode("", true)
|
|
3014
|
+
])
|
|
3015
|
+
]),
|
|
3016
|
+
_: 1
|
|
3017
|
+
})
|
|
3018
|
+
];
|
|
3019
|
+
}
|
|
3020
|
+
}),
|
|
3021
|
+
_: 2
|
|
3022
|
+
}, _parent2, _scopeId));
|
|
3023
|
+
} else {
|
|
3024
|
+
return [
|
|
3025
|
+
open ? (openBlock(), createBlock("div", { key: 0 }, [
|
|
3026
|
+
_cache[0] || (setBlockTracking(-1), _cache[0] = createVNode("span", null, [
|
|
3027
|
+
createTextVNode(toDisplayString($setup.initializeFirebaseAuth()), 1)
|
|
3028
|
+
]), setBlockTracking(1), _cache[0])
|
|
3029
|
+
])) : createCommentVNode("", true),
|
|
3030
|
+
createVNode($setup["MenuButton"], { class: "outline-none" }, {
|
|
3031
|
+
default: withCtx(() => [
|
|
3032
|
+
renderSlot$1(_ctx.$slots, "button", { open })
|
|
3033
|
+
]),
|
|
3034
|
+
_: 2
|
|
3035
|
+
}, 1024),
|
|
3036
|
+
createVNode(_component_Fade, null, {
|
|
3037
|
+
default: withCtx(() => [
|
|
3038
|
+
createVNode($setup["MenuItems"], { class: "absolute -right-8 mt-2 w-56 rounded-md shadow ring-1 ring-black ring-opacity-5 bg-white divide-y divide-base-100 focus:outline-none" }, {
|
|
3039
|
+
default: withCtx(() => [
|
|
3040
|
+
createVNode("div", { class: "p-3 text-base-600" }, [
|
|
3041
|
+
createTextVNode(toDisplayString(`${"Ol\xE1"} ${$setup.customerName || "Visitante"}`) + " ", 1),
|
|
3042
|
+
createVNode($setup["AccountLink"], { class: "block py-1.5 rounded primary hover:primary-bold my-1" }, {
|
|
3043
|
+
default: withCtx(() => [
|
|
3044
|
+
createTextVNode(toDisplayString("Acessar minha conta"))
|
|
3045
|
+
]),
|
|
3046
|
+
_: 1
|
|
3047
|
+
}),
|
|
3048
|
+
!$setup.isLogged ? (openBlock(), createBlock($setup["AccountLink"], {
|
|
3049
|
+
key: 0,
|
|
3050
|
+
class: "block font-medium text-primary hover:text-primary-bold",
|
|
3051
|
+
"is-sign-up": ""
|
|
3052
|
+
}, {
|
|
3053
|
+
default: withCtx(() => [
|
|
3054
|
+
createTextVNode(toDisplayString("Criar uma conta"))
|
|
3055
|
+
]),
|
|
3056
|
+
_: 1
|
|
3057
|
+
})) : createCommentVNode("", true)
|
|
3058
|
+
]),
|
|
3059
|
+
createVNode("ul", { class: "list-none" }, [
|
|
3060
|
+
createVNode($setup["MenuItem"], { as: "li" }, {
|
|
3061
|
+
default: withCtx(({ active }) => [
|
|
3062
|
+
createVNode($setup["AccountLink"], {
|
|
3063
|
+
to: "orders",
|
|
3064
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
3065
|
+
}, {
|
|
3066
|
+
default: withCtx(() => [
|
|
3067
|
+
createTextVNode(toDisplayString("Meus pedidos"))
|
|
3068
|
+
]),
|
|
3069
|
+
_: 2
|
|
3070
|
+
}, 1032, ["class"])
|
|
3071
|
+
]),
|
|
3072
|
+
_: 1
|
|
3073
|
+
}),
|
|
3074
|
+
createVNode($setup["MenuItem"], { as: "li" }, {
|
|
3075
|
+
default: withCtx(({ active }) => [
|
|
3076
|
+
createVNode($setup["AccountLink"], {
|
|
3077
|
+
to: "favorites",
|
|
3078
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
3079
|
+
}, {
|
|
3080
|
+
default: withCtx(() => [
|
|
3081
|
+
createVNode("i", { class: "i-favorites mr-1" }),
|
|
3082
|
+
createTextVNode(" " + toDisplayString("Meus favoritos"))
|
|
3083
|
+
]),
|
|
3084
|
+
_: 2
|
|
3085
|
+
}, 1032, ["class"])
|
|
3086
|
+
]),
|
|
3087
|
+
_: 1
|
|
3088
|
+
}),
|
|
3089
|
+
(openBlock(true), createBlock(Fragment$1, null, renderList($props.serviceLinks, ({ title, href }, i) => {
|
|
3090
|
+
return openBlock(), createBlock($setup["MenuItem"], {
|
|
3091
|
+
as: "li",
|
|
3092
|
+
key: `s-${i}`
|
|
3093
|
+
}, {
|
|
3094
|
+
default: withCtx(({ active }) => [
|
|
3095
|
+
createVNode(_component_ALink, {
|
|
3096
|
+
href,
|
|
3097
|
+
class: ["block p-2", active ? "bg-base-100 text-primary" : null]
|
|
3098
|
+
}, {
|
|
3099
|
+
default: withCtx(() => [
|
|
3100
|
+
createTextVNode(toDisplayString(title), 1)
|
|
3101
|
+
]),
|
|
3102
|
+
_: 2
|
|
3103
|
+
}, 1032, ["href", "class"])
|
|
3104
|
+
]),
|
|
3105
|
+
_: 2
|
|
3106
|
+
}, 1024);
|
|
3107
|
+
}), 128)),
|
|
3108
|
+
createVNode($setup["MenuItem"], { as: "li" }, {
|
|
3109
|
+
default: withCtx(() => [
|
|
3110
|
+
createVNode("div", { class: "flex justify-center gap-2 p-2 text-base-500 text-base" }, [
|
|
3111
|
+
(openBlock(true), createBlock(Fragment$1, null, renderList($setup.socialNetworks, (href, network) => {
|
|
3112
|
+
return openBlock(), createBlock("span", { key: network }, [
|
|
3113
|
+
createVNode($setup["SocialNetworkLink"], {
|
|
3114
|
+
network,
|
|
3115
|
+
class: "p-1 hover:text-primary"
|
|
3116
|
+
}, null, 8, ["network"])
|
|
3117
|
+
]);
|
|
3118
|
+
}), 128))
|
|
3119
|
+
])
|
|
3120
|
+
]),
|
|
3121
|
+
_: 1
|
|
3122
|
+
}),
|
|
3123
|
+
$setup.isLogged ? (openBlock(), createBlock($setup["MenuItem"], {
|
|
3124
|
+
key: 0,
|
|
3125
|
+
as: "li"
|
|
3126
|
+
}, {
|
|
3127
|
+
default: withCtx(() => [
|
|
3128
|
+
createVNode("button", {
|
|
3129
|
+
onClick: $setup.logout,
|
|
3130
|
+
class: "p-2 text-right text-base-800"
|
|
3131
|
+
}, [
|
|
3132
|
+
createVNode("span", { class: "text-base-600" }, toDisplayString("Sair")),
|
|
3133
|
+
createVNode("i", { class: "i-logout text-lg ml-1" })
|
|
3134
|
+
], 8, ["onClick"])
|
|
3135
|
+
]),
|
|
3136
|
+
_: 1
|
|
3137
|
+
})) : createCommentVNode("", true)
|
|
3138
|
+
])
|
|
3139
|
+
]),
|
|
3140
|
+
_: 1
|
|
3141
|
+
})
|
|
3142
|
+
]),
|
|
3143
|
+
_: 1
|
|
3144
|
+
})
|
|
3145
|
+
];
|
|
3146
|
+
}
|
|
3147
|
+
}),
|
|
3148
|
+
_: 3
|
|
3149
|
+
}, _parent));
|
|
3150
|
+
}
|
|
3151
|
+
const _sfc_setup$3 = _sfc_main$3.setup;
|
|
3152
|
+
_sfc_main$3.setup = (props, ctx) => {
|
|
3153
|
+
const ssrContext = useSSRContext();
|
|
3154
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/AccountMenu.vue");
|
|
3155
|
+
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
|
3156
|
+
};
|
|
3157
|
+
const AccountMenu = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["ssrRender", _sfc_ssrRender$3]]);
|
|
2477
3158
|
|
|
2478
3159
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2479
3160
|
__name: "ShopHeader",
|
|
@@ -2481,7 +3162,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2481
3162
|
categories: null,
|
|
2482
3163
|
menuCategorySlugs: null,
|
|
2483
3164
|
menuRandomCategories: null,
|
|
2484
|
-
isAlphabeticalSortSubmenu: { type: Boolean }
|
|
3165
|
+
isAlphabeticalSortSubmenu: { type: Boolean },
|
|
3166
|
+
serviceLinks: null
|
|
2485
3167
|
},
|
|
2486
3168
|
setup(__props, { expose }) {
|
|
2487
3169
|
expose();
|
|
@@ -2495,7 +3177,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2495
3177
|
} = useShopHeader({ ...props, header });
|
|
2496
3178
|
const isSidenavOpen = ref(false);
|
|
2497
3179
|
const isSearchOpen = ref(false);
|
|
2498
|
-
const __returned__ = { props, header, isSticky, positionY, categoryTrees, inlineMenuTrees, isSidenavOpen, isSearchOpen, Drawer, ShopSidenav, ShopHeaderMenu, SearchModal };
|
|
3180
|
+
const __returned__ = { props, header, isSticky, positionY, categoryTrees, inlineMenuTrees, isSidenavOpen, isSearchOpen, Drawer, ShopSidenav, ShopHeaderMenu, SearchModal, AccountMenu };
|
|
2499
3181
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2500
3182
|
return __returned__;
|
|
2501
3183
|
}
|
|
@@ -2503,14 +3185,33 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2503
3185
|
function _sfc_ssrRender$2(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
2504
3186
|
_push(`<header${ssrRenderAttrs(mergeProps({
|
|
2505
3187
|
ref: "header",
|
|
2506
|
-
class: ["top-0 z-50 transition-colors", [
|
|
3188
|
+
class: ["relative top-0 z-50 transition-colors", [
|
|
2507
3189
|
$setup.isSticky && !$setup.isSidenavOpen ? "bg-white/80" : "bg-white",
|
|
2508
3190
|
$setup.isSticky ? "backdrop-blur-md shadow py-2 md:py-3" : "py-3 sm:py-4 md:py-5"
|
|
2509
3191
|
]]
|
|
2510
3192
|
}, _attrs))}><div class="container lg:max-w-7xl mx-auto px-1 lg:pl-3 grid grid-flow-col grid-cols-3 justify-between items-center lg:grid-cols-none lg:auto-cols-max"><div class="lg:hidden"><button class="px-2 my-1"${ssrRenderAttr("aria-label", "Abrir/fechar menu")}><i class="${ssrRenderClass([$setup.isSidenavOpen ? "i-close" : "i-menu", "text-base-500 text-3xl"])}"></i></button></div>`);
|
|
2511
3193
|
ssrRenderSlot(_ctx.$slots, "logo", {}, null, _push, _parent);
|
|
2512
3194
|
_push(ssrRenderComponent($setup["ShopHeaderMenu"], mergeProps({ class: "hidden lg:block" }, { inlineMenuTrees: $setup.inlineMenuTrees }), null, _parent));
|
|
2513
|
-
_push(`<div class="px-2 flex justify-end items-center gap-3 lg:gap-4 text-base-800"><button${ssrRenderAttr("aria-label", "Buscar produtos")}><i class="i-search w-7 h-7 hover:text-primary hover:scale-110 active:scale-125"></i></button
|
|
3195
|
+
_push(`<div class="px-2 flex justify-end items-center gap-3 lg:gap-4 text-base-800"><button${ssrRenderAttr("aria-label", "Buscar produtos")}><i class="i-search w-7 h-7 hover:text-primary hover:scale-110 active:scale-125"></i></button>`);
|
|
3196
|
+
_push(ssrRenderComponent($setup["AccountMenu"], {
|
|
3197
|
+
class: "hidden sm:block",
|
|
3198
|
+
"aria-label": "Minha conta",
|
|
3199
|
+
"service-links": $props.serviceLinks
|
|
3200
|
+
}, {
|
|
3201
|
+
button: withCtx(({ open }, _push2, _parent2, _scopeId) => {
|
|
3202
|
+
if (_push2) {
|
|
3203
|
+
_push2(`<i class="${ssrRenderClass([open ? "text-black scale-110" : null, "i-account w-7 h-7 hover:text-primary hover:scale-110 active:scale-125"])}"${_scopeId}></i>`);
|
|
3204
|
+
} else {
|
|
3205
|
+
return [
|
|
3206
|
+
createVNode("i", {
|
|
3207
|
+
class: ["i-account w-7 h-7 hover:text-primary hover:scale-110 active:scale-125", open ? "text-black scale-110" : null]
|
|
3208
|
+
}, null, 2)
|
|
3209
|
+
];
|
|
3210
|
+
}
|
|
3211
|
+
}),
|
|
3212
|
+
_: 1
|
|
3213
|
+
}, _parent));
|
|
3214
|
+
_push(`<button${ssrRenderAttr("aria-label", "Abrir carrinho")}><i class="i-shopping-cart w-7 h-7 hover:text-primary hover:scale-110 active:scale-125"></i></button></div></div>`);
|
|
2514
3215
|
_push(ssrRenderComponent($setup["Drawer"], {
|
|
2515
3216
|
modelValue: $setup.isSidenavOpen,
|
|
2516
3217
|
"onUpdate:modelValue": ($event) => $setup.isSidenavOpen = $event,
|
|
@@ -2577,7 +3278,8 @@ const $$PagesHeader = createComponent(async ($$result, $$props, $$slots) => {
|
|
|
2577
3278
|
categories: apiState.categories,
|
|
2578
3279
|
menuCategorySlugs: cmsHeader.inline_menu_categories?.featured,
|
|
2579
3280
|
menuRandomCategories: cmsHeader.inline_menu_categories?.random,
|
|
2580
|
-
isAlphabeticalSortSubmenu: cmsHeader.alphabetical_sort_submenu
|
|
3281
|
+
isAlphabeticalSortSubmenu: cmsHeader.alphabetical_sort_submenu,
|
|
3282
|
+
serviceLinks: cmsHeader.service_links
|
|
2581
3283
|
};
|
|
2582
3284
|
const LogoHeading = Astro2.props.logoHeading || (isHomepage ? "h1" : "h2");
|
|
2583
3285
|
return renderTemplate`${renderComponent($$result, "Fragment", Fragment, {}, { "default": ($$result2) => renderTemplate`${renderSlot($$result2, $$slots["pitch-bar"], renderTemplate`
|