@fctc/sme-widget-ui 1.9.0 → 1.9.2

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,7 @@ 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 { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
13056
13108
  var TableHead = (props) => {
13057
13109
  const {
13058
13110
  handleCheckBoxAll,
@@ -13062,7 +13114,7 @@ var TableHead = (props) => {
13062
13114
  onRemoveRow,
13063
13115
  onToggleColumnOptional
13064
13116
  } = props;
13065
- return /* @__PURE__ */ jsx46("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs25(
13117
+ return /* @__PURE__ */ jsx47("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs26(
13066
13118
  "tr",
13067
13119
  {
13068
13120
  style: {
@@ -13074,11 +13126,11 @@ var TableHead = (props) => {
13074
13126
  },
13075
13127
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
13076
13128
  children: [
13077
- isDisplayCheckbox && /* @__PURE__ */ jsx46(
13129
+ isDisplayCheckbox && /* @__PURE__ */ jsx47(
13078
13130
  "th",
13079
13131
  {
13080
13132
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
13081
- children: /* @__PURE__ */ jsx46(
13133
+ children: /* @__PURE__ */ jsx47(
13082
13134
  "input",
13083
13135
  {
13084
13136
  type: "checkbox",
@@ -13090,14 +13142,14 @@ var TableHead = (props) => {
13090
13142
  }
13091
13143
  ),
13092
13144
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
13093
- return /* @__PURE__ */ jsx46(
13145
+ return /* @__PURE__ */ jsx47(
13094
13146
  "th",
13095
13147
  {
13096
13148
  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: [
13149
+ children: /* @__PURE__ */ jsxs26("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
13098
13150
  col.title,
13099
- col?.field?.help && /* @__PURE__ */ jsxs25(Fragment4, { children: [
13100
- /* @__PURE__ */ jsx46(
13151
+ col?.field?.help && /* @__PURE__ */ jsxs26(Fragment4, { children: [
13152
+ /* @__PURE__ */ jsx47(
13101
13153
  M,
13102
13154
  {
13103
13155
  style: {
@@ -13115,7 +13167,7 @@ var TableHead = (props) => {
13115
13167
  className: "z-30"
13116
13168
  }
13117
13169
  ),
13118
- /* @__PURE__ */ jsx46(
13170
+ /* @__PURE__ */ jsx47(
13119
13171
  "span",
13120
13172
  {
13121
13173
  style: {
@@ -13134,8 +13186,8 @@ var TableHead = (props) => {
13134
13186
  "table-head-" + index4
13135
13187
  );
13136
13188
  }),
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(
13189
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx47("th", { className: "relative p-2 w-[35px]" }),
13190
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
13139
13191
  "th",
13140
13192
  {
13141
13193
  style: {
@@ -13143,7 +13195,7 @@ var TableHead = (props) => {
13143
13195
  right: 0
13144
13196
  },
13145
13197
  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(
13198
+ children: /* @__PURE__ */ jsx47(
13147
13199
  TableFilter,
13148
13200
  {
13149
13201
  columns,
@@ -13158,9 +13210,9 @@ var TableHead = (props) => {
13158
13210
  };
13159
13211
 
13160
13212
  // src/icons/empty-table-icon.tsx
13161
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
13213
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
13162
13214
  var IcEmptyTable = () => {
13163
- return /* @__PURE__ */ jsxs26(
13215
+ return /* @__PURE__ */ jsxs27(
13164
13216
  "svg",
13165
13217
  {
13166
13218
  xmlns: "http://www.w3.org/2000/svg",
@@ -13169,9 +13221,9 @@ var IcEmptyTable = () => {
13169
13221
  viewBox: "0 0 216 140",
13170
13222
  fill: "none",
13171
13223
  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(
13224
+ /* @__PURE__ */ jsxs27("g", { clipPath: "url(#clip0_2454_28950)", children: [
13225
+ /* @__PURE__ */ jsx48("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13226
+ /* @__PURE__ */ jsx48(
13175
13227
  "path",
13176
13228
  {
13177
13229
  d: "M64.5 0V140",
@@ -13181,7 +13233,7 @@ var IcEmptyTable = () => {
13181
13233
  strokeDasharray: "3 3"
13182
13234
  }
13183
13235
  ),
13184
- /* @__PURE__ */ jsx47(
13236
+ /* @__PURE__ */ jsx48(
13185
13237
  "path",
13186
13238
  {
13187
13239
  d: "M151.5 0V140",
@@ -13191,7 +13243,7 @@ var IcEmptyTable = () => {
13191
13243
  strokeDasharray: "3 3"
13192
13244
  }
13193
13245
  ),
13194
- /* @__PURE__ */ jsx47(
13246
+ /* @__PURE__ */ jsx48(
13195
13247
  "path",
13196
13248
  {
13197
13249
  d: "M215.5 24H0.5",
@@ -13201,7 +13253,7 @@ var IcEmptyTable = () => {
13201
13253
  strokeDasharray: "3 3"
13202
13254
  }
13203
13255
  ),
13204
- /* @__PURE__ */ jsx47(
13256
+ /* @__PURE__ */ jsx48(
13205
13257
  "path",
13206
13258
  {
13207
13259
  d: "M215.5 50H0.5",
@@ -13211,7 +13263,7 @@ var IcEmptyTable = () => {
13211
13263
  strokeDasharray: "3 3"
13212
13264
  }
13213
13265
  ),
13214
- /* @__PURE__ */ jsx47(
13266
+ /* @__PURE__ */ jsx48(
13215
13267
  "path",
13216
13268
  {
13217
13269
  d: "M215.5 88H0.5",
@@ -13221,7 +13273,7 @@ var IcEmptyTable = () => {
13221
13273
  strokeDasharray: "3 3"
13222
13274
  }
13223
13275
  ),
13224
- /* @__PURE__ */ jsx47(
13276
+ /* @__PURE__ */ jsx48(
13225
13277
  "path",
13226
13278
  {
13227
13279
  d: "M215.5 114H0.5",
@@ -13231,7 +13283,7 @@ var IcEmptyTable = () => {
13231
13283
  strokeDasharray: "3 3"
13232
13284
  }
13233
13285
  ),
13234
- /* @__PURE__ */ jsx47(
13286
+ /* @__PURE__ */ jsx48(
13235
13287
  "path",
13236
13288
  {
13237
13289
  d: "M199.5 0V140",
@@ -13240,7 +13292,7 @@ var IcEmptyTable = () => {
13240
13292
  strokeMiterlimit: "10"
13241
13293
  }
13242
13294
  ),
13243
- /* @__PURE__ */ jsx47(
13295
+ /* @__PURE__ */ jsx48(
13244
13296
  "path",
13245
13297
  {
13246
13298
  d: "M16.5 0V140",
@@ -13249,7 +13301,7 @@ var IcEmptyTable = () => {
13249
13301
  strokeMiterlimit: "10"
13250
13302
  }
13251
13303
  ),
13252
- /* @__PURE__ */ jsx47(
13304
+ /* @__PURE__ */ jsx48(
13253
13305
  "path",
13254
13306
  {
13255
13307
  d: "M0.5 16H215.5",
@@ -13258,7 +13310,7 @@ var IcEmptyTable = () => {
13258
13310
  strokeMiterlimit: "10"
13259
13311
  }
13260
13312
  ),
13261
- /* @__PURE__ */ jsx47(
13313
+ /* @__PURE__ */ jsx48(
13262
13314
  "path",
13263
13315
  {
13264
13316
  d: "M0.5 124H215.5",
@@ -13267,7 +13319,7 @@ var IcEmptyTable = () => {
13267
13319
  strokeMiterlimit: "10"
13268
13320
  }
13269
13321
  ),
13270
- /* @__PURE__ */ jsx47(
13322
+ /* @__PURE__ */ jsx48(
13271
13323
  "path",
13272
13324
  {
13273
13325
  opacity: "0.6",
@@ -13278,7 +13330,7 @@ var IcEmptyTable = () => {
13278
13330
  strokeLinejoin: "round"
13279
13331
  }
13280
13332
  ),
13281
- /* @__PURE__ */ jsx47(
13333
+ /* @__PURE__ */ jsx48(
13282
13334
  "path",
13283
13335
  {
13284
13336
  opacity: "0.6",
@@ -13289,7 +13341,7 @@ var IcEmptyTable = () => {
13289
13341
  strokeLinejoin: "round"
13290
13342
  }
13291
13343
  ),
13292
- /* @__PURE__ */ jsx47(
13344
+ /* @__PURE__ */ jsx48(
13293
13345
  "path",
13294
13346
  {
13295
13347
  opacity: "0.6",
@@ -13300,7 +13352,7 @@ var IcEmptyTable = () => {
13300
13352
  strokeLinejoin: "round"
13301
13353
  }
13302
13354
  ),
13303
- /* @__PURE__ */ jsx47(
13355
+ /* @__PURE__ */ jsx48(
13304
13356
  "path",
13305
13357
  {
13306
13358
  opacity: "0.6",
@@ -13311,7 +13363,7 @@ var IcEmptyTable = () => {
13311
13363
  strokeLinejoin: "round"
13312
13364
  }
13313
13365
  ),
13314
- /* @__PURE__ */ jsx47(
13366
+ /* @__PURE__ */ jsx48(
13315
13367
  "path",
13316
13368
  {
13317
13369
  opacity: "0.6",
@@ -13322,14 +13374,14 @@ var IcEmptyTable = () => {
13322
13374
  strokeLinejoin: "round"
13323
13375
  }
13324
13376
  ),
13325
- /* @__PURE__ */ jsx47(
13377
+ /* @__PURE__ */ jsx48(
13326
13378
  "path",
13327
13379
  {
13328
13380
  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
13381
  fill: "white"
13330
13382
  }
13331
13383
  ),
13332
- /* @__PURE__ */ jsx47(
13384
+ /* @__PURE__ */ jsx48(
13333
13385
  "path",
13334
13386
  {
13335
13387
  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 +13391,7 @@ var IcEmptyTable = () => {
13339
13391
  strokeLinejoin: "round"
13340
13392
  }
13341
13393
  ),
13342
- /* @__PURE__ */ jsx47(
13394
+ /* @__PURE__ */ jsx48(
13343
13395
  "path",
13344
13396
  {
13345
13397
  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 +13400,7 @@ var IcEmptyTable = () => {
13348
13400
  strokeLinejoin: "round"
13349
13401
  }
13350
13402
  ),
13351
- /* @__PURE__ */ jsx47(
13403
+ /* @__PURE__ */ jsx48(
13352
13404
  "path",
13353
13405
  {
13354
13406
  opacity: "0.6",
@@ -13359,7 +13411,7 @@ var IcEmptyTable = () => {
13359
13411
  strokeLinejoin: "round"
13360
13412
  }
13361
13413
  ),
13362
- /* @__PURE__ */ jsx47(
13414
+ /* @__PURE__ */ jsx48(
13363
13415
  "path",
13364
13416
  {
13365
13417
  opacity: "0.6",
@@ -13370,7 +13422,7 @@ var IcEmptyTable = () => {
13370
13422
  strokeLinejoin: "round"
13371
13423
  }
13372
13424
  ),
13373
- /* @__PURE__ */ jsx47(
13425
+ /* @__PURE__ */ jsx48(
13374
13426
  "path",
13375
13427
  {
13376
13428
  opacity: "0.6",
@@ -13381,7 +13433,7 @@ var IcEmptyTable = () => {
13381
13433
  strokeLinejoin: "round"
13382
13434
  }
13383
13435
  ),
13384
- /* @__PURE__ */ jsx47(
13436
+ /* @__PURE__ */ jsx48(
13385
13437
  "path",
13386
13438
  {
13387
13439
  opacity: "0.6",
@@ -13392,7 +13444,7 @@ var IcEmptyTable = () => {
13392
13444
  strokeLinejoin: "round"
13393
13445
  }
13394
13446
  ),
13395
- /* @__PURE__ */ jsx47(
13447
+ /* @__PURE__ */ jsx48(
13396
13448
  "path",
13397
13449
  {
13398
13450
  opacity: "0.6",
@@ -13403,7 +13455,7 @@ var IcEmptyTable = () => {
13403
13455
  strokeLinejoin: "round"
13404
13456
  }
13405
13457
  ),
13406
- /* @__PURE__ */ jsx47(
13458
+ /* @__PURE__ */ jsx48(
13407
13459
  "path",
13408
13460
  {
13409
13461
  opacity: "0.6",
@@ -13414,7 +13466,7 @@ var IcEmptyTable = () => {
13414
13466
  strokeLinejoin: "round"
13415
13467
  }
13416
13468
  ),
13417
- /* @__PURE__ */ jsx47(
13469
+ /* @__PURE__ */ jsx48(
13418
13470
  "path",
13419
13471
  {
13420
13472
  opacity: "0.6",
@@ -13425,7 +13477,7 @@ var IcEmptyTable = () => {
13425
13477
  strokeLinejoin: "round"
13426
13478
  }
13427
13479
  ),
13428
- /* @__PURE__ */ jsx47(
13480
+ /* @__PURE__ */ jsx48(
13429
13481
  "path",
13430
13482
  {
13431
13483
  opacity: "0.6",
@@ -13436,7 +13488,7 @@ var IcEmptyTable = () => {
13436
13488
  strokeLinejoin: "round"
13437
13489
  }
13438
13490
  ),
13439
- /* @__PURE__ */ jsx47(
13491
+ /* @__PURE__ */ jsx48(
13440
13492
  "path",
13441
13493
  {
13442
13494
  opacity: "0.6",
@@ -13447,14 +13499,14 @@ var IcEmptyTable = () => {
13447
13499
  strokeLinejoin: "round"
13448
13500
  }
13449
13501
  ),
13450
- /* @__PURE__ */ jsx47(
13502
+ /* @__PURE__ */ jsx48(
13451
13503
  "path",
13452
13504
  {
13453
13505
  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
13506
  fill: "white"
13455
13507
  }
13456
13508
  ),
13457
- /* @__PURE__ */ jsx47(
13509
+ /* @__PURE__ */ jsx48(
13458
13510
  "path",
13459
13511
  {
13460
13512
  "fill-rule": "evenodd",
@@ -13463,7 +13515,7 @@ var IcEmptyTable = () => {
13463
13515
  fill: "white"
13464
13516
  }
13465
13517
  ),
13466
- /* @__PURE__ */ jsx47(
13518
+ /* @__PURE__ */ jsx48(
13467
13519
  "path",
13468
13520
  {
13469
13521
  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 +13526,7 @@ var IcEmptyTable = () => {
13474
13526
  }
13475
13527
  )
13476
13528
  ] }),
13477
- /* @__PURE__ */ jsx47("defs", { children: /* @__PURE__ */ jsx47("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx47(
13529
+ /* @__PURE__ */ jsx48("defs", { children: /* @__PURE__ */ jsx48("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx48(
13478
13530
  "rect",
13479
13531
  {
13480
13532
  width: "215",
@@ -13489,14 +13541,14 @@ var IcEmptyTable = () => {
13489
13541
  };
13490
13542
 
13491
13543
  // src/widgets/advanced/table/empty-table.tsx
13492
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
13544
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
13493
13545
  var EmptyTable = () => {
13494
13546
  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") })
13547
+ return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13548
+ /* @__PURE__ */ jsx49(IcEmptyTable, {}),
13549
+ /* @__PURE__ */ jsxs28("div", { children: [
13550
+ /* @__PURE__ */ jsx49("p", {}),
13551
+ /* @__PURE__ */ jsx49("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13500
13552
  ] })
13501
13553
  ] });
13502
13554
  };
@@ -15315,10 +15367,10 @@ function s3(o3, s4, t3) {
15315
15367
 
15316
15368
  // src/widgets/advanced/login/shared/button.tsx
15317
15369
  import * as React2 from "react";
15318
- import { jsx as jsx49 } from "react/jsx-runtime";
15370
+ import { jsx as jsx50 } from "react/jsx-runtime";
15319
15371
  var Button = React2.forwardRef(
15320
15372
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
15321
- return /* @__PURE__ */ jsx49(
15373
+ return /* @__PURE__ */ jsx50(
15322
15374
  "button",
15323
15375
  {
15324
15376
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -15328,7 +15380,7 @@ var Button = React2.forwardRef(
15328
15380
  ref,
15329
15381
  type,
15330
15382
  ...props,
15331
- children: isLoading ? /* @__PURE__ */ jsx49(LoadingIcon, { width: 20, height: 20 }) : children
15383
+ children: isLoading ? /* @__PURE__ */ jsx50(LoadingIcon, { width: 20, height: 20 }) : children
15332
15384
  }
15333
15385
  );
15334
15386
  }
@@ -15337,7 +15389,7 @@ Button.displayName = "Button";
15337
15389
 
15338
15390
  // src/widgets/advanced/login/shared/text-input.tsx
15339
15391
  import { useState as useState5 } from "react";
15340
- import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
15392
+ import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
15341
15393
  function TextInput(props) {
15342
15394
  const {
15343
15395
  className,
@@ -15351,17 +15403,17 @@ function TextInput(props) {
15351
15403
  required
15352
15404
  } = props;
15353
15405
  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: [
15406
+ return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15407
+ label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15356
15408
  label,
15357
- required ? /* @__PURE__ */ jsx50("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15409
+ required ? /* @__PURE__ */ jsx51("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15358
15410
  ] }),
15359
- /* @__PURE__ */ jsxs28(
15411
+ /* @__PURE__ */ jsxs29(
15360
15412
  "div",
15361
15413
  {
15362
15414
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
15363
15415
  children: [
15364
- /* @__PURE__ */ jsx50(
15416
+ /* @__PURE__ */ jsx51(
15365
15417
  "input",
15366
15418
  {
15367
15419
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -15370,18 +15422,18 @@ function TextInput(props) {
15370
15422
  ...register(name2)
15371
15423
  }
15372
15424
  ),
15373
- type === "password" && /* @__PURE__ */ jsx50(
15425
+ type === "password" && /* @__PURE__ */ jsx51(
15374
15426
  "span",
15375
15427
  {
15376
15428
  onClick: () => setShowPassword(!showPassword),
15377
15429
  className: "focus:outline-none",
15378
- children: showPassword ? /* @__PURE__ */ jsx50(EyeClosedIcon, {}) : /* @__PURE__ */ jsx50(EyeIcon, {})
15430
+ children: showPassword ? /* @__PURE__ */ jsx51(EyeClosedIcon, {}) : /* @__PURE__ */ jsx51(EyeIcon, {})
15379
15431
  }
15380
15432
  )
15381
15433
  ]
15382
15434
  }
15383
15435
  ),
15384
- errors?.[name2]?.message && /* @__PURE__ */ jsx50(
15436
+ errors?.[name2]?.message && /* @__PURE__ */ jsx51(
15385
15437
  "p",
15386
15438
  {
15387
15439
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -15393,7 +15445,7 @@ function TextInput(props) {
15393
15445
 
15394
15446
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
15395
15447
  import { useEffect as useEffect7 } from "react";
15396
- import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
15448
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
15397
15449
  var STAY_LOGIN_IN = "stayLoginIn";
15398
15450
  function FormOptions({
15399
15451
  forgotPasswordUrl,
@@ -15419,9 +15471,9 @@ function FormOptions({
15419
15471
  useEffect7(() => {
15420
15472
  localStorage.setItem(STAY_LOGIN_IN, "false");
15421
15473
  }, []);
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(
15474
+ return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15475
+ /* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
15476
+ /* @__PURE__ */ jsx52(
15425
15477
  "input",
15426
15478
  {
15427
15479
  checked: stayLoginIn,
@@ -15430,14 +15482,14 @@ function FormOptions({
15430
15482
  onChange: handleCheckboxChange
15431
15483
  }
15432
15484
  ),
15433
- /* @__PURE__ */ jsx51("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15485
+ /* @__PURE__ */ jsx52("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15434
15486
  ] }),
15435
- !hideForgotPassword && /* @__PURE__ */ jsx51("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15487
+ !hideForgotPassword && /* @__PURE__ */ jsx52("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15436
15488
  ] });
15437
15489
  }
15438
15490
 
15439
15491
  // src/widgets/advanced/login/provider/credential/index.tsx
15440
- import { Fragment as Fragment5, jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
15492
+ import { Fragment as Fragment5, jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15441
15493
  var CredentialLogin = (props) => {
15442
15494
  const {
15443
15495
  shouldRenderDivider,
@@ -15457,16 +15509,16 @@ var CredentialLogin = (props) => {
15457
15509
  mode: "onChange",
15458
15510
  resolver: s3(loginSchema)
15459
15511
  });
15460
- return /* @__PURE__ */ jsxs30(Fragment5, { children: [
15461
- /* @__PURE__ */ jsxs30(
15512
+ return /* @__PURE__ */ jsxs31(Fragment5, { children: [
15513
+ /* @__PURE__ */ jsxs31(
15462
15514
  "form",
15463
15515
  {
15464
15516
  onSubmit: handleSubmit(onSubmit ?? (() => {
15465
15517
  })),
15466
15518
  className: `flex w-full h-fit flex-col gap-10`,
15467
15519
  children: [
15468
- /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-6", children: [
15469
- /* @__PURE__ */ jsx52(
15520
+ /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
15521
+ /* @__PURE__ */ jsx53(
15470
15522
  TextInput,
15471
15523
  {
15472
15524
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15479,7 +15531,7 @@ var CredentialLogin = (props) => {
15479
15531
  errors
15480
15532
  }
15481
15533
  ),
15482
- /* @__PURE__ */ jsx52(
15534
+ /* @__PURE__ */ jsx53(
15483
15535
  TextInput,
15484
15536
  {
15485
15537
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15492,7 +15544,7 @@ var CredentialLogin = (props) => {
15492
15544
  errors
15493
15545
  }
15494
15546
  ),
15495
- /* @__PURE__ */ jsx52(
15547
+ /* @__PURE__ */ jsx53(
15496
15548
  FormOptions,
15497
15549
  {
15498
15550
  forgotPasswordUrl,
@@ -15502,7 +15554,7 @@ var CredentialLogin = (props) => {
15502
15554
  }
15503
15555
  )
15504
15556
  ] }),
15505
- /* @__PURE__ */ jsx52("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx52(
15557
+ /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx53(
15506
15558
  Button,
15507
15559
  {
15508
15560
  type: "submit",
@@ -15514,56 +15566,56 @@ var CredentialLogin = (props) => {
15514
15566
  ]
15515
15567
  }
15516
15568
  ),
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" })
15569
+ shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
15570
+ /* @__PURE__ */ jsx53("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15571
+ /* @__PURE__ */ jsx53("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15520
15572
  ] })
15521
15573
  ] });
15522
15574
  };
15523
15575
 
15524
15576
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15525
- import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15577
+ import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
15526
15578
  function GoogleButton(props) {
15527
15579
  const { onLoginGoogle, db } = props;
15528
- return /* @__PURE__ */ jsxs31(
15580
+ return /* @__PURE__ */ jsxs32(
15529
15581
  "button",
15530
15582
  {
15531
15583
  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
15584
  onClick: () => onLoginGoogle?.(db),
15533
15585
  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" })
15586
+ /* @__PURE__ */ jsx54(GoogleIcon, { className: "google-icon" }),
15587
+ /* @__PURE__ */ jsx54("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15536
15588
  ]
15537
15589
  }
15538
15590
  );
15539
15591
  }
15540
15592
 
15541
15593
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15542
- import { Fragment as Fragment6, jsx as jsx54 } from "react/jsx-runtime";
15594
+ import { Fragment as Fragment6, jsx as jsx55 } from "react/jsx-runtime";
15543
15595
  function SocialRedirect(props) {
15544
15596
  const { db, onLoginSocial } = props;
15545
15597
  onLoginSocial && onLoginSocial(String(db));
15546
- return /* @__PURE__ */ jsx54(Fragment6, {});
15598
+ return /* @__PURE__ */ jsx55(Fragment6, {});
15547
15599
  }
15548
15600
 
15549
15601
  // src/widgets/advanced/login/provider/google/index.tsx
15550
- import { Fragment as Fragment7, jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
15602
+ import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15551
15603
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15552
- return /* @__PURE__ */ jsxs32(Fragment7, { children: [
15553
- /* @__PURE__ */ jsx55(GoogleButton, { db, onLoginGoogle }),
15554
- /* @__PURE__ */ jsx55(SocialRedirect, { db, onLoginSocial })
15604
+ return /* @__PURE__ */ jsxs33(Fragment7, { children: [
15605
+ /* @__PURE__ */ jsx56(GoogleButton, { db, onLoginGoogle }),
15606
+ /* @__PURE__ */ jsx56(SocialRedirect, { db, onLoginSocial })
15555
15607
  ] });
15556
15608
  };
15557
15609
 
15558
15610
  // src/widgets/advanced/login/index.tsx
15559
- import { jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15611
+ import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15560
15612
  var LoginProviderMapping = {
15561
15613
  google: GoogleLogin
15562
15614
  };
15563
15615
  var Login = (props) => {
15564
15616
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15565
- return /* @__PURE__ */ jsxs33("div", { className: "w-full space-y-8", children: [
15566
- /* @__PURE__ */ jsx56(
15617
+ return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
15618
+ /* @__PURE__ */ jsx57(
15567
15619
  CredentialLogin,
15568
15620
  {
15569
15621
  ...props,
@@ -15573,7 +15625,7 @@ var Login = (props) => {
15573
15625
  ),
15574
15626
  providers.map((provider, index4) => {
15575
15627
  const ProviderComp = LoginProviderMapping[provider];
15576
- return /* @__PURE__ */ jsx56(
15628
+ return /* @__PURE__ */ jsx57(
15577
15629
  ProviderComp,
15578
15630
  {
15579
15631
  db,
@@ -15587,7 +15639,7 @@ var Login = (props) => {
15587
15639
  };
15588
15640
 
15589
15641
  // src/widgets/advanced/search/popup-filter/index.tsx
15590
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15642
+ import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15591
15643
  var PopupFilter = ({
15592
15644
  handleAddTagSearch,
15593
15645
  removeSearchItems,
@@ -15598,7 +15650,7 @@ var PopupFilter = ({
15598
15650
  fields
15599
15651
  }) => {
15600
15652
  const { t: t3 } = useI18n();
15601
- return /* @__PURE__ */ jsx57(
15653
+ return /* @__PURE__ */ jsx58(
15602
15654
  "div",
15603
15655
  {
15604
15656
  style: {
@@ -15608,25 +15660,25 @@ var PopupFilter = ({
15608
15660
  zIndex: 33
15609
15661
  },
15610
15662
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15611
- children: /* @__PURE__ */ jsxs34(
15663
+ children: /* @__PURE__ */ jsxs35(
15612
15664
  "div",
15613
15665
  {
15614
15666
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15615
15667
  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") })
15668
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
15669
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15670
+ /* @__PURE__ */ jsx58(FilterIcon, { className: "filter-by-icon text-primary" }),
15671
+ /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15620
15672
  ] }),
15621
15673
  filterBy?.reduce((acc, item, index4, array) => {
15622
15674
  const prevItem = array[index4 - 1];
15623
15675
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15624
15676
  const isExist = item?.active;
15625
15677
  if (isDifferentGroup) {
15626
- acc.push(/* @__PURE__ */ jsx57("hr", { className: "my-2" }, "separator-" + index4));
15678
+ acc.push(/* @__PURE__ */ jsx58("hr", { className: "my-2" }, "separator-" + index4));
15627
15679
  }
15628
15680
  acc.push(
15629
- /* @__PURE__ */ jsxs34(
15681
+ /* @__PURE__ */ jsxs35(
15630
15682
  "button",
15631
15683
  {
15632
15684
  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 +15703,8 @@ var PopupFilter = ({
15651
15703
  });
15652
15704
  },
15653
15705
  children: [
15654
- isExist && /* @__PURE__ */ jsx57(CheckIcon, {}),
15655
- /* @__PURE__ */ jsx57("span", { className: "text-sm", children: item?.string ?? item?.help })
15706
+ isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15707
+ /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string ?? item?.help })
15656
15708
  ]
15657
15709
  },
15658
15710
  "filter-" + index4
@@ -15661,16 +15713,16 @@ var PopupFilter = ({
15661
15713
  return acc;
15662
15714
  }, [])
15663
15715
  ] }),
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") })
15716
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx58("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15717
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
15718
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15719
+ /* @__PURE__ */ jsx58(GroupByIcon, { className: "group-by-icon text-primary" }),
15720
+ /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15669
15721
  ] }),
15670
15722
  groupBy?.map((item, index4) => {
15671
15723
  const isExist = item?.active;
15672
15724
  if (!item.string) return;
15673
- return /* @__PURE__ */ jsxs34(
15725
+ return /* @__PURE__ */ jsxs35(
15674
15726
  "button",
15675
15727
  {
15676
15728
  onClick: () => {
@@ -15694,8 +15746,8 @@ var PopupFilter = ({
15694
15746
  },
15695
15747
  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
15748
  children: [
15697
- isExist && /* @__PURE__ */ jsx57(CheckIcon, {}),
15698
- /* @__PURE__ */ jsx57("span", { className: "text-sm", children: item?.string })
15749
+ isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15750
+ /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string })
15699
15751
  ]
15700
15752
  },
15701
15753
  "groupby-" + index4 + 1
@@ -15714,7 +15766,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15714
15766
 
15715
15767
  // src/widgets/advanced/search/tag-search/index.tsx
15716
15768
  import { Fragment as Fragment8 } from "react";
15717
- import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15769
+ import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15718
15770
  var TagSearch = ({
15719
15771
  removeSearchItems,
15720
15772
  selectedTags,
@@ -15725,23 +15777,23 @@ var TagSearch = ({
15725
15777
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15726
15778
  if (tag?.values?.length > 0) {
15727
15779
  if (tag?.type !== "group_by") {
15728
- return /* @__PURE__ */ jsxs35(
15780
+ return /* @__PURE__ */ jsxs36(
15729
15781
  "div",
15730
15782
  {
15731
15783
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15732
15784
  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: [
15785
+ /* @__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, {}) }),
15786
+ /* @__PURE__ */ jsx59("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15787
+ return /* @__PURE__ */ jsxs36(Fragment8, { children: [
15788
+ /* @__PURE__ */ jsx59("span", { children: value }),
15789
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15738
15790
  " ",
15739
15791
  instance.t("or"),
15740
15792
  " "
15741
15793
  ] })
15742
15794
  ] }, idx);
15743
15795
  }) }),
15744
- /* @__PURE__ */ jsx58(
15796
+ /* @__PURE__ */ jsx59(
15745
15797
  "button",
15746
15798
  {
15747
15799
  className: "px-2 text-sm font-bold",
@@ -15758,7 +15810,7 @@ var TagSearch = ({
15758
15810
  );
15759
15811
  }
15760
15812
  },
15761
- children: /* @__PURE__ */ jsx58(CloseIcon, { className: "size-4 cursor-pointer" })
15813
+ children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15762
15814
  }
15763
15815
  )
15764
15816
  ]
@@ -15766,26 +15818,26 @@ var TagSearch = ({
15766
15818
  "selected-tag-" + index4
15767
15819
  );
15768
15820
  } else if (tag?.type === "group_by") {
15769
- return /* @__PURE__ */ jsx58(
15821
+ return /* @__PURE__ */ jsx59(
15770
15822
  "div",
15771
15823
  {
15772
15824
  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(
15825
+ 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(
15826
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
15775
15827
  "div",
15776
15828
  {
15777
15829
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15778
15830
  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: [
15831
+ /* @__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, {}) }),
15832
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment9, { children: [
15833
+ /* @__PURE__ */ jsx59("span", { children: string }),
15834
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15783
15835
  " ",
15784
15836
  "> ",
15785
15837
  " "
15786
15838
  ] })
15787
15839
  ] })),
15788
- /* @__PURE__ */ jsx58(
15840
+ /* @__PURE__ */ jsx59(
15789
15841
  "button",
15790
15842
  {
15791
15843
  className: "pr-2 text-sm font-bold",
@@ -15800,7 +15852,7 @@ var TagSearch = ({
15800
15852
  );
15801
15853
  }
15802
15854
  },
15803
- children: /* @__PURE__ */ jsx58(CloseIcon, { className: "size-4 cursor-pointer" })
15855
+ children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15804
15856
  }
15805
15857
  )
15806
15858
  ]
@@ -15817,7 +15869,7 @@ var TagSearch = ({
15817
15869
  };
15818
15870
 
15819
15871
  // src/widgets/advanced/search/search-list/index.tsx
15820
- import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15872
+ import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15821
15873
  var SearchList = ({
15822
15874
  handleAddTagSearch,
15823
15875
  handleMouseEnter,
@@ -15827,7 +15879,7 @@ var SearchList = ({
15827
15879
  hoveredIndexSearchList
15828
15880
  }) => {
15829
15881
  const { t: t3 } = useI18n();
15830
- return /* @__PURE__ */ jsx59(
15882
+ return /* @__PURE__ */ jsx60(
15831
15883
  "div",
15832
15884
  {
15833
15885
  style: {
@@ -15839,7 +15891,7 @@ var SearchList = ({
15839
15891
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15840
15892
  return;
15841
15893
  }
15842
- return /* @__PURE__ */ jsxs36(
15894
+ return /* @__PURE__ */ jsxs37(
15843
15895
  "button",
15844
15896
  {
15845
15897
  onClick: () => {
@@ -15861,12 +15913,12 @@ var SearchList = ({
15861
15913
  children: [
15862
15914
  t3("search"),
15863
15915
  " ",
15864
- /* @__PURE__ */ jsx59("span", { className: "font-bold", children: searchItem?.title }),
15916
+ /* @__PURE__ */ jsx60("span", { className: "font-bold", children: searchItem?.title }),
15865
15917
  " ",
15866
15918
  t3("for"),
15867
15919
  ":",
15868
15920
  " ",
15869
- /* @__PURE__ */ jsx59(
15921
+ /* @__PURE__ */ jsx60(
15870
15922
  "span",
15871
15923
  {
15872
15924
  style: {
@@ -15886,7 +15938,7 @@ var SearchList = ({
15886
15938
  };
15887
15939
 
15888
15940
  // src/widgets/advanced/search/search-item/index.tsx
15889
- import { Fragment as Fragment10, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15941
+ import { Fragment as Fragment10, jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15890
15942
  var Search = ({
15891
15943
  removeSearchItems,
15892
15944
  selectedTags,
@@ -16003,15 +16055,15 @@ var Search = ({
16003
16055
  setDidInit(true);
16004
16056
  setIsReadyFormatDomain(true);
16005
16057
  }, [aid, filterBy, fieldsList]);
16006
- return /* @__PURE__ */ jsxs37(
16058
+ return /* @__PURE__ */ jsxs38(
16007
16059
  "div",
16008
16060
  {
16009
16061
  ref: popupFilterRef,
16010
16062
  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
16063
  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(
16064
+ /* @__PURE__ */ jsx61("div", { className: "size-5", children: /* @__PURE__ */ jsx61(SearchIcon, {}) }),
16065
+ /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
16066
+ /* @__PURE__ */ jsx61(
16015
16067
  TagSearch,
16016
16068
  {
16017
16069
  removeSearchItems,
@@ -16021,7 +16073,7 @@ var Search = ({
16021
16073
  setGroupBy
16022
16074
  }
16023
16075
  ),
16024
- /* @__PURE__ */ jsx60(
16076
+ /* @__PURE__ */ jsx61(
16025
16077
  "input",
16026
16078
  {
16027
16079
  value: searchString,
@@ -16034,7 +16086,7 @@ var Search = ({
16034
16086
  onKeyUp: (e3) => e3.preventDefault()
16035
16087
  }
16036
16088
  ),
16037
- /* @__PURE__ */ jsx60(
16089
+ /* @__PURE__ */ jsx61(
16038
16090
  SearchList,
16039
16091
  {
16040
16092
  handleAddTagSearch,
@@ -16043,8 +16095,8 @@ var Search = ({
16043
16095
  }
16044
16096
  )
16045
16097
  ] }),
16046
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs37(Fragment10, { children: [
16047
- /* @__PURE__ */ jsxs37(
16098
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs38(Fragment10, { children: [
16099
+ /* @__PURE__ */ jsxs38(
16048
16100
  "div",
16049
16101
  {
16050
16102
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -16053,8 +16105,8 @@ var Search = ({
16053
16105
  setShowPopupFilter((prev2) => !prev2);
16054
16106
  },
16055
16107
  children: [
16056
- /* @__PURE__ */ jsx60("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16057
- /* @__PURE__ */ jsx60(
16108
+ /* @__PURE__ */ jsx61("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16109
+ /* @__PURE__ */ jsx61(
16058
16110
  ChevronBottomIcon,
16059
16111
  {
16060
16112
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -16063,7 +16115,7 @@ var Search = ({
16063
16115
  ]
16064
16116
  }
16065
16117
  ),
16066
- showPopupFilter && /* @__PURE__ */ jsx60(
16118
+ showPopupFilter && /* @__PURE__ */ jsx61(
16067
16119
  PopupFilter,
16068
16120
  {
16069
16121
  handleAddTagSearch,
@@ -16082,30 +16134,30 @@ var Search = ({
16082
16134
  };
16083
16135
 
16084
16136
  // src/widgets/basic/active-badge-field/active-badge.tsx
16085
- import { Fragment as Fragment11, jsx as jsx61 } from "react/jsx-runtime";
16137
+ import { Fragment as Fragment11, jsx as jsx62 } from "react/jsx-runtime";
16086
16138
  var ActiveBadgeField = (props) => {
16087
16139
  const { t: t3 } = useI18n();
16088
16140
  const {
16089
16141
  type,
16090
16142
  className
16091
16143
  } = props;
16092
- if (type === void 0) return /* @__PURE__ */ jsx61(Fragment11, {});
16144
+ if (type === void 0) return /* @__PURE__ */ jsx62(Fragment11, {});
16093
16145
  const typeStyle = type ? "text-green-500" : "text-red-500";
16094
16146
  const text = type ? t3("active") : t3("in_active");
16095
- return /* @__PURE__ */ jsx61("div", { className: `${typeStyle} ${className}`, children: text });
16147
+ return /* @__PURE__ */ jsx62("div", { className: `${typeStyle} ${className}`, children: text });
16096
16148
  };
16097
16149
 
16098
16150
  // src/widgets/common/modal-layer.tsx
16099
16151
  import { Fragment as Fragment12 } from "react";
16100
16152
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
16101
- import { jsx as jsx62, jsxs as jsxs38 } from "react/jsx-runtime";
16153
+ import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
16102
16154
  var ModalLayer = ({
16103
16155
  isOpen,
16104
16156
  onClose,
16105
16157
  title,
16106
16158
  children
16107
16159
  }) => {
16108
- return /* @__PURE__ */ jsx62(
16160
+ return /* @__PURE__ */ jsx63(
16109
16161
  Transition,
16110
16162
  {
16111
16163
  show: isOpen,
@@ -16116,22 +16168,22 @@ var ModalLayer = ({
16116
16168
  leaveFrom: "transform scale-100 opacity-100",
16117
16169
  leaveTo: "transform scale-95 opacity-0",
16118
16170
  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(
16171
+ 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: [
16172
+ /* @__PURE__ */ jsx63("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16173
+ /* @__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: [
16174
+ /* @__PURE__ */ jsxs39(
16123
16175
  "div",
16124
16176
  {
16125
16177
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
16126
16178
  children: [
16127
- title && /* @__PURE__ */ jsx62("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16128
- /* @__PURE__ */ jsx62(
16179
+ title && /* @__PURE__ */ jsx63("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16180
+ /* @__PURE__ */ jsx63(
16129
16181
  "button",
16130
16182
  {
16131
16183
  onClick: onClose,
16132
16184
  "aria-label": "Close",
16133
16185
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
16134
- children: /* @__PURE__ */ jsx62(CloseIcon, {})
16186
+ children: /* @__PURE__ */ jsx63(CloseIcon, {})
16135
16187
  }
16136
16188
  )
16137
16189
  ]
@@ -16145,7 +16197,7 @@ var ModalLayer = ({
16145
16197
  };
16146
16198
 
16147
16199
  // src/widgets/common/modal-confirm.tsx
16148
- import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
16200
+ import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
16149
16201
  var ModalConfirm = ({
16150
16202
  name: name2,
16151
16203
  isShowModal,
@@ -16159,7 +16211,7 @@ var ModalConfirm = ({
16159
16211
  const renderButtonAction = (name3) => {
16160
16212
  switch (name3) {
16161
16213
  case "duplicate":
16162
- return /* @__PURE__ */ jsxs39(
16214
+ return /* @__PURE__ */ jsxs40(
16163
16215
  "button",
16164
16216
  {
16165
16217
  type: "button",
@@ -16167,13 +16219,13 @@ var ModalConfirm = ({
16167
16219
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16168
16220
  disabled: isLoading,
16169
16221
  children: [
16170
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
16171
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16222
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16223
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16172
16224
  ]
16173
16225
  }
16174
16226
  );
16175
16227
  case "archive":
16176
- return /* @__PURE__ */ jsxs39(
16228
+ return /* @__PURE__ */ jsxs40(
16177
16229
  "button",
16178
16230
  {
16179
16231
  type: "button",
@@ -16181,13 +16233,13 @@ var ModalConfirm = ({
16181
16233
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16182
16234
  disabled: isLoading,
16183
16235
  children: [
16184
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
16185
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16236
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16237
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16186
16238
  ]
16187
16239
  }
16188
16240
  );
16189
16241
  case "unarchive":
16190
- return /* @__PURE__ */ jsxs39(
16242
+ return /* @__PURE__ */ jsxs40(
16191
16243
  "button",
16192
16244
  {
16193
16245
  type: "button",
@@ -16195,13 +16247,13 @@ var ModalConfirm = ({
16195
16247
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16196
16248
  disabled: isLoading,
16197
16249
  children: [
16198
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
16199
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16250
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16251
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16200
16252
  ]
16201
16253
  }
16202
16254
  );
16203
16255
  case "delete":
16204
- return /* @__PURE__ */ jsxs39(
16256
+ return /* @__PURE__ */ jsxs40(
16205
16257
  "button",
16206
16258
  {
16207
16259
  type: "button",
@@ -16209,8 +16261,8 @@ var ModalConfirm = ({
16209
16261
  className: "button-primary flex-1 flex items-center justify-center gap-2",
16210
16262
  disabled: isLoading,
16211
16263
  children: [
16212
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
16213
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16264
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16265
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16214
16266
  ]
16215
16267
  }
16216
16268
  );
@@ -16218,13 +16270,13 @@ var ModalConfirm = ({
16218
16270
  break;
16219
16271
  }
16220
16272
  };
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 })
16273
+ return /* @__PURE__ */ jsx64(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16274
+ /* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
16275
+ /* @__PURE__ */ jsx64("div", { className: "text-[18px] font-bold", children: title }),
16276
+ /* @__PURE__ */ jsx64("p", { className: "text-[16px]", children: content })
16225
16277
  ] }),
16226
- /* @__PURE__ */ jsxs39("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16227
- /* @__PURE__ */ jsx63(
16278
+ /* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16279
+ /* @__PURE__ */ jsx64(
16228
16280
  "button",
16229
16281
  {
16230
16282
  type: "button",
@@ -16241,7 +16293,7 @@ var ModalConfirm = ({
16241
16293
  // src/widgets/common/modal-detail.tsx
16242
16294
  import { useState as useState7 } from "react";
16243
16295
  import { createPortal as createPortal2 } from "react-dom";
16244
- import { Fragment as Fragment13, jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
16296
+ import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
16245
16297
  var ModalDetail = ({
16246
16298
  idToolTip,
16247
16299
  title,
@@ -16264,18 +16316,18 @@ var ModalDetail = ({
16264
16316
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
16265
16317
  };
16266
16318
  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(
16319
+ /* @__PURE__ */ jsx65(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16320
+ /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16321
+ /* @__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: [
16322
+ /* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16323
+ /* @__PURE__ */ jsxs41(
16272
16324
  "div",
16273
16325
  {
16274
16326
  id: "modal-detail",
16275
16327
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
16276
16328
  children: [
16277
16329
  t3("detail_button"),
16278
- /* @__PURE__ */ jsx64(
16330
+ /* @__PURE__ */ jsx65(
16279
16331
  "button",
16280
16332
  {
16281
16333
  onClick: handleNavigateDetail,
@@ -16286,9 +16338,9 @@ var ModalDetail = ({
16286
16338
  ]
16287
16339
  }
16288
16340
  ),
16289
- /* @__PURE__ */ jsx64("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx64(CloseIcon, { className: "h-5 w-5" }) })
16341
+ /* @__PURE__ */ jsx65("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx65(CloseIcon, { className: "h-5 w-5" }) })
16290
16342
  ] }),
16291
- /* @__PURE__ */ jsx64("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16343
+ /* @__PURE__ */ jsx65("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16292
16344
  id: idForm,
16293
16345
  aid,
16294
16346
  model,
@@ -16303,7 +16355,7 @@ var ModalDetail = ({
16303
16355
 
16304
16356
  // src/widgets/common/loading-normal.tsx
16305
16357
  import { useEffect as useEffect9, useState as useState8 } from "react";
16306
- import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
16358
+ import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
16307
16359
  var LayerLoading = () => {
16308
16360
  const { t: t3 } = useI18n();
16309
16361
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -16313,21 +16365,21 @@ var LayerLoading = () => {
16313
16365
  }, 200);
16314
16366
  return () => clearInterval(interval);
16315
16367
  }, []);
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(
16368
+ 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: [
16369
+ /* @__PURE__ */ jsx66("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx66(
16318
16370
  "div",
16319
16371
  {
16320
16372
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
16321
16373
  },
16322
16374
  index4
16323
16375
  )) }),
16324
- /* @__PURE__ */ jsx65("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16376
+ /* @__PURE__ */ jsx66("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16325
16377
  ] }) }) });
16326
16378
  };
16327
16379
 
16328
16380
  // src/widgets/common/loading-small.tsx
16329
16381
  import { useEffect as useEffect10, useState as useState9 } from "react";
16330
- import { jsx as jsx66 } from "react/jsx-runtime";
16382
+ import { jsx as jsx67 } from "react/jsx-runtime";
16331
16383
  var LoadingSmall = () => {
16332
16384
  const [activeIndex, setActiveIndex] = useState9(0);
16333
16385
  useEffect10(() => {
@@ -16336,7 +16388,7 @@ var LoadingSmall = () => {
16336
16388
  }, 200);
16337
16389
  return () => clearInterval(interval);
16338
16390
  }, []);
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(
16391
+ 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
16392
  "div",
16341
16393
  {
16342
16394
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -16347,7 +16399,7 @@ var LoadingSmall = () => {
16347
16399
 
16348
16400
  // src/widgets/common/video-player.tsx
16349
16401
  import { useRef as useRef6, useState as useState10 } from "react";
16350
- import { jsx as jsx67, jsxs as jsxs42 } from "react/jsx-runtime";
16402
+ import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
16351
16403
  var VideoPlayer = ({ src }) => {
16352
16404
  const [isPlaying, setIsPlaying] = useState10(false);
16353
16405
  const videoRef = useRef6(null);
@@ -16374,8 +16426,8 @@ var VideoPlayer = ({ src }) => {
16374
16426
  }
16375
16427
  }
16376
16428
  };
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(
16429
+ 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: [
16430
+ /* @__PURE__ */ jsx68(
16379
16431
  "video",
16380
16432
  {
16381
16433
  ref: videoRef,
@@ -16387,25 +16439,56 @@ var VideoPlayer = ({ src }) => {
16387
16439
  children: "Your browser does not support the video tag."
16388
16440
  }
16389
16441
  ),
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, {}) }) })
16442
+ /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16443
+ /* @__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
16444
  ] });
16393
16445
  };
16394
16446
 
16395
16447
  // src/widgets/common/render-files.tsx
16396
- import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
16397
- var ImageItem = ({ filename, checksum, index: index4, src = null, useGetImage }) => {
16448
+ import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16449
+ var ImageItem = ({
16450
+ filename,
16451
+ checksum,
16452
+ index: index4,
16453
+ src = null,
16454
+ useGetImage,
16455
+ size: size4,
16456
+ id,
16457
+ envFile,
16458
+ accessToken
16459
+ }) => {
16398
16460
  const { data: image } = useGetImage({
16399
16461
  data: { filename, checksum },
16400
16462
  queryKey: [`get-image-${""}`],
16401
16463
  src
16402
16464
  });
16403
- return /* @__PURE__ */ jsx68("div", { className: "relative group group/file", children: /* @__PURE__ */ jsx68(
16465
+ return /* @__PURE__ */ jsx69("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ jsx69(
16404
16466
  "img",
16405
16467
  {
16406
16468
  src: image || src,
16407
16469
  alt: filename,
16408
- className: "w-32 h-32 object-cover rounded-md"
16470
+ className: "w-32 h-32 object-cover rounded-md cursor-pointer"
16471
+ }
16472
+ ) : /* @__PURE__ */ jsxs44(
16473
+ "div",
16474
+ {
16475
+ onClick: (e3) => {
16476
+ e3?.stopPropagation();
16477
+ downloadFile(
16478
+ `${envFile}api/v2/web/content/${id}?download=true`,
16479
+ filename,
16480
+ accessToken
16481
+ );
16482
+ },
16483
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16484
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16485
+ children: [
16486
+ /* @__PURE__ */ jsx69(ImageIcon, {}),
16487
+ /* @__PURE__ */ jsxs44("div", { children: [
16488
+ /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16489
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16490
+ ] })
16491
+ ]
16409
16492
  }
16410
16493
  ) }, index4);
16411
16494
  };
@@ -16418,50 +16501,83 @@ var FileItem = (props) => {
16418
16501
  src,
16419
16502
  mimetype,
16420
16503
  size: size4,
16421
- useGetImage
16504
+ useGetImage,
16505
+ id,
16506
+ envFile,
16507
+ accessToken
16422
16508
  } = props;
16423
16509
  const fileTypeIcon = {
16424
- "application/pdf": /* @__PURE__ */ jsx68(PdfIcon, {}),
16425
- "application/zip": /* @__PURE__ */ jsx68(ZipIcon, {}),
16426
- "application/x-zip-compressed": /* @__PURE__ */ jsx68(ZipIcon, {}),
16427
- "application/vnd.ms-excel": /* @__PURE__ */ jsx68(ExcelIcon, {}),
16428
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx68(ExcelIcon, {})
16510
+ "application/pdf": /* @__PURE__ */ jsx69(PdfIcon, {}),
16511
+ "application/zip": /* @__PURE__ */ jsx69(ZipIcon, {}),
16512
+ "application/x-zip-compressed": /* @__PURE__ */ jsx69(ZipIcon, {}),
16513
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx69(ExcelIcon, {}),
16514
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {})
16429
16515
  };
16430
16516
  const renderFile = () => {
16431
16517
  if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
16432
- return /* @__PURE__ */ jsx68(ImageItem, { ...props });
16518
+ return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
16433
16519
  } else if (mimetype?.includes("video")) {
16434
- return /* @__PURE__ */ jsx68(VideoPlayer, { ...props });
16520
+ return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
16435
16521
  } else {
16436
- return /* @__PURE__ */ jsxs43("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
16437
- fileTypeIcon[mimetype],
16438
- /* @__PURE__ */ jsxs43("div", { children: [
16439
- /* @__PURE__ */ jsx68("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16440
- /* @__PURE__ */ jsx68("span", { className: "text-[12px]", children: formatFileSize(size4) })
16441
- ] })
16442
- ] });
16522
+ return /* @__PURE__ */ jsxs44(
16523
+ "div",
16524
+ {
16525
+ onClick: (e3) => {
16526
+ if (accessToken) {
16527
+ e3?.stopPropagation();
16528
+ downloadFile(
16529
+ `${envFile}api/v2/web/content/${id}?download=true`,
16530
+ filename,
16531
+ accessToken
16532
+ );
16533
+ }
16534
+ },
16535
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16536
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16537
+ children: [
16538
+ fileTypeIcon[mimetype],
16539
+ /* @__PURE__ */ jsxs44("div", { children: [
16540
+ /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16541
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16542
+ ] })
16543
+ ]
16544
+ }
16545
+ );
16443
16546
  }
16444
16547
  };
16445
- return /* @__PURE__ */ jsxs43(
16548
+ return /* @__PURE__ */ jsxs44(
16446
16549
  "div",
16447
16550
  {
16448
- className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit group/file",
16551
+ className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
16449
16552
  children: [
16450
16553
  renderFile(),
16451
- handleRemoveFile && /* @__PURE__ */ jsx68(
16554
+ handleRemoveFile && /* @__PURE__ */ jsx69(
16452
16555
  "div",
16453
16556
  {
16557
+ style: {
16558
+ position: "absolute",
16559
+ top: 0,
16560
+ right: 0,
16561
+ backgroundColor: "rgba(0,0,0,0.2)"
16562
+ },
16454
16563
  onClick: () => handleRemoveFile(index4),
16455
- className: "cursor-pointer absolute right-0 top-0 p-2 hidden group-hover/file:block bg-[rgba(0,0,0,0.2)]",
16456
- children: /* @__PURE__ */ jsx68(DeleteIcon, {})
16564
+ className: "cursor-pointer p-2 hidden group-hover:block",
16565
+ children: /* @__PURE__ */ jsx69(DeleteIcon, {})
16457
16566
  }
16458
16567
  ),
16459
- !handleRemoveFile && /* @__PURE__ */ jsx68(
16568
+ !handleRemoveFile && /* @__PURE__ */ jsx69(
16460
16569
  "span",
16461
16570
  {
16571
+ style: {
16572
+ position: "absolute",
16573
+ top: 0,
16574
+ right: 0,
16575
+ backgroundColor: "rgba(0,0,0,0.2)",
16576
+ zIndex: 10
16577
+ },
16462
16578
  onClick: (e3) => handleFileDownload(e3, src, filename),
16463
- className: "absolute top-0 right-0 z-10 hidden group-hover/file:block cursor-pointer p-2 text-white bg-[rgba(0,0,0,0.2)]",
16464
- children: /* @__PURE__ */ jsx68(DownloadIcon, {})
16579
+ className: "hidden group-hover:block cursor-pointer p-2 text-white ",
16580
+ children: /* @__PURE__ */ jsx69(DownloadIcon, {})
16465
16581
  }
16466
16582
  )
16467
16583
  ]
@@ -16469,9 +16585,14 @@ var FileItem = (props) => {
16469
16585
  index4
16470
16586
  );
16471
16587
  };
16472
- var downloadFile = async (url, filename) => {
16588
+ var downloadFile = async (url, filename, accessToken) => {
16473
16589
  try {
16474
- const response = await fetch(url);
16590
+ const response = accessToken ? await fetch(url, {
16591
+ method: "GET",
16592
+ headers: {
16593
+ Authorization: `Bearer ${accessToken}`
16594
+ }
16595
+ }) : await fetch(url);
16475
16596
  if (response.ok) {
16476
16597
  const blob = await response.blob();
16477
16598
  const urlBlob = window.URL.createObjectURL(blob);
@@ -16489,7 +16610,13 @@ var downloadFile = async (url, filename) => {
16489
16610
  console.error("File download failed:", error2);
16490
16611
  }
16491
16612
  };
16492
- var RenderFiles = ({ selectedFiles, setSelectedFiles, useGetImage }) => {
16613
+ var RenderFiles = ({
16614
+ selectedFiles,
16615
+ setSelectedFiles,
16616
+ useGetImage,
16617
+ envFile,
16618
+ accessToken
16619
+ }) => {
16493
16620
  const handleRemoveFile = (index4) => {
16494
16621
  if (setSelectedFiles) {
16495
16622
  const files = selectedFiles.filter((_2, i3) => i3 !== index4);
@@ -16500,20 +16627,22 @@ var RenderFiles = ({ selectedFiles, setSelectedFiles, useGetImage }) => {
16500
16627
  e3.stopPropagation();
16501
16628
  downloadFile(url, name2);
16502
16629
  };
16503
- return /* @__PURE__ */ jsx68("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16504
- return /* @__PURE__ */ jsx68("div", { className: "relative group/file", children: /* @__PURE__ */ jsx68(
16630
+ return /* @__PURE__ */ jsx69("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16631
+ return /* @__PURE__ */ jsx69("div", { className: "relative group/file", children: /* @__PURE__ */ jsx69(
16505
16632
  FileItem,
16506
16633
  {
16507
16634
  ...file,
16508
16635
  src: file?.datas,
16509
- filename: file?.display_name ?? file?.name,
16636
+ filename: file?.display_name ?? file?.name ?? file?.filename,
16637
+ id: file?.id,
16510
16638
  index: index4,
16511
16639
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16512
16640
  handleFileDownload,
16513
- useGetImage
16514
- },
16515
- index4
16516
- ) });
16641
+ useGetImage,
16642
+ envFile,
16643
+ accessToken
16644
+ }
16645
+ ) }, file?.id ?? index4);
16517
16646
  }) });
16518
16647
  };
16519
16648
 
@@ -16703,7 +16832,7 @@ var po = $2(K("zoom"));
16703
16832
  var uo = $2(K("flip"));
16704
16833
 
16705
16834
  // src/widgets/common/select-files.tsx
16706
- import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16835
+ import { Fragment as Fragment14, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16707
16836
  var ButtonSelectFiles = ({
16708
16837
  fileInputRef,
16709
16838
  selectedFiles,
@@ -16806,8 +16935,8 @@ var ButtonSelectFiles = ({
16806
16935
  await handleUpload(formData, serivce, xNode);
16807
16936
  }
16808
16937
  };
16809
- return /* @__PURE__ */ jsxs44(Fragment14, { children: [
16810
- isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
16938
+ return /* @__PURE__ */ jsxs45(Fragment14, { children: [
16939
+ isPending ? /* @__PURE__ */ jsx70(Fragment14, { children: /* @__PURE__ */ jsx70("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs45(
16811
16940
  "button",
16812
16941
  {
16813
16942
  type: "button",
@@ -16815,12 +16944,12 @@ var ButtonSelectFiles = ({
16815
16944
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16816
16945
  onClick: () => fileInputRef.current.click(),
16817
16946
  children: [
16818
- /* @__PURE__ */ jsx69(AttachIcon, {}),
16819
- /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16947
+ /* @__PURE__ */ jsx70(AttachIcon, {}),
16948
+ /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16820
16949
  ]
16821
16950
  }
16822
16951
  ),
16823
- /* @__PURE__ */ jsx69(
16952
+ /* @__PURE__ */ jsx70(
16824
16953
  "input",
16825
16954
  {
16826
16955
  type: "file",
@@ -16835,7 +16964,7 @@ var ButtonSelectFiles = ({
16835
16964
  };
16836
16965
 
16837
16966
  // src/widgets/basic/avatar-field/avatar.tsx
16838
- import { Fragment as Fragment15, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16967
+ import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16839
16968
  var AvatarField = (props) => {
16840
16969
  const {
16841
16970
  isForm = false,
@@ -16859,8 +16988,8 @@ var AvatarField = (props) => {
16859
16988
  color: textColor,
16860
16989
  fontSize: `${size4 / 2.5}px`
16861
16990
  };
16862
- return /* @__PURE__ */ jsxs45(Fragment15, { children: [
16863
- isForm && allowShowDetail && /* @__PURE__ */ jsx70(
16991
+ return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16992
+ isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16864
16993
  ModalDetail,
16865
16994
  {
16866
16995
  idToolTip: `avatar-widget-id-${id}`,
@@ -16871,7 +17000,7 @@ var AvatarField = (props) => {
16871
17000
  place: "top-start"
16872
17001
  }
16873
17002
  ),
16874
- allowShowDetail && /* @__PURE__ */ jsx70(
17003
+ allowShowDetail && /* @__PURE__ */ jsx71(
16875
17004
  M,
16876
17005
  {
16877
17006
  id: `avatar-widget-id-${id}`,
@@ -16880,7 +17009,7 @@ var AvatarField = (props) => {
16880
17009
  className: "z-20"
16881
17010
  }
16882
17011
  ),
16883
- avatarSrc ? /* @__PURE__ */ jsx70(
17012
+ avatarSrc ? /* @__PURE__ */ jsx71(
16884
17013
  "img",
16885
17014
  {
16886
17015
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16888,7 +17017,7 @@ var AvatarField = (props) => {
16888
17017
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16889
17018
  alt: "Avatar"
16890
17019
  }
16891
- ) : /* @__PURE__ */ jsx70("div", { children: /* @__PURE__ */ jsx70(
17020
+ ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16892
17021
  "div",
16893
17022
  {
16894
17023
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16901,7 +17030,7 @@ var AvatarField = (props) => {
16901
17030
  };
16902
17031
 
16903
17032
  // src/widgets/basic/binary-field/binary.tsx
16904
- import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
17033
+ import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16905
17034
  var BinaryField = (props) => {
16906
17035
  const {
16907
17036
  name: name2,
@@ -16924,7 +17053,7 @@ var BinaryField = (props) => {
16924
17053
  image
16925
17054
  } = props;
16926
17055
  const { t: t3 } = useI18n();
16927
- return /* @__PURE__ */ jsx71(
17056
+ return /* @__PURE__ */ jsx72(
16928
17057
  Controller,
16929
17058
  {
16930
17059
  name: name2 ?? "",
@@ -16934,13 +17063,13 @@ var BinaryField = (props) => {
16934
17063
  },
16935
17064
  render: ({ field }) => {
16936
17065
  const renderImage = initialImage || selectedImage;
16937
- return /* @__PURE__ */ jsx71(
17066
+ return /* @__PURE__ */ jsx72(
16938
17067
  "div",
16939
17068
  {
16940
17069
  ref: binaryRef,
16941
17070
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16942
- children: renderImage ? /* @__PURE__ */ jsxs46("div", { className: "relative group", children: [
16943
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx71(
17071
+ children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
17072
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16944
17073
  "img",
16945
17074
  {
16946
17075
  style: {
@@ -16951,7 +17080,7 @@ var BinaryField = (props) => {
16951
17080
  alt: "Selected",
16952
17081
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16953
17082
  }
16954
- ) : renderImage ? /* @__PURE__ */ jsx71(
17083
+ ) : renderImage ? /* @__PURE__ */ jsx72(
16955
17084
  "img",
16956
17085
  {
16957
17086
  style: {
@@ -16962,17 +17091,17 @@ var BinaryField = (props) => {
16962
17091
  alt: "Selected",
16963
17092
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16964
17093
  }
16965
- ) : /* @__PURE__ */ jsx71(PlaceHolderIcon, {}),
16966
- !isInsideTable && !readonly && /* @__PURE__ */ jsx71(
17094
+ ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
17095
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16967
17096
  "button",
16968
17097
  {
16969
17098
  type: "button",
16970
17099
  onClick: () => handleRemoveImage(field.onChange),
16971
17100
  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",
16972
- children: /* @__PURE__ */ jsx71(DeleteIcon, {})
17101
+ children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16973
17102
  }
16974
17103
  )
16975
- ] }) : /* @__PURE__ */ jsxs46(
17104
+ ] }) : /* @__PURE__ */ jsxs47(
16976
17105
  "label",
16977
17106
  {
16978
17107
  htmlFor: inputId,
@@ -16982,7 +17111,7 @@ var BinaryField = (props) => {
16982
17111
  },
16983
17112
  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"}`,
16984
17113
  children: [
16985
- /* @__PURE__ */ jsx71(
17114
+ /* @__PURE__ */ jsx72(
16986
17115
  "input",
16987
17116
  {
16988
17117
  id: inputId,
@@ -16994,8 +17123,8 @@ var BinaryField = (props) => {
16994
17123
  className: "hidden z-10 relative"
16995
17124
  }
16996
17125
  ),
16997
- /* @__PURE__ */ jsx71("img", { src: image, alt: "", className: "z-0 relative" }),
16998
- /* @__PURE__ */ jsx71(
17126
+ /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
17127
+ /* @__PURE__ */ jsx72(
16999
17128
  "div",
17000
17129
  {
17001
17130
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -17004,7 +17133,7 @@ var BinaryField = (props) => {
17004
17133
  left: "-8px",
17005
17134
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
17006
17135
  },
17007
- children: /* @__PURE__ */ jsx71(
17136
+ children: /* @__PURE__ */ jsx72(
17008
17137
  "svg",
17009
17138
  {
17010
17139
  xmlns: "http://www.w3.org/2000/svg",
@@ -17012,7 +17141,7 @@ var BinaryField = (props) => {
17012
17141
  height: "14",
17013
17142
  viewBox: "0 0 14 14",
17014
17143
  fill: "none",
17015
- children: /* @__PURE__ */ jsx71(
17144
+ children: /* @__PURE__ */ jsx72(
17016
17145
  "path",
17017
17146
  {
17018
17147
  "fill-rule": "evenodd",
@@ -17036,7 +17165,7 @@ var BinaryField = (props) => {
17036
17165
  };
17037
17166
 
17038
17167
  // src/widgets/basic/button-badge-field/button-badge.tsx
17039
- import { jsx as jsx72 } from "react/jsx-runtime";
17168
+ import { jsx as jsx73 } from "react/jsx-runtime";
17040
17169
  var typeStyles = {
17041
17170
  primary: {
17042
17171
  backgroundColor: "#3b82f6",
@@ -17111,11 +17240,11 @@ var ButtonBadgeField = (props) => {
17111
17240
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
17112
17241
  };
17113
17242
  const label = getLabel(defaultValue ?? value);
17114
- return label ? /* @__PURE__ */ jsx72("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17243
+ return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17115
17244
  };
17116
17245
 
17117
17246
  // src/widgets/basic/button-field/button.tsx
17118
- import { Fragment as Fragment16, jsx as jsx73, jsxs as jsxs47 } from "react/jsx-runtime";
17247
+ import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
17119
17248
  var ButtonField = (props) => {
17120
17249
  const {
17121
17250
  func,
@@ -17126,7 +17255,7 @@ var ButtonField = (props) => {
17126
17255
  type = "submit"
17127
17256
  } = props;
17128
17257
  const { t: t3 } = useI18n();
17129
- return /* @__PURE__ */ jsx73(Fragment16, { children: !loading ? /* @__PURE__ */ jsx73(
17258
+ return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
17130
17259
  "button",
17131
17260
  {
17132
17261
  type,
@@ -17135,7 +17264,7 @@ var ButtonField = (props) => {
17135
17264
  onClick: func,
17136
17265
  children: t3(content)
17137
17266
  }
17138
- ) : /* @__PURE__ */ jsxs47(
17267
+ ) : /* @__PURE__ */ jsxs48(
17139
17268
  "button",
17140
17269
  {
17141
17270
  type,
@@ -17144,7 +17273,7 @@ var ButtonField = (props) => {
17144
17273
  children: [
17145
17274
  t3("loading"),
17146
17275
  " ",
17147
- /* @__PURE__ */ jsx73(LoadingIcon, {})
17276
+ /* @__PURE__ */ jsx74(LoadingIcon, {})
17148
17277
  ]
17149
17278
  }
17150
17279
  ) });
@@ -17152,7 +17281,7 @@ var ButtonField = (props) => {
17152
17281
 
17153
17282
  // src/widgets/basic/char-field/char.tsx
17154
17283
  import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
17155
- import { Fragment as Fragment17, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
17284
+ import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
17156
17285
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
17157
17286
  var CharField = (props) => {
17158
17287
  const {
@@ -17180,9 +17309,9 @@ var CharField = (props) => {
17180
17309
  } = props;
17181
17310
  if (!isForm && !isEditTable) {
17182
17311
  const propValue = value || defaultValue;
17183
- return /* @__PURE__ */ jsx74("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17312
+ return /* @__PURE__ */ jsx75("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17184
17313
  }
17185
- return /* @__PURE__ */ jsx74(
17314
+ return /* @__PURE__ */ jsx75(
17186
17315
  Controller,
17187
17316
  {
17188
17317
  name: name2 ?? "",
@@ -17236,8 +17365,8 @@ var CharField = (props) => {
17236
17365
  }
17237
17366
  return "";
17238
17367
  }, [widget, formValues]);
17239
- return /* @__PURE__ */ jsxs48(Fragment17, { children: [
17240
- /* @__PURE__ */ jsx74(
17368
+ return /* @__PURE__ */ jsxs49(Fragment17, { children: [
17369
+ /* @__PURE__ */ jsx75(
17241
17370
  "input",
17242
17371
  {
17243
17372
  value: displayValue ?? "",
@@ -17298,7 +17427,7 @@ var CharField = (props) => {
17298
17427
  `
17299
17428
  }
17300
17429
  ),
17301
- isEditTable ? /* @__PURE__ */ jsx74(Fragment17, {}) : /* @__PURE__ */ jsx74(Fragment17, { children: error2 && /* @__PURE__ */ jsx74("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17430
+ isEditTable ? /* @__PURE__ */ jsx75(Fragment17, {}) : /* @__PURE__ */ jsx75(Fragment17, { children: error2 && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17302
17431
  ] });
17303
17432
  }
17304
17433
  }
@@ -17306,7 +17435,7 @@ var CharField = (props) => {
17306
17435
  };
17307
17436
 
17308
17437
  // src/widgets/basic/checkbox-field/checkbox.tsx
17309
- import { jsx as jsx75 } from "react/jsx-runtime";
17438
+ import { jsx as jsx76 } from "react/jsx-runtime";
17310
17439
  var CheckboxField = (props) => {
17311
17440
  const {
17312
17441
  name: name2,
@@ -17321,9 +17450,9 @@ var CheckboxField = (props) => {
17321
17450
  } = props;
17322
17451
  if (!isForm) {
17323
17452
  if (name2 === "is_active" || name2 === "active") {
17324
- return /* @__PURE__ */ jsx75(ActiveBadgeField, { type: value });
17453
+ return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
17325
17454
  } else {
17326
- return /* @__PURE__ */ jsx75(
17455
+ return /* @__PURE__ */ jsx76(
17327
17456
  "input",
17328
17457
  {
17329
17458
  type: "checkbox",
@@ -17334,12 +17463,12 @@ var CheckboxField = (props) => {
17334
17463
  );
17335
17464
  }
17336
17465
  }
17337
- return /* @__PURE__ */ jsx75(
17466
+ return /* @__PURE__ */ jsx76(
17338
17467
  Controller,
17339
17468
  {
17340
17469
  name: name2 ?? "",
17341
17470
  control: methods?.control,
17342
- render: ({ field }) => /* @__PURE__ */ jsx75(
17471
+ render: ({ field }) => /* @__PURE__ */ jsx76(
17343
17472
  "div",
17344
17473
  {
17345
17474
  className: "flex items-center gap-2",
@@ -17352,7 +17481,7 @@ var CheckboxField = (props) => {
17352
17481
  onChange2(name2 ?? "", checked);
17353
17482
  }
17354
17483
  },
17355
- children: /* @__PURE__ */ jsx75(
17484
+ children: /* @__PURE__ */ jsx76(
17356
17485
  "input",
17357
17486
  {
17358
17487
  ...field,
@@ -17380,7 +17509,7 @@ var CheckboxField = (props) => {
17380
17509
 
17381
17510
  // src/widgets/basic/color-field/color-wrapper.tsx
17382
17511
  import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
17383
- import { Fragment as Fragment18, jsx as jsx76, jsxs as jsxs49 } from "react/jsx-runtime";
17512
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
17384
17513
  var ColorWrapper = (props) => {
17385
17514
  const {
17386
17515
  colors: colors2,
@@ -17407,8 +17536,8 @@ var ColorWrapper = (props) => {
17407
17536
  document.removeEventListener("mousedown", handleClickOutside);
17408
17537
  };
17409
17538
  }, []);
17410
- return /* @__PURE__ */ jsx76("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx76("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs49("div", { children: [
17411
- /* @__PURE__ */ jsx76(
17539
+ return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17540
+ /* @__PURE__ */ jsx77(
17412
17541
  "button",
17413
17542
  {
17414
17543
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17422,7 +17551,7 @@ var ColorWrapper = (props) => {
17422
17551
  }
17423
17552
  }
17424
17553
  ),
17425
- /* @__PURE__ */ jsx76(
17554
+ /* @__PURE__ */ jsx77(
17426
17555
  M,
17427
17556
  {
17428
17557
  className: "",
@@ -17431,8 +17560,8 @@ var ColorWrapper = (props) => {
17431
17560
  content: i18n_default.t(color?.name)
17432
17561
  }
17433
17562
  )
17434
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs49(Fragment18, { children: [
17435
- /* @__PURE__ */ jsx76(
17563
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17564
+ /* @__PURE__ */ jsx77(
17436
17565
  "button",
17437
17566
  {
17438
17567
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17445,7 +17574,7 @@ var ColorWrapper = (props) => {
17445
17574
  style: { backgroundColor: selectedColor?.color }
17446
17575
  }
17447
17576
  ),
17448
- /* @__PURE__ */ jsx76(
17577
+ /* @__PURE__ */ jsx77(
17449
17578
  M,
17450
17579
  {
17451
17580
  place: "top",
@@ -17457,13 +17586,13 @@ var ColorWrapper = (props) => {
17457
17586
  };
17458
17587
 
17459
17588
  // src/widgets/basic/color-field/color.tsx
17460
- import { jsx as jsx77 } from "react/jsx-runtime";
17589
+ import { jsx as jsx78 } from "react/jsx-runtime";
17461
17590
  var ColorField = (props) => {
17462
17591
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17463
17592
  if (!isForm) {
17464
- return /* @__PURE__ */ jsx77(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17593
+ return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17465
17594
  }
17466
- return /* @__PURE__ */ jsx77(
17595
+ return /* @__PURE__ */ jsx78(
17467
17596
  Controller,
17468
17597
  {
17469
17598
  name: name2 ?? "",
@@ -17473,7 +17602,7 @@ var ColorField = (props) => {
17473
17602
  field.onChange(color?.id);
17474
17603
  onChange2 && onChange2(name2 ?? "", color?.id);
17475
17604
  };
17476
- return /* @__PURE__ */ jsx77(
17605
+ return /* @__PURE__ */ jsx78(
17477
17606
  ColorWrapper,
17478
17607
  {
17479
17608
  savePickColor: handlePickColorChange,
@@ -17488,7 +17617,7 @@ var ColorField = (props) => {
17488
17617
 
17489
17618
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17490
17619
  import { useEffect as useEffect13 } from "react";
17491
- import { jsx as jsx78, jsxs as jsxs50 } from "react/jsx-runtime";
17620
+ import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
17492
17621
  var CopyLinkButtonField = (props) => {
17493
17622
  const {
17494
17623
  isForm,
@@ -17507,9 +17636,9 @@ var CopyLinkButtonField = (props) => {
17507
17636
  } = props;
17508
17637
  const { t: t3 } = useI18n();
17509
17638
  if (!isForm) {
17510
- return /* @__PURE__ */ jsx78("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17639
+ return /* @__PURE__ */ jsx79("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17511
17640
  }
17512
- return /* @__PURE__ */ jsx78(
17641
+ return /* @__PURE__ */ jsx79(
17513
17642
  Controller,
17514
17643
  {
17515
17644
  name: name2 ?? "",
@@ -17527,8 +17656,8 @@ var CopyLinkButtonField = (props) => {
17527
17656
  clearErrors(name2);
17528
17657
  }
17529
17658
  }, [value]);
17530
- return /* @__PURE__ */ jsxs50("div", { className: "relative", children: [
17531
- /* @__PURE__ */ jsxs50(
17659
+ return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17660
+ /* @__PURE__ */ jsxs51(
17532
17661
  "div",
17533
17662
  {
17534
17663
  "aria-disabled": readonly,
@@ -17537,7 +17666,7 @@ var CopyLinkButtonField = (props) => {
17537
17666
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17538
17667
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17539
17668
  children: [
17540
- /* @__PURE__ */ jsx78(
17669
+ /* @__PURE__ */ jsx79(
17541
17670
  "input",
17542
17671
  {
17543
17672
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17578,19 +17707,19 @@ var CopyLinkButtonField = (props) => {
17578
17707
  `
17579
17708
  }
17580
17709
  ),
17581
- readonly && value && /* @__PURE__ */ jsx78(
17710
+ readonly && value && /* @__PURE__ */ jsx79(
17582
17711
  "button",
17583
17712
  {
17584
17713
  className: "cursor-pointer",
17585
17714
  type: "button",
17586
17715
  onClick: () => handleCopyToClipboard(propValue),
17587
- children: isCopied ? /* @__PURE__ */ jsx78(CheckIcon, {}) : /* @__PURE__ */ jsx78(CopyIcon, {})
17716
+ children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17588
17717
  }
17589
17718
  )
17590
17719
  ]
17591
17720
  }
17592
17721
  ),
17593
- error2 && /* @__PURE__ */ jsx78("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17722
+ error2 && /* @__PURE__ */ jsx79("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17594
17723
  ] });
17595
17724
  }
17596
17725
  }
@@ -21531,7 +21660,7 @@ function useEffectEvent(callback) {
21531
21660
  }
21532
21661
 
21533
21662
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21534
- import { jsx as jsx79, jsxs as jsxs51, Fragment as Fragment19 } from "react/jsx-runtime";
21663
+ import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
21535
21664
  import * as ReactDOM2 from "react-dom";
21536
21665
 
21537
21666
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21929,7 +22058,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21929
22058
  bottom: isCustomShape ? "" : "rotate(180deg)",
21930
22059
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21931
22060
  }[side];
21932
- return /* @__PURE__ */ jsxs51("svg", {
22061
+ return /* @__PURE__ */ jsxs52("svg", {
21933
22062
  ...rest,
21934
22063
  "aria-hidden": true,
21935
22064
  ref,
@@ -21945,18 +22074,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21945
22074
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21946
22075
  ...restStyle
21947
22076
  },
21948
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx79("path", {
22077
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21949
22078
  clipPath: "url(#" + clipPathId + ")",
21950
22079
  fill: "none",
21951
22080
  stroke,
21952
22081
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21953
22082
  d: dValue
21954
- }), /* @__PURE__ */ jsx79("path", {
22083
+ }), /* @__PURE__ */ jsx80("path", {
21955
22084
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21956
22085
  d: dValue
21957
- }), /* @__PURE__ */ jsx79("clipPath", {
22086
+ }), /* @__PURE__ */ jsx80("clipPath", {
21958
22087
  id: clipPathId,
21959
- children: /* @__PURE__ */ jsx79("rect", {
22088
+ children: /* @__PURE__ */ jsx80("rect", {
21960
22089
  x: -halfStrokeWidth,
21961
22090
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21962
22091
  width: width + computedStrokeWidth,
@@ -27889,7 +28018,7 @@ var Emotion$1 = Emotion;
27889
28018
  import * as React12 from "react";
27890
28019
  var import_extends2 = __toESM(require_extends());
27891
28020
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27892
- var jsx80 = function jsx81(type, props) {
28021
+ var jsx81 = function jsx82(type, props) {
27893
28022
  var args = arguments;
27894
28023
  if (props == null || !hasOwn.call(props, "css")) {
27895
28024
  return React12.createElement.apply(void 0, args);
@@ -27907,7 +28036,7 @@ var jsx80 = function jsx81(type, props) {
27907
28036
  var JSX;
27908
28037
  /* @__PURE__ */ (function(_JSX) {
27909
28038
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27910
- })(jsx80 || (jsx80 = {}));
28039
+ })(jsx81 || (jsx81 = {}));
27911
28040
  function css() {
27912
28041
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27913
28042
  args[_key] = arguments[_key];
@@ -28315,7 +28444,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28315
28444
  };
28316
28445
  var Menu = function Menu2(props) {
28317
28446
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28318
- return jsx80("div", _extends({}, getStyleProps(props, "menu", {
28447
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
28319
28448
  menu: true
28320
28449
  }), {
28321
28450
  ref: innerRef
@@ -28337,7 +28466,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28337
28466
  };
28338
28467
  var MenuList = function MenuList2(props) {
28339
28468
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28340
- return jsx80("div", _extends({}, getStyleProps(props, "menuList", {
28469
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
28341
28470
  "menu-list": true,
28342
28471
  "menu-list--is-multi": isMulti
28343
28472
  }), {
@@ -28357,7 +28486,7 @@ var noOptionsMessageCSS = noticeCSS;
28357
28486
  var loadingMessageCSS = noticeCSS;
28358
28487
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28359
28488
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28360
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28489
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28361
28490
  children,
28362
28491
  innerProps
28363
28492
  }), "noOptionsMessage", {
@@ -28367,7 +28496,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28367
28496
  };
28368
28497
  var LoadingMessage = function LoadingMessage2(_ref7) {
28369
28498
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28370
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28499
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28371
28500
  children,
28372
28501
  innerProps
28373
28502
  }), "loadingMessage", {
@@ -28430,7 +28559,7 @@ var MenuPortal = function MenuPortal2(props) {
28430
28559
  runAutoUpdate();
28431
28560
  }, [runAutoUpdate]);
28432
28561
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28433
- var menuWrapper = jsx80("div", _extends({
28562
+ var menuWrapper = jsx81("div", _extends({
28434
28563
  ref: setMenuPortalElement
28435
28564
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28436
28565
  offset: computedPosition.offset,
@@ -28439,7 +28568,7 @@ var MenuPortal = function MenuPortal2(props) {
28439
28568
  }), "menuPortal", {
28440
28569
  "menu-portal": true
28441
28570
  }), innerProps), children);
28442
- return jsx80(PortalPlacementContext.Provider, {
28571
+ return jsx81(PortalPlacementContext.Provider, {
28443
28572
  value: portalPlacementContext
28444
28573
  }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28445
28574
  };
@@ -28455,7 +28584,7 @@ var containerCSS = function containerCSS2(_ref3) {
28455
28584
  };
28456
28585
  var SelectContainer = function SelectContainer2(props) {
28457
28586
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28458
- return jsx80("div", _extends({}, getStyleProps(props, "container", {
28587
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
28459
28588
  "--is-disabled": isDisabled,
28460
28589
  "--is-rtl": isRtl
28461
28590
  }), innerProps), children);
@@ -28476,7 +28605,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28476
28605
  };
28477
28606
  var ValueContainer = function ValueContainer2(props) {
28478
28607
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28479
- return jsx80("div", _extends({}, getStyleProps(props, "valueContainer", {
28608
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28480
28609
  "value-container": true,
28481
28610
  "value-container--is-multi": isMulti,
28482
28611
  "value-container--has-value": hasValue
@@ -28492,7 +28621,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28492
28621
  };
28493
28622
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28494
28623
  var children = props.children, innerProps = props.innerProps;
28495
- return jsx80("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28624
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28496
28625
  indicators: true
28497
28626
  }), innerProps), children);
28498
28627
  };
@@ -28513,7 +28642,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28513
28642
  };
28514
28643
  var Svg = function Svg2(_ref3) {
28515
28644
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28516
- return jsx80("svg", _extends({
28645
+ return jsx81("svg", _extends({
28517
28646
  height: size4,
28518
28647
  width: size4,
28519
28648
  viewBox: "0 0 20 20",
@@ -28523,16 +28652,16 @@ var Svg = function Svg2(_ref3) {
28523
28652
  }, props));
28524
28653
  };
28525
28654
  var CrossIcon = function CrossIcon2(props) {
28526
- return jsx80(Svg, _extends({
28655
+ return jsx81(Svg, _extends({
28527
28656
  size: 20
28528
- }, props), jsx80("path", {
28657
+ }, props), jsx81("path", {
28529
28658
  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"
28530
28659
  }));
28531
28660
  };
28532
28661
  var DownChevron = function DownChevron2(props) {
28533
- return jsx80(Svg, _extends({
28662
+ return jsx81(Svg, _extends({
28534
28663
  size: 20
28535
- }, props), jsx80("path", {
28664
+ }, props), jsx81("path", {
28536
28665
  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"
28537
28666
  }));
28538
28667
  };
@@ -28553,18 +28682,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28553
28682
  var dropdownIndicatorCSS = baseCSS;
28554
28683
  var DropdownIndicator = function DropdownIndicator2(props) {
28555
28684
  var children = props.children, innerProps = props.innerProps;
28556
- return jsx80("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28685
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28557
28686
  indicator: true,
28558
28687
  "dropdown-indicator": true
28559
- }), innerProps), children || jsx80(DownChevron, null));
28688
+ }), innerProps), children || jsx81(DownChevron, null));
28560
28689
  };
28561
28690
  var clearIndicatorCSS = baseCSS;
28562
28691
  var ClearIndicator = function ClearIndicator2(props) {
28563
28692
  var children = props.children, innerProps = props.innerProps;
28564
- return jsx80("div", _extends({}, getStyleProps(props, "clearIndicator", {
28693
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28565
28694
  indicator: true,
28566
28695
  "clear-indicator": true
28567
- }), innerProps), children || jsx80(CrossIcon, null));
28696
+ }), innerProps), children || jsx81(CrossIcon, null));
28568
28697
  };
28569
28698
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28570
28699
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28580,7 +28709,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28580
28709
  };
28581
28710
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28582
28711
  var innerProps = props.innerProps;
28583
- return jsx80("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28712
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28584
28713
  "indicator-separator": true
28585
28714
  })));
28586
28715
  };
@@ -28604,7 +28733,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28604
28733
  };
28605
28734
  var LoadingDot = function LoadingDot2(_ref6) {
28606
28735
  var delay = _ref6.delay, offset4 = _ref6.offset;
28607
- return jsx80("span", {
28736
+ return jsx81("span", {
28608
28737
  css: /* @__PURE__ */ css({
28609
28738
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28610
28739
  backgroundColor: "currentColor",
@@ -28619,20 +28748,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28619
28748
  };
28620
28749
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28621
28750
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28622
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28751
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28623
28752
  innerProps,
28624
28753
  isRtl,
28625
28754
  size: size4
28626
28755
  }), "loadingIndicator", {
28627
28756
  indicator: true,
28628
28757
  "loading-indicator": true
28629
- }), innerProps), jsx80(LoadingDot, {
28758
+ }), innerProps), jsx81(LoadingDot, {
28630
28759
  delay: 0,
28631
28760
  offset: isRtl
28632
- }), jsx80(LoadingDot, {
28761
+ }), jsx81(LoadingDot, {
28633
28762
  delay: 160,
28634
28763
  offset: true
28635
- }), jsx80(LoadingDot, {
28764
+ }), jsx81(LoadingDot, {
28636
28765
  delay: 320,
28637
28766
  offset: !isRtl
28638
28767
  }));
@@ -28664,7 +28793,7 @@ var css$1 = function css2(_ref3, unstyled) {
28664
28793
  };
28665
28794
  var Control = function Control2(props) {
28666
28795
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28667
- return jsx80("div", _extends({
28796
+ return jsx81("div", _extends({
28668
28797
  ref: innerRef
28669
28798
  }, getStyleProps(props, "control", {
28670
28799
  control: true,
@@ -28686,15 +28815,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28686
28815
  };
28687
28816
  var Group = function Group2(props) {
28688
28817
  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;
28689
- return jsx80("div", _extends({}, getStyleProps(props, "group", {
28818
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28690
28819
  group: true
28691
- }), innerProps), jsx80(Heading, _extends({}, headingProps, {
28820
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28692
28821
  selectProps,
28693
28822
  theme,
28694
28823
  getStyles,
28695
28824
  getClassNames,
28696
28825
  cx
28697
- }), label), jsx80("div", null, children));
28826
+ }), label), jsx81("div", null, children));
28698
28827
  };
28699
28828
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28700
28829
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28716,7 +28845,7 @@ var GroupHeading = function GroupHeading2(props) {
28716
28845
  var _cleanCommonProps = cleanCommonProps(props);
28717
28846
  _cleanCommonProps.data;
28718
28847
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28719
- return jsx80("div", _extends({}, getStyleProps(props, "groupHeading", {
28848
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28720
28849
  "group-heading": true
28721
28850
  }), innerProps));
28722
28851
  };
@@ -28768,11 +28897,11 @@ var inputStyle = function inputStyle2(isHidden) {
28768
28897
  var Input = function Input2(props) {
28769
28898
  var cx = props.cx, value = props.value;
28770
28899
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28771
- return jsx80("div", _extends({}, getStyleProps(props, "input", {
28900
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28772
28901
  "input-container": true
28773
28902
  }), {
28774
28903
  "data-value": value || ""
28775
- }), jsx80("input", _extends({
28904
+ }), jsx81("input", _extends({
28776
28905
  className: cx({
28777
28906
  input: true
28778
28907
  }, inputClassName),
@@ -28826,35 +28955,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28826
28955
  };
28827
28956
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28828
28957
  var children = _ref4.children, innerProps = _ref4.innerProps;
28829
- return jsx80("div", innerProps, children);
28958
+ return jsx81("div", innerProps, children);
28830
28959
  };
28831
28960
  var MultiValueContainer = MultiValueGeneric;
28832
28961
  var MultiValueLabel = MultiValueGeneric;
28833
28962
  function MultiValueRemove(_ref5) {
28834
28963
  var children = _ref5.children, innerProps = _ref5.innerProps;
28835
- return jsx80("div", _extends({
28964
+ return jsx81("div", _extends({
28836
28965
  role: "button"
28837
- }, innerProps), children || jsx80(CrossIcon, {
28966
+ }, innerProps), children || jsx81(CrossIcon, {
28838
28967
  size: 14
28839
28968
  }));
28840
28969
  }
28841
28970
  var MultiValue = function MultiValue2(props) {
28842
28971
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28843
28972
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28844
- return jsx80(Container, {
28973
+ return jsx81(Container, {
28845
28974
  data,
28846
28975
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28847
28976
  "multi-value": true,
28848
28977
  "multi-value--is-disabled": isDisabled
28849
28978
  })), innerProps),
28850
28979
  selectProps
28851
- }, jsx80(Label, {
28980
+ }, jsx81(Label, {
28852
28981
  data,
28853
28982
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28854
28983
  "multi-value__label": true
28855
28984
  })),
28856
28985
  selectProps
28857
- }, children), jsx80(Remove, {
28986
+ }, children), jsx81(Remove, {
28858
28987
  data,
28859
28988
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28860
28989
  "multi-value__remove": true
@@ -28887,7 +29016,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28887
29016
  };
28888
29017
  var Option = function Option2(props) {
28889
29018
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28890
- return jsx80("div", _extends({}, getStyleProps(props, "option", {
29019
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
28891
29020
  option: true,
28892
29021
  "option--is-disabled": isDisabled,
28893
29022
  "option--is-focused": isFocused,
@@ -28911,7 +29040,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28911
29040
  };
28912
29041
  var Placeholder = function Placeholder2(props) {
28913
29042
  var children = props.children, innerProps = props.innerProps;
28914
- return jsx80("div", _extends({}, getStyleProps(props, "placeholder", {
29043
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28915
29044
  placeholder: true
28916
29045
  }), innerProps), children);
28917
29046
  };
@@ -28933,7 +29062,7 @@ var css3 = function css4(_ref3, unstyled) {
28933
29062
  };
28934
29063
  var SingleValue = function SingleValue2(props) {
28935
29064
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28936
- return jsx80("div", _extends({}, getStyleProps(props, "singleValue", {
29065
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28937
29066
  "single-value": true,
28938
29067
  "single-value--is-disabled": isDisabled
28939
29068
  }), innerProps), children);
@@ -29035,7 +29164,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
29035
29164
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
29036
29165
  };
29037
29166
  var A11yText = function A11yText2(props) {
29038
- return jsx80("span", _extends({
29167
+ return jsx81("span", _extends({
29039
29168
  css: _ref
29040
29169
  }, props));
29041
29170
  };
@@ -29170,18 +29299,18 @@ var LiveRegion = function LiveRegion2(props) {
29170
29299
  }
29171
29300
  return guidanceMsg;
29172
29301
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
29173
- var ScreenReaderText = jsx80(Fragment22, null, jsx80("span", {
29302
+ var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
29174
29303
  id: "aria-selection"
29175
- }, ariaSelected), jsx80("span", {
29304
+ }, ariaSelected), jsx81("span", {
29176
29305
  id: "aria-focused"
29177
- }, ariaFocused), jsx80("span", {
29306
+ }, ariaFocused), jsx81("span", {
29178
29307
  id: "aria-results"
29179
- }, ariaResults), jsx80("span", {
29308
+ }, ariaResults), jsx81("span", {
29180
29309
  id: "aria-guidance"
29181
29310
  }, ariaGuidance));
29182
- return jsx80(Fragment22, null, jsx80(A11yText$1, {
29311
+ return jsx81(Fragment22, null, jsx81(A11yText$1, {
29183
29312
  id
29184
- }, isInitialFocus && ScreenReaderText), jsx80(A11yText$1, {
29313
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
29185
29314
  "aria-live": ariaLive,
29186
29315
  "aria-atomic": "false",
29187
29316
  "aria-relevant": "additions text",
@@ -29494,7 +29623,7 @@ var _excluded4 = ["innerRef"];
29494
29623
  function DummyInput(_ref3) {
29495
29624
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29496
29625
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29497
- return jsx80("input", _extends({
29626
+ return jsx81("input", _extends({
29498
29627
  ref: innerRef
29499
29628
  }, filteredProps, {
29500
29629
  css: /* @__PURE__ */ css({
@@ -29736,7 +29865,7 @@ function ScrollManager(_ref3) {
29736
29865
  setScrollCaptureTarget(element);
29737
29866
  setScrollLockTarget(element);
29738
29867
  };
29739
- return jsx80(Fragment22, null, lockEnabled && jsx80("div", {
29868
+ return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29740
29869
  onClick: blurSelectInput,
29741
29870
  css: _ref2$1
29742
29871
  }), children(targetRef));
@@ -29755,7 +29884,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29755
29884
  };
29756
29885
  var RequiredInput = function RequiredInput2(_ref3) {
29757
29886
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29758
- return jsx80("input", {
29887
+ return jsx81("input", {
29759
29888
  required: true,
29760
29889
  name: name2,
29761
29890
  tabIndex: -1,
@@ -31345,7 +31474,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31345
31474
 
31346
31475
  // src/widgets/basic/date-field/date.tsx
31347
31476
  var import_moment2 = __toESM(require_moment());
31348
- import { Fragment as Fragment23, jsx as jsx82, jsxs as jsxs52 } from "react/jsx-runtime";
31477
+ import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31349
31478
  var DateField = (props) => {
31350
31479
  const {
31351
31480
  name: name2,
@@ -31373,8 +31502,8 @@ var DateField = (props) => {
31373
31502
  } = props;
31374
31503
  const { t: t3 } = useI18n();
31375
31504
  const InputDateCustom = forwardRef6(
31376
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs52("label", { className: `flex ${className}`, children: [
31377
- /* @__PURE__ */ jsx82(
31505
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
31506
+ /* @__PURE__ */ jsx83(
31378
31507
  "input",
31379
31508
  {
31380
31509
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31388,13 +31517,13 @@ var DateField = (props) => {
31388
31517
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31389
31518
  }
31390
31519
  ),
31391
- isForm2 && /* @__PURE__ */ jsx82(CalendarIcon, {})
31520
+ isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
31392
31521
  ] })
31393
31522
  );
31394
31523
  if (!isForm && !isEditTable) {
31395
- return /* @__PURE__ */ jsx82("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31524
+ return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31396
31525
  } else {
31397
- return /* @__PURE__ */ jsx82(
31526
+ return /* @__PURE__ */ jsx83(
31398
31527
  Controller,
31399
31528
  {
31400
31529
  name: name2 || "",
@@ -31416,8 +31545,8 @@ var DateField = (props) => {
31416
31545
  }
31417
31546
  }, [value, clearErrors, name2]);
31418
31547
  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;
31419
- return /* @__PURE__ */ jsxs52(Fragment23, { children: [
31420
- /* @__PURE__ */ jsx82(
31548
+ return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31549
+ /* @__PURE__ */ jsx83(
31421
31550
  DatePicker,
31422
31551
  {
31423
31552
  selected: selectedDate,
@@ -31465,7 +31594,7 @@ var DateField = (props) => {
31465
31594
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31466
31595
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31467
31596
  showTimeInput: showTime,
31468
- customInput: /* @__PURE__ */ jsx82(
31597
+ customInput: /* @__PURE__ */ jsx83(
31469
31598
  InputDateCustom,
31470
31599
  {
31471
31600
  isForm,
@@ -31483,7 +31612,7 @@ var DateField = (props) => {
31483
31612
  increaseMonth,
31484
31613
  prevMonthButtonDisabled,
31485
31614
  nextMonthButtonDisabled
31486
- }) => /* @__PURE__ */ jsxs52(
31615
+ }) => /* @__PURE__ */ jsxs53(
31487
31616
  "div",
31488
31617
  {
31489
31618
  style: {
@@ -31492,7 +31621,7 @@ var DateField = (props) => {
31492
31621
  justifyContent: "center"
31493
31622
  },
31494
31623
  children: [
31495
- /* @__PURE__ */ jsx82(
31624
+ /* @__PURE__ */ jsx83(
31496
31625
  "button",
31497
31626
  {
31498
31627
  onClick: decreaseMonth,
@@ -31500,7 +31629,7 @@ var DateField = (props) => {
31500
31629
  children: "<"
31501
31630
  }
31502
31631
  ),
31503
- /* @__PURE__ */ jsx82(
31632
+ /* @__PURE__ */ jsx83(
31504
31633
  StateManagedSelect$1,
31505
31634
  {
31506
31635
  classNames: {
@@ -31526,7 +31655,7 @@ var DateField = (props) => {
31526
31655
  autoFocus: true
31527
31656
  }
31528
31657
  ),
31529
- /* @__PURE__ */ jsx82(
31658
+ /* @__PURE__ */ jsx83(
31530
31659
  StateManagedSelect$1,
31531
31660
  {
31532
31661
  classNames: {
@@ -31554,7 +31683,7 @@ var DateField = (props) => {
31554
31683
  }))
31555
31684
  }
31556
31685
  ),
31557
- /* @__PURE__ */ jsx82(
31686
+ /* @__PURE__ */ jsx83(
31558
31687
  "button",
31559
31688
  {
31560
31689
  onClick: increaseMonth,
@@ -31567,7 +31696,7 @@ var DateField = (props) => {
31567
31696
  )
31568
31697
  }
31569
31698
  ),
31570
- !isEditTable && error2 && /* @__PURE__ */ jsx82("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31699
+ !isEditTable && error2 && /* @__PURE__ */ jsx83("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31571
31700
  ] });
31572
31701
  }
31573
31702
  }
@@ -31576,26 +31705,26 @@ var DateField = (props) => {
31576
31705
  };
31577
31706
 
31578
31707
  // src/widgets/basic/download-binary-field/download-binary.tsx
31579
- import { jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31708
+ import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31580
31709
  var DownLoadBinaryField = (props) => {
31581
31710
  const { handleFileDownload } = props;
31582
31711
  const { t: t3 } = useI18n();
31583
- return /* @__PURE__ */ jsxs53(
31712
+ return /* @__PURE__ */ jsxs54(
31584
31713
  "button",
31585
31714
  {
31586
31715
  type: "button",
31587
31716
  onClick: handleFileDownload,
31588
31717
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31589
31718
  children: [
31590
- /* @__PURE__ */ jsx83(DownloadIcon, {}),
31591
- /* @__PURE__ */ jsx83("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31719
+ /* @__PURE__ */ jsx84(DownloadIcon, {}),
31720
+ /* @__PURE__ */ jsx84("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31592
31721
  ]
31593
31722
  }
31594
31723
  );
31595
31724
  };
31596
31725
 
31597
31726
  // src/widgets/basic/download-file-field/download-file.tsx
31598
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31727
+ import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31599
31728
  var DownloadFileField = (props) => {
31600
31729
  const {
31601
31730
  readonly,
@@ -31607,15 +31736,15 @@ var DownloadFileField = (props) => {
31607
31736
  handleFileChange,
31608
31737
  handleFileDownload
31609
31738
  } = props;
31610
- return /* @__PURE__ */ jsxs54("div", { className: "", children: [
31611
- /* @__PURE__ */ jsxs54(
31739
+ return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31740
+ /* @__PURE__ */ jsxs55(
31612
31741
  "label",
31613
31742
  {
31614
31743
  htmlFor: inputId,
31615
31744
  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",
31616
31745
  children: [
31617
- 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" }),
31618
- /* @__PURE__ */ jsx84(
31746
+ 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" }),
31747
+ /* @__PURE__ */ jsx85(
31619
31748
  "input",
31620
31749
  {
31621
31750
  id: inputId,
@@ -31629,7 +31758,7 @@ var DownloadFileField = (props) => {
31629
31758
  ]
31630
31759
  }
31631
31760
  ),
31632
- file && /* @__PURE__ */ jsx84(
31761
+ file && /* @__PURE__ */ jsx85(
31633
31762
  "button",
31634
31763
  {
31635
31764
  onClick: handleFileDownload,
@@ -31643,7 +31772,7 @@ var DownloadFileField = (props) => {
31643
31772
 
31644
31773
  // src/widgets/basic/dropdown-field/dropdown.tsx
31645
31774
  import { useState as useState16 } from "react";
31646
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31775
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31647
31776
  var DropdownField = (props) => {
31648
31777
  const {
31649
31778
  options: options2,
@@ -31657,30 +31786,30 @@ var DropdownField = (props) => {
31657
31786
  } = props;
31658
31787
  const [open, setOpen] = useState16(false);
31659
31788
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31660
- return /* @__PURE__ */ jsxs55(
31789
+ return /* @__PURE__ */ jsxs56(
31661
31790
  "div",
31662
31791
  {
31663
31792
  ref: dropdownRef,
31664
31793
  className: `relative ${className}`,
31665
31794
  onClick: () => setOpen(!open),
31666
31795
  children: [
31667
- /* @__PURE__ */ jsxs55(
31796
+ /* @__PURE__ */ jsxs56(
31668
31797
  "div",
31669
31798
  {
31670
31799
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31671
31800
  children: [
31672
31801
  selectedValue?.icon,
31673
- /* @__PURE__ */ jsx85("span", { children: selectedValue?.label }),
31674
- /* @__PURE__ */ jsx85(ChevronBottomIcon, { className: "h-4 w-4" })
31802
+ /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31803
+ /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31675
31804
  ]
31676
31805
  }
31677
31806
  ),
31678
- open && /* @__PURE__ */ jsx85(
31807
+ open && /* @__PURE__ */ jsx86(
31679
31808
  "div",
31680
31809
  {
31681
31810
  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}`,
31682
31811
  onClick: (e3) => e3.stopPropagation(),
31683
- children: options2.map((option, index4) => /* @__PURE__ */ jsx85(
31812
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31684
31813
  "div",
31685
31814
  {
31686
31815
  onClick: () => {
@@ -31700,7 +31829,7 @@ var DropdownField = (props) => {
31700
31829
  };
31701
31830
 
31702
31831
  // src/widgets/basic/fee-field/fee.tsx
31703
- import { Fragment as Fragment24, jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31832
+ import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31704
31833
  var FeeField = (props) => {
31705
31834
  const { value, formValues } = props;
31706
31835
  const { t: t3 } = useI18n();
@@ -31711,27 +31840,27 @@ var FeeField = (props) => {
31711
31840
  )
31712
31841
  ) + " VND";
31713
31842
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31714
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31843
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31715
31844
  value?.subtotals?.map((sub) => {
31716
31845
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31717
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31718
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31719
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31846
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31847
+ /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31848
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31720
31849
  sub?.name,
31721
31850
  ":"
31722
31851
  ] }),
31723
- /* @__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" })
31852
+ /* @__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" })
31724
31853
  ] }),
31725
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs56(
31854
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31726
31855
  "div",
31727
31856
  {
31728
31857
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31729
31858
  children: [
31730
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31859
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31731
31860
  group?.group_name,
31732
31861
  ":"
31733
31862
  ] }),
31734
- /* @__PURE__ */ jsx86("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31863
+ /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31735
31864
  ]
31736
31865
  },
31737
31866
  `tax_groups_${group?.id}`
@@ -31739,33 +31868,33 @@ var FeeField = (props) => {
31739
31868
  ] });
31740
31869
  }
31741
31870
  }),
31742
- /* @__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: [
31743
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31871
+ /* @__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: [
31872
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31744
31873
  t3("total"),
31745
31874
  ":"
31746
31875
  ] }),
31747
- /* @__PURE__ */ jsx86("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31876
+ /* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31748
31877
  ] }),
31749
- /* @__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: [
31750
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31878
+ /* @__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: [
31879
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31751
31880
  t3("paid_amount"),
31752
31881
  ":"
31753
31882
  ] }),
31754
- /* @__PURE__ */ jsx86("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31883
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31755
31884
  ] }),
31756
- /* @__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: [
31757
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31885
+ /* @__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: [
31886
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31758
31887
  t3("remanining_amount"),
31759
31888
  ":"
31760
31889
  ] }),
31761
- /* @__PURE__ */ jsx86("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31890
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31762
31891
  ] })
31763
31892
  ] });
31764
31893
  };
31765
31894
 
31766
31895
  // src/widgets/basic/file-upload-field/file-upload.tsx
31767
31896
  import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31768
- import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31897
+ import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31769
31898
  var RenderFile = ({
31770
31899
  file,
31771
31900
  onDelete,
@@ -31775,16 +31904,16 @@ var RenderFile = ({
31775
31904
  readAs: "all"
31776
31905
  });
31777
31906
  const fileTypeIcon = {
31778
- "application/pdf": /* @__PURE__ */ jsx87(PdfIcon, {}),
31779
- "application/zip": /* @__PURE__ */ jsx87(ZipIcon, {}),
31780
- "application/x-zip-compressed": /* @__PURE__ */ jsx87(ZipIcon, {}),
31781
- "application/vnd.ms-excel": /* @__PURE__ */ jsx87(ExcelIcon, {}),
31782
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx87(ExcelIcon, {})
31907
+ "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
31908
+ "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
31909
+ "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
31910
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
31911
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
31783
31912
  };
31784
- return /* @__PURE__ */ jsxs57("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31785
- /* @__PURE__ */ jsx87("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31786
- /* @__PURE__ */ jsxs57("div", { children: [
31787
- /* @__PURE__ */ jsx87(
31913
+ return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31914
+ /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31915
+ /* @__PURE__ */ jsxs58("div", { children: [
31916
+ /* @__PURE__ */ jsx88(
31788
31917
  "div",
31789
31918
  {
31790
31919
  style: {
@@ -31794,20 +31923,20 @@ var RenderFile = ({
31794
31923
  children: file?.name || file?.display_name || info?.name
31795
31924
  }
31796
31925
  ),
31797
- /* @__PURE__ */ jsx87("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31926
+ /* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31798
31927
  ] }),
31799
- /* @__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: [
31800
- /* @__PURE__ */ jsx87(
31928
+ /* @__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: [
31929
+ /* @__PURE__ */ jsx88(
31801
31930
  "span",
31802
31931
  {
31803
31932
  onClick: () => onDownload && onDownload(
31804
31933
  file?.data,
31805
31934
  file?.name || file?.display_name || info?.name
31806
31935
  ),
31807
- children: /* @__PURE__ */ jsx87(DownloadIcon, {})
31936
+ children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31808
31937
  }
31809
31938
  ),
31810
- /* @__PURE__ */ jsx87("span", { onClick: onDelete, children: /* @__PURE__ */ jsx87(DeleteIconDanger, {}) })
31939
+ /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31811
31940
  ] })
31812
31941
  ] });
31813
31942
  };
@@ -31841,7 +31970,7 @@ var FileUploadField = (props) => {
31841
31970
  ]);
31842
31971
  }
31843
31972
  }, [value]);
31844
- return /* @__PURE__ */ jsx87(
31973
+ return /* @__PURE__ */ jsx88(
31845
31974
  Controller,
31846
31975
  {
31847
31976
  name: name2 || "",
@@ -31866,8 +31995,8 @@ var FileUploadField = (props) => {
31866
31995
  );
31867
31996
  }
31868
31997
  }, [selectedFiles]);
31869
- return /* @__PURE__ */ jsxs57("div", { className: "file-upload-field", children: [
31870
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx87(
31998
+ return /* @__PURE__ */ jsxs58("div", { className: "file-upload-field", children: [
31999
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
31871
32000
  RenderFile,
31872
32001
  {
31873
32002
  file: fileItem,
@@ -31882,8 +32011,8 @@ var FileUploadField = (props) => {
31882
32011
  }
31883
32012
  }
31884
32013
  )),
31885
- uploadError && /* @__PURE__ */ jsx87("div", { className: "text-[#de4747]", children: uploadError }),
31886
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx87(
32014
+ uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
32015
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx88(
31887
32016
  ButtonSelectFiles,
31888
32017
  {
31889
32018
  fileInputRef,
@@ -31898,7 +32027,7 @@ var FileUploadField = (props) => {
31898
32027
  useUploadFile
31899
32028
  }
31900
32029
  ),
31901
- error2 && !isEditTable && /* @__PURE__ */ jsx87("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32030
+ error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31902
32031
  ] });
31903
32032
  }
31904
32033
  }
@@ -31907,7 +32036,7 @@ var FileUploadField = (props) => {
31907
32036
 
31908
32037
  // src/widgets/basic/float-field/float.tsx
31909
32038
  import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31910
- import { Fragment as Fragment25, jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
32039
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31911
32040
  var FloatField = (props) => {
31912
32041
  const {
31913
32042
  name: name2,
@@ -31925,9 +32054,9 @@ var FloatField = (props) => {
31925
32054
  } = props;
31926
32055
  const { t: t3 } = useI18n();
31927
32056
  if (!isForm && !isEditTable) {
31928
- return /* @__PURE__ */ jsx88("span", { children: formatFloatNumber(propValue ?? defaultValue) });
32057
+ return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31929
32058
  }
31930
- return /* @__PURE__ */ jsx88(
32059
+ return /* @__PURE__ */ jsx89(
31931
32060
  Controller,
31932
32061
  {
31933
32062
  name: name2 ?? "",
@@ -32032,8 +32161,8 @@ var FloatField = (props) => {
32032
32161
  }
32033
32162
  isDirtyRef.current = false;
32034
32163
  };
32035
- return /* @__PURE__ */ jsxs58(Fragment25, { children: [
32036
- /* @__PURE__ */ jsx88(
32164
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
32165
+ /* @__PURE__ */ jsx89(
32037
32166
  "input",
32038
32167
  {
32039
32168
  ref: inputRef,
@@ -32053,7 +32182,7 @@ var FloatField = (props) => {
32053
32182
  `
32054
32183
  }
32055
32184
  ),
32056
- error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32185
+ error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32057
32186
  ] });
32058
32187
  }
32059
32188
  }
@@ -32062,7 +32191,7 @@ var FloatField = (props) => {
32062
32191
 
32063
32192
  // src/widgets/basic/float-time-field/float-time.tsx
32064
32193
  import { useState as useState19 } from "react";
32065
- import { Fragment as Fragment26, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
32194
+ import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
32066
32195
  var FloatTimeField = (props) => {
32067
32196
  const {
32068
32197
  name: name2,
@@ -32078,9 +32207,9 @@ var FloatTimeField = (props) => {
32078
32207
  const { t: t3 } = useI18n();
32079
32208
  if (!isForm) {
32080
32209
  const formatValue = value ?? 0;
32081
- return /* @__PURE__ */ jsx89("span", { children: convertFloatToTime(formatValue) });
32210
+ return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
32082
32211
  }
32083
- return /* @__PURE__ */ jsx89(
32212
+ return /* @__PURE__ */ jsx90(
32084
32213
  Controller,
32085
32214
  {
32086
32215
  name: name2 ?? "",
@@ -32142,8 +32271,8 @@ var FloatTimeField = (props) => {
32142
32271
  }
32143
32272
  onBlur();
32144
32273
  };
32145
- return /* @__PURE__ */ jsxs59(Fragment26, { children: [
32146
- /* @__PURE__ */ jsx89(
32274
+ return /* @__PURE__ */ jsxs60(Fragment26, { children: [
32275
+ /* @__PURE__ */ jsx90(
32147
32276
  "input",
32148
32277
  {
32149
32278
  type: "text",
@@ -32175,7 +32304,7 @@ var FloatTimeField = (props) => {
32175
32304
  readOnly: readonly
32176
32305
  }
32177
32306
  ),
32178
- (error2 || errors) && /* @__PURE__ */ jsx89("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32307
+ (error2 || errors) && /* @__PURE__ */ jsx90("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32179
32308
  ] });
32180
32309
  }
32181
32310
  }
@@ -32184,7 +32313,7 @@ var FloatTimeField = (props) => {
32184
32313
 
32185
32314
  // src/widgets/basic/html-field/html.tsx
32186
32315
  import { useEffect as useEffect20, useRef as useRef17 } from "react";
32187
- import { jsx as jsx90 } from "react/jsx-runtime";
32316
+ import { jsx as jsx91 } from "react/jsx-runtime";
32188
32317
  var HtmlField = (props) => {
32189
32318
  const {
32190
32319
  name: name2,
@@ -32198,9 +32327,9 @@ var HtmlField = (props) => {
32198
32327
  } = props;
32199
32328
  const divRef = useRef17(null);
32200
32329
  if (!isForm && !isEditTable) {
32201
- return /* @__PURE__ */ jsx90("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32330
+ return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32202
32331
  }
32203
- return /* @__PURE__ */ jsx90(
32332
+ return /* @__PURE__ */ jsx91(
32204
32333
  Controller,
32205
32334
  {
32206
32335
  name: name2 ?? "",
@@ -32219,7 +32348,7 @@ var HtmlField = (props) => {
32219
32348
  onChange2(newValue, "");
32220
32349
  }
32221
32350
  };
32222
- return /* @__PURE__ */ jsx90(
32351
+ return /* @__PURE__ */ jsx91(
32223
32352
  "div",
32224
32353
  {
32225
32354
  ref: divRef,
@@ -32238,28 +32367,28 @@ var HtmlField = (props) => {
32238
32367
  };
32239
32368
 
32240
32369
  // src/widgets/basic/image-field/image.tsx
32241
- import { jsx as jsx91 } from "react/jsx-runtime";
32370
+ import { jsx as jsx92 } from "react/jsx-runtime";
32242
32371
  var ImageField = (props) => {
32243
32372
  const { value, type, name: name2, baseURL } = props;
32244
32373
  if (!value) return null;
32245
32374
  if (type === "url") {
32246
- return /* @__PURE__ */ jsx91("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32375
+ return /* @__PURE__ */ jsx92("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32247
32376
  }
32248
- return /* @__PURE__ */ jsx91("div", { id: "qr-code", children: /* @__PURE__ */ jsx91("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32377
+ return /* @__PURE__ */ jsx92("div", { id: "qr-code", children: /* @__PURE__ */ jsx92("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32249
32378
  };
32250
32379
 
32251
32380
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32252
32381
  import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
32253
32382
 
32254
32383
  // src/widgets/basic/information-field/information.tsx
32255
- import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs60 } from "react/jsx-runtime";
32384
+ import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
32256
32385
  var InfomationField = (props) => {
32257
32386
  const { value, isForm = false, showName = true, stringToColor } = props;
32258
32387
  if (!value || Array.isArray(value) && value.length === 0) {
32259
- return /* @__PURE__ */ jsx92(Fragment27, {});
32388
+ return /* @__PURE__ */ jsx93(Fragment27, {});
32260
32389
  }
32261
32390
  const inforValues = Array.isArray(value) ? value : [value];
32262
- 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(
32391
+ 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(
32263
32392
  AvatarField,
32264
32393
  {
32265
32394
  id: item.id,
@@ -32268,8 +32397,8 @@ var InfomationField = (props) => {
32268
32397
  stringToColor
32269
32398
  },
32270
32399
  item.id
32271
- )) : /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center w-max", children: [
32272
- /* @__PURE__ */ jsx92(
32400
+ )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
32401
+ /* @__PURE__ */ jsx93(
32273
32402
  AvatarField,
32274
32403
  {
32275
32404
  avatarSrc: inforValues[0].image_256,
@@ -32279,12 +32408,12 @@ var InfomationField = (props) => {
32279
32408
  stringToColor
32280
32409
  }
32281
32410
  ),
32282
- showName && /* @__PURE__ */ jsx92("span", { className: "capitalize", children: inforValues[0].display_name })
32411
+ showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
32283
32412
  ] }) });
32284
32413
  };
32285
32414
 
32286
32415
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32287
- import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
32416
+ import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32288
32417
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32289
32418
  const { selectProps, data, menuList } = props;
32290
32419
  const { relation } = selectProps;
@@ -32293,8 +32422,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32293
32422
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32294
32423
  )
32295
32424
  )?.[0]?.action?.id;
32296
- return /* @__PURE__ */ jsxs61("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32297
- /* @__PURE__ */ jsx93(
32425
+ return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32426
+ /* @__PURE__ */ jsx94(
32298
32427
  AvatarField,
32299
32428
  {
32300
32429
  id: data?.id,
@@ -32306,8 +32435,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32306
32435
  stringToColor
32307
32436
  }
32308
32437
  ),
32309
- /* @__PURE__ */ jsx93("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32310
- /* @__PURE__ */ jsx93(
32438
+ /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32439
+ /* @__PURE__ */ jsx94(
32311
32440
  "span",
32312
32441
  {
32313
32442
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32315,7 +32444,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32315
32444
  e3.stopPropagation();
32316
32445
  props.removeProps.onClick();
32317
32446
  },
32318
- children: /* @__PURE__ */ jsx93(CloseIcon, {})
32447
+ children: /* @__PURE__ */ jsx94(CloseIcon, {})
32319
32448
  }
32320
32449
  )
32321
32450
  ] });
@@ -32325,9 +32454,9 @@ var CustomMenuList = (props) => {
32325
32454
  const { setIsShowModalMany2Many, searchable } = selectProps;
32326
32455
  const { t: t3 } = useI18n();
32327
32456
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
32328
- return /* @__PURE__ */ jsxs61(components.MenuList, { ...props, className: "z-[99]", children: [
32457
+ return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
32329
32458
  limitedChildren,
32330
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs61(
32459
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
32331
32460
  "button",
32332
32461
  {
32333
32462
  type: "button",
@@ -32372,7 +32501,7 @@ var Many2ManyTagField = (props) => {
32372
32501
  value: item.id,
32373
32502
  label: item.name ?? item.display_name
32374
32503
  })) : [];
32375
- return /* @__PURE__ */ jsx93(
32504
+ return /* @__PURE__ */ jsx94(
32376
32505
  InfomationField,
32377
32506
  {
32378
32507
  value: optionValue || null,
@@ -32381,7 +32510,7 @@ var Many2ManyTagField = (props) => {
32381
32510
  }
32382
32511
  );
32383
32512
  }
32384
- return /* @__PURE__ */ jsx93(
32513
+ return /* @__PURE__ */ jsx94(
32385
32514
  Controller,
32386
32515
  {
32387
32516
  name: name2 ?? "",
@@ -32417,8 +32546,8 @@ var Many2ManyTagField = (props) => {
32417
32546
  onChange2?.(name2 ?? "", newValue);
32418
32547
  clearErrors(name2);
32419
32548
  };
32420
- return /* @__PURE__ */ jsxs61("div", { className: "group h-full overflow-y-auto", children: [
32421
- /* @__PURE__ */ jsx93(
32549
+ return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32550
+ /* @__PURE__ */ jsx94(
32422
32551
  StateManagedSelect$1,
32423
32552
  {
32424
32553
  options: options2,
@@ -32496,7 +32625,7 @@ var Many2ManyTagField = (props) => {
32496
32625
  })
32497
32626
  },
32498
32627
  components: isUser ? {
32499
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx93(
32628
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
32500
32629
  CustomMultiValue,
32501
32630
  {
32502
32631
  ...multiValueProps,
@@ -32505,7 +32634,7 @@ var Many2ManyTagField = (props) => {
32505
32634
  ),
32506
32635
  IndicatorSeparator: () => null
32507
32636
  } : {
32508
- MenuList: (menuListProps) => /* @__PURE__ */ jsx93(
32637
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
32509
32638
  CustomMenuList,
32510
32639
  {
32511
32640
  ...menuListProps,
@@ -32516,13 +32645,13 @@ var Many2ManyTagField = (props) => {
32516
32645
  }
32517
32646
  ),
32518
32647
  IndicatorSeparator: () => null,
32519
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.DropdownIndicator, { ...props2 }),
32520
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.ClearIndicator, { ...props2 })
32648
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
32649
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.ClearIndicator, { ...props2 })
32521
32650
  },
32522
32651
  required: !invisible && required
32523
32652
  }
32524
32653
  ),
32525
- !isEditTable && error2 && /* @__PURE__ */ jsx93("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32654
+ !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32526
32655
  ] });
32527
32656
  }
32528
32657
  }
@@ -32531,7 +32660,7 @@ var Many2ManyTagField = (props) => {
32531
32660
 
32532
32661
  // src/widgets/basic/monetary-field/monetary.tsx
32533
32662
  import { useEffect as useEffect22 } from "react";
32534
- import { Fragment as Fragment28, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32663
+ import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32535
32664
  var MonetaryField = (props) => {
32536
32665
  const { t: t3 } = useI18n();
32537
32666
  const {
@@ -32551,26 +32680,26 @@ var MonetaryField = (props) => {
32551
32680
  isEditTable
32552
32681
  } = props;
32553
32682
  if (isForm && name2 === "amount_residual") {
32554
- return /* @__PURE__ */ jsxs62("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32555
- /* @__PURE__ */ jsxs62("span", { className: "font-semibold", children: [
32683
+ return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32684
+ /* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
32556
32685
  string,
32557
32686
  ":"
32558
32687
  ] }),
32559
- /* @__PURE__ */ jsx94("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32688
+ /* @__PURE__ */ jsx95("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32560
32689
  ] });
32561
32690
  }
32562
32691
  if (!isForm) {
32563
32692
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32564
32693
  if (widget === "monetary" && !formValues?.currency_id) {
32565
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32694
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32566
32695
  parseFloat(String(value ?? defaultValue))
32567
32696
  )} VND` });
32568
32697
  }
32569
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32698
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32570
32699
  parseFloat(value ?? defaultValue)
32571
32700
  )} ${currencySymbol}` });
32572
32701
  }
32573
- return /* @__PURE__ */ jsx94(
32702
+ return /* @__PURE__ */ jsx95(
32574
32703
  Controller,
32575
32704
  {
32576
32705
  name: name2 ?? "",
@@ -32589,8 +32718,8 @@ var MonetaryField = (props) => {
32589
32718
  clearErrors(name2);
32590
32719
  }
32591
32720
  }, [value2]);
32592
- return /* @__PURE__ */ jsxs62(Fragment28, { children: [
32593
- /* @__PURE__ */ jsx94(
32721
+ return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32722
+ /* @__PURE__ */ jsx95(
32594
32723
  "input",
32595
32724
  {
32596
32725
  value: formatNumberOnly(value2),
@@ -32628,7 +32757,7 @@ var MonetaryField = (props) => {
32628
32757
  `
32629
32758
  }
32630
32759
  ),
32631
- !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32760
+ !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32632
32761
  ] });
32633
32762
  }
32634
32763
  }
@@ -32636,14 +32765,14 @@ var MonetaryField = (props) => {
32636
32765
  };
32637
32766
 
32638
32767
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32639
- import { jsx as jsx95 } from "react/jsx-runtime";
32768
+ import { jsx as jsx96 } from "react/jsx-runtime";
32640
32769
  var PaidBadgedField = () => {
32641
- return /* @__PURE__ */ jsx95("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx95(PaidIcon, {}) });
32770
+ return /* @__PURE__ */ jsx96("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx96(PaidIcon, {}) });
32642
32771
  };
32643
32772
 
32644
32773
  // src/widgets/basic/priority-field/rating-star.tsx
32645
32774
  import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32646
- import { jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
32775
+ import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32647
32776
  var RatingStarField = (props) => {
32648
32777
  const {
32649
32778
  label,
@@ -32678,7 +32807,7 @@ var RatingStarField = (props) => {
32678
32807
  setHover(0);
32679
32808
  setRating(0);
32680
32809
  };
32681
- return /* @__PURE__ */ jsx96(
32810
+ return /* @__PURE__ */ jsx97(
32682
32811
  "div",
32683
32812
  {
32684
32813
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32688,17 +32817,17 @@ var RatingStarField = (props) => {
32688
32817
  const starValue = index4 + 1;
32689
32818
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32690
32819
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32691
- return /* @__PURE__ */ jsxs63(React17.Fragment, { children: [
32692
- /* @__PURE__ */ jsx96(
32820
+ return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32821
+ /* @__PURE__ */ jsx97(
32693
32822
  "div",
32694
32823
  {
32695
32824
  onMouseEnter: () => handleHover(starValue),
32696
32825
  onClick: () => handleClick(starValue),
32697
32826
  "data-tooltip-id": `${id}-${starValue}`,
32698
- children: /* @__PURE__ */ jsx96(StarIcon, { fill: fillColor, stroke: strokeColor })
32827
+ children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32699
32828
  }
32700
32829
  ),
32701
- /* @__PURE__ */ jsx96(
32830
+ /* @__PURE__ */ jsx97(
32702
32831
  M,
32703
32832
  {
32704
32833
  className: "z-50",
@@ -32714,7 +32843,7 @@ var RatingStarField = (props) => {
32714
32843
  };
32715
32844
 
32716
32845
  // src/widgets/basic/priority-field/priority.tsx
32717
- import { jsx as jsx97 } from "react/jsx-runtime";
32846
+ import { jsx as jsx98 } from "react/jsx-runtime";
32718
32847
  var PriorityField = (props) => {
32719
32848
  const {
32720
32849
  isForm,
@@ -32730,7 +32859,7 @@ var PriorityField = (props) => {
32730
32859
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32731
32860
  const defaultPriority = parseInt(value) + 1;
32732
32861
  if (!isForm) {
32733
- return /* @__PURE__ */ jsx97(
32862
+ return /* @__PURE__ */ jsx98(
32734
32863
  RatingStarField,
32735
32864
  {
32736
32865
  label,
@@ -32741,7 +32870,7 @@ var PriorityField = (props) => {
32741
32870
  }
32742
32871
  );
32743
32872
  }
32744
- return /* @__PURE__ */ jsx97(
32873
+ return /* @__PURE__ */ jsx98(
32745
32874
  Controller,
32746
32875
  {
32747
32876
  name: name ?? "",
@@ -32751,7 +32880,7 @@ var PriorityField = (props) => {
32751
32880
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32752
32881
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32753
32882
  };
32754
- return /* @__PURE__ */ jsx97(
32883
+ return /* @__PURE__ */ jsx98(
32755
32884
  RatingStarField,
32756
32885
  {
32757
32886
  label,
@@ -32768,7 +32897,7 @@ var PriorityField = (props) => {
32768
32897
 
32769
32898
  // src/widgets/basic/radio-group-field/radio-group.tsx
32770
32899
  import { useEffect as useEffect24 } from "react";
32771
- import { jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
32900
+ import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32772
32901
  var RadioGroupField = (props) => {
32773
32902
  const {
32774
32903
  name: name2,
@@ -32787,13 +32916,13 @@ var RadioGroupField = (props) => {
32787
32916
  }
32788
32917
  }, [selection, name2, setValue]);
32789
32918
  if (!methods) return null;
32790
- return /* @__PURE__ */ jsx98(
32919
+ return /* @__PURE__ */ jsx99(
32791
32920
  Controller,
32792
32921
  {
32793
32922
  name: name2 ?? "",
32794
32923
  control: methods.control,
32795
- 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: [
32796
- /* @__PURE__ */ jsx98(
32924
+ 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: [
32925
+ /* @__PURE__ */ jsx99(
32797
32926
  "input",
32798
32927
  {
32799
32928
  type: "radio",
@@ -32812,7 +32941,7 @@ var RadioGroupField = (props) => {
32812
32941
  className: "custom-radio"
32813
32942
  }
32814
32943
  ),
32815
- /* @__PURE__ */ jsx98("label", { htmlFor: String(select[0]), children: select[1] })
32944
+ /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32816
32945
  ] }, select[0])) })
32817
32946
  }
32818
32947
  );
@@ -32820,7 +32949,7 @@ var RadioGroupField = (props) => {
32820
32949
 
32821
32950
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32822
32951
  var import_moment3 = __toESM(require_moment());
32823
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32952
+ import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32824
32953
  var RemainingDaysField = (props) => {
32825
32954
  const {
32826
32955
  value,
@@ -32831,14 +32960,14 @@ var RemainingDaysField = (props) => {
32831
32960
  if (!value) return null;
32832
32961
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32833
32962
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32834
- return /* @__PURE__ */ jsxs65("div", { className: isForm ? "mb-4" : "", children: [
32835
- /* @__PURE__ */ jsx99(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32836
- /* @__PURE__ */ jsx99(
32963
+ return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32964
+ /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32965
+ /* @__PURE__ */ jsx100(
32837
32966
  "div",
32838
32967
  {
32839
32968
  "data-tooltip-id": `remainingDays_${value}`,
32840
32969
  className: "flex items-center w-fit cursor-context-menu",
32841
- children: /* @__PURE__ */ jsx99(
32970
+ children: /* @__PURE__ */ jsx100(
32842
32971
  "div",
32843
32972
  {
32844
32973
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32851,7 +32980,7 @@ var RemainingDaysField = (props) => {
32851
32980
  };
32852
32981
 
32853
32982
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32854
- import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32983
+ import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32855
32984
  var SelectDropdownField = (props) => {
32856
32985
  const { t: t3 } = useI18n();
32857
32986
  const {
@@ -32873,9 +33002,9 @@ var SelectDropdownField = (props) => {
32873
33002
  label: val[1]
32874
33003
  })) : [];
32875
33004
  if (!isForm && !isEditTable) {
32876
- return /* @__PURE__ */ jsx100("span", { children: options2?.find((item) => item?.value === value)?.label });
33005
+ return /* @__PURE__ */ jsx101("span", { children: options2?.find((item) => item?.value === value)?.label });
32877
33006
  } else {
32878
- return /* @__PURE__ */ jsx100(
33007
+ return /* @__PURE__ */ jsx101(
32879
33008
  Controller,
32880
33009
  {
32881
33010
  name: name2 || "",
@@ -32902,8 +33031,8 @@ var SelectDropdownField = (props) => {
32902
33031
  value: defaultValue || null,
32903
33032
  required: !invisible && required
32904
33033
  };
32905
- return /* @__PURE__ */ jsxs66(Fragment29, { children: [
32906
- /* @__PURE__ */ jsx100("div", { className: "group", children: /* @__PURE__ */ jsx100(
33034
+ return /* @__PURE__ */ jsxs67(Fragment29, { children: [
33035
+ /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32907
33036
  StateManagedSelect$1,
32908
33037
  {
32909
33038
  ...commonProps,
@@ -32958,12 +33087,12 @@ var SelectDropdownField = (props) => {
32958
33087
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32959
33088
  components: {
32960
33089
  IndicatorSeparator: () => null,
32961
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx100(components.DropdownIndicator, { ...props2 })
33090
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32962
33091
  },
32963
33092
  noOptionsMessage: () => t3("no-available")
32964
33093
  }
32965
33094
  ) }),
32966
- !isEditTable && error2 && /* @__PURE__ */ jsx100("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33095
+ !isEditTable && error2 && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32967
33096
  ] });
32968
33097
  }
32969
33098
  }
@@ -32972,7 +33101,7 @@ var SelectDropdownField = (props) => {
32972
33101
  };
32973
33102
 
32974
33103
  // src/widgets/basic/textarea-field/textarea.tsx
32975
- import { jsx as jsx101 } from "react/jsx-runtime";
33104
+ import { jsx as jsx102 } from "react/jsx-runtime";
32976
33105
  var TextAreaField = (props) => {
32977
33106
  const {
32978
33107
  methods,
@@ -32996,9 +33125,9 @@ var TextAreaField = (props) => {
32996
33125
  }
32997
33126
  }) : {};
32998
33127
  if (!isForm) {
32999
- return /* @__PURE__ */ jsx101("span", { children: value && typeof value === "object" ? value.display_name : value });
33128
+ return /* @__PURE__ */ jsx102("span", { children: value && typeof value === "object" ? value.display_name : value });
33000
33129
  }
33001
- return /* @__PURE__ */ jsx101(
33130
+ return /* @__PURE__ */ jsx102(
33002
33131
  "textarea",
33003
33132
  {
33004
33133
  ...formProps,
@@ -33014,7 +33143,7 @@ var TextAreaField = (props) => {
33014
33143
  };
33015
33144
 
33016
33145
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
33017
- import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
33146
+ import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
33018
33147
  var ToggleButtonField = (props) => {
33019
33148
  const {
33020
33149
  name: name2,
@@ -33024,13 +33153,13 @@ var ToggleButtonField = (props) => {
33024
33153
  onChange: onChange2,
33025
33154
  methods
33026
33155
  } = props;
33027
- return /* @__PURE__ */ jsx102(
33156
+ return /* @__PURE__ */ jsx103(
33028
33157
  Controller,
33029
33158
  {
33030
33159
  name: name2 ?? "",
33031
33160
  control: methods?.control,
33032
- 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: [
33033
- /* @__PURE__ */ jsx102(
33161
+ 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: [
33162
+ /* @__PURE__ */ jsx103(
33034
33163
  "input",
33035
33164
  {
33036
33165
  ...field,
@@ -33049,7 +33178,7 @@ var ToggleButtonField = (props) => {
33049
33178
  checked: field.value ?? false
33050
33179
  }
33051
33180
  ),
33052
- /* @__PURE__ */ jsx102(
33181
+ /* @__PURE__ */ jsx103(
33053
33182
  "span",
33054
33183
  {
33055
33184
  style: {
@@ -33058,7 +33187,7 @@ var ToggleButtonField = (props) => {
33058
33187
  },
33059
33188
  className: `rounded-full transition duration-300
33060
33189
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
33061
- children: /* @__PURE__ */ jsx102(
33190
+ children: /* @__PURE__ */ jsx103(
33062
33191
  "span",
33063
33192
  {
33064
33193
  style: {
@@ -33083,7 +33212,7 @@ var ToggleButtonField = (props) => {
33083
33212
 
33084
33213
  // src/widgets/basic/integer-field/integer.tsx
33085
33214
  import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
33086
- import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
33215
+ import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
33087
33216
  var IntegerField = (props) => {
33088
33217
  const {
33089
33218
  name: name2,
@@ -33102,9 +33231,9 @@ var IntegerField = (props) => {
33102
33231
  const { t: t3 } = useI18n();
33103
33232
  if (!isForm && !isEditTable) {
33104
33233
  const displayValue = value ?? defaultValue;
33105
- return /* @__PURE__ */ jsx103("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33234
+ return /* @__PURE__ */ jsx104("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33106
33235
  }
33107
- return /* @__PURE__ */ jsx103(
33236
+ return /* @__PURE__ */ jsx104(
33108
33237
  Controller,
33109
33238
  {
33110
33239
  name: name2 || "",
@@ -33182,8 +33311,8 @@ var IntegerField = (props) => {
33182
33311
  inputRef.current?.blur();
33183
33312
  clearErrors(name2);
33184
33313
  };
33185
- return /* @__PURE__ */ jsxs68(Fragment30, { children: [
33186
- /* @__PURE__ */ jsx103(
33314
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
33315
+ /* @__PURE__ */ jsx104(
33187
33316
  "input",
33188
33317
  {
33189
33318
  ref: inputRef,
@@ -33218,7 +33347,7 @@ var IntegerField = (props) => {
33218
33347
  `
33219
33348
  }
33220
33349
  ),
33221
- error2 && isEditTable && /* @__PURE__ */ jsx103("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33350
+ error2 && isEditTable && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33222
33351
  ] });
33223
33352
  }
33224
33353
  }
@@ -33226,7 +33355,7 @@ var IntegerField = (props) => {
33226
33355
  };
33227
33356
 
33228
33357
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33229
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
33358
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33230
33359
  var StatusDropdownField = (props) => {
33231
33360
  const {
33232
33361
  buttonRef,
@@ -33238,13 +33367,13 @@ var StatusDropdownField = (props) => {
33238
33367
  handleClick,
33239
33368
  colors: colors2
33240
33369
  } = props;
33241
- return /* @__PURE__ */ jsxs69(
33370
+ return /* @__PURE__ */ jsxs70(
33242
33371
  "div",
33243
33372
  {
33244
33373
  ref: buttonRef,
33245
33374
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
33246
33375
  children: [
33247
- /* @__PURE__ */ jsx104(
33376
+ /* @__PURE__ */ jsx105(
33248
33377
  "button",
33249
33378
  {
33250
33379
  type: "button",
@@ -33252,23 +33381,23 @@ var StatusDropdownField = (props) => {
33252
33381
  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"}`
33253
33382
  }
33254
33383
  ),
33255
- 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) => {
33384
+ 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) => {
33256
33385
  const isActive = item[0] == state;
33257
- return /* @__PURE__ */ jsxs69(
33386
+ return /* @__PURE__ */ jsxs70(
33258
33387
  "div",
33259
33388
  {
33260
33389
  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" : ""}`,
33261
33390
  onClick: () => handleClick(item[0]),
33262
33391
  children: [
33263
- /* @__PURE__ */ jsx104("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx104(CheckIcon, {}) }),
33264
- /* @__PURE__ */ jsxs69("div", { className: "flex items-center gap-2", children: [
33265
- /* @__PURE__ */ jsx104(
33392
+ /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
33393
+ /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
33394
+ /* @__PURE__ */ jsx105(
33266
33395
  "div",
33267
33396
  {
33268
33397
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33269
33398
  }
33270
33399
  ),
33271
- /* @__PURE__ */ jsx104("span", { className: "text-sm", children: item[1] })
33400
+ /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
33272
33401
  ] })
33273
33402
  ]
33274
33403
  },
@@ -33283,7 +33412,7 @@ var StatusDropdownField = (props) => {
33283
33412
  // src/widgets/basic/many2many-field/many2many.tsx
33284
33413
  import { createPortal as createPortal5 } from "react-dom";
33285
33414
  import { useEffect as useEffect26 } from "react";
33286
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33415
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33287
33416
  var Many2ManyField = (props) => {
33288
33417
  const { t: t3 } = useI18n();
33289
33418
  const {
@@ -33357,7 +33486,7 @@ var Many2ManyField = (props) => {
33357
33486
  };
33358
33487
  }, [selectedTags]);
33359
33488
  return createPortal5(
33360
- /* @__PURE__ */ jsxs70(
33489
+ /* @__PURE__ */ jsxs71(
33361
33490
  "div",
33362
33491
  {
33363
33492
  style: {
@@ -33365,8 +33494,8 @@ var Many2ManyField = (props) => {
33365
33494
  },
33366
33495
  className: "fixed bottom-0 left-0 right-0 top-0",
33367
33496
  children: [
33368
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33369
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs70(
33497
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33498
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
33370
33499
  "div",
33371
33500
  {
33372
33501
  style: {
@@ -33374,12 +33503,12 @@ var Many2ManyField = (props) => {
33374
33503
  },
33375
33504
  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",
33376
33505
  children: [
33377
- /* @__PURE__ */ jsxs70("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33378
- /* @__PURE__ */ jsx105("div", { className: "text-[20px] font-semibold", children: title }),
33379
- /* @__PURE__ */ jsx105("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx105(CloseIcon, {}) })
33506
+ /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33507
+ /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
33508
+ /* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
33380
33509
  ] }),
33381
- /* @__PURE__ */ jsxs70("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33382
- /* @__PURE__ */ jsx105("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx105(
33510
+ /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33511
+ /* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
33383
33512
  Search,
33384
33513
  {
33385
33514
  removeSearchItems,
@@ -33413,7 +33542,7 @@ var Many2ManyField = (props) => {
33413
33542
  groupByList
33414
33543
  }
33415
33544
  ) }),
33416
- /* @__PURE__ */ jsx105(
33545
+ /* @__PURE__ */ jsx106(
33417
33546
  PaginationView,
33418
33547
  {
33419
33548
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33430,20 +33559,20 @@ var Many2ManyField = (props) => {
33430
33559
  }
33431
33560
  )
33432
33561
  ] }),
33433
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx105("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx105("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx105(
33562
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx106("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx106("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx106(
33434
33563
  "div",
33435
33564
  {
33436
33565
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33437
- 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(
33566
+ 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(
33438
33567
  "div",
33439
33568
  {
33440
33569
  className: `flex w-full items-center h-full overflow-auto `,
33441
- children: /* @__PURE__ */ jsx105("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs70(
33570
+ children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
33442
33571
  "table",
33443
33572
  {
33444
33573
  className: `relative w-full bg-white custom-dropdown `,
33445
33574
  children: [
33446
- /* @__PURE__ */ jsx105(
33575
+ /* @__PURE__ */ jsx106(
33447
33576
  TableHead,
33448
33577
  {
33449
33578
  columns,
@@ -33453,7 +33582,7 @@ var Many2ManyField = (props) => {
33453
33582
  handleCheckBoxAll
33454
33583
  }
33455
33584
  ),
33456
- rows?.length > 0 ? /* @__PURE__ */ jsx105(
33585
+ rows?.length > 0 ? /* @__PURE__ */ jsx106(
33457
33586
  TableBody,
33458
33587
  {
33459
33588
  tableGroupController,
@@ -33493,16 +33622,16 @@ var Many2ManyField = (props) => {
33493
33622
  checkedAll,
33494
33623
  context
33495
33624
  }
33496
- ) : /* @__PURE__ */ jsx105("tr", { children: /* @__PURE__ */ jsx105(
33625
+ ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
33497
33626
  "td",
33498
33627
  {
33499
33628
  className: "w-full",
33500
33629
  colSpan: columns?.length + 2,
33501
- children: /* @__PURE__ */ jsx105(
33630
+ children: /* @__PURE__ */ jsx106(
33502
33631
  "div",
33503
33632
  {
33504
33633
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33505
- children: /* @__PURE__ */ jsx105(EmptyTable, {})
33634
+ children: /* @__PURE__ */ jsx106(EmptyTable, {})
33506
33635
  }
33507
33636
  )
33508
33637
  }
@@ -33513,9 +33642,9 @@ var Many2ManyField = (props) => {
33513
33642
  }
33514
33643
  ) }) })
33515
33644
  }
33516
- ) }) }) : /* @__PURE__ */ jsx105(LayerLoading, {}),
33517
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2 mt-auto", children: [
33518
- isDisplayCheckbox && /* @__PURE__ */ jsx105(
33645
+ ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33646
+ /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33647
+ isDisplayCheckbox && /* @__PURE__ */ jsx106(
33519
33648
  "button",
33520
33649
  {
33521
33650
  disabled: selectedRowKeys?.length === 0,
@@ -33525,7 +33654,7 @@ var Many2ManyField = (props) => {
33525
33654
  children: t3("choose")
33526
33655
  }
33527
33656
  ),
33528
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx105(
33657
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33529
33658
  "button",
33530
33659
  {
33531
33660
  type: "button",
@@ -33541,7 +33670,7 @@ var Many2ManyField = (props) => {
33541
33670
  children: t3("new")
33542
33671
  }
33543
33672
  ),
33544
- /* @__PURE__ */ jsx105(
33673
+ /* @__PURE__ */ jsx106(
33545
33674
  "button",
33546
33675
  {
33547
33676
  type: "button",
@@ -33563,15 +33692,15 @@ var Many2ManyField = (props) => {
33563
33692
 
33564
33693
  // src/widgets/basic/many2one-field/many2one.tsx
33565
33694
  import React18, { useEffect as useEffect27 } from "react";
33566
- import { Fragment as Fragment31, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33695
+ import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33567
33696
  var CustomMenuList2 = (props) => {
33568
33697
  const { t: t3 } = useI18n();
33569
33698
  const { options: options2, children, selectProps } = props;
33570
33699
  const { setIsShowModalMany2Many, searchable } = selectProps;
33571
33700
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33572
- return /* @__PURE__ */ jsxs71(components.MenuList, { ...props, className: "z-[99]", children: [
33701
+ return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33573
33702
  limitedChildren,
33574
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs71(
33703
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33575
33704
  "button",
33576
33705
  {
33577
33706
  type: "button",
@@ -33614,14 +33743,14 @@ var Many2OneField = (props) => {
33614
33743
  const { t: t3 } = useI18n();
33615
33744
  if (!isForm && !isEditTable) {
33616
33745
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33617
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33746
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33618
33747
  allowShowDetail && renderDetail({
33619
33748
  idToolTip: String(name2) + Number(index4),
33620
33749
  model: options2?.model ?? relation,
33621
33750
  context: contextObject,
33622
33751
  idForm: id
33623
33752
  }),
33624
- /* @__PURE__ */ jsx106(
33753
+ /* @__PURE__ */ jsx107(
33625
33754
  "span",
33626
33755
  {
33627
33756
  className: "cursor-pointer",
@@ -33632,20 +33761,20 @@ var Many2OneField = (props) => {
33632
33761
  )
33633
33762
  ] });
33634
33763
  }
33635
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33764
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33636
33765
  allowShowDetail && renderDetail({
33637
33766
  idToolTip: String(name2),
33638
33767
  model: options2?.model ?? relation,
33639
33768
  context: contextObject,
33640
33769
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33641
33770
  }),
33642
- /* @__PURE__ */ jsx106(
33771
+ /* @__PURE__ */ jsx107(
33643
33772
  "div",
33644
33773
  {
33645
33774
  id: name2,
33646
33775
  "data-tooltip-id": name2,
33647
33776
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33648
- children: /* @__PURE__ */ jsx106(
33777
+ children: /* @__PURE__ */ jsx107(
33649
33778
  Controller,
33650
33779
  {
33651
33780
  name: name2 ?? "",
@@ -33670,8 +33799,8 @@ var Many2OneField = (props) => {
33670
33799
  methods?.clearErrors(name2);
33671
33800
  }
33672
33801
  }, [selectedOption]);
33673
- return /* @__PURE__ */ jsxs71("div", { className: "h-full", children: [
33674
- /* @__PURE__ */ jsx106(
33802
+ return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33803
+ /* @__PURE__ */ jsx107(
33675
33804
  StateManagedSelect$1,
33676
33805
  {
33677
33806
  menuShouldScrollIntoView: false,
@@ -33747,7 +33876,7 @@ var Many2OneField = (props) => {
33747
33876
  })
33748
33877
  },
33749
33878
  components: {
33750
- MenuList: (menuListProps) => /* @__PURE__ */ jsx106(
33879
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33751
33880
  CustomMenuList2,
33752
33881
  {
33753
33882
  ...menuListProps,
@@ -33758,13 +33887,13 @@ var Many2OneField = (props) => {
33758
33887
  }
33759
33888
  ),
33760
33889
  IndicatorSeparator: () => null,
33761
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx106(components.DropdownIndicator, { ...props2 })
33890
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33762
33891
  },
33763
33892
  isDisabled: readonly,
33764
33893
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33765
33894
  }
33766
33895
  ),
33767
- !isEditTable && error2 && /* @__PURE__ */ jsx106("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33896
+ !isEditTable && error2 && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33768
33897
  ] });
33769
33898
  }
33770
33899
  }
@@ -33775,7 +33904,7 @@ var Many2OneField = (props) => {
33775
33904
  };
33776
33905
 
33777
33906
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33778
- import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33907
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33779
33908
  var StatusbarDurationField = (props) => {
33780
33909
  const {
33781
33910
  disabled,
@@ -33785,14 +33914,14 @@ var StatusbarDurationField = (props) => {
33785
33914
  defaultValue,
33786
33915
  setModalStatus
33787
33916
  } = props;
33788
- return /* @__PURE__ */ jsx107(
33917
+ return /* @__PURE__ */ jsx108(
33789
33918
  "div",
33790
33919
  {
33791
33920
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33792
- children: /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[24px]", children: [
33793
- /* @__PURE__ */ jsx107("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33921
+ children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33922
+ /* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33794
33923
  const value = option?.id === defaultValue;
33795
- return /* @__PURE__ */ jsxs72(
33924
+ return /* @__PURE__ */ jsxs73(
33796
33925
  "label",
33797
33926
  {
33798
33927
  onClick: () => !disabled && handleClick(option.id),
@@ -33802,7 +33931,7 @@ var StatusbarDurationField = (props) => {
33802
33931
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33803
33932
  `,
33804
33933
  children: [
33805
- /* @__PURE__ */ jsx107(
33934
+ /* @__PURE__ */ jsx108(
33806
33935
  "input",
33807
33936
  {
33808
33937
  type: "radio",
@@ -33812,7 +33941,7 @@ var StatusbarDurationField = (props) => {
33812
33941
  }
33813
33942
  ),
33814
33943
  option?.name,
33815
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx107(
33944
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33816
33945
  "div",
33817
33946
  {
33818
33947
  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]
@@ -33827,14 +33956,14 @@ var StatusbarDurationField = (props) => {
33827
33956
  }) }),
33828
33957
  dataResponse?.records?.some(
33829
33958
  (item) => item?.fold && item.id !== defaultValue
33830
- ) && /* @__PURE__ */ jsxs72(
33959
+ ) && /* @__PURE__ */ jsxs73(
33831
33960
  "div",
33832
33961
  {
33833
33962
  onClick: () => setModalStatus(!modelStatus),
33834
33963
  className: "w-[24px] h-[24px] cursor-pointer relative",
33835
33964
  children: [
33836
- /* @__PURE__ */ jsx107(MoreIcon, {}),
33837
- modelStatus && /* @__PURE__ */ jsx107(
33965
+ /* @__PURE__ */ jsx108(MoreIcon, {}),
33966
+ modelStatus && /* @__PURE__ */ jsx108(
33838
33967
  "div",
33839
33968
  {
33840
33969
  onClick: (e3) => e3.stopPropagation(),
@@ -33843,7 +33972,7 @@ var StatusbarDurationField = (props) => {
33843
33972
  (item) => item?.fold && item.id !== defaultValue
33844
33973
  )?.map((option) => {
33845
33974
  const value = option?.id === defaultValue;
33846
- return /* @__PURE__ */ jsx107(
33975
+ return /* @__PURE__ */ jsx108(
33847
33976
  "div",
33848
33977
  {
33849
33978
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33865,14 +33994,14 @@ var StatusbarDurationField = (props) => {
33865
33994
 
33866
33995
  // src/widgets/basic/status-bar-field/option/option.tsx
33867
33996
  import { useMemo as useMemo11 } from "react";
33868
- import { Fragment as Fragment32, jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33997
+ import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33869
33998
  var StatusBarOptionField = (props) => {
33870
33999
  const { selection, defaultValue } = props;
33871
34000
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33872
34001
  const indexInProgress = memoizedStatusOptions?.findIndex(
33873
34002
  (option) => option?.[0] === defaultValue
33874
34003
  );
33875
- return /* @__PURE__ */ jsx108(
34004
+ return /* @__PURE__ */ jsx109(
33876
34005
  "div",
33877
34006
  {
33878
34007
  style: {
@@ -33881,8 +34010,8 @@ var StatusBarOptionField = (props) => {
33881
34010
  flexWrap: "wrap"
33882
34011
  },
33883
34012
  children: memoizedStatusOptions?.map((option, index4) => {
33884
- return /* @__PURE__ */ jsxs73(Fragment32, { children: [
33885
- /* @__PURE__ */ jsxs73(
34013
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
34014
+ /* @__PURE__ */ jsxs74(
33886
34015
  "div",
33887
34016
  {
33888
34017
  style: {
@@ -33900,7 +34029,7 @@ var StatusBarOptionField = (props) => {
33900
34029
  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" : ""
33901
34030
  },
33902
34031
  children: [
33903
- /* @__PURE__ */ jsx108(
34032
+ /* @__PURE__ */ jsx109(
33904
34033
  "span",
33905
34034
  {
33906
34035
  style: {
@@ -33912,10 +34041,10 @@ var StatusBarOptionField = (props) => {
33912
34041
  alignItems: "center",
33913
34042
  borderRadius: "100%"
33914
34043
  },
33915
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx108(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx108(ICCircle, {}) : /* @__PURE__ */ jsx108(ICMinus, {})
34044
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx109(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx109(ICCircle, {}) : /* @__PURE__ */ jsx109(ICMinus, {})
33916
34045
  }
33917
34046
  ),
33918
- /* @__PURE__ */ jsx108(
34047
+ /* @__PURE__ */ jsx109(
33919
34048
  "span",
33920
34049
  {
33921
34050
  style: {
@@ -33928,7 +34057,7 @@ var StatusBarOptionField = (props) => {
33928
34057
  },
33929
34058
  option?.[0]
33930
34059
  ),
33931
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx108(
34060
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33932
34061
  "div",
33933
34062
  {
33934
34063
  style: {
@@ -33944,7 +34073,7 @@ var StatusBarOptionField = (props) => {
33944
34073
  );
33945
34074
  };
33946
34075
  var ICMinus = () => {
33947
- return /* @__PURE__ */ jsx108(
34076
+ return /* @__PURE__ */ jsx109(
33948
34077
  "svg",
33949
34078
  {
33950
34079
  xmlns: "http://www.w3.org/2000/svg",
@@ -33952,7 +34081,7 @@ var ICMinus = () => {
33952
34081
  height: "16",
33953
34082
  viewBox: "0 0 16 16",
33954
34083
  fill: "none",
33955
- children: /* @__PURE__ */ jsx108(
34084
+ children: /* @__PURE__ */ jsx109(
33956
34085
  "path",
33957
34086
  {
33958
34087
  d: "M4 8H12",
@@ -33966,7 +34095,7 @@ var ICMinus = () => {
33966
34095
  );
33967
34096
  };
33968
34097
  var ICCircle = () => {
33969
- return /* @__PURE__ */ jsx108(
34098
+ return /* @__PURE__ */ jsx109(
33970
34099
  "svg",
33971
34100
  {
33972
34101
  xmlns: "http://www.w3.org/2000/svg",
@@ -33974,12 +34103,12 @@ var ICCircle = () => {
33974
34103
  height: "8",
33975
34104
  viewBox: "0 0 8 8",
33976
34105
  fill: "none",
33977
- children: /* @__PURE__ */ jsx108("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
34106
+ children: /* @__PURE__ */ jsx109("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33978
34107
  }
33979
34108
  );
33980
34109
  };
33981
34110
  var ICCheck = () => {
33982
- return /* @__PURE__ */ jsx108(
34111
+ return /* @__PURE__ */ jsx109(
33983
34112
  "svg",
33984
34113
  {
33985
34114
  xmlns: "http://www.w3.org/2000/svg",
@@ -33987,7 +34116,7 @@ var ICCheck = () => {
33987
34116
  height: "16",
33988
34117
  viewBox: "0 0 16 16",
33989
34118
  fill: "none",
33990
- children: /* @__PURE__ */ jsx108(
34119
+ children: /* @__PURE__ */ jsx109(
33991
34120
  "path",
33992
34121
  {
33993
34122
  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",
@@ -34001,7 +34130,7 @@ var ICCheck = () => {
34001
34130
  };
34002
34131
 
34003
34132
  // src/widgets/basic/date-option-field/date-option.tsx
34004
- import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
34133
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
34005
34134
  var DateOptionField = (props) => {
34006
34135
  const {
34007
34136
  name: name2,
@@ -34012,19 +34141,19 @@ var DateOptionField = (props) => {
34012
34141
  string,
34013
34142
  onChange: onChange2
34014
34143
  } = props;
34015
- return /* @__PURE__ */ jsx109(
34144
+ return /* @__PURE__ */ jsx110(
34016
34145
  Controller,
34017
34146
  {
34018
34147
  name: name2 ?? "",
34019
34148
  control: methods?.control,
34020
- render: ({ field }) => /* @__PURE__ */ jsxs74(
34149
+ render: ({ field }) => /* @__PURE__ */ jsxs75(
34021
34150
  "label",
34022
34151
  {
34023
34152
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34024
34153
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34025
34154
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34026
34155
  children: [
34027
- /* @__PURE__ */ jsx109(
34156
+ /* @__PURE__ */ jsx110(
34028
34157
  "input",
34029
34158
  {
34030
34159
  type: "checkbox",
@@ -34097,6 +34226,7 @@ export {
34097
34226
  HtmlField,
34098
34227
  I18nProvider,
34099
34228
  ImageField,
34229
+ ImageIcon,
34100
34230
  InfomationField,
34101
34231
  IntegerField,
34102
34232
  KanbanIcon,