cloudcommerce 0.26.3 → 0.26.5

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 (128) hide show
  1. package/.github/workflows/create-release.yml +1 -1
  2. package/.github/workflows/{test-e2e.yml → test-apps.yml} +19 -5
  3. package/CHANGELOG.md +31 -0
  4. package/ecomplus-stores/barra-doce/functions/many/package.json +3 -3
  5. package/ecomplus-stores/barra-doce/functions/ssr/package.json +6 -6
  6. package/ecomplus-stores/barra-doce/functions/with-apps/package.json +3 -3
  7. package/ecomplus-stores/barra-doce/package.json +2 -2
  8. package/ecomplus-stores/iluminim/functions/many/package.json +3 -3
  9. package/ecomplus-stores/iluminim/functions/ssr/package.json +6 -6
  10. package/ecomplus-stores/iluminim/functions/with-apps/package.json +3 -3
  11. package/ecomplus-stores/iluminim/package.json +2 -2
  12. package/package.json +7 -7
  13. package/packages/api/package.json +1 -1
  14. package/packages/apps/affilate-program/package.json +1 -1
  15. package/packages/apps/correios/package.json +2 -2
  16. package/packages/apps/custom-payment/package.json +1 -1
  17. package/packages/apps/custom-shipping/package.json +2 -2
  18. package/packages/apps/datafrete/package.json +1 -1
  19. package/packages/apps/discounts/package.json +1 -1
  20. package/packages/apps/emails/package.json +1 -1
  21. package/packages/apps/fb-conversions/package.json +1 -1
  22. package/packages/apps/flash-courier/package.json +1 -1
  23. package/packages/apps/frenet/package.json +4 -2
  24. package/packages/apps/frenet/scripts/tests.sh +7 -0
  25. package/packages/apps/frenet/tests/calculate-shipping.test.mjs +37 -0
  26. package/packages/apps/galaxpay/package.json +1 -1
  27. package/packages/apps/google-analytics/package.json +1 -1
  28. package/packages/apps/jadlog/package.json +1 -1
  29. package/packages/apps/loyalty-points/package.json +2 -2
  30. package/packages/apps/melhor-envio/package.json +1 -1
  31. package/packages/apps/mercadopago/package.json +2 -2
  32. package/packages/apps/mercadopago/scripts/tests.sh +7 -0
  33. package/packages/apps/pagarme/package.json +1 -1
  34. package/packages/apps/paghiper/package.json +1 -1
  35. package/packages/apps/pix/package.json +1 -1
  36. package/packages/apps/tiny-erp/package.json +1 -1
  37. package/packages/apps/webhooks/package.json +1 -1
  38. package/packages/cli/lib/cli.js +3 -0
  39. package/packages/cli/package.json +1 -1
  40. package/packages/cli/src/cli.ts +4 -0
  41. package/packages/config/package.json +1 -1
  42. package/packages/emails/package.json +3 -3
  43. package/packages/eslint/package.json +4 -4
  44. package/packages/events/package.json +1 -1
  45. package/packages/feeds/package.json +1 -1
  46. package/packages/firebase/package.json +2 -2
  47. package/packages/i18n/package.json +1 -1
  48. package/packages/modules/package.json +2 -2
  49. package/packages/passport/package.json +1 -1
  50. package/packages/ssr/package.json +2 -2
  51. package/packages/storefront/astro.config.mjs +33 -23
  52. package/packages/storefront/dist/client/_astro/{Carousel.0b24e2cb.js → Carousel.9ad2e1dc.js} +1 -1
  53. package/packages/storefront/dist/client/_astro/{CartSidebar.2731d333.js → CartSidebar.a6c6a885.js} +1 -1
  54. package/packages/storefront/dist/client/_astro/{HeroSlider.a70b2582.js → HeroSlider.ee1e6200.js} +1 -1
  55. package/packages/storefront/dist/client/_astro/{PitchBar.13991988.js → PitchBar.6111676e.js} +1 -1
  56. package/packages/storefront/dist/client/_astro/{Prices.cdfa346a.js → Prices.04ff8fce.js} +1 -1
  57. package/packages/storefront/dist/client/_astro/{ProductShelf.619c56a5.js → ProductShelf.085721d6.js} +1 -1
  58. package/packages/storefront/dist/client/_astro/SearchModal.cffd4c2d.js +1 -0
  59. package/packages/storefront/dist/client/_astro/{ShopHeader.2c2fded7.js → ShopHeader.7e485e35.js} +2 -2
  60. package/packages/storefront/dist/client/_astro/{_plugin-vue_export-helper.fc5e2f5b.js → _plugin-vue_export-helper.ee681fa8.js} +1 -1
  61. package/packages/storefront/dist/client/_astro/{api.39f40cd8.js → api.a2eda23e.js} +1 -1
  62. package/packages/storefront/dist/client/_astro/client.e6d9439a.js +1 -0
  63. package/packages/storefront/dist/client/_astro/{format-money.86f14860.js → format-money.923559cc.js} +1 -1
  64. package/packages/storefront/dist/client/_astro/hoisted.85fdcf03.js +1 -0
  65. package/packages/storefront/dist/client/_astro/{img.d4891d80.js → img.ec6ba316.js} +1 -1
  66. package/packages/storefront/dist/client/_astro/{index.33801818.js → index.ea57babe.js} +1 -1
  67. package/packages/storefront/dist/client/_astro/{modules-info.ec412b24.js → modules-info.e5d77bf3.js} +1 -1
  68. package/packages/storefront/dist/client/sw.js +1 -1
  69. package/packages/storefront/dist/server/chunks/{CartSidebar.cca9fdd3.mjs → CartSidebar.41b20543.mjs} +20 -9
  70. package/packages/storefront/dist/server/chunks/{SearchModal.a680efae.mjs → SearchModal.5f5e6a15.mjs} +19 -8
  71. package/packages/storefront/dist/server/chunks/_...4a2548d2.mjs +35 -0
  72. package/packages/storefront/dist/server/chunks/account@_@astro.204fba92.mjs +35 -0
  73. package/packages/storefront/dist/server/chunks/{astro.440a2e08.mjs → astro.708269c6.mjs} +1859 -149
  74. package/packages/storefront/dist/server/chunks/endpoint@_@js.11be892a.mjs +35 -0
  75. package/packages/storefront/dist/server/chunks/index@_@astro.19e0f502.mjs +35 -0
  76. package/packages/storefront/dist/server/chunks/index@_@astro.b37a6ac9.mjs +35 -0
  77. package/packages/storefront/dist/{client/chunks/pages/_...slug_.astro.ec6517ba.mjs → server/chunks/pages/_...slug_.astro.36e8882b.mjs} +273 -331
  78. package/packages/storefront/dist/{client/chunks/pages/account.astro.3d2605e6.mjs → server/chunks/pages/account.astro.32e7e6ef.mjs} +10 -2
  79. package/packages/storefront/dist/server/chunks/pages/endpoint.js.f7a896a1.mjs +119 -0
  80. package/packages/storefront/dist/server/chunks/pages/{index.astro.079f316a.mjs → index.astro.3145bd93.mjs} +2 -3
  81. package/packages/storefront/dist/server/chunks/pages/{~fallback.astro.01594623.mjs → ~fallback.astro.ba4c2475.mjs} +20 -9
  82. package/packages/storefront/dist/server/chunks/~fallback@_@astro.6bb4c4b4.mjs +35 -0
  83. package/packages/storefront/dist/server/entry.mjs +2359 -1166
  84. package/packages/storefront/dist/server/renderers.mjs +21 -10
  85. package/packages/storefront/package.json +4 -4
  86. package/packages/storefront/src/lib/components/ContentClearfix.astro +12 -0
  87. package/packages/storefront/src/lib/composables/use-breadcrumbs.ts +84 -0
  88. package/packages/storefront/src/lib/composables/use-shared-data.ts +14 -5
  89. package/packages/storefront/src/lib/content.d.ts +3 -3
  90. package/packages/storefront/src/lib/layouts/BaseHead.astro +3 -0
  91. package/packages/storefront/src/lib/layouts/use-page-main.ts +23 -2
  92. package/packages/storefront/src/lib/ssr-context.ts +17 -5
  93. package/packages/test-base/package.json +1 -1
  94. package/packages/test-base/payloads/calculate-shipping.json +4 -4
  95. package/packages/test-base/payloads/create-transaction.json +1 -1
  96. package/packages/types/package.json +1 -1
  97. package/pnpm-workspace.yaml +0 -2
  98. package/turbo.json +1 -1
  99. package/packages/storefront/dist/client/_astro/SearchModal.117a477d.js +0 -1
  100. package/packages/storefront/dist/client/_astro/client.a5d2898b.js +0 -1
  101. package/packages/storefront/dist/client/_astro/hoisted.d90361ee.js +0 -1
  102. package/packages/storefront/dist/client/_empty-middleware.mjs +0 -3
  103. package/packages/storefront/dist/client/chunks/CartSidebar.0ce1e999.mjs +0 -382
  104. package/packages/storefront/dist/client/chunks/SearchModal.f603145b.mjs +0 -32
  105. package/packages/storefront/dist/client/chunks/astro.11be33ee.mjs +0 -1424
  106. package/packages/storefront/dist/client/chunks/pages/index.astro.8ad03206.mjs +0 -1650
  107. package/packages/storefront/dist/client/chunks/pages/~fallback.astro.d31d20b4.mjs +0 -54
  108. package/packages/storefront/dist/client/chunks/sharp.3f154e38.mjs +0 -74
  109. package/packages/storefront/dist/client/manifest.e39eb543.mjs +0 -79
  110. package/packages/storefront/dist/client/pages/_---slug_.astro.mjs +0 -23
  111. package/packages/storefront/dist/client/pages/app/account.astro.mjs +0 -23
  112. package/packages/storefront/dist/client/pages/app.astro.mjs +0 -23
  113. package/packages/storefront/dist/client/pages/index.astro.mjs +0 -23
  114. package/packages/storefront/dist/client/pages/~fallback.astro.mjs +0 -23
  115. package/packages/storefront/dist/client/registerSW.js +0 -1
  116. package/packages/storefront/dist/client/renderers.mjs +0 -369
  117. package/packages/storefront/dist/server/chunks/_...f7cdc954.mjs +0 -24
  118. package/packages/storefront/dist/server/chunks/account@_@astro.fa8b921b.mjs +0 -24
  119. package/packages/storefront/dist/server/chunks/image-endpoint@_@js.802bf648.mjs +0 -24
  120. package/packages/storefront/dist/server/chunks/index@_@astro.a122f091.mjs +0 -24
  121. package/packages/storefront/dist/server/chunks/index@_@astro.da98dcbe.mjs +0 -24
  122. package/packages/storefront/dist/server/chunks/pages/_...slug_.astro.08ba5973.mjs +0 -3930
  123. package/packages/storefront/dist/server/chunks/pages/account.astro.f11f26f3.mjs +0 -15
  124. package/packages/storefront/dist/server/chunks/pages/image-endpoint.js.a9374d3e.mjs +0 -238
  125. package/packages/storefront/dist/server/chunks/sharp.52841bb4.mjs +0 -75
  126. package/packages/storefront/dist/server/chunks/~fallback@_@astro.876a97c5.mjs +0 -24
  127. package/packages/storefront/dist/server/manifest.12e7a10c.mjs +0 -561
  128. /package/packages/storefront/dist/client/{workbox-5e0bf4e4.js → workbox-1b331600.js} +0 -0
@@ -1,369 +0,0 @@
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,24 +0,0 @@
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 };
@@ -1,24 +0,0 @@
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 };
@@ -1,24 +0,0 @@
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/image-endpoint.js.a9374d3e.mjs');
23
-
24
- export { page };
@@ -1,24 +0,0 @@
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/index.astro.079f316a.mjs').then(n => n.i);
23
-
24
- export { page };
@@ -1,24 +0,0 @@
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/index.astro.079f316a.mjs').then(n => n.a);
23
-
24
- export { page };