@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260923102653 → 0.8.1-dev.20260923125229

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
@@ -3180,11 +3180,12 @@ var init_InputControlType = __esm({
3180
3180
  });
3181
3181
 
3182
3182
  // src/clients/OdataBuilder.tsx
3183
- var OdataBuilder;
3183
+ var encodeFilter, OdataBuilder;
3184
3184
  var init_OdataBuilder = __esm({
3185
3185
  "src/clients/OdataBuilder.tsx"() {
3186
3186
  "use strict";
3187
3187
  init_InputControlType();
3188
+ encodeFilter = (filter) => encodeURIComponent(filter);
3188
3189
  OdataBuilder = class {
3189
3190
  constructor(url) {
3190
3191
  this.baseUrl = url;
@@ -3266,7 +3267,7 @@ var init_OdataBuilder = __esm({
3266
3267
  }
3267
3268
  if (obj) {
3268
3269
  if (obj["$filter"] && obj["$filter"] !== null && obj["$filter"] !== "") {
3269
- queryString = queryString + `&$filter=${obj["$filter"]}`;
3270
+ queryString = queryString + `&$filter=${encodeFilter(obj["$filter"])}`;
3270
3271
  }
3271
3272
  if (obj["$orderby"] && obj["$orderby"] !== null && obj["$orderby"] !== "") {
3272
3273
  queryString = queryString + `&$orderby=${obj["$orderby"]}`;
@@ -3326,7 +3327,7 @@ var init_OdataBuilder = __esm({
3326
3327
  getUrl() {
3327
3328
  let url = `${this.baseUrl}?$skip=${this.skip}&$top=${this.top}&$count=true`;
3328
3329
  if (this.filterBy !== null && this.filterBy !== "") {
3329
- url = url + `&$filter=${this.filterBy}`;
3330
+ url = url + `&$filter=${encodeFilter(this.filterBy)}`;
3330
3331
  }
3331
3332
  if (this.orderBy !== null && this.orderBy !== "") {
3332
3333
  url = url + `&$orderby=${this.orderBy}`;
@@ -3343,7 +3344,7 @@ var init_OdataBuilder = __esm({
3343
3344
  getNewOrderByUrl(orderBy) {
3344
3345
  let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
3345
3346
  if (this.filterBy !== null && this.filterBy !== "") {
3346
- url = url + `&$filter=${this.filterBy}`;
3347
+ url = url + `&$filter=${encodeFilter(this.filterBy)}`;
3347
3348
  }
3348
3349
  if (this.searchTerm) {
3349
3350
  url += `&searchTerm=${encodeURIComponent(this.searchTerm)}`;
@@ -3357,7 +3358,7 @@ var init_OdataBuilder = __esm({
3357
3358
  getNewFilterUrl(filterBy) {
3358
3359
  let url = `${this.baseUrl}?$skip=${0}&$top=${this.top}&$count=true`;
3359
3360
  if (filterBy !== null && filterBy !== "") {
3360
- url = url + `&$filter=${filterBy}`;
3361
+ url = url + `&$filter=${encodeFilter(filterBy)}`;
3361
3362
  }
3362
3363
  if (this.orderBy !== null && this.orderBy !== "") {
3363
3364
  url = url + `&$orderby=${this.orderBy}`;
@@ -3374,7 +3375,7 @@ var init_OdataBuilder = __esm({
3374
3375
  let skip = page * Constants.pagesize - Constants.pagesize;
3375
3376
  let url = `${this.baseUrl}?$skip=${skip}&$top=${this.top}&$count=true`;
3376
3377
  if (this.filterBy !== null && this.filterBy !== "") {
3377
- url = url + `&$filter=${this.filterBy}`;
3378
+ url = url + `&$filter=${encodeFilter(this.filterBy)}`;
3378
3379
  }
3379
3380
  if (this.orderBy !== null && this.orderBy !== "") {
3380
3381
  url = url + `&$orderby=${this.orderBy}`;
@@ -3394,7 +3395,7 @@ var init_OdataBuilder = __esm({
3394
3395
  const skip = (currentPage - 1) * pageSize;
3395
3396
  let url = `${this.baseUrl}?$skip=${skip}&$top=${pageSize}&$count=true`;
3396
3397
  if (this.filterBy !== null && this.filterBy !== "") {
3397
- url = url + `&$filter=${this.filterBy}`;
3398
+ url = url + `&$filter=${encodeFilter(this.filterBy)}`;
3398
3399
  }
3399
3400
  if (this.orderBy !== null && this.orderBy !== "") {
3400
3401
  url = url + `&$orderby=${this.orderBy}`;
@@ -3415,52 +3416,52 @@ var init_OdataBuilder = __esm({
3415
3416
  });
3416
3417
 
3417
3418
  // src/svg/chevron-updown.tsx
3418
- var import_jsx_runtime58, ChevronUpDown, chevron_updown_default;
3419
+ var import_jsx_runtime59, ChevronUpDown, chevron_updown_default;
3419
3420
  var init_chevron_updown = __esm({
3420
3421
  "src/svg/chevron-updown.tsx"() {
3421
3422
  "use strict";
3422
- import_jsx_runtime58 = require("react/jsx-runtime");
3423
+ import_jsx_runtime59 = require("react/jsx-runtime");
3423
3424
  ChevronUpDown = (props) => {
3424
- return /* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3425
+ return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
3425
3426
  };
3426
3427
  chevron_updown_default = ChevronUpDown;
3427
3428
  }
3428
3429
  });
3429
3430
 
3430
3431
  // src/svg/chevron-down.tsx
3431
- var import_jsx_runtime59, ChevronDown, chevron_down_default;
3432
+ var import_jsx_runtime60, ChevronDown, chevron_down_default;
3432
3433
  var init_chevron_down = __esm({
3433
3434
  "src/svg/chevron-down.tsx"() {
3434
3435
  "use strict";
3435
- import_jsx_runtime59 = require("react/jsx-runtime");
3436
+ import_jsx_runtime60 = require("react/jsx-runtime");
3436
3437
  ChevronDown = (props) => {
3437
- return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3438
+ return /* @__PURE__ */ (0, import_jsx_runtime60.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_runtime60.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
3438
3439
  };
3439
3440
  chevron_down_default = ChevronDown;
3440
3441
  }
3441
3442
  });
3442
3443
 
3443
3444
  // src/svg/chevron-up.tsx
3444
- var import_jsx_runtime60, ChevronUp, chevron_up_default;
3445
+ var import_jsx_runtime61, ChevronUp, chevron_up_default;
3445
3446
  var init_chevron_up = __esm({
3446
3447
  "src/svg/chevron-up.tsx"() {
3447
3448
  "use strict";
3448
- import_jsx_runtime60 = require("react/jsx-runtime");
3449
+ import_jsx_runtime61 = require("react/jsx-runtime");
3449
3450
  ChevronUp = (props) => {
3450
- return /* @__PURE__ */ (0, import_jsx_runtime60.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_runtime60.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3451
+ 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: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
3451
3452
  };
3452
3453
  chevron_up_default = ChevronUp;
3453
3454
  }
3454
3455
  });
3455
3456
 
3456
3457
  // src/svg/plus.tsx
3457
- var import_jsx_runtime61, Plus, plus_default;
3458
+ var import_jsx_runtime62, Plus, plus_default;
3458
3459
  var init_plus = __esm({
3459
3460
  "src/svg/plus.tsx"() {
3460
3461
  "use strict";
3461
- import_jsx_runtime61 = require("react/jsx-runtime");
3462
+ import_jsx_runtime62 = require("react/jsx-runtime");
3462
3463
  Plus = (props) => {
3463
- 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: "M12 4.5v15m7.5-7.5h-15" }) });
3464
+ 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: "M12 4.5v15m7.5-7.5h-15" }) });
3464
3465
  };
3465
3466
  plus_default = Plus;
3466
3467
  }
@@ -3486,19 +3487,19 @@ var init_Icons = __esm({
3486
3487
  });
3487
3488
 
3488
3489
  // src/svg/Icon.tsx
3489
- var import_jsx_runtime62, Icon, Icon_default;
3490
+ var import_jsx_runtime63, Icon, Icon_default;
3490
3491
  var init_Icon = __esm({
3491
3492
  "src/svg/Icon.tsx"() {
3492
3493
  "use strict";
3493
3494
  init_Icons();
3494
- import_jsx_runtime62 = require("react/jsx-runtime");
3495
+ import_jsx_runtime63 = require("react/jsx-runtime");
3495
3496
  Icon = ({ name, className, ...props }) => {
3496
3497
  const IconComponent = Icons_default[name];
3497
3498
  if (!IconComponent) {
3498
3499
  console.error(`Icon "${name}" not found.`);
3499
3500
  return null;
3500
3501
  }
3501
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(IconComponent, { ...props, className });
3502
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(IconComponent, { ...props, className });
3502
3503
  };
3503
3504
  Icon_default = Icon;
3504
3505
  }
@@ -3509,7 +3510,7 @@ var Pagination_exports = {};
3509
3510
  __export(Pagination_exports, {
3510
3511
  default: () => Pagination_default
3511
3512
  });
3512
- var import_react38, import_jsx_runtime63, Pagination, Pagination_default;
3513
+ var import_react38, import_jsx_runtime64, Pagination, Pagination_default;
3513
3514
  var init_Pagination = __esm({
3514
3515
  "src/components/Pagination.tsx"() {
3515
3516
  "use strict";
@@ -3520,7 +3521,7 @@ var init_Pagination = __esm({
3520
3521
  init_StyleTypes();
3521
3522
  init_InputControlType();
3522
3523
  init_Hyperlink();
3523
- import_jsx_runtime63 = require("react/jsx-runtime");
3524
+ import_jsx_runtime64 = require("react/jsx-runtime");
3524
3525
  Pagination = (props) => {
3525
3526
  const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
3526
3527
  const builder = (0, import_react38.useMemo)(() => {
@@ -3564,7 +3565,7 @@ var init_Pagination = __esm({
3564
3565
  return range;
3565
3566
  };
3566
3567
  const paginationRange = getPaginationRange();
3567
- const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3568
+ const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3568
3569
  Hyperlink,
3569
3570
  {
3570
3571
  linkType: "Link" /* Link */,
@@ -3579,9 +3580,9 @@ var init_Pagination = __esm({
3579
3580
  );
3580
3581
  const NavigationButton = ({ page, disabled, children }) => {
3581
3582
  if (disabled) {
3582
- return /* @__PURE__ */ (0, import_jsx_runtime63.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 });
3583
+ return /* @__PURE__ */ (0, import_jsx_runtime64.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 });
3583
3584
  }
3584
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3585
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3585
3586
  Hyperlink,
3586
3587
  {
3587
3588
  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",
@@ -3591,35 +3592,35 @@ var init_Pagination = __esm({
3591
3592
  );
3592
3593
  };
3593
3594
  if (totalPages <= 1 && totalItems === 0) return null;
3594
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "py-6 border-t mt-6", children: [
3595
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3596
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "text-sm", children: [
3595
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "py-6 border-t mt-6", children: [
3596
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
3597
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "text-sm", children: [
3597
3598
  "Showing ",
3598
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { className: "font-semibold", children: [
3599
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "font-semibold", children: [
3599
3600
  startItem,
3600
3601
  "-",
3601
3602
  endItem
3602
3603
  ] }),
3603
3604
  " ",
3604
3605
  "out of ",
3605
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3606
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
3606
3607
  " results"
3607
3608
  ] }),
3608
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center space-x-1", children: [
3609
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
3609
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center space-x-1", children: [
3610
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
3610
3611
  NavigationButton,
3611
3612
  {
3612
3613
  page: activePageNumber - 1,
3613
3614
  disabled: activePageNumber === 1,
3614
3615
  children: [
3615
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3616
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "Prev" })
3616
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
3617
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm", children: "Prev" })
3617
3618
  ]
3618
3619
  }
3619
3620
  ),
3620
3621
  paginationRange.map((item, index) => {
3621
3622
  if (item === "...") {
3622
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3623
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3623
3624
  "span",
3624
3625
  {
3625
3626
  className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
@@ -3629,23 +3630,23 @@ var init_Pagination = __esm({
3629
3630
  );
3630
3631
  }
3631
3632
  const page = item;
3632
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(PageButton, { page, children: page }, page);
3633
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(PageButton, { page, children: page }, page);
3633
3634
  }),
3634
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
3635
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
3635
3636
  NavigationButton,
3636
3637
  {
3637
3638
  page: activePageNumber + 1,
3638
3639
  disabled: activePageNumber === totalPages,
3639
3640
  children: [
3640
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "Next" }),
3641
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3641
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm", children: "Next" }),
3642
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
3642
3643
  ]
3643
3644
  }
3644
3645
  )
3645
3646
  ] }),
3646
- showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center space-x-2", children: [
3647
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "Go to:" }),
3648
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3647
+ showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center space-x-2", children: [
3648
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm", children: "Go to:" }),
3649
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3649
3650
  "input",
3650
3651
  {
3651
3652
  type: "number",
@@ -3666,9 +3667,9 @@ var init_Pagination = __esm({
3666
3667
  ) })
3667
3668
  ] })
3668
3669
  ] }),
3669
- showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
3670
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "Show:" }),
3671
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
3670
+ showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
3671
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm", children: "Show:" }),
3672
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3672
3673
  Hyperlink,
3673
3674
  {
3674
3675
  className: `
@@ -3680,7 +3681,7 @@ var init_Pagination = __esm({
3680
3681
  },
3681
3682
  size
3682
3683
  )) }),
3683
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "per page" })
3684
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm", children: "per page" })
3684
3685
  ] }) })
3685
3686
  ] });
3686
3687
  };
@@ -3689,12 +3690,12 @@ var init_Pagination = __esm({
3689
3690
  });
3690
3691
 
3691
3692
  // src/components/controls/edit/MultilineTextInput.tsx
3692
- var import_react39, import_jsx_runtime64, MultilineTextInput, MultilineTextInput_default;
3693
+ var import_react39, import_jsx_runtime65, MultilineTextInput, MultilineTextInput_default;
3693
3694
  var init_MultilineTextInput = __esm({
3694
3695
  "src/components/controls/edit/MultilineTextInput.tsx"() {
3695
3696
  "use strict";
3696
3697
  import_react39 = __toESM(require("react"));
3697
- import_jsx_runtime64 = require("react/jsx-runtime");
3698
+ import_jsx_runtime65 = require("react/jsx-runtime");
3698
3699
  MultilineTextInput = (props) => {
3699
3700
  const textChangeHandler = (event) => {
3700
3701
  const text = event.target.value;
@@ -3713,11 +3714,11 @@ var init_MultilineTextInput = __esm({
3713
3714
  if (props.value !== void 0 && props.value !== null) {
3714
3715
  value = props.value;
3715
3716
  }
3716
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("label", { className: "block mb-1", children: [
3717
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3717
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("label", { className: "block mb-1", children: [
3718
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
3718
3719
  " ",
3719
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "bg-error-weak", children: "*" }),
3720
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
3720
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "bg-error-weak", children: "*" }),
3721
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3721
3722
  "textarea",
3722
3723
  {
3723
3724
  name: props.name,
@@ -3734,7 +3735,7 @@ var init_MultilineTextInput = __esm({
3734
3735
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
3735
3736
  }
3736
3737
  ),
3737
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3738
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3738
3739
  ] }) });
3739
3740
  };
3740
3741
  MultilineTextInput_default = MultilineTextInput;
@@ -3742,12 +3743,12 @@ var init_MultilineTextInput = __esm({
3742
3743
  });
3743
3744
 
3744
3745
  // src/components/controls/edit/LineTextInput.tsx
3745
- var import_react40, import_jsx_runtime65, LineTextInput, LineTextInput_default;
3746
+ var import_react40, import_jsx_runtime66, LineTextInput, LineTextInput_default;
3746
3747
  var init_LineTextInput = __esm({
3747
3748
  "src/components/controls/edit/LineTextInput.tsx"() {
3748
3749
  "use strict";
3749
3750
  import_react40 = __toESM(require("react"));
3750
- import_jsx_runtime65 = require("react/jsx-runtime");
3751
+ import_jsx_runtime66 = require("react/jsx-runtime");
3751
3752
  LineTextInput = (props) => {
3752
3753
  const textChangeHandler = (event) => {
3753
3754
  const text = event.target.value;
@@ -3766,11 +3767,11 @@ var init_LineTextInput = __esm({
3766
3767
  if (props.value !== void 0 && props.value !== null) {
3767
3768
  value = props.value;
3768
3769
  }
3769
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("label", { className: "block", children: [
3770
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
3770
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { className: "block", children: [
3771
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
3771
3772
  " ",
3772
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
3773
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
3773
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
3774
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3774
3775
  "input",
3775
3776
  {
3776
3777
  type: "text",
@@ -3791,7 +3792,7 @@ var init_LineTextInput = __esm({
3791
3792
  `
3792
3793
  }
3793
3794
  ),
3794
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3795
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3795
3796
  ] }) });
3796
3797
  };
3797
3798
  LineTextInput_default = LineTextInput;
@@ -3799,12 +3800,12 @@ var init_LineTextInput = __esm({
3799
3800
  });
3800
3801
 
3801
3802
  // src/components/controls/edit/MoneyInput.tsx
3802
- var import_react41, import_jsx_runtime66, MoneyInput, MoneyInput_default;
3803
+ var import_react41, import_jsx_runtime67, MoneyInput, MoneyInput_default;
3803
3804
  var init_MoneyInput = __esm({
3804
3805
  "src/components/controls/edit/MoneyInput.tsx"() {
3805
3806
  "use strict";
3806
3807
  import_react41 = __toESM(require("react"));
3807
- import_jsx_runtime66 = require("react/jsx-runtime");
3808
+ import_jsx_runtime67 = require("react/jsx-runtime");
3808
3809
  MoneyInput = (props) => {
3809
3810
  const textChangeHandler = (event) => {
3810
3811
  const rawValue = event.target.value;
@@ -3833,11 +3834,11 @@ var init_MoneyInput = __esm({
3833
3834
  e.preventDefault();
3834
3835
  }
3835
3836
  };
3836
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react41.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { className: "block", children: [
3837
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
3837
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react41.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "block", children: [
3838
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
3838
3839
  " ",
3839
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "bg-error-weak", children: "*" }),
3840
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
3840
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "bg-error-weak", children: "*" }),
3841
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3841
3842
  "input",
3842
3843
  {
3843
3844
  type: "number",
@@ -3861,7 +3862,7 @@ var init_MoneyInput = __esm({
3861
3862
  `
3862
3863
  }
3863
3864
  ),
3864
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3865
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
3865
3866
  ] }) });
3866
3867
  };
3867
3868
  MoneyInput_default = MoneyInput;
@@ -3869,12 +3870,12 @@ var init_MoneyInput = __esm({
3869
3870
  });
3870
3871
 
3871
3872
  // src/components/controls/edit/Select.tsx
3872
- var import_react42, import_jsx_runtime67, Select, Select_default;
3873
+ var import_react42, import_jsx_runtime68, Select, Select_default;
3873
3874
  var init_Select = __esm({
3874
3875
  "src/components/controls/edit/Select.tsx"() {
3875
3876
  "use strict";
3876
3877
  import_react42 = require("react");
3877
- import_jsx_runtime67 = require("react/jsx-runtime");
3878
+ import_jsx_runtime68 = require("react/jsx-runtime");
3878
3879
  Select = (props) => {
3879
3880
  const [list, setList] = (0, import_react42.useState)();
3880
3881
  const getSafeValue = (val) => {
@@ -3946,11 +3947,11 @@ var init_Select = __esm({
3946
3947
  props.dataSourceDependsOn
3947
3948
  ]);
3948
3949
  const value = getSafeValue(props.value);
3949
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "block", children: [
3950
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
3950
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "block", children: [
3951
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
3951
3952
  " ",
3952
- props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "bg-error-weak", children: "*" }),
3953
- list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
3953
+ props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "bg-error-weak", children: "*" }),
3954
+ list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3954
3955
  "input",
3955
3956
  {
3956
3957
  type: "text",
@@ -3967,7 +3968,7 @@ var init_Select = __esm({
3967
3968
  className: `peer input select mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
3968
3969
  }
3969
3970
  ),
3970
- list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
3971
+ list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
3971
3972
  "select",
3972
3973
  {
3973
3974
  name: props.name,
@@ -3980,16 +3981,16 @@ var init_Select = __esm({
3980
3981
  focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
3981
3982
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none ${props.inputClasses ?? ""}`,
3982
3983
  children: [
3983
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
3984
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
3984
3985
  list.map((item, index) => {
3985
3986
  const keyField = props.dataKeyFieldName;
3986
3987
  const textField = props.dataTextFieldName;
3987
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("option", { value: item[keyField], children: item[textField] }, index);
3988
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("option", { value: item[keyField], children: item[textField] }, index);
3988
3989
  })
3989
3990
  ]
3990
3991
  }
3991
3992
  ),
3992
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
3993
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
3993
3994
  ] });
3994
3995
  };
3995
3996
  Select_default = Select;
@@ -3997,12 +3998,12 @@ var init_Select = __esm({
3997
3998
  });
3998
3999
 
3999
4000
  // src/components/controls/edit/PercentageInput.tsx
4000
- var import_react43, import_jsx_runtime68, PercentageInput, PercentageInput_default;
4001
+ var import_react43, import_jsx_runtime69, PercentageInput, PercentageInput_default;
4001
4002
  var init_PercentageInput = __esm({
4002
4003
  "src/components/controls/edit/PercentageInput.tsx"() {
4003
4004
  "use strict";
4004
4005
  import_react43 = __toESM(require("react"));
4005
- import_jsx_runtime68 = require("react/jsx-runtime");
4006
+ import_jsx_runtime69 = require("react/jsx-runtime");
4006
4007
  PercentageInput = (props) => {
4007
4008
  const textChangeHandler = (event) => {
4008
4009
  const rawValue = event.target.value;
@@ -4031,11 +4032,11 @@ var init_PercentageInput = __esm({
4031
4032
  e.preventDefault();
4032
4033
  }
4033
4034
  };
4034
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "block", children: [
4035
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props.attributes.label + " %" }),
4035
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { className: "block", children: [
4036
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props.attributes.label + " %" }),
4036
4037
  " ",
4037
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "bg-error-weak", children: "*" }),
4038
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4038
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "bg-error-weak", children: "*" }),
4039
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4039
4040
  "input",
4040
4041
  {
4041
4042
  type: "number",
@@ -4058,7 +4059,7 @@ var init_PercentageInput = __esm({
4058
4059
  `
4059
4060
  }
4060
4061
  ),
4061
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4062
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4062
4063
  ] }) });
4063
4064
  };
4064
4065
  PercentageInput_default = PercentageInput;
@@ -4066,12 +4067,12 @@ var init_PercentageInput = __esm({
4066
4067
  });
4067
4068
 
4068
4069
  // src/components/controls/edit/PhoneInput.tsx
4069
- var import_react44, import_jsx_runtime69, PhoneInput, PhoneInput_default;
4070
+ var import_react44, import_jsx_runtime70, PhoneInput, PhoneInput_default;
4070
4071
  var init_PhoneInput = __esm({
4071
4072
  "src/components/controls/edit/PhoneInput.tsx"() {
4072
4073
  "use strict";
4073
4074
  import_react44 = __toESM(require("react"));
4074
- import_jsx_runtime69 = require("react/jsx-runtime");
4075
+ import_jsx_runtime70 = require("react/jsx-runtime");
4075
4076
  PhoneInput = (props) => {
4076
4077
  const textChangeHandler = (event) => {
4077
4078
  const text = event.target.value;
@@ -4090,13 +4091,13 @@ var init_PhoneInput = __esm({
4090
4091
  if (props.value !== void 0 && props.value !== null) {
4091
4092
  value = props.value;
4092
4093
  }
4093
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { className: "block mb-1", children: [
4094
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
4094
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("label", { className: "block mb-1", children: [
4095
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
4095
4096
  " ",
4096
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "bg-error-weak", children: "*" }),
4097
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center rounded border ", children: [
4098
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "px-3", children: props.prefix }),
4099
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4097
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "bg-error-weak", children: "*" }),
4098
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-center rounded border ", children: [
4099
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "px-3", children: props.prefix }),
4100
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4100
4101
  "input",
4101
4102
  {
4102
4103
  type: "text",
@@ -4114,7 +4115,7 @@ var init_PhoneInput = __esm({
4114
4115
  }
4115
4116
  )
4116
4117
  ] }),
4117
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4118
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4118
4119
  ] }) });
4119
4120
  };
4120
4121
  PhoneInput_default = PhoneInput;
@@ -4122,12 +4123,12 @@ var init_PhoneInput = __esm({
4122
4123
  });
4123
4124
 
4124
4125
  // src/components/controls/edit/NumberInput.tsx
4125
- var import_react45, import_jsx_runtime70, NumberInput, NumberInput_default;
4126
+ var import_react45, import_jsx_runtime71, NumberInput, NumberInput_default;
4126
4127
  var init_NumberInput = __esm({
4127
4128
  "src/components/controls/edit/NumberInput.tsx"() {
4128
4129
  "use strict";
4129
4130
  import_react45 = __toESM(require("react"));
4130
- import_jsx_runtime70 = require("react/jsx-runtime");
4131
+ import_jsx_runtime71 = require("react/jsx-runtime");
4131
4132
  NumberInput = (props) => {
4132
4133
  const textChangeHandler = (event) => {
4133
4134
  const text = event.target.value;
@@ -4148,11 +4149,11 @@ var init_NumberInput = __esm({
4148
4149
  if (props.value !== void 0 && props.value !== null) {
4149
4150
  value = props.value;
4150
4151
  }
4151
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react45.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("label", { className: "block", children: [
4152
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
4152
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react45.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("label", { className: "block", children: [
4153
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
4153
4154
  " ",
4154
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "bg-error-weak", children: "*" }),
4155
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4155
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "bg-error-weak", children: "*" }),
4156
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4156
4157
  "input",
4157
4158
  {
4158
4159
  type: "number",
@@ -4174,7 +4175,7 @@ var init_NumberInput = __esm({
4174
4175
  `
4175
4176
  }
4176
4177
  ),
4177
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4178
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4178
4179
  ] }) });
4179
4180
  };
4180
4181
  NumberInput_default = NumberInput;
@@ -4182,12 +4183,12 @@ var init_NumberInput = __esm({
4182
4183
  });
4183
4184
 
4184
4185
  // src/components/controls/edit/CheckboxInput.tsx
4185
- var import_react46, import_jsx_runtime71, CheckboxInput, CheckboxInput_default;
4186
+ var import_react46, import_jsx_runtime72, CheckboxInput, CheckboxInput_default;
4186
4187
  var init_CheckboxInput = __esm({
4187
4188
  "src/components/controls/edit/CheckboxInput.tsx"() {
4188
4189
  "use strict";
4189
4190
  import_react46 = __toESM(require("react"));
4190
- import_jsx_runtime71 = require("react/jsx-runtime");
4191
+ import_jsx_runtime72 = require("react/jsx-runtime");
4191
4192
  CheckboxInput = (props) => {
4192
4193
  const isReadOnly = props.attributes?.readOnly === true || props.attributes?.readOnly === "true" || props?.readOnly === true || props.disable === true || props.attributes?.disable === true || props.attributes?.disabled === true || props.attributes?.disabled === "true";
4193
4194
  const textChangeHandler = (event) => {
@@ -4207,9 +4208,9 @@ var init_CheckboxInput = __esm({
4207
4208
  value = true;
4208
4209
  }
4209
4210
  const customClasses = (props?.inputClasses || "").split(/\s+/).filter((c) => !/^(w-|h-|block|inline-block|py-|px-|p-)/.test(c)).join(" ");
4210
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: `mb-1 ${isReadOnly ? "cursor-not-allowed" : ""}`, children: [
4211
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
4212
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4211
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: `mb-1 ${isReadOnly ? "cursor-not-allowed" : ""}`, children: [
4212
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
4213
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4213
4214
  "label",
4214
4215
  {
4215
4216
  htmlFor: props.name,
@@ -4218,9 +4219,9 @@ var init_CheckboxInput = __esm({
4218
4219
  }
4219
4220
  ),
4220
4221
  " ",
4221
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "bg-error-weak", children: "*" })
4222
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "bg-error-weak", children: "*" })
4222
4223
  ] }),
4223
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4224
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4224
4225
  "input",
4225
4226
  {
4226
4227
  type: "checkbox",
@@ -4247,7 +4248,7 @@ var init_CheckboxInput = __esm({
4247
4248
  className: `peer mt-1 h-4 w-4 shrink-0 rounded shadow-sm transition-all duration-200 ${isReadOnly ? "cursor-not-allowed pointer-events-none" : "cursor-pointer"} ${customClasses}`
4248
4249
  }
4249
4250
  ),
4250
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
4251
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
4251
4252
  ] }) });
4252
4253
  };
4253
4254
  CheckboxInput_default = CheckboxInput;
@@ -4255,12 +4256,12 @@ var init_CheckboxInput = __esm({
4255
4256
  });
4256
4257
 
4257
4258
  // src/components/controls/edit/OtpInput.tsx
4258
- var import_react47, import_jsx_runtime72, OtpInput, OtpInput_default;
4259
+ var import_react47, import_jsx_runtime73, OtpInput, OtpInput_default;
4259
4260
  var init_OtpInput = __esm({
4260
4261
  "src/components/controls/edit/OtpInput.tsx"() {
4261
4262
  "use strict";
4262
4263
  import_react47 = __toESM(require("react"));
4263
- import_jsx_runtime72 = require("react/jsx-runtime");
4264
+ import_jsx_runtime73 = require("react/jsx-runtime");
4264
4265
  OtpInput = (props) => {
4265
4266
  const textChangeHandler = (event) => {
4266
4267
  const text = event.target.value;
@@ -4280,11 +4281,11 @@ var init_OtpInput = __esm({
4280
4281
  if (props.value !== void 0 && props.value !== null) {
4281
4282
  value = props.value;
4282
4283
  }
4283
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { htmlFor: props.name, className: "block w-full", children: [
4284
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
4284
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { htmlFor: props.name, className: "block w-full", children: [
4285
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
4285
4286
  " ",
4286
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "bg-error-weak", children: "*" }),
4287
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4287
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "bg-error-weak", children: "*" }),
4288
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4288
4289
  "input",
4289
4290
  {
4290
4291
  type: "text",
@@ -4307,7 +4308,7 @@ var init_OtpInput = __esm({
4307
4308
  `
4308
4309
  }
4309
4310
  ),
4310
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4311
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4311
4312
  ] }) });
4312
4313
  };
4313
4314
  OtpInput_default = OtpInput;
@@ -4315,12 +4316,12 @@ var init_OtpInput = __esm({
4315
4316
  });
4316
4317
 
4317
4318
  // src/components/controls/edit/DateTimeInput.tsx
4318
- var import_react48, import_jsx_runtime73, DateTimeInput, DateTimeInput_default;
4319
+ var import_react48, import_jsx_runtime74, DateTimeInput, DateTimeInput_default;
4319
4320
  var init_DateTimeInput = __esm({
4320
4321
  "src/components/controls/edit/DateTimeInput.tsx"() {
4321
4322
  "use strict";
4322
4323
  import_react48 = __toESM(require("react"));
4323
- import_jsx_runtime73 = require("react/jsx-runtime");
4324
+ import_jsx_runtime74 = require("react/jsx-runtime");
4324
4325
  DateTimeInput = (props) => {
4325
4326
  const textChangeHandler = (event) => {
4326
4327
  const localDate = new Date(event.target.value);
@@ -4352,12 +4353,12 @@ var init_DateTimeInput = __esm({
4352
4353
  e.preventDefault();
4353
4354
  }
4354
4355
  };
4355
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react48.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { className: "block mb-1", children: [
4356
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
4356
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react48.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("label", { className: "block mb-1", children: [
4357
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
4357
4358
  " ",
4358
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "bg-error-weak", children: "*" }),
4359
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center gap-2", children: [
4360
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4359
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "bg-error-weak", children: "*" }),
4360
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-2", children: [
4361
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4361
4362
  "input",
4362
4363
  {
4363
4364
  type: "datetime-local",
@@ -4375,9 +4376,9 @@ var init_DateTimeInput = __esm({
4375
4376
  className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
4376
4377
  }
4377
4378
  ),
4378
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { children: timeZoneAbbr })
4379
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: timeZoneAbbr })
4379
4380
  ] }),
4380
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4381
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4381
4382
  ] }) });
4382
4383
  };
4383
4384
  DateTimeInput_default = DateTimeInput;
@@ -4385,12 +4386,12 @@ var init_DateTimeInput = __esm({
4385
4386
  });
4386
4387
 
4387
4388
  // src/components/controls/edit/ColorInput.tsx
4388
- var import_react49, import_jsx_runtime74, DEFAULT_COLOR, isValidHex, normalizeColor, ColorInput, ColorInput_default;
4389
+ var import_react49, import_jsx_runtime75, DEFAULT_COLOR, isValidHex, normalizeColor, ColorInput, ColorInput_default;
4389
4390
  var init_ColorInput = __esm({
4390
4391
  "src/components/controls/edit/ColorInput.tsx"() {
4391
4392
  "use strict";
4392
4393
  import_react49 = __toESM(require("react"));
4393
- import_jsx_runtime74 = require("react/jsx-runtime");
4394
+ import_jsx_runtime75 = require("react/jsx-runtime");
4394
4395
  DEFAULT_COLOR = "#3b82f6";
4395
4396
  isValidHex = (val) => typeof val === "string" && /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/.test(val.trim());
4396
4397
  normalizeColor = (val) => {
@@ -4436,11 +4437,11 @@ var init_ColorInput = __esm({
4436
4437
  }
4437
4438
  };
4438
4439
  const displayColor = normalizeColor(color || props.value);
4439
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("label", { className: `block ${isReadOnly ? "cursor-not-allowed" : ""}`, children: [
4440
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
4440
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react49.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("label", { className: `block ${isReadOnly ? "cursor-not-allowed" : ""}`, children: [
4441
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
4441
4442
  " ",
4442
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "bg-error-weak", children: "*" }),
4443
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4443
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "bg-error-weak", children: "*" }),
4444
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4444
4445
  "input",
4445
4446
  {
4446
4447
  type: "color",
@@ -4477,7 +4478,7 @@ var init_ColorInput = __esm({
4477
4478
  }
4478
4479
  }
4479
4480
  ),
4480
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4481
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
4481
4482
  ] }) });
4482
4483
  };
4483
4484
  ColorInput_default = ColorInput;
@@ -4485,13 +4486,13 @@ var init_ColorInput = __esm({
4485
4486
  });
4486
4487
 
4487
4488
  // src/components/controls/edit/SelectWithSearchInput.tsx
4488
- var import_react50, import_jsx_runtime75, SelectWithSearchInput, SelectWithSearchInput_default;
4489
+ var import_react50, import_jsx_runtime76, SelectWithSearchInput, SelectWithSearchInput_default;
4489
4490
  var init_SelectWithSearchInput = __esm({
4490
4491
  "src/components/controls/edit/SelectWithSearchInput.tsx"() {
4491
4492
  "use strict";
4492
4493
  "use client";
4493
4494
  import_react50 = __toESM(require("react"));
4494
- import_jsx_runtime75 = require("react/jsx-runtime");
4495
+ import_jsx_runtime76 = require("react/jsx-runtime");
4495
4496
  SelectWithSearchInput = (props) => {
4496
4497
  const [isOpen, setIsOpen] = (0, import_react50.useState)(false);
4497
4498
  const [searchTerm, setSearchTerm] = (0, import_react50.useState)("");
@@ -4586,14 +4587,14 @@ var init_SelectWithSearchInput = __esm({
4586
4587
  }
4587
4588
  }, [highlightedIndex]);
4588
4589
  const isReadOnly = props.attributes?.readOnly || props.disable || props.attributes?.disable;
4589
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "relative", children: [
4590
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("label", { className: "pb-1", children: [
4590
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "relative", children: [
4591
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("label", { className: "pb-1", children: [
4591
4592
  props.attributes?.label,
4592
4593
  " ",
4593
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "bg-error-weak", children: "*" })
4594
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "bg-error-weak", children: "*" })
4594
4595
  ] }),
4595
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "relative", children: [
4596
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4596
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "relative", children: [
4597
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4597
4598
  "input",
4598
4599
  {
4599
4600
  type: "text",
@@ -4624,7 +4625,7 @@ var init_SelectWithSearchInput = __esm({
4624
4625
  `
4625
4626
  }
4626
4627
  ),
4627
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4628
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4628
4629
  "button",
4629
4630
  {
4630
4631
  type: "button",
@@ -4635,7 +4636,7 @@ var init_SelectWithSearchInput = __esm({
4635
4636
  }
4636
4637
  },
4637
4638
  className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
4638
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4639
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4639
4640
  "svg",
4640
4641
  {
4641
4642
  xmlns: "http://www.w3.org/2000/svg",
@@ -4644,7 +4645,7 @@ var init_SelectWithSearchInput = __esm({
4644
4645
  strokeWidth: 1.5,
4645
4646
  stroke: "currentColor",
4646
4647
  className: "w-full h-full",
4647
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4648
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4648
4649
  "path",
4649
4650
  {
4650
4651
  strokeLinecap: "round",
@@ -4656,14 +4657,14 @@ var init_SelectWithSearchInput = __esm({
4656
4657
  )
4657
4658
  }
4658
4659
  ),
4659
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4660
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4660
4661
  ] }),
4661
- !isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4662
+ !isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4662
4663
  "div",
4663
4664
  {
4664
4665
  ref: dropdownRef,
4665
4666
  className: "absolute z-10 w-full bg-default border border-gray-200 shadow-lg max-h-48 overflow-y-auto",
4666
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4667
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4667
4668
  "button",
4668
4669
  {
4669
4670
  onClick: (e) => handleSelect(e, item),
@@ -4671,10 +4672,10 @@ var init_SelectWithSearchInput = __esm({
4671
4672
  role: "option",
4672
4673
  tabIndex: -1,
4673
4674
  onMouseEnter: () => setHighlightedIndex(index),
4674
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: item[props.dataTextFieldName] })
4675
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: item[props.dataTextFieldName] })
4675
4676
  },
4676
4677
  item[props.dataKeyFieldName]
4677
- )) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
4678
+ )) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
4678
4679
  }
4679
4680
  )
4680
4681
  ] });
@@ -4684,14 +4685,14 @@ var init_SelectWithSearchInput = __esm({
4684
4685
  });
4685
4686
 
4686
4687
  // src/components/controls/edit/SelectWithSearchPanel.tsx
4687
- var import_react51, import_jsx_runtime76, SelectWithSearchPanel, SelectWithSearchPanel_default;
4688
+ var import_react51, import_jsx_runtime77, SelectWithSearchPanel, SelectWithSearchPanel_default;
4688
4689
  var init_SelectWithSearchPanel = __esm({
4689
4690
  "src/components/controls/edit/SelectWithSearchPanel.tsx"() {
4690
4691
  "use strict";
4691
4692
  "use client";
4692
4693
  init_Button();
4693
4694
  import_react51 = __toESM(require("react"));
4694
- import_jsx_runtime76 = require("react/jsx-runtime");
4695
+ import_jsx_runtime77 = require("react/jsx-runtime");
4695
4696
  SelectWithSearchPanel = (props) => {
4696
4697
  const [isOpen, setIsOpen] = (0, import_react51.useState)(false);
4697
4698
  const [searchTerm, setSearchTerm] = (0, import_react51.useState)("");
@@ -4827,15 +4828,15 @@ var init_SelectWithSearchPanel = __esm({
4827
4828
  console.log("Form Data:", formData);
4828
4829
  return formData;
4829
4830
  }, []);
4830
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "relative", children: [
4831
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
4831
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "relative", children: [
4832
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
4832
4833
  props.attributes?.label,
4833
4834
  " ",
4834
4835
  " ",
4835
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "bg-error-weak", children: "*" })
4836
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "bg-error-weak", children: "*" })
4836
4837
  ] }),
4837
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { children: [
4838
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4838
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
4839
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4839
4840
  "input",
4840
4841
  {
4841
4842
  type: "text",
@@ -4852,16 +4853,16 @@ var init_SelectWithSearchPanel = __esm({
4852
4853
  disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
4853
4854
  }
4854
4855
  ),
4855
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4856
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
4856
4857
  ] }),
4857
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_react51.default.Fragment, { children: [
4858
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
4859
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("h5", { className: "text-md text-white font-medium", children: [
4858
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_react51.default.Fragment, { children: [
4859
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
4860
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("h5", { className: "text-md text-white font-medium", children: [
4860
4861
  "Select a",
4861
4862
  " ",
4862
4863
  props.attributes?.label || props.attributes?.heading
4863
4864
  ] }) }),
4864
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4865
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4865
4866
  "button",
4866
4867
  {
4867
4868
  type: "button",
@@ -4874,12 +4875,12 @@ var init_SelectWithSearchPanel = __esm({
4874
4875
  }
4875
4876
  ) })
4876
4877
  ] }),
4877
- isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
4878
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("h5", { className: "text-md font-medium text-white", children: [
4878
+ isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
4879
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("h5", { className: "text-md font-medium text-white", children: [
4879
4880
  "Create New ",
4880
4881
  props.attributes?.label
4881
4882
  ] }) }),
4882
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4883
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4883
4884
  "button",
4884
4885
  {
4885
4886
  type: "button",
@@ -4888,10 +4889,10 @@ var init_SelectWithSearchPanel = __esm({
4888
4889
  children: "Close"
4889
4890
  }
4890
4891
  ) }),
4891
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "p-4", children: [
4892
- props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "mb-4", children: [
4893
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
4894
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4892
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "p-4", children: [
4893
+ props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "mb-4", children: [
4894
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
4895
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4895
4896
  "input",
4896
4897
  {
4897
4898
  type: field.type,
@@ -4907,7 +4908,7 @@ var init_SelectWithSearchPanel = __esm({
4907
4908
  }
4908
4909
  )
4909
4910
  ] }, field.name)),
4910
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Button_default, { onClick: async () => {
4911
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Button_default, { onClick: async () => {
4911
4912
  handleSaveModal();
4912
4913
  return { isSuccessful: true };
4913
4914
  }, className: "w-full", children: [
@@ -4916,13 +4917,13 @@ var init_SelectWithSearchPanel = __esm({
4916
4917
  ] })
4917
4918
  ] })
4918
4919
  ] }),
4919
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4920
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4920
4921
  "div",
4921
4922
  {
4922
4923
  ref: listRef,
4923
4924
  className: "fixed z-10 right-0 mt-[130px] top-0 w-1/4 bg-white border-l border-gray-200 shadow-lg overflow-y-auto",
4924
4925
  style: { height: "calc(100vh - 130px)" },
4925
- children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4926
+ children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4926
4927
  "button",
4927
4928
  {
4928
4929
  onClick: (e) => {
@@ -4932,9 +4933,9 @@ var init_SelectWithSearchPanel = __esm({
4932
4933
  role: "option",
4933
4934
  tabIndex: -1,
4934
4935
  onMouseEnter: () => setHighlightedIndex(index),
4935
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
4936
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
4936
4937
  }
4937
- ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
4938
+ ) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
4938
4939
  }
4939
4940
  )
4940
4941
  ] }) })
@@ -4945,12 +4946,12 @@ var init_SelectWithSearchPanel = __esm({
4945
4946
  });
4946
4947
 
4947
4948
  // src/components/controls/edit/EmailInput.tsx
4948
- var import_react52, import_jsx_runtime77, EmailInput, EmailInput_default;
4949
+ var import_react52, import_jsx_runtime78, EmailInput, EmailInput_default;
4949
4950
  var init_EmailInput = __esm({
4950
4951
  "src/components/controls/edit/EmailInput.tsx"() {
4951
4952
  "use strict";
4952
4953
  import_react52 = __toESM(require("react"));
4953
- import_jsx_runtime77 = require("react/jsx-runtime");
4954
+ import_jsx_runtime78 = require("react/jsx-runtime");
4954
4955
  EmailInput = (props) => {
4955
4956
  const textChangeHandler = (event) => {
4956
4957
  const text = event.target.value;
@@ -4976,11 +4977,11 @@ var init_EmailInput = __esm({
4976
4977
  if (props.value !== void 0 && props.value !== null) {
4977
4978
  value = props.value;
4978
4979
  }
4979
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { className: "block", children: [
4980
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
4980
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("label", { className: "block", children: [
4981
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
4981
4982
  " ",
4982
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "bg-error-weak", children: "*" }),
4983
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4983
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "bg-error-weak", children: "*" }),
4984
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4984
4985
  "input",
4985
4986
  {
4986
4987
  type: "email",
@@ -5001,7 +5002,7 @@ var init_EmailInput = __esm({
5001
5002
  `
5002
5003
  }
5003
5004
  ),
5004
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
5005
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
5005
5006
  ] }) });
5006
5007
  };
5007
5008
  EmailInput_default = EmailInput;
@@ -5009,13 +5010,13 @@ var init_EmailInput = __esm({
5009
5010
  });
5010
5011
 
5011
5012
  // src/components/controls/edit/TimeInput.tsx
5012
- var import_react53, import_jsx_runtime78, TimeInput, TimeInput_default;
5013
+ var import_react53, import_jsx_runtime79, TimeInput, TimeInput_default;
5013
5014
  var init_TimeInput = __esm({
5014
5015
  "src/components/controls/edit/TimeInput.tsx"() {
5015
5016
  "use strict";
5016
5017
  "use client";
5017
5018
  import_react53 = __toESM(require("react"));
5018
- import_jsx_runtime78 = require("react/jsx-runtime");
5019
+ import_jsx_runtime79 = require("react/jsx-runtime");
5019
5020
  TimeInput = (props) => {
5020
5021
  const timeChangeHandler = (event) => {
5021
5022
  const timeValue = event.target.value;
@@ -5028,11 +5029,11 @@ var init_TimeInput = __esm({
5028
5029
  });
5029
5030
  }
5030
5031
  };
5031
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("label", { className: "block", children: [
5032
- props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-sm inline-block pb-1 font-medium", children: props?.attributes?.label }),
5032
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("label", { className: "block", children: [
5033
+ props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-sm inline-block pb-1 font-medium", children: props?.attributes?.label }),
5033
5034
  " ",
5034
- props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "bg-error-weak", children: "*" }),
5035
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
5035
+ props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "bg-error-weak", children: "*" }),
5036
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5036
5037
  "input",
5037
5038
  {
5038
5039
  type: "time",
@@ -5049,7 +5050,7 @@ var init_TimeInput = __esm({
5049
5050
  `
5050
5051
  }
5051
5052
  ) }),
5052
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
5053
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
5053
5054
  ] }) });
5054
5055
  };
5055
5056
  TimeInput_default = TimeInput;
@@ -5057,7 +5058,7 @@ var init_TimeInput = __esm({
5057
5058
  });
5058
5059
 
5059
5060
  // src/components/controls/edit/AssetUpload.tsx
5060
- var import_react54, import_jsx_runtime79, AssetUpload, AssetUpload_default;
5061
+ var import_react54, import_jsx_runtime80, AssetUpload, AssetUpload_default;
5061
5062
  var init_AssetUpload = __esm({
5062
5063
  "src/components/controls/edit/AssetUpload.tsx"() {
5063
5064
  "use strict";
@@ -5068,7 +5069,7 @@ var init_AssetUpload = __esm({
5068
5069
  init_AssetUtility();
5069
5070
  init_Hyperlink();
5070
5071
  init_Icon();
5071
- import_jsx_runtime79 = require("react/jsx-runtime");
5072
+ import_jsx_runtime80 = require("react/jsx-runtime");
5072
5073
  AssetUpload = (props) => {
5073
5074
  const isDisabled = props.attributes?.disable ?? false;
5074
5075
  let allValues = [];
@@ -5165,10 +5166,10 @@ var init_AssetUpload = __esm({
5165
5166
  }
5166
5167
  return false;
5167
5168
  };
5168
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_react54.default.Fragment, { children: [
5169
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
5170
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
5171
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5169
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react54.default.Fragment, { children: [
5170
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
5171
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
5172
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5172
5173
  ClientButton_default,
5173
5174
  {
5174
5175
  className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
@@ -5178,7 +5179,7 @@ var init_AssetUpload = __esm({
5178
5179
  children: "Image Upload"
5179
5180
  }
5180
5181
  ),
5181
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5182
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5182
5183
  ClientButton_default,
5183
5184
  {
5184
5185
  className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
@@ -5189,13 +5190,13 @@ var init_AssetUpload = __esm({
5189
5190
  }
5190
5191
  )
5191
5192
  ] }),
5192
- shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
5193
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
5194
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
5195
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
5196
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
5197
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-gray-500", children: "Title" }),
5198
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5193
+ shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
5194
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
5195
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
5196
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
5197
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { children: [
5198
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-gray-500", children: "Title" }),
5199
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5199
5200
  "input",
5200
5201
  {
5201
5202
  type: "text",
@@ -5207,18 +5208,18 @@ var init_AssetUpload = __esm({
5207
5208
  }
5208
5209
  )
5209
5210
  ] }),
5210
- digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
5211
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
5212
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
5211
+ digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { children: [
5212
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
5213
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
5213
5214
  digitalAsset.intrinsicWidth,
5214
5215
  "\xD7",
5215
5216
  digitalAsset.intrinsicHeight
5216
5217
  ] })
5217
5218
  ] }),
5218
- (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
5219
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
5220
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
5221
- getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5219
+ (digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { children: [
5220
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
5221
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
5222
+ getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5222
5223
  "img",
5223
5224
  {
5224
5225
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
@@ -5226,7 +5227,7 @@ var init_AssetUpload = __esm({
5226
5227
  className: "w-32 h-auto object-cover rounded border p-1"
5227
5228
  }
5228
5229
  ),
5229
- getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5230
+ getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5230
5231
  "img",
5231
5232
  {
5232
5233
  src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
@@ -5236,9 +5237,9 @@ var init_AssetUpload = __esm({
5236
5237
  )
5237
5238
  ] })
5238
5239
  ] }),
5239
- digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "col-span-2", children: [
5240
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
5241
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5240
+ digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "col-span-2", children: [
5241
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
5242
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5242
5243
  Hyperlink,
5243
5244
  {
5244
5245
  href: digitalAsset.assetUrl,
@@ -5249,12 +5250,12 @@ var init_AssetUpload = __esm({
5249
5250
  )
5250
5251
  ] })
5251
5252
  ] }),
5252
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
5253
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5253
5254
  "span",
5254
5255
  {
5255
5256
  onClick: () => !isDisabled && deleteFile(index),
5256
5257
  className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
5257
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
5258
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
5258
5259
  }
5259
5260
  )
5260
5261
  ] }, index)) })
@@ -5266,12 +5267,12 @@ var init_AssetUpload = __esm({
5266
5267
  });
5267
5268
 
5268
5269
  // src/components/controls/edit/SwitchInput.tsx
5269
- var import_react55, import_jsx_runtime80, SwitchInput, SwitchInput_default;
5270
+ var import_react55, import_jsx_runtime81, SwitchInput, SwitchInput_default;
5270
5271
  var init_SwitchInput = __esm({
5271
5272
  "src/components/controls/edit/SwitchInput.tsx"() {
5272
5273
  "use strict";
5273
5274
  import_react55 = __toESM(require("react"));
5274
- import_jsx_runtime80 = require("react/jsx-runtime");
5275
+ import_jsx_runtime81 = require("react/jsx-runtime");
5275
5276
  SwitchInput = (props) => {
5276
5277
  const textChangeHandler = (event) => {
5277
5278
  let text = event.target.checked;
@@ -5288,25 +5289,25 @@ var init_SwitchInput = __esm({
5288
5289
  if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
5289
5290
  value = true;
5290
5291
  }
5291
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react55.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "relative flex items-start justify-between gap-4 py-3", children: [
5292
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "min-w-0", children: props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
5292
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react55.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "relative flex items-start justify-between gap-4 py-3", children: [
5293
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "min-w-0", children: props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
5293
5294
  "label",
5294
5295
  {
5295
5296
  htmlFor: props.name,
5296
5297
  className: "inline-block text-sm font-semibold text-slate-800",
5297
5298
  children: [
5298
5299
  props.attributes.label,
5299
- props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "bg-error-weak", children: "*" })
5300
+ props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "bg-error-weak", children: "*" })
5300
5301
  ]
5301
5302
  }
5302
5303
  ) }),
5303
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
5304
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
5304
5305
  "label",
5305
5306
  {
5306
5307
  htmlFor: props.name,
5307
5308
  className: "relative inline-flex shrink-0 cursor-pointer items-center peer-disabled:cursor-not-allowed",
5308
5309
  children: [
5309
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5310
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5310
5311
  "input",
5311
5312
  {
5312
5313
  type: "checkbox",
@@ -5319,19 +5320,19 @@ var init_SwitchInput = __esm({
5319
5320
  className: "peer sr-only"
5320
5321
  }
5321
5322
  ),
5322
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5323
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5323
5324
  "div",
5324
5325
  {
5325
5326
  className: "h-6 w-11 rounded-full bg-slate-200 shadow-inner\n transition-colors duration-200 ease-in-out\n peer-checked:bg-blue-600\n peer-focus-visible:ring-2 peer-focus-visible:ring-blue-300 peer-focus-visible:ring-offset-2\n peer-disabled:bg-slate-100"
5326
5327
  }
5327
5328
  ),
5328
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
5329
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5329
5330
  "div",
5330
5331
  {
5331
5332
  className: "absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-default shadow\n transition-transform duration-200 ease-in-out\n peer-checked:translate-x-5\n peer-disabled:bg-slate-50"
5332
5333
  }
5333
5334
  ),
5334
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block absolute left-0 top-full mt-1 w-max max-w-[220px] whitespace-normal bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
5335
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block absolute left-0 top-full mt-1 w-max max-w-[220px] whitespace-normal bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
5335
5336
  ]
5336
5337
  }
5337
5338
  )
@@ -5424,13 +5425,13 @@ var init_DateTimeUtility = __esm({
5424
5425
  });
5425
5426
 
5426
5427
  // src/components/controls/edit/DateInput.tsx
5427
- var import_react56, import_jsx_runtime81, DateInput, DateInput_default;
5428
+ var import_react56, import_jsx_runtime82, DateInput, DateInput_default;
5428
5429
  var init_DateInput = __esm({
5429
5430
  "src/components/controls/edit/DateInput.tsx"() {
5430
5431
  "use strict";
5431
5432
  import_react56 = require("react");
5432
5433
  init_DateTimeUtility();
5433
- import_jsx_runtime81 = require("react/jsx-runtime");
5434
+ import_jsx_runtime82 = require("react/jsx-runtime");
5434
5435
  DateInput = (props) => {
5435
5436
  const value = (0, import_react56.useMemo)(() => {
5436
5437
  if (props.value === void 0 || props.value === null || props.value === "") {
@@ -5464,11 +5465,11 @@ var init_DateInput = __esm({
5464
5465
  groupKey: props.groupKey
5465
5466
  });
5466
5467
  };
5467
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("label", { className: "block mb-1", children: [
5468
- props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
5468
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("label", { className: "block mb-1", children: [
5469
+ props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
5469
5470
  " ",
5470
- props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "bg-error-weak", children: "*" }),
5471
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
5471
+ props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "bg-error-weak", children: "*" }),
5472
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
5472
5473
  "input",
5473
5474
  {
5474
5475
  type: "date",
@@ -5482,7 +5483,7 @@ var init_DateInput = __esm({
5482
5483
  className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
5483
5484
  }
5484
5485
  ),
5485
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
5486
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
5486
5487
  ] });
5487
5488
  };
5488
5489
  DateInput_default = DateInput;
@@ -5490,13 +5491,13 @@ var init_DateInput = __esm({
5490
5491
  });
5491
5492
 
5492
5493
  // src/components/controls/edit/RadioInput.tsx
5493
- var import_react57, import_jsx_runtime82, RadioInput, RadioInput_default;
5494
+ var import_react57, import_jsx_runtime83, RadioInput, RadioInput_default;
5494
5495
  var init_RadioInput = __esm({
5495
5496
  "src/components/controls/edit/RadioInput.tsx"() {
5496
5497
  "use strict";
5497
5498
  import_react57 = require("react");
5498
5499
  init_Icon();
5499
- import_jsx_runtime82 = require("react/jsx-runtime");
5500
+ import_jsx_runtime83 = require("react/jsx-runtime");
5500
5501
  RadioInput = (props) => {
5501
5502
  const [list, setList] = (0, import_react57.useState)([]);
5502
5503
  (0, import_react57.useEffect)(() => {
@@ -5541,22 +5542,22 @@ var init_RadioInput = __esm({
5541
5542
  });
5542
5543
  }
5543
5544
  };
5544
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "block", children: [
5545
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
5546
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
5545
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "block", children: [
5546
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
5547
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
5547
5548
  const itemValue = item[props.dataKeyFieldName];
5548
5549
  const isSelected = String(itemValue) === String(props.value ?? "");
5549
5550
  const isRecommended = props.dataRecommendedValue !== void 0 && String(itemValue) === String(props.dataRecommendedValue);
5550
5551
  const resultClassName = isSelected ? isRecommended ? "bg-success" : props.dataRecommendedValue ? "bg-alert" : "border-transparent" : "border-transparent";
5551
5552
  const iconName = isSelected && props.dataRecommendedValue ? isRecommended ? "checkCircle" : "xCircle" : void 0;
5552
5553
  const inputId = `${props.name}-${props.index ?? 0}-id-${index}`;
5553
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
5554
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
5554
5555
  "div",
5555
5556
  {
5556
5557
  className: `font-normal flex items-center justify-between gap-4 cursor-pointer border rounded p-2 ${resultClassName}`,
5557
5558
  children: [
5558
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex gap-4 items-start", children: [
5559
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
5559
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex gap-4 items-start", children: [
5560
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
5560
5561
  "input",
5561
5562
  {
5562
5563
  type: "radio",
@@ -5570,15 +5571,15 @@ var init_RadioInput = __esm({
5570
5571
  required: props.attributes?.required
5571
5572
  }
5572
5573
  ),
5573
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
5574
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
5574
5575
  ] }),
5575
- iconName && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
5576
+ iconName && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
5576
5577
  ]
5577
5578
  },
5578
5579
  String(itemValue)
5579
5580
  );
5580
5581
  }) }),
5581
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
5582
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
5582
5583
  ] });
5583
5584
  };
5584
5585
  RadioInput_default = RadioInput;
@@ -5586,14 +5587,14 @@ var init_RadioInput = __esm({
5586
5587
  });
5587
5588
 
5588
5589
  // src/components/controls/edit/ReferenceInput.tsx
5589
- var import_jsx_runtime83, ReferenceInput, ReferenceInput_default;
5590
+ var import_jsx_runtime84, ReferenceInput, ReferenceInput_default;
5590
5591
  var init_ReferenceInput = __esm({
5591
5592
  "src/components/controls/edit/ReferenceInput.tsx"() {
5592
5593
  "use strict";
5593
5594
  init_SelectWithSearchInput();
5594
- import_jsx_runtime83 = require("react/jsx-runtime");
5595
+ import_jsx_runtime84 = require("react/jsx-runtime");
5595
5596
  ReferenceInput = (props) => {
5596
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(SelectWithSearchInput_default, { ...props });
5597
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(SelectWithSearchInput_default, { ...props });
5597
5598
  };
5598
5599
  ReferenceInput_default = ReferenceInput;
5599
5600
  }
@@ -5604,7 +5605,7 @@ var InputControlClient_exports = {};
5604
5605
  __export(InputControlClient_exports, {
5605
5606
  default: () => InputControlClient_default
5606
5607
  });
5607
- var import_react58, import_jsx_runtime84, InputControl, InputControlClient_default;
5608
+ var import_react58, import_jsx_runtime85, InputControl, InputControlClient_default;
5608
5609
  var init_InputControlClient = __esm({
5609
5610
  "src/components/controls/edit/InputControlClient.tsx"() {
5610
5611
  "use strict";
@@ -5631,7 +5632,7 @@ var init_InputControlClient = __esm({
5631
5632
  init_DateInput();
5632
5633
  init_RadioInput();
5633
5634
  init_ReferenceInput();
5634
- import_jsx_runtime84 = require("react/jsx-runtime");
5635
+ import_jsx_runtime85 = require("react/jsx-runtime");
5635
5636
  InputControl = import_react58.default.forwardRef(
5636
5637
  (props, ref) => {
5637
5638
  const ControlComponents = {
@@ -5657,7 +5658,7 @@ var init_InputControlClient = __esm({
5657
5658
  [InputControlType_default.referenceInput]: ReferenceInput_default
5658
5659
  };
5659
5660
  const SelectedControlComponent = ControlComponents[props.controlType];
5660
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react58.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
5661
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react58.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
5661
5662
  }
5662
5663
  );
5663
5664
  InputControl.displayName = "InputControl";
@@ -5683,7 +5684,7 @@ var DataBindingControls_exports = {};
5683
5684
  __export(DataBindingControls_exports, {
5684
5685
  default: () => DataBindingControls_default
5685
5686
  });
5686
- var import_react59, import_navigation, import_jsx_runtime85, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, SearchIcon, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
5687
+ var import_react59, import_navigation, import_jsx_runtime86, ACTIVE_QUERY_CONTROLS_EVENT, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, SearchIcon, ResetIcon, normalizeSortOption, DataBindingControls, DataBindingControls_default;
5687
5688
  var init_DataBindingControls = __esm({
5688
5689
  "src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
5689
5690
  "use strict";
@@ -5694,7 +5695,8 @@ var init_DataBindingControls = __esm({
5694
5695
  init_InputControl();
5695
5696
  init_InputControlType();
5696
5697
  init_StyleTypes();
5697
- import_jsx_runtime85 = require("react/jsx-runtime");
5698
+ import_jsx_runtime86 = require("react/jsx-runtime");
5699
+ ACTIVE_QUERY_CONTROLS_EVENT = "data-binding-active-query-controls";
5698
5700
  humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
5699
5701
  escapeODataString = (value) => value.replace(/'/g, "''");
5700
5702
  parseFacetSelections = (filter) => {
@@ -5723,7 +5725,7 @@ var init_DataBindingControls = __esm({
5723
5725
  }
5724
5726
  return trimmedValue;
5725
5727
  };
5726
- SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
5728
+ SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5727
5729
  "svg",
5728
5730
  {
5729
5731
  "aria-hidden": "true",
@@ -5733,8 +5735,30 @@ var init_DataBindingControls = __esm({
5733
5735
  stroke: "currentColor",
5734
5736
  strokeWidth: "2",
5735
5737
  children: [
5736
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("circle", { cx: "11", cy: "11", r: "7" }),
5737
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("path", { strokeLinecap: "round", d: "m20 20-4-4" })
5738
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("circle", { cx: "11", cy: "11", r: "7" }),
5739
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { strokeLinecap: "round", d: "m20 20-4-4" })
5740
+ ]
5741
+ }
5742
+ );
5743
+ ResetIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5744
+ "svg",
5745
+ {
5746
+ "aria-hidden": "true",
5747
+ className,
5748
+ fill: "none",
5749
+ viewBox: "0 0 24 24",
5750
+ stroke: "currentColor",
5751
+ strokeWidth: "2",
5752
+ children: [
5753
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v6h6" }),
5754
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5755
+ "path",
5756
+ {
5757
+ strokeLinecap: "round",
5758
+ strokeLinejoin: "round",
5759
+ d: "M5.5 15a8 8 0 1 0 .6-7.8L4 10"
5760
+ }
5761
+ )
5738
5762
  ]
5739
5763
  }
5740
5764
  );
@@ -5745,23 +5769,6 @@ var init_DataBindingControls = __esm({
5745
5769
  value: [option.name, direction].filter(Boolean).join(" ")
5746
5770
  };
5747
5771
  };
5748
- DUMMY_FACETS = {
5749
- CategoryTitle: [
5750
- { value: "Career Readiness", count: 2 },
5751
- { value: "Student Learning", count: 2 }
5752
- ],
5753
- Author: [
5754
- { value: "John Smith", count: 2 },
5755
- { value: "Sarah Jones", count: 1 },
5756
- { value: "Emily Brown", count: 1 }
5757
- ]
5758
- };
5759
- DUMMY_SORT_OPTIONS = [
5760
- { name: "createdDate", title: "Newest First", direction: "desc" },
5761
- { name: "createdDate", title: "Oldest First", direction: "asc" },
5762
- { name: "title", title: "Title A-Z", direction: "asc" },
5763
- { name: "title", title: "Title Z-A", direction: "desc" }
5764
- ];
5765
5772
  DataBindingControls = ({
5766
5773
  path,
5767
5774
  query,
@@ -5773,24 +5780,56 @@ var init_DataBindingControls = __esm({
5773
5780
  mode = "toolbar"
5774
5781
  }) => {
5775
5782
  const router = (0, import_navigation.useRouter)();
5776
- const apiFacetGroups = Object.entries(facets ?? {}).filter(
5783
+ const facetGroups = Object.entries(facets ?? {}).filter(
5777
5784
  ([, values]) => Array.isArray(values) && values.length > 0
5778
5785
  );
5779
- const facetGroups = apiFacetGroups.length > 0 ? apiFacetGroups : Object.entries(DUMMY_FACETS);
5780
- const apiSortOptions = (sortOptions ?? []).filter(
5781
- (option) => option?.name && option?.direction
5782
- );
5783
- const resolvedSortOptions = apiSortOptions.length > 0 ? apiSortOptions : DUMMY_SORT_OPTIONS;
5784
- const normalizedSortOptions = resolvedSortOptions.map(normalizeSortOption).filter((option) => option.value);
5785
- const currentFilter = query?.["$filter"] ?? query?.filter ?? "";
5786
+ const normalizedSortOptions = (sortOptions ?? []).filter((option) => option?.name && option?.direction).map(normalizeSortOption).filter((option) => option.value);
5787
+ const queryFilter = query?.["$filter"] ?? query?.filter ?? "";
5788
+ const querySort = query?.["$orderby"] ?? query?.orderBy ?? "";
5789
+ const [currentFilter, setCurrentFilter] = (0, import_react59.useState)(queryFilter);
5790
+ const [currentSort, setCurrentSort] = (0, import_react59.useState)(querySort);
5786
5791
  const selectedFacetValues = parseFacetSelections(currentFilter);
5787
- const currentSort = query?.["$orderby"] ?? query?.orderBy ?? "";
5788
5792
  const currentSearch = parseODataSearch(query?.["$search"]);
5789
5793
  const [searchText, setSearchText] = (0, import_react59.useState)(currentSearch);
5790
5794
  const lastNavigationUrl = (0, import_react59.useRef)(null);
5791
5795
  (0, import_react59.useEffect)(() => {
5792
5796
  setSearchText(currentSearch);
5793
5797
  }, [currentSearch]);
5798
+ (0, import_react59.useEffect)(() => {
5799
+ setCurrentFilter(queryFilter);
5800
+ }, [queryFilter]);
5801
+ (0, import_react59.useEffect)(() => {
5802
+ setCurrentSort(querySort);
5803
+ }, [querySort]);
5804
+ (0, import_react59.useEffect)(() => {
5805
+ const syncActiveQueryControls2 = (event) => {
5806
+ const { filter, sort } = event.detail;
5807
+ if (filter !== void 0) {
5808
+ setCurrentFilter(filter);
5809
+ }
5810
+ if (sort !== void 0) {
5811
+ setCurrentSort(sort);
5812
+ }
5813
+ };
5814
+ window.addEventListener(
5815
+ ACTIVE_QUERY_CONTROLS_EVENT,
5816
+ syncActiveQueryControls2
5817
+ );
5818
+ return () => window.removeEventListener(
5819
+ ACTIVE_QUERY_CONTROLS_EVENT,
5820
+ syncActiveQueryControls2
5821
+ );
5822
+ }, []);
5823
+ const syncActiveQueryControls = (0, import_react59.useCallback)(
5824
+ (updates) => {
5825
+ window.dispatchEvent(
5826
+ new CustomEvent(ACTIVE_QUERY_CONTROLS_EVENT, {
5827
+ detail: updates
5828
+ })
5829
+ );
5830
+ },
5831
+ []
5832
+ );
5794
5833
  const getQueryUrl = (0, import_react59.useCallback)(
5795
5834
  (updates) => {
5796
5835
  const params = new URLSearchParams(query ?? {});
@@ -5803,7 +5842,9 @@ var init_DataBindingControls = __esm({
5803
5842
  });
5804
5843
  params.delete("$skip");
5805
5844
  params.delete("skip");
5806
- const queryString = Array.from(params.entries()).map(([key, value]) => `${key}=${value}`).join("&");
5845
+ const queryString = Array.from(params.entries()).map(
5846
+ ([key, value]) => key === "$filter" || key === "filter" ? `${key}=${encodeURIComponent(value)}` : `${key}=${value}`
5847
+ ).join("&");
5807
5848
  return queryString ? `${path}?${queryString}` : path;
5808
5849
  },
5809
5850
  [path, query]
@@ -5816,6 +5857,7 @@ var init_DataBindingControls = __esm({
5816
5857
  updatedSelections.delete(field);
5817
5858
  }
5818
5859
  const updatedFilter = buildFacetFilter(updatedSelections);
5860
+ syncActiveQueryControls({ filter: updatedFilter });
5819
5861
  return getQueryUrl({
5820
5862
  $filter: updatedFilter || void 0,
5821
5863
  filter: void 0
@@ -5849,33 +5891,49 @@ var init_DataBindingControls = __esm({
5849
5891
  );
5850
5892
  return { isSuccessful: true };
5851
5893
  }, [currentSearch, getQueryUrl, navigateWithoutReload, searchText]);
5894
+ const handleClearAll = (0, import_react59.useCallback)(async () => {
5895
+ syncActiveQueryControls({ filter: "", sort: "" });
5896
+ navigateWithoutReload(
5897
+ getQueryUrl({
5898
+ $filter: void 0,
5899
+ filter: void 0,
5900
+ $orderby: void 0,
5901
+ orderBy: void 0
5902
+ })
5903
+ );
5904
+ return { isSuccessful: true };
5905
+ }, [getQueryUrl, navigateWithoutReload, syncActiveQueryControls]);
5852
5906
  const hasFacetControls = showFacets && facetGroups.length > 0;
5853
5907
  const hasSortControls = showSortOptions && normalizedSortOptions.length > 0;
5854
- const shouldShowToolbar = mode === "toolbar" && (showSearchBar || hasSortControls);
5908
+ const hasActiveFiltersOrSort = Boolean(
5909
+ currentFilter.trim() || currentSort.trim()
5910
+ );
5911
+ const shouldShowToolbarClearAll = hasActiveFiltersOrSort && !hasFacetControls;
5912
+ const shouldShowToolbar = mode === "toolbar" && (showSearchBar || hasSortControls || shouldShowToolbarClearAll);
5855
5913
  const shouldShowFacets = mode === "facets" && hasFacetControls;
5856
5914
  if (!shouldShowToolbar && !shouldShowFacets) {
5857
5915
  return null;
5858
5916
  }
5859
- const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
5860
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5917
+ const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: stacked ? "flex flex-col gap-0.5" : "flex flex-wrap gap-1.5", children: [
5918
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5861
5919
  "button",
5862
5920
  {
5863
5921
  type: "button",
5864
5922
  onClick: () => navigateWithoutReload(getFacetUrl(field)),
5865
5923
  "aria-pressed": !selectedFacetValues.has(field),
5866
- className: `px-3 py-2 text-left text-sm ${stacked ? "w-full" : "border"} ${selectedFacetValues.has(field) ? "" : "bg-primary-base font-semibold"}`,
5924
+ className: `cursor-pointer px-3 py-1.5 text-left text-sm transition-all duration-150 ease-out hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary ${stacked ? "w-full" : "border"} ${selectedFacetValues.has(field) ? "hover:bg-info-soft" : "bg-primary-base font-semibold hover:brightness-95"}`,
5867
5925
  children: "All"
5868
5926
  }
5869
5927
  ),
5870
5928
  values.map((facet) => {
5871
5929
  const isSelected = selectedFacetValues.get(field) === facet.value;
5872
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
5930
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5873
5931
  "button",
5874
5932
  {
5875
5933
  type: "button",
5876
5934
  onClick: () => navigateWithoutReload(getFacetUrl(field, facet.value)),
5877
5935
  "aria-pressed": isSelected,
5878
- className: `px-3 py-2 text-left text-sm ${stacked ? "w-full" : "border"} ${isSelected ? "bg-primary-base font-semibold" : ""}`,
5936
+ className: `cursor-pointer px-3 py-1.5 text-left text-sm transition-all duration-150 ease-out hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary ${stacked ? "w-full" : "border"} ${isSelected ? "bg-primary-base font-semibold hover:brightness-95" : "hover:bg-info-soft"}`,
5879
5937
  children: [
5880
5938
  facet.value,
5881
5939
  " (",
@@ -5887,85 +5945,111 @@ var init_DataBindingControls = __esm({
5887
5945
  );
5888
5946
  })
5889
5947
  ] });
5890
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: mode === "toolbar" ? "my-6" : "flex flex-col gap-2", children: [
5891
- shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
5892
- showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
5893
- "form",
5894
- {
5895
- role: "search",
5896
- className: "flex w-full flex-col gap-3 rounded-2xl border border-info bg-info-soft p-3 sm:flex-row sm:items-center md:min-w-0 md:flex-1",
5897
- onSubmit: (event) => {
5898
- event.preventDefault();
5899
- void handleSearch();
5900
- },
5901
- children: [
5902
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "relative bg-default rounded-xl min-w-0 flex-1", children: [
5903
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SearchIcon, { className: "pointer-events-none absolute left-4 top-1/2 z-10 h-5 w-5 -translate-y-1/2" }),
5904
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5905
- InputControl_default,
5906
- {
5907
- name: "searchText",
5908
- controlType: InputControlType_default.lineTextInput,
5909
- value: searchText,
5910
- callback: (updatedValues) => setSearchText(updatedValues.value),
5911
- attributes: {
5912
- placeholder: "Search discussions, topics, or keywords..."
5913
- },
5914
- inputClasses: "!mt-0 !rounded-xl !py-3 !pl-11 !pr-4 !shadow-sm"
5915
- }
5916
- )
5917
- ] }),
5918
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
5919
- Button_default,
5948
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5949
+ "div",
5950
+ {
5951
+ className: mode === "toolbar" ? "my-6" : "flex flex-col gap-2 border bg-default rounded-[5px] p-3",
5952
+ children: [
5953
+ shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
5954
+ showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5955
+ "form",
5956
+ {
5957
+ role: "search",
5958
+ className: "flex w-full flex-col gap-3 rounded-xl border border-info bg-info-soft p-3 sm:flex-row sm:items-center md:min-w-0 md:flex-1",
5959
+ onSubmit: (event) => {
5960
+ event.preventDefault();
5961
+ void handleSearch();
5962
+ },
5963
+ children: [
5964
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "relative bg-default rounded-xl min-w-0 flex-1", children: [
5965
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(SearchIcon, { className: "pointer-events-none absolute left-4 top-1/2 z-10 h-5 w-5 -translate-y-1/2" }),
5966
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5967
+ InputControl_default,
5968
+ {
5969
+ name: "searchText",
5970
+ controlType: InputControlType_default.lineTextInput,
5971
+ value: searchText,
5972
+ callback: (updatedValues) => setSearchText(updatedValues.value),
5973
+ attributes: {
5974
+ placeholder: "Search discussions, topics, or keywords..."
5975
+ },
5976
+ inputClasses: "!mt-0 !rounded-xl !py-3 !pl-11 !pr-4 !shadow-sm"
5977
+ }
5978
+ )
5979
+ ] }),
5980
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5981
+ Button_default,
5982
+ {
5983
+ ButtonType: "Primary" /* Solid */,
5984
+ onClick: handleSearch,
5985
+ className: "!rounded-xl !px-6 !py-3 sm:self-stretch",
5986
+ children: [
5987
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(SearchIcon, { className: "h-5 w-5" }),
5988
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { children: "Search" })
5989
+ ]
5990
+ }
5991
+ )
5992
+ ]
5993
+ }
5994
+ ),
5995
+ hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex w-full items-center gap-3 rounded-2xl border border-info bg-info-soft p-3 text-sm md:ml-auto md:w-auto md:min-w-72 md:self-stretch", children: [
5996
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
5997
+ "label",
5920
5998
  {
5921
- ButtonType: "Primary" /* Solid */,
5922
- onClick: handleSearch,
5923
- className: "!rounded-xl !px-6 !py-3 sm:self-stretch",
5924
- children: [
5925
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SearchIcon, { className: "h-5 w-5" }),
5926
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: "Search" })
5927
- ]
5999
+ htmlFor: "sortOptions",
6000
+ className: "shrink-0 whitespace-nowrap font-medium",
6001
+ children: "Sort by"
5928
6002
  }
5929
- )
5930
- ]
5931
- }
5932
- ),
5933
- hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex w-full items-center gap-3 rounded-2xl border border-info bg-info-soft p-3 text-sm md:ml-auto md:w-auto md:min-w-72 md:self-stretch", children: [
5934
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5935
- "label",
5936
- {
5937
- htmlFor: "sortOptions",
5938
- className: "shrink-0 whitespace-nowrap font-medium",
5939
- children: "Sort by"
5940
- }
5941
- ),
5942
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "min-w-0 flex-1 rounded-xl bg-default md:min-w-48", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
5943
- InputControl_default,
5944
- {
5945
- name: "sortOptions",
5946
- controlType: InputControlType_default.select,
5947
- value: currentSort,
5948
- dataset: normalizedSortOptions,
5949
- dataKeyFieldName: "value",
5950
- dataTextFieldName: "label",
5951
- callback: (updatedValues) => navigateWithoutReload(
5952
- getQueryUrl({
5953
- $orderby: updatedValues.value || void 0,
5954
- orderBy: void 0
5955
- })
5956
6003
  ),
5957
- attributes: { placeholder: "Default" },
5958
- inputClasses: "!mt-0 !rounded-xl !border-info !bg-default !px-4 !py-3 !text-body !shadow-sm focus:!border-primary focus:!ring-primary-base"
5959
- }
5960
- ) })
5961
- ] })
5962
- ] }),
5963
- shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
5964
- shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("details", { className: "border-b", open: true, children: [
5965
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
5966
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
5967
- ] }, field)) })
5968
- ] });
6004
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "min-w-0 flex-1 rounded-xl bg-default md:min-w-48", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6005
+ InputControl_default,
6006
+ {
6007
+ name: "sortOptions",
6008
+ controlType: InputControlType_default.select,
6009
+ value: currentSort,
6010
+ dataset: normalizedSortOptions,
6011
+ dataKeyFieldName: "value",
6012
+ dataTextFieldName: "label",
6013
+ callback: (updatedValues) => {
6014
+ const updatedSort = updatedValues.value || "";
6015
+ syncActiveQueryControls({ sort: updatedSort });
6016
+ navigateWithoutReload(
6017
+ getQueryUrl({
6018
+ $orderby: updatedSort || void 0,
6019
+ orderBy: void 0
6020
+ })
6021
+ );
6022
+ },
6023
+ attributes: { placeholder: "Default" },
6024
+ inputClasses: "!mt-0 !rounded-xl !border-info !bg-default !px-4 !py-3 !text-body !shadow-sm focus:!border-primary focus:!ring-primary-base"
6025
+ }
6026
+ ) })
6027
+ ] })
6028
+ ] }),
6029
+ shouldShowFacets && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-center justify-between gap-2 border-b pb-2", children: [
6030
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h2", { className: "text-lg font-semibold", children: "Filters" }),
6031
+ hasActiveFiltersOrSort && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
6032
+ "button",
6033
+ {
6034
+ type: "button",
6035
+ onClick: () => void handleClearAll(),
6036
+ className: "group inline-flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-primary transition-colors duration-150 hover:bg-info-soft hover:text-primary-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",
6037
+ "aria-label": "Clear all filters and sorting",
6038
+ children: [
6039
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ResetIcon, { className: "h-3.5 w-3.5 transition-transform duration-200 group-hover:-rotate-45" }),
6040
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { children: "Clear all" })
6041
+ ]
6042
+ }
6043
+ )
6044
+ ] }),
6045
+ shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
6046
+ shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flex flex-col", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("details", { className: "border-b py-1 last:border-b-0", open: true, children: [
6047
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("summary", { className: "cursor-pointer rounded-md px-2 py-1.5 font-semibold transition-colors duration-150 hover:bg-info-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary", children: humanize(field) }),
6048
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "px-1 pb-1 pt-0.5", children: renderFacetLinks(field, values, true) })
6049
+ ] }, field)) })
6050
+ ]
6051
+ }
6052
+ );
5969
6053
  };
5970
6054
  DataBindingControls_default = DataBindingControls;
5971
6055
  }
@@ -5976,13 +6060,13 @@ var Slider_exports = {};
5976
6060
  __export(Slider_exports, {
5977
6061
  default: () => Slider_default
5978
6062
  });
5979
- var import_react60, import_jsx_runtime86, Slider, ArrowButton, ProgressPill, Slider_default;
6063
+ var import_react60, import_jsx_runtime87, Slider, ArrowButton, ProgressPill, Slider_default;
5980
6064
  var init_Slider = __esm({
5981
6065
  "src/components/Slider.tsx"() {
5982
6066
  "use strict";
5983
6067
  "use client";
5984
6068
  import_react60 = __toESM(require("react"));
5985
- import_jsx_runtime86 = require("react/jsx-runtime");
6069
+ import_jsx_runtime87 = require("react/jsx-runtime");
5986
6070
  Slider = ({
5987
6071
  children,
5988
6072
  columns,
@@ -6101,7 +6185,7 @@ var init_Slider = __esm({
6101
6185
  if (!import_react60.default.isValidElement(child)) return null;
6102
6186
  const childProps = child.props;
6103
6187
  const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
6104
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6188
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6105
6189
  "div",
6106
6190
  {
6107
6191
  className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
@@ -6113,8 +6197,8 @@ var init_Slider = __esm({
6113
6197
  index
6114
6198
  );
6115
6199
  });
6116
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "w-full", children: [
6117
- show_dots && progressPosition === "top" && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flex justify-center space-x-1.5 mb-4", children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6200
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "w-full", children: [
6201
+ show_dots && progressPosition === "top" && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "flex justify-center space-x-1.5 mb-4", children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6118
6202
  ProgressPill,
6119
6203
  {
6120
6204
  active: index === currentSlide,
@@ -6130,14 +6214,14 @@ var init_Slider = __esm({
6130
6214
  },
6131
6215
  index
6132
6216
  )) }),
6133
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
6217
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
6134
6218
  "div",
6135
6219
  {
6136
6220
  className: `relative w-full overflow-hidden ${className}`,
6137
6221
  onMouseEnter: handleMouseEnter,
6138
6222
  onMouseLeave: handleMouseLeave,
6139
6223
  children: [
6140
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6224
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6141
6225
  "div",
6142
6226
  {
6143
6227
  className: "flex h-full",
@@ -6148,32 +6232,32 @@ var init_Slider = __esm({
6148
6232
  children: slides
6149
6233
  }
6150
6234
  ),
6151
- show_arrows && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
6152
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6235
+ show_arrows && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
6236
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6153
6237
  ArrowButton,
6154
6238
  {
6155
6239
  direction: "left",
6156
6240
  onClick: prevSlide,
6157
6241
  visible: infinite_scroll || currentSlide > 0,
6158
6242
  className: arrowClassName,
6159
- children: /* @__PURE__ */ (0, import_jsx_runtime86.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_runtime86.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
6243
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.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_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
6160
6244
  }
6161
6245
  ),
6162
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6246
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6163
6247
  ArrowButton,
6164
6248
  {
6165
6249
  direction: "right",
6166
6250
  onClick: nextSlide,
6167
6251
  visible: infinite_scroll || currentSlide < maxSlide,
6168
6252
  className: arrowClassName,
6169
- children: /* @__PURE__ */ (0, import_jsx_runtime86.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_runtime86.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) })
6253
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.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_runtime87.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) })
6170
6254
  }
6171
6255
  )
6172
6256
  ] })
6173
6257
  ]
6174
6258
  }
6175
6259
  ),
6176
- show_dots && progressPosition !== "top" && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flex justify-center space-x-1.5 mt-5", children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6260
+ show_dots && progressPosition !== "top" && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "flex justify-center space-x-1.5 mt-5", children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6177
6261
  ProgressPill,
6178
6262
  {
6179
6263
  active: index === currentSlide,
@@ -6197,7 +6281,7 @@ var init_Slider = __esm({
6197
6281
  visible,
6198
6282
  children,
6199
6283
  className = ""
6200
- }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6284
+ }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6201
6285
  "button",
6202
6286
  {
6203
6287
  className: `
@@ -6284,7 +6368,7 @@ var init_Slider = __esm({
6284
6368
  const renderProgressBar = () => {
6285
6369
  if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
6286
6370
  const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
6287
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6371
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6288
6372
  "div",
6289
6373
  {
6290
6374
  className: `absolute top-0 left-0 h-full rounded-full ${style === "cumulative" && isFilled ? activeClassName || "bg-white" : activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
@@ -6296,7 +6380,7 @@ var init_Slider = __esm({
6296
6380
  };
6297
6381
  const renderCumulativeFill = () => {
6298
6382
  if (style === "cumulative" && isFilled && !isActive) {
6299
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
6383
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
6300
6384
  "div",
6301
6385
  {
6302
6386
  className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
@@ -6306,7 +6390,7 @@ var init_Slider = __esm({
6306
6390
  }
6307
6391
  return null;
6308
6392
  };
6309
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
6393
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
6310
6394
  "button",
6311
6395
  {
6312
6396
  className: `${baseClasses} ${getStyleClasses()}`,
@@ -7821,10 +7905,39 @@ var NoDataFound = () => {
7821
7905
  };
7822
7906
  var NoDataFound_default = NoDataFound;
7823
7907
 
7908
+ // src/components/NoFilterResultsFound.tsx
7909
+ var import_jsx_runtime55 = require("react/jsx-runtime");
7910
+ var NoFilterResultsFound = () => {
7911
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
7912
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7913
+ "svg",
7914
+ {
7915
+ className: "w-10 h-10",
7916
+ fill: "none",
7917
+ stroke: "currentColor",
7918
+ viewBox: "0 0 24 24",
7919
+ xmlns: "http://www.w3.org/2000/svg",
7920
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7921
+ "path",
7922
+ {
7923
+ strokeLinecap: "round",
7924
+ strokeLinejoin: "round",
7925
+ strokeWidth: "1.5",
7926
+ d: "M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"
7927
+ }
7928
+ )
7929
+ }
7930
+ ) }) }),
7931
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No Results Found" }),
7932
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "max-w-sm mb-0", children: "No data matches the current search query and configured parameters. Try adjusting your search criteria or filters to view available results." })
7933
+ ] });
7934
+ };
7935
+ var NoFilterResultsFound_default = NoFilterResultsFound;
7936
+
7824
7937
  // src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
7825
7938
  init_AssetUtility();
7826
7939
  var import_dynamic11 = __toESM(require("next/dynamic"));
7827
- var import_jsx_runtime55 = require("react/jsx-runtime");
7940
+ var import_jsx_runtime56 = require("react/jsx-runtime");
7828
7941
  var HlsPlayer4 = (0, import_dynamic11.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
7829
7942
  var deviceToMediaQuery = (device) => {
7830
7943
  switch (device) {
@@ -7980,8 +8093,8 @@ var ImageGalleryNode = (props) => {
7980
8093
  right: "justify-end"
7981
8094
  };
7982
8095
  const formatClasses = FormatClass[props.node.format || ""] || "";
7983
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
7984
- hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8096
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
8097
+ hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7985
8098
  HlsPlayer4,
7986
8099
  {
7987
8100
  sources: hlsSources,
@@ -7996,7 +8109,7 @@ var ImageGalleryNode = (props) => {
7996
8109
  styles: hlsStyles
7997
8110
  }
7998
8111
  ) }),
7999
- (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("picture", { children: [
8112
+ (staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("picture", { children: [
8000
8113
  DEVICE_ORDER.map((deviceKey) => {
8001
8114
  const match = staticSources.find(
8002
8115
  (img) => img.device === deviceKey
@@ -8012,7 +8125,7 @@ var ImageGalleryNode = (props) => {
8012
8125
  if (!srcUrl) {
8013
8126
  return null;
8014
8127
  }
8015
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8128
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8016
8129
  "source",
8017
8130
  {
8018
8131
  media: deviceToMediaQuery(match.device),
@@ -8037,7 +8150,7 @@ var ImageGalleryNode = (props) => {
8037
8150
  if (img.borderRadius) {
8038
8151
  styles.borderRadius = img.borderRadius;
8039
8152
  }
8040
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8153
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8041
8154
  "img",
8042
8155
  {
8043
8156
  loading: "lazy",
@@ -8052,7 +8165,7 @@ var ImageGalleryNode = (props) => {
8052
8165
  })()
8053
8166
  ] }) : (
8054
8167
  /* Case 2: Only device-specific images exist */
8055
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: staticSources.map((img, index) => {
8168
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: staticSources.map((img, index) => {
8056
8169
  const resolved = resolveImage(img);
8057
8170
  const imageUrl = resolved?.imageUrl;
8058
8171
  if (!imageUrl) {
@@ -8079,7 +8192,7 @@ var ImageGalleryNode = (props) => {
8079
8192
  default:
8080
8193
  display = "block";
8081
8194
  }
8082
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
8195
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8083
8196
  "img",
8084
8197
  {
8085
8198
  loading: "lazy",
@@ -8220,7 +8333,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
8220
8333
 
8221
8334
  // src/components/pageRenderingEngine/nodes/DocumentNode.tsx
8222
8335
  init_AssetUtility();
8223
- var import_jsx_runtime56 = require("react/jsx-runtime");
8336
+ var import_jsx_runtime57 = require("react/jsx-runtime");
8224
8337
  var getNestedValue5 = (obj, path) => {
8225
8338
  if (!obj || !path) return void 0;
8226
8339
  return path.split(".").reduce((current, key) => {
@@ -8251,21 +8364,21 @@ var parseDocuments = (value) => {
8251
8364
  }
8252
8365
  return [];
8253
8366
  };
8254
- var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8367
+ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8255
8368
  "svg",
8256
8369
  {
8257
8370
  xmlns: "http://www.w3.org/2000/svg",
8258
8371
  viewBox: "0 0 48 48",
8259
8372
  className: "w-10 h-10",
8260
8373
  children: [
8261
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8374
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8262
8375
  "path",
8263
8376
  {
8264
8377
  fill: "#e53935",
8265
8378
  d: "M38,42H10c-2.209,0-4-1.791-4-4V10c0-2.209,1.791-4,4-4h28c2.209,0,4,1.791,4,4v28 C42,40.209,40.209,42,38,42z"
8266
8379
  }
8267
8380
  ),
8268
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8381
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8269
8382
  "path",
8270
8383
  {
8271
8384
  fill: "#fff",
@@ -8275,55 +8388,55 @@ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8275
8388
  ]
8276
8389
  }
8277
8390
  );
8278
- var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8391
+ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8279
8392
  "svg",
8280
8393
  {
8281
8394
  xmlns: "http://www.w3.org/2000/svg",
8282
8395
  viewBox: "0 0 48 48",
8283
8396
  className: "w-10 h-10",
8284
8397
  children: [
8285
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8398
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8286
8399
  "path",
8287
8400
  {
8288
8401
  fill: "#169154",
8289
8402
  d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
8290
8403
  }
8291
8404
  ),
8292
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8405
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8293
8406
  "path",
8294
8407
  {
8295
8408
  fill: "#18482a",
8296
8409
  d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
8297
8410
  }
8298
8411
  ),
8299
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
8300
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
8301
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("g", { children: [
8302
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8412
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
8413
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
8414
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("g", { children: [
8415
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8303
8416
  "path",
8304
8417
  {
8305
8418
  fill: "#29c27f",
8306
8419
  d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
8307
8420
  }
8308
8421
  ),
8309
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8422
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8310
8423
  "path",
8311
8424
  {
8312
8425
  fill: "#27663f",
8313
8426
  d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
8314
8427
  }
8315
8428
  ),
8316
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
8317
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
8429
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
8430
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
8318
8431
  ] }),
8319
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8432
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8320
8433
  "path",
8321
8434
  {
8322
8435
  fill: "#0c7238",
8323
8436
  d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
8324
8437
  }
8325
8438
  ),
8326
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8439
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8327
8440
  "path",
8328
8441
  {
8329
8442
  fill: "#fff",
@@ -8333,7 +8446,7 @@ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8333
8446
  ]
8334
8447
  }
8335
8448
  );
8336
- var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8449
+ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8337
8450
  "svg",
8338
8451
  {
8339
8452
  xmlns: "http://www.w3.org/2000/svg",
@@ -8341,14 +8454,14 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8341
8454
  className: "w-10 h-10",
8342
8455
  baseProfile: "basic",
8343
8456
  children: [
8344
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8457
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8345
8458
  "path",
8346
8459
  {
8347
8460
  fill: "#283593",
8348
8461
  d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
8349
8462
  }
8350
8463
  ),
8351
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8464
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8352
8465
  "linearGradient",
8353
8466
  {
8354
8467
  id: "qh2LT5tehRDFkLLfb-odWa",
@@ -8359,19 +8472,19 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8359
8472
  gradientTransform: "translate(0 -339.89)",
8360
8473
  gradientUnits: "userSpaceOnUse",
8361
8474
  children: [
8362
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
8363
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
8475
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
8476
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
8364
8477
  ]
8365
8478
  }
8366
8479
  ),
8367
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8480
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8368
8481
  "path",
8369
8482
  {
8370
8483
  fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
8371
8484
  d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
8372
8485
  }
8373
8486
  ),
8374
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8487
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8375
8488
  "path",
8376
8489
  {
8377
8490
  fill: "#1e88e5",
@@ -8379,21 +8492,21 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8379
8492
  d: "M9,20.208c0-2.624,2.126-4.75,4.749-4.75h21.857L41,12.778v13.527 C41,28.346,39.346,30,37.306,30H15.332C11.835,30,9,32.836,9,36.333L9,20.208L9,20.208z"
8380
8493
  }
8381
8494
  ),
8382
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8495
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8383
8496
  "path",
8384
8497
  {
8385
8498
  fill: "#00e5ff",
8386
8499
  d: "M9,10.333C9,6.836,11.835,4,15.332,4h21.975C39.346,4,41,5.654,41,7.694v5.611 C41,15.346,39.346,17,37.306,17H15.332C11.835,17,9,19.836,9,23.333C9,23.333,9,10.333,9,10.333z"
8387
8500
  }
8388
8501
  ),
8389
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8502
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8390
8503
  "path",
8391
8504
  {
8392
8505
  fill: "#1565c0",
8393
8506
  d: "M7.5,23h10c1.933,0,3.5,1.567,3.5,3.5v10c0,1.933-1.567,3.5-3.5,3.5h-10C5.567,40,4,38.433,4,36.5 v-10C4,24.567,5.567,23,7.5,23z"
8394
8507
  }
8395
8508
  ),
8396
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8509
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8397
8510
  "path",
8398
8511
  {
8399
8512
  fill: "#fff",
@@ -8403,42 +8516,42 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8403
8516
  ]
8404
8517
  }
8405
8518
  );
8406
- var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8519
+ var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8407
8520
  "svg",
8408
8521
  {
8409
8522
  xmlns: "http://www.w3.org/2000/svg",
8410
8523
  viewBox: "0 0 48 48",
8411
8524
  className: "w-10 h-10",
8412
8525
  children: [
8413
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8414
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
8526
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8527
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
8415
8528
  ]
8416
8529
  }
8417
8530
  );
8418
- var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8531
+ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8419
8532
  "svg",
8420
8533
  {
8421
8534
  xmlns: "http://www.w3.org/2000/svg",
8422
8535
  viewBox: "0 0 48 48",
8423
8536
  className: "w-10 h-10",
8424
8537
  children: [
8425
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8538
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8426
8539
  "path",
8427
8540
  {
8428
8541
  fill: "#dc4c2c",
8429
8542
  d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
8430
8543
  }
8431
8544
  ),
8432
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
8433
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
8434
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8545
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
8546
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
8547
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8435
8548
  "path",
8436
8549
  {
8437
8550
  fill: "#9b341f",
8438
8551
  d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
8439
8552
  }
8440
8553
  ),
8441
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8554
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8442
8555
  "path",
8443
8556
  {
8444
8557
  fill: "#fff",
@@ -8448,16 +8561,16 @@ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8448
8561
  ]
8449
8562
  }
8450
8563
  );
8451
- var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8564
+ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8452
8565
  "svg",
8453
8566
  {
8454
8567
  xmlns: "http://www.w3.org/2000/svg",
8455
8568
  viewBox: "0 0 48 48",
8456
8569
  className: "w-10 h-10",
8457
8570
  children: [
8458
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8459
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
8460
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8571
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
8572
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
8573
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8461
8574
  "path",
8462
8575
  {
8463
8576
  fill: "#1976D2",
@@ -8467,7 +8580,7 @@ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8467
8580
  ]
8468
8581
  }
8469
8582
  );
8470
- var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8583
+ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8471
8584
  "svg",
8472
8585
  {
8473
8586
  xmlns: "http://www.w3.org/2000/svg",
@@ -8477,14 +8590,14 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8477
8590
  version: "1.0",
8478
8591
  className: "w-10 h-10",
8479
8592
  children: [
8480
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8593
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8481
8594
  "path",
8482
8595
  {
8483
8596
  d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
8484
8597
  "clip-rule": "nonzero"
8485
8598
  }
8486
8599
  ) }) }),
8487
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8600
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8488
8601
  "path",
8489
8602
  {
8490
8603
  fill: "#ff9100",
@@ -8493,7 +8606,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8493
8606
  "fill-rule": "nonzero"
8494
8607
  }
8495
8608
  ) }),
8496
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8609
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8497
8610
  "path",
8498
8611
  {
8499
8612
  fill: "#fbe9e7",
@@ -8502,7 +8615,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8502
8615
  "fill-rule": "nonzero"
8503
8616
  }
8504
8617
  ),
8505
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8618
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8506
8619
  "path",
8507
8620
  {
8508
8621
  fill: "#ffe0b2",
@@ -8511,7 +8624,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8511
8624
  "fill-rule": "nonzero"
8512
8625
  }
8513
8626
  ),
8514
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8627
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8515
8628
  "path",
8516
8629
  {
8517
8630
  fill: "#ffe0b2",
@@ -8520,7 +8633,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8520
8633
  "fill-rule": "nonzero"
8521
8634
  }
8522
8635
  ),
8523
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8636
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8524
8637
  "path",
8525
8638
  {
8526
8639
  fill: "#ffe0b2",
@@ -8570,8 +8683,8 @@ var DocumentNode = (props) => {
8570
8683
  documents = parseDocuments(props.node.documentAsset);
8571
8684
  }
8572
8685
  if (documents.length === 0) {
8573
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
8574
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8686
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_jsx_runtime57.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
8687
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8575
8688
  "svg",
8576
8689
  {
8577
8690
  className: "w-5 h-5",
@@ -8579,7 +8692,7 @@ var DocumentNode = (props) => {
8579
8692
  stroke: "currentColor",
8580
8693
  viewBox: "0 0 24 24",
8581
8694
  xmlns: "http://www.w3.org/2000/svg",
8582
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8695
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8583
8696
  "path",
8584
8697
  {
8585
8698
  strokeLinecap: "round",
@@ -8590,11 +8703,11 @@ var DocumentNode = (props) => {
8590
8703
  )
8591
8704
  }
8592
8705
  ) }),
8593
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
8594
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
8706
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
8707
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
8595
8708
  ] }) });
8596
8709
  }
8597
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "", children: documents.map((doc, index) => {
8710
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "", children: documents.map((doc, index) => {
8598
8711
  const documentUrl = AssetUtility_default.resolveUrl(
8599
8712
  props.assetBaseUrl,
8600
8713
  doc.assetUrl
@@ -8612,16 +8725,16 @@ var DocumentNode = (props) => {
8612
8725
  }
8613
8726
  }
8614
8727
  const { Icon: Icon2, extLabel } = getFileDetails2(documentUrl);
8615
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8728
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8616
8729
  "div",
8617
8730
  {
8618
8731
  className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
8619
8732
  children: [
8620
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center space-x-4 min-w-0", children: [
8621
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon2, {}) }),
8622
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex items-baseline space-x-2 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h4", { className: "text-base font-semibold truncate", title: documentTitle, children: documentTitle }) })
8733
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center space-x-4 min-w-0", children: [
8734
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon2, {}) }),
8735
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex items-baseline space-x-2 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h4", { className: "text-base font-semibold truncate", title: documentTitle, children: documentTitle }) })
8623
8736
  ] }),
8624
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8737
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8625
8738
  "a",
8626
8739
  {
8627
8740
  href: documentUrl,
@@ -8629,7 +8742,7 @@ var DocumentNode = (props) => {
8629
8742
  rel: "noopener noreferrer",
8630
8743
  className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors shrink-0",
8631
8744
  children: [
8632
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
8745
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
8633
8746
  "svg",
8634
8747
  {
8635
8748
  className: "w-4 h-4 mr-2",
@@ -8637,7 +8750,7 @@ var DocumentNode = (props) => {
8637
8750
  stroke: "currentColor",
8638
8751
  viewBox: "0 0 24 24",
8639
8752
  children: [
8640
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8753
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8641
8754
  "path",
8642
8755
  {
8643
8756
  strokeLinecap: "round",
@@ -8646,7 +8759,7 @@ var DocumentNode = (props) => {
8646
8759
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
8647
8760
  }
8648
8761
  ),
8649
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
8762
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8650
8763
  "path",
8651
8764
  {
8652
8765
  strokeLinecap: "round",
@@ -8672,13 +8785,13 @@ var DocumentNode_default = DocumentNode;
8672
8785
 
8673
8786
  // src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
8674
8787
  var import_dynamic12 = __toESM(require("next/dynamic"));
8675
- var import_jsx_runtime57 = require("react/jsx-runtime");
8788
+ var import_jsx_runtime58 = require("react/jsx-runtime");
8676
8789
  var IframeClient3 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
8677
8790
  ssr: false
8678
8791
  });
8679
8792
  var GoogleMapNode = (props) => {
8680
8793
  let src = props.node.embedUrl;
8681
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
8794
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
8682
8795
  IframeClient3,
8683
8796
  {
8684
8797
  src,
@@ -8690,7 +8803,7 @@ var GoogleMapNode = (props) => {
8690
8803
  var GoogleMapNode_default = GoogleMapNode;
8691
8804
 
8692
8805
  // src/components/pageRenderingEngine/nodes/DivContainer.tsx
8693
- var import_jsx_runtime87 = require("react/jsx-runtime");
8806
+ var import_jsx_runtime88 = require("react/jsx-runtime");
8694
8807
  var Pagination2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
8695
8808
  var DataBindingControls2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
8696
8809
  ssr: true
@@ -8975,7 +9088,7 @@ var DivContainer = async (props) => {
8975
9088
  }
8976
9089
  const SelectedNode = NodeTypes2[node.type];
8977
9090
  if (!SelectedNode) return null;
8978
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9091
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react61.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8979
9092
  SelectedNode,
8980
9093
  {
8981
9094
  node,
@@ -9067,7 +9180,7 @@ var DivContainer = async (props) => {
9067
9180
  item,
9068
9181
  idx,
9069
9182
  props.href ? void 0 : item?.links?.view
9070
- )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react61.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
9183
+ )?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react61.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
9071
9184
  );
9072
9185
  }
9073
9186
  return props.node.children.flatMap((node, childIndex) => {
@@ -9178,21 +9291,24 @@ var DivContainer = async (props) => {
9178
9291
  !!props.node.enterAnimation && "enter-animation"
9179
9292
  ].filter(Boolean).join(" ");
9180
9293
  const isRepeatedContainer = props.node.repeatForEachItem === true || props.node.replicate === true;
9294
+ const hasActiveFilter = Boolean(
9295
+ (props.query?.["$filter"] ?? props.query?.filter)?.trim()
9296
+ );
9181
9297
  const showDataBindingControls = !isRepeatedContainer && Boolean(
9182
9298
  dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
9183
9299
  );
9184
9300
  const WrapperComponent = Wrapper;
9185
- const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9301
+ const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9186
9302
  WrapperComponent,
9187
9303
  {
9188
9304
  id: guid,
9189
9305
  style: combinedStyles,
9190
9306
  className: classNames || void 0,
9191
9307
  ...wrapperProps,
9192
- children: shouldShowNoDataMessage ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(NoDataFound_default, {}) : renderContainerChildren()
9308
+ children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NoFilterResultsFound_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NoDataFound_default, {}) : renderContainerChildren()
9193
9309
  }
9194
9310
  );
9195
- const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9311
+ const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9196
9312
  Pagination2,
9197
9313
  {
9198
9314
  path: props.path,
@@ -9200,15 +9316,15 @@ var DivContainer = async (props) => {
9200
9316
  dataset: response
9201
9317
  }
9202
9318
  ) : null;
9203
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react61.default.Fragment, { children: [
9204
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9319
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react61.default.Fragment, { children: [
9320
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9205
9321
  "style",
9206
9322
  {
9207
9323
  dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
9208
9324
  }
9209
9325
  ),
9210
- showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react61.default.Fragment, { children: [
9211
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9326
+ showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react61.default.Fragment, { children: [
9327
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9212
9328
  DataBindingControls2,
9213
9329
  {
9214
9330
  mode: "toolbar",
@@ -9216,45 +9332,43 @@ var DivContainer = async (props) => {
9216
9332
  query: props.query,
9217
9333
  facets: response?.facets,
9218
9334
  sortOptions: response?.sortOptions,
9335
+ showFacets: dataBindingProperties?.showFacets,
9219
9336
  showSortOptions: dataBindingProperties?.showSortOptions,
9220
9337
  showSearchBar: dataBindingProperties?.showSearchBar
9221
9338
  }
9222
9339
  ),
9223
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
9340
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
9224
9341
  "div",
9225
9342
  {
9226
9343
  className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
9227
9344
  children: [
9228
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "min-w-0", children: [
9345
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "min-w-0", children: [
9229
9346
  renderedContainer,
9230
9347
  paginationControl
9231
9348
  ] }),
9232
- dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
9233
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
9234
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
9235
- DataBindingControls2,
9236
- {
9237
- mode: "facets",
9238
- path: props.path,
9239
- query: props.query,
9240
- facets: response?.facets,
9241
- showFacets: dataBindingProperties.showFacets
9242
- }
9243
- )
9244
- ] })
9349
+ dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("aside", { className: " lg:sticky lg:top-[90px] lg:self-start", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9350
+ DataBindingControls2,
9351
+ {
9352
+ mode: "facets",
9353
+ path: props.path,
9354
+ query: props.query,
9355
+ facets: response?.facets,
9356
+ showFacets: dataBindingProperties.showFacets
9357
+ }
9358
+ ) })
9245
9359
  ]
9246
9360
  }
9247
9361
  )
9248
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_react61.default.Fragment, { children: [
9362
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_react61.default.Fragment, { children: [
9249
9363
  renderedContainer,
9250
- paginationControl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: paginationControl })
9364
+ paginationControl && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { children: paginationControl })
9251
9365
  ] })
9252
9366
  ] });
9253
9367
  };
9254
9368
  var DivContainer_default = DivContainer;
9255
9369
 
9256
9370
  // src/components/pageRenderingEngine/PageBodyRenderer.tsx
9257
- var import_jsx_runtime88 = require("react/jsx-runtime");
9371
+ var import_jsx_runtime89 = require("react/jsx-runtime");
9258
9372
  var NodeTypes = {
9259
9373
  ["paragraph"]: ParagraphNode_default,
9260
9374
  ["heading"]: HeadingNode_default,
@@ -9292,14 +9406,14 @@ var PageBodyRenderer = (props) => {
9292
9406
  }
9293
9407
  return true;
9294
9408
  };
9295
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
9409
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
9296
9410
  {
9297
9411
  }
9298
9412
  const SelectedNode = NodeTypes[node.type];
9299
9413
  if (!shouldRenderNode(node)) {
9300
9414
  return null;
9301
9415
  }
9302
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9416
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9303
9417
  SelectedNode,
9304
9418
  {
9305
9419
  node,
@@ -9315,7 +9429,7 @@ var PageBodyRenderer = (props) => {
9315
9429
  device: props.device,
9316
9430
  widgetRenderer: props.widgetRenderer
9317
9431
  }
9318
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
9432
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
9319
9433
  SelectedNode,
9320
9434
  {
9321
9435
  node,