@fctc/sme-widget-ui 1.9.0 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4985,6 +4985,7 @@ __export(index_exports, {
4985
4985
  HtmlField: () => HtmlField,
4986
4986
  I18nProvider: () => I18nProvider,
4987
4987
  ImageField: () => ImageField,
4988
+ ImageIcon: () => ImageIcon,
4988
4989
  InfomationField: () => InfomationField,
4989
4990
  IntegerField: () => IntegerField,
4990
4991
  KanbanIcon: () => KanbanIcon,
@@ -7053,6 +7054,58 @@ var DeleteIconDanger = () => {
7053
7054
  );
7054
7055
  };
7055
7056
 
7057
+ // src/icons/image-icon.tsx
7058
+ var import_jsx_runtime38 = require("react/jsx-runtime");
7059
+ var ImageIcon = () => {
7060
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
7061
+ "svg",
7062
+ {
7063
+ xmlns: "http://www.w3.org/2000/svg",
7064
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
7065
+ width: "38",
7066
+ height: "38",
7067
+ viewBox: "0 0 38 38",
7068
+ children: [
7069
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("defs", { children: [
7070
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("rect", { id: "image-a", width: "32", height: "35", x: "3", y: "1", rx: "3" }),
7071
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7072
+ "path",
7073
+ {
7074
+ id: "image-b",
7075
+ 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"
7076
+ }
7077
+ )
7078
+ ] }),
7079
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("g", { fill: "none", fillRule: "evenodd", children: [
7080
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("polygon", { fill: "#1C8B96", points: "34 2 34 34 4 34" }),
7081
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("use", { fill: "#FFF", fillOpacity: ".93", xlinkHref: "#image-a" }),
7082
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7083
+ "rect",
7084
+ {
7085
+ width: "30",
7086
+ height: "33",
7087
+ x: "4",
7088
+ y: "2",
7089
+ stroke: "#1C8B96",
7090
+ strokeWidth: "2",
7091
+ rx: "3"
7092
+ }
7093
+ ),
7094
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("use", { fill: "#1C8B96", fillOpacity: ".516", xlinkHref: "#image-b" }),
7095
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
7096
+ "path",
7097
+ {
7098
+ stroke: "#1C8B96",
7099
+ 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"
7100
+ }
7101
+ ),
7102
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("circle", { cx: "25.5", cy: "11.5", r: "4.5", fill: "#1C8B96" })
7103
+ ] })
7104
+ ]
7105
+ }
7106
+ );
7107
+ };
7108
+
7056
7109
  // src/types/widget-type/index.ts
7057
7110
  var import_zod = __toESM(require("zod"));
7058
7111
  var loginSchema = import_zod.default.object({
@@ -10111,7 +10164,7 @@ instance.use(Browser).use(initReactI18next).init({
10111
10164
  var i18n_default = instance;
10112
10165
 
10113
10166
  // src/provider/index.tsx
10114
- var import_jsx_runtime38 = require("react/jsx-runtime");
10167
+ var import_jsx_runtime39 = require("react/jsx-runtime");
10115
10168
  var I18nContext2 = (0, import_react11.createContext)(null);
10116
10169
  var I18nProvider = ({
10117
10170
  children,
@@ -10123,7 +10176,7 @@ var I18nProvider = ({
10123
10176
  }
10124
10177
  }, [lang]);
10125
10178
  const { t: t3 } = useTranslation();
10126
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10179
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
10127
10180
  I18nContext2.Provider,
10128
10181
  {
10129
10182
  value: {
@@ -10131,7 +10184,7 @@ var I18nProvider = ({
10131
10184
  t: t3,
10132
10185
  changeLanguage: i18n_default.changeLanguage
10133
10186
  },
10134
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(I18nextProvider, { i18n: i18n_default, children })
10187
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(I18nextProvider, { i18n: i18n_default, children })
10135
10188
  }
10136
10189
  );
10137
10190
  };
@@ -10699,11 +10752,11 @@ var usePagination = ({
10699
10752
  };
10700
10753
 
10701
10754
  // src/icons/common.tsx
10702
- var import_jsx_runtime39 = require("react/jsx-runtime");
10703
- var IcArrow = () => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }) });
10755
+ var import_jsx_runtime40 = require("react/jsx-runtime");
10756
+ var IcArrow = () => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }) });
10704
10757
 
10705
10758
  // src/widgets/advanced/pagination/pagination-view.tsx
10706
- var import_jsx_runtime40 = require("react/jsx-runtime");
10759
+ var import_jsx_runtime41 = require("react/jsx-runtime");
10707
10760
  var PaginationView = (props) => {
10708
10761
  const {
10709
10762
  displayPageNumberDots,
@@ -10736,25 +10789,25 @@ var PaginationView = (props) => {
10736
10789
  let lastPage = paginationRange[paginationRange.length - 1];
10737
10790
  const startPage = currentPage * pageSize + 1;
10738
10791
  const endPage = Math.min((currentPage + 1) * pageSize, totalCount);
10739
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10740
- !displayPageNumberDots && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("li", { className: "pagination-item px-0", children: [
10792
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10793
+ !displayPageNumberDots && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("li", { className: "pagination-item px-0", children: [
10741
10794
  startPage,
10742
10795
  " - ",
10743
10796
  endPage,
10744
10797
  " / ",
10745
10798
  totalCount
10746
10799
  ] }),
10747
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10800
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10748
10801
  "li",
10749
10802
  {
10750
10803
  className: `pagination-item ${currentPage === 0 && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10751
10804
  onClick: onPrevious,
10752
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "arrow left", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(IcArrow, {}) })
10805
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "arrow left", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(IcArrow, {}) })
10753
10806
  }
10754
10807
  ),
10755
10808
  displayPageNumberDots && paginationRange.map((pageNumber) => {
10756
10809
  if (pageNumber === DOTS) {
10757
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10810
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10758
10811
  "li",
10759
10812
  {
10760
10813
  className: "pagination-item dots",
@@ -10763,7 +10816,7 @@ var PaginationView = (props) => {
10763
10816
  "pagination" + pageNumber
10764
10817
  );
10765
10818
  }
10766
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10819
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10767
10820
  "li",
10768
10821
  {
10769
10822
  className: `pagination-item ${pageNumber - 1 === currentPage && "selected"}`,
@@ -10773,12 +10826,12 @@ var PaginationView = (props) => {
10773
10826
  "pagination" + pageNumber
10774
10827
  );
10775
10828
  }),
10776
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10829
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10777
10830
  "li",
10778
10831
  {
10779
10832
  className: `pagination-item ${currentPage + 1 === lastPage && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10780
10833
  onClick: onNext,
10781
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "arrow rotate-180", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(IcArrow, {}) })
10834
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "arrow rotate-180", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(IcArrow, {}) })
10782
10835
  }
10783
10836
  )
10784
10837
  ] });
@@ -10788,7 +10841,7 @@ var PaginationView = (props) => {
10788
10841
  var import_react14 = require("react");
10789
10842
 
10790
10843
  // src/widgets/advanced/table/table-group.tsx
10791
- var import_jsx_runtime41 = require("react/jsx-runtime");
10844
+ var import_jsx_runtime42 = require("react/jsx-runtime");
10792
10845
  var TableGroup = (props) => {
10793
10846
  const { t: t3 } = useI18n();
10794
10847
  const {
@@ -10838,28 +10891,28 @@ var TableGroup = (props) => {
10838
10891
  setSelectedRowKeys
10839
10892
  });
10840
10893
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
10841
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
10842
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
10894
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
10895
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
10843
10896
  "tr",
10844
10897
  {
10845
10898
  draggable: true,
10846
10899
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
10847
10900
  onClick: onExpandChildGroup,
10848
10901
  children: [
10849
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10902
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10850
10903
  "td",
10851
10904
  {
10852
10905
  colSpan: colEmptyGroup.fromStart ?? 1,
10853
10906
  style: { display: "table-cell" },
10854
10907
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
10855
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
10908
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
10856
10909
  "div",
10857
10910
  {
10858
10911
  style: { paddingLeft: leftPadding },
10859
10912
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
10860
10913
  children: [
10861
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center gap-2", children: [
10862
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10914
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center gap-2", children: [
10915
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10863
10916
  TriangleIcon,
10864
10917
  {
10865
10918
  style: {
@@ -10868,15 +10921,15 @@ var TableGroup = (props) => {
10868
10921
  className: `w-2 h-2 text-button_primary `
10869
10922
  }
10870
10923
  ),
10871
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10924
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10872
10925
  ] }),
10873
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10926
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10874
10927
  "div",
10875
10928
  {
10876
10929
  onClick: (e3) => {
10877
10930
  e3.stopPropagation();
10878
10931
  },
10879
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10932
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10880
10933
  PaginationView,
10881
10934
  {
10882
10935
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -10897,7 +10950,7 @@ var TableGroup = (props) => {
10897
10950
  columns?.map((col) => {
10898
10951
  if (col?.optional === "hide") return;
10899
10952
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
10900
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10953
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10901
10954
  "td",
10902
10955
  {
10903
10956
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -10915,7 +10968,7 @@ var TableGroup = (props) => {
10915
10968
  ]
10916
10969
  }
10917
10970
  ),
10918
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10971
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10919
10972
  TableBodyRow,
10920
10973
  {
10921
10974
  columns: columnsGroup,
@@ -10945,7 +10998,7 @@ var TableGroup = (props) => {
10945
10998
 
10946
10999
  // src/widgets/advanced/table/table-row.tsx
10947
11000
  var import_react13 = require("react");
10948
- var import_jsx_runtime42 = require("react/jsx-runtime");
11001
+ var import_jsx_runtime43 = require("react/jsx-runtime");
10949
11002
  var Row = (props) => {
10950
11003
  const {
10951
11004
  row,
@@ -11011,17 +11064,17 @@ var Row = (props) => {
11011
11064
  setIsAutoSelect(false);
11012
11065
  }
11013
11066
  }, [checkedAll]);
11014
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11067
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11015
11068
  "tr",
11016
11069
  {
11017
11070
  "data-row-id": row?.id,
11018
11071
  className: `border-b border-[#e8e8e8] cursor-pointer`,
11019
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
11020
- isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11072
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
11073
+ isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11021
11074
  "td",
11022
11075
  {
11023
11076
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
11024
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11077
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11025
11078
  "input",
11026
11079
  {
11027
11080
  type: "checkbox",
@@ -11034,9 +11087,9 @@ var Row = (props) => {
11034
11087
  ),
11035
11088
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
11036
11089
  if (row?.display_type === "line_section" && col.key !== "display_name") {
11037
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("td", {});
11090
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("td", {});
11038
11091
  }
11039
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11092
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11040
11093
  "td",
11041
11094
  {
11042
11095
  colSpan: 1,
@@ -11055,7 +11108,7 @@ var Row = (props) => {
11055
11108
  `${col.name}____${index4}`
11056
11109
  );
11057
11110
  }),
11058
- typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11111
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11059
11112
  "button",
11060
11113
  {
11061
11114
  type: "button",
@@ -11063,7 +11116,7 @@ var Row = (props) => {
11063
11116
  onClick: () => {
11064
11117
  onRemoveRow(indexRow);
11065
11118
  },
11066
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DeleteIcon, {})
11119
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DeleteIcon, {})
11067
11120
  }
11068
11121
  ) }) })
11069
11122
  ] })
@@ -11073,7 +11126,7 @@ var Row = (props) => {
11073
11126
  };
11074
11127
 
11075
11128
  // src/widgets/advanced/table/table-body.tsx
11076
- var import_jsx_runtime43 = require("react/jsx-runtime");
11129
+ var import_jsx_runtime44 = require("react/jsx-runtime");
11077
11130
  var TableBodyRow = (props) => {
11078
11131
  const {
11079
11132
  rows,
@@ -11103,7 +11156,7 @@ var TableBodyRow = (props) => {
11103
11156
  isEditTable
11104
11157
  } = props;
11105
11158
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
11106
- return typeTable === "group" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11159
+ return typeTable === "group" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11107
11160
  TableGroup,
11108
11161
  {
11109
11162
  columns,
@@ -11128,7 +11181,7 @@ var TableBodyRow = (props) => {
11128
11181
  onClickRow
11129
11182
  },
11130
11183
  `record-group-${index4}`
11131
- ) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11184
+ ) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11132
11185
  Row,
11133
11186
  {
11134
11187
  row,
@@ -11156,7 +11209,7 @@ var TableBodyRow = (props) => {
11156
11209
  };
11157
11210
  var TableBody = (props) => {
11158
11211
  const [isAutoSelect, setIsAutoSelect] = (0, import_react14.useState)(false);
11159
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
11212
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11160
11213
  TableBodyRow,
11161
11214
  {
11162
11215
  ...props,
@@ -11169,7 +11222,7 @@ var TableBody = (props) => {
11169
11222
  // src/widgets/advanced/table/table-filter.tsx
11170
11223
  var import_react15 = require("react");
11171
11224
  var import_react_dom = require("react-dom");
11172
- var import_jsx_runtime44 = require("react/jsx-runtime");
11225
+ var import_jsx_runtime45 = require("react/jsx-runtime");
11173
11226
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
11174
11227
  const [openTableFilter, setOpenTableFilter] = (0, import_react15.useState)();
11175
11228
  const [filterPosition, setFilterPosition] = (0, import_react15.useState)(null);
@@ -11201,7 +11254,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11201
11254
  window.removeEventListener("resize", updatePosition);
11202
11255
  };
11203
11256
  }, [filterRef, openTableFilter]);
11204
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
11257
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
11205
11258
  "div",
11206
11259
  {
11207
11260
  ref: filterRef,
@@ -11210,7 +11263,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11210
11263
  },
11211
11264
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
11212
11265
  children: [
11213
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11266
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11214
11267
  "button",
11215
11268
  {
11216
11269
  type: "button",
@@ -11218,7 +11271,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11218
11271
  onClick: () => {
11219
11272
  setOpenTableFilter(!openTableFilter);
11220
11273
  },
11221
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
11274
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
11222
11275
  "svg",
11223
11276
  {
11224
11277
  xmlns: "http://www.w3.org/2000/svg",
@@ -11227,42 +11280,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11227
11280
  viewBox: "0 0 16 16",
11228
11281
  fill: "none",
11229
11282
  children: [
11230
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11283
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11231
11284
  "path",
11232
11285
  {
11233
11286
  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",
11234
11287
  fill: "#1F1F1F"
11235
11288
  }
11236
11289
  ),
11237
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11290
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11238
11291
  "path",
11239
11292
  {
11240
11293
  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",
11241
11294
  fill: "#1F1F1F"
11242
11295
  }
11243
11296
  ),
11244
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11297
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11245
11298
  "path",
11246
11299
  {
11247
11300
  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",
11248
11301
  fill: "#1F1F1F"
11249
11302
  }
11250
11303
  ),
11251
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11304
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11252
11305
  "path",
11253
11306
  {
11254
11307
  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",
11255
11308
  fill: "black"
11256
11309
  }
11257
11310
  ),
11258
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11311
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11259
11312
  "path",
11260
11313
  {
11261
11314
  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",
11262
11315
  fill: "black"
11263
11316
  }
11264
11317
  ),
11265
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11318
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11266
11319
  "path",
11267
11320
  {
11268
11321
  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",
@@ -11275,7 +11328,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11275
11328
  }
11276
11329
  ),
11277
11330
  filterPosition && openTableFilter && (0, import_react_dom.createPortal)(
11278
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11331
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11279
11332
  "div",
11280
11333
  {
11281
11334
  ref: filterPopupRef,
@@ -11286,8 +11339,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11286
11339
  },
11287
11340
  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",
11288
11341
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
11289
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex items-center gap-2", children: [
11290
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11342
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2", children: [
11343
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11291
11344
  "input",
11292
11345
  {
11293
11346
  type: "checkbox",
@@ -11297,7 +11350,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11297
11350
  className: "cursor-pointer"
11298
11351
  }
11299
11352
  ),
11300
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
11353
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11301
11354
  "label",
11302
11355
  {
11303
11356
  htmlFor: `${item.name}`,
@@ -11317,14 +11370,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11317
11370
  };
11318
11371
 
11319
11372
  // src/widgets/advanced/table/table-footer.tsx
11320
- var import_jsx_runtime45 = require("react/jsx-runtime");
11373
+ var import_jsx_runtime46 = require("react/jsx-runtime");
11321
11374
  var TableFooter = ({ onAddRow, rows }) => {
11322
11375
  const emptyData = rows?.length <= 0;
11323
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11376
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11324
11377
  "td",
11325
11378
  {
11326
11379
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
11327
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
11380
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
11328
11381
  "button",
11329
11382
  {
11330
11383
  type: "button",
@@ -11334,7 +11387,7 @@ var TableFooter = ({ onAddRow, rows }) => {
11334
11387
  },
11335
11388
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
11336
11389
  children: [
11337
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
11390
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
11338
11391
  "svg",
11339
11392
  {
11340
11393
  style: {
@@ -11347,14 +11400,14 @@ var TableFooter = ({ onAddRow, rows }) => {
11347
11400
  viewBox: "0 0 20 20",
11348
11401
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
11349
11402
  children: [
11350
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11403
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11351
11404
  "path",
11352
11405
  {
11353
11406
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
11354
11407
  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"
11355
11408
  }
11356
11409
  ),
11357
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
11410
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
11358
11411
  "path",
11359
11412
  {
11360
11413
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -13174,7 +13227,7 @@ var M = import_react16.default.forwardRef(({ id: t3, anchorId: l2, anchorSelect:
13174
13227
  });
13175
13228
 
13176
13229
  // src/widgets/advanced/table/table-head.tsx
13177
- var import_jsx_runtime46 = require("react/jsx-runtime");
13230
+ var import_jsx_runtime47 = require("react/jsx-runtime");
13178
13231
  var TableHead = (props) => {
13179
13232
  const {
13180
13233
  handleCheckBoxAll,
@@ -13184,7 +13237,7 @@ var TableHead = (props) => {
13184
13237
  onRemoveRow,
13185
13238
  onToggleColumnOptional
13186
13239
  } = props;
13187
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("thead", { className: "relative z-10", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
13240
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("thead", { className: "relative z-10", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
13188
13241
  "tr",
13189
13242
  {
13190
13243
  style: {
@@ -13196,11 +13249,11 @@ var TableHead = (props) => {
13196
13249
  },
13197
13250
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
13198
13251
  children: [
13199
- isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13252
+ isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13200
13253
  "th",
13201
13254
  {
13202
13255
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
13203
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13256
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13204
13257
  "input",
13205
13258
  {
13206
13259
  type: "checkbox",
@@ -13212,14 +13265,14 @@ var TableHead = (props) => {
13212
13265
  }
13213
13266
  ),
13214
13267
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
13215
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13268
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13216
13269
  "th",
13217
13270
  {
13218
13271
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
13219
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
13272
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
13220
13273
  col.title,
13221
- col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
13222
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13274
+ col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
13275
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13223
13276
  M,
13224
13277
  {
13225
13278
  style: {
@@ -13237,7 +13290,7 @@ var TableHead = (props) => {
13237
13290
  className: "z-30"
13238
13291
  }
13239
13292
  ),
13240
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13293
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13241
13294
  "span",
13242
13295
  {
13243
13296
  style: {
@@ -13256,8 +13309,8 @@ var TableHead = (props) => {
13256
13309
  "table-head-" + index4
13257
13310
  );
13258
13311
  }),
13259
- typeof onRemoveRow === "function" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("th", { className: "relative p-2 w-[35px]" }),
13260
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13312
+ typeof onRemoveRow === "function" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("th", { className: "relative p-2 w-[35px]" }),
13313
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13261
13314
  "th",
13262
13315
  {
13263
13316
  style: {
@@ -13265,7 +13318,7 @@ var TableHead = (props) => {
13265
13318
  right: 0
13266
13319
  },
13267
13320
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
13268
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
13321
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13269
13322
  TableFilter,
13270
13323
  {
13271
13324
  columns,
@@ -13280,9 +13333,9 @@ var TableHead = (props) => {
13280
13333
  };
13281
13334
 
13282
13335
  // src/icons/empty-table-icon.tsx
13283
- var import_jsx_runtime47 = require("react/jsx-runtime");
13336
+ var import_jsx_runtime48 = require("react/jsx-runtime");
13284
13337
  var IcEmptyTable = () => {
13285
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
13338
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
13286
13339
  "svg",
13287
13340
  {
13288
13341
  xmlns: "http://www.w3.org/2000/svg",
@@ -13291,9 +13344,9 @@ var IcEmptyTable = () => {
13291
13344
  viewBox: "0 0 216 140",
13292
13345
  fill: "none",
13293
13346
  children: [
13294
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("g", { clipPath: "url(#clip0_2454_28950)", children: [
13295
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13296
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13347
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("g", { clipPath: "url(#clip0_2454_28950)", children: [
13348
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13349
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13297
13350
  "path",
13298
13351
  {
13299
13352
  d: "M64.5 0V140",
@@ -13303,7 +13356,7 @@ var IcEmptyTable = () => {
13303
13356
  strokeDasharray: "3 3"
13304
13357
  }
13305
13358
  ),
13306
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13359
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13307
13360
  "path",
13308
13361
  {
13309
13362
  d: "M151.5 0V140",
@@ -13313,7 +13366,7 @@ var IcEmptyTable = () => {
13313
13366
  strokeDasharray: "3 3"
13314
13367
  }
13315
13368
  ),
13316
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13369
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13317
13370
  "path",
13318
13371
  {
13319
13372
  d: "M215.5 24H0.5",
@@ -13323,7 +13376,7 @@ var IcEmptyTable = () => {
13323
13376
  strokeDasharray: "3 3"
13324
13377
  }
13325
13378
  ),
13326
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13379
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13327
13380
  "path",
13328
13381
  {
13329
13382
  d: "M215.5 50H0.5",
@@ -13333,7 +13386,7 @@ var IcEmptyTable = () => {
13333
13386
  strokeDasharray: "3 3"
13334
13387
  }
13335
13388
  ),
13336
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13389
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13337
13390
  "path",
13338
13391
  {
13339
13392
  d: "M215.5 88H0.5",
@@ -13343,7 +13396,7 @@ var IcEmptyTable = () => {
13343
13396
  strokeDasharray: "3 3"
13344
13397
  }
13345
13398
  ),
13346
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13399
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13347
13400
  "path",
13348
13401
  {
13349
13402
  d: "M215.5 114H0.5",
@@ -13353,7 +13406,7 @@ var IcEmptyTable = () => {
13353
13406
  strokeDasharray: "3 3"
13354
13407
  }
13355
13408
  ),
13356
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13409
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13357
13410
  "path",
13358
13411
  {
13359
13412
  d: "M199.5 0V140",
@@ -13362,7 +13415,7 @@ var IcEmptyTable = () => {
13362
13415
  strokeMiterlimit: "10"
13363
13416
  }
13364
13417
  ),
13365
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13418
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13366
13419
  "path",
13367
13420
  {
13368
13421
  d: "M16.5 0V140",
@@ -13371,7 +13424,7 @@ var IcEmptyTable = () => {
13371
13424
  strokeMiterlimit: "10"
13372
13425
  }
13373
13426
  ),
13374
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13427
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13375
13428
  "path",
13376
13429
  {
13377
13430
  d: "M0.5 16H215.5",
@@ -13380,7 +13433,7 @@ var IcEmptyTable = () => {
13380
13433
  strokeMiterlimit: "10"
13381
13434
  }
13382
13435
  ),
13383
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13436
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13384
13437
  "path",
13385
13438
  {
13386
13439
  d: "M0.5 124H215.5",
@@ -13389,7 +13442,7 @@ var IcEmptyTable = () => {
13389
13442
  strokeMiterlimit: "10"
13390
13443
  }
13391
13444
  ),
13392
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13445
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13393
13446
  "path",
13394
13447
  {
13395
13448
  opacity: "0.6",
@@ -13400,7 +13453,7 @@ var IcEmptyTable = () => {
13400
13453
  strokeLinejoin: "round"
13401
13454
  }
13402
13455
  ),
13403
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13456
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13404
13457
  "path",
13405
13458
  {
13406
13459
  opacity: "0.6",
@@ -13411,7 +13464,7 @@ var IcEmptyTable = () => {
13411
13464
  strokeLinejoin: "round"
13412
13465
  }
13413
13466
  ),
13414
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13467
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13415
13468
  "path",
13416
13469
  {
13417
13470
  opacity: "0.6",
@@ -13422,7 +13475,7 @@ var IcEmptyTable = () => {
13422
13475
  strokeLinejoin: "round"
13423
13476
  }
13424
13477
  ),
13425
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13478
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13426
13479
  "path",
13427
13480
  {
13428
13481
  opacity: "0.6",
@@ -13433,7 +13486,7 @@ var IcEmptyTable = () => {
13433
13486
  strokeLinejoin: "round"
13434
13487
  }
13435
13488
  ),
13436
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13489
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13437
13490
  "path",
13438
13491
  {
13439
13492
  opacity: "0.6",
@@ -13444,14 +13497,14 @@ var IcEmptyTable = () => {
13444
13497
  strokeLinejoin: "round"
13445
13498
  }
13446
13499
  ),
13447
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13500
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13448
13501
  "path",
13449
13502
  {
13450
13503
  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",
13451
13504
  fill: "white"
13452
13505
  }
13453
13506
  ),
13454
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13507
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13455
13508
  "path",
13456
13509
  {
13457
13510
  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",
@@ -13461,7 +13514,7 @@ var IcEmptyTable = () => {
13461
13514
  strokeLinejoin: "round"
13462
13515
  }
13463
13516
  ),
13464
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13517
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13465
13518
  "path",
13466
13519
  {
13467
13520
  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",
@@ -13470,7 +13523,7 @@ var IcEmptyTable = () => {
13470
13523
  strokeLinejoin: "round"
13471
13524
  }
13472
13525
  ),
13473
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13526
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13474
13527
  "path",
13475
13528
  {
13476
13529
  opacity: "0.6",
@@ -13481,7 +13534,7 @@ var IcEmptyTable = () => {
13481
13534
  strokeLinejoin: "round"
13482
13535
  }
13483
13536
  ),
13484
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13537
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13485
13538
  "path",
13486
13539
  {
13487
13540
  opacity: "0.6",
@@ -13492,7 +13545,7 @@ var IcEmptyTable = () => {
13492
13545
  strokeLinejoin: "round"
13493
13546
  }
13494
13547
  ),
13495
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13548
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13496
13549
  "path",
13497
13550
  {
13498
13551
  opacity: "0.6",
@@ -13503,7 +13556,7 @@ var IcEmptyTable = () => {
13503
13556
  strokeLinejoin: "round"
13504
13557
  }
13505
13558
  ),
13506
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13559
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13507
13560
  "path",
13508
13561
  {
13509
13562
  opacity: "0.6",
@@ -13514,7 +13567,7 @@ var IcEmptyTable = () => {
13514
13567
  strokeLinejoin: "round"
13515
13568
  }
13516
13569
  ),
13517
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13570
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13518
13571
  "path",
13519
13572
  {
13520
13573
  opacity: "0.6",
@@ -13525,7 +13578,7 @@ var IcEmptyTable = () => {
13525
13578
  strokeLinejoin: "round"
13526
13579
  }
13527
13580
  ),
13528
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13581
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13529
13582
  "path",
13530
13583
  {
13531
13584
  opacity: "0.6",
@@ -13536,7 +13589,7 @@ var IcEmptyTable = () => {
13536
13589
  strokeLinejoin: "round"
13537
13590
  }
13538
13591
  ),
13539
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13592
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13540
13593
  "path",
13541
13594
  {
13542
13595
  opacity: "0.6",
@@ -13547,7 +13600,7 @@ var IcEmptyTable = () => {
13547
13600
  strokeLinejoin: "round"
13548
13601
  }
13549
13602
  ),
13550
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13603
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13551
13604
  "path",
13552
13605
  {
13553
13606
  opacity: "0.6",
@@ -13558,7 +13611,7 @@ var IcEmptyTable = () => {
13558
13611
  strokeLinejoin: "round"
13559
13612
  }
13560
13613
  ),
13561
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13614
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13562
13615
  "path",
13563
13616
  {
13564
13617
  opacity: "0.6",
@@ -13569,14 +13622,14 @@ var IcEmptyTable = () => {
13569
13622
  strokeLinejoin: "round"
13570
13623
  }
13571
13624
  ),
13572
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13625
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13573
13626
  "path",
13574
13627
  {
13575
13628
  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",
13576
13629
  fill: "white"
13577
13630
  }
13578
13631
  ),
13579
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13632
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13580
13633
  "path",
13581
13634
  {
13582
13635
  "fill-rule": "evenodd",
@@ -13585,7 +13638,7 @@ var IcEmptyTable = () => {
13585
13638
  fill: "white"
13586
13639
  }
13587
13640
  ),
13588
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13641
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13589
13642
  "path",
13590
13643
  {
13591
13644
  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",
@@ -13596,7 +13649,7 @@ var IcEmptyTable = () => {
13596
13649
  }
13597
13650
  )
13598
13651
  ] }),
13599
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13652
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13600
13653
  "rect",
13601
13654
  {
13602
13655
  width: "215",
@@ -13611,14 +13664,14 @@ var IcEmptyTable = () => {
13611
13664
  };
13612
13665
 
13613
13666
  // src/widgets/advanced/table/empty-table.tsx
13614
- var import_jsx_runtime48 = require("react/jsx-runtime");
13667
+ var import_jsx_runtime49 = require("react/jsx-runtime");
13615
13668
  var EmptyTable = () => {
13616
13669
  const { t: t3 } = useI18n();
13617
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13618
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(IcEmptyTable, {}),
13619
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { children: [
13620
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", {}),
13621
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13670
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13671
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(IcEmptyTable, {}),
13672
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { children: [
13673
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", {}),
13674
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13622
13675
  ] })
13623
13676
  ] });
13624
13677
  };
@@ -15437,10 +15490,10 @@ function s3(o3, s4, t3) {
15437
15490
 
15438
15491
  // src/widgets/advanced/login/shared/button.tsx
15439
15492
  var React2 = __toESM(require("react"));
15440
- var import_jsx_runtime49 = require("react/jsx-runtime");
15493
+ var import_jsx_runtime50 = require("react/jsx-runtime");
15441
15494
  var Button = React2.forwardRef(
15442
15495
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
15443
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
15496
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
15444
15497
  "button",
15445
15498
  {
15446
15499
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -15450,7 +15503,7 @@ var Button = React2.forwardRef(
15450
15503
  ref,
15451
15504
  type,
15452
15505
  ...props,
15453
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(LoadingIcon, { width: 20, height: 20 }) : children
15506
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(LoadingIcon, { width: 20, height: 20 }) : children
15454
15507
  }
15455
15508
  );
15456
15509
  }
@@ -15459,7 +15512,7 @@ Button.displayName = "Button";
15459
15512
 
15460
15513
  // src/widgets/advanced/login/shared/text-input.tsx
15461
15514
  var import_react18 = require("react");
15462
- var import_jsx_runtime50 = require("react/jsx-runtime");
15515
+ var import_jsx_runtime51 = require("react/jsx-runtime");
15463
15516
  function TextInput(props) {
15464
15517
  const {
15465
15518
  className,
@@ -15473,17 +15526,17 @@ function TextInput(props) {
15473
15526
  required
15474
15527
  } = props;
15475
15528
  const [showPassword, setShowPassword] = (0, import_react18.useState)(false);
15476
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15477
- label && /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15529
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15530
+ label && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15478
15531
  label,
15479
- required ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15532
+ required ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15480
15533
  ] }),
15481
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
15534
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
15482
15535
  "div",
15483
15536
  {
15484
15537
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
15485
15538
  children: [
15486
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
15539
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
15487
15540
  "input",
15488
15541
  {
15489
15542
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -15492,18 +15545,18 @@ function TextInput(props) {
15492
15545
  ...register(name2)
15493
15546
  }
15494
15547
  ),
15495
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
15548
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
15496
15549
  "span",
15497
15550
  {
15498
15551
  onClick: () => setShowPassword(!showPassword),
15499
15552
  className: "focus:outline-none",
15500
- children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(EyeClosedIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(EyeIcon, {})
15553
+ children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EyeClosedIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EyeIcon, {})
15501
15554
  }
15502
15555
  )
15503
15556
  ]
15504
15557
  }
15505
15558
  ),
15506
- errors?.[name2]?.message && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
15559
+ errors?.[name2]?.message && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
15507
15560
  "p",
15508
15561
  {
15509
15562
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -15515,7 +15568,7 @@ function TextInput(props) {
15515
15568
 
15516
15569
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
15517
15570
  var import_react19 = require("react");
15518
- var import_jsx_runtime51 = require("react/jsx-runtime");
15571
+ var import_jsx_runtime52 = require("react/jsx-runtime");
15519
15572
  var STAY_LOGIN_IN = "stayLoginIn";
15520
15573
  function FormOptions({
15521
15574
  forgotPasswordUrl,
@@ -15541,9 +15594,9 @@ function FormOptions({
15541
15594
  (0, import_react19.useEffect)(() => {
15542
15595
  localStorage.setItem(STAY_LOGIN_IN, "false");
15543
15596
  }, []);
15544
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15545
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("label", { className: "flex gap-3", children: [
15546
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
15597
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15598
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("label", { className: "flex gap-3", children: [
15599
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
15547
15600
  "input",
15548
15601
  {
15549
15602
  checked: stayLoginIn,
@@ -15552,14 +15605,14 @@ function FormOptions({
15552
15605
  onChange: handleCheckboxChange
15553
15606
  }
15554
15607
  ),
15555
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15608
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15556
15609
  ] }),
15557
- !hideForgotPassword && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15610
+ !hideForgotPassword && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15558
15611
  ] });
15559
15612
  }
15560
15613
 
15561
15614
  // src/widgets/advanced/login/provider/credential/index.tsx
15562
- var import_jsx_runtime52 = require("react/jsx-runtime");
15615
+ var import_jsx_runtime53 = require("react/jsx-runtime");
15563
15616
  var CredentialLogin = (props) => {
15564
15617
  const {
15565
15618
  shouldRenderDivider,
@@ -15579,16 +15632,16 @@ var CredentialLogin = (props) => {
15579
15632
  mode: "onChange",
15580
15633
  resolver: s3(loginSchema)
15581
15634
  });
15582
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
15583
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
15635
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
15636
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
15584
15637
  "form",
15585
15638
  {
15586
15639
  onSubmit: handleSubmit(onSubmit ?? (() => {
15587
15640
  })),
15588
15641
  className: `flex w-full h-fit flex-col gap-10`,
15589
15642
  children: [
15590
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col gap-6", children: [
15591
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
15643
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-6", children: [
15644
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
15592
15645
  TextInput,
15593
15646
  {
15594
15647
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15601,7 +15654,7 @@ var CredentialLogin = (props) => {
15601
15654
  errors
15602
15655
  }
15603
15656
  ),
15604
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
15657
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
15605
15658
  TextInput,
15606
15659
  {
15607
15660
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15614,7 +15667,7 @@ var CredentialLogin = (props) => {
15614
15667
  errors
15615
15668
  }
15616
15669
  ),
15617
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
15670
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
15618
15671
  FormOptions,
15619
15672
  {
15620
15673
  forgotPasswordUrl,
@@ -15624,7 +15677,7 @@ var CredentialLogin = (props) => {
15624
15677
  }
15625
15678
  )
15626
15679
  ] }),
15627
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
15680
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
15628
15681
  Button,
15629
15682
  {
15630
15683
  type: "submit",
@@ -15636,56 +15689,56 @@ var CredentialLogin = (props) => {
15636
15689
  ]
15637
15690
  }
15638
15691
  ),
15639
- shouldRenderDivider && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex justify-center relative", children: [
15640
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15641
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15692
+ shouldRenderDivider && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex justify-center relative", children: [
15693
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15694
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15642
15695
  ] })
15643
15696
  ] });
15644
15697
  };
15645
15698
 
15646
15699
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15647
- var import_jsx_runtime53 = require("react/jsx-runtime");
15700
+ var import_jsx_runtime54 = require("react/jsx-runtime");
15648
15701
  function GoogleButton(props) {
15649
15702
  const { onLoginGoogle, db } = props;
15650
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
15703
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
15651
15704
  "button",
15652
15705
  {
15653
15706
  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",
15654
15707
  onClick: () => onLoginGoogle?.(db),
15655
15708
  children: [
15656
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(GoogleIcon, { className: "google-icon" }),
15657
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15709
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(GoogleIcon, { className: "google-icon" }),
15710
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15658
15711
  ]
15659
15712
  }
15660
15713
  );
15661
15714
  }
15662
15715
 
15663
15716
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15664
- var import_jsx_runtime54 = require("react/jsx-runtime");
15717
+ var import_jsx_runtime55 = require("react/jsx-runtime");
15665
15718
  function SocialRedirect(props) {
15666
15719
  const { db, onLoginSocial } = props;
15667
15720
  onLoginSocial && onLoginSocial(String(db));
15668
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, {});
15721
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, {});
15669
15722
  }
15670
15723
 
15671
15724
  // src/widgets/advanced/login/provider/google/index.tsx
15672
- var import_jsx_runtime55 = require("react/jsx-runtime");
15725
+ var import_jsx_runtime56 = require("react/jsx-runtime");
15673
15726
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15674
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
15675
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(GoogleButton, { db, onLoginGoogle }),
15676
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SocialRedirect, { db, onLoginSocial })
15727
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
15728
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(GoogleButton, { db, onLoginGoogle }),
15729
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SocialRedirect, { db, onLoginSocial })
15677
15730
  ] });
15678
15731
  };
15679
15732
 
15680
15733
  // src/widgets/advanced/login/index.tsx
15681
- var import_jsx_runtime56 = require("react/jsx-runtime");
15734
+ var import_jsx_runtime57 = require("react/jsx-runtime");
15682
15735
  var LoginProviderMapping = {
15683
15736
  google: GoogleLogin
15684
15737
  };
15685
15738
  var Login = (props) => {
15686
15739
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15687
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "w-full space-y-8", children: [
15688
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15740
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "w-full space-y-8", children: [
15741
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15689
15742
  CredentialLogin,
15690
15743
  {
15691
15744
  ...props,
@@ -15695,7 +15748,7 @@ var Login = (props) => {
15695
15748
  ),
15696
15749
  providers.map((provider, index4) => {
15697
15750
  const ProviderComp = LoginProviderMapping[provider];
15698
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15751
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15699
15752
  ProviderComp,
15700
15753
  {
15701
15754
  db,
@@ -15709,7 +15762,7 @@ var Login = (props) => {
15709
15762
  };
15710
15763
 
15711
15764
  // src/widgets/advanced/search/popup-filter/index.tsx
15712
- var import_jsx_runtime57 = require("react/jsx-runtime");
15765
+ var import_jsx_runtime58 = require("react/jsx-runtime");
15713
15766
  var PopupFilter = ({
15714
15767
  handleAddTagSearch,
15715
15768
  removeSearchItems,
@@ -15720,7 +15773,7 @@ var PopupFilter = ({
15720
15773
  fields
15721
15774
  }) => {
15722
15775
  const { t: t3 } = useI18n();
15723
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15776
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15724
15777
  "div",
15725
15778
  {
15726
15779
  style: {
@@ -15730,25 +15783,25 @@ var PopupFilter = ({
15730
15783
  zIndex: 33
15731
15784
  },
15732
15785
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15733
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15786
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15734
15787
  "div",
15735
15788
  {
15736
15789
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15737
15790
  children: [
15738
- filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "filter-by w-full px-3", children: [
15739
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15740
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
15741
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15791
+ filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "filter-by w-full px-3", children: [
15792
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15793
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
15794
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15742
15795
  ] }),
15743
15796
  filterBy?.reduce((acc, item, index4, array) => {
15744
15797
  const prevItem = array[index4 - 1];
15745
15798
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15746
15799
  const isExist = item?.active;
15747
15800
  if (isDifferentGroup) {
15748
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("hr", { className: "my-2" }, "separator-" + index4));
15801
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("hr", { className: "my-2" }, "separator-" + index4));
15749
15802
  }
15750
15803
  acc.push(
15751
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15804
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15752
15805
  "button",
15753
15806
  {
15754
15807
  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)]"}`,
@@ -15773,8 +15826,8 @@ var PopupFilter = ({
15773
15826
  });
15774
15827
  },
15775
15828
  children: [
15776
- isExist && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CheckIcon, {}),
15777
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
15829
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CheckIcon, {}),
15830
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
15778
15831
  ]
15779
15832
  },
15780
15833
  "filter-" + index4
@@ -15783,16 +15836,16 @@ var PopupFilter = ({
15783
15836
  return acc;
15784
15837
  }, [])
15785
15838
  ] }),
15786
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15787
- groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "group-by w-full px-3", children: [
15788
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15789
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
15790
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15839
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15840
+ groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "group-by w-full px-3", children: [
15841
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15842
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
15843
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15791
15844
  ] }),
15792
15845
  groupBy?.map((item, index4) => {
15793
15846
  const isExist = item?.active;
15794
15847
  if (!item.string) return;
15795
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15848
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15796
15849
  "button",
15797
15850
  {
15798
15851
  onClick: () => {
@@ -15816,8 +15869,8 @@ var PopupFilter = ({
15816
15869
  },
15817
15870
  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)]"}`,
15818
15871
  children: [
15819
- isExist && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CheckIcon, {}),
15820
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm", children: item?.string })
15872
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CheckIcon, {}),
15873
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm", children: item?.string })
15821
15874
  ]
15822
15875
  },
15823
15876
  "groupby-" + index4 + 1
@@ -15836,7 +15889,7 @@ var import_react21 = require("react");
15836
15889
 
15837
15890
  // src/widgets/advanced/search/tag-search/index.tsx
15838
15891
  var import_react20 = require("react");
15839
- var import_jsx_runtime58 = require("react/jsx-runtime");
15892
+ var import_jsx_runtime59 = require("react/jsx-runtime");
15840
15893
  var TagSearch = ({
15841
15894
  removeSearchItems,
15842
15895
  selectedTags,
@@ -15847,23 +15900,23 @@ var TagSearch = ({
15847
15900
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15848
15901
  if (tag?.values?.length > 0) {
15849
15902
  if (tag?.type !== "group_by") {
15850
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15903
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
15851
15904
  "div",
15852
15905
  {
15853
15906
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15854
15907
  children: [
15855
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FilterIcon, {}) }),
15856
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15857
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react20.Fragment, { children: [
15858
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: value }),
15859
- idx < tag.values.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15908
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(FilterIcon, {}) }),
15909
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15910
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react20.Fragment, { children: [
15911
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: value }),
15912
+ idx < tag.values.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15860
15913
  " ",
15861
15914
  instance.t("or"),
15862
15915
  " "
15863
15916
  ] })
15864
15917
  ] }, idx);
15865
15918
  }) }),
15866
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15919
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15867
15920
  "button",
15868
15921
  {
15869
15922
  className: "px-2 text-sm font-bold",
@@ -15880,7 +15933,7 @@ var TagSearch = ({
15880
15933
  );
15881
15934
  }
15882
15935
  },
15883
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15936
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15884
15937
  }
15885
15938
  )
15886
15939
  ]
@@ -15888,26 +15941,26 @@ var TagSearch = ({
15888
15941
  "selected-tag-" + index4
15889
15942
  );
15890
15943
  } else if (tag?.type === "group_by") {
15891
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15944
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15892
15945
  "div",
15893
15946
  {
15894
15947
  className: "flex min-h-full overflow-hidden",
15895
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15896
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15948
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15949
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
15897
15950
  "div",
15898
15951
  {
15899
15952
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15900
15953
  children: [
15901
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(GroupByIcon, {}) }),
15902
- value?.strings?.map((string, idx) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
15903
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: string }),
15904
- idx < value?.strings.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15954
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(GroupByIcon, {}) }),
15955
+ value?.strings?.map((string, idx) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
15956
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: string }),
15957
+ idx < value?.strings.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15905
15958
  " ",
15906
15959
  "> ",
15907
15960
  " "
15908
15961
  ] })
15909
15962
  ] })),
15910
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15963
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15911
15964
  "button",
15912
15965
  {
15913
15966
  className: "pr-2 text-sm font-bold",
@@ -15922,7 +15975,7 @@ var TagSearch = ({
15922
15975
  );
15923
15976
  }
15924
15977
  },
15925
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15978
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15926
15979
  }
15927
15980
  )
15928
15981
  ]
@@ -15939,7 +15992,7 @@ var TagSearch = ({
15939
15992
  };
15940
15993
 
15941
15994
  // src/widgets/advanced/search/search-list/index.tsx
15942
- var import_jsx_runtime59 = require("react/jsx-runtime");
15995
+ var import_jsx_runtime60 = require("react/jsx-runtime");
15943
15996
  var SearchList = ({
15944
15997
  handleAddTagSearch,
15945
15998
  handleMouseEnter,
@@ -15949,7 +16002,7 @@ var SearchList = ({
15949
16002
  hoveredIndexSearchList
15950
16003
  }) => {
15951
16004
  const { t: t3 } = useI18n();
15952
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
16005
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15953
16006
  "div",
15954
16007
  {
15955
16008
  style: {
@@ -15961,7 +16014,7 @@ var SearchList = ({
15961
16014
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15962
16015
  return;
15963
16016
  }
15964
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
16017
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
15965
16018
  "button",
15966
16019
  {
15967
16020
  onClick: () => {
@@ -15983,12 +16036,12 @@ var SearchList = ({
15983
16036
  children: [
15984
16037
  t3("search"),
15985
16038
  " ",
15986
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "font-bold", children: searchItem?.title }),
16039
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "font-bold", children: searchItem?.title }),
15987
16040
  " ",
15988
16041
  t3("for"),
15989
16042
  ":",
15990
16043
  " ",
15991
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
16044
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15992
16045
  "span",
15993
16046
  {
15994
16047
  style: {
@@ -16008,7 +16061,7 @@ var SearchList = ({
16008
16061
  };
16009
16062
 
16010
16063
  // src/widgets/advanced/search/search-item/index.tsx
16011
- var import_jsx_runtime60 = require("react/jsx-runtime");
16064
+ var import_jsx_runtime61 = require("react/jsx-runtime");
16012
16065
  var Search = ({
16013
16066
  removeSearchItems,
16014
16067
  selectedTags,
@@ -16125,15 +16178,15 @@ var Search = ({
16125
16178
  setDidInit(true);
16126
16179
  setIsReadyFormatDomain(true);
16127
16180
  }, [aid, filterBy, fieldsList]);
16128
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
16181
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
16129
16182
  "div",
16130
16183
  {
16131
16184
  ref: popupFilterRef,
16132
16185
  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)]`,
16133
16186
  children: [
16134
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "size-5", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SearchIcon, {}) }),
16135
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
16136
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
16187
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "size-5", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SearchIcon, {}) }),
16188
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
16189
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
16137
16190
  TagSearch,
16138
16191
  {
16139
16192
  removeSearchItems,
@@ -16143,7 +16196,7 @@ var Search = ({
16143
16196
  setGroupBy
16144
16197
  }
16145
16198
  ),
16146
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
16199
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
16147
16200
  "input",
16148
16201
  {
16149
16202
  value: searchString,
@@ -16156,7 +16209,7 @@ var Search = ({
16156
16209
  onKeyUp: (e3) => e3.preventDefault()
16157
16210
  }
16158
16211
  ),
16159
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
16212
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
16160
16213
  SearchList,
16161
16214
  {
16162
16215
  handleAddTagSearch,
@@ -16165,8 +16218,8 @@ var Search = ({
16165
16218
  }
16166
16219
  )
16167
16220
  ] }),
16168
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
16169
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
16221
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
16222
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
16170
16223
  "div",
16171
16224
  {
16172
16225
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -16175,8 +16228,8 @@ var Search = ({
16175
16228
  setShowPopupFilter((prev2) => !prev2);
16176
16229
  },
16177
16230
  children: [
16178
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16179
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
16231
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16232
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
16180
16233
  ChevronBottomIcon,
16181
16234
  {
16182
16235
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -16185,7 +16238,7 @@ var Search = ({
16185
16238
  ]
16186
16239
  }
16187
16240
  ),
16188
- showPopupFilter && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
16241
+ showPopupFilter && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
16189
16242
  PopupFilter,
16190
16243
  {
16191
16244
  handleAddTagSearch,
@@ -16204,30 +16257,30 @@ var Search = ({
16204
16257
  };
16205
16258
 
16206
16259
  // src/widgets/basic/active-badge-field/active-badge.tsx
16207
- var import_jsx_runtime61 = require("react/jsx-runtime");
16260
+ var import_jsx_runtime62 = require("react/jsx-runtime");
16208
16261
  var ActiveBadgeField = (props) => {
16209
16262
  const { t: t3 } = useI18n();
16210
16263
  const {
16211
16264
  type,
16212
16265
  className
16213
16266
  } = props;
16214
- if (type === void 0) return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_jsx_runtime61.Fragment, {});
16267
+ if (type === void 0) return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_jsx_runtime62.Fragment, {});
16215
16268
  const typeStyle = type ? "text-green-500" : "text-red-500";
16216
16269
  const text = type ? t3("active") : t3("in_active");
16217
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `${typeStyle} ${className}`, children: text });
16270
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: `${typeStyle} ${className}`, children: text });
16218
16271
  };
16219
16272
 
16220
16273
  // src/widgets/common/modal-layer.tsx
16221
16274
  var import_react22 = require("react");
16222
16275
  var import_react23 = require("@headlessui/react");
16223
- var import_jsx_runtime62 = require("react/jsx-runtime");
16276
+ var import_jsx_runtime63 = require("react/jsx-runtime");
16224
16277
  var ModalLayer = ({
16225
16278
  isOpen,
16226
16279
  onClose,
16227
16280
  title,
16228
16281
  children
16229
16282
  }) => {
16230
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
16283
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
16231
16284
  import_react23.Transition,
16232
16285
  {
16233
16286
  show: isOpen,
@@ -16238,22 +16291,22 @@ var ModalLayer = ({
16238
16291
  leaveFrom: "transform scale-100 opacity-100",
16239
16292
  leaveTo: "transform scale-95 opacity-0",
16240
16293
  as: import_react22.Fragment,
16241
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react23.Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react23.DialogPanel, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16242
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16243
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
16244
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
16294
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react23.Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react23.DialogPanel, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16295
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16296
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
16297
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
16245
16298
  "div",
16246
16299
  {
16247
16300
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
16248
16301
  children: [
16249
- title && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16250
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
16302
+ title && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16303
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
16251
16304
  "button",
16252
16305
  {
16253
16306
  onClick: onClose,
16254
16307
  "aria-label": "Close",
16255
16308
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
16256
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CloseIcon, {})
16309
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CloseIcon, {})
16257
16310
  }
16258
16311
  )
16259
16312
  ]
@@ -16267,7 +16320,7 @@ var ModalLayer = ({
16267
16320
  };
16268
16321
 
16269
16322
  // src/widgets/common/modal-confirm.tsx
16270
- var import_jsx_runtime63 = require("react/jsx-runtime");
16323
+ var import_jsx_runtime64 = require("react/jsx-runtime");
16271
16324
  var ModalConfirm = ({
16272
16325
  name: name2,
16273
16326
  isShowModal,
@@ -16281,7 +16334,7 @@ var ModalConfirm = ({
16281
16334
  const renderButtonAction = (name3) => {
16282
16335
  switch (name3) {
16283
16336
  case "duplicate":
16284
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
16337
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16285
16338
  "button",
16286
16339
  {
16287
16340
  type: "button",
@@ -16289,13 +16342,13 @@ var ModalConfirm = ({
16289
16342
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16290
16343
  disabled: isLoading,
16291
16344
  children: [
16292
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LoadingIcon, {}),
16293
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16345
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoadingIcon, {}),
16346
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16294
16347
  ]
16295
16348
  }
16296
16349
  );
16297
16350
  case "archive":
16298
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
16351
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16299
16352
  "button",
16300
16353
  {
16301
16354
  type: "button",
@@ -16303,13 +16356,13 @@ var ModalConfirm = ({
16303
16356
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16304
16357
  disabled: isLoading,
16305
16358
  children: [
16306
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LoadingIcon, {}),
16307
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16359
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoadingIcon, {}),
16360
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16308
16361
  ]
16309
16362
  }
16310
16363
  );
16311
16364
  case "unarchive":
16312
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
16365
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16313
16366
  "button",
16314
16367
  {
16315
16368
  type: "button",
@@ -16317,13 +16370,13 @@ var ModalConfirm = ({
16317
16370
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16318
16371
  disabled: isLoading,
16319
16372
  children: [
16320
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LoadingIcon, {}),
16321
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16373
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoadingIcon, {}),
16374
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16322
16375
  ]
16323
16376
  }
16324
16377
  );
16325
16378
  case "delete":
16326
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
16379
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16327
16380
  "button",
16328
16381
  {
16329
16382
  type: "button",
@@ -16331,8 +16384,8 @@ var ModalConfirm = ({
16331
16384
  className: "button-primary flex-1 flex items-center justify-center gap-2",
16332
16385
  disabled: isLoading,
16333
16386
  children: [
16334
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LoadingIcon, {}),
16335
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16387
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoadingIcon, {}),
16388
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16336
16389
  ]
16337
16390
  }
16338
16391
  );
@@ -16340,13 +16393,13 @@ var ModalConfirm = ({
16340
16393
  break;
16341
16394
  }
16342
16395
  };
16343
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16344
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-col gap-[4px] items-center", children: [
16345
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "text-[18px] font-bold", children: title }),
16346
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-[16px]", children: content })
16396
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16397
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-[4px] items-center", children: [
16398
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "text-[18px] font-bold", children: title }),
16399
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-[16px]", children: content })
16347
16400
  ] }),
16348
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16349
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
16401
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16402
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16350
16403
  "button",
16351
16404
  {
16352
16405
  type: "button",
@@ -16363,7 +16416,7 @@ var ModalConfirm = ({
16363
16416
  // src/widgets/common/modal-detail.tsx
16364
16417
  var import_react24 = require("react");
16365
16418
  var import_react_dom2 = require("react-dom");
16366
- var import_jsx_runtime64 = require("react/jsx-runtime");
16419
+ var import_jsx_runtime65 = require("react/jsx-runtime");
16367
16420
  var ModalDetail = ({
16368
16421
  idToolTip,
16369
16422
  title,
@@ -16386,18 +16439,18 @@ var ModalDetail = ({
16386
16439
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
16387
16440
  };
16388
16441
  return (0, import_react_dom2.createPortal)(
16389
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: showModalDetail && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16390
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16391
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
16392
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16393
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
16442
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: showModalDetail && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16443
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16444
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
16445
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16446
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
16394
16447
  "div",
16395
16448
  {
16396
16449
  id: "modal-detail",
16397
16450
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
16398
16451
  children: [
16399
16452
  t3("detail_button"),
16400
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
16453
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16401
16454
  "button",
16402
16455
  {
16403
16456
  onClick: handleNavigateDetail,
@@ -16408,9 +16461,9 @@ var ModalDetail = ({
16408
16461
  ]
16409
16462
  }
16410
16463
  ),
16411
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(CloseIcon, { className: "h-5 w-5" }) })
16464
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(CloseIcon, { className: "h-5 w-5" }) })
16412
16465
  ] }),
16413
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16466
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16414
16467
  id: idForm,
16415
16468
  aid,
16416
16469
  model,
@@ -16425,7 +16478,7 @@ var ModalDetail = ({
16425
16478
 
16426
16479
  // src/widgets/common/loading-normal.tsx
16427
16480
  var import_react25 = require("react");
16428
- var import_jsx_runtime65 = require("react/jsx-runtime");
16481
+ var import_jsx_runtime66 = require("react/jsx-runtime");
16429
16482
  var LayerLoading = () => {
16430
16483
  const { t: t3 } = useI18n();
16431
16484
  const [activeIndex, setActiveIndex] = (0, import_react25.useState)(0);
@@ -16435,21 +16488,21 @@ var LayerLoading = () => {
16435
16488
  }, 200);
16436
16489
  return () => clearInterval(interval);
16437
16490
  }, []);
16438
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16439
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16491
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16492
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
16440
16493
  "div",
16441
16494
  {
16442
16495
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
16443
16496
  },
16444
16497
  index4
16445
16498
  )) }),
16446
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16499
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16447
16500
  ] }) }) });
16448
16501
  };
16449
16502
 
16450
16503
  // src/widgets/common/loading-small.tsx
16451
16504
  var import_react26 = require("react");
16452
- var import_jsx_runtime66 = require("react/jsx-runtime");
16505
+ var import_jsx_runtime67 = require("react/jsx-runtime");
16453
16506
  var LoadingSmall = () => {
16454
16507
  const [activeIndex, setActiveIndex] = (0, import_react26.useState)(0);
16455
16508
  (0, import_react26.useEffect)(() => {
@@ -16458,7 +16511,7 @@ var LoadingSmall = () => {
16458
16511
  }, 200);
16459
16512
  return () => clearInterval(interval);
16460
16513
  }, []);
16461
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
16514
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
16462
16515
  "div",
16463
16516
  {
16464
16517
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -16469,7 +16522,7 @@ var LoadingSmall = () => {
16469
16522
 
16470
16523
  // src/widgets/common/video-player.tsx
16471
16524
  var import_react27 = require("react");
16472
- var import_jsx_runtime67 = require("react/jsx-runtime");
16525
+ var import_jsx_runtime68 = require("react/jsx-runtime");
16473
16526
  var VideoPlayer = ({ src }) => {
16474
16527
  const [isPlaying, setIsPlaying] = (0, import_react27.useState)(false);
16475
16528
  const videoRef = (0, import_react27.useRef)(null);
@@ -16496,8 +16549,8 @@ var VideoPlayer = ({ src }) => {
16496
16549
  }
16497
16550
  }
16498
16551
  };
16499
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
16500
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
16552
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
16553
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16501
16554
  "video",
16502
16555
  {
16503
16556
  ref: videoRef,
@@ -16509,25 +16562,56 @@ var VideoPlayer = ({ src }) => {
16509
16562
  children: "Your browser does not support the video tag."
16510
16563
  }
16511
16564
  ),
16512
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16513
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(PlayIcon, {}) }) })
16565
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16566
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PlayIcon, {}) }) })
16514
16567
  ] });
16515
16568
  };
16516
16569
 
16517
16570
  // src/widgets/common/render-files.tsx
16518
- var import_jsx_runtime68 = require("react/jsx-runtime");
16519
- var ImageItem = ({ filename, checksum, index: index4, src = null, useGetImage }) => {
16571
+ var import_jsx_runtime69 = require("react/jsx-runtime");
16572
+ var ImageItem = ({
16573
+ filename,
16574
+ checksum,
16575
+ index: index4,
16576
+ src = null,
16577
+ useGetImage,
16578
+ size: size4,
16579
+ id,
16580
+ envFile,
16581
+ accessToken
16582
+ }) => {
16520
16583
  const { data: image } = useGetImage({
16521
16584
  data: { filename, checksum },
16522
16585
  queryKey: [`get-image-${""}`],
16523
16586
  src
16524
16587
  });
16525
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "relative group group/file", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16588
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16526
16589
  "img",
16527
16590
  {
16528
16591
  src: image || src,
16529
16592
  alt: filename,
16530
- className: "w-32 h-32 object-cover rounded-md"
16593
+ className: "w-32 h-32 object-cover rounded-md cursor-pointer"
16594
+ }
16595
+ ) : /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16596
+ "div",
16597
+ {
16598
+ onClick: (e3) => {
16599
+ e3?.stopPropagation();
16600
+ downloadFile(
16601
+ `${envFile}api/v2/web/content/${id}?download=true`,
16602
+ filename,
16603
+ accessToken
16604
+ );
16605
+ },
16606
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16607
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16608
+ children: [
16609
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ImageIcon, {}),
16610
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { children: [
16611
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16612
+ size4 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-[12px]", children: formatFileSize(size4) })
16613
+ ] })
16614
+ ]
16531
16615
  }
16532
16616
  ) }, index4);
16533
16617
  };
@@ -16540,50 +16624,83 @@ var FileItem = (props) => {
16540
16624
  src,
16541
16625
  mimetype,
16542
16626
  size: size4,
16543
- useGetImage
16627
+ useGetImage,
16628
+ id,
16629
+ envFile,
16630
+ accessToken
16544
16631
  } = props;
16545
16632
  const fileTypeIcon = {
16546
- "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PdfIcon, {}),
16547
- "application/zip": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ZipIcon, {}),
16548
- "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ZipIcon, {}),
16549
- "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ExcelIcon, {}),
16550
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ExcelIcon, {})
16633
+ "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(PdfIcon, {}),
16634
+ "application/zip": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ZipIcon, {}),
16635
+ "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ZipIcon, {}),
16636
+ "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ExcelIcon, {}),
16637
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ExcelIcon, {})
16551
16638
  };
16552
16639
  const renderFile = () => {
16553
16640
  if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
16554
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ImageItem, { ...props });
16641
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ImageItem, { ...props, useGetImage });
16555
16642
  } else if (mimetype?.includes("video")) {
16556
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(VideoPlayer, { ...props });
16643
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(VideoPlayer, { ...props });
16557
16644
  } else {
16558
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
16559
- fileTypeIcon[mimetype],
16560
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { children: [
16561
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16562
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-[12px]", children: formatFileSize(size4) })
16563
- ] })
16564
- ] });
16645
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16646
+ "div",
16647
+ {
16648
+ onClick: (e3) => {
16649
+ if (accessToken) {
16650
+ e3?.stopPropagation();
16651
+ downloadFile(
16652
+ `${envFile}api/v2/web/content/${id}?download=true`,
16653
+ filename,
16654
+ accessToken
16655
+ );
16656
+ }
16657
+ },
16658
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16659
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16660
+ children: [
16661
+ fileTypeIcon[mimetype],
16662
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { children: [
16663
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16664
+ size4 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-[12px]", children: formatFileSize(size4) })
16665
+ ] })
16666
+ ]
16667
+ }
16668
+ );
16565
16669
  }
16566
16670
  };
16567
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
16671
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16568
16672
  "div",
16569
16673
  {
16570
- className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit group/file",
16674
+ className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
16571
16675
  children: [
16572
16676
  renderFile(),
16573
- handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16677
+ handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16574
16678
  "div",
16575
16679
  {
16680
+ style: {
16681
+ position: "absolute",
16682
+ top: 0,
16683
+ right: 0,
16684
+ backgroundColor: "rgba(0,0,0,0.2)"
16685
+ },
16576
16686
  onClick: () => handleRemoveFile(index4),
16577
- className: "cursor-pointer absolute right-0 top-0 p-2 hidden group-hover/file:block bg-[rgba(0,0,0,0.2)]",
16578
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DeleteIcon, {})
16687
+ className: "cursor-pointer p-2 hidden group-hover:block",
16688
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DeleteIcon, {})
16579
16689
  }
16580
16690
  ),
16581
- !handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16691
+ !handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16582
16692
  "span",
16583
16693
  {
16694
+ style: {
16695
+ position: "absolute",
16696
+ top: 0,
16697
+ right: 0,
16698
+ backgroundColor: "rgba(0,0,0,0.2)",
16699
+ zIndex: 10
16700
+ },
16584
16701
  onClick: (e3) => handleFileDownload(e3, src, filename),
16585
- className: "absolute top-0 right-0 z-10 hidden group-hover/file:block cursor-pointer p-2 text-white bg-[rgba(0,0,0,0.2)]",
16586
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DownloadIcon, {})
16702
+ className: "hidden group-hover:block cursor-pointer p-2 text-white ",
16703
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DownloadIcon, {})
16587
16704
  }
16588
16705
  )
16589
16706
  ]
@@ -16591,9 +16708,14 @@ var FileItem = (props) => {
16591
16708
  index4
16592
16709
  );
16593
16710
  };
16594
- var downloadFile = async (url, filename) => {
16711
+ var downloadFile = async (url, filename, accessToken) => {
16595
16712
  try {
16596
- const response = await fetch(url);
16713
+ const response = accessToken ? await fetch(url, {
16714
+ method: "GET",
16715
+ headers: {
16716
+ Authorization: `Bearer ${accessToken}`
16717
+ }
16718
+ }) : await fetch(url);
16597
16719
  if (response.ok) {
16598
16720
  const blob = await response.blob();
16599
16721
  const urlBlob = window.URL.createObjectURL(blob);
@@ -16611,7 +16733,13 @@ var downloadFile = async (url, filename) => {
16611
16733
  console.error("File download failed:", error2);
16612
16734
  }
16613
16735
  };
16614
- var RenderFiles = ({ selectedFiles, setSelectedFiles, useGetImage }) => {
16736
+ var RenderFiles = ({
16737
+ selectedFiles,
16738
+ setSelectedFiles,
16739
+ useGetImage,
16740
+ envFile,
16741
+ accessToken
16742
+ }) => {
16615
16743
  const handleRemoveFile = (index4) => {
16616
16744
  if (setSelectedFiles) {
16617
16745
  const files = selectedFiles.filter((_2, i3) => i3 !== index4);
@@ -16622,20 +16750,22 @@ var RenderFiles = ({ selectedFiles, setSelectedFiles, useGetImage }) => {
16622
16750
  e3.stopPropagation();
16623
16751
  downloadFile(url, name2);
16624
16752
  };
16625
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16626
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "relative group/file", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16753
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16754
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "relative group/file", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16627
16755
  FileItem,
16628
16756
  {
16629
16757
  ...file,
16630
16758
  src: file?.datas,
16631
- filename: file?.display_name ?? file?.name,
16759
+ filename: file?.display_name ?? file?.name ?? file?.filename,
16760
+ id: file?.id,
16632
16761
  index: index4,
16633
16762
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16634
16763
  handleFileDownload,
16635
- useGetImage
16636
- },
16637
- index4
16638
- ) });
16764
+ useGetImage,
16765
+ envFile,
16766
+ accessToken
16767
+ }
16768
+ ) }, file?.id ?? index4);
16639
16769
  }) });
16640
16770
  };
16641
16771
 
@@ -16825,7 +16955,7 @@ var po = $2(K("zoom"));
16825
16955
  var uo = $2(K("flip"));
16826
16956
 
16827
16957
  // src/widgets/common/select-files.tsx
16828
- var import_jsx_runtime69 = require("react/jsx-runtime");
16958
+ var import_jsx_runtime70 = require("react/jsx-runtime");
16829
16959
  var ButtonSelectFiles = ({
16830
16960
  fileInputRef,
16831
16961
  selectedFiles,
@@ -16928,8 +17058,8 @@ var ButtonSelectFiles = ({
16928
17058
  await handleUpload(formData, serivce, xNode);
16929
17059
  }
16930
17060
  };
16931
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
16932
- isPending ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
17061
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
17062
+ isPending ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
16933
17063
  "button",
16934
17064
  {
16935
17065
  type: "button",
@@ -16937,12 +17067,12 @@ var ButtonSelectFiles = ({
16937
17067
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16938
17068
  onClick: () => fileInputRef.current.click(),
16939
17069
  children: [
16940
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(AttachIcon, {}),
16941
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: t3("upload_file_placeholder") })
17070
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(AttachIcon, {}),
17071
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { children: t3("upload_file_placeholder") })
16942
17072
  ]
16943
17073
  }
16944
17074
  ),
16945
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
17075
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16946
17076
  "input",
16947
17077
  {
16948
17078
  type: "file",
@@ -16957,7 +17087,7 @@ var ButtonSelectFiles = ({
16957
17087
  };
16958
17088
 
16959
17089
  // src/widgets/basic/avatar-field/avatar.tsx
16960
- var import_jsx_runtime70 = require("react/jsx-runtime");
17090
+ var import_jsx_runtime71 = require("react/jsx-runtime");
16961
17091
  var AvatarField = (props) => {
16962
17092
  const {
16963
17093
  isForm = false,
@@ -16981,8 +17111,8 @@ var AvatarField = (props) => {
16981
17111
  color: textColor,
16982
17112
  fontSize: `${size4 / 2.5}px`
16983
17113
  };
16984
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
16985
- isForm && allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
17114
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
17115
+ isForm && allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16986
17116
  ModalDetail,
16987
17117
  {
16988
17118
  idToolTip: `avatar-widget-id-${id}`,
@@ -16993,7 +17123,7 @@ var AvatarField = (props) => {
16993
17123
  place: "top-start"
16994
17124
  }
16995
17125
  ),
16996
- allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
17126
+ allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16997
17127
  M,
16998
17128
  {
16999
17129
  id: `avatar-widget-id-${id}`,
@@ -17002,7 +17132,7 @@ var AvatarField = (props) => {
17002
17132
  className: "z-20"
17003
17133
  }
17004
17134
  ),
17005
- avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
17135
+ avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17006
17136
  "img",
17007
17137
  {
17008
17138
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -17010,7 +17140,7 @@ var AvatarField = (props) => {
17010
17140
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
17011
17141
  alt: "Avatar"
17012
17142
  }
17013
- ) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
17143
+ ) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17014
17144
  "div",
17015
17145
  {
17016
17146
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -17023,7 +17153,7 @@ var AvatarField = (props) => {
17023
17153
  };
17024
17154
 
17025
17155
  // src/widgets/basic/binary-field/binary.tsx
17026
- var import_jsx_runtime71 = require("react/jsx-runtime");
17156
+ var import_jsx_runtime72 = require("react/jsx-runtime");
17027
17157
  var BinaryField = (props) => {
17028
17158
  const {
17029
17159
  name: name2,
@@ -17046,7 +17176,7 @@ var BinaryField = (props) => {
17046
17176
  image
17047
17177
  } = props;
17048
17178
  const { t: t3 } = useI18n();
17049
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17179
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17050
17180
  Controller,
17051
17181
  {
17052
17182
  name: name2 ?? "",
@@ -17056,13 +17186,13 @@ var BinaryField = (props) => {
17056
17186
  },
17057
17187
  render: ({ field }) => {
17058
17188
  const renderImage = initialImage || selectedImage;
17059
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17189
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17060
17190
  "div",
17061
17191
  {
17062
17192
  ref: binaryRef,
17063
17193
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
17064
- children: renderImage ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "relative group", children: [
17065
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17194
+ children: renderImage ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "relative group", children: [
17195
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17066
17196
  "img",
17067
17197
  {
17068
17198
  style: {
@@ -17073,7 +17203,7 @@ var BinaryField = (props) => {
17073
17203
  alt: "Selected",
17074
17204
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
17075
17205
  }
17076
- ) : renderImage ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17206
+ ) : renderImage ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17077
17207
  "img",
17078
17208
  {
17079
17209
  style: {
@@ -17084,17 +17214,17 @@ var BinaryField = (props) => {
17084
17214
  alt: "Selected",
17085
17215
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
17086
17216
  }
17087
- ) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(PlaceHolderIcon, {}),
17088
- !isInsideTable && !readonly && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17217
+ ) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(PlaceHolderIcon, {}),
17218
+ !isInsideTable && !readonly && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17089
17219
  "button",
17090
17220
  {
17091
17221
  type: "button",
17092
17222
  onClick: () => handleRemoveImage(field.onChange),
17093
17223
  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",
17094
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DeleteIcon, {})
17224
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(DeleteIcon, {})
17095
17225
  }
17096
17226
  )
17097
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
17227
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
17098
17228
  "label",
17099
17229
  {
17100
17230
  htmlFor: inputId,
@@ -17104,7 +17234,7 @@ var BinaryField = (props) => {
17104
17234
  },
17105
17235
  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"}`,
17106
17236
  children: [
17107
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17237
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17108
17238
  "input",
17109
17239
  {
17110
17240
  id: inputId,
@@ -17116,8 +17246,8 @@ var BinaryField = (props) => {
17116
17246
  className: "hidden z-10 relative"
17117
17247
  }
17118
17248
  ),
17119
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("img", { src: image, alt: "", className: "z-0 relative" }),
17120
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17249
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("img", { src: image, alt: "", className: "z-0 relative" }),
17250
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17121
17251
  "div",
17122
17252
  {
17123
17253
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -17126,7 +17256,7 @@ var BinaryField = (props) => {
17126
17256
  left: "-8px",
17127
17257
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
17128
17258
  },
17129
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17259
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17130
17260
  "svg",
17131
17261
  {
17132
17262
  xmlns: "http://www.w3.org/2000/svg",
@@ -17134,7 +17264,7 @@ var BinaryField = (props) => {
17134
17264
  height: "14",
17135
17265
  viewBox: "0 0 14 14",
17136
17266
  fill: "none",
17137
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17267
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17138
17268
  "path",
17139
17269
  {
17140
17270
  "fill-rule": "evenodd",
@@ -17158,7 +17288,7 @@ var BinaryField = (props) => {
17158
17288
  };
17159
17289
 
17160
17290
  // src/widgets/basic/button-badge-field/button-badge.tsx
17161
- var import_jsx_runtime72 = require("react/jsx-runtime");
17291
+ var import_jsx_runtime73 = require("react/jsx-runtime");
17162
17292
  var typeStyles = {
17163
17293
  primary: {
17164
17294
  backgroundColor: "#3b82f6",
@@ -17233,11 +17363,11 @@ var ButtonBadgeField = (props) => {
17233
17363
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
17234
17364
  };
17235
17365
  const label = getLabel(defaultValue ?? value);
17236
- return label ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17366
+ return label ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17237
17367
  };
17238
17368
 
17239
17369
  // src/widgets/basic/button-field/button.tsx
17240
- var import_jsx_runtime73 = require("react/jsx-runtime");
17370
+ var import_jsx_runtime74 = require("react/jsx-runtime");
17241
17371
  var ButtonField = (props) => {
17242
17372
  const {
17243
17373
  func,
@@ -17248,7 +17378,7 @@ var ButtonField = (props) => {
17248
17378
  type = "submit"
17249
17379
  } = props;
17250
17380
  const { t: t3 } = useI18n();
17251
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_jsx_runtime73.Fragment, { children: !loading ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17381
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, { children: !loading ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17252
17382
  "button",
17253
17383
  {
17254
17384
  type,
@@ -17257,7 +17387,7 @@ var ButtonField = (props) => {
17257
17387
  onClick: func,
17258
17388
  children: t3(content)
17259
17389
  }
17260
- ) : /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
17390
+ ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
17261
17391
  "button",
17262
17392
  {
17263
17393
  type,
@@ -17266,7 +17396,7 @@ var ButtonField = (props) => {
17266
17396
  children: [
17267
17397
  t3("loading"),
17268
17398
  " ",
17269
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LoadingIcon, {})
17399
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(LoadingIcon, {})
17270
17400
  ]
17271
17401
  }
17272
17402
  ) });
@@ -17274,7 +17404,7 @@ var ButtonField = (props) => {
17274
17404
 
17275
17405
  // src/widgets/basic/char-field/char.tsx
17276
17406
  var import_react39 = require("react");
17277
- var import_jsx_runtime74 = require("react/jsx-runtime");
17407
+ var import_jsx_runtime75 = require("react/jsx-runtime");
17278
17408
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
17279
17409
  var CharField = (props) => {
17280
17410
  const {
@@ -17302,9 +17432,9 @@ var CharField = (props) => {
17302
17432
  } = props;
17303
17433
  if (!isForm && !isEditTable) {
17304
17434
  const propValue = value || defaultValue;
17305
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17435
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17306
17436
  }
17307
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17437
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17308
17438
  Controller,
17309
17439
  {
17310
17440
  name: name2 ?? "",
@@ -17358,8 +17488,8 @@ var CharField = (props) => {
17358
17488
  }
17359
17489
  return "";
17360
17490
  }, [widget, formValues]);
17361
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
17362
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17491
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
17492
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17363
17493
  "input",
17364
17494
  {
17365
17495
  value: displayValue ?? "",
@@ -17420,7 +17550,7 @@ var CharField = (props) => {
17420
17550
  `
17421
17551
  }
17422
17552
  ),
17423
- isEditTable ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, { children: error2 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17553
+ isEditTable ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, { children: error2 && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17424
17554
  ] });
17425
17555
  }
17426
17556
  }
@@ -17428,7 +17558,7 @@ var CharField = (props) => {
17428
17558
  };
17429
17559
 
17430
17560
  // src/widgets/basic/checkbox-field/checkbox.tsx
17431
- var import_jsx_runtime75 = require("react/jsx-runtime");
17561
+ var import_jsx_runtime76 = require("react/jsx-runtime");
17432
17562
  var CheckboxField = (props) => {
17433
17563
  const {
17434
17564
  name: name2,
@@ -17443,9 +17573,9 @@ var CheckboxField = (props) => {
17443
17573
  } = props;
17444
17574
  if (!isForm) {
17445
17575
  if (name2 === "is_active" || name2 === "active") {
17446
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ActiveBadgeField, { type: value });
17576
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ActiveBadgeField, { type: value });
17447
17577
  } else {
17448
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17578
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17449
17579
  "input",
17450
17580
  {
17451
17581
  type: "checkbox",
@@ -17456,12 +17586,12 @@ var CheckboxField = (props) => {
17456
17586
  );
17457
17587
  }
17458
17588
  }
17459
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17589
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17460
17590
  Controller,
17461
17591
  {
17462
17592
  name: name2 ?? "",
17463
17593
  control: methods?.control,
17464
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17594
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17465
17595
  "div",
17466
17596
  {
17467
17597
  className: "flex items-center gap-2",
@@ -17474,7 +17604,7 @@ var CheckboxField = (props) => {
17474
17604
  onChange2(name2 ?? "", checked);
17475
17605
  }
17476
17606
  },
17477
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17607
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17478
17608
  "input",
17479
17609
  {
17480
17610
  ...field,
@@ -17502,7 +17632,7 @@ var CheckboxField = (props) => {
17502
17632
 
17503
17633
  // src/widgets/basic/color-field/color-wrapper.tsx
17504
17634
  var import_react40 = require("react");
17505
- var import_jsx_runtime76 = require("react/jsx-runtime");
17635
+ var import_jsx_runtime77 = require("react/jsx-runtime");
17506
17636
  var ColorWrapper = (props) => {
17507
17637
  const {
17508
17638
  colors: colors2,
@@ -17529,8 +17659,8 @@ var ColorWrapper = (props) => {
17529
17659
  document.removeEventListener("mousedown", handleClickOutside);
17530
17660
  };
17531
17661
  }, []);
17532
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { children: [
17533
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17662
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
17663
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17534
17664
  "button",
17535
17665
  {
17536
17666
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17544,7 +17674,7 @@ var ColorWrapper = (props) => {
17544
17674
  }
17545
17675
  }
17546
17676
  ),
17547
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17677
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17548
17678
  M,
17549
17679
  {
17550
17680
  className: "",
@@ -17553,8 +17683,8 @@ var ColorWrapper = (props) => {
17553
17683
  content: i18n_default.t(color?.name)
17554
17684
  }
17555
17685
  )
17556
- ] }, color?.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
17557
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17686
+ ] }, color?.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
17687
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17558
17688
  "button",
17559
17689
  {
17560
17690
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17567,7 +17697,7 @@ var ColorWrapper = (props) => {
17567
17697
  style: { backgroundColor: selectedColor?.color }
17568
17698
  }
17569
17699
  ),
17570
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17700
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17571
17701
  M,
17572
17702
  {
17573
17703
  place: "top",
@@ -17579,13 +17709,13 @@ var ColorWrapper = (props) => {
17579
17709
  };
17580
17710
 
17581
17711
  // src/widgets/basic/color-field/color.tsx
17582
- var import_jsx_runtime77 = require("react/jsx-runtime");
17712
+ var import_jsx_runtime78 = require("react/jsx-runtime");
17583
17713
  var ColorField = (props) => {
17584
17714
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17585
17715
  if (!isForm) {
17586
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17716
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17587
17717
  }
17588
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17718
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17589
17719
  Controller,
17590
17720
  {
17591
17721
  name: name2 ?? "",
@@ -17595,7 +17725,7 @@ var ColorField = (props) => {
17595
17725
  field.onChange(color?.id);
17596
17726
  onChange2 && onChange2(name2 ?? "", color?.id);
17597
17727
  };
17598
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17728
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17599
17729
  ColorWrapper,
17600
17730
  {
17601
17731
  savePickColor: handlePickColorChange,
@@ -17610,7 +17740,7 @@ var ColorField = (props) => {
17610
17740
 
17611
17741
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17612
17742
  var import_react41 = require("react");
17613
- var import_jsx_runtime78 = require("react/jsx-runtime");
17743
+ var import_jsx_runtime79 = require("react/jsx-runtime");
17614
17744
  var CopyLinkButtonField = (props) => {
17615
17745
  const {
17616
17746
  isForm,
@@ -17629,9 +17759,9 @@ var CopyLinkButtonField = (props) => {
17629
17759
  } = props;
17630
17760
  const { t: t3 } = useI18n();
17631
17761
  if (!isForm) {
17632
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17762
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17633
17763
  }
17634
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17764
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17635
17765
  Controller,
17636
17766
  {
17637
17767
  name: name2 ?? "",
@@ -17649,8 +17779,8 @@ var CopyLinkButtonField = (props) => {
17649
17779
  clearErrors(name2);
17650
17780
  }
17651
17781
  }, [value]);
17652
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "relative", children: [
17653
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
17782
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "relative", children: [
17783
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
17654
17784
  "div",
17655
17785
  {
17656
17786
  "aria-disabled": readonly,
@@ -17659,7 +17789,7 @@ var CopyLinkButtonField = (props) => {
17659
17789
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17660
17790
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17661
17791
  children: [
17662
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17792
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17663
17793
  "input",
17664
17794
  {
17665
17795
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17700,19 +17830,19 @@ var CopyLinkButtonField = (props) => {
17700
17830
  `
17701
17831
  }
17702
17832
  ),
17703
- readonly && value && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17833
+ readonly && value && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17704
17834
  "button",
17705
17835
  {
17706
17836
  className: "cursor-pointer",
17707
17837
  type: "button",
17708
17838
  onClick: () => handleCopyToClipboard(propValue),
17709
- children: isCopied ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CheckIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CopyIcon, {})
17839
+ children: isCopied ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CheckIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CopyIcon, {})
17710
17840
  }
17711
17841
  )
17712
17842
  ]
17713
17843
  }
17714
17844
  ),
17715
- error2 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17845
+ error2 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17716
17846
  ] });
17717
17847
  }
17718
17848
  }
@@ -21653,7 +21783,7 @@ function useEffectEvent(callback) {
21653
21783
  }
21654
21784
 
21655
21785
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21656
- var import_jsx_runtime79 = require("react/jsx-runtime");
21786
+ var import_jsx_runtime80 = require("react/jsx-runtime");
21657
21787
  var ReactDOM2 = __toESM(require("react-dom"), 1);
21658
21788
 
21659
21789
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -22051,7 +22181,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
22051
22181
  bottom: isCustomShape ? "" : "rotate(180deg)",
22052
22182
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
22053
22183
  }[side];
22054
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("svg", {
22184
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("svg", {
22055
22185
  ...rest,
22056
22186
  "aria-hidden": true,
22057
22187
  ref,
@@ -22067,18 +22197,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
22067
22197
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
22068
22198
  ...restStyle
22069
22199
  },
22070
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", {
22200
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", {
22071
22201
  clipPath: "url(#" + clipPathId + ")",
22072
22202
  fill: "none",
22073
22203
  stroke,
22074
22204
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
22075
22205
  d: dValue
22076
- }), /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", {
22206
+ }), /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", {
22077
22207
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
22078
22208
  d: dValue
22079
- }), /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("clipPath", {
22209
+ }), /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("clipPath", {
22080
22210
  id: clipPathId,
22081
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("rect", {
22211
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("rect", {
22082
22212
  x: -halfStrokeWidth,
22083
22213
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
22084
22214
  width: width + computedStrokeWidth,
@@ -28011,7 +28141,7 @@ var Emotion$1 = Emotion;
28011
28141
  var React12 = __toESM(require("react"));
28012
28142
  var import_extends2 = __toESM(require_extends());
28013
28143
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
28014
- var jsx80 = function jsx81(type, props) {
28144
+ var jsx81 = function jsx82(type, props) {
28015
28145
  var args = arguments;
28016
28146
  if (props == null || !hasOwn.call(props, "css")) {
28017
28147
  return React12.createElement.apply(void 0, args);
@@ -28029,7 +28159,7 @@ var jsx80 = function jsx81(type, props) {
28029
28159
  var JSX;
28030
28160
  /* @__PURE__ */ (function(_JSX) {
28031
28161
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
28032
- })(jsx80 || (jsx80 = {}));
28162
+ })(jsx81 || (jsx81 = {}));
28033
28163
  function css() {
28034
28164
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
28035
28165
  args[_key] = arguments[_key];
@@ -28437,7 +28567,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28437
28567
  };
28438
28568
  var Menu = function Menu2(props) {
28439
28569
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28440
- return jsx80("div", _extends({}, getStyleProps(props, "menu", {
28570
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
28441
28571
  menu: true
28442
28572
  }), {
28443
28573
  ref: innerRef
@@ -28459,7 +28589,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28459
28589
  };
28460
28590
  var MenuList = function MenuList2(props) {
28461
28591
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28462
- return jsx80("div", _extends({}, getStyleProps(props, "menuList", {
28592
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
28463
28593
  "menu-list": true,
28464
28594
  "menu-list--is-multi": isMulti
28465
28595
  }), {
@@ -28479,7 +28609,7 @@ var noOptionsMessageCSS = noticeCSS;
28479
28609
  var loadingMessageCSS = noticeCSS;
28480
28610
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28481
28611
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28482
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28612
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28483
28613
  children,
28484
28614
  innerProps
28485
28615
  }), "noOptionsMessage", {
@@ -28489,7 +28619,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28489
28619
  };
28490
28620
  var LoadingMessage = function LoadingMessage2(_ref7) {
28491
28621
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28492
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28622
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28493
28623
  children,
28494
28624
  innerProps
28495
28625
  }), "loadingMessage", {
@@ -28552,7 +28682,7 @@ var MenuPortal = function MenuPortal2(props) {
28552
28682
  runAutoUpdate();
28553
28683
  }, [runAutoUpdate]);
28554
28684
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28555
- var menuWrapper = jsx80("div", _extends({
28685
+ var menuWrapper = jsx81("div", _extends({
28556
28686
  ref: setMenuPortalElement
28557
28687
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28558
28688
  offset: computedPosition.offset,
@@ -28561,7 +28691,7 @@ var MenuPortal = function MenuPortal2(props) {
28561
28691
  }), "menuPortal", {
28562
28692
  "menu-portal": true
28563
28693
  }), innerProps), children);
28564
- return jsx80(PortalPlacementContext.Provider, {
28694
+ return jsx81(PortalPlacementContext.Provider, {
28565
28695
  value: portalPlacementContext
28566
28696
  }, appendTo ? /* @__PURE__ */ (0, import_react_dom6.createPortal)(menuWrapper, appendTo) : menuWrapper);
28567
28697
  };
@@ -28577,7 +28707,7 @@ var containerCSS = function containerCSS2(_ref3) {
28577
28707
  };
28578
28708
  var SelectContainer = function SelectContainer2(props) {
28579
28709
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28580
- return jsx80("div", _extends({}, getStyleProps(props, "container", {
28710
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
28581
28711
  "--is-disabled": isDisabled,
28582
28712
  "--is-rtl": isRtl
28583
28713
  }), innerProps), children);
@@ -28598,7 +28728,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28598
28728
  };
28599
28729
  var ValueContainer = function ValueContainer2(props) {
28600
28730
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28601
- return jsx80("div", _extends({}, getStyleProps(props, "valueContainer", {
28731
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28602
28732
  "value-container": true,
28603
28733
  "value-container--is-multi": isMulti,
28604
28734
  "value-container--has-value": hasValue
@@ -28614,7 +28744,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28614
28744
  };
28615
28745
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28616
28746
  var children = props.children, innerProps = props.innerProps;
28617
- return jsx80("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28747
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28618
28748
  indicators: true
28619
28749
  }), innerProps), children);
28620
28750
  };
@@ -28635,7 +28765,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28635
28765
  };
28636
28766
  var Svg = function Svg2(_ref3) {
28637
28767
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28638
- return jsx80("svg", _extends({
28768
+ return jsx81("svg", _extends({
28639
28769
  height: size4,
28640
28770
  width: size4,
28641
28771
  viewBox: "0 0 20 20",
@@ -28645,16 +28775,16 @@ var Svg = function Svg2(_ref3) {
28645
28775
  }, props));
28646
28776
  };
28647
28777
  var CrossIcon = function CrossIcon2(props) {
28648
- return jsx80(Svg, _extends({
28778
+ return jsx81(Svg, _extends({
28649
28779
  size: 20
28650
- }, props), jsx80("path", {
28780
+ }, props), jsx81("path", {
28651
28781
  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"
28652
28782
  }));
28653
28783
  };
28654
28784
  var DownChevron = function DownChevron2(props) {
28655
- return jsx80(Svg, _extends({
28785
+ return jsx81(Svg, _extends({
28656
28786
  size: 20
28657
- }, props), jsx80("path", {
28787
+ }, props), jsx81("path", {
28658
28788
  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"
28659
28789
  }));
28660
28790
  };
@@ -28675,18 +28805,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28675
28805
  var dropdownIndicatorCSS = baseCSS;
28676
28806
  var DropdownIndicator = function DropdownIndicator2(props) {
28677
28807
  var children = props.children, innerProps = props.innerProps;
28678
- return jsx80("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28808
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28679
28809
  indicator: true,
28680
28810
  "dropdown-indicator": true
28681
- }), innerProps), children || jsx80(DownChevron, null));
28811
+ }), innerProps), children || jsx81(DownChevron, null));
28682
28812
  };
28683
28813
  var clearIndicatorCSS = baseCSS;
28684
28814
  var ClearIndicator = function ClearIndicator2(props) {
28685
28815
  var children = props.children, innerProps = props.innerProps;
28686
- return jsx80("div", _extends({}, getStyleProps(props, "clearIndicator", {
28816
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28687
28817
  indicator: true,
28688
28818
  "clear-indicator": true
28689
- }), innerProps), children || jsx80(CrossIcon, null));
28819
+ }), innerProps), children || jsx81(CrossIcon, null));
28690
28820
  };
28691
28821
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28692
28822
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28702,7 +28832,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28702
28832
  };
28703
28833
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28704
28834
  var innerProps = props.innerProps;
28705
- return jsx80("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28835
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28706
28836
  "indicator-separator": true
28707
28837
  })));
28708
28838
  };
@@ -28726,7 +28856,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28726
28856
  };
28727
28857
  var LoadingDot = function LoadingDot2(_ref6) {
28728
28858
  var delay = _ref6.delay, offset4 = _ref6.offset;
28729
- return jsx80("span", {
28859
+ return jsx81("span", {
28730
28860
  css: /* @__PURE__ */ css({
28731
28861
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28732
28862
  backgroundColor: "currentColor",
@@ -28741,20 +28871,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28741
28871
  };
28742
28872
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28743
28873
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28744
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28874
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28745
28875
  innerProps,
28746
28876
  isRtl,
28747
28877
  size: size4
28748
28878
  }), "loadingIndicator", {
28749
28879
  indicator: true,
28750
28880
  "loading-indicator": true
28751
- }), innerProps), jsx80(LoadingDot, {
28881
+ }), innerProps), jsx81(LoadingDot, {
28752
28882
  delay: 0,
28753
28883
  offset: isRtl
28754
- }), jsx80(LoadingDot, {
28884
+ }), jsx81(LoadingDot, {
28755
28885
  delay: 160,
28756
28886
  offset: true
28757
- }), jsx80(LoadingDot, {
28887
+ }), jsx81(LoadingDot, {
28758
28888
  delay: 320,
28759
28889
  offset: !isRtl
28760
28890
  }));
@@ -28786,7 +28916,7 @@ var css$1 = function css2(_ref3, unstyled) {
28786
28916
  };
28787
28917
  var Control = function Control2(props) {
28788
28918
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28789
- return jsx80("div", _extends({
28919
+ return jsx81("div", _extends({
28790
28920
  ref: innerRef
28791
28921
  }, getStyleProps(props, "control", {
28792
28922
  control: true,
@@ -28808,15 +28938,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28808
28938
  };
28809
28939
  var Group = function Group2(props) {
28810
28940
  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;
28811
- return jsx80("div", _extends({}, getStyleProps(props, "group", {
28941
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28812
28942
  group: true
28813
- }), innerProps), jsx80(Heading, _extends({}, headingProps, {
28943
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28814
28944
  selectProps,
28815
28945
  theme,
28816
28946
  getStyles,
28817
28947
  getClassNames,
28818
28948
  cx
28819
- }), label), jsx80("div", null, children));
28949
+ }), label), jsx81("div", null, children));
28820
28950
  };
28821
28951
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28822
28952
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28838,7 +28968,7 @@ var GroupHeading = function GroupHeading2(props) {
28838
28968
  var _cleanCommonProps = cleanCommonProps(props);
28839
28969
  _cleanCommonProps.data;
28840
28970
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28841
- return jsx80("div", _extends({}, getStyleProps(props, "groupHeading", {
28971
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28842
28972
  "group-heading": true
28843
28973
  }), innerProps));
28844
28974
  };
@@ -28890,11 +29020,11 @@ var inputStyle = function inputStyle2(isHidden) {
28890
29020
  var Input = function Input2(props) {
28891
29021
  var cx = props.cx, value = props.value;
28892
29022
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28893
- return jsx80("div", _extends({}, getStyleProps(props, "input", {
29023
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28894
29024
  "input-container": true
28895
29025
  }), {
28896
29026
  "data-value": value || ""
28897
- }), jsx80("input", _extends({
29027
+ }), jsx81("input", _extends({
28898
29028
  className: cx({
28899
29029
  input: true
28900
29030
  }, inputClassName),
@@ -28948,35 +29078,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28948
29078
  };
28949
29079
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28950
29080
  var children = _ref4.children, innerProps = _ref4.innerProps;
28951
- return jsx80("div", innerProps, children);
29081
+ return jsx81("div", innerProps, children);
28952
29082
  };
28953
29083
  var MultiValueContainer = MultiValueGeneric;
28954
29084
  var MultiValueLabel = MultiValueGeneric;
28955
29085
  function MultiValueRemove(_ref5) {
28956
29086
  var children = _ref5.children, innerProps = _ref5.innerProps;
28957
- return jsx80("div", _extends({
29087
+ return jsx81("div", _extends({
28958
29088
  role: "button"
28959
- }, innerProps), children || jsx80(CrossIcon, {
29089
+ }, innerProps), children || jsx81(CrossIcon, {
28960
29090
  size: 14
28961
29091
  }));
28962
29092
  }
28963
29093
  var MultiValue = function MultiValue2(props) {
28964
29094
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28965
29095
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28966
- return jsx80(Container, {
29096
+ return jsx81(Container, {
28967
29097
  data,
28968
29098
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28969
29099
  "multi-value": true,
28970
29100
  "multi-value--is-disabled": isDisabled
28971
29101
  })), innerProps),
28972
29102
  selectProps
28973
- }, jsx80(Label, {
29103
+ }, jsx81(Label, {
28974
29104
  data,
28975
29105
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28976
29106
  "multi-value__label": true
28977
29107
  })),
28978
29108
  selectProps
28979
- }, children), jsx80(Remove, {
29109
+ }, children), jsx81(Remove, {
28980
29110
  data,
28981
29111
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28982
29112
  "multi-value__remove": true
@@ -29009,7 +29139,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
29009
29139
  };
29010
29140
  var Option = function Option2(props) {
29011
29141
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
29012
- return jsx80("div", _extends({}, getStyleProps(props, "option", {
29142
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
29013
29143
  option: true,
29014
29144
  "option--is-disabled": isDisabled,
29015
29145
  "option--is-focused": isFocused,
@@ -29033,7 +29163,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
29033
29163
  };
29034
29164
  var Placeholder = function Placeholder2(props) {
29035
29165
  var children = props.children, innerProps = props.innerProps;
29036
- return jsx80("div", _extends({}, getStyleProps(props, "placeholder", {
29166
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
29037
29167
  placeholder: true
29038
29168
  }), innerProps), children);
29039
29169
  };
@@ -29055,7 +29185,7 @@ var css3 = function css4(_ref3, unstyled) {
29055
29185
  };
29056
29186
  var SingleValue = function SingleValue2(props) {
29057
29187
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
29058
- return jsx80("div", _extends({}, getStyleProps(props, "singleValue", {
29188
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
29059
29189
  "single-value": true,
29060
29190
  "single-value--is-disabled": isDisabled
29061
29191
  }), innerProps), children);
@@ -29157,7 +29287,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
29157
29287
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
29158
29288
  };
29159
29289
  var A11yText = function A11yText2(props) {
29160
- return jsx80("span", _extends({
29290
+ return jsx81("span", _extends({
29161
29291
  css: _ref
29162
29292
  }, props));
29163
29293
  };
@@ -29292,18 +29422,18 @@ var LiveRegion = function LiveRegion2(props) {
29292
29422
  }
29293
29423
  return guidanceMsg;
29294
29424
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
29295
- var ScreenReaderText = jsx80(import_react51.Fragment, null, jsx80("span", {
29425
+ var ScreenReaderText = jsx81(import_react51.Fragment, null, jsx81("span", {
29296
29426
  id: "aria-selection"
29297
- }, ariaSelected), jsx80("span", {
29427
+ }, ariaSelected), jsx81("span", {
29298
29428
  id: "aria-focused"
29299
- }, ariaFocused), jsx80("span", {
29429
+ }, ariaFocused), jsx81("span", {
29300
29430
  id: "aria-results"
29301
- }, ariaResults), jsx80("span", {
29431
+ }, ariaResults), jsx81("span", {
29302
29432
  id: "aria-guidance"
29303
29433
  }, ariaGuidance));
29304
- return jsx80(import_react51.Fragment, null, jsx80(A11yText$1, {
29434
+ return jsx81(import_react51.Fragment, null, jsx81(A11yText$1, {
29305
29435
  id
29306
- }, isInitialFocus && ScreenReaderText), jsx80(A11yText$1, {
29436
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
29307
29437
  "aria-live": ariaLive,
29308
29438
  "aria-atomic": "false",
29309
29439
  "aria-relevant": "additions text",
@@ -29616,7 +29746,7 @@ var _excluded4 = ["innerRef"];
29616
29746
  function DummyInput(_ref3) {
29617
29747
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29618
29748
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29619
- return jsx80("input", _extends({
29749
+ return jsx81("input", _extends({
29620
29750
  ref: innerRef
29621
29751
  }, filteredProps, {
29622
29752
  css: /* @__PURE__ */ css({
@@ -29858,7 +29988,7 @@ function ScrollManager(_ref3) {
29858
29988
  setScrollCaptureTarget(element);
29859
29989
  setScrollLockTarget(element);
29860
29990
  };
29861
- return jsx80(import_react51.Fragment, null, lockEnabled && jsx80("div", {
29991
+ return jsx81(import_react51.Fragment, null, lockEnabled && jsx81("div", {
29862
29992
  onClick: blurSelectInput,
29863
29993
  css: _ref2$1
29864
29994
  }), children(targetRef));
@@ -29877,7 +30007,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29877
30007
  };
29878
30008
  var RequiredInput = function RequiredInput2(_ref3) {
29879
30009
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29880
- return jsx80("input", {
30010
+ return jsx81("input", {
29881
30011
  required: true,
29882
30012
  name: name2,
29883
30013
  tabIndex: -1,
@@ -31467,7 +31597,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31467
31597
 
31468
31598
  // src/widgets/basic/date-field/date.tsx
31469
31599
  var import_moment2 = __toESM(require_moment());
31470
- var import_jsx_runtime80 = require("react/jsx-runtime");
31600
+ var import_jsx_runtime81 = require("react/jsx-runtime");
31471
31601
  var DateField = (props) => {
31472
31602
  const {
31473
31603
  name: name2,
@@ -31495,8 +31625,8 @@ var DateField = (props) => {
31495
31625
  } = props;
31496
31626
  const { t: t3 } = useI18n();
31497
31627
  const InputDateCustom = (0, import_react54.forwardRef)(
31498
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("label", { className: `flex ${className}`, children: [
31499
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31628
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("label", { className: `flex ${className}`, children: [
31629
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31500
31630
  "input",
31501
31631
  {
31502
31632
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31510,13 +31640,13 @@ var DateField = (props) => {
31510
31640
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31511
31641
  }
31512
31642
  ),
31513
- isForm2 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(CalendarIcon, {})
31643
+ isForm2 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(CalendarIcon, {})
31514
31644
  ] })
31515
31645
  );
31516
31646
  if (!isForm && !isEditTable) {
31517
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31647
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31518
31648
  } else {
31519
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31649
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31520
31650
  Controller,
31521
31651
  {
31522
31652
  name: name2 || "",
@@ -31538,8 +31668,8 @@ var DateField = (props) => {
31538
31668
  }
31539
31669
  }, [value, clearErrors, name2]);
31540
31670
  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;
31541
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
31542
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31671
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
31672
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31543
31673
  DatePicker,
31544
31674
  {
31545
31675
  selected: selectedDate,
@@ -31587,7 +31717,7 @@ var DateField = (props) => {
31587
31717
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31588
31718
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31589
31719
  showTimeInput: showTime,
31590
- customInput: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31720
+ customInput: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31591
31721
  InputDateCustom,
31592
31722
  {
31593
31723
  isForm,
@@ -31605,7 +31735,7 @@ var DateField = (props) => {
31605
31735
  increaseMonth,
31606
31736
  prevMonthButtonDisabled,
31607
31737
  nextMonthButtonDisabled
31608
- }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
31738
+ }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
31609
31739
  "div",
31610
31740
  {
31611
31741
  style: {
@@ -31614,7 +31744,7 @@ var DateField = (props) => {
31614
31744
  justifyContent: "center"
31615
31745
  },
31616
31746
  children: [
31617
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31747
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31618
31748
  "button",
31619
31749
  {
31620
31750
  onClick: decreaseMonth,
@@ -31622,7 +31752,7 @@ var DateField = (props) => {
31622
31752
  children: "<"
31623
31753
  }
31624
31754
  ),
31625
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31755
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31626
31756
  StateManagedSelect$1,
31627
31757
  {
31628
31758
  classNames: {
@@ -31648,7 +31778,7 @@ var DateField = (props) => {
31648
31778
  autoFocus: true
31649
31779
  }
31650
31780
  ),
31651
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31781
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31652
31782
  StateManagedSelect$1,
31653
31783
  {
31654
31784
  classNames: {
@@ -31676,7 +31806,7 @@ var DateField = (props) => {
31676
31806
  }))
31677
31807
  }
31678
31808
  ),
31679
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31809
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31680
31810
  "button",
31681
31811
  {
31682
31812
  onClick: increaseMonth,
@@ -31689,7 +31819,7 @@ var DateField = (props) => {
31689
31819
  )
31690
31820
  }
31691
31821
  ),
31692
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31822
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31693
31823
  ] });
31694
31824
  }
31695
31825
  }
@@ -31698,26 +31828,26 @@ var DateField = (props) => {
31698
31828
  };
31699
31829
 
31700
31830
  // src/widgets/basic/download-binary-field/download-binary.tsx
31701
- var import_jsx_runtime81 = require("react/jsx-runtime");
31831
+ var import_jsx_runtime82 = require("react/jsx-runtime");
31702
31832
  var DownLoadBinaryField = (props) => {
31703
31833
  const { handleFileDownload } = props;
31704
31834
  const { t: t3 } = useI18n();
31705
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
31835
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
31706
31836
  "button",
31707
31837
  {
31708
31838
  type: "button",
31709
31839
  onClick: handleFileDownload,
31710
31840
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31711
31841
  children: [
31712
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(DownloadIcon, {}),
31713
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31842
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(DownloadIcon, {}),
31843
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31714
31844
  ]
31715
31845
  }
31716
31846
  );
31717
31847
  };
31718
31848
 
31719
31849
  // src/widgets/basic/download-file-field/download-file.tsx
31720
- var import_jsx_runtime82 = require("react/jsx-runtime");
31850
+ var import_jsx_runtime83 = require("react/jsx-runtime");
31721
31851
  var DownloadFileField = (props) => {
31722
31852
  const {
31723
31853
  readonly,
@@ -31729,15 +31859,15 @@ var DownloadFileField = (props) => {
31729
31859
  handleFileChange,
31730
31860
  handleFileDownload
31731
31861
  } = props;
31732
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "", children: [
31733
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
31862
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "", children: [
31863
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31734
31864
  "label",
31735
31865
  {
31736
31866
  htmlFor: inputId,
31737
31867
  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",
31738
31868
  children: [
31739
- file ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31740
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
31869
+ file ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31870
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31741
31871
  "input",
31742
31872
  {
31743
31873
  id: inputId,
@@ -31751,7 +31881,7 @@ var DownloadFileField = (props) => {
31751
31881
  ]
31752
31882
  }
31753
31883
  ),
31754
- file && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
31884
+ file && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31755
31885
  "button",
31756
31886
  {
31757
31887
  onClick: handleFileDownload,
@@ -31765,7 +31895,7 @@ var DownloadFileField = (props) => {
31765
31895
 
31766
31896
  // src/widgets/basic/dropdown-field/dropdown.tsx
31767
31897
  var import_react55 = require("react");
31768
- var import_jsx_runtime83 = require("react/jsx-runtime");
31898
+ var import_jsx_runtime84 = require("react/jsx-runtime");
31769
31899
  var DropdownField = (props) => {
31770
31900
  const {
31771
31901
  options: options2,
@@ -31779,30 +31909,30 @@ var DropdownField = (props) => {
31779
31909
  } = props;
31780
31910
  const [open, setOpen] = (0, import_react55.useState)(false);
31781
31911
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31782
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31912
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31783
31913
  "div",
31784
31914
  {
31785
31915
  ref: dropdownRef,
31786
31916
  className: `relative ${className}`,
31787
31917
  onClick: () => setOpen(!open),
31788
31918
  children: [
31789
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31919
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31790
31920
  "div",
31791
31921
  {
31792
31922
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31793
31923
  children: [
31794
31924
  selectedValue?.icon,
31795
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: selectedValue?.label }),
31796
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ChevronBottomIcon, { className: "h-4 w-4" })
31925
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { children: selectedValue?.label }),
31926
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ChevronBottomIcon, { className: "h-4 w-4" })
31797
31927
  ]
31798
31928
  }
31799
31929
  ),
31800
- open && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31930
+ open && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31801
31931
  "div",
31802
31932
  {
31803
31933
  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}`,
31804
31934
  onClick: (e3) => e3.stopPropagation(),
31805
- children: options2.map((option, index4) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31935
+ children: options2.map((option, index4) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31806
31936
  "div",
31807
31937
  {
31808
31938
  onClick: () => {
@@ -31822,7 +31952,7 @@ var DropdownField = (props) => {
31822
31952
  };
31823
31953
 
31824
31954
  // src/widgets/basic/fee-field/fee.tsx
31825
- var import_jsx_runtime84 = require("react/jsx-runtime");
31955
+ var import_jsx_runtime85 = require("react/jsx-runtime");
31826
31956
  var FeeField = (props) => {
31827
31957
  const { value, formValues } = props;
31828
31958
  const { t: t3 } = useI18n();
@@ -31833,27 +31963,27 @@ var FeeField = (props) => {
31833
31963
  )
31834
31964
  ) + " VND";
31835
31965
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31836
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
31966
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
31837
31967
  value?.subtotals?.map((sub) => {
31838
31968
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31839
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
31840
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31841
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31969
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
31970
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31971
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31842
31972
  sub?.name,
31843
31973
  ":"
31844
31974
  ] }),
31845
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31975
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31846
31976
  ] }),
31847
- sub?.tax_groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31977
+ sub?.tax_groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
31848
31978
  "div",
31849
31979
  {
31850
31980
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31851
31981
  children: [
31852
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31982
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31853
31983
  group?.group_name,
31854
31984
  ":"
31855
31985
  ] }),
31856
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31986
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31857
31987
  ]
31858
31988
  },
31859
31989
  `tax_groups_${group?.id}`
@@ -31861,33 +31991,33 @@ var FeeField = (props) => {
31861
31991
  ] });
31862
31992
  }
31863
31993
  }),
31864
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31865
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31994
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31995
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31866
31996
  t3("total"),
31867
31997
  ":"
31868
31998
  ] }),
31869
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31999
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31870
32000
  ] }),
31871
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31872
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
32001
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
32002
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31873
32003
  t3("paid_amount"),
31874
32004
  ":"
31875
32005
  ] }),
31876
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
32006
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31877
32007
  ] }),
31878
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31879
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
32008
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
32009
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31880
32010
  t3("remanining_amount"),
31881
32011
  ":"
31882
32012
  ] }),
31883
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
32013
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31884
32014
  ] })
31885
32015
  ] });
31886
32016
  };
31887
32017
 
31888
32018
  // src/widgets/basic/file-upload-field/file-upload.tsx
31889
32019
  var import_react56 = require("react");
31890
- var import_jsx_runtime85 = require("react/jsx-runtime");
32020
+ var import_jsx_runtime86 = require("react/jsx-runtime");
31891
32021
  var RenderFile = ({
31892
32022
  file,
31893
32023
  onDelete,
@@ -31897,16 +32027,16 @@ var RenderFile = ({
31897
32027
  readAs: "all"
31898
32028
  });
31899
32029
  const fileTypeIcon = {
31900
- "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(PdfIcon, {}),
31901
- "application/zip": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ZipIcon, {}),
31902
- "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ZipIcon, {}),
31903
- "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ExcelIcon, {}),
31904
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ExcelIcon, {})
32030
+ "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(PdfIcon, {}),
32031
+ "application/zip": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ZipIcon, {}),
32032
+ "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ZipIcon, {}),
32033
+ "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ExcelIcon, {}),
32034
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ExcelIcon, {})
31905
32035
  };
31906
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31907
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31908
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { children: [
31909
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
32036
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
32037
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
32038
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { children: [
32039
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31910
32040
  "div",
31911
32041
  {
31912
32042
  style: {
@@ -31916,20 +32046,20 @@ var RenderFile = ({
31916
32046
  children: file?.name || file?.display_name || info?.name
31917
32047
  }
31918
32048
  ),
31919
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
32049
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31920
32050
  ] }),
31921
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
31922
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
32051
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
32052
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31923
32053
  "span",
31924
32054
  {
31925
32055
  onClick: () => onDownload && onDownload(
31926
32056
  file?.data,
31927
32057
  file?.name || file?.display_name || info?.name
31928
32058
  ),
31929
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DownloadIcon, {})
32059
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DownloadIcon, {})
31930
32060
  }
31931
32061
  ),
31932
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DeleteIconDanger, {}) })
32062
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DeleteIconDanger, {}) })
31933
32063
  ] })
31934
32064
  ] });
31935
32065
  };
@@ -31963,7 +32093,7 @@ var FileUploadField = (props) => {
31963
32093
  ]);
31964
32094
  }
31965
32095
  }, [value]);
31966
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
32096
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31967
32097
  Controller,
31968
32098
  {
31969
32099
  name: name2 || "",
@@ -31988,8 +32118,8 @@ var FileUploadField = (props) => {
31988
32118
  );
31989
32119
  }
31990
32120
  }, [selectedFiles]);
31991
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "file-upload-field", children: [
31992
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
32121
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "file-upload-field", children: [
32122
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31993
32123
  RenderFile,
31994
32124
  {
31995
32125
  file: fileItem,
@@ -32004,8 +32134,8 @@ var FileUploadField = (props) => {
32004
32134
  }
32005
32135
  }
32006
32136
  )),
32007
- uploadError && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-[#de4747]", children: uploadError }),
32008
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
32137
+ uploadError && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-[#de4747]", children: uploadError }),
32138
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
32009
32139
  ButtonSelectFiles,
32010
32140
  {
32011
32141
  fileInputRef,
@@ -32020,7 +32150,7 @@ var FileUploadField = (props) => {
32020
32150
  useUploadFile
32021
32151
  }
32022
32152
  ),
32023
- error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32153
+ error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32024
32154
  ] });
32025
32155
  }
32026
32156
  }
@@ -32029,7 +32159,7 @@ var FileUploadField = (props) => {
32029
32159
 
32030
32160
  // src/widgets/basic/float-field/float.tsx
32031
32161
  var import_react57 = require("react");
32032
- var import_jsx_runtime86 = require("react/jsx-runtime");
32162
+ var import_jsx_runtime87 = require("react/jsx-runtime");
32033
32163
  var FloatField = (props) => {
32034
32164
  const {
32035
32165
  name: name2,
@@ -32047,9 +32177,9 @@ var FloatField = (props) => {
32047
32177
  } = props;
32048
32178
  const { t: t3 } = useI18n();
32049
32179
  if (!isForm && !isEditTable) {
32050
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { children: formatFloatNumber(propValue ?? defaultValue) });
32180
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: formatFloatNumber(propValue ?? defaultValue) });
32051
32181
  }
32052
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
32182
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
32053
32183
  Controller,
32054
32184
  {
32055
32185
  name: name2 ?? "",
@@ -32154,8 +32284,8 @@ var FloatField = (props) => {
32154
32284
  }
32155
32285
  isDirtyRef.current = false;
32156
32286
  };
32157
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
32158
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
32287
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
32288
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
32159
32289
  "input",
32160
32290
  {
32161
32291
  ref: inputRef,
@@ -32175,7 +32305,7 @@ var FloatField = (props) => {
32175
32305
  `
32176
32306
  }
32177
32307
  ),
32178
- error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32308
+ error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32179
32309
  ] });
32180
32310
  }
32181
32311
  }
@@ -32184,7 +32314,7 @@ var FloatField = (props) => {
32184
32314
 
32185
32315
  // src/widgets/basic/float-time-field/float-time.tsx
32186
32316
  var import_react58 = require("react");
32187
- var import_jsx_runtime87 = require("react/jsx-runtime");
32317
+ var import_jsx_runtime88 = require("react/jsx-runtime");
32188
32318
  var FloatTimeField = (props) => {
32189
32319
  const {
32190
32320
  name: name2,
@@ -32200,9 +32330,9 @@ var FloatTimeField = (props) => {
32200
32330
  const { t: t3 } = useI18n();
32201
32331
  if (!isForm) {
32202
32332
  const formatValue = value ?? 0;
32203
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: convertFloatToTime(formatValue) });
32333
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { children: convertFloatToTime(formatValue) });
32204
32334
  }
32205
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
32335
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
32206
32336
  Controller,
32207
32337
  {
32208
32338
  name: name2 ?? "",
@@ -32264,8 +32394,8 @@ var FloatTimeField = (props) => {
32264
32394
  }
32265
32395
  onBlur();
32266
32396
  };
32267
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
32268
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
32397
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
32398
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
32269
32399
  "input",
32270
32400
  {
32271
32401
  type: "text",
@@ -32297,7 +32427,7 @@ var FloatTimeField = (props) => {
32297
32427
  readOnly: readonly
32298
32428
  }
32299
32429
  ),
32300
- (error2 || errors) && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32430
+ (error2 || errors) && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32301
32431
  ] });
32302
32432
  }
32303
32433
  }
@@ -32306,7 +32436,7 @@ var FloatTimeField = (props) => {
32306
32436
 
32307
32437
  // src/widgets/basic/html-field/html.tsx
32308
32438
  var import_react59 = require("react");
32309
- var import_jsx_runtime88 = require("react/jsx-runtime");
32439
+ var import_jsx_runtime89 = require("react/jsx-runtime");
32310
32440
  var HtmlField = (props) => {
32311
32441
  const {
32312
32442
  name: name2,
@@ -32320,9 +32450,9 @@ var HtmlField = (props) => {
32320
32450
  } = props;
32321
32451
  const divRef = (0, import_react59.useRef)(null);
32322
32452
  if (!isForm && !isEditTable) {
32323
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32453
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32324
32454
  }
32325
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
32455
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
32326
32456
  Controller,
32327
32457
  {
32328
32458
  name: name2 ?? "",
@@ -32341,7 +32471,7 @@ var HtmlField = (props) => {
32341
32471
  onChange2(newValue, "");
32342
32472
  }
32343
32473
  };
32344
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
32474
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
32345
32475
  "div",
32346
32476
  {
32347
32477
  ref: divRef,
@@ -32360,28 +32490,28 @@ var HtmlField = (props) => {
32360
32490
  };
32361
32491
 
32362
32492
  // src/widgets/basic/image-field/image.tsx
32363
- var import_jsx_runtime89 = require("react/jsx-runtime");
32493
+ var import_jsx_runtime90 = require("react/jsx-runtime");
32364
32494
  var ImageField = (props) => {
32365
32495
  const { value, type, name: name2, baseURL } = props;
32366
32496
  if (!value) return null;
32367
32497
  if (type === "url") {
32368
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32498
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32369
32499
  }
32370
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { id: "qr-code", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32500
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { id: "qr-code", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32371
32501
  };
32372
32502
 
32373
32503
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32374
32504
  var import_react60 = __toESM(require("react"));
32375
32505
 
32376
32506
  // src/widgets/basic/information-field/information.tsx
32377
- var import_jsx_runtime90 = require("react/jsx-runtime");
32507
+ var import_jsx_runtime91 = require("react/jsx-runtime");
32378
32508
  var InfomationField = (props) => {
32379
32509
  const { value, isForm = false, showName = true, stringToColor } = props;
32380
32510
  if (!value || Array.isArray(value) && value.length === 0) {
32381
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_jsx_runtime90.Fragment, {});
32511
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_jsx_runtime91.Fragment, {});
32382
32512
  }
32383
32513
  const inforValues = Array.isArray(value) ? value : [value];
32384
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
32514
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32385
32515
  AvatarField,
32386
32516
  {
32387
32517
  id: item.id,
@@ -32390,8 +32520,8 @@ var InfomationField = (props) => {
32390
32520
  stringToColor
32391
32521
  },
32392
32522
  item.id
32393
- )) : /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex gap-2 items-center w-max", children: [
32394
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
32523
+ )) : /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex gap-2 items-center w-max", children: [
32524
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32395
32525
  AvatarField,
32396
32526
  {
32397
32527
  avatarSrc: inforValues[0].image_256,
@@ -32401,12 +32531,12 @@ var InfomationField = (props) => {
32401
32531
  stringToColor
32402
32532
  }
32403
32533
  ),
32404
- showName && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "capitalize", children: inforValues[0].display_name })
32534
+ showName && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "capitalize", children: inforValues[0].display_name })
32405
32535
  ] }) });
32406
32536
  };
32407
32537
 
32408
32538
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32409
- var import_jsx_runtime91 = require("react/jsx-runtime");
32539
+ var import_jsx_runtime92 = require("react/jsx-runtime");
32410
32540
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32411
32541
  const { selectProps, data, menuList } = props;
32412
32542
  const { relation } = selectProps;
@@ -32415,8 +32545,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32415
32545
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32416
32546
  )
32417
32547
  )?.[0]?.action?.id;
32418
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32419
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32548
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32549
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32420
32550
  AvatarField,
32421
32551
  {
32422
32552
  id: data?.id,
@@ -32428,8 +32558,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32428
32558
  stringToColor
32429
32559
  }
32430
32560
  ),
32431
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32432
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32561
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32562
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32433
32563
  "span",
32434
32564
  {
32435
32565
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32437,7 +32567,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32437
32567
  e3.stopPropagation();
32438
32568
  props.removeProps.onClick();
32439
32569
  },
32440
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(CloseIcon, {})
32570
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CloseIcon, {})
32441
32571
  }
32442
32572
  )
32443
32573
  ] });
@@ -32447,9 +32577,9 @@ var CustomMenuList = (props) => {
32447
32577
  const { setIsShowModalMany2Many, searchable } = selectProps;
32448
32578
  const { t: t3 } = useI18n();
32449
32579
  const limitedChildren = import_react60.default.Children.toArray(children).slice(0, 10);
32450
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
32580
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
32451
32581
  limitedChildren,
32452
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
32582
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
32453
32583
  "button",
32454
32584
  {
32455
32585
  type: "button",
@@ -32494,7 +32624,7 @@ var Many2ManyTagField = (props) => {
32494
32624
  value: item.id,
32495
32625
  label: item.name ?? item.display_name
32496
32626
  })) : [];
32497
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32627
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32498
32628
  InfomationField,
32499
32629
  {
32500
32630
  value: optionValue || null,
@@ -32503,7 +32633,7 @@ var Many2ManyTagField = (props) => {
32503
32633
  }
32504
32634
  );
32505
32635
  }
32506
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32636
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32507
32637
  Controller,
32508
32638
  {
32509
32639
  name: name2 ?? "",
@@ -32539,8 +32669,8 @@ var Many2ManyTagField = (props) => {
32539
32669
  onChange2?.(name2 ?? "", newValue);
32540
32670
  clearErrors(name2);
32541
32671
  };
32542
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "group h-full overflow-y-auto", children: [
32543
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32672
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "group h-full overflow-y-auto", children: [
32673
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32544
32674
  StateManagedSelect$1,
32545
32675
  {
32546
32676
  options: options2,
@@ -32618,7 +32748,7 @@ var Many2ManyTagField = (props) => {
32618
32748
  })
32619
32749
  },
32620
32750
  components: isUser ? {
32621
- MultiValue: (multiValueProps) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32751
+ MultiValue: (multiValueProps) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32622
32752
  CustomMultiValue,
32623
32753
  {
32624
32754
  ...multiValueProps,
@@ -32627,7 +32757,7 @@ var Many2ManyTagField = (props) => {
32627
32757
  ),
32628
32758
  IndicatorSeparator: () => null
32629
32759
  } : {
32630
- MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32760
+ MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32631
32761
  CustomMenuList,
32632
32762
  {
32633
32763
  ...menuListProps,
@@ -32638,13 +32768,13 @@ var Many2ManyTagField = (props) => {
32638
32768
  }
32639
32769
  ),
32640
32770
  IndicatorSeparator: () => null,
32641
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(components.DropdownIndicator, { ...props2 }),
32642
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(components.ClearIndicator, { ...props2 })
32771
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(components.DropdownIndicator, { ...props2 }),
32772
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(components.ClearIndicator, { ...props2 })
32643
32773
  },
32644
32774
  required: !invisible && required
32645
32775
  }
32646
32776
  ),
32647
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32777
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32648
32778
  ] });
32649
32779
  }
32650
32780
  }
@@ -32653,7 +32783,7 @@ var Many2ManyTagField = (props) => {
32653
32783
 
32654
32784
  // src/widgets/basic/monetary-field/monetary.tsx
32655
32785
  var import_react61 = require("react");
32656
- var import_jsx_runtime92 = require("react/jsx-runtime");
32786
+ var import_jsx_runtime93 = require("react/jsx-runtime");
32657
32787
  var MonetaryField = (props) => {
32658
32788
  const { t: t3 } = useI18n();
32659
32789
  const {
@@ -32673,26 +32803,26 @@ var MonetaryField = (props) => {
32673
32803
  isEditTable
32674
32804
  } = props;
32675
32805
  if (isForm && name2 === "amount_residual") {
32676
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32677
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: "font-semibold", children: [
32806
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32807
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "font-semibold", children: [
32678
32808
  string,
32679
32809
  ":"
32680
32810
  ] }),
32681
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32811
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32682
32812
  ] });
32683
32813
  }
32684
32814
  if (!isForm) {
32685
32815
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32686
32816
  if (widget === "monetary" && !formValues?.currency_id) {
32687
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: `${formatNumberOnly(
32817
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: `${formatNumberOnly(
32688
32818
  parseFloat(String(value ?? defaultValue))
32689
32819
  )} VND` });
32690
32820
  }
32691
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: `${formatNumberOnly(
32821
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: `${formatNumberOnly(
32692
32822
  parseFloat(value ?? defaultValue)
32693
32823
  )} ${currencySymbol}` });
32694
32824
  }
32695
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32825
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
32696
32826
  Controller,
32697
32827
  {
32698
32828
  name: name2 ?? "",
@@ -32711,8 +32841,8 @@ var MonetaryField = (props) => {
32711
32841
  clearErrors(name2);
32712
32842
  }
32713
32843
  }, [value2]);
32714
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
32715
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32844
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
32845
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
32716
32846
  "input",
32717
32847
  {
32718
32848
  value: formatNumberOnly(value2),
@@ -32750,7 +32880,7 @@ var MonetaryField = (props) => {
32750
32880
  `
32751
32881
  }
32752
32882
  ),
32753
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32883
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32754
32884
  ] });
32755
32885
  }
32756
32886
  }
@@ -32758,14 +32888,14 @@ var MonetaryField = (props) => {
32758
32888
  };
32759
32889
 
32760
32890
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32761
- var import_jsx_runtime93 = require("react/jsx-runtime");
32891
+ var import_jsx_runtime94 = require("react/jsx-runtime");
32762
32892
  var PaidBadgedField = () => {
32763
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(PaidIcon, {}) });
32893
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(PaidIcon, {}) });
32764
32894
  };
32765
32895
 
32766
32896
  // src/widgets/basic/priority-field/rating-star.tsx
32767
32897
  var import_react62 = __toESM(require("react"));
32768
- var import_jsx_runtime94 = require("react/jsx-runtime");
32898
+ var import_jsx_runtime95 = require("react/jsx-runtime");
32769
32899
  var RatingStarField = (props) => {
32770
32900
  const {
32771
32901
  label,
@@ -32800,7 +32930,7 @@ var RatingStarField = (props) => {
32800
32930
  setHover(0);
32801
32931
  setRating(0);
32802
32932
  };
32803
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32933
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32804
32934
  "div",
32805
32935
  {
32806
32936
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32810,17 +32940,17 @@ var RatingStarField = (props) => {
32810
32940
  const starValue = index4 + 1;
32811
32941
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32812
32942
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32813
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_react62.default.Fragment, { children: [
32814
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32943
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_react62.default.Fragment, { children: [
32944
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32815
32945
  "div",
32816
32946
  {
32817
32947
  onMouseEnter: () => handleHover(starValue),
32818
32948
  onClick: () => handleClick(starValue),
32819
32949
  "data-tooltip-id": `${id}-${starValue}`,
32820
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(StarIcon, { fill: fillColor, stroke: strokeColor })
32950
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(StarIcon, { fill: fillColor, stroke: strokeColor })
32821
32951
  }
32822
32952
  ),
32823
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32953
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32824
32954
  M,
32825
32955
  {
32826
32956
  className: "z-50",
@@ -32836,7 +32966,7 @@ var RatingStarField = (props) => {
32836
32966
  };
32837
32967
 
32838
32968
  // src/widgets/basic/priority-field/priority.tsx
32839
- var import_jsx_runtime95 = require("react/jsx-runtime");
32969
+ var import_jsx_runtime96 = require("react/jsx-runtime");
32840
32970
  var PriorityField = (props) => {
32841
32971
  const {
32842
32972
  isForm,
@@ -32852,7 +32982,7 @@ var PriorityField = (props) => {
32852
32982
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32853
32983
  const defaultPriority = parseInt(value) + 1;
32854
32984
  if (!isForm) {
32855
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32985
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32856
32986
  RatingStarField,
32857
32987
  {
32858
32988
  label,
@@ -32863,7 +32993,7 @@ var PriorityField = (props) => {
32863
32993
  }
32864
32994
  );
32865
32995
  }
32866
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32996
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32867
32997
  Controller,
32868
32998
  {
32869
32999
  name: name ?? "",
@@ -32873,7 +33003,7 @@ var PriorityField = (props) => {
32873
33003
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32874
33004
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32875
33005
  };
32876
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
33006
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32877
33007
  RatingStarField,
32878
33008
  {
32879
33009
  label,
@@ -32890,7 +33020,7 @@ var PriorityField = (props) => {
32890
33020
 
32891
33021
  // src/widgets/basic/radio-group-field/radio-group.tsx
32892
33022
  var import_react63 = require("react");
32893
- var import_jsx_runtime96 = require("react/jsx-runtime");
33023
+ var import_jsx_runtime97 = require("react/jsx-runtime");
32894
33024
  var RadioGroupField = (props) => {
32895
33025
  const {
32896
33026
  name: name2,
@@ -32909,13 +33039,13 @@ var RadioGroupField = (props) => {
32909
33039
  }
32910
33040
  }, [selection, name2, setValue]);
32911
33041
  if (!methods) return null;
32912
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
33042
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32913
33043
  Controller,
32914
33044
  {
32915
33045
  name: name2 ?? "",
32916
33046
  control: methods.control,
32917
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center gap-1", children: [
32918
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
33047
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-1", children: [
33048
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32919
33049
  "input",
32920
33050
  {
32921
33051
  type: "radio",
@@ -32934,7 +33064,7 @@ var RadioGroupField = (props) => {
32934
33064
  className: "custom-radio"
32935
33065
  }
32936
33066
  ),
32937
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("label", { htmlFor: String(select[0]), children: select[1] })
33067
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("label", { htmlFor: String(select[0]), children: select[1] })
32938
33068
  ] }, select[0])) })
32939
33069
  }
32940
33070
  );
@@ -32942,7 +33072,7 @@ var RadioGroupField = (props) => {
32942
33072
 
32943
33073
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32944
33074
  var import_moment3 = __toESM(require_moment());
32945
- var import_jsx_runtime97 = require("react/jsx-runtime");
33075
+ var import_jsx_runtime98 = require("react/jsx-runtime");
32946
33076
  var RemainingDaysField = (props) => {
32947
33077
  const {
32948
33078
  value,
@@ -32953,14 +33083,14 @@ var RemainingDaysField = (props) => {
32953
33083
  if (!value) return null;
32954
33084
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32955
33085
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32956
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: isForm ? "mb-4" : "", children: [
32957
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32958
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
33086
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: isForm ? "mb-4" : "", children: [
33087
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
33088
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32959
33089
  "div",
32960
33090
  {
32961
33091
  "data-tooltip-id": `remainingDays_${value}`,
32962
33092
  className: "flex items-center w-fit cursor-context-menu",
32963
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
33093
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32964
33094
  "div",
32965
33095
  {
32966
33096
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32973,7 +33103,7 @@ var RemainingDaysField = (props) => {
32973
33103
  };
32974
33104
 
32975
33105
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32976
- var import_jsx_runtime98 = require("react/jsx-runtime");
33106
+ var import_jsx_runtime99 = require("react/jsx-runtime");
32977
33107
  var SelectDropdownField = (props) => {
32978
33108
  const { t: t3 } = useI18n();
32979
33109
  const {
@@ -32995,9 +33125,9 @@ var SelectDropdownField = (props) => {
32995
33125
  label: val[1]
32996
33126
  })) : [];
32997
33127
  if (!isForm && !isEditTable) {
32998
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { children: options2?.find((item) => item?.value === value)?.label });
33128
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: options2?.find((item) => item?.value === value)?.label });
32999
33129
  } else {
33000
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
33130
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
33001
33131
  Controller,
33002
33132
  {
33003
33133
  name: name2 || "",
@@ -33024,8 +33154,8 @@ var SelectDropdownField = (props) => {
33024
33154
  value: defaultValue || null,
33025
33155
  required: !invisible && required
33026
33156
  };
33027
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
33028
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "group", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
33157
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
33158
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "group", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
33029
33159
  StateManagedSelect$1,
33030
33160
  {
33031
33161
  ...commonProps,
@@ -33080,12 +33210,12 @@ var SelectDropdownField = (props) => {
33080
33210
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
33081
33211
  components: {
33082
33212
  IndicatorSeparator: () => null,
33083
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(components.DropdownIndicator, { ...props2 })
33213
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(components.DropdownIndicator, { ...props2 })
33084
33214
  },
33085
33215
  noOptionsMessage: () => t3("no-available")
33086
33216
  }
33087
33217
  ) }),
33088
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33218
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33089
33219
  ] });
33090
33220
  }
33091
33221
  }
@@ -33094,7 +33224,7 @@ var SelectDropdownField = (props) => {
33094
33224
  };
33095
33225
 
33096
33226
  // src/widgets/basic/textarea-field/textarea.tsx
33097
- var import_jsx_runtime99 = require("react/jsx-runtime");
33227
+ var import_jsx_runtime100 = require("react/jsx-runtime");
33098
33228
  var TextAreaField = (props) => {
33099
33229
  const {
33100
33230
  methods,
@@ -33118,9 +33248,9 @@ var TextAreaField = (props) => {
33118
33248
  }
33119
33249
  }) : {};
33120
33250
  if (!isForm) {
33121
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: value && typeof value === "object" ? value.display_name : value });
33251
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { children: value && typeof value === "object" ? value.display_name : value });
33122
33252
  }
33123
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
33253
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
33124
33254
  "textarea",
33125
33255
  {
33126
33256
  ...formProps,
@@ -33136,7 +33266,7 @@ var TextAreaField = (props) => {
33136
33266
  };
33137
33267
 
33138
33268
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
33139
- var import_jsx_runtime100 = require("react/jsx-runtime");
33269
+ var import_jsx_runtime101 = require("react/jsx-runtime");
33140
33270
  var ToggleButtonField = (props) => {
33141
33271
  const {
33142
33272
  name: name2,
@@ -33146,13 +33276,13 @@ var ToggleButtonField = (props) => {
33146
33276
  onChange: onChange2,
33147
33277
  methods
33148
33278
  } = props;
33149
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
33279
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33150
33280
  Controller,
33151
33281
  {
33152
33282
  name: name2 ?? "",
33153
33283
  control: methods?.control,
33154
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "inline-flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33155
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
33284
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "inline-flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33285
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33156
33286
  "input",
33157
33287
  {
33158
33288
  ...field,
@@ -33171,7 +33301,7 @@ var ToggleButtonField = (props) => {
33171
33301
  checked: field.value ?? false
33172
33302
  }
33173
33303
  ),
33174
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
33304
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33175
33305
  "span",
33176
33306
  {
33177
33307
  style: {
@@ -33180,7 +33310,7 @@ var ToggleButtonField = (props) => {
33180
33310
  },
33181
33311
  className: `rounded-full transition duration-300
33182
33312
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
33183
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
33313
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33184
33314
  "span",
33185
33315
  {
33186
33316
  style: {
@@ -33205,7 +33335,7 @@ var ToggleButtonField = (props) => {
33205
33335
 
33206
33336
  // src/widgets/basic/integer-field/integer.tsx
33207
33337
  var import_react64 = require("react");
33208
- var import_jsx_runtime101 = require("react/jsx-runtime");
33338
+ var import_jsx_runtime102 = require("react/jsx-runtime");
33209
33339
  var IntegerField = (props) => {
33210
33340
  const {
33211
33341
  name: name2,
@@ -33224,9 +33354,9 @@ var IntegerField = (props) => {
33224
33354
  const { t: t3 } = useI18n();
33225
33355
  if (!isForm && !isEditTable) {
33226
33356
  const displayValue = value ?? defaultValue;
33227
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33357
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33228
33358
  }
33229
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33359
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33230
33360
  Controller,
33231
33361
  {
33232
33362
  name: name2 || "",
@@ -33304,8 +33434,8 @@ var IntegerField = (props) => {
33304
33434
  inputRef.current?.blur();
33305
33435
  clearErrors(name2);
33306
33436
  };
33307
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
33308
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33437
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_jsx_runtime102.Fragment, { children: [
33438
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33309
33439
  "input",
33310
33440
  {
33311
33441
  ref: inputRef,
@@ -33340,7 +33470,7 @@ var IntegerField = (props) => {
33340
33470
  `
33341
33471
  }
33342
33472
  ),
33343
- error2 && isEditTable && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33473
+ error2 && isEditTable && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33344
33474
  ] });
33345
33475
  }
33346
33476
  }
@@ -33348,7 +33478,7 @@ var IntegerField = (props) => {
33348
33478
  };
33349
33479
 
33350
33480
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33351
- var import_jsx_runtime102 = require("react/jsx-runtime");
33481
+ var import_jsx_runtime103 = require("react/jsx-runtime");
33352
33482
  var StatusDropdownField = (props) => {
33353
33483
  const {
33354
33484
  buttonRef,
@@ -33360,13 +33490,13 @@ var StatusDropdownField = (props) => {
33360
33490
  handleClick,
33361
33491
  colors: colors2
33362
33492
  } = props;
33363
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
33493
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33364
33494
  "div",
33365
33495
  {
33366
33496
  ref: buttonRef,
33367
33497
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
33368
33498
  children: [
33369
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33499
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33370
33500
  "button",
33371
33501
  {
33372
33502
  type: "button",
@@ -33374,23 +33504,23 @@ var StatusDropdownField = (props) => {
33374
33504
  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"}`
33375
33505
  }
33376
33506
  ),
33377
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
33507
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
33378
33508
  const isActive = item[0] == state;
33379
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
33509
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33380
33510
  "div",
33381
33511
  {
33382
33512
  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" : ""}`,
33383
33513
  onClick: () => handleClick(item[0]),
33384
33514
  children: [
33385
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CheckIcon, {}) }),
33386
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex items-center gap-2", children: [
33387
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33515
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(CheckIcon, {}) }),
33516
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex items-center gap-2", children: [
33517
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33388
33518
  "div",
33389
33519
  {
33390
33520
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33391
33521
  }
33392
33522
  ),
33393
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: "text-sm", children: item[1] })
33523
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "text-sm", children: item[1] })
33394
33524
  ] })
33395
33525
  ]
33396
33526
  },
@@ -33405,7 +33535,7 @@ var StatusDropdownField = (props) => {
33405
33535
  // src/widgets/basic/many2many-field/many2many.tsx
33406
33536
  var import_react_dom8 = require("react-dom");
33407
33537
  var import_react65 = require("react");
33408
- var import_jsx_runtime103 = require("react/jsx-runtime");
33538
+ var import_jsx_runtime104 = require("react/jsx-runtime");
33409
33539
  var Many2ManyField = (props) => {
33410
33540
  const { t: t3 } = useI18n();
33411
33541
  const {
@@ -33479,7 +33609,7 @@ var Many2ManyField = (props) => {
33479
33609
  };
33480
33610
  }, [selectedTags]);
33481
33611
  return (0, import_react_dom8.createPortal)(
33482
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33612
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
33483
33613
  "div",
33484
33614
  {
33485
33615
  style: {
@@ -33487,8 +33617,8 @@ var Many2ManyField = (props) => {
33487
33617
  },
33488
33618
  className: "fixed bottom-0 left-0 right-0 top-0",
33489
33619
  children: [
33490
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33491
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33620
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33621
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
33492
33622
  "div",
33493
33623
  {
33494
33624
  style: {
@@ -33496,12 +33626,12 @@ var Many2ManyField = (props) => {
33496
33626
  },
33497
33627
  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",
33498
33628
  children: [
33499
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33500
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "text-[20px] font-semibold", children: title }),
33501
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(CloseIcon, {}) })
33629
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33630
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "text-[20px] font-semibold", children: title }),
33631
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(CloseIcon, {}) })
33502
33632
  ] }),
33503
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33504
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33633
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33634
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33505
33635
  Search,
33506
33636
  {
33507
33637
  removeSearchItems,
@@ -33535,7 +33665,7 @@ var Many2ManyField = (props) => {
33535
33665
  groupByList
33536
33666
  }
33537
33667
  ) }),
33538
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33668
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33539
33669
  PaginationView,
33540
33670
  {
33541
33671
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33552,20 +33682,20 @@ var Many2ManyField = (props) => {
33552
33682
  }
33553
33683
  )
33554
33684
  ] }),
33555
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "relative h-full w-full", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33685
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "relative h-full w-full", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33556
33686
  "div",
33557
33687
  {
33558
33688
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33559
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33689
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33560
33690
  "div",
33561
33691
  {
33562
33692
  className: `flex w-full items-center h-full overflow-auto `,
33563
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33693
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
33564
33694
  "table",
33565
33695
  {
33566
33696
  className: `relative w-full bg-white custom-dropdown `,
33567
33697
  children: [
33568
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33698
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33569
33699
  TableHead,
33570
33700
  {
33571
33701
  columns,
@@ -33575,7 +33705,7 @@ var Many2ManyField = (props) => {
33575
33705
  handleCheckBoxAll
33576
33706
  }
33577
33707
  ),
33578
- rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33708
+ rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33579
33709
  TableBody,
33580
33710
  {
33581
33711
  tableGroupController,
@@ -33615,16 +33745,16 @@ var Many2ManyField = (props) => {
33615
33745
  checkedAll,
33616
33746
  context
33617
33747
  }
33618
- ) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33748
+ ) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33619
33749
  "td",
33620
33750
  {
33621
33751
  className: "w-full",
33622
33752
  colSpan: columns?.length + 2,
33623
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33753
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33624
33754
  "div",
33625
33755
  {
33626
33756
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33627
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(EmptyTable, {})
33757
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(EmptyTable, {})
33628
33758
  }
33629
33759
  )
33630
33760
  }
@@ -33635,9 +33765,9 @@ var Many2ManyField = (props) => {
33635
33765
  }
33636
33766
  ) }) })
33637
33767
  }
33638
- ) }) }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(LayerLoading, {}),
33639
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex items-center gap-2 mt-auto", children: [
33640
- isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33768
+ ) }) }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(LayerLoading, {}),
33769
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center gap-2 mt-auto", children: [
33770
+ isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33641
33771
  "button",
33642
33772
  {
33643
33773
  disabled: selectedRowKeys?.length === 0,
@@ -33647,7 +33777,7 @@ var Many2ManyField = (props) => {
33647
33777
  children: t3("choose")
33648
33778
  }
33649
33779
  ),
33650
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33780
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33651
33781
  "button",
33652
33782
  {
33653
33783
  type: "button",
@@ -33663,7 +33793,7 @@ var Many2ManyField = (props) => {
33663
33793
  children: t3("new")
33664
33794
  }
33665
33795
  ),
33666
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33796
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33667
33797
  "button",
33668
33798
  {
33669
33799
  type: "button",
@@ -33685,15 +33815,15 @@ var Many2ManyField = (props) => {
33685
33815
 
33686
33816
  // src/widgets/basic/many2one-field/many2one.tsx
33687
33817
  var import_react66 = __toESM(require("react"));
33688
- var import_jsx_runtime104 = require("react/jsx-runtime");
33818
+ var import_jsx_runtime105 = require("react/jsx-runtime");
33689
33819
  var CustomMenuList2 = (props) => {
33690
33820
  const { t: t3 } = useI18n();
33691
33821
  const { options: options2, children, selectProps } = props;
33692
33822
  const { setIsShowModalMany2Many, searchable } = selectProps;
33693
33823
  const limitedChildren = import_react66.default.Children.toArray(children).slice(0, 10);
33694
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
33824
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
33695
33825
  limitedChildren,
33696
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
33826
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
33697
33827
  "button",
33698
33828
  {
33699
33829
  type: "button",
@@ -33736,14 +33866,14 @@ var Many2OneField = (props) => {
33736
33866
  const { t: t3 } = useI18n();
33737
33867
  if (!isForm && !isEditTable) {
33738
33868
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33739
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
33869
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
33740
33870
  allowShowDetail && renderDetail({
33741
33871
  idToolTip: String(name2) + Number(index4),
33742
33872
  model: options2?.model ?? relation,
33743
33873
  context: contextObject,
33744
33874
  idForm: id
33745
33875
  }),
33746
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33876
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33747
33877
  "span",
33748
33878
  {
33749
33879
  className: "cursor-pointer",
@@ -33754,20 +33884,20 @@ var Many2OneField = (props) => {
33754
33884
  )
33755
33885
  ] });
33756
33886
  }
33757
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
33887
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
33758
33888
  allowShowDetail && renderDetail({
33759
33889
  idToolTip: String(name2),
33760
33890
  model: options2?.model ?? relation,
33761
33891
  context: contextObject,
33762
33892
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33763
33893
  }),
33764
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33894
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33765
33895
  "div",
33766
33896
  {
33767
33897
  id: name2,
33768
33898
  "data-tooltip-id": name2,
33769
33899
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33770
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33900
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33771
33901
  Controller,
33772
33902
  {
33773
33903
  name: name2 ?? "",
@@ -33792,8 +33922,8 @@ var Many2OneField = (props) => {
33792
33922
  methods?.clearErrors(name2);
33793
33923
  }
33794
33924
  }, [selectedOption]);
33795
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "h-full", children: [
33796
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33925
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "h-full", children: [
33926
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33797
33927
  StateManagedSelect$1,
33798
33928
  {
33799
33929
  menuShouldScrollIntoView: false,
@@ -33869,7 +33999,7 @@ var Many2OneField = (props) => {
33869
33999
  })
33870
34000
  },
33871
34001
  components: {
33872
- MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
34002
+ MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33873
34003
  CustomMenuList2,
33874
34004
  {
33875
34005
  ...menuListProps,
@@ -33880,13 +34010,13 @@ var Many2OneField = (props) => {
33880
34010
  }
33881
34011
  ),
33882
34012
  IndicatorSeparator: () => null,
33883
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(components.DropdownIndicator, { ...props2 })
34013
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(components.DropdownIndicator, { ...props2 })
33884
34014
  },
33885
34015
  isDisabled: readonly,
33886
34016
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33887
34017
  }
33888
34018
  ),
33889
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
34019
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33890
34020
  ] });
33891
34021
  }
33892
34022
  }
@@ -33897,7 +34027,7 @@ var Many2OneField = (props) => {
33897
34027
  };
33898
34028
 
33899
34029
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33900
- var import_jsx_runtime105 = require("react/jsx-runtime");
34030
+ var import_jsx_runtime106 = require("react/jsx-runtime");
33901
34031
  var StatusbarDurationField = (props) => {
33902
34032
  const {
33903
34033
  disabled,
@@ -33907,14 +34037,14 @@ var StatusbarDurationField = (props) => {
33907
34037
  defaultValue,
33908
34038
  setModalStatus
33909
34039
  } = props;
33910
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34040
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33911
34041
  "div",
33912
34042
  {
33913
34043
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33914
- children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center gap-[24px]", children: [
33915
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
34044
+ children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center gap-[24px]", children: [
34045
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33916
34046
  const value = option?.id === defaultValue;
33917
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
34047
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33918
34048
  "label",
33919
34049
  {
33920
34050
  onClick: () => !disabled && handleClick(option.id),
@@ -33924,7 +34054,7 @@ var StatusbarDurationField = (props) => {
33924
34054
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33925
34055
  `,
33926
34056
  children: [
33927
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34057
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33928
34058
  "input",
33929
34059
  {
33930
34060
  type: "radio",
@@ -33934,7 +34064,7 @@ var StatusbarDurationField = (props) => {
33934
34064
  }
33935
34065
  ),
33936
34066
  option?.name,
33937
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34067
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33938
34068
  "div",
33939
34069
  {
33940
34070
  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]
@@ -33949,14 +34079,14 @@ var StatusbarDurationField = (props) => {
33949
34079
  }) }),
33950
34080
  dataResponse?.records?.some(
33951
34081
  (item) => item?.fold && item.id !== defaultValue
33952
- ) && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
34082
+ ) && /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33953
34083
  "div",
33954
34084
  {
33955
34085
  onClick: () => setModalStatus(!modelStatus),
33956
34086
  className: "w-[24px] h-[24px] cursor-pointer relative",
33957
34087
  children: [
33958
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(MoreIcon, {}),
33959
- modelStatus && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34088
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(MoreIcon, {}),
34089
+ modelStatus && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33960
34090
  "div",
33961
34091
  {
33962
34092
  onClick: (e3) => e3.stopPropagation(),
@@ -33965,7 +34095,7 @@ var StatusbarDurationField = (props) => {
33965
34095
  (item) => item?.fold && item.id !== defaultValue
33966
34096
  )?.map((option) => {
33967
34097
  const value = option?.id === defaultValue;
33968
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34098
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33969
34099
  "div",
33970
34100
  {
33971
34101
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33987,14 +34117,14 @@ var StatusbarDurationField = (props) => {
33987
34117
 
33988
34118
  // src/widgets/basic/status-bar-field/option/option.tsx
33989
34119
  var import_react67 = require("react");
33990
- var import_jsx_runtime106 = require("react/jsx-runtime");
34120
+ var import_jsx_runtime107 = require("react/jsx-runtime");
33991
34121
  var StatusBarOptionField = (props) => {
33992
34122
  const { selection, defaultValue } = props;
33993
34123
  const memoizedStatusOptions = (0, import_react67.useMemo)(() => selection, [selection]);
33994
34124
  const indexInProgress = memoizedStatusOptions?.findIndex(
33995
34125
  (option) => option?.[0] === defaultValue
33996
34126
  );
33997
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34127
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33998
34128
  "div",
33999
34129
  {
34000
34130
  style: {
@@ -34003,8 +34133,8 @@ var StatusBarOptionField = (props) => {
34003
34133
  flexWrap: "wrap"
34004
34134
  },
34005
34135
  children: memoizedStatusOptions?.map((option, index4) => {
34006
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
34007
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
34136
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
34137
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
34008
34138
  "div",
34009
34139
  {
34010
34140
  style: {
@@ -34022,7 +34152,7 @@ var StatusBarOptionField = (props) => {
34022
34152
  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" : ""
34023
34153
  },
34024
34154
  children: [
34025
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34155
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34026
34156
  "span",
34027
34157
  {
34028
34158
  style: {
@@ -34034,10 +34164,10 @@ var StatusBarOptionField = (props) => {
34034
34164
  alignItems: "center",
34035
34165
  borderRadius: "100%"
34036
34166
  },
34037
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ICCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ICMinus, {})
34167
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ICCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ICMinus, {})
34038
34168
  }
34039
34169
  ),
34040
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34170
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34041
34171
  "span",
34042
34172
  {
34043
34173
  style: {
@@ -34050,7 +34180,7 @@ var StatusBarOptionField = (props) => {
34050
34180
  },
34051
34181
  option?.[0]
34052
34182
  ),
34053
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34183
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34054
34184
  "div",
34055
34185
  {
34056
34186
  style: {
@@ -34066,7 +34196,7 @@ var StatusBarOptionField = (props) => {
34066
34196
  );
34067
34197
  };
34068
34198
  var ICMinus = () => {
34069
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34199
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34070
34200
  "svg",
34071
34201
  {
34072
34202
  xmlns: "http://www.w3.org/2000/svg",
@@ -34074,7 +34204,7 @@ var ICMinus = () => {
34074
34204
  height: "16",
34075
34205
  viewBox: "0 0 16 16",
34076
34206
  fill: "none",
34077
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34207
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34078
34208
  "path",
34079
34209
  {
34080
34210
  d: "M4 8H12",
@@ -34088,7 +34218,7 @@ var ICMinus = () => {
34088
34218
  );
34089
34219
  };
34090
34220
  var ICCircle = () => {
34091
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34221
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34092
34222
  "svg",
34093
34223
  {
34094
34224
  xmlns: "http://www.w3.org/2000/svg",
@@ -34096,12 +34226,12 @@ var ICCircle = () => {
34096
34226
  height: "8",
34097
34227
  viewBox: "0 0 8 8",
34098
34228
  fill: "none",
34099
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
34229
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
34100
34230
  }
34101
34231
  );
34102
34232
  };
34103
34233
  var ICCheck = () => {
34104
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34234
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34105
34235
  "svg",
34106
34236
  {
34107
34237
  xmlns: "http://www.w3.org/2000/svg",
@@ -34109,7 +34239,7 @@ var ICCheck = () => {
34109
34239
  height: "16",
34110
34240
  viewBox: "0 0 16 16",
34111
34241
  fill: "none",
34112
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34242
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34113
34243
  "path",
34114
34244
  {
34115
34245
  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",
@@ -34123,7 +34253,7 @@ var ICCheck = () => {
34123
34253
  };
34124
34254
 
34125
34255
  // src/widgets/basic/date-option-field/date-option.tsx
34126
- var import_jsx_runtime107 = require("react/jsx-runtime");
34256
+ var import_jsx_runtime108 = require("react/jsx-runtime");
34127
34257
  var DateOptionField = (props) => {
34128
34258
  const {
34129
34259
  name: name2,
@@ -34134,19 +34264,19 @@ var DateOptionField = (props) => {
34134
34264
  string,
34135
34265
  onChange: onChange2
34136
34266
  } = props;
34137
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34267
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
34138
34268
  Controller,
34139
34269
  {
34140
34270
  name: name2 ?? "",
34141
34271
  control: methods?.control,
34142
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
34272
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
34143
34273
  "label",
34144
34274
  {
34145
34275
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34146
34276
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34147
34277
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34148
34278
  children: [
34149
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34279
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
34150
34280
  "input",
34151
34281
  {
34152
34282
  type: "checkbox",
@@ -34220,6 +34350,7 @@ var DateOptionField = (props) => {
34220
34350
  HtmlField,
34221
34351
  I18nProvider,
34222
34352
  ImageField,
34353
+ ImageIcon,
34223
34354
  InfomationField,
34224
34355
  IntegerField,
34225
34356
  KanbanIcon,