@fctc/sme-widget-ui 2.1.8 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4978,6 +4978,7 @@ __export(index_exports, {
4978
4978
  EyeIcon: () => EyeIcon,
4979
4979
  FeeField: () => FeeField,
4980
4980
  FileUploadField: () => FileUploadField,
4981
+ FilterColumnIcon: () => FilterColumnIcon,
4981
4982
  FilterIcon: () => FilterIcon,
4982
4983
  FloatField: () => FloatField,
4983
4984
  FloatTimeField: () => FloatTimeField,
@@ -6975,6 +6976,28 @@ var VideoIcon = () => {
6975
6976
  );
6976
6977
  };
6977
6978
 
6979
+ // src/icons/filter-columns-icon.tsx
6980
+ var import_jsx_runtime42 = require("react/jsx-runtime");
6981
+ var FilterColumnIcon = () => {
6982
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6983
+ "svg",
6984
+ {
6985
+ xmlns: "http://www.w3.org/2000/svg",
6986
+ width: "24",
6987
+ height: "24",
6988
+ viewBox: "0 0 24 24",
6989
+ fill: "none",
6990
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6991
+ "path",
6992
+ {
6993
+ d: "M10.2004 17.4016H13.8004V15.6016H10.2004V17.4016ZM3.90039 6.60156V8.40156H20.1004V6.60156H3.90039ZM6.60039 12.9016H17.4004V11.1016H6.60039V12.9016Z",
6994
+ fill: "#060606"
6995
+ }
6996
+ )
6997
+ }
6998
+ );
6999
+ };
7000
+
6978
7001
  // src/types/widget-type/index.ts
6979
7002
  var import_zod = __toESM(require("zod"));
6980
7003
  var loginSchema = import_zod.default.object({
@@ -10035,7 +10058,7 @@ instance.use(Browser).use(initReactI18next).init({
10035
10058
  var i18n_default = instance;
10036
10059
 
10037
10060
  // src/provider/index.tsx
10038
- var import_jsx_runtime42 = require("react/jsx-runtime");
10061
+ var import_jsx_runtime43 = require("react/jsx-runtime");
10039
10062
  var I18nContext2 = (0, import_react11.createContext)(null);
10040
10063
  var I18nProvider = ({
10041
10064
  children,
@@ -10047,7 +10070,7 @@ var I18nProvider = ({
10047
10070
  }
10048
10071
  }, [lang]);
10049
10072
  const { t: t3 } = useTranslation();
10050
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10073
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10051
10074
  I18nContext2.Provider,
10052
10075
  {
10053
10076
  value: {
@@ -10055,7 +10078,7 @@ var I18nProvider = ({
10055
10078
  t: t3,
10056
10079
  changeLanguage: i18n_default.changeLanguage
10057
10080
  },
10058
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(I18nextProvider, { i18n: i18n_default, children })
10081
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(I18nextProvider, { i18n: i18n_default, children })
10059
10082
  }
10060
10083
  );
10061
10084
  };
@@ -10623,11 +10646,11 @@ var usePagination = ({
10623
10646
  };
10624
10647
 
10625
10648
  // src/icons/common.tsx
10626
- var import_jsx_runtime43 = require("react/jsx-runtime");
10627
- var IcArrow = () => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("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" }) });
10649
+ var import_jsx_runtime44 = require("react/jsx-runtime");
10650
+ var IcArrow = () => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("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" }) });
10628
10651
 
10629
10652
  // src/widgets/advanced/pagination/pagination-view.tsx
10630
- var import_jsx_runtime44 = require("react/jsx-runtime");
10653
+ var import_jsx_runtime45 = require("react/jsx-runtime");
10631
10654
  var PaginationView = (props) => {
10632
10655
  const {
10633
10656
  displayPageNumberDots,
@@ -10660,25 +10683,25 @@ var PaginationView = (props) => {
10660
10683
  let lastPage = paginationRange[paginationRange.length - 1];
10661
10684
  const startPage = currentPage * pageSize + 1;
10662
10685
  const endPage = Math.min((currentPage + 1) * pageSize, totalCount);
10663
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10664
- !displayPageNumberDots && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("li", { className: "pagination-item px-0", children: [
10686
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10687
+ !displayPageNumberDots && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("li", { className: "pagination-item px-0", children: [
10665
10688
  startPage,
10666
10689
  " - ",
10667
10690
  endPage,
10668
10691
  " / ",
10669
10692
  totalCount
10670
10693
  ] }),
10671
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10694
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10672
10695
  "li",
10673
10696
  {
10674
10697
  className: `pagination-item ${currentPage === 0 && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10675
10698
  onClick: onPrevious,
10676
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "arrow left", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IcArrow, {}) })
10699
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "arrow left", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(IcArrow, {}) })
10677
10700
  }
10678
10701
  ),
10679
10702
  displayPageNumberDots && paginationRange.map((pageNumber) => {
10680
10703
  if (pageNumber === DOTS) {
10681
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10704
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10682
10705
  "li",
10683
10706
  {
10684
10707
  className: "pagination-item dots",
@@ -10687,7 +10710,7 @@ var PaginationView = (props) => {
10687
10710
  "pagination" + pageNumber
10688
10711
  );
10689
10712
  }
10690
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10713
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10691
10714
  "li",
10692
10715
  {
10693
10716
  className: `pagination-item ${pageNumber - 1 === currentPage && "selected"}`,
@@ -10697,12 +10720,12 @@ var PaginationView = (props) => {
10697
10720
  "pagination" + pageNumber
10698
10721
  );
10699
10722
  }),
10700
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10723
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10701
10724
  "li",
10702
10725
  {
10703
10726
  className: `pagination-item ${currentPage + 1 === lastPage && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10704
10727
  onClick: onNext,
10705
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "arrow rotate-180", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(IcArrow, {}) })
10728
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "arrow rotate-180", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(IcArrow, {}) })
10706
10729
  }
10707
10730
  )
10708
10731
  ] });
@@ -10712,7 +10735,7 @@ var PaginationView = (props) => {
10712
10735
  var import_react14 = require("react");
10713
10736
 
10714
10737
  // src/widgets/advanced/table/table-group.tsx
10715
- var import_jsx_runtime45 = require("react/jsx-runtime");
10738
+ var import_jsx_runtime46 = require("react/jsx-runtime");
10716
10739
  var TableGroup = (props) => {
10717
10740
  const { t: t3 } = useI18n();
10718
10741
  const {
@@ -10762,28 +10785,28 @@ var TableGroup = (props) => {
10762
10785
  setSelectedRowKeys
10763
10786
  });
10764
10787
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
10765
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
10766
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
10788
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
10789
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
10767
10790
  "tr",
10768
10791
  {
10769
10792
  draggable: true,
10770
10793
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
10771
10794
  onClick: onExpandChildGroup,
10772
10795
  children: [
10773
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10796
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10774
10797
  "td",
10775
10798
  {
10776
10799
  colSpan: colEmptyGroup.fromStart ?? 1,
10777
10800
  style: { display: "table-cell" },
10778
10801
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
10779
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
10802
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
10780
10803
  "div",
10781
10804
  {
10782
10805
  style: { paddingLeft: leftPadding },
10783
10806
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
10784
10807
  children: [
10785
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2", children: [
10786
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10808
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center gap-2", children: [
10809
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10787
10810
  TriangleIcon,
10788
10811
  {
10789
10812
  style: {
@@ -10792,15 +10815,15 @@ var TableGroup = (props) => {
10792
10815
  className: `w-2 h-2 text-button_primary `
10793
10816
  }
10794
10817
  ),
10795
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10818
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10796
10819
  ] }),
10797
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10820
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10798
10821
  "div",
10799
10822
  {
10800
10823
  onClick: (e3) => {
10801
10824
  e3.stopPropagation();
10802
10825
  },
10803
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10826
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10804
10827
  PaginationView,
10805
10828
  {
10806
10829
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -10821,7 +10844,7 @@ var TableGroup = (props) => {
10821
10844
  columns?.map((col) => {
10822
10845
  if (col?.optional === "hide") return;
10823
10846
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
10824
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10847
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10825
10848
  "td",
10826
10849
  {
10827
10850
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -10839,7 +10862,7 @@ var TableGroup = (props) => {
10839
10862
  ]
10840
10863
  }
10841
10864
  ),
10842
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10865
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10843
10866
  TableBodyRow,
10844
10867
  {
10845
10868
  columns: columnsGroup,
@@ -10869,7 +10892,7 @@ var TableGroup = (props) => {
10869
10892
 
10870
10893
  // src/widgets/advanced/table/table-row.tsx
10871
10894
  var import_react13 = require("react");
10872
- var import_jsx_runtime46 = require("react/jsx-runtime");
10895
+ var import_jsx_runtime47 = require("react/jsx-runtime");
10873
10896
  var Row = (props) => {
10874
10897
  const {
10875
10898
  row,
@@ -10935,17 +10958,17 @@ var Row = (props) => {
10935
10958
  setIsAutoSelect(false);
10936
10959
  }
10937
10960
  }, [checkedAll]);
10938
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10961
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10939
10962
  "tr",
10940
10963
  {
10941
10964
  "data-row-id": row?.id,
10942
10965
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10943
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
10944
- isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10966
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
10967
+ isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10945
10968
  "td",
10946
10969
  {
10947
10970
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
10948
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10971
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10949
10972
  "input",
10950
10973
  {
10951
10974
  type: "checkbox",
@@ -10958,9 +10981,9 @@ var Row = (props) => {
10958
10981
  ),
10959
10982
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
10960
10983
  if (row?.display_type === "line_section" && col.key !== "display_name") {
10961
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", {});
10984
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", {});
10962
10985
  }
10963
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10986
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10964
10987
  "td",
10965
10988
  {
10966
10989
  colSpan: 1,
@@ -10979,7 +11002,7 @@ var Row = (props) => {
10979
11002
  `${col.name}____${index4}`
10980
11003
  );
10981
11004
  }),
10982
- typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11005
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
10983
11006
  "button",
10984
11007
  {
10985
11008
  type: "button",
@@ -10987,7 +11010,7 @@ var Row = (props) => {
10987
11010
  onClick: () => {
10988
11011
  onRemoveRow(indexRow);
10989
11012
  },
10990
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DeleteIcon, {})
11013
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DeleteIcon, {})
10991
11014
  }
10992
11015
  ) }) })
10993
11016
  ] })
@@ -10997,7 +11020,7 @@ var Row = (props) => {
10997
11020
  };
10998
11021
 
10999
11022
  // src/widgets/advanced/table/table-body.tsx
11000
- var import_jsx_runtime47 = require("react/jsx-runtime");
11023
+ var import_jsx_runtime48 = require("react/jsx-runtime");
11001
11024
  var TableBodyRow = (props) => {
11002
11025
  const {
11003
11026
  rows,
@@ -11027,7 +11050,7 @@ var TableBodyRow = (props) => {
11027
11050
  isEditTable
11028
11051
  } = props;
11029
11052
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
11030
- return typeTable === "group" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11053
+ return typeTable === "group" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11031
11054
  TableGroup,
11032
11055
  {
11033
11056
  columns,
@@ -11052,7 +11075,7 @@ var TableBodyRow = (props) => {
11052
11075
  onClickRow
11053
11076
  },
11054
11077
  `record-group-${index4}`
11055
- ) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11078
+ ) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11056
11079
  Row,
11057
11080
  {
11058
11081
  row,
@@ -11080,7 +11103,7 @@ var TableBodyRow = (props) => {
11080
11103
  };
11081
11104
  var TableBody = (props) => {
11082
11105
  const [isAutoSelect, setIsAutoSelect] = (0, import_react14.useState)(false);
11083
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
11106
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11084
11107
  TableBodyRow,
11085
11108
  {
11086
11109
  ...props,
@@ -11093,7 +11116,7 @@ var TableBody = (props) => {
11093
11116
  // src/widgets/advanced/table/table-filter.tsx
11094
11117
  var import_react15 = require("react");
11095
11118
  var import_react_dom = require("react-dom");
11096
- var import_jsx_runtime48 = require("react/jsx-runtime");
11119
+ var import_jsx_runtime49 = require("react/jsx-runtime");
11097
11120
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
11098
11121
  const [openTableFilter, setOpenTableFilter] = (0, import_react15.useState)();
11099
11122
  const [filterPosition, setFilterPosition] = (0, import_react15.useState)(null);
@@ -11125,7 +11148,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11125
11148
  window.removeEventListener("resize", updatePosition);
11126
11149
  };
11127
11150
  }, [filterRef, openTableFilter]);
11128
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
11151
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
11129
11152
  "div",
11130
11153
  {
11131
11154
  ref: filterRef,
@@ -11134,72 +11157,19 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11134
11157
  },
11135
11158
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
11136
11159
  children: [
11137
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11160
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11138
11161
  "button",
11139
11162
  {
11140
11163
  type: "button",
11141
- className: "bg-white size-8 p-2 border border-[#DEE7DD] rounded-lg cursor-pointer",
11164
+ className: "bg-white size-8 p-1 rounded-lg cursor-pointer flex items-center justify-center",
11142
11165
  onClick: () => {
11143
11166
  setOpenTableFilter(!openTableFilter);
11144
11167
  },
11145
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
11146
- "svg",
11147
- {
11148
- xmlns: "http://www.w3.org/2000/svg",
11149
- width: "16",
11150
- height: "16",
11151
- viewBox: "0 0 16 16",
11152
- fill: "none",
11153
- children: [
11154
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11155
- "path",
11156
- {
11157
- 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",
11158
- fill: "#1F1F1F"
11159
- }
11160
- ),
11161
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11162
- "path",
11163
- {
11164
- 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",
11165
- fill: "#1F1F1F"
11166
- }
11167
- ),
11168
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11169
- "path",
11170
- {
11171
- 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",
11172
- fill: "#1F1F1F"
11173
- }
11174
- ),
11175
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11176
- "path",
11177
- {
11178
- 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",
11179
- fill: "black"
11180
- }
11181
- ),
11182
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11183
- "path",
11184
- {
11185
- 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",
11186
- fill: "black"
11187
- }
11188
- ),
11189
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11190
- "path",
11191
- {
11192
- 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",
11193
- fill: "black"
11194
- }
11195
- )
11196
- ]
11197
- }
11198
- )
11168
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(FilterColumnIcon, {})
11199
11169
  }
11200
11170
  ),
11201
11171
  filterPosition && openTableFilter && (0, import_react_dom.createPortal)(
11202
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11172
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11203
11173
  "div",
11204
11174
  {
11205
11175
  ref: filterPopupRef,
@@ -11210,8 +11180,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11210
11180
  },
11211
11181
  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",
11212
11182
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
11213
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-2", children: [
11214
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11183
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-center gap-2", children: [
11184
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11215
11185
  "input",
11216
11186
  {
11217
11187
  type: "checkbox",
@@ -11221,7 +11191,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11221
11191
  className: "cursor-pointer"
11222
11192
  }
11223
11193
  ),
11224
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
11194
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11225
11195
  "label",
11226
11196
  {
11227
11197
  htmlFor: `${item.name}`,
@@ -11241,14 +11211,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11241
11211
  };
11242
11212
 
11243
11213
  // src/widgets/advanced/table/table-footer.tsx
11244
- var import_jsx_runtime49 = require("react/jsx-runtime");
11214
+ var import_jsx_runtime50 = require("react/jsx-runtime");
11245
11215
  var TableFooter = ({ onAddRow, rows }) => {
11246
11216
  const emptyData = rows?.length <= 0;
11247
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11217
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11248
11218
  "td",
11249
11219
  {
11250
11220
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
11251
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
11221
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
11252
11222
  "button",
11253
11223
  {
11254
11224
  type: "button",
@@ -11258,7 +11228,7 @@ var TableFooter = ({ onAddRow, rows }) => {
11258
11228
  },
11259
11229
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
11260
11230
  children: [
11261
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
11231
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
11262
11232
  "svg",
11263
11233
  {
11264
11234
  style: {
@@ -11271,14 +11241,14 @@ var TableFooter = ({ onAddRow, rows }) => {
11271
11241
  viewBox: "0 0 20 20",
11272
11242
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
11273
11243
  children: [
11274
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11244
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11275
11245
  "path",
11276
11246
  {
11277
11247
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
11278
11248
  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"
11279
11249
  }
11280
11250
  ),
11281
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
11251
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
11282
11252
  "path",
11283
11253
  {
11284
11254
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -13099,7 +13069,7 @@ var M = import_react16.default.forwardRef(({ id: t3, anchorId: l2, anchorSelect:
13099
13069
 
13100
13070
  // src/widgets/advanced/table/table-head.tsx
13101
13071
  var import_react_dom2 = require("react-dom");
13102
- var import_jsx_runtime50 = require("react/jsx-runtime");
13072
+ var import_jsx_runtime51 = require("react/jsx-runtime");
13103
13073
  var TableHead = (props) => {
13104
13074
  const {
13105
13075
  handleCheckBoxAll,
@@ -13109,7 +13079,7 @@ var TableHead = (props) => {
13109
13079
  onRemoveRow,
13110
13080
  onToggleColumnOptional
13111
13081
  } = props;
13112
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("thead", { className: "relative z-10", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
13082
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("thead", { className: "relative z-10", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13113
13083
  "tr",
13114
13084
  {
13115
13085
  style: {
@@ -13121,11 +13091,11 @@ var TableHead = (props) => {
13121
13091
  },
13122
13092
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
13123
13093
  children: [
13124
- isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13094
+ isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13125
13095
  "th",
13126
13096
  {
13127
13097
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
13128
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13098
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13129
13099
  "input",
13130
13100
  {
13131
13101
  type: "checkbox",
@@ -13137,17 +13107,17 @@ var TableHead = (props) => {
13137
13107
  }
13138
13108
  ),
13139
13109
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
13140
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13110
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13141
13111
  "th",
13142
13112
  {
13143
13113
  "data-type-co": col?.field?.type_co,
13144
13114
  "data-rtc-resizable": col?.name,
13145
13115
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
13146
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full group relative", children: [
13147
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
13148
- col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
13116
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full group relative", children: [
13117
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "truncate line-clamp-1 w-fit", children: col.title }),
13118
+ col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
13149
13119
  (0, import_react_dom2.createPortal)(
13150
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13120
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13151
13121
  M,
13152
13122
  {
13153
13123
  style: {
@@ -13167,7 +13137,7 @@ var TableHead = (props) => {
13167
13137
  ),
13168
13138
  document.body
13169
13139
  ),
13170
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13140
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13171
13141
  "span",
13172
13142
  {
13173
13143
  style: {
@@ -13178,7 +13148,7 @@ var TableHead = (props) => {
13178
13148
  fontSize: "8px"
13179
13149
  },
13180
13150
  "data-tooltip-id": `field-help-${col?.field?.name}`,
13181
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13151
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13182
13152
  "svg",
13183
13153
  {
13184
13154
  xmlns: "http://www.w3.org/2000/svg",
@@ -13186,7 +13156,7 @@ var TableHead = (props) => {
13186
13156
  height: "13",
13187
13157
  viewBox: "0 0 13 13",
13188
13158
  fill: "none",
13189
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13159
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13190
13160
  "path",
13191
13161
  {
13192
13162
  fillRule: "evenodd",
@@ -13205,8 +13175,8 @@ var TableHead = (props) => {
13205
13175
  "table-head-" + index4
13206
13176
  );
13207
13177
  }),
13208
- typeof onRemoveRow === "function" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("th", { className: "relative p-2 w-[35px]" }),
13209
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13178
+ typeof onRemoveRow === "function" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("th", { className: "relative p-2 w-[35px]" }),
13179
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13210
13180
  "th",
13211
13181
  {
13212
13182
  style: {
@@ -13215,7 +13185,7 @@ var TableHead = (props) => {
13215
13185
  right: 0
13216
13186
  },
13217
13187
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
13218
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13188
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13219
13189
  TableFilter,
13220
13190
  {
13221
13191
  columns,
@@ -13230,9 +13200,9 @@ var TableHead = (props) => {
13230
13200
  };
13231
13201
 
13232
13202
  // src/icons/empty-table-icon.tsx
13233
- var import_jsx_runtime51 = require("react/jsx-runtime");
13203
+ var import_jsx_runtime52 = require("react/jsx-runtime");
13234
13204
  var IcEmptyTable = () => {
13235
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
13205
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
13236
13206
  "svg",
13237
13207
  {
13238
13208
  xmlns: "http://www.w3.org/2000/svg",
@@ -13241,9 +13211,9 @@ var IcEmptyTable = () => {
13241
13211
  viewBox: "0 0 216 140",
13242
13212
  fill: "none",
13243
13213
  children: [
13244
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("g", { clipPath: "url(#clip0_2454_28950)", children: [
13245
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13246
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13214
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("g", { clipPath: "url(#clip0_2454_28950)", children: [
13215
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13216
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13247
13217
  "path",
13248
13218
  {
13249
13219
  d: "M64.5 0V140",
@@ -13253,7 +13223,7 @@ var IcEmptyTable = () => {
13253
13223
  strokeDasharray: "3 3"
13254
13224
  }
13255
13225
  ),
13256
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13226
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13257
13227
  "path",
13258
13228
  {
13259
13229
  d: "M151.5 0V140",
@@ -13263,7 +13233,7 @@ var IcEmptyTable = () => {
13263
13233
  strokeDasharray: "3 3"
13264
13234
  }
13265
13235
  ),
13266
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13236
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13267
13237
  "path",
13268
13238
  {
13269
13239
  d: "M215.5 24H0.5",
@@ -13273,7 +13243,7 @@ var IcEmptyTable = () => {
13273
13243
  strokeDasharray: "3 3"
13274
13244
  }
13275
13245
  ),
13276
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13246
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13277
13247
  "path",
13278
13248
  {
13279
13249
  d: "M215.5 50H0.5",
@@ -13283,7 +13253,7 @@ var IcEmptyTable = () => {
13283
13253
  strokeDasharray: "3 3"
13284
13254
  }
13285
13255
  ),
13286
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13256
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13287
13257
  "path",
13288
13258
  {
13289
13259
  d: "M215.5 88H0.5",
@@ -13293,7 +13263,7 @@ var IcEmptyTable = () => {
13293
13263
  strokeDasharray: "3 3"
13294
13264
  }
13295
13265
  ),
13296
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13266
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13297
13267
  "path",
13298
13268
  {
13299
13269
  d: "M215.5 114H0.5",
@@ -13303,7 +13273,7 @@ var IcEmptyTable = () => {
13303
13273
  strokeDasharray: "3 3"
13304
13274
  }
13305
13275
  ),
13306
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13276
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13307
13277
  "path",
13308
13278
  {
13309
13279
  d: "M199.5 0V140",
@@ -13312,7 +13282,7 @@ var IcEmptyTable = () => {
13312
13282
  strokeMiterlimit: "10"
13313
13283
  }
13314
13284
  ),
13315
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13285
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13316
13286
  "path",
13317
13287
  {
13318
13288
  d: "M16.5 0V140",
@@ -13321,7 +13291,7 @@ var IcEmptyTable = () => {
13321
13291
  strokeMiterlimit: "10"
13322
13292
  }
13323
13293
  ),
13324
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13294
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13325
13295
  "path",
13326
13296
  {
13327
13297
  d: "M0.5 16H215.5",
@@ -13330,7 +13300,7 @@ var IcEmptyTable = () => {
13330
13300
  strokeMiterlimit: "10"
13331
13301
  }
13332
13302
  ),
13333
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13303
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13334
13304
  "path",
13335
13305
  {
13336
13306
  d: "M0.5 124H215.5",
@@ -13339,7 +13309,7 @@ var IcEmptyTable = () => {
13339
13309
  strokeMiterlimit: "10"
13340
13310
  }
13341
13311
  ),
13342
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13312
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13343
13313
  "path",
13344
13314
  {
13345
13315
  opacity: "0.6",
@@ -13350,7 +13320,7 @@ var IcEmptyTable = () => {
13350
13320
  strokeLinejoin: "round"
13351
13321
  }
13352
13322
  ),
13353
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13323
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13354
13324
  "path",
13355
13325
  {
13356
13326
  opacity: "0.6",
@@ -13361,7 +13331,7 @@ var IcEmptyTable = () => {
13361
13331
  strokeLinejoin: "round"
13362
13332
  }
13363
13333
  ),
13364
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13334
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13365
13335
  "path",
13366
13336
  {
13367
13337
  opacity: "0.6",
@@ -13372,7 +13342,7 @@ var IcEmptyTable = () => {
13372
13342
  strokeLinejoin: "round"
13373
13343
  }
13374
13344
  ),
13375
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13345
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13376
13346
  "path",
13377
13347
  {
13378
13348
  opacity: "0.6",
@@ -13383,7 +13353,7 @@ var IcEmptyTable = () => {
13383
13353
  strokeLinejoin: "round"
13384
13354
  }
13385
13355
  ),
13386
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13356
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13387
13357
  "path",
13388
13358
  {
13389
13359
  opacity: "0.6",
@@ -13394,14 +13364,14 @@ var IcEmptyTable = () => {
13394
13364
  strokeLinejoin: "round"
13395
13365
  }
13396
13366
  ),
13397
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13367
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13398
13368
  "path",
13399
13369
  {
13400
13370
  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",
13401
13371
  fill: "white"
13402
13372
  }
13403
13373
  ),
13404
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13374
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13405
13375
  "path",
13406
13376
  {
13407
13377
  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",
@@ -13411,7 +13381,7 @@ var IcEmptyTable = () => {
13411
13381
  strokeLinejoin: "round"
13412
13382
  }
13413
13383
  ),
13414
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13384
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13415
13385
  "path",
13416
13386
  {
13417
13387
  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",
@@ -13420,7 +13390,7 @@ var IcEmptyTable = () => {
13420
13390
  strokeLinejoin: "round"
13421
13391
  }
13422
13392
  ),
13423
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13393
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13424
13394
  "path",
13425
13395
  {
13426
13396
  opacity: "0.6",
@@ -13431,7 +13401,7 @@ var IcEmptyTable = () => {
13431
13401
  strokeLinejoin: "round"
13432
13402
  }
13433
13403
  ),
13434
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13404
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13435
13405
  "path",
13436
13406
  {
13437
13407
  opacity: "0.6",
@@ -13442,7 +13412,7 @@ var IcEmptyTable = () => {
13442
13412
  strokeLinejoin: "round"
13443
13413
  }
13444
13414
  ),
13445
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13415
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13446
13416
  "path",
13447
13417
  {
13448
13418
  opacity: "0.6",
@@ -13453,7 +13423,7 @@ var IcEmptyTable = () => {
13453
13423
  strokeLinejoin: "round"
13454
13424
  }
13455
13425
  ),
13456
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13426
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13457
13427
  "path",
13458
13428
  {
13459
13429
  opacity: "0.6",
@@ -13464,7 +13434,7 @@ var IcEmptyTable = () => {
13464
13434
  strokeLinejoin: "round"
13465
13435
  }
13466
13436
  ),
13467
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13437
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13468
13438
  "path",
13469
13439
  {
13470
13440
  opacity: "0.6",
@@ -13475,7 +13445,7 @@ var IcEmptyTable = () => {
13475
13445
  strokeLinejoin: "round"
13476
13446
  }
13477
13447
  ),
13478
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13448
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13479
13449
  "path",
13480
13450
  {
13481
13451
  opacity: "0.6",
@@ -13486,7 +13456,7 @@ var IcEmptyTable = () => {
13486
13456
  strokeLinejoin: "round"
13487
13457
  }
13488
13458
  ),
13489
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13459
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13490
13460
  "path",
13491
13461
  {
13492
13462
  opacity: "0.6",
@@ -13497,7 +13467,7 @@ var IcEmptyTable = () => {
13497
13467
  strokeLinejoin: "round"
13498
13468
  }
13499
13469
  ),
13500
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13470
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13501
13471
  "path",
13502
13472
  {
13503
13473
  opacity: "0.6",
@@ -13508,7 +13478,7 @@ var IcEmptyTable = () => {
13508
13478
  strokeLinejoin: "round"
13509
13479
  }
13510
13480
  ),
13511
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13481
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13512
13482
  "path",
13513
13483
  {
13514
13484
  opacity: "0.6",
@@ -13519,14 +13489,14 @@ var IcEmptyTable = () => {
13519
13489
  strokeLinejoin: "round"
13520
13490
  }
13521
13491
  ),
13522
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13492
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13523
13493
  "path",
13524
13494
  {
13525
13495
  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",
13526
13496
  fill: "white"
13527
13497
  }
13528
13498
  ),
13529
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13499
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13530
13500
  "path",
13531
13501
  {
13532
13502
  "fill-rule": "evenodd",
@@ -13535,7 +13505,7 @@ var IcEmptyTable = () => {
13535
13505
  fill: "white"
13536
13506
  }
13537
13507
  ),
13538
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13508
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13539
13509
  "path",
13540
13510
  {
13541
13511
  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",
@@ -13546,7 +13516,7 @@ var IcEmptyTable = () => {
13546
13516
  }
13547
13517
  )
13548
13518
  ] }),
13549
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13519
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
13550
13520
  "rect",
13551
13521
  {
13552
13522
  width: "215",
@@ -13561,14 +13531,14 @@ var IcEmptyTable = () => {
13561
13531
  };
13562
13532
 
13563
13533
  // src/widgets/advanced/table/empty-table.tsx
13564
- var import_jsx_runtime52 = require("react/jsx-runtime");
13534
+ var import_jsx_runtime53 = require("react/jsx-runtime");
13565
13535
  var EmptyTable = () => {
13566
13536
  const { t: t3 } = useI18n();
13567
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13568
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(IcEmptyTable, {}),
13569
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { children: [
13570
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", {}),
13571
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13537
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13538
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(IcEmptyTable, {}),
13539
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { children: [
13540
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", {}),
13541
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13572
13542
  ] })
13573
13543
  ] });
13574
13544
  };
@@ -15387,10 +15357,10 @@ function s3(o3, s4, t3) {
15387
15357
 
15388
15358
  // src/widgets/advanced/login/shared/button.tsx
15389
15359
  var React2 = __toESM(require("react"));
15390
- var import_jsx_runtime53 = require("react/jsx-runtime");
15360
+ var import_jsx_runtime54 = require("react/jsx-runtime");
15391
15361
  var Button = React2.forwardRef(
15392
15362
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
15393
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
15363
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
15394
15364
  "button",
15395
15365
  {
15396
15366
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -15400,7 +15370,7 @@ var Button = React2.forwardRef(
15400
15370
  ref,
15401
15371
  type,
15402
15372
  ...props,
15403
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(LoadingIcon, { width: 20, height: 20 }) : children
15373
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(LoadingIcon, { width: 20, height: 20 }) : children
15404
15374
  }
15405
15375
  );
15406
15376
  }
@@ -15409,7 +15379,7 @@ Button.displayName = "Button";
15409
15379
 
15410
15380
  // src/widgets/advanced/login/shared/text-input.tsx
15411
15381
  var import_react18 = require("react");
15412
- var import_jsx_runtime54 = require("react/jsx-runtime");
15382
+ var import_jsx_runtime55 = require("react/jsx-runtime");
15413
15383
  function TextInput(props) {
15414
15384
  const {
15415
15385
  className,
@@ -15423,17 +15393,17 @@ function TextInput(props) {
15423
15393
  required
15424
15394
  } = props;
15425
15395
  const [showPassword, setShowPassword] = (0, import_react18.useState)(false);
15426
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15427
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15396
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15397
+ label && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15428
15398
  label,
15429
- required ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15399
+ required ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15430
15400
  ] }),
15431
- /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
15401
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
15432
15402
  "div",
15433
15403
  {
15434
15404
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
15435
15405
  children: [
15436
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
15406
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
15437
15407
  "input",
15438
15408
  {
15439
15409
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -15442,18 +15412,18 @@ function TextInput(props) {
15442
15412
  ...register(name2)
15443
15413
  }
15444
15414
  ),
15445
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
15415
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
15446
15416
  "span",
15447
15417
  {
15448
15418
  onClick: () => setShowPassword(!showPassword),
15449
15419
  className: "focus:outline-none",
15450
- children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(EyeClosedIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(EyeIcon, {})
15420
+ children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EyeClosedIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(EyeIcon, {})
15451
15421
  }
15452
15422
  )
15453
15423
  ]
15454
15424
  }
15455
15425
  ),
15456
- errors?.[name2]?.message && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
15426
+ errors?.[name2]?.message && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
15457
15427
  "p",
15458
15428
  {
15459
15429
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -15465,7 +15435,7 @@ function TextInput(props) {
15465
15435
 
15466
15436
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
15467
15437
  var import_react19 = require("react");
15468
- var import_jsx_runtime55 = require("react/jsx-runtime");
15438
+ var import_jsx_runtime56 = require("react/jsx-runtime");
15469
15439
  var STAY_LOGIN_IN = "stayLoginIn";
15470
15440
  function FormOptions({
15471
15441
  forgotPasswordUrl,
@@ -15491,9 +15461,9 @@ function FormOptions({
15491
15461
  (0, import_react19.useEffect)(() => {
15492
15462
  localStorage.setItem(STAY_LOGIN_IN, "false");
15493
15463
  }, []);
15494
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15495
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("label", { className: "flex gap-3", children: [
15496
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
15464
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15465
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("label", { className: "flex gap-3", children: [
15466
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15497
15467
  "input",
15498
15468
  {
15499
15469
  checked: stayLoginIn,
@@ -15502,14 +15472,14 @@ function FormOptions({
15502
15472
  onChange: handleCheckboxChange
15503
15473
  }
15504
15474
  ),
15505
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15475
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15506
15476
  ] }),
15507
- !hideForgotPassword && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15477
+ !hideForgotPassword && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15508
15478
  ] });
15509
15479
  }
15510
15480
 
15511
15481
  // src/widgets/advanced/login/provider/credential/index.tsx
15512
- var import_jsx_runtime56 = require("react/jsx-runtime");
15482
+ var import_jsx_runtime57 = require("react/jsx-runtime");
15513
15483
  var CredentialLogin = (props) => {
15514
15484
  const {
15515
15485
  shouldRenderDivider,
@@ -15529,16 +15499,16 @@ var CredentialLogin = (props) => {
15529
15499
  mode: "onChange",
15530
15500
  resolver: s3(loginSchema)
15531
15501
  });
15532
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
15533
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
15502
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
15503
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15534
15504
  "form",
15535
15505
  {
15536
15506
  onSubmit: handleSubmit(onSubmit ?? (() => {
15537
15507
  })),
15538
15508
  className: `flex w-full h-fit flex-col gap-10`,
15539
15509
  children: [
15540
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col gap-6", children: [
15541
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15510
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col gap-6", children: [
15511
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15542
15512
  TextInput,
15543
15513
  {
15544
15514
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15551,7 +15521,7 @@ var CredentialLogin = (props) => {
15551
15521
  errors
15552
15522
  }
15553
15523
  ),
15554
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15524
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15555
15525
  TextInput,
15556
15526
  {
15557
15527
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15564,7 +15534,7 @@ var CredentialLogin = (props) => {
15564
15534
  errors
15565
15535
  }
15566
15536
  ),
15567
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15537
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15568
15538
  FormOptions,
15569
15539
  {
15570
15540
  forgotPasswordUrl,
@@ -15574,7 +15544,7 @@ var CredentialLogin = (props) => {
15574
15544
  }
15575
15545
  )
15576
15546
  ] }),
15577
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15547
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15578
15548
  Button,
15579
15549
  {
15580
15550
  type: "submit",
@@ -15586,56 +15556,56 @@ var CredentialLogin = (props) => {
15586
15556
  ]
15587
15557
  }
15588
15558
  ),
15589
- shouldRenderDivider && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex justify-center relative", children: [
15590
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15591
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15559
+ shouldRenderDivider && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex justify-center relative", children: [
15560
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15561
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15592
15562
  ] })
15593
15563
  ] });
15594
15564
  };
15595
15565
 
15596
15566
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15597
- var import_jsx_runtime57 = require("react/jsx-runtime");
15567
+ var import_jsx_runtime58 = require("react/jsx-runtime");
15598
15568
  function GoogleButton(props) {
15599
15569
  const { onLoginGoogle, db } = props;
15600
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15570
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15601
15571
  "button",
15602
15572
  {
15603
15573
  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",
15604
15574
  onClick: () => onLoginGoogle?.(db),
15605
15575
  children: [
15606
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(GoogleIcon, { className: "google-icon" }),
15607
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15576
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(GoogleIcon, { className: "google-icon" }),
15577
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15608
15578
  ]
15609
15579
  }
15610
15580
  );
15611
15581
  }
15612
15582
 
15613
15583
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15614
- var import_jsx_runtime58 = require("react/jsx-runtime");
15584
+ var import_jsx_runtime59 = require("react/jsx-runtime");
15615
15585
  function SocialRedirect(props) {
15616
15586
  const { db, onLoginSocial } = props;
15617
15587
  onLoginSocial && onLoginSocial(String(db));
15618
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, {});
15588
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, {});
15619
15589
  }
15620
15590
 
15621
15591
  // src/widgets/advanced/login/provider/google/index.tsx
15622
- var import_jsx_runtime59 = require("react/jsx-runtime");
15592
+ var import_jsx_runtime60 = require("react/jsx-runtime");
15623
15593
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15624
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
15625
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(GoogleButton, { db, onLoginGoogle }),
15626
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SocialRedirect, { db, onLoginSocial })
15594
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
15595
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(GoogleButton, { db, onLoginGoogle }),
15596
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SocialRedirect, { db, onLoginSocial })
15627
15597
  ] });
15628
15598
  };
15629
15599
 
15630
15600
  // src/widgets/advanced/login/index.tsx
15631
- var import_jsx_runtime60 = require("react/jsx-runtime");
15601
+ var import_jsx_runtime61 = require("react/jsx-runtime");
15632
15602
  var LoginProviderMapping = {
15633
15603
  google: GoogleLogin
15634
15604
  };
15635
15605
  var Login = (props) => {
15636
15606
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15637
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "w-full space-y-8", children: [
15638
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15607
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "w-full space-y-8", children: [
15608
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15639
15609
  CredentialLogin,
15640
15610
  {
15641
15611
  ...props,
@@ -15645,7 +15615,7 @@ var Login = (props) => {
15645
15615
  ),
15646
15616
  providers.map((provider, index4) => {
15647
15617
  const ProviderComp = LoginProviderMapping[provider];
15648
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15618
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15649
15619
  ProviderComp,
15650
15620
  {
15651
15621
  db,
@@ -15659,7 +15629,7 @@ var Login = (props) => {
15659
15629
  };
15660
15630
 
15661
15631
  // src/widgets/advanced/search/popup-filter/index.tsx
15662
- var import_jsx_runtime61 = require("react/jsx-runtime");
15632
+ var import_jsx_runtime62 = require("react/jsx-runtime");
15663
15633
  var PopupFilter = ({
15664
15634
  handleAddTagSearch,
15665
15635
  removeSearchItems,
@@ -15670,7 +15640,7 @@ var PopupFilter = ({
15670
15640
  fields
15671
15641
  }) => {
15672
15642
  const { t: t3 } = useI18n();
15673
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15643
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
15674
15644
  "div",
15675
15645
  {
15676
15646
  style: {
@@ -15680,25 +15650,25 @@ var PopupFilter = ({
15680
15650
  zIndex: 33
15681
15651
  },
15682
15652
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15683
- children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
15653
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
15684
15654
  "div",
15685
15655
  {
15686
15656
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15687
15657
  children: [
15688
- filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "filter-by w-full px-3", children: [
15689
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15690
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
15691
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15658
+ filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "filter-by w-full px-3", children: [
15659
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15660
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
15661
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15692
15662
  ] }),
15693
15663
  filterBy?.reduce((acc, item, index4, array) => {
15694
15664
  const prevItem = array[index4 - 1];
15695
15665
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15696
15666
  const isExist = item?.active;
15697
15667
  if (isDifferentGroup) {
15698
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("hr", { className: "my-2" }, "separator-" + index4));
15668
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("hr", { className: "my-2" }, "separator-" + index4));
15699
15669
  }
15700
15670
  acc.push(
15701
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
15671
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
15702
15672
  "button",
15703
15673
  {
15704
15674
  className: `filter-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "filter-by-checked font-semibold " : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
@@ -15723,8 +15693,8 @@ var PopupFilter = ({
15723
15693
  });
15724
15694
  },
15725
15695
  children: [
15726
- isExist && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(CheckIcon, {}),
15727
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
15696
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CheckIcon, {}),
15697
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
15728
15698
  ]
15729
15699
  },
15730
15700
  "filter-" + index4
@@ -15733,16 +15703,16 @@ var PopupFilter = ({
15733
15703
  return acc;
15734
15704
  }, [])
15735
15705
  ] }),
15736
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15737
- groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "group-by w-full px-3", children: [
15738
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15739
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
15740
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15706
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15707
+ groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "group-by w-full px-3", children: [
15708
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15709
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
15710
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15741
15711
  ] }),
15742
15712
  groupBy?.map((item, index4) => {
15743
15713
  const isExist = item?.active;
15744
15714
  if (!item.string) return;
15745
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
15715
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
15746
15716
  "button",
15747
15717
  {
15748
15718
  onClick: () => {
@@ -15766,8 +15736,8 @@ var PopupFilter = ({
15766
15736
  },
15767
15737
  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)]"}`,
15768
15738
  children: [
15769
- isExist && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(CheckIcon, {}),
15770
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm", children: item?.string })
15739
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CheckIcon, {}),
15740
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "text-sm", children: item?.string })
15771
15741
  ]
15772
15742
  },
15773
15743
  "groupby-" + index4 + 1
@@ -15786,7 +15756,7 @@ var import_react21 = require("react");
15786
15756
 
15787
15757
  // src/widgets/advanced/search/tag-search/index.tsx
15788
15758
  var import_react20 = require("react");
15789
- var import_jsx_runtime62 = require("react/jsx-runtime");
15759
+ var import_jsx_runtime63 = require("react/jsx-runtime");
15790
15760
  var TagSearch = ({
15791
15761
  removeSearchItems,
15792
15762
  selectedTags,
@@ -15797,23 +15767,23 @@ var TagSearch = ({
15797
15767
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15798
15768
  if (tag?.values?.length > 0) {
15799
15769
  if (tag?.type !== "group_by") {
15800
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
15770
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
15801
15771
  "div",
15802
15772
  {
15803
15773
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15804
15774
  children: [
15805
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("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__ */ (0, import_jsx_runtime62.jsx)(FilterIcon, {}) }),
15806
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15807
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react20.Fragment, { children: [
15808
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: value }),
15809
- idx < tag.values.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15775
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("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__ */ (0, import_jsx_runtime63.jsx)(FilterIcon, {}) }),
15776
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15777
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react20.Fragment, { children: [
15778
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: value }),
15779
+ idx < tag.values.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15810
15780
  " ",
15811
15781
  instance.t("or"),
15812
15782
  " "
15813
15783
  ] })
15814
15784
  ] }, idx);
15815
15785
  }) }),
15816
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
15786
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
15817
15787
  "button",
15818
15788
  {
15819
15789
  className: "px-2 text-sm font-bold",
@@ -15830,7 +15800,7 @@ var TagSearch = ({
15830
15800
  );
15831
15801
  }
15832
15802
  },
15833
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15803
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15834
15804
  }
15835
15805
  )
15836
15806
  ]
@@ -15838,26 +15808,26 @@ var TagSearch = ({
15838
15808
  "selected-tag-" + index4
15839
15809
  );
15840
15810
  } else if (tag?.type === "group_by") {
15841
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
15811
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
15842
15812
  "div",
15843
15813
  {
15844
15814
  className: "flex min-h-full overflow-hidden",
15845
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15846
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
15815
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15816
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
15847
15817
  "div",
15848
15818
  {
15849
15819
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15850
15820
  children: [
15851
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(GroupByIcon, {}) }),
15852
- value?.strings?.map((string, idx) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
15853
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { children: string }),
15854
- idx < value?.strings.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15821
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(GroupByIcon, {}) }),
15822
+ value?.strings?.map((string, idx) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
15823
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: string }),
15824
+ idx < value?.strings.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15855
15825
  " ",
15856
15826
  "> ",
15857
15827
  " "
15858
15828
  ] })
15859
15829
  ] })),
15860
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
15830
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
15861
15831
  "button",
15862
15832
  {
15863
15833
  className: "pr-2 text-sm font-bold",
@@ -15872,7 +15842,7 @@ var TagSearch = ({
15872
15842
  );
15873
15843
  }
15874
15844
  },
15875
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15845
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15876
15846
  }
15877
15847
  )
15878
15848
  ]
@@ -15889,7 +15859,7 @@ var TagSearch = ({
15889
15859
  };
15890
15860
 
15891
15861
  // src/widgets/advanced/search/search-list/index.tsx
15892
- var import_jsx_runtime63 = require("react/jsx-runtime");
15862
+ var import_jsx_runtime64 = require("react/jsx-runtime");
15893
15863
  var SearchList = ({
15894
15864
  handleAddTagSearch,
15895
15865
  handleMouseEnter,
@@ -15899,7 +15869,7 @@ var SearchList = ({
15899
15869
  hoveredIndexSearchList
15900
15870
  }) => {
15901
15871
  const { t: t3 } = useI18n();
15902
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
15872
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
15903
15873
  "div",
15904
15874
  {
15905
15875
  style: {
@@ -15911,7 +15881,7 @@ var SearchList = ({
15911
15881
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15912
15882
  return;
15913
15883
  }
15914
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
15884
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
15915
15885
  "button",
15916
15886
  {
15917
15887
  onClick: () => {
@@ -15933,12 +15903,12 @@ var SearchList = ({
15933
15903
  children: [
15934
15904
  t3("search"),
15935
15905
  " ",
15936
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "font-bold", children: searchItem?.title }),
15906
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "font-bold", children: searchItem?.title }),
15937
15907
  " ",
15938
15908
  t3("for"),
15939
15909
  ":",
15940
15910
  " ",
15941
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
15911
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
15942
15912
  "span",
15943
15913
  {
15944
15914
  style: {
@@ -15958,7 +15928,7 @@ var SearchList = ({
15958
15928
  };
15959
15929
 
15960
15930
  // src/widgets/advanced/search/search-item/index.tsx
15961
- var import_jsx_runtime64 = require("react/jsx-runtime");
15931
+ var import_jsx_runtime65 = require("react/jsx-runtime");
15962
15932
  var Search = ({
15963
15933
  removeSearchItems,
15964
15934
  selectedTags,
@@ -16075,15 +16045,15 @@ var Search = ({
16075
16045
  setDidInit(true);
16076
16046
  setIsReadyFormatDomain(true);
16077
16047
  }, [aid, filterBy, fieldsList]);
16078
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16048
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
16079
16049
  "div",
16080
16050
  {
16081
16051
  ref: popupFilterRef,
16082
16052
  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)]`,
16083
16053
  children: [
16084
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "size-5", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(SearchIcon, {}) }),
16085
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
16086
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16054
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "size-5", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SearchIcon, {}) }),
16055
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
16056
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16087
16057
  TagSearch,
16088
16058
  {
16089
16059
  removeSearchItems,
@@ -16093,7 +16063,7 @@ var Search = ({
16093
16063
  setGroupBy
16094
16064
  }
16095
16065
  ),
16096
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16066
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16097
16067
  "input",
16098
16068
  {
16099
16069
  value: searchString,
@@ -16106,7 +16076,7 @@ var Search = ({
16106
16076
  onKeyUp: (e3) => e3.preventDefault()
16107
16077
  }
16108
16078
  ),
16109
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16079
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16110
16080
  SearchList,
16111
16081
  {
16112
16082
  handleAddTagSearch,
@@ -16115,8 +16085,8 @@ var Search = ({
16115
16085
  }
16116
16086
  )
16117
16087
  ] }),
16118
- showFiltersGroups && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
16119
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16088
+ showFiltersGroups && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
16089
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
16120
16090
  "div",
16121
16091
  {
16122
16092
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -16125,8 +16095,8 @@ var Search = ({
16125
16095
  setShowPopupFilter((prev2) => !prev2);
16126
16096
  },
16127
16097
  children: [
16128
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16129
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16098
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16099
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16130
16100
  ChevronBottomIcon,
16131
16101
  {
16132
16102
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -16135,7 +16105,7 @@ var Search = ({
16135
16105
  ]
16136
16106
  }
16137
16107
  ),
16138
- showPopupFilter && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16108
+ showPopupFilter && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16139
16109
  PopupFilter,
16140
16110
  {
16141
16111
  handleAddTagSearch,
@@ -16154,30 +16124,30 @@ var Search = ({
16154
16124
  };
16155
16125
 
16156
16126
  // src/widgets/basic/active-badge-field/active-badge.tsx
16157
- var import_jsx_runtime65 = require("react/jsx-runtime");
16127
+ var import_jsx_runtime66 = require("react/jsx-runtime");
16158
16128
  var ActiveBadgeField = (props) => {
16159
16129
  const { t: t3 } = useI18n();
16160
16130
  const {
16161
16131
  type,
16162
16132
  className
16163
16133
  } = props;
16164
- if (type === void 0) return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, {});
16134
+ if (type === void 0) return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, {});
16165
16135
  const typeStyle = type ? "text-green-500" : "text-red-500";
16166
16136
  const text = type ? t3("active") : t3("in_active");
16167
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: `${typeStyle} ${className}`, children: text });
16137
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: `${typeStyle} ${className}`, children: text });
16168
16138
  };
16169
16139
 
16170
16140
  // src/widgets/common/modal-layer.tsx
16171
16141
  var import_react22 = require("react");
16172
16142
  var import_react23 = require("@headlessui/react");
16173
- var import_jsx_runtime66 = require("react/jsx-runtime");
16143
+ var import_jsx_runtime67 = require("react/jsx-runtime");
16174
16144
  var ModalLayer = ({
16175
16145
  isOpen,
16176
16146
  onClose,
16177
16147
  title,
16178
16148
  children
16179
16149
  }) => {
16180
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
16150
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
16181
16151
  import_react23.Transition,
16182
16152
  {
16183
16153
  show: isOpen,
@@ -16188,22 +16158,22 @@ var ModalLayer = ({
16188
16158
  leaveFrom: "transform scale-100 opacity-100",
16189
16159
  leaveTo: "transform scale-95 opacity-0",
16190
16160
  as: import_react22.Fragment,
16191
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react23.Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react23.DialogPanel, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16192
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16193
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("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: [
16194
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
16161
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react23.Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react23.DialogPanel, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16162
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16163
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("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: [
16164
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
16195
16165
  "div",
16196
16166
  {
16197
16167
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
16198
16168
  children: [
16199
- title && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16200
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
16169
+ title && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16170
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
16201
16171
  "button",
16202
16172
  {
16203
16173
  onClick: onClose,
16204
16174
  "aria-label": "Close",
16205
16175
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
16206
- children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(CloseIcon, {})
16176
+ children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CloseIcon, {})
16207
16177
  }
16208
16178
  )
16209
16179
  ]
@@ -16217,7 +16187,7 @@ var ModalLayer = ({
16217
16187
  };
16218
16188
 
16219
16189
  // src/widgets/common/modal-confirm.tsx
16220
- var import_jsx_runtime67 = require("react/jsx-runtime");
16190
+ var import_jsx_runtime68 = require("react/jsx-runtime");
16221
16191
  var ModalConfirm = ({
16222
16192
  name: name2,
16223
16193
  isShowModal,
@@ -16231,7 +16201,7 @@ var ModalConfirm = ({
16231
16201
  const renderButtonAction = (name3) => {
16232
16202
  switch (name3) {
16233
16203
  case "duplicate":
16234
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
16204
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
16235
16205
  "button",
16236
16206
  {
16237
16207
  type: "button",
@@ -16239,13 +16209,13 @@ var ModalConfirm = ({
16239
16209
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16240
16210
  disabled: isLoading,
16241
16211
  children: [
16242
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(LoadingIcon, {}),
16243
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16212
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(LoadingIcon, {}),
16213
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16244
16214
  ]
16245
16215
  }
16246
16216
  );
16247
16217
  case "archive":
16248
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
16218
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
16249
16219
  "button",
16250
16220
  {
16251
16221
  type: "button",
@@ -16253,13 +16223,13 @@ var ModalConfirm = ({
16253
16223
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16254
16224
  disabled: isLoading,
16255
16225
  children: [
16256
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(LoadingIcon, {}),
16257
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16226
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(LoadingIcon, {}),
16227
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16258
16228
  ]
16259
16229
  }
16260
16230
  );
16261
16231
  case "unarchive":
16262
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
16232
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
16263
16233
  "button",
16264
16234
  {
16265
16235
  type: "button",
@@ -16267,13 +16237,13 @@ var ModalConfirm = ({
16267
16237
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16268
16238
  disabled: isLoading,
16269
16239
  children: [
16270
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(LoadingIcon, {}),
16271
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16240
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(LoadingIcon, {}),
16241
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16272
16242
  ]
16273
16243
  }
16274
16244
  );
16275
16245
  case "delete":
16276
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
16246
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
16277
16247
  "button",
16278
16248
  {
16279
16249
  type: "button",
@@ -16281,8 +16251,8 @@ var ModalConfirm = ({
16281
16251
  className: "button-primary flex-1 flex items-center justify-center gap-2",
16282
16252
  disabled: isLoading,
16283
16253
  children: [
16284
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(LoadingIcon, {}),
16285
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16254
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(LoadingIcon, {}),
16255
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16286
16256
  ]
16287
16257
  }
16288
16258
  );
@@ -16290,13 +16260,13 @@ var ModalConfirm = ({
16290
16260
  break;
16291
16261
  }
16292
16262
  };
16293
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16294
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-[4px] items-center", children: [
16295
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "text-[18px] font-bold", children: title }),
16296
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-[16px]", children: content })
16263
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16264
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col gap-[4px] items-center", children: [
16265
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "text-[18px] font-bold", children: title }),
16266
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "text-[16px]", children: content })
16297
16267
  ] }),
16298
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16299
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
16268
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16269
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16300
16270
  "button",
16301
16271
  {
16302
16272
  type: "button",
@@ -16313,7 +16283,7 @@ var ModalConfirm = ({
16313
16283
  // src/widgets/common/modal-detail.tsx
16314
16284
  var import_react24 = require("react");
16315
16285
  var import_react_dom3 = require("react-dom");
16316
- var import_jsx_runtime68 = require("react/jsx-runtime");
16286
+ var import_jsx_runtime69 = require("react/jsx-runtime");
16317
16287
  var ModalDetail = ({
16318
16288
  idToolTip,
16319
16289
  title,
@@ -16336,18 +16306,18 @@ var ModalDetail = ({
16336
16306
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
16337
16307
  };
16338
16308
  return (0, import_react_dom3.createPortal)(
16339
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_jsx_runtime68.Fragment, { children: showModalDetail && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16340
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16341
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("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: [
16342
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16343
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
16309
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: showModalDetail && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16310
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16311
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("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: [
16312
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16313
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16344
16314
  "div",
16345
16315
  {
16346
16316
  id: "modal-detail",
16347
16317
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
16348
16318
  children: [
16349
16319
  t3("detail_button"),
16350
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16320
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16351
16321
  "button",
16352
16322
  {
16353
16323
  onClick: handleNavigateDetail,
@@ -16358,9 +16328,9 @@ var ModalDetail = ({
16358
16328
  ]
16359
16329
  }
16360
16330
  ),
16361
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CloseIcon, { className: "h-5 w-5" }) })
16331
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(CloseIcon, { className: "h-5 w-5" }) })
16362
16332
  ] }),
16363
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16333
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16364
16334
  id: idForm,
16365
16335
  aid,
16366
16336
  model,
@@ -16375,7 +16345,7 @@ var ModalDetail = ({
16375
16345
 
16376
16346
  // src/widgets/common/loading-normal.tsx
16377
16347
  var import_react25 = require("react");
16378
- var import_jsx_runtime69 = require("react/jsx-runtime");
16348
+ var import_jsx_runtime70 = require("react/jsx-runtime");
16379
16349
  var LayerLoading = () => {
16380
16350
  const { t: t3 } = useI18n();
16381
16351
  const [activeIndex, setActiveIndex] = (0, import_react25.useState)(0);
@@ -16385,21 +16355,21 @@ var LayerLoading = () => {
16385
16355
  }, 200);
16386
16356
  return () => clearInterval(interval);
16387
16357
  }, []);
16388
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16389
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16358
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16359
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16390
16360
  "div",
16391
16361
  {
16392
16362
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
16393
16363
  },
16394
16364
  index4
16395
16365
  )) }),
16396
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16366
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16397
16367
  ] }) }) });
16398
16368
  };
16399
16369
 
16400
16370
  // src/widgets/common/loading-small.tsx
16401
16371
  var import_react26 = require("react");
16402
- var import_jsx_runtime70 = require("react/jsx-runtime");
16372
+ var import_jsx_runtime71 = require("react/jsx-runtime");
16403
16373
  var LoadingSmall = () => {
16404
16374
  const [activeIndex, setActiveIndex] = (0, import_react26.useState)(0);
16405
16375
  (0, import_react26.useEffect)(() => {
@@ -16408,7 +16378,7 @@ var LoadingSmall = () => {
16408
16378
  }, 200);
16409
16379
  return () => clearInterval(interval);
16410
16380
  }, []);
16411
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16381
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16412
16382
  "div",
16413
16383
  {
16414
16384
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -16603,7 +16573,7 @@ var po = $2(K("zoom"));
16603
16573
  var uo = $2(K("flip"));
16604
16574
 
16605
16575
  // src/widgets/common/select-files.tsx
16606
- var import_jsx_runtime71 = require("react/jsx-runtime");
16576
+ var import_jsx_runtime72 = require("react/jsx-runtime");
16607
16577
  var ButtonSelectFiles = ({
16608
16578
  fileInputRef,
16609
16579
  selectedFiles,
@@ -16708,8 +16678,8 @@ var ButtonSelectFiles = ({
16708
16678
  await handleUpload(formData, serivce, xNode);
16709
16679
  }
16710
16680
  };
16711
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
16712
- isPending ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
16681
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
16682
+ isPending ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_jsx_runtime72.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
16713
16683
  "button",
16714
16684
  {
16715
16685
  type: "button",
@@ -16717,12 +16687,12 @@ var ButtonSelectFiles = ({
16717
16687
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16718
16688
  onClick: () => fileInputRef.current.click(),
16719
16689
  children: [
16720
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(AttachIcon, {}),
16721
- isText && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: t3("upload_file_placeholder") })
16690
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(AttachIcon, {}),
16691
+ isText && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { children: t3("upload_file_placeholder") })
16722
16692
  ]
16723
16693
  }
16724
16694
  ),
16725
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16695
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16726
16696
  "input",
16727
16697
  {
16728
16698
  type: "file",
@@ -16738,7 +16708,7 @@ var ButtonSelectFiles = ({
16738
16708
 
16739
16709
  // src/widgets/common/video-player.tsx
16740
16710
  var import_react38 = require("react");
16741
- var import_jsx_runtime72 = require("react/jsx-runtime");
16711
+ var import_jsx_runtime73 = require("react/jsx-runtime");
16742
16712
  var VideoPlayer = ({ src }) => {
16743
16713
  const [isPlaying, setIsPlaying] = (0, import_react38.useState)(false);
16744
16714
  const videoRef = (0, import_react38.useRef)(null);
@@ -16765,8 +16735,8 @@ var VideoPlayer = ({ src }) => {
16765
16735
  }
16766
16736
  }
16767
16737
  };
16768
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("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: [
16769
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16738
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("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: [
16739
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16770
16740
  "video",
16771
16741
  {
16772
16742
  ref: videoRef,
@@ -16778,13 +16748,13 @@ var VideoPlayer = ({ src }) => {
16778
16748
  children: "Your browser does not support the video tag."
16779
16749
  }
16780
16750
  ),
16781
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16782
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("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__ */ (0, import_jsx_runtime72.jsx)("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(PlayIcon, {}) }) })
16751
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16752
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("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__ */ (0, import_jsx_runtime73.jsx)("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(PlayIcon, {}) }) })
16783
16753
  ] });
16784
16754
  };
16785
16755
 
16786
16756
  // src/widgets/basic/avatar-field/avatar.tsx
16787
- var import_jsx_runtime73 = require("react/jsx-runtime");
16757
+ var import_jsx_runtime74 = require("react/jsx-runtime");
16788
16758
  var AvatarField = (props) => {
16789
16759
  const {
16790
16760
  isForm = false,
@@ -16808,8 +16778,8 @@ var AvatarField = (props) => {
16808
16778
  color: textColor,
16809
16779
  fontSize: `${size4 / 2.5}px`
16810
16780
  };
16811
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
16812
- isForm && allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16781
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
16782
+ isForm && allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16813
16783
  ModalDetail,
16814
16784
  {
16815
16785
  idToolTip: `avatar-widget-id-${id}`,
@@ -16820,7 +16790,7 @@ var AvatarField = (props) => {
16820
16790
  place: "top-start"
16821
16791
  }
16822
16792
  ),
16823
- allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16793
+ allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16824
16794
  M,
16825
16795
  {
16826
16796
  id: `avatar-widget-id-${id}`,
@@ -16829,7 +16799,7 @@ var AvatarField = (props) => {
16829
16799
  className: "z-20"
16830
16800
  }
16831
16801
  ),
16832
- avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16802
+ avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16833
16803
  "img",
16834
16804
  {
16835
16805
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16837,7 +16807,7 @@ var AvatarField = (props) => {
16837
16807
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16838
16808
  alt: "Avatar"
16839
16809
  }
16840
- ) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16810
+ ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16841
16811
  "div",
16842
16812
  {
16843
16813
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16851,7 +16821,7 @@ var AvatarField = (props) => {
16851
16821
 
16852
16822
  // src/widgets/basic/binary-field/binary.tsx
16853
16823
  var import_react39 = require("react");
16854
- var import_jsx_runtime74 = require("react/jsx-runtime");
16824
+ var import_jsx_runtime75 = require("react/jsx-runtime");
16855
16825
  var BinaryField = (props) => {
16856
16826
  const {
16857
16827
  name: name2,
@@ -16941,10 +16911,10 @@ var BinaryField = (props) => {
16941
16911
  handleFileChange(e3, onChange2);
16942
16912
  };
16943
16913
  const renderPreview = (file) => {
16944
- if (!file) return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PlaceHolderIcon, {});
16914
+ if (!file) return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(PlaceHolderIcon, {});
16945
16915
  const { name: name3, type, url, size: size4 } = file;
16946
16916
  if (type?.startsWith("image/") || checkIsImageLink2(url))
16947
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16917
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16948
16918
  "img",
16949
16919
  {
16950
16920
  src: url,
@@ -16957,7 +16927,7 @@ var BinaryField = (props) => {
16957
16927
  }
16958
16928
  );
16959
16929
  if (type?.startsWith("video/"))
16960
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16930
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16961
16931
  "video",
16962
16932
  {
16963
16933
  src: url,
@@ -16970,18 +16940,18 @@ var BinaryField = (props) => {
16970
16940
  }
16971
16941
  );
16972
16942
  const getFileIcon = () => {
16973
- if (type === "application/pdf") return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PdfIcon, {});
16943
+ if (type === "application/pdf") return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(PdfIcon, {});
16974
16944
  if (type?.includes("excel") || type?.includes("spreadsheet"))
16975
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ExcelIcon, {});
16976
- if (type?.includes("zip")) return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ZipIcon, {});
16977
- if (type === "application/json") return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(JSONFileIcon, {});
16978
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DefaultFileIcon, {});
16945
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ExcelIcon, {});
16946
+ if (type?.includes("zip")) return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ZipIcon, {});
16947
+ if (type === "application/json") return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(JSONFileIcon, {});
16948
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(DefaultFileIcon, {});
16979
16949
  };
16980
16950
  const isShowSize = !isNaN(size4);
16981
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-2", children: [
16951
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center gap-2", children: [
16982
16952
  getFileIcon(),
16983
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { children: [
16984
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16953
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { children: [
16954
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16985
16955
  "p",
16986
16956
  {
16987
16957
  style: {
@@ -16991,37 +16961,37 @@ var BinaryField = (props) => {
16991
16961
  children: name3
16992
16962
  }
16993
16963
  ),
16994
- isShowSize && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-xs text-[#666] font-semibold", children: formatFileSize(size4) })
16964
+ isShowSize && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "text-xs text-[#666] font-semibold", children: formatFileSize(size4) })
16995
16965
  ] })
16996
16966
  ] });
16997
16967
  };
16998
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16968
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16999
16969
  Controller,
17000
16970
  {
17001
16971
  name: name2 ?? "",
17002
- control: methods.control,
16972
+ control: methods?.control,
17003
16973
  rules: {
17004
16974
  required: required && !invisible ? { value: true, message: `${string} ${t3("must_required")}` } : false
17005
16975
  },
17006
16976
  render: ({ field, fieldState: { error: error2 } }) => {
17007
16977
  const hasFile = !!fileInfo;
17008
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
17009
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16978
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
16979
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17010
16980
  "div",
17011
16981
  {
17012
16982
  ref: binaryRef,
17013
16983
  className: `binary-field flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
17014
- children: hasFile ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16984
+ children: hasFile ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17015
16985
  "div",
17016
16986
  {
17017
16987
  className: `relative group ${onlyImage ? "shadow-md rounded-lg" : ""}`,
17018
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
16988
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
17019
16989
  "div",
17020
16990
  {
17021
16991
  className: `flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px] ${onlyImage ? "h-32 w-32" : "max-h-fit max-w-fit"}`,
17022
16992
  children: [
17023
16993
  renderPreview(fileInfo),
17024
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
16994
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
17025
16995
  "div",
17026
16996
  {
17027
16997
  style: {
@@ -17037,7 +17007,7 @@ var BinaryField = (props) => {
17037
17007
  right: onlyImage ? "0" : "none"
17038
17008
  },
17039
17009
  children: [
17040
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17010
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17041
17011
  "span",
17042
17012
  {
17043
17013
  className: "cursor-pointer",
@@ -17045,10 +17015,10 @@ var BinaryField = (props) => {
17045
17015
  fileInfo?.url || fileInfo?.data,
17046
17016
  fileInfo?.name || fileInfo?.display_name
17047
17017
  ),
17048
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DownloadIcon, {})
17018
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(DownloadIcon, {})
17049
17019
  }
17050
17020
  ),
17051
- !readonly && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17021
+ !readonly && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17052
17022
  "span",
17053
17023
  {
17054
17024
  className: "cursor-pointer",
@@ -17056,7 +17026,7 @@ var BinaryField = (props) => {
17056
17026
  setFileInfo(null);
17057
17027
  handleRemoveFile(field.onChange);
17058
17028
  },
17059
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DeleteIconDanger, {})
17029
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(DeleteIconDanger, {})
17060
17030
  }
17061
17031
  )
17062
17032
  ]
@@ -17066,13 +17036,13 @@ var BinaryField = (props) => {
17066
17036
  }
17067
17037
  )
17068
17038
  }
17069
- ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
17039
+ ) : /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
17070
17040
  "label",
17071
17041
  {
17072
17042
  htmlFor: inputId,
17073
17043
  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 "}`,
17074
17044
  children: [
17075
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17045
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17076
17046
  "input",
17077
17047
  {
17078
17048
  id: inputId,
@@ -17085,7 +17055,7 @@ var BinaryField = (props) => {
17085
17055
  accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
17086
17056
  }
17087
17057
  ),
17088
- onlyImage && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17058
+ onlyImage && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17089
17059
  "img",
17090
17060
  {
17091
17061
  src: placeHolderImage,
@@ -17093,7 +17063,7 @@ var BinaryField = (props) => {
17093
17063
  className: "z-0 relative"
17094
17064
  }
17095
17065
  ),
17096
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17066
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17097
17067
  "div",
17098
17068
  {
17099
17069
  className: " size-8 bg-white rounded-lg flex justify-center items-center z-20",
@@ -17107,7 +17077,7 @@ var BinaryField = (props) => {
17107
17077
  border: onlyImage ? "1px solid transparent" : "1px solid var(--color-primary)",
17108
17078
  borderRadius: onlyImage ? "100%" : "8px"
17109
17079
  },
17110
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17080
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17111
17081
  "svg",
17112
17082
  {
17113
17083
  xmlns: "http://www.w3.org/2000/svg",
@@ -17115,7 +17085,7 @@ var BinaryField = (props) => {
17115
17085
  height: "14",
17116
17086
  viewBox: "0 0 14 14",
17117
17087
  fill: "none",
17118
- children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17088
+ children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17119
17089
  "path",
17120
17090
  {
17121
17091
  "fill-rule": "evenodd",
@@ -17133,7 +17103,7 @@ var BinaryField = (props) => {
17133
17103
  )
17134
17104
  }
17135
17105
  ),
17136
- error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17106
+ error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17137
17107
  ] });
17138
17108
  }
17139
17109
  }
@@ -17141,7 +17111,7 @@ var BinaryField = (props) => {
17141
17111
  };
17142
17112
 
17143
17113
  // src/widgets/basic/button-badge-field/button-badge.tsx
17144
- var import_jsx_runtime75 = require("react/jsx-runtime");
17114
+ var import_jsx_runtime76 = require("react/jsx-runtime");
17145
17115
  var typeStyles = {
17146
17116
  primary: {
17147
17117
  backgroundColor: "#3b82f6",
@@ -17216,11 +17186,11 @@ var ButtonBadgeField = (props) => {
17216
17186
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
17217
17187
  };
17218
17188
  const label = getLabel(defaultValue ?? value);
17219
- return label ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17189
+ return label ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17220
17190
  };
17221
17191
 
17222
17192
  // src/widgets/basic/button-field/button.tsx
17223
- var import_jsx_runtime76 = require("react/jsx-runtime");
17193
+ var import_jsx_runtime77 = require("react/jsx-runtime");
17224
17194
  var ButtonField = (props) => {
17225
17195
  const {
17226
17196
  func,
@@ -17231,7 +17201,7 @@ var ButtonField = (props) => {
17231
17201
  type = "submit"
17232
17202
  } = props;
17233
17203
  const { t: t3 } = useI18n();
17234
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_jsx_runtime76.Fragment, { children: !loading ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17204
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: !loading ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17235
17205
  "button",
17236
17206
  {
17237
17207
  type,
@@ -17240,7 +17210,7 @@ var ButtonField = (props) => {
17240
17210
  onClick: func,
17241
17211
  children: t3(content)
17242
17212
  }
17243
- ) : /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
17213
+ ) : /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
17244
17214
  "button",
17245
17215
  {
17246
17216
  type,
@@ -17249,7 +17219,7 @@ var ButtonField = (props) => {
17249
17219
  children: [
17250
17220
  t3("loading"),
17251
17221
  " ",
17252
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(LoadingIcon, {})
17222
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(LoadingIcon, {})
17253
17223
  ]
17254
17224
  }
17255
17225
  ) });
@@ -17257,7 +17227,7 @@ var ButtonField = (props) => {
17257
17227
 
17258
17228
  // src/widgets/basic/char-field/char.tsx
17259
17229
  var import_react40 = require("react");
17260
- var import_jsx_runtime77 = require("react/jsx-runtime");
17230
+ var import_jsx_runtime78 = require("react/jsx-runtime");
17261
17231
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
17262
17232
  var CharField = (props) => {
17263
17233
  const {
@@ -17285,10 +17255,10 @@ var CharField = (props) => {
17285
17255
  } = props;
17286
17256
  if (!isForm && !isEditTable) {
17287
17257
  const propValue = value || defaultValue;
17288
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17258
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17289
17259
  }
17290
17260
  const { t: t3 } = useI18n();
17291
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17261
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17292
17262
  Controller,
17293
17263
  {
17294
17264
  name: name2 ?? "",
@@ -17342,8 +17312,8 @@ var CharField = (props) => {
17342
17312
  }
17343
17313
  return "";
17344
17314
  }, [widget, formValues]);
17345
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
17346
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17315
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
17316
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17347
17317
  "input",
17348
17318
  {
17349
17319
  value: displayValue ?? "",
@@ -17404,7 +17374,7 @@ var CharField = (props) => {
17404
17374
  `
17405
17375
  }
17406
17376
  ),
17407
- isEditTable ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: error2 && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17377
+ isEditTable ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_jsx_runtime78.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_jsx_runtime78.Fragment, { children: error2 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17408
17378
  ] });
17409
17379
  }
17410
17380
  }
@@ -17412,7 +17382,7 @@ var CharField = (props) => {
17412
17382
  };
17413
17383
 
17414
17384
  // src/widgets/basic/checkbox-field/checkbox.tsx
17415
- var import_jsx_runtime78 = require("react/jsx-runtime");
17385
+ var import_jsx_runtime79 = require("react/jsx-runtime");
17416
17386
  var CheckboxField = (props) => {
17417
17387
  const {
17418
17388
  name: name2,
@@ -17427,9 +17397,9 @@ var CheckboxField = (props) => {
17427
17397
  } = props;
17428
17398
  if (!isForm) {
17429
17399
  if (name2 === "is_active" || name2 === "active") {
17430
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ActiveBadgeField, { type: value });
17400
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ActiveBadgeField, { type: value });
17431
17401
  } else {
17432
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17402
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17433
17403
  "input",
17434
17404
  {
17435
17405
  type: "checkbox",
@@ -17440,12 +17410,12 @@ var CheckboxField = (props) => {
17440
17410
  );
17441
17411
  }
17442
17412
  }
17443
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17413
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17444
17414
  Controller,
17445
17415
  {
17446
17416
  name: name2 ?? "",
17447
17417
  control: methods?.control,
17448
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17418
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17449
17419
  "div",
17450
17420
  {
17451
17421
  className: "flex items-center gap-2",
@@ -17458,7 +17428,7 @@ var CheckboxField = (props) => {
17458
17428
  onChange2(name2 ?? "", checked);
17459
17429
  }
17460
17430
  },
17461
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17431
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17462
17432
  "input",
17463
17433
  {
17464
17434
  ...field,
@@ -17486,7 +17456,7 @@ var CheckboxField = (props) => {
17486
17456
 
17487
17457
  // src/widgets/basic/color-field/color-wrapper.tsx
17488
17458
  var import_react41 = require("react");
17489
- var import_jsx_runtime79 = require("react/jsx-runtime");
17459
+ var import_jsx_runtime80 = require("react/jsx-runtime");
17490
17460
  var ColorWrapper = (props) => {
17491
17461
  const { colors: colors2, defaultColor, savePickColor } = props;
17492
17462
  const { t: t3 } = useI18n();
@@ -17510,8 +17480,8 @@ var ColorWrapper = (props) => {
17510
17480
  document.removeEventListener("mousedown", handleClickOutside);
17511
17481
  };
17512
17482
  }, []);
17513
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { children: [
17514
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17483
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { children: [
17484
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
17515
17485
  "button",
17516
17486
  {
17517
17487
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17525,7 +17495,7 @@ var ColorWrapper = (props) => {
17525
17495
  }
17526
17496
  }
17527
17497
  ),
17528
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17498
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
17529
17499
  M,
17530
17500
  {
17531
17501
  className: "",
@@ -17534,8 +17504,8 @@ var ColorWrapper = (props) => {
17534
17504
  content: t3(color?.name)
17535
17505
  }
17536
17506
  )
17537
- ] }, color?.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
17538
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17507
+ ] }, color?.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
17508
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
17539
17509
  "button",
17540
17510
  {
17541
17511
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17548,7 +17518,7 @@ var ColorWrapper = (props) => {
17548
17518
  style: { backgroundColor: selectedColor?.color }
17549
17519
  }
17550
17520
  ),
17551
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17521
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
17552
17522
  M,
17553
17523
  {
17554
17524
  place: "top",
@@ -17560,13 +17530,13 @@ var ColorWrapper = (props) => {
17560
17530
  };
17561
17531
 
17562
17532
  // src/widgets/basic/color-field/color.tsx
17563
- var import_jsx_runtime80 = require("react/jsx-runtime");
17533
+ var import_jsx_runtime81 = require("react/jsx-runtime");
17564
17534
  var ColorField = (props) => {
17565
17535
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17566
17536
  if (!isForm) {
17567
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17537
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17568
17538
  }
17569
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
17539
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
17570
17540
  Controller,
17571
17541
  {
17572
17542
  name: name2 ?? "",
@@ -17576,7 +17546,7 @@ var ColorField = (props) => {
17576
17546
  field.onChange(color?.id);
17577
17547
  onChange2 && onChange2(name2 ?? "", color?.id);
17578
17548
  };
17579
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
17549
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
17580
17550
  ColorWrapper,
17581
17551
  {
17582
17552
  savePickColor: handlePickColorChange,
@@ -17591,7 +17561,7 @@ var ColorField = (props) => {
17591
17561
 
17592
17562
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17593
17563
  var import_react42 = require("react");
17594
- var import_jsx_runtime81 = require("react/jsx-runtime");
17564
+ var import_jsx_runtime82 = require("react/jsx-runtime");
17595
17565
  var CopyLinkButtonField = (props) => {
17596
17566
  const {
17597
17567
  isForm,
@@ -17610,9 +17580,9 @@ var CopyLinkButtonField = (props) => {
17610
17580
  } = props;
17611
17581
  const { t: t3 } = useI18n();
17612
17582
  if (!isForm) {
17613
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17583
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17614
17584
  }
17615
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
17585
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
17616
17586
  Controller,
17617
17587
  {
17618
17588
  name: name2 ?? "",
@@ -17630,8 +17600,8 @@ var CopyLinkButtonField = (props) => {
17630
17600
  clearErrors(name2);
17631
17601
  }
17632
17602
  }, [value]);
17633
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "relative", children: [
17634
- /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
17603
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "relative", children: [
17604
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
17635
17605
  "div",
17636
17606
  {
17637
17607
  "aria-disabled": readonly,
@@ -17640,7 +17610,7 @@ var CopyLinkButtonField = (props) => {
17640
17610
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17641
17611
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17642
17612
  children: [
17643
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
17613
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
17644
17614
  "input",
17645
17615
  {
17646
17616
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17681,19 +17651,19 @@ var CopyLinkButtonField = (props) => {
17681
17651
  `
17682
17652
  }
17683
17653
  ),
17684
- readonly && value && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
17654
+ readonly && value && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
17685
17655
  "button",
17686
17656
  {
17687
17657
  className: "cursor-pointer",
17688
17658
  type: "button",
17689
17659
  onClick: () => handleCopyToClipboard(propValue),
17690
- children: isCopied ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(CheckIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(CopyIcon, {})
17660
+ children: isCopied ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(CheckIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(CopyIcon, {})
17691
17661
  }
17692
17662
  )
17693
17663
  ]
17694
17664
  }
17695
17665
  ),
17696
- error2 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17666
+ error2 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17697
17667
  ] });
17698
17668
  }
17699
17669
  }
@@ -21634,7 +21604,7 @@ function useEffectEvent(callback) {
21634
21604
  }
21635
21605
 
21636
21606
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21637
- var import_jsx_runtime82 = require("react/jsx-runtime");
21607
+ var import_jsx_runtime83 = require("react/jsx-runtime");
21638
21608
  var ReactDOM2 = __toESM(require("react-dom"), 1);
21639
21609
 
21640
21610
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -22032,7 +22002,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
22032
22002
  bottom: isCustomShape ? "" : "rotate(180deg)",
22033
22003
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
22034
22004
  }[side];
22035
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("svg", {
22005
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("svg", {
22036
22006
  ...rest,
22037
22007
  "aria-hidden": true,
22038
22008
  ref,
@@ -22048,18 +22018,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
22048
22018
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
22049
22019
  ...restStyle
22050
22020
  },
22051
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", {
22021
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", {
22052
22022
  clipPath: "url(#" + clipPathId + ")",
22053
22023
  fill: "none",
22054
22024
  stroke,
22055
22025
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
22056
22026
  d: dValue
22057
- }), /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", {
22027
+ }), /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", {
22058
22028
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
22059
22029
  d: dValue
22060
- }), /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("clipPath", {
22030
+ }), /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("clipPath", {
22061
22031
  id: clipPathId,
22062
- children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("rect", {
22032
+ children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("rect", {
22063
22033
  x: -halfStrokeWidth,
22064
22034
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
22065
22035
  width: width + computedStrokeWidth,
@@ -27992,7 +27962,7 @@ var Emotion$1 = Emotion;
27992
27962
  var React12 = __toESM(require("react"));
27993
27963
  var import_extends2 = __toESM(require_extends());
27994
27964
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27995
- var jsx83 = function jsx84(type, props) {
27965
+ var jsx84 = function jsx85(type, props) {
27996
27966
  var args = arguments;
27997
27967
  if (props == null || !hasOwn.call(props, "css")) {
27998
27968
  return React12.createElement.apply(void 0, args);
@@ -28010,7 +27980,7 @@ var jsx83 = function jsx84(type, props) {
28010
27980
  var JSX;
28011
27981
  /* @__PURE__ */ (function(_JSX) {
28012
27982
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
28013
- })(jsx83 || (jsx83 = {}));
27983
+ })(jsx84 || (jsx84 = {}));
28014
27984
  function css() {
28015
27985
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
28016
27986
  args[_key] = arguments[_key];
@@ -28418,7 +28388,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28418
28388
  };
28419
28389
  var Menu = function Menu2(props) {
28420
28390
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28421
- return jsx83("div", _extends({}, getStyleProps(props, "menu", {
28391
+ return jsx84("div", _extends({}, getStyleProps(props, "menu", {
28422
28392
  menu: true
28423
28393
  }), {
28424
28394
  ref: innerRef
@@ -28440,7 +28410,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28440
28410
  };
28441
28411
  var MenuList = function MenuList2(props) {
28442
28412
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28443
- return jsx83("div", _extends({}, getStyleProps(props, "menuList", {
28413
+ return jsx84("div", _extends({}, getStyleProps(props, "menuList", {
28444
28414
  "menu-list": true,
28445
28415
  "menu-list--is-multi": isMulti
28446
28416
  }), {
@@ -28460,7 +28430,7 @@ var noOptionsMessageCSS = noticeCSS;
28460
28430
  var loadingMessageCSS = noticeCSS;
28461
28431
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28462
28432
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28463
- return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28433
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28464
28434
  children,
28465
28435
  innerProps
28466
28436
  }), "noOptionsMessage", {
@@ -28470,7 +28440,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28470
28440
  };
28471
28441
  var LoadingMessage = function LoadingMessage2(_ref7) {
28472
28442
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28473
- return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28443
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28474
28444
  children,
28475
28445
  innerProps
28476
28446
  }), "loadingMessage", {
@@ -28533,7 +28503,7 @@ var MenuPortal = function MenuPortal2(props) {
28533
28503
  runAutoUpdate();
28534
28504
  }, [runAutoUpdate]);
28535
28505
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28536
- var menuWrapper = jsx83("div", _extends({
28506
+ var menuWrapper = jsx84("div", _extends({
28537
28507
  ref: setMenuPortalElement
28538
28508
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28539
28509
  offset: computedPosition.offset,
@@ -28542,7 +28512,7 @@ var MenuPortal = function MenuPortal2(props) {
28542
28512
  }), "menuPortal", {
28543
28513
  "menu-portal": true
28544
28514
  }), innerProps), children);
28545
- return jsx83(PortalPlacementContext.Provider, {
28515
+ return jsx84(PortalPlacementContext.Provider, {
28546
28516
  value: portalPlacementContext
28547
28517
  }, appendTo ? /* @__PURE__ */ (0, import_react_dom7.createPortal)(menuWrapper, appendTo) : menuWrapper);
28548
28518
  };
@@ -28558,7 +28528,7 @@ var containerCSS = function containerCSS2(_ref3) {
28558
28528
  };
28559
28529
  var SelectContainer = function SelectContainer2(props) {
28560
28530
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28561
- return jsx83("div", _extends({}, getStyleProps(props, "container", {
28531
+ return jsx84("div", _extends({}, getStyleProps(props, "container", {
28562
28532
  "--is-disabled": isDisabled,
28563
28533
  "--is-rtl": isRtl
28564
28534
  }), innerProps), children);
@@ -28579,7 +28549,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28579
28549
  };
28580
28550
  var ValueContainer = function ValueContainer2(props) {
28581
28551
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28582
- return jsx83("div", _extends({}, getStyleProps(props, "valueContainer", {
28552
+ return jsx84("div", _extends({}, getStyleProps(props, "valueContainer", {
28583
28553
  "value-container": true,
28584
28554
  "value-container--is-multi": isMulti,
28585
28555
  "value-container--has-value": hasValue
@@ -28595,7 +28565,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28595
28565
  };
28596
28566
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28597
28567
  var children = props.children, innerProps = props.innerProps;
28598
- return jsx83("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28568
+ return jsx84("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28599
28569
  indicators: true
28600
28570
  }), innerProps), children);
28601
28571
  };
@@ -28616,7 +28586,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28616
28586
  };
28617
28587
  var Svg = function Svg2(_ref3) {
28618
28588
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28619
- return jsx83("svg", _extends({
28589
+ return jsx84("svg", _extends({
28620
28590
  height: size4,
28621
28591
  width: size4,
28622
28592
  viewBox: "0 0 20 20",
@@ -28626,16 +28596,16 @@ var Svg = function Svg2(_ref3) {
28626
28596
  }, props));
28627
28597
  };
28628
28598
  var CrossIcon = function CrossIcon2(props) {
28629
- return jsx83(Svg, _extends({
28599
+ return jsx84(Svg, _extends({
28630
28600
  size: 20
28631
- }, props), jsx83("path", {
28601
+ }, props), jsx84("path", {
28632
28602
  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"
28633
28603
  }));
28634
28604
  };
28635
28605
  var DownChevron = function DownChevron2(props) {
28636
- return jsx83(Svg, _extends({
28606
+ return jsx84(Svg, _extends({
28637
28607
  size: 20
28638
- }, props), jsx83("path", {
28608
+ }, props), jsx84("path", {
28639
28609
  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"
28640
28610
  }));
28641
28611
  };
@@ -28656,18 +28626,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28656
28626
  var dropdownIndicatorCSS = baseCSS;
28657
28627
  var DropdownIndicator = function DropdownIndicator2(props) {
28658
28628
  var children = props.children, innerProps = props.innerProps;
28659
- return jsx83("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28629
+ return jsx84("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28660
28630
  indicator: true,
28661
28631
  "dropdown-indicator": true
28662
- }), innerProps), children || jsx83(DownChevron, null));
28632
+ }), innerProps), children || jsx84(DownChevron, null));
28663
28633
  };
28664
28634
  var clearIndicatorCSS = baseCSS;
28665
28635
  var ClearIndicator = function ClearIndicator2(props) {
28666
28636
  var children = props.children, innerProps = props.innerProps;
28667
- return jsx83("div", _extends({}, getStyleProps(props, "clearIndicator", {
28637
+ return jsx84("div", _extends({}, getStyleProps(props, "clearIndicator", {
28668
28638
  indicator: true,
28669
28639
  "clear-indicator": true
28670
- }), innerProps), children || jsx83(CrossIcon, null));
28640
+ }), innerProps), children || jsx84(CrossIcon, null));
28671
28641
  };
28672
28642
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28673
28643
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28683,7 +28653,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28683
28653
  };
28684
28654
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28685
28655
  var innerProps = props.innerProps;
28686
- return jsx83("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28656
+ return jsx84("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28687
28657
  "indicator-separator": true
28688
28658
  })));
28689
28659
  };
@@ -28707,7 +28677,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28707
28677
  };
28708
28678
  var LoadingDot = function LoadingDot2(_ref6) {
28709
28679
  var delay = _ref6.delay, offset4 = _ref6.offset;
28710
- return jsx83("span", {
28680
+ return jsx84("span", {
28711
28681
  css: /* @__PURE__ */ css({
28712
28682
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28713
28683
  backgroundColor: "currentColor",
@@ -28722,20 +28692,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28722
28692
  };
28723
28693
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28724
28694
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28725
- return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28695
+ return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28726
28696
  innerProps,
28727
28697
  isRtl,
28728
28698
  size: size4
28729
28699
  }), "loadingIndicator", {
28730
28700
  indicator: true,
28731
28701
  "loading-indicator": true
28732
- }), innerProps), jsx83(LoadingDot, {
28702
+ }), innerProps), jsx84(LoadingDot, {
28733
28703
  delay: 0,
28734
28704
  offset: isRtl
28735
- }), jsx83(LoadingDot, {
28705
+ }), jsx84(LoadingDot, {
28736
28706
  delay: 160,
28737
28707
  offset: true
28738
- }), jsx83(LoadingDot, {
28708
+ }), jsx84(LoadingDot, {
28739
28709
  delay: 320,
28740
28710
  offset: !isRtl
28741
28711
  }));
@@ -28767,7 +28737,7 @@ var css$1 = function css2(_ref3, unstyled) {
28767
28737
  };
28768
28738
  var Control = function Control2(props) {
28769
28739
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28770
- return jsx83("div", _extends({
28740
+ return jsx84("div", _extends({
28771
28741
  ref: innerRef
28772
28742
  }, getStyleProps(props, "control", {
28773
28743
  control: true,
@@ -28789,15 +28759,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28789
28759
  };
28790
28760
  var Group = function Group2(props) {
28791
28761
  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;
28792
- return jsx83("div", _extends({}, getStyleProps(props, "group", {
28762
+ return jsx84("div", _extends({}, getStyleProps(props, "group", {
28793
28763
  group: true
28794
- }), innerProps), jsx83(Heading, _extends({}, headingProps, {
28764
+ }), innerProps), jsx84(Heading, _extends({}, headingProps, {
28795
28765
  selectProps,
28796
28766
  theme,
28797
28767
  getStyles,
28798
28768
  getClassNames,
28799
28769
  cx
28800
- }), label), jsx83("div", null, children));
28770
+ }), label), jsx84("div", null, children));
28801
28771
  };
28802
28772
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28803
28773
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28819,7 +28789,7 @@ var GroupHeading = function GroupHeading2(props) {
28819
28789
  var _cleanCommonProps = cleanCommonProps(props);
28820
28790
  _cleanCommonProps.data;
28821
28791
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28822
- return jsx83("div", _extends({}, getStyleProps(props, "groupHeading", {
28792
+ return jsx84("div", _extends({}, getStyleProps(props, "groupHeading", {
28823
28793
  "group-heading": true
28824
28794
  }), innerProps));
28825
28795
  };
@@ -28871,11 +28841,11 @@ var inputStyle = function inputStyle2(isHidden) {
28871
28841
  var Input = function Input2(props) {
28872
28842
  var cx = props.cx, value = props.value;
28873
28843
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28874
- return jsx83("div", _extends({}, getStyleProps(props, "input", {
28844
+ return jsx84("div", _extends({}, getStyleProps(props, "input", {
28875
28845
  "input-container": true
28876
28846
  }), {
28877
28847
  "data-value": value || ""
28878
- }), jsx83("input", _extends({
28848
+ }), jsx84("input", _extends({
28879
28849
  className: cx({
28880
28850
  input: true
28881
28851
  }, inputClassName),
@@ -28929,35 +28899,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28929
28899
  };
28930
28900
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28931
28901
  var children = _ref4.children, innerProps = _ref4.innerProps;
28932
- return jsx83("div", innerProps, children);
28902
+ return jsx84("div", innerProps, children);
28933
28903
  };
28934
28904
  var MultiValueContainer = MultiValueGeneric;
28935
28905
  var MultiValueLabel = MultiValueGeneric;
28936
28906
  function MultiValueRemove(_ref5) {
28937
28907
  var children = _ref5.children, innerProps = _ref5.innerProps;
28938
- return jsx83("div", _extends({
28908
+ return jsx84("div", _extends({
28939
28909
  role: "button"
28940
- }, innerProps), children || jsx83(CrossIcon, {
28910
+ }, innerProps), children || jsx84(CrossIcon, {
28941
28911
  size: 14
28942
28912
  }));
28943
28913
  }
28944
28914
  var MultiValue = function MultiValue2(props) {
28945
28915
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28946
28916
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28947
- return jsx83(Container, {
28917
+ return jsx84(Container, {
28948
28918
  data,
28949
28919
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28950
28920
  "multi-value": true,
28951
28921
  "multi-value--is-disabled": isDisabled
28952
28922
  })), innerProps),
28953
28923
  selectProps
28954
- }, jsx83(Label, {
28924
+ }, jsx84(Label, {
28955
28925
  data,
28956
28926
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28957
28927
  "multi-value__label": true
28958
28928
  })),
28959
28929
  selectProps
28960
- }, children), jsx83(Remove, {
28930
+ }, children), jsx84(Remove, {
28961
28931
  data,
28962
28932
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28963
28933
  "multi-value__remove": true
@@ -28990,7 +28960,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28990
28960
  };
28991
28961
  var Option = function Option2(props) {
28992
28962
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28993
- return jsx83("div", _extends({}, getStyleProps(props, "option", {
28963
+ return jsx84("div", _extends({}, getStyleProps(props, "option", {
28994
28964
  option: true,
28995
28965
  "option--is-disabled": isDisabled,
28996
28966
  "option--is-focused": isFocused,
@@ -29014,7 +28984,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
29014
28984
  };
29015
28985
  var Placeholder = function Placeholder2(props) {
29016
28986
  var children = props.children, innerProps = props.innerProps;
29017
- return jsx83("div", _extends({}, getStyleProps(props, "placeholder", {
28987
+ return jsx84("div", _extends({}, getStyleProps(props, "placeholder", {
29018
28988
  placeholder: true
29019
28989
  }), innerProps), children);
29020
28990
  };
@@ -29036,7 +29006,7 @@ var css3 = function css4(_ref3, unstyled) {
29036
29006
  };
29037
29007
  var SingleValue = function SingleValue2(props) {
29038
29008
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
29039
- return jsx83("div", _extends({}, getStyleProps(props, "singleValue", {
29009
+ return jsx84("div", _extends({}, getStyleProps(props, "singleValue", {
29040
29010
  "single-value": true,
29041
29011
  "single-value--is-disabled": isDisabled
29042
29012
  }), innerProps), children);
@@ -29138,7 +29108,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
29138
29108
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
29139
29109
  };
29140
29110
  var A11yText = function A11yText2(props) {
29141
- return jsx83("span", _extends({
29111
+ return jsx84("span", _extends({
29142
29112
  css: _ref
29143
29113
  }, props));
29144
29114
  };
@@ -29273,18 +29243,18 @@ var LiveRegion = function LiveRegion2(props) {
29273
29243
  }
29274
29244
  return guidanceMsg;
29275
29245
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
29276
- var ScreenReaderText = jsx83(import_react52.Fragment, null, jsx83("span", {
29246
+ var ScreenReaderText = jsx84(import_react52.Fragment, null, jsx84("span", {
29277
29247
  id: "aria-selection"
29278
- }, ariaSelected), jsx83("span", {
29248
+ }, ariaSelected), jsx84("span", {
29279
29249
  id: "aria-focused"
29280
- }, ariaFocused), jsx83("span", {
29250
+ }, ariaFocused), jsx84("span", {
29281
29251
  id: "aria-results"
29282
- }, ariaResults), jsx83("span", {
29252
+ }, ariaResults), jsx84("span", {
29283
29253
  id: "aria-guidance"
29284
29254
  }, ariaGuidance));
29285
- return jsx83(import_react52.Fragment, null, jsx83(A11yText$1, {
29255
+ return jsx84(import_react52.Fragment, null, jsx84(A11yText$1, {
29286
29256
  id
29287
- }, isInitialFocus && ScreenReaderText), jsx83(A11yText$1, {
29257
+ }, isInitialFocus && ScreenReaderText), jsx84(A11yText$1, {
29288
29258
  "aria-live": ariaLive,
29289
29259
  "aria-atomic": "false",
29290
29260
  "aria-relevant": "additions text",
@@ -29597,7 +29567,7 @@ var _excluded4 = ["innerRef"];
29597
29567
  function DummyInput(_ref3) {
29598
29568
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29599
29569
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29600
- return jsx83("input", _extends({
29570
+ return jsx84("input", _extends({
29601
29571
  ref: innerRef
29602
29572
  }, filteredProps, {
29603
29573
  css: /* @__PURE__ */ css({
@@ -29839,7 +29809,7 @@ function ScrollManager(_ref3) {
29839
29809
  setScrollCaptureTarget(element);
29840
29810
  setScrollLockTarget(element);
29841
29811
  };
29842
- return jsx83(import_react52.Fragment, null, lockEnabled && jsx83("div", {
29812
+ return jsx84(import_react52.Fragment, null, lockEnabled && jsx84("div", {
29843
29813
  onClick: blurSelectInput,
29844
29814
  css: _ref2$1
29845
29815
  }), children(targetRef));
@@ -29858,7 +29828,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29858
29828
  };
29859
29829
  var RequiredInput = function RequiredInput2(_ref3) {
29860
29830
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29861
- return jsx83("input", {
29831
+ return jsx84("input", {
29862
29832
  required: true,
29863
29833
  name: name2,
29864
29834
  tabIndex: -1,
@@ -31448,7 +31418,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31448
31418
 
31449
31419
  // src/widgets/basic/date-field/date.tsx
31450
31420
  var import_moment2 = __toESM(require_moment());
31451
- var import_jsx_runtime83 = require("react/jsx-runtime");
31421
+ var import_jsx_runtime84 = require("react/jsx-runtime");
31452
31422
  var DateField = (props) => {
31453
31423
  const {
31454
31424
  name: name2,
@@ -31476,8 +31446,8 @@ var DateField = (props) => {
31476
31446
  } = props;
31477
31447
  const { t: t3 } = useI18n();
31478
31448
  const InputDateCustom = (0, import_react55.forwardRef)(
31479
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("label", { className: `flex ${className}`, children: [
31480
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31449
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("label", { className: `flex ${className}`, children: [
31450
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31481
31451
  "input",
31482
31452
  {
31483
31453
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31491,13 +31461,13 @@ var DateField = (props) => {
31491
31461
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31492
31462
  }
31493
31463
  ),
31494
- isForm2 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(CalendarIcon, {})
31464
+ isForm2 && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(CalendarIcon, {})
31495
31465
  ] })
31496
31466
  );
31497
31467
  if (!isForm && !isEditTable) {
31498
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31468
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31499
31469
  } else {
31500
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31470
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31501
31471
  Controller,
31502
31472
  {
31503
31473
  name: name2 || "",
@@ -31519,8 +31489,8 @@ var DateField = (props) => {
31519
31489
  }
31520
31490
  }, [value, clearErrors, name2]);
31521
31491
  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;
31522
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
31523
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31492
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
31493
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31524
31494
  DatePicker,
31525
31495
  {
31526
31496
  selected: selectedDate,
@@ -31568,7 +31538,7 @@ var DateField = (props) => {
31568
31538
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31569
31539
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31570
31540
  showTimeInput: showTime,
31571
- customInput: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31541
+ customInput: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31572
31542
  InputDateCustom,
31573
31543
  {
31574
31544
  isForm,
@@ -31586,7 +31556,7 @@ var DateField = (props) => {
31586
31556
  increaseMonth,
31587
31557
  prevMonthButtonDisabled,
31588
31558
  nextMonthButtonDisabled
31589
- }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31559
+ }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31590
31560
  "div",
31591
31561
  {
31592
31562
  style: {
@@ -31595,7 +31565,7 @@ var DateField = (props) => {
31595
31565
  justifyContent: "center"
31596
31566
  },
31597
31567
  children: [
31598
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31568
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31599
31569
  "button",
31600
31570
  {
31601
31571
  onClick: decreaseMonth,
@@ -31603,7 +31573,7 @@ var DateField = (props) => {
31603
31573
  children: "<"
31604
31574
  }
31605
31575
  ),
31606
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31576
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31607
31577
  StateManagedSelect$1,
31608
31578
  {
31609
31579
  classNames: {
@@ -31629,7 +31599,7 @@ var DateField = (props) => {
31629
31599
  autoFocus: true
31630
31600
  }
31631
31601
  ),
31632
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31602
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31633
31603
  StateManagedSelect$1,
31634
31604
  {
31635
31605
  classNames: {
@@ -31657,7 +31627,7 @@ var DateField = (props) => {
31657
31627
  }))
31658
31628
  }
31659
31629
  ),
31660
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31630
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31661
31631
  "button",
31662
31632
  {
31663
31633
  onClick: increaseMonth,
@@ -31670,7 +31640,7 @@ var DateField = (props) => {
31670
31640
  )
31671
31641
  }
31672
31642
  ),
31673
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31643
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31674
31644
  ] });
31675
31645
  }
31676
31646
  }
@@ -31679,26 +31649,26 @@ var DateField = (props) => {
31679
31649
  };
31680
31650
 
31681
31651
  // src/widgets/basic/download-binary-field/download-binary.tsx
31682
- var import_jsx_runtime84 = require("react/jsx-runtime");
31652
+ var import_jsx_runtime85 = require("react/jsx-runtime");
31683
31653
  var DownLoadBinaryField = (props) => {
31684
31654
  const { handleFileDownload } = props;
31685
31655
  const { t: t3 } = useI18n();
31686
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31656
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
31687
31657
  "button",
31688
31658
  {
31689
31659
  type: "button",
31690
31660
  onClick: handleFileDownload,
31691
31661
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31692
31662
  children: [
31693
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DownloadIcon, {}),
31694
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31663
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DownloadIcon, {}),
31664
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31695
31665
  ]
31696
31666
  }
31697
31667
  );
31698
31668
  };
31699
31669
 
31700
31670
  // src/widgets/basic/download-file-field/download-file.tsx
31701
- var import_jsx_runtime85 = require("react/jsx-runtime");
31671
+ var import_jsx_runtime86 = require("react/jsx-runtime");
31702
31672
  var DownloadFileField = (props) => {
31703
31673
  const {
31704
31674
  readonly,
@@ -31710,15 +31680,15 @@ var DownloadFileField = (props) => {
31710
31680
  handleFileChange,
31711
31681
  handleFileDownload
31712
31682
  } = props;
31713
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "", children: [
31714
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
31683
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "", children: [
31684
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
31715
31685
  "label",
31716
31686
  {
31717
31687
  htmlFor: inputId,
31718
31688
  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",
31719
31689
  children: [
31720
- file ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31721
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
31690
+ file ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31691
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31722
31692
  "input",
31723
31693
  {
31724
31694
  id: inputId,
@@ -31732,7 +31702,7 @@ var DownloadFileField = (props) => {
31732
31702
  ]
31733
31703
  }
31734
31704
  ),
31735
- file && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
31705
+ file && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31736
31706
  "button",
31737
31707
  {
31738
31708
  onClick: handleFileDownload,
@@ -31746,7 +31716,7 @@ var DownloadFileField = (props) => {
31746
31716
 
31747
31717
  // src/widgets/basic/dropdown-field/dropdown.tsx
31748
31718
  var import_react56 = require("react");
31749
- var import_jsx_runtime86 = require("react/jsx-runtime");
31719
+ var import_jsx_runtime87 = require("react/jsx-runtime");
31750
31720
  var DropdownField = (props) => {
31751
31721
  const {
31752
31722
  options: options2,
@@ -31760,30 +31730,30 @@ var DropdownField = (props) => {
31760
31730
  } = props;
31761
31731
  const [open, setOpen] = (0, import_react56.useState)(false);
31762
31732
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31763
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
31733
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
31764
31734
  "div",
31765
31735
  {
31766
31736
  ref: dropdownRef,
31767
31737
  className: `relative ${className}`,
31768
31738
  onClick: () => setOpen(!open),
31769
31739
  children: [
31770
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
31740
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
31771
31741
  "div",
31772
31742
  {
31773
31743
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31774
31744
  children: [
31775
31745
  selectedValue?.icon,
31776
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { children: selectedValue?.label }),
31777
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ChevronBottomIcon, { className: "h-4 w-4" })
31746
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: selectedValue?.label }),
31747
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ChevronBottomIcon, { className: "h-4 w-4" })
31778
31748
  ]
31779
31749
  }
31780
31750
  ),
31781
- open && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31751
+ open && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
31782
31752
  "div",
31783
31753
  {
31784
31754
  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}`,
31785
31755
  onClick: (e3) => e3.stopPropagation(),
31786
- children: options2.map((option, index4) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31756
+ children: options2.map((option, index4) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
31787
31757
  "div",
31788
31758
  {
31789
31759
  onClick: () => {
@@ -31803,7 +31773,7 @@ var DropdownField = (props) => {
31803
31773
  };
31804
31774
 
31805
31775
  // src/widgets/basic/fee-field/fee.tsx
31806
- var import_jsx_runtime87 = require("react/jsx-runtime");
31776
+ var import_jsx_runtime88 = require("react/jsx-runtime");
31807
31777
  var FeeField = (props) => {
31808
31778
  const { value, formValues } = props;
31809
31779
  const { t: t3 } = useI18n();
@@ -31814,27 +31784,27 @@ var FeeField = (props) => {
31814
31784
  )
31815
31785
  ) + " VND";
31816
31786
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31817
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
31787
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
31818
31788
  value?.subtotals?.map((sub) => {
31819
31789
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31820
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
31821
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31822
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31790
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
31791
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31792
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31823
31793
  sub?.name,
31824
31794
  ":"
31825
31795
  ] }),
31826
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31796
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31827
31797
  ] }),
31828
- sub?.tax_groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
31798
+ sub?.tax_groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
31829
31799
  "div",
31830
31800
  {
31831
31801
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31832
31802
  children: [
31833
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31803
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31834
31804
  group?.group_name,
31835
31805
  ":"
31836
31806
  ] }),
31837
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31807
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31838
31808
  ]
31839
31809
  },
31840
31810
  `tax_groups_${group?.id}`
@@ -31842,33 +31812,33 @@ var FeeField = (props) => {
31842
31812
  ] });
31843
31813
  }
31844
31814
  }),
31845
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("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", children: [
31846
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31815
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("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", children: [
31816
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31847
31817
  t3("total"),
31848
31818
  ":"
31849
31819
  ] }),
31850
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31820
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31851
31821
  ] }),
31852
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("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: [
31853
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31822
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("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: [
31823
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31854
31824
  t3("paid_amount"),
31855
31825
  ":"
31856
31826
  ] }),
31857
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31827
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31858
31828
  ] }),
31859
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("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: [
31860
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31829
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("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: [
31830
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31861
31831
  t3("remanining_amount"),
31862
31832
  ":"
31863
31833
  ] }),
31864
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31834
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31865
31835
  ] })
31866
31836
  ] });
31867
31837
  };
31868
31838
 
31869
31839
  // src/widgets/basic/file-upload-field/file-upload.tsx
31870
31840
  var import_react57 = require("react");
31871
- var import_jsx_runtime88 = require("react/jsx-runtime");
31841
+ var import_jsx_runtime89 = require("react/jsx-runtime");
31872
31842
  var RenderFile = ({
31873
31843
  file,
31874
31844
  onDelete,
@@ -31878,16 +31848,16 @@ var RenderFile = ({
31878
31848
  readAs: "all"
31879
31849
  });
31880
31850
  const fileTypeIcon = {
31881
- "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(PdfIcon, {}),
31882
- "application/zip": /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ZipIcon, {}),
31883
- "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ZipIcon, {}),
31884
- "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ExcelIcon, {}),
31885
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ExcelIcon, {})
31851
+ "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(PdfIcon, {}),
31852
+ "application/zip": /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ZipIcon, {}),
31853
+ "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ZipIcon, {}),
31854
+ "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ExcelIcon, {}),
31855
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ExcelIcon, {})
31886
31856
  };
31887
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31888
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31889
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { children: [
31890
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
31857
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31858
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31859
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { children: [
31860
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
31891
31861
  "div",
31892
31862
  {
31893
31863
  style: {
@@ -31897,20 +31867,20 @@ var RenderFile = ({
31897
31867
  children: file?.name || file?.display_name || info?.name
31898
31868
  }
31899
31869
  ),
31900
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31870
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31901
31871
  ] }),
31902
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("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: [
31903
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
31872
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("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: [
31873
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
31904
31874
  "span",
31905
31875
  {
31906
31876
  onClick: () => onDownload && onDownload(
31907
31877
  file?.data,
31908
31878
  file?.name || file?.display_name || info?.name
31909
31879
  ),
31910
- children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DownloadIcon, {})
31880
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DownloadIcon, {})
31911
31881
  }
31912
31882
  ),
31913
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DeleteIconDanger, {}) })
31883
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DeleteIconDanger, {}) })
31914
31884
  ] })
31915
31885
  ] });
31916
31886
  };
@@ -31944,7 +31914,7 @@ var FileUploadField = (props) => {
31944
31914
  ]);
31945
31915
  }
31946
31916
  }, [value]);
31947
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
31917
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
31948
31918
  Controller,
31949
31919
  {
31950
31920
  name: name2 || "",
@@ -31969,8 +31939,8 @@ var FileUploadField = (props) => {
31969
31939
  );
31970
31940
  }
31971
31941
  }, [selectedFiles]);
31972
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { children: [
31973
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
31942
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { children: [
31943
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
31974
31944
  RenderFile,
31975
31945
  {
31976
31946
  file: fileItem,
@@ -31985,8 +31955,8 @@ var FileUploadField = (props) => {
31985
31955
  }
31986
31956
  }
31987
31957
  )),
31988
- uploadError && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "text-[#de4747]", children: uploadError }),
31989
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
31958
+ uploadError && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "text-[#de4747]", children: uploadError }),
31959
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
31990
31960
  ButtonSelectFiles,
31991
31961
  {
31992
31962
  fileInputRef,
@@ -32001,7 +31971,7 @@ var FileUploadField = (props) => {
32001
31971
  useUploadFile
32002
31972
  }
32003
31973
  ),
32004
- error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31974
+ error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32005
31975
  ] });
32006
31976
  }
32007
31977
  }
@@ -32010,7 +31980,7 @@ var FileUploadField = (props) => {
32010
31980
 
32011
31981
  // src/widgets/basic/float-field/float.tsx
32012
31982
  var import_react58 = require("react");
32013
- var import_jsx_runtime89 = require("react/jsx-runtime");
31983
+ var import_jsx_runtime90 = require("react/jsx-runtime");
32014
31984
  var FloatField = (props) => {
32015
31985
  const {
32016
31986
  name: name2,
@@ -32028,9 +31998,9 @@ var FloatField = (props) => {
32028
31998
  } = props;
32029
31999
  const { t: t3 } = useI18n();
32030
32000
  if (!isForm && !isEditTable) {
32031
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { children: formatFloatNumber(propValue ?? defaultValue) });
32001
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { children: formatFloatNumber(propValue ?? defaultValue) });
32032
32002
  }
32033
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
32003
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
32034
32004
  Controller,
32035
32005
  {
32036
32006
  name: name2 ?? "",
@@ -32137,8 +32107,8 @@ var FloatField = (props) => {
32137
32107
  }
32138
32108
  isDirtyRef.current = false;
32139
32109
  };
32140
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
32141
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
32110
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
32111
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
32142
32112
  "input",
32143
32113
  {
32144
32114
  ref: inputRef,
@@ -32158,7 +32128,7 @@ var FloatField = (props) => {
32158
32128
  `
32159
32129
  }
32160
32130
  ),
32161
- error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32131
+ error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32162
32132
  ] });
32163
32133
  }
32164
32134
  }
@@ -32167,7 +32137,7 @@ var FloatField = (props) => {
32167
32137
 
32168
32138
  // src/widgets/basic/float-time-field/float-time.tsx
32169
32139
  var import_react59 = require("react");
32170
- var import_jsx_runtime90 = require("react/jsx-runtime");
32140
+ var import_jsx_runtime91 = require("react/jsx-runtime");
32171
32141
  var FloatTimeField = (props) => {
32172
32142
  const {
32173
32143
  name: name2,
@@ -32183,9 +32153,9 @@ var FloatTimeField = (props) => {
32183
32153
  const { t: t3 } = useI18n();
32184
32154
  if (!isForm) {
32185
32155
  const formatValue = value ?? 0;
32186
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { children: convertFloatToTime(formatValue) });
32156
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { children: convertFloatToTime(formatValue) });
32187
32157
  }
32188
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
32158
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32189
32159
  Controller,
32190
32160
  {
32191
32161
  name: name2 ?? "",
@@ -32247,8 +32217,8 @@ var FloatTimeField = (props) => {
32247
32217
  }
32248
32218
  onBlur();
32249
32219
  };
32250
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
32251
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
32220
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
32221
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32252
32222
  "input",
32253
32223
  {
32254
32224
  type: "text",
@@ -32280,7 +32250,7 @@ var FloatTimeField = (props) => {
32280
32250
  readOnly: readonly
32281
32251
  }
32282
32252
  ),
32283
- (error2 || errors) && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32253
+ (error2 || errors) && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32284
32254
  ] });
32285
32255
  }
32286
32256
  }
@@ -32289,7 +32259,7 @@ var FloatTimeField = (props) => {
32289
32259
 
32290
32260
  // src/widgets/basic/html-field/html.tsx
32291
32261
  var import_react60 = require("react");
32292
- var import_jsx_runtime91 = require("react/jsx-runtime");
32262
+ var import_jsx_runtime92 = require("react/jsx-runtime");
32293
32263
  var HtmlField = (props) => {
32294
32264
  const {
32295
32265
  name: name2,
@@ -32303,9 +32273,9 @@ var HtmlField = (props) => {
32303
32273
  } = props;
32304
32274
  const divRef = (0, import_react60.useRef)(null);
32305
32275
  if (!isForm && !isEditTable) {
32306
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32276
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32307
32277
  }
32308
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32278
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32309
32279
  Controller,
32310
32280
  {
32311
32281
  name: name2 ?? "",
@@ -32324,7 +32294,7 @@ var HtmlField = (props) => {
32324
32294
  onChange2(newValue, "");
32325
32295
  }
32326
32296
  };
32327
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32297
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32328
32298
  "div",
32329
32299
  {
32330
32300
  ref: divRef,
@@ -32343,28 +32313,28 @@ var HtmlField = (props) => {
32343
32313
  };
32344
32314
 
32345
32315
  // src/widgets/basic/image-field/image.tsx
32346
- var import_jsx_runtime92 = require("react/jsx-runtime");
32316
+ var import_jsx_runtime93 = require("react/jsx-runtime");
32347
32317
  var ImageField = (props) => {
32348
32318
  const { value, type, name: name2, baseURL } = props;
32349
32319
  if (!value) return null;
32350
32320
  if (type === "url") {
32351
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32321
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32352
32322
  }
32353
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { id: "qr-code", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32323
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { id: "qr-code", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32354
32324
  };
32355
32325
 
32356
32326
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32357
32327
  var import_react61 = __toESM(require("react"));
32358
32328
 
32359
32329
  // src/widgets/basic/information-field/information.tsx
32360
- var import_jsx_runtime93 = require("react/jsx-runtime");
32330
+ var import_jsx_runtime94 = require("react/jsx-runtime");
32361
32331
  var InfomationField = (props) => {
32362
32332
  const { value, isForm = false, showName = true, stringToColor } = props;
32363
32333
  if (!value || Array.isArray(value) && value.length === 0) {
32364
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_jsx_runtime93.Fragment, {});
32334
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_jsx_runtime94.Fragment, {});
32365
32335
  }
32366
32336
  const inforValues = Array.isArray(value) ? value : [value];
32367
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
32337
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32368
32338
  AvatarField,
32369
32339
  {
32370
32340
  id: item.id,
@@ -32373,8 +32343,8 @@ var InfomationField = (props) => {
32373
32343
  stringToColor
32374
32344
  },
32375
32345
  item.id
32376
- )) : /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-2 items-center w-max", children: [
32377
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
32346
+ )) : /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex gap-2 items-center w-max", children: [
32347
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32378
32348
  AvatarField,
32379
32349
  {
32380
32350
  avatarSrc: inforValues[0].image_256,
@@ -32384,12 +32354,12 @@ var InfomationField = (props) => {
32384
32354
  stringToColor
32385
32355
  }
32386
32356
  ),
32387
- showName && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "capitalize", children: inforValues[0].display_name })
32357
+ showName && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "capitalize", children: inforValues[0].display_name })
32388
32358
  ] }) });
32389
32359
  };
32390
32360
 
32391
32361
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32392
- var import_jsx_runtime94 = require("react/jsx-runtime");
32362
+ var import_jsx_runtime95 = require("react/jsx-runtime");
32393
32363
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32394
32364
  const { selectProps, data, menuList } = props;
32395
32365
  const { relation } = selectProps;
@@ -32398,8 +32368,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32398
32368
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32399
32369
  )
32400
32370
  )?.[0]?.action?.id;
32401
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32402
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32371
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32372
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32403
32373
  AvatarField,
32404
32374
  {
32405
32375
  id: data?.id,
@@ -32411,8 +32381,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32411
32381
  stringToColor
32412
32382
  }
32413
32383
  ),
32414
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32415
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32384
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32385
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32416
32386
  "span",
32417
32387
  {
32418
32388
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32420,7 +32390,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32420
32390
  e3.stopPropagation();
32421
32391
  props.removeProps.onClick();
32422
32392
  },
32423
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(CloseIcon, {})
32393
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CloseIcon, {})
32424
32394
  }
32425
32395
  )
32426
32396
  ] });
@@ -32430,9 +32400,9 @@ var CustomMenuList = (props) => {
32430
32400
  const { setIsShowModalMany2Many, searchable } = selectProps;
32431
32401
  const { t: t3 } = useI18n();
32432
32402
  const limitedChildren = import_react61.default.Children.toArray(children).slice(0, 10);
32433
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
32403
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
32434
32404
  limitedChildren,
32435
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
32405
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
32436
32406
  "button",
32437
32407
  {
32438
32408
  type: "button",
@@ -32477,7 +32447,7 @@ var Many2ManyTagField = (props) => {
32477
32447
  value: item.id,
32478
32448
  label: item.name ?? item.display_name
32479
32449
  })) : [];
32480
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32450
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32481
32451
  InfomationField,
32482
32452
  {
32483
32453
  value: optionValue || null,
@@ -32486,7 +32456,7 @@ var Many2ManyTagField = (props) => {
32486
32456
  }
32487
32457
  );
32488
32458
  }
32489
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32459
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32490
32460
  Controller,
32491
32461
  {
32492
32462
  name: name2 ?? "",
@@ -32522,8 +32492,8 @@ var Many2ManyTagField = (props) => {
32522
32492
  onChange2?.(name2 ?? "", newValue);
32523
32493
  clearErrors(name2);
32524
32494
  };
32525
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "group h-full overflow-y-auto", children: [
32526
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32495
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "group h-full overflow-y-auto", children: [
32496
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32527
32497
  StateManagedSelect$1,
32528
32498
  {
32529
32499
  options: options2,
@@ -32601,7 +32571,7 @@ var Many2ManyTagField = (props) => {
32601
32571
  })
32602
32572
  },
32603
32573
  components: isUser ? {
32604
- MultiValue: (multiValueProps) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32574
+ MultiValue: (multiValueProps) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32605
32575
  CustomMultiValue,
32606
32576
  {
32607
32577
  ...multiValueProps,
@@ -32610,7 +32580,7 @@ var Many2ManyTagField = (props) => {
32610
32580
  ),
32611
32581
  IndicatorSeparator: () => null
32612
32582
  } : {
32613
- MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32583
+ MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32614
32584
  CustomMenuList,
32615
32585
  {
32616
32586
  ...menuListProps,
@@ -32621,13 +32591,13 @@ var Many2ManyTagField = (props) => {
32621
32591
  }
32622
32592
  ),
32623
32593
  IndicatorSeparator: () => null,
32624
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(components.DropdownIndicator, { ...props2 }),
32625
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(components.ClearIndicator, { ...props2 })
32594
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(components.DropdownIndicator, { ...props2 }),
32595
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(components.ClearIndicator, { ...props2 })
32626
32596
  },
32627
32597
  required: !invisible && required
32628
32598
  }
32629
32599
  ),
32630
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32600
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32631
32601
  ] });
32632
32602
  }
32633
32603
  }
@@ -32636,7 +32606,7 @@ var Many2ManyTagField = (props) => {
32636
32606
 
32637
32607
  // src/widgets/basic/monetary-field/monetary.tsx
32638
32608
  var import_react62 = require("react");
32639
- var import_jsx_runtime95 = require("react/jsx-runtime");
32609
+ var import_jsx_runtime96 = require("react/jsx-runtime");
32640
32610
  var MonetaryField = (props) => {
32641
32611
  const { t: t3 } = useI18n();
32642
32612
  const {
@@ -32656,26 +32626,26 @@ var MonetaryField = (props) => {
32656
32626
  isEditTable
32657
32627
  } = props;
32658
32628
  if (isForm && name2 === "amount_residual") {
32659
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32660
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("span", { className: "font-semibold", children: [
32629
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32630
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("span", { className: "font-semibold", children: [
32661
32631
  string,
32662
32632
  ":"
32663
32633
  ] }),
32664
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32634
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32665
32635
  ] });
32666
32636
  }
32667
32637
  if (!isForm) {
32668
32638
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32669
32639
  if (widget === "monetary" && !formValues?.currency_id) {
32670
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { children: `${formatNumberOnly(
32640
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { children: `${formatNumberOnly(
32671
32641
  parseFloat(String(value ?? defaultValue))
32672
32642
  )} VND` });
32673
32643
  }
32674
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { children: `${formatNumberOnly(
32644
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { children: `${formatNumberOnly(
32675
32645
  parseFloat(value ?? defaultValue)
32676
32646
  )} ${currencySymbol}` });
32677
32647
  }
32678
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32648
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32679
32649
  Controller,
32680
32650
  {
32681
32651
  name: name2 ?? "",
@@ -32694,8 +32664,8 @@ var MonetaryField = (props) => {
32694
32664
  clearErrors(name2);
32695
32665
  }
32696
32666
  }, [value2]);
32697
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
32698
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32667
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
32668
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32699
32669
  "input",
32700
32670
  {
32701
32671
  value: formatNumberOnly(value2),
@@ -32733,7 +32703,7 @@ var MonetaryField = (props) => {
32733
32703
  `
32734
32704
  }
32735
32705
  ),
32736
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32706
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32737
32707
  ] });
32738
32708
  }
32739
32709
  }
@@ -32741,14 +32711,14 @@ var MonetaryField = (props) => {
32741
32711
  };
32742
32712
 
32743
32713
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32744
- var import_jsx_runtime96 = require("react/jsx-runtime");
32714
+ var import_jsx_runtime97 = require("react/jsx-runtime");
32745
32715
  var PaidBadgedField = () => {
32746
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(PaidIcon, {}) });
32716
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(PaidIcon, {}) });
32747
32717
  };
32748
32718
 
32749
32719
  // src/widgets/basic/priority-field/rating-star.tsx
32750
32720
  var import_react63 = __toESM(require("react"));
32751
- var import_jsx_runtime97 = require("react/jsx-runtime");
32721
+ var import_jsx_runtime98 = require("react/jsx-runtime");
32752
32722
  var RatingStarField = (props) => {
32753
32723
  const {
32754
32724
  label,
@@ -32783,7 +32753,7 @@ var RatingStarField = (props) => {
32783
32753
  setHover(0);
32784
32754
  setRating(0);
32785
32755
  };
32786
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32756
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32787
32757
  "div",
32788
32758
  {
32789
32759
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32793,17 +32763,17 @@ var RatingStarField = (props) => {
32793
32763
  const starValue = index4 + 1;
32794
32764
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32795
32765
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32796
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_react63.default.Fragment, { children: [
32797
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32766
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_react63.default.Fragment, { children: [
32767
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32798
32768
  "div",
32799
32769
  {
32800
32770
  onMouseEnter: () => handleHover(starValue),
32801
32771
  onClick: () => handleClick(starValue),
32802
32772
  "data-tooltip-id": `${id}-${starValue}`,
32803
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(StarIcon, { fill: fillColor, stroke: strokeColor })
32773
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(StarIcon, { fill: fillColor, stroke: strokeColor })
32804
32774
  }
32805
32775
  ),
32806
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32776
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32807
32777
  M,
32808
32778
  {
32809
32779
  className: "z-50",
@@ -32819,7 +32789,7 @@ var RatingStarField = (props) => {
32819
32789
  };
32820
32790
 
32821
32791
  // src/widgets/basic/priority-field/priority.tsx
32822
- var import_jsx_runtime98 = require("react/jsx-runtime");
32792
+ var import_jsx_runtime99 = require("react/jsx-runtime");
32823
32793
  var PriorityField = (props) => {
32824
32794
  const {
32825
32795
  isForm,
@@ -32835,7 +32805,7 @@ var PriorityField = (props) => {
32835
32805
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32836
32806
  const defaultPriority = parseInt(value) + 1;
32837
32807
  if (!isForm) {
32838
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32808
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
32839
32809
  RatingStarField,
32840
32810
  {
32841
32811
  label,
@@ -32846,7 +32816,7 @@ var PriorityField = (props) => {
32846
32816
  }
32847
32817
  );
32848
32818
  }
32849
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32819
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
32850
32820
  Controller,
32851
32821
  {
32852
32822
  name: name ?? "",
@@ -32856,7 +32826,7 @@ var PriorityField = (props) => {
32856
32826
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32857
32827
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32858
32828
  };
32859
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32829
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
32860
32830
  RatingStarField,
32861
32831
  {
32862
32832
  label,
@@ -32873,7 +32843,7 @@ var PriorityField = (props) => {
32873
32843
 
32874
32844
  // src/widgets/basic/radio-group-field/radio-group.tsx
32875
32845
  var import_react64 = require("react");
32876
- var import_jsx_runtime99 = require("react/jsx-runtime");
32846
+ var import_jsx_runtime100 = require("react/jsx-runtime");
32877
32847
  var RadioGroupField = (props) => {
32878
32848
  const {
32879
32849
  name: name2,
@@ -32892,13 +32862,13 @@ var RadioGroupField = (props) => {
32892
32862
  }
32893
32863
  }, [selection, name2, setValue]);
32894
32864
  if (!methods) return null;
32895
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
32865
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
32896
32866
  Controller,
32897
32867
  {
32898
32868
  name: name2 ?? "",
32899
32869
  control: methods.control,
32900
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex items-center gap-1", children: [
32901
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
32870
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex items-center gap-1", children: [
32871
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
32902
32872
  "input",
32903
32873
  {
32904
32874
  type: "radio",
@@ -32917,7 +32887,7 @@ var RadioGroupField = (props) => {
32917
32887
  className: "custom-radio"
32918
32888
  }
32919
32889
  ),
32920
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("label", { htmlFor: String(select[0]), children: select[1] })
32890
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("label", { htmlFor: String(select[0]), children: select[1] })
32921
32891
  ] }, select[0])) })
32922
32892
  }
32923
32893
  );
@@ -32925,7 +32895,7 @@ var RadioGroupField = (props) => {
32925
32895
 
32926
32896
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32927
32897
  var import_moment3 = __toESM(require_moment());
32928
- var import_jsx_runtime100 = require("react/jsx-runtime");
32898
+ var import_jsx_runtime101 = require("react/jsx-runtime");
32929
32899
  var RemainingDaysField = (props) => {
32930
32900
  const {
32931
32901
  value,
@@ -32936,14 +32906,14 @@ var RemainingDaysField = (props) => {
32936
32906
  if (!value) return null;
32937
32907
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32938
32908
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32939
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: isForm ? "mb-4" : "", children: [
32940
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32941
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
32909
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: isForm ? "mb-4" : "", children: [
32910
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32911
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32942
32912
  "div",
32943
32913
  {
32944
32914
  "data-tooltip-id": `remainingDays_${value}`,
32945
32915
  className: "flex items-center w-fit cursor-context-menu",
32946
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
32916
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32947
32917
  "div",
32948
32918
  {
32949
32919
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32956,7 +32926,7 @@ var RemainingDaysField = (props) => {
32956
32926
  };
32957
32927
 
32958
32928
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32959
- var import_jsx_runtime101 = require("react/jsx-runtime");
32929
+ var import_jsx_runtime102 = require("react/jsx-runtime");
32960
32930
  var SelectDropdownField = (props) => {
32961
32931
  const { t: t3 } = useI18n();
32962
32932
  const {
@@ -32978,9 +32948,9 @@ var SelectDropdownField = (props) => {
32978
32948
  label: val[1]
32979
32949
  })) : [];
32980
32950
  if (!isForm && !isEditTable) {
32981
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { children: options2?.find((item) => item?.value === value)?.label });
32951
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { children: options2?.find((item) => item?.value === value)?.label });
32982
32952
  } else {
32983
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32953
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
32984
32954
  Controller,
32985
32955
  {
32986
32956
  name: name2 || "",
@@ -33007,8 +32977,8 @@ var SelectDropdownField = (props) => {
33007
32977
  value: defaultValue || null,
33008
32978
  required: !invisible && required
33009
32979
  };
33010
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
33011
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "group", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32980
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_jsx_runtime102.Fragment, { children: [
32981
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "group", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33012
32982
  StateManagedSelect$1,
33013
32983
  {
33014
32984
  ...commonProps,
@@ -33063,12 +33033,12 @@ var SelectDropdownField = (props) => {
33063
33033
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
33064
33034
  components: {
33065
33035
  IndicatorSeparator: () => null,
33066
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(components.DropdownIndicator, { ...props2 })
33036
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(components.DropdownIndicator, { ...props2 })
33067
33037
  },
33068
33038
  noOptionsMessage: () => t3("no-available")
33069
33039
  }
33070
33040
  ) }),
33071
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33041
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33072
33042
  ] });
33073
33043
  }
33074
33044
  }
@@ -33077,7 +33047,7 @@ var SelectDropdownField = (props) => {
33077
33047
  };
33078
33048
 
33079
33049
  // src/widgets/basic/textarea-field/textarea.tsx
33080
- var import_jsx_runtime102 = require("react/jsx-runtime");
33050
+ var import_jsx_runtime103 = require("react/jsx-runtime");
33081
33051
  var TextAreaField = (props) => {
33082
33052
  const {
33083
33053
  methods,
@@ -33101,9 +33071,9 @@ var TextAreaField = (props) => {
33101
33071
  }
33102
33072
  }) : {};
33103
33073
  if (!isForm) {
33104
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { children: value && typeof value === "object" ? value.display_name : value });
33074
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { children: value && typeof value === "object" ? value.display_name : value });
33105
33075
  }
33106
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33076
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33107
33077
  "textarea",
33108
33078
  {
33109
33079
  ...formProps,
@@ -33119,7 +33089,7 @@ var TextAreaField = (props) => {
33119
33089
  };
33120
33090
 
33121
33091
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
33122
- var import_jsx_runtime103 = require("react/jsx-runtime");
33092
+ var import_jsx_runtime104 = require("react/jsx-runtime");
33123
33093
  var ToggleButtonField = (props) => {
33124
33094
  const {
33125
33095
  name: name2,
@@ -33129,13 +33099,13 @@ var ToggleButtonField = (props) => {
33129
33099
  onChange: onChange2,
33130
33100
  methods
33131
33101
  } = props;
33132
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33102
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33133
33103
  Controller,
33134
33104
  {
33135
33105
  name: name2 ?? "",
33136
33106
  control: methods?.control,
33137
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "inline-flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33138
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33107
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "inline-flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33108
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33139
33109
  "input",
33140
33110
  {
33141
33111
  ...field,
@@ -33154,7 +33124,7 @@ var ToggleButtonField = (props) => {
33154
33124
  checked: field.value ?? false
33155
33125
  }
33156
33126
  ),
33157
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33127
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33158
33128
  "span",
33159
33129
  {
33160
33130
  style: {
@@ -33164,7 +33134,7 @@ var ToggleButtonField = (props) => {
33164
33134
  },
33165
33135
  className: `rounded-full transition duration-300
33166
33136
  `,
33167
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33137
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33168
33138
  "span",
33169
33139
  {
33170
33140
  style: {
@@ -33189,7 +33159,7 @@ var ToggleButtonField = (props) => {
33189
33159
 
33190
33160
  // src/widgets/basic/integer-field/integer.tsx
33191
33161
  var import_react65 = require("react");
33192
- var import_jsx_runtime104 = require("react/jsx-runtime");
33162
+ var import_jsx_runtime105 = require("react/jsx-runtime");
33193
33163
  var IntegerField = (props) => {
33194
33164
  const {
33195
33165
  name: name2,
@@ -33208,9 +33178,9 @@ var IntegerField = (props) => {
33208
33178
  const { t: t3 } = useI18n();
33209
33179
  if (!isForm && !isEditTable) {
33210
33180
  const displayValue = value ?? defaultValue;
33211
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33181
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33212
33182
  }
33213
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33183
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33214
33184
  Controller,
33215
33185
  {
33216
33186
  name: name2 || "",
@@ -33288,8 +33258,8 @@ var IntegerField = (props) => {
33288
33258
  inputRef.current?.blur();
33289
33259
  clearErrors(name2);
33290
33260
  };
33291
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
33292
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33261
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
33262
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33293
33263
  "input",
33294
33264
  {
33295
33265
  ref: inputRef,
@@ -33324,7 +33294,7 @@ var IntegerField = (props) => {
33324
33294
  `
33325
33295
  }
33326
33296
  ),
33327
- error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33297
+ error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33328
33298
  ] });
33329
33299
  }
33330
33300
  }
@@ -33332,7 +33302,7 @@ var IntegerField = (props) => {
33332
33302
  };
33333
33303
 
33334
33304
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33335
- var import_jsx_runtime105 = require("react/jsx-runtime");
33305
+ var import_jsx_runtime106 = require("react/jsx-runtime");
33336
33306
  var StatusDropdownField = (props) => {
33337
33307
  const {
33338
33308
  buttonRef,
@@ -33344,13 +33314,13 @@ var StatusDropdownField = (props) => {
33344
33314
  handleClick,
33345
33315
  colors: colors2
33346
33316
  } = props;
33347
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
33317
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33348
33318
  "div",
33349
33319
  {
33350
33320
  ref: buttonRef,
33351
33321
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
33352
33322
  children: [
33353
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33323
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33354
33324
  "button",
33355
33325
  {
33356
33326
  type: "button",
@@ -33358,23 +33328,23 @@ var StatusDropdownField = (props) => {
33358
33328
  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"}`
33359
33329
  }
33360
33330
  ),
33361
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("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) => {
33331
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("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) => {
33362
33332
  const isActive = item[0] == state;
33363
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
33333
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33364
33334
  "div",
33365
33335
  {
33366
33336
  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" : ""}`,
33367
33337
  onClick: () => handleClick(item[0]),
33368
33338
  children: [
33369
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(CheckIcon, {}) }),
33370
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center gap-2", children: [
33371
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33339
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(CheckIcon, {}) }),
33340
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center gap-2", children: [
33341
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33372
33342
  "div",
33373
33343
  {
33374
33344
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33375
33345
  }
33376
33346
  ),
33377
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "text-sm", children: item[1] })
33347
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "text-sm", children: item[1] })
33378
33348
  ] })
33379
33349
  ]
33380
33350
  },
@@ -33389,7 +33359,7 @@ var StatusDropdownField = (props) => {
33389
33359
  // src/widgets/basic/many2many-field/many2many.tsx
33390
33360
  var import_react_dom9 = require("react-dom");
33391
33361
  var import_react66 = require("react");
33392
- var import_jsx_runtime106 = require("react/jsx-runtime");
33362
+ var import_jsx_runtime107 = require("react/jsx-runtime");
33393
33363
  var Many2ManyField = (props) => {
33394
33364
  const { t: t3 } = useI18n();
33395
33365
  const {
@@ -33463,7 +33433,7 @@ var Many2ManyField = (props) => {
33463
33433
  };
33464
33434
  }, [selectedTags]);
33465
33435
  return (0, import_react_dom9.createPortal)(
33466
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33436
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
33467
33437
  "div",
33468
33438
  {
33469
33439
  style: {
@@ -33471,8 +33441,8 @@ var Many2ManyField = (props) => {
33471
33441
  },
33472
33442
  className: "fixed bottom-0 left-0 right-0 top-0",
33473
33443
  children: [
33474
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33475
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33444
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33445
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
33476
33446
  "div",
33477
33447
  {
33478
33448
  style: {
@@ -33480,12 +33450,12 @@ var Many2ManyField = (props) => {
33480
33450
  },
33481
33451
  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",
33482
33452
  children: [
33483
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33484
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "text-[20px] font-semibold", children: title }),
33485
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(CloseIcon, {}) })
33453
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33454
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "text-[20px] font-semibold", children: title }),
33455
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(CloseIcon, {}) })
33486
33456
  ] }),
33487
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33488
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33457
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33458
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33489
33459
  Search,
33490
33460
  {
33491
33461
  removeSearchItems,
@@ -33519,7 +33489,7 @@ var Many2ManyField = (props) => {
33519
33489
  groupByList
33520
33490
  }
33521
33491
  ) }),
33522
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33492
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33523
33493
  PaginationView,
33524
33494
  {
33525
33495
  className: "pagination-bar col-span-1 justify-end flex-1",
@@ -33536,20 +33506,20 @@ var Many2ManyField = (props) => {
33536
33506
  }
33537
33507
  )
33538
33508
  ] }),
33539
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "relative h-full w-full", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33509
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "relative h-full w-full", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33540
33510
  "div",
33541
33511
  {
33542
33512
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33543
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33513
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33544
33514
  "div",
33545
33515
  {
33546
33516
  className: `flex w-full items-center h-full overflow-auto `,
33547
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33517
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
33548
33518
  "table",
33549
33519
  {
33550
33520
  className: `relative w-full bg-white custom-dropdown `,
33551
33521
  children: [
33552
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33522
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33553
33523
  TableHead,
33554
33524
  {
33555
33525
  columns,
@@ -33559,7 +33529,7 @@ var Many2ManyField = (props) => {
33559
33529
  handleCheckBoxAll
33560
33530
  }
33561
33531
  ),
33562
- rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33532
+ rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33563
33533
  TableBody,
33564
33534
  {
33565
33535
  tableGroupController,
@@ -33599,16 +33569,16 @@ var Many2ManyField = (props) => {
33599
33569
  checkedAll,
33600
33570
  context
33601
33571
  }
33602
- ) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33572
+ ) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33603
33573
  "td",
33604
33574
  {
33605
33575
  className: "w-full",
33606
33576
  colSpan: columns?.length + 2,
33607
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33577
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33608
33578
  "div",
33609
33579
  {
33610
33580
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33611
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(EmptyTable, {})
33581
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(EmptyTable, {})
33612
33582
  }
33613
33583
  )
33614
33584
  }
@@ -33619,9 +33589,9 @@ var Many2ManyField = (props) => {
33619
33589
  }
33620
33590
  ) }) })
33621
33591
  }
33622
- ) }) }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(LayerLoading, {}),
33623
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center gap-2 mt-auto", children: [
33624
- isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33592
+ ) }) }) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(LayerLoading, {}),
33593
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex items-center gap-2 mt-auto", children: [
33594
+ isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33625
33595
  "button",
33626
33596
  {
33627
33597
  disabled: selectedRowKeys?.length === 0,
@@ -33631,7 +33601,7 @@ var Many2ManyField = (props) => {
33631
33601
  children: t3("choose")
33632
33602
  }
33633
33603
  ),
33634
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33604
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33635
33605
  "button",
33636
33606
  {
33637
33607
  type: "button",
@@ -33647,7 +33617,7 @@ var Many2ManyField = (props) => {
33647
33617
  children: t3("new")
33648
33618
  }
33649
33619
  ),
33650
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33620
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33651
33621
  "button",
33652
33622
  {
33653
33623
  type: "button",
@@ -33669,15 +33639,15 @@ var Many2ManyField = (props) => {
33669
33639
 
33670
33640
  // src/widgets/basic/many2one-field/many2one.tsx
33671
33641
  var import_react67 = __toESM(require("react"));
33672
- var import_jsx_runtime107 = require("react/jsx-runtime");
33642
+ var import_jsx_runtime108 = require("react/jsx-runtime");
33673
33643
  var CustomMenuList2 = (props) => {
33674
33644
  const { t: t3 } = useI18n();
33675
33645
  const { options: options2, children, selectProps } = props;
33676
33646
  const { setIsShowModalMany2Many, searchable } = selectProps;
33677
33647
  const limitedChildren = import_react67.default.Children.toArray(children).slice(0, 10);
33678
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
33648
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
33679
33649
  limitedChildren,
33680
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
33650
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
33681
33651
  "button",
33682
33652
  {
33683
33653
  type: "button",
@@ -33720,14 +33690,14 @@ var Many2OneField = (props) => {
33720
33690
  const { t: t3 } = useI18n();
33721
33691
  if (!isForm && !isEditTable) {
33722
33692
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33723
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
33693
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
33724
33694
  allowShowDetail && renderDetail({
33725
33695
  idToolTip: String(name2) + Number(index4),
33726
33696
  model: options2?.model ?? relation,
33727
33697
  context: contextObject,
33728
33698
  idForm: id
33729
33699
  }),
33730
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33700
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33731
33701
  "span",
33732
33702
  {
33733
33703
  className: "cursor-pointer",
@@ -33738,20 +33708,20 @@ var Many2OneField = (props) => {
33738
33708
  )
33739
33709
  ] });
33740
33710
  }
33741
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
33711
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
33742
33712
  allowShowDetail && renderDetail({
33743
33713
  idToolTip: String(name2),
33744
33714
  model: options2?.model ?? relation,
33745
33715
  context: contextObject,
33746
33716
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33747
33717
  }),
33748
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33718
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33749
33719
  "div",
33750
33720
  {
33751
33721
  id: name2,
33752
33722
  "data-tooltip-id": name2,
33753
33723
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33754
- children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33724
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33755
33725
  Controller,
33756
33726
  {
33757
33727
  name: name2 ?? "",
@@ -33776,8 +33746,8 @@ var Many2OneField = (props) => {
33776
33746
  methods?.clearErrors(name2);
33777
33747
  }
33778
33748
  }, [selectedOption]);
33779
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "h-full", children: [
33780
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33749
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "h-full", children: [
33750
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33781
33751
  StateManagedSelect$1,
33782
33752
  {
33783
33753
  menuShouldScrollIntoView: false,
@@ -33853,7 +33823,7 @@ var Many2OneField = (props) => {
33853
33823
  })
33854
33824
  },
33855
33825
  components: {
33856
- MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33826
+ MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33857
33827
  CustomMenuList2,
33858
33828
  {
33859
33829
  ...menuListProps,
@@ -33864,13 +33834,13 @@ var Many2OneField = (props) => {
33864
33834
  }
33865
33835
  ),
33866
33836
  IndicatorSeparator: () => null,
33867
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(components.DropdownIndicator, { ...props2 })
33837
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(components.DropdownIndicator, { ...props2 })
33868
33838
  },
33869
33839
  isDisabled: readonly,
33870
33840
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33871
33841
  }
33872
33842
  ),
33873
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33843
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33874
33844
  ] });
33875
33845
  }
33876
33846
  }
@@ -33881,7 +33851,7 @@ var Many2OneField = (props) => {
33881
33851
  };
33882
33852
 
33883
33853
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33884
- var import_jsx_runtime108 = require("react/jsx-runtime");
33854
+ var import_jsx_runtime109 = require("react/jsx-runtime");
33885
33855
  var StatusbarDurationField = (props) => {
33886
33856
  const {
33887
33857
  disabled,
@@ -33891,14 +33861,14 @@ var StatusbarDurationField = (props) => {
33891
33861
  defaultValue,
33892
33862
  setModalStatus
33893
33863
  } = props;
33894
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33864
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
33895
33865
  "div",
33896
33866
  {
33897
33867
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33898
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex items-center gap-[24px]", children: [
33899
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33868
+ children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex items-center gap-[24px]", children: [
33869
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33900
33870
  const value = option?.id === defaultValue;
33901
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
33871
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
33902
33872
  "label",
33903
33873
  {
33904
33874
  onClick: () => !disabled && handleClick(option.id),
@@ -33908,7 +33878,7 @@ var StatusbarDurationField = (props) => {
33908
33878
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33909
33879
  `,
33910
33880
  children: [
33911
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33881
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
33912
33882
  "input",
33913
33883
  {
33914
33884
  type: "radio",
@@ -33918,7 +33888,7 @@ var StatusbarDurationField = (props) => {
33918
33888
  }
33919
33889
  ),
33920
33890
  option?.name,
33921
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33891
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
33922
33892
  "div",
33923
33893
  {
33924
33894
  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]
@@ -33933,14 +33903,14 @@ var StatusbarDurationField = (props) => {
33933
33903
  }) }),
33934
33904
  dataResponse?.records?.some(
33935
33905
  (item) => item?.fold && item.id !== defaultValue
33936
- ) && /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
33906
+ ) && /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
33937
33907
  "div",
33938
33908
  {
33939
33909
  onClick: () => setModalStatus(!modelStatus),
33940
33910
  className: "w-[24px] h-[24px] cursor-pointer relative",
33941
33911
  children: [
33942
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(MoreIcon, {}),
33943
- modelStatus && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33912
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(MoreIcon, {}),
33913
+ modelStatus && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
33944
33914
  "div",
33945
33915
  {
33946
33916
  onClick: (e3) => e3.stopPropagation(),
@@ -33949,7 +33919,7 @@ var StatusbarDurationField = (props) => {
33949
33919
  (item) => item?.fold && item.id !== defaultValue
33950
33920
  )?.map((option) => {
33951
33921
  const value = option?.id === defaultValue;
33952
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33922
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
33953
33923
  "div",
33954
33924
  {
33955
33925
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33971,14 +33941,14 @@ var StatusbarDurationField = (props) => {
33971
33941
 
33972
33942
  // src/widgets/basic/status-bar-field/option/option.tsx
33973
33943
  var import_react68 = require("react");
33974
- var import_jsx_runtime109 = require("react/jsx-runtime");
33944
+ var import_jsx_runtime110 = require("react/jsx-runtime");
33975
33945
  var StatusBarOptionField = (props) => {
33976
33946
  const { selection, defaultValue } = props;
33977
33947
  const memoizedStatusOptions = (0, import_react68.useMemo)(() => selection, [selection]);
33978
33948
  const indexInProgress = memoizedStatusOptions?.findIndex(
33979
33949
  (option) => option?.[0] === defaultValue
33980
33950
  );
33981
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
33951
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
33982
33952
  "div",
33983
33953
  {
33984
33954
  style: {
@@ -33987,8 +33957,8 @@ var StatusBarOptionField = (props) => {
33987
33957
  flexWrap: "wrap"
33988
33958
  },
33989
33959
  children: memoizedStatusOptions?.map((option, index4) => {
33990
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
33991
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
33960
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
33961
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
33992
33962
  "div",
33993
33963
  {
33994
33964
  style: {
@@ -34006,7 +33976,7 @@ var StatusBarOptionField = (props) => {
34006
33976
  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" : ""
34007
33977
  },
34008
33978
  children: [
34009
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
33979
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34010
33980
  "span",
34011
33981
  {
34012
33982
  style: {
@@ -34018,10 +33988,10 @@ var StatusBarOptionField = (props) => {
34018
33988
  alignItems: "center",
34019
33989
  borderRadius: "100%"
34020
33990
  },
34021
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(ICCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(ICMinus, {})
33991
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(ICCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(ICMinus, {})
34022
33992
  }
34023
33993
  ),
34024
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
33994
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34025
33995
  "span",
34026
33996
  {
34027
33997
  style: {
@@ -34034,7 +34004,7 @@ var StatusBarOptionField = (props) => {
34034
34004
  },
34035
34005
  option?.[0]
34036
34006
  ),
34037
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
34007
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34038
34008
  "div",
34039
34009
  {
34040
34010
  style: {
@@ -34050,7 +34020,7 @@ var StatusBarOptionField = (props) => {
34050
34020
  );
34051
34021
  };
34052
34022
  var ICMinus = () => {
34053
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
34023
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34054
34024
  "svg",
34055
34025
  {
34056
34026
  xmlns: "http://www.w3.org/2000/svg",
@@ -34058,7 +34028,7 @@ var ICMinus = () => {
34058
34028
  height: "16",
34059
34029
  viewBox: "0 0 16 16",
34060
34030
  fill: "none",
34061
- children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
34031
+ children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34062
34032
  "path",
34063
34033
  {
34064
34034
  d: "M4 8H12",
@@ -34072,7 +34042,7 @@ var ICMinus = () => {
34072
34042
  );
34073
34043
  };
34074
34044
  var ICCircle = () => {
34075
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
34045
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34076
34046
  "svg",
34077
34047
  {
34078
34048
  xmlns: "http://www.w3.org/2000/svg",
@@ -34080,12 +34050,12 @@ var ICCircle = () => {
34080
34050
  height: "8",
34081
34051
  viewBox: "0 0 8 8",
34082
34052
  fill: "none",
34083
- children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
34053
+ children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
34084
34054
  }
34085
34055
  );
34086
34056
  };
34087
34057
  var ICCheck = () => {
34088
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
34058
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34089
34059
  "svg",
34090
34060
  {
34091
34061
  xmlns: "http://www.w3.org/2000/svg",
@@ -34093,7 +34063,7 @@ var ICCheck = () => {
34093
34063
  height: "16",
34094
34064
  viewBox: "0 0 16 16",
34095
34065
  fill: "none",
34096
- children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
34066
+ children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34097
34067
  "path",
34098
34068
  {
34099
34069
  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",
@@ -34107,7 +34077,7 @@ var ICCheck = () => {
34107
34077
  };
34108
34078
 
34109
34079
  // src/widgets/basic/date-option-field/date-option.tsx
34110
- var import_jsx_runtime110 = require("react/jsx-runtime");
34080
+ var import_jsx_runtime111 = require("react/jsx-runtime");
34111
34081
  var DateOptionField = (props) => {
34112
34082
  const {
34113
34083
  name: name2,
@@ -34118,19 +34088,19 @@ var DateOptionField = (props) => {
34118
34088
  string,
34119
34089
  onChange: onChange2
34120
34090
  } = props;
34121
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34091
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
34122
34092
  Controller,
34123
34093
  {
34124
34094
  name: name2 ?? "",
34125
34095
  control: methods?.control,
34126
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
34096
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
34127
34097
  "label",
34128
34098
  {
34129
34099
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34130
34100
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34131
34101
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34132
34102
  children: [
34133
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
34103
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
34134
34104
  "input",
34135
34105
  {
34136
34106
  type: "checkbox",
@@ -34197,6 +34167,7 @@ var DateOptionField = (props) => {
34197
34167
  EyeIcon,
34198
34168
  FeeField,
34199
34169
  FileUploadField,
34170
+ FilterColumnIcon,
34200
34171
  FilterIcon,
34201
34172
  FloatField,
34202
34173
  FloatTimeField,