@fctc/sme-widget-ui 1.9.4 → 1.9.5

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/widgets.mjs CHANGED
@@ -7755,8 +7755,8 @@ var en_default = {
7755
7755
  download_file: "Download this file",
7756
7756
  upload_success: "Upload file success",
7757
7757
  upload_failure: "Upload file failure",
7758
- file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and each file should be up to 10MB.",
7759
- file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and total should be up to 50MB.",
7758
+ file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and each file should be up to 10MB.",
7759
+ file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and total should be up to 50MB.",
7760
7760
  must_required: "is required",
7761
7761
  invalid_number: "Invalid number",
7762
7762
  active: "Active",
@@ -8199,22 +8199,6 @@ var convertFloatToTime = (floatValue) => {
8199
8199
  const formattedMinutes = String(minutes).padStart(2, "0");
8200
8200
  return `${formattedHours}:${formattedMinutes}`;
8201
8201
  };
8202
- var isBase64Image = (str) => {
8203
- const base64Regex = /^data:image\/(png|jpeg|jpg|gif|webp);base64,/;
8204
- if (!base64Regex.test(str)) {
8205
- return false;
8206
- }
8207
- try {
8208
- const base64Data = str.split(",")[1];
8209
- return !!base64Data && atob(base64Data).length > 0;
8210
- } catch (error2) {
8211
- return false;
8212
- }
8213
- };
8214
- var checkIsImageLink = (url) => {
8215
- const imageExtensions = /\.(jpg|jpeg|png|gif|bmp|webp|svg|tiff|ico)$/i;
8216
- return imageExtensions.test(url) || isBase64Image(url);
8217
- };
8218
8202
  var formatFileSize = (size4) => {
8219
8203
  if (size4 < 1024) return `${size4} B`;
8220
8204
  const i3 = Math.floor(Math.log(size4) / Math.log(1024));
@@ -9878,53 +9862,84 @@ var ImageIcon = () => {
9878
9862
  "svg",
9879
9863
  {
9880
9864
  xmlns: "http://www.w3.org/2000/svg",
9881
- xmlnsXlink: "http://www.w3.org/1999/xlink",
9882
- width: "38",
9883
- height: "38",
9884
- viewBox: "0 0 38 38",
9865
+ width: "22",
9866
+ height: "23",
9867
+ viewBox: "0 0 22 23",
9868
+ fill: "none",
9885
9869
  children: [
9886
- /* @__PURE__ */ jsxs21("defs", { children: [
9887
- /* @__PURE__ */ jsx41("rect", { id: "image-a", width: "32", height: "35", x: "3", y: "1", rx: "3" }),
9888
- /* @__PURE__ */ jsx41(
9889
- "path",
9890
- {
9891
- id: "image-b",
9892
- 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"
9893
- }
9894
- )
9895
- ] }),
9896
- /* @__PURE__ */ jsxs21("g", { fill: "none", fillRule: "evenodd", children: [
9897
- /* @__PURE__ */ jsx41("polygon", { fill: "#1C8B96", points: "34 2 34 34 4 34" }),
9898
- /* @__PURE__ */ jsx41("use", { fill: "#FFF", fillOpacity: ".93", xlinkHref: "#image-a" }),
9899
- /* @__PURE__ */ jsx41(
9900
- "rect",
9901
- {
9902
- width: "30",
9903
- height: "33",
9904
- x: "4",
9905
- y: "2",
9906
- stroke: "#1C8B96",
9907
- strokeWidth: "2",
9908
- rx: "3"
9909
- }
9910
- ),
9911
- /* @__PURE__ */ jsx41("use", { fill: "#1C8B96", fillOpacity: ".516", xlinkHref: "#image-b" }),
9912
- /* @__PURE__ */ jsx41(
9913
- "path",
9914
- {
9915
- stroke: "#1C8B96",
9916
- 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"
9917
- }
9918
- ),
9919
- /* @__PURE__ */ jsx41("circle", { cx: "25.5", cy: "11.5", r: "4.5", fill: "#1C8B96" })
9920
- ] })
9870
+ /* @__PURE__ */ jsx41(
9871
+ "path",
9872
+ {
9873
+ d: "M22 5.36046V17.6395C21.9989 18.9283 21.4865 20.1639 20.5752 21.0752C19.6639 21.9865 18.4283 22.4989 17.1395 22.5H4.86047C4.32055 22.5016 3.78427 22.4116 3.27442 22.2339C2.31857 21.9038 1.48947 21.2838 0.902556 20.4603C0.315646 19.6368 0.000149319 18.6508 0 17.6395V5.36046C0.00108389 4.07172 0.513515 2.83607 1.42479 1.92479C2.33607 1.01351 3.57172 0.501084 4.86047 0.5H17.1395C18.4283 0.501084 19.6639 1.01351 20.5752 1.92479C21.4865 2.83607 21.9989 4.07172 22 5.36046Z",
9874
+ fill: "#E6F7FF"
9875
+ }
9876
+ ),
9877
+ /* @__PURE__ */ jsx41(
9878
+ "path",
9879
+ {
9880
+ d: "M13.75 18.4995V22.2495H5C4.47235 22.251 3.94826 22.1631 3.45 21.9895C2.51588 21.6669 1.70561 21.061 1.13204 20.2562C0.558472 19.4514 0.250146 18.4878 0.25 17.4995V14.7695L3.41 12.6595C3.88229 12.3434 4.44129 12.1822 5.00937 12.1984C5.57745 12.2145 6.1264 12.4071 6.58 12.7495L10.07 15.3695L13.45 17.8995C13.5438 17.9687 13.6199 18.0592 13.672 18.1635C13.7241 18.2678 13.7509 18.3829 13.75 18.4995Z",
9881
+ fill: "#70D5B8"
9882
+ }
9883
+ ),
9884
+ /* @__PURE__ */ jsx41(
9885
+ "path",
9886
+ {
9887
+ d: "M7.625 8.625C9.00571 8.625 10.125 7.50571 10.125 6.125C10.125 4.74429 9.00571 3.625 7.625 3.625C6.24429 3.625 5.125 4.74429 5.125 6.125C5.125 7.50571 6.24429 8.625 7.625 8.625Z",
9888
+ fill: "#FFD44D"
9889
+ }
9890
+ ),
9891
+ /* @__PURE__ */ jsx41(
9892
+ "path",
9893
+ {
9894
+ d: "M21.7492 12.5393V17.4993C21.7482 18.7588 21.2474 19.9663 20.3568 20.8569C19.4662 21.7475 18.2587 22.2483 16.9992 22.2493H4.99922C4.47157 22.2509 3.94748 22.163 3.44922 21.9893L14.4492 10.9893C14.8555 10.5799 15.3808 10.3092 15.95 10.2158C16.5192 10.1224 17.1034 10.2112 17.6192 10.4693L21.7492 12.5393Z",
9895
+ fill: "#13BF8A"
9896
+ }
9897
+ )
9898
+ ]
9899
+ }
9900
+ );
9901
+ };
9902
+
9903
+ // src/icons/video-icon.tsx
9904
+ import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
9905
+ var VideoIcon = () => {
9906
+ return /* @__PURE__ */ jsxs22(
9907
+ "svg",
9908
+ {
9909
+ xmlns: "http://www.w3.org/2000/svg",
9910
+ width: "22",
9911
+ height: "21",
9912
+ viewBox: "0 0 22 21",
9913
+ fill: "none",
9914
+ children: [
9915
+ /* @__PURE__ */ jsx42(
9916
+ "path",
9917
+ {
9918
+ d: "M22.0001 2.10859L22.0001 18.8914C22.0001 19.7798 21.2799 20.5 20.3915 20.5H1.61054C0.722142 20.5 0.00195312 19.7798 0.00195312 18.8914V2.10859C0.00195312 1.22019 0.722143 0.5 1.61054 0.5H20.3915C21.2799 0.5 22.0001 1.22019 22.0001 2.10859Z",
9919
+ fill: "#435E88"
9920
+ }
9921
+ ),
9922
+ /* @__PURE__ */ jsx42(
9923
+ "path",
9924
+ {
9925
+ d: "M21.9974 2.10515L21.9981 18.8914C21.9981 19.7782 21.2797 20.5 20.3895 20.5H1.60863C0.721846 20.5 0 19.7782 0 18.8914L20.3888 0.5C21.2791 0.5 21.9974 1.21832 21.9974 2.10515Z",
9926
+ fill: "#33527D"
9927
+ }
9928
+ ),
9929
+ /* @__PURE__ */ jsx42(
9930
+ "path",
9931
+ {
9932
+ d: "M3.96875 14.8779C4.15191 14.8782 4.30078 15.0267 4.30078 15.21V17.123C4.30078 17.3063 4.15191 17.4549 3.96875 17.4551H2.05469C1.87133 17.4551 1.72266 17.3064 1.72266 17.123V15.21C1.72266 15.0266 1.87133 14.8779 2.05469 14.8779H3.96875ZM19.9492 14.8779C20.1326 14.8779 20.2812 15.0266 20.2812 15.21V17.123C20.2812 17.3064 20.1326 17.4551 19.9492 17.4551H18.0361C17.8528 17.4551 17.7041 17.3064 17.7041 17.123V15.21C17.7041 15.0266 17.8528 14.8779 18.0361 14.8779H19.9492ZM8.59473 7.55566C8.59499 7.0953 9.10791 6.82103 9.49121 7.07617L14.1484 10.1758C14.4914 10.4041 14.4914 10.9084 14.1484 11.1367L9.49121 14.2363C9.10788 14.4915 8.59493 14.2173 8.59473 13.7568V7.55566ZM3.96875 10.6592C4.15175 10.6594 4.30052 10.8072 4.30078 10.9902V12.9043C4.30078 13.0875 4.15191 13.2361 3.96875 13.2363H2.05469C1.87133 13.2363 1.72266 13.0877 1.72266 12.9043V10.9902C1.72292 10.8071 1.87149 10.6592 2.05469 10.6592H3.96875ZM19.9492 10.6592C20.1324 10.6592 20.281 10.8071 20.2812 10.9902V12.9043C20.2812 13.0877 20.1326 13.2363 19.9492 13.2363H18.0361C17.8528 13.2363 17.7041 13.0877 17.7041 12.9043V10.9902C17.7044 10.8071 17.8529 10.6592 18.0361 10.6592H19.9492ZM3.96875 6.4375C4.15177 6.43773 4.30055 6.58651 4.30078 6.76953V8.68359C4.30078 8.86681 4.15191 9.0154 3.96875 9.01562H2.05469C1.87133 9.01562 1.72266 8.86695 1.72266 8.68359V6.76953C1.72289 6.58637 1.87147 6.4375 2.05469 6.4375H3.96875ZM19.9492 6.4375C20.1324 6.4375 20.281 6.58637 20.2812 6.76953V8.68359C20.2812 8.86695 20.1326 9.01562 19.9492 9.01562H18.0361C17.8528 9.01562 17.7041 8.86695 17.7041 8.68359V6.76953C17.7043 6.58637 17.8529 6.4375 18.0361 6.4375H19.9492ZM3.96875 2.21875C4.15181 2.21898 4.3006 2.36771 4.30078 2.55078V4.46484C4.30078 4.64806 4.15191 4.79665 3.96875 4.79688H2.05469C1.87133 4.79688 1.72266 4.6482 1.72266 4.46484V2.55078C1.72283 2.36757 1.87144 2.21875 2.05469 2.21875H3.96875ZM19.9492 2.21875C20.1325 2.21875 20.2811 2.36757 20.2812 2.55078V4.46484C20.2812 4.6482 20.1326 4.79688 19.9492 4.79688H18.0361C17.8528 4.79688 17.7041 4.6482 17.7041 4.46484V2.55078C17.7043 2.36757 17.8529 2.21875 18.0361 2.21875H19.9492Z",
9933
+ fill: "white"
9934
+ }
9935
+ )
9921
9936
  ]
9922
9937
  }
9923
9938
  );
9924
9939
  };
9925
9940
 
9926
9941
  // src/widgets/advanced/table/table-group.tsx
9927
- import { Fragment as Fragment2, jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
9942
+ import { Fragment as Fragment2, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
9928
9943
  var TableGroup = (props) => {
9929
9944
  const { t: t3 } = useI18n();
9930
9945
  const {
@@ -9974,28 +9989,28 @@ var TableGroup = (props) => {
9974
9989
  setSelectedRowKeys
9975
9990
  });
9976
9991
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
9977
- return /* @__PURE__ */ jsxs22(Fragment2, { children: [
9978
- /* @__PURE__ */ jsxs22(
9992
+ return /* @__PURE__ */ jsxs23(Fragment2, { children: [
9993
+ /* @__PURE__ */ jsxs23(
9979
9994
  "tr",
9980
9995
  {
9981
9996
  draggable: true,
9982
9997
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
9983
9998
  onClick: onExpandChildGroup,
9984
9999
  children: [
9985
- /* @__PURE__ */ jsx42(
10000
+ /* @__PURE__ */ jsx43(
9986
10001
  "td",
9987
10002
  {
9988
10003
  colSpan: colEmptyGroup.fromStart ?? 1,
9989
10004
  style: { display: "table-cell" },
9990
10005
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
9991
- children: /* @__PURE__ */ jsxs22(
10006
+ children: /* @__PURE__ */ jsxs23(
9992
10007
  "div",
9993
10008
  {
9994
10009
  style: { paddingLeft: leftPadding },
9995
10010
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
9996
10011
  children: [
9997
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2", children: [
9998
- /* @__PURE__ */ jsx42(
10012
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
10013
+ /* @__PURE__ */ jsx43(
9999
10014
  TriangleIcon,
10000
10015
  {
10001
10016
  style: {
@@ -10004,15 +10019,15 @@ var TableGroup = (props) => {
10004
10019
  className: `w-2 h-2 text-button_primary `
10005
10020
  }
10006
10021
  ),
10007
- /* @__PURE__ */ jsx42("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10022
+ /* @__PURE__ */ jsx43("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10008
10023
  ] }),
10009
- /* @__PURE__ */ jsx42(
10024
+ /* @__PURE__ */ jsx43(
10010
10025
  "div",
10011
10026
  {
10012
10027
  onClick: (e3) => {
10013
10028
  e3.stopPropagation();
10014
10029
  },
10015
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx42(
10030
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx43(
10016
10031
  PaginationView,
10017
10032
  {
10018
10033
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -10033,7 +10048,7 @@ var TableGroup = (props) => {
10033
10048
  columns?.map((col) => {
10034
10049
  if (col?.optional === "hide") return;
10035
10050
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
10036
- return /* @__PURE__ */ jsx42(
10051
+ return /* @__PURE__ */ jsx43(
10037
10052
  "td",
10038
10053
  {
10039
10054
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -10051,7 +10066,7 @@ var TableGroup = (props) => {
10051
10066
  ]
10052
10067
  }
10053
10068
  ),
10054
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx42(
10069
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx43(
10055
10070
  TableBodyRow,
10056
10071
  {
10057
10072
  columns: columnsGroup,
@@ -10081,7 +10096,7 @@ var TableGroup = (props) => {
10081
10096
 
10082
10097
  // src/widgets/advanced/table/table-row.tsx
10083
10098
  import { useEffect as useEffect3, useMemo as useMemo3, useRef as useRef2 } from "react";
10084
- import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
10099
+ import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
10085
10100
  var Row = (props) => {
10086
10101
  const {
10087
10102
  row,
@@ -10147,17 +10162,17 @@ var Row = (props) => {
10147
10162
  setIsAutoSelect(false);
10148
10163
  }
10149
10164
  }, [checkedAll]);
10150
- return /* @__PURE__ */ jsx43(
10165
+ return /* @__PURE__ */ jsx44(
10151
10166
  "tr",
10152
10167
  {
10153
10168
  "data-row-id": row?.id,
10154
10169
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10155
- children: /* @__PURE__ */ jsxs23(Fragment3, { children: [
10156
- isDisplayCheckbox && /* @__PURE__ */ jsx43(
10170
+ children: /* @__PURE__ */ jsxs24(Fragment3, { children: [
10171
+ isDisplayCheckbox && /* @__PURE__ */ jsx44(
10157
10172
  "td",
10158
10173
  {
10159
10174
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
10160
- children: /* @__PURE__ */ jsx43(
10175
+ children: /* @__PURE__ */ jsx44(
10161
10176
  "input",
10162
10177
  {
10163
10178
  type: "checkbox",
@@ -10170,9 +10185,9 @@ var Row = (props) => {
10170
10185
  ),
10171
10186
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
10172
10187
  if (row?.display_type === "line_section" && col.key !== "display_name") {
10173
- return /* @__PURE__ */ jsx43("td", {});
10188
+ return /* @__PURE__ */ jsx44("td", {});
10174
10189
  }
10175
- return /* @__PURE__ */ jsx43(
10190
+ return /* @__PURE__ */ jsx44(
10176
10191
  "td",
10177
10192
  {
10178
10193
  colSpan: 1,
@@ -10191,7 +10206,7 @@ var Row = (props) => {
10191
10206
  `${col.name}____${index4}`
10192
10207
  );
10193
10208
  }),
10194
- typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx43("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx43("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx43(
10209
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx44("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx44("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx44(
10195
10210
  "button",
10196
10211
  {
10197
10212
  type: "button",
@@ -10199,7 +10214,7 @@ var Row = (props) => {
10199
10214
  onClick: () => {
10200
10215
  onRemoveRow(indexRow);
10201
10216
  },
10202
- children: /* @__PURE__ */ jsx43(DeleteIcon, {})
10217
+ children: /* @__PURE__ */ jsx44(DeleteIcon, {})
10203
10218
  }
10204
10219
  ) }) })
10205
10220
  ] })
@@ -10209,7 +10224,7 @@ var Row = (props) => {
10209
10224
  };
10210
10225
 
10211
10226
  // src/widgets/advanced/table/table-body.tsx
10212
- import { jsx as jsx44 } from "react/jsx-runtime";
10227
+ import { jsx as jsx45 } from "react/jsx-runtime";
10213
10228
  var TableBodyRow = (props) => {
10214
10229
  const {
10215
10230
  rows,
@@ -10239,7 +10254,7 @@ var TableBodyRow = (props) => {
10239
10254
  isEditTable
10240
10255
  } = props;
10241
10256
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10242
- return typeTable === "group" ? /* @__PURE__ */ jsx44(
10257
+ return typeTable === "group" ? /* @__PURE__ */ jsx45(
10243
10258
  TableGroup,
10244
10259
  {
10245
10260
  columns,
@@ -10264,7 +10279,7 @@ var TableBodyRow = (props) => {
10264
10279
  onClickRow
10265
10280
  },
10266
10281
  `record-group-${index4}`
10267
- ) : /* @__PURE__ */ jsx44(
10282
+ ) : /* @__PURE__ */ jsx45(
10268
10283
  Row,
10269
10284
  {
10270
10285
  row,
@@ -10292,7 +10307,7 @@ var TableBodyRow = (props) => {
10292
10307
  };
10293
10308
  var TableBody = (props) => {
10294
10309
  const [isAutoSelect, setIsAutoSelect] = useState2(false);
10295
- return /* @__PURE__ */ jsx44("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx44(
10310
+ return /* @__PURE__ */ jsx45("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx45(
10296
10311
  TableBodyRow,
10297
10312
  {
10298
10313
  ...props,
@@ -10553,7 +10568,7 @@ function useFileInfo(source, options2) {
10553
10568
  }
10554
10569
 
10555
10570
  // src/widgets/advanced/table/table-filter.tsx
10556
- import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
10571
+ import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
10557
10572
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
10558
10573
  const [openTableFilter, setOpenTableFilter] = useState4();
10559
10574
  const [filterPosition, setFilterPosition] = useState4(null);
@@ -10585,7 +10600,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10585
10600
  window.removeEventListener("resize", updatePosition);
10586
10601
  };
10587
10602
  }, [filterRef, openTableFilter]);
10588
- return /* @__PURE__ */ jsxs24(
10603
+ return /* @__PURE__ */ jsxs25(
10589
10604
  "div",
10590
10605
  {
10591
10606
  ref: filterRef,
@@ -10594,7 +10609,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10594
10609
  },
10595
10610
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
10596
10611
  children: [
10597
- /* @__PURE__ */ jsx45(
10612
+ /* @__PURE__ */ jsx46(
10598
10613
  "button",
10599
10614
  {
10600
10615
  type: "button",
@@ -10602,7 +10617,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10602
10617
  onClick: () => {
10603
10618
  setOpenTableFilter(!openTableFilter);
10604
10619
  },
10605
- children: /* @__PURE__ */ jsxs24(
10620
+ children: /* @__PURE__ */ jsxs25(
10606
10621
  "svg",
10607
10622
  {
10608
10623
  xmlns: "http://www.w3.org/2000/svg",
@@ -10611,42 +10626,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10611
10626
  viewBox: "0 0 16 16",
10612
10627
  fill: "none",
10613
10628
  children: [
10614
- /* @__PURE__ */ jsx45(
10629
+ /* @__PURE__ */ jsx46(
10615
10630
  "path",
10616
10631
  {
10617
10632
  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",
10618
10633
  fill: "#1F1F1F"
10619
10634
  }
10620
10635
  ),
10621
- /* @__PURE__ */ jsx45(
10636
+ /* @__PURE__ */ jsx46(
10622
10637
  "path",
10623
10638
  {
10624
10639
  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",
10625
10640
  fill: "#1F1F1F"
10626
10641
  }
10627
10642
  ),
10628
- /* @__PURE__ */ jsx45(
10643
+ /* @__PURE__ */ jsx46(
10629
10644
  "path",
10630
10645
  {
10631
10646
  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",
10632
10647
  fill: "#1F1F1F"
10633
10648
  }
10634
10649
  ),
10635
- /* @__PURE__ */ jsx45(
10650
+ /* @__PURE__ */ jsx46(
10636
10651
  "path",
10637
10652
  {
10638
10653
  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",
10639
10654
  fill: "black"
10640
10655
  }
10641
10656
  ),
10642
- /* @__PURE__ */ jsx45(
10657
+ /* @__PURE__ */ jsx46(
10643
10658
  "path",
10644
10659
  {
10645
10660
  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",
10646
10661
  fill: "black"
10647
10662
  }
10648
10663
  ),
10649
- /* @__PURE__ */ jsx45(
10664
+ /* @__PURE__ */ jsx46(
10650
10665
  "path",
10651
10666
  {
10652
10667
  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",
@@ -10659,7 +10674,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10659
10674
  }
10660
10675
  ),
10661
10676
  filterPosition && openTableFilter && createPortal(
10662
- /* @__PURE__ */ jsx45(
10677
+ /* @__PURE__ */ jsx46(
10663
10678
  "div",
10664
10679
  {
10665
10680
  ref: filterPopupRef,
@@ -10670,8 +10685,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10670
10685
  },
10671
10686
  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",
10672
10687
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
10673
- return /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
10674
- /* @__PURE__ */ jsx45(
10688
+ return /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
10689
+ /* @__PURE__ */ jsx46(
10675
10690
  "input",
10676
10691
  {
10677
10692
  type: "checkbox",
@@ -10681,7 +10696,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10681
10696
  className: "cursor-pointer"
10682
10697
  }
10683
10698
  ),
10684
- /* @__PURE__ */ jsx45(
10699
+ /* @__PURE__ */ jsx46(
10685
10700
  "label",
10686
10701
  {
10687
10702
  htmlFor: `${item.name}`,
@@ -10701,14 +10716,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10701
10716
  };
10702
10717
 
10703
10718
  // src/widgets/advanced/table/table-footer.tsx
10704
- import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
10719
+ import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
10705
10720
  var TableFooter = ({ onAddRow, rows }) => {
10706
10721
  const emptyData = rows?.length <= 0;
10707
- return /* @__PURE__ */ jsx46("tfoot", { children: /* @__PURE__ */ jsx46("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx46(
10722
+ return /* @__PURE__ */ jsx47("tfoot", { children: /* @__PURE__ */ jsx47("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx47(
10708
10723
  "td",
10709
10724
  {
10710
10725
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
10711
- children: /* @__PURE__ */ jsxs25(
10726
+ children: /* @__PURE__ */ jsxs26(
10712
10727
  "button",
10713
10728
  {
10714
10729
  type: "button",
@@ -10718,7 +10733,7 @@ var TableFooter = ({ onAddRow, rows }) => {
10718
10733
  },
10719
10734
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
10720
10735
  children: [
10721
- /* @__PURE__ */ jsxs25(
10736
+ /* @__PURE__ */ jsxs26(
10722
10737
  "svg",
10723
10738
  {
10724
10739
  style: {
@@ -10731,14 +10746,14 @@ var TableFooter = ({ onAddRow, rows }) => {
10731
10746
  viewBox: "0 0 20 20",
10732
10747
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
10733
10748
  children: [
10734
- /* @__PURE__ */ jsx46(
10749
+ /* @__PURE__ */ jsx47(
10735
10750
  "path",
10736
10751
  {
10737
10752
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
10738
10753
  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"
10739
10754
  }
10740
10755
  ),
10741
- /* @__PURE__ */ jsx46(
10756
+ /* @__PURE__ */ jsx47(
10742
10757
  "path",
10743
10758
  {
10744
10759
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -12558,8 +12573,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
12558
12573
  });
12559
12574
 
12560
12575
  // src/widgets/advanced/table/table-head.tsx
12561
- import { createPortal as createPortal2 } from "react-dom";
12562
- import { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
12576
+ import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12563
12577
  var TableHead = (props) => {
12564
12578
  const {
12565
12579
  handleCheckBoxAll,
@@ -12569,7 +12583,7 @@ var TableHead = (props) => {
12569
12583
  onRemoveRow,
12570
12584
  onToggleColumnOptional
12571
12585
  } = props;
12572
- return /* @__PURE__ */ jsx47("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs26(
12586
+ return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs27(
12573
12587
  "tr",
12574
12588
  {
12575
12589
  style: {
@@ -12581,11 +12595,11 @@ var TableHead = (props) => {
12581
12595
  },
12582
12596
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
12583
12597
  children: [
12584
- isDisplayCheckbox && /* @__PURE__ */ jsx47(
12598
+ isDisplayCheckbox && /* @__PURE__ */ jsx48(
12585
12599
  "th",
12586
12600
  {
12587
12601
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
12588
- children: /* @__PURE__ */ jsx47(
12602
+ children: /* @__PURE__ */ jsx48(
12589
12603
  "input",
12590
12604
  {
12591
12605
  type: "checkbox",
@@ -12597,36 +12611,32 @@ var TableHead = (props) => {
12597
12611
  }
12598
12612
  ),
12599
12613
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12600
- return /* @__PURE__ */ jsx47(
12614
+ return /* @__PURE__ */ jsx48(
12601
12615
  "th",
12602
12616
  {
12603
- "data-rtc-resizable": col?.name,
12604
12617
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12605
- children: /* @__PURE__ */ jsxs26("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12618
+ children: /* @__PURE__ */ jsxs27("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12606
12619
  col.title,
12607
- col?.field?.help && /* @__PURE__ */ jsxs26(Fragment4, { children: [
12608
- createPortal2(
12609
- /* @__PURE__ */ jsx47(
12610
- M,
12611
- {
12612
- style: {
12613
- padding: "6px 12px",
12614
- fontSize: "12px",
12615
- borderRadius: "4px",
12616
- maxWidth: "200px",
12617
- whiteSpace: "wrap",
12618
- fontWeight: 400,
12619
- textTransform: "none",
12620
- zIndex: "9999"
12621
- },
12622
- id: `field-help-${col?.field?.name}`,
12623
- content: col?.field?.help,
12624
- place: "top"
12625
- }
12626
- ),
12627
- document.body
12620
+ col?.field?.help && /* @__PURE__ */ jsxs27(Fragment4, { children: [
12621
+ /* @__PURE__ */ jsx48(
12622
+ M,
12623
+ {
12624
+ style: {
12625
+ padding: "6px 12px",
12626
+ fontSize: "12px",
12627
+ borderRadius: "4px",
12628
+ maxWidth: "200%",
12629
+ whiteSpace: "wrap",
12630
+ fontWeight: 400,
12631
+ textTransform: "none"
12632
+ },
12633
+ id: `field-help-${col?.field?.name}`,
12634
+ content: col?.field?.help,
12635
+ place: "top",
12636
+ className: "z-30"
12637
+ }
12628
12638
  ),
12629
- /* @__PURE__ */ jsx47(
12639
+ /* @__PURE__ */ jsx48(
12630
12640
  "span",
12631
12641
  {
12632
12642
  style: {
@@ -12645,8 +12655,8 @@ var TableHead = (props) => {
12645
12655
  "table-head-" + index4
12646
12656
  );
12647
12657
  }),
12648
- typeof onRemoveRow === "function" && /* @__PURE__ */ jsx47("th", { className: "relative p-2 w-[35px]" }),
12649
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
12658
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx48("th", { className: "relative p-2 w-[35px]" }),
12659
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx48(
12650
12660
  "th",
12651
12661
  {
12652
12662
  style: {
@@ -12654,7 +12664,7 @@ var TableHead = (props) => {
12654
12664
  right: 0
12655
12665
  },
12656
12666
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
12657
- children: /* @__PURE__ */ jsx47(
12667
+ children: /* @__PURE__ */ jsx48(
12658
12668
  TableFilter,
12659
12669
  {
12660
12670
  columns,
@@ -12669,9 +12679,9 @@ var TableHead = (props) => {
12669
12679
  };
12670
12680
 
12671
12681
  // src/icons/empty-table-icon.tsx
12672
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12682
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12673
12683
  var IcEmptyTable = () => {
12674
- return /* @__PURE__ */ jsxs27(
12684
+ return /* @__PURE__ */ jsxs28(
12675
12685
  "svg",
12676
12686
  {
12677
12687
  xmlns: "http://www.w3.org/2000/svg",
@@ -12680,9 +12690,9 @@ var IcEmptyTable = () => {
12680
12690
  viewBox: "0 0 216 140",
12681
12691
  fill: "none",
12682
12692
  children: [
12683
- /* @__PURE__ */ jsxs27("g", { clipPath: "url(#clip0_2454_28950)", children: [
12684
- /* @__PURE__ */ jsx48("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12685
- /* @__PURE__ */ jsx48(
12693
+ /* @__PURE__ */ jsxs28("g", { clipPath: "url(#clip0_2454_28950)", children: [
12694
+ /* @__PURE__ */ jsx49("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12695
+ /* @__PURE__ */ jsx49(
12686
12696
  "path",
12687
12697
  {
12688
12698
  d: "M64.5 0V140",
@@ -12692,7 +12702,7 @@ var IcEmptyTable = () => {
12692
12702
  strokeDasharray: "3 3"
12693
12703
  }
12694
12704
  ),
12695
- /* @__PURE__ */ jsx48(
12705
+ /* @__PURE__ */ jsx49(
12696
12706
  "path",
12697
12707
  {
12698
12708
  d: "M151.5 0V140",
@@ -12702,7 +12712,7 @@ var IcEmptyTable = () => {
12702
12712
  strokeDasharray: "3 3"
12703
12713
  }
12704
12714
  ),
12705
- /* @__PURE__ */ jsx48(
12715
+ /* @__PURE__ */ jsx49(
12706
12716
  "path",
12707
12717
  {
12708
12718
  d: "M215.5 24H0.5",
@@ -12712,7 +12722,7 @@ var IcEmptyTable = () => {
12712
12722
  strokeDasharray: "3 3"
12713
12723
  }
12714
12724
  ),
12715
- /* @__PURE__ */ jsx48(
12725
+ /* @__PURE__ */ jsx49(
12716
12726
  "path",
12717
12727
  {
12718
12728
  d: "M215.5 50H0.5",
@@ -12722,7 +12732,7 @@ var IcEmptyTable = () => {
12722
12732
  strokeDasharray: "3 3"
12723
12733
  }
12724
12734
  ),
12725
- /* @__PURE__ */ jsx48(
12735
+ /* @__PURE__ */ jsx49(
12726
12736
  "path",
12727
12737
  {
12728
12738
  d: "M215.5 88H0.5",
@@ -12732,7 +12742,7 @@ var IcEmptyTable = () => {
12732
12742
  strokeDasharray: "3 3"
12733
12743
  }
12734
12744
  ),
12735
- /* @__PURE__ */ jsx48(
12745
+ /* @__PURE__ */ jsx49(
12736
12746
  "path",
12737
12747
  {
12738
12748
  d: "M215.5 114H0.5",
@@ -12742,7 +12752,7 @@ var IcEmptyTable = () => {
12742
12752
  strokeDasharray: "3 3"
12743
12753
  }
12744
12754
  ),
12745
- /* @__PURE__ */ jsx48(
12755
+ /* @__PURE__ */ jsx49(
12746
12756
  "path",
12747
12757
  {
12748
12758
  d: "M199.5 0V140",
@@ -12751,7 +12761,7 @@ var IcEmptyTable = () => {
12751
12761
  strokeMiterlimit: "10"
12752
12762
  }
12753
12763
  ),
12754
- /* @__PURE__ */ jsx48(
12764
+ /* @__PURE__ */ jsx49(
12755
12765
  "path",
12756
12766
  {
12757
12767
  d: "M16.5 0V140",
@@ -12760,7 +12770,7 @@ var IcEmptyTable = () => {
12760
12770
  strokeMiterlimit: "10"
12761
12771
  }
12762
12772
  ),
12763
- /* @__PURE__ */ jsx48(
12773
+ /* @__PURE__ */ jsx49(
12764
12774
  "path",
12765
12775
  {
12766
12776
  d: "M0.5 16H215.5",
@@ -12769,7 +12779,7 @@ var IcEmptyTable = () => {
12769
12779
  strokeMiterlimit: "10"
12770
12780
  }
12771
12781
  ),
12772
- /* @__PURE__ */ jsx48(
12782
+ /* @__PURE__ */ jsx49(
12773
12783
  "path",
12774
12784
  {
12775
12785
  d: "M0.5 124H215.5",
@@ -12778,7 +12788,7 @@ var IcEmptyTable = () => {
12778
12788
  strokeMiterlimit: "10"
12779
12789
  }
12780
12790
  ),
12781
- /* @__PURE__ */ jsx48(
12791
+ /* @__PURE__ */ jsx49(
12782
12792
  "path",
12783
12793
  {
12784
12794
  opacity: "0.6",
@@ -12789,7 +12799,7 @@ var IcEmptyTable = () => {
12789
12799
  strokeLinejoin: "round"
12790
12800
  }
12791
12801
  ),
12792
- /* @__PURE__ */ jsx48(
12802
+ /* @__PURE__ */ jsx49(
12793
12803
  "path",
12794
12804
  {
12795
12805
  opacity: "0.6",
@@ -12800,7 +12810,7 @@ var IcEmptyTable = () => {
12800
12810
  strokeLinejoin: "round"
12801
12811
  }
12802
12812
  ),
12803
- /* @__PURE__ */ jsx48(
12813
+ /* @__PURE__ */ jsx49(
12804
12814
  "path",
12805
12815
  {
12806
12816
  opacity: "0.6",
@@ -12811,7 +12821,7 @@ var IcEmptyTable = () => {
12811
12821
  strokeLinejoin: "round"
12812
12822
  }
12813
12823
  ),
12814
- /* @__PURE__ */ jsx48(
12824
+ /* @__PURE__ */ jsx49(
12815
12825
  "path",
12816
12826
  {
12817
12827
  opacity: "0.6",
@@ -12822,7 +12832,7 @@ var IcEmptyTable = () => {
12822
12832
  strokeLinejoin: "round"
12823
12833
  }
12824
12834
  ),
12825
- /* @__PURE__ */ jsx48(
12835
+ /* @__PURE__ */ jsx49(
12826
12836
  "path",
12827
12837
  {
12828
12838
  opacity: "0.6",
@@ -12833,14 +12843,14 @@ var IcEmptyTable = () => {
12833
12843
  strokeLinejoin: "round"
12834
12844
  }
12835
12845
  ),
12836
- /* @__PURE__ */ jsx48(
12846
+ /* @__PURE__ */ jsx49(
12837
12847
  "path",
12838
12848
  {
12839
12849
  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",
12840
12850
  fill: "white"
12841
12851
  }
12842
12852
  ),
12843
- /* @__PURE__ */ jsx48(
12853
+ /* @__PURE__ */ jsx49(
12844
12854
  "path",
12845
12855
  {
12846
12856
  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",
@@ -12850,7 +12860,7 @@ var IcEmptyTable = () => {
12850
12860
  strokeLinejoin: "round"
12851
12861
  }
12852
12862
  ),
12853
- /* @__PURE__ */ jsx48(
12863
+ /* @__PURE__ */ jsx49(
12854
12864
  "path",
12855
12865
  {
12856
12866
  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",
@@ -12859,7 +12869,7 @@ var IcEmptyTable = () => {
12859
12869
  strokeLinejoin: "round"
12860
12870
  }
12861
12871
  ),
12862
- /* @__PURE__ */ jsx48(
12872
+ /* @__PURE__ */ jsx49(
12863
12873
  "path",
12864
12874
  {
12865
12875
  opacity: "0.6",
@@ -12870,7 +12880,7 @@ var IcEmptyTable = () => {
12870
12880
  strokeLinejoin: "round"
12871
12881
  }
12872
12882
  ),
12873
- /* @__PURE__ */ jsx48(
12883
+ /* @__PURE__ */ jsx49(
12874
12884
  "path",
12875
12885
  {
12876
12886
  opacity: "0.6",
@@ -12881,7 +12891,7 @@ var IcEmptyTable = () => {
12881
12891
  strokeLinejoin: "round"
12882
12892
  }
12883
12893
  ),
12884
- /* @__PURE__ */ jsx48(
12894
+ /* @__PURE__ */ jsx49(
12885
12895
  "path",
12886
12896
  {
12887
12897
  opacity: "0.6",
@@ -12892,7 +12902,7 @@ var IcEmptyTable = () => {
12892
12902
  strokeLinejoin: "round"
12893
12903
  }
12894
12904
  ),
12895
- /* @__PURE__ */ jsx48(
12905
+ /* @__PURE__ */ jsx49(
12896
12906
  "path",
12897
12907
  {
12898
12908
  opacity: "0.6",
@@ -12903,7 +12913,7 @@ var IcEmptyTable = () => {
12903
12913
  strokeLinejoin: "round"
12904
12914
  }
12905
12915
  ),
12906
- /* @__PURE__ */ jsx48(
12916
+ /* @__PURE__ */ jsx49(
12907
12917
  "path",
12908
12918
  {
12909
12919
  opacity: "0.6",
@@ -12914,7 +12924,7 @@ var IcEmptyTable = () => {
12914
12924
  strokeLinejoin: "round"
12915
12925
  }
12916
12926
  ),
12917
- /* @__PURE__ */ jsx48(
12927
+ /* @__PURE__ */ jsx49(
12918
12928
  "path",
12919
12929
  {
12920
12930
  opacity: "0.6",
@@ -12925,7 +12935,7 @@ var IcEmptyTable = () => {
12925
12935
  strokeLinejoin: "round"
12926
12936
  }
12927
12937
  ),
12928
- /* @__PURE__ */ jsx48(
12938
+ /* @__PURE__ */ jsx49(
12929
12939
  "path",
12930
12940
  {
12931
12941
  opacity: "0.6",
@@ -12936,7 +12946,7 @@ var IcEmptyTable = () => {
12936
12946
  strokeLinejoin: "round"
12937
12947
  }
12938
12948
  ),
12939
- /* @__PURE__ */ jsx48(
12949
+ /* @__PURE__ */ jsx49(
12940
12950
  "path",
12941
12951
  {
12942
12952
  opacity: "0.6",
@@ -12947,7 +12957,7 @@ var IcEmptyTable = () => {
12947
12957
  strokeLinejoin: "round"
12948
12958
  }
12949
12959
  ),
12950
- /* @__PURE__ */ jsx48(
12960
+ /* @__PURE__ */ jsx49(
12951
12961
  "path",
12952
12962
  {
12953
12963
  opacity: "0.6",
@@ -12958,14 +12968,14 @@ var IcEmptyTable = () => {
12958
12968
  strokeLinejoin: "round"
12959
12969
  }
12960
12970
  ),
12961
- /* @__PURE__ */ jsx48(
12971
+ /* @__PURE__ */ jsx49(
12962
12972
  "path",
12963
12973
  {
12964
12974
  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",
12965
12975
  fill: "white"
12966
12976
  }
12967
12977
  ),
12968
- /* @__PURE__ */ jsx48(
12978
+ /* @__PURE__ */ jsx49(
12969
12979
  "path",
12970
12980
  {
12971
12981
  "fill-rule": "evenodd",
@@ -12974,7 +12984,7 @@ var IcEmptyTable = () => {
12974
12984
  fill: "white"
12975
12985
  }
12976
12986
  ),
12977
- /* @__PURE__ */ jsx48(
12987
+ /* @__PURE__ */ jsx49(
12978
12988
  "path",
12979
12989
  {
12980
12990
  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",
@@ -12985,7 +12995,7 @@ var IcEmptyTable = () => {
12985
12995
  }
12986
12996
  )
12987
12997
  ] }),
12988
- /* @__PURE__ */ jsx48("defs", { children: /* @__PURE__ */ jsx48("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx48(
12998
+ /* @__PURE__ */ jsx49("defs", { children: /* @__PURE__ */ jsx49("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx49(
12989
12999
  "rect",
12990
13000
  {
12991
13001
  width: "215",
@@ -13000,14 +13010,14 @@ var IcEmptyTable = () => {
13000
13010
  };
13001
13011
 
13002
13012
  // src/widgets/advanced/table/empty-table.tsx
13003
- import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
13013
+ import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
13004
13014
  var EmptyTable = () => {
13005
13015
  const { t: t3 } = useI18n();
13006
- return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13007
- /* @__PURE__ */ jsx49(IcEmptyTable, {}),
13008
- /* @__PURE__ */ jsxs28("div", { children: [
13009
- /* @__PURE__ */ jsx49("p", {}),
13010
- /* @__PURE__ */ jsx49("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13016
+ return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13017
+ /* @__PURE__ */ jsx50(IcEmptyTable, {}),
13018
+ /* @__PURE__ */ jsxs29("div", { children: [
13019
+ /* @__PURE__ */ jsx50("p", {}),
13020
+ /* @__PURE__ */ jsx50("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13011
13021
  ] })
13012
13022
  ] });
13013
13023
  };
@@ -14826,10 +14836,10 @@ function s3(o3, s4, t3) {
14826
14836
 
14827
14837
  // src/widgets/advanced/login/shared/button.tsx
14828
14838
  import * as React2 from "react";
14829
- import { jsx as jsx50 } from "react/jsx-runtime";
14839
+ import { jsx as jsx51 } from "react/jsx-runtime";
14830
14840
  var Button = React2.forwardRef(
14831
14841
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
14832
- return /* @__PURE__ */ jsx50(
14842
+ return /* @__PURE__ */ jsx51(
14833
14843
  "button",
14834
14844
  {
14835
14845
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -14839,7 +14849,7 @@ var Button = React2.forwardRef(
14839
14849
  ref,
14840
14850
  type,
14841
14851
  ...props,
14842
- children: isLoading ? /* @__PURE__ */ jsx50(LoadingIcon, { width: 20, height: 20 }) : children
14852
+ children: isLoading ? /* @__PURE__ */ jsx51(LoadingIcon, { width: 20, height: 20 }) : children
14843
14853
  }
14844
14854
  );
14845
14855
  }
@@ -14848,7 +14858,7 @@ Button.displayName = "Button";
14848
14858
 
14849
14859
  // src/widgets/advanced/login/shared/text-input.tsx
14850
14860
  import { useState as useState5 } from "react";
14851
- import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
14861
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14852
14862
  function TextInput(props) {
14853
14863
  const {
14854
14864
  className,
@@ -14862,17 +14872,17 @@ function TextInput(props) {
14862
14872
  required
14863
14873
  } = props;
14864
14874
  const [showPassword, setShowPassword] = useState5(false);
14865
- return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14866
- label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14875
+ return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14876
+ label && /* @__PURE__ */ jsxs30("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14867
14877
  label,
14868
- required ? /* @__PURE__ */ jsx51("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14878
+ required ? /* @__PURE__ */ jsx52("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14869
14879
  ] }),
14870
- /* @__PURE__ */ jsxs29(
14880
+ /* @__PURE__ */ jsxs30(
14871
14881
  "div",
14872
14882
  {
14873
14883
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
14874
14884
  children: [
14875
- /* @__PURE__ */ jsx51(
14885
+ /* @__PURE__ */ jsx52(
14876
14886
  "input",
14877
14887
  {
14878
14888
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -14881,18 +14891,18 @@ function TextInput(props) {
14881
14891
  ...register(name2)
14882
14892
  }
14883
14893
  ),
14884
- type === "password" && /* @__PURE__ */ jsx51(
14894
+ type === "password" && /* @__PURE__ */ jsx52(
14885
14895
  "span",
14886
14896
  {
14887
14897
  onClick: () => setShowPassword(!showPassword),
14888
14898
  className: "focus:outline-none",
14889
- children: showPassword ? /* @__PURE__ */ jsx51(EyeClosedIcon, {}) : /* @__PURE__ */ jsx51(EyeIcon, {})
14899
+ children: showPassword ? /* @__PURE__ */ jsx52(EyeClosedIcon, {}) : /* @__PURE__ */ jsx52(EyeIcon, {})
14890
14900
  }
14891
14901
  )
14892
14902
  ]
14893
14903
  }
14894
14904
  ),
14895
- errors?.[name2]?.message && /* @__PURE__ */ jsx51(
14905
+ errors?.[name2]?.message && /* @__PURE__ */ jsx52(
14896
14906
  "p",
14897
14907
  {
14898
14908
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -14904,7 +14914,7 @@ function TextInput(props) {
14904
14914
 
14905
14915
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
14906
14916
  import { useEffect as useEffect7 } from "react";
14907
- import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14917
+ import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
14908
14918
  var STAY_LOGIN_IN = "stayLoginIn";
14909
14919
  function FormOptions({
14910
14920
  forgotPasswordUrl,
@@ -14930,9 +14940,9 @@ function FormOptions({
14930
14940
  useEffect7(() => {
14931
14941
  localStorage.setItem(STAY_LOGIN_IN, "false");
14932
14942
  }, []);
14933
- return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14934
- /* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
14935
- /* @__PURE__ */ jsx52(
14943
+ return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14944
+ /* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
14945
+ /* @__PURE__ */ jsx53(
14936
14946
  "input",
14937
14947
  {
14938
14948
  checked: stayLoginIn,
@@ -14941,9 +14951,9 @@ function FormOptions({
14941
14951
  onChange: handleCheckboxChange
14942
14952
  }
14943
14953
  ),
14944
- /* @__PURE__ */ jsx52("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14954
+ /* @__PURE__ */ jsx53("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14945
14955
  ] }),
14946
- !hideForgotPassword && /* @__PURE__ */ jsx52("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14956
+ !hideForgotPassword && /* @__PURE__ */ jsx53("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14947
14957
  ] });
14948
14958
  }
14949
14959
 
@@ -14959,7 +14969,7 @@ var loginSchema = z2.object({
14959
14969
  });
14960
14970
 
14961
14971
  // src/widgets/advanced/login/provider/credential/index.tsx
14962
- import { Fragment as Fragment5, jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
14972
+ import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
14963
14973
  var CredentialLogin = (props) => {
14964
14974
  const {
14965
14975
  shouldRenderDivider,
@@ -14979,16 +14989,16 @@ var CredentialLogin = (props) => {
14979
14989
  mode: "onChange",
14980
14990
  resolver: s3(loginSchema)
14981
14991
  });
14982
- return /* @__PURE__ */ jsxs31(Fragment5, { children: [
14983
- /* @__PURE__ */ jsxs31(
14992
+ return /* @__PURE__ */ jsxs32(Fragment5, { children: [
14993
+ /* @__PURE__ */ jsxs32(
14984
14994
  "form",
14985
14995
  {
14986
14996
  onSubmit: handleSubmit(onSubmit ?? (() => {
14987
14997
  })),
14988
14998
  className: `flex w-full h-fit flex-col gap-10`,
14989
14999
  children: [
14990
- /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
14991
- /* @__PURE__ */ jsx53(
15000
+ /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
15001
+ /* @__PURE__ */ jsx54(
14992
15002
  TextInput,
14993
15003
  {
14994
15004
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15001,7 +15011,7 @@ var CredentialLogin = (props) => {
15001
15011
  errors
15002
15012
  }
15003
15013
  ),
15004
- /* @__PURE__ */ jsx53(
15014
+ /* @__PURE__ */ jsx54(
15005
15015
  TextInput,
15006
15016
  {
15007
15017
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15014,7 +15024,7 @@ var CredentialLogin = (props) => {
15014
15024
  errors
15015
15025
  }
15016
15026
  ),
15017
- /* @__PURE__ */ jsx53(
15027
+ /* @__PURE__ */ jsx54(
15018
15028
  FormOptions,
15019
15029
  {
15020
15030
  forgotPasswordUrl,
@@ -15024,7 +15034,7 @@ var CredentialLogin = (props) => {
15024
15034
  }
15025
15035
  )
15026
15036
  ] }),
15027
- /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx53(
15037
+ /* @__PURE__ */ jsx54("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx54(
15028
15038
  Button,
15029
15039
  {
15030
15040
  type: "submit",
@@ -15036,56 +15046,56 @@ var CredentialLogin = (props) => {
15036
15046
  ]
15037
15047
  }
15038
15048
  ),
15039
- shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
15040
- /* @__PURE__ */ jsx53("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15041
- /* @__PURE__ */ jsx53("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15049
+ shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
15050
+ /* @__PURE__ */ jsx54("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15051
+ /* @__PURE__ */ jsx54("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15042
15052
  ] })
15043
15053
  ] });
15044
15054
  };
15045
15055
 
15046
15056
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15047
- import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
15057
+ import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
15048
15058
  function GoogleButton(props) {
15049
15059
  const { onLoginGoogle, db } = props;
15050
- return /* @__PURE__ */ jsxs32(
15060
+ return /* @__PURE__ */ jsxs33(
15051
15061
  "button",
15052
15062
  {
15053
15063
  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",
15054
15064
  onClick: () => onLoginGoogle?.(db),
15055
15065
  children: [
15056
- /* @__PURE__ */ jsx54(GoogleIcon, { className: "google-icon" }),
15057
- /* @__PURE__ */ jsx54("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15066
+ /* @__PURE__ */ jsx55(GoogleIcon, { className: "google-icon" }),
15067
+ /* @__PURE__ */ jsx55("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15058
15068
  ]
15059
15069
  }
15060
15070
  );
15061
15071
  }
15062
15072
 
15063
15073
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15064
- import { Fragment as Fragment6, jsx as jsx55 } from "react/jsx-runtime";
15074
+ import { Fragment as Fragment6, jsx as jsx56 } from "react/jsx-runtime";
15065
15075
  function SocialRedirect(props) {
15066
15076
  const { db, onLoginSocial } = props;
15067
15077
  onLoginSocial && onLoginSocial(String(db));
15068
- return /* @__PURE__ */ jsx55(Fragment6, {});
15078
+ return /* @__PURE__ */ jsx56(Fragment6, {});
15069
15079
  }
15070
15080
 
15071
15081
  // src/widgets/advanced/login/provider/google/index.tsx
15072
- import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15082
+ import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15073
15083
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15074
- return /* @__PURE__ */ jsxs33(Fragment7, { children: [
15075
- /* @__PURE__ */ jsx56(GoogleButton, { db, onLoginGoogle }),
15076
- /* @__PURE__ */ jsx56(SocialRedirect, { db, onLoginSocial })
15084
+ return /* @__PURE__ */ jsxs34(Fragment7, { children: [
15085
+ /* @__PURE__ */ jsx57(GoogleButton, { db, onLoginGoogle }),
15086
+ /* @__PURE__ */ jsx57(SocialRedirect, { db, onLoginSocial })
15077
15087
  ] });
15078
15088
  };
15079
15089
 
15080
15090
  // src/widgets/advanced/login/index.tsx
15081
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15091
+ import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15082
15092
  var LoginProviderMapping = {
15083
15093
  google: GoogleLogin
15084
15094
  };
15085
15095
  var Login = (props) => {
15086
15096
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15087
- return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
15088
- /* @__PURE__ */ jsx57(
15097
+ return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
15098
+ /* @__PURE__ */ jsx58(
15089
15099
  CredentialLogin,
15090
15100
  {
15091
15101
  ...props,
@@ -15095,7 +15105,7 @@ var Login = (props) => {
15095
15105
  ),
15096
15106
  providers.map((provider, index4) => {
15097
15107
  const ProviderComp = LoginProviderMapping[provider];
15098
- return /* @__PURE__ */ jsx57(
15108
+ return /* @__PURE__ */ jsx58(
15099
15109
  ProviderComp,
15100
15110
  {
15101
15111
  db,
@@ -15109,7 +15119,7 @@ var Login = (props) => {
15109
15119
  };
15110
15120
 
15111
15121
  // src/widgets/advanced/search/popup-filter/index.tsx
15112
- import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15122
+ import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15113
15123
  var PopupFilter = ({
15114
15124
  handleAddTagSearch,
15115
15125
  removeSearchItems,
@@ -15120,7 +15130,7 @@ var PopupFilter = ({
15120
15130
  fields
15121
15131
  }) => {
15122
15132
  const { t: t3 } = useI18n();
15123
- return /* @__PURE__ */ jsx58(
15133
+ return /* @__PURE__ */ jsx59(
15124
15134
  "div",
15125
15135
  {
15126
15136
  style: {
@@ -15130,25 +15140,25 @@ var PopupFilter = ({
15130
15140
  zIndex: 33
15131
15141
  },
15132
15142
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15133
- children: /* @__PURE__ */ jsxs35(
15143
+ children: /* @__PURE__ */ jsxs36(
15134
15144
  "div",
15135
15145
  {
15136
15146
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15137
15147
  children: [
15138
- filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
15139
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15140
- /* @__PURE__ */ jsx58(FilterIcon, { className: "filter-by-icon text-primary" }),
15141
- /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15148
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
15149
+ /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15150
+ /* @__PURE__ */ jsx59(FilterIcon, { className: "filter-by-icon text-primary" }),
15151
+ /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15142
15152
  ] }),
15143
15153
  filterBy?.reduce((acc, item, index4, array) => {
15144
15154
  const prevItem = array[index4 - 1];
15145
15155
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15146
15156
  const isExist = item?.active;
15147
15157
  if (isDifferentGroup) {
15148
- acc.push(/* @__PURE__ */ jsx58("hr", { className: "my-2" }, "separator-" + index4));
15158
+ acc.push(/* @__PURE__ */ jsx59("hr", { className: "my-2" }, "separator-" + index4));
15149
15159
  }
15150
15160
  acc.push(
15151
- /* @__PURE__ */ jsxs35(
15161
+ /* @__PURE__ */ jsxs36(
15152
15162
  "button",
15153
15163
  {
15154
15164
  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)]"}`,
@@ -15173,8 +15183,8 @@ var PopupFilter = ({
15173
15183
  });
15174
15184
  },
15175
15185
  children: [
15176
- isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15177
- /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string ?? item?.help })
15186
+ isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15187
+ /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string ?? item?.help })
15178
15188
  ]
15179
15189
  },
15180
15190
  "filter-" + index4
@@ -15183,16 +15193,16 @@ var PopupFilter = ({
15183
15193
  return acc;
15184
15194
  }, [])
15185
15195
  ] }),
15186
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx58("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15187
- groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
15188
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15189
- /* @__PURE__ */ jsx58(GroupByIcon, { className: "group-by-icon text-primary" }),
15190
- /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15196
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx59("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15197
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
15198
+ /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15199
+ /* @__PURE__ */ jsx59(GroupByIcon, { className: "group-by-icon text-primary" }),
15200
+ /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15191
15201
  ] }),
15192
15202
  groupBy?.map((item, index4) => {
15193
15203
  const isExist = item?.active;
15194
15204
  if (!item.string) return;
15195
- return /* @__PURE__ */ jsxs35(
15205
+ return /* @__PURE__ */ jsxs36(
15196
15206
  "button",
15197
15207
  {
15198
15208
  onClick: () => {
@@ -15216,8 +15226,8 @@ var PopupFilter = ({
15216
15226
  },
15217
15227
  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)]"}`,
15218
15228
  children: [
15219
- isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15220
- /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string })
15229
+ isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15230
+ /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string })
15221
15231
  ]
15222
15232
  },
15223
15233
  "groupby-" + index4 + 1
@@ -15236,7 +15246,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15236
15246
 
15237
15247
  // src/widgets/advanced/search/tag-search/index.tsx
15238
15248
  import { Fragment as Fragment8 } from "react";
15239
- import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15249
+ import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15240
15250
  var TagSearch = ({
15241
15251
  removeSearchItems,
15242
15252
  selectedTags,
@@ -15247,23 +15257,23 @@ var TagSearch = ({
15247
15257
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15248
15258
  if (tag?.values?.length > 0) {
15249
15259
  if (tag?.type !== "group_by") {
15250
- return /* @__PURE__ */ jsxs36(
15260
+ return /* @__PURE__ */ jsxs37(
15251
15261
  "div",
15252
15262
  {
15253
15263
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15254
15264
  children: [
15255
- /* @__PURE__ */ jsx59("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ jsx59(FilterIcon, {}) }),
15256
- /* @__PURE__ */ jsx59("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15257
- return /* @__PURE__ */ jsxs36(Fragment8, { children: [
15258
- /* @__PURE__ */ jsx59("span", { children: value }),
15259
- idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15265
+ /* @__PURE__ */ jsx60("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__ */ jsx60(FilterIcon, {}) }),
15266
+ /* @__PURE__ */ jsx60("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15267
+ return /* @__PURE__ */ jsxs37(Fragment8, { children: [
15268
+ /* @__PURE__ */ jsx60("span", { children: value }),
15269
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15260
15270
  " ",
15261
15271
  instance.t("or"),
15262
15272
  " "
15263
15273
  ] })
15264
15274
  ] }, idx);
15265
15275
  }) }),
15266
- /* @__PURE__ */ jsx59(
15276
+ /* @__PURE__ */ jsx60(
15267
15277
  "button",
15268
15278
  {
15269
15279
  className: "px-2 text-sm font-bold",
@@ -15280,7 +15290,7 @@ var TagSearch = ({
15280
15290
  );
15281
15291
  }
15282
15292
  },
15283
- children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15293
+ children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15284
15294
  }
15285
15295
  )
15286
15296
  ]
@@ -15288,26 +15298,26 @@ var TagSearch = ({
15288
15298
  "selected-tag-" + index4
15289
15299
  );
15290
15300
  } else if (tag?.type === "group_by") {
15291
- return /* @__PURE__ */ jsx59(
15301
+ return /* @__PURE__ */ jsx60(
15292
15302
  "div",
15293
15303
  {
15294
15304
  className: "flex min-h-full overflow-hidden",
15295
- children: /* @__PURE__ */ jsx59("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15296
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
15305
+ children: /* @__PURE__ */ jsx60("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15306
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs37(
15297
15307
  "div",
15298
15308
  {
15299
15309
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15300
15310
  children: [
15301
- /* @__PURE__ */ jsx59("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx59(GroupByIcon, {}) }),
15302
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment9, { children: [
15303
- /* @__PURE__ */ jsx59("span", { children: string }),
15304
- idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15311
+ /* @__PURE__ */ jsx60("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx60(GroupByIcon, {}) }),
15312
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
15313
+ /* @__PURE__ */ jsx60("span", { children: string }),
15314
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15305
15315
  " ",
15306
15316
  "> ",
15307
15317
  " "
15308
15318
  ] })
15309
15319
  ] })),
15310
- /* @__PURE__ */ jsx59(
15320
+ /* @__PURE__ */ jsx60(
15311
15321
  "button",
15312
15322
  {
15313
15323
  className: "pr-2 text-sm font-bold",
@@ -15322,7 +15332,7 @@ var TagSearch = ({
15322
15332
  );
15323
15333
  }
15324
15334
  },
15325
- children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15335
+ children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15326
15336
  }
15327
15337
  )
15328
15338
  ]
@@ -15339,7 +15349,7 @@ var TagSearch = ({
15339
15349
  };
15340
15350
 
15341
15351
  // src/widgets/advanced/search/search-list/index.tsx
15342
- import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15352
+ import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15343
15353
  var SearchList = ({
15344
15354
  handleAddTagSearch,
15345
15355
  handleMouseEnter,
@@ -15349,7 +15359,7 @@ var SearchList = ({
15349
15359
  hoveredIndexSearchList
15350
15360
  }) => {
15351
15361
  const { t: t3 } = useI18n();
15352
- return /* @__PURE__ */ jsx60(
15362
+ return /* @__PURE__ */ jsx61(
15353
15363
  "div",
15354
15364
  {
15355
15365
  style: {
@@ -15361,7 +15371,7 @@ var SearchList = ({
15361
15371
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15362
15372
  return;
15363
15373
  }
15364
- return /* @__PURE__ */ jsxs37(
15374
+ return /* @__PURE__ */ jsxs38(
15365
15375
  "button",
15366
15376
  {
15367
15377
  onClick: () => {
@@ -15383,12 +15393,12 @@ var SearchList = ({
15383
15393
  children: [
15384
15394
  t3("search"),
15385
15395
  " ",
15386
- /* @__PURE__ */ jsx60("span", { className: "font-bold", children: searchItem?.title }),
15396
+ /* @__PURE__ */ jsx61("span", { className: "font-bold", children: searchItem?.title }),
15387
15397
  " ",
15388
15398
  t3("for"),
15389
15399
  ":",
15390
15400
  " ",
15391
- /* @__PURE__ */ jsx60(
15401
+ /* @__PURE__ */ jsx61(
15392
15402
  "span",
15393
15403
  {
15394
15404
  style: {
@@ -15408,7 +15418,7 @@ var SearchList = ({
15408
15418
  };
15409
15419
 
15410
15420
  // src/widgets/advanced/search/search-item/index.tsx
15411
- import { Fragment as Fragment10, jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15421
+ import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
15412
15422
  var Search = ({
15413
15423
  removeSearchItems,
15414
15424
  selectedTags,
@@ -15525,15 +15535,15 @@ var Search = ({
15525
15535
  setDidInit(true);
15526
15536
  setIsReadyFormatDomain(true);
15527
15537
  }, [aid, filterBy, fieldsList]);
15528
- return /* @__PURE__ */ jsxs38(
15538
+ return /* @__PURE__ */ jsxs39(
15529
15539
  "div",
15530
15540
  {
15531
15541
  ref: popupFilterRef,
15532
15542
  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)]`,
15533
15543
  children: [
15534
- /* @__PURE__ */ jsx61("div", { className: "size-5", children: /* @__PURE__ */ jsx61(SearchIcon, {}) }),
15535
- /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15536
- /* @__PURE__ */ jsx61(
15544
+ /* @__PURE__ */ jsx62("div", { className: "size-5", children: /* @__PURE__ */ jsx62(SearchIcon, {}) }),
15545
+ /* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15546
+ /* @__PURE__ */ jsx62(
15537
15547
  TagSearch,
15538
15548
  {
15539
15549
  removeSearchItems,
@@ -15543,7 +15553,7 @@ var Search = ({
15543
15553
  setGroupBy
15544
15554
  }
15545
15555
  ),
15546
- /* @__PURE__ */ jsx61(
15556
+ /* @__PURE__ */ jsx62(
15547
15557
  "input",
15548
15558
  {
15549
15559
  value: searchString,
@@ -15556,7 +15566,7 @@ var Search = ({
15556
15566
  onKeyUp: (e3) => e3.preventDefault()
15557
15567
  }
15558
15568
  ),
15559
- /* @__PURE__ */ jsx61(
15569
+ /* @__PURE__ */ jsx62(
15560
15570
  SearchList,
15561
15571
  {
15562
15572
  handleAddTagSearch,
@@ -15565,8 +15575,8 @@ var Search = ({
15565
15575
  }
15566
15576
  )
15567
15577
  ] }),
15568
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs38(Fragment10, { children: [
15569
- /* @__PURE__ */ jsxs38(
15578
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment10, { children: [
15579
+ /* @__PURE__ */ jsxs39(
15570
15580
  "div",
15571
15581
  {
15572
15582
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -15575,8 +15585,8 @@ var Search = ({
15575
15585
  setShowPopupFilter((prev2) => !prev2);
15576
15586
  },
15577
15587
  children: [
15578
- /* @__PURE__ */ jsx61("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15579
- /* @__PURE__ */ jsx61(
15588
+ /* @__PURE__ */ jsx62("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15589
+ /* @__PURE__ */ jsx62(
15580
15590
  ChevronBottomIcon,
15581
15591
  {
15582
15592
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -15585,7 +15595,7 @@ var Search = ({
15585
15595
  ]
15586
15596
  }
15587
15597
  ),
15588
- showPopupFilter && /* @__PURE__ */ jsx61(
15598
+ showPopupFilter && /* @__PURE__ */ jsx62(
15589
15599
  PopupFilter,
15590
15600
  {
15591
15601
  handleAddTagSearch,
@@ -15604,30 +15614,30 @@ var Search = ({
15604
15614
  };
15605
15615
 
15606
15616
  // src/widgets/basic/active-badge-field/active-badge.tsx
15607
- import { Fragment as Fragment11, jsx as jsx62 } from "react/jsx-runtime";
15617
+ import { Fragment as Fragment11, jsx as jsx63 } from "react/jsx-runtime";
15608
15618
  var ActiveBadgeField = (props) => {
15609
15619
  const { t: t3 } = useI18n();
15610
15620
  const {
15611
15621
  type,
15612
15622
  className
15613
15623
  } = props;
15614
- if (type === void 0) return /* @__PURE__ */ jsx62(Fragment11, {});
15624
+ if (type === void 0) return /* @__PURE__ */ jsx63(Fragment11, {});
15615
15625
  const typeStyle = type ? "text-green-500" : "text-red-500";
15616
15626
  const text = type ? t3("active") : t3("in_active");
15617
- return /* @__PURE__ */ jsx62("div", { className: `${typeStyle} ${className}`, children: text });
15627
+ return /* @__PURE__ */ jsx63("div", { className: `${typeStyle} ${className}`, children: text });
15618
15628
  };
15619
15629
 
15620
15630
  // src/widgets/common/modal-layer.tsx
15621
15631
  import { Fragment as Fragment12 } from "react";
15622
15632
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
15623
- import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
15633
+ import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15624
15634
  var ModalLayer = ({
15625
15635
  isOpen,
15626
15636
  onClose,
15627
15637
  title,
15628
15638
  children
15629
15639
  }) => {
15630
- return /* @__PURE__ */ jsx63(
15640
+ return /* @__PURE__ */ jsx64(
15631
15641
  Transition,
15632
15642
  {
15633
15643
  show: isOpen,
@@ -15638,22 +15648,22 @@ var ModalLayer = ({
15638
15648
  leaveFrom: "transform scale-100 opacity-100",
15639
15649
  leaveTo: "transform scale-95 opacity-0",
15640
15650
  as: Fragment12,
15641
- children: /* @__PURE__ */ jsx63(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx63(DialogPanel, { children: /* @__PURE__ */ jsxs39("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15642
- /* @__PURE__ */ jsx63("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15643
- /* @__PURE__ */ jsx63("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs39("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
15644
- /* @__PURE__ */ jsxs39(
15651
+ children: /* @__PURE__ */ jsx64(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx64(DialogPanel, { children: /* @__PURE__ */ jsxs40("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15652
+ /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15653
+ /* @__PURE__ */ jsx64("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs40("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: [
15654
+ /* @__PURE__ */ jsxs40(
15645
15655
  "div",
15646
15656
  {
15647
15657
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
15648
15658
  children: [
15649
- title && /* @__PURE__ */ jsx63("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15650
- /* @__PURE__ */ jsx63(
15659
+ title && /* @__PURE__ */ jsx64("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15660
+ /* @__PURE__ */ jsx64(
15651
15661
  "button",
15652
15662
  {
15653
15663
  onClick: onClose,
15654
15664
  "aria-label": "Close",
15655
15665
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
15656
- children: /* @__PURE__ */ jsx63(CloseIcon, {})
15666
+ children: /* @__PURE__ */ jsx64(CloseIcon, {})
15657
15667
  }
15658
15668
  )
15659
15669
  ]
@@ -15667,7 +15677,7 @@ var ModalLayer = ({
15667
15677
  };
15668
15678
 
15669
15679
  // src/widgets/common/modal-confirm.tsx
15670
- import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15680
+ import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15671
15681
  var ModalConfirm = ({
15672
15682
  name: name2,
15673
15683
  isShowModal,
@@ -15681,7 +15691,7 @@ var ModalConfirm = ({
15681
15691
  const renderButtonAction = (name3) => {
15682
15692
  switch (name3) {
15683
15693
  case "duplicate":
15684
- return /* @__PURE__ */ jsxs40(
15694
+ return /* @__PURE__ */ jsxs41(
15685
15695
  "button",
15686
15696
  {
15687
15697
  type: "button",
@@ -15689,13 +15699,13 @@ var ModalConfirm = ({
15689
15699
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15690
15700
  disabled: isLoading,
15691
15701
  children: [
15692
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15693
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15702
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15703
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15694
15704
  ]
15695
15705
  }
15696
15706
  );
15697
15707
  case "archive":
15698
- return /* @__PURE__ */ jsxs40(
15708
+ return /* @__PURE__ */ jsxs41(
15699
15709
  "button",
15700
15710
  {
15701
15711
  type: "button",
@@ -15703,13 +15713,13 @@ var ModalConfirm = ({
15703
15713
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15704
15714
  disabled: isLoading,
15705
15715
  children: [
15706
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15707
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15716
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15717
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15708
15718
  ]
15709
15719
  }
15710
15720
  );
15711
15721
  case "unarchive":
15712
- return /* @__PURE__ */ jsxs40(
15722
+ return /* @__PURE__ */ jsxs41(
15713
15723
  "button",
15714
15724
  {
15715
15725
  type: "button",
@@ -15717,13 +15727,13 @@ var ModalConfirm = ({
15717
15727
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15718
15728
  disabled: isLoading,
15719
15729
  children: [
15720
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15721
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15730
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15731
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15722
15732
  ]
15723
15733
  }
15724
15734
  );
15725
15735
  case "delete":
15726
- return /* @__PURE__ */ jsxs40(
15736
+ return /* @__PURE__ */ jsxs41(
15727
15737
  "button",
15728
15738
  {
15729
15739
  type: "button",
@@ -15731,8 +15741,8 @@ var ModalConfirm = ({
15731
15741
  className: "button-primary flex-1 flex items-center justify-center gap-2",
15732
15742
  disabled: isLoading,
15733
15743
  children: [
15734
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15735
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15744
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15745
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15736
15746
  ]
15737
15747
  }
15738
15748
  );
@@ -15740,13 +15750,13 @@ var ModalConfirm = ({
15740
15750
  break;
15741
15751
  }
15742
15752
  };
15743
- return /* @__PURE__ */ jsx64(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15744
- /* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
15745
- /* @__PURE__ */ jsx64("div", { className: "text-[18px] font-bold", children: title }),
15746
- /* @__PURE__ */ jsx64("p", { className: "text-[16px]", children: content })
15753
+ return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15754
+ /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
15755
+ /* @__PURE__ */ jsx65("div", { className: "text-[18px] font-bold", children: title }),
15756
+ /* @__PURE__ */ jsx65("p", { className: "text-[16px]", children: content })
15747
15757
  ] }),
15748
- /* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15749
- /* @__PURE__ */ jsx64(
15758
+ /* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15759
+ /* @__PURE__ */ jsx65(
15750
15760
  "button",
15751
15761
  {
15752
15762
  type: "button",
@@ -15762,8 +15772,8 @@ var ModalConfirm = ({
15762
15772
 
15763
15773
  // src/widgets/common/modal-detail.tsx
15764
15774
  import { useState as useState7 } from "react";
15765
- import { createPortal as createPortal3 } from "react-dom";
15766
- import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15775
+ import { createPortal as createPortal2 } from "react-dom";
15776
+ import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15767
15777
  var ModalDetail = ({
15768
15778
  idToolTip,
15769
15779
  title,
@@ -15785,19 +15795,19 @@ var ModalDetail = ({
15785
15795
  sessionStorage.setItem("actionData", JSON.stringify(actionData));
15786
15796
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
15787
15797
  };
15788
- return createPortal3(
15789
- /* @__PURE__ */ jsx65(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15790
- /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15791
- /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs41("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
15792
- /* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15793
- /* @__PURE__ */ jsxs41(
15798
+ return createPortal2(
15799
+ /* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15800
+ /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15801
+ /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs42("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: [
15802
+ /* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15803
+ /* @__PURE__ */ jsxs42(
15794
15804
  "div",
15795
15805
  {
15796
15806
  id: "modal-detail",
15797
15807
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
15798
15808
  children: [
15799
15809
  t3("detail_button"),
15800
- /* @__PURE__ */ jsx65(
15810
+ /* @__PURE__ */ jsx66(
15801
15811
  "button",
15802
15812
  {
15803
15813
  onClick: handleNavigateDetail,
@@ -15808,9 +15818,9 @@ var ModalDetail = ({
15808
15818
  ]
15809
15819
  }
15810
15820
  ),
15811
- /* @__PURE__ */ jsx65("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx65(CloseIcon, { className: "h-5 w-5" }) })
15821
+ /* @__PURE__ */ jsx66("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx66(CloseIcon, { className: "h-5 w-5" }) })
15812
15822
  ] }),
15813
- /* @__PURE__ */ jsx65("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15823
+ /* @__PURE__ */ jsx66("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15814
15824
  id: idForm,
15815
15825
  aid,
15816
15826
  model,
@@ -15825,7 +15835,7 @@ var ModalDetail = ({
15825
15835
 
15826
15836
  // src/widgets/common/loading-normal.tsx
15827
15837
  import { useEffect as useEffect9, useState as useState8 } from "react";
15828
- import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15838
+ import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
15829
15839
  var LayerLoading = () => {
15830
15840
  const { t: t3 } = useI18n();
15831
15841
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -15835,21 +15845,21 @@ var LayerLoading = () => {
15835
15845
  }, 200);
15836
15846
  return () => clearInterval(interval);
15837
15847
  }, []);
15838
- return /* @__PURE__ */ jsx66("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx66("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs42("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15839
- /* @__PURE__ */ jsx66("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx66(
15848
+ return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs43("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15849
+ /* @__PURE__ */ jsx67("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx67(
15840
15850
  "div",
15841
15851
  {
15842
15852
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
15843
15853
  },
15844
15854
  index4
15845
15855
  )) }),
15846
- /* @__PURE__ */ jsx66("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15856
+ /* @__PURE__ */ jsx67("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15847
15857
  ] }) }) });
15848
15858
  };
15849
15859
 
15850
15860
  // src/widgets/common/loading-small.tsx
15851
15861
  import { useEffect as useEffect10, useState as useState9 } from "react";
15852
- import { jsx as jsx67 } from "react/jsx-runtime";
15862
+ import { jsx as jsx68 } from "react/jsx-runtime";
15853
15863
  var LoadingSmall = () => {
15854
15864
  const [activeIndex, setActiveIndex] = useState9(0);
15855
15865
  useEffect10(() => {
@@ -15858,7 +15868,7 @@ var LoadingSmall = () => {
15858
15868
  }, 200);
15859
15869
  return () => clearInterval(interval);
15860
15870
  }, []);
15861
- return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx67("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx67(
15871
+ return /* @__PURE__ */ jsx68("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx68("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx68("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx68("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx68(
15862
15872
  "div",
15863
15873
  {
15864
15874
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -15867,101 +15877,9 @@ var LoadingSmall = () => {
15867
15877
  )) }) }) }) });
15868
15878
  };
15869
15879
 
15870
- // src/widgets/common/video-player.tsx
15871
- import { useRef as useRef6, useState as useState10 } from "react";
15872
- import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
15873
- var VideoPlayer = ({ src }) => {
15874
- const [isPlaying, setIsPlaying] = useState10(false);
15875
- const videoRef = useRef6(null);
15876
- const handlePlayPause = () => {
15877
- if (videoRef.current) {
15878
- if (isPlaying) {
15879
- videoRef.current.pause();
15880
- } else {
15881
- videoRef.current.play();
15882
- }
15883
- setIsPlaying(!isPlaying);
15884
- }
15885
- };
15886
- const handleFullScreen = () => {
15887
- if (videoRef.current) {
15888
- if (videoRef.current.requestFullscreen) {
15889
- videoRef.current.requestFullscreen();
15890
- } else if (videoRef.current.webkitRequestFullscreen) {
15891
- ;
15892
- videoRef.current.webkitRequestFullscreen();
15893
- } else if (videoRef.current.msRequestFullscreen) {
15894
- ;
15895
- videoRef.current.msRequestFullscreen();
15896
- }
15897
- }
15898
- };
15899
- return /* @__PURE__ */ jsxs43("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
15900
- /* @__PURE__ */ jsx68(
15901
- "video",
15902
- {
15903
- ref: videoRef,
15904
- src,
15905
- className: "w-full rounded-lg",
15906
- onClick: handlePlayPause,
15907
- width: 300,
15908
- height: 300,
15909
- children: "Your browser does not support the video tag."
15910
- }
15911
- ),
15912
- /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15913
- /* @__PURE__ */ jsx68("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx68("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx68(PlayIcon, {}) }) })
15914
- ] });
15915
- };
15916
-
15917
15880
  // src/widgets/common/render-files.tsx
15881
+ import { useEffect as useEffect11, useRef as useRef6, useState as useState10 } from "react";
15918
15882
  import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
15919
- var ImageItem = ({
15920
- filename,
15921
- checksum,
15922
- index: index4,
15923
- src = null,
15924
- useGetImage,
15925
- size: size4,
15926
- id,
15927
- envFile,
15928
- accessToken
15929
- }) => {
15930
- const { data: image } = useGetImage({
15931
- data: { filename, checksum },
15932
- queryKey: [`get-image-${""}`],
15933
- src
15934
- });
15935
- return /* @__PURE__ */ jsx69("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ jsx69(
15936
- "img",
15937
- {
15938
- src: image || src,
15939
- alt: filename,
15940
- className: "w-32 h-32 object-cover rounded-md cursor-pointer"
15941
- }
15942
- ) : /* @__PURE__ */ jsxs44(
15943
- "div",
15944
- {
15945
- onClick: (e3) => {
15946
- e3?.stopPropagation();
15947
- downloadFile(
15948
- `${envFile}api/v2/web/content/${id}?download=true`,
15949
- filename,
15950
- accessToken
15951
- );
15952
- },
15953
- style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
15954
- className: "flex items-center p-2 gap-2 overflow-hidden",
15955
- children: [
15956
- /* @__PURE__ */ jsx69(ImageIcon, {}),
15957
- /* @__PURE__ */ jsxs44("div", { children: [
15958
- /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
15959
- size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
15960
- ] })
15961
- ]
15962
- }
15963
- ) }, index4);
15964
- };
15965
15883
  var FileItem = (props) => {
15966
15884
  const {
15967
15885
  filename,
@@ -15971,54 +15889,100 @@ var FileItem = (props) => {
15971
15889
  src,
15972
15890
  mimetype,
15973
15891
  size: size4,
15974
- useGetImage,
15975
15892
  id,
15976
15893
  envFile,
15977
15894
  accessToken
15978
15895
  } = props;
15896
+ const [name2, ext] = filename.split(".");
15897
+ const shortName = name2.length > 12 ? name2.slice(0, 6) : name2;
15898
+ const [isOpen, setIsOpen] = useState10(false);
15899
+ const tooltipRef = useRef6(null);
15900
+ useEffect11(() => {
15901
+ const handleClickOutside = (event) => {
15902
+ if (tooltipRef.current && !tooltipRef.current.contains(event.target)) {
15903
+ setIsOpen(false);
15904
+ }
15905
+ };
15906
+ if (isOpen) {
15907
+ document.addEventListener("mousedown", handleClickOutside);
15908
+ } else {
15909
+ document.removeEventListener("mousedown", handleClickOutside);
15910
+ }
15911
+ return () => {
15912
+ document.removeEventListener("mousedown", handleClickOutside);
15913
+ };
15914
+ }, [isOpen]);
15979
15915
  const fileTypeIcon = {
15980
15916
  "application/pdf": /* @__PURE__ */ jsx69(PdfIcon, {}),
15981
15917
  "application/zip": /* @__PURE__ */ jsx69(ZipIcon, {}),
15982
15918
  "application/x-zip-compressed": /* @__PURE__ */ jsx69(ZipIcon, {}),
15983
15919
  "application/vnd.ms-excel": /* @__PURE__ */ jsx69(ExcelIcon, {}),
15984
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {})
15920
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {}),
15921
+ "image/png": /* @__PURE__ */ jsx69(ImageIcon, {}),
15922
+ "video/mp4": /* @__PURE__ */ jsx69(VideoIcon, {})
15985
15923
  };
15986
15924
  const renderFile = () => {
15987
- if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
15988
- return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
15989
- } else if (mimetype?.includes("video")) {
15990
- return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
15991
- } else {
15992
- return /* @__PURE__ */ jsxs44(
15993
- "div",
15994
- {
15995
- onClick: (e3) => {
15996
- if (accessToken) {
15997
- e3?.stopPropagation();
15998
- downloadFile(
15999
- `${envFile}api/v2/web/content/${id}?download=true`,
16000
- filename,
16001
- accessToken
16002
- );
16003
- }
16004
- },
16005
- style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16006
- className: "flex items-center p-2 gap-2 overflow-hidden",
16007
- children: [
16008
- fileTypeIcon[mimetype],
16009
- /* @__PURE__ */ jsxs44("div", { children: [
16010
- /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16011
- size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16012
- ] })
16013
- ]
16014
- }
16015
- );
16016
- }
15925
+ return /* @__PURE__ */ jsxs44(
15926
+ "div",
15927
+ {
15928
+ onClick: (e3) => {
15929
+ if (accessToken) {
15930
+ e3?.stopPropagation();
15931
+ downloadFile(
15932
+ `${envFile}api/v2/web/content/${id}?download=true`,
15933
+ filename,
15934
+ accessToken
15935
+ );
15936
+ }
15937
+ },
15938
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
15939
+ className: "flex items-center p-2 gap-2 overflow-hidden rounded-lg",
15940
+ children: [
15941
+ fileTypeIcon[mimetype],
15942
+ /* @__PURE__ */ jsxs44("div", { ref: tooltipRef, className: "relative w-fit", children: [
15943
+ /* @__PURE__ */ jsxs44(
15944
+ "p",
15945
+ {
15946
+ className: "text-[#060606] font-medium text-[14px] cursor-pointer",
15947
+ onClick: () => setIsOpen((prev2) => !prev2),
15948
+ "data-tooltip-id": `field-help-${id}`,
15949
+ "data-tooltip-content": filename,
15950
+ children: [
15951
+ shortName + "...",
15952
+ ".",
15953
+ ext
15954
+ ]
15955
+ }
15956
+ ),
15957
+ /* @__PURE__ */ jsx69(
15958
+ M,
15959
+ {
15960
+ id: `field-help-${id}`,
15961
+ isOpen,
15962
+ place: "top",
15963
+ positionStrategy: "fixed",
15964
+ style: {
15965
+ padding: "6px 12px",
15966
+ fontSize: "12px",
15967
+ borderRadius: "4px",
15968
+ maxWidth: "200%",
15969
+ whiteSpace: "wrap",
15970
+ fontWeight: 400,
15971
+ textTransform: "none",
15972
+ zIndex: 999
15973
+ }
15974
+ }
15975
+ ),
15976
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px] font-semibold text-[#666666]", children: formatFileSize(size4) })
15977
+ ] })
15978
+ ]
15979
+ }
15980
+ );
16017
15981
  };
16018
15982
  return /* @__PURE__ */ jsxs44(
16019
15983
  "div",
16020
15984
  {
16021
- className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
15985
+ className: "flex relative items-center justify-between group rounded-md w-fit",
16022
15986
  children: [
16023
15987
  renderFile(),
16024
15988
  handleRemoveFile && /* @__PURE__ */ jsx69(
@@ -16083,7 +16047,6 @@ var downloadFile = async (url, filename, accessToken) => {
16083
16047
  var RenderFiles = ({
16084
16048
  selectedFiles,
16085
16049
  setSelectedFiles,
16086
- useGetImage,
16087
16050
  envFile,
16088
16051
  accessToken
16089
16052
  }) => {
@@ -16097,7 +16060,7 @@ var RenderFiles = ({
16097
16060
  e3.stopPropagation();
16098
16061
  downloadFile(url, name2);
16099
16062
  };
16100
- return /* @__PURE__ */ jsx69("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16063
+ return /* @__PURE__ */ jsx69("div", { className: "flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16101
16064
  return /* @__PURE__ */ jsx69("div", { className: "relative group/file", children: /* @__PURE__ */ jsx69(
16102
16065
  FileItem,
16103
16066
  {
@@ -16108,7 +16071,6 @@ var RenderFiles = ({
16108
16071
  index: index4,
16109
16072
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16110
16073
  handleFileDownload,
16111
- useGetImage,
16112
16074
  envFile,
16113
16075
  accessToken
16114
16076
  }
@@ -16315,7 +16277,8 @@ var ButtonSelectFiles = ({
16315
16277
  useUploadFile,
16316
16278
  env,
16317
16279
  service,
16318
- user
16280
+ user,
16281
+ isText
16319
16282
  }) => {
16320
16283
  const { t: t3 } = useI18n();
16321
16284
  const ALLOWED_TYPES = [
@@ -16326,8 +16289,7 @@ var ButtonSelectFiles = ({
16326
16289
  "application/zip",
16327
16290
  "application/x-zip-compressed",
16328
16291
  "application/vnd.ms-excel",
16329
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
16330
- "application/json"
16292
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
16331
16293
  ];
16332
16294
  const MAX_FILE_SIZE = 10 * 1024 * 1024;
16333
16295
  const MAX_TOTAL_SIZE = 50 * 1024 * 1024;
@@ -16416,7 +16378,7 @@ var ButtonSelectFiles = ({
16416
16378
  onClick: () => fileInputRef.current.click(),
16417
16379
  children: [
16418
16380
  /* @__PURE__ */ jsx70(AttachIcon, {}),
16419
- /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16381
+ isText && /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16420
16382
  ]
16421
16383
  }
16422
16384
  ),
@@ -16428,14 +16390,61 @@ var ButtonSelectFiles = ({
16428
16390
  style: { display: "none" },
16429
16391
  onChange: handleOnChange,
16430
16392
  multiple: true,
16431
- accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
16393
+ accept: ".jpeg,.jpg,.png,.pdf,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
16432
16394
  }
16433
16395
  )
16434
16396
  ] });
16435
16397
  };
16436
16398
 
16399
+ // src/widgets/common/video-player.tsx
16400
+ import { useRef as useRef7, useState as useState11 } from "react";
16401
+ import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16402
+ var VideoPlayer = ({ src }) => {
16403
+ const [isPlaying, setIsPlaying] = useState11(false);
16404
+ const videoRef = useRef7(null);
16405
+ const handlePlayPause = () => {
16406
+ if (videoRef.current) {
16407
+ if (isPlaying) {
16408
+ videoRef.current.pause();
16409
+ } else {
16410
+ videoRef.current.play();
16411
+ }
16412
+ setIsPlaying(!isPlaying);
16413
+ }
16414
+ };
16415
+ const handleFullScreen = () => {
16416
+ if (videoRef.current) {
16417
+ if (videoRef.current.requestFullscreen) {
16418
+ videoRef.current.requestFullscreen();
16419
+ } else if (videoRef.current.webkitRequestFullscreen) {
16420
+ ;
16421
+ videoRef.current.webkitRequestFullscreen();
16422
+ } else if (videoRef.current.msRequestFullscreen) {
16423
+ ;
16424
+ videoRef.current.msRequestFullscreen();
16425
+ }
16426
+ }
16427
+ };
16428
+ return /* @__PURE__ */ jsxs46("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: [
16429
+ /* @__PURE__ */ jsx71(
16430
+ "video",
16431
+ {
16432
+ ref: videoRef,
16433
+ src,
16434
+ className: "w-full rounded-lg",
16435
+ onClick: handlePlayPause,
16436
+ width: 300,
16437
+ height: 300,
16438
+ children: "Your browser does not support the video tag."
16439
+ }
16440
+ ),
16441
+ /* @__PURE__ */ jsx71("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16442
+ /* @__PURE__ */ jsx71("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__ */ jsx71("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx71(PlayIcon, {}) }) })
16443
+ ] });
16444
+ };
16445
+
16437
16446
  // src/widgets/basic/avatar-field/avatar.tsx
16438
- import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16447
+ import { Fragment as Fragment15, jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16439
16448
  var AvatarField = (props) => {
16440
16449
  const {
16441
16450
  isForm = false,
@@ -16459,8 +16468,8 @@ var AvatarField = (props) => {
16459
16468
  color: textColor,
16460
16469
  fontSize: `${size4 / 2.5}px`
16461
16470
  };
16462
- return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16463
- isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16471
+ return /* @__PURE__ */ jsxs47(Fragment15, { children: [
16472
+ isForm && allowShowDetail && /* @__PURE__ */ jsx72(
16464
16473
  ModalDetail,
16465
16474
  {
16466
16475
  idToolTip: `avatar-widget-id-${id}`,
@@ -16471,7 +16480,7 @@ var AvatarField = (props) => {
16471
16480
  place: "top-start"
16472
16481
  }
16473
16482
  ),
16474
- allowShowDetail && /* @__PURE__ */ jsx71(
16483
+ allowShowDetail && /* @__PURE__ */ jsx72(
16475
16484
  M,
16476
16485
  {
16477
16486
  id: `avatar-widget-id-${id}`,
@@ -16480,7 +16489,7 @@ var AvatarField = (props) => {
16480
16489
  className: "z-20"
16481
16490
  }
16482
16491
  ),
16483
- avatarSrc ? /* @__PURE__ */ jsx71(
16492
+ avatarSrc ? /* @__PURE__ */ jsx72(
16484
16493
  "img",
16485
16494
  {
16486
16495
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16488,7 +16497,7 @@ var AvatarField = (props) => {
16488
16497
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16489
16498
  alt: "Avatar"
16490
16499
  }
16491
- ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16500
+ ) : /* @__PURE__ */ jsx72("div", { children: /* @__PURE__ */ jsx72(
16492
16501
  "div",
16493
16502
  {
16494
16503
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16501,7 +16510,7 @@ var AvatarField = (props) => {
16501
16510
  };
16502
16511
 
16503
16512
  // src/widgets/basic/binary-field/binary.tsx
16504
- import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16513
+ import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
16505
16514
  var BinaryField = (props) => {
16506
16515
  const {
16507
16516
  name: name2,
@@ -16524,7 +16533,7 @@ var BinaryField = (props) => {
16524
16533
  image
16525
16534
  } = props;
16526
16535
  const { t: t3 } = useI18n();
16527
- return /* @__PURE__ */ jsx72(
16536
+ return /* @__PURE__ */ jsx73(
16528
16537
  Controller,
16529
16538
  {
16530
16539
  name: name2 ?? "",
@@ -16534,13 +16543,13 @@ var BinaryField = (props) => {
16534
16543
  },
16535
16544
  render: ({ field }) => {
16536
16545
  const renderImage = initialImage || selectedImage;
16537
- return /* @__PURE__ */ jsx72(
16546
+ return /* @__PURE__ */ jsx73(
16538
16547
  "div",
16539
16548
  {
16540
16549
  ref: binaryRef,
16541
16550
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16542
- children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
16543
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16551
+ children: renderImage ? /* @__PURE__ */ jsxs48("div", { className: "relative group", children: [
16552
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx73(
16544
16553
  "img",
16545
16554
  {
16546
16555
  style: {
@@ -16551,7 +16560,7 @@ var BinaryField = (props) => {
16551
16560
  alt: "Selected",
16552
16561
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16553
16562
  }
16554
- ) : renderImage ? /* @__PURE__ */ jsx72(
16563
+ ) : renderImage ? /* @__PURE__ */ jsx73(
16555
16564
  "img",
16556
16565
  {
16557
16566
  style: {
@@ -16562,17 +16571,17 @@ var BinaryField = (props) => {
16562
16571
  alt: "Selected",
16563
16572
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16564
16573
  }
16565
- ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
16566
- !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16574
+ ) : /* @__PURE__ */ jsx73(PlaceHolderIcon, {}),
16575
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx73(
16567
16576
  "button",
16568
16577
  {
16569
16578
  type: "button",
16570
16579
  onClick: () => handleRemoveImage(field.onChange),
16571
16580
  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",
16572
- children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16581
+ children: /* @__PURE__ */ jsx73(DeleteIcon, {})
16573
16582
  }
16574
16583
  )
16575
- ] }) : /* @__PURE__ */ jsxs47(
16584
+ ] }) : /* @__PURE__ */ jsxs48(
16576
16585
  "label",
16577
16586
  {
16578
16587
  htmlFor: inputId,
@@ -16582,7 +16591,7 @@ var BinaryField = (props) => {
16582
16591
  },
16583
16592
  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"}`,
16584
16593
  children: [
16585
- /* @__PURE__ */ jsx72(
16594
+ /* @__PURE__ */ jsx73(
16586
16595
  "input",
16587
16596
  {
16588
16597
  id: inputId,
@@ -16594,8 +16603,8 @@ var BinaryField = (props) => {
16594
16603
  className: "hidden z-10 relative"
16595
16604
  }
16596
16605
  ),
16597
- /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
16598
- /* @__PURE__ */ jsx72(
16606
+ /* @__PURE__ */ jsx73("img", { src: image, alt: "", className: "z-0 relative" }),
16607
+ /* @__PURE__ */ jsx73(
16599
16608
  "div",
16600
16609
  {
16601
16610
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -16604,7 +16613,7 @@ var BinaryField = (props) => {
16604
16613
  left: "-8px",
16605
16614
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16606
16615
  },
16607
- children: /* @__PURE__ */ jsx72(
16616
+ children: /* @__PURE__ */ jsx73(
16608
16617
  "svg",
16609
16618
  {
16610
16619
  xmlns: "http://www.w3.org/2000/svg",
@@ -16612,7 +16621,7 @@ var BinaryField = (props) => {
16612
16621
  height: "14",
16613
16622
  viewBox: "0 0 14 14",
16614
16623
  fill: "none",
16615
- children: /* @__PURE__ */ jsx72(
16624
+ children: /* @__PURE__ */ jsx73(
16616
16625
  "path",
16617
16626
  {
16618
16627
  "fill-rule": "evenodd",
@@ -16636,7 +16645,7 @@ var BinaryField = (props) => {
16636
16645
  };
16637
16646
 
16638
16647
  // src/widgets/basic/button-badge-field/button-badge.tsx
16639
- import { jsx as jsx73 } from "react/jsx-runtime";
16648
+ import { jsx as jsx74 } from "react/jsx-runtime";
16640
16649
  var typeStyles = {
16641
16650
  primary: {
16642
16651
  backgroundColor: "#3b82f6",
@@ -16711,11 +16720,11 @@ var ButtonBadgeField = (props) => {
16711
16720
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16712
16721
  };
16713
16722
  const label = getLabel(defaultValue ?? value);
16714
- return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16723
+ return label ? /* @__PURE__ */ jsx74("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16715
16724
  };
16716
16725
 
16717
16726
  // src/widgets/basic/button-field/button.tsx
16718
- import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
16727
+ import { Fragment as Fragment16, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
16719
16728
  var ButtonField = (props) => {
16720
16729
  const {
16721
16730
  func,
@@ -16726,7 +16735,7 @@ var ButtonField = (props) => {
16726
16735
  type = "submit"
16727
16736
  } = props;
16728
16737
  const { t: t3 } = useI18n();
16729
- return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
16738
+ return /* @__PURE__ */ jsx75(Fragment16, { children: !loading ? /* @__PURE__ */ jsx75(
16730
16739
  "button",
16731
16740
  {
16732
16741
  type,
@@ -16735,7 +16744,7 @@ var ButtonField = (props) => {
16735
16744
  onClick: func,
16736
16745
  children: t3(content)
16737
16746
  }
16738
- ) : /* @__PURE__ */ jsxs48(
16747
+ ) : /* @__PURE__ */ jsxs49(
16739
16748
  "button",
16740
16749
  {
16741
16750
  type,
@@ -16744,15 +16753,15 @@ var ButtonField = (props) => {
16744
16753
  children: [
16745
16754
  t3("loading"),
16746
16755
  " ",
16747
- /* @__PURE__ */ jsx74(LoadingIcon, {})
16756
+ /* @__PURE__ */ jsx75(LoadingIcon, {})
16748
16757
  ]
16749
16758
  }
16750
16759
  ) });
16751
16760
  };
16752
16761
 
16753
16762
  // src/widgets/basic/char-field/char.tsx
16754
- import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
16755
- import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
16763
+ import { useEffect as useEffect12, useMemo as useMemo4 } from "react";
16764
+ import { Fragment as Fragment17, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
16756
16765
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16757
16766
  var CharField = (props) => {
16758
16767
  const {
@@ -16780,9 +16789,9 @@ var CharField = (props) => {
16780
16789
  } = props;
16781
16790
  if (!isForm && !isEditTable) {
16782
16791
  const propValue = value || defaultValue;
16783
- return /* @__PURE__ */ jsx75("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16792
+ return /* @__PURE__ */ jsx76("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16784
16793
  }
16785
- return /* @__PURE__ */ jsx75(
16794
+ return /* @__PURE__ */ jsx76(
16786
16795
  Controller,
16787
16796
  {
16788
16797
  name: name2 ?? "",
@@ -16810,12 +16819,12 @@ var CharField = (props) => {
16810
16819
  fieldState: { error: error2, isDirty }
16811
16820
  }) => {
16812
16821
  const { setError, clearErrors } = methods;
16813
- useEffect11(() => {
16822
+ useEffect12(() => {
16814
16823
  if (value2) {
16815
16824
  clearErrors(name2);
16816
16825
  }
16817
16826
  }, [value2, clearErrors, name2]);
16818
- useEffect11(() => {
16827
+ useEffect12(() => {
16819
16828
  if (widget !== WIDGET_AUTO_COMPUTE_DEPEND) return;
16820
16829
  const depValue = formValues?.[options2?.depend_field]?.[options2?.field_name];
16821
16830
  const currentValue = methods?.getValues(name2);
@@ -16836,8 +16845,8 @@ var CharField = (props) => {
16836
16845
  }
16837
16846
  return "";
16838
16847
  }, [widget, formValues]);
16839
- return /* @__PURE__ */ jsxs49(Fragment17, { children: [
16840
- /* @__PURE__ */ jsx75(
16848
+ return /* @__PURE__ */ jsxs50(Fragment17, { children: [
16849
+ /* @__PURE__ */ jsx76(
16841
16850
  "input",
16842
16851
  {
16843
16852
  value: displayValue ?? "",
@@ -16898,7 +16907,7 @@ var CharField = (props) => {
16898
16907
  `
16899
16908
  }
16900
16909
  ),
16901
- isEditTable ? /* @__PURE__ */ jsx75(Fragment17, {}) : /* @__PURE__ */ jsx75(Fragment17, { children: error2 && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16910
+ isEditTable ? /* @__PURE__ */ jsx76(Fragment17, {}) : /* @__PURE__ */ jsx76(Fragment17, { children: error2 && /* @__PURE__ */ jsx76("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16902
16911
  ] });
16903
16912
  }
16904
16913
  }
@@ -16906,7 +16915,7 @@ var CharField = (props) => {
16906
16915
  };
16907
16916
 
16908
16917
  // src/widgets/basic/checkbox-field/checkbox.tsx
16909
- import { jsx as jsx76 } from "react/jsx-runtime";
16918
+ import { jsx as jsx77 } from "react/jsx-runtime";
16910
16919
  var CheckboxField = (props) => {
16911
16920
  const {
16912
16921
  name: name2,
@@ -16921,9 +16930,9 @@ var CheckboxField = (props) => {
16921
16930
  } = props;
16922
16931
  if (!isForm) {
16923
16932
  if (name2 === "is_active" || name2 === "active") {
16924
- return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
16933
+ return /* @__PURE__ */ jsx77(ActiveBadgeField, { type: value });
16925
16934
  } else {
16926
- return /* @__PURE__ */ jsx76(
16935
+ return /* @__PURE__ */ jsx77(
16927
16936
  "input",
16928
16937
  {
16929
16938
  type: "checkbox",
@@ -16934,12 +16943,12 @@ var CheckboxField = (props) => {
16934
16943
  );
16935
16944
  }
16936
16945
  }
16937
- return /* @__PURE__ */ jsx76(
16946
+ return /* @__PURE__ */ jsx77(
16938
16947
  Controller,
16939
16948
  {
16940
16949
  name: name2 ?? "",
16941
16950
  control: methods?.control,
16942
- render: ({ field }) => /* @__PURE__ */ jsx76(
16951
+ render: ({ field }) => /* @__PURE__ */ jsx77(
16943
16952
  "div",
16944
16953
  {
16945
16954
  className: "flex items-center gap-2",
@@ -16952,7 +16961,7 @@ var CheckboxField = (props) => {
16952
16961
  onChange2(name2 ?? "", checked);
16953
16962
  }
16954
16963
  },
16955
- children: /* @__PURE__ */ jsx76(
16964
+ children: /* @__PURE__ */ jsx77(
16956
16965
  "input",
16957
16966
  {
16958
16967
  ...field,
@@ -16979,24 +16988,24 @@ var CheckboxField = (props) => {
16979
16988
  };
16980
16989
 
16981
16990
  // src/widgets/basic/color-field/color-wrapper.tsx
16982
- import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
16983
- import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
16991
+ import { useEffect as useEffect13, useRef as useRef8, useState as useState12 } from "react";
16992
+ import { Fragment as Fragment18, jsx as jsx78, jsxs as jsxs51 } from "react/jsx-runtime";
16984
16993
  var ColorWrapper = (props) => {
16985
16994
  const {
16986
16995
  colors: colors2,
16987
16996
  defaultColor,
16988
16997
  savePickColor
16989
16998
  } = props;
16990
- const [selectedColor, setSelectedColor] = useState11(colors2[defaultColor]);
16991
- const [showFullColors, setIsShowFullColor] = useState11(false);
16992
- const pickColorsRef = useRef7(null);
16993
- useEffect12(() => {
16999
+ const [selectedColor, setSelectedColor] = useState12(colors2[defaultColor]);
17000
+ const [showFullColors, setIsShowFullColor] = useState12(false);
17001
+ const pickColorsRef = useRef8(null);
17002
+ useEffect13(() => {
16994
17003
  setSelectedColor(colors2[defaultColor]);
16995
17004
  }, [defaultColor]);
16996
17005
  const handleShowFullColors = () => {
16997
17006
  setIsShowFullColor(!showFullColors);
16998
17007
  };
16999
- useEffect12(() => {
17008
+ useEffect13(() => {
17000
17009
  const handleClickOutside = (event) => {
17001
17010
  if (pickColorsRef.current && !pickColorsRef.current.contains(event.target)) {
17002
17011
  setIsShowFullColor(false);
@@ -17007,8 +17016,8 @@ var ColorWrapper = (props) => {
17007
17016
  document.removeEventListener("mousedown", handleClickOutside);
17008
17017
  };
17009
17018
  }, []);
17010
- return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17011
- /* @__PURE__ */ jsx77(
17019
+ return /* @__PURE__ */ jsx78("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx78("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs51("div", { children: [
17020
+ /* @__PURE__ */ jsx78(
17012
17021
  "button",
17013
17022
  {
17014
17023
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17022,7 +17031,7 @@ var ColorWrapper = (props) => {
17022
17031
  }
17023
17032
  }
17024
17033
  ),
17025
- /* @__PURE__ */ jsx77(
17034
+ /* @__PURE__ */ jsx78(
17026
17035
  M,
17027
17036
  {
17028
17037
  className: "",
@@ -17031,8 +17040,8 @@ var ColorWrapper = (props) => {
17031
17040
  content: i18n_default.t(color?.name)
17032
17041
  }
17033
17042
  )
17034
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17035
- /* @__PURE__ */ jsx77(
17043
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs51(Fragment18, { children: [
17044
+ /* @__PURE__ */ jsx78(
17036
17045
  "button",
17037
17046
  {
17038
17047
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17045,7 +17054,7 @@ var ColorWrapper = (props) => {
17045
17054
  style: { backgroundColor: selectedColor?.color }
17046
17055
  }
17047
17056
  ),
17048
- /* @__PURE__ */ jsx77(
17057
+ /* @__PURE__ */ jsx78(
17049
17058
  M,
17050
17059
  {
17051
17060
  place: "top",
@@ -17057,13 +17066,13 @@ var ColorWrapper = (props) => {
17057
17066
  };
17058
17067
 
17059
17068
  // src/widgets/basic/color-field/color.tsx
17060
- import { jsx as jsx78 } from "react/jsx-runtime";
17069
+ import { jsx as jsx79 } from "react/jsx-runtime";
17061
17070
  var ColorField = (props) => {
17062
17071
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17063
17072
  if (!isForm) {
17064
- return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17073
+ return /* @__PURE__ */ jsx79(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17065
17074
  }
17066
- return /* @__PURE__ */ jsx78(
17075
+ return /* @__PURE__ */ jsx79(
17067
17076
  Controller,
17068
17077
  {
17069
17078
  name: name2 ?? "",
@@ -17073,7 +17082,7 @@ var ColorField = (props) => {
17073
17082
  field.onChange(color?.id);
17074
17083
  onChange2 && onChange2(name2 ?? "", color?.id);
17075
17084
  };
17076
- return /* @__PURE__ */ jsx78(
17085
+ return /* @__PURE__ */ jsx79(
17077
17086
  ColorWrapper,
17078
17087
  {
17079
17088
  savePickColor: handlePickColorChange,
@@ -17087,8 +17096,8 @@ var ColorField = (props) => {
17087
17096
  };
17088
17097
 
17089
17098
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17090
- import { useEffect as useEffect13 } from "react";
17091
- import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
17099
+ import { useEffect as useEffect14 } from "react";
17100
+ import { jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
17092
17101
  var CopyLinkButtonField = (props) => {
17093
17102
  const {
17094
17103
  isForm,
@@ -17107,9 +17116,9 @@ var CopyLinkButtonField = (props) => {
17107
17116
  } = props;
17108
17117
  const { t: t3 } = useI18n();
17109
17118
  if (!isForm) {
17110
- return /* @__PURE__ */ jsx79("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17119
+ return /* @__PURE__ */ jsx80("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17111
17120
  }
17112
- return /* @__PURE__ */ jsx79(
17121
+ return /* @__PURE__ */ jsx80(
17113
17122
  Controller,
17114
17123
  {
17115
17124
  name: name2 ?? "",
@@ -17122,13 +17131,13 @@ var CopyLinkButtonField = (props) => {
17122
17131
  fieldState: { error: error2 }
17123
17132
  }) => {
17124
17133
  const { setError, clearErrors } = methods;
17125
- useEffect13(() => {
17134
+ useEffect14(() => {
17126
17135
  if (value) {
17127
17136
  clearErrors(name2);
17128
17137
  }
17129
17138
  }, [value]);
17130
- return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17131
- /* @__PURE__ */ jsxs51(
17139
+ return /* @__PURE__ */ jsxs52("div", { className: "relative", children: [
17140
+ /* @__PURE__ */ jsxs52(
17132
17141
  "div",
17133
17142
  {
17134
17143
  "aria-disabled": readonly,
@@ -17137,7 +17146,7 @@ var CopyLinkButtonField = (props) => {
17137
17146
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17138
17147
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17139
17148
  children: [
17140
- /* @__PURE__ */ jsx79(
17149
+ /* @__PURE__ */ jsx80(
17141
17150
  "input",
17142
17151
  {
17143
17152
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17178,19 +17187,19 @@ var CopyLinkButtonField = (props) => {
17178
17187
  `
17179
17188
  }
17180
17189
  ),
17181
- readonly && value && /* @__PURE__ */ jsx79(
17190
+ readonly && value && /* @__PURE__ */ jsx80(
17182
17191
  "button",
17183
17192
  {
17184
17193
  className: "cursor-pointer",
17185
17194
  type: "button",
17186
17195
  onClick: () => handleCopyToClipboard(propValue),
17187
- children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17196
+ children: isCopied ? /* @__PURE__ */ jsx80(CheckIcon, {}) : /* @__PURE__ */ jsx80(CopyIcon, {})
17188
17197
  }
17189
17198
  )
17190
17199
  ]
17191
17200
  }
17192
17201
  ),
17193
- error2 && /* @__PURE__ */ jsx79("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17202
+ error2 && /* @__PURE__ */ jsx80("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17194
17203
  ] });
17195
17204
  }
17196
17205
  }
@@ -17198,10 +17207,10 @@ var CopyLinkButtonField = (props) => {
17198
17207
  };
17199
17208
 
17200
17209
  // src/widgets/basic/date-field/date.tsx
17201
- import { forwardRef as forwardRef6, useEffect as useEffect17 } from "react";
17210
+ import { forwardRef as forwardRef6, useEffect as useEffect18 } from "react";
17202
17211
 
17203
17212
  // node_modules/react-datepicker/dist/index.es.js
17204
- import React9, { useRef as useRef11, useCallback as useCallback5, useEffect as useEffect15, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
17213
+ import React9, { useRef as useRef12, useCallback as useCallback5, useEffect as useEffect16, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
17205
17214
 
17206
17215
  // node_modules/date-fns/constants.js
17207
17216
  var daysInYear = 365.2425;
@@ -21131,7 +21140,7 @@ function useEffectEvent(callback) {
21131
21140
  }
21132
21141
 
21133
21142
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21134
- import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
21143
+ import { jsx as jsx81, jsxs as jsxs53, Fragment as Fragment19 } from "react/jsx-runtime";
21135
21144
  import * as ReactDOM2 from "react-dom";
21136
21145
 
21137
21146
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21529,7 +21538,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21529
21538
  bottom: isCustomShape ? "" : "rotate(180deg)",
21530
21539
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21531
21540
  }[side];
21532
- return /* @__PURE__ */ jsxs52("svg", {
21541
+ return /* @__PURE__ */ jsxs53("svg", {
21533
21542
  ...rest,
21534
21543
  "aria-hidden": true,
21535
21544
  ref,
@@ -21545,18 +21554,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21545
21554
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21546
21555
  ...restStyle
21547
21556
  },
21548
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21557
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx81("path", {
21549
21558
  clipPath: "url(#" + clipPathId + ")",
21550
21559
  fill: "none",
21551
21560
  stroke,
21552
21561
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21553
21562
  d: dValue
21554
- }), /* @__PURE__ */ jsx80("path", {
21563
+ }), /* @__PURE__ */ jsx81("path", {
21555
21564
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21556
21565
  d: dValue
21557
- }), /* @__PURE__ */ jsx80("clipPath", {
21566
+ }), /* @__PURE__ */ jsx81("clipPath", {
21558
21567
  id: clipPathId,
21559
- children: /* @__PURE__ */ jsx80("rect", {
21568
+ children: /* @__PURE__ */ jsx81("rect", {
21560
21569
  x: -halfStrokeWidth,
21561
21570
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21562
21571
  width: width + computedStrokeWidth,
@@ -21771,8 +21780,8 @@ var CalendarContainer = function(_a2) {
21771
21780
  return React9.createElement("div", { className, role: "dialog", "aria-label": ariaLabel, "aria-modal": "true" }, children);
21772
21781
  };
21773
21782
  var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21774
- var ref = useRef11(null);
21775
- var onClickOutsideRef = useRef11(onClickOutside);
21783
+ var ref = useRef12(null);
21784
+ var onClickOutsideRef = useRef12(onClickOutside);
21776
21785
  onClickOutsideRef.current = onClickOutside;
21777
21786
  var handleClickOutside = useCallback5(function(event) {
21778
21787
  var _a2;
@@ -21785,7 +21794,7 @@ var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21785
21794
  }
21786
21795
  }
21787
21796
  }, [ignoreClass]);
21788
- useEffect15(function() {
21797
+ useEffect16(function() {
21789
21798
  document.addEventListener("mousedown", handleClickOutside);
21790
21799
  return function() {
21791
21800
  document.removeEventListener("mousedown", handleClickOutside);
@@ -25026,7 +25035,7 @@ function withFloating(Component3) {
25026
25035
  var WithFloating = function(props) {
25027
25036
  var _a2;
25028
25037
  var hidePopper = typeof props.hidePopper === "boolean" ? props.hidePopper : true;
25029
- var arrowRef = useRef11(null);
25038
+ var arrowRef = useRef12(null);
25030
25039
  var floatingProps = useFloating2(_assign({ open: !hidePopper, whileElementsMounted: autoUpdate, placement: props.popperPlacement, middleware: __spreadArray([
25031
25040
  flip3({ padding: 15 }),
25032
25041
  offset3(10),
@@ -26038,13 +26047,13 @@ function _objectWithoutProperties(e3, t3) {
26038
26047
  }
26039
26048
 
26040
26049
  // node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
26041
- import { useState as useState14, useCallback as useCallback6 } from "react";
26050
+ import { useState as useState15, useCallback as useCallback6 } from "react";
26042
26051
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
26043
26052
  function useStateManager(_ref3) {
26044
26053
  var _ref$defaultInputValu = _ref3.defaultInputValue, defaultInputValue = _ref$defaultInputValu === void 0 ? "" : _ref$defaultInputValu, _ref$defaultMenuIsOpe = _ref3.defaultMenuIsOpen, defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, _ref$defaultValue = _ref3.defaultValue, defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, propsInputValue = _ref3.inputValue, propsMenuIsOpen = _ref3.menuIsOpen, propsOnChange = _ref3.onChange, propsOnInputChange = _ref3.onInputChange, propsOnMenuClose = _ref3.onMenuClose, propsOnMenuOpen = _ref3.onMenuOpen, propsValue = _ref3.value, restSelectProps = _objectWithoutProperties(_ref3, _excluded);
26045
- var _useState = useState14(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
26046
- var _useState3 = useState14(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
26047
- var _useState5 = useState14(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
26054
+ var _useState = useState15(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
26055
+ var _useState3 = useState15(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
26056
+ var _useState5 = useState15(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
26048
26057
  var onChange2 = useCallback6(function(value2, actionMeta) {
26049
26058
  if (typeof propsOnChange === "function") {
26050
26059
  propsOnChange(value2, actionMeta);
@@ -26205,7 +26214,7 @@ function _toConsumableArray(r4) {
26205
26214
 
26206
26215
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
26207
26216
  import * as React13 from "react";
26208
- import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect16, Component as Component2 } from "react";
26217
+ import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef15, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
26209
26218
 
26210
26219
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
26211
26220
  import * as React11 from "react";
@@ -27489,7 +27498,7 @@ var Emotion$1 = Emotion;
27489
27498
  import * as React12 from "react";
27490
27499
  var import_extends2 = __toESM(require_extends());
27491
27500
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27492
- var jsx81 = function jsx82(type, props) {
27501
+ var jsx82 = function jsx83(type, props) {
27493
27502
  var args = arguments;
27494
27503
  if (props == null || !hasOwn.call(props, "css")) {
27495
27504
  return React12.createElement.apply(void 0, args);
@@ -27507,7 +27516,7 @@ var jsx81 = function jsx82(type, props) {
27507
27516
  var JSX;
27508
27517
  /* @__PURE__ */ (function(_JSX) {
27509
27518
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27510
- })(jsx81 || (jsx81 = {}));
27519
+ })(jsx82 || (jsx82 = {}));
27511
27520
  function css() {
27512
27521
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27513
27522
  args[_key] = arguments[_key];
@@ -27537,8 +27546,8 @@ function _taggedTemplateLiteral(e3, t3) {
27537
27546
  }
27538
27547
 
27539
27548
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27540
- import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27541
- import { createPortal as createPortal5 } from "react-dom";
27549
+ import { useContext as useContext9, useRef as useRef14, useState as useState16, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27550
+ import { createPortal as createPortal4 } from "react-dom";
27542
27551
 
27543
27552
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
27544
27553
  import { useLayoutEffect as useLayoutEffect4 } from "react";
@@ -27883,9 +27892,9 @@ var PortalPlacementContext = /* @__PURE__ */ createContext5(null);
27883
27892
  var MenuPlacer = function MenuPlacer2(props) {
27884
27893
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
27885
27894
  var _ref3 = useContext9(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
27886
- var ref = useRef13(null);
27887
- var _useState = useState15(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
27888
- var _useState3 = useState15(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
27895
+ var ref = useRef14(null);
27896
+ var _useState = useState16(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
27897
+ var _useState3 = useState16(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
27889
27898
  var controlHeight2 = theme.spacing.controlHeight;
27890
27899
  index3(function() {
27891
27900
  var menuEl = ref.current;
@@ -27915,7 +27924,7 @@ var MenuPlacer = function MenuPlacer2(props) {
27915
27924
  };
27916
27925
  var Menu = function Menu2(props) {
27917
27926
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
27918
- return jsx81("div", _extends({}, getStyleProps(props, "menu", {
27927
+ return jsx82("div", _extends({}, getStyleProps(props, "menu", {
27919
27928
  menu: true
27920
27929
  }), {
27921
27930
  ref: innerRef
@@ -27937,7 +27946,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
27937
27946
  };
27938
27947
  var MenuList = function MenuList2(props) {
27939
27948
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
27940
- return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
27949
+ return jsx82("div", _extends({}, getStyleProps(props, "menuList", {
27941
27950
  "menu-list": true,
27942
27951
  "menu-list--is-multi": isMulti
27943
27952
  }), {
@@ -27957,7 +27966,7 @@ var noOptionsMessageCSS = noticeCSS;
27957
27966
  var loadingMessageCSS = noticeCSS;
27958
27967
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27959
27968
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
27960
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27969
+ return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27961
27970
  children,
27962
27971
  innerProps
27963
27972
  }), "noOptionsMessage", {
@@ -27967,7 +27976,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27967
27976
  };
27968
27977
  var LoadingMessage = function LoadingMessage2(_ref7) {
27969
27978
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
27970
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27979
+ return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27971
27980
  children,
27972
27981
  innerProps
27973
27982
  }), "loadingMessage", {
@@ -27987,15 +27996,15 @@ var menuPortalCSS = function menuPortalCSS2(_ref8) {
27987
27996
  };
27988
27997
  var MenuPortal = function MenuPortal2(props) {
27989
27998
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
27990
- var menuPortalRef = useRef13(null);
27991
- var cleanupRef = useRef13(null);
27992
- var _useState5 = useState15(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
27999
+ var menuPortalRef = useRef14(null);
28000
+ var cleanupRef = useRef14(null);
28001
+ var _useState5 = useState16(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
27993
28002
  var portalPlacementContext = useMemo7(function() {
27994
28003
  return {
27995
28004
  setPortalPlacement
27996
28005
  };
27997
28006
  }, []);
27998
- var _useState7 = useState15(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
28007
+ var _useState7 = useState16(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
27999
28008
  var updateComputedPosition = useCallback7(function() {
28000
28009
  if (!controlElement) return;
28001
28010
  var rect = getBoundingClientObj(controlElement);
@@ -28030,7 +28039,7 @@ var MenuPortal = function MenuPortal2(props) {
28030
28039
  runAutoUpdate();
28031
28040
  }, [runAutoUpdate]);
28032
28041
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28033
- var menuWrapper = jsx81("div", _extends({
28042
+ var menuWrapper = jsx82("div", _extends({
28034
28043
  ref: setMenuPortalElement
28035
28044
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28036
28045
  offset: computedPosition.offset,
@@ -28039,9 +28048,9 @@ var MenuPortal = function MenuPortal2(props) {
28039
28048
  }), "menuPortal", {
28040
28049
  "menu-portal": true
28041
28050
  }), innerProps), children);
28042
- return jsx81(PortalPlacementContext.Provider, {
28051
+ return jsx82(PortalPlacementContext.Provider, {
28043
28052
  value: portalPlacementContext
28044
- }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
28053
+ }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28045
28054
  };
28046
28055
  var containerCSS = function containerCSS2(_ref3) {
28047
28056
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -28055,7 +28064,7 @@ var containerCSS = function containerCSS2(_ref3) {
28055
28064
  };
28056
28065
  var SelectContainer = function SelectContainer2(props) {
28057
28066
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28058
- return jsx81("div", _extends({}, getStyleProps(props, "container", {
28067
+ return jsx82("div", _extends({}, getStyleProps(props, "container", {
28059
28068
  "--is-disabled": isDisabled,
28060
28069
  "--is-rtl": isRtl
28061
28070
  }), innerProps), children);
@@ -28076,7 +28085,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28076
28085
  };
28077
28086
  var ValueContainer = function ValueContainer2(props) {
28078
28087
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28079
- return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28088
+ return jsx82("div", _extends({}, getStyleProps(props, "valueContainer", {
28080
28089
  "value-container": true,
28081
28090
  "value-container--is-multi": isMulti,
28082
28091
  "value-container--has-value": hasValue
@@ -28092,7 +28101,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28092
28101
  };
28093
28102
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28094
28103
  var children = props.children, innerProps = props.innerProps;
28095
- return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28104
+ return jsx82("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28096
28105
  indicators: true
28097
28106
  }), innerProps), children);
28098
28107
  };
@@ -28113,7 +28122,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28113
28122
  };
28114
28123
  var Svg = function Svg2(_ref3) {
28115
28124
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28116
- return jsx81("svg", _extends({
28125
+ return jsx82("svg", _extends({
28117
28126
  height: size4,
28118
28127
  width: size4,
28119
28128
  viewBox: "0 0 20 20",
@@ -28123,16 +28132,16 @@ var Svg = function Svg2(_ref3) {
28123
28132
  }, props));
28124
28133
  };
28125
28134
  var CrossIcon = function CrossIcon2(props) {
28126
- return jsx81(Svg, _extends({
28135
+ return jsx82(Svg, _extends({
28127
28136
  size: 20
28128
- }, props), jsx81("path", {
28137
+ }, props), jsx82("path", {
28129
28138
  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"
28130
28139
  }));
28131
28140
  };
28132
28141
  var DownChevron = function DownChevron2(props) {
28133
- return jsx81(Svg, _extends({
28142
+ return jsx82(Svg, _extends({
28134
28143
  size: 20
28135
- }, props), jsx81("path", {
28144
+ }, props), jsx82("path", {
28136
28145
  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"
28137
28146
  }));
28138
28147
  };
@@ -28153,18 +28162,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28153
28162
  var dropdownIndicatorCSS = baseCSS;
28154
28163
  var DropdownIndicator = function DropdownIndicator2(props) {
28155
28164
  var children = props.children, innerProps = props.innerProps;
28156
- return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28165
+ return jsx82("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28157
28166
  indicator: true,
28158
28167
  "dropdown-indicator": true
28159
- }), innerProps), children || jsx81(DownChevron, null));
28168
+ }), innerProps), children || jsx82(DownChevron, null));
28160
28169
  };
28161
28170
  var clearIndicatorCSS = baseCSS;
28162
28171
  var ClearIndicator = function ClearIndicator2(props) {
28163
28172
  var children = props.children, innerProps = props.innerProps;
28164
- return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28173
+ return jsx82("div", _extends({}, getStyleProps(props, "clearIndicator", {
28165
28174
  indicator: true,
28166
28175
  "clear-indicator": true
28167
- }), innerProps), children || jsx81(CrossIcon, null));
28176
+ }), innerProps), children || jsx82(CrossIcon, null));
28168
28177
  };
28169
28178
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28170
28179
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28180,7 +28189,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28180
28189
  };
28181
28190
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28182
28191
  var innerProps = props.innerProps;
28183
- return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28192
+ return jsx82("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28184
28193
  "indicator-separator": true
28185
28194
  })));
28186
28195
  };
@@ -28204,7 +28213,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28204
28213
  };
28205
28214
  var LoadingDot = function LoadingDot2(_ref6) {
28206
28215
  var delay = _ref6.delay, offset4 = _ref6.offset;
28207
- return jsx81("span", {
28216
+ return jsx82("span", {
28208
28217
  css: /* @__PURE__ */ css({
28209
28218
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28210
28219
  backgroundColor: "currentColor",
@@ -28219,20 +28228,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28219
28228
  };
28220
28229
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28221
28230
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28222
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28231
+ return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28223
28232
  innerProps,
28224
28233
  isRtl,
28225
28234
  size: size4
28226
28235
  }), "loadingIndicator", {
28227
28236
  indicator: true,
28228
28237
  "loading-indicator": true
28229
- }), innerProps), jsx81(LoadingDot, {
28238
+ }), innerProps), jsx82(LoadingDot, {
28230
28239
  delay: 0,
28231
28240
  offset: isRtl
28232
- }), jsx81(LoadingDot, {
28241
+ }), jsx82(LoadingDot, {
28233
28242
  delay: 160,
28234
28243
  offset: true
28235
- }), jsx81(LoadingDot, {
28244
+ }), jsx82(LoadingDot, {
28236
28245
  delay: 320,
28237
28246
  offset: !isRtl
28238
28247
  }));
@@ -28264,7 +28273,7 @@ var css$1 = function css2(_ref3, unstyled) {
28264
28273
  };
28265
28274
  var Control = function Control2(props) {
28266
28275
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28267
- return jsx81("div", _extends({
28276
+ return jsx82("div", _extends({
28268
28277
  ref: innerRef
28269
28278
  }, getStyleProps(props, "control", {
28270
28279
  control: true,
@@ -28286,15 +28295,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28286
28295
  };
28287
28296
  var Group = function Group2(props) {
28288
28297
  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;
28289
- return jsx81("div", _extends({}, getStyleProps(props, "group", {
28298
+ return jsx82("div", _extends({}, getStyleProps(props, "group", {
28290
28299
  group: true
28291
- }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28300
+ }), innerProps), jsx82(Heading, _extends({}, headingProps, {
28292
28301
  selectProps,
28293
28302
  theme,
28294
28303
  getStyles,
28295
28304
  getClassNames,
28296
28305
  cx
28297
- }), label), jsx81("div", null, children));
28306
+ }), label), jsx82("div", null, children));
28298
28307
  };
28299
28308
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28300
28309
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28316,7 +28325,7 @@ var GroupHeading = function GroupHeading2(props) {
28316
28325
  var _cleanCommonProps = cleanCommonProps(props);
28317
28326
  _cleanCommonProps.data;
28318
28327
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28319
- return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28328
+ return jsx82("div", _extends({}, getStyleProps(props, "groupHeading", {
28320
28329
  "group-heading": true
28321
28330
  }), innerProps));
28322
28331
  };
@@ -28368,11 +28377,11 @@ var inputStyle = function inputStyle2(isHidden) {
28368
28377
  var Input = function Input2(props) {
28369
28378
  var cx = props.cx, value = props.value;
28370
28379
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28371
- return jsx81("div", _extends({}, getStyleProps(props, "input", {
28380
+ return jsx82("div", _extends({}, getStyleProps(props, "input", {
28372
28381
  "input-container": true
28373
28382
  }), {
28374
28383
  "data-value": value || ""
28375
- }), jsx81("input", _extends({
28384
+ }), jsx82("input", _extends({
28376
28385
  className: cx({
28377
28386
  input: true
28378
28387
  }, inputClassName),
@@ -28426,35 +28435,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28426
28435
  };
28427
28436
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28428
28437
  var children = _ref4.children, innerProps = _ref4.innerProps;
28429
- return jsx81("div", innerProps, children);
28438
+ return jsx82("div", innerProps, children);
28430
28439
  };
28431
28440
  var MultiValueContainer = MultiValueGeneric;
28432
28441
  var MultiValueLabel = MultiValueGeneric;
28433
28442
  function MultiValueRemove(_ref5) {
28434
28443
  var children = _ref5.children, innerProps = _ref5.innerProps;
28435
- return jsx81("div", _extends({
28444
+ return jsx82("div", _extends({
28436
28445
  role: "button"
28437
- }, innerProps), children || jsx81(CrossIcon, {
28446
+ }, innerProps), children || jsx82(CrossIcon, {
28438
28447
  size: 14
28439
28448
  }));
28440
28449
  }
28441
28450
  var MultiValue = function MultiValue2(props) {
28442
28451
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28443
28452
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28444
- return jsx81(Container, {
28453
+ return jsx82(Container, {
28445
28454
  data,
28446
28455
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28447
28456
  "multi-value": true,
28448
28457
  "multi-value--is-disabled": isDisabled
28449
28458
  })), innerProps),
28450
28459
  selectProps
28451
- }, jsx81(Label, {
28460
+ }, jsx82(Label, {
28452
28461
  data,
28453
28462
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28454
28463
  "multi-value__label": true
28455
28464
  })),
28456
28465
  selectProps
28457
- }, children), jsx81(Remove, {
28466
+ }, children), jsx82(Remove, {
28458
28467
  data,
28459
28468
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28460
28469
  "multi-value__remove": true
@@ -28487,7 +28496,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28487
28496
  };
28488
28497
  var Option = function Option2(props) {
28489
28498
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28490
- return jsx81("div", _extends({}, getStyleProps(props, "option", {
28499
+ return jsx82("div", _extends({}, getStyleProps(props, "option", {
28491
28500
  option: true,
28492
28501
  "option--is-disabled": isDisabled,
28493
28502
  "option--is-focused": isFocused,
@@ -28511,7 +28520,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28511
28520
  };
28512
28521
  var Placeholder = function Placeholder2(props) {
28513
28522
  var children = props.children, innerProps = props.innerProps;
28514
- return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28523
+ return jsx82("div", _extends({}, getStyleProps(props, "placeholder", {
28515
28524
  placeholder: true
28516
28525
  }), innerProps), children);
28517
28526
  };
@@ -28533,7 +28542,7 @@ var css3 = function css4(_ref3, unstyled) {
28533
28542
  };
28534
28543
  var SingleValue = function SingleValue2(props) {
28535
28544
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28536
- return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28545
+ return jsx82("div", _extends({}, getStyleProps(props, "singleValue", {
28537
28546
  "single-value": true,
28538
28547
  "single-value--is-disabled": isDisabled
28539
28548
  }), innerProps), children);
@@ -28635,7 +28644,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28635
28644
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28636
28645
  };
28637
28646
  var A11yText = function A11yText2(props) {
28638
- return jsx81("span", _extends({
28647
+ return jsx82("span", _extends({
28639
28648
  css: _ref
28640
28649
  }, props));
28641
28650
  };
@@ -28770,18 +28779,18 @@ var LiveRegion = function LiveRegion2(props) {
28770
28779
  }
28771
28780
  return guidanceMsg;
28772
28781
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28773
- var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
28782
+ var ScreenReaderText = jsx82(Fragment22, null, jsx82("span", {
28774
28783
  id: "aria-selection"
28775
- }, ariaSelected), jsx81("span", {
28784
+ }, ariaSelected), jsx82("span", {
28776
28785
  id: "aria-focused"
28777
- }, ariaFocused), jsx81("span", {
28786
+ }, ariaFocused), jsx82("span", {
28778
28787
  id: "aria-results"
28779
- }, ariaResults), jsx81("span", {
28788
+ }, ariaResults), jsx82("span", {
28780
28789
  id: "aria-guidance"
28781
28790
  }, ariaGuidance));
28782
- return jsx81(Fragment22, null, jsx81(A11yText$1, {
28791
+ return jsx82(Fragment22, null, jsx82(A11yText$1, {
28783
28792
  id
28784
- }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
28793
+ }, isInitialFocus && ScreenReaderText), jsx82(A11yText$1, {
28785
28794
  "aria-live": ariaLive,
28786
28795
  "aria-atomic": "false",
28787
28796
  "aria-relevant": "additions text",
@@ -29094,7 +29103,7 @@ var _excluded4 = ["innerRef"];
29094
29103
  function DummyInput(_ref3) {
29095
29104
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29096
29105
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29097
- return jsx81("input", _extends({
29106
+ return jsx82("input", _extends({
29098
29107
  ref: innerRef
29099
29108
  }, filteredProps, {
29100
29109
  css: /* @__PURE__ */ css({
@@ -29126,10 +29135,10 @@ var cancelScroll = function cancelScroll2(event) {
29126
29135
  };
29127
29136
  function useScrollCapture(_ref3) {
29128
29137
  var isEnabled = _ref3.isEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave;
29129
- var isBottom = useRef14(false);
29130
- var isTop = useRef14(false);
29131
- var touchStart = useRef14(0);
29132
- var scrollTarget = useRef14(null);
29138
+ var isBottom = useRef15(false);
29139
+ var isTop = useRef15(false);
29140
+ var touchStart = useRef15(0);
29141
+ var scrollTarget = useRef15(null);
29133
29142
  var handleEventDelta = useCallback8(function(event, delta) {
29134
29143
  if (scrollTarget.current === null) return;
29135
29144
  var _scrollTarget$current = scrollTarget.current, scrollTop = _scrollTarget$current.scrollTop, scrollHeight = _scrollTarget$current.scrollHeight, clientHeight = _scrollTarget$current.clientHeight;
@@ -29189,7 +29198,7 @@ function useScrollCapture(_ref3) {
29189
29198
  el.removeEventListener("touchstart", onTouchStart, false);
29190
29199
  el.removeEventListener("touchmove", onTouchMove, false);
29191
29200
  }, [onTouchMove, onTouchStart, onWheel]);
29192
- useEffect16(function() {
29201
+ useEffect17(function() {
29193
29202
  if (!isEnabled) return;
29194
29203
  var element = scrollTarget.current;
29195
29204
  startListening(element);
@@ -29236,8 +29245,8 @@ var listenerOptions = {
29236
29245
  };
29237
29246
  function useScrollLock(_ref3) {
29238
29247
  var isEnabled = _ref3.isEnabled, _ref$accountForScroll = _ref3.accountForScrollbars, accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;
29239
- var originalStyles = useRef14({});
29240
- var scrollTarget = useRef14(null);
29248
+ var originalStyles = useRef15({});
29249
+ var scrollTarget = useRef15(null);
29241
29250
  var addScrollLock = useCallback8(function(touchScrollTarget) {
29242
29251
  if (!canUseDOM) return;
29243
29252
  var target = document.body;
@@ -29292,7 +29301,7 @@ function useScrollLock(_ref3) {
29292
29301
  }
29293
29302
  }
29294
29303
  }, [accountForScrollbars]);
29295
- useEffect16(function() {
29304
+ useEffect17(function() {
29296
29305
  if (!isEnabled) return;
29297
29306
  var element = scrollTarget.current;
29298
29307
  addScrollLock(element);
@@ -29336,7 +29345,7 @@ function ScrollManager(_ref3) {
29336
29345
  setScrollCaptureTarget(element);
29337
29346
  setScrollLockTarget(element);
29338
29347
  };
29339
- return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29348
+ return jsx82(Fragment22, null, lockEnabled && jsx82("div", {
29340
29349
  onClick: blurSelectInput,
29341
29350
  css: _ref2$1
29342
29351
  }), children(targetRef));
@@ -29355,7 +29364,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29355
29364
  };
29356
29365
  var RequiredInput = function RequiredInput2(_ref3) {
29357
29366
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29358
- return jsx81("input", {
29367
+ return jsx82("input", {
29359
29368
  required: true,
29360
29369
  name: name2,
29361
29370
  tabIndex: -1,
@@ -30945,7 +30954,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30945
30954
 
30946
30955
  // src/widgets/basic/date-field/date.tsx
30947
30956
  var import_moment2 = __toESM(require_moment());
30948
- import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
30957
+ import { Fragment as Fragment23, jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
30949
30958
  var DateField = (props) => {
30950
30959
  const {
30951
30960
  name: name2,
@@ -30973,8 +30982,8 @@ var DateField = (props) => {
30973
30982
  } = props;
30974
30983
  const { t: t3 } = useI18n();
30975
30984
  const InputDateCustom = forwardRef6(
30976
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
30977
- /* @__PURE__ */ jsx83(
30985
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs54("label", { className: `flex ${className}`, children: [
30986
+ /* @__PURE__ */ jsx84(
30978
30987
  "input",
30979
30988
  {
30980
30989
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -30988,13 +30997,13 @@ var DateField = (props) => {
30988
30997
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
30989
30998
  }
30990
30999
  ),
30991
- isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
31000
+ isForm2 && /* @__PURE__ */ jsx84(CalendarIcon, {})
30992
31001
  ] })
30993
31002
  );
30994
31003
  if (!isForm && !isEditTable) {
30995
- return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31004
+ return /* @__PURE__ */ jsx84("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30996
31005
  } else {
30997
- return /* @__PURE__ */ jsx83(
31006
+ return /* @__PURE__ */ jsx84(
30998
31007
  Controller,
30999
31008
  {
31000
31009
  name: name2 || "",
@@ -31010,14 +31019,14 @@ var DateField = (props) => {
31010
31019
  },
31011
31020
  render: ({ field, fieldState: { error: error2 } }) => {
31012
31021
  const { setError, clearErrors } = methods;
31013
- useEffect17(() => {
31022
+ useEffect18(() => {
31014
31023
  if (value) {
31015
31024
  clearErrors(name2);
31016
31025
  }
31017
31026
  }, [value, clearErrors, name2]);
31018
31027
  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;
31019
- return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31020
- /* @__PURE__ */ jsx83(
31028
+ return /* @__PURE__ */ jsxs54(Fragment23, { children: [
31029
+ /* @__PURE__ */ jsx84(
31021
31030
  DatePicker,
31022
31031
  {
31023
31032
  selected: selectedDate,
@@ -31065,7 +31074,7 @@ var DateField = (props) => {
31065
31074
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31066
31075
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31067
31076
  showTimeInput: showTime,
31068
- customInput: /* @__PURE__ */ jsx83(
31077
+ customInput: /* @__PURE__ */ jsx84(
31069
31078
  InputDateCustom,
31070
31079
  {
31071
31080
  isForm,
@@ -31083,7 +31092,7 @@ var DateField = (props) => {
31083
31092
  increaseMonth,
31084
31093
  prevMonthButtonDisabled,
31085
31094
  nextMonthButtonDisabled
31086
- }) => /* @__PURE__ */ jsxs53(
31095
+ }) => /* @__PURE__ */ jsxs54(
31087
31096
  "div",
31088
31097
  {
31089
31098
  style: {
@@ -31092,7 +31101,7 @@ var DateField = (props) => {
31092
31101
  justifyContent: "center"
31093
31102
  },
31094
31103
  children: [
31095
- /* @__PURE__ */ jsx83(
31104
+ /* @__PURE__ */ jsx84(
31096
31105
  "button",
31097
31106
  {
31098
31107
  onClick: decreaseMonth,
@@ -31100,7 +31109,7 @@ var DateField = (props) => {
31100
31109
  children: "<"
31101
31110
  }
31102
31111
  ),
31103
- /* @__PURE__ */ jsx83(
31112
+ /* @__PURE__ */ jsx84(
31104
31113
  StateManagedSelect$1,
31105
31114
  {
31106
31115
  classNames: {
@@ -31126,7 +31135,7 @@ var DateField = (props) => {
31126
31135
  autoFocus: true
31127
31136
  }
31128
31137
  ),
31129
- /* @__PURE__ */ jsx83(
31138
+ /* @__PURE__ */ jsx84(
31130
31139
  StateManagedSelect$1,
31131
31140
  {
31132
31141
  classNames: {
@@ -31154,7 +31163,7 @@ var DateField = (props) => {
31154
31163
  }))
31155
31164
  }
31156
31165
  ),
31157
- /* @__PURE__ */ jsx83(
31166
+ /* @__PURE__ */ jsx84(
31158
31167
  "button",
31159
31168
  {
31160
31169
  onClick: increaseMonth,
@@ -31167,7 +31176,7 @@ var DateField = (props) => {
31167
31176
  )
31168
31177
  }
31169
31178
  ),
31170
- !isEditTable && error2 && /* @__PURE__ */ jsx83("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31179
+ !isEditTable && error2 && /* @__PURE__ */ jsx84("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31171
31180
  ] });
31172
31181
  }
31173
31182
  }
@@ -31176,26 +31185,26 @@ var DateField = (props) => {
31176
31185
  };
31177
31186
 
31178
31187
  // src/widgets/basic/download-binary-field/download-binary.tsx
31179
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31188
+ import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31180
31189
  var DownLoadBinaryField = (props) => {
31181
31190
  const { handleFileDownload } = props;
31182
31191
  const { t: t3 } = useI18n();
31183
- return /* @__PURE__ */ jsxs54(
31192
+ return /* @__PURE__ */ jsxs55(
31184
31193
  "button",
31185
31194
  {
31186
31195
  type: "button",
31187
31196
  onClick: handleFileDownload,
31188
31197
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31189
31198
  children: [
31190
- /* @__PURE__ */ jsx84(DownloadIcon, {}),
31191
- /* @__PURE__ */ jsx84("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31199
+ /* @__PURE__ */ jsx85(DownloadIcon, {}),
31200
+ /* @__PURE__ */ jsx85("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31192
31201
  ]
31193
31202
  }
31194
31203
  );
31195
31204
  };
31196
31205
 
31197
31206
  // src/widgets/basic/download-file-field/download-file.tsx
31198
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31207
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31199
31208
  var DownloadFileField = (props) => {
31200
31209
  const {
31201
31210
  readonly,
@@ -31207,15 +31216,15 @@ var DownloadFileField = (props) => {
31207
31216
  handleFileChange,
31208
31217
  handleFileDownload
31209
31218
  } = props;
31210
- return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31211
- /* @__PURE__ */ jsxs55(
31219
+ return /* @__PURE__ */ jsxs56("div", { className: "", children: [
31220
+ /* @__PURE__ */ jsxs56(
31212
31221
  "label",
31213
31222
  {
31214
31223
  htmlFor: inputId,
31215
31224
  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",
31216
31225
  children: [
31217
- file ? /* @__PURE__ */ jsx85("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31218
- /* @__PURE__ */ jsx85(
31226
+ file ? /* @__PURE__ */ jsx86("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx86("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx86("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31227
+ /* @__PURE__ */ jsx86(
31219
31228
  "input",
31220
31229
  {
31221
31230
  id: inputId,
@@ -31229,7 +31238,7 @@ var DownloadFileField = (props) => {
31229
31238
  ]
31230
31239
  }
31231
31240
  ),
31232
- file && /* @__PURE__ */ jsx85(
31241
+ file && /* @__PURE__ */ jsx86(
31233
31242
  "button",
31234
31243
  {
31235
31244
  onClick: handleFileDownload,
@@ -31242,8 +31251,8 @@ var DownloadFileField = (props) => {
31242
31251
  };
31243
31252
 
31244
31253
  // src/widgets/basic/dropdown-field/dropdown.tsx
31245
- import { useState as useState16 } from "react";
31246
- import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31254
+ import { useState as useState17 } from "react";
31255
+ import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31247
31256
  var DropdownField = (props) => {
31248
31257
  const {
31249
31258
  options: options2,
@@ -31255,32 +31264,32 @@ var DropdownField = (props) => {
31255
31264
  dropdownClassName = "",
31256
31265
  useClickOutside: useClickOutside2
31257
31266
  } = props;
31258
- const [open, setOpen] = useState16(false);
31267
+ const [open, setOpen] = useState17(false);
31259
31268
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31260
- return /* @__PURE__ */ jsxs56(
31269
+ return /* @__PURE__ */ jsxs57(
31261
31270
  "div",
31262
31271
  {
31263
31272
  ref: dropdownRef,
31264
31273
  className: `relative ${className}`,
31265
31274
  onClick: () => setOpen(!open),
31266
31275
  children: [
31267
- /* @__PURE__ */ jsxs56(
31276
+ /* @__PURE__ */ jsxs57(
31268
31277
  "div",
31269
31278
  {
31270
31279
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31271
31280
  children: [
31272
31281
  selectedValue?.icon,
31273
- /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31274
- /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31282
+ /* @__PURE__ */ jsx87("span", { children: selectedValue?.label }),
31283
+ /* @__PURE__ */ jsx87(ChevronBottomIcon, { className: "h-4 w-4" })
31275
31284
  ]
31276
31285
  }
31277
31286
  ),
31278
- open && /* @__PURE__ */ jsx86(
31287
+ open && /* @__PURE__ */ jsx87(
31279
31288
  "div",
31280
31289
  {
31281
31290
  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}`,
31282
31291
  onClick: (e3) => e3.stopPropagation(),
31283
- children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31292
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx87(
31284
31293
  "div",
31285
31294
  {
31286
31295
  onClick: () => {
@@ -31300,7 +31309,7 @@ var DropdownField = (props) => {
31300
31309
  };
31301
31310
 
31302
31311
  // src/widgets/basic/fee-field/fee.tsx
31303
- import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31312
+ import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31304
31313
  var FeeField = (props) => {
31305
31314
  const { value, formValues } = props;
31306
31315
  const { t: t3 } = useI18n();
@@ -31311,27 +31320,27 @@ var FeeField = (props) => {
31311
31320
  )
31312
31321
  ) + " VND";
31313
31322
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31314
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31323
+ return /* @__PURE__ */ jsxs58(Fragment24, { children: [
31315
31324
  value?.subtotals?.map((sub) => {
31316
31325
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31317
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31318
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31319
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31326
+ return /* @__PURE__ */ jsxs58(Fragment24, { children: [
31327
+ /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31328
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31320
31329
  sub?.name,
31321
31330
  ":"
31322
31331
  ] }),
31323
- /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31332
+ /* @__PURE__ */ jsx88("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31324
31333
  ] }),
31325
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31334
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs58(
31326
31335
  "div",
31327
31336
  {
31328
31337
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31329
31338
  children: [
31330
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31339
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31331
31340
  group?.group_name,
31332
31341
  ":"
31333
31342
  ] }),
31334
- /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31343
+ /* @__PURE__ */ jsx88("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31335
31344
  ]
31336
31345
  },
31337
31346
  `tax_groups_${group?.id}`
@@ -31339,33 +31348,33 @@ var FeeField = (props) => {
31339
31348
  ] });
31340
31349
  }
31341
31350
  }),
31342
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31343
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31351
+ /* @__PURE__ */ jsxs58("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: [
31352
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31344
31353
  t3("total"),
31345
31354
  ":"
31346
31355
  ] }),
31347
- /* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31356
+ /* @__PURE__ */ jsx88("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31348
31357
  ] }),
31349
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31350
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31358
+ /* @__PURE__ */ jsxs58("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: [
31359
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31351
31360
  t3("paid_amount"),
31352
31361
  ":"
31353
31362
  ] }),
31354
- /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31363
+ /* @__PURE__ */ jsx88("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31355
31364
  ] }),
31356
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31357
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31365
+ /* @__PURE__ */ jsxs58("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: [
31366
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31358
31367
  t3("remanining_amount"),
31359
31368
  ":"
31360
31369
  ] }),
31361
- /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31370
+ /* @__PURE__ */ jsx88("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31362
31371
  ] })
31363
31372
  ] });
31364
31373
  };
31365
31374
 
31366
31375
  // src/widgets/basic/file-upload-field/file-upload.tsx
31367
- import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31368
- import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31376
+ import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31377
+ import { jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31369
31378
  var RenderFile = ({
31370
31379
  file,
31371
31380
  onDelete,
@@ -31375,16 +31384,16 @@ var RenderFile = ({
31375
31384
  readAs: "all"
31376
31385
  });
31377
31386
  const fileTypeIcon = {
31378
- "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
31379
- "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
31380
- "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
31381
- "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
31382
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
31387
+ "application/pdf": /* @__PURE__ */ jsx89(PdfIcon, {}),
31388
+ "application/zip": /* @__PURE__ */ jsx89(ZipIcon, {}),
31389
+ "application/x-zip-compressed": /* @__PURE__ */ jsx89(ZipIcon, {}),
31390
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx89(ExcelIcon, {}),
31391
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx89(ExcelIcon, {})
31383
31392
  };
31384
- return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31385
- /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31386
- /* @__PURE__ */ jsxs58("div", { children: [
31387
- /* @__PURE__ */ jsx88(
31393
+ return /* @__PURE__ */ jsxs59("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31394
+ /* @__PURE__ */ jsx89("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31395
+ /* @__PURE__ */ jsxs59("div", { children: [
31396
+ /* @__PURE__ */ jsx89(
31388
31397
  "div",
31389
31398
  {
31390
31399
  style: {
@@ -31394,20 +31403,20 @@ var RenderFile = ({
31394
31403
  children: file?.name || file?.display_name || info?.name
31395
31404
  }
31396
31405
  ),
31397
- /* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31406
+ /* @__PURE__ */ jsx89("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31398
31407
  ] }),
31399
- /* @__PURE__ */ jsxs58("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
31400
- /* @__PURE__ */ jsx88(
31408
+ /* @__PURE__ */ jsxs59("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: [
31409
+ /* @__PURE__ */ jsx89(
31401
31410
  "span",
31402
31411
  {
31403
31412
  onClick: () => onDownload && onDownload(
31404
31413
  file?.data,
31405
31414
  file?.name || file?.display_name || info?.name
31406
31415
  ),
31407
- children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31416
+ children: /* @__PURE__ */ jsx89(DownloadIcon, {})
31408
31417
  }
31409
31418
  ),
31410
- /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31419
+ /* @__PURE__ */ jsx89("span", { onClick: onDelete, children: /* @__PURE__ */ jsx89(DeleteIconDanger, {}) })
31411
31420
  ] })
31412
31421
  ] });
31413
31422
  };
@@ -31429,10 +31438,10 @@ var FileUploadField = (props) => {
31429
31438
  downloadFunction
31430
31439
  } = props;
31431
31440
  const { t: t3 } = useI18n();
31432
- const fileInputRef = useRef15(null);
31433
- const [selectedFiles, setSelectedFiles] = useState17([]);
31434
- const [uploadError, setUploadError] = useState17();
31435
- useEffect18(() => {
31441
+ const fileInputRef = useRef16(null);
31442
+ const [selectedFiles, setSelectedFiles] = useState18([]);
31443
+ const [uploadError, setUploadError] = useState18();
31444
+ useEffect19(() => {
31436
31445
  if (selectedFiles?.length === 0 && value) {
31437
31446
  setSelectedFiles([
31438
31447
  {
@@ -31441,7 +31450,7 @@ var FileUploadField = (props) => {
31441
31450
  ]);
31442
31451
  }
31443
31452
  }, [value]);
31444
- return /* @__PURE__ */ jsx88(
31453
+ return /* @__PURE__ */ jsx89(
31445
31454
  Controller,
31446
31455
  {
31447
31456
  name: name2 || "",
@@ -31450,7 +31459,7 @@ var FileUploadField = (props) => {
31450
31459
  required: required ? { value: true, message: `${string} ${t3("must_required")}` } : false
31451
31460
  },
31452
31461
  render: ({ field: { onChange: onChange2 }, fieldState: { error: error2 } }) => {
31453
- useEffect18(() => {
31462
+ useEffect19(() => {
31454
31463
  let data = widget === "many2many_binary" ? selectedFiles : selectedFiles?.[0]?.data;
31455
31464
  if (widget !== "many2many_binary" && data && isBase64File(data)) {
31456
31465
  data = data.split(",")[1];
@@ -31466,8 +31475,8 @@ var FileUploadField = (props) => {
31466
31475
  );
31467
31476
  }
31468
31477
  }, [selectedFiles]);
31469
- return /* @__PURE__ */ jsxs58("div", { children: [
31470
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
31478
+ return /* @__PURE__ */ jsxs59("div", { children: [
31479
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx89(
31471
31480
  RenderFile,
31472
31481
  {
31473
31482
  file: fileItem,
@@ -31482,8 +31491,8 @@ var FileUploadField = (props) => {
31482
31491
  }
31483
31492
  }
31484
31493
  )),
31485
- uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
31486
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx88(
31494
+ uploadError && /* @__PURE__ */ jsx89("div", { className: "text-[#de4747]", children: uploadError }),
31495
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx89(
31487
31496
  ButtonSelectFiles,
31488
31497
  {
31489
31498
  fileInputRef,
@@ -31498,7 +31507,7 @@ var FileUploadField = (props) => {
31498
31507
  useUploadFile
31499
31508
  }
31500
31509
  ),
31501
- error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31510
+ error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31502
31511
  ] });
31503
31512
  }
31504
31513
  }
@@ -31506,8 +31515,8 @@ var FileUploadField = (props) => {
31506
31515
  };
31507
31516
 
31508
31517
  // src/widgets/basic/float-field/float.tsx
31509
- import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31510
- import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31518
+ import { useEffect as useEffect20, useRef as useRef17, useState as useState19 } from "react";
31519
+ import { Fragment as Fragment25, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
31511
31520
  var FloatField = (props) => {
31512
31521
  const {
31513
31522
  name: name2,
@@ -31525,9 +31534,9 @@ var FloatField = (props) => {
31525
31534
  } = props;
31526
31535
  const { t: t3 } = useI18n();
31527
31536
  if (!isForm && !isEditTable) {
31528
- return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31537
+ return /* @__PURE__ */ jsx90("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31529
31538
  }
31530
- return /* @__PURE__ */ jsx89(
31539
+ return /* @__PURE__ */ jsx90(
31531
31540
  Controller,
31532
31541
  {
31533
31542
  name: name2 ?? "",
@@ -31538,10 +31547,10 @@ var FloatField = (props) => {
31538
31547
  },
31539
31548
  render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
31540
31549
  const { setError, clearErrors } = methods;
31541
- const [inputValue, setInputValue] = useState18(
31550
+ const [inputValue, setInputValue] = useState19(
31542
31551
  value !== void 0 && value !== null ? formatFloatNumber(value) : ""
31543
31552
  );
31544
- useEffect19(() => {
31553
+ useEffect20(() => {
31545
31554
  if (propValue !== void 0 && propValue !== null && propValue !== parseFloat(inputValue?.replace(/,/g, ""))) {
31546
31555
  setInputValue(formatFloatNumber(propValue));
31547
31556
  clearErrors(name2);
@@ -31552,9 +31561,9 @@ var FloatField = (props) => {
31552
31561
  setInputValue("");
31553
31562
  }
31554
31563
  }, [value, name2, clearErrors, propValue]);
31555
- const isDirtyRef = useRef16(false);
31556
- const inputRef = useRef16(null);
31557
- const lastCommittedValueRef = useRef16(null);
31564
+ const isDirtyRef = useRef17(false);
31565
+ const inputRef = useRef17(null);
31566
+ const lastCommittedValueRef = useRef17(null);
31558
31567
  const handleInputChange = (e3) => {
31559
31568
  const newValue = e3.target.value;
31560
31569
  const valueWithoutCommas = newValue.replace(/,/g, "");
@@ -31632,8 +31641,8 @@ var FloatField = (props) => {
31632
31641
  }
31633
31642
  isDirtyRef.current = false;
31634
31643
  };
31635
- return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31636
- /* @__PURE__ */ jsx89(
31644
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
31645
+ /* @__PURE__ */ jsx90(
31637
31646
  "input",
31638
31647
  {
31639
31648
  ref: inputRef,
@@ -31653,7 +31662,7 @@ var FloatField = (props) => {
31653
31662
  `
31654
31663
  }
31655
31664
  ),
31656
- error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31665
+ error2 && !isEditTable && /* @__PURE__ */ jsx90("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31657
31666
  ] });
31658
31667
  }
31659
31668
  }
@@ -31661,8 +31670,8 @@ var FloatField = (props) => {
31661
31670
  };
31662
31671
 
31663
31672
  // src/widgets/basic/float-time-field/float-time.tsx
31664
- import { useState as useState19 } from "react";
31665
- import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
31673
+ import { useState as useState20 } from "react";
31674
+ import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
31666
31675
  var FloatTimeField = (props) => {
31667
31676
  const {
31668
31677
  name: name2,
@@ -31678,9 +31687,9 @@ var FloatTimeField = (props) => {
31678
31687
  const { t: t3 } = useI18n();
31679
31688
  if (!isForm) {
31680
31689
  const formatValue = value ?? 0;
31681
- return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
31690
+ return /* @__PURE__ */ jsx91("span", { children: convertFloatToTime(formatValue) });
31682
31691
  }
31683
- return /* @__PURE__ */ jsx90(
31692
+ return /* @__PURE__ */ jsx91(
31684
31693
  Controller,
31685
31694
  {
31686
31695
  name: name2 ?? "",
@@ -31693,11 +31702,11 @@ var FloatTimeField = (props) => {
31693
31702
  field: { onChange: fieldOnChange, onBlur, value: value2 },
31694
31703
  fieldState: { error: error2, isDirty }
31695
31704
  }) => {
31696
- const [input, setInput] = useState19(
31705
+ const [input, setInput] = useState20(
31697
31706
  convertFloatToTime(value2 ?? defaultValue)
31698
31707
  );
31699
- const [formattedTime, setFormattedTime] = useState19("");
31700
- const [errors, setErrors] = useState19("");
31708
+ const [formattedTime, setFormattedTime] = useState20("");
31709
+ const [errors, setErrors] = useState20("");
31701
31710
  const handleInputChange = (e3) => {
31702
31711
  const raw = e3.target.value.replace(/[^\d:]/g, "");
31703
31712
  setInput(raw);
@@ -31742,8 +31751,8 @@ var FloatTimeField = (props) => {
31742
31751
  }
31743
31752
  onBlur();
31744
31753
  };
31745
- return /* @__PURE__ */ jsxs60(Fragment26, { children: [
31746
- /* @__PURE__ */ jsx90(
31754
+ return /* @__PURE__ */ jsxs61(Fragment26, { children: [
31755
+ /* @__PURE__ */ jsx91(
31747
31756
  "input",
31748
31757
  {
31749
31758
  type: "text",
@@ -31775,7 +31784,7 @@ var FloatTimeField = (props) => {
31775
31784
  readOnly: readonly
31776
31785
  }
31777
31786
  ),
31778
- (error2 || errors) && /* @__PURE__ */ jsx90("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31787
+ (error2 || errors) && /* @__PURE__ */ jsx91("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31779
31788
  ] });
31780
31789
  }
31781
31790
  }
@@ -31783,8 +31792,8 @@ var FloatTimeField = (props) => {
31783
31792
  };
31784
31793
 
31785
31794
  // src/widgets/basic/html-field/html.tsx
31786
- import { useEffect as useEffect20, useRef as useRef17 } from "react";
31787
- import { jsx as jsx91 } from "react/jsx-runtime";
31795
+ import { useEffect as useEffect21, useRef as useRef18 } from "react";
31796
+ import { jsx as jsx92 } from "react/jsx-runtime";
31788
31797
  var HtmlField = (props) => {
31789
31798
  const {
31790
31799
  name: name2,
@@ -31796,18 +31805,18 @@ var HtmlField = (props) => {
31796
31805
  value,
31797
31806
  isEditTable
31798
31807
  } = props;
31799
- const divRef = useRef17(null);
31808
+ const divRef = useRef18(null);
31800
31809
  if (!isForm && !isEditTable) {
31801
- return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31810
+ return /* @__PURE__ */ jsx92("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31802
31811
  }
31803
- return /* @__PURE__ */ jsx91(
31812
+ return /* @__PURE__ */ jsx92(
31804
31813
  Controller,
31805
31814
  {
31806
31815
  name: name2 ?? "",
31807
31816
  control: methods?.control,
31808
31817
  defaultValue,
31809
31818
  render: ({ field: { onChange: fieldOnChange, value: value2 } }) => {
31810
- useEffect20(() => {
31819
+ useEffect21(() => {
31811
31820
  if (divRef.current && divRef.current.innerHTML !== value2) {
31812
31821
  divRef.current.innerHTML = value2 || "";
31813
31822
  }
@@ -31819,7 +31828,7 @@ var HtmlField = (props) => {
31819
31828
  onChange2(newValue, "");
31820
31829
  }
31821
31830
  };
31822
- return /* @__PURE__ */ jsx91(
31831
+ return /* @__PURE__ */ jsx92(
31823
31832
  "div",
31824
31833
  {
31825
31834
  ref: divRef,
@@ -31838,28 +31847,28 @@ var HtmlField = (props) => {
31838
31847
  };
31839
31848
 
31840
31849
  // src/widgets/basic/image-field/image.tsx
31841
- import { jsx as jsx92 } from "react/jsx-runtime";
31850
+ import { jsx as jsx93 } from "react/jsx-runtime";
31842
31851
  var ImageField = (props) => {
31843
31852
  const { value, type, name: name2, baseURL } = props;
31844
31853
  if (!value) return null;
31845
31854
  if (type === "url") {
31846
- return /* @__PURE__ */ jsx92("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31855
+ return /* @__PURE__ */ jsx93("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31847
31856
  }
31848
- return /* @__PURE__ */ jsx92("div", { id: "qr-code", children: /* @__PURE__ */ jsx92("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31857
+ return /* @__PURE__ */ jsx93("div", { id: "qr-code", children: /* @__PURE__ */ jsx93("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31849
31858
  };
31850
31859
 
31851
31860
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31852
- import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
31861
+ import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
31853
31862
 
31854
31863
  // src/widgets/basic/information-field/information.tsx
31855
- import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31864
+ import { Fragment as Fragment27, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31856
31865
  var InfomationField = (props) => {
31857
31866
  const { value, isForm = false, showName = true, stringToColor } = props;
31858
31867
  if (!value || Array.isArray(value) && value.length === 0) {
31859
- return /* @__PURE__ */ jsx93(Fragment27, {});
31868
+ return /* @__PURE__ */ jsx94(Fragment27, {});
31860
31869
  }
31861
31870
  const inforValues = Array.isArray(value) ? value : [value];
31862
- return /* @__PURE__ */ jsx93("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx93(
31871
+ return /* @__PURE__ */ jsx94("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx94(
31863
31872
  AvatarField,
31864
31873
  {
31865
31874
  id: item.id,
@@ -31868,8 +31877,8 @@ var InfomationField = (props) => {
31868
31877
  stringToColor
31869
31878
  },
31870
31879
  item.id
31871
- )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
31872
- /* @__PURE__ */ jsx93(
31880
+ )) : /* @__PURE__ */ jsxs62("div", { className: "flex gap-2 items-center w-max", children: [
31881
+ /* @__PURE__ */ jsx94(
31873
31882
  AvatarField,
31874
31883
  {
31875
31884
  avatarSrc: inforValues[0].image_256,
@@ -31879,12 +31888,12 @@ var InfomationField = (props) => {
31879
31888
  stringToColor
31880
31889
  }
31881
31890
  ),
31882
- showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
31891
+ showName && /* @__PURE__ */ jsx94("span", { className: "capitalize", children: inforValues[0].display_name })
31883
31892
  ] }) });
31884
31893
  };
31885
31894
 
31886
31895
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31887
- import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31896
+ import { jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
31888
31897
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31889
31898
  const { selectProps, data, menuList } = props;
31890
31899
  const { relation } = selectProps;
@@ -31893,8 +31902,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31893
31902
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31894
31903
  )
31895
31904
  )?.[0]?.action?.id;
31896
- return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31897
- /* @__PURE__ */ jsx94(
31905
+ return /* @__PURE__ */ jsxs63("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31906
+ /* @__PURE__ */ jsx95(
31898
31907
  AvatarField,
31899
31908
  {
31900
31909
  id: data?.id,
@@ -31906,8 +31915,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31906
31915
  stringToColor
31907
31916
  }
31908
31917
  ),
31909
- /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31910
- /* @__PURE__ */ jsx94(
31918
+ /* @__PURE__ */ jsx95("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31919
+ /* @__PURE__ */ jsx95(
31911
31920
  "span",
31912
31921
  {
31913
31922
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -31915,7 +31924,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31915
31924
  e3.stopPropagation();
31916
31925
  props.removeProps.onClick();
31917
31926
  },
31918
- children: /* @__PURE__ */ jsx94(CloseIcon, {})
31927
+ children: /* @__PURE__ */ jsx95(CloseIcon, {})
31919
31928
  }
31920
31929
  )
31921
31930
  ] });
@@ -31925,9 +31934,9 @@ var CustomMenuList = (props) => {
31925
31934
  const { setIsShowModalMany2Many, searchable } = selectProps;
31926
31935
  const { t: t3 } = useI18n();
31927
31936
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
31928
- return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
31937
+ return /* @__PURE__ */ jsxs63(components.MenuList, { ...props, className: "z-[99]", children: [
31929
31938
  limitedChildren,
31930
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
31939
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs63(
31931
31940
  "button",
31932
31941
  {
31933
31942
  type: "button",
@@ -31972,7 +31981,7 @@ var Many2ManyTagField = (props) => {
31972
31981
  value: item.id,
31973
31982
  label: item.name ?? item.display_name
31974
31983
  })) : [];
31975
- return /* @__PURE__ */ jsx94(
31984
+ return /* @__PURE__ */ jsx95(
31976
31985
  InfomationField,
31977
31986
  {
31978
31987
  value: optionValue || null,
@@ -31981,7 +31990,7 @@ var Many2ManyTagField = (props) => {
31981
31990
  }
31982
31991
  );
31983
31992
  }
31984
- return /* @__PURE__ */ jsx94(
31993
+ return /* @__PURE__ */ jsx95(
31985
31994
  Controller,
31986
31995
  {
31987
31996
  name: name2 ?? "",
@@ -31991,7 +32000,7 @@ var Many2ManyTagField = (props) => {
31991
32000
  },
31992
32001
  render: ({ field, fieldState: { error: error2 } }) => {
31993
32002
  const { clearErrors } = methods;
31994
- useEffect21(() => {
32003
+ useEffect22(() => {
31995
32004
  if (field.value) {
31996
32005
  clearErrors(name2);
31997
32006
  }
@@ -32017,8 +32026,8 @@ var Many2ManyTagField = (props) => {
32017
32026
  onChange2?.(name2 ?? "", newValue);
32018
32027
  clearErrors(name2);
32019
32028
  };
32020
- return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32021
- /* @__PURE__ */ jsx94(
32029
+ return /* @__PURE__ */ jsxs63("div", { className: "group h-full overflow-y-auto", children: [
32030
+ /* @__PURE__ */ jsx95(
32022
32031
  StateManagedSelect$1,
32023
32032
  {
32024
32033
  options: options2,
@@ -32096,7 +32105,7 @@ var Many2ManyTagField = (props) => {
32096
32105
  })
32097
32106
  },
32098
32107
  components: isUser ? {
32099
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
32108
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx95(
32100
32109
  CustomMultiValue,
32101
32110
  {
32102
32111
  ...multiValueProps,
@@ -32105,7 +32114,7 @@ var Many2ManyTagField = (props) => {
32105
32114
  ),
32106
32115
  IndicatorSeparator: () => null
32107
32116
  } : {
32108
- MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
32117
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx95(
32109
32118
  CustomMenuList,
32110
32119
  {
32111
32120
  ...menuListProps,
@@ -32116,13 +32125,13 @@ var Many2ManyTagField = (props) => {
32116
32125
  }
32117
32126
  ),
32118
32127
  IndicatorSeparator: () => null,
32119
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
32120
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.ClearIndicator, { ...props2 })
32128
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx95(components.DropdownIndicator, { ...props2 }),
32129
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx95(components.ClearIndicator, { ...props2 })
32121
32130
  },
32122
32131
  required: !invisible && required
32123
32132
  }
32124
32133
  ),
32125
- !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32134
+ !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32126
32135
  ] });
32127
32136
  }
32128
32137
  }
@@ -32130,8 +32139,8 @@ var Many2ManyTagField = (props) => {
32130
32139
  };
32131
32140
 
32132
32141
  // src/widgets/basic/monetary-field/monetary.tsx
32133
- import { useEffect as useEffect22 } from "react";
32134
- import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32142
+ import { useEffect as useEffect23 } from "react";
32143
+ import { Fragment as Fragment28, jsx as jsx96, jsxs as jsxs64 } from "react/jsx-runtime";
32135
32144
  var MonetaryField = (props) => {
32136
32145
  const { t: t3 } = useI18n();
32137
32146
  const {
@@ -32151,26 +32160,26 @@ var MonetaryField = (props) => {
32151
32160
  isEditTable
32152
32161
  } = props;
32153
32162
  if (isForm && name2 === "amount_residual") {
32154
- return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32155
- /* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
32163
+ return /* @__PURE__ */ jsxs64("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32164
+ /* @__PURE__ */ jsxs64("span", { className: "font-semibold", children: [
32156
32165
  string,
32157
32166
  ":"
32158
32167
  ] }),
32159
- /* @__PURE__ */ jsx95("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32168
+ /* @__PURE__ */ jsx96("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32160
32169
  ] });
32161
32170
  }
32162
32171
  if (!isForm) {
32163
32172
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32164
32173
  if (widget === "monetary" && !formValues?.currency_id) {
32165
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32174
+ return /* @__PURE__ */ jsx96("span", { children: `${formatNumberOnly(
32166
32175
  parseFloat(String(value ?? defaultValue))
32167
32176
  )} VND` });
32168
32177
  }
32169
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32178
+ return /* @__PURE__ */ jsx96("span", { children: `${formatNumberOnly(
32170
32179
  parseFloat(value ?? defaultValue)
32171
32180
  )} ${currencySymbol}` });
32172
32181
  }
32173
- return /* @__PURE__ */ jsx95(
32182
+ return /* @__PURE__ */ jsx96(
32174
32183
  Controller,
32175
32184
  {
32176
32185
  name: name2 ?? "",
@@ -32184,13 +32193,13 @@ var MonetaryField = (props) => {
32184
32193
  fieldState: { error: error2 }
32185
32194
  }) => {
32186
32195
  const { setError, clearErrors } = methods;
32187
- useEffect22(() => {
32196
+ useEffect23(() => {
32188
32197
  if (value2 !== void 0 && value2 !== null && !isNaN(value2)) {
32189
32198
  clearErrors(name2);
32190
32199
  }
32191
32200
  }, [value2]);
32192
- return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32193
- /* @__PURE__ */ jsx95(
32201
+ return /* @__PURE__ */ jsxs64(Fragment28, { children: [
32202
+ /* @__PURE__ */ jsx96(
32194
32203
  "input",
32195
32204
  {
32196
32205
  value: formatNumberOnly(value2),
@@ -32228,7 +32237,7 @@ var MonetaryField = (props) => {
32228
32237
  `
32229
32238
  }
32230
32239
  ),
32231
- !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32240
+ !isEditTable && error2 && /* @__PURE__ */ jsx96("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32232
32241
  ] });
32233
32242
  }
32234
32243
  }
@@ -32236,14 +32245,14 @@ var MonetaryField = (props) => {
32236
32245
  };
32237
32246
 
32238
32247
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32239
- import { jsx as jsx96 } from "react/jsx-runtime";
32248
+ import { jsx as jsx97 } from "react/jsx-runtime";
32240
32249
  var PaidBadgedField = () => {
32241
- return /* @__PURE__ */ jsx96("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx96(PaidIcon, {}) });
32250
+ return /* @__PURE__ */ jsx97("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx97(PaidIcon, {}) });
32242
32251
  };
32243
32252
 
32244
32253
  // src/widgets/basic/priority-field/rating-star.tsx
32245
- import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32246
- import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32254
+ import React17, { useEffect as useEffect24, useState as useState21 } from "react";
32255
+ import { jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
32247
32256
  var RatingStarField = (props) => {
32248
32257
  const {
32249
32258
  label,
@@ -32252,9 +32261,9 @@ var RatingStarField = (props) => {
32252
32261
  onSelectPriority,
32253
32262
  id
32254
32263
  } = props;
32255
- const [rating, setRating] = useState20(defaultValue);
32256
- const [hover, setHover] = useState20(0);
32257
- useEffect23(() => {
32264
+ const [rating, setRating] = useState21(defaultValue);
32265
+ const [hover, setHover] = useState21(0);
32266
+ useEffect24(() => {
32258
32267
  setRating(defaultValue);
32259
32268
  }, [defaultValue]);
32260
32269
  const handleClick = (value) => {
@@ -32278,7 +32287,7 @@ var RatingStarField = (props) => {
32278
32287
  setHover(0);
32279
32288
  setRating(0);
32280
32289
  };
32281
- return /* @__PURE__ */ jsx97(
32290
+ return /* @__PURE__ */ jsx98(
32282
32291
  "div",
32283
32292
  {
32284
32293
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32288,17 +32297,17 @@ var RatingStarField = (props) => {
32288
32297
  const starValue = index4 + 1;
32289
32298
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32290
32299
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32291
- return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32292
- /* @__PURE__ */ jsx97(
32300
+ return /* @__PURE__ */ jsxs65(React17.Fragment, { children: [
32301
+ /* @__PURE__ */ jsx98(
32293
32302
  "div",
32294
32303
  {
32295
32304
  onMouseEnter: () => handleHover(starValue),
32296
32305
  onClick: () => handleClick(starValue),
32297
32306
  "data-tooltip-id": `${id}-${starValue}`,
32298
- children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32307
+ children: /* @__PURE__ */ jsx98(StarIcon, { fill: fillColor, stroke: strokeColor })
32299
32308
  }
32300
32309
  ),
32301
- /* @__PURE__ */ jsx97(
32310
+ /* @__PURE__ */ jsx98(
32302
32311
  M,
32303
32312
  {
32304
32313
  className: "z-50",
@@ -32314,7 +32323,7 @@ var RatingStarField = (props) => {
32314
32323
  };
32315
32324
 
32316
32325
  // src/widgets/basic/priority-field/priority.tsx
32317
- import { jsx as jsx98 } from "react/jsx-runtime";
32326
+ import { jsx as jsx99 } from "react/jsx-runtime";
32318
32327
  var PriorityField = (props) => {
32319
32328
  const {
32320
32329
  isForm,
@@ -32330,7 +32339,7 @@ var PriorityField = (props) => {
32330
32339
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32331
32340
  const defaultPriority = parseInt(value) + 1;
32332
32341
  if (!isForm) {
32333
- return /* @__PURE__ */ jsx98(
32342
+ return /* @__PURE__ */ jsx99(
32334
32343
  RatingStarField,
32335
32344
  {
32336
32345
  label,
@@ -32341,7 +32350,7 @@ var PriorityField = (props) => {
32341
32350
  }
32342
32351
  );
32343
32352
  }
32344
- return /* @__PURE__ */ jsx98(
32353
+ return /* @__PURE__ */ jsx99(
32345
32354
  Controller,
32346
32355
  {
32347
32356
  name: name ?? "",
@@ -32351,7 +32360,7 @@ var PriorityField = (props) => {
32351
32360
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32352
32361
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32353
32362
  };
32354
- return /* @__PURE__ */ jsx98(
32363
+ return /* @__PURE__ */ jsx99(
32355
32364
  RatingStarField,
32356
32365
  {
32357
32366
  label,
@@ -32367,8 +32376,8 @@ var PriorityField = (props) => {
32367
32376
  };
32368
32377
 
32369
32378
  // src/widgets/basic/radio-group-field/radio-group.tsx
32370
- import { useEffect as useEffect24 } from "react";
32371
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32379
+ import { useEffect as useEffect25 } from "react";
32380
+ import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32372
32381
  var RadioGroupField = (props) => {
32373
32382
  const {
32374
32383
  name: name2,
@@ -32381,19 +32390,19 @@ var RadioGroupField = (props) => {
32381
32390
  onChange: onChange2,
32382
32391
  setValue
32383
32392
  } = props;
32384
- useEffect24(() => {
32393
+ useEffect25(() => {
32385
32394
  if (selection?.length > 0) {
32386
32395
  if (setValue) setValue(name2, selection?.[0]?.[0]);
32387
32396
  }
32388
32397
  }, [selection, name2, setValue]);
32389
32398
  if (!methods) return null;
32390
- return /* @__PURE__ */ jsx99(
32399
+ return /* @__PURE__ */ jsx100(
32391
32400
  Controller,
32392
32401
  {
32393
32402
  name: name2 ?? "",
32394
32403
  control: methods.control,
32395
- render: ({ field }) => /* @__PURE__ */ jsx99("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-1", children: [
32396
- /* @__PURE__ */ jsx99(
32404
+ render: ({ field }) => /* @__PURE__ */ jsx100("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs66("div", { className: "flex items-center gap-1", children: [
32405
+ /* @__PURE__ */ jsx100(
32397
32406
  "input",
32398
32407
  {
32399
32408
  type: "radio",
@@ -32412,7 +32421,7 @@ var RadioGroupField = (props) => {
32412
32421
  className: "custom-radio"
32413
32422
  }
32414
32423
  ),
32415
- /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32424
+ /* @__PURE__ */ jsx100("label", { htmlFor: String(select[0]), children: select[1] })
32416
32425
  ] }, select[0])) })
32417
32426
  }
32418
32427
  );
@@ -32420,7 +32429,7 @@ var RadioGroupField = (props) => {
32420
32429
 
32421
32430
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32422
32431
  var import_moment3 = __toESM(require_moment());
32423
- import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32432
+ import { jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32424
32433
  var RemainingDaysField = (props) => {
32425
32434
  const {
32426
32435
  value,
@@ -32431,14 +32440,14 @@ var RemainingDaysField = (props) => {
32431
32440
  if (!value) return null;
32432
32441
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32433
32442
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32434
- return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32435
- /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32436
- /* @__PURE__ */ jsx100(
32443
+ return /* @__PURE__ */ jsxs67("div", { className: isForm ? "mb-4" : "", children: [
32444
+ /* @__PURE__ */ jsx101(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32445
+ /* @__PURE__ */ jsx101(
32437
32446
  "div",
32438
32447
  {
32439
32448
  "data-tooltip-id": `remainingDays_${value}`,
32440
32449
  className: "flex items-center w-fit cursor-context-menu",
32441
- children: /* @__PURE__ */ jsx100(
32450
+ children: /* @__PURE__ */ jsx101(
32442
32451
  "div",
32443
32452
  {
32444
32453
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32451,7 +32460,7 @@ var RemainingDaysField = (props) => {
32451
32460
  };
32452
32461
 
32453
32462
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32454
- import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32463
+ import { Fragment as Fragment29, jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
32455
32464
  var SelectDropdownField = (props) => {
32456
32465
  const { t: t3 } = useI18n();
32457
32466
  const {
@@ -32473,9 +32482,9 @@ var SelectDropdownField = (props) => {
32473
32482
  label: val[1]
32474
32483
  })) : [];
32475
32484
  if (!isForm && !isEditTable) {
32476
- return /* @__PURE__ */ jsx101("span", { children: options2?.find((item) => item?.value === value)?.label });
32485
+ return /* @__PURE__ */ jsx102("span", { children: options2?.find((item) => item?.value === value)?.label });
32477
32486
  } else {
32478
- return /* @__PURE__ */ jsx101(
32487
+ return /* @__PURE__ */ jsx102(
32479
32488
  Controller,
32480
32489
  {
32481
32490
  name: name2 || "",
@@ -32502,8 +32511,8 @@ var SelectDropdownField = (props) => {
32502
32511
  value: defaultValue || null,
32503
32512
  required: !invisible && required
32504
32513
  };
32505
- return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32506
- /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32514
+ return /* @__PURE__ */ jsxs68(Fragment29, { children: [
32515
+ /* @__PURE__ */ jsx102("div", { className: "group", children: /* @__PURE__ */ jsx102(
32507
32516
  StateManagedSelect$1,
32508
32517
  {
32509
32518
  ...commonProps,
@@ -32558,12 +32567,12 @@ var SelectDropdownField = (props) => {
32558
32567
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32559
32568
  components: {
32560
32569
  IndicatorSeparator: () => null,
32561
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32570
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx102(components.DropdownIndicator, { ...props2 })
32562
32571
  },
32563
32572
  noOptionsMessage: () => t3("no-available")
32564
32573
  }
32565
32574
  ) }),
32566
- !isEditTable && error2 && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32575
+ !isEditTable && error2 && /* @__PURE__ */ jsx102("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32567
32576
  ] });
32568
32577
  }
32569
32578
  }
@@ -32572,7 +32581,7 @@ var SelectDropdownField = (props) => {
32572
32581
  };
32573
32582
 
32574
32583
  // src/widgets/basic/textarea-field/textarea.tsx
32575
- import { jsx as jsx102 } from "react/jsx-runtime";
32584
+ import { jsx as jsx103 } from "react/jsx-runtime";
32576
32585
  var TextAreaField = (props) => {
32577
32586
  const {
32578
32587
  methods,
@@ -32596,9 +32605,9 @@ var TextAreaField = (props) => {
32596
32605
  }
32597
32606
  }) : {};
32598
32607
  if (!isForm) {
32599
- return /* @__PURE__ */ jsx102("span", { children: value && typeof value === "object" ? value.display_name : value });
32608
+ return /* @__PURE__ */ jsx103("span", { children: value && typeof value === "object" ? value.display_name : value });
32600
32609
  }
32601
- return /* @__PURE__ */ jsx102(
32610
+ return /* @__PURE__ */ jsx103(
32602
32611
  "textarea",
32603
32612
  {
32604
32613
  ...formProps,
@@ -32614,7 +32623,7 @@ var TextAreaField = (props) => {
32614
32623
  };
32615
32624
 
32616
32625
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32617
- import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32626
+ import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32618
32627
  var ToggleButtonField = (props) => {
32619
32628
  const {
32620
32629
  name: name2,
@@ -32624,13 +32633,13 @@ var ToggleButtonField = (props) => {
32624
32633
  onChange: onChange2,
32625
32634
  methods
32626
32635
  } = props;
32627
- return /* @__PURE__ */ jsx103(
32636
+ return /* @__PURE__ */ jsx104(
32628
32637
  Controller,
32629
32638
  {
32630
32639
  name: name2 ?? "",
32631
32640
  control: methods?.control,
32632
- render: ({ field }) => /* @__PURE__ */ jsx103("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs68("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32633
- /* @__PURE__ */ jsx103(
32641
+ render: ({ field }) => /* @__PURE__ */ jsx104("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs69("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32642
+ /* @__PURE__ */ jsx104(
32634
32643
  "input",
32635
32644
  {
32636
32645
  ...field,
@@ -32649,7 +32658,7 @@ var ToggleButtonField = (props) => {
32649
32658
  checked: field.value ?? false
32650
32659
  }
32651
32660
  ),
32652
- /* @__PURE__ */ jsx103(
32661
+ /* @__PURE__ */ jsx104(
32653
32662
  "span",
32654
32663
  {
32655
32664
  style: {
@@ -32658,7 +32667,7 @@ var ToggleButtonField = (props) => {
32658
32667
  },
32659
32668
  className: `rounded-full transition duration-300
32660
32669
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32661
- children: /* @__PURE__ */ jsx103(
32670
+ children: /* @__PURE__ */ jsx104(
32662
32671
  "span",
32663
32672
  {
32664
32673
  style: {
@@ -32682,8 +32691,8 @@ var ToggleButtonField = (props) => {
32682
32691
  };
32683
32692
 
32684
32693
  // src/widgets/basic/integer-field/integer.tsx
32685
- import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
32686
- import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32694
+ import { useEffect as useEffect26, useRef as useRef19, useState as useState22 } from "react";
32695
+ import { Fragment as Fragment30, jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32687
32696
  var IntegerField = (props) => {
32688
32697
  const {
32689
32698
  name: name2,
@@ -32702,9 +32711,9 @@ var IntegerField = (props) => {
32702
32711
  const { t: t3 } = useI18n();
32703
32712
  if (!isForm && !isEditTable) {
32704
32713
  const displayValue = value ?? defaultValue;
32705
- return /* @__PURE__ */ jsx104("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32714
+ return /* @__PURE__ */ jsx105("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32706
32715
  }
32707
- return /* @__PURE__ */ jsx104(
32716
+ return /* @__PURE__ */ jsx105(
32708
32717
  Controller,
32709
32718
  {
32710
32719
  name: name2 || "",
@@ -32718,13 +32727,13 @@ var IntegerField = (props) => {
32718
32727
  fieldState: { error: error2 }
32719
32728
  }) => {
32720
32729
  const { setError, clearErrors } = methods;
32721
- const isDirtyRef = useRef18(false);
32722
- const inputRef = useRef18(null);
32723
- const lastCommittedValueRef = useRef18(null);
32724
- const [inputValue, setInputValue] = useState21(
32730
+ const isDirtyRef = useRef19(false);
32731
+ const inputRef = useRef19(null);
32732
+ const lastCommittedValueRef = useRef19(null);
32733
+ const [inputValue, setInputValue] = useState22(
32725
32734
  value2 !== void 0 && value2 !== null ? String(value2) : ""
32726
32735
  );
32727
- useEffect25(() => {
32736
+ useEffect26(() => {
32728
32737
  if (value2 !== void 0 && value2 !== null) {
32729
32738
  setInputValue(String(value2));
32730
32739
  clearErrors(name2);
@@ -32782,8 +32791,8 @@ var IntegerField = (props) => {
32782
32791
  inputRef.current?.blur();
32783
32792
  clearErrors(name2);
32784
32793
  };
32785
- return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32786
- /* @__PURE__ */ jsx104(
32794
+ return /* @__PURE__ */ jsxs70(Fragment30, { children: [
32795
+ /* @__PURE__ */ jsx105(
32787
32796
  "input",
32788
32797
  {
32789
32798
  ref: inputRef,
@@ -32818,7 +32827,7 @@ var IntegerField = (props) => {
32818
32827
  `
32819
32828
  }
32820
32829
  ),
32821
- error2 && isEditTable && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32830
+ error2 && isEditTable && /* @__PURE__ */ jsx105("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32822
32831
  ] });
32823
32832
  }
32824
32833
  }
@@ -32826,7 +32835,7 @@ var IntegerField = (props) => {
32826
32835
  };
32827
32836
 
32828
32837
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32829
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32838
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32830
32839
  var StatusDropdownField = (props) => {
32831
32840
  const {
32832
32841
  buttonRef,
@@ -32838,13 +32847,13 @@ var StatusDropdownField = (props) => {
32838
32847
  handleClick,
32839
32848
  colors: colors2
32840
32849
  } = props;
32841
- return /* @__PURE__ */ jsxs70(
32850
+ return /* @__PURE__ */ jsxs71(
32842
32851
  "div",
32843
32852
  {
32844
32853
  ref: buttonRef,
32845
32854
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32846
32855
  children: [
32847
- /* @__PURE__ */ jsx105(
32856
+ /* @__PURE__ */ jsx106(
32848
32857
  "button",
32849
32858
  {
32850
32859
  type: "button",
@@ -32852,23 +32861,23 @@ var StatusDropdownField = (props) => {
32852
32861
  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"}`
32853
32862
  }
32854
32863
  ),
32855
- isOpen && /* @__PURE__ */ jsx105("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
32864
+ isOpen && /* @__PURE__ */ jsx106("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) => {
32856
32865
  const isActive = item[0] == state;
32857
- return /* @__PURE__ */ jsxs70(
32866
+ return /* @__PURE__ */ jsxs71(
32858
32867
  "div",
32859
32868
  {
32860
32869
  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" : ""}`,
32861
32870
  onClick: () => handleClick(item[0]),
32862
32871
  children: [
32863
- /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
32864
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
32865
- /* @__PURE__ */ jsx105(
32872
+ /* @__PURE__ */ jsx106("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx106(CheckIcon, {}) }),
32873
+ /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2", children: [
32874
+ /* @__PURE__ */ jsx106(
32866
32875
  "div",
32867
32876
  {
32868
32877
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
32869
32878
  }
32870
32879
  ),
32871
- /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
32880
+ /* @__PURE__ */ jsx106("span", { className: "text-sm", children: item[1] })
32872
32881
  ] })
32873
32882
  ]
32874
32883
  },
@@ -32881,9 +32890,9 @@ var StatusDropdownField = (props) => {
32881
32890
  };
32882
32891
 
32883
32892
  // src/widgets/basic/many2many-field/many2many.tsx
32884
- import { createPortal as createPortal6 } from "react-dom";
32885
- import { useEffect as useEffect26 } from "react";
32886
- import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32893
+ import { createPortal as createPortal5 } from "react-dom";
32894
+ import { useEffect as useEffect27 } from "react";
32895
+ import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
32887
32896
  var Many2ManyField = (props) => {
32888
32897
  const { t: t3 } = useI18n();
32889
32898
  const {
@@ -32942,7 +32951,7 @@ var Many2ManyField = (props) => {
32942
32951
  clearSearch
32943
32952
  } = searchController;
32944
32953
  const { handleCheckBoxAll, checkedAll, selectedRowKeysRef } = tableHeadController;
32945
- useEffect26(() => {
32954
+ useEffect27(() => {
32946
32955
  const groupItems = Array.isArray(selectedTags) ? selectedTags.filter((item) => item.type === "group_by") : [];
32947
32956
  if (groupItems?.length > 0) {
32948
32957
  typeof setPageLimit === "function" && setPageLimit(80);
@@ -32956,8 +32965,8 @@ var Many2ManyField = (props) => {
32956
32965
  typeof setGroupByList === "function" && setGroupByList(null);
32957
32966
  };
32958
32967
  }, [selectedTags]);
32959
- return createPortal6(
32960
- /* @__PURE__ */ jsxs71(
32968
+ return createPortal5(
32969
+ /* @__PURE__ */ jsxs72(
32961
32970
  "div",
32962
32971
  {
32963
32972
  style: {
@@ -32965,8 +32974,8 @@ var Many2ManyField = (props) => {
32965
32974
  },
32966
32975
  className: "fixed bottom-0 left-0 right-0 top-0",
32967
32976
  children: [
32968
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32969
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
32977
+ /* @__PURE__ */ jsx107("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32978
+ /* @__PURE__ */ jsx107("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs72(
32970
32979
  "div",
32971
32980
  {
32972
32981
  style: {
@@ -32974,12 +32983,12 @@ var Many2ManyField = (props) => {
32974
32983
  },
32975
32984
  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",
32976
32985
  children: [
32977
- /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32978
- /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
32979
- /* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
32986
+ /* @__PURE__ */ jsxs72("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32987
+ /* @__PURE__ */ jsx107("div", { className: "text-[20px] font-semibold", children: title }),
32988
+ /* @__PURE__ */ jsx107("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx107(CloseIcon, {}) })
32980
32989
  ] }),
32981
- /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32982
- /* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
32990
+ /* @__PURE__ */ jsxs72("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32991
+ /* @__PURE__ */ jsx107("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx107(
32983
32992
  Search,
32984
32993
  {
32985
32994
  removeSearchItems,
@@ -33013,7 +33022,7 @@ var Many2ManyField = (props) => {
33013
33022
  groupByList
33014
33023
  }
33015
33024
  ) }),
33016
- /* @__PURE__ */ jsx106(
33025
+ /* @__PURE__ */ jsx107(
33017
33026
  PaginationView,
33018
33027
  {
33019
33028
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33030,20 +33039,20 @@ var Many2ManyField = (props) => {
33030
33039
  }
33031
33040
  )
33032
33041
  ] }),
33033
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx106("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx106("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx106(
33042
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx107("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx107("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx107(
33034
33043
  "div",
33035
33044
  {
33036
33045
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33037
- children: /* @__PURE__ */ jsx106("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx106("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx106(
33046
+ children: /* @__PURE__ */ jsx107("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx107("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx107(
33038
33047
  "div",
33039
33048
  {
33040
33049
  className: `flex w-full items-center h-full overflow-auto `,
33041
- children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
33050
+ children: /* @__PURE__ */ jsx107("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs72(
33042
33051
  "table",
33043
33052
  {
33044
33053
  className: `relative w-full bg-white custom-dropdown `,
33045
33054
  children: [
33046
- /* @__PURE__ */ jsx106(
33055
+ /* @__PURE__ */ jsx107(
33047
33056
  TableHead,
33048
33057
  {
33049
33058
  columns,
@@ -33053,7 +33062,7 @@ var Many2ManyField = (props) => {
33053
33062
  handleCheckBoxAll
33054
33063
  }
33055
33064
  ),
33056
- rows?.length > 0 ? /* @__PURE__ */ jsx106(
33065
+ rows?.length > 0 ? /* @__PURE__ */ jsx107(
33057
33066
  TableBody,
33058
33067
  {
33059
33068
  tableGroupController,
@@ -33093,16 +33102,16 @@ var Many2ManyField = (props) => {
33093
33102
  checkedAll,
33094
33103
  context
33095
33104
  }
33096
- ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
33105
+ ) : /* @__PURE__ */ jsx107("tr", { children: /* @__PURE__ */ jsx107(
33097
33106
  "td",
33098
33107
  {
33099
33108
  className: "w-full",
33100
33109
  colSpan: columns?.length + 2,
33101
- children: /* @__PURE__ */ jsx106(
33110
+ children: /* @__PURE__ */ jsx107(
33102
33111
  "div",
33103
33112
  {
33104
33113
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33105
- children: /* @__PURE__ */ jsx106(EmptyTable, {})
33114
+ children: /* @__PURE__ */ jsx107(EmptyTable, {})
33106
33115
  }
33107
33116
  )
33108
33117
  }
@@ -33113,9 +33122,9 @@ var Many2ManyField = (props) => {
33113
33122
  }
33114
33123
  ) }) })
33115
33124
  }
33116
- ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33117
- /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33118
- isDisplayCheckbox && /* @__PURE__ */ jsx106(
33125
+ ) }) }) : /* @__PURE__ */ jsx107(LayerLoading, {}),
33126
+ /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2 mt-auto", children: [
33127
+ isDisplayCheckbox && /* @__PURE__ */ jsx107(
33119
33128
  "button",
33120
33129
  {
33121
33130
  disabled: selectedRowKeys?.length === 0,
@@ -33125,7 +33134,7 @@ var Many2ManyField = (props) => {
33125
33134
  children: t3("choose")
33126
33135
  }
33127
33136
  ),
33128
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33137
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx107(
33129
33138
  "button",
33130
33139
  {
33131
33140
  type: "button",
@@ -33141,7 +33150,7 @@ var Many2ManyField = (props) => {
33141
33150
  children: t3("new")
33142
33151
  }
33143
33152
  ),
33144
- /* @__PURE__ */ jsx106(
33153
+ /* @__PURE__ */ jsx107(
33145
33154
  "button",
33146
33155
  {
33147
33156
  type: "button",
@@ -33162,16 +33171,16 @@ var Many2ManyField = (props) => {
33162
33171
  };
33163
33172
 
33164
33173
  // src/widgets/basic/many2one-field/many2one.tsx
33165
- import React18, { useEffect as useEffect27 } from "react";
33166
- import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33174
+ import React18, { useEffect as useEffect28 } from "react";
33175
+ import { Fragment as Fragment31, jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33167
33176
  var CustomMenuList2 = (props) => {
33168
33177
  const { t: t3 } = useI18n();
33169
33178
  const { options: options2, children, selectProps } = props;
33170
33179
  const { setIsShowModalMany2Many, searchable } = selectProps;
33171
33180
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33172
- return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33181
+ return /* @__PURE__ */ jsxs73(components.MenuList, { ...props, className: "z-[99]", children: [
33173
33182
  limitedChildren,
33174
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33183
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs73(
33175
33184
  "button",
33176
33185
  {
33177
33186
  type: "button",
@@ -33214,14 +33223,14 @@ var Many2OneField = (props) => {
33214
33223
  const { t: t3 } = useI18n();
33215
33224
  if (!isForm && !isEditTable) {
33216
33225
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33217
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33226
+ return /* @__PURE__ */ jsxs73(Fragment31, { children: [
33218
33227
  allowShowDetail && renderDetail({
33219
33228
  idToolTip: String(name2) + Number(index4),
33220
33229
  model: options2?.model ?? relation,
33221
33230
  context: contextObject,
33222
33231
  idForm: id
33223
33232
  }),
33224
- /* @__PURE__ */ jsx107(
33233
+ /* @__PURE__ */ jsx108(
33225
33234
  "span",
33226
33235
  {
33227
33236
  className: "cursor-pointer",
@@ -33232,20 +33241,20 @@ var Many2OneField = (props) => {
33232
33241
  )
33233
33242
  ] });
33234
33243
  }
33235
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33244
+ return /* @__PURE__ */ jsxs73(Fragment31, { children: [
33236
33245
  allowShowDetail && renderDetail({
33237
33246
  idToolTip: String(name2),
33238
33247
  model: options2?.model ?? relation,
33239
33248
  context: contextObject,
33240
33249
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33241
33250
  }),
33242
- /* @__PURE__ */ jsx107(
33251
+ /* @__PURE__ */ jsx108(
33243
33252
  "div",
33244
33253
  {
33245
33254
  id: name2,
33246
33255
  "data-tooltip-id": name2,
33247
33256
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33248
- children: /* @__PURE__ */ jsx107(
33257
+ children: /* @__PURE__ */ jsx108(
33249
33258
  Controller,
33250
33259
  {
33251
33260
  name: name2 ?? "",
@@ -33265,13 +33274,13 @@ var Many2OneField = (props) => {
33265
33274
  const selectedOption = isForm && options2?.service && options2?.type && options2?.model ? tempSelectedOption : tempSelectedOption && options2?.length > 0 ? options2.find(
33266
33275
  (option) => option.value === tempSelectedOption?.value
33267
33276
  ) : currentValue ? currentValue : null;
33268
- useEffect27(() => {
33277
+ useEffect28(() => {
33269
33278
  if (error2 && selectedOption) {
33270
33279
  methods?.clearErrors(name2);
33271
33280
  }
33272
33281
  }, [selectedOption]);
33273
- return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33274
- /* @__PURE__ */ jsx107(
33282
+ return /* @__PURE__ */ jsxs73("div", { className: "h-full", children: [
33283
+ /* @__PURE__ */ jsx108(
33275
33284
  StateManagedSelect$1,
33276
33285
  {
33277
33286
  menuShouldScrollIntoView: false,
@@ -33347,7 +33356,7 @@ var Many2OneField = (props) => {
33347
33356
  })
33348
33357
  },
33349
33358
  components: {
33350
- MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33359
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx108(
33351
33360
  CustomMenuList2,
33352
33361
  {
33353
33362
  ...menuListProps,
@@ -33358,13 +33367,13 @@ var Many2OneField = (props) => {
33358
33367
  }
33359
33368
  ),
33360
33369
  IndicatorSeparator: () => null,
33361
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33370
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx108(components.DropdownIndicator, { ...props2 })
33362
33371
  },
33363
33372
  isDisabled: readonly,
33364
33373
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33365
33374
  }
33366
33375
  ),
33367
- !isEditTable && error2 && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33376
+ !isEditTable && error2 && /* @__PURE__ */ jsx108("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33368
33377
  ] });
33369
33378
  }
33370
33379
  }
@@ -33375,7 +33384,7 @@ var Many2OneField = (props) => {
33375
33384
  };
33376
33385
 
33377
33386
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33378
- import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33387
+ import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33379
33388
  var StatusbarDurationField = (props) => {
33380
33389
  const {
33381
33390
  disabled,
@@ -33385,14 +33394,14 @@ var StatusbarDurationField = (props) => {
33385
33394
  defaultValue,
33386
33395
  setModalStatus
33387
33396
  } = props;
33388
- return /* @__PURE__ */ jsx108(
33397
+ return /* @__PURE__ */ jsx109(
33389
33398
  "div",
33390
33399
  {
33391
33400
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33392
- children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33393
- /* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33401
+ children: /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-[24px]", children: [
33402
+ /* @__PURE__ */ jsx109("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33394
33403
  const value = option?.id === defaultValue;
33395
- return /* @__PURE__ */ jsxs73(
33404
+ return /* @__PURE__ */ jsxs74(
33396
33405
  "label",
33397
33406
  {
33398
33407
  onClick: () => !disabled && handleClick(option.id),
@@ -33402,7 +33411,7 @@ var StatusbarDurationField = (props) => {
33402
33411
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33403
33412
  `,
33404
33413
  children: [
33405
- /* @__PURE__ */ jsx108(
33414
+ /* @__PURE__ */ jsx109(
33406
33415
  "input",
33407
33416
  {
33408
33417
  type: "radio",
@@ -33412,7 +33421,7 @@ var StatusbarDurationField = (props) => {
33412
33421
  }
33413
33422
  ),
33414
33423
  option?.name,
33415
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33424
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx109(
33416
33425
  "div",
33417
33426
  {
33418
33427
  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]
@@ -33427,14 +33436,14 @@ var StatusbarDurationField = (props) => {
33427
33436
  }) }),
33428
33437
  dataResponse?.records?.some(
33429
33438
  (item) => item?.fold && item.id !== defaultValue
33430
- ) && /* @__PURE__ */ jsxs73(
33439
+ ) && /* @__PURE__ */ jsxs74(
33431
33440
  "div",
33432
33441
  {
33433
33442
  onClick: () => setModalStatus(!modelStatus),
33434
33443
  className: "w-[24px] h-[24px] cursor-pointer relative",
33435
33444
  children: [
33436
- /* @__PURE__ */ jsx108(MoreIcon, {}),
33437
- modelStatus && /* @__PURE__ */ jsx108(
33445
+ /* @__PURE__ */ jsx109(MoreIcon, {}),
33446
+ modelStatus && /* @__PURE__ */ jsx109(
33438
33447
  "div",
33439
33448
  {
33440
33449
  onClick: (e3) => e3.stopPropagation(),
@@ -33443,7 +33452,7 @@ var StatusbarDurationField = (props) => {
33443
33452
  (item) => item?.fold && item.id !== defaultValue
33444
33453
  )?.map((option) => {
33445
33454
  const value = option?.id === defaultValue;
33446
- return /* @__PURE__ */ jsx108(
33455
+ return /* @__PURE__ */ jsx109(
33447
33456
  "div",
33448
33457
  {
33449
33458
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33465,14 +33474,14 @@ var StatusbarDurationField = (props) => {
33465
33474
 
33466
33475
  // src/widgets/basic/status-bar-field/option/option.tsx
33467
33476
  import { useMemo as useMemo11 } from "react";
33468
- import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33477
+ import { Fragment as Fragment32, jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33469
33478
  var StatusBarOptionField = (props) => {
33470
33479
  const { selection, defaultValue } = props;
33471
33480
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33472
33481
  const indexInProgress = memoizedStatusOptions?.findIndex(
33473
33482
  (option) => option?.[0] === defaultValue
33474
33483
  );
33475
- return /* @__PURE__ */ jsx109(
33484
+ return /* @__PURE__ */ jsx110(
33476
33485
  "div",
33477
33486
  {
33478
33487
  style: {
@@ -33481,8 +33490,8 @@ var StatusBarOptionField = (props) => {
33481
33490
  flexWrap: "wrap"
33482
33491
  },
33483
33492
  children: memoizedStatusOptions?.map((option, index4) => {
33484
- return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33485
- /* @__PURE__ */ jsxs74(
33493
+ return /* @__PURE__ */ jsxs75(Fragment32, { children: [
33494
+ /* @__PURE__ */ jsxs75(
33486
33495
  "div",
33487
33496
  {
33488
33497
  style: {
@@ -33500,7 +33509,7 @@ var StatusBarOptionField = (props) => {
33500
33509
  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" : ""
33501
33510
  },
33502
33511
  children: [
33503
- /* @__PURE__ */ jsx109(
33512
+ /* @__PURE__ */ jsx110(
33504
33513
  "span",
33505
33514
  {
33506
33515
  style: {
@@ -33512,10 +33521,10 @@ var StatusBarOptionField = (props) => {
33512
33521
  alignItems: "center",
33513
33522
  borderRadius: "100%"
33514
33523
  },
33515
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx109(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx109(ICCircle, {}) : /* @__PURE__ */ jsx109(ICMinus, {})
33524
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx110(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx110(ICCircle, {}) : /* @__PURE__ */ jsx110(ICMinus, {})
33516
33525
  }
33517
33526
  ),
33518
- /* @__PURE__ */ jsx109(
33527
+ /* @__PURE__ */ jsx110(
33519
33528
  "span",
33520
33529
  {
33521
33530
  style: {
@@ -33528,7 +33537,7 @@ var StatusBarOptionField = (props) => {
33528
33537
  },
33529
33538
  option?.[0]
33530
33539
  ),
33531
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33540
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx110(
33532
33541
  "div",
33533
33542
  {
33534
33543
  style: {
@@ -33544,7 +33553,7 @@ var StatusBarOptionField = (props) => {
33544
33553
  );
33545
33554
  };
33546
33555
  var ICMinus = () => {
33547
- return /* @__PURE__ */ jsx109(
33556
+ return /* @__PURE__ */ jsx110(
33548
33557
  "svg",
33549
33558
  {
33550
33559
  xmlns: "http://www.w3.org/2000/svg",
@@ -33552,7 +33561,7 @@ var ICMinus = () => {
33552
33561
  height: "16",
33553
33562
  viewBox: "0 0 16 16",
33554
33563
  fill: "none",
33555
- children: /* @__PURE__ */ jsx109(
33564
+ children: /* @__PURE__ */ jsx110(
33556
33565
  "path",
33557
33566
  {
33558
33567
  d: "M4 8H12",
@@ -33566,7 +33575,7 @@ var ICMinus = () => {
33566
33575
  );
33567
33576
  };
33568
33577
  var ICCircle = () => {
33569
- return /* @__PURE__ */ jsx109(
33578
+ return /* @__PURE__ */ jsx110(
33570
33579
  "svg",
33571
33580
  {
33572
33581
  xmlns: "http://www.w3.org/2000/svg",
@@ -33574,12 +33583,12 @@ var ICCircle = () => {
33574
33583
  height: "8",
33575
33584
  viewBox: "0 0 8 8",
33576
33585
  fill: "none",
33577
- children: /* @__PURE__ */ jsx109("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33586
+ children: /* @__PURE__ */ jsx110("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33578
33587
  }
33579
33588
  );
33580
33589
  };
33581
33590
  var ICCheck = () => {
33582
- return /* @__PURE__ */ jsx109(
33591
+ return /* @__PURE__ */ jsx110(
33583
33592
  "svg",
33584
33593
  {
33585
33594
  xmlns: "http://www.w3.org/2000/svg",
@@ -33587,7 +33596,7 @@ var ICCheck = () => {
33587
33596
  height: "16",
33588
33597
  viewBox: "0 0 16 16",
33589
33598
  fill: "none",
33590
- children: /* @__PURE__ */ jsx109(
33599
+ children: /* @__PURE__ */ jsx110(
33591
33600
  "path",
33592
33601
  {
33593
33602
  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",
@@ -33601,7 +33610,7 @@ var ICCheck = () => {
33601
33610
  };
33602
33611
 
33603
33612
  // src/widgets/basic/date-option-field/date-option.tsx
33604
- import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33613
+ import { jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
33605
33614
  var DateOptionField = (props) => {
33606
33615
  const {
33607
33616
  name: name2,
@@ -33612,19 +33621,19 @@ var DateOptionField = (props) => {
33612
33621
  string,
33613
33622
  onChange: onChange2
33614
33623
  } = props;
33615
- return /* @__PURE__ */ jsx110(
33624
+ return /* @__PURE__ */ jsx111(
33616
33625
  Controller,
33617
33626
  {
33618
33627
  name: name2 ?? "",
33619
33628
  control: methods?.control,
33620
- render: ({ field }) => /* @__PURE__ */ jsxs75(
33629
+ render: ({ field }) => /* @__PURE__ */ jsxs76(
33621
33630
  "label",
33622
33631
  {
33623
33632
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33624
33633
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33625
33634
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33626
33635
  children: [
33627
- /* @__PURE__ */ jsx110(
33636
+ /* @__PURE__ */ jsx111(
33628
33637
  "input",
33629
33638
  {
33630
33639
  type: "checkbox",