@fctc/sme-widget-ui 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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,32 +16562,57 @@ 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");
16571
+ var import_jsx_runtime69 = require("react/jsx-runtime");
16519
16572
  var ImageItem = ({
16520
16573
  filename,
16521
16574
  checksum,
16522
16575
  index: index4,
16523
16576
  src = null,
16524
- useGetImage
16577
+ useGetImage,
16578
+ size: size4,
16579
+ id,
16580
+ envFile,
16581
+ accessToken
16525
16582
  }) => {
16526
16583
  const { data: image } = useGetImage({
16527
16584
  data: { filename, checksum },
16528
16585
  queryKey: [`get-image-${""}`],
16529
16586
  src
16530
16587
  });
16531
- 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)(
16532
16589
  "img",
16533
16590
  {
16534
16591
  src: image || src,
16535
16592
  alt: filename,
16536
16593
  className: "w-32 h-32 object-cover rounded-md cursor-pointer"
16537
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
+ ]
16615
+ }
16538
16616
  ) }, index4);
16539
16617
  };
16540
16618
  var FileItem = (props) => {
@@ -16546,37 +16624,57 @@ var FileItem = (props) => {
16546
16624
  src,
16547
16625
  mimetype,
16548
16626
  size: size4,
16549
- useGetImage
16627
+ useGetImage,
16628
+ id,
16629
+ envFile,
16630
+ accessToken
16550
16631
  } = props;
16551
16632
  const fileTypeIcon = {
16552
- "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PdfIcon, {}),
16553
- "application/zip": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ZipIcon, {}),
16554
- "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ZipIcon, {}),
16555
- "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ExcelIcon, {}),
16556
- "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, {})
16557
16638
  };
16558
16639
  const renderFile = () => {
16559
16640
  if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
16560
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ImageItem, { ...props });
16641
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ImageItem, { ...props, useGetImage });
16561
16642
  } else if (mimetype?.includes("video")) {
16562
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(VideoPlayer, { ...props });
16643
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(VideoPlayer, { ...props });
16563
16644
  } else {
16564
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
16565
- fileTypeIcon[mimetype],
16566
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { children: [
16567
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16568
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-[12px]", children: formatFileSize(size4) })
16569
- ] })
16570
- ] });
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
+ );
16571
16669
  }
16572
16670
  };
16573
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
16671
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16574
16672
  "div",
16575
16673
  {
16576
16674
  className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
16577
16675
  children: [
16578
16676
  renderFile(),
16579
- handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16677
+ handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16580
16678
  "div",
16581
16679
  {
16582
16680
  style: {
@@ -16587,10 +16685,10 @@ var FileItem = (props) => {
16587
16685
  },
16588
16686
  onClick: () => handleRemoveFile(index4),
16589
16687
  className: "cursor-pointer p-2 hidden group-hover:block",
16590
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DeleteIcon, {})
16688
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DeleteIcon, {})
16591
16689
  }
16592
16690
  ),
16593
- !handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16691
+ !handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16594
16692
  "span",
16595
16693
  {
16596
16694
  style: {
@@ -16602,7 +16700,7 @@ var FileItem = (props) => {
16602
16700
  },
16603
16701
  onClick: (e3) => handleFileDownload(e3, src, filename),
16604
16702
  className: "hidden group-hover:block cursor-pointer p-2 text-white ",
16605
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DownloadIcon, {})
16703
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DownloadIcon, {})
16606
16704
  }
16607
16705
  )
16608
16706
  ]
@@ -16610,9 +16708,14 @@ var FileItem = (props) => {
16610
16708
  index4
16611
16709
  );
16612
16710
  };
16613
- var downloadFile = async (url, filename) => {
16711
+ var downloadFile = async (url, filename, accessToken) => {
16614
16712
  try {
16615
- 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);
16616
16719
  if (response.ok) {
16617
16720
  const blob = await response.blob();
16618
16721
  const urlBlob = window.URL.createObjectURL(blob);
@@ -16633,7 +16736,9 @@ var downloadFile = async (url, filename) => {
16633
16736
  var RenderFiles = ({
16634
16737
  selectedFiles,
16635
16738
  setSelectedFiles,
16636
- useGetImage
16739
+ useGetImage,
16740
+ envFile,
16741
+ accessToken
16637
16742
  }) => {
16638
16743
  const handleRemoveFile = (index4) => {
16639
16744
  if (setSelectedFiles) {
@@ -16645,19 +16750,21 @@ var RenderFiles = ({
16645
16750
  e3.stopPropagation();
16646
16751
  downloadFile(url, name2);
16647
16752
  };
16648
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16649
- 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)(
16650
16755
  FileItem,
16651
16756
  {
16652
16757
  ...file,
16653
16758
  src: file?.datas,
16654
- filename: file?.display_name ?? file?.name,
16759
+ filename: file?.display_name ?? file?.name ?? file?.filename,
16760
+ id: file?.id,
16655
16761
  index: index4,
16656
16762
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16657
16763
  handleFileDownload,
16658
- useGetImage
16659
- },
16660
- index4
16764
+ useGetImage,
16765
+ envFile,
16766
+ accessToken
16767
+ }
16661
16768
  ) }, file?.id ?? index4);
16662
16769
  }) });
16663
16770
  };
@@ -16848,7 +16955,7 @@ var po = $2(K("zoom"));
16848
16955
  var uo = $2(K("flip"));
16849
16956
 
16850
16957
  // src/widgets/common/select-files.tsx
16851
- var import_jsx_runtime69 = require("react/jsx-runtime");
16958
+ var import_jsx_runtime70 = require("react/jsx-runtime");
16852
16959
  var ButtonSelectFiles = ({
16853
16960
  fileInputRef,
16854
16961
  selectedFiles,
@@ -16951,8 +17058,8 @@ var ButtonSelectFiles = ({
16951
17058
  await handleUpload(formData, serivce, xNode);
16952
17059
  }
16953
17060
  };
16954
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
16955
- 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)(
16956
17063
  "button",
16957
17064
  {
16958
17065
  type: "button",
@@ -16960,12 +17067,12 @@ var ButtonSelectFiles = ({
16960
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"}`,
16961
17068
  onClick: () => fileInputRef.current.click(),
16962
17069
  children: [
16963
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(AttachIcon, {}),
16964
- /* @__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") })
16965
17072
  ]
16966
17073
  }
16967
17074
  ),
16968
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
17075
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16969
17076
  "input",
16970
17077
  {
16971
17078
  type: "file",
@@ -16980,7 +17087,7 @@ var ButtonSelectFiles = ({
16980
17087
  };
16981
17088
 
16982
17089
  // src/widgets/basic/avatar-field/avatar.tsx
16983
- var import_jsx_runtime70 = require("react/jsx-runtime");
17090
+ var import_jsx_runtime71 = require("react/jsx-runtime");
16984
17091
  var AvatarField = (props) => {
16985
17092
  const {
16986
17093
  isForm = false,
@@ -17004,8 +17111,8 @@ var AvatarField = (props) => {
17004
17111
  color: textColor,
17005
17112
  fontSize: `${size4 / 2.5}px`
17006
17113
  };
17007
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
17008
- 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)(
17009
17116
  ModalDetail,
17010
17117
  {
17011
17118
  idToolTip: `avatar-widget-id-${id}`,
@@ -17016,7 +17123,7 @@ var AvatarField = (props) => {
17016
17123
  place: "top-start"
17017
17124
  }
17018
17125
  ),
17019
- allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
17126
+ allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17020
17127
  M,
17021
17128
  {
17022
17129
  id: `avatar-widget-id-${id}`,
@@ -17025,7 +17132,7 @@ var AvatarField = (props) => {
17025
17132
  className: "z-20"
17026
17133
  }
17027
17134
  ),
17028
- avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
17135
+ avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17029
17136
  "img",
17030
17137
  {
17031
17138
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -17033,7 +17140,7 @@ var AvatarField = (props) => {
17033
17140
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
17034
17141
  alt: "Avatar"
17035
17142
  }
17036
- ) : /* @__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)(
17037
17144
  "div",
17038
17145
  {
17039
17146
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -17046,7 +17153,7 @@ var AvatarField = (props) => {
17046
17153
  };
17047
17154
 
17048
17155
  // src/widgets/basic/binary-field/binary.tsx
17049
- var import_jsx_runtime71 = require("react/jsx-runtime");
17156
+ var import_jsx_runtime72 = require("react/jsx-runtime");
17050
17157
  var BinaryField = (props) => {
17051
17158
  const {
17052
17159
  name: name2,
@@ -17069,7 +17176,7 @@ var BinaryField = (props) => {
17069
17176
  image
17070
17177
  } = props;
17071
17178
  const { t: t3 } = useI18n();
17072
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17179
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17073
17180
  Controller,
17074
17181
  {
17075
17182
  name: name2 ?? "",
@@ -17079,13 +17186,13 @@ var BinaryField = (props) => {
17079
17186
  },
17080
17187
  render: ({ field }) => {
17081
17188
  const renderImage = initialImage || selectedImage;
17082
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17189
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17083
17190
  "div",
17084
17191
  {
17085
17192
  ref: binaryRef,
17086
17193
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
17087
- children: renderImage ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "relative group", children: [
17088
- 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)(
17089
17196
  "img",
17090
17197
  {
17091
17198
  style: {
@@ -17096,7 +17203,7 @@ var BinaryField = (props) => {
17096
17203
  alt: "Selected",
17097
17204
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
17098
17205
  }
17099
- ) : renderImage ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17206
+ ) : renderImage ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17100
17207
  "img",
17101
17208
  {
17102
17209
  style: {
@@ -17107,17 +17214,17 @@ var BinaryField = (props) => {
17107
17214
  alt: "Selected",
17108
17215
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
17109
17216
  }
17110
- ) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(PlaceHolderIcon, {}),
17111
- !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)(
17112
17219
  "button",
17113
17220
  {
17114
17221
  type: "button",
17115
17222
  onClick: () => handleRemoveImage(field.onChange),
17116
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",
17117
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DeleteIcon, {})
17224
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(DeleteIcon, {})
17118
17225
  }
17119
17226
  )
17120
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
17227
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
17121
17228
  "label",
17122
17229
  {
17123
17230
  htmlFor: inputId,
@@ -17127,7 +17234,7 @@ var BinaryField = (props) => {
17127
17234
  },
17128
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"}`,
17129
17236
  children: [
17130
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17237
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17131
17238
  "input",
17132
17239
  {
17133
17240
  id: inputId,
@@ -17139,8 +17246,8 @@ var BinaryField = (props) => {
17139
17246
  className: "hidden z-10 relative"
17140
17247
  }
17141
17248
  ),
17142
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("img", { src: image, alt: "", className: "z-0 relative" }),
17143
- /* @__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)(
17144
17251
  "div",
17145
17252
  {
17146
17253
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -17149,7 +17256,7 @@ var BinaryField = (props) => {
17149
17256
  left: "-8px",
17150
17257
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
17151
17258
  },
17152
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17259
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17153
17260
  "svg",
17154
17261
  {
17155
17262
  xmlns: "http://www.w3.org/2000/svg",
@@ -17157,7 +17264,7 @@ var BinaryField = (props) => {
17157
17264
  height: "14",
17158
17265
  viewBox: "0 0 14 14",
17159
17266
  fill: "none",
17160
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
17267
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
17161
17268
  "path",
17162
17269
  {
17163
17270
  "fill-rule": "evenodd",
@@ -17181,7 +17288,7 @@ var BinaryField = (props) => {
17181
17288
  };
17182
17289
 
17183
17290
  // src/widgets/basic/button-badge-field/button-badge.tsx
17184
- var import_jsx_runtime72 = require("react/jsx-runtime");
17291
+ var import_jsx_runtime73 = require("react/jsx-runtime");
17185
17292
  var typeStyles = {
17186
17293
  primary: {
17187
17294
  backgroundColor: "#3b82f6",
@@ -17256,11 +17363,11 @@ var ButtonBadgeField = (props) => {
17256
17363
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
17257
17364
  };
17258
17365
  const label = getLabel(defaultValue ?? value);
17259
- 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;
17260
17367
  };
17261
17368
 
17262
17369
  // src/widgets/basic/button-field/button.tsx
17263
- var import_jsx_runtime73 = require("react/jsx-runtime");
17370
+ var import_jsx_runtime74 = require("react/jsx-runtime");
17264
17371
  var ButtonField = (props) => {
17265
17372
  const {
17266
17373
  func,
@@ -17271,7 +17378,7 @@ var ButtonField = (props) => {
17271
17378
  type = "submit"
17272
17379
  } = props;
17273
17380
  const { t: t3 } = useI18n();
17274
- 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)(
17275
17382
  "button",
17276
17383
  {
17277
17384
  type,
@@ -17280,7 +17387,7 @@ var ButtonField = (props) => {
17280
17387
  onClick: func,
17281
17388
  children: t3(content)
17282
17389
  }
17283
- ) : /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
17390
+ ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
17284
17391
  "button",
17285
17392
  {
17286
17393
  type,
@@ -17289,7 +17396,7 @@ var ButtonField = (props) => {
17289
17396
  children: [
17290
17397
  t3("loading"),
17291
17398
  " ",
17292
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LoadingIcon, {})
17399
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(LoadingIcon, {})
17293
17400
  ]
17294
17401
  }
17295
17402
  ) });
@@ -17297,7 +17404,7 @@ var ButtonField = (props) => {
17297
17404
 
17298
17405
  // src/widgets/basic/char-field/char.tsx
17299
17406
  var import_react39 = require("react");
17300
- var import_jsx_runtime74 = require("react/jsx-runtime");
17407
+ var import_jsx_runtime75 = require("react/jsx-runtime");
17301
17408
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
17302
17409
  var CharField = (props) => {
17303
17410
  const {
@@ -17325,9 +17432,9 @@ var CharField = (props) => {
17325
17432
  } = props;
17326
17433
  if (!isForm && !isEditTable) {
17327
17434
  const propValue = value || defaultValue;
17328
- 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 });
17329
17436
  }
17330
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17437
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17331
17438
  Controller,
17332
17439
  {
17333
17440
  name: name2 ?? "",
@@ -17381,8 +17488,8 @@ var CharField = (props) => {
17381
17488
  }
17382
17489
  return "";
17383
17490
  }, [widget, formValues]);
17384
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
17385
- /* @__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)(
17386
17493
  "input",
17387
17494
  {
17388
17495
  value: displayValue ?? "",
@@ -17443,7 +17550,7 @@ var CharField = (props) => {
17443
17550
  `
17444
17551
  }
17445
17552
  ),
17446
- 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 }) })
17447
17554
  ] });
17448
17555
  }
17449
17556
  }
@@ -17451,7 +17558,7 @@ var CharField = (props) => {
17451
17558
  };
17452
17559
 
17453
17560
  // src/widgets/basic/checkbox-field/checkbox.tsx
17454
- var import_jsx_runtime75 = require("react/jsx-runtime");
17561
+ var import_jsx_runtime76 = require("react/jsx-runtime");
17455
17562
  var CheckboxField = (props) => {
17456
17563
  const {
17457
17564
  name: name2,
@@ -17466,9 +17573,9 @@ var CheckboxField = (props) => {
17466
17573
  } = props;
17467
17574
  if (!isForm) {
17468
17575
  if (name2 === "is_active" || name2 === "active") {
17469
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ActiveBadgeField, { type: value });
17576
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ActiveBadgeField, { type: value });
17470
17577
  } else {
17471
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17578
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17472
17579
  "input",
17473
17580
  {
17474
17581
  type: "checkbox",
@@ -17479,12 +17586,12 @@ var CheckboxField = (props) => {
17479
17586
  );
17480
17587
  }
17481
17588
  }
17482
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17589
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17483
17590
  Controller,
17484
17591
  {
17485
17592
  name: name2 ?? "",
17486
17593
  control: methods?.control,
17487
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17594
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17488
17595
  "div",
17489
17596
  {
17490
17597
  className: "flex items-center gap-2",
@@ -17497,7 +17604,7 @@ var CheckboxField = (props) => {
17497
17604
  onChange2(name2 ?? "", checked);
17498
17605
  }
17499
17606
  },
17500
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17607
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17501
17608
  "input",
17502
17609
  {
17503
17610
  ...field,
@@ -17525,7 +17632,7 @@ var CheckboxField = (props) => {
17525
17632
 
17526
17633
  // src/widgets/basic/color-field/color-wrapper.tsx
17527
17634
  var import_react40 = require("react");
17528
- var import_jsx_runtime76 = require("react/jsx-runtime");
17635
+ var import_jsx_runtime77 = require("react/jsx-runtime");
17529
17636
  var ColorWrapper = (props) => {
17530
17637
  const {
17531
17638
  colors: colors2,
@@ -17552,8 +17659,8 @@ var ColorWrapper = (props) => {
17552
17659
  document.removeEventListener("mousedown", handleClickOutside);
17553
17660
  };
17554
17661
  }, []);
17555
- 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: [
17556
- /* @__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)(
17557
17664
  "button",
17558
17665
  {
17559
17666
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17567,7 +17674,7 @@ var ColorWrapper = (props) => {
17567
17674
  }
17568
17675
  }
17569
17676
  ),
17570
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17677
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17571
17678
  M,
17572
17679
  {
17573
17680
  className: "",
@@ -17576,8 +17683,8 @@ var ColorWrapper = (props) => {
17576
17683
  content: i18n_default.t(color?.name)
17577
17684
  }
17578
17685
  )
17579
- ] }, color?.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
17580
- /* @__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)(
17581
17688
  "button",
17582
17689
  {
17583
17690
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17590,7 +17697,7 @@ var ColorWrapper = (props) => {
17590
17697
  style: { backgroundColor: selectedColor?.color }
17591
17698
  }
17592
17699
  ),
17593
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17700
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17594
17701
  M,
17595
17702
  {
17596
17703
  place: "top",
@@ -17602,13 +17709,13 @@ var ColorWrapper = (props) => {
17602
17709
  };
17603
17710
 
17604
17711
  // src/widgets/basic/color-field/color.tsx
17605
- var import_jsx_runtime77 = require("react/jsx-runtime");
17712
+ var import_jsx_runtime78 = require("react/jsx-runtime");
17606
17713
  var ColorField = (props) => {
17607
17714
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17608
17715
  if (!isForm) {
17609
- 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 });
17610
17717
  }
17611
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17718
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17612
17719
  Controller,
17613
17720
  {
17614
17721
  name: name2 ?? "",
@@ -17618,7 +17725,7 @@ var ColorField = (props) => {
17618
17725
  field.onChange(color?.id);
17619
17726
  onChange2 && onChange2(name2 ?? "", color?.id);
17620
17727
  };
17621
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17728
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17622
17729
  ColorWrapper,
17623
17730
  {
17624
17731
  savePickColor: handlePickColorChange,
@@ -17633,7 +17740,7 @@ var ColorField = (props) => {
17633
17740
 
17634
17741
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17635
17742
  var import_react41 = require("react");
17636
- var import_jsx_runtime78 = require("react/jsx-runtime");
17743
+ var import_jsx_runtime79 = require("react/jsx-runtime");
17637
17744
  var CopyLinkButtonField = (props) => {
17638
17745
  const {
17639
17746
  isForm,
@@ -17652,9 +17759,9 @@ var CopyLinkButtonField = (props) => {
17652
17759
  } = props;
17653
17760
  const { t: t3 } = useI18n();
17654
17761
  if (!isForm) {
17655
- 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 });
17656
17763
  }
17657
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17764
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17658
17765
  Controller,
17659
17766
  {
17660
17767
  name: name2 ?? "",
@@ -17672,8 +17779,8 @@ var CopyLinkButtonField = (props) => {
17672
17779
  clearErrors(name2);
17673
17780
  }
17674
17781
  }, [value]);
17675
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "relative", children: [
17676
- /* @__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)(
17677
17784
  "div",
17678
17785
  {
17679
17786
  "aria-disabled": readonly,
@@ -17682,7 +17789,7 @@ var CopyLinkButtonField = (props) => {
17682
17789
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17683
17790
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17684
17791
  children: [
17685
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17792
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17686
17793
  "input",
17687
17794
  {
17688
17795
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17723,19 +17830,19 @@ var CopyLinkButtonField = (props) => {
17723
17830
  `
17724
17831
  }
17725
17832
  ),
17726
- readonly && value && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17833
+ readonly && value && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17727
17834
  "button",
17728
17835
  {
17729
17836
  className: "cursor-pointer",
17730
17837
  type: "button",
17731
17838
  onClick: () => handleCopyToClipboard(propValue),
17732
- 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, {})
17733
17840
  }
17734
17841
  )
17735
17842
  ]
17736
17843
  }
17737
17844
  ),
17738
- 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 })
17739
17846
  ] });
17740
17847
  }
17741
17848
  }
@@ -21676,7 +21783,7 @@ function useEffectEvent(callback) {
21676
21783
  }
21677
21784
 
21678
21785
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21679
- var import_jsx_runtime79 = require("react/jsx-runtime");
21786
+ var import_jsx_runtime80 = require("react/jsx-runtime");
21680
21787
  var ReactDOM2 = __toESM(require("react-dom"), 1);
21681
21788
 
21682
21789
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -22074,7 +22181,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
22074
22181
  bottom: isCustomShape ? "" : "rotate(180deg)",
22075
22182
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
22076
22183
  }[side];
22077
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("svg", {
22184
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("svg", {
22078
22185
  ...rest,
22079
22186
  "aria-hidden": true,
22080
22187
  ref,
@@ -22090,18 +22197,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
22090
22197
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
22091
22198
  ...restStyle
22092
22199
  },
22093
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", {
22200
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", {
22094
22201
  clipPath: "url(#" + clipPathId + ")",
22095
22202
  fill: "none",
22096
22203
  stroke,
22097
22204
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
22098
22205
  d: dValue
22099
- }), /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", {
22206
+ }), /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", {
22100
22207
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
22101
22208
  d: dValue
22102
- }), /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("clipPath", {
22209
+ }), /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("clipPath", {
22103
22210
  id: clipPathId,
22104
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("rect", {
22211
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("rect", {
22105
22212
  x: -halfStrokeWidth,
22106
22213
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
22107
22214
  width: width + computedStrokeWidth,
@@ -28034,7 +28141,7 @@ var Emotion$1 = Emotion;
28034
28141
  var React12 = __toESM(require("react"));
28035
28142
  var import_extends2 = __toESM(require_extends());
28036
28143
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
28037
- var jsx80 = function jsx81(type, props) {
28144
+ var jsx81 = function jsx82(type, props) {
28038
28145
  var args = arguments;
28039
28146
  if (props == null || !hasOwn.call(props, "css")) {
28040
28147
  return React12.createElement.apply(void 0, args);
@@ -28052,7 +28159,7 @@ var jsx80 = function jsx81(type, props) {
28052
28159
  var JSX;
28053
28160
  /* @__PURE__ */ (function(_JSX) {
28054
28161
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
28055
- })(jsx80 || (jsx80 = {}));
28162
+ })(jsx81 || (jsx81 = {}));
28056
28163
  function css() {
28057
28164
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
28058
28165
  args[_key] = arguments[_key];
@@ -28460,7 +28567,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28460
28567
  };
28461
28568
  var Menu = function Menu2(props) {
28462
28569
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28463
- return jsx80("div", _extends({}, getStyleProps(props, "menu", {
28570
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
28464
28571
  menu: true
28465
28572
  }), {
28466
28573
  ref: innerRef
@@ -28482,7 +28589,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28482
28589
  };
28483
28590
  var MenuList = function MenuList2(props) {
28484
28591
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28485
- return jsx80("div", _extends({}, getStyleProps(props, "menuList", {
28592
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
28486
28593
  "menu-list": true,
28487
28594
  "menu-list--is-multi": isMulti
28488
28595
  }), {
@@ -28502,7 +28609,7 @@ var noOptionsMessageCSS = noticeCSS;
28502
28609
  var loadingMessageCSS = noticeCSS;
28503
28610
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28504
28611
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28505
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28612
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28506
28613
  children,
28507
28614
  innerProps
28508
28615
  }), "noOptionsMessage", {
@@ -28512,7 +28619,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28512
28619
  };
28513
28620
  var LoadingMessage = function LoadingMessage2(_ref7) {
28514
28621
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28515
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28622
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28516
28623
  children,
28517
28624
  innerProps
28518
28625
  }), "loadingMessage", {
@@ -28575,7 +28682,7 @@ var MenuPortal = function MenuPortal2(props) {
28575
28682
  runAutoUpdate();
28576
28683
  }, [runAutoUpdate]);
28577
28684
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28578
- var menuWrapper = jsx80("div", _extends({
28685
+ var menuWrapper = jsx81("div", _extends({
28579
28686
  ref: setMenuPortalElement
28580
28687
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28581
28688
  offset: computedPosition.offset,
@@ -28584,7 +28691,7 @@ var MenuPortal = function MenuPortal2(props) {
28584
28691
  }), "menuPortal", {
28585
28692
  "menu-portal": true
28586
28693
  }), innerProps), children);
28587
- return jsx80(PortalPlacementContext.Provider, {
28694
+ return jsx81(PortalPlacementContext.Provider, {
28588
28695
  value: portalPlacementContext
28589
28696
  }, appendTo ? /* @__PURE__ */ (0, import_react_dom6.createPortal)(menuWrapper, appendTo) : menuWrapper);
28590
28697
  };
@@ -28600,7 +28707,7 @@ var containerCSS = function containerCSS2(_ref3) {
28600
28707
  };
28601
28708
  var SelectContainer = function SelectContainer2(props) {
28602
28709
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28603
- return jsx80("div", _extends({}, getStyleProps(props, "container", {
28710
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
28604
28711
  "--is-disabled": isDisabled,
28605
28712
  "--is-rtl": isRtl
28606
28713
  }), innerProps), children);
@@ -28621,7 +28728,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28621
28728
  };
28622
28729
  var ValueContainer = function ValueContainer2(props) {
28623
28730
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28624
- return jsx80("div", _extends({}, getStyleProps(props, "valueContainer", {
28731
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28625
28732
  "value-container": true,
28626
28733
  "value-container--is-multi": isMulti,
28627
28734
  "value-container--has-value": hasValue
@@ -28637,7 +28744,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28637
28744
  };
28638
28745
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28639
28746
  var children = props.children, innerProps = props.innerProps;
28640
- return jsx80("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28747
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28641
28748
  indicators: true
28642
28749
  }), innerProps), children);
28643
28750
  };
@@ -28658,7 +28765,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28658
28765
  };
28659
28766
  var Svg = function Svg2(_ref3) {
28660
28767
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28661
- return jsx80("svg", _extends({
28768
+ return jsx81("svg", _extends({
28662
28769
  height: size4,
28663
28770
  width: size4,
28664
28771
  viewBox: "0 0 20 20",
@@ -28668,16 +28775,16 @@ var Svg = function Svg2(_ref3) {
28668
28775
  }, props));
28669
28776
  };
28670
28777
  var CrossIcon = function CrossIcon2(props) {
28671
- return jsx80(Svg, _extends({
28778
+ return jsx81(Svg, _extends({
28672
28779
  size: 20
28673
- }, props), jsx80("path", {
28780
+ }, props), jsx81("path", {
28674
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"
28675
28782
  }));
28676
28783
  };
28677
28784
  var DownChevron = function DownChevron2(props) {
28678
- return jsx80(Svg, _extends({
28785
+ return jsx81(Svg, _extends({
28679
28786
  size: 20
28680
- }, props), jsx80("path", {
28787
+ }, props), jsx81("path", {
28681
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"
28682
28789
  }));
28683
28790
  };
@@ -28698,18 +28805,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28698
28805
  var dropdownIndicatorCSS = baseCSS;
28699
28806
  var DropdownIndicator = function DropdownIndicator2(props) {
28700
28807
  var children = props.children, innerProps = props.innerProps;
28701
- return jsx80("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28808
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28702
28809
  indicator: true,
28703
28810
  "dropdown-indicator": true
28704
- }), innerProps), children || jsx80(DownChevron, null));
28811
+ }), innerProps), children || jsx81(DownChevron, null));
28705
28812
  };
28706
28813
  var clearIndicatorCSS = baseCSS;
28707
28814
  var ClearIndicator = function ClearIndicator2(props) {
28708
28815
  var children = props.children, innerProps = props.innerProps;
28709
- return jsx80("div", _extends({}, getStyleProps(props, "clearIndicator", {
28816
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28710
28817
  indicator: true,
28711
28818
  "clear-indicator": true
28712
- }), innerProps), children || jsx80(CrossIcon, null));
28819
+ }), innerProps), children || jsx81(CrossIcon, null));
28713
28820
  };
28714
28821
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28715
28822
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28725,7 +28832,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28725
28832
  };
28726
28833
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28727
28834
  var innerProps = props.innerProps;
28728
- return jsx80("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28835
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28729
28836
  "indicator-separator": true
28730
28837
  })));
28731
28838
  };
@@ -28749,7 +28856,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28749
28856
  };
28750
28857
  var LoadingDot = function LoadingDot2(_ref6) {
28751
28858
  var delay = _ref6.delay, offset4 = _ref6.offset;
28752
- return jsx80("span", {
28859
+ return jsx81("span", {
28753
28860
  css: /* @__PURE__ */ css({
28754
28861
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28755
28862
  backgroundColor: "currentColor",
@@ -28764,20 +28871,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28764
28871
  };
28765
28872
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28766
28873
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28767
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28874
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28768
28875
  innerProps,
28769
28876
  isRtl,
28770
28877
  size: size4
28771
28878
  }), "loadingIndicator", {
28772
28879
  indicator: true,
28773
28880
  "loading-indicator": true
28774
- }), innerProps), jsx80(LoadingDot, {
28881
+ }), innerProps), jsx81(LoadingDot, {
28775
28882
  delay: 0,
28776
28883
  offset: isRtl
28777
- }), jsx80(LoadingDot, {
28884
+ }), jsx81(LoadingDot, {
28778
28885
  delay: 160,
28779
28886
  offset: true
28780
- }), jsx80(LoadingDot, {
28887
+ }), jsx81(LoadingDot, {
28781
28888
  delay: 320,
28782
28889
  offset: !isRtl
28783
28890
  }));
@@ -28809,7 +28916,7 @@ var css$1 = function css2(_ref3, unstyled) {
28809
28916
  };
28810
28917
  var Control = function Control2(props) {
28811
28918
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28812
- return jsx80("div", _extends({
28919
+ return jsx81("div", _extends({
28813
28920
  ref: innerRef
28814
28921
  }, getStyleProps(props, "control", {
28815
28922
  control: true,
@@ -28831,15 +28938,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28831
28938
  };
28832
28939
  var Group = function Group2(props) {
28833
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;
28834
- return jsx80("div", _extends({}, getStyleProps(props, "group", {
28941
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28835
28942
  group: true
28836
- }), innerProps), jsx80(Heading, _extends({}, headingProps, {
28943
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28837
28944
  selectProps,
28838
28945
  theme,
28839
28946
  getStyles,
28840
28947
  getClassNames,
28841
28948
  cx
28842
- }), label), jsx80("div", null, children));
28949
+ }), label), jsx81("div", null, children));
28843
28950
  };
28844
28951
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28845
28952
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28861,7 +28968,7 @@ var GroupHeading = function GroupHeading2(props) {
28861
28968
  var _cleanCommonProps = cleanCommonProps(props);
28862
28969
  _cleanCommonProps.data;
28863
28970
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28864
- return jsx80("div", _extends({}, getStyleProps(props, "groupHeading", {
28971
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28865
28972
  "group-heading": true
28866
28973
  }), innerProps));
28867
28974
  };
@@ -28913,11 +29020,11 @@ var inputStyle = function inputStyle2(isHidden) {
28913
29020
  var Input = function Input2(props) {
28914
29021
  var cx = props.cx, value = props.value;
28915
29022
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28916
- return jsx80("div", _extends({}, getStyleProps(props, "input", {
29023
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28917
29024
  "input-container": true
28918
29025
  }), {
28919
29026
  "data-value": value || ""
28920
- }), jsx80("input", _extends({
29027
+ }), jsx81("input", _extends({
28921
29028
  className: cx({
28922
29029
  input: true
28923
29030
  }, inputClassName),
@@ -28971,35 +29078,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28971
29078
  };
28972
29079
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28973
29080
  var children = _ref4.children, innerProps = _ref4.innerProps;
28974
- return jsx80("div", innerProps, children);
29081
+ return jsx81("div", innerProps, children);
28975
29082
  };
28976
29083
  var MultiValueContainer = MultiValueGeneric;
28977
29084
  var MultiValueLabel = MultiValueGeneric;
28978
29085
  function MultiValueRemove(_ref5) {
28979
29086
  var children = _ref5.children, innerProps = _ref5.innerProps;
28980
- return jsx80("div", _extends({
29087
+ return jsx81("div", _extends({
28981
29088
  role: "button"
28982
- }, innerProps), children || jsx80(CrossIcon, {
29089
+ }, innerProps), children || jsx81(CrossIcon, {
28983
29090
  size: 14
28984
29091
  }));
28985
29092
  }
28986
29093
  var MultiValue = function MultiValue2(props) {
28987
29094
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28988
29095
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28989
- return jsx80(Container, {
29096
+ return jsx81(Container, {
28990
29097
  data,
28991
29098
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28992
29099
  "multi-value": true,
28993
29100
  "multi-value--is-disabled": isDisabled
28994
29101
  })), innerProps),
28995
29102
  selectProps
28996
- }, jsx80(Label, {
29103
+ }, jsx81(Label, {
28997
29104
  data,
28998
29105
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28999
29106
  "multi-value__label": true
29000
29107
  })),
29001
29108
  selectProps
29002
- }, children), jsx80(Remove, {
29109
+ }, children), jsx81(Remove, {
29003
29110
  data,
29004
29111
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
29005
29112
  "multi-value__remove": true
@@ -29032,7 +29139,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
29032
29139
  };
29033
29140
  var Option = function Option2(props) {
29034
29141
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
29035
- return jsx80("div", _extends({}, getStyleProps(props, "option", {
29142
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
29036
29143
  option: true,
29037
29144
  "option--is-disabled": isDisabled,
29038
29145
  "option--is-focused": isFocused,
@@ -29056,7 +29163,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
29056
29163
  };
29057
29164
  var Placeholder = function Placeholder2(props) {
29058
29165
  var children = props.children, innerProps = props.innerProps;
29059
- return jsx80("div", _extends({}, getStyleProps(props, "placeholder", {
29166
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
29060
29167
  placeholder: true
29061
29168
  }), innerProps), children);
29062
29169
  };
@@ -29078,7 +29185,7 @@ var css3 = function css4(_ref3, unstyled) {
29078
29185
  };
29079
29186
  var SingleValue = function SingleValue2(props) {
29080
29187
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
29081
- return jsx80("div", _extends({}, getStyleProps(props, "singleValue", {
29188
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
29082
29189
  "single-value": true,
29083
29190
  "single-value--is-disabled": isDisabled
29084
29191
  }), innerProps), children);
@@ -29180,7 +29287,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
29180
29287
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
29181
29288
  };
29182
29289
  var A11yText = function A11yText2(props) {
29183
- return jsx80("span", _extends({
29290
+ return jsx81("span", _extends({
29184
29291
  css: _ref
29185
29292
  }, props));
29186
29293
  };
@@ -29315,18 +29422,18 @@ var LiveRegion = function LiveRegion2(props) {
29315
29422
  }
29316
29423
  return guidanceMsg;
29317
29424
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
29318
- var ScreenReaderText = jsx80(import_react51.Fragment, null, jsx80("span", {
29425
+ var ScreenReaderText = jsx81(import_react51.Fragment, null, jsx81("span", {
29319
29426
  id: "aria-selection"
29320
- }, ariaSelected), jsx80("span", {
29427
+ }, ariaSelected), jsx81("span", {
29321
29428
  id: "aria-focused"
29322
- }, ariaFocused), jsx80("span", {
29429
+ }, ariaFocused), jsx81("span", {
29323
29430
  id: "aria-results"
29324
- }, ariaResults), jsx80("span", {
29431
+ }, ariaResults), jsx81("span", {
29325
29432
  id: "aria-guidance"
29326
29433
  }, ariaGuidance));
29327
- return jsx80(import_react51.Fragment, null, jsx80(A11yText$1, {
29434
+ return jsx81(import_react51.Fragment, null, jsx81(A11yText$1, {
29328
29435
  id
29329
- }, isInitialFocus && ScreenReaderText), jsx80(A11yText$1, {
29436
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
29330
29437
  "aria-live": ariaLive,
29331
29438
  "aria-atomic": "false",
29332
29439
  "aria-relevant": "additions text",
@@ -29639,7 +29746,7 @@ var _excluded4 = ["innerRef"];
29639
29746
  function DummyInput(_ref3) {
29640
29747
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29641
29748
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29642
- return jsx80("input", _extends({
29749
+ return jsx81("input", _extends({
29643
29750
  ref: innerRef
29644
29751
  }, filteredProps, {
29645
29752
  css: /* @__PURE__ */ css({
@@ -29881,7 +29988,7 @@ function ScrollManager(_ref3) {
29881
29988
  setScrollCaptureTarget(element);
29882
29989
  setScrollLockTarget(element);
29883
29990
  };
29884
- return jsx80(import_react51.Fragment, null, lockEnabled && jsx80("div", {
29991
+ return jsx81(import_react51.Fragment, null, lockEnabled && jsx81("div", {
29885
29992
  onClick: blurSelectInput,
29886
29993
  css: _ref2$1
29887
29994
  }), children(targetRef));
@@ -29900,7 +30007,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29900
30007
  };
29901
30008
  var RequiredInput = function RequiredInput2(_ref3) {
29902
30009
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29903
- return jsx80("input", {
30010
+ return jsx81("input", {
29904
30011
  required: true,
29905
30012
  name: name2,
29906
30013
  tabIndex: -1,
@@ -31490,7 +31597,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31490
31597
 
31491
31598
  // src/widgets/basic/date-field/date.tsx
31492
31599
  var import_moment2 = __toESM(require_moment());
31493
- var import_jsx_runtime80 = require("react/jsx-runtime");
31600
+ var import_jsx_runtime81 = require("react/jsx-runtime");
31494
31601
  var DateField = (props) => {
31495
31602
  const {
31496
31603
  name: name2,
@@ -31518,8 +31625,8 @@ var DateField = (props) => {
31518
31625
  } = props;
31519
31626
  const { t: t3 } = useI18n();
31520
31627
  const InputDateCustom = (0, import_react54.forwardRef)(
31521
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("label", { className: `flex ${className}`, children: [
31522
- /* @__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)(
31523
31630
  "input",
31524
31631
  {
31525
31632
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31533,13 +31640,13 @@ var DateField = (props) => {
31533
31640
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31534
31641
  }
31535
31642
  ),
31536
- isForm2 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(CalendarIcon, {})
31643
+ isForm2 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(CalendarIcon, {})
31537
31644
  ] })
31538
31645
  );
31539
31646
  if (!isForm && !isEditTable) {
31540
- 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) : "" });
31541
31648
  } else {
31542
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31649
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31543
31650
  Controller,
31544
31651
  {
31545
31652
  name: name2 || "",
@@ -31561,8 +31668,8 @@ var DateField = (props) => {
31561
31668
  }
31562
31669
  }, [value, clearErrors, name2]);
31563
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;
31564
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
31565
- /* @__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)(
31566
31673
  DatePicker,
31567
31674
  {
31568
31675
  selected: selectedDate,
@@ -31610,7 +31717,7 @@ var DateField = (props) => {
31610
31717
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31611
31718
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31612
31719
  showTimeInput: showTime,
31613
- customInput: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31720
+ customInput: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31614
31721
  InputDateCustom,
31615
31722
  {
31616
31723
  isForm,
@@ -31628,7 +31735,7 @@ var DateField = (props) => {
31628
31735
  increaseMonth,
31629
31736
  prevMonthButtonDisabled,
31630
31737
  nextMonthButtonDisabled
31631
- }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
31738
+ }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
31632
31739
  "div",
31633
31740
  {
31634
31741
  style: {
@@ -31637,7 +31744,7 @@ var DateField = (props) => {
31637
31744
  justifyContent: "center"
31638
31745
  },
31639
31746
  children: [
31640
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31747
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31641
31748
  "button",
31642
31749
  {
31643
31750
  onClick: decreaseMonth,
@@ -31645,7 +31752,7 @@ var DateField = (props) => {
31645
31752
  children: "<"
31646
31753
  }
31647
31754
  ),
31648
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31755
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31649
31756
  StateManagedSelect$1,
31650
31757
  {
31651
31758
  classNames: {
@@ -31671,7 +31778,7 @@ var DateField = (props) => {
31671
31778
  autoFocus: true
31672
31779
  }
31673
31780
  ),
31674
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31781
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31675
31782
  StateManagedSelect$1,
31676
31783
  {
31677
31784
  classNames: {
@@ -31699,7 +31806,7 @@ var DateField = (props) => {
31699
31806
  }))
31700
31807
  }
31701
31808
  ),
31702
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31809
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31703
31810
  "button",
31704
31811
  {
31705
31812
  onClick: increaseMonth,
@@ -31712,7 +31819,7 @@ var DateField = (props) => {
31712
31819
  )
31713
31820
  }
31714
31821
  ),
31715
- !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 })
31716
31823
  ] });
31717
31824
  }
31718
31825
  }
@@ -31721,26 +31828,26 @@ var DateField = (props) => {
31721
31828
  };
31722
31829
 
31723
31830
  // src/widgets/basic/download-binary-field/download-binary.tsx
31724
- var import_jsx_runtime81 = require("react/jsx-runtime");
31831
+ var import_jsx_runtime82 = require("react/jsx-runtime");
31725
31832
  var DownLoadBinaryField = (props) => {
31726
31833
  const { handleFileDownload } = props;
31727
31834
  const { t: t3 } = useI18n();
31728
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
31835
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
31729
31836
  "button",
31730
31837
  {
31731
31838
  type: "button",
31732
31839
  onClick: handleFileDownload,
31733
31840
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31734
31841
  children: [
31735
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(DownloadIcon, {}),
31736
- /* @__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") })
31737
31844
  ]
31738
31845
  }
31739
31846
  );
31740
31847
  };
31741
31848
 
31742
31849
  // src/widgets/basic/download-file-field/download-file.tsx
31743
- var import_jsx_runtime82 = require("react/jsx-runtime");
31850
+ var import_jsx_runtime83 = require("react/jsx-runtime");
31744
31851
  var DownloadFileField = (props) => {
31745
31852
  const {
31746
31853
  readonly,
@@ -31752,15 +31859,15 @@ var DownloadFileField = (props) => {
31752
31859
  handleFileChange,
31753
31860
  handleFileDownload
31754
31861
  } = props;
31755
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "", children: [
31756
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
31862
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "", children: [
31863
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31757
31864
  "label",
31758
31865
  {
31759
31866
  htmlFor: inputId,
31760
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",
31761
31868
  children: [
31762
- 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" }),
31763
- /* @__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)(
31764
31871
  "input",
31765
31872
  {
31766
31873
  id: inputId,
@@ -31774,7 +31881,7 @@ var DownloadFileField = (props) => {
31774
31881
  ]
31775
31882
  }
31776
31883
  ),
31777
- file && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
31884
+ file && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31778
31885
  "button",
31779
31886
  {
31780
31887
  onClick: handleFileDownload,
@@ -31788,7 +31895,7 @@ var DownloadFileField = (props) => {
31788
31895
 
31789
31896
  // src/widgets/basic/dropdown-field/dropdown.tsx
31790
31897
  var import_react55 = require("react");
31791
- var import_jsx_runtime83 = require("react/jsx-runtime");
31898
+ var import_jsx_runtime84 = require("react/jsx-runtime");
31792
31899
  var DropdownField = (props) => {
31793
31900
  const {
31794
31901
  options: options2,
@@ -31802,30 +31909,30 @@ var DropdownField = (props) => {
31802
31909
  } = props;
31803
31910
  const [open, setOpen] = (0, import_react55.useState)(false);
31804
31911
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31805
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31912
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31806
31913
  "div",
31807
31914
  {
31808
31915
  ref: dropdownRef,
31809
31916
  className: `relative ${className}`,
31810
31917
  onClick: () => setOpen(!open),
31811
31918
  children: [
31812
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31919
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31813
31920
  "div",
31814
31921
  {
31815
31922
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31816
31923
  children: [
31817
31924
  selectedValue?.icon,
31818
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: selectedValue?.label }),
31819
- /* @__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" })
31820
31927
  ]
31821
31928
  }
31822
31929
  ),
31823
- open && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31930
+ open && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31824
31931
  "div",
31825
31932
  {
31826
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}`,
31827
31934
  onClick: (e3) => e3.stopPropagation(),
31828
- children: options2.map((option, index4) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31935
+ children: options2.map((option, index4) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31829
31936
  "div",
31830
31937
  {
31831
31938
  onClick: () => {
@@ -31845,7 +31952,7 @@ var DropdownField = (props) => {
31845
31952
  };
31846
31953
 
31847
31954
  // src/widgets/basic/fee-field/fee.tsx
31848
- var import_jsx_runtime84 = require("react/jsx-runtime");
31955
+ var import_jsx_runtime85 = require("react/jsx-runtime");
31849
31956
  var FeeField = (props) => {
31850
31957
  const { value, formValues } = props;
31851
31958
  const { t: t3 } = useI18n();
@@ -31856,27 +31963,27 @@ var FeeField = (props) => {
31856
31963
  )
31857
31964
  ) + " VND";
31858
31965
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31859
- 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: [
31860
31967
  value?.subtotals?.map((sub) => {
31861
31968
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31862
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
31863
- /* @__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: [
31864
- /* @__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: [
31865
31972
  sub?.name,
31866
31973
  ":"
31867
31974
  ] }),
31868
- /* @__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" })
31869
31976
  ] }),
31870
- sub?.tax_groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31977
+ sub?.tax_groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
31871
31978
  "div",
31872
31979
  {
31873
31980
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31874
31981
  children: [
31875
- /* @__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: [
31876
31983
  group?.group_name,
31877
31984
  ":"
31878
31985
  ] }),
31879
- /* @__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" })
31880
31987
  ]
31881
31988
  },
31882
31989
  `tax_groups_${group?.id}`
@@ -31884,33 +31991,33 @@ var FeeField = (props) => {
31884
31991
  ] });
31885
31992
  }
31886
31993
  }),
31887
- /* @__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: [
31888
- /* @__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: [
31889
31996
  t3("total"),
31890
31997
  ":"
31891
31998
  ] }),
31892
- /* @__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 })
31893
32000
  ] }),
31894
- /* @__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: [
31895
- /* @__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: [
31896
32003
  t3("paid_amount"),
31897
32004
  ":"
31898
32005
  ] }),
31899
- /* @__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 })
31900
32007
  ] }),
31901
- /* @__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: [
31902
- /* @__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: [
31903
32010
  t3("remanining_amount"),
31904
32011
  ":"
31905
32012
  ] }),
31906
- /* @__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 })
31907
32014
  ] })
31908
32015
  ] });
31909
32016
  };
31910
32017
 
31911
32018
  // src/widgets/basic/file-upload-field/file-upload.tsx
31912
32019
  var import_react56 = require("react");
31913
- var import_jsx_runtime85 = require("react/jsx-runtime");
32020
+ var import_jsx_runtime86 = require("react/jsx-runtime");
31914
32021
  var RenderFile = ({
31915
32022
  file,
31916
32023
  onDelete,
@@ -31920,16 +32027,16 @@ var RenderFile = ({
31920
32027
  readAs: "all"
31921
32028
  });
31922
32029
  const fileTypeIcon = {
31923
- "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(PdfIcon, {}),
31924
- "application/zip": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ZipIcon, {}),
31925
- "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ZipIcon, {}),
31926
- "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ExcelIcon, {}),
31927
- "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, {})
31928
32035
  };
31929
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31930
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31931
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { children: [
31932
- /* @__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)(
31933
32040
  "div",
31934
32041
  {
31935
32042
  style: {
@@ -31939,20 +32046,20 @@ var RenderFile = ({
31939
32046
  children: file?.name || file?.display_name || info?.name
31940
32047
  }
31941
32048
  ),
31942
- /* @__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) })
31943
32050
  ] }),
31944
- /* @__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: [
31945
- /* @__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)(
31946
32053
  "span",
31947
32054
  {
31948
32055
  onClick: () => onDownload && onDownload(
31949
32056
  file?.data,
31950
32057
  file?.name || file?.display_name || info?.name
31951
32058
  ),
31952
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DownloadIcon, {})
32059
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DownloadIcon, {})
31953
32060
  }
31954
32061
  ),
31955
- /* @__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, {}) })
31956
32063
  ] })
31957
32064
  ] });
31958
32065
  };
@@ -31986,7 +32093,7 @@ var FileUploadField = (props) => {
31986
32093
  ]);
31987
32094
  }
31988
32095
  }, [value]);
31989
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
32096
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31990
32097
  Controller,
31991
32098
  {
31992
32099
  name: name2 || "",
@@ -32011,8 +32118,8 @@ var FileUploadField = (props) => {
32011
32118
  );
32012
32119
  }
32013
32120
  }, [selectedFiles]);
32014
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "file-upload-field", children: [
32015
- 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)(
32016
32123
  RenderFile,
32017
32124
  {
32018
32125
  file: fileItem,
@@ -32027,8 +32134,8 @@ var FileUploadField = (props) => {
32027
32134
  }
32028
32135
  }
32029
32136
  )),
32030
- uploadError && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-[#de4747]", children: uploadError }),
32031
- (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)(
32032
32139
  ButtonSelectFiles,
32033
32140
  {
32034
32141
  fileInputRef,
@@ -32043,7 +32150,7 @@ var FileUploadField = (props) => {
32043
32150
  useUploadFile
32044
32151
  }
32045
32152
  ),
32046
- 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 })
32047
32154
  ] });
32048
32155
  }
32049
32156
  }
@@ -32052,7 +32159,7 @@ var FileUploadField = (props) => {
32052
32159
 
32053
32160
  // src/widgets/basic/float-field/float.tsx
32054
32161
  var import_react57 = require("react");
32055
- var import_jsx_runtime86 = require("react/jsx-runtime");
32162
+ var import_jsx_runtime87 = require("react/jsx-runtime");
32056
32163
  var FloatField = (props) => {
32057
32164
  const {
32058
32165
  name: name2,
@@ -32070,9 +32177,9 @@ var FloatField = (props) => {
32070
32177
  } = props;
32071
32178
  const { t: t3 } = useI18n();
32072
32179
  if (!isForm && !isEditTable) {
32073
- 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) });
32074
32181
  }
32075
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
32182
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
32076
32183
  Controller,
32077
32184
  {
32078
32185
  name: name2 ?? "",
@@ -32177,8 +32284,8 @@ var FloatField = (props) => {
32177
32284
  }
32178
32285
  isDirtyRef.current = false;
32179
32286
  };
32180
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
32181
- /* @__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)(
32182
32289
  "input",
32183
32290
  {
32184
32291
  ref: inputRef,
@@ -32198,7 +32305,7 @@ var FloatField = (props) => {
32198
32305
  `
32199
32306
  }
32200
32307
  ),
32201
- 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 })
32202
32309
  ] });
32203
32310
  }
32204
32311
  }
@@ -32207,7 +32314,7 @@ var FloatField = (props) => {
32207
32314
 
32208
32315
  // src/widgets/basic/float-time-field/float-time.tsx
32209
32316
  var import_react58 = require("react");
32210
- var import_jsx_runtime87 = require("react/jsx-runtime");
32317
+ var import_jsx_runtime88 = require("react/jsx-runtime");
32211
32318
  var FloatTimeField = (props) => {
32212
32319
  const {
32213
32320
  name: name2,
@@ -32223,9 +32330,9 @@ var FloatTimeField = (props) => {
32223
32330
  const { t: t3 } = useI18n();
32224
32331
  if (!isForm) {
32225
32332
  const formatValue = value ?? 0;
32226
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: convertFloatToTime(formatValue) });
32333
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { children: convertFloatToTime(formatValue) });
32227
32334
  }
32228
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
32335
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
32229
32336
  Controller,
32230
32337
  {
32231
32338
  name: name2 ?? "",
@@ -32287,8 +32394,8 @@ var FloatTimeField = (props) => {
32287
32394
  }
32288
32395
  onBlur();
32289
32396
  };
32290
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
32291
- /* @__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)(
32292
32399
  "input",
32293
32400
  {
32294
32401
  type: "text",
@@ -32320,7 +32427,7 @@ var FloatTimeField = (props) => {
32320
32427
  readOnly: readonly
32321
32428
  }
32322
32429
  ),
32323
- (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 })
32324
32431
  ] });
32325
32432
  }
32326
32433
  }
@@ -32329,7 +32436,7 @@ var FloatTimeField = (props) => {
32329
32436
 
32330
32437
  // src/widgets/basic/html-field/html.tsx
32331
32438
  var import_react59 = require("react");
32332
- var import_jsx_runtime88 = require("react/jsx-runtime");
32439
+ var import_jsx_runtime89 = require("react/jsx-runtime");
32333
32440
  var HtmlField = (props) => {
32334
32441
  const {
32335
32442
  name: name2,
@@ -32343,9 +32450,9 @@ var HtmlField = (props) => {
32343
32450
  } = props;
32344
32451
  const divRef = (0, import_react59.useRef)(null);
32345
32452
  if (!isForm && !isEditTable) {
32346
- 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 || "" } });
32347
32454
  }
32348
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
32455
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
32349
32456
  Controller,
32350
32457
  {
32351
32458
  name: name2 ?? "",
@@ -32364,7 +32471,7 @@ var HtmlField = (props) => {
32364
32471
  onChange2(newValue, "");
32365
32472
  }
32366
32473
  };
32367
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
32474
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
32368
32475
  "div",
32369
32476
  {
32370
32477
  ref: divRef,
@@ -32383,28 +32490,28 @@ var HtmlField = (props) => {
32383
32490
  };
32384
32491
 
32385
32492
  // src/widgets/basic/image-field/image.tsx
32386
- var import_jsx_runtime89 = require("react/jsx-runtime");
32493
+ var import_jsx_runtime90 = require("react/jsx-runtime");
32387
32494
  var ImageField = (props) => {
32388
32495
  const { value, type, name: name2, baseURL } = props;
32389
32496
  if (!value) return null;
32390
32497
  if (type === "url") {
32391
- 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 });
32392
32499
  }
32393
- 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" }) });
32394
32501
  };
32395
32502
 
32396
32503
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32397
32504
  var import_react60 = __toESM(require("react"));
32398
32505
 
32399
32506
  // src/widgets/basic/information-field/information.tsx
32400
- var import_jsx_runtime90 = require("react/jsx-runtime");
32507
+ var import_jsx_runtime91 = require("react/jsx-runtime");
32401
32508
  var InfomationField = (props) => {
32402
32509
  const { value, isForm = false, showName = true, stringToColor } = props;
32403
32510
  if (!value || Array.isArray(value) && value.length === 0) {
32404
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_jsx_runtime90.Fragment, {});
32511
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_jsx_runtime91.Fragment, {});
32405
32512
  }
32406
32513
  const inforValues = Array.isArray(value) ? value : [value];
32407
- 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)(
32408
32515
  AvatarField,
32409
32516
  {
32410
32517
  id: item.id,
@@ -32413,8 +32520,8 @@ var InfomationField = (props) => {
32413
32520
  stringToColor
32414
32521
  },
32415
32522
  item.id
32416
- )) : /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex gap-2 items-center w-max", children: [
32417
- /* @__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)(
32418
32525
  AvatarField,
32419
32526
  {
32420
32527
  avatarSrc: inforValues[0].image_256,
@@ -32424,12 +32531,12 @@ var InfomationField = (props) => {
32424
32531
  stringToColor
32425
32532
  }
32426
32533
  ),
32427
- 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 })
32428
32535
  ] }) });
32429
32536
  };
32430
32537
 
32431
32538
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32432
- var import_jsx_runtime91 = require("react/jsx-runtime");
32539
+ var import_jsx_runtime92 = require("react/jsx-runtime");
32433
32540
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32434
32541
  const { selectProps, data, menuList } = props;
32435
32542
  const { relation } = selectProps;
@@ -32438,8 +32545,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32438
32545
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32439
32546
  )
32440
32547
  )?.[0]?.action?.id;
32441
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32442
- /* @__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)(
32443
32550
  AvatarField,
32444
32551
  {
32445
32552
  id: data?.id,
@@ -32451,8 +32558,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32451
32558
  stringToColor
32452
32559
  }
32453
32560
  ),
32454
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32455
- /* @__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)(
32456
32563
  "span",
32457
32564
  {
32458
32565
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32460,7 +32567,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32460
32567
  e3.stopPropagation();
32461
32568
  props.removeProps.onClick();
32462
32569
  },
32463
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(CloseIcon, {})
32570
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CloseIcon, {})
32464
32571
  }
32465
32572
  )
32466
32573
  ] });
@@ -32470,9 +32577,9 @@ var CustomMenuList = (props) => {
32470
32577
  const { setIsShowModalMany2Many, searchable } = selectProps;
32471
32578
  const { t: t3 } = useI18n();
32472
32579
  const limitedChildren = import_react60.default.Children.toArray(children).slice(0, 10);
32473
- 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: [
32474
32581
  limitedChildren,
32475
- 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)(
32476
32583
  "button",
32477
32584
  {
32478
32585
  type: "button",
@@ -32517,7 +32624,7 @@ var Many2ManyTagField = (props) => {
32517
32624
  value: item.id,
32518
32625
  label: item.name ?? item.display_name
32519
32626
  })) : [];
32520
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32627
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32521
32628
  InfomationField,
32522
32629
  {
32523
32630
  value: optionValue || null,
@@ -32526,7 +32633,7 @@ var Many2ManyTagField = (props) => {
32526
32633
  }
32527
32634
  );
32528
32635
  }
32529
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32636
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32530
32637
  Controller,
32531
32638
  {
32532
32639
  name: name2 ?? "",
@@ -32562,8 +32669,8 @@ var Many2ManyTagField = (props) => {
32562
32669
  onChange2?.(name2 ?? "", newValue);
32563
32670
  clearErrors(name2);
32564
32671
  };
32565
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "group h-full overflow-y-auto", children: [
32566
- /* @__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)(
32567
32674
  StateManagedSelect$1,
32568
32675
  {
32569
32676
  options: options2,
@@ -32641,7 +32748,7 @@ var Many2ManyTagField = (props) => {
32641
32748
  })
32642
32749
  },
32643
32750
  components: isUser ? {
32644
- MultiValue: (multiValueProps) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32751
+ MultiValue: (multiValueProps) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32645
32752
  CustomMultiValue,
32646
32753
  {
32647
32754
  ...multiValueProps,
@@ -32650,7 +32757,7 @@ var Many2ManyTagField = (props) => {
32650
32757
  ),
32651
32758
  IndicatorSeparator: () => null
32652
32759
  } : {
32653
- MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32760
+ MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32654
32761
  CustomMenuList,
32655
32762
  {
32656
32763
  ...menuListProps,
@@ -32661,13 +32768,13 @@ var Many2ManyTagField = (props) => {
32661
32768
  }
32662
32769
  ),
32663
32770
  IndicatorSeparator: () => null,
32664
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(components.DropdownIndicator, { ...props2 }),
32665
- 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 })
32666
32773
  },
32667
32774
  required: !invisible && required
32668
32775
  }
32669
32776
  ),
32670
- !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 })
32671
32778
  ] });
32672
32779
  }
32673
32780
  }
@@ -32676,7 +32783,7 @@ var Many2ManyTagField = (props) => {
32676
32783
 
32677
32784
  // src/widgets/basic/monetary-field/monetary.tsx
32678
32785
  var import_react61 = require("react");
32679
- var import_jsx_runtime92 = require("react/jsx-runtime");
32786
+ var import_jsx_runtime93 = require("react/jsx-runtime");
32680
32787
  var MonetaryField = (props) => {
32681
32788
  const { t: t3 } = useI18n();
32682
32789
  const {
@@ -32696,26 +32803,26 @@ var MonetaryField = (props) => {
32696
32803
  isEditTable
32697
32804
  } = props;
32698
32805
  if (isForm && name2 === "amount_residual") {
32699
- 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: [
32700
- /* @__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: [
32701
32808
  string,
32702
32809
  ":"
32703
32810
  ] }),
32704
- /* @__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` })
32705
32812
  ] });
32706
32813
  }
32707
32814
  if (!isForm) {
32708
32815
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32709
32816
  if (widget === "monetary" && !formValues?.currency_id) {
32710
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: `${formatNumberOnly(
32817
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: `${formatNumberOnly(
32711
32818
  parseFloat(String(value ?? defaultValue))
32712
32819
  )} VND` });
32713
32820
  }
32714
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: `${formatNumberOnly(
32821
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: `${formatNumberOnly(
32715
32822
  parseFloat(value ?? defaultValue)
32716
32823
  )} ${currencySymbol}` });
32717
32824
  }
32718
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32825
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
32719
32826
  Controller,
32720
32827
  {
32721
32828
  name: name2 ?? "",
@@ -32734,8 +32841,8 @@ var MonetaryField = (props) => {
32734
32841
  clearErrors(name2);
32735
32842
  }
32736
32843
  }, [value2]);
32737
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
32738
- /* @__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)(
32739
32846
  "input",
32740
32847
  {
32741
32848
  value: formatNumberOnly(value2),
@@ -32773,7 +32880,7 @@ var MonetaryField = (props) => {
32773
32880
  `
32774
32881
  }
32775
32882
  ),
32776
- !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 })
32777
32884
  ] });
32778
32885
  }
32779
32886
  }
@@ -32781,14 +32888,14 @@ var MonetaryField = (props) => {
32781
32888
  };
32782
32889
 
32783
32890
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32784
- var import_jsx_runtime93 = require("react/jsx-runtime");
32891
+ var import_jsx_runtime94 = require("react/jsx-runtime");
32785
32892
  var PaidBadgedField = () => {
32786
- 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, {}) });
32787
32894
  };
32788
32895
 
32789
32896
  // src/widgets/basic/priority-field/rating-star.tsx
32790
32897
  var import_react62 = __toESM(require("react"));
32791
- var import_jsx_runtime94 = require("react/jsx-runtime");
32898
+ var import_jsx_runtime95 = require("react/jsx-runtime");
32792
32899
  var RatingStarField = (props) => {
32793
32900
  const {
32794
32901
  label,
@@ -32823,7 +32930,7 @@ var RatingStarField = (props) => {
32823
32930
  setHover(0);
32824
32931
  setRating(0);
32825
32932
  };
32826
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32933
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32827
32934
  "div",
32828
32935
  {
32829
32936
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32833,17 +32940,17 @@ var RatingStarField = (props) => {
32833
32940
  const starValue = index4 + 1;
32834
32941
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32835
32942
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32836
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_react62.default.Fragment, { children: [
32837
- /* @__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)(
32838
32945
  "div",
32839
32946
  {
32840
32947
  onMouseEnter: () => handleHover(starValue),
32841
32948
  onClick: () => handleClick(starValue),
32842
32949
  "data-tooltip-id": `${id}-${starValue}`,
32843
- 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 })
32844
32951
  }
32845
32952
  ),
32846
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32953
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32847
32954
  M,
32848
32955
  {
32849
32956
  className: "z-50",
@@ -32859,7 +32966,7 @@ var RatingStarField = (props) => {
32859
32966
  };
32860
32967
 
32861
32968
  // src/widgets/basic/priority-field/priority.tsx
32862
- var import_jsx_runtime95 = require("react/jsx-runtime");
32969
+ var import_jsx_runtime96 = require("react/jsx-runtime");
32863
32970
  var PriorityField = (props) => {
32864
32971
  const {
32865
32972
  isForm,
@@ -32875,7 +32982,7 @@ var PriorityField = (props) => {
32875
32982
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32876
32983
  const defaultPriority = parseInt(value) + 1;
32877
32984
  if (!isForm) {
32878
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32985
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32879
32986
  RatingStarField,
32880
32987
  {
32881
32988
  label,
@@ -32886,7 +32993,7 @@ var PriorityField = (props) => {
32886
32993
  }
32887
32994
  );
32888
32995
  }
32889
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32996
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32890
32997
  Controller,
32891
32998
  {
32892
32999
  name: name ?? "",
@@ -32896,7 +33003,7 @@ var PriorityField = (props) => {
32896
33003
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32897
33004
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32898
33005
  };
32899
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
33006
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32900
33007
  RatingStarField,
32901
33008
  {
32902
33009
  label,
@@ -32913,7 +33020,7 @@ var PriorityField = (props) => {
32913
33020
 
32914
33021
  // src/widgets/basic/radio-group-field/radio-group.tsx
32915
33022
  var import_react63 = require("react");
32916
- var import_jsx_runtime96 = require("react/jsx-runtime");
33023
+ var import_jsx_runtime97 = require("react/jsx-runtime");
32917
33024
  var RadioGroupField = (props) => {
32918
33025
  const {
32919
33026
  name: name2,
@@ -32932,13 +33039,13 @@ var RadioGroupField = (props) => {
32932
33039
  }
32933
33040
  }, [selection, name2, setValue]);
32934
33041
  if (!methods) return null;
32935
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
33042
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32936
33043
  Controller,
32937
33044
  {
32938
33045
  name: name2 ?? "",
32939
33046
  control: methods.control,
32940
- 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: [
32941
- /* @__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)(
32942
33049
  "input",
32943
33050
  {
32944
33051
  type: "radio",
@@ -32957,7 +33064,7 @@ var RadioGroupField = (props) => {
32957
33064
  className: "custom-radio"
32958
33065
  }
32959
33066
  ),
32960
- /* @__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] })
32961
33068
  ] }, select[0])) })
32962
33069
  }
32963
33070
  );
@@ -32965,7 +33072,7 @@ var RadioGroupField = (props) => {
32965
33072
 
32966
33073
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32967
33074
  var import_moment3 = __toESM(require_moment());
32968
- var import_jsx_runtime97 = require("react/jsx-runtime");
33075
+ var import_jsx_runtime98 = require("react/jsx-runtime");
32969
33076
  var RemainingDaysField = (props) => {
32970
33077
  const {
32971
33078
  value,
@@ -32976,14 +33083,14 @@ var RemainingDaysField = (props) => {
32976
33083
  if (!value) return null;
32977
33084
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32978
33085
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32979
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: isForm ? "mb-4" : "", children: [
32980
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32981
- /* @__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)(
32982
33089
  "div",
32983
33090
  {
32984
33091
  "data-tooltip-id": `remainingDays_${value}`,
32985
33092
  className: "flex items-center w-fit cursor-context-menu",
32986
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
33093
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32987
33094
  "div",
32988
33095
  {
32989
33096
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32996,7 +33103,7 @@ var RemainingDaysField = (props) => {
32996
33103
  };
32997
33104
 
32998
33105
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32999
- var import_jsx_runtime98 = require("react/jsx-runtime");
33106
+ var import_jsx_runtime99 = require("react/jsx-runtime");
33000
33107
  var SelectDropdownField = (props) => {
33001
33108
  const { t: t3 } = useI18n();
33002
33109
  const {
@@ -33018,9 +33125,9 @@ var SelectDropdownField = (props) => {
33018
33125
  label: val[1]
33019
33126
  })) : [];
33020
33127
  if (!isForm && !isEditTable) {
33021
- 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 });
33022
33129
  } else {
33023
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
33130
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
33024
33131
  Controller,
33025
33132
  {
33026
33133
  name: name2 || "",
@@ -33047,8 +33154,8 @@ var SelectDropdownField = (props) => {
33047
33154
  value: defaultValue || null,
33048
33155
  required: !invisible && required
33049
33156
  };
33050
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
33051
- /* @__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)(
33052
33159
  StateManagedSelect$1,
33053
33160
  {
33054
33161
  ...commonProps,
@@ -33103,12 +33210,12 @@ var SelectDropdownField = (props) => {
33103
33210
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
33104
33211
  components: {
33105
33212
  IndicatorSeparator: () => null,
33106
- 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 })
33107
33214
  },
33108
33215
  noOptionsMessage: () => t3("no-available")
33109
33216
  }
33110
33217
  ) }),
33111
- !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 })
33112
33219
  ] });
33113
33220
  }
33114
33221
  }
@@ -33117,7 +33224,7 @@ var SelectDropdownField = (props) => {
33117
33224
  };
33118
33225
 
33119
33226
  // src/widgets/basic/textarea-field/textarea.tsx
33120
- var import_jsx_runtime99 = require("react/jsx-runtime");
33227
+ var import_jsx_runtime100 = require("react/jsx-runtime");
33121
33228
  var TextAreaField = (props) => {
33122
33229
  const {
33123
33230
  methods,
@@ -33141,9 +33248,9 @@ var TextAreaField = (props) => {
33141
33248
  }
33142
33249
  }) : {};
33143
33250
  if (!isForm) {
33144
- 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 });
33145
33252
  }
33146
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
33253
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
33147
33254
  "textarea",
33148
33255
  {
33149
33256
  ...formProps,
@@ -33159,7 +33266,7 @@ var TextAreaField = (props) => {
33159
33266
  };
33160
33267
 
33161
33268
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
33162
- var import_jsx_runtime100 = require("react/jsx-runtime");
33269
+ var import_jsx_runtime101 = require("react/jsx-runtime");
33163
33270
  var ToggleButtonField = (props) => {
33164
33271
  const {
33165
33272
  name: name2,
@@ -33169,13 +33276,13 @@ var ToggleButtonField = (props) => {
33169
33276
  onChange: onChange2,
33170
33277
  methods
33171
33278
  } = props;
33172
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
33279
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33173
33280
  Controller,
33174
33281
  {
33175
33282
  name: name2 ?? "",
33176
33283
  control: methods?.control,
33177
- 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: [
33178
- /* @__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)(
33179
33286
  "input",
33180
33287
  {
33181
33288
  ...field,
@@ -33194,7 +33301,7 @@ var ToggleButtonField = (props) => {
33194
33301
  checked: field.value ?? false
33195
33302
  }
33196
33303
  ),
33197
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
33304
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33198
33305
  "span",
33199
33306
  {
33200
33307
  style: {
@@ -33203,7 +33310,7 @@ var ToggleButtonField = (props) => {
33203
33310
  },
33204
33311
  className: `rounded-full transition duration-300
33205
33312
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
33206
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
33313
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33207
33314
  "span",
33208
33315
  {
33209
33316
  style: {
@@ -33228,7 +33335,7 @@ var ToggleButtonField = (props) => {
33228
33335
 
33229
33336
  // src/widgets/basic/integer-field/integer.tsx
33230
33337
  var import_react64 = require("react");
33231
- var import_jsx_runtime101 = require("react/jsx-runtime");
33338
+ var import_jsx_runtime102 = require("react/jsx-runtime");
33232
33339
  var IntegerField = (props) => {
33233
33340
  const {
33234
33341
  name: name2,
@@ -33247,9 +33354,9 @@ var IntegerField = (props) => {
33247
33354
  const { t: t3 } = useI18n();
33248
33355
  if (!isForm && !isEditTable) {
33249
33356
  const displayValue = value ?? defaultValue;
33250
- 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) });
33251
33358
  }
33252
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33359
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33253
33360
  Controller,
33254
33361
  {
33255
33362
  name: name2 || "",
@@ -33327,8 +33434,8 @@ var IntegerField = (props) => {
33327
33434
  inputRef.current?.blur();
33328
33435
  clearErrors(name2);
33329
33436
  };
33330
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
33331
- /* @__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)(
33332
33439
  "input",
33333
33440
  {
33334
33441
  ref: inputRef,
@@ -33363,7 +33470,7 @@ var IntegerField = (props) => {
33363
33470
  `
33364
33471
  }
33365
33472
  ),
33366
- 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 })
33367
33474
  ] });
33368
33475
  }
33369
33476
  }
@@ -33371,7 +33478,7 @@ var IntegerField = (props) => {
33371
33478
  };
33372
33479
 
33373
33480
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33374
- var import_jsx_runtime102 = require("react/jsx-runtime");
33481
+ var import_jsx_runtime103 = require("react/jsx-runtime");
33375
33482
  var StatusDropdownField = (props) => {
33376
33483
  const {
33377
33484
  buttonRef,
@@ -33383,13 +33490,13 @@ var StatusDropdownField = (props) => {
33383
33490
  handleClick,
33384
33491
  colors: colors2
33385
33492
  } = props;
33386
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
33493
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33387
33494
  "div",
33388
33495
  {
33389
33496
  ref: buttonRef,
33390
33497
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
33391
33498
  children: [
33392
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
33499
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33393
33500
  "button",
33394
33501
  {
33395
33502
  type: "button",
@@ -33397,23 +33504,23 @@ var StatusDropdownField = (props) => {
33397
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"}`
33398
33505
  }
33399
33506
  ),
33400
- 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) => {
33401
33508
  const isActive = item[0] == state;
33402
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
33509
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33403
33510
  "div",
33404
33511
  {
33405
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" : ""}`,
33406
33513
  onClick: () => handleClick(item[0]),
33407
33514
  children: [
33408
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CheckIcon, {}) }),
33409
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex items-center gap-2", children: [
33410
- /* @__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)(
33411
33518
  "div",
33412
33519
  {
33413
33520
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33414
33521
  }
33415
33522
  ),
33416
- /* @__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] })
33417
33524
  ] })
33418
33525
  ]
33419
33526
  },
@@ -33428,7 +33535,7 @@ var StatusDropdownField = (props) => {
33428
33535
  // src/widgets/basic/many2many-field/many2many.tsx
33429
33536
  var import_react_dom8 = require("react-dom");
33430
33537
  var import_react65 = require("react");
33431
- var import_jsx_runtime103 = require("react/jsx-runtime");
33538
+ var import_jsx_runtime104 = require("react/jsx-runtime");
33432
33539
  var Many2ManyField = (props) => {
33433
33540
  const { t: t3 } = useI18n();
33434
33541
  const {
@@ -33502,7 +33609,7 @@ var Many2ManyField = (props) => {
33502
33609
  };
33503
33610
  }, [selectedTags]);
33504
33611
  return (0, import_react_dom8.createPortal)(
33505
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33612
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
33506
33613
  "div",
33507
33614
  {
33508
33615
  style: {
@@ -33510,8 +33617,8 @@ var Many2ManyField = (props) => {
33510
33617
  },
33511
33618
  className: "fixed bottom-0 left-0 right-0 top-0",
33512
33619
  children: [
33513
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33514
- /* @__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)(
33515
33622
  "div",
33516
33623
  {
33517
33624
  style: {
@@ -33519,12 +33626,12 @@ var Many2ManyField = (props) => {
33519
33626
  },
33520
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",
33521
33628
  children: [
33522
- /* @__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: [
33523
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "text-[20px] font-semibold", children: title }),
33524
- /* @__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, {}) })
33525
33632
  ] }),
33526
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33527
- /* @__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)(
33528
33635
  Search,
33529
33636
  {
33530
33637
  removeSearchItems,
@@ -33558,7 +33665,7 @@ var Many2ManyField = (props) => {
33558
33665
  groupByList
33559
33666
  }
33560
33667
  ) }),
33561
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33668
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33562
33669
  PaginationView,
33563
33670
  {
33564
33671
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33575,20 +33682,20 @@ var Many2ManyField = (props) => {
33575
33682
  }
33576
33683
  )
33577
33684
  ] }),
33578
- !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)(
33579
33686
  "div",
33580
33687
  {
33581
33688
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33582
- 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)(
33583
33690
  "div",
33584
33691
  {
33585
33692
  className: `flex w-full items-center h-full overflow-auto `,
33586
- 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)(
33587
33694
  "table",
33588
33695
  {
33589
33696
  className: `relative w-full bg-white custom-dropdown `,
33590
33697
  children: [
33591
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33698
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33592
33699
  TableHead,
33593
33700
  {
33594
33701
  columns,
@@ -33598,7 +33705,7 @@ var Many2ManyField = (props) => {
33598
33705
  handleCheckBoxAll
33599
33706
  }
33600
33707
  ),
33601
- rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33708
+ rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33602
33709
  TableBody,
33603
33710
  {
33604
33711
  tableGroupController,
@@ -33638,16 +33745,16 @@ var Many2ManyField = (props) => {
33638
33745
  checkedAll,
33639
33746
  context
33640
33747
  }
33641
- ) : /* @__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)(
33642
33749
  "td",
33643
33750
  {
33644
33751
  className: "w-full",
33645
33752
  colSpan: columns?.length + 2,
33646
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33753
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33647
33754
  "div",
33648
33755
  {
33649
33756
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33650
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(EmptyTable, {})
33757
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(EmptyTable, {})
33651
33758
  }
33652
33759
  )
33653
33760
  }
@@ -33658,9 +33765,9 @@ var Many2ManyField = (props) => {
33658
33765
  }
33659
33766
  ) }) })
33660
33767
  }
33661
- ) }) }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(LayerLoading, {}),
33662
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex items-center gap-2 mt-auto", children: [
33663
- 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)(
33664
33771
  "button",
33665
33772
  {
33666
33773
  disabled: selectedRowKeys?.length === 0,
@@ -33670,7 +33777,7 @@ var Many2ManyField = (props) => {
33670
33777
  children: t3("choose")
33671
33778
  }
33672
33779
  ),
33673
- 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)(
33674
33781
  "button",
33675
33782
  {
33676
33783
  type: "button",
@@ -33686,7 +33793,7 @@ var Many2ManyField = (props) => {
33686
33793
  children: t3("new")
33687
33794
  }
33688
33795
  ),
33689
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33796
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33690
33797
  "button",
33691
33798
  {
33692
33799
  type: "button",
@@ -33708,15 +33815,15 @@ var Many2ManyField = (props) => {
33708
33815
 
33709
33816
  // src/widgets/basic/many2one-field/many2one.tsx
33710
33817
  var import_react66 = __toESM(require("react"));
33711
- var import_jsx_runtime104 = require("react/jsx-runtime");
33818
+ var import_jsx_runtime105 = require("react/jsx-runtime");
33712
33819
  var CustomMenuList2 = (props) => {
33713
33820
  const { t: t3 } = useI18n();
33714
33821
  const { options: options2, children, selectProps } = props;
33715
33822
  const { setIsShowModalMany2Many, searchable } = selectProps;
33716
33823
  const limitedChildren = import_react66.default.Children.toArray(children).slice(0, 10);
33717
- 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: [
33718
33825
  limitedChildren,
33719
- 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)(
33720
33827
  "button",
33721
33828
  {
33722
33829
  type: "button",
@@ -33759,14 +33866,14 @@ var Many2OneField = (props) => {
33759
33866
  const { t: t3 } = useI18n();
33760
33867
  if (!isForm && !isEditTable) {
33761
33868
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33762
- 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: [
33763
33870
  allowShowDetail && renderDetail({
33764
33871
  idToolTip: String(name2) + Number(index4),
33765
33872
  model: options2?.model ?? relation,
33766
33873
  context: contextObject,
33767
33874
  idForm: id
33768
33875
  }),
33769
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33876
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33770
33877
  "span",
33771
33878
  {
33772
33879
  className: "cursor-pointer",
@@ -33777,20 +33884,20 @@ var Many2OneField = (props) => {
33777
33884
  )
33778
33885
  ] });
33779
33886
  }
33780
- 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: [
33781
33888
  allowShowDetail && renderDetail({
33782
33889
  idToolTip: String(name2),
33783
33890
  model: options2?.model ?? relation,
33784
33891
  context: contextObject,
33785
33892
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33786
33893
  }),
33787
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33894
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33788
33895
  "div",
33789
33896
  {
33790
33897
  id: name2,
33791
33898
  "data-tooltip-id": name2,
33792
33899
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33793
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33900
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33794
33901
  Controller,
33795
33902
  {
33796
33903
  name: name2 ?? "",
@@ -33815,8 +33922,8 @@ var Many2OneField = (props) => {
33815
33922
  methods?.clearErrors(name2);
33816
33923
  }
33817
33924
  }, [selectedOption]);
33818
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "h-full", children: [
33819
- /* @__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)(
33820
33927
  StateManagedSelect$1,
33821
33928
  {
33822
33929
  menuShouldScrollIntoView: false,
@@ -33892,7 +33999,7 @@ var Many2OneField = (props) => {
33892
33999
  })
33893
34000
  },
33894
34001
  components: {
33895
- MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
34002
+ MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33896
34003
  CustomMenuList2,
33897
34004
  {
33898
34005
  ...menuListProps,
@@ -33903,13 +34010,13 @@ var Many2OneField = (props) => {
33903
34010
  }
33904
34011
  ),
33905
34012
  IndicatorSeparator: () => null,
33906
- 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 })
33907
34014
  },
33908
34015
  isDisabled: readonly,
33909
34016
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33910
34017
  }
33911
34018
  ),
33912
- !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 })
33913
34020
  ] });
33914
34021
  }
33915
34022
  }
@@ -33920,7 +34027,7 @@ var Many2OneField = (props) => {
33920
34027
  };
33921
34028
 
33922
34029
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33923
- var import_jsx_runtime105 = require("react/jsx-runtime");
34030
+ var import_jsx_runtime106 = require("react/jsx-runtime");
33924
34031
  var StatusbarDurationField = (props) => {
33925
34032
  const {
33926
34033
  disabled,
@@ -33930,14 +34037,14 @@ var StatusbarDurationField = (props) => {
33930
34037
  defaultValue,
33931
34038
  setModalStatus
33932
34039
  } = props;
33933
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34040
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33934
34041
  "div",
33935
34042
  {
33936
34043
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33937
- children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center gap-[24px]", children: [
33938
- /* @__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) => {
33939
34046
  const value = option?.id === defaultValue;
33940
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
34047
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33941
34048
  "label",
33942
34049
  {
33943
34050
  onClick: () => !disabled && handleClick(option.id),
@@ -33947,7 +34054,7 @@ var StatusbarDurationField = (props) => {
33947
34054
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33948
34055
  `,
33949
34056
  children: [
33950
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34057
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33951
34058
  "input",
33952
34059
  {
33953
34060
  type: "radio",
@@ -33957,7 +34064,7 @@ var StatusbarDurationField = (props) => {
33957
34064
  }
33958
34065
  ),
33959
34066
  option?.name,
33960
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34067
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33961
34068
  "div",
33962
34069
  {
33963
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]
@@ -33972,14 +34079,14 @@ var StatusbarDurationField = (props) => {
33972
34079
  }) }),
33973
34080
  dataResponse?.records?.some(
33974
34081
  (item) => item?.fold && item.id !== defaultValue
33975
- ) && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
34082
+ ) && /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33976
34083
  "div",
33977
34084
  {
33978
34085
  onClick: () => setModalStatus(!modelStatus),
33979
34086
  className: "w-[24px] h-[24px] cursor-pointer relative",
33980
34087
  children: [
33981
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(MoreIcon, {}),
33982
- modelStatus && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34088
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(MoreIcon, {}),
34089
+ modelStatus && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33983
34090
  "div",
33984
34091
  {
33985
34092
  onClick: (e3) => e3.stopPropagation(),
@@ -33988,7 +34095,7 @@ var StatusbarDurationField = (props) => {
33988
34095
  (item) => item?.fold && item.id !== defaultValue
33989
34096
  )?.map((option) => {
33990
34097
  const value = option?.id === defaultValue;
33991
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
34098
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33992
34099
  "div",
33993
34100
  {
33994
34101
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -34010,14 +34117,14 @@ var StatusbarDurationField = (props) => {
34010
34117
 
34011
34118
  // src/widgets/basic/status-bar-field/option/option.tsx
34012
34119
  var import_react67 = require("react");
34013
- var import_jsx_runtime106 = require("react/jsx-runtime");
34120
+ var import_jsx_runtime107 = require("react/jsx-runtime");
34014
34121
  var StatusBarOptionField = (props) => {
34015
34122
  const { selection, defaultValue } = props;
34016
34123
  const memoizedStatusOptions = (0, import_react67.useMemo)(() => selection, [selection]);
34017
34124
  const indexInProgress = memoizedStatusOptions?.findIndex(
34018
34125
  (option) => option?.[0] === defaultValue
34019
34126
  );
34020
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34127
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34021
34128
  "div",
34022
34129
  {
34023
34130
  style: {
@@ -34026,8 +34133,8 @@ var StatusBarOptionField = (props) => {
34026
34133
  flexWrap: "wrap"
34027
34134
  },
34028
34135
  children: memoizedStatusOptions?.map((option, index4) => {
34029
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
34030
- /* @__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)(
34031
34138
  "div",
34032
34139
  {
34033
34140
  style: {
@@ -34045,7 +34152,7 @@ var StatusBarOptionField = (props) => {
34045
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" : ""
34046
34153
  },
34047
34154
  children: [
34048
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34155
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34049
34156
  "span",
34050
34157
  {
34051
34158
  style: {
@@ -34057,10 +34164,10 @@ var StatusBarOptionField = (props) => {
34057
34164
  alignItems: "center",
34058
34165
  borderRadius: "100%"
34059
34166
  },
34060
- 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, {})
34061
34168
  }
34062
34169
  ),
34063
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34170
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34064
34171
  "span",
34065
34172
  {
34066
34173
  style: {
@@ -34073,7 +34180,7 @@ var StatusBarOptionField = (props) => {
34073
34180
  },
34074
34181
  option?.[0]
34075
34182
  ),
34076
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34183
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34077
34184
  "div",
34078
34185
  {
34079
34186
  style: {
@@ -34089,7 +34196,7 @@ var StatusBarOptionField = (props) => {
34089
34196
  );
34090
34197
  };
34091
34198
  var ICMinus = () => {
34092
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34199
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34093
34200
  "svg",
34094
34201
  {
34095
34202
  xmlns: "http://www.w3.org/2000/svg",
@@ -34097,7 +34204,7 @@ var ICMinus = () => {
34097
34204
  height: "16",
34098
34205
  viewBox: "0 0 16 16",
34099
34206
  fill: "none",
34100
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34207
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34101
34208
  "path",
34102
34209
  {
34103
34210
  d: "M4 8H12",
@@ -34111,7 +34218,7 @@ var ICMinus = () => {
34111
34218
  );
34112
34219
  };
34113
34220
  var ICCircle = () => {
34114
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34221
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34115
34222
  "svg",
34116
34223
  {
34117
34224
  xmlns: "http://www.w3.org/2000/svg",
@@ -34119,12 +34226,12 @@ var ICCircle = () => {
34119
34226
  height: "8",
34120
34227
  viewBox: "0 0 8 8",
34121
34228
  fill: "none",
34122
- 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" })
34123
34230
  }
34124
34231
  );
34125
34232
  };
34126
34233
  var ICCheck = () => {
34127
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34234
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34128
34235
  "svg",
34129
34236
  {
34130
34237
  xmlns: "http://www.w3.org/2000/svg",
@@ -34132,7 +34239,7 @@ var ICCheck = () => {
34132
34239
  height: "16",
34133
34240
  viewBox: "0 0 16 16",
34134
34241
  fill: "none",
34135
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
34242
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34136
34243
  "path",
34137
34244
  {
34138
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",
@@ -34146,7 +34253,7 @@ var ICCheck = () => {
34146
34253
  };
34147
34254
 
34148
34255
  // src/widgets/basic/date-option-field/date-option.tsx
34149
- var import_jsx_runtime107 = require("react/jsx-runtime");
34256
+ var import_jsx_runtime108 = require("react/jsx-runtime");
34150
34257
  var DateOptionField = (props) => {
34151
34258
  const {
34152
34259
  name: name2,
@@ -34157,19 +34264,19 @@ var DateOptionField = (props) => {
34157
34264
  string,
34158
34265
  onChange: onChange2
34159
34266
  } = props;
34160
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34267
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
34161
34268
  Controller,
34162
34269
  {
34163
34270
  name: name2 ?? "",
34164
34271
  control: methods?.control,
34165
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
34272
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
34166
34273
  "label",
34167
34274
  {
34168
34275
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34169
34276
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34170
34277
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34171
34278
  children: [
34172
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
34279
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
34173
34280
  "input",
34174
34281
  {
34175
34282
  type: "checkbox",
@@ -34243,6 +34350,7 @@ var DateOptionField = (props) => {
34243
34350
  HtmlField,
34244
34351
  I18nProvider,
34245
34352
  ImageField,
34353
+ ImageIcon,
34246
34354
  InfomationField,
34247
34355
  IntegerField,
34248
34356
  KanbanIcon,