@fctc/sme-widget-ui 1.9.1 → 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,32 +16439,57 @@ 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";
16448
+ import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16397
16449
  var ImageItem = ({
16398
16450
  filename,
16399
16451
  checksum,
16400
16452
  index: index4,
16401
16453
  src = null,
16402
- useGetImage
16454
+ useGetImage,
16455
+ size: size4,
16456
+ id,
16457
+ envFile,
16458
+ accessToken
16403
16459
  }) => {
16404
16460
  const { data: image } = useGetImage({
16405
16461
  data: { filename, checksum },
16406
16462
  queryKey: [`get-image-${""}`],
16407
16463
  src
16408
16464
  });
16409
- 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(
16410
16466
  "img",
16411
16467
  {
16412
16468
  src: image || src,
16413
16469
  alt: filename,
16414
16470
  className: "w-32 h-32 object-cover rounded-md cursor-pointer"
16415
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
+ ]
16492
+ }
16416
16493
  ) }, index4);
16417
16494
  };
16418
16495
  var FileItem = (props) => {
@@ -16424,37 +16501,57 @@ var FileItem = (props) => {
16424
16501
  src,
16425
16502
  mimetype,
16426
16503
  size: size4,
16427
- useGetImage
16504
+ useGetImage,
16505
+ id,
16506
+ envFile,
16507
+ accessToken
16428
16508
  } = props;
16429
16509
  const fileTypeIcon = {
16430
- "application/pdf": /* @__PURE__ */ jsx68(PdfIcon, {}),
16431
- "application/zip": /* @__PURE__ */ jsx68(ZipIcon, {}),
16432
- "application/x-zip-compressed": /* @__PURE__ */ jsx68(ZipIcon, {}),
16433
- "application/vnd.ms-excel": /* @__PURE__ */ jsx68(ExcelIcon, {}),
16434
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx68(ExcelIcon, {})
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, {})
16435
16515
  };
16436
16516
  const renderFile = () => {
16437
16517
  if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
16438
- return /* @__PURE__ */ jsx68(ImageItem, { ...props });
16518
+ return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
16439
16519
  } else if (mimetype?.includes("video")) {
16440
- return /* @__PURE__ */ jsx68(VideoPlayer, { ...props });
16520
+ return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
16441
16521
  } else {
16442
- return /* @__PURE__ */ jsxs43("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
16443
- fileTypeIcon[mimetype],
16444
- /* @__PURE__ */ jsxs43("div", { children: [
16445
- /* @__PURE__ */ jsx68("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16446
- /* @__PURE__ */ jsx68("span", { className: "text-[12px]", children: formatFileSize(size4) })
16447
- ] })
16448
- ] });
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
+ );
16449
16546
  }
16450
16547
  };
16451
- return /* @__PURE__ */ jsxs43(
16548
+ return /* @__PURE__ */ jsxs44(
16452
16549
  "div",
16453
16550
  {
16454
16551
  className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
16455
16552
  children: [
16456
16553
  renderFile(),
16457
- handleRemoveFile && /* @__PURE__ */ jsx68(
16554
+ handleRemoveFile && /* @__PURE__ */ jsx69(
16458
16555
  "div",
16459
16556
  {
16460
16557
  style: {
@@ -16465,10 +16562,10 @@ var FileItem = (props) => {
16465
16562
  },
16466
16563
  onClick: () => handleRemoveFile(index4),
16467
16564
  className: "cursor-pointer p-2 hidden group-hover:block",
16468
- children: /* @__PURE__ */ jsx68(DeleteIcon, {})
16565
+ children: /* @__PURE__ */ jsx69(DeleteIcon, {})
16469
16566
  }
16470
16567
  ),
16471
- !handleRemoveFile && /* @__PURE__ */ jsx68(
16568
+ !handleRemoveFile && /* @__PURE__ */ jsx69(
16472
16569
  "span",
16473
16570
  {
16474
16571
  style: {
@@ -16480,7 +16577,7 @@ var FileItem = (props) => {
16480
16577
  },
16481
16578
  onClick: (e3) => handleFileDownload(e3, src, filename),
16482
16579
  className: "hidden group-hover:block cursor-pointer p-2 text-white ",
16483
- children: /* @__PURE__ */ jsx68(DownloadIcon, {})
16580
+ children: /* @__PURE__ */ jsx69(DownloadIcon, {})
16484
16581
  }
16485
16582
  )
16486
16583
  ]
@@ -16488,9 +16585,14 @@ var FileItem = (props) => {
16488
16585
  index4
16489
16586
  );
16490
16587
  };
16491
- var downloadFile = async (url, filename) => {
16588
+ var downloadFile = async (url, filename, accessToken) => {
16492
16589
  try {
16493
- 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);
16494
16596
  if (response.ok) {
16495
16597
  const blob = await response.blob();
16496
16598
  const urlBlob = window.URL.createObjectURL(blob);
@@ -16511,7 +16613,9 @@ var downloadFile = async (url, filename) => {
16511
16613
  var RenderFiles = ({
16512
16614
  selectedFiles,
16513
16615
  setSelectedFiles,
16514
- useGetImage
16616
+ useGetImage,
16617
+ envFile,
16618
+ accessToken
16515
16619
  }) => {
16516
16620
  const handleRemoveFile = (index4) => {
16517
16621
  if (setSelectedFiles) {
@@ -16523,19 +16627,21 @@ var RenderFiles = ({
16523
16627
  e3.stopPropagation();
16524
16628
  downloadFile(url, name2);
16525
16629
  };
16526
- return /* @__PURE__ */ jsx68("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16527
- return /* @__PURE__ */ jsx68("div", { className: "relative group/file", children: /* @__PURE__ */ jsx68(
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(
16528
16632
  FileItem,
16529
16633
  {
16530
16634
  ...file,
16531
16635
  src: file?.datas,
16532
- filename: file?.display_name ?? file?.name,
16636
+ filename: file?.display_name ?? file?.name ?? file?.filename,
16637
+ id: file?.id,
16533
16638
  index: index4,
16534
16639
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16535
16640
  handleFileDownload,
16536
- useGetImage
16537
- },
16538
- index4
16641
+ useGetImage,
16642
+ envFile,
16643
+ accessToken
16644
+ }
16539
16645
  ) }, file?.id ?? index4);
16540
16646
  }) });
16541
16647
  };
@@ -16726,7 +16832,7 @@ var po = $2(K("zoom"));
16726
16832
  var uo = $2(K("flip"));
16727
16833
 
16728
16834
  // src/widgets/common/select-files.tsx
16729
- 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";
16730
16836
  var ButtonSelectFiles = ({
16731
16837
  fileInputRef,
16732
16838
  selectedFiles,
@@ -16829,8 +16935,8 @@ var ButtonSelectFiles = ({
16829
16935
  await handleUpload(formData, serivce, xNode);
16830
16936
  }
16831
16937
  };
16832
- return /* @__PURE__ */ jsxs44(Fragment14, { children: [
16833
- isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
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(
16834
16940
  "button",
16835
16941
  {
16836
16942
  type: "button",
@@ -16838,12 +16944,12 @@ var ButtonSelectFiles = ({
16838
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"}`,
16839
16945
  onClick: () => fileInputRef.current.click(),
16840
16946
  children: [
16841
- /* @__PURE__ */ jsx69(AttachIcon, {}),
16842
- /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16947
+ /* @__PURE__ */ jsx70(AttachIcon, {}),
16948
+ /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16843
16949
  ]
16844
16950
  }
16845
16951
  ),
16846
- /* @__PURE__ */ jsx69(
16952
+ /* @__PURE__ */ jsx70(
16847
16953
  "input",
16848
16954
  {
16849
16955
  type: "file",
@@ -16858,7 +16964,7 @@ var ButtonSelectFiles = ({
16858
16964
  };
16859
16965
 
16860
16966
  // src/widgets/basic/avatar-field/avatar.tsx
16861
- 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";
16862
16968
  var AvatarField = (props) => {
16863
16969
  const {
16864
16970
  isForm = false,
@@ -16882,8 +16988,8 @@ var AvatarField = (props) => {
16882
16988
  color: textColor,
16883
16989
  fontSize: `${size4 / 2.5}px`
16884
16990
  };
16885
- return /* @__PURE__ */ jsxs45(Fragment15, { children: [
16886
- isForm && allowShowDetail && /* @__PURE__ */ jsx70(
16991
+ return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16992
+ isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16887
16993
  ModalDetail,
16888
16994
  {
16889
16995
  idToolTip: `avatar-widget-id-${id}`,
@@ -16894,7 +17000,7 @@ var AvatarField = (props) => {
16894
17000
  place: "top-start"
16895
17001
  }
16896
17002
  ),
16897
- allowShowDetail && /* @__PURE__ */ jsx70(
17003
+ allowShowDetail && /* @__PURE__ */ jsx71(
16898
17004
  M,
16899
17005
  {
16900
17006
  id: `avatar-widget-id-${id}`,
@@ -16903,7 +17009,7 @@ var AvatarField = (props) => {
16903
17009
  className: "z-20"
16904
17010
  }
16905
17011
  ),
16906
- avatarSrc ? /* @__PURE__ */ jsx70(
17012
+ avatarSrc ? /* @__PURE__ */ jsx71(
16907
17013
  "img",
16908
17014
  {
16909
17015
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16911,7 +17017,7 @@ var AvatarField = (props) => {
16911
17017
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16912
17018
  alt: "Avatar"
16913
17019
  }
16914
- ) : /* @__PURE__ */ jsx70("div", { children: /* @__PURE__ */ jsx70(
17020
+ ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16915
17021
  "div",
16916
17022
  {
16917
17023
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16924,7 +17030,7 @@ var AvatarField = (props) => {
16924
17030
  };
16925
17031
 
16926
17032
  // src/widgets/basic/binary-field/binary.tsx
16927
- import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
17033
+ import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16928
17034
  var BinaryField = (props) => {
16929
17035
  const {
16930
17036
  name: name2,
@@ -16947,7 +17053,7 @@ var BinaryField = (props) => {
16947
17053
  image
16948
17054
  } = props;
16949
17055
  const { t: t3 } = useI18n();
16950
- return /* @__PURE__ */ jsx71(
17056
+ return /* @__PURE__ */ jsx72(
16951
17057
  Controller,
16952
17058
  {
16953
17059
  name: name2 ?? "",
@@ -16957,13 +17063,13 @@ var BinaryField = (props) => {
16957
17063
  },
16958
17064
  render: ({ field }) => {
16959
17065
  const renderImage = initialImage || selectedImage;
16960
- return /* @__PURE__ */ jsx71(
17066
+ return /* @__PURE__ */ jsx72(
16961
17067
  "div",
16962
17068
  {
16963
17069
  ref: binaryRef,
16964
17070
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16965
- children: renderImage ? /* @__PURE__ */ jsxs46("div", { className: "relative group", children: [
16966
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx71(
17071
+ children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
17072
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16967
17073
  "img",
16968
17074
  {
16969
17075
  style: {
@@ -16974,7 +17080,7 @@ var BinaryField = (props) => {
16974
17080
  alt: "Selected",
16975
17081
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16976
17082
  }
16977
- ) : renderImage ? /* @__PURE__ */ jsx71(
17083
+ ) : renderImage ? /* @__PURE__ */ jsx72(
16978
17084
  "img",
16979
17085
  {
16980
17086
  style: {
@@ -16985,17 +17091,17 @@ var BinaryField = (props) => {
16985
17091
  alt: "Selected",
16986
17092
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16987
17093
  }
16988
- ) : /* @__PURE__ */ jsx71(PlaceHolderIcon, {}),
16989
- !isInsideTable && !readonly && /* @__PURE__ */ jsx71(
17094
+ ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
17095
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16990
17096
  "button",
16991
17097
  {
16992
17098
  type: "button",
16993
17099
  onClick: () => handleRemoveImage(field.onChange),
16994
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",
16995
- children: /* @__PURE__ */ jsx71(DeleteIcon, {})
17101
+ children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16996
17102
  }
16997
17103
  )
16998
- ] }) : /* @__PURE__ */ jsxs46(
17104
+ ] }) : /* @__PURE__ */ jsxs47(
16999
17105
  "label",
17000
17106
  {
17001
17107
  htmlFor: inputId,
@@ -17005,7 +17111,7 @@ var BinaryField = (props) => {
17005
17111
  },
17006
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"}`,
17007
17113
  children: [
17008
- /* @__PURE__ */ jsx71(
17114
+ /* @__PURE__ */ jsx72(
17009
17115
  "input",
17010
17116
  {
17011
17117
  id: inputId,
@@ -17017,8 +17123,8 @@ var BinaryField = (props) => {
17017
17123
  className: "hidden z-10 relative"
17018
17124
  }
17019
17125
  ),
17020
- /* @__PURE__ */ jsx71("img", { src: image, alt: "", className: "z-0 relative" }),
17021
- /* @__PURE__ */ jsx71(
17126
+ /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
17127
+ /* @__PURE__ */ jsx72(
17022
17128
  "div",
17023
17129
  {
17024
17130
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -17027,7 +17133,7 @@ var BinaryField = (props) => {
17027
17133
  left: "-8px",
17028
17134
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
17029
17135
  },
17030
- children: /* @__PURE__ */ jsx71(
17136
+ children: /* @__PURE__ */ jsx72(
17031
17137
  "svg",
17032
17138
  {
17033
17139
  xmlns: "http://www.w3.org/2000/svg",
@@ -17035,7 +17141,7 @@ var BinaryField = (props) => {
17035
17141
  height: "14",
17036
17142
  viewBox: "0 0 14 14",
17037
17143
  fill: "none",
17038
- children: /* @__PURE__ */ jsx71(
17144
+ children: /* @__PURE__ */ jsx72(
17039
17145
  "path",
17040
17146
  {
17041
17147
  "fill-rule": "evenodd",
@@ -17059,7 +17165,7 @@ var BinaryField = (props) => {
17059
17165
  };
17060
17166
 
17061
17167
  // src/widgets/basic/button-badge-field/button-badge.tsx
17062
- import { jsx as jsx72 } from "react/jsx-runtime";
17168
+ import { jsx as jsx73 } from "react/jsx-runtime";
17063
17169
  var typeStyles = {
17064
17170
  primary: {
17065
17171
  backgroundColor: "#3b82f6",
@@ -17134,11 +17240,11 @@ var ButtonBadgeField = (props) => {
17134
17240
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
17135
17241
  };
17136
17242
  const label = getLabel(defaultValue ?? value);
17137
- return label ? /* @__PURE__ */ jsx72("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17243
+ return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17138
17244
  };
17139
17245
 
17140
17246
  // src/widgets/basic/button-field/button.tsx
17141
- 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";
17142
17248
  var ButtonField = (props) => {
17143
17249
  const {
17144
17250
  func,
@@ -17149,7 +17255,7 @@ var ButtonField = (props) => {
17149
17255
  type = "submit"
17150
17256
  } = props;
17151
17257
  const { t: t3 } = useI18n();
17152
- return /* @__PURE__ */ jsx73(Fragment16, { children: !loading ? /* @__PURE__ */ jsx73(
17258
+ return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
17153
17259
  "button",
17154
17260
  {
17155
17261
  type,
@@ -17158,7 +17264,7 @@ var ButtonField = (props) => {
17158
17264
  onClick: func,
17159
17265
  children: t3(content)
17160
17266
  }
17161
- ) : /* @__PURE__ */ jsxs47(
17267
+ ) : /* @__PURE__ */ jsxs48(
17162
17268
  "button",
17163
17269
  {
17164
17270
  type,
@@ -17167,7 +17273,7 @@ var ButtonField = (props) => {
17167
17273
  children: [
17168
17274
  t3("loading"),
17169
17275
  " ",
17170
- /* @__PURE__ */ jsx73(LoadingIcon, {})
17276
+ /* @__PURE__ */ jsx74(LoadingIcon, {})
17171
17277
  ]
17172
17278
  }
17173
17279
  ) });
@@ -17175,7 +17281,7 @@ var ButtonField = (props) => {
17175
17281
 
17176
17282
  // src/widgets/basic/char-field/char.tsx
17177
17283
  import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
17178
- 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";
17179
17285
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
17180
17286
  var CharField = (props) => {
17181
17287
  const {
@@ -17203,9 +17309,9 @@ var CharField = (props) => {
17203
17309
  } = props;
17204
17310
  if (!isForm && !isEditTable) {
17205
17311
  const propValue = value || defaultValue;
17206
- 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 });
17207
17313
  }
17208
- return /* @__PURE__ */ jsx74(
17314
+ return /* @__PURE__ */ jsx75(
17209
17315
  Controller,
17210
17316
  {
17211
17317
  name: name2 ?? "",
@@ -17259,8 +17365,8 @@ var CharField = (props) => {
17259
17365
  }
17260
17366
  return "";
17261
17367
  }, [widget, formValues]);
17262
- return /* @__PURE__ */ jsxs48(Fragment17, { children: [
17263
- /* @__PURE__ */ jsx74(
17368
+ return /* @__PURE__ */ jsxs49(Fragment17, { children: [
17369
+ /* @__PURE__ */ jsx75(
17264
17370
  "input",
17265
17371
  {
17266
17372
  value: displayValue ?? "",
@@ -17321,7 +17427,7 @@ var CharField = (props) => {
17321
17427
  `
17322
17428
  }
17323
17429
  ),
17324
- 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 }) })
17325
17431
  ] });
17326
17432
  }
17327
17433
  }
@@ -17329,7 +17435,7 @@ var CharField = (props) => {
17329
17435
  };
17330
17436
 
17331
17437
  // src/widgets/basic/checkbox-field/checkbox.tsx
17332
- import { jsx as jsx75 } from "react/jsx-runtime";
17438
+ import { jsx as jsx76 } from "react/jsx-runtime";
17333
17439
  var CheckboxField = (props) => {
17334
17440
  const {
17335
17441
  name: name2,
@@ -17344,9 +17450,9 @@ var CheckboxField = (props) => {
17344
17450
  } = props;
17345
17451
  if (!isForm) {
17346
17452
  if (name2 === "is_active" || name2 === "active") {
17347
- return /* @__PURE__ */ jsx75(ActiveBadgeField, { type: value });
17453
+ return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
17348
17454
  } else {
17349
- return /* @__PURE__ */ jsx75(
17455
+ return /* @__PURE__ */ jsx76(
17350
17456
  "input",
17351
17457
  {
17352
17458
  type: "checkbox",
@@ -17357,12 +17463,12 @@ var CheckboxField = (props) => {
17357
17463
  );
17358
17464
  }
17359
17465
  }
17360
- return /* @__PURE__ */ jsx75(
17466
+ return /* @__PURE__ */ jsx76(
17361
17467
  Controller,
17362
17468
  {
17363
17469
  name: name2 ?? "",
17364
17470
  control: methods?.control,
17365
- render: ({ field }) => /* @__PURE__ */ jsx75(
17471
+ render: ({ field }) => /* @__PURE__ */ jsx76(
17366
17472
  "div",
17367
17473
  {
17368
17474
  className: "flex items-center gap-2",
@@ -17375,7 +17481,7 @@ var CheckboxField = (props) => {
17375
17481
  onChange2(name2 ?? "", checked);
17376
17482
  }
17377
17483
  },
17378
- children: /* @__PURE__ */ jsx75(
17484
+ children: /* @__PURE__ */ jsx76(
17379
17485
  "input",
17380
17486
  {
17381
17487
  ...field,
@@ -17403,7 +17509,7 @@ var CheckboxField = (props) => {
17403
17509
 
17404
17510
  // src/widgets/basic/color-field/color-wrapper.tsx
17405
17511
  import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
17406
- import { Fragment as Fragment18, jsx as jsx76, jsxs as jsxs49 } from "react/jsx-runtime";
17512
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
17407
17513
  var ColorWrapper = (props) => {
17408
17514
  const {
17409
17515
  colors: colors2,
@@ -17430,8 +17536,8 @@ var ColorWrapper = (props) => {
17430
17536
  document.removeEventListener("mousedown", handleClickOutside);
17431
17537
  };
17432
17538
  }, []);
17433
- return /* @__PURE__ */ jsx76("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx76("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs49("div", { children: [
17434
- /* @__PURE__ */ jsx76(
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(
17435
17541
  "button",
17436
17542
  {
17437
17543
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17445,7 +17551,7 @@ var ColorWrapper = (props) => {
17445
17551
  }
17446
17552
  }
17447
17553
  ),
17448
- /* @__PURE__ */ jsx76(
17554
+ /* @__PURE__ */ jsx77(
17449
17555
  M,
17450
17556
  {
17451
17557
  className: "",
@@ -17454,8 +17560,8 @@ var ColorWrapper = (props) => {
17454
17560
  content: i18n_default.t(color?.name)
17455
17561
  }
17456
17562
  )
17457
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs49(Fragment18, { children: [
17458
- /* @__PURE__ */ jsx76(
17563
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17564
+ /* @__PURE__ */ jsx77(
17459
17565
  "button",
17460
17566
  {
17461
17567
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17468,7 +17574,7 @@ var ColorWrapper = (props) => {
17468
17574
  style: { backgroundColor: selectedColor?.color }
17469
17575
  }
17470
17576
  ),
17471
- /* @__PURE__ */ jsx76(
17577
+ /* @__PURE__ */ jsx77(
17472
17578
  M,
17473
17579
  {
17474
17580
  place: "top",
@@ -17480,13 +17586,13 @@ var ColorWrapper = (props) => {
17480
17586
  };
17481
17587
 
17482
17588
  // src/widgets/basic/color-field/color.tsx
17483
- import { jsx as jsx77 } from "react/jsx-runtime";
17589
+ import { jsx as jsx78 } from "react/jsx-runtime";
17484
17590
  var ColorField = (props) => {
17485
17591
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17486
17592
  if (!isForm) {
17487
- return /* @__PURE__ */ jsx77(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17593
+ return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17488
17594
  }
17489
- return /* @__PURE__ */ jsx77(
17595
+ return /* @__PURE__ */ jsx78(
17490
17596
  Controller,
17491
17597
  {
17492
17598
  name: name2 ?? "",
@@ -17496,7 +17602,7 @@ var ColorField = (props) => {
17496
17602
  field.onChange(color?.id);
17497
17603
  onChange2 && onChange2(name2 ?? "", color?.id);
17498
17604
  };
17499
- return /* @__PURE__ */ jsx77(
17605
+ return /* @__PURE__ */ jsx78(
17500
17606
  ColorWrapper,
17501
17607
  {
17502
17608
  savePickColor: handlePickColorChange,
@@ -17511,7 +17617,7 @@ var ColorField = (props) => {
17511
17617
 
17512
17618
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17513
17619
  import { useEffect as useEffect13 } from "react";
17514
- import { jsx as jsx78, jsxs as jsxs50 } from "react/jsx-runtime";
17620
+ import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
17515
17621
  var CopyLinkButtonField = (props) => {
17516
17622
  const {
17517
17623
  isForm,
@@ -17530,9 +17636,9 @@ var CopyLinkButtonField = (props) => {
17530
17636
  } = props;
17531
17637
  const { t: t3 } = useI18n();
17532
17638
  if (!isForm) {
17533
- 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 });
17534
17640
  }
17535
- return /* @__PURE__ */ jsx78(
17641
+ return /* @__PURE__ */ jsx79(
17536
17642
  Controller,
17537
17643
  {
17538
17644
  name: name2 ?? "",
@@ -17550,8 +17656,8 @@ var CopyLinkButtonField = (props) => {
17550
17656
  clearErrors(name2);
17551
17657
  }
17552
17658
  }, [value]);
17553
- return /* @__PURE__ */ jsxs50("div", { className: "relative", children: [
17554
- /* @__PURE__ */ jsxs50(
17659
+ return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17660
+ /* @__PURE__ */ jsxs51(
17555
17661
  "div",
17556
17662
  {
17557
17663
  "aria-disabled": readonly,
@@ -17560,7 +17666,7 @@ var CopyLinkButtonField = (props) => {
17560
17666
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17561
17667
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17562
17668
  children: [
17563
- /* @__PURE__ */ jsx78(
17669
+ /* @__PURE__ */ jsx79(
17564
17670
  "input",
17565
17671
  {
17566
17672
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17601,19 +17707,19 @@ var CopyLinkButtonField = (props) => {
17601
17707
  `
17602
17708
  }
17603
17709
  ),
17604
- readonly && value && /* @__PURE__ */ jsx78(
17710
+ readonly && value && /* @__PURE__ */ jsx79(
17605
17711
  "button",
17606
17712
  {
17607
17713
  className: "cursor-pointer",
17608
17714
  type: "button",
17609
17715
  onClick: () => handleCopyToClipboard(propValue),
17610
- children: isCopied ? /* @__PURE__ */ jsx78(CheckIcon, {}) : /* @__PURE__ */ jsx78(CopyIcon, {})
17716
+ children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17611
17717
  }
17612
17718
  )
17613
17719
  ]
17614
17720
  }
17615
17721
  ),
17616
- 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 })
17617
17723
  ] });
17618
17724
  }
17619
17725
  }
@@ -21554,7 +21660,7 @@ function useEffectEvent(callback) {
21554
21660
  }
21555
21661
 
21556
21662
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21557
- import { jsx as jsx79, jsxs as jsxs51, Fragment as Fragment19 } from "react/jsx-runtime";
21663
+ import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
21558
21664
  import * as ReactDOM2 from "react-dom";
21559
21665
 
21560
21666
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21952,7 +22058,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21952
22058
  bottom: isCustomShape ? "" : "rotate(180deg)",
21953
22059
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21954
22060
  }[side];
21955
- return /* @__PURE__ */ jsxs51("svg", {
22061
+ return /* @__PURE__ */ jsxs52("svg", {
21956
22062
  ...rest,
21957
22063
  "aria-hidden": true,
21958
22064
  ref,
@@ -21968,18 +22074,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21968
22074
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21969
22075
  ...restStyle
21970
22076
  },
21971
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx79("path", {
22077
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21972
22078
  clipPath: "url(#" + clipPathId + ")",
21973
22079
  fill: "none",
21974
22080
  stroke,
21975
22081
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21976
22082
  d: dValue
21977
- }), /* @__PURE__ */ jsx79("path", {
22083
+ }), /* @__PURE__ */ jsx80("path", {
21978
22084
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21979
22085
  d: dValue
21980
- }), /* @__PURE__ */ jsx79("clipPath", {
22086
+ }), /* @__PURE__ */ jsx80("clipPath", {
21981
22087
  id: clipPathId,
21982
- children: /* @__PURE__ */ jsx79("rect", {
22088
+ children: /* @__PURE__ */ jsx80("rect", {
21983
22089
  x: -halfStrokeWidth,
21984
22090
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21985
22091
  width: width + computedStrokeWidth,
@@ -27912,7 +28018,7 @@ var Emotion$1 = Emotion;
27912
28018
  import * as React12 from "react";
27913
28019
  var import_extends2 = __toESM(require_extends());
27914
28020
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27915
- var jsx80 = function jsx81(type, props) {
28021
+ var jsx81 = function jsx82(type, props) {
27916
28022
  var args = arguments;
27917
28023
  if (props == null || !hasOwn.call(props, "css")) {
27918
28024
  return React12.createElement.apply(void 0, args);
@@ -27930,7 +28036,7 @@ var jsx80 = function jsx81(type, props) {
27930
28036
  var JSX;
27931
28037
  /* @__PURE__ */ (function(_JSX) {
27932
28038
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27933
- })(jsx80 || (jsx80 = {}));
28039
+ })(jsx81 || (jsx81 = {}));
27934
28040
  function css() {
27935
28041
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27936
28042
  args[_key] = arguments[_key];
@@ -28338,7 +28444,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28338
28444
  };
28339
28445
  var Menu = function Menu2(props) {
28340
28446
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28341
- return jsx80("div", _extends({}, getStyleProps(props, "menu", {
28447
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
28342
28448
  menu: true
28343
28449
  }), {
28344
28450
  ref: innerRef
@@ -28360,7 +28466,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28360
28466
  };
28361
28467
  var MenuList = function MenuList2(props) {
28362
28468
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28363
- return jsx80("div", _extends({}, getStyleProps(props, "menuList", {
28469
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
28364
28470
  "menu-list": true,
28365
28471
  "menu-list--is-multi": isMulti
28366
28472
  }), {
@@ -28380,7 +28486,7 @@ var noOptionsMessageCSS = noticeCSS;
28380
28486
  var loadingMessageCSS = noticeCSS;
28381
28487
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28382
28488
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28383
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28489
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28384
28490
  children,
28385
28491
  innerProps
28386
28492
  }), "noOptionsMessage", {
@@ -28390,7 +28496,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28390
28496
  };
28391
28497
  var LoadingMessage = function LoadingMessage2(_ref7) {
28392
28498
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28393
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28499
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28394
28500
  children,
28395
28501
  innerProps
28396
28502
  }), "loadingMessage", {
@@ -28453,7 +28559,7 @@ var MenuPortal = function MenuPortal2(props) {
28453
28559
  runAutoUpdate();
28454
28560
  }, [runAutoUpdate]);
28455
28561
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28456
- var menuWrapper = jsx80("div", _extends({
28562
+ var menuWrapper = jsx81("div", _extends({
28457
28563
  ref: setMenuPortalElement
28458
28564
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28459
28565
  offset: computedPosition.offset,
@@ -28462,7 +28568,7 @@ var MenuPortal = function MenuPortal2(props) {
28462
28568
  }), "menuPortal", {
28463
28569
  "menu-portal": true
28464
28570
  }), innerProps), children);
28465
- return jsx80(PortalPlacementContext.Provider, {
28571
+ return jsx81(PortalPlacementContext.Provider, {
28466
28572
  value: portalPlacementContext
28467
28573
  }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28468
28574
  };
@@ -28478,7 +28584,7 @@ var containerCSS = function containerCSS2(_ref3) {
28478
28584
  };
28479
28585
  var SelectContainer = function SelectContainer2(props) {
28480
28586
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28481
- return jsx80("div", _extends({}, getStyleProps(props, "container", {
28587
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
28482
28588
  "--is-disabled": isDisabled,
28483
28589
  "--is-rtl": isRtl
28484
28590
  }), innerProps), children);
@@ -28499,7 +28605,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28499
28605
  };
28500
28606
  var ValueContainer = function ValueContainer2(props) {
28501
28607
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28502
- return jsx80("div", _extends({}, getStyleProps(props, "valueContainer", {
28608
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28503
28609
  "value-container": true,
28504
28610
  "value-container--is-multi": isMulti,
28505
28611
  "value-container--has-value": hasValue
@@ -28515,7 +28621,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28515
28621
  };
28516
28622
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28517
28623
  var children = props.children, innerProps = props.innerProps;
28518
- return jsx80("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28624
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28519
28625
  indicators: true
28520
28626
  }), innerProps), children);
28521
28627
  };
@@ -28536,7 +28642,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28536
28642
  };
28537
28643
  var Svg = function Svg2(_ref3) {
28538
28644
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28539
- return jsx80("svg", _extends({
28645
+ return jsx81("svg", _extends({
28540
28646
  height: size4,
28541
28647
  width: size4,
28542
28648
  viewBox: "0 0 20 20",
@@ -28546,16 +28652,16 @@ var Svg = function Svg2(_ref3) {
28546
28652
  }, props));
28547
28653
  };
28548
28654
  var CrossIcon = function CrossIcon2(props) {
28549
- return jsx80(Svg, _extends({
28655
+ return jsx81(Svg, _extends({
28550
28656
  size: 20
28551
- }, props), jsx80("path", {
28657
+ }, props), jsx81("path", {
28552
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"
28553
28659
  }));
28554
28660
  };
28555
28661
  var DownChevron = function DownChevron2(props) {
28556
- return jsx80(Svg, _extends({
28662
+ return jsx81(Svg, _extends({
28557
28663
  size: 20
28558
- }, props), jsx80("path", {
28664
+ }, props), jsx81("path", {
28559
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"
28560
28666
  }));
28561
28667
  };
@@ -28576,18 +28682,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28576
28682
  var dropdownIndicatorCSS = baseCSS;
28577
28683
  var DropdownIndicator = function DropdownIndicator2(props) {
28578
28684
  var children = props.children, innerProps = props.innerProps;
28579
- return jsx80("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28685
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28580
28686
  indicator: true,
28581
28687
  "dropdown-indicator": true
28582
- }), innerProps), children || jsx80(DownChevron, null));
28688
+ }), innerProps), children || jsx81(DownChevron, null));
28583
28689
  };
28584
28690
  var clearIndicatorCSS = baseCSS;
28585
28691
  var ClearIndicator = function ClearIndicator2(props) {
28586
28692
  var children = props.children, innerProps = props.innerProps;
28587
- return jsx80("div", _extends({}, getStyleProps(props, "clearIndicator", {
28693
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28588
28694
  indicator: true,
28589
28695
  "clear-indicator": true
28590
- }), innerProps), children || jsx80(CrossIcon, null));
28696
+ }), innerProps), children || jsx81(CrossIcon, null));
28591
28697
  };
28592
28698
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28593
28699
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28603,7 +28709,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28603
28709
  };
28604
28710
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28605
28711
  var innerProps = props.innerProps;
28606
- return jsx80("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28712
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28607
28713
  "indicator-separator": true
28608
28714
  })));
28609
28715
  };
@@ -28627,7 +28733,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28627
28733
  };
28628
28734
  var LoadingDot = function LoadingDot2(_ref6) {
28629
28735
  var delay = _ref6.delay, offset4 = _ref6.offset;
28630
- return jsx80("span", {
28736
+ return jsx81("span", {
28631
28737
  css: /* @__PURE__ */ css({
28632
28738
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28633
28739
  backgroundColor: "currentColor",
@@ -28642,20 +28748,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28642
28748
  };
28643
28749
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28644
28750
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28645
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28751
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28646
28752
  innerProps,
28647
28753
  isRtl,
28648
28754
  size: size4
28649
28755
  }), "loadingIndicator", {
28650
28756
  indicator: true,
28651
28757
  "loading-indicator": true
28652
- }), innerProps), jsx80(LoadingDot, {
28758
+ }), innerProps), jsx81(LoadingDot, {
28653
28759
  delay: 0,
28654
28760
  offset: isRtl
28655
- }), jsx80(LoadingDot, {
28761
+ }), jsx81(LoadingDot, {
28656
28762
  delay: 160,
28657
28763
  offset: true
28658
- }), jsx80(LoadingDot, {
28764
+ }), jsx81(LoadingDot, {
28659
28765
  delay: 320,
28660
28766
  offset: !isRtl
28661
28767
  }));
@@ -28687,7 +28793,7 @@ var css$1 = function css2(_ref3, unstyled) {
28687
28793
  };
28688
28794
  var Control = function Control2(props) {
28689
28795
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28690
- return jsx80("div", _extends({
28796
+ return jsx81("div", _extends({
28691
28797
  ref: innerRef
28692
28798
  }, getStyleProps(props, "control", {
28693
28799
  control: true,
@@ -28709,15 +28815,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28709
28815
  };
28710
28816
  var Group = function Group2(props) {
28711
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;
28712
- return jsx80("div", _extends({}, getStyleProps(props, "group", {
28818
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28713
28819
  group: true
28714
- }), innerProps), jsx80(Heading, _extends({}, headingProps, {
28820
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28715
28821
  selectProps,
28716
28822
  theme,
28717
28823
  getStyles,
28718
28824
  getClassNames,
28719
28825
  cx
28720
- }), label), jsx80("div", null, children));
28826
+ }), label), jsx81("div", null, children));
28721
28827
  };
28722
28828
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28723
28829
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28739,7 +28845,7 @@ var GroupHeading = function GroupHeading2(props) {
28739
28845
  var _cleanCommonProps = cleanCommonProps(props);
28740
28846
  _cleanCommonProps.data;
28741
28847
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28742
- return jsx80("div", _extends({}, getStyleProps(props, "groupHeading", {
28848
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28743
28849
  "group-heading": true
28744
28850
  }), innerProps));
28745
28851
  };
@@ -28791,11 +28897,11 @@ var inputStyle = function inputStyle2(isHidden) {
28791
28897
  var Input = function Input2(props) {
28792
28898
  var cx = props.cx, value = props.value;
28793
28899
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28794
- return jsx80("div", _extends({}, getStyleProps(props, "input", {
28900
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28795
28901
  "input-container": true
28796
28902
  }), {
28797
28903
  "data-value": value || ""
28798
- }), jsx80("input", _extends({
28904
+ }), jsx81("input", _extends({
28799
28905
  className: cx({
28800
28906
  input: true
28801
28907
  }, inputClassName),
@@ -28849,35 +28955,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28849
28955
  };
28850
28956
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28851
28957
  var children = _ref4.children, innerProps = _ref4.innerProps;
28852
- return jsx80("div", innerProps, children);
28958
+ return jsx81("div", innerProps, children);
28853
28959
  };
28854
28960
  var MultiValueContainer = MultiValueGeneric;
28855
28961
  var MultiValueLabel = MultiValueGeneric;
28856
28962
  function MultiValueRemove(_ref5) {
28857
28963
  var children = _ref5.children, innerProps = _ref5.innerProps;
28858
- return jsx80("div", _extends({
28964
+ return jsx81("div", _extends({
28859
28965
  role: "button"
28860
- }, innerProps), children || jsx80(CrossIcon, {
28966
+ }, innerProps), children || jsx81(CrossIcon, {
28861
28967
  size: 14
28862
28968
  }));
28863
28969
  }
28864
28970
  var MultiValue = function MultiValue2(props) {
28865
28971
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28866
28972
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28867
- return jsx80(Container, {
28973
+ return jsx81(Container, {
28868
28974
  data,
28869
28975
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28870
28976
  "multi-value": true,
28871
28977
  "multi-value--is-disabled": isDisabled
28872
28978
  })), innerProps),
28873
28979
  selectProps
28874
- }, jsx80(Label, {
28980
+ }, jsx81(Label, {
28875
28981
  data,
28876
28982
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28877
28983
  "multi-value__label": true
28878
28984
  })),
28879
28985
  selectProps
28880
- }, children), jsx80(Remove, {
28986
+ }, children), jsx81(Remove, {
28881
28987
  data,
28882
28988
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28883
28989
  "multi-value__remove": true
@@ -28910,7 +29016,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28910
29016
  };
28911
29017
  var Option = function Option2(props) {
28912
29018
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28913
- return jsx80("div", _extends({}, getStyleProps(props, "option", {
29019
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
28914
29020
  option: true,
28915
29021
  "option--is-disabled": isDisabled,
28916
29022
  "option--is-focused": isFocused,
@@ -28934,7 +29040,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28934
29040
  };
28935
29041
  var Placeholder = function Placeholder2(props) {
28936
29042
  var children = props.children, innerProps = props.innerProps;
28937
- return jsx80("div", _extends({}, getStyleProps(props, "placeholder", {
29043
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28938
29044
  placeholder: true
28939
29045
  }), innerProps), children);
28940
29046
  };
@@ -28956,7 +29062,7 @@ var css3 = function css4(_ref3, unstyled) {
28956
29062
  };
28957
29063
  var SingleValue = function SingleValue2(props) {
28958
29064
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28959
- return jsx80("div", _extends({}, getStyleProps(props, "singleValue", {
29065
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28960
29066
  "single-value": true,
28961
29067
  "single-value--is-disabled": isDisabled
28962
29068
  }), innerProps), children);
@@ -29058,7 +29164,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
29058
29164
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
29059
29165
  };
29060
29166
  var A11yText = function A11yText2(props) {
29061
- return jsx80("span", _extends({
29167
+ return jsx81("span", _extends({
29062
29168
  css: _ref
29063
29169
  }, props));
29064
29170
  };
@@ -29193,18 +29299,18 @@ var LiveRegion = function LiveRegion2(props) {
29193
29299
  }
29194
29300
  return guidanceMsg;
29195
29301
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
29196
- var ScreenReaderText = jsx80(Fragment22, null, jsx80("span", {
29302
+ var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
29197
29303
  id: "aria-selection"
29198
- }, ariaSelected), jsx80("span", {
29304
+ }, ariaSelected), jsx81("span", {
29199
29305
  id: "aria-focused"
29200
- }, ariaFocused), jsx80("span", {
29306
+ }, ariaFocused), jsx81("span", {
29201
29307
  id: "aria-results"
29202
- }, ariaResults), jsx80("span", {
29308
+ }, ariaResults), jsx81("span", {
29203
29309
  id: "aria-guidance"
29204
29310
  }, ariaGuidance));
29205
- return jsx80(Fragment22, null, jsx80(A11yText$1, {
29311
+ return jsx81(Fragment22, null, jsx81(A11yText$1, {
29206
29312
  id
29207
- }, isInitialFocus && ScreenReaderText), jsx80(A11yText$1, {
29313
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
29208
29314
  "aria-live": ariaLive,
29209
29315
  "aria-atomic": "false",
29210
29316
  "aria-relevant": "additions text",
@@ -29517,7 +29623,7 @@ var _excluded4 = ["innerRef"];
29517
29623
  function DummyInput(_ref3) {
29518
29624
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29519
29625
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29520
- return jsx80("input", _extends({
29626
+ return jsx81("input", _extends({
29521
29627
  ref: innerRef
29522
29628
  }, filteredProps, {
29523
29629
  css: /* @__PURE__ */ css({
@@ -29759,7 +29865,7 @@ function ScrollManager(_ref3) {
29759
29865
  setScrollCaptureTarget(element);
29760
29866
  setScrollLockTarget(element);
29761
29867
  };
29762
- return jsx80(Fragment22, null, lockEnabled && jsx80("div", {
29868
+ return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29763
29869
  onClick: blurSelectInput,
29764
29870
  css: _ref2$1
29765
29871
  }), children(targetRef));
@@ -29778,7 +29884,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29778
29884
  };
29779
29885
  var RequiredInput = function RequiredInput2(_ref3) {
29780
29886
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29781
- return jsx80("input", {
29887
+ return jsx81("input", {
29782
29888
  required: true,
29783
29889
  name: name2,
29784
29890
  tabIndex: -1,
@@ -31368,7 +31474,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31368
31474
 
31369
31475
  // src/widgets/basic/date-field/date.tsx
31370
31476
  var import_moment2 = __toESM(require_moment());
31371
- 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";
31372
31478
  var DateField = (props) => {
31373
31479
  const {
31374
31480
  name: name2,
@@ -31396,8 +31502,8 @@ var DateField = (props) => {
31396
31502
  } = props;
31397
31503
  const { t: t3 } = useI18n();
31398
31504
  const InputDateCustom = forwardRef6(
31399
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs52("label", { className: `flex ${className}`, children: [
31400
- /* @__PURE__ */ jsx82(
31505
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
31506
+ /* @__PURE__ */ jsx83(
31401
31507
  "input",
31402
31508
  {
31403
31509
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31411,13 +31517,13 @@ var DateField = (props) => {
31411
31517
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31412
31518
  }
31413
31519
  ),
31414
- isForm2 && /* @__PURE__ */ jsx82(CalendarIcon, {})
31520
+ isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
31415
31521
  ] })
31416
31522
  );
31417
31523
  if (!isForm && !isEditTable) {
31418
- return /* @__PURE__ */ jsx82("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31524
+ return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31419
31525
  } else {
31420
- return /* @__PURE__ */ jsx82(
31526
+ return /* @__PURE__ */ jsx83(
31421
31527
  Controller,
31422
31528
  {
31423
31529
  name: name2 || "",
@@ -31439,8 +31545,8 @@ var DateField = (props) => {
31439
31545
  }
31440
31546
  }, [value, clearErrors, name2]);
31441
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;
31442
- return /* @__PURE__ */ jsxs52(Fragment23, { children: [
31443
- /* @__PURE__ */ jsx82(
31548
+ return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31549
+ /* @__PURE__ */ jsx83(
31444
31550
  DatePicker,
31445
31551
  {
31446
31552
  selected: selectedDate,
@@ -31488,7 +31594,7 @@ var DateField = (props) => {
31488
31594
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31489
31595
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31490
31596
  showTimeInput: showTime,
31491
- customInput: /* @__PURE__ */ jsx82(
31597
+ customInput: /* @__PURE__ */ jsx83(
31492
31598
  InputDateCustom,
31493
31599
  {
31494
31600
  isForm,
@@ -31506,7 +31612,7 @@ var DateField = (props) => {
31506
31612
  increaseMonth,
31507
31613
  prevMonthButtonDisabled,
31508
31614
  nextMonthButtonDisabled
31509
- }) => /* @__PURE__ */ jsxs52(
31615
+ }) => /* @__PURE__ */ jsxs53(
31510
31616
  "div",
31511
31617
  {
31512
31618
  style: {
@@ -31515,7 +31621,7 @@ var DateField = (props) => {
31515
31621
  justifyContent: "center"
31516
31622
  },
31517
31623
  children: [
31518
- /* @__PURE__ */ jsx82(
31624
+ /* @__PURE__ */ jsx83(
31519
31625
  "button",
31520
31626
  {
31521
31627
  onClick: decreaseMonth,
@@ -31523,7 +31629,7 @@ var DateField = (props) => {
31523
31629
  children: "<"
31524
31630
  }
31525
31631
  ),
31526
- /* @__PURE__ */ jsx82(
31632
+ /* @__PURE__ */ jsx83(
31527
31633
  StateManagedSelect$1,
31528
31634
  {
31529
31635
  classNames: {
@@ -31549,7 +31655,7 @@ var DateField = (props) => {
31549
31655
  autoFocus: true
31550
31656
  }
31551
31657
  ),
31552
- /* @__PURE__ */ jsx82(
31658
+ /* @__PURE__ */ jsx83(
31553
31659
  StateManagedSelect$1,
31554
31660
  {
31555
31661
  classNames: {
@@ -31577,7 +31683,7 @@ var DateField = (props) => {
31577
31683
  }))
31578
31684
  }
31579
31685
  ),
31580
- /* @__PURE__ */ jsx82(
31686
+ /* @__PURE__ */ jsx83(
31581
31687
  "button",
31582
31688
  {
31583
31689
  onClick: increaseMonth,
@@ -31590,7 +31696,7 @@ var DateField = (props) => {
31590
31696
  )
31591
31697
  }
31592
31698
  ),
31593
- !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 })
31594
31700
  ] });
31595
31701
  }
31596
31702
  }
@@ -31599,26 +31705,26 @@ var DateField = (props) => {
31599
31705
  };
31600
31706
 
31601
31707
  // src/widgets/basic/download-binary-field/download-binary.tsx
31602
- import { jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31708
+ import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31603
31709
  var DownLoadBinaryField = (props) => {
31604
31710
  const { handleFileDownload } = props;
31605
31711
  const { t: t3 } = useI18n();
31606
- return /* @__PURE__ */ jsxs53(
31712
+ return /* @__PURE__ */ jsxs54(
31607
31713
  "button",
31608
31714
  {
31609
31715
  type: "button",
31610
31716
  onClick: handleFileDownload,
31611
31717
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31612
31718
  children: [
31613
- /* @__PURE__ */ jsx83(DownloadIcon, {}),
31614
- /* @__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") })
31615
31721
  ]
31616
31722
  }
31617
31723
  );
31618
31724
  };
31619
31725
 
31620
31726
  // src/widgets/basic/download-file-field/download-file.tsx
31621
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31727
+ import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31622
31728
  var DownloadFileField = (props) => {
31623
31729
  const {
31624
31730
  readonly,
@@ -31630,15 +31736,15 @@ var DownloadFileField = (props) => {
31630
31736
  handleFileChange,
31631
31737
  handleFileDownload
31632
31738
  } = props;
31633
- return /* @__PURE__ */ jsxs54("div", { className: "", children: [
31634
- /* @__PURE__ */ jsxs54(
31739
+ return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31740
+ /* @__PURE__ */ jsxs55(
31635
31741
  "label",
31636
31742
  {
31637
31743
  htmlFor: inputId,
31638
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",
31639
31745
  children: [
31640
- file ? /* @__PURE__ */ jsx84("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx84("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx84("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31641
- /* @__PURE__ */ jsx84(
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(
31642
31748
  "input",
31643
31749
  {
31644
31750
  id: inputId,
@@ -31652,7 +31758,7 @@ var DownloadFileField = (props) => {
31652
31758
  ]
31653
31759
  }
31654
31760
  ),
31655
- file && /* @__PURE__ */ jsx84(
31761
+ file && /* @__PURE__ */ jsx85(
31656
31762
  "button",
31657
31763
  {
31658
31764
  onClick: handleFileDownload,
@@ -31666,7 +31772,7 @@ var DownloadFileField = (props) => {
31666
31772
 
31667
31773
  // src/widgets/basic/dropdown-field/dropdown.tsx
31668
31774
  import { useState as useState16 } from "react";
31669
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31775
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31670
31776
  var DropdownField = (props) => {
31671
31777
  const {
31672
31778
  options: options2,
@@ -31680,30 +31786,30 @@ var DropdownField = (props) => {
31680
31786
  } = props;
31681
31787
  const [open, setOpen] = useState16(false);
31682
31788
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31683
- return /* @__PURE__ */ jsxs55(
31789
+ return /* @__PURE__ */ jsxs56(
31684
31790
  "div",
31685
31791
  {
31686
31792
  ref: dropdownRef,
31687
31793
  className: `relative ${className}`,
31688
31794
  onClick: () => setOpen(!open),
31689
31795
  children: [
31690
- /* @__PURE__ */ jsxs55(
31796
+ /* @__PURE__ */ jsxs56(
31691
31797
  "div",
31692
31798
  {
31693
31799
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31694
31800
  children: [
31695
31801
  selectedValue?.icon,
31696
- /* @__PURE__ */ jsx85("span", { children: selectedValue?.label }),
31697
- /* @__PURE__ */ jsx85(ChevronBottomIcon, { className: "h-4 w-4" })
31802
+ /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31803
+ /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31698
31804
  ]
31699
31805
  }
31700
31806
  ),
31701
- open && /* @__PURE__ */ jsx85(
31807
+ open && /* @__PURE__ */ jsx86(
31702
31808
  "div",
31703
31809
  {
31704
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}`,
31705
31811
  onClick: (e3) => e3.stopPropagation(),
31706
- children: options2.map((option, index4) => /* @__PURE__ */ jsx85(
31812
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31707
31813
  "div",
31708
31814
  {
31709
31815
  onClick: () => {
@@ -31723,7 +31829,7 @@ var DropdownField = (props) => {
31723
31829
  };
31724
31830
 
31725
31831
  // src/widgets/basic/fee-field/fee.tsx
31726
- 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";
31727
31833
  var FeeField = (props) => {
31728
31834
  const { value, formValues } = props;
31729
31835
  const { t: t3 } = useI18n();
@@ -31734,27 +31840,27 @@ var FeeField = (props) => {
31734
31840
  )
31735
31841
  ) + " VND";
31736
31842
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31737
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31843
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31738
31844
  value?.subtotals?.map((sub) => {
31739
31845
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31740
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31741
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31742
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
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: [
31743
31849
  sub?.name,
31744
31850
  ":"
31745
31851
  ] }),
31746
- /* @__PURE__ */ jsx86("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
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" })
31747
31853
  ] }),
31748
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs56(
31854
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31749
31855
  "div",
31750
31856
  {
31751
31857
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31752
31858
  children: [
31753
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31859
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31754
31860
  group?.group_name,
31755
31861
  ":"
31756
31862
  ] }),
31757
- /* @__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" })
31758
31864
  ]
31759
31865
  },
31760
31866
  `tax_groups_${group?.id}`
@@ -31762,33 +31868,33 @@ var FeeField = (props) => {
31762
31868
  ] });
31763
31869
  }
31764
31870
  }),
31765
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31766
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
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: [
31767
31873
  t3("total"),
31768
31874
  ":"
31769
31875
  ] }),
31770
- /* @__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 })
31771
31877
  ] }),
31772
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31773
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
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: [
31774
31880
  t3("paid_amount"),
31775
31881
  ":"
31776
31882
  ] }),
31777
- /* @__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 })
31778
31884
  ] }),
31779
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31780
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
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: [
31781
31887
  t3("remanining_amount"),
31782
31888
  ":"
31783
31889
  ] }),
31784
- /* @__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 })
31785
31891
  ] })
31786
31892
  ] });
31787
31893
  };
31788
31894
 
31789
31895
  // src/widgets/basic/file-upload-field/file-upload.tsx
31790
31896
  import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31791
- import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31897
+ import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31792
31898
  var RenderFile = ({
31793
31899
  file,
31794
31900
  onDelete,
@@ -31798,16 +31904,16 @@ var RenderFile = ({
31798
31904
  readAs: "all"
31799
31905
  });
31800
31906
  const fileTypeIcon = {
31801
- "application/pdf": /* @__PURE__ */ jsx87(PdfIcon, {}),
31802
- "application/zip": /* @__PURE__ */ jsx87(ZipIcon, {}),
31803
- "application/x-zip-compressed": /* @__PURE__ */ jsx87(ZipIcon, {}),
31804
- "application/vnd.ms-excel": /* @__PURE__ */ jsx87(ExcelIcon, {}),
31805
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx87(ExcelIcon, {})
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, {})
31806
31912
  };
31807
- return /* @__PURE__ */ jsxs57("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31808
- /* @__PURE__ */ jsx87("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31809
- /* @__PURE__ */ jsxs57("div", { children: [
31810
- /* @__PURE__ */ jsx87(
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(
31811
31917
  "div",
31812
31918
  {
31813
31919
  style: {
@@ -31817,20 +31923,20 @@ var RenderFile = ({
31817
31923
  children: file?.name || file?.display_name || info?.name
31818
31924
  }
31819
31925
  ),
31820
- /* @__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) })
31821
31927
  ] }),
31822
- /* @__PURE__ */ jsxs57("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
31823
- /* @__PURE__ */ jsx87(
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(
31824
31930
  "span",
31825
31931
  {
31826
31932
  onClick: () => onDownload && onDownload(
31827
31933
  file?.data,
31828
31934
  file?.name || file?.display_name || info?.name
31829
31935
  ),
31830
- children: /* @__PURE__ */ jsx87(DownloadIcon, {})
31936
+ children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31831
31937
  }
31832
31938
  ),
31833
- /* @__PURE__ */ jsx87("span", { onClick: onDelete, children: /* @__PURE__ */ jsx87(DeleteIconDanger, {}) })
31939
+ /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31834
31940
  ] })
31835
31941
  ] });
31836
31942
  };
@@ -31864,7 +31970,7 @@ var FileUploadField = (props) => {
31864
31970
  ]);
31865
31971
  }
31866
31972
  }, [value]);
31867
- return /* @__PURE__ */ jsx87(
31973
+ return /* @__PURE__ */ jsx88(
31868
31974
  Controller,
31869
31975
  {
31870
31976
  name: name2 || "",
@@ -31889,8 +31995,8 @@ var FileUploadField = (props) => {
31889
31995
  );
31890
31996
  }
31891
31997
  }, [selectedFiles]);
31892
- return /* @__PURE__ */ jsxs57("div", { className: "file-upload-field", children: [
31893
- 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(
31894
32000
  RenderFile,
31895
32001
  {
31896
32002
  file: fileItem,
@@ -31905,8 +32011,8 @@ var FileUploadField = (props) => {
31905
32011
  }
31906
32012
  }
31907
32013
  )),
31908
- uploadError && /* @__PURE__ */ jsx87("div", { className: "text-[#de4747]", children: uploadError }),
31909
- (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(
31910
32016
  ButtonSelectFiles,
31911
32017
  {
31912
32018
  fileInputRef,
@@ -31921,7 +32027,7 @@ var FileUploadField = (props) => {
31921
32027
  useUploadFile
31922
32028
  }
31923
32029
  ),
31924
- 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 })
31925
32031
  ] });
31926
32032
  }
31927
32033
  }
@@ -31930,7 +32036,7 @@ var FileUploadField = (props) => {
31930
32036
 
31931
32037
  // src/widgets/basic/float-field/float.tsx
31932
32038
  import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31933
- import { Fragment as Fragment25, jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
32039
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31934
32040
  var FloatField = (props) => {
31935
32041
  const {
31936
32042
  name: name2,
@@ -31948,9 +32054,9 @@ var FloatField = (props) => {
31948
32054
  } = props;
31949
32055
  const { t: t3 } = useI18n();
31950
32056
  if (!isForm && !isEditTable) {
31951
- return /* @__PURE__ */ jsx88("span", { children: formatFloatNumber(propValue ?? defaultValue) });
32057
+ return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31952
32058
  }
31953
- return /* @__PURE__ */ jsx88(
32059
+ return /* @__PURE__ */ jsx89(
31954
32060
  Controller,
31955
32061
  {
31956
32062
  name: name2 ?? "",
@@ -32055,8 +32161,8 @@ var FloatField = (props) => {
32055
32161
  }
32056
32162
  isDirtyRef.current = false;
32057
32163
  };
32058
- return /* @__PURE__ */ jsxs58(Fragment25, { children: [
32059
- /* @__PURE__ */ jsx88(
32164
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
32165
+ /* @__PURE__ */ jsx89(
32060
32166
  "input",
32061
32167
  {
32062
32168
  ref: inputRef,
@@ -32076,7 +32182,7 @@ var FloatField = (props) => {
32076
32182
  `
32077
32183
  }
32078
32184
  ),
32079
- 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 })
32080
32186
  ] });
32081
32187
  }
32082
32188
  }
@@ -32085,7 +32191,7 @@ var FloatField = (props) => {
32085
32191
 
32086
32192
  // src/widgets/basic/float-time-field/float-time.tsx
32087
32193
  import { useState as useState19 } from "react";
32088
- 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";
32089
32195
  var FloatTimeField = (props) => {
32090
32196
  const {
32091
32197
  name: name2,
@@ -32101,9 +32207,9 @@ var FloatTimeField = (props) => {
32101
32207
  const { t: t3 } = useI18n();
32102
32208
  if (!isForm) {
32103
32209
  const formatValue = value ?? 0;
32104
- return /* @__PURE__ */ jsx89("span", { children: convertFloatToTime(formatValue) });
32210
+ return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
32105
32211
  }
32106
- return /* @__PURE__ */ jsx89(
32212
+ return /* @__PURE__ */ jsx90(
32107
32213
  Controller,
32108
32214
  {
32109
32215
  name: name2 ?? "",
@@ -32165,8 +32271,8 @@ var FloatTimeField = (props) => {
32165
32271
  }
32166
32272
  onBlur();
32167
32273
  };
32168
- return /* @__PURE__ */ jsxs59(Fragment26, { children: [
32169
- /* @__PURE__ */ jsx89(
32274
+ return /* @__PURE__ */ jsxs60(Fragment26, { children: [
32275
+ /* @__PURE__ */ jsx90(
32170
32276
  "input",
32171
32277
  {
32172
32278
  type: "text",
@@ -32198,7 +32304,7 @@ var FloatTimeField = (props) => {
32198
32304
  readOnly: readonly
32199
32305
  }
32200
32306
  ),
32201
- (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 })
32202
32308
  ] });
32203
32309
  }
32204
32310
  }
@@ -32207,7 +32313,7 @@ var FloatTimeField = (props) => {
32207
32313
 
32208
32314
  // src/widgets/basic/html-field/html.tsx
32209
32315
  import { useEffect as useEffect20, useRef as useRef17 } from "react";
32210
- import { jsx as jsx90 } from "react/jsx-runtime";
32316
+ import { jsx as jsx91 } from "react/jsx-runtime";
32211
32317
  var HtmlField = (props) => {
32212
32318
  const {
32213
32319
  name: name2,
@@ -32221,9 +32327,9 @@ var HtmlField = (props) => {
32221
32327
  } = props;
32222
32328
  const divRef = useRef17(null);
32223
32329
  if (!isForm && !isEditTable) {
32224
- return /* @__PURE__ */ jsx90("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32330
+ return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32225
32331
  }
32226
- return /* @__PURE__ */ jsx90(
32332
+ return /* @__PURE__ */ jsx91(
32227
32333
  Controller,
32228
32334
  {
32229
32335
  name: name2 ?? "",
@@ -32242,7 +32348,7 @@ var HtmlField = (props) => {
32242
32348
  onChange2(newValue, "");
32243
32349
  }
32244
32350
  };
32245
- return /* @__PURE__ */ jsx90(
32351
+ return /* @__PURE__ */ jsx91(
32246
32352
  "div",
32247
32353
  {
32248
32354
  ref: divRef,
@@ -32261,28 +32367,28 @@ var HtmlField = (props) => {
32261
32367
  };
32262
32368
 
32263
32369
  // src/widgets/basic/image-field/image.tsx
32264
- import { jsx as jsx91 } from "react/jsx-runtime";
32370
+ import { jsx as jsx92 } from "react/jsx-runtime";
32265
32371
  var ImageField = (props) => {
32266
32372
  const { value, type, name: name2, baseURL } = props;
32267
32373
  if (!value) return null;
32268
32374
  if (type === "url") {
32269
- 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 });
32270
32376
  }
32271
- 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" }) });
32272
32378
  };
32273
32379
 
32274
32380
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32275
32381
  import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
32276
32382
 
32277
32383
  // src/widgets/basic/information-field/information.tsx
32278
- 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";
32279
32385
  var InfomationField = (props) => {
32280
32386
  const { value, isForm = false, showName = true, stringToColor } = props;
32281
32387
  if (!value || Array.isArray(value) && value.length === 0) {
32282
- return /* @__PURE__ */ jsx92(Fragment27, {});
32388
+ return /* @__PURE__ */ jsx93(Fragment27, {});
32283
32389
  }
32284
32390
  const inforValues = Array.isArray(value) ? value : [value];
32285
- return /* @__PURE__ */ jsx92("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx92(
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(
32286
32392
  AvatarField,
32287
32393
  {
32288
32394
  id: item.id,
@@ -32291,8 +32397,8 @@ var InfomationField = (props) => {
32291
32397
  stringToColor
32292
32398
  },
32293
32399
  item.id
32294
- )) : /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center w-max", children: [
32295
- /* @__PURE__ */ jsx92(
32400
+ )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
32401
+ /* @__PURE__ */ jsx93(
32296
32402
  AvatarField,
32297
32403
  {
32298
32404
  avatarSrc: inforValues[0].image_256,
@@ -32302,12 +32408,12 @@ var InfomationField = (props) => {
32302
32408
  stringToColor
32303
32409
  }
32304
32410
  ),
32305
- showName && /* @__PURE__ */ jsx92("span", { className: "capitalize", children: inforValues[0].display_name })
32411
+ showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
32306
32412
  ] }) });
32307
32413
  };
32308
32414
 
32309
32415
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32310
- import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
32416
+ import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32311
32417
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32312
32418
  const { selectProps, data, menuList } = props;
32313
32419
  const { relation } = selectProps;
@@ -32316,8 +32422,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32316
32422
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32317
32423
  )
32318
32424
  )?.[0]?.action?.id;
32319
- return /* @__PURE__ */ jsxs61("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32320
- /* @__PURE__ */ jsx93(
32425
+ return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32426
+ /* @__PURE__ */ jsx94(
32321
32427
  AvatarField,
32322
32428
  {
32323
32429
  id: data?.id,
@@ -32329,8 +32435,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32329
32435
  stringToColor
32330
32436
  }
32331
32437
  ),
32332
- /* @__PURE__ */ jsx93("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32333
- /* @__PURE__ */ jsx93(
32438
+ /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32439
+ /* @__PURE__ */ jsx94(
32334
32440
  "span",
32335
32441
  {
32336
32442
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32338,7 +32444,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32338
32444
  e3.stopPropagation();
32339
32445
  props.removeProps.onClick();
32340
32446
  },
32341
- children: /* @__PURE__ */ jsx93(CloseIcon, {})
32447
+ children: /* @__PURE__ */ jsx94(CloseIcon, {})
32342
32448
  }
32343
32449
  )
32344
32450
  ] });
@@ -32348,9 +32454,9 @@ var CustomMenuList = (props) => {
32348
32454
  const { setIsShowModalMany2Many, searchable } = selectProps;
32349
32455
  const { t: t3 } = useI18n();
32350
32456
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
32351
- return /* @__PURE__ */ jsxs61(components.MenuList, { ...props, className: "z-[99]", children: [
32457
+ return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
32352
32458
  limitedChildren,
32353
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs61(
32459
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
32354
32460
  "button",
32355
32461
  {
32356
32462
  type: "button",
@@ -32395,7 +32501,7 @@ var Many2ManyTagField = (props) => {
32395
32501
  value: item.id,
32396
32502
  label: item.name ?? item.display_name
32397
32503
  })) : [];
32398
- return /* @__PURE__ */ jsx93(
32504
+ return /* @__PURE__ */ jsx94(
32399
32505
  InfomationField,
32400
32506
  {
32401
32507
  value: optionValue || null,
@@ -32404,7 +32510,7 @@ var Many2ManyTagField = (props) => {
32404
32510
  }
32405
32511
  );
32406
32512
  }
32407
- return /* @__PURE__ */ jsx93(
32513
+ return /* @__PURE__ */ jsx94(
32408
32514
  Controller,
32409
32515
  {
32410
32516
  name: name2 ?? "",
@@ -32440,8 +32546,8 @@ var Many2ManyTagField = (props) => {
32440
32546
  onChange2?.(name2 ?? "", newValue);
32441
32547
  clearErrors(name2);
32442
32548
  };
32443
- return /* @__PURE__ */ jsxs61("div", { className: "group h-full overflow-y-auto", children: [
32444
- /* @__PURE__ */ jsx93(
32549
+ return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32550
+ /* @__PURE__ */ jsx94(
32445
32551
  StateManagedSelect$1,
32446
32552
  {
32447
32553
  options: options2,
@@ -32519,7 +32625,7 @@ var Many2ManyTagField = (props) => {
32519
32625
  })
32520
32626
  },
32521
32627
  components: isUser ? {
32522
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx93(
32628
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
32523
32629
  CustomMultiValue,
32524
32630
  {
32525
32631
  ...multiValueProps,
@@ -32528,7 +32634,7 @@ var Many2ManyTagField = (props) => {
32528
32634
  ),
32529
32635
  IndicatorSeparator: () => null
32530
32636
  } : {
32531
- MenuList: (menuListProps) => /* @__PURE__ */ jsx93(
32637
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
32532
32638
  CustomMenuList,
32533
32639
  {
32534
32640
  ...menuListProps,
@@ -32539,13 +32645,13 @@ var Many2ManyTagField = (props) => {
32539
32645
  }
32540
32646
  ),
32541
32647
  IndicatorSeparator: () => null,
32542
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.DropdownIndicator, { ...props2 }),
32543
- 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 })
32544
32650
  },
32545
32651
  required: !invisible && required
32546
32652
  }
32547
32653
  ),
32548
- !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 })
32549
32655
  ] });
32550
32656
  }
32551
32657
  }
@@ -32554,7 +32660,7 @@ var Many2ManyTagField = (props) => {
32554
32660
 
32555
32661
  // src/widgets/basic/monetary-field/monetary.tsx
32556
32662
  import { useEffect as useEffect22 } from "react";
32557
- 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";
32558
32664
  var MonetaryField = (props) => {
32559
32665
  const { t: t3 } = useI18n();
32560
32666
  const {
@@ -32574,26 +32680,26 @@ var MonetaryField = (props) => {
32574
32680
  isEditTable
32575
32681
  } = props;
32576
32682
  if (isForm && name2 === "amount_residual") {
32577
- return /* @__PURE__ */ jsxs62("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32578
- /* @__PURE__ */ jsxs62("span", { className: "font-semibold", children: [
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: [
32579
32685
  string,
32580
32686
  ":"
32581
32687
  ] }),
32582
- /* @__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` })
32583
32689
  ] });
32584
32690
  }
32585
32691
  if (!isForm) {
32586
32692
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32587
32693
  if (widget === "monetary" && !formValues?.currency_id) {
32588
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32694
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32589
32695
  parseFloat(String(value ?? defaultValue))
32590
32696
  )} VND` });
32591
32697
  }
32592
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32698
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32593
32699
  parseFloat(value ?? defaultValue)
32594
32700
  )} ${currencySymbol}` });
32595
32701
  }
32596
- return /* @__PURE__ */ jsx94(
32702
+ return /* @__PURE__ */ jsx95(
32597
32703
  Controller,
32598
32704
  {
32599
32705
  name: name2 ?? "",
@@ -32612,8 +32718,8 @@ var MonetaryField = (props) => {
32612
32718
  clearErrors(name2);
32613
32719
  }
32614
32720
  }, [value2]);
32615
- return /* @__PURE__ */ jsxs62(Fragment28, { children: [
32616
- /* @__PURE__ */ jsx94(
32721
+ return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32722
+ /* @__PURE__ */ jsx95(
32617
32723
  "input",
32618
32724
  {
32619
32725
  value: formatNumberOnly(value2),
@@ -32651,7 +32757,7 @@ var MonetaryField = (props) => {
32651
32757
  `
32652
32758
  }
32653
32759
  ),
32654
- !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 })
32655
32761
  ] });
32656
32762
  }
32657
32763
  }
@@ -32659,14 +32765,14 @@ var MonetaryField = (props) => {
32659
32765
  };
32660
32766
 
32661
32767
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32662
- import { jsx as jsx95 } from "react/jsx-runtime";
32768
+ import { jsx as jsx96 } from "react/jsx-runtime";
32663
32769
  var PaidBadgedField = () => {
32664
- 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, {}) });
32665
32771
  };
32666
32772
 
32667
32773
  // src/widgets/basic/priority-field/rating-star.tsx
32668
32774
  import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32669
- import { jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
32775
+ import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32670
32776
  var RatingStarField = (props) => {
32671
32777
  const {
32672
32778
  label,
@@ -32701,7 +32807,7 @@ var RatingStarField = (props) => {
32701
32807
  setHover(0);
32702
32808
  setRating(0);
32703
32809
  };
32704
- return /* @__PURE__ */ jsx96(
32810
+ return /* @__PURE__ */ jsx97(
32705
32811
  "div",
32706
32812
  {
32707
32813
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32711,17 +32817,17 @@ var RatingStarField = (props) => {
32711
32817
  const starValue = index4 + 1;
32712
32818
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32713
32819
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32714
- return /* @__PURE__ */ jsxs63(React17.Fragment, { children: [
32715
- /* @__PURE__ */ jsx96(
32820
+ return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32821
+ /* @__PURE__ */ jsx97(
32716
32822
  "div",
32717
32823
  {
32718
32824
  onMouseEnter: () => handleHover(starValue),
32719
32825
  onClick: () => handleClick(starValue),
32720
32826
  "data-tooltip-id": `${id}-${starValue}`,
32721
- children: /* @__PURE__ */ jsx96(StarIcon, { fill: fillColor, stroke: strokeColor })
32827
+ children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32722
32828
  }
32723
32829
  ),
32724
- /* @__PURE__ */ jsx96(
32830
+ /* @__PURE__ */ jsx97(
32725
32831
  M,
32726
32832
  {
32727
32833
  className: "z-50",
@@ -32737,7 +32843,7 @@ var RatingStarField = (props) => {
32737
32843
  };
32738
32844
 
32739
32845
  // src/widgets/basic/priority-field/priority.tsx
32740
- import { jsx as jsx97 } from "react/jsx-runtime";
32846
+ import { jsx as jsx98 } from "react/jsx-runtime";
32741
32847
  var PriorityField = (props) => {
32742
32848
  const {
32743
32849
  isForm,
@@ -32753,7 +32859,7 @@ var PriorityField = (props) => {
32753
32859
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32754
32860
  const defaultPriority = parseInt(value) + 1;
32755
32861
  if (!isForm) {
32756
- return /* @__PURE__ */ jsx97(
32862
+ return /* @__PURE__ */ jsx98(
32757
32863
  RatingStarField,
32758
32864
  {
32759
32865
  label,
@@ -32764,7 +32870,7 @@ var PriorityField = (props) => {
32764
32870
  }
32765
32871
  );
32766
32872
  }
32767
- return /* @__PURE__ */ jsx97(
32873
+ return /* @__PURE__ */ jsx98(
32768
32874
  Controller,
32769
32875
  {
32770
32876
  name: name ?? "",
@@ -32774,7 +32880,7 @@ var PriorityField = (props) => {
32774
32880
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32775
32881
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32776
32882
  };
32777
- return /* @__PURE__ */ jsx97(
32883
+ return /* @__PURE__ */ jsx98(
32778
32884
  RatingStarField,
32779
32885
  {
32780
32886
  label,
@@ -32791,7 +32897,7 @@ var PriorityField = (props) => {
32791
32897
 
32792
32898
  // src/widgets/basic/radio-group-field/radio-group.tsx
32793
32899
  import { useEffect as useEffect24 } from "react";
32794
- import { jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
32900
+ import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32795
32901
  var RadioGroupField = (props) => {
32796
32902
  const {
32797
32903
  name: name2,
@@ -32810,13 +32916,13 @@ var RadioGroupField = (props) => {
32810
32916
  }
32811
32917
  }, [selection, name2, setValue]);
32812
32918
  if (!methods) return null;
32813
- return /* @__PURE__ */ jsx98(
32919
+ return /* @__PURE__ */ jsx99(
32814
32920
  Controller,
32815
32921
  {
32816
32922
  name: name2 ?? "",
32817
32923
  control: methods.control,
32818
- render: ({ field }) => /* @__PURE__ */ jsx98("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-1", children: [
32819
- /* @__PURE__ */ jsx98(
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(
32820
32926
  "input",
32821
32927
  {
32822
32928
  type: "radio",
@@ -32835,7 +32941,7 @@ var RadioGroupField = (props) => {
32835
32941
  className: "custom-radio"
32836
32942
  }
32837
32943
  ),
32838
- /* @__PURE__ */ jsx98("label", { htmlFor: String(select[0]), children: select[1] })
32944
+ /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32839
32945
  ] }, select[0])) })
32840
32946
  }
32841
32947
  );
@@ -32843,7 +32949,7 @@ var RadioGroupField = (props) => {
32843
32949
 
32844
32950
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32845
32951
  var import_moment3 = __toESM(require_moment());
32846
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32952
+ import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32847
32953
  var RemainingDaysField = (props) => {
32848
32954
  const {
32849
32955
  value,
@@ -32854,14 +32960,14 @@ var RemainingDaysField = (props) => {
32854
32960
  if (!value) return null;
32855
32961
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32856
32962
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32857
- return /* @__PURE__ */ jsxs65("div", { className: isForm ? "mb-4" : "", children: [
32858
- /* @__PURE__ */ jsx99(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32859
- /* @__PURE__ */ jsx99(
32963
+ return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32964
+ /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32965
+ /* @__PURE__ */ jsx100(
32860
32966
  "div",
32861
32967
  {
32862
32968
  "data-tooltip-id": `remainingDays_${value}`,
32863
32969
  className: "flex items-center w-fit cursor-context-menu",
32864
- children: /* @__PURE__ */ jsx99(
32970
+ children: /* @__PURE__ */ jsx100(
32865
32971
  "div",
32866
32972
  {
32867
32973
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32874,7 +32980,7 @@ var RemainingDaysField = (props) => {
32874
32980
  };
32875
32981
 
32876
32982
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32877
- 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";
32878
32984
  var SelectDropdownField = (props) => {
32879
32985
  const { t: t3 } = useI18n();
32880
32986
  const {
@@ -32896,9 +33002,9 @@ var SelectDropdownField = (props) => {
32896
33002
  label: val[1]
32897
33003
  })) : [];
32898
33004
  if (!isForm && !isEditTable) {
32899
- 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 });
32900
33006
  } else {
32901
- return /* @__PURE__ */ jsx100(
33007
+ return /* @__PURE__ */ jsx101(
32902
33008
  Controller,
32903
33009
  {
32904
33010
  name: name2 || "",
@@ -32925,8 +33031,8 @@ var SelectDropdownField = (props) => {
32925
33031
  value: defaultValue || null,
32926
33032
  required: !invisible && required
32927
33033
  };
32928
- return /* @__PURE__ */ jsxs66(Fragment29, { children: [
32929
- /* @__PURE__ */ jsx100("div", { className: "group", children: /* @__PURE__ */ jsx100(
33034
+ return /* @__PURE__ */ jsxs67(Fragment29, { children: [
33035
+ /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32930
33036
  StateManagedSelect$1,
32931
33037
  {
32932
33038
  ...commonProps,
@@ -32981,12 +33087,12 @@ var SelectDropdownField = (props) => {
32981
33087
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32982
33088
  components: {
32983
33089
  IndicatorSeparator: () => null,
32984
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx100(components.DropdownIndicator, { ...props2 })
33090
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32985
33091
  },
32986
33092
  noOptionsMessage: () => t3("no-available")
32987
33093
  }
32988
33094
  ) }),
32989
- !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 })
32990
33096
  ] });
32991
33097
  }
32992
33098
  }
@@ -32995,7 +33101,7 @@ var SelectDropdownField = (props) => {
32995
33101
  };
32996
33102
 
32997
33103
  // src/widgets/basic/textarea-field/textarea.tsx
32998
- import { jsx as jsx101 } from "react/jsx-runtime";
33104
+ import { jsx as jsx102 } from "react/jsx-runtime";
32999
33105
  var TextAreaField = (props) => {
33000
33106
  const {
33001
33107
  methods,
@@ -33019,9 +33125,9 @@ var TextAreaField = (props) => {
33019
33125
  }
33020
33126
  }) : {};
33021
33127
  if (!isForm) {
33022
- 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 });
33023
33129
  }
33024
- return /* @__PURE__ */ jsx101(
33130
+ return /* @__PURE__ */ jsx102(
33025
33131
  "textarea",
33026
33132
  {
33027
33133
  ...formProps,
@@ -33037,7 +33143,7 @@ var TextAreaField = (props) => {
33037
33143
  };
33038
33144
 
33039
33145
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
33040
- import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
33146
+ import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
33041
33147
  var ToggleButtonField = (props) => {
33042
33148
  const {
33043
33149
  name: name2,
@@ -33047,13 +33153,13 @@ var ToggleButtonField = (props) => {
33047
33153
  onChange: onChange2,
33048
33154
  methods
33049
33155
  } = props;
33050
- return /* @__PURE__ */ jsx102(
33156
+ return /* @__PURE__ */ jsx103(
33051
33157
  Controller,
33052
33158
  {
33053
33159
  name: name2 ?? "",
33054
33160
  control: methods?.control,
33055
- render: ({ field }) => /* @__PURE__ */ jsx102("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs67("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33056
- /* @__PURE__ */ jsx102(
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(
33057
33163
  "input",
33058
33164
  {
33059
33165
  ...field,
@@ -33072,7 +33178,7 @@ var ToggleButtonField = (props) => {
33072
33178
  checked: field.value ?? false
33073
33179
  }
33074
33180
  ),
33075
- /* @__PURE__ */ jsx102(
33181
+ /* @__PURE__ */ jsx103(
33076
33182
  "span",
33077
33183
  {
33078
33184
  style: {
@@ -33081,7 +33187,7 @@ var ToggleButtonField = (props) => {
33081
33187
  },
33082
33188
  className: `rounded-full transition duration-300
33083
33189
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
33084
- children: /* @__PURE__ */ jsx102(
33190
+ children: /* @__PURE__ */ jsx103(
33085
33191
  "span",
33086
33192
  {
33087
33193
  style: {
@@ -33106,7 +33212,7 @@ var ToggleButtonField = (props) => {
33106
33212
 
33107
33213
  // src/widgets/basic/integer-field/integer.tsx
33108
33214
  import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
33109
- import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
33215
+ import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
33110
33216
  var IntegerField = (props) => {
33111
33217
  const {
33112
33218
  name: name2,
@@ -33125,9 +33231,9 @@ var IntegerField = (props) => {
33125
33231
  const { t: t3 } = useI18n();
33126
33232
  if (!isForm && !isEditTable) {
33127
33233
  const displayValue = value ?? defaultValue;
33128
- 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) });
33129
33235
  }
33130
- return /* @__PURE__ */ jsx103(
33236
+ return /* @__PURE__ */ jsx104(
33131
33237
  Controller,
33132
33238
  {
33133
33239
  name: name2 || "",
@@ -33205,8 +33311,8 @@ var IntegerField = (props) => {
33205
33311
  inputRef.current?.blur();
33206
33312
  clearErrors(name2);
33207
33313
  };
33208
- return /* @__PURE__ */ jsxs68(Fragment30, { children: [
33209
- /* @__PURE__ */ jsx103(
33314
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
33315
+ /* @__PURE__ */ jsx104(
33210
33316
  "input",
33211
33317
  {
33212
33318
  ref: inputRef,
@@ -33241,7 +33347,7 @@ var IntegerField = (props) => {
33241
33347
  `
33242
33348
  }
33243
33349
  ),
33244
- 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 })
33245
33351
  ] });
33246
33352
  }
33247
33353
  }
@@ -33249,7 +33355,7 @@ var IntegerField = (props) => {
33249
33355
  };
33250
33356
 
33251
33357
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33252
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
33358
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33253
33359
  var StatusDropdownField = (props) => {
33254
33360
  const {
33255
33361
  buttonRef,
@@ -33261,13 +33367,13 @@ var StatusDropdownField = (props) => {
33261
33367
  handleClick,
33262
33368
  colors: colors2
33263
33369
  } = props;
33264
- return /* @__PURE__ */ jsxs69(
33370
+ return /* @__PURE__ */ jsxs70(
33265
33371
  "div",
33266
33372
  {
33267
33373
  ref: buttonRef,
33268
33374
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
33269
33375
  children: [
33270
- /* @__PURE__ */ jsx104(
33376
+ /* @__PURE__ */ jsx105(
33271
33377
  "button",
33272
33378
  {
33273
33379
  type: "button",
@@ -33275,23 +33381,23 @@ var StatusDropdownField = (props) => {
33275
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"}`
33276
33382
  }
33277
33383
  ),
33278
- isOpen && /* @__PURE__ */ jsx104("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
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) => {
33279
33385
  const isActive = item[0] == state;
33280
- return /* @__PURE__ */ jsxs69(
33386
+ return /* @__PURE__ */ jsxs70(
33281
33387
  "div",
33282
33388
  {
33283
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" : ""}`,
33284
33390
  onClick: () => handleClick(item[0]),
33285
33391
  children: [
33286
- /* @__PURE__ */ jsx104("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx104(CheckIcon, {}) }),
33287
- /* @__PURE__ */ jsxs69("div", { className: "flex items-center gap-2", children: [
33288
- /* @__PURE__ */ jsx104(
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(
33289
33395
  "div",
33290
33396
  {
33291
33397
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33292
33398
  }
33293
33399
  ),
33294
- /* @__PURE__ */ jsx104("span", { className: "text-sm", children: item[1] })
33400
+ /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
33295
33401
  ] })
33296
33402
  ]
33297
33403
  },
@@ -33306,7 +33412,7 @@ var StatusDropdownField = (props) => {
33306
33412
  // src/widgets/basic/many2many-field/many2many.tsx
33307
33413
  import { createPortal as createPortal5 } from "react-dom";
33308
33414
  import { useEffect as useEffect26 } from "react";
33309
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33415
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33310
33416
  var Many2ManyField = (props) => {
33311
33417
  const { t: t3 } = useI18n();
33312
33418
  const {
@@ -33380,7 +33486,7 @@ var Many2ManyField = (props) => {
33380
33486
  };
33381
33487
  }, [selectedTags]);
33382
33488
  return createPortal5(
33383
- /* @__PURE__ */ jsxs70(
33489
+ /* @__PURE__ */ jsxs71(
33384
33490
  "div",
33385
33491
  {
33386
33492
  style: {
@@ -33388,8 +33494,8 @@ var Many2ManyField = (props) => {
33388
33494
  },
33389
33495
  className: "fixed bottom-0 left-0 right-0 top-0",
33390
33496
  children: [
33391
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33392
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs70(
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(
33393
33499
  "div",
33394
33500
  {
33395
33501
  style: {
@@ -33397,12 +33503,12 @@ var Many2ManyField = (props) => {
33397
33503
  },
33398
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",
33399
33505
  children: [
33400
- /* @__PURE__ */ jsxs70("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33401
- /* @__PURE__ */ jsx105("div", { className: "text-[20px] font-semibold", children: title }),
33402
- /* @__PURE__ */ jsx105("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx105(CloseIcon, {}) })
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, {}) })
33403
33509
  ] }),
33404
- /* @__PURE__ */ jsxs70("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33405
- /* @__PURE__ */ jsx105("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx105(
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(
33406
33512
  Search,
33407
33513
  {
33408
33514
  removeSearchItems,
@@ -33436,7 +33542,7 @@ var Many2ManyField = (props) => {
33436
33542
  groupByList
33437
33543
  }
33438
33544
  ) }),
33439
- /* @__PURE__ */ jsx105(
33545
+ /* @__PURE__ */ jsx106(
33440
33546
  PaginationView,
33441
33547
  {
33442
33548
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33453,20 +33559,20 @@ var Many2ManyField = (props) => {
33453
33559
  }
33454
33560
  )
33455
33561
  ] }),
33456
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx105("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx105("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx105(
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(
33457
33563
  "div",
33458
33564
  {
33459
33565
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33460
- children: /* @__PURE__ */ jsx105("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx105("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx105(
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(
33461
33567
  "div",
33462
33568
  {
33463
33569
  className: `flex w-full items-center h-full overflow-auto `,
33464
- children: /* @__PURE__ */ jsx105("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs70(
33570
+ children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
33465
33571
  "table",
33466
33572
  {
33467
33573
  className: `relative w-full bg-white custom-dropdown `,
33468
33574
  children: [
33469
- /* @__PURE__ */ jsx105(
33575
+ /* @__PURE__ */ jsx106(
33470
33576
  TableHead,
33471
33577
  {
33472
33578
  columns,
@@ -33476,7 +33582,7 @@ var Many2ManyField = (props) => {
33476
33582
  handleCheckBoxAll
33477
33583
  }
33478
33584
  ),
33479
- rows?.length > 0 ? /* @__PURE__ */ jsx105(
33585
+ rows?.length > 0 ? /* @__PURE__ */ jsx106(
33480
33586
  TableBody,
33481
33587
  {
33482
33588
  tableGroupController,
@@ -33516,16 +33622,16 @@ var Many2ManyField = (props) => {
33516
33622
  checkedAll,
33517
33623
  context
33518
33624
  }
33519
- ) : /* @__PURE__ */ jsx105("tr", { children: /* @__PURE__ */ jsx105(
33625
+ ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
33520
33626
  "td",
33521
33627
  {
33522
33628
  className: "w-full",
33523
33629
  colSpan: columns?.length + 2,
33524
- children: /* @__PURE__ */ jsx105(
33630
+ children: /* @__PURE__ */ jsx106(
33525
33631
  "div",
33526
33632
  {
33527
33633
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33528
- children: /* @__PURE__ */ jsx105(EmptyTable, {})
33634
+ children: /* @__PURE__ */ jsx106(EmptyTable, {})
33529
33635
  }
33530
33636
  )
33531
33637
  }
@@ -33536,9 +33642,9 @@ var Many2ManyField = (props) => {
33536
33642
  }
33537
33643
  ) }) })
33538
33644
  }
33539
- ) }) }) : /* @__PURE__ */ jsx105(LayerLoading, {}),
33540
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2 mt-auto", children: [
33541
- isDisplayCheckbox && /* @__PURE__ */ jsx105(
33645
+ ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33646
+ /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33647
+ isDisplayCheckbox && /* @__PURE__ */ jsx106(
33542
33648
  "button",
33543
33649
  {
33544
33650
  disabled: selectedRowKeys?.length === 0,
@@ -33548,7 +33654,7 @@ var Many2ManyField = (props) => {
33548
33654
  children: t3("choose")
33549
33655
  }
33550
33656
  ),
33551
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx105(
33657
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33552
33658
  "button",
33553
33659
  {
33554
33660
  type: "button",
@@ -33564,7 +33670,7 @@ var Many2ManyField = (props) => {
33564
33670
  children: t3("new")
33565
33671
  }
33566
33672
  ),
33567
- /* @__PURE__ */ jsx105(
33673
+ /* @__PURE__ */ jsx106(
33568
33674
  "button",
33569
33675
  {
33570
33676
  type: "button",
@@ -33586,15 +33692,15 @@ var Many2ManyField = (props) => {
33586
33692
 
33587
33693
  // src/widgets/basic/many2one-field/many2one.tsx
33588
33694
  import React18, { useEffect as useEffect27 } from "react";
33589
- 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";
33590
33696
  var CustomMenuList2 = (props) => {
33591
33697
  const { t: t3 } = useI18n();
33592
33698
  const { options: options2, children, selectProps } = props;
33593
33699
  const { setIsShowModalMany2Many, searchable } = selectProps;
33594
33700
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33595
- return /* @__PURE__ */ jsxs71(components.MenuList, { ...props, className: "z-[99]", children: [
33701
+ return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33596
33702
  limitedChildren,
33597
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs71(
33703
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33598
33704
  "button",
33599
33705
  {
33600
33706
  type: "button",
@@ -33637,14 +33743,14 @@ var Many2OneField = (props) => {
33637
33743
  const { t: t3 } = useI18n();
33638
33744
  if (!isForm && !isEditTable) {
33639
33745
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33640
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33746
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33641
33747
  allowShowDetail && renderDetail({
33642
33748
  idToolTip: String(name2) + Number(index4),
33643
33749
  model: options2?.model ?? relation,
33644
33750
  context: contextObject,
33645
33751
  idForm: id
33646
33752
  }),
33647
- /* @__PURE__ */ jsx106(
33753
+ /* @__PURE__ */ jsx107(
33648
33754
  "span",
33649
33755
  {
33650
33756
  className: "cursor-pointer",
@@ -33655,20 +33761,20 @@ var Many2OneField = (props) => {
33655
33761
  )
33656
33762
  ] });
33657
33763
  }
33658
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33764
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33659
33765
  allowShowDetail && renderDetail({
33660
33766
  idToolTip: String(name2),
33661
33767
  model: options2?.model ?? relation,
33662
33768
  context: contextObject,
33663
33769
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33664
33770
  }),
33665
- /* @__PURE__ */ jsx106(
33771
+ /* @__PURE__ */ jsx107(
33666
33772
  "div",
33667
33773
  {
33668
33774
  id: name2,
33669
33775
  "data-tooltip-id": name2,
33670
33776
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33671
- children: /* @__PURE__ */ jsx106(
33777
+ children: /* @__PURE__ */ jsx107(
33672
33778
  Controller,
33673
33779
  {
33674
33780
  name: name2 ?? "",
@@ -33693,8 +33799,8 @@ var Many2OneField = (props) => {
33693
33799
  methods?.clearErrors(name2);
33694
33800
  }
33695
33801
  }, [selectedOption]);
33696
- return /* @__PURE__ */ jsxs71("div", { className: "h-full", children: [
33697
- /* @__PURE__ */ jsx106(
33802
+ return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33803
+ /* @__PURE__ */ jsx107(
33698
33804
  StateManagedSelect$1,
33699
33805
  {
33700
33806
  menuShouldScrollIntoView: false,
@@ -33770,7 +33876,7 @@ var Many2OneField = (props) => {
33770
33876
  })
33771
33877
  },
33772
33878
  components: {
33773
- MenuList: (menuListProps) => /* @__PURE__ */ jsx106(
33879
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33774
33880
  CustomMenuList2,
33775
33881
  {
33776
33882
  ...menuListProps,
@@ -33781,13 +33887,13 @@ var Many2OneField = (props) => {
33781
33887
  }
33782
33888
  ),
33783
33889
  IndicatorSeparator: () => null,
33784
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx106(components.DropdownIndicator, { ...props2 })
33890
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33785
33891
  },
33786
33892
  isDisabled: readonly,
33787
33893
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33788
33894
  }
33789
33895
  ),
33790
- !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 })
33791
33897
  ] });
33792
33898
  }
33793
33899
  }
@@ -33798,7 +33904,7 @@ var Many2OneField = (props) => {
33798
33904
  };
33799
33905
 
33800
33906
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33801
- import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33907
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33802
33908
  var StatusbarDurationField = (props) => {
33803
33909
  const {
33804
33910
  disabled,
@@ -33808,14 +33914,14 @@ var StatusbarDurationField = (props) => {
33808
33914
  defaultValue,
33809
33915
  setModalStatus
33810
33916
  } = props;
33811
- return /* @__PURE__ */ jsx107(
33917
+ return /* @__PURE__ */ jsx108(
33812
33918
  "div",
33813
33919
  {
33814
33920
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33815
- children: /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[24px]", children: [
33816
- /* @__PURE__ */ jsx107("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
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) => {
33817
33923
  const value = option?.id === defaultValue;
33818
- return /* @__PURE__ */ jsxs72(
33924
+ return /* @__PURE__ */ jsxs73(
33819
33925
  "label",
33820
33926
  {
33821
33927
  onClick: () => !disabled && handleClick(option.id),
@@ -33825,7 +33931,7 @@ var StatusbarDurationField = (props) => {
33825
33931
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33826
33932
  `,
33827
33933
  children: [
33828
- /* @__PURE__ */ jsx107(
33934
+ /* @__PURE__ */ jsx108(
33829
33935
  "input",
33830
33936
  {
33831
33937
  type: "radio",
@@ -33835,7 +33941,7 @@ var StatusbarDurationField = (props) => {
33835
33941
  }
33836
33942
  ),
33837
33943
  option?.name,
33838
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx107(
33944
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33839
33945
  "div",
33840
33946
  {
33841
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]
@@ -33850,14 +33956,14 @@ var StatusbarDurationField = (props) => {
33850
33956
  }) }),
33851
33957
  dataResponse?.records?.some(
33852
33958
  (item) => item?.fold && item.id !== defaultValue
33853
- ) && /* @__PURE__ */ jsxs72(
33959
+ ) && /* @__PURE__ */ jsxs73(
33854
33960
  "div",
33855
33961
  {
33856
33962
  onClick: () => setModalStatus(!modelStatus),
33857
33963
  className: "w-[24px] h-[24px] cursor-pointer relative",
33858
33964
  children: [
33859
- /* @__PURE__ */ jsx107(MoreIcon, {}),
33860
- modelStatus && /* @__PURE__ */ jsx107(
33965
+ /* @__PURE__ */ jsx108(MoreIcon, {}),
33966
+ modelStatus && /* @__PURE__ */ jsx108(
33861
33967
  "div",
33862
33968
  {
33863
33969
  onClick: (e3) => e3.stopPropagation(),
@@ -33866,7 +33972,7 @@ var StatusbarDurationField = (props) => {
33866
33972
  (item) => item?.fold && item.id !== defaultValue
33867
33973
  )?.map((option) => {
33868
33974
  const value = option?.id === defaultValue;
33869
- return /* @__PURE__ */ jsx107(
33975
+ return /* @__PURE__ */ jsx108(
33870
33976
  "div",
33871
33977
  {
33872
33978
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33888,14 +33994,14 @@ var StatusbarDurationField = (props) => {
33888
33994
 
33889
33995
  // src/widgets/basic/status-bar-field/option/option.tsx
33890
33996
  import { useMemo as useMemo11 } from "react";
33891
- 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";
33892
33998
  var StatusBarOptionField = (props) => {
33893
33999
  const { selection, defaultValue } = props;
33894
34000
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33895
34001
  const indexInProgress = memoizedStatusOptions?.findIndex(
33896
34002
  (option) => option?.[0] === defaultValue
33897
34003
  );
33898
- return /* @__PURE__ */ jsx108(
34004
+ return /* @__PURE__ */ jsx109(
33899
34005
  "div",
33900
34006
  {
33901
34007
  style: {
@@ -33904,8 +34010,8 @@ var StatusBarOptionField = (props) => {
33904
34010
  flexWrap: "wrap"
33905
34011
  },
33906
34012
  children: memoizedStatusOptions?.map((option, index4) => {
33907
- return /* @__PURE__ */ jsxs73(Fragment32, { children: [
33908
- /* @__PURE__ */ jsxs73(
34013
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
34014
+ /* @__PURE__ */ jsxs74(
33909
34015
  "div",
33910
34016
  {
33911
34017
  style: {
@@ -33923,7 +34029,7 @@ var StatusBarOptionField = (props) => {
33923
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" : ""
33924
34030
  },
33925
34031
  children: [
33926
- /* @__PURE__ */ jsx108(
34032
+ /* @__PURE__ */ jsx109(
33927
34033
  "span",
33928
34034
  {
33929
34035
  style: {
@@ -33935,10 +34041,10 @@ var StatusBarOptionField = (props) => {
33935
34041
  alignItems: "center",
33936
34042
  borderRadius: "100%"
33937
34043
  },
33938
- 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, {})
33939
34045
  }
33940
34046
  ),
33941
- /* @__PURE__ */ jsx108(
34047
+ /* @__PURE__ */ jsx109(
33942
34048
  "span",
33943
34049
  {
33944
34050
  style: {
@@ -33951,7 +34057,7 @@ var StatusBarOptionField = (props) => {
33951
34057
  },
33952
34058
  option?.[0]
33953
34059
  ),
33954
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx108(
34060
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33955
34061
  "div",
33956
34062
  {
33957
34063
  style: {
@@ -33967,7 +34073,7 @@ var StatusBarOptionField = (props) => {
33967
34073
  );
33968
34074
  };
33969
34075
  var ICMinus = () => {
33970
- return /* @__PURE__ */ jsx108(
34076
+ return /* @__PURE__ */ jsx109(
33971
34077
  "svg",
33972
34078
  {
33973
34079
  xmlns: "http://www.w3.org/2000/svg",
@@ -33975,7 +34081,7 @@ var ICMinus = () => {
33975
34081
  height: "16",
33976
34082
  viewBox: "0 0 16 16",
33977
34083
  fill: "none",
33978
- children: /* @__PURE__ */ jsx108(
34084
+ children: /* @__PURE__ */ jsx109(
33979
34085
  "path",
33980
34086
  {
33981
34087
  d: "M4 8H12",
@@ -33989,7 +34095,7 @@ var ICMinus = () => {
33989
34095
  );
33990
34096
  };
33991
34097
  var ICCircle = () => {
33992
- return /* @__PURE__ */ jsx108(
34098
+ return /* @__PURE__ */ jsx109(
33993
34099
  "svg",
33994
34100
  {
33995
34101
  xmlns: "http://www.w3.org/2000/svg",
@@ -33997,12 +34103,12 @@ var ICCircle = () => {
33997
34103
  height: "8",
33998
34104
  viewBox: "0 0 8 8",
33999
34105
  fill: "none",
34000
- 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" })
34001
34107
  }
34002
34108
  );
34003
34109
  };
34004
34110
  var ICCheck = () => {
34005
- return /* @__PURE__ */ jsx108(
34111
+ return /* @__PURE__ */ jsx109(
34006
34112
  "svg",
34007
34113
  {
34008
34114
  xmlns: "http://www.w3.org/2000/svg",
@@ -34010,7 +34116,7 @@ var ICCheck = () => {
34010
34116
  height: "16",
34011
34117
  viewBox: "0 0 16 16",
34012
34118
  fill: "none",
34013
- children: /* @__PURE__ */ jsx108(
34119
+ children: /* @__PURE__ */ jsx109(
34014
34120
  "path",
34015
34121
  {
34016
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",
@@ -34024,7 +34130,7 @@ var ICCheck = () => {
34024
34130
  };
34025
34131
 
34026
34132
  // src/widgets/basic/date-option-field/date-option.tsx
34027
- import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
34133
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
34028
34134
  var DateOptionField = (props) => {
34029
34135
  const {
34030
34136
  name: name2,
@@ -34035,19 +34141,19 @@ var DateOptionField = (props) => {
34035
34141
  string,
34036
34142
  onChange: onChange2
34037
34143
  } = props;
34038
- return /* @__PURE__ */ jsx109(
34144
+ return /* @__PURE__ */ jsx110(
34039
34145
  Controller,
34040
34146
  {
34041
34147
  name: name2 ?? "",
34042
34148
  control: methods?.control,
34043
- render: ({ field }) => /* @__PURE__ */ jsxs74(
34149
+ render: ({ field }) => /* @__PURE__ */ jsxs75(
34044
34150
  "label",
34045
34151
  {
34046
34152
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34047
34153
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34048
34154
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34049
34155
  children: [
34050
- /* @__PURE__ */ jsx109(
34156
+ /* @__PURE__ */ jsx110(
34051
34157
  "input",
34052
34158
  {
34053
34159
  type: "checkbox",
@@ -34120,6 +34226,7 @@ export {
34120
34226
  HtmlField,
34121
34227
  I18nProvider,
34122
34228
  ImageField,
34229
+ ImageIcon,
34123
34230
  InfomationField,
34124
34231
  IntegerField,
34125
34232
  KanbanIcon,