@enyxs/wikex-components 0.11.30 → 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 +15 -0
- package/dist/fees-model.d.mts +16 -1
- package/dist/fees-model.d.ts +16 -1
- package/dist/fees-model.js +51 -2
- package/dist/fees-model.js.map +1 -1
- package/dist/fees-model.mjs +48 -2
- 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 +344 -196
- package/dist/fees.js.map +1 -1
- package/dist/fees.mjs +264 -116
- 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 +1103 -940
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +957 -794
- 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 = {
|
|
@@ -5742,39 +5742,39 @@ var benefitTwoWayDown = keyframes2([
|
|
|
5742
5742
|
`0%{transform:translateY(0);}50%{transform:translateY(-3px);}100%{transform:translateY(0);}`
|
|
5743
5743
|
]);
|
|
5744
5744
|
var Hero = styled4.section.withConfig({
|
|
5745
|
-
componentId: "sc-
|
|
5745
|
+
componentId: "sc-8555619f-0"
|
|
5746
5746
|
})([
|
|
5747
5747
|
`position:relative;min-height:820px;overflow:hidden;color:#05080f;background:var( --wikex-hero-background,url("/landing-assets/keyvisual_bg.webp") ) no-repeat center / cover;&::before,&::after{content:"";position:absolute;background:no-repeat center / 100% auto;height:820px;}&::before{top:0;left:-90px;background-image:url("/landing-assets/keyvisual_shape.png");width:50%;opacity:0.8;}@media (min-width:1024px) and (max-width:1329px){min-height:unset;padding-top:80px;padding-bottom:80px;}@media (min-width:768px) and (max-width:1023px){min-height:auto;}@media (max-width:767px){height:unset;min-height:unset;background:var( --wikex-hero-mobile-background,url("/landing-assets/keyvisual-background-mobile@2x.jpg") ) no-repeat center / cover;&::before,&::after{display:none;}.hero-dot-field{display:none;}}`
|
|
5748
5748
|
]);
|
|
5749
5749
|
var HeroInner = styled4.div.withConfig({
|
|
5750
|
-
componentId: "sc-
|
|
5750
|
+
componentId: "sc-8555619f-1"
|
|
5751
5751
|
})([
|
|
5752
5752
|
`position:relative;z-index:1;display:flex;max-width:1230px;padding:0 15px;min-height:820px;justify-content:space-between;margin:0 auto;align-items:center;gap:30px;.specular-button{width:200px;min-height:44px;font-size:16px;font-weight:700;white-space:nowrap;margin-top:32px;}@media (min-width:1480px) and (max-width:1600px){justify-content:space-around;}@media (min-width:1330px) and (max-width:1479px){justify-content:unset;gap:100px;}@media (min-width:1024px) and (max-width:1329px){justify-content:unset;gap:140px;min-height:unset;}@media (min-width:1024px) and (max-width:1111px){gap:80px;}@media (min-width:768px) and (max-width:1023px){min-height:auto;padding:56px 15px 48px;flex-direction:column;align-items:center;gap:40px;}@media (max-width:767px){width:100%;padding:40px 16px;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:35px;overflow:hidden;min-height:unset;.specular-button{order:3;width:100%;min-height:40px;margin-top:0;}}`
|
|
5753
5753
|
]);
|
|
5754
5754
|
var HeroCopy = styled4.div.withConfig({
|
|
5755
|
-
componentId: "sc-
|
|
5755
|
+
componentId: "sc-8555619f-2"
|
|
5756
5756
|
})([
|
|
5757
5757
|
`position:relative;z-index:2;@media (prefers-reduced-motion:no-preference){> *{animation:`,
|
|
5758
5758
|
` 950ms cubic-bezier(0.33,1,0.68,1) backwards;}> :nth-child(1){animation-delay:80ms;}> :nth-child(2){animation-delay:220ms;}> :nth-child(3){animation-delay:360ms;}> :nth-child(4){animation-delay:500ms;}}> p{max-width:570px;margin:18px 0 0;color:#05080f;font-size:16px;font-weight:500;line-height:22px;white-space:pre-line;}@media (max-width:1023px){width:100%;text-align:center;> p{margin-inline:auto;}}@media (max-width:767px){display:contents;> p{order:2;width:100%;max-width:343px;height:72px;min-height:72px;margin:-4px auto 0;flex:0 0 72px;font-size:14px;line-height:18px;text-align:center;}}`
|
|
5759
5759
|
], revealHeroCopy);
|
|
5760
5760
|
var HeroTitle = styled4.h1.withConfig({
|
|
5761
|
-
componentId: "sc-
|
|
5761
|
+
componentId: "sc-8555619f-3"
|
|
5762
5762
|
})([
|
|
5763
5763
|
`color:#05080f;font-size:54px;font-weight:700;line-height:72px;white-space:pre-line;margin:0;@media (max-width:520px){font-size:36px;line-height:46px;br{display:none;}}@media (max-width:767px){order:1;width:100%;min-height:120px;font-size:32px;line-height:40px;text-align:center;br{display:initial;}}`
|
|
5764
5764
|
]);
|
|
5765
5765
|
var HeroMetrics = styled4.div.withConfig({
|
|
5766
|
-
componentId: "sc-
|
|
5766
|
+
componentId: "sc-8555619f-4"
|
|
5767
5767
|
})([
|
|
5768
5768
|
`display:flex;margin-top:62px;.hero-metrics-track,.hero-metrics-group{display:contents;}.hero-metrics-group--duplicate{display:none;}@media (max-width:1023px){margin-top:42px;justify-content:center;}@media (max-width:767px){order:5;width:100%;min-width:100%;margin:0;justify-content:flex-start;overflow:hidden;.hero-metrics-track{display:flex;width:max-content;animation:`,
|
|
5769
5769
|
` 14s linear infinite;will-change:transform;}.hero-metrics-group,.hero-metrics-group--duplicate{display:flex;flex:0 0 auto;gap:16px;padding-right:25px;}}@media (max-width:767px) and (prefers-reduced-motion:reduce){overflow-x:auto;.hero-metrics-track{animation:none;will-change:auto;}.hero-metrics-group{padding-right:0;}.hero-metrics-group--duplicate{display:none;}}`
|
|
5770
5770
|
], moveHeroMetricsMarquee);
|
|
5771
5771
|
var HeroMetric = styled4.div.withConfig({
|
|
5772
|
-
componentId: "sc-
|
|
5772
|
+
componentId: "sc-8555619f-5"
|
|
5773
5773
|
})([
|
|
5774
5774
|
`display:flex;gap:8px;align-items:center;border-right:1px solid #05080f;padding:0 20px;font-size:20px;font-weight:600;line-height:1.25;white-space:pre-line;svg{flex-shrink:0;}&:first-child{padding-left:0;}&:last-child{border-right:0;}@media (min-width:1024px) and (max-width:1329px){font-size:15px;}@media (max-width:767px){width:174px;min-width:174px;min-height:48px;justify-content:flex-start;border-right:0;border-bottom:0;padding:0;gap:10px;font-size:16px;line-height:18px;text-align:left;&:first-child{width:233px;min-width:233px;padding-right:16px;}&:nth-child(2){width:212px;min-width:212px;padding-right:16px;}svg{width:36px;height:36px;}strong{display:block;width:116px;font-weight:600;font-size:20px;line-height:22px;}&:first-child strong{width:159px;}&:nth-child(2) strong{width:138px;}}`
|
|
5775
5775
|
]);
|
|
5776
5776
|
var HeroArt = styled4.div.withConfig({
|
|
5777
|
-
componentId: "sc-
|
|
5777
|
+
componentId: "sc-8555619f-6"
|
|
5778
5778
|
})([
|
|
5779
5779
|
`position:relative;min-height:461px;width:288px;flex-shrink:0;@media (prefers-reduced-motion:no-preference){.hero-phone{animation:`,
|
|
5780
5780
|
` 700ms cubic-bezier(0.33,1,0.68,1) 240ms backwards;}.key-mock-2{animation:`,
|
|
@@ -5782,15 +5782,15 @@ var HeroArt = styled4.div.withConfig({
|
|
|
5782
5782
|
` 560ms cubic-bezier(0.33,1,0.68,1) 920ms backwards;}.label-middle{animation:`,
|
|
5783
5783
|
` 520ms cubic-bezier(0.33,1,0.68,1) 1120ms backwards;}.label-bottom{animation:`,
|
|
5784
5784
|
` 520ms cubic-bezier(0.33,1,0.68,1) 1320ms backwards;}.label-top{animation:`,
|
|
5785
|
-
` 520ms cubic-bezier(0.33,1,0.68,1) 1520ms backwards;}}.key-mock-1,.key-mock-2{position:absolute;width:139px;height:94px;}.key-mock-2{right:-65px;top:24px;}.key-mock-1{left:-28px;top:78px;}.label{--label-height:75px;--label-padding-start:35px;--label-padding-end:35px;position:absolute;display:inline-flex;width:max-content;height:var(--label-height);picture{position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;}img{display:block;width:100%;height:100%;}p{position:relative;z-index:1;display:flex;align-items:center;color:#392c12;font-size:20px;font-weight:700;line-height:1.2;white-space:nowrap;margin:0;padding:0 var(--label-padding-end) 6px var(--label-padding-start);}}.label-top{bottom:112px;right:226px;--label-padding-end:60px;}.label-middle{top:148px;left:195px;--label-padding-start:45px;--label-padding-end:24px;}.label-bottom{left:143px;bottom:70px;--label-padding-start:45px;--label-padding-end:24px;p{padding-bottom:14px;}}@media (max-width:767px){.key-mock-1,.key-mock-2{width:67px;height:45px;}.key-mock-1{left:-15px;top:38px;}.key-mock-2{right:-34px;top:10px;}.label{--label-height:36px;p{font-size:10px;}}.label-top{bottom:52px;right:106px;--label-padding-start:15px;--label-padding-end:32px;}.label-middle{top:70px;left:92px;--label-padding-start:24px;--label-padding-end:12px;}.label-bottom{left:67px;bottom:30px;--label-height:33px;--label-padding-start:24px;--label-padding-end:12px;p{padding-top:3px;padding-bottom:6px;}}}@media (min-width:1024px) and (max-width:1230px){.key-mock-1,.key-mock-2{width:120px;height:75px;}.key-mock-2{right:-55px;top:64px;}.key-mock-1{left:-24px;top:108px;}.label{p{font-size:13px;}--label-height:4vw;}.label-top{bottom:142px;right:calc(434px - 18vw);--label-padding-start:2vw;--label-padding-end:3vw;}.label-middle{top:168px;left:155px;--label-padding-start:3vw;--label-padding-end:1.5vw;}.label-bottom{left:calc(273px - 15vw);bottom:108px;--label-padding-start:2.5vw;--label-padding-end:1.5vw;}}@media (max-width:767px){order:4;width:137px;height:219px;min-height:auto;margin:0 auto;}`
|
|
5785
|
+
` 520ms cubic-bezier(0.33,1,0.68,1) 1520ms backwards;}}.key-mock-1,.key-mock-2{position:absolute;width:139px;height:94px;}.key-mock-2{right:-65px;top:24px;}.key-mock-1{left:-28px;top:78px;}.label{--label-height:75px;--label-padding-start:35px;--label-padding-end:35px;position:absolute;display:inline-flex;width:max-content;height:var(--label-height);picture{position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;}img{display:block;width:100%;height:100%;}p{position:relative;z-index:1;min-width:max-content;display:flex;align-items:center;color:#392c12;font-size:20px;font-weight:700;line-height:1.2;white-space:nowrap;margin:0;padding:0 var(--label-padding-end) 6px var(--label-padding-start);}}.label-top{bottom:112px;right:226px;--label-padding-end:60px;}.label-middle{top:148px;left:195px;--label-padding-start:45px;--label-padding-end:24px;}.label-bottom{left:143px;bottom:70px;--label-padding-start:45px;--label-padding-end:24px;p{padding-bottom:14px;}}@media (max-width:767px){.key-mock-1,.key-mock-2{width:67px;height:45px;}.key-mock-1{left:-15px;top:38px;}.key-mock-2{right:-34px;top:10px;}.label{--label-height:36px;p{font-size:10px;}}.label-top{bottom:52px;right:106px;--label-padding-start:15px;--label-padding-end:32px;}.label-middle{top:70px;left:92px;--label-padding-start:24px;--label-padding-end:12px;}.label-bottom{left:67px;bottom:30px;--label-height:33px;--label-padding-start:24px;--label-padding-end:12px;p{padding-top:3px;padding-bottom:6px;}}}@media (min-width:1024px) and (max-width:1230px){.key-mock-1,.key-mock-2{width:120px;height:75px;}.key-mock-2{right:-55px;top:64px;}.key-mock-1{left:-24px;top:108px;}.label{p{font-size:13px;}--label-height:4vw;}.label-top{bottom:142px;right:calc(434px - 18vw);--label-padding-start:2vw;--label-padding-end:3vw;}.label-middle{top:168px;left:155px;--label-padding-start:3vw;--label-padding-end:1.5vw;}.label-bottom{left:calc(273px - 15vw);bottom:108px;--label-padding-start:2.5vw;--label-padding-end:1.5vw;}}@media (max-width:767px){order:4;width:137px;height:219px;min-height:auto;margin:0 auto;}`
|
|
5786
5786
|
], revealHeroArtUp, revealHeroArtFromRight, revealHeroArtFromLeft, revealHeroArtUp, revealHeroArtUp, revealHeroArtUp);
|
|
5787
5787
|
var HeroImage = styled4.div.withConfig({
|
|
5788
|
-
componentId: "sc-
|
|
5788
|
+
componentId: "sc-8555619f-7"
|
|
5789
5789
|
})([
|
|
5790
5790
|
`position:absolute;inset:0;.hero-phone-picture{position:absolute;inset:0;display:block;}img{object-fit:contain;}@media (min-width:1024px) and (max-width:1230px){width:80%;}`
|
|
5791
5791
|
]);
|
|
5792
5792
|
var PageShell = styled4.main.withConfig({
|
|
5793
|
-
componentId: "sc-
|
|
5793
|
+
componentId: "sc-8555619f-8"
|
|
5794
5794
|
})([
|
|
5795
5795
|
`--cream:#fffbf3;--faq-answer-color:#4e5560;--faq-card-background:#fff;--faq-card-foreground:#05080f;--faq-card-shadow-accent:#ffe5aa;--faq-card-shadow-ambient:rgb(0 0 0 / 5%);--footer-contact-icon-filter:none;--footer-desktop-icon-background:#e6e7ea;--footer-desktop-icon-filter:none;--footer-store-badge-background:#05080f;--footer-store-badge-foreground:#f9fafb;--footer-store-monochrome-filter:none;--footer-social-background:#e6e7ea;--footer-social-icon-filter:none;--ink:#05080f;--muted:#707580;--yellow:#f9bb3a;box-sizing:border-box;overflow:clip;color:var(--ink);background:var(--cream);font-family:var(--font-inter),Arial,Helvetica,sans-serif;line-height:normal;*,*::before,*::after{box-sizing:border-box;}button,input,textarea,select{font:inherit;}.container{width:min(1200px,calc(100% - 48px));margin-inline:auto;}.section{padding:80px 0;}.benefits{padding-top:80px;}.benefits .section-heading{margin:0 auto 60px;}.benefit-grid{display:flex;flex-wrap:wrap;gap:60px 32px;}.benefit-card{position:relative;flex:0 0 calc((100% - 96px) / 4);min-width:0;min-height:242px;padding:24px 32px 48px;text-align:center;cursor:pointer;&::before{position:absolute;z-index:1;top:-30px;right:-6px;bottom:-14px;left:-14px;background:url("/landing-assets/benefit-card-short.svg") no-repeat center / 100% 100%;content:"";pointer-events:none;}&::after{position:absolute;z-index:0;right:0;bottom:-16px;left:32px;height:52px;background:url("/landing-assets/benefit-card-accent.svg") no-repeat center / 100% 100%;content:"";pointer-events:none;}}.benefit-card--tall{min-height:308px;}.benefit-card--tall::before{background-image:url("/landing-assets/benefit-card-tall.svg");}.benefit-inner{position:relative;z-index:5;display:flex;flex-direction:column;align-items:center;gap:0;}.benefit-body-clip{min-height:0;}.benefit-toggle{display:none;}.benefit-icon{display:block;width:48px;height:48px;flex:0 0 48px;}.benefit-market-line{stroke-dasharray:1;stroke-dashoffset:0;}.benefit-futures-line,.benefit-economy-reveal{transform-box:fill-box;transform-origin:left center;}.benefit-gavel{transform-box:view-box;transform-origin:44px 40px;}.benefit-risk-square{transform-box:fill-box;transform-origin:center;}.benefit-product-segment{transform-box:view-box;transform-origin:24px 24.5px;}@media (hover:hover) and (prefers-reduced-motion:no-preference){.benefit-card:is(:hover,:focus-within){.benefit-market-line{animation:`,
|
|
5796
5796
|
` 120ms linear both;}.benefit-futures-line{animation:`,
|
|
@@ -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";
|
|
@@ -7574,6 +7574,7 @@ import { Box as Box6, Button as Button7, MenuItem as MenuItem2, Stack as Stack4,
|
|
|
7574
7574
|
var FEES_FONT_SIZE_MIN = 8;
|
|
7575
7575
|
var FEES_FONT_SIZE_MAX = 32;
|
|
7576
7576
|
var FEES_FONT_WEIGHTS = [400, 500, 600, 700, 800];
|
|
7577
|
+
var FEES_TEXT_ALIGNS = ["left", "center", "right"];
|
|
7577
7578
|
var FEES_PAGE_SIZE = 25;
|
|
7578
7579
|
function normalizeFeesSearch(value4) {
|
|
7579
7580
|
return value4.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/đ/g, "d").replace(/Đ/g, "D").toLowerCase().trim();
|
|
@@ -7582,6 +7583,15 @@ function filterFeesRows(data, search, tag) {
|
|
|
7582
7583
|
const query = normalizeFeesSearch(search);
|
|
7583
7584
|
return data.rows.filter((row) => (!tag || row.tags.includes(tag)) && (!query || Object.values(row.cells).some((cell) => normalizeFeesSearch(cell).includes(query))));
|
|
7584
7585
|
}
|
|
7586
|
+
function sortFeesRowsByName(rows, language = "vi") {
|
|
7587
|
+
const collator = new Intl.Collator(language, { sensitivity: "base", numeric: true });
|
|
7588
|
+
return [...rows].sort((a, b) => {
|
|
7589
|
+
const left = (a.cells.name ?? "").trim();
|
|
7590
|
+
const right = (b.cells.name ?? "").trim();
|
|
7591
|
+
if (!left || !right) return left ? -1 : right ? 1 : 0;
|
|
7592
|
+
return collator.compare(left, right);
|
|
7593
|
+
});
|
|
7594
|
+
}
|
|
7585
7595
|
function paginateFeesRows(rows, requestedPage, pageSize = FEES_PAGE_SIZE) {
|
|
7586
7596
|
const size = pageSize === -1 ? Math.max(1, rows.length) : Number.isInteger(pageSize) && pageSize > 0 ? pageSize : FEES_PAGE_SIZE;
|
|
7587
7597
|
const pageCount = Math.max(1, Math.ceil(rows.length / size));
|
|
@@ -7595,6 +7605,28 @@ function moveFeesItem(items, from, to) {
|
|
|
7595
7605
|
next.splice(to, 0, item);
|
|
7596
7606
|
return next;
|
|
7597
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
|
+
}
|
|
7598
7630
|
function isRecord(value4) {
|
|
7599
7631
|
return value4 !== null && typeof value4 === "object" && !Array.isArray(value4);
|
|
7600
7632
|
}
|
|
@@ -7619,6 +7651,9 @@ function validateFeesTypography(value4) {
|
|
|
7619
7651
|
if (!FEES_FONT_WEIGHTS.includes(raw.fontWeight)) throw invalid();
|
|
7620
7652
|
style.fontWeight = raw.fontWeight;
|
|
7621
7653
|
}
|
|
7654
|
+
if (raw.textAlign !== void 0) {
|
|
7655
|
+
style.textAlign = validateFeesTextAlign(raw.textAlign);
|
|
7656
|
+
}
|
|
7622
7657
|
if (Object.keys(style).length) result[part] = style;
|
|
7623
7658
|
}
|
|
7624
7659
|
return Object.keys(result).length ? result : void 0;
|
|
@@ -7630,14 +7665,22 @@ function validateFeesTable(value4) {
|
|
|
7630
7665
|
const columns = value4.columns.map((column) => {
|
|
7631
7666
|
if (!isRecord(column) || typeof column.key !== "string" || !column.key || keys2.has(column.key) || typeof column.title !== "string") throw invalid();
|
|
7632
7667
|
keys2.add(column.key);
|
|
7633
|
-
return { key: column.key, title: column.title };
|
|
7668
|
+
return { key: column.key, title: column.title, ...column.textAlign !== void 0 ? { textAlign: validateFeesTextAlign(column.textAlign) } : {} };
|
|
7634
7669
|
});
|
|
7635
7670
|
if (!keys2.has("name")) throw invalid();
|
|
7636
7671
|
const ids = /* @__PURE__ */ new Set();
|
|
7637
7672
|
const rows = value4.rows.map((row) => {
|
|
7638
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();
|
|
7639
7674
|
ids.add(row.id);
|
|
7640
|
-
|
|
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 } : {} };
|
|
7641
7684
|
});
|
|
7642
7685
|
const typography = validateFeesTypography(value4.typography);
|
|
7643
7686
|
return { columns, rows, ...value4.tags !== void 0 ? { tags: [...value4.tags] } : {}, ...typography ? { typography } : {} };
|
|
@@ -7788,15 +7831,21 @@ function FontSizeInput({ label, value: value4, onChange }) {
|
|
|
7788
7831
|
}
|
|
7789
7832
|
function FeesTypographyControls({ value: value4, onChange }) {
|
|
7790
7833
|
const root = useRef3(null);
|
|
7791
|
-
const update = (part, patch) =>
|
|
7834
|
+
const update = (part, patch) => {
|
|
7835
|
+
const style = Object.fromEntries(Object.entries({ ...value4?.[part], ...patch }).filter(([, setting]) => setting !== void 0));
|
|
7836
|
+
const next = { ...value4 };
|
|
7837
|
+
if (Object.keys(style).length) next[part] = style;
|
|
7838
|
+
else delete next[part];
|
|
7839
|
+
onChange(Object.keys(next).length ? next : void 0);
|
|
7840
|
+
};
|
|
7792
7841
|
return /* @__PURE__ */ jsxs9(Box6, { ref: root, role: "group", "aria-label": "\u0110\u1ECBnh d\u1EA1ng ch\u1EEF b\u1EA3ng ph\xED", sx: { mt: 2, p: { xs: 2, sm: 2.5 }, border: "1px solid", borderColor: "divider", borderRadius: 1.5 }, children: [
|
|
7793
7842
|
/* @__PURE__ */ jsxs9(Stack4, { direction: { xs: "column", sm: "row" }, gap: 1.5, justifyContent: "space-between", alignItems: { sm: "center" }, sx: { mb: 2 }, children: [
|
|
7794
7843
|
/* @__PURE__ */ jsxs9(Box6, { children: [
|
|
7795
7844
|
/* @__PURE__ */ jsx15(Typography4, { variant: "subtitle2", children: "\u0110\u1ECBnh d\u1EA1ng ch\u1EEF" }),
|
|
7796
|
-
/* @__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." })
|
|
7797
7846
|
] }),
|
|
7798
7847
|
/* @__PURE__ */ jsxs9(Stack4, { direction: "row", gap: 1, flexShrink: 0, children: [
|
|
7799
|
-
/* @__PURE__ */ jsx15(Button7, { size: "small", variant: "outlined", onClick: () => onChange({ thead: { fontSize: 14, fontWeight: 700 }, tbody: { fontSize: 14, fontWeight: 500 } }), children: "D\u1EC5 \u0111\u1ECDc" }),
|
|
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" }),
|
|
7800
7849
|
/* @__PURE__ */ jsx15(Button7, { size: "small", color: "inherit", disabled: !value4, onClick: () => onChange(void 0), children: "M\u1EB7c \u0111\u1ECBnh" })
|
|
7801
7850
|
] })
|
|
7802
7851
|
] }),
|
|
@@ -7832,6 +7881,58 @@ function FeesTypographyControls({ value: value4, onChange }) {
|
|
|
7832
7881
|
] });
|
|
7833
7882
|
}
|
|
7834
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
|
+
|
|
7835
7936
|
// src/commodity-original/styles/colors.ts
|
|
7836
7937
|
var lightColors = {
|
|
7837
7938
|
background: {
|
|
@@ -8092,7 +8193,7 @@ function getTableFixedColumnOffset(columns, columnIndex) {
|
|
|
8092
8193
|
}
|
|
8093
8194
|
|
|
8094
8195
|
// src/commodity-original/components/Table/index.tsx
|
|
8095
|
-
import { jsx as
|
|
8196
|
+
import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
8096
8197
|
function getCellValue(column, record) {
|
|
8097
8198
|
return column.dataIndex === void 0 ? void 0 : record[column.dataIndex];
|
|
8098
8199
|
}
|
|
@@ -8165,7 +8266,7 @@ function Table({
|
|
|
8165
8266
|
const nextSelectedRowKeys = event.target.checked ? [...selectedRowKeys, recordKey] : selectedRowKeys.filter((key) => key !== recordKey);
|
|
8166
8267
|
emitSelectionChange(nextSelectedRowKeys);
|
|
8167
8268
|
};
|
|
8168
|
-
return /* @__PURE__ */
|
|
8269
|
+
return /* @__PURE__ */ jsx17(TableScrollContainer, { children: /* @__PURE__ */ jsxs11(
|
|
8169
8270
|
TableRoot,
|
|
8170
8271
|
{
|
|
8171
8272
|
$minWidth: scroll?.x === void 0 ? void 0 : getTableColumnSize(scroll.x),
|
|
@@ -8174,8 +8275,8 @@ function Table({
|
|
|
8174
8275
|
className,
|
|
8175
8276
|
"data-size": size,
|
|
8176
8277
|
children: [
|
|
8177
|
-
/* @__PURE__ */
|
|
8178
|
-
rowSelection ? /* @__PURE__ */
|
|
8278
|
+
/* @__PURE__ */ jsx17("thead", { children: /* @__PURE__ */ jsxs11(TableHeaderRow, { children: [
|
|
8279
|
+
rowSelection ? /* @__PURE__ */ jsx17(TableHeaderCell, { scope: "col", children: selectionType === "checkbox" ? /* @__PURE__ */ jsx17(
|
|
8179
8280
|
TableSelectionInput,
|
|
8180
8281
|
{
|
|
8181
8282
|
checked: isAllSelected,
|
|
@@ -8184,8 +8285,8 @@ function Table({
|
|
|
8184
8285
|
type: "checkbox"
|
|
8185
8286
|
}
|
|
8186
8287
|
) : null }) : null,
|
|
8187
|
-
expandable ? /* @__PURE__ */
|
|
8188
|
-
columns.map((column, columnIndex) => /* @__PURE__ */
|
|
8288
|
+
expandable ? /* @__PURE__ */ jsx17(TableHeaderCell, { scope: "col" }) : null,
|
|
8289
|
+
columns.map((column, columnIndex) => /* @__PURE__ */ jsx17(
|
|
8189
8290
|
TableHeaderCell,
|
|
8190
8291
|
{
|
|
8191
8292
|
$fixed: column.fixed,
|
|
@@ -8193,7 +8294,7 @@ function Table({
|
|
|
8193
8294
|
$width: column.width === void 0 ? void 0 : getTableColumnSize(column.width),
|
|
8194
8295
|
"data-column-key": column.key,
|
|
8195
8296
|
scope: "col",
|
|
8196
|
-
children: column.sortable ? /* @__PURE__ */
|
|
8297
|
+
children: column.sortable ? /* @__PURE__ */ jsx17(
|
|
8197
8298
|
TableSortButton,
|
|
8198
8299
|
{
|
|
8199
8300
|
"aria-pressed": sort?.field === column.key,
|
|
@@ -8206,13 +8307,13 @@ function Table({
|
|
|
8206
8307
|
column.key
|
|
8207
8308
|
))
|
|
8208
8309
|
] }) }),
|
|
8209
|
-
/* @__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) => {
|
|
8210
8311
|
const recordKey = getRowKey(record);
|
|
8211
8312
|
const selectionProps = rowSelection?.getCheckboxProps?.(record);
|
|
8212
8313
|
const isExpanded = expandedRowKeySet.has(recordKey);
|
|
8213
|
-
return /* @__PURE__ */
|
|
8214
|
-
/* @__PURE__ */
|
|
8215
|
-
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(
|
|
8216
8317
|
TableSelectionInput,
|
|
8217
8318
|
{
|
|
8218
8319
|
checked: selectedRowKeySet.has(recordKey),
|
|
@@ -8222,7 +8323,7 @@ function Table({
|
|
|
8222
8323
|
type: selectionType
|
|
8223
8324
|
}
|
|
8224
8325
|
) }) : null,
|
|
8225
|
-
expandable ? /* @__PURE__ */
|
|
8326
|
+
expandable ? /* @__PURE__ */ jsx17(TableCell, { children: /* @__PURE__ */ jsx17(
|
|
8226
8327
|
TableExpandButton,
|
|
8227
8328
|
{
|
|
8228
8329
|
"aria-expanded": isExpanded,
|
|
@@ -8233,7 +8334,7 @@ function Table({
|
|
|
8233
8334
|
) }) : null,
|
|
8234
8335
|
columns.map((column, columnIndex) => {
|
|
8235
8336
|
const value4 = getCellValue(column, record);
|
|
8236
|
-
return /* @__PURE__ */
|
|
8337
|
+
return /* @__PURE__ */ jsx17(
|
|
8237
8338
|
TableCell,
|
|
8238
8339
|
{
|
|
8239
8340
|
$fixed: column.fixed,
|
|
@@ -8245,7 +8346,7 @@ function Table({
|
|
|
8245
8346
|
);
|
|
8246
8347
|
})
|
|
8247
8348
|
] }),
|
|
8248
|
-
expandable?.render && isExpanded ? /* @__PURE__ */
|
|
8349
|
+
expandable?.render && isExpanded ? /* @__PURE__ */ jsx17(TableRow, { children: /* @__PURE__ */ jsx17(TableExpandedCell, { colSpan: columnCount, children: expandable.render(record) }) }) : null
|
|
8249
8350
|
] }, recordKey);
|
|
8250
8351
|
}) })
|
|
8251
8352
|
]
|
|
@@ -8300,7 +8401,7 @@ var PaginationArrow = styled8.span.withConfig({
|
|
|
8300
8401
|
], chevron_right_default, chevron_right_default);
|
|
8301
8402
|
|
|
8302
8403
|
// src/commodity-original/components/Pagination/index.tsx
|
|
8303
|
-
import { jsx as
|
|
8404
|
+
import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
8304
8405
|
function getPaginationItems(page, pageCount, siblingCount) {
|
|
8305
8406
|
const maxVisibleItems = siblingCount * 2 + 5;
|
|
8306
8407
|
if (pageCount <= maxVisibleItems) {
|
|
@@ -8327,7 +8428,7 @@ function Pagination2({
|
|
|
8327
8428
|
onPageChange,
|
|
8328
8429
|
siblingCount = 1,
|
|
8329
8430
|
ariaLabel,
|
|
8330
|
-
labels,
|
|
8431
|
+
labels: labels2,
|
|
8331
8432
|
className
|
|
8332
8433
|
}) {
|
|
8333
8434
|
const { t } = useTranslation3();
|
|
@@ -8336,43 +8437,43 @@ function Pagination2({
|
|
|
8336
8437
|
const items = getPaginationItems(currentPage, safePageCount, siblingCount);
|
|
8337
8438
|
const hasPreviousPage = currentPage > 1;
|
|
8338
8439
|
const hasNextPage = currentPage < safePageCount;
|
|
8339
|
-
return /* @__PURE__ */
|
|
8440
|
+
return /* @__PURE__ */ jsx18(
|
|
8340
8441
|
PaginationNav,
|
|
8341
8442
|
{
|
|
8342
8443
|
"aria-label": ariaLabel ?? t("pagination.navigation"),
|
|
8343
8444
|
className,
|
|
8344
|
-
children: /* @__PURE__ */
|
|
8345
|
-
/* @__PURE__ */
|
|
8445
|
+
children: /* @__PURE__ */ jsxs12(PaginationList, { children: [
|
|
8446
|
+
/* @__PURE__ */ jsx18(PaginationItem, { children: /* @__PURE__ */ jsx18(
|
|
8346
8447
|
PaginationButton,
|
|
8347
8448
|
{
|
|
8348
|
-
"aria-label":
|
|
8449
|
+
"aria-label": labels2?.previous ?? t("pagination.previous"),
|
|
8349
8450
|
"data-control": "previous",
|
|
8350
8451
|
disabled: !hasPreviousPage,
|
|
8351
8452
|
onClick: () => onPageChange(currentPage - 1),
|
|
8352
8453
|
type: "button",
|
|
8353
|
-
children: /* @__PURE__ */
|
|
8454
|
+
children: /* @__PURE__ */ jsx18(PaginationArrow, { "data-direction": "previous" })
|
|
8354
8455
|
}
|
|
8355
8456
|
) }),
|
|
8356
|
-
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(
|
|
8357
8458
|
PaginationButton,
|
|
8358
8459
|
{
|
|
8359
8460
|
"aria-current": item === currentPage ? "page" : void 0,
|
|
8360
|
-
"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 }),
|
|
8361
8462
|
"data-active": item === currentPage || void 0,
|
|
8362
8463
|
onClick: () => onPageChange(item),
|
|
8363
8464
|
type: "button",
|
|
8364
8465
|
children: item
|
|
8365
8466
|
}
|
|
8366
8467
|
) }, `${item}-${index}`)),
|
|
8367
|
-
/* @__PURE__ */
|
|
8468
|
+
/* @__PURE__ */ jsx18(PaginationItem, { children: /* @__PURE__ */ jsx18(
|
|
8368
8469
|
PaginationButton,
|
|
8369
8470
|
{
|
|
8370
|
-
"aria-label":
|
|
8471
|
+
"aria-label": labels2?.next ?? t("pagination.next"),
|
|
8371
8472
|
"data-control": "next",
|
|
8372
8473
|
disabled: !hasNextPage,
|
|
8373
8474
|
onClick: () => onPageChange(currentPage + 1),
|
|
8374
8475
|
type: "button",
|
|
8375
|
-
children: /* @__PURE__ */
|
|
8476
|
+
children: /* @__PURE__ */ jsx18(PaginationArrow, { "data-direction": "next" })
|
|
8376
8477
|
}
|
|
8377
8478
|
) })
|
|
8378
8479
|
] })
|
|
@@ -8408,7 +8509,7 @@ var InputAdornment = styled9.span.withConfig({
|
|
|
8408
8509
|
], ({ theme }) => theme.colors.text.secondary, InputCommonRoot, InputCommonRoot);
|
|
8409
8510
|
|
|
8410
8511
|
// src/commodity-original/components/InputCommon/index.tsx
|
|
8411
|
-
import { jsx as
|
|
8512
|
+
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
8412
8513
|
function InputCommon({
|
|
8413
8514
|
leftIcon,
|
|
8414
8515
|
rightIcon,
|
|
@@ -8419,11 +8520,11 @@ function InputCommon({
|
|
|
8419
8520
|
onClear,
|
|
8420
8521
|
...inputProps
|
|
8421
8522
|
}) {
|
|
8422
|
-
return /* @__PURE__ */
|
|
8423
|
-
leftIcon ? /* @__PURE__ */
|
|
8424
|
-
/* @__PURE__ */
|
|
8425
|
-
clearable && inputProps.value ? /* @__PURE__ */
|
|
8426
|
-
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
|
|
8427
8528
|
] });
|
|
8428
8529
|
}
|
|
8429
8530
|
|
|
@@ -8455,7 +8556,7 @@ var TabLine = styled10.span.withConfig({
|
|
|
8455
8556
|
], ({ theme }) => theme.colors.accent.primary, TabCommonList, TabCommonList);
|
|
8456
8557
|
|
|
8457
8558
|
// src/commodity-original/components/TabCommon/index.tsx
|
|
8458
|
-
import { jsx as
|
|
8559
|
+
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
8459
8560
|
function TabCommon({
|
|
8460
8561
|
items,
|
|
8461
8562
|
value: value4,
|
|
@@ -8464,7 +8565,7 @@ function TabCommon({
|
|
|
8464
8565
|
className,
|
|
8465
8566
|
size = "md"
|
|
8466
8567
|
}) {
|
|
8467
|
-
return /* @__PURE__ */
|
|
8568
|
+
return /* @__PURE__ */ jsx20(
|
|
8468
8569
|
TabCommonList,
|
|
8469
8570
|
{
|
|
8470
8571
|
"aria-label": ariaLabel,
|
|
@@ -8473,7 +8574,7 @@ function TabCommon({
|
|
|
8473
8574
|
role: "tablist",
|
|
8474
8575
|
children: items.map((item) => {
|
|
8475
8576
|
const isActive = item.id === value4;
|
|
8476
|
-
return /* @__PURE__ */
|
|
8577
|
+
return /* @__PURE__ */ jsxs14(
|
|
8477
8578
|
TabButton,
|
|
8478
8579
|
{
|
|
8479
8580
|
"aria-selected": isActive,
|
|
@@ -8484,7 +8585,7 @@ function TabCommon({
|
|
|
8484
8585
|
type: "button",
|
|
8485
8586
|
children: [
|
|
8486
8587
|
item.label,
|
|
8487
|
-
/* @__PURE__ */
|
|
8588
|
+
/* @__PURE__ */ jsx20(TabLine, { "aria-hidden": "true" })
|
|
8488
8589
|
]
|
|
8489
8590
|
},
|
|
8490
8591
|
item.id
|
|
@@ -8591,32 +8692,32 @@ var feesTheme = {
|
|
|
8591
8692
|
]))
|
|
8592
8693
|
};
|
|
8593
8694
|
var EditorActions = styled12.div.withConfig({
|
|
8594
|
-
componentId: "sc-
|
|
8695
|
+
componentId: "sc-3c959c0c-0"
|
|
8595
8696
|
})([
|
|
8596
8697
|
`display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
|
|
8597
8698
|
]);
|
|
8598
8699
|
var EditGroup = styled12.div.withConfig({
|
|
8599
|
-
componentId: "sc-
|
|
8700
|
+
componentId: "sc-3c959c0c-1"
|
|
8600
8701
|
})([
|
|
8601
8702
|
`display:flex;flex-direction:column;gap:6px;`
|
|
8602
8703
|
]);
|
|
8603
8704
|
var HeaderGroup = styled12(EditGroup).withConfig({
|
|
8604
|
-
componentId: "sc-
|
|
8705
|
+
componentId: "sc-3c959c0c-2"
|
|
8605
8706
|
})([
|
|
8606
8707
|
`gap:8px;`
|
|
8607
8708
|
]);
|
|
8608
8709
|
var HeaderTitle = styled12.div.withConfig({
|
|
8609
|
-
componentId: "sc-
|
|
8710
|
+
componentId: "sc-3c959c0c-3"
|
|
8610
8711
|
})([
|
|
8611
8712
|
`display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
|
|
8612
8713
|
]);
|
|
8613
8714
|
var HeaderActions = styled12.div.withConfig({
|
|
8614
|
-
componentId: "sc-
|
|
8715
|
+
componentId: "sc-3c959c0c-4"
|
|
8615
8716
|
})([
|
|
8616
8717
|
`display:flex;align-items:center;min-height:24px;`
|
|
8617
8718
|
]);
|
|
8618
8719
|
var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
8619
|
-
componentId: "sc-
|
|
8720
|
+
componentId: "sc-3c959c0c-5"
|
|
8620
8721
|
})([
|
|
8621
8722
|
`&[data-editable] th{vertical-align:top;}--fees-row-background:`,
|
|
8622
8723
|
`;--fees-stripe-background:`,
|
|
@@ -8627,9 +8728,11 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
|
8627
8728
|
`;}&&& thead > tr > th{height:52px;padding:11.5px 8px;color:`,
|
|
8628
8729
|
`;font-size:`,
|
|
8629
8730
|
`px;font-weight:`,
|
|
8731
|
+
`;text-align:`,
|
|
8630
8732
|
`;line-height:`,
|
|
8631
8733
|
`;white-space:pre-line;}tbody > tr{background:var(--fees-row-background);}tbody > tr:nth-child(even){background:var(--fees-stripe-background);}&&& tbody > tr > td{height:32px;padding:7.5px 8px;background:inherit;color:var(--fees-text);font-size:`,
|
|
8632
8734
|
`px;font-weight:`,
|
|
8735
|
+
`;text-align:`,
|
|
8633
8736
|
`;line-height:`,
|
|
8634
8737
|
`;}thead > tr > th:first-child,tbody > tr > td:first-child{padding-left:16px;}@media (max-width:767px){&&:not([data-editable]){table{min-width:100%;width:`,
|
|
8635
8738
|
`px;table-layout:fixed;}`,
|
|
@@ -8637,9 +8740,9 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
|
8637
8740
|
`px;line-height:`,
|
|
8638
8741
|
`;}tbody > tr > td{height:40px;padding-top:5.5px;padding-bottom:5.5px;font-size:`,
|
|
8639
8742
|
`px;line-height:`,
|
|
8640
|
-
`;}thead > tr > th:last-child,tbody > tr > td:last-child{padding-right:12px;}
|
|
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:`,
|
|
8641
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);}}}`
|
|
8642
|
-
], ({ 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?.fontSize ? 1.4 : "14px", ({ $typography }) => $typography?.tbody?.fontSize ?? 12, ({ $typography }) => $typography?.tbody?.fontWeight ?? 500, ({ $typography }) => $typography?.tbody?.fontSize ? 1.4 : "16px", ({ $mobileColumnWidths }) => $mobileColumnWidths.reduce((sum, width) => sum + width, 0), ({ $mobileColumnWidths }) => $mobileColumnWidths.map((width, index) => `
|
|
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) => `
|
|
8643
8746
|
th:nth-child(${index + 1}), td:nth-child(${index + 1}) {
|
|
8644
8747
|
width: ${width}px;
|
|
8645
8748
|
min-width: ${width}px;
|
|
@@ -8647,13 +8750,14 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
|
8647
8750
|
}
|
|
8648
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);
|
|
8649
8752
|
var FeesCellContent = styled12.span.withConfig({
|
|
8650
|
-
componentId: "sc-
|
|
8753
|
+
componentId: "sc-3c959c0c-6"
|
|
8651
8754
|
})([
|
|
8652
8755
|
`display:block;text-align:`,
|
|
8653
|
-
|
|
8654
|
-
|
|
8756
|
+
`;@media (max-width:767px){text-align:`,
|
|
8757
|
+
`;}`
|
|
8758
|
+
], ({ $align, $alignRight }) => $align ?? ($alignRight ? "right" : "left"), ({ $align }) => $align ?? "left");
|
|
8655
8759
|
var EditorButton = styled12.button.withConfig({
|
|
8656
|
-
componentId: "sc-
|
|
8760
|
+
componentId: "sc-3c959c0c-7"
|
|
8657
8761
|
})([
|
|
8658
8762
|
`padding:7px 12px;border:1px solid `,
|
|
8659
8763
|
`;border-radius:6px;background:`,
|
|
@@ -8662,17 +8766,17 @@ var EditorButton = styled12.button.withConfig({
|
|
|
8662
8766
|
`;}&:disabled{cursor:default;opacity:.4;}`
|
|
8663
8767
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8664
8768
|
var OrderActions = styled12.div.withConfig({
|
|
8665
|
-
componentId: "sc-
|
|
8769
|
+
componentId: "sc-3c959c0c-8"
|
|
8666
8770
|
})([
|
|
8667
8771
|
`display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
|
|
8668
8772
|
]);
|
|
8669
8773
|
var PositionLabel = styled12.label.withConfig({
|
|
8670
|
-
componentId: "sc-
|
|
8774
|
+
componentId: "sc-3c959c0c-9"
|
|
8671
8775
|
})([
|
|
8672
8776
|
`display:inline-flex;align-items:center;gap:6px;font-size:12px;`
|
|
8673
8777
|
]);
|
|
8674
8778
|
var PositionInput = styled12.input.withConfig({
|
|
8675
|
-
componentId: "sc-
|
|
8779
|
+
componentId: "sc-3c959c0c-10"
|
|
8676
8780
|
})([
|
|
8677
8781
|
`width:56px;padding:5px;border:1px solid `,
|
|
8678
8782
|
`;border-radius:4px;background:`,
|
|
@@ -8681,17 +8785,17 @@ var PositionInput = styled12.input.withConfig({
|
|
|
8681
8785
|
`;}`
|
|
8682
8786
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8683
8787
|
var ColumnRow = styled12.div.withConfig({
|
|
8684
|
-
componentId: "sc-
|
|
8788
|
+
componentId: "sc-3c959c0c-11"
|
|
8685
8789
|
})([
|
|
8686
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;}`
|
|
8687
8791
|
]);
|
|
8688
8792
|
var PaginationControls = styled12(FeesAndMarginPagination).withConfig({
|
|
8689
|
-
componentId: "sc-
|
|
8793
|
+
componentId: "sc-3c959c0c-12"
|
|
8690
8794
|
})([
|
|
8691
8795
|
`align-items:center;flex-wrap:wrap;gap:16px 24px;`
|
|
8692
8796
|
]);
|
|
8693
8797
|
var PageSizeLabel = styled12.div.withConfig({
|
|
8694
|
-
componentId: "sc-
|
|
8798
|
+
componentId: "sc-3c959c0c-13"
|
|
8695
8799
|
})([
|
|
8696
8800
|
`display:inline-flex;align-items:center;gap:8px;color:`,
|
|
8697
8801
|
`;font:inherit;font-size:13px;`
|
|
@@ -8719,17 +8823,18 @@ function Position({ value: value4, max, label, onMove }) {
|
|
|
8719
8823
|
});
|
|
8720
8824
|
}
|
|
8721
8825
|
var DeleteButton = styled12(EditorButton).withConfig({
|
|
8722
|
-
componentId: "sc-
|
|
8826
|
+
componentId: "sc-3c959c0c-14"
|
|
8723
8827
|
})([
|
|
8724
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;}`
|
|
8725
8829
|
]);
|
|
8726
8830
|
var CellEditorInput = styled12.textarea.withConfig({
|
|
8727
|
-
componentId: "sc-
|
|
8831
|
+
componentId: "sc-3c959c0c-15"
|
|
8728
8832
|
})([
|
|
8729
|
-
`display:block;box-sizing:border-box;width:100%;min-width:0;padding:3px;border:1px solid transparent;border-radius:3px;color:inherit;background:transparent;font:inherit;line-height:inherit;resize:none;overflow:hidden;&:hover{border-color:`,
|
|
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:`,
|
|
8730
8834
|
`;}&:focus{outline:1px solid `,
|
|
8835
|
+
`;}&[data-fees-cell-selected="true"]{border-color:`,
|
|
8731
8836
|
`;}`
|
|
8732
|
-
], ({ 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);
|
|
8733
8838
|
function CellEditor({ onInput, ...props }) {
|
|
8734
8839
|
const ref = useRef4(null);
|
|
8735
8840
|
const fit = () => {
|
|
@@ -8859,13 +8964,14 @@ var rightAlignedColumns = /* @__PURE__ */ new Set([
|
|
|
8859
8964
|
"priceUnit",
|
|
8860
8965
|
"unit"
|
|
8861
8966
|
]);
|
|
8862
|
-
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" }) {
|
|
8863
8968
|
const [search, setSearch] = useState6("");
|
|
8864
8969
|
const [tag, setTag] = useState6("");
|
|
8865
8970
|
const [page, setPage] = useState6(1);
|
|
8866
8971
|
const [pageSize, setPageSize] = useState6(FEES_PAGE_SIZE);
|
|
8867
8972
|
const [columnsOpen, setColumnsOpen] = useState6(false);
|
|
8868
8973
|
const [typographyOpen, setTypographyOpen] = useState6(false);
|
|
8974
|
+
const [selectedCell, setSelectedCell] = useState6(null);
|
|
8869
8975
|
const english = language === "en";
|
|
8870
8976
|
const canEdit = editable && Boolean(onChange);
|
|
8871
8977
|
const tableRoot = useRef4(null);
|
|
@@ -8903,10 +9009,17 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
8903
9009
|
onChange?.({
|
|
8904
9010
|
...value4,
|
|
8905
9011
|
columns: value4.columns.filter((column) => column.key !== deleteTarget.id),
|
|
8906
|
-
rows: value4.rows.map((row) =>
|
|
8907
|
-
...row
|
|
8908
|
-
|
|
8909
|
-
|
|
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
|
+
})
|
|
8910
9023
|
});
|
|
8911
9024
|
}
|
|
8912
9025
|
setDeleteTarget(null);
|
|
@@ -8937,7 +9050,19 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
8937
9050
|
};
|
|
8938
9051
|
const activeTag = tags.includes(tag) ? tag : "";
|
|
8939
9052
|
const filtered = filterFeesRows(value4, search, activeTag);
|
|
8940
|
-
const
|
|
9053
|
+
const displayedRows = canEdit ? filtered : sortFeesRowsByName(filtered, language);
|
|
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
|
+
]);
|
|
8941
9066
|
const moveColumn = (from, to) => onChange?.({
|
|
8942
9067
|
...value4,
|
|
8943
9068
|
columns: moveFeesItem(value4.columns, from, to)
|
|
@@ -8990,6 +9115,14 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
8990
9115
|
rows: 2,
|
|
8991
9116
|
value: column.title,
|
|
8992
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
|
+
}),
|
|
8993
9126
|
onChange: (event) => onChange?.({
|
|
8994
9127
|
...value4,
|
|
8995
9128
|
columns: value4.columns.map((item) => item.key === column.key ? {
|
|
@@ -9014,6 +9147,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9014
9147
|
})
|
|
9015
9148
|
]
|
|
9016
9149
|
}) : /* @__PURE__ */ _jsx3(FeesCellContent, {
|
|
9150
|
+
$align: column.textAlign ?? value4.typography?.thead?.textAlign,
|
|
9017
9151
|
$alignRight: rightAlignedColumns.has(column.key),
|
|
9018
9152
|
children: column.title
|
|
9019
9153
|
}),
|
|
@@ -9021,6 +9155,15 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9021
9155
|
rows: Math.max(2, (row.cells[column.key] ?? "").split("\n").length),
|
|
9022
9156
|
value: row.cells[column.key] ?? "",
|
|
9023
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
|
+
}),
|
|
9024
9167
|
onChange: (event) => changeRow(row.id, {
|
|
9025
9168
|
cells: {
|
|
9026
9169
|
...row.cells,
|
|
@@ -9028,6 +9171,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9028
9171
|
}
|
|
9029
9172
|
})
|
|
9030
9173
|
}) : /* @__PURE__ */ _jsx3(FeesCellContent, {
|
|
9174
|
+
$align: row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign,
|
|
9031
9175
|
$alignRight: rightAlignedColumns.has(column.key),
|
|
9032
9176
|
children: row.cells[column.key] ?? ""
|
|
9033
9177
|
})
|
|
@@ -9113,7 +9257,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9113
9257
|
items: [
|
|
9114
9258
|
{
|
|
9115
9259
|
id: "",
|
|
9116
|
-
label:
|
|
9260
|
+
label: labels2?.all ?? "T\u1EA5t c\u1EA3"
|
|
9117
9261
|
},
|
|
9118
9262
|
...tags.map((item) => ({
|
|
9119
9263
|
id: item,
|
|
@@ -9131,8 +9275,8 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9131
9275
|
children: /* @__PURE__ */ _jsx3(InputCommon, {
|
|
9132
9276
|
leftIcon: /* @__PURE__ */ _jsx3(FeesSearchIcon, {}),
|
|
9133
9277
|
size: "sm",
|
|
9134
|
-
"aria-label":
|
|
9135
|
-
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",
|
|
9136
9280
|
value: search,
|
|
9137
9281
|
onChange: (event) => {
|
|
9138
9282
|
setSearch(event.target.value);
|
|
@@ -9145,6 +9289,17 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9145
9289
|
}),
|
|
9146
9290
|
canEdit && /* @__PURE__ */ _jsxs3(EditorActions, {
|
|
9147
9291
|
children: [
|
|
9292
|
+
/* @__PURE__ */ _jsx3(EditorButton, {
|
|
9293
|
+
type: "button",
|
|
9294
|
+
onClick: () => {
|
|
9295
|
+
onChange?.({
|
|
9296
|
+
...value4,
|
|
9297
|
+
rows: sortFeesRowsByName(value4.rows, language)
|
|
9298
|
+
});
|
|
9299
|
+
setPage(1);
|
|
9300
|
+
},
|
|
9301
|
+
children: english ? "Sort names A\u2013Z" : "S\u1EAFp x\u1EBFp t\xEAn A\u2013Z"
|
|
9302
|
+
}),
|
|
9148
9303
|
/* @__PURE__ */ _jsx3(EditorButton, {
|
|
9149
9304
|
type: "button",
|
|
9150
9305
|
onClick: () => {
|
|
@@ -9219,6 +9374,14 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9219
9374
|
})
|
|
9220
9375
|
})
|
|
9221
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
|
+
}),
|
|
9222
9385
|
/* @__PURE__ */ _jsx3(AlignedFeesTable, {
|
|
9223
9386
|
$typography: value4.typography,
|
|
9224
9387
|
$mobileColumnWidths: columns.map((column) => Math.ceil((mobileColumnWidths[column.key] ?? 88) * mobileFontScale)),
|
|
@@ -9229,7 +9392,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9229
9392
|
dataSource: pagination.rows,
|
|
9230
9393
|
rowKey: "id",
|
|
9231
9394
|
size,
|
|
9232
|
-
empty:
|
|
9395
|
+
empty: labels2?.empty ?? "Kh\xF4ng t\xECm th\u1EA5y h\xE0ng h\xF3a",
|
|
9233
9396
|
scroll: {
|
|
9234
9397
|
x: canEdit ? Math.max(1440, value4.columns.reduce((sum, column) => sum + (columnWidths[column.key] ?? 140), 0) + 300) : value4.columns.length * 170 + 8
|
|
9235
9398
|
}
|
|
@@ -9382,7 +9545,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9382
9545
|
]
|
|
9383
9546
|
}),
|
|
9384
9547
|
/* @__PURE__ */ _jsx3(DialogActions, {
|
|
9385
|
-
children: /* @__PURE__ */ _jsx3(
|
|
9548
|
+
children: /* @__PURE__ */ _jsx3(Button9, {
|
|
9386
9549
|
variant: "contained",
|
|
9387
9550
|
onClick: () => setColumnsOpen(false),
|
|
9388
9551
|
children: "Xong"
|
|
@@ -9422,11 +9585,11 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9422
9585
|
}),
|
|
9423
9586
|
/* @__PURE__ */ _jsxs3(DialogActions, {
|
|
9424
9587
|
children: [
|
|
9425
|
-
/* @__PURE__ */ _jsx3(
|
|
9588
|
+
/* @__PURE__ */ _jsx3(Button9, {
|
|
9426
9589
|
onClick: () => setCreateTagOpen(false),
|
|
9427
9590
|
children: "H\u1EE7y"
|
|
9428
9591
|
}),
|
|
9429
|
-
/* @__PURE__ */ _jsx3(
|
|
9592
|
+
/* @__PURE__ */ _jsx3(Button9, {
|
|
9430
9593
|
variant: "contained",
|
|
9431
9594
|
disabled: !newTagName || duplicateTag,
|
|
9432
9595
|
onClick: createTag,
|
|
@@ -9461,12 +9624,12 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9461
9624
|
}),
|
|
9462
9625
|
/* @__PURE__ */ _jsxs3(DialogActions, {
|
|
9463
9626
|
children: [
|
|
9464
|
-
/* @__PURE__ */ _jsx3(
|
|
9627
|
+
/* @__PURE__ */ _jsx3(Button9, {
|
|
9465
9628
|
autoFocus: true,
|
|
9466
9629
|
onClick: () => setDeleteTarget(null),
|
|
9467
9630
|
children: "H\u1EE7y"
|
|
9468
9631
|
}),
|
|
9469
|
-
/* @__PURE__ */ _jsxs3(
|
|
9632
|
+
/* @__PURE__ */ _jsxs3(Button9, {
|
|
9470
9633
|
color: "error",
|
|
9471
9634
|
variant: "contained",
|
|
9472
9635
|
onClick: confirmDelete,
|
|
@@ -9485,7 +9648,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels, size = "
|
|
|
9485
9648
|
}
|
|
9486
9649
|
|
|
9487
9650
|
// src/commodity-original/app/bang-phi-ky-quy/FeesAndMarginContent.tsx
|
|
9488
|
-
import { jsx as
|
|
9651
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
9489
9652
|
var monthCodes = [
|
|
9490
9653
|
"F",
|
|
9491
9654
|
"G",
|
|
@@ -9506,12 +9669,12 @@ function FeesAndMarginContent({ content, editable, onChange, readOnlyFields }) {
|
|
|
9506
9669
|
const [activeMonth] = useState7(0);
|
|
9507
9670
|
const field = `${content.__cmsLanguage === "en" ? "en" : "vi"}.feesTable`;
|
|
9508
9671
|
const data = parseFeesTable(content[field], defaultFeesTable((key) => String(t(key))));
|
|
9509
|
-
return /* @__PURE__ */
|
|
9510
|
-
/* @__PURE__ */
|
|
9511
|
-
/* @__PURE__ */
|
|
9512
|
-
/* @__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") })
|
|
9513
9676
|
] }),
|
|
9514
|
-
/* @__PURE__ */
|
|
9677
|
+
/* @__PURE__ */ jsx21(
|
|
9515
9678
|
FeesTable,
|
|
9516
9679
|
{
|
|
9517
9680
|
value: data,
|
|
@@ -9523,16 +9686,16 @@ function FeesAndMarginContent({ content, editable, onChange, readOnlyFields }) {
|
|
|
9523
9686
|
labels: { search: t("fees.searchPlaceholder"), all: t("fees.categories.all"), empty: t("fees.empty") }
|
|
9524
9687
|
}
|
|
9525
9688
|
),
|
|
9526
|
-
/* @__PURE__ */
|
|
9527
|
-
/* @__PURE__ */
|
|
9528
|
-
/* @__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(
|
|
9529
9692
|
FeesMonthButton,
|
|
9530
9693
|
{
|
|
9531
9694
|
"aria-pressed": activeMonth === index,
|
|
9532
9695
|
type: "button",
|
|
9533
9696
|
children: [
|
|
9534
|
-
/* @__PURE__ */
|
|
9535
|
-
/* @__PURE__ */
|
|
9697
|
+
/* @__PURE__ */ jsx21(ExactText, { cmsAs: FeesMonthName, children: t("fees.monthNumber", { month: index + 1 }) }),
|
|
9698
|
+
/* @__PURE__ */ jsx21(ExactText, { cmsAs: FeesMonthCode, children: code })
|
|
9536
9699
|
]
|
|
9537
9700
|
}
|
|
9538
9701
|
) }, code)) })
|
|
@@ -9542,7 +9705,7 @@ function FeesAndMarginContent({ content, editable, onChange, readOnlyFields }) {
|
|
|
9542
9705
|
|
|
9543
9706
|
// src/commodity-original/app/chinh-sach/PolicyContent.tsx
|
|
9544
9707
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
9545
|
-
import { jsx as
|
|
9708
|
+
import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
9546
9709
|
var textBlockStyles = { h1: PageTitle, h2: SectionTitle, h3: SubsectionTitle, p: Paragraph };
|
|
9547
9710
|
function keys(prefix, count) {
|
|
9548
9711
|
return Array.from({ length: count }, (_, index) => `${prefix}.${index}`);
|
|
@@ -9565,100 +9728,100 @@ function LeadText({
|
|
|
9565
9728
|
...label ? [{ start: 0, end: label.length, bold: true }] : [],
|
|
9566
9729
|
...destination && value4 ? [{ start, end: text2.length, href: destination, bold: true, newTab: external }] : []
|
|
9567
9730
|
] };
|
|
9568
|
-
return /* @__PURE__ */
|
|
9569
|
-
label ? /* @__PURE__ */
|
|
9731
|
+
return /* @__PURE__ */ jsxs16(ExactText, { cmsField: translationKey, cmsAs: InlineLink, cmsDefaultRichText: defaults, children: [
|
|
9732
|
+
label ? /* @__PURE__ */ jsx22("strong", { children: label }) : null,
|
|
9570
9733
|
text2.slice(label.length, start),
|
|
9571
|
-
destination ? /* @__PURE__ */
|
|
9734
|
+
destination ? /* @__PURE__ */ jsx22("strong", { children: value4 }) : value4
|
|
9572
9735
|
] });
|
|
9573
9736
|
}
|
|
9574
9737
|
function PrivacyPolicyPage() {
|
|
9575
9738
|
const { t, i18n } = useTranslation5();
|
|
9576
9739
|
const language = i18n.resolvedLanguage === "en" ? "en" : "vi";
|
|
9577
|
-
return /* @__PURE__ */
|
|
9578
|
-
/* @__PURE__ */
|
|
9579
|
-
/* @__PURE__ */
|
|
9580
|
-
/* @__PURE__ */
|
|
9581
|
-
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))
|
|
9582
9745
|
] }),
|
|
9583
|
-
/* @__PURE__ */
|
|
9584
|
-
/* @__PURE__ */
|
|
9585
|
-
/* @__PURE__ */
|
|
9586
|
-
/* @__PURE__ */
|
|
9587
|
-
/* @__PURE__ */
|
|
9588
|
-
/* @__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)) })
|
|
9589
9752
|
] }),
|
|
9590
|
-
/* @__PURE__ */
|
|
9591
|
-
/* @__PURE__ */
|
|
9592
|
-
/* @__PURE__ */
|
|
9593
|
-
/* @__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)) })
|
|
9594
9757
|
] })
|
|
9595
9758
|
] }),
|
|
9596
|
-
/* @__PURE__ */
|
|
9597
|
-
/* @__PURE__ */
|
|
9598
|
-
/* @__PURE__ */
|
|
9599
|
-
/* @__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)) })
|
|
9600
9763
|
] }),
|
|
9601
|
-
/* @__PURE__ */
|
|
9602
|
-
/* @__PURE__ */
|
|
9603
|
-
/* @__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)) })
|
|
9604
9767
|
] }),
|
|
9605
|
-
/* @__PURE__ */
|
|
9606
|
-
/* @__PURE__ */
|
|
9607
|
-
/* @__PURE__ */
|
|
9608
|
-
/* @__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)) })
|
|
9609
9772
|
] }),
|
|
9610
|
-
/* @__PURE__ */
|
|
9611
|
-
/* @__PURE__ */
|
|
9612
|
-
/* @__PURE__ */
|
|
9613
|
-
/* @__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)) })
|
|
9614
9777
|
] }),
|
|
9615
|
-
/* @__PURE__ */
|
|
9616
|
-
/* @__PURE__ */
|
|
9617
|
-
/* @__PURE__ */
|
|
9618
|
-
/* @__PURE__ */
|
|
9619
|
-
/* @__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)) })
|
|
9620
9783
|
] }),
|
|
9621
|
-
/* @__PURE__ */
|
|
9622
|
-
/* @__PURE__ */
|
|
9623
|
-
/* @__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)) })
|
|
9624
9787
|
] })
|
|
9625
9788
|
] }),
|
|
9626
|
-
/* @__PURE__ */
|
|
9627
|
-
/* @__PURE__ */
|
|
9628
|
-
/* @__PURE__ */
|
|
9629
|
-
/* @__PURE__ */
|
|
9630
|
-
/* @__PURE__ */
|
|
9631
|
-
/* @__PURE__ */
|
|
9632
|
-
/* @__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)) })
|
|
9633
9796
|
] }),
|
|
9634
|
-
/* @__PURE__ */
|
|
9797
|
+
/* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: "policy.deletion.consequences" }) })
|
|
9635
9798
|
] })
|
|
9636
9799
|
] }),
|
|
9637
|
-
/* @__PURE__ */
|
|
9638
|
-
/* @__PURE__ */
|
|
9639
|
-
/* @__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)) })
|
|
9640
9803
|
] }),
|
|
9641
|
-
/* @__PURE__ */
|
|
9642
|
-
/* @__PURE__ */
|
|
9643
|
-
/* @__PURE__ */
|
|
9644
|
-
/* @__PURE__ */
|
|
9645
|
-
/* @__PURE__ */
|
|
9646
|
-
/* @__PURE__ */
|
|
9647
|
-
/* @__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(
|
|
9648
9811
|
LeadText,
|
|
9649
9812
|
{
|
|
9650
9813
|
translationKey: "policy.contact.phone",
|
|
9651
9814
|
href: "tel:0938427079"
|
|
9652
9815
|
}
|
|
9653
9816
|
) }),
|
|
9654
|
-
/* @__PURE__ */
|
|
9817
|
+
/* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(
|
|
9655
9818
|
LeadText,
|
|
9656
9819
|
{
|
|
9657
9820
|
translationKey: "policy.contact.email",
|
|
9658
9821
|
href: "mailto:admin@wikex.vn"
|
|
9659
9822
|
}
|
|
9660
9823
|
) }),
|
|
9661
|
-
/* @__PURE__ */
|
|
9824
|
+
/* @__PURE__ */ jsx22("li", { children: /* @__PURE__ */ jsx22(
|
|
9662
9825
|
LeadText,
|
|
9663
9826
|
{
|
|
9664
9827
|
translationKey: "policy.contact.website",
|
|
@@ -9667,7 +9830,7 @@ function PrivacyPolicyPage() {
|
|
|
9667
9830
|
}
|
|
9668
9831
|
) })
|
|
9669
9832
|
] }),
|
|
9670
|
-
/* @__PURE__ */
|
|
9833
|
+
/* @__PURE__ */ jsx22(Paragraph, { children: /* @__PURE__ */ jsx22(LeadText, { translationKey: "policy.contact.response" }) })
|
|
9671
9834
|
] })
|
|
9672
9835
|
] }) }) });
|
|
9673
9836
|
}
|
|
@@ -9709,14 +9872,14 @@ var ComingSoonDescription = styled13.p.withConfig({
|
|
|
9709
9872
|
], ({ theme }) => theme.colors.text.secondary);
|
|
9710
9873
|
|
|
9711
9874
|
// src/commodity-original/app/comming-soon/ComingSoonContent.tsx
|
|
9712
|
-
import { jsx as
|
|
9875
|
+
import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
9713
9876
|
function ComingSoonContent() {
|
|
9714
9877
|
const router = useRouter();
|
|
9715
9878
|
const { t } = useTranslation6();
|
|
9716
9879
|
const artwork = useCmsImage("comingSoonImage", "/comming/comming_soon.png");
|
|
9717
|
-
return /* @__PURE__ */
|
|
9718
|
-
/* @__PURE__ */
|
|
9719
|
-
/* @__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(
|
|
9720
9883
|
Image4,
|
|
9721
9884
|
{
|
|
9722
9885
|
src: artwork,
|
|
@@ -9727,13 +9890,13 @@ function ComingSoonContent() {
|
|
|
9727
9890
|
sizes: "(max-width: 767px) 280px, 340px"
|
|
9728
9891
|
}
|
|
9729
9892
|
),
|
|
9730
|
-
/* @__PURE__ */
|
|
9893
|
+
/* @__PURE__ */ jsx23(CmsImageAction, { field: "comingSoonImage" })
|
|
9731
9894
|
] }),
|
|
9732
|
-
/* @__PURE__ */
|
|
9733
|
-
/* @__PURE__ */
|
|
9734
|
-
/* @__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") })
|
|
9735
9898
|
] }),
|
|
9736
|
-
/* @__PURE__ */
|
|
9899
|
+
/* @__PURE__ */ jsx23(
|
|
9737
9900
|
Button_default,
|
|
9738
9901
|
{
|
|
9739
9902
|
className: "coming-soon-cta",
|
|
@@ -9974,66 +10137,66 @@ function SupportRequestBlock() {
|
|
|
9974
10137
|
}
|
|
9975
10138
|
|
|
9976
10139
|
// src/commodity-original/app/khieu-nai/ComplaintsContent.tsx
|
|
9977
|
-
import { Fragment as Fragment7, jsx as
|
|
10140
|
+
import { Fragment as Fragment7, jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
9978
10141
|
function ComplaintPolicyPage() {
|
|
9979
|
-
return /* @__PURE__ */
|
|
9980
|
-
/* @__PURE__ */
|
|
9981
|
-
/* @__PURE__ */
|
|
9982
|
-
/* @__PURE__ */
|
|
9983
|
-
/* @__PURE__ */
|
|
9984
|
-
/* @__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." })
|
|
9985
10148
|
] }),
|
|
9986
|
-
/* @__PURE__ */
|
|
9987
|
-
/* @__PURE__ */
|
|
9988
|
-
/* @__PURE__ */
|
|
9989
|
-
/* @__PURE__ */
|
|
9990
|
-
/* @__PURE__ */
|
|
9991
|
-
/* @__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." })
|
|
9992
10155
|
] }),
|
|
9993
|
-
/* @__PURE__ */
|
|
9994
|
-
/* @__PURE__ */
|
|
9995
|
-
/* @__PURE__ */
|
|
9996
|
-
/* @__PURE__ */
|
|
9997
|
-
/* @__PURE__ */
|
|
9998
|
-
/* @__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):" }),
|
|
9999
10162
|
" ",
|
|
10000
|
-
/* @__PURE__ */
|
|
10163
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.11", cmsAs: "a", href: "tel:0938427079", children: "0938427079" })
|
|
10001
10164
|
] }),
|
|
10002
|
-
/* @__PURE__ */
|
|
10003
|
-
/* @__PURE__ */
|
|
10165
|
+
/* @__PURE__ */ jsxs18("li", { children: [
|
|
10166
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.12", cmsAs: "strong", children: "Th\u01B0 \u0111i\u1EC7n t\u1EED:" }),
|
|
10004
10167
|
" ",
|
|
10005
|
-
/* @__PURE__ */
|
|
10168
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.13", cmsAs: "a", href: "mailto:admin@wikex.vn", children: "admin@wikex.vn" })
|
|
10006
10169
|
] }),
|
|
10007
|
-
/* @__PURE__ */
|
|
10008
|
-
/* @__PURE__ */
|
|
10170
|
+
/* @__PURE__ */ jsxs18("li", { children: [
|
|
10171
|
+
/* @__PURE__ */ jsx24(ExactText, { cmsField: "complaints.text.14", cmsAs: "strong", children: "G\u1EEDi tr\u1EF1c ti\u1EBFp:" }),
|
|
10009
10172
|
" 36 M\u1EA1c \u0110\u0129nh Chi, Ph\u01B0\u1EDDng T\xE2n \u0110\u1ECBnh, TP. H\u1ED3 Ch\xED Minh, Vi\u1EC7t Nam."
|
|
10010
10173
|
] })
|
|
10011
10174
|
] })
|
|
10012
10175
|
] }),
|
|
10013
|
-
/* @__PURE__ */
|
|
10014
|
-
/* @__PURE__ */
|
|
10015
|
-
/* @__PURE__ */
|
|
10016
|
-
/* @__PURE__ */
|
|
10017
|
-
/* @__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." })
|
|
10018
10181
|
] }),
|
|
10019
|
-
/* @__PURE__ */
|
|
10020
|
-
/* @__PURE__ */
|
|
10021
|
-
/* @__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." })
|
|
10022
10185
|
] }),
|
|
10023
|
-
/* @__PURE__ */
|
|
10024
|
-
/* @__PURE__ */
|
|
10025
|
-
/* @__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." })
|
|
10026
10189
|
] })
|
|
10027
10190
|
] }),
|
|
10028
|
-
/* @__PURE__ */
|
|
10029
|
-
/* @__PURE__ */
|
|
10030
|
-
/* @__PURE__ */
|
|
10031
|
-
/* @__PURE__ */
|
|
10032
|
-
/* @__PURE__ */
|
|
10033
|
-
/* @__PURE__ */
|
|
10034
|
-
/* @__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." })
|
|
10035
10198
|
] }),
|
|
10036
|
-
/* @__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." })
|
|
10037
10200
|
] })
|
|
10038
10201
|
] }) })
|
|
10039
10202
|
] });
|
|
@@ -10115,7 +10278,7 @@ var BlogCardDescription = styled16.p.withConfig({
|
|
|
10115
10278
|
], ({ theme }) => theme.colors.text.secondary, BlogCardContent, BlogCardContent);
|
|
10116
10279
|
|
|
10117
10280
|
// src/commodity-original/components/BlogCard/index.tsx
|
|
10118
|
-
import { Fragment as Fragment8, jsx as
|
|
10281
|
+
import { Fragment as Fragment8, jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
10119
10282
|
function BlogCardContentBody({
|
|
10120
10283
|
date,
|
|
10121
10284
|
description,
|
|
@@ -10126,8 +10289,8 @@ function BlogCardContentBody({
|
|
|
10126
10289
|
size,
|
|
10127
10290
|
title
|
|
10128
10291
|
}) {
|
|
10129
|
-
return /* @__PURE__ */
|
|
10130
|
-
/* @__PURE__ */
|
|
10292
|
+
return /* @__PURE__ */ jsxs19(Fragment8, { children: [
|
|
10293
|
+
/* @__PURE__ */ jsx25(BlogCardImagePanel, { "data-orientation": orientation, "data-size": size, children: /* @__PURE__ */ jsx25(
|
|
10131
10294
|
BlogCardImage,
|
|
10132
10295
|
{
|
|
10133
10296
|
alt: imageAlt,
|
|
@@ -10137,10 +10300,10 @@ function BlogCardContentBody({
|
|
|
10137
10300
|
src: image2
|
|
10138
10301
|
}
|
|
10139
10302
|
) }),
|
|
10140
|
-
/* @__PURE__ */
|
|
10141
|
-
/* @__PURE__ */
|
|
10142
|
-
/* @__PURE__ */
|
|
10143
|
-
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
|
|
10144
10307
|
] })
|
|
10145
10308
|
] });
|
|
10146
10309
|
}
|
|
@@ -10159,7 +10322,7 @@ function BlogCard({
|
|
|
10159
10322
|
badgeSize = size === "sm" ? "sm" : "md",
|
|
10160
10323
|
title
|
|
10161
10324
|
}) {
|
|
10162
|
-
const content = /* @__PURE__ */
|
|
10325
|
+
const content = /* @__PURE__ */ jsx25(
|
|
10163
10326
|
BlogCardContentBody,
|
|
10164
10327
|
{
|
|
10165
10328
|
date,
|
|
@@ -10173,13 +10336,13 @@ function BlogCard({
|
|
|
10173
10336
|
}
|
|
10174
10337
|
);
|
|
10175
10338
|
if (href) {
|
|
10176
|
-
return /* @__PURE__ */
|
|
10177
|
-
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,
|
|
10178
10341
|
content
|
|
10179
10342
|
] });
|
|
10180
10343
|
}
|
|
10181
|
-
return /* @__PURE__ */
|
|
10182
|
-
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,
|
|
10183
10346
|
content
|
|
10184
10347
|
] });
|
|
10185
10348
|
}
|
|
@@ -10219,7 +10382,7 @@ var InformationHeroIllustration = styled17.div.withConfig({
|
|
|
10219
10382
|
], ({ theme }) => theme.colors.informationHero.foreground, ({ theme }) => theme.colors.informationHero.placeholder);
|
|
10220
10383
|
|
|
10221
10384
|
// src/commodity-original/components/InformationHeroSection/index.tsx
|
|
10222
|
-
import { Fragment as Fragment9, jsx as
|
|
10385
|
+
import { Fragment as Fragment9, jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
10223
10386
|
function InformationHeroSection({
|
|
10224
10387
|
title,
|
|
10225
10388
|
children,
|
|
@@ -10237,18 +10400,18 @@ function InformationHeroSection({
|
|
|
10237
10400
|
"--wikex-information-hero-background": `url("${desktopBackground}")`,
|
|
10238
10401
|
"--wikex-information-hero-mobile-background": `url("${mobileBackground}")`
|
|
10239
10402
|
};
|
|
10240
|
-
return /* @__PURE__ */
|
|
10403
|
+
return /* @__PURE__ */ jsxs20(
|
|
10241
10404
|
InformationHeroRoot,
|
|
10242
10405
|
{
|
|
10243
10406
|
className: `${className ?? ""} wikex-cms-image-host`.trim(),
|
|
10244
10407
|
style,
|
|
10245
10408
|
children: [
|
|
10246
|
-
/* @__PURE__ */
|
|
10247
|
-
/* @__PURE__ */
|
|
10248
|
-
/* @__PURE__ */
|
|
10249
|
-
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
|
|
10250
10413
|
] }),
|
|
10251
|
-
/* @__PURE__ */
|
|
10414
|
+
/* @__PURE__ */ jsx26(CmsImageAction, { field: "informationHeroBackgroundImage" })
|
|
10252
10415
|
]
|
|
10253
10416
|
}
|
|
10254
10417
|
);
|
|
@@ -10451,7 +10614,7 @@ var CalendarDialogActions = styled18.div.withConfig({
|
|
|
10451
10614
|
], ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.content, ({ theme }) => theme.colors.action.primaryForeground, ({ theme }) => theme.colors.datePicker.selected);
|
|
10452
10615
|
|
|
10453
10616
|
// src/commodity-original/components/DateRangePicker/index.tsx
|
|
10454
|
-
import { Fragment as Fragment10, jsx as
|
|
10617
|
+
import { Fragment as Fragment10, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
10455
10618
|
var toDate = (value4) => {
|
|
10456
10619
|
const [year, month, day] = value4.split("-").map(Number);
|
|
10457
10620
|
return new Date(year, month - 1, day);
|
|
@@ -10565,10 +10728,10 @@ function DateRangePicker({
|
|
|
10565
10728
|
const changeMonth = (offset) => setMonth(
|
|
10566
10729
|
(current) => new Date(current.getFullYear(), current.getMonth() + offset, 1)
|
|
10567
10730
|
);
|
|
10568
|
-
const calendar = /* @__PURE__ */
|
|
10569
|
-
/* @__PURE__ */
|
|
10570
|
-
/* @__PURE__ */
|
|
10571
|
-
/* @__PURE__ */
|
|
10731
|
+
const calendar = /* @__PURE__ */ jsxs21(Fragment10, { children: [
|
|
10732
|
+
/* @__PURE__ */ jsxs21(CalendarDialogBody, { children: [
|
|
10733
|
+
/* @__PURE__ */ jsxs21(CalendarDialogHeader, { children: [
|
|
10734
|
+
/* @__PURE__ */ jsx27(
|
|
10572
10735
|
CalendarNavigationButton,
|
|
10573
10736
|
{
|
|
10574
10737
|
"aria-label": t("dateRangePicker.previousMonth"),
|
|
@@ -10577,14 +10740,14 @@ function DateRangePicker({
|
|
|
10577
10740
|
type: "button"
|
|
10578
10741
|
}
|
|
10579
10742
|
),
|
|
10580
|
-
isMobile ? /* @__PURE__ */
|
|
10743
|
+
isMobile ? /* @__PURE__ */ jsx27(Dialog4.Title, { asChild: true, children: /* @__PURE__ */ jsx27(CalendarDialogMonth, { children: new Intl.DateTimeFormat(locale, {
|
|
10581
10744
|
month: "long",
|
|
10582
10745
|
year: "numeric"
|
|
10583
|
-
}).format(month) }) }) : /* @__PURE__ */
|
|
10746
|
+
}).format(month) }) }) : /* @__PURE__ */ jsx27(CalendarDialogMonth, { children: new Intl.DateTimeFormat(locale, {
|
|
10584
10747
|
month: "long",
|
|
10585
10748
|
year: "numeric"
|
|
10586
10749
|
}).format(month) }),
|
|
10587
|
-
/* @__PURE__ */
|
|
10750
|
+
/* @__PURE__ */ jsx27(
|
|
10588
10751
|
CalendarNavigationButton,
|
|
10589
10752
|
{
|
|
10590
10753
|
"aria-label": t("dateRangePicker.nextMonth"),
|
|
@@ -10594,20 +10757,20 @@ function DateRangePicker({
|
|
|
10594
10757
|
}
|
|
10595
10758
|
)
|
|
10596
10759
|
] }),
|
|
10597
|
-
/* @__PURE__ */
|
|
10598
|
-
/* @__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) => {
|
|
10599
10762
|
const start = day.iso === draft.from;
|
|
10600
10763
|
const end = day.iso === draft.to;
|
|
10601
10764
|
const within = Boolean(
|
|
10602
10765
|
draft.from && draft.to && day.iso > draft.from && day.iso < draft.to
|
|
10603
10766
|
);
|
|
10604
|
-
return /* @__PURE__ */
|
|
10767
|
+
return /* @__PURE__ */ jsx27(
|
|
10605
10768
|
DayCell,
|
|
10606
10769
|
{
|
|
10607
10770
|
"data-in-range": within || void 0,
|
|
10608
10771
|
"data-range-end": end || void 0,
|
|
10609
10772
|
"data-range-start": start || void 0,
|
|
10610
|
-
children: /* @__PURE__ */
|
|
10773
|
+
children: /* @__PURE__ */ jsx27(
|
|
10611
10774
|
DayButton,
|
|
10612
10775
|
{
|
|
10613
10776
|
"aria-label": format(day.iso),
|
|
@@ -10624,23 +10787,23 @@ function DateRangePicker({
|
|
|
10624
10787
|
);
|
|
10625
10788
|
}) })
|
|
10626
10789
|
] }),
|
|
10627
|
-
/* @__PURE__ */
|
|
10628
|
-
/* @__PURE__ */
|
|
10629
|
-
/* @__PURE__ */
|
|
10630
|
-
/* @__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" })
|
|
10631
10794
|
] }),
|
|
10632
|
-
/* @__PURE__ */
|
|
10633
|
-
/* @__PURE__ */
|
|
10634
|
-
/* @__PURE__ */
|
|
10635
|
-
/* @__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, {})
|
|
10636
10799
|
] }),
|
|
10637
|
-
/* @__PURE__ */
|
|
10638
|
-
/* @__PURE__ */
|
|
10639
|
-
/* @__PURE__ */
|
|
10800
|
+
/* @__PURE__ */ jsxs21(RangeSummaryDate, { "data-align": "end", children: [
|
|
10801
|
+
/* @__PURE__ */ jsx27(RangeSummaryLabel, { children: to }),
|
|
10802
|
+
/* @__PURE__ */ jsx27(RangeSummaryValue, { children: format(draft.to) || "\u2014" })
|
|
10640
10803
|
] })
|
|
10641
10804
|
] }),
|
|
10642
|
-
/* @__PURE__ */
|
|
10643
|
-
/* @__PURE__ */
|
|
10805
|
+
/* @__PURE__ */ jsxs21(CalendarDialogActions, { children: [
|
|
10806
|
+
/* @__PURE__ */ jsx27(
|
|
10644
10807
|
"button",
|
|
10645
10808
|
{
|
|
10646
10809
|
onClick: () => {
|
|
@@ -10651,7 +10814,7 @@ function DateRangePicker({
|
|
|
10651
10814
|
children: t("dateRangePicker.cancel")
|
|
10652
10815
|
}
|
|
10653
10816
|
),
|
|
10654
|
-
/* @__PURE__ */
|
|
10817
|
+
/* @__PURE__ */ jsx27(
|
|
10655
10818
|
"button",
|
|
10656
10819
|
{
|
|
10657
10820
|
disabled: duration === void 0,
|
|
@@ -10667,15 +10830,15 @@ function DateRangePicker({
|
|
|
10667
10830
|
)
|
|
10668
10831
|
] })
|
|
10669
10832
|
] });
|
|
10670
|
-
return /* @__PURE__ */
|
|
10671
|
-
/* @__PURE__ */
|
|
10833
|
+
return /* @__PURE__ */ jsxs21(DateRangeRoot, { className, "data-size": size, ref: rootRef, children: [
|
|
10834
|
+
/* @__PURE__ */ jsx27(DateFieldGroup, { children: /* @__PURE__ */ jsx27(
|
|
10672
10835
|
DateField,
|
|
10673
10836
|
{
|
|
10674
10837
|
"aria-expanded": open,
|
|
10675
10838
|
"aria-haspopup": "dialog",
|
|
10676
10839
|
onClick: () => show("from"),
|
|
10677
10840
|
type: "button",
|
|
10678
|
-
children: /* @__PURE__ */
|
|
10841
|
+
children: /* @__PURE__ */ jsx27(
|
|
10679
10842
|
DateFieldValue,
|
|
10680
10843
|
{
|
|
10681
10844
|
"data-placeholder": !value4.from || void 0,
|
|
@@ -10685,15 +10848,15 @@ function DateRangePicker({
|
|
|
10685
10848
|
)
|
|
10686
10849
|
}
|
|
10687
10850
|
) }),
|
|
10688
|
-
/* @__PURE__ */
|
|
10689
|
-
/* @__PURE__ */
|
|
10851
|
+
/* @__PURE__ */ jsx27(RangeArrow, { "aria-hidden": "true", children: /* @__PURE__ */ jsx27(RangeArrowIcon, {}) }),
|
|
10852
|
+
/* @__PURE__ */ jsx27(DateFieldGroup, { children: /* @__PURE__ */ jsx27(
|
|
10690
10853
|
DateField,
|
|
10691
10854
|
{
|
|
10692
10855
|
"aria-expanded": open,
|
|
10693
10856
|
"aria-haspopup": "dialog",
|
|
10694
10857
|
onClick: () => show("to"),
|
|
10695
10858
|
type: "button",
|
|
10696
|
-
children: /* @__PURE__ */
|
|
10859
|
+
children: /* @__PURE__ */ jsx27(
|
|
10697
10860
|
DateFieldValue,
|
|
10698
10861
|
{
|
|
10699
10862
|
"data-placeholder": !value4.to || void 0,
|
|
@@ -10703,7 +10866,7 @@ function DateRangePicker({
|
|
|
10703
10866
|
)
|
|
10704
10867
|
}
|
|
10705
10868
|
) }),
|
|
10706
|
-
/* @__PURE__ */
|
|
10869
|
+
/* @__PURE__ */ jsx27(
|
|
10707
10870
|
CalendarIcon,
|
|
10708
10871
|
{
|
|
10709
10872
|
"aria-label": t("dateRangePicker.dialogLabel"),
|
|
@@ -10711,7 +10874,7 @@ function DateRangePicker({
|
|
|
10711
10874
|
type: "button"
|
|
10712
10875
|
}
|
|
10713
10876
|
),
|
|
10714
|
-
open && isMobile ? /* @__PURE__ */
|
|
10877
|
+
open && isMobile ? /* @__PURE__ */ jsx27(
|
|
10715
10878
|
Dialog4.Root,
|
|
10716
10879
|
{
|
|
10717
10880
|
onOpenChange: (nextOpen) => {
|
|
@@ -10719,12 +10882,12 @@ function DateRangePicker({
|
|
|
10719
10882
|
setOpen(nextOpen);
|
|
10720
10883
|
},
|
|
10721
10884
|
open,
|
|
10722
|
-
children: /* @__PURE__ */
|
|
10723
|
-
/* @__PURE__ */
|
|
10724
|
-
/* @__PURE__ */
|
|
10885
|
+
children: /* @__PURE__ */ jsxs21(Dialog4.Portal, { children: [
|
|
10886
|
+
/* @__PURE__ */ jsx27(CalendarDrawerOverlay, {}),
|
|
10887
|
+
/* @__PURE__ */ jsx27(CalendarDrawerContent, { "aria-describedby": void 0, children: calendar })
|
|
10725
10888
|
] })
|
|
10726
10889
|
}
|
|
10727
|
-
) : open ? /* @__PURE__ */
|
|
10890
|
+
) : open ? /* @__PURE__ */ jsx27(
|
|
10728
10891
|
CalendarDialog,
|
|
10729
10892
|
{
|
|
10730
10893
|
"aria-label": t("dateRangePicker.dialogLabel"),
|
|
@@ -10823,7 +10986,7 @@ var NotiSidebarList = styled19.div.withConfig({
|
|
|
10823
10986
|
]);
|
|
10824
10987
|
|
|
10825
10988
|
// src/commodity-original/app/noti-mxv/NotiMxvContent.tsx
|
|
10826
|
-
import { jsx as
|
|
10989
|
+
import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
10827
10990
|
var notifications = [
|
|
10828
10991
|
{
|
|
10829
10992
|
date: "27/08/2026",
|
|
@@ -10889,20 +11052,20 @@ function NotiMxvContent() {
|
|
|
10889
11052
|
setDateRange({ from: "", to: "" });
|
|
10890
11053
|
setPage(1);
|
|
10891
11054
|
};
|
|
10892
|
-
return /* @__PURE__ */
|
|
10893
|
-
/* @__PURE__ */
|
|
10894
|
-
/* @__PURE__ */
|
|
10895
|
-
/* @__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(
|
|
10896
11059
|
InputCommon,
|
|
10897
11060
|
{
|
|
10898
|
-
leftIcon: /* @__PURE__ */
|
|
11061
|
+
leftIcon: /* @__PURE__ */ jsx28(SearchIcon, {}),
|
|
10899
11062
|
placeholder: t("notiMxv.searchPlaceholder"),
|
|
10900
11063
|
value: search,
|
|
10901
11064
|
onChange: (event) => setSearch(event.target.value),
|
|
10902
11065
|
size: isMobile ? "sm" : "md"
|
|
10903
11066
|
}
|
|
10904
11067
|
) }),
|
|
10905
|
-
/* @__PURE__ */
|
|
11068
|
+
/* @__PURE__ */ jsx28(
|
|
10906
11069
|
FilterDateRangePicker,
|
|
10907
11070
|
{
|
|
10908
11071
|
fromLabel: t("notiMxv.fromDate"),
|
|
@@ -10912,11 +11075,11 @@ function NotiMxvContent() {
|
|
|
10912
11075
|
onChange: setDateRange
|
|
10913
11076
|
}
|
|
10914
11077
|
),
|
|
10915
|
-
/* @__PURE__ */
|
|
11078
|
+
/* @__PURE__ */ jsx28(ExactText, { cmsAs: FilterResetButton, type: "button", onClick: resetFilters, children: t("notiMxv.reset") })
|
|
10916
11079
|
] }) }),
|
|
10917
|
-
/* @__PURE__ */
|
|
10918
|
-
/* @__PURE__ */
|
|
10919
|
-
/* @__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(
|
|
10920
11083
|
BlogCard,
|
|
10921
11084
|
{
|
|
10922
11085
|
date: notification.date,
|
|
@@ -10929,7 +11092,7 @@ function NotiMxvContent() {
|
|
|
10929
11092
|
},
|
|
10930
11093
|
notification.id
|
|
10931
11094
|
)) }),
|
|
10932
|
-
/* @__PURE__ */
|
|
11095
|
+
/* @__PURE__ */ jsx28(NotiPagination, { children: /* @__PURE__ */ jsx28(
|
|
10933
11096
|
Pagination2,
|
|
10934
11097
|
{
|
|
10935
11098
|
onPageChange: setPage,
|
|
@@ -10938,9 +11101,9 @@ function NotiMxvContent() {
|
|
|
10938
11101
|
}
|
|
10939
11102
|
) })
|
|
10940
11103
|
] }),
|
|
10941
|
-
/* @__PURE__ */
|
|
10942
|
-
/* @__PURE__ */
|
|
10943
|
-
/* @__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(
|
|
10944
11107
|
BlogCard,
|
|
10945
11108
|
{
|
|
10946
11109
|
date: notification.date,
|
|
@@ -11015,17 +11178,17 @@ var BreadcrumbSeparator = styled20.span.withConfig({
|
|
|
11015
11178
|
], ({ theme }) => theme.colors.text.placeholder, chevron_right_default, chevron_right_default);
|
|
11016
11179
|
|
|
11017
11180
|
// src/commodity-original/components/Breadcrumb/index.tsx
|
|
11018
|
-
import { jsx as
|
|
11181
|
+
import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
11019
11182
|
function Breadcrumb({
|
|
11020
11183
|
items,
|
|
11021
11184
|
ariaLabel = "Breadcrumb",
|
|
11022
11185
|
className
|
|
11023
11186
|
}) {
|
|
11024
|
-
return /* @__PURE__ */
|
|
11187
|
+
return /* @__PURE__ */ jsx29(BreadcrumbNav, { "aria-label": ariaLabel, className, children: /* @__PURE__ */ jsx29(BreadcrumbList, { children: items.map((item, index) => {
|
|
11025
11188
|
const isCurrent = index === items.length - 1;
|
|
11026
|
-
return /* @__PURE__ */
|
|
11027
|
-
isCurrent ? /* @__PURE__ */
|
|
11028
|
-
!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" })
|
|
11029
11192
|
] }, `${item.label}-${index}`);
|
|
11030
11193
|
}) }) });
|
|
11031
11194
|
}
|
|
@@ -11209,7 +11372,7 @@ var ProductCardDescription = styled21.p.withConfig({
|
|
|
11209
11372
|
], ({ theme }) => theme.colors.text.content);
|
|
11210
11373
|
|
|
11211
11374
|
// src/commodity-original/components/ProductCard/index.tsx
|
|
11212
|
-
import { Fragment as Fragment11, jsx as
|
|
11375
|
+
import { Fragment as Fragment11, jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
11213
11376
|
function ProductCardContent({
|
|
11214
11377
|
description,
|
|
11215
11378
|
image: image2,
|
|
@@ -11217,8 +11380,8 @@ function ProductCardContent({
|
|
|
11217
11380
|
imageFit = "cover",
|
|
11218
11381
|
title
|
|
11219
11382
|
}) {
|
|
11220
|
-
return /* @__PURE__ */
|
|
11221
|
-
/* @__PURE__ */
|
|
11383
|
+
return /* @__PURE__ */ jsxs24(Fragment11, { children: [
|
|
11384
|
+
/* @__PURE__ */ jsx30(ProductCardImagePanel, { children: /* @__PURE__ */ jsx30(
|
|
11222
11385
|
ProductCardImage,
|
|
11223
11386
|
{
|
|
11224
11387
|
alt: imageAlt,
|
|
@@ -11228,12 +11391,12 @@ function ProductCardContent({
|
|
|
11228
11391
|
style: imageFit === "contain" ? { objectFit: "contain", padding: 24 } : void 0
|
|
11229
11392
|
}
|
|
11230
11393
|
) }),
|
|
11231
|
-
/* @__PURE__ */
|
|
11232
|
-
/* @__PURE__ */
|
|
11233
|
-
/* @__PURE__ */
|
|
11234
|
-
/* @__PURE__ */
|
|
11394
|
+
/* @__PURE__ */ jsxs24(ProductCardCopy, { children: [
|
|
11395
|
+
/* @__PURE__ */ jsxs24(ProductCardTitleRow, { children: [
|
|
11396
|
+
/* @__PURE__ */ jsx30(ProductCardTitle, { children: title }),
|
|
11397
|
+
/* @__PURE__ */ jsx30(ProductCardArrow, { "aria-hidden": "true" })
|
|
11235
11398
|
] }),
|
|
11236
|
-
/* @__PURE__ */
|
|
11399
|
+
/* @__PURE__ */ jsx30(ProductCardDescription, { children: description })
|
|
11237
11400
|
] })
|
|
11238
11401
|
] });
|
|
11239
11402
|
}
|
|
@@ -11246,7 +11409,7 @@ function ProductCard({
|
|
|
11246
11409
|
imageFit,
|
|
11247
11410
|
title
|
|
11248
11411
|
}) {
|
|
11249
|
-
const content = /* @__PURE__ */
|
|
11412
|
+
const content = /* @__PURE__ */ jsx30(
|
|
11250
11413
|
ProductCardContent,
|
|
11251
11414
|
{
|
|
11252
11415
|
description,
|
|
@@ -11257,9 +11420,9 @@ function ProductCard({
|
|
|
11257
11420
|
}
|
|
11258
11421
|
);
|
|
11259
11422
|
if (href) {
|
|
11260
|
-
return /* @__PURE__ */
|
|
11423
|
+
return /* @__PURE__ */ jsx30(ProductCardLink, { "aria-label": title, className, href, children: content });
|
|
11261
11424
|
}
|
|
11262
|
-
return /* @__PURE__ */
|
|
11425
|
+
return /* @__PURE__ */ jsx30(ProductCardArticle, { className, children: content });
|
|
11263
11426
|
}
|
|
11264
11427
|
|
|
11265
11428
|
// src/commodity-original/app/products/ProductsContent.tsx
|
|
@@ -11300,7 +11463,7 @@ var ProductsPagination = styled22.div.withConfig({
|
|
|
11300
11463
|
]);
|
|
11301
11464
|
|
|
11302
11465
|
// src/commodity-original/app/products/ProductsContent.tsx
|
|
11303
|
-
import { jsx as
|
|
11466
|
+
import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
11304
11467
|
var products2 = [
|
|
11305
11468
|
...commodityGroups[0].items.map((item, itemIndex) => ({
|
|
11306
11469
|
descriptionKey: `landing.commodities.groups.0.items.${itemIndex}.body`,
|
|
@@ -11395,8 +11558,8 @@ function ProductsContent() {
|
|
|
11395
11558
|
(page - 1) * productsPerPage,
|
|
11396
11559
|
page * productsPerPage
|
|
11397
11560
|
);
|
|
11398
|
-
return /* @__PURE__ */
|
|
11399
|
-
/* @__PURE__ */
|
|
11561
|
+
return /* @__PURE__ */ jsxs25(ProductsMain, { children: [
|
|
11562
|
+
/* @__PURE__ */ jsx31(BreadcrumbSlot, { children: /* @__PURE__ */ jsx31(
|
|
11400
11563
|
Breadcrumb,
|
|
11401
11564
|
{
|
|
11402
11565
|
items: [
|
|
@@ -11405,13 +11568,13 @@ function ProductsContent() {
|
|
|
11405
11568
|
]
|
|
11406
11569
|
}
|
|
11407
11570
|
) }),
|
|
11408
|
-
/* @__PURE__ */
|
|
11409
|
-
/* @__PURE__ */
|
|
11410
|
-
/* @__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) => {
|
|
11411
11574
|
const productTitle = t(product.nameKey, {
|
|
11412
11575
|
defaultValue: product.fallbackName
|
|
11413
11576
|
});
|
|
11414
|
-
return /* @__PURE__ */
|
|
11577
|
+
return /* @__PURE__ */ jsx31(
|
|
11415
11578
|
ProductCard,
|
|
11416
11579
|
{
|
|
11417
11580
|
description: t(product.descriptionKey, {
|
|
@@ -11425,7 +11588,7 @@ function ProductsContent() {
|
|
|
11425
11588
|
product.id
|
|
11426
11589
|
);
|
|
11427
11590
|
}) }),
|
|
11428
|
-
/* @__PURE__ */
|
|
11591
|
+
/* @__PURE__ */ jsx31(ProductsPagination, { children: /* @__PURE__ */ jsx31(
|
|
11429
11592
|
Pagination2,
|
|
11430
11593
|
{
|
|
11431
11594
|
onPageChange: setPage,
|
|
@@ -11685,7 +11848,7 @@ var RelatedProductArrow = styled23.span.withConfig({
|
|
|
11685
11848
|
], RelatedProductAction);
|
|
11686
11849
|
|
|
11687
11850
|
// src/commodity-original/app/products/[slug]/ProductDetailContent.tsx
|
|
11688
|
-
import { jsx as
|
|
11851
|
+
import { jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11689
11852
|
var contractSpecifications = [
|
|
11690
11853
|
{ label: "M\xE3 h\xE0ng h\xF3a", value: ["ABCNHS"] },
|
|
11691
11854
|
{ label: "\u0110\u1ED9 l\u1EDBn h\u1EE3p \u0111\u1ED3ng", value: ["5000 gi\xE1/LOT"] },
|
|
@@ -11769,8 +11932,8 @@ function ProductDetailContent({
|
|
|
11769
11932
|
const { t } = useTranslation11();
|
|
11770
11933
|
const resolveImage = useCmsImageResolver();
|
|
11771
11934
|
const title = t(product.nameKey, { defaultValue: product.fallbackName });
|
|
11772
|
-
return /* @__PURE__ */
|
|
11773
|
-
/* @__PURE__ */
|
|
11935
|
+
return /* @__PURE__ */ jsxs26(DetailMain, { children: [
|
|
11936
|
+
/* @__PURE__ */ jsx32(
|
|
11774
11937
|
Breadcrumb,
|
|
11775
11938
|
{
|
|
11776
11939
|
items: [
|
|
@@ -11780,47 +11943,47 @@ function ProductDetailContent({
|
|
|
11780
11943
|
]
|
|
11781
11944
|
}
|
|
11782
11945
|
),
|
|
11783
|
-
/* @__PURE__ */
|
|
11784
|
-
/* @__PURE__ */
|
|
11785
|
-
/* @__PURE__ */
|
|
11786
|
-
/* @__PURE__ */
|
|
11787
|
-
/* @__PURE__ */
|
|
11788
|
-
/* @__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") })
|
|
11789
11952
|
] }),
|
|
11790
|
-
/* @__PURE__ */
|
|
11791
|
-
/* @__PURE__ */
|
|
11792
|
-
/* @__PURE__ */
|
|
11793
|
-
/* @__PURE__ */
|
|
11794
|
-
/* @__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)) })
|
|
11795
11958
|
] }, specification.label)) })
|
|
11796
11959
|
] }),
|
|
11797
|
-
/* @__PURE__ */
|
|
11798
|
-
/* @__PURE__ */
|
|
11799
|
-
/* @__PURE__ */
|
|
11800
|
-
/* @__PURE__ */
|
|
11801
|
-
/* @__PURE__ */
|
|
11802
|
-
/* @__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:" })
|
|
11803
11966
|
] })
|
|
11804
11967
|
] }),
|
|
11805
|
-
/* @__PURE__ */
|
|
11806
|
-
/* @__PURE__ */
|
|
11807
|
-
/* @__PURE__ */
|
|
11808
|
-
/* @__PURE__ */
|
|
11809
|
-
/* @__PURE__ */
|
|
11810
|
-
/* @__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" })
|
|
11811
11974
|
] }),
|
|
11812
|
-
qualityStandards.map((standard) => /* @__PURE__ */
|
|
11813
|
-
/* @__PURE__ */
|
|
11814
|
-
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))
|
|
11815
11978
|
] }, standard.label))
|
|
11816
11979
|
] })
|
|
11817
11980
|
] })
|
|
11818
11981
|
] }),
|
|
11819
|
-
/* @__PURE__ */
|
|
11820
|
-
/* @__PURE__ */
|
|
11821
|
-
/* @__PURE__ */
|
|
11822
|
-
/* @__PURE__ */
|
|
11823
|
-
/* @__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(
|
|
11824
11987
|
RelatedProductImage,
|
|
11825
11988
|
{
|
|
11826
11989
|
alt: "",
|
|
@@ -11833,14 +11996,14 @@ function ProductDetailContent({
|
|
|
11833
11996
|
$top: relatedProduct.imageTop
|
|
11834
11997
|
}
|
|
11835
11998
|
),
|
|
11836
|
-
/* @__PURE__ */
|
|
11999
|
+
/* @__PURE__ */ jsx32(CmsImageAction, { field: `productDetailRelatedImage${index + 1}` })
|
|
11837
12000
|
] }),
|
|
11838
|
-
/* @__PURE__ */
|
|
11839
|
-
/* @__PURE__ */
|
|
11840
|
-
/* @__PURE__ */
|
|
11841
|
-
/* @__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: [
|
|
11842
12005
|
"Xem th\xEAm",
|
|
11843
|
-
/* @__PURE__ */
|
|
12006
|
+
/* @__PURE__ */ jsx32(RelatedProductArrow, { "aria-hidden": "true" })
|
|
11844
12007
|
] })
|
|
11845
12008
|
] })
|
|
11846
12009
|
] }, relatedProduct.image)) })
|
|
@@ -12097,7 +12260,7 @@ var FeaturedArrow = styled24.span.withConfig({
|
|
|
12097
12260
|
]);
|
|
12098
12261
|
|
|
12099
12262
|
// src/commodity-original/app/thong-tin-wikex/FeaturedArticles.tsx
|
|
12100
|
-
import { jsx as
|
|
12263
|
+
import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
12101
12264
|
function FeaturedArticles() {
|
|
12102
12265
|
const { t } = useTranslation12();
|
|
12103
12266
|
const { isMobile } = useResponsive();
|
|
@@ -12108,10 +12271,10 @@ function FeaturedArticles() {
|
|
|
12108
12271
|
(current) => (current + step + featuredArticles.length) % featuredArticles.length
|
|
12109
12272
|
);
|
|
12110
12273
|
};
|
|
12111
|
-
return /* @__PURE__ */
|
|
12112
|
-
/* @__PURE__ */
|
|
12113
|
-
/* @__PURE__ */
|
|
12114
|
-
/* @__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(
|
|
12115
12278
|
FeaturedViewport,
|
|
12116
12279
|
{
|
|
12117
12280
|
id: "wikex-featured-carousel",
|
|
@@ -12122,17 +12285,17 @@ function FeaturedArticles() {
|
|
|
12122
12285
|
if (event.key === "ArrowLeft") moveSlide(-1);
|
|
12123
12286
|
if (event.key === "ArrowRight") moveSlide(1);
|
|
12124
12287
|
},
|
|
12125
|
-
children: /* @__PURE__ */
|
|
12288
|
+
children: /* @__PURE__ */ jsx33(
|
|
12126
12289
|
FeaturedTrack,
|
|
12127
12290
|
{
|
|
12128
12291
|
style: {
|
|
12129
12292
|
transform: `translate3d(calc(-${activeSlide * 100}% - ${activeSlide * 32}px), 0, 0)`
|
|
12130
12293
|
},
|
|
12131
|
-
children: featuredArticles.map((article, index) => /* @__PURE__ */
|
|
12294
|
+
children: featuredArticles.map((article, index) => /* @__PURE__ */ jsx33(
|
|
12132
12295
|
FeaturedSlide,
|
|
12133
12296
|
{
|
|
12134
12297
|
"aria-hidden": index !== activeSlide,
|
|
12135
|
-
children: /* @__PURE__ */
|
|
12298
|
+
children: /* @__PURE__ */ jsx33(
|
|
12136
12299
|
FeaturedCard,
|
|
12137
12300
|
{
|
|
12138
12301
|
badgeLabel: t(`wikexInformation.categories.${article.category}`),
|
|
@@ -12154,18 +12317,18 @@ function FeaturedArticles() {
|
|
|
12154
12317
|
)
|
|
12155
12318
|
}
|
|
12156
12319
|
),
|
|
12157
|
-
/* @__PURE__ */
|
|
12158
|
-
/* @__PURE__ */
|
|
12320
|
+
/* @__PURE__ */ jsxs27(FeaturedControls, { "aria-label": t("wikexInformation.featured.navigation"), children: [
|
|
12321
|
+
/* @__PURE__ */ jsx33(
|
|
12159
12322
|
FeaturedArrowButton,
|
|
12160
12323
|
{
|
|
12161
12324
|
"aria-controls": "wikex-featured-carousel",
|
|
12162
12325
|
"aria-label": t("common.previous"),
|
|
12163
12326
|
onClick: () => moveSlide(-1),
|
|
12164
12327
|
type: "button",
|
|
12165
|
-
children: /* @__PURE__ */
|
|
12328
|
+
children: /* @__PURE__ */ jsx33(FeaturedArrow, { "aria-hidden": "true", "data-direction": "previous" })
|
|
12166
12329
|
}
|
|
12167
12330
|
),
|
|
12168
|
-
/* @__PURE__ */
|
|
12331
|
+
/* @__PURE__ */ jsx33(FeaturedDots, { children: featuredArticles.map((article, index) => /* @__PURE__ */ jsx33(
|
|
12169
12332
|
FeaturedDot,
|
|
12170
12333
|
{
|
|
12171
12334
|
"aria-controls": "wikex-featured-carousel",
|
|
@@ -12176,14 +12339,14 @@ function FeaturedArticles() {
|
|
|
12176
12339
|
},
|
|
12177
12340
|
article.id
|
|
12178
12341
|
)) }),
|
|
12179
|
-
/* @__PURE__ */
|
|
12342
|
+
/* @__PURE__ */ jsx33(
|
|
12180
12343
|
FeaturedArrowButton,
|
|
12181
12344
|
{
|
|
12182
12345
|
"aria-controls": "wikex-featured-carousel",
|
|
12183
12346
|
"aria-label": t("common.next"),
|
|
12184
12347
|
onClick: () => moveSlide(1),
|
|
12185
12348
|
type: "button",
|
|
12186
|
-
children: /* @__PURE__ */
|
|
12349
|
+
children: /* @__PURE__ */ jsx33(FeaturedArrow, { "aria-hidden": "true" })
|
|
12187
12350
|
}
|
|
12188
12351
|
)
|
|
12189
12352
|
] })
|
|
@@ -12408,12 +12571,12 @@ function WikexInformationArticlesSection() {
|
|
|
12408
12571
|
}
|
|
12409
12572
|
|
|
12410
12573
|
// src/shared/download-button-link.tsx
|
|
12411
|
-
import { jsx as
|
|
12574
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
12412
12575
|
function CmsDownloadButtonLink({ field, children, ...props }) {
|
|
12413
12576
|
const content = useCmsElementContent();
|
|
12414
12577
|
const editing = useCmsElementEditing();
|
|
12415
12578
|
const link2 = getCmsButtonLink(content ?? {}, field);
|
|
12416
|
-
return /* @__PURE__ */
|
|
12579
|
+
return /* @__PURE__ */ jsx34(
|
|
12417
12580
|
"a",
|
|
12418
12581
|
{
|
|
12419
12582
|
...props,
|
|
@@ -12670,7 +12833,7 @@ function useAppTheme() {
|
|
|
12670
12833
|
}
|
|
12671
12834
|
|
|
12672
12835
|
// src/commodity-original/components/LandingPage/LandingFooter.tsx
|
|
12673
|
-
import { jsx as
|
|
12836
|
+
import { jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12674
12837
|
function FooterLinks({ listKey, titleKey }) {
|
|
12675
12838
|
const { t, i18n } = useTranslation14();
|
|
12676
12839
|
const language = i18n.resolvedLanguage?.startsWith("en") ? "en" : "vi";
|
|
@@ -12678,12 +12841,12 @@ function FooterLinks({ listKey, titleKey }) {
|
|
|
12678
12841
|
const editable = useCmsElementEditing()?.editable;
|
|
12679
12842
|
const items = parseChromeItems(content?.[`${language}.${listKey}`]) ?? [];
|
|
12680
12843
|
if (!items.length) return null;
|
|
12681
|
-
return /* @__PURE__ */
|
|
12682
|
-
/* @__PURE__ */
|
|
12844
|
+
return /* @__PURE__ */ jsxs28("nav", { className: "footer-nav", "aria-label": t(titleKey), children: [
|
|
12845
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "strong", children: t(titleKey) }),
|
|
12683
12846
|
items.map((item, index) => {
|
|
12684
12847
|
const href = chromeItemHref(item);
|
|
12685
12848
|
const props = { cmsField: `${listKey}.${index}.label`, ...chromeItemAttributes(language, listKey, index) };
|
|
12686
|
-
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);
|
|
12687
12850
|
})
|
|
12688
12851
|
] });
|
|
12689
12852
|
}
|
|
@@ -12703,12 +12866,12 @@ function LandingFooter() {
|
|
|
12703
12866
|
"/Logo/logo_original_dark.png"
|
|
12704
12867
|
);
|
|
12705
12868
|
const mxvLogo = useCmsImage("footerMxvLogoImage", "/Logo/Logo_mxv.png");
|
|
12706
|
-
return /* @__PURE__ */
|
|
12707
|
-
/* @__PURE__ */
|
|
12708
|
-
/* @__PURE__ */
|
|
12709
|
-
/* @__PURE__ */
|
|
12710
|
-
/* @__PURE__ */
|
|
12711
|
-
/* @__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(
|
|
12712
12875
|
WikiLogo,
|
|
12713
12876
|
{
|
|
12714
12877
|
src: isDarkTheme ? darkLogo : lightLogo,
|
|
@@ -12718,7 +12881,7 @@ function LandingFooter() {
|
|
|
12718
12881
|
loading: "eager"
|
|
12719
12882
|
}
|
|
12720
12883
|
) }),
|
|
12721
|
-
/* @__PURE__ */
|
|
12884
|
+
/* @__PURE__ */ jsx35(
|
|
12722
12885
|
MxvLogo,
|
|
12723
12886
|
{
|
|
12724
12887
|
src: mxvLogo,
|
|
@@ -12729,20 +12892,20 @@ function LandingFooter() {
|
|
|
12729
12892
|
}
|
|
12730
12893
|
)
|
|
12731
12894
|
] }),
|
|
12732
|
-
/* @__PURE__ */
|
|
12895
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "p", children: t("landing.footer.description") })
|
|
12733
12896
|
] }),
|
|
12734
|
-
/* @__PURE__ */
|
|
12735
|
-
/* @__PURE__ */
|
|
12736
|
-
/* @__PURE__ */
|
|
12737
|
-
/* @__PURE__ */
|
|
12738
|
-
/* @__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") })
|
|
12739
12902
|
] }),
|
|
12740
|
-
contacts.length > 0 && /* @__PURE__ */
|
|
12741
|
-
item.icon && /* @__PURE__ */
|
|
12742
|
-
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 })
|
|
12743
12906
|
] }, index)) })
|
|
12744
12907
|
] }),
|
|
12745
|
-
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(
|
|
12746
12909
|
"a",
|
|
12747
12910
|
{
|
|
12748
12911
|
href: chromeItemHref(item),
|
|
@@ -12753,25 +12916,25 @@ function LandingFooter() {
|
|
|
12753
12916
|
target: "_blank",
|
|
12754
12917
|
rel: "noopener noreferrer",
|
|
12755
12918
|
children: [
|
|
12756
|
-
item.icon && /* @__PURE__ */
|
|
12757
|
-
/* @__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 })
|
|
12758
12921
|
]
|
|
12759
12922
|
},
|
|
12760
12923
|
index
|
|
12761
12924
|
)) })
|
|
12762
12925
|
] })
|
|
12763
12926
|
] }),
|
|
12764
|
-
/* @__PURE__ */
|
|
12765
|
-
/* @__PURE__ */
|
|
12766
|
-
/* @__PURE__ */
|
|
12767
|
-
/* @__PURE__ */
|
|
12768
|
-
/* @__PURE__ */
|
|
12769
|
-
/* @__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" })
|
|
12770
12933
|
] }),
|
|
12771
|
-
downloads.length > 0 && /* @__PURE__ */
|
|
12772
|
-
/* @__PURE__ */
|
|
12773
|
-
/* @__PURE__ */
|
|
12774
|
-
/* @__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(
|
|
12775
12938
|
CmsDownloadButtonLink,
|
|
12776
12939
|
{
|
|
12777
12940
|
field: `${language}.footer.downloads.${index}.label`,
|
|
@@ -12779,10 +12942,10 @@ function LandingFooter() {
|
|
|
12779
12942
|
...chromeItemAttributes(language, "footer.downloads", index),
|
|
12780
12943
|
"aria-label": item.label,
|
|
12781
12944
|
children: [
|
|
12782
|
-
item.icon && /* @__PURE__ */
|
|
12783
|
-
/* @__PURE__ */
|
|
12784
|
-
item.prefix && /* @__PURE__ */
|
|
12785
|
-
/* @__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(
|
|
12786
12949
|
ExactText,
|
|
12787
12950
|
{
|
|
12788
12951
|
cmsAs: "strong",
|
|
@@ -12792,7 +12955,7 @@ function LandingFooter() {
|
|
|
12792
12955
|
children: item.label
|
|
12793
12956
|
}
|
|
12794
12957
|
),
|
|
12795
|
-
!editable && item.label === "Google Play" && !item.labelTextLayout && !item.labelColor && /* @__PURE__ */
|
|
12958
|
+
!editable && item.label === "Google Play" && !item.labelTextLayout && !item.labelColor && /* @__PURE__ */ jsx35(
|
|
12796
12959
|
Image8,
|
|
12797
12960
|
{
|
|
12798
12961
|
className: "footer-googleplay-wordmark",
|
|
@@ -12808,23 +12971,23 @@ function LandingFooter() {
|
|
|
12808
12971
|
},
|
|
12809
12972
|
index
|
|
12810
12973
|
)) }),
|
|
12811
|
-
downloads.map((item, index) => item.icon?.includes("footer-desktop.svg") ? /* @__PURE__ */
|
|
12812
|
-
/* @__PURE__ */
|
|
12813
|
-
/* @__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 })
|
|
12814
12977
|
] }, index) : null)
|
|
12815
12978
|
] })
|
|
12816
12979
|
] })
|
|
12817
12980
|
] })
|
|
12818
12981
|
] }),
|
|
12819
|
-
/* @__PURE__ */
|
|
12820
|
-
/* @__PURE__ */
|
|
12982
|
+
/* @__PURE__ */ jsx35("hr", { className: "footer-divider" }),
|
|
12983
|
+
/* @__PURE__ */ jsx35(ExactText, { cmsAs: "p", className: "copyright", children: t("landing.footer.copyright") })
|
|
12821
12984
|
] }) });
|
|
12822
12985
|
}
|
|
12823
12986
|
|
|
12824
12987
|
// src/commodity-original/components/Footer/index.tsx
|
|
12825
|
-
import { jsx as
|
|
12988
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
12826
12989
|
function Footer() {
|
|
12827
|
-
return /* @__PURE__ */
|
|
12990
|
+
return /* @__PURE__ */ jsx36(PageShell, { as: "div", children: /* @__PURE__ */ jsx36(LandingFooter, {}) });
|
|
12828
12991
|
}
|
|
12829
12992
|
|
|
12830
12993
|
// src/commodity-original/components/Header/index.tsx
|
|
@@ -12875,7 +13038,7 @@ function ThemeToggle({ variant = "floating" }) {
|
|
|
12875
13038
|
|
|
12876
13039
|
// src/commodity-original/components/Header/index.tsx
|
|
12877
13040
|
import { useTranslation as useTranslation16 } from "react-i18next";
|
|
12878
|
-
import { jsx as
|
|
13041
|
+
import { jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
12879
13042
|
import { createElement as createElement3 } from "react";
|
|
12880
13043
|
var languages = [
|
|
12881
13044
|
{
|
|
@@ -12890,7 +13053,7 @@ var languages = [
|
|
|
12890
13053
|
}
|
|
12891
13054
|
];
|
|
12892
13055
|
function LanguageIcon() {
|
|
12893
|
-
return /* @__PURE__ */
|
|
13056
|
+
return /* @__PURE__ */ jsx37(
|
|
12894
13057
|
"svg",
|
|
12895
13058
|
{
|
|
12896
13059
|
"aria-hidden": "true",
|
|
@@ -12899,7 +13062,7 @@ function LanguageIcon() {
|
|
|
12899
13062
|
viewBox: "0 0 24 24",
|
|
12900
13063
|
width: "24",
|
|
12901
13064
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12902
|
-
children: /* @__PURE__ */
|
|
13065
|
+
children: /* @__PURE__ */ jsx37(
|
|
12903
13066
|
"path",
|
|
12904
13067
|
{
|
|
12905
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",
|
|
@@ -12920,8 +13083,8 @@ function LanguageSwitcher({
|
|
|
12920
13083
|
const { t } = useTranslation16();
|
|
12921
13084
|
const triggerRef = useRef7(null);
|
|
12922
13085
|
const currentLanguage = languages.find((item) => item.value === language);
|
|
12923
|
-
return /* @__PURE__ */
|
|
12924
|
-
/* @__PURE__ */
|
|
13086
|
+
return /* @__PURE__ */ jsxs29(DropdownMenu2.Root, { children: [
|
|
13087
|
+
/* @__PURE__ */ jsx37(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
12925
13088
|
LanguageTrigger,
|
|
12926
13089
|
{
|
|
12927
13090
|
"aria-label": t("language.current", {
|
|
@@ -12930,10 +13093,10 @@ function LanguageSwitcher({
|
|
|
12930
13093
|
ref: triggerRef,
|
|
12931
13094
|
title: t("language.change"),
|
|
12932
13095
|
type: "button",
|
|
12933
|
-
children: /* @__PURE__ */
|
|
13096
|
+
children: /* @__PURE__ */ jsx37(LanguageIcon, {})
|
|
12934
13097
|
}
|
|
12935
13098
|
) }),
|
|
12936
|
-
/* @__PURE__ */
|
|
13099
|
+
/* @__PURE__ */ jsx37(DropdownMenu2.Portal, { container: portalContainer, children: /* @__PURE__ */ jsx37(
|
|
12937
13100
|
LanguageMenuContent,
|
|
12938
13101
|
{
|
|
12939
13102
|
align: compact ? "end" : "start",
|
|
@@ -12944,13 +13107,13 @@ function LanguageSwitcher({
|
|
|
12944
13107
|
triggerRef.current?.focus({ preventScroll: true });
|
|
12945
13108
|
},
|
|
12946
13109
|
sideOffset: 4,
|
|
12947
|
-
children: /* @__PURE__ */
|
|
13110
|
+
children: /* @__PURE__ */ jsx37(
|
|
12948
13111
|
DropdownMenu2.RadioGroup,
|
|
12949
13112
|
{
|
|
12950
13113
|
onValueChange: (value4) => onLanguageChange(value4),
|
|
12951
13114
|
value: language,
|
|
12952
|
-
children: languages.map((item) => /* @__PURE__ */
|
|
12953
|
-
/* @__PURE__ */
|
|
13115
|
+
children: languages.map((item) => /* @__PURE__ */ jsxs29(LanguageMenuItem, { value: item.value, children: [
|
|
13116
|
+
/* @__PURE__ */ jsx37(LanguageFlag, { children: /* @__PURE__ */ jsx37(
|
|
12954
13117
|
Image9,
|
|
12955
13118
|
{
|
|
12956
13119
|
alt: "",
|
|
@@ -12960,8 +13123,8 @@ function LanguageSwitcher({
|
|
|
12960
13123
|
width: item.value === "vi" ? 30 : 20
|
|
12961
13124
|
}
|
|
12962
13125
|
) }),
|
|
12963
|
-
/* @__PURE__ */
|
|
12964
|
-
/* @__PURE__ */
|
|
13126
|
+
/* @__PURE__ */ jsx37(ExactText, { cmsAs: "span", children: item.label }),
|
|
13127
|
+
/* @__PURE__ */ jsx37(LanguageItemIndicator, { children: /* @__PURE__ */ jsx37(
|
|
12965
13128
|
Image9,
|
|
12966
13129
|
{
|
|
12967
13130
|
alt: "",
|
|
@@ -13098,9 +13261,9 @@ function Header() {
|
|
|
13098
13261
|
desktopMediaQuery.removeEventListener("change", closeDrawerOnDesktop);
|
|
13099
13262
|
};
|
|
13100
13263
|
}, []);
|
|
13101
|
-
return /* @__PURE__ */
|
|
13102
|
-
/* @__PURE__ */
|
|
13103
|
-
/* @__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(
|
|
13104
13267
|
WikiLogo,
|
|
13105
13268
|
{
|
|
13106
13269
|
src: isDarkTheme ? darkLogo : lightLogo,
|
|
@@ -13110,14 +13273,14 @@ function Header() {
|
|
|
13110
13273
|
loading: "eager"
|
|
13111
13274
|
}
|
|
13112
13275
|
) }),
|
|
13113
|
-
/* @__PURE__ */
|
|
13276
|
+
/* @__PURE__ */ jsx37(
|
|
13114
13277
|
PartnerBrand,
|
|
13115
13278
|
{
|
|
13116
13279
|
href: mxvUrl,
|
|
13117
13280
|
target: "_blank",
|
|
13118
13281
|
rel: "noopener noreferrer",
|
|
13119
13282
|
"aria-label": t("header.mxv"),
|
|
13120
|
-
children: /* @__PURE__ */
|
|
13283
|
+
children: /* @__PURE__ */ jsx37(
|
|
13121
13284
|
MxvLogo,
|
|
13122
13285
|
{
|
|
13123
13286
|
src: mxvLogo,
|
|
@@ -13130,34 +13293,34 @@ function Header() {
|
|
|
13130
13293
|
}
|
|
13131
13294
|
)
|
|
13132
13295
|
] }),
|
|
13133
|
-
/* @__PURE__ */
|
|
13296
|
+
/* @__PURE__ */ jsx37(DesktopNavigation, { "aria-label": t("header.navigation"), children: resolvedNavigationItems.map((item) => {
|
|
13134
13297
|
const isItemActive = item.children.length > 0 ? item.children.some((child) => isRouteActive(child.href)) : isRouteActive(item.href);
|
|
13135
13298
|
if (item.children.length > 0) {
|
|
13136
|
-
return /* @__PURE__ */
|
|
13299
|
+
return /* @__PURE__ */ jsxs29(
|
|
13137
13300
|
DropdownMenu2.Root,
|
|
13138
13301
|
{
|
|
13139
13302
|
modal: false,
|
|
13140
13303
|
open: isDesktopProductsOpen === item.index,
|
|
13141
13304
|
onOpenChange: (open) => setIsDesktopProductsOpen(open ? item.index : null),
|
|
13142
13305
|
children: [
|
|
13143
|
-
/* @__PURE__ */
|
|
13306
|
+
/* @__PURE__ */ jsx37(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
13144
13307
|
ProductsMenuTrigger,
|
|
13145
13308
|
{
|
|
13146
13309
|
...chromeItemAttributes(language, "header.menuItems", item.index),
|
|
13147
13310
|
type: "button",
|
|
13148
13311
|
"aria-current": isItemActive ? "page" : void 0,
|
|
13149
13312
|
"data-active": isItemActive ? "true" : void 0,
|
|
13150
|
-
children: /* @__PURE__ */
|
|
13313
|
+
children: /* @__PURE__ */ jsx37(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label })
|
|
13151
13314
|
}
|
|
13152
13315
|
) }),
|
|
13153
|
-
/* @__PURE__ */
|
|
13316
|
+
/* @__PURE__ */ jsx37(DropdownMenu2.Portal, { container: portalContainer, children: /* @__PURE__ */ jsx37(
|
|
13154
13317
|
ProductsMenuContent,
|
|
13155
13318
|
{
|
|
13156
13319
|
onInteractOutside: keepEditorToolbarOpen,
|
|
13157
13320
|
align: "center",
|
|
13158
13321
|
sideOffset: 10,
|
|
13159
13322
|
"aria-label": item.label,
|
|
13160
|
-
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) => {
|
|
13161
13324
|
if (child.linkDisabled) event.preventDefault();
|
|
13162
13325
|
}, "aria-current": isItemActive && selectedCategory === child.category ? "page" : void 0, children: child.label }) }, child.labelKey))
|
|
13163
13326
|
}
|
|
@@ -13185,8 +13348,8 @@ function Header() {
|
|
|
13185
13348
|
item.label
|
|
13186
13349
|
);
|
|
13187
13350
|
}) }),
|
|
13188
|
-
/* @__PURE__ */
|
|
13189
|
-
/* @__PURE__ */
|
|
13351
|
+
/* @__PURE__ */ jsxs29(MobileNavigation2, { children: [
|
|
13352
|
+
/* @__PURE__ */ jsx37(MobileLanguageToggle, { children: /* @__PURE__ */ jsx37(
|
|
13190
13353
|
LanguageSwitcher,
|
|
13191
13354
|
{
|
|
13192
13355
|
compact: true,
|
|
@@ -13195,15 +13358,15 @@ function Header() {
|
|
|
13195
13358
|
onLanguageChange: (nextLanguage) => void i18n.changeLanguage(nextLanguage)
|
|
13196
13359
|
}
|
|
13197
13360
|
) }),
|
|
13198
|
-
/* @__PURE__ */
|
|
13199
|
-
/* @__PURE__ */
|
|
13200
|
-
/* @__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(
|
|
13201
13364
|
MobileMenuTrigger,
|
|
13202
13365
|
{
|
|
13203
13366
|
type: "button",
|
|
13204
13367
|
ref: mobileMenuTriggerRef,
|
|
13205
13368
|
"aria-label": isMenuOpen ? t("header.closeMenu") : t("header.openMenu"),
|
|
13206
|
-
children: /* @__PURE__ */
|
|
13369
|
+
children: /* @__PURE__ */ jsx37(
|
|
13207
13370
|
MorphIcon3,
|
|
13208
13371
|
{
|
|
13209
13372
|
icon: isMenuOpen ? X2 : Menu2,
|
|
@@ -13215,9 +13378,9 @@ function Header() {
|
|
|
13215
13378
|
)
|
|
13216
13379
|
}
|
|
13217
13380
|
) }),
|
|
13218
|
-
/* @__PURE__ */
|
|
13219
|
-
/* @__PURE__ */
|
|
13220
|
-
/* @__PURE__ */
|
|
13381
|
+
/* @__PURE__ */ jsxs29(Dialog5.Portal, { container: portalContainer, children: [
|
|
13382
|
+
/* @__PURE__ */ jsx37(MobileDrawerOverlay, {}),
|
|
13383
|
+
/* @__PURE__ */ jsxs29(
|
|
13221
13384
|
MobileDrawerContent,
|
|
13222
13385
|
{
|
|
13223
13386
|
onInteractOutside: keepEditorToolbarOpen,
|
|
@@ -13236,9 +13399,9 @@ function Header() {
|
|
|
13236
13399
|
});
|
|
13237
13400
|
},
|
|
13238
13401
|
children: [
|
|
13239
|
-
/* @__PURE__ */
|
|
13240
|
-
/* @__PURE__ */
|
|
13241
|
-
/* @__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(
|
|
13242
13405
|
MorphIcon3,
|
|
13243
13406
|
{
|
|
13244
13407
|
icon: X2,
|
|
@@ -13249,8 +13412,8 @@ function Header() {
|
|
|
13249
13412
|
}
|
|
13250
13413
|
) })
|
|
13251
13414
|
] }),
|
|
13252
|
-
/* @__PURE__ */
|
|
13253
|
-
/* @__PURE__ */
|
|
13415
|
+
/* @__PURE__ */ jsxs29(MobileDrawerActions, { children: [
|
|
13416
|
+
/* @__PURE__ */ jsx37(
|
|
13254
13417
|
ExactText,
|
|
13255
13418
|
{
|
|
13256
13419
|
cmsAs: MobileDrawerLoginButton,
|
|
@@ -13262,7 +13425,7 @@ function Header() {
|
|
|
13262
13425
|
children: t("header.login")
|
|
13263
13426
|
}
|
|
13264
13427
|
),
|
|
13265
|
-
/* @__PURE__ */
|
|
13428
|
+
/* @__PURE__ */ jsx37(
|
|
13266
13429
|
ExactText,
|
|
13267
13430
|
{
|
|
13268
13431
|
cmsAs: MobileDrawerOpenAccountButton,
|
|
@@ -13287,12 +13450,12 @@ function Header() {
|
|
|
13287
13450
|
}
|
|
13288
13451
|
)
|
|
13289
13452
|
] }),
|
|
13290
|
-
/* @__PURE__ */
|
|
13453
|
+
/* @__PURE__ */ jsxs29(MobileMenuPanel, { "aria-label": t("header.mobileNavigation"), children: [
|
|
13291
13454
|
resolvedNavigationItems.map((item) => {
|
|
13292
13455
|
const isItemActive = item.children.length > 0 ? item.children.some((child) => isRouteActive(child.href)) : isRouteActive(item.href);
|
|
13293
13456
|
if (item.children.length > 0) {
|
|
13294
|
-
return /* @__PURE__ */
|
|
13295
|
-
/* @__PURE__ */
|
|
13457
|
+
return /* @__PURE__ */ jsxs29("div", { className: "mobile-menu-group", ...chromeItemAttributes(language, "header.menuItems", item.index), children: [
|
|
13458
|
+
/* @__PURE__ */ jsxs29(
|
|
13296
13459
|
"button",
|
|
13297
13460
|
{
|
|
13298
13461
|
"aria-current": isItemActive ? "page" : void 0,
|
|
@@ -13306,13 +13469,13 @@ function Header() {
|
|
|
13306
13469
|
},
|
|
13307
13470
|
type: "button",
|
|
13308
13471
|
children: [
|
|
13309
|
-
/* @__PURE__ */
|
|
13310
|
-
/* @__PURE__ */
|
|
13472
|
+
/* @__PURE__ */ jsx37(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label }),
|
|
13473
|
+
/* @__PURE__ */ jsx37(
|
|
13311
13474
|
"span",
|
|
13312
13475
|
{
|
|
13313
13476
|
"aria-hidden": "true",
|
|
13314
13477
|
className: "mobile-products-chevron",
|
|
13315
|
-
children: /* @__PURE__ */
|
|
13478
|
+
children: /* @__PURE__ */ jsx37(
|
|
13316
13479
|
MorphIcon3,
|
|
13317
13480
|
{
|
|
13318
13481
|
icon: ChevronDown,
|
|
@@ -13327,7 +13490,7 @@ function Header() {
|
|
|
13327
13490
|
]
|
|
13328
13491
|
}
|
|
13329
13492
|
),
|
|
13330
|
-
/* @__PURE__ */
|
|
13493
|
+
/* @__PURE__ */ jsx37(
|
|
13331
13494
|
"div",
|
|
13332
13495
|
{
|
|
13333
13496
|
"aria-labelledby": `mobile-products-trigger-${item.index}`,
|
|
@@ -13377,10 +13540,10 @@ function Header() {
|
|
|
13377
13540
|
setIsMenuOpen(false);
|
|
13378
13541
|
}
|
|
13379
13542
|
},
|
|
13380
|
-
/* @__PURE__ */
|
|
13543
|
+
/* @__PURE__ */ jsx37(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label })
|
|
13381
13544
|
);
|
|
13382
13545
|
}),
|
|
13383
|
-
/* @__PURE__ */
|
|
13546
|
+
/* @__PURE__ */ jsx37(Dialog5.Close, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
13384
13547
|
ExactText,
|
|
13385
13548
|
{
|
|
13386
13549
|
cmsAs: "a",
|
|
@@ -13399,9 +13562,9 @@ function Header() {
|
|
|
13399
13562
|
] })
|
|
13400
13563
|
] })
|
|
13401
13564
|
] }),
|
|
13402
|
-
/* @__PURE__ */
|
|
13403
|
-
/* @__PURE__ */
|
|
13404
|
-
/* @__PURE__ */
|
|
13565
|
+
/* @__PURE__ */ jsxs29(RightActions, { children: [
|
|
13566
|
+
/* @__PURE__ */ jsxs29("div", { children: [
|
|
13567
|
+
/* @__PURE__ */ jsx37(
|
|
13405
13568
|
LanguageSwitcher,
|
|
13406
13569
|
{
|
|
13407
13570
|
language,
|
|
@@ -13409,10 +13572,10 @@ function Header() {
|
|
|
13409
13572
|
onLanguageChange: (nextLanguage) => void i18n.changeLanguage(nextLanguage)
|
|
13410
13573
|
}
|
|
13411
13574
|
),
|
|
13412
|
-
/* @__PURE__ */
|
|
13575
|
+
/* @__PURE__ */ jsx37(ThemeToggle, { variant: "header" })
|
|
13413
13576
|
] }),
|
|
13414
|
-
/* @__PURE__ */
|
|
13415
|
-
/* @__PURE__ */
|
|
13577
|
+
/* @__PURE__ */ jsx37(ActionDivider, { "aria-hidden": "true" }),
|
|
13578
|
+
/* @__PURE__ */ jsx37(
|
|
13416
13579
|
ExactText,
|
|
13417
13580
|
{
|
|
13418
13581
|
cmsAs: LoginLink,
|
|
@@ -13424,7 +13587,7 @@ function Header() {
|
|
|
13424
13587
|
children: t("header.login")
|
|
13425
13588
|
}
|
|
13426
13589
|
),
|
|
13427
|
-
/* @__PURE__ */
|
|
13590
|
+
/* @__PURE__ */ jsx37(
|
|
13428
13591
|
ExactText,
|
|
13429
13592
|
{
|
|
13430
13593
|
cmsAs: OpenAccountButton,
|
|
@@ -13464,25 +13627,25 @@ var TitleContainer = styled28.div.withConfig({
|
|
|
13464
13627
|
]);
|
|
13465
13628
|
|
|
13466
13629
|
// src/commodity-original/components/Title/index.tsx
|
|
13467
|
-
import { jsx as
|
|
13630
|
+
import { jsx as jsx38, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
13468
13631
|
var TitleCommon = ({ title, classname, desc }) => {
|
|
13469
|
-
return /* @__PURE__ */
|
|
13470
|
-
/* @__PURE__ */
|
|
13471
|
-
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 })
|
|
13472
13635
|
] });
|
|
13473
13636
|
};
|
|
13474
13637
|
var Title_default = TitleCommon;
|
|
13475
13638
|
|
|
13476
13639
|
// src/commodity-original/components/LandingPage/AudienceSection.tsx
|
|
13477
13640
|
import { useTranslation as useTranslation17 } from "react-i18next";
|
|
13478
|
-
import { jsx as
|
|
13641
|
+
import { jsx as jsx39, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
13479
13642
|
function AudienceColumn({
|
|
13480
13643
|
items,
|
|
13481
13644
|
side
|
|
13482
13645
|
}) {
|
|
13483
|
-
return /* @__PURE__ */
|
|
13484
|
-
/* @__PURE__ */
|
|
13485
|
-
/* @__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 })
|
|
13486
13649
|
] }, item.title)) });
|
|
13487
13650
|
}
|
|
13488
13651
|
function AudienceSection() {
|
|
@@ -13500,15 +13663,15 @@ function AudienceSection() {
|
|
|
13500
13663
|
"audiencePhoneTwoImage",
|
|
13501
13664
|
"/landing-assets/audience-phones_2.webp"
|
|
13502
13665
|
);
|
|
13503
|
-
return /* @__PURE__ */
|
|
13504
|
-
/* @__PURE__ */
|
|
13666
|
+
return /* @__PURE__ */ jsx39("section", { className: "audience section", children: /* @__PURE__ */ jsxs31("div", { className: "container", children: [
|
|
13667
|
+
/* @__PURE__ */ jsx39(
|
|
13505
13668
|
Title_default,
|
|
13506
13669
|
{
|
|
13507
13670
|
classname: "audience-title",
|
|
13508
13671
|
title: t("landing.audience.title")
|
|
13509
13672
|
}
|
|
13510
13673
|
),
|
|
13511
|
-
/* @__PURE__ */
|
|
13674
|
+
/* @__PURE__ */ jsx39(
|
|
13512
13675
|
Button_default,
|
|
13513
13676
|
{
|
|
13514
13677
|
size: "sm",
|
|
@@ -13527,10 +13690,10 @@ function AudienceSection() {
|
|
|
13527
13690
|
children: t("landing.audience.cta")
|
|
13528
13691
|
}
|
|
13529
13692
|
),
|
|
13530
|
-
/* @__PURE__ */
|
|
13531
|
-
/* @__PURE__ */
|
|
13532
|
-
/* @__PURE__ */
|
|
13533
|
-
/* @__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(
|
|
13534
13697
|
Image10,
|
|
13535
13698
|
{
|
|
13536
13699
|
src: phoneOne,
|
|
@@ -13540,7 +13703,7 @@ function AudienceSection() {
|
|
|
13540
13703
|
className: "phone_1"
|
|
13541
13704
|
}
|
|
13542
13705
|
),
|
|
13543
|
-
/* @__PURE__ */
|
|
13706
|
+
/* @__PURE__ */ jsx39(
|
|
13544
13707
|
Image10,
|
|
13545
13708
|
{
|
|
13546
13709
|
src: phoneTwo,
|
|
@@ -13550,10 +13713,10 @@ function AudienceSection() {
|
|
|
13550
13713
|
className: "phone_2"
|
|
13551
13714
|
}
|
|
13552
13715
|
),
|
|
13553
|
-
/* @__PURE__ */
|
|
13554
|
-
/* @__PURE__ */
|
|
13716
|
+
/* @__PURE__ */ jsx39(CmsImageAction, { field: "audiencePhoneOneImage" }),
|
|
13717
|
+
/* @__PURE__ */ jsx39(CmsImageAction, { field: "audiencePhoneTwoImage", style: { bottom: 52 } })
|
|
13555
13718
|
] }),
|
|
13556
|
-
/* @__PURE__ */
|
|
13719
|
+
/* @__PURE__ */ jsx39(AudienceColumn, { items: audiences.slice(2), side: "right" })
|
|
13557
13720
|
] })
|
|
13558
13721
|
] }) });
|
|
13559
13722
|
}
|
|
@@ -13564,7 +13727,7 @@ import { useTranslation as useTranslation18 } from "react-i18next";
|
|
|
13564
13727
|
|
|
13565
13728
|
// src/commodity-original/components/LandingPage/BenefitIcon.tsx
|
|
13566
13729
|
import { useId as useId2 } from "react";
|
|
13567
|
-
import { jsx as
|
|
13730
|
+
import { jsx as jsx40, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
13568
13731
|
var sharedProps = {
|
|
13569
13732
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13570
13733
|
className: "benefit-icon",
|
|
@@ -13581,8 +13744,8 @@ function BenefitIcon({ name }) {
|
|
|
13581
13744
|
const isDarkTheme = themeName === "dark";
|
|
13582
13745
|
switch (name) {
|
|
13583
13746
|
case "market":
|
|
13584
|
-
return /* @__PURE__ */
|
|
13585
|
-
/* @__PURE__ */
|
|
13747
|
+
return /* @__PURE__ */ jsxs32("svg", { ...sharedProps, viewBox: "0 0 48 48", children: [
|
|
13748
|
+
/* @__PURE__ */ jsx40(
|
|
13586
13749
|
"rect",
|
|
13587
13750
|
{
|
|
13588
13751
|
x: "4",
|
|
@@ -13593,7 +13756,7 @@ function BenefitIcon({ name }) {
|
|
|
13593
13756
|
fill: "#F9BB3A"
|
|
13594
13757
|
}
|
|
13595
13758
|
),
|
|
13596
|
-
/* @__PURE__ */
|
|
13759
|
+
/* @__PURE__ */ jsx40(
|
|
13597
13760
|
"line",
|
|
13598
13761
|
{
|
|
13599
13762
|
pathLength: "1",
|
|
@@ -13606,7 +13769,7 @@ function BenefitIcon({ name }) {
|
|
|
13606
13769
|
strokeLinecap: "round"
|
|
13607
13770
|
}
|
|
13608
13771
|
),
|
|
13609
|
-
/* @__PURE__ */
|
|
13772
|
+
/* @__PURE__ */ jsx40(
|
|
13610
13773
|
"line",
|
|
13611
13774
|
{
|
|
13612
13775
|
className: "benefit-market-line benefit-market-line--1",
|
|
@@ -13620,7 +13783,7 @@ function BenefitIcon({ name }) {
|
|
|
13620
13783
|
strokeLinecap: "round"
|
|
13621
13784
|
}
|
|
13622
13785
|
),
|
|
13623
|
-
/* @__PURE__ */
|
|
13786
|
+
/* @__PURE__ */ jsx40(
|
|
13624
13787
|
"line",
|
|
13625
13788
|
{
|
|
13626
13789
|
className: "benefit-market-line benefit-market-line--3",
|
|
@@ -13634,7 +13797,7 @@ function BenefitIcon({ name }) {
|
|
|
13634
13797
|
strokeLinecap: "round"
|
|
13635
13798
|
}
|
|
13636
13799
|
),
|
|
13637
|
-
/* @__PURE__ */
|
|
13800
|
+
/* @__PURE__ */ jsx40(
|
|
13638
13801
|
"line",
|
|
13639
13802
|
{
|
|
13640
13803
|
className: "benefit-market-line benefit-market-line--2",
|
|
@@ -13650,7 +13813,7 @@ function BenefitIcon({ name }) {
|
|
|
13650
13813
|
)
|
|
13651
13814
|
] });
|
|
13652
13815
|
case "two-way":
|
|
13653
|
-
return /* @__PURE__ */
|
|
13816
|
+
return /* @__PURE__ */ jsxs32(
|
|
13654
13817
|
"svg",
|
|
13655
13818
|
{
|
|
13656
13819
|
...sharedProps,
|
|
@@ -13661,14 +13824,14 @@ function BenefitIcon({ name }) {
|
|
|
13661
13824
|
fill: "none",
|
|
13662
13825
|
className: "benefit-two-way",
|
|
13663
13826
|
children: [
|
|
13664
|
-
/* @__PURE__ */
|
|
13827
|
+
/* @__PURE__ */ jsx40(
|
|
13665
13828
|
"path",
|
|
13666
13829
|
{
|
|
13667
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",
|
|
13668
13831
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13669
13832
|
}
|
|
13670
13833
|
),
|
|
13671
|
-
/* @__PURE__ */
|
|
13834
|
+
/* @__PURE__ */ jsx40(
|
|
13672
13835
|
"path",
|
|
13673
13836
|
{
|
|
13674
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",
|
|
@@ -13679,7 +13842,7 @@ function BenefitIcon({ name }) {
|
|
|
13679
13842
|
}
|
|
13680
13843
|
);
|
|
13681
13844
|
case "futures":
|
|
13682
|
-
return /* @__PURE__ */
|
|
13845
|
+
return /* @__PURE__ */ jsxs32(
|
|
13683
13846
|
"svg",
|
|
13684
13847
|
{
|
|
13685
13848
|
...sharedProps,
|
|
@@ -13689,15 +13852,15 @@ function BenefitIcon({ name }) {
|
|
|
13689
13852
|
viewBox: "0 0 48 48",
|
|
13690
13853
|
fill: "none",
|
|
13691
13854
|
children: [
|
|
13692
|
-
/* @__PURE__ */
|
|
13855
|
+
/* @__PURE__ */ jsx40(
|
|
13693
13856
|
"path",
|
|
13694
13857
|
{
|
|
13695
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",
|
|
13696
13859
|
fill: "#F9BB3A"
|
|
13697
13860
|
}
|
|
13698
13861
|
),
|
|
13699
|
-
/* @__PURE__ */
|
|
13700
|
-
/* @__PURE__ */
|
|
13862
|
+
/* @__PURE__ */ jsx40("path", { d: "M38.5 17.5H26.5V5.5L38.5 17.5Z", fill: isDarkTheme ? "#fff" : "#05080F" }),
|
|
13863
|
+
/* @__PURE__ */ jsx40(
|
|
13701
13864
|
"rect",
|
|
13702
13865
|
{
|
|
13703
13866
|
className: "benefit-futures-line benefit-futures-line--1",
|
|
@@ -13708,7 +13871,7 @@ function BenefitIcon({ name }) {
|
|
|
13708
13871
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13709
13872
|
}
|
|
13710
13873
|
),
|
|
13711
|
-
/* @__PURE__ */
|
|
13874
|
+
/* @__PURE__ */ jsx40(
|
|
13712
13875
|
"rect",
|
|
13713
13876
|
{
|
|
13714
13877
|
className: "benefit-futures-line benefit-futures-line--2",
|
|
@@ -13719,7 +13882,7 @@ function BenefitIcon({ name }) {
|
|
|
13719
13882
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13720
13883
|
}
|
|
13721
13884
|
),
|
|
13722
|
-
/* @__PURE__ */
|
|
13885
|
+
/* @__PURE__ */ jsx40(
|
|
13723
13886
|
"rect",
|
|
13724
13887
|
{
|
|
13725
13888
|
className: "benefit-futures-line benefit-futures-line--3",
|
|
@@ -13730,7 +13893,7 @@ function BenefitIcon({ name }) {
|
|
|
13730
13893
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13731
13894
|
}
|
|
13732
13895
|
),
|
|
13733
|
-
/* @__PURE__ */
|
|
13896
|
+
/* @__PURE__ */ jsx40(
|
|
13734
13897
|
"rect",
|
|
13735
13898
|
{
|
|
13736
13899
|
className: "benefit-futures-line benefit-futures-line--4",
|
|
@@ -13745,7 +13908,7 @@ function BenefitIcon({ name }) {
|
|
|
13745
13908
|
}
|
|
13746
13909
|
);
|
|
13747
13910
|
case "products":
|
|
13748
|
-
return /* @__PURE__ */
|
|
13911
|
+
return /* @__PURE__ */ jsxs32(
|
|
13749
13912
|
"svg",
|
|
13750
13913
|
{
|
|
13751
13914
|
...sharedProps,
|
|
@@ -13755,7 +13918,7 @@ function BenefitIcon({ name }) {
|
|
|
13755
13918
|
viewBox: "0 0 48 48",
|
|
13756
13919
|
fill: "none",
|
|
13757
13920
|
children: [
|
|
13758
|
-
/* @__PURE__ */
|
|
13921
|
+
/* @__PURE__ */ jsx40(
|
|
13759
13922
|
"path",
|
|
13760
13923
|
{
|
|
13761
13924
|
className: "benefit-product-segment benefit-product-segment--1",
|
|
@@ -13763,7 +13926,7 @@ function BenefitIcon({ name }) {
|
|
|
13763
13926
|
fill: "#F9BB3A"
|
|
13764
13927
|
}
|
|
13765
13928
|
),
|
|
13766
|
-
/* @__PURE__ */
|
|
13929
|
+
/* @__PURE__ */ jsx40(
|
|
13767
13930
|
"path",
|
|
13768
13931
|
{
|
|
13769
13932
|
className: "benefit-product-segment benefit-product-segment--2",
|
|
@@ -13771,7 +13934,7 @@ function BenefitIcon({ name }) {
|
|
|
13771
13934
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13772
13935
|
}
|
|
13773
13936
|
),
|
|
13774
|
-
/* @__PURE__ */
|
|
13937
|
+
/* @__PURE__ */ jsx40(
|
|
13775
13938
|
"path",
|
|
13776
13939
|
{
|
|
13777
13940
|
className: "benefit-product-segment benefit-product-segment--3",
|
|
@@ -13779,7 +13942,7 @@ function BenefitIcon({ name }) {
|
|
|
13779
13942
|
fill: "#F9BB3A"
|
|
13780
13943
|
}
|
|
13781
13944
|
),
|
|
13782
|
-
/* @__PURE__ */
|
|
13945
|
+
/* @__PURE__ */ jsx40(
|
|
13783
13946
|
"path",
|
|
13784
13947
|
{
|
|
13785
13948
|
className: "benefit-product-segment benefit-product-segment--4",
|
|
@@ -13791,7 +13954,7 @@ function BenefitIcon({ name }) {
|
|
|
13791
13954
|
}
|
|
13792
13955
|
);
|
|
13793
13956
|
case "leverage":
|
|
13794
|
-
return /* @__PURE__ */
|
|
13957
|
+
return /* @__PURE__ */ jsxs32(
|
|
13795
13958
|
"svg",
|
|
13796
13959
|
{
|
|
13797
13960
|
...sharedProps,
|
|
@@ -13801,7 +13964,7 @@ function BenefitIcon({ name }) {
|
|
|
13801
13964
|
viewBox: "0 0 48 48",
|
|
13802
13965
|
fill: "none",
|
|
13803
13966
|
children: [
|
|
13804
|
-
/* @__PURE__ */
|
|
13967
|
+
/* @__PURE__ */ jsx40(
|
|
13805
13968
|
"rect",
|
|
13806
13969
|
{
|
|
13807
13970
|
x: "3.49805",
|
|
@@ -13812,7 +13975,7 @@ function BenefitIcon({ name }) {
|
|
|
13812
13975
|
fill: "#F9BB3A"
|
|
13813
13976
|
}
|
|
13814
13977
|
),
|
|
13815
|
-
/* @__PURE__ */
|
|
13978
|
+
/* @__PURE__ */ jsx40(
|
|
13816
13979
|
"rect",
|
|
13817
13980
|
{
|
|
13818
13981
|
x: "6.49365",
|
|
@@ -13823,7 +13986,7 @@ function BenefitIcon({ name }) {
|
|
|
13823
13986
|
fill: "#F9BB3A"
|
|
13824
13987
|
}
|
|
13825
13988
|
),
|
|
13826
|
-
/* @__PURE__ */
|
|
13989
|
+
/* @__PURE__ */ jsx40(
|
|
13827
13990
|
"rect",
|
|
13828
13991
|
{
|
|
13829
13992
|
x: "2",
|
|
@@ -13834,15 +13997,15 @@ function BenefitIcon({ name }) {
|
|
|
13834
13997
|
fill: "#F9BB3A"
|
|
13835
13998
|
}
|
|
13836
13999
|
),
|
|
13837
|
-
/* @__PURE__ */
|
|
13838
|
-
/* @__PURE__ */
|
|
14000
|
+
/* @__PURE__ */ jsxs32("g", { className: "benefit-writing-pen", children: [
|
|
14001
|
+
/* @__PURE__ */ jsx40(
|
|
13839
14002
|
"path",
|
|
13840
14003
|
{
|
|
13841
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",
|
|
13842
14005
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13843
14006
|
}
|
|
13844
14007
|
),
|
|
13845
|
-
/* @__PURE__ */
|
|
14008
|
+
/* @__PURE__ */ jsx40(
|
|
13846
14009
|
"rect",
|
|
13847
14010
|
{
|
|
13848
14011
|
x: "37.9883",
|
|
@@ -13859,7 +14022,7 @@ function BenefitIcon({ name }) {
|
|
|
13859
14022
|
}
|
|
13860
14023
|
);
|
|
13861
14024
|
case "economy":
|
|
13862
|
-
return /* @__PURE__ */
|
|
14025
|
+
return /* @__PURE__ */ jsxs32(
|
|
13863
14026
|
"svg",
|
|
13864
14027
|
{
|
|
13865
14028
|
...sharedProps,
|
|
@@ -13869,7 +14032,7 @@ function BenefitIcon({ name }) {
|
|
|
13869
14032
|
viewBox: "0 0 48 48",
|
|
13870
14033
|
fill: "none",
|
|
13871
14034
|
children: [
|
|
13872
|
-
/* @__PURE__ */
|
|
14035
|
+
/* @__PURE__ */ jsx40("defs", { children: /* @__PURE__ */ jsx40("clipPath", { id: economyRevealId, clipPathUnits: "userSpaceOnUse", children: /* @__PURE__ */ jsx40(
|
|
13873
14036
|
"rect",
|
|
13874
14037
|
{
|
|
13875
14038
|
className: "benefit-economy-reveal",
|
|
@@ -13877,7 +14040,7 @@ function BenefitIcon({ name }) {
|
|
|
13877
14040
|
height: "48"
|
|
13878
14041
|
}
|
|
13879
14042
|
) }) }),
|
|
13880
|
-
/* @__PURE__ */
|
|
14043
|
+
/* @__PURE__ */ jsx40(
|
|
13881
14044
|
"path",
|
|
13882
14045
|
{
|
|
13883
14046
|
d: "M19.6818 23.8565L6.5 39.402H43V11.7656L28.3182 29.902L19.6818 23.8565Z",
|
|
@@ -13885,7 +14048,7 @@ function BenefitIcon({ name }) {
|
|
|
13885
14048
|
clipPath: `url(#${economyRevealId})`
|
|
13886
14049
|
}
|
|
13887
14050
|
),
|
|
13888
|
-
/* @__PURE__ */
|
|
14051
|
+
/* @__PURE__ */ jsx40(
|
|
13889
14052
|
"line",
|
|
13890
14053
|
{
|
|
13891
14054
|
x1: "5.25",
|
|
@@ -13897,7 +14060,7 @@ function BenefitIcon({ name }) {
|
|
|
13897
14060
|
strokeLinecap: "round"
|
|
13898
14061
|
}
|
|
13899
14062
|
),
|
|
13900
|
-
/* @__PURE__ */
|
|
14063
|
+
/* @__PURE__ */ jsx40(
|
|
13901
14064
|
"line",
|
|
13902
14065
|
{
|
|
13903
14066
|
x1: "5.25",
|
|
@@ -13913,7 +14076,7 @@ function BenefitIcon({ name }) {
|
|
|
13913
14076
|
}
|
|
13914
14077
|
);
|
|
13915
14078
|
case "legal":
|
|
13916
|
-
return /* @__PURE__ */
|
|
14079
|
+
return /* @__PURE__ */ jsxs32(
|
|
13917
14080
|
"svg",
|
|
13918
14081
|
{
|
|
13919
14082
|
...sharedProps,
|
|
@@ -13923,7 +14086,7 @@ function BenefitIcon({ name }) {
|
|
|
13923
14086
|
viewBox: "0 0 48 48",
|
|
13924
14087
|
fill: "none",
|
|
13925
14088
|
children: [
|
|
13926
|
-
/* @__PURE__ */
|
|
14089
|
+
/* @__PURE__ */ jsx40(
|
|
13927
14090
|
"line",
|
|
13928
14091
|
{
|
|
13929
14092
|
x1: "5.25",
|
|
@@ -13935,7 +14098,7 @@ function BenefitIcon({ name }) {
|
|
|
13935
14098
|
strokeLinecap: "round"
|
|
13936
14099
|
}
|
|
13937
14100
|
),
|
|
13938
|
-
/* @__PURE__ */
|
|
14101
|
+
/* @__PURE__ */ jsx40(
|
|
13939
14102
|
"line",
|
|
13940
14103
|
{
|
|
13941
14104
|
x1: "7.25",
|
|
@@ -13947,8 +14110,8 @@ function BenefitIcon({ name }) {
|
|
|
13947
14110
|
strokeLinecap: "round"
|
|
13948
14111
|
}
|
|
13949
14112
|
),
|
|
13950
|
-
/* @__PURE__ */
|
|
13951
|
-
/* @__PURE__ */
|
|
14113
|
+
/* @__PURE__ */ jsxs32("g", { className: "benefit-gavel", children: [
|
|
14114
|
+
/* @__PURE__ */ jsx40(
|
|
13952
14115
|
"rect",
|
|
13953
14116
|
{
|
|
13954
14117
|
x: "31.0806",
|
|
@@ -13960,7 +14123,7 @@ function BenefitIcon({ name }) {
|
|
|
13960
14123
|
fill: "#F9BB3A"
|
|
13961
14124
|
}
|
|
13962
14125
|
),
|
|
13963
|
-
/* @__PURE__ */
|
|
14126
|
+
/* @__PURE__ */ jsx40(
|
|
13964
14127
|
"rect",
|
|
13965
14128
|
{
|
|
13966
14129
|
x: "30.4731",
|
|
@@ -13971,14 +14134,14 @@ function BenefitIcon({ name }) {
|
|
|
13971
14134
|
fill: "#F9BB3A"
|
|
13972
14135
|
}
|
|
13973
14136
|
),
|
|
13974
|
-
/* @__PURE__ */
|
|
14137
|
+
/* @__PURE__ */ jsx40(
|
|
13975
14138
|
"path",
|
|
13976
14139
|
{
|
|
13977
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",
|
|
13978
14141
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
13979
14142
|
}
|
|
13980
14143
|
),
|
|
13981
|
-
/* @__PURE__ */
|
|
14144
|
+
/* @__PURE__ */ jsx40(
|
|
13982
14145
|
"path",
|
|
13983
14146
|
{
|
|
13984
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",
|
|
@@ -13990,7 +14153,7 @@ function BenefitIcon({ name }) {
|
|
|
13990
14153
|
}
|
|
13991
14154
|
);
|
|
13992
14155
|
case "risk":
|
|
13993
|
-
return /* @__PURE__ */
|
|
14156
|
+
return /* @__PURE__ */ jsxs32(
|
|
13994
14157
|
"svg",
|
|
13995
14158
|
{
|
|
13996
14159
|
...sharedProps,
|
|
@@ -14000,14 +14163,14 @@ function BenefitIcon({ name }) {
|
|
|
14000
14163
|
viewBox: "0 0 48 48",
|
|
14001
14164
|
fill: "none",
|
|
14002
14165
|
children: [
|
|
14003
|
-
/* @__PURE__ */
|
|
14166
|
+
/* @__PURE__ */ jsx40(
|
|
14004
14167
|
"path",
|
|
14005
14168
|
{
|
|
14006
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",
|
|
14007
14170
|
fill: "#F9BB3A"
|
|
14008
14171
|
}
|
|
14009
14172
|
),
|
|
14010
|
-
/* @__PURE__ */
|
|
14173
|
+
/* @__PURE__ */ jsx40(
|
|
14011
14174
|
"rect",
|
|
14012
14175
|
{
|
|
14013
14176
|
className: "benefit-risk-square benefit-risk-square--2",
|
|
@@ -14018,7 +14181,7 @@ function BenefitIcon({ name }) {
|
|
|
14018
14181
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
14019
14182
|
}
|
|
14020
14183
|
),
|
|
14021
|
-
/* @__PURE__ */
|
|
14184
|
+
/* @__PURE__ */ jsx40(
|
|
14022
14185
|
"rect",
|
|
14023
14186
|
{
|
|
14024
14187
|
className: "benefit-risk-square benefit-risk-square--3",
|
|
@@ -14029,7 +14192,7 @@ function BenefitIcon({ name }) {
|
|
|
14029
14192
|
fill: isDarkTheme ? "#fff" : "#05080F"
|
|
14030
14193
|
}
|
|
14031
14194
|
),
|
|
14032
|
-
/* @__PURE__ */
|
|
14195
|
+
/* @__PURE__ */ jsx40(
|
|
14033
14196
|
"rect",
|
|
14034
14197
|
{
|
|
14035
14198
|
className: "benefit-risk-square benefit-risk-square--1",
|
|
@@ -14047,20 +14210,20 @@ function BenefitIcon({ name }) {
|
|
|
14047
14210
|
}
|
|
14048
14211
|
|
|
14049
14212
|
// src/commodity-original/components/LandingPage/BenefitsSection.tsx
|
|
14050
|
-
import { jsx as
|
|
14213
|
+
import { jsx as jsx41, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
14051
14214
|
function BenefitCopy({
|
|
14052
14215
|
body,
|
|
14053
14216
|
emphasizedWords
|
|
14054
14217
|
}) {
|
|
14055
14218
|
if (!emphasizedWords?.length) {
|
|
14056
|
-
return /* @__PURE__ */
|
|
14219
|
+
return /* @__PURE__ */ jsx41(ExactText, { cmsAs: "p", children: body });
|
|
14057
14220
|
}
|
|
14058
14221
|
const pattern = new RegExp(
|
|
14059
14222
|
`(${emphasizedWords.map((word) => word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`,
|
|
14060
14223
|
"g"
|
|
14061
14224
|
);
|
|
14062
|
-
return /* @__PURE__ */
|
|
14063
|
-
(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
|
|
14064
14227
|
) });
|
|
14065
14228
|
}
|
|
14066
14229
|
function BenefitsSection() {
|
|
@@ -14080,8 +14243,8 @@ function BenefitsSection() {
|
|
|
14080
14243
|
(current) => current.includes(index) ? current.filter((cardIndex) => cardIndex !== index) : [...current, index]
|
|
14081
14244
|
);
|
|
14082
14245
|
};
|
|
14083
|
-
return /* @__PURE__ */
|
|
14084
|
-
/* @__PURE__ */
|
|
14246
|
+
return /* @__PURE__ */ jsx41("section", { className: "benefits section", id: "news", children: /* @__PURE__ */ jsxs33("div", { className: "container", children: [
|
|
14247
|
+
/* @__PURE__ */ jsx41(
|
|
14085
14248
|
Title_default,
|
|
14086
14249
|
{
|
|
14087
14250
|
classname: "section-heading",
|
|
@@ -14089,26 +14252,26 @@ function BenefitsSection() {
|
|
|
14089
14252
|
desc: t("landing.benefits.description")
|
|
14090
14253
|
}
|
|
14091
14254
|
),
|
|
14092
|
-
/* @__PURE__ */
|
|
14255
|
+
/* @__PURE__ */ jsx41("div", { className: "benefit-grid", children: benefitItems.map((item, index) => {
|
|
14093
14256
|
const isExpanded = expandedCards.includes(index);
|
|
14094
14257
|
const contentId = `benefit-content-${index}`;
|
|
14095
14258
|
const title = t(`landing.benefits.cards.${index}.title`);
|
|
14096
14259
|
const body = t(`landing.benefits.cards.${index}.body`);
|
|
14097
|
-
return /* @__PURE__ */
|
|
14260
|
+
return /* @__PURE__ */ jsxs33(
|
|
14098
14261
|
"article",
|
|
14099
14262
|
{
|
|
14100
14263
|
className: `benefit-card${index >= 4 ? " benefit-card--tall" : ""}${isExpanded ? " is-expanded" : ""}`,
|
|
14101
14264
|
children: [
|
|
14102
|
-
/* @__PURE__ */
|
|
14103
|
-
/* @__PURE__ */
|
|
14104
|
-
/* @__PURE__ */
|
|
14105
|
-
/* @__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(
|
|
14106
14269
|
"div",
|
|
14107
14270
|
{
|
|
14108
14271
|
className: "benefit-body",
|
|
14109
14272
|
id: contentId,
|
|
14110
14273
|
"aria-hidden": !isExpanded,
|
|
14111
|
-
children: /* @__PURE__ */
|
|
14274
|
+
children: /* @__PURE__ */ jsx41("div", { className: "benefit-body-clip", children: /* @__PURE__ */ jsx41(
|
|
14112
14275
|
BenefitCopy,
|
|
14113
14276
|
{
|
|
14114
14277
|
body,
|
|
@@ -14118,7 +14281,7 @@ function BenefitsSection() {
|
|
|
14118
14281
|
}
|
|
14119
14282
|
)
|
|
14120
14283
|
] }),
|
|
14121
|
-
/* @__PURE__ */
|
|
14284
|
+
/* @__PURE__ */ jsx41(
|
|
14122
14285
|
"button",
|
|
14123
14286
|
{
|
|
14124
14287
|
className: "benefit-toggle",
|
|
@@ -14140,7 +14303,7 @@ function BenefitsSection() {
|
|
|
14140
14303
|
// src/commodity-original/components/LandingPage/CommoditiesSection.tsx
|
|
14141
14304
|
import Image11 from "next/image.js";
|
|
14142
14305
|
import { useTranslation as useTranslation19 } from "react-i18next";
|
|
14143
|
-
import { jsx as
|
|
14306
|
+
import { jsx as jsx42, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
14144
14307
|
function CommodityProduct({
|
|
14145
14308
|
item,
|
|
14146
14309
|
groupIndex,
|
|
@@ -14151,9 +14314,9 @@ function CommodityProduct({
|
|
|
14151
14314
|
const name = t(`${key}.name`);
|
|
14152
14315
|
const imageField = `commodityGroup${groupIndex + 1}Item${itemIndex + 1}Image`;
|
|
14153
14316
|
const image2 = useCmsImage(imageField, item.image);
|
|
14154
|
-
return /* @__PURE__ */
|
|
14155
|
-
/* @__PURE__ */
|
|
14156
|
-
/* @__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(
|
|
14157
14320
|
Image11,
|
|
14158
14321
|
{
|
|
14159
14322
|
className: "commodity-sprite",
|
|
@@ -14164,14 +14327,14 @@ function CommodityProduct({
|
|
|
14164
14327
|
sizes: "(max-width: 767px) 98px, 136px"
|
|
14165
14328
|
}
|
|
14166
14329
|
),
|
|
14167
|
-
/* @__PURE__ */
|
|
14330
|
+
/* @__PURE__ */ jsx42(CmsImageAction, { field: imageField })
|
|
14168
14331
|
] }),
|
|
14169
|
-
/* @__PURE__ */
|
|
14170
|
-
/* @__PURE__ */
|
|
14171
|
-
/* @__PURE__ */
|
|
14172
|
-
/* @__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: [
|
|
14173
14336
|
t(`${key}.cta`),
|
|
14174
|
-
/* @__PURE__ */
|
|
14337
|
+
/* @__PURE__ */ jsx42(
|
|
14175
14338
|
Image11,
|
|
14176
14339
|
{
|
|
14177
14340
|
src: "/landing-assets/commodity-link-arrow.svg",
|
|
@@ -14187,26 +14350,26 @@ function CommodityProduct({
|
|
|
14187
14350
|
}
|
|
14188
14351
|
function CommoditiesSection() {
|
|
14189
14352
|
const { t } = useTranslation19();
|
|
14190
|
-
return /* @__PURE__ */
|
|
14191
|
-
/* @__PURE__ */
|
|
14353
|
+
return /* @__PURE__ */ jsx42("section", { className: "commodities section", id: "fees", children: /* @__PURE__ */ jsxs34("div", { className: "container", children: [
|
|
14354
|
+
/* @__PURE__ */ jsx42(
|
|
14192
14355
|
Title_default,
|
|
14193
14356
|
{
|
|
14194
14357
|
classname: "commodities-title",
|
|
14195
14358
|
title: t("landing.commodities.title")
|
|
14196
14359
|
}
|
|
14197
14360
|
),
|
|
14198
|
-
/* @__PURE__ */
|
|
14361
|
+
/* @__PURE__ */ jsx42("div", { className: "commodity-list", children: commodityGroups.map((group, groupIndex) => {
|
|
14199
14362
|
const groupTitle = t(
|
|
14200
14363
|
`landing.commodities.groups.${groupIndex}.title`
|
|
14201
14364
|
);
|
|
14202
|
-
return /* @__PURE__ */
|
|
14365
|
+
return /* @__PURE__ */ jsxs34(
|
|
14203
14366
|
"article",
|
|
14204
14367
|
{
|
|
14205
14368
|
className: `commodity-row ${group.className}`,
|
|
14206
14369
|
id: `commodity-${group.className}`,
|
|
14207
14370
|
children: [
|
|
14208
|
-
/* @__PURE__ */
|
|
14209
|
-
/* @__PURE__ */
|
|
14371
|
+
/* @__PURE__ */ jsxs34("div", { className: "commodity-label", children: [
|
|
14372
|
+
/* @__PURE__ */ jsx42(
|
|
14210
14373
|
Image11,
|
|
14211
14374
|
{
|
|
14212
14375
|
className: "commodity-label-panel",
|
|
@@ -14217,7 +14380,7 @@ function CommoditiesSection() {
|
|
|
14217
14380
|
"aria-hidden": "true"
|
|
14218
14381
|
}
|
|
14219
14382
|
),
|
|
14220
|
-
/* @__PURE__ */
|
|
14383
|
+
/* @__PURE__ */ jsx42(
|
|
14221
14384
|
Image11,
|
|
14222
14385
|
{
|
|
14223
14386
|
className: "commodity-label-tail",
|
|
@@ -14228,7 +14391,7 @@ function CommoditiesSection() {
|
|
|
14228
14391
|
"aria-hidden": "true"
|
|
14229
14392
|
}
|
|
14230
14393
|
),
|
|
14231
|
-
/* @__PURE__ */
|
|
14394
|
+
/* @__PURE__ */ jsx42(
|
|
14232
14395
|
Image11,
|
|
14233
14396
|
{
|
|
14234
14397
|
className: "commodity-label-panel-mobile",
|
|
@@ -14239,7 +14402,7 @@ function CommoditiesSection() {
|
|
|
14239
14402
|
"aria-hidden": "true"
|
|
14240
14403
|
}
|
|
14241
14404
|
),
|
|
14242
|
-
/* @__PURE__ */
|
|
14405
|
+
/* @__PURE__ */ jsx42("span", { className: "commodity-label-icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx42(
|
|
14243
14406
|
Image11,
|
|
14244
14407
|
{
|
|
14245
14408
|
src: group.icon,
|
|
@@ -14248,10 +14411,10 @@ function CommoditiesSection() {
|
|
|
14248
14411
|
height: group.iconHeight
|
|
14249
14412
|
}
|
|
14250
14413
|
) }),
|
|
14251
|
-
/* @__PURE__ */
|
|
14414
|
+
/* @__PURE__ */ jsx42(ExactText, { cmsAs: "h3", children: groupTitle })
|
|
14252
14415
|
] }),
|
|
14253
|
-
/* @__PURE__ */
|
|
14254
|
-
/* @__PURE__ */
|
|
14416
|
+
/* @__PURE__ */ jsxs34("div", { className: "commodity-carousel", children: [
|
|
14417
|
+
/* @__PURE__ */ jsx42(
|
|
14255
14418
|
"button",
|
|
14256
14419
|
{
|
|
14257
14420
|
className: "commodity-nav",
|
|
@@ -14259,7 +14422,7 @@ function CommoditiesSection() {
|
|
|
14259
14422
|
"aria-label": t("landing.commodities.previous", {
|
|
14260
14423
|
group: groupTitle
|
|
14261
14424
|
}),
|
|
14262
|
-
children: /* @__PURE__ */
|
|
14425
|
+
children: /* @__PURE__ */ jsx42(
|
|
14263
14426
|
Image11,
|
|
14264
14427
|
{
|
|
14265
14428
|
src: "/landing-assets/commodity-arrow-left.svg",
|
|
@@ -14270,7 +14433,7 @@ function CommoditiesSection() {
|
|
|
14270
14433
|
)
|
|
14271
14434
|
}
|
|
14272
14435
|
),
|
|
14273
|
-
/* @__PURE__ */
|
|
14436
|
+
/* @__PURE__ */ jsx42("div", { className: "commodity-products", children: group.items.map((item, itemIndex) => /* @__PURE__ */ jsx42(
|
|
14274
14437
|
CommodityProduct,
|
|
14275
14438
|
{
|
|
14276
14439
|
item,
|
|
@@ -14279,7 +14442,7 @@ function CommoditiesSection() {
|
|
|
14279
14442
|
},
|
|
14280
14443
|
item.imageClassName
|
|
14281
14444
|
)) }),
|
|
14282
|
-
/* @__PURE__ */
|
|
14445
|
+
/* @__PURE__ */ jsx42(
|
|
14283
14446
|
"button",
|
|
14284
14447
|
{
|
|
14285
14448
|
className: "commodity-nav",
|
|
@@ -14287,7 +14450,7 @@ function CommoditiesSection() {
|
|
|
14287
14450
|
"aria-label": t("landing.commodities.next", {
|
|
14288
14451
|
group: groupTitle
|
|
14289
14452
|
}),
|
|
14290
|
-
children: /* @__PURE__ */
|
|
14453
|
+
children: /* @__PURE__ */ jsx42(
|
|
14291
14454
|
Image11,
|
|
14292
14455
|
{
|
|
14293
14456
|
src: "/landing-assets/commodity-arrow-right.svg",
|
|
@@ -14310,7 +14473,7 @@ function CommoditiesSection() {
|
|
|
14310
14473
|
// src/commodity-original/components/LandingPage/DownloadSection.tsx
|
|
14311
14474
|
import Image12 from "next/image.js";
|
|
14312
14475
|
import { useTranslation as useTranslation20 } from "react-i18next";
|
|
14313
|
-
import { jsx as
|
|
14476
|
+
import { jsx as jsx43, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
14314
14477
|
var downloadBadges = [
|
|
14315
14478
|
{
|
|
14316
14479
|
src: "/landing-assets/footer-appstore-icon.svg",
|
|
@@ -14347,17 +14510,17 @@ function DownloadSection() {
|
|
|
14347
14510
|
"downloadPhoneImage",
|
|
14348
14511
|
"/landing-assets/download-phone.webp"
|
|
14349
14512
|
);
|
|
14350
|
-
const downloadLinks = /* @__PURE__ */
|
|
14513
|
+
const downloadLinks = /* @__PURE__ */ jsx43("div", { className: "download-links", children: downloadBadges.map((badge) => /* @__PURE__ */ jsxs35(
|
|
14351
14514
|
CmsDownloadButtonLink,
|
|
14352
14515
|
{
|
|
14353
14516
|
field: `${language}.${badge.prefixKey}`,
|
|
14354
14517
|
className: `download-badge ${badge.className}`,
|
|
14355
14518
|
"aria-label": t(badge.altKey),
|
|
14356
14519
|
children: [
|
|
14357
|
-
/* @__PURE__ */
|
|
14358
|
-
/* @__PURE__ */
|
|
14359
|
-
/* @__PURE__ */
|
|
14360
|
-
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(
|
|
14361
14524
|
Image12,
|
|
14362
14525
|
{
|
|
14363
14526
|
className: "download-googleplay-wordmark",
|
|
@@ -14366,20 +14529,20 @@ function DownloadSection() {
|
|
|
14366
14529
|
width: 89,
|
|
14367
14530
|
height: 18
|
|
14368
14531
|
}
|
|
14369
|
-
) : /* @__PURE__ */
|
|
14532
|
+
) : /* @__PURE__ */ jsx43("strong", { children: badge.name })
|
|
14370
14533
|
] })
|
|
14371
14534
|
]
|
|
14372
14535
|
},
|
|
14373
14536
|
badge.src
|
|
14374
14537
|
)) });
|
|
14375
|
-
return /* @__PURE__ */
|
|
14376
|
-
/* @__PURE__ */
|
|
14377
|
-
/* @__PURE__ */
|
|
14378
|
-
/* @__PURE__ */
|
|
14379
|
-
/* @__PURE__ */
|
|
14380
|
-
/* @__PURE__ */
|
|
14381
|
-
/* @__PURE__ */
|
|
14382
|
-
/* @__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(
|
|
14383
14546
|
Image12,
|
|
14384
14547
|
{
|
|
14385
14548
|
src: "/landing-assets/download-offer-divider.svg",
|
|
@@ -14388,12 +14551,12 @@ function DownloadSection() {
|
|
|
14388
14551
|
height: 18
|
|
14389
14552
|
}
|
|
14390
14553
|
) }),
|
|
14391
|
-
/* @__PURE__ */
|
|
14554
|
+
/* @__PURE__ */ jsx43(ExactText, { cmsAs: "p", children: t("landing.download.description") })
|
|
14392
14555
|
] }),
|
|
14393
|
-
/* @__PURE__ */
|
|
14394
|
-
/* @__PURE__ */
|
|
14395
|
-
/* @__PURE__ */
|
|
14396
|
-
/* @__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(
|
|
14397
14560
|
Image12,
|
|
14398
14561
|
{
|
|
14399
14562
|
src: qrImage,
|
|
@@ -14402,21 +14565,21 @@ function DownloadSection() {
|
|
|
14402
14565
|
height: 140
|
|
14403
14566
|
}
|
|
14404
14567
|
) }),
|
|
14405
|
-
/* @__PURE__ */
|
|
14568
|
+
/* @__PURE__ */ jsx43(CmsImageAction, { field: "downloadQrImage" })
|
|
14406
14569
|
] }),
|
|
14407
14570
|
downloadLinks
|
|
14408
14571
|
] })
|
|
14409
14572
|
] })
|
|
14410
14573
|
] }),
|
|
14411
|
-
/* @__PURE__ */
|
|
14574
|
+
/* @__PURE__ */ jsxs35(
|
|
14412
14575
|
"div",
|
|
14413
14576
|
{
|
|
14414
14577
|
className: "download-devices",
|
|
14415
14578
|
role: "img",
|
|
14416
14579
|
"aria-label": t("landing.download.devicesAlt"),
|
|
14417
14580
|
children: [
|
|
14418
|
-
/* @__PURE__ */
|
|
14419
|
-
/* @__PURE__ */
|
|
14581
|
+
/* @__PURE__ */ jsxs35("div", { className: "download-laptop wikex-cms-image-host", children: [
|
|
14582
|
+
/* @__PURE__ */ jsx43(
|
|
14420
14583
|
Image12,
|
|
14421
14584
|
{
|
|
14422
14585
|
src: laptopImage,
|
|
@@ -14425,10 +14588,10 @@ function DownloadSection() {
|
|
|
14425
14588
|
sizes: "(max-width: 767px) 148vw, 879px"
|
|
14426
14589
|
}
|
|
14427
14590
|
),
|
|
14428
|
-
/* @__PURE__ */
|
|
14591
|
+
/* @__PURE__ */ jsx43(CmsImageAction, { field: "downloadLaptopImage" })
|
|
14429
14592
|
] }),
|
|
14430
|
-
/* @__PURE__ */
|
|
14431
|
-
/* @__PURE__ */
|
|
14593
|
+
/* @__PURE__ */ jsxs35("div", { className: "download-phone wikex-cms-image-host", children: [
|
|
14594
|
+
/* @__PURE__ */ jsx43(
|
|
14432
14595
|
Image12,
|
|
14433
14596
|
{
|
|
14434
14597
|
src: phoneImage,
|
|
@@ -14437,7 +14600,7 @@ function DownloadSection() {
|
|
|
14437
14600
|
sizes: "(max-width: 767px) 69vw, 408px"
|
|
14438
14601
|
}
|
|
14439
14602
|
),
|
|
14440
|
-
/* @__PURE__ */
|
|
14603
|
+
/* @__PURE__ */ jsx43(CmsImageAction, { field: "downloadPhoneImage" })
|
|
14441
14604
|
] })
|
|
14442
14605
|
]
|
|
14443
14606
|
}
|
|
@@ -14451,10 +14614,10 @@ import { Minus, Plus } from "lucide";
|
|
|
14451
14614
|
import { MorphIcon as MorphIcon4 } from "morphicons/react";
|
|
14452
14615
|
import { Collapsible } from "radix-ui";
|
|
14453
14616
|
import { useTranslation as useTranslation21 } from "react-i18next";
|
|
14454
|
-
import { jsx as
|
|
14617
|
+
import { jsx as jsx44, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
14455
14618
|
function FaqItem({ question, answer, order }) {
|
|
14456
14619
|
const [isOpen, setIsOpen] = useState15(false);
|
|
14457
|
-
return /* @__PURE__ */
|
|
14620
|
+
return /* @__PURE__ */ jsxs36(
|
|
14458
14621
|
Collapsible.Root,
|
|
14459
14622
|
{
|
|
14460
14623
|
className: "faq-item",
|
|
@@ -14462,9 +14625,9 @@ function FaqItem({ question, answer, order }) {
|
|
|
14462
14625
|
onOpenChange: setIsOpen,
|
|
14463
14626
|
style: { "--faq-order": order },
|
|
14464
14627
|
children: [
|
|
14465
|
-
/* @__PURE__ */
|
|
14466
|
-
/* @__PURE__ */
|
|
14467
|
-
/* @__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(
|
|
14468
14631
|
MorphIcon4,
|
|
14469
14632
|
{
|
|
14470
14633
|
icon: isOpen ? Minus : Plus,
|
|
@@ -14475,7 +14638,7 @@ function FaqItem({ question, answer, order }) {
|
|
|
14475
14638
|
}
|
|
14476
14639
|
) })
|
|
14477
14640
|
] }),
|
|
14478
|
-
/* @__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 }) }) }) })
|
|
14479
14642
|
]
|
|
14480
14643
|
}
|
|
14481
14644
|
);
|
|
@@ -14492,9 +14655,9 @@ function FaqSection2() {
|
|
|
14492
14655
|
faqs.slice(0, firstColumnLength),
|
|
14493
14656
|
faqs.slice(firstColumnLength)
|
|
14494
14657
|
];
|
|
14495
|
-
return /* @__PURE__ */
|
|
14496
|
-
/* @__PURE__ */
|
|
14497
|
-
/* @__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(
|
|
14498
14661
|
FaqItem,
|
|
14499
14662
|
{
|
|
14500
14663
|
...item,
|
|
@@ -14842,7 +15005,7 @@ var Background_default = DotField;
|
|
|
14842
15005
|
// src/commodity-original/components/LandingPage/HeroArt/index.tsx
|
|
14843
15006
|
import Image13 from "next/image.js";
|
|
14844
15007
|
import { useTranslation as useTranslation22 } from "react-i18next";
|
|
14845
|
-
import { jsx as
|
|
15008
|
+
import { jsx as jsx45, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
14846
15009
|
var HeroArtBlock = () => {
|
|
14847
15010
|
const { t } = useTranslation22();
|
|
14848
15011
|
const mainPhone = useCmsImage("heroMainPhoneImage", "/landing-assets/key_mock_phone.webp");
|
|
@@ -14870,11 +15033,11 @@ var HeroArtBlock = () => {
|
|
|
14870
15033
|
"heroLabelTwoMobileImage",
|
|
14871
15034
|
"/landing-assets/key_mock_2_mobile.webp"
|
|
14872
15035
|
);
|
|
14873
|
-
return /* @__PURE__ */
|
|
14874
|
-
/* @__PURE__ */
|
|
14875
|
-
/* @__PURE__ */
|
|
14876
|
-
/* @__PURE__ */
|
|
14877
|
-
/* @__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(
|
|
14878
15041
|
Image13,
|
|
14879
15042
|
{
|
|
14880
15043
|
src: mainPhone,
|
|
@@ -14886,15 +15049,15 @@ var HeroArtBlock = () => {
|
|
|
14886
15049
|
}
|
|
14887
15050
|
)
|
|
14888
15051
|
] }),
|
|
14889
|
-
[1, 2].map((index) => /* @__PURE__ */
|
|
14890
|
-
/* @__PURE__ */
|
|
15052
|
+
[1, 2].map((index) => /* @__PURE__ */ jsxs37("picture", { children: [
|
|
15053
|
+
/* @__PURE__ */ jsx45(
|
|
14891
15054
|
"source",
|
|
14892
15055
|
{
|
|
14893
15056
|
media: "(max-width: 767px)",
|
|
14894
15057
|
srcSet: index === 1 ? sidePhoneOneMobile : sidePhoneTwoMobile
|
|
14895
15058
|
}
|
|
14896
15059
|
),
|
|
14897
|
-
/* @__PURE__ */
|
|
15060
|
+
/* @__PURE__ */ jsx45(
|
|
14898
15061
|
Image13,
|
|
14899
15062
|
{
|
|
14900
15063
|
src: index === 1 ? sidePhoneOne : sidePhoneTwo,
|
|
@@ -14906,35 +15069,35 @@ var HeroArtBlock = () => {
|
|
|
14906
15069
|
}
|
|
14907
15070
|
)
|
|
14908
15071
|
] }, index)),
|
|
14909
|
-
/* @__PURE__ */
|
|
15072
|
+
/* @__PURE__ */ jsx45(CmsImageAction, { field: "heroMainPhoneImage" })
|
|
14910
15073
|
] }),
|
|
14911
|
-
/* @__PURE__ */
|
|
14912
|
-
/* @__PURE__ */
|
|
14913
|
-
/* @__PURE__ */
|
|
14914
|
-
/* @__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" } })
|
|
14915
15078
|
] }),
|
|
14916
|
-
/* @__PURE__ */
|
|
15079
|
+
/* @__PURE__ */ jsx45(ExactText, { cmsAs: "p", children: t("landing.hero.labels.smoothTrading") })
|
|
14917
15080
|
] }),
|
|
14918
|
-
/* @__PURE__ */
|
|
14919
|
-
/* @__PURE__ */
|
|
14920
|
-
/* @__PURE__ */
|
|
14921
|
-
/* @__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" } })
|
|
14922
15085
|
] }),
|
|
14923
|
-
/* @__PURE__ */
|
|
15086
|
+
/* @__PURE__ */ jsx45(ExactText, { cmsAs: "p", children: t("landing.hero.labels.advancedTechnology") })
|
|
14924
15087
|
] }),
|
|
14925
|
-
/* @__PURE__ */
|
|
14926
|
-
/* @__PURE__ */
|
|
14927
|
-
/* @__PURE__ */
|
|
14928
|
-
/* @__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" } })
|
|
14929
15092
|
] }),
|
|
14930
|
-
/* @__PURE__ */
|
|
15093
|
+
/* @__PURE__ */ jsx45(ExactText, { cmsAs: "p", children: t("landing.hero.labels.riskControl") })
|
|
14931
15094
|
] })
|
|
14932
15095
|
] });
|
|
14933
15096
|
};
|
|
14934
15097
|
var HeroArt_default = HeroArtBlock;
|
|
14935
15098
|
|
|
14936
15099
|
// src/commodity-original/components/LandingPage/HeroSection.tsx
|
|
14937
|
-
import { jsx as
|
|
15100
|
+
import { jsx as jsx46, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
14938
15101
|
function HeroSection2() {
|
|
14939
15102
|
const { t } = useTranslation23();
|
|
14940
15103
|
const background = useCmsImage(
|
|
@@ -14949,8 +15112,8 @@ function HeroSection2() {
|
|
|
14949
15112
|
"--wikex-hero-background": `url("${background}")`,
|
|
14950
15113
|
"--wikex-hero-mobile-background": `url("${mobileBackground}")`
|
|
14951
15114
|
};
|
|
14952
|
-
return /* @__PURE__ */
|
|
14953
|
-
/* @__PURE__ */
|
|
15115
|
+
return /* @__PURE__ */ jsxs38(Hero, { id: "keyvisual", className: "wikex-cms-image-host", style: heroStyle, children: [
|
|
15116
|
+
/* @__PURE__ */ jsx46(
|
|
14954
15117
|
Background_default,
|
|
14955
15118
|
{
|
|
14956
15119
|
className: "hero-dot-field",
|
|
@@ -14968,11 +15131,11 @@ function HeroSection2() {
|
|
|
14968
15131
|
glowColor: "transparent"
|
|
14969
15132
|
}
|
|
14970
15133
|
),
|
|
14971
|
-
/* @__PURE__ */
|
|
14972
|
-
/* @__PURE__ */
|
|
14973
|
-
/* @__PURE__ */
|
|
14974
|
-
/* @__PURE__ */
|
|
14975
|
-
/* @__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(
|
|
14976
15139
|
Button_default,
|
|
14977
15140
|
{
|
|
14978
15141
|
size: "sm",
|
|
@@ -14991,14 +15154,14 @@ function HeroSection2() {
|
|
|
14991
15154
|
children: t("landing.hero.cta")
|
|
14992
15155
|
}
|
|
14993
15156
|
),
|
|
14994
|
-
/* @__PURE__ */
|
|
15157
|
+
/* @__PURE__ */ jsx46(HeroMetrics, { children: /* @__PURE__ */ jsx46("div", { className: "hero-metrics-track", children: [false, true].map((isDuplicate) => /* @__PURE__ */ jsxs38(
|
|
14995
15158
|
"div",
|
|
14996
15159
|
{
|
|
14997
15160
|
className: `hero-metrics-group${isDuplicate ? " hero-metrics-group--duplicate" : ""}`,
|
|
14998
15161
|
"aria-hidden": isDuplicate || void 0,
|
|
14999
15162
|
children: [
|
|
15000
|
-
/* @__PURE__ */
|
|
15001
|
-
/* @__PURE__ */
|
|
15163
|
+
/* @__PURE__ */ jsxs38(HeroMetric, { children: [
|
|
15164
|
+
/* @__PURE__ */ jsxs38(
|
|
15002
15165
|
"svg",
|
|
15003
15166
|
{
|
|
15004
15167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15007,21 +15170,21 @@ function HeroSection2() {
|
|
|
15007
15170
|
viewBox: "0 0 60 29",
|
|
15008
15171
|
fill: "none",
|
|
15009
15172
|
children: [
|
|
15010
|
-
/* @__PURE__ */
|
|
15173
|
+
/* @__PURE__ */ jsx46(
|
|
15011
15174
|
"path",
|
|
15012
15175
|
{
|
|
15013
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",
|
|
15014
15177
|
fill: "#150958"
|
|
15015
15178
|
}
|
|
15016
15179
|
),
|
|
15017
|
-
/* @__PURE__ */
|
|
15180
|
+
/* @__PURE__ */ jsx46(
|
|
15018
15181
|
"path",
|
|
15019
15182
|
{
|
|
15020
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",
|
|
15021
15184
|
fill: "#150958"
|
|
15022
15185
|
}
|
|
15023
15186
|
),
|
|
15024
|
-
/* @__PURE__ */
|
|
15187
|
+
/* @__PURE__ */ jsx46(
|
|
15025
15188
|
"path",
|
|
15026
15189
|
{
|
|
15027
15190
|
fillRule: "evenodd",
|
|
@@ -15033,10 +15196,10 @@ function HeroSection2() {
|
|
|
15033
15196
|
]
|
|
15034
15197
|
}
|
|
15035
15198
|
),
|
|
15036
|
-
/* @__PURE__ */
|
|
15199
|
+
/* @__PURE__ */ jsx46(ExactText, { cmsAs: "strong", children: t("landing.hero.metrics.member") })
|
|
15037
15200
|
] }),
|
|
15038
|
-
/* @__PURE__ */
|
|
15039
|
-
/* @__PURE__ */
|
|
15201
|
+
/* @__PURE__ */ jsxs38(HeroMetric, { children: [
|
|
15202
|
+
/* @__PURE__ */ jsxs38(
|
|
15040
15203
|
"svg",
|
|
15041
15204
|
{
|
|
15042
15205
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15045,7 +15208,7 @@ function HeroSection2() {
|
|
|
15045
15208
|
viewBox: "0 0 48 48",
|
|
15046
15209
|
fill: "none",
|
|
15047
15210
|
children: [
|
|
15048
|
-
/* @__PURE__ */
|
|
15211
|
+
/* @__PURE__ */ jsx46(
|
|
15049
15212
|
"path",
|
|
15050
15213
|
{
|
|
15051
15214
|
d: "M40.9995 12.5L29.0463 28.3399L21.5248 22.9674L12.9995 32.5001",
|
|
@@ -15055,7 +15218,7 @@ function HeroSection2() {
|
|
|
15055
15218
|
strokeLinejoin: "round"
|
|
15056
15219
|
}
|
|
15057
15220
|
),
|
|
15058
|
-
/* @__PURE__ */
|
|
15221
|
+
/* @__PURE__ */ jsx46(
|
|
15059
15222
|
"line",
|
|
15060
15223
|
{
|
|
15061
15224
|
x1: "4.4",
|
|
@@ -15067,7 +15230,7 @@ function HeroSection2() {
|
|
|
15067
15230
|
strokeLinecap: "round"
|
|
15068
15231
|
}
|
|
15069
15232
|
),
|
|
15070
|
-
/* @__PURE__ */
|
|
15233
|
+
/* @__PURE__ */ jsx46(
|
|
15071
15234
|
"line",
|
|
15072
15235
|
{
|
|
15073
15236
|
x1: "4.4",
|
|
@@ -15082,10 +15245,10 @@ function HeroSection2() {
|
|
|
15082
15245
|
]
|
|
15083
15246
|
}
|
|
15084
15247
|
),
|
|
15085
|
-
/* @__PURE__ */
|
|
15248
|
+
/* @__PURE__ */ jsx46(ExactText, { cmsAs: "strong", children: t("landing.hero.metrics.realtime") })
|
|
15086
15249
|
] }),
|
|
15087
|
-
/* @__PURE__ */
|
|
15088
|
-
/* @__PURE__ */
|
|
15250
|
+
/* @__PURE__ */ jsxs38(HeroMetric, { children: [
|
|
15251
|
+
/* @__PURE__ */ jsxs38(
|
|
15089
15252
|
"svg",
|
|
15090
15253
|
{
|
|
15091
15254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15094,14 +15257,14 @@ function HeroSection2() {
|
|
|
15094
15257
|
viewBox: "0 0 48 48",
|
|
15095
15258
|
fill: "none",
|
|
15096
15259
|
children: [
|
|
15097
|
-
/* @__PURE__ */
|
|
15260
|
+
/* @__PURE__ */ jsx46(
|
|
15098
15261
|
"path",
|
|
15099
15262
|
{
|
|
15100
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",
|
|
15101
15264
|
fill: "black"
|
|
15102
15265
|
}
|
|
15103
15266
|
),
|
|
15104
|
-
/* @__PURE__ */
|
|
15267
|
+
/* @__PURE__ */ jsx46(
|
|
15105
15268
|
"path",
|
|
15106
15269
|
{
|
|
15107
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",
|
|
@@ -15111,16 +15274,16 @@ function HeroSection2() {
|
|
|
15111
15274
|
]
|
|
15112
15275
|
}
|
|
15113
15276
|
),
|
|
15114
|
-
/* @__PURE__ */
|
|
15277
|
+
/* @__PURE__ */ jsx46(ExactText, { cmsAs: "strong", children: t("landing.hero.metrics.experts") })
|
|
15115
15278
|
] })
|
|
15116
15279
|
]
|
|
15117
15280
|
},
|
|
15118
15281
|
isDuplicate ? "duplicate" : "primary"
|
|
15119
15282
|
)) }) })
|
|
15120
15283
|
] }),
|
|
15121
|
-
/* @__PURE__ */
|
|
15284
|
+
/* @__PURE__ */ jsx46(HeroArt_default, {})
|
|
15122
15285
|
] }),
|
|
15123
|
-
/* @__PURE__ */
|
|
15286
|
+
/* @__PURE__ */ jsx46(CmsImageAction, { field: "heroBackgroundImage" })
|
|
15124
15287
|
] });
|
|
15125
15288
|
}
|
|
15126
15289
|
|
|
@@ -15192,7 +15355,7 @@ function FloatingActions() {
|
|
|
15192
15355
|
import Image15 from "next/image.js";
|
|
15193
15356
|
import { useRef as useRef9, useState as useState16 } from "react";
|
|
15194
15357
|
import { useTranslation as useTranslation25 } from "react-i18next";
|
|
15195
|
-
import { jsx as
|
|
15358
|
+
import { jsx as jsx47, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
15196
15359
|
function PositionMedia({
|
|
15197
15360
|
slide,
|
|
15198
15361
|
imageAlt,
|
|
@@ -15201,14 +15364,14 @@ function PositionMedia({
|
|
|
15201
15364
|
}) {
|
|
15202
15365
|
const image2 = useCmsImage(imageField, slide.image);
|
|
15203
15366
|
if (slide.mediaType === "bot") {
|
|
15204
|
-
return /* @__PURE__ */
|
|
15367
|
+
return /* @__PURE__ */ jsxs39(
|
|
15205
15368
|
"div",
|
|
15206
15369
|
{
|
|
15207
15370
|
className: "position-media position-media--bot wikex-cms-image-host",
|
|
15208
15371
|
role: "img",
|
|
15209
15372
|
"aria-label": imageAlt,
|
|
15210
15373
|
children: [
|
|
15211
|
-
/* @__PURE__ */
|
|
15374
|
+
/* @__PURE__ */ jsx47(
|
|
15212
15375
|
Image15,
|
|
15213
15376
|
{
|
|
15214
15377
|
src: image2,
|
|
@@ -15220,20 +15383,20 @@ function PositionMedia({
|
|
|
15220
15383
|
decoding: "async"
|
|
15221
15384
|
}
|
|
15222
15385
|
),
|
|
15223
|
-
/* @__PURE__ */
|
|
15386
|
+
/* @__PURE__ */ jsx47(CmsImageAction, { field: imageField })
|
|
15224
15387
|
]
|
|
15225
15388
|
}
|
|
15226
15389
|
);
|
|
15227
15390
|
}
|
|
15228
15391
|
if (slide.mediaType === "platforms") {
|
|
15229
|
-
return /* @__PURE__ */
|
|
15392
|
+
return /* @__PURE__ */ jsxs39(
|
|
15230
15393
|
"div",
|
|
15231
15394
|
{
|
|
15232
15395
|
className: "position-media position-media--platforms wikex-cms-image-host",
|
|
15233
15396
|
role: "img",
|
|
15234
15397
|
"aria-label": imageAlt,
|
|
15235
15398
|
children: [
|
|
15236
|
-
/* @__PURE__ */
|
|
15399
|
+
/* @__PURE__ */ jsx47(
|
|
15237
15400
|
Image15,
|
|
15238
15401
|
{
|
|
15239
15402
|
src: image2,
|
|
@@ -15245,13 +15408,13 @@ function PositionMedia({
|
|
|
15245
15408
|
decoding: "async"
|
|
15246
15409
|
}
|
|
15247
15410
|
),
|
|
15248
|
-
/* @__PURE__ */
|
|
15411
|
+
/* @__PURE__ */ jsx47(CmsImageAction, { field: imageField })
|
|
15249
15412
|
]
|
|
15250
15413
|
}
|
|
15251
15414
|
);
|
|
15252
15415
|
}
|
|
15253
|
-
return /* @__PURE__ */
|
|
15254
|
-
/* @__PURE__ */
|
|
15416
|
+
return /* @__PURE__ */ jsxs39("div", { className: `position-media ${slide.mediaClassName} wikex-cms-image-host`, children: [
|
|
15417
|
+
/* @__PURE__ */ jsx47(
|
|
15255
15418
|
Image15,
|
|
15256
15419
|
{
|
|
15257
15420
|
src: image2,
|
|
@@ -15263,7 +15426,7 @@ function PositionMedia({
|
|
|
15263
15426
|
decoding: "async"
|
|
15264
15427
|
}
|
|
15265
15428
|
),
|
|
15266
|
-
/* @__PURE__ */
|
|
15429
|
+
/* @__PURE__ */ jsx47(CmsImageAction, { field: imageField })
|
|
15267
15430
|
] });
|
|
15268
15431
|
}
|
|
15269
15432
|
function PositionSection() {
|
|
@@ -15326,23 +15489,23 @@ function PositionSection() {
|
|
|
15326
15489
|
(current) => current.includes(index) ? current.filter((cardIndex) => cardIndex !== index) : [...current, index]
|
|
15327
15490
|
);
|
|
15328
15491
|
};
|
|
15329
|
-
return /* @__PURE__ */
|
|
15330
|
-
/* @__PURE__ */
|
|
15492
|
+
return /* @__PURE__ */ jsx47("section", { className: "position section", children: /* @__PURE__ */ jsxs39("div", { className: "container", children: [
|
|
15493
|
+
/* @__PURE__ */ jsx47(
|
|
15331
15494
|
Title_default,
|
|
15332
15495
|
{
|
|
15333
15496
|
title: t("landing.position.title"),
|
|
15334
15497
|
classname: "position-title"
|
|
15335
15498
|
}
|
|
15336
15499
|
),
|
|
15337
|
-
/* @__PURE__ */
|
|
15338
|
-
/* @__PURE__ */
|
|
15500
|
+
/* @__PURE__ */ jsxs39("div", { className: "position-stage", children: [
|
|
15501
|
+
/* @__PURE__ */ jsx47(
|
|
15339
15502
|
"button",
|
|
15340
15503
|
{
|
|
15341
15504
|
className: "position-nav position-button-prev",
|
|
15342
15505
|
type: "button",
|
|
15343
15506
|
"aria-label": t("common.previous"),
|
|
15344
15507
|
onClick: () => moveDesktop(-1),
|
|
15345
|
-
children: /* @__PURE__ */
|
|
15508
|
+
children: /* @__PURE__ */ jsx47(
|
|
15346
15509
|
Image15,
|
|
15347
15510
|
{
|
|
15348
15511
|
src: "/landing-assets/position-arrow-left.svg",
|
|
@@ -15353,7 +15516,7 @@ function PositionSection() {
|
|
|
15353
15516
|
)
|
|
15354
15517
|
}
|
|
15355
15518
|
),
|
|
15356
|
-
/* @__PURE__ */
|
|
15519
|
+
/* @__PURE__ */ jsx47("div", { className: "position-slider-shell", children: /* @__PURE__ */ jsx47(
|
|
15357
15520
|
"div",
|
|
15358
15521
|
{
|
|
15359
15522
|
className: "position-swiper",
|
|
@@ -15364,27 +15527,27 @@ function PositionSection() {
|
|
|
15364
15527
|
if (event.key === "ArrowRight") moveDesktop(1);
|
|
15365
15528
|
},
|
|
15366
15529
|
tabIndex: 0,
|
|
15367
|
-
children: /* @__PURE__ */
|
|
15530
|
+
children: /* @__PURE__ */ jsx47("div", { className: "swiper-wrapper", children: slides.map((slide, index) => {
|
|
15368
15531
|
const key = `landing.position.slides.${index}`;
|
|
15369
15532
|
const isActive = index === desktopActiveSlide;
|
|
15370
|
-
return /* @__PURE__ */
|
|
15533
|
+
return /* @__PURE__ */ jsx47(
|
|
15371
15534
|
"div",
|
|
15372
15535
|
{
|
|
15373
15536
|
className: `swiper-slide${isActive ? " swiper-slide-active" : ""}`,
|
|
15374
15537
|
"aria-hidden": !isActive,
|
|
15375
|
-
children: /* @__PURE__ */
|
|
15538
|
+
children: /* @__PURE__ */ jsxs39(
|
|
15376
15539
|
"article",
|
|
15377
15540
|
{
|
|
15378
15541
|
className: `position-card position-card--${slide.mediaType}`,
|
|
15379
15542
|
children: [
|
|
15380
|
-
/* @__PURE__ */
|
|
15381
|
-
/* @__PURE__ */
|
|
15382
|
-
/* @__PURE__ */
|
|
15383
|
-
/* @__PURE__ */
|
|
15384
|
-
/* @__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`) })
|
|
15385
15548
|
] })
|
|
15386
15549
|
] }),
|
|
15387
|
-
/* @__PURE__ */
|
|
15550
|
+
/* @__PURE__ */ jsx47(
|
|
15388
15551
|
PositionMedia,
|
|
15389
15552
|
{
|
|
15390
15553
|
slide,
|
|
@@ -15401,14 +15564,14 @@ function PositionSection() {
|
|
|
15401
15564
|
}) })
|
|
15402
15565
|
}
|
|
15403
15566
|
) }),
|
|
15404
|
-
/* @__PURE__ */
|
|
15567
|
+
/* @__PURE__ */ jsx47(
|
|
15405
15568
|
"button",
|
|
15406
15569
|
{
|
|
15407
15570
|
className: "position-nav position-button-next",
|
|
15408
15571
|
type: "button",
|
|
15409
15572
|
"aria-label": t("common.next"),
|
|
15410
15573
|
onClick: () => moveDesktop(1),
|
|
15411
|
-
children: /* @__PURE__ */
|
|
15574
|
+
children: /* @__PURE__ */ jsx47(
|
|
15412
15575
|
Image15,
|
|
15413
15576
|
{
|
|
15414
15577
|
src: "/landing-assets/position-arrow-right.svg",
|
|
@@ -15420,8 +15583,8 @@ function PositionSection() {
|
|
|
15420
15583
|
}
|
|
15421
15584
|
)
|
|
15422
15585
|
] }),
|
|
15423
|
-
/* @__PURE__ */
|
|
15424
|
-
/* @__PURE__ */
|
|
15586
|
+
/* @__PURE__ */ jsxs39("div", { className: "position-mobile-carousel", children: [
|
|
15587
|
+
/* @__PURE__ */ jsx47(
|
|
15425
15588
|
"div",
|
|
15426
15589
|
{
|
|
15427
15590
|
ref: mobileCarouselRef,
|
|
@@ -15448,36 +15611,36 @@ function PositionSection() {
|
|
|
15448
15611
|
);
|
|
15449
15612
|
setMobileSlide(nearest.index);
|
|
15450
15613
|
},
|
|
15451
|
-
children: /* @__PURE__ */
|
|
15614
|
+
children: /* @__PURE__ */ jsx47("div", { className: "swiper-wrapper", children: slides.map((slide, index) => {
|
|
15452
15615
|
const isExpanded = expandedMobileCards.includes(index);
|
|
15453
15616
|
const contentId = `position-mobile-content-${index}`;
|
|
15454
15617
|
const key = `landing.position.slides.${index}`;
|
|
15455
15618
|
const title = t(`${key}.title`);
|
|
15456
|
-
return /* @__PURE__ */
|
|
15619
|
+
return /* @__PURE__ */ jsx47(
|
|
15457
15620
|
"div",
|
|
15458
15621
|
{
|
|
15459
15622
|
className: `swiper-slide${index === mobileSlide ? " swiper-slide-active" : ""}`,
|
|
15460
15623
|
"data-position-mobile-slide": index,
|
|
15461
|
-
children: /* @__PURE__ */
|
|
15624
|
+
children: /* @__PURE__ */ jsx47(
|
|
15462
15625
|
"article",
|
|
15463
15626
|
{
|
|
15464
15627
|
className: `position-mobile-card position-mobile-card--${slide.mediaType}${isExpanded ? " is-expanded" : ""}`,
|
|
15465
|
-
children: /* @__PURE__ */
|
|
15466
|
-
/* @__PURE__ */
|
|
15467
|
-
/* @__PURE__ */
|
|
15468
|
-
/* @__PURE__ */
|
|
15469
|
-
/* @__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(
|
|
15470
15633
|
"div",
|
|
15471
15634
|
{
|
|
15472
15635
|
className: "position-mobile-description-copy",
|
|
15473
15636
|
id: contentId,
|
|
15474
15637
|
children: [
|
|
15475
|
-
/* @__PURE__ */
|
|
15476
|
-
/* @__PURE__ */
|
|
15638
|
+
/* @__PURE__ */ jsx47(ExactText, { cmsAs: "p", children: t(`${key}.paragraphs.0`) }),
|
|
15639
|
+
/* @__PURE__ */ jsx47(ExactText, { cmsAs: "p", children: t(`${key}.paragraphs.1`) })
|
|
15477
15640
|
]
|
|
15478
15641
|
}
|
|
15479
15642
|
),
|
|
15480
|
-
/* @__PURE__ */
|
|
15643
|
+
/* @__PURE__ */ jsx47(
|
|
15481
15644
|
"button",
|
|
15482
15645
|
{
|
|
15483
15646
|
className: "position-mobile-toggle",
|
|
@@ -15486,7 +15649,7 @@ function PositionSection() {
|
|
|
15486
15649
|
"aria-controls": contentId,
|
|
15487
15650
|
"aria-label": `${isExpanded ? t("common.collapse") : t("common.fullContent")}: ${title}`,
|
|
15488
15651
|
onClick: () => toggleMobileCard(index),
|
|
15489
|
-
children: /* @__PURE__ */
|
|
15652
|
+
children: /* @__PURE__ */ jsx47(
|
|
15490
15653
|
Image15,
|
|
15491
15654
|
{
|
|
15492
15655
|
src: "/landing-assets/position-chevron.svg",
|
|
@@ -15500,7 +15663,7 @@ function PositionSection() {
|
|
|
15500
15663
|
)
|
|
15501
15664
|
] })
|
|
15502
15665
|
] }),
|
|
15503
|
-
/* @__PURE__ */
|
|
15666
|
+
/* @__PURE__ */ jsx47(
|
|
15504
15667
|
PositionMedia,
|
|
15505
15668
|
{
|
|
15506
15669
|
slide,
|
|
@@ -15518,7 +15681,7 @@ function PositionSection() {
|
|
|
15518
15681
|
}) })
|
|
15519
15682
|
}
|
|
15520
15683
|
),
|
|
15521
|
-
/* @__PURE__ */
|
|
15684
|
+
/* @__PURE__ */ jsx47("div", { className: "position-mobile-pagination", children: slides.map((_slide, index) => /* @__PURE__ */ jsx47(
|
|
15522
15685
|
"button",
|
|
15523
15686
|
{
|
|
15524
15687
|
className: `position-dot${index === mobileSlide ? " is-active" : ""}`,
|
|
@@ -15530,7 +15693,7 @@ function PositionSection() {
|
|
|
15530
15693
|
`mobile-dot-${index}`
|
|
15531
15694
|
)) })
|
|
15532
15695
|
] }),
|
|
15533
|
-
/* @__PURE__ */
|
|
15696
|
+
/* @__PURE__ */ jsx47("div", { className: "position-pagination", children: slides.map((_slide, index) => /* @__PURE__ */ jsx47(
|
|
15534
15697
|
"button",
|
|
15535
15698
|
{
|
|
15536
15699
|
className: `position-dot${index === desktopActiveSlide ? " is-active" : ""}`,
|
|
@@ -15547,7 +15710,7 @@ function PositionSection() {
|
|
|
15547
15710
|
// src/commodity-original/components/LandingPage/StepsSection.tsx
|
|
15548
15711
|
import Image16 from "next/image.js";
|
|
15549
15712
|
import { useTranslation as useTranslation26 } from "react-i18next";
|
|
15550
|
-
import { jsx as
|
|
15713
|
+
import { jsx as jsx48, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
15551
15714
|
function StepsSection() {
|
|
15552
15715
|
const { t } = useTranslation26();
|
|
15553
15716
|
const { themeName } = useAppTheme();
|
|
@@ -15555,7 +15718,7 @@ function StepsSection() {
|
|
|
15555
15718
|
const stepIcons = [
|
|
15556
15719
|
{
|
|
15557
15720
|
id: "account",
|
|
15558
|
-
icon: /* @__PURE__ */
|
|
15721
|
+
icon: /* @__PURE__ */ jsxs40(
|
|
15559
15722
|
"svg",
|
|
15560
15723
|
{
|
|
15561
15724
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15564,7 +15727,7 @@ function StepsSection() {
|
|
|
15564
15727
|
viewBox: "0 0 48 48",
|
|
15565
15728
|
fill: "none",
|
|
15566
15729
|
children: [
|
|
15567
|
-
/* @__PURE__ */
|
|
15730
|
+
/* @__PURE__ */ jsx48(
|
|
15568
15731
|
"path",
|
|
15569
15732
|
{
|
|
15570
15733
|
d: "M30 35.625L33.5182 38.4315C33.9219 38.7536 34.5046 38.7152 34.8626 38.3429L40 33",
|
|
@@ -15573,14 +15736,14 @@ function StepsSection() {
|
|
|
15573
15736
|
strokeLinecap: "round"
|
|
15574
15737
|
}
|
|
15575
15738
|
),
|
|
15576
|
-
/* @__PURE__ */
|
|
15739
|
+
/* @__PURE__ */ jsx48(
|
|
15577
15740
|
"path",
|
|
15578
15741
|
{
|
|
15579
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",
|
|
15580
15743
|
fill: "#F9BB3A"
|
|
15581
15744
|
}
|
|
15582
15745
|
),
|
|
15583
|
-
/* @__PURE__ */
|
|
15746
|
+
/* @__PURE__ */ jsx48(
|
|
15584
15747
|
"line",
|
|
15585
15748
|
{
|
|
15586
15749
|
x1: "17.5",
|
|
@@ -15598,7 +15761,7 @@ function StepsSection() {
|
|
|
15598
15761
|
},
|
|
15599
15762
|
{
|
|
15600
15763
|
id: "ekyc",
|
|
15601
|
-
icon: /* @__PURE__ */
|
|
15764
|
+
icon: /* @__PURE__ */ jsxs40(
|
|
15602
15765
|
"svg",
|
|
15603
15766
|
{
|
|
15604
15767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15607,7 +15770,7 @@ function StepsSection() {
|
|
|
15607
15770
|
viewBox: "0 0 48 48",
|
|
15608
15771
|
fill: "none",
|
|
15609
15772
|
children: [
|
|
15610
|
-
/* @__PURE__ */
|
|
15773
|
+
/* @__PURE__ */ jsx48(
|
|
15611
15774
|
"path",
|
|
15612
15775
|
{
|
|
15613
15776
|
d: "M40.9453 16.6987V8.61644C40.9453 7.7237 40.2216 7 39.3289 7H31.2467",
|
|
@@ -15616,7 +15779,7 @@ function StepsSection() {
|
|
|
15616
15779
|
strokeLinecap: "round"
|
|
15617
15780
|
}
|
|
15618
15781
|
),
|
|
15619
|
-
/* @__PURE__ */
|
|
15782
|
+
/* @__PURE__ */ jsx48(
|
|
15620
15783
|
"path",
|
|
15621
15784
|
{
|
|
15622
15785
|
d: "M7 31.2467V39.3289C7 40.2216 7.72371 40.9453 8.61644 40.9453H16.6987",
|
|
@@ -15625,7 +15788,7 @@ function StepsSection() {
|
|
|
15625
15788
|
strokeLinecap: "round"
|
|
15626
15789
|
}
|
|
15627
15790
|
),
|
|
15628
|
-
/* @__PURE__ */
|
|
15791
|
+
/* @__PURE__ */ jsx48(
|
|
15629
15792
|
"path",
|
|
15630
15793
|
{
|
|
15631
15794
|
d: "M7 16.6987V8.61644C7 7.7237 7.72371 7 8.61644 7H16.6987",
|
|
@@ -15634,7 +15797,7 @@ function StepsSection() {
|
|
|
15634
15797
|
strokeLinecap: "round"
|
|
15635
15798
|
}
|
|
15636
15799
|
),
|
|
15637
|
-
/* @__PURE__ */
|
|
15800
|
+
/* @__PURE__ */ jsx48(
|
|
15638
15801
|
"path",
|
|
15639
15802
|
{
|
|
15640
15803
|
d: "M40.9453 31.2467V39.3289C40.9453 40.2216 40.2216 40.9453 39.3289 40.9453H31.2467",
|
|
@@ -15643,21 +15806,21 @@ function StepsSection() {
|
|
|
15643
15806
|
strokeLinecap: "round"
|
|
15644
15807
|
}
|
|
15645
15808
|
),
|
|
15646
|
-
/* @__PURE__ */
|
|
15809
|
+
/* @__PURE__ */ jsx48(
|
|
15647
15810
|
"path",
|
|
15648
15811
|
{
|
|
15649
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",
|
|
15650
15813
|
fill: "#F9BB3A"
|
|
15651
15814
|
}
|
|
15652
15815
|
),
|
|
15653
|
-
/* @__PURE__ */
|
|
15816
|
+
/* @__PURE__ */ jsx48("circle", { cx: "24.0873", cy: "18.0873", r: "5.08734", fill: "#F9BB3A" })
|
|
15654
15817
|
]
|
|
15655
15818
|
}
|
|
15656
15819
|
)
|
|
15657
15820
|
},
|
|
15658
15821
|
{
|
|
15659
15822
|
id: "advice",
|
|
15660
|
-
icon: /* @__PURE__ */
|
|
15823
|
+
icon: /* @__PURE__ */ jsxs40(
|
|
15661
15824
|
"svg",
|
|
15662
15825
|
{
|
|
15663
15826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15666,21 +15829,21 @@ function StepsSection() {
|
|
|
15666
15829
|
viewBox: "0 0 48 48",
|
|
15667
15830
|
fill: "none",
|
|
15668
15831
|
children: [
|
|
15669
|
-
/* @__PURE__ */
|
|
15832
|
+
/* @__PURE__ */ jsx48(
|
|
15670
15833
|
"path",
|
|
15671
15834
|
{
|
|
15672
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",
|
|
15673
15836
|
fill: isDarkTheme ? "#fff" : "black"
|
|
15674
15837
|
}
|
|
15675
15838
|
),
|
|
15676
|
-
/* @__PURE__ */
|
|
15839
|
+
/* @__PURE__ */ jsx48(
|
|
15677
15840
|
"path",
|
|
15678
15841
|
{
|
|
15679
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",
|
|
15680
15843
|
fill: "#F9BB3A"
|
|
15681
15844
|
}
|
|
15682
15845
|
),
|
|
15683
|
-
/* @__PURE__ */
|
|
15846
|
+
/* @__PURE__ */ jsx48(
|
|
15684
15847
|
"circle",
|
|
15685
15848
|
{
|
|
15686
15849
|
cx: "18.3613",
|
|
@@ -15689,7 +15852,7 @@ function StepsSection() {
|
|
|
15689
15852
|
fill: isDarkTheme ? "#fff" : "black"
|
|
15690
15853
|
}
|
|
15691
15854
|
),
|
|
15692
|
-
/* @__PURE__ */
|
|
15855
|
+
/* @__PURE__ */ jsx48(
|
|
15693
15856
|
"circle",
|
|
15694
15857
|
{
|
|
15695
15858
|
cx: "25.8515",
|
|
@@ -15698,7 +15861,7 @@ function StepsSection() {
|
|
|
15698
15861
|
fill: isDarkTheme ? "#fff" : "black"
|
|
15699
15862
|
}
|
|
15700
15863
|
),
|
|
15701
|
-
/* @__PURE__ */
|
|
15864
|
+
/* @__PURE__ */ jsx48(
|
|
15702
15865
|
"circle",
|
|
15703
15866
|
{
|
|
15704
15867
|
cx: "33.3418",
|
|
@@ -15713,7 +15876,7 @@ function StepsSection() {
|
|
|
15713
15876
|
},
|
|
15714
15877
|
{
|
|
15715
15878
|
id: "trade",
|
|
15716
|
-
icon: /* @__PURE__ */
|
|
15879
|
+
icon: /* @__PURE__ */ jsxs40(
|
|
15717
15880
|
"svg",
|
|
15718
15881
|
{
|
|
15719
15882
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15722,7 +15885,7 @@ function StepsSection() {
|
|
|
15722
15885
|
viewBox: "0 0 48 48",
|
|
15723
15886
|
fill: "none",
|
|
15724
15887
|
children: [
|
|
15725
|
-
/* @__PURE__ */
|
|
15888
|
+
/* @__PURE__ */ jsx48(
|
|
15726
15889
|
"rect",
|
|
15727
15890
|
{
|
|
15728
15891
|
x: "4",
|
|
@@ -15733,7 +15896,7 @@ function StepsSection() {
|
|
|
15733
15896
|
fill: "#F9BB3A"
|
|
15734
15897
|
}
|
|
15735
15898
|
),
|
|
15736
|
-
/* @__PURE__ */
|
|
15899
|
+
/* @__PURE__ */ jsx48(
|
|
15737
15900
|
"line",
|
|
15738
15901
|
{
|
|
15739
15902
|
x1: "15.8384",
|
|
@@ -15745,7 +15908,7 @@ function StepsSection() {
|
|
|
15745
15908
|
strokeLinecap: "round"
|
|
15746
15909
|
}
|
|
15747
15910
|
),
|
|
15748
|
-
/* @__PURE__ */
|
|
15911
|
+
/* @__PURE__ */ jsx48(
|
|
15749
15912
|
"line",
|
|
15750
15913
|
{
|
|
15751
15914
|
x1: "19.3279",
|
|
@@ -15757,7 +15920,7 @@ function StepsSection() {
|
|
|
15757
15920
|
strokeLinecap: "round"
|
|
15758
15921
|
}
|
|
15759
15922
|
),
|
|
15760
|
-
/* @__PURE__ */
|
|
15923
|
+
/* @__PURE__ */ jsx48(
|
|
15761
15924
|
"line",
|
|
15762
15925
|
{
|
|
15763
15926
|
x1: "34.8219",
|
|
@@ -15769,7 +15932,7 @@ function StepsSection() {
|
|
|
15769
15932
|
strokeLinecap: "round"
|
|
15770
15933
|
}
|
|
15771
15934
|
),
|
|
15772
|
-
/* @__PURE__ */
|
|
15935
|
+
/* @__PURE__ */ jsx48(
|
|
15773
15936
|
"line",
|
|
15774
15937
|
{
|
|
15775
15938
|
x1: "26.9561",
|
|
@@ -15791,8 +15954,8 @@ function StepsSection() {
|
|
|
15791
15954
|
{ length: stepCount },
|
|
15792
15955
|
(_, index) => stepIcons[index % stepIcons.length]
|
|
15793
15956
|
);
|
|
15794
|
-
return /* @__PURE__ */
|
|
15795
|
-
/* @__PURE__ */
|
|
15957
|
+
return /* @__PURE__ */ jsx48("section", { className: "steps section", children: /* @__PURE__ */ jsxs40("div", { className: "container", children: [
|
|
15958
|
+
/* @__PURE__ */ jsx48(
|
|
15796
15959
|
Title_default,
|
|
15797
15960
|
{
|
|
15798
15961
|
classname: "steps-title",
|
|
@@ -15800,9 +15963,9 @@ function StepsSection() {
|
|
|
15800
15963
|
desc: t("landing.steps.description")
|
|
15801
15964
|
}
|
|
15802
15965
|
),
|
|
15803
|
-
/* @__PURE__ */
|
|
15804
|
-
/* @__PURE__ */
|
|
15805
|
-
/* @__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(
|
|
15806
15969
|
Image16,
|
|
15807
15970
|
{
|
|
15808
15971
|
className: "step-ribbon step-ribbon--desktop",
|
|
@@ -15813,7 +15976,7 @@ function StepsSection() {
|
|
|
15813
15976
|
"aria-hidden": "true"
|
|
15814
15977
|
}
|
|
15815
15978
|
),
|
|
15816
|
-
/* @__PURE__ */
|
|
15979
|
+
/* @__PURE__ */ jsx48(
|
|
15817
15980
|
Image16,
|
|
15818
15981
|
{
|
|
15819
15982
|
className: "step-ribbon-mobile",
|
|
@@ -15824,13 +15987,13 @@ function StepsSection() {
|
|
|
15824
15987
|
"aria-hidden": "true"
|
|
15825
15988
|
}
|
|
15826
15989
|
),
|
|
15827
|
-
/* @__PURE__ */
|
|
15990
|
+
/* @__PURE__ */ jsx48(ExactText, { cmsAs: "span", children: t(`landing.steps.items.${index}.label`) })
|
|
15828
15991
|
] }),
|
|
15829
|
-
/* @__PURE__ */
|
|
15830
|
-
/* @__PURE__ */
|
|
15831
|
-
/* @__PURE__ */
|
|
15832
|
-
/* @__PURE__ */
|
|
15833
|
-
/* @__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`) })
|
|
15834
15997
|
] })
|
|
15835
15998
|
] })
|
|
15836
15999
|
] }, step.id)) })
|
|
@@ -15838,7 +16001,7 @@ function StepsSection() {
|
|
|
15838
16001
|
}
|
|
15839
16002
|
|
|
15840
16003
|
// src/wikex/original-commodity-blocks.tsx
|
|
15841
|
-
import { Fragment as Fragment12, jsx as
|
|
16004
|
+
import { Fragment as Fragment12, jsx as jsx49, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
15842
16005
|
var LANGUAGE_STORAGE_KEY = "wikex-language";
|
|
15843
16006
|
var LANGUAGE_EVENT = "wikex-language-change";
|
|
15844
16007
|
function supportedLanguage(value4) {
|
|
@@ -16043,7 +16206,7 @@ function ExactEditableContent({
|
|
|
16043
16206
|
element.dataset.cmsExactSelected = String(editable && element.dataset.cmsTextField === selectedTextField);
|
|
16044
16207
|
});
|
|
16045
16208
|
}, [content, editable, fieldKeys, selectedTextField]);
|
|
16046
|
-
return /* @__PURE__ */
|
|
16209
|
+
return /* @__PURE__ */ jsx49(
|
|
16047
16210
|
Box7,
|
|
16048
16211
|
{
|
|
16049
16212
|
ref: rootRef,
|
|
@@ -16144,10 +16307,10 @@ function ExactProviders({ content, children }) {
|
|
|
16144
16307
|
window.removeEventListener(LANGUAGE_EVENT, receiveLanguage);
|
|
16145
16308
|
};
|
|
16146
16309
|
}, [instance, requestedLanguage]);
|
|
16147
|
-
return /* @__PURE__ */
|
|
16310
|
+
return /* @__PURE__ */ jsx49(I18nextProvider, { i18n: instance, children: /* @__PURE__ */ jsx49(AppThemeProvider, { children: /* @__PURE__ */ jsx49(ResponsiveProvider, { viewportWidth, children }) }) });
|
|
16148
16311
|
}
|
|
16149
16312
|
function ExactSection({ children }) {
|
|
16150
|
-
return /* @__PURE__ */
|
|
16313
|
+
return /* @__PURE__ */ jsx49(PageShell, { className: "wikex-page", children });
|
|
16151
16314
|
}
|
|
16152
16315
|
function exactBlock(options, Component, wrapSection = false) {
|
|
16153
16316
|
const lists = options.lists ?? [];
|
|
@@ -16291,14 +16454,14 @@ function exactBlock(options, Component, wrapSection = false) {
|
|
|
16291
16454
|
)
|
|
16292
16455
|
)
|
|
16293
16456
|
], [language, listStates, chrome2]);
|
|
16294
|
-
return /* @__PURE__ */
|
|
16457
|
+
return /* @__PURE__ */ jsx49(ExactProviders, { content: renderedContent, children: /* @__PURE__ */ jsx49(
|
|
16295
16458
|
CmsImageProvider,
|
|
16296
16459
|
{
|
|
16297
16460
|
content: renderedContent,
|
|
16298
16461
|
editable: props.editable,
|
|
16299
16462
|
onImageRequest: props.onImageRequest,
|
|
16300
|
-
children: /* @__PURE__ */
|
|
16301
|
-
/* @__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(
|
|
16302
16465
|
ExactEditableContent,
|
|
16303
16466
|
{
|
|
16304
16467
|
content: renderedContent,
|
|
@@ -16307,10 +16470,10 @@ function exactBlock(options, Component, wrapSection = false) {
|
|
|
16307
16470
|
onChange: handleChange,
|
|
16308
16471
|
onSelectText: handleSelectText,
|
|
16309
16472
|
selectedTextField: props.selectedTextField,
|
|
16310
|
-
children: wrapSection ? /* @__PURE__ */
|
|
16473
|
+
children: wrapSection ? /* @__PURE__ */ jsx49(ExactSection, { children: /* @__PURE__ */ jsx49(Component, { ...props }) }) : /* @__PURE__ */ jsx49(Component, { ...props })
|
|
16311
16474
|
}
|
|
16312
16475
|
),
|
|
16313
|
-
props.editable && listStates.length > 0 && /* @__PURE__ */
|
|
16476
|
+
props.editable && listStates.length > 0 && /* @__PURE__ */ jsx49(
|
|
16314
16477
|
Box7,
|
|
16315
16478
|
{
|
|
16316
16479
|
sx: {
|
|
@@ -16319,8 +16482,8 @@ function exactBlock(options, Component, wrapSection = false) {
|
|
|
16319
16482
|
borderTop: "1px solid rgba(32, 40, 32, 0.12)",
|
|
16320
16483
|
bgcolor: "#FAF8F3"
|
|
16321
16484
|
},
|
|
16322
|
-
children: /* @__PURE__ */
|
|
16323
|
-
|
|
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,
|
|
16324
16487
|
{
|
|
16325
16488
|
size: "small",
|
|
16326
16489
|
variant: "contained",
|
|
@@ -16378,7 +16541,7 @@ function ProductDetailExact() {
|
|
|
16378
16541
|
const segments = pathname.split("/").filter(Boolean);
|
|
16379
16542
|
const slug = segments[segments.length - 1] ?? "platinum";
|
|
16380
16543
|
const product = getProductBySlug(slug) ?? productItems[0];
|
|
16381
|
-
return /* @__PURE__ */
|
|
16544
|
+
return /* @__PURE__ */ jsx49(ProductDetailContent, { product });
|
|
16382
16545
|
}
|
|
16383
16546
|
var exactItemFields = (...fields2) => fields2.map(([key, label, type]) => ({ key, label, type, required: key === "title" }));
|
|
16384
16547
|
var image = (key, label, defaultSrc) => ({
|
|
@@ -16636,9 +16799,9 @@ var header = exactBlock(
|
|
|
16636
16799
|
Header
|
|
16637
16800
|
);
|
|
16638
16801
|
function FooterWithFloatingActions() {
|
|
16639
|
-
return /* @__PURE__ */
|
|
16640
|
-
/* @__PURE__ */
|
|
16641
|
-
/* @__PURE__ */
|
|
16802
|
+
return /* @__PURE__ */ jsxs41(Fragment12, { children: [
|
|
16803
|
+
/* @__PURE__ */ jsx49(Footer, {}),
|
|
16804
|
+
/* @__PURE__ */ jsx49(FloatingActions, {})
|
|
16642
16805
|
] });
|
|
16643
16806
|
}
|
|
16644
16807
|
var footer = exactBlock(
|
|
@@ -16658,9 +16821,9 @@ var footer = exactBlock(
|
|
|
16658
16821
|
var hero = exactBlock(
|
|
16659
16822
|
{ type: "commodity-hero", name: "Landing \u2014 Hero g\u1ED1c", description: "Hero nguy\xEAn b\u1EA3n.", prefixes: ["landing.hero."], images: heroImages },
|
|
16660
16823
|
function OriginalHero() {
|
|
16661
|
-
return /* @__PURE__ */
|
|
16662
|
-
/* @__PURE__ */
|
|
16663
|
-
/* @__PURE__ */
|
|
16824
|
+
return /* @__PURE__ */ jsxs41(Fragment12, { children: [
|
|
16825
|
+
/* @__PURE__ */ jsx49(LandingAnimations, {}),
|
|
16826
|
+
/* @__PURE__ */ jsx49(HeroSection2, {})
|
|
16664
16827
|
] });
|
|
16665
16828
|
},
|
|
16666
16829
|
true
|
|
@@ -17042,7 +17205,7 @@ var wikexCommodityRoutes = wikexCommodityPageTemplates.map(({ route, slug, key }
|
|
|
17042
17205
|
// src/shared/text-toolbar.tsx
|
|
17043
17206
|
import { useEffect as useEffect12, useRef as useRef11, useState as useState17 } from "react";
|
|
17044
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";
|
|
17045
|
-
import { jsx as
|
|
17208
|
+
import { jsx as jsx50, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
17046
17209
|
function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureControls, computedFontSize, computedLineHeight, computedFontFamily, computedTextAlign, onLayoutChange, onColorChange, onReset }) {
|
|
17047
17210
|
const toolbarRef = useRef11(null);
|
|
17048
17211
|
const [hex, setHex] = useState17(color);
|
|
@@ -17094,7 +17257,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17094
17257
|
const tooltipProps = { slotProps: { popper: { sx: { zIndex: 1800 } } } };
|
|
17095
17258
|
const inputSx = { width: 52, flexShrink: 0, "& .MuiInputBase-root": { height: 30 }, "& input": { py: 0.5, px: 0.75, fontSize: 12 } };
|
|
17096
17259
|
const groupSx = { display: "flex", alignItems: "center", gap: 0.5 };
|
|
17097
|
-
return /* @__PURE__ */
|
|
17260
|
+
return /* @__PURE__ */ jsxs42(
|
|
17098
17261
|
Box8,
|
|
17099
17262
|
{
|
|
17100
17263
|
ref: toolbarRef,
|
|
@@ -17103,8 +17266,8 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17103
17266
|
"data-cms-text-toolbar": true,
|
|
17104
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%" },
|
|
17105
17268
|
children: [
|
|
17106
|
-
/* @__PURE__ */
|
|
17107
|
-
/* @__PURE__ */
|
|
17269
|
+
/* @__PURE__ */ jsxs42(Box8, { sx: { ...groupSx, flexWrap: "wrap", rowGap: 0.75, pb: 0.75, borderBottom: "1px solid", borderColor: "divider" }, children: [
|
|
17270
|
+
/* @__PURE__ */ jsxs42(
|
|
17108
17271
|
Select3,
|
|
17109
17272
|
{
|
|
17110
17273
|
size: "small",
|
|
@@ -17116,15 +17279,15 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17116
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 } },
|
|
17117
17280
|
onChange: (event) => onLayoutChange({ fontFamily: event.target.value || void 0 }),
|
|
17118
17281
|
children: [
|
|
17119
|
-
!selectedFont && /* @__PURE__ */
|
|
17120
|
-
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))
|
|
17121
17284
|
]
|
|
17122
17285
|
}
|
|
17123
17286
|
),
|
|
17124
17287
|
structureControls
|
|
17125
17288
|
] }),
|
|
17126
|
-
/* @__PURE__ */
|
|
17127
|
-
/* @__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(
|
|
17128
17291
|
TextField4,
|
|
17129
17292
|
{
|
|
17130
17293
|
size: "small",
|
|
@@ -17145,13 +17308,13 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17145
17308
|
}
|
|
17146
17309
|
}
|
|
17147
17310
|
) }),
|
|
17148
|
-
/* @__PURE__ */
|
|
17311
|
+
/* @__PURE__ */ jsx50(Tooltip, { title: "Chi\u1EC1u cao d\xF2ng (l\u1EA7n c\u1EE1 ch\u1EEF)", ...tooltipProps, children: /* @__PURE__ */ jsx50(
|
|
17149
17312
|
TextField4,
|
|
17150
17313
|
{
|
|
17151
17314
|
size: "small",
|
|
17152
17315
|
type: "number",
|
|
17153
17316
|
value: lineHeight,
|
|
17154
|
-
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 } },
|
|
17155
17318
|
sx: { ...inputSx, width: 78, "& .MuiInputBase-root": { height: 30, pl: 0.75 } },
|
|
17156
17319
|
onChange: (event) => {
|
|
17157
17320
|
dirtyLineHeight.current = true;
|
|
@@ -17166,8 +17329,8 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17166
17329
|
}
|
|
17167
17330
|
}
|
|
17168
17331
|
) }),
|
|
17169
|
-
/* @__PURE__ */
|
|
17170
|
-
/* @__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(
|
|
17171
17334
|
ToggleButton2,
|
|
17172
17335
|
{
|
|
17173
17336
|
value: align,
|
|
@@ -17176,10 +17339,10 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17176
17339
|
onMouseDown: (event) => event.preventDefault(),
|
|
17177
17340
|
onClick: () => onLayoutChange({ textAlign: align }),
|
|
17178
17341
|
sx: { width: 30, minWidth: 30, height: 30, p: 0.5, border: 0 },
|
|
17179
|
-
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" }) })
|
|
17180
17343
|
}
|
|
17181
17344
|
) }, align)) }),
|
|
17182
|
-
colorPicker || /* @__PURE__ */
|
|
17345
|
+
colorPicker || /* @__PURE__ */ jsx50(
|
|
17183
17346
|
TextField4,
|
|
17184
17347
|
{
|
|
17185
17348
|
size: "small",
|
|
@@ -17196,7 +17359,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17196
17359
|
}
|
|
17197
17360
|
}
|
|
17198
17361
|
),
|
|
17199
|
-
/* @__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" }) }) }) })
|
|
17200
17363
|
] })
|
|
17201
17364
|
]
|
|
17202
17365
|
}
|
|
@@ -17205,8 +17368,8 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17205
17368
|
|
|
17206
17369
|
// src/shared/button-link-control.tsx
|
|
17207
17370
|
import { useState as useState18 } from "react";
|
|
17208
|
-
import { Box as Box9, Button as
|
|
17209
|
-
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";
|
|
17210
17373
|
function CmsButtonLinkControl({ field, content, onChange }) {
|
|
17211
17374
|
const [anchor, setAnchor] = useState18(null);
|
|
17212
17375
|
const [href, setHref] = useState18("");
|
|
@@ -17217,8 +17380,8 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17217
17380
|
onChange(cmsButtonLinkChanges(content, field, value4, type));
|
|
17218
17381
|
setAnchor(null);
|
|
17219
17382
|
};
|
|
17220
|
-
return /* @__PURE__ */
|
|
17221
|
-
/* @__PURE__ */
|
|
17383
|
+
return /* @__PURE__ */ jsxs43(Fragment13, { children: [
|
|
17384
|
+
/* @__PURE__ */ jsx51(
|
|
17222
17385
|
IconButton4,
|
|
17223
17386
|
{
|
|
17224
17387
|
size: "small",
|
|
@@ -17233,10 +17396,10 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17233
17396
|
setError("");
|
|
17234
17397
|
setAnchor(event.currentTarget);
|
|
17235
17398
|
},
|
|
17236
|
-
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" }) })
|
|
17237
17400
|
}
|
|
17238
17401
|
),
|
|
17239
|
-
/* @__PURE__ */
|
|
17402
|
+
/* @__PURE__ */ jsx51(
|
|
17240
17403
|
Popover,
|
|
17241
17404
|
{
|
|
17242
17405
|
open: Boolean(anchor),
|
|
@@ -17247,7 +17410,7 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17247
17410
|
onClose: () => setAnchor(null),
|
|
17248
17411
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
17249
17412
|
slotProps: { paper: { sx: { p: 1.5, width: 320, maxWidth: "calc(100% - 32px)" } } },
|
|
17250
|
-
children: /* @__PURE__ */
|
|
17413
|
+
children: /* @__PURE__ */ jsx51(Box9, { component: "form", onSubmit: (event) => {
|
|
17251
17414
|
event.preventDefault();
|
|
17252
17415
|
const value4 = href.trim();
|
|
17253
17416
|
if (value4 && !safeCmsButtonHref(value4, type)) {
|
|
@@ -17255,9 +17418,9 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17255
17418
|
return;
|
|
17256
17419
|
}
|
|
17257
17420
|
apply(value4);
|
|
17258
|
-
}, children: /* @__PURE__ */
|
|
17259
|
-
/* @__PURE__ */
|
|
17260
|
-
/* @__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(
|
|
17261
17424
|
TextField5,
|
|
17262
17425
|
{
|
|
17263
17426
|
select: true,
|
|
@@ -17270,12 +17433,12 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17270
17433
|
},
|
|
17271
17434
|
slotProps: { select: { MenuProps: { disableScrollLock: true, container: anchor?.ownerDocument.body, sx: { zIndex: 1700 } } } },
|
|
17272
17435
|
children: [
|
|
17273
|
-
/* @__PURE__ */
|
|
17274
|
-
/* @__PURE__ */
|
|
17436
|
+
/* @__PURE__ */ jsx51(MenuItem5, { value: "internal", children: "Internal \u2014 trong website" }),
|
|
17437
|
+
/* @__PURE__ */ jsx51(MenuItem5, { value: "external", children: "External \u2014 website kh\xE1c" })
|
|
17275
17438
|
]
|
|
17276
17439
|
}
|
|
17277
17440
|
),
|
|
17278
|
-
/* @__PURE__ */
|
|
17441
|
+
/* @__PURE__ */ jsx51(
|
|
17279
17442
|
TextField5,
|
|
17280
17443
|
{
|
|
17281
17444
|
autoFocus: true,
|
|
@@ -17291,9 +17454,9 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17291
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.")
|
|
17292
17455
|
}
|
|
17293
17456
|
),
|
|
17294
|
-
/* @__PURE__ */
|
|
17295
|
-
/* @__PURE__ */
|
|
17296
|
-
/* @__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" })
|
|
17297
17460
|
] })
|
|
17298
17461
|
] }) })
|
|
17299
17462
|
}
|