@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20261013090602 → 0.8.1-dev.20261013114908

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/server.js CHANGED
@@ -1239,7 +1239,7 @@ var init_LinkNodeButton = __esm({
1239
1239
  const fieldNames = extractFieldNames(template);
1240
1240
  if (responseData) {
1241
1241
  fieldNames.forEach((fieldName) => {
1242
- const value = getNestedValue7(responseData, fieldName);
1242
+ const value = getNestedValue8(responseData, fieldName);
1243
1243
  if (value !== void 0) {
1244
1244
  const regex1 = new RegExp(`\\{${fieldName}\\}`, "g");
1245
1245
  const regex2 = new RegExp(`\\{\\{${fieldName}\\}\\}`, "g");
@@ -1264,7 +1264,7 @@ var init_LinkNodeButton = __esm({
1264
1264
  },
1265
1265
  [props.routeParameters, dataitem, extractFieldNames]
1266
1266
  );
1267
- const getNestedValue7 = (0, import_react5.useCallback)((obj, path) => {
1267
+ const getNestedValue8 = (0, import_react5.useCallback)((obj, path) => {
1268
1268
  if (!obj || !path) return void 0;
1269
1269
  if (obj[path] !== void 0) {
1270
1270
  return obj[path];
@@ -1317,15 +1317,15 @@ var init_LinkNodeButton = __esm({
1317
1317
  console.log("Field names in redirect URL:", fieldNames);
1318
1318
  const fieldValueMap = {};
1319
1319
  fieldNames.forEach((fieldName) => {
1320
- const value = getNestedValue7(response, fieldName);
1320
+ const value = getNestedValue8(response, fieldName);
1321
1321
  if (value !== void 0) {
1322
1322
  fieldValueMap[fieldName] = String(value);
1323
1323
  } else {
1324
- const resultValue = getNestedValue7(response, `result.${fieldName}`);
1324
+ const resultValue = getNestedValue8(response, `result.${fieldName}`);
1325
1325
  if (resultValue !== void 0) {
1326
1326
  fieldValueMap[fieldName] = String(resultValue);
1327
1327
  } else {
1328
- const dataValue = getNestedValue7(response, `data.${fieldName}`);
1328
+ const dataValue = getNestedValue8(response, `data.${fieldName}`);
1329
1329
  if (dataValue !== void 0) {
1330
1330
  fieldValueMap[fieldName] = String(dataValue);
1331
1331
  }
@@ -1384,7 +1384,7 @@ var init_LinkNodeButton = __esm({
1384
1384
  node.reloadPageAfterSuccess,
1385
1385
  replaceTemplateVariables,
1386
1386
  extractFieldNames,
1387
- getNestedValue7,
1387
+ getNestedValue8,
1388
1388
  props.apiBaseUrl,
1389
1389
  props.session
1390
1390
  ]);
@@ -3483,53 +3483,188 @@ var init_OdataBuilder = __esm({
3483
3483
  }
3484
3484
  });
3485
3485
 
3486
+ // src/components/pageRenderingEngine/nodes/MediaAccordionNodeClient.tsx
3487
+ var MediaAccordionNodeClient_exports = {};
3488
+ __export(MediaAccordionNodeClient_exports, {
3489
+ default: () => MediaAccordionNodeClient_default
3490
+ });
3491
+ var import_react39, import_dynamic14, import_image, import_jsx_runtime61, HlsPlayer5, isHlsUrl, isVideoUrl, MediaAccordionNodeClient, MediaAccordionNodeClient_default;
3492
+ var init_MediaAccordionNodeClient = __esm({
3493
+ "src/components/pageRenderingEngine/nodes/MediaAccordionNodeClient.tsx"() {
3494
+ "use strict";
3495
+ "use client";
3496
+ import_react39 = require("react");
3497
+ import_dynamic14 = __toESM(require("next/dynamic"));
3498
+ import_image = __toESM(require("next/image"));
3499
+ init_AssetUtility();
3500
+ import_jsx_runtime61 = require("react/jsx-runtime");
3501
+ HlsPlayer5 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
3502
+ isHlsUrl = (url) => /\.m3u8(?:$|[?#])/i.test(url);
3503
+ isVideoUrl = (url) => /\.(mp4|webm|ogv)(?:$|[?#])/i.test(url);
3504
+ MediaAccordionNodeClient = (props) => {
3505
+ const items = Array.isArray(props.node.items) ? props.node.items : [];
3506
+ const [activeIndex, setActiveIndex] = (0, import_react39.useState)(0);
3507
+ const activeItem = items[activeIndex] ?? items[0];
3508
+ const buttonBackground = props.node.buttonBackgroundLayers?.length ? props.node.buttonBackgroundLayers.slice(0, 1).map((layer) => {
3509
+ const colors = layer.value.colors.map((stop) => `color-mix(in srgb, ${stop.color}, transparent ${stop.transparency ?? 0}%) ${stop.position}%`).join(", ");
3510
+ return `linear-gradient(${layer.value.direction}deg, ${colors})`;
3511
+ }).filter(Boolean).join(", ") : props.node.buttonBackgroundGradient ? `linear-gradient(135deg, ${props.node.buttonGradientStart || "var(--primary-action-fill)"}, ${props.node.buttonGradientEnd || "var(--primary-action-fill)"})` : props.node.buttonBackgroundColor || "var(--primary-action-fill)";
3512
+ const assetBaseUrl = props.assetBaseUrl || `${props.apiBaseUrl}/digitalassets-management`;
3513
+ const resolveUrl = (url) => url ? AssetUtility_default.resolveUrl(assetBaseUrl, url) : void 0;
3514
+ const renderMedia = (item) => {
3515
+ const mediaUrl = resolveUrl(item.mediaUrl);
3516
+ const posterUrl = resolveUrl(item.posterUrl);
3517
+ if (!mediaUrl) return null;
3518
+ if (item.mediaType === "image") {
3519
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3520
+ import_image.default,
3521
+ {
3522
+ className: "story-accordion__media-image",
3523
+ src: mediaUrl,
3524
+ alt: item.title,
3525
+ loading: "lazy",
3526
+ fill: true,
3527
+ sizes: "(max-width: 700px) 100vw, 60vw",
3528
+ unoptimized: true
3529
+ }
3530
+ );
3531
+ }
3532
+ if (isHlsUrl(mediaUrl)) {
3533
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3534
+ HlsPlayer5,
3535
+ {
3536
+ assetUrl: mediaUrl,
3537
+ posterUrl,
3538
+ showControls: true,
3539
+ apiBaseUrl: props.apiBaseUrl,
3540
+ session: ""
3541
+ }
3542
+ );
3543
+ }
3544
+ if (item.mediaType === "video" || isVideoUrl(mediaUrl)) {
3545
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3546
+ "video",
3547
+ {
3548
+ className: "story-accordion__media-video",
3549
+ src: mediaUrl,
3550
+ poster: posterUrl,
3551
+ controls: true,
3552
+ playsInline: true,
3553
+ preload: "metadata"
3554
+ }
3555
+ );
3556
+ }
3557
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3558
+ import_image.default,
3559
+ {
3560
+ className: "story-accordion__media-image",
3561
+ src: posterUrl || mediaUrl,
3562
+ alt: item.title,
3563
+ loading: "lazy",
3564
+ fill: true,
3565
+ sizes: "(max-width: 700px) 100vw, 60vw",
3566
+ unoptimized: true
3567
+ }
3568
+ );
3569
+ };
3570
+ if (items.length === 0) return null;
3571
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
3572
+ "section",
3573
+ {
3574
+ className: "story-accordion",
3575
+ "aria-label": "Featured stories",
3576
+ style: {
3577
+ "--story-button-background": buttonBackground,
3578
+ "--story-button-text": props.node.buttonTextTransparency ? `color-mix(in srgb, ${props.node.buttonTextColor || "var(--primary-action-text)"}, transparent ${props.node.buttonTextTransparency}%)` : props.node.buttonTextColor || "var(--primary-action-text)",
3579
+ "--story-button-clip": props.node.buttonBackgroundClipText ? "text" : "border-box",
3580
+ "--story-inactive-button-background": props.node.buttonInactiveBackgroundColor || "var(--neutral)",
3581
+ "--story-inactive-button-text": props.node.buttonInactiveTextColor || "var(--neutral-text-base)"
3582
+ },
3583
+ children: [
3584
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("style", { children: `
3585
+ .story-accordion { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr); gap:20px; align-items:stretch; width:100%; padding:16px; border-radius:14px; background:var(--neutral); }
3586
+ .story-accordion__media { position:relative; min-height:320px; overflow:hidden; border-radius:10px; background:var(--neutral-border); }
3587
+ .story-accordion__media > * { display:block; width:100%; height:100%; min-height:320px; }
3588
+ .story-accordion__media-image, .story-accordion__media-video { object-fit:cover; }
3589
+ .story-accordion__list { display:flex; flex-direction:column; justify-content:center; gap:10px; min-width:0; }
3590
+ .story-accordion__item { width:100%; min-height:54px; padding:12px 16px; border:1px solid var(--neutral-border); border-radius:9px; background:var(--neutral); color:var(--neutral-text-base); text-align:left; font:inherit; line-height:1.35; cursor:pointer; transition:background-color .18s ease,color .18s ease,border-color .18s ease; }
3591
+ .story-accordion__item:hover { border-color:var(--primary-action-fill); }
3592
+ .story-accordion__item[aria-pressed="true"] { border-color:transparent; background:var(--story-button-background); color:var(--story-button-text); background-clip:var(--story-button-clip); -webkit-background-clip:var(--story-button-clip); }
3593
+ .story-accordion__item.is-inactive.is-custom { background:var(--story-inactive-button-background); color:var(--story-inactive-button-text); }
3594
+ .story-accordion__item:focus-visible { outline:3px solid var(--primary-action-fill); outline-offset:2px; }
3595
+ @media(max-width:700px) { .story-accordion { grid-template-columns:minmax(0,1fr); gap:14px; padding:10px; } .story-accordion__media, .story-accordion__media > * { min-height:220px; } .story-accordion__list { gap:8px; } .story-accordion__item { min-height:48px; } }
3596
+ ` }),
3597
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "story-accordion__media", children: activeItem ? renderMedia(activeItem) : null }),
3598
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "story-accordion__list", role: "group", "aria-label": "Choose a story", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
3599
+ "button",
3600
+ {
3601
+ type: "button",
3602
+ className: `story-accordion__item ${index === activeIndex ? "is-active" : "is-inactive"} ${props.node.buttonInactiveStyleEnabled && index !== activeIndex ? "is-custom" : ""}`,
3603
+ "aria-pressed": index === activeIndex,
3604
+ style: index !== activeIndex && props.node.buttonInactiveStyleEnabled ? {
3605
+ background: props.node.buttonInactiveBackgroundColor || "var(--neutral)",
3606
+ color: props.node.buttonInactiveTextColor || "var(--neutral-text-base)"
3607
+ } : void 0,
3608
+ onClick: () => setActiveIndex(index),
3609
+ children: item.title
3610
+ },
3611
+ item.id || `${item.title}-${index}`
3612
+ )) })
3613
+ ]
3614
+ }
3615
+ );
3616
+ };
3617
+ MediaAccordionNodeClient_default = MediaAccordionNodeClient;
3618
+ }
3619
+ });
3620
+
3486
3621
  // src/svg/chevron-updown.tsx
3487
- var import_jsx_runtime61, ChevronUpDown, chevron_updown_default;
3622
+ var import_jsx_runtime63, ChevronUpDown, chevron_updown_default;
3488
3623
  var init_chevron_updown = __esm({
3489
3624
  "src/svg/chevron-updown.tsx"() {
3490
3625
  "use strict";
3491
- import_jsx_runtime61 = require("react/jsx-runtime");
3626
+ import_jsx_runtime63 = require("react/jsx-runtime");
3492
3627
  ChevronUpDown = (props) => {
3493
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3628
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3494
3629
  };
3495
3630
  chevron_updown_default = ChevronUpDown;
3496
3631
  }
3497
3632
  });
3498
3633
 
3499
3634
  // src/svg/chevron-down.tsx
3500
- var import_jsx_runtime62, ChevronDown, chevron_down_default;
3635
+ var import_jsx_runtime64, ChevronDown, chevron_down_default;
3501
3636
  var init_chevron_down = __esm({
3502
3637
  "src/svg/chevron-down.tsx"() {
3503
3638
  "use strict";
3504
- import_jsx_runtime62 = require("react/jsx-runtime");
3639
+ import_jsx_runtime64 = require("react/jsx-runtime");
3505
3640
  ChevronDown = (props) => {
3506
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3641
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3507
3642
  };
3508
3643
  chevron_down_default = ChevronDown;
3509
3644
  }
3510
3645
  });
3511
3646
 
3512
3647
  // src/svg/chevron-up.tsx
3513
- var import_jsx_runtime63, ChevronUp, chevron_up_default;
3648
+ var import_jsx_runtime65, ChevronUp, chevron_up_default;
3514
3649
  var init_chevron_up = __esm({
3515
3650
  "src/svg/chevron-up.tsx"() {
3516
3651
  "use strict";
3517
- import_jsx_runtime63 = require("react/jsx-runtime");
3652
+ import_jsx_runtime65 = require("react/jsx-runtime");
3518
3653
  ChevronUp = (props) => {
3519
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3654
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3520
3655
  };
3521
3656
  chevron_up_default = ChevronUp;
3522
3657
  }
3523
3658
  });
3524
3659
 
3525
3660
  // src/svg/plus.tsx
3526
- var import_jsx_runtime64, Plus, plus_default;
3661
+ var import_jsx_runtime66, Plus, plus_default;
3527
3662
  var init_plus = __esm({
3528
3663
  "src/svg/plus.tsx"() {
3529
3664
  "use strict";
3530
- import_jsx_runtime64 = require("react/jsx-runtime");
3665
+ import_jsx_runtime66 = require("react/jsx-runtime");
3531
3666
  Plus = (props) => {
3532
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
3667
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
3533
3668
  };
3534
3669
  plus_default = Plus;
3535
3670
  }
@@ -3555,19 +3690,19 @@ var init_Icons = __esm({
3555
3690
  });
3556
3691
 
3557
3692
  // src/svg/Icon.tsx
3558
- var import_jsx_runtime65, Icon, Icon_default;
3693
+ var import_jsx_runtime67, Icon, Icon_default;
3559
3694
  var init_Icon = __esm({
3560
3695
  "src/svg/Icon.tsx"() {
3561
3696
  "use strict";
3562
3697
  init_Icons();
3563
- import_jsx_runtime65 = require("react/jsx-runtime");
3698
+ import_jsx_runtime67 = require("react/jsx-runtime");
3564
3699
  Icon = ({ name, className, ...props }) => {
3565
3700
  const IconComponent = Icons_default[name];
3566
3701
  if (!IconComponent) {
3567
3702
  console.error(`Icon "${name}" not found.`);
3568
3703
  return null;
3569
3704
  }
3570
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(IconComponent, { ...props, className });
3705
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(IconComponent, { ...props, className });
3571
3706
  };
3572
3707
  Icon_default = Icon;
3573
3708
  }
@@ -3578,21 +3713,21 @@ var Pagination_exports = {};
3578
3713
  __export(Pagination_exports, {
3579
3714
  default: () => Pagination_default
3580
3715
  });
3581
- var import_react39, import_jsx_runtime66, Pagination, Pagination_default;
3716
+ var import_react40, import_jsx_runtime68, Pagination, Pagination_default;
3582
3717
  var init_Pagination = __esm({
3583
3718
  "src/components/Pagination.tsx"() {
3584
3719
  "use strict";
3585
3720
  "use client";
3586
- import_react39 = require("react");
3721
+ import_react40 = require("react");
3587
3722
  init_OdataBuilder();
3588
3723
  init_Icon();
3589
3724
  init_StyleTypes();
3590
3725
  init_InputControlType();
3591
3726
  init_Hyperlink();
3592
- import_jsx_runtime66 = require("react/jsx-runtime");
3727
+ import_jsx_runtime68 = require("react/jsx-runtime");
3593
3728
  Pagination = (props) => {
3594
3729
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3595
- const builder = (0, import_react39.useMemo)(() => {
3730
+ const builder = (0, import_react40.useMemo)(() => {
3596
3731
  const b = new OdataBuilder(path);
3597
3732
  if (query) b.setQuery(query);
3598
3733
  return b;
@@ -3633,7 +3768,7 @@ var init_Pagination = __esm({
3633
3768
  return range;
3634
3769
  };
3635
3770
  const paginationRange = getPaginationRange();
3636
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3771
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3637
3772
  Hyperlink,
3638
3773
  {
3639
3774
  linkType: "Link" /* Link */,
@@ -3648,9 +3783,9 @@ var init_Pagination = __esm({
3648
3783
  );
3649
3784
  const NavigationButton = ({ page, disabled, children }) => {
3650
3785
  if (disabled) {
3651
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
3786
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
3652
3787
  }
3653
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3788
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3654
3789
  Hyperlink,
3655
3790
  {
3656
3791
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border transition-colors duration-150",
@@ -3660,35 +3795,35 @@ var init_Pagination = __esm({
3660
3795
  );
3661
3796
  };
3662
3797
  if (totalPages <= 1 && totalItems === 0) return null;
3663
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "py-6 border-t mt-6", children: [
3664
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3665
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "text-sm", children: [
3798
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "py-6 border-t mt-6", children: [
3799
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3800
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "text-sm", children: [
3666
3801
  "Showing ",
3667
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "font-semibold", children: [
3802
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "font-semibold", children: [
3668
3803
  startItem,
3669
3804
  "-",
3670
3805
  endItem
3671
3806
  ] }),
3672
3807
  " ",
3673
3808
  "out of ",
3674
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3809
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3675
3810
  " results"
3676
3811
  ] }),
3677
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center space-x-1", children: [
3678
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
3812
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center space-x-1", children: [
3813
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3679
3814
  NavigationButton,
3680
3815
  {
3681
3816
  page: activePageNumber - 1,
3682
3817
  disabled: activePageNumber === 1,
3683
3818
  children: [
3684
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3685
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Prev" })
3819
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3820
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Prev" })
3686
3821
  ]
3687
3822
  }
3688
3823
  ),
3689
3824
  paginationRange.map((item, index) => {
3690
3825
  if (item === "...") {
3691
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3826
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3692
3827
  "span",
3693
3828
  {
3694
3829
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -3698,23 +3833,23 @@ var init_Pagination = __esm({
3698
3833
  );
3699
3834
  }
3700
3835
  const page = item;
3701
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(PageButton, { page, children: page }, page);
3836
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PageButton, { page, children: page }, page);
3702
3837
  }),
3703
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
3838
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3704
3839
  NavigationButton,
3705
3840
  {
3706
3841
  page: activePageNumber + 1,
3707
3842
  disabled: activePageNumber === totalPages,
3708
3843
  children: [
3709
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Next" }),
3710
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3844
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Next" }),
3845
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3711
3846
  ]
3712
3847
  }
3713
3848
  )
3714
3849
  ] }),
3715
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center space-x-2", children: [
3716
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Go to:" }),
3717
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3850
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center space-x-2", children: [
3851
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Go to:" }),
3852
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3718
3853
  "input",
3719
3854
  {
3720
3855
  type: "number",
@@ -3735,9 +3870,9 @@ var init_Pagination = __esm({
3735
3870
  ) })
3736
3871
  ] })
3737
3872
  ] }),
3738
- showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
3739
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Show:" }),
3740
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3873
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
3874
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Show:" }),
3875
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3741
3876
  Hyperlink,
3742
3877
  {
3743
3878
  className: `
@@ -3749,7 +3884,7 @@ var init_Pagination = __esm({
3749
3884
  },
3750
3885
  size
3751
3886
  )) }),
3752
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "per page" })
3887
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "per page" })
3753
3888
  ] }) })
3754
3889
  ] });
3755
3890
  };
@@ -3762,16 +3897,16 @@ var DataBindingControls_exports = {};
3762
3897
  __export(DataBindingControls_exports, {
3763
3898
  default: () => DataBindingControls_default
3764
3899
  });
3765
- var import_react40, import_navigation, import_jsx_runtime67, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, SearchIcon, ResetIcon, FilterSlidersIcon, ChevronDownIcon, CheckIcon, CloseIcon, MapPinIcon, BriefcaseIcon, FileTextIcon, TagIcon, getCategoryIcon, normalizeSortOption, DataBindingControls, DataBindingControls_default;
3900
+ var import_react41, import_navigation, import_jsx_runtime69, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, SearchIcon, ResetIcon, FilterSlidersIcon, ChevronDownIcon, CheckIcon, CloseIcon, MapPinIcon, BriefcaseIcon, FileTextIcon, TagIcon, getCategoryIcon, normalizeSortOption, DataBindingControls, DataBindingControls_default;
3766
3901
  var init_DataBindingControls = __esm({
3767
3902
  "src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
3768
3903
  "use strict";
3769
3904
  "use client";
3770
- import_react40 = require("react");
3905
+ import_react41 = require("react");
3771
3906
  import_navigation = require("next/navigation");
3772
3907
  init_Button();
3773
3908
  init_StyleTypes();
3774
- import_jsx_runtime67 = require("react/jsx-runtime");
3909
+ import_jsx_runtime69 = require("react/jsx-runtime");
3775
3910
  humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
3776
3911
  escapeODataString = (value) => value.replace(/'/g, "''");
3777
3912
  parseFacetSelections = (filter) => {
@@ -3794,7 +3929,7 @@ var init_DataBindingControls = __esm({
3794
3929
  }
3795
3930
  return trimmedValue;
3796
3931
  };
3797
- SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3932
+ SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3798
3933
  "svg",
3799
3934
  {
3800
3935
  "aria-hidden": "true",
@@ -3804,12 +3939,12 @@ var init_DataBindingControls = __esm({
3804
3939
  stroke: "currentColor",
3805
3940
  strokeWidth: "2",
3806
3941
  children: [
3807
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { cx: "11", cy: "11", r: "7" }),
3808
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", d: "m20 20-4-4" })
3942
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("circle", { cx: "11", cy: "11", r: "7" }),
3943
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", d: "m20 20-4-4" })
3809
3944
  ]
3810
3945
  }
3811
3946
  );
3812
- ResetIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3947
+ ResetIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3813
3948
  "svg",
3814
3949
  {
3815
3950
  "aria-hidden": "true",
@@ -3819,8 +3954,8 @@ var init_DataBindingControls = __esm({
3819
3954
  stroke: "currentColor",
3820
3955
  strokeWidth: "2",
3821
3956
  children: [
3822
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v6h6" }),
3823
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3957
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v6h6" }),
3958
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3824
3959
  "path",
3825
3960
  {
3826
3961
  strokeLinecap: "round",
@@ -3831,7 +3966,7 @@ var init_DataBindingControls = __esm({
3831
3966
  ]
3832
3967
  }
3833
3968
  );
3834
- FilterSlidersIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3969
+ FilterSlidersIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3835
3970
  "svg",
3836
3971
  {
3837
3972
  "aria-hidden": "true",
@@ -3841,14 +3976,14 @@ var init_DataBindingControls = __esm({
3841
3976
  stroke: "currentColor",
3842
3977
  strokeWidth: "2",
3843
3978
  children: [
3844
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M3 4h18M3 12h18M3 20h18" }),
3845
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { cx: "8", cy: "4", r: "2", fill: "currentColor" }),
3846
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { cx: "16", cy: "12", r: "2", fill: "currentColor" }),
3847
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { cx: "10", cy: "20", r: "2", fill: "currentColor" })
3979
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M3 4h18M3 12h18M3 20h18" }),
3980
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("circle", { cx: "8", cy: "4", r: "2", fill: "currentColor" }),
3981
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("circle", { cx: "16", cy: "12", r: "2", fill: "currentColor" }),
3982
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("circle", { cx: "10", cy: "20", r: "2", fill: "currentColor" })
3848
3983
  ]
3849
3984
  }
3850
3985
  );
3851
- ChevronDownIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3986
+ ChevronDownIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3852
3987
  "svg",
3853
3988
  {
3854
3989
  "aria-hidden": "true",
@@ -3857,10 +3992,10 @@ var init_DataBindingControls = __esm({
3857
3992
  viewBox: "0 0 24 24",
3858
3993
  stroke: "currentColor",
3859
3994
  strokeWidth: "2",
3860
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m19 9-7 7-7-7" })
3995
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m19 9-7 7-7-7" })
3861
3996
  }
3862
3997
  );
3863
- CheckIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3998
+ CheckIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3864
3999
  "svg",
3865
4000
  {
3866
4001
  "aria-hidden": "true",
@@ -3869,10 +4004,10 @@ var init_DataBindingControls = __esm({
3869
4004
  viewBox: "0 0 24 24",
3870
4005
  stroke: "currentColor",
3871
4006
  strokeWidth: "2.5",
3872
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
4007
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
3873
4008
  }
3874
4009
  );
3875
- CloseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4010
+ CloseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3876
4011
  "svg",
3877
4012
  {
3878
4013
  "aria-hidden": "true",
@@ -3881,10 +4016,10 @@ var init_DataBindingControls = __esm({
3881
4016
  viewBox: "0 0 24 24",
3882
4017
  stroke: "currentColor",
3883
4018
  strokeWidth: "2",
3884
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" })
4019
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" })
3885
4020
  }
3886
4021
  );
3887
- MapPinIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4022
+ MapPinIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3888
4023
  "svg",
3889
4024
  {
3890
4025
  "aria-hidden": "true",
@@ -3894,7 +4029,7 @@ var init_DataBindingControls = __esm({
3894
4029
  stroke: "currentColor",
3895
4030
  strokeWidth: "2",
3896
4031
  children: [
3897
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4032
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3898
4033
  "path",
3899
4034
  {
3900
4035
  strokeLinecap: "round",
@@ -3902,7 +4037,7 @@ var init_DataBindingControls = __esm({
3902
4037
  d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
3903
4038
  }
3904
4039
  ),
3905
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4040
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3906
4041
  "path",
3907
4042
  {
3908
4043
  strokeLinecap: "round",
@@ -3913,7 +4048,7 @@ var init_DataBindingControls = __esm({
3913
4048
  ]
3914
4049
  }
3915
4050
  );
3916
- BriefcaseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4051
+ BriefcaseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3917
4052
  "svg",
3918
4053
  {
3919
4054
  "aria-hidden": "true",
@@ -3922,7 +4057,7 @@ var init_DataBindingControls = __esm({
3922
4057
  viewBox: "0 0 24 24",
3923
4058
  stroke: "currentColor",
3924
4059
  strokeWidth: "2",
3925
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4060
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3926
4061
  "path",
3927
4062
  {
3928
4063
  strokeLinecap: "round",
@@ -3932,7 +4067,7 @@ var init_DataBindingControls = __esm({
3932
4067
  )
3933
4068
  }
3934
4069
  );
3935
- FileTextIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4070
+ FileTextIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3936
4071
  "svg",
3937
4072
  {
3938
4073
  "aria-hidden": "true",
@@ -3941,7 +4076,7 @@ var init_DataBindingControls = __esm({
3941
4076
  viewBox: "0 0 24 24",
3942
4077
  stroke: "currentColor",
3943
4078
  strokeWidth: "2",
3944
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4079
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3945
4080
  "path",
3946
4081
  {
3947
4082
  strokeLinecap: "round",
@@ -3951,7 +4086,7 @@ var init_DataBindingControls = __esm({
3951
4086
  )
3952
4087
  }
3953
4088
  );
3954
- TagIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4089
+ TagIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3955
4090
  "svg",
3956
4091
  {
3957
4092
  "aria-hidden": "true",
@@ -3960,7 +4095,7 @@ var init_DataBindingControls = __esm({
3960
4095
  viewBox: "0 0 24 24",
3961
4096
  stroke: "currentColor",
3962
4097
  strokeWidth: "2",
3963
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4098
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3964
4099
  "path",
3965
4100
  {
3966
4101
  strokeLinecap: "round",
@@ -3973,15 +4108,15 @@ var init_DataBindingControls = __esm({
3973
4108
  getCategoryIcon = (category) => {
3974
4109
  const lower = category.toLowerCase();
3975
4110
  if (lower.includes("location") || lower.includes("city") || lower.includes("country") || lower.includes("state") || lower.includes("address")) {
3976
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(MapPinIcon, { className: "h-4 w-4" });
4111
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(MapPinIcon, { className: "h-4 w-4" });
3977
4112
  }
3978
4113
  if (lower.includes("type") || lower.includes("work") || lower.includes("employment") || lower.includes("experience")) {
3979
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BriefcaseIcon, { className: "h-4 w-4" });
4114
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(BriefcaseIcon, { className: "h-4 w-4" });
3980
4115
  }
3981
4116
  if (lower.includes("department") || lower.includes("category") || lower.includes("role") || lower.includes("industry")) {
3982
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(FileTextIcon, { className: "h-4 w-4" });
4117
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FileTextIcon, { className: "h-4 w-4" });
3983
4118
  }
3984
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(TagIcon, { className: "h-4 w-4" });
4119
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TagIcon, { className: "h-4 w-4" });
3985
4120
  };
3986
4121
  normalizeSortOption = (option) => {
3987
4122
  const direction = option.direction.trim();
@@ -4003,13 +4138,13 @@ var init_DataBindingControls = __esm({
4003
4138
  }) => {
4004
4139
  const router = (0, import_navigation.useRouter)();
4005
4140
  const searchParams = (0, import_navigation.useSearchParams)();
4006
- const [collapsedCategories, setCollapsedCategories] = (0, import_react40.useState)({});
4007
- const [isSortOpen, setIsSortOpen] = (0, import_react40.useState)(false);
4008
- const [isMobileFiltersOpen, setIsMobileFiltersOpen] = (0, import_react40.useState)(false);
4009
- const [facetCategorySearch, setFacetCategorySearch] = (0, import_react40.useState)({});
4010
- const desktopSortDropdownRef = (0, import_react40.useRef)(null);
4011
- const mobileSortDropdownRef = (0, import_react40.useRef)(null);
4012
- (0, import_react40.useEffect)(() => {
4141
+ const [collapsedCategories, setCollapsedCategories] = (0, import_react41.useState)({});
4142
+ const [isSortOpen, setIsSortOpen] = (0, import_react41.useState)(false);
4143
+ const [isMobileFiltersOpen, setIsMobileFiltersOpen] = (0, import_react41.useState)(false);
4144
+ const [facetCategorySearch, setFacetCategorySearch] = (0, import_react41.useState)({});
4145
+ const desktopSortDropdownRef = (0, import_react41.useRef)(null);
4146
+ const mobileSortDropdownRef = (0, import_react41.useRef)(null);
4147
+ (0, import_react41.useEffect)(() => {
4013
4148
  const handleClickOutside = (event) => {
4014
4149
  const target = event.target;
4015
4150
  const clickedInsideDesktop = desktopSortDropdownRef.current?.contains(target);
@@ -4035,15 +4170,15 @@ var init_DataBindingControls = __esm({
4035
4170
  const currentSearch = parseODataSearch(
4036
4171
  searchParamsSearch !== void 0 && searchParamsSearch !== null ? searchParamsSearch : query?.["$search"]
4037
4172
  );
4038
- const [searchText, setSearchText] = (0, import_react40.useState)(currentSearch);
4039
- (0, import_react40.useEffect)(() => {
4173
+ const [searchText, setSearchText] = (0, import_react41.useState)(currentSearch);
4174
+ (0, import_react41.useEffect)(() => {
4040
4175
  setSearchText(currentSearch);
4041
4176
  }, [currentSearch]);
4042
- const selectedFacetValues = (0, import_react40.useMemo)(
4177
+ const selectedFacetValues = (0, import_react41.useMemo)(
4043
4178
  () => parseFacetSelections(currentFilter),
4044
4179
  [currentFilter]
4045
4180
  );
4046
- (0, import_react40.useEffect)(() => {
4181
+ (0, import_react41.useEffect)(() => {
4047
4182
  if (isMobileFiltersOpen) {
4048
4183
  document.body.style.overflow = "hidden";
4049
4184
  } else {
@@ -4053,7 +4188,7 @@ var init_DataBindingControls = __esm({
4053
4188
  document.body.style.overflow = "";
4054
4189
  };
4055
4190
  }, [isMobileFiltersOpen]);
4056
- const activeFacets = (0, import_react40.useMemo)(() => {
4191
+ const activeFacets = (0, import_react41.useMemo)(() => {
4057
4192
  const facetMap = /* @__PURE__ */ new Map();
4058
4193
  if (facets) {
4059
4194
  Object.entries(facets).forEach(([field, values]) => {
@@ -4078,11 +4213,11 @@ var init_DataBindingControls = __esm({
4078
4213
  });
4079
4214
  return Array.from(facetMap.entries());
4080
4215
  }, [facets, selectedFacetValues]);
4081
- const normalizedSortOptions = (0, import_react40.useMemo)(
4216
+ const normalizedSortOptions = (0, import_react41.useMemo)(
4082
4217
  () => (sortOptions ?? []).filter((option) => option?.name && option?.direction).map(normalizeSortOption).filter((option) => option.value),
4083
4218
  [sortOptions]
4084
4219
  );
4085
- const selectedSortOption = (0, import_react40.useMemo)(() => {
4220
+ const selectedSortOption = (0, import_react41.useMemo)(() => {
4086
4221
  if (!normalizedSortOptions.length) return null;
4087
4222
  const trimmedCurrentSort = currentSort.trim().toLowerCase();
4088
4223
  if (!trimmedCurrentSort) return normalizedSortOptions[0];
@@ -4091,7 +4226,7 @@ var init_DataBindingControls = __esm({
4091
4226
  ) || normalizedSortOptions[0];
4092
4227
  }, [normalizedSortOptions, currentSort]);
4093
4228
  const selectedSortLabel = selectedSortOption?.label || "";
4094
- const getQueryUrl = (0, import_react40.useCallback)(
4229
+ const getQueryUrl = (0, import_react41.useCallback)(
4095
4230
  (updates) => {
4096
4231
  const initialParams = searchParams ? searchParams.toString() : "";
4097
4232
  const params = new URLSearchParams(initialParams || query || {});
@@ -4109,7 +4244,7 @@ var init_DataBindingControls = __esm({
4109
4244
  },
4110
4245
  [path, query, searchParams]
4111
4246
  );
4112
- const navigateWithoutReload = (0, import_react40.useCallback)(
4247
+ const navigateWithoutReload = (0, import_react41.useCallback)(
4113
4248
  (url) => {
4114
4249
  if (typeof window !== "undefined") {
4115
4250
  const targetUrl = new URL(url, window.location.origin);
@@ -4121,7 +4256,7 @@ var init_DataBindingControls = __esm({
4121
4256
  },
4122
4257
  [router]
4123
4258
  );
4124
- const handleSelectSort = (0, import_react40.useCallback)(
4259
+ const handleSelectSort = (0, import_react41.useCallback)(
4125
4260
  (sortValue) => {
4126
4261
  setIsSortOpen(false);
4127
4262
  navigateWithoutReload(
@@ -4161,7 +4296,7 @@ var init_DataBindingControls = __esm({
4161
4296
  })
4162
4297
  );
4163
4298
  };
4164
- const handleSearch = (0, import_react40.useCallback)(async () => {
4299
+ const handleSearch = (0, import_react41.useCallback)(async () => {
4165
4300
  const trimmedSearchText = searchText.trim();
4166
4301
  if (trimmedSearchText === currentSearch.trim()) {
4167
4302
  return { isSuccessful: true };
@@ -4173,7 +4308,7 @@ var init_DataBindingControls = __esm({
4173
4308
  );
4174
4309
  return { isSuccessful: true };
4175
4310
  }, [currentSearch, getQueryUrl, navigateWithoutReload, searchText]);
4176
- const handleClearAll = (0, import_react40.useCallback)(async () => {
4311
+ const handleClearAll = (0, import_react41.useCallback)(async () => {
4177
4312
  navigateWithoutReload(
4178
4313
  getQueryUrl({
4179
4314
  $filter: void 0,
@@ -4196,9 +4331,9 @@ var init_DataBindingControls = __esm({
4196
4331
  if (!shouldShowToolbar && !shouldShowFacets) {
4197
4332
  return null;
4198
4333
  }
4199
- const renderFacetItems = (field, values) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex flex-col gap-1 pt-1 pb-1", children: values.map((facet) => {
4334
+ const renderFacetItems = (field, values) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex flex-col gap-1 pt-1 pb-1", children: values.map((facet) => {
4200
4335
  const isSelected = selectedFacetValues.get(field) === facet.value;
4201
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4336
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4202
4337
  "button",
4203
4338
  {
4204
4339
  type: "button",
@@ -4206,17 +4341,17 @@ var init_DataBindingControls = __esm({
4206
4341
  "aria-pressed": isSelected,
4207
4342
  className: `group flex w-full cursor-pointer items-center justify-between gap-2.5 rounded-md px-2 py-1.5 text-left text-sm transition-all duration-150 ease-out focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-base ${isSelected ? "bg-neutral-soft font-medium border border-neutral-soft" : "hover:bg-neutral-weak border border-transparent"}`,
4208
4343
  children: [
4209
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex min-w-0 items-center gap-2.5", children: [
4210
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4344
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex min-w-0 items-center gap-2.5", children: [
4345
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4211
4346
  "span",
4212
4347
  {
4213
4348
  className: `flex h-4 w-4 shrink-0 items-center justify-center rounded-[3px] border transition-colors duration-150 ${isSelected ? "bg-primary-base border-primary-base" : " group-hover:border-neutral-strong bg-default border-neutral-soft"}`,
4214
- children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { className: "h-3 w-3" })
4349
+ children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { className: "h-3 w-3" })
4215
4350
  }
4216
4351
  ),
4217
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "leading-snug break-words", children: facet.value })
4352
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "leading-snug break-words", children: facet.value })
4218
4353
  ] }),
4219
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4354
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4220
4355
  "span",
4221
4356
  {
4222
4357
  className: `shrink-0 rounded px-1.5 py-0.5 text-xs transition-colors ml-2 ${isSelected ? "bg-neutral-weak font-semibold" : "bg-neutral-weak font-normal"}`,
@@ -4228,14 +4363,14 @@ var init_DataBindingControls = __esm({
4228
4363
  `${field}-${facet.value}`
4229
4364
  );
4230
4365
  }) });
4231
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4366
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4232
4367
  "div",
4233
4368
  {
4234
4369
  className: mode === "toolbar" ? "my-4 sm:my-6" : "flex flex-col rounded-md border border-neutral-soft bg-default p-4 shadow-sm",
4235
4370
  children: [
4236
- shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-3", children: [
4237
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "hidden lg:flex lg:items-center lg:justify-between lg:gap-4", children: [
4238
- showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4371
+ shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-3", children: [
4372
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "hidden lg:flex lg:items-center lg:justify-between lg:gap-4", children: [
4373
+ showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4239
4374
  "form",
4240
4375
  {
4241
4376
  role: "search",
@@ -4245,9 +4380,9 @@ var init_DataBindingControls = __esm({
4245
4380
  void handleSearch();
4246
4381
  },
4247
4382
  children: [
4248
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative min-w-0 flex-1", children: [
4249
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SearchIcon, { className: "pointer-events-none absolute left-3.5 top-1/2 z-10 h-4 w-4 -translate-y-1/2 opacity-60" }),
4250
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4383
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative min-w-0 flex-1", children: [
4384
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SearchIcon, { className: "pointer-events-none absolute left-3.5 top-1/2 z-10 h-4 w-4 -translate-y-1/2 opacity-60" }),
4385
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4251
4386
  "input",
4252
4387
  {
4253
4388
  type: "text",
@@ -4259,23 +4394,23 @@ var init_DataBindingControls = __esm({
4259
4394
  }
4260
4395
  )
4261
4396
  ] }),
4262
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4397
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4263
4398
  Button_default,
4264
4399
  {
4265
4400
  ButtonType: "Primary" /* Solid */,
4266
4401
  onClick: handleSearch,
4267
4402
  className: "!h-10 !rounded-md !px-5 !py-0 flex items-center justify-center gap-1.5 shrink-0",
4268
4403
  children: [
4269
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SearchIcon, { className: "h-4 w-4" }),
4270
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: "Search" })
4404
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SearchIcon, { className: "h-4 w-4" }),
4405
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: "Search" })
4271
4406
  ]
4272
4407
  }
4273
4408
  )
4274
4409
  ]
4275
4410
  }
4276
4411
  ),
4277
- hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative shrink-0", ref: desktopSortDropdownRef, children: [
4278
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4412
+ hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative shrink-0", ref: desktopSortDropdownRef, children: [
4413
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4279
4414
  "button",
4280
4415
  {
4281
4416
  type: "button",
@@ -4283,11 +4418,11 @@ var init_DataBindingControls = __esm({
4283
4418
  "aria-expanded": isSortOpen,
4284
4419
  className: "inline-flex h-10 items-center justify-between gap-2.5 rounded-md border border-neutral-soft bg-default px-3.5 text-sm font-normal shadow-sm transition-all hover:bg-neutral-weak focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-base cursor-pointer whitespace-nowrap",
4285
4420
  children: [
4286
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "whitespace-nowrap", children: [
4287
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "opacity-70", children: "Sort by: " }),
4288
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-semibold", children: selectedSortLabel })
4421
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "whitespace-nowrap", children: [
4422
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "opacity-70", children: "Sort by: " }),
4423
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-semibold", children: selectedSortLabel })
4289
4424
  ] }),
4290
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4425
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4291
4426
  ChevronDownIcon,
4292
4427
  {
4293
4428
  className: `h-4 w-4 shrink-0 transition-transform duration-200 ${isSortOpen ? "rotate-180" : ""}`
@@ -4296,17 +4431,17 @@ var init_DataBindingControls = __esm({
4296
4431
  ]
4297
4432
  }
4298
4433
  ),
4299
- isSortOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "absolute right-0 z-50 mt-1.5 w-max min-w-full max-h-80 overflow-y-auto rounded-md border border-neutral-soft bg-default p-1 shadow-lg", children: normalizedSortOptions.map((option) => {
4434
+ isSortOpen && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "absolute right-0 z-50 mt-1.5 w-max min-w-full max-h-80 overflow-y-auto rounded-md border border-neutral-soft bg-default p-1 shadow-lg", children: normalizedSortOptions.map((option) => {
4300
4435
  const isSelected = selectedSortOption?.value === option.value;
4301
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4436
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4302
4437
  "button",
4303
4438
  {
4304
4439
  type: "button",
4305
4440
  onClick: () => handleSelectSort(option.value),
4306
4441
  className: `flex w-full items-center justify-between gap-4 rounded-md px-3 py-1.5 text-left text-sm transition-colors cursor-pointer whitespace-nowrap ${isSelected ? "bg-primary-base font-semibold" : "hover:bg-neutral-soft font-normal"}`,
4307
4442
  children: [
4308
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "whitespace-nowrap", children: option.label }),
4309
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { className: "h-4 w-4 shrink-0" })
4443
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "whitespace-nowrap", children: option.label }),
4444
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { className: "h-4 w-4 shrink-0" })
4310
4445
  ]
4311
4446
  },
4312
4447
  option.value
@@ -4314,8 +4449,8 @@ var init_DataBindingControls = __esm({
4314
4449
  }) })
4315
4450
  ] })
4316
4451
  ] }),
4317
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-2.5 lg:hidden", children: [
4318
- showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4452
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-2.5 lg:hidden", children: [
4453
+ showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4319
4454
  "form",
4320
4455
  {
4321
4456
  role: "search",
@@ -4325,8 +4460,8 @@ var init_DataBindingControls = __esm({
4325
4460
  void handleSearch();
4326
4461
  },
4327
4462
  children: [
4328
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SearchIcon, { className: "pointer-events-none absolute left-3.5 top-1/2 z-10 h-4 w-4 -translate-y-1/2 opacity-50" }),
4329
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4463
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SearchIcon, { className: "pointer-events-none absolute left-3.5 top-1/2 z-10 h-4 w-4 -translate-y-1/2 opacity-50" }),
4464
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4330
4465
  "input",
4331
4466
  {
4332
4467
  type: "text",
@@ -4340,28 +4475,28 @@ var init_DataBindingControls = __esm({
4340
4475
  ]
4341
4476
  }
4342
4477
  ),
4343
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-between gap-2.5 pt-0.5", children: [
4344
- showFacets && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4478
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center justify-between gap-2.5 pt-0.5", children: [
4479
+ showFacets && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4345
4480
  "button",
4346
4481
  {
4347
4482
  type: "button",
4348
4483
  onClick: () => setIsMobileFiltersOpen(true),
4349
4484
  className: "inline-flex h-10 items-center justify-center gap-2 rounded-md border border-neutral-soft bg-default px-3.5 text-sm font-medium shadow-sm transition-all hover:bg-neutral-weak cursor-pointer active:scale-95",
4350
4485
  children: [
4351
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(FilterSlidersIcon, { className: "h-4 w-4" }),
4352
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { children: [
4486
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FilterSlidersIcon, { className: "h-4 w-4" }),
4487
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { children: [
4353
4488
  "Filters",
4354
4489
  selectedFacetCount > 0 ? ` (${selectedFacetCount})` : ""
4355
4490
  ] }),
4356
- selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "relative flex h-2 w-2", children: [
4357
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-primary-base opacity-75" }),
4358
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-primary-base" })
4491
+ selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "relative flex h-2 w-2", children: [
4492
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-primary-base opacity-75" }),
4493
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-primary-base" })
4359
4494
  ] })
4360
4495
  ]
4361
4496
  }
4362
4497
  ),
4363
- hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative shrink-0 ml-auto", ref: mobileSortDropdownRef, children: [
4364
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4498
+ hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative shrink-0 ml-auto", ref: mobileSortDropdownRef, children: [
4499
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4365
4500
  "button",
4366
4501
  {
4367
4502
  type: "button",
@@ -4369,8 +4504,8 @@ var init_DataBindingControls = __esm({
4369
4504
  "aria-expanded": isSortOpen,
4370
4505
  className: "inline-flex h-10 items-center justify-between gap-2 rounded-md border border-neutral-soft bg-default px-3.5 text-sm font-medium shadow-sm transition-all hover:bg-neutral-weak cursor-pointer whitespace-nowrap",
4371
4506
  children: [
4372
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "whitespace-nowrap font-medium", children: selectedSortLabel }),
4373
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4507
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "whitespace-nowrap font-medium", children: selectedSortLabel }),
4508
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4374
4509
  ChevronDownIcon,
4375
4510
  {
4376
4511
  className: `h-4 w-4 shrink-0 transition-transform duration-200 ${isSortOpen ? "rotate-180" : ""}`
@@ -4379,17 +4514,17 @@ var init_DataBindingControls = __esm({
4379
4514
  ]
4380
4515
  }
4381
4516
  ),
4382
- isSortOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "absolute right-0 z-50 mt-1.5 w-max min-w-[160px] max-h-80 overflow-y-auto rounded-md border border-neutral-soft bg-default p-1 shadow-xl", children: normalizedSortOptions.map((option) => {
4517
+ isSortOpen && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "absolute right-0 z-50 mt-1.5 w-max min-w-[160px] max-h-80 overflow-y-auto rounded-md border border-neutral-soft bg-default p-1 shadow-xl", children: normalizedSortOptions.map((option) => {
4383
4518
  const isSelected = selectedSortOption?.value === option.value;
4384
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4519
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4385
4520
  "button",
4386
4521
  {
4387
4522
  type: "button",
4388
4523
  onClick: () => handleSelectSort(option.value),
4389
4524
  className: `flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-left text-sm transition-colors cursor-pointer whitespace-nowrap ${isSelected ? "bg-primary-base font-semibold" : "hover:bg-neutral-soft font-normal"}`,
4390
4525
  children: [
4391
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "whitespace-nowrap", children: option.label }),
4392
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { className: "h-4 w-4 shrink-0" })
4526
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "whitespace-nowrap", children: option.label }),
4527
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { className: "h-4 w-4 shrink-0" })
4393
4528
  ]
4394
4529
  },
4395
4530
  option.value
@@ -4397,8 +4532,8 @@ var init_DataBindingControls = __esm({
4397
4532
  }) })
4398
4533
  ] })
4399
4534
  ] }),
4400
- selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-wrap items-center gap-1.5 pt-1", children: [
4401
- Array.from(selectedFacetValues.entries()).map(([field, value]) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4535
+ selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-wrap items-center gap-1.5 pt-1", children: [
4536
+ Array.from(selectedFacetValues.entries()).map(([field, value]) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4402
4537
  "button",
4403
4538
  {
4404
4539
  type: "button",
@@ -4406,13 +4541,13 @@ var init_DataBindingControls = __esm({
4406
4541
  className: "group inline-flex max-w-full cursor-pointer items-center gap-1.5 rounded-md border border-neutral-soft bg-neutral-weak px-2.5 py-1 text-xs transition-colors hover:bg-neutral-soft",
4407
4542
  title: `Remove filter: ${value}`,
4408
4543
  children: [
4409
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-medium truncate max-w-[140px]", children: value }),
4410
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CloseIcon, { className: "h-3 w-3 shrink-0 opacity-60 group-hover:opacity-100" })
4544
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-medium truncate max-w-[140px]", children: value }),
4545
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CloseIcon, { className: "h-3 w-3 shrink-0 opacity-60 group-hover:opacity-100" })
4411
4546
  ]
4412
4547
  },
4413
4548
  `mobile-chip-${field}`
4414
4549
  )),
4415
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4550
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4416
4551
  "button",
4417
4552
  {
4418
4553
  type: "button",
@@ -4423,8 +4558,8 @@ var init_DataBindingControls = __esm({
4423
4558
  )
4424
4559
  ] })
4425
4560
  ] }),
4426
- isMobileFiltersOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "fixed inset-0 z-50 flex flex-col justify-end lg:hidden", children: [
4427
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4561
+ isMobileFiltersOpen && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "fixed inset-0 z-50 flex flex-col justify-end lg:hidden", children: [
4562
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4428
4563
  "div",
4429
4564
  {
4430
4565
  className: "fixed inset-0 bg-neutral-stronger/60 backdrop-blur-xs transition-opacity duration-300",
@@ -4432,12 +4567,12 @@ var init_DataBindingControls = __esm({
4432
4567
  "aria-hidden": "true"
4433
4568
  }
4434
4569
  ),
4435
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative z-10 flex h-[85vh] max-h-[85vh] w-full flex-col rounded-t-xl border-t border-neutral-soft bg-default shadow-2xl transition-transform duration-300 animate-in slide-in-from-bottom", children: [
4436
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "pt-2.5 pb-1", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "mx-auto h-1.5 w-12 rounded-full bg-neutral-soft" }) }),
4437
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-between px-5 py-3 border-b border-neutral-soft", children: [
4438
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h2", { className: "text-lg font-bold tracking-tight", children: "Filters" }),
4439
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-3", children: [
4440
- selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4570
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative z-10 flex h-[85vh] max-h-[85vh] w-full flex-col rounded-t-xl border-t border-neutral-soft bg-default shadow-2xl transition-transform duration-300 animate-in slide-in-from-bottom", children: [
4571
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "pt-2.5 pb-1", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mx-auto h-1.5 w-12 rounded-full bg-neutral-soft" }) }),
4572
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center justify-between px-5 py-3 border-b border-neutral-soft", children: [
4573
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h2", { className: "text-lg font-bold tracking-tight", children: "Filters" }),
4574
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-3", children: [
4575
+ selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4441
4576
  "button",
4442
4577
  {
4443
4578
  type: "button",
@@ -4446,38 +4581,38 @@ var init_DataBindingControls = __esm({
4446
4581
  children: "Clear all"
4447
4582
  }
4448
4583
  ),
4449
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4584
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4450
4585
  "button",
4451
4586
  {
4452
4587
  type: "button",
4453
4588
  onClick: () => setIsMobileFiltersOpen(false),
4454
4589
  className: "p-1 rounded-full hover:bg-neutral-weak transition-colors cursor-pointer",
4455
4590
  "aria-label": "Close filters",
4456
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CloseIcon, { className: "h-5 w-5 opacity-70" })
4591
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CloseIcon, { className: "h-5 w-5 opacity-70" })
4457
4592
  }
4458
4593
  )
4459
4594
  ] })
4460
4595
  ] }),
4461
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex-1 overflow-y-auto px-5 py-3 space-y-3 divide-y divide-neutral-soft", children: activeFacets.map(([field, values]) => {
4596
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex-1 overflow-y-auto px-5 py-3 space-y-3 divide-y divide-neutral-soft", children: activeFacets.map(([field, values]) => {
4462
4597
  const isOpen = !collapsedCategories[field];
4463
4598
  const selectedValue = selectedFacetValues.get(field);
4464
4599
  const categorySearch = facetCategorySearch[field]?.toLowerCase() || "";
4465
4600
  const filteredValues = categorySearch ? values.filter((v) => v.value.toLowerCase().includes(categorySearch)) : values;
4466
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "pt-3 first:pt-0", children: [
4467
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4601
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "pt-3 first:pt-0", children: [
4602
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4468
4603
  "button",
4469
4604
  {
4470
4605
  type: "button",
4471
4606
  onClick: () => toggleCategory(field),
4472
4607
  className: "flex w-full cursor-pointer items-center justify-between rounded-md py-2 text-left transition-colors",
4473
4608
  children: [
4474
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2.5", children: [
4475
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-neutral-soft bg-neutral-weak", children: getCategoryIcon(field) }),
4476
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-semibold text-sm", children: humanize(field) })
4609
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2.5", children: [
4610
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-neutral-soft bg-neutral-weak", children: getCategoryIcon(field) }),
4611
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-semibold text-sm", children: humanize(field) })
4477
4612
  ] }),
4478
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2", children: [
4479
- selectedValue && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary-base text-xs font-bold leading-none", children: "1" }),
4480
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4613
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2", children: [
4614
+ selectedValue && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary-base text-xs font-bold leading-none", children: "1" }),
4615
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4481
4616
  ChevronDownIcon,
4482
4617
  {
4483
4618
  className: `h-4 w-4 transition-transform duration-200 ${isOpen ? "rotate-180" : ""}`
@@ -4487,10 +4622,10 @@ var init_DataBindingControls = __esm({
4487
4622
  ]
4488
4623
  }
4489
4624
  ),
4490
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "pt-2 pb-1 pl-1 pr-1 space-y-1.5", children: [
4491
- values.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative mb-2", children: [
4492
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SearchIcon, { className: "pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 opacity-50" }),
4493
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4625
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "pt-2 pb-1 pl-1 pr-1 space-y-1.5", children: [
4626
+ values.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative mb-2", children: [
4627
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SearchIcon, { className: "pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 opacity-50" }),
4628
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4494
4629
  "input",
4495
4630
  {
4496
4631
  type: "text",
@@ -4504,9 +4639,9 @@ var init_DataBindingControls = __esm({
4504
4639
  }
4505
4640
  )
4506
4641
  ] }),
4507
- filteredValues.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "py-2 text-center text-xs opacity-60", children: "No matching options" }) : filteredValues.map((facet) => {
4642
+ filteredValues.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "py-2 text-center text-xs opacity-60", children: "No matching options" }) : filteredValues.map((facet) => {
4508
4643
  const isChecked = selectedValue === facet.value;
4509
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4644
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4510
4645
  "button",
4511
4646
  {
4512
4647
  type: "button",
@@ -4516,17 +4651,17 @@ var init_DataBindingControls = __esm({
4516
4651
  "aria-pressed": isChecked,
4517
4652
  className: `flex w-full cursor-pointer items-center justify-between gap-3 rounded-md px-2.5 py-2 text-left text-sm transition-colors ${isChecked ? "bg-neutral-soft font-medium" : "hover:bg-neutral-weak"}`,
4518
4653
  children: [
4519
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
4520
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4654
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
4655
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4521
4656
  "span",
4522
4657
  {
4523
4658
  className: `flex h-5 w-5 shrink-0 items-center justify-center rounded-md border transition-colors ${isChecked ? "bg-primary-base border-primary-base" : "border-neutral-soft bg-default"}`,
4524
- children: isChecked && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { className: "h-3.5 w-3.5" })
4659
+ children: isChecked && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { className: "h-3.5 w-3.5" })
4525
4660
  }
4526
4661
  ),
4527
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "leading-snug break-words", children: facet.value })
4662
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "leading-snug break-words", children: facet.value })
4528
4663
  ] }),
4529
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "shrink-0 text-xs opacity-60 ml-2", children: facet.count })
4664
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "shrink-0 text-xs opacity-60 ml-2", children: facet.count })
4530
4665
  ]
4531
4666
  },
4532
4667
  `drawer-${field}-${facet.value}`
@@ -4535,8 +4670,8 @@ var init_DataBindingControls = __esm({
4535
4670
  ] })
4536
4671
  ] }, `drawer-cat-${field}`);
4537
4672
  }) }),
4538
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-3 border-t border-neutral-soft bg-default p-4", children: [
4539
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4673
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-3 border-t border-neutral-soft bg-default p-4", children: [
4674
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4540
4675
  "button",
4541
4676
  {
4542
4677
  type: "button",
@@ -4545,7 +4680,7 @@ var init_DataBindingControls = __esm({
4545
4680
  children: "Close"
4546
4681
  }
4547
4682
  ),
4548
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4683
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4549
4684
  "button",
4550
4685
  {
4551
4686
  type: "button",
@@ -4561,14 +4696,14 @@ var init_DataBindingControls = __esm({
4561
4696
  ] })
4562
4697
  ] })
4563
4698
  ] }),
4564
- shouldShowFacets && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-3", children: [
4565
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-between border-b border-neutral-soft pb-3", children: [
4566
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2", children: [
4567
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(FilterSlidersIcon, { className: "h-4 w-4" }),
4568
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h2", { className: "text-base font-semibold tracking-tight", children: "Filters" }),
4569
- selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "flex h-5 items-center justify-center rounded-full bg-primary-base px-2 text-xs font-semibold", children: selectedFacetCount })
4699
+ shouldShowFacets && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-3", children: [
4700
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center justify-between border-b border-neutral-soft pb-3", children: [
4701
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2", children: [
4702
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FilterSlidersIcon, { className: "h-4 w-4" }),
4703
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h2", { className: "text-base font-semibold tracking-tight", children: "Filters" }),
4704
+ selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "flex h-5 items-center justify-center rounded-full bg-primary-base px-2 text-xs font-semibold", children: selectedFacetCount })
4570
4705
  ] }),
4571
- hasActiveFiltersOrSort && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4706
+ hasActiveFiltersOrSort && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4572
4707
  "button",
4573
4708
  {
4574
4709
  type: "button",
@@ -4576,13 +4711,13 @@ var init_DataBindingControls = __esm({
4576
4711
  className: "group inline-flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium transition-colors duration-150 hover:bg-neutral-soft focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-base",
4577
4712
  "aria-label": "Clear all filters and sorting",
4578
4713
  children: [
4579
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ResetIcon, { className: "h-3.5 w-3.5 transition-transform duration-200 group-hover:-rotate-45" }),
4580
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: "Clear all" })
4714
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ResetIcon, { className: "h-3.5 w-3.5 transition-transform duration-200 group-hover:-rotate-45" }),
4715
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: "Clear all" })
4581
4716
  ]
4582
4717
  }
4583
4718
  )
4584
4719
  ] }),
4585
- selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex flex-wrap gap-1.5 pb-2.5 border-b border-neutral-soft", children: Array.from(selectedFacetValues.entries()).map(([field, value]) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4720
+ selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex flex-wrap gap-1.5 pb-2.5 border-b border-neutral-soft", children: Array.from(selectedFacetValues.entries()).map(([field, value]) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4586
4721
  "button",
4587
4722
  {
4588
4723
  type: "button",
@@ -4590,35 +4725,35 @@ var init_DataBindingControls = __esm({
4590
4725
  className: "group inline-flex max-w-full cursor-pointer items-center gap-1.5 rounded-md border border-neutral-soft bg-neutral-weak px-2.5 py-1 text-xs transition-colors hover:bg-neutral-soft",
4591
4726
  title: `Remove filter: ${value}`,
4592
4727
  children: [
4593
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-medium truncate max-w-[150px]", children: value }),
4594
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CloseIcon, { className: "h-3.5 w-3.5 shrink-0 opacity-60 group-hover:opacity-100" })
4728
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-medium truncate max-w-[150px]", children: value }),
4729
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CloseIcon, { className: "h-3.5 w-3.5 shrink-0 opacity-60 group-hover:opacity-100" })
4595
4730
  ]
4596
4731
  },
4597
4732
  `chip-${field}`
4598
4733
  )) }),
4599
- activeFacets.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("nav", { "aria-label": `${humanize(activeFacets[0][0])} filters`, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "py-1", children: [
4600
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "px-1 pb-2 font-medium text-sm", children: humanize(activeFacets[0][0]) }),
4734
+ activeFacets.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("nav", { "aria-label": `${humanize(activeFacets[0][0])} filters`, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "py-1", children: [
4735
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "px-1 pb-2 font-medium text-sm", children: humanize(activeFacets[0][0]) }),
4601
4736
  renderFacetItems(activeFacets[0][0], activeFacets[0][1])
4602
4737
  ] }) }),
4603
- activeFacets.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex flex-col divide-y divide-neutral-soft", children: activeFacets.map(([field, values]) => {
4738
+ activeFacets.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex flex-col divide-y divide-neutral-soft", children: activeFacets.map(([field, values]) => {
4604
4739
  const isOpen = !collapsedCategories[field];
4605
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4740
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4606
4741
  "div",
4607
4742
  {
4608
4743
  className: "py-2 first:pt-0 last:pb-0",
4609
4744
  children: [
4610
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4745
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4611
4746
  "button",
4612
4747
  {
4613
4748
  type: "button",
4614
4749
  onClick: () => toggleCategory(field),
4615
4750
  className: "flex w-full cursor-pointer items-center justify-between rounded-md px-1.5 py-1.5 text-sm font-semibold transition-colors duration-150 hover:bg-neutral-weak focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-base",
4616
4751
  children: [
4617
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2", children: [
4618
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded border border-neutral-soft bg-neutral-weak", children: getCategoryIcon(field) }),
4619
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: humanize(field) })
4752
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2", children: [
4753
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded border border-neutral-soft bg-neutral-weak", children: getCategoryIcon(field) }),
4754
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: humanize(field) })
4620
4755
  ] }),
4621
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4756
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4622
4757
  ChevronDownIcon,
4623
4758
  {
4624
4759
  className: `h-4 w-4 transition-transform duration-200 ease-out ${isOpen ? "rotate-180" : ""}`
@@ -4627,7 +4762,7 @@ var init_DataBindingControls = __esm({
4627
4762
  ]
4628
4763
  }
4629
4764
  ),
4630
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "pt-1", children: renderFacetItems(field, values) })
4765
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "pt-1", children: renderFacetItems(field, values) })
4631
4766
  ]
4632
4767
  },
4633
4768
  field
@@ -4647,13 +4782,13 @@ var Slider_exports = {};
4647
4782
  __export(Slider_exports, {
4648
4783
  default: () => Slider_default
4649
4784
  });
4650
- var import_react41, import_jsx_runtime68, Slider, ArrowButton, ProgressPill, Slider_default;
4785
+ var import_react42, import_jsx_runtime70, Slider, ArrowButton, ProgressPill, Slider_default;
4651
4786
  var init_Slider = __esm({
4652
4787
  "src/components/Slider.tsx"() {
4653
4788
  "use strict";
4654
4789
  "use client";
4655
- import_react41 = __toESM(require("react"));
4656
- import_jsx_runtime68 = require("react/jsx-runtime");
4790
+ import_react42 = __toESM(require("react"));
4791
+ import_jsx_runtime70 = require("react/jsx-runtime");
4657
4792
  Slider = ({
4658
4793
  children,
4659
4794
  columns,
@@ -4674,17 +4809,17 @@ var init_Slider = __esm({
4674
4809
  progressPosition = "bottom",
4675
4810
  scrollByColumns = false
4676
4811
  }) => {
4677
- const [currentSlide, setCurrentSlide] = (0, import_react41.useState)(0);
4678
- const [transition, setTransition] = (0, import_react41.useState)(true);
4812
+ const [currentSlide, setCurrentSlide] = (0, import_react42.useState)(0);
4813
+ const [transition, setTransition] = (0, import_react42.useState)(true);
4679
4814
  const initialSlidesToShow = slidesToShow ?? columns ?? 4;
4680
- const [slidesToShowState, setSlidesToShowState] = (0, import_react41.useState)(
4815
+ const [slidesToShowState, setSlidesToShowState] = (0, import_react42.useState)(
4681
4816
  typeof initialSlidesToShow === "number" ? initialSlidesToShow : initialSlidesToShow.large
4682
4817
  );
4683
- const [isPlaying, setIsPlaying] = (0, import_react41.useState)(autoplay);
4684
- const trackRef = (0, import_react41.useRef)(null);
4818
+ const [isPlaying, setIsPlaying] = (0, import_react42.useState)(autoplay);
4819
+ const trackRef = (0, import_react42.useRef)(null);
4685
4820
  console.log("trackRef:", trackRef);
4686
- const [videoProgress, setVideoProgress] = (0, import_react41.useState)(null);
4687
- (0, import_react41.useEffect)(() => {
4821
+ const [videoProgress, setVideoProgress] = (0, import_react42.useState)(null);
4822
+ (0, import_react42.useEffect)(() => {
4688
4823
  if (typeof initialSlidesToShow === "number") {
4689
4824
  setSlidesToShowState(initialSlidesToShow);
4690
4825
  return;
@@ -4702,7 +4837,7 @@ var init_Slider = __esm({
4702
4837
  window.addEventListener("resize", handleResize);
4703
4838
  return () => window.removeEventListener("resize", handleResize);
4704
4839
  }, [initialSlidesToShow]);
4705
- (0, import_react41.useEffect)(() => {
4840
+ (0, import_react42.useEffect)(() => {
4706
4841
  if (!autoplay) return;
4707
4842
  const activeSlideElement = trackRef.current?.children[currentSlide];
4708
4843
  const videoElement = activeSlideElement?.querySelector("video");
@@ -4747,7 +4882,7 @@ var init_Slider = __esm({
4747
4882
  }, autoplay_speed);
4748
4883
  return () => clearInterval(timer);
4749
4884
  }, [autoplay, autoplay_speed, currentSlide, isPlaying]);
4750
- const totalSlides = import_react41.Children.count(children);
4885
+ const totalSlides = import_react42.Children.count(children);
4751
4886
  const numColumns = columns ?? slidesToShowState;
4752
4887
  const slideWidthPercentage = (() => {
4753
4888
  if (typeof lastColPercentage !== "number") {
@@ -4813,24 +4948,24 @@ var init_Slider = __esm({
4813
4948
  }
4814
4949
  };
4815
4950
  const translateX = -currentSlide * slideWidthPercentage;
4816
- const slides = import_react41.Children.map(children, (child, index) => {
4817
- if (!import_react41.default.isValidElement(child)) return null;
4951
+ const slides = import_react42.Children.map(children, (child, index) => {
4952
+ if (!import_react42.default.isValidElement(child)) return null;
4818
4953
  const childProps = child.props;
4819
4954
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
4820
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4955
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4821
4956
  "div",
4822
4957
  {
4823
4958
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
4824
4959
  style: { width: `calc(${slideWidthPercentage}%)`, paddingRight: gap },
4825
- children: (0, import_react41.cloneElement)(child, {
4960
+ children: (0, import_react42.cloneElement)(child, {
4826
4961
  className: mergedClassName
4827
4962
  })
4828
4963
  },
4829
4964
  index
4830
4965
  );
4831
4966
  });
4832
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "w-full", children: [
4833
- show_dots && progressPosition === "top" && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex justify-center space-x-1.5 mb-4", children: slidePositions.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4967
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "w-full", children: [
4968
+ show_dots && progressPosition === "top" && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex justify-center space-x-1.5 mb-4", children: slidePositions.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4834
4969
  ProgressPill,
4835
4970
  {
4836
4971
  active: index === currentStepIndex,
@@ -4846,14 +4981,14 @@ var init_Slider = __esm({
4846
4981
  },
4847
4982
  index
4848
4983
  )) }),
4849
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
4984
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
4850
4985
  "div",
4851
4986
  {
4852
4987
  className: `relative w-full overflow-hidden ${className}`,
4853
4988
  onMouseEnter: handleMouseEnter,
4854
4989
  onMouseLeave: handleMouseLeave,
4855
4990
  children: [
4856
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4991
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4857
4992
  "div",
4858
4993
  {
4859
4994
  ref: trackRef,
@@ -4865,32 +5000,32 @@ var init_Slider = __esm({
4865
5000
  children: slides
4866
5001
  }
4867
5002
  ),
4868
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
4869
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5003
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
5004
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4870
5005
  ArrowButton,
4871
5006
  {
4872
5007
  direction: "left",
4873
5008
  onClick: prevSlide,
4874
5009
  visible: infinite_scroll || currentSlide > 0,
4875
5010
  className: arrowClassName,
4876
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
5011
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
4877
5012
  }
4878
5013
  ),
4879
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5014
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4880
5015
  ArrowButton,
4881
5016
  {
4882
5017
  direction: "right",
4883
5018
  onClick: nextSlide,
4884
5019
  visible: infinite_scroll || currentSlide < maxSlide,
4885
5020
  className: arrowClassName,
4886
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) })
5021
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) })
4887
5022
  }
4888
5023
  )
4889
5024
  ] })
4890
5025
  ]
4891
5026
  }
4892
5027
  ),
4893
- show_dots && progressPosition !== "top" && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex justify-center space-x-1.5 mt-5", children: slidePositions.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5028
+ show_dots && progressPosition !== "top" && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex justify-center space-x-1.5 mt-5", children: slidePositions.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4894
5029
  ProgressPill,
4895
5030
  {
4896
5031
  active: index === currentStepIndex,
@@ -4914,7 +5049,7 @@ var init_Slider = __esm({
4914
5049
  visible,
4915
5050
  children,
4916
5051
  className = ""
4917
- }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5052
+ }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4918
5053
  "button",
4919
5054
  {
4920
5055
  className: `
@@ -4940,13 +5075,13 @@ var init_Slider = __esm({
4940
5075
  currentStep,
4941
5076
  customProgress = null
4942
5077
  }) => {
4943
- const [progress, setProgress] = (0, import_react41.useState)(0);
4944
- (0, import_react41.useEffect)(() => {
5078
+ const [progress, setProgress] = (0, import_react42.useState)(0);
5079
+ (0, import_react42.useEffect)(() => {
4945
5080
  if (active) {
4946
5081
  setProgress(0);
4947
5082
  }
4948
5083
  }, [active, index]);
4949
- (0, import_react41.useEffect)(() => {
5084
+ (0, import_react42.useEffect)(() => {
4950
5085
  if (!active || !isPlaying || customProgress !== null) {
4951
5086
  if (!active) {
4952
5087
  setProgress(0);
@@ -4999,7 +5134,7 @@ var init_Slider = __esm({
4999
5134
  const renderProgressBar = () => {
5000
5135
  if (style === "modern" && isActive) {
5001
5136
  const displayProgress = customProgress ?? progress;
5002
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5137
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5003
5138
  "div",
5004
5139
  {
5005
5140
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
@@ -5009,7 +5144,7 @@ var init_Slider = __esm({
5009
5144
  }
5010
5145
  return null;
5011
5146
  };
5012
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5147
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5013
5148
  "button",
5014
5149
  {
5015
5150
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -5034,7 +5169,7 @@ __export(server_exports, {
5034
5169
  module.exports = __toCommonJS(server_exports);
5035
5170
 
5036
5171
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
5037
- var import_react43 = __toESM(require("react"));
5172
+ var import_react44 = __toESM(require("react"));
5038
5173
 
5039
5174
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
5040
5175
  var import_react29 = __toESM(require("react"));
@@ -6249,8 +6384,8 @@ var WidgetNode = (props) => {
6249
6384
  var WidgetNode_default = WidgetNode;
6250
6385
 
6251
6386
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
6252
- var import_dynamic14 = __toESM(require("next/dynamic"));
6253
- var import_react42 = __toESM(require("react"));
6387
+ var import_dynamic16 = __toESM(require("next/dynamic"));
6388
+ var import_react43 = __toESM(require("react"));
6254
6389
 
6255
6390
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
6256
6391
  var import_dynamic11 = __toESM(require("next/dynamic"));
@@ -7439,13 +7574,112 @@ var GoogleMapNode = (props) => {
7439
7574
  };
7440
7575
  var GoogleMapNode_default = GoogleMapNode;
7441
7576
 
7577
+ // src/components/pageRenderingEngine/nodes/MediaAccordionNode.tsx
7578
+ var import_dynamic15 = __toESM(require("next/dynamic"));
7579
+ init_ServiceClient();
7580
+ var import_jsx_runtime62 = require("react/jsx-runtime");
7581
+ var MediaAccordionNodeClient2 = (0, import_dynamic15.default)(
7582
+ () => Promise.resolve().then(() => (init_MediaAccordionNodeClient(), MediaAccordionNodeClient_exports)),
7583
+ { ssr: false }
7584
+ );
7585
+ var getNestedValue6 = (value, path) => path.split(".").reduce((current, key) => {
7586
+ if (!current || typeof current !== "object") return void 0;
7587
+ return current[key];
7588
+ }, value);
7589
+ var getAssetUrl = (value) => {
7590
+ if (typeof value === "string") {
7591
+ const trimmed = value.trim();
7592
+ if (!trimmed) return {};
7593
+ try {
7594
+ return getAssetUrl(JSON.parse(trimmed));
7595
+ } catch {
7596
+ return { url: trimmed };
7597
+ }
7598
+ }
7599
+ if (Array.isArray(value)) {
7600
+ const image = value.find(
7601
+ (entry) => entry && typeof entry === "object" && "assetUrl" in entry
7602
+ );
7603
+ return getAssetUrl(image);
7604
+ }
7605
+ if (value && typeof value === "object") {
7606
+ const asset = value;
7607
+ return {
7608
+ url: typeof asset.assetUrl === "string" ? asset.assetUrl : void 0,
7609
+ posterUrl: typeof asset.posterUrl === "string" ? asset.posterUrl : void 0
7610
+ };
7611
+ }
7612
+ return {};
7613
+ };
7614
+ var fetchStoryItems = async (node, apiBaseUrl, session, routeParameters) => {
7615
+ const dataSource = node.dataSource?.trim();
7616
+ if (!dataSource) return void 0;
7617
+ const endpoint = dataSource.replace(
7618
+ /\{(\w+)\}/g,
7619
+ (placeholder, key) => routeParameters?.[key] == null ? placeholder : String(routeParameters[key])
7620
+ );
7621
+ try {
7622
+ const response = await new ServiceClient_default(apiBaseUrl, session).get(endpoint);
7623
+ if (!response?.isSuccessful) {
7624
+ console.error(
7625
+ "Story accordion API request failed:",
7626
+ response?.message || endpoint
7627
+ );
7628
+ return void 0;
7629
+ }
7630
+ const result = response.result;
7631
+ const records = Array.isArray(result) ? result : node.responseType === "object" && result ? [result] : [];
7632
+ return records.flatMap((record, index) => {
7633
+ const title = getNestedValue6(record, node.titleField || "title");
7634
+ const mappedMedia = getAssetUrl(
7635
+ getNestedValue6(record, node.mediaUrlField || "mediaUrl")
7636
+ );
7637
+ const explicitPoster = node.posterUrlField ? getAssetUrl(getNestedValue6(record, node.posterUrlField)).url : void 0;
7638
+ const mediaUrl = mappedMedia.url;
7639
+ if (!mediaUrl) return [];
7640
+ const typeValue = node.mediaTypeField ? getNestedValue6(record, node.mediaTypeField) : void 0;
7641
+ const mediaType = typeof typeValue === "string" ? typeValue.toLowerCase() === "video" ? "video" : "image" : /\.(mp4|webm|ogv|m3u8)(?:$|[?#])/i.test(mediaUrl) ? "video" : "image";
7642
+ return [
7643
+ {
7644
+ id: `api-story-${index}`,
7645
+ title: typeof title === "string" || typeof title === "number" ? String(title) : `Story ${index + 1}`,
7646
+ mediaUrl,
7647
+ posterUrl: explicitPoster || mappedMedia.posterUrl,
7648
+ mediaType
7649
+ }
7650
+ ];
7651
+ });
7652
+ } catch (error) {
7653
+ console.error("Story accordion API request failed:", error);
7654
+ return void 0;
7655
+ }
7656
+ };
7657
+ var MediaAccordionNode = async (props) => {
7658
+ const apiItems = await fetchStoryItems(
7659
+ props.node,
7660
+ props.apiBaseUrl,
7661
+ props.session,
7662
+ props.routeParameters
7663
+ );
7664
+ const node = apiItems ? { ...props.node, items: apiItems } : props.node;
7665
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
7666
+ MediaAccordionNodeClient2,
7667
+ {
7668
+ node,
7669
+ apiBaseUrl: props.apiBaseUrl,
7670
+ assetBaseUrl: props.assetBaseUrl
7671
+ }
7672
+ );
7673
+ };
7674
+ var MediaAccordionNode_default = MediaAccordionNode;
7675
+
7442
7676
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
7443
- var import_jsx_runtime69 = require("react/jsx-runtime");
7444
- var Pagination2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
7445
- var DataBindingControls2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
7677
+ var import_jsx_runtime71 = require("react/jsx-runtime");
7678
+ var Pagination2 = (0, import_dynamic16.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
7679
+ var DataBindingControls2 = (0, import_dynamic16.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
7446
7680
  ssr: true
7447
7681
  });
7448
- var Slider2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
7682
+ var Slider2 = (0, import_dynamic16.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
7449
7683
  ssr: false
7450
7684
  });
7451
7685
  function toCamelCase(str) {
@@ -7466,7 +7700,7 @@ function convertKeysToCamelCase(obj) {
7466
7700
  Object.entries(obj).filter(([_, value]) => value !== "" && value !== void 0).map(([key, value]) => [toCamelCase(key), convertKeysToCamelCase(value)])
7467
7701
  );
7468
7702
  }
7469
- var getNestedValue6 = (obj, path) => {
7703
+ var getNestedValue7 = (obj, path) => {
7470
7704
  if (!obj || !path) return void 0;
7471
7705
  return path.split(".").reduce((current, key) => {
7472
7706
  {
@@ -7511,7 +7745,7 @@ function generateCompleteBackgroundString(layers, apiBaseUrl, dataItem) {
7511
7745
  const imageValue = layer.value;
7512
7746
  let assetUrl = imageValue.assetUrl || "";
7513
7747
  if (layer.datafield && dataItem) {
7514
- const fieldValue = getNestedValue6(dataItem, layer.datafield);
7748
+ const fieldValue = getNestedValue7(dataItem, layer.datafield);
7515
7749
  const resolvedAssetUrl = resolveAssetUrl(fieldValue, layer.tag);
7516
7750
  if (resolvedAssetUrl) {
7517
7751
  assetUrl = resolvedAssetUrl;
@@ -7636,7 +7870,8 @@ var DivContainer = async (props) => {
7636
7870
  "svg-icon": SVGIconNode_default,
7637
7871
  document: DocumentNode_default,
7638
7872
  "google-map": GoogleMapNode_default,
7639
- counter: CounterNode_default
7873
+ counter: CounterNode_default,
7874
+ "story-accordion": MediaAccordionNode_default
7640
7875
  };
7641
7876
  const styles = props.node.cssProperties;
7642
7877
  const mobileStyles = props.node.mobileCssProperties;
@@ -7713,7 +7948,7 @@ var DivContainer = async (props) => {
7713
7948
  response = await serviceClient.get(endpoint);
7714
7949
  result = response?.result;
7715
7950
  if (dataBindingProperties.childCollectionName && props.dataitem) {
7716
- childCollectionData = getNestedValue6(
7951
+ childCollectionData = getNestedValue7(
7717
7952
  props.dataitem,
7718
7953
  dataBindingProperties.childCollectionName
7719
7954
  );
@@ -7735,7 +7970,7 @@ var DivContainer = async (props) => {
7735
7970
  }
7736
7971
  const SelectedNode = NodeTypes2[node.type];
7737
7972
  if (!SelectedNode) return null;
7738
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
7973
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7739
7974
  SelectedNode,
7740
7975
  {
7741
7976
  node,
@@ -7840,7 +8075,7 @@ var DivContainer = async (props) => {
7840
8075
  item,
7841
8076
  idx,
7842
8077
  props.href ? void 0 : item?.links?.view
7843
- )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react42.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
8078
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react43.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
7844
8079
  );
7845
8080
  }
7846
8081
  return props.node.children.flatMap((node, childIndex) => {
@@ -7851,7 +8086,7 @@ var DivContainer = async (props) => {
7851
8086
  let repeatItems = null;
7852
8087
  const childCollectionName = node?.dataBinding?.childCollectionName;
7853
8088
  if (childCollectionName && props.dataitem) {
7854
- const nestedCollection = getNestedValue6(
8089
+ const nestedCollection = getNestedValue7(
7855
8090
  props.dataitem,
7856
8091
  childCollectionName
7857
8092
  );
@@ -7958,17 +8193,17 @@ var DivContainer = async (props) => {
7958
8193
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
7959
8194
  );
7960
8195
  const WrapperComponent = Wrapper;
7961
- const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8196
+ const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7962
8197
  WrapperComponent,
7963
8198
  {
7964
8199
  id: guid,
7965
8200
  style: combinedStyles,
7966
8201
  className: classNames || void 0,
7967
8202
  ...wrapperProps,
7968
- children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(NoFilterResultsFound_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(NoDataFound_default, {}) : renderContainerChildren()
8203
+ children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(NoFilterResultsFound_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(NoDataFound_default, {}) : renderContainerChildren()
7969
8204
  }
7970
8205
  );
7971
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8206
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7972
8207
  Pagination2,
7973
8208
  {
7974
8209
  path: props.path,
@@ -7976,15 +8211,15 @@ var DivContainer = async (props) => {
7976
8211
  dataset: response
7977
8212
  }
7978
8213
  ) : null;
7979
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react42.default.Fragment, { children: [
7980
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8214
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react43.default.Fragment, { children: [
8215
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7981
8216
  "style",
7982
8217
  {
7983
8218
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
7984
8219
  }
7985
8220
  ),
7986
- showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react42.default.Fragment, { children: [
7987
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8221
+ showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react43.default.Fragment, { children: [
8222
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7988
8223
  DataBindingControls2,
7989
8224
  {
7990
8225
  mode: "toolbar",
@@ -7997,16 +8232,16 @@ var DivContainer = async (props) => {
7997
8232
  showSearchBar: dataBindingProperties?.showSearchBar
7998
8233
  }
7999
8234
  ),
8000
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
8235
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
8001
8236
  "div",
8002
8237
  {
8003
8238
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
8004
8239
  children: [
8005
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "min-w-0", children: [
8240
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "min-w-0", children: [
8006
8241
  renderedContainer,
8007
8242
  paginationControl
8008
8243
  ] }),
8009
- dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("aside", { className: "hidden lg:block", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8244
+ dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("aside", { className: "hidden lg:block", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
8010
8245
  DataBindingControls2,
8011
8246
  {
8012
8247
  mode: "facets",
@@ -8019,16 +8254,16 @@ var DivContainer = async (props) => {
8019
8254
  ]
8020
8255
  }
8021
8256
  )
8022
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react42.default.Fragment, { children: [
8257
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react43.default.Fragment, { children: [
8023
8258
  renderedContainer,
8024
- paginationControl && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { children: paginationControl })
8259
+ paginationControl && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { children: paginationControl })
8025
8260
  ] })
8026
8261
  ] });
8027
8262
  };
8028
8263
  var DivContainer_default = DivContainer;
8029
8264
 
8030
8265
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
8031
- var import_jsx_runtime70 = require("react/jsx-runtime");
8266
+ var import_jsx_runtime72 = require("react/jsx-runtime");
8032
8267
  var NodeTypes = {
8033
8268
  ["paragraph"]: ParagraphNode_default,
8034
8269
  ["heading"]: HeadingNode_default,
@@ -8045,7 +8280,8 @@ var NodeTypes = {
8045
8280
  ["embed"]: EmbedNode_default,
8046
8281
  ["document"]: DocumentNode_default,
8047
8282
  ["google-map"]: GoogleMapNode_default,
8048
- ["counter"]: CounterNode_default
8283
+ ["counter"]: CounterNode_default,
8284
+ ["story-accordion"]: MediaAccordionNode_default
8049
8285
  };
8050
8286
  var PageBodyRenderer = (props) => {
8051
8287
  let pageBodyTree;
@@ -8067,14 +8303,14 @@ var PageBodyRenderer = (props) => {
8067
8303
  }
8068
8304
  return true;
8069
8305
  };
8070
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
8306
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react44.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
8071
8307
  {
8072
8308
  }
8073
8309
  const SelectedNode = NodeTypes[node.type];
8074
8310
  if (!shouldRenderNode(node)) {
8075
8311
  return null;
8076
8312
  }
8077
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
8313
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react44.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react44.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
8078
8314
  SelectedNode,
8079
8315
  {
8080
8316
  node,
@@ -8090,7 +8326,7 @@ var PageBodyRenderer = (props) => {
8090
8326
  device: props.device,
8091
8327
  widgetRenderer: props.widgetRenderer
8092
8328
  }
8093
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
8329
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
8094
8330
  SelectedNode,
8095
8331
  {
8096
8332
  node,