@enyxs/wikex-components 0.11.3 → 0.11.9
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 +29 -0
- package/dist/index.js +124 -101
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +267 -96
- package/dist/index.mjs.map +1 -1
- package/dist/page-templates.mjs +152 -4
- package/dist/page-templates.mjs.map +1 -1
- package/dist/products.d.mts +65 -0
- package/dist/products.d.ts +65 -0
- package/dist/products.js +1326 -0
- package/dist/products.js.map +1 -0
- package/dist/products.mjs +1287 -0
- package/dist/products.mjs.map +1 -0
- package/dist/ui.d.mts +42 -0
- package/dist/ui.d.ts +42 -0
- package/dist/ui.js +368 -0
- package/dist/ui.js.map +1 -0
- package/dist/ui.mjs +330 -0
- package/dist/ui.mjs.map +1 -0
- package/package.json +14 -3
- package/dist/chunk-DLYDTRRJ.mjs +0 -158
- package/dist/chunk-DLYDTRRJ.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
wikexCommodityPageTemplates,
|
|
3
|
-
wikexCommodityRoutes
|
|
4
|
-
} from "./chunk-DLYDTRRJ.mjs";
|
|
5
|
-
|
|
6
1
|
// src/index.ts
|
|
7
2
|
import { createElement } from "react";
|
|
8
3
|
|
|
@@ -3566,48 +3561,48 @@ var dropOut = keyframes([
|
|
|
3566
3561
|
`from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-12px);}`
|
|
3567
3562
|
]);
|
|
3568
3563
|
var HeaderShell = styled.header.withConfig({
|
|
3569
|
-
componentId: "sc-
|
|
3564
|
+
componentId: "sc-37b4df5e-0"
|
|
3570
3565
|
})([
|
|
3571
3566
|
`position:sticky;top:0;z-index:100;display:flex;height:64px;padding:12px 20px;align-items:center;justify-content:center;background:`,
|
|
3572
3567
|
`;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%);}`
|
|
3573
3568
|
], ({ theme }) => theme.colors.background.canvas);
|
|
3574
3569
|
var HeaderInner = styled.div.withConfig({
|
|
3575
|
-
componentId: "sc-
|
|
3570
|
+
componentId: "sc-37b4df5e-1"
|
|
3576
3571
|
})([
|
|
3577
3572
|
`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;}`
|
|
3578
3573
|
]);
|
|
3579
3574
|
var BrandGroup = styled.div.withConfig({
|
|
3580
|
-
componentId: "sc-
|
|
3575
|
+
componentId: "sc-37b4df5e-2"
|
|
3581
3576
|
})([
|
|
3582
3577
|
`display:flex;flex:0 0 auto;align-items:center;gap:16px;`
|
|
3583
3578
|
]);
|
|
3584
3579
|
var WikiBrand = styled(Link3).withConfig({
|
|
3585
|
-
componentId: "sc-
|
|
3580
|
+
componentId: "sc-37b4df5e-3"
|
|
3586
3581
|
})([
|
|
3587
3582
|
`display:inline-flex;flex:0 0 auto;align-items:center;`
|
|
3588
3583
|
]);
|
|
3589
3584
|
var WikiLogo = styled(Image).withConfig({
|
|
3590
|
-
componentId: "sc-
|
|
3585
|
+
componentId: "sc-37b4df5e-4"
|
|
3591
3586
|
})([
|
|
3592
3587
|
`display:block;width:80px;height:auto;@media (max-width:620px){width:84px;}`
|
|
3593
3588
|
]);
|
|
3594
3589
|
var PartnerBrand = styled.a.withConfig({
|
|
3595
|
-
componentId: "sc-
|
|
3590
|
+
componentId: "sc-37b4df5e-5"
|
|
3596
3591
|
})([
|
|
3597
3592
|
`display:inline-flex;align-items:center;gap:7.2px;color:#009ee3;@media (max-width:767px){display:inline-flex;}`
|
|
3598
3593
|
]);
|
|
3599
3594
|
var MxvLogo = styled(Image).withConfig({
|
|
3600
|
-
componentId: "sc-
|
|
3595
|
+
componentId: "sc-37b4df5e-6"
|
|
3601
3596
|
})([
|
|
3602
3597
|
`display:block;width:95px;height:auto;:root[data-theme="dark"] &{filter:brightness(0) invert(1);}@media (max-width:620px){width:95px;}`
|
|
3603
3598
|
]);
|
|
3604
3599
|
var DesktopNavigation = styled.nav.withConfig({
|
|
3605
|
-
componentId: "sc-
|
|
3600
|
+
componentId: "sc-37b4df5e-7"
|
|
3606
3601
|
})([
|
|
3607
3602
|
`display:flex;align-items:center;gap:16px;@media (max-width:1279px){display:none;}`
|
|
3608
3603
|
]);
|
|
3609
3604
|
var NavigationLink = styled(Link3).withConfig({
|
|
3610
|
-
componentId: "sc-
|
|
3605
|
+
componentId: "sc-37b4df5e-8"
|
|
3611
3606
|
})([
|
|
3612
3607
|
`position:relative;color:`,
|
|
3613
3608
|
`;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;transition:color 160ms ease;&:hover,&:focus-visible{color:`,
|
|
@@ -3615,16 +3610,16 @@ var NavigationLink = styled(Link3).withConfig({
|
|
|
3615
3610
|
`;}@media (min-width:1280px) and (max-width:1439px){font-size:11px;}`
|
|
3616
3611
|
], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
3617
3612
|
var ProductsMenuTrigger = styled.button.withConfig({
|
|
3618
|
-
componentId: "sc-
|
|
3613
|
+
componentId: "sc-37b4df5e-9"
|
|
3619
3614
|
})([
|
|
3620
3615
|
`display:inline-flex;align-items:center;gap:4px;padding:0;border:0;color:`,
|
|
3621
3616
|
`;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:`,
|
|
3622
|
-
`;}&:focus-visible{outline:none;}
|
|
3617
|
+
`;}&: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;}}`
|
|
3623
3618
|
], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.accent.primary);
|
|
3624
3619
|
var ProductsMenuContent = styled(DropdownMenu.Content).withConfig({
|
|
3625
|
-
componentId: "sc-
|
|
3620
|
+
componentId: "sc-37b4df5e-10"
|
|
3626
3621
|
})([
|
|
3627
|
-
`z-index:300;width:
|
|
3622
|
+
`z-index:300;width:206px;max-width:var(--radix-dropdown-menu-content-available-width);padding:8px;border:1px solid `,
|
|
3628
3623
|
`;border-radius:8px;color:`,
|
|
3629
3624
|
`;background:`,
|
|
3630
3625
|
`;box-shadow:0 4px 8px `,
|
|
@@ -3632,42 +3627,42 @@ var ProductsMenuContent = styled(DropdownMenu.Content).withConfig({
|
|
|
3632
3627
|
`;}`
|
|
3633
3628
|
], ({ 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);
|
|
3634
3629
|
var ProductsMenuItem = styled(DropdownMenu.Item).withConfig({
|
|
3635
|
-
componentId: "sc-
|
|
3630
|
+
componentId: "sc-37b4df5e-11"
|
|
3636
3631
|
})([
|
|
3637
|
-
`display:flex;height:
|
|
3632
|
+
`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:`,
|
|
3638
3633
|
`;background:transparent;outline:none;}`
|
|
3639
3634
|
], ({ theme }) => theme.colors.accent.primary);
|
|
3640
3635
|
var MobileNavigation2 = styled.div.withConfig({
|
|
3641
|
-
componentId: "sc-
|
|
3636
|
+
componentId: "sc-37b4df5e-12"
|
|
3642
3637
|
})([
|
|
3643
3638
|
`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;}`
|
|
3644
3639
|
]);
|
|
3645
3640
|
var MobileThemeToggle = styled.div.withConfig({
|
|
3646
|
-
componentId: "sc-
|
|
3641
|
+
componentId: "sc-37b4df5e-13"
|
|
3647
3642
|
})([
|
|
3648
3643
|
`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;}}}`
|
|
3649
3644
|
]);
|
|
3650
3645
|
var MobileLanguageToggle = styled.div.withConfig({
|
|
3651
|
-
componentId: "sc-
|
|
3646
|
+
componentId: "sc-37b4df5e-14"
|
|
3652
3647
|
})([
|
|
3653
3648
|
`display:none;align-items:center;@media (max-width:767px){display:flex;}`
|
|
3654
3649
|
]);
|
|
3655
3650
|
var MobileMenuTrigger = styled.button.withConfig({
|
|
3656
|
-
componentId: "sc-
|
|
3651
|
+
componentId: "sc-37b4df5e-15"
|
|
3657
3652
|
})([
|
|
3658
3653
|
`display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:0;border-radius:9999px;color:`,
|
|
3659
3654
|
`;background:transparent;cursor:pointer;transition:background-color 160ms ease;&:hover,&[data-state="open"]{background:`,
|
|
3660
3655
|
`;}@media (max-width:620px){width:24px;height:24px;border-radius:4px;svg{flex-shrink:0;}}`
|
|
3661
3656
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
|
|
3662
3657
|
var MobileDrawerOverlay = styled(Dialog.Overlay).withConfig({
|
|
3663
|
-
componentId: "sc-
|
|
3658
|
+
componentId: "sc-37b4df5e-16"
|
|
3664
3659
|
})([
|
|
3665
3660
|
`position:fixed;z-index:200;inset:0;background:rgb(0 0 0 / 48%);backdrop-filter:blur(2px);&[data-state="open"]{animation:`,
|
|
3666
3661
|
` 220ms ease-out;}&[data-state="closed"]{animation:`,
|
|
3667
3662
|
` 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);}`
|
|
3668
3663
|
], fadeIn, fadeOut);
|
|
3669
3664
|
var MobileDrawerContent = styled(Dialog.Content).withConfig({
|
|
3670
|
-
componentId: "sc-
|
|
3665
|
+
componentId: "sc-37b4df5e-17"
|
|
3671
3666
|
})([
|
|
3672
3667
|
`position:fixed;z-index:201;top:0;right:0;width:320px;max-width:calc(100% - 24px);height:100vh;padding:20px;overflow-y:auto;color:`,
|
|
3673
3668
|
`;background:`,
|
|
@@ -3678,29 +3673,29 @@ var MobileDrawerContent = styled(Dialog.Content).withConfig({
|
|
|
3678
3673
|
` 180ms ease-in;}}`
|
|
3679
3674
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.canvas, slideIn, slideOut, dropIn, dropOut);
|
|
3680
3675
|
var MobileDrawerHeader = styled.div.withConfig({
|
|
3681
|
-
componentId: "sc-
|
|
3676
|
+
componentId: "sc-37b4df5e-18"
|
|
3682
3677
|
})([
|
|
3683
3678
|
`display:flex;min-height:44px;margin-bottom:24px;align-items:center;justify-content:space-between;gap:16px;@media (max-width:767px){display:none;}`
|
|
3684
3679
|
]);
|
|
3685
3680
|
var MobileDrawerTitle = styled(Dialog.Title).withConfig({
|
|
3686
|
-
componentId: "sc-
|
|
3681
|
+
componentId: "sc-37b4df5e-19"
|
|
3687
3682
|
})([
|
|
3688
3683
|
`margin:0;font-size:20px;font-weight:700;line-height:28px;`
|
|
3689
3684
|
]);
|
|
3690
3685
|
var MobileDrawerClose = styled(Dialog.Close).withConfig({
|
|
3691
|
-
componentId: "sc-
|
|
3686
|
+
componentId: "sc-37b4df5e-20"
|
|
3692
3687
|
})([
|
|
3693
3688
|
`display:inline-flex;width:40px;height:40px;flex:0 0 40px;align-items:center;justify-content:center;border:0;border-radius:50%;color:`,
|
|
3694
3689
|
`;background:transparent;cursor:pointer;&:hover{background:`,
|
|
3695
3690
|
`;}`
|
|
3696
3691
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
|
|
3697
3692
|
var MobileDrawerActions = styled.div.withConfig({
|
|
3698
|
-
componentId: "sc-
|
|
3693
|
+
componentId: "sc-37b4df5e-21"
|
|
3699
3694
|
})([
|
|
3700
3695
|
`display:none;@media (max-width:767px){display:grid;width:100%;margin-bottom:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}`
|
|
3701
3696
|
]);
|
|
3702
3697
|
var MobileMenuPanel = styled.nav.withConfig({
|
|
3703
|
-
componentId: "sc-
|
|
3698
|
+
componentId: "sc-37b4df5e-22"
|
|
3704
3699
|
})([
|
|
3705
3700
|
`display:flex;flex-direction:column;gap:6px;a,button{width:100%;border:0;display:flex;border-radius:8px;padding:14px 12px;color:`,
|
|
3706
3701
|
`;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:`,
|
|
@@ -3709,72 +3704,72 @@ var MobileMenuPanel = styled.nav.withConfig({
|
|
|
3709
3704
|
`;}.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 0;font-weight:700;line-height:18px;}a[data-accent="true"]{color:#f9bb3a;}.mobile-menu-submenu a{min-height:34px;padding:7px 0 7px 20px;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;}}`
|
|
3710
3705
|
], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary);
|
|
3711
3706
|
var RightActions = styled.div.withConfig({
|
|
3712
|
-
componentId: "sc-
|
|
3707
|
+
componentId: "sc-37b4df5e-23"
|
|
3713
3708
|
})([
|
|
3714
3709
|
`display:flex;margin-left:auto;align-items:center;gap:12px;& > div{display:flex;align-items:center;gap:8px;}@media (max-width:1279px){display:none;}`
|
|
3715
3710
|
]);
|
|
3716
3711
|
var IconButton2 = styled.button.withConfig({
|
|
3717
|
-
componentId: "sc-
|
|
3712
|
+
componentId: "sc-37b4df5e-24"
|
|
3718
3713
|
})([
|
|
3719
3714
|
`display:inline-flex;width:36px;height:36px;flex:0 0 auto;align-items:center;justify-content:center;border:0;border-radius:8px;color:`,
|
|
3720
3715
|
`;background:transparent;cursor:pointer;transition:background-color 160ms ease;svg{width:24px;height:24px;}&:hover{background:`,
|
|
3721
3716
|
`;}@media (max-width:480px){display:none;}`
|
|
3722
3717
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
|
|
3723
3718
|
var LanguageTrigger = styled(IconButton2).withConfig({
|
|
3724
|
-
componentId: "sc-
|
|
3719
|
+
componentId: "sc-37b4df5e-25"
|
|
3725
3720
|
})([
|
|
3726
3721
|
`&[data-state="open"]{color:#f9bb3a;background:`,
|
|
3727
3722
|
`;}@media (max-width:767px){display:inline-flex;}@media (max-width:620px){border-radius:4px;svg{width:20px;height:20px;flex-shrink:0;}}`
|
|
3728
3723
|
], ({ theme }) => theme.colors.background.hover);
|
|
3729
3724
|
var LanguageMenuContent = styled(DropdownMenu.Content).withConfig({
|
|
3730
|
-
componentId: "sc-
|
|
3725
|
+
componentId: "sc-37b4df5e-26"
|
|
3731
3726
|
})([
|
|
3732
3727
|
`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:`,
|
|
3733
3728
|
` 140ms ease-out;}&[data-state="closed"]{animation:`,
|
|
3734
3729
|
` 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;}`
|
|
3735
3730
|
], fadeIn, fadeOut);
|
|
3736
3731
|
var LanguageMenuItem = styled(DropdownMenu.RadioItem).withConfig({
|
|
3737
|
-
componentId: "sc-
|
|
3732
|
+
componentId: "sc-37b4df5e-27"
|
|
3738
3733
|
})([
|
|
3739
3734
|
`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;}`,
|
|
3740
3735
|
`[data-compact="true"] &{height:40px;padding:10px 6px;font-size:14px;line-height:18px;}`
|
|
3741
3736
|
], LanguageMenuContent);
|
|
3742
3737
|
var LanguageFlag = styled.span.withConfig({
|
|
3743
|
-
componentId: "sc-
|
|
3738
|
+
componentId: "sc-37b4df5e-28"
|
|
3744
3739
|
})([
|
|
3745
3740
|
`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;}`
|
|
3746
3741
|
]);
|
|
3747
3742
|
var LanguageItemIndicator = styled(DropdownMenu.ItemIndicator).withConfig({
|
|
3748
|
-
componentId: "sc-
|
|
3743
|
+
componentId: "sc-37b4df5e-29"
|
|
3749
3744
|
})([
|
|
3750
3745
|
`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;}`,
|
|
3751
3746
|
`[data-compact="true"] &,`,
|
|
3752
3747
|
`[data-compact="true"] & img{width:16px;height:16px;flex-basis:16px;}`
|
|
3753
3748
|
], LanguageMenuContent, LanguageMenuContent);
|
|
3754
3749
|
var ActionDivider = styled.span.withConfig({
|
|
3755
|
-
componentId: "sc-
|
|
3750
|
+
componentId: "sc-37b4df5e-30"
|
|
3756
3751
|
})([
|
|
3757
3752
|
`width:1px;height:16px;background:`,
|
|
3758
3753
|
`;@media (max-width:608px){display:none;}`
|
|
3759
3754
|
], ({ theme }) => theme.colors.border.line);
|
|
3760
3755
|
var LoginLink = styled.button.withConfig({
|
|
3761
|
-
componentId: "sc-
|
|
3756
|
+
componentId: "sc-37b4df5e-31"
|
|
3762
3757
|
})([
|
|
3763
3758
|
`display:inline-flex;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(:disabled):hover{background:`,
|
|
3764
3759
|
`;}&:disabled{cursor:not-allowed;opacity:0.55;}@media (max-width:608px){display:none;}`
|
|
3765
3760
|
], ({ theme }) => theme.colors.background.hover);
|
|
3766
3761
|
var OpenAccountButton = styled(Button_default).withConfig({
|
|
3767
|
-
componentId: "sc-
|
|
3762
|
+
componentId: "sc-37b4df5e-32"
|
|
3768
3763
|
})([
|
|
3769
3764
|
`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;}`
|
|
3770
3765
|
]);
|
|
3771
3766
|
var MobileDrawerLoginButton = styled(LoginLink).withConfig({
|
|
3772
|
-
componentId: "sc-
|
|
3767
|
+
componentId: "sc-37b4df5e-33"
|
|
3773
3768
|
})([
|
|
3774
3769
|
`display:none;@media (max-width:767px){display:inline-flex;width:100%;min-width:0;padding-inline:12px;&:disabled{opacity:1;}}`
|
|
3775
3770
|
]);
|
|
3776
3771
|
var MobileDrawerOpenAccountButton = styled(OpenAccountButton).withConfig({
|
|
3777
|
-
componentId: "sc-
|
|
3772
|
+
componentId: "sc-37b4df5e-34"
|
|
3778
3773
|
})([
|
|
3779
3774
|
`display:none;@media (max-width:767px){display:flex;width:100%;min-width:0;}`
|
|
3780
3775
|
]);
|
|
@@ -6090,25 +6085,28 @@ function Table({
|
|
|
6090
6085
|
// src/commodity-original/components/Pagination/index.tsx
|
|
6091
6086
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
6092
6087
|
|
|
6088
|
+
// src/wikex/assets/products/chevron-right.svg
|
|
6089
|
+
var chevron_right_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDE0IDE0IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNNS4yNSAzLjVMOC43NSA3TDUuMjUgMTAuNSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS4xNjY2NyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=";
|
|
6090
|
+
|
|
6093
6091
|
// src/commodity-original/components/Pagination/style.ts
|
|
6094
|
-
import styled7 from "styled-components";
|
|
6092
|
+
import { styled as styled7 } from "styled-components";
|
|
6095
6093
|
var PaginationNav = styled7.nav.withConfig({
|
|
6096
|
-
componentId: "sc-
|
|
6094
|
+
componentId: "sc-522a1750-0"
|
|
6097
6095
|
})([
|
|
6098
6096
|
`display:flex;justify-content:center;`
|
|
6099
6097
|
]);
|
|
6100
6098
|
var PaginationList = styled7.ul.withConfig({
|
|
6101
|
-
componentId: "sc-
|
|
6099
|
+
componentId: "sc-522a1750-1"
|
|
6102
6100
|
})([
|
|
6103
6101
|
`display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`
|
|
6104
6102
|
]);
|
|
6105
6103
|
var PaginationItem = styled7.li.withConfig({
|
|
6106
|
-
componentId: "sc-
|
|
6104
|
+
componentId: "sc-522a1750-2"
|
|
6107
6105
|
})([
|
|
6108
6106
|
`display:flex;`
|
|
6109
6107
|
]);
|
|
6110
6108
|
var PaginationButton = styled7.button.withConfig({
|
|
6111
|
-
componentId: "sc-
|
|
6109
|
+
componentId: "sc-522a1750-3"
|
|
6112
6110
|
})([
|
|
6113
6111
|
`display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
6114
6112
|
`;border-radius:4px;padding:4px;color:`,
|
|
@@ -6123,10 +6121,12 @@ var PaginationButton = styled7.button.withConfig({
|
|
|
6123
6121
|
`;outline-offset:2px;}`
|
|
6124
6122
|
], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.background.canvas, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.foreground, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary, ({ theme }) => theme.colors.accent.primary);
|
|
6125
6123
|
var PaginationArrow = styled7.span.withConfig({
|
|
6126
|
-
componentId: "sc-
|
|
6124
|
+
componentId: "sc-522a1750-4"
|
|
6127
6125
|
})([
|
|
6128
|
-
`width:16px;height:16px;background:currentColor;mask:url("
|
|
6129
|
-
|
|
6126
|
+
`width:16px;height:16px;background:currentColor;mask:url("`,
|
|
6127
|
+
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
6128
|
+
`") center / contain no-repeat;&[data-direction="previous"]{transform:scaleX(-1);}`
|
|
6129
|
+
], chevron_right_default, chevron_right_default);
|
|
6130
6130
|
|
|
6131
6131
|
// src/commodity-original/components/Pagination/index.tsx
|
|
6132
6132
|
import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
@@ -6156,6 +6156,7 @@ function Pagination2({
|
|
|
6156
6156
|
onPageChange,
|
|
6157
6157
|
siblingCount = 1,
|
|
6158
6158
|
ariaLabel,
|
|
6159
|
+
labels,
|
|
6159
6160
|
className
|
|
6160
6161
|
}) {
|
|
6161
6162
|
const { t } = useTranslation3();
|
|
@@ -6173,7 +6174,7 @@ function Pagination2({
|
|
|
6173
6174
|
/* @__PURE__ */ jsx12(PaginationItem, { children: /* @__PURE__ */ jsx12(
|
|
6174
6175
|
PaginationButton,
|
|
6175
6176
|
{
|
|
6176
|
-
"aria-label": t("pagination.previous"),
|
|
6177
|
+
"aria-label": labels?.previous ?? t("pagination.previous"),
|
|
6177
6178
|
"data-control": "previous",
|
|
6178
6179
|
disabled: !hasPreviousPage,
|
|
6179
6180
|
onClick: () => onPageChange(currentPage - 1),
|
|
@@ -6185,7 +6186,7 @@ function Pagination2({
|
|
|
6185
6186
|
PaginationButton,
|
|
6186
6187
|
{
|
|
6187
6188
|
"aria-current": item === currentPage ? "page" : void 0,
|
|
6188
|
-
"aria-label": item === currentPage ? t("pagination.current", { page: item }) : t("pagination.page", { page: item }),
|
|
6189
|
+
"aria-label": item === currentPage ? labels?.current(item) ?? t("pagination.current", { page: item }) : labels?.page(item) ?? t("pagination.page", { page: item }),
|
|
6189
6190
|
"data-active": item === currentPage || void 0,
|
|
6190
6191
|
onClick: () => onPageChange(item),
|
|
6191
6192
|
type: "button",
|
|
@@ -6195,7 +6196,7 @@ function Pagination2({
|
|
|
6195
6196
|
/* @__PURE__ */ jsx12(PaginationItem, { children: /* @__PURE__ */ jsx12(
|
|
6196
6197
|
PaginationButton,
|
|
6197
6198
|
{
|
|
6198
|
-
"aria-label": t("pagination.next"),
|
|
6199
|
+
"aria-label": labels?.next ?? t("pagination.next"),
|
|
6199
6200
|
"data-control": "next",
|
|
6200
6201
|
disabled: !hasNextPage,
|
|
6201
6202
|
onClick: () => onPageChange(currentPage + 1),
|
|
@@ -8644,7 +8645,7 @@ import { useState as useState9 } from "react";
|
|
|
8644
8645
|
import Link5 from "next/link.js";
|
|
8645
8646
|
|
|
8646
8647
|
// src/commodity-original/components/Breadcrumb/style.ts
|
|
8647
|
-
import styled20 from "styled-components";
|
|
8648
|
+
import { styled as styled20 } from "styled-components";
|
|
8648
8649
|
var breadcrumbText = `
|
|
8649
8650
|
font-family: var(--font-manrope), Arial, Helvetica, sans-serif;
|
|
8650
8651
|
font-size: 12px;
|
|
@@ -8657,22 +8658,22 @@ var breadcrumbText = `
|
|
|
8657
8658
|
}
|
|
8658
8659
|
`;
|
|
8659
8660
|
var BreadcrumbNav = styled20.nav.withConfig({
|
|
8660
|
-
componentId: "sc-
|
|
8661
|
+
componentId: "sc-9c96c0b1-0"
|
|
8661
8662
|
})([
|
|
8662
8663
|
`display:flex;max-width:100%;align-items:center;@media (max-width:767px){overflow-x:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}}`
|
|
8663
8664
|
]);
|
|
8664
8665
|
var BreadcrumbList = styled20.ol.withConfig({
|
|
8665
|
-
componentId: "sc-
|
|
8666
|
+
componentId: "sc-9c96c0b1-1"
|
|
8666
8667
|
})([
|
|
8667
8668
|
`display:flex;margin:0;padding:0;align-items:center;gap:4px;list-style:none;`
|
|
8668
8669
|
]);
|
|
8669
8670
|
var BreadcrumbItem = styled20.li.withConfig({
|
|
8670
|
-
componentId: "sc-
|
|
8671
|
+
componentId: "sc-9c96c0b1-2"
|
|
8671
8672
|
})([
|
|
8672
8673
|
`display:flex;align-items:center;gap:4px;`
|
|
8673
8674
|
]);
|
|
8674
8675
|
var BreadcrumbLink = styled20.a.withConfig({
|
|
8675
|
-
componentId: "sc-
|
|
8676
|
+
componentId: "sc-9c96c0b1-3"
|
|
8676
8677
|
})([
|
|
8677
8678
|
``,
|
|
8678
8679
|
` color:`,
|
|
@@ -8680,18 +8681,20 @@ var BreadcrumbLink = styled20.a.withConfig({
|
|
|
8680
8681
|
`;}&:focus-visible{outline:2px solid #f9bb3a;outline-offset:2px;}`
|
|
8681
8682
|
], breadcrumbText, ({ theme }) => theme.colors.text.placeholder, ({ theme }) => theme.colors.text.primary);
|
|
8682
8683
|
var BreadcrumbCurrent = styled20.span.withConfig({
|
|
8683
|
-
componentId: "sc-
|
|
8684
|
+
componentId: "sc-9c96c0b1-4"
|
|
8684
8685
|
})([
|
|
8685
8686
|
``,
|
|
8686
8687
|
` color:`,
|
|
8687
8688
|
`;`
|
|
8688
8689
|
], breadcrumbText, ({ theme }) => theme.colors.text.primary);
|
|
8689
8690
|
var BreadcrumbSeparator = styled20.span.withConfig({
|
|
8690
|
-
componentId: "sc-
|
|
8691
|
+
componentId: "sc-9c96c0b1-5"
|
|
8691
8692
|
})([
|
|
8692
8693
|
`display:inline-flex;width:14px;height:14px;align-items:center;justify-content:center;color:`,
|
|
8693
|
-
`;background:currentColor;mask:url("
|
|
8694
|
-
|
|
8694
|
+
`;background:currentColor;mask:url("`,
|
|
8695
|
+
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
8696
|
+
`") center / contain no-repeat;`
|
|
8697
|
+
], ({ theme }) => theme.colors.text.placeholder, chevron_right_default, chevron_right_default);
|
|
8695
8698
|
|
|
8696
8699
|
// src/commodity-original/components/Breadcrumb/index.tsx
|
|
8697
8700
|
import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
@@ -8816,6 +8819,12 @@ var commodityGroups = [
|
|
|
8816
8819
|
];
|
|
8817
8820
|
var faqCount = 8;
|
|
8818
8821
|
|
|
8822
|
+
// src/wikex/assets/products/related-products-arrow.svg
|
|
8823
|
+
var related_products_arrow_default = "data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGlkPSJJY29uIC8gYXJyb3ciPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTIuNjY2NyA4TDMuMzMzMzMgOE04IDEyLjY2NjdMMTIuNjY2NyA4TDggMy4zMzMzMyIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L3N2Zz4K";
|
|
8824
|
+
|
|
8825
|
+
// src/wikex/assets/products/product-card-arrow.svg
|
|
8826
|
+
var product_card_arrow_default = "data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xNSA4TDEgOE04IDE1TDE1IDhMOCAxIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";
|
|
8827
|
+
|
|
8819
8828
|
// src/commodity-original/components/ProductCard/style.ts
|
|
8820
8829
|
import Link6 from "next/link.js";
|
|
8821
8830
|
import Image6 from "next/image.js";
|
|
@@ -8825,53 +8834,57 @@ var cardSurface = css2([
|
|
|
8825
8834
|
`;transition:transform 160ms ease;&:hover{transform:translateY(-2px);}@media (max-width:599px){max-width:100%;}`
|
|
8826
8835
|
], ({ theme }) => theme.colors.text.primary);
|
|
8827
8836
|
var ProductCardArticle = styled21.article.withConfig({
|
|
8828
|
-
componentId: "sc-
|
|
8837
|
+
componentId: "sc-232625b5-0"
|
|
8829
8838
|
})([
|
|
8830
8839
|
``,
|
|
8831
8840
|
``
|
|
8832
8841
|
], cardSurface);
|
|
8833
8842
|
var ProductCardLink = styled21(Link6).withConfig({
|
|
8834
|
-
componentId: "sc-
|
|
8843
|
+
componentId: "sc-232625b5-1"
|
|
8835
8844
|
})([
|
|
8836
8845
|
``,
|
|
8837
8846
|
` text-decoration:none;&:focus-visible{outline:2px solid `,
|
|
8838
8847
|
`;outline-offset:3px;}`
|
|
8839
8848
|
], cardSurface, ({ theme }) => theme.colors.accent.primary);
|
|
8840
8849
|
var ProductCardImagePanel = styled21.div.withConfig({
|
|
8841
|
-
componentId: "sc-
|
|
8850
|
+
componentId: "sc-232625b5-2"
|
|
8842
8851
|
})([
|
|
8843
8852
|
`position:relative;width:100%;aspect-ratio:1;border-radius:8px 8px 0 0;&::before{position:absolute;z-index:1;inset:41.2879% 0 0;border-radius:8px 8px 0 0;background:rgb(249 187 58 / 40%);box-shadow:-4px 4px 10px rgb(0 0 0 / 10%);content:"";}@media (max-width:599px){&::before{inset:43.2727% 0 -14.5833%;}}`
|
|
8844
8853
|
]);
|
|
8845
8854
|
var ProductCardImage = styled21(Image6).withConfig({
|
|
8846
|
-
componentId: "sc-
|
|
8855
|
+
componentId: "sc-232625b5-3"
|
|
8847
8856
|
})([
|
|
8848
8857
|
`z-index:2;object-fit:cover;pointer-events:none;`
|
|
8849
8858
|
]);
|
|
8850
8859
|
var ProductCardCopy = styled21.div.withConfig({
|
|
8851
|
-
componentId: "sc-
|
|
8860
|
+
componentId: "sc-232625b5-4"
|
|
8852
8861
|
})([
|
|
8853
8862
|
`display:flex;width:100%;flex:1 0 auto;flex-direction:column;gap:4px;padding:12px 16px 24px;border-radius:0 0 8px 8px;background:`,
|
|
8854
8863
|
`;box-shadow:-4px 4px 10px rgb(0 0 0 / 10%);@media (max-width:599px){padding:12px 16px 24px;align-items:center;z-index:2;}`
|
|
8855
8864
|
], ({ theme }) => theme.colors.background.card);
|
|
8856
8865
|
var ProductCardTitleRow = styled21.div.withConfig({
|
|
8857
|
-
componentId: "sc-
|
|
8866
|
+
componentId: "sc-232625b5-5"
|
|
8858
8867
|
})([
|
|
8859
8868
|
`display:flex;width:100%;align-items:center;gap:8px;`
|
|
8860
8869
|
]);
|
|
8861
8870
|
var ProductCardTitle = styled21.h3.withConfig({
|
|
8862
|
-
componentId: "sc-
|
|
8871
|
+
componentId: "sc-232625b5-6"
|
|
8863
8872
|
})([
|
|
8864
8873
|
`flex:1 1 0;min-width:0;margin:0;overflow:hidden;color:`,
|
|
8865
8874
|
`;font-size:20px;font-weight:700;line-height:30px;text-overflow:ellipsis;white-space:nowrap;@media (max-width:599px){font-size:14px;line-height:18px;}`
|
|
8866
8875
|
], ({ theme }) => theme.colors.text.primary);
|
|
8867
8876
|
var ProductCardArrow = styled21.span.withConfig({
|
|
8868
|
-
componentId: "sc-
|
|
8877
|
+
componentId: "sc-232625b5-7"
|
|
8869
8878
|
})([
|
|
8870
8879
|
`width:24px;height:24px;flex:0 0 24px;color:`,
|
|
8871
|
-
`;background:currentColor;mask:url("
|
|
8872
|
-
|
|
8880
|
+
`;background:currentColor;mask:url("`,
|
|
8881
|
+
`") center / 16px 16px no-repeat;-webkit-mask:url("`,
|
|
8882
|
+
`") center / 16px 16px no-repeat;@media (max-width:599px){width:18px;height:18px;flex-basis:18px;mask-image:url("`,
|
|
8883
|
+
`");mask-size:contain;-webkit-mask-image:url("`,
|
|
8884
|
+
`");-webkit-mask-size:contain;}`
|
|
8885
|
+
], ({ theme }) => theme.colors.accent.primary, product_card_arrow_default, product_card_arrow_default, related_products_arrow_default, related_products_arrow_default);
|
|
8873
8886
|
var ProductCardDescription = styled21.p.withConfig({
|
|
8874
|
-
componentId: "sc-
|
|
8887
|
+
componentId: "sc-232625b5-8"
|
|
8875
8888
|
})([
|
|
8876
8889
|
`display:-webkit-box;width:100%;overflow:hidden;margin:0;color:`,
|
|
8877
8890
|
`;font-size:16px;font-weight:500;line-height:22px;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:3;@media (max-width:599px){font-size:12px;line-height:16px;}`
|
|
@@ -8883,6 +8896,7 @@ function ProductCardContent({
|
|
|
8883
8896
|
description,
|
|
8884
8897
|
image: image2,
|
|
8885
8898
|
imageAlt = "",
|
|
8899
|
+
imageFit = "cover",
|
|
8886
8900
|
title
|
|
8887
8901
|
}) {
|
|
8888
8902
|
return /* @__PURE__ */ jsxs20(Fragment10, { children: [
|
|
@@ -8892,7 +8906,8 @@ function ProductCardContent({
|
|
|
8892
8906
|
alt: imageAlt,
|
|
8893
8907
|
fill: true,
|
|
8894
8908
|
sizes: "(max-width: 767px) calc(100vw - 48px), 329px",
|
|
8895
|
-
src: image2
|
|
8909
|
+
src: image2,
|
|
8910
|
+
style: imageFit === "contain" ? { objectFit: "contain", padding: 24 } : void 0
|
|
8896
8911
|
}
|
|
8897
8912
|
) }),
|
|
8898
8913
|
/* @__PURE__ */ jsxs20(ProductCardCopy, { children: [
|
|
@@ -8910,6 +8925,7 @@ function ProductCard({
|
|
|
8910
8925
|
href,
|
|
8911
8926
|
image: image2,
|
|
8912
8927
|
imageAlt,
|
|
8928
|
+
imageFit,
|
|
8913
8929
|
title
|
|
8914
8930
|
}) {
|
|
8915
8931
|
const content = /* @__PURE__ */ jsx24(
|
|
@@ -8918,6 +8934,7 @@ function ProductCard({
|
|
|
8918
8934
|
description,
|
|
8919
8935
|
image: image2,
|
|
8920
8936
|
imageAlt,
|
|
8937
|
+
imageFit,
|
|
8921
8938
|
title
|
|
8922
8939
|
}
|
|
8923
8940
|
);
|
|
@@ -10605,7 +10622,7 @@ function Footer() {
|
|
|
10605
10622
|
import { useCallback as useCallback2, useEffect as useEffect7, useRef as useRef5, useState as useState12 } from "react";
|
|
10606
10623
|
import Image9 from "next/image.js";
|
|
10607
10624
|
import Link9 from "next/link.js";
|
|
10608
|
-
import { usePathname } from "next/navigation.js";
|
|
10625
|
+
import { usePathname, useSearchParams } from "next/navigation.js";
|
|
10609
10626
|
import { ChevronDown, Menu as Menu2, X as X2 } from "lucide";
|
|
10610
10627
|
import { MorphIcon as MorphIcon3 } from "morphicons/react";
|
|
10611
10628
|
import { Dialog as Dialog5, DropdownMenu as DropdownMenu2 } from "radix-ui";
|
|
@@ -10651,9 +10668,21 @@ function ThemeToggle({ variant = "floating" }) {
|
|
|
10651
10668
|
import { useTranslation as useTranslation16 } from "react-i18next";
|
|
10652
10669
|
|
|
10653
10670
|
// src/commodity-original/components/Header/data.ts
|
|
10671
|
+
var productNavigationItems = [
|
|
10672
|
+
{ labelKey: "landing.footer.metal", href: "/products/", category: "metal" },
|
|
10673
|
+
{ labelKey: "landing.footer.agriculture", href: "/products/", category: "agriculture" },
|
|
10674
|
+
{ labelKey: "landing.footer.industrial", href: "/products/", category: "industrial" }
|
|
10675
|
+
];
|
|
10676
|
+
function productCategoryHref(href, category) {
|
|
10677
|
+
const [base, hash] = href.split("#");
|
|
10678
|
+
const [pathname, query] = base.split("?");
|
|
10679
|
+
const params = new URLSearchParams(query);
|
|
10680
|
+
params.set("category", category);
|
|
10681
|
+
return `${pathname}?${params}${hash ? `#${hash}` : ""}`;
|
|
10682
|
+
}
|
|
10654
10683
|
var navigationItems2 = [
|
|
10655
10684
|
{ labelKey: "header.nav.about", href: "/about-us/" },
|
|
10656
|
-
{ labelKey: "header.nav.product",
|
|
10685
|
+
{ labelKey: "header.nav.product", children: productNavigationItems },
|
|
10657
10686
|
{ labelKey: "header.nav.fees", href: "/bang-phi-ky-quy/" },
|
|
10658
10687
|
{ labelKey: "header.nav.wikexNews", href: "/thong-tin-wikex/" },
|
|
10659
10688
|
{ labelKey: "header.nav.mxvNews", href: "/noti-mxv/" },
|
|
@@ -10765,8 +10794,9 @@ function LanguageSwitcher({
|
|
|
10765
10794
|
}
|
|
10766
10795
|
function Header() {
|
|
10767
10796
|
const pathname = usePathname().replace(/\/+$/, "") || "/";
|
|
10797
|
+
const selectedCategory = useSearchParams().get("category");
|
|
10768
10798
|
const isRouteActive = (href) => {
|
|
10769
|
-
const route = href.replace(/\/+$/, "") || "/";
|
|
10799
|
+
const route = href.split(/[?#]/)[0].replace(/\/+$/, "") || "/";
|
|
10770
10800
|
if (route === "/comming-soon") return false;
|
|
10771
10801
|
return pathname === route || pathname.startsWith(`${route}/`);
|
|
10772
10802
|
};
|
|
@@ -10807,7 +10837,7 @@ function Header() {
|
|
|
10807
10837
|
...item,
|
|
10808
10838
|
children: item.children.map((child) => ({
|
|
10809
10839
|
...child,
|
|
10810
|
-
href: navigationUrls[
|
|
10840
|
+
href: productCategoryHref(navigationUrls[item.labelKey] ?? child.href, child.category)
|
|
10811
10841
|
}))
|
|
10812
10842
|
} : {
|
|
10813
10843
|
...item,
|
|
@@ -10893,35 +10923,22 @@ function Header() {
|
|
|
10893
10923
|
open: isDesktopProductsOpen,
|
|
10894
10924
|
onOpenChange: setIsDesktopProductsOpen,
|
|
10895
10925
|
children: [
|
|
10896
|
-
/* @__PURE__ */ jsx30(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */
|
|
10926
|
+
/* @__PURE__ */ jsx30(DropdownMenu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx30(
|
|
10897
10927
|
ProductsMenuTrigger,
|
|
10898
10928
|
{
|
|
10899
10929
|
type: "button",
|
|
10900
10930
|
"aria-current": isItemActive ? "page" : void 0,
|
|
10901
10931
|
"data-active": isItemActive ? "true" : void 0,
|
|
10902
|
-
children:
|
|
10903
|
-
/* @__PURE__ */ jsx30("span", { children: t(item.labelKey) }),
|
|
10904
|
-
/* @__PURE__ */ jsx30(
|
|
10905
|
-
MorphIcon3,
|
|
10906
|
-
{
|
|
10907
|
-
icon: ChevronDown,
|
|
10908
|
-
size: 16,
|
|
10909
|
-
strokeWidth: 2,
|
|
10910
|
-
spring: "snappy",
|
|
10911
|
-
reducedMotion: "user",
|
|
10912
|
-
"aria-hidden": "true"
|
|
10913
|
-
}
|
|
10914
|
-
)
|
|
10915
|
-
]
|
|
10932
|
+
children: /* @__PURE__ */ jsx30("span", { children: t(item.labelKey) })
|
|
10916
10933
|
}
|
|
10917
10934
|
) }),
|
|
10918
10935
|
/* @__PURE__ */ jsx30(DropdownMenu2.Portal, { container: portalContainer, children: /* @__PURE__ */ jsx30(
|
|
10919
10936
|
ProductsMenuContent,
|
|
10920
10937
|
{
|
|
10921
|
-
align: "
|
|
10938
|
+
align: "center",
|
|
10922
10939
|
sideOffset: 10,
|
|
10923
10940
|
"aria-label": t(item.labelKey),
|
|
10924
|
-
children: item.children.map((child) => /* @__PURE__ */ jsx30(ProductsMenuItem, { asChild: true, children: /* @__PURE__ */ jsx30(Link9, { href: child.href, children: t(child.labelKey) }) }, child.labelKey))
|
|
10941
|
+
children: item.children.map((child) => /* @__PURE__ */ jsx30(ProductsMenuItem, { asChild: true, children: /* @__PURE__ */ jsx30(Link9, { href: child.href, "aria-current": isItemActive && selectedCategory === child.category ? "page" : void 0, children: t(child.labelKey) }) }, child.labelKey))
|
|
10925
10942
|
}
|
|
10926
10943
|
) })
|
|
10927
10944
|
]
|
|
@@ -11089,6 +11106,7 @@ function Header() {
|
|
|
11089
11106
|
Link9,
|
|
11090
11107
|
{
|
|
11091
11108
|
href: child.href,
|
|
11109
|
+
"aria-current": isItemActive && selectedCategory === child.category ? "page" : void 0,
|
|
11092
11110
|
onClick: () => {
|
|
11093
11111
|
setIsProductsOpen(false);
|
|
11094
11112
|
setIsMenuOpen(false);
|
|
@@ -15576,6 +15594,159 @@ var wikexCommodityBlocks = [
|
|
|
15576
15594
|
informationArticles
|
|
15577
15595
|
];
|
|
15578
15596
|
|
|
15597
|
+
// src/wikex/page-templates.ts
|
|
15598
|
+
var chrome = (components) => [
|
|
15599
|
+
{ type: "commodity-header" },
|
|
15600
|
+
...components,
|
|
15601
|
+
{ type: "commodity-footer" }
|
|
15602
|
+
];
|
|
15603
|
+
var wikexCommodityPageTemplates = [
|
|
15604
|
+
{
|
|
15605
|
+
kind: "cms-page",
|
|
15606
|
+
key: "commodity-home",
|
|
15607
|
+
name: "Wikex Commodity \u2014 Trang ch\u1EE7",
|
|
15608
|
+
description: "T\u1EA5t c\u1EA3 section c\u1EE7a landing page Wikex Commodity.",
|
|
15609
|
+
route: "/",
|
|
15610
|
+
slug: "trang-chu",
|
|
15611
|
+
components: chrome([
|
|
15612
|
+
{ type: "commodity-hero" },
|
|
15613
|
+
{ type: "commodity-benefits" },
|
|
15614
|
+
{ type: "commodity-position" },
|
|
15615
|
+
{ type: "commodity-audience" },
|
|
15616
|
+
{ type: "download-section" },
|
|
15617
|
+
{ type: "commodity-steps" },
|
|
15618
|
+
{ type: "commodity-markets" },
|
|
15619
|
+
{ type: "commodity-faq" },
|
|
15620
|
+
{ type: "commodity-registration" }
|
|
15621
|
+
])
|
|
15622
|
+
},
|
|
15623
|
+
{
|
|
15624
|
+
kind: "cms-page",
|
|
15625
|
+
key: "commodity-about-us",
|
|
15626
|
+
name: "Wikex Commodity \u2014 V\u1EC1 ch\xFAng t\xF4i",
|
|
15627
|
+
description: "C\xE1c section c\u1EE7a route /about-us.",
|
|
15628
|
+
route: "/about-us",
|
|
15629
|
+
slug: "about-us",
|
|
15630
|
+
seo: {
|
|
15631
|
+
title: "Wikex - Giao D\u1ECBch H\xE0ng H\xF3a | S\xE0n giao d\u1ECBch h\xE0ng h\xF3a uy t\xEDn cho nh\xE0 \u0111\u1EA7u t\u01B0 Vi\u1EC7t",
|
|
15632
|
+
description: "Th\xE0nh vi\xEAn Kinh doanh 090 c\u1EE7a S\u1EDF Giao d\u1ECBch H\xE0ng h\xF3a Vi\u1EC7t Nam (MXV). Th\xF4ng tin t\u1ED5ng quan, t\u1EA7m nh\xECn, s\u1EE9 m\u1EC7nh v\xE0 gi\xE1 tr\u1ECB c\u1ED1t l\xF5i c\u1EE7a Wikex."
|
|
15633
|
+
},
|
|
15634
|
+
components: chrome([
|
|
15635
|
+
{ type: "commodity-about-hero" },
|
|
15636
|
+
{ type: "commodity-about-intro" },
|
|
15637
|
+
{ type: "commodity-about-vision-mission" },
|
|
15638
|
+
{ type: "commodity-about-core-values" },
|
|
15639
|
+
{ type: "commodity-about-gallery" },
|
|
15640
|
+
{ type: "commodity-about-registration" }
|
|
15641
|
+
])
|
|
15642
|
+
},
|
|
15643
|
+
{
|
|
15644
|
+
kind: "cms-page",
|
|
15645
|
+
key: "commodity-fees",
|
|
15646
|
+
name: "Wikex Commodity \u2014 Bi\u1EC3u ph\xED & k\xFD qu\u1EF9",
|
|
15647
|
+
description: "C\xE1c section c\u1EE7a route /bang-phi-ky-quy.",
|
|
15648
|
+
route: "/bang-phi-ky-quy",
|
|
15649
|
+
slug: "bang-phi-ky-quy",
|
|
15650
|
+
seo: {
|
|
15651
|
+
title: "B\u1EA3ng ph\xED giao d\u1ECBch & K\xFD qu\u1EF9 h\xE0ng h\xF3a Wikex | C\u1EADp nh\u1EADt m\u1EDBi nh\u1EA5t",
|
|
15652
|
+
description: "C\u1EADp nh\u1EADt chi ti\u1EBFt b\u1EA3ng ph\xED giao d\u1ECBch, m\u1EE9c k\xFD qu\u1EF9 v\xE0 khung gi\u1EDD giao d\u1ECBch c\xE1c s\u1EA3n ph\u1EA9m h\xE0ng h\xF3a ph\xE1i sinh t\u1EA1i Wikex."
|
|
15653
|
+
},
|
|
15654
|
+
redirect: { target: "/comming-soon", permanent: false },
|
|
15655
|
+
components: chrome([{ type: "commodity-fees" }])
|
|
15656
|
+
},
|
|
15657
|
+
{
|
|
15658
|
+
kind: "cms-page",
|
|
15659
|
+
key: "commodity-policy",
|
|
15660
|
+
name: "Wikex Commodity \u2014 Ch\xEDnh s\xE1ch",
|
|
15661
|
+
description: "C\xE1c section c\u1EE7a route /chinh-sach.",
|
|
15662
|
+
route: "/chinh-sach",
|
|
15663
|
+
slug: "chinh-sach",
|
|
15664
|
+
components: chrome([{ type: "commodity-policy" }])
|
|
15665
|
+
},
|
|
15666
|
+
{
|
|
15667
|
+
kind: "cms-page",
|
|
15668
|
+
key: "commodity-coming-soon",
|
|
15669
|
+
name: "Wikex Commodity \u2014 Coming soon",
|
|
15670
|
+
description: "C\xE1c section c\u1EE7a route /comming-soon.",
|
|
15671
|
+
route: "/comming-soon",
|
|
15672
|
+
slug: "comming-soon",
|
|
15673
|
+
components: chrome([{ type: "commodity-coming-soon" }])
|
|
15674
|
+
},
|
|
15675
|
+
{
|
|
15676
|
+
kind: "cms-page",
|
|
15677
|
+
key: "commodity-complaints",
|
|
15678
|
+
name: "Wikex Commodity \u2014 Khi\u1EBFu n\u1EA1i",
|
|
15679
|
+
description: "C\xE1c section c\u1EE7a route /khieu-nai.",
|
|
15680
|
+
route: "/khieu-nai",
|
|
15681
|
+
slug: "khieu-nai",
|
|
15682
|
+
seo: {
|
|
15683
|
+
title: "Gi\u1EA3i quy\u1EBFt khi\u1EBFu n\u1EA1i | Wikex - Giao d\u1ECBch h\xE0ng h\xF3a",
|
|
15684
|
+
description: "Quy tr\xECnh ti\u1EBFp nh\u1EADn, x\u1EED l\xFD v\xE0 gi\u1EA3i quy\u1EBFt c\xE1c y\xEAu c\u1EA7u, ph\u1EA3n \xE1nh v\xE0 khi\u1EBFu n\u1EA1i c\u1EE7a kh\xE1ch h\xE0ng t\u1EA1i Wikex."
|
|
15685
|
+
},
|
|
15686
|
+
components: chrome([{ type: "commodity-complaints" }])
|
|
15687
|
+
},
|
|
15688
|
+
{
|
|
15689
|
+
kind: "cms-page",
|
|
15690
|
+
key: "commodity-notifications",
|
|
15691
|
+
name: "Wikex Commodity \u2014 Th\xF4ng b\xE1o MXV",
|
|
15692
|
+
description: "C\xE1c section c\u1EE7a route /noti-mxv.",
|
|
15693
|
+
route: "/noti-mxv",
|
|
15694
|
+
slug: "noti-mxv",
|
|
15695
|
+
seo: {
|
|
15696
|
+
title: "Th\xF4ng b\xE1o | Wikex - Giao D\u1ECBch H\xE0ng H\xF3a",
|
|
15697
|
+
description: "Th\xF4ng b\xE1o t\u1EEB MXV v\u1EC1 th\u1ECB tr\u01B0\u1EDDng giao d\u1ECBch h\xE0ng h\xF3a. C\xE1c c\u1EADp nh\u1EADt v\u1EC1 s\u1EA3n ph\u1EA9m, d\u1ECBch v\u1EE5, s\u1EF1 ki\u1EC7n v\xE0 ho\u1EA1t \u0111\u1ED9ng c\u1EE7a Wikex."
|
|
15698
|
+
},
|
|
15699
|
+
redirect: { target: "/comming-soon", permanent: false },
|
|
15700
|
+
components: chrome([{ type: "commodity-notification-list" }])
|
|
15701
|
+
},
|
|
15702
|
+
{
|
|
15703
|
+
kind: "cms-page",
|
|
15704
|
+
key: "commodity-products",
|
|
15705
|
+
name: "Wikex Commodity \u2014 S\u1EA3n ph\u1EA9m",
|
|
15706
|
+
description: "C\xE1c section c\u1EE7a route /products.",
|
|
15707
|
+
route: "/products",
|
|
15708
|
+
slug: "products",
|
|
15709
|
+
seo: {
|
|
15710
|
+
title: "Danh m\u1EE5c s\u1EA3n ph\u1EA9m giao d\u1ECBch h\xE0ng h\xF3a Wikex",
|
|
15711
|
+
description: "Kh\xE1m ph\xE1 danh m\u1EE5c s\u1EA3n ph\u1EA9m \u0111a d\u1EA1ng t\u1EEB N\xF4ng s\u1EA3n, N\u0103ng l\u01B0\u1EE3ng, Kim lo\u1EA1i \u0111\u1EBFn Nguy\xEAn li\u1EC7u c\xF4ng nghi\u1EC7p\u2026 v\xE0 c\xE1c h\u1EE3p \u0111\u1ED3ng h\xE0ng h\xF3a ph\xE1i sinh t\u1EA1i Wikex."
|
|
15712
|
+
},
|
|
15713
|
+
redirect: { target: "/comming-soon", permanent: false },
|
|
15714
|
+
components: chrome([{ type: "commodity-products" }])
|
|
15715
|
+
},
|
|
15716
|
+
{
|
|
15717
|
+
kind: "cms-page",
|
|
15718
|
+
key: "commodity-product-detail",
|
|
15719
|
+
name: "Wikex Commodity \u2014 Chi ti\u1EBFt s\u1EA3n ph\u1EA9m",
|
|
15720
|
+
description: "M\u1EABu cho route \u0111\u1ED9ng /products/[slug].",
|
|
15721
|
+
route: "/products/[slug]",
|
|
15722
|
+
slug: "products-product-detail",
|
|
15723
|
+
components: chrome([{ type: "commodity-product-detail" }])
|
|
15724
|
+
},
|
|
15725
|
+
{
|
|
15726
|
+
kind: "cms-page",
|
|
15727
|
+
key: "commodity-information",
|
|
15728
|
+
name: "Wikex Commodity \u2014 Th\xF4ng tin Wikex",
|
|
15729
|
+
description: "C\xE1c section c\u1EE7a route /thong-tin-wikex.",
|
|
15730
|
+
route: "/thong-tin-wikex",
|
|
15731
|
+
slug: "thong-tin-wikex",
|
|
15732
|
+
seo: {
|
|
15733
|
+
title: "Ki\u1EBFn Th\u1EE9c & Tin T\u1EE9c Th\u1ECB Tr\u01B0\u1EDDng Giao D\u1ECBch H\xE0ng H\xF3a",
|
|
15734
|
+
description: "Cung c\u1EA5p ki\u1EBFn th\u1EE9c giao d\u1ECBch h\xE0ng h\xF3a t\u1EEB c\u01A1 b\u1EA3n \u0111\u1EBFn n\xE2ng cao cho nh\xE0 \u0111\u1EA7u t\u01B0. C\u1EADp nh\u1EADt tin t\u1EE9c th\u1ECB tr\u01B0\u1EDDng h\xE0ng h\xF3a to\xE0n c\u1EA7u."
|
|
15735
|
+
},
|
|
15736
|
+
redirect: { target: "/comming-soon", permanent: false },
|
|
15737
|
+
components: chrome([
|
|
15738
|
+
{ type: "commodity-information-hero" },
|
|
15739
|
+
{ type: "commodity-information-featured" },
|
|
15740
|
+
{ type: "commodity-article-list" }
|
|
15741
|
+
])
|
|
15742
|
+
}
|
|
15743
|
+
];
|
|
15744
|
+
var wikexCommodityRoutes = wikexCommodityPageTemplates.map(({ route, slug, key }) => ({
|
|
15745
|
+
route,
|
|
15746
|
+
slug,
|
|
15747
|
+
template: key
|
|
15748
|
+
}));
|
|
15749
|
+
|
|
15579
15750
|
// src/index.ts
|
|
15580
15751
|
var minimalUiComponents = [
|
|
15581
15752
|
...minimalUiBlocks,
|