@enyxs/wikex-components 0.11.3 → 0.11.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1326 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // src/products.ts
32
+ var products_exports = {};
33
+ __export(products_exports, {
34
+ ProductDetailSkeleton: () => ProductDetailSkeleton,
35
+ ProductDetailView: () => ProductDetailView,
36
+ ProductListing: () => ProductListing,
37
+ ProductListingSkeleton: () => ProductListingSkeleton
38
+ });
39
+ module.exports = __toCommonJS(products_exports);
40
+
41
+ // src/wikex/products/public-view.tsx
42
+ var import_jsx_runtime4 = require("react/jsx-runtime");
43
+ var import_link3 = __toESM(require("next/link.js"));
44
+ var import_react = require("react");
45
+ var import_styled_components6 = require("styled-components");
46
+
47
+ // src/commodity-original/components/Breadcrumb/index.tsx
48
+ var import_link = __toESM(require("next/link.js"));
49
+
50
+ // src/wikex/assets/products/chevron-right.svg
51
+ var chevron_right_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDE0IDE0IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNNS4yNSAzLjVMOC43NSA3TDUuMjUgMTAuNSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS4xNjY2NyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=";
52
+
53
+ // src/commodity-original/components/Breadcrumb/style.ts
54
+ var import_styled_components = require("styled-components");
55
+ var breadcrumbText = `
56
+ font-family: var(--font-manrope), Arial, Helvetica, sans-serif;
57
+ font-size: 12px;
58
+ font-weight: 500;
59
+ line-height: 16px;
60
+ white-space: nowrap;
61
+ @media (max-width: 767px) {
62
+ font-size: 10px;
63
+ line-height: 14px;
64
+ }
65
+ `;
66
+ var BreadcrumbNav = import_styled_components.styled.nav.withConfig({
67
+ componentId: "sc-9c96c0b1-0"
68
+ })([
69
+ `display:flex;max-width:100%;align-items:center;@media (max-width:767px){overflow-x:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}}`
70
+ ]);
71
+ var BreadcrumbList = import_styled_components.styled.ol.withConfig({
72
+ componentId: "sc-9c96c0b1-1"
73
+ })([
74
+ `display:flex;margin:0;padding:0;align-items:center;gap:4px;list-style:none;`
75
+ ]);
76
+ var BreadcrumbItem = import_styled_components.styled.li.withConfig({
77
+ componentId: "sc-9c96c0b1-2"
78
+ })([
79
+ `display:flex;align-items:center;gap:4px;`
80
+ ]);
81
+ var BreadcrumbLink = import_styled_components.styled.a.withConfig({
82
+ componentId: "sc-9c96c0b1-3"
83
+ })([
84
+ ``,
85
+ ` color:`,
86
+ `;&:hover,&:focus-visible{color:`,
87
+ `;}&:focus-visible{outline:2px solid #f9bb3a;outline-offset:2px;}`
88
+ ], breadcrumbText, ({ theme }) => theme.colors.text.placeholder, ({ theme }) => theme.colors.text.primary);
89
+ var BreadcrumbCurrent = import_styled_components.styled.span.withConfig({
90
+ componentId: "sc-9c96c0b1-4"
91
+ })([
92
+ ``,
93
+ ` color:`,
94
+ `;`
95
+ ], breadcrumbText, ({ theme }) => theme.colors.text.primary);
96
+ var BreadcrumbSeparator = import_styled_components.styled.span.withConfig({
97
+ componentId: "sc-9c96c0b1-5"
98
+ })([
99
+ `display:inline-flex;width:14px;height:14px;align-items:center;justify-content:center;color:`,
100
+ `;background:currentColor;mask:url("`,
101
+ `") center / contain no-repeat;-webkit-mask:url("`,
102
+ `") center / contain no-repeat;`
103
+ ], ({ theme }) => theme.colors.text.placeholder, chevron_right_default, chevron_right_default);
104
+
105
+ // src/commodity-original/components/Breadcrumb/index.tsx
106
+ var import_jsx_runtime = require("react/jsx-runtime");
107
+ function Breadcrumb({
108
+ items,
109
+ ariaLabel = "Breadcrumb",
110
+ className
111
+ }) {
112
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbNav, { "aria-label": ariaLabel, className, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbList, { children: items.map((item, index) => {
113
+ const isCurrent = index === items.length - 1;
114
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(BreadcrumbItem, { children: [
115
+ isCurrent ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbCurrent, { "aria-current": "page", children: item.label }) : item.href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbLink, { as: import_link.default, href: item.href, children: item.label }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbCurrent, { children: item.label }),
116
+ !isCurrent && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BreadcrumbSeparator, { "aria-hidden": "true" })
117
+ ] }, `${item.label}-${index}`);
118
+ }) }) });
119
+ }
120
+
121
+ // src/commodity-original/components/Pagination/index.tsx
122
+ var import_react_i18next = require("react-i18next");
123
+
124
+ // src/commodity-original/components/Pagination/style.ts
125
+ var import_styled_components2 = require("styled-components");
126
+ var PaginationNav = import_styled_components2.styled.nav.withConfig({
127
+ componentId: "sc-522a1750-0"
128
+ })([
129
+ `display:flex;justify-content:center;`
130
+ ]);
131
+ var PaginationList = import_styled_components2.styled.ul.withConfig({
132
+ componentId: "sc-522a1750-1"
133
+ })([
134
+ `display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`
135
+ ]);
136
+ var PaginationItem = import_styled_components2.styled.li.withConfig({
137
+ componentId: "sc-522a1750-2"
138
+ })([
139
+ `display:flex;`
140
+ ]);
141
+ var PaginationButton = import_styled_components2.styled.button.withConfig({
142
+ componentId: "sc-522a1750-3"
143
+ })([
144
+ `display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
145
+ `;border-radius:4px;padding:4px;color:`,
146
+ `;background:`,
147
+ `;font-family:var(--font-manrope),Arial,Helvetica,sans-serif;font-size:14px;font-weight:500;line-height:18px;cursor:pointer;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease;&[data-control]{border-color:transparent;background:transparent;}&[data-active]{border-color:`,
148
+ `;color:`,
149
+ `;background:`,
150
+ `;}&:not(:disabled):hover{color:`,
151
+ `;background:`,
152
+ `;}&[data-active]:not(:disabled):hover{background:`,
153
+ `;}&:disabled{cursor:not-allowed;}&:focus-visible{outline:2px solid `,
154
+ `;outline-offset:2px;}`
155
+ ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.background.canvas, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.foreground, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.primary);
156
+ var PaginationArrow = import_styled_components2.styled.span.withConfig({
157
+ componentId: "sc-522a1750-4"
158
+ })([
159
+ `width:16px;height:16px;background:currentColor;mask:url("`,
160
+ `") center / contain no-repeat;-webkit-mask:url("`,
161
+ `") center / contain no-repeat;&[data-direction="previous"]{transform:scaleX(-1);}`
162
+ ], chevron_right_default, chevron_right_default);
163
+
164
+ // src/commodity-original/components/Pagination/index.tsx
165
+ var import_jsx_runtime2 = require("react/jsx-runtime");
166
+ function getPaginationItems(page, pageCount, siblingCount) {
167
+ const maxVisibleItems = siblingCount * 2 + 5;
168
+ if (pageCount <= maxVisibleItems) {
169
+ return Array.from({ length: pageCount }, (_, index) => index + 1);
170
+ }
171
+ const leftSibling = Math.max(page - siblingCount, 2);
172
+ const rightSibling = Math.min(page + siblingCount, pageCount - 1);
173
+ const items = [1];
174
+ if (leftSibling > 2) {
175
+ items.push("ellipsis");
176
+ }
177
+ for (let value = leftSibling; value <= rightSibling; value += 1) {
178
+ items.push(value);
179
+ }
180
+ if (rightSibling < pageCount - 1) {
181
+ items.push("ellipsis");
182
+ }
183
+ items.push(pageCount);
184
+ return items;
185
+ }
186
+ function Pagination({
187
+ page,
188
+ pageCount,
189
+ onPageChange,
190
+ siblingCount = 1,
191
+ ariaLabel,
192
+ labels,
193
+ className
194
+ }) {
195
+ const { t } = (0, import_react_i18next.useTranslation)();
196
+ const safePageCount = Math.max(1, Math.floor(pageCount));
197
+ const currentPage = Math.min(Math.max(1, Math.floor(page)), safePageCount);
198
+ const items = getPaginationItems(currentPage, safePageCount, siblingCount);
199
+ const hasPreviousPage = currentPage > 1;
200
+ const hasNextPage = currentPage < safePageCount;
201
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
202
+ PaginationNav,
203
+ {
204
+ "aria-label": ariaLabel ?? t("pagination.navigation"),
205
+ className,
206
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(PaginationList, { children: [
207
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
208
+ PaginationButton,
209
+ {
210
+ "aria-label": labels?.previous ?? t("pagination.previous"),
211
+ "data-control": "previous",
212
+ disabled: !hasPreviousPage,
213
+ onClick: () => onPageChange(currentPage - 1),
214
+ type: "button",
215
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationArrow, { "data-direction": "previous" })
216
+ }
217
+ ) }),
218
+ items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationItem, { children: item === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationButton, { "aria-hidden": "true", disabled: true, tabIndex: -1, type: "button", children: "\u2026" }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
219
+ PaginationButton,
220
+ {
221
+ "aria-current": item === currentPage ? "page" : void 0,
222
+ "aria-label": item === currentPage ? labels?.current(item) ?? t("pagination.current", { page: item }) : labels?.page(item) ?? t("pagination.page", { page: item }),
223
+ "data-active": item === currentPage || void 0,
224
+ onClick: () => onPageChange(item),
225
+ type: "button",
226
+ children: item
227
+ }
228
+ ) }, `${item}-${index}`)),
229
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
230
+ PaginationButton,
231
+ {
232
+ "aria-label": labels?.next ?? t("pagination.next"),
233
+ "data-control": "next",
234
+ disabled: !hasNextPage,
235
+ onClick: () => onPageChange(currentPage + 1),
236
+ type: "button",
237
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PaginationArrow, { "data-direction": "next" })
238
+ }
239
+ ) })
240
+ ] })
241
+ }
242
+ );
243
+ }
244
+
245
+ // src/wikex/assets/products/related-products-arrow.svg
246
+ var related_products_arrow_default = "data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGlkPSJJY29uIC8gYXJyb3ciPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTIuNjY2NyA4TDMuMzMzMzMgOE04IDEyLjY2NjdMMTIuNjY2NyA4TDggMy4zMzMzMyIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L3N2Zz4K";
247
+
248
+ // src/wikex/assets/products/product-card-arrow.svg
249
+ var product_card_arrow_default = "data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xNSA4TDEgOE04IDE1TDE1IDhMOCAxIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";
250
+
251
+ // src/commodity-original/components/ProductCard/style.ts
252
+ var import_link2 = __toESM(require("next/link.js"));
253
+ var import_image = __toESM(require("next/image.js"));
254
+ var import_styled_components3 = require("styled-components");
255
+ var cardSurface = (0, import_styled_components3.css)([
256
+ `display:flex;width:100%;height:100%;max-width:329px;flex-direction:column;color:`,
257
+ `;transition:transform 160ms ease;&:hover{transform:translateY(-2px);}@media (max-width:599px){max-width:100%;}`
258
+ ], ({ theme }) => theme.colors.text.primary);
259
+ var ProductCardArticle = import_styled_components3.styled.article.withConfig({
260
+ componentId: "sc-232625b5-0"
261
+ })([
262
+ ``,
263
+ ``
264
+ ], cardSurface);
265
+ var ProductCardLink = (0, import_styled_components3.styled)(import_link2.default).withConfig({
266
+ componentId: "sc-232625b5-1"
267
+ })([
268
+ ``,
269
+ ` text-decoration:none;&:focus-visible{outline:2px solid `,
270
+ `;outline-offset:3px;}`
271
+ ], cardSurface, ({ theme }) => theme.colors.accent.primary);
272
+ var ProductCardImagePanel = import_styled_components3.styled.div.withConfig({
273
+ componentId: "sc-232625b5-2"
274
+ })([
275
+ `position:relative;width:100%;aspect-ratio:1;border-radius:8px 8px 0 0;&::before{position:absolute;z-index:1;inset:41.2879% 0 0;border-radius:8px 8px 0 0;background:rgb(249 187 58 / 40%);box-shadow:-4px 4px 10px rgb(0 0 0 / 10%);content:"";}@media (max-width:599px){&::before{inset:43.2727% 0 -14.5833%;}}`
276
+ ]);
277
+ var ProductCardImage = (0, import_styled_components3.styled)(import_image.default).withConfig({
278
+ componentId: "sc-232625b5-3"
279
+ })([
280
+ `z-index:2;object-fit:cover;pointer-events:none;`
281
+ ]);
282
+ var ProductCardCopy = import_styled_components3.styled.div.withConfig({
283
+ componentId: "sc-232625b5-4"
284
+ })([
285
+ `display:flex;width:100%;flex:1 0 auto;flex-direction:column;gap:4px;padding:12px 16px 24px;border-radius:0 0 8px 8px;background:`,
286
+ `;box-shadow:-4px 4px 10px rgb(0 0 0 / 10%);@media (max-width:599px){padding:12px 16px 24px;align-items:center;z-index:2;}`
287
+ ], ({ theme }) => theme.colors.background.card);
288
+ var ProductCardTitleRow = import_styled_components3.styled.div.withConfig({
289
+ componentId: "sc-232625b5-5"
290
+ })([
291
+ `display:flex;width:100%;align-items:center;gap:8px;`
292
+ ]);
293
+ var ProductCardTitle = import_styled_components3.styled.h3.withConfig({
294
+ componentId: "sc-232625b5-6"
295
+ })([
296
+ `flex:1 1 0;min-width:0;margin:0;overflow:hidden;color:`,
297
+ `;font-size:20px;font-weight:700;line-height:30px;text-overflow:ellipsis;white-space:nowrap;@media (max-width:599px){font-size:14px;line-height:18px;}`
298
+ ], ({ theme }) => theme.colors.text.primary);
299
+ var ProductCardArrow = import_styled_components3.styled.span.withConfig({
300
+ componentId: "sc-232625b5-7"
301
+ })([
302
+ `width:24px;height:24px;flex:0 0 24px;color:`,
303
+ `;background:currentColor;mask:url("`,
304
+ `") center / 16px 16px no-repeat;-webkit-mask:url("`,
305
+ `") center / 16px 16px no-repeat;@media (max-width:599px){width:18px;height:18px;flex-basis:18px;mask-image:url("`,
306
+ `");mask-size:contain;-webkit-mask-image:url("`,
307
+ `");-webkit-mask-size:contain;}`
308
+ ], ({ theme }) => theme.colors.accent.primary, product_card_arrow_default, product_card_arrow_default, related_products_arrow_default, related_products_arrow_default);
309
+ var ProductCardDescription = import_styled_components3.styled.p.withConfig({
310
+ componentId: "sc-232625b5-8"
311
+ })([
312
+ `display:-webkit-box;width:100%;overflow:hidden;margin:0;color:`,
313
+ `;font-size:16px;font-weight:500;line-height:22px;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:3;@media (max-width:599px){font-size:12px;line-height:16px;}`
314
+ ], ({ theme }) => theme.colors.text.content);
315
+
316
+ // src/commodity-original/components/ProductCard/index.tsx
317
+ var import_jsx_runtime3 = require("react/jsx-runtime");
318
+ function ProductCardContent({
319
+ description,
320
+ image,
321
+ imageAlt = "",
322
+ imageFit = "cover",
323
+ title
324
+ }) {
325
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
326
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProductCardImagePanel, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
327
+ ProductCardImage,
328
+ {
329
+ alt: imageAlt,
330
+ fill: true,
331
+ sizes: "(max-width: 767px) calc(100vw - 48px), 329px",
332
+ src: image,
333
+ style: imageFit === "contain" ? { objectFit: "contain", padding: 24 } : void 0
334
+ }
335
+ ) }),
336
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(ProductCardCopy, { children: [
337
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(ProductCardTitleRow, { children: [
338
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProductCardTitle, { children: title }),
339
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProductCardArrow, { "aria-hidden": "true" })
340
+ ] }),
341
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProductCardDescription, { children: description })
342
+ ] })
343
+ ] });
344
+ }
345
+ function ProductCard({
346
+ className,
347
+ description,
348
+ href,
349
+ image,
350
+ imageAlt,
351
+ imageFit,
352
+ title
353
+ }) {
354
+ const content = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
355
+ ProductCardContent,
356
+ {
357
+ description,
358
+ image,
359
+ imageAlt,
360
+ imageFit,
361
+ title
362
+ }
363
+ );
364
+ if (href) {
365
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProductCardLink, { "aria-label": title, className, href, children: content });
366
+ }
367
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ProductCardArticle, { className, children: content });
368
+ }
369
+
370
+ // src/commodity-original/styles/colors.ts
371
+ var cssVariableColors = {
372
+ background: {
373
+ canvas: "var(--color-background-canvas)",
374
+ card: "var(--color-background-card)",
375
+ deep: "var(--color-background-deep)",
376
+ hover: "var(--color-background-hover)",
377
+ input: "var(--color-background-input)",
378
+ warm: "var(--color-background-warm)",
379
+ popup: "var(--color-background-popup)"
380
+ },
381
+ text: {
382
+ primary: "var(--color-text-primary)",
383
+ secondary: "var(--color-text-secondary)",
384
+ placeholder: "var(--color-text-placeholder)",
385
+ content: "var(--color-text-content)"
386
+ },
387
+ action: {
388
+ primaryBackground: "var(--color-action-primary-background)",
389
+ primaryForeground: "var(--color-action-primary-foreground)",
390
+ primaryHover: "var(--color-action-primary-hover)"
391
+ },
392
+ accent: {
393
+ primary: "var(--color-accent-primary)",
394
+ foreground: "var(--color-accent-foreground)",
395
+ deep: "var(--color-accent-deep)"
396
+ },
397
+ border: {
398
+ subtle: "var(--color-border-subtle)",
399
+ line: "var(--color-border-line)"
400
+ },
401
+ informationHero: {
402
+ start: "var(--color-information-hero-start)",
403
+ middle: "var(--color-information-hero-middle)",
404
+ foreground: "var(--color-information-hero-foreground)",
405
+ placeholder: "var(--color-information-hero-placeholder)"
406
+ },
407
+ datePicker: {
408
+ selected: "var(--color-date-picker-selected)",
409
+ range: "var(--color-date-picker-range)",
410
+ rangeForeground: "var(--color-date-picker-range-foreground)"
411
+ },
412
+ effect: {
413
+ popupShadow: "var(--color-effect-popup-shadow)"
414
+ }
415
+ };
416
+
417
+ // src/commodity-original/styles/theme.ts
418
+ var appTheme = {
419
+ colors: cssVariableColors
420
+ };
421
+
422
+ // src/wikex/assets/products/logo-original.png
423
+ var logo_original_default = "data:image/png;base64,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";
424
+
425
+ // src/wikex/products/list-style.ts
426
+ var import_styled_components4 = require("styled-components");
427
+ var ProductsMain = import_styled_components4.styled.div.withConfig({
428
+ componentId: "sc-88355510-0"
429
+ })([
430
+ `display:flex;width:min(1440px,100%);min-height:calc(100vh - var(--header-height));margin:0 auto;padding:32px 24px;flex-direction:column;gap:16px;@media (max-width:767px){padding:32px 16px;}`
431
+ ]);
432
+ var BreadcrumbSlot = import_styled_components4.styled.div.withConfig({
433
+ componentId: "sc-88355510-1"
434
+ })([
435
+ `display:flex;justify-content:center;`
436
+ ]);
437
+ var ProductsSection = import_styled_components4.styled.section.withConfig({
438
+ componentId: "sc-88355510-2"
439
+ })([
440
+ `display:flex;flex-direction:column;gap:24px;`
441
+ ]);
442
+ var ProductsHeading = import_styled_components4.styled.h1.withConfig({
443
+ componentId: "sc-88355510-3"
444
+ })([
445
+ `margin:0;color:`,
446
+ `;text-align:center;font-family:var(--font-inter),Arial,Helvetica,sans-serif;font-size:40px;font-style:normal;font-weight:700;line-height:50px;@media (max-width:767px){font-size:24px !important;line-height:36px;}`
447
+ ], ({ theme }) => theme.colors.text.primary);
448
+ var ProductGrid = import_styled_components4.styled.section.withConfig({
449
+ componentId: "sc-88355510-4"
450
+ })([
451
+ `display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:24px 32px;align-items:start;@media (max-width:1199px){grid-template-columns:repeat(3,minmax(0,1fr));}@media (max-width:899px){grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;}`
452
+ ]);
453
+ var ProductsPagination = import_styled_components4.styled.div.withConfig({
454
+ componentId: "sc-88355510-5"
455
+ })([
456
+ `margin-top:16px;`
457
+ ]);
458
+ var EmptyProducts = import_styled_components4.styled.p.withConfig({
459
+ componentId: "sc-88355510-6"
460
+ })([
461
+ `padding:40px 16px;text-align:center;color:`,
462
+ `;`
463
+ ], ({ theme }) => theme.colors.text.secondary);
464
+
465
+ // src/wikex/products/detail-style.ts
466
+ var import_image2 = __toESM(require("next/image.js"));
467
+ var import_styled_components5 = require("styled-components");
468
+ var DetailMain = import_styled_components5.styled.main.withConfig({
469
+ componentId: "sc-f34fe3ee-0"
470
+ })([
471
+ `display:flex;width:min(1248px,100%);min-height:calc(100vh - var(--header-height));margin:0 auto;padding:32px 24px 96px;flex-direction:column;gap:16px;@media (max-width:767px){padding:32px 16px 40px;}`
472
+ ]);
473
+ var PageHeader = import_styled_components5.styled.header.withConfig({
474
+ componentId: "sc-f34fe3ee-1"
475
+ })([
476
+ `display:flex;flex-direction:column;`
477
+ ]);
478
+ var PageTitle = import_styled_components5.styled.h1.withConfig({
479
+ componentId: "sc-f34fe3ee-2"
480
+ })([
481
+ `margin:0;color:`,
482
+ `;font-family:var(--Font-Landingpage,Inter);font-size:var(--Size-H2,40px);font-style:normal;font-weight:700;line-height:var(--Line-height-H2,50px);@media (max-width:767px){font-size:var(--Size-H3,24px) !important;line-height:var(--Line-height-H3,36px);}`
483
+ ], ({ theme }) => theme.colors.text.primary);
484
+ var ContractLayout = import_styled_components5.styled.div.withConfig({
485
+ componentId: "sc-f34fe3ee-3"
486
+ })([
487
+ `margin-top:16px;display:grid;grid-template-columns:minmax(0,1fr) 373px;gap:40px;align-items:start;@media (max-width:1199px){grid-template-columns:minmax(0,1fr) 280px;gap:24px;}@media (max-width:768px){grid-template-columns:minmax(0,1fr);margin-top:0px;}`
488
+ ]);
489
+ var ContractMain = import_styled_components5.styled.div.withConfig({
490
+ componentId: "sc-f34fe3ee-4"
491
+ })([
492
+ `display:flex;min-width:0;flex-direction:column;gap:24px;overflow-wrap:anywhere;`
493
+ ]);
494
+ var ContractSidebar = import_styled_components5.styled.aside.withConfig({
495
+ componentId: "sc-f34fe3ee-5"
496
+ })([
497
+ `min-width:0;position:sticky;top:calc(var(--header-height) + 24px);align-self:start;@media (max-width:768px){position:static;width:100%;}`
498
+ ]);
499
+ var IntroductionSection = import_styled_components5.styled.section.withConfig({
500
+ componentId: "sc-f34fe3ee-6"
501
+ })([
502
+ `display:flex;flex-direction:column;gap:8px;@media (max-width:767px){gap:6px;}`
503
+ ]);
504
+ var ContractSectionTitle = import_styled_components5.styled.h2.withConfig({
505
+ componentId: "sc-f34fe3ee-7"
506
+ })([
507
+ `width:100%;margin:0;overflow:hidden;color:`,
508
+ `;font-family:var(--font-inter),Arial,Helvetica,sans-serif;font-size:20px;font-weight:700;line-height:30px;text-overflow:ellipsis;@media (max-width:767px){font-size:16px;line-height:22px;}`
509
+ ], ({ theme }) => theme.colors.text.primary);
510
+ var IntroductionDescription = import_styled_components5.styled.p.withConfig({
511
+ componentId: "sc-f34fe3ee-8"
512
+ })([
513
+ `width:100%;margin:0;color:`,
514
+ `;font-family:var(--font-inter),Arial,Helvetica,sans-serif;font-size:16px;font-weight:500;line-height:22px;@media (max-width:767px){font-size:14px;line-height:18px;}`
515
+ ], ({ theme }) => theme.colors.text.secondary);
516
+ var ContractSpecificationSection = import_styled_components5.styled.section.withConfig({
517
+ componentId: "sc-f34fe3ee-9"
518
+ })([
519
+ `display:flex;flex-direction:column;gap:12px;`
520
+ ]);
521
+ var ContractSpecificationList = import_styled_components5.styled.dl.withConfig({
522
+ componentId: "sc-f34fe3ee-10"
523
+ })([
524
+ `overflow:hidden;margin:0;border:1px solid `,
525
+ `;border-radius:8px;`
526
+ ], ({ theme }) => theme.colors.border.line);
527
+ var ContractSpecificationRow = import_styled_components5.styled.div.withConfig({
528
+ componentId: "sc-f34fe3ee-11"
529
+ })([
530
+ `display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;padding:11.5px 24px;font-family:var(--font-inter),Arial,Helvetica,sans-serif;font-size:16px;font-weight:500;line-height:22px;& + &{border-top:1px solid `,
531
+ `;}dt{min-width:0;overflow:hidden;color:`,
532
+ `;text-overflow:ellipsis;}dd{min-width:0;margin:0;color:`,
533
+ `;}p{margin:0;}@media (max-width:1199px){grid-template-columns:minmax(160px,0.7fr) minmax(0,1fr);gap:16px;padding:12px 16px;}@media (max-width:767px){grid-template-columns:minmax(110px,0.7fr) minmax(0,1fr);gap:16px;padding:12px 16px;font-size:14px;line-height:18px;}`
534
+ ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary);
535
+ var QualityStandardSection = import_styled_components5.styled.section.withConfig({
536
+ componentId: "sc-f34fe3ee-12"
537
+ })([
538
+ `display:flex;flex-direction:column;gap:12px;`
539
+ ]);
540
+ var QualityStandardIntro = import_styled_components5.styled.div.withConfig({
541
+ componentId: "sc-f34fe3ee-13"
542
+ })([
543
+ `display:flex;width:100%;flex-direction:column;gap:8px;`
544
+ ]);
545
+ var QualityStandardDescription = import_styled_components5.styled.div.withConfig({
546
+ componentId: "sc-f34fe3ee-14"
547
+ })([
548
+ `width:100%;color:`,
549
+ `;font-family:var(--font-inter),Arial,Helvetica,sans-serif;font-size:16px;font-weight:500;line-height:22px;p{margin:0;}@media (max-width:767px){font-size:14px;line-height:18px;}`
550
+ ], ({ theme }) => theme.colors.text.secondary);
551
+ var QualityStandardList = import_styled_components5.styled.div.withConfig({
552
+ componentId: "sc-f34fe3ee-15"
553
+ })([
554
+ `overflow:hidden;border:1px solid `,
555
+ `;border-radius:8px;`
556
+ ], ({ theme }) => theme.colors.border.line);
557
+ var qualityStandardGrid = (0, import_styled_components5.css)([
558
+ `display:grid;grid-template-columns:minmax(0,1.4fr) repeat(`,
559
+ `,minmax(0,1fr));gap:24px;padding:11.5px 24px;font-family:var(--font-inter),Arial,Helvetica,sans-serif;font-size:16px;font-weight:500;line-height:22px;@media (max-width:1199px){gap:12px;padding:12px 16px;}@media (max-width:767px){gap:8px;padding:10px 16px;font-size:14px;line-height:18px;}`
560
+ ], ({ $valueColumns }) => $valueColumns);
561
+ var QualityStandardHeader = import_styled_components5.styled.div.withConfig({
562
+ componentId: "sc-f34fe3ee-16"
563
+ })([
564
+ ``,
565
+ ` color:`,
566
+ `;span{min-width:0;overflow-wrap:anywhere;}`
567
+ ], qualityStandardGrid, ({ theme }) => theme.colors.text.secondary);
568
+ var QualityStandardRow = import_styled_components5.styled.div.withConfig({
569
+ componentId: "sc-f34fe3ee-17"
570
+ })([
571
+ ``,
572
+ ` border-top:1px solid `,
573
+ `;color:`,
574
+ `;span{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;}span:first-child{color:`,
575
+ `;}`
576
+ ], qualityStandardGrid, ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.text.secondary);
577
+ var QualityTableTitle = import_styled_components5.styled.h3.withConfig({
578
+ componentId: "sc-f34fe3ee-18"
579
+ })([
580
+ `margin:8px 0 0;color:`,
581
+ `;font-size:16px;line-height:24px;`
582
+ ], ({ theme }) => theme.colors.text.primary);
583
+ var DetailNote = import_styled_components5.styled.small.withConfig({
584
+ componentId: "sc-f34fe3ee-19"
585
+ })([
586
+ `display:block;margin-top:6px;color:`,
587
+ `;font-size:13px;line-height:20px;white-space:pre-wrap;a{color:inherit;text-decoration:underline;}summary{cursor:pointer;}`
588
+ ], ({ theme }) => theme.colors.text.secondary);
589
+ var RelatedProductsSection = import_styled_components5.styled.section.withConfig({
590
+ componentId: "sc-f34fe3ee-20"
591
+ })([
592
+ `display:flex;width:100%;min-width:0;flex-direction:column;gap:16px;`
593
+ ]);
594
+ var RelatedProductsHeading = import_styled_components5.styled.h2.withConfig({
595
+ componentId: "sc-f34fe3ee-21"
596
+ })([
597
+ `width:100%;margin:0;color:`,
598
+ `;font-family:var(--font-inter),Arial,Helvetica,sans-serif;font-size:20px;font-weight:700;line-height:30px;`
599
+ ], ({ theme }) => theme.colors.text.primary);
600
+ var RelatedProductsList = import_styled_components5.styled.div.withConfig({
601
+ componentId: "sc-f34fe3ee-22"
602
+ })([
603
+ `display:flex;width:100%;min-width:0;flex-direction:column;gap:16px;@media (max-width:768px){width:calc(100% + 16px);padding:0 16px 4px 0;overflow-x:auto;flex-direction:row;scroll-padding-right:16px;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x;&::-webkit-scrollbar{display:none;}}`
604
+ ]);
605
+ var RelatedProductCard = import_styled_components5.styled.article.withConfig({
606
+ componentId: "sc-f34fe3ee-23"
607
+ })([
608
+ `display:flex;width:100%;align-items:center;gap:12px;@media (max-width:768px){width:min(278px,calc(100% - 32px));max-width:278px;flex:0 0 min(278px,calc(100% - 32px));scroll-snap-align:start;}`
609
+ ]);
610
+ var RelatedProductImageFrame = import_styled_components5.styled.div.withConfig({
611
+ componentId: "sc-f34fe3ee-24"
612
+ })([
613
+ `position:relative;width:136px;height:136px;flex:0 0 136px;`
614
+ ]);
615
+ var RelatedProductImage = (0, import_styled_components5.styled)(import_image2.default).withConfig({
616
+ componentId: "sc-f34fe3ee-25"
617
+ })([
618
+ `width:`,
619
+ ` !important;height:`,
620
+ ` !important;top:`,
621
+ ` !important;right:auto !important;bottom:auto !important;left:`,
622
+ ` !important;max-width:none;object-fit:contain;pointer-events:none;`
623
+ ], ({ $size }) => $size, ({ $size }) => $size, ({ $top }) => $top, ({ $left }) => $left);
624
+ var RelatedProductContent = import_styled_components5.styled.div.withConfig({
625
+ componentId: "sc-f34fe3ee-26"
626
+ })([
627
+ `display:flex;min-width:0;flex:1 0 0;flex-direction:column;align-items:flex-start;gap:4px;@media (max-width:767px){gap:0px;}`
628
+ ]);
629
+ var RelatedProductTitle = import_styled_components5.styled.h3.withConfig({
630
+ componentId: "sc-f34fe3ee-27"
631
+ })([
632
+ `width:100%;margin:0;color:`,
633
+ `;font-family:var(--font-inter),Arial,Helvetica,sans-serif;font-size:20px;font-weight:700;line-height:30px;@media (max-width:767px){font-size:16px;line-height:22px;}`
634
+ ], ({ theme }) => theme.colors.text.primary);
635
+ var RelatedProductDescription = import_styled_components5.styled.p.withConfig({
636
+ componentId: "sc-f34fe3ee-28"
637
+ })([
638
+ `display:-webkit-box;width:100%;overflow:hidden;margin:0;color:`,
639
+ `;font-family:var(--font-inter),Arial,Helvetica,sans-serif;font-size:14px;font-weight:500;line-height:18px;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:3;@media (max-width:767px){font-size:12px;line-height:16px;}`
640
+ ], ({ theme }) => theme.colors.text.secondary);
641
+ var RelatedProductAction = import_styled_components5.styled.a.withConfig({
642
+ componentId: "sc-f34fe3ee-29"
643
+ })([
644
+ `display:inline-flex;padding:4px 16px 4px 0;align-items:center;justify-content:center;gap:6px;border-radius:6px;color:`,
645
+ `;font-family:var(--font-manrope),Arial,Helvetica,sans-serif;font-size:14px;font-weight:700;line-height:18px;transition:color 160ms ease;&:hover{color:`,
646
+ `;}&:focus-visible{outline:2px solid `,
647
+ `;outline-offset:2px;}@media (max-width:767px){font-size:12px;line-height:16px;}`
648
+ ], ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.action.primaryHover, ({ theme }) => theme.colors.accent.primary);
649
+ var RelatedProductArrow = import_styled_components5.styled.span.withConfig({
650
+ componentId: "sc-f34fe3ee-30"
651
+ })([
652
+ `width:16px;height:16px;flex:0 0 16px;background:currentColor;mask:url("`,
653
+ `") center / contain no-repeat;-webkit-mask:url("`,
654
+ `") center / contain no-repeat;transition:transform 160ms ease;`,
655
+ `:hover &{transform:translateX(2px);}`
656
+ ], related_products_arrow_default, related_products_arrow_default, RelatedProductAction);
657
+
658
+ // src/wikex/products/public-view.tsx
659
+ function Surface({ children }) {
660
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_styled_components6.ThemeProvider, {
661
+ theme: appTheme,
662
+ children
663
+ });
664
+ }
665
+ var sourceTitles = {
666
+ "mxv.com.vn": "MXV",
667
+ "cmegroup.com": "CME Group",
668
+ "ice.com": "ICE",
669
+ "lme.com": "LME",
670
+ "cftc.gov": "CFTC",
671
+ "bursamalaysia.com": "Bursa Malaysia",
672
+ "ams.usda.gov": "USDA",
673
+ "hanghoa.anfin.vn": "Anfin",
674
+ "hct.vn": "HCT"
675
+ };
676
+ function ProductReferences({ product, en }) {
677
+ const links = /* @__PURE__ */ new Map();
678
+ const notes = /* @__PURE__ */ new Map();
679
+ const rows = [
680
+ ...product.specifications,
681
+ ...product.qualityRows
682
+ ];
683
+ for (const row of rows) {
684
+ for (const source of row.source?.split(/\s*;\s*/) || []) {
685
+ try {
686
+ const url = new URL(source);
687
+ if (/^https?:$/.test(url.protocol)) {
688
+ const host = url.hostname.toLowerCase().replace(/^www\./, "");
689
+ if (!links.has(host)) links.set(host, {
690
+ href: url.href,
691
+ title: sourceTitles[host] || host
692
+ });
693
+ }
694
+ } catch {
695
+ }
696
+ }
697
+ const note = row.note?.trim();
698
+ if (note) {
699
+ const label = "table" in row && row.table ? `${row.table} \u2013 ${row.label}` : row.label;
700
+ if (!notes.has(note)) notes.set(note, /* @__PURE__ */ new Set());
701
+ notes.get(note).add(label);
702
+ }
703
+ }
704
+ if (!links.size && !notes.size) return null;
705
+ const heading = en ? "Sources & notes" : "Ngu\u1ED3n & ghi ch\xFA";
706
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(QualityStandardSection, {
707
+ "aria-label": heading,
708
+ children: [
709
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ContractSectionTitle, {
710
+ children: heading
711
+ }),
712
+ !!links.size && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(DetailNote, {
713
+ children: [
714
+ en ? "Sources: " : "Ngu\u1ED3n: ",
715
+ [
716
+ ...links
717
+ ].map(([host, { href, title }], i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", {
718
+ children: [
719
+ i > 0 && " \xB7 ",
720
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("a", {
721
+ href,
722
+ target: "_blank",
723
+ rel: "noopener noreferrer",
724
+ children: title
725
+ })
726
+ ]
727
+ }, host))
728
+ ]
729
+ }),
730
+ [
731
+ ...notes
732
+ ].map(([note, labels]) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(DetailNote, {
733
+ children: [
734
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("strong", {
735
+ children: [
736
+ [
737
+ ...labels
738
+ ].join(", "),
739
+ ": "
740
+ ]
741
+ }),
742
+ note
743
+ ]
744
+ }, note))
745
+ ]
746
+ });
747
+ }
748
+ function QualityTable({ rows, columns, en }) {
749
+ const visible = columns.map((_, i) => i).filter((i) => columns[i] || rows.some((row) => row.values[i]));
750
+ if (!visible.length) visible.push(0);
751
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {
752
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(QualityStandardList, {
753
+ role: "table",
754
+ "aria-label": rows[0].table || (en ? "Quality standards" : "Ti\xEAu chu\u1EA9n ch\u1EA5t l\u01B0\u1EE3ng"),
755
+ children: [
756
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(QualityStandardHeader, {
757
+ role: "row",
758
+ $valueColumns: visible.length,
759
+ children: [
760
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", {
761
+ role: "columnheader",
762
+ children: en ? "Criteria" : "Ch\u1EC9 ti\xEAu"
763
+ }),
764
+ visible.map((i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", {
765
+ role: "columnheader",
766
+ children: columns[i] || `${en ? "Value" : "Gi\xE1 tr\u1ECB"} ${i + 1}`
767
+ }, i))
768
+ ]
769
+ }),
770
+ rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(QualityStandardRow, {
771
+ role: "row",
772
+ $valueColumns: visible.length,
773
+ children: [
774
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", {
775
+ role: "rowheader",
776
+ children: [
777
+ row.label,
778
+ (row.unit || row.condition) && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DetailNote, {
779
+ children: [
780
+ row.unit,
781
+ row.condition
782
+ ].filter(Boolean).join(" \xB7 ")
783
+ })
784
+ ]
785
+ }),
786
+ visible.map((j) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", {
787
+ role: "cell",
788
+ children: row.values[j] || "\u2014"
789
+ }, j))
790
+ ]
791
+ }, i))
792
+ ]
793
+ })
794
+ });
795
+ }
796
+ function ProductListing({ products, title = "S\u1EA3n ph\u1EA9m", language = "vi", homeHref = "/", placeholderImage = logo_original_default }) {
797
+ const [page, setPage] = (0, import_react.useState)(1);
798
+ const en = language === "en";
799
+ const pageCount = Math.max(1, Math.ceil(products.length / 8));
800
+ const currentPage = Math.min(page, pageCount);
801
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Surface, {
802
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ProductsMain, {
803
+ children: [
804
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(BreadcrumbSlot, {
805
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Breadcrumb, {
806
+ items: [
807
+ {
808
+ label: en ? "Home" : "Trang ch\u1EE7",
809
+ href: homeHref
810
+ },
811
+ {
812
+ label: title
813
+ }
814
+ ]
815
+ })
816
+ }),
817
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ProductsSection, {
818
+ children: [
819
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProductsHeading, {
820
+ children: title
821
+ }),
822
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProductGrid, {
823
+ "aria-label": title,
824
+ children: products.slice((currentPage - 1) * 8, currentPage * 8).map((product) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProductCard, {
825
+ title: product.name,
826
+ description: product.summary,
827
+ image: product.coverImage || placeholderImage,
828
+ imageFit: product.coverImage ? "cover" : "contain",
829
+ imageAlt: product.imageAlt || product.name,
830
+ href: product.href
831
+ }, product.id))
832
+ }),
833
+ !products.length && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(EmptyProducts, {
834
+ children: en ? "No products found." : "Ch\u01B0a c\xF3 s\u1EA3n ph\u1EA9m ph\xF9 h\u1EE3p."
835
+ }),
836
+ pageCount > 1 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProductsPagination, {
837
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Pagination, {
838
+ page: currentPage,
839
+ pageCount,
840
+ onPageChange: setPage,
841
+ ariaLabel: en ? "Product pages" : "Ph\xE2n trang s\u1EA3n ph\u1EA9m",
842
+ labels: {
843
+ previous: en ? "Previous page" : "Trang tr\u01B0\u1EDBc",
844
+ next: en ? "Next page" : "Trang sau",
845
+ page: (number) => en ? `Page ${number}` : `Trang ${number}`,
846
+ current: (number) => en ? `Page ${number}, current page` : `Trang ${number}, trang hi\u1EC7n t\u1EA1i`
847
+ }
848
+ })
849
+ })
850
+ ]
851
+ })
852
+ ]
853
+ })
854
+ });
855
+ }
856
+ function ProductDetailView({ product, related, listingHref, language = "vi", homeHref = "/", placeholderImage = logo_original_default }) {
857
+ const en = language === "en";
858
+ const qualityGroups = /* @__PURE__ */ new Map();
859
+ for (const row of product.qualityRows) {
860
+ const key = JSON.stringify([
861
+ row.table || "",
862
+ row.columns || product.qualityColumns
863
+ ]);
864
+ qualityGroups.set(key, [
865
+ ...qualityGroups.get(key) || [],
866
+ row
867
+ ]);
868
+ }
869
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Surface, {
870
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(DetailMain, {
871
+ children: [
872
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Breadcrumb, {
873
+ items: [
874
+ {
875
+ label: en ? "Home" : "Trang ch\u1EE7",
876
+ href: homeHref
877
+ },
878
+ {
879
+ label: en ? "Products" : "S\u1EA3n ph\u1EA9m",
880
+ href: listingHref
881
+ },
882
+ {
883
+ label: product.name
884
+ }
885
+ ]
886
+ }),
887
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PageHeader, {
888
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PageTitle, {
889
+ children: product.name
890
+ })
891
+ }),
892
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ContractLayout, {
893
+ children: [
894
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ContractMain, {
895
+ children: [
896
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(IntroductionSection, {
897
+ children: [
898
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ContractSectionTitle, {
899
+ children: en ? "Introduction" : "Gi\u1EDBi thi\u1EC7u"
900
+ }),
901
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IntroductionDescription, {
902
+ style: {
903
+ whiteSpace: "pre-wrap"
904
+ },
905
+ children: product.introduction || product.summary
906
+ })
907
+ ]
908
+ }),
909
+ !!product.specifications.length && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ContractSpecificationSection, {
910
+ children: [
911
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ContractSectionTitle, {
912
+ children: en ? "Contract specifications" : "\u0110\u1EB7c t\u1EA3 h\u1EE3p \u0111\u1ED3ng"
913
+ }),
914
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ContractSpecificationList, {
915
+ children: product.specifications.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(ContractSpecificationRow, {
916
+ children: [
917
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("dt", {
918
+ children: row.label
919
+ }),
920
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("dd", {
921
+ style: {
922
+ whiteSpace: "pre-wrap",
923
+ overflowWrap: "anywhere"
924
+ },
925
+ children: [
926
+ row.value,
927
+ row.status && row.status !== "D\u1EEF li\u1EC7u ngu\u1ED3n" && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(DetailNote, {
928
+ children: row.status
929
+ })
930
+ ]
931
+ })
932
+ ]
933
+ }, i))
934
+ })
935
+ ]
936
+ }),
937
+ (product.qualityDescription || product.qualityRows.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(QualityStandardSection, {
938
+ children: [
939
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(QualityStandardIntro, {
940
+ children: [
941
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ContractSectionTitle, {
942
+ children: en ? "Quality standards" : "Ti\xEAu chu\u1EA9n ch\u1EA5t l\u01B0\u1EE3ng"
943
+ }),
944
+ product.qualityDescription && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(QualityStandardDescription, {
945
+ style: {
946
+ whiteSpace: "pre-wrap"
947
+ },
948
+ children: product.qualityDescription
949
+ })
950
+ ]
951
+ }),
952
+ [
953
+ ...qualityGroups
954
+ ].map(([key, rows]) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", {
955
+ style: {
956
+ display: "grid",
957
+ gap: 8
958
+ },
959
+ children: [
960
+ rows[0].table && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(QualityTableTitle, {
961
+ children: rows[0].table
962
+ }),
963
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(QualityTable, {
964
+ rows,
965
+ columns: rows[0].columns || product.qualityColumns,
966
+ en
967
+ })
968
+ ]
969
+ }, key))
970
+ ]
971
+ }),
972
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ProductReferences, {
973
+ product,
974
+ en
975
+ })
976
+ ]
977
+ }),
978
+ !!related.length && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ContractSidebar, {
979
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(RelatedProductsSection, {
980
+ children: [
981
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelatedProductsHeading, {
982
+ children: en ? "Related products" : "H\xE0ng h\xF3a c\xF9ng lo\u1EA1i"
983
+ }),
984
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelatedProductsList, {
985
+ children: related.map((item) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(RelatedProductCard, {
986
+ children: [
987
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelatedProductImageFrame, {
988
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelatedProductImage, {
989
+ fill: true,
990
+ src: item.coverImage || placeholderImage,
991
+ alt: item.imageAlt || item.name,
992
+ sizes: "136px",
993
+ $left: "0",
994
+ $top: "0",
995
+ $size: "100%"
996
+ })
997
+ }),
998
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(RelatedProductContent, {
999
+ children: [
1000
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelatedProductTitle, {
1001
+ children: item.name
1002
+ }),
1003
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelatedProductDescription, {
1004
+ children: item.summary
1005
+ }),
1006
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(RelatedProductAction, {
1007
+ as: import_link3.default,
1008
+ href: item.href,
1009
+ children: [
1010
+ en ? "View details" : "Xem chi ti\u1EBFt",
1011
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RelatedProductArrow, {
1012
+ "aria-hidden": "true"
1013
+ })
1014
+ ]
1015
+ })
1016
+ ]
1017
+ })
1018
+ ]
1019
+ }, item.id))
1020
+ })
1021
+ ]
1022
+ })
1023
+ })
1024
+ ]
1025
+ })
1026
+ ]
1027
+ })
1028
+ });
1029
+ }
1030
+
1031
+ // src/wikex/products/public-loading.tsx
1032
+ var import_jsx_runtime5 = require("react/jsx-runtime");
1033
+ var import_styled_components7 = require("styled-components");
1034
+ var shimmer = (0, import_styled_components7.keyframes)([
1035
+ `from{transform:translateX(-100%);}to{transform:translateX(100%);}`
1036
+ ]);
1037
+ var Bone = import_styled_components7.styled.span.withConfig({
1038
+ componentId: "sc-b74e7028-0"
1039
+ })([
1040
+ `display:block;position:relative;overflow:hidden;border-radius:6px;background:`,
1041
+ `;&::after{position:absolute;inset:0;content:'';background:linear-gradient(90deg,transparent,rgb(255 255 255 / 42%),transparent);transform:translateX(-100%);animation:`,
1042
+ ` 1.35s ease-in-out infinite;}@media (prefers-reduced-motion:reduce){&::after{animation:none;}}`
1043
+ ], ({ theme }) => theme.colors.background.input, shimmer);
1044
+ var LoadingStatus = import_styled_components7.styled.span.withConfig({
1045
+ componentId: "sc-b74e7028-1"
1046
+ })([
1047
+ `position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;`
1048
+ ]);
1049
+ var HeadingBone = (0, import_styled_components7.styled)(Bone).withConfig({
1050
+ componentId: "sc-b74e7028-2"
1051
+ })([
1052
+ `width:min(220px,70%);height:50px;margin-inline:auto;@media (max-width:767px){height:36px;}`
1053
+ ]);
1054
+ var Card = (0, import_styled_components7.styled)(ProductCardArticle).withConfig({
1055
+ componentId: "sc-b74e7028-3"
1056
+ })([
1057
+ `&:hover{transform:none;}`
1058
+ ]);
1059
+ var ImageBone = (0, import_styled_components7.styled)(Bone).withConfig({
1060
+ componentId: "sc-b74e7028-4"
1061
+ })([
1062
+ `width:100%;aspect-ratio:1;border-radius:8px 8px 0 0;`
1063
+ ]);
1064
+ var TitleBone = (0, import_styled_components7.styled)(Bone).withConfig({
1065
+ componentId: "sc-b74e7028-5"
1066
+ })([
1067
+ `width:70%;height:30px;@media (max-width:599px){height:18px;}`
1068
+ ]);
1069
+ var ArrowBone = (0, import_styled_components7.styled)(Bone).withConfig({
1070
+ componentId: "sc-b74e7028-6"
1071
+ })([
1072
+ `width:24px;height:24px;margin-inline-start:auto;flex-shrink:0;@media (max-width:599px){width:18px;height:18px;}`
1073
+ ]);
1074
+ var DescriptionBones = import_styled_components7.styled.div.withConfig({
1075
+ componentId: "sc-b74e7028-7"
1076
+ })([
1077
+ `display:flex;width:100%;height:66px;padding-block:4px;flex-direction:column;gap:8px;`,
1078
+ `{height:14px;flex-shrink:0;}@media (max-width:599px){height:48px;padding-block:2px;gap:4px;`,
1079
+ `{height:12px;}}`
1080
+ ], Bone, Bone);
1081
+ function ProductListingSkeleton({ language = "vi" }) {
1082
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_styled_components7.ThemeProvider, {
1083
+ theme: appTheme,
1084
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ProductsMain, {
1085
+ "aria-busy": "true",
1086
+ children: [
1087
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(LoadingStatus, {
1088
+ role: "status",
1089
+ children: language === "en" ? "Loading products" : "\u0110ang t\u1EA3i s\u1EA3n ph\u1EA9m"
1090
+ }),
1091
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BreadcrumbSlot, {
1092
+ "aria-hidden": "true",
1093
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Bone, {
1094
+ style: {
1095
+ width: 160,
1096
+ height: 22
1097
+ }
1098
+ })
1099
+ }),
1100
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ProductsSection, {
1101
+ "aria-hidden": "true",
1102
+ children: [
1103
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(HeadingBone, {}),
1104
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ProductGrid, {
1105
+ children: Array.from({
1106
+ length: 8
1107
+ }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Card, {
1108
+ children: [
1109
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ImageBone, {}),
1110
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ProductCardCopy, {
1111
+ children: [
1112
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ProductCardTitleRow, {
1113
+ children: [
1114
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TitleBone, {}),
1115
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ArrowBone, {})
1116
+ ]
1117
+ }),
1118
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(DescriptionBones, {
1119
+ children: [
1120
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Bone, {}),
1121
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Bone, {}),
1122
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Bone, {
1123
+ style: {
1124
+ width: "75%"
1125
+ }
1126
+ })
1127
+ ]
1128
+ })
1129
+ ]
1130
+ })
1131
+ ]
1132
+ }, index))
1133
+ }),
1134
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ProductsPagination, {
1135
+ style: {
1136
+ display: "flex",
1137
+ justifyContent: "center",
1138
+ gap: 8
1139
+ },
1140
+ children: Array.from({
1141
+ length: 8
1142
+ }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Bone, {
1143
+ style: {
1144
+ width: 28,
1145
+ height: 28,
1146
+ borderRadius: 4
1147
+ }
1148
+ }, index))
1149
+ })
1150
+ ]
1151
+ })
1152
+ ]
1153
+ })
1154
+ });
1155
+ }
1156
+ var DetailTitleBone = (0, import_styled_components7.styled)(HeadingBone).withConfig({
1157
+ componentId: "sc-b74e7028-8"
1158
+ })([
1159
+ `width:min(360px,85%);margin-inline:0;`
1160
+ ]);
1161
+ var SectionTitleBone = (0, import_styled_components7.styled)(Bone).withConfig({
1162
+ componentId: "sc-b74e7028-9"
1163
+ })([
1164
+ `width:180px;height:30px;@media (max-width:767px){height:22px;}`
1165
+ ]);
1166
+ var TextBone = (0, import_styled_components7.styled)(Bone).withConfig({
1167
+ componentId: "sc-b74e7028-10"
1168
+ })([
1169
+ `width:100%;height:22px;@media (max-width:767px){height:18px;}`
1170
+ ]);
1171
+ var RelatedImageBone = (0, import_styled_components7.styled)(Bone).withConfig({
1172
+ componentId: "sc-b74e7028-11"
1173
+ })([
1174
+ `width:100%;height:100%;border-radius:8px;`
1175
+ ]);
1176
+ function ProductDetailSkeleton({ language = "vi" }) {
1177
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_styled_components7.ThemeProvider, {
1178
+ theme: appTheme,
1179
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(DetailMain, {
1180
+ "aria-busy": "true",
1181
+ children: [
1182
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(LoadingStatus, {
1183
+ role: "status",
1184
+ children: language === "en" ? "Loading product details" : "\u0110ang t\u1EA3i chi ti\u1EBFt s\u1EA3n ph\u1EA9m"
1185
+ }),
1186
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Bone, {
1187
+ "aria-hidden": "true",
1188
+ style: {
1189
+ width: "min(240px, 80%)",
1190
+ height: 22
1191
+ }
1192
+ }),
1193
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PageHeader, {
1194
+ "aria-hidden": "true",
1195
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DetailTitleBone, {})
1196
+ }),
1197
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ContractLayout, {
1198
+ "aria-hidden": "true",
1199
+ children: [
1200
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ContractMain, {
1201
+ children: [
1202
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(IntroductionSection, {
1203
+ children: [
1204
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionTitleBone, {}),
1205
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {}),
1206
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {}),
1207
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {
1208
+ style: {
1209
+ width: "70%"
1210
+ }
1211
+ })
1212
+ ]
1213
+ }),
1214
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ContractSpecificationSection, {
1215
+ children: [
1216
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionTitleBone, {}),
1217
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ContractSpecificationList, {
1218
+ children: Array.from({
1219
+ length: 12
1220
+ }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ContractSpecificationRow, {
1221
+ children: [
1222
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("dt", {
1223
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {
1224
+ style: {
1225
+ width: "85%"
1226
+ }
1227
+ })
1228
+ }),
1229
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("dd", {
1230
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {
1231
+ style: {
1232
+ width: index % 3 === 0 ? "90%" : "65%"
1233
+ }
1234
+ })
1235
+ })
1236
+ ]
1237
+ }, index))
1238
+ })
1239
+ ]
1240
+ }),
1241
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(QualityStandardSection, {
1242
+ children: [
1243
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionTitleBone, {}),
1244
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {}),
1245
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {
1246
+ style: {
1247
+ width: "75%"
1248
+ }
1249
+ }),
1250
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(QualityStandardList, {
1251
+ children: [
1252
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(QualityStandardHeader, {
1253
+ $valueColumns: 3,
1254
+ children: Array.from({
1255
+ length: 4
1256
+ }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {
1257
+ style: {
1258
+ width: "75%"
1259
+ }
1260
+ }, index))
1261
+ }),
1262
+ Array.from({
1263
+ length: 5
1264
+ }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(QualityStandardRow, {
1265
+ $valueColumns: 3,
1266
+ children: Array.from({
1267
+ length: 4
1268
+ }, (_2, column) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {
1269
+ style: {
1270
+ width: "70%"
1271
+ }
1272
+ }, column))
1273
+ }, index))
1274
+ ]
1275
+ })
1276
+ ]
1277
+ })
1278
+ ]
1279
+ }),
1280
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ContractSidebar, {
1281
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(RelatedProductsSection, {
1282
+ children: [
1283
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionTitleBone, {}),
1284
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RelatedProductsList, {
1285
+ children: Array.from({
1286
+ length: 3
1287
+ }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(RelatedProductCard, {
1288
+ children: [
1289
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RelatedProductImageFrame, {
1290
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RelatedImageBone, {})
1291
+ }),
1292
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(RelatedProductContent, {
1293
+ children: [
1294
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {}),
1295
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {
1296
+ style: {
1297
+ width: "85%"
1298
+ }
1299
+ }),
1300
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TextBone, {
1301
+ style: {
1302
+ width: "65%"
1303
+ }
1304
+ })
1305
+ ]
1306
+ })
1307
+ ]
1308
+ }, index))
1309
+ })
1310
+ ]
1311
+ })
1312
+ })
1313
+ ]
1314
+ })
1315
+ ]
1316
+ })
1317
+ });
1318
+ }
1319
+ // Annotate the CommonJS export names for ESM import in node:
1320
+ 0 && (module.exports = {
1321
+ ProductDetailSkeleton,
1322
+ ProductDetailView,
1323
+ ProductListing,
1324
+ ProductListingSkeleton
1325
+ });
1326
+ //# sourceMappingURL=products.js.map