@fctc/sme-widget-ui 1.9.1 → 1.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6931,6 +6931,58 @@ var DeleteIconDanger = () => {
6931
6931
  );
6932
6932
  };
6933
6933
 
6934
+ // src/icons/image-icon.tsx
6935
+ import { jsx as jsx38, jsxs as jsxs20 } from "react/jsx-runtime";
6936
+ var ImageIcon = () => {
6937
+ return /* @__PURE__ */ jsxs20(
6938
+ "svg",
6939
+ {
6940
+ xmlns: "http://www.w3.org/2000/svg",
6941
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
6942
+ width: "38",
6943
+ height: "38",
6944
+ viewBox: "0 0 38 38",
6945
+ children: [
6946
+ /* @__PURE__ */ jsxs20("defs", { children: [
6947
+ /* @__PURE__ */ jsx38("rect", { id: "image-a", width: "32", height: "35", x: "3", y: "1", rx: "3" }),
6948
+ /* @__PURE__ */ jsx38(
6949
+ "path",
6950
+ {
6951
+ id: "image-b",
6952
+ d: "M4,19.1032723 C10.2068966,11.6847994 21.5862069,29.7010908 34,22.2826178 C34,27.7196562 34,31.605523 34,33.9402182 C34,34.6467394 33.6428571,35 32.9285714,35 L5.07142857,35 C4.35714286,35 4,34.6467394 4,33.9402182 C4,30.6431191 4,25.6974705 4,19.1032723 Z"
6953
+ }
6954
+ )
6955
+ ] }),
6956
+ /* @__PURE__ */ jsxs20("g", { fill: "none", fillRule: "evenodd", children: [
6957
+ /* @__PURE__ */ jsx38("polygon", { fill: "#1C8B96", points: "34 2 34 34 4 34" }),
6958
+ /* @__PURE__ */ jsx38("use", { fill: "#FFF", fillOpacity: ".93", xlinkHref: "#image-a" }),
6959
+ /* @__PURE__ */ jsx38(
6960
+ "rect",
6961
+ {
6962
+ width: "30",
6963
+ height: "33",
6964
+ x: "4",
6965
+ y: "2",
6966
+ stroke: "#1C8B96",
6967
+ strokeWidth: "2",
6968
+ rx: "3"
6969
+ }
6970
+ ),
6971
+ /* @__PURE__ */ jsx38("use", { fill: "#1C8B96", fillOpacity: ".516", xlinkHref: "#image-b" }),
6972
+ /* @__PURE__ */ jsx38(
6973
+ "path",
6974
+ {
6975
+ stroke: "#1C8B96",
6976
+ d: "M4.5,19.288684 C4.5,28.1705666 4.5,28.2098953 4.5,33.9402182 C4.5,34.3693663 4.63206932,34.5 5.07142857,34.5 L32.9285714,34.5 C33.3679307,34.5 33.5,34.3693663 33.5,33.9402182 C33.5,29.8349108 33.5,29.6695315 33.5,23.1393414 C28.409924,25.8483285 23.7681405,24.8893521 16.4444643,21.1379608 C11.4216372,18.5651287 11.0931764,18.4094718 9.43982941,17.9988583 C7.34020973,17.4774116 5.78906845,17.8335647 4.5,19.2887422 Z"
6977
+ }
6978
+ ),
6979
+ /* @__PURE__ */ jsx38("circle", { cx: "25.5", cy: "11.5", r: "4.5", fill: "#1C8B96" })
6980
+ ] })
6981
+ ]
6982
+ }
6983
+ );
6984
+ };
6985
+
6934
6986
  // src/types/widget-type/index.ts
6935
6987
  import z from "zod";
6936
6988
  var loginSchema = z.object({
@@ -9989,7 +10041,7 @@ instance.use(Browser).use(initReactI18next).init({
9989
10041
  var i18n_default = instance;
9990
10042
 
9991
10043
  // src/provider/index.tsx
9992
- import { jsx as jsx38 } from "react/jsx-runtime";
10044
+ import { jsx as jsx39 } from "react/jsx-runtime";
9993
10045
  var I18nContext2 = createContext2(null);
9994
10046
  var I18nProvider = ({
9995
10047
  children,
@@ -10001,7 +10053,7 @@ var I18nProvider = ({
10001
10053
  }
10002
10054
  }, [lang]);
10003
10055
  const { t: t3 } = useTranslation();
10004
- return /* @__PURE__ */ jsx38(
10056
+ return /* @__PURE__ */ jsx39(
10005
10057
  I18nContext2.Provider,
10006
10058
  {
10007
10059
  value: {
@@ -10009,7 +10061,7 @@ var I18nProvider = ({
10009
10061
  t: t3,
10010
10062
  changeLanguage: i18n_default.changeLanguage
10011
10063
  },
10012
- children: /* @__PURE__ */ jsx38(I18nextProvider, { i18n: i18n_default, children })
10064
+ children: /* @__PURE__ */ jsx39(I18nextProvider, { i18n: i18n_default, children })
10013
10065
  }
10014
10066
  );
10015
10067
  };
@@ -10577,11 +10629,11 @@ var usePagination = ({
10577
10629
  };
10578
10630
 
10579
10631
  // src/icons/common.tsx
10580
- import { jsx as jsx39 } from "react/jsx-runtime";
10581
- var IcArrow = () => /* @__PURE__ */ jsx39("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx39("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" }) });
10632
+ import { jsx as jsx40 } from "react/jsx-runtime";
10633
+ var IcArrow = () => /* @__PURE__ */ jsx40("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx40("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" }) });
10582
10634
 
10583
10635
  // src/widgets/advanced/pagination/pagination-view.tsx
10584
- import { jsx as jsx40, jsxs as jsxs20 } from "react/jsx-runtime";
10636
+ import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
10585
10637
  var PaginationView = (props) => {
10586
10638
  const {
10587
10639
  displayPageNumberDots,
@@ -10614,25 +10666,25 @@ var PaginationView = (props) => {
10614
10666
  let lastPage = paginationRange[paginationRange.length - 1];
10615
10667
  const startPage = currentPage * pageSize + 1;
10616
10668
  const endPage = Math.min((currentPage + 1) * pageSize, totalCount);
10617
- return /* @__PURE__ */ jsxs20("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10618
- !displayPageNumberDots && /* @__PURE__ */ jsxs20("li", { className: "pagination-item px-0", children: [
10669
+ return /* @__PURE__ */ jsxs21("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10670
+ !displayPageNumberDots && /* @__PURE__ */ jsxs21("li", { className: "pagination-item px-0", children: [
10619
10671
  startPage,
10620
10672
  " - ",
10621
10673
  endPage,
10622
10674
  " / ",
10623
10675
  totalCount
10624
10676
  ] }),
10625
- /* @__PURE__ */ jsx40(
10677
+ /* @__PURE__ */ jsx41(
10626
10678
  "li",
10627
10679
  {
10628
10680
  className: `pagination-item ${currentPage === 0 && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10629
10681
  onClick: onPrevious,
10630
- children: /* @__PURE__ */ jsx40("div", { className: "arrow left", children: /* @__PURE__ */ jsx40(IcArrow, {}) })
10682
+ children: /* @__PURE__ */ jsx41("div", { className: "arrow left", children: /* @__PURE__ */ jsx41(IcArrow, {}) })
10631
10683
  }
10632
10684
  ),
10633
10685
  displayPageNumberDots && paginationRange.map((pageNumber) => {
10634
10686
  if (pageNumber === DOTS) {
10635
- return /* @__PURE__ */ jsx40(
10687
+ return /* @__PURE__ */ jsx41(
10636
10688
  "li",
10637
10689
  {
10638
10690
  className: "pagination-item dots",
@@ -10641,7 +10693,7 @@ var PaginationView = (props) => {
10641
10693
  "pagination" + pageNumber
10642
10694
  );
10643
10695
  }
10644
- return /* @__PURE__ */ jsx40(
10696
+ return /* @__PURE__ */ jsx41(
10645
10697
  "li",
10646
10698
  {
10647
10699
  className: `pagination-item ${pageNumber - 1 === currentPage && "selected"}`,
@@ -10651,12 +10703,12 @@ var PaginationView = (props) => {
10651
10703
  "pagination" + pageNumber
10652
10704
  );
10653
10705
  }),
10654
- /* @__PURE__ */ jsx40(
10706
+ /* @__PURE__ */ jsx41(
10655
10707
  "li",
10656
10708
  {
10657
10709
  className: `pagination-item ${currentPage + 1 === lastPage && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10658
10710
  onClick: onNext,
10659
- children: /* @__PURE__ */ jsx40("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx40(IcArrow, {}) })
10711
+ children: /* @__PURE__ */ jsx41("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx41(IcArrow, {}) })
10660
10712
  }
10661
10713
  )
10662
10714
  ] });
@@ -10666,7 +10718,7 @@ var PaginationView = (props) => {
10666
10718
  import { useState as useState3 } from "react";
10667
10719
 
10668
10720
  // src/widgets/advanced/table/table-group.tsx
10669
- import { Fragment as Fragment2, jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
10721
+ import { Fragment as Fragment2, jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
10670
10722
  var TableGroup = (props) => {
10671
10723
  const { t: t3 } = useI18n();
10672
10724
  const {
@@ -10716,28 +10768,28 @@ var TableGroup = (props) => {
10716
10768
  setSelectedRowKeys
10717
10769
  });
10718
10770
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
10719
- return /* @__PURE__ */ jsxs21(Fragment2, { children: [
10720
- /* @__PURE__ */ jsxs21(
10771
+ return /* @__PURE__ */ jsxs22(Fragment2, { children: [
10772
+ /* @__PURE__ */ jsxs22(
10721
10773
  "tr",
10722
10774
  {
10723
10775
  draggable: true,
10724
10776
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
10725
10777
  onClick: onExpandChildGroup,
10726
10778
  children: [
10727
- /* @__PURE__ */ jsx41(
10779
+ /* @__PURE__ */ jsx42(
10728
10780
  "td",
10729
10781
  {
10730
10782
  colSpan: colEmptyGroup.fromStart ?? 1,
10731
10783
  style: { display: "table-cell" },
10732
10784
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
10733
- children: /* @__PURE__ */ jsxs21(
10785
+ children: /* @__PURE__ */ jsxs22(
10734
10786
  "div",
10735
10787
  {
10736
10788
  style: { paddingLeft: leftPadding },
10737
10789
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
10738
10790
  children: [
10739
- /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2", children: [
10740
- /* @__PURE__ */ jsx41(
10791
+ /* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2", children: [
10792
+ /* @__PURE__ */ jsx42(
10741
10793
  TriangleIcon,
10742
10794
  {
10743
10795
  style: {
@@ -10746,15 +10798,15 @@ var TableGroup = (props) => {
10746
10798
  className: `w-2 h-2 text-button_primary `
10747
10799
  }
10748
10800
  ),
10749
- /* @__PURE__ */ jsx41("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10801
+ /* @__PURE__ */ jsx42("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10750
10802
  ] }),
10751
- /* @__PURE__ */ jsx41(
10803
+ /* @__PURE__ */ jsx42(
10752
10804
  "div",
10753
10805
  {
10754
10806
  onClick: (e3) => {
10755
10807
  e3.stopPropagation();
10756
10808
  },
10757
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx41(
10809
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx42(
10758
10810
  PaginationView,
10759
10811
  {
10760
10812
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -10775,7 +10827,7 @@ var TableGroup = (props) => {
10775
10827
  columns?.map((col) => {
10776
10828
  if (col?.optional === "hide") return;
10777
10829
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
10778
- return /* @__PURE__ */ jsx41(
10830
+ return /* @__PURE__ */ jsx42(
10779
10831
  "td",
10780
10832
  {
10781
10833
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -10793,7 +10845,7 @@ var TableGroup = (props) => {
10793
10845
  ]
10794
10846
  }
10795
10847
  ),
10796
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx41(
10848
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx42(
10797
10849
  TableBodyRow,
10798
10850
  {
10799
10851
  columns: columnsGroup,
@@ -10823,7 +10875,7 @@ var TableGroup = (props) => {
10823
10875
 
10824
10876
  // src/widgets/advanced/table/table-row.tsx
10825
10877
  import { useEffect as useEffect5, useMemo as useMemo3, useRef as useRef4 } from "react";
10826
- import { Fragment as Fragment3, jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
10878
+ import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
10827
10879
  var Row = (props) => {
10828
10880
  const {
10829
10881
  row,
@@ -10889,17 +10941,17 @@ var Row = (props) => {
10889
10941
  setIsAutoSelect(false);
10890
10942
  }
10891
10943
  }, [checkedAll]);
10892
- return /* @__PURE__ */ jsx42(
10944
+ return /* @__PURE__ */ jsx43(
10893
10945
  "tr",
10894
10946
  {
10895
10947
  "data-row-id": row?.id,
10896
10948
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10897
- children: /* @__PURE__ */ jsxs22(Fragment3, { children: [
10898
- isDisplayCheckbox && /* @__PURE__ */ jsx42(
10949
+ children: /* @__PURE__ */ jsxs23(Fragment3, { children: [
10950
+ isDisplayCheckbox && /* @__PURE__ */ jsx43(
10899
10951
  "td",
10900
10952
  {
10901
10953
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
10902
- children: /* @__PURE__ */ jsx42(
10954
+ children: /* @__PURE__ */ jsx43(
10903
10955
  "input",
10904
10956
  {
10905
10957
  type: "checkbox",
@@ -10912,9 +10964,9 @@ var Row = (props) => {
10912
10964
  ),
10913
10965
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
10914
10966
  if (row?.display_type === "line_section" && col.key !== "display_name") {
10915
- return /* @__PURE__ */ jsx42("td", {});
10967
+ return /* @__PURE__ */ jsx43("td", {});
10916
10968
  }
10917
- return /* @__PURE__ */ jsx42(
10969
+ return /* @__PURE__ */ jsx43(
10918
10970
  "td",
10919
10971
  {
10920
10972
  colSpan: 1,
@@ -10933,7 +10985,7 @@ var Row = (props) => {
10933
10985
  `${col.name}____${index4}`
10934
10986
  );
10935
10987
  }),
10936
- typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx42("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx42("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx42(
10988
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx43("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx43("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx43(
10937
10989
  "button",
10938
10990
  {
10939
10991
  type: "button",
@@ -10941,7 +10993,7 @@ var Row = (props) => {
10941
10993
  onClick: () => {
10942
10994
  onRemoveRow(indexRow);
10943
10995
  },
10944
- children: /* @__PURE__ */ jsx42(DeleteIcon, {})
10996
+ children: /* @__PURE__ */ jsx43(DeleteIcon, {})
10945
10997
  }
10946
10998
  ) }) })
10947
10999
  ] })
@@ -10951,7 +11003,7 @@ var Row = (props) => {
10951
11003
  };
10952
11004
 
10953
11005
  // src/widgets/advanced/table/table-body.tsx
10954
- import { jsx as jsx43 } from "react/jsx-runtime";
11006
+ import { jsx as jsx44 } from "react/jsx-runtime";
10955
11007
  var TableBodyRow = (props) => {
10956
11008
  const {
10957
11009
  rows,
@@ -10981,7 +11033,7 @@ var TableBodyRow = (props) => {
10981
11033
  isEditTable
10982
11034
  } = props;
10983
11035
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10984
- return typeTable === "group" ? /* @__PURE__ */ jsx43(
11036
+ return typeTable === "group" ? /* @__PURE__ */ jsx44(
10985
11037
  TableGroup,
10986
11038
  {
10987
11039
  columns,
@@ -11006,7 +11058,7 @@ var TableBodyRow = (props) => {
11006
11058
  onClickRow
11007
11059
  },
11008
11060
  `record-group-${index4}`
11009
- ) : /* @__PURE__ */ jsx43(
11061
+ ) : /* @__PURE__ */ jsx44(
11010
11062
  Row,
11011
11063
  {
11012
11064
  row,
@@ -11034,7 +11086,7 @@ var TableBodyRow = (props) => {
11034
11086
  };
11035
11087
  var TableBody = (props) => {
11036
11088
  const [isAutoSelect, setIsAutoSelect] = useState3(false);
11037
- return /* @__PURE__ */ jsx43("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx43(
11089
+ return /* @__PURE__ */ jsx44("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx44(
11038
11090
  TableBodyRow,
11039
11091
  {
11040
11092
  ...props,
@@ -11047,7 +11099,7 @@ var TableBody = (props) => {
11047
11099
  // src/widgets/advanced/table/table-filter.tsx
11048
11100
  import { useEffect as useEffect6, useRef as useRef5, useState as useState4 } from "react";
11049
11101
  import { createPortal } from "react-dom";
11050
- import { jsx as jsx44, jsxs as jsxs23 } from "react/jsx-runtime";
11102
+ import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
11051
11103
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
11052
11104
  const [openTableFilter, setOpenTableFilter] = useState4();
11053
11105
  const [filterPosition, setFilterPosition] = useState4(null);
@@ -11079,7 +11131,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11079
11131
  window.removeEventListener("resize", updatePosition);
11080
11132
  };
11081
11133
  }, [filterRef, openTableFilter]);
11082
- return /* @__PURE__ */ jsxs23(
11134
+ return /* @__PURE__ */ jsxs24(
11083
11135
  "div",
11084
11136
  {
11085
11137
  ref: filterRef,
@@ -11088,7 +11140,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11088
11140
  },
11089
11141
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
11090
11142
  children: [
11091
- /* @__PURE__ */ jsx44(
11143
+ /* @__PURE__ */ jsx45(
11092
11144
  "button",
11093
11145
  {
11094
11146
  type: "button",
@@ -11096,7 +11148,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11096
11148
  onClick: () => {
11097
11149
  setOpenTableFilter(!openTableFilter);
11098
11150
  },
11099
- children: /* @__PURE__ */ jsxs23(
11151
+ children: /* @__PURE__ */ jsxs24(
11100
11152
  "svg",
11101
11153
  {
11102
11154
  xmlns: "http://www.w3.org/2000/svg",
@@ -11105,42 +11157,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11105
11157
  viewBox: "0 0 16 16",
11106
11158
  fill: "none",
11107
11159
  children: [
11108
- /* @__PURE__ */ jsx44(
11160
+ /* @__PURE__ */ jsx45(
11109
11161
  "path",
11110
11162
  {
11111
11163
  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",
11112
11164
  fill: "#1F1F1F"
11113
11165
  }
11114
11166
  ),
11115
- /* @__PURE__ */ jsx44(
11167
+ /* @__PURE__ */ jsx45(
11116
11168
  "path",
11117
11169
  {
11118
11170
  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",
11119
11171
  fill: "#1F1F1F"
11120
11172
  }
11121
11173
  ),
11122
- /* @__PURE__ */ jsx44(
11174
+ /* @__PURE__ */ jsx45(
11123
11175
  "path",
11124
11176
  {
11125
11177
  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",
11126
11178
  fill: "#1F1F1F"
11127
11179
  }
11128
11180
  ),
11129
- /* @__PURE__ */ jsx44(
11181
+ /* @__PURE__ */ jsx45(
11130
11182
  "path",
11131
11183
  {
11132
11184
  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",
11133
11185
  fill: "black"
11134
11186
  }
11135
11187
  ),
11136
- /* @__PURE__ */ jsx44(
11188
+ /* @__PURE__ */ jsx45(
11137
11189
  "path",
11138
11190
  {
11139
11191
  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",
11140
11192
  fill: "black"
11141
11193
  }
11142
11194
  ),
11143
- /* @__PURE__ */ jsx44(
11195
+ /* @__PURE__ */ jsx45(
11144
11196
  "path",
11145
11197
  {
11146
11198
  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",
@@ -11153,7 +11205,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11153
11205
  }
11154
11206
  ),
11155
11207
  filterPosition && openTableFilter && createPortal(
11156
- /* @__PURE__ */ jsx44(
11208
+ /* @__PURE__ */ jsx45(
11157
11209
  "div",
11158
11210
  {
11159
11211
  ref: filterPopupRef,
@@ -11164,8 +11216,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11164
11216
  },
11165
11217
  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",
11166
11218
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
11167
- return /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
11168
- /* @__PURE__ */ jsx44(
11219
+ return /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
11220
+ /* @__PURE__ */ jsx45(
11169
11221
  "input",
11170
11222
  {
11171
11223
  type: "checkbox",
@@ -11175,7 +11227,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11175
11227
  className: "cursor-pointer"
11176
11228
  }
11177
11229
  ),
11178
- /* @__PURE__ */ jsx44(
11230
+ /* @__PURE__ */ jsx45(
11179
11231
  "label",
11180
11232
  {
11181
11233
  htmlFor: `${item.name}`,
@@ -11195,14 +11247,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11195
11247
  };
11196
11248
 
11197
11249
  // src/widgets/advanced/table/table-footer.tsx
11198
- import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
11250
+ import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
11199
11251
  var TableFooter = ({ onAddRow, rows }) => {
11200
11252
  const emptyData = rows?.length <= 0;
11201
- return /* @__PURE__ */ jsx45("tfoot", { children: /* @__PURE__ */ jsx45("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx45(
11253
+ return /* @__PURE__ */ jsx46("tfoot", { children: /* @__PURE__ */ jsx46("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx46(
11202
11254
  "td",
11203
11255
  {
11204
11256
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
11205
- children: /* @__PURE__ */ jsxs24(
11257
+ children: /* @__PURE__ */ jsxs25(
11206
11258
  "button",
11207
11259
  {
11208
11260
  type: "button",
@@ -11212,7 +11264,7 @@ var TableFooter = ({ onAddRow, rows }) => {
11212
11264
  },
11213
11265
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
11214
11266
  children: [
11215
- /* @__PURE__ */ jsxs24(
11267
+ /* @__PURE__ */ jsxs25(
11216
11268
  "svg",
11217
11269
  {
11218
11270
  style: {
@@ -11225,14 +11277,14 @@ var TableFooter = ({ onAddRow, rows }) => {
11225
11277
  viewBox: "0 0 20 20",
11226
11278
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
11227
11279
  children: [
11228
- /* @__PURE__ */ jsx45(
11280
+ /* @__PURE__ */ jsx46(
11229
11281
  "path",
11230
11282
  {
11231
11283
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
11232
11284
  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"
11233
11285
  }
11234
11286
  ),
11235
- /* @__PURE__ */ jsx45(
11287
+ /* @__PURE__ */ jsx46(
11236
11288
  "path",
11237
11289
  {
11238
11290
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -13052,7 +13104,8 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
13052
13104
  });
13053
13105
 
13054
13106
  // src/widgets/advanced/table/table-head.tsx
13055
- import { Fragment as Fragment4, jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
13107
+ import { createPortal as createPortal2 } from "react-dom";
13108
+ import { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
13056
13109
  var TableHead = (props) => {
13057
13110
  const {
13058
13111
  handleCheckBoxAll,
@@ -13062,7 +13115,7 @@ var TableHead = (props) => {
13062
13115
  onRemoveRow,
13063
13116
  onToggleColumnOptional
13064
13117
  } = props;
13065
- return /* @__PURE__ */ jsx46("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs25(
13118
+ return /* @__PURE__ */ jsx47("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs26(
13066
13119
  "tr",
13067
13120
  {
13068
13121
  style: {
@@ -13074,11 +13127,11 @@ var TableHead = (props) => {
13074
13127
  },
13075
13128
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
13076
13129
  children: [
13077
- isDisplayCheckbox && /* @__PURE__ */ jsx46(
13130
+ isDisplayCheckbox && /* @__PURE__ */ jsx47(
13078
13131
  "th",
13079
13132
  {
13080
13133
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
13081
- children: /* @__PURE__ */ jsx46(
13134
+ children: /* @__PURE__ */ jsx47(
13082
13135
  "input",
13083
13136
  {
13084
13137
  type: "checkbox",
@@ -13090,32 +13143,36 @@ var TableHead = (props) => {
13090
13143
  }
13091
13144
  ),
13092
13145
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
13093
- return /* @__PURE__ */ jsx46(
13146
+ return /* @__PURE__ */ jsx47(
13094
13147
  "th",
13095
13148
  {
13149
+ "data-rtc-resizable": col?.name,
13096
13150
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
13097
- children: /* @__PURE__ */ jsxs25("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
13151
+ children: /* @__PURE__ */ jsxs26("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
13098
13152
  col.title,
13099
- col?.field?.help && /* @__PURE__ */ jsxs25(Fragment4, { children: [
13100
- /* @__PURE__ */ jsx46(
13101
- M,
13102
- {
13103
- style: {
13104
- padding: "6px 12px",
13105
- fontSize: "12px",
13106
- borderRadius: "4px",
13107
- maxWidth: "200%",
13108
- whiteSpace: "wrap",
13109
- fontWeight: 400,
13110
- textTransform: "none"
13111
- },
13112
- id: `field-help-${col?.field?.name}`,
13113
- content: col?.field?.help,
13114
- place: "top",
13115
- className: "z-30"
13116
- }
13153
+ col?.field?.help && /* @__PURE__ */ jsxs26(Fragment4, { children: [
13154
+ createPortal2(
13155
+ /* @__PURE__ */ jsx47(
13156
+ M,
13157
+ {
13158
+ style: {
13159
+ padding: "6px 12px",
13160
+ fontSize: "12px",
13161
+ borderRadius: "4px",
13162
+ maxWidth: "200px",
13163
+ whiteSpace: "wrap",
13164
+ fontWeight: 400,
13165
+ textTransform: "none",
13166
+ zIndex: "9999"
13167
+ },
13168
+ id: `field-help-${col?.field?.name}`,
13169
+ content: col?.field?.help,
13170
+ place: "top"
13171
+ }
13172
+ ),
13173
+ document.body
13117
13174
  ),
13118
- /* @__PURE__ */ jsx46(
13175
+ /* @__PURE__ */ jsx47(
13119
13176
  "span",
13120
13177
  {
13121
13178
  style: {
@@ -13134,8 +13191,8 @@ var TableHead = (props) => {
13134
13191
  "table-head-" + index4
13135
13192
  );
13136
13193
  }),
13137
- typeof onRemoveRow === "function" && /* @__PURE__ */ jsx46("th", { className: "relative p-2 w-[35px]" }),
13138
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx46(
13194
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx47("th", { className: "relative p-2 w-[35px]" }),
13195
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
13139
13196
  "th",
13140
13197
  {
13141
13198
  style: {
@@ -13143,7 +13200,7 @@ var TableHead = (props) => {
13143
13200
  right: 0
13144
13201
  },
13145
13202
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
13146
- children: /* @__PURE__ */ jsx46(
13203
+ children: /* @__PURE__ */ jsx47(
13147
13204
  TableFilter,
13148
13205
  {
13149
13206
  columns,
@@ -13158,9 +13215,9 @@ var TableHead = (props) => {
13158
13215
  };
13159
13216
 
13160
13217
  // src/icons/empty-table-icon.tsx
13161
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
13218
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
13162
13219
  var IcEmptyTable = () => {
13163
- return /* @__PURE__ */ jsxs26(
13220
+ return /* @__PURE__ */ jsxs27(
13164
13221
  "svg",
13165
13222
  {
13166
13223
  xmlns: "http://www.w3.org/2000/svg",
@@ -13169,9 +13226,9 @@ var IcEmptyTable = () => {
13169
13226
  viewBox: "0 0 216 140",
13170
13227
  fill: "none",
13171
13228
  children: [
13172
- /* @__PURE__ */ jsxs26("g", { clipPath: "url(#clip0_2454_28950)", children: [
13173
- /* @__PURE__ */ jsx47("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13174
- /* @__PURE__ */ jsx47(
13229
+ /* @__PURE__ */ jsxs27("g", { clipPath: "url(#clip0_2454_28950)", children: [
13230
+ /* @__PURE__ */ jsx48("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13231
+ /* @__PURE__ */ jsx48(
13175
13232
  "path",
13176
13233
  {
13177
13234
  d: "M64.5 0V140",
@@ -13181,7 +13238,7 @@ var IcEmptyTable = () => {
13181
13238
  strokeDasharray: "3 3"
13182
13239
  }
13183
13240
  ),
13184
- /* @__PURE__ */ jsx47(
13241
+ /* @__PURE__ */ jsx48(
13185
13242
  "path",
13186
13243
  {
13187
13244
  d: "M151.5 0V140",
@@ -13191,7 +13248,7 @@ var IcEmptyTable = () => {
13191
13248
  strokeDasharray: "3 3"
13192
13249
  }
13193
13250
  ),
13194
- /* @__PURE__ */ jsx47(
13251
+ /* @__PURE__ */ jsx48(
13195
13252
  "path",
13196
13253
  {
13197
13254
  d: "M215.5 24H0.5",
@@ -13201,7 +13258,7 @@ var IcEmptyTable = () => {
13201
13258
  strokeDasharray: "3 3"
13202
13259
  }
13203
13260
  ),
13204
- /* @__PURE__ */ jsx47(
13261
+ /* @__PURE__ */ jsx48(
13205
13262
  "path",
13206
13263
  {
13207
13264
  d: "M215.5 50H0.5",
@@ -13211,7 +13268,7 @@ var IcEmptyTable = () => {
13211
13268
  strokeDasharray: "3 3"
13212
13269
  }
13213
13270
  ),
13214
- /* @__PURE__ */ jsx47(
13271
+ /* @__PURE__ */ jsx48(
13215
13272
  "path",
13216
13273
  {
13217
13274
  d: "M215.5 88H0.5",
@@ -13221,7 +13278,7 @@ var IcEmptyTable = () => {
13221
13278
  strokeDasharray: "3 3"
13222
13279
  }
13223
13280
  ),
13224
- /* @__PURE__ */ jsx47(
13281
+ /* @__PURE__ */ jsx48(
13225
13282
  "path",
13226
13283
  {
13227
13284
  d: "M215.5 114H0.5",
@@ -13231,7 +13288,7 @@ var IcEmptyTable = () => {
13231
13288
  strokeDasharray: "3 3"
13232
13289
  }
13233
13290
  ),
13234
- /* @__PURE__ */ jsx47(
13291
+ /* @__PURE__ */ jsx48(
13235
13292
  "path",
13236
13293
  {
13237
13294
  d: "M199.5 0V140",
@@ -13240,7 +13297,7 @@ var IcEmptyTable = () => {
13240
13297
  strokeMiterlimit: "10"
13241
13298
  }
13242
13299
  ),
13243
- /* @__PURE__ */ jsx47(
13300
+ /* @__PURE__ */ jsx48(
13244
13301
  "path",
13245
13302
  {
13246
13303
  d: "M16.5 0V140",
@@ -13249,7 +13306,7 @@ var IcEmptyTable = () => {
13249
13306
  strokeMiterlimit: "10"
13250
13307
  }
13251
13308
  ),
13252
- /* @__PURE__ */ jsx47(
13309
+ /* @__PURE__ */ jsx48(
13253
13310
  "path",
13254
13311
  {
13255
13312
  d: "M0.5 16H215.5",
@@ -13258,7 +13315,7 @@ var IcEmptyTable = () => {
13258
13315
  strokeMiterlimit: "10"
13259
13316
  }
13260
13317
  ),
13261
- /* @__PURE__ */ jsx47(
13318
+ /* @__PURE__ */ jsx48(
13262
13319
  "path",
13263
13320
  {
13264
13321
  d: "M0.5 124H215.5",
@@ -13267,7 +13324,7 @@ var IcEmptyTable = () => {
13267
13324
  strokeMiterlimit: "10"
13268
13325
  }
13269
13326
  ),
13270
- /* @__PURE__ */ jsx47(
13327
+ /* @__PURE__ */ jsx48(
13271
13328
  "path",
13272
13329
  {
13273
13330
  opacity: "0.6",
@@ -13278,7 +13335,7 @@ var IcEmptyTable = () => {
13278
13335
  strokeLinejoin: "round"
13279
13336
  }
13280
13337
  ),
13281
- /* @__PURE__ */ jsx47(
13338
+ /* @__PURE__ */ jsx48(
13282
13339
  "path",
13283
13340
  {
13284
13341
  opacity: "0.6",
@@ -13289,7 +13346,7 @@ var IcEmptyTable = () => {
13289
13346
  strokeLinejoin: "round"
13290
13347
  }
13291
13348
  ),
13292
- /* @__PURE__ */ jsx47(
13349
+ /* @__PURE__ */ jsx48(
13293
13350
  "path",
13294
13351
  {
13295
13352
  opacity: "0.6",
@@ -13300,7 +13357,7 @@ var IcEmptyTable = () => {
13300
13357
  strokeLinejoin: "round"
13301
13358
  }
13302
13359
  ),
13303
- /* @__PURE__ */ jsx47(
13360
+ /* @__PURE__ */ jsx48(
13304
13361
  "path",
13305
13362
  {
13306
13363
  opacity: "0.6",
@@ -13311,7 +13368,7 @@ var IcEmptyTable = () => {
13311
13368
  strokeLinejoin: "round"
13312
13369
  }
13313
13370
  ),
13314
- /* @__PURE__ */ jsx47(
13371
+ /* @__PURE__ */ jsx48(
13315
13372
  "path",
13316
13373
  {
13317
13374
  opacity: "0.6",
@@ -13322,14 +13379,14 @@ var IcEmptyTable = () => {
13322
13379
  strokeLinejoin: "round"
13323
13380
  }
13324
13381
  ),
13325
- /* @__PURE__ */ jsx47(
13382
+ /* @__PURE__ */ jsx48(
13326
13383
  "path",
13327
13384
  {
13328
13385
  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",
13329
13386
  fill: "white"
13330
13387
  }
13331
13388
  ),
13332
- /* @__PURE__ */ jsx47(
13389
+ /* @__PURE__ */ jsx48(
13333
13390
  "path",
13334
13391
  {
13335
13392
  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",
@@ -13339,7 +13396,7 @@ var IcEmptyTable = () => {
13339
13396
  strokeLinejoin: "round"
13340
13397
  }
13341
13398
  ),
13342
- /* @__PURE__ */ jsx47(
13399
+ /* @__PURE__ */ jsx48(
13343
13400
  "path",
13344
13401
  {
13345
13402
  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",
@@ -13348,7 +13405,7 @@ var IcEmptyTable = () => {
13348
13405
  strokeLinejoin: "round"
13349
13406
  }
13350
13407
  ),
13351
- /* @__PURE__ */ jsx47(
13408
+ /* @__PURE__ */ jsx48(
13352
13409
  "path",
13353
13410
  {
13354
13411
  opacity: "0.6",
@@ -13359,7 +13416,7 @@ var IcEmptyTable = () => {
13359
13416
  strokeLinejoin: "round"
13360
13417
  }
13361
13418
  ),
13362
- /* @__PURE__ */ jsx47(
13419
+ /* @__PURE__ */ jsx48(
13363
13420
  "path",
13364
13421
  {
13365
13422
  opacity: "0.6",
@@ -13370,7 +13427,7 @@ var IcEmptyTable = () => {
13370
13427
  strokeLinejoin: "round"
13371
13428
  }
13372
13429
  ),
13373
- /* @__PURE__ */ jsx47(
13430
+ /* @__PURE__ */ jsx48(
13374
13431
  "path",
13375
13432
  {
13376
13433
  opacity: "0.6",
@@ -13381,7 +13438,7 @@ var IcEmptyTable = () => {
13381
13438
  strokeLinejoin: "round"
13382
13439
  }
13383
13440
  ),
13384
- /* @__PURE__ */ jsx47(
13441
+ /* @__PURE__ */ jsx48(
13385
13442
  "path",
13386
13443
  {
13387
13444
  opacity: "0.6",
@@ -13392,7 +13449,7 @@ var IcEmptyTable = () => {
13392
13449
  strokeLinejoin: "round"
13393
13450
  }
13394
13451
  ),
13395
- /* @__PURE__ */ jsx47(
13452
+ /* @__PURE__ */ jsx48(
13396
13453
  "path",
13397
13454
  {
13398
13455
  opacity: "0.6",
@@ -13403,7 +13460,7 @@ var IcEmptyTable = () => {
13403
13460
  strokeLinejoin: "round"
13404
13461
  }
13405
13462
  ),
13406
- /* @__PURE__ */ jsx47(
13463
+ /* @__PURE__ */ jsx48(
13407
13464
  "path",
13408
13465
  {
13409
13466
  opacity: "0.6",
@@ -13414,7 +13471,7 @@ var IcEmptyTable = () => {
13414
13471
  strokeLinejoin: "round"
13415
13472
  }
13416
13473
  ),
13417
- /* @__PURE__ */ jsx47(
13474
+ /* @__PURE__ */ jsx48(
13418
13475
  "path",
13419
13476
  {
13420
13477
  opacity: "0.6",
@@ -13425,7 +13482,7 @@ var IcEmptyTable = () => {
13425
13482
  strokeLinejoin: "round"
13426
13483
  }
13427
13484
  ),
13428
- /* @__PURE__ */ jsx47(
13485
+ /* @__PURE__ */ jsx48(
13429
13486
  "path",
13430
13487
  {
13431
13488
  opacity: "0.6",
@@ -13436,7 +13493,7 @@ var IcEmptyTable = () => {
13436
13493
  strokeLinejoin: "round"
13437
13494
  }
13438
13495
  ),
13439
- /* @__PURE__ */ jsx47(
13496
+ /* @__PURE__ */ jsx48(
13440
13497
  "path",
13441
13498
  {
13442
13499
  opacity: "0.6",
@@ -13447,14 +13504,14 @@ var IcEmptyTable = () => {
13447
13504
  strokeLinejoin: "round"
13448
13505
  }
13449
13506
  ),
13450
- /* @__PURE__ */ jsx47(
13507
+ /* @__PURE__ */ jsx48(
13451
13508
  "path",
13452
13509
  {
13453
13510
  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",
13454
13511
  fill: "white"
13455
13512
  }
13456
13513
  ),
13457
- /* @__PURE__ */ jsx47(
13514
+ /* @__PURE__ */ jsx48(
13458
13515
  "path",
13459
13516
  {
13460
13517
  "fill-rule": "evenodd",
@@ -13463,7 +13520,7 @@ var IcEmptyTable = () => {
13463
13520
  fill: "white"
13464
13521
  }
13465
13522
  ),
13466
- /* @__PURE__ */ jsx47(
13523
+ /* @__PURE__ */ jsx48(
13467
13524
  "path",
13468
13525
  {
13469
13526
  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",
@@ -13474,7 +13531,7 @@ var IcEmptyTable = () => {
13474
13531
  }
13475
13532
  )
13476
13533
  ] }),
13477
- /* @__PURE__ */ jsx47("defs", { children: /* @__PURE__ */ jsx47("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx47(
13534
+ /* @__PURE__ */ jsx48("defs", { children: /* @__PURE__ */ jsx48("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx48(
13478
13535
  "rect",
13479
13536
  {
13480
13537
  width: "215",
@@ -13489,14 +13546,14 @@ var IcEmptyTable = () => {
13489
13546
  };
13490
13547
 
13491
13548
  // src/widgets/advanced/table/empty-table.tsx
13492
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
13549
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
13493
13550
  var EmptyTable = () => {
13494
13551
  const { t: t3 } = useI18n();
13495
- return /* @__PURE__ */ jsxs27("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13496
- /* @__PURE__ */ jsx48(IcEmptyTable, {}),
13497
- /* @__PURE__ */ jsxs27("div", { children: [
13498
- /* @__PURE__ */ jsx48("p", {}),
13499
- /* @__PURE__ */ jsx48("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13552
+ return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13553
+ /* @__PURE__ */ jsx49(IcEmptyTable, {}),
13554
+ /* @__PURE__ */ jsxs28("div", { children: [
13555
+ /* @__PURE__ */ jsx49("p", {}),
13556
+ /* @__PURE__ */ jsx49("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13500
13557
  ] })
13501
13558
  ] });
13502
13559
  };
@@ -15315,10 +15372,10 @@ function s3(o3, s4, t3) {
15315
15372
 
15316
15373
  // src/widgets/advanced/login/shared/button.tsx
15317
15374
  import * as React2 from "react";
15318
- import { jsx as jsx49 } from "react/jsx-runtime";
15375
+ import { jsx as jsx50 } from "react/jsx-runtime";
15319
15376
  var Button = React2.forwardRef(
15320
15377
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
15321
- return /* @__PURE__ */ jsx49(
15378
+ return /* @__PURE__ */ jsx50(
15322
15379
  "button",
15323
15380
  {
15324
15381
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -15328,7 +15385,7 @@ var Button = React2.forwardRef(
15328
15385
  ref,
15329
15386
  type,
15330
15387
  ...props,
15331
- children: isLoading ? /* @__PURE__ */ jsx49(LoadingIcon, { width: 20, height: 20 }) : children
15388
+ children: isLoading ? /* @__PURE__ */ jsx50(LoadingIcon, { width: 20, height: 20 }) : children
15332
15389
  }
15333
15390
  );
15334
15391
  }
@@ -15337,7 +15394,7 @@ Button.displayName = "Button";
15337
15394
 
15338
15395
  // src/widgets/advanced/login/shared/text-input.tsx
15339
15396
  import { useState as useState5 } from "react";
15340
- import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
15397
+ import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
15341
15398
  function TextInput(props) {
15342
15399
  const {
15343
15400
  className,
@@ -15351,17 +15408,17 @@ function TextInput(props) {
15351
15408
  required
15352
15409
  } = props;
15353
15410
  const [showPassword, setShowPassword] = useState5(false);
15354
- return /* @__PURE__ */ jsxs28("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15355
- label && /* @__PURE__ */ jsxs28("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15411
+ return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15412
+ label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15356
15413
  label,
15357
- required ? /* @__PURE__ */ jsx50("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15414
+ required ? /* @__PURE__ */ jsx51("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15358
15415
  ] }),
15359
- /* @__PURE__ */ jsxs28(
15416
+ /* @__PURE__ */ jsxs29(
15360
15417
  "div",
15361
15418
  {
15362
15419
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
15363
15420
  children: [
15364
- /* @__PURE__ */ jsx50(
15421
+ /* @__PURE__ */ jsx51(
15365
15422
  "input",
15366
15423
  {
15367
15424
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -15370,18 +15427,18 @@ function TextInput(props) {
15370
15427
  ...register(name2)
15371
15428
  }
15372
15429
  ),
15373
- type === "password" && /* @__PURE__ */ jsx50(
15430
+ type === "password" && /* @__PURE__ */ jsx51(
15374
15431
  "span",
15375
15432
  {
15376
15433
  onClick: () => setShowPassword(!showPassword),
15377
15434
  className: "focus:outline-none",
15378
- children: showPassword ? /* @__PURE__ */ jsx50(EyeClosedIcon, {}) : /* @__PURE__ */ jsx50(EyeIcon, {})
15435
+ children: showPassword ? /* @__PURE__ */ jsx51(EyeClosedIcon, {}) : /* @__PURE__ */ jsx51(EyeIcon, {})
15379
15436
  }
15380
15437
  )
15381
15438
  ]
15382
15439
  }
15383
15440
  ),
15384
- errors?.[name2]?.message && /* @__PURE__ */ jsx50(
15441
+ errors?.[name2]?.message && /* @__PURE__ */ jsx51(
15385
15442
  "p",
15386
15443
  {
15387
15444
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -15393,7 +15450,7 @@ function TextInput(props) {
15393
15450
 
15394
15451
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
15395
15452
  import { useEffect as useEffect7 } from "react";
15396
- import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
15453
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
15397
15454
  var STAY_LOGIN_IN = "stayLoginIn";
15398
15455
  function FormOptions({
15399
15456
  forgotPasswordUrl,
@@ -15419,9 +15476,9 @@ function FormOptions({
15419
15476
  useEffect7(() => {
15420
15477
  localStorage.setItem(STAY_LOGIN_IN, "false");
15421
15478
  }, []);
15422
- return /* @__PURE__ */ jsxs29("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15423
- /* @__PURE__ */ jsxs29("label", { className: "flex gap-3", children: [
15424
- /* @__PURE__ */ jsx51(
15479
+ return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15480
+ /* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
15481
+ /* @__PURE__ */ jsx52(
15425
15482
  "input",
15426
15483
  {
15427
15484
  checked: stayLoginIn,
@@ -15430,14 +15487,14 @@ function FormOptions({
15430
15487
  onChange: handleCheckboxChange
15431
15488
  }
15432
15489
  ),
15433
- /* @__PURE__ */ jsx51("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15490
+ /* @__PURE__ */ jsx52("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15434
15491
  ] }),
15435
- !hideForgotPassword && /* @__PURE__ */ jsx51("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15492
+ !hideForgotPassword && /* @__PURE__ */ jsx52("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15436
15493
  ] });
15437
15494
  }
15438
15495
 
15439
15496
  // src/widgets/advanced/login/provider/credential/index.tsx
15440
- import { Fragment as Fragment5, jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
15497
+ import { Fragment as Fragment5, jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15441
15498
  var CredentialLogin = (props) => {
15442
15499
  const {
15443
15500
  shouldRenderDivider,
@@ -15457,16 +15514,16 @@ var CredentialLogin = (props) => {
15457
15514
  mode: "onChange",
15458
15515
  resolver: s3(loginSchema)
15459
15516
  });
15460
- return /* @__PURE__ */ jsxs30(Fragment5, { children: [
15461
- /* @__PURE__ */ jsxs30(
15517
+ return /* @__PURE__ */ jsxs31(Fragment5, { children: [
15518
+ /* @__PURE__ */ jsxs31(
15462
15519
  "form",
15463
15520
  {
15464
15521
  onSubmit: handleSubmit(onSubmit ?? (() => {
15465
15522
  })),
15466
15523
  className: `flex w-full h-fit flex-col gap-10`,
15467
15524
  children: [
15468
- /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-6", children: [
15469
- /* @__PURE__ */ jsx52(
15525
+ /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
15526
+ /* @__PURE__ */ jsx53(
15470
15527
  TextInput,
15471
15528
  {
15472
15529
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15479,7 +15536,7 @@ var CredentialLogin = (props) => {
15479
15536
  errors
15480
15537
  }
15481
15538
  ),
15482
- /* @__PURE__ */ jsx52(
15539
+ /* @__PURE__ */ jsx53(
15483
15540
  TextInput,
15484
15541
  {
15485
15542
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15492,7 +15549,7 @@ var CredentialLogin = (props) => {
15492
15549
  errors
15493
15550
  }
15494
15551
  ),
15495
- /* @__PURE__ */ jsx52(
15552
+ /* @__PURE__ */ jsx53(
15496
15553
  FormOptions,
15497
15554
  {
15498
15555
  forgotPasswordUrl,
@@ -15502,7 +15559,7 @@ var CredentialLogin = (props) => {
15502
15559
  }
15503
15560
  )
15504
15561
  ] }),
15505
- /* @__PURE__ */ jsx52("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx52(
15562
+ /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx53(
15506
15563
  Button,
15507
15564
  {
15508
15565
  type: "submit",
@@ -15514,56 +15571,56 @@ var CredentialLogin = (props) => {
15514
15571
  ]
15515
15572
  }
15516
15573
  ),
15517
- shouldRenderDivider && /* @__PURE__ */ jsxs30("div", { className: "flex justify-center relative", children: [
15518
- /* @__PURE__ */ jsx52("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15519
- /* @__PURE__ */ jsx52("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15574
+ shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
15575
+ /* @__PURE__ */ jsx53("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15576
+ /* @__PURE__ */ jsx53("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15520
15577
  ] })
15521
15578
  ] });
15522
15579
  };
15523
15580
 
15524
15581
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15525
- import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15582
+ import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
15526
15583
  function GoogleButton(props) {
15527
15584
  const { onLoginGoogle, db } = props;
15528
- return /* @__PURE__ */ jsxs31(
15585
+ return /* @__PURE__ */ jsxs32(
15529
15586
  "button",
15530
15587
  {
15531
15588
  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",
15532
15589
  onClick: () => onLoginGoogle?.(db),
15533
15590
  children: [
15534
- /* @__PURE__ */ jsx53(GoogleIcon, { className: "google-icon" }),
15535
- /* @__PURE__ */ jsx53("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15591
+ /* @__PURE__ */ jsx54(GoogleIcon, { className: "google-icon" }),
15592
+ /* @__PURE__ */ jsx54("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15536
15593
  ]
15537
15594
  }
15538
15595
  );
15539
15596
  }
15540
15597
 
15541
15598
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15542
- import { Fragment as Fragment6, jsx as jsx54 } from "react/jsx-runtime";
15599
+ import { Fragment as Fragment6, jsx as jsx55 } from "react/jsx-runtime";
15543
15600
  function SocialRedirect(props) {
15544
15601
  const { db, onLoginSocial } = props;
15545
15602
  onLoginSocial && onLoginSocial(String(db));
15546
- return /* @__PURE__ */ jsx54(Fragment6, {});
15603
+ return /* @__PURE__ */ jsx55(Fragment6, {});
15547
15604
  }
15548
15605
 
15549
15606
  // src/widgets/advanced/login/provider/google/index.tsx
15550
- import { Fragment as Fragment7, jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
15607
+ import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15551
15608
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15552
- return /* @__PURE__ */ jsxs32(Fragment7, { children: [
15553
- /* @__PURE__ */ jsx55(GoogleButton, { db, onLoginGoogle }),
15554
- /* @__PURE__ */ jsx55(SocialRedirect, { db, onLoginSocial })
15609
+ return /* @__PURE__ */ jsxs33(Fragment7, { children: [
15610
+ /* @__PURE__ */ jsx56(GoogleButton, { db, onLoginGoogle }),
15611
+ /* @__PURE__ */ jsx56(SocialRedirect, { db, onLoginSocial })
15555
15612
  ] });
15556
15613
  };
15557
15614
 
15558
15615
  // src/widgets/advanced/login/index.tsx
15559
- import { jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15616
+ import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15560
15617
  var LoginProviderMapping = {
15561
15618
  google: GoogleLogin
15562
15619
  };
15563
15620
  var Login = (props) => {
15564
15621
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15565
- return /* @__PURE__ */ jsxs33("div", { className: "w-full space-y-8", children: [
15566
- /* @__PURE__ */ jsx56(
15622
+ return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
15623
+ /* @__PURE__ */ jsx57(
15567
15624
  CredentialLogin,
15568
15625
  {
15569
15626
  ...props,
@@ -15573,7 +15630,7 @@ var Login = (props) => {
15573
15630
  ),
15574
15631
  providers.map((provider, index4) => {
15575
15632
  const ProviderComp = LoginProviderMapping[provider];
15576
- return /* @__PURE__ */ jsx56(
15633
+ return /* @__PURE__ */ jsx57(
15577
15634
  ProviderComp,
15578
15635
  {
15579
15636
  db,
@@ -15587,7 +15644,7 @@ var Login = (props) => {
15587
15644
  };
15588
15645
 
15589
15646
  // src/widgets/advanced/search/popup-filter/index.tsx
15590
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15647
+ import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15591
15648
  var PopupFilter = ({
15592
15649
  handleAddTagSearch,
15593
15650
  removeSearchItems,
@@ -15598,7 +15655,7 @@ var PopupFilter = ({
15598
15655
  fields
15599
15656
  }) => {
15600
15657
  const { t: t3 } = useI18n();
15601
- return /* @__PURE__ */ jsx57(
15658
+ return /* @__PURE__ */ jsx58(
15602
15659
  "div",
15603
15660
  {
15604
15661
  style: {
@@ -15608,25 +15665,25 @@ var PopupFilter = ({
15608
15665
  zIndex: 33
15609
15666
  },
15610
15667
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15611
- children: /* @__PURE__ */ jsxs34(
15668
+ children: /* @__PURE__ */ jsxs35(
15612
15669
  "div",
15613
15670
  {
15614
15671
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15615
15672
  children: [
15616
- filterBy?.length > 0 && /* @__PURE__ */ jsxs34("div", { className: "filter-by w-full px-3", children: [
15617
- /* @__PURE__ */ jsxs34("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15618
- /* @__PURE__ */ jsx57(FilterIcon, { className: "filter-by-icon text-primary" }),
15619
- /* @__PURE__ */ jsx57("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15673
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
15674
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15675
+ /* @__PURE__ */ jsx58(FilterIcon, { className: "filter-by-icon text-primary" }),
15676
+ /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15620
15677
  ] }),
15621
15678
  filterBy?.reduce((acc, item, index4, array) => {
15622
15679
  const prevItem = array[index4 - 1];
15623
15680
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15624
15681
  const isExist = item?.active;
15625
15682
  if (isDifferentGroup) {
15626
- acc.push(/* @__PURE__ */ jsx57("hr", { className: "my-2" }, "separator-" + index4));
15683
+ acc.push(/* @__PURE__ */ jsx58("hr", { className: "my-2" }, "separator-" + index4));
15627
15684
  }
15628
15685
  acc.push(
15629
- /* @__PURE__ */ jsxs34(
15686
+ /* @__PURE__ */ jsxs35(
15630
15687
  "button",
15631
15688
  {
15632
15689
  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)]"}`,
@@ -15651,8 +15708,8 @@ var PopupFilter = ({
15651
15708
  });
15652
15709
  },
15653
15710
  children: [
15654
- isExist && /* @__PURE__ */ jsx57(CheckIcon, {}),
15655
- /* @__PURE__ */ jsx57("span", { className: "text-sm", children: item?.string ?? item?.help })
15711
+ isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15712
+ /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string ?? item?.help })
15656
15713
  ]
15657
15714
  },
15658
15715
  "filter-" + index4
@@ -15661,16 +15718,16 @@ var PopupFilter = ({
15661
15718
  return acc;
15662
15719
  }, [])
15663
15720
  ] }),
15664
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx57("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15665
- groupBy?.length > 0 && /* @__PURE__ */ jsxs34("div", { className: "group-by w-full px-3", children: [
15666
- /* @__PURE__ */ jsxs34("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15667
- /* @__PURE__ */ jsx57(GroupByIcon, { className: "group-by-icon text-primary" }),
15668
- /* @__PURE__ */ jsx57("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15721
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx58("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15722
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
15723
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15724
+ /* @__PURE__ */ jsx58(GroupByIcon, { className: "group-by-icon text-primary" }),
15725
+ /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15669
15726
  ] }),
15670
15727
  groupBy?.map((item, index4) => {
15671
15728
  const isExist = item?.active;
15672
15729
  if (!item.string) return;
15673
- return /* @__PURE__ */ jsxs34(
15730
+ return /* @__PURE__ */ jsxs35(
15674
15731
  "button",
15675
15732
  {
15676
15733
  onClick: () => {
@@ -15694,8 +15751,8 @@ var PopupFilter = ({
15694
15751
  },
15695
15752
  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)]"}`,
15696
15753
  children: [
15697
- isExist && /* @__PURE__ */ jsx57(CheckIcon, {}),
15698
- /* @__PURE__ */ jsx57("span", { className: "text-sm", children: item?.string })
15754
+ isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15755
+ /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string })
15699
15756
  ]
15700
15757
  },
15701
15758
  "groupby-" + index4 + 1
@@ -15714,7 +15771,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15714
15771
 
15715
15772
  // src/widgets/advanced/search/tag-search/index.tsx
15716
15773
  import { Fragment as Fragment8 } from "react";
15717
- import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15774
+ import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15718
15775
  var TagSearch = ({
15719
15776
  removeSearchItems,
15720
15777
  selectedTags,
@@ -15725,23 +15782,23 @@ var TagSearch = ({
15725
15782
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15726
15783
  if (tag?.values?.length > 0) {
15727
15784
  if (tag?.type !== "group_by") {
15728
- return /* @__PURE__ */ jsxs35(
15785
+ return /* @__PURE__ */ jsxs36(
15729
15786
  "div",
15730
15787
  {
15731
15788
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15732
15789
  children: [
15733
- /* @__PURE__ */ jsx58("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__ */ jsx58(FilterIcon, {}) }),
15734
- /* @__PURE__ */ jsx58("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15735
- return /* @__PURE__ */ jsxs35(Fragment8, { children: [
15736
- /* @__PURE__ */ jsx58("span", { children: value }),
15737
- idx < tag.values.length - 1 && /* @__PURE__ */ jsxs35("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15790
+ /* @__PURE__ */ jsx59("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__ */ jsx59(FilterIcon, {}) }),
15791
+ /* @__PURE__ */ jsx59("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15792
+ return /* @__PURE__ */ jsxs36(Fragment8, { children: [
15793
+ /* @__PURE__ */ jsx59("span", { children: value }),
15794
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15738
15795
  " ",
15739
15796
  instance.t("or"),
15740
15797
  " "
15741
15798
  ] })
15742
15799
  ] }, idx);
15743
15800
  }) }),
15744
- /* @__PURE__ */ jsx58(
15801
+ /* @__PURE__ */ jsx59(
15745
15802
  "button",
15746
15803
  {
15747
15804
  className: "px-2 text-sm font-bold",
@@ -15758,7 +15815,7 @@ var TagSearch = ({
15758
15815
  );
15759
15816
  }
15760
15817
  },
15761
- children: /* @__PURE__ */ jsx58(CloseIcon, { className: "size-4 cursor-pointer" })
15818
+ children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15762
15819
  }
15763
15820
  )
15764
15821
  ]
@@ -15766,26 +15823,26 @@ var TagSearch = ({
15766
15823
  "selected-tag-" + index4
15767
15824
  );
15768
15825
  } else if (tag?.type === "group_by") {
15769
- return /* @__PURE__ */ jsx58(
15826
+ return /* @__PURE__ */ jsx59(
15770
15827
  "div",
15771
15828
  {
15772
15829
  className: "flex min-h-full overflow-hidden",
15773
- children: /* @__PURE__ */ jsx58("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15774
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs35(
15830
+ children: /* @__PURE__ */ jsx59("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15831
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
15775
15832
  "div",
15776
15833
  {
15777
15834
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15778
15835
  children: [
15779
- /* @__PURE__ */ jsx58("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx58(GroupByIcon, {}) }),
15780
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs35(Fragment9, { children: [
15781
- /* @__PURE__ */ jsx58("span", { children: string }),
15782
- idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs35("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15836
+ /* @__PURE__ */ jsx59("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx59(GroupByIcon, {}) }),
15837
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment9, { children: [
15838
+ /* @__PURE__ */ jsx59("span", { children: string }),
15839
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15783
15840
  " ",
15784
15841
  "> ",
15785
15842
  " "
15786
15843
  ] })
15787
15844
  ] })),
15788
- /* @__PURE__ */ jsx58(
15845
+ /* @__PURE__ */ jsx59(
15789
15846
  "button",
15790
15847
  {
15791
15848
  className: "pr-2 text-sm font-bold",
@@ -15800,7 +15857,7 @@ var TagSearch = ({
15800
15857
  );
15801
15858
  }
15802
15859
  },
15803
- children: /* @__PURE__ */ jsx58(CloseIcon, { className: "size-4 cursor-pointer" })
15860
+ children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15804
15861
  }
15805
15862
  )
15806
15863
  ]
@@ -15817,7 +15874,7 @@ var TagSearch = ({
15817
15874
  };
15818
15875
 
15819
15876
  // src/widgets/advanced/search/search-list/index.tsx
15820
- import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15877
+ import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15821
15878
  var SearchList = ({
15822
15879
  handleAddTagSearch,
15823
15880
  handleMouseEnter,
@@ -15827,7 +15884,7 @@ var SearchList = ({
15827
15884
  hoveredIndexSearchList
15828
15885
  }) => {
15829
15886
  const { t: t3 } = useI18n();
15830
- return /* @__PURE__ */ jsx59(
15887
+ return /* @__PURE__ */ jsx60(
15831
15888
  "div",
15832
15889
  {
15833
15890
  style: {
@@ -15839,7 +15896,7 @@ var SearchList = ({
15839
15896
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15840
15897
  return;
15841
15898
  }
15842
- return /* @__PURE__ */ jsxs36(
15899
+ return /* @__PURE__ */ jsxs37(
15843
15900
  "button",
15844
15901
  {
15845
15902
  onClick: () => {
@@ -15861,12 +15918,12 @@ var SearchList = ({
15861
15918
  children: [
15862
15919
  t3("search"),
15863
15920
  " ",
15864
- /* @__PURE__ */ jsx59("span", { className: "font-bold", children: searchItem?.title }),
15921
+ /* @__PURE__ */ jsx60("span", { className: "font-bold", children: searchItem?.title }),
15865
15922
  " ",
15866
15923
  t3("for"),
15867
15924
  ":",
15868
15925
  " ",
15869
- /* @__PURE__ */ jsx59(
15926
+ /* @__PURE__ */ jsx60(
15870
15927
  "span",
15871
15928
  {
15872
15929
  style: {
@@ -15886,7 +15943,7 @@ var SearchList = ({
15886
15943
  };
15887
15944
 
15888
15945
  // src/widgets/advanced/search/search-item/index.tsx
15889
- import { Fragment as Fragment10, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15946
+ import { Fragment as Fragment10, jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15890
15947
  var Search = ({
15891
15948
  removeSearchItems,
15892
15949
  selectedTags,
@@ -16003,15 +16060,15 @@ var Search = ({
16003
16060
  setDidInit(true);
16004
16061
  setIsReadyFormatDomain(true);
16005
16062
  }, [aid, filterBy, fieldsList]);
16006
- return /* @__PURE__ */ jsxs37(
16063
+ return /* @__PURE__ */ jsxs38(
16007
16064
  "div",
16008
16065
  {
16009
16066
  ref: popupFilterRef,
16010
16067
  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)]`,
16011
16068
  children: [
16012
- /* @__PURE__ */ jsx60("div", { className: "size-5", children: /* @__PURE__ */ jsx60(SearchIcon, {}) }),
16013
- /* @__PURE__ */ jsxs37("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
16014
- /* @__PURE__ */ jsx60(
16069
+ /* @__PURE__ */ jsx61("div", { className: "size-5", children: /* @__PURE__ */ jsx61(SearchIcon, {}) }),
16070
+ /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
16071
+ /* @__PURE__ */ jsx61(
16015
16072
  TagSearch,
16016
16073
  {
16017
16074
  removeSearchItems,
@@ -16021,7 +16078,7 @@ var Search = ({
16021
16078
  setGroupBy
16022
16079
  }
16023
16080
  ),
16024
- /* @__PURE__ */ jsx60(
16081
+ /* @__PURE__ */ jsx61(
16025
16082
  "input",
16026
16083
  {
16027
16084
  value: searchString,
@@ -16034,7 +16091,7 @@ var Search = ({
16034
16091
  onKeyUp: (e3) => e3.preventDefault()
16035
16092
  }
16036
16093
  ),
16037
- /* @__PURE__ */ jsx60(
16094
+ /* @__PURE__ */ jsx61(
16038
16095
  SearchList,
16039
16096
  {
16040
16097
  handleAddTagSearch,
@@ -16043,8 +16100,8 @@ var Search = ({
16043
16100
  }
16044
16101
  )
16045
16102
  ] }),
16046
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs37(Fragment10, { children: [
16047
- /* @__PURE__ */ jsxs37(
16103
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs38(Fragment10, { children: [
16104
+ /* @__PURE__ */ jsxs38(
16048
16105
  "div",
16049
16106
  {
16050
16107
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -16053,8 +16110,8 @@ var Search = ({
16053
16110
  setShowPopupFilter((prev2) => !prev2);
16054
16111
  },
16055
16112
  children: [
16056
- /* @__PURE__ */ jsx60("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16057
- /* @__PURE__ */ jsx60(
16113
+ /* @__PURE__ */ jsx61("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16114
+ /* @__PURE__ */ jsx61(
16058
16115
  ChevronBottomIcon,
16059
16116
  {
16060
16117
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -16063,7 +16120,7 @@ var Search = ({
16063
16120
  ]
16064
16121
  }
16065
16122
  ),
16066
- showPopupFilter && /* @__PURE__ */ jsx60(
16123
+ showPopupFilter && /* @__PURE__ */ jsx61(
16067
16124
  PopupFilter,
16068
16125
  {
16069
16126
  handleAddTagSearch,
@@ -16082,30 +16139,30 @@ var Search = ({
16082
16139
  };
16083
16140
 
16084
16141
  // src/widgets/basic/active-badge-field/active-badge.tsx
16085
- import { Fragment as Fragment11, jsx as jsx61 } from "react/jsx-runtime";
16142
+ import { Fragment as Fragment11, jsx as jsx62 } from "react/jsx-runtime";
16086
16143
  var ActiveBadgeField = (props) => {
16087
16144
  const { t: t3 } = useI18n();
16088
16145
  const {
16089
16146
  type,
16090
16147
  className
16091
16148
  } = props;
16092
- if (type === void 0) return /* @__PURE__ */ jsx61(Fragment11, {});
16149
+ if (type === void 0) return /* @__PURE__ */ jsx62(Fragment11, {});
16093
16150
  const typeStyle = type ? "text-green-500" : "text-red-500";
16094
16151
  const text = type ? t3("active") : t3("in_active");
16095
- return /* @__PURE__ */ jsx61("div", { className: `${typeStyle} ${className}`, children: text });
16152
+ return /* @__PURE__ */ jsx62("div", { className: `${typeStyle} ${className}`, children: text });
16096
16153
  };
16097
16154
 
16098
16155
  // src/widgets/common/modal-layer.tsx
16099
16156
  import { Fragment as Fragment12 } from "react";
16100
16157
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
16101
- import { jsx as jsx62, jsxs as jsxs38 } from "react/jsx-runtime";
16158
+ import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
16102
16159
  var ModalLayer = ({
16103
16160
  isOpen,
16104
16161
  onClose,
16105
16162
  title,
16106
16163
  children
16107
16164
  }) => {
16108
- return /* @__PURE__ */ jsx62(
16165
+ return /* @__PURE__ */ jsx63(
16109
16166
  Transition,
16110
16167
  {
16111
16168
  show: isOpen,
@@ -16116,22 +16173,22 @@ var ModalLayer = ({
16116
16173
  leaveFrom: "transform scale-100 opacity-100",
16117
16174
  leaveTo: "transform scale-95 opacity-0",
16118
16175
  as: Fragment12,
16119
- children: /* @__PURE__ */ jsx62(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx62(DialogPanel, { children: /* @__PURE__ */ jsxs38("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16120
- /* @__PURE__ */ jsx62("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16121
- /* @__PURE__ */ jsx62("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs38("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: [
16122
- /* @__PURE__ */ jsxs38(
16176
+ children: /* @__PURE__ */ jsx63(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx63(DialogPanel, { children: /* @__PURE__ */ jsxs39("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16177
+ /* @__PURE__ */ jsx63("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16178
+ /* @__PURE__ */ jsx63("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs39("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: [
16179
+ /* @__PURE__ */ jsxs39(
16123
16180
  "div",
16124
16181
  {
16125
16182
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
16126
16183
  children: [
16127
- title && /* @__PURE__ */ jsx62("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16128
- /* @__PURE__ */ jsx62(
16184
+ title && /* @__PURE__ */ jsx63("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16185
+ /* @__PURE__ */ jsx63(
16129
16186
  "button",
16130
16187
  {
16131
16188
  onClick: onClose,
16132
16189
  "aria-label": "Close",
16133
16190
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
16134
- children: /* @__PURE__ */ jsx62(CloseIcon, {})
16191
+ children: /* @__PURE__ */ jsx63(CloseIcon, {})
16135
16192
  }
16136
16193
  )
16137
16194
  ]
@@ -16145,7 +16202,7 @@ var ModalLayer = ({
16145
16202
  };
16146
16203
 
16147
16204
  // src/widgets/common/modal-confirm.tsx
16148
- import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
16205
+ import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
16149
16206
  var ModalConfirm = ({
16150
16207
  name: name2,
16151
16208
  isShowModal,
@@ -16159,7 +16216,7 @@ var ModalConfirm = ({
16159
16216
  const renderButtonAction = (name3) => {
16160
16217
  switch (name3) {
16161
16218
  case "duplicate":
16162
- return /* @__PURE__ */ jsxs39(
16219
+ return /* @__PURE__ */ jsxs40(
16163
16220
  "button",
16164
16221
  {
16165
16222
  type: "button",
@@ -16167,13 +16224,13 @@ var ModalConfirm = ({
16167
16224
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16168
16225
  disabled: isLoading,
16169
16226
  children: [
16170
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
16171
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16227
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16228
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16172
16229
  ]
16173
16230
  }
16174
16231
  );
16175
16232
  case "archive":
16176
- return /* @__PURE__ */ jsxs39(
16233
+ return /* @__PURE__ */ jsxs40(
16177
16234
  "button",
16178
16235
  {
16179
16236
  type: "button",
@@ -16181,13 +16238,13 @@ var ModalConfirm = ({
16181
16238
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16182
16239
  disabled: isLoading,
16183
16240
  children: [
16184
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
16185
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16241
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16242
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16186
16243
  ]
16187
16244
  }
16188
16245
  );
16189
16246
  case "unarchive":
16190
- return /* @__PURE__ */ jsxs39(
16247
+ return /* @__PURE__ */ jsxs40(
16191
16248
  "button",
16192
16249
  {
16193
16250
  type: "button",
@@ -16195,13 +16252,13 @@ var ModalConfirm = ({
16195
16252
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16196
16253
  disabled: isLoading,
16197
16254
  children: [
16198
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
16199
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16255
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16256
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16200
16257
  ]
16201
16258
  }
16202
16259
  );
16203
16260
  case "delete":
16204
- return /* @__PURE__ */ jsxs39(
16261
+ return /* @__PURE__ */ jsxs40(
16205
16262
  "button",
16206
16263
  {
16207
16264
  type: "button",
@@ -16209,8 +16266,8 @@ var ModalConfirm = ({
16209
16266
  className: "button-primary flex-1 flex items-center justify-center gap-2",
16210
16267
  disabled: isLoading,
16211
16268
  children: [
16212
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
16213
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16269
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16270
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16214
16271
  ]
16215
16272
  }
16216
16273
  );
@@ -16218,13 +16275,13 @@ var ModalConfirm = ({
16218
16275
  break;
16219
16276
  }
16220
16277
  };
16221
- return /* @__PURE__ */ jsx63(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs39("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16222
- /* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-[4px] items-center", children: [
16223
- /* @__PURE__ */ jsx63("div", { className: "text-[18px] font-bold", children: title }),
16224
- /* @__PURE__ */ jsx63("p", { className: "text-[16px]", children: content })
16278
+ return /* @__PURE__ */ jsx64(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16279
+ /* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
16280
+ /* @__PURE__ */ jsx64("div", { className: "text-[18px] font-bold", children: title }),
16281
+ /* @__PURE__ */ jsx64("p", { className: "text-[16px]", children: content })
16225
16282
  ] }),
16226
- /* @__PURE__ */ jsxs39("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16227
- /* @__PURE__ */ jsx63(
16283
+ /* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16284
+ /* @__PURE__ */ jsx64(
16228
16285
  "button",
16229
16286
  {
16230
16287
  type: "button",
@@ -16240,8 +16297,8 @@ var ModalConfirm = ({
16240
16297
 
16241
16298
  // src/widgets/common/modal-detail.tsx
16242
16299
  import { useState as useState7 } from "react";
16243
- import { createPortal as createPortal2 } from "react-dom";
16244
- import { Fragment as Fragment13, jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
16300
+ import { createPortal as createPortal3 } from "react-dom";
16301
+ import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
16245
16302
  var ModalDetail = ({
16246
16303
  idToolTip,
16247
16304
  title,
@@ -16263,19 +16320,19 @@ var ModalDetail = ({
16263
16320
  sessionStorage.setItem("actionData", JSON.stringify(actionData));
16264
16321
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
16265
16322
  };
16266
- return createPortal2(
16267
- /* @__PURE__ */ jsx64(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs40("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16268
- /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16269
- /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs40("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: [
16270
- /* @__PURE__ */ jsxs40("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16271
- /* @__PURE__ */ jsxs40(
16323
+ return createPortal3(
16324
+ /* @__PURE__ */ jsx65(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16325
+ /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16326
+ /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs41("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: [
16327
+ /* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16328
+ /* @__PURE__ */ jsxs41(
16272
16329
  "div",
16273
16330
  {
16274
16331
  id: "modal-detail",
16275
16332
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
16276
16333
  children: [
16277
16334
  t3("detail_button"),
16278
- /* @__PURE__ */ jsx64(
16335
+ /* @__PURE__ */ jsx65(
16279
16336
  "button",
16280
16337
  {
16281
16338
  onClick: handleNavigateDetail,
@@ -16286,9 +16343,9 @@ var ModalDetail = ({
16286
16343
  ]
16287
16344
  }
16288
16345
  ),
16289
- /* @__PURE__ */ jsx64("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx64(CloseIcon, { className: "h-5 w-5" }) })
16346
+ /* @__PURE__ */ jsx65("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx65(CloseIcon, { className: "h-5 w-5" }) })
16290
16347
  ] }),
16291
- /* @__PURE__ */ jsx64("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16348
+ /* @__PURE__ */ jsx65("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16292
16349
  id: idForm,
16293
16350
  aid,
16294
16351
  model,
@@ -16303,7 +16360,7 @@ var ModalDetail = ({
16303
16360
 
16304
16361
  // src/widgets/common/loading-normal.tsx
16305
16362
  import { useEffect as useEffect9, useState as useState8 } from "react";
16306
- import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
16363
+ import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
16307
16364
  var LayerLoading = () => {
16308
16365
  const { t: t3 } = useI18n();
16309
16366
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -16313,21 +16370,21 @@ var LayerLoading = () => {
16313
16370
  }, 200);
16314
16371
  return () => clearInterval(interval);
16315
16372
  }, []);
16316
- return /* @__PURE__ */ jsx65("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx65("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs41("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16317
- /* @__PURE__ */ jsx65("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx65(
16373
+ return /* @__PURE__ */ jsx66("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx66("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs42("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16374
+ /* @__PURE__ */ jsx66("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx66(
16318
16375
  "div",
16319
16376
  {
16320
16377
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
16321
16378
  },
16322
16379
  index4
16323
16380
  )) }),
16324
- /* @__PURE__ */ jsx65("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16381
+ /* @__PURE__ */ jsx66("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16325
16382
  ] }) }) });
16326
16383
  };
16327
16384
 
16328
16385
  // src/widgets/common/loading-small.tsx
16329
16386
  import { useEffect as useEffect10, useState as useState9 } from "react";
16330
- import { jsx as jsx66 } from "react/jsx-runtime";
16387
+ import { jsx as jsx67 } from "react/jsx-runtime";
16331
16388
  var LoadingSmall = () => {
16332
16389
  const [activeIndex, setActiveIndex] = useState9(0);
16333
16390
  useEffect10(() => {
@@ -16336,7 +16393,7 @@ var LoadingSmall = () => {
16336
16393
  }, 200);
16337
16394
  return () => clearInterval(interval);
16338
16395
  }, []);
16339
- return /* @__PURE__ */ jsx66("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx66("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx66("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx66("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx66(
16396
+ return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx67("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx67(
16340
16397
  "div",
16341
16398
  {
16342
16399
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -16347,7 +16404,7 @@ var LoadingSmall = () => {
16347
16404
 
16348
16405
  // src/widgets/common/video-player.tsx
16349
16406
  import { useRef as useRef6, useState as useState10 } from "react";
16350
- import { jsx as jsx67, jsxs as jsxs42 } from "react/jsx-runtime";
16407
+ import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
16351
16408
  var VideoPlayer = ({ src }) => {
16352
16409
  const [isPlaying, setIsPlaying] = useState10(false);
16353
16410
  const videoRef = useRef6(null);
@@ -16374,8 +16431,8 @@ var VideoPlayer = ({ src }) => {
16374
16431
  }
16375
16432
  }
16376
16433
  };
16377
- return /* @__PURE__ */ jsxs42("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: [
16378
- /* @__PURE__ */ jsx67(
16434
+ return /* @__PURE__ */ jsxs43("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: [
16435
+ /* @__PURE__ */ jsx68(
16379
16436
  "video",
16380
16437
  {
16381
16438
  ref: videoRef,
@@ -16387,32 +16444,57 @@ var VideoPlayer = ({ src }) => {
16387
16444
  children: "Your browser does not support the video tag."
16388
16445
  }
16389
16446
  ),
16390
- /* @__PURE__ */ jsx67("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16391
- /* @__PURE__ */ jsx67("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__ */ jsx67("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx67(PlayIcon, {}) }) })
16447
+ /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16448
+ /* @__PURE__ */ jsx68("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__ */ jsx68("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx68(PlayIcon, {}) }) })
16392
16449
  ] });
16393
16450
  };
16394
16451
 
16395
16452
  // src/widgets/common/render-files.tsx
16396
- import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
16453
+ import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16397
16454
  var ImageItem = ({
16398
16455
  filename,
16399
16456
  checksum,
16400
16457
  index: index4,
16401
16458
  src = null,
16402
- useGetImage
16459
+ useGetImage,
16460
+ size: size4,
16461
+ id,
16462
+ envFile,
16463
+ accessToken
16403
16464
  }) => {
16404
16465
  const { data: image } = useGetImage({
16405
16466
  data: { filename, checksum },
16406
16467
  queryKey: [`get-image-${""}`],
16407
16468
  src
16408
16469
  });
16409
- return /* @__PURE__ */ jsx68("div", { className: "relative group group/file", children: /* @__PURE__ */ jsx68(
16470
+ return /* @__PURE__ */ jsx69("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ jsx69(
16410
16471
  "img",
16411
16472
  {
16412
16473
  src: image || src,
16413
16474
  alt: filename,
16414
16475
  className: "w-32 h-32 object-cover rounded-md cursor-pointer"
16415
16476
  }
16477
+ ) : /* @__PURE__ */ jsxs44(
16478
+ "div",
16479
+ {
16480
+ onClick: (e3) => {
16481
+ e3?.stopPropagation();
16482
+ downloadFile(
16483
+ `${envFile}api/v2/web/content/${id}?download=true`,
16484
+ filename,
16485
+ accessToken
16486
+ );
16487
+ },
16488
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16489
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16490
+ children: [
16491
+ /* @__PURE__ */ jsx69(ImageIcon, {}),
16492
+ /* @__PURE__ */ jsxs44("div", { children: [
16493
+ /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16494
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16495
+ ] })
16496
+ ]
16497
+ }
16416
16498
  ) }, index4);
16417
16499
  };
16418
16500
  var FileItem = (props) => {
@@ -16424,37 +16506,57 @@ var FileItem = (props) => {
16424
16506
  src,
16425
16507
  mimetype,
16426
16508
  size: size4,
16427
- useGetImage
16509
+ useGetImage,
16510
+ id,
16511
+ envFile,
16512
+ accessToken
16428
16513
  } = props;
16429
16514
  const fileTypeIcon = {
16430
- "application/pdf": /* @__PURE__ */ jsx68(PdfIcon, {}),
16431
- "application/zip": /* @__PURE__ */ jsx68(ZipIcon, {}),
16432
- "application/x-zip-compressed": /* @__PURE__ */ jsx68(ZipIcon, {}),
16433
- "application/vnd.ms-excel": /* @__PURE__ */ jsx68(ExcelIcon, {}),
16434
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx68(ExcelIcon, {})
16515
+ "application/pdf": /* @__PURE__ */ jsx69(PdfIcon, {}),
16516
+ "application/zip": /* @__PURE__ */ jsx69(ZipIcon, {}),
16517
+ "application/x-zip-compressed": /* @__PURE__ */ jsx69(ZipIcon, {}),
16518
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx69(ExcelIcon, {}),
16519
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {})
16435
16520
  };
16436
16521
  const renderFile = () => {
16437
16522
  if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
16438
- return /* @__PURE__ */ jsx68(ImageItem, { ...props });
16523
+ return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
16439
16524
  } else if (mimetype?.includes("video")) {
16440
- return /* @__PURE__ */ jsx68(VideoPlayer, { ...props });
16525
+ return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
16441
16526
  } else {
16442
- return /* @__PURE__ */ jsxs43("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
16443
- fileTypeIcon[mimetype],
16444
- /* @__PURE__ */ jsxs43("div", { children: [
16445
- /* @__PURE__ */ jsx68("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16446
- /* @__PURE__ */ jsx68("span", { className: "text-[12px]", children: formatFileSize(size4) })
16447
- ] })
16448
- ] });
16527
+ return /* @__PURE__ */ jsxs44(
16528
+ "div",
16529
+ {
16530
+ onClick: (e3) => {
16531
+ if (accessToken) {
16532
+ e3?.stopPropagation();
16533
+ downloadFile(
16534
+ `${envFile}api/v2/web/content/${id}?download=true`,
16535
+ filename,
16536
+ accessToken
16537
+ );
16538
+ }
16539
+ },
16540
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16541
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16542
+ children: [
16543
+ fileTypeIcon[mimetype],
16544
+ /* @__PURE__ */ jsxs44("div", { children: [
16545
+ /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16546
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16547
+ ] })
16548
+ ]
16549
+ }
16550
+ );
16449
16551
  }
16450
16552
  };
16451
- return /* @__PURE__ */ jsxs43(
16553
+ return /* @__PURE__ */ jsxs44(
16452
16554
  "div",
16453
16555
  {
16454
16556
  className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
16455
16557
  children: [
16456
16558
  renderFile(),
16457
- handleRemoveFile && /* @__PURE__ */ jsx68(
16559
+ handleRemoveFile && /* @__PURE__ */ jsx69(
16458
16560
  "div",
16459
16561
  {
16460
16562
  style: {
@@ -16465,10 +16567,10 @@ var FileItem = (props) => {
16465
16567
  },
16466
16568
  onClick: () => handleRemoveFile(index4),
16467
16569
  className: "cursor-pointer p-2 hidden group-hover:block",
16468
- children: /* @__PURE__ */ jsx68(DeleteIcon, {})
16570
+ children: /* @__PURE__ */ jsx69(DeleteIcon, {})
16469
16571
  }
16470
16572
  ),
16471
- !handleRemoveFile && /* @__PURE__ */ jsx68(
16573
+ !handleRemoveFile && /* @__PURE__ */ jsx69(
16472
16574
  "span",
16473
16575
  {
16474
16576
  style: {
@@ -16480,7 +16582,7 @@ var FileItem = (props) => {
16480
16582
  },
16481
16583
  onClick: (e3) => handleFileDownload(e3, src, filename),
16482
16584
  className: "hidden group-hover:block cursor-pointer p-2 text-white ",
16483
- children: /* @__PURE__ */ jsx68(DownloadIcon, {})
16585
+ children: /* @__PURE__ */ jsx69(DownloadIcon, {})
16484
16586
  }
16485
16587
  )
16486
16588
  ]
@@ -16488,9 +16590,14 @@ var FileItem = (props) => {
16488
16590
  index4
16489
16591
  );
16490
16592
  };
16491
- var downloadFile = async (url, filename) => {
16593
+ var downloadFile = async (url, filename, accessToken) => {
16492
16594
  try {
16493
- const response = await fetch(url);
16595
+ const response = accessToken ? await fetch(url, {
16596
+ method: "GET",
16597
+ headers: {
16598
+ Authorization: `Bearer ${accessToken}`
16599
+ }
16600
+ }) : await fetch(url);
16494
16601
  if (response.ok) {
16495
16602
  const blob = await response.blob();
16496
16603
  const urlBlob = window.URL.createObjectURL(blob);
@@ -16511,7 +16618,9 @@ var downloadFile = async (url, filename) => {
16511
16618
  var RenderFiles = ({
16512
16619
  selectedFiles,
16513
16620
  setSelectedFiles,
16514
- useGetImage
16621
+ useGetImage,
16622
+ envFile,
16623
+ accessToken
16515
16624
  }) => {
16516
16625
  const handleRemoveFile = (index4) => {
16517
16626
  if (setSelectedFiles) {
@@ -16523,19 +16632,21 @@ var RenderFiles = ({
16523
16632
  e3.stopPropagation();
16524
16633
  downloadFile(url, name2);
16525
16634
  };
16526
- return /* @__PURE__ */ jsx68("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16527
- return /* @__PURE__ */ jsx68("div", { className: "relative group/file", children: /* @__PURE__ */ jsx68(
16635
+ return /* @__PURE__ */ jsx69("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16636
+ return /* @__PURE__ */ jsx69("div", { className: "relative group/file", children: /* @__PURE__ */ jsx69(
16528
16637
  FileItem,
16529
16638
  {
16530
16639
  ...file,
16531
16640
  src: file?.datas,
16532
- filename: file?.display_name ?? file?.name,
16641
+ filename: file?.display_name ?? file?.name ?? file?.filename,
16642
+ id: file?.id,
16533
16643
  index: index4,
16534
16644
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16535
16645
  handleFileDownload,
16536
- useGetImage
16537
- },
16538
- index4
16646
+ useGetImage,
16647
+ envFile,
16648
+ accessToken
16649
+ }
16539
16650
  ) }, file?.id ?? index4);
16540
16651
  }) });
16541
16652
  };
@@ -16726,7 +16837,7 @@ var po = $2(K("zoom"));
16726
16837
  var uo = $2(K("flip"));
16727
16838
 
16728
16839
  // src/widgets/common/select-files.tsx
16729
- import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16840
+ import { Fragment as Fragment14, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16730
16841
  var ButtonSelectFiles = ({
16731
16842
  fileInputRef,
16732
16843
  selectedFiles,
@@ -16829,8 +16940,8 @@ var ButtonSelectFiles = ({
16829
16940
  await handleUpload(formData, serivce, xNode);
16830
16941
  }
16831
16942
  };
16832
- return /* @__PURE__ */ jsxs44(Fragment14, { children: [
16833
- isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
16943
+ return /* @__PURE__ */ jsxs45(Fragment14, { children: [
16944
+ isPending ? /* @__PURE__ */ jsx70(Fragment14, { children: /* @__PURE__ */ jsx70("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs45(
16834
16945
  "button",
16835
16946
  {
16836
16947
  type: "button",
@@ -16838,12 +16949,12 @@ var ButtonSelectFiles = ({
16838
16949
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16839
16950
  onClick: () => fileInputRef.current.click(),
16840
16951
  children: [
16841
- /* @__PURE__ */ jsx69(AttachIcon, {}),
16842
- /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16952
+ /* @__PURE__ */ jsx70(AttachIcon, {}),
16953
+ /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16843
16954
  ]
16844
16955
  }
16845
16956
  ),
16846
- /* @__PURE__ */ jsx69(
16957
+ /* @__PURE__ */ jsx70(
16847
16958
  "input",
16848
16959
  {
16849
16960
  type: "file",
@@ -16858,7 +16969,7 @@ var ButtonSelectFiles = ({
16858
16969
  };
16859
16970
 
16860
16971
  // src/widgets/basic/avatar-field/avatar.tsx
16861
- import { Fragment as Fragment15, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16972
+ import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16862
16973
  var AvatarField = (props) => {
16863
16974
  const {
16864
16975
  isForm = false,
@@ -16882,8 +16993,8 @@ var AvatarField = (props) => {
16882
16993
  color: textColor,
16883
16994
  fontSize: `${size4 / 2.5}px`
16884
16995
  };
16885
- return /* @__PURE__ */ jsxs45(Fragment15, { children: [
16886
- isForm && allowShowDetail && /* @__PURE__ */ jsx70(
16996
+ return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16997
+ isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16887
16998
  ModalDetail,
16888
16999
  {
16889
17000
  idToolTip: `avatar-widget-id-${id}`,
@@ -16894,7 +17005,7 @@ var AvatarField = (props) => {
16894
17005
  place: "top-start"
16895
17006
  }
16896
17007
  ),
16897
- allowShowDetail && /* @__PURE__ */ jsx70(
17008
+ allowShowDetail && /* @__PURE__ */ jsx71(
16898
17009
  M,
16899
17010
  {
16900
17011
  id: `avatar-widget-id-${id}`,
@@ -16903,7 +17014,7 @@ var AvatarField = (props) => {
16903
17014
  className: "z-20"
16904
17015
  }
16905
17016
  ),
16906
- avatarSrc ? /* @__PURE__ */ jsx70(
17017
+ avatarSrc ? /* @__PURE__ */ jsx71(
16907
17018
  "img",
16908
17019
  {
16909
17020
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16911,7 +17022,7 @@ var AvatarField = (props) => {
16911
17022
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16912
17023
  alt: "Avatar"
16913
17024
  }
16914
- ) : /* @__PURE__ */ jsx70("div", { children: /* @__PURE__ */ jsx70(
17025
+ ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16915
17026
  "div",
16916
17027
  {
16917
17028
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16924,7 +17035,7 @@ var AvatarField = (props) => {
16924
17035
  };
16925
17036
 
16926
17037
  // src/widgets/basic/binary-field/binary.tsx
16927
- import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
17038
+ import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16928
17039
  var BinaryField = (props) => {
16929
17040
  const {
16930
17041
  name: name2,
@@ -16947,7 +17058,7 @@ var BinaryField = (props) => {
16947
17058
  image
16948
17059
  } = props;
16949
17060
  const { t: t3 } = useI18n();
16950
- return /* @__PURE__ */ jsx71(
17061
+ return /* @__PURE__ */ jsx72(
16951
17062
  Controller,
16952
17063
  {
16953
17064
  name: name2 ?? "",
@@ -16957,13 +17068,13 @@ var BinaryField = (props) => {
16957
17068
  },
16958
17069
  render: ({ field }) => {
16959
17070
  const renderImage = initialImage || selectedImage;
16960
- return /* @__PURE__ */ jsx71(
17071
+ return /* @__PURE__ */ jsx72(
16961
17072
  "div",
16962
17073
  {
16963
17074
  ref: binaryRef,
16964
17075
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16965
- children: renderImage ? /* @__PURE__ */ jsxs46("div", { className: "relative group", children: [
16966
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx71(
17076
+ children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
17077
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16967
17078
  "img",
16968
17079
  {
16969
17080
  style: {
@@ -16974,7 +17085,7 @@ var BinaryField = (props) => {
16974
17085
  alt: "Selected",
16975
17086
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16976
17087
  }
16977
- ) : renderImage ? /* @__PURE__ */ jsx71(
17088
+ ) : renderImage ? /* @__PURE__ */ jsx72(
16978
17089
  "img",
16979
17090
  {
16980
17091
  style: {
@@ -16985,17 +17096,17 @@ var BinaryField = (props) => {
16985
17096
  alt: "Selected",
16986
17097
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16987
17098
  }
16988
- ) : /* @__PURE__ */ jsx71(PlaceHolderIcon, {}),
16989
- !isInsideTable && !readonly && /* @__PURE__ */ jsx71(
17099
+ ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
17100
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16990
17101
  "button",
16991
17102
  {
16992
17103
  type: "button",
16993
17104
  onClick: () => handleRemoveImage(field.onChange),
16994
17105
  className: "hidden group-hover:block absolute right-0 bottom-0 mr-1 mb-1 rounded-full bg-white p-1 transition-colors duration-300 hover:bg-red-600",
16995
- children: /* @__PURE__ */ jsx71(DeleteIcon, {})
17106
+ children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16996
17107
  }
16997
17108
  )
16998
- ] }) : /* @__PURE__ */ jsxs46(
17109
+ ] }) : /* @__PURE__ */ jsxs47(
16999
17110
  "label",
17000
17111
  {
17001
17112
  htmlFor: inputId,
@@ -17005,7 +17116,7 @@ var BinaryField = (props) => {
17005
17116
  },
17006
17117
  className: `relative p-2 flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border border-gray-300 hover:border-gray-500 bg-white transition-colors duration-300 ${readonly && "pointer-events-none"}`,
17007
17118
  children: [
17008
- /* @__PURE__ */ jsx71(
17119
+ /* @__PURE__ */ jsx72(
17009
17120
  "input",
17010
17121
  {
17011
17122
  id: inputId,
@@ -17017,8 +17128,8 @@ var BinaryField = (props) => {
17017
17128
  className: "hidden z-10 relative"
17018
17129
  }
17019
17130
  ),
17020
- /* @__PURE__ */ jsx71("img", { src: image, alt: "", className: "z-0 relative" }),
17021
- /* @__PURE__ */ jsx71(
17131
+ /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
17132
+ /* @__PURE__ */ jsx72(
17022
17133
  "div",
17023
17134
  {
17024
17135
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -17027,7 +17138,7 @@ var BinaryField = (props) => {
17027
17138
  left: "-8px",
17028
17139
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
17029
17140
  },
17030
- children: /* @__PURE__ */ jsx71(
17141
+ children: /* @__PURE__ */ jsx72(
17031
17142
  "svg",
17032
17143
  {
17033
17144
  xmlns: "http://www.w3.org/2000/svg",
@@ -17035,7 +17146,7 @@ var BinaryField = (props) => {
17035
17146
  height: "14",
17036
17147
  viewBox: "0 0 14 14",
17037
17148
  fill: "none",
17038
- children: /* @__PURE__ */ jsx71(
17149
+ children: /* @__PURE__ */ jsx72(
17039
17150
  "path",
17040
17151
  {
17041
17152
  "fill-rule": "evenodd",
@@ -17059,7 +17170,7 @@ var BinaryField = (props) => {
17059
17170
  };
17060
17171
 
17061
17172
  // src/widgets/basic/button-badge-field/button-badge.tsx
17062
- import { jsx as jsx72 } from "react/jsx-runtime";
17173
+ import { jsx as jsx73 } from "react/jsx-runtime";
17063
17174
  var typeStyles = {
17064
17175
  primary: {
17065
17176
  backgroundColor: "#3b82f6",
@@ -17134,11 +17245,11 @@ var ButtonBadgeField = (props) => {
17134
17245
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
17135
17246
  };
17136
17247
  const label = getLabel(defaultValue ?? value);
17137
- return label ? /* @__PURE__ */ jsx72("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17248
+ return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17138
17249
  };
17139
17250
 
17140
17251
  // src/widgets/basic/button-field/button.tsx
17141
- import { Fragment as Fragment16, jsx as jsx73, jsxs as jsxs47 } from "react/jsx-runtime";
17252
+ import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
17142
17253
  var ButtonField = (props) => {
17143
17254
  const {
17144
17255
  func,
@@ -17149,7 +17260,7 @@ var ButtonField = (props) => {
17149
17260
  type = "submit"
17150
17261
  } = props;
17151
17262
  const { t: t3 } = useI18n();
17152
- return /* @__PURE__ */ jsx73(Fragment16, { children: !loading ? /* @__PURE__ */ jsx73(
17263
+ return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
17153
17264
  "button",
17154
17265
  {
17155
17266
  type,
@@ -17158,7 +17269,7 @@ var ButtonField = (props) => {
17158
17269
  onClick: func,
17159
17270
  children: t3(content)
17160
17271
  }
17161
- ) : /* @__PURE__ */ jsxs47(
17272
+ ) : /* @__PURE__ */ jsxs48(
17162
17273
  "button",
17163
17274
  {
17164
17275
  type,
@@ -17167,7 +17278,7 @@ var ButtonField = (props) => {
17167
17278
  children: [
17168
17279
  t3("loading"),
17169
17280
  " ",
17170
- /* @__PURE__ */ jsx73(LoadingIcon, {})
17281
+ /* @__PURE__ */ jsx74(LoadingIcon, {})
17171
17282
  ]
17172
17283
  }
17173
17284
  ) });
@@ -17175,7 +17286,7 @@ var ButtonField = (props) => {
17175
17286
 
17176
17287
  // src/widgets/basic/char-field/char.tsx
17177
17288
  import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
17178
- import { Fragment as Fragment17, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
17289
+ import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
17179
17290
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
17180
17291
  var CharField = (props) => {
17181
17292
  const {
@@ -17203,9 +17314,9 @@ var CharField = (props) => {
17203
17314
  } = props;
17204
17315
  if (!isForm && !isEditTable) {
17205
17316
  const propValue = value || defaultValue;
17206
- return /* @__PURE__ */ jsx74("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17317
+ return /* @__PURE__ */ jsx75("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17207
17318
  }
17208
- return /* @__PURE__ */ jsx74(
17319
+ return /* @__PURE__ */ jsx75(
17209
17320
  Controller,
17210
17321
  {
17211
17322
  name: name2 ?? "",
@@ -17259,8 +17370,8 @@ var CharField = (props) => {
17259
17370
  }
17260
17371
  return "";
17261
17372
  }, [widget, formValues]);
17262
- return /* @__PURE__ */ jsxs48(Fragment17, { children: [
17263
- /* @__PURE__ */ jsx74(
17373
+ return /* @__PURE__ */ jsxs49(Fragment17, { children: [
17374
+ /* @__PURE__ */ jsx75(
17264
17375
  "input",
17265
17376
  {
17266
17377
  value: displayValue ?? "",
@@ -17321,7 +17432,7 @@ var CharField = (props) => {
17321
17432
  `
17322
17433
  }
17323
17434
  ),
17324
- isEditTable ? /* @__PURE__ */ jsx74(Fragment17, {}) : /* @__PURE__ */ jsx74(Fragment17, { children: error2 && /* @__PURE__ */ jsx74("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17435
+ isEditTable ? /* @__PURE__ */ jsx75(Fragment17, {}) : /* @__PURE__ */ jsx75(Fragment17, { children: error2 && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17325
17436
  ] });
17326
17437
  }
17327
17438
  }
@@ -17329,7 +17440,7 @@ var CharField = (props) => {
17329
17440
  };
17330
17441
 
17331
17442
  // src/widgets/basic/checkbox-field/checkbox.tsx
17332
- import { jsx as jsx75 } from "react/jsx-runtime";
17443
+ import { jsx as jsx76 } from "react/jsx-runtime";
17333
17444
  var CheckboxField = (props) => {
17334
17445
  const {
17335
17446
  name: name2,
@@ -17344,9 +17455,9 @@ var CheckboxField = (props) => {
17344
17455
  } = props;
17345
17456
  if (!isForm) {
17346
17457
  if (name2 === "is_active" || name2 === "active") {
17347
- return /* @__PURE__ */ jsx75(ActiveBadgeField, { type: value });
17458
+ return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
17348
17459
  } else {
17349
- return /* @__PURE__ */ jsx75(
17460
+ return /* @__PURE__ */ jsx76(
17350
17461
  "input",
17351
17462
  {
17352
17463
  type: "checkbox",
@@ -17357,12 +17468,12 @@ var CheckboxField = (props) => {
17357
17468
  );
17358
17469
  }
17359
17470
  }
17360
- return /* @__PURE__ */ jsx75(
17471
+ return /* @__PURE__ */ jsx76(
17361
17472
  Controller,
17362
17473
  {
17363
17474
  name: name2 ?? "",
17364
17475
  control: methods?.control,
17365
- render: ({ field }) => /* @__PURE__ */ jsx75(
17476
+ render: ({ field }) => /* @__PURE__ */ jsx76(
17366
17477
  "div",
17367
17478
  {
17368
17479
  className: "flex items-center gap-2",
@@ -17375,7 +17486,7 @@ var CheckboxField = (props) => {
17375
17486
  onChange2(name2 ?? "", checked);
17376
17487
  }
17377
17488
  },
17378
- children: /* @__PURE__ */ jsx75(
17489
+ children: /* @__PURE__ */ jsx76(
17379
17490
  "input",
17380
17491
  {
17381
17492
  ...field,
@@ -17403,7 +17514,7 @@ var CheckboxField = (props) => {
17403
17514
 
17404
17515
  // src/widgets/basic/color-field/color-wrapper.tsx
17405
17516
  import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
17406
- import { Fragment as Fragment18, jsx as jsx76, jsxs as jsxs49 } from "react/jsx-runtime";
17517
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
17407
17518
  var ColorWrapper = (props) => {
17408
17519
  const {
17409
17520
  colors: colors2,
@@ -17430,8 +17541,8 @@ var ColorWrapper = (props) => {
17430
17541
  document.removeEventListener("mousedown", handleClickOutside);
17431
17542
  };
17432
17543
  }, []);
17433
- return /* @__PURE__ */ jsx76("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx76("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs49("div", { children: [
17434
- /* @__PURE__ */ jsx76(
17544
+ return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17545
+ /* @__PURE__ */ jsx77(
17435
17546
  "button",
17436
17547
  {
17437
17548
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17445,7 +17556,7 @@ var ColorWrapper = (props) => {
17445
17556
  }
17446
17557
  }
17447
17558
  ),
17448
- /* @__PURE__ */ jsx76(
17559
+ /* @__PURE__ */ jsx77(
17449
17560
  M,
17450
17561
  {
17451
17562
  className: "",
@@ -17454,8 +17565,8 @@ var ColorWrapper = (props) => {
17454
17565
  content: i18n_default.t(color?.name)
17455
17566
  }
17456
17567
  )
17457
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs49(Fragment18, { children: [
17458
- /* @__PURE__ */ jsx76(
17568
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17569
+ /* @__PURE__ */ jsx77(
17459
17570
  "button",
17460
17571
  {
17461
17572
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17468,7 +17579,7 @@ var ColorWrapper = (props) => {
17468
17579
  style: { backgroundColor: selectedColor?.color }
17469
17580
  }
17470
17581
  ),
17471
- /* @__PURE__ */ jsx76(
17582
+ /* @__PURE__ */ jsx77(
17472
17583
  M,
17473
17584
  {
17474
17585
  place: "top",
@@ -17480,13 +17591,13 @@ var ColorWrapper = (props) => {
17480
17591
  };
17481
17592
 
17482
17593
  // src/widgets/basic/color-field/color.tsx
17483
- import { jsx as jsx77 } from "react/jsx-runtime";
17594
+ import { jsx as jsx78 } from "react/jsx-runtime";
17484
17595
  var ColorField = (props) => {
17485
17596
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17486
17597
  if (!isForm) {
17487
- return /* @__PURE__ */ jsx77(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17598
+ return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17488
17599
  }
17489
- return /* @__PURE__ */ jsx77(
17600
+ return /* @__PURE__ */ jsx78(
17490
17601
  Controller,
17491
17602
  {
17492
17603
  name: name2 ?? "",
@@ -17496,7 +17607,7 @@ var ColorField = (props) => {
17496
17607
  field.onChange(color?.id);
17497
17608
  onChange2 && onChange2(name2 ?? "", color?.id);
17498
17609
  };
17499
- return /* @__PURE__ */ jsx77(
17610
+ return /* @__PURE__ */ jsx78(
17500
17611
  ColorWrapper,
17501
17612
  {
17502
17613
  savePickColor: handlePickColorChange,
@@ -17511,7 +17622,7 @@ var ColorField = (props) => {
17511
17622
 
17512
17623
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17513
17624
  import { useEffect as useEffect13 } from "react";
17514
- import { jsx as jsx78, jsxs as jsxs50 } from "react/jsx-runtime";
17625
+ import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
17515
17626
  var CopyLinkButtonField = (props) => {
17516
17627
  const {
17517
17628
  isForm,
@@ -17530,9 +17641,9 @@ var CopyLinkButtonField = (props) => {
17530
17641
  } = props;
17531
17642
  const { t: t3 } = useI18n();
17532
17643
  if (!isForm) {
17533
- return /* @__PURE__ */ jsx78("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17644
+ return /* @__PURE__ */ jsx79("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17534
17645
  }
17535
- return /* @__PURE__ */ jsx78(
17646
+ return /* @__PURE__ */ jsx79(
17536
17647
  Controller,
17537
17648
  {
17538
17649
  name: name2 ?? "",
@@ -17550,8 +17661,8 @@ var CopyLinkButtonField = (props) => {
17550
17661
  clearErrors(name2);
17551
17662
  }
17552
17663
  }, [value]);
17553
- return /* @__PURE__ */ jsxs50("div", { className: "relative", children: [
17554
- /* @__PURE__ */ jsxs50(
17664
+ return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17665
+ /* @__PURE__ */ jsxs51(
17555
17666
  "div",
17556
17667
  {
17557
17668
  "aria-disabled": readonly,
@@ -17560,7 +17671,7 @@ var CopyLinkButtonField = (props) => {
17560
17671
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17561
17672
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17562
17673
  children: [
17563
- /* @__PURE__ */ jsx78(
17674
+ /* @__PURE__ */ jsx79(
17564
17675
  "input",
17565
17676
  {
17566
17677
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17601,19 +17712,19 @@ var CopyLinkButtonField = (props) => {
17601
17712
  `
17602
17713
  }
17603
17714
  ),
17604
- readonly && value && /* @__PURE__ */ jsx78(
17715
+ readonly && value && /* @__PURE__ */ jsx79(
17605
17716
  "button",
17606
17717
  {
17607
17718
  className: "cursor-pointer",
17608
17719
  type: "button",
17609
17720
  onClick: () => handleCopyToClipboard(propValue),
17610
- children: isCopied ? /* @__PURE__ */ jsx78(CheckIcon, {}) : /* @__PURE__ */ jsx78(CopyIcon, {})
17721
+ children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17611
17722
  }
17612
17723
  )
17613
17724
  ]
17614
17725
  }
17615
17726
  ),
17616
- error2 && /* @__PURE__ */ jsx78("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17727
+ error2 && /* @__PURE__ */ jsx79("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17617
17728
  ] });
17618
17729
  }
17619
17730
  }
@@ -21554,7 +21665,7 @@ function useEffectEvent(callback) {
21554
21665
  }
21555
21666
 
21556
21667
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21557
- import { jsx as jsx79, jsxs as jsxs51, Fragment as Fragment19 } from "react/jsx-runtime";
21668
+ import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
21558
21669
  import * as ReactDOM2 from "react-dom";
21559
21670
 
21560
21671
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21952,7 +22063,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21952
22063
  bottom: isCustomShape ? "" : "rotate(180deg)",
21953
22064
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21954
22065
  }[side];
21955
- return /* @__PURE__ */ jsxs51("svg", {
22066
+ return /* @__PURE__ */ jsxs52("svg", {
21956
22067
  ...rest,
21957
22068
  "aria-hidden": true,
21958
22069
  ref,
@@ -21968,18 +22079,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21968
22079
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21969
22080
  ...restStyle
21970
22081
  },
21971
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx79("path", {
22082
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21972
22083
  clipPath: "url(#" + clipPathId + ")",
21973
22084
  fill: "none",
21974
22085
  stroke,
21975
22086
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21976
22087
  d: dValue
21977
- }), /* @__PURE__ */ jsx79("path", {
22088
+ }), /* @__PURE__ */ jsx80("path", {
21978
22089
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21979
22090
  d: dValue
21980
- }), /* @__PURE__ */ jsx79("clipPath", {
22091
+ }), /* @__PURE__ */ jsx80("clipPath", {
21981
22092
  id: clipPathId,
21982
- children: /* @__PURE__ */ jsx79("rect", {
22093
+ children: /* @__PURE__ */ jsx80("rect", {
21983
22094
  x: -halfStrokeWidth,
21984
22095
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21985
22096
  width: width + computedStrokeWidth,
@@ -27912,7 +28023,7 @@ var Emotion$1 = Emotion;
27912
28023
  import * as React12 from "react";
27913
28024
  var import_extends2 = __toESM(require_extends());
27914
28025
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27915
- var jsx80 = function jsx81(type, props) {
28026
+ var jsx81 = function jsx82(type, props) {
27916
28027
  var args = arguments;
27917
28028
  if (props == null || !hasOwn.call(props, "css")) {
27918
28029
  return React12.createElement.apply(void 0, args);
@@ -27930,7 +28041,7 @@ var jsx80 = function jsx81(type, props) {
27930
28041
  var JSX;
27931
28042
  /* @__PURE__ */ (function(_JSX) {
27932
28043
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27933
- })(jsx80 || (jsx80 = {}));
28044
+ })(jsx81 || (jsx81 = {}));
27934
28045
  function css() {
27935
28046
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27936
28047
  args[_key] = arguments[_key];
@@ -27961,7 +28072,7 @@ function _taggedTemplateLiteral(e3, t3) {
27961
28072
 
27962
28073
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27963
28074
  import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27964
- import { createPortal as createPortal4 } from "react-dom";
28075
+ import { createPortal as createPortal5 } from "react-dom";
27965
28076
 
27966
28077
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
27967
28078
  import { useLayoutEffect as useLayoutEffect4 } from "react";
@@ -28338,7 +28449,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28338
28449
  };
28339
28450
  var Menu = function Menu2(props) {
28340
28451
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28341
- return jsx80("div", _extends({}, getStyleProps(props, "menu", {
28452
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
28342
28453
  menu: true
28343
28454
  }), {
28344
28455
  ref: innerRef
@@ -28360,7 +28471,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28360
28471
  };
28361
28472
  var MenuList = function MenuList2(props) {
28362
28473
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28363
- return jsx80("div", _extends({}, getStyleProps(props, "menuList", {
28474
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
28364
28475
  "menu-list": true,
28365
28476
  "menu-list--is-multi": isMulti
28366
28477
  }), {
@@ -28380,7 +28491,7 @@ var noOptionsMessageCSS = noticeCSS;
28380
28491
  var loadingMessageCSS = noticeCSS;
28381
28492
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28382
28493
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28383
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28494
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28384
28495
  children,
28385
28496
  innerProps
28386
28497
  }), "noOptionsMessage", {
@@ -28390,7 +28501,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28390
28501
  };
28391
28502
  var LoadingMessage = function LoadingMessage2(_ref7) {
28392
28503
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28393
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28504
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28394
28505
  children,
28395
28506
  innerProps
28396
28507
  }), "loadingMessage", {
@@ -28453,7 +28564,7 @@ var MenuPortal = function MenuPortal2(props) {
28453
28564
  runAutoUpdate();
28454
28565
  }, [runAutoUpdate]);
28455
28566
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28456
- var menuWrapper = jsx80("div", _extends({
28567
+ var menuWrapper = jsx81("div", _extends({
28457
28568
  ref: setMenuPortalElement
28458
28569
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28459
28570
  offset: computedPosition.offset,
@@ -28462,9 +28573,9 @@ var MenuPortal = function MenuPortal2(props) {
28462
28573
  }), "menuPortal", {
28463
28574
  "menu-portal": true
28464
28575
  }), innerProps), children);
28465
- return jsx80(PortalPlacementContext.Provider, {
28576
+ return jsx81(PortalPlacementContext.Provider, {
28466
28577
  value: portalPlacementContext
28467
- }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28578
+ }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
28468
28579
  };
28469
28580
  var containerCSS = function containerCSS2(_ref3) {
28470
28581
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -28478,7 +28589,7 @@ var containerCSS = function containerCSS2(_ref3) {
28478
28589
  };
28479
28590
  var SelectContainer = function SelectContainer2(props) {
28480
28591
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28481
- return jsx80("div", _extends({}, getStyleProps(props, "container", {
28592
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
28482
28593
  "--is-disabled": isDisabled,
28483
28594
  "--is-rtl": isRtl
28484
28595
  }), innerProps), children);
@@ -28499,7 +28610,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28499
28610
  };
28500
28611
  var ValueContainer = function ValueContainer2(props) {
28501
28612
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28502
- return jsx80("div", _extends({}, getStyleProps(props, "valueContainer", {
28613
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28503
28614
  "value-container": true,
28504
28615
  "value-container--is-multi": isMulti,
28505
28616
  "value-container--has-value": hasValue
@@ -28515,7 +28626,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28515
28626
  };
28516
28627
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28517
28628
  var children = props.children, innerProps = props.innerProps;
28518
- return jsx80("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28629
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28519
28630
  indicators: true
28520
28631
  }), innerProps), children);
28521
28632
  };
@@ -28536,7 +28647,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28536
28647
  };
28537
28648
  var Svg = function Svg2(_ref3) {
28538
28649
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28539
- return jsx80("svg", _extends({
28650
+ return jsx81("svg", _extends({
28540
28651
  height: size4,
28541
28652
  width: size4,
28542
28653
  viewBox: "0 0 20 20",
@@ -28546,16 +28657,16 @@ var Svg = function Svg2(_ref3) {
28546
28657
  }, props));
28547
28658
  };
28548
28659
  var CrossIcon = function CrossIcon2(props) {
28549
- return jsx80(Svg, _extends({
28660
+ return jsx81(Svg, _extends({
28550
28661
  size: 20
28551
- }, props), jsx80("path", {
28662
+ }, props), jsx81("path", {
28552
28663
  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"
28553
28664
  }));
28554
28665
  };
28555
28666
  var DownChevron = function DownChevron2(props) {
28556
- return jsx80(Svg, _extends({
28667
+ return jsx81(Svg, _extends({
28557
28668
  size: 20
28558
- }, props), jsx80("path", {
28669
+ }, props), jsx81("path", {
28559
28670
  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"
28560
28671
  }));
28561
28672
  };
@@ -28576,18 +28687,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28576
28687
  var dropdownIndicatorCSS = baseCSS;
28577
28688
  var DropdownIndicator = function DropdownIndicator2(props) {
28578
28689
  var children = props.children, innerProps = props.innerProps;
28579
- return jsx80("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28690
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28580
28691
  indicator: true,
28581
28692
  "dropdown-indicator": true
28582
- }), innerProps), children || jsx80(DownChevron, null));
28693
+ }), innerProps), children || jsx81(DownChevron, null));
28583
28694
  };
28584
28695
  var clearIndicatorCSS = baseCSS;
28585
28696
  var ClearIndicator = function ClearIndicator2(props) {
28586
28697
  var children = props.children, innerProps = props.innerProps;
28587
- return jsx80("div", _extends({}, getStyleProps(props, "clearIndicator", {
28698
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28588
28699
  indicator: true,
28589
28700
  "clear-indicator": true
28590
- }), innerProps), children || jsx80(CrossIcon, null));
28701
+ }), innerProps), children || jsx81(CrossIcon, null));
28591
28702
  };
28592
28703
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28593
28704
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28603,7 +28714,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28603
28714
  };
28604
28715
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28605
28716
  var innerProps = props.innerProps;
28606
- return jsx80("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28717
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28607
28718
  "indicator-separator": true
28608
28719
  })));
28609
28720
  };
@@ -28627,7 +28738,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28627
28738
  };
28628
28739
  var LoadingDot = function LoadingDot2(_ref6) {
28629
28740
  var delay = _ref6.delay, offset4 = _ref6.offset;
28630
- return jsx80("span", {
28741
+ return jsx81("span", {
28631
28742
  css: /* @__PURE__ */ css({
28632
28743
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28633
28744
  backgroundColor: "currentColor",
@@ -28642,20 +28753,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28642
28753
  };
28643
28754
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28644
28755
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28645
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28756
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28646
28757
  innerProps,
28647
28758
  isRtl,
28648
28759
  size: size4
28649
28760
  }), "loadingIndicator", {
28650
28761
  indicator: true,
28651
28762
  "loading-indicator": true
28652
- }), innerProps), jsx80(LoadingDot, {
28763
+ }), innerProps), jsx81(LoadingDot, {
28653
28764
  delay: 0,
28654
28765
  offset: isRtl
28655
- }), jsx80(LoadingDot, {
28766
+ }), jsx81(LoadingDot, {
28656
28767
  delay: 160,
28657
28768
  offset: true
28658
- }), jsx80(LoadingDot, {
28769
+ }), jsx81(LoadingDot, {
28659
28770
  delay: 320,
28660
28771
  offset: !isRtl
28661
28772
  }));
@@ -28687,7 +28798,7 @@ var css$1 = function css2(_ref3, unstyled) {
28687
28798
  };
28688
28799
  var Control = function Control2(props) {
28689
28800
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28690
- return jsx80("div", _extends({
28801
+ return jsx81("div", _extends({
28691
28802
  ref: innerRef
28692
28803
  }, getStyleProps(props, "control", {
28693
28804
  control: true,
@@ -28709,15 +28820,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28709
28820
  };
28710
28821
  var Group = function Group2(props) {
28711
28822
  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;
28712
- return jsx80("div", _extends({}, getStyleProps(props, "group", {
28823
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28713
28824
  group: true
28714
- }), innerProps), jsx80(Heading, _extends({}, headingProps, {
28825
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28715
28826
  selectProps,
28716
28827
  theme,
28717
28828
  getStyles,
28718
28829
  getClassNames,
28719
28830
  cx
28720
- }), label), jsx80("div", null, children));
28831
+ }), label), jsx81("div", null, children));
28721
28832
  };
28722
28833
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28723
28834
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28739,7 +28850,7 @@ var GroupHeading = function GroupHeading2(props) {
28739
28850
  var _cleanCommonProps = cleanCommonProps(props);
28740
28851
  _cleanCommonProps.data;
28741
28852
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28742
- return jsx80("div", _extends({}, getStyleProps(props, "groupHeading", {
28853
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28743
28854
  "group-heading": true
28744
28855
  }), innerProps));
28745
28856
  };
@@ -28791,11 +28902,11 @@ var inputStyle = function inputStyle2(isHidden) {
28791
28902
  var Input = function Input2(props) {
28792
28903
  var cx = props.cx, value = props.value;
28793
28904
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28794
- return jsx80("div", _extends({}, getStyleProps(props, "input", {
28905
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28795
28906
  "input-container": true
28796
28907
  }), {
28797
28908
  "data-value": value || ""
28798
- }), jsx80("input", _extends({
28909
+ }), jsx81("input", _extends({
28799
28910
  className: cx({
28800
28911
  input: true
28801
28912
  }, inputClassName),
@@ -28849,35 +28960,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28849
28960
  };
28850
28961
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28851
28962
  var children = _ref4.children, innerProps = _ref4.innerProps;
28852
- return jsx80("div", innerProps, children);
28963
+ return jsx81("div", innerProps, children);
28853
28964
  };
28854
28965
  var MultiValueContainer = MultiValueGeneric;
28855
28966
  var MultiValueLabel = MultiValueGeneric;
28856
28967
  function MultiValueRemove(_ref5) {
28857
28968
  var children = _ref5.children, innerProps = _ref5.innerProps;
28858
- return jsx80("div", _extends({
28969
+ return jsx81("div", _extends({
28859
28970
  role: "button"
28860
- }, innerProps), children || jsx80(CrossIcon, {
28971
+ }, innerProps), children || jsx81(CrossIcon, {
28861
28972
  size: 14
28862
28973
  }));
28863
28974
  }
28864
28975
  var MultiValue = function MultiValue2(props) {
28865
28976
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28866
28977
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28867
- return jsx80(Container, {
28978
+ return jsx81(Container, {
28868
28979
  data,
28869
28980
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28870
28981
  "multi-value": true,
28871
28982
  "multi-value--is-disabled": isDisabled
28872
28983
  })), innerProps),
28873
28984
  selectProps
28874
- }, jsx80(Label, {
28985
+ }, jsx81(Label, {
28875
28986
  data,
28876
28987
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28877
28988
  "multi-value__label": true
28878
28989
  })),
28879
28990
  selectProps
28880
- }, children), jsx80(Remove, {
28991
+ }, children), jsx81(Remove, {
28881
28992
  data,
28882
28993
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28883
28994
  "multi-value__remove": true
@@ -28910,7 +29021,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28910
29021
  };
28911
29022
  var Option = function Option2(props) {
28912
29023
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28913
- return jsx80("div", _extends({}, getStyleProps(props, "option", {
29024
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
28914
29025
  option: true,
28915
29026
  "option--is-disabled": isDisabled,
28916
29027
  "option--is-focused": isFocused,
@@ -28934,7 +29045,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28934
29045
  };
28935
29046
  var Placeholder = function Placeholder2(props) {
28936
29047
  var children = props.children, innerProps = props.innerProps;
28937
- return jsx80("div", _extends({}, getStyleProps(props, "placeholder", {
29048
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28938
29049
  placeholder: true
28939
29050
  }), innerProps), children);
28940
29051
  };
@@ -28956,7 +29067,7 @@ var css3 = function css4(_ref3, unstyled) {
28956
29067
  };
28957
29068
  var SingleValue = function SingleValue2(props) {
28958
29069
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28959
- return jsx80("div", _extends({}, getStyleProps(props, "singleValue", {
29070
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28960
29071
  "single-value": true,
28961
29072
  "single-value--is-disabled": isDisabled
28962
29073
  }), innerProps), children);
@@ -29058,7 +29169,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
29058
29169
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
29059
29170
  };
29060
29171
  var A11yText = function A11yText2(props) {
29061
- return jsx80("span", _extends({
29172
+ return jsx81("span", _extends({
29062
29173
  css: _ref
29063
29174
  }, props));
29064
29175
  };
@@ -29193,18 +29304,18 @@ var LiveRegion = function LiveRegion2(props) {
29193
29304
  }
29194
29305
  return guidanceMsg;
29195
29306
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
29196
- var ScreenReaderText = jsx80(Fragment22, null, jsx80("span", {
29307
+ var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
29197
29308
  id: "aria-selection"
29198
- }, ariaSelected), jsx80("span", {
29309
+ }, ariaSelected), jsx81("span", {
29199
29310
  id: "aria-focused"
29200
- }, ariaFocused), jsx80("span", {
29311
+ }, ariaFocused), jsx81("span", {
29201
29312
  id: "aria-results"
29202
- }, ariaResults), jsx80("span", {
29313
+ }, ariaResults), jsx81("span", {
29203
29314
  id: "aria-guidance"
29204
29315
  }, ariaGuidance));
29205
- return jsx80(Fragment22, null, jsx80(A11yText$1, {
29316
+ return jsx81(Fragment22, null, jsx81(A11yText$1, {
29206
29317
  id
29207
- }, isInitialFocus && ScreenReaderText), jsx80(A11yText$1, {
29318
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
29208
29319
  "aria-live": ariaLive,
29209
29320
  "aria-atomic": "false",
29210
29321
  "aria-relevant": "additions text",
@@ -29517,7 +29628,7 @@ var _excluded4 = ["innerRef"];
29517
29628
  function DummyInput(_ref3) {
29518
29629
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29519
29630
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29520
- return jsx80("input", _extends({
29631
+ return jsx81("input", _extends({
29521
29632
  ref: innerRef
29522
29633
  }, filteredProps, {
29523
29634
  css: /* @__PURE__ */ css({
@@ -29759,7 +29870,7 @@ function ScrollManager(_ref3) {
29759
29870
  setScrollCaptureTarget(element);
29760
29871
  setScrollLockTarget(element);
29761
29872
  };
29762
- return jsx80(Fragment22, null, lockEnabled && jsx80("div", {
29873
+ return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29763
29874
  onClick: blurSelectInput,
29764
29875
  css: _ref2$1
29765
29876
  }), children(targetRef));
@@ -29778,7 +29889,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29778
29889
  };
29779
29890
  var RequiredInput = function RequiredInput2(_ref3) {
29780
29891
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29781
- return jsx80("input", {
29892
+ return jsx81("input", {
29782
29893
  required: true,
29783
29894
  name: name2,
29784
29895
  tabIndex: -1,
@@ -31368,7 +31479,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31368
31479
 
31369
31480
  // src/widgets/basic/date-field/date.tsx
31370
31481
  var import_moment2 = __toESM(require_moment());
31371
- import { Fragment as Fragment23, jsx as jsx82, jsxs as jsxs52 } from "react/jsx-runtime";
31482
+ import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31372
31483
  var DateField = (props) => {
31373
31484
  const {
31374
31485
  name: name2,
@@ -31396,8 +31507,8 @@ var DateField = (props) => {
31396
31507
  } = props;
31397
31508
  const { t: t3 } = useI18n();
31398
31509
  const InputDateCustom = forwardRef6(
31399
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs52("label", { className: `flex ${className}`, children: [
31400
- /* @__PURE__ */ jsx82(
31510
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
31511
+ /* @__PURE__ */ jsx83(
31401
31512
  "input",
31402
31513
  {
31403
31514
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31411,13 +31522,13 @@ var DateField = (props) => {
31411
31522
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31412
31523
  }
31413
31524
  ),
31414
- isForm2 && /* @__PURE__ */ jsx82(CalendarIcon, {})
31525
+ isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
31415
31526
  ] })
31416
31527
  );
31417
31528
  if (!isForm && !isEditTable) {
31418
- return /* @__PURE__ */ jsx82("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31529
+ return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31419
31530
  } else {
31420
- return /* @__PURE__ */ jsx82(
31531
+ return /* @__PURE__ */ jsx83(
31421
31532
  Controller,
31422
31533
  {
31423
31534
  name: name2 || "",
@@ -31439,8 +31550,8 @@ var DateField = (props) => {
31439
31550
  }
31440
31551
  }, [value, clearErrors, name2]);
31441
31552
  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;
31442
- return /* @__PURE__ */ jsxs52(Fragment23, { children: [
31443
- /* @__PURE__ */ jsx82(
31553
+ return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31554
+ /* @__PURE__ */ jsx83(
31444
31555
  DatePicker,
31445
31556
  {
31446
31557
  selected: selectedDate,
@@ -31488,7 +31599,7 @@ var DateField = (props) => {
31488
31599
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31489
31600
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31490
31601
  showTimeInput: showTime,
31491
- customInput: /* @__PURE__ */ jsx82(
31602
+ customInput: /* @__PURE__ */ jsx83(
31492
31603
  InputDateCustom,
31493
31604
  {
31494
31605
  isForm,
@@ -31506,7 +31617,7 @@ var DateField = (props) => {
31506
31617
  increaseMonth,
31507
31618
  prevMonthButtonDisabled,
31508
31619
  nextMonthButtonDisabled
31509
- }) => /* @__PURE__ */ jsxs52(
31620
+ }) => /* @__PURE__ */ jsxs53(
31510
31621
  "div",
31511
31622
  {
31512
31623
  style: {
@@ -31515,7 +31626,7 @@ var DateField = (props) => {
31515
31626
  justifyContent: "center"
31516
31627
  },
31517
31628
  children: [
31518
- /* @__PURE__ */ jsx82(
31629
+ /* @__PURE__ */ jsx83(
31519
31630
  "button",
31520
31631
  {
31521
31632
  onClick: decreaseMonth,
@@ -31523,7 +31634,7 @@ var DateField = (props) => {
31523
31634
  children: "<"
31524
31635
  }
31525
31636
  ),
31526
- /* @__PURE__ */ jsx82(
31637
+ /* @__PURE__ */ jsx83(
31527
31638
  StateManagedSelect$1,
31528
31639
  {
31529
31640
  classNames: {
@@ -31549,7 +31660,7 @@ var DateField = (props) => {
31549
31660
  autoFocus: true
31550
31661
  }
31551
31662
  ),
31552
- /* @__PURE__ */ jsx82(
31663
+ /* @__PURE__ */ jsx83(
31553
31664
  StateManagedSelect$1,
31554
31665
  {
31555
31666
  classNames: {
@@ -31577,7 +31688,7 @@ var DateField = (props) => {
31577
31688
  }))
31578
31689
  }
31579
31690
  ),
31580
- /* @__PURE__ */ jsx82(
31691
+ /* @__PURE__ */ jsx83(
31581
31692
  "button",
31582
31693
  {
31583
31694
  onClick: increaseMonth,
@@ -31590,7 +31701,7 @@ var DateField = (props) => {
31590
31701
  )
31591
31702
  }
31592
31703
  ),
31593
- !isEditTable && error2 && /* @__PURE__ */ jsx82("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31704
+ !isEditTable && error2 && /* @__PURE__ */ jsx83("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31594
31705
  ] });
31595
31706
  }
31596
31707
  }
@@ -31599,26 +31710,26 @@ var DateField = (props) => {
31599
31710
  };
31600
31711
 
31601
31712
  // src/widgets/basic/download-binary-field/download-binary.tsx
31602
- import { jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31713
+ import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31603
31714
  var DownLoadBinaryField = (props) => {
31604
31715
  const { handleFileDownload } = props;
31605
31716
  const { t: t3 } = useI18n();
31606
- return /* @__PURE__ */ jsxs53(
31717
+ return /* @__PURE__ */ jsxs54(
31607
31718
  "button",
31608
31719
  {
31609
31720
  type: "button",
31610
31721
  onClick: handleFileDownload,
31611
31722
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31612
31723
  children: [
31613
- /* @__PURE__ */ jsx83(DownloadIcon, {}),
31614
- /* @__PURE__ */ jsx83("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31724
+ /* @__PURE__ */ jsx84(DownloadIcon, {}),
31725
+ /* @__PURE__ */ jsx84("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31615
31726
  ]
31616
31727
  }
31617
31728
  );
31618
31729
  };
31619
31730
 
31620
31731
  // src/widgets/basic/download-file-field/download-file.tsx
31621
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31732
+ import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31622
31733
  var DownloadFileField = (props) => {
31623
31734
  const {
31624
31735
  readonly,
@@ -31630,15 +31741,15 @@ var DownloadFileField = (props) => {
31630
31741
  handleFileChange,
31631
31742
  handleFileDownload
31632
31743
  } = props;
31633
- return /* @__PURE__ */ jsxs54("div", { className: "", children: [
31634
- /* @__PURE__ */ jsxs54(
31744
+ return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31745
+ /* @__PURE__ */ jsxs55(
31635
31746
  "label",
31636
31747
  {
31637
31748
  htmlFor: inputId,
31638
31749
  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",
31639
31750
  children: [
31640
- file ? /* @__PURE__ */ jsx84("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx84("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx84("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31641
- /* @__PURE__ */ jsx84(
31751
+ file ? /* @__PURE__ */ jsx85("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31752
+ /* @__PURE__ */ jsx85(
31642
31753
  "input",
31643
31754
  {
31644
31755
  id: inputId,
@@ -31652,7 +31763,7 @@ var DownloadFileField = (props) => {
31652
31763
  ]
31653
31764
  }
31654
31765
  ),
31655
- file && /* @__PURE__ */ jsx84(
31766
+ file && /* @__PURE__ */ jsx85(
31656
31767
  "button",
31657
31768
  {
31658
31769
  onClick: handleFileDownload,
@@ -31666,7 +31777,7 @@ var DownloadFileField = (props) => {
31666
31777
 
31667
31778
  // src/widgets/basic/dropdown-field/dropdown.tsx
31668
31779
  import { useState as useState16 } from "react";
31669
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31780
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31670
31781
  var DropdownField = (props) => {
31671
31782
  const {
31672
31783
  options: options2,
@@ -31680,30 +31791,30 @@ var DropdownField = (props) => {
31680
31791
  } = props;
31681
31792
  const [open, setOpen] = useState16(false);
31682
31793
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31683
- return /* @__PURE__ */ jsxs55(
31794
+ return /* @__PURE__ */ jsxs56(
31684
31795
  "div",
31685
31796
  {
31686
31797
  ref: dropdownRef,
31687
31798
  className: `relative ${className}`,
31688
31799
  onClick: () => setOpen(!open),
31689
31800
  children: [
31690
- /* @__PURE__ */ jsxs55(
31801
+ /* @__PURE__ */ jsxs56(
31691
31802
  "div",
31692
31803
  {
31693
31804
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31694
31805
  children: [
31695
31806
  selectedValue?.icon,
31696
- /* @__PURE__ */ jsx85("span", { children: selectedValue?.label }),
31697
- /* @__PURE__ */ jsx85(ChevronBottomIcon, { className: "h-4 w-4" })
31807
+ /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31808
+ /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31698
31809
  ]
31699
31810
  }
31700
31811
  ),
31701
- open && /* @__PURE__ */ jsx85(
31812
+ open && /* @__PURE__ */ jsx86(
31702
31813
  "div",
31703
31814
  {
31704
31815
  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}`,
31705
31816
  onClick: (e3) => e3.stopPropagation(),
31706
- children: options2.map((option, index4) => /* @__PURE__ */ jsx85(
31817
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31707
31818
  "div",
31708
31819
  {
31709
31820
  onClick: () => {
@@ -31723,7 +31834,7 @@ var DropdownField = (props) => {
31723
31834
  };
31724
31835
 
31725
31836
  // src/widgets/basic/fee-field/fee.tsx
31726
- import { Fragment as Fragment24, jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31837
+ import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31727
31838
  var FeeField = (props) => {
31728
31839
  const { value, formValues } = props;
31729
31840
  const { t: t3 } = useI18n();
@@ -31734,27 +31845,27 @@ var FeeField = (props) => {
31734
31845
  )
31735
31846
  ) + " VND";
31736
31847
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31737
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31848
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31738
31849
  value?.subtotals?.map((sub) => {
31739
31850
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31740
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31741
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31742
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31851
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31852
+ /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31853
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31743
31854
  sub?.name,
31744
31855
  ":"
31745
31856
  ] }),
31746
- /* @__PURE__ */ jsx86("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31857
+ /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31747
31858
  ] }),
31748
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs56(
31859
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31749
31860
  "div",
31750
31861
  {
31751
31862
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31752
31863
  children: [
31753
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31864
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31754
31865
  group?.group_name,
31755
31866
  ":"
31756
31867
  ] }),
31757
- /* @__PURE__ */ jsx86("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31868
+ /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31758
31869
  ]
31759
31870
  },
31760
31871
  `tax_groups_${group?.id}`
@@ -31762,33 +31873,33 @@ var FeeField = (props) => {
31762
31873
  ] });
31763
31874
  }
31764
31875
  }),
31765
- /* @__PURE__ */ jsxs56("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: [
31766
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31876
+ /* @__PURE__ */ jsxs57("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: [
31877
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31767
31878
  t3("total"),
31768
31879
  ":"
31769
31880
  ] }),
31770
- /* @__PURE__ */ jsx86("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31881
+ /* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31771
31882
  ] }),
31772
- /* @__PURE__ */ jsxs56("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: [
31773
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31883
+ /* @__PURE__ */ jsxs57("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: [
31884
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31774
31885
  t3("paid_amount"),
31775
31886
  ":"
31776
31887
  ] }),
31777
- /* @__PURE__ */ jsx86("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31888
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31778
31889
  ] }),
31779
- /* @__PURE__ */ jsxs56("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: [
31780
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31890
+ /* @__PURE__ */ jsxs57("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: [
31891
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31781
31892
  t3("remanining_amount"),
31782
31893
  ":"
31783
31894
  ] }),
31784
- /* @__PURE__ */ jsx86("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31895
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31785
31896
  ] })
31786
31897
  ] });
31787
31898
  };
31788
31899
 
31789
31900
  // src/widgets/basic/file-upload-field/file-upload.tsx
31790
31901
  import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31791
- import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31902
+ import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31792
31903
  var RenderFile = ({
31793
31904
  file,
31794
31905
  onDelete,
@@ -31798,16 +31909,16 @@ var RenderFile = ({
31798
31909
  readAs: "all"
31799
31910
  });
31800
31911
  const fileTypeIcon = {
31801
- "application/pdf": /* @__PURE__ */ jsx87(PdfIcon, {}),
31802
- "application/zip": /* @__PURE__ */ jsx87(ZipIcon, {}),
31803
- "application/x-zip-compressed": /* @__PURE__ */ jsx87(ZipIcon, {}),
31804
- "application/vnd.ms-excel": /* @__PURE__ */ jsx87(ExcelIcon, {}),
31805
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx87(ExcelIcon, {})
31912
+ "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
31913
+ "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
31914
+ "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
31915
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
31916
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
31806
31917
  };
31807
- return /* @__PURE__ */ jsxs57("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31808
- /* @__PURE__ */ jsx87("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31809
- /* @__PURE__ */ jsxs57("div", { children: [
31810
- /* @__PURE__ */ jsx87(
31918
+ return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31919
+ /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31920
+ /* @__PURE__ */ jsxs58("div", { children: [
31921
+ /* @__PURE__ */ jsx88(
31811
31922
  "div",
31812
31923
  {
31813
31924
  style: {
@@ -31817,20 +31928,20 @@ var RenderFile = ({
31817
31928
  children: file?.name || file?.display_name || info?.name
31818
31929
  }
31819
31930
  ),
31820
- /* @__PURE__ */ jsx87("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31931
+ /* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31821
31932
  ] }),
31822
- /* @__PURE__ */ jsxs57("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: [
31823
- /* @__PURE__ */ jsx87(
31933
+ /* @__PURE__ */ jsxs58("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: [
31934
+ /* @__PURE__ */ jsx88(
31824
31935
  "span",
31825
31936
  {
31826
31937
  onClick: () => onDownload && onDownload(
31827
31938
  file?.data,
31828
31939
  file?.name || file?.display_name || info?.name
31829
31940
  ),
31830
- children: /* @__PURE__ */ jsx87(DownloadIcon, {})
31941
+ children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31831
31942
  }
31832
31943
  ),
31833
- /* @__PURE__ */ jsx87("span", { onClick: onDelete, children: /* @__PURE__ */ jsx87(DeleteIconDanger, {}) })
31944
+ /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31834
31945
  ] })
31835
31946
  ] });
31836
31947
  };
@@ -31864,7 +31975,7 @@ var FileUploadField = (props) => {
31864
31975
  ]);
31865
31976
  }
31866
31977
  }, [value]);
31867
- return /* @__PURE__ */ jsx87(
31978
+ return /* @__PURE__ */ jsx88(
31868
31979
  Controller,
31869
31980
  {
31870
31981
  name: name2 || "",
@@ -31889,8 +32000,8 @@ var FileUploadField = (props) => {
31889
32000
  );
31890
32001
  }
31891
32002
  }, [selectedFiles]);
31892
- return /* @__PURE__ */ jsxs57("div", { className: "file-upload-field", children: [
31893
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx87(
32003
+ return /* @__PURE__ */ jsxs58("div", { children: [
32004
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
31894
32005
  RenderFile,
31895
32006
  {
31896
32007
  file: fileItem,
@@ -31905,8 +32016,8 @@ var FileUploadField = (props) => {
31905
32016
  }
31906
32017
  }
31907
32018
  )),
31908
- uploadError && /* @__PURE__ */ jsx87("div", { className: "text-[#de4747]", children: uploadError }),
31909
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx87(
32019
+ uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
32020
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx88(
31910
32021
  ButtonSelectFiles,
31911
32022
  {
31912
32023
  fileInputRef,
@@ -31921,7 +32032,7 @@ var FileUploadField = (props) => {
31921
32032
  useUploadFile
31922
32033
  }
31923
32034
  ),
31924
- error2 && !isEditTable && /* @__PURE__ */ jsx87("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32035
+ error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31925
32036
  ] });
31926
32037
  }
31927
32038
  }
@@ -31930,7 +32041,7 @@ var FileUploadField = (props) => {
31930
32041
 
31931
32042
  // src/widgets/basic/float-field/float.tsx
31932
32043
  import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31933
- import { Fragment as Fragment25, jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
32044
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31934
32045
  var FloatField = (props) => {
31935
32046
  const {
31936
32047
  name: name2,
@@ -31948,9 +32059,9 @@ var FloatField = (props) => {
31948
32059
  } = props;
31949
32060
  const { t: t3 } = useI18n();
31950
32061
  if (!isForm && !isEditTable) {
31951
- return /* @__PURE__ */ jsx88("span", { children: formatFloatNumber(propValue ?? defaultValue) });
32062
+ return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31952
32063
  }
31953
- return /* @__PURE__ */ jsx88(
32064
+ return /* @__PURE__ */ jsx89(
31954
32065
  Controller,
31955
32066
  {
31956
32067
  name: name2 ?? "",
@@ -32055,8 +32166,8 @@ var FloatField = (props) => {
32055
32166
  }
32056
32167
  isDirtyRef.current = false;
32057
32168
  };
32058
- return /* @__PURE__ */ jsxs58(Fragment25, { children: [
32059
- /* @__PURE__ */ jsx88(
32169
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
32170
+ /* @__PURE__ */ jsx89(
32060
32171
  "input",
32061
32172
  {
32062
32173
  ref: inputRef,
@@ -32076,7 +32187,7 @@ var FloatField = (props) => {
32076
32187
  `
32077
32188
  }
32078
32189
  ),
32079
- error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32190
+ error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32080
32191
  ] });
32081
32192
  }
32082
32193
  }
@@ -32085,7 +32196,7 @@ var FloatField = (props) => {
32085
32196
 
32086
32197
  // src/widgets/basic/float-time-field/float-time.tsx
32087
32198
  import { useState as useState19 } from "react";
32088
- import { Fragment as Fragment26, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
32199
+ import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
32089
32200
  var FloatTimeField = (props) => {
32090
32201
  const {
32091
32202
  name: name2,
@@ -32101,9 +32212,9 @@ var FloatTimeField = (props) => {
32101
32212
  const { t: t3 } = useI18n();
32102
32213
  if (!isForm) {
32103
32214
  const formatValue = value ?? 0;
32104
- return /* @__PURE__ */ jsx89("span", { children: convertFloatToTime(formatValue) });
32215
+ return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
32105
32216
  }
32106
- return /* @__PURE__ */ jsx89(
32217
+ return /* @__PURE__ */ jsx90(
32107
32218
  Controller,
32108
32219
  {
32109
32220
  name: name2 ?? "",
@@ -32165,8 +32276,8 @@ var FloatTimeField = (props) => {
32165
32276
  }
32166
32277
  onBlur();
32167
32278
  };
32168
- return /* @__PURE__ */ jsxs59(Fragment26, { children: [
32169
- /* @__PURE__ */ jsx89(
32279
+ return /* @__PURE__ */ jsxs60(Fragment26, { children: [
32280
+ /* @__PURE__ */ jsx90(
32170
32281
  "input",
32171
32282
  {
32172
32283
  type: "text",
@@ -32198,7 +32309,7 @@ var FloatTimeField = (props) => {
32198
32309
  readOnly: readonly
32199
32310
  }
32200
32311
  ),
32201
- (error2 || errors) && /* @__PURE__ */ jsx89("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32312
+ (error2 || errors) && /* @__PURE__ */ jsx90("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32202
32313
  ] });
32203
32314
  }
32204
32315
  }
@@ -32207,7 +32318,7 @@ var FloatTimeField = (props) => {
32207
32318
 
32208
32319
  // src/widgets/basic/html-field/html.tsx
32209
32320
  import { useEffect as useEffect20, useRef as useRef17 } from "react";
32210
- import { jsx as jsx90 } from "react/jsx-runtime";
32321
+ import { jsx as jsx91 } from "react/jsx-runtime";
32211
32322
  var HtmlField = (props) => {
32212
32323
  const {
32213
32324
  name: name2,
@@ -32221,9 +32332,9 @@ var HtmlField = (props) => {
32221
32332
  } = props;
32222
32333
  const divRef = useRef17(null);
32223
32334
  if (!isForm && !isEditTable) {
32224
- return /* @__PURE__ */ jsx90("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32335
+ return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32225
32336
  }
32226
- return /* @__PURE__ */ jsx90(
32337
+ return /* @__PURE__ */ jsx91(
32227
32338
  Controller,
32228
32339
  {
32229
32340
  name: name2 ?? "",
@@ -32242,7 +32353,7 @@ var HtmlField = (props) => {
32242
32353
  onChange2(newValue, "");
32243
32354
  }
32244
32355
  };
32245
- return /* @__PURE__ */ jsx90(
32356
+ return /* @__PURE__ */ jsx91(
32246
32357
  "div",
32247
32358
  {
32248
32359
  ref: divRef,
@@ -32261,28 +32372,28 @@ var HtmlField = (props) => {
32261
32372
  };
32262
32373
 
32263
32374
  // src/widgets/basic/image-field/image.tsx
32264
- import { jsx as jsx91 } from "react/jsx-runtime";
32375
+ import { jsx as jsx92 } from "react/jsx-runtime";
32265
32376
  var ImageField = (props) => {
32266
32377
  const { value, type, name: name2, baseURL } = props;
32267
32378
  if (!value) return null;
32268
32379
  if (type === "url") {
32269
- return /* @__PURE__ */ jsx91("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32380
+ return /* @__PURE__ */ jsx92("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32270
32381
  }
32271
- return /* @__PURE__ */ jsx91("div", { id: "qr-code", children: /* @__PURE__ */ jsx91("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32382
+ return /* @__PURE__ */ jsx92("div", { id: "qr-code", children: /* @__PURE__ */ jsx92("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32272
32383
  };
32273
32384
 
32274
32385
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32275
32386
  import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
32276
32387
 
32277
32388
  // src/widgets/basic/information-field/information.tsx
32278
- import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs60 } from "react/jsx-runtime";
32389
+ import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
32279
32390
  var InfomationField = (props) => {
32280
32391
  const { value, isForm = false, showName = true, stringToColor } = props;
32281
32392
  if (!value || Array.isArray(value) && value.length === 0) {
32282
- return /* @__PURE__ */ jsx92(Fragment27, {});
32393
+ return /* @__PURE__ */ jsx93(Fragment27, {});
32283
32394
  }
32284
32395
  const inforValues = Array.isArray(value) ? value : [value];
32285
- return /* @__PURE__ */ jsx92("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx92(
32396
+ return /* @__PURE__ */ jsx93("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx93(
32286
32397
  AvatarField,
32287
32398
  {
32288
32399
  id: item.id,
@@ -32291,8 +32402,8 @@ var InfomationField = (props) => {
32291
32402
  stringToColor
32292
32403
  },
32293
32404
  item.id
32294
- )) : /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center w-max", children: [
32295
- /* @__PURE__ */ jsx92(
32405
+ )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
32406
+ /* @__PURE__ */ jsx93(
32296
32407
  AvatarField,
32297
32408
  {
32298
32409
  avatarSrc: inforValues[0].image_256,
@@ -32302,12 +32413,12 @@ var InfomationField = (props) => {
32302
32413
  stringToColor
32303
32414
  }
32304
32415
  ),
32305
- showName && /* @__PURE__ */ jsx92("span", { className: "capitalize", children: inforValues[0].display_name })
32416
+ showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
32306
32417
  ] }) });
32307
32418
  };
32308
32419
 
32309
32420
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32310
- import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
32421
+ import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32311
32422
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32312
32423
  const { selectProps, data, menuList } = props;
32313
32424
  const { relation } = selectProps;
@@ -32316,8 +32427,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32316
32427
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32317
32428
  )
32318
32429
  )?.[0]?.action?.id;
32319
- return /* @__PURE__ */ jsxs61("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32320
- /* @__PURE__ */ jsx93(
32430
+ return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32431
+ /* @__PURE__ */ jsx94(
32321
32432
  AvatarField,
32322
32433
  {
32323
32434
  id: data?.id,
@@ -32329,8 +32440,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32329
32440
  stringToColor
32330
32441
  }
32331
32442
  ),
32332
- /* @__PURE__ */ jsx93("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32333
- /* @__PURE__ */ jsx93(
32443
+ /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32444
+ /* @__PURE__ */ jsx94(
32334
32445
  "span",
32335
32446
  {
32336
32447
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32338,7 +32449,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32338
32449
  e3.stopPropagation();
32339
32450
  props.removeProps.onClick();
32340
32451
  },
32341
- children: /* @__PURE__ */ jsx93(CloseIcon, {})
32452
+ children: /* @__PURE__ */ jsx94(CloseIcon, {})
32342
32453
  }
32343
32454
  )
32344
32455
  ] });
@@ -32348,9 +32459,9 @@ var CustomMenuList = (props) => {
32348
32459
  const { setIsShowModalMany2Many, searchable } = selectProps;
32349
32460
  const { t: t3 } = useI18n();
32350
32461
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
32351
- return /* @__PURE__ */ jsxs61(components.MenuList, { ...props, className: "z-[99]", children: [
32462
+ return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
32352
32463
  limitedChildren,
32353
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs61(
32464
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
32354
32465
  "button",
32355
32466
  {
32356
32467
  type: "button",
@@ -32395,7 +32506,7 @@ var Many2ManyTagField = (props) => {
32395
32506
  value: item.id,
32396
32507
  label: item.name ?? item.display_name
32397
32508
  })) : [];
32398
- return /* @__PURE__ */ jsx93(
32509
+ return /* @__PURE__ */ jsx94(
32399
32510
  InfomationField,
32400
32511
  {
32401
32512
  value: optionValue || null,
@@ -32404,7 +32515,7 @@ var Many2ManyTagField = (props) => {
32404
32515
  }
32405
32516
  );
32406
32517
  }
32407
- return /* @__PURE__ */ jsx93(
32518
+ return /* @__PURE__ */ jsx94(
32408
32519
  Controller,
32409
32520
  {
32410
32521
  name: name2 ?? "",
@@ -32440,8 +32551,8 @@ var Many2ManyTagField = (props) => {
32440
32551
  onChange2?.(name2 ?? "", newValue);
32441
32552
  clearErrors(name2);
32442
32553
  };
32443
- return /* @__PURE__ */ jsxs61("div", { className: "group h-full overflow-y-auto", children: [
32444
- /* @__PURE__ */ jsx93(
32554
+ return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32555
+ /* @__PURE__ */ jsx94(
32445
32556
  StateManagedSelect$1,
32446
32557
  {
32447
32558
  options: options2,
@@ -32519,7 +32630,7 @@ var Many2ManyTagField = (props) => {
32519
32630
  })
32520
32631
  },
32521
32632
  components: isUser ? {
32522
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx93(
32633
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
32523
32634
  CustomMultiValue,
32524
32635
  {
32525
32636
  ...multiValueProps,
@@ -32528,7 +32639,7 @@ var Many2ManyTagField = (props) => {
32528
32639
  ),
32529
32640
  IndicatorSeparator: () => null
32530
32641
  } : {
32531
- MenuList: (menuListProps) => /* @__PURE__ */ jsx93(
32642
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
32532
32643
  CustomMenuList,
32533
32644
  {
32534
32645
  ...menuListProps,
@@ -32539,13 +32650,13 @@ var Many2ManyTagField = (props) => {
32539
32650
  }
32540
32651
  ),
32541
32652
  IndicatorSeparator: () => null,
32542
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.DropdownIndicator, { ...props2 }),
32543
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.ClearIndicator, { ...props2 })
32653
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
32654
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.ClearIndicator, { ...props2 })
32544
32655
  },
32545
32656
  required: !invisible && required
32546
32657
  }
32547
32658
  ),
32548
- !isEditTable && error2 && /* @__PURE__ */ jsx93("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32659
+ !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32549
32660
  ] });
32550
32661
  }
32551
32662
  }
@@ -32554,7 +32665,7 @@ var Many2ManyTagField = (props) => {
32554
32665
 
32555
32666
  // src/widgets/basic/monetary-field/monetary.tsx
32556
32667
  import { useEffect as useEffect22 } from "react";
32557
- import { Fragment as Fragment28, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32668
+ import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32558
32669
  var MonetaryField = (props) => {
32559
32670
  const { t: t3 } = useI18n();
32560
32671
  const {
@@ -32574,26 +32685,26 @@ var MonetaryField = (props) => {
32574
32685
  isEditTable
32575
32686
  } = props;
32576
32687
  if (isForm && name2 === "amount_residual") {
32577
- return /* @__PURE__ */ jsxs62("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32578
- /* @__PURE__ */ jsxs62("span", { className: "font-semibold", children: [
32688
+ return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32689
+ /* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
32579
32690
  string,
32580
32691
  ":"
32581
32692
  ] }),
32582
- /* @__PURE__ */ jsx94("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32693
+ /* @__PURE__ */ jsx95("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32583
32694
  ] });
32584
32695
  }
32585
32696
  if (!isForm) {
32586
32697
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32587
32698
  if (widget === "monetary" && !formValues?.currency_id) {
32588
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32699
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32589
32700
  parseFloat(String(value ?? defaultValue))
32590
32701
  )} VND` });
32591
32702
  }
32592
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32703
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32593
32704
  parseFloat(value ?? defaultValue)
32594
32705
  )} ${currencySymbol}` });
32595
32706
  }
32596
- return /* @__PURE__ */ jsx94(
32707
+ return /* @__PURE__ */ jsx95(
32597
32708
  Controller,
32598
32709
  {
32599
32710
  name: name2 ?? "",
@@ -32612,8 +32723,8 @@ var MonetaryField = (props) => {
32612
32723
  clearErrors(name2);
32613
32724
  }
32614
32725
  }, [value2]);
32615
- return /* @__PURE__ */ jsxs62(Fragment28, { children: [
32616
- /* @__PURE__ */ jsx94(
32726
+ return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32727
+ /* @__PURE__ */ jsx95(
32617
32728
  "input",
32618
32729
  {
32619
32730
  value: formatNumberOnly(value2),
@@ -32651,7 +32762,7 @@ var MonetaryField = (props) => {
32651
32762
  `
32652
32763
  }
32653
32764
  ),
32654
- !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32765
+ !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32655
32766
  ] });
32656
32767
  }
32657
32768
  }
@@ -32659,14 +32770,14 @@ var MonetaryField = (props) => {
32659
32770
  };
32660
32771
 
32661
32772
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32662
- import { jsx as jsx95 } from "react/jsx-runtime";
32773
+ import { jsx as jsx96 } from "react/jsx-runtime";
32663
32774
  var PaidBadgedField = () => {
32664
- return /* @__PURE__ */ jsx95("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx95(PaidIcon, {}) });
32775
+ return /* @__PURE__ */ jsx96("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx96(PaidIcon, {}) });
32665
32776
  };
32666
32777
 
32667
32778
  // src/widgets/basic/priority-field/rating-star.tsx
32668
32779
  import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32669
- import { jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
32780
+ import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32670
32781
  var RatingStarField = (props) => {
32671
32782
  const {
32672
32783
  label,
@@ -32701,7 +32812,7 @@ var RatingStarField = (props) => {
32701
32812
  setHover(0);
32702
32813
  setRating(0);
32703
32814
  };
32704
- return /* @__PURE__ */ jsx96(
32815
+ return /* @__PURE__ */ jsx97(
32705
32816
  "div",
32706
32817
  {
32707
32818
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32711,17 +32822,17 @@ var RatingStarField = (props) => {
32711
32822
  const starValue = index4 + 1;
32712
32823
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32713
32824
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32714
- return /* @__PURE__ */ jsxs63(React17.Fragment, { children: [
32715
- /* @__PURE__ */ jsx96(
32825
+ return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32826
+ /* @__PURE__ */ jsx97(
32716
32827
  "div",
32717
32828
  {
32718
32829
  onMouseEnter: () => handleHover(starValue),
32719
32830
  onClick: () => handleClick(starValue),
32720
32831
  "data-tooltip-id": `${id}-${starValue}`,
32721
- children: /* @__PURE__ */ jsx96(StarIcon, { fill: fillColor, stroke: strokeColor })
32832
+ children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32722
32833
  }
32723
32834
  ),
32724
- /* @__PURE__ */ jsx96(
32835
+ /* @__PURE__ */ jsx97(
32725
32836
  M,
32726
32837
  {
32727
32838
  className: "z-50",
@@ -32737,7 +32848,7 @@ var RatingStarField = (props) => {
32737
32848
  };
32738
32849
 
32739
32850
  // src/widgets/basic/priority-field/priority.tsx
32740
- import { jsx as jsx97 } from "react/jsx-runtime";
32851
+ import { jsx as jsx98 } from "react/jsx-runtime";
32741
32852
  var PriorityField = (props) => {
32742
32853
  const {
32743
32854
  isForm,
@@ -32753,7 +32864,7 @@ var PriorityField = (props) => {
32753
32864
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32754
32865
  const defaultPriority = parseInt(value) + 1;
32755
32866
  if (!isForm) {
32756
- return /* @__PURE__ */ jsx97(
32867
+ return /* @__PURE__ */ jsx98(
32757
32868
  RatingStarField,
32758
32869
  {
32759
32870
  label,
@@ -32764,7 +32875,7 @@ var PriorityField = (props) => {
32764
32875
  }
32765
32876
  );
32766
32877
  }
32767
- return /* @__PURE__ */ jsx97(
32878
+ return /* @__PURE__ */ jsx98(
32768
32879
  Controller,
32769
32880
  {
32770
32881
  name: name ?? "",
@@ -32774,7 +32885,7 @@ var PriorityField = (props) => {
32774
32885
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32775
32886
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32776
32887
  };
32777
- return /* @__PURE__ */ jsx97(
32888
+ return /* @__PURE__ */ jsx98(
32778
32889
  RatingStarField,
32779
32890
  {
32780
32891
  label,
@@ -32791,7 +32902,7 @@ var PriorityField = (props) => {
32791
32902
 
32792
32903
  // src/widgets/basic/radio-group-field/radio-group.tsx
32793
32904
  import { useEffect as useEffect24 } from "react";
32794
- import { jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
32905
+ import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32795
32906
  var RadioGroupField = (props) => {
32796
32907
  const {
32797
32908
  name: name2,
@@ -32810,13 +32921,13 @@ var RadioGroupField = (props) => {
32810
32921
  }
32811
32922
  }, [selection, name2, setValue]);
32812
32923
  if (!methods) return null;
32813
- return /* @__PURE__ */ jsx98(
32924
+ return /* @__PURE__ */ jsx99(
32814
32925
  Controller,
32815
32926
  {
32816
32927
  name: name2 ?? "",
32817
32928
  control: methods.control,
32818
- render: ({ field }) => /* @__PURE__ */ jsx98("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-1", children: [
32819
- /* @__PURE__ */ jsx98(
32929
+ render: ({ field }) => /* @__PURE__ */ jsx99("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-1", children: [
32930
+ /* @__PURE__ */ jsx99(
32820
32931
  "input",
32821
32932
  {
32822
32933
  type: "radio",
@@ -32835,7 +32946,7 @@ var RadioGroupField = (props) => {
32835
32946
  className: "custom-radio"
32836
32947
  }
32837
32948
  ),
32838
- /* @__PURE__ */ jsx98("label", { htmlFor: String(select[0]), children: select[1] })
32949
+ /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32839
32950
  ] }, select[0])) })
32840
32951
  }
32841
32952
  );
@@ -32843,7 +32954,7 @@ var RadioGroupField = (props) => {
32843
32954
 
32844
32955
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32845
32956
  var import_moment3 = __toESM(require_moment());
32846
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32957
+ import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32847
32958
  var RemainingDaysField = (props) => {
32848
32959
  const {
32849
32960
  value,
@@ -32854,14 +32965,14 @@ var RemainingDaysField = (props) => {
32854
32965
  if (!value) return null;
32855
32966
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32856
32967
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32857
- return /* @__PURE__ */ jsxs65("div", { className: isForm ? "mb-4" : "", children: [
32858
- /* @__PURE__ */ jsx99(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32859
- /* @__PURE__ */ jsx99(
32968
+ return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32969
+ /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32970
+ /* @__PURE__ */ jsx100(
32860
32971
  "div",
32861
32972
  {
32862
32973
  "data-tooltip-id": `remainingDays_${value}`,
32863
32974
  className: "flex items-center w-fit cursor-context-menu",
32864
- children: /* @__PURE__ */ jsx99(
32975
+ children: /* @__PURE__ */ jsx100(
32865
32976
  "div",
32866
32977
  {
32867
32978
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32874,7 +32985,7 @@ var RemainingDaysField = (props) => {
32874
32985
  };
32875
32986
 
32876
32987
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32877
- import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32988
+ import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32878
32989
  var SelectDropdownField = (props) => {
32879
32990
  const { t: t3 } = useI18n();
32880
32991
  const {
@@ -32896,9 +33007,9 @@ var SelectDropdownField = (props) => {
32896
33007
  label: val[1]
32897
33008
  })) : [];
32898
33009
  if (!isForm && !isEditTable) {
32899
- return /* @__PURE__ */ jsx100("span", { children: options2?.find((item) => item?.value === value)?.label });
33010
+ return /* @__PURE__ */ jsx101("span", { children: options2?.find((item) => item?.value === value)?.label });
32900
33011
  } else {
32901
- return /* @__PURE__ */ jsx100(
33012
+ return /* @__PURE__ */ jsx101(
32902
33013
  Controller,
32903
33014
  {
32904
33015
  name: name2 || "",
@@ -32925,8 +33036,8 @@ var SelectDropdownField = (props) => {
32925
33036
  value: defaultValue || null,
32926
33037
  required: !invisible && required
32927
33038
  };
32928
- return /* @__PURE__ */ jsxs66(Fragment29, { children: [
32929
- /* @__PURE__ */ jsx100("div", { className: "group", children: /* @__PURE__ */ jsx100(
33039
+ return /* @__PURE__ */ jsxs67(Fragment29, { children: [
33040
+ /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32930
33041
  StateManagedSelect$1,
32931
33042
  {
32932
33043
  ...commonProps,
@@ -32981,12 +33092,12 @@ var SelectDropdownField = (props) => {
32981
33092
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32982
33093
  components: {
32983
33094
  IndicatorSeparator: () => null,
32984
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx100(components.DropdownIndicator, { ...props2 })
33095
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32985
33096
  },
32986
33097
  noOptionsMessage: () => t3("no-available")
32987
33098
  }
32988
33099
  ) }),
32989
- !isEditTable && error2 && /* @__PURE__ */ jsx100("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33100
+ !isEditTable && error2 && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32990
33101
  ] });
32991
33102
  }
32992
33103
  }
@@ -32995,7 +33106,7 @@ var SelectDropdownField = (props) => {
32995
33106
  };
32996
33107
 
32997
33108
  // src/widgets/basic/textarea-field/textarea.tsx
32998
- import { jsx as jsx101 } from "react/jsx-runtime";
33109
+ import { jsx as jsx102 } from "react/jsx-runtime";
32999
33110
  var TextAreaField = (props) => {
33000
33111
  const {
33001
33112
  methods,
@@ -33019,9 +33130,9 @@ var TextAreaField = (props) => {
33019
33130
  }
33020
33131
  }) : {};
33021
33132
  if (!isForm) {
33022
- return /* @__PURE__ */ jsx101("span", { children: value && typeof value === "object" ? value.display_name : value });
33133
+ return /* @__PURE__ */ jsx102("span", { children: value && typeof value === "object" ? value.display_name : value });
33023
33134
  }
33024
- return /* @__PURE__ */ jsx101(
33135
+ return /* @__PURE__ */ jsx102(
33025
33136
  "textarea",
33026
33137
  {
33027
33138
  ...formProps,
@@ -33037,7 +33148,7 @@ var TextAreaField = (props) => {
33037
33148
  };
33038
33149
 
33039
33150
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
33040
- import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
33151
+ import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
33041
33152
  var ToggleButtonField = (props) => {
33042
33153
  const {
33043
33154
  name: name2,
@@ -33047,13 +33158,13 @@ var ToggleButtonField = (props) => {
33047
33158
  onChange: onChange2,
33048
33159
  methods
33049
33160
  } = props;
33050
- return /* @__PURE__ */ jsx102(
33161
+ return /* @__PURE__ */ jsx103(
33051
33162
  Controller,
33052
33163
  {
33053
33164
  name: name2 ?? "",
33054
33165
  control: methods?.control,
33055
- render: ({ field }) => /* @__PURE__ */ jsx102("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs67("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33056
- /* @__PURE__ */ jsx102(
33166
+ render: ({ field }) => /* @__PURE__ */ jsx103("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs68("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33167
+ /* @__PURE__ */ jsx103(
33057
33168
  "input",
33058
33169
  {
33059
33170
  ...field,
@@ -33072,7 +33183,7 @@ var ToggleButtonField = (props) => {
33072
33183
  checked: field.value ?? false
33073
33184
  }
33074
33185
  ),
33075
- /* @__PURE__ */ jsx102(
33186
+ /* @__PURE__ */ jsx103(
33076
33187
  "span",
33077
33188
  {
33078
33189
  style: {
@@ -33081,7 +33192,7 @@ var ToggleButtonField = (props) => {
33081
33192
  },
33082
33193
  className: `rounded-full transition duration-300
33083
33194
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
33084
- children: /* @__PURE__ */ jsx102(
33195
+ children: /* @__PURE__ */ jsx103(
33085
33196
  "span",
33086
33197
  {
33087
33198
  style: {
@@ -33106,7 +33217,7 @@ var ToggleButtonField = (props) => {
33106
33217
 
33107
33218
  // src/widgets/basic/integer-field/integer.tsx
33108
33219
  import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
33109
- import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
33220
+ import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
33110
33221
  var IntegerField = (props) => {
33111
33222
  const {
33112
33223
  name: name2,
@@ -33125,9 +33236,9 @@ var IntegerField = (props) => {
33125
33236
  const { t: t3 } = useI18n();
33126
33237
  if (!isForm && !isEditTable) {
33127
33238
  const displayValue = value ?? defaultValue;
33128
- return /* @__PURE__ */ jsx103("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33239
+ return /* @__PURE__ */ jsx104("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33129
33240
  }
33130
- return /* @__PURE__ */ jsx103(
33241
+ return /* @__PURE__ */ jsx104(
33131
33242
  Controller,
33132
33243
  {
33133
33244
  name: name2 || "",
@@ -33205,8 +33316,8 @@ var IntegerField = (props) => {
33205
33316
  inputRef.current?.blur();
33206
33317
  clearErrors(name2);
33207
33318
  };
33208
- return /* @__PURE__ */ jsxs68(Fragment30, { children: [
33209
- /* @__PURE__ */ jsx103(
33319
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
33320
+ /* @__PURE__ */ jsx104(
33210
33321
  "input",
33211
33322
  {
33212
33323
  ref: inputRef,
@@ -33241,7 +33352,7 @@ var IntegerField = (props) => {
33241
33352
  `
33242
33353
  }
33243
33354
  ),
33244
- error2 && isEditTable && /* @__PURE__ */ jsx103("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33355
+ error2 && isEditTable && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33245
33356
  ] });
33246
33357
  }
33247
33358
  }
@@ -33249,7 +33360,7 @@ var IntegerField = (props) => {
33249
33360
  };
33250
33361
 
33251
33362
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33252
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
33363
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33253
33364
  var StatusDropdownField = (props) => {
33254
33365
  const {
33255
33366
  buttonRef,
@@ -33261,13 +33372,13 @@ var StatusDropdownField = (props) => {
33261
33372
  handleClick,
33262
33373
  colors: colors2
33263
33374
  } = props;
33264
- return /* @__PURE__ */ jsxs69(
33375
+ return /* @__PURE__ */ jsxs70(
33265
33376
  "div",
33266
33377
  {
33267
33378
  ref: buttonRef,
33268
33379
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
33269
33380
  children: [
33270
- /* @__PURE__ */ jsx104(
33381
+ /* @__PURE__ */ jsx105(
33271
33382
  "button",
33272
33383
  {
33273
33384
  type: "button",
@@ -33275,23 +33386,23 @@ var StatusDropdownField = (props) => {
33275
33386
  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"}`
33276
33387
  }
33277
33388
  ),
33278
- isOpen && /* @__PURE__ */ jsx104("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) => {
33389
+ isOpen && /* @__PURE__ */ jsx105("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) => {
33279
33390
  const isActive = item[0] == state;
33280
- return /* @__PURE__ */ jsxs69(
33391
+ return /* @__PURE__ */ jsxs70(
33281
33392
  "div",
33282
33393
  {
33283
33394
  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" : ""}`,
33284
33395
  onClick: () => handleClick(item[0]),
33285
33396
  children: [
33286
- /* @__PURE__ */ jsx104("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx104(CheckIcon, {}) }),
33287
- /* @__PURE__ */ jsxs69("div", { className: "flex items-center gap-2", children: [
33288
- /* @__PURE__ */ jsx104(
33397
+ /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
33398
+ /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
33399
+ /* @__PURE__ */ jsx105(
33289
33400
  "div",
33290
33401
  {
33291
33402
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33292
33403
  }
33293
33404
  ),
33294
- /* @__PURE__ */ jsx104("span", { className: "text-sm", children: item[1] })
33405
+ /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
33295
33406
  ] })
33296
33407
  ]
33297
33408
  },
@@ -33304,9 +33415,9 @@ var StatusDropdownField = (props) => {
33304
33415
  };
33305
33416
 
33306
33417
  // src/widgets/basic/many2many-field/many2many.tsx
33307
- import { createPortal as createPortal5 } from "react-dom";
33418
+ import { createPortal as createPortal6 } from "react-dom";
33308
33419
  import { useEffect as useEffect26 } from "react";
33309
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33420
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33310
33421
  var Many2ManyField = (props) => {
33311
33422
  const { t: t3 } = useI18n();
33312
33423
  const {
@@ -33379,8 +33490,8 @@ var Many2ManyField = (props) => {
33379
33490
  typeof setGroupByList === "function" && setGroupByList(null);
33380
33491
  };
33381
33492
  }, [selectedTags]);
33382
- return createPortal5(
33383
- /* @__PURE__ */ jsxs70(
33493
+ return createPortal6(
33494
+ /* @__PURE__ */ jsxs71(
33384
33495
  "div",
33385
33496
  {
33386
33497
  style: {
@@ -33388,8 +33499,8 @@ var Many2ManyField = (props) => {
33388
33499
  },
33389
33500
  className: "fixed bottom-0 left-0 right-0 top-0",
33390
33501
  children: [
33391
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33392
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs70(
33502
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33503
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
33393
33504
  "div",
33394
33505
  {
33395
33506
  style: {
@@ -33397,12 +33508,12 @@ var Many2ManyField = (props) => {
33397
33508
  },
33398
33509
  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",
33399
33510
  children: [
33400
- /* @__PURE__ */ jsxs70("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33401
- /* @__PURE__ */ jsx105("div", { className: "text-[20px] font-semibold", children: title }),
33402
- /* @__PURE__ */ jsx105("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx105(CloseIcon, {}) })
33511
+ /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33512
+ /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
33513
+ /* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
33403
33514
  ] }),
33404
- /* @__PURE__ */ jsxs70("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33405
- /* @__PURE__ */ jsx105("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx105(
33515
+ /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33516
+ /* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
33406
33517
  Search,
33407
33518
  {
33408
33519
  removeSearchItems,
@@ -33436,7 +33547,7 @@ var Many2ManyField = (props) => {
33436
33547
  groupByList
33437
33548
  }
33438
33549
  ) }),
33439
- /* @__PURE__ */ jsx105(
33550
+ /* @__PURE__ */ jsx106(
33440
33551
  PaginationView,
33441
33552
  {
33442
33553
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33453,20 +33564,20 @@ var Many2ManyField = (props) => {
33453
33564
  }
33454
33565
  )
33455
33566
  ] }),
33456
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx105("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx105("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx105(
33567
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx106("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx106("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx106(
33457
33568
  "div",
33458
33569
  {
33459
33570
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33460
- children: /* @__PURE__ */ jsx105("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx105("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx105(
33571
+ children: /* @__PURE__ */ jsx106("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx106("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx106(
33461
33572
  "div",
33462
33573
  {
33463
33574
  className: `flex w-full items-center h-full overflow-auto `,
33464
- children: /* @__PURE__ */ jsx105("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs70(
33575
+ children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
33465
33576
  "table",
33466
33577
  {
33467
33578
  className: `relative w-full bg-white custom-dropdown `,
33468
33579
  children: [
33469
- /* @__PURE__ */ jsx105(
33580
+ /* @__PURE__ */ jsx106(
33470
33581
  TableHead,
33471
33582
  {
33472
33583
  columns,
@@ -33476,7 +33587,7 @@ var Many2ManyField = (props) => {
33476
33587
  handleCheckBoxAll
33477
33588
  }
33478
33589
  ),
33479
- rows?.length > 0 ? /* @__PURE__ */ jsx105(
33590
+ rows?.length > 0 ? /* @__PURE__ */ jsx106(
33480
33591
  TableBody,
33481
33592
  {
33482
33593
  tableGroupController,
@@ -33516,16 +33627,16 @@ var Many2ManyField = (props) => {
33516
33627
  checkedAll,
33517
33628
  context
33518
33629
  }
33519
- ) : /* @__PURE__ */ jsx105("tr", { children: /* @__PURE__ */ jsx105(
33630
+ ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
33520
33631
  "td",
33521
33632
  {
33522
33633
  className: "w-full",
33523
33634
  colSpan: columns?.length + 2,
33524
- children: /* @__PURE__ */ jsx105(
33635
+ children: /* @__PURE__ */ jsx106(
33525
33636
  "div",
33526
33637
  {
33527
33638
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33528
- children: /* @__PURE__ */ jsx105(EmptyTable, {})
33639
+ children: /* @__PURE__ */ jsx106(EmptyTable, {})
33529
33640
  }
33530
33641
  )
33531
33642
  }
@@ -33536,9 +33647,9 @@ var Many2ManyField = (props) => {
33536
33647
  }
33537
33648
  ) }) })
33538
33649
  }
33539
- ) }) }) : /* @__PURE__ */ jsx105(LayerLoading, {}),
33540
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2 mt-auto", children: [
33541
- isDisplayCheckbox && /* @__PURE__ */ jsx105(
33650
+ ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33651
+ /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33652
+ isDisplayCheckbox && /* @__PURE__ */ jsx106(
33542
33653
  "button",
33543
33654
  {
33544
33655
  disabled: selectedRowKeys?.length === 0,
@@ -33548,7 +33659,7 @@ var Many2ManyField = (props) => {
33548
33659
  children: t3("choose")
33549
33660
  }
33550
33661
  ),
33551
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx105(
33662
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33552
33663
  "button",
33553
33664
  {
33554
33665
  type: "button",
@@ -33564,7 +33675,7 @@ var Many2ManyField = (props) => {
33564
33675
  children: t3("new")
33565
33676
  }
33566
33677
  ),
33567
- /* @__PURE__ */ jsx105(
33678
+ /* @__PURE__ */ jsx106(
33568
33679
  "button",
33569
33680
  {
33570
33681
  type: "button",
@@ -33586,15 +33697,15 @@ var Many2ManyField = (props) => {
33586
33697
 
33587
33698
  // src/widgets/basic/many2one-field/many2one.tsx
33588
33699
  import React18, { useEffect as useEffect27 } from "react";
33589
- import { Fragment as Fragment31, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33700
+ import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33590
33701
  var CustomMenuList2 = (props) => {
33591
33702
  const { t: t3 } = useI18n();
33592
33703
  const { options: options2, children, selectProps } = props;
33593
33704
  const { setIsShowModalMany2Many, searchable } = selectProps;
33594
33705
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33595
- return /* @__PURE__ */ jsxs71(components.MenuList, { ...props, className: "z-[99]", children: [
33706
+ return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33596
33707
  limitedChildren,
33597
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs71(
33708
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33598
33709
  "button",
33599
33710
  {
33600
33711
  type: "button",
@@ -33637,14 +33748,14 @@ var Many2OneField = (props) => {
33637
33748
  const { t: t3 } = useI18n();
33638
33749
  if (!isForm && !isEditTable) {
33639
33750
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33640
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33751
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33641
33752
  allowShowDetail && renderDetail({
33642
33753
  idToolTip: String(name2) + Number(index4),
33643
33754
  model: options2?.model ?? relation,
33644
33755
  context: contextObject,
33645
33756
  idForm: id
33646
33757
  }),
33647
- /* @__PURE__ */ jsx106(
33758
+ /* @__PURE__ */ jsx107(
33648
33759
  "span",
33649
33760
  {
33650
33761
  className: "cursor-pointer",
@@ -33655,20 +33766,20 @@ var Many2OneField = (props) => {
33655
33766
  )
33656
33767
  ] });
33657
33768
  }
33658
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33769
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33659
33770
  allowShowDetail && renderDetail({
33660
33771
  idToolTip: String(name2),
33661
33772
  model: options2?.model ?? relation,
33662
33773
  context: contextObject,
33663
33774
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33664
33775
  }),
33665
- /* @__PURE__ */ jsx106(
33776
+ /* @__PURE__ */ jsx107(
33666
33777
  "div",
33667
33778
  {
33668
33779
  id: name2,
33669
33780
  "data-tooltip-id": name2,
33670
33781
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33671
- children: /* @__PURE__ */ jsx106(
33782
+ children: /* @__PURE__ */ jsx107(
33672
33783
  Controller,
33673
33784
  {
33674
33785
  name: name2 ?? "",
@@ -33693,8 +33804,8 @@ var Many2OneField = (props) => {
33693
33804
  methods?.clearErrors(name2);
33694
33805
  }
33695
33806
  }, [selectedOption]);
33696
- return /* @__PURE__ */ jsxs71("div", { className: "h-full", children: [
33697
- /* @__PURE__ */ jsx106(
33807
+ return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33808
+ /* @__PURE__ */ jsx107(
33698
33809
  StateManagedSelect$1,
33699
33810
  {
33700
33811
  menuShouldScrollIntoView: false,
@@ -33770,7 +33881,7 @@ var Many2OneField = (props) => {
33770
33881
  })
33771
33882
  },
33772
33883
  components: {
33773
- MenuList: (menuListProps) => /* @__PURE__ */ jsx106(
33884
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33774
33885
  CustomMenuList2,
33775
33886
  {
33776
33887
  ...menuListProps,
@@ -33781,13 +33892,13 @@ var Many2OneField = (props) => {
33781
33892
  }
33782
33893
  ),
33783
33894
  IndicatorSeparator: () => null,
33784
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx106(components.DropdownIndicator, { ...props2 })
33895
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33785
33896
  },
33786
33897
  isDisabled: readonly,
33787
33898
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33788
33899
  }
33789
33900
  ),
33790
- !isEditTable && error2 && /* @__PURE__ */ jsx106("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33901
+ !isEditTable && error2 && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33791
33902
  ] });
33792
33903
  }
33793
33904
  }
@@ -33798,7 +33909,7 @@ var Many2OneField = (props) => {
33798
33909
  };
33799
33910
 
33800
33911
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33801
- import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33912
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33802
33913
  var StatusbarDurationField = (props) => {
33803
33914
  const {
33804
33915
  disabled,
@@ -33808,14 +33919,14 @@ var StatusbarDurationField = (props) => {
33808
33919
  defaultValue,
33809
33920
  setModalStatus
33810
33921
  } = props;
33811
- return /* @__PURE__ */ jsx107(
33922
+ return /* @__PURE__ */ jsx108(
33812
33923
  "div",
33813
33924
  {
33814
33925
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33815
- children: /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[24px]", children: [
33816
- /* @__PURE__ */ jsx107("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33926
+ children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33927
+ /* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33817
33928
  const value = option?.id === defaultValue;
33818
- return /* @__PURE__ */ jsxs72(
33929
+ return /* @__PURE__ */ jsxs73(
33819
33930
  "label",
33820
33931
  {
33821
33932
  onClick: () => !disabled && handleClick(option.id),
@@ -33825,7 +33936,7 @@ var StatusbarDurationField = (props) => {
33825
33936
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33826
33937
  `,
33827
33938
  children: [
33828
- /* @__PURE__ */ jsx107(
33939
+ /* @__PURE__ */ jsx108(
33829
33940
  "input",
33830
33941
  {
33831
33942
  type: "radio",
@@ -33835,7 +33946,7 @@ var StatusbarDurationField = (props) => {
33835
33946
  }
33836
33947
  ),
33837
33948
  option?.name,
33838
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx107(
33949
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33839
33950
  "div",
33840
33951
  {
33841
33952
  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]
@@ -33850,14 +33961,14 @@ var StatusbarDurationField = (props) => {
33850
33961
  }) }),
33851
33962
  dataResponse?.records?.some(
33852
33963
  (item) => item?.fold && item.id !== defaultValue
33853
- ) && /* @__PURE__ */ jsxs72(
33964
+ ) && /* @__PURE__ */ jsxs73(
33854
33965
  "div",
33855
33966
  {
33856
33967
  onClick: () => setModalStatus(!modelStatus),
33857
33968
  className: "w-[24px] h-[24px] cursor-pointer relative",
33858
33969
  children: [
33859
- /* @__PURE__ */ jsx107(MoreIcon, {}),
33860
- modelStatus && /* @__PURE__ */ jsx107(
33970
+ /* @__PURE__ */ jsx108(MoreIcon, {}),
33971
+ modelStatus && /* @__PURE__ */ jsx108(
33861
33972
  "div",
33862
33973
  {
33863
33974
  onClick: (e3) => e3.stopPropagation(),
@@ -33866,7 +33977,7 @@ var StatusbarDurationField = (props) => {
33866
33977
  (item) => item?.fold && item.id !== defaultValue
33867
33978
  )?.map((option) => {
33868
33979
  const value = option?.id === defaultValue;
33869
- return /* @__PURE__ */ jsx107(
33980
+ return /* @__PURE__ */ jsx108(
33870
33981
  "div",
33871
33982
  {
33872
33983
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33888,14 +33999,14 @@ var StatusbarDurationField = (props) => {
33888
33999
 
33889
34000
  // src/widgets/basic/status-bar-field/option/option.tsx
33890
34001
  import { useMemo as useMemo11 } from "react";
33891
- import { Fragment as Fragment32, jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
34002
+ import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33892
34003
  var StatusBarOptionField = (props) => {
33893
34004
  const { selection, defaultValue } = props;
33894
34005
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33895
34006
  const indexInProgress = memoizedStatusOptions?.findIndex(
33896
34007
  (option) => option?.[0] === defaultValue
33897
34008
  );
33898
- return /* @__PURE__ */ jsx108(
34009
+ return /* @__PURE__ */ jsx109(
33899
34010
  "div",
33900
34011
  {
33901
34012
  style: {
@@ -33904,8 +34015,8 @@ var StatusBarOptionField = (props) => {
33904
34015
  flexWrap: "wrap"
33905
34016
  },
33906
34017
  children: memoizedStatusOptions?.map((option, index4) => {
33907
- return /* @__PURE__ */ jsxs73(Fragment32, { children: [
33908
- /* @__PURE__ */ jsxs73(
34018
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
34019
+ /* @__PURE__ */ jsxs74(
33909
34020
  "div",
33910
34021
  {
33911
34022
  style: {
@@ -33923,7 +34034,7 @@ var StatusBarOptionField = (props) => {
33923
34034
  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" : ""
33924
34035
  },
33925
34036
  children: [
33926
- /* @__PURE__ */ jsx108(
34037
+ /* @__PURE__ */ jsx109(
33927
34038
  "span",
33928
34039
  {
33929
34040
  style: {
@@ -33935,10 +34046,10 @@ var StatusBarOptionField = (props) => {
33935
34046
  alignItems: "center",
33936
34047
  borderRadius: "100%"
33937
34048
  },
33938
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx108(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx108(ICCircle, {}) : /* @__PURE__ */ jsx108(ICMinus, {})
34049
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx109(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx109(ICCircle, {}) : /* @__PURE__ */ jsx109(ICMinus, {})
33939
34050
  }
33940
34051
  ),
33941
- /* @__PURE__ */ jsx108(
34052
+ /* @__PURE__ */ jsx109(
33942
34053
  "span",
33943
34054
  {
33944
34055
  style: {
@@ -33951,7 +34062,7 @@ var StatusBarOptionField = (props) => {
33951
34062
  },
33952
34063
  option?.[0]
33953
34064
  ),
33954
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx108(
34065
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33955
34066
  "div",
33956
34067
  {
33957
34068
  style: {
@@ -33967,7 +34078,7 @@ var StatusBarOptionField = (props) => {
33967
34078
  );
33968
34079
  };
33969
34080
  var ICMinus = () => {
33970
- return /* @__PURE__ */ jsx108(
34081
+ return /* @__PURE__ */ jsx109(
33971
34082
  "svg",
33972
34083
  {
33973
34084
  xmlns: "http://www.w3.org/2000/svg",
@@ -33975,7 +34086,7 @@ var ICMinus = () => {
33975
34086
  height: "16",
33976
34087
  viewBox: "0 0 16 16",
33977
34088
  fill: "none",
33978
- children: /* @__PURE__ */ jsx108(
34089
+ children: /* @__PURE__ */ jsx109(
33979
34090
  "path",
33980
34091
  {
33981
34092
  d: "M4 8H12",
@@ -33989,7 +34100,7 @@ var ICMinus = () => {
33989
34100
  );
33990
34101
  };
33991
34102
  var ICCircle = () => {
33992
- return /* @__PURE__ */ jsx108(
34103
+ return /* @__PURE__ */ jsx109(
33993
34104
  "svg",
33994
34105
  {
33995
34106
  xmlns: "http://www.w3.org/2000/svg",
@@ -33997,12 +34108,12 @@ var ICCircle = () => {
33997
34108
  height: "8",
33998
34109
  viewBox: "0 0 8 8",
33999
34110
  fill: "none",
34000
- children: /* @__PURE__ */ jsx108("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
34111
+ children: /* @__PURE__ */ jsx109("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
34001
34112
  }
34002
34113
  );
34003
34114
  };
34004
34115
  var ICCheck = () => {
34005
- return /* @__PURE__ */ jsx108(
34116
+ return /* @__PURE__ */ jsx109(
34006
34117
  "svg",
34007
34118
  {
34008
34119
  xmlns: "http://www.w3.org/2000/svg",
@@ -34010,7 +34121,7 @@ var ICCheck = () => {
34010
34121
  height: "16",
34011
34122
  viewBox: "0 0 16 16",
34012
34123
  fill: "none",
34013
- children: /* @__PURE__ */ jsx108(
34124
+ children: /* @__PURE__ */ jsx109(
34014
34125
  "path",
34015
34126
  {
34016
34127
  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",
@@ -34024,7 +34135,7 @@ var ICCheck = () => {
34024
34135
  };
34025
34136
 
34026
34137
  // src/widgets/basic/date-option-field/date-option.tsx
34027
- import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
34138
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
34028
34139
  var DateOptionField = (props) => {
34029
34140
  const {
34030
34141
  name: name2,
@@ -34035,19 +34146,19 @@ var DateOptionField = (props) => {
34035
34146
  string,
34036
34147
  onChange: onChange2
34037
34148
  } = props;
34038
- return /* @__PURE__ */ jsx109(
34149
+ return /* @__PURE__ */ jsx110(
34039
34150
  Controller,
34040
34151
  {
34041
34152
  name: name2 ?? "",
34042
34153
  control: methods?.control,
34043
- render: ({ field }) => /* @__PURE__ */ jsxs74(
34154
+ render: ({ field }) => /* @__PURE__ */ jsxs75(
34044
34155
  "label",
34045
34156
  {
34046
34157
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34047
34158
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34048
34159
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34049
34160
  children: [
34050
- /* @__PURE__ */ jsx109(
34161
+ /* @__PURE__ */ jsx110(
34051
34162
  "input",
34052
34163
  {
34053
34164
  type: "checkbox",
@@ -34120,6 +34231,7 @@ export {
34120
34231
  HtmlField,
34121
34232
  I18nProvider,
34122
34233
  ImageField,
34234
+ ImageIcon,
34123
34235
  InfomationField,
34124
34236
  IntegerField,
34125
34237
  KanbanIcon,