@enyxs/wikex-components 0.11.23 → 0.11.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import Typography2 from "@mui/material/Typography";
13
13
  import { createContext as createContext3, useContext as useContext3 } from "react";
14
14
 
15
15
  // src/shared/elements.tsx
16
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
16
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
17
17
  import { Children, cloneElement, createContext, createElement, isValidElement, useContext, useMemo } from "react";
18
18
  import styled2 from "styled-components";
19
19
 
@@ -100,6 +100,32 @@ var InlineLink = styled.span.withConfig({
100
100
  // src/shared/elements.tsx
101
101
  var CMS_EMPTY_IMAGE = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1' height='1'/%3E";
102
102
  var CMS_ELEMENTS_FIELD = "__cmsElements";
103
+ var CMS_LIST_MARKERS = [
104
+ "disc",
105
+ "circle",
106
+ "square",
107
+ "decimal",
108
+ "lower-alpha",
109
+ "lower-roman",
110
+ "accent-triangle",
111
+ "accent-disc",
112
+ "accent-circle",
113
+ "accent-square",
114
+ "accent-decimal"
115
+ ];
116
+ function cmsListMarkerType(marker) {
117
+ return [
118
+ "decimal",
119
+ "lower-alpha",
120
+ "lower-roman",
121
+ "accent-decimal"
122
+ ].includes(marker) ? "ol" : "ul";
123
+ }
124
+ function cmsListAnchor(listId) {
125
+ return listId.startsWith("text.") ? listId.slice(5) : `list:${listId}`;
126
+ }
127
+ var LIST_ACCENT = "#f9bb3a";
128
+ var ACCENT_TRIANGLE = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='9' viewBox='0 0 8 9' fill='none'%3E%3Cpath d='M1.84745 0.186474L6.93777 3.33107C7.46843 3.66519 7.62566 4.27445 7.42912 4.78545C7.3505 4.98199 7.23258 5.15887 7.0557 5.29645C7.01639 5.3161 6.97708 5.35541 6.93777 5.37507L1.84745 8.51967C1.45438 8.75551 1.022 8.75551 0.668228 8.57863C0.275153 8.38209 -3.12842e-08 7.98901 -5.27615e-08 7.49767L-3.27671e-07 1.20847C-3.35403e-07 1.03158 0.0393072 0.874354 0.0982684 0.717124C0.373421 0.0882044 1.17922 -0.226255 1.84745 0.186474Z' fill='%23F9BB3A'/%3E%3C/svg%3E")`;
103
129
  function parseCmsElements(value4) {
104
130
  const result = {
105
131
  hidden: [],
@@ -156,14 +182,7 @@ function parseCmsElements(value4) {
156
182
  ...list.type === "ul" || list.type === "ol" ? {
157
183
  type: list.type
158
184
  } : {},
159
- ...typeof list.marker === "string" && [
160
- "disc",
161
- "circle",
162
- "square",
163
- "decimal",
164
- "lower-alpha",
165
- "lower-roman"
166
- ].includes(list.marker) ? {
185
+ ...typeof list.marker === "string" && CMS_LIST_MARKERS.includes(list.marker) ? {
167
186
  marker: list.marker
168
187
  } : {}
169
188
  };
@@ -234,18 +253,20 @@ function CmsTextList({ field, type, children }) {
234
253
  });
235
254
  }
236
255
  var NativeList = styled2.ul.withConfig({
237
- componentId: "sc-b8ec35a7-0"
256
+ componentId: "sc-28cc1baf-0"
238
257
  })([
239
- `> li{display:list-item !important;padding-left:0 !important;}> li::before{content:none !important;}`
240
- ]);
258
+ `> li{display:list-item !important;padding-left:0 !important;}> li::before{content:none !important;}&[data-cms-list-marker^="accent-"] > li::marker{color:`,
259
+ `;}&[data-cms-list-marker="accent-decimal"] > li::marker{font-weight:700;}&[data-cms-list-marker="accent-triangle"] > li{position:relative;padding-left:20px !important;}&[data-cms-list-marker="accent-triangle"] > li::before{position:absolute;top:0.5em;top:calc(0.5lh - 4.5px);left:0;width:8px;height:9px;background:`,
260
+ ` no-repeat;content:"" !important;}`
261
+ ], LIST_ACCENT, ACCENT_TRIANGLE);
241
262
  function CmsTemplateList({ cmsAs, cmsId, children }) {
242
263
  const context = useContext(ElementContext);
243
264
  const templates = Children.toArray(children).filter(isValidElement);
244
265
  const stored = context?.state.lists[cmsId];
245
266
  const order = stored?.order ?? templates.map((_, index) => String(index));
246
267
  const items = order.flatMap((id) => {
247
- const added = stored?.added[id];
248
- const template = templates[added?.template ?? Number(id)];
268
+ const added2 = stored?.added[id];
269
+ const template = templates[added2?.template ?? Number(id)];
249
270
  if (!template) return [];
250
271
  const attributes = {
251
272
  key: id,
@@ -257,7 +278,7 @@ function CmsTemplateList({ cmsAs, cmsId, children }) {
257
278
  }
258
279
  } : {}
259
280
  };
260
- if (!added) return [
281
+ if (!added2) return [
261
282
  /* @__PURE__ */ cloneElement(template, attributes)
262
283
  ];
263
284
  const text2 = /* @__PURE__ */ _jsx(EditableText, {
@@ -266,8 +287,8 @@ function CmsTemplateList({ cmsAs, cmsId, children }) {
266
287
  font: "inherit",
267
288
  display: "block"
268
289
  },
269
- field: added.field,
270
- value: context?.content[added.field] ?? "M\u1EE5c m\u1EDBi",
290
+ field: added2.field,
291
+ value: context?.content[added2.field] ?? "M\u1EE5c m\u1EDBi",
271
292
  editable: context?.editable,
272
293
  onChange: context?.onChange
273
294
  });
@@ -278,19 +299,30 @@ function CmsTemplateList({ cmsAs, cmsId, children }) {
278
299
  }, text2)
279
300
  ];
280
301
  });
281
- if (!items.length) return null;
282
- return /* @__PURE__ */ createElement(stored?.type || stored?.marker ? NativeList : cmsAs, {
283
- ...stored?.type || stored?.marker ? {
302
+ const added = cmsId.startsWith("text.") ? null : /* @__PURE__ */ _jsx(CmsAddedElements, {
303
+ field: cmsListAnchor(cmsId)
304
+ });
305
+ if (!items.length) return added;
306
+ const marker = stored?.marker;
307
+ const list = /* @__PURE__ */ createElement(stored?.type || marker ? NativeList : cmsAs, {
308
+ ...stored?.type || marker ? {
284
309
  as: cmsAs,
285
- forwardedAs: stored?.type ?? (stored?.marker === "decimal" || stored?.marker === "lower-alpha" || stored?.marker === "lower-roman" ? "ol" : "ul"),
310
+ forwardedAs: stored?.type ?? cmsListMarkerType(marker ?? ""),
311
+ "data-cms-list-marker": marker,
286
312
  style: {
287
- listStyleType: stored?.marker ?? (stored?.type === "ol" ? "decimal" : "disc")
313
+ listStyleType: marker === "accent-triangle" ? "none" : marker?.replace(/^accent-/, "") ?? (stored?.type === "ol" ? "decimal" : "disc")
288
314
  }
289
315
  } : {},
290
316
  "data-cms-list-id": cmsId,
291
317
  "data-cms-list-order": JSON.stringify(order),
292
318
  "data-cms-list-template-count": templates.length
293
319
  }, items);
320
+ return /* @__PURE__ */ _jsxs(_Fragment, {
321
+ children: [
322
+ list,
323
+ added
324
+ ]
325
+ });
294
326
  }
295
327
 
296
328
  // src/shared/text-block.tsx
@@ -605,6 +637,7 @@ function EditableImage({
605
637
  }) {
606
638
  const normalizedSrc = src.trim();
607
639
  const hidden = useCmsElementHidden(field);
640
+ if (hidden) return null;
608
641
  return /* @__PURE__ */ jsxs(
609
642
  Box,
610
643
  {
@@ -616,7 +649,7 @@ function EditableImage({
616
649
  ...sx
617
650
  },
618
651
  children: [
619
- hidden ? null : normalizedSrc ? /* @__PURE__ */ jsx3(
652
+ normalizedSrc ? /* @__PURE__ */ jsx3(
620
653
  Box,
621
654
  {
622
655
  component: "img",
@@ -640,7 +673,7 @@ function EditableImage({
640
673
  children: "Ch\u01B0a c\xF3 \u1EA3nh"
641
674
  }
642
675
  ),
643
- editable && !hidden && /* @__PURE__ */ jsx3(
676
+ editable && /* @__PURE__ */ jsx3(
644
677
  Button,
645
678
  {
646
679
  "data-cms-image-field": field,
@@ -5660,7 +5693,7 @@ var PageShell = styled4.main.withConfig({
5660
5693
  ], drawBenefitLine, drawBenefitRect, drawBenefitRect, writeWithBenefitPen, strikeWithBenefitGavel, drawBenefitSquare, assembleProductSegment, benefitTwoWayUp, benefitTwoWayDown, WikiLogo);
5661
5694
 
5662
5695
  // src/commodity-original/app/about-us/AboutUsSections.tsx
5663
- import { jsx as _jsx2, jsxs as _jsxs } from "react/jsx-runtime";
5696
+ import { jsx as _jsx2, jsxs as _jsxs2 } from "react/jsx-runtime";
5664
5697
  import Image3 from "next/image.js";
5665
5698
  import { useTranslation as useTranslation2 } from "react-i18next";
5666
5699
  import styled6 from "styled-components";
@@ -7164,7 +7197,7 @@ function AboutHeroSection() {
7164
7197
  position: "relative",
7165
7198
  "--wikex-about-hero-background": `url("${heroBackground}")`
7166
7199
  };
7167
- return /* @__PURE__ */ _jsxs(HeroSection, {
7200
+ return /* @__PURE__ */ _jsxs2(HeroSection, {
7168
7201
  className: "wikex-cms-image-host",
7169
7202
  style: heroStyle,
7170
7203
  "aria-labelledby": "about-us-hero-title",
@@ -7185,7 +7218,7 @@ function AboutHeroSection() {
7185
7218
  function AboutIntroSection() {
7186
7219
  const { t } = useTranslation2();
7187
7220
  const teamImage = useCmsImage("aboutTeamImage", "/about-us/team_img.webp");
7188
- return /* @__PURE__ */ _jsxs(IntroSection, {
7221
+ return /* @__PURE__ */ _jsxs2(IntroSection, {
7189
7222
  "aria-labelledby": "about-us-intro-title",
7190
7223
  children: [
7191
7224
  /* @__PURE__ */ _jsx2(ExactText, {
@@ -7193,9 +7226,9 @@ function AboutIntroSection() {
7193
7226
  id: "about-us-intro-title",
7194
7227
  children: t("aboutUs.intro.title")
7195
7228
  }),
7196
- /* @__PURE__ */ _jsxs(IntroContent, {
7229
+ /* @__PURE__ */ _jsxs2(IntroContent, {
7197
7230
  children: [
7198
- /* @__PURE__ */ _jsxs(IntroIllustration, {
7231
+ /* @__PURE__ */ _jsxs2(IntroIllustration, {
7199
7232
  className: "wikex-cms-image-host",
7200
7233
  style: {
7201
7234
  position: "relative"
@@ -7215,9 +7248,9 @@ function AboutIntroSection() {
7215
7248
  })
7216
7249
  ]
7217
7250
  }),
7218
- /* @__PURE__ */ _jsxs(IntroCopy, {
7251
+ /* @__PURE__ */ _jsxs2(IntroCopy, {
7219
7252
  children: [
7220
- /* @__PURE__ */ _jsxs("p", {
7253
+ /* @__PURE__ */ _jsxs2("p", {
7221
7254
  children: [
7222
7255
  t("aboutUs.intro.leadPrefix"),
7223
7256
  " ",
@@ -7251,7 +7284,7 @@ function AboutIntroSection() {
7251
7284
  function AboutVisionMissionSection() {
7252
7285
  const { t } = useTranslation2();
7253
7286
  const missionItemCount = useCmsListCount("aboutUs.visionMission.mission.items.__count", missionItems.length);
7254
- return /* @__PURE__ */ _jsxs(VisionMissionSection, {
7287
+ return /* @__PURE__ */ _jsxs2(VisionMissionSection, {
7255
7288
  "aria-labelledby": "about-us-vision-title",
7256
7289
  children: [
7257
7290
  /* @__PURE__ */ _jsx2(ExactText, {
@@ -7259,10 +7292,10 @@ function AboutVisionMissionSection() {
7259
7292
  id: "about-us-vision-title",
7260
7293
  children: t("aboutUs.visionMission.title")
7261
7294
  }),
7262
- /* @__PURE__ */ _jsxs(VisionMissionGrid, {
7295
+ /* @__PURE__ */ _jsxs2(VisionMissionGrid, {
7263
7296
  children: [
7264
7297
  /* @__PURE__ */ _jsx2(VisionCard, {
7265
- children: /* @__PURE__ */ _jsxs(VisionCardBody, {
7298
+ children: /* @__PURE__ */ _jsxs2(VisionCardBody, {
7266
7299
  children: [
7267
7300
  /* @__PURE__ */ _jsx2(ExactText, {
7268
7301
  cmsAs: VisionCardTitle,
@@ -7276,7 +7309,7 @@ function AboutVisionMissionSection() {
7276
7309
  })
7277
7310
  }),
7278
7311
  /* @__PURE__ */ _jsx2(VisionCard, {
7279
- children: /* @__PURE__ */ _jsxs(VisionCardBody, {
7312
+ children: /* @__PURE__ */ _jsxs2(VisionCardBody, {
7280
7313
  children: [
7281
7314
  /* @__PURE__ */ _jsx2(ExactText, {
7282
7315
  cmsAs: VisionCardTitle,
@@ -7289,7 +7322,7 @@ function AboutVisionMissionSection() {
7289
7322
  /* @__PURE__ */ _jsx2("ul", {
7290
7323
  children: Array.from({
7291
7324
  length: missionItemCount
7292
- }, (_, index) => /* @__PURE__ */ _jsxs("li", {
7325
+ }, (_, index) => /* @__PURE__ */ _jsxs2("li", {
7293
7326
  children: [
7294
7327
  /* @__PURE__ */ _jsx2(ExactText, {
7295
7328
  cmsAs: "strong",
@@ -7312,7 +7345,7 @@ function AboutVisionMissionSection() {
7312
7345
  function AboutCoreValuesSection() {
7313
7346
  const { t } = useTranslation2();
7314
7347
  const coreValueCount = useCmsListCount("aboutUs.coreValues.items.__count", coreValues.length);
7315
- return /* @__PURE__ */ _jsxs(CoreValueSection, {
7348
+ return /* @__PURE__ */ _jsxs2(CoreValueSection, {
7316
7349
  "aria-labelledby": "about-us-core-values-title",
7317
7350
  children: [
7318
7351
  /* @__PURE__ */ _jsx2(ExactText, {
@@ -7323,7 +7356,7 @@ function AboutCoreValuesSection() {
7323
7356
  /* @__PURE__ */ _jsx2(CoreValueGrid, {
7324
7357
  children: Array.from({
7325
7358
  length: coreValueCount
7326
- }, (_, index) => /* @__PURE__ */ _jsxs(CoreValueCard, {
7359
+ }, (_, index) => /* @__PURE__ */ _jsxs2(CoreValueCard, {
7327
7360
  children: [
7328
7361
  /* @__PURE__ */ _jsx2(ExactText, {
7329
7362
  cmsAs: "h3",
@@ -7342,7 +7375,7 @@ function AboutCoreValuesSection() {
7342
7375
  function AboutGallerySection() {
7343
7376
  const { t } = useTranslation2();
7344
7377
  const resolveImage = useCmsImageResolver();
7345
- return /* @__PURE__ */ _jsxs(GallerySection, {
7378
+ return /* @__PURE__ */ _jsxs2(GallerySection, {
7346
7379
  "aria-labelledby": "about-us-gallery-title",
7347
7380
  children: [
7348
7381
  /* @__PURE__ */ _jsx2(ExactText, {
@@ -7353,7 +7386,7 @@ function AboutGallerySection() {
7353
7386
  /* @__PURE__ */ _jsx2(GalleryGrid, {
7354
7387
  children: companyGalleryItems.map(({ index, image: image2, width, height }) => /* @__PURE__ */ _jsx2(GalleryCard, {
7355
7388
  tabIndex: 0,
7356
- children: /* @__PURE__ */ _jsxs(GalleryMedia, {
7389
+ children: /* @__PURE__ */ _jsxs2(GalleryMedia, {
7357
7390
  className: "wikex-cms-image-host",
7358
7391
  $aspectRatio: `${width} / ${height}`,
7359
7392
  children: [
@@ -7386,7 +7419,7 @@ function AboutRegistrationSection(props) {
7386
7419
  const registerStyle = {
7387
7420
  "--wikex-about-register-background": `url("${registerBackground}")`
7388
7421
  };
7389
- return /* @__PURE__ */ _jsxs(AboutRegisterShell, {
7422
+ return /* @__PURE__ */ _jsxs2(AboutRegisterShell, {
7390
7423
  as: "div",
7391
7424
  className: "about-register-shell",
7392
7425
  style: registerStyle,
@@ -7405,7 +7438,7 @@ import { useState as useState6 } from "react";
7405
7438
  import { useTranslation as useTranslation4 } from "react-i18next";
7406
7439
 
7407
7440
  // src/wikex/fees-table.tsx
7408
- import { jsx as _jsx3, jsxs as _jsxs2 } from "react/jsx-runtime";
7441
+ import { jsx as _jsx3, jsxs as _jsxs3 } from "react/jsx-runtime";
7409
7442
  import { useId, useLayoutEffect as useLayoutEffect2, useRef as useRef3, useState as useState5 } from "react";
7410
7443
  import styled12, { ThemeProvider } from "styled-components";
7411
7444
  import TextField2 from "@mui/material/TextField";
@@ -8327,37 +8360,59 @@ var feesTheme = {
8327
8360
  ]))
8328
8361
  };
8329
8362
  var EditorActions = styled12.div.withConfig({
8330
- componentId: "sc-a6ff7adc-0"
8363
+ componentId: "sc-ecbebe61-0"
8331
8364
  })([
8332
8365
  `display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
8333
8366
  ]);
8334
8367
  var EditGroup = styled12.div.withConfig({
8335
- componentId: "sc-a6ff7adc-1"
8368
+ componentId: "sc-ecbebe61-1"
8336
8369
  })([
8337
8370
  `display:flex;flex-direction:column;gap:6px;`
8338
8371
  ]);
8339
8372
  var HeaderGroup = styled12(EditGroup).withConfig({
8340
- componentId: "sc-a6ff7adc-2"
8373
+ componentId: "sc-ecbebe61-2"
8341
8374
  })([
8342
8375
  `gap:8px;`
8343
8376
  ]);
8344
8377
  var HeaderTitle = styled12.div.withConfig({
8345
- componentId: "sc-a6ff7adc-3"
8378
+ componentId: "sc-ecbebe61-3"
8346
8379
  })([
8347
8380
  `display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
8348
8381
  ]);
8349
8382
  var HeaderActions = styled12.div.withConfig({
8350
- componentId: "sc-a6ff7adc-4"
8383
+ componentId: "sc-ecbebe61-4"
8351
8384
  })([
8352
8385
  `display:flex;align-items:center;min-height:24px;`
8353
8386
  ]);
8354
8387
  var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
8355
- componentId: "sc-a6ff7adc-5"
8388
+ componentId: "sc-ecbebe61-5"
8389
+ })([
8390
+ `&[data-editable] th{vertical-align:top;}--fees-row-background:`,
8391
+ `;--fees-stripe-background:`,
8392
+ `;--fees-text:`,
8393
+ `;:root[data-theme="dark"] &{--fees-row-background:#39393d;--fees-stripe-background:`,
8394
+ `;--fees-text:`,
8395
+ `;}&[data-editable] table{table-layout:auto;}table{table-layout:fixed;font-family:var(--font-manrope,Manrope),Arial,Helvetica,sans-serif;}th,td{box-sizing:border-box;overflow-wrap:anywhere;}thead > tr,thead > tr > th{background:`,
8396
+ `;}thead > tr > th{height:52px;padding:11.5px 8px;color:`,
8397
+ `;font-size:10px;font-weight:600;line-height:14px;white-space:pre-line;}tbody > tr{background:var(--fees-row-background);}tbody > tr:nth-child(even){background:var(--fees-stripe-background);}tbody > tr > td{height:32px;padding:7.5px 8px;background:inherit;color:var(--fees-text);font-size:12px;font-weight:500;line-height:16px;}thead > tr > th:first-child,tbody > tr > td:first-child{padding-left:16px;}@media (max-width:767px){&&:not([data-editable]){table{min-width:100%;width:`,
8398
+ `px;table-layout:fixed;}`,
8399
+ ` thead > tr > th,tbody > tr > td{padding-left:6px;padding-right:6px;white-space:pre-line;overflow-wrap:anywhere;font-family:var(--font-inter,Inter),Arial,Helvetica,sans-serif;}thead > tr > th{height:40px;padding-top:9.5px;padding-bottom:9.5px;font-size:8px;line-height:10px;}tbody > tr > td{height:40px;padding-top:5.5px;padding-bottom:5.5px;font-size:10px;line-height:14px;}thead > tr > th:last-child,tbody > tr > td:last-child{padding-right:12px;}th > span,td > span{text-align:left;}thead > tr > th:first-child,tbody > tr > td:first-child{position:sticky;left:0;padding-left:12px;}thead > tr > th:first-child{z-index:3;background:`,
8400
+ `;}tbody > tr > td:first-child{z-index:2;background:var(--fees-row-background);}tbody > tr:nth-child(even) > td:first-child{background:var(--fees-stripe-background);}}}`
8401
+ ], ({ theme }) => theme.colors.background.deep, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.accent.foreground, ({ theme }) => theme.colors.background.card, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.foreground, ({ $mobileColumnWidths }) => $mobileColumnWidths.reduce((sum, width) => sum + width, 0), ({ $mobileColumnWidths }) => $mobileColumnWidths.map((width, index) => `
8402
+ th:nth-child(${index + 1}), td:nth-child(${index + 1}) {
8403
+ width: ${width}px;
8404
+ min-width: ${width}px;
8405
+ max-width: ${width}px;
8406
+ }
8407
+ `).join(""), ({ theme }) => theme.colors.accent.primary);
8408
+ var FeesCellContent = styled12.span.withConfig({
8409
+ componentId: "sc-ecbebe61-6"
8356
8410
  })([
8357
- `&[data-editable] th{vertical-align:top;}`
8358
- ]);
8411
+ `display:block;text-align:`,
8412
+ `;`
8413
+ ], ({ $alignRight }) => $alignRight ? "right" : "left");
8359
8414
  var EditorButton = styled12.button.withConfig({
8360
- componentId: "sc-a6ff7adc-6"
8415
+ componentId: "sc-ecbebe61-7"
8361
8416
  })([
8362
8417
  `padding:7px 12px;border:1px solid `,
8363
8418
  `;border-radius:6px;background:`,
@@ -8366,17 +8421,17 @@ var EditorButton = styled12.button.withConfig({
8366
8421
  `;}&:disabled{cursor:default;opacity:.4;}`
8367
8422
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
8368
8423
  var OrderActions = styled12.div.withConfig({
8369
- componentId: "sc-a6ff7adc-7"
8424
+ componentId: "sc-ecbebe61-8"
8370
8425
  })([
8371
8426
  `display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
8372
8427
  ]);
8373
8428
  var PositionLabel = styled12.label.withConfig({
8374
- componentId: "sc-a6ff7adc-8"
8429
+ componentId: "sc-ecbebe61-9"
8375
8430
  })([
8376
8431
  `display:inline-flex;align-items:center;gap:6px;font-size:12px;`
8377
8432
  ]);
8378
8433
  var PositionInput = styled12.input.withConfig({
8379
- componentId: "sc-a6ff7adc-9"
8434
+ componentId: "sc-ecbebe61-10"
8380
8435
  })([
8381
8436
  `width:56px;padding:5px;border:1px solid `,
8382
8437
  `;border-radius:4px;background:`,
@@ -8385,23 +8440,23 @@ var PositionInput = styled12.input.withConfig({
8385
8440
  `;}`
8386
8441
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
8387
8442
  var ColumnRow = styled12.div.withConfig({
8388
- componentId: "sc-a6ff7adc-10"
8443
+ componentId: "sc-ecbebe61-11"
8389
8444
  })([
8390
8445
  `display:flex;gap:12px;align-items:center;margin:16px 0;> textarea{flex:1;min-width:120px;}@media (max-width:600px){align-items:stretch;flex-direction:column;}`
8391
8446
  ]);
8392
8447
  var PaginationControls = styled12(FeesAndMarginPagination).withConfig({
8393
- componentId: "sc-a6ff7adc-11"
8448
+ componentId: "sc-ecbebe61-12"
8394
8449
  })([
8395
8450
  `align-items:center;flex-wrap:wrap;gap:16px 24px;`
8396
8451
  ]);
8397
8452
  var PageSizeLabel = styled12.div.withConfig({
8398
- componentId: "sc-a6ff7adc-12"
8453
+ componentId: "sc-ecbebe61-13"
8399
8454
  })([
8400
8455
  `display:inline-flex;align-items:center;gap:8px;color:`,
8401
8456
  `;font:inherit;font-size:13px;`
8402
8457
  ], ({ theme }) => theme.colors.text.primary);
8403
8458
  function Position({ value: value4, max, label, onMove }) {
8404
- return /* @__PURE__ */ _jsxs2(PositionLabel, {
8459
+ return /* @__PURE__ */ _jsxs3(PositionLabel, {
8405
8460
  children: [
8406
8461
  "V\u1ECB tr\xED",
8407
8462
  /* @__PURE__ */ _jsx3(PositionInput, {
@@ -8423,12 +8478,12 @@ function Position({ value: value4, max, label, onMove }) {
8423
8478
  });
8424
8479
  }
8425
8480
  var DeleteButton = styled12(EditorButton).withConfig({
8426
- componentId: "sc-a6ff7adc-13"
8481
+ componentId: "sc-ecbebe61-14"
8427
8482
  })([
8428
8483
  `align-self:flex-start;padding:4px 8px;border:0;border-radius:4px;background:#d32f2f;color:#fff;font-size:11px;font-weight:600;line-height:16px;white-space:nowrap;text-decoration:none;&:hover{background:#b71c1c;}&:focus-visible{outline:2px solid #d32f2f;outline-offset:2px;}`
8429
8484
  ]);
8430
8485
  var CellEditorInput = styled12.textarea.withConfig({
8431
- componentId: "sc-a6ff7adc-14"
8486
+ componentId: "sc-ecbebe61-15"
8432
8487
  })([
8433
8488
  `display:block;box-sizing:border-box;width:100%;min-width:0;padding:3px;border:1px solid transparent;border-radius:3px;color:inherit;background:transparent;font:inherit;line-height:inherit;resize:none;overflow:hidden;&:hover{border-color:`,
8434
8489
  `;}&:focus{outline:1px solid `,
@@ -8484,7 +8539,7 @@ function RowTagSelect({ selected, options, onChange }) {
8484
8539
  return /* @__PURE__ */ _jsx3(EditGroup, {
8485
8540
  children: /* @__PURE__ */ _jsx3("div", {
8486
8541
  ref: selectRoot,
8487
- children: /* @__PURE__ */ _jsxs2(Select2, {
8542
+ children: /* @__PURE__ */ _jsxs3(Select2, {
8488
8543
  multiple: true,
8489
8544
  fullWidth: true,
8490
8545
  size: "small",
@@ -8505,7 +8560,7 @@ function RowTagSelect({ selected, options, onChange }) {
8505
8560
  fontSize: 13
8506
8561
  },
8507
8562
  children: [
8508
- options.map((item) => /* @__PURE__ */ _jsxs2(MenuItem2, {
8563
+ options.map((item) => /* @__PURE__ */ _jsxs3(MenuItem2, {
8509
8564
  value: item,
8510
8565
  children: [
8511
8566
  /* @__PURE__ */ _jsx3(Checkbox2, {
@@ -8541,6 +8596,31 @@ var columnWidths = {
8541
8596
  tradingHours: 160,
8542
8597
  priceRange: 112
8543
8598
  };
8599
+ var mobileColumnWidths = {
8600
+ name: 88,
8601
+ code: 60,
8602
+ exchange: 60,
8603
+ initialMargin: 90,
8604
+ tradingFee: 64,
8605
+ tickSize: 54,
8606
+ margin: 70,
8607
+ priceUnit: 88,
8608
+ contractSize: 110,
8609
+ settlement: 92,
8610
+ deliveryDay: 90,
8611
+ tradingHours: 120,
8612
+ priceRange: 70
8613
+ };
8614
+ var rightAlignedColumns = /* @__PURE__ */ new Set([
8615
+ "initialMargin",
8616
+ "tradingFee",
8617
+ "tickSize",
8618
+ "margin",
8619
+ "settlement",
8620
+ "priceRange",
8621
+ "priceUnit",
8622
+ "unit"
8623
+ ]);
8544
8624
  function FeesTable({ value: value4, editable = false, onChange, labels, size = "md", tagOrder = [], language = "vi" }) {
8545
8625
  const [search, setSearch] = useState5("");
8546
8626
  const [tag, setTag] = useState5("");
@@ -8661,9 +8741,9 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8661
8741
  });
8662
8742
  const columns = value4.columns.map((column, index) => ({
8663
8743
  key: column.key,
8664
- width: columnWidths[column.key] ?? 140,
8744
+ width: canEdit ? columnWidths[column.key] ?? 140 : index === 0 ? 178 : 170,
8665
8745
  fixed: index === 0 ? "left" : void 0,
8666
- title: canEdit ? /* @__PURE__ */ _jsxs2(HeaderGroup, {
8746
+ title: canEdit ? /* @__PURE__ */ _jsxs3(HeaderGroup, {
8667
8747
  children: [
8668
8748
  /* @__PURE__ */ _jsx3(HeaderTitle, {
8669
8749
  children: /* @__PURE__ */ _jsx3(CellEditor, {
@@ -8693,7 +8773,10 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8693
8773
  })
8694
8774
  })
8695
8775
  ]
8696
- }) : column.title,
8776
+ }) : /* @__PURE__ */ _jsx3(FeesCellContent, {
8777
+ $alignRight: rightAlignedColumns.has(column.key),
8778
+ children: column.title
8779
+ }),
8697
8780
  render: (_unused, row) => canEdit ? /* @__PURE__ */ _jsx3(CellEditor, {
8698
8781
  rows: Math.max(2, (row.cells[column.key] ?? "").split("\n").length),
8699
8782
  value: row.cells[column.key] ?? "",
@@ -8704,11 +8787,14 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8704
8787
  [column.key]: event.target.value
8705
8788
  }
8706
8789
  })
8707
- }) : row.cells[column.key] ?? ""
8790
+ }) : /* @__PURE__ */ _jsx3(FeesCellContent, {
8791
+ $alignRight: rightAlignedColumns.has(column.key),
8792
+ children: row.cells[column.key] ?? ""
8793
+ })
8708
8794
  }));
8709
8795
  if (canEdit) columns.push({
8710
8796
  key: "__tags",
8711
- title: /* @__PURE__ */ _jsxs2(HeaderGroup, {
8797
+ title: /* @__PURE__ */ _jsxs3(HeaderGroup, {
8712
8798
  children: [
8713
8799
  /* @__PURE__ */ _jsx3(HeaderTitle, {
8714
8800
  children: "Tag & th\u1EE9 t\u1EF1 d\xF2ng"
@@ -8717,7 +8803,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8717
8803
  ]
8718
8804
  }),
8719
8805
  width: 300,
8720
- render: (_unused, row) => /* @__PURE__ */ _jsxs2(EditGroup, {
8806
+ render: (_unused, row) => /* @__PURE__ */ _jsxs3(EditGroup, {
8721
8807
  children: [
8722
8808
  /* @__PURE__ */ _jsx3(RowTagSelect, {
8723
8809
  selected: row.tags,
@@ -8726,7 +8812,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8726
8812
  tags: next
8727
8813
  })
8728
8814
  }),
8729
- /* @__PURE__ */ _jsxs2(OrderActions, {
8815
+ /* @__PURE__ */ _jsxs3(OrderActions, {
8730
8816
  children: [
8731
8817
  /* @__PURE__ */ _jsx3(Position, {
8732
8818
  value: value4.rows.findIndex((item) => item.id === row.id),
@@ -8766,7 +8852,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8766
8852
  });
8767
8853
  return /* @__PURE__ */ _jsx3(ThemeProvider, {
8768
8854
  theme: feesTheme,
8769
- children: /* @__PURE__ */ _jsxs2("div", {
8855
+ children: /* @__PURE__ */ _jsxs3("div", {
8770
8856
  ref: tableRoot,
8771
8857
  "data-cms-table-editor": true,
8772
8858
  onClick: (event) => {
@@ -8775,7 +8861,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8775
8861
  children: [
8776
8862
  /* @__PURE__ */ _jsx3(FeesAndMarginToolbar, {
8777
8863
  "aria-label": "L\u1ECDc b\u1EA3ng ph\xED v\xE0 k\xFD qu\u1EF9",
8778
- children: /* @__PURE__ */ _jsxs2(FeesAndMarginToolbarInner, {
8864
+ children: /* @__PURE__ */ _jsxs3(FeesAndMarginToolbarInner, {
8779
8865
  children: [
8780
8866
  /* @__PURE__ */ _jsx3("div", {
8781
8867
  style: {
@@ -8817,7 +8903,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8817
8903
  ]
8818
8904
  })
8819
8905
  }),
8820
- canEdit && /* @__PURE__ */ _jsxs2(EditorActions, {
8906
+ canEdit && /* @__PURE__ */ _jsxs3(EditorActions, {
8821
8907
  children: [
8822
8908
  /* @__PURE__ */ _jsx3(EditorButton, {
8823
8909
  type: "button",
@@ -8848,7 +8934,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8848
8934
  onClick: addColumn,
8849
8935
  children: "+ Th\xEAm c\u1ED9t"
8850
8936
  }),
8851
- /* @__PURE__ */ _jsxs2(EditorButton, {
8937
+ /* @__PURE__ */ _jsxs3(EditorButton, {
8852
8938
  type: "button",
8853
8939
  onClick: () => setColumnsOpen(true),
8854
8940
  children: [
@@ -8868,6 +8954,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8868
8954
  ]
8869
8955
  }),
8870
8956
  /* @__PURE__ */ _jsx3(AlignedFeesTable, {
8957
+ $mobileColumnWidths: columns.map((column) => mobileColumnWidths[column.key] ?? 88),
8871
8958
  "data-editable": canEdit || void 0,
8872
8959
  children: /* @__PURE__ */ _jsx3(Table, {
8873
8960
  ariaLabel: english ? "Fees and margin table" : "B\u1EA3ng ph\xED v\xE0 k\xFD qu\u1EF9",
@@ -8877,19 +8964,19 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8877
8964
  size,
8878
8965
  empty: labels?.empty ?? "Kh\xF4ng t\xECm th\u1EA5y h\xE0ng h\xF3a",
8879
8966
  scroll: {
8880
- x: Math.max(1440, value4.columns.reduce((sum, column) => sum + (columnWidths[column.key] ?? 140), 0) + (canEdit ? 300 : 0))
8967
+ x: canEdit ? Math.max(1440, value4.columns.reduce((sum, column) => sum + (columnWidths[column.key] ?? 140), 0) + 300) : value4.columns.length * 170 + 8
8881
8968
  }
8882
8969
  })
8883
8970
  }),
8884
- /* @__PURE__ */ _jsxs2(PaginationControls, {
8971
+ /* @__PURE__ */ _jsxs3(PaginationControls, {
8885
8972
  children: [
8886
- /* @__PURE__ */ _jsxs2(PageSizeLabel, {
8973
+ /* @__PURE__ */ _jsxs3(PageSizeLabel, {
8887
8974
  children: [
8888
8975
  /* @__PURE__ */ _jsx3("span", {
8889
8976
  id: `${dialogId}-page-size-label`,
8890
8977
  children: english ? "Rows per page:" : "S\u1ED1 d\xF2ng m\u1ED7i trang:"
8891
8978
  }),
8892
- /* @__PURE__ */ _jsxs2(Select2, {
8979
+ /* @__PURE__ */ _jsxs3(Select2, {
8893
8980
  size: "small",
8894
8981
  value: pageSize,
8895
8982
  labelId: `${dialogId}-page-size-label`,
@@ -8927,7 +9014,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8927
9014
  })
8928
9015
  ]
8929
9016
  }),
8930
- /* @__PURE__ */ _jsxs2("span", {
9017
+ /* @__PURE__ */ _jsxs3("span", {
8931
9018
  "aria-live": "polite",
8932
9019
  style: {
8933
9020
  fontSize: 13
@@ -8954,7 +9041,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8954
9041
  })
8955
9042
  ]
8956
9043
  }),
8957
- /* @__PURE__ */ _jsxs2(Dialog2, {
9044
+ /* @__PURE__ */ _jsxs3(Dialog2, {
8958
9045
  open: columnsOpen && canEdit,
8959
9046
  onClose: () => setColumnsOpen(false),
8960
9047
  container: () => tableRoot.current?.ownerDocument.body ?? document.body,
@@ -8966,12 +9053,12 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8966
9053
  id: `${dialogId}-columns-title`,
8967
9054
  children: "Qu\u1EA3n l\xFD c\u1ED9t"
8968
9055
  }),
8969
- /* @__PURE__ */ _jsxs2(DialogContent, {
9056
+ /* @__PURE__ */ _jsxs3(DialogContent, {
8970
9057
  children: [
8971
9058
  /* @__PURE__ */ _jsx3(DialogContentText, {
8972
9059
  children: "\u0110\u1ED5i ti\xEAu \u0111\u1EC1 v\xE0 v\u1ECB tr\xED c\u1ED9t. V\u1ECB tr\xED d\xF2ng/c\u1ED9t \u0111\u01B0\u1EE3c t\xEDnh trong to\xE0n b\u1EA3ng, k\u1EC3 c\u1EA3 c\xE1c d\xF2ng \u0111ang \u1EA9n b\u1EDFi b\u1ED9 l\u1ECDc."
8973
9060
  }),
8974
- value4.columns.map((column, index) => /* @__PURE__ */ _jsxs2(ColumnRow, {
9061
+ value4.columns.map((column, index) => /* @__PURE__ */ _jsxs3(ColumnRow, {
8975
9062
  children: [
8976
9063
  /* @__PURE__ */ _jsx3(CellEditor, {
8977
9064
  "aria-label": `Ti\xEAu \u0111\u1EC1 c\u1ED9t ${index + 1}`,
@@ -8984,7 +9071,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
8984
9071
  } : item)
8985
9072
  })
8986
9073
  }),
8987
- /* @__PURE__ */ _jsxs2(OrderActions, {
9074
+ /* @__PURE__ */ _jsxs3(OrderActions, {
8988
9075
  children: [
8989
9076
  /* @__PURE__ */ _jsx3(Position, {
8990
9077
  value: index,
@@ -9036,7 +9123,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
9036
9123
  })
9037
9124
  ]
9038
9125
  }),
9039
- /* @__PURE__ */ _jsxs2(Dialog2, {
9126
+ /* @__PURE__ */ _jsxs3(Dialog2, {
9040
9127
  open: createTagOpen && canEdit,
9041
9128
  onClose: () => setCreateTagOpen(false),
9042
9129
  container: () => tableRoot.current?.ownerDocument.body ?? document.body,
@@ -9066,7 +9153,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
9066
9153
  }
9067
9154
  })
9068
9155
  }),
9069
- /* @__PURE__ */ _jsxs2(DialogActions, {
9156
+ /* @__PURE__ */ _jsxs3(DialogActions, {
9070
9157
  children: [
9071
9158
  /* @__PURE__ */ _jsx3(Button7, {
9072
9159
  onClick: () => setCreateTagOpen(false),
@@ -9082,7 +9169,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
9082
9169
  })
9083
9170
  ]
9084
9171
  }),
9085
- /* @__PURE__ */ _jsxs2(Dialog2, {
9172
+ /* @__PURE__ */ _jsxs3(Dialog2, {
9086
9173
  open: Boolean(deleteTarget) && canEdit,
9087
9174
  onClose: () => setDeleteTarget(null),
9088
9175
  container: () => tableRoot.current?.ownerDocument.body ?? document.body,
@@ -9091,7 +9178,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
9091
9178
  fullWidth: true,
9092
9179
  maxWidth: "xs",
9093
9180
  children: [
9094
- /* @__PURE__ */ _jsxs2(DialogTitle, {
9181
+ /* @__PURE__ */ _jsxs3(DialogTitle, {
9095
9182
  id: `${dialogId}-title`,
9096
9183
  children: [
9097
9184
  "X\xF3a ",
@@ -9105,14 +9192,14 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
9105
9192
  children: deleteTarget?.kind === "column" ? `B\u1EA1n c\xF3 mu\u1ED1n x\xF3a c\u1ED9t \u201C${deleteTarget.label}\u201D v\xE0 to\xE0n b\u1ED9 n\u1ED9i dung trong c\u1ED9t n\xE0y?` : `B\u1EA1n c\xF3 mu\u1ED1n x\xF3a h\xE0ng \u201C${deleteTarget?.label ?? ""}\u201D?`
9106
9193
  })
9107
9194
  }),
9108
- /* @__PURE__ */ _jsxs2(DialogActions, {
9195
+ /* @__PURE__ */ _jsxs3(DialogActions, {
9109
9196
  children: [
9110
9197
  /* @__PURE__ */ _jsx3(Button7, {
9111
9198
  autoFocus: true,
9112
9199
  onClick: () => setDeleteTarget(null),
9113
9200
  children: "H\u1EE7y"
9114
9201
  }),
9115
- /* @__PURE__ */ _jsxs2(Button7, {
9202
+ /* @__PURE__ */ _jsxs3(Button7, {
9116
9203
  color: "error",
9117
9204
  variant: "contained",
9118
9205
  onClick: confirmDelete,
@@ -9472,7 +9559,7 @@ var BulletList2 = styled14.ul.withConfig({
9472
9559
  ], accent);
9473
9560
 
9474
9561
  // src/commodity-original/components/SupportRequestBlock/index.tsx
9475
- import { jsx as _jsx4, jsxs as _jsxs3 } from "react/jsx-runtime";
9562
+ import { jsx as _jsx4, jsxs as _jsxs4 } from "react/jsx-runtime";
9476
9563
  import styled15 from "styled-components";
9477
9564
  import { useTranslation as useTranslation7 } from "react-i18next";
9478
9565
  var SupportSection = styled15.section.withConfig({
@@ -9515,7 +9602,7 @@ function SupportRequestBlock() {
9515
9602
  value: "other"
9516
9603
  }
9517
9604
  ];
9518
- return /* @__PURE__ */ _jsxs3(SupportSection, {
9605
+ return /* @__PURE__ */ _jsxs4(SupportSection, {
9519
9606
  "aria-labelledby": "support-request-title",
9520
9607
  children: [
9521
9608
  /* @__PURE__ */ _jsx4(ExactText, {
@@ -9523,12 +9610,12 @@ function SupportRequestBlock() {
9523
9610
  id: "support-request-title",
9524
9611
  children: t("complaints.support.title")
9525
9612
  }),
9526
- /* @__PURE__ */ _jsxs3(SupportForm, {
9613
+ /* @__PURE__ */ _jsxs4(SupportForm, {
9527
9614
  onSubmit: (event) => event.preventDefault(),
9528
9615
  children: [
9529
- /* @__PURE__ */ _jsxs3("label", {
9616
+ /* @__PURE__ */ _jsxs4("label", {
9530
9617
  children: [
9531
- /* @__PURE__ */ _jsxs3("span", {
9618
+ /* @__PURE__ */ _jsxs4("span", {
9532
9619
  children: [
9533
9620
  t("landing.register.fields.name"),
9534
9621
  " ",
@@ -9546,9 +9633,9 @@ function SupportRequestBlock() {
9546
9633
  })
9547
9634
  ]
9548
9635
  }),
9549
- /* @__PURE__ */ _jsxs3("label", {
9636
+ /* @__PURE__ */ _jsxs4("label", {
9550
9637
  children: [
9551
- /* @__PURE__ */ _jsxs3("span", {
9638
+ /* @__PURE__ */ _jsxs4("span", {
9552
9639
  children: [
9553
9640
  t("landing.register.fields.phone"),
9554
9641
  " ",
@@ -9566,7 +9653,7 @@ function SupportRequestBlock() {
9566
9653
  })
9567
9654
  ]
9568
9655
  }),
9569
- /* @__PURE__ */ _jsxs3("label", {
9656
+ /* @__PURE__ */ _jsxs4("label", {
9570
9657
  children: [
9571
9658
  /* @__PURE__ */ _jsx4(ExactText, {
9572
9659
  cmsAs: "span",
@@ -9580,7 +9667,7 @@ function SupportRequestBlock() {
9580
9667
  })
9581
9668
  ]
9582
9669
  }),
9583
- /* @__PURE__ */ _jsxs3("label", {
9670
+ /* @__PURE__ */ _jsxs4("label", {
9584
9671
  children: [
9585
9672
  /* @__PURE__ */ _jsx4(ExactText, {
9586
9673
  cmsAs: "span",
@@ -10695,7 +10782,7 @@ var benefits = [
10695
10782
  ];
10696
10783
  var positionSlides = [
10697
10784
  {
10698
- image: "",
10785
+ image: "/landing-assets/mxv-certificate-wikex.webp",
10699
10786
  imageWidth: 238,
10700
10787
  imageHeight: 340,
10701
10788
  mediaType: "image",
@@ -11838,7 +11925,7 @@ function FeaturedArticles() {
11838
11925
  }
11839
11926
 
11840
11927
  // src/commodity-original/app/thong-tin-wikex/WikexInformationSections.tsx
11841
- import { jsx as _jsx5, jsxs as _jsxs4 } from "react/jsx-runtime";
11928
+ import { jsx as _jsx5, jsxs as _jsxs5 } from "react/jsx-runtime";
11842
11929
  import { useMemo as useMemo6, useState as useState11 } from "react";
11843
11930
  import { useTranslation as useTranslation13 } from "react-i18next";
11844
11931
  import styled26 from "styled-components";
@@ -11970,11 +12057,11 @@ function WikexInformationArticlesSection() {
11970
12057
  setPage(1);
11971
12058
  setSearch("");
11972
12059
  };
11973
- return /* @__PURE__ */ _jsxs4(InformationArticlesRoot, {
12060
+ return /* @__PURE__ */ _jsxs5(InformationArticlesRoot, {
11974
12061
  children: [
11975
12062
  /* @__PURE__ */ _jsx5(WikexControls, {
11976
12063
  "aria-label": t("wikexInformation.filterLabel"),
11977
- children: /* @__PURE__ */ _jsxs4(WikexControlsInner, {
12064
+ children: /* @__PURE__ */ _jsxs5(WikexControlsInner, {
11978
12065
  children: [
11979
12066
  /* @__PURE__ */ _jsx5(WikexTabs, {
11980
12067
  children: /* @__PURE__ */ _jsx5(TabCommon, {
@@ -11988,7 +12075,7 @@ function WikexInformationArticlesSection() {
11988
12075
  value: activeCategory
11989
12076
  })
11990
12077
  }),
11991
- /* @__PURE__ */ _jsxs4(WikexFilterControls, {
12078
+ /* @__PURE__ */ _jsxs5(WikexFilterControls, {
11992
12079
  children: [
11993
12080
  /* @__PURE__ */ _jsx5(WikexSearch, {
11994
12081
  children: /* @__PURE__ */ _jsx5(InputCommon, {
@@ -12023,7 +12110,7 @@ function WikexInformationArticlesSection() {
12023
12110
  ]
12024
12111
  })
12025
12112
  }),
12026
- /* @__PURE__ */ _jsxs4(WikexContent, {
12113
+ /* @__PURE__ */ _jsxs5(WikexContent, {
12027
12114
  children: [
12028
12115
  /* @__PURE__ */ _jsx5(WikexArticleGrid, {
12029
12116
  "aria-label": t("wikexInformation.listLabel"),
@@ -12059,7 +12146,7 @@ import Link8 from "next/link.js";
12059
12146
  import { useTranslation as useTranslation14 } from "react-i18next";
12060
12147
 
12061
12148
  // src/commodity-original/lib/app-theme-provider.tsx
12062
- import { jsx as _jsx6, jsxs as _jsxs5 } from "react/jsx-runtime";
12149
+ import { jsx as _jsx6, jsxs as _jsxs6 } from "react/jsx-runtime";
12063
12150
  import { createContext as createContext8, useCallback, useContext as useContext8, useLayoutEffect as useLayoutEffect3, useMemo as useMemo7, useRef as useRef5, useSyncExternalStore as useSyncExternalStore2 } from "react";
12064
12151
  import { ThemeProvider as ThemeProvider2 } from "styled-components";
12065
12152
 
@@ -12267,7 +12354,7 @@ function AppThemeProvider({ children }) {
12267
12354
  style: {
12268
12355
  display: "contents"
12269
12356
  },
12270
- children: /* @__PURE__ */ _jsxs5(ThemeProvider2, {
12357
+ children: /* @__PURE__ */ _jsxs6(ThemeProvider2, {
12271
12358
  theme: appTheme,
12272
12359
  children: [
12273
12360
  /* @__PURE__ */ _jsx6(global_styles_default, {}),
@@ -14085,7 +14172,7 @@ function FaqSection2() {
14085
14172
  import { useTranslation as useTranslation23 } from "react-i18next";
14086
14173
 
14087
14174
  // src/commodity-original/components/Background/index.tsx
14088
- import { jsx as _jsx8, jsxs as _jsxs6 } from "react/jsx-runtime";
14175
+ import { jsx as _jsx8, jsxs as _jsxs7 } from "react/jsx-runtime";
14089
14176
  import { memo, useEffect as useEffect9, useId as useId3, useRef as useRef7 } from "react";
14090
14177
  import { styled as styled29 } from "styled-components";
14091
14178
  var TWO_PI = Math.PI * 2;
@@ -14359,7 +14446,7 @@ var DotField = /* @__PURE__ */ memo(({ dotRadius = 1.5, dotSpacing = 14, cursorR
14359
14446
  dotRadius,
14360
14447
  dotSpacing
14361
14448
  ]);
14362
- return /* @__PURE__ */ _jsxs6(DotContainer, {
14449
+ return /* @__PURE__ */ _jsxs7(DotContainer, {
14363
14450
  ...rest,
14364
14451
  children: [
14365
14452
  /* @__PURE__ */ _jsx8("canvas", {
@@ -14371,7 +14458,7 @@ var DotField = /* @__PURE__ */ memo(({ dotRadius = 1.5, dotSpacing = 14, cursorR
14371
14458
  height: "100%"
14372
14459
  }
14373
14460
  }),
14374
- /* @__PURE__ */ _jsxs6("svg", {
14461
+ /* @__PURE__ */ _jsxs7("svg", {
14375
14462
  ref: svgRef,
14376
14463
  style: {
14377
14464
  position: "absolute",
@@ -14382,7 +14469,7 @@ var DotField = /* @__PURE__ */ memo(({ dotRadius = 1.5, dotSpacing = 14, cursorR
14382
14469
  },
14383
14470
  children: [
14384
14471
  /* @__PURE__ */ _jsx8("defs", {
14385
- children: /* @__PURE__ */ _jsxs6("radialGradient", {
14472
+ children: /* @__PURE__ */ _jsxs7("radialGradient", {
14386
14473
  id: glowId,
14387
14474
  children: [
14388
14475
  /* @__PURE__ */ _jsx8("stop", {
@@ -14960,7 +15047,7 @@ function PositionSection() {
14960
15047
  /* @__PURE__ */ jsx44(ExactText, { cmsAs: "p", children: t(`${key}.paragraphs.1`) })
14961
15048
  ] })
14962
15049
  ] }),
14963
- slide.image === "" ? null : /* @__PURE__ */ jsx44(
15050
+ /* @__PURE__ */ jsx44(
14964
15051
  PositionMedia,
14965
15052
  {
14966
15053
  slide,
@@ -15076,7 +15163,7 @@ function PositionSection() {
15076
15163
  )
15077
15164
  ] })
15078
15165
  ] }),
15079
- slide.image === "" ? null : /* @__PURE__ */ jsx44(
15166
+ /* @__PURE__ */ jsx44(
15080
15167
  PositionMedia,
15081
15168
  {
15082
15169
  slide,
@@ -16039,6 +16126,7 @@ var heroImages = [
16039
16126
  image("heroLabelTwoMobileImage", "Nh\xE3n minh h\u1ECDa 2 mobile", "/landing-assets/key_mock_2_mobile.webp")
16040
16127
  ];
16041
16128
  var positionImages = [
16129
+ image("positionSlide1Image", "\u1EA2nh slide 1", "/landing-assets/mxv-certificate-wikex.webp"),
16042
16130
  image("positionSlide2Image", "\u1EA2nh slide 2", "/landing-assets/slide_img_2.webp"),
16043
16131
  image("positionSlide3Image", "\u1EA2nh slide 3", "/landing-assets/slide_img_3.webp"),
16044
16132
  image("positionSlide4Image", "\u1EA2nh slide 4", "/landing-assets/slide_img_4.webp")
@@ -16651,7 +16739,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
16651
16739
  const fontLabel = matchedFont?.[1] ?? fontName;
16652
16740
  const selectedFont = layout.fontFamily ?? matchedFont?.[0] ?? "";
16653
16741
  const tooltipProps = { slotProps: { popper: { sx: { zIndex: 1800 } } } };
16654
- const inputSx = { width: 52, flexShrink: 0, "& .MuiInputBase-root": { height: 32 }, "& input": { py: 0.5, px: 0.75, fontSize: 12 } };
16742
+ const inputSx = { width: 52, flexShrink: 0, "& .MuiInputBase-root": { height: 30 }, "& input": { py: 0.5, px: 0.75, fontSize: 12 } };
16655
16743
  const groupSx = { display: "flex", alignItems: "center", gap: 0.5 };
16656
16744
  return /* @__PURE__ */ jsxs40(
16657
16745
  Box7,
@@ -16662,7 +16750,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
16662
16750
  "data-cms-text-toolbar": true,
16663
16751
  sx: { display: "flex", flexDirection: "column", gap: 0.5, p: 0.75, border: "1px solid", borderColor: "divider", borderRadius: 1, bgcolor: "background.paper", boxShadow: 8, color: "text.primary", maxWidth: "100%" },
16664
16752
  children: [
16665
- /* @__PURE__ */ jsxs40(Box7, { sx: { ...groupSx, flexWrap: "wrap", "& > .MuiInputBase-root:nth-of-type(-n+2)": { flexGrow: 1 }, pb: 0.5, borderBottom: "1px solid", borderColor: "divider" }, children: [
16753
+ /* @__PURE__ */ jsxs40(Box7, { sx: { ...groupSx, flexWrap: "wrap", rowGap: 0.75, pb: 0.75, borderBottom: "1px solid", borderColor: "divider" }, children: [
16666
16754
  /* @__PURE__ */ jsxs40(
16667
16755
  Select3,
16668
16756
  {
@@ -16672,7 +16760,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
16672
16760
  inputProps: { "aria-label": "Font ch\u1EEF" },
16673
16761
  renderValue: (value4) => value4 ? CMS_TEXT_FONTS[value4] : fontLabel,
16674
16762
  MenuProps: { disableScrollLock: true, container: () => toolbarRef.current?.ownerDocument.body ?? null, sx: { zIndex: 1600 }, slotProps: { paper: { sx: { maxHeight: 320 } } } },
16675
- sx: { width: 128, height: 30, fontSize: 12, "& .MuiSelect-select": { py: 0.5, pl: 1, pr: "24px !important" }, "& .MuiSelect-icon": { right: 3 } },
16763
+ sx: { width: "auto", maxWidth: 160, height: 30, fontSize: 12, "& .MuiSelect-select": { py: 0.5, pl: 1, pr: "24px !important", overflow: "hidden", textOverflow: "ellipsis" }, "& .MuiSelect-icon": { right: 2 } },
16676
16764
  onChange: (event) => onLayoutChange({ fontFamily: event.target.value || void 0 }),
16677
16765
  children: [
16678
16766
  !selectedFont && /* @__PURE__ */ jsx47(MenuItem3, { value: "", sx: { fontSize: 12 }, children: fontLabel }),
@@ -16711,7 +16799,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
16711
16799
  type: "number",
16712
16800
  value: lineHeight,
16713
16801
  slotProps: { input: { startAdornment: /* @__PURE__ */ jsx47(InputAdornment2, { position: "start", sx: { mr: 0 }, children: /* @__PURE__ */ jsx47(SvgIcon, { sx: { fontSize: 17 }, children: /* @__PURE__ */ jsx47("path", { d: "M3 4 0 7h2v10H0l3 3 3-3H4V7h2L3 4zm5 2h16v2H8zm0 5h16v2H8zm0 5h16v2H8z" }) }) }) }, htmlInput: { "aria-label": "Chi\u1EC1u cao d\xF2ng", min: 0.5, max: 5, step: 0.1 } },
16714
- sx: { ...inputSx, width: 78, "& .MuiInputBase-root": { height: 32, pl: 0.75 } },
16802
+ sx: { ...inputSx, width: 78, "& .MuiInputBase-root": { height: 30, pl: 0.75 } },
16715
16803
  onChange: (event) => {
16716
16804
  dirtyLineHeight.current = true;
16717
16805
  setLineHeight(event.target.value);
@@ -16795,11 +16883,14 @@ var wikexCmsBlocks = sourceCmsBlocks.map((block) => {
16795
16883
  });
16796
16884
  export {
16797
16885
  CMS_ELEMENTS_FIELD,
16886
+ CMS_LIST_MARKERS,
16798
16887
  CMS_TEXT_FONTS,
16799
16888
  CMS_TEXT_LAYOUT_SUFFIX,
16800
16889
  CmsTextToolbar,
16801
16890
  FeesTable,
16802
16891
  applyCmsTextLayout,
16892
+ cmsListAnchor,
16893
+ cmsListMarkerType,
16803
16894
  cmsTextLayoutStyle,
16804
16895
  migrateWikexChromeContent,
16805
16896
  minimalMarketingBlocks,