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

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,200 @@ 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-border": props.node.buttonBorderColor || "var(--neutral-border)",
3580
+ "--story-button-clip": props.node.buttonBackgroundClipText ? "text" : "border-box",
3581
+ "--story-inactive-button-background": props.node.buttonInactiveBackgroundColor || "var(--neutral)",
3582
+ "--story-inactive-button-text": props.node.buttonInactiveTextColor || "var(--neutral-text-base)",
3583
+ "--story-inactive-button-border": props.node.buttonInactiveBorderColor || "var(--neutral-border)",
3584
+ "--story-media-ratio": `${Math.min(3, Math.max(0.75, props.node.mediaColumnRatio ?? 1.45))}fr`,
3585
+ "--story-media-fit": ["cover", "contain", "fill", "none", "scale-down"].includes(props.node.mediaObjectFit || "") ? props.node.mediaObjectFit : "cover",
3586
+ "--story-button-padding": `${props.node.buttonPaddingTop ?? props.node.buttonPaddingAll ?? 12}px ${props.node.buttonPaddingRight ?? props.node.buttonPaddingAll ?? 16}px ${props.node.buttonPaddingBottom ?? props.node.buttonPaddingAll ?? 12}px ${props.node.buttonPaddingLeft ?? props.node.buttonPaddingAll ?? 16}px`,
3587
+ "--story-button-radius": `${Math.max(0, props.node.buttonBorderRadius ?? 9)}px`,
3588
+ "--story-button-border-width": `${Math.max(0, props.node.buttonBorderWidth ?? 1)}px`
3589
+ },
3590
+ children: [
3591
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("style", { children: `
3592
+ .story-accordion { display:grid; grid-template-columns:minmax(0,var(--story-media-ratio,1.45fr)) minmax(260px,1fr); gap:20px; align-items:stretch; width:100%; padding:16px; border-radius:14px; background:var(--neutral); }
3593
+ .story-accordion__media { position:relative; min-height:320px; overflow:hidden; border-radius:10px; background:var(--neutral-border); }
3594
+ .story-accordion__media > * { display:block; width:100%; height:100%; min-height:320px; }
3595
+ .story-accordion__media-image, .story-accordion__media-video { object-fit:var(--story-media-fit,cover); }
3596
+ .story-accordion__list { display:flex; flex-direction:column; justify-content:center; gap:10px; min-width:0; }
3597
+ .story-accordion__item { width:100%; min-height:54px; padding:var(--story-button-padding,12px 16px); border:var(--story-button-border-width,1px) solid var(--neutral-border); border-radius:var(--story-button-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; }
3598
+ .story-accordion__item:hover { border-color:var(--primary-action-fill); }
3599
+ .story-accordion__item[aria-pressed="true"] { border-color:var(--story-button-border,var(--neutral-border)); background:var(--story-button-background); color:var(--story-button-text); background-clip:var(--story-button-clip); -webkit-background-clip:var(--story-button-clip); }
3600
+ .story-accordion__item.is-inactive.is-custom { border-color:var(--story-inactive-button-border,var(--neutral-border)); background:var(--story-inactive-button-background); color:var(--story-inactive-button-text); }
3601
+ .story-accordion__item:focus-visible { outline:3px solid var(--primary-action-fill); outline-offset:2px; }
3602
+ @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; } }
3603
+ ` }),
3604
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "story-accordion__media", children: activeItem ? renderMedia(activeItem) : null }),
3605
+ /* @__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)(
3606
+ "button",
3607
+ {
3608
+ type: "button",
3609
+ className: `story-accordion__item ${index === activeIndex ? "is-active" : "is-inactive"} ${props.node.buttonInactiveStyleEnabled && index !== activeIndex ? "is-custom" : ""}`,
3610
+ "aria-pressed": index === activeIndex,
3611
+ style: {
3612
+ borderWidth: `${Math.max(0, props.node.buttonBorderWidth ?? 1)}px`,
3613
+ borderStyle: "solid",
3614
+ borderColor: index === activeIndex || !props.node.buttonInactiveStyleEnabled ? props.node.buttonBorderColor || "var(--neutral-border)" : props.node.buttonInactiveBorderColor || "var(--neutral-border)",
3615
+ ...index !== activeIndex && props.node.buttonInactiveStyleEnabled ? {
3616
+ background: props.node.buttonInactiveBackgroundColor || "var(--neutral)",
3617
+ color: props.node.buttonInactiveTextColor || "var(--neutral-text-base)"
3618
+ } : {}
3619
+ },
3620
+ onClick: () => setActiveIndex(index),
3621
+ children: item.title
3622
+ },
3623
+ item.id || `${item.title}-${index}`
3624
+ )) })
3625
+ ]
3626
+ }
3627
+ );
3628
+ };
3629
+ MediaAccordionNodeClient_default = MediaAccordionNodeClient;
3630
+ }
3631
+ });
3632
+
3486
3633
  // src/svg/chevron-updown.tsx
3487
- var import_jsx_runtime61, ChevronUpDown, chevron_updown_default;
3634
+ var import_jsx_runtime63, ChevronUpDown, chevron_updown_default;
3488
3635
  var init_chevron_updown = __esm({
3489
3636
  "src/svg/chevron-updown.tsx"() {
3490
3637
  "use strict";
3491
- import_jsx_runtime61 = require("react/jsx-runtime");
3638
+ import_jsx_runtime63 = require("react/jsx-runtime");
3492
3639
  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" }) });
3640
+ 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
3641
  };
3495
3642
  chevron_updown_default = ChevronUpDown;
3496
3643
  }
3497
3644
  });
3498
3645
 
3499
3646
  // src/svg/chevron-down.tsx
3500
- var import_jsx_runtime62, ChevronDown, chevron_down_default;
3647
+ var import_jsx_runtime64, ChevronDown, chevron_down_default;
3501
3648
  var init_chevron_down = __esm({
3502
3649
  "src/svg/chevron-down.tsx"() {
3503
3650
  "use strict";
3504
- import_jsx_runtime62 = require("react/jsx-runtime");
3651
+ import_jsx_runtime64 = require("react/jsx-runtime");
3505
3652
  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" }) });
3653
+ 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
3654
  };
3508
3655
  chevron_down_default = ChevronDown;
3509
3656
  }
3510
3657
  });
3511
3658
 
3512
3659
  // src/svg/chevron-up.tsx
3513
- var import_jsx_runtime63, ChevronUp, chevron_up_default;
3660
+ var import_jsx_runtime65, ChevronUp, chevron_up_default;
3514
3661
  var init_chevron_up = __esm({
3515
3662
  "src/svg/chevron-up.tsx"() {
3516
3663
  "use strict";
3517
- import_jsx_runtime63 = require("react/jsx-runtime");
3664
+ import_jsx_runtime65 = require("react/jsx-runtime");
3518
3665
  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" }) });
3666
+ 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
3667
  };
3521
3668
  chevron_up_default = ChevronUp;
3522
3669
  }
3523
3670
  });
3524
3671
 
3525
3672
  // src/svg/plus.tsx
3526
- var import_jsx_runtime64, Plus, plus_default;
3673
+ var import_jsx_runtime66, Plus, plus_default;
3527
3674
  var init_plus = __esm({
3528
3675
  "src/svg/plus.tsx"() {
3529
3676
  "use strict";
3530
- import_jsx_runtime64 = require("react/jsx-runtime");
3677
+ import_jsx_runtime66 = require("react/jsx-runtime");
3531
3678
  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" }) });
3679
+ 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
3680
  };
3534
3681
  plus_default = Plus;
3535
3682
  }
@@ -3555,19 +3702,19 @@ var init_Icons = __esm({
3555
3702
  });
3556
3703
 
3557
3704
  // src/svg/Icon.tsx
3558
- var import_jsx_runtime65, Icon, Icon_default;
3705
+ var import_jsx_runtime67, Icon, Icon_default;
3559
3706
  var init_Icon = __esm({
3560
3707
  "src/svg/Icon.tsx"() {
3561
3708
  "use strict";
3562
3709
  init_Icons();
3563
- import_jsx_runtime65 = require("react/jsx-runtime");
3710
+ import_jsx_runtime67 = require("react/jsx-runtime");
3564
3711
  Icon = ({ name, className, ...props }) => {
3565
3712
  const IconComponent = Icons_default[name];
3566
3713
  if (!IconComponent) {
3567
3714
  console.error(`Icon "${name}" not found.`);
3568
3715
  return null;
3569
3716
  }
3570
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(IconComponent, { ...props, className });
3717
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(IconComponent, { ...props, className });
3571
3718
  };
3572
3719
  Icon_default = Icon;
3573
3720
  }
@@ -3578,21 +3725,21 @@ var Pagination_exports = {};
3578
3725
  __export(Pagination_exports, {
3579
3726
  default: () => Pagination_default
3580
3727
  });
3581
- var import_react39, import_jsx_runtime66, Pagination, Pagination_default;
3728
+ var import_react40, import_jsx_runtime68, Pagination, Pagination_default;
3582
3729
  var init_Pagination = __esm({
3583
3730
  "src/components/Pagination.tsx"() {
3584
3731
  "use strict";
3585
3732
  "use client";
3586
- import_react39 = require("react");
3733
+ import_react40 = require("react");
3587
3734
  init_OdataBuilder();
3588
3735
  init_Icon();
3589
3736
  init_StyleTypes();
3590
3737
  init_InputControlType();
3591
3738
  init_Hyperlink();
3592
- import_jsx_runtime66 = require("react/jsx-runtime");
3739
+ import_jsx_runtime68 = require("react/jsx-runtime");
3593
3740
  Pagination = (props) => {
3594
3741
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3595
- const builder = (0, import_react39.useMemo)(() => {
3742
+ const builder = (0, import_react40.useMemo)(() => {
3596
3743
  const b = new OdataBuilder(path);
3597
3744
  if (query) b.setQuery(query);
3598
3745
  return b;
@@ -3633,7 +3780,7 @@ var init_Pagination = __esm({
3633
3780
  return range;
3634
3781
  };
3635
3782
  const paginationRange = getPaginationRange();
3636
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3783
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3637
3784
  Hyperlink,
3638
3785
  {
3639
3786
  linkType: "Link" /* Link */,
@@ -3648,9 +3795,9 @@ var init_Pagination = __esm({
3648
3795
  );
3649
3796
  const NavigationButton = ({ page, disabled, children }) => {
3650
3797
  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 });
3798
+ 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
3799
  }
3653
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3800
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3654
3801
  Hyperlink,
3655
3802
  {
3656
3803
  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 +3807,35 @@ var init_Pagination = __esm({
3660
3807
  );
3661
3808
  };
3662
3809
  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: [
3810
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "py-6 border-t mt-6", children: [
3811
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3812
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "text-sm", children: [
3666
3813
  "Showing ",
3667
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "font-semibold", children: [
3814
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "font-semibold", children: [
3668
3815
  startItem,
3669
3816
  "-",
3670
3817
  endItem
3671
3818
  ] }),
3672
3819
  " ",
3673
3820
  "out of ",
3674
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3821
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3675
3822
  " results"
3676
3823
  ] }),
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)(
3824
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center space-x-1", children: [
3825
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3679
3826
  NavigationButton,
3680
3827
  {
3681
3828
  page: activePageNumber - 1,
3682
3829
  disabled: activePageNumber === 1,
3683
3830
  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" })
3831
+ /* @__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" }) }),
3832
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Prev" })
3686
3833
  ]
3687
3834
  }
3688
3835
  ),
3689
3836
  paginationRange.map((item, index) => {
3690
3837
  if (item === "...") {
3691
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3838
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3692
3839
  "span",
3693
3840
  {
3694
3841
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -3698,23 +3845,23 @@ var init_Pagination = __esm({
3698
3845
  );
3699
3846
  }
3700
3847
  const page = item;
3701
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(PageButton, { page, children: page }, page);
3848
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PageButton, { page, children: page }, page);
3702
3849
  }),
3703
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
3850
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3704
3851
  NavigationButton,
3705
3852
  {
3706
3853
  page: activePageNumber + 1,
3707
3854
  disabled: activePageNumber === totalPages,
3708
3855
  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" }) })
3856
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Next" }),
3857
+ /* @__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
3858
  ]
3712
3859
  }
3713
3860
  )
3714
3861
  ] }),
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)(
3862
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex items-center space-x-2", children: [
3863
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Go to:" }),
3864
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3718
3865
  "input",
3719
3866
  {
3720
3867
  type: "number",
@@ -3735,9 +3882,9 @@ var init_Pagination = __esm({
3735
3882
  ) })
3736
3883
  ] })
3737
3884
  ] }),
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)(
3885
+ 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: [
3886
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "Show:" }),
3887
+ /* @__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
3888
  Hyperlink,
3742
3889
  {
3743
3890
  className: `
@@ -3749,7 +3896,7 @@ var init_Pagination = __esm({
3749
3896
  },
3750
3897
  size
3751
3898
  )) }),
3752
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "per page" })
3899
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm", children: "per page" })
3753
3900
  ] }) })
3754
3901
  ] });
3755
3902
  };
@@ -3762,16 +3909,16 @@ var DataBindingControls_exports = {};
3762
3909
  __export(DataBindingControls_exports, {
3763
3910
  default: () => DataBindingControls_default
3764
3911
  });
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;
3912
+ 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
3913
  var init_DataBindingControls = __esm({
3767
3914
  "src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
3768
3915
  "use strict";
3769
3916
  "use client";
3770
- import_react40 = require("react");
3917
+ import_react41 = require("react");
3771
3918
  import_navigation = require("next/navigation");
3772
3919
  init_Button();
3773
3920
  init_StyleTypes();
3774
- import_jsx_runtime67 = require("react/jsx-runtime");
3921
+ import_jsx_runtime69 = require("react/jsx-runtime");
3775
3922
  humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
3776
3923
  escapeODataString = (value) => value.replace(/'/g, "''");
3777
3924
  parseFacetSelections = (filter) => {
@@ -3794,7 +3941,7 @@ var init_DataBindingControls = __esm({
3794
3941
  }
3795
3942
  return trimmedValue;
3796
3943
  };
3797
- SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3944
+ SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3798
3945
  "svg",
3799
3946
  {
3800
3947
  "aria-hidden": "true",
@@ -3804,12 +3951,12 @@ var init_DataBindingControls = __esm({
3804
3951
  stroke: "currentColor",
3805
3952
  strokeWidth: "2",
3806
3953
  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" })
3954
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("circle", { cx: "11", cy: "11", r: "7" }),
3955
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", d: "m20 20-4-4" })
3809
3956
  ]
3810
3957
  }
3811
3958
  );
3812
- ResetIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3959
+ ResetIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3813
3960
  "svg",
3814
3961
  {
3815
3962
  "aria-hidden": "true",
@@ -3819,8 +3966,8 @@ var init_DataBindingControls = __esm({
3819
3966
  stroke: "currentColor",
3820
3967
  strokeWidth: "2",
3821
3968
  children: [
3822
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v6h6" }),
3823
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3969
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v6h6" }),
3970
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3824
3971
  "path",
3825
3972
  {
3826
3973
  strokeLinecap: "round",
@@ -3831,7 +3978,7 @@ var init_DataBindingControls = __esm({
3831
3978
  ]
3832
3979
  }
3833
3980
  );
3834
- FilterSlidersIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3981
+ FilterSlidersIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3835
3982
  "svg",
3836
3983
  {
3837
3984
  "aria-hidden": "true",
@@ -3841,14 +3988,14 @@ var init_DataBindingControls = __esm({
3841
3988
  stroke: "currentColor",
3842
3989
  strokeWidth: "2",
3843
3990
  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" })
3991
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M3 4h18M3 12h18M3 20h18" }),
3992
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("circle", { cx: "8", cy: "4", r: "2", fill: "currentColor" }),
3993
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("circle", { cx: "16", cy: "12", r: "2", fill: "currentColor" }),
3994
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("circle", { cx: "10", cy: "20", r: "2", fill: "currentColor" })
3848
3995
  ]
3849
3996
  }
3850
3997
  );
3851
- ChevronDownIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3998
+ ChevronDownIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3852
3999
  "svg",
3853
4000
  {
3854
4001
  "aria-hidden": "true",
@@ -3857,10 +4004,10 @@ var init_DataBindingControls = __esm({
3857
4004
  viewBox: "0 0 24 24",
3858
4005
  stroke: "currentColor",
3859
4006
  strokeWidth: "2",
3860
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m19 9-7 7-7-7" })
4007
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m19 9-7 7-7-7" })
3861
4008
  }
3862
4009
  );
3863
- CheckIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4010
+ CheckIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3864
4011
  "svg",
3865
4012
  {
3866
4013
  "aria-hidden": "true",
@@ -3869,10 +4016,10 @@ var init_DataBindingControls = __esm({
3869
4016
  viewBox: "0 0 24 24",
3870
4017
  stroke: "currentColor",
3871
4018
  strokeWidth: "2.5",
3872
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
4019
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
3873
4020
  }
3874
4021
  );
3875
- CloseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4022
+ CloseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3876
4023
  "svg",
3877
4024
  {
3878
4025
  "aria-hidden": "true",
@@ -3881,10 +4028,10 @@ var init_DataBindingControls = __esm({
3881
4028
  viewBox: "0 0 24 24",
3882
4029
  stroke: "currentColor",
3883
4030
  strokeWidth: "2",
3884
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" })
4031
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" })
3885
4032
  }
3886
4033
  );
3887
- MapPinIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4034
+ MapPinIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
3888
4035
  "svg",
3889
4036
  {
3890
4037
  "aria-hidden": "true",
@@ -3894,7 +4041,7 @@ var init_DataBindingControls = __esm({
3894
4041
  stroke: "currentColor",
3895
4042
  strokeWidth: "2",
3896
4043
  children: [
3897
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4044
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3898
4045
  "path",
3899
4046
  {
3900
4047
  strokeLinecap: "round",
@@ -3902,7 +4049,7 @@ var init_DataBindingControls = __esm({
3902
4049
  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
4050
  }
3904
4051
  ),
3905
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4052
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3906
4053
  "path",
3907
4054
  {
3908
4055
  strokeLinecap: "round",
@@ -3913,7 +4060,7 @@ var init_DataBindingControls = __esm({
3913
4060
  ]
3914
4061
  }
3915
4062
  );
3916
- BriefcaseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4063
+ BriefcaseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3917
4064
  "svg",
3918
4065
  {
3919
4066
  "aria-hidden": "true",
@@ -3922,7 +4069,7 @@ var init_DataBindingControls = __esm({
3922
4069
  viewBox: "0 0 24 24",
3923
4070
  stroke: "currentColor",
3924
4071
  strokeWidth: "2",
3925
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4072
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3926
4073
  "path",
3927
4074
  {
3928
4075
  strokeLinecap: "round",
@@ -3932,7 +4079,7 @@ var init_DataBindingControls = __esm({
3932
4079
  )
3933
4080
  }
3934
4081
  );
3935
- FileTextIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4082
+ FileTextIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3936
4083
  "svg",
3937
4084
  {
3938
4085
  "aria-hidden": "true",
@@ -3941,7 +4088,7 @@ var init_DataBindingControls = __esm({
3941
4088
  viewBox: "0 0 24 24",
3942
4089
  stroke: "currentColor",
3943
4090
  strokeWidth: "2",
3944
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4091
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3945
4092
  "path",
3946
4093
  {
3947
4094
  strokeLinecap: "round",
@@ -3951,7 +4098,7 @@ var init_DataBindingControls = __esm({
3951
4098
  )
3952
4099
  }
3953
4100
  );
3954
- TagIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4101
+ TagIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3955
4102
  "svg",
3956
4103
  {
3957
4104
  "aria-hidden": "true",
@@ -3960,7 +4107,7 @@ var init_DataBindingControls = __esm({
3960
4107
  viewBox: "0 0 24 24",
3961
4108
  stroke: "currentColor",
3962
4109
  strokeWidth: "2",
3963
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4110
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3964
4111
  "path",
3965
4112
  {
3966
4113
  strokeLinecap: "round",
@@ -3973,15 +4120,15 @@ var init_DataBindingControls = __esm({
3973
4120
  getCategoryIcon = (category) => {
3974
4121
  const lower = category.toLowerCase();
3975
4122
  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" });
4123
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(MapPinIcon, { className: "h-4 w-4" });
3977
4124
  }
3978
4125
  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" });
4126
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(BriefcaseIcon, { className: "h-4 w-4" });
3980
4127
  }
3981
4128
  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" });
4129
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FileTextIcon, { className: "h-4 w-4" });
3983
4130
  }
3984
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(TagIcon, { className: "h-4 w-4" });
4131
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TagIcon, { className: "h-4 w-4" });
3985
4132
  };
3986
4133
  normalizeSortOption = (option) => {
3987
4134
  const direction = option.direction.trim();
@@ -4003,13 +4150,13 @@ var init_DataBindingControls = __esm({
4003
4150
  }) => {
4004
4151
  const router = (0, import_navigation.useRouter)();
4005
4152
  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)(() => {
4153
+ const [collapsedCategories, setCollapsedCategories] = (0, import_react41.useState)({});
4154
+ const [isSortOpen, setIsSortOpen] = (0, import_react41.useState)(false);
4155
+ const [isMobileFiltersOpen, setIsMobileFiltersOpen] = (0, import_react41.useState)(false);
4156
+ const [facetCategorySearch, setFacetCategorySearch] = (0, import_react41.useState)({});
4157
+ const desktopSortDropdownRef = (0, import_react41.useRef)(null);
4158
+ const mobileSortDropdownRef = (0, import_react41.useRef)(null);
4159
+ (0, import_react41.useEffect)(() => {
4013
4160
  const handleClickOutside = (event) => {
4014
4161
  const target = event.target;
4015
4162
  const clickedInsideDesktop = desktopSortDropdownRef.current?.contains(target);
@@ -4035,15 +4182,15 @@ var init_DataBindingControls = __esm({
4035
4182
  const currentSearch = parseODataSearch(
4036
4183
  searchParamsSearch !== void 0 && searchParamsSearch !== null ? searchParamsSearch : query?.["$search"]
4037
4184
  );
4038
- const [searchText, setSearchText] = (0, import_react40.useState)(currentSearch);
4039
- (0, import_react40.useEffect)(() => {
4185
+ const [searchText, setSearchText] = (0, import_react41.useState)(currentSearch);
4186
+ (0, import_react41.useEffect)(() => {
4040
4187
  setSearchText(currentSearch);
4041
4188
  }, [currentSearch]);
4042
- const selectedFacetValues = (0, import_react40.useMemo)(
4189
+ const selectedFacetValues = (0, import_react41.useMemo)(
4043
4190
  () => parseFacetSelections(currentFilter),
4044
4191
  [currentFilter]
4045
4192
  );
4046
- (0, import_react40.useEffect)(() => {
4193
+ (0, import_react41.useEffect)(() => {
4047
4194
  if (isMobileFiltersOpen) {
4048
4195
  document.body.style.overflow = "hidden";
4049
4196
  } else {
@@ -4053,7 +4200,7 @@ var init_DataBindingControls = __esm({
4053
4200
  document.body.style.overflow = "";
4054
4201
  };
4055
4202
  }, [isMobileFiltersOpen]);
4056
- const activeFacets = (0, import_react40.useMemo)(() => {
4203
+ const activeFacets = (0, import_react41.useMemo)(() => {
4057
4204
  const facetMap = /* @__PURE__ */ new Map();
4058
4205
  if (facets) {
4059
4206
  Object.entries(facets).forEach(([field, values]) => {
@@ -4078,11 +4225,11 @@ var init_DataBindingControls = __esm({
4078
4225
  });
4079
4226
  return Array.from(facetMap.entries());
4080
4227
  }, [facets, selectedFacetValues]);
4081
- const normalizedSortOptions = (0, import_react40.useMemo)(
4228
+ const normalizedSortOptions = (0, import_react41.useMemo)(
4082
4229
  () => (sortOptions ?? []).filter((option) => option?.name && option?.direction).map(normalizeSortOption).filter((option) => option.value),
4083
4230
  [sortOptions]
4084
4231
  );
4085
- const selectedSortOption = (0, import_react40.useMemo)(() => {
4232
+ const selectedSortOption = (0, import_react41.useMemo)(() => {
4086
4233
  if (!normalizedSortOptions.length) return null;
4087
4234
  const trimmedCurrentSort = currentSort.trim().toLowerCase();
4088
4235
  if (!trimmedCurrentSort) return normalizedSortOptions[0];
@@ -4091,7 +4238,7 @@ var init_DataBindingControls = __esm({
4091
4238
  ) || normalizedSortOptions[0];
4092
4239
  }, [normalizedSortOptions, currentSort]);
4093
4240
  const selectedSortLabel = selectedSortOption?.label || "";
4094
- const getQueryUrl = (0, import_react40.useCallback)(
4241
+ const getQueryUrl = (0, import_react41.useCallback)(
4095
4242
  (updates) => {
4096
4243
  const initialParams = searchParams ? searchParams.toString() : "";
4097
4244
  const params = new URLSearchParams(initialParams || query || {});
@@ -4109,7 +4256,7 @@ var init_DataBindingControls = __esm({
4109
4256
  },
4110
4257
  [path, query, searchParams]
4111
4258
  );
4112
- const navigateWithoutReload = (0, import_react40.useCallback)(
4259
+ const navigateWithoutReload = (0, import_react41.useCallback)(
4113
4260
  (url) => {
4114
4261
  if (typeof window !== "undefined") {
4115
4262
  const targetUrl = new URL(url, window.location.origin);
@@ -4121,7 +4268,7 @@ var init_DataBindingControls = __esm({
4121
4268
  },
4122
4269
  [router]
4123
4270
  );
4124
- const handleSelectSort = (0, import_react40.useCallback)(
4271
+ const handleSelectSort = (0, import_react41.useCallback)(
4125
4272
  (sortValue) => {
4126
4273
  setIsSortOpen(false);
4127
4274
  navigateWithoutReload(
@@ -4161,7 +4308,7 @@ var init_DataBindingControls = __esm({
4161
4308
  })
4162
4309
  );
4163
4310
  };
4164
- const handleSearch = (0, import_react40.useCallback)(async () => {
4311
+ const handleSearch = (0, import_react41.useCallback)(async () => {
4165
4312
  const trimmedSearchText = searchText.trim();
4166
4313
  if (trimmedSearchText === currentSearch.trim()) {
4167
4314
  return { isSuccessful: true };
@@ -4173,7 +4320,7 @@ var init_DataBindingControls = __esm({
4173
4320
  );
4174
4321
  return { isSuccessful: true };
4175
4322
  }, [currentSearch, getQueryUrl, navigateWithoutReload, searchText]);
4176
- const handleClearAll = (0, import_react40.useCallback)(async () => {
4323
+ const handleClearAll = (0, import_react41.useCallback)(async () => {
4177
4324
  navigateWithoutReload(
4178
4325
  getQueryUrl({
4179
4326
  $filter: void 0,
@@ -4196,9 +4343,9 @@ var init_DataBindingControls = __esm({
4196
4343
  if (!shouldShowToolbar && !shouldShowFacets) {
4197
4344
  return null;
4198
4345
  }
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) => {
4346
+ 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
4347
  const isSelected = selectedFacetValues.get(field) === facet.value;
4201
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4348
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4202
4349
  "button",
4203
4350
  {
4204
4351
  type: "button",
@@ -4206,17 +4353,17 @@ var init_DataBindingControls = __esm({
4206
4353
  "aria-pressed": isSelected,
4207
4354
  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
4355
  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)(
4356
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex min-w-0 items-center gap-2.5", children: [
4357
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4211
4358
  "span",
4212
4359
  {
4213
4360
  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" })
4361
+ children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { className: "h-3 w-3" })
4215
4362
  }
4216
4363
  ),
4217
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "leading-snug break-words", children: facet.value })
4364
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "leading-snug break-words", children: facet.value })
4218
4365
  ] }),
4219
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4366
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4220
4367
  "span",
4221
4368
  {
4222
4369
  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 +4375,14 @@ var init_DataBindingControls = __esm({
4228
4375
  `${field}-${facet.value}`
4229
4376
  );
4230
4377
  }) });
4231
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4378
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4232
4379
  "div",
4233
4380
  {
4234
4381
  className: mode === "toolbar" ? "my-4 sm:my-6" : "flex flex-col rounded-md border border-neutral-soft bg-default p-4 shadow-sm",
4235
4382
  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)(
4383
+ shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-3", children: [
4384
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "hidden lg:flex lg:items-center lg:justify-between lg:gap-4", children: [
4385
+ showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4239
4386
  "form",
4240
4387
  {
4241
4388
  role: "search",
@@ -4245,9 +4392,9 @@ var init_DataBindingControls = __esm({
4245
4392
  void handleSearch();
4246
4393
  },
4247
4394
  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)(
4395
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative min-w-0 flex-1", children: [
4396
+ /* @__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" }),
4397
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4251
4398
  "input",
4252
4399
  {
4253
4400
  type: "text",
@@ -4259,23 +4406,23 @@ var init_DataBindingControls = __esm({
4259
4406
  }
4260
4407
  )
4261
4408
  ] }),
4262
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4409
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4263
4410
  Button_default,
4264
4411
  {
4265
4412
  ButtonType: "Primary" /* Solid */,
4266
4413
  onClick: handleSearch,
4267
4414
  className: "!h-10 !rounded-md !px-5 !py-0 flex items-center justify-center gap-1.5 shrink-0",
4268
4415
  children: [
4269
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SearchIcon, { className: "h-4 w-4" }),
4270
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: "Search" })
4416
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SearchIcon, { className: "h-4 w-4" }),
4417
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: "Search" })
4271
4418
  ]
4272
4419
  }
4273
4420
  )
4274
4421
  ]
4275
4422
  }
4276
4423
  ),
4277
- hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative shrink-0", ref: desktopSortDropdownRef, children: [
4278
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4424
+ hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative shrink-0", ref: desktopSortDropdownRef, children: [
4425
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4279
4426
  "button",
4280
4427
  {
4281
4428
  type: "button",
@@ -4283,11 +4430,11 @@ var init_DataBindingControls = __esm({
4283
4430
  "aria-expanded": isSortOpen,
4284
4431
  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
4432
  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 })
4433
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "whitespace-nowrap", children: [
4434
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "opacity-70", children: "Sort by: " }),
4435
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-semibold", children: selectedSortLabel })
4289
4436
  ] }),
4290
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4437
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4291
4438
  ChevronDownIcon,
4292
4439
  {
4293
4440
  className: `h-4 w-4 shrink-0 transition-transform duration-200 ${isSortOpen ? "rotate-180" : ""}`
@@ -4296,17 +4443,17 @@ var init_DataBindingControls = __esm({
4296
4443
  ]
4297
4444
  }
4298
4445
  ),
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) => {
4446
+ 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
4447
  const isSelected = selectedSortOption?.value === option.value;
4301
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4448
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4302
4449
  "button",
4303
4450
  {
4304
4451
  type: "button",
4305
4452
  onClick: () => handleSelectSort(option.value),
4306
4453
  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
4454
  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" })
4455
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "whitespace-nowrap", children: option.label }),
4456
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { className: "h-4 w-4 shrink-0" })
4310
4457
  ]
4311
4458
  },
4312
4459
  option.value
@@ -4314,8 +4461,8 @@ var init_DataBindingControls = __esm({
4314
4461
  }) })
4315
4462
  ] })
4316
4463
  ] }),
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)(
4464
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-2.5 lg:hidden", children: [
4465
+ showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4319
4466
  "form",
4320
4467
  {
4321
4468
  role: "search",
@@ -4325,8 +4472,8 @@ var init_DataBindingControls = __esm({
4325
4472
  void handleSearch();
4326
4473
  },
4327
4474
  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)(
4475
+ /* @__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" }),
4476
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4330
4477
  "input",
4331
4478
  {
4332
4479
  type: "text",
@@ -4340,28 +4487,28 @@ var init_DataBindingControls = __esm({
4340
4487
  ]
4341
4488
  }
4342
4489
  ),
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)(
4490
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center justify-between gap-2.5 pt-0.5", children: [
4491
+ showFacets && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4345
4492
  "button",
4346
4493
  {
4347
4494
  type: "button",
4348
4495
  onClick: () => setIsMobileFiltersOpen(true),
4349
4496
  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
4497
  children: [
4351
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(FilterSlidersIcon, { className: "h-4 w-4" }),
4352
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { children: [
4498
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FilterSlidersIcon, { className: "h-4 w-4" }),
4499
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { children: [
4353
4500
  "Filters",
4354
4501
  selectedFacetCount > 0 ? ` (${selectedFacetCount})` : ""
4355
4502
  ] }),
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" })
4503
+ selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "relative flex h-2 w-2", children: [
4504
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-primary-base opacity-75" }),
4505
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-primary-base" })
4359
4506
  ] })
4360
4507
  ]
4361
4508
  }
4362
4509
  ),
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)(
4510
+ hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative shrink-0 ml-auto", ref: mobileSortDropdownRef, children: [
4511
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4365
4512
  "button",
4366
4513
  {
4367
4514
  type: "button",
@@ -4369,8 +4516,8 @@ var init_DataBindingControls = __esm({
4369
4516
  "aria-expanded": isSortOpen,
4370
4517
  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
4518
  children: [
4372
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "whitespace-nowrap font-medium", children: selectedSortLabel }),
4373
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4519
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "whitespace-nowrap font-medium", children: selectedSortLabel }),
4520
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4374
4521
  ChevronDownIcon,
4375
4522
  {
4376
4523
  className: `h-4 w-4 shrink-0 transition-transform duration-200 ${isSortOpen ? "rotate-180" : ""}`
@@ -4379,17 +4526,17 @@ var init_DataBindingControls = __esm({
4379
4526
  ]
4380
4527
  }
4381
4528
  ),
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) => {
4529
+ 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
4530
  const isSelected = selectedSortOption?.value === option.value;
4384
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4531
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4385
4532
  "button",
4386
4533
  {
4387
4534
  type: "button",
4388
4535
  onClick: () => handleSelectSort(option.value),
4389
4536
  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
4537
  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" })
4538
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "whitespace-nowrap", children: option.label }),
4539
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { className: "h-4 w-4 shrink-0" })
4393
4540
  ]
4394
4541
  },
4395
4542
  option.value
@@ -4397,8 +4544,8 @@ var init_DataBindingControls = __esm({
4397
4544
  }) })
4398
4545
  ] })
4399
4546
  ] }),
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)(
4547
+ selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-wrap items-center gap-1.5 pt-1", children: [
4548
+ Array.from(selectedFacetValues.entries()).map(([field, value]) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4402
4549
  "button",
4403
4550
  {
4404
4551
  type: "button",
@@ -4406,13 +4553,13 @@ var init_DataBindingControls = __esm({
4406
4553
  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
4554
  title: `Remove filter: ${value}`,
4408
4555
  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" })
4556
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-medium truncate max-w-[140px]", children: value }),
4557
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CloseIcon, { className: "h-3 w-3 shrink-0 opacity-60 group-hover:opacity-100" })
4411
4558
  ]
4412
4559
  },
4413
4560
  `mobile-chip-${field}`
4414
4561
  )),
4415
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4562
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4416
4563
  "button",
4417
4564
  {
4418
4565
  type: "button",
@@ -4423,8 +4570,8 @@ var init_DataBindingControls = __esm({
4423
4570
  )
4424
4571
  ] })
4425
4572
  ] }),
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)(
4573
+ isMobileFiltersOpen && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "fixed inset-0 z-50 flex flex-col justify-end lg:hidden", children: [
4574
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4428
4575
  "div",
4429
4576
  {
4430
4577
  className: "fixed inset-0 bg-neutral-stronger/60 backdrop-blur-xs transition-opacity duration-300",
@@ -4432,12 +4579,12 @@ var init_DataBindingControls = __esm({
4432
4579
  "aria-hidden": "true"
4433
4580
  }
4434
4581
  ),
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)(
4582
+ /* @__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: [
4583
+ /* @__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" }) }),
4584
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center justify-between px-5 py-3 border-b border-neutral-soft", children: [
4585
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h2", { className: "text-lg font-bold tracking-tight", children: "Filters" }),
4586
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-3", children: [
4587
+ selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4441
4588
  "button",
4442
4589
  {
4443
4590
  type: "button",
@@ -4446,38 +4593,38 @@ var init_DataBindingControls = __esm({
4446
4593
  children: "Clear all"
4447
4594
  }
4448
4595
  ),
4449
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4596
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4450
4597
  "button",
4451
4598
  {
4452
4599
  type: "button",
4453
4600
  onClick: () => setIsMobileFiltersOpen(false),
4454
4601
  className: "p-1 rounded-full hover:bg-neutral-weak transition-colors cursor-pointer",
4455
4602
  "aria-label": "Close filters",
4456
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CloseIcon, { className: "h-5 w-5 opacity-70" })
4603
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CloseIcon, { className: "h-5 w-5 opacity-70" })
4457
4604
  }
4458
4605
  )
4459
4606
  ] })
4460
4607
  ] }),
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]) => {
4608
+ /* @__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
4609
  const isOpen = !collapsedCategories[field];
4463
4610
  const selectedValue = selectedFacetValues.get(field);
4464
4611
  const categorySearch = facetCategorySearch[field]?.toLowerCase() || "";
4465
4612
  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)(
4613
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "pt-3 first:pt-0", children: [
4614
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4468
4615
  "button",
4469
4616
  {
4470
4617
  type: "button",
4471
4618
  onClick: () => toggleCategory(field),
4472
4619
  className: "flex w-full cursor-pointer items-center justify-between rounded-md py-2 text-left transition-colors",
4473
4620
  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) })
4621
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2.5", children: [
4622
+ /* @__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) }),
4623
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-semibold text-sm", children: humanize(field) })
4477
4624
  ] }),
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)(
4625
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2", children: [
4626
+ 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" }),
4627
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4481
4628
  ChevronDownIcon,
4482
4629
  {
4483
4630
  className: `h-4 w-4 transition-transform duration-200 ${isOpen ? "rotate-180" : ""}`
@@ -4487,10 +4634,10 @@ var init_DataBindingControls = __esm({
4487
4634
  ]
4488
4635
  }
4489
4636
  ),
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)(
4637
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "pt-2 pb-1 pl-1 pr-1 space-y-1.5", children: [
4638
+ values.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative mb-2", children: [
4639
+ /* @__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" }),
4640
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4494
4641
  "input",
4495
4642
  {
4496
4643
  type: "text",
@@ -4504,9 +4651,9 @@ var init_DataBindingControls = __esm({
4504
4651
  }
4505
4652
  )
4506
4653
  ] }),
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) => {
4654
+ 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
4655
  const isChecked = selectedValue === facet.value;
4509
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4656
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4510
4657
  "button",
4511
4658
  {
4512
4659
  type: "button",
@@ -4516,17 +4663,17 @@ var init_DataBindingControls = __esm({
4516
4663
  "aria-pressed": isChecked,
4517
4664
  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
4665
  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)(
4666
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
4667
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4521
4668
  "span",
4522
4669
  {
4523
4670
  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" })
4671
+ children: isChecked && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CheckIcon, { className: "h-3.5 w-3.5" })
4525
4672
  }
4526
4673
  ),
4527
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "leading-snug break-words", children: facet.value })
4674
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "leading-snug break-words", children: facet.value })
4528
4675
  ] }),
4529
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "shrink-0 text-xs opacity-60 ml-2", children: facet.count })
4676
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "shrink-0 text-xs opacity-60 ml-2", children: facet.count })
4530
4677
  ]
4531
4678
  },
4532
4679
  `drawer-${field}-${facet.value}`
@@ -4535,8 +4682,8 @@ var init_DataBindingControls = __esm({
4535
4682
  ] })
4536
4683
  ] }, `drawer-cat-${field}`);
4537
4684
  }) }),
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)(
4685
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-3 border-t border-neutral-soft bg-default p-4", children: [
4686
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4540
4687
  "button",
4541
4688
  {
4542
4689
  type: "button",
@@ -4545,7 +4692,7 @@ var init_DataBindingControls = __esm({
4545
4692
  children: "Close"
4546
4693
  }
4547
4694
  ),
4548
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4695
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4549
4696
  "button",
4550
4697
  {
4551
4698
  type: "button",
@@ -4561,14 +4708,14 @@ var init_DataBindingControls = __esm({
4561
4708
  ] })
4562
4709
  ] })
4563
4710
  ] }),
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 })
4711
+ shouldShowFacets && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-3", children: [
4712
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center justify-between border-b border-neutral-soft pb-3", children: [
4713
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2", children: [
4714
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FilterSlidersIcon, { className: "h-4 w-4" }),
4715
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("h2", { className: "text-base font-semibold tracking-tight", children: "Filters" }),
4716
+ 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
4717
  ] }),
4571
- hasActiveFiltersOrSort && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4718
+ hasActiveFiltersOrSort && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4572
4719
  "button",
4573
4720
  {
4574
4721
  type: "button",
@@ -4576,13 +4723,13 @@ var init_DataBindingControls = __esm({
4576
4723
  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
4724
  "aria-label": "Clear all filters and sorting",
4578
4725
  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" })
4726
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ResetIcon, { className: "h-3.5 w-3.5 transition-transform duration-200 group-hover:-rotate-45" }),
4727
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: "Clear all" })
4581
4728
  ]
4582
4729
  }
4583
4730
  )
4584
4731
  ] }),
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)(
4732
+ 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
4733
  "button",
4587
4734
  {
4588
4735
  type: "button",
@@ -4590,35 +4737,35 @@ var init_DataBindingControls = __esm({
4590
4737
  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
4738
  title: `Remove filter: ${value}`,
4592
4739
  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" })
4740
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "font-medium truncate max-w-[150px]", children: value }),
4741
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CloseIcon, { className: "h-3.5 w-3.5 shrink-0 opacity-60 group-hover:opacity-100" })
4595
4742
  ]
4596
4743
  },
4597
4744
  `chip-${field}`
4598
4745
  )) }),
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]) }),
4746
+ 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: [
4747
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "px-1 pb-2 font-medium text-sm", children: humanize(activeFacets[0][0]) }),
4601
4748
  renderFacetItems(activeFacets[0][0], activeFacets[0][1])
4602
4749
  ] }) }),
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]) => {
4750
+ 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
4751
  const isOpen = !collapsedCategories[field];
4605
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4752
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4606
4753
  "div",
4607
4754
  {
4608
4755
  className: "py-2 first:pt-0 last:pb-0",
4609
4756
  children: [
4610
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
4757
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4611
4758
  "button",
4612
4759
  {
4613
4760
  type: "button",
4614
4761
  onClick: () => toggleCategory(field),
4615
4762
  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
4763
  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) })
4764
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2", children: [
4765
+ /* @__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) }),
4766
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: humanize(field) })
4620
4767
  ] }),
4621
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4768
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4622
4769
  ChevronDownIcon,
4623
4770
  {
4624
4771
  className: `h-4 w-4 transition-transform duration-200 ease-out ${isOpen ? "rotate-180" : ""}`
@@ -4627,7 +4774,7 @@ var init_DataBindingControls = __esm({
4627
4774
  ]
4628
4775
  }
4629
4776
  ),
4630
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "pt-1", children: renderFacetItems(field, values) })
4777
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "pt-1", children: renderFacetItems(field, values) })
4631
4778
  ]
4632
4779
  },
4633
4780
  field
@@ -4647,13 +4794,13 @@ var Slider_exports = {};
4647
4794
  __export(Slider_exports, {
4648
4795
  default: () => Slider_default
4649
4796
  });
4650
- var import_react41, import_jsx_runtime68, Slider, ArrowButton, ProgressPill, Slider_default;
4797
+ var import_react42, import_jsx_runtime70, Slider, ArrowButton, ProgressPill, Slider_default;
4651
4798
  var init_Slider = __esm({
4652
4799
  "src/components/Slider.tsx"() {
4653
4800
  "use strict";
4654
4801
  "use client";
4655
- import_react41 = __toESM(require("react"));
4656
- import_jsx_runtime68 = require("react/jsx-runtime");
4802
+ import_react42 = __toESM(require("react"));
4803
+ import_jsx_runtime70 = require("react/jsx-runtime");
4657
4804
  Slider = ({
4658
4805
  children,
4659
4806
  columns,
@@ -4674,17 +4821,17 @@ var init_Slider = __esm({
4674
4821
  progressPosition = "bottom",
4675
4822
  scrollByColumns = false
4676
4823
  }) => {
4677
- const [currentSlide, setCurrentSlide] = (0, import_react41.useState)(0);
4678
- const [transition, setTransition] = (0, import_react41.useState)(true);
4824
+ const [currentSlide, setCurrentSlide] = (0, import_react42.useState)(0);
4825
+ const [transition, setTransition] = (0, import_react42.useState)(true);
4679
4826
  const initialSlidesToShow = slidesToShow ?? columns ?? 4;
4680
- const [slidesToShowState, setSlidesToShowState] = (0, import_react41.useState)(
4827
+ const [slidesToShowState, setSlidesToShowState] = (0, import_react42.useState)(
4681
4828
  typeof initialSlidesToShow === "number" ? initialSlidesToShow : initialSlidesToShow.large
4682
4829
  );
4683
- const [isPlaying, setIsPlaying] = (0, import_react41.useState)(autoplay);
4684
- const trackRef = (0, import_react41.useRef)(null);
4830
+ const [isPlaying, setIsPlaying] = (0, import_react42.useState)(autoplay);
4831
+ const trackRef = (0, import_react42.useRef)(null);
4685
4832
  console.log("trackRef:", trackRef);
4686
- const [videoProgress, setVideoProgress] = (0, import_react41.useState)(null);
4687
- (0, import_react41.useEffect)(() => {
4833
+ const [videoProgress, setVideoProgress] = (0, import_react42.useState)(null);
4834
+ (0, import_react42.useEffect)(() => {
4688
4835
  if (typeof initialSlidesToShow === "number") {
4689
4836
  setSlidesToShowState(initialSlidesToShow);
4690
4837
  return;
@@ -4702,7 +4849,7 @@ var init_Slider = __esm({
4702
4849
  window.addEventListener("resize", handleResize);
4703
4850
  return () => window.removeEventListener("resize", handleResize);
4704
4851
  }, [initialSlidesToShow]);
4705
- (0, import_react41.useEffect)(() => {
4852
+ (0, import_react42.useEffect)(() => {
4706
4853
  if (!autoplay) return;
4707
4854
  const activeSlideElement = trackRef.current?.children[currentSlide];
4708
4855
  const videoElement = activeSlideElement?.querySelector("video");
@@ -4747,7 +4894,7 @@ var init_Slider = __esm({
4747
4894
  }, autoplay_speed);
4748
4895
  return () => clearInterval(timer);
4749
4896
  }, [autoplay, autoplay_speed, currentSlide, isPlaying]);
4750
- const totalSlides = import_react41.Children.count(children);
4897
+ const totalSlides = import_react42.Children.count(children);
4751
4898
  const numColumns = columns ?? slidesToShowState;
4752
4899
  const slideWidthPercentage = (() => {
4753
4900
  if (typeof lastColPercentage !== "number") {
@@ -4813,24 +4960,24 @@ var init_Slider = __esm({
4813
4960
  }
4814
4961
  };
4815
4962
  const translateX = -currentSlide * slideWidthPercentage;
4816
- const slides = import_react41.Children.map(children, (child, index) => {
4817
- if (!import_react41.default.isValidElement(child)) return null;
4963
+ const slides = import_react42.Children.map(children, (child, index) => {
4964
+ if (!import_react42.default.isValidElement(child)) return null;
4818
4965
  const childProps = child.props;
4819
4966
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
4820
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4967
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4821
4968
  "div",
4822
4969
  {
4823
4970
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
4824
4971
  style: { width: `calc(${slideWidthPercentage}%)`, paddingRight: gap },
4825
- children: (0, import_react41.cloneElement)(child, {
4972
+ children: (0, import_react42.cloneElement)(child, {
4826
4973
  className: mergedClassName
4827
4974
  })
4828
4975
  },
4829
4976
  index
4830
4977
  );
4831
4978
  });
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)(
4979
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "w-full", children: [
4980
+ 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
4981
  ProgressPill,
4835
4982
  {
4836
4983
  active: index === currentStepIndex,
@@ -4846,14 +4993,14 @@ var init_Slider = __esm({
4846
4993
  },
4847
4994
  index
4848
4995
  )) }),
4849
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
4996
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
4850
4997
  "div",
4851
4998
  {
4852
4999
  className: `relative w-full overflow-hidden ${className}`,
4853
5000
  onMouseEnter: handleMouseEnter,
4854
5001
  onMouseLeave: handleMouseLeave,
4855
5002
  children: [
4856
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5003
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4857
5004
  "div",
4858
5005
  {
4859
5006
  ref: trackRef,
@@ -4865,32 +5012,32 @@ var init_Slider = __esm({
4865
5012
  children: slides
4866
5013
  }
4867
5014
  ),
4868
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
4869
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5015
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
5016
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4870
5017
  ArrowButton,
4871
5018
  {
4872
5019
  direction: "left",
4873
5020
  onClick: prevSlide,
4874
5021
  visible: infinite_scroll || currentSlide > 0,
4875
5022
  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" }) })
5023
+ 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
5024
  }
4878
5025
  ),
4879
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5026
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4880
5027
  ArrowButton,
4881
5028
  {
4882
5029
  direction: "right",
4883
5030
  onClick: nextSlide,
4884
5031
  visible: infinite_scroll || currentSlide < maxSlide,
4885
5032
  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" }) })
5033
+ 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
5034
  }
4888
5035
  )
4889
5036
  ] })
4890
5037
  ]
4891
5038
  }
4892
5039
  ),
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)(
5040
+ 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
5041
  ProgressPill,
4895
5042
  {
4896
5043
  active: index === currentStepIndex,
@@ -4914,7 +5061,7 @@ var init_Slider = __esm({
4914
5061
  visible,
4915
5062
  children,
4916
5063
  className = ""
4917
- }) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5064
+ }) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4918
5065
  "button",
4919
5066
  {
4920
5067
  className: `
@@ -4940,13 +5087,13 @@ var init_Slider = __esm({
4940
5087
  currentStep,
4941
5088
  customProgress = null
4942
5089
  }) => {
4943
- const [progress, setProgress] = (0, import_react41.useState)(0);
4944
- (0, import_react41.useEffect)(() => {
5090
+ const [progress, setProgress] = (0, import_react42.useState)(0);
5091
+ (0, import_react42.useEffect)(() => {
4945
5092
  if (active) {
4946
5093
  setProgress(0);
4947
5094
  }
4948
5095
  }, [active, index]);
4949
- (0, import_react41.useEffect)(() => {
5096
+ (0, import_react42.useEffect)(() => {
4950
5097
  if (!active || !isPlaying || customProgress !== null) {
4951
5098
  if (!active) {
4952
5099
  setProgress(0);
@@ -4999,7 +5146,7 @@ var init_Slider = __esm({
4999
5146
  const renderProgressBar = () => {
5000
5147
  if (style === "modern" && isActive) {
5001
5148
  const displayProgress = customProgress ?? progress;
5002
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5149
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5003
5150
  "div",
5004
5151
  {
5005
5152
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
@@ -5009,7 +5156,7 @@ var init_Slider = __esm({
5009
5156
  }
5010
5157
  return null;
5011
5158
  };
5012
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
5159
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
5013
5160
  "button",
5014
5161
  {
5015
5162
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -5034,7 +5181,7 @@ __export(server_exports, {
5034
5181
  module.exports = __toCommonJS(server_exports);
5035
5182
 
5036
5183
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
5037
- var import_react43 = __toESM(require("react"));
5184
+ var import_react44 = __toESM(require("react"));
5038
5185
 
5039
5186
  // src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
5040
5187
  var import_react29 = __toESM(require("react"));
@@ -6249,8 +6396,8 @@ var WidgetNode = (props) => {
6249
6396
  var WidgetNode_default = WidgetNode;
6250
6397
 
6251
6398
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
6252
- var import_dynamic14 = __toESM(require("next/dynamic"));
6253
- var import_react42 = __toESM(require("react"));
6399
+ var import_dynamic16 = __toESM(require("next/dynamic"));
6400
+ var import_react43 = __toESM(require("react"));
6254
6401
 
6255
6402
  // src/components/pageRenderingEngine/nodes/EmbedNode.tsx
6256
6403
  var import_dynamic11 = __toESM(require("next/dynamic"));
@@ -7439,13 +7586,112 @@ var GoogleMapNode = (props) => {
7439
7586
  };
7440
7587
  var GoogleMapNode_default = GoogleMapNode;
7441
7588
 
7589
+ // src/components/pageRenderingEngine/nodes/MediaAccordionNode.tsx
7590
+ var import_dynamic15 = __toESM(require("next/dynamic"));
7591
+ init_ServiceClient();
7592
+ var import_jsx_runtime62 = require("react/jsx-runtime");
7593
+ var MediaAccordionNodeClient2 = (0, import_dynamic15.default)(
7594
+ () => Promise.resolve().then(() => (init_MediaAccordionNodeClient(), MediaAccordionNodeClient_exports)),
7595
+ { ssr: false }
7596
+ );
7597
+ var getNestedValue6 = (value, path) => path.split(".").reduce((current, key) => {
7598
+ if (!current || typeof current !== "object") return void 0;
7599
+ return current[key];
7600
+ }, value);
7601
+ var getAssetUrl = (value) => {
7602
+ if (typeof value === "string") {
7603
+ const trimmed = value.trim();
7604
+ if (!trimmed) return {};
7605
+ try {
7606
+ return getAssetUrl(JSON.parse(trimmed));
7607
+ } catch {
7608
+ return { url: trimmed };
7609
+ }
7610
+ }
7611
+ if (Array.isArray(value)) {
7612
+ const image = value.find(
7613
+ (entry) => entry && typeof entry === "object" && "assetUrl" in entry
7614
+ );
7615
+ return getAssetUrl(image);
7616
+ }
7617
+ if (value && typeof value === "object") {
7618
+ const asset = value;
7619
+ return {
7620
+ url: typeof asset.assetUrl === "string" ? asset.assetUrl : void 0,
7621
+ posterUrl: typeof asset.posterUrl === "string" ? asset.posterUrl : void 0
7622
+ };
7623
+ }
7624
+ return {};
7625
+ };
7626
+ var fetchStoryItems = async (node, apiBaseUrl, session, routeParameters) => {
7627
+ const dataSource = node.dataSource?.trim();
7628
+ if (!dataSource) return void 0;
7629
+ const endpoint = dataSource.replace(
7630
+ /\{(\w+)\}/g,
7631
+ (placeholder, key) => routeParameters?.[key] == null ? placeholder : String(routeParameters[key])
7632
+ );
7633
+ try {
7634
+ const response = await new ServiceClient_default(apiBaseUrl, session).get(endpoint);
7635
+ if (!response?.isSuccessful) {
7636
+ console.error(
7637
+ "Story accordion API request failed:",
7638
+ response?.message || endpoint
7639
+ );
7640
+ return void 0;
7641
+ }
7642
+ const result = response.result;
7643
+ const records = Array.isArray(result) ? result : [];
7644
+ return records.flatMap((record, index) => {
7645
+ const title = getNestedValue6(record, node.titleField || "title");
7646
+ const mappedMedia = getAssetUrl(
7647
+ getNestedValue6(record, node.mediaUrlField || "mediaUrl")
7648
+ );
7649
+ const explicitPoster = node.posterUrlField ? getAssetUrl(getNestedValue6(record, node.posterUrlField)).url : void 0;
7650
+ const mediaUrl = mappedMedia.url;
7651
+ if (!mediaUrl) return [];
7652
+ const typeValue = node.mediaTypeField ? getNestedValue6(record, node.mediaTypeField) : void 0;
7653
+ const mediaType = typeof typeValue === "string" ? typeValue.toLowerCase() === "video" ? "video" : "image" : /\.(mp4|webm|ogv|m3u8)(?:$|[?#])/i.test(mediaUrl) ? "video" : "image";
7654
+ return [
7655
+ {
7656
+ id: `api-story-${index}`,
7657
+ title: typeof title === "string" || typeof title === "number" ? String(title) : `Story ${index + 1}`,
7658
+ mediaUrl,
7659
+ posterUrl: explicitPoster || mappedMedia.posterUrl,
7660
+ mediaType
7661
+ }
7662
+ ];
7663
+ });
7664
+ } catch (error) {
7665
+ console.error("Story accordion API request failed:", error);
7666
+ return void 0;
7667
+ }
7668
+ };
7669
+ var MediaAccordionNode = async (props) => {
7670
+ const apiItems = await fetchStoryItems(
7671
+ props.node,
7672
+ props.apiBaseUrl,
7673
+ props.session,
7674
+ props.routeParameters
7675
+ );
7676
+ const node = apiItems ? { ...props.node, items: apiItems } : props.node;
7677
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
7678
+ MediaAccordionNodeClient2,
7679
+ {
7680
+ node,
7681
+ apiBaseUrl: props.apiBaseUrl,
7682
+ assetBaseUrl: props.assetBaseUrl
7683
+ }
7684
+ );
7685
+ };
7686
+ var MediaAccordionNode_default = MediaAccordionNode;
7687
+
7442
7688
  // 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)), {
7689
+ var import_jsx_runtime71 = require("react/jsx-runtime");
7690
+ var Pagination2 = (0, import_dynamic16.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
7691
+ var DataBindingControls2 = (0, import_dynamic16.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
7446
7692
  ssr: true
7447
7693
  });
7448
- var Slider2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
7694
+ var Slider2 = (0, import_dynamic16.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
7449
7695
  ssr: false
7450
7696
  });
7451
7697
  function toCamelCase(str) {
@@ -7466,7 +7712,7 @@ function convertKeysToCamelCase(obj) {
7466
7712
  Object.entries(obj).filter(([_, value]) => value !== "" && value !== void 0).map(([key, value]) => [toCamelCase(key), convertKeysToCamelCase(value)])
7467
7713
  );
7468
7714
  }
7469
- var getNestedValue6 = (obj, path) => {
7715
+ var getNestedValue7 = (obj, path) => {
7470
7716
  if (!obj || !path) return void 0;
7471
7717
  return path.split(".").reduce((current, key) => {
7472
7718
  {
@@ -7511,7 +7757,7 @@ function generateCompleteBackgroundString(layers, apiBaseUrl, dataItem) {
7511
7757
  const imageValue = layer.value;
7512
7758
  let assetUrl = imageValue.assetUrl || "";
7513
7759
  if (layer.datafield && dataItem) {
7514
- const fieldValue = getNestedValue6(dataItem, layer.datafield);
7760
+ const fieldValue = getNestedValue7(dataItem, layer.datafield);
7515
7761
  const resolvedAssetUrl = resolveAssetUrl(fieldValue, layer.tag);
7516
7762
  if (resolvedAssetUrl) {
7517
7763
  assetUrl = resolvedAssetUrl;
@@ -7636,7 +7882,8 @@ var DivContainer = async (props) => {
7636
7882
  "svg-icon": SVGIconNode_default,
7637
7883
  document: DocumentNode_default,
7638
7884
  "google-map": GoogleMapNode_default,
7639
- counter: CounterNode_default
7885
+ counter: CounterNode_default,
7886
+ "story-accordion": MediaAccordionNode_default
7640
7887
  };
7641
7888
  const styles = props.node.cssProperties;
7642
7889
  const mobileStyles = props.node.mobileCssProperties;
@@ -7713,7 +7960,7 @@ var DivContainer = async (props) => {
7713
7960
  response = await serviceClient.get(endpoint);
7714
7961
  result = response?.result;
7715
7962
  if (dataBindingProperties.childCollectionName && props.dataitem) {
7716
- childCollectionData = getNestedValue6(
7963
+ childCollectionData = getNestedValue7(
7717
7964
  props.dataitem,
7718
7965
  dataBindingProperties.childCollectionName
7719
7966
  );
@@ -7735,7 +7982,7 @@ var DivContainer = async (props) => {
7735
7982
  }
7736
7983
  const SelectedNode = NodeTypes2[node.type];
7737
7984
  if (!SelectedNode) return null;
7738
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
7985
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7739
7986
  SelectedNode,
7740
7987
  {
7741
7988
  node,
@@ -7840,7 +8087,7 @@ var DivContainer = async (props) => {
7840
8087
  item,
7841
8088
  idx,
7842
8089
  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)
8090
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react43.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
7844
8091
  );
7845
8092
  }
7846
8093
  return props.node.children.flatMap((node, childIndex) => {
@@ -7851,7 +8098,7 @@ var DivContainer = async (props) => {
7851
8098
  let repeatItems = null;
7852
8099
  const childCollectionName = node?.dataBinding?.childCollectionName;
7853
8100
  if (childCollectionName && props.dataitem) {
7854
- const nestedCollection = getNestedValue6(
8101
+ const nestedCollection = getNestedValue7(
7855
8102
  props.dataitem,
7856
8103
  childCollectionName
7857
8104
  );
@@ -7958,17 +8205,17 @@ var DivContainer = async (props) => {
7958
8205
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
7959
8206
  );
7960
8207
  const WrapperComponent = Wrapper;
7961
- const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8208
+ const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7962
8209
  WrapperComponent,
7963
8210
  {
7964
8211
  id: guid,
7965
8212
  style: combinedStyles,
7966
8213
  className: classNames || void 0,
7967
8214
  ...wrapperProps,
7968
- children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(NoFilterResultsFound_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(NoDataFound_default, {}) : renderContainerChildren()
8215
+ children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(NoFilterResultsFound_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(NoDataFound_default, {}) : renderContainerChildren()
7969
8216
  }
7970
8217
  );
7971
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8218
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7972
8219
  Pagination2,
7973
8220
  {
7974
8221
  path: props.path,
@@ -7976,15 +8223,15 @@ var DivContainer = async (props) => {
7976
8223
  dataset: response
7977
8224
  }
7978
8225
  ) : null;
7979
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react42.default.Fragment, { children: [
7980
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8226
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react43.default.Fragment, { children: [
8227
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7981
8228
  "style",
7982
8229
  {
7983
8230
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
7984
8231
  }
7985
8232
  ),
7986
- showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react42.default.Fragment, { children: [
7987
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8233
+ showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react43.default.Fragment, { children: [
8234
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
7988
8235
  DataBindingControls2,
7989
8236
  {
7990
8237
  mode: "toolbar",
@@ -7997,16 +8244,16 @@ var DivContainer = async (props) => {
7997
8244
  showSearchBar: dataBindingProperties?.showSearchBar
7998
8245
  }
7999
8246
  ),
8000
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
8247
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
8001
8248
  "div",
8002
8249
  {
8003
8250
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
8004
8251
  children: [
8005
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "min-w-0", children: [
8252
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "min-w-0", children: [
8006
8253
  renderedContainer,
8007
8254
  paginationControl
8008
8255
  ] }),
8009
- dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("aside", { className: "hidden lg:block", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
8256
+ dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("aside", { className: "hidden lg:block", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
8010
8257
  DataBindingControls2,
8011
8258
  {
8012
8259
  mode: "facets",
@@ -8019,16 +8266,16 @@ var DivContainer = async (props) => {
8019
8266
  ]
8020
8267
  }
8021
8268
  )
8022
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react42.default.Fragment, { children: [
8269
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_react43.default.Fragment, { children: [
8023
8270
  renderedContainer,
8024
- paginationControl && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { children: paginationControl })
8271
+ paginationControl && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { children: paginationControl })
8025
8272
  ] })
8026
8273
  ] });
8027
8274
  };
8028
8275
  var DivContainer_default = DivContainer;
8029
8276
 
8030
8277
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
8031
- var import_jsx_runtime70 = require("react/jsx-runtime");
8278
+ var import_jsx_runtime72 = require("react/jsx-runtime");
8032
8279
  var NodeTypes = {
8033
8280
  ["paragraph"]: ParagraphNode_default,
8034
8281
  ["heading"]: HeadingNode_default,
@@ -8045,7 +8292,8 @@ var NodeTypes = {
8045
8292
  ["embed"]: EmbedNode_default,
8046
8293
  ["document"]: DocumentNode_default,
8047
8294
  ["google-map"]: GoogleMapNode_default,
8048
- ["counter"]: CounterNode_default
8295
+ ["counter"]: CounterNode_default,
8296
+ ["story-accordion"]: MediaAccordionNode_default
8049
8297
  };
8050
8298
  var PageBodyRenderer = (props) => {
8051
8299
  let pageBodyTree;
@@ -8067,14 +8315,14 @@ var PageBodyRenderer = (props) => {
8067
8315
  }
8068
8316
  return true;
8069
8317
  };
8070
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
8318
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react44.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
8071
8319
  {
8072
8320
  }
8073
8321
  const SelectedNode = NodeTypes[node.type];
8074
8322
  if (!shouldRenderNode(node)) {
8075
8323
  return null;
8076
8324
  }
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)(
8325
+ 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
8326
  SelectedNode,
8079
8327
  {
8080
8328
  node,
@@ -8090,7 +8338,7 @@ var PageBodyRenderer = (props) => {
8090
8338
  device: props.device,
8091
8339
  widgetRenderer: props.widgetRenderer
8092
8340
  }
8093
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
8341
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
8094
8342
  SelectedNode,
8095
8343
  {
8096
8344
  node,