@enyxs/wikex-components 0.11.32 → 0.11.34
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 +9 -7
- package/dist/fees-model.d.mts +3 -1
- package/dist/fees-model.d.ts +3 -1
- package/dist/fees-model.js +20 -0
- package/dist/fees-model.js.map +1 -1
- package/dist/fees-model.mjs +19 -0
- package/dist/fees-model.mjs.map +1 -1
- package/dist/fees.js +125 -112
- package/dist/fees.js.map +1 -1
- package/dist/fees.mjs +120 -107
- package/dist/fees.mjs.map +1 -1
- package/dist/index.js +278 -265
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +194 -181
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3544,7 +3544,7 @@ var dynamicListBlocks = configs.map(createBlock);
|
|
|
3544
3544
|
var dynamicListTypes = new Set(dynamicListBlocks.map((block) => block.definition.type));
|
|
3545
3545
|
|
|
3546
3546
|
// src/wikex/original-commodity-blocks.tsx
|
|
3547
|
-
import { useEffect as useEffect11, useLayoutEffect as useLayoutEffect4, useMemo as useMemo8, useRef as
|
|
3547
|
+
import { useEffect as useEffect11, useLayoutEffect as useLayoutEffect4, useMemo as useMemo8, useRef as useRef11 } from "react";
|
|
3548
3548
|
import { usePathname as usePathname2 } from "next/navigation.js";
|
|
3549
3549
|
import { createInstance } from "i18next";
|
|
3550
3550
|
import { I18nextProvider, initReactI18next } from "react-i18next";
|
|
@@ -5487,48 +5487,48 @@ var dropOut = keyframes([
|
|
|
5487
5487
|
`from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-12px);}`
|
|
5488
5488
|
]);
|
|
5489
5489
|
var HeaderShell = styled3.header.withConfig({
|
|
5490
|
-
componentId: "sc-
|
|
5490
|
+
componentId: "sc-eabee95e-0"
|
|
5491
5491
|
})([
|
|
5492
5492
|
`position:sticky;top:0;z-index:100;display:flex;height:64px;padding:12px 20px;align-items:center;justify-content:center;background:`,
|
|
5493
5493
|
`;box-shadow:0 1px 12px rgb(0 0 0 / 4%);:root[data-theme="dark"] &{background:#18181a;}@media (max-width:768px){padding-inline:15px;}@media (max-width:620px){height:62px;padding:16px 16px 12px;box-shadow:0 1px 0 rgb(5 8 15 / 8%);}`
|
|
5494
5494
|
], ({ theme }) => theme.colors.background.canvas);
|
|
5495
5495
|
var HeaderInner = styled3.div.withConfig({
|
|
5496
|
-
componentId: "sc-
|
|
5496
|
+
componentId: "sc-eabee95e-1"
|
|
5497
5497
|
})([
|
|
5498
5498
|
`display:flex;width:100%;max-width:1560px;height:40px;margin:0 auto;align-items:center;gap:32px;@media (max-width:1279px){justify-content:space-between;}@media only screen and (max-width:767px){gap:0;}@media (max-width:620px){height:34px;justify-content:space-between;}`
|
|
5499
5499
|
]);
|
|
5500
5500
|
var BrandGroup = styled3.div.withConfig({
|
|
5501
|
-
componentId: "sc-
|
|
5501
|
+
componentId: "sc-eabee95e-2"
|
|
5502
5502
|
})([
|
|
5503
5503
|
`display:flex;flex:0 0 auto;align-items:center;gap:16px;`
|
|
5504
5504
|
]);
|
|
5505
5505
|
var WikiBrand = styled3(Link3).withConfig({
|
|
5506
|
-
componentId: "sc-
|
|
5506
|
+
componentId: "sc-eabee95e-3"
|
|
5507
5507
|
})([
|
|
5508
5508
|
`display:inline-flex;flex:0 0 auto;align-items:center;`
|
|
5509
5509
|
]);
|
|
5510
5510
|
var WikiLogo = styled3(Image).withConfig({
|
|
5511
|
-
componentId: "sc-
|
|
5511
|
+
componentId: "sc-eabee95e-4"
|
|
5512
5512
|
})([
|
|
5513
5513
|
`display:block;width:142px;height:auto;@media (max-width:620px){width:84px;}`
|
|
5514
5514
|
]);
|
|
5515
5515
|
var PartnerBrand = styled3.a.withConfig({
|
|
5516
|
-
componentId: "sc-
|
|
5516
|
+
componentId: "sc-eabee95e-5"
|
|
5517
5517
|
})([
|
|
5518
5518
|
`display:inline-flex;align-items:center;gap:7.2px;color:#009ee3;@media (max-width:767px){display:inline-flex;}`
|
|
5519
5519
|
]);
|
|
5520
5520
|
var MxvLogo = styled3(Image).withConfig({
|
|
5521
|
-
componentId: "sc-
|
|
5521
|
+
componentId: "sc-eabee95e-6"
|
|
5522
5522
|
})([
|
|
5523
5523
|
`display:block;width:95px;height:auto;:root[data-theme="dark"] &{filter:brightness(0) invert(1);}@media (max-width:620px){width:95px;}`
|
|
5524
5524
|
]);
|
|
5525
5525
|
var DesktopNavigation = styled3.nav.withConfig({
|
|
5526
|
-
componentId: "sc-
|
|
5526
|
+
componentId: "sc-eabee95e-7"
|
|
5527
5527
|
})([
|
|
5528
5528
|
`display:flex;align-items:center;gap:16px;@media (max-width:1279px){display:none;}`
|
|
5529
5529
|
]);
|
|
5530
5530
|
var NavigationLink = styled3(Link3).withConfig({
|
|
5531
|
-
componentId: "sc-
|
|
5531
|
+
componentId: "sc-eabee95e-8"
|
|
5532
5532
|
})([
|
|
5533
5533
|
`position:relative;color:`,
|
|
5534
5534
|
`;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;transition:color 160ms ease;&:hover,&:focus-visible{color:`,
|
|
@@ -5536,14 +5536,14 @@ var NavigationLink = styled3(Link3).withConfig({
|
|
|
5536
5536
|
`;}@media (min-width:1280px) and (max-width:1439px){font-size:11px;}`
|
|
5537
5537
|
], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
5538
5538
|
var ProductsMenuTrigger = styled3.button.withConfig({
|
|
5539
|
-
componentId: "sc-
|
|
5539
|
+
componentId: "sc-eabee95e-9"
|
|
5540
5540
|
})([
|
|
5541
5541
|
`display:inline-flex;align-items:center;gap:4px;padding:0;border:0;color:`,
|
|
5542
5542
|
`;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;&[data-state="open"],&[data-active="true"],&:hover,&:focus-visible{color:`,
|
|
5543
5543
|
`;}&:focus-visible{outline:none;}&::after{content:"";border-inline:3px solid transparent;border-top:4px solid currentColor;transition:transform 160ms ease;}&[data-state="open"]::after{transform:rotate(180deg);}@media (min-width:1280px) and (max-width:1439px){font-size:11px;}@media (prefers-reduced-motion:reduce){&::after{transition:none;}}`
|
|
5544
5544
|
], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.accent.primary);
|
|
5545
5545
|
var ProductsMenuContent = styled3(DropdownMenu.Content).withConfig({
|
|
5546
|
-
componentId: "sc-
|
|
5546
|
+
componentId: "sc-eabee95e-10"
|
|
5547
5547
|
})([
|
|
5548
5548
|
`z-index:300;width:206px;max-width:var(--radix-dropdown-menu-content-available-width);padding:8px;border:1px solid `,
|
|
5549
5549
|
`;border-radius:8px;color:`,
|
|
@@ -5553,42 +5553,42 @@ var ProductsMenuContent = styled3(DropdownMenu.Content).withConfig({
|
|
|
5553
5553
|
`;}`
|
|
5554
5554
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.popup, ({ theme }) => theme.colors.effect.popupShadow, ({ theme }) => theme.colors.border.subtle);
|
|
5555
5555
|
var ProductsMenuItem = styled3(DropdownMenu.Item).withConfig({
|
|
5556
|
-
componentId: "sc-
|
|
5556
|
+
componentId: "sc-eabee95e-11"
|
|
5557
5557
|
})([
|
|
5558
5558
|
`display:flex;height:44px;align-items:center;padding:12px 8px;border-radius:4px;cursor:pointer;font-size:14px;font-weight:400;line-height:18px;outline:none;color:inherit;text-decoration:none;&[aria-current="page"],&[data-highlighted],&:focus-visible{color:`,
|
|
5559
5559
|
`;background:transparent;outline:none;}`
|
|
5560
5560
|
], ({ theme }) => theme.colors.accent.primary);
|
|
5561
5561
|
var MobileNavigation2 = styled3.div.withConfig({
|
|
5562
|
-
componentId: "sc-
|
|
5562
|
+
componentId: "sc-eabee95e-12"
|
|
5563
5563
|
})([
|
|
5564
5564
|
`position:relative;display:none;align-items:center;gap:8px;@media (max-width:1279px){display:flex;}@media (max-width:767px){order:3;margin-left:auto;}@media (max-width:620px){gap:2px;}`
|
|
5565
5565
|
]);
|
|
5566
5566
|
var MobileThemeToggle = styled3.div.withConfig({
|
|
5567
|
-
componentId: "sc-
|
|
5567
|
+
componentId: "sc-eabee95e-13"
|
|
5568
5568
|
})([
|
|
5569
5569
|
`display:none;align-items:center;@media (max-width:767px){display:flex;}@media (max-width:620px){&& .theme-toggle--header{border-radius:4px;svg{width:20px;height:20px;}}}`
|
|
5570
5570
|
]);
|
|
5571
5571
|
var MobileLanguageToggle = styled3.div.withConfig({
|
|
5572
|
-
componentId: "sc-
|
|
5572
|
+
componentId: "sc-eabee95e-14"
|
|
5573
5573
|
})([
|
|
5574
5574
|
`display:none;align-items:center;@media (max-width:767px){display:flex;}`
|
|
5575
5575
|
]);
|
|
5576
5576
|
var MobileMenuTrigger = styled3.button.withConfig({
|
|
5577
|
-
componentId: "sc-
|
|
5577
|
+
componentId: "sc-eabee95e-15"
|
|
5578
5578
|
})([
|
|
5579
5579
|
`display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:0;border-radius:9999px;color:`,
|
|
5580
5580
|
`;background:transparent;cursor:pointer;transition:background-color 160ms ease;&:hover,&[data-state="open"]{background:`,
|
|
5581
5581
|
`;}@media (max-width:620px){width:24px;height:24px;border-radius:4px;svg{flex-shrink:0;}}`
|
|
5582
5582
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
|
|
5583
5583
|
var MobileDrawerOverlay = styled3(Dialog.Overlay).withConfig({
|
|
5584
|
-
componentId: "sc-
|
|
5584
|
+
componentId: "sc-eabee95e-16"
|
|
5585
5585
|
})([
|
|
5586
5586
|
`position:fixed;z-index:200;inset:0;background:rgb(0 0 0 / 48%);backdrop-filter:blur(2px);&[data-state="open"]{animation:`,
|
|
5587
5587
|
` 220ms ease-out;}&[data-state="closed"]{animation:`,
|
|
5588
5588
|
` 180ms ease-in;}@media (prefers-reduced-motion:reduce){animation:none;}@media (max-width:767px){top:var(--header-height);background:rgb(5 8 16 / 40%);backdrop-filter:blur(5px);}`
|
|
5589
5589
|
], fadeIn, fadeOut);
|
|
5590
5590
|
var MobileDrawerContent = styled3(Dialog.Content).withConfig({
|
|
5591
|
-
componentId: "sc-
|
|
5591
|
+
componentId: "sc-eabee95e-17"
|
|
5592
5592
|
})([
|
|
5593
5593
|
`position:fixed;z-index:201;top:0;right:0;width:320px;max-width:calc(100% - 24px);height:100vh;padding:20px;overflow-y:auto;color:`,
|
|
5594
5594
|
`;background:`,
|
|
@@ -5599,103 +5599,103 @@ var MobileDrawerContent = styled3(Dialog.Content).withConfig({
|
|
|
5599
5599
|
` 180ms ease-in;}}`
|
|
5600
5600
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.canvas, slideIn, slideOut, dropIn, dropOut);
|
|
5601
5601
|
var MobileDrawerHeader = styled3.div.withConfig({
|
|
5602
|
-
componentId: "sc-
|
|
5602
|
+
componentId: "sc-eabee95e-18"
|
|
5603
5603
|
})([
|
|
5604
5604
|
`display:flex;min-height:44px;margin-bottom:24px;align-items:center;justify-content:space-between;gap:16px;@media (max-width:767px){display:none;}`
|
|
5605
5605
|
]);
|
|
5606
5606
|
var MobileDrawerTitle = styled3(Dialog.Title).withConfig({
|
|
5607
|
-
componentId: "sc-
|
|
5607
|
+
componentId: "sc-eabee95e-19"
|
|
5608
5608
|
})([
|
|
5609
5609
|
`margin:0;font-size:20px;font-weight:700;line-height:28px;`
|
|
5610
5610
|
]);
|
|
5611
5611
|
var MobileDrawerClose = styled3(Dialog.Close).withConfig({
|
|
5612
|
-
componentId: "sc-
|
|
5612
|
+
componentId: "sc-eabee95e-20"
|
|
5613
5613
|
})([
|
|
5614
5614
|
`display:inline-flex;width:40px;height:40px;flex:0 0 40px;align-items:center;justify-content:center;border:0;border-radius:50%;color:`,
|
|
5615
5615
|
`;background:transparent;cursor:pointer;&:hover{background:`,
|
|
5616
5616
|
`;}`
|
|
5617
5617
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
|
|
5618
5618
|
var MobileDrawerActions = styled3.div.withConfig({
|
|
5619
|
-
componentId: "sc-
|
|
5619
|
+
componentId: "sc-eabee95e-21"
|
|
5620
5620
|
})([
|
|
5621
5621
|
`display:none;@media (max-width:767px){display:grid;width:100%;margin-bottom:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}`
|
|
5622
5622
|
]);
|
|
5623
5623
|
var MobileMenuPanel = styled3.nav.withConfig({
|
|
5624
|
-
componentId: "sc-
|
|
5624
|
+
componentId: "sc-eabee95e-22"
|
|
5625
5625
|
})([
|
|
5626
5626
|
`display:flex;flex-direction:column;gap:6px;a,button{width:100%;border:0;display:flex;border-radius:8px;padding:14px 12px;color:`,
|
|
5627
5627
|
`;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;text-align:left;transition:color 160ms ease,background-color 160ms ease;}a:hover,a:focus-visible,button:not(:disabled):hover,button:not(:disabled):focus-visible{color:`,
|
|
5628
5628
|
`;background:`,
|
|
5629
5629
|
`;outline:none;}button:disabled{cursor:not-allowed;opacity:0.55;}.mobile-menu-group,.mobile-menu-submenu{display:flex;flex-direction:column;}.mobile-menu-submenu[hidden]{display:none;}a[aria-current="page"],button.mobile-menu-accordion-trigger[data-active="true"],button.mobile-menu-accordion-trigger[aria-expanded="true"]{color:`,
|
|
5630
|
-
`;}.mobile-menu-submenu a{padding-left:28px;font-size:13px;font-weight:500;}.mobile-products-chevron{display:inline-flex;transition:transform 160ms ease;}.mobile-menu-accordion-trigger[aria-expanded="true"] .mobile-products-chevron{transform:rotate(180deg);}@media (max-width:767px){gap:0;a,button{display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:12px
|
|
5630
|
+
`;}.mobile-menu-submenu a{padding-left:28px;font-size:13px;font-weight:500;}.mobile-products-chevron{display:inline-flex;transition:transform 160ms ease;}.mobile-menu-accordion-trigger[aria-expanded="true"] .mobile-products-chevron{transform:rotate(180deg);}@media (max-width:767px){gap:0;a,button{display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:12px;font-weight:700;line-height:18px;}a[data-accent="true"]{color:#f9bb3a;}.mobile-menu-submenu a{min-height:34px;padding:7px 12px 7px 28px;font-size:14px;font-weight:500;}.mobile-menu-login{display:none;}svg{width:18px;height:18px;flex:0 0 18px;}}@media (prefers-reduced-motion:reduce){.mobile-products-chevron{transition:none;}}`
|
|
5631
5631
|
], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary);
|
|
5632
5632
|
var RightActions = styled3.div.withConfig({
|
|
5633
|
-
componentId: "sc-
|
|
5633
|
+
componentId: "sc-eabee95e-23"
|
|
5634
5634
|
})([
|
|
5635
5635
|
`display:flex;margin-left:auto;align-items:center;gap:12px;& > div{display:flex;align-items:center;gap:8px;}@media (max-width:1279px){display:none;}`
|
|
5636
5636
|
]);
|
|
5637
5637
|
var IconButton2 = styled3.button.withConfig({
|
|
5638
|
-
componentId: "sc-
|
|
5638
|
+
componentId: "sc-eabee95e-24"
|
|
5639
5639
|
})([
|
|
5640
5640
|
`display:inline-flex;width:36px;height:36px;flex:0 0 auto;align-items:center;justify-content:center;border:0;border-radius:8px;color:`,
|
|
5641
5641
|
`;background:transparent;cursor:pointer;transition:background-color 160ms ease;svg{width:24px;height:24px;}&:hover{background:`,
|
|
5642
5642
|
`;}@media (max-width:480px){display:none;}`
|
|
5643
5643
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
|
|
5644
5644
|
var LanguageTrigger = styled3(IconButton2).withConfig({
|
|
5645
|
-
componentId: "sc-
|
|
5645
|
+
componentId: "sc-eabee95e-25"
|
|
5646
5646
|
})([
|
|
5647
5647
|
`&[data-state="open"]{color:#f9bb3a;background:`,
|
|
5648
5648
|
`;}@media (max-width:767px){display:inline-flex;}@media (max-width:620px){border-radius:4px;svg{width:20px;height:20px;flex-shrink:0;}}`
|
|
5649
5649
|
], ({ theme }) => theme.colors.background.hover);
|
|
5650
5650
|
var LanguageMenuContent = styled3(DropdownMenu.Content).withConfig({
|
|
5651
|
-
componentId: "sc-
|
|
5651
|
+
componentId: "sc-eabee95e-26"
|
|
5652
5652
|
})([
|
|
5653
5653
|
`z-index:300;width:180px;padding:8px;border:1px solid #e6e7ea;border-radius:12px;color:#05080f;background:#f9fafb;box-shadow:0 4px 8px rgb(5 8 16 / 5%);outline:none;transform-origin:var(--radix-dropdown-menu-content-transform-origin);&[data-state="open"]{animation:`,
|
|
5654
5654
|
` 140ms ease-out;}&[data-state="closed"]{animation:`,
|
|
5655
5655
|
` 100ms ease-in;}:root[data-theme="dark"] &{border-color:#48484a;color:#f2f2f7;background:#2c2c2e;box-shadow:0 4px 12px rgb(0 0 0 / 24%);}&[data-compact="true"]{width:148px;padding:6px;}@media (prefers-reduced-motion:reduce){animation:none;}`
|
|
5656
5656
|
], fadeIn, fadeOut);
|
|
5657
5657
|
var LanguageMenuItem = styled3(DropdownMenu.RadioItem).withConfig({
|
|
5658
|
-
componentId: "sc-
|
|
5658
|
+
componentId: "sc-eabee95e-27"
|
|
5659
5659
|
})([
|
|
5660
5660
|
`display:flex;width:100%;height:46px;padding:12px 8px;align-items:center;gap:8px;border-radius:8px;cursor:pointer;font-size:16px;font-weight:500;line-height:22px;outline:none;user-select:none;&[data-highlighted]{background:#f1f2f4;}:root[data-theme="dark"] &[data-highlighted]{background:#3a3a3c;}`,
|
|
5661
5661
|
`[data-compact="true"] &{height:40px;padding:10px 6px;font-size:14px;line-height:18px;}`
|
|
5662
5662
|
], LanguageMenuContent);
|
|
5663
5663
|
var LanguageFlag = styled3.span.withConfig({
|
|
5664
|
-
componentId: "sc-
|
|
5664
|
+
componentId: "sc-eabee95e-28"
|
|
5665
5665
|
})([
|
|
5666
5666
|
`display:inline-flex;width:20px;height:20px;flex:0 0 20px;overflow:hidden;align-items:center;justify-content:center;border-radius:50%;img{width:100%;height:100%;max-width:none;object-fit:cover;}`
|
|
5667
5667
|
]);
|
|
5668
5668
|
var LanguageItemIndicator = styled3(DropdownMenu.ItemIndicator).withConfig({
|
|
5669
|
-
componentId: "sc-
|
|
5669
|
+
componentId: "sc-eabee95e-29"
|
|
5670
5670
|
})([
|
|
5671
5671
|
`display:inline-flex;width:18px;height:18px;margin-left:auto;flex:0 0 18px;align-items:center;justify-content:center;img{display:block;width:18px;height:18px;}`,
|
|
5672
5672
|
`[data-compact="true"] &,`,
|
|
5673
5673
|
`[data-compact="true"] & img{width:16px;height:16px;flex-basis:16px;}`
|
|
5674
5674
|
], LanguageMenuContent, LanguageMenuContent);
|
|
5675
5675
|
var ActionDivider = styled3.span.withConfig({
|
|
5676
|
-
componentId: "sc-
|
|
5676
|
+
componentId: "sc-eabee95e-30"
|
|
5677
5677
|
})([
|
|
5678
5678
|
`width:1px;height:16px;background:`,
|
|
5679
5679
|
`;@media (max-width:608px){display:none;}`
|
|
5680
5680
|
], ({ theme }) => theme.colors.border.line);
|
|
5681
5681
|
var LoginLink = styled3.a.withConfig({
|
|
5682
|
-
componentId: "sc-
|
|
5682
|
+
componentId: "sc-eabee95e-31"
|
|
5683
5683
|
})([
|
|
5684
5684
|
`display:inline-flex;text-decoration:none;height:40px;align-items:center;justify-content:center;border:1px solid #d2d5da;border-radius:6px;padding:0 16px;color:#05080f;background:transparent;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;transition:background-color 160ms ease,border-color 160ms ease;:root[data-theme="dark"] &{color:#fafafa;}&:not([aria-disabled="true"]):hover{background:`,
|
|
5685
5685
|
`;}&[aria-disabled="true"]{cursor:not-allowed;opacity:0.55;}@media (max-width:608px){display:none;}`
|
|
5686
5686
|
], ({ theme }) => theme.colors.background.hover);
|
|
5687
5687
|
var OpenAccountButton = styled3(Button_default).withConfig({
|
|
5688
|
-
componentId: "sc-
|
|
5688
|
+
componentId: "sc-eabee95e-32"
|
|
5689
5689
|
})([
|
|
5690
5690
|
`width:120px;height:40px;min-height:40px;border-radius:6px;padding:0;box-shadow:0 1px 20px rgb(249 187 58 / 60%);font-family:var(--font-inter),sans-serif;font-size:14px;font-weight:600;line-height:22px;white-space:nowrap;&:hover{&::before{opacity:0.8;}}&::before{content:"";position:absolute;left:50%;bottom:0;margin-left:-49px;width:98px;height:22px;background:#ffe492;filter:blur(10px);pointer-events:none;opacity:0;transition:opacity 0.15s linear;}@media (max-width:767px){display:none;}`
|
|
5691
5691
|
]);
|
|
5692
5692
|
var MobileDrawerLoginButton = styled3(LoginLink).withConfig({
|
|
5693
|
-
componentId: "sc-
|
|
5693
|
+
componentId: "sc-eabee95e-33"
|
|
5694
5694
|
})([
|
|
5695
5695
|
`display:none;@media (max-width:767px){display:inline-flex;width:100%;min-width:0;padding-inline:12px;&:disabled{opacity:1;}}`
|
|
5696
5696
|
]);
|
|
5697
5697
|
var MobileDrawerOpenAccountButton = styled3(OpenAccountButton).withConfig({
|
|
5698
|
-
componentId: "sc-
|
|
5698
|
+
componentId: "sc-eabee95e-34"
|
|
5699
5699
|
})([
|
|
5700
5700
|
`display:none;@media (max-width:767px){display:flex;width:100%;min-width:0;}`
|
|
5701
5701
|
]);
|
|
@@ -7552,9 +7552,9 @@ import { useTranslation as useTranslation4 } from "react-i18next";
|
|
|
7552
7552
|
|
|
7553
7553
|
// src/wikex/fees-table.tsx
|
|
7554
7554
|
import { jsx as _jsx3, jsxs as _jsxs3 } from "react/jsx-runtime";
|
|
7555
|
-
import { useId, useLayoutEffect as useLayoutEffect2, useRef as
|
|
7555
|
+
import { useId, useLayoutEffect as useLayoutEffect2, useRef as useRef5, useState as useState6 } from "react";
|
|
7556
7556
|
import styled12, { ThemeProvider } from "styled-components";
|
|
7557
|
-
import
|
|
7557
|
+
import TextField4 from "@mui/material/TextField";
|
|
7558
7558
|
import Dialog2 from "@mui/material/Dialog";
|
|
7559
7559
|
import DialogTitle from "@mui/material/DialogTitle";
|
|
7560
7560
|
import DialogContent from "@mui/material/DialogContent";
|
|
@@ -7562,7 +7562,7 @@ import DialogContentText from "@mui/material/DialogContentText";
|
|
|
7562
7562
|
import DialogActions from "@mui/material/DialogActions";
|
|
7563
7563
|
import Button9 from "@mui/material/Button";
|
|
7564
7564
|
import Select2 from "@mui/material/Select";
|
|
7565
|
-
import
|
|
7565
|
+
import MenuItem4 from "@mui/material/MenuItem";
|
|
7566
7566
|
import Checkbox2 from "@mui/material/Checkbox";
|
|
7567
7567
|
import Collapse from "@mui/material/Collapse";
|
|
7568
7568
|
|
|
@@ -7605,23 +7605,23 @@ function moveFeesItem(items, from, to) {
|
|
|
7605
7605
|
next.splice(to, 0, item);
|
|
7606
7606
|
return next;
|
|
7607
7607
|
}
|
|
7608
|
-
function
|
|
7609
|
-
if (!table.columns.some((column) => column.key ===
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7608
|
+
function setFeesColumnAlignment(table, columnKey, textAlign) {
|
|
7609
|
+
if (!table.columns.some((column) => column.key === columnKey)) return table;
|
|
7610
|
+
return {
|
|
7611
|
+
...table,
|
|
7612
|
+
columns: table.columns.map((column) => {
|
|
7613
|
+
if (column.key !== columnKey) return column;
|
|
7613
7614
|
const { textAlign: _previous, ...rest } = column;
|
|
7614
7615
|
return { ...rest, ...textAlign ? { textAlign } : {} };
|
|
7615
|
-
})
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
}) };
|
|
7616
|
+
}),
|
|
7617
|
+
rows: table.rows.map((row) => {
|
|
7618
|
+
if (!row.cellAlignments || !Object.prototype.hasOwnProperty.call(row.cellAlignments, columnKey)) return row;
|
|
7619
|
+
const { cellAlignments, ...rest } = row;
|
|
7620
|
+
const alignments = { ...cellAlignments };
|
|
7621
|
+
delete alignments[columnKey];
|
|
7622
|
+
return { ...rest, ...Object.keys(alignments).length ? { cellAlignments: alignments } : {} };
|
|
7623
|
+
})
|
|
7624
|
+
};
|
|
7625
7625
|
}
|
|
7626
7626
|
function validateFeesTextAlign(value4) {
|
|
7627
7627
|
if (!FEES_TEXT_ALIGNS.includes(value4)) throw new Error("C\u0103n l\u1EC1 b\u1EA3ng ph\xED kh\xF4ng h\u1EE3p l\u1EC7. Ch\u1ECDn c\u0103n tr\xE1i, gi\u1EEFa ho\u1EB7c ph\u1EA3i.");
|
|
@@ -7842,7 +7842,7 @@ function FeesTypographyControls({ value: value4, onChange }) {
|
|
|
7842
7842
|
/* @__PURE__ */ jsxs9(Stack4, { direction: { xs: "column", sm: "row" }, gap: 1.5, justifyContent: "space-between", alignItems: { sm: "center" }, sx: { mb: 2 }, children: [
|
|
7843
7843
|
/* @__PURE__ */ jsxs9(Box6, { children: [
|
|
7844
7844
|
/* @__PURE__ */ jsx15(Typography4, { variant: "subtitle2", children: "\u0110\u1ECBnh d\u1EA1ng ch\u1EEF" }),
|
|
7845
|
-
/* @__PURE__ */ jsx15(Typography4, { variant: "caption", color: "text.secondary", children: "C\u1EE1 ch\u1EEF v\xE0 \u0111\u1ED9 \u0111\u1EADm \xE1p d\u1EE5ng cho to\xE0n b\u1EA3ng, theo ng\xF4n ng\u1EEF \u0111ang ch\u1ECDn. C\u0103n l\u1EC1 \u0111\
|
|
7845
|
+
/* @__PURE__ */ jsx15(Typography4, { variant: "caption", color: "text.secondary", children: "C\u1EE1 ch\u1EEF v\xE0 \u0111\u1ED9 \u0111\u1EADm \xE1p d\u1EE5ng cho to\xE0n b\u1EA3ng, theo ng\xF4n ng\u1EEF \u0111ang ch\u1ECDn. Ch\u1ECDn c\u1ED9t trong m\u1EE5c C\u0103n l\u1EC1 theo c\u1ED9t \u0111\u1EC3 ch\u1EC9nh ti\xEAu \u0111\u1EC1 v\xE0 to\xE0n b\u1ED9 gi\xE1 tr\u1ECB c\u1EE7a c\u1ED9t." })
|
|
7846
7846
|
] }),
|
|
7847
7847
|
/* @__PURE__ */ jsxs9(Stack4, { direction: "row", gap: 1, flexShrink: 0, children: [
|
|
7848
7848
|
/* @__PURE__ */ jsx15(Button7, { size: "small", variant: "outlined", onClick: () => onChange({ thead: { ...value4?.thead, fontSize: 14, fontWeight: 700 }, tbody: { ...value4?.tbody, fontSize: 14, fontWeight: 500 } }), children: "D\u1EC5 \u0111\u1ECDc" }),
|
|
@@ -7881,53 +7881,78 @@ function FeesTypographyControls({ value: value4, onChange }) {
|
|
|
7881
7881
|
] });
|
|
7882
7882
|
}
|
|
7883
7883
|
|
|
7884
|
-
// src/wikex/fees-
|
|
7885
|
-
import {
|
|
7884
|
+
// src/wikex/fees-column-alignment-controls.tsx
|
|
7885
|
+
import { useRef as useRef4 } from "react";
|
|
7886
|
+
import { Button as Button8, MenuItem as MenuItem3, Stack as Stack5, TextField as TextField3, Typography as Typography5 } from "@mui/material";
|
|
7886
7887
|
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
7887
7888
|
var labels = { left: "C\u0103n tr\xE1i", center: "C\u0103n gi\u1EEFa", right: "C\u0103n ph\u1EA3i" };
|
|
7888
7889
|
var englishLabels = { left: "Align left", center: "Align center", right: "Align right" };
|
|
7889
|
-
function
|
|
7890
|
+
function FeesColumnAlignmentControls({ columns, columnKey, english, onSelectColumn, onChange }) {
|
|
7891
|
+
const root = useRef4(null);
|
|
7892
|
+
const column = columns.find((item) => item.key === columnKey);
|
|
7890
7893
|
return /* @__PURE__ */ jsxs10(
|
|
7891
7894
|
Stack5,
|
|
7892
7895
|
{
|
|
7896
|
+
ref: root,
|
|
7893
7897
|
role: "group",
|
|
7894
|
-
"aria-label": english ? "
|
|
7895
|
-
direction: { xs: "column", sm: "row" },
|
|
7898
|
+
"aria-label": english ? "Column alignment" : "C\u0103n l\u1EC1 theo c\u1ED9t",
|
|
7896
7899
|
spacing: 1.5,
|
|
7897
|
-
alignItems: { sm: "center" },
|
|
7898
7900
|
sx: { my: 2, p: 1.5, border: "1px solid", borderColor: "divider", borderRadius: 1.5 },
|
|
7899
7901
|
children: [
|
|
7900
|
-
/* @__PURE__ */
|
|
7901
|
-
|
|
7902
|
-
/* @__PURE__ */
|
|
7903
|
-
|
|
7904
|
-
/* @__PURE__ */ jsxs10(Stack5, { direction: "row", spacing: 0.5, flexWrap: "wrap", useFlexGap: true, children: [
|
|
7905
|
-
FEES_TEXT_ALIGNS.map((align) => /* @__PURE__ */ jsx16(
|
|
7906
|
-
Button8,
|
|
7907
|
-
{
|
|
7908
|
-
size: "small",
|
|
7909
|
-
disabled: !label,
|
|
7910
|
-
variant: value4 === align ? "contained" : "outlined",
|
|
7911
|
-
"aria-pressed": value4 === align,
|
|
7912
|
-
onMouseDown: (event) => event.preventDefault(),
|
|
7913
|
-
onClick: () => onChange(align),
|
|
7914
|
-
children: (english ? englishLabels : labels)[align]
|
|
7915
|
-
},
|
|
7916
|
-
align
|
|
7917
|
-
)),
|
|
7918
|
-
/* @__PURE__ */ jsx16(
|
|
7919
|
-
Button8,
|
|
7902
|
+
/* @__PURE__ */ jsx16(Typography5, { variant: "subtitle2", children: english ? "Column alignment" : "C\u0103n l\u1EC1 theo c\u1ED9t" }),
|
|
7903
|
+
/* @__PURE__ */ jsxs10(Stack5, { direction: { xs: "column", sm: "row" }, spacing: 1.5, alignItems: { sm: "center" }, children: [
|
|
7904
|
+
/* @__PURE__ */ jsxs10(
|
|
7905
|
+
TextField3,
|
|
7920
7906
|
{
|
|
7907
|
+
select: true,
|
|
7921
7908
|
size: "small",
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7909
|
+
label: english ? "Column to align" : "C\u1ED9t c\u1EA7n c\u0103n l\u1EC1",
|
|
7910
|
+
value: column?.key ?? "",
|
|
7911
|
+
sx: { flex: 1, minWidth: 0 },
|
|
7912
|
+
slotProps: { inputLabel: { shrink: true }, select: {
|
|
7913
|
+
displayEmpty: true,
|
|
7914
|
+
SelectDisplayProps: { "aria-labelledby": void 0 },
|
|
7915
|
+
inputProps: { "aria-label": english ? "Column to align" : "C\u1ED9t c\u1EA7n c\u0103n l\u1EC1" },
|
|
7916
|
+
MenuProps: { container: () => root.current?.ownerDocument.body ?? document.body }
|
|
7917
|
+
} },
|
|
7918
|
+
onChange: (event) => onSelectColumn(event.target.value),
|
|
7919
|
+
children: [
|
|
7920
|
+
/* @__PURE__ */ jsx16(MenuItem3, { value: "", disabled: true, children: english ? "Select a column" : "Ch\u1ECDn c\u1ED9t" }),
|
|
7921
|
+
columns.map((item, index) => /* @__PURE__ */ jsxs10(MenuItem3, { value: item.key, children: [
|
|
7922
|
+
index + 1,
|
|
7923
|
+
". ",
|
|
7924
|
+
item.title || (english ? "Untitled column" : "C\u1ED9t ch\u01B0a c\xF3 ti\xEAu \u0111\u1EC1")
|
|
7925
|
+
] }, item.key))
|
|
7926
|
+
]
|
|
7928
7927
|
}
|
|
7929
|
-
)
|
|
7930
|
-
|
|
7928
|
+
),
|
|
7929
|
+
/* @__PURE__ */ jsxs10(Stack5, { direction: "row", spacing: 0.5, flexWrap: "wrap", useFlexGap: true, children: [
|
|
7930
|
+
FEES_TEXT_ALIGNS.map((align) => /* @__PURE__ */ jsx16(
|
|
7931
|
+
Button8,
|
|
7932
|
+
{
|
|
7933
|
+
size: "small",
|
|
7934
|
+
disabled: !column,
|
|
7935
|
+
variant: column?.textAlign === align ? "contained" : "outlined",
|
|
7936
|
+
"aria-pressed": column?.textAlign === align,
|
|
7937
|
+
onClick: () => onChange(align),
|
|
7938
|
+
children: (english ? englishLabels : labels)[align]
|
|
7939
|
+
},
|
|
7940
|
+
align
|
|
7941
|
+
)),
|
|
7942
|
+
/* @__PURE__ */ jsx16(
|
|
7943
|
+
Button8,
|
|
7944
|
+
{
|
|
7945
|
+
size: "small",
|
|
7946
|
+
color: "inherit",
|
|
7947
|
+
disabled: !column,
|
|
7948
|
+
"aria-label": english ? "Reset selected column alignment" : "C\u0103n l\u1EC1 m\u1EB7c \u0111\u1ECBnh cho c\u1ED9t \u0111ang ch\u1ECDn",
|
|
7949
|
+
onClick: () => onChange(void 0),
|
|
7950
|
+
children: english ? "Default" : "M\u1EB7c \u0111\u1ECBnh"
|
|
7951
|
+
}
|
|
7952
|
+
)
|
|
7953
|
+
] })
|
|
7954
|
+
] }),
|
|
7955
|
+
/* @__PURE__ */ jsx16(Typography5, { variant: "caption", color: "text.secondary", children: english ? "Applies to the header and all values in the selected column, including filtered rows and other pages." : "\xC1p d\u1EE5ng cho ti\xEAu \u0111\u1EC1 v\xE0 to\xE0n b\u1ED9 gi\xE1 tr\u1ECB c\u1EE7a c\u1ED9t \u0111\xE3 ch\u1ECDn, k\u1EC3 c\u1EA3 c\xE1c d\xF2ng \u0111ang l\u1ECDc v\xE0 \u1EDF trang kh\xE1c." })
|
|
7931
7956
|
]
|
|
7932
7957
|
}
|
|
7933
7958
|
);
|
|
@@ -8692,32 +8717,32 @@ var feesTheme = {
|
|
|
8692
8717
|
]))
|
|
8693
8718
|
};
|
|
8694
8719
|
var EditorActions = styled12.div.withConfig({
|
|
8695
|
-
componentId: "sc-
|
|
8720
|
+
componentId: "sc-a4d52175-0"
|
|
8696
8721
|
})([
|
|
8697
8722
|
`display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;`
|
|
8698
8723
|
]);
|
|
8699
8724
|
var EditGroup = styled12.div.withConfig({
|
|
8700
|
-
componentId: "sc-
|
|
8725
|
+
componentId: "sc-a4d52175-1"
|
|
8701
8726
|
})([
|
|
8702
8727
|
`display:flex;flex-direction:column;gap:6px;`
|
|
8703
8728
|
]);
|
|
8704
8729
|
var HeaderGroup = styled12(EditGroup).withConfig({
|
|
8705
|
-
componentId: "sc-
|
|
8730
|
+
componentId: "sc-a4d52175-2"
|
|
8706
8731
|
})([
|
|
8707
8732
|
`gap:8px;`
|
|
8708
8733
|
]);
|
|
8709
8734
|
var HeaderTitle = styled12.div.withConfig({
|
|
8710
|
-
componentId: "sc-
|
|
8735
|
+
componentId: "sc-a4d52175-3"
|
|
8711
8736
|
})([
|
|
8712
8737
|
`display:flex;align-items:flex-start;min-height:var(--fees-header-title-height,36px);`
|
|
8713
8738
|
]);
|
|
8714
8739
|
var HeaderActions = styled12.div.withConfig({
|
|
8715
|
-
componentId: "sc-
|
|
8740
|
+
componentId: "sc-a4d52175-4"
|
|
8716
8741
|
})([
|
|
8717
8742
|
`display:flex;align-items:center;min-height:24px;`
|
|
8718
8743
|
]);
|
|
8719
8744
|
var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
8720
|
-
componentId: "sc-
|
|
8745
|
+
componentId: "sc-a4d52175-5"
|
|
8721
8746
|
})([
|
|
8722
8747
|
`&[data-editable] th{vertical-align:top;}--fees-row-background:`,
|
|
8723
8748
|
`;--fees-stripe-background:`,
|
|
@@ -8750,14 +8775,14 @@ var AlignedFeesTable = styled12(FeesAndMarginTable).withConfig({
|
|
|
8750
8775
|
}
|
|
8751
8776
|
`).join(""), ({ $typography }) => $typography?.thead?.fontSize ?? 8, ({ $typography }) => $typography?.thead?.fontSize ? 1.4 : "10px", ({ $typography }) => $typography?.tbody?.fontSize ?? 10, ({ $typography }) => $typography?.tbody?.fontSize ? 1.4 : "14px", ({ theme }) => theme.colors.accent.primary);
|
|
8752
8777
|
var FeesCellContent = styled12.span.withConfig({
|
|
8753
|
-
componentId: "sc-
|
|
8778
|
+
componentId: "sc-a4d52175-6"
|
|
8754
8779
|
})([
|
|
8755
8780
|
`display:block;text-align:`,
|
|
8756
8781
|
`;@media (max-width:767px){text-align:`,
|
|
8757
8782
|
`;}`
|
|
8758
8783
|
], ({ $align, $alignRight }) => $align ?? ($alignRight ? "right" : "left"), ({ $align }) => $align ?? "left");
|
|
8759
8784
|
var EditorButton = styled12.button.withConfig({
|
|
8760
|
-
componentId: "sc-
|
|
8785
|
+
componentId: "sc-a4d52175-7"
|
|
8761
8786
|
})([
|
|
8762
8787
|
`padding:7px 12px;border:1px solid `,
|
|
8763
8788
|
`;border-radius:6px;background:`,
|
|
@@ -8766,17 +8791,17 @@ var EditorButton = styled12.button.withConfig({
|
|
|
8766
8791
|
`;}&:disabled{cursor:default;opacity:.4;}`
|
|
8767
8792
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8768
8793
|
var OrderActions = styled12.div.withConfig({
|
|
8769
|
-
componentId: "sc-
|
|
8794
|
+
componentId: "sc-a4d52175-8"
|
|
8770
8795
|
})([
|
|
8771
8796
|
`display:flex;gap:6px;align-items:center;flex-wrap:wrap;`
|
|
8772
8797
|
]);
|
|
8773
8798
|
var PositionLabel = styled12.label.withConfig({
|
|
8774
|
-
componentId: "sc-
|
|
8799
|
+
componentId: "sc-a4d52175-9"
|
|
8775
8800
|
})([
|
|
8776
8801
|
`display:inline-flex;align-items:center;gap:6px;font-size:12px;`
|
|
8777
8802
|
]);
|
|
8778
8803
|
var PositionInput = styled12.input.withConfig({
|
|
8779
|
-
componentId: "sc-
|
|
8804
|
+
componentId: "sc-a4d52175-10"
|
|
8780
8805
|
})([
|
|
8781
8806
|
`width:56px;padding:5px;border:1px solid `,
|
|
8782
8807
|
`;border-radius:4px;background:`,
|
|
@@ -8785,17 +8810,17 @@ var PositionInput = styled12.input.withConfig({
|
|
|
8785
8810
|
`;}`
|
|
8786
8811
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.background.input, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8787
8812
|
var ColumnRow = styled12.div.withConfig({
|
|
8788
|
-
componentId: "sc-
|
|
8813
|
+
componentId: "sc-a4d52175-11"
|
|
8789
8814
|
})([
|
|
8790
8815
|
`display:flex;gap:12px;align-items:center;margin:16px 0;> textarea{flex:1;min-width:120px;}@media (max-width:600px){align-items:stretch;flex-direction:column;}`
|
|
8791
8816
|
]);
|
|
8792
8817
|
var PaginationControls = styled12(FeesAndMarginPagination).withConfig({
|
|
8793
|
-
componentId: "sc-
|
|
8818
|
+
componentId: "sc-a4d52175-12"
|
|
8794
8819
|
})([
|
|
8795
8820
|
`align-items:center;flex-wrap:wrap;gap:16px 24px;`
|
|
8796
8821
|
]);
|
|
8797
8822
|
var PageSizeLabel = styled12.div.withConfig({
|
|
8798
|
-
componentId: "sc-
|
|
8823
|
+
componentId: "sc-a4d52175-13"
|
|
8799
8824
|
})([
|
|
8800
8825
|
`display:inline-flex;align-items:center;gap:8px;color:`,
|
|
8801
8826
|
`;font:inherit;font-size:13px;`
|
|
@@ -8823,20 +8848,20 @@ function Position({ value: value4, max, label, onMove }) {
|
|
|
8823
8848
|
});
|
|
8824
8849
|
}
|
|
8825
8850
|
var DeleteButton = styled12(EditorButton).withConfig({
|
|
8826
|
-
componentId: "sc-
|
|
8851
|
+
componentId: "sc-a4d52175-14"
|
|
8827
8852
|
})([
|
|
8828
8853
|
`align-self:flex-start;padding:4px 8px;border:0;border-radius:4px;background:#d32f2f;color:#fff;font-size:11px;font-weight:600;line-height:16px;white-space:nowrap;text-decoration:none;&:hover{background:#b71c1c;}&:focus-visible{outline:2px solid #d32f2f;outline-offset:2px;}`
|
|
8829
8854
|
]);
|
|
8830
8855
|
var CellEditorInput = styled12.textarea.withConfig({
|
|
8831
|
-
componentId: "sc-
|
|
8856
|
+
componentId: "sc-a4d52175-15"
|
|
8832
8857
|
})([
|
|
8833
8858
|
`display:block;box-sizing:border-box;width:100%;min-width:0;padding:3px;border:1px solid transparent;border-radius:3px;color:inherit;background:transparent;font:inherit;line-height:inherit;text-align:inherit;resize:none;overflow:hidden;&:hover{border-color:`,
|
|
8834
8859
|
`;}&:focus{outline:1px solid `,
|
|
8835
|
-
`;}&[data-fees-
|
|
8860
|
+
`;}&[data-fees-column-selected="true"]{border-color:`,
|
|
8836
8861
|
`;}`
|
|
8837
8862
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.primary);
|
|
8838
8863
|
function CellEditor({ onInput, ...props }) {
|
|
8839
|
-
const ref =
|
|
8864
|
+
const ref = useRef5(null);
|
|
8840
8865
|
const fit = () => {
|
|
8841
8866
|
const element = ref.current;
|
|
8842
8867
|
if (!element) return;
|
|
@@ -8878,7 +8903,7 @@ function CellEditor({ onInput, ...props }) {
|
|
|
8878
8903
|
});
|
|
8879
8904
|
}
|
|
8880
8905
|
function RowTagSelect({ selected, options, onChange }) {
|
|
8881
|
-
const selectRoot =
|
|
8906
|
+
const selectRoot = useRef5(null);
|
|
8882
8907
|
return /* @__PURE__ */ _jsx3(EditGroup, {
|
|
8883
8908
|
children: /* @__PURE__ */ _jsx3("div", {
|
|
8884
8909
|
ref: selectRoot,
|
|
@@ -8903,7 +8928,7 @@ function RowTagSelect({ selected, options, onChange }) {
|
|
|
8903
8928
|
fontSize: 13
|
|
8904
8929
|
},
|
|
8905
8930
|
children: [
|
|
8906
|
-
options.map((item) => /* @__PURE__ */ _jsxs3(
|
|
8931
|
+
options.map((item) => /* @__PURE__ */ _jsxs3(MenuItem4, {
|
|
8907
8932
|
value: item,
|
|
8908
8933
|
children: [
|
|
8909
8934
|
/* @__PURE__ */ _jsx3(Checkbox2, {
|
|
@@ -8915,7 +8940,7 @@ function RowTagSelect({ selected, options, onChange }) {
|
|
|
8915
8940
|
item
|
|
8916
8941
|
]
|
|
8917
8942
|
}, item)),
|
|
8918
|
-
!options.length && /* @__PURE__ */ _jsx3(
|
|
8943
|
+
!options.length && /* @__PURE__ */ _jsx3(MenuItem4, {
|
|
8919
8944
|
disabled: true,
|
|
8920
8945
|
children: "Ch\u01B0a c\xF3 tag \u2014 d\xF9ng n\xFAt Th\xEAm tag ph\xEDa tr\xEAn"
|
|
8921
8946
|
})
|
|
@@ -8971,10 +8996,10 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
|
|
|
8971
8996
|
const [pageSize, setPageSize] = useState6(FEES_PAGE_SIZE);
|
|
8972
8997
|
const [columnsOpen, setColumnsOpen] = useState6(false);
|
|
8973
8998
|
const [typographyOpen, setTypographyOpen] = useState6(false);
|
|
8974
|
-
const [
|
|
8999
|
+
const [selectedColumnKey, setSelectedColumnKey] = useState6("");
|
|
8975
9000
|
const english = language === "en";
|
|
8976
9001
|
const canEdit = editable && Boolean(onChange);
|
|
8977
|
-
const tableRoot =
|
|
9002
|
+
const tableRoot = useRef5(null);
|
|
8978
9003
|
useLayoutEffect2(() => {
|
|
8979
9004
|
const root = tableRoot.current;
|
|
8980
9005
|
if (!root || !canEdit) return;
|
|
@@ -9052,16 +9077,12 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
|
|
|
9052
9077
|
const filtered = filterFeesRows(value4, search, activeTag);
|
|
9053
9078
|
const displayedRows = canEdit ? filtered : sortFeesRowsByName(filtered, language);
|
|
9054
9079
|
const pagination = paginateFeesRows(displayedRows, page, pageSize);
|
|
9055
|
-
const selectedColumn =
|
|
9056
|
-
const selectedRow = selectedCell?.part === "tbody" ? pagination.rows.find((row) => row.id === selectedCell.rowId) : void 0;
|
|
9057
|
-
const selectedTarget = canEdit && selectedColumn && (selectedCell?.part === "thead" || selectedRow) ? selectedCell : null;
|
|
9058
|
-
const selectedAlign = selectedTarget?.part === "thead" ? selectedColumn?.textAlign : selectedRow?.cellAlignments?.[selectedTarget?.columnKey ?? ""];
|
|
9059
|
-
const selectedLabel = selectedTarget ? selectedTarget.part === "thead" ? `${english ? "Header" : "Ti\xEAu \u0111\u1EC1"}: ${selectedColumn?.title}` : `${selectedColumn?.title} \u2014 ${selectedRow?.cells.name || (english ? "New row" : "H\xE0ng m\u1EDBi")}` : void 0;
|
|
9080
|
+
const selectedColumn = value4.columns.find((column) => column.key === selectedColumnKey);
|
|
9060
9081
|
useLayoutEffect2(() => {
|
|
9061
|
-
if (
|
|
9082
|
+
if (selectedColumnKey && !selectedColumn) setSelectedColumnKey("");
|
|
9062
9083
|
}, [
|
|
9063
|
-
|
|
9064
|
-
|
|
9084
|
+
selectedColumnKey,
|
|
9085
|
+
selectedColumn
|
|
9065
9086
|
]);
|
|
9066
9087
|
const moveColumn = (from, to) => onChange?.({
|
|
9067
9088
|
...value4,
|
|
@@ -9118,11 +9139,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
|
|
|
9118
9139
|
style: {
|
|
9119
9140
|
textAlign: column.textAlign ?? value4.typography?.thead?.textAlign ?? "left"
|
|
9120
9141
|
},
|
|
9121
|
-
"data-fees-
|
|
9122
|
-
onFocus: () => setSelectedCell({
|
|
9123
|
-
part: "thead",
|
|
9124
|
-
columnKey: column.key
|
|
9125
|
-
}),
|
|
9142
|
+
"data-fees-column-selected": selectedColumnKey === column.key,
|
|
9126
9143
|
onChange: (event) => onChange?.({
|
|
9127
9144
|
...value4,
|
|
9128
9145
|
columns: value4.columns.map((item) => item.key === column.key ? {
|
|
@@ -9156,14 +9173,9 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
|
|
|
9156
9173
|
value: row.cells[column.key] ?? "",
|
|
9157
9174
|
"aria-label": `${column.title} \u2014 ${row.cells.name || "H\xE0ng m\u1EDBi"}`,
|
|
9158
9175
|
style: {
|
|
9159
|
-
textAlign: row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign ?? "left"
|
|
9176
|
+
textAlign: column.textAlign ?? row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign ?? "left"
|
|
9160
9177
|
},
|
|
9161
|
-
"data-fees-
|
|
9162
|
-
onFocus: () => setSelectedCell({
|
|
9163
|
-
part: "tbody",
|
|
9164
|
-
rowId: row.id,
|
|
9165
|
-
columnKey: column.key
|
|
9166
|
-
}),
|
|
9178
|
+
"data-fees-column-selected": selectedColumnKey === column.key,
|
|
9167
9179
|
onChange: (event) => changeRow(row.id, {
|
|
9168
9180
|
cells: {
|
|
9169
9181
|
...row.cells,
|
|
@@ -9171,7 +9183,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
|
|
|
9171
9183
|
}
|
|
9172
9184
|
})
|
|
9173
9185
|
}) : /* @__PURE__ */ _jsx3(FeesCellContent, {
|
|
9174
|
-
$align: row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign,
|
|
9186
|
+
$align: column.textAlign ?? row.cellAlignments?.[column.key] ?? value4.typography?.tbody?.textAlign,
|
|
9175
9187
|
$alignRight: rightAlignedColumns.has(column.key),
|
|
9176
9188
|
children: row.cells[column.key] ?? ""
|
|
9177
9189
|
})
|
|
@@ -9374,12 +9386,13 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
|
|
|
9374
9386
|
})
|
|
9375
9387
|
})
|
|
9376
9388
|
}),
|
|
9377
|
-
canEdit && /* @__PURE__ */ _jsx3(
|
|
9378
|
-
|
|
9379
|
-
|
|
9389
|
+
canEdit && /* @__PURE__ */ _jsx3(FeesColumnAlignmentControls, {
|
|
9390
|
+
columns: value4.columns,
|
|
9391
|
+
columnKey: selectedColumnKey,
|
|
9380
9392
|
english,
|
|
9393
|
+
onSelectColumn: setSelectedColumnKey,
|
|
9381
9394
|
onChange: (textAlign) => {
|
|
9382
|
-
if (
|
|
9395
|
+
if (selectedColumn) onChange?.(setFeesColumnAlignment(value4, selectedColumn.key, textAlign));
|
|
9383
9396
|
}
|
|
9384
9397
|
}),
|
|
9385
9398
|
/* @__PURE__ */ _jsx3(AlignedFeesTable, {
|
|
@@ -9432,11 +9445,11 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
|
|
|
9432
9445
|
25,
|
|
9433
9446
|
50,
|
|
9434
9447
|
100
|
|
9435
|
-
].map((size2) => /* @__PURE__ */ _jsx3(
|
|
9448
|
+
].map((size2) => /* @__PURE__ */ _jsx3(MenuItem4, {
|
|
9436
9449
|
value: size2,
|
|
9437
9450
|
children: size2
|
|
9438
9451
|
}, size2)),
|
|
9439
|
-
/* @__PURE__ */ _jsx3(
|
|
9452
|
+
/* @__PURE__ */ _jsx3(MenuItem4, {
|
|
9440
9453
|
value: -1,
|
|
9441
9454
|
children: english ? "All" : "T\u1EA5t c\u1EA3"
|
|
9442
9455
|
})
|
|
@@ -9566,7 +9579,7 @@ function FeesTable({ value: value4, editable = false, onChange, labels: labels2,
|
|
|
9566
9579
|
children: "T\u1EA1o tag m\u1EDBi"
|
|
9567
9580
|
}),
|
|
9568
9581
|
/* @__PURE__ */ _jsx3(DialogContent, {
|
|
9569
|
-
children: /* @__PURE__ */ _jsx3(
|
|
9582
|
+
children: /* @__PURE__ */ _jsx3(TextField4, {
|
|
9570
9583
|
autoFocus: true,
|
|
9571
9584
|
fullWidth: true,
|
|
9572
9585
|
margin: "dense",
|
|
@@ -10421,7 +10434,7 @@ function InformationHeroSection({
|
|
|
10421
10434
|
import styled19 from "styled-components";
|
|
10422
10435
|
|
|
10423
10436
|
// src/commodity-original/components/DateRangePicker/index.tsx
|
|
10424
|
-
import { useEffect as useEffect8, useMemo as useMemo5, useRef as
|
|
10437
|
+
import { useEffect as useEffect8, useMemo as useMemo5, useRef as useRef6, useState as useState8 } from "react";
|
|
10425
10438
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
10426
10439
|
import { Dialog as Dialog4 } from "radix-ui";
|
|
10427
10440
|
|
|
@@ -10660,7 +10673,7 @@ function DateRangePicker({
|
|
|
10660
10673
|
}) {
|
|
10661
10674
|
const { i18n, t } = useTranslation8();
|
|
10662
10675
|
const { isMobile } = useResponsive();
|
|
10663
|
-
const rootRef =
|
|
10676
|
+
const rootRef = useRef6(null);
|
|
10664
10677
|
const [open, setOpen] = useState8(false);
|
|
10665
10678
|
const [activeField, setActiveField] = useState8("from");
|
|
10666
10679
|
const [draft, setDraft] = useState8(value4);
|
|
@@ -12607,7 +12620,7 @@ import { useTranslation as useTranslation14 } from "react-i18next";
|
|
|
12607
12620
|
|
|
12608
12621
|
// src/commodity-original/lib/app-theme-provider.tsx
|
|
12609
12622
|
import { jsx as _jsx6, jsxs as _jsxs6 } from "react/jsx-runtime";
|
|
12610
|
-
import { createContext as createContext8, useCallback, useContext as useContext8, useLayoutEffect as useLayoutEffect3, useMemo as useMemo7, useRef as
|
|
12623
|
+
import { createContext as createContext8, useCallback, useContext as useContext8, useLayoutEffect as useLayoutEffect3, useMemo as useMemo7, useRef as useRef7, useSyncExternalStore as useSyncExternalStore2 } from "react";
|
|
12611
12624
|
import { ThemeProvider as ThemeProvider2 } from "styled-components";
|
|
12612
12625
|
|
|
12613
12626
|
// src/commodity-original/app/global-styles.tsx
|
|
@@ -12746,7 +12759,7 @@ function subscribeToTheme(onStoreChange) {
|
|
|
12746
12759
|
};
|
|
12747
12760
|
}
|
|
12748
12761
|
function AppThemeProvider({ children }) {
|
|
12749
|
-
const rootRef =
|
|
12762
|
+
const rootRef = useRef7(null);
|
|
12750
12763
|
const getTargetDocument = useCallback(() => rootRef.current?.ownerDocument ?? document, []);
|
|
12751
12764
|
const getSnapshot = useCallback(() => {
|
|
12752
12765
|
const targetDocument = getTargetDocument();
|
|
@@ -12991,7 +13004,7 @@ function Footer() {
|
|
|
12991
13004
|
}
|
|
12992
13005
|
|
|
12993
13006
|
// src/commodity-original/components/Header/index.tsx
|
|
12994
|
-
import { useCallback as useCallback2, useEffect as useEffect9, useRef as
|
|
13007
|
+
import { useCallback as useCallback2, useEffect as useEffect9, useRef as useRef8, useState as useState13 } from "react";
|
|
12995
13008
|
import Image9 from "next/image.js";
|
|
12996
13009
|
import Link9 from "next/link.js";
|
|
12997
13010
|
import { usePathname, useSearchParams } from "next/navigation.js";
|
|
@@ -13081,7 +13094,7 @@ function LanguageSwitcher({
|
|
|
13081
13094
|
portalContainer
|
|
13082
13095
|
}) {
|
|
13083
13096
|
const { t } = useTranslation16();
|
|
13084
|
-
const triggerRef =
|
|
13097
|
+
const triggerRef = useRef8(null);
|
|
13085
13098
|
const currentLanguage = languages.find((item) => item.value === language);
|
|
13086
13099
|
return /* @__PURE__ */ jsxs29(DropdownMenu2.Root, { children: [
|
|
13087
13100
|
/* @__PURE__ */ jsx37(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
@@ -13158,8 +13171,8 @@ function Header() {
|
|
|
13158
13171
|
const [isDesktopProductsOpen, setIsDesktopProductsOpen] = useState13(null);
|
|
13159
13172
|
const { t, i18n } = useTranslation16();
|
|
13160
13173
|
const language = i18n.resolvedLanguage?.startsWith("en") ? "en" : "vi";
|
|
13161
|
-
const mobileMenuTriggerRef =
|
|
13162
|
-
const pendingMobileSectionRef =
|
|
13174
|
+
const mobileMenuTriggerRef = useRef8(null);
|
|
13175
|
+
const pendingMobileSectionRef = useRef8(null);
|
|
13163
13176
|
const { themeName } = useAppTheme();
|
|
13164
13177
|
const isDarkTheme = themeName === "dark";
|
|
13165
13178
|
const lightLogo = useCmsImage("headerLogoImage", "/Logo/logo.png");
|
|
@@ -14673,7 +14686,7 @@ import { useTranslation as useTranslation23 } from "react-i18next";
|
|
|
14673
14686
|
|
|
14674
14687
|
// src/commodity-original/components/Background/index.tsx
|
|
14675
14688
|
import { jsx as _jsx8, jsxs as _jsxs7 } from "react/jsx-runtime";
|
|
14676
|
-
import { memo, useEffect as useEffect10, useId as useId3, useRef as
|
|
14689
|
+
import { memo, useEffect as useEffect10, useId as useId3, useRef as useRef9 } from "react";
|
|
14677
14690
|
import { styled as styled29 } from "styled-components";
|
|
14678
14691
|
var TWO_PI = Math.PI * 2;
|
|
14679
14692
|
var DotContainer = styled29.div.withConfig({
|
|
@@ -14682,27 +14695,27 @@ var DotContainer = styled29.div.withConfig({
|
|
|
14682
14695
|
`position:absolute;top:-130px;left:-200px;width:50%;height:100%;border-radius:20%;overflow:hidden;pointer-events:none;`
|
|
14683
14696
|
]);
|
|
14684
14697
|
var DotField = /* @__PURE__ */ memo(({ dotRadius = 1.5, dotSpacing = 14, cursorRadius = 500, cursorForce = 0.1, bulgeOnly = true, bulgeStrength = 67, glowRadius = 160, sparkle = false, waveAmplitude = 0, gradientFrom = "rgba(168, 85, 247, 0.35)", gradientTo = "rgba(180, 151, 207, 0.25)", glowColor = "#120F17", ...rest }) => {
|
|
14685
|
-
const canvasRef =
|
|
14686
|
-
const svgRef =
|
|
14687
|
-
const glowRef =
|
|
14688
|
-
const dotsRef =
|
|
14689
|
-
const mouseRef =
|
|
14698
|
+
const canvasRef = useRef9(null);
|
|
14699
|
+
const svgRef = useRef9(null);
|
|
14700
|
+
const glowRef = useRef9(null);
|
|
14701
|
+
const dotsRef = useRef9([]);
|
|
14702
|
+
const mouseRef = useRef9({
|
|
14690
14703
|
x: -9999,
|
|
14691
14704
|
y: -9999,
|
|
14692
14705
|
prevX: -9999,
|
|
14693
14706
|
prevY: -9999,
|
|
14694
14707
|
speed: 0
|
|
14695
14708
|
});
|
|
14696
|
-
const rafRef =
|
|
14697
|
-
const sizeRef =
|
|
14709
|
+
const rafRef = useRef9(null);
|
|
14710
|
+
const sizeRef = useRef9({
|
|
14698
14711
|
w: 0,
|
|
14699
14712
|
h: 0,
|
|
14700
14713
|
offsetX: 0,
|
|
14701
14714
|
offsetY: 0
|
|
14702
14715
|
});
|
|
14703
|
-
const glowOpacity =
|
|
14704
|
-
const engagement =
|
|
14705
|
-
const propsRef =
|
|
14716
|
+
const glowOpacity = useRef9(0);
|
|
14717
|
+
const engagement = useRef9(0);
|
|
14718
|
+
const propsRef = useRef9({});
|
|
14706
14719
|
propsRef.current = {
|
|
14707
14720
|
dotRadius,
|
|
14708
14721
|
dotSpacing,
|
|
@@ -14715,7 +14728,7 @@ var DotField = /* @__PURE__ */ memo(({ dotRadius = 1.5, dotSpacing = 14, cursorR
|
|
|
14715
14728
|
gradientFrom,
|
|
14716
14729
|
gradientTo
|
|
14717
14730
|
};
|
|
14718
|
-
const rebuildRef =
|
|
14731
|
+
const rebuildRef = useRef9(null);
|
|
14719
14732
|
const glowId = `dot-field-glow-${useId3().replace(/[^a-zA-Z0-9_-]/g, "")}`;
|
|
14720
14733
|
useEffect10(() => {
|
|
14721
14734
|
const canvas = canvasRef.current;
|
|
@@ -15353,7 +15366,7 @@ function FloatingActions() {
|
|
|
15353
15366
|
|
|
15354
15367
|
// src/commodity-original/components/LandingPage/PositionSection.tsx
|
|
15355
15368
|
import Image15 from "next/image.js";
|
|
15356
|
-
import { useRef as
|
|
15369
|
+
import { useRef as useRef10, useState as useState16 } from "react";
|
|
15357
15370
|
import { useTranslation as useTranslation25 } from "react-i18next";
|
|
15358
15371
|
import { jsx as jsx47, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
15359
15372
|
function PositionMedia({
|
|
@@ -15434,8 +15447,8 @@ function PositionSection() {
|
|
|
15434
15447
|
const [expandedMobileCards, setExpandedMobileCards] = useState16([]);
|
|
15435
15448
|
const [desktopSlide, setDesktopSlide] = useState16(0);
|
|
15436
15449
|
const [mobileSlide, setMobileSlide] = useState16(0);
|
|
15437
|
-
const mobileCarouselRef =
|
|
15438
|
-
const mobileDragRef =
|
|
15450
|
+
const mobileCarouselRef = useRef10(null);
|
|
15451
|
+
const mobileDragRef = useRef10(null);
|
|
15439
15452
|
const slideCount = useCmsListCount(
|
|
15440
15453
|
"landing.position.slides.__count",
|
|
15441
15454
|
positionSlides.length
|
|
@@ -16117,8 +16130,8 @@ function ExactEditableContent({
|
|
|
16117
16130
|
onSelectText,
|
|
16118
16131
|
selectedTextField
|
|
16119
16132
|
}) {
|
|
16120
|
-
const rootRef =
|
|
16121
|
-
const callbacks =
|
|
16133
|
+
const rootRef = useRef11(null);
|
|
16134
|
+
const callbacks = useRef11({ onChange, onSelectText });
|
|
16122
16135
|
callbacks.current = { onChange, onSelectText };
|
|
16123
16136
|
useLayoutEffect4(() => {
|
|
16124
16137
|
const root = rootRef.current;
|
|
@@ -17203,15 +17216,15 @@ var wikexCommodityRoutes = wikexCommodityPageTemplates.map(({ route, slug, key }
|
|
|
17203
17216
|
}));
|
|
17204
17217
|
|
|
17205
17218
|
// src/shared/text-toolbar.tsx
|
|
17206
|
-
import { useEffect as useEffect12, useRef as
|
|
17207
|
-
import { Box as Box8, IconButton as IconButton3, InputAdornment as InputAdornment2, MenuItem as
|
|
17219
|
+
import { useEffect as useEffect12, useRef as useRef12, useState as useState17 } from "react";
|
|
17220
|
+
import { Box as Box8, IconButton as IconButton3, InputAdornment as InputAdornment2, MenuItem as MenuItem5, Select as Select3, SvgIcon, TextField as TextField5, ToggleButton as ToggleButton2, Tooltip } from "@mui/material";
|
|
17208
17221
|
import { jsx as jsx50, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
17209
17222
|
function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureControls, computedFontSize, computedLineHeight, computedFontFamily, computedTextAlign, onLayoutChange, onColorChange, onReset }) {
|
|
17210
|
-
const toolbarRef =
|
|
17223
|
+
const toolbarRef = useRef12(null);
|
|
17211
17224
|
const [hex, setHex] = useState17(color);
|
|
17212
17225
|
const displayedSize = String(computedFontSize ?? layout.fontSize ?? 16);
|
|
17213
17226
|
const displayedLineHeight = String(layout.lineHeight ?? computedLineHeight ?? 1.5);
|
|
17214
|
-
const dirtyLineHeight =
|
|
17227
|
+
const dirtyLineHeight = useRef12(false);
|
|
17215
17228
|
const [lineHeight, setLineHeight] = useState17(displayedLineHeight);
|
|
17216
17229
|
useEffect12(() => {
|
|
17217
17230
|
dirtyLineHeight.current = false;
|
|
@@ -17228,7 +17241,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17228
17241
|
if (Number.isFinite(value4) && value4 >= 0.5 && value4 <= 5) onLayoutChange({ lineHeight: value4 });
|
|
17229
17242
|
else setLineHeight(displayedLineHeight);
|
|
17230
17243
|
};
|
|
17231
|
-
const dirtySize =
|
|
17244
|
+
const dirtySize = useRef12(false);
|
|
17232
17245
|
const [size, setSize] = useState17(displayedSize);
|
|
17233
17246
|
useEffect12(() => setHex(color), [color]);
|
|
17234
17247
|
useEffect12(() => {
|
|
@@ -17279,8 +17292,8 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17279
17292
|
sx: { width: "auto", maxWidth: 160, height: 30, fontSize: 12, "& .MuiSelect-select": { py: 0.5, pl: 1, pr: "24px !important", overflow: "hidden", textOverflow: "ellipsis" }, "& .MuiSelect-icon": { right: 2 } },
|
|
17280
17293
|
onChange: (event) => onLayoutChange({ fontFamily: event.target.value || void 0 }),
|
|
17281
17294
|
children: [
|
|
17282
|
-
!selectedFont && /* @__PURE__ */ jsx50(
|
|
17283
|
-
Object.entries(CMS_TEXT_FONTS).map(([value4, label]) => /* @__PURE__ */ jsx50(
|
|
17295
|
+
!selectedFont && /* @__PURE__ */ jsx50(MenuItem5, { value: "", sx: { fontSize: 12 }, children: fontLabel }),
|
|
17296
|
+
Object.entries(CMS_TEXT_FONTS).map(([value4, label]) => /* @__PURE__ */ jsx50(MenuItem5, { value: value4, sx: { fontFamily: value4, fontSize: 13 }, children: label }, value4))
|
|
17284
17297
|
]
|
|
17285
17298
|
}
|
|
17286
17299
|
),
|
|
@@ -17288,7 +17301,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17288
17301
|
] }),
|
|
17289
17302
|
/* @__PURE__ */ jsxs42(Box8, { sx: { ...groupSx, flexWrap: "wrap", justifyContent: "space-between" }, children: [
|
|
17290
17303
|
/* @__PURE__ */ jsx50(Tooltip, { title: "C\u1EE1 ch\u1EEF (px)", ...tooltipProps, children: /* @__PURE__ */ jsx50(
|
|
17291
|
-
|
|
17304
|
+
TextField5,
|
|
17292
17305
|
{
|
|
17293
17306
|
size: "small",
|
|
17294
17307
|
type: "number",
|
|
@@ -17309,7 +17322,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17309
17322
|
}
|
|
17310
17323
|
) }),
|
|
17311
17324
|
/* @__PURE__ */ jsx50(Tooltip, { title: "Chi\u1EC1u cao d\xF2ng (l\u1EA7n c\u1EE1 ch\u1EEF)", ...tooltipProps, children: /* @__PURE__ */ jsx50(
|
|
17312
|
-
|
|
17325
|
+
TextField5,
|
|
17313
17326
|
{
|
|
17314
17327
|
size: "small",
|
|
17315
17328
|
type: "number",
|
|
@@ -17343,7 +17356,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17343
17356
|
}
|
|
17344
17357
|
) }, align)) }),
|
|
17345
17358
|
colorPicker || /* @__PURE__ */ jsx50(
|
|
17346
|
-
|
|
17359
|
+
TextField5,
|
|
17347
17360
|
{
|
|
17348
17361
|
size: "small",
|
|
17349
17362
|
value: hex,
|
|
@@ -17368,7 +17381,7 @@ function CmsTextToolbar({ layout, color, colorPicker, inlineControls, structureC
|
|
|
17368
17381
|
|
|
17369
17382
|
// src/shared/button-link-control.tsx
|
|
17370
17383
|
import { useState as useState18 } from "react";
|
|
17371
|
-
import { Box as Box9, Button as Button11, IconButton as IconButton4, MenuItem as
|
|
17384
|
+
import { Box as Box9, Button as Button11, IconButton as IconButton4, MenuItem as MenuItem6, Popover, Stack as Stack7, SvgIcon as SvgIcon2, TextField as TextField6, Typography as Typography6 } from "@mui/material";
|
|
17372
17385
|
import { Fragment as Fragment13, jsx as jsx51, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
17373
17386
|
function CmsButtonLinkControl({ field, content, onChange }) {
|
|
17374
17387
|
const [anchor, setAnchor] = useState18(null);
|
|
@@ -17421,7 +17434,7 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17421
17434
|
}, children: /* @__PURE__ */ jsxs43(Stack7, { spacing: 1.5, children: [
|
|
17422
17435
|
/* @__PURE__ */ jsx51(Typography6, { variant: "subtitle2", children: "Li\xEAn k\u1EBFt n\xFAt" }),
|
|
17423
17436
|
/* @__PURE__ */ jsxs43(
|
|
17424
|
-
|
|
17437
|
+
TextField6,
|
|
17425
17438
|
{
|
|
17426
17439
|
select: true,
|
|
17427
17440
|
size: "small",
|
|
@@ -17433,13 +17446,13 @@ function CmsButtonLinkControl({ field, content, onChange }) {
|
|
|
17433
17446
|
},
|
|
17434
17447
|
slotProps: { select: { MenuProps: { disableScrollLock: true, container: anchor?.ownerDocument.body, sx: { zIndex: 1700 } } } },
|
|
17435
17448
|
children: [
|
|
17436
|
-
/* @__PURE__ */ jsx51(
|
|
17437
|
-
/* @__PURE__ */ jsx51(
|
|
17449
|
+
/* @__PURE__ */ jsx51(MenuItem6, { value: "internal", children: "Internal \u2014 trong website" }),
|
|
17450
|
+
/* @__PURE__ */ jsx51(MenuItem6, { value: "external", children: "External \u2014 website kh\xE1c" })
|
|
17438
17451
|
]
|
|
17439
17452
|
}
|
|
17440
17453
|
),
|
|
17441
17454
|
/* @__PURE__ */ jsx51(
|
|
17442
|
-
|
|
17455
|
+
TextField6,
|
|
17443
17456
|
{
|
|
17444
17457
|
autoFocus: true,
|
|
17445
17458
|
size: "small",
|