@fctc/sme-widget-ui 2.1.7 → 2.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6850,6 +6850,28 @@ var VideoIcon = () => {
6850
6850
  );
6851
6851
  };
6852
6852
 
6853
+ // src/icons/filter-columns-icon.tsx
6854
+ import { jsx as jsx42 } from "react/jsx-runtime";
6855
+ var FilterColumnIcon = () => {
6856
+ return /* @__PURE__ */ jsx42(
6857
+ "svg",
6858
+ {
6859
+ xmlns: "http://www.w3.org/2000/svg",
6860
+ width: "24",
6861
+ height: "24",
6862
+ viewBox: "0 0 24 24",
6863
+ fill: "none",
6864
+ children: /* @__PURE__ */ jsx42(
6865
+ "path",
6866
+ {
6867
+ d: "M10.2004 17.4016H13.8004V15.6016H10.2004V17.4016ZM3.90039 6.60156V8.40156H20.1004V6.60156H3.90039ZM6.60039 12.9016H17.4004V11.1016H6.60039V12.9016Z",
6868
+ fill: "#060606"
6869
+ }
6870
+ )
6871
+ }
6872
+ );
6873
+ };
6874
+
6853
6875
  // src/types/widget-type/index.ts
6854
6876
  import z from "zod";
6855
6877
  var loginSchema = z.object({
@@ -9910,7 +9932,7 @@ instance.use(Browser).use(initReactI18next).init({
9910
9932
  var i18n_default = instance;
9911
9933
 
9912
9934
  // src/provider/index.tsx
9913
- import { jsx as jsx42 } from "react/jsx-runtime";
9935
+ import { jsx as jsx43 } from "react/jsx-runtime";
9914
9936
  var I18nContext2 = createContext2(null);
9915
9937
  var I18nProvider = ({
9916
9938
  children,
@@ -9922,7 +9944,7 @@ var I18nProvider = ({
9922
9944
  }
9923
9945
  }, [lang]);
9924
9946
  const { t: t3 } = useTranslation();
9925
- return /* @__PURE__ */ jsx42(
9947
+ return /* @__PURE__ */ jsx43(
9926
9948
  I18nContext2.Provider,
9927
9949
  {
9928
9950
  value: {
@@ -9930,7 +9952,7 @@ var I18nProvider = ({
9930
9952
  t: t3,
9931
9953
  changeLanguage: i18n_default.changeLanguage
9932
9954
  },
9933
- children: /* @__PURE__ */ jsx42(I18nextProvider, { i18n: i18n_default, children })
9955
+ children: /* @__PURE__ */ jsx43(I18nextProvider, { i18n: i18n_default, children })
9934
9956
  }
9935
9957
  );
9936
9958
  };
@@ -10498,11 +10520,11 @@ var usePagination = ({
10498
10520
  };
10499
10521
 
10500
10522
  // src/icons/common.tsx
10501
- import { jsx as jsx43 } from "react/jsx-runtime";
10502
- var IcArrow = () => /* @__PURE__ */ jsx43("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx43("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }) });
10523
+ import { jsx as jsx44 } from "react/jsx-runtime";
10524
+ var IcArrow = () => /* @__PURE__ */ jsx44("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx44("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }) });
10503
10525
 
10504
10526
  // src/widgets/advanced/pagination/pagination-view.tsx
10505
- import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
10527
+ import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
10506
10528
  var PaginationView = (props) => {
10507
10529
  const {
10508
10530
  displayPageNumberDots,
@@ -10543,17 +10565,17 @@ var PaginationView = (props) => {
10543
10565
  " / ",
10544
10566
  totalCount
10545
10567
  ] }),
10546
- /* @__PURE__ */ jsx44(
10568
+ /* @__PURE__ */ jsx45(
10547
10569
  "li",
10548
10570
  {
10549
10571
  className: `pagination-item ${currentPage === 0 && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10550
10572
  onClick: onPrevious,
10551
- children: /* @__PURE__ */ jsx44("div", { className: "arrow left", children: /* @__PURE__ */ jsx44(IcArrow, {}) })
10573
+ children: /* @__PURE__ */ jsx45("div", { className: "arrow left", children: /* @__PURE__ */ jsx45(IcArrow, {}) })
10552
10574
  }
10553
10575
  ),
10554
10576
  displayPageNumberDots && paginationRange.map((pageNumber) => {
10555
10577
  if (pageNumber === DOTS) {
10556
- return /* @__PURE__ */ jsx44(
10578
+ return /* @__PURE__ */ jsx45(
10557
10579
  "li",
10558
10580
  {
10559
10581
  className: "pagination-item dots",
@@ -10562,7 +10584,7 @@ var PaginationView = (props) => {
10562
10584
  "pagination" + pageNumber
10563
10585
  );
10564
10586
  }
10565
- return /* @__PURE__ */ jsx44(
10587
+ return /* @__PURE__ */ jsx45(
10566
10588
  "li",
10567
10589
  {
10568
10590
  className: `pagination-item ${pageNumber - 1 === currentPage && "selected"}`,
@@ -10572,12 +10594,12 @@ var PaginationView = (props) => {
10572
10594
  "pagination" + pageNumber
10573
10595
  );
10574
10596
  }),
10575
- /* @__PURE__ */ jsx44(
10597
+ /* @__PURE__ */ jsx45(
10576
10598
  "li",
10577
10599
  {
10578
10600
  className: `pagination-item ${currentPage + 1 === lastPage && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10579
10601
  onClick: onNext,
10580
- children: /* @__PURE__ */ jsx44("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx44(IcArrow, {}) })
10602
+ children: /* @__PURE__ */ jsx45("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx45(IcArrow, {}) })
10581
10603
  }
10582
10604
  )
10583
10605
  ] });
@@ -10587,7 +10609,7 @@ var PaginationView = (props) => {
10587
10609
  import { useState as useState3 } from "react";
10588
10610
 
10589
10611
  // src/widgets/advanced/table/table-group.tsx
10590
- import { Fragment as Fragment2, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
10612
+ import { Fragment as Fragment2, jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
10591
10613
  var TableGroup = (props) => {
10592
10614
  const { t: t3 } = useI18n();
10593
10615
  const {
@@ -10645,7 +10667,7 @@ var TableGroup = (props) => {
10645
10667
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
10646
10668
  onClick: onExpandChildGroup,
10647
10669
  children: [
10648
- /* @__PURE__ */ jsx45(
10670
+ /* @__PURE__ */ jsx46(
10649
10671
  "td",
10650
10672
  {
10651
10673
  colSpan: colEmptyGroup.fromStart ?? 1,
@@ -10658,7 +10680,7 @@ var TableGroup = (props) => {
10658
10680
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
10659
10681
  children: [
10660
10682
  /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
10661
- /* @__PURE__ */ jsx45(
10683
+ /* @__PURE__ */ jsx46(
10662
10684
  TriangleIcon,
10663
10685
  {
10664
10686
  style: {
@@ -10667,15 +10689,15 @@ var TableGroup = (props) => {
10667
10689
  className: `w-2 h-2 text-button_primary `
10668
10690
  }
10669
10691
  ),
10670
- /* @__PURE__ */ jsx45("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10692
+ /* @__PURE__ */ jsx46("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10671
10693
  ] }),
10672
- /* @__PURE__ */ jsx45(
10694
+ /* @__PURE__ */ jsx46(
10673
10695
  "div",
10674
10696
  {
10675
10697
  onClick: (e3) => {
10676
10698
  e3.stopPropagation();
10677
10699
  },
10678
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx45(
10700
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx46(
10679
10701
  PaginationView,
10680
10702
  {
10681
10703
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -10696,7 +10718,7 @@ var TableGroup = (props) => {
10696
10718
  columns?.map((col) => {
10697
10719
  if (col?.optional === "hide") return;
10698
10720
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
10699
- return /* @__PURE__ */ jsx45(
10721
+ return /* @__PURE__ */ jsx46(
10700
10722
  "td",
10701
10723
  {
10702
10724
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -10714,7 +10736,7 @@ var TableGroup = (props) => {
10714
10736
  ]
10715
10737
  }
10716
10738
  ),
10717
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx45(
10739
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx46(
10718
10740
  TableBodyRow,
10719
10741
  {
10720
10742
  columns: columnsGroup,
@@ -10744,7 +10766,7 @@ var TableGroup = (props) => {
10744
10766
 
10745
10767
  // src/widgets/advanced/table/table-row.tsx
10746
10768
  import { useEffect as useEffect5, useMemo as useMemo3, useRef as useRef4 } from "react";
10747
- import { Fragment as Fragment3, jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
10769
+ import { Fragment as Fragment3, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
10748
10770
  var Row = (props) => {
10749
10771
  const {
10750
10772
  row,
@@ -10810,17 +10832,17 @@ var Row = (props) => {
10810
10832
  setIsAutoSelect(false);
10811
10833
  }
10812
10834
  }, [checkedAll]);
10813
- return /* @__PURE__ */ jsx46(
10835
+ return /* @__PURE__ */ jsx47(
10814
10836
  "tr",
10815
10837
  {
10816
10838
  "data-row-id": row?.id,
10817
10839
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10818
10840
  children: /* @__PURE__ */ jsxs26(Fragment3, { children: [
10819
- isDisplayCheckbox && /* @__PURE__ */ jsx46(
10841
+ isDisplayCheckbox && /* @__PURE__ */ jsx47(
10820
10842
  "td",
10821
10843
  {
10822
10844
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
10823
- children: /* @__PURE__ */ jsx46(
10845
+ children: /* @__PURE__ */ jsx47(
10824
10846
  "input",
10825
10847
  {
10826
10848
  type: "checkbox",
@@ -10833,9 +10855,9 @@ var Row = (props) => {
10833
10855
  ),
10834
10856
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
10835
10857
  if (row?.display_type === "line_section" && col.key !== "display_name") {
10836
- return /* @__PURE__ */ jsx46("td", {});
10858
+ return /* @__PURE__ */ jsx47("td", {});
10837
10859
  }
10838
- return /* @__PURE__ */ jsx46(
10860
+ return /* @__PURE__ */ jsx47(
10839
10861
  "td",
10840
10862
  {
10841
10863
  colSpan: 1,
@@ -10854,7 +10876,7 @@ var Row = (props) => {
10854
10876
  `${col.name}____${index4}`
10855
10877
  );
10856
10878
  }),
10857
- typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx46("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx46("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx46(
10879
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx47("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx47("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx47(
10858
10880
  "button",
10859
10881
  {
10860
10882
  type: "button",
@@ -10862,7 +10884,7 @@ var Row = (props) => {
10862
10884
  onClick: () => {
10863
10885
  onRemoveRow(indexRow);
10864
10886
  },
10865
- children: /* @__PURE__ */ jsx46(DeleteIcon, {})
10887
+ children: /* @__PURE__ */ jsx47(DeleteIcon, {})
10866
10888
  }
10867
10889
  ) }) })
10868
10890
  ] })
@@ -10872,7 +10894,7 @@ var Row = (props) => {
10872
10894
  };
10873
10895
 
10874
10896
  // src/widgets/advanced/table/table-body.tsx
10875
- import { jsx as jsx47 } from "react/jsx-runtime";
10897
+ import { jsx as jsx48 } from "react/jsx-runtime";
10876
10898
  var TableBodyRow = (props) => {
10877
10899
  const {
10878
10900
  rows,
@@ -10902,7 +10924,7 @@ var TableBodyRow = (props) => {
10902
10924
  isEditTable
10903
10925
  } = props;
10904
10926
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10905
- return typeTable === "group" ? /* @__PURE__ */ jsx47(
10927
+ return typeTable === "group" ? /* @__PURE__ */ jsx48(
10906
10928
  TableGroup,
10907
10929
  {
10908
10930
  columns,
@@ -10927,7 +10949,7 @@ var TableBodyRow = (props) => {
10927
10949
  onClickRow
10928
10950
  },
10929
10951
  `record-group-${index4}`
10930
- ) : /* @__PURE__ */ jsx47(
10952
+ ) : /* @__PURE__ */ jsx48(
10931
10953
  Row,
10932
10954
  {
10933
10955
  row,
@@ -10955,7 +10977,7 @@ var TableBodyRow = (props) => {
10955
10977
  };
10956
10978
  var TableBody = (props) => {
10957
10979
  const [isAutoSelect, setIsAutoSelect] = useState3(false);
10958
- return /* @__PURE__ */ jsx47("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx47(
10980
+ return /* @__PURE__ */ jsx48("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx48(
10959
10981
  TableBodyRow,
10960
10982
  {
10961
10983
  ...props,
@@ -10968,7 +10990,7 @@ var TableBody = (props) => {
10968
10990
  // src/widgets/advanced/table/table-filter.tsx
10969
10991
  import { useEffect as useEffect6, useRef as useRef5, useState as useState4 } from "react";
10970
10992
  import { createPortal } from "react-dom";
10971
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
10993
+ import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
10972
10994
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
10973
10995
  const [openTableFilter, setOpenTableFilter] = useState4();
10974
10996
  const [filterPosition, setFilterPosition] = useState4(null);
@@ -11009,72 +11031,19 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11009
11031
  },
11010
11032
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
11011
11033
  children: [
11012
- /* @__PURE__ */ jsx48(
11034
+ /* @__PURE__ */ jsx49(
11013
11035
  "button",
11014
11036
  {
11015
11037
  type: "button",
11016
- className: "bg-white size-8 p-2 border border-[#DEE7DD] rounded-lg cursor-pointer",
11038
+ className: "bg-white size-8 p-1 rounded-lg cursor-pointer flex items-center justify-center",
11017
11039
  onClick: () => {
11018
11040
  setOpenTableFilter(!openTableFilter);
11019
11041
  },
11020
- children: /* @__PURE__ */ jsxs27(
11021
- "svg",
11022
- {
11023
- xmlns: "http://www.w3.org/2000/svg",
11024
- width: "16",
11025
- height: "16",
11026
- viewBox: "0 0 16 16",
11027
- fill: "none",
11028
- children: [
11029
- /* @__PURE__ */ jsx48(
11030
- "path",
11031
- {
11032
- d: "M14.6665 4.83301H10.6665C10.3932 4.83301 10.1665 4.60634 10.1665 4.33301C10.1665 4.05967 10.3932 3.83301 10.6665 3.83301H14.6665C14.9398 3.83301 15.1665 4.05967 15.1665 4.33301C15.1665 4.60634 14.9398 4.83301 14.6665 4.83301Z",
11033
- fill: "#1F1F1F"
11034
- }
11035
- ),
11036
- /* @__PURE__ */ jsx48(
11037
- "path",
11038
- {
11039
- d: "M4.00016 4.83301H1.3335C1.06016 4.83301 0.833496 4.60634 0.833496 4.33301C0.833496 4.05967 1.06016 3.83301 1.3335 3.83301H4.00016C4.2735 3.83301 4.50016 4.05967 4.50016 4.33301C4.50016 4.60634 4.2735 4.83301 4.00016 4.83301Z",
11040
- fill: "#1F1F1F"
11041
- }
11042
- ),
11043
- /* @__PURE__ */ jsx48(
11044
- "path",
11045
- {
11046
- d: "M6.66683 7.16667C5.10683 7.16667 3.8335 5.89333 3.8335 4.33333C3.8335 2.77333 5.10683 1.5 6.66683 1.5C8.22683 1.5 9.50016 2.77333 9.50016 4.33333C9.50016 5.89333 8.22683 7.16667 6.66683 7.16667ZM6.66683 2.5C5.6535 2.5 4.8335 3.32 4.8335 4.33333C4.8335 5.34667 5.6535 6.16667 6.66683 6.16667C7.68016 6.16667 8.50016 5.34667 8.50016 4.33333C8.50016 3.32 7.68016 2.5 6.66683 2.5Z",
11047
- fill: "#1F1F1F"
11048
- }
11049
- ),
11050
- /* @__PURE__ */ jsx48(
11051
- "path",
11052
- {
11053
- d: "M14.6667 12.167H12C11.7267 12.167 11.5 11.9403 11.5 11.667C11.5 11.3937 11.7267 11.167 12 11.167H14.6667C14.94 11.167 15.1667 11.3937 15.1667 11.667C15.1667 11.9403 14.94 12.167 14.6667 12.167Z",
11054
- fill: "black"
11055
- }
11056
- ),
11057
- /* @__PURE__ */ jsx48(
11058
- "path",
11059
- {
11060
- d: "M5.3335 12.167H1.3335C1.06016 12.167 0.833496 11.9403 0.833496 11.667C0.833496 11.3937 1.06016 11.167 1.3335 11.167H5.3335C5.60683 11.167 5.8335 11.3937 5.8335 11.667C5.8335 11.9403 5.60683 12.167 5.3335 12.167Z",
11061
- fill: "black"
11062
- }
11063
- ),
11064
- /* @__PURE__ */ jsx48(
11065
- "path",
11066
- {
11067
- d: "M9.33333 14.4997C7.77333 14.4997 6.5 13.2263 6.5 11.6663C6.5 10.1063 7.77333 8.83301 9.33333 8.83301C10.8933 8.83301 12.1667 10.1063 12.1667 11.6663C12.1667 13.2263 10.8933 14.4997 9.33333 14.4997ZM9.33333 9.83301C8.32 9.83301 7.5 10.653 7.5 11.6663C7.5 12.6797 8.32 13.4997 9.33333 13.4997C10.3467 13.4997 11.1667 12.6797 11.1667 11.6663C11.1667 10.653 10.3467 9.83301 9.33333 9.83301Z",
11068
- fill: "black"
11069
- }
11070
- )
11071
- ]
11072
- }
11073
- )
11042
+ children: /* @__PURE__ */ jsx49(FilterColumnIcon, {})
11074
11043
  }
11075
11044
  ),
11076
11045
  filterPosition && openTableFilter && createPortal(
11077
- /* @__PURE__ */ jsx48(
11046
+ /* @__PURE__ */ jsx49(
11078
11047
  "div",
11079
11048
  {
11080
11049
  ref: filterPopupRef,
@@ -11086,7 +11055,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11086
11055
  className: "absolute z-[9999] flex w-[250px] h-auto max-h-[800%] overflow-auto flex-col gap-[16px] rounded-[8px] bg-[#fff] px-[24px] py-[16px] shadow-md",
11087
11056
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
11088
11057
  return /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
11089
- /* @__PURE__ */ jsx48(
11058
+ /* @__PURE__ */ jsx49(
11090
11059
  "input",
11091
11060
  {
11092
11061
  type: "checkbox",
@@ -11096,7 +11065,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11096
11065
  className: "cursor-pointer"
11097
11066
  }
11098
11067
  ),
11099
- /* @__PURE__ */ jsx48(
11068
+ /* @__PURE__ */ jsx49(
11100
11069
  "label",
11101
11070
  {
11102
11071
  htmlFor: `${item.name}`,
@@ -11116,10 +11085,10 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11116
11085
  };
11117
11086
 
11118
11087
  // src/widgets/advanced/table/table-footer.tsx
11119
- import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
11088
+ import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
11120
11089
  var TableFooter = ({ onAddRow, rows }) => {
11121
11090
  const emptyData = rows?.length <= 0;
11122
- return /* @__PURE__ */ jsx49("tfoot", { children: /* @__PURE__ */ jsx49("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx49(
11091
+ return /* @__PURE__ */ jsx50("tfoot", { children: /* @__PURE__ */ jsx50("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx50(
11123
11092
  "td",
11124
11093
  {
11125
11094
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
@@ -11146,14 +11115,14 @@ var TableFooter = ({ onAddRow, rows }) => {
11146
11115
  viewBox: "0 0 20 20",
11147
11116
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
11148
11117
  children: [
11149
- /* @__PURE__ */ jsx49(
11118
+ /* @__PURE__ */ jsx50(
11150
11119
  "path",
11151
11120
  {
11152
11121
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
11153
11122
  d: "M15 10.625H5C4.65833 10.625 4.375 10.3417 4.375 10C4.375 9.65833 4.65833 9.375 5 9.375H15C15.3417 9.375 15.625 9.65833 15.625 10C15.625 10.3417 15.3417 10.625 15 10.625Z"
11154
11123
  }
11155
11124
  ),
11156
- /* @__PURE__ */ jsx49(
11125
+ /* @__PURE__ */ jsx50(
11157
11126
  "path",
11158
11127
  {
11159
11128
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -12974,7 +12943,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
12974
12943
 
12975
12944
  // src/widgets/advanced/table/table-head.tsx
12976
12945
  import { createPortal as createPortal2 } from "react-dom";
12977
- import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
12946
+ import { Fragment as Fragment4, jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
12978
12947
  var TableHead = (props) => {
12979
12948
  const {
12980
12949
  handleCheckBoxAll,
@@ -12984,7 +12953,7 @@ var TableHead = (props) => {
12984
12953
  onRemoveRow,
12985
12954
  onToggleColumnOptional
12986
12955
  } = props;
12987
- return /* @__PURE__ */ jsx50("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs29(
12956
+ return /* @__PURE__ */ jsx51("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs29(
12988
12957
  "tr",
12989
12958
  {
12990
12959
  style: {
@@ -12996,11 +12965,11 @@ var TableHead = (props) => {
12996
12965
  },
12997
12966
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
12998
12967
  children: [
12999
- isDisplayCheckbox && /* @__PURE__ */ jsx50(
12968
+ isDisplayCheckbox && /* @__PURE__ */ jsx51(
13000
12969
  "th",
13001
12970
  {
13002
12971
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
13003
- children: /* @__PURE__ */ jsx50(
12972
+ children: /* @__PURE__ */ jsx51(
13004
12973
  "input",
13005
12974
  {
13006
12975
  type: "checkbox",
@@ -13012,17 +12981,17 @@ var TableHead = (props) => {
13012
12981
  }
13013
12982
  ),
13014
12983
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
13015
- return /* @__PURE__ */ jsx50(
12984
+ return /* @__PURE__ */ jsx51(
13016
12985
  "th",
13017
12986
  {
13018
12987
  "data-type-co": col?.field?.type_co,
13019
12988
  "data-rtc-resizable": col?.name,
13020
12989
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
13021
12990
  children: /* @__PURE__ */ jsxs29("div", { className: "cursor-pointer flex items-center gap-[4px] w-full group relative", children: [
13022
- /* @__PURE__ */ jsx50("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
12991
+ /* @__PURE__ */ jsx51("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
13023
12992
  col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
13024
12993
  createPortal2(
13025
- /* @__PURE__ */ jsx50(
12994
+ /* @__PURE__ */ jsx51(
13026
12995
  M,
13027
12996
  {
13028
12997
  style: {
@@ -13042,7 +13011,7 @@ var TableHead = (props) => {
13042
13011
  ),
13043
13012
  document.body
13044
13013
  ),
13045
- /* @__PURE__ */ jsx50(
13014
+ /* @__PURE__ */ jsx51(
13046
13015
  "span",
13047
13016
  {
13048
13017
  style: {
@@ -13053,7 +13022,7 @@ var TableHead = (props) => {
13053
13022
  fontSize: "8px"
13054
13023
  },
13055
13024
  "data-tooltip-id": `field-help-${col?.field?.name}`,
13056
- children: /* @__PURE__ */ jsx50(
13025
+ children: /* @__PURE__ */ jsx51(
13057
13026
  "svg",
13058
13027
  {
13059
13028
  xmlns: "http://www.w3.org/2000/svg",
@@ -13061,7 +13030,7 @@ var TableHead = (props) => {
13061
13030
  height: "13",
13062
13031
  viewBox: "0 0 13 13",
13063
13032
  fill: "none",
13064
- children: /* @__PURE__ */ jsx50(
13033
+ children: /* @__PURE__ */ jsx51(
13065
13034
  "path",
13066
13035
  {
13067
13036
  fillRule: "evenodd",
@@ -13080,8 +13049,8 @@ var TableHead = (props) => {
13080
13049
  "table-head-" + index4
13081
13050
  );
13082
13051
  }),
13083
- typeof onRemoveRow === "function" && /* @__PURE__ */ jsx50("th", { className: "relative p-2 w-[35px]" }),
13084
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx50(
13052
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx51("th", { className: "relative p-2 w-[35px]" }),
13053
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx51(
13085
13054
  "th",
13086
13055
  {
13087
13056
  style: {
@@ -13090,7 +13059,7 @@ var TableHead = (props) => {
13090
13059
  right: 0
13091
13060
  },
13092
13061
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
13093
- children: /* @__PURE__ */ jsx50(
13062
+ children: /* @__PURE__ */ jsx51(
13094
13063
  TableFilter,
13095
13064
  {
13096
13065
  columns,
@@ -13105,7 +13074,7 @@ var TableHead = (props) => {
13105
13074
  };
13106
13075
 
13107
13076
  // src/icons/empty-table-icon.tsx
13108
- import { jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
13077
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
13109
13078
  var IcEmptyTable = () => {
13110
13079
  return /* @__PURE__ */ jsxs30(
13111
13080
  "svg",
@@ -13117,8 +13086,8 @@ var IcEmptyTable = () => {
13117
13086
  fill: "none",
13118
13087
  children: [
13119
13088
  /* @__PURE__ */ jsxs30("g", { clipPath: "url(#clip0_2454_28950)", children: [
13120
- /* @__PURE__ */ jsx51("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13121
- /* @__PURE__ */ jsx51(
13089
+ /* @__PURE__ */ jsx52("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13090
+ /* @__PURE__ */ jsx52(
13122
13091
  "path",
13123
13092
  {
13124
13093
  d: "M64.5 0V140",
@@ -13128,7 +13097,7 @@ var IcEmptyTable = () => {
13128
13097
  strokeDasharray: "3 3"
13129
13098
  }
13130
13099
  ),
13131
- /* @__PURE__ */ jsx51(
13100
+ /* @__PURE__ */ jsx52(
13132
13101
  "path",
13133
13102
  {
13134
13103
  d: "M151.5 0V140",
@@ -13138,7 +13107,7 @@ var IcEmptyTable = () => {
13138
13107
  strokeDasharray: "3 3"
13139
13108
  }
13140
13109
  ),
13141
- /* @__PURE__ */ jsx51(
13110
+ /* @__PURE__ */ jsx52(
13142
13111
  "path",
13143
13112
  {
13144
13113
  d: "M215.5 24H0.5",
@@ -13148,7 +13117,7 @@ var IcEmptyTable = () => {
13148
13117
  strokeDasharray: "3 3"
13149
13118
  }
13150
13119
  ),
13151
- /* @__PURE__ */ jsx51(
13120
+ /* @__PURE__ */ jsx52(
13152
13121
  "path",
13153
13122
  {
13154
13123
  d: "M215.5 50H0.5",
@@ -13158,7 +13127,7 @@ var IcEmptyTable = () => {
13158
13127
  strokeDasharray: "3 3"
13159
13128
  }
13160
13129
  ),
13161
- /* @__PURE__ */ jsx51(
13130
+ /* @__PURE__ */ jsx52(
13162
13131
  "path",
13163
13132
  {
13164
13133
  d: "M215.5 88H0.5",
@@ -13168,7 +13137,7 @@ var IcEmptyTable = () => {
13168
13137
  strokeDasharray: "3 3"
13169
13138
  }
13170
13139
  ),
13171
- /* @__PURE__ */ jsx51(
13140
+ /* @__PURE__ */ jsx52(
13172
13141
  "path",
13173
13142
  {
13174
13143
  d: "M215.5 114H0.5",
@@ -13178,7 +13147,7 @@ var IcEmptyTable = () => {
13178
13147
  strokeDasharray: "3 3"
13179
13148
  }
13180
13149
  ),
13181
- /* @__PURE__ */ jsx51(
13150
+ /* @__PURE__ */ jsx52(
13182
13151
  "path",
13183
13152
  {
13184
13153
  d: "M199.5 0V140",
@@ -13187,7 +13156,7 @@ var IcEmptyTable = () => {
13187
13156
  strokeMiterlimit: "10"
13188
13157
  }
13189
13158
  ),
13190
- /* @__PURE__ */ jsx51(
13159
+ /* @__PURE__ */ jsx52(
13191
13160
  "path",
13192
13161
  {
13193
13162
  d: "M16.5 0V140",
@@ -13196,7 +13165,7 @@ var IcEmptyTable = () => {
13196
13165
  strokeMiterlimit: "10"
13197
13166
  }
13198
13167
  ),
13199
- /* @__PURE__ */ jsx51(
13168
+ /* @__PURE__ */ jsx52(
13200
13169
  "path",
13201
13170
  {
13202
13171
  d: "M0.5 16H215.5",
@@ -13205,7 +13174,7 @@ var IcEmptyTable = () => {
13205
13174
  strokeMiterlimit: "10"
13206
13175
  }
13207
13176
  ),
13208
- /* @__PURE__ */ jsx51(
13177
+ /* @__PURE__ */ jsx52(
13209
13178
  "path",
13210
13179
  {
13211
13180
  d: "M0.5 124H215.5",
@@ -13214,7 +13183,7 @@ var IcEmptyTable = () => {
13214
13183
  strokeMiterlimit: "10"
13215
13184
  }
13216
13185
  ),
13217
- /* @__PURE__ */ jsx51(
13186
+ /* @__PURE__ */ jsx52(
13218
13187
  "path",
13219
13188
  {
13220
13189
  opacity: "0.6",
@@ -13225,7 +13194,7 @@ var IcEmptyTable = () => {
13225
13194
  strokeLinejoin: "round"
13226
13195
  }
13227
13196
  ),
13228
- /* @__PURE__ */ jsx51(
13197
+ /* @__PURE__ */ jsx52(
13229
13198
  "path",
13230
13199
  {
13231
13200
  opacity: "0.6",
@@ -13236,7 +13205,7 @@ var IcEmptyTable = () => {
13236
13205
  strokeLinejoin: "round"
13237
13206
  }
13238
13207
  ),
13239
- /* @__PURE__ */ jsx51(
13208
+ /* @__PURE__ */ jsx52(
13240
13209
  "path",
13241
13210
  {
13242
13211
  opacity: "0.6",
@@ -13247,7 +13216,7 @@ var IcEmptyTable = () => {
13247
13216
  strokeLinejoin: "round"
13248
13217
  }
13249
13218
  ),
13250
- /* @__PURE__ */ jsx51(
13219
+ /* @__PURE__ */ jsx52(
13251
13220
  "path",
13252
13221
  {
13253
13222
  opacity: "0.6",
@@ -13258,7 +13227,7 @@ var IcEmptyTable = () => {
13258
13227
  strokeLinejoin: "round"
13259
13228
  }
13260
13229
  ),
13261
- /* @__PURE__ */ jsx51(
13230
+ /* @__PURE__ */ jsx52(
13262
13231
  "path",
13263
13232
  {
13264
13233
  opacity: "0.6",
@@ -13269,14 +13238,14 @@ var IcEmptyTable = () => {
13269
13238
  strokeLinejoin: "round"
13270
13239
  }
13271
13240
  ),
13272
- /* @__PURE__ */ jsx51(
13241
+ /* @__PURE__ */ jsx52(
13273
13242
  "path",
13274
13243
  {
13275
13244
  d: "M132.285 26.7744C132.222 26.6683 132.14 26.5872 132.042 26.5334L129.519 25.0772C129.429 25.0276 129.325 25.0013 129.211 25C128.942 24.9971 128.588 25.201 127.882 25.6087L86.5178 49.4905C85.8115 49.8983 85.4583 50.1021 85.1886 50.4166C84.9513 50.6932 84.7584 51.0274 84.6375 51.3712C84.5 51.762 84.5 52.1698 84.5 52.9854V110.942C84.5 111.758 84.5 112.166 84.6375 112.398C84.7003 112.504 84.7827 112.585 84.8806 112.639L87.4028 114.095C87.4932 114.145 87.5969 114.171 87.7108 114.172C87.9806 114.175 88.3337 113.971 89.04 113.563L130.404 89.6817C131.111 89.2739 131.464 89.07 131.734 88.7556C131.971 88.479 132.164 88.1448 132.285 87.801C132.422 87.4102 132.422 87.0023 132.422 86.1868V28.2298C132.422 27.4143 132.422 27.0066 132.285 26.7744Z",
13276
13245
  fill: "white"
13277
13246
  }
13278
13247
  ),
13279
- /* @__PURE__ */ jsx51(
13248
+ /* @__PURE__ */ jsx52(
13280
13249
  "path",
13281
13250
  {
13282
13251
  d: "M85 50.5007L87.7503 52.132M132.081 26.7061C131.991 26.6565 131.887 26.6302 131.773 26.6289C131.503 26.6259 131.15 26.8298 130.444 27.2376L87.7502 52.0455L87.7503 114.001",
@@ -13286,7 +13255,7 @@ var IcEmptyTable = () => {
13286
13255
  strokeLinejoin: "round"
13287
13256
  }
13288
13257
  ),
13289
- /* @__PURE__ */ jsx51(
13258
+ /* @__PURE__ */ jsx52(
13290
13259
  "path",
13291
13260
  {
13292
13261
  d: "M132.285 26.7744C132.222 26.6683 132.14 26.5872 132.042 26.5334L129.519 25.0772C129.429 25.0276 129.325 25.0013 129.211 25C128.942 24.9971 128.588 25.201 127.882 25.6087L86.5178 49.4905C85.8115 49.8983 85.4583 50.1021 85.1886 50.4166C84.9513 50.6932 84.7584 51.0274 84.6375 51.3712C84.5 51.762 84.5 52.1698 84.5 52.9854V110.942C84.5 111.758 84.5 112.166 84.6375 112.398C84.7003 112.504 84.7827 112.585 84.8806 112.639L87.4028 114.095C87.4932 114.145 87.5969 114.171 87.7108 114.172C87.9806 114.175 88.3337 113.971 89.04 113.563L130.404 89.6817C131.111 89.2739 131.464 89.07 131.734 88.7556C131.971 88.479 132.164 88.1448 132.285 87.801C132.422 87.4102 132.422 87.0023 132.422 86.1868V28.2298C132.422 27.4143 132.422 27.0066 132.285 26.7744Z",
@@ -13295,7 +13264,7 @@ var IcEmptyTable = () => {
13295
13264
  strokeLinejoin: "round"
13296
13265
  }
13297
13266
  ),
13298
- /* @__PURE__ */ jsx51(
13267
+ /* @__PURE__ */ jsx52(
13299
13268
  "path",
13300
13269
  {
13301
13270
  opacity: "0.6",
@@ -13306,7 +13275,7 @@ var IcEmptyTable = () => {
13306
13275
  strokeLinejoin: "round"
13307
13276
  }
13308
13277
  ),
13309
- /* @__PURE__ */ jsx51(
13278
+ /* @__PURE__ */ jsx52(
13310
13279
  "path",
13311
13280
  {
13312
13281
  opacity: "0.6",
@@ -13317,7 +13286,7 @@ var IcEmptyTable = () => {
13317
13286
  strokeLinejoin: "round"
13318
13287
  }
13319
13288
  ),
13320
- /* @__PURE__ */ jsx51(
13289
+ /* @__PURE__ */ jsx52(
13321
13290
  "path",
13322
13291
  {
13323
13292
  opacity: "0.6",
@@ -13328,7 +13297,7 @@ var IcEmptyTable = () => {
13328
13297
  strokeLinejoin: "round"
13329
13298
  }
13330
13299
  ),
13331
- /* @__PURE__ */ jsx51(
13300
+ /* @__PURE__ */ jsx52(
13332
13301
  "path",
13333
13302
  {
13334
13303
  opacity: "0.6",
@@ -13339,7 +13308,7 @@ var IcEmptyTable = () => {
13339
13308
  strokeLinejoin: "round"
13340
13309
  }
13341
13310
  ),
13342
- /* @__PURE__ */ jsx51(
13311
+ /* @__PURE__ */ jsx52(
13343
13312
  "path",
13344
13313
  {
13345
13314
  opacity: "0.6",
@@ -13350,7 +13319,7 @@ var IcEmptyTable = () => {
13350
13319
  strokeLinejoin: "round"
13351
13320
  }
13352
13321
  ),
13353
- /* @__PURE__ */ jsx51(
13322
+ /* @__PURE__ */ jsx52(
13354
13323
  "path",
13355
13324
  {
13356
13325
  opacity: "0.6",
@@ -13361,7 +13330,7 @@ var IcEmptyTable = () => {
13361
13330
  strokeLinejoin: "round"
13362
13331
  }
13363
13332
  ),
13364
- /* @__PURE__ */ jsx51(
13333
+ /* @__PURE__ */ jsx52(
13365
13334
  "path",
13366
13335
  {
13367
13336
  opacity: "0.6",
@@ -13372,7 +13341,7 @@ var IcEmptyTable = () => {
13372
13341
  strokeLinejoin: "round"
13373
13342
  }
13374
13343
  ),
13375
- /* @__PURE__ */ jsx51(
13344
+ /* @__PURE__ */ jsx52(
13376
13345
  "path",
13377
13346
  {
13378
13347
  opacity: "0.6",
@@ -13383,7 +13352,7 @@ var IcEmptyTable = () => {
13383
13352
  strokeLinejoin: "round"
13384
13353
  }
13385
13354
  ),
13386
- /* @__PURE__ */ jsx51(
13355
+ /* @__PURE__ */ jsx52(
13387
13356
  "path",
13388
13357
  {
13389
13358
  opacity: "0.6",
@@ -13394,14 +13363,14 @@ var IcEmptyTable = () => {
13394
13363
  strokeLinejoin: "round"
13395
13364
  }
13396
13365
  ),
13397
- /* @__PURE__ */ jsx51(
13366
+ /* @__PURE__ */ jsx52(
13398
13367
  "path",
13399
13368
  {
13400
13369
  d: "M114.191 31.968C113.467 32.3862 112.814 32.4107 112.354 32.1116C111.929 31.8356 111.669 31.2839 111.669 30.5118C111.669 29.4663 111.287 28.7441 110.676 28.433C110.112 28.1458 109.352 28.209 108.516 28.6915C106.775 29.6968 105.363 32.1417 105.363 34.1523C105.363 35.7608 104.234 37.7167 102.841 38.5209L99.6884 40.3412C97.5989 41.5475 95.905 44.4814 95.905 46.8941C95.905 47.0871 95.9701 47.225 96.0762 47.294L96.1036 47.3098C96.0942 47.3051 96.0851 47.2998 96.0762 47.294L93.5814 45.8536C93.4591 45.7914 93.3828 45.647 93.3828 45.4379C93.3828 43.0252 95.0767 40.0913 97.1661 38.885L100.319 37.0647C101.712 36.2605 102.841 34.3046 102.841 32.6961C102.841 30.6855 104.253 28.2406 105.994 27.2353C106.83 26.7528 107.59 26.6896 108.154 26.9768L110.676 28.433C111.287 28.7441 111.669 29.4663 111.669 30.5118L114.822 28.6915C115.825 28.1125 116.736 28.0367 117.413 28.3813L119.936 29.8374C119.259 29.4928 118.347 29.5687 117.344 30.1477L114.191 31.968Z",
13401
13370
  fill: "white"
13402
13371
  }
13403
13372
  ),
13404
- /* @__PURE__ */ jsx51(
13373
+ /* @__PURE__ */ jsx52(
13405
13374
  "path",
13406
13375
  {
13407
13376
  "fill-rule": "evenodd",
@@ -13410,7 +13379,7 @@ var IcEmptyTable = () => {
13410
13379
  fill: "white"
13411
13380
  }
13412
13381
  ),
13413
- /* @__PURE__ */ jsx51(
13382
+ /* @__PURE__ */ jsx52(
13414
13383
  "path",
13415
13384
  {
13416
13385
  d: "M112.328 31.8616C112.788 32.1606 113.441 32.1362 114.165 31.718M114.165 31.718L117.318 29.8977M114.165 31.718C112.772 32.5222 111.643 31.8702 111.643 30.2617M117.318 29.8977C118.321 29.3186 119.233 29.2429 119.91 29.5874L117.387 28.1312C116.71 27.7867 115.799 27.8624 114.796 28.4415L111.643 30.2617M117.318 29.8977C119.407 28.6913 121.101 29.6693 121.101 32.082C121.101 32.4841 120.819 32.9731 120.471 33.1741L96.5097 47.0081C96.1614 47.2091 95.8791 47.0462 95.8791 46.644M111.643 30.2617C111.643 28.2512 110.231 27.4362 108.49 28.4415M95.8791 46.644C95.8791 46.8532 95.9554 46.9976 96.0777 47.0598L93.5555 45.6036C93.4332 45.5414 93.3569 45.397 93.3569 45.1878C93.3569 42.7751 95.0507 39.8413 97.1402 38.6349L100.293 36.8147C101.686 36.0104 102.815 34.0545 102.815 32.4461C102.815 30.4355 104.227 27.9906 105.968 26.9853C106.804 26.5027 107.563 26.4396 108.128 26.7267L110.65 28.183C110.086 27.8958 109.326 27.959 108.49 28.4415M95.8791 46.644C95.8791 44.2313 97.573 41.2975 99.6624 40.0911L102.815 38.2709C104.208 37.4666 105.337 35.5107 105.337 33.9023C105.337 31.8917 106.749 29.4468 108.49 28.4415M109.751 31.3539C109.751 32.1581 109.186 33.1361 108.49 33.5382C107.794 33.9403 107.229 33.6143 107.229 32.8101C107.229 32.0059 107.794 31.0279 108.49 30.6258C109.186 30.2237 109.751 30.5497 109.751 31.3539Z",
@@ -13421,7 +13390,7 @@ var IcEmptyTable = () => {
13421
13390
  }
13422
13391
  )
13423
13392
  ] }),
13424
- /* @__PURE__ */ jsx51("defs", { children: /* @__PURE__ */ jsx51("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx51(
13393
+ /* @__PURE__ */ jsx52("defs", { children: /* @__PURE__ */ jsx52("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx52(
13425
13394
  "rect",
13426
13395
  {
13427
13396
  width: "215",
@@ -13436,14 +13405,14 @@ var IcEmptyTable = () => {
13436
13405
  };
13437
13406
 
13438
13407
  // src/widgets/advanced/table/empty-table.tsx
13439
- import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
13408
+ import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
13440
13409
  var EmptyTable = () => {
13441
13410
  const { t: t3 } = useI18n();
13442
13411
  return /* @__PURE__ */ jsxs31("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13443
- /* @__PURE__ */ jsx52(IcEmptyTable, {}),
13412
+ /* @__PURE__ */ jsx53(IcEmptyTable, {}),
13444
13413
  /* @__PURE__ */ jsxs31("div", { children: [
13445
- /* @__PURE__ */ jsx52("p", {}),
13446
- /* @__PURE__ */ jsx52("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13414
+ /* @__PURE__ */ jsx53("p", {}),
13415
+ /* @__PURE__ */ jsx53("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13447
13416
  ] })
13448
13417
  ] });
13449
13418
  };
@@ -15262,10 +15231,10 @@ function s3(o3, s4, t3) {
15262
15231
 
15263
15232
  // src/widgets/advanced/login/shared/button.tsx
15264
15233
  import * as React2 from "react";
15265
- import { jsx as jsx53 } from "react/jsx-runtime";
15234
+ import { jsx as jsx54 } from "react/jsx-runtime";
15266
15235
  var Button = React2.forwardRef(
15267
15236
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
15268
- return /* @__PURE__ */ jsx53(
15237
+ return /* @__PURE__ */ jsx54(
15269
15238
  "button",
15270
15239
  {
15271
15240
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -15275,7 +15244,7 @@ var Button = React2.forwardRef(
15275
15244
  ref,
15276
15245
  type,
15277
15246
  ...props,
15278
- children: isLoading ? /* @__PURE__ */ jsx53(LoadingIcon, { width: 20, height: 20 }) : children
15247
+ children: isLoading ? /* @__PURE__ */ jsx54(LoadingIcon, { width: 20, height: 20 }) : children
15279
15248
  }
15280
15249
  );
15281
15250
  }
@@ -15284,7 +15253,7 @@ Button.displayName = "Button";
15284
15253
 
15285
15254
  // src/widgets/advanced/login/shared/text-input.tsx
15286
15255
  import { useState as useState5 } from "react";
15287
- import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
15256
+ import { jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
15288
15257
  function TextInput(props) {
15289
15258
  const {
15290
15259
  className,
@@ -15301,14 +15270,14 @@ function TextInput(props) {
15301
15270
  return /* @__PURE__ */ jsxs32("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15302
15271
  label && /* @__PURE__ */ jsxs32("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15303
15272
  label,
15304
- required ? /* @__PURE__ */ jsx54("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15273
+ required ? /* @__PURE__ */ jsx55("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15305
15274
  ] }),
15306
15275
  /* @__PURE__ */ jsxs32(
15307
15276
  "div",
15308
15277
  {
15309
15278
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
15310
15279
  children: [
15311
- /* @__PURE__ */ jsx54(
15280
+ /* @__PURE__ */ jsx55(
15312
15281
  "input",
15313
15282
  {
15314
15283
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -15317,18 +15286,18 @@ function TextInput(props) {
15317
15286
  ...register(name2)
15318
15287
  }
15319
15288
  ),
15320
- type === "password" && /* @__PURE__ */ jsx54(
15289
+ type === "password" && /* @__PURE__ */ jsx55(
15321
15290
  "span",
15322
15291
  {
15323
15292
  onClick: () => setShowPassword(!showPassword),
15324
15293
  className: "focus:outline-none",
15325
- children: showPassword ? /* @__PURE__ */ jsx54(EyeClosedIcon, {}) : /* @__PURE__ */ jsx54(EyeIcon, {})
15294
+ children: showPassword ? /* @__PURE__ */ jsx55(EyeClosedIcon, {}) : /* @__PURE__ */ jsx55(EyeIcon, {})
15326
15295
  }
15327
15296
  )
15328
15297
  ]
15329
15298
  }
15330
15299
  ),
15331
- errors?.[name2]?.message && /* @__PURE__ */ jsx54(
15300
+ errors?.[name2]?.message && /* @__PURE__ */ jsx55(
15332
15301
  "p",
15333
15302
  {
15334
15303
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -15340,7 +15309,7 @@ function TextInput(props) {
15340
15309
 
15341
15310
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
15342
15311
  import { useEffect as useEffect7 } from "react";
15343
- import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
15312
+ import { jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15344
15313
  var STAY_LOGIN_IN = "stayLoginIn";
15345
15314
  function FormOptions({
15346
15315
  forgotPasswordUrl,
@@ -15368,7 +15337,7 @@ function FormOptions({
15368
15337
  }, []);
15369
15338
  return /* @__PURE__ */ jsxs33("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15370
15339
  /* @__PURE__ */ jsxs33("label", { className: "flex gap-3", children: [
15371
- /* @__PURE__ */ jsx55(
15340
+ /* @__PURE__ */ jsx56(
15372
15341
  "input",
15373
15342
  {
15374
15343
  checked: stayLoginIn,
@@ -15377,14 +15346,14 @@ function FormOptions({
15377
15346
  onChange: handleCheckboxChange
15378
15347
  }
15379
15348
  ),
15380
- /* @__PURE__ */ jsx55("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15349
+ /* @__PURE__ */ jsx56("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15381
15350
  ] }),
15382
- !hideForgotPassword && /* @__PURE__ */ jsx55("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15351
+ !hideForgotPassword && /* @__PURE__ */ jsx56("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15383
15352
  ] });
15384
15353
  }
15385
15354
 
15386
15355
  // src/widgets/advanced/login/provider/credential/index.tsx
15387
- import { Fragment as Fragment5, jsx as jsx56, jsxs as jsxs34 } from "react/jsx-runtime";
15356
+ import { Fragment as Fragment5, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15388
15357
  var CredentialLogin = (props) => {
15389
15358
  const {
15390
15359
  shouldRenderDivider,
@@ -15413,7 +15382,7 @@ var CredentialLogin = (props) => {
15413
15382
  className: `flex w-full h-fit flex-col gap-10`,
15414
15383
  children: [
15415
15384
  /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
15416
- /* @__PURE__ */ jsx56(
15385
+ /* @__PURE__ */ jsx57(
15417
15386
  TextInput,
15418
15387
  {
15419
15388
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15426,7 +15395,7 @@ var CredentialLogin = (props) => {
15426
15395
  errors
15427
15396
  }
15428
15397
  ),
15429
- /* @__PURE__ */ jsx56(
15398
+ /* @__PURE__ */ jsx57(
15430
15399
  TextInput,
15431
15400
  {
15432
15401
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15439,7 +15408,7 @@ var CredentialLogin = (props) => {
15439
15408
  errors
15440
15409
  }
15441
15410
  ),
15442
- /* @__PURE__ */ jsx56(
15411
+ /* @__PURE__ */ jsx57(
15443
15412
  FormOptions,
15444
15413
  {
15445
15414
  forgotPasswordUrl,
@@ -15449,7 +15418,7 @@ var CredentialLogin = (props) => {
15449
15418
  }
15450
15419
  )
15451
15420
  ] }),
15452
- /* @__PURE__ */ jsx56("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx56(
15421
+ /* @__PURE__ */ jsx57("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx57(
15453
15422
  Button,
15454
15423
  {
15455
15424
  type: "submit",
@@ -15462,14 +15431,14 @@ var CredentialLogin = (props) => {
15462
15431
  }
15463
15432
  ),
15464
15433
  shouldRenderDivider && /* @__PURE__ */ jsxs34("div", { className: "flex justify-center relative", children: [
15465
- /* @__PURE__ */ jsx56("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15466
- /* @__PURE__ */ jsx56("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15434
+ /* @__PURE__ */ jsx57("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15435
+ /* @__PURE__ */ jsx57("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15467
15436
  ] })
15468
15437
  ] });
15469
15438
  };
15470
15439
 
15471
15440
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15472
- import { jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
15441
+ import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15473
15442
  function GoogleButton(props) {
15474
15443
  const { onLoginGoogle, db } = props;
15475
15444
  return /* @__PURE__ */ jsxs35(
@@ -15478,39 +15447,39 @@ function GoogleButton(props) {
15478
15447
  className: "google-wrapper w-full active:scale-[0.97] cursor-pointer hover:bg-gray-100 scale-100 transition-all gap-2 p-4 border border-[#e5e7eb] rounded-[10px] flex items-center justify-center bg-white",
15479
15448
  onClick: () => onLoginGoogle?.(db),
15480
15449
  children: [
15481
- /* @__PURE__ */ jsx57(GoogleIcon, { className: "google-icon" }),
15482
- /* @__PURE__ */ jsx57("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15450
+ /* @__PURE__ */ jsx58(GoogleIcon, { className: "google-icon" }),
15451
+ /* @__PURE__ */ jsx58("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15483
15452
  ]
15484
15453
  }
15485
15454
  );
15486
15455
  }
15487
15456
 
15488
15457
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15489
- import { Fragment as Fragment6, jsx as jsx58 } from "react/jsx-runtime";
15458
+ import { Fragment as Fragment6, jsx as jsx59 } from "react/jsx-runtime";
15490
15459
  function SocialRedirect(props) {
15491
15460
  const { db, onLoginSocial } = props;
15492
15461
  onLoginSocial && onLoginSocial(String(db));
15493
- return /* @__PURE__ */ jsx58(Fragment6, {});
15462
+ return /* @__PURE__ */ jsx59(Fragment6, {});
15494
15463
  }
15495
15464
 
15496
15465
  // src/widgets/advanced/login/provider/google/index.tsx
15497
- import { Fragment as Fragment7, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15466
+ import { Fragment as Fragment7, jsx as jsx60, jsxs as jsxs36 } from "react/jsx-runtime";
15498
15467
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15499
15468
  return /* @__PURE__ */ jsxs36(Fragment7, { children: [
15500
- /* @__PURE__ */ jsx59(GoogleButton, { db, onLoginGoogle }),
15501
- /* @__PURE__ */ jsx59(SocialRedirect, { db, onLoginSocial })
15469
+ /* @__PURE__ */ jsx60(GoogleButton, { db, onLoginGoogle }),
15470
+ /* @__PURE__ */ jsx60(SocialRedirect, { db, onLoginSocial })
15502
15471
  ] });
15503
15472
  };
15504
15473
 
15505
15474
  // src/widgets/advanced/login/index.tsx
15506
- import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15475
+ import { jsx as jsx61, jsxs as jsxs37 } from "react/jsx-runtime";
15507
15476
  var LoginProviderMapping = {
15508
15477
  google: GoogleLogin
15509
15478
  };
15510
15479
  var Login = (props) => {
15511
15480
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15512
15481
  return /* @__PURE__ */ jsxs37("div", { className: "w-full space-y-8", children: [
15513
- /* @__PURE__ */ jsx60(
15482
+ /* @__PURE__ */ jsx61(
15514
15483
  CredentialLogin,
15515
15484
  {
15516
15485
  ...props,
@@ -15520,7 +15489,7 @@ var Login = (props) => {
15520
15489
  ),
15521
15490
  providers.map((provider, index4) => {
15522
15491
  const ProviderComp = LoginProviderMapping[provider];
15523
- return /* @__PURE__ */ jsx60(
15492
+ return /* @__PURE__ */ jsx61(
15524
15493
  ProviderComp,
15525
15494
  {
15526
15495
  db,
@@ -15534,7 +15503,7 @@ var Login = (props) => {
15534
15503
  };
15535
15504
 
15536
15505
  // src/widgets/advanced/search/popup-filter/index.tsx
15537
- import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15506
+ import { jsx as jsx62, jsxs as jsxs38 } from "react/jsx-runtime";
15538
15507
  var PopupFilter = ({
15539
15508
  handleAddTagSearch,
15540
15509
  removeSearchItems,
@@ -15545,7 +15514,7 @@ var PopupFilter = ({
15545
15514
  fields
15546
15515
  }) => {
15547
15516
  const { t: t3 } = useI18n();
15548
- return /* @__PURE__ */ jsx61(
15517
+ return /* @__PURE__ */ jsx62(
15549
15518
  "div",
15550
15519
  {
15551
15520
  style: {
@@ -15562,15 +15531,15 @@ var PopupFilter = ({
15562
15531
  children: [
15563
15532
  filterBy?.length > 0 && /* @__PURE__ */ jsxs38("div", { className: "filter-by w-full px-3", children: [
15564
15533
  /* @__PURE__ */ jsxs38("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15565
- /* @__PURE__ */ jsx61(FilterIcon, { className: "filter-by-icon text-primary" }),
15566
- /* @__PURE__ */ jsx61("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15534
+ /* @__PURE__ */ jsx62(FilterIcon, { className: "filter-by-icon text-primary" }),
15535
+ /* @__PURE__ */ jsx62("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15567
15536
  ] }),
15568
15537
  filterBy?.reduce((acc, item, index4, array) => {
15569
15538
  const prevItem = array[index4 - 1];
15570
15539
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15571
15540
  const isExist = item?.active;
15572
15541
  if (isDifferentGroup) {
15573
- acc.push(/* @__PURE__ */ jsx61("hr", { className: "my-2" }, "separator-" + index4));
15542
+ acc.push(/* @__PURE__ */ jsx62("hr", { className: "my-2" }, "separator-" + index4));
15574
15543
  }
15575
15544
  acc.push(
15576
15545
  /* @__PURE__ */ jsxs38(
@@ -15598,8 +15567,8 @@ var PopupFilter = ({
15598
15567
  });
15599
15568
  },
15600
15569
  children: [
15601
- isExist && /* @__PURE__ */ jsx61(CheckIcon, {}),
15602
- /* @__PURE__ */ jsx61("span", { className: "text-sm", children: item?.string ?? item?.help })
15570
+ isExist && /* @__PURE__ */ jsx62(CheckIcon, {}),
15571
+ /* @__PURE__ */ jsx62("span", { className: "text-sm", children: item?.string ?? item?.help })
15603
15572
  ]
15604
15573
  },
15605
15574
  "filter-" + index4
@@ -15608,11 +15577,11 @@ var PopupFilter = ({
15608
15577
  return acc;
15609
15578
  }, [])
15610
15579
  ] }),
15611
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx61("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15580
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx62("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15612
15581
  groupBy?.length > 0 && /* @__PURE__ */ jsxs38("div", { className: "group-by w-full px-3", children: [
15613
15582
  /* @__PURE__ */ jsxs38("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15614
- /* @__PURE__ */ jsx61(GroupByIcon, { className: "group-by-icon text-primary" }),
15615
- /* @__PURE__ */ jsx61("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15583
+ /* @__PURE__ */ jsx62(GroupByIcon, { className: "group-by-icon text-primary" }),
15584
+ /* @__PURE__ */ jsx62("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15616
15585
  ] }),
15617
15586
  groupBy?.map((item, index4) => {
15618
15587
  const isExist = item?.active;
@@ -15641,8 +15610,8 @@ var PopupFilter = ({
15641
15610
  },
15642
15611
  className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
15643
15612
  children: [
15644
- isExist && /* @__PURE__ */ jsx61(CheckIcon, {}),
15645
- /* @__PURE__ */ jsx61("span", { className: "text-sm", children: item?.string })
15613
+ isExist && /* @__PURE__ */ jsx62(CheckIcon, {}),
15614
+ /* @__PURE__ */ jsx62("span", { className: "text-sm", children: item?.string })
15646
15615
  ]
15647
15616
  },
15648
15617
  "groupby-" + index4 + 1
@@ -15661,7 +15630,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15661
15630
 
15662
15631
  // src/widgets/advanced/search/tag-search/index.tsx
15663
15632
  import { Fragment as Fragment8 } from "react";
15664
- import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
15633
+ import { Fragment as Fragment9, jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
15665
15634
  var TagSearch = ({
15666
15635
  removeSearchItems,
15667
15636
  selectedTags,
@@ -15677,10 +15646,10 @@ var TagSearch = ({
15677
15646
  {
15678
15647
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15679
15648
  children: [
15680
- /* @__PURE__ */ jsx62("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ jsx62(FilterIcon, {}) }),
15681
- /* @__PURE__ */ jsx62("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15649
+ /* @__PURE__ */ jsx63("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ jsx63(FilterIcon, {}) }),
15650
+ /* @__PURE__ */ jsx63("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15682
15651
  return /* @__PURE__ */ jsxs39(Fragment8, { children: [
15683
- /* @__PURE__ */ jsx62("span", { children: value }),
15652
+ /* @__PURE__ */ jsx63("span", { children: value }),
15684
15653
  idx < tag.values.length - 1 && /* @__PURE__ */ jsxs39("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15685
15654
  " ",
15686
15655
  instance.t("or"),
@@ -15688,7 +15657,7 @@ var TagSearch = ({
15688
15657
  ] })
15689
15658
  ] }, idx);
15690
15659
  }) }),
15691
- /* @__PURE__ */ jsx62(
15660
+ /* @__PURE__ */ jsx63(
15692
15661
  "button",
15693
15662
  {
15694
15663
  className: "px-2 text-sm font-bold",
@@ -15705,7 +15674,7 @@ var TagSearch = ({
15705
15674
  );
15706
15675
  }
15707
15676
  },
15708
- children: /* @__PURE__ */ jsx62(CloseIcon, { className: "size-4 cursor-pointer" })
15677
+ children: /* @__PURE__ */ jsx63(CloseIcon, { className: "size-4 cursor-pointer" })
15709
15678
  }
15710
15679
  )
15711
15680
  ]
@@ -15713,26 +15682,26 @@ var TagSearch = ({
15713
15682
  "selected-tag-" + index4
15714
15683
  );
15715
15684
  } else if (tag?.type === "group_by") {
15716
- return /* @__PURE__ */ jsx62(
15685
+ return /* @__PURE__ */ jsx63(
15717
15686
  "div",
15718
15687
  {
15719
15688
  className: "flex min-h-full overflow-hidden",
15720
- children: /* @__PURE__ */ jsx62("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15689
+ children: /* @__PURE__ */ jsx63("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15721
15690
  (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs39(
15722
15691
  "div",
15723
15692
  {
15724
15693
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15725
15694
  children: [
15726
- /* @__PURE__ */ jsx62("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx62(GroupByIcon, {}) }),
15695
+ /* @__PURE__ */ jsx63("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx63(GroupByIcon, {}) }),
15727
15696
  value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs39(Fragment9, { children: [
15728
- /* @__PURE__ */ jsx62("span", { children: string }),
15697
+ /* @__PURE__ */ jsx63("span", { children: string }),
15729
15698
  idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs39("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15730
15699
  " ",
15731
15700
  "> ",
15732
15701
  " "
15733
15702
  ] })
15734
15703
  ] })),
15735
- /* @__PURE__ */ jsx62(
15704
+ /* @__PURE__ */ jsx63(
15736
15705
  "button",
15737
15706
  {
15738
15707
  className: "pr-2 text-sm font-bold",
@@ -15747,7 +15716,7 @@ var TagSearch = ({
15747
15716
  );
15748
15717
  }
15749
15718
  },
15750
- children: /* @__PURE__ */ jsx62(CloseIcon, { className: "size-4 cursor-pointer" })
15719
+ children: /* @__PURE__ */ jsx63(CloseIcon, { className: "size-4 cursor-pointer" })
15751
15720
  }
15752
15721
  )
15753
15722
  ]
@@ -15764,7 +15733,7 @@ var TagSearch = ({
15764
15733
  };
15765
15734
 
15766
15735
  // src/widgets/advanced/search/search-list/index.tsx
15767
- import { jsx as jsx63, jsxs as jsxs40 } from "react/jsx-runtime";
15736
+ import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15768
15737
  var SearchList = ({
15769
15738
  handleAddTagSearch,
15770
15739
  handleMouseEnter,
@@ -15774,7 +15743,7 @@ var SearchList = ({
15774
15743
  hoveredIndexSearchList
15775
15744
  }) => {
15776
15745
  const { t: t3 } = useI18n();
15777
- return /* @__PURE__ */ jsx63(
15746
+ return /* @__PURE__ */ jsx64(
15778
15747
  "div",
15779
15748
  {
15780
15749
  style: {
@@ -15808,12 +15777,12 @@ var SearchList = ({
15808
15777
  children: [
15809
15778
  t3("search"),
15810
15779
  " ",
15811
- /* @__PURE__ */ jsx63("span", { className: "font-bold", children: searchItem?.title }),
15780
+ /* @__PURE__ */ jsx64("span", { className: "font-bold", children: searchItem?.title }),
15812
15781
  " ",
15813
15782
  t3("for"),
15814
15783
  ":",
15815
15784
  " ",
15816
- /* @__PURE__ */ jsx63(
15785
+ /* @__PURE__ */ jsx64(
15817
15786
  "span",
15818
15787
  {
15819
15788
  style: {
@@ -15833,7 +15802,7 @@ var SearchList = ({
15833
15802
  };
15834
15803
 
15835
15804
  // src/widgets/advanced/search/search-item/index.tsx
15836
- import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs41 } from "react/jsx-runtime";
15805
+ import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15837
15806
  var Search = ({
15838
15807
  removeSearchItems,
15839
15808
  selectedTags,
@@ -15956,9 +15925,9 @@ var Search = ({
15956
15925
  ref: popupFilterRef,
15957
15926
  className: `search gap-[8px] p-2 items-center flex !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
15958
15927
  children: [
15959
- /* @__PURE__ */ jsx64("div", { className: "size-5", children: /* @__PURE__ */ jsx64(SearchIcon, {}) }),
15928
+ /* @__PURE__ */ jsx65("div", { className: "size-5", children: /* @__PURE__ */ jsx65(SearchIcon, {}) }),
15960
15929
  /* @__PURE__ */ jsxs41("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15961
- /* @__PURE__ */ jsx64(
15930
+ /* @__PURE__ */ jsx65(
15962
15931
  TagSearch,
15963
15932
  {
15964
15933
  removeSearchItems,
@@ -15968,7 +15937,7 @@ var Search = ({
15968
15937
  setGroupBy
15969
15938
  }
15970
15939
  ),
15971
- /* @__PURE__ */ jsx64(
15940
+ /* @__PURE__ */ jsx65(
15972
15941
  "input",
15973
15942
  {
15974
15943
  value: searchString,
@@ -15981,7 +15950,7 @@ var Search = ({
15981
15950
  onKeyUp: (e3) => e3.preventDefault()
15982
15951
  }
15983
15952
  ),
15984
- /* @__PURE__ */ jsx64(
15953
+ /* @__PURE__ */ jsx65(
15985
15954
  SearchList,
15986
15955
  {
15987
15956
  handleAddTagSearch,
@@ -15990,7 +15959,7 @@ var Search = ({
15990
15959
  }
15991
15960
  )
15992
15961
  ] }),
15993
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs41(Fragment10, { children: [
15962
+ showFiltersGroups && /* @__PURE__ */ jsxs41(Fragment10, { children: [
15994
15963
  /* @__PURE__ */ jsxs41(
15995
15964
  "div",
15996
15965
  {
@@ -16000,8 +15969,8 @@ var Search = ({
16000
15969
  setShowPopupFilter((prev2) => !prev2);
16001
15970
  },
16002
15971
  children: [
16003
- /* @__PURE__ */ jsx64("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16004
- /* @__PURE__ */ jsx64(
15972
+ /* @__PURE__ */ jsx65("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15973
+ /* @__PURE__ */ jsx65(
16005
15974
  ChevronBottomIcon,
16006
15975
  {
16007
15976
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -16010,7 +15979,7 @@ var Search = ({
16010
15979
  ]
16011
15980
  }
16012
15981
  ),
16013
- showPopupFilter && /* @__PURE__ */ jsx64(
15982
+ showPopupFilter && /* @__PURE__ */ jsx65(
16014
15983
  PopupFilter,
16015
15984
  {
16016
15985
  handleAddTagSearch,
@@ -16029,30 +15998,30 @@ var Search = ({
16029
15998
  };
16030
15999
 
16031
16000
  // src/widgets/basic/active-badge-field/active-badge.tsx
16032
- import { Fragment as Fragment11, jsx as jsx65 } from "react/jsx-runtime";
16001
+ import { Fragment as Fragment11, jsx as jsx66 } from "react/jsx-runtime";
16033
16002
  var ActiveBadgeField = (props) => {
16034
16003
  const { t: t3 } = useI18n();
16035
16004
  const {
16036
16005
  type,
16037
16006
  className
16038
16007
  } = props;
16039
- if (type === void 0) return /* @__PURE__ */ jsx65(Fragment11, {});
16008
+ if (type === void 0) return /* @__PURE__ */ jsx66(Fragment11, {});
16040
16009
  const typeStyle = type ? "text-green-500" : "text-red-500";
16041
16010
  const text = type ? t3("active") : t3("in_active");
16042
- return /* @__PURE__ */ jsx65("div", { className: `${typeStyle} ${className}`, children: text });
16011
+ return /* @__PURE__ */ jsx66("div", { className: `${typeStyle} ${className}`, children: text });
16043
16012
  };
16044
16013
 
16045
16014
  // src/widgets/common/modal-layer.tsx
16046
16015
  import { Fragment as Fragment12 } from "react";
16047
16016
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
16048
- import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
16017
+ import { jsx as jsx67, jsxs as jsxs42 } from "react/jsx-runtime";
16049
16018
  var ModalLayer = ({
16050
16019
  isOpen,
16051
16020
  onClose,
16052
16021
  title,
16053
16022
  children
16054
16023
  }) => {
16055
- return /* @__PURE__ */ jsx66(
16024
+ return /* @__PURE__ */ jsx67(
16056
16025
  Transition,
16057
16026
  {
16058
16027
  show: isOpen,
@@ -16063,22 +16032,22 @@ var ModalLayer = ({
16063
16032
  leaveFrom: "transform scale-100 opacity-100",
16064
16033
  leaveTo: "transform scale-95 opacity-0",
16065
16034
  as: Fragment12,
16066
- children: /* @__PURE__ */ jsx66(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx66(DialogPanel, { children: /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16067
- /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16068
- /* @__PURE__ */ jsx66("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs42("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
16035
+ children: /* @__PURE__ */ jsx67(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx67(DialogPanel, { children: /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16036
+ /* @__PURE__ */ jsx67("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16037
+ /* @__PURE__ */ jsx67("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs42("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
16069
16038
  /* @__PURE__ */ jsxs42(
16070
16039
  "div",
16071
16040
  {
16072
16041
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
16073
16042
  children: [
16074
- title && /* @__PURE__ */ jsx66("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16075
- /* @__PURE__ */ jsx66(
16043
+ title && /* @__PURE__ */ jsx67("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16044
+ /* @__PURE__ */ jsx67(
16076
16045
  "button",
16077
16046
  {
16078
16047
  onClick: onClose,
16079
16048
  "aria-label": "Close",
16080
16049
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
16081
- children: /* @__PURE__ */ jsx66(CloseIcon, {})
16050
+ children: /* @__PURE__ */ jsx67(CloseIcon, {})
16082
16051
  }
16083
16052
  )
16084
16053
  ]
@@ -16092,7 +16061,7 @@ var ModalLayer = ({
16092
16061
  };
16093
16062
 
16094
16063
  // src/widgets/common/modal-confirm.tsx
16095
- import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
16064
+ import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
16096
16065
  var ModalConfirm = ({
16097
16066
  name: name2,
16098
16067
  isShowModal,
@@ -16114,8 +16083,8 @@ var ModalConfirm = ({
16114
16083
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16115
16084
  disabled: isLoading,
16116
16085
  children: [
16117
- isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16118
- /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16086
+ isLoading && /* @__PURE__ */ jsx68(LoadingIcon, {}),
16087
+ /* @__PURE__ */ jsx68("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16119
16088
  ]
16120
16089
  }
16121
16090
  );
@@ -16128,8 +16097,8 @@ var ModalConfirm = ({
16128
16097
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16129
16098
  disabled: isLoading,
16130
16099
  children: [
16131
- isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16132
- /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16100
+ isLoading && /* @__PURE__ */ jsx68(LoadingIcon, {}),
16101
+ /* @__PURE__ */ jsx68("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16133
16102
  ]
16134
16103
  }
16135
16104
  );
@@ -16142,8 +16111,8 @@ var ModalConfirm = ({
16142
16111
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16143
16112
  disabled: isLoading,
16144
16113
  children: [
16145
- isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16146
- /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16114
+ isLoading && /* @__PURE__ */ jsx68(LoadingIcon, {}),
16115
+ /* @__PURE__ */ jsx68("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16147
16116
  ]
16148
16117
  }
16149
16118
  );
@@ -16156,8 +16125,8 @@ var ModalConfirm = ({
16156
16125
  className: "button-primary flex-1 flex items-center justify-center gap-2",
16157
16126
  disabled: isLoading,
16158
16127
  children: [
16159
- isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16160
- /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16128
+ isLoading && /* @__PURE__ */ jsx68(LoadingIcon, {}),
16129
+ /* @__PURE__ */ jsx68("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16161
16130
  ]
16162
16131
  }
16163
16132
  );
@@ -16165,13 +16134,13 @@ var ModalConfirm = ({
16165
16134
  break;
16166
16135
  }
16167
16136
  };
16168
- return /* @__PURE__ */ jsx67(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs43("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16137
+ return /* @__PURE__ */ jsx68(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs43("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16169
16138
  /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-[4px] items-center", children: [
16170
- /* @__PURE__ */ jsx67("div", { className: "text-[18px] font-bold", children: title }),
16171
- /* @__PURE__ */ jsx67("p", { className: "text-[16px]", children: content })
16139
+ /* @__PURE__ */ jsx68("div", { className: "text-[18px] font-bold", children: title }),
16140
+ /* @__PURE__ */ jsx68("p", { className: "text-[16px]", children: content })
16172
16141
  ] }),
16173
16142
  /* @__PURE__ */ jsxs43("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16174
- /* @__PURE__ */ jsx67(
16143
+ /* @__PURE__ */ jsx68(
16175
16144
  "button",
16176
16145
  {
16177
16146
  type: "button",
@@ -16188,7 +16157,7 @@ var ModalConfirm = ({
16188
16157
  // src/widgets/common/modal-detail.tsx
16189
16158
  import { useState as useState7 } from "react";
16190
16159
  import { createPortal as createPortal3 } from "react-dom";
16191
- import { Fragment as Fragment13, jsx as jsx68, jsxs as jsxs44 } from "react/jsx-runtime";
16160
+ import { Fragment as Fragment13, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16192
16161
  var ModalDetail = ({
16193
16162
  idToolTip,
16194
16163
  title,
@@ -16211,9 +16180,9 @@ var ModalDetail = ({
16211
16180
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
16212
16181
  };
16213
16182
  return createPortal3(
16214
- /* @__PURE__ */ jsx68(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs44("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16215
- /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16216
- /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs44("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
16183
+ /* @__PURE__ */ jsx69(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs44("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16184
+ /* @__PURE__ */ jsx69("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16185
+ /* @__PURE__ */ jsx69("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs44("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
16217
16186
  /* @__PURE__ */ jsxs44("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16218
16187
  /* @__PURE__ */ jsxs44(
16219
16188
  "div",
@@ -16222,7 +16191,7 @@ var ModalDetail = ({
16222
16191
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
16223
16192
  children: [
16224
16193
  t3("detail_button"),
16225
- /* @__PURE__ */ jsx68(
16194
+ /* @__PURE__ */ jsx69(
16226
16195
  "button",
16227
16196
  {
16228
16197
  onClick: handleNavigateDetail,
@@ -16233,9 +16202,9 @@ var ModalDetail = ({
16233
16202
  ]
16234
16203
  }
16235
16204
  ),
16236
- /* @__PURE__ */ jsx68("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx68(CloseIcon, { className: "h-5 w-5" }) })
16205
+ /* @__PURE__ */ jsx69("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx69(CloseIcon, { className: "h-5 w-5" }) })
16237
16206
  ] }),
16238
- /* @__PURE__ */ jsx68("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16207
+ /* @__PURE__ */ jsx69("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16239
16208
  id: idForm,
16240
16209
  aid,
16241
16210
  model,
@@ -16250,7 +16219,7 @@ var ModalDetail = ({
16250
16219
 
16251
16220
  // src/widgets/common/loading-normal.tsx
16252
16221
  import { useEffect as useEffect9, useState as useState8 } from "react";
16253
- import { jsx as jsx69, jsxs as jsxs45 } from "react/jsx-runtime";
16222
+ import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16254
16223
  var LayerLoading = () => {
16255
16224
  const { t: t3 } = useI18n();
16256
16225
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -16260,21 +16229,21 @@ var LayerLoading = () => {
16260
16229
  }, 200);
16261
16230
  return () => clearInterval(interval);
16262
16231
  }, []);
16263
- return /* @__PURE__ */ jsx69("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx69("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs45("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16264
- /* @__PURE__ */ jsx69("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx69(
16232
+ return /* @__PURE__ */ jsx70("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx70("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs45("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16233
+ /* @__PURE__ */ jsx70("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx70(
16265
16234
  "div",
16266
16235
  {
16267
16236
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
16268
16237
  },
16269
16238
  index4
16270
16239
  )) }),
16271
- /* @__PURE__ */ jsx69("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16240
+ /* @__PURE__ */ jsx70("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16272
16241
  ] }) }) });
16273
16242
  };
16274
16243
 
16275
16244
  // src/widgets/common/loading-small.tsx
16276
16245
  import { useEffect as useEffect10, useState as useState9 } from "react";
16277
- import { jsx as jsx70 } from "react/jsx-runtime";
16246
+ import { jsx as jsx71 } from "react/jsx-runtime";
16278
16247
  var LoadingSmall = () => {
16279
16248
  const [activeIndex, setActiveIndex] = useState9(0);
16280
16249
  useEffect10(() => {
@@ -16283,7 +16252,7 @@ var LoadingSmall = () => {
16283
16252
  }, 200);
16284
16253
  return () => clearInterval(interval);
16285
16254
  }, []);
16286
- return /* @__PURE__ */ jsx70("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx70("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx70("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx70("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx70(
16255
+ return /* @__PURE__ */ jsx71("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx71("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx71("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx71("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx71(
16287
16256
  "div",
16288
16257
  {
16289
16258
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -16478,7 +16447,7 @@ var po = $2(K("zoom"));
16478
16447
  var uo = $2(K("flip"));
16479
16448
 
16480
16449
  // src/widgets/common/select-files.tsx
16481
- import { Fragment as Fragment14, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16450
+ import { Fragment as Fragment14, jsx as jsx72, jsxs as jsxs46 } from "react/jsx-runtime";
16482
16451
  var ButtonSelectFiles = ({
16483
16452
  fileInputRef,
16484
16453
  selectedFiles,
@@ -16584,7 +16553,7 @@ var ButtonSelectFiles = ({
16584
16553
  }
16585
16554
  };
16586
16555
  return /* @__PURE__ */ jsxs46(Fragment14, { children: [
16587
- isPending ? /* @__PURE__ */ jsx71(Fragment14, { children: /* @__PURE__ */ jsx71("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs46(
16556
+ isPending ? /* @__PURE__ */ jsx72(Fragment14, { children: /* @__PURE__ */ jsx72("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs46(
16588
16557
  "button",
16589
16558
  {
16590
16559
  type: "button",
@@ -16592,12 +16561,12 @@ var ButtonSelectFiles = ({
16592
16561
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16593
16562
  onClick: () => fileInputRef.current.click(),
16594
16563
  children: [
16595
- /* @__PURE__ */ jsx71(AttachIcon, {}),
16596
- isText && /* @__PURE__ */ jsx71("span", { children: t3("upload_file_placeholder") })
16564
+ /* @__PURE__ */ jsx72(AttachIcon, {}),
16565
+ isText && /* @__PURE__ */ jsx72("span", { children: t3("upload_file_placeholder") })
16597
16566
  ]
16598
16567
  }
16599
16568
  ),
16600
- /* @__PURE__ */ jsx71(
16569
+ /* @__PURE__ */ jsx72(
16601
16570
  "input",
16602
16571
  {
16603
16572
  type: "file",
@@ -16613,7 +16582,7 @@ var ButtonSelectFiles = ({
16613
16582
 
16614
16583
  // src/widgets/common/video-player.tsx
16615
16584
  import { useRef as useRef6, useState as useState10 } from "react";
16616
- import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16585
+ import { jsx as jsx73, jsxs as jsxs47 } from "react/jsx-runtime";
16617
16586
  var VideoPlayer = ({ src }) => {
16618
16587
  const [isPlaying, setIsPlaying] = useState10(false);
16619
16588
  const videoRef = useRef6(null);
@@ -16641,7 +16610,7 @@ var VideoPlayer = ({ src }) => {
16641
16610
  }
16642
16611
  };
16643
16612
  return /* @__PURE__ */ jsxs47("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
16644
- /* @__PURE__ */ jsx72(
16613
+ /* @__PURE__ */ jsx73(
16645
16614
  "video",
16646
16615
  {
16647
16616
  ref: videoRef,
@@ -16653,13 +16622,13 @@ var VideoPlayer = ({ src }) => {
16653
16622
  children: "Your browser does not support the video tag."
16654
16623
  }
16655
16624
  ),
16656
- /* @__PURE__ */ jsx72("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16657
- /* @__PURE__ */ jsx72("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx72("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx72(PlayIcon, {}) }) })
16625
+ /* @__PURE__ */ jsx73("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16626
+ /* @__PURE__ */ jsx73("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx73("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx73(PlayIcon, {}) }) })
16658
16627
  ] });
16659
16628
  };
16660
16629
 
16661
16630
  // src/widgets/basic/avatar-field/avatar.tsx
16662
- import { Fragment as Fragment15, jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
16631
+ import { Fragment as Fragment15, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
16663
16632
  var AvatarField = (props) => {
16664
16633
  const {
16665
16634
  isForm = false,
@@ -16684,7 +16653,7 @@ var AvatarField = (props) => {
16684
16653
  fontSize: `${size4 / 2.5}px`
16685
16654
  };
16686
16655
  return /* @__PURE__ */ jsxs48(Fragment15, { children: [
16687
- isForm && allowShowDetail && /* @__PURE__ */ jsx73(
16656
+ isForm && allowShowDetail && /* @__PURE__ */ jsx74(
16688
16657
  ModalDetail,
16689
16658
  {
16690
16659
  idToolTip: `avatar-widget-id-${id}`,
@@ -16695,7 +16664,7 @@ var AvatarField = (props) => {
16695
16664
  place: "top-start"
16696
16665
  }
16697
16666
  ),
16698
- allowShowDetail && /* @__PURE__ */ jsx73(
16667
+ allowShowDetail && /* @__PURE__ */ jsx74(
16699
16668
  M,
16700
16669
  {
16701
16670
  id: `avatar-widget-id-${id}`,
@@ -16704,7 +16673,7 @@ var AvatarField = (props) => {
16704
16673
  className: "z-20"
16705
16674
  }
16706
16675
  ),
16707
- avatarSrc ? /* @__PURE__ */ jsx73(
16676
+ avatarSrc ? /* @__PURE__ */ jsx74(
16708
16677
  "img",
16709
16678
  {
16710
16679
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16712,7 +16681,7 @@ var AvatarField = (props) => {
16712
16681
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16713
16682
  alt: "Avatar"
16714
16683
  }
16715
- ) : /* @__PURE__ */ jsx73("div", { children: /* @__PURE__ */ jsx73(
16684
+ ) : /* @__PURE__ */ jsx74("div", { children: /* @__PURE__ */ jsx74(
16716
16685
  "div",
16717
16686
  {
16718
16687
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16726,7 +16695,7 @@ var AvatarField = (props) => {
16726
16695
 
16727
16696
  // src/widgets/basic/binary-field/binary.tsx
16728
16697
  import { useEffect as useEffect11, useState as useState11 } from "react";
16729
- import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
16698
+ import { Fragment as Fragment16, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
16730
16699
  var BinaryField = (props) => {
16731
16700
  const {
16732
16701
  name: name2,
@@ -16816,10 +16785,10 @@ var BinaryField = (props) => {
16816
16785
  handleFileChange(e3, onChange2);
16817
16786
  };
16818
16787
  const renderPreview = (file) => {
16819
- if (!file) return /* @__PURE__ */ jsx74(PlaceHolderIcon, {});
16788
+ if (!file) return /* @__PURE__ */ jsx75(PlaceHolderIcon, {});
16820
16789
  const { name: name3, type, url, size: size4 } = file;
16821
16790
  if (type?.startsWith("image/") || checkIsImageLink2(url))
16822
- return /* @__PURE__ */ jsx74(
16791
+ return /* @__PURE__ */ jsx75(
16823
16792
  "img",
16824
16793
  {
16825
16794
  src: url,
@@ -16832,7 +16801,7 @@ var BinaryField = (props) => {
16832
16801
  }
16833
16802
  );
16834
16803
  if (type?.startsWith("video/"))
16835
- return /* @__PURE__ */ jsx74(
16804
+ return /* @__PURE__ */ jsx75(
16836
16805
  "video",
16837
16806
  {
16838
16807
  src: url,
@@ -16845,18 +16814,18 @@ var BinaryField = (props) => {
16845
16814
  }
16846
16815
  );
16847
16816
  const getFileIcon = () => {
16848
- if (type === "application/pdf") return /* @__PURE__ */ jsx74(PdfIcon, {});
16817
+ if (type === "application/pdf") return /* @__PURE__ */ jsx75(PdfIcon, {});
16849
16818
  if (type?.includes("excel") || type?.includes("spreadsheet"))
16850
- return /* @__PURE__ */ jsx74(ExcelIcon, {});
16851
- if (type?.includes("zip")) return /* @__PURE__ */ jsx74(ZipIcon, {});
16852
- if (type === "application/json") return /* @__PURE__ */ jsx74(JSONFileIcon, {});
16853
- return /* @__PURE__ */ jsx74(DefaultFileIcon, {});
16819
+ return /* @__PURE__ */ jsx75(ExcelIcon, {});
16820
+ if (type?.includes("zip")) return /* @__PURE__ */ jsx75(ZipIcon, {});
16821
+ if (type === "application/json") return /* @__PURE__ */ jsx75(JSONFileIcon, {});
16822
+ return /* @__PURE__ */ jsx75(DefaultFileIcon, {});
16854
16823
  };
16855
16824
  const isShowSize = !isNaN(size4);
16856
16825
  return /* @__PURE__ */ jsxs49("div", { className: "flex items-center gap-2", children: [
16857
16826
  getFileIcon(),
16858
16827
  /* @__PURE__ */ jsxs49("div", { children: [
16859
- /* @__PURE__ */ jsx74(
16828
+ /* @__PURE__ */ jsx75(
16860
16829
  "p",
16861
16830
  {
16862
16831
  style: {
@@ -16866,11 +16835,11 @@ var BinaryField = (props) => {
16866
16835
  children: name3
16867
16836
  }
16868
16837
  ),
16869
- isShowSize && /* @__PURE__ */ jsx74("span", { className: "text-xs text-[#666] font-semibold", children: formatFileSize(size4) })
16838
+ isShowSize && /* @__PURE__ */ jsx75("span", { className: "text-xs text-[#666] font-semibold", children: formatFileSize(size4) })
16870
16839
  ] })
16871
16840
  ] });
16872
16841
  };
16873
- return /* @__PURE__ */ jsx74(
16842
+ return /* @__PURE__ */ jsx75(
16874
16843
  Controller,
16875
16844
  {
16876
16845
  name: name2 ?? "",
@@ -16881,12 +16850,12 @@ var BinaryField = (props) => {
16881
16850
  render: ({ field, fieldState: { error: error2 } }) => {
16882
16851
  const hasFile = !!fileInfo;
16883
16852
  return /* @__PURE__ */ jsxs49(Fragment16, { children: [
16884
- /* @__PURE__ */ jsx74(
16853
+ /* @__PURE__ */ jsx75(
16885
16854
  "div",
16886
16855
  {
16887
16856
  ref: binaryRef,
16888
16857
  className: `binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
16889
- children: hasFile ? /* @__PURE__ */ jsx74(
16858
+ children: hasFile ? /* @__PURE__ */ jsx75(
16890
16859
  "div",
16891
16860
  {
16892
16861
  className: `relative group ${onlyImage ? "shadow-md rounded-lg" : ""}`,
@@ -16912,7 +16881,7 @@ var BinaryField = (props) => {
16912
16881
  right: onlyImage ? "0" : "none"
16913
16882
  },
16914
16883
  children: [
16915
- /* @__PURE__ */ jsx74(
16884
+ /* @__PURE__ */ jsx75(
16916
16885
  "span",
16917
16886
  {
16918
16887
  className: "cursor-pointer",
@@ -16920,10 +16889,10 @@ var BinaryField = (props) => {
16920
16889
  fileInfo?.url || fileInfo?.data,
16921
16890
  fileInfo?.name || fileInfo?.display_name
16922
16891
  ),
16923
- children: /* @__PURE__ */ jsx74(DownloadIcon, {})
16892
+ children: /* @__PURE__ */ jsx75(DownloadIcon, {})
16924
16893
  }
16925
16894
  ),
16926
- !readonly && /* @__PURE__ */ jsx74(
16895
+ !readonly && /* @__PURE__ */ jsx75(
16927
16896
  "span",
16928
16897
  {
16929
16898
  className: "cursor-pointer",
@@ -16931,7 +16900,7 @@ var BinaryField = (props) => {
16931
16900
  setFileInfo(null);
16932
16901
  handleRemoveFile(field.onChange);
16933
16902
  },
16934
- children: /* @__PURE__ */ jsx74(DeleteIconDanger, {})
16903
+ children: /* @__PURE__ */ jsx75(DeleteIconDanger, {})
16935
16904
  }
16936
16905
  )
16937
16906
  ]
@@ -16947,7 +16916,7 @@ var BinaryField = (props) => {
16947
16916
  htmlFor: inputId,
16948
16917
  className: `relative p-2 flex cursor-pointer items-center justify-center rounded-lg transition-colors duration-300 ${readonly && "pointer-events-none"} ${onlyImage ? "h-32 w-32 border border-gray-300 hover:border-primary bg-white" : "w-fit h-fit "}`,
16949
16918
  children: [
16950
- /* @__PURE__ */ jsx74(
16919
+ /* @__PURE__ */ jsx75(
16951
16920
  "input",
16952
16921
  {
16953
16922
  id: inputId,
@@ -16960,7 +16929,7 @@ var BinaryField = (props) => {
16960
16929
  accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
16961
16930
  }
16962
16931
  ),
16963
- onlyImage && /* @__PURE__ */ jsx74(
16932
+ onlyImage && /* @__PURE__ */ jsx75(
16964
16933
  "img",
16965
16934
  {
16966
16935
  src: placeHolderImage,
@@ -16968,7 +16937,7 @@ var BinaryField = (props) => {
16968
16937
  className: "z-0 relative"
16969
16938
  }
16970
16939
  ),
16971
- /* @__PURE__ */ jsx74(
16940
+ /* @__PURE__ */ jsx75(
16972
16941
  "div",
16973
16942
  {
16974
16943
  className: " size-8 bg-white rounded-lg flex justify-center items-center z-20",
@@ -16982,7 +16951,7 @@ var BinaryField = (props) => {
16982
16951
  border: onlyImage ? "1px solid transparent" : "1px solid var(--color-primary)",
16983
16952
  borderRadius: onlyImage ? "100%" : "8px"
16984
16953
  },
16985
- children: /* @__PURE__ */ jsx74(
16954
+ children: /* @__PURE__ */ jsx75(
16986
16955
  "svg",
16987
16956
  {
16988
16957
  xmlns: "http://www.w3.org/2000/svg",
@@ -16990,7 +16959,7 @@ var BinaryField = (props) => {
16990
16959
  height: "14",
16991
16960
  viewBox: "0 0 14 14",
16992
16961
  fill: "none",
16993
- children: /* @__PURE__ */ jsx74(
16962
+ children: /* @__PURE__ */ jsx75(
16994
16963
  "path",
16995
16964
  {
16996
16965
  "fill-rule": "evenodd",
@@ -17008,7 +16977,7 @@ var BinaryField = (props) => {
17008
16977
  )
17009
16978
  }
17010
16979
  ),
17011
- error2 && !isEditTable && /* @__PURE__ */ jsx74("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
16980
+ error2 && !isEditTable && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17012
16981
  ] });
17013
16982
  }
17014
16983
  }
@@ -17016,7 +16985,7 @@ var BinaryField = (props) => {
17016
16985
  };
17017
16986
 
17018
16987
  // src/widgets/basic/button-badge-field/button-badge.tsx
17019
- import { jsx as jsx75 } from "react/jsx-runtime";
16988
+ import { jsx as jsx76 } from "react/jsx-runtime";
17020
16989
  var typeStyles = {
17021
16990
  primary: {
17022
16991
  backgroundColor: "#3b82f6",
@@ -17091,11 +17060,11 @@ var ButtonBadgeField = (props) => {
17091
17060
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
17092
17061
  };
17093
17062
  const label = getLabel(defaultValue ?? value);
17094
- return label ? /* @__PURE__ */ jsx75("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17063
+ return label ? /* @__PURE__ */ jsx76("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17095
17064
  };
17096
17065
 
17097
17066
  // src/widgets/basic/button-field/button.tsx
17098
- import { Fragment as Fragment17, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
17067
+ import { Fragment as Fragment17, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
17099
17068
  var ButtonField = (props) => {
17100
17069
  const {
17101
17070
  func,
@@ -17106,7 +17075,7 @@ var ButtonField = (props) => {
17106
17075
  type = "submit"
17107
17076
  } = props;
17108
17077
  const { t: t3 } = useI18n();
17109
- return /* @__PURE__ */ jsx76(Fragment17, { children: !loading ? /* @__PURE__ */ jsx76(
17078
+ return /* @__PURE__ */ jsx77(Fragment17, { children: !loading ? /* @__PURE__ */ jsx77(
17110
17079
  "button",
17111
17080
  {
17112
17081
  type,
@@ -17124,7 +17093,7 @@ var ButtonField = (props) => {
17124
17093
  children: [
17125
17094
  t3("loading"),
17126
17095
  " ",
17127
- /* @__PURE__ */ jsx76(LoadingIcon, {})
17096
+ /* @__PURE__ */ jsx77(LoadingIcon, {})
17128
17097
  ]
17129
17098
  }
17130
17099
  ) });
@@ -17132,7 +17101,7 @@ var ButtonField = (props) => {
17132
17101
 
17133
17102
  // src/widgets/basic/char-field/char.tsx
17134
17103
  import { useEffect as useEffect12, useMemo as useMemo4 } from "react";
17135
- import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs51 } from "react/jsx-runtime";
17104
+ import { Fragment as Fragment18, jsx as jsx78, jsxs as jsxs51 } from "react/jsx-runtime";
17136
17105
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
17137
17106
  var CharField = (props) => {
17138
17107
  const {
@@ -17160,10 +17129,10 @@ var CharField = (props) => {
17160
17129
  } = props;
17161
17130
  if (!isForm && !isEditTable) {
17162
17131
  const propValue = value || defaultValue;
17163
- return /* @__PURE__ */ jsx77("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17132
+ return /* @__PURE__ */ jsx78("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17164
17133
  }
17165
17134
  const { t: t3 } = useI18n();
17166
- return /* @__PURE__ */ jsx77(
17135
+ return /* @__PURE__ */ jsx78(
17167
17136
  Controller,
17168
17137
  {
17169
17138
  name: name2 ?? "",
@@ -17218,7 +17187,7 @@ var CharField = (props) => {
17218
17187
  return "";
17219
17188
  }, [widget, formValues]);
17220
17189
  return /* @__PURE__ */ jsxs51(Fragment18, { children: [
17221
- /* @__PURE__ */ jsx77(
17190
+ /* @__PURE__ */ jsx78(
17222
17191
  "input",
17223
17192
  {
17224
17193
  value: displayValue ?? "",
@@ -17279,7 +17248,7 @@ var CharField = (props) => {
17279
17248
  `
17280
17249
  }
17281
17250
  ),
17282
- isEditTable ? /* @__PURE__ */ jsx77(Fragment18, {}) : /* @__PURE__ */ jsx77(Fragment18, { children: error2 && /* @__PURE__ */ jsx77("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17251
+ isEditTable ? /* @__PURE__ */ jsx78(Fragment18, {}) : /* @__PURE__ */ jsx78(Fragment18, { children: error2 && /* @__PURE__ */ jsx78("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17283
17252
  ] });
17284
17253
  }
17285
17254
  }
@@ -17287,7 +17256,7 @@ var CharField = (props) => {
17287
17256
  };
17288
17257
 
17289
17258
  // src/widgets/basic/checkbox-field/checkbox.tsx
17290
- import { jsx as jsx78 } from "react/jsx-runtime";
17259
+ import { jsx as jsx79 } from "react/jsx-runtime";
17291
17260
  var CheckboxField = (props) => {
17292
17261
  const {
17293
17262
  name: name2,
@@ -17302,9 +17271,9 @@ var CheckboxField = (props) => {
17302
17271
  } = props;
17303
17272
  if (!isForm) {
17304
17273
  if (name2 === "is_active" || name2 === "active") {
17305
- return /* @__PURE__ */ jsx78(ActiveBadgeField, { type: value });
17274
+ return /* @__PURE__ */ jsx79(ActiveBadgeField, { type: value });
17306
17275
  } else {
17307
- return /* @__PURE__ */ jsx78(
17276
+ return /* @__PURE__ */ jsx79(
17308
17277
  "input",
17309
17278
  {
17310
17279
  type: "checkbox",
@@ -17315,12 +17284,12 @@ var CheckboxField = (props) => {
17315
17284
  );
17316
17285
  }
17317
17286
  }
17318
- return /* @__PURE__ */ jsx78(
17287
+ return /* @__PURE__ */ jsx79(
17319
17288
  Controller,
17320
17289
  {
17321
17290
  name: name2 ?? "",
17322
17291
  control: methods?.control,
17323
- render: ({ field }) => /* @__PURE__ */ jsx78(
17292
+ render: ({ field }) => /* @__PURE__ */ jsx79(
17324
17293
  "div",
17325
17294
  {
17326
17295
  className: "flex items-center gap-2",
@@ -17333,7 +17302,7 @@ var CheckboxField = (props) => {
17333
17302
  onChange2(name2 ?? "", checked);
17334
17303
  }
17335
17304
  },
17336
- children: /* @__PURE__ */ jsx78(
17305
+ children: /* @__PURE__ */ jsx79(
17337
17306
  "input",
17338
17307
  {
17339
17308
  ...field,
@@ -17361,7 +17330,7 @@ var CheckboxField = (props) => {
17361
17330
 
17362
17331
  // src/widgets/basic/color-field/color-wrapper.tsx
17363
17332
  import { useEffect as useEffect13, useRef as useRef7, useState as useState12 } from "react";
17364
- import { Fragment as Fragment19, jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
17333
+ import { Fragment as Fragment19, jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
17365
17334
  var ColorWrapper = (props) => {
17366
17335
  const { colors: colors2, defaultColor, savePickColor } = props;
17367
17336
  const { t: t3 } = useI18n();
@@ -17385,8 +17354,8 @@ var ColorWrapper = (props) => {
17385
17354
  document.removeEventListener("mousedown", handleClickOutside);
17386
17355
  };
17387
17356
  }, []);
17388
- return /* @__PURE__ */ jsx79("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx79("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs52("div", { children: [
17389
- /* @__PURE__ */ jsx79(
17357
+ return /* @__PURE__ */ jsx80("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx80("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs52("div", { children: [
17358
+ /* @__PURE__ */ jsx80(
17390
17359
  "button",
17391
17360
  {
17392
17361
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17400,7 +17369,7 @@ var ColorWrapper = (props) => {
17400
17369
  }
17401
17370
  }
17402
17371
  ),
17403
- /* @__PURE__ */ jsx79(
17372
+ /* @__PURE__ */ jsx80(
17404
17373
  M,
17405
17374
  {
17406
17375
  className: "",
@@ -17410,7 +17379,7 @@ var ColorWrapper = (props) => {
17410
17379
  }
17411
17380
  )
17412
17381
  ] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment19, { children: [
17413
- /* @__PURE__ */ jsx79(
17382
+ /* @__PURE__ */ jsx80(
17414
17383
  "button",
17415
17384
  {
17416
17385
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17423,7 +17392,7 @@ var ColorWrapper = (props) => {
17423
17392
  style: { backgroundColor: selectedColor?.color }
17424
17393
  }
17425
17394
  ),
17426
- /* @__PURE__ */ jsx79(
17395
+ /* @__PURE__ */ jsx80(
17427
17396
  M,
17428
17397
  {
17429
17398
  place: "top",
@@ -17435,13 +17404,13 @@ var ColorWrapper = (props) => {
17435
17404
  };
17436
17405
 
17437
17406
  // src/widgets/basic/color-field/color.tsx
17438
- import { jsx as jsx80 } from "react/jsx-runtime";
17407
+ import { jsx as jsx81 } from "react/jsx-runtime";
17439
17408
  var ColorField = (props) => {
17440
17409
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17441
17410
  if (!isForm) {
17442
- return /* @__PURE__ */ jsx80(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17411
+ return /* @__PURE__ */ jsx81(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17443
17412
  }
17444
- return /* @__PURE__ */ jsx80(
17413
+ return /* @__PURE__ */ jsx81(
17445
17414
  Controller,
17446
17415
  {
17447
17416
  name: name2 ?? "",
@@ -17451,7 +17420,7 @@ var ColorField = (props) => {
17451
17420
  field.onChange(color?.id);
17452
17421
  onChange2 && onChange2(name2 ?? "", color?.id);
17453
17422
  };
17454
- return /* @__PURE__ */ jsx80(
17423
+ return /* @__PURE__ */ jsx81(
17455
17424
  ColorWrapper,
17456
17425
  {
17457
17426
  savePickColor: handlePickColorChange,
@@ -17466,7 +17435,7 @@ var ColorField = (props) => {
17466
17435
 
17467
17436
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17468
17437
  import { useEffect as useEffect14 } from "react";
17469
- import { jsx as jsx81, jsxs as jsxs53 } from "react/jsx-runtime";
17438
+ import { jsx as jsx82, jsxs as jsxs53 } from "react/jsx-runtime";
17470
17439
  var CopyLinkButtonField = (props) => {
17471
17440
  const {
17472
17441
  isForm,
@@ -17485,9 +17454,9 @@ var CopyLinkButtonField = (props) => {
17485
17454
  } = props;
17486
17455
  const { t: t3 } = useI18n();
17487
17456
  if (!isForm) {
17488
- return /* @__PURE__ */ jsx81("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17457
+ return /* @__PURE__ */ jsx82("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17489
17458
  }
17490
- return /* @__PURE__ */ jsx81(
17459
+ return /* @__PURE__ */ jsx82(
17491
17460
  Controller,
17492
17461
  {
17493
17462
  name: name2 ?? "",
@@ -17515,7 +17484,7 @@ var CopyLinkButtonField = (props) => {
17515
17484
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17516
17485
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17517
17486
  children: [
17518
- /* @__PURE__ */ jsx81(
17487
+ /* @__PURE__ */ jsx82(
17519
17488
  "input",
17520
17489
  {
17521
17490
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17556,19 +17525,19 @@ var CopyLinkButtonField = (props) => {
17556
17525
  `
17557
17526
  }
17558
17527
  ),
17559
- readonly && value && /* @__PURE__ */ jsx81(
17528
+ readonly && value && /* @__PURE__ */ jsx82(
17560
17529
  "button",
17561
17530
  {
17562
17531
  className: "cursor-pointer",
17563
17532
  type: "button",
17564
17533
  onClick: () => handleCopyToClipboard(propValue),
17565
- children: isCopied ? /* @__PURE__ */ jsx81(CheckIcon, {}) : /* @__PURE__ */ jsx81(CopyIcon, {})
17534
+ children: isCopied ? /* @__PURE__ */ jsx82(CheckIcon, {}) : /* @__PURE__ */ jsx82(CopyIcon, {})
17566
17535
  }
17567
17536
  )
17568
17537
  ]
17569
17538
  }
17570
17539
  ),
17571
- error2 && /* @__PURE__ */ jsx81("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17540
+ error2 && /* @__PURE__ */ jsx82("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17572
17541
  ] });
17573
17542
  }
17574
17543
  }
@@ -21509,7 +21478,7 @@ function useEffectEvent(callback) {
21509
21478
  }
21510
21479
 
21511
21480
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21512
- import { jsx as jsx82, jsxs as jsxs54, Fragment as Fragment20 } from "react/jsx-runtime";
21481
+ import { jsx as jsx83, jsxs as jsxs54, Fragment as Fragment20 } from "react/jsx-runtime";
21513
21482
  import * as ReactDOM2 from "react-dom";
21514
21483
 
21515
21484
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21923,18 +21892,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21923
21892
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21924
21893
  ...restStyle
21925
21894
  },
21926
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx82("path", {
21895
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx83("path", {
21927
21896
  clipPath: "url(#" + clipPathId + ")",
21928
21897
  fill: "none",
21929
21898
  stroke,
21930
21899
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21931
21900
  d: dValue
21932
- }), /* @__PURE__ */ jsx82("path", {
21901
+ }), /* @__PURE__ */ jsx83("path", {
21933
21902
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21934
21903
  d: dValue
21935
- }), /* @__PURE__ */ jsx82("clipPath", {
21904
+ }), /* @__PURE__ */ jsx83("clipPath", {
21936
21905
  id: clipPathId,
21937
- children: /* @__PURE__ */ jsx82("rect", {
21906
+ children: /* @__PURE__ */ jsx83("rect", {
21938
21907
  x: -halfStrokeWidth,
21939
21908
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21940
21909
  width: width + computedStrokeWidth,
@@ -27867,7 +27836,7 @@ var Emotion$1 = Emotion;
27867
27836
  import * as React12 from "react";
27868
27837
  var import_extends2 = __toESM(require_extends());
27869
27838
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27870
- var jsx83 = function jsx84(type, props) {
27839
+ var jsx84 = function jsx85(type, props) {
27871
27840
  var args = arguments;
27872
27841
  if (props == null || !hasOwn.call(props, "css")) {
27873
27842
  return React12.createElement.apply(void 0, args);
@@ -27885,7 +27854,7 @@ var jsx83 = function jsx84(type, props) {
27885
27854
  var JSX;
27886
27855
  /* @__PURE__ */ (function(_JSX) {
27887
27856
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27888
- })(jsx83 || (jsx83 = {}));
27857
+ })(jsx84 || (jsx84 = {}));
27889
27858
  function css() {
27890
27859
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27891
27860
  args[_key] = arguments[_key];
@@ -28293,7 +28262,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28293
28262
  };
28294
28263
  var Menu = function Menu2(props) {
28295
28264
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28296
- return jsx83("div", _extends({}, getStyleProps(props, "menu", {
28265
+ return jsx84("div", _extends({}, getStyleProps(props, "menu", {
28297
28266
  menu: true
28298
28267
  }), {
28299
28268
  ref: innerRef
@@ -28315,7 +28284,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28315
28284
  };
28316
28285
  var MenuList = function MenuList2(props) {
28317
28286
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28318
- return jsx83("div", _extends({}, getStyleProps(props, "menuList", {
28287
+ return jsx84("div", _extends({}, getStyleProps(props, "menuList", {
28319
28288
  "menu-list": true,
28320
28289
  "menu-list--is-multi": isMulti
28321
28290
  }), {
@@ -28335,7 +28304,7 @@ var noOptionsMessageCSS = noticeCSS;
28335
28304
  var loadingMessageCSS = noticeCSS;
28336
28305
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28337
28306
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28338
- return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28307
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28339
28308
  children,
28340
28309
  innerProps
28341
28310
  }), "noOptionsMessage", {
@@ -28345,7 +28314,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28345
28314
  };
28346
28315
  var LoadingMessage = function LoadingMessage2(_ref7) {
28347
28316
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28348
- return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28317
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28349
28318
  children,
28350
28319
  innerProps
28351
28320
  }), "loadingMessage", {
@@ -28408,7 +28377,7 @@ var MenuPortal = function MenuPortal2(props) {
28408
28377
  runAutoUpdate();
28409
28378
  }, [runAutoUpdate]);
28410
28379
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28411
- var menuWrapper = jsx83("div", _extends({
28380
+ var menuWrapper = jsx84("div", _extends({
28412
28381
  ref: setMenuPortalElement
28413
28382
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28414
28383
  offset: computedPosition.offset,
@@ -28417,7 +28386,7 @@ var MenuPortal = function MenuPortal2(props) {
28417
28386
  }), "menuPortal", {
28418
28387
  "menu-portal": true
28419
28388
  }), innerProps), children);
28420
- return jsx83(PortalPlacementContext.Provider, {
28389
+ return jsx84(PortalPlacementContext.Provider, {
28421
28390
  value: portalPlacementContext
28422
28391
  }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
28423
28392
  };
@@ -28433,7 +28402,7 @@ var containerCSS = function containerCSS2(_ref3) {
28433
28402
  };
28434
28403
  var SelectContainer = function SelectContainer2(props) {
28435
28404
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28436
- return jsx83("div", _extends({}, getStyleProps(props, "container", {
28405
+ return jsx84("div", _extends({}, getStyleProps(props, "container", {
28437
28406
  "--is-disabled": isDisabled,
28438
28407
  "--is-rtl": isRtl
28439
28408
  }), innerProps), children);
@@ -28454,7 +28423,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28454
28423
  };
28455
28424
  var ValueContainer = function ValueContainer2(props) {
28456
28425
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28457
- return jsx83("div", _extends({}, getStyleProps(props, "valueContainer", {
28426
+ return jsx84("div", _extends({}, getStyleProps(props, "valueContainer", {
28458
28427
  "value-container": true,
28459
28428
  "value-container--is-multi": isMulti,
28460
28429
  "value-container--has-value": hasValue
@@ -28470,7 +28439,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28470
28439
  };
28471
28440
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28472
28441
  var children = props.children, innerProps = props.innerProps;
28473
- return jsx83("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28442
+ return jsx84("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28474
28443
  indicators: true
28475
28444
  }), innerProps), children);
28476
28445
  };
@@ -28491,7 +28460,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28491
28460
  };
28492
28461
  var Svg = function Svg2(_ref3) {
28493
28462
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28494
- return jsx83("svg", _extends({
28463
+ return jsx84("svg", _extends({
28495
28464
  height: size4,
28496
28465
  width: size4,
28497
28466
  viewBox: "0 0 20 20",
@@ -28501,16 +28470,16 @@ var Svg = function Svg2(_ref3) {
28501
28470
  }, props));
28502
28471
  };
28503
28472
  var CrossIcon = function CrossIcon2(props) {
28504
- return jsx83(Svg, _extends({
28473
+ return jsx84(Svg, _extends({
28505
28474
  size: 20
28506
- }, props), jsx83("path", {
28475
+ }, props), jsx84("path", {
28507
28476
  d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
28508
28477
  }));
28509
28478
  };
28510
28479
  var DownChevron = function DownChevron2(props) {
28511
- return jsx83(Svg, _extends({
28480
+ return jsx84(Svg, _extends({
28512
28481
  size: 20
28513
- }, props), jsx83("path", {
28482
+ }, props), jsx84("path", {
28514
28483
  d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
28515
28484
  }));
28516
28485
  };
@@ -28531,18 +28500,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28531
28500
  var dropdownIndicatorCSS = baseCSS;
28532
28501
  var DropdownIndicator = function DropdownIndicator2(props) {
28533
28502
  var children = props.children, innerProps = props.innerProps;
28534
- return jsx83("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28503
+ return jsx84("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28535
28504
  indicator: true,
28536
28505
  "dropdown-indicator": true
28537
- }), innerProps), children || jsx83(DownChevron, null));
28506
+ }), innerProps), children || jsx84(DownChevron, null));
28538
28507
  };
28539
28508
  var clearIndicatorCSS = baseCSS;
28540
28509
  var ClearIndicator = function ClearIndicator2(props) {
28541
28510
  var children = props.children, innerProps = props.innerProps;
28542
- return jsx83("div", _extends({}, getStyleProps(props, "clearIndicator", {
28511
+ return jsx84("div", _extends({}, getStyleProps(props, "clearIndicator", {
28543
28512
  indicator: true,
28544
28513
  "clear-indicator": true
28545
- }), innerProps), children || jsx83(CrossIcon, null));
28514
+ }), innerProps), children || jsx84(CrossIcon, null));
28546
28515
  };
28547
28516
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28548
28517
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28558,7 +28527,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28558
28527
  };
28559
28528
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28560
28529
  var innerProps = props.innerProps;
28561
- return jsx83("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28530
+ return jsx84("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28562
28531
  "indicator-separator": true
28563
28532
  })));
28564
28533
  };
@@ -28582,7 +28551,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28582
28551
  };
28583
28552
  var LoadingDot = function LoadingDot2(_ref6) {
28584
28553
  var delay = _ref6.delay, offset4 = _ref6.offset;
28585
- return jsx83("span", {
28554
+ return jsx84("span", {
28586
28555
  css: /* @__PURE__ */ css({
28587
28556
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28588
28557
  backgroundColor: "currentColor",
@@ -28597,20 +28566,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28597
28566
  };
28598
28567
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28599
28568
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28600
- return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28569
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28601
28570
  innerProps,
28602
28571
  isRtl,
28603
28572
  size: size4
28604
28573
  }), "loadingIndicator", {
28605
28574
  indicator: true,
28606
28575
  "loading-indicator": true
28607
- }), innerProps), jsx83(LoadingDot, {
28576
+ }), innerProps), jsx84(LoadingDot, {
28608
28577
  delay: 0,
28609
28578
  offset: isRtl
28610
- }), jsx83(LoadingDot, {
28579
+ }), jsx84(LoadingDot, {
28611
28580
  delay: 160,
28612
28581
  offset: true
28613
- }), jsx83(LoadingDot, {
28582
+ }), jsx84(LoadingDot, {
28614
28583
  delay: 320,
28615
28584
  offset: !isRtl
28616
28585
  }));
@@ -28642,7 +28611,7 @@ var css$1 = function css2(_ref3, unstyled) {
28642
28611
  };
28643
28612
  var Control = function Control2(props) {
28644
28613
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28645
- return jsx83("div", _extends({
28614
+ return jsx84("div", _extends({
28646
28615
  ref: innerRef
28647
28616
  }, getStyleProps(props, "control", {
28648
28617
  control: true,
@@ -28664,15 +28633,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28664
28633
  };
28665
28634
  var Group = function Group2(props) {
28666
28635
  var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, Heading = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
28667
- return jsx83("div", _extends({}, getStyleProps(props, "group", {
28636
+ return jsx84("div", _extends({}, getStyleProps(props, "group", {
28668
28637
  group: true
28669
- }), innerProps), jsx83(Heading, _extends({}, headingProps, {
28638
+ }), innerProps), jsx84(Heading, _extends({}, headingProps, {
28670
28639
  selectProps,
28671
28640
  theme,
28672
28641
  getStyles,
28673
28642
  getClassNames,
28674
28643
  cx
28675
- }), label), jsx83("div", null, children));
28644
+ }), label), jsx84("div", null, children));
28676
28645
  };
28677
28646
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28678
28647
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28694,7 +28663,7 @@ var GroupHeading = function GroupHeading2(props) {
28694
28663
  var _cleanCommonProps = cleanCommonProps(props);
28695
28664
  _cleanCommonProps.data;
28696
28665
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28697
- return jsx83("div", _extends({}, getStyleProps(props, "groupHeading", {
28666
+ return jsx84("div", _extends({}, getStyleProps(props, "groupHeading", {
28698
28667
  "group-heading": true
28699
28668
  }), innerProps));
28700
28669
  };
@@ -28746,11 +28715,11 @@ var inputStyle = function inputStyle2(isHidden) {
28746
28715
  var Input = function Input2(props) {
28747
28716
  var cx = props.cx, value = props.value;
28748
28717
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28749
- return jsx83("div", _extends({}, getStyleProps(props, "input", {
28718
+ return jsx84("div", _extends({}, getStyleProps(props, "input", {
28750
28719
  "input-container": true
28751
28720
  }), {
28752
28721
  "data-value": value || ""
28753
- }), jsx83("input", _extends({
28722
+ }), jsx84("input", _extends({
28754
28723
  className: cx({
28755
28724
  input: true
28756
28725
  }, inputClassName),
@@ -28804,35 +28773,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28804
28773
  };
28805
28774
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28806
28775
  var children = _ref4.children, innerProps = _ref4.innerProps;
28807
- return jsx83("div", innerProps, children);
28776
+ return jsx84("div", innerProps, children);
28808
28777
  };
28809
28778
  var MultiValueContainer = MultiValueGeneric;
28810
28779
  var MultiValueLabel = MultiValueGeneric;
28811
28780
  function MultiValueRemove(_ref5) {
28812
28781
  var children = _ref5.children, innerProps = _ref5.innerProps;
28813
- return jsx83("div", _extends({
28782
+ return jsx84("div", _extends({
28814
28783
  role: "button"
28815
- }, innerProps), children || jsx83(CrossIcon, {
28784
+ }, innerProps), children || jsx84(CrossIcon, {
28816
28785
  size: 14
28817
28786
  }));
28818
28787
  }
28819
28788
  var MultiValue = function MultiValue2(props) {
28820
28789
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28821
28790
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28822
- return jsx83(Container, {
28791
+ return jsx84(Container, {
28823
28792
  data,
28824
28793
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28825
28794
  "multi-value": true,
28826
28795
  "multi-value--is-disabled": isDisabled
28827
28796
  })), innerProps),
28828
28797
  selectProps
28829
- }, jsx83(Label, {
28798
+ }, jsx84(Label, {
28830
28799
  data,
28831
28800
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28832
28801
  "multi-value__label": true
28833
28802
  })),
28834
28803
  selectProps
28835
- }, children), jsx83(Remove, {
28804
+ }, children), jsx84(Remove, {
28836
28805
  data,
28837
28806
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28838
28807
  "multi-value__remove": true
@@ -28865,7 +28834,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28865
28834
  };
28866
28835
  var Option = function Option2(props) {
28867
28836
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28868
- return jsx83("div", _extends({}, getStyleProps(props, "option", {
28837
+ return jsx84("div", _extends({}, getStyleProps(props, "option", {
28869
28838
  option: true,
28870
28839
  "option--is-disabled": isDisabled,
28871
28840
  "option--is-focused": isFocused,
@@ -28889,7 +28858,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28889
28858
  };
28890
28859
  var Placeholder = function Placeholder2(props) {
28891
28860
  var children = props.children, innerProps = props.innerProps;
28892
- return jsx83("div", _extends({}, getStyleProps(props, "placeholder", {
28861
+ return jsx84("div", _extends({}, getStyleProps(props, "placeholder", {
28893
28862
  placeholder: true
28894
28863
  }), innerProps), children);
28895
28864
  };
@@ -28911,7 +28880,7 @@ var css3 = function css4(_ref3, unstyled) {
28911
28880
  };
28912
28881
  var SingleValue = function SingleValue2(props) {
28913
28882
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28914
- return jsx83("div", _extends({}, getStyleProps(props, "singleValue", {
28883
+ return jsx84("div", _extends({}, getStyleProps(props, "singleValue", {
28915
28884
  "single-value": true,
28916
28885
  "single-value--is-disabled": isDisabled
28917
28886
  }), innerProps), children);
@@ -29013,7 +28982,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
29013
28982
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
29014
28983
  };
29015
28984
  var A11yText = function A11yText2(props) {
29016
- return jsx83("span", _extends({
28985
+ return jsx84("span", _extends({
29017
28986
  css: _ref
29018
28987
  }, props));
29019
28988
  };
@@ -29148,18 +29117,18 @@ var LiveRegion = function LiveRegion2(props) {
29148
29117
  }
29149
29118
  return guidanceMsg;
29150
29119
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
29151
- var ScreenReaderText = jsx83(Fragment23, null, jsx83("span", {
29120
+ var ScreenReaderText = jsx84(Fragment23, null, jsx84("span", {
29152
29121
  id: "aria-selection"
29153
- }, ariaSelected), jsx83("span", {
29122
+ }, ariaSelected), jsx84("span", {
29154
29123
  id: "aria-focused"
29155
- }, ariaFocused), jsx83("span", {
29124
+ }, ariaFocused), jsx84("span", {
29156
29125
  id: "aria-results"
29157
- }, ariaResults), jsx83("span", {
29126
+ }, ariaResults), jsx84("span", {
29158
29127
  id: "aria-guidance"
29159
29128
  }, ariaGuidance));
29160
- return jsx83(Fragment23, null, jsx83(A11yText$1, {
29129
+ return jsx84(Fragment23, null, jsx84(A11yText$1, {
29161
29130
  id
29162
- }, isInitialFocus && ScreenReaderText), jsx83(A11yText$1, {
29131
+ }, isInitialFocus && ScreenReaderText), jsx84(A11yText$1, {
29163
29132
  "aria-live": ariaLive,
29164
29133
  "aria-atomic": "false",
29165
29134
  "aria-relevant": "additions text",
@@ -29472,7 +29441,7 @@ var _excluded4 = ["innerRef"];
29472
29441
  function DummyInput(_ref3) {
29473
29442
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29474
29443
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29475
- return jsx83("input", _extends({
29444
+ return jsx84("input", _extends({
29476
29445
  ref: innerRef
29477
29446
  }, filteredProps, {
29478
29447
  css: /* @__PURE__ */ css({
@@ -29714,7 +29683,7 @@ function ScrollManager(_ref3) {
29714
29683
  setScrollCaptureTarget(element);
29715
29684
  setScrollLockTarget(element);
29716
29685
  };
29717
- return jsx83(Fragment23, null, lockEnabled && jsx83("div", {
29686
+ return jsx84(Fragment23, null, lockEnabled && jsx84("div", {
29718
29687
  onClick: blurSelectInput,
29719
29688
  css: _ref2$1
29720
29689
  }), children(targetRef));
@@ -29733,7 +29702,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29733
29702
  };
29734
29703
  var RequiredInput = function RequiredInput2(_ref3) {
29735
29704
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29736
- return jsx83("input", {
29705
+ return jsx84("input", {
29737
29706
  required: true,
29738
29707
  name: name2,
29739
29708
  tabIndex: -1,
@@ -31323,7 +31292,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31323
31292
 
31324
31293
  // src/widgets/basic/date-field/date.tsx
31325
31294
  var import_moment2 = __toESM(require_moment());
31326
- import { Fragment as Fragment24, jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31295
+ import { Fragment as Fragment24, jsx as jsx86, jsxs as jsxs55 } from "react/jsx-runtime";
31327
31296
  var DateField = (props) => {
31328
31297
  const {
31329
31298
  name: name2,
@@ -31352,7 +31321,7 @@ var DateField = (props) => {
31352
31321
  const { t: t3 } = useI18n();
31353
31322
  const InputDateCustom = forwardRef6(
31354
31323
  ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs55("label", { className: `flex ${className}`, children: [
31355
- /* @__PURE__ */ jsx85(
31324
+ /* @__PURE__ */ jsx86(
31356
31325
  "input",
31357
31326
  {
31358
31327
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31366,13 +31335,13 @@ var DateField = (props) => {
31366
31335
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31367
31336
  }
31368
31337
  ),
31369
- isForm2 && /* @__PURE__ */ jsx85(CalendarIcon, {})
31338
+ isForm2 && /* @__PURE__ */ jsx86(CalendarIcon, {})
31370
31339
  ] })
31371
31340
  );
31372
31341
  if (!isForm && !isEditTable) {
31373
- return /* @__PURE__ */ jsx85("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31342
+ return /* @__PURE__ */ jsx86("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31374
31343
  } else {
31375
- return /* @__PURE__ */ jsx85(
31344
+ return /* @__PURE__ */ jsx86(
31376
31345
  Controller,
31377
31346
  {
31378
31347
  name: name2 || "",
@@ -31395,7 +31364,7 @@ var DateField = (props) => {
31395
31364
  }, [value, clearErrors, name2]);
31396
31365
  const selectedDate = !methods ? value && (0, import_moment2.default)(value, formatDateParse).isValid() ? (0, import_moment2.default)(value, formatDateParse).add(7, "hours").toDate() : null : field?.value && (0, import_moment2.default)(field.value, formatDateParse).isValid() ? (0, import_moment2.default)(field.value, formatDateParse).add(7, "hours").toDate() : null;
31397
31366
  return /* @__PURE__ */ jsxs55(Fragment24, { children: [
31398
- /* @__PURE__ */ jsx85(
31367
+ /* @__PURE__ */ jsx86(
31399
31368
  DatePicker,
31400
31369
  {
31401
31370
  selected: selectedDate,
@@ -31443,7 +31412,7 @@ var DateField = (props) => {
31443
31412
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31444
31413
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31445
31414
  showTimeInput: showTime,
31446
- customInput: /* @__PURE__ */ jsx85(
31415
+ customInput: /* @__PURE__ */ jsx86(
31447
31416
  InputDateCustom,
31448
31417
  {
31449
31418
  isForm,
@@ -31470,7 +31439,7 @@ var DateField = (props) => {
31470
31439
  justifyContent: "center"
31471
31440
  },
31472
31441
  children: [
31473
- /* @__PURE__ */ jsx85(
31442
+ /* @__PURE__ */ jsx86(
31474
31443
  "button",
31475
31444
  {
31476
31445
  onClick: decreaseMonth,
@@ -31478,7 +31447,7 @@ var DateField = (props) => {
31478
31447
  children: "<"
31479
31448
  }
31480
31449
  ),
31481
- /* @__PURE__ */ jsx85(
31450
+ /* @__PURE__ */ jsx86(
31482
31451
  StateManagedSelect$1,
31483
31452
  {
31484
31453
  classNames: {
@@ -31504,7 +31473,7 @@ var DateField = (props) => {
31504
31473
  autoFocus: true
31505
31474
  }
31506
31475
  ),
31507
- /* @__PURE__ */ jsx85(
31476
+ /* @__PURE__ */ jsx86(
31508
31477
  StateManagedSelect$1,
31509
31478
  {
31510
31479
  classNames: {
@@ -31532,7 +31501,7 @@ var DateField = (props) => {
31532
31501
  }))
31533
31502
  }
31534
31503
  ),
31535
- /* @__PURE__ */ jsx85(
31504
+ /* @__PURE__ */ jsx86(
31536
31505
  "button",
31537
31506
  {
31538
31507
  onClick: increaseMonth,
@@ -31545,7 +31514,7 @@ var DateField = (props) => {
31545
31514
  )
31546
31515
  }
31547
31516
  ),
31548
- !isEditTable && error2 && /* @__PURE__ */ jsx85("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31517
+ !isEditTable && error2 && /* @__PURE__ */ jsx86("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31549
31518
  ] });
31550
31519
  }
31551
31520
  }
@@ -31554,7 +31523,7 @@ var DateField = (props) => {
31554
31523
  };
31555
31524
 
31556
31525
  // src/widgets/basic/download-binary-field/download-binary.tsx
31557
- import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31526
+ import { jsx as jsx87, jsxs as jsxs56 } from "react/jsx-runtime";
31558
31527
  var DownLoadBinaryField = (props) => {
31559
31528
  const { handleFileDownload } = props;
31560
31529
  const { t: t3 } = useI18n();
@@ -31565,15 +31534,15 @@ var DownLoadBinaryField = (props) => {
31565
31534
  onClick: handleFileDownload,
31566
31535
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31567
31536
  children: [
31568
- /* @__PURE__ */ jsx86(DownloadIcon, {}),
31569
- /* @__PURE__ */ jsx86("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31537
+ /* @__PURE__ */ jsx87(DownloadIcon, {}),
31538
+ /* @__PURE__ */ jsx87("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31570
31539
  ]
31571
31540
  }
31572
31541
  );
31573
31542
  };
31574
31543
 
31575
31544
  // src/widgets/basic/download-file-field/download-file.tsx
31576
- import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31545
+ import { jsx as jsx88, jsxs as jsxs57 } from "react/jsx-runtime";
31577
31546
  var DownloadFileField = (props) => {
31578
31547
  const {
31579
31548
  readonly,
@@ -31592,8 +31561,8 @@ var DownloadFileField = (props) => {
31592
31561
  htmlFor: inputId,
31593
31562
  className: "flex cursor-pointer items-center justify-center rounded-lg border-2 border-gray-300 bg-white px-3 py-2 transition-colors duration-300 hover:bg-gray-200",
31594
31563
  children: [
31595
- file ? /* @__PURE__ */ jsx87("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx87("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx87("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31596
- /* @__PURE__ */ jsx87(
31564
+ file ? /* @__PURE__ */ jsx88("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx88("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx88("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31565
+ /* @__PURE__ */ jsx88(
31597
31566
  "input",
31598
31567
  {
31599
31568
  id: inputId,
@@ -31607,7 +31576,7 @@ var DownloadFileField = (props) => {
31607
31576
  ]
31608
31577
  }
31609
31578
  ),
31610
- file && /* @__PURE__ */ jsx87(
31579
+ file && /* @__PURE__ */ jsx88(
31611
31580
  "button",
31612
31581
  {
31613
31582
  onClick: handleFileDownload,
@@ -31621,7 +31590,7 @@ var DownloadFileField = (props) => {
31621
31590
 
31622
31591
  // src/widgets/basic/dropdown-field/dropdown.tsx
31623
31592
  import { useState as useState17 } from "react";
31624
- import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31593
+ import { jsx as jsx89, jsxs as jsxs58 } from "react/jsx-runtime";
31625
31594
  var DropdownField = (props) => {
31626
31595
  const {
31627
31596
  options: options2,
@@ -31648,17 +31617,17 @@ var DropdownField = (props) => {
31648
31617
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31649
31618
  children: [
31650
31619
  selectedValue?.icon,
31651
- /* @__PURE__ */ jsx88("span", { children: selectedValue?.label }),
31652
- /* @__PURE__ */ jsx88(ChevronBottomIcon, { className: "h-4 w-4" })
31620
+ /* @__PURE__ */ jsx89("span", { children: selectedValue?.label }),
31621
+ /* @__PURE__ */ jsx89(ChevronBottomIcon, { className: "h-4 w-4" })
31653
31622
  ]
31654
31623
  }
31655
31624
  ),
31656
- open && /* @__PURE__ */ jsx88(
31625
+ open && /* @__PURE__ */ jsx89(
31657
31626
  "div",
31658
31627
  {
31659
31628
  className: `absolute left-0 top-[calc(100%_+_4px)] z-50 bg-white overflow-hidden rounded-lg border border-[#dbe0e6] shadow-md text-sub-600 h-auto !min-h-fit text-xs !leading-5 !font-bold ${dropdownClassName}`,
31660
31629
  onClick: (e3) => e3.stopPropagation(),
31661
- children: options2.map((option, index4) => /* @__PURE__ */ jsx88(
31630
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx89(
31662
31631
  "div",
31663
31632
  {
31664
31633
  onClick: () => {
@@ -31678,7 +31647,7 @@ var DropdownField = (props) => {
31678
31647
  };
31679
31648
 
31680
31649
  // src/widgets/basic/fee-field/fee.tsx
31681
- import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31650
+ import { Fragment as Fragment25, jsx as jsx90, jsxs as jsxs59 } from "react/jsx-runtime";
31682
31651
  var FeeField = (props) => {
31683
31652
  const { value, formValues } = props;
31684
31653
  const { t: t3 } = useI18n();
@@ -31698,7 +31667,7 @@ var FeeField = (props) => {
31698
31667
  sub?.name,
31699
31668
  ":"
31700
31669
  ] }),
31701
- /* @__PURE__ */ jsx89("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31670
+ /* @__PURE__ */ jsx90("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31702
31671
  ] }),
31703
31672
  sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs59(
31704
31673
  "div",
@@ -31709,7 +31678,7 @@ var FeeField = (props) => {
31709
31678
  group?.group_name,
31710
31679
  ":"
31711
31680
  ] }),
31712
- /* @__PURE__ */ jsx89("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31681
+ /* @__PURE__ */ jsx90("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31713
31682
  ]
31714
31683
  },
31715
31684
  `tax_groups_${group?.id}`
@@ -31722,28 +31691,28 @@ var FeeField = (props) => {
31722
31691
  t3("total"),
31723
31692
  ":"
31724
31693
  ] }),
31725
- /* @__PURE__ */ jsx89("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31694
+ /* @__PURE__ */ jsx90("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31726
31695
  ] }),
31727
31696
  /* @__PURE__ */ jsxs59("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31728
31697
  /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31729
31698
  t3("paid_amount"),
31730
31699
  ":"
31731
31700
  ] }),
31732
- /* @__PURE__ */ jsx89("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31701
+ /* @__PURE__ */ jsx90("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31733
31702
  ] }),
31734
31703
  /* @__PURE__ */ jsxs59("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31735
31704
  /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31736
31705
  t3("remanining_amount"),
31737
31706
  ":"
31738
31707
  ] }),
31739
- /* @__PURE__ */ jsx89("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31708
+ /* @__PURE__ */ jsx90("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31740
31709
  ] })
31741
31710
  ] });
31742
31711
  };
31743
31712
 
31744
31713
  // src/widgets/basic/file-upload-field/file-upload.tsx
31745
31714
  import { useEffect as useEffect19, useRef as useRef15, useState as useState18 } from "react";
31746
- import { jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
31715
+ import { jsx as jsx91, jsxs as jsxs60 } from "react/jsx-runtime";
31747
31716
  var RenderFile = ({
31748
31717
  file,
31749
31718
  onDelete,
@@ -31753,16 +31722,16 @@ var RenderFile = ({
31753
31722
  readAs: "all"
31754
31723
  });
31755
31724
  const fileTypeIcon = {
31756
- "application/pdf": /* @__PURE__ */ jsx90(PdfIcon, {}),
31757
- "application/zip": /* @__PURE__ */ jsx90(ZipIcon, {}),
31758
- "application/x-zip-compressed": /* @__PURE__ */ jsx90(ZipIcon, {}),
31759
- "application/vnd.ms-excel": /* @__PURE__ */ jsx90(ExcelIcon, {}),
31760
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx90(ExcelIcon, {})
31725
+ "application/pdf": /* @__PURE__ */ jsx91(PdfIcon, {}),
31726
+ "application/zip": /* @__PURE__ */ jsx91(ZipIcon, {}),
31727
+ "application/x-zip-compressed": /* @__PURE__ */ jsx91(ZipIcon, {}),
31728
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx91(ExcelIcon, {}),
31729
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx91(ExcelIcon, {})
31761
31730
  };
31762
31731
  return /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31763
- /* @__PURE__ */ jsx90("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31732
+ /* @__PURE__ */ jsx91("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31764
31733
  /* @__PURE__ */ jsxs60("div", { children: [
31765
- /* @__PURE__ */ jsx90(
31734
+ /* @__PURE__ */ jsx91(
31766
31735
  "div",
31767
31736
  {
31768
31737
  style: {
@@ -31772,20 +31741,20 @@ var RenderFile = ({
31772
31741
  children: file?.name || file?.display_name || info?.name
31773
31742
  }
31774
31743
  ),
31775
- /* @__PURE__ */ jsx90("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31744
+ /* @__PURE__ */ jsx91("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31776
31745
  ] }),
31777
31746
  /* @__PURE__ */ jsxs60("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
31778
- /* @__PURE__ */ jsx90(
31747
+ /* @__PURE__ */ jsx91(
31779
31748
  "span",
31780
31749
  {
31781
31750
  onClick: () => onDownload && onDownload(
31782
31751
  file?.data,
31783
31752
  file?.name || file?.display_name || info?.name
31784
31753
  ),
31785
- children: /* @__PURE__ */ jsx90(DownloadIcon, {})
31754
+ children: /* @__PURE__ */ jsx91(DownloadIcon, {})
31786
31755
  }
31787
31756
  ),
31788
- /* @__PURE__ */ jsx90("span", { onClick: onDelete, children: /* @__PURE__ */ jsx90(DeleteIconDanger, {}) })
31757
+ /* @__PURE__ */ jsx91("span", { onClick: onDelete, children: /* @__PURE__ */ jsx91(DeleteIconDanger, {}) })
31789
31758
  ] })
31790
31759
  ] });
31791
31760
  };
@@ -31819,7 +31788,7 @@ var FileUploadField = (props) => {
31819
31788
  ]);
31820
31789
  }
31821
31790
  }, [value]);
31822
- return /* @__PURE__ */ jsx90(
31791
+ return /* @__PURE__ */ jsx91(
31823
31792
  Controller,
31824
31793
  {
31825
31794
  name: name2 || "",
@@ -31845,7 +31814,7 @@ var FileUploadField = (props) => {
31845
31814
  }
31846
31815
  }, [selectedFiles]);
31847
31816
  return /* @__PURE__ */ jsxs60("div", { children: [
31848
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx90(
31817
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx91(
31849
31818
  RenderFile,
31850
31819
  {
31851
31820
  file: fileItem,
@@ -31860,8 +31829,8 @@ var FileUploadField = (props) => {
31860
31829
  }
31861
31830
  }
31862
31831
  )),
31863
- uploadError && /* @__PURE__ */ jsx90("div", { className: "text-[#de4747]", children: uploadError }),
31864
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx90(
31832
+ uploadError && /* @__PURE__ */ jsx91("div", { className: "text-[#de4747]", children: uploadError }),
31833
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx91(
31865
31834
  ButtonSelectFiles,
31866
31835
  {
31867
31836
  fileInputRef,
@@ -31876,7 +31845,7 @@ var FileUploadField = (props) => {
31876
31845
  useUploadFile
31877
31846
  }
31878
31847
  ),
31879
- error2 && !isEditTable && /* @__PURE__ */ jsx90("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31848
+ error2 && !isEditTable && /* @__PURE__ */ jsx91("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31880
31849
  ] });
31881
31850
  }
31882
31851
  }
@@ -31885,7 +31854,7 @@ var FileUploadField = (props) => {
31885
31854
 
31886
31855
  // src/widgets/basic/float-field/float.tsx
31887
31856
  import { useEffect as useEffect20, useRef as useRef16, useState as useState19 } from "react";
31888
- import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
31857
+ import { Fragment as Fragment26, jsx as jsx92, jsxs as jsxs61 } from "react/jsx-runtime";
31889
31858
  var FloatField = (props) => {
31890
31859
  const {
31891
31860
  name: name2,
@@ -31903,9 +31872,9 @@ var FloatField = (props) => {
31903
31872
  } = props;
31904
31873
  const { t: t3 } = useI18n();
31905
31874
  if (!isForm && !isEditTable) {
31906
- return /* @__PURE__ */ jsx91("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31875
+ return /* @__PURE__ */ jsx92("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31907
31876
  }
31908
- return /* @__PURE__ */ jsx91(
31877
+ return /* @__PURE__ */ jsx92(
31909
31878
  Controller,
31910
31879
  {
31911
31880
  name: name2 ?? "",
@@ -32013,7 +31982,7 @@ var FloatField = (props) => {
32013
31982
  isDirtyRef.current = false;
32014
31983
  };
32015
31984
  return /* @__PURE__ */ jsxs61(Fragment26, { children: [
32016
- /* @__PURE__ */ jsx91(
31985
+ /* @__PURE__ */ jsx92(
32017
31986
  "input",
32018
31987
  {
32019
31988
  ref: inputRef,
@@ -32033,7 +32002,7 @@ var FloatField = (props) => {
32033
32002
  `
32034
32003
  }
32035
32004
  ),
32036
- error2 && !isEditTable && /* @__PURE__ */ jsx91("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32005
+ error2 && !isEditTable && /* @__PURE__ */ jsx92("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32037
32006
  ] });
32038
32007
  }
32039
32008
  }
@@ -32042,7 +32011,7 @@ var FloatField = (props) => {
32042
32011
 
32043
32012
  // src/widgets/basic/float-time-field/float-time.tsx
32044
32013
  import { useState as useState20 } from "react";
32045
- import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs62 } from "react/jsx-runtime";
32014
+ import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs62 } from "react/jsx-runtime";
32046
32015
  var FloatTimeField = (props) => {
32047
32016
  const {
32048
32017
  name: name2,
@@ -32058,9 +32027,9 @@ var FloatTimeField = (props) => {
32058
32027
  const { t: t3 } = useI18n();
32059
32028
  if (!isForm) {
32060
32029
  const formatValue = value ?? 0;
32061
- return /* @__PURE__ */ jsx92("span", { children: convertFloatToTime(formatValue) });
32030
+ return /* @__PURE__ */ jsx93("span", { children: convertFloatToTime(formatValue) });
32062
32031
  }
32063
- return /* @__PURE__ */ jsx92(
32032
+ return /* @__PURE__ */ jsx93(
32064
32033
  Controller,
32065
32034
  {
32066
32035
  name: name2 ?? "",
@@ -32123,7 +32092,7 @@ var FloatTimeField = (props) => {
32123
32092
  onBlur();
32124
32093
  };
32125
32094
  return /* @__PURE__ */ jsxs62(Fragment27, { children: [
32126
- /* @__PURE__ */ jsx92(
32095
+ /* @__PURE__ */ jsx93(
32127
32096
  "input",
32128
32097
  {
32129
32098
  type: "text",
@@ -32155,7 +32124,7 @@ var FloatTimeField = (props) => {
32155
32124
  readOnly: readonly
32156
32125
  }
32157
32126
  ),
32158
- (error2 || errors) && /* @__PURE__ */ jsx92("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32127
+ (error2 || errors) && /* @__PURE__ */ jsx93("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32159
32128
  ] });
32160
32129
  }
32161
32130
  }
@@ -32164,7 +32133,7 @@ var FloatTimeField = (props) => {
32164
32133
 
32165
32134
  // src/widgets/basic/html-field/html.tsx
32166
32135
  import { useEffect as useEffect21, useRef as useRef17 } from "react";
32167
- import { jsx as jsx93 } from "react/jsx-runtime";
32136
+ import { jsx as jsx94 } from "react/jsx-runtime";
32168
32137
  var HtmlField = (props) => {
32169
32138
  const {
32170
32139
  name: name2,
@@ -32178,9 +32147,9 @@ var HtmlField = (props) => {
32178
32147
  } = props;
32179
32148
  const divRef = useRef17(null);
32180
32149
  if (!isForm && !isEditTable) {
32181
- return /* @__PURE__ */ jsx93("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32150
+ return /* @__PURE__ */ jsx94("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32182
32151
  }
32183
- return /* @__PURE__ */ jsx93(
32152
+ return /* @__PURE__ */ jsx94(
32184
32153
  Controller,
32185
32154
  {
32186
32155
  name: name2 ?? "",
@@ -32199,7 +32168,7 @@ var HtmlField = (props) => {
32199
32168
  onChange2(newValue, "");
32200
32169
  }
32201
32170
  };
32202
- return /* @__PURE__ */ jsx93(
32171
+ return /* @__PURE__ */ jsx94(
32203
32172
  "div",
32204
32173
  {
32205
32174
  ref: divRef,
@@ -32218,28 +32187,28 @@ var HtmlField = (props) => {
32218
32187
  };
32219
32188
 
32220
32189
  // src/widgets/basic/image-field/image.tsx
32221
- import { jsx as jsx94 } from "react/jsx-runtime";
32190
+ import { jsx as jsx95 } from "react/jsx-runtime";
32222
32191
  var ImageField = (props) => {
32223
32192
  const { value, type, name: name2, baseURL } = props;
32224
32193
  if (!value) return null;
32225
32194
  if (type === "url") {
32226
- return /* @__PURE__ */ jsx94("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32195
+ return /* @__PURE__ */ jsx95("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32227
32196
  }
32228
- return /* @__PURE__ */ jsx94("div", { id: "qr-code", children: /* @__PURE__ */ jsx94("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32197
+ return /* @__PURE__ */ jsx95("div", { id: "qr-code", children: /* @__PURE__ */ jsx95("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32229
32198
  };
32230
32199
 
32231
32200
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32232
32201
  import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
32233
32202
 
32234
32203
  // src/widgets/basic/information-field/information.tsx
32235
- import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32204
+ import { Fragment as Fragment28, jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
32236
32205
  var InfomationField = (props) => {
32237
32206
  const { value, isForm = false, showName = true, stringToColor } = props;
32238
32207
  if (!value || Array.isArray(value) && value.length === 0) {
32239
- return /* @__PURE__ */ jsx95(Fragment28, {});
32208
+ return /* @__PURE__ */ jsx96(Fragment28, {});
32240
32209
  }
32241
32210
  const inforValues = Array.isArray(value) ? value : [value];
32242
- return /* @__PURE__ */ jsx95("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx95(
32211
+ return /* @__PURE__ */ jsx96("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx96(
32243
32212
  AvatarField,
32244
32213
  {
32245
32214
  id: item.id,
@@ -32249,7 +32218,7 @@ var InfomationField = (props) => {
32249
32218
  },
32250
32219
  item.id
32251
32220
  )) : /* @__PURE__ */ jsxs63("div", { className: "flex gap-2 items-center w-max", children: [
32252
- /* @__PURE__ */ jsx95(
32221
+ /* @__PURE__ */ jsx96(
32253
32222
  AvatarField,
32254
32223
  {
32255
32224
  avatarSrc: inforValues[0].image_256,
@@ -32259,12 +32228,12 @@ var InfomationField = (props) => {
32259
32228
  stringToColor
32260
32229
  }
32261
32230
  ),
32262
- showName && /* @__PURE__ */ jsx95("span", { className: "capitalize", children: inforValues[0].display_name })
32231
+ showName && /* @__PURE__ */ jsx96("span", { className: "capitalize", children: inforValues[0].display_name })
32263
32232
  ] }) });
32264
32233
  };
32265
32234
 
32266
32235
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32267
- import { jsx as jsx96, jsxs as jsxs64 } from "react/jsx-runtime";
32236
+ import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32268
32237
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32269
32238
  const { selectProps, data, menuList } = props;
32270
32239
  const { relation } = selectProps;
@@ -32274,7 +32243,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32274
32243
  )
32275
32244
  )?.[0]?.action?.id;
32276
32245
  return /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32277
- /* @__PURE__ */ jsx96(
32246
+ /* @__PURE__ */ jsx97(
32278
32247
  AvatarField,
32279
32248
  {
32280
32249
  id: data?.id,
@@ -32286,8 +32255,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32286
32255
  stringToColor
32287
32256
  }
32288
32257
  ),
32289
- /* @__PURE__ */ jsx96("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32290
- /* @__PURE__ */ jsx96(
32258
+ /* @__PURE__ */ jsx97("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32259
+ /* @__PURE__ */ jsx97(
32291
32260
  "span",
32292
32261
  {
32293
32262
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32295,7 +32264,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32295
32264
  e3.stopPropagation();
32296
32265
  props.removeProps.onClick();
32297
32266
  },
32298
- children: /* @__PURE__ */ jsx96(CloseIcon, {})
32267
+ children: /* @__PURE__ */ jsx97(CloseIcon, {})
32299
32268
  }
32300
32269
  )
32301
32270
  ] });
@@ -32352,7 +32321,7 @@ var Many2ManyTagField = (props) => {
32352
32321
  value: item.id,
32353
32322
  label: item.name ?? item.display_name
32354
32323
  })) : [];
32355
- return /* @__PURE__ */ jsx96(
32324
+ return /* @__PURE__ */ jsx97(
32356
32325
  InfomationField,
32357
32326
  {
32358
32327
  value: optionValue || null,
@@ -32361,7 +32330,7 @@ var Many2ManyTagField = (props) => {
32361
32330
  }
32362
32331
  );
32363
32332
  }
32364
- return /* @__PURE__ */ jsx96(
32333
+ return /* @__PURE__ */ jsx97(
32365
32334
  Controller,
32366
32335
  {
32367
32336
  name: name2 ?? "",
@@ -32398,7 +32367,7 @@ var Many2ManyTagField = (props) => {
32398
32367
  clearErrors(name2);
32399
32368
  };
32400
32369
  return /* @__PURE__ */ jsxs64("div", { className: "group h-full overflow-y-auto", children: [
32401
- /* @__PURE__ */ jsx96(
32370
+ /* @__PURE__ */ jsx97(
32402
32371
  StateManagedSelect$1,
32403
32372
  {
32404
32373
  options: options2,
@@ -32476,7 +32445,7 @@ var Many2ManyTagField = (props) => {
32476
32445
  })
32477
32446
  },
32478
32447
  components: isUser ? {
32479
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx96(
32448
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx97(
32480
32449
  CustomMultiValue,
32481
32450
  {
32482
32451
  ...multiValueProps,
@@ -32485,7 +32454,7 @@ var Many2ManyTagField = (props) => {
32485
32454
  ),
32486
32455
  IndicatorSeparator: () => null
32487
32456
  } : {
32488
- MenuList: (menuListProps) => /* @__PURE__ */ jsx96(
32457
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx97(
32489
32458
  CustomMenuList,
32490
32459
  {
32491
32460
  ...menuListProps,
@@ -32496,13 +32465,13 @@ var Many2ManyTagField = (props) => {
32496
32465
  }
32497
32466
  ),
32498
32467
  IndicatorSeparator: () => null,
32499
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx96(components.DropdownIndicator, { ...props2 }),
32500
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx96(components.ClearIndicator, { ...props2 })
32468
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx97(components.DropdownIndicator, { ...props2 }),
32469
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx97(components.ClearIndicator, { ...props2 })
32501
32470
  },
32502
32471
  required: !invisible && required
32503
32472
  }
32504
32473
  ),
32505
- !isEditTable && error2 && /* @__PURE__ */ jsx96("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32474
+ !isEditTable && error2 && /* @__PURE__ */ jsx97("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32506
32475
  ] });
32507
32476
  }
32508
32477
  }
@@ -32511,7 +32480,7 @@ var Many2ManyTagField = (props) => {
32511
32480
 
32512
32481
  // src/widgets/basic/monetary-field/monetary.tsx
32513
32482
  import { useEffect as useEffect23 } from "react";
32514
- import { Fragment as Fragment29, jsx as jsx97, jsxs as jsxs65 } from "react/jsx-runtime";
32483
+ import { Fragment as Fragment29, jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
32515
32484
  var MonetaryField = (props) => {
32516
32485
  const { t: t3 } = useI18n();
32517
32486
  const {
@@ -32536,21 +32505,21 @@ var MonetaryField = (props) => {
32536
32505
  string,
32537
32506
  ":"
32538
32507
  ] }),
32539
- /* @__PURE__ */ jsx97("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32508
+ /* @__PURE__ */ jsx98("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32540
32509
  ] });
32541
32510
  }
32542
32511
  if (!isForm) {
32543
32512
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32544
32513
  if (widget === "monetary" && !formValues?.currency_id) {
32545
- return /* @__PURE__ */ jsx97("span", { children: `${formatNumberOnly(
32514
+ return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
32546
32515
  parseFloat(String(value ?? defaultValue))
32547
32516
  )} VND` });
32548
32517
  }
32549
- return /* @__PURE__ */ jsx97("span", { children: `${formatNumberOnly(
32518
+ return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
32550
32519
  parseFloat(value ?? defaultValue)
32551
32520
  )} ${currencySymbol}` });
32552
32521
  }
32553
- return /* @__PURE__ */ jsx97(
32522
+ return /* @__PURE__ */ jsx98(
32554
32523
  Controller,
32555
32524
  {
32556
32525
  name: name2 ?? "",
@@ -32570,7 +32539,7 @@ var MonetaryField = (props) => {
32570
32539
  }
32571
32540
  }, [value2]);
32572
32541
  return /* @__PURE__ */ jsxs65(Fragment29, { children: [
32573
- /* @__PURE__ */ jsx97(
32542
+ /* @__PURE__ */ jsx98(
32574
32543
  "input",
32575
32544
  {
32576
32545
  value: formatNumberOnly(value2),
@@ -32608,7 +32577,7 @@ var MonetaryField = (props) => {
32608
32577
  `
32609
32578
  }
32610
32579
  ),
32611
- !isEditTable && error2 && /* @__PURE__ */ jsx97("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32580
+ !isEditTable && error2 && /* @__PURE__ */ jsx98("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32612
32581
  ] });
32613
32582
  }
32614
32583
  }
@@ -32616,14 +32585,14 @@ var MonetaryField = (props) => {
32616
32585
  };
32617
32586
 
32618
32587
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32619
- import { jsx as jsx98 } from "react/jsx-runtime";
32588
+ import { jsx as jsx99 } from "react/jsx-runtime";
32620
32589
  var PaidBadgedField = () => {
32621
- return /* @__PURE__ */ jsx98("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx98(PaidIcon, {}) });
32590
+ return /* @__PURE__ */ jsx99("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx99(PaidIcon, {}) });
32622
32591
  };
32623
32592
 
32624
32593
  // src/widgets/basic/priority-field/rating-star.tsx
32625
32594
  import React17, { useEffect as useEffect24, useState as useState21 } from "react";
32626
- import { jsx as jsx99, jsxs as jsxs66 } from "react/jsx-runtime";
32595
+ import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32627
32596
  var RatingStarField = (props) => {
32628
32597
  const {
32629
32598
  label,
@@ -32658,7 +32627,7 @@ var RatingStarField = (props) => {
32658
32627
  setHover(0);
32659
32628
  setRating(0);
32660
32629
  };
32661
- return /* @__PURE__ */ jsx99(
32630
+ return /* @__PURE__ */ jsx100(
32662
32631
  "div",
32663
32632
  {
32664
32633
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32669,16 +32638,16 @@ var RatingStarField = (props) => {
32669
32638
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32670
32639
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32671
32640
  return /* @__PURE__ */ jsxs66(React17.Fragment, { children: [
32672
- /* @__PURE__ */ jsx99(
32641
+ /* @__PURE__ */ jsx100(
32673
32642
  "div",
32674
32643
  {
32675
32644
  onMouseEnter: () => handleHover(starValue),
32676
32645
  onClick: () => handleClick(starValue),
32677
32646
  "data-tooltip-id": `${id}-${starValue}`,
32678
- children: /* @__PURE__ */ jsx99(StarIcon, { fill: fillColor, stroke: strokeColor })
32647
+ children: /* @__PURE__ */ jsx100(StarIcon, { fill: fillColor, stroke: strokeColor })
32679
32648
  }
32680
32649
  ),
32681
- /* @__PURE__ */ jsx99(
32650
+ /* @__PURE__ */ jsx100(
32682
32651
  M,
32683
32652
  {
32684
32653
  className: "z-50",
@@ -32694,7 +32663,7 @@ var RatingStarField = (props) => {
32694
32663
  };
32695
32664
 
32696
32665
  // src/widgets/basic/priority-field/priority.tsx
32697
- import { jsx as jsx100 } from "react/jsx-runtime";
32666
+ import { jsx as jsx101 } from "react/jsx-runtime";
32698
32667
  var PriorityField = (props) => {
32699
32668
  const {
32700
32669
  isForm,
@@ -32710,7 +32679,7 @@ var PriorityField = (props) => {
32710
32679
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32711
32680
  const defaultPriority = parseInt(value) + 1;
32712
32681
  if (!isForm) {
32713
- return /* @__PURE__ */ jsx100(
32682
+ return /* @__PURE__ */ jsx101(
32714
32683
  RatingStarField,
32715
32684
  {
32716
32685
  label,
@@ -32721,7 +32690,7 @@ var PriorityField = (props) => {
32721
32690
  }
32722
32691
  );
32723
32692
  }
32724
- return /* @__PURE__ */ jsx100(
32693
+ return /* @__PURE__ */ jsx101(
32725
32694
  Controller,
32726
32695
  {
32727
32696
  name: name ?? "",
@@ -32731,7 +32700,7 @@ var PriorityField = (props) => {
32731
32700
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32732
32701
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32733
32702
  };
32734
- return /* @__PURE__ */ jsx100(
32703
+ return /* @__PURE__ */ jsx101(
32735
32704
  RatingStarField,
32736
32705
  {
32737
32706
  label,
@@ -32748,7 +32717,7 @@ var PriorityField = (props) => {
32748
32717
 
32749
32718
  // src/widgets/basic/radio-group-field/radio-group.tsx
32750
32719
  import { useEffect as useEffect25 } from "react";
32751
- import { jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32720
+ import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
32752
32721
  var RadioGroupField = (props) => {
32753
32722
  const {
32754
32723
  name: name2,
@@ -32767,13 +32736,13 @@ var RadioGroupField = (props) => {
32767
32736
  }
32768
32737
  }, [selection, name2, setValue]);
32769
32738
  if (!methods) return null;
32770
- return /* @__PURE__ */ jsx101(
32739
+ return /* @__PURE__ */ jsx102(
32771
32740
  Controller,
32772
32741
  {
32773
32742
  name: name2 ?? "",
32774
32743
  control: methods.control,
32775
- render: ({ field }) => /* @__PURE__ */ jsx101("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-1", children: [
32776
- /* @__PURE__ */ jsx101(
32744
+ render: ({ field }) => /* @__PURE__ */ jsx102("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-1", children: [
32745
+ /* @__PURE__ */ jsx102(
32777
32746
  "input",
32778
32747
  {
32779
32748
  type: "radio",
@@ -32792,7 +32761,7 @@ var RadioGroupField = (props) => {
32792
32761
  className: "custom-radio"
32793
32762
  }
32794
32763
  ),
32795
- /* @__PURE__ */ jsx101("label", { htmlFor: String(select[0]), children: select[1] })
32764
+ /* @__PURE__ */ jsx102("label", { htmlFor: String(select[0]), children: select[1] })
32796
32765
  ] }, select[0])) })
32797
32766
  }
32798
32767
  );
@@ -32800,7 +32769,7 @@ var RadioGroupField = (props) => {
32800
32769
 
32801
32770
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32802
32771
  var import_moment3 = __toESM(require_moment());
32803
- import { jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
32772
+ import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32804
32773
  var RemainingDaysField = (props) => {
32805
32774
  const {
32806
32775
  value,
@@ -32812,13 +32781,13 @@ var RemainingDaysField = (props) => {
32812
32781
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32813
32782
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32814
32783
  return /* @__PURE__ */ jsxs68("div", { className: isForm ? "mb-4" : "", children: [
32815
- /* @__PURE__ */ jsx102(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32816
- /* @__PURE__ */ jsx102(
32784
+ /* @__PURE__ */ jsx103(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32785
+ /* @__PURE__ */ jsx103(
32817
32786
  "div",
32818
32787
  {
32819
32788
  "data-tooltip-id": `remainingDays_${value}`,
32820
32789
  className: "flex items-center w-fit cursor-context-menu",
32821
- children: /* @__PURE__ */ jsx102(
32790
+ children: /* @__PURE__ */ jsx103(
32822
32791
  "div",
32823
32792
  {
32824
32793
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32831,7 +32800,7 @@ var RemainingDaysField = (props) => {
32831
32800
  };
32832
32801
 
32833
32802
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32834
- import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs69 } from "react/jsx-runtime";
32803
+ import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32835
32804
  var SelectDropdownField = (props) => {
32836
32805
  const { t: t3 } = useI18n();
32837
32806
  const {
@@ -32853,9 +32822,9 @@ var SelectDropdownField = (props) => {
32853
32822
  label: val[1]
32854
32823
  })) : [];
32855
32824
  if (!isForm && !isEditTable) {
32856
- return /* @__PURE__ */ jsx103("span", { children: options2?.find((item) => item?.value === value)?.label });
32825
+ return /* @__PURE__ */ jsx104("span", { children: options2?.find((item) => item?.value === value)?.label });
32857
32826
  } else {
32858
- return /* @__PURE__ */ jsx103(
32827
+ return /* @__PURE__ */ jsx104(
32859
32828
  Controller,
32860
32829
  {
32861
32830
  name: name2 || "",
@@ -32883,7 +32852,7 @@ var SelectDropdownField = (props) => {
32883
32852
  required: !invisible && required
32884
32853
  };
32885
32854
  return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32886
- /* @__PURE__ */ jsx103("div", { className: "group", children: /* @__PURE__ */ jsx103(
32855
+ /* @__PURE__ */ jsx104("div", { className: "group", children: /* @__PURE__ */ jsx104(
32887
32856
  StateManagedSelect$1,
32888
32857
  {
32889
32858
  ...commonProps,
@@ -32938,12 +32907,12 @@ var SelectDropdownField = (props) => {
32938
32907
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32939
32908
  components: {
32940
32909
  IndicatorSeparator: () => null,
32941
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx103(components.DropdownIndicator, { ...props2 })
32910
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx104(components.DropdownIndicator, { ...props2 })
32942
32911
  },
32943
32912
  noOptionsMessage: () => t3("no-available")
32944
32913
  }
32945
32914
  ) }),
32946
- !isEditTable && error2 && /* @__PURE__ */ jsx103("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32915
+ !isEditTable && error2 && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32947
32916
  ] });
32948
32917
  }
32949
32918
  }
@@ -32952,7 +32921,7 @@ var SelectDropdownField = (props) => {
32952
32921
  };
32953
32922
 
32954
32923
  // src/widgets/basic/textarea-field/textarea.tsx
32955
- import { jsx as jsx104 } from "react/jsx-runtime";
32924
+ import { jsx as jsx105 } from "react/jsx-runtime";
32956
32925
  var TextAreaField = (props) => {
32957
32926
  const {
32958
32927
  methods,
@@ -32976,9 +32945,9 @@ var TextAreaField = (props) => {
32976
32945
  }
32977
32946
  }) : {};
32978
32947
  if (!isForm) {
32979
- return /* @__PURE__ */ jsx104("span", { children: value && typeof value === "object" ? value.display_name : value });
32948
+ return /* @__PURE__ */ jsx105("span", { children: value && typeof value === "object" ? value.display_name : value });
32980
32949
  }
32981
- return /* @__PURE__ */ jsx104(
32950
+ return /* @__PURE__ */ jsx105(
32982
32951
  "textarea",
32983
32952
  {
32984
32953
  ...formProps,
@@ -32994,7 +32963,7 @@ var TextAreaField = (props) => {
32994
32963
  };
32995
32964
 
32996
32965
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32997
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32966
+ import { jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
32998
32967
  var ToggleButtonField = (props) => {
32999
32968
  const {
33000
32969
  name: name2,
@@ -33004,13 +32973,13 @@ var ToggleButtonField = (props) => {
33004
32973
  onChange: onChange2,
33005
32974
  methods
33006
32975
  } = props;
33007
- return /* @__PURE__ */ jsx105(
32976
+ return /* @__PURE__ */ jsx106(
33008
32977
  Controller,
33009
32978
  {
33010
32979
  name: name2 ?? "",
33011
32980
  control: methods?.control,
33012
- render: ({ field }) => /* @__PURE__ */ jsx105("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs70("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33013
- /* @__PURE__ */ jsx105(
32981
+ render: ({ field }) => /* @__PURE__ */ jsx106("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs70("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32982
+ /* @__PURE__ */ jsx106(
33014
32983
  "input",
33015
32984
  {
33016
32985
  ...field,
@@ -33029,7 +32998,7 @@ var ToggleButtonField = (props) => {
33029
32998
  checked: field.value ?? false
33030
32999
  }
33031
33000
  ),
33032
- /* @__PURE__ */ jsx105(
33001
+ /* @__PURE__ */ jsx106(
33033
33002
  "span",
33034
33003
  {
33035
33004
  style: {
@@ -33039,7 +33008,7 @@ var ToggleButtonField = (props) => {
33039
33008
  },
33040
33009
  className: `rounded-full transition duration-300
33041
33010
  `,
33042
- children: /* @__PURE__ */ jsx105(
33011
+ children: /* @__PURE__ */ jsx106(
33043
33012
  "span",
33044
33013
  {
33045
33014
  style: {
@@ -33064,7 +33033,7 @@ var ToggleButtonField = (props) => {
33064
33033
 
33065
33034
  // src/widgets/basic/integer-field/integer.tsx
33066
33035
  import { useEffect as useEffect26, useRef as useRef18, useState as useState22 } from "react";
33067
- import { Fragment as Fragment31, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33036
+ import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs71 } from "react/jsx-runtime";
33068
33037
  var IntegerField = (props) => {
33069
33038
  const {
33070
33039
  name: name2,
@@ -33083,9 +33052,9 @@ var IntegerField = (props) => {
33083
33052
  const { t: t3 } = useI18n();
33084
33053
  if (!isForm && !isEditTable) {
33085
33054
  const displayValue = value ?? defaultValue;
33086
- return /* @__PURE__ */ jsx106("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33055
+ return /* @__PURE__ */ jsx107("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33087
33056
  }
33088
- return /* @__PURE__ */ jsx106(
33057
+ return /* @__PURE__ */ jsx107(
33089
33058
  Controller,
33090
33059
  {
33091
33060
  name: name2 || "",
@@ -33164,7 +33133,7 @@ var IntegerField = (props) => {
33164
33133
  clearErrors(name2);
33165
33134
  };
33166
33135
  return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33167
- /* @__PURE__ */ jsx106(
33136
+ /* @__PURE__ */ jsx107(
33168
33137
  "input",
33169
33138
  {
33170
33139
  ref: inputRef,
@@ -33199,7 +33168,7 @@ var IntegerField = (props) => {
33199
33168
  `
33200
33169
  }
33201
33170
  ),
33202
- error2 && !isEditTable && /* @__PURE__ */ jsx106("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33171
+ error2 && !isEditTable && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33203
33172
  ] });
33204
33173
  }
33205
33174
  }
@@ -33207,7 +33176,7 @@ var IntegerField = (props) => {
33207
33176
  };
33208
33177
 
33209
33178
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33210
- import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33179
+ import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
33211
33180
  var StatusDropdownField = (props) => {
33212
33181
  const {
33213
33182
  buttonRef,
@@ -33225,7 +33194,7 @@ var StatusDropdownField = (props) => {
33225
33194
  ref: buttonRef,
33226
33195
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
33227
33196
  children: [
33228
- /* @__PURE__ */ jsx107(
33197
+ /* @__PURE__ */ jsx108(
33229
33198
  "button",
33230
33199
  {
33231
33200
  type: "button",
@@ -33233,7 +33202,7 @@ var StatusDropdownField = (props) => {
33233
33202
  className: `transition-all rounded-full size-5 cursor-pointer shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] focus:!shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-[#dbe0e6] ${state == "normal" ? "bg-[#e9ecef]" : state == "done" ? "bg-primary" : "bg-red-500"}`
33234
33203
  }
33235
33204
  ),
33236
- isOpen && /* @__PURE__ */ jsx107("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
33205
+ isOpen && /* @__PURE__ */ jsx108("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
33237
33206
  const isActive = item[0] == state;
33238
33207
  return /* @__PURE__ */ jsxs72(
33239
33208
  "div",
@@ -33241,15 +33210,15 @@ var StatusDropdownField = (props) => {
33241
33210
  className: `cursor-pointer relative hover:bg-gray-200 pl-[12px] pr-[20px] py-[5px] flex items-center justify-start gap-2 ${isActive ? "bg-gray-100" : ""}`,
33242
33211
  onClick: () => handleClick(item[0]),
33243
33212
  children: [
33244
- /* @__PURE__ */ jsx107("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx107(CheckIcon, {}) }),
33213
+ /* @__PURE__ */ jsx108("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx108(CheckIcon, {}) }),
33245
33214
  /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2", children: [
33246
- /* @__PURE__ */ jsx107(
33215
+ /* @__PURE__ */ jsx108(
33247
33216
  "div",
33248
33217
  {
33249
33218
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33250
33219
  }
33251
33220
  ),
33252
- /* @__PURE__ */ jsx107("span", { className: "text-sm", children: item[1] })
33221
+ /* @__PURE__ */ jsx108("span", { className: "text-sm", children: item[1] })
33253
33222
  ] })
33254
33223
  ]
33255
33224
  },
@@ -33264,7 +33233,7 @@ var StatusDropdownField = (props) => {
33264
33233
  // src/widgets/basic/many2many-field/many2many.tsx
33265
33234
  import { createPortal as createPortal6 } from "react-dom";
33266
33235
  import { useEffect as useEffect27 } from "react";
33267
- import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33236
+ import { jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
33268
33237
  var Many2ManyField = (props) => {
33269
33238
  const { t: t3 } = useI18n();
33270
33239
  const {
@@ -33346,8 +33315,8 @@ var Many2ManyField = (props) => {
33346
33315
  },
33347
33316
  className: "fixed bottom-0 left-0 right-0 top-0",
33348
33317
  children: [
33349
- /* @__PURE__ */ jsx108("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33350
- /* @__PURE__ */ jsx108("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs73(
33318
+ /* @__PURE__ */ jsx109("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33319
+ /* @__PURE__ */ jsx109("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs73(
33351
33320
  "div",
33352
33321
  {
33353
33322
  style: {
@@ -33356,11 +33325,11 @@ var Many2ManyField = (props) => {
33356
33325
  className: "relative p-4 flex flex-col gap-2 max-w-full lg:max-w-[1000px] lg:min-w-[1000px] transform rounded-3xl bg-[#FFF] min-h-[90%] max-h-[90%] h-fit",
33357
33326
  children: [
33358
33327
  /* @__PURE__ */ jsxs73("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33359
- /* @__PURE__ */ jsx108("div", { className: "text-[20px] font-semibold", children: title }),
33360
- /* @__PURE__ */ jsx108("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx108(CloseIcon, {}) })
33328
+ /* @__PURE__ */ jsx109("div", { className: "text-[20px] font-semibold", children: title }),
33329
+ /* @__PURE__ */ jsx109("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx109(CloseIcon, {}) })
33361
33330
  ] }),
33362
33331
  /* @__PURE__ */ jsxs73("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33363
- /* @__PURE__ */ jsx108("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx108(
33332
+ /* @__PURE__ */ jsx109("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx109(
33364
33333
  Search,
33365
33334
  {
33366
33335
  removeSearchItems,
@@ -33394,7 +33363,7 @@ var Many2ManyField = (props) => {
33394
33363
  groupByList
33395
33364
  }
33396
33365
  ) }),
33397
- /* @__PURE__ */ jsx108(
33366
+ /* @__PURE__ */ jsx109(
33398
33367
  PaginationView,
33399
33368
  {
33400
33369
  className: "pagination-bar col-span-1 justify-end flex-1",
@@ -33411,20 +33380,20 @@ var Many2ManyField = (props) => {
33411
33380
  }
33412
33381
  )
33413
33382
  ] }),
33414
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx108("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx108("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx108(
33383
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx109("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx109("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx109(
33415
33384
  "div",
33416
33385
  {
33417
33386
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33418
- children: /* @__PURE__ */ jsx108("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx108("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx108(
33387
+ children: /* @__PURE__ */ jsx109("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx109("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx109(
33419
33388
  "div",
33420
33389
  {
33421
33390
  className: `flex w-full items-center h-full overflow-auto `,
33422
- children: /* @__PURE__ */ jsx108("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs73(
33391
+ children: /* @__PURE__ */ jsx109("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs73(
33423
33392
  "table",
33424
33393
  {
33425
33394
  className: `relative w-full bg-white custom-dropdown `,
33426
33395
  children: [
33427
- /* @__PURE__ */ jsx108(
33396
+ /* @__PURE__ */ jsx109(
33428
33397
  TableHead,
33429
33398
  {
33430
33399
  columns,
@@ -33434,7 +33403,7 @@ var Many2ManyField = (props) => {
33434
33403
  handleCheckBoxAll
33435
33404
  }
33436
33405
  ),
33437
- rows?.length > 0 ? /* @__PURE__ */ jsx108(
33406
+ rows?.length > 0 ? /* @__PURE__ */ jsx109(
33438
33407
  TableBody,
33439
33408
  {
33440
33409
  tableGroupController,
@@ -33474,16 +33443,16 @@ var Many2ManyField = (props) => {
33474
33443
  checkedAll,
33475
33444
  context
33476
33445
  }
33477
- ) : /* @__PURE__ */ jsx108("tr", { children: /* @__PURE__ */ jsx108(
33446
+ ) : /* @__PURE__ */ jsx109("tr", { children: /* @__PURE__ */ jsx109(
33478
33447
  "td",
33479
33448
  {
33480
33449
  className: "w-full",
33481
33450
  colSpan: columns?.length + 2,
33482
- children: /* @__PURE__ */ jsx108(
33451
+ children: /* @__PURE__ */ jsx109(
33483
33452
  "div",
33484
33453
  {
33485
33454
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33486
- children: /* @__PURE__ */ jsx108(EmptyTable, {})
33455
+ children: /* @__PURE__ */ jsx109(EmptyTable, {})
33487
33456
  }
33488
33457
  )
33489
33458
  }
@@ -33494,9 +33463,9 @@ var Many2ManyField = (props) => {
33494
33463
  }
33495
33464
  ) }) })
33496
33465
  }
33497
- ) }) }) : /* @__PURE__ */ jsx108(LayerLoading, {}),
33466
+ ) }) }) : /* @__PURE__ */ jsx109(LayerLoading, {}),
33498
33467
  /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2 mt-auto", children: [
33499
- isDisplayCheckbox && /* @__PURE__ */ jsx108(
33468
+ isDisplayCheckbox && /* @__PURE__ */ jsx109(
33500
33469
  "button",
33501
33470
  {
33502
33471
  disabled: selectedRowKeys?.length === 0,
@@ -33506,7 +33475,7 @@ var Many2ManyField = (props) => {
33506
33475
  children: t3("choose")
33507
33476
  }
33508
33477
  ),
33509
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx108(
33478
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx109(
33510
33479
  "button",
33511
33480
  {
33512
33481
  type: "button",
@@ -33522,7 +33491,7 @@ var Many2ManyField = (props) => {
33522
33491
  children: t3("new")
33523
33492
  }
33524
33493
  ),
33525
- /* @__PURE__ */ jsx108(
33494
+ /* @__PURE__ */ jsx109(
33526
33495
  "button",
33527
33496
  {
33528
33497
  type: "button",
@@ -33544,7 +33513,7 @@ var Many2ManyField = (props) => {
33544
33513
 
33545
33514
  // src/widgets/basic/many2one-field/many2one.tsx
33546
33515
  import React18, { useEffect as useEffect28 } from "react";
33547
- import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33516
+ import { Fragment as Fragment32, jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
33548
33517
  var CustomMenuList2 = (props) => {
33549
33518
  const { t: t3 } = useI18n();
33550
33519
  const { options: options2, children, selectProps } = props;
@@ -33602,7 +33571,7 @@ var Many2OneField = (props) => {
33602
33571
  context: contextObject,
33603
33572
  idForm: id
33604
33573
  }),
33605
- /* @__PURE__ */ jsx109(
33574
+ /* @__PURE__ */ jsx110(
33606
33575
  "span",
33607
33576
  {
33608
33577
  className: "cursor-pointer",
@@ -33620,13 +33589,13 @@ var Many2OneField = (props) => {
33620
33589
  context: contextObject,
33621
33590
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33622
33591
  }),
33623
- /* @__PURE__ */ jsx109(
33592
+ /* @__PURE__ */ jsx110(
33624
33593
  "div",
33625
33594
  {
33626
33595
  id: name2,
33627
33596
  "data-tooltip-id": name2,
33628
33597
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33629
- children: /* @__PURE__ */ jsx109(
33598
+ children: /* @__PURE__ */ jsx110(
33630
33599
  Controller,
33631
33600
  {
33632
33601
  name: name2 ?? "",
@@ -33652,7 +33621,7 @@ var Many2OneField = (props) => {
33652
33621
  }
33653
33622
  }, [selectedOption]);
33654
33623
  return /* @__PURE__ */ jsxs74("div", { className: "h-full", children: [
33655
- /* @__PURE__ */ jsx109(
33624
+ /* @__PURE__ */ jsx110(
33656
33625
  StateManagedSelect$1,
33657
33626
  {
33658
33627
  menuShouldScrollIntoView: false,
@@ -33728,7 +33697,7 @@ var Many2OneField = (props) => {
33728
33697
  })
33729
33698
  },
33730
33699
  components: {
33731
- MenuList: (menuListProps) => /* @__PURE__ */ jsx109(
33700
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx110(
33732
33701
  CustomMenuList2,
33733
33702
  {
33734
33703
  ...menuListProps,
@@ -33739,13 +33708,13 @@ var Many2OneField = (props) => {
33739
33708
  }
33740
33709
  ),
33741
33710
  IndicatorSeparator: () => null,
33742
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx109(components.DropdownIndicator, { ...props2 })
33711
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx110(components.DropdownIndicator, { ...props2 })
33743
33712
  },
33744
33713
  isDisabled: readonly,
33745
33714
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33746
33715
  }
33747
33716
  ),
33748
- !isEditTable && error2 && /* @__PURE__ */ jsx109("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33717
+ !isEditTable && error2 && /* @__PURE__ */ jsx110("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33749
33718
  ] });
33750
33719
  }
33751
33720
  }
@@ -33756,7 +33725,7 @@ var Many2OneField = (props) => {
33756
33725
  };
33757
33726
 
33758
33727
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33759
- import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33728
+ import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
33760
33729
  var StatusbarDurationField = (props) => {
33761
33730
  const {
33762
33731
  disabled,
@@ -33766,12 +33735,12 @@ var StatusbarDurationField = (props) => {
33766
33735
  defaultValue,
33767
33736
  setModalStatus
33768
33737
  } = props;
33769
- return /* @__PURE__ */ jsx110(
33738
+ return /* @__PURE__ */ jsx111(
33770
33739
  "div",
33771
33740
  {
33772
33741
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33773
33742
  children: /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-[24px]", children: [
33774
- /* @__PURE__ */ jsx110("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33743
+ /* @__PURE__ */ jsx111("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33775
33744
  const value = option?.id === defaultValue;
33776
33745
  return /* @__PURE__ */ jsxs75(
33777
33746
  "label",
@@ -33783,7 +33752,7 @@ var StatusbarDurationField = (props) => {
33783
33752
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33784
33753
  `,
33785
33754
  children: [
33786
- /* @__PURE__ */ jsx110(
33755
+ /* @__PURE__ */ jsx111(
33787
33756
  "input",
33788
33757
  {
33789
33758
  type: "radio",
@@ -33793,7 +33762,7 @@ var StatusbarDurationField = (props) => {
33793
33762
  }
33794
33763
  ),
33795
33764
  option?.name,
33796
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx110(
33765
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx111(
33797
33766
  "div",
33798
33767
  {
33799
33768
  className: `absolute top-[5px] bg-[#dee2e6] z-[2] -right-4 w-[30px] h-[30px] border-t-4 border-r-4 border-white transform rotate-45 group-hover:bg-[#ced4da]
@@ -33814,8 +33783,8 @@ var StatusbarDurationField = (props) => {
33814
33783
  onClick: () => setModalStatus(!modelStatus),
33815
33784
  className: "w-[24px] h-[24px] cursor-pointer relative",
33816
33785
  children: [
33817
- /* @__PURE__ */ jsx110(MoreIcon, {}),
33818
- modelStatus && /* @__PURE__ */ jsx110(
33786
+ /* @__PURE__ */ jsx111(MoreIcon, {}),
33787
+ modelStatus && /* @__PURE__ */ jsx111(
33819
33788
  "div",
33820
33789
  {
33821
33790
  onClick: (e3) => e3.stopPropagation(),
@@ -33824,7 +33793,7 @@ var StatusbarDurationField = (props) => {
33824
33793
  (item) => item?.fold && item.id !== defaultValue
33825
33794
  )?.map((option) => {
33826
33795
  const value = option?.id === defaultValue;
33827
- return /* @__PURE__ */ jsx110(
33796
+ return /* @__PURE__ */ jsx111(
33828
33797
  "div",
33829
33798
  {
33830
33799
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33846,14 +33815,14 @@ var StatusbarDurationField = (props) => {
33846
33815
 
33847
33816
  // src/widgets/basic/status-bar-field/option/option.tsx
33848
33817
  import { useMemo as useMemo11 } from "react";
33849
- import { Fragment as Fragment33, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
33818
+ import { Fragment as Fragment33, jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
33850
33819
  var StatusBarOptionField = (props) => {
33851
33820
  const { selection, defaultValue } = props;
33852
33821
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33853
33822
  const indexInProgress = memoizedStatusOptions?.findIndex(
33854
33823
  (option) => option?.[0] === defaultValue
33855
33824
  );
33856
- return /* @__PURE__ */ jsx111(
33825
+ return /* @__PURE__ */ jsx112(
33857
33826
  "div",
33858
33827
  {
33859
33828
  style: {
@@ -33881,7 +33850,7 @@ var StatusBarOptionField = (props) => {
33881
33850
  boxShadow: index4 === indexInProgress ? "0 1px 2px 0 rgba(51, 51, 51, 0.04), 0 2px 4px 0 rgba(51, 51, 51, 0.04), 0 4px 8px -2px rgba(51, 51, 51, 0.06), 0 0 0 1px rgba(51, 51, 51, 0.04), 0 -1px 1px -0.5px rgba(51, 51, 51, 0.06) inset" : ""
33882
33851
  },
33883
33852
  children: [
33884
- /* @__PURE__ */ jsx111(
33853
+ /* @__PURE__ */ jsx112(
33885
33854
  "span",
33886
33855
  {
33887
33856
  style: {
@@ -33893,10 +33862,10 @@ var StatusBarOptionField = (props) => {
33893
33862
  alignItems: "center",
33894
33863
  borderRadius: "100%"
33895
33864
  },
33896
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx111(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx111(ICCircle, {}) : /* @__PURE__ */ jsx111(ICMinus, {})
33865
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx112(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx112(ICCircle, {}) : /* @__PURE__ */ jsx112(ICMinus, {})
33897
33866
  }
33898
33867
  ),
33899
- /* @__PURE__ */ jsx111(
33868
+ /* @__PURE__ */ jsx112(
33900
33869
  "span",
33901
33870
  {
33902
33871
  style: {
@@ -33909,7 +33878,7 @@ var StatusBarOptionField = (props) => {
33909
33878
  },
33910
33879
  option?.[0]
33911
33880
  ),
33912
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx111(
33881
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx112(
33913
33882
  "div",
33914
33883
  {
33915
33884
  style: {
@@ -33925,7 +33894,7 @@ var StatusBarOptionField = (props) => {
33925
33894
  );
33926
33895
  };
33927
33896
  var ICMinus = () => {
33928
- return /* @__PURE__ */ jsx111(
33897
+ return /* @__PURE__ */ jsx112(
33929
33898
  "svg",
33930
33899
  {
33931
33900
  xmlns: "http://www.w3.org/2000/svg",
@@ -33933,7 +33902,7 @@ var ICMinus = () => {
33933
33902
  height: "16",
33934
33903
  viewBox: "0 0 16 16",
33935
33904
  fill: "none",
33936
- children: /* @__PURE__ */ jsx111(
33905
+ children: /* @__PURE__ */ jsx112(
33937
33906
  "path",
33938
33907
  {
33939
33908
  d: "M4 8H12",
@@ -33947,7 +33916,7 @@ var ICMinus = () => {
33947
33916
  );
33948
33917
  };
33949
33918
  var ICCircle = () => {
33950
- return /* @__PURE__ */ jsx111(
33919
+ return /* @__PURE__ */ jsx112(
33951
33920
  "svg",
33952
33921
  {
33953
33922
  xmlns: "http://www.w3.org/2000/svg",
@@ -33955,12 +33924,12 @@ var ICCircle = () => {
33955
33924
  height: "8",
33956
33925
  viewBox: "0 0 8 8",
33957
33926
  fill: "none",
33958
- children: /* @__PURE__ */ jsx111("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33927
+ children: /* @__PURE__ */ jsx112("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33959
33928
  }
33960
33929
  );
33961
33930
  };
33962
33931
  var ICCheck = () => {
33963
- return /* @__PURE__ */ jsx111(
33932
+ return /* @__PURE__ */ jsx112(
33964
33933
  "svg",
33965
33934
  {
33966
33935
  xmlns: "http://www.w3.org/2000/svg",
@@ -33968,7 +33937,7 @@ var ICCheck = () => {
33968
33937
  height: "16",
33969
33938
  viewBox: "0 0 16 16",
33970
33939
  fill: "none",
33971
- children: /* @__PURE__ */ jsx111(
33940
+ children: /* @__PURE__ */ jsx112(
33972
33941
  "path",
33973
33942
  {
33974
33943
  d: "M13.3408 5.23535L13.252 5.32324L6.88867 11.6875L6.7998 11.7764L6.71191 11.6875L2.89258 7.86914L2.80469 7.78125L2.89258 7.69238L3.74121 6.84375L3.83008 6.75586L6.7998 9.72559L12.2266 4.29785L12.3154 4.20996L13.3408 5.23535Z",
@@ -33982,7 +33951,7 @@ var ICCheck = () => {
33982
33951
  };
33983
33952
 
33984
33953
  // src/widgets/basic/date-option-field/date-option.tsx
33985
- import { jsx as jsx112, jsxs as jsxs77 } from "react/jsx-runtime";
33954
+ import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
33986
33955
  var DateOptionField = (props) => {
33987
33956
  const {
33988
33957
  name: name2,
@@ -33993,7 +33962,7 @@ var DateOptionField = (props) => {
33993
33962
  string,
33994
33963
  onChange: onChange2
33995
33964
  } = props;
33996
- return /* @__PURE__ */ jsx112(
33965
+ return /* @__PURE__ */ jsx113(
33997
33966
  Controller,
33998
33967
  {
33999
33968
  name: name2 ?? "",
@@ -34005,7 +33974,7 @@ var DateOptionField = (props) => {
34005
33974
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34006
33975
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34007
33976
  children: [
34008
- /* @__PURE__ */ jsx112(
33977
+ /* @__PURE__ */ jsx113(
34009
33978
  "input",
34010
33979
  {
34011
33980
  type: "checkbox",
@@ -34071,6 +34040,7 @@ export {
34071
34040
  EyeIcon,
34072
34041
  FeeField,
34073
34042
  FileUploadField,
34043
+ FilterColumnIcon,
34074
34044
  FilterIcon,
34075
34045
  FloatField,
34076
34046
  FloatTimeField,