@enyxs/wikex-components 0.11.32 → 0.11.33

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
@@ -3544,7 +3544,7 @@ var dynamicListBlocks = configs.map(createBlock);
3544
3544
  var dynamicListTypes = new Set(dynamicListBlocks.map((block) => block.definition.type));
3545
3545
 
3546
3546
  // src/wikex/original-commodity-blocks.tsx
3547
- import { useEffect as useEffect11, useLayoutEffect as useLayoutEffect4, useMemo as useMemo8, useRef as useRef10 } from "react";
3547
+ import { useEffect as useEffect11, useLayoutEffect as useLayoutEffect4, useMemo as useMemo8, useRef as useRef11 } from "react";
3548
3548
  import { usePathname as usePathname2 } from "next/navigation.js";
3549
3549
  import { createInstance } from "i18next";
3550
3550
  import { I18nextProvider, initReactI18next } from "react-i18next";
@@ -7552,9 +7552,9 @@ import { useTranslation as useTranslation4 } from "react-i18next";
7552
7552
 
7553
7553
  // src/wikex/fees-table.tsx
7554
7554
  import { jsx as _jsx3, jsxs as _jsxs3 } from "react/jsx-runtime";
7555
- import { useId, useLayoutEffect as useLayoutEffect2, useRef as useRef4, useState as useState6 } from "react";
7555
+ import { useId, useLayoutEffect as useLayoutEffect2, useRef as useRef5, useState as useState6 } from "react";
7556
7556
  import styled12, { ThemeProvider } from "styled-components";
7557
- import TextField3 from "@mui/material/TextField";
7557
+ import TextField4 from "@mui/material/TextField";
7558
7558
  import Dialog2 from "@mui/material/Dialog";
7559
7559
  import DialogTitle from "@mui/material/DialogTitle";
7560
7560
  import DialogContent from "@mui/material/DialogContent";
@@ -7562,7 +7562,7 @@ import DialogContentText from "@mui/material/DialogContentText";
7562
7562
  import DialogActions from "@mui/material/DialogActions";
7563
7563
  import Button9 from "@mui/material/Button";
7564
7564
  import Select2 from "@mui/material/Select";
7565
- import MenuItem3 from "@mui/material/MenuItem";
7565
+ import MenuItem4 from "@mui/material/MenuItem";
7566
7566
  import Checkbox2 from "@mui/material/Checkbox";
7567
7567
  import Collapse from "@mui/material/Collapse";
7568
7568
 
@@ -7605,23 +7605,23 @@ function moveFeesItem(items, from, to) {
7605
7605
  next.splice(to, 0, item);
7606
7606
  return next;
7607
7607
  }
7608
- function setFeesCellAlignment(table, target, textAlign) {
7609
- if (!table.columns.some((column) => column.key === target.columnKey)) return table;
7610
- if (target.part === "thead") {
7611
- return { ...table, columns: table.columns.map((column) => {
7612
- if (column.key !== target.columnKey) return column;
7608
+ function setFeesColumnAlignment(table, columnKey, textAlign) {
7609
+ if (!table.columns.some((column) => column.key === columnKey)) return table;
7610
+ return {
7611
+ ...table,
7612
+ columns: table.columns.map((column) => {
7613
+ if (column.key !== columnKey) return column;
7613
7614
  const { textAlign: _previous, ...rest } = column;
7614
7615
  return { ...rest, ...textAlign ? { textAlign } : {} };
7615
- }) };
7616
- }
7617
- if (!table.rows.some((row) => row.id === target.rowId)) return table;
7618
- return { ...table, rows: table.rows.map((row) => {
7619
- if (row.id !== target.rowId) return row;
7620
- const { cellAlignments: _previous, ...rest } = row;
7621
- const alignments = { ...row.cellAlignments, ...textAlign ? { [target.columnKey]: textAlign } : {} };
7622
- if (!textAlign) delete alignments[target.columnKey];
7623
- return { ...rest, ...Object.keys(alignments).length ? { cellAlignments: alignments } : {} };
7624
- }) };
7616
+ }),
7617
+ rows: table.rows.map((row) => {
7618
+ if (!row.cellAlignments || !Object.prototype.hasOwnProperty.call(row.cellAlignments, columnKey)) return row;
7619
+ const { cellAlignments, ...rest } = row;
7620
+ const alignments = { ...cellAlignments };
7621
+ delete alignments[columnKey];
7622
+ return { ...rest, ...Object.keys(alignments).length ? { cellAlignments: alignments } : {} };
7623
+ })
7624
+ };
7625
7625
  }
7626
7626
  function validateFeesTextAlign(value4) {
7627
7627
  if (!FEES_TEXT_ALIGNS.includes(value4)) throw new Error("C\u0103n l\u1EC1 b\u1EA3ng ph\xED kh\xF4ng h\u1EE3p l\u1EC7. Ch\u1ECDn c\u0103n tr\xE1i, gi\u1EEFa ho\u1EB7c ph\u1EA3i.");
@@ -7842,7 +7842,7 @@ function FeesTypographyControls({ value: value4, onChange }) {
7842
7842
  /* @__PURE__ */ jsxs9(Stack4, { direction: { xs: "column", sm: "row" }, gap: 1.5, justifyContent: "space-between", alignItems: { sm: "center" }, sx: { mb: 2 }, children: [
7843
7843
  /* @__PURE__ */ jsxs9(Box6, { children: [
7844
7844
  /* @__PURE__ */ jsx15(Typography4, { variant: "subtitle2", children: "\u0110\u1ECBnh d\u1EA1ng ch\u1EEF" }),
7845
- /* @__PURE__ */ jsx15(Typography4, { variant: "caption", color: "text.secondary", children: "C\u1EE1 ch\u1EEF v\xE0 \u0111\u1ED9 \u0111\u1EADm \xE1p d\u1EE5ng cho to\xE0n b\u1EA3ng, theo ng\xF4n ng\u1EEF \u0111ang ch\u1ECDn. C\u0103n l\u1EC1 \u0111\u01B0\u1EE3c ch\u1EC9nh ri\xEAng b\u1EB1ng c\xE1ch ch\u1ECDn t\u1EEBng \xF4." })
7845
+ /* @__PURE__ */ jsx15(Typography4, { variant: "caption", color: "text.secondary", children: "C\u1EE1 ch\u1EEF v\xE0 \u0111\u1ED9 \u0111\u1EADm \xE1p d\u1EE5ng cho to\xE0n b\u1EA3ng, theo ng\xF4n ng\u1EEF \u0111ang ch\u1ECDn. Ch\u1ECDn c\u1ED9t trong m\u1EE5c C\u0103n l\u1EC1 theo c\u1ED9t \u0111\u1EC3 ch\u1EC9nh ti\xEAu \u0111\u1EC1 v\xE0 to\xE0n b\u1ED9 gi\xE1 tr\u1ECB c\u1EE7a c\u1ED9t." })
7846
7846
  ] }),
7847
7847
  /* @__PURE__ */ jsxs9(Stack4, { direction: "row", gap: 1, flexShrink: 0, children: [
7848
7848
  /* @__PURE__ */ jsx15(Button7, { size: "small", variant: "outlined", onClick: () => onChange({ thead: { ...value4?.thead, fontSize: 14, fontWeight: 700 }, tbody: { ...value4?.tbody, fontSize: 14, fontWeight: 500 } }), children: "D\u1EC5 \u0111\u1ECDc" }),
@@ -7881,53 +7881,78 @@ function FeesTypographyControls({ value: value4, onChange }) {
7881
7881
  ] });
7882
7882
  }
7883
7883
 
7884
- // src/wikex/fees-cell-alignment-controls.tsx
7885
- import { Button as Button8, Stack as Stack5, Typography as Typography5 } from "@mui/material";
7884
+ // src/wikex/fees-column-alignment-controls.tsx
7885
+ import { useRef as useRef4 } from "react";
7886
+ import { Button as Button8, MenuItem as MenuItem3, Stack as Stack5, TextField as TextField3, Typography as Typography5 } from "@mui/material";
7886
7887
  import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
7887
7888
  var labels = { left: "C\u0103n tr\xE1i", center: "C\u0103n gi\u1EEFa", right: "C\u0103n ph\u1EA3i" };
7888
7889
  var englishLabels = { left: "Align left", center: "Align center", right: "Align right" };
7889
- function FeesCellAlignmentControls({ label, value: value4, english, onChange }) {
7890
+ function FeesColumnAlignmentControls({ columns, columnKey, english, onSelectColumn, onChange }) {
7891
+ const root = useRef4(null);
7892
+ const column = columns.find((item) => item.key === columnKey);
7890
7893
  return /* @__PURE__ */ jsxs10(
7891
7894
  Stack5,
7892
7895
  {
7896
+ ref: root,
7893
7897
  role: "group",
7894
- "aria-label": english ? "Selected cell alignment" : "C\u0103n l\u1EC1 \xF4 \u0111ang ch\u1ECDn",
7895
- direction: { xs: "column", sm: "row" },
7898
+ "aria-label": english ? "Column alignment" : "C\u0103n l\u1EC1 theo c\u1ED9t",
7896
7899
  spacing: 1.5,
7897
- alignItems: { sm: "center" },
7898
7900
  sx: { my: 2, p: 1.5, border: "1px solid", borderColor: "divider", borderRadius: 1.5 },
7899
7901
  children: [
7900
- /* @__PURE__ */ jsxs10(Stack5, { spacing: 0.5, sx: { flex: 1, minWidth: 0 }, children: [
7901
- /* @__PURE__ */ jsx16(Typography5, { variant: "subtitle2", children: english ? "Selected cell alignment" : "C\u0103n l\u1EC1 \xF4 \u0111ang ch\u1ECDn" }),
7902
- /* @__PURE__ */ jsx16(Typography5, { variant: "caption", color: "text.secondary", title: label, noWrap: true, "aria-live": "polite", children: label ?? (english ? "Select a header or value cell to align it." : "B\u1EA5m v\xE0o \xF4 ti\xEAu \u0111\u1EC1 ho\u1EB7c \xF4 gi\xE1 tr\u1ECB c\u1EA7n c\u0103n l\u1EC1.") })
7903
- ] }),
7904
- /* @__PURE__ */ jsxs10(Stack5, { direction: "row", spacing: 0.5, flexWrap: "wrap", useFlexGap: true, children: [
7905
- FEES_TEXT_ALIGNS.map((align) => /* @__PURE__ */ jsx16(
7906
- Button8,
7907
- {
7908
- size: "small",
7909
- disabled: !label,
7910
- variant: value4 === align ? "contained" : "outlined",
7911
- "aria-pressed": value4 === align,
7912
- onMouseDown: (event) => event.preventDefault(),
7913
- onClick: () => onChange(align),
7914
- children: (english ? englishLabels : labels)[align]
7915
- },
7916
- align
7917
- )),
7918
- /* @__PURE__ */ jsx16(
7919
- Button8,
7902
+ /* @__PURE__ */ jsx16(Typography5, { variant: "subtitle2", children: english ? "Column alignment" : "C\u0103n l\u1EC1 theo c\u1ED9t" }),
7903
+ /* @__PURE__ */ jsxs10(Stack5, { direction: { xs: "column", sm: "row" }, spacing: 1.5, alignItems: { sm: "center" }, children: [
7904
+ /* @__PURE__ */ jsxs10(
7905
+ TextField3,
7920
7906
  {
7907
+ select: true,
7921
7908
  size: "small",
7922
- color: "inherit",
7923
- disabled: !label || value4 === void 0,
7924
- "aria-label": english ? "Reset selected cell alignment" : "C\u0103n l\u1EC1 m\u1EB7c \u0111\u1ECBnh cho \xF4 \u0111ang ch\u1ECDn",
7925
- onMouseDown: (event) => event.preventDefault(),
7926
- onClick: () => onChange(void 0),
7927
- children: english ? "Default" : "M\u1EB7c \u0111\u1ECBnh"
7909
+ label: english ? "Column to align" : "C\u1ED9t c\u1EA7n c\u0103n l\u1EC1",
7910
+ value: column?.key ?? "",
7911
+ sx: { flex: 1, minWidth: 0 },
7912
+ slotProps: { inputLabel: { shrink: true }, select: {
7913
+ displayEmpty: true,
7914
+ SelectDisplayProps: { "aria-labelledby": void 0 },
7915
+ inputProps: { "aria-label": english ? "Column to align" : "C\u1ED9t c\u1EA7n c\u0103n l\u1EC1" },
7916
+ MenuProps: { container: () => root.current?.ownerDocument.body ?? document.body }
7917
+ } },
7918
+ onChange: (event) => onSelectColumn(event.target.value),
7919
+ children: [
7920
+ /* @__PURE__ */ jsx16(MenuItem3, { value: "", disabled: true, children: english ? "Select a column" : "Ch\u1ECDn c\u1ED9t" }),
7921
+ columns.map((item, index) => /* @__PURE__ */ jsxs10(MenuItem3, { value: item.key, children: [
7922
+ index + 1,
7923
+ ". ",
7924
+ item.title || (english ? "Untitled column" : "C\u1ED9t ch\u01B0a c\xF3 ti\xEAu \u0111\u1EC1")
7925
+ ] }, item.key))
7926
+ ]
7928
7927
  }
7929
- )
7930
- ] })
7928
+ ),
7929
+ /* @__PURE__ */ jsxs10(Stack5, { direction: "row", spacing: 0.5, flexWrap: "wrap", useFlexGap: true, children: [
7930
+ FEES_TEXT_ALIGNS.map((align) => /* @__PURE__ */ jsx16(
7931
+ Button8,
7932
+ {
7933
+ size: "small",
7934
+ disabled: !column,
7935
+ variant: column?.textAlign === align ? "contained" : "outlined",
7936
+ "aria-pressed": column?.textAlign === align,
7937
+ onClick: () => onChange(align),
7938
+ children: (english ? englishLabels : labels)[align]
7939
+ },
7940
+ align
7941
+ )),
7942
+ /* @__PURE__ */ jsx16(
7943
+ Button8,
7944
+ {
7945
+ size: "small",
7946
+ color: "inherit",
7947
+ disabled: !column,
7948
+ "aria-label": english ? "Reset selected column alignment" : "C\u0103n l\u1EC1 m\u1EB7c \u0111\u1ECBnh cho c\u1ED9t \u0111ang ch\u1ECDn",
7949
+ onClick: () => onChange(void 0),
7950
+ children: english ? "Default" : "M\u1EB7c \u0111\u1ECBnh"
7951
+ }
7952
+ )
7953
+ ] })
7954
+ ] }),
7955
+ /* @__PURE__ */ jsx16(Typography5, { variant: "caption", color: "text.secondary", children: english ? "Applies to the header and all values in the selected column, including filtered rows and other pages." : "\xC1p d\u1EE5ng cho ti\xEAu \u0111\u1EC1 v\xE0 to\xE0n b\u1ED9 gi\xE1 tr\u1ECB c\u1EE7a c\u1ED9t \u0111\xE3 ch\u1ECDn, k\u1EC3 c\u1EA3 c\xE1c d\xF2ng \u0111ang l\u1ECDc v\xE0 \u1EDF trang kh\xE1c." })
7931
7956
  ]
7932
7957
  }
7933
7958
  );
@@ -8692,32 +8717,32 @@ var feesTheme = {
8692
8717
  ]))
8693
8718
  };
8694
8719
  var EditorActions = styled12.div.withConfig({
8695
- componentId: "sc-3c959c0c-0"
8720
+ componentId: "sc-a4d52175-0"
8696
8721
  })([
8697
8722
  `display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
8698
8723
  ]);
8699
8724
  var EditGroup = styled12.div.withConfig({
8700
- componentId: "sc-3c959c0c-1"
8725
+ componentId: "sc-a4d52175-1"
8701
8726
  })([
8702
8727
  `display:flex;flex-direction:column;gap:6px;`
8703
8728
  ]);
8704
8729
  var HeaderGroup = styled12(EditGroup).withConfig({
8705
- componentId: "sc-3c959c0c-2"
8730
+ componentId: "sc-a4d52175-2"
8706
8731
  })([
8707
8732
  `gap:8px;`
8708
8733
  ]);
8709
8734
  var HeaderTitle = styled12.div.withConfig({
8710
- componentId: "sc-3c959c0c-3"
8735
+ componentId: "sc-a4d52175-3"
8711
8736
  })([
8712
8737
  `display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
8713
8738
  ]);
8714
8739
  var HeaderActions = styled12.div.withConfig({
8715
- componentId: "sc-3c959c0c-4"
8740
+ componentId: "sc-a4d52175-4"
8716
8741
  })([
8717
8742
  `display:flex;align-items:center;min-height:24px;`
8718
8743
  ]);
8719
8744
  var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
8720
- componentId: "sc-3c959c0c-5"
8745
+ componentId: "sc-a4d52175-5"
8721
8746
  })([
8722
8747
  `&[data-editable] th{vertical-align:top;}--fees-row-background:`,
8723
8748
  `;--fees-stripe-background:`,
@@ -8750,14 +8775,14 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
8750
8775
  }
8751
8776
  `).join(""), ({ $typography }) => $typography?.thead?.fontSize ?? 8, ({ $typography }) => $typography?.thead?.fontSize ? 1.4 : "10px", ({ $typography }) => $typography?.tbody?.fontSize ?? 10, ({ $typography }) => $typography?.tbody?.fontSize ? 1.4 : "14px", ({ theme }) => theme.colors.accent.primary);
8752
8777
  var FeesCellContent = styled12.span.withConfig({
8753
- componentId: "sc-3c959c0c-6"
8778
+ componentId: "sc-a4d52175-6"
8754
8779
  })([
8755
8780
  `display:block;text-align:`,
8756
8781
  `;@media (max-width:767px){text-align:`,
8757
8782
  `;}`
8758
8783
  ], ({ $align, $alignRight }) => $align ?? ($alignRight ? "right" : "left"), ({ $align }) => $align ?? "left");
8759
8784
  var EditorButton = styled12.button.withConfig({
8760
- componentId: "sc-3c959c0c-7"
8785
+ componentId: "sc-a4d52175-7"
8761
8786
  })([
8762
8787
  `padding:7px 12px;border:1px solid `,
8763
8788
  `;border-radius:6px;background:`,
@@ -8766,17 +8791,17 @@ var EditorButton = styled12.button.withConfig({
8766
8791
  `;}&:disabled{cursor:default;opacity:.4;}`
8767
8792
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
8768
8793
  var OrderActions = styled12.div.withConfig({
8769
- componentId: "sc-3c959c0c-8"
8794
+ componentId: "sc-a4d52175-8"
8770
8795
  })([
8771
8796
  `display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
8772
8797
  ]);
8773
8798
  var PositionLabel = styled12.label.withConfig({
8774
- componentId: "sc-3c959c0c-9"
8799
+ componentId: "sc-a4d52175-9"
8775
8800
  })([
8776
8801
  `display:inline-flex;align-items:center;gap:6px;font-size:12px;`
8777
8802
  ]);
8778
8803
  var PositionInput = styled12.input.withConfig({
8779
- componentId: "sc-3c959c0c-10"
8804
+ componentId: "sc-a4d52175-10"
8780
8805
  })([
8781
8806
  `width:56px;padding:5px;border:1px solid `,
8782
8807
  `;border-radius:4px;background:`,
@@ -8785,17 +8810,17 @@ var PositionInput = styled12.input.withConfig({
8785
8810
  `;}`
8786
8811
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
8787
8812
  var ColumnRow = styled12.div.withConfig({
8788
- componentId: "sc-3c959c0c-11"
8813
+ componentId: "sc-a4d52175-11"
8789
8814
  })([
8790
8815
  `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;}`
8791
8816
  ]);
8792
8817
  var PaginationControls = styled12(FeesAndMarginPagination).withConfig({
8793
- componentId: "sc-3c959c0c-12"
8818
+ componentId: "sc-a4d52175-12"
8794
8819
  })([
8795
8820
  `align-items:center;flex-wrap:wrap;gap:16px 24px;`
8796
8821
  ]);
8797
8822
  var PageSizeLabel = styled12.div.withConfig({
8798
- componentId: "sc-3c959c0c-13"
8823
+ componentId: "sc-a4d52175-13"
8799
8824
  })([
8800
8825
  `display:inline-flex;align-items:center;gap:8px;color:`,
8801
8826
  `;font:inherit;font-size:13px;`
@@ -8823,20 +8848,20 @@ function Position({ value: value4, max, label, onMove }) {
8823
8848
  });
8824
8849
  }
8825
8850
  var DeleteButton = styled12(EditorButton).withConfig({
8826
- componentId: "sc-3c959c0c-14"
8851
+ componentId: "sc-a4d52175-14"
8827
8852
  })([
8828
8853
  `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;}`
8829
8854
  ]);
8830
8855
  var CellEditorInput = styled12.textarea.withConfig({
8831
- componentId: "sc-3c959c0c-15"
8856
+ componentId: "sc-a4d52175-15"
8832
8857
  })([
8833
8858
  `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;text-align:inherit;resize:none;overflow:hidden;&:hover{border-color:`,
8834
8859
  `;}&:focus{outline:1px solid `,
8835
- `;}&[data-fees-cell-selected="true"]{border-color:`,
8860
+ `;}&[data-fees-column-selected="true"]{border-color:`,
8836
8861
  `;}`
8837
8862
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.primary);
8838
8863
  function CellEditor({ onInput, ...props }) {
8839
- const ref = useRef4(null);
8864
+ const ref = useRef5(null);
8840
8865
  const fit = () => {
8841
8866
  const element = ref.current;
8842
8867
  if (!element) return;
@@ -8878,7 +8903,7 @@ function CellEditor({ onInput, ...props }) {
8878
8903
  });
8879
8904
  }
8880
8905
  function RowTagSelect({ selected, options, onChange }) {
8881
- const selectRoot = useRef4(null);
8906
+ const selectRoot = useRef5(null);
8882
8907
  return /* @__PURE__ */ _jsx3(EditGroup, {
8883
8908
  children: /* @__PURE__ */ _jsx3("div", {
8884
8909
  ref: selectRoot,
@@ -8903,7 +8928,7 @@ function RowTagSelect({ selected, options, onChange }) {
8903
8928
  fontSize: 13
8904
8929
  },
8905
8930
  children: [
8906
- options.map((item) => /* @__PURE__ */ _jsxs3(MenuItem3, {
8931
+ options.map((item) => /* @__PURE__ */ _jsxs3(MenuItem4, {
8907
8932
  value: item,
8908
8933
  children: [
8909
8934
  /* @__PURE__ */ _jsx3(Checkbox2, {
@@ -8915,7 +8940,7 @@ function RowTagSelect({ selected, options, onChange }) {
8915
8940
  item
8916
8941
  ]
8917
8942
  }, item)),
8918
- !options.length && /* @__PURE__ */ _jsx3(MenuItem3, {
8943
+ !options.length && /* @__PURE__ */ _jsx3(MenuItem4, {
8919
8944
  disabled: true,
8920
8945
  children: "Ch\u01B0a c\xF3 tag \u2014 d\xF9ng n\xFAt Th\xEAm tag ph\xEDa tr\xEAn"
8921
8946
  })
@@ -8971,10 +8996,10 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
8971
8996
  const [pageSize, setPageSize] = useState6(FEES_PAGE_SIZE);
8972
8997
  const [columnsOpen, setColumnsOpen] = useState6(false);
8973
8998
  const [typographyOpen, setTypographyOpen] = useState6(false);
8974
- const [selectedCell, setSelectedCell] = useState6(null);
8999
+ const [selectedColumnKey, setSelectedColumnKey] = useState6("");
8975
9000
  const english = language === "en";
8976
9001
  const canEdit = editable && Boolean(onChange);
8977
- const tableRoot = useRef4(null);
9002
+ const tableRoot = useRef5(null);
8978
9003
  useLayoutEffect2(() => {
8979
9004
  const root = tableRoot.current;
8980
9005
  if (!root || !canEdit) return;
@@ -9052,16 +9077,12 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
9052
9077
  const filtered = filterFeesRows(value4, search, activeTag);
9053
9078
  const displayedRows = canEdit ? filtered : sortFeesRowsByName(filtered, language);
9054
9079
  const pagination = paginateFeesRows(displayedRows, page, pageSize);
9055
- const selectedColumn = selectedCell && value4.columns.find((column) => column.key === selectedCell.columnKey);
9056
- const selectedRow = selectedCell?.part === "tbody" ? pagination.rows.find((row) => row.id === selectedCell.rowId) : void 0;
9057
- const selectedTarget = canEdit && selectedColumn && (selectedCell?.part === "thead" || selectedRow) ? selectedCell : null;
9058
- const selectedAlign = selectedTarget?.part === "thead" ? selectedColumn?.textAlign : selectedRow?.cellAlignments?.[selectedTarget?.columnKey ?? ""];
9059
- const selectedLabel = selectedTarget ? selectedTarget.part === "thead" ? `${english ? "Header" : "Ti\xEAu \u0111\u1EC1"}: ${selectedColumn?.title}` : `${selectedColumn?.title} \u2014 ${selectedRow?.cells.name || (english ? "New row" : "H\xE0ng m\u1EDBi")}` : void 0;
9080
+ const selectedColumn = value4.columns.find((column) => column.key === selectedColumnKey);
9060
9081
  useLayoutEffect2(() => {
9061
- if (selectedCell && !selectedTarget) setSelectedCell(null);
9082
+ if (selectedColumnKey && !selectedColumn) setSelectedColumnKey("");
9062
9083
  }, [
9063
- selectedCell,
9064
- selectedTarget
9084
+ selectedColumnKey,
9085
+ selectedColumn
9065
9086
  ]);
9066
9087
  const moveColumn = (from, to) => onChange?.({
9067
9088
  ...value4,
@@ -9118,11 +9139,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
9118
9139
  style: {
9119
9140
  textAlign: column.textAlign ?? value4.typography?.thead?.textAlign ?? "left"
9120
9141
  },
9121
- "data-fees-cell-selected": selectedTarget?.part === "thead" && selectedTarget.columnKey === column.key,
9122
- onFocus: () => setSelectedCell({
9123
- part: "thead",
9124
- columnKey: column.key
9125
- }),
9142
+ "data-fees-column-selected": selectedColumnKey === column.key,
9126
9143
  onChange: (event) => onChange?.({
9127
9144
  ...value4,
9128
9145
  columns: value4.columns.map((item) => item.key === column.key ? {
@@ -9156,14 +9173,9 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
9156
9173
  value: row.cells[column.key] ?? "",
9157
9174
  "aria-label": `${column.title} \u2014 ${row.cells.name || "H\xE0ng m\u1EDBi"}`,
9158
9175
  style: {
9159
- textAlign: row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign ?? "left"
9176
+ textAlign: column.textAlign ?? row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign ?? "left"
9160
9177
  },
9161
- "data-fees-cell-selected": selectedTarget?.part === "tbody" && selectedTarget.rowId === row.id && selectedTarget.columnKey === column.key,
9162
- onFocus: () => setSelectedCell({
9163
- part: "tbody",
9164
- rowId: row.id,
9165
- columnKey: column.key
9166
- }),
9178
+ "data-fees-column-selected": selectedColumnKey === column.key,
9167
9179
  onChange: (event) => changeRow(row.id, {
9168
9180
  cells: {
9169
9181
  ...row.cells,
@@ -9171,7 +9183,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
9171
9183
  }
9172
9184
  })
9173
9185
  }) : /* @__PURE__ */ _jsx3(FeesCellContent, {
9174
- $align: row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign,
9186
+ $align: column.textAlign ?? row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign,
9175
9187
  $alignRight: rightAlignedColumns.has(column.key),
9176
9188
  children: row.cells[column.key] ?? ""
9177
9189
  })
@@ -9374,12 +9386,13 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
9374
9386
  })
9375
9387
  })
9376
9388
  }),
9377
- canEdit && /* @__PURE__ */ _jsx3(FeesCellAlignmentControls, {
9378
- label: selectedLabel,
9379
- value: selectedAlign,
9389
+ canEdit && /* @__PURE__ */ _jsx3(FeesColumnAlignmentControls, {
9390
+ columns: value4.columns,
9391
+ columnKey: selectedColumnKey,
9380
9392
  english,
9393
+ onSelectColumn: setSelectedColumnKey,
9381
9394
  onChange: (textAlign) => {
9382
- if (selectedTarget) onChange?.(setFeesCellAlignment(value4, selectedTarget, textAlign));
9395
+ if (selectedColumn) onChange?.(setFeesColumnAlignment(value4, selectedColumn.key, textAlign));
9383
9396
  }
9384
9397
  }),
9385
9398
  /* @__PURE__ */ _jsx3(AlignedFeesTable, {
@@ -9432,11 +9445,11 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
9432
9445
  25,
9433
9446
  50,
9434
9447
  100
9435
- ].map((size2) => /* @__PURE__ */ _jsx3(MenuItem3, {
9448
+ ].map((size2) => /* @__PURE__ */ _jsx3(MenuItem4, {
9436
9449
  value: size2,
9437
9450
  children: size2
9438
9451
  }, size2)),
9439
- /* @__PURE__ */ _jsx3(MenuItem3, {
9452
+ /* @__PURE__ */ _jsx3(MenuItem4, {
9440
9453
  value: -1,
9441
9454
  children: english ? "All" : "T\u1EA5t c\u1EA3"
9442
9455
  })
@@ -9566,7 +9579,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
9566
9579
  children: "T\u1EA1o tag m\u1EDBi"
9567
9580
  }),
9568
9581
  /* @__PURE__ */ _jsx3(DialogContent, {
9569
- children: /* @__PURE__ */ _jsx3(TextField3, {
9582
+ children: /* @__PURE__ */ _jsx3(TextField4, {
9570
9583
  autoFocus: true,
9571
9584
  fullWidth: true,
9572
9585
  margin: "dense",
@@ -10421,7 +10434,7 @@ function InformationHeroSection({
10421
10434
  import styled19 from "styled-components";
10422
10435
 
10423
10436
  // src/commodity-original/components/DateRangePicker/index.tsx
10424
- import { useEffect as useEffect8, useMemo as useMemo5, useRef as useRef5, useState as useState8 } from "react";
10437
+ import { useEffect as useEffect8, useMemo as useMemo5, useRef as useRef6, useState as useState8 } from "react";
10425
10438
  import { useTranslation as useTranslation8 } from "react-i18next";
10426
10439
  import { Dialog as Dialog4 } from "radix-ui";
10427
10440
 
@@ -10660,7 +10673,7 @@ function DateRangePicker({
10660
10673
  }) {
10661
10674
  const { i18n, t } = useTranslation8();
10662
10675
  const { isMobile } = useResponsive();
10663
- const rootRef = useRef5(null);
10676
+ const rootRef = useRef6(null);
10664
10677
  const [open, setOpen] = useState8(false);
10665
10678
  const [activeField, setActiveField] = useState8("from");
10666
10679
  const [draft, setDraft] = useState8(value4);
@@ -12607,7 +12620,7 @@ import { useTranslation as useTranslation14 } from "react-i18next";
12607
12620
 
12608
12621
  // src/commodity-original/lib/app-theme-provider.tsx
12609
12622
  import { jsx as _jsx6, jsxs as _jsxs6 } from "react/jsx-runtime";
12610
- import { createContext as createContext8, useCallback, useContext as useContext8, useLayoutEffect as useLayoutEffect3, useMemo as useMemo7, useRef as useRef6, useSyncExternalStore as useSyncExternalStore2 } from "react";
12623
+ import { createContext as createContext8, useCallback, useContext as useContext8, useLayoutEffect as useLayoutEffect3, useMemo as useMemo7, useRef as useRef7, useSyncExternalStore as useSyncExternalStore2 } from "react";
12611
12624
  import { ThemeProvider as ThemeProvider2 } from "styled-components";
12612
12625
 
12613
12626
  // src/commodity-original/app/global-styles.tsx
@@ -12746,7 +12759,7 @@ function subscribeToTheme(onStoreChange) {
12746
12759
  };
12747
12760
  }
12748
12761
  function AppThemeProvider({ children }) {
12749
- const rootRef = useRef6(null);
12762
+ const rootRef = useRef7(null);
12750
12763
  const getTargetDocument = useCallback(() => rootRef.current?.ownerDocument ?? document, []);
12751
12764
  const getSnapshot = useCallback(() => {
12752
12765
  const targetDocument = getTargetDocument();
@@ -12991,7 +13004,7 @@ function Footer() {
12991
13004
  }
12992
13005
 
12993
13006
  // src/commodity-original/components/Header/index.tsx
12994
- import { useCallback as useCallback2, useEffect as useEffect9, useRef as useRef7, useState as useState13 } from "react";
13007
+ import { useCallback as useCallback2, useEffect as useEffect9, useRef as useRef8, useState as useState13 } from "react";
12995
13008
  import Image9 from "next/image.js";
12996
13009
  import Link9 from "next/link.js";
12997
13010
  import { usePathname, useSearchParams } from "next/navigation.js";
@@ -13081,7 +13094,7 @@ function LanguageSwitcher({
13081
13094
  portalContainer
13082
13095
  }) {
13083
13096
  const { t } = useTranslation16();
13084
- const triggerRef = useRef7(null);
13097
+ const triggerRef = useRef8(null);
13085
13098
  const currentLanguage = languages.find((item) => item.value === language);
13086
13099
  return /* @__PURE__ */ jsxs29(DropdownMenu2.Root, { children: [
13087
13100
  /* @__PURE__ */ jsx37(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx37(
@@ -13158,8 +13171,8 @@ function Header() {
13158
13171
  const [isDesktopProductsOpen, setIsDesktopProductsOpen] = useState13(null);
13159
13172
  const { t, i18n } = useTranslation16();
13160
13173
  const language = i18n.resolvedLanguage?.startsWith("en") ? "en" : "vi";
13161
- const mobileMenuTriggerRef = useRef7(null);
13162
- const pendingMobileSectionRef = useRef7(null);
13174
+ const mobileMenuTriggerRef = useRef8(null);
13175
+ const pendingMobileSectionRef = useRef8(null);
13163
13176
  const { themeName } = useAppTheme();
13164
13177
  const isDarkTheme = themeName === "dark";
13165
13178
  const lightLogo = useCmsImage("headerLogoImage", "/Logo/logo.png");
@@ -14673,7 +14686,7 @@ import { useTranslation as useTranslation23 } from "react-i18next";
14673
14686
 
14674
14687
  // src/commodity-original/components/Background/index.tsx
14675
14688
  import { jsx as _jsx8, jsxs as _jsxs7 } from "react/jsx-runtime";
14676
- import { memo, useEffect as useEffect10, useId as useId3, useRef as useRef8 } from "react";
14689
+ import { memo, useEffect as useEffect10, useId as useId3, useRef as useRef9 } from "react";
14677
14690
  import { styled as styled29 } from "styled-components";
14678
14691
  var TWO_PI = Math.PI * 2;
14679
14692
  var DotContainer = styled29.div.withConfig({
@@ -14682,27 +14695,27 @@ var DotContainer = styled29.div.withConfig({
14682
14695
  `position:absolute;top:-130px;left:-200px;width:50%;height:100%;border-radius:20%;overflow:hidden;pointer-events:none;`
14683
14696
  ]);
14684
14697
  var DotField = /* @__PURE__ */ memo(({ dotRadius = 1.5, dotSpacing = 14, cursorRadius = 500, cursorForce = 0.1, bulgeOnly = true, bulgeStrength = 67, glowRadius = 160, sparkle = false, waveAmplitude = 0, gradientFrom = "rgba(168, 85, 247, 0.35)", gradientTo = "rgba(180, 151, 207, 0.25)", glowColor = "#120F17", ...rest }) => {
14685
- const canvasRef = useRef8(null);
14686
- const svgRef = useRef8(null);
14687
- const glowRef = useRef8(null);
14688
- const dotsRef = useRef8([]);
14689
- const mouseRef = useRef8({
14698
+ const canvasRef = useRef9(null);
14699
+ const svgRef = useRef9(null);
14700
+ const glowRef = useRef9(null);
14701
+ const dotsRef = useRef9([]);
14702
+ const mouseRef = useRef9({
14690
14703
  x: -9999,
14691
14704
  y: -9999,
14692
14705
  prevX: -9999,
14693
14706
  prevY: -9999,
14694
14707
  speed: 0
14695
14708
  });
14696
- const rafRef = useRef8(null);
14697
- const sizeRef = useRef8({
14709
+ const rafRef = useRef9(null);
14710
+ const sizeRef = useRef9({
14698
14711
  w: 0,
14699
14712
  h: 0,
14700
14713
  offsetX: 0,
14701
14714
  offsetY: 0
14702
14715
  });
14703
- const glowOpacity = useRef8(0);
14704
- const engagement = useRef8(0);
14705
- const propsRef = useRef8({});
14716
+ const glowOpacity = useRef9(0);
14717
+ const engagement = useRef9(0);
14718
+ const propsRef = useRef9({});
14706
14719
  propsRef.current = {
14707
14720
  dotRadius,
14708
14721
  dotSpacing,
@@ -14715,7 +14728,7 @@ var DotField = /* @__PURE__ */ memo(({ dotRadius = 1.5, dotSpacing = 14, cursorR
14715
14728
  gradientFrom,
14716
14729
  gradientTo
14717
14730
  };
14718
- const rebuildRef = useRef8(null);
14731
+ const rebuildRef = useRef9(null);
14719
14732
  const glowId = `dot-field-glow-${useId3().replace(/[^a-zA-Z0-9_-]/g, "")}`;
14720
14733
  useEffect10(() => {
14721
14734
  const canvas = canvasRef.current;
@@ -15353,7 +15366,7 @@ function FloatingActions() {
15353
15366
 
15354
15367
  // src/commodity-original/components/LandingPage/PositionSection.tsx
15355
15368
  import Image15 from "next/image.js";
15356
- import { useRef as useRef9, useState as useState16 } from "react";
15369
+ import { useRef as useRef10, useState as useState16 } from "react";
15357
15370
  import { useTranslation as useTranslation25 } from "react-i18next";
15358
15371
  import { jsx as jsx47, jsxs as jsxs39 } from "react/jsx-runtime";
15359
15372
  function PositionMedia({
@@ -15434,8 +15447,8 @@ function PositionSection() {
15434
15447
  const [expandedMobileCards, setExpandedMobileCards] = useState16([]);
15435
15448
  const [desktopSlide, setDesktopSlide] = useState16(0);
15436
15449
  const [mobileSlide, setMobileSlide] = useState16(0);
15437
- const mobileCarouselRef = useRef9(null);
15438
- const mobileDragRef = useRef9(null);
15450
+ const mobileCarouselRef = useRef10(null);
15451
+ const mobileDragRef = useRef10(null);
15439
15452
  const slideCount = useCmsListCount(
15440
15453
  "landing.position.slides.__count",
15441
15454
  positionSlides.length
@@ -16117,8 +16130,8 @@ function ExactEditableContent({
16117
16130
  onSelectText,
16118
16131
  selectedTextField
16119
16132
  }) {
16120
- const rootRef = useRef10(null);
16121
- const callbacks = useRef10({ onChange, onSelectText });
16133
+ const rootRef = useRef11(null);
16134
+ const callbacks = useRef11({ onChange, onSelectText });
16122
16135
  callbacks.current = { onChange, onSelectText };
16123
16136
  useLayoutEffect4(() => {
16124
16137
  const root = rootRef.current;
@@ -17203,15 +17216,15 @@ var wikexCommodityRoutes = wikexCommodityPageTemplates.map(({ route, slug, key }
17203
17216
  }));
17204
17217
 
17205
17218
  // src/shared/text-toolbar.tsx
17206
- import { useEffect as useEffect12, useRef as useRef11, useState as useState17 } from "react";
17207
- import { Box as Box8, IconButton as IconButton3, InputAdornment as InputAdornment2, MenuItem as MenuItem4, Select as Select3, SvgIcon, TextField as TextField4, ToggleButton as ToggleButton2, Tooltip } from "@mui/material";
17219
+ import { useEffect as useEffect12, useRef as useRef12, useState as useState17 } from "react";
17220
+ import { Box as Box8, IconButton as IconButton3, InputAdornment as InputAdornment2, MenuItem as MenuItem5, Select as Select3, SvgIcon, TextField as TextField5, ToggleButton as ToggleButton2, Tooltip } from "@mui/material";
17208
17221
  import { jsx as jsx50, jsxs as jsxs42 } from "react/jsx-runtime";
17209
17222
  function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureControls, computedFontSize, computedLineHeight, computedFontFamily, computedTextAlign, onLayoutChange, onColorChange, onReset }) {
17210
- const toolbarRef = useRef11(null);
17223
+ const toolbarRef = useRef12(null);
17211
17224
  const [hex, setHex] = useState17(color);
17212
17225
  const displayedSize = String(computedFontSize ?? layout.fontSize ?? 16);
17213
17226
  const displayedLineHeight = String(layout.lineHeight ?? computedLineHeight ?? 1.5);
17214
- const dirtyLineHeight = useRef11(false);
17227
+ const dirtyLineHeight = useRef12(false);
17215
17228
  const [lineHeight, setLineHeight] = useState17(displayedLineHeight);
17216
17229
  useEffect12(() => {
17217
17230
  dirtyLineHeight.current = false;
@@ -17228,7 +17241,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
17228
17241
  if (Number.isFinite(value4) && value4 >= 0.5 && value4 <= 5) onLayoutChange({ lineHeight: value4 });
17229
17242
  else setLineHeight(displayedLineHeight);
17230
17243
  };
17231
- const dirtySize = useRef11(false);
17244
+ const dirtySize = useRef12(false);
17232
17245
  const [size, setSize] = useState17(displayedSize);
17233
17246
  useEffect12(() => setHex(color), [color]);
17234
17247
  useEffect12(() => {
@@ -17279,8 +17292,8 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
17279
17292
  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 } },
17280
17293
  onChange: (event) => onLayoutChange({ fontFamily: event.target.value || void 0 }),
17281
17294
  children: [
17282
- !selectedFont && /* @__PURE__ */ jsx50(MenuItem4, { value: "", sx: { fontSize: 12 }, children: fontLabel }),
17283
- Object.entries(CMS_TEXT_FONTS).map(([value4, label]) => /* @__PURE__ */ jsx50(MenuItem4, { value: value4, sx: { fontFamily: value4, fontSize: 13 }, children: label }, value4))
17295
+ !selectedFont && /* @__PURE__ */ jsx50(MenuItem5, { value: "", sx: { fontSize: 12 }, children: fontLabel }),
17296
+ Object.entries(CMS_TEXT_FONTS).map(([value4, label]) => /* @__PURE__ */ jsx50(MenuItem5, { value: value4, sx: { fontFamily: value4, fontSize: 13 }, children: label }, value4))
17284
17297
  ]
17285
17298
  }
17286
17299
  ),
@@ -17288,7 +17301,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
17288
17301
  ] }),
17289
17302
  /* @__PURE__ */ jsxs42(Box8, { sx: { ...groupSx, flexWrap: "wrap", justifyContent: "space-between" }, children: [
17290
17303
  /* @__PURE__ */ jsx50(Tooltip, { title: "C\u1EE1 ch\u1EEF (px)", ...tooltipProps, children: /* @__PURE__ */ jsx50(
17291
- TextField4,
17304
+ TextField5,
17292
17305
  {
17293
17306
  size: "small",
17294
17307
  type: "number",
@@ -17309,7 +17322,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
17309
17322
  }
17310
17323
  ) }),
17311
17324
  /* @__PURE__ */ jsx50(Tooltip, { title: "Chi\u1EC1u cao d\xF2ng (l\u1EA7n c\u1EE1 ch\u1EEF)", ...tooltipProps, children: /* @__PURE__ */ jsx50(
17312
- TextField4,
17325
+ TextField5,
17313
17326
  {
17314
17327
  size: "small",
17315
17328
  type: "number",
@@ -17343,7 +17356,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
17343
17356
  }
17344
17357
  ) }, align)) }),
17345
17358
  colorPicker || /* @__PURE__ */ jsx50(
17346
- TextField4,
17359
+ TextField5,
17347
17360
  {
17348
17361
  size: "small",
17349
17362
  value: hex,
@@ -17368,7 +17381,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
17368
17381
 
17369
17382
  // src/shared/button-link-control.tsx
17370
17383
  import { useState as useState18 } from "react";
17371
- import { Box as Box9, Button as Button11, IconButton as IconButton4, MenuItem as MenuItem5, Popover, Stack as Stack7, SvgIcon as SvgIcon2, TextField as TextField5, Typography as Typography6 } from "@mui/material";
17384
+ import { Box as Box9, Button as Button11, IconButton as IconButton4, MenuItem as MenuItem6, Popover, Stack as Stack7, SvgIcon as SvgIcon2, TextField as TextField6, Typography as Typography6 } from "@mui/material";
17372
17385
  import { Fragment as Fragment13, jsx as jsx51, jsxs as jsxs43 } from "react/jsx-runtime";
17373
17386
  function CmsButtonLinkControl({ field, content, onChange }) {
17374
17387
  const [anchor, setAnchor] = useState18(null);
@@ -17421,7 +17434,7 @@ function CmsButtonLinkControl({ field, content, onChange }) {
17421
17434
  }, children: /* @__PURE__ */ jsxs43(Stack7, { spacing: 1.5, children: [
17422
17435
  /* @__PURE__ */ jsx51(Typography6, { variant: "subtitle2", children: "Li\xEAn k\u1EBFt n\xFAt" }),
17423
17436
  /* @__PURE__ */ jsxs43(
17424
- TextField5,
17437
+ TextField6,
17425
17438
  {
17426
17439
  select: true,
17427
17440
  size: "small",
@@ -17433,13 +17446,13 @@ function CmsButtonLinkControl({ field, content, onChange }) {
17433
17446
  },
17434
17447
  slotProps: { select: { MenuProps: { disableScrollLock: true, container: anchor?.ownerDocument.body, sx: { zIndex: 1700 } } } },
17435
17448
  children: [
17436
- /* @__PURE__ */ jsx51(MenuItem5, { value: "internal", children: "Internal \u2014 trong website" }),
17437
- /* @__PURE__ */ jsx51(MenuItem5, { value: "external", children: "External \u2014 website kh\xE1c" })
17449
+ /* @__PURE__ */ jsx51(MenuItem6, { value: "internal", children: "Internal \u2014 trong website" }),
17450
+ /* @__PURE__ */ jsx51(MenuItem6, { value: "external", children: "External \u2014 website kh\xE1c" })
17438
17451
  ]
17439
17452
  }
17440
17453
  ),
17441
17454
  /* @__PURE__ */ jsx51(
17442
- TextField5,
17455
+ TextField6,
17443
17456
  {
17444
17457
  autoFocus: true,
17445
17458
  size: "small",