cloudcommerce 0.26.2 → 0.26.3

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.
Files changed (132) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
  3. package/ecomplus-stores/barra-doce/functions/ssr/index.js +0 -1
  4. package/ecomplus-stores/barra-doce/functions/ssr/package.json +8 -8
  5. package/ecomplus-stores/barra-doce/functions/ssr/src/components/CartItem.vue +64 -0
  6. package/ecomplus-stores/barra-doce/functions/ssr/src/components/CartSidebar.vue +38 -7
  7. package/ecomplus-stores/barra-doce/functions/ssr/src/components/Prices.vue +2 -3
  8. package/ecomplus-stores/barra-doce/functions/ssr/src/components/ShopHeader.vue +8 -4
  9. package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
  10. package/ecomplus-stores/barra-doce/package.json +2 -2
  11. package/ecomplus-stores/iluminim/functions/many/package.json +3 -3
  12. package/ecomplus-stores/iluminim/functions/ssr/package.json +8 -8
  13. package/ecomplus-stores/iluminim/functions/ssr/src/components/CartItem.vue +64 -0
  14. package/ecomplus-stores/iluminim/functions/ssr/src/components/CartSidebar.vue +37 -6
  15. package/ecomplus-stores/iluminim/functions/ssr/src/components/Prices.vue +2 -3
  16. package/ecomplus-stores/iluminim/functions/ssr/src/components/ShopHeader.vue +6 -2
  17. package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
  18. package/ecomplus-stores/iluminim/package.json +2 -2
  19. package/package.json +3 -3
  20. package/packages/api/package.json +1 -1
  21. package/packages/apps/affilate-program/package.json +1 -1
  22. package/packages/apps/correios/package.json +1 -1
  23. package/packages/apps/custom-payment/package.json +1 -1
  24. package/packages/apps/custom-shipping/package.json +1 -1
  25. package/packages/apps/datafrete/package.json +1 -1
  26. package/packages/apps/discounts/package.json +1 -1
  27. package/packages/apps/emails/package.json +2 -2
  28. package/packages/apps/fb-conversions/package.json +1 -1
  29. package/packages/apps/flash-courier/package.json +1 -1
  30. package/packages/apps/frenet/package.json +1 -1
  31. package/packages/apps/galaxpay/package.json +1 -1
  32. package/packages/apps/google-analytics/package.json +1 -1
  33. package/packages/apps/jadlog/package.json +1 -1
  34. package/packages/apps/loyalty-points/package.json +1 -1
  35. package/packages/apps/melhor-envio/package.json +1 -1
  36. package/packages/apps/mercadopago/package.json +1 -1
  37. package/packages/apps/pagarme/package.json +1 -1
  38. package/packages/apps/paghiper/package.json +1 -1
  39. package/packages/apps/pix/package.json +1 -1
  40. package/packages/apps/tiny-erp/package.json +1 -1
  41. package/packages/apps/webhooks/package.json +1 -1
  42. package/packages/cli/package.json +1 -1
  43. package/packages/config/package.json +1 -1
  44. package/packages/emails/package.json +1 -1
  45. package/packages/eslint/package.json +3 -3
  46. package/packages/events/package.json +1 -1
  47. package/packages/feeds/package.json +1 -1
  48. package/packages/firebase/package.json +1 -1
  49. package/packages/i18n/package.json +1 -1
  50. package/packages/modules/lib/firebase/functions-checkout/request-to-module.js +2 -2
  51. package/packages/modules/lib/firebase/functions-checkout/request-to-module.js.map +1 -1
  52. package/packages/modules/lib/firebase/functions-checkout/utils.js +21 -9
  53. package/packages/modules/lib/firebase/functions-checkout/utils.js.map +1 -1
  54. package/packages/modules/package.json +2 -2
  55. package/packages/modules/schemas/@checkout.cjs +0 -1
  56. package/packages/modules/src/firebase/functions-checkout/request-to-module.ts +2 -2
  57. package/packages/modules/src/firebase/functions-checkout/utils.ts +23 -9
  58. package/packages/passport/package.json +1 -1
  59. package/packages/ssr/package.json +2 -2
  60. package/packages/storefront/dist/client/_astro/{Carousel.926668f2.js → Carousel.0b24e2cb.js} +1 -1
  61. package/packages/storefront/dist/client/_astro/CartSidebar.2731d333.js +1 -0
  62. package/packages/storefront/dist/client/_astro/{HeroSlider.1f0524aa.js → HeroSlider.a70b2582.js} +1 -1
  63. package/packages/storefront/dist/client/_astro/{PitchBar.7407eeaf.js → PitchBar.13991988.js} +1 -1
  64. package/packages/storefront/dist/client/_astro/{Prices.562a32ab.js → Prices.cdfa346a.js} +1 -1
  65. package/packages/storefront/dist/client/_astro/{ProductShelf.763cd2ca.js → ProductShelf.619c56a5.js} +1 -1
  66. package/packages/storefront/dist/client/_astro/SearchModal.117a477d.js +1 -0
  67. package/packages/storefront/dist/client/_astro/{ShopHeader.126900a6.js → ShopHeader.2c2fded7.js} +2 -2
  68. package/packages/storefront/dist/client/_astro/_...slug_.b693913e.css +1 -0
  69. package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.ee681fa8.js → _plugin-vue_export-helper.fc5e2f5b.js} +1 -1
  70. package/packages/storefront/dist/client/_astro/{api.a2eda23e.js → api.39f40cd8.js} +1 -1
  71. package/packages/storefront/dist/client/_astro/client.a5d2898b.js +1 -0
  72. package/packages/storefront/dist/client/_astro/{firebase-app.93857bfb.js → firebase-app.8c541cce.js} +3 -3
  73. package/packages/storefront/dist/client/_astro/{format-money.923559cc.js → format-money.86f14860.js} +1 -1
  74. package/packages/storefront/dist/client/_astro/hoisted.d90361ee.js +1 -0
  75. package/packages/storefront/dist/client/_astro/{img.ec6ba316.js → img.d4891d80.js} +1 -1
  76. package/packages/storefront/dist/client/_astro/index.33801818.js +1 -0
  77. package/packages/storefront/dist/client/_astro/{modules-info.48980668.js → modules-info.ec412b24.js} +1 -1
  78. package/packages/storefront/dist/client/_empty-middleware.mjs +3 -0
  79. package/packages/storefront/dist/client/chunks/CartSidebar.0ce1e999.mjs +382 -0
  80. package/packages/storefront/dist/client/chunks/SearchModal.f603145b.mjs +32 -0
  81. package/packages/storefront/dist/client/chunks/astro.11be33ee.mjs +1424 -0
  82. package/packages/storefront/dist/{server/chunks/pages/_...slug_.astro.fd8a229f.mjs → client/chunks/pages/_...slug_.astro.ec6517ba.mjs} +360 -274
  83. package/packages/storefront/dist/{server/chunks/pages/account.astro.3b21bff8.mjs → client/chunks/pages/account.astro.3d2605e6.mjs} +2 -10
  84. package/packages/storefront/dist/{server/chunks/pages/index.astro.dab642f5.mjs → client/chunks/pages/index.astro.8ad03206.mjs} +167 -17
  85. package/packages/storefront/dist/{server/chunks/pages/~fallback.astro.7630c0d6.mjs → client/chunks/pages/~fallback.astro.d31d20b4.mjs} +8 -20
  86. package/packages/storefront/dist/client/chunks/sharp.3f154e38.mjs +74 -0
  87. package/packages/storefront/dist/client/manifest.e39eb543.mjs +79 -0
  88. package/packages/storefront/dist/client/pages/_---slug_.astro.mjs +23 -0
  89. package/packages/storefront/dist/client/pages/app/account.astro.mjs +23 -0
  90. package/packages/storefront/dist/client/pages/app.astro.mjs +23 -0
  91. package/packages/storefront/dist/client/pages/index.astro.mjs +23 -0
  92. package/packages/storefront/dist/client/pages/~fallback.astro.mjs +23 -0
  93. package/packages/storefront/dist/client/registerSW.js +1 -0
  94. package/packages/storefront/dist/client/renderers.mjs +369 -0
  95. package/packages/storefront/dist/client/sw.js +1 -1
  96. package/packages/storefront/dist/server/chunks/{CartSidebar.2b555408.mjs → CartSidebar.cca9fdd3.mjs} +14 -24
  97. package/packages/storefront/dist/server/chunks/{SearchModal.f418e188.mjs → SearchModal.a680efae.mjs} +8 -19
  98. package/packages/storefront/dist/server/chunks/_...f7cdc954.mjs +24 -0
  99. package/packages/storefront/dist/server/chunks/account@_@astro.fa8b921b.mjs +24 -0
  100. package/packages/storefront/dist/server/chunks/{astro.bb5b7191.mjs → astro.440a2e08.mjs} +149 -1859
  101. package/packages/storefront/dist/server/chunks/image-endpoint@_@js.802bf648.mjs +24 -0
  102. package/packages/storefront/dist/server/chunks/index@_@astro.a122f091.mjs +24 -0
  103. package/packages/storefront/dist/server/chunks/index@_@astro.da98dcbe.mjs +24 -0
  104. package/packages/storefront/dist/server/chunks/pages/_...slug_.astro.08ba5973.mjs +3930 -0
  105. package/packages/storefront/dist/server/chunks/pages/account.astro.f11f26f3.mjs +15 -0
  106. package/packages/storefront/dist/server/chunks/pages/image-endpoint.js.a9374d3e.mjs +238 -0
  107. package/packages/storefront/dist/server/chunks/pages/index.astro.079f316a.mjs +1650 -0
  108. package/packages/storefront/dist/server/chunks/pages/~fallback.astro.01594623.mjs +55 -0
  109. package/packages/storefront/dist/server/chunks/sharp.52841bb4.mjs +75 -0
  110. package/packages/storefront/dist/server/chunks/~fallback@_@astro.876a97c5.mjs +24 -0
  111. package/packages/storefront/dist/server/entry.mjs +1167 -2360
  112. package/packages/storefront/dist/server/manifest.12e7a10c.mjs +561 -0
  113. package/packages/storefront/dist/server/renderers.mjs +10 -21
  114. package/packages/storefront/package.json +6 -6
  115. package/packages/storefront/src/lib/layouts/BaseHead.astro +3 -2
  116. package/packages/test-base/package.json +1 -1
  117. package/packages/types/modules/@checkout:params.d.ts +1 -1
  118. package/packages/types/package.json +1 -1
  119. package/ecomplus-stores/iluminim/.ecomplus.cd.json +0 -5
  120. package/packages/storefront/dist/client/_astro/CartSidebar.eadba34f.js +0 -1
  121. package/packages/storefront/dist/client/_astro/SearchModal.cffd4c2d.js +0 -1
  122. package/packages/storefront/dist/client/_astro/_...slug_.36cd433d.css +0 -1
  123. package/packages/storefront/dist/client/_astro/client.e6d9439a.js +0 -1
  124. package/packages/storefront/dist/client/_astro/hoisted.572313d6.js +0 -1
  125. package/packages/storefront/dist/client/_astro/index.709ac149.js +0 -1
  126. package/packages/storefront/dist/server/chunks/_...d32bcc0c.mjs +0 -35
  127. package/packages/storefront/dist/server/chunks/account@_@astro.0106855f.mjs +0 -35
  128. package/packages/storefront/dist/server/chunks/endpoint@_@js.35807882.mjs +0 -35
  129. package/packages/storefront/dist/server/chunks/index@_@astro.477f5af1.mjs +0 -35
  130. package/packages/storefront/dist/server/chunks/index@_@astro.e5a61d6e.mjs +0 -35
  131. package/packages/storefront/dist/server/chunks/pages/endpoint.js.247079ba.mjs +0 -119
  132. package/packages/storefront/dist/server/chunks/~fallback@_@astro.65227dd7.mjs +0 -35
@@ -0,0 +1,369 @@
1
+ import { useSSRContext, defineComponent, computed, createVNode, resolveDynamicComponent, mergeProps, withCtx, renderSlot, h, createSSRApp } from 'vue';
2
+ import { ssrRenderSlotInner, ssrRenderVNode, ssrRenderSlot, ssrRenderAttrs, ssrRenderClass, renderToString } from 'vue/server-renderer';
3
+ import { img, imgSizes, i18n, formatMoney } from '@ecomplus/utils';
4
+ import { _ as _export_sfc } from './chunks/pages/_...slug_.astro.ec6517ba.mjs';
5
+ import './chunks/astro.11be33ee.mjs';
6
+ import 'clsx';
7
+ import 'html-escaper';
8
+ import '@cloudcommerce/api';
9
+ import 'node:events';
10
+ import 'node:fs';
11
+ import 'node:path';
12
+ import '@cloudcommerce/config';
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$3 = /* @__PURE__ */ defineComponent({
20
+ __name: "Fade",
21
+ props: {
22
+ speed: { default: "default" },
23
+ slide: {},
24
+ isFloating: { type: Boolean, default: false },
25
+ isLeaveTo: { type: Boolean, default: true },
26
+ isEnterFrom: { type: Boolean, default: true }
27
+ },
28
+ setup(__props, { expose: __expose }) {
29
+ __expose();
30
+ const props = __props;
31
+ const duration = computed(() => {
32
+ if (props.speed === "default")
33
+ return "var(--transition, .2s linear)";
34
+ return `var(--transition-${props.speed}, .4s linear)`;
35
+ });
36
+ const transform = computed(() => {
37
+ switch (props.slide) {
38
+ case "down":
39
+ return "translate3d(0, -100%, 0)";
40
+ case "left":
41
+ return "translate3d(-100%, 0, 0)";
42
+ case "right":
43
+ return "translate3d(100%, 0, 0)";
44
+ case "up":
45
+ return "translate3d(0, 100%, 0)";
46
+ default:
47
+ return "none";
48
+ }
49
+ });
50
+ const opacity = computed(() => {
51
+ return transform.value !== "none" ? 0.1 : 0;
52
+ });
53
+ const enterFromOpacity = computed(() => {
54
+ return props.isEnterFrom ? opacity.value : 1;
55
+ });
56
+ const leaveToOpacity = computed(() => {
57
+ return props.isLeaveTo ? opacity.value : 1;
58
+ });
59
+ const enterFromTransform = computed(() => {
60
+ return props.isEnterFrom ? transform.value : "none";
61
+ });
62
+ const leaveToTransform = computed(() => {
63
+ return props.isLeaveTo ? transform.value : "none";
64
+ });
65
+ const isSlideY = computed(() => {
66
+ return props.slide === "down" || props.slide === "up";
67
+ });
68
+ const height = computed(() => {
69
+ if (props.isFloating)
70
+ return null;
71
+ return isSlideY.value ? 0 : "auto";
72
+ });
73
+ const width = computed(() => {
74
+ if (props.isFloating)
75
+ return null;
76
+ return props.slide && !isSlideY.value ? 0 : "auto";
77
+ });
78
+ const enterFromHeight = computed(() => {
79
+ return props.isEnterFrom ? height.value : "auto";
80
+ });
81
+ const enterFromWidth = computed(() => {
82
+ return props.isEnterFrom ? width.value : "auto";
83
+ });
84
+ const willChange = computed(() => {
85
+ let properties = "opacity";
86
+ if (transform.value !== "none")
87
+ properties += ", transform";
88
+ if (height.value === 0)
89
+ properties += ", height";
90
+ if (width.value === 0)
91
+ properties += ", width";
92
+ return properties;
93
+ });
94
+ const setInitialStyles = (el) => {
95
+ el.style.setProperty("--fade-will-change", willChange.value);
96
+ el.style.setProperty("--fade-duration", duration.value);
97
+ el.style.setProperty("--fade-enter-opacity", String(enterFromOpacity.value));
98
+ el.style.setProperty("--fade-enter-transform", String(enterFromTransform.value));
99
+ el.style.setProperty("--fade-enter-height", String(enterFromHeight.value));
100
+ el.style.setProperty("--fade-enter-width", String(enterFromWidth.value));
101
+ el.style.setProperty("--fade-leave-opacity", String(leaveToOpacity.value));
102
+ el.style.setProperty("--fade-leave-transform", String(leaveToTransform.value));
103
+ };
104
+ const onEnter = (el) => {
105
+ if (props.slide && !props.isFloating && props.isEnterFrom) {
106
+ if (isSlideY.value) {
107
+ el.style.width = getComputedStyle(el).width;
108
+ el.style.height = "auto";
109
+ } else {
110
+ el.style.width = "auto";
111
+ el.style.height = getComputedStyle(el).height;
112
+ }
113
+ el.style.position = "absolute";
114
+ el.style.visibility = "hidden";
115
+ const { width: width2, height: height2 } = getComputedStyle(el);
116
+ el.style.width = isSlideY.value ? "" : "0";
117
+ el.style.height = isSlideY.value ? "0" : "";
118
+ el.style.position = "";
119
+ el.style.visibility = "";
120
+ getComputedStyle(el)[isSlideY.value ? "height" : "width"];
121
+ requestAnimationFrame(() => {
122
+ if (isSlideY.value) {
123
+ el.style.height = height2;
124
+ } else {
125
+ el.style.width = width2;
126
+ }
127
+ });
128
+ }
129
+ };
130
+ const onAfterEnter = (el) => {
131
+ if (props.slide && !props.isFloating && props.isEnterFrom) {
132
+ el.style[isSlideY.value ? "height" : "width"] = "";
133
+ }
134
+ };
135
+ const onLeave = (el) => {
136
+ if (props.slide && !props.isFloating && props.isLeaveTo) {
137
+ if (isSlideY.value) {
138
+ el.style.height = getComputedStyle(el).height;
139
+ } else {
140
+ el.style.width = getComputedStyle(el).width;
141
+ }
142
+ const sizeProp = isSlideY.value ? "height" : "width";
143
+ getComputedStyle(el)[sizeProp];
144
+ requestAnimationFrame(() => {
145
+ el.style[sizeProp] = "0";
146
+ });
147
+ }
148
+ };
149
+ const __returned__ = { props, duration, transform, opacity, enterFromOpacity, leaveToOpacity, enterFromTransform, leaveToTransform, isSlideY, height, width, enterFromHeight, enterFromWidth, willChange, setInitialStyles, onEnter, onAfterEnter, onLeave };
150
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
151
+ return __returned__;
152
+ }
153
+ });
154
+ function _sfc_ssrRender$3(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
155
+ ssrRenderSlotInner(_ctx.$slots, "default", {}, null, _push, _parent, null, true);
156
+ }
157
+ const _sfc_setup$3 = _sfc_main$3.setup;
158
+ _sfc_main$3.setup = (props, ctx) => {
159
+ const ssrContext = useSSRContext();
160
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/globals/Fade.vue");
161
+ return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
162
+ };
163
+ const Fade = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["ssrRender", _sfc_ssrRender$3]]);
164
+
165
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
166
+ __name: "ALink",
167
+ props: {
168
+ href: {},
169
+ target: {}
170
+ },
171
+ setup(__props, { expose: __expose }) {
172
+ __expose();
173
+ const props = __props;
174
+ const linkTarget = computed(() => {
175
+ if (!props.href)
176
+ return void 0;
177
+ if (props.target)
178
+ return props.target;
179
+ if (props.href.startsWith("http")) {
180
+ const domain = globalThis.$storefront.settings.domain || window.location.host;
181
+ if (props.href.startsWith(`https://${domain}`))
182
+ return void 0;
183
+ }
184
+ return props.href.charAt(0) === "/" ? void 0 : "_blank";
185
+ });
186
+ const __returned__ = { props, linkTarget };
187
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
188
+ return __returned__;
189
+ }
190
+ });
191
+ function _sfc_ssrRender$2(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
192
+ ssrRenderVNode(_push, createVNode(resolveDynamicComponent($props.href ? "a" : "span"), mergeProps({
193
+ href: $props.href,
194
+ target: $setup.linkTarget,
195
+ rel: $setup.linkTarget === "_blank" ? "noopener" : void 0
196
+ }, _attrs), {
197
+ default: withCtx((_, _push2, _parent2, _scopeId) => {
198
+ if (_push2) {
199
+ ssrRenderSlot(_ctx.$slots, "default", {}, null, _push2, _parent2, _scopeId);
200
+ } else {
201
+ return [
202
+ renderSlot(_ctx.$slots, "default")
203
+ ];
204
+ }
205
+ }),
206
+ _: 3
207
+ }), _parent);
208
+ }
209
+ const _sfc_setup$2 = _sfc_main$2.setup;
210
+ _sfc_main$2.setup = (props, ctx) => {
211
+ const ssrContext = useSSRContext();
212
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/globals/ALink.vue");
213
+ return _sfc_setup$2 ? _sfc_setup$2(props, ctx) : void 0;
214
+ };
215
+ const ALink = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["ssrRender", _sfc_ssrRender$2]]);
216
+
217
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
218
+ __name: "AImg",
219
+ props: {
220
+ picture: {},
221
+ loading: { default: "lazy" },
222
+ decoding: {},
223
+ alt: {}
224
+ },
225
+ setup(__props, { expose: __expose }) {
226
+ __expose();
227
+ const props = __props;
228
+ const image = computed(() => {
229
+ if (props.picture.url) {
230
+ return props.picture;
231
+ }
232
+ return img(props.picture) || {};
233
+ });
234
+ const dimensions = computed(() => {
235
+ return imgSizes(image.value);
236
+ });
237
+ const attrs = computed(() => ({
238
+ src: image.value.url,
239
+ alt: image.value.alt || props.alt,
240
+ width: dimensions.value.width || void 0,
241
+ height: dimensions.value.height || void 0,
242
+ loading: props.loading,
243
+ decoding: props.decoding || (dimensions.value.height ? "async" : void 0)
244
+ }));
245
+ const __returned__ = { props, image, dimensions, attrs };
246
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
247
+ return __returned__;
248
+ }
249
+ });
250
+ function _sfc_ssrRender$1(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
251
+ _push(`<img${ssrRenderAttrs(mergeProps($setup.attrs, _attrs))}>`);
252
+ }
253
+ const _sfc_setup$1 = _sfc_main$1.setup;
254
+ _sfc_main$1.setup = (props, ctx) => {
255
+ const ssrContext = useSSRContext();
256
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/globals/AImg.vue");
257
+ return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
258
+ };
259
+ const AImg = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["ssrRender", _sfc_ssrRender$1]]);
260
+
261
+ const rowClassName = "bg-gray-200 rounded-md dark:bg-gray-700";
262
+ const _sfc_main = /* @__PURE__ */ defineComponent({
263
+ __name: "Skeleton",
264
+ props: {
265
+ isBold: { type: Boolean },
266
+ isLarge: { type: Boolean }
267
+ },
268
+ setup(__props, { expose: __expose }) {
269
+ __expose();
270
+ const props = __props;
271
+ const firstRowClassName = computed(() => {
272
+ return `${rowClassName} ${props.isBold ? "h-8 mb-6" : "h-2.5 mb-4"}`;
273
+ });
274
+ const nextRowsClassName = computed(() => {
275
+ return `${rowClassName} ${props.isBold ? "h-5 mb-4" : "h-2 mb-2.5"}`;
276
+ });
277
+ const __returned__ = { props, rowClassName, firstRowClassName, nextRowsClassName };
278
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
279
+ return __returned__;
280
+ }
281
+ });
282
+ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $options) {
283
+ _push(`<div${ssrRenderAttrs(mergeProps({
284
+ role: "status",
285
+ class: ["animate-pulse", $props.isLarge ? "max-w-4xl" : "max-w-sm"]
286
+ }, _attrs))}><div class="${ssrRenderClass([$setup.firstRowClassName, $props.isLarge ? "w-96" : "w-48"])}"></div><div class="${ssrRenderClass([$setup.nextRowsClassName, $props.isLarge ? "max-w-[680px]" : "max-w-[340px]"])}"></div><div class="${ssrRenderClass($setup.nextRowsClassName)}"></div><div class="${ssrRenderClass([$setup.nextRowsClassName, $props.isLarge ? "max-w-[660px]" : "max-w-[330px]"])}"></div><div class="${ssrRenderClass([$setup.nextRowsClassName, $props.isLarge ? "max-w-[600px]" : "max-w-[300px]"])}"></div><div class="${ssrRenderClass([$setup.nextRowsClassName, $props.isLarge ? "max-w-[720px]" : "max-w-[360px]"])}"></div><span class="sr-only">Loading...</span></div>`);
287
+ }
288
+ const _sfc_setup = _sfc_main.setup;
289
+ _sfc_main.setup = (props, ctx) => {
290
+ const ssrContext = useSSRContext();
291
+ (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/lib/components/globals/Skeleton.vue");
292
+ return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
293
+ };
294
+ const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["ssrRender", _sfc_ssrRender]]);
295
+
296
+ const formatPercentage = (value, digits = 1) => {
297
+ return Number.isInteger(value) ? `${value}%` : `${value.toFixed(digits)}%`;
298
+ };
299
+ const createApp = (app) => {
300
+ app.use({
301
+ // eslint-disable-next-line no-shadow
302
+ install: (app2, options) => {
303
+ app2.config.globalProperties.$t = (dict, lang) => {
304
+ return i18n(dict, lang || options?.lang);
305
+ };
306
+ app2.config.globalProperties.$money = formatMoney;
307
+ app2.config.globalProperties.$percentage = formatPercentage;
308
+ app2.config.globalProperties.$settings = globalThis.$storefront.settings;
309
+ app2.config.globalProperties.$apiContext = globalThis.$storefront.apiContext;
310
+ }
311
+ });
312
+ app.component("Fade", Fade);
313
+ app.component("ALink", ALink);
314
+ app.component("AImg", AImg);
315
+ app.component("Skeleton", Skeleton);
316
+ };
317
+
318
+ /**
319
+ * Astro passes `children` as a string of HTML, so we need
320
+ * a wrapper `div` to render that content as VNodes.
321
+ *
322
+ * This is the Vue + JSX equivalent of using `<div v-html="value" />`
323
+ */
324
+ const StaticHtml = defineComponent({
325
+ props: {
326
+ value: String,
327
+ name: String,
328
+ hydrate: {
329
+ type: Boolean,
330
+ default: true,
331
+ },
332
+ },
333
+ setup({ name, value, hydrate }) {
334
+ if (!value) return () => null;
335
+ let tagName = hydrate ? 'astro-slot' : 'astro-static-slot';
336
+ return () => h(tagName, { name, innerHTML: value });
337
+ },
338
+ });
339
+
340
+ function check(Component) {
341
+ return !!Component['ssrRender'] || !!Component['__ssrInlineRender'];
342
+ }
343
+
344
+ async function renderToStaticMarkup(Component, props, slotted, metadata) {
345
+ const slots = {};
346
+ for (const [key, value] of Object.entries(slotted)) {
347
+ slots[key] = () =>
348
+ h(StaticHtml, {
349
+ value,
350
+ name: key === 'default' ? undefined : key,
351
+ // Adjust how this is hydrated only when the version of Astro supports `astroStaticSlot`
352
+ hydrate: metadata.astroStaticSlot ? !!metadata.hydrate : true,
353
+ });
354
+ }
355
+ const app = createSSRApp({ render: () => h(Component, props, slots) });
356
+ await createApp(app);
357
+ const html = await renderToString(app);
358
+ return { html };
359
+ }
360
+
361
+ const _renderer0 = {
362
+ check,
363
+ renderToStaticMarkup,
364
+ supportsAstroStaticSlot: true,
365
+ };
366
+
367
+ const renderers = [Object.assign({"name":"@astrojs/vue","clientEntrypoint":"@astrojs/vue/client.js","serverEntrypoint":"@astrojs/vue/server.js"}, { ssr: _renderer0 }),];
368
+
369
+ export { renderers };
@@ -1 +1 @@
1
- if(!self.define){let e,s={};const r=(r,n)=>(r=new URL(r+".js",n).href,s[r]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=s,document.head.appendChild(e)}else e=r,importScripts(r),s()})).then((()=>{let e=s[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let a={};const l=e=>r(e,o),t={module:{uri:o},exports:a,require:l};s[o]=Promise.all(n.map((e=>t[e]||l(e)))).then((e=>(i(...e),a)))}}define(["./workbox-5e0bf4e4"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"_astro/_...slug_.36cd433d.css",revision:null},{url:"_astro/_plugin-vue_export-helper.ee681fa8.js",revision:null},{url:"_astro/api.a2eda23e.js",revision:null},{url:"_astro/Carousel.926668f2.js",revision:null},{url:"_astro/CartSidebar.eadba34f.js",revision:null},{url:"_astro/client.e6d9439a.js",revision:null},{url:"_astro/firebase-app.93857bfb.js",revision:null},{url:"_astro/format-money.923559cc.js",revision:null},{url:"_astro/HeroSlider.1f0524aa.js",revision:null},{url:"_astro/hoisted.572313d6.js",revision:null},{url:"_astro/img.ec6ba316.js",revision:null},{url:"_astro/index.709ac149.js",revision:null},{url:"_astro/modules-info.48980668.js",revision:null},{url:"_astro/PitchBar.7407eeaf.js",revision:null},{url:"_astro/preload-helper.cf010ec4.js",revision:null},{url:"_astro/Prices.562a32ab.js",revision:null},{url:"_astro/ProductShelf.763cd2ca.js",revision:null},{url:"_astro/SearchModal.cffd4c2d.js",revision:null},{url:"_astro/session-utm.744b0db3.js",revision:null},{url:"_astro/ShopHeader.126900a6.js",revision:null},{url:"_astro/workbox-window.prod.es5.a7b12eab.js",revision:null},{url:"manifest.webmanifest",revision:"2930406ba567d8de217e352cbe071939"}],{ignoreURLParametersMatching:[/.*/]}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/404"))),e.registerRoute(/^\/$/,new e.NetworkFirst,"GET"),e.registerRoute(/\/((?!(?:admin|assets|img)(\/|$))[^.]+)(\.(?!js|css|xml|txt|png|jpg|jpeg|webp|avif|svg|gif)[^.]+)*$/,new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/assets\//,new e.StaleWhileRevalidate({cacheName:"assets",plugins:[]}),"GET"),e.registerRoute(/^\/_image$/,new e.StaleWhileRevalidate({cacheName:"optim-images",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/img\/uploads\/.*\.(?:png|jpg|jpeg|webp|avif|svg|gif)$/,new e.StaleWhileRevalidate({cacheName:"cms-images",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/ecomplus\.io/,new e.NetworkFirst({cacheName:"store-api",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/normal\//,new e.CacheFirst({cacheName:"product-thumbnails",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/big\//,new e.CacheFirst({cacheName:"product-pictures",plugins:[new e.ExpirationPlugin({maxEntries:10,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}),"GET")}));
1
+ if(!self.define){let e,s={};const r=(r,n)=>(r=new URL(r+".js",n).href,s[r]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=s,document.head.appendChild(e)}else e=r,importScripts(r),s()})).then((()=>{let e=s[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(n,i)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let l={};const a=e=>r(e,o),t={module:{uri:o},exports:l,require:a};s[o]=Promise.all(n.map((e=>t[e]||a(e)))).then((e=>(i(...e),l)))}}define(["./workbox-5e0bf4e4"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"_astro/_...slug_.b693913e.css",revision:null},{url:"_astro/_plugin-vue_export-helper.fc5e2f5b.js",revision:null},{url:"_astro/api.39f40cd8.js",revision:null},{url:"_astro/Carousel.0b24e2cb.js",revision:null},{url:"_astro/CartSidebar.2731d333.js",revision:null},{url:"_astro/client.a5d2898b.js",revision:null},{url:"_astro/firebase-app.8c541cce.js",revision:null},{url:"_astro/format-money.86f14860.js",revision:null},{url:"_astro/HeroSlider.a70b2582.js",revision:null},{url:"_astro/hoisted.d90361ee.js",revision:null},{url:"_astro/img.d4891d80.js",revision:null},{url:"_astro/index.33801818.js",revision:null},{url:"_astro/modules-info.ec412b24.js",revision:null},{url:"_astro/PitchBar.13991988.js",revision:null},{url:"_astro/preload-helper.cf010ec4.js",revision:null},{url:"_astro/Prices.cdfa346a.js",revision:null},{url:"_astro/ProductShelf.619c56a5.js",revision:null},{url:"_astro/SearchModal.117a477d.js",revision:null},{url:"_astro/session-utm.744b0db3.js",revision:null},{url:"_astro/ShopHeader.2c2fded7.js",revision:null},{url:"_astro/workbox-window.prod.es5.a7b12eab.js",revision:null},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"2930406ba567d8de217e352cbe071939"}],{ignoreURLParametersMatching:[/.*/]}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/404"))),e.registerRoute(/^\/$/,new e.NetworkFirst,"GET"),e.registerRoute(/\/((?!(?:admin|assets|img)(\/|$))[^.]+)(\.(?!js|css|xml|txt|png|jpg|jpeg|webp|avif|svg|gif)[^.]+)*$/,new e.NetworkFirst({cacheName:"pages",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/assets\//,new e.StaleWhileRevalidate({cacheName:"assets",plugins:[]}),"GET"),e.registerRoute(/^\/_image$/,new e.StaleWhileRevalidate({cacheName:"optim-images",plugins:[new e.ExpirationPlugin({maxEntries:50,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^\/img\/uploads\/.*\.(?:png|jpg|jpeg|webp|avif|svg|gif)$/,new e.StaleWhileRevalidate({cacheName:"cms-images",plugins:[new e.ExpirationPlugin({maxEntries:20,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/ecomplus\.io/,new e.NetworkFirst({cacheName:"store-api",plugins:[new e.ExpirationPlugin({maxEntries:50,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/normal\//,new e.CacheFirst({cacheName:"product-thumbnails",plugins:[new e.ExpirationPlugin({maxEntries:100,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}),"GET"),e.registerRoute(/^https:\/\/(((\w+\.)?ecoms\d)|(ecom[\w-]+(\.\w+)*\.digitaloceanspaces))\.com.*\/imgs\/big\//,new e.CacheFirst({cacheName:"product-pictures",plugins:[new e.ExpirationPlugin({maxEntries:10,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}),"GET")}));
@@ -1,32 +1,21 @@
1
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, u as useId, r as removeCartItem, m as freeShippingFromValue, n as shoppingCart, t as totalItems } from './pages/_...slug_.astro.fd8a229f.mjs';
2
+ import { _ as _export_sfc, o as parseProduct, q as useId, r as removeCartItem, t as freeShippingFromValue, v as shoppingCart, w as totalItems } from './pages/_...slug_.astro.08ba5973.mjs';
3
3
  import { ssrRenderAttrs, ssrRenderSlot, ssrRenderAttr, ssrInterpolate, ssrIncludeBooleanAttr, ssrRenderComponent, ssrRenderList } from 'vue/server-renderer';
4
- import { P as Prices } from './pages/index.astro.dab642f5.mjs';
4
+ import { P as Prices } from './pages/index.astro.079f316a.mjs';
5
5
  import { name, img } from '@ecomplus/utils';
6
- import 'kleur/colors';
7
- import 'node:fs/promises';
8
- import 'node:path';
9
- import 'node:url';
10
- import 'http-cache-semantics';
11
- import 'node:os';
12
- import 'image-size';
13
- import 'magic-string';
14
- import 'mime';
15
- import 'node:stream';
16
- import './astro.bb5b7191.mjs';
17
- import 'path-to-regexp';
18
- import 'cookie';
19
6
  import '@astrojs/internal-helpers/path';
20
- import 'node:fs';
21
- import 'node:http';
22
- import 'node:tls';
23
- import 'string-width';
7
+ import './astro.440a2e08.mjs';
8
+ import 'clsx';
24
9
  import 'html-escaper';
25
10
  import '@cloudcommerce/api';
26
11
  import 'node:events';
12
+ import 'node:fs';
13
+ import 'node:path';
27
14
  import '@cloudcommerce/config';
28
15
  import 'ultrahtml';
29
- /* empty css */import '@vueuse/core';
16
+ /* empty css */import 'image-size';
17
+ import 'mime';
18
+ import '@vueuse/core';
30
19
  import '@headlessui/vue';
31
20
 
32
21
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
@@ -307,7 +296,9 @@ function _sfc_ssrRender$1(_ctx, _push, _parent, _attrs, $props, $setup, $data, $
307
296
  _push(ssrRenderComponent($setup["Prices"], {
308
297
  "base-price": $setup.cartItem.base_price,
309
298
  price: $setup.finalPrice,
310
- class: "px-4 py-2.5 text-[95%]"
299
+ "has-cashback": false,
300
+ "has-price-options": false,
301
+ class: "px-4 py-2.5 text-[95%] text-right"
311
302
  }, null, _parent));
312
303
  _push(`</div></article>`);
313
304
  }
@@ -360,11 +351,10 @@ function _sfc_ssrRender(_ctx, _push, _parent, _attrs, $props, $setup, $data, $op
360
351
  }, null, _parent));
361
352
  _push(`</li>`);
362
353
  });
363
- _push(`<!--]--></ul></article><footer class="px-5 pt-4 pb-3 ring-2 ring-black/5 z-10"><div class="grid grid-cols-2 gap-3 items-center text-right"><div>${ssrInterpolate("Subtotal")}</div>`);
354
+ _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>`);
364
355
  _push(ssrRenderComponent($setup["Prices"], {
365
356
  price: $setup.shoppingCart.subtotal,
366
- "is-literal": true,
367
- class: "text-lg"
357
+ class: "col-span-3 text-lg"
368
358
  }, null, _parent));
369
359
  _push(`</div>`);
370
360
  _push(ssrRenderComponent($setup["CheckoutLink"], { class: "ui-btn-lg ui-btn-primary w-full text-right my-2.5" }, {
@@ -1,31 +1,20 @@
1
1
  import { mergeProps, useSSRContext } from 'vue';
2
2
  import { ssrRenderAttrs } from 'vue/server-renderer';
3
- import { _ as _export_sfc } from './pages/_...slug_.astro.fd8a229f.mjs';
4
- import 'kleur/colors';
5
- import 'node:fs/promises';
6
- import 'node:path';
7
- import 'node:url';
8
- import 'http-cache-semantics';
9
- import 'node:os';
10
- import 'image-size';
11
- import 'magic-string';
12
- import 'mime';
13
- import 'node:stream';
14
- import './astro.bb5b7191.mjs';
15
- import 'path-to-regexp';
16
- import 'cookie';
3
+ import { _ as _export_sfc } from './pages/_...slug_.astro.08ba5973.mjs';
17
4
  import '@astrojs/internal-helpers/path';
18
- import 'node:fs';
19
- import 'node:http';
20
- import 'node:tls';
21
- import 'string-width';
5
+ import './astro.440a2e08.mjs';
6
+ import 'clsx';
22
7
  import 'html-escaper';
23
8
  import '@cloudcommerce/api';
24
9
  import 'node:events';
10
+ import 'node:fs';
11
+ import 'node:path';
25
12
  import '@cloudcommerce/config';
26
13
  import '@ecomplus/utils';
27
14
  import 'ultrahtml';
28
- /* empty css */import '@vueuse/core';
15
+ /* empty css */import 'image-size';
16
+ import 'mime';
17
+ import '@vueuse/core';
29
18
  import '@headlessui/vue';
30
19
 
31
20
  const _sfc_main = {};
@@ -0,0 +1,24 @@
1
+ export { renderers } from '../renderers.mjs';
2
+ export { onRequest } from '../_empty-middleware.mjs';
3
+ import 'vue';
4
+ import 'vue/server-renderer';
5
+ import '@ecomplus/utils';
6
+ import './pages/_...slug_.astro.08ba5973.mjs';
7
+ import '@astrojs/internal-helpers/path';
8
+ import './astro.440a2e08.mjs';
9
+ import 'clsx';
10
+ import 'html-escaper';
11
+ import '@cloudcommerce/api';
12
+ import 'node:events';
13
+ import 'node:fs';
14
+ import 'node:path';
15
+ import '@cloudcommerce/config';
16
+ import 'ultrahtml';
17
+ /* empty css */import 'image-size';
18
+ import 'mime';
19
+ import '@vueuse/core';
20
+ import '@headlessui/vue';
21
+
22
+ const page = () => import('./pages/_...slug_.astro.08ba5973.mjs').then(n => n.x);
23
+
24
+ export { page };
@@ -0,0 +1,24 @@
1
+ export { renderers } from '../renderers.mjs';
2
+ export { onRequest } from '../_empty-middleware.mjs';
3
+ import 'vue';
4
+ import 'vue/server-renderer';
5
+ import '@ecomplus/utils';
6
+ import './pages/_...slug_.astro.08ba5973.mjs';
7
+ import '@astrojs/internal-helpers/path';
8
+ import './astro.440a2e08.mjs';
9
+ import 'clsx';
10
+ import 'html-escaper';
11
+ import '@cloudcommerce/api';
12
+ import 'node:events';
13
+ import 'node:fs';
14
+ import 'node:path';
15
+ import '@cloudcommerce/config';
16
+ import 'ultrahtml';
17
+ /* empty css */import 'image-size';
18
+ import 'mime';
19
+ import '@vueuse/core';
20
+ import '@headlessui/vue';
21
+
22
+ const page = () => import('./pages/account.astro.f11f26f3.mjs');
23
+
24
+ export { page };