@enyxs/wikex-components 0.11.31 → 0.11.32
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/README.md +8 -6
- package/dist/fees-model.d.mts +12 -1
- package/dist/fees-model.d.ts +12 -1
- package/dist/fees-model.js +35 -4
- package/dist/fees-model.js.map +1 -1
- package/dist/fees-model.mjs +34 -4
- package/dist/fees-model.mjs.map +1 -1
- package/dist/fees.d.mts +1 -1
- package/dist/fees.d.ts +1 -1
- package/dist/fees.js +314 -216
- package/dist/fees.js.map +1 -1
- package/dist/fees.mjs +233 -135
- package/dist/fees.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1061 -952
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +914 -805
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3549,8 +3549,8 @@ import { usePathname as usePathname2 } from "next/navigation.js";
|
|
|
3549
3549
|
import { createInstance } from "i18next";
|
|
3550
3550
|
import { I18nextProvider, initReactI18next } from "react-i18next";
|
|
3551
3551
|
import Box7 from "@mui/material/Box";
|
|
3552
|
-
import
|
|
3553
|
-
import
|
|
3552
|
+
import Button10 from "@mui/material/Button";
|
|
3553
|
+
import Stack6 from "@mui/material/Stack";
|
|
3554
3554
|
|
|
3555
3555
|
// src/commodity-original/i18n/resources.ts
|
|
3556
3556
|
var translations = {
|
|
@@ -7560,7 +7560,7 @@ import DialogTitle from "@mui/material/DialogTitle";
|
|
|
7560
7560
|
import DialogContent from "@mui/material/DialogContent";
|
|
7561
7561
|
import DialogContentText from "@mui/material/DialogContentText";
|
|
7562
7562
|
import DialogActions from "@mui/material/DialogActions";
|
|
7563
|
-
import
|
|
7563
|
+
import Button9 from "@mui/material/Button";
|
|
7564
7564
|
import Select2 from "@mui/material/Select";
|
|
7565
7565
|
import MenuItem3 from "@mui/material/MenuItem";
|
|
7566
7566
|
import Checkbox2 from "@mui/material/Checkbox";
|
|
@@ -7605,6 +7605,28 @@ 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;
|
|
7613
|
+
const { textAlign: _previous, ...rest } = column;
|
|
7614
|
+
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
|
+
}) };
|
|
7625
|
+
}
|
|
7626
|
+
function validateFeesTextAlign(value4) {
|
|
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.");
|
|
7628
|
+
return value4;
|
|
7629
|
+
}
|
|
7608
7630
|
function isRecord(value4) {
|
|
7609
7631
|
return value4 !== null && typeof value4 === "object" && !Array.isArray(value4);
|
|
7610
7632
|
}
|
|
@@ -7630,8 +7652,7 @@ function validateFeesTypography(value4) {
|
|
|
7630
7652
|
style.fontWeight = raw.fontWeight;
|
|
7631
7653
|
}
|
|
7632
7654
|
if (raw.textAlign !== void 0) {
|
|
7633
|
-
|
|
7634
|
-
style.textAlign = raw.textAlign;
|
|
7655
|
+
style.textAlign = validateFeesTextAlign(raw.textAlign);
|
|
7635
7656
|
}
|
|
7636
7657
|
if (Object.keys(style).length) result[part] = style;
|
|
7637
7658
|
}
|
|
@@ -7644,14 +7665,22 @@ function validateFeesTable(value4) {
|
|
|
7644
7665
|
const columns = value4.columns.map((column) => {
|
|
7645
7666
|
if (!isRecord(column) || typeof column.key !== "string" || !column.key || keys2.has(column.key) || typeof column.title !== "string") throw invalid();
|
|
7646
7667
|
keys2.add(column.key);
|
|
7647
|
-
return { key: column.key, title: column.title };
|
|
7668
|
+
return { key: column.key, title: column.title, ...column.textAlign !== void 0 ? { textAlign: validateFeesTextAlign(column.textAlign) } : {} };
|
|
7648
7669
|
});
|
|
7649
7670
|
if (!keys2.has("name")) throw invalid();
|
|
7650
7671
|
const ids = /* @__PURE__ */ new Set();
|
|
7651
7672
|
const rows = value4.rows.map((row) => {
|
|
7652
7673
|
if (!isRecord(row) || typeof row.id !== "string" || !row.id || ids.has(row.id) || !isRecord(row.cells) || Object.values(row.cells).some((cell) => typeof cell !== "string") || !isStringArray(row.tags)) throw invalid();
|
|
7653
7674
|
ids.add(row.id);
|
|
7654
|
-
|
|
7675
|
+
const alignments = {};
|
|
7676
|
+
if (row.cellAlignments !== void 0) {
|
|
7677
|
+
if (!isRecord(row.cellAlignments)) throw invalid();
|
|
7678
|
+
for (const [key, align] of Object.entries(row.cellAlignments)) {
|
|
7679
|
+
if (!keys2.has(key)) throw invalid();
|
|
7680
|
+
Object.defineProperty(alignments, key, { value: validateFeesTextAlign(align), enumerable: true, configurable: true, writable: true });
|
|
7681
|
+
}
|
|
7682
|
+
}
|
|
7683
|
+
return { id: row.id, cells: { ...row.cells }, tags: [...row.tags], ...Object.keys(alignments).length ? { cellAlignments: alignments } : {} };
|
|
7655
7684
|
});
|
|
7656
7685
|
const typography = validateFeesTypography(value4.typography);
|
|
7657
7686
|
return { columns, rows, ...value4.tags !== void 0 ? { tags: [...value4.tags] } : {}, ...typography ? { typography } : {} };
|
|
@@ -7762,7 +7791,6 @@ function defaultFeesTable(t) {
|
|
|
7762
7791
|
// src/wikex/fees-typography-controls.tsx
|
|
7763
7792
|
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
7764
7793
|
var weightLabels = { 400: "Th\u01B0\u1EDDng", 500: "V\u1EEBa", 600: "H\u01A1i \u0111\u1EADm", 700: "\u0110\u1EADm", 800: "R\u1EA5t \u0111\u1EADm" };
|
|
7765
|
-
var alignLabels = { left: "C\u0103n tr\xE1i", center: "C\u0103n gi\u1EEFa", right: "C\u0103n ph\u1EA3i" };
|
|
7766
7794
|
function FontSizeInput({ label, value: value4, onChange }) {
|
|
7767
7795
|
const [draft, setDraft] = useState5(String(value4));
|
|
7768
7796
|
const [error, setError] = useState5(false);
|
|
@@ -7814,7 +7842,7 @@ function FeesTypographyControls({ value: value4, onChange }) {
|
|
|
7814
7842
|
/* @__PURE__ */ jsxs9(Stack4, { direction: { xs: "column", sm: "row" }, gap: 1.5, justifyContent: "space-between", alignItems: { sm: "center" }, sx: { mb: 2 }, children: [
|
|
7815
7843
|
/* @__PURE__ */ jsxs9(Box6, { children: [
|
|
7816
7844
|
/* @__PURE__ */ jsx15(Typography4, { variant: "subtitle2", children: "\u0110\u1ECBnh d\u1EA1ng ch\u1EEF" }),
|
|
7817
|
-
/* @__PURE__ */ jsx15(Typography4, { variant: "caption", color: "text.secondary", children: "\
|
|
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." })
|
|
7818
7846
|
] }),
|
|
7819
7847
|
/* @__PURE__ */ jsxs9(Stack4, { direction: "row", gap: 1, flexShrink: 0, children: [
|
|
7820
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" }),
|
|
@@ -7847,29 +7875,64 @@ function FeesTypographyControls({ value: value4, onChange }) {
|
|
|
7847
7875
|
] }, weight))
|
|
7848
7876
|
}
|
|
7849
7877
|
)
|
|
7850
|
-
] })
|
|
7851
|
-
/* @__PURE__ */ jsxs9(
|
|
7852
|
-
TextField2,
|
|
7853
|
-
{
|
|
7854
|
-
select: true,
|
|
7855
|
-
fullWidth: true,
|
|
7856
|
-
size: "small",
|
|
7857
|
-
label: "C\u0103n l\u1EC1",
|
|
7858
|
-
value: value4?.[part]?.textAlign ?? "",
|
|
7859
|
-
slotProps: { select: { displayEmpty: true, SelectDisplayProps: { "aria-labelledby": void 0 }, MenuProps: { container: () => root.current?.ownerDocument.body ?? document.body }, inputProps: { "aria-label": `C\u0103n l\u1EC1 ${title.toLocaleLowerCase("vi")}` } }, inputLabel: { shrink: true } },
|
|
7860
|
-
helperText: "\xC1p d\u1EE5ng cho t\u1EA5t c\u1EA3 \xF4, c\u1EA3 tr\xEAn \u0111i\u1EC7n tho\u1EA1i",
|
|
7861
|
-
onChange: (event) => update(part, { textAlign: event.target.value ? event.target.value : void 0 }),
|
|
7862
|
-
children: [
|
|
7863
|
-
/* @__PURE__ */ jsx15(MenuItem2, { value: "", children: "Theo m\u1EB7c \u0111\u1ECBnh" }),
|
|
7864
|
-
FEES_TEXT_ALIGNS.map((align) => /* @__PURE__ */ jsx15(MenuItem2, { value: align, children: alignLabels[align] }, align))
|
|
7865
|
-
]
|
|
7866
|
-
}
|
|
7867
|
-
)
|
|
7878
|
+
] })
|
|
7868
7879
|
] }, part)) }),
|
|
7869
7880
|
/* @__PURE__ */ jsx15(Typography4, { variant: "caption", color: "text.secondary", sx: { display: "block", mt: 1 }, children: "C\u1EE1 ch\u1EEF t\xF9y ch\u1EC9nh \xE1p d\u1EE5ng c\u1EA3 tr\xEAn \u0111i\u1EC7n tho\u1EA1i; b\u1EA3ng c\xF3 th\u1EC3 vu\u1ED1t ngang. \u201CM\u1EB7c \u0111\u1ECBnh\u201D kh\xF4i ph\u1EE5c c\u1EE1 ch\u1EEF t\u1EF1 th\xEDch \u1EE9ng theo m\xE0n h\xECnh." })
|
|
7870
7881
|
] });
|
|
7871
7882
|
}
|
|
7872
7883
|
|
|
7884
|
+
// src/wikex/fees-cell-alignment-controls.tsx
|
|
7885
|
+
import { Button as Button8, Stack as Stack5, Typography as Typography5 } from "@mui/material";
|
|
7886
|
+
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
7887
|
+
var labels = { left: "C\u0103n tr\xE1i", center: "C\u0103n gi\u1EEFa", right: "C\u0103n ph\u1EA3i" };
|
|
7888
|
+
var englishLabels = { left: "Align left", center: "Align center", right: "Align right" };
|
|
7889
|
+
function FeesCellAlignmentControls({ label, value: value4, english, onChange }) {
|
|
7890
|
+
return /* @__PURE__ */ jsxs10(
|
|
7891
|
+
Stack5,
|
|
7892
|
+
{
|
|
7893
|
+
role: "group",
|
|
7894
|
+
"aria-label": english ? "Selected cell alignment" : "C\u0103n l\u1EC1 \xF4 \u0111ang ch\u1ECDn",
|
|
7895
|
+
direction: { xs: "column", sm: "row" },
|
|
7896
|
+
spacing: 1.5,
|
|
7897
|
+
alignItems: { sm: "center" },
|
|
7898
|
+
sx: { my: 2, p: 1.5, border: "1px solid", borderColor: "divider", borderRadius: 1.5 },
|
|
7899
|
+
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,
|
|
7920
|
+
{
|
|
7921
|
+
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"
|
|
7928
|
+
}
|
|
7929
|
+
)
|
|
7930
|
+
] })
|
|
7931
|
+
]
|
|
7932
|
+
}
|
|
7933
|
+
);
|
|
7934
|
+
}
|
|
7935
|
+
|
|
7873
7936
|
// src/commodity-original/styles/colors.ts
|
|
7874
7937
|
var lightColors = {
|
|
7875
7938
|
background: {
|
|
@@ -8130,7 +8193,7 @@ function getTableFixedColumnOffset(columns, columnIndex) {
|
|
|
8130
8193
|
}
|
|
8131
8194
|
|
|
8132
8195
|
// src/commodity-original/components/Table/index.tsx
|
|
8133
|
-
import { jsx as
|
|
8196
|
+
import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
8134
8197
|
function getCellValue(column, record) {
|
|
8135
8198
|
return column.dataIndex === void 0 ? void 0 : record[column.dataIndex];
|
|
8136
8199
|
}
|
|
@@ -8203,7 +8266,7 @@ function Table({
|
|
|
8203
8266
|
const nextSelectedRowKeys = event.target.checked ? [...selectedRowKeys, recordKey] : selectedRowKeys.filter((key) => key !== recordKey);
|
|
8204
8267
|
emitSelectionChange(nextSelectedRowKeys);
|
|
8205
8268
|
};
|
|
8206
|
-
return /* @__PURE__ */
|
|
8269
|
+
return /* @__PURE__ */ jsx17(TableScrollContainer, { children: /* @__PURE__ */ jsxs11(
|
|
8207
8270
|
TableRoot,
|
|
8208
8271
|
{
|
|
8209
8272
|
$minWidth: scroll?.x === void 0 ? void 0 : getTableColumnSize(scroll.x),
|
|
@@ -8212,8 +8275,8 @@ function Table({
|
|
|
8212
8275
|
className,
|
|
8213
8276
|
"data-size": size,
|
|
8214
8277
|
children: [
|
|
8215
|
-
/* @__PURE__ */
|
|
8216
|
-
rowSelection ? /* @__PURE__ */
|
|
8278
|
+
/* @__PURE__ */ jsx17("thead", { children: /* @__PURE__ */ jsxs11(TableHeaderRow, { children: [
|
|
8279
|
+
rowSelection ? /* @__PURE__ */ jsx17(TableHeaderCell, { scope: "col", children: selectionType === "checkbox" ? /* @__PURE__ */ jsx17(
|
|
8217
8280
|
TableSelectionInput,
|
|
8218
8281
|
{
|
|
8219
8282
|
checked: isAllSelected,
|
|
@@ -8222,8 +8285,8 @@ function Table({
|
|
|
8222
8285
|
type: "checkbox"
|
|
8223
8286
|
}
|
|
8224
8287
|
) : null }) : null,
|
|
8225
|
-
expandable ? /* @__PURE__ */
|
|
8226
|
-
columns.map((column, columnIndex) => /* @__PURE__ */
|
|
8288
|
+
expandable ? /* @__PURE__ */ jsx17(TableHeaderCell, { scope: "col" }) : null,
|
|
8289
|
+
columns.map((column, columnIndex) => /* @__PURE__ */ jsx17(
|
|
8227
8290
|
TableHeaderCell,
|
|
8228
8291
|
{
|
|
8229
8292
|
$fixed: column.fixed,
|
|
@@ -8231,7 +8294,7 @@ function Table({
|
|
|
8231
8294
|
$width: column.width === void 0 ? void 0 : getTableColumnSize(column.width),
|
|
8232
8295
|
"data-column-key": column.key,
|
|
8233
8296
|
scope: "col",
|
|
8234
|
-
children: column.sortable ? /* @__PURE__ */
|
|
8297
|
+
children: column.sortable ? /* @__PURE__ */ jsx17(
|
|
8235
8298
|
TableSortButton,
|
|
8236
8299
|
{
|
|
8237
8300
|
"aria-pressed": sort?.field === column.key,
|
|
@@ -8244,13 +8307,13 @@ function Table({
|
|
|
8244
8307
|
column.key
|
|
8245
8308
|
))
|
|
8246
8309
|
] }) }),
|
|
8247
|
-
/* @__PURE__ */
|
|
8310
|
+
/* @__PURE__ */ jsx17("tbody", { children: loading ? /* @__PURE__ */ jsx17(TableRow, { children: /* @__PURE__ */ jsx17(TableCell, { colSpan: columnCount, children: loadingContent }) }) : dataSource.length === 0 ? /* @__PURE__ */ jsx17(TableRow, { children: /* @__PURE__ */ jsx17(TableCell, { colSpan: columnCount, children: empty }) }) : dataSource.map((record, index) => {
|
|
8248
8311
|
const recordKey = getRowKey(record);
|
|
8249
8312
|
const selectionProps = rowSelection?.getCheckboxProps?.(record);
|
|
8250
8313
|
const isExpanded = expandedRowKeySet.has(recordKey);
|
|
8251
|
-
return /* @__PURE__ */
|
|
8252
|
-
/* @__PURE__ */
|
|
8253
|
-
rowSelection ? /* @__PURE__ */
|
|
8314
|
+
return /* @__PURE__ */ jsxs11(Fragment6, { children: [
|
|
8315
|
+
/* @__PURE__ */ jsxs11(TableRow, { "data-row-key": recordKey, children: [
|
|
8316
|
+
rowSelection ? /* @__PURE__ */ jsx17(TableCell, { children: /* @__PURE__ */ jsx17(
|
|
8254
8317
|
TableSelectionInput,
|
|
8255
8318
|
{
|
|
8256
8319
|
checked: selectedRowKeySet.has(recordKey),
|
|
@@ -8260,7 +8323,7 @@ function Table({
|
|
|
8260
8323
|
type: selectionType
|
|
8261
8324
|
}
|
|
8262
8325
|
) }) : null,
|
|
8263
|
-
expandable ? /* @__PURE__ */
|
|
8326
|
+
expandable ? /* @__PURE__ */ jsx17(TableCell, { children: /* @__PURE__ */ jsx17(
|
|
8264
8327
|
TableExpandButton,
|
|
8265
8328
|
{
|
|
8266
8329
|
"aria-expanded": isExpanded,
|
|
@@ -8271,7 +8334,7 @@ function Table({
|
|
|
8271
8334
|
) }) : null,
|
|
8272
8335
|
columns.map((column, columnIndex) => {
|
|
8273
8336
|
const value4 = getCellValue(column, record);
|
|
8274
|
-
return /* @__PURE__ */
|
|
8337
|
+
return /* @__PURE__ */ jsx17(
|
|
8275
8338
|
TableCell,
|
|
8276
8339
|
{
|
|
8277
8340
|
$fixed: column.fixed,
|
|
@@ -8283,7 +8346,7 @@ function Table({
|
|
|
8283
8346
|
);
|
|
8284
8347
|
})
|
|
8285
8348
|
] }),
|
|
8286
|
-
expandable?.render && isExpanded ? /* @__PURE__ */
|
|
8349
|
+
expandable?.render && isExpanded ? /* @__PURE__ */ jsx17(TableRow, { children: /* @__PURE__ */ jsx17(TableExpandedCell, { colSpan: columnCount, children: expandable.render(record) }) }) : null
|
|
8287
8350
|
] }, recordKey);
|
|
8288
8351
|
}) })
|
|
8289
8352
|
]
|
|
@@ -8338,7 +8401,7 @@ var PaginationArrow = styled8.span.withConfig({
|
|
|
8338
8401
|
], chevron_right_default, chevron_right_default);
|
|
8339
8402
|
|
|
8340
8403
|
// src/commodity-original/components/Pagination/index.tsx
|
|
8341
|
-
import { jsx as
|
|
8404
|
+
import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
8342
8405
|
function getPaginationItems(page, pageCount, siblingCount) {
|
|
8343
8406
|
const maxVisibleItems = siblingCount * 2 + 5;
|
|
8344
8407
|
if (pageCount <= maxVisibleItems) {
|
|
@@ -8365,7 +8428,7 @@ function Pagination2({
|
|
|
8365
8428
|
onPageChange,
|
|
8366
8429
|
siblingCount = 1,
|
|
8367
8430
|
ariaLabel,
|
|
8368
|
-
labels,
|
|
8431
|
+
labels: labels2,
|
|
8369
8432
|
className
|
|
8370
8433
|
}) {
|
|
8371
8434
|
const { t } = useTranslation3();
|
|
@@ -8374,43 +8437,43 @@ function Pagination2({
|
|
|
8374
8437
|
const items = getPaginationItems(currentPage, safePageCount, siblingCount);
|
|
8375
8438
|
const hasPreviousPage = currentPage > 1;
|
|
8376
8439
|
const hasNextPage = currentPage < safePageCount;
|
|
8377
|
-
return /* @__PURE__ */
|
|
8440
|
+
return /* @__PURE__ */ jsx18(
|
|
8378
8441
|
PaginationNav,
|
|
8379
8442
|
{
|
|
8380
8443
|
"aria-label": ariaLabel ?? t("pagination.navigation"),
|
|
8381
8444
|
className,
|
|
8382
|
-
children: /* @__PURE__ */
|
|
8383
|
-
/* @__PURE__ */
|
|
8445
|
+
children: /* @__PURE__ */ jsxs12(PaginationList, { children: [
|
|
8446
|
+
/* @__PURE__ */ jsx18(PaginationItem, { children: /* @__PURE__ */ jsx18(
|
|
8384
8447
|
PaginationButton,
|
|
8385
8448
|
{
|
|
8386
|
-
"aria-label":
|
|
8449
|
+
"aria-label": labels2?.previous ?? t("pagination.previous"),
|
|
8387
8450
|
"data-control": "previous",
|
|
8388
8451
|
disabled: !hasPreviousPage,
|
|
8389
8452
|
onClick: () => onPageChange(currentPage - 1),
|
|
8390
8453
|
type: "button",
|
|
8391
|
-
children: /* @__PURE__ */
|
|
8454
|
+
children: /* @__PURE__ */ jsx18(PaginationArrow, { "data-direction": "previous" })
|
|
8392
8455
|
}
|
|
8393
8456
|
) }),
|
|
8394
|
-
items.map((item, index) => /* @__PURE__ */
|
|
8457
|
+
items.map((item, index) => /* @__PURE__ */ jsx18(PaginationItem, { children: item === "ellipsis" ? /* @__PURE__ */ jsx18(PaginationButton, { "aria-hidden": "true", disabled: true, tabIndex: -1, type: "button", children: "\u2026" }) : /* @__PURE__ */ jsx18(
|
|
8395
8458
|
PaginationButton,
|
|
8396
8459
|
{
|
|
8397
8460
|
"aria-current": item === currentPage ? "page" : void 0,
|
|
8398
|
-
"aria-label": item === currentPage ?
|
|
8461
|
+
"aria-label": item === currentPage ? labels2?.current(item) ?? t("pagination.current", { page: item }) : labels2?.page(item) ?? t("pagination.page", { page: item }),
|
|
8399
8462
|
"data-active": item === currentPage || void 0,
|
|
8400
8463
|
onClick: () => onPageChange(item),
|
|
8401
8464
|
type: "button",
|
|
8402
8465
|
children: item
|
|
8403
8466
|
}
|
|
8404
8467
|
) }, `${item}-${index}`)),
|
|
8405
|
-
/* @__PURE__ */
|
|
8468
|
+
/* @__PURE__ */ jsx18(PaginationItem, { children: /* @__PURE__ */ jsx18(
|
|
8406
8469
|
PaginationButton,
|
|
8407
8470
|
{
|
|
8408
|
-
"aria-label":
|
|
8471
|
+
"aria-label": labels2?.next ?? t("pagination.next"),
|
|
8409
8472
|
"data-control": "next",
|
|
8410
8473
|
disabled: !hasNextPage,
|
|
8411
8474
|
onClick: () => onPageChange(currentPage + 1),
|
|
8412
8475
|
type: "button",
|
|
8413
|
-
children: /* @__PURE__ */
|
|
8476
|
+
children: /* @__PURE__ */ jsx18(PaginationArrow, { "data-direction": "next" })
|
|
8414
8477
|
}
|
|
8415
8478
|
) })
|
|
8416
8479
|
] })
|
|
@@ -8446,7 +8509,7 @@ var InputAdornment = styled9.span.withConfig({
|
|
|
8446
8509
|
], ({ theme }) => theme.colors.text.secondary, InputCommonRoot, InputCommonRoot);
|
|
8447
8510
|
|
|
8448
8511
|
// src/commodity-original/components/InputCommon/index.tsx
|
|
8449
|
-
import { jsx as
|
|
8512
|
+
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
8450
8513
|
function InputCommon({
|
|
8451
8514
|
leftIcon,
|
|
8452
8515
|
rightIcon,
|
|
@@ -8457,11 +8520,11 @@ function InputCommon({
|
|
|
8457
8520
|
onClear,
|
|
8458
8521
|
...inputProps
|
|
8459
8522
|
}) {
|
|
8460
|
-
return /* @__PURE__ */
|
|
8461
|
-
leftIcon ? /* @__PURE__ */
|
|
8462
|
-
/* @__PURE__ */
|
|
8463
|
-
clearable && inputProps.value ? /* @__PURE__ */
|
|
8464
|
-
errorMessage ? /* @__PURE__ */
|
|
8523
|
+
return /* @__PURE__ */ jsxs13(InputCommonRoot, { "data-disabled": inputProps.disabled || void 0, "data-error": error || void 0, "data-size": size, children: [
|
|
8524
|
+
leftIcon ? /* @__PURE__ */ jsx19(InputAdornment, { "aria-hidden": "true", children: leftIcon }) : null,
|
|
8525
|
+
/* @__PURE__ */ jsx19(InputCommonField, { ...inputProps }),
|
|
8526
|
+
clearable && inputProps.value ? /* @__PURE__ */ jsx19("button", { "aria-label": "X\xF3a n\u1ED9i dung", onClick: onClear, type: "button", children: "\xD7" }) : rightIcon ? /* @__PURE__ */ jsx19(InputAdornment, { "aria-hidden": "true", children: rightIcon }) : null,
|
|
8527
|
+
errorMessage ? /* @__PURE__ */ jsx19("span", { role: "alert", children: errorMessage }) : null
|
|
8465
8528
|
] });
|
|
8466
8529
|
}
|
|
8467
8530
|
|
|
@@ -8493,7 +8556,7 @@ var TabLine = styled10.span.withConfig({
|
|
|
8493
8556
|
], ({ theme }) => theme.colors.accent.primary, TabCommonList, TabCommonList);
|
|
8494
8557
|
|
|
8495
8558
|
// src/commodity-original/components/TabCommon/index.tsx
|
|
8496
|
-
import { jsx as
|
|
8559
|
+
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
8497
8560
|
function TabCommon({
|
|
8498
8561
|
items,
|
|
8499
8562
|
value: value4,
|
|
@@ -8502,7 +8565,7 @@ function TabCommon({
|
|
|
8502
8565
|
className,
|
|
8503
8566
|
size = "md"
|
|
8504
8567
|
}) {
|
|
8505
|
-
return /* @__PURE__ */
|
|
8568
|
+
return /* @__PURE__ */ jsx20(
|
|
8506
8569
|
TabCommonList,
|
|
8507
8570
|
{
|
|
8508
8571
|
"aria-label": ariaLabel,
|
|
@@ -8511,7 +8574,7 @@ function TabCommon({
|
|
|
8511
8574
|
role: "tablist",
|
|
8512
8575
|
children: items.map((item) => {
|
|
8513
8576
|
const isActive = item.id === value4;
|
|
8514
|
-
return /* @__PURE__ */
|
|
8577
|
+
return /* @__PURE__ */ jsxs14(
|
|
8515
8578
|
TabButton,
|
|
8516
8579
|
{
|
|
8517
8580
|
"aria-selected": isActive,
|
|
@@ -8522,7 +8585,7 @@ function TabCommon({
|
|
|
8522
8585
|
type: "button",
|
|
8523
8586
|
children: [
|
|
8524
8587
|
item.label,
|
|
8525
|
-
/* @__PURE__ */
|
|
8588
|
+
/* @__PURE__ */ jsx20(TabLine, { "aria-hidden": "true" })
|
|
8526
8589
|
]
|
|
8527
8590
|
},
|
|
8528
8591
|
item.id
|
|
@@ -8629,32 +8692,32 @@ var feesTheme = {
|
|
|
8629
8692
|
]))
|
|
8630
8693
|
};
|
|
8631
8694
|
var EditorActions = styled12.div.withConfig({
|
|
8632
|
-
componentId: "sc-
|
|
8695
|
+
componentId: "sc-3c959c0c-0"
|
|
8633
8696
|
})([
|
|
8634
8697
|
`display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
|
|
8635
8698
|
]);
|
|
8636
8699
|
var EditGroup = styled12.div.withConfig({
|
|
8637
|
-
componentId: "sc-
|
|
8700
|
+
componentId: "sc-3c959c0c-1"
|
|
8638
8701
|
})([
|
|
8639
8702
|
`display:flex;flex-direction:column;gap:6px;`
|
|
8640
8703
|
]);
|
|
8641
8704
|
var HeaderGroup = styled12(EditGroup).withConfig({
|
|
8642
|
-
componentId: "sc-
|
|
8705
|
+
componentId: "sc-3c959c0c-2"
|
|
8643
8706
|
})([
|
|
8644
8707
|
`gap:8px;`
|
|
8645
8708
|
]);
|
|
8646
8709
|
var HeaderTitle = styled12.div.withConfig({
|
|
8647
|
-
componentId: "sc-
|
|
8710
|
+
componentId: "sc-3c959c0c-3"
|
|
8648
8711
|
})([
|
|
8649
8712
|
`display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
|
|
8650
8713
|
]);
|
|
8651
8714
|
var HeaderActions = styled12.div.withConfig({
|
|
8652
|
-
componentId: "sc-
|
|
8715
|
+
componentId: "sc-3c959c0c-4"
|
|
8653
8716
|
})([
|
|
8654
8717
|
`display:flex;align-items:center;min-height:24px;`
|
|
8655
8718
|
]);
|
|
8656
8719
|
var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
8657
|
-
componentId: "sc-
|
|
8720
|
+
componentId: "sc-3c959c0c-5"
|
|
8658
8721
|
})([
|
|
8659
8722
|
`&[data-editable] th{vertical-align:top;}--fees-row-background:`,
|
|
8660
8723
|
`;--fees-stripe-background:`,
|
|
@@ -8677,9 +8740,7 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
|
8677
8740
|
`px;line-height:`,
|
|
8678
8741
|
`;}tbody > tr > td{height:40px;padding-top:5.5px;padding-bottom:5.5px;font-size:`,
|
|
8679
8742
|
`px;line-height:`,
|
|
8680
|
-
`;}thead > tr > th:last-child,tbody > tr > td:last-child{padding-right:12px;}th >
|
|
8681
|
-
`;}td > span{text-align:`,
|
|
8682
|
-
`;}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:`,
|
|
8743
|
+
`;}thead > tr > th:last-child,tbody > tr > td:last-child{padding-right:12px;}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:`,
|
|
8683
8744
|
`;}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);}}}`
|
|
8684
8745
|
], ({ 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, ({ $typography }) => $typography?.thead?.fontSize ?? 10, ({ $typography }) => $typography?.thead?.fontWeight ?? 600, ({ $typography }) => $typography?.thead?.textAlign ?? "left", ({ $typography }) => $typography?.thead?.fontSize ? 1.4 : "14px", ({ $typography }) => $typography?.tbody?.fontSize ?? 12, ({ $typography }) => $typography?.tbody?.fontWeight ?? 500, ({ $typography }) => $typography?.tbody?.textAlign ?? "left", ({ $typography }) => $typography?.tbody?.fontSize ? 1.4 : "16px", ({ $mobileColumnWidths }) => $mobileColumnWidths.reduce((sum, width) => sum + width, 0), ({ $mobileColumnWidths }) => $mobileColumnWidths.map((width, index) => `
|
|
8685
8746
|
th:nth-child(${index + 1}), td:nth-child(${index + 1}) {
|
|
@@ -8687,15 +8748,16 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
|
8687
8748
|
min-width: ${width}px;
|
|
8688
8749
|
max-width: ${width}px;
|
|
8689
8750
|
}
|
|
8690
|
-
`).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", ({
|
|
8751
|
+
`).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);
|
|
8691
8752
|
var FeesCellContent = styled12.span.withConfig({
|
|
8692
|
-
componentId: "sc-
|
|
8753
|
+
componentId: "sc-3c959c0c-6"
|
|
8693
8754
|
})([
|
|
8694
8755
|
`display:block;text-align:`,
|
|
8695
|
-
|
|
8696
|
-
|
|
8756
|
+
`;@media (max-width:767px){text-align:`,
|
|
8757
|
+
`;}`
|
|
8758
|
+
], ({ $align, $alignRight }) => $align ?? ($alignRight ? "right" : "left"), ({ $align }) => $align ?? "left");
|
|
8697
8759
|
var EditorButton = styled12.button.withConfig({
|
|
8698
|
-
componentId: "sc-
|
|
8760
|
+
componentId: "sc-3c959c0c-7"
|
|
8699
8761
|
})([
|
|
8700
8762
|
`padding:7px 12px;border:1px solid `,
|
|
8701
8763
|
`;border-radius:6px;background:`,
|
|
@@ -8704,17 +8766,17 @@ var EditorButton = styled12.button.withConfig({
|
|
|
8704
8766
|
`;}&:disabled{cursor:default;opacity:.4;}`
|
|
8705
8767
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8706
8768
|
var OrderActions = styled12.div.withConfig({
|
|
8707
|
-
componentId: "sc-
|
|
8769
|
+
componentId: "sc-3c959c0c-8"
|
|
8708
8770
|
})([
|
|
8709
8771
|
`display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
|
|
8710
8772
|
]);
|
|
8711
8773
|
var PositionLabel = styled12.label.withConfig({
|
|
8712
|
-
componentId: "sc-
|
|
8774
|
+
componentId: "sc-3c959c0c-9"
|
|
8713
8775
|
})([
|
|
8714
8776
|
`display:inline-flex;align-items:center;gap:6px;font-size:12px;`
|
|
8715
8777
|
]);
|
|
8716
8778
|
var PositionInput = styled12.input.withConfig({
|
|
8717
|
-
componentId: "sc-
|
|
8779
|
+
componentId: "sc-3c959c0c-10"
|
|
8718
8780
|
})([
|
|
8719
8781
|
`width:56px;padding:5px;border:1px solid `,
|
|
8720
8782
|
`;border-radius:4px;background:`,
|
|
@@ -8723,17 +8785,17 @@ var PositionInput = styled12.input.withConfig({
|
|
|
8723
8785
|
`;}`
|
|
8724
8786
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8725
8787
|
var ColumnRow = styled12.div.withConfig({
|
|
8726
|
-
componentId: "sc-
|
|
8788
|
+
componentId: "sc-3c959c0c-11"
|
|
8727
8789
|
})([
|
|
8728
8790
|
`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;}`
|
|
8729
8791
|
]);
|
|
8730
8792
|
var PaginationControls = styled12(FeesAndMarginPagination).withConfig({
|
|
8731
|
-
componentId: "sc-
|
|
8793
|
+
componentId: "sc-3c959c0c-12"
|
|
8732
8794
|
})([
|
|
8733
8795
|
`align-items:center;flex-wrap:wrap;gap:16px 24px;`
|
|
8734
8796
|
]);
|
|
8735
8797
|
var PageSizeLabel = styled12.div.withConfig({
|
|
8736
|
-
componentId: "sc-
|
|
8798
|
+
componentId: "sc-3c959c0c-13"
|
|
8737
8799
|
})([
|
|
8738
8800
|
`display:inline-flex;align-items:center;gap:8px;color:`,
|
|
8739
8801
|
`;font:inherit;font-size:13px;`
|
|
@@ -8761,17 +8823,18 @@ function Position({ value: value4, max, label, onMove }) {
|
|
|
8761
8823
|
});
|
|
8762
8824
|
}
|
|
8763
8825
|
var DeleteButton = styled12(EditorButton).withConfig({
|
|
8764
|
-
componentId: "sc-
|
|
8826
|
+
componentId: "sc-3c959c0c-14"
|
|
8765
8827
|
})([
|
|
8766
8828
|
`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;}`
|
|
8767
8829
|
]);
|
|
8768
8830
|
var CellEditorInput = styled12.textarea.withConfig({
|
|
8769
|
-
componentId: "sc-
|
|
8831
|
+
componentId: "sc-3c959c0c-15"
|
|
8770
8832
|
})([
|
|
8771
8833
|
`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:`,
|
|
8772
8834
|
`;}&:focus{outline:1px solid `,
|
|
8835
|
+
`;}&[data-fees-cell-selected="true"]{border-color:`,
|
|
8773
8836
|
`;}`
|
|
8774
|
-
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.accent.primary);
|
|
8837
|
+
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8775
8838
|
function CellEditor({ onInput, ...props }) {
|
|
8776
8839
|
const ref = useRef4(null);
|
|
8777
8840
|
const fit = () => {
|
|
@@ -8901,13 +8964,14 @@ var rightAlignedColumns = /* @__PURE__ */ new Set([
|
|
|
8901
8964
|
"priceUnit",
|
|
8902
8965
|
"unit"
|
|
8903
8966
|
]);
|
|
8904
|
-
function FeesTable({ value: value4, editable = false, onChange, labels, size = "md", tagOrder = [], language = "vi" }) {
|
|
8967
|
+
function FeesTable({ value: value4, editable = false, onChange, labels: labels2, size = "md", tagOrder = [], language = "vi" }) {
|
|
8905
8968
|
const [search, setSearch] = useState6("");
|
|
8906
8969
|
const [tag, setTag] = useState6("");
|
|
8907
8970
|
const [page, setPage] = useState6(1);
|
|
8908
8971
|
const [pageSize, setPageSize] = useState6(FEES_PAGE_SIZE);
|
|
8909
8972
|
const [columnsOpen, setColumnsOpen] = useState6(false);
|
|
8910
8973
|
const [typographyOpen, setTypographyOpen] = useState6(false);
|
|
8974
|
+
const [selectedCell, setSelectedCell] = useState6(null);
|
|
8911
8975
|
const english = language === "en";
|
|
8912
8976
|
const canEdit = editable && Boolean(onChange);
|
|
8913
8977
|
const tableRoot = useRef4(null);
|
|
@@ -8945,10 +9009,17 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
8945
9009
|
onChange?.({
|
|
8946
9010
|
...value4,
|
|
8947
9011
|
columns: value4.columns.filter((column) => column.key !== deleteTarget.id),
|
|
8948
|
-
rows: value4.rows.map((row) =>
|
|
8949
|
-
...row
|
|
8950
|
-
|
|
8951
|
-
|
|
9012
|
+
rows: value4.rows.map((row) => {
|
|
9013
|
+
const { cellAlignments, ...rest } = row;
|
|
9014
|
+
const alignments = Object.fromEntries(Object.entries(cellAlignments ?? {}).filter(([key]) => key !== deleteTarget.id));
|
|
9015
|
+
return {
|
|
9016
|
+
...rest,
|
|
9017
|
+
cells: Object.fromEntries(Object.entries(row.cells).filter(([key]) => key !== deleteTarget.id)),
|
|
9018
|
+
...Object.keys(alignments).length ? {
|
|
9019
|
+
cellAlignments: alignments
|
|
9020
|
+
} : {}
|
|
9021
|
+
};
|
|
9022
|
+
})
|
|
8952
9023
|
});
|
|
8953
9024
|
}
|
|
8954
9025
|
setDeleteTarget(null);
|
|
@@ -8981,6 +9052,17 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
8981
9052
|
const filtered = filterFeesRows(value4, search, activeTag);
|
|
8982
9053
|
const displayedRows = canEdit ? filtered : sortFeesRowsByName(filtered, language);
|
|
8983
9054
|
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;
|
|
9060
|
+
useLayoutEffect2(() => {
|
|
9061
|
+
if (selectedCell && !selectedTarget) setSelectedCell(null);
|
|
9062
|
+
}, [
|
|
9063
|
+
selectedCell,
|
|
9064
|
+
selectedTarget
|
|
9065
|
+
]);
|
|
8984
9066
|
const moveColumn = (from, to) => onChange?.({
|
|
8985
9067
|
...value4,
|
|
8986
9068
|
columns: moveFeesItem(value4.columns, from, to)
|
|
@@ -9033,6 +9115,14 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9033
9115
|
rows: 2,
|
|
9034
9116
|
value: column.title,
|
|
9035
9117
|
"aria-label": `Ti\xEAu \u0111\u1EC1 c\u1ED9t ${index + 1}`,
|
|
9118
|
+
style: {
|
|
9119
|
+
textAlign: column.textAlign ?? value4.typography?.thead?.textAlign ?? "left"
|
|
9120
|
+
},
|
|
9121
|
+
"data-fees-cell-selected": selectedTarget?.part === "thead" && selectedTarget.columnKey === column.key,
|
|
9122
|
+
onFocus: () => setSelectedCell({
|
|
9123
|
+
part: "thead",
|
|
9124
|
+
columnKey: column.key
|
|
9125
|
+
}),
|
|
9036
9126
|
onChange: (event) => onChange?.({
|
|
9037
9127
|
...value4,
|
|
9038
9128
|
columns: value4.columns.map((item) => item.key === column.key ? {
|
|
@@ -9057,13 +9147,23 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9057
9147
|
})
|
|
9058
9148
|
]
|
|
9059
9149
|
}) : /* @__PURE__ */ _jsx3(FeesCellContent, {
|
|
9060
|
-
$align: value4.typography?.thead?.textAlign
|
|
9150
|
+
$align: column.textAlign ?? value4.typography?.thead?.textAlign,
|
|
9151
|
+
$alignRight: rightAlignedColumns.has(column.key),
|
|
9061
9152
|
children: column.title
|
|
9062
9153
|
}),
|
|
9063
9154
|
render: (_unused, row) => canEdit ? /* @__PURE__ */ _jsx3(CellEditor, {
|
|
9064
9155
|
rows: Math.max(2, (row.cells[column.key] ?? "").split("\n").length),
|
|
9065
9156
|
value: row.cells[column.key] ?? "",
|
|
9066
9157
|
"aria-label": `${column.title} \u2014 ${row.cells.name || "H\xE0ng m\u1EDBi"}`,
|
|
9158
|
+
style: {
|
|
9159
|
+
textAlign: row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign ?? "left"
|
|
9160
|
+
},
|
|
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
|
+
}),
|
|
9067
9167
|
onChange: (event) => changeRow(row.id, {
|
|
9068
9168
|
cells: {
|
|
9069
9169
|
...row.cells,
|
|
@@ -9071,7 +9171,8 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9071
9171
|
}
|
|
9072
9172
|
})
|
|
9073
9173
|
}) : /* @__PURE__ */ _jsx3(FeesCellContent, {
|
|
9074
|
-
$align: value4.typography?.tbody?.textAlign
|
|
9174
|
+
$align: row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign,
|
|
9175
|
+
$alignRight: rightAlignedColumns.has(column.key),
|
|
9075
9176
|
children: row.cells[column.key] ?? ""
|
|
9076
9177
|
})
|
|
9077
9178
|
}));
|
|
@@ -9156,7 +9257,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9156
9257
|
items: [
|
|
9157
9258
|
{
|
|
9158
9259
|
id: "",
|
|
9159
|
-
label:
|
|
9260
|
+
label: labels2?.all ?? "T\u1EA5t c\u1EA3"
|
|
9160
9261
|
},
|
|
9161
9262
|
...tags.map((item) => ({
|
|
9162
9263
|
id: item,
|
|
@@ -9174,8 +9275,8 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9174
9275
|
children: /* @__PURE__ */ _jsx3(InputCommon, {
|
|
9175
9276
|
leftIcon: /* @__PURE__ */ _jsx3(FeesSearchIcon, {}),
|
|
9176
9277
|
size: "sm",
|
|
9177
|
-
"aria-label":
|
|
9178
|
-
placeholder:
|
|
9278
|
+
"aria-label": labels2?.search ?? "T\xECm t\xEAn h\xE0ng h\xF3a ho\u1EB7c m\xE3",
|
|
9279
|
+
placeholder: labels2?.search ?? "T\xECm t\xEAn h\xE0ng h\xF3a ho\u1EB7c m\xE3",
|
|
9179
9280
|
value: search,
|
|
9180
9281
|
onChange: (event) => {
|
|
9181
9282
|
setSearch(event.target.value);
|
|
@@ -9273,6 +9374,14 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9273
9374
|
})
|
|
9274
9375
|
})
|
|
9275
9376
|
}),
|
|
9377
|
+
canEdit && /* @__PURE__ */ _jsx3(FeesCellAlignmentControls, {
|
|
9378
|
+
label: selectedLabel,
|
|
9379
|
+
value: selectedAlign,
|
|
9380
|
+
english,
|
|
9381
|
+
onChange: (textAlign) => {
|
|
9382
|
+
if (selectedTarget) onChange?.(setFeesCellAlignment(value4, selectedTarget, textAlign));
|
|
9383
|
+
}
|
|
9384
|
+
}),
|
|
9276
9385
|
/* @__PURE__ */ _jsx3(AlignedFeesTable, {
|
|
9277
9386
|
$typography: value4.typography,
|
|
9278
9387
|
$mobileColumnWidths: columns.map((column) => Math.ceil((mobileColumnWidths[column.key] ?? 88) * mobileFontScale)),
|
|
@@ -9283,7 +9392,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9283
9392
|
dataSource: pagination.rows,
|
|
9284
9393
|
rowKey: "id",
|
|
9285
9394
|
size,
|
|
9286
|
-
empty:
|
|
9395
|
+
empty: labels2?.empty ?? "Kh\xF4ng t\xECm th\u1EA5y h\xE0ng h\xF3a",
|
|
9287
9396
|
scroll: {
|
|
9288
9397
|
x: canEdit ? Math.max(1440, value4.columns.reduce((sum, column) => sum + (columnWidths[column.key] ?? 140), 0) + 300) : value4.columns.length * 170 + 8
|
|
9289
9398
|
}
|
|
@@ -9436,7 +9545,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9436
9545
|
]
|
|
9437
9546
|
}),
|
|
9438
9547
|
/* @__PURE__ */ _jsx3(DialogActions, {
|
|
9439
|
-
children: /* @__PURE__ */ _jsx3(
|
|
9548
|
+
children: /* @__PURE__ */ _jsx3(Button9, {
|
|
9440
9549
|
variant: "contained",
|
|
9441
9550
|
onClick: () => setColumnsOpen(false),
|
|
9442
9551
|
children: "Xong"
|
|
@@ -9476,11 +9585,11 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9476
9585
|
}),
|
|
9477
9586
|
/* @__PURE__ */ _jsxs3(DialogActions, {
|
|
9478
9587
|
children: [
|
|
9479
|
-
/* @__PURE__ */ _jsx3(
|
|
9588
|
+
/* @__PURE__ */ _jsx3(Button9, {
|
|
9480
9589
|
onClick: () => setCreateTagOpen(false),
|
|
9481
9590
|
children: "H\u1EE7y"
|
|
9482
9591
|
}),
|
|
9483
|
-
/* @__PURE__ */ _jsx3(
|
|
9592
|
+
/* @__PURE__ */ _jsx3(Button9, {
|
|
9484
9593
|
variant: "contained",
|
|
9485
9594
|
disabled: !newTagName || duplicateTag,
|
|
9486
9595
|
onClick: createTag,
|
|
@@ -9515,12 +9624,12 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9515
9624
|
}),
|
|
9516
9625
|
/* @__PURE__ */ _jsxs3(DialogActions, {
|
|
9517
9626
|
children: [
|
|
9518
|
-
/* @__PURE__ */ _jsx3(
|
|
9627
|
+
/* @__PURE__ */ _jsx3(Button9, {
|
|
9519
9628
|
autoFocus: true,
|
|
9520
9629
|
onClick: () => setDeleteTarget(null),
|
|
9521
9630
|
children: "H\u1EE7y"
|
|
9522
9631
|
}),
|
|
9523
|
-
/* @__PURE__ */ _jsxs3(
|
|
9632
|
+
/* @__PURE__ */ _jsxs3(Button9, {
|
|
9524
9633
|
color: "error",
|
|
9525
9634
|
variant: "contained",
|
|
9526
9635
|
onClick: confirmDelete,
|
|
@@ -9539,7 +9648,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9539
9648
|
}
|
|
9540
9649
|
|
|
9541
9650
|
// src/commodity-original/app/bang-phi-ky-quy/FeesAndMarginContent.tsx
|
|
9542
|
-
import { jsx as
|
|
9651
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
9543
9652
|
var monthCodes = [
|
|
9544
9653
|
"F",
|
|
9545
9654
|
"G",
|
|
@@ -9560,12 +9669,12 @@ function FeesAndMarginContent({ content, editable, onChange, readOnlyFields }) {
|
|
|
9560
9669
|
const [activeMonth] = useState7(0);
|
|
9561
9670
|
const field = `${content.__cmsLanguage === "en" ? "en" : "vi"}.feesTable`;
|
|
9562
9671
|
const data = parseFeesTable(content[field], defaultFeesTable((key) => String(t(key))));
|
|
9563
|
-
return /* @__PURE__ */
|
|
9564
|
-
/* @__PURE__ */
|
|
9565
|
-
/* @__PURE__ */
|
|
9566
|
-
/* @__PURE__ */
|
|
9672
|
+
return /* @__PURE__ */ jsx21(FeesAndMarginMain, { children: /* @__PURE__ */ jsxs15(FeesAndMarginPageContent, { children: [
|
|
9673
|
+
/* @__PURE__ */ jsxs15(FeesAndMarginHeader, { children: [
|
|
9674
|
+
/* @__PURE__ */ jsx21(ExactText, { cmsAs: "h1", children: t("fees.title") }),
|
|
9675
|
+
/* @__PURE__ */ jsx21(ExactText, { cmsAs: "p", children: t("fees.effectiveDate") })
|
|
9567
9676
|
] }),
|
|
9568
|
-
/* @__PURE__ */
|
|
9677
|
+
/* @__PURE__ */ jsx21(
|
|
9569
9678
|
FeesTable,
|
|
9570
9679
|
{
|
|
9571
9680
|
value: data,
|
|
@@ -9577,16 +9686,16 @@ function FeesAndMarginContent({ content, editable, onChange, readOnlyFields }) {
|
|
|
9577
9686
|
labels: { search: t("fees.searchPlaceholder"), all: t("fees.categories.all"), empty: t("fees.empty") }
|
|
9578
9687
|
}
|
|
9579
9688
|
),
|
|
9580
|
-
/* @__PURE__ */
|
|
9581
|
-
/* @__PURE__ */
|
|
9582
|
-
/* @__PURE__ */
|
|
9689
|
+
/* @__PURE__ */ jsxs15(FeesMonthNavigation, { "aria-label": t("fees.contractMonthsLabel"), children: [
|
|
9690
|
+
/* @__PURE__ */ jsx21(ExactText, { cmsAs: FeesMonthTitle, children: t("fees.contractMonths") }),
|
|
9691
|
+
/* @__PURE__ */ jsx21(FeesMonthList, { children: monthCodes.map((code, index) => /* @__PURE__ */ jsx21("li", { children: /* @__PURE__ */ jsxs15(
|
|
9583
9692
|
FeesMonthButton,
|
|
9584
9693
|
{
|
|
9585
9694
|
"aria-pressed": activeMonth === index,
|
|
9586
9695
|
type: "button",
|
|
9587
9696
|
children: [
|
|
9588
|
-
/* @__PURE__ */
|
|
9589
|
-
/* @__PURE__ */
|
|
9697
|
+
/* @__PURE__ */ jsx21(ExactText, { cmsAs: FeesMonthName, children: t("fees.monthNumber", { month: index + 1 }) }),
|
|
9698
|
+
/* @__PURE__ */ jsx21(ExactText, { cmsAs: FeesMonthCode, children: code })
|
|
9590
9699
|
]
|
|
9591
9700
|
}
|
|
9592
9701
|
) }, code)) })
|
|
@@ -9596,7 +9705,7 @@ function FeesAndMarginContent({ content, editable, onChange, readOnlyFields }) {
|
|
|
9596
9705
|
|
|
9597
9706
|
// src/commodity-original/app/chinh-sach/PolicyContent.tsx
|
|
9598
9707
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
9599
|
-
import { jsx as
|
|
9708
|
+
import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
9600
9709
|
var textBlockStyles = { h1: PageTitle, h2: SectionTitle, h3: SubsectionTitle, p: Paragraph };
|
|
9601
9710
|
function keys(prefix, count) {
|
|
9602
9711
|
return Array.from({ length: count }, (_, index) => `${prefix}.${index}`);
|
|
@@ -9619,100 +9728,100 @@ function LeadText({
|
|
|
9619
9728
|
...label ? [{ start: 0, end: label.length, bold: true }] : [],
|
|
9620
9729
|
...destination && value4 ? [{ start, end: text2.length, href: destination, bold: true, newTab: external }] : []
|
|
9621
9730
|
] };
|
|
9622
|
-
return /* @__PURE__ */
|
|
9623
|
-
label ? /* @__PURE__ */
|
|
9731
|
+
return /* @__PURE__ */ jsxs16(ExactText, { cmsField: translationKey, cmsAs: InlineLink, cmsDefaultRichText: defaults, children: [
|
|
9732
|
+
label ? /* @__PURE__ */ jsx22("strong", { children: label }) : null,
|
|
9624
9733
|
text2.slice(label.length, start),
|
|
9625
|
-
destination ? /* @__PURE__ */
|
|
9734
|
+
destination ? /* @__PURE__ */ jsx22("strong", { children: value4 }) : value4
|
|
9626
9735
|
] });
|
|
9627
9736
|
}
|
|
9628
9737
|
function PrivacyPolicyPage() {
|
|
9629
9738
|
const { t, i18n } = useTranslation5();
|
|
9630
9739
|
const language = i18n.resolvedLanguage === "en" ? "en" : "vi";
|
|
9631
|
-
return /* @__PURE__ */
|
|
9632
|
-
/* @__PURE__ */
|
|
9633
|
-
/* @__PURE__ */
|
|
9634
|
-
/* @__PURE__ */
|
|
9635
|
-
keys("policy.intro.paragraphs", 3).map((key) => /* @__PURE__ */
|
|
9740
|
+
return /* @__PURE__ */ jsx22(CmsTextBlockProvider, { styles: textBlockStyles, children: /* @__PURE__ */ jsx22(PolicyMain, { children: /* @__PURE__ */ jsxs16(PolicyArticle, { children: [
|
|
9741
|
+
/* @__PURE__ */ jsxs16(PolicyHeader, { children: [
|
|
9742
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.title", cmsAs: PageTitle, children: t("policy.title") }),
|
|
9743
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.intro.title", cmsAs: IntroTitle, children: t("policy.intro.title") }),
|
|
9744
|
+
keys("policy.intro.paragraphs", 3).map((key) => /* @__PURE__ */ jsx22(ExactText, { cmsField: key, cmsAs: Paragraph, children: t(key) }, key))
|
|
9636
9745
|
] }),
|
|
9637
|
-
/* @__PURE__ */
|
|
9638
|
-
/* @__PURE__ */
|
|
9639
|
-
/* @__PURE__ */
|
|
9640
|
-
/* @__PURE__ */
|
|
9641
|
-
/* @__PURE__ */
|
|
9642
|
-
/* @__PURE__ */
|
|
9746
|
+
/* @__PURE__ */ jsxs16(Section, { children: [
|
|
9747
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.collection.title", cmsAs: SectionTitle, children: t("policy.collection.title") }),
|
|
9748
|
+
/* @__PURE__ */ jsxs16(Subsection, { children: [
|
|
9749
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.collection.scope.title", cmsAs: SubsectionTitle, children: t("policy.collection.scope.title") }),
|
|
9750
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.collection.scope.intro", cmsAs: Paragraph, children: t("policy.collection.scope.intro") }),
|
|
9751
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: BulletList, cmsId: `${language}.policy.collection.scope.items`, children: keys("policy.collection.scope.items", 5).map((key) => /* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: key }) }, key)) })
|
|
9643
9752
|
] }),
|
|
9644
|
-
/* @__PURE__ */
|
|
9645
|
-
/* @__PURE__ */
|
|
9646
|
-
/* @__PURE__ */
|
|
9647
|
-
/* @__PURE__ */
|
|
9753
|
+
/* @__PURE__ */ jsxs16(Subsection, { children: [
|
|
9754
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.collection.methods.title", cmsAs: SubsectionTitle, children: t("policy.collection.methods.title") }),
|
|
9755
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.collection.methods.intro", cmsAs: Paragraph, children: t("policy.collection.methods.intro") }),
|
|
9756
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: BulletList, cmsId: `${language}.policy.collection.methods.items`, children: keys("policy.collection.methods.items", 3).map((key) => /* @__PURE__ */ jsx22(ExactText, { cmsField: key, cmsAs: "li", children: t(key) }, key)) })
|
|
9648
9757
|
] })
|
|
9649
9758
|
] }),
|
|
9650
|
-
/* @__PURE__ */
|
|
9651
|
-
/* @__PURE__ */
|
|
9652
|
-
/* @__PURE__ */
|
|
9653
|
-
/* @__PURE__ */
|
|
9759
|
+
/* @__PURE__ */ jsxs16(Section, { children: [
|
|
9760
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.processing.title", cmsAs: SectionTitle, children: t("policy.processing.title") }),
|
|
9761
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.processing.intro", cmsAs: Paragraph, children: t("policy.processing.intro") }),
|
|
9762
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: NumberedList, cmsId: `${language}.policy.processing.items`, children: keys("policy.processing.items", 6).map((key) => /* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: key }) }, key)) })
|
|
9654
9763
|
] }),
|
|
9655
|
-
/* @__PURE__ */
|
|
9656
|
-
/* @__PURE__ */
|
|
9657
|
-
/* @__PURE__ */
|
|
9764
|
+
/* @__PURE__ */ jsxs16(Section, { children: [
|
|
9765
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.retention.title", cmsAs: SectionTitle, children: t("policy.retention.title") }),
|
|
9766
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: BulletList, cmsId: `${language}.policy.retention.items`, children: keys("policy.retention.items", 3).map((key) => /* @__PURE__ */ jsx22(ExactText, { cmsField: key, cmsAs: "li", children: t(key) }, key)) })
|
|
9658
9767
|
] }),
|
|
9659
|
-
/* @__PURE__ */
|
|
9660
|
-
/* @__PURE__ */
|
|
9661
|
-
/* @__PURE__ */
|
|
9662
|
-
/* @__PURE__ */
|
|
9768
|
+
/* @__PURE__ */ jsxs16(Section, { children: [
|
|
9769
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.sharing.title", cmsAs: SectionTitle, children: t("policy.sharing.title") }),
|
|
9770
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.sharing.intro", cmsAs: Paragraph, children: t("policy.sharing.intro") }),
|
|
9771
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: NumberedList, cmsId: `${language}.policy.sharing.items`, children: keys("policy.sharing.items", 4).map((key) => /* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: key }) }, key)) })
|
|
9663
9772
|
] }),
|
|
9664
|
-
/* @__PURE__ */
|
|
9665
|
-
/* @__PURE__ */
|
|
9666
|
-
/* @__PURE__ */
|
|
9667
|
-
/* @__PURE__ */
|
|
9773
|
+
/* @__PURE__ */ jsxs16(Section, { children: [
|
|
9774
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.security.title", cmsAs: SectionTitle, children: t("policy.security.title") }),
|
|
9775
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.security.intro", cmsAs: Paragraph, children: t("policy.security.intro") }),
|
|
9776
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: BulletList, cmsId: `${language}.policy.security.items`, children: keys("policy.security.items", 4).map((key) => /* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: key }) }, key)) })
|
|
9668
9777
|
] }),
|
|
9669
|
-
/* @__PURE__ */
|
|
9670
|
-
/* @__PURE__ */
|
|
9671
|
-
/* @__PURE__ */
|
|
9672
|
-
/* @__PURE__ */
|
|
9673
|
-
/* @__PURE__ */
|
|
9778
|
+
/* @__PURE__ */ jsxs16(Section, { children: [
|
|
9779
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.customer.title", cmsAs: SectionTitle, children: t("policy.customer.title") }),
|
|
9780
|
+
/* @__PURE__ */ jsxs16(Subsection, { children: [
|
|
9781
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.customer.rights.title", cmsAs: SubsectionTitle, children: t("policy.customer.rights.title") }),
|
|
9782
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: BulletList, cmsId: `${language}.policy.customer.rights.items`, children: keys("policy.customer.rights.items", 3).map((key) => /* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: key }) }, key)) })
|
|
9674
9783
|
] }),
|
|
9675
|
-
/* @__PURE__ */
|
|
9676
|
-
/* @__PURE__ */
|
|
9677
|
-
/* @__PURE__ */
|
|
9784
|
+
/* @__PURE__ */ jsxs16(Subsection, { children: [
|
|
9785
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsAs: SubsectionTitle, children: t("policy.customer.obligations.title") }),
|
|
9786
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: BulletList, cmsId: `${language}.policy.customer.obligations.items`, children: keys("policy.customer.obligations.items", 3).map((key) => /* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: key }) }, key)) })
|
|
9678
9787
|
] })
|
|
9679
9788
|
] }),
|
|
9680
|
-
/* @__PURE__ */
|
|
9681
|
-
/* @__PURE__ */
|
|
9682
|
-
/* @__PURE__ */
|
|
9683
|
-
/* @__PURE__ */
|
|
9684
|
-
/* @__PURE__ */
|
|
9685
|
-
/* @__PURE__ */
|
|
9686
|
-
/* @__PURE__ */
|
|
9789
|
+
/* @__PURE__ */ jsxs16(Section, { children: [
|
|
9790
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.deletion.title", cmsAs: SectionTitle, children: t("policy.deletion.title") }),
|
|
9791
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.deletion.intro", cmsAs: Paragraph, children: t("policy.deletion.intro") }),
|
|
9792
|
+
/* @__PURE__ */ jsxs16(CmsTemplateList, { cmsAs: NumberedList, cmsId: `${language}.policy.deletion`, children: [
|
|
9793
|
+
/* @__PURE__ */ jsxs16("li", { children: [
|
|
9794
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.deletion.conditions.title", cmsAs: "strong", children: t("policy.deletion.conditions.title") }),
|
|
9795
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: NestedBulletList, cmsId: `${language}.policy.deletion.conditions.items`, children: keys("policy.deletion.conditions.items", 3).map((key) => /* @__PURE__ */ jsx22(ExactText, { cmsField: key, cmsAs: "li", children: t(key) }, key)) })
|
|
9687
9796
|
] }),
|
|
9688
|
-
/* @__PURE__ */
|
|
9797
|
+
/* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: "policy.deletion.consequences" }) })
|
|
9689
9798
|
] })
|
|
9690
9799
|
] }),
|
|
9691
|
-
/* @__PURE__ */
|
|
9692
|
-
/* @__PURE__ */
|
|
9693
|
-
/* @__PURE__ */
|
|
9800
|
+
/* @__PURE__ */ jsxs16(Section, { children: [
|
|
9801
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.updates.title", cmsAs: SectionTitle, children: t("policy.updates.title") }),
|
|
9802
|
+
/* @__PURE__ */ jsx22(CmsTemplateList, { cmsAs: BulletList, cmsId: `${language}.policy.updates.items`, children: keys("policy.updates.items", 3).map((key) => /* @__PURE__ */ jsx22(ExactText, { cmsField: key, cmsAs: "li", children: t(key) }, key)) })
|
|
9694
9803
|
] }),
|
|
9695
|
-
/* @__PURE__ */
|
|
9696
|
-
/* @__PURE__ */
|
|
9697
|
-
/* @__PURE__ */
|
|
9698
|
-
/* @__PURE__ */
|
|
9699
|
-
/* @__PURE__ */
|
|
9700
|
-
/* @__PURE__ */
|
|
9701
|
-
/* @__PURE__ */
|
|
9804
|
+
/* @__PURE__ */ jsxs16(Section, { children: [
|
|
9805
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.contact.title", cmsAs: SectionTitle, children: t("policy.contact.title") }),
|
|
9806
|
+
/* @__PURE__ */ jsx22(ExactText, { cmsField: "policy.contact.intro", cmsAs: Paragraph, children: t("policy.contact.intro") }),
|
|
9807
|
+
/* @__PURE__ */ jsxs16(CmsTemplateList, { cmsAs: BulletList, cmsId: `${language}.policy.contact`, children: [
|
|
9808
|
+
/* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: "policy.contact.company" }) }),
|
|
9809
|
+
/* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: "policy.contact.address" }) }),
|
|
9810
|
+
/* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(
|
|
9702
9811
|
LeadText,
|
|
9703
9812
|
{
|
|
9704
9813
|
translationKey: "policy.contact.phone",
|
|
9705
9814
|
href: "tel:0938427079"
|
|
9706
9815
|
}
|
|
9707
9816
|
) }),
|
|
9708
|
-
/* @__PURE__ */
|
|
9817
|
+
/* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(
|
|
9709
9818
|
LeadText,
|
|
9710
9819
|
{
|
|
9711
9820
|
translationKey: "policy.contact.email",
|
|
9712
9821
|
href: "mailto:admin@wikex.vn"
|
|
9713
9822
|
}
|
|
9714
9823
|
) }),
|
|
9715
|
-
/* @__PURE__ */
|
|
9824
|
+
/* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(
|
|
9716
9825
|
LeadText,
|
|
9717
9826
|
{
|
|
9718
9827
|
translationKey: "policy.contact.website",
|
|
@@ -9721,7 +9830,7 @@ function PrivacyPolicyPage() {
|
|
|
9721
9830
|
}
|
|
9722
9831
|
) })
|
|
9723
9832
|
] }),
|
|
9724
|
-
/* @__PURE__ */
|
|
9833
|
+
/* @__PURE__ */ jsx22(Paragraph, { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: "policy.contact.response" }) })
|
|
9725
9834
|
] })
|
|
9726
9835
|
] }) }) });
|
|
9727
9836
|
}
|
|
@@ -9763,14 +9872,14 @@ var ComingSoonDescription = styled13.p.withConfig({
|
|
|
9763
9872
|
], ({ theme }) => theme.colors.text.secondary);
|
|
9764
9873
|
|
|
9765
9874
|
// src/commodity-original/app/comming-soon/ComingSoonContent.tsx
|
|
9766
|
-
import { jsx as
|
|
9875
|
+
import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
9767
9876
|
function ComingSoonContent() {
|
|
9768
9877
|
const router = useRouter();
|
|
9769
9878
|
const { t } = useTranslation6();
|
|
9770
9879
|
const artwork = useCmsImage("comingSoonImage", "/comming/comming_soon.png");
|
|
9771
|
-
return /* @__PURE__ */
|
|
9772
|
-
/* @__PURE__ */
|
|
9773
|
-
/* @__PURE__ */
|
|
9880
|
+
return /* @__PURE__ */ jsx23(ComingSoonMain, { children: /* @__PURE__ */ jsxs17(ComingSoonContainer, { children: [
|
|
9881
|
+
/* @__PURE__ */ jsxs17(ComingSoonArtwork, { className: "wikex-cms-image-host", style: { position: "relative" }, children: [
|
|
9882
|
+
/* @__PURE__ */ jsx23(
|
|
9774
9883
|
Image4,
|
|
9775
9884
|
{
|
|
9776
9885
|
src: artwork,
|
|
@@ -9781,13 +9890,13 @@ function ComingSoonContent() {
|
|
|
9781
9890
|
sizes: "(max-width: 767px) 280px, 340px"
|
|
9782
9891
|
}
|
|
9783
9892
|
),
|
|
9784
|
-
/* @__PURE__ */
|
|
9893
|
+
/* @__PURE__ */ jsx23(CmsImageAction, { field: "comingSoonImage" })
|
|
9785
9894
|
] }),
|
|
9786
|
-
/* @__PURE__ */
|
|
9787
|
-
/* @__PURE__ */
|
|
9788
|
-
/* @__PURE__ */
|
|
9895
|
+
/* @__PURE__ */ jsxs17("div", { children: [
|
|
9896
|
+
/* @__PURE__ */ jsx23(ExactText, { cmsAs: ComingSoonTitle, children: t("comingSoon.title") }),
|
|
9897
|
+
/* @__PURE__ */ jsx23(ExactText, { cmsAs: ComingSoonDescription, children: t("comingSoon.description") })
|
|
9789
9898
|
] }),
|
|
9790
|
-
/* @__PURE__ */
|
|
9899
|
+
/* @__PURE__ */ jsx23(
|
|
9791
9900
|
Button_default,
|
|
9792
9901
|
{
|
|
9793
9902
|
className: "coming-soon-cta",
|
|
@@ -10028,66 +10137,66 @@ function SupportRequestBlock() {
|
|
|
10028
10137
|
}
|
|
10029
10138
|
|
|
10030
10139
|
// src/commodity-original/app/khieu-nai/ComplaintsContent.tsx
|
|
10031
|
-
import { Fragment as Fragment7, jsx as
|
|
10140
|
+
import { Fragment as Fragment7, jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
10032
10141
|
function ComplaintPolicyPage() {
|
|
10033
|
-
return /* @__PURE__ */
|
|
10034
|
-
/* @__PURE__ */
|
|
10035
|
-
/* @__PURE__ */
|
|
10036
|
-
/* @__PURE__ */
|
|
10037
|
-
/* @__PURE__ */
|
|
10038
|
-
/* @__PURE__ */
|
|
10142
|
+
return /* @__PURE__ */ jsxs18(Fragment7, { children: [
|
|
10143
|
+
/* @__PURE__ */ jsx24(SupportRequestBlock, {}),
|
|
10144
|
+
/* @__PURE__ */ jsx24(PolicyMain2, { children: /* @__PURE__ */ jsxs18(PolicyArticle2, { children: [
|
|
10145
|
+
/* @__PURE__ */ jsxs18(PolicyHeader2, { children: [
|
|
10146
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.1", cmsAs: PageTitle2, children: "QUY CH\u1EBE TI\u1EBEP NH\u1EACN V\xC0 GI\u1EA2I QUY\u1EBET KHI\u1EBEU N\u1EA0I KH\xC1CH H\xC0NG" }),
|
|
10147
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.2", cmsAs: Intro, children: "Wikex ti\u1EBFp nh\u1EADn v\xE0 x\u1EED l\xFD khi\u1EBFu n\u1EA1i c\u1EE7a Kh\xE1ch h\xE0ng theo quy tr\xECnh minh b\u1EA1ch, nh\u1EB1m b\u1EA3o v\u1EC7 quy\u1EC1n v\xE0 l\u1EE3i \xEDch h\u1EE3p ph\xE1p c\u1EE7a c\xE1c b\xEAn." })
|
|
10039
10148
|
] }),
|
|
10040
|
-
/* @__PURE__ */
|
|
10041
|
-
/* @__PURE__ */
|
|
10042
|
-
/* @__PURE__ */
|
|
10043
|
-
/* @__PURE__ */
|
|
10044
|
-
/* @__PURE__ */
|
|
10045
|
-
/* @__PURE__ */
|
|
10149
|
+
/* @__PURE__ */ jsxs18(Section2, { children: [
|
|
10150
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.3", cmsAs: SectionTitle3, children: "\u0110i\u1EC1u 1. Nguy\xEAn t\u1EAFc gi\u1EA3i quy\u1EBFt khi\u1EBFu n\u1EA1i" }),
|
|
10151
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.4", cmsAs: Paragraph2, children: "C\xF4ng ty C\u1ED5 ph\u1EA7n Giao d\u1ECBch H\xE0ng h\xF3a Wikex (Wikex) ti\u1EBFp nh\u1EADn m\u1ECDi khi\u1EBFu n\u1EA1i c\u1EE7a Kh\xE1ch h\xE0ng v\u1EDBi tinh th\u1EA7n thi\u1EC7n ch\xED, h\u1EE3p t\xE1c v\xE0 tu\xE2n th\u1EE7 c\xE1c quy \u0111\u1ECBnh ph\xE1p lu\u1EADt hi\u1EC7n h\xE0nh." }),
|
|
10152
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.5", cmsAs: Paragraph2, children: "Wikex \u01B0u ti\xEAn trao \u0111\u1ED5i tr\u1EF1c ti\u1EBFp v\xE0 th\u01B0\u01A1ng l\u01B0\u1EE3ng \u0111\u1EC3 t\xECm ph\u01B0\u01A1ng \xE1n x\u1EED l\xFD ph\xF9 h\u1EE3p, b\u1EA3o \u0111\u1EA3m quy\u1EC1n l\u1EE3i ch\xEDnh \u0111\xE1ng c\u1EE7a Kh\xE1ch h\xE0ng v\xE0 c\u1EE7a Wikex." }),
|
|
10153
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.6", cmsAs: Paragraph2, children: "N\u1EBFu c\xE1c b\xEAn kh\xF4ng \u0111\u1EA1t \u0111\u01B0\u1EE3c th\u1ECFa thu\u1EADn, Kh\xE1ch h\xE0ng ho\u1EB7c Wikex c\xF3 th\u1EC3 \u0111\u1EC1 ngh\u1ECB c\u01A1 quan c\xF3 th\u1EA9m quy\u1EC1n xem x\xE9t v\u1EE5 vi\u1EC7c theo quy \u0111\u1ECBnh." }),
|
|
10154
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.7", cmsAs: Paragraph2, children: "Khi s\u1EF1 c\u1ED1 \u0111\u01B0\u1EE3c x\xE1c \u0111\u1ECBnh xu\u1EA5t ph\xE1t t\u1EEB ph\xEDa Wikex, ch\xFAng t\xF4i s\u1EBD \xE1p d\u1EE5ng bi\u1EC7n ph\xE1p kh\u1EAFc ph\u1EE5c ph\xF9 h\u1EE3p \u0111\u1EC3 b\u1EA3o v\u1EC7 quy\u1EC1n l\u1EE3i h\u1EE3p ph\xE1p c\u1EE7a Kh\xE1ch h\xE0ng." })
|
|
10046
10155
|
] }),
|
|
10047
|
-
/* @__PURE__ */
|
|
10048
|
-
/* @__PURE__ */
|
|
10049
|
-
/* @__PURE__ */
|
|
10050
|
-
/* @__PURE__ */
|
|
10051
|
-
/* @__PURE__ */
|
|
10052
|
-
/* @__PURE__ */
|
|
10156
|
+
/* @__PURE__ */ jsxs18(Section2, { children: [
|
|
10157
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.8", cmsAs: SectionTitle3, children: "\u0110i\u1EC1u 2. K\xEAnh g\u1EEDi khi\u1EBFu n\u1EA1i" }),
|
|
10158
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.9", cmsAs: Paragraph2, children: "Kh\xE1ch h\xE0ng c\xF3 th\u1EC3 g\u1EEDi khi\u1EBFu n\u1EA1i qua m\u1ED9t trong c\xE1c k\xEAnh ch\xEDnh th\u1EE9c sau:" }),
|
|
10159
|
+
/* @__PURE__ */ jsxs18(CmsTemplateList, { cmsAs: ContactList, cmsId: "complaints.contact", children: [
|
|
10160
|
+
/* @__PURE__ */ jsxs18("li", { children: [
|
|
10161
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.10", cmsAs: "strong", children: "\u0110i\u1EC7n tho\u1EA1i (ch\u0103m s\xF3c kh\xE1ch h\xE0ng):" }),
|
|
10053
10162
|
" ",
|
|
10054
|
-
/* @__PURE__ */
|
|
10163
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.11", cmsAs: "a", href: "tel:0938427079", children: "0938427079" })
|
|
10055
10164
|
] }),
|
|
10056
|
-
/* @__PURE__ */
|
|
10057
|
-
/* @__PURE__ */
|
|
10165
|
+
/* @__PURE__ */ jsxs18("li", { children: [
|
|
10166
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.12", cmsAs: "strong", children: "Th\u01B0 \u0111i\u1EC7n t\u1EED:" }),
|
|
10058
10167
|
" ",
|
|
10059
|
-
/* @__PURE__ */
|
|
10168
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.13", cmsAs: "a", href: "mailto:admin@wikex.vn", children: "admin@wikex.vn" })
|
|
10060
10169
|
] }),
|
|
10061
|
-
/* @__PURE__ */
|
|
10062
|
-
/* @__PURE__ */
|
|
10170
|
+
/* @__PURE__ */ jsxs18("li", { children: [
|
|
10171
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.14", cmsAs: "strong", children: "G\u1EEDi tr\u1EF1c ti\u1EBFp:" }),
|
|
10063
10172
|
" 36 M\u1EA1c \u0110\u0129nh Chi, Ph\u01B0\u1EDDng T\xE2n \u0110\u1ECBnh, TP. H\u1ED3 Ch\xED Minh, Vi\u1EC7t Nam."
|
|
10064
10173
|
] })
|
|
10065
10174
|
] })
|
|
10066
10175
|
] }),
|
|
10067
|
-
/* @__PURE__ */
|
|
10068
|
-
/* @__PURE__ */
|
|
10069
|
-
/* @__PURE__ */
|
|
10070
|
-
/* @__PURE__ */
|
|
10071
|
-
/* @__PURE__ */
|
|
10176
|
+
/* @__PURE__ */ jsxs18(Section2, { children: [
|
|
10177
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.15", cmsAs: SectionTitle3, children: "\u0110i\u1EC1u 3. Tr\xECnh t\u1EF1 ti\u1EBFp nh\u1EADn v\xE0 x\u1EED l\xFD" }),
|
|
10178
|
+
/* @__PURE__ */ jsxs18(Subsection2, { children: [
|
|
10179
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.16", cmsAs: StepTitle, children: "B\u01B0\u1EDBc 1 \u2013 G\u1EEDi khi\u1EBFu n\u1EA1i" }),
|
|
10180
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.17", cmsAs: Paragraph2, children: "Kh\xE1ch h\xE0ng cung c\u1EA5p th\xF4ng tin v\u1EC1 khi\u1EBFu n\u1EA1i li\xEAn quan \u0111\u1EBFn d\u1ECBch v\u1EE5 giao d\u1ECBch, t\xE0i kho\u1EA3n ho\u1EB7c quy\u1EC1n l\u1EE3i ph\xE1t sinh trong qu\xE1 tr\xECnh s\u1EED d\u1EE5ng d\u1ECBch v\u1EE5 c\u1EE7a Wikex." })
|
|
10072
10181
|
] }),
|
|
10073
|
-
/* @__PURE__ */
|
|
10074
|
-
/* @__PURE__ */
|
|
10075
|
-
/* @__PURE__ */
|
|
10182
|
+
/* @__PURE__ */ jsxs18(Subsection2, { children: [
|
|
10183
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.18", cmsAs: StepTitle, children: "B\u01B0\u1EDBc 2 \u2013 Ti\u1EBFp nh\u1EADn v\xE0 x\xE1c minh" }),
|
|
10184
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.19", cmsAs: Paragraph2, children: "Wikex ti\u1EBFp nh\u1EADn th\xF4ng tin, ki\u1EC3m tra c\xE1c d\u1EEF li\u1EC7u li\xEAn quan v\xE0 x\xE1c minh d\u1EF1a tr\xEAn h\u1ED3 s\u01A1 Kh\xE1ch h\xE0ng, d\u1EEF li\u1EC7u giao d\u1ECBch c\xF9ng quy \u0111\u1ECBnh n\u1ED9i b\u1ED9 \xE1p d\u1EE5ng t\u1EA1i th\u1EDDi \u0111i\u1EC3m x\u1EED l\xFD." })
|
|
10076
10185
|
] }),
|
|
10077
|
-
/* @__PURE__ */
|
|
10078
|
-
/* @__PURE__ */
|
|
10079
|
-
/* @__PURE__ */
|
|
10186
|
+
/* @__PURE__ */ jsxs18(Subsection2, { children: [
|
|
10187
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.20", cmsAs: StepTitle, children: "B\u01B0\u1EDBc 3 \u2013 Ph\u1EA3n h\u1ED3i k\u1EBFt qu\u1EA3" }),
|
|
10188
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.21", cmsAs: Paragraph2, children: "Wikex ph\u1EA3n h\u1ED3i k\u1EBFt qu\u1EA3 trong v\xF2ng 03 (ba) ng\xE0y l\xE0m vi\u1EC7c sau khi ho\xE0n t\u1EA5t x\xE1c minh. V\u1EDBi v\u1EE5 vi\u1EC7c c\u1EA7n ki\u1EC3m tra th\xEAm, Wikex s\u1EBD th\xF4ng b\xE1o l\xFD do v\xE0 th\u1EDDi gian d\u1EF1 ki\u1EBFn ph\u1EA3n h\u1ED3i cho Kh\xE1ch h\xE0ng." })
|
|
10080
10189
|
] })
|
|
10081
10190
|
] }),
|
|
10082
|
-
/* @__PURE__ */
|
|
10083
|
-
/* @__PURE__ */
|
|
10084
|
-
/* @__PURE__ */
|
|
10085
|
-
/* @__PURE__ */
|
|
10086
|
-
/* @__PURE__ */
|
|
10087
|
-
/* @__PURE__ */
|
|
10088
|
-
/* @__PURE__ */
|
|
10191
|
+
/* @__PURE__ */ jsxs18(Section2, { children: [
|
|
10192
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.22", cmsAs: SectionTitle3, children: "\u0110i\u1EC1u 4. Cam k\u1EBFt x\u1EED l\xFD" }),
|
|
10193
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.23", cmsAs: Paragraph2, children: "Wikex n\u1ED7 l\u1EF1c gi\u1EA3i quy\u1EBFt khi\u1EBFu n\u1EA1i tr\xEAn c\xE1c nguy\xEAn t\u1EAFc:" }),
|
|
10194
|
+
/* @__PURE__ */ jsxs18(CmsTemplateList, { cmsAs: BulletList2, cmsId: "complaints.commitments", children: [
|
|
10195
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.24", cmsAs: "li", children: "Nhanh ch\xF3ng v\xE0 \u0111\xFAng th\u1EDDi h\u1EA1n ph\xF9 h\u1EE3p v\u1EDBi t\u1EEBng v\u1EE5 vi\u1EC7c." }),
|
|
10196
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.25", cmsAs: "li", children: "Kh\xE1ch quan, minh b\u1EA1ch v\xE0 c\xF3 c\u01A1 s\u1EDF \u0111\u1ED1i chi\u1EBFu." }),
|
|
10197
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.26", cmsAs: "li", children: "Tu\xE2n th\u1EE7 quy \u0111\u1ECBnh ph\xE1p lu\u1EADt hi\u1EC7n h\xE0nh." })
|
|
10089
10198
|
] }),
|
|
10090
|
-
/* @__PURE__ */
|
|
10199
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.27", cmsAs: Paragraph2, children: "Tr\u01B0\u1EDDng h\u1EE3p n\u1ED9i dung v\u01B0\u1EE3t ngo\xE0i th\u1EA9m quy\u1EC1n gi\u1EA3i quy\u1EBFt c\u1EE7a Wikex, Kh\xE1ch h\xE0ng c\xF3 th\u1EC3 g\u1EEDi y\xEAu c\u1EA7u \u0111\u1EBFn c\u01A1 quan nh\xE0 n\u01B0\u1EDBc c\xF3 th\u1EA9m quy\u1EC1n." })
|
|
10091
10200
|
] })
|
|
10092
10201
|
] }) })
|
|
10093
10202
|
] });
|
|
@@ -10169,7 +10278,7 @@ var BlogCardDescription = styled16.p.withConfig({
|
|
|
10169
10278
|
], ({ theme }) => theme.colors.text.secondary, BlogCardContent, BlogCardContent);
|
|
10170
10279
|
|
|
10171
10280
|
// src/commodity-original/components/BlogCard/index.tsx
|
|
10172
|
-
import { Fragment as Fragment8, jsx as
|
|
10281
|
+
import { Fragment as Fragment8, jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
10173
10282
|
function BlogCardContentBody({
|
|
10174
10283
|
date,
|
|
10175
10284
|
description,
|
|
@@ -10180,8 +10289,8 @@ function BlogCardContentBody({
|
|
|
10180
10289
|
size,
|
|
10181
10290
|
title
|
|
10182
10291
|
}) {
|
|
10183
|
-
return /* @__PURE__ */
|
|
10184
|
-
/* @__PURE__ */
|
|
10292
|
+
return /* @__PURE__ */ jsxs19(Fragment8, { children: [
|
|
10293
|
+
/* @__PURE__ */ jsx25(BlogCardImagePanel, { "data-orientation": orientation, "data-size": size, children: /* @__PURE__ */ jsx25(
|
|
10185
10294
|
BlogCardImage,
|
|
10186
10295
|
{
|
|
10187
10296
|
alt: imageAlt,
|
|
@@ -10191,10 +10300,10 @@ function BlogCardContentBody({
|
|
|
10191
10300
|
src: image2
|
|
10192
10301
|
}
|
|
10193
10302
|
) }),
|
|
10194
|
-
/* @__PURE__ */
|
|
10195
|
-
/* @__PURE__ */
|
|
10196
|
-
/* @__PURE__ */
|
|
10197
|
-
description ? /* @__PURE__ */
|
|
10303
|
+
/* @__PURE__ */ jsxs19(BlogCardContent, { "data-orientation": orientation, "data-size": size, children: [
|
|
10304
|
+
/* @__PURE__ */ jsx25(ExactText, { cmsAs: BlogCardDate, children: date }),
|
|
10305
|
+
/* @__PURE__ */ jsx25(ExactText, { cmsAs: BlogCardTitle, children: title }),
|
|
10306
|
+
description ? /* @__PURE__ */ jsx25(ExactText, { cmsAs: BlogCardDescription, children: description }) : null
|
|
10198
10307
|
] })
|
|
10199
10308
|
] });
|
|
10200
10309
|
}
|
|
@@ -10213,7 +10322,7 @@ function BlogCard({
|
|
|
10213
10322
|
badgeSize = size === "sm" ? "sm" : "md",
|
|
10214
10323
|
title
|
|
10215
10324
|
}) {
|
|
10216
|
-
const content = /* @__PURE__ */
|
|
10325
|
+
const content = /* @__PURE__ */ jsx25(
|
|
10217
10326
|
BlogCardContentBody,
|
|
10218
10327
|
{
|
|
10219
10328
|
date,
|
|
@@ -10227,13 +10336,13 @@ function BlogCard({
|
|
|
10227
10336
|
}
|
|
10228
10337
|
);
|
|
10229
10338
|
if (href) {
|
|
10230
|
-
return /* @__PURE__ */
|
|
10231
|
-
showBadge ? /* @__PURE__ */
|
|
10339
|
+
return /* @__PURE__ */ jsxs19(ExactText, { cmsAs: BlogCardLink, "aria-label": title, className, "data-orientation": orientation, "data-size": size, href, children: [
|
|
10340
|
+
showBadge ? /* @__PURE__ */ jsx25(ExactText, { cmsAs: BlogCardBadge, "data-size": badgeSize, children: badgeLabel }) : null,
|
|
10232
10341
|
content
|
|
10233
10342
|
] });
|
|
10234
10343
|
}
|
|
10235
|
-
return /* @__PURE__ */
|
|
10236
|
-
showBadge ? /* @__PURE__ */
|
|
10344
|
+
return /* @__PURE__ */ jsxs19(BlogCardArticle, { className, "data-orientation": orientation, "data-size": size, children: [
|
|
10345
|
+
showBadge ? /* @__PURE__ */ jsx25(ExactText, { cmsAs: BlogCardBadge, "data-size": badgeSize, children: badgeLabel }) : null,
|
|
10237
10346
|
content
|
|
10238
10347
|
] });
|
|
10239
10348
|
}
|
|
@@ -10273,7 +10382,7 @@ var InformationHeroIllustration = styled17.div.withConfig({
|
|
|
10273
10382
|
], ({ theme }) => theme.colors.informationHero.foreground, ({ theme }) => theme.colors.informationHero.placeholder);
|
|
10274
10383
|
|
|
10275
10384
|
// src/commodity-original/components/InformationHeroSection/index.tsx
|
|
10276
|
-
import { Fragment as Fragment9, jsx as
|
|
10385
|
+
import { Fragment as Fragment9, jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
10277
10386
|
function InformationHeroSection({
|
|
10278
10387
|
title,
|
|
10279
10388
|
children,
|
|
@@ -10291,18 +10400,18 @@ function InformationHeroSection({
|
|
|
10291
10400
|
"--wikex-information-hero-background": `url("${desktopBackground}")`,
|
|
10292
10401
|
"--wikex-information-hero-mobile-background": `url("${mobileBackground}")`
|
|
10293
10402
|
};
|
|
10294
|
-
return /* @__PURE__ */
|
|
10403
|
+
return /* @__PURE__ */ jsxs20(
|
|
10295
10404
|
InformationHeroRoot,
|
|
10296
10405
|
{
|
|
10297
10406
|
className: `${className ?? ""} wikex-cms-image-host`.trim(),
|
|
10298
10407
|
style,
|
|
10299
10408
|
children: [
|
|
10300
|
-
/* @__PURE__ */
|
|
10301
|
-
/* @__PURE__ */
|
|
10302
|
-
/* @__PURE__ */
|
|
10303
|
-
children ? /* @__PURE__ */
|
|
10409
|
+
/* @__PURE__ */ jsx26(InformationHeroBackdrop, { "aria-hidden": "true" }),
|
|
10410
|
+
/* @__PURE__ */ jsxs20(InformationHeroContent, { children: [
|
|
10411
|
+
/* @__PURE__ */ jsx26(ExactText, { cmsAs: InformationHeroTitle, children: title }),
|
|
10412
|
+
children ? /* @__PURE__ */ jsx26(Fragment9, { children }) : null
|
|
10304
10413
|
] }),
|
|
10305
|
-
/* @__PURE__ */
|
|
10414
|
+
/* @__PURE__ */ jsx26(CmsImageAction, { field: "informationHeroBackgroundImage" })
|
|
10306
10415
|
]
|
|
10307
10416
|
}
|
|
10308
10417
|
);
|
|
@@ -10505,7 +10614,7 @@ var CalendarDialogActions = styled18.div.withConfig({
|
|
|
10505
10614
|
], ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.content, ({ theme }) => theme.colors.action.primaryForeground, ({ theme }) => theme.colors.datePicker.selected);
|
|
10506
10615
|
|
|
10507
10616
|
// src/commodity-original/components/DateRangePicker/index.tsx
|
|
10508
|
-
import { Fragment as Fragment10, jsx as
|
|
10617
|
+
import { Fragment as Fragment10, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
10509
10618
|
var toDate = (value4) => {
|
|
10510
10619
|
const [year, month, day] = value4.split("-").map(Number);
|
|
10511
10620
|
return new Date(year, month - 1, day);
|
|
@@ -10619,10 +10728,10 @@ function DateRangePicker({
|
|
|
10619
10728
|
const changeMonth = (offset) => setMonth(
|
|
10620
10729
|
(current) => new Date(current.getFullYear(), current.getMonth() + offset, 1)
|
|
10621
10730
|
);
|
|
10622
|
-
const calendar = /* @__PURE__ */
|
|
10623
|
-
/* @__PURE__ */
|
|
10624
|
-
/* @__PURE__ */
|
|
10625
|
-
/* @__PURE__ */
|
|
10731
|
+
const calendar = /* @__PURE__ */ jsxs21(Fragment10, { children: [
|
|
10732
|
+
/* @__PURE__ */ jsxs21(CalendarDialogBody, { children: [
|
|
10733
|
+
/* @__PURE__ */ jsxs21(CalendarDialogHeader, { children: [
|
|
10734
|
+
/* @__PURE__ */ jsx27(
|
|
10626
10735
|
CalendarNavigationButton,
|
|
10627
10736
|
{
|
|
10628
10737
|
"aria-label": t("dateRangePicker.previousMonth"),
|
|
@@ -10631,14 +10740,14 @@ function DateRangePicker({
|
|
|
10631
10740
|
type: "button"
|
|
10632
10741
|
}
|
|
10633
10742
|
),
|
|
10634
|
-
isMobile ? /* @__PURE__ */
|
|
10743
|
+
isMobile ? /* @__PURE__ */ jsx27(Dialog4.Title, { asChild: true, children: /* @__PURE__ */ jsx27(CalendarDialogMonth, { children: new Intl.DateTimeFormat(locale, {
|
|
10635
10744
|
month: "long",
|
|
10636
10745
|
year: "numeric"
|
|
10637
|
-
}).format(month) }) }) : /* @__PURE__ */
|
|
10746
|
+
}).format(month) }) }) : /* @__PURE__ */ jsx27(CalendarDialogMonth, { children: new Intl.DateTimeFormat(locale, {
|
|
10638
10747
|
month: "long",
|
|
10639
10748
|
year: "numeric"
|
|
10640
10749
|
}).format(month) }),
|
|
10641
|
-
/* @__PURE__ */
|
|
10750
|
+
/* @__PURE__ */ jsx27(
|
|
10642
10751
|
CalendarNavigationButton,
|
|
10643
10752
|
{
|
|
10644
10753
|
"aria-label": t("dateRangePicker.nextMonth"),
|
|
@@ -10648,20 +10757,20 @@ function DateRangePicker({
|
|
|
10648
10757
|
}
|
|
10649
10758
|
)
|
|
10650
10759
|
] }),
|
|
10651
|
-
/* @__PURE__ */
|
|
10652
|
-
/* @__PURE__ */
|
|
10760
|
+
/* @__PURE__ */ jsx27(CalendarWeekdays, { children: weekdays.map((day) => /* @__PURE__ */ jsx27("span", { children: t(`dateRangePicker.weekdays.${day}`) }, day)) }),
|
|
10761
|
+
/* @__PURE__ */ jsx27(DaysGrid, { children: calendarDays.map((day) => {
|
|
10653
10762
|
const start = day.iso === draft.from;
|
|
10654
10763
|
const end = day.iso === draft.to;
|
|
10655
10764
|
const within = Boolean(
|
|
10656
10765
|
draft.from && draft.to && day.iso > draft.from && day.iso < draft.to
|
|
10657
10766
|
);
|
|
10658
|
-
return /* @__PURE__ */
|
|
10767
|
+
return /* @__PURE__ */ jsx27(
|
|
10659
10768
|
DayCell,
|
|
10660
10769
|
{
|
|
10661
10770
|
"data-in-range": within || void 0,
|
|
10662
10771
|
"data-range-end": end || void 0,
|
|
10663
10772
|
"data-range-start": start || void 0,
|
|
10664
|
-
children: /* @__PURE__ */
|
|
10773
|
+
children: /* @__PURE__ */ jsx27(
|
|
10665
10774
|
DayButton,
|
|
10666
10775
|
{
|
|
10667
10776
|
"aria-label": format(day.iso),
|
|
@@ -10678,23 +10787,23 @@ function DateRangePicker({
|
|
|
10678
10787
|
);
|
|
10679
10788
|
}) })
|
|
10680
10789
|
] }),
|
|
10681
|
-
/* @__PURE__ */
|
|
10682
|
-
/* @__PURE__ */
|
|
10683
|
-
/* @__PURE__ */
|
|
10684
|
-
/* @__PURE__ */
|
|
10790
|
+
/* @__PURE__ */ jsxs21(CalendarDialogSummary, { children: [
|
|
10791
|
+
/* @__PURE__ */ jsxs21(RangeSummaryDate, { children: [
|
|
10792
|
+
/* @__PURE__ */ jsx27(RangeSummaryLabel, { children: from }),
|
|
10793
|
+
/* @__PURE__ */ jsx27(RangeSummaryValue, { children: format(draft.from) || "\u2014" })
|
|
10685
10794
|
] }),
|
|
10686
|
-
/* @__PURE__ */
|
|
10687
|
-
/* @__PURE__ */
|
|
10688
|
-
/* @__PURE__ */
|
|
10689
|
-
/* @__PURE__ */
|
|
10795
|
+
/* @__PURE__ */ jsxs21(RangeSummaryPeriod, { children: [
|
|
10796
|
+
/* @__PURE__ */ jsx27(RangeSummarySeparator, {}),
|
|
10797
|
+
/* @__PURE__ */ jsx27("span", { children: duration === void 0 ? t("dateRangePicker.selectRange") : t("dateRangePicker.days", { count: duration }) }),
|
|
10798
|
+
/* @__PURE__ */ jsx27(RangeSummarySeparator, {})
|
|
10690
10799
|
] }),
|
|
10691
|
-
/* @__PURE__ */
|
|
10692
|
-
/* @__PURE__ */
|
|
10693
|
-
/* @__PURE__ */
|
|
10800
|
+
/* @__PURE__ */ jsxs21(RangeSummaryDate, { "data-align": "end", children: [
|
|
10801
|
+
/* @__PURE__ */ jsx27(RangeSummaryLabel, { children: to }),
|
|
10802
|
+
/* @__PURE__ */ jsx27(RangeSummaryValue, { children: format(draft.to) || "\u2014" })
|
|
10694
10803
|
] })
|
|
10695
10804
|
] }),
|
|
10696
|
-
/* @__PURE__ */
|
|
10697
|
-
/* @__PURE__ */
|
|
10805
|
+
/* @__PURE__ */ jsxs21(CalendarDialogActions, { children: [
|
|
10806
|
+
/* @__PURE__ */ jsx27(
|
|
10698
10807
|
"button",
|
|
10699
10808
|
{
|
|
10700
10809
|
onClick: () => {
|
|
@@ -10705,7 +10814,7 @@ function DateRangePicker({
|
|
|
10705
10814
|
children: t("dateRangePicker.cancel")
|
|
10706
10815
|
}
|
|
10707
10816
|
),
|
|
10708
|
-
/* @__PURE__ */
|
|
10817
|
+
/* @__PURE__ */ jsx27(
|
|
10709
10818
|
"button",
|
|
10710
10819
|
{
|
|
10711
10820
|
disabled: duration === void 0,
|
|
@@ -10721,15 +10830,15 @@ function DateRangePicker({
|
|
|
10721
10830
|
)
|
|
10722
10831
|
] })
|
|
10723
10832
|
] });
|
|
10724
|
-
return /* @__PURE__ */
|
|
10725
|
-
/* @__PURE__ */
|
|
10833
|
+
return /* @__PURE__ */ jsxs21(DateRangeRoot, { className, "data-size": size, ref: rootRef, children: [
|
|
10834
|
+
/* @__PURE__ */ jsx27(DateFieldGroup, { children: /* @__PURE__ */ jsx27(
|
|
10726
10835
|
DateField,
|
|
10727
10836
|
{
|
|
10728
10837
|
"aria-expanded": open,
|
|
10729
10838
|
"aria-haspopup": "dialog",
|
|
10730
10839
|
onClick: () => show("from"),
|
|
10731
10840
|
type: "button",
|
|
10732
|
-
children: /* @__PURE__ */
|
|
10841
|
+
children: /* @__PURE__ */ jsx27(
|
|
10733
10842
|
DateFieldValue,
|
|
10734
10843
|
{
|
|
10735
10844
|
"data-placeholder": !value4.from || void 0,
|
|
@@ -10739,15 +10848,15 @@ function DateRangePicker({
|
|
|
10739
10848
|
)
|
|
10740
10849
|
}
|
|
10741
10850
|
) }),
|
|
10742
|
-
/* @__PURE__ */
|
|
10743
|
-
/* @__PURE__ */
|
|
10851
|
+
/* @__PURE__ */ jsx27(RangeArrow, { "aria-hidden": "true", children: /* @__PURE__ */ jsx27(RangeArrowIcon, {}) }),
|
|
10852
|
+
/* @__PURE__ */ jsx27(DateFieldGroup, { children: /* @__PURE__ */ jsx27(
|
|
10744
10853
|
DateField,
|
|
10745
10854
|
{
|
|
10746
10855
|
"aria-expanded": open,
|
|
10747
10856
|
"aria-haspopup": "dialog",
|
|
10748
10857
|
onClick: () => show("to"),
|
|
10749
10858
|
type: "button",
|
|
10750
|
-
children: /* @__PURE__ */
|
|
10859
|
+
children: /* @__PURE__ */ jsx27(
|
|
10751
10860
|
DateFieldValue,
|
|
10752
10861
|
{
|
|
10753
10862
|
"data-placeholder": !value4.to || void 0,
|
|
@@ -10757,7 +10866,7 @@ function DateRangePicker({
|
|
|
10757
10866
|
)
|
|
10758
10867
|
}
|
|
10759
10868
|
) }),
|
|
10760
|
-
/* @__PURE__ */
|
|
10869
|
+
/* @__PURE__ */ jsx27(
|
|
10761
10870
|
CalendarIcon,
|
|
10762
10871
|
{
|
|
10763
10872
|
"aria-label": t("dateRangePicker.dialogLabel"),
|
|
@@ -10765,7 +10874,7 @@ function DateRangePicker({
|
|
|
10765
10874
|
type: "button"
|
|
10766
10875
|
}
|
|
10767
10876
|
),
|
|
10768
|
-
open && isMobile ? /* @__PURE__ */
|
|
10877
|
+
open && isMobile ? /* @__PURE__ */ jsx27(
|
|
10769
10878
|
Dialog4.Root,
|
|
10770
10879
|
{
|
|
10771
10880
|
onOpenChange: (nextOpen) => {
|
|
@@ -10773,12 +10882,12 @@ function DateRangePicker({
|
|
|
10773
10882
|
setOpen(nextOpen);
|
|
10774
10883
|
},
|
|
10775
10884
|
open,
|
|
10776
|
-
children: /* @__PURE__ */
|
|
10777
|
-
/* @__PURE__ */
|
|
10778
|
-
/* @__PURE__ */
|
|
10885
|
+
children: /* @__PURE__ */ jsxs21(Dialog4.Portal, { children: [
|
|
10886
|
+
/* @__PURE__ */ jsx27(CalendarDrawerOverlay, {}),
|
|
10887
|
+
/* @__PURE__ */ jsx27(CalendarDrawerContent, { "aria-describedby": void 0, children: calendar })
|
|
10779
10888
|
] })
|
|
10780
10889
|
}
|
|
10781
|
-
) : open ? /* @__PURE__ */
|
|
10890
|
+
) : open ? /* @__PURE__ */ jsx27(
|
|
10782
10891
|
CalendarDialog,
|
|
10783
10892
|
{
|
|
10784
10893
|
"aria-label": t("dateRangePicker.dialogLabel"),
|
|
@@ -10877,7 +10986,7 @@ var NotiSidebarList = styled19.div.withConfig({
|
|
|
10877
10986
|
]);
|
|
10878
10987
|
|
|
10879
10988
|
// src/commodity-original/app/noti-mxv/NotiMxvContent.tsx
|
|
10880
|
-
import { jsx as
|
|
10989
|
+
import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
10881
10990
|
var notifications = [
|
|
10882
10991
|
{
|
|
10883
10992
|
date: "27/08/2026",
|
|
@@ -10943,20 +11052,20 @@ function NotiMxvContent() {
|
|
|
10943
11052
|
setDateRange({ from: "", to: "" });
|
|
10944
11053
|
setPage(1);
|
|
10945
11054
|
};
|
|
10946
|
-
return /* @__PURE__ */
|
|
10947
|
-
/* @__PURE__ */
|
|
10948
|
-
/* @__PURE__ */
|
|
10949
|
-
/* @__PURE__ */
|
|
11055
|
+
return /* @__PURE__ */ jsxs22(NotiMxvMain, { children: [
|
|
11056
|
+
/* @__PURE__ */ jsx28(InformationHeroSection, { title: t("notiMxv.title") }),
|
|
11057
|
+
/* @__PURE__ */ jsx28(FilterSection, { "aria-label": t("notiMxv.filterLabel"), children: /* @__PURE__ */ jsxs22(FilterContent, { children: [
|
|
11058
|
+
/* @__PURE__ */ jsx28(FilterSearch, { children: /* @__PURE__ */ jsx28(
|
|
10950
11059
|
InputCommon,
|
|
10951
11060
|
{
|
|
10952
|
-
leftIcon: /* @__PURE__ */
|
|
11061
|
+
leftIcon: /* @__PURE__ */ jsx28(SearchIcon, {}),
|
|
10953
11062
|
placeholder: t("notiMxv.searchPlaceholder"),
|
|
10954
11063
|
value: search,
|
|
10955
11064
|
onChange: (event) => setSearch(event.target.value),
|
|
10956
11065
|
size: isMobile ? "sm" : "md"
|
|
10957
11066
|
}
|
|
10958
11067
|
) }),
|
|
10959
|
-
/* @__PURE__ */
|
|
11068
|
+
/* @__PURE__ */ jsx28(
|
|
10960
11069
|
FilterDateRangePicker,
|
|
10961
11070
|
{
|
|
10962
11071
|
fromLabel: t("notiMxv.fromDate"),
|
|
@@ -10966,11 +11075,11 @@ function NotiMxvContent() {
|
|
|
10966
11075
|
onChange: setDateRange
|
|
10967
11076
|
}
|
|
10968
11077
|
),
|
|
10969
|
-
/* @__PURE__ */
|
|
11078
|
+
/* @__PURE__ */ jsx28(ExactText, { cmsAs: FilterResetButton, type: "button", onClick: resetFilters, children: t("notiMxv.reset") })
|
|
10970
11079
|
] }) }),
|
|
10971
|
-
/* @__PURE__ */
|
|
10972
|
-
/* @__PURE__ */
|
|
10973
|
-
/* @__PURE__ */
|
|
11080
|
+
/* @__PURE__ */ jsx28(NotiContent, { children: /* @__PURE__ */ jsxs22(NotiLayout, { children: [
|
|
11081
|
+
/* @__PURE__ */ jsxs22(NotiMainColumn, { children: [
|
|
11082
|
+
/* @__PURE__ */ jsx28(NotiList, { "aria-label": t("notiMxv.listLabel"), children: visibleNotifications.map((notification, index) => /* @__PURE__ */ jsx28(
|
|
10974
11083
|
BlogCard,
|
|
10975
11084
|
{
|
|
10976
11085
|
date: notification.date,
|
|
@@ -10983,7 +11092,7 @@ function NotiMxvContent() {
|
|
|
10983
11092
|
},
|
|
10984
11093
|
notification.id
|
|
10985
11094
|
)) }),
|
|
10986
|
-
/* @__PURE__ */
|
|
11095
|
+
/* @__PURE__ */ jsx28(NotiPagination, { children: /* @__PURE__ */ jsx28(
|
|
10987
11096
|
Pagination2,
|
|
10988
11097
|
{
|
|
10989
11098
|
onPageChange: setPage,
|
|
@@ -10992,9 +11101,9 @@ function NotiMxvContent() {
|
|
|
10992
11101
|
}
|
|
10993
11102
|
) })
|
|
10994
11103
|
] }),
|
|
10995
|
-
/* @__PURE__ */
|
|
10996
|
-
/* @__PURE__ */
|
|
10997
|
-
/* @__PURE__ */
|
|
11104
|
+
/* @__PURE__ */ jsxs22(NotiSidebar, { children: [
|
|
11105
|
+
/* @__PURE__ */ jsx28(ExactText, { cmsAs: NotiSidebarHeading, children: t("notiMxv.latestTitle") }),
|
|
11106
|
+
/* @__PURE__ */ jsx28(NotiSidebarList, { "aria-label": t("notiMxv.relatedLabel"), children: notifications.slice(0, 3).map((notification) => /* @__PURE__ */ jsx28(
|
|
10998
11107
|
BlogCard,
|
|
10999
11108
|
{
|
|
11000
11109
|
date: notification.date,
|
|
@@ -11069,17 +11178,17 @@ var BreadcrumbSeparator = styled20.span.withConfig({
|
|
|
11069
11178
|
], ({ theme }) => theme.colors.text.placeholder, chevron_right_default, chevron_right_default);
|
|
11070
11179
|
|
|
11071
11180
|
// src/commodity-original/components/Breadcrumb/index.tsx
|
|
11072
|
-
import { jsx as
|
|
11181
|
+
import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
11073
11182
|
function Breadcrumb({
|
|
11074
11183
|
items,
|
|
11075
11184
|
ariaLabel = "Breadcrumb",
|
|
11076
11185
|
className
|
|
11077
11186
|
}) {
|
|
11078
|
-
return /* @__PURE__ */
|
|
11187
|
+
return /* @__PURE__ */ jsx29(BreadcrumbNav, { "aria-label": ariaLabel, className, children: /* @__PURE__ */ jsx29(BreadcrumbList, { children: items.map((item, index) => {
|
|
11079
11188
|
const isCurrent = index === items.length - 1;
|
|
11080
|
-
return /* @__PURE__ */
|
|
11081
|
-
isCurrent ? /* @__PURE__ */
|
|
11082
|
-
!isCurrent && /* @__PURE__ */
|
|
11189
|
+
return /* @__PURE__ */ jsxs23(BreadcrumbItem, { children: [
|
|
11190
|
+
isCurrent ? /* @__PURE__ */ jsx29(BreadcrumbCurrent, { "aria-current": "page", children: item.label }) : item.href ? /* @__PURE__ */ jsx29(BreadcrumbLink, { as: Link5, href: item.href, children: item.label }) : /* @__PURE__ */ jsx29(BreadcrumbCurrent, { children: item.label }),
|
|
11191
|
+
!isCurrent && /* @__PURE__ */ jsx29(BreadcrumbSeparator, { "aria-hidden": "true" })
|
|
11083
11192
|
] }, `${item.label}-${index}`);
|
|
11084
11193
|
}) }) });
|
|
11085
11194
|
}
|
|
@@ -11263,7 +11372,7 @@ var ProductCardDescription = styled21.p.withConfig({
|
|
|
11263
11372
|
], ({ theme }) => theme.colors.text.content);
|
|
11264
11373
|
|
|
11265
11374
|
// src/commodity-original/components/ProductCard/index.tsx
|
|
11266
|
-
import { Fragment as Fragment11, jsx as
|
|
11375
|
+
import { Fragment as Fragment11, jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
11267
11376
|
function ProductCardContent({
|
|
11268
11377
|
description,
|
|
11269
11378
|
image: image2,
|
|
@@ -11271,8 +11380,8 @@ function ProductCardContent({
|
|
|
11271
11380
|
imageFit = "cover",
|
|
11272
11381
|
title
|
|
11273
11382
|
}) {
|
|
11274
|
-
return /* @__PURE__ */
|
|
11275
|
-
/* @__PURE__ */
|
|
11383
|
+
return /* @__PURE__ */ jsxs24(Fragment11, { children: [
|
|
11384
|
+
/* @__PURE__ */ jsx30(ProductCardImagePanel, { children: /* @__PURE__ */ jsx30(
|
|
11276
11385
|
ProductCardImage,
|
|
11277
11386
|
{
|
|
11278
11387
|
alt: imageAlt,
|
|
@@ -11282,12 +11391,12 @@ function ProductCardContent({
|
|
|
11282
11391
|
style: imageFit === "contain" ? { objectFit: "contain", padding: 24 } : void 0
|
|
11283
11392
|
}
|
|
11284
11393
|
) }),
|
|
11285
|
-
/* @__PURE__ */
|
|
11286
|
-
/* @__PURE__ */
|
|
11287
|
-
/* @__PURE__ */
|
|
11288
|
-
/* @__PURE__ */
|
|
11394
|
+
/* @__PURE__ */ jsxs24(ProductCardCopy, { children: [
|
|
11395
|
+
/* @__PURE__ */ jsxs24(ProductCardTitleRow, { children: [
|
|
11396
|
+
/* @__PURE__ */ jsx30(ProductCardTitle, { children: title }),
|
|
11397
|
+
/* @__PURE__ */ jsx30(ProductCardArrow, { "aria-hidden": "true" })
|
|
11289
11398
|
] }),
|
|
11290
|
-
/* @__PURE__ */
|
|
11399
|
+
/* @__PURE__ */ jsx30(ProductCardDescription, { children: description })
|
|
11291
11400
|
] })
|
|
11292
11401
|
] });
|
|
11293
11402
|
}
|
|
@@ -11300,7 +11409,7 @@ function ProductCard({
|
|
|
11300
11409
|
imageFit,
|
|
11301
11410
|
title
|
|
11302
11411
|
}) {
|
|
11303
|
-
const content = /* @__PURE__ */
|
|
11412
|
+
const content = /* @__PURE__ */ jsx30(
|
|
11304
11413
|
ProductCardContent,
|
|
11305
11414
|
{
|
|
11306
11415
|
description,
|
|
@@ -11311,9 +11420,9 @@ function ProductCard({
|
|
|
11311
11420
|
}
|
|
11312
11421
|
);
|
|
11313
11422
|
if (href) {
|
|
11314
|
-
return /* @__PURE__ */
|
|
11423
|
+
return /* @__PURE__ */ jsx30(ProductCardLink, { "aria-label": title, className, href, children: content });
|
|
11315
11424
|
}
|
|
11316
|
-
return /* @__PURE__ */
|
|
11425
|
+
return /* @__PURE__ */ jsx30(ProductCardArticle, { className, children: content });
|
|
11317
11426
|
}
|
|
11318
11427
|
|
|
11319
11428
|
// src/commodity-original/app/products/ProductsContent.tsx
|
|
@@ -11354,7 +11463,7 @@ var ProductsPagination = styled22.div.withConfig({
|
|
|
11354
11463
|
]);
|
|
11355
11464
|
|
|
11356
11465
|
// src/commodity-original/app/products/ProductsContent.tsx
|
|
11357
|
-
import { jsx as
|
|
11466
|
+
import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
11358
11467
|
var products2 = [
|
|
11359
11468
|
...commodityGroups[0].items.map((item, itemIndex) => ({
|
|
11360
11469
|
descriptionKey: `landing.commodities.groups.0.items.${itemIndex}.body`,
|
|
@@ -11449,8 +11558,8 @@ function ProductsContent() {
|
|
|
11449
11558
|
(page - 1) * productsPerPage,
|
|
11450
11559
|
page * productsPerPage
|
|
11451
11560
|
);
|
|
11452
|
-
return /* @__PURE__ */
|
|
11453
|
-
/* @__PURE__ */
|
|
11561
|
+
return /* @__PURE__ */ jsxs25(ProductsMain, { children: [
|
|
11562
|
+
/* @__PURE__ */ jsx31(BreadcrumbSlot, { children: /* @__PURE__ */ jsx31(
|
|
11454
11563
|
Breadcrumb,
|
|
11455
11564
|
{
|
|
11456
11565
|
items: [
|
|
@@ -11459,13 +11568,13 @@ function ProductsContent() {
|
|
|
11459
11568
|
]
|
|
11460
11569
|
}
|
|
11461
11570
|
) }),
|
|
11462
|
-
/* @__PURE__ */
|
|
11463
|
-
/* @__PURE__ */
|
|
11464
|
-
/* @__PURE__ */
|
|
11571
|
+
/* @__PURE__ */ jsxs25(ProductsSection, { children: [
|
|
11572
|
+
/* @__PURE__ */ jsx31(ExactText, { cmsAs: ProductsHeading, children: title }),
|
|
11573
|
+
/* @__PURE__ */ jsx31(ProductGrid, { "aria-label": title, children: visibleProducts.map((product) => {
|
|
11465
11574
|
const productTitle = t(product.nameKey, {
|
|
11466
11575
|
defaultValue: product.fallbackName
|
|
11467
11576
|
});
|
|
11468
|
-
return /* @__PURE__ */
|
|
11577
|
+
return /* @__PURE__ */ jsx31(
|
|
11469
11578
|
ProductCard,
|
|
11470
11579
|
{
|
|
11471
11580
|
description: t(product.descriptionKey, {
|
|
@@ -11479,7 +11588,7 @@ function ProductsContent() {
|
|
|
11479
11588
|
product.id
|
|
11480
11589
|
);
|
|
11481
11590
|
}) }),
|
|
11482
|
-
/* @__PURE__ */
|
|
11591
|
+
/* @__PURE__ */ jsx31(ProductsPagination, { children: /* @__PURE__ */ jsx31(
|
|
11483
11592
|
Pagination2,
|
|
11484
11593
|
{
|
|
11485
11594
|
onPageChange: setPage,
|
|
@@ -11739,7 +11848,7 @@ var RelatedProductArrow = styled23.span.withConfig({
|
|
|
11739
11848
|
], RelatedProductAction);
|
|
11740
11849
|
|
|
11741
11850
|
// src/commodity-original/app/products/[slug]/ProductDetailContent.tsx
|
|
11742
|
-
import { jsx as
|
|
11851
|
+
import { jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11743
11852
|
var contractSpecifications = [
|
|
11744
11853
|
{ label: "M\xE3 h\xE0ng h\xF3a", value: ["ABCNHS"] },
|
|
11745
11854
|
{ label: "\u0110\u1ED9 l\u1EDBn h\u1EE3p \u0111\u1ED3ng", value: ["5000 gi\xE1/LOT"] },
|
|
@@ -11823,8 +11932,8 @@ function ProductDetailContent({
|
|
|
11823
11932
|
const { t } = useTranslation11();
|
|
11824
11933
|
const resolveImage = useCmsImageResolver();
|
|
11825
11934
|
const title = t(product.nameKey, { defaultValue: product.fallbackName });
|
|
11826
|
-
return /* @__PURE__ */
|
|
11827
|
-
/* @__PURE__ */
|
|
11935
|
+
return /* @__PURE__ */ jsxs26(DetailMain, { children: [
|
|
11936
|
+
/* @__PURE__ */ jsx32(
|
|
11828
11937
|
Breadcrumb,
|
|
11829
11938
|
{
|
|
11830
11939
|
items: [
|
|
@@ -11834,47 +11943,47 @@ function ProductDetailContent({
|
|
|
11834
11943
|
]
|
|
11835
11944
|
}
|
|
11836
11945
|
),
|
|
11837
|
-
/* @__PURE__ */
|
|
11838
|
-
/* @__PURE__ */
|
|
11839
|
-
/* @__PURE__ */
|
|
11840
|
-
/* @__PURE__ */
|
|
11841
|
-
/* @__PURE__ */
|
|
11842
|
-
/* @__PURE__ */
|
|
11946
|
+
/* @__PURE__ */ jsx32(PageHeader, { children: /* @__PURE__ */ jsx32(ExactText, { cmsAs: PageTitle3, children: "H\u1EE3p \u0111\u1ED3ng Ng\xF4" }) }),
|
|
11947
|
+
/* @__PURE__ */ jsxs26(ContractLayout, { children: [
|
|
11948
|
+
/* @__PURE__ */ jsxs26(ContractMain, { children: [
|
|
11949
|
+
/* @__PURE__ */ jsxs26(IntroductionSection, { "aria-labelledby": "introduction-heading", children: [
|
|
11950
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: ContractSectionTitle, id: "introduction-heading", children: t("products.contractIntro.title") }),
|
|
11951
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: IntroductionDescription, children: t("products.contractIntro.description") })
|
|
11843
11952
|
] }),
|
|
11844
|
-
/* @__PURE__ */
|
|
11845
|
-
/* @__PURE__ */
|
|
11846
|
-
/* @__PURE__ */
|
|
11847
|
-
/* @__PURE__ */
|
|
11848
|
-
/* @__PURE__ */
|
|
11953
|
+
/* @__PURE__ */ jsxs26(ContractSpecificationSection, { "aria-labelledby": "specification-heading", children: [
|
|
11954
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: ContractSectionTitle, id: "specification-heading", children: "\u0110\u1EB7c t\u1EA3 h\u1EE3p \u0111\u1ED3ng" }),
|
|
11955
|
+
/* @__PURE__ */ jsx32(ContractSpecificationList, { children: contractSpecifications.map((specification) => /* @__PURE__ */ jsxs26(ContractSpecificationRow, { children: [
|
|
11956
|
+
/* @__PURE__ */ jsx32("dt", { children: specification.label }),
|
|
11957
|
+
/* @__PURE__ */ jsx32("dd", { children: specification.value.map((value4) => /* @__PURE__ */ jsx32(ExactText, { cmsAs: "p", children: value4 }, value4)) })
|
|
11849
11958
|
] }, specification.label)) })
|
|
11850
11959
|
] }),
|
|
11851
|
-
/* @__PURE__ */
|
|
11852
|
-
/* @__PURE__ */
|
|
11853
|
-
/* @__PURE__ */
|
|
11854
|
-
/* @__PURE__ */
|
|
11855
|
-
/* @__PURE__ */
|
|
11856
|
-
/* @__PURE__ */
|
|
11960
|
+
/* @__PURE__ */ jsxs26(QualityStandardSection, { "aria-labelledby": "quality-standard-heading", children: [
|
|
11961
|
+
/* @__PURE__ */ jsxs26(QualityStandardIntro, { children: [
|
|
11962
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: ContractSectionTitle, id: "quality-standard-heading", children: "Ti\xEAu chu\u1EA9n ch\u1EA5t l\u01B0\u1EE3ng" }),
|
|
11963
|
+
/* @__PURE__ */ jsxs26(QualityStandardDescription, { children: [
|
|
11964
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: "p", children: "Theo quy \u0111\u1ECBnh c\u1EE7a s\u1EA3n ph\u1EA9m Ng\xF4 CBOT giao d\u1ECBch tr\xEAn S\u1EDF Giao d\u1ECBch H\xE0ng h\xF3a CBOT." }),
|
|
11965
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: "p", children: "Ng\xF4 \u0111\u01B0\u1EE3c ch\u1EA5p nh\u1EADn giao d\u1ECBch l\xE0 ng\xF4 lo\u1EA1i 1, ng\xF4 lo\u1EA1i 2, ng\xF4 lo\u1EA1i 3 \u0111\xE1p \u1EE9ng nh\u1EEFng ti\xEAu chu\u1EA9n \u0111\u01B0\u1EE3c m\xF4 t\u1EA3 \u1EDF b\u1EA3ng d\u01B0\u1EDBi:" })
|
|
11857
11966
|
] })
|
|
11858
11967
|
] }),
|
|
11859
|
-
/* @__PURE__ */
|
|
11860
|
-
/* @__PURE__ */
|
|
11861
|
-
/* @__PURE__ */
|
|
11862
|
-
/* @__PURE__ */
|
|
11863
|
-
/* @__PURE__ */
|
|
11864
|
-
/* @__PURE__ */
|
|
11968
|
+
/* @__PURE__ */ jsxs26(QualityStandardList, { children: [
|
|
11969
|
+
/* @__PURE__ */ jsxs26(QualityStandardHeader, { children: [
|
|
11970
|
+
/* @__PURE__ */ jsx32("span", { "aria-hidden": "true" }),
|
|
11971
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: "span", children: "Lo\u1EA1i 1" }),
|
|
11972
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: "span", children: "Lo\u1EA1i 2" }),
|
|
11973
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: "span", children: "Lo\u1EA1i 3" })
|
|
11865
11974
|
] }),
|
|
11866
|
-
qualityStandards.map((standard) => /* @__PURE__ */
|
|
11867
|
-
/* @__PURE__ */
|
|
11868
|
-
standard.values.map((value4) => /* @__PURE__ */
|
|
11975
|
+
qualityStandards.map((standard) => /* @__PURE__ */ jsxs26(QualityStandardRow, { children: [
|
|
11976
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: "span", children: standard.label }),
|
|
11977
|
+
standard.values.map((value4) => /* @__PURE__ */ jsx32(ExactText, { cmsAs: "span", children: value4 }, value4))
|
|
11869
11978
|
] }, standard.label))
|
|
11870
11979
|
] })
|
|
11871
11980
|
] })
|
|
11872
11981
|
] }),
|
|
11873
|
-
/* @__PURE__ */
|
|
11874
|
-
/* @__PURE__ */
|
|
11875
|
-
/* @__PURE__ */
|
|
11876
|
-
/* @__PURE__ */
|
|
11877
|
-
/* @__PURE__ */
|
|
11982
|
+
/* @__PURE__ */ jsx32(ContractSidebar, { children: /* @__PURE__ */ jsxs26(RelatedProductsSection, { "aria-labelledby": "related-products-heading", children: [
|
|
11983
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: RelatedProductsHeading, id: "related-products-heading", children: "H\xE0ng h\xF3a c\xF9ng lo\u1EA1i" }),
|
|
11984
|
+
/* @__PURE__ */ jsx32(RelatedProductsList, { children: relatedProducts.map((relatedProduct, index) => /* @__PURE__ */ jsxs26(RelatedProductCard, { children: [
|
|
11985
|
+
/* @__PURE__ */ jsxs26(RelatedProductImageFrame, { className: "wikex-cms-image-host", children: [
|
|
11986
|
+
/* @__PURE__ */ jsx32(
|
|
11878
11987
|
RelatedProductImage,
|
|
11879
11988
|
{
|
|
11880
11989
|
alt: "",
|
|
@@ -11887,14 +11996,14 @@ function ProductDetailContent({
|
|
|
11887
11996
|
$top: relatedProduct.imageTop
|
|
11888
11997
|
}
|
|
11889
11998
|
),
|
|
11890
|
-
/* @__PURE__ */
|
|
11999
|
+
/* @__PURE__ */ jsx32(CmsImageAction, { field: `productDetailRelatedImage${index + 1}` })
|
|
11891
12000
|
] }),
|
|
11892
|
-
/* @__PURE__ */
|
|
11893
|
-
/* @__PURE__ */
|
|
11894
|
-
/* @__PURE__ */
|
|
11895
|
-
/* @__PURE__ */
|
|
12001
|
+
/* @__PURE__ */ jsxs26(RelatedProductContent, { children: [
|
|
12002
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: RelatedProductTitle, children: "L\xFAa m\u1EF3" }),
|
|
12003
|
+
/* @__PURE__ */ jsx32(ExactText, { cmsAs: RelatedProductDescription, children: relatedProductDescription }),
|
|
12004
|
+
/* @__PURE__ */ jsxs26(RelatedProductAction, { as: Link7, href: "/products/", children: [
|
|
11896
12005
|
"Xem th\xEAm",
|
|
11897
|
-
/* @__PURE__ */
|
|
12006
|
+
/* @__PURE__ */ jsx32(RelatedProductArrow, { "aria-hidden": "true" })
|
|
11898
12007
|
] })
|
|
11899
12008
|
] })
|
|
11900
12009
|
] }, relatedProduct.image)) })
|
|
@@ -12151,7 +12260,7 @@ var FeaturedArrow = styled24.span.withConfig({
|
|
|
12151
12260
|
]);
|
|
12152
12261
|
|
|
12153
12262
|
// src/commodity-original/app/thong-tin-wikex/FeaturedArticles.tsx
|
|
12154
|
-
import { jsx as
|
|
12263
|
+
import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
12155
12264
|
function FeaturedArticles() {
|
|
12156
12265
|
const { t } = useTranslation12();
|
|
12157
12266
|
const { isMobile } = useResponsive();
|
|
@@ -12162,10 +12271,10 @@ function FeaturedArticles() {
|
|
|
12162
12271
|
(current) => (current + step + featuredArticles.length) % featuredArticles.length
|
|
12163
12272
|
);
|
|
12164
12273
|
};
|
|
12165
|
-
return /* @__PURE__ */
|
|
12166
|
-
/* @__PURE__ */
|
|
12167
|
-
/* @__PURE__ */
|
|
12168
|
-
/* @__PURE__ */
|
|
12274
|
+
return /* @__PURE__ */ jsx33(FeaturedSection, { "aria-labelledby": "wikex-featured-title", children: /* @__PURE__ */ jsxs27(FeaturedInner, { children: [
|
|
12275
|
+
/* @__PURE__ */ jsx33(ExactText, { cmsAs: FeaturedTitle, id: "wikex-featured-title", children: t("wikexInformation.featured.title") }),
|
|
12276
|
+
/* @__PURE__ */ jsxs27(FeaturedCarousel, { children: [
|
|
12277
|
+
/* @__PURE__ */ jsx33(
|
|
12169
12278
|
FeaturedViewport,
|
|
12170
12279
|
{
|
|
12171
12280
|
id: "wikex-featured-carousel",
|
|
@@ -12176,17 +12285,17 @@ function FeaturedArticles() {
|
|
|
12176
12285
|
if (event.key === "ArrowLeft") moveSlide(-1);
|
|
12177
12286
|
if (event.key === "ArrowRight") moveSlide(1);
|
|
12178
12287
|
},
|
|
12179
|
-
children: /* @__PURE__ */
|
|
12288
|
+
children: /* @__PURE__ */ jsx33(
|
|
12180
12289
|
FeaturedTrack,
|
|
12181
12290
|
{
|
|
12182
12291
|
style: {
|
|
12183
12292
|
transform: `translate3d(calc(-${activeSlide * 100}% - ${activeSlide * 32}px), 0, 0)`
|
|
12184
12293
|
},
|
|
12185
|
-
children: featuredArticles.map((article, index) => /* @__PURE__ */
|
|
12294
|
+
children: featuredArticles.map((article, index) => /* @__PURE__ */ jsx33(
|
|
12186
12295
|
FeaturedSlide,
|
|
12187
12296
|
{
|
|
12188
12297
|
"aria-hidden": index !== activeSlide,
|
|
12189
|
-
children: /* @__PURE__ */
|
|
12298
|
+
children: /* @__PURE__ */ jsx33(
|
|
12190
12299
|
FeaturedCard,
|
|
12191
12300
|
{
|
|
12192
12301
|
badgeLabel: t(`wikexInformation.categories.${article.category}`),
|
|
@@ -12208,18 +12317,18 @@ function FeaturedArticles() {
|
|
|
12208
12317
|
)
|
|
12209
12318
|
}
|
|
12210
12319
|
),
|
|
12211
|
-
/* @__PURE__ */
|
|
12212
|
-
/* @__PURE__ */
|
|
12320
|
+
/* @__PURE__ */ jsxs27(FeaturedControls, { "aria-label": t("wikexInformation.featured.navigation"), children: [
|
|
12321
|
+
/* @__PURE__ */ jsx33(
|
|
12213
12322
|
FeaturedArrowButton,
|
|
12214
12323
|
{
|
|
12215
12324
|
"aria-controls": "wikex-featured-carousel",
|
|
12216
12325
|
"aria-label": t("common.previous"),
|
|
12217
12326
|
onClick: () => moveSlide(-1),
|
|
12218
12327
|
type: "button",
|
|
12219
|
-
children: /* @__PURE__ */
|
|
12328
|
+
children: /* @__PURE__ */ jsx33(FeaturedArrow, { "aria-hidden": "true", "data-direction": "previous" })
|
|
12220
12329
|
}
|
|
12221
12330
|
),
|
|
12222
|
-
/* @__PURE__ */
|
|
12331
|
+
/* @__PURE__ */ jsx33(FeaturedDots, { children: featuredArticles.map((article, index) => /* @__PURE__ */ jsx33(
|
|
12223
12332
|
FeaturedDot,
|
|
12224
12333
|
{
|
|
12225
12334
|
"aria-controls": "wikex-featured-carousel",
|
|
@@ -12230,14 +12339,14 @@ function FeaturedArticles() {
|
|
|
12230
12339
|
},
|
|
12231
12340
|
article.id
|
|
12232
12341
|
)) }),
|
|
12233
|
-
/* @__PURE__ */
|
|
12342
|
+
/* @__PURE__ */ jsx33(
|
|
12234
12343
|
FeaturedArrowButton,
|
|
12235
12344
|
{
|
|
12236
12345
|
"aria-controls": "wikex-featured-carousel",
|
|
12237
12346
|
"aria-label": t("common.next"),
|
|
12238
12347
|
onClick: () => moveSlide(1),
|
|
12239
12348
|
type: "button",
|
|
12240
|
-
children: /* @__PURE__ */
|
|
12349
|
+
children: /* @__PURE__ */ jsx33(FeaturedArrow, { "aria-hidden": "true" })
|
|
12241
12350
|
}
|
|
12242
12351
|
)
|
|
12243
12352
|
] })
|
|
@@ -12462,12 +12571,12 @@ function WikexInformationArticlesSection() {
|
|
|
12462
12571
|
}
|
|
12463
12572
|
|
|
12464
12573
|
// src/shared/download-button-link.tsx
|
|
12465
|
-
import { jsx as
|
|
12574
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
12466
12575
|
function CmsDownloadButtonLink({ field, children, ...props }) {
|
|
12467
12576
|
const content = useCmsElementContent();
|
|
12468
12577
|
const editing = useCmsElementEditing();
|
|
12469
12578
|
const link2 = getCmsButtonLink(content ?? {}, field);
|
|
12470
|
-
return /* @__PURE__ */
|
|
12579
|
+
return /* @__PURE__ */ jsx34(
|
|
12471
12580
|
"a",
|
|
12472
12581
|
{
|
|
12473
12582
|
...props,
|
|
@@ -12724,7 +12833,7 @@ function useAppTheme() {
|
|
|
12724
12833
|
}
|
|
12725
12834
|
|
|
12726
12835
|
// src/commodity-original/components/LandingPage/LandingFooter.tsx
|
|
12727
|
-
import { jsx as
|
|
12836
|
+
import { jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12728
12837
|
function FooterLinks({ listKey, titleKey }) {
|
|
12729
12838
|
const { t, i18n } = useTranslation14();
|
|
12730
12839
|
const language = i18n.resolvedLanguage?.startsWith("en") ? "en" : "vi";
|
|
@@ -12732,12 +12841,12 @@ function FooterLinks({ listKey, titleKey }) {
|
|
|
12732
12841
|
const editable = useCmsElementEditing()?.editable;
|
|
12733
12842
|
const items = parseChromeItems(content?.[`${language}.${listKey}`]) ?? [];
|
|
12734
12843
|
if (!items.length) return null;
|
|
12735
|
-
return /* @__PURE__ */
|
|
12736
|
-
/* @__PURE__ */
|
|
12844
|
+
return /* @__PURE__ */ jsxs28("nav", { className: "footer-nav", "aria-label": t(titleKey), children: [
|
|
12845
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "strong", children: t(titleKey) }),
|
|
12737
12846
|
items.map((item, index) => {
|
|
12738
12847
|
const href = chromeItemHref(item);
|
|
12739
12848
|
const props = { cmsField: `${listKey}.${index}.label`, ...chromeItemAttributes(language, listKey, index) };
|
|
12740
|
-
return href ? /* @__PURE__ */
|
|
12849
|
+
return href ? /* @__PURE__ */ jsx35(ExactText, { cmsAs: Link8, href, ...props, children: item.label }, index) : /* @__PURE__ */ jsx35(ExactText, { cmsAs: "button", type: "button", disabled: !editable, ...props, children: item.label }, index);
|
|
12741
12850
|
})
|
|
12742
12851
|
] });
|
|
12743
12852
|
}
|
|
@@ -12757,12 +12866,12 @@ function LandingFooter() {
|
|
|
12757
12866
|
"/Logo/logo_original_dark.png"
|
|
12758
12867
|
);
|
|
12759
12868
|
const mxvLogo = useCmsImage("footerMxvLogoImage", "/Logo/Logo_mxv.png");
|
|
12760
|
-
return /* @__PURE__ */
|
|
12761
|
-
/* @__PURE__ */
|
|
12762
|
-
/* @__PURE__ */
|
|
12763
|
-
/* @__PURE__ */
|
|
12764
|
-
/* @__PURE__ */
|
|
12765
|
-
/* @__PURE__ */
|
|
12869
|
+
return /* @__PURE__ */ jsx35("footer", { className: "footer", children: /* @__PURE__ */ jsxs28("div", { className: "container footer-content", children: [
|
|
12870
|
+
/* @__PURE__ */ jsxs28("div", { className: "footer-grid", children: [
|
|
12871
|
+
/* @__PURE__ */ jsxs28("div", { className: "footer-brand", children: [
|
|
12872
|
+
/* @__PURE__ */ jsxs28("div", { className: "footer-brand-intro", children: [
|
|
12873
|
+
/* @__PURE__ */ jsxs28("div", { className: "footer-logo-row", children: [
|
|
12874
|
+
/* @__PURE__ */ jsx35("span", { className: "footer-wikex-logo", "aria-label": "Wikex", children: /* @__PURE__ */ jsx35(
|
|
12766
12875
|
WikiLogo,
|
|
12767
12876
|
{
|
|
12768
12877
|
src: isDarkTheme ? darkLogo : lightLogo,
|
|
@@ -12772,7 +12881,7 @@ function LandingFooter() {
|
|
|
12772
12881
|
loading: "eager"
|
|
12773
12882
|
}
|
|
12774
12883
|
) }),
|
|
12775
|
-
/* @__PURE__ */
|
|
12884
|
+
/* @__PURE__ */ jsx35(
|
|
12776
12885
|
MxvLogo,
|
|
12777
12886
|
{
|
|
12778
12887
|
src: mxvLogo,
|
|
@@ -12783,20 +12892,20 @@ function LandingFooter() {
|
|
|
12783
12892
|
}
|
|
12784
12893
|
)
|
|
12785
12894
|
] }),
|
|
12786
|
-
/* @__PURE__ */
|
|
12895
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "p", children: t("landing.footer.description") })
|
|
12787
12896
|
] }),
|
|
12788
|
-
/* @__PURE__ */
|
|
12789
|
-
/* @__PURE__ */
|
|
12790
|
-
/* @__PURE__ */
|
|
12791
|
-
/* @__PURE__ */
|
|
12792
|
-
/* @__PURE__ */
|
|
12897
|
+
/* @__PURE__ */ jsxs28("address", { className: "footer-contact", children: [
|
|
12898
|
+
/* @__PURE__ */ jsxs28("div", { className: "footer-company", children: [
|
|
12899
|
+
/* @__PURE__ */ jsxs28("div", { className: "footer-company-name", children: [
|
|
12900
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "strong", children: t("landing.footer.company") }),
|
|
12901
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "span", children: t("landing.footer.taxId") })
|
|
12793
12902
|
] }),
|
|
12794
|
-
contacts.length > 0 && /* @__PURE__ */
|
|
12795
|
-
item.icon && /* @__PURE__ */
|
|
12796
|
-
chromeItemHref(item) ? /* @__PURE__ */
|
|
12903
|
+
contacts.length > 0 && /* @__PURE__ */ jsx35("div", { className: "footer-contact-list", children: contacts.map((item, index) => /* @__PURE__ */ jsxs28("span", { className: "footer-contact-row", ...chromeItemAttributes(language, "footer.contacts", index), children: [
|
|
12904
|
+
item.icon && /* @__PURE__ */ jsx35(Image8, { src: item.icon, alt: "", width: 16, height: 16, "aria-hidden": "true" }),
|
|
12905
|
+
chromeItemHref(item) ? /* @__PURE__ */ jsx35(ExactText, { cmsAs: "a", href: chromeItemHref(item), cmsField: `footer.contacts.${index}.label`, children: item.label }) : /* @__PURE__ */ jsx35(ExactText, { cmsAs: "span", cmsField: `footer.contacts.${index}.label`, children: item.label })
|
|
12797
12906
|
] }, index)) })
|
|
12798
12907
|
] }),
|
|
12799
|
-
socials.length > 0 && /* @__PURE__ */
|
|
12908
|
+
socials.length > 0 && /* @__PURE__ */ jsx35("div", { className: "footer-socials", "aria-label": t("landing.footer.socials"), children: socials.map((item, index) => /* @__PURE__ */ jsxs28(
|
|
12800
12909
|
"a",
|
|
12801
12910
|
{
|
|
12802
12911
|
href: chromeItemHref(item),
|
|
@@ -12807,25 +12916,25 @@ function LandingFooter() {
|
|
|
12807
12916
|
target: "_blank",
|
|
12808
12917
|
rel: "noopener noreferrer",
|
|
12809
12918
|
children: [
|
|
12810
|
-
item.icon && /* @__PURE__ */
|
|
12811
|
-
/* @__PURE__ */
|
|
12919
|
+
item.icon && /* @__PURE__ */ jsx35(Image8, { src: item.icon, alt: "", width: 20, height: 20, "aria-hidden": "true" }),
|
|
12920
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "span", cmsField: `footer.socials.${index}.label`, className: "sr-only", children: item.label })
|
|
12812
12921
|
]
|
|
12813
12922
|
},
|
|
12814
12923
|
index
|
|
12815
12924
|
)) })
|
|
12816
12925
|
] })
|
|
12817
12926
|
] }),
|
|
12818
|
-
/* @__PURE__ */
|
|
12819
|
-
/* @__PURE__ */
|
|
12820
|
-
/* @__PURE__ */
|
|
12821
|
-
/* @__PURE__ */
|
|
12822
|
-
/* @__PURE__ */
|
|
12823
|
-
/* @__PURE__ */
|
|
12927
|
+
/* @__PURE__ */ jsxs28("div", { className: "footer-secondary", children: [
|
|
12928
|
+
/* @__PURE__ */ jsxs28("div", { className: "footer-navs", children: [
|
|
12929
|
+
/* @__PURE__ */ jsx35(FooterLinks, { listKey: "footer.aboutLinks", titleKey: "landing.footer.aboutWikex" }),
|
|
12930
|
+
/* @__PURE__ */ jsx35(FooterLinks, { listKey: "footer.productLinks", titleKey: "landing.footer.product" }),
|
|
12931
|
+
/* @__PURE__ */ jsx35(FooterLinks, { listKey: "footer.guideLinks", titleKey: "landing.footer.guide" }),
|
|
12932
|
+
/* @__PURE__ */ jsx35(FooterLinks, { listKey: "footer.supportLinks", titleKey: "landing.footer.support" })
|
|
12824
12933
|
] }),
|
|
12825
|
-
downloads.length > 0 && /* @__PURE__ */
|
|
12826
|
-
/* @__PURE__ */
|
|
12827
|
-
/* @__PURE__ */
|
|
12828
|
-
/* @__PURE__ */
|
|
12934
|
+
downloads.length > 0 && /* @__PURE__ */ jsxs28("div", { className: "footer-downloads", children: [
|
|
12935
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "strong", children: t("landing.footer.download") }),
|
|
12936
|
+
/* @__PURE__ */ jsxs28("div", { className: "footer-download-links", children: [
|
|
12937
|
+
/* @__PURE__ */ jsx35("div", { className: "footer-store-links", children: downloads.map((item, index) => item.icon?.includes("footer-desktop.svg") ? null : /* @__PURE__ */ jsxs28(
|
|
12829
12938
|
CmsDownloadButtonLink,
|
|
12830
12939
|
{
|
|
12831
12940
|
field: `${language}.footer.downloads.${index}.label`,
|
|
@@ -12833,10 +12942,10 @@ function LandingFooter() {
|
|
|
12833
12942
|
...chromeItemAttributes(language, "footer.downloads", index),
|
|
12834
12943
|
"aria-label": item.label,
|
|
12835
12944
|
children: [
|
|
12836
|
-
item.icon && /* @__PURE__ */
|
|
12837
|
-
/* @__PURE__ */
|
|
12838
|
-
item.prefix && /* @__PURE__ */
|
|
12839
|
-
/* @__PURE__ */
|
|
12945
|
+
item.icon && /* @__PURE__ */ jsx35(Image8, { src: item.icon, alt: "", width: 24, height: 24, "aria-hidden": "true" }),
|
|
12946
|
+
/* @__PURE__ */ jsxs28("span", { className: "footer-store-copy", children: [
|
|
12947
|
+
item.prefix && /* @__PURE__ */ jsx35(ExactText, { cmsAs: "small", cmsField: `footer.downloads.${index}.prefix`, children: item.prefix }),
|
|
12948
|
+
/* @__PURE__ */ jsx35(
|
|
12840
12949
|
ExactText,
|
|
12841
12950
|
{
|
|
12842
12951
|
cmsAs: "strong",
|
|
@@ -12846,7 +12955,7 @@ function LandingFooter() {
|
|
|
12846
12955
|
children: item.label
|
|
12847
12956
|
}
|
|
12848
12957
|
),
|
|
12849
|
-
!editable && item.label === "Google Play" && !item.labelTextLayout && !item.labelColor && /* @__PURE__ */
|
|
12958
|
+
!editable && item.label === "Google Play" && !item.labelTextLayout && !item.labelColor && /* @__PURE__ */ jsx35(
|
|
12850
12959
|
Image8,
|
|
12851
12960
|
{
|
|
12852
12961
|
className: "footer-googleplay-wordmark",
|
|
@@ -12862,23 +12971,23 @@ function LandingFooter() {
|
|
|
12862
12971
|
},
|
|
12863
12972
|
index
|
|
12864
12973
|
)) }),
|
|
12865
|
-
downloads.map((item, index) => item.icon?.includes("footer-desktop.svg") ? /* @__PURE__ */
|
|
12866
|
-
/* @__PURE__ */
|
|
12867
|
-
/* @__PURE__ */
|
|
12974
|
+
downloads.map((item, index) => item.icon?.includes("footer-desktop.svg") ? /* @__PURE__ */ jsxs28(CmsDownloadButtonLink, { field: `${language}.footer.downloads.${index}.label`, className: "footer-desktop-link", ...chromeItemAttributes(language, "footer.downloads", index), children: [
|
|
12975
|
+
/* @__PURE__ */ jsx35("span", { children: /* @__PURE__ */ jsx35(Image8, { src: item.icon, alt: "", width: 24, height: 24, "aria-hidden": "true" }) }),
|
|
12976
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "strong", cmsField: `footer.downloads.${index}.label`, children: item.label })
|
|
12868
12977
|
] }, index) : null)
|
|
12869
12978
|
] })
|
|
12870
12979
|
] })
|
|
12871
12980
|
] })
|
|
12872
12981
|
] }),
|
|
12873
|
-
/* @__PURE__ */
|
|
12874
|
-
/* @__PURE__ */
|
|
12982
|
+
/* @__PURE__ */ jsx35("hr", { className: "footer-divider" }),
|
|
12983
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "p", className: "copyright", children: t("landing.footer.copyright") })
|
|
12875
12984
|
] }) });
|
|
12876
12985
|
}
|
|
12877
12986
|
|
|
12878
12987
|
// src/commodity-original/components/Footer/index.tsx
|
|
12879
|
-
import { jsx as
|
|
12988
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
12880
12989
|
function Footer() {
|
|
12881
|
-
return /* @__PURE__ */
|
|
12990
|
+
return /* @__PURE__ */ jsx36(PageShell, { as: "div", children: /* @__PURE__ */ jsx36(LandingFooter, {}) });
|
|
12882
12991
|
}
|
|
12883
12992
|
|
|
12884
12993
|
// src/commodity-original/components/Header/index.tsx
|
|
@@ -12929,7 +13038,7 @@ function ThemeToggle({ variant = "floating" }) {
|
|
|
12929
13038
|
|
|
12930
13039
|
// src/commodity-original/components/Header/index.tsx
|
|
12931
13040
|
import { useTranslation as useTranslation16 } from "react-i18next";
|
|
12932
|
-
import { jsx as
|
|
13041
|
+
import { jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
12933
13042
|
import { createElement as createElement3 } from "react";
|
|
12934
13043
|
var languages = [
|
|
12935
13044
|
{
|
|
@@ -12944,7 +13053,7 @@ var languages = [
|
|
|
12944
13053
|
}
|
|
12945
13054
|
];
|
|
12946
13055
|
function LanguageIcon() {
|
|
12947
|
-
return /* @__PURE__ */
|
|
13056
|
+
return /* @__PURE__ */ jsx37(
|
|
12948
13057
|
"svg",
|
|
12949
13058
|
{
|
|
12950
13059
|
"aria-hidden": "true",
|
|
@@ -12953,7 +13062,7 @@ function LanguageIcon() {
|
|
|
12953
13062
|
viewBox: "0 0 24 24",
|
|
12954
13063
|
width: "24",
|
|
12955
13064
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12956
|
-
children: /* @__PURE__ */
|
|
13065
|
+
children: /* @__PURE__ */ jsx37(
|
|
12957
13066
|
"path",
|
|
12958
13067
|
{
|
|
12959
13068
|
d: "M22 12.0001C22 17.5229 17.5228 22.0001 12 22.0001M22 12.0001C22 6.47721 17.5228 2.00006 12 2.00006M22 12.0001H2M12 22.0001C6.47715 22.0001 2 17.5229 2 12.0001M12 22.0001C14.4744 19.475 16 15.8146 16 12C16 8.18532 14.4744 4.52513 12 2.00006M12 22.0001C9.52563 19.475 8 15.8146 8 12C8 8.18532 9.52563 4.52513 12 2.00006M12 2.00006C6.47715 2.00006 2 6.47721 2 12.0001",
|
|
@@ -12974,8 +13083,8 @@ function LanguageSwitcher({
|
|
|
12974
13083
|
const { t } = useTranslation16();
|
|
12975
13084
|
const triggerRef = useRef7(null);
|
|
12976
13085
|
const currentLanguage = languages.find((item) => item.value === language);
|
|
12977
|
-
return /* @__PURE__ */
|
|
12978
|
-
/* @__PURE__ */
|
|
13086
|
+
return /* @__PURE__ */ jsxs29(DropdownMenu2.Root, { children: [
|
|
13087
|
+
/* @__PURE__ */ jsx37(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
12979
13088
|
LanguageTrigger,
|
|
12980
13089
|
{
|
|
12981
13090
|
"aria-label": t("language.current", {
|
|
@@ -12984,10 +13093,10 @@ function LanguageSwitcher({
|
|
|
12984
13093
|
ref: triggerRef,
|
|
12985
13094
|
title: t("language.change"),
|
|
12986
13095
|
type: "button",
|
|
12987
|
-
children: /* @__PURE__ */
|
|
13096
|
+
children: /* @__PURE__ */ jsx37(LanguageIcon, {})
|
|
12988
13097
|
}
|
|
12989
13098
|
) }),
|
|
12990
|
-
/* @__PURE__ */
|
|
13099
|
+
/* @__PURE__ */ jsx37(DropdownMenu2.Portal, { container: portalContainer, children: /* @__PURE__ */ jsx37(
|
|
12991
13100
|
LanguageMenuContent,
|
|
12992
13101
|
{
|
|
12993
13102
|
align: compact ? "end" : "start",
|
|
@@ -12998,13 +13107,13 @@ function LanguageSwitcher({
|
|
|
12998
13107
|
triggerRef.current?.focus({ preventScroll: true });
|
|
12999
13108
|
},
|
|
13000
13109
|
sideOffset: 4,
|
|
13001
|
-
children: /* @__PURE__ */
|
|
13110
|
+
children: /* @__PURE__ */ jsx37(
|
|
13002
13111
|
DropdownMenu2.RadioGroup,
|
|
13003
13112
|
{
|
|
13004
13113
|
onValueChange: (value4) => onLanguageChange(value4),
|
|
13005
13114
|
value: language,
|
|
13006
|
-
children: languages.map((item) => /* @__PURE__ */
|
|
13007
|
-
/* @__PURE__ */
|
|
13115
|
+
children: languages.map((item) => /* @__PURE__ */ jsxs29(LanguageMenuItem, { value: item.value, children: [
|
|
13116
|
+
/* @__PURE__ */ jsx37(LanguageFlag, { children: /* @__PURE__ */ jsx37(
|
|
13008
13117
|
Image9,
|
|
13009
13118
|
{
|
|
13010
13119
|
alt: "",
|
|
@@ -13014,8 +13123,8 @@ function LanguageSwitcher({
|
|
|
13014
13123
|
width: item.value === "vi" ? 30 : 20
|
|
13015
13124
|
}
|
|
13016
13125
|
) }),
|
|
13017
|
-
/* @__PURE__ */
|
|
13018
|
-
/* @__PURE__ */
|
|
13126
|
+
/* @__PURE__ */ jsx37(ExactText, { cmsAs: "span", children: item.label }),
|
|
13127
|
+
/* @__PURE__ */ jsx37(LanguageItemIndicator, { children: /* @__PURE__ */ jsx37(
|
|
13019
13128
|
Image9,
|
|
13020
13129
|
{
|
|
13021
13130
|
alt: "",
|
|
@@ -13152,9 +13261,9 @@ function Header() {
|
|
|
13152
13261
|
desktopMediaQuery.removeEventListener("change", closeDrawerOnDesktop);
|
|
13153
13262
|
};
|
|
13154
13263
|
}, []);
|
|
13155
|
-
return /* @__PURE__ */
|
|
13156
|
-
/* @__PURE__ */
|
|
13157
|
-
/* @__PURE__ */
|
|
13264
|
+
return /* @__PURE__ */ jsx37(HeaderShell, { ref: setHeaderRef, children: /* @__PURE__ */ jsxs29(HeaderInner, { children: [
|
|
13265
|
+
/* @__PURE__ */ jsxs29(BrandGroup, { children: [
|
|
13266
|
+
/* @__PURE__ */ jsx37(WikiBrand, { href: homeUrl, "aria-label": t("header.home"), children: /* @__PURE__ */ jsx37(
|
|
13158
13267
|
WikiLogo,
|
|
13159
13268
|
{
|
|
13160
13269
|
src: isDarkTheme ? darkLogo : lightLogo,
|
|
@@ -13164,14 +13273,14 @@ function Header() {
|
|
|
13164
13273
|
loading: "eager"
|
|
13165
13274
|
}
|
|
13166
13275
|
) }),
|
|
13167
|
-
/* @__PURE__ */
|
|
13276
|
+
/* @__PURE__ */ jsx37(
|
|
13168
13277
|
PartnerBrand,
|
|
13169
13278
|
{
|
|
13170
13279
|
href: mxvUrl,
|
|
13171
13280
|
target: "_blank",
|
|
13172
13281
|
rel: "noopener noreferrer",
|
|
13173
13282
|
"aria-label": t("header.mxv"),
|
|
13174
|
-
children: /* @__PURE__ */
|
|
13283
|
+
children: /* @__PURE__ */ jsx37(
|
|
13175
13284
|
MxvLogo,
|
|
13176
13285
|
{
|
|
13177
13286
|
src: mxvLogo,
|
|
@@ -13184,34 +13293,34 @@ function Header() {
|
|
|
13184
13293
|
}
|
|
13185
13294
|
)
|
|
13186
13295
|
] }),
|
|
13187
|
-
/* @__PURE__ */
|
|
13296
|
+
/* @__PURE__ */ jsx37(DesktopNavigation, { "aria-label": t("header.navigation"), children: resolvedNavigationItems.map((item) => {
|
|
13188
13297
|
const isItemActive = item.children.length > 0 ? item.children.some((child) => isRouteActive(child.href)) : isRouteActive(item.href);
|
|
13189
13298
|
if (item.children.length > 0) {
|
|
13190
|
-
return /* @__PURE__ */
|
|
13299
|
+
return /* @__PURE__ */ jsxs29(
|
|
13191
13300
|
DropdownMenu2.Root,
|
|
13192
13301
|
{
|
|
13193
13302
|
modal: false,
|
|
13194
13303
|
open: isDesktopProductsOpen === item.index,
|
|
13195
13304
|
onOpenChange: (open) => setIsDesktopProductsOpen(open ? item.index : null),
|
|
13196
13305
|
children: [
|
|
13197
|
-
/* @__PURE__ */
|
|
13306
|
+
/* @__PURE__ */ jsx37(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
13198
13307
|
ProductsMenuTrigger,
|
|
13199
13308
|
{
|
|
13200
13309
|
...chromeItemAttributes(language, "header.menuItems", item.index),
|
|
13201
13310
|
type: "button",
|
|
13202
13311
|
"aria-current": isItemActive ? "page" : void 0,
|
|
13203
13312
|
"data-active": isItemActive ? "true" : void 0,
|
|
13204
|
-
children: /* @__PURE__ */
|
|
13313
|
+
children: /* @__PURE__ */ jsx37(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label })
|
|
13205
13314
|
}
|
|
13206
13315
|
) }),
|
|
13207
|
-
/* @__PURE__ */
|
|
13316
|
+
/* @__PURE__ */ jsx37(DropdownMenu2.Portal, { container: portalContainer, children: /* @__PURE__ */ jsx37(
|
|
13208
13317
|
ProductsMenuContent,
|
|
13209
13318
|
{
|
|
13210
13319
|
onInteractOutside: keepEditorToolbarOpen,
|
|
13211
13320
|
align: "center",
|
|
13212
13321
|
sideOffset: 10,
|
|
13213
13322
|
"aria-label": item.label,
|
|
13214
|
-
children: item.children.map((child) => /* @__PURE__ */
|
|
13323
|
+
children: item.children.map((child) => /* @__PURE__ */ jsx37(ProductsMenuItem, { asChild: true, children: /* @__PURE__ */ jsx37(ExactText, { cmsAs: Link9, cmsField: child.labelKey, ...chromeItemAttributes(language, "header.menuItems", child.index, item.index), href: child.href, "aria-disabled": child.linkDisabled || void 0, onClick: (event) => {
|
|
13215
13324
|
if (child.linkDisabled) event.preventDefault();
|
|
13216
13325
|
}, "aria-current": isItemActive && selectedCategory === child.category ? "page" : void 0, children: child.label }) }, child.labelKey))
|
|
13217
13326
|
}
|
|
@@ -13239,8 +13348,8 @@ function Header() {
|
|
|
13239
13348
|
item.label
|
|
13240
13349
|
);
|
|
13241
13350
|
}) }),
|
|
13242
|
-
/* @__PURE__ */
|
|
13243
|
-
/* @__PURE__ */
|
|
13351
|
+
/* @__PURE__ */ jsxs29(MobileNavigation2, { children: [
|
|
13352
|
+
/* @__PURE__ */ jsx37(MobileLanguageToggle, { children: /* @__PURE__ */ jsx37(
|
|
13244
13353
|
LanguageSwitcher,
|
|
13245
13354
|
{
|
|
13246
13355
|
compact: true,
|
|
@@ -13249,15 +13358,15 @@ function Header() {
|
|
|
13249
13358
|
onLanguageChange: (nextLanguage) => void i18n.changeLanguage(nextLanguage)
|
|
13250
13359
|
}
|
|
13251
13360
|
) }),
|
|
13252
|
-
/* @__PURE__ */
|
|
13253
|
-
/* @__PURE__ */
|
|
13254
|
-
/* @__PURE__ */
|
|
13361
|
+
/* @__PURE__ */ jsx37(MobileThemeToggle, { children: /* @__PURE__ */ jsx37(ThemeToggle, { variant: "header" }) }),
|
|
13362
|
+
/* @__PURE__ */ jsxs29(Dialog5.Root, { modal: !editable, open: isMenuOpen, onOpenChange: setIsMenuOpen, children: [
|
|
13363
|
+
/* @__PURE__ */ jsx37(Dialog5.Trigger, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
13255
13364
|
MobileMenuTrigger,
|
|
13256
13365
|
{
|
|
13257
13366
|
type: "button",
|
|
13258
13367
|
ref: mobileMenuTriggerRef,
|
|
13259
13368
|
"aria-label": isMenuOpen ? t("header.closeMenu") : t("header.openMenu"),
|
|
13260
|
-
children: /* @__PURE__ */
|
|
13369
|
+
children: /* @__PURE__ */ jsx37(
|
|
13261
13370
|
MorphIcon3,
|
|
13262
13371
|
{
|
|
13263
13372
|
icon: isMenuOpen ? X2 : Menu2,
|
|
@@ -13269,9 +13378,9 @@ function Header() {
|
|
|
13269
13378
|
)
|
|
13270
13379
|
}
|
|
13271
13380
|
) }),
|
|
13272
|
-
/* @__PURE__ */
|
|
13273
|
-
/* @__PURE__ */
|
|
13274
|
-
/* @__PURE__ */
|
|
13381
|
+
/* @__PURE__ */ jsxs29(Dialog5.Portal, { container: portalContainer, children: [
|
|
13382
|
+
/* @__PURE__ */ jsx37(MobileDrawerOverlay, {}),
|
|
13383
|
+
/* @__PURE__ */ jsxs29(
|
|
13275
13384
|
MobileDrawerContent,
|
|
13276
13385
|
{
|
|
13277
13386
|
onInteractOutside: keepEditorToolbarOpen,
|
|
@@ -13290,9 +13399,9 @@ function Header() {
|
|
|
13290
13399
|
});
|
|
13291
13400
|
},
|
|
13292
13401
|
children: [
|
|
13293
|
-
/* @__PURE__ */
|
|
13294
|
-
/* @__PURE__ */
|
|
13295
|
-
/* @__PURE__ */
|
|
13402
|
+
/* @__PURE__ */ jsxs29(MobileDrawerHeader, { children: [
|
|
13403
|
+
/* @__PURE__ */ jsx37(ExactText, { cmsAs: MobileDrawerTitle, children: t("header.menu") }),
|
|
13404
|
+
/* @__PURE__ */ jsx37(MobileDrawerClose, { "aria-label": t("header.closeMenu"), children: /* @__PURE__ */ jsx37(
|
|
13296
13405
|
MorphIcon3,
|
|
13297
13406
|
{
|
|
13298
13407
|
icon: X2,
|
|
@@ -13303,8 +13412,8 @@ function Header() {
|
|
|
13303
13412
|
}
|
|
13304
13413
|
) })
|
|
13305
13414
|
] }),
|
|
13306
|
-
/* @__PURE__ */
|
|
13307
|
-
/* @__PURE__ */
|
|
13415
|
+
/* @__PURE__ */ jsxs29(MobileDrawerActions, { children: [
|
|
13416
|
+
/* @__PURE__ */ jsx37(
|
|
13308
13417
|
ExactText,
|
|
13309
13418
|
{
|
|
13310
13419
|
cmsAs: MobileDrawerLoginButton,
|
|
@@ -13316,7 +13425,7 @@ function Header() {
|
|
|
13316
13425
|
children: t("header.login")
|
|
13317
13426
|
}
|
|
13318
13427
|
),
|
|
13319
|
-
/* @__PURE__ */
|
|
13428
|
+
/* @__PURE__ */ jsx37(
|
|
13320
13429
|
ExactText,
|
|
13321
13430
|
{
|
|
13322
13431
|
cmsAs: MobileDrawerOpenAccountButton,
|
|
@@ -13341,12 +13450,12 @@ function Header() {
|
|
|
13341
13450
|
}
|
|
13342
13451
|
)
|
|
13343
13452
|
] }),
|
|
13344
|
-
/* @__PURE__ */
|
|
13453
|
+
/* @__PURE__ */ jsxs29(MobileMenuPanel, { "aria-label": t("header.mobileNavigation"), children: [
|
|
13345
13454
|
resolvedNavigationItems.map((item) => {
|
|
13346
13455
|
const isItemActive = item.children.length > 0 ? item.children.some((child) => isRouteActive(child.href)) : isRouteActive(item.href);
|
|
13347
13456
|
if (item.children.length > 0) {
|
|
13348
|
-
return /* @__PURE__ */
|
|
13349
|
-
/* @__PURE__ */
|
|
13457
|
+
return /* @__PURE__ */ jsxs29("div", { className: "mobile-menu-group", ...chromeItemAttributes(language, "header.menuItems", item.index), children: [
|
|
13458
|
+
/* @__PURE__ */ jsxs29(
|
|
13350
13459
|
"button",
|
|
13351
13460
|
{
|
|
13352
13461
|
"aria-current": isItemActive ? "page" : void 0,
|
|
@@ -13360,13 +13469,13 @@ function Header() {
|
|
|
13360
13469
|
},
|
|
13361
13470
|
type: "button",
|
|
13362
13471
|
children: [
|
|
13363
|
-
/* @__PURE__ */
|
|
13364
|
-
/* @__PURE__ */
|
|
13472
|
+
/* @__PURE__ */ jsx37(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label }),
|
|
13473
|
+
/* @__PURE__ */ jsx37(
|
|
13365
13474
|
"span",
|
|
13366
13475
|
{
|
|
13367
13476
|
"aria-hidden": "true",
|
|
13368
13477
|
className: "mobile-products-chevron",
|
|
13369
|
-
children: /* @__PURE__ */
|
|
13478
|
+
children: /* @__PURE__ */ jsx37(
|
|
13370
13479
|
MorphIcon3,
|
|
13371
13480
|
{
|
|
13372
13481
|
icon: ChevronDown,
|
|
@@ -13381,7 +13490,7 @@ function Header() {
|
|
|
13381
13490
|
]
|
|
13382
13491
|
}
|
|
13383
13492
|
),
|
|
13384
|
-
/* @__PURE__ */
|
|
13493
|
+
/* @__PURE__ */ jsx37(
|
|
13385
13494
|
"div",
|
|
13386
13495
|
{
|
|
13387
13496
|
"aria-labelledby": `mobile-products-trigger-${item.index}`,
|
|
@@ -13431,10 +13540,10 @@ function Header() {
|
|
|
13431
13540
|
setIsMenuOpen(false);
|
|
13432
13541
|
}
|
|
13433
13542
|
},
|
|
13434
|
-
/* @__PURE__ */
|
|
13543
|
+
/* @__PURE__ */ jsx37(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label })
|
|
13435
13544
|
);
|
|
13436
13545
|
}),
|
|
13437
|
-
/* @__PURE__ */
|
|
13546
|
+
/* @__PURE__ */ jsx37(Dialog5.Close, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
13438
13547
|
ExactText,
|
|
13439
13548
|
{
|
|
13440
13549
|
cmsAs: "a",
|
|
@@ -13453,9 +13562,9 @@ function Header() {
|
|
|
13453
13562
|
] })
|
|
13454
13563
|
] })
|
|
13455
13564
|
] }),
|
|
13456
|
-
/* @__PURE__ */
|
|
13457
|
-
/* @__PURE__ */
|
|
13458
|
-
/* @__PURE__ */
|
|
13565
|
+
/* @__PURE__ */ jsxs29(RightActions, { children: [
|
|
13566
|
+
/* @__PURE__ */ jsxs29("div", { children: [
|
|
13567
|
+
/* @__PURE__ */ jsx37(
|
|
13459
13568
|
LanguageSwitcher,
|
|
13460
13569
|
{
|
|
13461
13570
|
language,
|
|
@@ -13463,10 +13572,10 @@ function Header() {
|
|
|
13463
13572
|
onLanguageChange: (nextLanguage) => void i18n.changeLanguage(nextLanguage)
|
|
13464
13573
|
}
|
|
13465
13574
|
),
|
|
13466
|
-
/* @__PURE__ */
|
|
13575
|
+
/* @__PURE__ */ jsx37(ThemeToggle, { variant: "header" })
|
|
13467
13576
|
] }),
|
|
13468
|
-
/* @__PURE__ */
|
|
13469
|
-
/* @__PURE__ */
|
|
13577
|
+
/* @__PURE__ */ jsx37(ActionDivider, { "aria-hidden": "true" }),
|
|
13578
|
+
/* @__PURE__ */ jsx37(
|
|
13470
13579
|
ExactText,
|
|
13471
13580
|
{
|
|
13472
13581
|
cmsAs: LoginLink,
|
|
@@ -13478,7 +13587,7 @@ function Header() {
|
|
|
13478
13587
|
children: t("header.login")
|
|
13479
13588
|
}
|
|
13480
13589
|
),
|
|
13481
|
-
/* @__PURE__ */
|
|
13590
|
+
/* @__PURE__ */ jsx37(
|
|
13482
13591
|
ExactText,
|
|
13483
13592
|
{
|
|
13484
13593
|
cmsAs: OpenAccountButton,
|
|
@@ -13518,25 +13627,25 @@ var TitleContainer = styled28.div.withConfig({
|
|
|
13518
13627
|
]);
|
|
13519
13628
|
|
|
13520
13629
|
// src/commodity-original/components/Title/index.tsx
|
|
13521
|
-
import { jsx as
|
|
13630
|
+
import { jsx as jsx38, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
13522
13631
|
var TitleCommon = ({ title, classname, desc }) => {
|
|
13523
|
-
return /* @__PURE__ */
|
|
13524
|
-
/* @__PURE__ */
|
|
13525
|
-
desc && /* @__PURE__ */
|
|
13632
|
+
return /* @__PURE__ */ jsxs30(TitleContainer, { className: classname, children: [
|
|
13633
|
+
/* @__PURE__ */ jsx38(ExactText, { cmsAs: "h2", children: title }),
|
|
13634
|
+
desc && /* @__PURE__ */ jsx38(ExactText, { cmsAs: "p", children: desc })
|
|
13526
13635
|
] });
|
|
13527
13636
|
};
|
|
13528
13637
|
var Title_default = TitleCommon;
|
|
13529
13638
|
|
|
13530
13639
|
// src/commodity-original/components/LandingPage/AudienceSection.tsx
|
|
13531
13640
|
import { useTranslation as useTranslation17 } from "react-i18next";
|
|
13532
|
-
import { jsx as
|
|
13641
|
+
import { jsx as jsx39, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
13533
13642
|
function AudienceColumn({
|
|
13534
13643
|
items,
|
|
13535
13644
|
side
|
|
13536
13645
|
}) {
|
|
13537
|
-
return /* @__PURE__ */
|
|
13538
|
-
/* @__PURE__ */
|
|
13539
|
-
/* @__PURE__ */
|
|
13646
|
+
return /* @__PURE__ */ jsx39("div", { className: `audience-column audience-column--${side}`, children: items.map((item) => /* @__PURE__ */ jsxs31("article", { className: "speech-card", children: [
|
|
13647
|
+
/* @__PURE__ */ jsx39(ExactText, { cmsAs: "h3", children: item.title }),
|
|
13648
|
+
/* @__PURE__ */ jsx39(ExactText, { cmsAs: "p", children: item.body })
|
|
13540
13649
|
] }, item.title)) });
|
|
13541
13650
|
}
|
|
13542
13651
|
function AudienceSection() {
|
|
@@ -13554,15 +13663,15 @@ function AudienceSection() {
|
|
|
13554
13663
|
"audiencePhoneTwoImage",
|
|
13555
13664
|
"/landing-assets/audience-phones_2.webp"
|
|
13556
13665
|
);
|
|
13557
|
-
return /* @__PURE__ */
|
|
13558
|
-
/* @__PURE__ */
|
|
13666
|
+
return /* @__PURE__ */ jsx39("section", { className: "audience section", children: /* @__PURE__ */ jsxs31("div", { className: "container", children: [
|
|
13667
|
+
/* @__PURE__ */ jsx39(
|
|
13559
13668
|
Title_default,
|
|
13560
13669
|
{
|
|
13561
13670
|
classname: "audience-title",
|
|
13562
13671
|
title: t("landing.audience.title")
|
|
13563
13672
|
}
|
|
13564
13673
|
),
|
|
13565
|
-
/* @__PURE__ */
|
|
13674
|
+
/* @__PURE__ */ jsx39(
|
|
13566
13675
|
Button_default,
|
|
13567
13676
|
{
|
|
13568
13677
|
size: "sm",
|
|
@@ -13581,10 +13690,10 @@ function AudienceSection() {
|
|
|
13581
13690
|
children: t("landing.audience.cta")
|
|
13582
13691
|
}
|
|
13583
13692
|
),
|
|
13584
|
-
/* @__PURE__ */
|
|
13585
|
-
/* @__PURE__ */
|
|
13586
|
-
/* @__PURE__ */
|
|
13587
|
-
/* @__PURE__ */
|
|
13693
|
+
/* @__PURE__ */ jsxs31("div", { className: "audience-layout", children: [
|
|
13694
|
+
/* @__PURE__ */ jsx39(AudienceColumn, { items: audiences.slice(0, 2), side: "left" }),
|
|
13695
|
+
/* @__PURE__ */ jsxs31("div", { className: "audience-phones wikex-cms-image-host", children: [
|
|
13696
|
+
/* @__PURE__ */ jsx39(
|
|
13588
13697
|
Image10,
|
|
13589
13698
|
{
|
|
13590
13699
|
src: phoneOne,
|
|
@@ -13594,7 +13703,7 @@ function AudienceSection() {
|
|
|
13594
13703
|
className: "phone_1"
|
|
13595
13704
|
}
|
|
13596
13705
|
),
|
|
13597
|
-
/* @__PURE__ */
|
|
13706
|
+
/* @__PURE__ */ jsx39(
|
|
13598
13707
|
Image10,
|
|
13599
13708
|
{
|
|
13600
13709
|
src: phoneTwo,
|
|
@@ -13604,10 +13713,10 @@ function AudienceSection() {
|
|
|
13604
13713
|
className: "phone_2"
|
|
13605
13714
|
}
|
|
13606
13715
|
),
|
|
13607
|
-
/* @__PURE__ */
|
|
13608
|
-
/* @__PURE__ */
|
|
13716
|
+
/* @__PURE__ */ jsx39(CmsImageAction, { field: "audiencePhoneOneImage" }),
|
|
13717
|
+
/* @__PURE__ */ jsx39(CmsImageAction, { field: "audiencePhoneTwoImage", style: { bottom: 52 } })
|
|
13609
13718
|
] }),
|
|
13610
|
-
/* @__PURE__ */
|
|
13719
|
+
/* @__PURE__ */ jsx39(AudienceColumn, { items: audiences.slice(2), side: "right" })
|
|
13611
13720
|
] })
|
|
13612
13721
|
] }) });
|
|
13613
13722
|
}
|
|
@@ -13618,7 +13727,7 @@ import { useTranslation as useTranslation18 } from "react-i18next";
|
|
|
13618
13727
|
|
|
13619
13728
|
// src/commodity-original/components/LandingPage/BenefitIcon.tsx
|
|
13620
13729
|
import { useId as useId2 } from "react";
|
|
13621
|
-
import { jsx as
|
|
13730
|
+
import { jsx as jsx40, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
13622
13731
|
var sharedProps = {
|
|
13623
13732
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13624
13733
|
className: "benefit-icon",
|
|
@@ -13635,8 +13744,8 @@ function BenefitIcon({ name }) {
|
|
|
13635
13744
|
const isDarkTheme = themeName === "dark";
|
|
13636
13745
|
switch (name) {
|
|
13637
13746
|
case "market":
|
|
13638
|
-
return /* @__PURE__ */
|
|
13639
|
-
/* @__PURE__ */
|
|
13747
|
+
return /* @__PURE__ */ jsxs32("svg", { ...sharedProps, viewBox: "0 0 48 48", children: [
|
|
13748
|
+
/* @__PURE__ */ jsx40(
|
|
13640
13749
|
"rect",
|
|
13641
13750
|
{
|
|
13642
13751
|
x: "4",
|
|
@@ -13647,7 +13756,7 @@ function BenefitIcon({ name }) {
|
|
|
13647
13756
|
fill: "#F9BB3A"
|
|
13648
13757
|
}
|
|
13649
13758
|
),
|
|
13650
|
-
/* @__PURE__ */
|
|
13759
|
+
/* @__PURE__ */ jsx40(
|
|
13651
13760
|
"line",
|
|
13652
13761
|
{
|
|
13653
13762
|
pathLength: "1",
|
|
@@ -13660,7 +13769,7 @@ function BenefitIcon({ name }) {
|
|
|
13660
13769
|
strokeLinecap: "round"
|
|
13661
13770
|
}
|
|
13662
13771
|
),
|
|
13663
|
-
/* @__PURE__ */
|
|
13772
|
+
/* @__PURE__ */ jsx40(
|
|
13664
13773
|
"line",
|
|
13665
13774
|
{
|
|
13666
13775
|
className: "benefit-market-line benefit-market-line--1",
|
|
@@ -13674,7 +13783,7 @@ function BenefitIcon({ name }) {
|
|
|
13674
13783
|
strokeLinecap: "round"
|
|
13675
13784
|
}
|
|
13676
13785
|
),
|
|
13677
|
-
/* @__PURE__ */
|
|
13786
|
+
/* @__PURE__ */ jsx40(
|
|
13678
13787
|
"line",
|
|
13679
13788
|
{
|
|
13680
13789
|
className: "benefit-market-line benefit-market-line--3",
|
|
@@ -13688,7 +13797,7 @@ function BenefitIcon({ name }) {
|
|
|
13688
13797
|
strokeLinecap: "round"
|
|
13689
13798
|
}
|
|
13690
13799
|
),
|
|
13691
|
-
/* @__PURE__ */
|
|
13800
|
+
/* @__PURE__ */ jsx40(
|
|
13692
13801
|
"line",
|
|
13693
13802
|
{
|
|
13694
13803
|
className: "benefit-market-line benefit-market-line--2",
|
|
@@ -13704,7 +13813,7 @@ function BenefitIcon({ name }) {
|
|
|
13704
13813
|
)
|
|
13705
13814
|
] });
|
|
13706
13815
|
case "two-way":
|
|
13707
|
-
return /* @__PURE__ */
|
|
13816
|
+
return /* @__PURE__ */ jsxs32(
|
|
13708
13817
|
"svg",
|
|
13709
13818
|
{
|
|
13710
13819
|
...sharedProps,
|
|
@@ -13715,14 +13824,14 @@ function BenefitIcon({ name }) {
|
|
|
13715
13824
|
fill: "none",
|
|
13716
13825
|
className: "benefit-two-way",
|
|
13717
13826
|
children: [
|
|
13718
|
-
/* @__PURE__ */
|
|
13827
|
+
/* @__PURE__ */ jsx40(
|
|
13719
13828
|
"path",
|
|
13720
13829
|
{
|
|
13721
13830
|
d: "M26.926 27.5862V18.2759C26.926 17.5903 26.3703 17.0345 25.6847 17.0345H23.5455C22.4932 17.0345 21.9182 15.8074 22.5915 14.9988L30.7681 5.17882C31.2735 4.57188 32.2097 4.58496 32.6979 5.20578L40.4203 15.0257C41.0607 15.8402 40.4806 17.0345 39.4445 17.0345H37.2118C36.5262 17.0345 35.9704 17.5903 35.9704 18.2759V27.5862C35.9704 28.2718 35.4146 28.8276 34.729 28.8276H28.1674C27.4818 28.8276 26.926 28.2718 26.926 27.5862Z",
|
|
13722
13831
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13723
13832
|
}
|
|
13724
13833
|
),
|
|
13725
|
-
/* @__PURE__ */
|
|
13834
|
+
/* @__PURE__ */ jsx40(
|
|
13726
13835
|
"path",
|
|
13727
13836
|
{
|
|
13728
13837
|
d: "M12.0296 21.3796V30.69C12.0296 31.3756 11.4738 31.9313 10.7882 31.9313H8.64901C7.59676 31.9313 7.02173 33.1584 7.69504 33.967L15.8717 43.787C16.377 44.3939 17.3132 44.3809 17.8014 43.76L25.5238 33.9401C26.1642 33.1257 25.5841 31.9313 24.548 31.9313H22.3153C21.6297 31.9313 21.0739 31.3756 21.0739 30.69V21.3796C21.0739 20.694 20.5181 20.1382 19.8325 20.1382H13.2709C12.5853 20.1382 12.0296 20.694 12.0296 21.3796Z",
|
|
@@ -13733,7 +13842,7 @@ function BenefitIcon({ name }) {
|
|
|
13733
13842
|
}
|
|
13734
13843
|
);
|
|
13735
13844
|
case "futures":
|
|
13736
|
-
return /* @__PURE__ */
|
|
13845
|
+
return /* @__PURE__ */ jsxs32(
|
|
13737
13846
|
"svg",
|
|
13738
13847
|
{
|
|
13739
13848
|
...sharedProps,
|
|
@@ -13743,15 +13852,15 @@ function BenefitIcon({ name }) {
|
|
|
13743
13852
|
viewBox: "0 0 48 48",
|
|
13744
13853
|
fill: "none",
|
|
13745
13854
|
children: [
|
|
13746
|
-
/* @__PURE__ */
|
|
13855
|
+
/* @__PURE__ */ jsx40(
|
|
13747
13856
|
"path",
|
|
13748
13857
|
{
|
|
13749
13858
|
d: "M26.5 5.5L38.5 17.5V40.5C38.5 41.6046 37.6046 42.5 36.5 42.5H12.5C11.3954 42.5 10.5 41.6046 10.5 40.5V7.5C10.5 6.39543 11.3954 5.5 12.5 5.5H26.5Z",
|
|
13750
13859
|
fill: "#F9BB3A"
|
|
13751
13860
|
}
|
|
13752
13861
|
),
|
|
13753
|
-
/* @__PURE__ */
|
|
13754
|
-
/* @__PURE__ */
|
|
13862
|
+
/* @__PURE__ */ jsx40("path", { d: "M38.5 17.5H26.5V5.5L38.5 17.5Z", fill: isDarkTheme ? "#fff" : "#05080F" }),
|
|
13863
|
+
/* @__PURE__ */ jsx40(
|
|
13755
13864
|
"rect",
|
|
13756
13865
|
{
|
|
13757
13866
|
className: "benefit-futures-line benefit-futures-line--1",
|
|
@@ -13762,7 +13871,7 @@ function BenefitIcon({ name }) {
|
|
|
13762
13871
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13763
13872
|
}
|
|
13764
13873
|
),
|
|
13765
|
-
/* @__PURE__ */
|
|
13874
|
+
/* @__PURE__ */ jsx40(
|
|
13766
13875
|
"rect",
|
|
13767
13876
|
{
|
|
13768
13877
|
className: "benefit-futures-line benefit-futures-line--2",
|
|
@@ -13773,7 +13882,7 @@ function BenefitIcon({ name }) {
|
|
|
13773
13882
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13774
13883
|
}
|
|
13775
13884
|
),
|
|
13776
|
-
/* @__PURE__ */
|
|
13885
|
+
/* @__PURE__ */ jsx40(
|
|
13777
13886
|
"rect",
|
|
13778
13887
|
{
|
|
13779
13888
|
className: "benefit-futures-line benefit-futures-line--3",
|
|
@@ -13784,7 +13893,7 @@ function BenefitIcon({ name }) {
|
|
|
13784
13893
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13785
13894
|
}
|
|
13786
13895
|
),
|
|
13787
|
-
/* @__PURE__ */
|
|
13896
|
+
/* @__PURE__ */ jsx40(
|
|
13788
13897
|
"rect",
|
|
13789
13898
|
{
|
|
13790
13899
|
className: "benefit-futures-line benefit-futures-line--4",
|
|
@@ -13799,7 +13908,7 @@ function BenefitIcon({ name }) {
|
|
|
13799
13908
|
}
|
|
13800
13909
|
);
|
|
13801
13910
|
case "products":
|
|
13802
|
-
return /* @__PURE__ */
|
|
13911
|
+
return /* @__PURE__ */ jsxs32(
|
|
13803
13912
|
"svg",
|
|
13804
13913
|
{
|
|
13805
13914
|
...sharedProps,
|
|
@@ -13809,7 +13918,7 @@ function BenefitIcon({ name }) {
|
|
|
13809
13918
|
viewBox: "0 0 48 48",
|
|
13810
13919
|
fill: "none",
|
|
13811
13920
|
children: [
|
|
13812
|
-
/* @__PURE__ */
|
|
13921
|
+
/* @__PURE__ */ jsx40(
|
|
13813
13922
|
"path",
|
|
13814
13923
|
{
|
|
13815
13924
|
className: "benefit-product-segment benefit-product-segment--1",
|
|
@@ -13817,7 +13926,7 @@ function BenefitIcon({ name }) {
|
|
|
13817
13926
|
fill: "#F9BB3A"
|
|
13818
13927
|
}
|
|
13819
13928
|
),
|
|
13820
|
-
/* @__PURE__ */
|
|
13929
|
+
/* @__PURE__ */ jsx40(
|
|
13821
13930
|
"path",
|
|
13822
13931
|
{
|
|
13823
13932
|
className: "benefit-product-segment benefit-product-segment--2",
|
|
@@ -13825,7 +13934,7 @@ function BenefitIcon({ name }) {
|
|
|
13825
13934
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13826
13935
|
}
|
|
13827
13936
|
),
|
|
13828
|
-
/* @__PURE__ */
|
|
13937
|
+
/* @__PURE__ */ jsx40(
|
|
13829
13938
|
"path",
|
|
13830
13939
|
{
|
|
13831
13940
|
className: "benefit-product-segment benefit-product-segment--3",
|
|
@@ -13833,7 +13942,7 @@ function BenefitIcon({ name }) {
|
|
|
13833
13942
|
fill: "#F9BB3A"
|
|
13834
13943
|
}
|
|
13835
13944
|
),
|
|
13836
|
-
/* @__PURE__ */
|
|
13945
|
+
/* @__PURE__ */ jsx40(
|
|
13837
13946
|
"path",
|
|
13838
13947
|
{
|
|
13839
13948
|
className: "benefit-product-segment benefit-product-segment--4",
|
|
@@ -13845,7 +13954,7 @@ function BenefitIcon({ name }) {
|
|
|
13845
13954
|
}
|
|
13846
13955
|
);
|
|
13847
13956
|
case "leverage":
|
|
13848
|
-
return /* @__PURE__ */
|
|
13957
|
+
return /* @__PURE__ */ jsxs32(
|
|
13849
13958
|
"svg",
|
|
13850
13959
|
{
|
|
13851
13960
|
...sharedProps,
|
|
@@ -13855,7 +13964,7 @@ function BenefitIcon({ name }) {
|
|
|
13855
13964
|
viewBox: "0 0 48 48",
|
|
13856
13965
|
fill: "none",
|
|
13857
13966
|
children: [
|
|
13858
|
-
/* @__PURE__ */
|
|
13967
|
+
/* @__PURE__ */ jsx40(
|
|
13859
13968
|
"rect",
|
|
13860
13969
|
{
|
|
13861
13970
|
x: "3.49805",
|
|
@@ -13866,7 +13975,7 @@ function BenefitIcon({ name }) {
|
|
|
13866
13975
|
fill: "#F9BB3A"
|
|
13867
13976
|
}
|
|
13868
13977
|
),
|
|
13869
|
-
/* @__PURE__ */
|
|
13978
|
+
/* @__PURE__ */ jsx40(
|
|
13870
13979
|
"rect",
|
|
13871
13980
|
{
|
|
13872
13981
|
x: "6.49365",
|
|
@@ -13877,7 +13986,7 @@ function BenefitIcon({ name }) {
|
|
|
13877
13986
|
fill: "#F9BB3A"
|
|
13878
13987
|
}
|
|
13879
13988
|
),
|
|
13880
|
-
/* @__PURE__ */
|
|
13989
|
+
/* @__PURE__ */ jsx40(
|
|
13881
13990
|
"rect",
|
|
13882
13991
|
{
|
|
13883
13992
|
x: "2",
|
|
@@ -13888,15 +13997,15 @@ function BenefitIcon({ name }) {
|
|
|
13888
13997
|
fill: "#F9BB3A"
|
|
13889
13998
|
}
|
|
13890
13999
|
),
|
|
13891
|
-
/* @__PURE__ */
|
|
13892
|
-
/* @__PURE__ */
|
|
14000
|
+
/* @__PURE__ */ jsxs32("g", { className: "benefit-writing-pen", children: [
|
|
14001
|
+
/* @__PURE__ */ jsx40(
|
|
13893
14002
|
"path",
|
|
13894
14003
|
{
|
|
13895
14004
|
d: "M34.0837 39.3882L32.7452 35.373C32.3883 34.3021 33.2991 33.2361 34.4126 33.4217L38.4278 34.0909C39.556 34.279 40.0658 35.6111 39.3512 36.5042L36.6744 39.8502C35.9328 40.7772 34.4591 40.5144 34.0837 39.3882Z",
|
|
13896
14005
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13897
14006
|
}
|
|
13898
14007
|
),
|
|
13899
|
-
/* @__PURE__ */
|
|
14008
|
+
/* @__PURE__ */ jsx40(
|
|
13900
14009
|
"rect",
|
|
13901
14010
|
{
|
|
13902
14011
|
x: "37.9883",
|
|
@@ -13913,7 +14022,7 @@ function BenefitIcon({ name }) {
|
|
|
13913
14022
|
}
|
|
13914
14023
|
);
|
|
13915
14024
|
case "economy":
|
|
13916
|
-
return /* @__PURE__ */
|
|
14025
|
+
return /* @__PURE__ */ jsxs32(
|
|
13917
14026
|
"svg",
|
|
13918
14027
|
{
|
|
13919
14028
|
...sharedProps,
|
|
@@ -13923,7 +14032,7 @@ function BenefitIcon({ name }) {
|
|
|
13923
14032
|
viewBox: "0 0 48 48",
|
|
13924
14033
|
fill: "none",
|
|
13925
14034
|
children: [
|
|
13926
|
-
/* @__PURE__ */
|
|
14035
|
+
/* @__PURE__ */ jsx40("defs", { children: /* @__PURE__ */ jsx40("clipPath", { id: economyRevealId, clipPathUnits: "userSpaceOnUse", children: /* @__PURE__ */ jsx40(
|
|
13927
14036
|
"rect",
|
|
13928
14037
|
{
|
|
13929
14038
|
className: "benefit-economy-reveal",
|
|
@@ -13931,7 +14040,7 @@ function BenefitIcon({ name }) {
|
|
|
13931
14040
|
height: "48"
|
|
13932
14041
|
}
|
|
13933
14042
|
) }) }),
|
|
13934
|
-
/* @__PURE__ */
|
|
14043
|
+
/* @__PURE__ */ jsx40(
|
|
13935
14044
|
"path",
|
|
13936
14045
|
{
|
|
13937
14046
|
d: "M19.6818 23.8565L6.5 39.402H43V11.7656L28.3182 29.902L19.6818 23.8565Z",
|
|
@@ -13939,7 +14048,7 @@ function BenefitIcon({ name }) {
|
|
|
13939
14048
|
clipPath: `url(#${economyRevealId})`
|
|
13940
14049
|
}
|
|
13941
14050
|
),
|
|
13942
|
-
/* @__PURE__ */
|
|
14051
|
+
/* @__PURE__ */ jsx40(
|
|
13943
14052
|
"line",
|
|
13944
14053
|
{
|
|
13945
14054
|
x1: "5.25",
|
|
@@ -13951,7 +14060,7 @@ function BenefitIcon({ name }) {
|
|
|
13951
14060
|
strokeLinecap: "round"
|
|
13952
14061
|
}
|
|
13953
14062
|
),
|
|
13954
|
-
/* @__PURE__ */
|
|
14063
|
+
/* @__PURE__ */ jsx40(
|
|
13955
14064
|
"line",
|
|
13956
14065
|
{
|
|
13957
14066
|
x1: "5.25",
|
|
@@ -13967,7 +14076,7 @@ function BenefitIcon({ name }) {
|
|
|
13967
14076
|
}
|
|
13968
14077
|
);
|
|
13969
14078
|
case "legal":
|
|
13970
|
-
return /* @__PURE__ */
|
|
14079
|
+
return /* @__PURE__ */ jsxs32(
|
|
13971
14080
|
"svg",
|
|
13972
14081
|
{
|
|
13973
14082
|
...sharedProps,
|
|
@@ -13977,7 +14086,7 @@ function BenefitIcon({ name }) {
|
|
|
13977
14086
|
viewBox: "0 0 48 48",
|
|
13978
14087
|
fill: "none",
|
|
13979
14088
|
children: [
|
|
13980
|
-
/* @__PURE__ */
|
|
14089
|
+
/* @__PURE__ */ jsx40(
|
|
13981
14090
|
"line",
|
|
13982
14091
|
{
|
|
13983
14092
|
x1: "5.25",
|
|
@@ -13989,7 +14098,7 @@ function BenefitIcon({ name }) {
|
|
|
13989
14098
|
strokeLinecap: "round"
|
|
13990
14099
|
}
|
|
13991
14100
|
),
|
|
13992
|
-
/* @__PURE__ */
|
|
14101
|
+
/* @__PURE__ */ jsx40(
|
|
13993
14102
|
"line",
|
|
13994
14103
|
{
|
|
13995
14104
|
x1: "7.25",
|
|
@@ -14001,8 +14110,8 @@ function BenefitIcon({ name }) {
|
|
|
14001
14110
|
strokeLinecap: "round"
|
|
14002
14111
|
}
|
|
14003
14112
|
),
|
|
14004
|
-
/* @__PURE__ */
|
|
14005
|
-
/* @__PURE__ */
|
|
14113
|
+
/* @__PURE__ */ jsxs32("g", { className: "benefit-gavel", children: [
|
|
14114
|
+
/* @__PURE__ */ jsx40(
|
|
14006
14115
|
"rect",
|
|
14007
14116
|
{
|
|
14008
14117
|
x: "31.0806",
|
|
@@ -14014,7 +14123,7 @@ function BenefitIcon({ name }) {
|
|
|
14014
14123
|
fill: "#F9BB3A"
|
|
14015
14124
|
}
|
|
14016
14125
|
),
|
|
14017
|
-
/* @__PURE__ */
|
|
14126
|
+
/* @__PURE__ */ jsx40(
|
|
14018
14127
|
"rect",
|
|
14019
14128
|
{
|
|
14020
14129
|
x: "30.4731",
|
|
@@ -14025,14 +14134,14 @@ function BenefitIcon({ name }) {
|
|
|
14025
14134
|
fill: "#F9BB3A"
|
|
14026
14135
|
}
|
|
14027
14136
|
),
|
|
14028
|
-
/* @__PURE__ */
|
|
14137
|
+
/* @__PURE__ */ jsx40(
|
|
14029
14138
|
"path",
|
|
14030
14139
|
{
|
|
14031
14140
|
d: "M11.5228 19.2152C12.2194 18.6859 13.2132 18.8216 13.7425 19.5182L21.06 29.1496C21.5892 29.8462 21.4536 30.84 20.7569 31.3693L18.2341 33.286L9.00001 21.1319L11.5228 19.2152Z",
|
|
14032
14141
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
14033
14142
|
}
|
|
14034
14143
|
),
|
|
14035
|
-
/* @__PURE__ */
|
|
14144
|
+
/* @__PURE__ */ jsx40(
|
|
14036
14145
|
"path",
|
|
14037
14146
|
{
|
|
14038
14147
|
d: "M30.0569 5.95574C29.3685 6.4958 29.2483 7.49159 29.7884 8.17992L37.2548 17.6963C37.7948 18.3846 38.7906 18.5048 39.479 17.9648L41.9716 16.0091L32.5495 4.00004L30.0569 5.95574Z",
|
|
@@ -14044,7 +14153,7 @@ function BenefitIcon({ name }) {
|
|
|
14044
14153
|
}
|
|
14045
14154
|
);
|
|
14046
14155
|
case "risk":
|
|
14047
|
-
return /* @__PURE__ */
|
|
14156
|
+
return /* @__PURE__ */ jsxs32(
|
|
14048
14157
|
"svg",
|
|
14049
14158
|
{
|
|
14050
14159
|
...sharedProps,
|
|
@@ -14054,14 +14163,14 @@ function BenefitIcon({ name }) {
|
|
|
14054
14163
|
viewBox: "0 0 48 48",
|
|
14055
14164
|
fill: "none",
|
|
14056
14165
|
children: [
|
|
14057
|
-
/* @__PURE__ */
|
|
14166
|
+
/* @__PURE__ */ jsx40(
|
|
14058
14167
|
"path",
|
|
14059
14168
|
{
|
|
14060
14169
|
d: "M27.1611 7.69043C27.1654 7.69262 27.1696 7.69507 27.1738 7.69727L30.793 9.57422L40.1953 14.4492L39.2236 19.7227L36.5928 34.0059C36.1989 36.144 34.865 37.9923 32.96 39.04L27.3896 42.1035C25.2163 43.2989 22.5826 43.2989 20.4092 42.1035L14.7402 38.9863C12.8916 37.9695 11.5782 36.1965 11.1436 34.1318L10.0498 28.9346H10.0488L7 14.4492L23.8994 6L27.1611 7.69043Z",
|
|
14061
14170
|
fill: "#F9BB3A"
|
|
14062
14171
|
}
|
|
14063
14172
|
),
|
|
14064
|
-
/* @__PURE__ */
|
|
14173
|
+
/* @__PURE__ */ jsx40(
|
|
14065
14174
|
"rect",
|
|
14066
14175
|
{
|
|
14067
14176
|
className: "benefit-risk-square benefit-risk-square--2",
|
|
@@ -14072,7 +14181,7 @@ function BenefitIcon({ name }) {
|
|
|
14072
14181
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
14073
14182
|
}
|
|
14074
14183
|
),
|
|
14075
|
-
/* @__PURE__ */
|
|
14184
|
+
/* @__PURE__ */ jsx40(
|
|
14076
14185
|
"rect",
|
|
14077
14186
|
{
|
|
14078
14187
|
className: "benefit-risk-square benefit-risk-square--3",
|
|
@@ -14083,7 +14192,7 @@ function BenefitIcon({ name }) {
|
|
|
14083
14192
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
14084
14193
|
}
|
|
14085
14194
|
),
|
|
14086
|
-
/* @__PURE__ */
|
|
14195
|
+
/* @__PURE__ */ jsx40(
|
|
14087
14196
|
"rect",
|
|
14088
14197
|
{
|
|
14089
14198
|
className: "benefit-risk-square benefit-risk-square--1",
|
|
@@ -14101,20 +14210,20 @@ function BenefitIcon({ name }) {
|
|
|
14101
14210
|
}
|
|
14102
14211
|
|
|
14103
14212
|
// src/commodity-original/components/LandingPage/BenefitsSection.tsx
|
|
14104
|
-
import { jsx as
|
|
14213
|
+
import { jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
14105
14214
|
function BenefitCopy({
|
|
14106
14215
|
body,
|
|
14107
14216
|
emphasizedWords
|
|
14108
14217
|
}) {
|
|
14109
14218
|
if (!emphasizedWords?.length) {
|
|
14110
|
-
return /* @__PURE__ */
|
|
14219
|
+
return /* @__PURE__ */ jsx41(ExactText, { cmsAs: "p", children: body });
|
|
14111
14220
|
}
|
|
14112
14221
|
const pattern = new RegExp(
|
|
14113
14222
|
`(${emphasizedWords.map((word) => word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`,
|
|
14114
14223
|
"g"
|
|
14115
14224
|
);
|
|
14116
|
-
return /* @__PURE__ */
|
|
14117
|
-
(part, index) => emphasizedWords.includes(part) ? /* @__PURE__ */
|
|
14225
|
+
return /* @__PURE__ */ jsx41(ExactText, { cmsAs: "p", children: body.split(pattern).map(
|
|
14226
|
+
(part, index) => emphasizedWords.includes(part) ? /* @__PURE__ */ jsx41(ExactText, { cmsAs: "strong", children: part }, `${part}-${index}`) : part
|
|
14118
14227
|
) });
|
|
14119
14228
|
}
|
|
14120
14229
|
function BenefitsSection() {
|
|
@@ -14134,8 +14243,8 @@ function BenefitsSection() {
|
|
|
14134
14243
|
(current) => current.includes(index) ? current.filter((cardIndex) => cardIndex !== index) : [...current, index]
|
|
14135
14244
|
);
|
|
14136
14245
|
};
|
|
14137
|
-
return /* @__PURE__ */
|
|
14138
|
-
/* @__PURE__ */
|
|
14246
|
+
return /* @__PURE__ */ jsx41("section", { className: "benefits section", id: "news", children: /* @__PURE__ */ jsxs33("div", { className: "container", children: [
|
|
14247
|
+
/* @__PURE__ */ jsx41(
|
|
14139
14248
|
Title_default,
|
|
14140
14249
|
{
|
|
14141
14250
|
classname: "section-heading",
|
|
@@ -14143,26 +14252,26 @@ function BenefitsSection() {
|
|
|
14143
14252
|
desc: t("landing.benefits.description")
|
|
14144
14253
|
}
|
|
14145
14254
|
),
|
|
14146
|
-
/* @__PURE__ */
|
|
14255
|
+
/* @__PURE__ */ jsx41("div", { className: "benefit-grid", children: benefitItems.map((item, index) => {
|
|
14147
14256
|
const isExpanded = expandedCards.includes(index);
|
|
14148
14257
|
const contentId = `benefit-content-${index}`;
|
|
14149
14258
|
const title = t(`landing.benefits.cards.${index}.title`);
|
|
14150
14259
|
const body = t(`landing.benefits.cards.${index}.body`);
|
|
14151
|
-
return /* @__PURE__ */
|
|
14260
|
+
return /* @__PURE__ */ jsxs33(
|
|
14152
14261
|
"article",
|
|
14153
14262
|
{
|
|
14154
14263
|
className: `benefit-card${index >= 4 ? " benefit-card--tall" : ""}${isExpanded ? " is-expanded" : ""}`,
|
|
14155
14264
|
children: [
|
|
14156
|
-
/* @__PURE__ */
|
|
14157
|
-
/* @__PURE__ */
|
|
14158
|
-
/* @__PURE__ */
|
|
14159
|
-
/* @__PURE__ */
|
|
14265
|
+
/* @__PURE__ */ jsxs33("div", { className: "benefit-inner", children: [
|
|
14266
|
+
/* @__PURE__ */ jsx41(BenefitIcon, { name: item.icon }),
|
|
14267
|
+
/* @__PURE__ */ jsx41(ExactText, { cmsAs: "h3", children: title }),
|
|
14268
|
+
/* @__PURE__ */ jsx41(
|
|
14160
14269
|
"div",
|
|
14161
14270
|
{
|
|
14162
14271
|
className: "benefit-body",
|
|
14163
14272
|
id: contentId,
|
|
14164
14273
|
"aria-hidden": !isExpanded,
|
|
14165
|
-
children: /* @__PURE__ */
|
|
14274
|
+
children: /* @__PURE__ */ jsx41("div", { className: "benefit-body-clip", children: /* @__PURE__ */ jsx41(
|
|
14166
14275
|
BenefitCopy,
|
|
14167
14276
|
{
|
|
14168
14277
|
body,
|
|
@@ -14172,7 +14281,7 @@ function BenefitsSection() {
|
|
|
14172
14281
|
}
|
|
14173
14282
|
)
|
|
14174
14283
|
] }),
|
|
14175
|
-
/* @__PURE__ */
|
|
14284
|
+
/* @__PURE__ */ jsx41(
|
|
14176
14285
|
"button",
|
|
14177
14286
|
{
|
|
14178
14287
|
className: "benefit-toggle",
|
|
@@ -14194,7 +14303,7 @@ function BenefitsSection() {
|
|
|
14194
14303
|
// src/commodity-original/components/LandingPage/CommoditiesSection.tsx
|
|
14195
14304
|
import Image11 from "next/image.js";
|
|
14196
14305
|
import { useTranslation as useTranslation19 } from "react-i18next";
|
|
14197
|
-
import { jsx as
|
|
14306
|
+
import { jsx as jsx42, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
14198
14307
|
function CommodityProduct({
|
|
14199
14308
|
item,
|
|
14200
14309
|
groupIndex,
|
|
@@ -14205,9 +14314,9 @@ function CommodityProduct({
|
|
|
14205
14314
|
const name = t(`${key}.name`);
|
|
14206
14315
|
const imageField = `commodityGroup${groupIndex + 1}Item${itemIndex + 1}Image`;
|
|
14207
14316
|
const image2 = useCmsImage(imageField, item.image);
|
|
14208
|
-
return /* @__PURE__ */
|
|
14209
|
-
/* @__PURE__ */
|
|
14210
|
-
/* @__PURE__ */
|
|
14317
|
+
return /* @__PURE__ */ jsxs34("div", { className: "commodity-product", children: [
|
|
14318
|
+
/* @__PURE__ */ jsxs34("div", { className: `commodity-image commodity-image--${item.imageClassName} wikex-cms-image-host`, children: [
|
|
14319
|
+
/* @__PURE__ */ jsx42(
|
|
14211
14320
|
Image11,
|
|
14212
14321
|
{
|
|
14213
14322
|
className: "commodity-sprite",
|
|
@@ -14218,14 +14327,14 @@ function CommodityProduct({
|
|
|
14218
14327
|
sizes: "(max-width: 767px) 98px, 136px"
|
|
14219
14328
|
}
|
|
14220
14329
|
),
|
|
14221
|
-
/* @__PURE__ */
|
|
14330
|
+
/* @__PURE__ */ jsx42(CmsImageAction, { field: imageField })
|
|
14222
14331
|
] }),
|
|
14223
|
-
/* @__PURE__ */
|
|
14224
|
-
/* @__PURE__ */
|
|
14225
|
-
/* @__PURE__ */
|
|
14226
|
-
/* @__PURE__ */
|
|
14332
|
+
/* @__PURE__ */ jsxs34("div", { className: "commodity-copy", children: [
|
|
14333
|
+
/* @__PURE__ */ jsx42(ExactText, { cmsAs: "h3", children: name }),
|
|
14334
|
+
/* @__PURE__ */ jsx42(ExactText, { cmsAs: "p", children: t(`${key}.body`) }),
|
|
14335
|
+
/* @__PURE__ */ jsxs34("a", { href: "#register", children: [
|
|
14227
14336
|
t(`${key}.cta`),
|
|
14228
|
-
/* @__PURE__ */
|
|
14337
|
+
/* @__PURE__ */ jsx42(
|
|
14229
14338
|
Image11,
|
|
14230
14339
|
{
|
|
14231
14340
|
src: "/landing-assets/commodity-link-arrow.svg",
|
|
@@ -14241,26 +14350,26 @@ function CommodityProduct({
|
|
|
14241
14350
|
}
|
|
14242
14351
|
function CommoditiesSection() {
|
|
14243
14352
|
const { t } = useTranslation19();
|
|
14244
|
-
return /* @__PURE__ */
|
|
14245
|
-
/* @__PURE__ */
|
|
14353
|
+
return /* @__PURE__ */ jsx42("section", { className: "commodities section", id: "fees", children: /* @__PURE__ */ jsxs34("div", { className: "container", children: [
|
|
14354
|
+
/* @__PURE__ */ jsx42(
|
|
14246
14355
|
Title_default,
|
|
14247
14356
|
{
|
|
14248
14357
|
classname: "commodities-title",
|
|
14249
14358
|
title: t("landing.commodities.title")
|
|
14250
14359
|
}
|
|
14251
14360
|
),
|
|
14252
|
-
/* @__PURE__ */
|
|
14361
|
+
/* @__PURE__ */ jsx42("div", { className: "commodity-list", children: commodityGroups.map((group, groupIndex) => {
|
|
14253
14362
|
const groupTitle = t(
|
|
14254
14363
|
`landing.commodities.groups.${groupIndex}.title`
|
|
14255
14364
|
);
|
|
14256
|
-
return /* @__PURE__ */
|
|
14365
|
+
return /* @__PURE__ */ jsxs34(
|
|
14257
14366
|
"article",
|
|
14258
14367
|
{
|
|
14259
14368
|
className: `commodity-row ${group.className}`,
|
|
14260
14369
|
id: `commodity-${group.className}`,
|
|
14261
14370
|
children: [
|
|
14262
|
-
/* @__PURE__ */
|
|
14263
|
-
/* @__PURE__ */
|
|
14371
|
+
/* @__PURE__ */ jsxs34("div", { className: "commodity-label", children: [
|
|
14372
|
+
/* @__PURE__ */ jsx42(
|
|
14264
14373
|
Image11,
|
|
14265
14374
|
{
|
|
14266
14375
|
className: "commodity-label-panel",
|
|
@@ -14271,7 +14380,7 @@ function CommoditiesSection() {
|
|
|
14271
14380
|
"aria-hidden": "true"
|
|
14272
14381
|
}
|
|
14273
14382
|
),
|
|
14274
|
-
/* @__PURE__ */
|
|
14383
|
+
/* @__PURE__ */ jsx42(
|
|
14275
14384
|
Image11,
|
|
14276
14385
|
{
|
|
14277
14386
|
className: "commodity-label-tail",
|
|
@@ -14282,7 +14391,7 @@ function CommoditiesSection() {
|
|
|
14282
14391
|
"aria-hidden": "true"
|
|
14283
14392
|
}
|
|
14284
14393
|
),
|
|
14285
|
-
/* @__PURE__ */
|
|
14394
|
+
/* @__PURE__ */ jsx42(
|
|
14286
14395
|
Image11,
|
|
14287
14396
|
{
|
|
14288
14397
|
className: "commodity-label-panel-mobile",
|
|
@@ -14293,7 +14402,7 @@ function CommoditiesSection() {
|
|
|
14293
14402
|
"aria-hidden": "true"
|
|
14294
14403
|
}
|
|
14295
14404
|
),
|
|
14296
|
-
/* @__PURE__ */
|
|
14405
|
+
/* @__PURE__ */ jsx42("span", { className: "commodity-label-icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx42(
|
|
14297
14406
|
Image11,
|
|
14298
14407
|
{
|
|
14299
14408
|
src: group.icon,
|
|
@@ -14302,10 +14411,10 @@ function CommoditiesSection() {
|
|
|
14302
14411
|
height: group.iconHeight
|
|
14303
14412
|
}
|
|
14304
14413
|
) }),
|
|
14305
|
-
/* @__PURE__ */
|
|
14414
|
+
/* @__PURE__ */ jsx42(ExactText, { cmsAs: "h3", children: groupTitle })
|
|
14306
14415
|
] }),
|
|
14307
|
-
/* @__PURE__ */
|
|
14308
|
-
/* @__PURE__ */
|
|
14416
|
+
/* @__PURE__ */ jsxs34("div", { className: "commodity-carousel", children: [
|
|
14417
|
+
/* @__PURE__ */ jsx42(
|
|
14309
14418
|
"button",
|
|
14310
14419
|
{
|
|
14311
14420
|
className: "commodity-nav",
|
|
@@ -14313,7 +14422,7 @@ function CommoditiesSection() {
|
|
|
14313
14422
|
"aria-label": t("landing.commodities.previous", {
|
|
14314
14423
|
group: groupTitle
|
|
14315
14424
|
}),
|
|
14316
|
-
children: /* @__PURE__ */
|
|
14425
|
+
children: /* @__PURE__ */ jsx42(
|
|
14317
14426
|
Image11,
|
|
14318
14427
|
{
|
|
14319
14428
|
src: "/landing-assets/commodity-arrow-left.svg",
|
|
@@ -14324,7 +14433,7 @@ function CommoditiesSection() {
|
|
|
14324
14433
|
)
|
|
14325
14434
|
}
|
|
14326
14435
|
),
|
|
14327
|
-
/* @__PURE__ */
|
|
14436
|
+
/* @__PURE__ */ jsx42("div", { className: "commodity-products", children: group.items.map((item, itemIndex) => /* @__PURE__ */ jsx42(
|
|
14328
14437
|
CommodityProduct,
|
|
14329
14438
|
{
|
|
14330
14439
|
item,
|
|
@@ -14333,7 +14442,7 @@ function CommoditiesSection() {
|
|
|
14333
14442
|
},
|
|
14334
14443
|
item.imageClassName
|
|
14335
14444
|
)) }),
|
|
14336
|
-
/* @__PURE__ */
|
|
14445
|
+
/* @__PURE__ */ jsx42(
|
|
14337
14446
|
"button",
|
|
14338
14447
|
{
|
|
14339
14448
|
className: "commodity-nav",
|
|
@@ -14341,7 +14450,7 @@ function CommoditiesSection() {
|
|
|
14341
14450
|
"aria-label": t("landing.commodities.next", {
|
|
14342
14451
|
group: groupTitle
|
|
14343
14452
|
}),
|
|
14344
|
-
children: /* @__PURE__ */
|
|
14453
|
+
children: /* @__PURE__ */ jsx42(
|
|
14345
14454
|
Image11,
|
|
14346
14455
|
{
|
|
14347
14456
|
src: "/landing-assets/commodity-arrow-right.svg",
|
|
@@ -14364,7 +14473,7 @@ function CommoditiesSection() {
|
|
|
14364
14473
|
// src/commodity-original/components/LandingPage/DownloadSection.tsx
|
|
14365
14474
|
import Image12 from "next/image.js";
|
|
14366
14475
|
import { useTranslation as useTranslation20 } from "react-i18next";
|
|
14367
|
-
import { jsx as
|
|
14476
|
+
import { jsx as jsx43, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
14368
14477
|
var downloadBadges = [
|
|
14369
14478
|
{
|
|
14370
14479
|
src: "/landing-assets/footer-appstore-icon.svg",
|
|
@@ -14401,17 +14510,17 @@ function DownloadSection() {
|
|
|
14401
14510
|
"downloadPhoneImage",
|
|
14402
14511
|
"/landing-assets/download-phone.webp"
|
|
14403
14512
|
);
|
|
14404
|
-
const downloadLinks = /* @__PURE__ */
|
|
14513
|
+
const downloadLinks = /* @__PURE__ */ jsx43("div", { className: "download-links", children: downloadBadges.map((badge) => /* @__PURE__ */ jsxs35(
|
|
14405
14514
|
CmsDownloadButtonLink,
|
|
14406
14515
|
{
|
|
14407
14516
|
field: `${language}.${badge.prefixKey}`,
|
|
14408
14517
|
className: `download-badge ${badge.className}`,
|
|
14409
14518
|
"aria-label": t(badge.altKey),
|
|
14410
14519
|
children: [
|
|
14411
|
-
/* @__PURE__ */
|
|
14412
|
-
/* @__PURE__ */
|
|
14413
|
-
/* @__PURE__ */
|
|
14414
|
-
badge.name === "Google Play" ? /* @__PURE__ */
|
|
14520
|
+
/* @__PURE__ */ jsx43(Image12, { src: badge.src, alt: "", width: 28, height: 28 }),
|
|
14521
|
+
/* @__PURE__ */ jsxs35("span", { className: "download-badge-copy", children: [
|
|
14522
|
+
/* @__PURE__ */ jsx43(ExactText, { cmsAs: "small", cmsField: badge.prefixKey, children: t(badge.prefixKey) }),
|
|
14523
|
+
badge.name === "Google Play" ? /* @__PURE__ */ jsx43(
|
|
14415
14524
|
Image12,
|
|
14416
14525
|
{
|
|
14417
14526
|
className: "download-googleplay-wordmark",
|
|
@@ -14420,20 +14529,20 @@ function DownloadSection() {
|
|
|
14420
14529
|
width: 89,
|
|
14421
14530
|
height: 18
|
|
14422
14531
|
}
|
|
14423
|
-
) : /* @__PURE__ */
|
|
14532
|
+
) : /* @__PURE__ */ jsx43("strong", { children: badge.name })
|
|
14424
14533
|
] })
|
|
14425
14534
|
]
|
|
14426
14535
|
},
|
|
14427
14536
|
badge.src
|
|
14428
14537
|
)) });
|
|
14429
|
-
return /* @__PURE__ */
|
|
14430
|
-
/* @__PURE__ */
|
|
14431
|
-
/* @__PURE__ */
|
|
14432
|
-
/* @__PURE__ */
|
|
14433
|
-
/* @__PURE__ */
|
|
14434
|
-
/* @__PURE__ */
|
|
14435
|
-
/* @__PURE__ */
|
|
14436
|
-
/* @__PURE__ */
|
|
14538
|
+
return /* @__PURE__ */ jsx43("section", { className: "download section", id: "download", children: /* @__PURE__ */ jsxs35("div", { className: "container download-card", children: [
|
|
14539
|
+
/* @__PURE__ */ jsxs35("div", { className: "download-copy", children: [
|
|
14540
|
+
/* @__PURE__ */ jsx43(ExactText, { cmsAs: "h2", className: "download-mobile-title", children: t("landing.download.title") }),
|
|
14541
|
+
/* @__PURE__ */ jsxs35("div", { className: "download-offer-row", children: [
|
|
14542
|
+
/* @__PURE__ */ jsxs35("div", { className: "reward", children: [
|
|
14543
|
+
/* @__PURE__ */ jsx43(ExactText, { cmsAs: "h2", className: "download-desktop-title", children: t("landing.download.desktopTitle") }),
|
|
14544
|
+
/* @__PURE__ */ jsx43(ExactText, { cmsAs: "div", className: "reward-amount", children: reward }),
|
|
14545
|
+
/* @__PURE__ */ jsx43("span", { className: "reward-divider", "aria-hidden": "true", children: /* @__PURE__ */ jsx43(
|
|
14437
14546
|
Image12,
|
|
14438
14547
|
{
|
|
14439
14548
|
src: "/landing-assets/download-offer-divider.svg",
|
|
@@ -14442,12 +14551,12 @@ function DownloadSection() {
|
|
|
14442
14551
|
height: 18
|
|
14443
14552
|
}
|
|
14444
14553
|
) }),
|
|
14445
|
-
/* @__PURE__ */
|
|
14554
|
+
/* @__PURE__ */ jsx43(ExactText, { cmsAs: "p", children: t("landing.download.description") })
|
|
14446
14555
|
] }),
|
|
14447
|
-
/* @__PURE__ */
|
|
14448
|
-
/* @__PURE__ */
|
|
14449
|
-
/* @__PURE__ */
|
|
14450
|
-
/* @__PURE__ */
|
|
14556
|
+
/* @__PURE__ */ jsxs35("div", { className: "download-qr-links", children: [
|
|
14557
|
+
/* @__PURE__ */ jsxs35("div", { className: "download-qr wikex-cms-image-host", children: [
|
|
14558
|
+
/* @__PURE__ */ jsx43(ExactText, { cmsAs: "strong", children: t("landing.download.scan") }),
|
|
14559
|
+
/* @__PURE__ */ jsx43("span", { children: /* @__PURE__ */ jsx43(
|
|
14451
14560
|
Image12,
|
|
14452
14561
|
{
|
|
14453
14562
|
src: qrImage,
|
|
@@ -14456,21 +14565,21 @@ function DownloadSection() {
|
|
|
14456
14565
|
height: 140
|
|
14457
14566
|
}
|
|
14458
14567
|
) }),
|
|
14459
|
-
/* @__PURE__ */
|
|
14568
|
+
/* @__PURE__ */ jsx43(CmsImageAction, { field: "downloadQrImage" })
|
|
14460
14569
|
] }),
|
|
14461
14570
|
downloadLinks
|
|
14462
14571
|
] })
|
|
14463
14572
|
] })
|
|
14464
14573
|
] }),
|
|
14465
|
-
/* @__PURE__ */
|
|
14574
|
+
/* @__PURE__ */ jsxs35(
|
|
14466
14575
|
"div",
|
|
14467
14576
|
{
|
|
14468
14577
|
className: "download-devices",
|
|
14469
14578
|
role: "img",
|
|
14470
14579
|
"aria-label": t("landing.download.devicesAlt"),
|
|
14471
14580
|
children: [
|
|
14472
|
-
/* @__PURE__ */
|
|
14473
|
-
/* @__PURE__ */
|
|
14581
|
+
/* @__PURE__ */ jsxs35("div", { className: "download-laptop wikex-cms-image-host", children: [
|
|
14582
|
+
/* @__PURE__ */ jsx43(
|
|
14474
14583
|
Image12,
|
|
14475
14584
|
{
|
|
14476
14585
|
src: laptopImage,
|
|
@@ -14479,10 +14588,10 @@ function DownloadSection() {
|
|
|
14479
14588
|
sizes: "(max-width: 767px) 148vw, 879px"
|
|
14480
14589
|
}
|
|
14481
14590
|
),
|
|
14482
|
-
/* @__PURE__ */
|
|
14591
|
+
/* @__PURE__ */ jsx43(CmsImageAction, { field: "downloadLaptopImage" })
|
|
14483
14592
|
] }),
|
|
14484
|
-
/* @__PURE__ */
|
|
14485
|
-
/* @__PURE__ */
|
|
14593
|
+
/* @__PURE__ */ jsxs35("div", { className: "download-phone wikex-cms-image-host", children: [
|
|
14594
|
+
/* @__PURE__ */ jsx43(
|
|
14486
14595
|
Image12,
|
|
14487
14596
|
{
|
|
14488
14597
|
src: phoneImage,
|
|
@@ -14491,7 +14600,7 @@ function DownloadSection() {
|
|
|
14491
14600
|
sizes: "(max-width: 767px) 69vw, 408px"
|
|
14492
14601
|
}
|
|
14493
14602
|
),
|
|
14494
|
-
/* @__PURE__ */
|
|
14603
|
+
/* @__PURE__ */ jsx43(CmsImageAction, { field: "downloadPhoneImage" })
|
|
14495
14604
|
] })
|
|
14496
14605
|
]
|
|
14497
14606
|
}
|
|
@@ -14505,10 +14614,10 @@ import { Minus, Plus } from "lucide";
|
|
|
14505
14614
|
import { MorphIcon as MorphIcon4 } from "morphicons/react";
|
|
14506
14615
|
import { Collapsible } from "radix-ui";
|
|
14507
14616
|
import { useTranslation as useTranslation21 } from "react-i18next";
|
|
14508
|
-
import { jsx as
|
|
14617
|
+
import { jsx as jsx44, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
14509
14618
|
function FaqItem({ question, answer, order }) {
|
|
14510
14619
|
const [isOpen, setIsOpen] = useState15(false);
|
|
14511
|
-
return /* @__PURE__ */
|
|
14620
|
+
return /* @__PURE__ */ jsxs36(
|
|
14512
14621
|
Collapsible.Root,
|
|
14513
14622
|
{
|
|
14514
14623
|
className: "faq-item",
|
|
@@ -14516,9 +14625,9 @@ function FaqItem({ question, answer, order }) {
|
|
|
14516
14625
|
onOpenChange: setIsOpen,
|
|
14517
14626
|
style: { "--faq-order": order },
|
|
14518
14627
|
children: [
|
|
14519
|
-
/* @__PURE__ */
|
|
14520
|
-
/* @__PURE__ */
|
|
14521
|
-
/* @__PURE__ */
|
|
14628
|
+
/* @__PURE__ */ jsxs36(Collapsible.Trigger, { className: "faq-trigger", children: [
|
|
14629
|
+
/* @__PURE__ */ jsx44(ExactText, { cmsAs: "span", children: question }),
|
|
14630
|
+
/* @__PURE__ */ jsx44("span", { className: "faq-trigger-icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx44(
|
|
14522
14631
|
MorphIcon4,
|
|
14523
14632
|
{
|
|
14524
14633
|
icon: isOpen ? Minus : Plus,
|
|
@@ -14529,7 +14638,7 @@ function FaqItem({ question, answer, order }) {
|
|
|
14529
14638
|
}
|
|
14530
14639
|
) })
|
|
14531
14640
|
] }),
|
|
14532
|
-
/* @__PURE__ */
|
|
14641
|
+
/* @__PURE__ */ jsx44(Collapsible.Content, { className: "faq-content", forceMount: true, children: /* @__PURE__ */ jsx44("div", { className: "faq-content-clip", children: /* @__PURE__ */ jsx44("div", { className: "faq-answer", children: /* @__PURE__ */ jsx44(ExactText, { cmsAs: "p", children: answer }) }) }) })
|
|
14533
14642
|
]
|
|
14534
14643
|
}
|
|
14535
14644
|
);
|
|
@@ -14546,9 +14655,9 @@ function FaqSection2() {
|
|
|
14546
14655
|
faqs.slice(0, firstColumnLength),
|
|
14547
14656
|
faqs.slice(firstColumnLength)
|
|
14548
14657
|
];
|
|
14549
|
-
return /* @__PURE__ */
|
|
14550
|
-
/* @__PURE__ */
|
|
14551
|
-
/* @__PURE__ */
|
|
14658
|
+
return /* @__PURE__ */ jsx44("section", { className: "faq section", id: "faq", children: /* @__PURE__ */ jsxs36("div", { className: "container", children: [
|
|
14659
|
+
/* @__PURE__ */ jsx44(Title_default, { title: t("landing.faq.title") }),
|
|
14660
|
+
/* @__PURE__ */ jsx44("div", { className: "faq-grid", children: faqColumns.map((column, columnIndex) => /* @__PURE__ */ jsx44("div", { className: "faq-column", children: column.map((item, itemIndex) => /* @__PURE__ */ jsx44(
|
|
14552
14661
|
FaqItem,
|
|
14553
14662
|
{
|
|
14554
14663
|
...item,
|
|
@@ -14896,7 +15005,7 @@ var Background_default = DotField;
|
|
|
14896
15005
|
// src/commodity-original/components/LandingPage/HeroArt/index.tsx
|
|
14897
15006
|
import Image13 from "next/image.js";
|
|
14898
15007
|
import { useTranslation as useTranslation22 } from "react-i18next";
|
|
14899
|
-
import { jsx as
|
|
15008
|
+
import { jsx as jsx45, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
14900
15009
|
var HeroArtBlock = () => {
|
|
14901
15010
|
const { t } = useTranslation22();
|
|
14902
15011
|
const mainPhone = useCmsImage("heroMainPhoneImage", "/landing-assets/key_mock_phone.webp");
|
|
@@ -14924,11 +15033,11 @@ var HeroArtBlock = () => {
|
|
|
14924
15033
|
"heroLabelTwoMobileImage",
|
|
14925
15034
|
"/landing-assets/key_mock_2_mobile.webp"
|
|
14926
15035
|
);
|
|
14927
|
-
return /* @__PURE__ */
|
|
14928
|
-
/* @__PURE__ */
|
|
14929
|
-
/* @__PURE__ */
|
|
14930
|
-
/* @__PURE__ */
|
|
14931
|
-
/* @__PURE__ */
|
|
15036
|
+
return /* @__PURE__ */ jsxs37(HeroArt, { "data-hero-art": true, "aria-label": t("landing.hero.artAlt"), children: [
|
|
15037
|
+
/* @__PURE__ */ jsxs37(HeroImage, { className: "hero-art-desktop wikex-cms-image-host", children: [
|
|
15038
|
+
/* @__PURE__ */ jsxs37("picture", { className: "hero-phone-picture", children: [
|
|
15039
|
+
/* @__PURE__ */ jsx45("source", { media: "(max-width: 767px)", srcSet: mainPhoneMobile }),
|
|
15040
|
+
/* @__PURE__ */ jsx45(
|
|
14932
15041
|
Image13,
|
|
14933
15042
|
{
|
|
14934
15043
|
src: mainPhone,
|
|
@@ -14940,15 +15049,15 @@ var HeroArtBlock = () => {
|
|
|
14940
15049
|
}
|
|
14941
15050
|
)
|
|
14942
15051
|
] }),
|
|
14943
|
-
[1, 2].map((index) => /* @__PURE__ */
|
|
14944
|
-
/* @__PURE__ */
|
|
15052
|
+
[1, 2].map((index) => /* @__PURE__ */ jsxs37("picture", { children: [
|
|
15053
|
+
/* @__PURE__ */ jsx45(
|
|
14945
15054
|
"source",
|
|
14946
15055
|
{
|
|
14947
15056
|
media: "(max-width: 767px)",
|
|
14948
15057
|
srcSet: index === 1 ? sidePhoneOneMobile : sidePhoneTwoMobile
|
|
14949
15058
|
}
|
|
14950
15059
|
),
|
|
14951
|
-
/* @__PURE__ */
|
|
15060
|
+
/* @__PURE__ */ jsx45(
|
|
14952
15061
|
Image13,
|
|
14953
15062
|
{
|
|
14954
15063
|
src: index === 1 ? sidePhoneOne : sidePhoneTwo,
|
|
@@ -14960,35 +15069,35 @@ var HeroArtBlock = () => {
|
|
|
14960
15069
|
}
|
|
14961
15070
|
)
|
|
14962
15071
|
] }, index)),
|
|
14963
|
-
/* @__PURE__ */
|
|
15072
|
+
/* @__PURE__ */ jsx45(CmsImageAction, { field: "heroMainPhoneImage" })
|
|
14964
15073
|
] }),
|
|
14965
|
-
/* @__PURE__ */
|
|
14966
|
-
/* @__PURE__ */
|
|
14967
|
-
/* @__PURE__ */
|
|
14968
|
-
/* @__PURE__ */
|
|
15074
|
+
/* @__PURE__ */ jsxs37("span", { className: "label label-top", children: [
|
|
15075
|
+
/* @__PURE__ */ jsxs37("picture", { children: [
|
|
15076
|
+
/* @__PURE__ */ jsx45("source", { media: "(max-width: 767px)", srcSet: labelOneMobile }),
|
|
15077
|
+
/* @__PURE__ */ jsx45(Image13, { src: labelOne, alt: t("landing.hero.desktopArtAlt"), width: 556, height: 149, loading: "eager", style: { width: "100%", height: "auto" } })
|
|
14969
15078
|
] }),
|
|
14970
|
-
/* @__PURE__ */
|
|
15079
|
+
/* @__PURE__ */ jsx45(ExactText, { cmsAs: "p", children: t("landing.hero.labels.smoothTrading") })
|
|
14971
15080
|
] }),
|
|
14972
|
-
/* @__PURE__ */
|
|
14973
|
-
/* @__PURE__ */
|
|
14974
|
-
/* @__PURE__ */
|
|
14975
|
-
/* @__PURE__ */
|
|
15081
|
+
/* @__PURE__ */ jsxs37("span", { className: "label label-middle", children: [
|
|
15082
|
+
/* @__PURE__ */ jsxs37("picture", { children: [
|
|
15083
|
+
/* @__PURE__ */ jsx45("source", { media: "(max-width: 767px)", srcSet: labelTwoMobile }),
|
|
15084
|
+
/* @__PURE__ */ jsx45(Image13, { src: labelTwo, alt: t("landing.hero.desktopArtAlt"), width: 556, height: 149, loading: "eager", style: { width: "100%", height: "auto" } })
|
|
14976
15085
|
] }),
|
|
14977
|
-
/* @__PURE__ */
|
|
15086
|
+
/* @__PURE__ */ jsx45(ExactText, { cmsAs: "p", children: t("landing.hero.labels.advancedTechnology") })
|
|
14978
15087
|
] }),
|
|
14979
|
-
/* @__PURE__ */
|
|
14980
|
-
/* @__PURE__ */
|
|
14981
|
-
/* @__PURE__ */
|
|
14982
|
-
/* @__PURE__ */
|
|
15088
|
+
/* @__PURE__ */ jsxs37("span", { className: "label label-bottom", children: [
|
|
15089
|
+
/* @__PURE__ */ jsxs37("picture", { children: [
|
|
15090
|
+
/* @__PURE__ */ jsx45("source", { media: "(max-width: 767px)", srcSet: labelTwoMobile }),
|
|
15091
|
+
/* @__PURE__ */ jsx45(Image13, { src: labelTwo, alt: t("landing.hero.desktopArtAlt"), width: 556, height: 149, loading: "eager", style: { width: "100%", height: "auto" } })
|
|
14983
15092
|
] }),
|
|
14984
|
-
/* @__PURE__ */
|
|
15093
|
+
/* @__PURE__ */ jsx45(ExactText, { cmsAs: "p", children: t("landing.hero.labels.riskControl") })
|
|
14985
15094
|
] })
|
|
14986
15095
|
] });
|
|
14987
15096
|
};
|
|
14988
15097
|
var HeroArt_default = HeroArtBlock;
|
|
14989
15098
|
|
|
14990
15099
|
// src/commodity-original/components/LandingPage/HeroSection.tsx
|
|
14991
|
-
import { jsx as
|
|
15100
|
+
import { jsx as jsx46, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
14992
15101
|
function HeroSection2() {
|
|
14993
15102
|
const { t } = useTranslation23();
|
|
14994
15103
|
const background = useCmsImage(
|
|
@@ -15003,8 +15112,8 @@ function HeroSection2() {
|
|
|
15003
15112
|
"--wikex-hero-background": `url("${background}")`,
|
|
15004
15113
|
"--wikex-hero-mobile-background": `url("${mobileBackground}")`
|
|
15005
15114
|
};
|
|
15006
|
-
return /* @__PURE__ */
|
|
15007
|
-
/* @__PURE__ */
|
|
15115
|
+
return /* @__PURE__ */ jsxs38(Hero, { id: "keyvisual", className: "wikex-cms-image-host", style: heroStyle, children: [
|
|
15116
|
+
/* @__PURE__ */ jsx46(
|
|
15008
15117
|
Background_default,
|
|
15009
15118
|
{
|
|
15010
15119
|
className: "hero-dot-field",
|
|
@@ -15022,11 +15131,11 @@ function HeroSection2() {
|
|
|
15022
15131
|
glowColor: "transparent"
|
|
15023
15132
|
}
|
|
15024
15133
|
),
|
|
15025
|
-
/* @__PURE__ */
|
|
15026
|
-
/* @__PURE__ */
|
|
15027
|
-
/* @__PURE__ */
|
|
15028
|
-
/* @__PURE__ */
|
|
15029
|
-
/* @__PURE__ */
|
|
15134
|
+
/* @__PURE__ */ jsxs38(HeroInner, { children: [
|
|
15135
|
+
/* @__PURE__ */ jsxs38(HeroCopy, { "data-hero-copy": true, children: [
|
|
15136
|
+
/* @__PURE__ */ jsx46(ExactText, { cmsAs: HeroTitle, children: t("landing.hero.title") }),
|
|
15137
|
+
/* @__PURE__ */ jsx46(ExactText, { cmsAs: "p", children: t("landing.hero.description") }),
|
|
15138
|
+
/* @__PURE__ */ jsx46(
|
|
15030
15139
|
Button_default,
|
|
15031
15140
|
{
|
|
15032
15141
|
size: "sm",
|
|
@@ -15045,14 +15154,14 @@ function HeroSection2() {
|
|
|
15045
15154
|
children: t("landing.hero.cta")
|
|
15046
15155
|
}
|
|
15047
15156
|
),
|
|
15048
|
-
/* @__PURE__ */
|
|
15157
|
+
/* @__PURE__ */ jsx46(HeroMetrics, { children: /* @__PURE__ */ jsx46("div", { className: "hero-metrics-track", children: [false, true].map((isDuplicate) => /* @__PURE__ */ jsxs38(
|
|
15049
15158
|
"div",
|
|
15050
15159
|
{
|
|
15051
15160
|
className: `hero-metrics-group${isDuplicate ? " hero-metrics-group--duplicate" : ""}`,
|
|
15052
15161
|
"aria-hidden": isDuplicate || void 0,
|
|
15053
15162
|
children: [
|
|
15054
|
-
/* @__PURE__ */
|
|
15055
|
-
/* @__PURE__ */
|
|
15163
|
+
/* @__PURE__ */ jsxs38(HeroMetric, { children: [
|
|
15164
|
+
/* @__PURE__ */ jsxs38(
|
|
15056
15165
|
"svg",
|
|
15057
15166
|
{
|
|
15058
15167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15061,21 +15170,21 @@ function HeroSection2() {
|
|
|
15061
15170
|
viewBox: "0 0 60 29",
|
|
15062
15171
|
fill: "none",
|
|
15063
15172
|
children: [
|
|
15064
|
-
/* @__PURE__ */
|
|
15173
|
+
/* @__PURE__ */ jsx46(
|
|
15065
15174
|
"path",
|
|
15066
15175
|
{
|
|
15067
15176
|
d: "M55.1951 2.77154C55.0977 2.77154 55.0725 2.21901 55.1658 2.12585C55.198 2.09354 55.6537 2.06712 56.1784 2.06712H57.1322V2.41933C57.1322 2.81152 57.0428 2.87386 56.911 2.57343C56.8572 2.45094 56.7316 2.36465 56.5819 2.34748L56.3398 2.31957V3.32865C56.3398 4.16973 56.3164 4.34663 56.1998 4.39136C56.1227 4.42094 56.0237 4.42279 55.9796 4.39558C55.9355 4.36838 55.8995 3.8928 55.8995 3.33869C55.8995 2.40243 55.8875 2.33128 55.7296 2.33128C55.5529 2.33128 55.2831 2.54789 55.2831 2.68974C55.2831 2.73474 55.2435 2.77154 55.1951 2.77154Z",
|
|
15068
15177
|
fill: "#150958"
|
|
15069
15178
|
}
|
|
15070
15179
|
),
|
|
15071
|
-
/* @__PURE__ */
|
|
15180
|
+
/* @__PURE__ */ jsx46(
|
|
15072
15181
|
"path",
|
|
15073
15182
|
{
|
|
15074
15183
|
d: "M57.2271 3.50485C57.3159 3.02892 57.3903 2.51073 57.3925 2.35329C57.3958 2.11009 57.4285 2.06712 57.6102 2.06712C57.8301 2.06712 57.8514 2.10675 58.283 3.32187C58.3475 3.50352 58.4221 3.65154 58.4487 3.65092C58.5107 3.64943 59.0694 2.323 59.0694 2.17719C59.0694 1.99774 59.5092 2.04141 59.5126 2.22121C59.5141 2.30592 59.57 2.81099 59.6368 3.34353C59.7594 4.32127 59.7397 4.43935 59.4531 4.44322C59.3315 4.44481 59.2782 4.23709 59.1967 3.44338L59.1346 2.83846L58.8153 3.61843C58.384 4.67172 58.2856 4.67348 57.9124 3.63481L57.618 2.81557L57.5151 3.5929C57.404 4.43177 57.3806 4.49112 57.1908 4.4183C57.084 4.37727 57.0894 4.24299 57.2271 3.50485Z",
|
|
15075
15184
|
fill: "#150958"
|
|
15076
15185
|
}
|
|
15077
15186
|
),
|
|
15078
|
-
/* @__PURE__ */
|
|
15187
|
+
/* @__PURE__ */ jsx46(
|
|
15079
15188
|
"path",
|
|
15080
15189
|
{
|
|
15081
15190
|
fillRule: "evenodd",
|
|
@@ -15087,10 +15196,10 @@ function HeroSection2() {
|
|
|
15087
15196
|
]
|
|
15088
15197
|
}
|
|
15089
15198
|
),
|
|
15090
|
-
/* @__PURE__ */
|
|
15199
|
+
/* @__PURE__ */ jsx46(ExactText, { cmsAs: "strong", children: t("landing.hero.metrics.member") })
|
|
15091
15200
|
] }),
|
|
15092
|
-
/* @__PURE__ */
|
|
15093
|
-
/* @__PURE__ */
|
|
15201
|
+
/* @__PURE__ */ jsxs38(HeroMetric, { children: [
|
|
15202
|
+
/* @__PURE__ */ jsxs38(
|
|
15094
15203
|
"svg",
|
|
15095
15204
|
{
|
|
15096
15205
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15099,7 +15208,7 @@ function HeroSection2() {
|
|
|
15099
15208
|
viewBox: "0 0 48 48",
|
|
15100
15209
|
fill: "none",
|
|
15101
15210
|
children: [
|
|
15102
|
-
/* @__PURE__ */
|
|
15211
|
+
/* @__PURE__ */ jsx46(
|
|
15103
15212
|
"path",
|
|
15104
15213
|
{
|
|
15105
15214
|
d: "M40.9995 12.5L29.0463 28.3399L21.5248 22.9674L12.9995 32.5001",
|
|
@@ -15109,7 +15218,7 @@ function HeroSection2() {
|
|
|
15109
15218
|
strokeLinejoin: "round"
|
|
15110
15219
|
}
|
|
15111
15220
|
),
|
|
15112
|
-
/* @__PURE__ */
|
|
15221
|
+
/* @__PURE__ */ jsx46(
|
|
15113
15222
|
"line",
|
|
15114
15223
|
{
|
|
15115
15224
|
x1: "4.4",
|
|
@@ -15121,7 +15230,7 @@ function HeroSection2() {
|
|
|
15121
15230
|
strokeLinecap: "round"
|
|
15122
15231
|
}
|
|
15123
15232
|
),
|
|
15124
|
-
/* @__PURE__ */
|
|
15233
|
+
/* @__PURE__ */ jsx46(
|
|
15125
15234
|
"line",
|
|
15126
15235
|
{
|
|
15127
15236
|
x1: "4.4",
|
|
@@ -15136,10 +15245,10 @@ function HeroSection2() {
|
|
|
15136
15245
|
]
|
|
15137
15246
|
}
|
|
15138
15247
|
),
|
|
15139
|
-
/* @__PURE__ */
|
|
15248
|
+
/* @__PURE__ */ jsx46(ExactText, { cmsAs: "strong", children: t("landing.hero.metrics.realtime") })
|
|
15140
15249
|
] }),
|
|
15141
|
-
/* @__PURE__ */
|
|
15142
|
-
/* @__PURE__ */
|
|
15250
|
+
/* @__PURE__ */ jsxs38(HeroMetric, { children: [
|
|
15251
|
+
/* @__PURE__ */ jsxs38(
|
|
15143
15252
|
"svg",
|
|
15144
15253
|
{
|
|
15145
15254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15148,14 +15257,14 @@ function HeroSection2() {
|
|
|
15148
15257
|
viewBox: "0 0 48 48",
|
|
15149
15258
|
fill: "none",
|
|
15150
15259
|
children: [
|
|
15151
|
-
/* @__PURE__ */
|
|
15260
|
+
/* @__PURE__ */ jsx46(
|
|
15152
15261
|
"path",
|
|
15153
15262
|
{
|
|
15154
15263
|
d: "M24.0801 3.33984C26.6224 3.33993 29.9834 4.22275 32.7236 6.45703C35.3768 8.62049 37.404 12.0181 37.5703 16.9736C39.2344 17.325 40.9537 18.3559 41.8281 19.6602C43.7806 22.1275 44.1485 24.7303 43.8398 26.9268C43.535 29.0954 42.5714 30.8804 41.8232 31.8086L41.8008 31.8369L41.7754 31.8623C40.3818 33.3027 38.8874 34.0358 37.5127 34.2471C37.3138 35.307 36.6732 36.5434 35.3662 37.5479C33.8506 38.7125 31.4918 39.5291 27.9775 39.4971C27.8899 39.9691 27.7256 40.3821 27.4883 40.7354C27.1252 41.2754 26.6345 41.6224 26.1416 41.8428C25.1888 42.2683 24.1307 42.2598 23.6826 42.2598C22.7738 42.2598 22.0237 42.2095 21.4131 42.0898C20.8033 41.9703 20.2786 41.7716 19.8662 41.4365C18.9985 40.7313 18.9168 39.6663 18.917 38.6855C18.9172 37.8134 19.0545 37.0868 19.3438 36.498C19.6402 35.8948 20.0763 35.4774 20.5908 35.2041C21.5492 34.6954 22.7656 34.7139 23.6826 34.7139C25.2371 34.7139 26.33 35.0233 27.0361 35.8291C27.5418 36.4063 27.7611 37.1631 27.915 37.9072C31.229 37.9501 33.232 37.1843 34.3984 36.2881C35.2581 35.6273 35.6922 34.8756 35.8779 34.2529C34.2506 33.9953 32.8168 32.8769 32.8164 31.3105V20.1143L32.8203 20.0762C32.9394 18.845 33.4676 17.9328 34.3135 17.3916C34.8177 17.0691 35.3912 16.9065 35.9766 16.8574C35.7861 12.4473 33.9818 9.53306 31.7197 7.68848C29.2973 5.71334 26.3034 4.92782 24.0801 4.92773C18.5788 4.9278 15.3521 7.18572 13.5176 9.8916C11.9613 12.1872 11.3783 14.8523 11.334 16.8525C11.9488 16.8926 12.5534 17.0535 13.082 17.3916C13.928 17.9327 14.4561 18.845 14.5752 20.0762L14.5791 20.1143V31.3105C14.5787 32.8993 13.1041 34.0294 11.4482 34.2656C9.70884 34.5135 7.56637 33.874 5.62012 31.8623L5.59473 31.8369L5.57227 31.8086C4.82411 30.8804 3.8605 29.0954 3.55566 26.9268C3.24701 24.7303 3.61491 22.1275 5.56738 19.6602C6.42764 18.377 8.1055 17.3575 9.74414 16.9902C9.76446 14.6993 10.4093 11.646 12.2031 9C14.3401 5.84806 18.0644 3.33991 24.0801 3.33984ZM23.6826 36.3027C22.6438 36.3027 21.8739 36.3219 21.3359 36.6074C21.1028 36.7313 20.9119 36.9095 20.7695 37.1992C20.62 37.5039 20.505 37.97 20.5049 38.6855C20.5047 39.69 20.6366 40.0159 20.8682 40.2041C21.0055 40.3156 21.2523 40.4398 21.7188 40.5312C22.185 40.6226 22.8192 40.6709 23.6826 40.6709C24.1611 40.6709 24.8909 40.6615 25.4932 40.3926C25.7774 40.2656 26.0068 40.0906 26.1689 39.8496C26.3229 39.6206 26.4496 39.2792 26.46 38.7539C26.2717 37.7469 26.14 37.2166 25.8418 36.876C25.5909 36.5897 25.0803 36.3028 23.6826 36.3027ZM12.2266 18.7295C11.8295 18.4756 11.2491 18.3726 10.5361 18.4619C9.07861 18.6446 7.50917 19.5741 6.8584 20.583L6.83691 20.6152L6.81348 20.6455C5.16927 22.7231 4.87146 24.8725 5.12891 26.7051C5.38704 28.5417 6.20433 30.0479 6.78711 30.7832C8.42931 32.4674 10.0724 32.8567 11.2246 32.6924C12.4651 32.5153 12.9898 31.7868 12.9902 31.3105V20.2012C12.9051 19.385 12.5877 18.9606 12.2266 18.7295ZM36.8594 18.4619C36.1465 18.3727 35.566 18.4756 35.1689 18.7295C34.8079 18.9606 34.4904 19.3851 34.4053 20.2012V31.3105C34.4057 31.7868 34.9305 32.5152 36.1709 32.6924C37.323 32.8567 38.9662 32.4673 40.6084 30.7832C41.1912 30.0479 42.0085 28.5417 42.2666 26.7051C42.524 24.8725 42.2262 22.7231 40.582 20.6455L40.5586 20.6152L40.5371 20.583C39.8863 19.5741 38.3169 18.6446 36.8594 18.4619Z",
|
|
15155
15264
|
fill: "black"
|
|
15156
15265
|
}
|
|
15157
15266
|
),
|
|
15158
|
-
/* @__PURE__ */
|
|
15267
|
+
/* @__PURE__ */ jsx46(
|
|
15159
15268
|
"path",
|
|
15160
15269
|
{
|
|
15161
15270
|
d: "M24.0801 3.33984L24.0801 2.83984H24.0801L24.0801 3.33984ZM32.7236 6.45703L33.0396 6.06953L33.0396 6.06952L32.7236 6.45703ZM37.5703 16.9736L37.0706 16.9904L37.0837 17.3819L37.467 17.4628L37.5703 16.9736ZM41.8281 19.6602L41.4128 19.9386L41.4238 19.955L41.436 19.9704L41.8281 19.6602ZM43.8398 26.9268L44.335 26.9964L44.335 26.9963L43.8398 26.9268ZM41.8232 31.8086L41.4339 31.4948L41.4315 31.4979L41.8232 31.8086ZM41.8008 31.8369L42.1543 32.1905L42.1747 32.1701L42.1925 32.1476L41.8008 31.8369ZM41.7754 31.8623L41.4218 31.5087L41.416 31.5146L41.7754 31.8623ZM37.5127 34.2471L37.4367 33.7529L37.0866 33.8067L37.0213 34.1549L37.5127 34.2471ZM35.3662 37.5479L35.6709 37.9443L35.6709 37.9443L35.3662 37.5479ZM27.9775 39.4971L27.9821 38.9971L27.5625 38.9933L27.4859 39.4058L27.9775 39.4971ZM27.4883 40.7354L27.9032 41.0143L27.9033 41.0142L27.4883 40.7354ZM26.1416 41.8428L26.3455 42.2993L26.3456 42.2992L26.1416 41.8428ZM23.6826 42.2598L23.6826 42.7598H23.6826L23.6826 42.2598ZM21.4131 42.0898L21.3169 42.5805L21.317 42.5805L21.4131 42.0898ZM19.8662 41.4365L19.5509 41.8245L19.5509 41.8246L19.8662 41.4365ZM18.917 38.6855L18.417 38.6854V38.6855L18.917 38.6855ZM19.3438 36.498L18.895 36.2775L18.895 36.2776L19.3438 36.498ZM20.5908 35.2041L20.3564 34.7625L20.3563 34.7625L20.5908 35.2041ZM23.6826 34.7139L23.6826 34.2139H23.6826L23.6826 34.7139ZM27.0361 35.8291L27.4122 35.4996L27.4122 35.4996L27.0361 35.8291ZM27.915 37.9072L27.4254 38.0085L27.5068 38.402L27.9086 38.4072L27.915 37.9072ZM34.3984 36.2881L34.7031 36.6846L34.7031 36.6845L34.3984 36.2881ZM35.8779 34.2529L36.3571 34.3958L36.5204 33.8484L35.9561 33.7591L35.8779 34.2529ZM32.8164 31.3105H32.3164V31.3107L32.8164 31.3105ZM32.8164 20.1143L32.319 20.0632L32.3164 20.0887V20.1143H32.8164ZM32.8203 20.0762L33.3177 20.1272L33.318 20.1243L32.8203 20.0762ZM34.3135 17.3916L34.0441 16.9704L34.044 16.9704L34.3135 17.3916ZM35.9766 16.8574L36.0183 17.3557L36.4968 17.3156L36.4761 16.8358L35.9766 16.8574ZM31.7197 7.68848L32.0357 7.30098L32.0357 7.30096L31.7197 7.68848ZM24.0801 4.92773L24.0801 4.42773H24.0801L24.0801 4.92773ZM13.5176 9.8916L13.1037 9.61102L13.1037 9.61104L13.5176 9.8916ZM11.334 16.8525L10.8341 16.8415L10.8235 17.3203L11.3015 17.3515L11.334 16.8525ZM13.082 17.3916L13.3515 16.9704L13.3514 16.9704L13.082 17.3916ZM14.5752 20.0762L14.0775 20.1243L14.0778 20.1272L14.5752 20.0762ZM14.5791 20.1143H15.0791V20.0887L15.0765 20.0632L14.5791 20.1143ZM14.5791 31.3105L15.0791 31.3107V31.3105H14.5791ZM11.4482 34.2656L11.5188 34.7606L11.5189 34.7606L11.4482 34.2656ZM5.62012 31.8623L5.97951 31.5146L5.97367 31.5088L5.62012 31.8623ZM5.59473 31.8369L5.20298 32.1476L5.22084 32.1701L5.24117 32.1905L5.59473 31.8369ZM5.57227 31.8086L5.96403 31.4979L5.96156 31.4948L5.57227 31.8086ZM3.55566 26.9268L3.06053 26.9963L3.06053 26.9964L3.55566 26.9268ZM5.56738 19.6602L5.95947 19.9704L5.97171 19.955L5.98268 19.9386L5.56738 19.6602ZM9.74414 16.9902L9.8535 17.4781L10.2406 17.3914L10.2441 16.9947L9.74414 16.9902ZM12.2031 9L11.7893 8.71942L11.7893 8.71943L12.2031 9ZM23.6826 36.3027L23.6826 35.8027H23.6826L23.6826 36.3027ZM21.3359 36.6074L21.1015 36.1658L21.1014 36.1659L21.3359 36.6074ZM20.7695 37.1992L20.3208 36.9787L20.3207 36.9789L20.7695 37.1992ZM20.5049 38.6855L20.0049 38.6854V38.6855L20.5049 38.6855ZM20.8682 40.2041L20.5528 40.5921L20.553 40.5923L20.8682 40.2041ZM21.7188 40.5312L21.6226 41.0219L21.6226 41.0219L21.7188 40.5312ZM23.6826 40.6709L23.6826 41.1709H23.6826L23.6826 40.6709ZM25.4932 40.3926L25.697 40.8491L25.6972 40.8491L25.4932 40.3926ZM26.1689 39.8496L26.5838 40.1287L26.584 40.1285L26.1689 39.8496ZM26.46 38.7539L26.9599 38.7637L26.9609 38.7125L26.9514 38.662L26.46 38.7539ZM25.8418 36.876L26.218 36.5466L26.2178 36.5464L25.8418 36.876ZM12.2266 18.7295L12.4961 18.3083L12.4959 18.3083L12.2266 18.7295ZM10.5361 18.4619L10.474 17.9658L10.474 17.9658L10.5361 18.4619ZM6.8584 20.583L7.27447 20.8604L7.27858 20.854L6.8584 20.583ZM6.83691 20.6152L7.23228 20.9213L7.24312 20.9073L7.25294 20.8926L6.83691 20.6152ZM6.81348 20.6455L7.20557 20.9558L7.20884 20.9516L6.81348 20.6455ZM5.12891 26.7051L4.63377 26.7746L4.63377 26.7747L5.12891 26.7051ZM6.78711 30.7832L6.39525 31.0938L6.4112 31.1139L6.42912 31.1323L6.78711 30.7832ZM11.2246 32.6924L11.2952 33.1874L11.2953 33.1874L11.2246 32.6924ZM12.9902 31.3105L13.4902 31.311V31.3105H12.9902ZM12.9902 20.2012H13.4902V20.1752L13.4875 20.1493L12.9902 20.2012ZM36.8594 18.4619L36.9216 17.9658L36.9215 17.9658L36.8594 18.4619ZM35.1689 18.7295L34.8996 18.3083L34.8994 18.3084L35.1689 18.7295ZM34.4053 20.2012L33.908 20.1493L33.9053 20.1752V20.2012H34.4053ZM34.4053 31.3105H33.9053V31.311L34.4053 31.3105ZM36.1709 32.6924L36.1002 33.1874L36.1003 33.1874L36.1709 32.6924ZM40.6084 30.7832L40.9664 31.1323L40.9843 31.1139L41.0003 31.0938L40.6084 30.7832ZM42.2666 26.7051L42.7617 26.7747L42.7617 26.7746L42.2666 26.7051ZM40.582 20.6455L40.1866 20.9516L40.19 20.9558L40.582 20.6455ZM40.5586 20.6152L40.1426 20.8926L40.1524 20.9073L40.1632 20.9213L40.5586 20.6152ZM40.5371 20.583L40.1169 20.8541L40.1211 20.8604L40.5371 20.583ZM24.0801 3.33984L24.0801 3.83984C26.5221 3.83993 29.7675 4.69187 32.4077 6.84454L32.7236 6.45703L33.0396 6.06952C30.1993 3.75362 26.7227 2.83994 24.0801 2.83984L24.0801 3.33984ZM32.7236 6.45703L32.4077 6.84453C34.9482 8.91615 36.9091 12.1782 37.0706 16.9904L37.5703 16.9736L38.07 16.9569C37.8989 11.8579 35.8054 8.32483 33.0396 6.06953L32.7236 6.45703ZM37.5703 16.9736L37.467 17.4628C39.0314 17.7931 40.6254 18.7641 41.4128 19.9386L41.8281 19.6602L42.2434 19.3817C41.282 17.9477 39.4374 16.8568 37.6736 16.4844L37.5703 16.9736ZM41.8281 19.6602L41.436 19.9704C43.2914 22.315 43.6373 24.7751 43.3447 26.8572L43.8398 26.9268L44.335 26.9963C44.6597 24.6856 44.2698 21.94 42.2202 19.3499L41.8281 19.6602ZM43.8398 26.9268L43.3447 26.8572C43.0535 28.9287 42.1304 30.6307 41.4339 31.4948L41.8232 31.8086L42.2125 32.1224C43.0124 31.13 44.0165 29.262 44.335 26.9964L43.8398 26.9268ZM41.8232 31.8086L41.4315 31.4979L41.409 31.5262L41.8008 31.8369L42.1925 32.1476L42.215 32.1193L41.8232 31.8086ZM41.8008 31.8369L41.4472 31.4834L41.4218 31.5088L41.7754 31.8623L42.1289 32.2159L42.1543 32.1905L41.8008 31.8369ZM41.7754 31.8623L41.416 31.5146C40.0888 32.8865 38.6906 33.5602 37.4367 33.7529L37.5127 34.2471L37.5887 34.7413C39.0842 34.5114 40.6749 33.7189 42.1347 32.21L41.7754 31.8623ZM37.5127 34.2471L37.0213 34.1549C36.8451 35.0936 36.2711 36.2218 35.0615 37.1514L35.3662 37.5479L35.6709 37.9443C37.0752 36.865 37.7825 35.5204 38.0041 34.3393L37.5127 34.2471ZM35.3662 37.5479L35.0616 37.1514C33.6588 38.2293 31.4197 39.0284 27.9821 38.9971L27.9775 39.4971L27.973 39.9971C31.564 40.0298 34.0424 39.1957 35.6709 37.9443L35.3662 37.5479ZM27.9775 39.4971L27.4859 39.4058C27.4094 39.8181 27.2685 40.1658 27.0732 40.4565L27.4883 40.7354L27.9033 41.0142C28.1826 40.5984 28.3704 40.1202 28.4691 39.5883L27.9775 39.4971ZM27.4883 40.7354L27.0733 40.4564C26.7736 40.9023 26.365 41.1953 25.9376 41.3863L26.1416 41.8428L26.3456 42.2992C26.9041 42.0496 27.4769 41.6485 27.9032 41.0143L27.4883 40.7354ZM26.1416 41.8428L25.9377 41.3862C25.0947 41.7627 24.139 41.7598 23.6826 41.7598L23.6826 42.2598L23.6826 42.7598C24.1225 42.7598 25.2829 42.7739 26.3455 42.2993L26.1416 41.8428ZM23.6826 42.2598L23.6826 41.7598C22.7881 41.7598 22.0744 41.7099 21.5092 41.5992L21.4131 42.0898L21.317 42.5805C21.9731 42.709 22.7595 42.7598 23.6826 42.7598L23.6826 42.2598ZM21.4131 42.0898L21.5093 41.5992C20.9446 41.4885 20.5073 41.3132 20.1815 41.0485L19.8662 41.4365L19.5509 41.8246C20.0498 42.23 20.6621 42.4522 21.3169 42.5805L21.4131 42.0898ZM19.8662 41.4365L20.1816 41.0485C19.5139 40.5059 19.4168 39.6733 19.417 38.6856L18.917 38.6855L18.417 38.6855C18.4168 39.6593 18.4831 40.9568 19.5509 41.8245L19.8662 41.4365ZM18.917 38.6855L19.417 38.6856C19.4172 37.8624 19.5473 37.2177 19.7925 36.7185L19.3438 36.498L18.895 36.2776C18.5618 36.956 18.4172 37.7643 18.417 38.6854L18.917 38.6855ZM19.3438 36.498L19.7925 36.7186C20.0403 36.2143 20.3991 35.8721 20.8253 35.6457L20.5908 35.2041L20.3563 34.7625C19.7535 35.0826 19.2401 35.5753 18.895 36.2775L19.3438 36.498ZM20.5908 35.2041L20.8252 35.6458C21.6519 35.207 22.7298 35.2139 23.6826 35.2139L23.6826 34.7139L23.6826 34.2139C22.8013 34.2139 21.4464 34.1839 20.3564 34.7625L20.5908 35.2041ZM23.6826 34.7139L23.6826 35.2139C25.1882 35.2139 26.0974 35.5165 26.6601 36.1586L27.0361 35.8291L27.4122 35.4996C26.5626 34.53 25.286 34.2139 23.6826 34.2139L23.6826 34.7139ZM27.0361 35.8291L26.66 36.1586C27.0743 36.6315 27.2739 37.276 27.4254 38.0085L27.915 37.9072L28.4047 37.806C28.2484 37.0502 28.0093 36.1812 27.4122 35.4996L27.0361 35.8291ZM27.915 37.9072L27.9086 38.4072C31.2994 38.4511 33.4229 37.6682 34.7031 36.6846L34.3984 36.2881L34.0938 35.8916C33.0411 36.7005 31.1586 37.4492 27.9215 37.4073L27.915 37.9072ZM34.3984 36.2881L34.7031 36.6845C35.6467 35.9592 36.1415 35.1186 36.3571 34.3958L35.8779 34.2529L35.3988 34.11C35.2429 34.6326 34.8695 35.2953 34.0937 35.8917L34.3984 36.2881ZM35.8779 34.2529L35.9561 33.7591C34.4518 33.5209 33.3167 32.5265 33.3164 31.3104L32.8164 31.3105L32.3164 31.3107C32.3169 33.2273 34.0495 34.4697 35.7997 34.7468L35.8779 34.2529ZM32.8164 31.3105H33.3164V20.1143H32.8164H32.3164V31.3105H32.8164ZM32.8164 20.1143L33.3138 20.1653L33.3177 20.1272L32.8203 20.0762L32.3229 20.0252L32.319 20.0632L32.8164 20.1143ZM32.8203 20.0762L33.318 20.1243C33.425 19.0176 33.8886 18.257 34.5829 17.8128L34.3135 17.3916L34.044 16.9704C33.0466 17.6085 32.4538 18.6725 32.3226 20.028L32.8203 20.0762ZM34.3135 17.3916L34.5828 17.8128C35.0053 17.5427 35.4965 17.3994 36.0183 17.3557L35.9766 16.8574L35.9348 16.3592C35.2858 16.4136 34.6302 16.5956 34.0441 16.9704L34.3135 17.3916ZM35.9766 16.8574L36.4761 16.8358C36.2795 12.2832 34.4084 9.23575 32.0357 7.30098L31.7197 7.68848L31.4037 8.07597C33.5552 9.83037 35.2927 12.6115 35.477 16.879L35.9766 16.8574ZM31.7197 7.68848L32.0357 7.30096C29.5133 5.24433 26.4039 4.42783 24.0801 4.42773L24.0801 4.92773L24.0801 5.42773C26.203 5.42782 29.0813 6.18236 31.4038 8.07599L31.7197 7.68848ZM24.0801 4.92773L24.0801 4.42773C18.4168 4.4278 15.0334 6.76477 13.1037 9.61102L13.5176 9.8916L13.9314 10.1722C15.6708 7.60668 18.7407 5.42779 24.0801 5.42773L24.0801 4.92773ZM13.5176 9.8916L13.1037 9.61104C11.4827 12.0022 10.8801 14.7662 10.8341 16.8415L11.334 16.8525L11.8339 16.8636C11.8765 14.9384 12.44 12.3722 13.9314 10.1722L13.5176 9.8916ZM11.334 16.8525L11.3015 17.3515C11.8522 17.3874 12.3704 17.53 12.8127 17.8128L13.082 17.3916L13.3514 16.9704C12.7364 16.5771 12.0454 16.3979 11.3665 16.3536L11.334 16.8525ZM13.082 17.3916L12.8126 17.8128C13.507 18.257 13.9705 19.0175 14.0775 20.1243L14.5752 20.0762L15.0729 20.028C14.9418 18.6724 14.349 17.6085 13.3515 16.9704L13.082 17.3916ZM14.5752 20.0762L14.0778 20.1272L14.0817 20.1653L14.5791 20.1143L15.0765 20.0632L15.0726 20.0252L14.5752 20.0762ZM14.5791 20.1143H14.0791V31.3105H14.5791H15.0791V20.1143H14.5791ZM14.5791 31.3105L14.0791 31.3104C14.0788 32.5441 12.9095 33.5521 11.3776 33.7706L11.4482 34.2656L11.5189 34.7606C13.2988 34.5067 15.0787 33.2544 15.0791 31.3107L14.5791 31.3105ZM11.4482 34.2656L11.3777 33.7706C9.82162 33.9924 7.83287 33.4303 5.97947 31.5146L5.62012 31.8623L5.26077 32.21C7.29987 34.3176 9.59606 35.0347 11.5188 34.7606L11.4482 34.2656ZM5.62012 31.8623L5.97367 31.5088L5.94828 31.4834L5.59473 31.8369L5.24117 32.1905L5.26656 32.2159L5.62012 31.8623ZM5.59473 31.8369L5.98648 31.5262L5.96401 31.4979L5.57227 31.8086L5.18052 32.1193L5.20298 32.1476L5.59473 31.8369ZM5.57227 31.8086L5.96156 31.4948C5.26506 30.6307 4.34199 28.9287 4.0508 26.8572L3.55566 26.9268L3.06053 26.9964C3.37902 29.262 4.38316 31.13 5.18297 32.1224L5.57227 31.8086ZM3.55566 26.9268L4.0508 26.8572C3.75822 24.7751 4.10415 22.315 5.95947 19.9704L5.56738 19.6602L5.17529 19.3499C3.12567 21.94 2.73581 24.6856 3.06053 26.9963L3.55566 26.9268ZM5.56738 19.6602L5.98268 19.9386C6.7571 18.7835 8.31201 17.8237 9.8535 17.4781L9.74414 16.9902L9.63478 16.5023C7.89899 16.8914 6.09818 17.9705 5.15208 19.3817L5.56738 19.6602ZM9.74414 16.9902L10.2441 16.9947C10.2638 14.7816 10.889 11.8294 12.617 9.28057L12.2031 9L11.7893 8.71943C9.9296 11.4625 9.26517 14.617 9.24416 16.9858L9.74414 16.9902ZM12.2031 9L12.617 9.28058C14.6587 6.26909 18.2263 3.83991 24.0801 3.83984L24.0801 3.33984L24.0801 2.83984C17.9025 2.83991 14.0215 5.42702 11.7893 8.71942L12.2031 9ZM23.6826 36.3027L23.6826 35.8027C23.1659 35.8027 22.6889 35.8071 22.2698 35.8507C21.8506 35.8942 21.4514 35.9801 21.1015 36.1658L21.3359 36.6074L21.5703 37.0491C21.7585 36.9492 22.0133 36.8827 22.3732 36.8453C22.7333 36.8079 23.1606 36.8027 23.6826 36.8027L23.6826 36.3027ZM21.3359 36.6074L21.1014 36.1659C20.78 36.3366 20.5118 36.59 20.3208 36.9787L20.7695 37.1992L21.2183 37.4197C21.312 37.229 21.4255 37.126 21.5705 37.049L21.3359 36.6074ZM20.7695 37.1992L20.3207 36.9789C20.1274 37.3727 20.005 37.9202 20.0049 38.6854L20.5049 38.6855L21.0049 38.6856C21.005 38.0197 21.1125 37.6352 21.2184 37.4195L20.7695 37.1992ZM20.5049 38.6855L20.0049 38.6855C20.0047 39.6814 20.1206 40.2409 20.5528 40.5921L20.8682 40.2041L21.1835 39.8161C21.1525 39.7909 21.0047 39.6985 21.0049 38.6856L20.5049 38.6855ZM20.8682 40.2041L20.553 40.5923C20.7767 40.7739 21.1109 40.9216 21.6226 41.0219L21.7188 40.5312L21.8149 40.0406C21.3937 39.958 21.2342 39.8572 21.1833 39.8159L20.8682 40.2041ZM21.7188 40.5312L21.6226 41.0219C22.1347 41.1222 22.8054 41.1709 23.6826 41.1709L23.6826 40.6709L23.6826 40.1709C22.8329 40.1709 22.2354 40.123 21.8149 40.0406L21.7188 40.5312ZM23.6826 40.6709L23.6826 41.1709C24.1501 41.1709 24.984 41.1676 25.697 40.8491L25.4932 40.3926L25.2893 39.936C24.7978 40.1555 24.1721 40.1709 23.6826 40.1709L23.6826 40.6709ZM25.4932 40.3926L25.6972 40.8491C26.0477 40.6924 26.3587 40.4632 26.5838 40.1287L26.1689 39.8496L25.7541 39.5705C25.6549 39.718 25.5071 39.8387 25.2892 39.9361L25.4932 40.3926ZM26.1689 39.8496L26.584 40.1285C26.7999 39.8071 26.948 39.3686 26.9599 38.7637L26.46 38.7539L25.9601 38.7441C25.9513 39.1898 25.8458 39.434 25.7539 39.5707L26.1689 39.8496ZM26.46 38.7539L26.9514 38.662C26.8576 38.1599 26.773 37.7489 26.6695 37.4164C26.5646 37.0795 26.4304 36.7892 26.218 36.5466L25.8418 36.876L25.4656 37.2053C25.5514 37.3033 25.6321 37.4485 25.7147 37.7137C25.7987 37.9833 25.8741 38.3409 25.9685 38.8458L26.46 38.7539ZM25.8418 36.876L26.2178 36.5464C25.8241 36.0971 25.1307 35.8028 23.6826 35.8027L23.6826 36.3027L23.6826 36.8027C25.0299 36.8028 25.3577 37.0823 25.4658 37.2055L25.8418 36.876ZM12.2266 18.7295L12.4959 18.3083C11.9675 17.9703 11.2568 17.8678 10.474 17.9658L10.5361 18.4619L10.5983 18.958C11.2414 18.8775 11.6916 18.9809 11.9572 19.1507L12.2266 18.7295ZM10.5361 18.4619L10.474 17.9658C9.66847 18.0667 8.84801 18.3707 8.14343 18.7804C7.44272 19.1877 6.81898 19.7217 6.43822 20.312L6.8584 20.583L7.27858 20.854C7.54859 20.4354 8.03496 20.0001 8.64604 19.6449C9.25325 19.2918 9.94627 19.0398 10.5983 18.958L10.5361 18.4619ZM6.8584 20.583L6.44237 20.3057L6.42089 20.3379L6.83691 20.6152L7.25294 20.8926L7.27442 20.8604L6.8584 20.583ZM6.83691 20.6152L6.44155 20.3091L6.41811 20.3394L6.81348 20.6455L7.20884 20.9516L7.23228 20.9213L6.83691 20.6152ZM6.81348 20.6455L6.4214 20.3352C4.68017 22.5354 4.36022 24.8275 4.63377 26.7746L5.12891 26.7051L5.62404 26.6355C5.3827 24.9176 5.65837 22.9108 7.20555 20.9558L6.81348 20.6455ZM5.12891 26.7051L4.63377 26.7747C4.90545 28.7076 5.76265 30.2956 6.39525 31.0938L6.78711 30.7832L7.17897 30.4726C6.64601 29.8002 5.86863 28.3757 5.62404 26.6355L5.12891 26.7051ZM6.78711 30.7832L6.42912 31.1323C8.16482 32.9124 9.96131 33.3776 11.2952 33.1874L11.2246 32.6924L11.154 32.1974C10.1836 32.3358 8.69381 32.0225 7.1451 30.4341L6.78711 30.7832ZM11.2246 32.6924L11.2953 33.1874C12.6787 32.9898 13.4895 32.1277 13.4902 31.311L12.9902 31.3105L12.4902 31.3101C12.4901 31.446 12.2515 32.0407 11.1539 32.1974L11.2246 32.6924ZM12.9902 31.3105H13.4902V20.2012H12.9902H12.4902V31.3105H12.9902ZM12.9902 20.2012L13.4875 20.1493C13.3894 19.2082 13.0061 18.6347 12.4961 18.3083L12.2266 18.7295L11.9571 19.1506C12.1692 19.2864 12.4208 19.5619 12.4929 20.2531L12.9902 20.2012ZM36.8594 18.4619L36.9215 17.9658C36.1388 17.8678 35.428 17.9703 34.8996 18.3083L35.1689 18.7295L35.4383 19.1507C35.7039 18.9809 36.1542 18.8775 36.7973 18.958L36.8594 18.4619ZM35.1689 18.7295L34.8994 18.3084C34.3895 18.6347 34.0062 19.2082 33.908 20.1493L34.4053 20.2012L34.9026 20.2531C34.9747 19.562 35.2263 19.2864 35.4385 19.1506L35.1689 18.7295ZM34.4053 20.2012H33.9053V31.3105H34.4053H34.9053V20.2012H34.4053ZM34.4053 31.3105L33.9053 31.311C33.906 32.1277 34.717 32.9898 36.1002 33.1874L36.1709 32.6924L36.2416 32.1974C35.144 32.0406 34.9054 31.4459 34.9053 31.3101L34.4053 31.3105ZM36.1709 32.6924L36.1003 33.1874C37.4342 33.3776 39.2307 32.9123 40.9664 31.1323L40.6084 30.7832L40.2504 30.4341C38.7017 32.0224 37.2119 32.3358 36.2415 32.1974L36.1709 32.6924ZM40.6084 30.7832L41.0003 31.0938C41.6329 30.2956 42.4901 28.7076 42.7617 26.7747L42.2666 26.7051L41.7715 26.6355C41.5269 28.3757 40.7495 29.8002 40.2165 30.4726L40.6084 30.7832ZM42.2666 26.7051L42.7617 26.7746C43.0353 24.8275 42.7153 22.5354 40.9741 20.3352L40.582 20.6455L40.19 20.9558C41.7371 22.9108 42.0128 24.9176 41.7715 26.6355L42.2666 26.7051ZM40.582 20.6455L40.9774 20.3394L40.954 20.3091L40.5586 20.6152L40.1632 20.9213L40.1867 20.9516L40.582 20.6455ZM40.5586 20.6152L40.9746 20.3379L40.9531 20.3057L40.5371 20.583L40.1211 20.8604L40.1426 20.8926L40.5586 20.6152ZM40.5371 20.583L40.9573 20.312C40.5765 19.7217 39.9528 19.1877 39.2521 18.7804C38.5475 18.3707 37.727 18.0667 36.9216 17.9658L36.8594 18.4619L36.7972 18.958C37.4492 19.0398 38.1422 19.2919 38.7494 19.6449C39.3605 20.0002 39.8469 20.4354 40.1169 20.854L40.5371 20.583Z",
|
|
@@ -15165,16 +15274,16 @@ function HeroSection2() {
|
|
|
15165
15274
|
]
|
|
15166
15275
|
}
|
|
15167
15276
|
),
|
|
15168
|
-
/* @__PURE__ */
|
|
15277
|
+
/* @__PURE__ */ jsx46(ExactText, { cmsAs: "strong", children: t("landing.hero.metrics.experts") })
|
|
15169
15278
|
] })
|
|
15170
15279
|
]
|
|
15171
15280
|
},
|
|
15172
15281
|
isDuplicate ? "duplicate" : "primary"
|
|
15173
15282
|
)) }) })
|
|
15174
15283
|
] }),
|
|
15175
|
-
/* @__PURE__ */
|
|
15284
|
+
/* @__PURE__ */ jsx46(HeroArt_default, {})
|
|
15176
15285
|
] }),
|
|
15177
|
-
/* @__PURE__ */
|
|
15286
|
+
/* @__PURE__ */ jsx46(CmsImageAction, { field: "heroBackgroundImage" })
|
|
15178
15287
|
] });
|
|
15179
15288
|
}
|
|
15180
15289
|
|
|
@@ -15246,7 +15355,7 @@ function FloatingActions() {
|
|
|
15246
15355
|
import Image15 from "next/image.js";
|
|
15247
15356
|
import { useRef as useRef9, useState as useState16 } from "react";
|
|
15248
15357
|
import { useTranslation as useTranslation25 } from "react-i18next";
|
|
15249
|
-
import { jsx as
|
|
15358
|
+
import { jsx as jsx47, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
15250
15359
|
function PositionMedia({
|
|
15251
15360
|
slide,
|
|
15252
15361
|
imageAlt,
|
|
@@ -15255,14 +15364,14 @@ function PositionMedia({
|
|
|
15255
15364
|
}) {
|
|
15256
15365
|
const image2 = useCmsImage(imageField, slide.image);
|
|
15257
15366
|
if (slide.mediaType === "bot") {
|
|
15258
|
-
return /* @__PURE__ */
|
|
15367
|
+
return /* @__PURE__ */ jsxs39(
|
|
15259
15368
|
"div",
|
|
15260
15369
|
{
|
|
15261
15370
|
className: "position-media position-media--bot wikex-cms-image-host",
|
|
15262
15371
|
role: "img",
|
|
15263
15372
|
"aria-label": imageAlt,
|
|
15264
15373
|
children: [
|
|
15265
|
-
/* @__PURE__ */
|
|
15374
|
+
/* @__PURE__ */ jsx47(
|
|
15266
15375
|
Image15,
|
|
15267
15376
|
{
|
|
15268
15377
|
src: image2,
|
|
@@ -15274,20 +15383,20 @@ function PositionMedia({
|
|
|
15274
15383
|
decoding: "async"
|
|
15275
15384
|
}
|
|
15276
15385
|
),
|
|
15277
|
-
/* @__PURE__ */
|
|
15386
|
+
/* @__PURE__ */ jsx47(CmsImageAction, { field: imageField })
|
|
15278
15387
|
]
|
|
15279
15388
|
}
|
|
15280
15389
|
);
|
|
15281
15390
|
}
|
|
15282
15391
|
if (slide.mediaType === "platforms") {
|
|
15283
|
-
return /* @__PURE__ */
|
|
15392
|
+
return /* @__PURE__ */ jsxs39(
|
|
15284
15393
|
"div",
|
|
15285
15394
|
{
|
|
15286
15395
|
className: "position-media position-media--platforms wikex-cms-image-host",
|
|
15287
15396
|
role: "img",
|
|
15288
15397
|
"aria-label": imageAlt,
|
|
15289
15398
|
children: [
|
|
15290
|
-
/* @__PURE__ */
|
|
15399
|
+
/* @__PURE__ */ jsx47(
|
|
15291
15400
|
Image15,
|
|
15292
15401
|
{
|
|
15293
15402
|
src: image2,
|
|
@@ -15299,13 +15408,13 @@ function PositionMedia({
|
|
|
15299
15408
|
decoding: "async"
|
|
15300
15409
|
}
|
|
15301
15410
|
),
|
|
15302
|
-
/* @__PURE__ */
|
|
15411
|
+
/* @__PURE__ */ jsx47(CmsImageAction, { field: imageField })
|
|
15303
15412
|
]
|
|
15304
15413
|
}
|
|
15305
15414
|
);
|
|
15306
15415
|
}
|
|
15307
|
-
return /* @__PURE__ */
|
|
15308
|
-
/* @__PURE__ */
|
|
15416
|
+
return /* @__PURE__ */ jsxs39("div", { className: `position-media ${slide.mediaClassName} wikex-cms-image-host`, children: [
|
|
15417
|
+
/* @__PURE__ */ jsx47(
|
|
15309
15418
|
Image15,
|
|
15310
15419
|
{
|
|
15311
15420
|
src: image2,
|
|
@@ -15317,7 +15426,7 @@ function PositionMedia({
|
|
|
15317
15426
|
decoding: "async"
|
|
15318
15427
|
}
|
|
15319
15428
|
),
|
|
15320
|
-
/* @__PURE__ */
|
|
15429
|
+
/* @__PURE__ */ jsx47(CmsImageAction, { field: imageField })
|
|
15321
15430
|
] });
|
|
15322
15431
|
}
|
|
15323
15432
|
function PositionSection() {
|
|
@@ -15380,23 +15489,23 @@ function PositionSection() {
|
|
|
15380
15489
|
(current) => current.includes(index) ? current.filter((cardIndex) => cardIndex !== index) : [...current, index]
|
|
15381
15490
|
);
|
|
15382
15491
|
};
|
|
15383
|
-
return /* @__PURE__ */
|
|
15384
|
-
/* @__PURE__ */
|
|
15492
|
+
return /* @__PURE__ */ jsx47("section", { className: "position section", children: /* @__PURE__ */ jsxs39("div", { className: "container", children: [
|
|
15493
|
+
/* @__PURE__ */ jsx47(
|
|
15385
15494
|
Title_default,
|
|
15386
15495
|
{
|
|
15387
15496
|
title: t("landing.position.title"),
|
|
15388
15497
|
classname: "position-title"
|
|
15389
15498
|
}
|
|
15390
15499
|
),
|
|
15391
|
-
/* @__PURE__ */
|
|
15392
|
-
/* @__PURE__ */
|
|
15500
|
+
/* @__PURE__ */ jsxs39("div", { className: "position-stage", children: [
|
|
15501
|
+
/* @__PURE__ */ jsx47(
|
|
15393
15502
|
"button",
|
|
15394
15503
|
{
|
|
15395
15504
|
className: "position-nav position-button-prev",
|
|
15396
15505
|
type: "button",
|
|
15397
15506
|
"aria-label": t("common.previous"),
|
|
15398
15507
|
onClick: () => moveDesktop(-1),
|
|
15399
|
-
children: /* @__PURE__ */
|
|
15508
|
+
children: /* @__PURE__ */ jsx47(
|
|
15400
15509
|
Image15,
|
|
15401
15510
|
{
|
|
15402
15511
|
src: "/landing-assets/position-arrow-left.svg",
|
|
@@ -15407,7 +15516,7 @@ function PositionSection() {
|
|
|
15407
15516
|
)
|
|
15408
15517
|
}
|
|
15409
15518
|
),
|
|
15410
|
-
/* @__PURE__ */
|
|
15519
|
+
/* @__PURE__ */ jsx47("div", { className: "position-slider-shell", children: /* @__PURE__ */ jsx47(
|
|
15411
15520
|
"div",
|
|
15412
15521
|
{
|
|
15413
15522
|
className: "position-swiper",
|
|
@@ -15418,27 +15527,27 @@ function PositionSection() {
|
|
|
15418
15527
|
if (event.key === "ArrowRight") moveDesktop(1);
|
|
15419
15528
|
},
|
|
15420
15529
|
tabIndex: 0,
|
|
15421
|
-
children: /* @__PURE__ */
|
|
15530
|
+
children: /* @__PURE__ */ jsx47("div", { className: "swiper-wrapper", children: slides.map((slide, index) => {
|
|
15422
15531
|
const key = `landing.position.slides.${index}`;
|
|
15423
15532
|
const isActive = index === desktopActiveSlide;
|
|
15424
|
-
return /* @__PURE__ */
|
|
15533
|
+
return /* @__PURE__ */ jsx47(
|
|
15425
15534
|
"div",
|
|
15426
15535
|
{
|
|
15427
15536
|
className: `swiper-slide${isActive ? " swiper-slide-active" : ""}`,
|
|
15428
15537
|
"aria-hidden": !isActive,
|
|
15429
|
-
children: /* @__PURE__ */
|
|
15538
|
+
children: /* @__PURE__ */ jsxs39(
|
|
15430
15539
|
"article",
|
|
15431
15540
|
{
|
|
15432
15541
|
className: `position-card position-card--${slide.mediaType}`,
|
|
15433
15542
|
children: [
|
|
15434
|
-
/* @__PURE__ */
|
|
15435
|
-
/* @__PURE__ */
|
|
15436
|
-
/* @__PURE__ */
|
|
15437
|
-
/* @__PURE__ */
|
|
15438
|
-
/* @__PURE__ */
|
|
15543
|
+
/* @__PURE__ */ jsxs39("div", { className: "position-copy", children: [
|
|
15544
|
+
/* @__PURE__ */ jsx47("div", { className: "position-ribbon", children: /* @__PURE__ */ jsx47(ExactText, { cmsAs: "h3", children: t(`${key}.title`) }) }),
|
|
15545
|
+
/* @__PURE__ */ jsxs39("div", { className: "position-description", children: [
|
|
15546
|
+
/* @__PURE__ */ jsx47(ExactText, { cmsAs: "p", children: t(`${key}.paragraphs.0`) }),
|
|
15547
|
+
/* @__PURE__ */ jsx47(ExactText, { cmsAs: "p", children: t(`${key}.paragraphs.1`) })
|
|
15439
15548
|
] })
|
|
15440
15549
|
] }),
|
|
15441
|
-
/* @__PURE__ */
|
|
15550
|
+
/* @__PURE__ */ jsx47(
|
|
15442
15551
|
PositionMedia,
|
|
15443
15552
|
{
|
|
15444
15553
|
slide,
|
|
@@ -15455,14 +15564,14 @@ function PositionSection() {
|
|
|
15455
15564
|
}) })
|
|
15456
15565
|
}
|
|
15457
15566
|
) }),
|
|
15458
|
-
/* @__PURE__ */
|
|
15567
|
+
/* @__PURE__ */ jsx47(
|
|
15459
15568
|
"button",
|
|
15460
15569
|
{
|
|
15461
15570
|
className: "position-nav position-button-next",
|
|
15462
15571
|
type: "button",
|
|
15463
15572
|
"aria-label": t("common.next"),
|
|
15464
15573
|
onClick: () => moveDesktop(1),
|
|
15465
|
-
children: /* @__PURE__ */
|
|
15574
|
+
children: /* @__PURE__ */ jsx47(
|
|
15466
15575
|
Image15,
|
|
15467
15576
|
{
|
|
15468
15577
|
src: "/landing-assets/position-arrow-right.svg",
|
|
@@ -15474,8 +15583,8 @@ function PositionSection() {
|
|
|
15474
15583
|
}
|
|
15475
15584
|
)
|
|
15476
15585
|
] }),
|
|
15477
|
-
/* @__PURE__ */
|
|
15478
|
-
/* @__PURE__ */
|
|
15586
|
+
/* @__PURE__ */ jsxs39("div", { className: "position-mobile-carousel", children: [
|
|
15587
|
+
/* @__PURE__ */ jsx47(
|
|
15479
15588
|
"div",
|
|
15480
15589
|
{
|
|
15481
15590
|
ref: mobileCarouselRef,
|
|
@@ -15502,36 +15611,36 @@ function PositionSection() {
|
|
|
15502
15611
|
);
|
|
15503
15612
|
setMobileSlide(nearest.index);
|
|
15504
15613
|
},
|
|
15505
|
-
children: /* @__PURE__ */
|
|
15614
|
+
children: /* @__PURE__ */ jsx47("div", { className: "swiper-wrapper", children: slides.map((slide, index) => {
|
|
15506
15615
|
const isExpanded = expandedMobileCards.includes(index);
|
|
15507
15616
|
const contentId = `position-mobile-content-${index}`;
|
|
15508
15617
|
const key = `landing.position.slides.${index}`;
|
|
15509
15618
|
const title = t(`${key}.title`);
|
|
15510
|
-
return /* @__PURE__ */
|
|
15619
|
+
return /* @__PURE__ */ jsx47(
|
|
15511
15620
|
"div",
|
|
15512
15621
|
{
|
|
15513
15622
|
className: `swiper-slide${index === mobileSlide ? " swiper-slide-active" : ""}`,
|
|
15514
15623
|
"data-position-mobile-slide": index,
|
|
15515
|
-
children: /* @__PURE__ */
|
|
15624
|
+
children: /* @__PURE__ */ jsx47(
|
|
15516
15625
|
"article",
|
|
15517
15626
|
{
|
|
15518
15627
|
className: `position-mobile-card position-mobile-card--${slide.mediaType}${isExpanded ? " is-expanded" : ""}`,
|
|
15519
|
-
children: /* @__PURE__ */
|
|
15520
|
-
/* @__PURE__ */
|
|
15521
|
-
/* @__PURE__ */
|
|
15522
|
-
/* @__PURE__ */
|
|
15523
|
-
/* @__PURE__ */
|
|
15628
|
+
children: /* @__PURE__ */ jsxs39("div", { className: "position-mobile-card-surface", children: [
|
|
15629
|
+
/* @__PURE__ */ jsxs39("div", { className: "position-copy", children: [
|
|
15630
|
+
/* @__PURE__ */ jsx47("div", { className: "position-ribbon", children: /* @__PURE__ */ jsx47(ExactText, { cmsAs: "h3", children: title }) }),
|
|
15631
|
+
/* @__PURE__ */ jsxs39("div", { className: "position-mobile-description", children: [
|
|
15632
|
+
/* @__PURE__ */ jsxs39(
|
|
15524
15633
|
"div",
|
|
15525
15634
|
{
|
|
15526
15635
|
className: "position-mobile-description-copy",
|
|
15527
15636
|
id: contentId,
|
|
15528
15637
|
children: [
|
|
15529
|
-
/* @__PURE__ */
|
|
15530
|
-
/* @__PURE__ */
|
|
15638
|
+
/* @__PURE__ */ jsx47(ExactText, { cmsAs: "p", children: t(`${key}.paragraphs.0`) }),
|
|
15639
|
+
/* @__PURE__ */ jsx47(ExactText, { cmsAs: "p", children: t(`${key}.paragraphs.1`) })
|
|
15531
15640
|
]
|
|
15532
15641
|
}
|
|
15533
15642
|
),
|
|
15534
|
-
/* @__PURE__ */
|
|
15643
|
+
/* @__PURE__ */ jsx47(
|
|
15535
15644
|
"button",
|
|
15536
15645
|
{
|
|
15537
15646
|
className: "position-mobile-toggle",
|
|
@@ -15540,7 +15649,7 @@ function PositionSection() {
|
|
|
15540
15649
|
"aria-controls": contentId,
|
|
15541
15650
|
"aria-label": `${isExpanded ? t("common.collapse") : t("common.fullContent")}: ${title}`,
|
|
15542
15651
|
onClick: () => toggleMobileCard(index),
|
|
15543
|
-
children: /* @__PURE__ */
|
|
15652
|
+
children: /* @__PURE__ */ jsx47(
|
|
15544
15653
|
Image15,
|
|
15545
15654
|
{
|
|
15546
15655
|
src: "/landing-assets/position-chevron.svg",
|
|
@@ -15554,7 +15663,7 @@ function PositionSection() {
|
|
|
15554
15663
|
)
|
|
15555
15664
|
] })
|
|
15556
15665
|
] }),
|
|
15557
|
-
/* @__PURE__ */
|
|
15666
|
+
/* @__PURE__ */ jsx47(
|
|
15558
15667
|
PositionMedia,
|
|
15559
15668
|
{
|
|
15560
15669
|
slide,
|
|
@@ -15572,7 +15681,7 @@ function PositionSection() {
|
|
|
15572
15681
|
}) })
|
|
15573
15682
|
}
|
|
15574
15683
|
),
|
|
15575
|
-
/* @__PURE__ */
|
|
15684
|
+
/* @__PURE__ */ jsx47("div", { className: "position-mobile-pagination", children: slides.map((_slide, index) => /* @__PURE__ */ jsx47(
|
|
15576
15685
|
"button",
|
|
15577
15686
|
{
|
|
15578
15687
|
className: `position-dot${index === mobileSlide ? " is-active" : ""}`,
|
|
@@ -15584,7 +15693,7 @@ function PositionSection() {
|
|
|
15584
15693
|
`mobile-dot-${index}`
|
|
15585
15694
|
)) })
|
|
15586
15695
|
] }),
|
|
15587
|
-
/* @__PURE__ */
|
|
15696
|
+
/* @__PURE__ */ jsx47("div", { className: "position-pagination", children: slides.map((_slide, index) => /* @__PURE__ */ jsx47(
|
|
15588
15697
|
"button",
|
|
15589
15698
|
{
|
|
15590
15699
|
className: `position-dot${index === desktopActiveSlide ? " is-active" : ""}`,
|
|
@@ -15601,7 +15710,7 @@ function PositionSection() {
|
|
|
15601
15710
|
// src/commodity-original/components/LandingPage/StepsSection.tsx
|
|
15602
15711
|
import Image16 from "next/image.js";
|
|
15603
15712
|
import { useTranslation as useTranslation26 } from "react-i18next";
|
|
15604
|
-
import { jsx as
|
|
15713
|
+
import { jsx as jsx48, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
15605
15714
|
function StepsSection() {
|
|
15606
15715
|
const { t } = useTranslation26();
|
|
15607
15716
|
const { themeName } = useAppTheme();
|
|
@@ -15609,7 +15718,7 @@ function StepsSection() {
|
|
|
15609
15718
|
const stepIcons = [
|
|
15610
15719
|
{
|
|
15611
15720
|
id: "account",
|
|
15612
|
-
icon: /* @__PURE__ */
|
|
15721
|
+
icon: /* @__PURE__ */ jsxs40(
|
|
15613
15722
|
"svg",
|
|
15614
15723
|
{
|
|
15615
15724
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15618,7 +15727,7 @@ function StepsSection() {
|
|
|
15618
15727
|
viewBox: "0 0 48 48",
|
|
15619
15728
|
fill: "none",
|
|
15620
15729
|
children: [
|
|
15621
|
-
/* @__PURE__ */
|
|
15730
|
+
/* @__PURE__ */ jsx48(
|
|
15622
15731
|
"path",
|
|
15623
15732
|
{
|
|
15624
15733
|
d: "M30 35.625L33.5182 38.4315C33.9219 38.7536 34.5046 38.7152 34.8626 38.3429L40 33",
|
|
@@ -15627,14 +15736,14 @@ function StepsSection() {
|
|
|
15627
15736
|
strokeLinecap: "round"
|
|
15628
15737
|
}
|
|
15629
15738
|
),
|
|
15630
|
-
/* @__PURE__ */
|
|
15739
|
+
/* @__PURE__ */ jsx48(
|
|
15631
15740
|
"path",
|
|
15632
15741
|
{
|
|
15633
15742
|
d: "M28 6C30.7614 6 33 8.23858 33 11V26.0469C27.3936 26.5522 23 31.262 23 37C23 39.2142 23.6565 41.2741 24.7822 43H14C11.2386 43 9 40.7614 9 38V11C9 8.23858 11.2386 6 14 6H28Z",
|
|
15634
15743
|
fill: "#F9BB3A"
|
|
15635
15744
|
}
|
|
15636
15745
|
),
|
|
15637
|
-
/* @__PURE__ */
|
|
15746
|
+
/* @__PURE__ */ jsx48(
|
|
15638
15747
|
"line",
|
|
15639
15748
|
{
|
|
15640
15749
|
x1: "17.5",
|
|
@@ -15652,7 +15761,7 @@ function StepsSection() {
|
|
|
15652
15761
|
},
|
|
15653
15762
|
{
|
|
15654
15763
|
id: "ekyc",
|
|
15655
|
-
icon: /* @__PURE__ */
|
|
15764
|
+
icon: /* @__PURE__ */ jsxs40(
|
|
15656
15765
|
"svg",
|
|
15657
15766
|
{
|
|
15658
15767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15661,7 +15770,7 @@ function StepsSection() {
|
|
|
15661
15770
|
viewBox: "0 0 48 48",
|
|
15662
15771
|
fill: "none",
|
|
15663
15772
|
children: [
|
|
15664
|
-
/* @__PURE__ */
|
|
15773
|
+
/* @__PURE__ */ jsx48(
|
|
15665
15774
|
"path",
|
|
15666
15775
|
{
|
|
15667
15776
|
d: "M40.9453 16.6987V8.61644C40.9453 7.7237 40.2216 7 39.3289 7H31.2467",
|
|
@@ -15670,7 +15779,7 @@ function StepsSection() {
|
|
|
15670
15779
|
strokeLinecap: "round"
|
|
15671
15780
|
}
|
|
15672
15781
|
),
|
|
15673
|
-
/* @__PURE__ */
|
|
15782
|
+
/* @__PURE__ */ jsx48(
|
|
15674
15783
|
"path",
|
|
15675
15784
|
{
|
|
15676
15785
|
d: "M7 31.2467V39.3289C7 40.2216 7.72371 40.9453 8.61644 40.9453H16.6987",
|
|
@@ -15679,7 +15788,7 @@ function StepsSection() {
|
|
|
15679
15788
|
strokeLinecap: "round"
|
|
15680
15789
|
}
|
|
15681
15790
|
),
|
|
15682
|
-
/* @__PURE__ */
|
|
15791
|
+
/* @__PURE__ */ jsx48(
|
|
15683
15792
|
"path",
|
|
15684
15793
|
{
|
|
15685
15794
|
d: "M7 16.6987V8.61644C7 7.7237 7.72371 7 8.61644 7H16.6987",
|
|
@@ -15688,7 +15797,7 @@ function StepsSection() {
|
|
|
15688
15797
|
strokeLinecap: "round"
|
|
15689
15798
|
}
|
|
15690
15799
|
),
|
|
15691
|
-
/* @__PURE__ */
|
|
15800
|
+
/* @__PURE__ */ jsx48(
|
|
15692
15801
|
"path",
|
|
15693
15802
|
{
|
|
15694
15803
|
d: "M40.9453 31.2467V39.3289C40.9453 40.2216 40.2216 40.9453 39.3289 40.9453H31.2467",
|
|
@@ -15697,21 +15806,21 @@ function StepsSection() {
|
|
|
15697
15806
|
strokeLinecap: "round"
|
|
15698
15807
|
}
|
|
15699
15808
|
),
|
|
15700
|
-
/* @__PURE__ */
|
|
15809
|
+
/* @__PURE__ */ jsx48(
|
|
15701
15810
|
"path",
|
|
15702
15811
|
{
|
|
15703
15812
|
d: "M24.1748 25.2729C29.4451 25.273 33.7837 29.255 34.3496 34.3745H14C14.5659 29.255 18.9045 25.2729 24.1748 25.2729Z",
|
|
15704
15813
|
fill: "#F9BB3A"
|
|
15705
15814
|
}
|
|
15706
15815
|
),
|
|
15707
|
-
/* @__PURE__ */
|
|
15816
|
+
/* @__PURE__ */ jsx48("circle", { cx: "24.0873", cy: "18.0873", r: "5.08734", fill: "#F9BB3A" })
|
|
15708
15817
|
]
|
|
15709
15818
|
}
|
|
15710
15819
|
)
|
|
15711
15820
|
},
|
|
15712
15821
|
{
|
|
15713
15822
|
id: "advice",
|
|
15714
|
-
icon: /* @__PURE__ */
|
|
15823
|
+
icon: /* @__PURE__ */ jsxs40(
|
|
15715
15824
|
"svg",
|
|
15716
15825
|
{
|
|
15717
15826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15720,21 +15829,21 @@ function StepsSection() {
|
|
|
15720
15829
|
viewBox: "0 0 48 48",
|
|
15721
15830
|
fill: "none",
|
|
15722
15831
|
children: [
|
|
15723
|
-
/* @__PURE__ */
|
|
15832
|
+
/* @__PURE__ */ jsx48(
|
|
15724
15833
|
"path",
|
|
15725
15834
|
{
|
|
15726
15835
|
d: "M16.3286 20.8911C10.871 20.8911 6.44678 25.2339 6.44678 30.5913C6.4468 31.5508 6.59104 32.4768 6.85604 33.3518C6.93855 33.6243 6.91745 33.9196 6.78073 34.1693L5.1245 37.194C4.7596 37.8605 5.24184 38.6743 6.00162 38.6743H10.5683C10.7624 38.6743 10.9515 38.7319 11.1172 38.8331C12.6301 39.757 14.4156 40.2915 16.3286 40.2915C21.7861 40.2914 26.2103 35.9486 26.2104 30.5913C26.2104 25.2339 21.7862 20.8912 16.3286 20.8911Z",
|
|
15727
15836
|
fill: isDarkTheme ? "#fff" : "black"
|
|
15728
15837
|
}
|
|
15729
15838
|
),
|
|
15730
|
-
/* @__PURE__ */
|
|
15839
|
+
/* @__PURE__ */ jsx48(
|
|
15731
15840
|
"path",
|
|
15732
15841
|
{
|
|
15733
15842
|
d: "M25.3164 7C33.8854 7 40.8319 13.4674 40.832 21.4453C40.832 22.9446 40.5856 24.3903 40.1301 25.7499C40.0353 26.033 40.0591 26.3441 40.2084 26.6027L43.3147 31.9834C43.6996 32.6501 43.2185 33.4834 42.4487 33.4834H34.179C33.993 33.4834 33.8112 33.5359 33.6513 33.6309C31.2437 35.0615 28.3843 35.8916 25.3164 35.8916C16.7474 35.8916 9.80078 29.4234 9.80078 21.4453C9.80096 13.4674 16.7475 7.00002 25.3164 7Z",
|
|
15734
15843
|
fill: "#F9BB3A"
|
|
15735
15844
|
}
|
|
15736
15845
|
),
|
|
15737
|
-
/* @__PURE__ */
|
|
15846
|
+
/* @__PURE__ */ jsx48(
|
|
15738
15847
|
"circle",
|
|
15739
15848
|
{
|
|
15740
15849
|
cx: "18.3613",
|
|
@@ -15743,7 +15852,7 @@ function StepsSection() {
|
|
|
15743
15852
|
fill: isDarkTheme ? "#fff" : "black"
|
|
15744
15853
|
}
|
|
15745
15854
|
),
|
|
15746
|
-
/* @__PURE__ */
|
|
15855
|
+
/* @__PURE__ */ jsx48(
|
|
15747
15856
|
"circle",
|
|
15748
15857
|
{
|
|
15749
15858
|
cx: "25.8515",
|
|
@@ -15752,7 +15861,7 @@ function StepsSection() {
|
|
|
15752
15861
|
fill: isDarkTheme ? "#fff" : "black"
|
|
15753
15862
|
}
|
|
15754
15863
|
),
|
|
15755
|
-
/* @__PURE__ */
|
|
15864
|
+
/* @__PURE__ */ jsx48(
|
|
15756
15865
|
"circle",
|
|
15757
15866
|
{
|
|
15758
15867
|
cx: "33.3418",
|
|
@@ -15767,7 +15876,7 @@ function StepsSection() {
|
|
|
15767
15876
|
},
|
|
15768
15877
|
{
|
|
15769
15878
|
id: "trade",
|
|
15770
|
-
icon: /* @__PURE__ */
|
|
15879
|
+
icon: /* @__PURE__ */ jsxs40(
|
|
15771
15880
|
"svg",
|
|
15772
15881
|
{
|
|
15773
15882
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15776,7 +15885,7 @@ function StepsSection() {
|
|
|
15776
15885
|
viewBox: "0 0 48 48",
|
|
15777
15886
|
fill: "none",
|
|
15778
15887
|
children: [
|
|
15779
|
-
/* @__PURE__ */
|
|
15888
|
+
/* @__PURE__ */ jsx48(
|
|
15780
15889
|
"rect",
|
|
15781
15890
|
{
|
|
15782
15891
|
x: "4",
|
|
@@ -15787,7 +15896,7 @@ function StepsSection() {
|
|
|
15787
15896
|
fill: "#F9BB3A"
|
|
15788
15897
|
}
|
|
15789
15898
|
),
|
|
15790
|
-
/* @__PURE__ */
|
|
15899
|
+
/* @__PURE__ */ jsx48(
|
|
15791
15900
|
"line",
|
|
15792
15901
|
{
|
|
15793
15902
|
x1: "15.8384",
|
|
@@ -15799,7 +15908,7 @@ function StepsSection() {
|
|
|
15799
15908
|
strokeLinecap: "round"
|
|
15800
15909
|
}
|
|
15801
15910
|
),
|
|
15802
|
-
/* @__PURE__ */
|
|
15911
|
+
/* @__PURE__ */ jsx48(
|
|
15803
15912
|
"line",
|
|
15804
15913
|
{
|
|
15805
15914
|
x1: "19.3279",
|
|
@@ -15811,7 +15920,7 @@ function StepsSection() {
|
|
|
15811
15920
|
strokeLinecap: "round"
|
|
15812
15921
|
}
|
|
15813
15922
|
),
|
|
15814
|
-
/* @__PURE__ */
|
|
15923
|
+
/* @__PURE__ */ jsx48(
|
|
15815
15924
|
"line",
|
|
15816
15925
|
{
|
|
15817
15926
|
x1: "34.8219",
|
|
@@ -15823,7 +15932,7 @@ function StepsSection() {
|
|
|
15823
15932
|
strokeLinecap: "round"
|
|
15824
15933
|
}
|
|
15825
15934
|
),
|
|
15826
|
-
/* @__PURE__ */
|
|
15935
|
+
/* @__PURE__ */ jsx48(
|
|
15827
15936
|
"line",
|
|
15828
15937
|
{
|
|
15829
15938
|
x1: "26.9561",
|
|
@@ -15845,8 +15954,8 @@ function StepsSection() {
|
|
|
15845
15954
|
{ length: stepCount },
|
|
15846
15955
|
(_, index) => stepIcons[index % stepIcons.length]
|
|
15847
15956
|
);
|
|
15848
|
-
return /* @__PURE__ */
|
|
15849
|
-
/* @__PURE__ */
|
|
15957
|
+
return /* @__PURE__ */ jsx48("section", { className: "steps section", children: /* @__PURE__ */ jsxs40("div", { className: "container", children: [
|
|
15958
|
+
/* @__PURE__ */ jsx48(
|
|
15850
15959
|
Title_default,
|
|
15851
15960
|
{
|
|
15852
15961
|
classname: "steps-title",
|
|
@@ -15854,9 +15963,9 @@ function StepsSection() {
|
|
|
15854
15963
|
desc: t("landing.steps.description")
|
|
15855
15964
|
}
|
|
15856
15965
|
),
|
|
15857
|
-
/* @__PURE__ */
|
|
15858
|
-
/* @__PURE__ */
|
|
15859
|
-
/* @__PURE__ */
|
|
15966
|
+
/* @__PURE__ */ jsx48("div", { className: "step-list", children: visibleSteps.map((step, index) => /* @__PURE__ */ jsxs40("article", { className: "step-card", children: [
|
|
15967
|
+
/* @__PURE__ */ jsxs40("div", { className: "step-number", children: [
|
|
15968
|
+
/* @__PURE__ */ jsx48(
|
|
15860
15969
|
Image16,
|
|
15861
15970
|
{
|
|
15862
15971
|
className: "step-ribbon step-ribbon--desktop",
|
|
@@ -15867,7 +15976,7 @@ function StepsSection() {
|
|
|
15867
15976
|
"aria-hidden": "true"
|
|
15868
15977
|
}
|
|
15869
15978
|
),
|
|
15870
|
-
/* @__PURE__ */
|
|
15979
|
+
/* @__PURE__ */ jsx48(
|
|
15871
15980
|
Image16,
|
|
15872
15981
|
{
|
|
15873
15982
|
className: "step-ribbon-mobile",
|
|
@@ -15878,13 +15987,13 @@ function StepsSection() {
|
|
|
15878
15987
|
"aria-hidden": "true"
|
|
15879
15988
|
}
|
|
15880
15989
|
),
|
|
15881
|
-
/* @__PURE__ */
|
|
15990
|
+
/* @__PURE__ */ jsx48(ExactText, { cmsAs: "span", children: t(`landing.steps.items.${index}.label`) })
|
|
15882
15991
|
] }),
|
|
15883
|
-
/* @__PURE__ */
|
|
15884
|
-
/* @__PURE__ */
|
|
15885
|
-
/* @__PURE__ */
|
|
15886
|
-
/* @__PURE__ */
|
|
15887
|
-
/* @__PURE__ */
|
|
15992
|
+
/* @__PURE__ */ jsxs40("div", { className: "step-content", children: [
|
|
15993
|
+
/* @__PURE__ */ jsx48(ExactText, { cmsAs: "span", className: "step-icon", "aria-hidden": "true", children: step.icon }),
|
|
15994
|
+
/* @__PURE__ */ jsxs40("div", { className: "step-copy", children: [
|
|
15995
|
+
/* @__PURE__ */ jsx48(ExactText, { cmsAs: "h3", children: t(`landing.steps.items.${index}.title`) }),
|
|
15996
|
+
/* @__PURE__ */ jsx48(ExactText, { cmsAs: "p", children: t(`landing.steps.items.${index}.body`) })
|
|
15888
15997
|
] })
|
|
15889
15998
|
] })
|
|
15890
15999
|
] }, step.id)) })
|
|
@@ -15892,7 +16001,7 @@ function StepsSection() {
|
|
|
15892
16001
|
}
|
|
15893
16002
|
|
|
15894
16003
|
// src/wikex/original-commodity-blocks.tsx
|
|
15895
|
-
import { Fragment as Fragment12, jsx as
|
|
16004
|
+
import { Fragment as Fragment12, jsx as jsx49, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
15896
16005
|
var LANGUAGE_STORAGE_KEY = "wikex-language";
|
|
15897
16006
|
var LANGUAGE_EVENT = "wikex-language-change";
|
|
15898
16007
|
function supportedLanguage(value4) {
|
|
@@ -16097,7 +16206,7 @@ function ExactEditableContent({
|
|
|
16097
16206
|
element.dataset.cmsExactSelected = String(editable && element.dataset.cmsTextField === selectedTextField);
|
|
16098
16207
|
});
|
|
16099
16208
|
}, [content, editable, fieldKeys, selectedTextField]);
|
|
16100
|
-
return /* @__PURE__ */
|
|
16209
|
+
return /* @__PURE__ */ jsx49(
|
|
16101
16210
|
Box7,
|
|
16102
16211
|
{
|
|
16103
16212
|
ref: rootRef,
|
|
@@ -16198,10 +16307,10 @@ function ExactProviders({ content, children }) {
|
|
|
16198
16307
|
window.removeEventListener(LANGUAGE_EVENT, receiveLanguage);
|
|
16199
16308
|
};
|
|
16200
16309
|
}, [instance, requestedLanguage]);
|
|
16201
|
-
return /* @__PURE__ */
|
|
16310
|
+
return /* @__PURE__ */ jsx49(I18nextProvider, { i18n: instance, children: /* @__PURE__ */ jsx49(AppThemeProvider, { children: /* @__PURE__ */ jsx49(ResponsiveProvider, { viewportWidth, children }) }) });
|
|
16202
16311
|
}
|
|
16203
16312
|
function ExactSection({ children }) {
|
|
16204
|
-
return /* @__PURE__ */
|
|
16313
|
+
return /* @__PURE__ */ jsx49(PageShell, { className: "wikex-page", children });
|
|
16205
16314
|
}
|
|
16206
16315
|
function exactBlock(options, Component, wrapSection = false) {
|
|
16207
16316
|
const lists = options.lists ?? [];
|
|
@@ -16345,14 +16454,14 @@ function exactBlock(options, Component, wrapSection = false) {
|
|
|
16345
16454
|
)
|
|
16346
16455
|
)
|
|
16347
16456
|
], [language, listStates, chrome2]);
|
|
16348
|
-
return /* @__PURE__ */
|
|
16457
|
+
return /* @__PURE__ */ jsx49(ExactProviders, { content: renderedContent, children: /* @__PURE__ */ jsx49(
|
|
16349
16458
|
CmsImageProvider,
|
|
16350
16459
|
{
|
|
16351
16460
|
content: renderedContent,
|
|
16352
16461
|
editable: props.editable,
|
|
16353
16462
|
onImageRequest: props.onImageRequest,
|
|
16354
|
-
children: /* @__PURE__ */
|
|
16355
|
-
/* @__PURE__ */
|
|
16463
|
+
children: /* @__PURE__ */ jsx49(CmsListCountProvider, { counts: listCounts, children: /* @__PURE__ */ jsx49(CmsElementProvider, { ...props, content: renderedContent, onChange: handleChange, onSelectText: handleSelectText, children: /* @__PURE__ */ jsxs41(ExactTextProvider, { content: renderedContent, fields: fieldKeys, children: [
|
|
16464
|
+
/* @__PURE__ */ jsx49(
|
|
16356
16465
|
ExactEditableContent,
|
|
16357
16466
|
{
|
|
16358
16467
|
content: renderedContent,
|
|
@@ -16361,10 +16470,10 @@ function exactBlock(options, Component, wrapSection = false) {
|
|
|
16361
16470
|
onChange: handleChange,
|
|
16362
16471
|
onSelectText: handleSelectText,
|
|
16363
16472
|
selectedTextField: props.selectedTextField,
|
|
16364
|
-
children: wrapSection ? /* @__PURE__ */
|
|
16473
|
+
children: wrapSection ? /* @__PURE__ */ jsx49(ExactSection, { children: /* @__PURE__ */ jsx49(Component, { ...props }) }) : /* @__PURE__ */ jsx49(Component, { ...props })
|
|
16365
16474
|
}
|
|
16366
16475
|
),
|
|
16367
|
-
props.editable && listStates.length > 0 && /* @__PURE__ */
|
|
16476
|
+
props.editable && listStates.length > 0 && /* @__PURE__ */ jsx49(
|
|
16368
16477
|
Box7,
|
|
16369
16478
|
{
|
|
16370
16479
|
sx: {
|
|
@@ -16373,8 +16482,8 @@ function exactBlock(options, Component, wrapSection = false) {
|
|
|
16373
16482
|
borderTop: "1px solid rgba(32, 40, 32, 0.12)",
|
|
16374
16483
|
bgcolor: "#FAF8F3"
|
|
16375
16484
|
},
|
|
16376
|
-
children: /* @__PURE__ */
|
|
16377
|
-
|
|
16485
|
+
children: /* @__PURE__ */ jsx49(Stack6, { direction: "row", spacing: 1, justifyContent: "flex-end", flexWrap: "wrap", useFlexGap: true, children: listStates.map(({ field, items, list, templates }) => /* @__PURE__ */ jsxs41(
|
|
16486
|
+
Button10,
|
|
16378
16487
|
{
|
|
16379
16488
|
size: "small",
|
|
16380
16489
|
variant: "contained",
|
|
@@ -16432,7 +16541,7 @@ function ProductDetailExact() {
|
|
|
16432
16541
|
const segments = pathname.split("/").filter(Boolean);
|
|
16433
16542
|
const slug = segments[segments.length - 1] ?? "platinum";
|
|
16434
16543
|
const product = getProductBySlug(slug) ?? productItems[0];
|
|
16435
|
-
return /* @__PURE__ */
|
|
16544
|
+
return /* @__PURE__ */ jsx49(ProductDetailContent, { product });
|
|
16436
16545
|
}
|
|
16437
16546
|
var exactItemFields = (...fields2) => fields2.map(([key, label, type]) => ({ key, label, type, required: key === "title" }));
|
|
16438
16547
|
var image = (key, label, defaultSrc) => ({
|
|
@@ -16690,9 +16799,9 @@ var header = exactBlock(
|
|
|
16690
16799
|
Header
|
|
16691
16800
|
);
|
|
16692
16801
|
function FooterWithFloatingActions() {
|
|
16693
|
-
return /* @__PURE__ */
|
|
16694
|
-
/* @__PURE__ */
|
|
16695
|
-
/* @__PURE__ */
|
|
16802
|
+
return /* @__PURE__ */ jsxs41(Fragment12, { children: [
|
|
16803
|
+
/* @__PURE__ */ jsx49(Footer, {}),
|
|
16804
|
+
/* @__PURE__ */ jsx49(FloatingActions, {})
|
|
16696
16805
|
] });
|
|
16697
16806
|
}
|
|
16698
16807
|
var footer = exactBlock(
|
|
@@ -16712,9 +16821,9 @@ var footer = exactBlock(
|
|
|
16712
16821
|
var hero = exactBlock(
|
|
16713
16822
|
{ type: "commodity-hero", name: "Landing \u2014 Hero g\u1ED1c", description: "Hero nguy\xEAn b\u1EA3n.", prefixes: ["landing.hero."], images: heroImages },
|
|
16714
16823
|
function OriginalHero() {
|
|
16715
|
-
return /* @__PURE__ */
|
|
16716
|
-
/* @__PURE__ */
|
|
16717
|
-
/* @__PURE__ */
|
|
16824
|
+
return /* @__PURE__ */ jsxs41(Fragment12, { children: [
|
|
16825
|
+
/* @__PURE__ */ jsx49(LandingAnimations, {}),
|
|
16826
|
+
/* @__PURE__ */ jsx49(HeroSection2, {})
|
|
16718
16827
|
] });
|
|
16719
16828
|
},
|
|
16720
16829
|
true
|
|
@@ -17096,7 +17205,7 @@ var wikexCommodityRoutes = wikexCommodityPageTemplates.map(({ route, slug, key }
|
|
|
17096
17205
|
// src/shared/text-toolbar.tsx
|
|
17097
17206
|
import { useEffect as useEffect12, useRef as useRef11, useState as useState17 } from "react";
|
|
17098
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";
|
|
17099
|
-
import { jsx as
|
|
17208
|
+
import { jsx as jsx50, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
17100
17209
|
function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureControls, computedFontSize, computedLineHeight, computedFontFamily, computedTextAlign, onLayoutChange, onColorChange, onReset }) {
|
|
17101
17210
|
const toolbarRef = useRef11(null);
|
|
17102
17211
|
const [hex, setHex] = useState17(color);
|
|
@@ -17148,7 +17257,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17148
17257
|
const tooltipProps = { slotProps: { popper: { sx: { zIndex: 1800 } } } };
|
|
17149
17258
|
const inputSx = { width: 52, flexShrink: 0, "& .MuiInputBase-root": { height: 30 }, "& input": { py: 0.5, px: 0.75, fontSize: 12 } };
|
|
17150
17259
|
const groupSx = { display: "flex", alignItems: "center", gap: 0.5 };
|
|
17151
|
-
return /* @__PURE__ */
|
|
17260
|
+
return /* @__PURE__ */ jsxs42(
|
|
17152
17261
|
Box8,
|
|
17153
17262
|
{
|
|
17154
17263
|
ref: toolbarRef,
|
|
@@ -17157,8 +17266,8 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17157
17266
|
"data-cms-text-toolbar": true,
|
|
17158
17267
|
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%" },
|
|
17159
17268
|
children: [
|
|
17160
|
-
/* @__PURE__ */
|
|
17161
|
-
/* @__PURE__ */
|
|
17269
|
+
/* @__PURE__ */ jsxs42(Box8, { sx: { ...groupSx, flexWrap: "wrap", rowGap: 0.75, pb: 0.75, borderBottom: "1px solid", borderColor: "divider" }, children: [
|
|
17270
|
+
/* @__PURE__ */ jsxs42(
|
|
17162
17271
|
Select3,
|
|
17163
17272
|
{
|
|
17164
17273
|
size: "small",
|
|
@@ -17170,15 +17279,15 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17170
17279
|
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 } },
|
|
17171
17280
|
onChange: (event) => onLayoutChange({ fontFamily: event.target.value || void 0 }),
|
|
17172
17281
|
children: [
|
|
17173
|
-
!selectedFont && /* @__PURE__ */
|
|
17174
|
-
Object.entries(CMS_TEXT_FONTS).map(([value4, label]) => /* @__PURE__ */
|
|
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))
|
|
17175
17284
|
]
|
|
17176
17285
|
}
|
|
17177
17286
|
),
|
|
17178
17287
|
structureControls
|
|
17179
17288
|
] }),
|
|
17180
|
-
/* @__PURE__ */
|
|
17181
|
-
/* @__PURE__ */
|
|
17289
|
+
/* @__PURE__ */ jsxs42(Box8, { sx: { ...groupSx, flexWrap: "wrap", justifyContent: "space-between" }, children: [
|
|
17290
|
+
/* @__PURE__ */ jsx50(Tooltip, { title: "C\u1EE1 ch\u1EEF (px)", ...tooltipProps, children: /* @__PURE__ */ jsx50(
|
|
17182
17291
|
TextField4,
|
|
17183
17292
|
{
|
|
17184
17293
|
size: "small",
|
|
@@ -17199,13 +17308,13 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17199
17308
|
}
|
|
17200
17309
|
}
|
|
17201
17310
|
) }),
|
|
17202
|
-
/* @__PURE__ */
|
|
17311
|
+
/* @__PURE__ */ jsx50(Tooltip, { title: "Chi\u1EC1u cao d\xF2ng (l\u1EA7n c\u1EE1 ch\u1EEF)", ...tooltipProps, children: /* @__PURE__ */ jsx50(
|
|
17203
17312
|
TextField4,
|
|
17204
17313
|
{
|
|
17205
17314
|
size: "small",
|
|
17206
17315
|
type: "number",
|
|
17207
17316
|
value: lineHeight,
|
|
17208
|
-
slotProps: { input: { startAdornment: /* @__PURE__ */
|
|
17317
|
+
slotProps: { input: { startAdornment: /* @__PURE__ */ jsx50(InputAdornment2, { position: "start", sx: { mr: 0 }, children: /* @__PURE__ */ jsx50(SvgIcon, { sx: { fontSize: 17 }, children: /* @__PURE__ */ jsx50("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 } },
|
|
17209
17318
|
sx: { ...inputSx, width: 78, "& .MuiInputBase-root": { height: 30, pl: 0.75 } },
|
|
17210
17319
|
onChange: (event) => {
|
|
17211
17320
|
dirtyLineHeight.current = true;
|
|
@@ -17220,8 +17329,8 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17220
17329
|
}
|
|
17221
17330
|
}
|
|
17222
17331
|
) }),
|
|
17223
|
-
/* @__PURE__ */
|
|
17224
|
-
/* @__PURE__ */
|
|
17332
|
+
/* @__PURE__ */ jsx50(Box8, { sx: groupSx, children: inlineControls }),
|
|
17333
|
+
/* @__PURE__ */ jsx50(Box8, { sx: { ...groupSx, borderLeft: "1px solid", borderColor: "divider", pl: 1, ml: 0.5 }, children: [["left", "C\u0103n tr\xE1i"], ["center", "C\u0103n gi\u1EEFa"], ["right", "C\u0103n ph\u1EA3i"]].map(([align, label]) => /* @__PURE__ */ jsx50(Tooltip, { title: label, ...tooltipProps, children: /* @__PURE__ */ jsx50(
|
|
17225
17334
|
ToggleButton2,
|
|
17226
17335
|
{
|
|
17227
17336
|
value: align,
|
|
@@ -17230,10 +17339,10 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17230
17339
|
onMouseDown: (event) => event.preventDefault(),
|
|
17231
17340
|
onClick: () => onLayoutChange({ textAlign: align }),
|
|
17232
17341
|
sx: { width: 30, minWidth: 30, height: 30, p: 0.5, border: 0 },
|
|
17233
|
-
children: /* @__PURE__ */
|
|
17342
|
+
children: /* @__PURE__ */ jsx50(SvgIcon, { sx: { fontSize: 19 }, children: /* @__PURE__ */ jsx50("path", { d: align === "left" ? "M3 4h18v2H3zm0 5h12v2H3zm0 5h18v2H3zm0 5h12v2H3z" : align === "right" ? "M3 4h18v2H3zm6 5h12v2H9zm-6 5h18v2H3zm6 5h12v2H9z" : "M3 4h18v2H3zm3 5h12v2H6zm-3 5h18v2H3zm3 5h12v2H6z" }) })
|
|
17234
17343
|
}
|
|
17235
17344
|
) }, align)) }),
|
|
17236
|
-
colorPicker || /* @__PURE__ */
|
|
17345
|
+
colorPicker || /* @__PURE__ */ jsx50(
|
|
17237
17346
|
TextField4,
|
|
17238
17347
|
{
|
|
17239
17348
|
size: "small",
|
|
@@ -17250,7 +17359,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17250
17359
|
}
|
|
17251
17360
|
}
|
|
17252
17361
|
),
|
|
17253
|
-
/* @__PURE__ */
|
|
17362
|
+
/* @__PURE__ */ jsx50(Tooltip, { title: "\u0110\u1EB7t l\u1EA1i \u0111\u1ECBnh d\u1EA1ng ch\u1EEF", ...tooltipProps, children: /* @__PURE__ */ jsx50(IconButton3, { size: "small", "aria-label": "\u0110\u1EB7t l\u1EA1i \u0111\u1ECBnh d\u1EA1ng ch\u1EEF", onClick: onReset, sx: { width: 30, height: 30 }, children: /* @__PURE__ */ jsx50(SvgIcon, { sx: { fontSize: 19 }, children: /* @__PURE__ */ jsx50("path", { d: "m18 4 3 3-9 9-3-3 9-9zM8 14l3 3-3 3H4l-3-3 4-4 3 1zm4 6h10v2H10z" }) }) }) })
|
|
17254
17363
|
] })
|
|
17255
17364
|
]
|
|
17256
17365
|
}
|
|
@@ -17259,8 +17368,8 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17259
17368
|
|
|
17260
17369
|
// src/shared/button-link-control.tsx
|
|
17261
17370
|
import { useState as useState18 } from "react";
|
|
17262
|
-
import { Box as Box9, Button as
|
|
17263
|
-
import { Fragment as Fragment13, jsx as
|
|
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";
|
|
17372
|
+
import { Fragment as Fragment13, jsx as jsx51, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
17264
17373
|
function CmsButtonLinkControl({ field, content, onChange }) {
|
|
17265
17374
|
const [anchor, setAnchor] = useState18(null);
|
|
17266
17375
|
const [href, setHref] = useState18("");
|
|
@@ -17271,8 +17380,8 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17271
17380
|
onChange(cmsButtonLinkChanges(content, field, value4, type));
|
|
17272
17381
|
setAnchor(null);
|
|
17273
17382
|
};
|
|
17274
|
-
return /* @__PURE__ */
|
|
17275
|
-
/* @__PURE__ */
|
|
17383
|
+
return /* @__PURE__ */ jsxs43(Fragment13, { children: [
|
|
17384
|
+
/* @__PURE__ */ jsx51(
|
|
17276
17385
|
IconButton4,
|
|
17277
17386
|
{
|
|
17278
17387
|
size: "small",
|
|
@@ -17287,10 +17396,10 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17287
17396
|
setError("");
|
|
17288
17397
|
setAnchor(event.currentTarget);
|
|
17289
17398
|
},
|
|
17290
|
-
children: /* @__PURE__ */
|
|
17399
|
+
children: /* @__PURE__ */ jsx51(SvgIcon2, { sx: { fontSize: 19 }, children: /* @__PURE__ */ jsx51("path", { d: "M3.9 12a4.1 4.1 0 0 1 4.1-4.1h4V6H8a6 6 0 0 0 0 12h4v-1.9H8A4.1 4.1 0 0 1 3.9 12ZM9 13h6v-2H9v2Zm7-7h-4v1.9h4a4.1 4.1 0 0 1 0 8.2h-4V18h4a6 6 0 0 0 0-12Z" }) })
|
|
17291
17400
|
}
|
|
17292
17401
|
),
|
|
17293
|
-
/* @__PURE__ */
|
|
17402
|
+
/* @__PURE__ */ jsx51(
|
|
17294
17403
|
Popover,
|
|
17295
17404
|
{
|
|
17296
17405
|
open: Boolean(anchor),
|
|
@@ -17301,7 +17410,7 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17301
17410
|
onClose: () => setAnchor(null),
|
|
17302
17411
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
17303
17412
|
slotProps: { paper: { sx: { p: 1.5, width: 320, maxWidth: "calc(100% - 32px)" } } },
|
|
17304
|
-
children: /* @__PURE__ */
|
|
17413
|
+
children: /* @__PURE__ */ jsx51(Box9, { component: "form", onSubmit: (event) => {
|
|
17305
17414
|
event.preventDefault();
|
|
17306
17415
|
const value4 = href.trim();
|
|
17307
17416
|
if (value4 && !safeCmsButtonHref(value4, type)) {
|
|
@@ -17309,9 +17418,9 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17309
17418
|
return;
|
|
17310
17419
|
}
|
|
17311
17420
|
apply(value4);
|
|
17312
|
-
}, children: /* @__PURE__ */
|
|
17313
|
-
/* @__PURE__ */
|
|
17314
|
-
/* @__PURE__ */
|
|
17421
|
+
}, children: /* @__PURE__ */ jsxs43(Stack7, { spacing: 1.5, children: [
|
|
17422
|
+
/* @__PURE__ */ jsx51(Typography6, { variant: "subtitle2", children: "Li\xEAn k\u1EBFt n\xFAt" }),
|
|
17423
|
+
/* @__PURE__ */ jsxs43(
|
|
17315
17424
|
TextField5,
|
|
17316
17425
|
{
|
|
17317
17426
|
select: true,
|
|
@@ -17324,12 +17433,12 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17324
17433
|
},
|
|
17325
17434
|
slotProps: { select: { MenuProps: { disableScrollLock: true, container: anchor?.ownerDocument.body, sx: { zIndex: 1700 } } } },
|
|
17326
17435
|
children: [
|
|
17327
|
-
/* @__PURE__ */
|
|
17328
|
-
/* @__PURE__ */
|
|
17436
|
+
/* @__PURE__ */ jsx51(MenuItem5, { value: "internal", children: "Internal \u2014 trong website" }),
|
|
17437
|
+
/* @__PURE__ */ jsx51(MenuItem5, { value: "external", children: "External \u2014 website kh\xE1c" })
|
|
17329
17438
|
]
|
|
17330
17439
|
}
|
|
17331
17440
|
),
|
|
17332
|
-
/* @__PURE__ */
|
|
17441
|
+
/* @__PURE__ */ jsx51(
|
|
17333
17442
|
TextField5,
|
|
17334
17443
|
{
|
|
17335
17444
|
autoFocus: true,
|
|
@@ -17345,9 +17454,9 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17345
17454
|
helperText: error || (type === "external" ? "M\u1EDF li\xEAn k\u1EBFt trong tab m\u1EDBi." : "M\u1EDF li\xEAn k\u1EBFt trong tab hi\u1EC7n t\u1EA1i.")
|
|
17346
17455
|
}
|
|
17347
17456
|
),
|
|
17348
|
-
/* @__PURE__ */
|
|
17349
|
-
/* @__PURE__ */
|
|
17350
|
-
/* @__PURE__ */
|
|
17457
|
+
/* @__PURE__ */ jsxs43(Stack7, { direction: "row", justifyContent: "space-between", children: [
|
|
17458
|
+
/* @__PURE__ */ jsx51(Button11, { size: "small", color: "inherit", onClick: () => apply(""), children: "B\u1ECF li\xEAn k\u1EBFt" }),
|
|
17459
|
+
/* @__PURE__ */ jsx51(Button11, { size: "small", variant: "contained", type: "submit", children: "\xC1p d\u1EE5ng" })
|
|
17351
17460
|
] })
|
|
17352
17461
|
] }) })
|
|
17353
17462
|
}
|