cloudcommerce 0.26.3 → 0.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
- package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
- package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/barra-doce/package.json +2 -2
- package/ecomplus-stores/iluminim/functions/many/package.json +3 -3
- package/ecomplus-stores/iluminim/functions/ssr/package.json +6 -6
- package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
- package/ecomplus-stores/iluminim/package.json +2 -2
- package/package.json +2 -2
- package/packages/api/package.json +1 -1
- package/packages/apps/affilate-program/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/flash-courier/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/jadlog/package.json +1 -1
- package/packages/apps/loyalty-points/package.json +1 -1
- package/packages/apps/melhor-envio/package.json +1 -1
- package/packages/apps/mercadopago/package.json +1 -1
- package/packages/apps/pagarme/package.json +1 -1
- package/packages/apps/paghiper/package.json +1 -1
- package/packages/apps/pix/package.json +1 -1
- package/packages/apps/tiny-erp/package.json +1 -1
- package/packages/apps/webhooks/package.json +1 -1
- package/packages/cli/package.json +1 -1
- package/packages/config/package.json +1 -1
- package/packages/emails/package.json +1 -1
- package/packages/eslint/package.json +1 -1
- package/packages/events/package.json +1 -1
- package/packages/feeds/package.json +1 -1
- package/packages/firebase/package.json +1 -1
- package/packages/i18n/package.json +1 -1
- package/packages/modules/package.json +1 -1
- package/packages/passport/package.json +1 -1
- package/packages/ssr/package.json +1 -1
- package/packages/storefront/astro.config.mjs +33 -23
- package/packages/storefront/dist/client/_astro/{Carousel.0b24e2cb.js → Carousel.9ad2e1dc.js} +1 -1
- package/packages/storefront/dist/client/_astro/{CartSidebar.2731d333.js → CartSidebar.a6c6a885.js} +1 -1
- package/packages/storefront/dist/client/_astro/{HeroSlider.a70b2582.js → HeroSlider.ee1e6200.js} +1 -1
- package/packages/storefront/dist/client/_astro/{PitchBar.13991988.js → PitchBar.6111676e.js} +1 -1
- package/packages/storefront/dist/client/_astro/{Prices.cdfa346a.js → Prices.04ff8fce.js} +1 -1
- package/packages/storefront/dist/client/_astro/{ProductShelf.619c56a5.js → ProductShelf.085721d6.js} +1 -1
- package/packages/storefront/dist/client/_astro/SearchModal.cffd4c2d.js +1 -0
- package/packages/storefront/dist/client/_astro/{ShopHeader.2c2fded7.js → ShopHeader.7e485e35.js} +2 -2
- package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.fc5e2f5b.js → _plugin-vue_export-helper.ee681fa8.js} +1 -1
- package/packages/storefront/dist/client/_astro/{api.39f40cd8.js → api.a2eda23e.js} +1 -1
- package/packages/storefront/dist/client/_astro/client.e6d9439a.js +1 -0
- package/packages/storefront/dist/client/_astro/{format-money.86f14860.js → format-money.923559cc.js} +1 -1
- package/packages/storefront/dist/client/_astro/hoisted.85fdcf03.js +1 -0
- package/packages/storefront/dist/client/_astro/{img.d4891d80.js → img.ec6ba316.js} +1 -1
- package/packages/storefront/dist/client/_astro/{index.33801818.js → index.ea57babe.js} +1 -1
- package/packages/storefront/dist/client/_astro/{modules-info.ec412b24.js → modules-info.e5d77bf3.js} +1 -1
- package/packages/storefront/dist/client/sw.js +1 -1
- package/packages/storefront/dist/server/chunks/{CartSidebar.cca9fdd3.mjs → CartSidebar.41b20543.mjs} +20 -9
- package/packages/storefront/dist/server/chunks/{SearchModal.a680efae.mjs → SearchModal.5f5e6a15.mjs} +19 -8
- package/packages/storefront/dist/server/chunks/_...4a2548d2.mjs +35 -0
- package/packages/storefront/dist/server/chunks/account@_@astro.204fba92.mjs +35 -0
- package/packages/storefront/dist/server/chunks/{astro.440a2e08.mjs → astro.708269c6.mjs} +1859 -149
- package/packages/storefront/dist/server/chunks/endpoint@_@js.11be892a.mjs +35 -0
- package/packages/storefront/dist/server/chunks/index@_@astro.19e0f502.mjs +35 -0
- package/packages/storefront/dist/server/chunks/index@_@astro.b37a6ac9.mjs +35 -0
- package/packages/storefront/dist/{client/chunks/pages/_...slug_.astro.ec6517ba.mjs → server/chunks/pages/_...slug_.astro.36e8882b.mjs} +273 -331
- package/packages/storefront/dist/{client/chunks/pages/account.astro.3d2605e6.mjs → server/chunks/pages/account.astro.32e7e6ef.mjs} +10 -2
- package/packages/storefront/dist/server/chunks/pages/endpoint.js.f7a896a1.mjs +119 -0
- package/packages/storefront/dist/server/chunks/pages/{index.astro.079f316a.mjs → index.astro.3145bd93.mjs} +2 -3
- package/packages/storefront/dist/server/chunks/pages/{~fallback.astro.01594623.mjs → ~fallback.astro.ba4c2475.mjs} +20 -9
- package/packages/storefront/dist/server/chunks/~fallback@_@astro.6bb4c4b4.mjs +35 -0
- package/packages/storefront/dist/server/entry.mjs +2359 -1166
- package/packages/storefront/dist/server/renderers.mjs +21 -10
- package/packages/storefront/package.json +1 -1
- package/packages/storefront/src/lib/layouts/BaseHead.astro +3 -0
- package/packages/test-base/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/pnpm-workspace.yaml +0 -2
- package/packages/storefront/dist/client/_astro/SearchModal.117a477d.js +0 -1
- package/packages/storefront/dist/client/_astro/client.a5d2898b.js +0 -1
- package/packages/storefront/dist/client/_astro/hoisted.d90361ee.js +0 -1
- package/packages/storefront/dist/client/_empty-middleware.mjs +0 -3
- package/packages/storefront/dist/client/chunks/CartSidebar.0ce1e999.mjs +0 -382
- package/packages/storefront/dist/client/chunks/SearchModal.f603145b.mjs +0 -32
- package/packages/storefront/dist/client/chunks/astro.11be33ee.mjs +0 -1424
- package/packages/storefront/dist/client/chunks/pages/index.astro.8ad03206.mjs +0 -1650
- package/packages/storefront/dist/client/chunks/pages/~fallback.astro.d31d20b4.mjs +0 -54
- package/packages/storefront/dist/client/chunks/sharp.3f154e38.mjs +0 -74
- package/packages/storefront/dist/client/manifest.e39eb543.mjs +0 -79
- package/packages/storefront/dist/client/pages/_---slug_.astro.mjs +0 -23
- package/packages/storefront/dist/client/pages/app/account.astro.mjs +0 -23
- package/packages/storefront/dist/client/pages/app.astro.mjs +0 -23
- package/packages/storefront/dist/client/pages/index.astro.mjs +0 -23
- package/packages/storefront/dist/client/pages/~fallback.astro.mjs +0 -23
- package/packages/storefront/dist/client/registerSW.js +0 -1
- package/packages/storefront/dist/client/renderers.mjs +0 -369
- package/packages/storefront/dist/server/chunks/_...f7cdc954.mjs +0 -24
- package/packages/storefront/dist/server/chunks/account@_@astro.fa8b921b.mjs +0 -24
- package/packages/storefront/dist/server/chunks/image-endpoint@_@js.802bf648.mjs +0 -24
- package/packages/storefront/dist/server/chunks/index@_@astro.a122f091.mjs +0 -24
- package/packages/storefront/dist/server/chunks/index@_@astro.da98dcbe.mjs +0 -24
- package/packages/storefront/dist/server/chunks/pages/_...slug_.astro.08ba5973.mjs +0 -3930
- package/packages/storefront/dist/server/chunks/pages/account.astro.f11f26f3.mjs +0 -15
- package/packages/storefront/dist/server/chunks/pages/image-endpoint.js.a9374d3e.mjs +0 -238
- package/packages/storefront/dist/server/chunks/sharp.52841bb4.mjs +0 -75
- package/packages/storefront/dist/server/chunks/~fallback@_@astro.876a97c5.mjs +0 -24
- package/packages/storefront/dist/server/manifest.12e7a10c.mjs +0 -561
- /package/packages/storefront/dist/client/{workbox-5e0bf4e4.js → workbox-1b331600.js} +0 -0
|
@@ -1,20 +1,31 @@
|
|
|
1
|
+
import { i as server_default } from './chunks/astro.708269c6.mjs';
|
|
1
2
|
import { useSSRContext, defineComponent, computed, createVNode, resolveDynamicComponent, mergeProps, withCtx, renderSlot, h, createSSRApp } from 'vue';
|
|
2
3
|
import { ssrRenderSlotInner, ssrRenderVNode, ssrRenderSlot, ssrRenderAttrs, ssrRenderClass, renderToString } from 'vue/server-renderer';
|
|
3
4
|
import { img, imgSizes, i18n, formatMoney } from '@ecomplus/utils';
|
|
4
|
-
import { _ as _export_sfc } from './chunks/pages/_...slug_.astro.
|
|
5
|
+
import { _ as _export_sfc } from './chunks/pages/_...slug_.astro.36e8882b.mjs';
|
|
6
|
+
import 'path-to-regexp';
|
|
7
|
+
import 'cookie';
|
|
5
8
|
import '@astrojs/internal-helpers/path';
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
9
|
+
import 'kleur/colors';
|
|
10
|
+
import 'node:fs';
|
|
11
|
+
import 'node:http';
|
|
12
|
+
import 'node:tls';
|
|
13
|
+
import 'mime';
|
|
14
|
+
import 'string-width';
|
|
8
15
|
import 'html-escaper';
|
|
16
|
+
import 'node:fs/promises';
|
|
17
|
+
import 'node:path';
|
|
18
|
+
import 'node:url';
|
|
19
|
+
import 'http-cache-semantics';
|
|
20
|
+
import 'node:os';
|
|
21
|
+
import 'image-size';
|
|
22
|
+
import 'magic-string';
|
|
23
|
+
import 'node:stream';
|
|
9
24
|
import '@cloudcommerce/api';
|
|
10
25
|
import 'node:events';
|
|
11
|
-
import 'node:fs';
|
|
12
|
-
import 'node:path';
|
|
13
26
|
import '@cloudcommerce/config';
|
|
14
27
|
import 'ultrahtml';
|
|
15
|
-
/* empty css */import '
|
|
16
|
-
import 'mime';
|
|
17
|
-
import '@vueuse/core';
|
|
28
|
+
/* empty css */import '@vueuse/core';
|
|
18
29
|
import '@headlessui/vue';
|
|
19
30
|
|
|
20
31
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
@@ -359,12 +370,12 @@ async function renderToStaticMarkup(Component, props, slotted, metadata) {
|
|
|
359
370
|
return { html };
|
|
360
371
|
}
|
|
361
372
|
|
|
362
|
-
const
|
|
373
|
+
const _renderer1 = {
|
|
363
374
|
check,
|
|
364
375
|
renderToStaticMarkup,
|
|
365
376
|
supportsAstroStaticSlot: true,
|
|
366
377
|
};
|
|
367
378
|
|
|
368
|
-
const renderers = [Object.assign({"name":"@astrojs/vue","clientEntrypoint":"@astrojs/vue/client.js","serverEntrypoint":"@astrojs/vue/server.js"}, { ssr:
|
|
379
|
+
const renderers = [Object.assign({"name":"astro:jsx","serverEntrypoint":"astro/jsx/server.js","jsxImportSource":"astro"}, { ssr: server_default }),Object.assign({"name":"@astrojs/vue","clientEntrypoint":"@astrojs/vue/client.js","serverEntrypoint":"@astrojs/vue/server.js"}, { ssr: _renderer1 }),];
|
|
369
380
|
|
|
370
381
|
export { renderers };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
import { pwaInfo } from 'virtual:pwa-info';
|
|
3
|
+
import { ViewTransitions } from 'astro:transitions';
|
|
3
4
|
import { img as getImg, price as getPrice } from '@ecomplus/utils';
|
|
4
5
|
|
|
5
6
|
const deployRand = import.meta.env.DEPLOY_RAND || '_';
|
|
@@ -148,3 +149,5 @@ const inlineJSONLd = JSON.stringify({
|
|
|
148
149
|
|
|
149
150
|
<script is:inline set:html={inlineClientJS} />
|
|
150
151
|
<script type="application/ld+json" set:html={inlineJSONLd} />
|
|
152
|
+
|
|
153
|
+
<ViewTransitions />
|
package/pnpm-workspace.yaml
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,o as c,a as o}from"./_plugin-vue_export-helper.fc5e2f5b.js";const s={},a={class:"w-full h-40 bg-base-300"};function t(r,n){return c(),o("div",a)}const l=e(s,[["render",t]]);export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_,d as p,c as a,o as w,l as A,w as P,q as C,X as k,u as T,a as $,H as N,I,b as f,n as d,A as v,S as R,Y as z,Z as O}from"./_plugin-vue_export-helper.fc5e2f5b.js";import{g as j,i as H}from"./img.d4891d80.js";import{f as q}from"./format-money.86f14860.js";const W=r=>{let s={width:0,height:0},e;return typeof r=="object"&&r!==null?e=r.size:e=r,typeof e=="string"&&e.split("x").forEach((t,o)=>{t=parseFloat(t),isNaN(t)||(s[o===0?"width":"height"]=t)}),s},M=W,Y=p({__name:"Fade",props:{speed:{default:"default"},slide:{},isFloating:{type:Boolean,default:!1},isLeaveTo:{type:Boolean,default:!0},isEnterFrom:{type:Boolean,default:!0}},setup(r,{expose:s}){s();const e=r,t=a(()=>e.speed==="default"?"var(--transition, .2s linear)":`var(--transition-${e.speed}, .4s linear)`),o=a(()=>{switch(e.slide){case"down":return"translate3d(0, -100%, 0)";case"left":return"translate3d(-100%, 0, 0)";case"right":return"translate3d(100%, 0, 0)";case"up":return"translate3d(0, 100%, 0)";default:return"none"}}),i=a(()=>o.value!=="none"?.1:0),u=a(()=>e.isEnterFrom?i.value:1),g=a(()=>e.isLeaveTo?i.value:1),m=a(()=>e.isEnterFrom?o.value:"none"),S=a(()=>e.isLeaveTo?o.value:"none"),l=a(()=>e.slide==="down"||e.slide==="up"),c=a(()=>e.isFloating?null:l.value?0:"auto"),h=a(()=>e.isFloating?null:e.slide&&!l.value?0:"auto"),b=a(()=>e.isEnterFrom?c.value:"auto"),F=a(()=>e.isEnterFrom?h.value:"auto"),L=a(()=>{let n="opacity";return o.value!=="none"&&(n+=", transform"),c.value===0&&(n+=", height"),h.value===0&&(n+=", width"),n}),E={props:e,duration:t,transform:o,opacity:i,enterFromOpacity:u,leaveToOpacity:g,enterFromTransform:m,leaveToTransform:S,isSlideY:l,height:c,width:h,enterFromHeight:b,enterFromWidth:F,willChange:L,setInitialStyles:n=>{n.style.setProperty("--fade-will-change",L.value),n.style.setProperty("--fade-duration",t.value),n.style.setProperty("--fade-enter-opacity",String(u.value)),n.style.setProperty("--fade-enter-transform",String(m.value)),n.style.setProperty("--fade-enter-height",String(b.value)),n.style.setProperty("--fade-enter-width",String(F.value)),n.style.setProperty("--fade-leave-opacity",String(g.value)),n.style.setProperty("--fade-leave-transform",String(S.value))},onEnter:n=>{if(e.slide&&!e.isFloating&&e.isEnterFrom){l.value?(n.style.width=getComputedStyle(n).width,n.style.height="auto"):(n.style.width="auto",n.style.height=getComputedStyle(n).height),n.style.position="absolute",n.style.visibility="hidden";const{width:y,height:B}=getComputedStyle(n);n.style.width=l.value?"":"0",n.style.height=l.value?"0":"",n.style.position="",n.style.visibility="",getComputedStyle(n)[l.value?"height":"width"],requestAnimationFrame(()=>{l.value?n.style.height=B:n.style.width=y})}},onAfterEnter:n=>{e.slide&&!e.isFloating&&e.isEnterFrom&&(n.style[l.value?"height":"width"]="")},onLeave:n=>{if(e.slide&&!e.isFloating&&e.isLeaveTo){l.value?n.style.height=getComputedStyle(n).height:n.style.width=getComputedStyle(n).width;const y=l.value?"height":"width";getComputedStyle(n)[y],requestAnimationFrame(()=>{n.style[y]="0"})}}};return Object.defineProperty(E,"__isScriptSetup",{enumerable:!1,value:!0}),E}});function D(r,s,e,t,o,i){return w(),A(k,{name:"sf-fade",onBeforeEnter:t.setInitialStyles,onEnter:t.onEnter,onBeforeLeave:t.setInitialStyles,onAfterEnter:t.onAfterEnter,onLeave:t.onLeave},{default:P(()=>[C(r.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onBeforeLeave","onAfterEnter","onLeave"])}const V=_(Y,[["render",D]]),X=p({__name:"ALink",props:{href:{},target:{}},setup(r,{expose:s}){s();const e=r,t=a(()=>{if(e.href){if(e.target)return e.target;if(e.href.startsWith("http")){const i=globalThis.$storefront.settings.domain||window.location.host;if(e.href.startsWith(`https://${i}`))return}return e.href.charAt(0)==="/"?void 0:"_blank"}}),o={props:e,linkTarget:t};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}});function Z(r,s,e,t,o,i){return w(),A(T(e.href?"a":"span"),{href:e.href,target:t.linkTarget,rel:t.linkTarget==="_blank"?"noopener":void 0},{default:P(()=>[C(r.$slots,"default")]),_:3},8,["href","target","rel"])}const G=_(X,[["render",Z]]),J=p({__name:"AImg",props:{picture:{},loading:{default:"lazy"},decoding:{},alt:{}},setup(r,{expose:s}){s();const e=r,t=a(()=>e.picture.url?e.picture:j(e.picture)||{}),o=a(()=>M(t.value)),i=a(()=>({src:t.value.url,alt:t.value.alt||e.alt,width:o.value.width||void 0,height:o.value.height||void 0,loading:e.loading,decoding:e.decoding||(o.value.height?"async":void 0)})),u={props:e,image:t,dimensions:o,attrs:i};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}});function K(r,s,e,t,o,i){return w(),$("img",N(I(t.attrs)),null,16)}const Q=_(J,[["render",K]]),x="bg-gray-200 rounded-md dark:bg-gray-700",U=p({__name:"Skeleton",props:{isBold:{type:Boolean},isLarge:{type:Boolean}},setup(r,{expose:s}){s();const e=r,t=a(()=>`${x} ${e.isBold?"h-8 mb-6":"h-2.5 mb-4"}`),o=a(()=>`${x} ${e.isBold?"h-5 mb-4":"h-2 mb-2.5"}`),i={props:e,rowClassName:x,firstRowClassName:t,nextRowsClassName:o};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),ee=f("span",{class:"sr-only"},"Loading...",-1);function te(r,s,e,t,o,i){return w(),$("div",{role:"status",class:d(["animate-pulse",e.isLarge?"max-w-4xl":"max-w-sm"])},[f("div",{class:d([t.firstRowClassName,e.isLarge?"w-96":"w-48"])},null,2),f("div",{class:d([t.nextRowsClassName,e.isLarge?"max-w-[680px]":"max-w-[340px]"])},null,2),f("div",{class:d(t.nextRowsClassName)},null,2),f("div",{class:d([t.nextRowsClassName,e.isLarge?"max-w-[660px]":"max-w-[330px]"])},null,2),f("div",{class:d([t.nextRowsClassName,e.isLarge?"max-w-[600px]":"max-w-[300px]"])},null,2),f("div",{class:d([t.nextRowsClassName,e.isLarge?"max-w-[720px]":"max-w-[360px]"])},null,2),ee],2)}const ne=_(U,[["render",te]]),re=(r,s=1)=>Number.isInteger(r)?`${r}%`:`${r.toFixed(s)}%`,se=r=>{r.use({install:(s,e)=>{s.config.globalProperties.$t=(t,o)=>H(t,o||e?.lang),s.config.globalProperties.$money=q,s.config.globalProperties.$percentage=re,s.config.globalProperties.$settings=globalThis.$storefront.settings,s.config.globalProperties.$apiContext=globalThis.$storefront.apiContext}}),r.component("Fade",V),r.component("ALink",G),r.component("AImg",Q),r.component("Skeleton",ne)},oe=p({props:{value:String,name:String,hydrate:{type:Boolean,default:!0}},setup({name:r,value:s,hydrate:e}){if(!s)return()=>null;let t=e?"astro-slot":"astro-static-slot";return()=>v(t,{name:r,innerHTML:s})}}),me=r=>async(s,e,t,{client:o})=>{if(delete e.class,!r.hasAttribute("ssr"))return;const i=s.name?`${s.name} Host`:void 0,u={};for(const[c,h]of Object.entries(t))u[c]=()=>v(oe,{value:h,name:c==="default"?void 0:c});let g=v(s,e,u);ae(s.setup)&&(g=v(R,null,g));const m=o!=="only",l=(m?z:O)({name:i,render:()=>g});await se(l),l.mount(r,m),r.addEventListener("astro:unmount",()=>l.unmount(),{once:!0})};function ae(r){const s=r?.constructor;return s&&s.name==="AsyncFunction"}export{me as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as v}from"./preload-helper.cf010ec4.js";import"./session-utm.744b0db3.js";function g(d={}){const{immediate:l=!1,onNeedRefresh:m,onOfflineReady:t,onRegistered:r,onRegisteredSW:o,onRegisterError:s}=d;let i,a;const c=async(n=!0)=>{await a};async function f(){if("serviceWorker"in navigator){const{Workbox:n}=await v(()=>import("./workbox-window.prod.es5.a7b12eab.js"),[]);i=new n("/sw.js",{scope:"/",type:"classic"}),i.addEventListener("activated",e=>{(e.isUpdate||e.isExternal)&&window.location.reload()}),i.addEventListener("installed",e=>{e.isUpdate||t?.()}),i.register({immediate:l}).then(e=>{o?o("/sw.js",e):r?.(e)}).catch(e=>{s?.(e)})}}return a=f(),c}g({immediate:!1});
|
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, useSSRContext, mergeProps, inject, ref, provide, withCtx, renderSlot, resolveComponent, openBlock, createBlock, createCommentVNode, createVNode, toDisplayString, createTextVNode } from 'vue';
|
|
2
|
-
import { _ as _export_sfc, k as parseProduct, m as useId, r as removeCartItem, n as freeShippingFromValue, o as shoppingCart, t as totalItems } from './pages/_...slug_.astro.ec6517ba.mjs';
|
|
3
|
-
import { ssrRenderAttrs, ssrRenderSlot, ssrRenderAttr, ssrInterpolate, ssrIncludeBooleanAttr, ssrRenderComponent, ssrRenderList } from 'vue/server-renderer';
|
|
4
|
-
import { P as Prices } from './pages/index.astro.8ad03206.mjs';
|
|
5
|
-
import { name, img } from '@ecomplus/utils';
|
|
6
|
-
import './astro.11be33ee.mjs';
|
|
7
|
-
import 'clsx';
|
|
8
|
-
import 'html-escaper';
|
|
9
|
-
import '@cloudcommerce/api';
|
|
10
|
-
import 'node:events';
|
|
11
|
-
import 'node:fs';
|
|
12
|
-
import 'node:path';
|
|
13
|
-
import '@cloudcommerce/config';
|
|
14
|
-
import 'ultrahtml';
|
|
15
|
-
/* empty css */import 'image-size';
|
|
16
|
-
import 'mime';
|
|
17
|
-
import '@vueuse/core';
|
|
18
|
-
import '@headlessui/vue';
|
|
19
|
-
|
|
20
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
21
|
-
__name: "CheckoutLink",
|
|
22
|
-
props: {
|
|
23
|
-
to: { default: "cart" },
|
|
24
|
-
cartUrl: { default: globalThis.$storefront.settings.cart_url || "/app/#/cart" },
|
|
25
|
-
checkoutUrl: { default: globalThis.$storefront.settings.checkout_url || "/app/#/checkout" }
|
|
26
|
-
},
|
|
27
|
-
setup(__props, { expose: __expose }) {
|
|
28
|
-
__expose();
|
|
29
|
-
const props = __props;
|
|
30
|
-
const href = computed(() => {
|
|
31
|
-
if (props.to === "cart")
|
|
32
|
-
return props.cartUrl;
|
|
33
|
-
return props.checkoutUrl;
|
|
34
|
-
});
|
|
35
|
-
const __returned__ = { props, href };
|
|
36
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
37
|
-
return __returned__;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
function _sfc_ssrRender$4(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
41
|
-
_push(`<a${ssrRenderAttrs(mergeProps({ href: $setup.href }, _attrs))}>`);
|
|
42
|
-
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
|
43
|
-
_push(`</a>`);
|
|
44
|
-
}
|
|
45
|
-
const _sfc_setup$4 = _sfc_main$4.setup;
|
|
46
|
-
_sfc_main$4.setup = (props, ctx) => {
|
|
47
|
-
const ssrContext = useSSRContext();
|
|
48
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/CheckoutLink.vue");
|
|
49
|
-
return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
|
|
50
|
-
};
|
|
51
|
-
const CheckoutLink = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["ssrRender", _sfc_ssrRender$4]]);
|
|
52
|
-
|
|
53
|
-
const useCartItem = (props) => {
|
|
54
|
-
const parsedItem = computed(() => {
|
|
55
|
-
return !props.item && props.product ? parseProduct(props.product) : null;
|
|
56
|
-
});
|
|
57
|
-
const cartItem = computed(() => {
|
|
58
|
-
return props.item || parsedItem.value;
|
|
59
|
-
});
|
|
60
|
-
const title = computed(() => {
|
|
61
|
-
return name(cartItem.value);
|
|
62
|
-
});
|
|
63
|
-
const link = computed(() => {
|
|
64
|
-
const { slug } = cartItem.value;
|
|
65
|
-
if (typeof slug === "string") {
|
|
66
|
-
return `/${slug}`;
|
|
67
|
-
}
|
|
68
|
-
return null;
|
|
69
|
-
});
|
|
70
|
-
const image = computed(() => {
|
|
71
|
-
if (cartItem.value.picture) {
|
|
72
|
-
return img(cartItem.value.picture, void 0, props.pictureSize || "small");
|
|
73
|
-
}
|
|
74
|
-
return void 0;
|
|
75
|
-
});
|
|
76
|
-
const finalPrice = computed(() => {
|
|
77
|
-
return cartItem.value.final_price || cartItem.value.price;
|
|
78
|
-
});
|
|
79
|
-
return {
|
|
80
|
-
cartItem,
|
|
81
|
-
title,
|
|
82
|
-
link,
|
|
83
|
-
image,
|
|
84
|
-
finalPrice
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
89
|
-
__name: "QuantitySelectorControl",
|
|
90
|
-
props: {
|
|
91
|
-
isMinus: { type: Boolean }
|
|
92
|
-
},
|
|
93
|
-
setup(__props, { expose: __expose }) {
|
|
94
|
-
__expose();
|
|
95
|
-
const {
|
|
96
|
-
value,
|
|
97
|
-
isBoundMin,
|
|
98
|
-
isBoundMax
|
|
99
|
-
} = inject(quantitySelectorKey);
|
|
100
|
-
const __returned__ = { value, isBoundMin, isBoundMax };
|
|
101
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
102
|
-
return __returned__;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
function _sfc_ssrRender$3(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
106
|
-
_push(`<button${ssrRenderAttrs(mergeProps({
|
|
107
|
-
type: "button",
|
|
108
|
-
class: "w-10 h-12 text-xl leading-12 enabled:text-primary enabled:hover:bg-primary-100/70 disabled:opacity-40",
|
|
109
|
-
"data-quantity-selector-control": $props.isMinus ? "minus" : "plus",
|
|
110
|
-
"aria-label": $props.isMinus ? "Menos" : "Mais",
|
|
111
|
-
disabled: $props.isMinus ? $setup.isBoundMin : $setup.isBoundMax
|
|
112
|
-
}, _attrs))}>`);
|
|
113
|
-
ssrRenderSlot(_ctx.$slots, "default", {}, () => {
|
|
114
|
-
if ($props.isMinus) {
|
|
115
|
-
_push(`<!--[-->\u2212<!--]-->`);
|
|
116
|
-
} else {
|
|
117
|
-
_push(`<!--[-->+<!--]-->`);
|
|
118
|
-
}
|
|
119
|
-
}, _push, _parent);
|
|
120
|
-
_push(`</button>`);
|
|
121
|
-
}
|
|
122
|
-
const _sfc_setup$3 = _sfc_main$3.setup;
|
|
123
|
-
_sfc_main$3.setup = (props, ctx) => {
|
|
124
|
-
const ssrContext = useSSRContext();
|
|
125
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/QuantitySelectorControl.vue");
|
|
126
|
-
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
|
127
|
-
};
|
|
128
|
-
const QuantitySelectorControl = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["ssrRender", _sfc_ssrRender$3]]);
|
|
129
|
-
|
|
130
|
-
const quantitySelectorKey = Symbol("quantitySelector");
|
|
131
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
132
|
-
__name: "QuantitySelector",
|
|
133
|
-
props: {
|
|
134
|
-
modelValue: { default: 1 },
|
|
135
|
-
min: { default: 1 },
|
|
136
|
-
max: {},
|
|
137
|
-
step: {},
|
|
138
|
-
disabled: { type: Boolean },
|
|
139
|
-
readonly: { type: Boolean }
|
|
140
|
-
},
|
|
141
|
-
emits: ["update:modelValue"],
|
|
142
|
-
setup(__props, { expose: __expose, emit }) {
|
|
143
|
-
__expose();
|
|
144
|
-
const props = __props;
|
|
145
|
-
const input = ref(null);
|
|
146
|
-
const inputId = `NInput${useId()}`;
|
|
147
|
-
const value = computed({
|
|
148
|
-
get() {
|
|
149
|
-
return props.modelValue;
|
|
150
|
-
},
|
|
151
|
-
set(_value) {
|
|
152
|
-
if (_value < props.min) {
|
|
153
|
-
_value = props.min;
|
|
154
|
-
input.value.value = `${_value}`;
|
|
155
|
-
}
|
|
156
|
-
if (props.max && _value > props.max) {
|
|
157
|
-
_value = props.max;
|
|
158
|
-
input.value.value = `${_value}`;
|
|
159
|
-
}
|
|
160
|
-
emit("update:modelValue", _value);
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
const isBoundMin = computed(() => {
|
|
164
|
-
return props.min >= value.value;
|
|
165
|
-
});
|
|
166
|
-
const isBoundMax = computed(() => {
|
|
167
|
-
return props.max <= value.value;
|
|
168
|
-
});
|
|
169
|
-
provide(quantitySelectorKey, {
|
|
170
|
-
value,
|
|
171
|
-
isBoundMin,
|
|
172
|
-
isBoundMax
|
|
173
|
-
});
|
|
174
|
-
const __returned__ = { quantitySelectorKey, props, emit, input, inputId, value, isBoundMin, isBoundMax, QuantitySelectorControl };
|
|
175
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
176
|
-
return __returned__;
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
function _sfc_ssrRender$2(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
180
|
-
_push(`<div${ssrRenderAttrs(mergeProps({ "data-quantity-selector": "" }, _attrs))}>`);
|
|
181
|
-
ssrRenderSlot(_ctx.$slots, "label", { inputId: $setup.inputId, value: $setup.value }, () => {
|
|
182
|
-
_push(`<label${ssrRenderAttr("for", $setup.inputId)} class="sr-only">${ssrInterpolate("Quantidade")}</label>`);
|
|
183
|
-
}, _push, _parent);
|
|
184
|
-
_push(`<div class="flex items-center"><input type="number"${ssrRenderAttr("id", $setup.inputId)}${ssrRenderAttr("value", $setup.value)}${ssrRenderAttr("min", $props.min)}${ssrRenderAttr("max", $props.max)}${ssrRenderAttr("step", $props.step)}${ssrIncludeBooleanAttr($props.disabled) ? " disabled" : ""}${ssrIncludeBooleanAttr($props.readonly) ? " readonly" : ""} class="h-12 w-14 px-2 text-lg border-transparent text-center [-moz-appearance:_textfield] [&::-webkit-outer-spin-button]:m-0 [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:m-0 [&::-webkit-inner-spin-button]:appearance-none">`);
|
|
185
|
-
ssrRenderSlot(_ctx.$slots, "controls", { value: $setup.value, isBoundMin: $setup.isBoundMin, isBoundMax: $setup.isBoundMax }, () => {
|
|
186
|
-
_push(ssrRenderComponent($setup["QuantitySelectorControl"], {
|
|
187
|
-
"is-minus": "",
|
|
188
|
-
class: "order-first"
|
|
189
|
-
}, {
|
|
190
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
191
|
-
if (_push2) {
|
|
192
|
-
ssrRenderSlot(_ctx.$slots, "minus", {}, null, _push2, _parent2, _scopeId);
|
|
193
|
-
} else {
|
|
194
|
-
return [
|
|
195
|
-
renderSlot(_ctx.$slots, "minus")
|
|
196
|
-
];
|
|
197
|
-
}
|
|
198
|
-
}),
|
|
199
|
-
_: 3
|
|
200
|
-
}, _parent));
|
|
201
|
-
_push(ssrRenderComponent($setup["QuantitySelectorControl"], { class: "order-last" }, {
|
|
202
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
203
|
-
if (_push2) {
|
|
204
|
-
ssrRenderSlot(_ctx.$slots, "plus", {}, null, _push2, _parent2, _scopeId);
|
|
205
|
-
} else {
|
|
206
|
-
return [
|
|
207
|
-
renderSlot(_ctx.$slots, "plus")
|
|
208
|
-
];
|
|
209
|
-
}
|
|
210
|
-
}),
|
|
211
|
-
_: 3
|
|
212
|
-
}, _parent));
|
|
213
|
-
}, _push, _parent);
|
|
214
|
-
_push(`</div></div>`);
|
|
215
|
-
}
|
|
216
|
-
const _sfc_setup$2 = _sfc_main$2.setup;
|
|
217
|
-
_sfc_main$2.setup = (props, ctx) => {
|
|
218
|
-
const ssrContext = useSSRContext();
|
|
219
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/QuantitySelector.vue");
|
|
220
|
-
return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
|
|
221
|
-
};
|
|
222
|
-
const QuantitySelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["ssrRender", _sfc_ssrRender$2]]);
|
|
223
|
-
|
|
224
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
225
|
-
__name: "CartItem",
|
|
226
|
-
props: {
|
|
227
|
-
item: {},
|
|
228
|
-
product: {},
|
|
229
|
-
pictureSize: {}
|
|
230
|
-
},
|
|
231
|
-
setup(__props, { expose: __expose }) {
|
|
232
|
-
__expose();
|
|
233
|
-
const props = __props;
|
|
234
|
-
const {
|
|
235
|
-
cartItem,
|
|
236
|
-
title,
|
|
237
|
-
link,
|
|
238
|
-
image,
|
|
239
|
-
finalPrice
|
|
240
|
-
} = useCartItem(props);
|
|
241
|
-
const __returned__ = { props, cartItem, title, link, image, finalPrice, get removeCartItem() {
|
|
242
|
-
return removeCartItem;
|
|
243
|
-
}, QuantitySelector, Prices };
|
|
244
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
245
|
-
return __returned__;
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
function _sfc_ssrRender$1(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
249
|
-
const _component_ALink = resolveComponent("ALink");
|
|
250
|
-
const _component_AImg = resolveComponent("AImg");
|
|
251
|
-
_push(`<article${ssrRenderAttrs(mergeProps({ class: "relative bg-white shadow-sm" }, _attrs))}>`);
|
|
252
|
-
_push(ssrRenderComponent(_component_ALink, {
|
|
253
|
-
href: $setup.link,
|
|
254
|
-
class: "flex items-center gap-5 p-4 group"
|
|
255
|
-
}, {
|
|
256
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
257
|
-
if (_push2) {
|
|
258
|
-
if ($setup.image) {
|
|
259
|
-
_push2(ssrRenderComponent(_component_AImg, {
|
|
260
|
-
picture: $setup.image,
|
|
261
|
-
alt: $setup.title,
|
|
262
|
-
class: "w-20 h-20 object-cover"
|
|
263
|
-
}, null, _parent2, _scopeId));
|
|
264
|
-
} else {
|
|
265
|
-
_push2(`<!---->`);
|
|
266
|
-
}
|
|
267
|
-
_push2(`<p class="py-2 flex-auto text-sm text-base-700 group-hover:text-base-900 group-hover:underline"${_scopeId}>${ssrInterpolate($setup.title)}</p>`);
|
|
268
|
-
} else {
|
|
269
|
-
return [
|
|
270
|
-
$setup.image ? (openBlock(), createBlock(_component_AImg, {
|
|
271
|
-
key: 0,
|
|
272
|
-
picture: $setup.image,
|
|
273
|
-
alt: $setup.title,
|
|
274
|
-
class: "w-20 h-20 object-cover"
|
|
275
|
-
}, null, 8, ["picture", "alt"])) : createCommentVNode("", true),
|
|
276
|
-
createVNode("p", { class: "py-2 flex-auto text-sm text-base-700 group-hover:text-base-900 group-hover:underline" }, toDisplayString($setup.title), 1)
|
|
277
|
-
];
|
|
278
|
-
}
|
|
279
|
-
}),
|
|
280
|
-
_: 1
|
|
281
|
-
}, _parent));
|
|
282
|
-
if ($setup.cartItem._id) {
|
|
283
|
-
_push(`<button class="absolute top-0 right-0 p-2 opacity-70 hover:opacity-100"${ssrRenderAttr("aria-label", "Remover")}><span class="w-5 h-5 text-sm leading-none flex flex-col justify-center rounded-full border-3 text-danger-800 border-danger-700/30"><i class="i-close my-0 mx-auto"></i></span></button>`);
|
|
284
|
-
} else {
|
|
285
|
-
_push(`<!---->`);
|
|
286
|
-
}
|
|
287
|
-
_push(`<div class="flex justify-between items-center border-t-2 border-base-100"><div class="border-r-2 border-base-100">`);
|
|
288
|
-
_push(ssrRenderComponent($setup["QuantitySelector"], {
|
|
289
|
-
modelValue: $setup.cartItem.quantity,
|
|
290
|
-
"onUpdate:modelValue": ($event) => $setup.cartItem.quantity = $event,
|
|
291
|
-
min: $setup.cartItem.min_quantity,
|
|
292
|
-
max: $setup.cartItem.max_quantity
|
|
293
|
-
}, null, _parent));
|
|
294
|
-
_push(`</div>`);
|
|
295
|
-
_push(ssrRenderComponent($setup["Prices"], {
|
|
296
|
-
"base-price": $setup.cartItem.base_price,
|
|
297
|
-
price: $setup.finalPrice,
|
|
298
|
-
"has-cashback": false,
|
|
299
|
-
"has-price-options": false,
|
|
300
|
-
class: "px-4 py-2.5 text-[95%] text-right"
|
|
301
|
-
}, null, _parent));
|
|
302
|
-
_push(`</div></article>`);
|
|
303
|
-
}
|
|
304
|
-
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
305
|
-
_sfc_main$1.setup = (props, ctx) => {
|
|
306
|
-
const ssrContext = useSSRContext();
|
|
307
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/CartItem.vue");
|
|
308
|
-
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
309
|
-
};
|
|
310
|
-
const CartItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["ssrRender", _sfc_ssrRender$1]]);
|
|
311
|
-
|
|
312
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
313
|
-
__name: "CartSidebar",
|
|
314
|
-
emits: ["close"],
|
|
315
|
-
setup(__props, { expose: __expose, emit }) {
|
|
316
|
-
__expose();
|
|
317
|
-
const __returned__ = { emit, get freeShippingFromValue() {
|
|
318
|
-
return freeShippingFromValue;
|
|
319
|
-
}, get shoppingCart() {
|
|
320
|
-
return shoppingCart;
|
|
321
|
-
}, get totalItems() {
|
|
322
|
-
return totalItems;
|
|
323
|
-
}, CheckoutLink, Prices, CartItem };
|
|
324
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
325
|
-
return __returned__;
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
|
|
329
|
-
_push(`<aside${ssrRenderAttrs(mergeProps({ class: "flex flex-col h-screen bg-white" }, _attrs))}><header class="px-6 py-4 flex justify-end items-center gap-3 shadow ring-1 ring-black/5 z-10"><span class="text-right text-base text-base-600 font-medium">${ssrInterpolate("Meu carrinho de compras")}</span><span class="min-w-[3rem] text-right"><span class="ui-badge-pill-lg">${ssrInterpolate($setup.totalItems)}</span></span></header><article class="grow overflow-y-auto bg-base-50">`);
|
|
330
|
-
if ($setup.freeShippingFromValue) {
|
|
331
|
-
_push(`<div class="text-sm text-center">`);
|
|
332
|
-
if ($setup.freeShippingFromValue > $setup.shoppingCart.subtotal) {
|
|
333
|
-
_push(`<div class="p-3 secondary-subtle">${ssrInterpolate("Adicione $1 para ganhar".replace(
|
|
334
|
-
"$1",
|
|
335
|
-
_ctx.$money($setup.freeShippingFromValue - $setup.shoppingCart.subtotal)
|
|
336
|
-
))} <strong class="lowercase">${ssrInterpolate("Frete gr\xE1tis")}</strong></div>`);
|
|
337
|
-
} else {
|
|
338
|
-
_push(`<div class="p-3 bg-success-50 text-success-800"><i class="text-success-900 i-check mr-1"></i> ${ssrInterpolate("Frete gr\xE1tis a partir de")} ${ssrInterpolate(_ctx.$money($setup.freeShippingFromValue))}</div>`);
|
|
339
|
-
}
|
|
340
|
-
_push(`</div>`);
|
|
341
|
-
} else {
|
|
342
|
-
_push(`<!---->`);
|
|
343
|
-
}
|
|
344
|
-
_push(`<ul class="px-4 pt-4 pb-2"><!--[-->`);
|
|
345
|
-
ssrRenderList($setup.shoppingCart.items, (item, i) => {
|
|
346
|
-
_push(`<li>`);
|
|
347
|
-
_push(ssrRenderComponent($setup["CartItem"], {
|
|
348
|
-
item,
|
|
349
|
-
class: "mb-3"
|
|
350
|
-
}, null, _parent));
|
|
351
|
-
_push(`</li>`);
|
|
352
|
-
});
|
|
353
|
-
_push(`<!--]--></ul></article><footer class="px-5 pt-4 pb-3 ring-2 ring-black/5 z-10"><div class="grid grid-cols-5 gap-3 items-center text-right"><div class="col-span-2">${ssrInterpolate("Subtotal")}</div>`);
|
|
354
|
-
_push(ssrRenderComponent($setup["Prices"], {
|
|
355
|
-
price: $setup.shoppingCart.subtotal,
|
|
356
|
-
class: "col-span-3 text-lg"
|
|
357
|
-
}, null, _parent));
|
|
358
|
-
_push(`</div>`);
|
|
359
|
-
_push(ssrRenderComponent($setup["CheckoutLink"], { class: "ui-btn-lg ui-btn-primary w-full text-right my-2.5" }, {
|
|
360
|
-
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
361
|
-
if (_push2) {
|
|
362
|
-
_push2(`<i class="i-check mr-2"${_scopeId}></i> ${ssrInterpolate("Finalizar compra")}`);
|
|
363
|
-
} else {
|
|
364
|
-
return [
|
|
365
|
-
createVNode("i", { class: "i-check mr-2" }),
|
|
366
|
-
createTextVNode(" " + toDisplayString("Finalizar compra"))
|
|
367
|
-
];
|
|
368
|
-
}
|
|
369
|
-
}),
|
|
370
|
-
_: 1
|
|
371
|
-
}, _parent));
|
|
372
|
-
_push(`<a href="#" class="ui-link text-base-500 hover:text-base-700 text-sm"><i class="i-arrow-left mr-1"></i> ${ssrInterpolate("Continuar comprando")}</a></footer></aside>`);
|
|
373
|
-
}
|
|
374
|
-
const _sfc_setup = _sfc_main.setup;
|
|
375
|
-
_sfc_main.setup = (props, ctx) => {
|
|
376
|
-
const ssrContext = useSSRContext();
|
|
377
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/CartSidebar.vue");
|
|
378
|
-
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
379
|
-
};
|
|
380
|
-
const CartSidebar = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
|
|
381
|
-
|
|
382
|
-
export { CartSidebar as default };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { mergeProps, useSSRContext } from 'vue';
|
|
2
|
-
import { ssrRenderAttrs } from 'vue/server-renderer';
|
|
3
|
-
import { _ as _export_sfc } from './pages/_...slug_.astro.ec6517ba.mjs';
|
|
4
|
-
import './astro.11be33ee.mjs';
|
|
5
|
-
import 'clsx';
|
|
6
|
-
import 'html-escaper';
|
|
7
|
-
import '@cloudcommerce/api';
|
|
8
|
-
import 'node:events';
|
|
9
|
-
import 'node:fs';
|
|
10
|
-
import 'node:path';
|
|
11
|
-
import '@cloudcommerce/config';
|
|
12
|
-
import '@ecomplus/utils';
|
|
13
|
-
import 'ultrahtml';
|
|
14
|
-
/* empty css */import 'image-size';
|
|
15
|
-
import 'mime';
|
|
16
|
-
import '@vueuse/core';
|
|
17
|
-
import '@headlessui/vue';
|
|
18
|
-
|
|
19
|
-
const _sfc_main = {};
|
|
20
|
-
|
|
21
|
-
function _sfc_ssrRender(_ctx, _push, _parent, _attrs) {
|
|
22
|
-
_push(`<div${ssrRenderAttrs(mergeProps({ class: "w-full h-40 bg-base-300" }, _attrs))}></div>`);
|
|
23
|
-
}
|
|
24
|
-
const _sfc_setup = _sfc_main.setup;
|
|
25
|
-
_sfc_main.setup = (props, ctx) => {
|
|
26
|
-
const ssrContext = useSSRContext()
|
|
27
|
-
;(ssrContext.modules || (ssrContext.modules = new Set())).add("src/components/SearchModal.vue");
|
|
28
|
-
return _sfc_setup ? _sfc_setup(props, ctx) : undefined
|
|
29
|
-
};
|
|
30
|
-
const SearchModal = /*#__PURE__*/_export_sfc(_sfc_main, [['ssrRender',_sfc_ssrRender]]);
|
|
31
|
-
|
|
32
|
-
export { SearchModal as default };
|