@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.js
CHANGED
|
@@ -3599,48 +3599,48 @@ var dropOut = (0, import_styled_components.keyframes)([
|
|
|
3599
3599
|
`from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-12px);}`
|
|
3600
3600
|
]);
|
|
3601
3601
|
var HeaderShell = import_styled_components.default.header.withConfig({
|
|
3602
|
-
componentId: "sc-
|
|
3602
|
+
componentId: "sc-37b4df5e-0"
|
|
3603
3603
|
})([
|
|
3604
3604
|
`position:sticky;top:0;z-index:100;display:flex;height:64px;padding:12px 20px;align-items:center;justify-content:center;background:`,
|
|
3605
3605
|
`;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%);}`
|
|
3606
3606
|
], ({ theme }) => theme.colors.background.canvas);
|
|
3607
3607
|
var HeaderInner = import_styled_components.default.div.withConfig({
|
|
3608
|
-
componentId: "sc-
|
|
3608
|
+
componentId: "sc-37b4df5e-1"
|
|
3609
3609
|
})([
|
|
3610
3610
|
`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;}`
|
|
3611
3611
|
]);
|
|
3612
3612
|
var BrandGroup = import_styled_components.default.div.withConfig({
|
|
3613
|
-
componentId: "sc-
|
|
3613
|
+
componentId: "sc-37b4df5e-2"
|
|
3614
3614
|
})([
|
|
3615
3615
|
`display:flex;flex:0 0 auto;align-items:center;gap:16px;`
|
|
3616
3616
|
]);
|
|
3617
3617
|
var WikiBrand = (0, import_styled_components.default)(import_link.default).withConfig({
|
|
3618
|
-
componentId: "sc-
|
|
3618
|
+
componentId: "sc-37b4df5e-3"
|
|
3619
3619
|
})([
|
|
3620
3620
|
`display:inline-flex;flex:0 0 auto;align-items:center;`
|
|
3621
3621
|
]);
|
|
3622
3622
|
var WikiLogo = (0, import_styled_components.default)(import_image.default).withConfig({
|
|
3623
|
-
componentId: "sc-
|
|
3623
|
+
componentId: "sc-37b4df5e-4"
|
|
3624
3624
|
})([
|
|
3625
3625
|
`display:block;width:80px;height:auto;@media (max-width:620px){width:84px;}`
|
|
3626
3626
|
]);
|
|
3627
3627
|
var PartnerBrand = import_styled_components.default.a.withConfig({
|
|
3628
|
-
componentId: "sc-
|
|
3628
|
+
componentId: "sc-37b4df5e-5"
|
|
3629
3629
|
})([
|
|
3630
3630
|
`display:inline-flex;align-items:center;gap:7.2px;color:#009ee3;@media (max-width:767px){display:inline-flex;}`
|
|
3631
3631
|
]);
|
|
3632
3632
|
var MxvLogo = (0, import_styled_components.default)(import_image.default).withConfig({
|
|
3633
|
-
componentId: "sc-
|
|
3633
|
+
componentId: "sc-37b4df5e-6"
|
|
3634
3634
|
})([
|
|
3635
3635
|
`display:block;width:95px;height:auto;:root[data-theme="dark"] &{filter:brightness(0) invert(1);}@media (max-width:620px){width:95px;}`
|
|
3636
3636
|
]);
|
|
3637
3637
|
var DesktopNavigation = import_styled_components.default.nav.withConfig({
|
|
3638
|
-
componentId: "sc-
|
|
3638
|
+
componentId: "sc-37b4df5e-7"
|
|
3639
3639
|
})([
|
|
3640
3640
|
`display:flex;align-items:center;gap:16px;@media (max-width:1279px){display:none;}`
|
|
3641
3641
|
]);
|
|
3642
3642
|
var NavigationLink = (0, import_styled_components.default)(import_link.default).withConfig({
|
|
3643
|
-
componentId: "sc-
|
|
3643
|
+
componentId: "sc-37b4df5e-8"
|
|
3644
3644
|
})([
|
|
3645
3645
|
`position:relative;color:`,
|
|
3646
3646
|
`;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;transition:color 160ms ease;&:hover,&:focus-visible{color:`,
|
|
@@ -3648,16 +3648,16 @@ var NavigationLink = (0, import_styled_components.default)(import_link.default).
|
|
|
3648
3648
|
`;}@media (min-width:1280px) and (max-width:1439px){font-size:11px;}`
|
|
3649
3649
|
], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
|
|
3650
3650
|
var ProductsMenuTrigger = import_styled_components.default.button.withConfig({
|
|
3651
|
-
componentId: "sc-
|
|
3651
|
+
componentId: "sc-37b4df5e-9"
|
|
3652
3652
|
})([
|
|
3653
3653
|
`display:inline-flex;align-items:center;gap:4px;padding:0;border:0;color:`,
|
|
3654
3654
|
`;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:`,
|
|
3655
|
-
`;}&:focus-visible{outline:none;}
|
|
3655
|
+
`;}&: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;}}`
|
|
3656
3656
|
], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.accent.primary);
|
|
3657
3657
|
var ProductsMenuContent = (0, import_styled_components.default)(import_radix_ui.DropdownMenu.Content).withConfig({
|
|
3658
|
-
componentId: "sc-
|
|
3658
|
+
componentId: "sc-37b4df5e-10"
|
|
3659
3659
|
})([
|
|
3660
|
-
`z-index:300;width:
|
|
3660
|
+
`z-index:300;width:206px;max-width:var(--radix-dropdown-menu-content-available-width);padding:8px;border:1px solid `,
|
|
3661
3661
|
`;border-radius:8px;color:`,
|
|
3662
3662
|
`;background:`,
|
|
3663
3663
|
`;box-shadow:0 4px 8px `,
|
|
@@ -3665,42 +3665,42 @@ var ProductsMenuContent = (0, import_styled_components.default)(import_radix_ui.
|
|
|
3665
3665
|
`;}`
|
|
3666
3666
|
], ({ 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);
|
|
3667
3667
|
var ProductsMenuItem = (0, import_styled_components.default)(import_radix_ui.DropdownMenu.Item).withConfig({
|
|
3668
|
-
componentId: "sc-
|
|
3668
|
+
componentId: "sc-37b4df5e-11"
|
|
3669
3669
|
})([
|
|
3670
|
-
`display:flex;height:
|
|
3670
|
+
`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:`,
|
|
3671
3671
|
`;background:transparent;outline:none;}`
|
|
3672
3672
|
], ({ theme }) => theme.colors.accent.primary);
|
|
3673
3673
|
var MobileNavigation2 = import_styled_components.default.div.withConfig({
|
|
3674
|
-
componentId: "sc-
|
|
3674
|
+
componentId: "sc-37b4df5e-12"
|
|
3675
3675
|
})([
|
|
3676
3676
|
`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;}`
|
|
3677
3677
|
]);
|
|
3678
3678
|
var MobileThemeToggle = import_styled_components.default.div.withConfig({
|
|
3679
|
-
componentId: "sc-
|
|
3679
|
+
componentId: "sc-37b4df5e-13"
|
|
3680
3680
|
})([
|
|
3681
3681
|
`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;}}}`
|
|
3682
3682
|
]);
|
|
3683
3683
|
var MobileLanguageToggle = import_styled_components.default.div.withConfig({
|
|
3684
|
-
componentId: "sc-
|
|
3684
|
+
componentId: "sc-37b4df5e-14"
|
|
3685
3685
|
})([
|
|
3686
3686
|
`display:none;align-items:center;@media (max-width:767px){display:flex;}`
|
|
3687
3687
|
]);
|
|
3688
3688
|
var MobileMenuTrigger = import_styled_components.default.button.withConfig({
|
|
3689
|
-
componentId: "sc-
|
|
3689
|
+
componentId: "sc-37b4df5e-15"
|
|
3690
3690
|
})([
|
|
3691
3691
|
`display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:0;border-radius:9999px;color:`,
|
|
3692
3692
|
`;background:transparent;cursor:pointer;transition:background-color 160ms ease;&:hover,&[data-state="open"]{background:`,
|
|
3693
3693
|
`;}@media (max-width:620px){width:24px;height:24px;border-radius:4px;svg{flex-shrink:0;}}`
|
|
3694
3694
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
|
|
3695
3695
|
var MobileDrawerOverlay = (0, import_styled_components.default)(import_radix_ui.Dialog.Overlay).withConfig({
|
|
3696
|
-
componentId: "sc-
|
|
3696
|
+
componentId: "sc-37b4df5e-16"
|
|
3697
3697
|
})([
|
|
3698
3698
|
`position:fixed;z-index:200;inset:0;background:rgb(0 0 0 / 48%);backdrop-filter:blur(2px);&[data-state="open"]{animation:`,
|
|
3699
3699
|
` 220ms ease-out;}&[data-state="closed"]{animation:`,
|
|
3700
3700
|
` 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);}`
|
|
3701
3701
|
], fadeIn, fadeOut);
|
|
3702
3702
|
var MobileDrawerContent = (0, import_styled_components.default)(import_radix_ui.Dialog.Content).withConfig({
|
|
3703
|
-
componentId: "sc-
|
|
3703
|
+
componentId: "sc-37b4df5e-17"
|
|
3704
3704
|
})([
|
|
3705
3705
|
`position:fixed;z-index:201;top:0;right:0;width:320px;max-width:calc(100% - 24px);height:100vh;padding:20px;overflow-y:auto;color:`,
|
|
3706
3706
|
`;background:`,
|
|
@@ -3711,29 +3711,29 @@ var MobileDrawerContent = (0, import_styled_components.default)(import_radix_ui.
|
|
|
3711
3711
|
` 180ms ease-in;}}`
|
|
3712
3712
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.canvas, slideIn, slideOut, dropIn, dropOut);
|
|
3713
3713
|
var MobileDrawerHeader = import_styled_components.default.div.withConfig({
|
|
3714
|
-
componentId: "sc-
|
|
3714
|
+
componentId: "sc-37b4df5e-18"
|
|
3715
3715
|
})([
|
|
3716
3716
|
`display:flex;min-height:44px;margin-bottom:24px;align-items:center;justify-content:space-between;gap:16px;@media (max-width:767px){display:none;}`
|
|
3717
3717
|
]);
|
|
3718
3718
|
var MobileDrawerTitle = (0, import_styled_components.default)(import_radix_ui.Dialog.Title).withConfig({
|
|
3719
|
-
componentId: "sc-
|
|
3719
|
+
componentId: "sc-37b4df5e-19"
|
|
3720
3720
|
})([
|
|
3721
3721
|
`margin:0;font-size:20px;font-weight:700;line-height:28px;`
|
|
3722
3722
|
]);
|
|
3723
3723
|
var MobileDrawerClose = (0, import_styled_components.default)(import_radix_ui.Dialog.Close).withConfig({
|
|
3724
|
-
componentId: "sc-
|
|
3724
|
+
componentId: "sc-37b4df5e-20"
|
|
3725
3725
|
})([
|
|
3726
3726
|
`display:inline-flex;width:40px;height:40px;flex:0 0 40px;align-items:center;justify-content:center;border:0;border-radius:50%;color:`,
|
|
3727
3727
|
`;background:transparent;cursor:pointer;&:hover{background:`,
|
|
3728
3728
|
`;}`
|
|
3729
3729
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
|
|
3730
3730
|
var MobileDrawerActions = import_styled_components.default.div.withConfig({
|
|
3731
|
-
componentId: "sc-
|
|
3731
|
+
componentId: "sc-37b4df5e-21"
|
|
3732
3732
|
})([
|
|
3733
3733
|
`display:none;@media (max-width:767px){display:grid;width:100%;margin-bottom:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}`
|
|
3734
3734
|
]);
|
|
3735
3735
|
var MobileMenuPanel = import_styled_components.default.nav.withConfig({
|
|
3736
|
-
componentId: "sc-
|
|
3736
|
+
componentId: "sc-37b4df5e-22"
|
|
3737
3737
|
})([
|
|
3738
3738
|
`display:flex;flex-direction:column;gap:6px;a,button{width:100%;border:0;display:flex;border-radius:8px;padding:14px 12px;color:`,
|
|
3739
3739
|
`;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:`,
|
|
@@ -3742,72 +3742,72 @@ var MobileMenuPanel = import_styled_components.default.nav.withConfig({
|
|
|
3742
3742
|
`;}.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;}}`
|
|
3743
3743
|
], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary);
|
|
3744
3744
|
var RightActions = import_styled_components.default.div.withConfig({
|
|
3745
|
-
componentId: "sc-
|
|
3745
|
+
componentId: "sc-37b4df5e-23"
|
|
3746
3746
|
})([
|
|
3747
3747
|
`display:flex;margin-left:auto;align-items:center;gap:12px;& > div{display:flex;align-items:center;gap:8px;}@media (max-width:1279px){display:none;}`
|
|
3748
3748
|
]);
|
|
3749
3749
|
var IconButton2 = import_styled_components.default.button.withConfig({
|
|
3750
|
-
componentId: "sc-
|
|
3750
|
+
componentId: "sc-37b4df5e-24"
|
|
3751
3751
|
})([
|
|
3752
3752
|
`display:inline-flex;width:36px;height:36px;flex:0 0 auto;align-items:center;justify-content:center;border:0;border-radius:8px;color:`,
|
|
3753
3753
|
`;background:transparent;cursor:pointer;transition:background-color 160ms ease;svg{width:24px;height:24px;}&:hover{background:`,
|
|
3754
3754
|
`;}@media (max-width:480px){display:none;}`
|
|
3755
3755
|
], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
|
|
3756
3756
|
var LanguageTrigger = (0, import_styled_components.default)(IconButton2).withConfig({
|
|
3757
|
-
componentId: "sc-
|
|
3757
|
+
componentId: "sc-37b4df5e-25"
|
|
3758
3758
|
})([
|
|
3759
3759
|
`&[data-state="open"]{color:#f9bb3a;background:`,
|
|
3760
3760
|
`;}@media (max-width:767px){display:inline-flex;}@media (max-width:620px){border-radius:4px;svg{width:20px;height:20px;flex-shrink:0;}}`
|
|
3761
3761
|
], ({ theme }) => theme.colors.background.hover);
|
|
3762
3762
|
var LanguageMenuContent = (0, import_styled_components.default)(import_radix_ui.DropdownMenu.Content).withConfig({
|
|
3763
|
-
componentId: "sc-
|
|
3763
|
+
componentId: "sc-37b4df5e-26"
|
|
3764
3764
|
})([
|
|
3765
3765
|
`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:`,
|
|
3766
3766
|
` 140ms ease-out;}&[data-state="closed"]{animation:`,
|
|
3767
3767
|
` 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;}`
|
|
3768
3768
|
], fadeIn, fadeOut);
|
|
3769
3769
|
var LanguageMenuItem = (0, import_styled_components.default)(import_radix_ui.DropdownMenu.RadioItem).withConfig({
|
|
3770
|
-
componentId: "sc-
|
|
3770
|
+
componentId: "sc-37b4df5e-27"
|
|
3771
3771
|
})([
|
|
3772
3772
|
`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;}`,
|
|
3773
3773
|
`[data-compact="true"] &{height:40px;padding:10px 6px;font-size:14px;line-height:18px;}`
|
|
3774
3774
|
], LanguageMenuContent);
|
|
3775
3775
|
var LanguageFlag = import_styled_components.default.span.withConfig({
|
|
3776
|
-
componentId: "sc-
|
|
3776
|
+
componentId: "sc-37b4df5e-28"
|
|
3777
3777
|
})([
|
|
3778
3778
|
`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;}`
|
|
3779
3779
|
]);
|
|
3780
3780
|
var LanguageItemIndicator = (0, import_styled_components.default)(import_radix_ui.DropdownMenu.ItemIndicator).withConfig({
|
|
3781
|
-
componentId: "sc-
|
|
3781
|
+
componentId: "sc-37b4df5e-29"
|
|
3782
3782
|
})([
|
|
3783
3783
|
`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;}`,
|
|
3784
3784
|
`[data-compact="true"] &,`,
|
|
3785
3785
|
`[data-compact="true"] & img{width:16px;height:16px;flex-basis:16px;}`
|
|
3786
3786
|
], LanguageMenuContent, LanguageMenuContent);
|
|
3787
3787
|
var ActionDivider = import_styled_components.default.span.withConfig({
|
|
3788
|
-
componentId: "sc-
|
|
3788
|
+
componentId: "sc-37b4df5e-30"
|
|
3789
3789
|
})([
|
|
3790
3790
|
`width:1px;height:16px;background:`,
|
|
3791
3791
|
`;@media (max-width:608px){display:none;}`
|
|
3792
3792
|
], ({ theme }) => theme.colors.border.line);
|
|
3793
3793
|
var LoginLink = import_styled_components.default.button.withConfig({
|
|
3794
|
-
componentId: "sc-
|
|
3794
|
+
componentId: "sc-37b4df5e-31"
|
|
3795
3795
|
})([
|
|
3796
3796
|
`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:`,
|
|
3797
3797
|
`;}&:disabled{cursor:not-allowed;opacity:0.55;}@media (max-width:608px){display:none;}`
|
|
3798
3798
|
], ({ theme }) => theme.colors.background.hover);
|
|
3799
3799
|
var OpenAccountButton = (0, import_styled_components.default)(Button_default).withConfig({
|
|
3800
|
-
componentId: "sc-
|
|
3800
|
+
componentId: "sc-37b4df5e-32"
|
|
3801
3801
|
})([
|
|
3802
3802
|
`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;}`
|
|
3803
3803
|
]);
|
|
3804
3804
|
var MobileDrawerLoginButton = (0, import_styled_components.default)(LoginLink).withConfig({
|
|
3805
|
-
componentId: "sc-
|
|
3805
|
+
componentId: "sc-37b4df5e-33"
|
|
3806
3806
|
})([
|
|
3807
3807
|
`display:none;@media (max-width:767px){display:inline-flex;width:100%;min-width:0;padding-inline:12px;&:disabled{opacity:1;}}`
|
|
3808
3808
|
]);
|
|
3809
3809
|
var MobileDrawerOpenAccountButton = (0, import_styled_components.default)(OpenAccountButton).withConfig({
|
|
3810
|
-
componentId: "sc-
|
|
3810
|
+
componentId: "sc-37b4df5e-34"
|
|
3811
3811
|
})([
|
|
3812
3812
|
`display:none;@media (max-width:767px){display:flex;width:100%;min-width:0;}`
|
|
3813
3813
|
]);
|
|
@@ -6115,25 +6115,28 @@ function Table({
|
|
|
6115
6115
|
// src/commodity-original/components/Pagination/index.tsx
|
|
6116
6116
|
var import_react_i18next3 = require("react-i18next");
|
|
6117
6117
|
|
|
6118
|
+
// src/wikex/assets/products/chevron-right.svg
|
|
6119
|
+
var chevron_right_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDE0IDE0IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNNS4yNSAzLjVMOC43NSA3TDUuMjUgMTAuNSIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS4xNjY2NyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=";
|
|
6120
|
+
|
|
6118
6121
|
// src/commodity-original/components/Pagination/style.ts
|
|
6119
|
-
var import_styled_components7 =
|
|
6120
|
-
var PaginationNav = import_styled_components7.
|
|
6121
|
-
componentId: "sc-
|
|
6122
|
+
var import_styled_components7 = require("styled-components");
|
|
6123
|
+
var PaginationNav = import_styled_components7.styled.nav.withConfig({
|
|
6124
|
+
componentId: "sc-522a1750-0"
|
|
6122
6125
|
})([
|
|
6123
6126
|
`display:flex;justify-content:center;`
|
|
6124
6127
|
]);
|
|
6125
|
-
var PaginationList = import_styled_components7.
|
|
6126
|
-
componentId: "sc-
|
|
6128
|
+
var PaginationList = import_styled_components7.styled.ul.withConfig({
|
|
6129
|
+
componentId: "sc-522a1750-1"
|
|
6127
6130
|
})([
|
|
6128
6131
|
`display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`
|
|
6129
6132
|
]);
|
|
6130
|
-
var PaginationItem = import_styled_components7.
|
|
6131
|
-
componentId: "sc-
|
|
6133
|
+
var PaginationItem = import_styled_components7.styled.li.withConfig({
|
|
6134
|
+
componentId: "sc-522a1750-2"
|
|
6132
6135
|
})([
|
|
6133
6136
|
`display:flex;`
|
|
6134
6137
|
]);
|
|
6135
|
-
var PaginationButton = import_styled_components7.
|
|
6136
|
-
componentId: "sc-
|
|
6138
|
+
var PaginationButton = import_styled_components7.styled.button.withConfig({
|
|
6139
|
+
componentId: "sc-522a1750-3"
|
|
6137
6140
|
})([
|
|
6138
6141
|
`display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
|
|
6139
6142
|
`;border-radius:4px;padding:4px;color:`,
|
|
@@ -6147,11 +6150,13 @@ var PaginationButton = import_styled_components7.default.button.withConfig({
|
|
|
6147
6150
|
`;}&:disabled{cursor:not-allowed;}&:focus-visible{outline:2px solid `,
|
|
6148
6151
|
`;outline-offset:2px;}`
|
|
6149
6152
|
], ({ 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);
|
|
6150
|
-
var PaginationArrow = import_styled_components7.
|
|
6151
|
-
componentId: "sc-
|
|
6153
|
+
var PaginationArrow = import_styled_components7.styled.span.withConfig({
|
|
6154
|
+
componentId: "sc-522a1750-4"
|
|
6152
6155
|
})([
|
|
6153
|
-
`width:16px;height:16px;background:currentColor;mask:url("
|
|
6154
|
-
|
|
6156
|
+
`width:16px;height:16px;background:currentColor;mask:url("`,
|
|
6157
|
+
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
6158
|
+
`") center / contain no-repeat;&[data-direction="previous"]{transform:scaleX(-1);}`
|
|
6159
|
+
], chevron_right_default, chevron_right_default);
|
|
6155
6160
|
|
|
6156
6161
|
// src/commodity-original/components/Pagination/index.tsx
|
|
6157
6162
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
@@ -6181,6 +6186,7 @@ function Pagination2({
|
|
|
6181
6186
|
onPageChange,
|
|
6182
6187
|
siblingCount = 1,
|
|
6183
6188
|
ariaLabel,
|
|
6189
|
+
labels,
|
|
6184
6190
|
className
|
|
6185
6191
|
}) {
|
|
6186
6192
|
const { t } = (0, import_react_i18next3.useTranslation)();
|
|
@@ -6198,7 +6204,7 @@ function Pagination2({
|
|
|
6198
6204
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
6199
6205
|
PaginationButton,
|
|
6200
6206
|
{
|
|
6201
|
-
"aria-label": t("pagination.previous"),
|
|
6207
|
+
"aria-label": labels?.previous ?? t("pagination.previous"),
|
|
6202
6208
|
"data-control": "previous",
|
|
6203
6209
|
disabled: !hasPreviousPage,
|
|
6204
6210
|
onClick: () => onPageChange(currentPage - 1),
|
|
@@ -6210,7 +6216,7 @@ function Pagination2({
|
|
|
6210
6216
|
PaginationButton,
|
|
6211
6217
|
{
|
|
6212
6218
|
"aria-current": item === currentPage ? "page" : void 0,
|
|
6213
|
-
"aria-label": item === currentPage ? t("pagination.current", { page: item }) : t("pagination.page", { page: item }),
|
|
6219
|
+
"aria-label": item === currentPage ? labels?.current(item) ?? t("pagination.current", { page: item }) : labels?.page(item) ?? t("pagination.page", { page: item }),
|
|
6214
6220
|
"data-active": item === currentPage || void 0,
|
|
6215
6221
|
onClick: () => onPageChange(item),
|
|
6216
6222
|
type: "button",
|
|
@@ -6220,7 +6226,7 @@ function Pagination2({
|
|
|
6220
6226
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
6221
6227
|
PaginationButton,
|
|
6222
6228
|
{
|
|
6223
|
-
"aria-label": t("pagination.next"),
|
|
6229
|
+
"aria-label": labels?.next ?? t("pagination.next"),
|
|
6224
6230
|
"data-control": "next",
|
|
6225
6231
|
disabled: !hasNextPage,
|
|
6226
6232
|
onClick: () => onPageChange(currentPage + 1),
|
|
@@ -8669,7 +8675,7 @@ var import_react18 = require("react");
|
|
|
8669
8675
|
var import_link3 = __toESM(require("next/link.js"));
|
|
8670
8676
|
|
|
8671
8677
|
// src/commodity-original/components/Breadcrumb/style.ts
|
|
8672
|
-
var import_styled_components20 =
|
|
8678
|
+
var import_styled_components20 = require("styled-components");
|
|
8673
8679
|
var breadcrumbText = `
|
|
8674
8680
|
font-family: var(--font-manrope), Arial, Helvetica, sans-serif;
|
|
8675
8681
|
font-size: 12px;
|
|
@@ -8681,42 +8687,44 @@ var breadcrumbText = `
|
|
|
8681
8687
|
line-height: 14px;
|
|
8682
8688
|
}
|
|
8683
8689
|
`;
|
|
8684
|
-
var BreadcrumbNav = import_styled_components20.
|
|
8685
|
-
componentId: "sc-
|
|
8690
|
+
var BreadcrumbNav = import_styled_components20.styled.nav.withConfig({
|
|
8691
|
+
componentId: "sc-9c96c0b1-0"
|
|
8686
8692
|
})([
|
|
8687
8693
|
`display:flex;max-width:100%;align-items:center;@media (max-width:767px){overflow-x:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}}`
|
|
8688
8694
|
]);
|
|
8689
|
-
var BreadcrumbList = import_styled_components20.
|
|
8690
|
-
componentId: "sc-
|
|
8695
|
+
var BreadcrumbList = import_styled_components20.styled.ol.withConfig({
|
|
8696
|
+
componentId: "sc-9c96c0b1-1"
|
|
8691
8697
|
})([
|
|
8692
8698
|
`display:flex;margin:0;padding:0;align-items:center;gap:4px;list-style:none;`
|
|
8693
8699
|
]);
|
|
8694
|
-
var BreadcrumbItem = import_styled_components20.
|
|
8695
|
-
componentId: "sc-
|
|
8700
|
+
var BreadcrumbItem = import_styled_components20.styled.li.withConfig({
|
|
8701
|
+
componentId: "sc-9c96c0b1-2"
|
|
8696
8702
|
})([
|
|
8697
8703
|
`display:flex;align-items:center;gap:4px;`
|
|
8698
8704
|
]);
|
|
8699
|
-
var BreadcrumbLink = import_styled_components20.
|
|
8700
|
-
componentId: "sc-
|
|
8705
|
+
var BreadcrumbLink = import_styled_components20.styled.a.withConfig({
|
|
8706
|
+
componentId: "sc-9c96c0b1-3"
|
|
8701
8707
|
})([
|
|
8702
8708
|
``,
|
|
8703
8709
|
` color:`,
|
|
8704
8710
|
`;&:hover,&:focus-visible{color:`,
|
|
8705
8711
|
`;}&:focus-visible{outline:2px solid #f9bb3a;outline-offset:2px;}`
|
|
8706
8712
|
], breadcrumbText, ({ theme }) => theme.colors.text.placeholder, ({ theme }) => theme.colors.text.primary);
|
|
8707
|
-
var BreadcrumbCurrent = import_styled_components20.
|
|
8708
|
-
componentId: "sc-
|
|
8713
|
+
var BreadcrumbCurrent = import_styled_components20.styled.span.withConfig({
|
|
8714
|
+
componentId: "sc-9c96c0b1-4"
|
|
8709
8715
|
})([
|
|
8710
8716
|
``,
|
|
8711
8717
|
` color:`,
|
|
8712
8718
|
`;`
|
|
8713
8719
|
], breadcrumbText, ({ theme }) => theme.colors.text.primary);
|
|
8714
|
-
var BreadcrumbSeparator = import_styled_components20.
|
|
8715
|
-
componentId: "sc-
|
|
8720
|
+
var BreadcrumbSeparator = import_styled_components20.styled.span.withConfig({
|
|
8721
|
+
componentId: "sc-9c96c0b1-5"
|
|
8716
8722
|
})([
|
|
8717
8723
|
`display:inline-flex;width:14px;height:14px;align-items:center;justify-content:center;color:`,
|
|
8718
|
-
`;background:currentColor;mask:url("
|
|
8719
|
-
|
|
8724
|
+
`;background:currentColor;mask:url("`,
|
|
8725
|
+
`") center / contain no-repeat;-webkit-mask:url("`,
|
|
8726
|
+
`") center / contain no-repeat;`
|
|
8727
|
+
], ({ theme }) => theme.colors.text.placeholder, chevron_right_default, chevron_right_default);
|
|
8720
8728
|
|
|
8721
8729
|
// src/commodity-original/components/Breadcrumb/index.tsx
|
|
8722
8730
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
@@ -8841,6 +8849,12 @@ var commodityGroups = [
|
|
|
8841
8849
|
];
|
|
8842
8850
|
var faqCount = 8;
|
|
8843
8851
|
|
|
8852
|
+
// src/wikex/assets/products/related-products-arrow.svg
|
|
8853
|
+
var related_products_arrow_default = "data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGlkPSJJY29uIC8gYXJyb3ciPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNMTIuNjY2NyA4TDMuMzMzMzMgOE04IDEyLjY2NjdMMTIuNjY2NyA4TDggMy4zMzMzMyIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L3N2Zz4K";
|
|
8854
|
+
|
|
8855
|
+
// src/wikex/assets/products/product-card-arrow.svg
|
|
8856
|
+
var product_card_arrow_default = "data:image/svg+xml;base64,PHN2ZyBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiBvdmVyZmxvdz0idmlzaWJsZSIgc3R5bGU9ImRpc3BsYXk6IGJsb2NrOyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGlkPSJWZWN0b3IiIGQ9Ik0xNSA4TDEgOE04IDE1TDE1IDhMOCAxIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";
|
|
8857
|
+
|
|
8844
8858
|
// src/commodity-original/components/ProductCard/style.ts
|
|
8845
8859
|
var import_link4 = __toESM(require("next/link.js"));
|
|
8846
8860
|
var import_image6 = __toESM(require("next/image.js"));
|
|
@@ -8850,53 +8864,57 @@ var cardSurface = (0, import_styled_components21.css)([
|
|
|
8850
8864
|
`;transition:transform 160ms ease;&:hover{transform:translateY(-2px);}@media (max-width:599px){max-width:100%;}`
|
|
8851
8865
|
], ({ theme }) => theme.colors.text.primary);
|
|
8852
8866
|
var ProductCardArticle = import_styled_components21.styled.article.withConfig({
|
|
8853
|
-
componentId: "sc-
|
|
8867
|
+
componentId: "sc-232625b5-0"
|
|
8854
8868
|
})([
|
|
8855
8869
|
``,
|
|
8856
8870
|
``
|
|
8857
8871
|
], cardSurface);
|
|
8858
8872
|
var ProductCardLink = (0, import_styled_components21.styled)(import_link4.default).withConfig({
|
|
8859
|
-
componentId: "sc-
|
|
8873
|
+
componentId: "sc-232625b5-1"
|
|
8860
8874
|
})([
|
|
8861
8875
|
``,
|
|
8862
8876
|
` text-decoration:none;&:focus-visible{outline:2px solid `,
|
|
8863
8877
|
`;outline-offset:3px;}`
|
|
8864
8878
|
], cardSurface, ({ theme }) => theme.colors.accent.primary);
|
|
8865
8879
|
var ProductCardImagePanel = import_styled_components21.styled.div.withConfig({
|
|
8866
|
-
componentId: "sc-
|
|
8880
|
+
componentId: "sc-232625b5-2"
|
|
8867
8881
|
})([
|
|
8868
8882
|
`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%;}}`
|
|
8869
8883
|
]);
|
|
8870
8884
|
var ProductCardImage = (0, import_styled_components21.styled)(import_image6.default).withConfig({
|
|
8871
|
-
componentId: "sc-
|
|
8885
|
+
componentId: "sc-232625b5-3"
|
|
8872
8886
|
})([
|
|
8873
8887
|
`z-index:2;object-fit:cover;pointer-events:none;`
|
|
8874
8888
|
]);
|
|
8875
8889
|
var ProductCardCopy = import_styled_components21.styled.div.withConfig({
|
|
8876
|
-
componentId: "sc-
|
|
8890
|
+
componentId: "sc-232625b5-4"
|
|
8877
8891
|
})([
|
|
8878
8892
|
`display:flex;width:100%;flex:1 0 auto;flex-direction:column;gap:4px;padding:12px 16px 24px;border-radius:0 0 8px 8px;background:`,
|
|
8879
8893
|
`;box-shadow:-4px 4px 10px rgb(0 0 0 / 10%);@media (max-width:599px){padding:12px 16px 24px;align-items:center;z-index:2;}`
|
|
8880
8894
|
], ({ theme }) => theme.colors.background.card);
|
|
8881
8895
|
var ProductCardTitleRow = import_styled_components21.styled.div.withConfig({
|
|
8882
|
-
componentId: "sc-
|
|
8896
|
+
componentId: "sc-232625b5-5"
|
|
8883
8897
|
})([
|
|
8884
8898
|
`display:flex;width:100%;align-items:center;gap:8px;`
|
|
8885
8899
|
]);
|
|
8886
8900
|
var ProductCardTitle = import_styled_components21.styled.h3.withConfig({
|
|
8887
|
-
componentId: "sc-
|
|
8901
|
+
componentId: "sc-232625b5-6"
|
|
8888
8902
|
})([
|
|
8889
8903
|
`flex:1 1 0;min-width:0;margin:0;overflow:hidden;color:`,
|
|
8890
8904
|
`;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;}`
|
|
8891
8905
|
], ({ theme }) => theme.colors.text.primary);
|
|
8892
8906
|
var ProductCardArrow = import_styled_components21.styled.span.withConfig({
|
|
8893
|
-
componentId: "sc-
|
|
8907
|
+
componentId: "sc-232625b5-7"
|
|
8894
8908
|
})([
|
|
8895
8909
|
`width:24px;height:24px;flex:0 0 24px;color:`,
|
|
8896
|
-
`;background:currentColor;mask:url("
|
|
8897
|
-
|
|
8910
|
+
`;background:currentColor;mask:url("`,
|
|
8911
|
+
`") center / 16px 16px no-repeat;-webkit-mask:url("`,
|
|
8912
|
+
`") center / 16px 16px no-repeat;@media (max-width:599px){width:18px;height:18px;flex-basis:18px;mask-image:url("`,
|
|
8913
|
+
`");mask-size:contain;-webkit-mask-image:url("`,
|
|
8914
|
+
`");-webkit-mask-size:contain;}`
|
|
8915
|
+
], ({ theme }) => theme.colors.accent.primary, product_card_arrow_default, product_card_arrow_default, related_products_arrow_default, related_products_arrow_default);
|
|
8898
8916
|
var ProductCardDescription = import_styled_components21.styled.p.withConfig({
|
|
8899
|
-
componentId: "sc-
|
|
8917
|
+
componentId: "sc-232625b5-8"
|
|
8900
8918
|
})([
|
|
8901
8919
|
`display:-webkit-box;width:100%;overflow:hidden;margin:0;color:`,
|
|
8902
8920
|
`;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;}`
|
|
@@ -8908,6 +8926,7 @@ function ProductCardContent({
|
|
|
8908
8926
|
description,
|
|
8909
8927
|
image: image2,
|
|
8910
8928
|
imageAlt = "",
|
|
8929
|
+
imageFit = "cover",
|
|
8911
8930
|
title
|
|
8912
8931
|
}) {
|
|
8913
8932
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
@@ -8917,7 +8936,8 @@ function ProductCardContent({
|
|
|
8917
8936
|
alt: imageAlt,
|
|
8918
8937
|
fill: true,
|
|
8919
8938
|
sizes: "(max-width: 767px) calc(100vw - 48px), 329px",
|
|
8920
|
-
src: image2
|
|
8939
|
+
src: image2,
|
|
8940
|
+
style: imageFit === "contain" ? { objectFit: "contain", padding: 24 } : void 0
|
|
8921
8941
|
}
|
|
8922
8942
|
) }),
|
|
8923
8943
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(ProductCardCopy, { children: [
|
|
@@ -8935,6 +8955,7 @@ function ProductCard({
|
|
|
8935
8955
|
href,
|
|
8936
8956
|
image: image2,
|
|
8937
8957
|
imageAlt,
|
|
8958
|
+
imageFit,
|
|
8938
8959
|
title
|
|
8939
8960
|
}) {
|
|
8940
8961
|
const content = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
@@ -8943,6 +8964,7 @@ function ProductCard({
|
|
|
8943
8964
|
description,
|
|
8944
8965
|
image: image2,
|
|
8945
8966
|
imageAlt,
|
|
8967
|
+
imageFit,
|
|
8946
8968
|
title
|
|
8947
8969
|
}
|
|
8948
8970
|
);
|
|
@@ -10676,9 +10698,21 @@ function ThemeToggle({ variant = "floating" }) {
|
|
|
10676
10698
|
var import_react_i18next16 = require("react-i18next");
|
|
10677
10699
|
|
|
10678
10700
|
// src/commodity-original/components/Header/data.ts
|
|
10701
|
+
var productNavigationItems = [
|
|
10702
|
+
{ labelKey: "landing.footer.metal", href: "/products/", category: "metal" },
|
|
10703
|
+
{ labelKey: "landing.footer.agriculture", href: "/products/", category: "agriculture" },
|
|
10704
|
+
{ labelKey: "landing.footer.industrial", href: "/products/", category: "industrial" }
|
|
10705
|
+
];
|
|
10706
|
+
function productCategoryHref(href, category) {
|
|
10707
|
+
const [base, hash] = href.split("#");
|
|
10708
|
+
const [pathname, query] = base.split("?");
|
|
10709
|
+
const params = new URLSearchParams(query);
|
|
10710
|
+
params.set("category", category);
|
|
10711
|
+
return `${pathname}?${params}${hash ? `#${hash}` : ""}`;
|
|
10712
|
+
}
|
|
10679
10713
|
var navigationItems2 = [
|
|
10680
10714
|
{ labelKey: "header.nav.about", href: "/about-us/" },
|
|
10681
|
-
{ labelKey: "header.nav.product",
|
|
10715
|
+
{ labelKey: "header.nav.product", children: productNavigationItems },
|
|
10682
10716
|
{ labelKey: "header.nav.fees", href: "/bang-phi-ky-quy/" },
|
|
10683
10717
|
{ labelKey: "header.nav.wikexNews", href: "/thong-tin-wikex/" },
|
|
10684
10718
|
{ labelKey: "header.nav.mxvNews", href: "/noti-mxv/" },
|
|
@@ -10790,8 +10824,9 @@ function LanguageSwitcher({
|
|
|
10790
10824
|
}
|
|
10791
10825
|
function Header() {
|
|
10792
10826
|
const pathname = (0, import_navigation2.usePathname)().replace(/\/+$/, "") || "/";
|
|
10827
|
+
const selectedCategory = (0, import_navigation2.useSearchParams)().get("category");
|
|
10793
10828
|
const isRouteActive = (href) => {
|
|
10794
|
-
const route = href.replace(/\/+$/, "") || "/";
|
|
10829
|
+
const route = href.split(/[?#]/)[0].replace(/\/+$/, "") || "/";
|
|
10795
10830
|
if (route === "/comming-soon") return false;
|
|
10796
10831
|
return pathname === route || pathname.startsWith(`${route}/`);
|
|
10797
10832
|
};
|
|
@@ -10832,7 +10867,7 @@ function Header() {
|
|
|
10832
10867
|
...item,
|
|
10833
10868
|
children: item.children.map((child) => ({
|
|
10834
10869
|
...child,
|
|
10835
|
-
href: navigationUrls[
|
|
10870
|
+
href: productCategoryHref(navigationUrls[item.labelKey] ?? child.href, child.category)
|
|
10836
10871
|
}))
|
|
10837
10872
|
} : {
|
|
10838
10873
|
...item,
|
|
@@ -10918,35 +10953,22 @@ function Header() {
|
|
|
10918
10953
|
open: isDesktopProductsOpen,
|
|
10919
10954
|
onOpenChange: setIsDesktopProductsOpen,
|
|
10920
10955
|
children: [
|
|
10921
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui5.DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.
|
|
10956
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui5.DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
10922
10957
|
ProductsMenuTrigger,
|
|
10923
10958
|
{
|
|
10924
10959
|
type: "button",
|
|
10925
10960
|
"aria-current": isItemActive ? "page" : void 0,
|
|
10926
10961
|
"data-active": isItemActive ? "true" : void 0,
|
|
10927
|
-
children:
|
|
10928
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: t(item.labelKey) }),
|
|
10929
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
10930
|
-
import_react24.MorphIcon,
|
|
10931
|
-
{
|
|
10932
|
-
icon: import_lucide3.ChevronDown,
|
|
10933
|
-
size: 16,
|
|
10934
|
-
strokeWidth: 2,
|
|
10935
|
-
spring: "snappy",
|
|
10936
|
-
reducedMotion: "user",
|
|
10937
|
-
"aria-hidden": "true"
|
|
10938
|
-
}
|
|
10939
|
-
)
|
|
10940
|
-
]
|
|
10962
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: t(item.labelKey) })
|
|
10941
10963
|
}
|
|
10942
10964
|
) }),
|
|
10943
10965
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_radix_ui5.DropdownMenu.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
10944
10966
|
ProductsMenuContent,
|
|
10945
10967
|
{
|
|
10946
|
-
align: "
|
|
10968
|
+
align: "center",
|
|
10947
10969
|
sideOffset: 10,
|
|
10948
10970
|
"aria-label": t(item.labelKey),
|
|
10949
|
-
children: item.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ProductsMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_link7.default, { href: child.href, children: t(child.labelKey) }) }, child.labelKey))
|
|
10971
|
+
children: item.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ProductsMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_link7.default, { href: child.href, "aria-current": isItemActive && selectedCategory === child.category ? "page" : void 0, children: t(child.labelKey) }) }, child.labelKey))
|
|
10950
10972
|
}
|
|
10951
10973
|
) })
|
|
10952
10974
|
]
|
|
@@ -11114,6 +11136,7 @@ function Header() {
|
|
|
11114
11136
|
import_link7.default,
|
|
11115
11137
|
{
|
|
11116
11138
|
href: child.href,
|
|
11139
|
+
"aria-current": isItemActive && selectedCategory === child.category ? "page" : void 0,
|
|
11117
11140
|
onClick: () => {
|
|
11118
11141
|
setIsProductsOpen(false);
|
|
11119
11142
|
setIsMenuOpen(false);
|