@fctc/sme-widget-ui 1.9.3 → 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
@@ -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 = [
@@ -16415,7 +16378,7 @@ var ButtonSelectFiles = ({
16415
16378
  onClick: () => fileInputRef.current.click(),
16416
16379
  children: [
16417
16380
  /* @__PURE__ */ jsx70(AttachIcon, {}),
16418
- /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16381
+ isText && /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16419
16382
  ]
16420
16383
  }
16421
16384
  ),
@@ -16433,8 +16396,55 @@ var ButtonSelectFiles = ({
16433
16396
  ] });
16434
16397
  };
16435
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
+
16436
16446
  // src/widgets/basic/avatar-field/avatar.tsx
16437
- 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";
16438
16448
  var AvatarField = (props) => {
16439
16449
  const {
16440
16450
  isForm = false,
@@ -16458,8 +16468,8 @@ var AvatarField = (props) => {
16458
16468
  color: textColor,
16459
16469
  fontSize: `${size4 / 2.5}px`
16460
16470
  };
16461
- return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16462
- isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16471
+ return /* @__PURE__ */ jsxs47(Fragment15, { children: [
16472
+ isForm && allowShowDetail && /* @__PURE__ */ jsx72(
16463
16473
  ModalDetail,
16464
16474
  {
16465
16475
  idToolTip: `avatar-widget-id-${id}`,
@@ -16470,7 +16480,7 @@ var AvatarField = (props) => {
16470
16480
  place: "top-start"
16471
16481
  }
16472
16482
  ),
16473
- allowShowDetail && /* @__PURE__ */ jsx71(
16483
+ allowShowDetail && /* @__PURE__ */ jsx72(
16474
16484
  M,
16475
16485
  {
16476
16486
  id: `avatar-widget-id-${id}`,
@@ -16479,7 +16489,7 @@ var AvatarField = (props) => {
16479
16489
  className: "z-20"
16480
16490
  }
16481
16491
  ),
16482
- avatarSrc ? /* @__PURE__ */ jsx71(
16492
+ avatarSrc ? /* @__PURE__ */ jsx72(
16483
16493
  "img",
16484
16494
  {
16485
16495
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16487,7 +16497,7 @@ var AvatarField = (props) => {
16487
16497
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16488
16498
  alt: "Avatar"
16489
16499
  }
16490
- ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16500
+ ) : /* @__PURE__ */ jsx72("div", { children: /* @__PURE__ */ jsx72(
16491
16501
  "div",
16492
16502
  {
16493
16503
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16500,7 +16510,7 @@ var AvatarField = (props) => {
16500
16510
  };
16501
16511
 
16502
16512
  // src/widgets/basic/binary-field/binary.tsx
16503
- import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16513
+ import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
16504
16514
  var BinaryField = (props) => {
16505
16515
  const {
16506
16516
  name: name2,
@@ -16523,7 +16533,7 @@ var BinaryField = (props) => {
16523
16533
  image
16524
16534
  } = props;
16525
16535
  const { t: t3 } = useI18n();
16526
- return /* @__PURE__ */ jsx72(
16536
+ return /* @__PURE__ */ jsx73(
16527
16537
  Controller,
16528
16538
  {
16529
16539
  name: name2 ?? "",
@@ -16533,13 +16543,13 @@ var BinaryField = (props) => {
16533
16543
  },
16534
16544
  render: ({ field }) => {
16535
16545
  const renderImage = initialImage || selectedImage;
16536
- return /* @__PURE__ */ jsx72(
16546
+ return /* @__PURE__ */ jsx73(
16537
16547
  "div",
16538
16548
  {
16539
16549
  ref: binaryRef,
16540
16550
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16541
- children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
16542
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16551
+ children: renderImage ? /* @__PURE__ */ jsxs48("div", { className: "relative group", children: [
16552
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx73(
16543
16553
  "img",
16544
16554
  {
16545
16555
  style: {
@@ -16550,7 +16560,7 @@ var BinaryField = (props) => {
16550
16560
  alt: "Selected",
16551
16561
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16552
16562
  }
16553
- ) : renderImage ? /* @__PURE__ */ jsx72(
16563
+ ) : renderImage ? /* @__PURE__ */ jsx73(
16554
16564
  "img",
16555
16565
  {
16556
16566
  style: {
@@ -16561,17 +16571,17 @@ var BinaryField = (props) => {
16561
16571
  alt: "Selected",
16562
16572
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16563
16573
  }
16564
- ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
16565
- !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16574
+ ) : /* @__PURE__ */ jsx73(PlaceHolderIcon, {}),
16575
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx73(
16566
16576
  "button",
16567
16577
  {
16568
16578
  type: "button",
16569
16579
  onClick: () => handleRemoveImage(field.onChange),
16570
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",
16571
- children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16581
+ children: /* @__PURE__ */ jsx73(DeleteIcon, {})
16572
16582
  }
16573
16583
  )
16574
- ] }) : /* @__PURE__ */ jsxs47(
16584
+ ] }) : /* @__PURE__ */ jsxs48(
16575
16585
  "label",
16576
16586
  {
16577
16587
  htmlFor: inputId,
@@ -16581,7 +16591,7 @@ var BinaryField = (props) => {
16581
16591
  },
16582
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"}`,
16583
16593
  children: [
16584
- /* @__PURE__ */ jsx72(
16594
+ /* @__PURE__ */ jsx73(
16585
16595
  "input",
16586
16596
  {
16587
16597
  id: inputId,
@@ -16593,8 +16603,8 @@ var BinaryField = (props) => {
16593
16603
  className: "hidden z-10 relative"
16594
16604
  }
16595
16605
  ),
16596
- /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
16597
- /* @__PURE__ */ jsx72(
16606
+ /* @__PURE__ */ jsx73("img", { src: image, alt: "", className: "z-0 relative" }),
16607
+ /* @__PURE__ */ jsx73(
16598
16608
  "div",
16599
16609
  {
16600
16610
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -16603,7 +16613,7 @@ var BinaryField = (props) => {
16603
16613
  left: "-8px",
16604
16614
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16605
16615
  },
16606
- children: /* @__PURE__ */ jsx72(
16616
+ children: /* @__PURE__ */ jsx73(
16607
16617
  "svg",
16608
16618
  {
16609
16619
  xmlns: "http://www.w3.org/2000/svg",
@@ -16611,7 +16621,7 @@ var BinaryField = (props) => {
16611
16621
  height: "14",
16612
16622
  viewBox: "0 0 14 14",
16613
16623
  fill: "none",
16614
- children: /* @__PURE__ */ jsx72(
16624
+ children: /* @__PURE__ */ jsx73(
16615
16625
  "path",
16616
16626
  {
16617
16627
  "fill-rule": "evenodd",
@@ -16635,7 +16645,7 @@ var BinaryField = (props) => {
16635
16645
  };
16636
16646
 
16637
16647
  // src/widgets/basic/button-badge-field/button-badge.tsx
16638
- import { jsx as jsx73 } from "react/jsx-runtime";
16648
+ import { jsx as jsx74 } from "react/jsx-runtime";
16639
16649
  var typeStyles = {
16640
16650
  primary: {
16641
16651
  backgroundColor: "#3b82f6",
@@ -16710,11 +16720,11 @@ var ButtonBadgeField = (props) => {
16710
16720
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16711
16721
  };
16712
16722
  const label = getLabel(defaultValue ?? value);
16713
- return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16723
+ return label ? /* @__PURE__ */ jsx74("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16714
16724
  };
16715
16725
 
16716
16726
  // src/widgets/basic/button-field/button.tsx
16717
- 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";
16718
16728
  var ButtonField = (props) => {
16719
16729
  const {
16720
16730
  func,
@@ -16725,7 +16735,7 @@ var ButtonField = (props) => {
16725
16735
  type = "submit"
16726
16736
  } = props;
16727
16737
  const { t: t3 } = useI18n();
16728
- return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
16738
+ return /* @__PURE__ */ jsx75(Fragment16, { children: !loading ? /* @__PURE__ */ jsx75(
16729
16739
  "button",
16730
16740
  {
16731
16741
  type,
@@ -16734,7 +16744,7 @@ var ButtonField = (props) => {
16734
16744
  onClick: func,
16735
16745
  children: t3(content)
16736
16746
  }
16737
- ) : /* @__PURE__ */ jsxs48(
16747
+ ) : /* @__PURE__ */ jsxs49(
16738
16748
  "button",
16739
16749
  {
16740
16750
  type,
@@ -16743,15 +16753,15 @@ var ButtonField = (props) => {
16743
16753
  children: [
16744
16754
  t3("loading"),
16745
16755
  " ",
16746
- /* @__PURE__ */ jsx74(LoadingIcon, {})
16756
+ /* @__PURE__ */ jsx75(LoadingIcon, {})
16747
16757
  ]
16748
16758
  }
16749
16759
  ) });
16750
16760
  };
16751
16761
 
16752
16762
  // src/widgets/basic/char-field/char.tsx
16753
- import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
16754
- 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";
16755
16765
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16756
16766
  var CharField = (props) => {
16757
16767
  const {
@@ -16779,9 +16789,9 @@ var CharField = (props) => {
16779
16789
  } = props;
16780
16790
  if (!isForm && !isEditTable) {
16781
16791
  const propValue = value || defaultValue;
16782
- 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 });
16783
16793
  }
16784
- return /* @__PURE__ */ jsx75(
16794
+ return /* @__PURE__ */ jsx76(
16785
16795
  Controller,
16786
16796
  {
16787
16797
  name: name2 ?? "",
@@ -16809,12 +16819,12 @@ var CharField = (props) => {
16809
16819
  fieldState: { error: error2, isDirty }
16810
16820
  }) => {
16811
16821
  const { setError, clearErrors } = methods;
16812
- useEffect11(() => {
16822
+ useEffect12(() => {
16813
16823
  if (value2) {
16814
16824
  clearErrors(name2);
16815
16825
  }
16816
16826
  }, [value2, clearErrors, name2]);
16817
- useEffect11(() => {
16827
+ useEffect12(() => {
16818
16828
  if (widget !== WIDGET_AUTO_COMPUTE_DEPEND) return;
16819
16829
  const depValue = formValues?.[options2?.depend_field]?.[options2?.field_name];
16820
16830
  const currentValue = methods?.getValues(name2);
@@ -16835,8 +16845,8 @@ var CharField = (props) => {
16835
16845
  }
16836
16846
  return "";
16837
16847
  }, [widget, formValues]);
16838
- return /* @__PURE__ */ jsxs49(Fragment17, { children: [
16839
- /* @__PURE__ */ jsx75(
16848
+ return /* @__PURE__ */ jsxs50(Fragment17, { children: [
16849
+ /* @__PURE__ */ jsx76(
16840
16850
  "input",
16841
16851
  {
16842
16852
  value: displayValue ?? "",
@@ -16897,7 +16907,7 @@ var CharField = (props) => {
16897
16907
  `
16898
16908
  }
16899
16909
  ),
16900
- 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 }) })
16901
16911
  ] });
16902
16912
  }
16903
16913
  }
@@ -16905,7 +16915,7 @@ var CharField = (props) => {
16905
16915
  };
16906
16916
 
16907
16917
  // src/widgets/basic/checkbox-field/checkbox.tsx
16908
- import { jsx as jsx76 } from "react/jsx-runtime";
16918
+ import { jsx as jsx77 } from "react/jsx-runtime";
16909
16919
  var CheckboxField = (props) => {
16910
16920
  const {
16911
16921
  name: name2,
@@ -16920,9 +16930,9 @@ var CheckboxField = (props) => {
16920
16930
  } = props;
16921
16931
  if (!isForm) {
16922
16932
  if (name2 === "is_active" || name2 === "active") {
16923
- return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
16933
+ return /* @__PURE__ */ jsx77(ActiveBadgeField, { type: value });
16924
16934
  } else {
16925
- return /* @__PURE__ */ jsx76(
16935
+ return /* @__PURE__ */ jsx77(
16926
16936
  "input",
16927
16937
  {
16928
16938
  type: "checkbox",
@@ -16933,12 +16943,12 @@ var CheckboxField = (props) => {
16933
16943
  );
16934
16944
  }
16935
16945
  }
16936
- return /* @__PURE__ */ jsx76(
16946
+ return /* @__PURE__ */ jsx77(
16937
16947
  Controller,
16938
16948
  {
16939
16949
  name: name2 ?? "",
16940
16950
  control: methods?.control,
16941
- render: ({ field }) => /* @__PURE__ */ jsx76(
16951
+ render: ({ field }) => /* @__PURE__ */ jsx77(
16942
16952
  "div",
16943
16953
  {
16944
16954
  className: "flex items-center gap-2",
@@ -16951,7 +16961,7 @@ var CheckboxField = (props) => {
16951
16961
  onChange2(name2 ?? "", checked);
16952
16962
  }
16953
16963
  },
16954
- children: /* @__PURE__ */ jsx76(
16964
+ children: /* @__PURE__ */ jsx77(
16955
16965
  "input",
16956
16966
  {
16957
16967
  ...field,
@@ -16978,24 +16988,24 @@ var CheckboxField = (props) => {
16978
16988
  };
16979
16989
 
16980
16990
  // src/widgets/basic/color-field/color-wrapper.tsx
16981
- import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
16982
- 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";
16983
16993
  var ColorWrapper = (props) => {
16984
16994
  const {
16985
16995
  colors: colors2,
16986
16996
  defaultColor,
16987
16997
  savePickColor
16988
16998
  } = props;
16989
- const [selectedColor, setSelectedColor] = useState11(colors2[defaultColor]);
16990
- const [showFullColors, setIsShowFullColor] = useState11(false);
16991
- const pickColorsRef = useRef7(null);
16992
- useEffect12(() => {
16999
+ const [selectedColor, setSelectedColor] = useState12(colors2[defaultColor]);
17000
+ const [showFullColors, setIsShowFullColor] = useState12(false);
17001
+ const pickColorsRef = useRef8(null);
17002
+ useEffect13(() => {
16993
17003
  setSelectedColor(colors2[defaultColor]);
16994
17004
  }, [defaultColor]);
16995
17005
  const handleShowFullColors = () => {
16996
17006
  setIsShowFullColor(!showFullColors);
16997
17007
  };
16998
- useEffect12(() => {
17008
+ useEffect13(() => {
16999
17009
  const handleClickOutside = (event) => {
17000
17010
  if (pickColorsRef.current && !pickColorsRef.current.contains(event.target)) {
17001
17011
  setIsShowFullColor(false);
@@ -17006,8 +17016,8 @@ var ColorWrapper = (props) => {
17006
17016
  document.removeEventListener("mousedown", handleClickOutside);
17007
17017
  };
17008
17018
  }, []);
17009
- return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17010
- /* @__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(
17011
17021
  "button",
17012
17022
  {
17013
17023
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17021,7 +17031,7 @@ var ColorWrapper = (props) => {
17021
17031
  }
17022
17032
  }
17023
17033
  ),
17024
- /* @__PURE__ */ jsx77(
17034
+ /* @__PURE__ */ jsx78(
17025
17035
  M,
17026
17036
  {
17027
17037
  className: "",
@@ -17030,8 +17040,8 @@ var ColorWrapper = (props) => {
17030
17040
  content: i18n_default.t(color?.name)
17031
17041
  }
17032
17042
  )
17033
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17034
- /* @__PURE__ */ jsx77(
17043
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs51(Fragment18, { children: [
17044
+ /* @__PURE__ */ jsx78(
17035
17045
  "button",
17036
17046
  {
17037
17047
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17044,7 +17054,7 @@ var ColorWrapper = (props) => {
17044
17054
  style: { backgroundColor: selectedColor?.color }
17045
17055
  }
17046
17056
  ),
17047
- /* @__PURE__ */ jsx77(
17057
+ /* @__PURE__ */ jsx78(
17048
17058
  M,
17049
17059
  {
17050
17060
  place: "top",
@@ -17056,13 +17066,13 @@ var ColorWrapper = (props) => {
17056
17066
  };
17057
17067
 
17058
17068
  // src/widgets/basic/color-field/color.tsx
17059
- import { jsx as jsx78 } from "react/jsx-runtime";
17069
+ import { jsx as jsx79 } from "react/jsx-runtime";
17060
17070
  var ColorField = (props) => {
17061
17071
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17062
17072
  if (!isForm) {
17063
- return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17073
+ return /* @__PURE__ */ jsx79(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17064
17074
  }
17065
- return /* @__PURE__ */ jsx78(
17075
+ return /* @__PURE__ */ jsx79(
17066
17076
  Controller,
17067
17077
  {
17068
17078
  name: name2 ?? "",
@@ -17072,7 +17082,7 @@ var ColorField = (props) => {
17072
17082
  field.onChange(color?.id);
17073
17083
  onChange2 && onChange2(name2 ?? "", color?.id);
17074
17084
  };
17075
- return /* @__PURE__ */ jsx78(
17085
+ return /* @__PURE__ */ jsx79(
17076
17086
  ColorWrapper,
17077
17087
  {
17078
17088
  savePickColor: handlePickColorChange,
@@ -17086,8 +17096,8 @@ var ColorField = (props) => {
17086
17096
  };
17087
17097
 
17088
17098
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17089
- import { useEffect as useEffect13 } from "react";
17090
- 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";
17091
17101
  var CopyLinkButtonField = (props) => {
17092
17102
  const {
17093
17103
  isForm,
@@ -17106,9 +17116,9 @@ var CopyLinkButtonField = (props) => {
17106
17116
  } = props;
17107
17117
  const { t: t3 } = useI18n();
17108
17118
  if (!isForm) {
17109
- 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 });
17110
17120
  }
17111
- return /* @__PURE__ */ jsx79(
17121
+ return /* @__PURE__ */ jsx80(
17112
17122
  Controller,
17113
17123
  {
17114
17124
  name: name2 ?? "",
@@ -17121,13 +17131,13 @@ var CopyLinkButtonField = (props) => {
17121
17131
  fieldState: { error: error2 }
17122
17132
  }) => {
17123
17133
  const { setError, clearErrors } = methods;
17124
- useEffect13(() => {
17134
+ useEffect14(() => {
17125
17135
  if (value) {
17126
17136
  clearErrors(name2);
17127
17137
  }
17128
17138
  }, [value]);
17129
- return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17130
- /* @__PURE__ */ jsxs51(
17139
+ return /* @__PURE__ */ jsxs52("div", { className: "relative", children: [
17140
+ /* @__PURE__ */ jsxs52(
17131
17141
  "div",
17132
17142
  {
17133
17143
  "aria-disabled": readonly,
@@ -17136,7 +17146,7 @@ var CopyLinkButtonField = (props) => {
17136
17146
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17137
17147
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17138
17148
  children: [
17139
- /* @__PURE__ */ jsx79(
17149
+ /* @__PURE__ */ jsx80(
17140
17150
  "input",
17141
17151
  {
17142
17152
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17177,19 +17187,19 @@ var CopyLinkButtonField = (props) => {
17177
17187
  `
17178
17188
  }
17179
17189
  ),
17180
- readonly && value && /* @__PURE__ */ jsx79(
17190
+ readonly && value && /* @__PURE__ */ jsx80(
17181
17191
  "button",
17182
17192
  {
17183
17193
  className: "cursor-pointer",
17184
17194
  type: "button",
17185
17195
  onClick: () => handleCopyToClipboard(propValue),
17186
- children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17196
+ children: isCopied ? /* @__PURE__ */ jsx80(CheckIcon, {}) : /* @__PURE__ */ jsx80(CopyIcon, {})
17187
17197
  }
17188
17198
  )
17189
17199
  ]
17190
17200
  }
17191
17201
  ),
17192
- 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 })
17193
17203
  ] });
17194
17204
  }
17195
17205
  }
@@ -17197,10 +17207,10 @@ var CopyLinkButtonField = (props) => {
17197
17207
  };
17198
17208
 
17199
17209
  // src/widgets/basic/date-field/date.tsx
17200
- import { forwardRef as forwardRef6, useEffect as useEffect17 } from "react";
17210
+ import { forwardRef as forwardRef6, useEffect as useEffect18 } from "react";
17201
17211
 
17202
17212
  // node_modules/react-datepicker/dist/index.es.js
17203
- 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";
17204
17214
 
17205
17215
  // node_modules/date-fns/constants.js
17206
17216
  var daysInYear = 365.2425;
@@ -21130,7 +21140,7 @@ function useEffectEvent(callback) {
21130
21140
  }
21131
21141
 
21132
21142
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21133
- 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";
21134
21144
  import * as ReactDOM2 from "react-dom";
21135
21145
 
21136
21146
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21528,7 +21538,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21528
21538
  bottom: isCustomShape ? "" : "rotate(180deg)",
21529
21539
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21530
21540
  }[side];
21531
- return /* @__PURE__ */ jsxs52("svg", {
21541
+ return /* @__PURE__ */ jsxs53("svg", {
21532
21542
  ...rest,
21533
21543
  "aria-hidden": true,
21534
21544
  ref,
@@ -21544,18 +21554,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21544
21554
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21545
21555
  ...restStyle
21546
21556
  },
21547
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21557
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx81("path", {
21548
21558
  clipPath: "url(#" + clipPathId + ")",
21549
21559
  fill: "none",
21550
21560
  stroke,
21551
21561
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21552
21562
  d: dValue
21553
- }), /* @__PURE__ */ jsx80("path", {
21563
+ }), /* @__PURE__ */ jsx81("path", {
21554
21564
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21555
21565
  d: dValue
21556
- }), /* @__PURE__ */ jsx80("clipPath", {
21566
+ }), /* @__PURE__ */ jsx81("clipPath", {
21557
21567
  id: clipPathId,
21558
- children: /* @__PURE__ */ jsx80("rect", {
21568
+ children: /* @__PURE__ */ jsx81("rect", {
21559
21569
  x: -halfStrokeWidth,
21560
21570
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21561
21571
  width: width + computedStrokeWidth,
@@ -21770,8 +21780,8 @@ var CalendarContainer = function(_a2) {
21770
21780
  return React9.createElement("div", { className, role: "dialog", "aria-label": ariaLabel, "aria-modal": "true" }, children);
21771
21781
  };
21772
21782
  var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21773
- var ref = useRef11(null);
21774
- var onClickOutsideRef = useRef11(onClickOutside);
21783
+ var ref = useRef12(null);
21784
+ var onClickOutsideRef = useRef12(onClickOutside);
21775
21785
  onClickOutsideRef.current = onClickOutside;
21776
21786
  var handleClickOutside = useCallback5(function(event) {
21777
21787
  var _a2;
@@ -21784,7 +21794,7 @@ var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21784
21794
  }
21785
21795
  }
21786
21796
  }, [ignoreClass]);
21787
- useEffect15(function() {
21797
+ useEffect16(function() {
21788
21798
  document.addEventListener("mousedown", handleClickOutside);
21789
21799
  return function() {
21790
21800
  document.removeEventListener("mousedown", handleClickOutside);
@@ -25025,7 +25035,7 @@ function withFloating(Component3) {
25025
25035
  var WithFloating = function(props) {
25026
25036
  var _a2;
25027
25037
  var hidePopper = typeof props.hidePopper === "boolean" ? props.hidePopper : true;
25028
- var arrowRef = useRef11(null);
25038
+ var arrowRef = useRef12(null);
25029
25039
  var floatingProps = useFloating2(_assign({ open: !hidePopper, whileElementsMounted: autoUpdate, placement: props.popperPlacement, middleware: __spreadArray([
25030
25040
  flip3({ padding: 15 }),
25031
25041
  offset3(10),
@@ -26037,13 +26047,13 @@ function _objectWithoutProperties(e3, t3) {
26037
26047
  }
26038
26048
 
26039
26049
  // node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
26040
- import { useState as useState14, useCallback as useCallback6 } from "react";
26050
+ import { useState as useState15, useCallback as useCallback6 } from "react";
26041
26051
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
26042
26052
  function useStateManager(_ref3) {
26043
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);
26044
- var _useState = useState14(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
26045
- var _useState3 = useState14(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
26046
- 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];
26047
26057
  var onChange2 = useCallback6(function(value2, actionMeta) {
26048
26058
  if (typeof propsOnChange === "function") {
26049
26059
  propsOnChange(value2, actionMeta);
@@ -26204,7 +26214,7 @@ function _toConsumableArray(r4) {
26204
26214
 
26205
26215
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
26206
26216
  import * as React13 from "react";
26207
- 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";
26208
26218
 
26209
26219
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
26210
26220
  import * as React11 from "react";
@@ -27488,7 +27498,7 @@ var Emotion$1 = Emotion;
27488
27498
  import * as React12 from "react";
27489
27499
  var import_extends2 = __toESM(require_extends());
27490
27500
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27491
- var jsx81 = function jsx82(type, props) {
27501
+ var jsx82 = function jsx83(type, props) {
27492
27502
  var args = arguments;
27493
27503
  if (props == null || !hasOwn.call(props, "css")) {
27494
27504
  return React12.createElement.apply(void 0, args);
@@ -27506,7 +27516,7 @@ var jsx81 = function jsx82(type, props) {
27506
27516
  var JSX;
27507
27517
  /* @__PURE__ */ (function(_JSX) {
27508
27518
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27509
- })(jsx81 || (jsx81 = {}));
27519
+ })(jsx82 || (jsx82 = {}));
27510
27520
  function css() {
27511
27521
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27512
27522
  args[_key] = arguments[_key];
@@ -27536,8 +27546,8 @@ function _taggedTemplateLiteral(e3, t3) {
27536
27546
  }
27537
27547
 
27538
27548
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27539
- import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27540
- 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";
27541
27551
 
27542
27552
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
27543
27553
  import { useLayoutEffect as useLayoutEffect4 } from "react";
@@ -27882,9 +27892,9 @@ var PortalPlacementContext = /* @__PURE__ */ createContext5(null);
27882
27892
  var MenuPlacer = function MenuPlacer2(props) {
27883
27893
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
27884
27894
  var _ref3 = useContext9(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
27885
- var ref = useRef13(null);
27886
- var _useState = useState15(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
27887
- 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];
27888
27898
  var controlHeight2 = theme.spacing.controlHeight;
27889
27899
  index3(function() {
27890
27900
  var menuEl = ref.current;
@@ -27914,7 +27924,7 @@ var MenuPlacer = function MenuPlacer2(props) {
27914
27924
  };
27915
27925
  var Menu = function Menu2(props) {
27916
27926
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
27917
- return jsx81("div", _extends({}, getStyleProps(props, "menu", {
27927
+ return jsx82("div", _extends({}, getStyleProps(props, "menu", {
27918
27928
  menu: true
27919
27929
  }), {
27920
27930
  ref: innerRef
@@ -27936,7 +27946,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
27936
27946
  };
27937
27947
  var MenuList = function MenuList2(props) {
27938
27948
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
27939
- return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
27949
+ return jsx82("div", _extends({}, getStyleProps(props, "menuList", {
27940
27950
  "menu-list": true,
27941
27951
  "menu-list--is-multi": isMulti
27942
27952
  }), {
@@ -27956,7 +27966,7 @@ var noOptionsMessageCSS = noticeCSS;
27956
27966
  var loadingMessageCSS = noticeCSS;
27957
27967
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27958
27968
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
27959
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27969
+ return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27960
27970
  children,
27961
27971
  innerProps
27962
27972
  }), "noOptionsMessage", {
@@ -27966,7 +27976,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27966
27976
  };
27967
27977
  var LoadingMessage = function LoadingMessage2(_ref7) {
27968
27978
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
27969
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27979
+ return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27970
27980
  children,
27971
27981
  innerProps
27972
27982
  }), "loadingMessage", {
@@ -27986,15 +27996,15 @@ var menuPortalCSS = function menuPortalCSS2(_ref8) {
27986
27996
  };
27987
27997
  var MenuPortal = function MenuPortal2(props) {
27988
27998
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
27989
- var menuPortalRef = useRef13(null);
27990
- var cleanupRef = useRef13(null);
27991
- 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];
27992
28002
  var portalPlacementContext = useMemo7(function() {
27993
28003
  return {
27994
28004
  setPortalPlacement
27995
28005
  };
27996
28006
  }, []);
27997
- 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];
27998
28008
  var updateComputedPosition = useCallback7(function() {
27999
28009
  if (!controlElement) return;
28000
28010
  var rect = getBoundingClientObj(controlElement);
@@ -28029,7 +28039,7 @@ var MenuPortal = function MenuPortal2(props) {
28029
28039
  runAutoUpdate();
28030
28040
  }, [runAutoUpdate]);
28031
28041
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28032
- var menuWrapper = jsx81("div", _extends({
28042
+ var menuWrapper = jsx82("div", _extends({
28033
28043
  ref: setMenuPortalElement
28034
28044
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28035
28045
  offset: computedPosition.offset,
@@ -28038,9 +28048,9 @@ var MenuPortal = function MenuPortal2(props) {
28038
28048
  }), "menuPortal", {
28039
28049
  "menu-portal": true
28040
28050
  }), innerProps), children);
28041
- return jsx81(PortalPlacementContext.Provider, {
28051
+ return jsx82(PortalPlacementContext.Provider, {
28042
28052
  value: portalPlacementContext
28043
- }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
28053
+ }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28044
28054
  };
28045
28055
  var containerCSS = function containerCSS2(_ref3) {
28046
28056
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -28054,7 +28064,7 @@ var containerCSS = function containerCSS2(_ref3) {
28054
28064
  };
28055
28065
  var SelectContainer = function SelectContainer2(props) {
28056
28066
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28057
- return jsx81("div", _extends({}, getStyleProps(props, "container", {
28067
+ return jsx82("div", _extends({}, getStyleProps(props, "container", {
28058
28068
  "--is-disabled": isDisabled,
28059
28069
  "--is-rtl": isRtl
28060
28070
  }), innerProps), children);
@@ -28075,7 +28085,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28075
28085
  };
28076
28086
  var ValueContainer = function ValueContainer2(props) {
28077
28087
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28078
- return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28088
+ return jsx82("div", _extends({}, getStyleProps(props, "valueContainer", {
28079
28089
  "value-container": true,
28080
28090
  "value-container--is-multi": isMulti,
28081
28091
  "value-container--has-value": hasValue
@@ -28091,7 +28101,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28091
28101
  };
28092
28102
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28093
28103
  var children = props.children, innerProps = props.innerProps;
28094
- return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28104
+ return jsx82("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28095
28105
  indicators: true
28096
28106
  }), innerProps), children);
28097
28107
  };
@@ -28112,7 +28122,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28112
28122
  };
28113
28123
  var Svg = function Svg2(_ref3) {
28114
28124
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28115
- return jsx81("svg", _extends({
28125
+ return jsx82("svg", _extends({
28116
28126
  height: size4,
28117
28127
  width: size4,
28118
28128
  viewBox: "0 0 20 20",
@@ -28122,16 +28132,16 @@ var Svg = function Svg2(_ref3) {
28122
28132
  }, props));
28123
28133
  };
28124
28134
  var CrossIcon = function CrossIcon2(props) {
28125
- return jsx81(Svg, _extends({
28135
+ return jsx82(Svg, _extends({
28126
28136
  size: 20
28127
- }, props), jsx81("path", {
28137
+ }, props), jsx82("path", {
28128
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"
28129
28139
  }));
28130
28140
  };
28131
28141
  var DownChevron = function DownChevron2(props) {
28132
- return jsx81(Svg, _extends({
28142
+ return jsx82(Svg, _extends({
28133
28143
  size: 20
28134
- }, props), jsx81("path", {
28144
+ }, props), jsx82("path", {
28135
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"
28136
28146
  }));
28137
28147
  };
@@ -28152,18 +28162,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28152
28162
  var dropdownIndicatorCSS = baseCSS;
28153
28163
  var DropdownIndicator = function DropdownIndicator2(props) {
28154
28164
  var children = props.children, innerProps = props.innerProps;
28155
- return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28165
+ return jsx82("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28156
28166
  indicator: true,
28157
28167
  "dropdown-indicator": true
28158
- }), innerProps), children || jsx81(DownChevron, null));
28168
+ }), innerProps), children || jsx82(DownChevron, null));
28159
28169
  };
28160
28170
  var clearIndicatorCSS = baseCSS;
28161
28171
  var ClearIndicator = function ClearIndicator2(props) {
28162
28172
  var children = props.children, innerProps = props.innerProps;
28163
- return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28173
+ return jsx82("div", _extends({}, getStyleProps(props, "clearIndicator", {
28164
28174
  indicator: true,
28165
28175
  "clear-indicator": true
28166
- }), innerProps), children || jsx81(CrossIcon, null));
28176
+ }), innerProps), children || jsx82(CrossIcon, null));
28167
28177
  };
28168
28178
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28169
28179
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28179,7 +28189,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28179
28189
  };
28180
28190
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28181
28191
  var innerProps = props.innerProps;
28182
- return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28192
+ return jsx82("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28183
28193
  "indicator-separator": true
28184
28194
  })));
28185
28195
  };
@@ -28203,7 +28213,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28203
28213
  };
28204
28214
  var LoadingDot = function LoadingDot2(_ref6) {
28205
28215
  var delay = _ref6.delay, offset4 = _ref6.offset;
28206
- return jsx81("span", {
28216
+ return jsx82("span", {
28207
28217
  css: /* @__PURE__ */ css({
28208
28218
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28209
28219
  backgroundColor: "currentColor",
@@ -28218,20 +28228,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28218
28228
  };
28219
28229
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28220
28230
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28221
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28231
+ return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28222
28232
  innerProps,
28223
28233
  isRtl,
28224
28234
  size: size4
28225
28235
  }), "loadingIndicator", {
28226
28236
  indicator: true,
28227
28237
  "loading-indicator": true
28228
- }), innerProps), jsx81(LoadingDot, {
28238
+ }), innerProps), jsx82(LoadingDot, {
28229
28239
  delay: 0,
28230
28240
  offset: isRtl
28231
- }), jsx81(LoadingDot, {
28241
+ }), jsx82(LoadingDot, {
28232
28242
  delay: 160,
28233
28243
  offset: true
28234
- }), jsx81(LoadingDot, {
28244
+ }), jsx82(LoadingDot, {
28235
28245
  delay: 320,
28236
28246
  offset: !isRtl
28237
28247
  }));
@@ -28263,7 +28273,7 @@ var css$1 = function css2(_ref3, unstyled) {
28263
28273
  };
28264
28274
  var Control = function Control2(props) {
28265
28275
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28266
- return jsx81("div", _extends({
28276
+ return jsx82("div", _extends({
28267
28277
  ref: innerRef
28268
28278
  }, getStyleProps(props, "control", {
28269
28279
  control: true,
@@ -28285,15 +28295,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28285
28295
  };
28286
28296
  var Group = function Group2(props) {
28287
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;
28288
- return jsx81("div", _extends({}, getStyleProps(props, "group", {
28298
+ return jsx82("div", _extends({}, getStyleProps(props, "group", {
28289
28299
  group: true
28290
- }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28300
+ }), innerProps), jsx82(Heading, _extends({}, headingProps, {
28291
28301
  selectProps,
28292
28302
  theme,
28293
28303
  getStyles,
28294
28304
  getClassNames,
28295
28305
  cx
28296
- }), label), jsx81("div", null, children));
28306
+ }), label), jsx82("div", null, children));
28297
28307
  };
28298
28308
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28299
28309
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28315,7 +28325,7 @@ var GroupHeading = function GroupHeading2(props) {
28315
28325
  var _cleanCommonProps = cleanCommonProps(props);
28316
28326
  _cleanCommonProps.data;
28317
28327
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28318
- return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28328
+ return jsx82("div", _extends({}, getStyleProps(props, "groupHeading", {
28319
28329
  "group-heading": true
28320
28330
  }), innerProps));
28321
28331
  };
@@ -28367,11 +28377,11 @@ var inputStyle = function inputStyle2(isHidden) {
28367
28377
  var Input = function Input2(props) {
28368
28378
  var cx = props.cx, value = props.value;
28369
28379
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28370
- return jsx81("div", _extends({}, getStyleProps(props, "input", {
28380
+ return jsx82("div", _extends({}, getStyleProps(props, "input", {
28371
28381
  "input-container": true
28372
28382
  }), {
28373
28383
  "data-value": value || ""
28374
- }), jsx81("input", _extends({
28384
+ }), jsx82("input", _extends({
28375
28385
  className: cx({
28376
28386
  input: true
28377
28387
  }, inputClassName),
@@ -28425,35 +28435,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28425
28435
  };
28426
28436
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28427
28437
  var children = _ref4.children, innerProps = _ref4.innerProps;
28428
- return jsx81("div", innerProps, children);
28438
+ return jsx82("div", innerProps, children);
28429
28439
  };
28430
28440
  var MultiValueContainer = MultiValueGeneric;
28431
28441
  var MultiValueLabel = MultiValueGeneric;
28432
28442
  function MultiValueRemove(_ref5) {
28433
28443
  var children = _ref5.children, innerProps = _ref5.innerProps;
28434
- return jsx81("div", _extends({
28444
+ return jsx82("div", _extends({
28435
28445
  role: "button"
28436
- }, innerProps), children || jsx81(CrossIcon, {
28446
+ }, innerProps), children || jsx82(CrossIcon, {
28437
28447
  size: 14
28438
28448
  }));
28439
28449
  }
28440
28450
  var MultiValue = function MultiValue2(props) {
28441
28451
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28442
28452
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28443
- return jsx81(Container, {
28453
+ return jsx82(Container, {
28444
28454
  data,
28445
28455
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28446
28456
  "multi-value": true,
28447
28457
  "multi-value--is-disabled": isDisabled
28448
28458
  })), innerProps),
28449
28459
  selectProps
28450
- }, jsx81(Label, {
28460
+ }, jsx82(Label, {
28451
28461
  data,
28452
28462
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28453
28463
  "multi-value__label": true
28454
28464
  })),
28455
28465
  selectProps
28456
- }, children), jsx81(Remove, {
28466
+ }, children), jsx82(Remove, {
28457
28467
  data,
28458
28468
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28459
28469
  "multi-value__remove": true
@@ -28486,7 +28496,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28486
28496
  };
28487
28497
  var Option = function Option2(props) {
28488
28498
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28489
- return jsx81("div", _extends({}, getStyleProps(props, "option", {
28499
+ return jsx82("div", _extends({}, getStyleProps(props, "option", {
28490
28500
  option: true,
28491
28501
  "option--is-disabled": isDisabled,
28492
28502
  "option--is-focused": isFocused,
@@ -28510,7 +28520,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28510
28520
  };
28511
28521
  var Placeholder = function Placeholder2(props) {
28512
28522
  var children = props.children, innerProps = props.innerProps;
28513
- return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28523
+ return jsx82("div", _extends({}, getStyleProps(props, "placeholder", {
28514
28524
  placeholder: true
28515
28525
  }), innerProps), children);
28516
28526
  };
@@ -28532,7 +28542,7 @@ var css3 = function css4(_ref3, unstyled) {
28532
28542
  };
28533
28543
  var SingleValue = function SingleValue2(props) {
28534
28544
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28535
- return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28545
+ return jsx82("div", _extends({}, getStyleProps(props, "singleValue", {
28536
28546
  "single-value": true,
28537
28547
  "single-value--is-disabled": isDisabled
28538
28548
  }), innerProps), children);
@@ -28634,7 +28644,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28634
28644
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28635
28645
  };
28636
28646
  var A11yText = function A11yText2(props) {
28637
- return jsx81("span", _extends({
28647
+ return jsx82("span", _extends({
28638
28648
  css: _ref
28639
28649
  }, props));
28640
28650
  };
@@ -28769,18 +28779,18 @@ var LiveRegion = function LiveRegion2(props) {
28769
28779
  }
28770
28780
  return guidanceMsg;
28771
28781
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28772
- var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
28782
+ var ScreenReaderText = jsx82(Fragment22, null, jsx82("span", {
28773
28783
  id: "aria-selection"
28774
- }, ariaSelected), jsx81("span", {
28784
+ }, ariaSelected), jsx82("span", {
28775
28785
  id: "aria-focused"
28776
- }, ariaFocused), jsx81("span", {
28786
+ }, ariaFocused), jsx82("span", {
28777
28787
  id: "aria-results"
28778
- }, ariaResults), jsx81("span", {
28788
+ }, ariaResults), jsx82("span", {
28779
28789
  id: "aria-guidance"
28780
28790
  }, ariaGuidance));
28781
- return jsx81(Fragment22, null, jsx81(A11yText$1, {
28791
+ return jsx82(Fragment22, null, jsx82(A11yText$1, {
28782
28792
  id
28783
- }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
28793
+ }, isInitialFocus && ScreenReaderText), jsx82(A11yText$1, {
28784
28794
  "aria-live": ariaLive,
28785
28795
  "aria-atomic": "false",
28786
28796
  "aria-relevant": "additions text",
@@ -29093,7 +29103,7 @@ var _excluded4 = ["innerRef"];
29093
29103
  function DummyInput(_ref3) {
29094
29104
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29095
29105
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29096
- return jsx81("input", _extends({
29106
+ return jsx82("input", _extends({
29097
29107
  ref: innerRef
29098
29108
  }, filteredProps, {
29099
29109
  css: /* @__PURE__ */ css({
@@ -29125,10 +29135,10 @@ var cancelScroll = function cancelScroll2(event) {
29125
29135
  };
29126
29136
  function useScrollCapture(_ref3) {
29127
29137
  var isEnabled = _ref3.isEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave;
29128
- var isBottom = useRef14(false);
29129
- var isTop = useRef14(false);
29130
- var touchStart = useRef14(0);
29131
- var scrollTarget = useRef14(null);
29138
+ var isBottom = useRef15(false);
29139
+ var isTop = useRef15(false);
29140
+ var touchStart = useRef15(0);
29141
+ var scrollTarget = useRef15(null);
29132
29142
  var handleEventDelta = useCallback8(function(event, delta) {
29133
29143
  if (scrollTarget.current === null) return;
29134
29144
  var _scrollTarget$current = scrollTarget.current, scrollTop = _scrollTarget$current.scrollTop, scrollHeight = _scrollTarget$current.scrollHeight, clientHeight = _scrollTarget$current.clientHeight;
@@ -29188,7 +29198,7 @@ function useScrollCapture(_ref3) {
29188
29198
  el.removeEventListener("touchstart", onTouchStart, false);
29189
29199
  el.removeEventListener("touchmove", onTouchMove, false);
29190
29200
  }, [onTouchMove, onTouchStart, onWheel]);
29191
- useEffect16(function() {
29201
+ useEffect17(function() {
29192
29202
  if (!isEnabled) return;
29193
29203
  var element = scrollTarget.current;
29194
29204
  startListening(element);
@@ -29235,8 +29245,8 @@ var listenerOptions = {
29235
29245
  };
29236
29246
  function useScrollLock(_ref3) {
29237
29247
  var isEnabled = _ref3.isEnabled, _ref$accountForScroll = _ref3.accountForScrollbars, accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;
29238
- var originalStyles = useRef14({});
29239
- var scrollTarget = useRef14(null);
29248
+ var originalStyles = useRef15({});
29249
+ var scrollTarget = useRef15(null);
29240
29250
  var addScrollLock = useCallback8(function(touchScrollTarget) {
29241
29251
  if (!canUseDOM) return;
29242
29252
  var target = document.body;
@@ -29291,7 +29301,7 @@ function useScrollLock(_ref3) {
29291
29301
  }
29292
29302
  }
29293
29303
  }, [accountForScrollbars]);
29294
- useEffect16(function() {
29304
+ useEffect17(function() {
29295
29305
  if (!isEnabled) return;
29296
29306
  var element = scrollTarget.current;
29297
29307
  addScrollLock(element);
@@ -29335,7 +29345,7 @@ function ScrollManager(_ref3) {
29335
29345
  setScrollCaptureTarget(element);
29336
29346
  setScrollLockTarget(element);
29337
29347
  };
29338
- return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29348
+ return jsx82(Fragment22, null, lockEnabled && jsx82("div", {
29339
29349
  onClick: blurSelectInput,
29340
29350
  css: _ref2$1
29341
29351
  }), children(targetRef));
@@ -29354,7 +29364,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29354
29364
  };
29355
29365
  var RequiredInput = function RequiredInput2(_ref3) {
29356
29366
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29357
- return jsx81("input", {
29367
+ return jsx82("input", {
29358
29368
  required: true,
29359
29369
  name: name2,
29360
29370
  tabIndex: -1,
@@ -30944,7 +30954,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30944
30954
 
30945
30955
  // src/widgets/basic/date-field/date.tsx
30946
30956
  var import_moment2 = __toESM(require_moment());
30947
- 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";
30948
30958
  var DateField = (props) => {
30949
30959
  const {
30950
30960
  name: name2,
@@ -30972,8 +30982,8 @@ var DateField = (props) => {
30972
30982
  } = props;
30973
30983
  const { t: t3 } = useI18n();
30974
30984
  const InputDateCustom = forwardRef6(
30975
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
30976
- /* @__PURE__ */ jsx83(
30985
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs54("label", { className: `flex ${className}`, children: [
30986
+ /* @__PURE__ */ jsx84(
30977
30987
  "input",
30978
30988
  {
30979
30989
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -30987,13 +30997,13 @@ var DateField = (props) => {
30987
30997
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
30988
30998
  }
30989
30999
  ),
30990
- isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
31000
+ isForm2 && /* @__PURE__ */ jsx84(CalendarIcon, {})
30991
31001
  ] })
30992
31002
  );
30993
31003
  if (!isForm && !isEditTable) {
30994
- 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) : "" });
30995
31005
  } else {
30996
- return /* @__PURE__ */ jsx83(
31006
+ return /* @__PURE__ */ jsx84(
30997
31007
  Controller,
30998
31008
  {
30999
31009
  name: name2 || "",
@@ -31009,14 +31019,14 @@ var DateField = (props) => {
31009
31019
  },
31010
31020
  render: ({ field, fieldState: { error: error2 } }) => {
31011
31021
  const { setError, clearErrors } = methods;
31012
- useEffect17(() => {
31022
+ useEffect18(() => {
31013
31023
  if (value) {
31014
31024
  clearErrors(name2);
31015
31025
  }
31016
31026
  }, [value, clearErrors, name2]);
31017
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;
31018
- return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31019
- /* @__PURE__ */ jsx83(
31028
+ return /* @__PURE__ */ jsxs54(Fragment23, { children: [
31029
+ /* @__PURE__ */ jsx84(
31020
31030
  DatePicker,
31021
31031
  {
31022
31032
  selected: selectedDate,
@@ -31064,7 +31074,7 @@ var DateField = (props) => {
31064
31074
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31065
31075
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31066
31076
  showTimeInput: showTime,
31067
- customInput: /* @__PURE__ */ jsx83(
31077
+ customInput: /* @__PURE__ */ jsx84(
31068
31078
  InputDateCustom,
31069
31079
  {
31070
31080
  isForm,
@@ -31082,7 +31092,7 @@ var DateField = (props) => {
31082
31092
  increaseMonth,
31083
31093
  prevMonthButtonDisabled,
31084
31094
  nextMonthButtonDisabled
31085
- }) => /* @__PURE__ */ jsxs53(
31095
+ }) => /* @__PURE__ */ jsxs54(
31086
31096
  "div",
31087
31097
  {
31088
31098
  style: {
@@ -31091,7 +31101,7 @@ var DateField = (props) => {
31091
31101
  justifyContent: "center"
31092
31102
  },
31093
31103
  children: [
31094
- /* @__PURE__ */ jsx83(
31104
+ /* @__PURE__ */ jsx84(
31095
31105
  "button",
31096
31106
  {
31097
31107
  onClick: decreaseMonth,
@@ -31099,7 +31109,7 @@ var DateField = (props) => {
31099
31109
  children: "<"
31100
31110
  }
31101
31111
  ),
31102
- /* @__PURE__ */ jsx83(
31112
+ /* @__PURE__ */ jsx84(
31103
31113
  StateManagedSelect$1,
31104
31114
  {
31105
31115
  classNames: {
@@ -31125,7 +31135,7 @@ var DateField = (props) => {
31125
31135
  autoFocus: true
31126
31136
  }
31127
31137
  ),
31128
- /* @__PURE__ */ jsx83(
31138
+ /* @__PURE__ */ jsx84(
31129
31139
  StateManagedSelect$1,
31130
31140
  {
31131
31141
  classNames: {
@@ -31153,7 +31163,7 @@ var DateField = (props) => {
31153
31163
  }))
31154
31164
  }
31155
31165
  ),
31156
- /* @__PURE__ */ jsx83(
31166
+ /* @__PURE__ */ jsx84(
31157
31167
  "button",
31158
31168
  {
31159
31169
  onClick: increaseMonth,
@@ -31166,7 +31176,7 @@ var DateField = (props) => {
31166
31176
  )
31167
31177
  }
31168
31178
  ),
31169
- !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 })
31170
31180
  ] });
31171
31181
  }
31172
31182
  }
@@ -31175,26 +31185,26 @@ var DateField = (props) => {
31175
31185
  };
31176
31186
 
31177
31187
  // src/widgets/basic/download-binary-field/download-binary.tsx
31178
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31188
+ import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31179
31189
  var DownLoadBinaryField = (props) => {
31180
31190
  const { handleFileDownload } = props;
31181
31191
  const { t: t3 } = useI18n();
31182
- return /* @__PURE__ */ jsxs54(
31192
+ return /* @__PURE__ */ jsxs55(
31183
31193
  "button",
31184
31194
  {
31185
31195
  type: "button",
31186
31196
  onClick: handleFileDownload,
31187
31197
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31188
31198
  children: [
31189
- /* @__PURE__ */ jsx84(DownloadIcon, {}),
31190
- /* @__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") })
31191
31201
  ]
31192
31202
  }
31193
31203
  );
31194
31204
  };
31195
31205
 
31196
31206
  // src/widgets/basic/download-file-field/download-file.tsx
31197
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31207
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31198
31208
  var DownloadFileField = (props) => {
31199
31209
  const {
31200
31210
  readonly,
@@ -31206,15 +31216,15 @@ var DownloadFileField = (props) => {
31206
31216
  handleFileChange,
31207
31217
  handleFileDownload
31208
31218
  } = props;
31209
- return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31210
- /* @__PURE__ */ jsxs55(
31219
+ return /* @__PURE__ */ jsxs56("div", { className: "", children: [
31220
+ /* @__PURE__ */ jsxs56(
31211
31221
  "label",
31212
31222
  {
31213
31223
  htmlFor: inputId,
31214
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",
31215
31225
  children: [
31216
- 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" }),
31217
- /* @__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(
31218
31228
  "input",
31219
31229
  {
31220
31230
  id: inputId,
@@ -31228,7 +31238,7 @@ var DownloadFileField = (props) => {
31228
31238
  ]
31229
31239
  }
31230
31240
  ),
31231
- file && /* @__PURE__ */ jsx85(
31241
+ file && /* @__PURE__ */ jsx86(
31232
31242
  "button",
31233
31243
  {
31234
31244
  onClick: handleFileDownload,
@@ -31241,8 +31251,8 @@ var DownloadFileField = (props) => {
31241
31251
  };
31242
31252
 
31243
31253
  // src/widgets/basic/dropdown-field/dropdown.tsx
31244
- import { useState as useState16 } from "react";
31245
- 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";
31246
31256
  var DropdownField = (props) => {
31247
31257
  const {
31248
31258
  options: options2,
@@ -31254,32 +31264,32 @@ var DropdownField = (props) => {
31254
31264
  dropdownClassName = "",
31255
31265
  useClickOutside: useClickOutside2
31256
31266
  } = props;
31257
- const [open, setOpen] = useState16(false);
31267
+ const [open, setOpen] = useState17(false);
31258
31268
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31259
- return /* @__PURE__ */ jsxs56(
31269
+ return /* @__PURE__ */ jsxs57(
31260
31270
  "div",
31261
31271
  {
31262
31272
  ref: dropdownRef,
31263
31273
  className: `relative ${className}`,
31264
31274
  onClick: () => setOpen(!open),
31265
31275
  children: [
31266
- /* @__PURE__ */ jsxs56(
31276
+ /* @__PURE__ */ jsxs57(
31267
31277
  "div",
31268
31278
  {
31269
31279
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31270
31280
  children: [
31271
31281
  selectedValue?.icon,
31272
- /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31273
- /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31282
+ /* @__PURE__ */ jsx87("span", { children: selectedValue?.label }),
31283
+ /* @__PURE__ */ jsx87(ChevronBottomIcon, { className: "h-4 w-4" })
31274
31284
  ]
31275
31285
  }
31276
31286
  ),
31277
- open && /* @__PURE__ */ jsx86(
31287
+ open && /* @__PURE__ */ jsx87(
31278
31288
  "div",
31279
31289
  {
31280
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}`,
31281
31291
  onClick: (e3) => e3.stopPropagation(),
31282
- children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31292
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx87(
31283
31293
  "div",
31284
31294
  {
31285
31295
  onClick: () => {
@@ -31299,7 +31309,7 @@ var DropdownField = (props) => {
31299
31309
  };
31300
31310
 
31301
31311
  // src/widgets/basic/fee-field/fee.tsx
31302
- 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";
31303
31313
  var FeeField = (props) => {
31304
31314
  const { value, formValues } = props;
31305
31315
  const { t: t3 } = useI18n();
@@ -31310,27 +31320,27 @@ var FeeField = (props) => {
31310
31320
  )
31311
31321
  ) + " VND";
31312
31322
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31313
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31323
+ return /* @__PURE__ */ jsxs58(Fragment24, { children: [
31314
31324
  value?.subtotals?.map((sub) => {
31315
31325
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31316
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31317
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31318
- /* @__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: [
31319
31329
  sub?.name,
31320
31330
  ":"
31321
31331
  ] }),
31322
- /* @__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" })
31323
31333
  ] }),
31324
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31334
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs58(
31325
31335
  "div",
31326
31336
  {
31327
31337
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31328
31338
  children: [
31329
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31339
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31330
31340
  group?.group_name,
31331
31341
  ":"
31332
31342
  ] }),
31333
- /* @__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" })
31334
31344
  ]
31335
31345
  },
31336
31346
  `tax_groups_${group?.id}`
@@ -31338,33 +31348,33 @@ var FeeField = (props) => {
31338
31348
  ] });
31339
31349
  }
31340
31350
  }),
31341
- /* @__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: [
31342
- /* @__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: [
31343
31353
  t3("total"),
31344
31354
  ":"
31345
31355
  ] }),
31346
- /* @__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 })
31347
31357
  ] }),
31348
- /* @__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: [
31349
- /* @__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: [
31350
31360
  t3("paid_amount"),
31351
31361
  ":"
31352
31362
  ] }),
31353
- /* @__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 })
31354
31364
  ] }),
31355
- /* @__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: [
31356
- /* @__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: [
31357
31367
  t3("remanining_amount"),
31358
31368
  ":"
31359
31369
  ] }),
31360
- /* @__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 })
31361
31371
  ] })
31362
31372
  ] });
31363
31373
  };
31364
31374
 
31365
31375
  // src/widgets/basic/file-upload-field/file-upload.tsx
31366
- import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31367
- 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";
31368
31378
  var RenderFile = ({
31369
31379
  file,
31370
31380
  onDelete,
@@ -31374,16 +31384,16 @@ var RenderFile = ({
31374
31384
  readAs: "all"
31375
31385
  });
31376
31386
  const fileTypeIcon = {
31377
- "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
31378
- "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
31379
- "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
31380
- "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
31381
- "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, {})
31382
31392
  };
31383
- return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31384
- /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31385
- /* @__PURE__ */ jsxs58("div", { children: [
31386
- /* @__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(
31387
31397
  "div",
31388
31398
  {
31389
31399
  style: {
@@ -31393,20 +31403,20 @@ var RenderFile = ({
31393
31403
  children: file?.name || file?.display_name || info?.name
31394
31404
  }
31395
31405
  ),
31396
- /* @__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) })
31397
31407
  ] }),
31398
- /* @__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: [
31399
- /* @__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(
31400
31410
  "span",
31401
31411
  {
31402
31412
  onClick: () => onDownload && onDownload(
31403
31413
  file?.data,
31404
31414
  file?.name || file?.display_name || info?.name
31405
31415
  ),
31406
- children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31416
+ children: /* @__PURE__ */ jsx89(DownloadIcon, {})
31407
31417
  }
31408
31418
  ),
31409
- /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31419
+ /* @__PURE__ */ jsx89("span", { onClick: onDelete, children: /* @__PURE__ */ jsx89(DeleteIconDanger, {}) })
31410
31420
  ] })
31411
31421
  ] });
31412
31422
  };
@@ -31428,10 +31438,10 @@ var FileUploadField = (props) => {
31428
31438
  downloadFunction
31429
31439
  } = props;
31430
31440
  const { t: t3 } = useI18n();
31431
- const fileInputRef = useRef15(null);
31432
- const [selectedFiles, setSelectedFiles] = useState17([]);
31433
- const [uploadError, setUploadError] = useState17();
31434
- useEffect18(() => {
31441
+ const fileInputRef = useRef16(null);
31442
+ const [selectedFiles, setSelectedFiles] = useState18([]);
31443
+ const [uploadError, setUploadError] = useState18();
31444
+ useEffect19(() => {
31435
31445
  if (selectedFiles?.length === 0 && value) {
31436
31446
  setSelectedFiles([
31437
31447
  {
@@ -31440,7 +31450,7 @@ var FileUploadField = (props) => {
31440
31450
  ]);
31441
31451
  }
31442
31452
  }, [value]);
31443
- return /* @__PURE__ */ jsx88(
31453
+ return /* @__PURE__ */ jsx89(
31444
31454
  Controller,
31445
31455
  {
31446
31456
  name: name2 || "",
@@ -31449,7 +31459,7 @@ var FileUploadField = (props) => {
31449
31459
  required: required ? { value: true, message: `${string} ${t3("must_required")}` } : false
31450
31460
  },
31451
31461
  render: ({ field: { onChange: onChange2 }, fieldState: { error: error2 } }) => {
31452
- useEffect18(() => {
31462
+ useEffect19(() => {
31453
31463
  let data = widget === "many2many_binary" ? selectedFiles : selectedFiles?.[0]?.data;
31454
31464
  if (widget !== "many2many_binary" && data && isBase64File(data)) {
31455
31465
  data = data.split(",")[1];
@@ -31465,8 +31475,8 @@ var FileUploadField = (props) => {
31465
31475
  );
31466
31476
  }
31467
31477
  }, [selectedFiles]);
31468
- return /* @__PURE__ */ jsxs58("div", { children: [
31469
- 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(
31470
31480
  RenderFile,
31471
31481
  {
31472
31482
  file: fileItem,
@@ -31481,8 +31491,8 @@ var FileUploadField = (props) => {
31481
31491
  }
31482
31492
  }
31483
31493
  )),
31484
- uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
31485
- (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(
31486
31496
  ButtonSelectFiles,
31487
31497
  {
31488
31498
  fileInputRef,
@@ -31497,7 +31507,7 @@ var FileUploadField = (props) => {
31497
31507
  useUploadFile
31498
31508
  }
31499
31509
  ),
31500
- 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 })
31501
31511
  ] });
31502
31512
  }
31503
31513
  }
@@ -31505,8 +31515,8 @@ var FileUploadField = (props) => {
31505
31515
  };
31506
31516
 
31507
31517
  // src/widgets/basic/float-field/float.tsx
31508
- import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31509
- 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";
31510
31520
  var FloatField = (props) => {
31511
31521
  const {
31512
31522
  name: name2,
@@ -31524,9 +31534,9 @@ var FloatField = (props) => {
31524
31534
  } = props;
31525
31535
  const { t: t3 } = useI18n();
31526
31536
  if (!isForm && !isEditTable) {
31527
- return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31537
+ return /* @__PURE__ */ jsx90("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31528
31538
  }
31529
- return /* @__PURE__ */ jsx89(
31539
+ return /* @__PURE__ */ jsx90(
31530
31540
  Controller,
31531
31541
  {
31532
31542
  name: name2 ?? "",
@@ -31537,10 +31547,10 @@ var FloatField = (props) => {
31537
31547
  },
31538
31548
  render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
31539
31549
  const { setError, clearErrors } = methods;
31540
- const [inputValue, setInputValue] = useState18(
31550
+ const [inputValue, setInputValue] = useState19(
31541
31551
  value !== void 0 && value !== null ? formatFloatNumber(value) : ""
31542
31552
  );
31543
- useEffect19(() => {
31553
+ useEffect20(() => {
31544
31554
  if (propValue !== void 0 && propValue !== null && propValue !== parseFloat(inputValue?.replace(/,/g, ""))) {
31545
31555
  setInputValue(formatFloatNumber(propValue));
31546
31556
  clearErrors(name2);
@@ -31551,9 +31561,9 @@ var FloatField = (props) => {
31551
31561
  setInputValue("");
31552
31562
  }
31553
31563
  }, [value, name2, clearErrors, propValue]);
31554
- const isDirtyRef = useRef16(false);
31555
- const inputRef = useRef16(null);
31556
- const lastCommittedValueRef = useRef16(null);
31564
+ const isDirtyRef = useRef17(false);
31565
+ const inputRef = useRef17(null);
31566
+ const lastCommittedValueRef = useRef17(null);
31557
31567
  const handleInputChange = (e3) => {
31558
31568
  const newValue = e3.target.value;
31559
31569
  const valueWithoutCommas = newValue.replace(/,/g, "");
@@ -31631,8 +31641,8 @@ var FloatField = (props) => {
31631
31641
  }
31632
31642
  isDirtyRef.current = false;
31633
31643
  };
31634
- return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31635
- /* @__PURE__ */ jsx89(
31644
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
31645
+ /* @__PURE__ */ jsx90(
31636
31646
  "input",
31637
31647
  {
31638
31648
  ref: inputRef,
@@ -31652,7 +31662,7 @@ var FloatField = (props) => {
31652
31662
  `
31653
31663
  }
31654
31664
  ),
31655
- 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 })
31656
31666
  ] });
31657
31667
  }
31658
31668
  }
@@ -31660,8 +31670,8 @@ var FloatField = (props) => {
31660
31670
  };
31661
31671
 
31662
31672
  // src/widgets/basic/float-time-field/float-time.tsx
31663
- import { useState as useState19 } from "react";
31664
- 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";
31665
31675
  var FloatTimeField = (props) => {
31666
31676
  const {
31667
31677
  name: name2,
@@ -31677,9 +31687,9 @@ var FloatTimeField = (props) => {
31677
31687
  const { t: t3 } = useI18n();
31678
31688
  if (!isForm) {
31679
31689
  const formatValue = value ?? 0;
31680
- return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
31690
+ return /* @__PURE__ */ jsx91("span", { children: convertFloatToTime(formatValue) });
31681
31691
  }
31682
- return /* @__PURE__ */ jsx90(
31692
+ return /* @__PURE__ */ jsx91(
31683
31693
  Controller,
31684
31694
  {
31685
31695
  name: name2 ?? "",
@@ -31692,11 +31702,11 @@ var FloatTimeField = (props) => {
31692
31702
  field: { onChange: fieldOnChange, onBlur, value: value2 },
31693
31703
  fieldState: { error: error2, isDirty }
31694
31704
  }) => {
31695
- const [input, setInput] = useState19(
31705
+ const [input, setInput] = useState20(
31696
31706
  convertFloatToTime(value2 ?? defaultValue)
31697
31707
  );
31698
- const [formattedTime, setFormattedTime] = useState19("");
31699
- const [errors, setErrors] = useState19("");
31708
+ const [formattedTime, setFormattedTime] = useState20("");
31709
+ const [errors, setErrors] = useState20("");
31700
31710
  const handleInputChange = (e3) => {
31701
31711
  const raw = e3.target.value.replace(/[^\d:]/g, "");
31702
31712
  setInput(raw);
@@ -31741,8 +31751,8 @@ var FloatTimeField = (props) => {
31741
31751
  }
31742
31752
  onBlur();
31743
31753
  };
31744
- return /* @__PURE__ */ jsxs60(Fragment26, { children: [
31745
- /* @__PURE__ */ jsx90(
31754
+ return /* @__PURE__ */ jsxs61(Fragment26, { children: [
31755
+ /* @__PURE__ */ jsx91(
31746
31756
  "input",
31747
31757
  {
31748
31758
  type: "text",
@@ -31774,7 +31784,7 @@ var FloatTimeField = (props) => {
31774
31784
  readOnly: readonly
31775
31785
  }
31776
31786
  ),
31777
- (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 })
31778
31788
  ] });
31779
31789
  }
31780
31790
  }
@@ -31782,8 +31792,8 @@ var FloatTimeField = (props) => {
31782
31792
  };
31783
31793
 
31784
31794
  // src/widgets/basic/html-field/html.tsx
31785
- import { useEffect as useEffect20, useRef as useRef17 } from "react";
31786
- 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";
31787
31797
  var HtmlField = (props) => {
31788
31798
  const {
31789
31799
  name: name2,
@@ -31795,18 +31805,18 @@ var HtmlField = (props) => {
31795
31805
  value,
31796
31806
  isEditTable
31797
31807
  } = props;
31798
- const divRef = useRef17(null);
31808
+ const divRef = useRef18(null);
31799
31809
  if (!isForm && !isEditTable) {
31800
- return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31810
+ return /* @__PURE__ */ jsx92("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31801
31811
  }
31802
- return /* @__PURE__ */ jsx91(
31812
+ return /* @__PURE__ */ jsx92(
31803
31813
  Controller,
31804
31814
  {
31805
31815
  name: name2 ?? "",
31806
31816
  control: methods?.control,
31807
31817
  defaultValue,
31808
31818
  render: ({ field: { onChange: fieldOnChange, value: value2 } }) => {
31809
- useEffect20(() => {
31819
+ useEffect21(() => {
31810
31820
  if (divRef.current && divRef.current.innerHTML !== value2) {
31811
31821
  divRef.current.innerHTML = value2 || "";
31812
31822
  }
@@ -31818,7 +31828,7 @@ var HtmlField = (props) => {
31818
31828
  onChange2(newValue, "");
31819
31829
  }
31820
31830
  };
31821
- return /* @__PURE__ */ jsx91(
31831
+ return /* @__PURE__ */ jsx92(
31822
31832
  "div",
31823
31833
  {
31824
31834
  ref: divRef,
@@ -31837,28 +31847,28 @@ var HtmlField = (props) => {
31837
31847
  };
31838
31848
 
31839
31849
  // src/widgets/basic/image-field/image.tsx
31840
- import { jsx as jsx92 } from "react/jsx-runtime";
31850
+ import { jsx as jsx93 } from "react/jsx-runtime";
31841
31851
  var ImageField = (props) => {
31842
31852
  const { value, type, name: name2, baseURL } = props;
31843
31853
  if (!value) return null;
31844
31854
  if (type === "url") {
31845
- 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 });
31846
31856
  }
31847
- 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" }) });
31848
31858
  };
31849
31859
 
31850
31860
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31851
- import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
31861
+ import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
31852
31862
 
31853
31863
  // src/widgets/basic/information-field/information.tsx
31854
- 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";
31855
31865
  var InfomationField = (props) => {
31856
31866
  const { value, isForm = false, showName = true, stringToColor } = props;
31857
31867
  if (!value || Array.isArray(value) && value.length === 0) {
31858
- return /* @__PURE__ */ jsx93(Fragment27, {});
31868
+ return /* @__PURE__ */ jsx94(Fragment27, {});
31859
31869
  }
31860
31870
  const inforValues = Array.isArray(value) ? value : [value];
31861
- 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(
31862
31872
  AvatarField,
31863
31873
  {
31864
31874
  id: item.id,
@@ -31867,8 +31877,8 @@ var InfomationField = (props) => {
31867
31877
  stringToColor
31868
31878
  },
31869
31879
  item.id
31870
- )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
31871
- /* @__PURE__ */ jsx93(
31880
+ )) : /* @__PURE__ */ jsxs62("div", { className: "flex gap-2 items-center w-max", children: [
31881
+ /* @__PURE__ */ jsx94(
31872
31882
  AvatarField,
31873
31883
  {
31874
31884
  avatarSrc: inforValues[0].image_256,
@@ -31878,12 +31888,12 @@ var InfomationField = (props) => {
31878
31888
  stringToColor
31879
31889
  }
31880
31890
  ),
31881
- showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
31891
+ showName && /* @__PURE__ */ jsx94("span", { className: "capitalize", children: inforValues[0].display_name })
31882
31892
  ] }) });
31883
31893
  };
31884
31894
 
31885
31895
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31886
- import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31896
+ import { jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
31887
31897
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31888
31898
  const { selectProps, data, menuList } = props;
31889
31899
  const { relation } = selectProps;
@@ -31892,8 +31902,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31892
31902
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31893
31903
  )
31894
31904
  )?.[0]?.action?.id;
31895
- return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31896
- /* @__PURE__ */ jsx94(
31905
+ return /* @__PURE__ */ jsxs63("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31906
+ /* @__PURE__ */ jsx95(
31897
31907
  AvatarField,
31898
31908
  {
31899
31909
  id: data?.id,
@@ -31905,8 +31915,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31905
31915
  stringToColor
31906
31916
  }
31907
31917
  ),
31908
- /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31909
- /* @__PURE__ */ jsx94(
31918
+ /* @__PURE__ */ jsx95("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31919
+ /* @__PURE__ */ jsx95(
31910
31920
  "span",
31911
31921
  {
31912
31922
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -31914,7 +31924,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31914
31924
  e3.stopPropagation();
31915
31925
  props.removeProps.onClick();
31916
31926
  },
31917
- children: /* @__PURE__ */ jsx94(CloseIcon, {})
31927
+ children: /* @__PURE__ */ jsx95(CloseIcon, {})
31918
31928
  }
31919
31929
  )
31920
31930
  ] });
@@ -31924,9 +31934,9 @@ var CustomMenuList = (props) => {
31924
31934
  const { setIsShowModalMany2Many, searchable } = selectProps;
31925
31935
  const { t: t3 } = useI18n();
31926
31936
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
31927
- return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
31937
+ return /* @__PURE__ */ jsxs63(components.MenuList, { ...props, className: "z-[99]", children: [
31928
31938
  limitedChildren,
31929
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
31939
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs63(
31930
31940
  "button",
31931
31941
  {
31932
31942
  type: "button",
@@ -31971,7 +31981,7 @@ var Many2ManyTagField = (props) => {
31971
31981
  value: item.id,
31972
31982
  label: item.name ?? item.display_name
31973
31983
  })) : [];
31974
- return /* @__PURE__ */ jsx94(
31984
+ return /* @__PURE__ */ jsx95(
31975
31985
  InfomationField,
31976
31986
  {
31977
31987
  value: optionValue || null,
@@ -31980,7 +31990,7 @@ var Many2ManyTagField = (props) => {
31980
31990
  }
31981
31991
  );
31982
31992
  }
31983
- return /* @__PURE__ */ jsx94(
31993
+ return /* @__PURE__ */ jsx95(
31984
31994
  Controller,
31985
31995
  {
31986
31996
  name: name2 ?? "",
@@ -31990,7 +32000,7 @@ var Many2ManyTagField = (props) => {
31990
32000
  },
31991
32001
  render: ({ field, fieldState: { error: error2 } }) => {
31992
32002
  const { clearErrors } = methods;
31993
- useEffect21(() => {
32003
+ useEffect22(() => {
31994
32004
  if (field.value) {
31995
32005
  clearErrors(name2);
31996
32006
  }
@@ -32016,8 +32026,8 @@ var Many2ManyTagField = (props) => {
32016
32026
  onChange2?.(name2 ?? "", newValue);
32017
32027
  clearErrors(name2);
32018
32028
  };
32019
- return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32020
- /* @__PURE__ */ jsx94(
32029
+ return /* @__PURE__ */ jsxs63("div", { className: "group h-full overflow-y-auto", children: [
32030
+ /* @__PURE__ */ jsx95(
32021
32031
  StateManagedSelect$1,
32022
32032
  {
32023
32033
  options: options2,
@@ -32095,7 +32105,7 @@ var Many2ManyTagField = (props) => {
32095
32105
  })
32096
32106
  },
32097
32107
  components: isUser ? {
32098
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
32108
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx95(
32099
32109
  CustomMultiValue,
32100
32110
  {
32101
32111
  ...multiValueProps,
@@ -32104,7 +32114,7 @@ var Many2ManyTagField = (props) => {
32104
32114
  ),
32105
32115
  IndicatorSeparator: () => null
32106
32116
  } : {
32107
- MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
32117
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx95(
32108
32118
  CustomMenuList,
32109
32119
  {
32110
32120
  ...menuListProps,
@@ -32115,13 +32125,13 @@ var Many2ManyTagField = (props) => {
32115
32125
  }
32116
32126
  ),
32117
32127
  IndicatorSeparator: () => null,
32118
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
32119
- 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 })
32120
32130
  },
32121
32131
  required: !invisible && required
32122
32132
  }
32123
32133
  ),
32124
- !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 })
32125
32135
  ] });
32126
32136
  }
32127
32137
  }
@@ -32129,8 +32139,8 @@ var Many2ManyTagField = (props) => {
32129
32139
  };
32130
32140
 
32131
32141
  // src/widgets/basic/monetary-field/monetary.tsx
32132
- import { useEffect as useEffect22 } from "react";
32133
- 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";
32134
32144
  var MonetaryField = (props) => {
32135
32145
  const { t: t3 } = useI18n();
32136
32146
  const {
@@ -32150,26 +32160,26 @@ var MonetaryField = (props) => {
32150
32160
  isEditTable
32151
32161
  } = props;
32152
32162
  if (isForm && name2 === "amount_residual") {
32153
- return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32154
- /* @__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: [
32155
32165
  string,
32156
32166
  ":"
32157
32167
  ] }),
32158
- /* @__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` })
32159
32169
  ] });
32160
32170
  }
32161
32171
  if (!isForm) {
32162
32172
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32163
32173
  if (widget === "monetary" && !formValues?.currency_id) {
32164
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32174
+ return /* @__PURE__ */ jsx96("span", { children: `${formatNumberOnly(
32165
32175
  parseFloat(String(value ?? defaultValue))
32166
32176
  )} VND` });
32167
32177
  }
32168
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32178
+ return /* @__PURE__ */ jsx96("span", { children: `${formatNumberOnly(
32169
32179
  parseFloat(value ?? defaultValue)
32170
32180
  )} ${currencySymbol}` });
32171
32181
  }
32172
- return /* @__PURE__ */ jsx95(
32182
+ return /* @__PURE__ */ jsx96(
32173
32183
  Controller,
32174
32184
  {
32175
32185
  name: name2 ?? "",
@@ -32183,13 +32193,13 @@ var MonetaryField = (props) => {
32183
32193
  fieldState: { error: error2 }
32184
32194
  }) => {
32185
32195
  const { setError, clearErrors } = methods;
32186
- useEffect22(() => {
32196
+ useEffect23(() => {
32187
32197
  if (value2 !== void 0 && value2 !== null && !isNaN(value2)) {
32188
32198
  clearErrors(name2);
32189
32199
  }
32190
32200
  }, [value2]);
32191
- return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32192
- /* @__PURE__ */ jsx95(
32201
+ return /* @__PURE__ */ jsxs64(Fragment28, { children: [
32202
+ /* @__PURE__ */ jsx96(
32193
32203
  "input",
32194
32204
  {
32195
32205
  value: formatNumberOnly(value2),
@@ -32227,7 +32237,7 @@ var MonetaryField = (props) => {
32227
32237
  `
32228
32238
  }
32229
32239
  ),
32230
- !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 })
32231
32241
  ] });
32232
32242
  }
32233
32243
  }
@@ -32235,14 +32245,14 @@ var MonetaryField = (props) => {
32235
32245
  };
32236
32246
 
32237
32247
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32238
- import { jsx as jsx96 } from "react/jsx-runtime";
32248
+ import { jsx as jsx97 } from "react/jsx-runtime";
32239
32249
  var PaidBadgedField = () => {
32240
- 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, {}) });
32241
32251
  };
32242
32252
 
32243
32253
  // src/widgets/basic/priority-field/rating-star.tsx
32244
- import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32245
- 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";
32246
32256
  var RatingStarField = (props) => {
32247
32257
  const {
32248
32258
  label,
@@ -32251,9 +32261,9 @@ var RatingStarField = (props) => {
32251
32261
  onSelectPriority,
32252
32262
  id
32253
32263
  } = props;
32254
- const [rating, setRating] = useState20(defaultValue);
32255
- const [hover, setHover] = useState20(0);
32256
- useEffect23(() => {
32264
+ const [rating, setRating] = useState21(defaultValue);
32265
+ const [hover, setHover] = useState21(0);
32266
+ useEffect24(() => {
32257
32267
  setRating(defaultValue);
32258
32268
  }, [defaultValue]);
32259
32269
  const handleClick = (value) => {
@@ -32277,7 +32287,7 @@ var RatingStarField = (props) => {
32277
32287
  setHover(0);
32278
32288
  setRating(0);
32279
32289
  };
32280
- return /* @__PURE__ */ jsx97(
32290
+ return /* @__PURE__ */ jsx98(
32281
32291
  "div",
32282
32292
  {
32283
32293
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32287,17 +32297,17 @@ var RatingStarField = (props) => {
32287
32297
  const starValue = index4 + 1;
32288
32298
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32289
32299
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32290
- return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32291
- /* @__PURE__ */ jsx97(
32300
+ return /* @__PURE__ */ jsxs65(React17.Fragment, { children: [
32301
+ /* @__PURE__ */ jsx98(
32292
32302
  "div",
32293
32303
  {
32294
32304
  onMouseEnter: () => handleHover(starValue),
32295
32305
  onClick: () => handleClick(starValue),
32296
32306
  "data-tooltip-id": `${id}-${starValue}`,
32297
- children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32307
+ children: /* @__PURE__ */ jsx98(StarIcon, { fill: fillColor, stroke: strokeColor })
32298
32308
  }
32299
32309
  ),
32300
- /* @__PURE__ */ jsx97(
32310
+ /* @__PURE__ */ jsx98(
32301
32311
  M,
32302
32312
  {
32303
32313
  className: "z-50",
@@ -32313,7 +32323,7 @@ var RatingStarField = (props) => {
32313
32323
  };
32314
32324
 
32315
32325
  // src/widgets/basic/priority-field/priority.tsx
32316
- import { jsx as jsx98 } from "react/jsx-runtime";
32326
+ import { jsx as jsx99 } from "react/jsx-runtime";
32317
32327
  var PriorityField = (props) => {
32318
32328
  const {
32319
32329
  isForm,
@@ -32329,7 +32339,7 @@ var PriorityField = (props) => {
32329
32339
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32330
32340
  const defaultPriority = parseInt(value) + 1;
32331
32341
  if (!isForm) {
32332
- return /* @__PURE__ */ jsx98(
32342
+ return /* @__PURE__ */ jsx99(
32333
32343
  RatingStarField,
32334
32344
  {
32335
32345
  label,
@@ -32340,7 +32350,7 @@ var PriorityField = (props) => {
32340
32350
  }
32341
32351
  );
32342
32352
  }
32343
- return /* @__PURE__ */ jsx98(
32353
+ return /* @__PURE__ */ jsx99(
32344
32354
  Controller,
32345
32355
  {
32346
32356
  name: name ?? "",
@@ -32350,7 +32360,7 @@ var PriorityField = (props) => {
32350
32360
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32351
32361
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32352
32362
  };
32353
- return /* @__PURE__ */ jsx98(
32363
+ return /* @__PURE__ */ jsx99(
32354
32364
  RatingStarField,
32355
32365
  {
32356
32366
  label,
@@ -32366,8 +32376,8 @@ var PriorityField = (props) => {
32366
32376
  };
32367
32377
 
32368
32378
  // src/widgets/basic/radio-group-field/radio-group.tsx
32369
- import { useEffect as useEffect24 } from "react";
32370
- 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";
32371
32381
  var RadioGroupField = (props) => {
32372
32382
  const {
32373
32383
  name: name2,
@@ -32380,19 +32390,19 @@ var RadioGroupField = (props) => {
32380
32390
  onChange: onChange2,
32381
32391
  setValue
32382
32392
  } = props;
32383
- useEffect24(() => {
32393
+ useEffect25(() => {
32384
32394
  if (selection?.length > 0) {
32385
32395
  if (setValue) setValue(name2, selection?.[0]?.[0]);
32386
32396
  }
32387
32397
  }, [selection, name2, setValue]);
32388
32398
  if (!methods) return null;
32389
- return /* @__PURE__ */ jsx99(
32399
+ return /* @__PURE__ */ jsx100(
32390
32400
  Controller,
32391
32401
  {
32392
32402
  name: name2 ?? "",
32393
32403
  control: methods.control,
32394
- 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: [
32395
- /* @__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(
32396
32406
  "input",
32397
32407
  {
32398
32408
  type: "radio",
@@ -32411,7 +32421,7 @@ var RadioGroupField = (props) => {
32411
32421
  className: "custom-radio"
32412
32422
  }
32413
32423
  ),
32414
- /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32424
+ /* @__PURE__ */ jsx100("label", { htmlFor: String(select[0]), children: select[1] })
32415
32425
  ] }, select[0])) })
32416
32426
  }
32417
32427
  );
@@ -32419,7 +32429,7 @@ var RadioGroupField = (props) => {
32419
32429
 
32420
32430
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32421
32431
  var import_moment3 = __toESM(require_moment());
32422
- import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32432
+ import { jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32423
32433
  var RemainingDaysField = (props) => {
32424
32434
  const {
32425
32435
  value,
@@ -32430,14 +32440,14 @@ var RemainingDaysField = (props) => {
32430
32440
  if (!value) return null;
32431
32441
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32432
32442
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32433
- return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32434
- /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32435
- /* @__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(
32436
32446
  "div",
32437
32447
  {
32438
32448
  "data-tooltip-id": `remainingDays_${value}`,
32439
32449
  className: "flex items-center w-fit cursor-context-menu",
32440
- children: /* @__PURE__ */ jsx100(
32450
+ children: /* @__PURE__ */ jsx101(
32441
32451
  "div",
32442
32452
  {
32443
32453
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32450,7 +32460,7 @@ var RemainingDaysField = (props) => {
32450
32460
  };
32451
32461
 
32452
32462
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32453
- 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";
32454
32464
  var SelectDropdownField = (props) => {
32455
32465
  const { t: t3 } = useI18n();
32456
32466
  const {
@@ -32472,9 +32482,9 @@ var SelectDropdownField = (props) => {
32472
32482
  label: val[1]
32473
32483
  })) : [];
32474
32484
  if (!isForm && !isEditTable) {
32475
- 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 });
32476
32486
  } else {
32477
- return /* @__PURE__ */ jsx101(
32487
+ return /* @__PURE__ */ jsx102(
32478
32488
  Controller,
32479
32489
  {
32480
32490
  name: name2 || "",
@@ -32501,8 +32511,8 @@ var SelectDropdownField = (props) => {
32501
32511
  value: defaultValue || null,
32502
32512
  required: !invisible && required
32503
32513
  };
32504
- return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32505
- /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32514
+ return /* @__PURE__ */ jsxs68(Fragment29, { children: [
32515
+ /* @__PURE__ */ jsx102("div", { className: "group", children: /* @__PURE__ */ jsx102(
32506
32516
  StateManagedSelect$1,
32507
32517
  {
32508
32518
  ...commonProps,
@@ -32557,12 +32567,12 @@ var SelectDropdownField = (props) => {
32557
32567
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32558
32568
  components: {
32559
32569
  IndicatorSeparator: () => null,
32560
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32570
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx102(components.DropdownIndicator, { ...props2 })
32561
32571
  },
32562
32572
  noOptionsMessage: () => t3("no-available")
32563
32573
  }
32564
32574
  ) }),
32565
- !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 })
32566
32576
  ] });
32567
32577
  }
32568
32578
  }
@@ -32571,7 +32581,7 @@ var SelectDropdownField = (props) => {
32571
32581
  };
32572
32582
 
32573
32583
  // src/widgets/basic/textarea-field/textarea.tsx
32574
- import { jsx as jsx102 } from "react/jsx-runtime";
32584
+ import { jsx as jsx103 } from "react/jsx-runtime";
32575
32585
  var TextAreaField = (props) => {
32576
32586
  const {
32577
32587
  methods,
@@ -32595,9 +32605,9 @@ var TextAreaField = (props) => {
32595
32605
  }
32596
32606
  }) : {};
32597
32607
  if (!isForm) {
32598
- 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 });
32599
32609
  }
32600
- return /* @__PURE__ */ jsx102(
32610
+ return /* @__PURE__ */ jsx103(
32601
32611
  "textarea",
32602
32612
  {
32603
32613
  ...formProps,
@@ -32613,7 +32623,7 @@ var TextAreaField = (props) => {
32613
32623
  };
32614
32624
 
32615
32625
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32616
- import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32626
+ import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32617
32627
  var ToggleButtonField = (props) => {
32618
32628
  const {
32619
32629
  name: name2,
@@ -32623,13 +32633,13 @@ var ToggleButtonField = (props) => {
32623
32633
  onChange: onChange2,
32624
32634
  methods
32625
32635
  } = props;
32626
- return /* @__PURE__ */ jsx103(
32636
+ return /* @__PURE__ */ jsx104(
32627
32637
  Controller,
32628
32638
  {
32629
32639
  name: name2 ?? "",
32630
32640
  control: methods?.control,
32631
- 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: [
32632
- /* @__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(
32633
32643
  "input",
32634
32644
  {
32635
32645
  ...field,
@@ -32648,7 +32658,7 @@ var ToggleButtonField = (props) => {
32648
32658
  checked: field.value ?? false
32649
32659
  }
32650
32660
  ),
32651
- /* @__PURE__ */ jsx103(
32661
+ /* @__PURE__ */ jsx104(
32652
32662
  "span",
32653
32663
  {
32654
32664
  style: {
@@ -32657,7 +32667,7 @@ var ToggleButtonField = (props) => {
32657
32667
  },
32658
32668
  className: `rounded-full transition duration-300
32659
32669
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32660
- children: /* @__PURE__ */ jsx103(
32670
+ children: /* @__PURE__ */ jsx104(
32661
32671
  "span",
32662
32672
  {
32663
32673
  style: {
@@ -32681,8 +32691,8 @@ var ToggleButtonField = (props) => {
32681
32691
  };
32682
32692
 
32683
32693
  // src/widgets/basic/integer-field/integer.tsx
32684
- import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
32685
- 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";
32686
32696
  var IntegerField = (props) => {
32687
32697
  const {
32688
32698
  name: name2,
@@ -32701,9 +32711,9 @@ var IntegerField = (props) => {
32701
32711
  const { t: t3 } = useI18n();
32702
32712
  if (!isForm && !isEditTable) {
32703
32713
  const displayValue = value ?? defaultValue;
32704
- 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) });
32705
32715
  }
32706
- return /* @__PURE__ */ jsx104(
32716
+ return /* @__PURE__ */ jsx105(
32707
32717
  Controller,
32708
32718
  {
32709
32719
  name: name2 || "",
@@ -32717,13 +32727,13 @@ var IntegerField = (props) => {
32717
32727
  fieldState: { error: error2 }
32718
32728
  }) => {
32719
32729
  const { setError, clearErrors } = methods;
32720
- const isDirtyRef = useRef18(false);
32721
- const inputRef = useRef18(null);
32722
- const lastCommittedValueRef = useRef18(null);
32723
- const [inputValue, setInputValue] = useState21(
32730
+ const isDirtyRef = useRef19(false);
32731
+ const inputRef = useRef19(null);
32732
+ const lastCommittedValueRef = useRef19(null);
32733
+ const [inputValue, setInputValue] = useState22(
32724
32734
  value2 !== void 0 && value2 !== null ? String(value2) : ""
32725
32735
  );
32726
- useEffect25(() => {
32736
+ useEffect26(() => {
32727
32737
  if (value2 !== void 0 && value2 !== null) {
32728
32738
  setInputValue(String(value2));
32729
32739
  clearErrors(name2);
@@ -32781,8 +32791,8 @@ var IntegerField = (props) => {
32781
32791
  inputRef.current?.blur();
32782
32792
  clearErrors(name2);
32783
32793
  };
32784
- return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32785
- /* @__PURE__ */ jsx104(
32794
+ return /* @__PURE__ */ jsxs70(Fragment30, { children: [
32795
+ /* @__PURE__ */ jsx105(
32786
32796
  "input",
32787
32797
  {
32788
32798
  ref: inputRef,
@@ -32817,7 +32827,7 @@ var IntegerField = (props) => {
32817
32827
  `
32818
32828
  }
32819
32829
  ),
32820
- 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 })
32821
32831
  ] });
32822
32832
  }
32823
32833
  }
@@ -32825,7 +32835,7 @@ var IntegerField = (props) => {
32825
32835
  };
32826
32836
 
32827
32837
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32828
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32838
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32829
32839
  var StatusDropdownField = (props) => {
32830
32840
  const {
32831
32841
  buttonRef,
@@ -32837,13 +32847,13 @@ var StatusDropdownField = (props) => {
32837
32847
  handleClick,
32838
32848
  colors: colors2
32839
32849
  } = props;
32840
- return /* @__PURE__ */ jsxs70(
32850
+ return /* @__PURE__ */ jsxs71(
32841
32851
  "div",
32842
32852
  {
32843
32853
  ref: buttonRef,
32844
32854
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32845
32855
  children: [
32846
- /* @__PURE__ */ jsx105(
32856
+ /* @__PURE__ */ jsx106(
32847
32857
  "button",
32848
32858
  {
32849
32859
  type: "button",
@@ -32851,23 +32861,23 @@ var StatusDropdownField = (props) => {
32851
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"}`
32852
32862
  }
32853
32863
  ),
32854
- 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) => {
32855
32865
  const isActive = item[0] == state;
32856
- return /* @__PURE__ */ jsxs70(
32866
+ return /* @__PURE__ */ jsxs71(
32857
32867
  "div",
32858
32868
  {
32859
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" : ""}`,
32860
32870
  onClick: () => handleClick(item[0]),
32861
32871
  children: [
32862
- /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
32863
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
32864
- /* @__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(
32865
32875
  "div",
32866
32876
  {
32867
32877
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
32868
32878
  }
32869
32879
  ),
32870
- /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
32880
+ /* @__PURE__ */ jsx106("span", { className: "text-sm", children: item[1] })
32871
32881
  ] })
32872
32882
  ]
32873
32883
  },
@@ -32880,9 +32890,9 @@ var StatusDropdownField = (props) => {
32880
32890
  };
32881
32891
 
32882
32892
  // src/widgets/basic/many2many-field/many2many.tsx
32883
- import { createPortal as createPortal6 } from "react-dom";
32884
- import { useEffect as useEffect26 } from "react";
32885
- 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";
32886
32896
  var Many2ManyField = (props) => {
32887
32897
  const { t: t3 } = useI18n();
32888
32898
  const {
@@ -32941,7 +32951,7 @@ var Many2ManyField = (props) => {
32941
32951
  clearSearch
32942
32952
  } = searchController;
32943
32953
  const { handleCheckBoxAll, checkedAll, selectedRowKeysRef } = tableHeadController;
32944
- useEffect26(() => {
32954
+ useEffect27(() => {
32945
32955
  const groupItems = Array.isArray(selectedTags) ? selectedTags.filter((item) => item.type === "group_by") : [];
32946
32956
  if (groupItems?.length > 0) {
32947
32957
  typeof setPageLimit === "function" && setPageLimit(80);
@@ -32955,8 +32965,8 @@ var Many2ManyField = (props) => {
32955
32965
  typeof setGroupByList === "function" && setGroupByList(null);
32956
32966
  };
32957
32967
  }, [selectedTags]);
32958
- return createPortal6(
32959
- /* @__PURE__ */ jsxs71(
32968
+ return createPortal5(
32969
+ /* @__PURE__ */ jsxs72(
32960
32970
  "div",
32961
32971
  {
32962
32972
  style: {
@@ -32964,8 +32974,8 @@ var Many2ManyField = (props) => {
32964
32974
  },
32965
32975
  className: "fixed bottom-0 left-0 right-0 top-0",
32966
32976
  children: [
32967
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32968
- /* @__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(
32969
32979
  "div",
32970
32980
  {
32971
32981
  style: {
@@ -32973,12 +32983,12 @@ var Many2ManyField = (props) => {
32973
32983
  },
32974
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",
32975
32985
  children: [
32976
- /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32977
- /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
32978
- /* @__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, {}) })
32979
32989
  ] }),
32980
- /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32981
- /* @__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(
32982
32992
  Search,
32983
32993
  {
32984
32994
  removeSearchItems,
@@ -33012,7 +33022,7 @@ var Many2ManyField = (props) => {
33012
33022
  groupByList
33013
33023
  }
33014
33024
  ) }),
33015
- /* @__PURE__ */ jsx106(
33025
+ /* @__PURE__ */ jsx107(
33016
33026
  PaginationView,
33017
33027
  {
33018
33028
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33029,20 +33039,20 @@ var Many2ManyField = (props) => {
33029
33039
  }
33030
33040
  )
33031
33041
  ] }),
33032
- !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(
33033
33043
  "div",
33034
33044
  {
33035
33045
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33036
- 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(
33037
33047
  "div",
33038
33048
  {
33039
33049
  className: `flex w-full items-center h-full overflow-auto `,
33040
- 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(
33041
33051
  "table",
33042
33052
  {
33043
33053
  className: `relative w-full bg-white custom-dropdown `,
33044
33054
  children: [
33045
- /* @__PURE__ */ jsx106(
33055
+ /* @__PURE__ */ jsx107(
33046
33056
  TableHead,
33047
33057
  {
33048
33058
  columns,
@@ -33052,7 +33062,7 @@ var Many2ManyField = (props) => {
33052
33062
  handleCheckBoxAll
33053
33063
  }
33054
33064
  ),
33055
- rows?.length > 0 ? /* @__PURE__ */ jsx106(
33065
+ rows?.length > 0 ? /* @__PURE__ */ jsx107(
33056
33066
  TableBody,
33057
33067
  {
33058
33068
  tableGroupController,
@@ -33092,16 +33102,16 @@ var Many2ManyField = (props) => {
33092
33102
  checkedAll,
33093
33103
  context
33094
33104
  }
33095
- ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
33105
+ ) : /* @__PURE__ */ jsx107("tr", { children: /* @__PURE__ */ jsx107(
33096
33106
  "td",
33097
33107
  {
33098
33108
  className: "w-full",
33099
33109
  colSpan: columns?.length + 2,
33100
- children: /* @__PURE__ */ jsx106(
33110
+ children: /* @__PURE__ */ jsx107(
33101
33111
  "div",
33102
33112
  {
33103
33113
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33104
- children: /* @__PURE__ */ jsx106(EmptyTable, {})
33114
+ children: /* @__PURE__ */ jsx107(EmptyTable, {})
33105
33115
  }
33106
33116
  )
33107
33117
  }
@@ -33112,9 +33122,9 @@ var Many2ManyField = (props) => {
33112
33122
  }
33113
33123
  ) }) })
33114
33124
  }
33115
- ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33116
- /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33117
- isDisplayCheckbox && /* @__PURE__ */ jsx106(
33125
+ ) }) }) : /* @__PURE__ */ jsx107(LayerLoading, {}),
33126
+ /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2 mt-auto", children: [
33127
+ isDisplayCheckbox && /* @__PURE__ */ jsx107(
33118
33128
  "button",
33119
33129
  {
33120
33130
  disabled: selectedRowKeys?.length === 0,
@@ -33124,7 +33134,7 @@ var Many2ManyField = (props) => {
33124
33134
  children: t3("choose")
33125
33135
  }
33126
33136
  ),
33127
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33137
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx107(
33128
33138
  "button",
33129
33139
  {
33130
33140
  type: "button",
@@ -33140,7 +33150,7 @@ var Many2ManyField = (props) => {
33140
33150
  children: t3("new")
33141
33151
  }
33142
33152
  ),
33143
- /* @__PURE__ */ jsx106(
33153
+ /* @__PURE__ */ jsx107(
33144
33154
  "button",
33145
33155
  {
33146
33156
  type: "button",
@@ -33161,16 +33171,16 @@ var Many2ManyField = (props) => {
33161
33171
  };
33162
33172
 
33163
33173
  // src/widgets/basic/many2one-field/many2one.tsx
33164
- import React18, { useEffect as useEffect27 } from "react";
33165
- 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";
33166
33176
  var CustomMenuList2 = (props) => {
33167
33177
  const { t: t3 } = useI18n();
33168
33178
  const { options: options2, children, selectProps } = props;
33169
33179
  const { setIsShowModalMany2Many, searchable } = selectProps;
33170
33180
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33171
- return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33181
+ return /* @__PURE__ */ jsxs73(components.MenuList, { ...props, className: "z-[99]", children: [
33172
33182
  limitedChildren,
33173
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33183
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs73(
33174
33184
  "button",
33175
33185
  {
33176
33186
  type: "button",
@@ -33213,14 +33223,14 @@ var Many2OneField = (props) => {
33213
33223
  const { t: t3 } = useI18n();
33214
33224
  if (!isForm && !isEditTable) {
33215
33225
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33216
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33226
+ return /* @__PURE__ */ jsxs73(Fragment31, { children: [
33217
33227
  allowShowDetail && renderDetail({
33218
33228
  idToolTip: String(name2) + Number(index4),
33219
33229
  model: options2?.model ?? relation,
33220
33230
  context: contextObject,
33221
33231
  idForm: id
33222
33232
  }),
33223
- /* @__PURE__ */ jsx107(
33233
+ /* @__PURE__ */ jsx108(
33224
33234
  "span",
33225
33235
  {
33226
33236
  className: "cursor-pointer",
@@ -33231,20 +33241,20 @@ var Many2OneField = (props) => {
33231
33241
  )
33232
33242
  ] });
33233
33243
  }
33234
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33244
+ return /* @__PURE__ */ jsxs73(Fragment31, { children: [
33235
33245
  allowShowDetail && renderDetail({
33236
33246
  idToolTip: String(name2),
33237
33247
  model: options2?.model ?? relation,
33238
33248
  context: contextObject,
33239
33249
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33240
33250
  }),
33241
- /* @__PURE__ */ jsx107(
33251
+ /* @__PURE__ */ jsx108(
33242
33252
  "div",
33243
33253
  {
33244
33254
  id: name2,
33245
33255
  "data-tooltip-id": name2,
33246
33256
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33247
- children: /* @__PURE__ */ jsx107(
33257
+ children: /* @__PURE__ */ jsx108(
33248
33258
  Controller,
33249
33259
  {
33250
33260
  name: name2 ?? "",
@@ -33264,13 +33274,13 @@ var Many2OneField = (props) => {
33264
33274
  const selectedOption = isForm && options2?.service && options2?.type && options2?.model ? tempSelectedOption : tempSelectedOption && options2?.length > 0 ? options2.find(
33265
33275
  (option) => option.value === tempSelectedOption?.value
33266
33276
  ) : currentValue ? currentValue : null;
33267
- useEffect27(() => {
33277
+ useEffect28(() => {
33268
33278
  if (error2 && selectedOption) {
33269
33279
  methods?.clearErrors(name2);
33270
33280
  }
33271
33281
  }, [selectedOption]);
33272
- return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33273
- /* @__PURE__ */ jsx107(
33282
+ return /* @__PURE__ */ jsxs73("div", { className: "h-full", children: [
33283
+ /* @__PURE__ */ jsx108(
33274
33284
  StateManagedSelect$1,
33275
33285
  {
33276
33286
  menuShouldScrollIntoView: false,
@@ -33346,7 +33356,7 @@ var Many2OneField = (props) => {
33346
33356
  })
33347
33357
  },
33348
33358
  components: {
33349
- MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33359
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx108(
33350
33360
  CustomMenuList2,
33351
33361
  {
33352
33362
  ...menuListProps,
@@ -33357,13 +33367,13 @@ var Many2OneField = (props) => {
33357
33367
  }
33358
33368
  ),
33359
33369
  IndicatorSeparator: () => null,
33360
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33370
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx108(components.DropdownIndicator, { ...props2 })
33361
33371
  },
33362
33372
  isDisabled: readonly,
33363
33373
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33364
33374
  }
33365
33375
  ),
33366
- !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 })
33367
33377
  ] });
33368
33378
  }
33369
33379
  }
@@ -33374,7 +33384,7 @@ var Many2OneField = (props) => {
33374
33384
  };
33375
33385
 
33376
33386
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33377
- import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33387
+ import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33378
33388
  var StatusbarDurationField = (props) => {
33379
33389
  const {
33380
33390
  disabled,
@@ -33384,14 +33394,14 @@ var StatusbarDurationField = (props) => {
33384
33394
  defaultValue,
33385
33395
  setModalStatus
33386
33396
  } = props;
33387
- return /* @__PURE__ */ jsx108(
33397
+ return /* @__PURE__ */ jsx109(
33388
33398
  "div",
33389
33399
  {
33390
33400
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33391
- children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33392
- /* @__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) => {
33393
33403
  const value = option?.id === defaultValue;
33394
- return /* @__PURE__ */ jsxs73(
33404
+ return /* @__PURE__ */ jsxs74(
33395
33405
  "label",
33396
33406
  {
33397
33407
  onClick: () => !disabled && handleClick(option.id),
@@ -33401,7 +33411,7 @@ var StatusbarDurationField = (props) => {
33401
33411
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33402
33412
  `,
33403
33413
  children: [
33404
- /* @__PURE__ */ jsx108(
33414
+ /* @__PURE__ */ jsx109(
33405
33415
  "input",
33406
33416
  {
33407
33417
  type: "radio",
@@ -33411,7 +33421,7 @@ var StatusbarDurationField = (props) => {
33411
33421
  }
33412
33422
  ),
33413
33423
  option?.name,
33414
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33424
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx109(
33415
33425
  "div",
33416
33426
  {
33417
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]
@@ -33426,14 +33436,14 @@ var StatusbarDurationField = (props) => {
33426
33436
  }) }),
33427
33437
  dataResponse?.records?.some(
33428
33438
  (item) => item?.fold && item.id !== defaultValue
33429
- ) && /* @__PURE__ */ jsxs73(
33439
+ ) && /* @__PURE__ */ jsxs74(
33430
33440
  "div",
33431
33441
  {
33432
33442
  onClick: () => setModalStatus(!modelStatus),
33433
33443
  className: "w-[24px] h-[24px] cursor-pointer relative",
33434
33444
  children: [
33435
- /* @__PURE__ */ jsx108(MoreIcon, {}),
33436
- modelStatus && /* @__PURE__ */ jsx108(
33445
+ /* @__PURE__ */ jsx109(MoreIcon, {}),
33446
+ modelStatus && /* @__PURE__ */ jsx109(
33437
33447
  "div",
33438
33448
  {
33439
33449
  onClick: (e3) => e3.stopPropagation(),
@@ -33442,7 +33452,7 @@ var StatusbarDurationField = (props) => {
33442
33452
  (item) => item?.fold && item.id !== defaultValue
33443
33453
  )?.map((option) => {
33444
33454
  const value = option?.id === defaultValue;
33445
- return /* @__PURE__ */ jsx108(
33455
+ return /* @__PURE__ */ jsx109(
33446
33456
  "div",
33447
33457
  {
33448
33458
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33464,14 +33474,14 @@ var StatusbarDurationField = (props) => {
33464
33474
 
33465
33475
  // src/widgets/basic/status-bar-field/option/option.tsx
33466
33476
  import { useMemo as useMemo11 } from "react";
33467
- 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";
33468
33478
  var StatusBarOptionField = (props) => {
33469
33479
  const { selection, defaultValue } = props;
33470
33480
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33471
33481
  const indexInProgress = memoizedStatusOptions?.findIndex(
33472
33482
  (option) => option?.[0] === defaultValue
33473
33483
  );
33474
- return /* @__PURE__ */ jsx109(
33484
+ return /* @__PURE__ */ jsx110(
33475
33485
  "div",
33476
33486
  {
33477
33487
  style: {
@@ -33480,8 +33490,8 @@ var StatusBarOptionField = (props) => {
33480
33490
  flexWrap: "wrap"
33481
33491
  },
33482
33492
  children: memoizedStatusOptions?.map((option, index4) => {
33483
- return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33484
- /* @__PURE__ */ jsxs74(
33493
+ return /* @__PURE__ */ jsxs75(Fragment32, { children: [
33494
+ /* @__PURE__ */ jsxs75(
33485
33495
  "div",
33486
33496
  {
33487
33497
  style: {
@@ -33499,7 +33509,7 @@ var StatusBarOptionField = (props) => {
33499
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" : ""
33500
33510
  },
33501
33511
  children: [
33502
- /* @__PURE__ */ jsx109(
33512
+ /* @__PURE__ */ jsx110(
33503
33513
  "span",
33504
33514
  {
33505
33515
  style: {
@@ -33511,10 +33521,10 @@ var StatusBarOptionField = (props) => {
33511
33521
  alignItems: "center",
33512
33522
  borderRadius: "100%"
33513
33523
  },
33514
- 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, {})
33515
33525
  }
33516
33526
  ),
33517
- /* @__PURE__ */ jsx109(
33527
+ /* @__PURE__ */ jsx110(
33518
33528
  "span",
33519
33529
  {
33520
33530
  style: {
@@ -33527,7 +33537,7 @@ var StatusBarOptionField = (props) => {
33527
33537
  },
33528
33538
  option?.[0]
33529
33539
  ),
33530
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33540
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx110(
33531
33541
  "div",
33532
33542
  {
33533
33543
  style: {
@@ -33543,7 +33553,7 @@ var StatusBarOptionField = (props) => {
33543
33553
  );
33544
33554
  };
33545
33555
  var ICMinus = () => {
33546
- return /* @__PURE__ */ jsx109(
33556
+ return /* @__PURE__ */ jsx110(
33547
33557
  "svg",
33548
33558
  {
33549
33559
  xmlns: "http://www.w3.org/2000/svg",
@@ -33551,7 +33561,7 @@ var ICMinus = () => {
33551
33561
  height: "16",
33552
33562
  viewBox: "0 0 16 16",
33553
33563
  fill: "none",
33554
- children: /* @__PURE__ */ jsx109(
33564
+ children: /* @__PURE__ */ jsx110(
33555
33565
  "path",
33556
33566
  {
33557
33567
  d: "M4 8H12",
@@ -33565,7 +33575,7 @@ var ICMinus = () => {
33565
33575
  );
33566
33576
  };
33567
33577
  var ICCircle = () => {
33568
- return /* @__PURE__ */ jsx109(
33578
+ return /* @__PURE__ */ jsx110(
33569
33579
  "svg",
33570
33580
  {
33571
33581
  xmlns: "http://www.w3.org/2000/svg",
@@ -33573,12 +33583,12 @@ var ICCircle = () => {
33573
33583
  height: "8",
33574
33584
  viewBox: "0 0 8 8",
33575
33585
  fill: "none",
33576
- 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" })
33577
33587
  }
33578
33588
  );
33579
33589
  };
33580
33590
  var ICCheck = () => {
33581
- return /* @__PURE__ */ jsx109(
33591
+ return /* @__PURE__ */ jsx110(
33582
33592
  "svg",
33583
33593
  {
33584
33594
  xmlns: "http://www.w3.org/2000/svg",
@@ -33586,7 +33596,7 @@ var ICCheck = () => {
33586
33596
  height: "16",
33587
33597
  viewBox: "0 0 16 16",
33588
33598
  fill: "none",
33589
- children: /* @__PURE__ */ jsx109(
33599
+ children: /* @__PURE__ */ jsx110(
33590
33600
  "path",
33591
33601
  {
33592
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",
@@ -33600,7 +33610,7 @@ var ICCheck = () => {
33600
33610
  };
33601
33611
 
33602
33612
  // src/widgets/basic/date-option-field/date-option.tsx
33603
- import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33613
+ import { jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
33604
33614
  var DateOptionField = (props) => {
33605
33615
  const {
33606
33616
  name: name2,
@@ -33611,19 +33621,19 @@ var DateOptionField = (props) => {
33611
33621
  string,
33612
33622
  onChange: onChange2
33613
33623
  } = props;
33614
- return /* @__PURE__ */ jsx110(
33624
+ return /* @__PURE__ */ jsx111(
33615
33625
  Controller,
33616
33626
  {
33617
33627
  name: name2 ?? "",
33618
33628
  control: methods?.control,
33619
- render: ({ field }) => /* @__PURE__ */ jsxs75(
33629
+ render: ({ field }) => /* @__PURE__ */ jsxs76(
33620
33630
  "label",
33621
33631
  {
33622
33632
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33623
33633
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33624
33634
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33625
33635
  children: [
33626
- /* @__PURE__ */ jsx110(
33636
+ /* @__PURE__ */ jsx111(
33627
33637
  "input",
33628
33638
  {
33629
33639
  type: "checkbox",