@enyxs/wikex-components 0.11.50 → 0.11.51

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/dist/index.js CHANGED
@@ -8029,6 +8029,29 @@ function migrateWikexChromeContent(type, content) {
8029
8029
  delete result[key + "Color"];
8030
8030
  delete result[key + "TextLayout"];
8031
8031
  }
8032
+ if (type === "commodity-footer") for (const language of ["vi", "en"]) {
8033
+ const key = `${language}.footer.productLinks`;
8034
+ const items = parseChromeItems(result[key]);
8035
+ if (!items) continue;
8036
+ const categories = {
8037
+ "kim lo\u1EA1i": "metal",
8038
+ "metals": "metal",
8039
+ "metal": "metal",
8040
+ "n\xF4ng s\u1EA3n": "agriculture",
8041
+ "agriculture": "agriculture",
8042
+ "agricultural products": "agriculture",
8043
+ "c\xF4ng nghi\u1EC7p": "industrial",
8044
+ "nguy\xEAn li\u1EC7u c\xF4ng nghi\u1EC7p": "industrial",
8045
+ "industrial": "industrial",
8046
+ "industrial materials": "industrial",
8047
+ "n\u0103ng l\u01B0\u1EE3ng": "energy",
8048
+ "energy": "energy"
8049
+ };
8050
+ result[key] = JSON.stringify(items.map((item) => {
8051
+ const category = categories[item.label?.trim().toLocaleLowerCase("vi")];
8052
+ return category && /^\/(?:products|san-pham)\/?$/.test(item.href ?? "") ? { ...item, href: `${item.href.replace(/\/$/, "")}/?category=${category}` } : item;
8053
+ }));
8054
+ }
8032
8055
  return result;
8033
8056
  }
8034
8057
  function flattenChromeLists(type, content, language) {
@@ -8216,7 +8239,7 @@ function ExactTextProvider({ content, fields: fields2, children }) {
8216
8239
  }, [content, fields2]);
8217
8240
  return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ExactTextContext.Provider, { value: entries, children });
8218
8241
  }
8219
- function ExactText({ cmsAs, children, style, cmsDefaultRichText, cmsField, ...props }) {
8242
+ function ExactText({ cmsAs, cmsHeading, children, style, cmsDefaultRichText, cmsField, ...props }) {
8220
8243
  const entries = (0, import_react18.useContext)(ExactTextContext);
8221
8244
  const content = useCmsElementContent();
8222
8245
  const editing = useCmsElementEditing();
@@ -8227,10 +8250,10 @@ function ExactText({ cmsAs, children, style, cmsDefaultRichText, cmsField, ...pr
8227
8250
  const hidden2 = useCmsElementHidden(entry?.field);
8228
8251
  const metadata = parseCmsTextLayout(entry?.layout);
8229
8252
  const legacyList = metadata.blockType === "ul" || metadata.blockType === "ol" ? metadata.blockType : void 0;
8230
- const listType = metadata.listType ?? legacyList;
8231
- const block = legacyList ? void 0 : metadata.blockType;
8253
+ const listType = cmsHeading ? void 0 : metadata.listType ?? legacyList;
8254
+ const block = cmsHeading ?? (legacyList ? void 0 : metadata.blockType);
8232
8255
  const listItem = cmsAs === "li" && Boolean(block);
8233
- const templateBlock = useCmsTextBlock(block);
8256
+ const templateBlock = useCmsTextBlock(cmsHeading ? void 0 : block);
8234
8257
  if (hidden2) return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CmsAddedElements, { field: entry?.field });
8235
8258
  const host = block ?? (listType ? "span" : cmsAs);
8236
8259
  const layout = entry ? cmsTextLayoutStyle(entry.layout, Boolean(templateBlock)) : void 0;
@@ -8397,63 +8420,68 @@ var submenuOut = (0, import_styled_components5.keyframes)([
8397
8420
  `from{opacity:1;transform:translateY(0) scale(1);}to{opacity:0;transform:translateY(-4px) scale(0.98);}`
8398
8421
  ]);
8399
8422
  var HeaderShell = import_styled_components5.default.header.withConfig({
8400
- componentId: "sc-4641ea79-0"
8423
+ componentId: "sc-a7662b4d-0"
8401
8424
  })([
8402
8425
  `position:sticky;top:0;z-index:100;display:flex;height:64px;padding:12px 20px;align-items:center;justify-content:center;background:`,
8403
8426
  `;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%);}`
8404
8427
  ], ({ theme }) => theme.colors.background.canvas);
8405
8428
  var HeaderInner = import_styled_components5.default.div.withConfig({
8406
- componentId: "sc-4641ea79-1"
8429
+ componentId: "sc-a7662b4d-1"
8407
8430
  })([
8408
8431
  `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;}`
8409
8432
  ]);
8410
8433
  var BrandGroup = import_styled_components5.default.div.withConfig({
8411
- componentId: "sc-4641ea79-2"
8434
+ componentId: "sc-a7662b4d-2"
8412
8435
  })([
8413
8436
  `display:flex;flex:0 0 auto;align-items:center;gap:16px;`
8414
8437
  ]);
8415
8438
  var WikiBrand = (0, import_styled_components5.default)(import_link.default).withConfig({
8416
- componentId: "sc-4641ea79-3"
8439
+ componentId: "sc-a7662b4d-3"
8417
8440
  })([
8418
8441
  `display:inline-flex;flex:0 0 auto;align-items:center;`
8419
8442
  ]);
8420
8443
  var WikiLogo = (0, import_styled_components5.default)(import_image.default).withConfig({
8421
- componentId: "sc-4641ea79-4"
8444
+ componentId: "sc-a7662b4d-4"
8422
8445
  })([
8423
8446
  `display:block;width:142px;height:auto;@media (max-width:620px){width:84px;}`
8424
8447
  ]);
8425
8448
  var PartnerBrand = import_styled_components5.default.a.withConfig({
8426
- componentId: "sc-4641ea79-5"
8449
+ componentId: "sc-a7662b4d-5"
8427
8450
  })([
8428
8451
  `display:inline-flex;align-items:center;gap:7.2px;color:#009ee3;@media (max-width:767px){display:inline-flex;}`
8429
8452
  ]);
8430
8453
  var MxvLogo = (0, import_styled_components5.default)(import_image.default).withConfig({
8431
- componentId: "sc-4641ea79-6"
8454
+ componentId: "sc-a7662b4d-6"
8432
8455
  })([
8433
8456
  `display:block;width:95px;height:auto;:root[data-theme="dark"] &{filter:brightness(0) invert(1);}@media (max-width:620px){width:95px;}`
8434
8457
  ]);
8435
8458
  var DesktopNavigation = import_styled_components5.default.nav.withConfig({
8436
- componentId: "sc-4641ea79-7"
8459
+ componentId: "sc-a7662b4d-7"
8437
8460
  })([
8438
8461
  `display:flex;align-items:center;gap:16px;@media (max-width:1279px){display:none;}`
8439
8462
  ]);
8440
8463
  var NavigationLink = (0, import_styled_components5.default)(import_link.default).withConfig({
8441
- componentId: "sc-4641ea79-8"
8464
+ componentId: "sc-a7662b4d-8"
8442
8465
  })([
8443
8466
  `position:relative;color:`,
8444
8467
  `;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;transition:color 160ms ease;&:hover,&:focus-visible{color:`,
8445
8468
  `;}&:focus-visible{outline:none;}&[aria-current="page"]{color:`,
8446
8469
  `;}@media (min-width:1280px) and (max-width:1439px){font-size:11px;}`
8447
8470
  ], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.accent.primary);
8471
+ var ProductsMenuGroup = import_styled_components5.default.div.withConfig({
8472
+ componentId: "sc-a7662b4d-9"
8473
+ })([
8474
+ `display:inline-flex;align-items:center;gap:4px;`
8475
+ ]);
8448
8476
  var ProductsMenuTrigger = import_styled_components5.default.button.withConfig({
8449
- componentId: "sc-4641ea79-9"
8477
+ componentId: "sc-a7662b4d-10"
8450
8478
  })([
8451
8479
  `display:inline-flex;align-items:center;gap:4px;padding:0;border:0;color:`,
8452
- `;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:`,
8480
+ `;background:transparent;cursor:pointer;font-family:inherit;font-size:14px;font-weight:700;line-height:18px;white-space:nowrap;min-width:24px;min-height:32px;justify-content:center;&[data-state="open"],&[data-active="true"],&:hover,&:focus-visible{color:`,
8453
8481
  `;}&: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;}}`
8454
8482
  ], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.accent.primary);
8455
8483
  var ProductsMenuContent = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.Content).withConfig({
8456
- componentId: "sc-4641ea79-10"
8484
+ componentId: "sc-a7662b4d-11"
8457
8485
  })([
8458
8486
  `z-index:300;width:206px;max-width:var(--radix-dropdown-menu-content-available-width);padding:8px;border:1px solid `,
8459
8487
  `;border-radius:8px;color:`,
@@ -8465,42 +8493,42 @@ var ProductsMenuContent = (0, import_styled_components5.default)(import_radix_ui
8465
8493
  `;}@media (prefers-reduced-motion:reduce){animation:none !important;}`
8466
8494
  ], ({ theme }) => theme.colors.border.line, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.popup, ({ theme }) => theme.colors.effect.popupShadow, submenuIn, submenuOut, ({ theme }) => theme.colors.border.subtle);
8467
8495
  var ProductsMenuItem = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.Item).withConfig({
8468
- componentId: "sc-4641ea79-11"
8496
+ componentId: "sc-a7662b4d-12"
8469
8497
  })([
8470
8498
  `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:`,
8471
8499
  `;background:transparent;outline:none;}`
8472
8500
  ], ({ theme }) => theme.colors.accent.primary);
8473
8501
  var MobileNavigation2 = import_styled_components5.default.div.withConfig({
8474
- componentId: "sc-4641ea79-12"
8502
+ componentId: "sc-a7662b4d-13"
8475
8503
  })([
8476
8504
  `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;}`
8477
8505
  ]);
8478
8506
  var MobileThemeToggle = import_styled_components5.default.div.withConfig({
8479
- componentId: "sc-4641ea79-13"
8507
+ componentId: "sc-a7662b4d-14"
8480
8508
  })([
8481
8509
  `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;}}}`
8482
8510
  ]);
8483
8511
  var MobileLanguageToggle = import_styled_components5.default.div.withConfig({
8484
- componentId: "sc-4641ea79-14"
8512
+ componentId: "sc-a7662b4d-15"
8485
8513
  })([
8486
8514
  `display:none;align-items:center;@media (max-width:767px){display:flex;}`
8487
8515
  ]);
8488
8516
  var MobileMenuTrigger = import_styled_components5.default.button.withConfig({
8489
- componentId: "sc-4641ea79-15"
8517
+ componentId: "sc-a7662b4d-16"
8490
8518
  })([
8491
8519
  `display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border:0;border-radius:9999px;color:`,
8492
8520
  `;background:transparent;cursor:pointer;transition:background-color 160ms ease;&:hover,&[data-state="open"]{background:`,
8493
8521
  `;}@media (max-width:620px){width:24px;height:24px;border-radius:4px;svg{flex-shrink:0;}}`
8494
8522
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
8495
8523
  var MobileDrawerOverlay = (0, import_styled_components5.default)(import_radix_ui2.Dialog.Overlay).withConfig({
8496
- componentId: "sc-4641ea79-16"
8524
+ componentId: "sc-a7662b4d-17"
8497
8525
  })([
8498
8526
  `position:fixed;z-index:200;inset:0;background:rgb(0 0 0 / 48%);backdrop-filter:blur(2px);&[data-state="open"]{animation:`,
8499
8527
  ` 220ms ease-out;}&[data-state="closed"]{animation:`,
8500
8528
  ` 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);}`
8501
8529
  ], fadeIn, fadeOut);
8502
8530
  var MobileDrawerContent = (0, import_styled_components5.default)(import_radix_ui2.Dialog.Content).withConfig({
8503
- componentId: "sc-4641ea79-17"
8531
+ componentId: "sc-a7662b4d-18"
8504
8532
  })([
8505
8533
  `position:fixed;z-index:201;top:0;right:0;width:320px;max-width:calc(100% - 24px);height:100vh;padding:20px;overflow-y:auto;color:`,
8506
8534
  `;background:`,
@@ -8511,103 +8539,103 @@ var MobileDrawerContent = (0, import_styled_components5.default)(import_radix_ui
8511
8539
  ` 180ms ease-in;}}`
8512
8540
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.canvas, slideIn, slideOut, dropIn, dropOut);
8513
8541
  var MobileDrawerHeader = import_styled_components5.default.div.withConfig({
8514
- componentId: "sc-4641ea79-18"
8542
+ componentId: "sc-a7662b4d-19"
8515
8543
  })([
8516
8544
  `display:flex;min-height:44px;margin-bottom:24px;align-items:center;justify-content:space-between;gap:16px;@media (max-width:767px){display:none;}`
8517
8545
  ]);
8518
8546
  var MobileDrawerTitle = (0, import_styled_components5.default)(import_radix_ui2.Dialog.Title).withConfig({
8519
- componentId: "sc-4641ea79-19"
8547
+ componentId: "sc-a7662b4d-20"
8520
8548
  })([
8521
8549
  `margin:0;font-size:20px;font-weight:700;line-height:28px;`
8522
8550
  ]);
8523
8551
  var MobileDrawerClose = (0, import_styled_components5.default)(import_radix_ui2.Dialog.Close).withConfig({
8524
- componentId: "sc-4641ea79-20"
8552
+ componentId: "sc-a7662b4d-21"
8525
8553
  })([
8526
8554
  `display:inline-flex;width:40px;height:40px;flex:0 0 40px;align-items:center;justify-content:center;border:0;border-radius:50%;color:`,
8527
8555
  `;background:transparent;cursor:pointer;&:hover{background:`,
8528
8556
  `;}`
8529
8557
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
8530
8558
  var MobileDrawerActions = import_styled_components5.default.div.withConfig({
8531
- componentId: "sc-4641ea79-21"
8559
+ componentId: "sc-a7662b4d-22"
8532
8560
  })([
8533
8561
  `display:none;@media (max-width:767px){display:grid;width:100%;margin-bottom:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}`
8534
8562
  ]);
8535
8563
  var MobileMenuPanel = import_styled_components5.default.nav.withConfig({
8536
- componentId: "sc-4641ea79-22"
8564
+ componentId: "sc-a7662b4d-23"
8537
8565
  })([
8538
8566
  `display:flex;flex-direction:column;gap:6px;a,button{width:100%;border:0;display:flex;border-radius:8px;padding:14px 12px;color:`,
8539
8567
  `;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:`,
8540
8568
  `;background:`,
8541
- `;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:`,
8569
+ `;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;}.mobile-menu-parent{display:flex;align-items:center;}.mobile-menu-parent > a,.mobile-menu-parent > span{flex:1;min-width:0;}.mobile-menu-parent > button{flex:0 0 44px;width:44px;justify-content:center;}a[aria-current="page"],button.mobile-menu-accordion-trigger[data-active="true"],button.mobile-menu-accordion-trigger[aria-expanded="true"]{color:`,
8542
8570
  `;}.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;}}`
8543
8571
  ], ({ theme }) => theme.colors.text.secondary, ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover, ({ theme }) => theme.colors.accent.primary);
8544
8572
  var RightActions = import_styled_components5.default.div.withConfig({
8545
- componentId: "sc-4641ea79-23"
8573
+ componentId: "sc-a7662b4d-24"
8546
8574
  })([
8547
8575
  `display:flex;margin-left:auto;align-items:center;gap:12px;& > div{display:flex;align-items:center;gap:8px;}@media (max-width:1279px){display:none;}`
8548
8576
  ]);
8549
8577
  var IconButton2 = import_styled_components5.default.button.withConfig({
8550
- componentId: "sc-4641ea79-24"
8578
+ componentId: "sc-a7662b4d-25"
8551
8579
  })([
8552
8580
  `display:inline-flex;width:36px;height:36px;flex:0 0 auto;align-items:center;justify-content:center;border:0;border-radius:8px;color:`,
8553
8581
  `;background:transparent;cursor:pointer;transition:background-color 160ms ease;svg{width:24px;height:24px;}&:hover{background:`,
8554
8582
  `;}@media (max-width:480px){display:none;}`
8555
8583
  ], ({ theme }) => theme.colors.text.primary, ({ theme }) => theme.colors.background.hover);
8556
8584
  var LanguageTrigger = (0, import_styled_components5.default)(IconButton2).withConfig({
8557
- componentId: "sc-4641ea79-25"
8585
+ componentId: "sc-a7662b4d-26"
8558
8586
  })([
8559
8587
  `&[data-state="open"]{color:#f9bb3a;background:`,
8560
8588
  `;}@media (max-width:767px){display:inline-flex;}@media (max-width:620px){border-radius:4px;svg{width:20px;height:20px;flex-shrink:0;}}`
8561
8589
  ], ({ theme }) => theme.colors.background.hover);
8562
8590
  var LanguageMenuContent = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.Content).withConfig({
8563
- componentId: "sc-4641ea79-26"
8591
+ componentId: "sc-a7662b4d-27"
8564
8592
  })([
8565
8593
  `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:`,
8566
8594
  ` 140ms ease-out;}&[data-state="closed"]{animation:`,
8567
8595
  ` 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;}`
8568
8596
  ], fadeIn, fadeOut);
8569
8597
  var LanguageMenuItem = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.RadioItem).withConfig({
8570
- componentId: "sc-4641ea79-27"
8598
+ componentId: "sc-a7662b4d-28"
8571
8599
  })([
8572
8600
  `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;}`,
8573
8601
  `[data-compact="true"] &{height:40px;padding:10px 6px;font-size:14px;line-height:18px;}`
8574
8602
  ], LanguageMenuContent);
8575
8603
  var LanguageFlag = import_styled_components5.default.span.withConfig({
8576
- componentId: "sc-4641ea79-28"
8604
+ componentId: "sc-a7662b4d-29"
8577
8605
  })([
8578
8606
  `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;}`
8579
8607
  ]);
8580
8608
  var LanguageItemIndicator = (0, import_styled_components5.default)(import_radix_ui2.DropdownMenu.ItemIndicator).withConfig({
8581
- componentId: "sc-4641ea79-29"
8609
+ componentId: "sc-a7662b4d-30"
8582
8610
  })([
8583
8611
  `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;}`,
8584
8612
  `[data-compact="true"] &,`,
8585
8613
  `[data-compact="true"] & img{width:16px;height:16px;flex-basis:16px;}`
8586
8614
  ], LanguageMenuContent, LanguageMenuContent);
8587
8615
  var ActionDivider = import_styled_components5.default.span.withConfig({
8588
- componentId: "sc-4641ea79-30"
8616
+ componentId: "sc-a7662b4d-31"
8589
8617
  })([
8590
8618
  `width:1px;height:16px;background:`,
8591
8619
  `;@media (max-width:608px){display:none;}`
8592
8620
  ], ({ theme }) => theme.colors.border.line);
8593
8621
  var LoginLink = import_styled_components5.default.a.withConfig({
8594
- componentId: "sc-4641ea79-31"
8622
+ componentId: "sc-a7662b4d-32"
8595
8623
  })([
8596
8624
  `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:`,
8597
8625
  `;}&[aria-disabled="true"]{cursor:not-allowed;opacity:0.55;}@media (max-width:608px){display:none;}`
8598
8626
  ], ({ theme }) => theme.colors.background.hover);
8599
8627
  var OpenAccountButton = (0, import_styled_components5.default)(Button_default2).withConfig({
8600
- componentId: "sc-4641ea79-32"
8628
+ componentId: "sc-a7662b4d-33"
8601
8629
  })([
8602
8630
  `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;}`
8603
8631
  ]);
8604
8632
  var MobileDrawerLoginButton = (0, import_styled_components5.default)(LoginLink).withConfig({
8605
- componentId: "sc-4641ea79-33"
8633
+ componentId: "sc-a7662b4d-34"
8606
8634
  })([
8607
8635
  `display:none;@media (max-width:767px){display:inline-flex;width:100%;min-width:0;padding-inline:12px;&:disabled{opacity:1;}}`
8608
8636
  ]);
8609
8637
  var MobileDrawerOpenAccountButton = (0, import_styled_components5.default)(OpenAccountButton).withConfig({
8610
- componentId: "sc-4641ea79-34"
8638
+ componentId: "sc-a7662b4d-35"
8611
8639
  })([
8612
8640
  `display:none;@media (max-width:767px){display:flex;width:100%;min-width:0;}`
8613
8641
  ]);
@@ -11298,24 +11326,24 @@ var chevron_right_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL
11298
11326
  // src/commodity-original/components/Pagination/style.ts
11299
11327
  var import_styled_components10 = require("styled-components");
11300
11328
  var PaginationNav = import_styled_components10.styled.nav.withConfig({
11301
- componentId: "sc-522a1750-0"
11329
+ componentId: "sc-e6c46071-0"
11302
11330
  })([
11303
11331
  `display:flex;justify-content:center;`
11304
11332
  ]);
11305
11333
  var PaginationList = import_styled_components10.styled.ul.withConfig({
11306
- componentId: "sc-522a1750-1"
11334
+ componentId: "sc-e6c46071-1"
11307
11335
  })([
11308
11336
  `display:flex;margin:0;padding:0;align-items:center;gap:8px;list-style:none;`
11309
11337
  ]);
11310
11338
  var PaginationItem = import_styled_components10.styled.li.withConfig({
11311
- componentId: "sc-522a1750-2"
11339
+ componentId: "sc-e6c46071-2"
11312
11340
  })([
11313
11341
  `display:flex;`
11314
11342
  ]);
11315
11343
  var PaginationButton = import_styled_components10.styled.button.withConfig({
11316
- componentId: "sc-522a1750-3"
11344
+ componentId: "sc-e6c46071-3"
11317
11345
  })([
11318
- `display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
11346
+ `box-sizing:border-box;text-decoration:none;display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border:1px solid `,
11319
11347
  `;border-radius:4px;padding:4px;color:`,
11320
11348
  `;background:`,
11321
11349
  `;font-family:var(--font-manrope),Arial,Helvetica,sans-serif;font-size:14px;font-weight:500;line-height:18px;cursor:pointer;transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease;&[data-control]{border-color:transparent;background:transparent;}&[data-active]{border-color:`,
@@ -11328,7 +11356,7 @@ var PaginationButton = import_styled_components10.styled.button.withConfig({
11328
11356
  `;outline-offset:2px;}`
11329
11357
  ], ({ 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);
11330
11358
  var PaginationArrow = import_styled_components10.styled.span.withConfig({
11331
- componentId: "sc-522a1750-4"
11359
+ componentId: "sc-e6c46071-4"
11332
11360
  })([
11333
11361
  `width:16px;height:16px;background:currentColor;mask:url("`,
11334
11362
  `") center / contain no-repeat;-webkit-mask:url("`,
@@ -11361,6 +11389,7 @@ function Pagination2({
11361
11389
  page,
11362
11390
  pageCount,
11363
11391
  onPageChange,
11392
+ getPageHref,
11364
11393
  siblingCount = 1,
11365
11394
  ariaLabel,
11366
11395
  labels: labels2,
@@ -11372,6 +11401,13 @@ function Pagination2({
11372
11401
  const items = getPaginationItems(currentPage, safePageCount, siblingCount);
11373
11402
  const hasPreviousPage = currentPage > 1;
11374
11403
  const hasNextPage = currentPage < safePageCount;
11404
+ const pageClick = (page2) => (event) => {
11405
+ if (getPageHref) {
11406
+ if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;
11407
+ event.preventDefault();
11408
+ }
11409
+ onPageChange(page2);
11410
+ };
11375
11411
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
11376
11412
  PaginationNav,
11377
11413
  {
@@ -11381,33 +11417,39 @@ function Pagination2({
11381
11417
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
11382
11418
  PaginationButton,
11383
11419
  {
11420
+ as: getPageHref && hasPreviousPage ? "a" : "button",
11421
+ href: getPageHref && hasPreviousPage ? getPageHref(currentPage - 1) : void 0,
11384
11422
  "aria-label": labels2?.previous ?? t("pagination.previous"),
11385
11423
  "data-control": "previous",
11386
11424
  disabled: !hasPreviousPage,
11387
- onClick: () => onPageChange(currentPage - 1),
11388
- type: "button",
11425
+ onClick: pageClick(currentPage - 1),
11426
+ type: getPageHref && hasPreviousPage ? void 0 : "button",
11389
11427
  children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationArrow, { "data-direction": "previous" })
11390
11428
  }
11391
11429
  ) }),
11392
11430
  items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationItem, { children: item === "ellipsis" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationButton, { "aria-hidden": "true", disabled: true, tabIndex: -1, type: "button", children: "\u2026" }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
11393
11431
  PaginationButton,
11394
11432
  {
11433
+ as: getPageHref ? "a" : "button",
11434
+ href: getPageHref?.(item),
11395
11435
  "aria-current": item === currentPage ? "page" : void 0,
11396
11436
  "aria-label": item === currentPage ? labels2?.current(item) ?? t("pagination.current", { page: item }) : labels2?.page(item) ?? t("pagination.page", { page: item }),
11397
11437
  "data-active": item === currentPage || void 0,
11398
- onClick: () => onPageChange(item),
11399
- type: "button",
11438
+ onClick: pageClick(item),
11439
+ type: getPageHref ? void 0 : "button",
11400
11440
  children: item
11401
11441
  }
11402
11442
  ) }, `${item}-${index}`)),
11403
11443
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationItem, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
11404
11444
  PaginationButton,
11405
11445
  {
11446
+ as: getPageHref && hasNextPage ? "a" : "button",
11447
+ href: getPageHref && hasNextPage ? getPageHref(currentPage + 1) : void 0,
11406
11448
  "aria-label": labels2?.next ?? t("pagination.next"),
11407
11449
  "data-control": "next",
11408
11450
  disabled: !hasNextPage,
11409
- onClick: () => onPageChange(currentPage + 1),
11410
- type: "button",
11451
+ onClick: pageClick(currentPage + 1),
11452
+ type: getPageHref && hasNextPage ? void 0 : "button",
11411
11453
  children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(PaginationArrow, { "data-direction": "next" })
11412
11454
  }
11413
11455
  ) })
@@ -16515,21 +16557,50 @@ function Header() {
16515
16557
  const isItemActive = item.children.length > 0 ? item.children.some((child) => !child.linkDisabled && isRouteActive2(child.href)) : !item.linkDisabled && isRouteActive2(item.href);
16516
16558
  const activeChildren = activeChildIndexes2(item.children);
16517
16559
  if (item.children.length > 0) {
16518
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16560
+ const childLinks = item.children.map((child) => /* @__PURE__ */ (0, import_react40.createElement)(
16561
+ ExactText,
16562
+ {
16563
+ cmsAs: import_link7.default,
16564
+ cmsField: child.labelKey,
16565
+ ...chromeItemAttributes(language, "header.menuItems", child.index, item.index),
16566
+ key: child.labelKey,
16567
+ href: child.href,
16568
+ "aria-disabled": child.linkDisabled || void 0,
16569
+ onClick: (event) => {
16570
+ if (child.linkDisabled) event.preventDefault();
16571
+ },
16572
+ "aria-current": activeChildren.has(child.index) ? "page" : void 0
16573
+ },
16574
+ child.label
16575
+ ));
16576
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ProductsMenuGroup, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16519
16577
  import_radix_ui5.DropdownMenu.Root,
16520
16578
  {
16521
16579
  modal: false,
16522
16580
  open: isDesktopProductsOpen === item.index,
16523
16581
  onOpenChange: (open) => setIsDesktopProductsOpen((current) => open ? item.index : current === item.index ? null : current),
16524
16582
  children: [
16583
+ !item.linkDisabled && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16584
+ ExactText,
16585
+ {
16586
+ cmsAs: NavigationLink,
16587
+ as: import_link7.default,
16588
+ cmsField: item.labelKey,
16589
+ ...chromeItemAttributes(language, "header.menuItems", item.index),
16590
+ href: item.href,
16591
+ "aria-current": isRouteActive2(item.href) ? "page" : void 0,
16592
+ children: item.label
16593
+ }
16594
+ ),
16525
16595
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_radix_ui5.DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16526
16596
  ProductsMenuTrigger,
16527
16597
  {
16528
16598
  ...chromeItemAttributes(language, "header.menuItems", item.index),
16529
16599
  type: "button",
16600
+ "aria-label": `${language === "en" ? "Open submenu" : "M\u1EDF menu con"}: ${item.label}`,
16530
16601
  "aria-current": isItemActive ? "page" : void 0,
16531
16602
  "data-active": isItemActive ? "true" : void 0,
16532
- children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label })
16603
+ children: item.linkDisabled && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label })
16533
16604
  }
16534
16605
  ) }),
16535
16606
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_radix_ui5.DropdownMenu.Portal, { container: portalContainer, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
@@ -16542,15 +16613,13 @@ function Header() {
16542
16613
  align: "center",
16543
16614
  sideOffset: 10,
16544
16615
  "aria-label": item.label,
16545
- children: item.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ProductsMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ExactText, { cmsAs: import_link7.default, cmsField: child.labelKey, ...chromeItemAttributes(language, "header.menuItems", child.index, item.index), href: child.href, "aria-disabled": child.linkDisabled || void 0, onClick: (event) => {
16546
- if (child.linkDisabled) event.preventDefault();
16547
- }, "aria-current": activeChildren.has(child.index) ? "page" : void 0, children: child.label }) }, child.labelKey))
16616
+ children: childLinks.map((link2) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ProductsMenuItem, { asChild: true, children: link2 }, link2.key))
16548
16617
  }
16549
- ) })
16618
+ ) }),
16619
+ isDesktopProductsOpen !== item.index && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { hidden: true, "data-cms-closed-submenu": true, children: childLinks })
16550
16620
  ]
16551
- },
16552
- item.labelKey
16553
- );
16621
+ }
16622
+ ) }, item.labelKey);
16554
16623
  }
16555
16624
  return /* @__PURE__ */ (0, import_react40.createElement)(
16556
16625
  ExactText,
@@ -16677,22 +16746,36 @@ function Header() {
16677
16746
  const activeChildren = activeChildIndexes2(item.children);
16678
16747
  if (item.children.length > 0) {
16679
16748
  return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "mobile-menu-group", ...chromeItemAttributes(language, "header.menuItems", item.index), children: [
16680
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16681
- "button",
16682
- {
16683
- "aria-current": isItemActive ? "page" : void 0,
16684
- "data-active": isItemActive ? "true" : void 0,
16685
- "aria-controls": `mobile-products-panel-${item.index}`,
16686
- "aria-expanded": isProductsOpen === item.index,
16687
- className: "mobile-menu-accordion-trigger",
16688
- id: `mobile-products-trigger-${item.index}`,
16689
- onClick: () => {
16690
- setIsProductsOpen((current) => current === item.index ? null : item.index);
16691
- },
16692
- type: "button",
16693
- children: [
16694
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label }),
16695
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16749
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "mobile-menu-parent", children: [
16750
+ !item.linkDisabled ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16751
+ ExactText,
16752
+ {
16753
+ cmsAs: import_link7.default,
16754
+ cmsField: item.labelKey,
16755
+ href: item.href,
16756
+ "aria-current": isRouteActive2(item.href) ? "page" : void 0,
16757
+ onClick: () => {
16758
+ setIsProductsOpen(null);
16759
+ setIsMenuOpen(false);
16760
+ },
16761
+ children: item.label
16762
+ }
16763
+ ) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ExactText, { cmsAs: "span", cmsField: item.labelKey, children: item.label }),
16764
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16765
+ "button",
16766
+ {
16767
+ "aria-current": isItemActive ? "page" : void 0,
16768
+ "data-active": isItemActive ? "true" : void 0,
16769
+ "aria-controls": `mobile-products-panel-${item.index}`,
16770
+ "aria-expanded": isProductsOpen === item.index,
16771
+ "aria-label": `${language === "en" ? "Open submenu" : "M\u1EDF menu con"}: ${item.label}`,
16772
+ className: "mobile-menu-accordion-trigger",
16773
+ id: `mobile-products-trigger-${item.index}`,
16774
+ onClick: () => {
16775
+ setIsProductsOpen((current) => current === item.index ? null : item.index);
16776
+ },
16777
+ type: "button",
16778
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16696
16779
  "span",
16697
16780
  {
16698
16781
  "aria-hidden": "true",
@@ -16709,9 +16792,9 @@ function Header() {
16709
16792
  )
16710
16793
  }
16711
16794
  )
16712
- ]
16713
- }
16714
- ),
16795
+ }
16796
+ )
16797
+ ] }),
16715
16798
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16716
16799
  "div",
16717
16800
  {
@@ -18366,7 +18449,7 @@ function HeroSection2() {
18366
18449
  ),
18367
18450
  /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(HeroInner, { children: [
18368
18451
  /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(HeroCopy, { "data-hero-copy": true, children: [
18369
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ExactText, { cmsAs: HeroTitle, children: t("landing.hero.title") }),
18452
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ExactText, { cmsAs: HeroTitle, cmsHeading: "h1", cmsField: "landing.hero.title", children: t("landing.hero.title") }),
18370
18453
  /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ExactText, { cmsAs: "p", children: t("landing.hero.description") }),
18371
18454
  /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
18372
18455
  Button_default2,