@fctc/sme-widget-ui 1.9.9 → 2.0.0

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
@@ -4297,7 +4297,7 @@ var require_react_is_development = __commonJS({
4297
4297
  var ContextProvider = REACT_PROVIDER_TYPE;
4298
4298
  var Element2 = REACT_ELEMENT_TYPE;
4299
4299
  var ForwardRef = REACT_FORWARD_REF_TYPE;
4300
- var Fragment33 = REACT_FRAGMENT_TYPE;
4300
+ var Fragment34 = REACT_FRAGMENT_TYPE;
4301
4301
  var Lazy = REACT_LAZY_TYPE;
4302
4302
  var Memo = REACT_MEMO_TYPE;
4303
4303
  var Portal2 = REACT_PORTAL_TYPE;
@@ -4356,7 +4356,7 @@ var require_react_is_development = __commonJS({
4356
4356
  exports.ContextProvider = ContextProvider;
4357
4357
  exports.Element = Element2;
4358
4358
  exports.ForwardRef = ForwardRef;
4359
- exports.Fragment = Fragment33;
4359
+ exports.Fragment = Fragment34;
4360
4360
  exports.Lazy = Lazy;
4361
4361
  exports.Memo = Memo;
4362
4362
  exports.Portal = Portal2;
@@ -9588,11 +9588,61 @@ var DeleteIconDanger = () => {
9588
9588
  // src/icons/image-icon.tsx
9589
9589
  import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
9590
9590
 
9591
- // src/icons/video-icon.tsx
9591
+ // src/icons/json-file-icon.tsx
9592
9592
  import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
9593
+ var JSONFileIcon = () => {
9594
+ return /* @__PURE__ */ jsxs22(
9595
+ "svg",
9596
+ {
9597
+ xmlns: "http://www.w3.org/2000/svg",
9598
+ width: "24",
9599
+ height: "24",
9600
+ viewBox: "0 0 24 24",
9601
+ fill: "none",
9602
+ stroke: "currentColor",
9603
+ strokeWidth: "2",
9604
+ strokeLinecap: "round",
9605
+ strokeLinejoin: "round",
9606
+ "aria-hidden": "true",
9607
+ children: [
9608
+ /* @__PURE__ */ jsx42("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
9609
+ /* @__PURE__ */ jsx42("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
9610
+ /* @__PURE__ */ jsx42("path", { d: "M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1" }),
9611
+ /* @__PURE__ */ jsx42("path", { d: "M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1" })
9612
+ ]
9613
+ }
9614
+ );
9615
+ };
9616
+
9617
+ // src/icons/default-file-icon.tsx
9618
+ import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
9619
+ var DefaultFileIcon = () => {
9620
+ return /* @__PURE__ */ jsxs23(
9621
+ "svg",
9622
+ {
9623
+ xmlns: "http://www.w3.org/2000/svg",
9624
+ width: "20",
9625
+ height: "20",
9626
+ viewBox: "0 0 24 24",
9627
+ fill: "none",
9628
+ stroke: "currentColor",
9629
+ "stroke-width": "2",
9630
+ strokeLinecap: "round",
9631
+ strokeLinejoin: "round",
9632
+ "aria-hidden": "true",
9633
+ children: [
9634
+ /* @__PURE__ */ jsx43("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
9635
+ /* @__PURE__ */ jsx43("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" })
9636
+ ]
9637
+ }
9638
+ );
9639
+ };
9640
+
9641
+ // src/icons/video-icon.tsx
9642
+ import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
9593
9643
 
9594
9644
  // src/widgets/advanced/table/table-group.tsx
9595
- import { Fragment as Fragment2, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
9645
+ import { Fragment as Fragment2, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
9596
9646
  var TableGroup = (props) => {
9597
9647
  const { t: t3 } = useI18n();
9598
9648
  const {
@@ -9642,28 +9692,28 @@ var TableGroup = (props) => {
9642
9692
  setSelectedRowKeys
9643
9693
  });
9644
9694
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
9645
- return /* @__PURE__ */ jsxs23(Fragment2, { children: [
9646
- /* @__PURE__ */ jsxs23(
9695
+ return /* @__PURE__ */ jsxs25(Fragment2, { children: [
9696
+ /* @__PURE__ */ jsxs25(
9647
9697
  "tr",
9648
9698
  {
9649
9699
  draggable: true,
9650
9700
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
9651
9701
  onClick: onExpandChildGroup,
9652
9702
  children: [
9653
- /* @__PURE__ */ jsx43(
9703
+ /* @__PURE__ */ jsx45(
9654
9704
  "td",
9655
9705
  {
9656
9706
  colSpan: colEmptyGroup.fromStart ?? 1,
9657
9707
  style: { display: "table-cell" },
9658
9708
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
9659
- children: /* @__PURE__ */ jsxs23(
9709
+ children: /* @__PURE__ */ jsxs25(
9660
9710
  "div",
9661
9711
  {
9662
9712
  style: { paddingLeft: leftPadding },
9663
9713
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
9664
9714
  children: [
9665
- /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
9666
- /* @__PURE__ */ jsx43(
9715
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
9716
+ /* @__PURE__ */ jsx45(
9667
9717
  TriangleIcon,
9668
9718
  {
9669
9719
  style: {
@@ -9672,15 +9722,15 @@ var TableGroup = (props) => {
9672
9722
  className: `w-2 h-2 text-button_primary `
9673
9723
  }
9674
9724
  ),
9675
- /* @__PURE__ */ jsx43("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
9725
+ /* @__PURE__ */ jsx45("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
9676
9726
  ] }),
9677
- /* @__PURE__ */ jsx43(
9727
+ /* @__PURE__ */ jsx45(
9678
9728
  "div",
9679
9729
  {
9680
9730
  onClick: (e3) => {
9681
9731
  e3.stopPropagation();
9682
9732
  },
9683
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx43(
9733
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx45(
9684
9734
  PaginationView,
9685
9735
  {
9686
9736
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -9701,7 +9751,7 @@ var TableGroup = (props) => {
9701
9751
  columns?.map((col) => {
9702
9752
  if (col?.optional === "hide") return;
9703
9753
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
9704
- return /* @__PURE__ */ jsx43(
9754
+ return /* @__PURE__ */ jsx45(
9705
9755
  "td",
9706
9756
  {
9707
9757
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -9719,7 +9769,7 @@ var TableGroup = (props) => {
9719
9769
  ]
9720
9770
  }
9721
9771
  ),
9722
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx43(
9772
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx45(
9723
9773
  TableBodyRow,
9724
9774
  {
9725
9775
  columns: columnsGroup,
@@ -9749,7 +9799,7 @@ var TableGroup = (props) => {
9749
9799
 
9750
9800
  // src/widgets/advanced/table/table-row.tsx
9751
9801
  import { useEffect as useEffect3, useMemo as useMemo3, useRef as useRef2 } from "react";
9752
- import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
9802
+ import { Fragment as Fragment3, jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
9753
9803
  var Row = (props) => {
9754
9804
  const {
9755
9805
  row,
@@ -9815,17 +9865,17 @@ var Row = (props) => {
9815
9865
  setIsAutoSelect(false);
9816
9866
  }
9817
9867
  }, [checkedAll]);
9818
- return /* @__PURE__ */ jsx44(
9868
+ return /* @__PURE__ */ jsx46(
9819
9869
  "tr",
9820
9870
  {
9821
9871
  "data-row-id": row?.id,
9822
9872
  className: `border-b border-[#e8e8e8] cursor-pointer`,
9823
- children: /* @__PURE__ */ jsxs24(Fragment3, { children: [
9824
- isDisplayCheckbox && /* @__PURE__ */ jsx44(
9873
+ children: /* @__PURE__ */ jsxs26(Fragment3, { children: [
9874
+ isDisplayCheckbox && /* @__PURE__ */ jsx46(
9825
9875
  "td",
9826
9876
  {
9827
9877
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
9828
- children: /* @__PURE__ */ jsx44(
9878
+ children: /* @__PURE__ */ jsx46(
9829
9879
  "input",
9830
9880
  {
9831
9881
  type: "checkbox",
@@ -9838,9 +9888,9 @@ var Row = (props) => {
9838
9888
  ),
9839
9889
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
9840
9890
  if (row?.display_type === "line_section" && col.key !== "display_name") {
9841
- return /* @__PURE__ */ jsx44("td", {});
9891
+ return /* @__PURE__ */ jsx46("td", {});
9842
9892
  }
9843
- return /* @__PURE__ */ jsx44(
9893
+ return /* @__PURE__ */ jsx46(
9844
9894
  "td",
9845
9895
  {
9846
9896
  colSpan: 1,
@@ -9859,7 +9909,7 @@ var Row = (props) => {
9859
9909
  `${col.name}____${index4}`
9860
9910
  );
9861
9911
  }),
9862
- 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(
9912
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx46("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx46("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx46(
9863
9913
  "button",
9864
9914
  {
9865
9915
  type: "button",
@@ -9867,7 +9917,7 @@ var Row = (props) => {
9867
9917
  onClick: () => {
9868
9918
  onRemoveRow(indexRow);
9869
9919
  },
9870
- children: /* @__PURE__ */ jsx44(DeleteIcon, {})
9920
+ children: /* @__PURE__ */ jsx46(DeleteIcon, {})
9871
9921
  }
9872
9922
  ) }) })
9873
9923
  ] })
@@ -9877,7 +9927,7 @@ var Row = (props) => {
9877
9927
  };
9878
9928
 
9879
9929
  // src/widgets/advanced/table/table-body.tsx
9880
- import { jsx as jsx45 } from "react/jsx-runtime";
9930
+ import { jsx as jsx47 } from "react/jsx-runtime";
9881
9931
  var TableBodyRow = (props) => {
9882
9932
  const {
9883
9933
  rows,
@@ -9907,7 +9957,7 @@ var TableBodyRow = (props) => {
9907
9957
  isEditTable
9908
9958
  } = props;
9909
9959
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
9910
- return typeTable === "group" ? /* @__PURE__ */ jsx45(
9960
+ return typeTable === "group" ? /* @__PURE__ */ jsx47(
9911
9961
  TableGroup,
9912
9962
  {
9913
9963
  columns,
@@ -9932,7 +9982,7 @@ var TableBodyRow = (props) => {
9932
9982
  onClickRow
9933
9983
  },
9934
9984
  `record-group-${index4}`
9935
- ) : /* @__PURE__ */ jsx45(
9985
+ ) : /* @__PURE__ */ jsx47(
9936
9986
  Row,
9937
9987
  {
9938
9988
  row,
@@ -9960,7 +10010,7 @@ var TableBodyRow = (props) => {
9960
10010
  };
9961
10011
  var TableBody = (props) => {
9962
10012
  const [isAutoSelect, setIsAutoSelect] = useState2(false);
9963
- return /* @__PURE__ */ jsx45("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx45(
10013
+ return /* @__PURE__ */ jsx47("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx47(
9964
10014
  TableBodyRow,
9965
10015
  {
9966
10016
  ...props,
@@ -10221,7 +10271,7 @@ function useFileInfo(source, options2) {
10221
10271
  }
10222
10272
 
10223
10273
  // src/widgets/advanced/table/table-filter.tsx
10224
- import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
10274
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
10225
10275
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
10226
10276
  const [openTableFilter, setOpenTableFilter] = useState4();
10227
10277
  const [filterPosition, setFilterPosition] = useState4(null);
@@ -10253,7 +10303,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10253
10303
  window.removeEventListener("resize", updatePosition);
10254
10304
  };
10255
10305
  }, [filterRef, openTableFilter]);
10256
- return /* @__PURE__ */ jsxs25(
10306
+ return /* @__PURE__ */ jsxs27(
10257
10307
  "div",
10258
10308
  {
10259
10309
  ref: filterRef,
@@ -10262,7 +10312,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10262
10312
  },
10263
10313
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
10264
10314
  children: [
10265
- /* @__PURE__ */ jsx46(
10315
+ /* @__PURE__ */ jsx48(
10266
10316
  "button",
10267
10317
  {
10268
10318
  type: "button",
@@ -10270,7 +10320,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10270
10320
  onClick: () => {
10271
10321
  setOpenTableFilter(!openTableFilter);
10272
10322
  },
10273
- children: /* @__PURE__ */ jsxs25(
10323
+ children: /* @__PURE__ */ jsxs27(
10274
10324
  "svg",
10275
10325
  {
10276
10326
  xmlns: "http://www.w3.org/2000/svg",
@@ -10279,42 +10329,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10279
10329
  viewBox: "0 0 16 16",
10280
10330
  fill: "none",
10281
10331
  children: [
10282
- /* @__PURE__ */ jsx46(
10332
+ /* @__PURE__ */ jsx48(
10283
10333
  "path",
10284
10334
  {
10285
10335
  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",
10286
10336
  fill: "#1F1F1F"
10287
10337
  }
10288
10338
  ),
10289
- /* @__PURE__ */ jsx46(
10339
+ /* @__PURE__ */ jsx48(
10290
10340
  "path",
10291
10341
  {
10292
10342
  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",
10293
10343
  fill: "#1F1F1F"
10294
10344
  }
10295
10345
  ),
10296
- /* @__PURE__ */ jsx46(
10346
+ /* @__PURE__ */ jsx48(
10297
10347
  "path",
10298
10348
  {
10299
10349
  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",
10300
10350
  fill: "#1F1F1F"
10301
10351
  }
10302
10352
  ),
10303
- /* @__PURE__ */ jsx46(
10353
+ /* @__PURE__ */ jsx48(
10304
10354
  "path",
10305
10355
  {
10306
10356
  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",
10307
10357
  fill: "black"
10308
10358
  }
10309
10359
  ),
10310
- /* @__PURE__ */ jsx46(
10360
+ /* @__PURE__ */ jsx48(
10311
10361
  "path",
10312
10362
  {
10313
10363
  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",
10314
10364
  fill: "black"
10315
10365
  }
10316
10366
  ),
10317
- /* @__PURE__ */ jsx46(
10367
+ /* @__PURE__ */ jsx48(
10318
10368
  "path",
10319
10369
  {
10320
10370
  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",
@@ -10327,7 +10377,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10327
10377
  }
10328
10378
  ),
10329
10379
  filterPosition && openTableFilter && createPortal(
10330
- /* @__PURE__ */ jsx46(
10380
+ /* @__PURE__ */ jsx48(
10331
10381
  "div",
10332
10382
  {
10333
10383
  ref: filterPopupRef,
@@ -10338,8 +10388,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10338
10388
  },
10339
10389
  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",
10340
10390
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
10341
- return /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
10342
- /* @__PURE__ */ jsx46(
10391
+ return /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
10392
+ /* @__PURE__ */ jsx48(
10343
10393
  "input",
10344
10394
  {
10345
10395
  type: "checkbox",
@@ -10349,7 +10399,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10349
10399
  className: "cursor-pointer"
10350
10400
  }
10351
10401
  ),
10352
- /* @__PURE__ */ jsx46(
10402
+ /* @__PURE__ */ jsx48(
10353
10403
  "label",
10354
10404
  {
10355
10405
  htmlFor: `${item.name}`,
@@ -10369,14 +10419,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10369
10419
  };
10370
10420
 
10371
10421
  // src/widgets/advanced/table/table-footer.tsx
10372
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
10422
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
10373
10423
  var TableFooter = ({ onAddRow, rows }) => {
10374
10424
  const emptyData = rows?.length <= 0;
10375
- return /* @__PURE__ */ jsx47("tfoot", { children: /* @__PURE__ */ jsx47("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx47(
10425
+ return /* @__PURE__ */ jsx49("tfoot", { children: /* @__PURE__ */ jsx49("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx49(
10376
10426
  "td",
10377
10427
  {
10378
10428
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
10379
- children: /* @__PURE__ */ jsxs26(
10429
+ children: /* @__PURE__ */ jsxs28(
10380
10430
  "button",
10381
10431
  {
10382
10432
  type: "button",
@@ -10386,7 +10436,7 @@ var TableFooter = ({ onAddRow, rows }) => {
10386
10436
  },
10387
10437
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
10388
10438
  children: [
10389
- /* @__PURE__ */ jsxs26(
10439
+ /* @__PURE__ */ jsxs28(
10390
10440
  "svg",
10391
10441
  {
10392
10442
  style: {
@@ -10399,14 +10449,14 @@ var TableFooter = ({ onAddRow, rows }) => {
10399
10449
  viewBox: "0 0 20 20",
10400
10450
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
10401
10451
  children: [
10402
- /* @__PURE__ */ jsx47(
10452
+ /* @__PURE__ */ jsx49(
10403
10453
  "path",
10404
10454
  {
10405
10455
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
10406
10456
  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"
10407
10457
  }
10408
10458
  ),
10409
- /* @__PURE__ */ jsx47(
10459
+ /* @__PURE__ */ jsx49(
10410
10460
  "path",
10411
10461
  {
10412
10462
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -12227,7 +12277,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
12227
12277
 
12228
12278
  // src/widgets/advanced/table/table-head.tsx
12229
12279
  import { createPortal as createPortal2 } from "react-dom";
12230
- import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12280
+ import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
12231
12281
  var TableHead = (props) => {
12232
12282
  const {
12233
12283
  handleCheckBoxAll,
@@ -12237,7 +12287,7 @@ var TableHead = (props) => {
12237
12287
  onRemoveRow,
12238
12288
  onToggleColumnOptional
12239
12289
  } = props;
12240
- return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs27(
12290
+ return /* @__PURE__ */ jsx50("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs29(
12241
12291
  "tr",
12242
12292
  {
12243
12293
  style: {
@@ -12249,11 +12299,11 @@ var TableHead = (props) => {
12249
12299
  },
12250
12300
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
12251
12301
  children: [
12252
- isDisplayCheckbox && /* @__PURE__ */ jsx48(
12302
+ isDisplayCheckbox && /* @__PURE__ */ jsx50(
12253
12303
  "th",
12254
12304
  {
12255
12305
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
12256
- children: /* @__PURE__ */ jsx48(
12306
+ children: /* @__PURE__ */ jsx50(
12257
12307
  "input",
12258
12308
  {
12259
12309
  type: "checkbox",
@@ -12265,16 +12315,16 @@ var TableHead = (props) => {
12265
12315
  }
12266
12316
  ),
12267
12317
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12268
- return /* @__PURE__ */ jsx48(
12318
+ return /* @__PURE__ */ jsx50(
12269
12319
  "th",
12270
12320
  {
12271
12321
  "data-rtc-resizable": col?.name,
12272
12322
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12273
- children: /* @__PURE__ */ jsxs27("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12323
+ children: /* @__PURE__ */ jsxs29("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12274
12324
  col.title,
12275
- col?.field?.help && /* @__PURE__ */ jsxs27(Fragment4, { children: [
12325
+ col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
12276
12326
  createPortal2(
12277
- /* @__PURE__ */ jsx48(
12327
+ /* @__PURE__ */ jsx50(
12278
12328
  M,
12279
12329
  {
12280
12330
  style: {
@@ -12294,7 +12344,7 @@ var TableHead = (props) => {
12294
12344
  ),
12295
12345
  document.body
12296
12346
  ),
12297
- /* @__PURE__ */ jsx48(
12347
+ /* @__PURE__ */ jsx50(
12298
12348
  "span",
12299
12349
  {
12300
12350
  style: {
@@ -12313,8 +12363,8 @@ var TableHead = (props) => {
12313
12363
  "table-head-" + index4
12314
12364
  );
12315
12365
  }),
12316
- typeof onRemoveRow === "function" && /* @__PURE__ */ jsx48("th", { className: "relative p-2 w-[35px]" }),
12317
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx48(
12366
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx50("th", { className: "relative p-2 w-[35px]" }),
12367
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx50(
12318
12368
  "th",
12319
12369
  {
12320
12370
  style: {
@@ -12322,7 +12372,7 @@ var TableHead = (props) => {
12322
12372
  right: 0
12323
12373
  },
12324
12374
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
12325
- children: /* @__PURE__ */ jsx48(
12375
+ children: /* @__PURE__ */ jsx50(
12326
12376
  TableFilter,
12327
12377
  {
12328
12378
  columns,
@@ -12337,9 +12387,9 @@ var TableHead = (props) => {
12337
12387
  };
12338
12388
 
12339
12389
  // src/icons/empty-table-icon.tsx
12340
- import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12390
+ import { jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
12341
12391
  var IcEmptyTable = () => {
12342
- return /* @__PURE__ */ jsxs28(
12392
+ return /* @__PURE__ */ jsxs30(
12343
12393
  "svg",
12344
12394
  {
12345
12395
  xmlns: "http://www.w3.org/2000/svg",
@@ -12348,9 +12398,9 @@ var IcEmptyTable = () => {
12348
12398
  viewBox: "0 0 216 140",
12349
12399
  fill: "none",
12350
12400
  children: [
12351
- /* @__PURE__ */ jsxs28("g", { clipPath: "url(#clip0_2454_28950)", children: [
12352
- /* @__PURE__ */ jsx49("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12353
- /* @__PURE__ */ jsx49(
12401
+ /* @__PURE__ */ jsxs30("g", { clipPath: "url(#clip0_2454_28950)", children: [
12402
+ /* @__PURE__ */ jsx51("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12403
+ /* @__PURE__ */ jsx51(
12354
12404
  "path",
12355
12405
  {
12356
12406
  d: "M64.5 0V140",
@@ -12360,7 +12410,7 @@ var IcEmptyTable = () => {
12360
12410
  strokeDasharray: "3 3"
12361
12411
  }
12362
12412
  ),
12363
- /* @__PURE__ */ jsx49(
12413
+ /* @__PURE__ */ jsx51(
12364
12414
  "path",
12365
12415
  {
12366
12416
  d: "M151.5 0V140",
@@ -12370,7 +12420,7 @@ var IcEmptyTable = () => {
12370
12420
  strokeDasharray: "3 3"
12371
12421
  }
12372
12422
  ),
12373
- /* @__PURE__ */ jsx49(
12423
+ /* @__PURE__ */ jsx51(
12374
12424
  "path",
12375
12425
  {
12376
12426
  d: "M215.5 24H0.5",
@@ -12380,7 +12430,7 @@ var IcEmptyTable = () => {
12380
12430
  strokeDasharray: "3 3"
12381
12431
  }
12382
12432
  ),
12383
- /* @__PURE__ */ jsx49(
12433
+ /* @__PURE__ */ jsx51(
12384
12434
  "path",
12385
12435
  {
12386
12436
  d: "M215.5 50H0.5",
@@ -12390,7 +12440,7 @@ var IcEmptyTable = () => {
12390
12440
  strokeDasharray: "3 3"
12391
12441
  }
12392
12442
  ),
12393
- /* @__PURE__ */ jsx49(
12443
+ /* @__PURE__ */ jsx51(
12394
12444
  "path",
12395
12445
  {
12396
12446
  d: "M215.5 88H0.5",
@@ -12400,7 +12450,7 @@ var IcEmptyTable = () => {
12400
12450
  strokeDasharray: "3 3"
12401
12451
  }
12402
12452
  ),
12403
- /* @__PURE__ */ jsx49(
12453
+ /* @__PURE__ */ jsx51(
12404
12454
  "path",
12405
12455
  {
12406
12456
  d: "M215.5 114H0.5",
@@ -12410,7 +12460,7 @@ var IcEmptyTable = () => {
12410
12460
  strokeDasharray: "3 3"
12411
12461
  }
12412
12462
  ),
12413
- /* @__PURE__ */ jsx49(
12463
+ /* @__PURE__ */ jsx51(
12414
12464
  "path",
12415
12465
  {
12416
12466
  d: "M199.5 0V140",
@@ -12419,7 +12469,7 @@ var IcEmptyTable = () => {
12419
12469
  strokeMiterlimit: "10"
12420
12470
  }
12421
12471
  ),
12422
- /* @__PURE__ */ jsx49(
12472
+ /* @__PURE__ */ jsx51(
12423
12473
  "path",
12424
12474
  {
12425
12475
  d: "M16.5 0V140",
@@ -12428,7 +12478,7 @@ var IcEmptyTable = () => {
12428
12478
  strokeMiterlimit: "10"
12429
12479
  }
12430
12480
  ),
12431
- /* @__PURE__ */ jsx49(
12481
+ /* @__PURE__ */ jsx51(
12432
12482
  "path",
12433
12483
  {
12434
12484
  d: "M0.5 16H215.5",
@@ -12437,7 +12487,7 @@ var IcEmptyTable = () => {
12437
12487
  strokeMiterlimit: "10"
12438
12488
  }
12439
12489
  ),
12440
- /* @__PURE__ */ jsx49(
12490
+ /* @__PURE__ */ jsx51(
12441
12491
  "path",
12442
12492
  {
12443
12493
  d: "M0.5 124H215.5",
@@ -12446,7 +12496,7 @@ var IcEmptyTable = () => {
12446
12496
  strokeMiterlimit: "10"
12447
12497
  }
12448
12498
  ),
12449
- /* @__PURE__ */ jsx49(
12499
+ /* @__PURE__ */ jsx51(
12450
12500
  "path",
12451
12501
  {
12452
12502
  opacity: "0.6",
@@ -12457,7 +12507,7 @@ var IcEmptyTable = () => {
12457
12507
  strokeLinejoin: "round"
12458
12508
  }
12459
12509
  ),
12460
- /* @__PURE__ */ jsx49(
12510
+ /* @__PURE__ */ jsx51(
12461
12511
  "path",
12462
12512
  {
12463
12513
  opacity: "0.6",
@@ -12468,7 +12518,7 @@ var IcEmptyTable = () => {
12468
12518
  strokeLinejoin: "round"
12469
12519
  }
12470
12520
  ),
12471
- /* @__PURE__ */ jsx49(
12521
+ /* @__PURE__ */ jsx51(
12472
12522
  "path",
12473
12523
  {
12474
12524
  opacity: "0.6",
@@ -12479,7 +12529,7 @@ var IcEmptyTable = () => {
12479
12529
  strokeLinejoin: "round"
12480
12530
  }
12481
12531
  ),
12482
- /* @__PURE__ */ jsx49(
12532
+ /* @__PURE__ */ jsx51(
12483
12533
  "path",
12484
12534
  {
12485
12535
  opacity: "0.6",
@@ -12490,7 +12540,7 @@ var IcEmptyTable = () => {
12490
12540
  strokeLinejoin: "round"
12491
12541
  }
12492
12542
  ),
12493
- /* @__PURE__ */ jsx49(
12543
+ /* @__PURE__ */ jsx51(
12494
12544
  "path",
12495
12545
  {
12496
12546
  opacity: "0.6",
@@ -12501,14 +12551,14 @@ var IcEmptyTable = () => {
12501
12551
  strokeLinejoin: "round"
12502
12552
  }
12503
12553
  ),
12504
- /* @__PURE__ */ jsx49(
12554
+ /* @__PURE__ */ jsx51(
12505
12555
  "path",
12506
12556
  {
12507
12557
  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",
12508
12558
  fill: "white"
12509
12559
  }
12510
12560
  ),
12511
- /* @__PURE__ */ jsx49(
12561
+ /* @__PURE__ */ jsx51(
12512
12562
  "path",
12513
12563
  {
12514
12564
  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",
@@ -12518,7 +12568,7 @@ var IcEmptyTable = () => {
12518
12568
  strokeLinejoin: "round"
12519
12569
  }
12520
12570
  ),
12521
- /* @__PURE__ */ jsx49(
12571
+ /* @__PURE__ */ jsx51(
12522
12572
  "path",
12523
12573
  {
12524
12574
  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",
@@ -12527,7 +12577,7 @@ var IcEmptyTable = () => {
12527
12577
  strokeLinejoin: "round"
12528
12578
  }
12529
12579
  ),
12530
- /* @__PURE__ */ jsx49(
12580
+ /* @__PURE__ */ jsx51(
12531
12581
  "path",
12532
12582
  {
12533
12583
  opacity: "0.6",
@@ -12538,7 +12588,7 @@ var IcEmptyTable = () => {
12538
12588
  strokeLinejoin: "round"
12539
12589
  }
12540
12590
  ),
12541
- /* @__PURE__ */ jsx49(
12591
+ /* @__PURE__ */ jsx51(
12542
12592
  "path",
12543
12593
  {
12544
12594
  opacity: "0.6",
@@ -12549,7 +12599,7 @@ var IcEmptyTable = () => {
12549
12599
  strokeLinejoin: "round"
12550
12600
  }
12551
12601
  ),
12552
- /* @__PURE__ */ jsx49(
12602
+ /* @__PURE__ */ jsx51(
12553
12603
  "path",
12554
12604
  {
12555
12605
  opacity: "0.6",
@@ -12560,7 +12610,7 @@ var IcEmptyTable = () => {
12560
12610
  strokeLinejoin: "round"
12561
12611
  }
12562
12612
  ),
12563
- /* @__PURE__ */ jsx49(
12613
+ /* @__PURE__ */ jsx51(
12564
12614
  "path",
12565
12615
  {
12566
12616
  opacity: "0.6",
@@ -12571,7 +12621,7 @@ var IcEmptyTable = () => {
12571
12621
  strokeLinejoin: "round"
12572
12622
  }
12573
12623
  ),
12574
- /* @__PURE__ */ jsx49(
12624
+ /* @__PURE__ */ jsx51(
12575
12625
  "path",
12576
12626
  {
12577
12627
  opacity: "0.6",
@@ -12582,7 +12632,7 @@ var IcEmptyTable = () => {
12582
12632
  strokeLinejoin: "round"
12583
12633
  }
12584
12634
  ),
12585
- /* @__PURE__ */ jsx49(
12635
+ /* @__PURE__ */ jsx51(
12586
12636
  "path",
12587
12637
  {
12588
12638
  opacity: "0.6",
@@ -12593,7 +12643,7 @@ var IcEmptyTable = () => {
12593
12643
  strokeLinejoin: "round"
12594
12644
  }
12595
12645
  ),
12596
- /* @__PURE__ */ jsx49(
12646
+ /* @__PURE__ */ jsx51(
12597
12647
  "path",
12598
12648
  {
12599
12649
  opacity: "0.6",
@@ -12604,7 +12654,7 @@ var IcEmptyTable = () => {
12604
12654
  strokeLinejoin: "round"
12605
12655
  }
12606
12656
  ),
12607
- /* @__PURE__ */ jsx49(
12657
+ /* @__PURE__ */ jsx51(
12608
12658
  "path",
12609
12659
  {
12610
12660
  opacity: "0.6",
@@ -12615,7 +12665,7 @@ var IcEmptyTable = () => {
12615
12665
  strokeLinejoin: "round"
12616
12666
  }
12617
12667
  ),
12618
- /* @__PURE__ */ jsx49(
12668
+ /* @__PURE__ */ jsx51(
12619
12669
  "path",
12620
12670
  {
12621
12671
  opacity: "0.6",
@@ -12626,14 +12676,14 @@ var IcEmptyTable = () => {
12626
12676
  strokeLinejoin: "round"
12627
12677
  }
12628
12678
  ),
12629
- /* @__PURE__ */ jsx49(
12679
+ /* @__PURE__ */ jsx51(
12630
12680
  "path",
12631
12681
  {
12632
12682
  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",
12633
12683
  fill: "white"
12634
12684
  }
12635
12685
  ),
12636
- /* @__PURE__ */ jsx49(
12686
+ /* @__PURE__ */ jsx51(
12637
12687
  "path",
12638
12688
  {
12639
12689
  "fill-rule": "evenodd",
@@ -12642,7 +12692,7 @@ var IcEmptyTable = () => {
12642
12692
  fill: "white"
12643
12693
  }
12644
12694
  ),
12645
- /* @__PURE__ */ jsx49(
12695
+ /* @__PURE__ */ jsx51(
12646
12696
  "path",
12647
12697
  {
12648
12698
  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",
@@ -12653,7 +12703,7 @@ var IcEmptyTable = () => {
12653
12703
  }
12654
12704
  )
12655
12705
  ] }),
12656
- /* @__PURE__ */ jsx49("defs", { children: /* @__PURE__ */ jsx49("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx49(
12706
+ /* @__PURE__ */ jsx51("defs", { children: /* @__PURE__ */ jsx51("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx51(
12657
12707
  "rect",
12658
12708
  {
12659
12709
  width: "215",
@@ -12668,14 +12718,14 @@ var IcEmptyTable = () => {
12668
12718
  };
12669
12719
 
12670
12720
  // src/widgets/advanced/table/empty-table.tsx
12671
- import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
12721
+ import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
12672
12722
  var EmptyTable = () => {
12673
12723
  const { t: t3 } = useI18n();
12674
- return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
12675
- /* @__PURE__ */ jsx50(IcEmptyTable, {}),
12676
- /* @__PURE__ */ jsxs29("div", { children: [
12677
- /* @__PURE__ */ jsx50("p", {}),
12678
- /* @__PURE__ */ jsx50("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
12724
+ return /* @__PURE__ */ jsxs31("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
12725
+ /* @__PURE__ */ jsx52(IcEmptyTable, {}),
12726
+ /* @__PURE__ */ jsxs31("div", { children: [
12727
+ /* @__PURE__ */ jsx52("p", {}),
12728
+ /* @__PURE__ */ jsx52("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
12679
12729
  ] })
12680
12730
  ] });
12681
12731
  };
@@ -14494,10 +14544,10 @@ function s3(o3, s4, t3) {
14494
14544
 
14495
14545
  // src/widgets/advanced/login/shared/button.tsx
14496
14546
  import * as React2 from "react";
14497
- import { jsx as jsx51 } from "react/jsx-runtime";
14547
+ import { jsx as jsx53 } from "react/jsx-runtime";
14498
14548
  var Button = React2.forwardRef(
14499
14549
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
14500
- return /* @__PURE__ */ jsx51(
14550
+ return /* @__PURE__ */ jsx53(
14501
14551
  "button",
14502
14552
  {
14503
14553
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -14507,7 +14557,7 @@ var Button = React2.forwardRef(
14507
14557
  ref,
14508
14558
  type,
14509
14559
  ...props,
14510
- children: isLoading ? /* @__PURE__ */ jsx51(LoadingIcon, { width: 20, height: 20 }) : children
14560
+ children: isLoading ? /* @__PURE__ */ jsx53(LoadingIcon, { width: 20, height: 20 }) : children
14511
14561
  }
14512
14562
  );
14513
14563
  }
@@ -14516,7 +14566,7 @@ Button.displayName = "Button";
14516
14566
 
14517
14567
  // src/widgets/advanced/login/shared/text-input.tsx
14518
14568
  import { useState as useState5 } from "react";
14519
- import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14569
+ import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
14520
14570
  function TextInput(props) {
14521
14571
  const {
14522
14572
  className,
@@ -14530,17 +14580,17 @@ function TextInput(props) {
14530
14580
  required
14531
14581
  } = props;
14532
14582
  const [showPassword, setShowPassword] = useState5(false);
14533
- return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14534
- label && /* @__PURE__ */ jsxs30("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14583
+ return /* @__PURE__ */ jsxs32("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14584
+ label && /* @__PURE__ */ jsxs32("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14535
14585
  label,
14536
- required ? /* @__PURE__ */ jsx52("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14586
+ required ? /* @__PURE__ */ jsx54("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14537
14587
  ] }),
14538
- /* @__PURE__ */ jsxs30(
14588
+ /* @__PURE__ */ jsxs32(
14539
14589
  "div",
14540
14590
  {
14541
14591
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
14542
14592
  children: [
14543
- /* @__PURE__ */ jsx52(
14593
+ /* @__PURE__ */ jsx54(
14544
14594
  "input",
14545
14595
  {
14546
14596
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -14549,18 +14599,18 @@ function TextInput(props) {
14549
14599
  ...register(name2)
14550
14600
  }
14551
14601
  ),
14552
- type === "password" && /* @__PURE__ */ jsx52(
14602
+ type === "password" && /* @__PURE__ */ jsx54(
14553
14603
  "span",
14554
14604
  {
14555
14605
  onClick: () => setShowPassword(!showPassword),
14556
14606
  className: "focus:outline-none",
14557
- children: showPassword ? /* @__PURE__ */ jsx52(EyeClosedIcon, {}) : /* @__PURE__ */ jsx52(EyeIcon, {})
14607
+ children: showPassword ? /* @__PURE__ */ jsx54(EyeClosedIcon, {}) : /* @__PURE__ */ jsx54(EyeIcon, {})
14558
14608
  }
14559
14609
  )
14560
14610
  ]
14561
14611
  }
14562
14612
  ),
14563
- errors?.[name2]?.message && /* @__PURE__ */ jsx52(
14613
+ errors?.[name2]?.message && /* @__PURE__ */ jsx54(
14564
14614
  "p",
14565
14615
  {
14566
14616
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -14572,7 +14622,7 @@ function TextInput(props) {
14572
14622
 
14573
14623
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
14574
14624
  import { useEffect as useEffect7 } from "react";
14575
- import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
14625
+ import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
14576
14626
  var STAY_LOGIN_IN = "stayLoginIn";
14577
14627
  function FormOptions({
14578
14628
  forgotPasswordUrl,
@@ -14598,9 +14648,9 @@ function FormOptions({
14598
14648
  useEffect7(() => {
14599
14649
  localStorage.setItem(STAY_LOGIN_IN, "false");
14600
14650
  }, []);
14601
- return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14602
- /* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
14603
- /* @__PURE__ */ jsx53(
14651
+ return /* @__PURE__ */ jsxs33("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14652
+ /* @__PURE__ */ jsxs33("label", { className: "flex gap-3", children: [
14653
+ /* @__PURE__ */ jsx55(
14604
14654
  "input",
14605
14655
  {
14606
14656
  checked: stayLoginIn,
@@ -14609,9 +14659,9 @@ function FormOptions({
14609
14659
  onChange: handleCheckboxChange
14610
14660
  }
14611
14661
  ),
14612
- /* @__PURE__ */ jsx53("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14662
+ /* @__PURE__ */ jsx55("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14613
14663
  ] }),
14614
- !hideForgotPassword && /* @__PURE__ */ jsx53("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14664
+ !hideForgotPassword && /* @__PURE__ */ jsx55("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14615
14665
  ] });
14616
14666
  }
14617
14667
 
@@ -14627,7 +14677,7 @@ var loginSchema = z2.object({
14627
14677
  });
14628
14678
 
14629
14679
  // src/widgets/advanced/login/provider/credential/index.tsx
14630
- import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
14680
+ import { Fragment as Fragment5, jsx as jsx56, jsxs as jsxs34 } from "react/jsx-runtime";
14631
14681
  var CredentialLogin = (props) => {
14632
14682
  const {
14633
14683
  shouldRenderDivider,
@@ -14647,16 +14697,16 @@ var CredentialLogin = (props) => {
14647
14697
  mode: "onChange",
14648
14698
  resolver: s3(loginSchema)
14649
14699
  });
14650
- return /* @__PURE__ */ jsxs32(Fragment5, { children: [
14651
- /* @__PURE__ */ jsxs32(
14700
+ return /* @__PURE__ */ jsxs34(Fragment5, { children: [
14701
+ /* @__PURE__ */ jsxs34(
14652
14702
  "form",
14653
14703
  {
14654
14704
  onSubmit: handleSubmit(onSubmit ?? (() => {
14655
14705
  })),
14656
14706
  className: `flex w-full h-fit flex-col gap-10`,
14657
14707
  children: [
14658
- /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
14659
- /* @__PURE__ */ jsx54(
14708
+ /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
14709
+ /* @__PURE__ */ jsx56(
14660
14710
  TextInput,
14661
14711
  {
14662
14712
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -14669,7 +14719,7 @@ var CredentialLogin = (props) => {
14669
14719
  errors
14670
14720
  }
14671
14721
  ),
14672
- /* @__PURE__ */ jsx54(
14722
+ /* @__PURE__ */ jsx56(
14673
14723
  TextInput,
14674
14724
  {
14675
14725
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -14682,7 +14732,7 @@ var CredentialLogin = (props) => {
14682
14732
  errors
14683
14733
  }
14684
14734
  ),
14685
- /* @__PURE__ */ jsx54(
14735
+ /* @__PURE__ */ jsx56(
14686
14736
  FormOptions,
14687
14737
  {
14688
14738
  forgotPasswordUrl,
@@ -14692,7 +14742,7 @@ var CredentialLogin = (props) => {
14692
14742
  }
14693
14743
  )
14694
14744
  ] }),
14695
- /* @__PURE__ */ jsx54("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx54(
14745
+ /* @__PURE__ */ jsx56("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx56(
14696
14746
  Button,
14697
14747
  {
14698
14748
  type: "submit",
@@ -14704,56 +14754,56 @@ var CredentialLogin = (props) => {
14704
14754
  ]
14705
14755
  }
14706
14756
  ),
14707
- shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
14708
- /* @__PURE__ */ jsx54("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
14709
- /* @__PURE__ */ jsx54("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
14757
+ shouldRenderDivider && /* @__PURE__ */ jsxs34("div", { className: "flex justify-center relative", children: [
14758
+ /* @__PURE__ */ jsx56("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
14759
+ /* @__PURE__ */ jsx56("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
14710
14760
  ] })
14711
14761
  ] });
14712
14762
  };
14713
14763
 
14714
14764
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
14715
- import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
14765
+ import { jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
14716
14766
  function GoogleButton(props) {
14717
14767
  const { onLoginGoogle, db } = props;
14718
- return /* @__PURE__ */ jsxs33(
14768
+ return /* @__PURE__ */ jsxs35(
14719
14769
  "button",
14720
14770
  {
14721
14771
  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",
14722
14772
  onClick: () => onLoginGoogle?.(db),
14723
14773
  children: [
14724
- /* @__PURE__ */ jsx55(GoogleIcon, { className: "google-icon" }),
14725
- /* @__PURE__ */ jsx55("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
14774
+ /* @__PURE__ */ jsx57(GoogleIcon, { className: "google-icon" }),
14775
+ /* @__PURE__ */ jsx57("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
14726
14776
  ]
14727
14777
  }
14728
14778
  );
14729
14779
  }
14730
14780
 
14731
14781
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
14732
- import { Fragment as Fragment6, jsx as jsx56 } from "react/jsx-runtime";
14782
+ import { Fragment as Fragment6, jsx as jsx58 } from "react/jsx-runtime";
14733
14783
  function SocialRedirect(props) {
14734
14784
  const { db, onLoginSocial } = props;
14735
14785
  onLoginSocial && onLoginSocial(String(db));
14736
- return /* @__PURE__ */ jsx56(Fragment6, {});
14786
+ return /* @__PURE__ */ jsx58(Fragment6, {});
14737
14787
  }
14738
14788
 
14739
14789
  // src/widgets/advanced/login/provider/google/index.tsx
14740
- import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
14790
+ import { Fragment as Fragment7, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
14741
14791
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
14742
- return /* @__PURE__ */ jsxs34(Fragment7, { children: [
14743
- /* @__PURE__ */ jsx57(GoogleButton, { db, onLoginGoogle }),
14744
- /* @__PURE__ */ jsx57(SocialRedirect, { db, onLoginSocial })
14792
+ return /* @__PURE__ */ jsxs36(Fragment7, { children: [
14793
+ /* @__PURE__ */ jsx59(GoogleButton, { db, onLoginGoogle }),
14794
+ /* @__PURE__ */ jsx59(SocialRedirect, { db, onLoginSocial })
14745
14795
  ] });
14746
14796
  };
14747
14797
 
14748
14798
  // src/widgets/advanced/login/index.tsx
14749
- import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
14799
+ import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
14750
14800
  var LoginProviderMapping = {
14751
14801
  google: GoogleLogin
14752
14802
  };
14753
14803
  var Login = (props) => {
14754
14804
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
14755
- return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
14756
- /* @__PURE__ */ jsx58(
14805
+ return /* @__PURE__ */ jsxs37("div", { className: "w-full space-y-8", children: [
14806
+ /* @__PURE__ */ jsx60(
14757
14807
  CredentialLogin,
14758
14808
  {
14759
14809
  ...props,
@@ -14763,7 +14813,7 @@ var Login = (props) => {
14763
14813
  ),
14764
14814
  providers.map((provider, index4) => {
14765
14815
  const ProviderComp = LoginProviderMapping[provider];
14766
- return /* @__PURE__ */ jsx58(
14816
+ return /* @__PURE__ */ jsx60(
14767
14817
  ProviderComp,
14768
14818
  {
14769
14819
  db,
@@ -14777,7 +14827,7 @@ var Login = (props) => {
14777
14827
  };
14778
14828
 
14779
14829
  // src/widgets/advanced/search/popup-filter/index.tsx
14780
- import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
14830
+ import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
14781
14831
  var PopupFilter = ({
14782
14832
  handleAddTagSearch,
14783
14833
  removeSearchItems,
@@ -14788,7 +14838,7 @@ var PopupFilter = ({
14788
14838
  fields
14789
14839
  }) => {
14790
14840
  const { t: t3 } = useI18n();
14791
- return /* @__PURE__ */ jsx59(
14841
+ return /* @__PURE__ */ jsx61(
14792
14842
  "div",
14793
14843
  {
14794
14844
  style: {
@@ -14798,25 +14848,25 @@ var PopupFilter = ({
14798
14848
  zIndex: 33
14799
14849
  },
14800
14850
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
14801
- children: /* @__PURE__ */ jsxs36(
14851
+ children: /* @__PURE__ */ jsxs38(
14802
14852
  "div",
14803
14853
  {
14804
14854
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14805
14855
  children: [
14806
- filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
14807
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14808
- /* @__PURE__ */ jsx59(FilterIcon, { className: "filter-by-icon text-primary" }),
14809
- /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
14856
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs38("div", { className: "filter-by w-full px-3", children: [
14857
+ /* @__PURE__ */ jsxs38("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14858
+ /* @__PURE__ */ jsx61(FilterIcon, { className: "filter-by-icon text-primary" }),
14859
+ /* @__PURE__ */ jsx61("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
14810
14860
  ] }),
14811
14861
  filterBy?.reduce((acc, item, index4, array) => {
14812
14862
  const prevItem = array[index4 - 1];
14813
14863
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
14814
14864
  const isExist = item?.active;
14815
14865
  if (isDifferentGroup) {
14816
- acc.push(/* @__PURE__ */ jsx59("hr", { className: "my-2" }, "separator-" + index4));
14866
+ acc.push(/* @__PURE__ */ jsx61("hr", { className: "my-2" }, "separator-" + index4));
14817
14867
  }
14818
14868
  acc.push(
14819
- /* @__PURE__ */ jsxs36(
14869
+ /* @__PURE__ */ jsxs38(
14820
14870
  "button",
14821
14871
  {
14822
14872
  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)]"}`,
@@ -14841,8 +14891,8 @@ var PopupFilter = ({
14841
14891
  });
14842
14892
  },
14843
14893
  children: [
14844
- isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
14845
- /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string ?? item?.help })
14894
+ isExist && /* @__PURE__ */ jsx61(CheckIcon, {}),
14895
+ /* @__PURE__ */ jsx61("span", { className: "text-sm", children: item?.string ?? item?.help })
14846
14896
  ]
14847
14897
  },
14848
14898
  "filter-" + index4
@@ -14851,16 +14901,16 @@ var PopupFilter = ({
14851
14901
  return acc;
14852
14902
  }, [])
14853
14903
  ] }),
14854
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx59("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14855
- groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
14856
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14857
- /* @__PURE__ */ jsx59(GroupByIcon, { className: "group-by-icon text-primary" }),
14858
- /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
14904
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx61("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14905
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs38("div", { className: "group-by w-full px-3", children: [
14906
+ /* @__PURE__ */ jsxs38("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14907
+ /* @__PURE__ */ jsx61(GroupByIcon, { className: "group-by-icon text-primary" }),
14908
+ /* @__PURE__ */ jsx61("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
14859
14909
  ] }),
14860
14910
  groupBy?.map((item, index4) => {
14861
14911
  const isExist = item?.active;
14862
14912
  if (!item.string) return;
14863
- return /* @__PURE__ */ jsxs36(
14913
+ return /* @__PURE__ */ jsxs38(
14864
14914
  "button",
14865
14915
  {
14866
14916
  onClick: () => {
@@ -14884,8 +14934,8 @@ var PopupFilter = ({
14884
14934
  },
14885
14935
  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)]"}`,
14886
14936
  children: [
14887
- isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
14888
- /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string })
14937
+ isExist && /* @__PURE__ */ jsx61(CheckIcon, {}),
14938
+ /* @__PURE__ */ jsx61("span", { className: "text-sm", children: item?.string })
14889
14939
  ]
14890
14940
  },
14891
14941
  "groupby-" + index4 + 1
@@ -14904,7 +14954,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
14904
14954
 
14905
14955
  // src/widgets/advanced/search/tag-search/index.tsx
14906
14956
  import { Fragment as Fragment8 } from "react";
14907
- import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
14957
+ import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
14908
14958
  var TagSearch = ({
14909
14959
  removeSearchItems,
14910
14960
  selectedTags,
@@ -14915,23 +14965,23 @@ var TagSearch = ({
14915
14965
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
14916
14966
  if (tag?.values?.length > 0) {
14917
14967
  if (tag?.type !== "group_by") {
14918
- return /* @__PURE__ */ jsxs37(
14968
+ return /* @__PURE__ */ jsxs39(
14919
14969
  "div",
14920
14970
  {
14921
14971
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
14922
14972
  children: [
14923
- /* @__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, {}) }),
14924
- /* @__PURE__ */ jsx60("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
14925
- return /* @__PURE__ */ jsxs37(Fragment8, { children: [
14926
- /* @__PURE__ */ jsx60("span", { children: value }),
14927
- idx < tag.values.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
14973
+ /* @__PURE__ */ jsx62("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__ */ jsx62(FilterIcon, {}) }),
14974
+ /* @__PURE__ */ jsx62("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
14975
+ return /* @__PURE__ */ jsxs39(Fragment8, { children: [
14976
+ /* @__PURE__ */ jsx62("span", { children: value }),
14977
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs39("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
14928
14978
  " ",
14929
14979
  instance.t("or"),
14930
14980
  " "
14931
14981
  ] })
14932
14982
  ] }, idx);
14933
14983
  }) }),
14934
- /* @__PURE__ */ jsx60(
14984
+ /* @__PURE__ */ jsx62(
14935
14985
  "button",
14936
14986
  {
14937
14987
  className: "px-2 text-sm font-bold",
@@ -14948,7 +14998,7 @@ var TagSearch = ({
14948
14998
  );
14949
14999
  }
14950
15000
  },
14951
- children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15001
+ children: /* @__PURE__ */ jsx62(CloseIcon, { className: "size-4 cursor-pointer" })
14952
15002
  }
14953
15003
  )
14954
15004
  ]
@@ -14956,26 +15006,26 @@ var TagSearch = ({
14956
15006
  "selected-tag-" + index4
14957
15007
  );
14958
15008
  } else if (tag?.type === "group_by") {
14959
- return /* @__PURE__ */ jsx60(
15009
+ return /* @__PURE__ */ jsx62(
14960
15010
  "div",
14961
15011
  {
14962
15012
  className: "flex min-h-full overflow-hidden",
14963
- 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(
14964
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs37(
15013
+ children: /* @__PURE__ */ jsx62("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15014
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs39(
14965
15015
  "div",
14966
15016
  {
14967
15017
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
14968
15018
  children: [
14969
- /* @__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, {}) }),
14970
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
14971
- /* @__PURE__ */ jsx60("span", { children: string }),
14972
- idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15019
+ /* @__PURE__ */ jsx62("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx62(GroupByIcon, {}) }),
15020
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs39(Fragment9, { children: [
15021
+ /* @__PURE__ */ jsx62("span", { children: string }),
15022
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs39("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
14973
15023
  " ",
14974
15024
  "> ",
14975
15025
  " "
14976
15026
  ] })
14977
15027
  ] })),
14978
- /* @__PURE__ */ jsx60(
15028
+ /* @__PURE__ */ jsx62(
14979
15029
  "button",
14980
15030
  {
14981
15031
  className: "pr-2 text-sm font-bold",
@@ -14990,7 +15040,7 @@ var TagSearch = ({
14990
15040
  );
14991
15041
  }
14992
15042
  },
14993
- children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15043
+ children: /* @__PURE__ */ jsx62(CloseIcon, { className: "size-4 cursor-pointer" })
14994
15044
  }
14995
15045
  )
14996
15046
  ]
@@ -15007,7 +15057,7 @@ var TagSearch = ({
15007
15057
  };
15008
15058
 
15009
15059
  // src/widgets/advanced/search/search-list/index.tsx
15010
- import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15060
+ import { jsx as jsx63, jsxs as jsxs40 } from "react/jsx-runtime";
15011
15061
  var SearchList = ({
15012
15062
  handleAddTagSearch,
15013
15063
  handleMouseEnter,
@@ -15017,7 +15067,7 @@ var SearchList = ({
15017
15067
  hoveredIndexSearchList
15018
15068
  }) => {
15019
15069
  const { t: t3 } = useI18n();
15020
- return /* @__PURE__ */ jsx61(
15070
+ return /* @__PURE__ */ jsx63(
15021
15071
  "div",
15022
15072
  {
15023
15073
  style: {
@@ -15029,7 +15079,7 @@ var SearchList = ({
15029
15079
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15030
15080
  return;
15031
15081
  }
15032
- return /* @__PURE__ */ jsxs38(
15082
+ return /* @__PURE__ */ jsxs40(
15033
15083
  "button",
15034
15084
  {
15035
15085
  onClick: () => {
@@ -15051,12 +15101,12 @@ var SearchList = ({
15051
15101
  children: [
15052
15102
  t3("search"),
15053
15103
  " ",
15054
- /* @__PURE__ */ jsx61("span", { className: "font-bold", children: searchItem?.title }),
15104
+ /* @__PURE__ */ jsx63("span", { className: "font-bold", children: searchItem?.title }),
15055
15105
  " ",
15056
15106
  t3("for"),
15057
15107
  ":",
15058
15108
  " ",
15059
- /* @__PURE__ */ jsx61(
15109
+ /* @__PURE__ */ jsx63(
15060
15110
  "span",
15061
15111
  {
15062
15112
  style: {
@@ -15076,7 +15126,7 @@ var SearchList = ({
15076
15126
  };
15077
15127
 
15078
15128
  // src/widgets/advanced/search/search-item/index.tsx
15079
- import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
15129
+ import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs41 } from "react/jsx-runtime";
15080
15130
  var Search = ({
15081
15131
  removeSearchItems,
15082
15132
  selectedTags,
@@ -15193,15 +15243,15 @@ var Search = ({
15193
15243
  setDidInit(true);
15194
15244
  setIsReadyFormatDomain(true);
15195
15245
  }, [aid, filterBy, fieldsList]);
15196
- return /* @__PURE__ */ jsxs39(
15246
+ return /* @__PURE__ */ jsxs41(
15197
15247
  "div",
15198
15248
  {
15199
15249
  ref: popupFilterRef,
15200
15250
  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)]`,
15201
15251
  children: [
15202
- /* @__PURE__ */ jsx62("div", { className: "size-5", children: /* @__PURE__ */ jsx62(SearchIcon, {}) }),
15203
- /* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15204
- /* @__PURE__ */ jsx62(
15252
+ /* @__PURE__ */ jsx64("div", { className: "size-5", children: /* @__PURE__ */ jsx64(SearchIcon, {}) }),
15253
+ /* @__PURE__ */ jsxs41("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15254
+ /* @__PURE__ */ jsx64(
15205
15255
  TagSearch,
15206
15256
  {
15207
15257
  removeSearchItems,
@@ -15211,7 +15261,7 @@ var Search = ({
15211
15261
  setGroupBy
15212
15262
  }
15213
15263
  ),
15214
- /* @__PURE__ */ jsx62(
15264
+ /* @__PURE__ */ jsx64(
15215
15265
  "input",
15216
15266
  {
15217
15267
  value: searchString,
@@ -15224,7 +15274,7 @@ var Search = ({
15224
15274
  onKeyUp: (e3) => e3.preventDefault()
15225
15275
  }
15226
15276
  ),
15227
- /* @__PURE__ */ jsx62(
15277
+ /* @__PURE__ */ jsx64(
15228
15278
  SearchList,
15229
15279
  {
15230
15280
  handleAddTagSearch,
@@ -15233,8 +15283,8 @@ var Search = ({
15233
15283
  }
15234
15284
  )
15235
15285
  ] }),
15236
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment10, { children: [
15237
- /* @__PURE__ */ jsxs39(
15286
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs41(Fragment10, { children: [
15287
+ /* @__PURE__ */ jsxs41(
15238
15288
  "div",
15239
15289
  {
15240
15290
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -15243,8 +15293,8 @@ var Search = ({
15243
15293
  setShowPopupFilter((prev2) => !prev2);
15244
15294
  },
15245
15295
  children: [
15246
- /* @__PURE__ */ jsx62("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15247
- /* @__PURE__ */ jsx62(
15296
+ /* @__PURE__ */ jsx64("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15297
+ /* @__PURE__ */ jsx64(
15248
15298
  ChevronBottomIcon,
15249
15299
  {
15250
15300
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -15253,7 +15303,7 @@ var Search = ({
15253
15303
  ]
15254
15304
  }
15255
15305
  ),
15256
- showPopupFilter && /* @__PURE__ */ jsx62(
15306
+ showPopupFilter && /* @__PURE__ */ jsx64(
15257
15307
  PopupFilter,
15258
15308
  {
15259
15309
  handleAddTagSearch,
@@ -15272,30 +15322,30 @@ var Search = ({
15272
15322
  };
15273
15323
 
15274
15324
  // src/widgets/basic/active-badge-field/active-badge.tsx
15275
- import { Fragment as Fragment11, jsx as jsx63 } from "react/jsx-runtime";
15325
+ import { Fragment as Fragment11, jsx as jsx65 } from "react/jsx-runtime";
15276
15326
  var ActiveBadgeField = (props) => {
15277
15327
  const { t: t3 } = useI18n();
15278
15328
  const {
15279
15329
  type,
15280
15330
  className
15281
15331
  } = props;
15282
- if (type === void 0) return /* @__PURE__ */ jsx63(Fragment11, {});
15332
+ if (type === void 0) return /* @__PURE__ */ jsx65(Fragment11, {});
15283
15333
  const typeStyle = type ? "text-green-500" : "text-red-500";
15284
15334
  const text = type ? t3("active") : t3("in_active");
15285
- return /* @__PURE__ */ jsx63("div", { className: `${typeStyle} ${className}`, children: text });
15335
+ return /* @__PURE__ */ jsx65("div", { className: `${typeStyle} ${className}`, children: text });
15286
15336
  };
15287
15337
 
15288
15338
  // src/widgets/common/modal-layer.tsx
15289
15339
  import { Fragment as Fragment12 } from "react";
15290
15340
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
15291
- import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15341
+ import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15292
15342
  var ModalLayer = ({
15293
15343
  isOpen,
15294
15344
  onClose,
15295
15345
  title,
15296
15346
  children
15297
15347
  }) => {
15298
- return /* @__PURE__ */ jsx64(
15348
+ return /* @__PURE__ */ jsx66(
15299
15349
  Transition,
15300
15350
  {
15301
15351
  show: isOpen,
@@ -15306,22 +15356,22 @@ var ModalLayer = ({
15306
15356
  leaveFrom: "transform scale-100 opacity-100",
15307
15357
  leaveTo: "transform scale-95 opacity-0",
15308
15358
  as: Fragment12,
15309
- 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: [
15310
- /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15311
- /* @__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: [
15312
- /* @__PURE__ */ jsxs40(
15359
+ children: /* @__PURE__ */ jsx66(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx66(DialogPanel, { children: /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15360
+ /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15361
+ /* @__PURE__ */ jsx66("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs42("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: [
15362
+ /* @__PURE__ */ jsxs42(
15313
15363
  "div",
15314
15364
  {
15315
15365
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
15316
15366
  children: [
15317
- title && /* @__PURE__ */ jsx64("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15318
- /* @__PURE__ */ jsx64(
15367
+ title && /* @__PURE__ */ jsx66("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15368
+ /* @__PURE__ */ jsx66(
15319
15369
  "button",
15320
15370
  {
15321
15371
  onClick: onClose,
15322
15372
  "aria-label": "Close",
15323
15373
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
15324
- children: /* @__PURE__ */ jsx64(CloseIcon, {})
15374
+ children: /* @__PURE__ */ jsx66(CloseIcon, {})
15325
15375
  }
15326
15376
  )
15327
15377
  ]
@@ -15335,7 +15385,7 @@ var ModalLayer = ({
15335
15385
  };
15336
15386
 
15337
15387
  // src/widgets/common/modal-confirm.tsx
15338
- import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15388
+ import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
15339
15389
  var ModalConfirm = ({
15340
15390
  name: name2,
15341
15391
  isShowModal,
@@ -15349,7 +15399,7 @@ var ModalConfirm = ({
15349
15399
  const renderButtonAction = (name3) => {
15350
15400
  switch (name3) {
15351
15401
  case "duplicate":
15352
- return /* @__PURE__ */ jsxs41(
15402
+ return /* @__PURE__ */ jsxs43(
15353
15403
  "button",
15354
15404
  {
15355
15405
  type: "button",
@@ -15357,13 +15407,13 @@ var ModalConfirm = ({
15357
15407
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15358
15408
  disabled: isLoading,
15359
15409
  children: [
15360
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15361
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15410
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
15411
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15362
15412
  ]
15363
15413
  }
15364
15414
  );
15365
15415
  case "archive":
15366
- return /* @__PURE__ */ jsxs41(
15416
+ return /* @__PURE__ */ jsxs43(
15367
15417
  "button",
15368
15418
  {
15369
15419
  type: "button",
@@ -15371,13 +15421,13 @@ var ModalConfirm = ({
15371
15421
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15372
15422
  disabled: isLoading,
15373
15423
  children: [
15374
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15375
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15424
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
15425
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15376
15426
  ]
15377
15427
  }
15378
15428
  );
15379
15429
  case "unarchive":
15380
- return /* @__PURE__ */ jsxs41(
15430
+ return /* @__PURE__ */ jsxs43(
15381
15431
  "button",
15382
15432
  {
15383
15433
  type: "button",
@@ -15385,13 +15435,13 @@ var ModalConfirm = ({
15385
15435
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15386
15436
  disabled: isLoading,
15387
15437
  children: [
15388
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15389
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15438
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
15439
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15390
15440
  ]
15391
15441
  }
15392
15442
  );
15393
15443
  case "delete":
15394
- return /* @__PURE__ */ jsxs41(
15444
+ return /* @__PURE__ */ jsxs43(
15395
15445
  "button",
15396
15446
  {
15397
15447
  type: "button",
@@ -15399,8 +15449,8 @@ var ModalConfirm = ({
15399
15449
  className: "button-primary flex-1 flex items-center justify-center gap-2",
15400
15450
  disabled: isLoading,
15401
15451
  children: [
15402
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15403
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15452
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
15453
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15404
15454
  ]
15405
15455
  }
15406
15456
  );
@@ -15408,13 +15458,13 @@ var ModalConfirm = ({
15408
15458
  break;
15409
15459
  }
15410
15460
  };
15411
- return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15412
- /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
15413
- /* @__PURE__ */ jsx65("div", { className: "text-[18px] font-bold", children: title }),
15414
- /* @__PURE__ */ jsx65("p", { className: "text-[16px]", children: content })
15461
+ return /* @__PURE__ */ jsx67(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs43("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15462
+ /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-[4px] items-center", children: [
15463
+ /* @__PURE__ */ jsx67("div", { className: "text-[18px] font-bold", children: title }),
15464
+ /* @__PURE__ */ jsx67("p", { className: "text-[16px]", children: content })
15415
15465
  ] }),
15416
- /* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15417
- /* @__PURE__ */ jsx65(
15466
+ /* @__PURE__ */ jsxs43("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15467
+ /* @__PURE__ */ jsx67(
15418
15468
  "button",
15419
15469
  {
15420
15470
  type: "button",
@@ -15431,7 +15481,7 @@ var ModalConfirm = ({
15431
15481
  // src/widgets/common/modal-detail.tsx
15432
15482
  import { useState as useState7 } from "react";
15433
15483
  import { createPortal as createPortal3 } from "react-dom";
15434
- import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15484
+ import { Fragment as Fragment13, jsx as jsx68, jsxs as jsxs44 } from "react/jsx-runtime";
15435
15485
  var ModalDetail = ({
15436
15486
  idToolTip,
15437
15487
  title,
@@ -15454,18 +15504,18 @@ var ModalDetail = ({
15454
15504
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
15455
15505
  };
15456
15506
  return createPortal3(
15457
- /* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15458
- /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15459
- /* @__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: [
15460
- /* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15461
- /* @__PURE__ */ jsxs42(
15507
+ /* @__PURE__ */ jsx68(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs44("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15508
+ /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15509
+ /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs44("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: [
15510
+ /* @__PURE__ */ jsxs44("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15511
+ /* @__PURE__ */ jsxs44(
15462
15512
  "div",
15463
15513
  {
15464
15514
  id: "modal-detail",
15465
15515
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
15466
15516
  children: [
15467
15517
  t3("detail_button"),
15468
- /* @__PURE__ */ jsx66(
15518
+ /* @__PURE__ */ jsx68(
15469
15519
  "button",
15470
15520
  {
15471
15521
  onClick: handleNavigateDetail,
@@ -15476,9 +15526,9 @@ var ModalDetail = ({
15476
15526
  ]
15477
15527
  }
15478
15528
  ),
15479
- /* @__PURE__ */ jsx66("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx66(CloseIcon, { className: "h-5 w-5" }) })
15529
+ /* @__PURE__ */ jsx68("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx68(CloseIcon, { className: "h-5 w-5" }) })
15480
15530
  ] }),
15481
- /* @__PURE__ */ jsx66("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15531
+ /* @__PURE__ */ jsx68("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15482
15532
  id: idForm,
15483
15533
  aid,
15484
15534
  model,
@@ -15493,7 +15543,7 @@ var ModalDetail = ({
15493
15543
 
15494
15544
  // src/widgets/common/loading-normal.tsx
15495
15545
  import { useEffect as useEffect9, useState as useState8 } from "react";
15496
- import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
15546
+ import { jsx as jsx69, jsxs as jsxs45 } from "react/jsx-runtime";
15497
15547
  var LayerLoading = () => {
15498
15548
  const { t: t3 } = useI18n();
15499
15549
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -15503,21 +15553,21 @@ var LayerLoading = () => {
15503
15553
  }, 200);
15504
15554
  return () => clearInterval(interval);
15505
15555
  }, []);
15506
- 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: [
15507
- /* @__PURE__ */ jsx67("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx67(
15556
+ return /* @__PURE__ */ jsx69("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx69("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs45("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15557
+ /* @__PURE__ */ jsx69("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx69(
15508
15558
  "div",
15509
15559
  {
15510
15560
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
15511
15561
  },
15512
15562
  index4
15513
15563
  )) }),
15514
- /* @__PURE__ */ jsx67("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15564
+ /* @__PURE__ */ jsx69("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15515
15565
  ] }) }) });
15516
15566
  };
15517
15567
 
15518
15568
  // src/widgets/common/loading-small.tsx
15519
15569
  import { useEffect as useEffect10, useState as useState9 } from "react";
15520
- import { jsx as jsx68 } from "react/jsx-runtime";
15570
+ import { jsx as jsx70 } from "react/jsx-runtime";
15521
15571
  var LoadingSmall = () => {
15522
15572
  const [activeIndex, setActiveIndex] = useState9(0);
15523
15573
  useEffect10(() => {
@@ -15526,7 +15576,7 @@ var LoadingSmall = () => {
15526
15576
  }, 200);
15527
15577
  return () => clearInterval(interval);
15528
15578
  }, []);
15529
- 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(
15579
+ return /* @__PURE__ */ jsx70("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx70("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx70("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx70("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx70(
15530
15580
  "div",
15531
15581
  {
15532
15582
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -15721,7 +15771,7 @@ var po = $2(K("zoom"));
15721
15771
  var uo = $2(K("flip"));
15722
15772
 
15723
15773
  // src/widgets/common/select-files.tsx
15724
- import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
15774
+ import { Fragment as Fragment14, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
15725
15775
  var ButtonSelectFiles = ({
15726
15776
  fileInputRef,
15727
15777
  selectedFiles,
@@ -15826,8 +15876,8 @@ var ButtonSelectFiles = ({
15826
15876
  await handleUpload(formData, serivce, xNode);
15827
15877
  }
15828
15878
  };
15829
- return /* @__PURE__ */ jsxs44(Fragment14, { children: [
15830
- isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
15879
+ return /* @__PURE__ */ jsxs46(Fragment14, { children: [
15880
+ isPending ? /* @__PURE__ */ jsx71(Fragment14, { children: /* @__PURE__ */ jsx71("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs46(
15831
15881
  "button",
15832
15882
  {
15833
15883
  type: "button",
@@ -15835,12 +15885,12 @@ var ButtonSelectFiles = ({
15835
15885
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
15836
15886
  onClick: () => fileInputRef.current.click(),
15837
15887
  children: [
15838
- /* @__PURE__ */ jsx69(AttachIcon, {}),
15839
- isText && /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
15888
+ /* @__PURE__ */ jsx71(AttachIcon, {}),
15889
+ isText && /* @__PURE__ */ jsx71("span", { children: t3("upload_file_placeholder") })
15840
15890
  ]
15841
15891
  }
15842
15892
  ),
15843
- /* @__PURE__ */ jsx69(
15893
+ /* @__PURE__ */ jsx71(
15844
15894
  "input",
15845
15895
  {
15846
15896
  type: "file",
@@ -15856,7 +15906,7 @@ var ButtonSelectFiles = ({
15856
15906
 
15857
15907
  // src/widgets/common/video-player.tsx
15858
15908
  import { useRef as useRef6, useState as useState10 } from "react";
15859
- import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
15909
+ import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
15860
15910
  var VideoPlayer = ({ src }) => {
15861
15911
  const [isPlaying, setIsPlaying] = useState10(false);
15862
15912
  const videoRef = useRef6(null);
@@ -15883,8 +15933,8 @@ var VideoPlayer = ({ src }) => {
15883
15933
  }
15884
15934
  }
15885
15935
  };
15886
- return /* @__PURE__ */ jsxs45("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: [
15887
- /* @__PURE__ */ jsx70(
15936
+ return /* @__PURE__ */ jsxs47("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: [
15937
+ /* @__PURE__ */ jsx72(
15888
15938
  "video",
15889
15939
  {
15890
15940
  ref: videoRef,
@@ -15896,13 +15946,13 @@ var VideoPlayer = ({ src }) => {
15896
15946
  children: "Your browser does not support the video tag."
15897
15947
  }
15898
15948
  ),
15899
- /* @__PURE__ */ jsx70("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15900
- /* @__PURE__ */ jsx70("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__ */ jsx70("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx70(PlayIcon, {}) }) })
15949
+ /* @__PURE__ */ jsx72("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15950
+ /* @__PURE__ */ jsx72("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__ */ jsx72("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx72(PlayIcon, {}) }) })
15901
15951
  ] });
15902
15952
  };
15903
15953
 
15904
15954
  // src/widgets/basic/avatar-field/avatar.tsx
15905
- import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
15955
+ import { Fragment as Fragment15, jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
15906
15956
  var AvatarField = (props) => {
15907
15957
  const {
15908
15958
  isForm = false,
@@ -15926,8 +15976,8 @@ var AvatarField = (props) => {
15926
15976
  color: textColor,
15927
15977
  fontSize: `${size4 / 2.5}px`
15928
15978
  };
15929
- return /* @__PURE__ */ jsxs46(Fragment15, { children: [
15930
- isForm && allowShowDetail && /* @__PURE__ */ jsx71(
15979
+ return /* @__PURE__ */ jsxs48(Fragment15, { children: [
15980
+ isForm && allowShowDetail && /* @__PURE__ */ jsx73(
15931
15981
  ModalDetail,
15932
15982
  {
15933
15983
  idToolTip: `avatar-widget-id-${id}`,
@@ -15938,7 +15988,7 @@ var AvatarField = (props) => {
15938
15988
  place: "top-start"
15939
15989
  }
15940
15990
  ),
15941
- allowShowDetail && /* @__PURE__ */ jsx71(
15991
+ allowShowDetail && /* @__PURE__ */ jsx73(
15942
15992
  M,
15943
15993
  {
15944
15994
  id: `avatar-widget-id-${id}`,
@@ -15947,7 +15997,7 @@ var AvatarField = (props) => {
15947
15997
  className: "z-20"
15948
15998
  }
15949
15999
  ),
15950
- avatarSrc ? /* @__PURE__ */ jsx71(
16000
+ avatarSrc ? /* @__PURE__ */ jsx73(
15951
16001
  "img",
15952
16002
  {
15953
16003
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -15955,7 +16005,7 @@ var AvatarField = (props) => {
15955
16005
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
15956
16006
  alt: "Avatar"
15957
16007
  }
15958
- ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16008
+ ) : /* @__PURE__ */ jsx73("div", { children: /* @__PURE__ */ jsx73(
15959
16009
  "div",
15960
16010
  {
15961
16011
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -15968,7 +16018,8 @@ var AvatarField = (props) => {
15968
16018
  };
15969
16019
 
15970
16020
  // src/widgets/basic/binary-field/binary.tsx
15971
- import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16021
+ import { useEffect as useEffect11, useState as useState11 } from "react";
16022
+ import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
15972
16023
  var BinaryField = (props) => {
15973
16024
  const {
15974
16025
  name: name2,
@@ -15977,21 +16028,114 @@ var BinaryField = (props) => {
15977
16028
  placeholder,
15978
16029
  required = false,
15979
16030
  invisible = false,
15980
- //hook return
16031
+ filename,
16032
+ formValues,
16033
+ isEditTable,
16034
+ widget,
15981
16035
  string,
16036
+ // from hook
16037
+ placeHolderImage,
15982
16038
  inputId,
15983
- selectedImage,
15984
- initialImage,
15985
- isInsideTable,
16039
+ initialFile,
15986
16040
  binaryRef,
15987
- handleImageChange,
15988
- handleRemoveImage,
16041
+ handleFileChange,
16042
+ handleRemoveFile,
15989
16043
  checkIsImageLink: checkIsImageLink2,
15990
- getImageBase64WithMimeType,
15991
- image
16044
+ onDownload
15992
16045
  } = props;
15993
16046
  const { t: t3 } = useI18n();
15994
- return /* @__PURE__ */ jsx72(
16047
+ const [fileInfo, setFileInfo] = useState11(null);
16048
+ useEffect11(() => {
16049
+ const loadFromLink = async () => {
16050
+ if (!initialFile) return;
16051
+ if (typeof initialFile !== "string") {
16052
+ setFileInfo(initialFile);
16053
+ return;
16054
+ }
16055
+ try {
16056
+ let type = "application/octet-stream";
16057
+ let size4 = 0;
16058
+ let name3 = formValues?.[filename ?? ""] || initialFile.split("/").pop() || "unknown_file";
16059
+ if (checkIsImageLink2(initialFile)) {
16060
+ type = "image/*";
16061
+ } else {
16062
+ const response = await fetch(initialFile);
16063
+ const responseBlob = await response.blob();
16064
+ if (responseBlob) {
16065
+ type = responseBlob?.type;
16066
+ size4 = responseBlob.size;
16067
+ }
16068
+ }
16069
+ setFileInfo({
16070
+ name: name3,
16071
+ type,
16072
+ url: initialFile,
16073
+ size: size4,
16074
+ source: "link"
16075
+ });
16076
+ } catch (error2) {
16077
+ console.warn("Cannot load link info:", error2);
16078
+ }
16079
+ };
16080
+ loadFromLink();
16081
+ }, [initialFile]);
16082
+ const handleChange = (e3, onChange2) => {
16083
+ const file = e3.target.files?.[0];
16084
+ if (!file) return;
16085
+ const isImage = file.type.startsWith("image/");
16086
+ const preview = isImage ? URL.createObjectURL(file) : null;
16087
+ const normalized = {
16088
+ name: file.name,
16089
+ type: file.type,
16090
+ size: file.size,
16091
+ url: preview,
16092
+ // chỉ có giá trị nếu là ảnh
16093
+ source: "upload",
16094
+ raw: file
16095
+ };
16096
+ setFileInfo(normalized);
16097
+ handleFileChange(e3, onChange2);
16098
+ };
16099
+ const renderPreview = (file) => {
16100
+ if (!file) return /* @__PURE__ */ jsx74(PlaceHolderIcon, {});
16101
+ const { name: name3, type, url, size: size4 } = file;
16102
+ if (type?.startsWith("image/") || checkIsImageLink2(url))
16103
+ return /* @__PURE__ */ jsx74(
16104
+ "img",
16105
+ {
16106
+ src: url,
16107
+ alt: name3,
16108
+ className: "w-full h-full max-w-32 max-h-32 rounded-lg object-contain"
16109
+ }
16110
+ );
16111
+ if (type?.startsWith("video/"))
16112
+ return /* @__PURE__ */ jsx74(
16113
+ "video",
16114
+ {
16115
+ src: url,
16116
+ className: "h-32 w-32 rounded-lg object-cover",
16117
+ controls: true
16118
+ }
16119
+ );
16120
+ const getFileIcon = () => {
16121
+ if (type === "application/pdf") return /* @__PURE__ */ jsx74(PdfIcon, {});
16122
+ if (type?.includes("excel") || type?.includes("spreadsheet"))
16123
+ return /* @__PURE__ */ jsx74(ExcelIcon, {});
16124
+ if (type?.includes("zip")) return /* @__PURE__ */ jsx74(ZipIcon, {});
16125
+ if (type === "application/json") return /* @__PURE__ */ jsx74(JSONFileIcon, {});
16126
+ return /* @__PURE__ */ jsx74(DefaultFileIcon, {});
16127
+ };
16128
+ const isShowSize = !isNaN(size4);
16129
+ return /* @__PURE__ */ jsxs49("div", { className: "flex items-center gap-2", children: [
16130
+ getFileIcon(),
16131
+ /* @__PURE__ */ jsxs49("div", { children: [
16132
+ /* @__PURE__ */ jsx74("p", { className: "text-sm font-medium text-gray-600 truncate max-w-[120px]", children: name3 }),
16133
+ isShowSize && /* @__PURE__ */ jsx74("span", { className: "text-xs text-[#666] font-semibold", children: formatFileSize(size4) })
16134
+ ] })
16135
+ ] });
16136
+ };
16137
+ const onlyImage = widget === "image" || widget === "image_url";
16138
+ return /* @__PURE__ */ jsx74(
15995
16139
  Controller,
15996
16140
  {
15997
16141
  name: name2 ?? "",
@@ -15999,111 +16143,144 @@ var BinaryField = (props) => {
15999
16143
  rules: {
16000
16144
  required: required && !invisible ? { value: true, message: `${string} ${t3("must_required")}` } : false
16001
16145
  },
16002
- render: ({ field }) => {
16003
- const renderImage = initialImage || selectedImage;
16004
- return /* @__PURE__ */ jsx72(
16005
- "div",
16006
- {
16007
- ref: binaryRef,
16008
- className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16009
- children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
16010
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16011
- "img",
16012
- {
16013
- style: {
16014
- width: "128px",
16015
- height: "128px"
16016
- },
16017
- src: renderImage,
16018
- alt: "Selected",
16019
- className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16020
- }
16021
- ) : renderImage ? /* @__PURE__ */ jsx72(
16022
- "img",
16023
- {
16024
- style: {
16025
- width: "128px",
16026
- height: "128px"
16027
- },
16028
- src: getImageBase64WithMimeType(renderImage) ?? void 0,
16029
- alt: "Selected",
16030
- className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16031
- }
16032
- ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
16033
- !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16034
- "button",
16146
+ render: ({ field, fieldState: { error: error2 } }) => {
16147
+ const hasFile = !!fileInfo;
16148
+ return /* @__PURE__ */ jsxs49(Fragment16, { children: [
16149
+ /* @__PURE__ */ jsx74(
16150
+ "div",
16151
+ {
16152
+ ref: binaryRef,
16153
+ className: `flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
16154
+ children: hasFile ? /* @__PURE__ */ jsx74(
16155
+ "div",
16035
16156
  {
16036
- type: "button",
16037
- onClick: () => handleRemoveImage(field.onChange),
16038
- 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",
16039
- children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16040
- }
16041
- )
16042
- ] }) : /* @__PURE__ */ jsxs47(
16043
- "label",
16044
- {
16045
- htmlFor: inputId,
16046
- style: {
16047
- width: "128px",
16048
- height: "128px"
16049
- },
16050
- 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"}`,
16051
- children: [
16052
- /* @__PURE__ */ jsx72(
16053
- "input",
16054
- {
16055
- id: inputId,
16056
- type: "file",
16057
- readOnly: readonly,
16058
- placeholder,
16059
- required: !invisible && required,
16060
- onChange: (e3) => handleImageChange(e3, field.onChange),
16061
- className: "hidden z-10 relative"
16062
- }
16063
- ),
16064
- /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
16065
- /* @__PURE__ */ jsx72(
16157
+ className: `relative group ${onlyImage ? "shadow-md rounded-lg" : ""}`,
16158
+ children: /* @__PURE__ */ jsxs49(
16066
16159
  "div",
16067
16160
  {
16068
- className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
16069
- style: {
16070
- bottom: "-8px",
16071
- left: "-8px",
16072
- boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16073
- },
16074
- children: /* @__PURE__ */ jsx72(
16075
- "svg",
16076
- {
16077
- xmlns: "http://www.w3.org/2000/svg",
16078
- width: "14",
16079
- height: "14",
16080
- viewBox: "0 0 14 14",
16081
- fill: "none",
16082
- children: /* @__PURE__ */ jsx72(
16083
- "path",
16084
- {
16085
- "fill-rule": "evenodd",
16086
- "clip-rule": "evenodd",
16087
- d: "M13.1868 0.813097C12.7961 0.422532 12.2663 0.203125 11.7139 0.203125C11.1615 0.203125 10.6317 0.422532 10.241 0.813097L9.35765 1.69726L12.3035 4.64393L12.0085 4.9381L11.7143 5.2331L8.76765 2.28643L1.40182 9.65226C1.34395 9.7104 1.30452 9.78432 1.28848 9.86476L0.698483 12.8114C0.685057 12.8787 0.688459 12.9483 0.708387 13.014C0.728316 13.0796 0.764154 13.1394 0.812719 13.1878C0.861283 13.2363 0.92107 13.2721 0.986769 13.2919C1.05247 13.3117 1.12204 13.315 1.18932 13.3014L4.13515 12.7123C4.21599 12.6961 4.29023 12.6564 4.34848 12.5981L13.1868 3.75976C13.3803 3.5663 13.5338 3.33661 13.6386 3.08381C13.7433 2.83102 13.7972 2.56006 13.7972 2.28643C13.7972 2.0128 13.7433 1.74184 13.6386 1.48905C13.5338 1.23625 13.3803 1.00656 13.1868 0.813097Z",
16088
- fill: "black"
16089
- }
16090
- )
16091
- }
16092
- )
16161
+ className: `flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px] ${onlyImage ? "h-32 w-32" : "max-h-fit max-w-fit"}`,
16162
+ children: [
16163
+ renderPreview(fileInfo),
16164
+ /* @__PURE__ */ jsxs49(
16165
+ "div",
16166
+ {
16167
+ style: {
16168
+ display: "flex",
16169
+ alignItems: "center",
16170
+ borderRadius: "8px",
16171
+ padding: "4px",
16172
+ gap: "8px",
16173
+ backgroundColor: onlyImage ? "rgba(0,0,0,0.03)" : "white",
16174
+ boxShadow: "0 2px 4px 0 rgba(27, 28, 29, 0.04)",
16175
+ position: onlyImage ? "absolute" : "relative",
16176
+ bottom: onlyImage ? "0" : "none",
16177
+ right: onlyImage ? "0" : "none"
16178
+ },
16179
+ children: [
16180
+ /* @__PURE__ */ jsx74(
16181
+ "span",
16182
+ {
16183
+ className: "cursor-pointer",
16184
+ onClick: () => onDownload && onDownload(
16185
+ fileInfo?.url || fileInfo?.data,
16186
+ fileInfo?.name || fileInfo?.display_name
16187
+ ),
16188
+ children: /* @__PURE__ */ jsx74(DownloadIcon, {})
16189
+ }
16190
+ ),
16191
+ !readonly && /* @__PURE__ */ jsx74(
16192
+ "span",
16193
+ {
16194
+ className: "cursor-pointer",
16195
+ onClick: () => {
16196
+ setFileInfo(null);
16197
+ handleRemoveFile(field.onChange);
16198
+ },
16199
+ children: /* @__PURE__ */ jsx74(DeleteIconDanger, {})
16200
+ }
16201
+ )
16202
+ ]
16203
+ }
16204
+ )
16205
+ ]
16093
16206
  }
16094
16207
  )
16095
- ]
16096
- }
16097
- )
16098
- }
16099
- );
16208
+ }
16209
+ ) : /* @__PURE__ */ jsxs49(
16210
+ "label",
16211
+ {
16212
+ htmlFor: inputId,
16213
+ className: `relative p-2 flex cursor-pointer items-center justify-center rounded-lg border border-gray-300 hover:border-primary bg-white transition-colors duration-300 ${readonly && "pointer-events-none"} ${onlyImage ? "h-32 w-32" : "w-fit h-fit "}`,
16214
+ children: [
16215
+ /* @__PURE__ */ jsx74(
16216
+ "input",
16217
+ {
16218
+ id: inputId,
16219
+ type: "file",
16220
+ readOnly: readonly,
16221
+ placeholder,
16222
+ required: !invisible && required,
16223
+ onChange: (e3) => handleChange(e3, field.onChange),
16224
+ className: "hidden",
16225
+ accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
16226
+ }
16227
+ ),
16228
+ onlyImage && /* @__PURE__ */ jsx74(
16229
+ "img",
16230
+ {
16231
+ src: placeHolderImage,
16232
+ alt: "",
16233
+ className: "z-0 relative"
16234
+ }
16235
+ ),
16236
+ /* @__PURE__ */ jsx74(
16237
+ "div",
16238
+ {
16239
+ className: "absolute size-8 bg-white rounded-lg flex justify-center items-center z-20",
16240
+ style: {
16241
+ bottom: "-8px",
16242
+ left: "-8px",
16243
+ boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)",
16244
+ width: "2rem",
16245
+ height: "2rem",
16246
+ border: onlyImage ? "1px solid transparent" : "1px solid var(--color-primary)",
16247
+ borderRadius: onlyImage ? "100%" : "8px"
16248
+ },
16249
+ children: /* @__PURE__ */ jsx74(
16250
+ "svg",
16251
+ {
16252
+ xmlns: "http://www.w3.org/2000/svg",
16253
+ width: "14",
16254
+ height: "14",
16255
+ viewBox: "0 0 14 14",
16256
+ fill: "none",
16257
+ children: /* @__PURE__ */ jsx74(
16258
+ "path",
16259
+ {
16260
+ "fill-rule": "evenodd",
16261
+ "clip-rule": "evenodd",
16262
+ d: "M13.1868 0.813097C12.7961 0.422532 12.2663 0.203125 11.7139 0.203125C11.1615 0.203125 10.6317 0.422532 10.241 0.813097L9.35765 1.69726L12.3035 4.64393L12.0085 4.9381L11.7143 5.2331L8.76765 2.28643L1.40182 9.65226C1.34395 9.7104 1.30452 9.78432 1.28848 9.86476L0.698483 12.8114C0.685057 12.8787 0.688459 12.9483 0.708387 13.014C0.728316 13.0796 0.764154 13.1394 0.812719 13.1878C0.861283 13.2363 0.92107 13.2721 0.986769 13.2919C1.05247 13.3117 1.12204 13.315 1.18932 13.3014L4.13515 12.7123C4.21599 12.6961 4.29023 12.6564 4.34848 12.5981L13.1868 3.75976C13.3803 3.5663 13.5338 3.33661 13.6386 3.08381C13.7433 2.83102 13.7972 2.56006 13.7972 2.28643C13.7972 2.0128 13.7433 1.74184 13.6386 1.48905C13.5338 1.23625 13.3803 1.00656 13.1868 0.813097Z",
16263
+ fill: "black"
16264
+ }
16265
+ )
16266
+ }
16267
+ )
16268
+ }
16269
+ )
16270
+ ]
16271
+ }
16272
+ )
16273
+ }
16274
+ ),
16275
+ error2 && !isEditTable && /* @__PURE__ */ jsx74("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
16276
+ ] });
16100
16277
  }
16101
16278
  }
16102
16279
  );
16103
16280
  };
16104
16281
 
16105
16282
  // src/widgets/basic/button-badge-field/button-badge.tsx
16106
- import { jsx as jsx73 } from "react/jsx-runtime";
16283
+ import { jsx as jsx75 } from "react/jsx-runtime";
16107
16284
  var typeStyles = {
16108
16285
  primary: {
16109
16286
  backgroundColor: "#3b82f6",
@@ -16178,11 +16355,11 @@ var ButtonBadgeField = (props) => {
16178
16355
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16179
16356
  };
16180
16357
  const label = getLabel(defaultValue ?? value);
16181
- return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16358
+ return label ? /* @__PURE__ */ jsx75("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16182
16359
  };
16183
16360
 
16184
16361
  // src/widgets/basic/button-field/button.tsx
16185
- import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
16362
+ import { Fragment as Fragment17, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
16186
16363
  var ButtonField = (props) => {
16187
16364
  const {
16188
16365
  func,
@@ -16193,7 +16370,7 @@ var ButtonField = (props) => {
16193
16370
  type = "submit"
16194
16371
  } = props;
16195
16372
  const { t: t3 } = useI18n();
16196
- return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
16373
+ return /* @__PURE__ */ jsx76(Fragment17, { children: !loading ? /* @__PURE__ */ jsx76(
16197
16374
  "button",
16198
16375
  {
16199
16376
  type,
@@ -16202,7 +16379,7 @@ var ButtonField = (props) => {
16202
16379
  onClick: func,
16203
16380
  children: t3(content)
16204
16381
  }
16205
- ) : /* @__PURE__ */ jsxs48(
16382
+ ) : /* @__PURE__ */ jsxs50(
16206
16383
  "button",
16207
16384
  {
16208
16385
  type,
@@ -16211,15 +16388,15 @@ var ButtonField = (props) => {
16211
16388
  children: [
16212
16389
  t3("loading"),
16213
16390
  " ",
16214
- /* @__PURE__ */ jsx74(LoadingIcon, {})
16391
+ /* @__PURE__ */ jsx76(LoadingIcon, {})
16215
16392
  ]
16216
16393
  }
16217
16394
  ) });
16218
16395
  };
16219
16396
 
16220
16397
  // src/widgets/basic/char-field/char.tsx
16221
- import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
16222
- import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
16398
+ import { useEffect as useEffect12, useMemo as useMemo4 } from "react";
16399
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs51 } from "react/jsx-runtime";
16223
16400
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16224
16401
  var CharField = (props) => {
16225
16402
  const {
@@ -16247,9 +16424,9 @@ var CharField = (props) => {
16247
16424
  } = props;
16248
16425
  if (!isForm && !isEditTable) {
16249
16426
  const propValue = value || defaultValue;
16250
- return /* @__PURE__ */ jsx75("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16427
+ return /* @__PURE__ */ jsx77("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16251
16428
  }
16252
- return /* @__PURE__ */ jsx75(
16429
+ return /* @__PURE__ */ jsx77(
16253
16430
  Controller,
16254
16431
  {
16255
16432
  name: name2 ?? "",
@@ -16277,12 +16454,12 @@ var CharField = (props) => {
16277
16454
  fieldState: { error: error2, isDirty }
16278
16455
  }) => {
16279
16456
  const { setError, clearErrors } = methods;
16280
- useEffect11(() => {
16457
+ useEffect12(() => {
16281
16458
  if (value2) {
16282
16459
  clearErrors(name2);
16283
16460
  }
16284
16461
  }, [value2, clearErrors, name2]);
16285
- useEffect11(() => {
16462
+ useEffect12(() => {
16286
16463
  if (widget !== WIDGET_AUTO_COMPUTE_DEPEND) return;
16287
16464
  const depValue = formValues?.[options2?.depend_field]?.[options2?.field_name];
16288
16465
  const currentValue = methods?.getValues(name2);
@@ -16303,8 +16480,8 @@ var CharField = (props) => {
16303
16480
  }
16304
16481
  return "";
16305
16482
  }, [widget, formValues]);
16306
- return /* @__PURE__ */ jsxs49(Fragment17, { children: [
16307
- /* @__PURE__ */ jsx75(
16483
+ return /* @__PURE__ */ jsxs51(Fragment18, { children: [
16484
+ /* @__PURE__ */ jsx77(
16308
16485
  "input",
16309
16486
  {
16310
16487
  value: displayValue ?? "",
@@ -16365,7 +16542,7 @@ var CharField = (props) => {
16365
16542
  `
16366
16543
  }
16367
16544
  ),
16368
- isEditTable ? /* @__PURE__ */ jsx75(Fragment17, {}) : /* @__PURE__ */ jsx75(Fragment17, { children: error2 && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16545
+ isEditTable ? /* @__PURE__ */ jsx77(Fragment18, {}) : /* @__PURE__ */ jsx77(Fragment18, { children: error2 && /* @__PURE__ */ jsx77("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16369
16546
  ] });
16370
16547
  }
16371
16548
  }
@@ -16373,7 +16550,7 @@ var CharField = (props) => {
16373
16550
  };
16374
16551
 
16375
16552
  // src/widgets/basic/checkbox-field/checkbox.tsx
16376
- import { jsx as jsx76 } from "react/jsx-runtime";
16553
+ import { jsx as jsx78 } from "react/jsx-runtime";
16377
16554
  var CheckboxField = (props) => {
16378
16555
  const {
16379
16556
  name: name2,
@@ -16388,9 +16565,9 @@ var CheckboxField = (props) => {
16388
16565
  } = props;
16389
16566
  if (!isForm) {
16390
16567
  if (name2 === "is_active" || name2 === "active") {
16391
- return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
16568
+ return /* @__PURE__ */ jsx78(ActiveBadgeField, { type: value });
16392
16569
  } else {
16393
- return /* @__PURE__ */ jsx76(
16570
+ return /* @__PURE__ */ jsx78(
16394
16571
  "input",
16395
16572
  {
16396
16573
  type: "checkbox",
@@ -16401,12 +16578,12 @@ var CheckboxField = (props) => {
16401
16578
  );
16402
16579
  }
16403
16580
  }
16404
- return /* @__PURE__ */ jsx76(
16581
+ return /* @__PURE__ */ jsx78(
16405
16582
  Controller,
16406
16583
  {
16407
16584
  name: name2 ?? "",
16408
16585
  control: methods?.control,
16409
- render: ({ field }) => /* @__PURE__ */ jsx76(
16586
+ render: ({ field }) => /* @__PURE__ */ jsx78(
16410
16587
  "div",
16411
16588
  {
16412
16589
  className: "flex items-center gap-2",
@@ -16419,7 +16596,7 @@ var CheckboxField = (props) => {
16419
16596
  onChange2(name2 ?? "", checked);
16420
16597
  }
16421
16598
  },
16422
- children: /* @__PURE__ */ jsx76(
16599
+ children: /* @__PURE__ */ jsx78(
16423
16600
  "input",
16424
16601
  {
16425
16602
  ...field,
@@ -16446,24 +16623,24 @@ var CheckboxField = (props) => {
16446
16623
  };
16447
16624
 
16448
16625
  // src/widgets/basic/color-field/color-wrapper.tsx
16449
- import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
16450
- import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
16626
+ import { useEffect as useEffect13, useRef as useRef7, useState as useState12 } from "react";
16627
+ import { Fragment as Fragment19, jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
16451
16628
  var ColorWrapper = (props) => {
16452
16629
  const {
16453
16630
  colors: colors2,
16454
16631
  defaultColor,
16455
16632
  savePickColor
16456
16633
  } = props;
16457
- const [selectedColor, setSelectedColor] = useState11(colors2[defaultColor]);
16458
- const [showFullColors, setIsShowFullColor] = useState11(false);
16634
+ const [selectedColor, setSelectedColor] = useState12(colors2[defaultColor]);
16635
+ const [showFullColors, setIsShowFullColor] = useState12(false);
16459
16636
  const pickColorsRef = useRef7(null);
16460
- useEffect12(() => {
16637
+ useEffect13(() => {
16461
16638
  setSelectedColor(colors2[defaultColor]);
16462
16639
  }, [defaultColor]);
16463
16640
  const handleShowFullColors = () => {
16464
16641
  setIsShowFullColor(!showFullColors);
16465
16642
  };
16466
- useEffect12(() => {
16643
+ useEffect13(() => {
16467
16644
  const handleClickOutside = (event) => {
16468
16645
  if (pickColorsRef.current && !pickColorsRef.current.contains(event.target)) {
16469
16646
  setIsShowFullColor(false);
@@ -16474,8 +16651,8 @@ var ColorWrapper = (props) => {
16474
16651
  document.removeEventListener("mousedown", handleClickOutside);
16475
16652
  };
16476
16653
  }, []);
16477
- return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
16478
- /* @__PURE__ */ jsx77(
16654
+ return /* @__PURE__ */ jsx79("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx79("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs52("div", { children: [
16655
+ /* @__PURE__ */ jsx79(
16479
16656
  "button",
16480
16657
  {
16481
16658
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -16489,7 +16666,7 @@ var ColorWrapper = (props) => {
16489
16666
  }
16490
16667
  }
16491
16668
  ),
16492
- /* @__PURE__ */ jsx77(
16669
+ /* @__PURE__ */ jsx79(
16493
16670
  M,
16494
16671
  {
16495
16672
  className: "",
@@ -16498,8 +16675,8 @@ var ColorWrapper = (props) => {
16498
16675
  content: i18n_default.t(color?.name)
16499
16676
  }
16500
16677
  )
16501
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
16502
- /* @__PURE__ */ jsx77(
16678
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment19, { children: [
16679
+ /* @__PURE__ */ jsx79(
16503
16680
  "button",
16504
16681
  {
16505
16682
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -16512,7 +16689,7 @@ var ColorWrapper = (props) => {
16512
16689
  style: { backgroundColor: selectedColor?.color }
16513
16690
  }
16514
16691
  ),
16515
- /* @__PURE__ */ jsx77(
16692
+ /* @__PURE__ */ jsx79(
16516
16693
  M,
16517
16694
  {
16518
16695
  place: "top",
@@ -16524,13 +16701,13 @@ var ColorWrapper = (props) => {
16524
16701
  };
16525
16702
 
16526
16703
  // src/widgets/basic/color-field/color.tsx
16527
- import { jsx as jsx78 } from "react/jsx-runtime";
16704
+ import { jsx as jsx80 } from "react/jsx-runtime";
16528
16705
  var ColorField = (props) => {
16529
16706
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
16530
16707
  if (!isForm) {
16531
- return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
16708
+ return /* @__PURE__ */ jsx80(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
16532
16709
  }
16533
- return /* @__PURE__ */ jsx78(
16710
+ return /* @__PURE__ */ jsx80(
16534
16711
  Controller,
16535
16712
  {
16536
16713
  name: name2 ?? "",
@@ -16540,7 +16717,7 @@ var ColorField = (props) => {
16540
16717
  field.onChange(color?.id);
16541
16718
  onChange2 && onChange2(name2 ?? "", color?.id);
16542
16719
  };
16543
- return /* @__PURE__ */ jsx78(
16720
+ return /* @__PURE__ */ jsx80(
16544
16721
  ColorWrapper,
16545
16722
  {
16546
16723
  savePickColor: handlePickColorChange,
@@ -16554,8 +16731,8 @@ var ColorField = (props) => {
16554
16731
  };
16555
16732
 
16556
16733
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
16557
- import { useEffect as useEffect13 } from "react";
16558
- import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
16734
+ import { useEffect as useEffect14 } from "react";
16735
+ import { jsx as jsx81, jsxs as jsxs53 } from "react/jsx-runtime";
16559
16736
  var CopyLinkButtonField = (props) => {
16560
16737
  const {
16561
16738
  isForm,
@@ -16574,9 +16751,9 @@ var CopyLinkButtonField = (props) => {
16574
16751
  } = props;
16575
16752
  const { t: t3 } = useI18n();
16576
16753
  if (!isForm) {
16577
- return /* @__PURE__ */ jsx79("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16754
+ return /* @__PURE__ */ jsx81("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16578
16755
  }
16579
- return /* @__PURE__ */ jsx79(
16756
+ return /* @__PURE__ */ jsx81(
16580
16757
  Controller,
16581
16758
  {
16582
16759
  name: name2 ?? "",
@@ -16589,13 +16766,13 @@ var CopyLinkButtonField = (props) => {
16589
16766
  fieldState: { error: error2 }
16590
16767
  }) => {
16591
16768
  const { setError, clearErrors } = methods;
16592
- useEffect13(() => {
16769
+ useEffect14(() => {
16593
16770
  if (value) {
16594
16771
  clearErrors(name2);
16595
16772
  }
16596
16773
  }, [value]);
16597
- return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
16598
- /* @__PURE__ */ jsxs51(
16774
+ return /* @__PURE__ */ jsxs53("div", { className: "relative", children: [
16775
+ /* @__PURE__ */ jsxs53(
16599
16776
  "div",
16600
16777
  {
16601
16778
  "aria-disabled": readonly,
@@ -16604,7 +16781,7 @@ var CopyLinkButtonField = (props) => {
16604
16781
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
16605
16782
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
16606
16783
  children: [
16607
- /* @__PURE__ */ jsx79(
16784
+ /* @__PURE__ */ jsx81(
16608
16785
  "input",
16609
16786
  {
16610
16787
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -16645,19 +16822,19 @@ var CopyLinkButtonField = (props) => {
16645
16822
  `
16646
16823
  }
16647
16824
  ),
16648
- readonly && value && /* @__PURE__ */ jsx79(
16825
+ readonly && value && /* @__PURE__ */ jsx81(
16649
16826
  "button",
16650
16827
  {
16651
16828
  className: "cursor-pointer",
16652
16829
  type: "button",
16653
16830
  onClick: () => handleCopyToClipboard(propValue),
16654
- children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
16831
+ children: isCopied ? /* @__PURE__ */ jsx81(CheckIcon, {}) : /* @__PURE__ */ jsx81(CopyIcon, {})
16655
16832
  }
16656
16833
  )
16657
16834
  ]
16658
16835
  }
16659
16836
  ),
16660
- error2 && /* @__PURE__ */ jsx79("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
16837
+ error2 && /* @__PURE__ */ jsx81("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
16661
16838
  ] });
16662
16839
  }
16663
16840
  }
@@ -16665,10 +16842,10 @@ var CopyLinkButtonField = (props) => {
16665
16842
  };
16666
16843
 
16667
16844
  // src/widgets/basic/date-field/date.tsx
16668
- import { forwardRef as forwardRef6, useEffect as useEffect17 } from "react";
16845
+ import { forwardRef as forwardRef6, useEffect as useEffect18 } from "react";
16669
16846
 
16670
16847
  // node_modules/react-datepicker/dist/index.es.js
16671
- import React9, { useRef as useRef11, useCallback as useCallback5, useEffect as useEffect15, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
16848
+ import React9, { useRef as useRef11, useCallback as useCallback5, useEffect as useEffect16, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
16672
16849
 
16673
16850
  // node_modules/date-fns/constants.js
16674
16851
  var daysInYear = 365.2425;
@@ -20598,7 +20775,7 @@ function useEffectEvent(callback) {
20598
20775
  }
20599
20776
 
20600
20777
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
20601
- import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
20778
+ import { jsx as jsx82, jsxs as jsxs54, Fragment as Fragment20 } from "react/jsx-runtime";
20602
20779
  import * as ReactDOM2 from "react-dom";
20603
20780
 
20604
20781
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -20996,7 +21173,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
20996
21173
  bottom: isCustomShape ? "" : "rotate(180deg)",
20997
21174
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
20998
21175
  }[side];
20999
- return /* @__PURE__ */ jsxs52("svg", {
21176
+ return /* @__PURE__ */ jsxs54("svg", {
21000
21177
  ...rest,
21001
21178
  "aria-hidden": true,
21002
21179
  ref,
@@ -21012,18 +21189,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21012
21189
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21013
21190
  ...restStyle
21014
21191
  },
21015
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21192
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx82("path", {
21016
21193
  clipPath: "url(#" + clipPathId + ")",
21017
21194
  fill: "none",
21018
21195
  stroke,
21019
21196
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21020
21197
  d: dValue
21021
- }), /* @__PURE__ */ jsx80("path", {
21198
+ }), /* @__PURE__ */ jsx82("path", {
21022
21199
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21023
21200
  d: dValue
21024
- }), /* @__PURE__ */ jsx80("clipPath", {
21201
+ }), /* @__PURE__ */ jsx82("clipPath", {
21025
21202
  id: clipPathId,
21026
- children: /* @__PURE__ */ jsx80("rect", {
21203
+ children: /* @__PURE__ */ jsx82("rect", {
21027
21204
  x: -halfStrokeWidth,
21028
21205
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21029
21206
  width: width + computedStrokeWidth,
@@ -21252,7 +21429,7 @@ var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21252
21429
  }
21253
21430
  }
21254
21431
  }, [ignoreClass]);
21255
- useEffect15(function() {
21432
+ useEffect16(function() {
21256
21433
  document.addEventListener("mousedown", handleClickOutside);
21257
21434
  return function() {
21258
21435
  document.removeEventListener("mousedown", handleClickOutside);
@@ -25505,13 +25682,13 @@ function _objectWithoutProperties(e3, t3) {
25505
25682
  }
25506
25683
 
25507
25684
  // node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
25508
- import { useState as useState14, useCallback as useCallback6 } from "react";
25685
+ import { useState as useState15, useCallback as useCallback6 } from "react";
25509
25686
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
25510
25687
  function useStateManager(_ref3) {
25511
25688
  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);
25512
- var _useState = useState14(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
25513
- var _useState3 = useState14(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
25514
- var _useState5 = useState14(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
25689
+ var _useState = useState15(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
25690
+ var _useState3 = useState15(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
25691
+ var _useState5 = useState15(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
25515
25692
  var onChange2 = useCallback6(function(value2, actionMeta) {
25516
25693
  if (typeof propsOnChange === "function") {
25517
25694
  propsOnChange(value2, actionMeta);
@@ -25672,7 +25849,7 @@ function _toConsumableArray(r4) {
25672
25849
 
25673
25850
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
25674
25851
  import * as React13 from "react";
25675
- import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect16, Component as Component2 } from "react";
25852
+ import { useMemo as useMemo8, Fragment as Fragment23, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
25676
25853
 
25677
25854
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
25678
25855
  import * as React11 from "react";
@@ -26956,7 +27133,7 @@ var Emotion$1 = Emotion;
26956
27133
  import * as React12 from "react";
26957
27134
  var import_extends2 = __toESM(require_extends());
26958
27135
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
26959
- var jsx81 = function jsx82(type, props) {
27136
+ var jsx83 = function jsx84(type, props) {
26960
27137
  var args = arguments;
26961
27138
  if (props == null || !hasOwn.call(props, "css")) {
26962
27139
  return React12.createElement.apply(void 0, args);
@@ -26974,7 +27151,7 @@ var jsx81 = function jsx82(type, props) {
26974
27151
  var JSX;
26975
27152
  /* @__PURE__ */ (function(_JSX) {
26976
27153
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
26977
- })(jsx81 || (jsx81 = {}));
27154
+ })(jsx83 || (jsx83 = {}));
26978
27155
  function css() {
26979
27156
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
26980
27157
  args[_key] = arguments[_key];
@@ -27004,7 +27181,7 @@ function _taggedTemplateLiteral(e3, t3) {
27004
27181
  }
27005
27182
 
27006
27183
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27007
- import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27184
+ import { useContext as useContext9, useRef as useRef13, useState as useState16, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27008
27185
  import { createPortal as createPortal5 } from "react-dom";
27009
27186
 
27010
27187
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
@@ -27351,8 +27528,8 @@ var MenuPlacer = function MenuPlacer2(props) {
27351
27528
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
27352
27529
  var _ref3 = useContext9(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
27353
27530
  var ref = useRef13(null);
27354
- var _useState = useState15(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
27355
- var _useState3 = useState15(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
27531
+ var _useState = useState16(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
27532
+ var _useState3 = useState16(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
27356
27533
  var controlHeight2 = theme.spacing.controlHeight;
27357
27534
  index3(function() {
27358
27535
  var menuEl = ref.current;
@@ -27382,7 +27559,7 @@ var MenuPlacer = function MenuPlacer2(props) {
27382
27559
  };
27383
27560
  var Menu = function Menu2(props) {
27384
27561
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
27385
- return jsx81("div", _extends({}, getStyleProps(props, "menu", {
27562
+ return jsx83("div", _extends({}, getStyleProps(props, "menu", {
27386
27563
  menu: true
27387
27564
  }), {
27388
27565
  ref: innerRef
@@ -27404,7 +27581,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
27404
27581
  };
27405
27582
  var MenuList = function MenuList2(props) {
27406
27583
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
27407
- return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
27584
+ return jsx83("div", _extends({}, getStyleProps(props, "menuList", {
27408
27585
  "menu-list": true,
27409
27586
  "menu-list--is-multi": isMulti
27410
27587
  }), {
@@ -27424,7 +27601,7 @@ var noOptionsMessageCSS = noticeCSS;
27424
27601
  var loadingMessageCSS = noticeCSS;
27425
27602
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27426
27603
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
27427
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27604
+ return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27428
27605
  children,
27429
27606
  innerProps
27430
27607
  }), "noOptionsMessage", {
@@ -27434,7 +27611,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27434
27611
  };
27435
27612
  var LoadingMessage = function LoadingMessage2(_ref7) {
27436
27613
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
27437
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27614
+ return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27438
27615
  children,
27439
27616
  innerProps
27440
27617
  }), "loadingMessage", {
@@ -27456,13 +27633,13 @@ var MenuPortal = function MenuPortal2(props) {
27456
27633
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
27457
27634
  var menuPortalRef = useRef13(null);
27458
27635
  var cleanupRef = useRef13(null);
27459
- var _useState5 = useState15(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
27636
+ var _useState5 = useState16(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
27460
27637
  var portalPlacementContext = useMemo7(function() {
27461
27638
  return {
27462
27639
  setPortalPlacement
27463
27640
  };
27464
27641
  }, []);
27465
- var _useState7 = useState15(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
27642
+ var _useState7 = useState16(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
27466
27643
  var updateComputedPosition = useCallback7(function() {
27467
27644
  if (!controlElement) return;
27468
27645
  var rect = getBoundingClientObj(controlElement);
@@ -27497,7 +27674,7 @@ var MenuPortal = function MenuPortal2(props) {
27497
27674
  runAutoUpdate();
27498
27675
  }, [runAutoUpdate]);
27499
27676
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
27500
- var menuWrapper = jsx81("div", _extends({
27677
+ var menuWrapper = jsx83("div", _extends({
27501
27678
  ref: setMenuPortalElement
27502
27679
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
27503
27680
  offset: computedPosition.offset,
@@ -27506,7 +27683,7 @@ var MenuPortal = function MenuPortal2(props) {
27506
27683
  }), "menuPortal", {
27507
27684
  "menu-portal": true
27508
27685
  }), innerProps), children);
27509
- return jsx81(PortalPlacementContext.Provider, {
27686
+ return jsx83(PortalPlacementContext.Provider, {
27510
27687
  value: portalPlacementContext
27511
27688
  }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
27512
27689
  };
@@ -27522,7 +27699,7 @@ var containerCSS = function containerCSS2(_ref3) {
27522
27699
  };
27523
27700
  var SelectContainer = function SelectContainer2(props) {
27524
27701
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
27525
- return jsx81("div", _extends({}, getStyleProps(props, "container", {
27702
+ return jsx83("div", _extends({}, getStyleProps(props, "container", {
27526
27703
  "--is-disabled": isDisabled,
27527
27704
  "--is-rtl": isRtl
27528
27705
  }), innerProps), children);
@@ -27543,7 +27720,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
27543
27720
  };
27544
27721
  var ValueContainer = function ValueContainer2(props) {
27545
27722
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
27546
- return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
27723
+ return jsx83("div", _extends({}, getStyleProps(props, "valueContainer", {
27547
27724
  "value-container": true,
27548
27725
  "value-container--is-multi": isMulti,
27549
27726
  "value-container--has-value": hasValue
@@ -27559,7 +27736,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
27559
27736
  };
27560
27737
  var IndicatorsContainer = function IndicatorsContainer2(props) {
27561
27738
  var children = props.children, innerProps = props.innerProps;
27562
- return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
27739
+ return jsx83("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
27563
27740
  indicators: true
27564
27741
  }), innerProps), children);
27565
27742
  };
@@ -27580,7 +27757,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
27580
27757
  };
27581
27758
  var Svg = function Svg2(_ref3) {
27582
27759
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
27583
- return jsx81("svg", _extends({
27760
+ return jsx83("svg", _extends({
27584
27761
  height: size4,
27585
27762
  width: size4,
27586
27763
  viewBox: "0 0 20 20",
@@ -27590,16 +27767,16 @@ var Svg = function Svg2(_ref3) {
27590
27767
  }, props));
27591
27768
  };
27592
27769
  var CrossIcon = function CrossIcon2(props) {
27593
- return jsx81(Svg, _extends({
27770
+ return jsx83(Svg, _extends({
27594
27771
  size: 20
27595
- }, props), jsx81("path", {
27772
+ }, props), jsx83("path", {
27596
27773
  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"
27597
27774
  }));
27598
27775
  };
27599
27776
  var DownChevron = function DownChevron2(props) {
27600
- return jsx81(Svg, _extends({
27777
+ return jsx83(Svg, _extends({
27601
27778
  size: 20
27602
- }, props), jsx81("path", {
27779
+ }, props), jsx83("path", {
27603
27780
  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"
27604
27781
  }));
27605
27782
  };
@@ -27620,18 +27797,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
27620
27797
  var dropdownIndicatorCSS = baseCSS;
27621
27798
  var DropdownIndicator = function DropdownIndicator2(props) {
27622
27799
  var children = props.children, innerProps = props.innerProps;
27623
- return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
27800
+ return jsx83("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
27624
27801
  indicator: true,
27625
27802
  "dropdown-indicator": true
27626
- }), innerProps), children || jsx81(DownChevron, null));
27803
+ }), innerProps), children || jsx83(DownChevron, null));
27627
27804
  };
27628
27805
  var clearIndicatorCSS = baseCSS;
27629
27806
  var ClearIndicator = function ClearIndicator2(props) {
27630
27807
  var children = props.children, innerProps = props.innerProps;
27631
- return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
27808
+ return jsx83("div", _extends({}, getStyleProps(props, "clearIndicator", {
27632
27809
  indicator: true,
27633
27810
  "clear-indicator": true
27634
- }), innerProps), children || jsx81(CrossIcon, null));
27811
+ }), innerProps), children || jsx83(CrossIcon, null));
27635
27812
  };
27636
27813
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
27637
27814
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -27647,7 +27824,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
27647
27824
  };
27648
27825
  var IndicatorSeparator = function IndicatorSeparator2(props) {
27649
27826
  var innerProps = props.innerProps;
27650
- return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
27827
+ return jsx83("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
27651
27828
  "indicator-separator": true
27652
27829
  })));
27653
27830
  };
@@ -27671,7 +27848,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
27671
27848
  };
27672
27849
  var LoadingDot = function LoadingDot2(_ref6) {
27673
27850
  var delay = _ref6.delay, offset4 = _ref6.offset;
27674
- return jsx81("span", {
27851
+ return jsx83("span", {
27675
27852
  css: /* @__PURE__ */ css({
27676
27853
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
27677
27854
  backgroundColor: "currentColor",
@@ -27686,20 +27863,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
27686
27863
  };
27687
27864
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
27688
27865
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
27689
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27866
+ return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27690
27867
  innerProps,
27691
27868
  isRtl,
27692
27869
  size: size4
27693
27870
  }), "loadingIndicator", {
27694
27871
  indicator: true,
27695
27872
  "loading-indicator": true
27696
- }), innerProps), jsx81(LoadingDot, {
27873
+ }), innerProps), jsx83(LoadingDot, {
27697
27874
  delay: 0,
27698
27875
  offset: isRtl
27699
- }), jsx81(LoadingDot, {
27876
+ }), jsx83(LoadingDot, {
27700
27877
  delay: 160,
27701
27878
  offset: true
27702
- }), jsx81(LoadingDot, {
27879
+ }), jsx83(LoadingDot, {
27703
27880
  delay: 320,
27704
27881
  offset: !isRtl
27705
27882
  }));
@@ -27731,7 +27908,7 @@ var css$1 = function css2(_ref3, unstyled) {
27731
27908
  };
27732
27909
  var Control = function Control2(props) {
27733
27910
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
27734
- return jsx81("div", _extends({
27911
+ return jsx83("div", _extends({
27735
27912
  ref: innerRef
27736
27913
  }, getStyleProps(props, "control", {
27737
27914
  control: true,
@@ -27753,15 +27930,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
27753
27930
  };
27754
27931
  var Group = function Group2(props) {
27755
27932
  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;
27756
- return jsx81("div", _extends({}, getStyleProps(props, "group", {
27933
+ return jsx83("div", _extends({}, getStyleProps(props, "group", {
27757
27934
  group: true
27758
- }), innerProps), jsx81(Heading, _extends({}, headingProps, {
27935
+ }), innerProps), jsx83(Heading, _extends({}, headingProps, {
27759
27936
  selectProps,
27760
27937
  theme,
27761
27938
  getStyles,
27762
27939
  getClassNames,
27763
27940
  cx
27764
- }), label), jsx81("div", null, children));
27941
+ }), label), jsx83("div", null, children));
27765
27942
  };
27766
27943
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
27767
27944
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -27783,7 +27960,7 @@ var GroupHeading = function GroupHeading2(props) {
27783
27960
  var _cleanCommonProps = cleanCommonProps(props);
27784
27961
  _cleanCommonProps.data;
27785
27962
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
27786
- return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
27963
+ return jsx83("div", _extends({}, getStyleProps(props, "groupHeading", {
27787
27964
  "group-heading": true
27788
27965
  }), innerProps));
27789
27966
  };
@@ -27835,11 +28012,11 @@ var inputStyle = function inputStyle2(isHidden) {
27835
28012
  var Input = function Input2(props) {
27836
28013
  var cx = props.cx, value = props.value;
27837
28014
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
27838
- return jsx81("div", _extends({}, getStyleProps(props, "input", {
28015
+ return jsx83("div", _extends({}, getStyleProps(props, "input", {
27839
28016
  "input-container": true
27840
28017
  }), {
27841
28018
  "data-value": value || ""
27842
- }), jsx81("input", _extends({
28019
+ }), jsx83("input", _extends({
27843
28020
  className: cx({
27844
28021
  input: true
27845
28022
  }, inputClassName),
@@ -27893,35 +28070,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
27893
28070
  };
27894
28071
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
27895
28072
  var children = _ref4.children, innerProps = _ref4.innerProps;
27896
- return jsx81("div", innerProps, children);
28073
+ return jsx83("div", innerProps, children);
27897
28074
  };
27898
28075
  var MultiValueContainer = MultiValueGeneric;
27899
28076
  var MultiValueLabel = MultiValueGeneric;
27900
28077
  function MultiValueRemove(_ref5) {
27901
28078
  var children = _ref5.children, innerProps = _ref5.innerProps;
27902
- return jsx81("div", _extends({
28079
+ return jsx83("div", _extends({
27903
28080
  role: "button"
27904
- }, innerProps), children || jsx81(CrossIcon, {
28081
+ }, innerProps), children || jsx83(CrossIcon, {
27905
28082
  size: 14
27906
28083
  }));
27907
28084
  }
27908
28085
  var MultiValue = function MultiValue2(props) {
27909
28086
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
27910
28087
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
27911
- return jsx81(Container, {
28088
+ return jsx83(Container, {
27912
28089
  data,
27913
28090
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
27914
28091
  "multi-value": true,
27915
28092
  "multi-value--is-disabled": isDisabled
27916
28093
  })), innerProps),
27917
28094
  selectProps
27918
- }, jsx81(Label, {
28095
+ }, jsx83(Label, {
27919
28096
  data,
27920
28097
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
27921
28098
  "multi-value__label": true
27922
28099
  })),
27923
28100
  selectProps
27924
- }, children), jsx81(Remove, {
28101
+ }, children), jsx83(Remove, {
27925
28102
  data,
27926
28103
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
27927
28104
  "multi-value__remove": true
@@ -27954,7 +28131,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
27954
28131
  };
27955
28132
  var Option = function Option2(props) {
27956
28133
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
27957
- return jsx81("div", _extends({}, getStyleProps(props, "option", {
28134
+ return jsx83("div", _extends({}, getStyleProps(props, "option", {
27958
28135
  option: true,
27959
28136
  "option--is-disabled": isDisabled,
27960
28137
  "option--is-focused": isFocused,
@@ -27978,7 +28155,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
27978
28155
  };
27979
28156
  var Placeholder = function Placeholder2(props) {
27980
28157
  var children = props.children, innerProps = props.innerProps;
27981
- return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28158
+ return jsx83("div", _extends({}, getStyleProps(props, "placeholder", {
27982
28159
  placeholder: true
27983
28160
  }), innerProps), children);
27984
28161
  };
@@ -28000,7 +28177,7 @@ var css3 = function css4(_ref3, unstyled) {
28000
28177
  };
28001
28178
  var SingleValue = function SingleValue2(props) {
28002
28179
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28003
- return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28180
+ return jsx83("div", _extends({}, getStyleProps(props, "singleValue", {
28004
28181
  "single-value": true,
28005
28182
  "single-value--is-disabled": isDisabled
28006
28183
  }), innerProps), children);
@@ -28102,7 +28279,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28102
28279
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28103
28280
  };
28104
28281
  var A11yText = function A11yText2(props) {
28105
- return jsx81("span", _extends({
28282
+ return jsx83("span", _extends({
28106
28283
  css: _ref
28107
28284
  }, props));
28108
28285
  };
@@ -28237,18 +28414,18 @@ var LiveRegion = function LiveRegion2(props) {
28237
28414
  }
28238
28415
  return guidanceMsg;
28239
28416
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28240
- var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
28417
+ var ScreenReaderText = jsx83(Fragment23, null, jsx83("span", {
28241
28418
  id: "aria-selection"
28242
- }, ariaSelected), jsx81("span", {
28419
+ }, ariaSelected), jsx83("span", {
28243
28420
  id: "aria-focused"
28244
- }, ariaFocused), jsx81("span", {
28421
+ }, ariaFocused), jsx83("span", {
28245
28422
  id: "aria-results"
28246
- }, ariaResults), jsx81("span", {
28423
+ }, ariaResults), jsx83("span", {
28247
28424
  id: "aria-guidance"
28248
28425
  }, ariaGuidance));
28249
- return jsx81(Fragment22, null, jsx81(A11yText$1, {
28426
+ return jsx83(Fragment23, null, jsx83(A11yText$1, {
28250
28427
  id
28251
- }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
28428
+ }, isInitialFocus && ScreenReaderText), jsx83(A11yText$1, {
28252
28429
  "aria-live": ariaLive,
28253
28430
  "aria-atomic": "false",
28254
28431
  "aria-relevant": "additions text",
@@ -28561,7 +28738,7 @@ var _excluded4 = ["innerRef"];
28561
28738
  function DummyInput(_ref3) {
28562
28739
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
28563
28740
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
28564
- return jsx81("input", _extends({
28741
+ return jsx83("input", _extends({
28565
28742
  ref: innerRef
28566
28743
  }, filteredProps, {
28567
28744
  css: /* @__PURE__ */ css({
@@ -28656,7 +28833,7 @@ function useScrollCapture(_ref3) {
28656
28833
  el.removeEventListener("touchstart", onTouchStart, false);
28657
28834
  el.removeEventListener("touchmove", onTouchMove, false);
28658
28835
  }, [onTouchMove, onTouchStart, onWheel]);
28659
- useEffect16(function() {
28836
+ useEffect17(function() {
28660
28837
  if (!isEnabled) return;
28661
28838
  var element = scrollTarget.current;
28662
28839
  startListening(element);
@@ -28759,7 +28936,7 @@ function useScrollLock(_ref3) {
28759
28936
  }
28760
28937
  }
28761
28938
  }, [accountForScrollbars]);
28762
- useEffect16(function() {
28939
+ useEffect17(function() {
28763
28940
  if (!isEnabled) return;
28764
28941
  var element = scrollTarget.current;
28765
28942
  addScrollLock(element);
@@ -28803,7 +28980,7 @@ function ScrollManager(_ref3) {
28803
28980
  setScrollCaptureTarget(element);
28804
28981
  setScrollLockTarget(element);
28805
28982
  };
28806
- return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
28983
+ return jsx83(Fragment23, null, lockEnabled && jsx83("div", {
28807
28984
  onClick: blurSelectInput,
28808
28985
  css: _ref2$1
28809
28986
  }), children(targetRef));
@@ -28822,7 +28999,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
28822
28999
  };
28823
29000
  var RequiredInput = function RequiredInput2(_ref3) {
28824
29001
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
28825
- return jsx81("input", {
29002
+ return jsx83("input", {
28826
29003
  required: true,
28827
29004
  name: name2,
28828
29005
  tabIndex: -1,
@@ -30412,7 +30589,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30412
30589
 
30413
30590
  // src/widgets/basic/date-field/date.tsx
30414
30591
  var import_moment2 = __toESM(require_moment());
30415
- import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
30592
+ import { Fragment as Fragment24, jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
30416
30593
  var DateField = (props) => {
30417
30594
  const {
30418
30595
  name: name2,
@@ -30440,8 +30617,8 @@ var DateField = (props) => {
30440
30617
  } = props;
30441
30618
  const { t: t3 } = useI18n();
30442
30619
  const InputDateCustom = forwardRef6(
30443
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
30444
- /* @__PURE__ */ jsx83(
30620
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs55("label", { className: `flex ${className}`, children: [
30621
+ /* @__PURE__ */ jsx85(
30445
30622
  "input",
30446
30623
  {
30447
30624
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -30455,13 +30632,13 @@ var DateField = (props) => {
30455
30632
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
30456
30633
  }
30457
30634
  ),
30458
- isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
30635
+ isForm2 && /* @__PURE__ */ jsx85(CalendarIcon, {})
30459
30636
  ] })
30460
30637
  );
30461
30638
  if (!isForm && !isEditTable) {
30462
- return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30639
+ return /* @__PURE__ */ jsx85("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30463
30640
  } else {
30464
- return /* @__PURE__ */ jsx83(
30641
+ return /* @__PURE__ */ jsx85(
30465
30642
  Controller,
30466
30643
  {
30467
30644
  name: name2 || "",
@@ -30477,14 +30654,14 @@ var DateField = (props) => {
30477
30654
  },
30478
30655
  render: ({ field, fieldState: { error: error2 } }) => {
30479
30656
  const { setError, clearErrors } = methods;
30480
- useEffect17(() => {
30657
+ useEffect18(() => {
30481
30658
  if (value) {
30482
30659
  clearErrors(name2);
30483
30660
  }
30484
30661
  }, [value, clearErrors, name2]);
30485
30662
  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;
30486
- return /* @__PURE__ */ jsxs53(Fragment23, { children: [
30487
- /* @__PURE__ */ jsx83(
30663
+ return /* @__PURE__ */ jsxs55(Fragment24, { children: [
30664
+ /* @__PURE__ */ jsx85(
30488
30665
  DatePicker,
30489
30666
  {
30490
30667
  selected: selectedDate,
@@ -30532,7 +30709,7 @@ var DateField = (props) => {
30532
30709
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
30533
30710
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
30534
30711
  showTimeInput: showTime,
30535
- customInput: /* @__PURE__ */ jsx83(
30712
+ customInput: /* @__PURE__ */ jsx85(
30536
30713
  InputDateCustom,
30537
30714
  {
30538
30715
  isForm,
@@ -30550,7 +30727,7 @@ var DateField = (props) => {
30550
30727
  increaseMonth,
30551
30728
  prevMonthButtonDisabled,
30552
30729
  nextMonthButtonDisabled
30553
- }) => /* @__PURE__ */ jsxs53(
30730
+ }) => /* @__PURE__ */ jsxs55(
30554
30731
  "div",
30555
30732
  {
30556
30733
  style: {
@@ -30559,7 +30736,7 @@ var DateField = (props) => {
30559
30736
  justifyContent: "center"
30560
30737
  },
30561
30738
  children: [
30562
- /* @__PURE__ */ jsx83(
30739
+ /* @__PURE__ */ jsx85(
30563
30740
  "button",
30564
30741
  {
30565
30742
  onClick: decreaseMonth,
@@ -30567,7 +30744,7 @@ var DateField = (props) => {
30567
30744
  children: "<"
30568
30745
  }
30569
30746
  ),
30570
- /* @__PURE__ */ jsx83(
30747
+ /* @__PURE__ */ jsx85(
30571
30748
  StateManagedSelect$1,
30572
30749
  {
30573
30750
  classNames: {
@@ -30593,7 +30770,7 @@ var DateField = (props) => {
30593
30770
  autoFocus: true
30594
30771
  }
30595
30772
  ),
30596
- /* @__PURE__ */ jsx83(
30773
+ /* @__PURE__ */ jsx85(
30597
30774
  StateManagedSelect$1,
30598
30775
  {
30599
30776
  classNames: {
@@ -30621,7 +30798,7 @@ var DateField = (props) => {
30621
30798
  }))
30622
30799
  }
30623
30800
  ),
30624
- /* @__PURE__ */ jsx83(
30801
+ /* @__PURE__ */ jsx85(
30625
30802
  "button",
30626
30803
  {
30627
30804
  onClick: increaseMonth,
@@ -30634,7 +30811,7 @@ var DateField = (props) => {
30634
30811
  )
30635
30812
  }
30636
30813
  ),
30637
- !isEditTable && error2 && /* @__PURE__ */ jsx83("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
30814
+ !isEditTable && error2 && /* @__PURE__ */ jsx85("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
30638
30815
  ] });
30639
30816
  }
30640
30817
  }
@@ -30643,26 +30820,26 @@ var DateField = (props) => {
30643
30820
  };
30644
30821
 
30645
30822
  // src/widgets/basic/download-binary-field/download-binary.tsx
30646
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
30823
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
30647
30824
  var DownLoadBinaryField = (props) => {
30648
30825
  const { handleFileDownload } = props;
30649
30826
  const { t: t3 } = useI18n();
30650
- return /* @__PURE__ */ jsxs54(
30827
+ return /* @__PURE__ */ jsxs56(
30651
30828
  "button",
30652
30829
  {
30653
30830
  type: "button",
30654
30831
  onClick: handleFileDownload,
30655
30832
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
30656
30833
  children: [
30657
- /* @__PURE__ */ jsx84(DownloadIcon, {}),
30658
- /* @__PURE__ */ jsx84("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
30834
+ /* @__PURE__ */ jsx86(DownloadIcon, {}),
30835
+ /* @__PURE__ */ jsx86("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
30659
30836
  ]
30660
30837
  }
30661
30838
  );
30662
30839
  };
30663
30840
 
30664
30841
  // src/widgets/basic/download-file-field/download-file.tsx
30665
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
30842
+ import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
30666
30843
  var DownloadFileField = (props) => {
30667
30844
  const {
30668
30845
  readonly,
@@ -30674,15 +30851,15 @@ var DownloadFileField = (props) => {
30674
30851
  handleFileChange,
30675
30852
  handleFileDownload
30676
30853
  } = props;
30677
- return /* @__PURE__ */ jsxs55("div", { className: "", children: [
30678
- /* @__PURE__ */ jsxs55(
30854
+ return /* @__PURE__ */ jsxs57("div", { className: "", children: [
30855
+ /* @__PURE__ */ jsxs57(
30679
30856
  "label",
30680
30857
  {
30681
30858
  htmlFor: inputId,
30682
30859
  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",
30683
30860
  children: [
30684
- 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" }),
30685
- /* @__PURE__ */ jsx85(
30861
+ file ? /* @__PURE__ */ jsx87("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx87("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx87("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
30862
+ /* @__PURE__ */ jsx87(
30686
30863
  "input",
30687
30864
  {
30688
30865
  id: inputId,
@@ -30696,7 +30873,7 @@ var DownloadFileField = (props) => {
30696
30873
  ]
30697
30874
  }
30698
30875
  ),
30699
- file && /* @__PURE__ */ jsx85(
30876
+ file && /* @__PURE__ */ jsx87(
30700
30877
  "button",
30701
30878
  {
30702
30879
  onClick: handleFileDownload,
@@ -30709,8 +30886,8 @@ var DownloadFileField = (props) => {
30709
30886
  };
30710
30887
 
30711
30888
  // src/widgets/basic/dropdown-field/dropdown.tsx
30712
- import { useState as useState16 } from "react";
30713
- import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
30889
+ import { useState as useState17 } from "react";
30890
+ import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
30714
30891
  var DropdownField = (props) => {
30715
30892
  const {
30716
30893
  options: options2,
@@ -30722,32 +30899,32 @@ var DropdownField = (props) => {
30722
30899
  dropdownClassName = "",
30723
30900
  useClickOutside: useClickOutside2
30724
30901
  } = props;
30725
- const [open, setOpen] = useState16(false);
30902
+ const [open, setOpen] = useState17(false);
30726
30903
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
30727
- return /* @__PURE__ */ jsxs56(
30904
+ return /* @__PURE__ */ jsxs58(
30728
30905
  "div",
30729
30906
  {
30730
30907
  ref: dropdownRef,
30731
30908
  className: `relative ${className}`,
30732
30909
  onClick: () => setOpen(!open),
30733
30910
  children: [
30734
- /* @__PURE__ */ jsxs56(
30911
+ /* @__PURE__ */ jsxs58(
30735
30912
  "div",
30736
30913
  {
30737
30914
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
30738
30915
  children: [
30739
30916
  selectedValue?.icon,
30740
- /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
30741
- /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
30917
+ /* @__PURE__ */ jsx88("span", { children: selectedValue?.label }),
30918
+ /* @__PURE__ */ jsx88(ChevronBottomIcon, { className: "h-4 w-4" })
30742
30919
  ]
30743
30920
  }
30744
30921
  ),
30745
- open && /* @__PURE__ */ jsx86(
30922
+ open && /* @__PURE__ */ jsx88(
30746
30923
  "div",
30747
30924
  {
30748
30925
  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}`,
30749
30926
  onClick: (e3) => e3.stopPropagation(),
30750
- children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
30927
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx88(
30751
30928
  "div",
30752
30929
  {
30753
30930
  onClick: () => {
@@ -30767,7 +30944,7 @@ var DropdownField = (props) => {
30767
30944
  };
30768
30945
 
30769
30946
  // src/widgets/basic/fee-field/fee.tsx
30770
- import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
30947
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
30771
30948
  var FeeField = (props) => {
30772
30949
  const { value, formValues } = props;
30773
30950
  const { t: t3 } = useI18n();
@@ -30778,27 +30955,27 @@ var FeeField = (props) => {
30778
30955
  )
30779
30956
  ) + " VND";
30780
30957
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
30781
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
30958
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
30782
30959
  value?.subtotals?.map((sub) => {
30783
30960
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
30784
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
30785
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
30786
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
30961
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
30962
+ /* @__PURE__ */ jsxs59("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
30963
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
30787
30964
  sub?.name,
30788
30965
  ":"
30789
30966
  ] }),
30790
- /* @__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" })
30967
+ /* @__PURE__ */ jsx89("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
30791
30968
  ] }),
30792
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
30969
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs59(
30793
30970
  "div",
30794
30971
  {
30795
30972
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
30796
30973
  children: [
30797
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
30974
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
30798
30975
  group?.group_name,
30799
30976
  ":"
30800
30977
  ] }),
30801
- /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
30978
+ /* @__PURE__ */ jsx89("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
30802
30979
  ]
30803
30980
  },
30804
30981
  `tax_groups_${group?.id}`
@@ -30806,33 +30983,33 @@ var FeeField = (props) => {
30806
30983
  ] });
30807
30984
  }
30808
30985
  }),
30809
- /* @__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: [
30810
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
30986
+ /* @__PURE__ */ jsxs59("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: [
30987
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
30811
30988
  t3("total"),
30812
30989
  ":"
30813
30990
  ] }),
30814
- /* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
30991
+ /* @__PURE__ */ jsx89("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
30815
30992
  ] }),
30816
- /* @__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: [
30817
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
30993
+ /* @__PURE__ */ jsxs59("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: [
30994
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
30818
30995
  t3("paid_amount"),
30819
30996
  ":"
30820
30997
  ] }),
30821
- /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
30998
+ /* @__PURE__ */ jsx89("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
30822
30999
  ] }),
30823
- /* @__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: [
30824
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31000
+ /* @__PURE__ */ jsxs59("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: [
31001
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
30825
31002
  t3("remanining_amount"),
30826
31003
  ":"
30827
31004
  ] }),
30828
- /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31005
+ /* @__PURE__ */ jsx89("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
30829
31006
  ] })
30830
31007
  ] });
30831
31008
  };
30832
31009
 
30833
31010
  // src/widgets/basic/file-upload-field/file-upload.tsx
30834
- import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
30835
- import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31011
+ import { useEffect as useEffect19, useRef as useRef15, useState as useState18 } from "react";
31012
+ import { jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
30836
31013
  var RenderFile = ({
30837
31014
  file,
30838
31015
  onDelete,
@@ -30842,16 +31019,16 @@ var RenderFile = ({
30842
31019
  readAs: "all"
30843
31020
  });
30844
31021
  const fileTypeIcon = {
30845
- "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
30846
- "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
30847
- "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
30848
- "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
30849
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
31022
+ "application/pdf": /* @__PURE__ */ jsx90(PdfIcon, {}),
31023
+ "application/zip": /* @__PURE__ */ jsx90(ZipIcon, {}),
31024
+ "application/x-zip-compressed": /* @__PURE__ */ jsx90(ZipIcon, {}),
31025
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx90(ExcelIcon, {}),
31026
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx90(ExcelIcon, {})
30850
31027
  };
30851
- return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
30852
- /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
30853
- /* @__PURE__ */ jsxs58("div", { children: [
30854
- /* @__PURE__ */ jsx88(
31028
+ return /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31029
+ /* @__PURE__ */ jsx90("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31030
+ /* @__PURE__ */ jsxs60("div", { children: [
31031
+ /* @__PURE__ */ jsx90(
30855
31032
  "div",
30856
31033
  {
30857
31034
  style: {
@@ -30861,20 +31038,20 @@ var RenderFile = ({
30861
31038
  children: file?.name || file?.display_name || info?.name
30862
31039
  }
30863
31040
  ),
30864
- /* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31041
+ /* @__PURE__ */ jsx90("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
30865
31042
  ] }),
30866
- /* @__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: [
30867
- /* @__PURE__ */ jsx88(
31043
+ /* @__PURE__ */ jsxs60("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: [
31044
+ /* @__PURE__ */ jsx90(
30868
31045
  "span",
30869
31046
  {
30870
31047
  onClick: () => onDownload && onDownload(
30871
31048
  file?.data,
30872
31049
  file?.name || file?.display_name || info?.name
30873
31050
  ),
30874
- children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31051
+ children: /* @__PURE__ */ jsx90(DownloadIcon, {})
30875
31052
  }
30876
31053
  ),
30877
- /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31054
+ /* @__PURE__ */ jsx90("span", { onClick: onDelete, children: /* @__PURE__ */ jsx90(DeleteIconDanger, {}) })
30878
31055
  ] })
30879
31056
  ] });
30880
31057
  };
@@ -30897,9 +31074,9 @@ var FileUploadField = (props) => {
30897
31074
  } = props;
30898
31075
  const { t: t3 } = useI18n();
30899
31076
  const fileInputRef = useRef15(null);
30900
- const [selectedFiles, setSelectedFiles] = useState17([]);
30901
- const [uploadError, setUploadError] = useState17();
30902
- useEffect18(() => {
31077
+ const [selectedFiles, setSelectedFiles] = useState18([]);
31078
+ const [uploadError, setUploadError] = useState18();
31079
+ useEffect19(() => {
30903
31080
  if (selectedFiles?.length === 0 && value) {
30904
31081
  setSelectedFiles([
30905
31082
  {
@@ -30908,7 +31085,7 @@ var FileUploadField = (props) => {
30908
31085
  ]);
30909
31086
  }
30910
31087
  }, [value]);
30911
- return /* @__PURE__ */ jsx88(
31088
+ return /* @__PURE__ */ jsx90(
30912
31089
  Controller,
30913
31090
  {
30914
31091
  name: name2 || "",
@@ -30917,7 +31094,7 @@ var FileUploadField = (props) => {
30917
31094
  required: required ? { value: true, message: `${string} ${t3("must_required")}` } : false
30918
31095
  },
30919
31096
  render: ({ field: { onChange: onChange2 }, fieldState: { error: error2 } }) => {
30920
- useEffect18(() => {
31097
+ useEffect19(() => {
30921
31098
  let data = widget === "many2many_binary" ? selectedFiles : selectedFiles?.[0]?.data;
30922
31099
  if (widget !== "many2many_binary" && data && isBase64File(data)) {
30923
31100
  data = data.split(",")[1];
@@ -30933,8 +31110,8 @@ var FileUploadField = (props) => {
30933
31110
  );
30934
31111
  }
30935
31112
  }, [selectedFiles]);
30936
- return /* @__PURE__ */ jsxs58("div", { children: [
30937
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
31113
+ return /* @__PURE__ */ jsxs60("div", { children: [
31114
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx90(
30938
31115
  RenderFile,
30939
31116
  {
30940
31117
  file: fileItem,
@@ -30949,8 +31126,8 @@ var FileUploadField = (props) => {
30949
31126
  }
30950
31127
  }
30951
31128
  )),
30952
- uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
30953
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx88(
31129
+ uploadError && /* @__PURE__ */ jsx90("div", { className: "text-[#de4747]", children: uploadError }),
31130
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx90(
30954
31131
  ButtonSelectFiles,
30955
31132
  {
30956
31133
  fileInputRef,
@@ -30965,7 +31142,7 @@ var FileUploadField = (props) => {
30965
31142
  useUploadFile
30966
31143
  }
30967
31144
  ),
30968
- error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31145
+ error2 && !isEditTable && /* @__PURE__ */ jsx90("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
30969
31146
  ] });
30970
31147
  }
30971
31148
  }
@@ -30973,8 +31150,8 @@ var FileUploadField = (props) => {
30973
31150
  };
30974
31151
 
30975
31152
  // src/widgets/basic/float-field/float.tsx
30976
- import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
30977
- import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31153
+ import { useEffect as useEffect20, useRef as useRef16, useState as useState19 } from "react";
31154
+ import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
30978
31155
  var FloatField = (props) => {
30979
31156
  const {
30980
31157
  name: name2,
@@ -30992,9 +31169,9 @@ var FloatField = (props) => {
30992
31169
  } = props;
30993
31170
  const { t: t3 } = useI18n();
30994
31171
  if (!isForm && !isEditTable) {
30995
- return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31172
+ return /* @__PURE__ */ jsx91("span", { children: formatFloatNumber(propValue ?? defaultValue) });
30996
31173
  }
30997
- return /* @__PURE__ */ jsx89(
31174
+ return /* @__PURE__ */ jsx91(
30998
31175
  Controller,
30999
31176
  {
31000
31177
  name: name2 ?? "",
@@ -31005,10 +31182,10 @@ var FloatField = (props) => {
31005
31182
  },
31006
31183
  render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
31007
31184
  const { setError, clearErrors } = methods;
31008
- const [inputValue, setInputValue] = useState18(
31185
+ const [inputValue, setInputValue] = useState19(
31009
31186
  value !== void 0 && value !== null ? formatFloatNumber(value) : ""
31010
31187
  );
31011
- useEffect19(() => {
31188
+ useEffect20(() => {
31012
31189
  if (propValue !== void 0 && propValue !== null && propValue !== parseFloat(inputValue?.replace(/,/g, ""))) {
31013
31190
  setInputValue(formatFloatNumber(propValue));
31014
31191
  clearErrors(name2);
@@ -31099,8 +31276,8 @@ var FloatField = (props) => {
31099
31276
  }
31100
31277
  isDirtyRef.current = false;
31101
31278
  };
31102
- return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31103
- /* @__PURE__ */ jsx89(
31279
+ return /* @__PURE__ */ jsxs61(Fragment26, { children: [
31280
+ /* @__PURE__ */ jsx91(
31104
31281
  "input",
31105
31282
  {
31106
31283
  ref: inputRef,
@@ -31120,7 +31297,7 @@ var FloatField = (props) => {
31120
31297
  `
31121
31298
  }
31122
31299
  ),
31123
- error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31300
+ error2 && !isEditTable && /* @__PURE__ */ jsx91("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31124
31301
  ] });
31125
31302
  }
31126
31303
  }
@@ -31128,8 +31305,8 @@ var FloatField = (props) => {
31128
31305
  };
31129
31306
 
31130
31307
  // src/widgets/basic/float-time-field/float-time.tsx
31131
- import { useState as useState19 } from "react";
31132
- import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
31308
+ import { useState as useState20 } from "react";
31309
+ import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs62 } from "react/jsx-runtime";
31133
31310
  var FloatTimeField = (props) => {
31134
31311
  const {
31135
31312
  name: name2,
@@ -31145,9 +31322,9 @@ var FloatTimeField = (props) => {
31145
31322
  const { t: t3 } = useI18n();
31146
31323
  if (!isForm) {
31147
31324
  const formatValue = value ?? 0;
31148
- return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
31325
+ return /* @__PURE__ */ jsx92("span", { children: convertFloatToTime(formatValue) });
31149
31326
  }
31150
- return /* @__PURE__ */ jsx90(
31327
+ return /* @__PURE__ */ jsx92(
31151
31328
  Controller,
31152
31329
  {
31153
31330
  name: name2 ?? "",
@@ -31160,11 +31337,11 @@ var FloatTimeField = (props) => {
31160
31337
  field: { onChange: fieldOnChange, onBlur, value: value2 },
31161
31338
  fieldState: { error: error2, isDirty }
31162
31339
  }) => {
31163
- const [input, setInput] = useState19(
31340
+ const [input, setInput] = useState20(
31164
31341
  convertFloatToTime(value2 ?? defaultValue)
31165
31342
  );
31166
- const [formattedTime, setFormattedTime] = useState19("");
31167
- const [errors, setErrors] = useState19("");
31343
+ const [formattedTime, setFormattedTime] = useState20("");
31344
+ const [errors, setErrors] = useState20("");
31168
31345
  const handleInputChange = (e3) => {
31169
31346
  const raw = e3.target.value.replace(/[^\d:]/g, "");
31170
31347
  setInput(raw);
@@ -31209,8 +31386,8 @@ var FloatTimeField = (props) => {
31209
31386
  }
31210
31387
  onBlur();
31211
31388
  };
31212
- return /* @__PURE__ */ jsxs60(Fragment26, { children: [
31213
- /* @__PURE__ */ jsx90(
31389
+ return /* @__PURE__ */ jsxs62(Fragment27, { children: [
31390
+ /* @__PURE__ */ jsx92(
31214
31391
  "input",
31215
31392
  {
31216
31393
  type: "text",
@@ -31242,7 +31419,7 @@ var FloatTimeField = (props) => {
31242
31419
  readOnly: readonly
31243
31420
  }
31244
31421
  ),
31245
- (error2 || errors) && /* @__PURE__ */ jsx90("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31422
+ (error2 || errors) && /* @__PURE__ */ jsx92("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31246
31423
  ] });
31247
31424
  }
31248
31425
  }
@@ -31250,8 +31427,8 @@ var FloatTimeField = (props) => {
31250
31427
  };
31251
31428
 
31252
31429
  // src/widgets/basic/html-field/html.tsx
31253
- import { useEffect as useEffect20, useRef as useRef17 } from "react";
31254
- import { jsx as jsx91 } from "react/jsx-runtime";
31430
+ import { useEffect as useEffect21, useRef as useRef17 } from "react";
31431
+ import { jsx as jsx93 } from "react/jsx-runtime";
31255
31432
  var HtmlField = (props) => {
31256
31433
  const {
31257
31434
  name: name2,
@@ -31265,16 +31442,16 @@ var HtmlField = (props) => {
31265
31442
  } = props;
31266
31443
  const divRef = useRef17(null);
31267
31444
  if (!isForm && !isEditTable) {
31268
- return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31445
+ return /* @__PURE__ */ jsx93("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31269
31446
  }
31270
- return /* @__PURE__ */ jsx91(
31447
+ return /* @__PURE__ */ jsx93(
31271
31448
  Controller,
31272
31449
  {
31273
31450
  name: name2 ?? "",
31274
31451
  control: methods?.control,
31275
31452
  defaultValue,
31276
31453
  render: ({ field: { onChange: fieldOnChange, value: value2 } }) => {
31277
- useEffect20(() => {
31454
+ useEffect21(() => {
31278
31455
  if (divRef.current && divRef.current.innerHTML !== value2) {
31279
31456
  divRef.current.innerHTML = value2 || "";
31280
31457
  }
@@ -31286,7 +31463,7 @@ var HtmlField = (props) => {
31286
31463
  onChange2(newValue, "");
31287
31464
  }
31288
31465
  };
31289
- return /* @__PURE__ */ jsx91(
31466
+ return /* @__PURE__ */ jsx93(
31290
31467
  "div",
31291
31468
  {
31292
31469
  ref: divRef,
@@ -31305,28 +31482,28 @@ var HtmlField = (props) => {
31305
31482
  };
31306
31483
 
31307
31484
  // src/widgets/basic/image-field/image.tsx
31308
- import { jsx as jsx92 } from "react/jsx-runtime";
31485
+ import { jsx as jsx94 } from "react/jsx-runtime";
31309
31486
  var ImageField = (props) => {
31310
31487
  const { value, type, name: name2, baseURL } = props;
31311
31488
  if (!value) return null;
31312
31489
  if (type === "url") {
31313
- return /* @__PURE__ */ jsx92("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31490
+ return /* @__PURE__ */ jsx94("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31314
31491
  }
31315
- return /* @__PURE__ */ jsx92("div", { id: "qr-code", children: /* @__PURE__ */ jsx92("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31492
+ return /* @__PURE__ */ jsx94("div", { id: "qr-code", children: /* @__PURE__ */ jsx94("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31316
31493
  };
31317
31494
 
31318
31495
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31319
- import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
31496
+ import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
31320
31497
 
31321
31498
  // src/widgets/basic/information-field/information.tsx
31322
- import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31499
+ import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
31323
31500
  var InfomationField = (props) => {
31324
31501
  const { value, isForm = false, showName = true, stringToColor } = props;
31325
31502
  if (!value || Array.isArray(value) && value.length === 0) {
31326
- return /* @__PURE__ */ jsx93(Fragment27, {});
31503
+ return /* @__PURE__ */ jsx95(Fragment28, {});
31327
31504
  }
31328
31505
  const inforValues = Array.isArray(value) ? value : [value];
31329
- 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(
31506
+ return /* @__PURE__ */ jsx95("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx95(
31330
31507
  AvatarField,
31331
31508
  {
31332
31509
  id: item.id,
@@ -31335,8 +31512,8 @@ var InfomationField = (props) => {
31335
31512
  stringToColor
31336
31513
  },
31337
31514
  item.id
31338
- )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
31339
- /* @__PURE__ */ jsx93(
31515
+ )) : /* @__PURE__ */ jsxs63("div", { className: "flex gap-2 items-center w-max", children: [
31516
+ /* @__PURE__ */ jsx95(
31340
31517
  AvatarField,
31341
31518
  {
31342
31519
  avatarSrc: inforValues[0].image_256,
@@ -31346,12 +31523,12 @@ var InfomationField = (props) => {
31346
31523
  stringToColor
31347
31524
  }
31348
31525
  ),
31349
- showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
31526
+ showName && /* @__PURE__ */ jsx95("span", { className: "capitalize", children: inforValues[0].display_name })
31350
31527
  ] }) });
31351
31528
  };
31352
31529
 
31353
31530
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31354
- import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31531
+ import { jsx as jsx96, jsxs as jsxs64 } from "react/jsx-runtime";
31355
31532
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31356
31533
  const { selectProps, data, menuList } = props;
31357
31534
  const { relation } = selectProps;
@@ -31360,8 +31537,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31360
31537
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31361
31538
  )
31362
31539
  )?.[0]?.action?.id;
31363
- return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31364
- /* @__PURE__ */ jsx94(
31540
+ return /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31541
+ /* @__PURE__ */ jsx96(
31365
31542
  AvatarField,
31366
31543
  {
31367
31544
  id: data?.id,
@@ -31373,8 +31550,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31373
31550
  stringToColor
31374
31551
  }
31375
31552
  ),
31376
- /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31377
- /* @__PURE__ */ jsx94(
31553
+ /* @__PURE__ */ jsx96("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31554
+ /* @__PURE__ */ jsx96(
31378
31555
  "span",
31379
31556
  {
31380
31557
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -31382,7 +31559,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31382
31559
  e3.stopPropagation();
31383
31560
  props.removeProps.onClick();
31384
31561
  },
31385
- children: /* @__PURE__ */ jsx94(CloseIcon, {})
31562
+ children: /* @__PURE__ */ jsx96(CloseIcon, {})
31386
31563
  }
31387
31564
  )
31388
31565
  ] });
@@ -31392,9 +31569,9 @@ var CustomMenuList = (props) => {
31392
31569
  const { setIsShowModalMany2Many, searchable } = selectProps;
31393
31570
  const { t: t3 } = useI18n();
31394
31571
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
31395
- return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
31572
+ return /* @__PURE__ */ jsxs64(components.MenuList, { ...props, className: "z-[99]", children: [
31396
31573
  limitedChildren,
31397
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
31574
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs64(
31398
31575
  "button",
31399
31576
  {
31400
31577
  type: "button",
@@ -31439,7 +31616,7 @@ var Many2ManyTagField = (props) => {
31439
31616
  value: item.id,
31440
31617
  label: item.name ?? item.display_name
31441
31618
  })) : [];
31442
- return /* @__PURE__ */ jsx94(
31619
+ return /* @__PURE__ */ jsx96(
31443
31620
  InfomationField,
31444
31621
  {
31445
31622
  value: optionValue || null,
@@ -31448,7 +31625,7 @@ var Many2ManyTagField = (props) => {
31448
31625
  }
31449
31626
  );
31450
31627
  }
31451
- return /* @__PURE__ */ jsx94(
31628
+ return /* @__PURE__ */ jsx96(
31452
31629
  Controller,
31453
31630
  {
31454
31631
  name: name2 ?? "",
@@ -31458,7 +31635,7 @@ var Many2ManyTagField = (props) => {
31458
31635
  },
31459
31636
  render: ({ field, fieldState: { error: error2 } }) => {
31460
31637
  const { clearErrors } = methods;
31461
- useEffect21(() => {
31638
+ useEffect22(() => {
31462
31639
  if (field.value) {
31463
31640
  clearErrors(name2);
31464
31641
  }
@@ -31484,8 +31661,8 @@ var Many2ManyTagField = (props) => {
31484
31661
  onChange2?.(name2 ?? "", newValue);
31485
31662
  clearErrors(name2);
31486
31663
  };
31487
- return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
31488
- /* @__PURE__ */ jsx94(
31664
+ return /* @__PURE__ */ jsxs64("div", { className: "group h-full overflow-y-auto", children: [
31665
+ /* @__PURE__ */ jsx96(
31489
31666
  StateManagedSelect$1,
31490
31667
  {
31491
31668
  options: options2,
@@ -31563,7 +31740,7 @@ var Many2ManyTagField = (props) => {
31563
31740
  })
31564
31741
  },
31565
31742
  components: isUser ? {
31566
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
31743
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx96(
31567
31744
  CustomMultiValue,
31568
31745
  {
31569
31746
  ...multiValueProps,
@@ -31572,7 +31749,7 @@ var Many2ManyTagField = (props) => {
31572
31749
  ),
31573
31750
  IndicatorSeparator: () => null
31574
31751
  } : {
31575
- MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
31752
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx96(
31576
31753
  CustomMenuList,
31577
31754
  {
31578
31755
  ...menuListProps,
@@ -31583,13 +31760,13 @@ var Many2ManyTagField = (props) => {
31583
31760
  }
31584
31761
  ),
31585
31762
  IndicatorSeparator: () => null,
31586
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
31587
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.ClearIndicator, { ...props2 })
31763
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx96(components.DropdownIndicator, { ...props2 }),
31764
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx96(components.ClearIndicator, { ...props2 })
31588
31765
  },
31589
31766
  required: !invisible && required
31590
31767
  }
31591
31768
  ),
31592
- !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31769
+ !isEditTable && error2 && /* @__PURE__ */ jsx96("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31593
31770
  ] });
31594
31771
  }
31595
31772
  }
@@ -31597,8 +31774,8 @@ var Many2ManyTagField = (props) => {
31597
31774
  };
31598
31775
 
31599
31776
  // src/widgets/basic/monetary-field/monetary.tsx
31600
- import { useEffect as useEffect22 } from "react";
31601
- import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
31777
+ import { useEffect as useEffect23 } from "react";
31778
+ import { Fragment as Fragment29, jsx as jsx97, jsxs as jsxs65 } from "react/jsx-runtime";
31602
31779
  var MonetaryField = (props) => {
31603
31780
  const { t: t3 } = useI18n();
31604
31781
  const {
@@ -31618,26 +31795,26 @@ var MonetaryField = (props) => {
31618
31795
  isEditTable
31619
31796
  } = props;
31620
31797
  if (isForm && name2 === "amount_residual") {
31621
- return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
31622
- /* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
31798
+ return /* @__PURE__ */ jsxs65("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
31799
+ /* @__PURE__ */ jsxs65("span", { className: "font-semibold", children: [
31623
31800
  string,
31624
31801
  ":"
31625
31802
  ] }),
31626
- /* @__PURE__ */ jsx95("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
31803
+ /* @__PURE__ */ jsx97("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
31627
31804
  ] });
31628
31805
  }
31629
31806
  if (!isForm) {
31630
31807
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
31631
31808
  if (widget === "monetary" && !formValues?.currency_id) {
31632
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
31809
+ return /* @__PURE__ */ jsx97("span", { children: `${formatNumberOnly(
31633
31810
  parseFloat(String(value ?? defaultValue))
31634
31811
  )} VND` });
31635
31812
  }
31636
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
31813
+ return /* @__PURE__ */ jsx97("span", { children: `${formatNumberOnly(
31637
31814
  parseFloat(value ?? defaultValue)
31638
31815
  )} ${currencySymbol}` });
31639
31816
  }
31640
- return /* @__PURE__ */ jsx95(
31817
+ return /* @__PURE__ */ jsx97(
31641
31818
  Controller,
31642
31819
  {
31643
31820
  name: name2 ?? "",
@@ -31651,13 +31828,13 @@ var MonetaryField = (props) => {
31651
31828
  fieldState: { error: error2 }
31652
31829
  }) => {
31653
31830
  const { setError, clearErrors } = methods;
31654
- useEffect22(() => {
31831
+ useEffect23(() => {
31655
31832
  if (value2 !== void 0 && value2 !== null && !isNaN(value2)) {
31656
31833
  clearErrors(name2);
31657
31834
  }
31658
31835
  }, [value2]);
31659
- return /* @__PURE__ */ jsxs63(Fragment28, { children: [
31660
- /* @__PURE__ */ jsx95(
31836
+ return /* @__PURE__ */ jsxs65(Fragment29, { children: [
31837
+ /* @__PURE__ */ jsx97(
31661
31838
  "input",
31662
31839
  {
31663
31840
  value: formatNumberOnly(value2),
@@ -31695,7 +31872,7 @@ var MonetaryField = (props) => {
31695
31872
  `
31696
31873
  }
31697
31874
  ),
31698
- !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31875
+ !isEditTable && error2 && /* @__PURE__ */ jsx97("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31699
31876
  ] });
31700
31877
  }
31701
31878
  }
@@ -31703,14 +31880,14 @@ var MonetaryField = (props) => {
31703
31880
  };
31704
31881
 
31705
31882
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
31706
- import { jsx as jsx96 } from "react/jsx-runtime";
31883
+ import { jsx as jsx98 } from "react/jsx-runtime";
31707
31884
  var PaidBadgedField = () => {
31708
- return /* @__PURE__ */ jsx96("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx96(PaidIcon, {}) });
31885
+ return /* @__PURE__ */ jsx98("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx98(PaidIcon, {}) });
31709
31886
  };
31710
31887
 
31711
31888
  // src/widgets/basic/priority-field/rating-star.tsx
31712
- import React17, { useEffect as useEffect23, useState as useState20 } from "react";
31713
- import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
31889
+ import React17, { useEffect as useEffect24, useState as useState21 } from "react";
31890
+ import { jsx as jsx99, jsxs as jsxs66 } from "react/jsx-runtime";
31714
31891
  var RatingStarField = (props) => {
31715
31892
  const {
31716
31893
  label,
@@ -31719,9 +31896,9 @@ var RatingStarField = (props) => {
31719
31896
  onSelectPriority,
31720
31897
  id
31721
31898
  } = props;
31722
- const [rating, setRating] = useState20(defaultValue);
31723
- const [hover, setHover] = useState20(0);
31724
- useEffect23(() => {
31899
+ const [rating, setRating] = useState21(defaultValue);
31900
+ const [hover, setHover] = useState21(0);
31901
+ useEffect24(() => {
31725
31902
  setRating(defaultValue);
31726
31903
  }, [defaultValue]);
31727
31904
  const handleClick = (value) => {
@@ -31745,7 +31922,7 @@ var RatingStarField = (props) => {
31745
31922
  setHover(0);
31746
31923
  setRating(0);
31747
31924
  };
31748
- return /* @__PURE__ */ jsx97(
31925
+ return /* @__PURE__ */ jsx99(
31749
31926
  "div",
31750
31927
  {
31751
31928
  className: "flex gap-1 cursor-pointer w-fit",
@@ -31755,17 +31932,17 @@ var RatingStarField = (props) => {
31755
31932
  const starValue = index4 + 1;
31756
31933
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
31757
31934
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
31758
- return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
31759
- /* @__PURE__ */ jsx97(
31935
+ return /* @__PURE__ */ jsxs66(React17.Fragment, { children: [
31936
+ /* @__PURE__ */ jsx99(
31760
31937
  "div",
31761
31938
  {
31762
31939
  onMouseEnter: () => handleHover(starValue),
31763
31940
  onClick: () => handleClick(starValue),
31764
31941
  "data-tooltip-id": `${id}-${starValue}`,
31765
- children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
31942
+ children: /* @__PURE__ */ jsx99(StarIcon, { fill: fillColor, stroke: strokeColor })
31766
31943
  }
31767
31944
  ),
31768
- /* @__PURE__ */ jsx97(
31945
+ /* @__PURE__ */ jsx99(
31769
31946
  M,
31770
31947
  {
31771
31948
  className: "z-50",
@@ -31781,7 +31958,7 @@ var RatingStarField = (props) => {
31781
31958
  };
31782
31959
 
31783
31960
  // src/widgets/basic/priority-field/priority.tsx
31784
- import { jsx as jsx98 } from "react/jsx-runtime";
31961
+ import { jsx as jsx100 } from "react/jsx-runtime";
31785
31962
  var PriorityField = (props) => {
31786
31963
  const {
31787
31964
  isForm,
@@ -31797,7 +31974,7 @@ var PriorityField = (props) => {
31797
31974
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
31798
31975
  const defaultPriority = parseInt(value) + 1;
31799
31976
  if (!isForm) {
31800
- return /* @__PURE__ */ jsx98(
31977
+ return /* @__PURE__ */ jsx100(
31801
31978
  RatingStarField,
31802
31979
  {
31803
31980
  label,
@@ -31808,7 +31985,7 @@ var PriorityField = (props) => {
31808
31985
  }
31809
31986
  );
31810
31987
  }
31811
- return /* @__PURE__ */ jsx98(
31988
+ return /* @__PURE__ */ jsx100(
31812
31989
  Controller,
31813
31990
  {
31814
31991
  name: name ?? "",
@@ -31818,7 +31995,7 @@ var PriorityField = (props) => {
31818
31995
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
31819
31996
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
31820
31997
  };
31821
- return /* @__PURE__ */ jsx98(
31998
+ return /* @__PURE__ */ jsx100(
31822
31999
  RatingStarField,
31823
32000
  {
31824
32001
  label,
@@ -31834,8 +32011,8 @@ var PriorityField = (props) => {
31834
32011
  };
31835
32012
 
31836
32013
  // src/widgets/basic/radio-group-field/radio-group.tsx
31837
- import { useEffect as useEffect24 } from "react";
31838
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32014
+ import { useEffect as useEffect25 } from "react";
32015
+ import { jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
31839
32016
  var RadioGroupField = (props) => {
31840
32017
  const {
31841
32018
  name: name2,
@@ -31848,19 +32025,19 @@ var RadioGroupField = (props) => {
31848
32025
  onChange: onChange2,
31849
32026
  setValue
31850
32027
  } = props;
31851
- useEffect24(() => {
32028
+ useEffect25(() => {
31852
32029
  if (selection?.length > 0) {
31853
32030
  if (setValue) setValue(name2, selection?.[0]?.[0]);
31854
32031
  }
31855
32032
  }, [selection, name2, setValue]);
31856
32033
  if (!methods) return null;
31857
- return /* @__PURE__ */ jsx99(
32034
+ return /* @__PURE__ */ jsx101(
31858
32035
  Controller,
31859
32036
  {
31860
32037
  name: name2 ?? "",
31861
32038
  control: methods.control,
31862
- 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: [
31863
- /* @__PURE__ */ jsx99(
32039
+ render: ({ field }) => /* @__PURE__ */ jsx101("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-1", children: [
32040
+ /* @__PURE__ */ jsx101(
31864
32041
  "input",
31865
32042
  {
31866
32043
  type: "radio",
@@ -31879,7 +32056,7 @@ var RadioGroupField = (props) => {
31879
32056
  className: "custom-radio"
31880
32057
  }
31881
32058
  ),
31882
- /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32059
+ /* @__PURE__ */ jsx101("label", { htmlFor: String(select[0]), children: select[1] })
31883
32060
  ] }, select[0])) })
31884
32061
  }
31885
32062
  );
@@ -31887,7 +32064,7 @@ var RadioGroupField = (props) => {
31887
32064
 
31888
32065
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
31889
32066
  var import_moment3 = __toESM(require_moment());
31890
- import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32067
+ import { jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
31891
32068
  var RemainingDaysField = (props) => {
31892
32069
  const {
31893
32070
  value,
@@ -31898,14 +32075,14 @@ var RemainingDaysField = (props) => {
31898
32075
  if (!value) return null;
31899
32076
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
31900
32077
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
31901
- return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
31902
- /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
31903
- /* @__PURE__ */ jsx100(
32078
+ return /* @__PURE__ */ jsxs68("div", { className: isForm ? "mb-4" : "", children: [
32079
+ /* @__PURE__ */ jsx102(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32080
+ /* @__PURE__ */ jsx102(
31904
32081
  "div",
31905
32082
  {
31906
32083
  "data-tooltip-id": `remainingDays_${value}`,
31907
32084
  className: "flex items-center w-fit cursor-context-menu",
31908
- children: /* @__PURE__ */ jsx100(
32085
+ children: /* @__PURE__ */ jsx102(
31909
32086
  "div",
31910
32087
  {
31911
32088
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -31918,7 +32095,7 @@ var RemainingDaysField = (props) => {
31918
32095
  };
31919
32096
 
31920
32097
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
31921
- import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32098
+ import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs69 } from "react/jsx-runtime";
31922
32099
  var SelectDropdownField = (props) => {
31923
32100
  const { t: t3 } = useI18n();
31924
32101
  const {
@@ -31940,9 +32117,9 @@ var SelectDropdownField = (props) => {
31940
32117
  label: val[1]
31941
32118
  })) : [];
31942
32119
  if (!isForm && !isEditTable) {
31943
- return /* @__PURE__ */ jsx101("span", { children: options2?.find((item) => item?.value === value)?.label });
32120
+ return /* @__PURE__ */ jsx103("span", { children: options2?.find((item) => item?.value === value)?.label });
31944
32121
  } else {
31945
- return /* @__PURE__ */ jsx101(
32122
+ return /* @__PURE__ */ jsx103(
31946
32123
  Controller,
31947
32124
  {
31948
32125
  name: name2 || "",
@@ -31969,8 +32146,8 @@ var SelectDropdownField = (props) => {
31969
32146
  value: defaultValue || null,
31970
32147
  required: !invisible && required
31971
32148
  };
31972
- return /* @__PURE__ */ jsxs67(Fragment29, { children: [
31973
- /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32149
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32150
+ /* @__PURE__ */ jsx103("div", { className: "group", children: /* @__PURE__ */ jsx103(
31974
32151
  StateManagedSelect$1,
31975
32152
  {
31976
32153
  ...commonProps,
@@ -32025,12 +32202,12 @@ var SelectDropdownField = (props) => {
32025
32202
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32026
32203
  components: {
32027
32204
  IndicatorSeparator: () => null,
32028
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32205
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx103(components.DropdownIndicator, { ...props2 })
32029
32206
  },
32030
32207
  noOptionsMessage: () => t3("no-available")
32031
32208
  }
32032
32209
  ) }),
32033
- !isEditTable && error2 && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32210
+ !isEditTable && error2 && /* @__PURE__ */ jsx103("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32034
32211
  ] });
32035
32212
  }
32036
32213
  }
@@ -32039,7 +32216,7 @@ var SelectDropdownField = (props) => {
32039
32216
  };
32040
32217
 
32041
32218
  // src/widgets/basic/textarea-field/textarea.tsx
32042
- import { jsx as jsx102 } from "react/jsx-runtime";
32219
+ import { jsx as jsx104 } from "react/jsx-runtime";
32043
32220
  var TextAreaField = (props) => {
32044
32221
  const {
32045
32222
  methods,
@@ -32063,9 +32240,9 @@ var TextAreaField = (props) => {
32063
32240
  }
32064
32241
  }) : {};
32065
32242
  if (!isForm) {
32066
- return /* @__PURE__ */ jsx102("span", { children: value && typeof value === "object" ? value.display_name : value });
32243
+ return /* @__PURE__ */ jsx104("span", { children: value && typeof value === "object" ? value.display_name : value });
32067
32244
  }
32068
- return /* @__PURE__ */ jsx102(
32245
+ return /* @__PURE__ */ jsx104(
32069
32246
  "textarea",
32070
32247
  {
32071
32248
  ...formProps,
@@ -32081,7 +32258,7 @@ var TextAreaField = (props) => {
32081
32258
  };
32082
32259
 
32083
32260
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32084
- import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32261
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32085
32262
  var ToggleButtonField = (props) => {
32086
32263
  const {
32087
32264
  name: name2,
@@ -32091,13 +32268,13 @@ var ToggleButtonField = (props) => {
32091
32268
  onChange: onChange2,
32092
32269
  methods
32093
32270
  } = props;
32094
- return /* @__PURE__ */ jsx103(
32271
+ return /* @__PURE__ */ jsx105(
32095
32272
  Controller,
32096
32273
  {
32097
32274
  name: name2 ?? "",
32098
32275
  control: methods?.control,
32099
- 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: [
32100
- /* @__PURE__ */ jsx103(
32276
+ render: ({ field }) => /* @__PURE__ */ jsx105("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs70("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32277
+ /* @__PURE__ */ jsx105(
32101
32278
  "input",
32102
32279
  {
32103
32280
  ...field,
@@ -32116,7 +32293,7 @@ var ToggleButtonField = (props) => {
32116
32293
  checked: field.value ?? false
32117
32294
  }
32118
32295
  ),
32119
- /* @__PURE__ */ jsx103(
32296
+ /* @__PURE__ */ jsx105(
32120
32297
  "span",
32121
32298
  {
32122
32299
  style: {
@@ -32125,7 +32302,7 @@ var ToggleButtonField = (props) => {
32125
32302
  },
32126
32303
  className: `rounded-full transition duration-300
32127
32304
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32128
- children: /* @__PURE__ */ jsx103(
32305
+ children: /* @__PURE__ */ jsx105(
32129
32306
  "span",
32130
32307
  {
32131
32308
  style: {
@@ -32149,8 +32326,8 @@ var ToggleButtonField = (props) => {
32149
32326
  };
32150
32327
 
32151
32328
  // src/widgets/basic/integer-field/integer.tsx
32152
- import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
32153
- import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32329
+ import { useEffect as useEffect26, useRef as useRef18, useState as useState22 } from "react";
32330
+ import { Fragment as Fragment31, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32154
32331
  var IntegerField = (props) => {
32155
32332
  const {
32156
32333
  name: name2,
@@ -32169,9 +32346,9 @@ var IntegerField = (props) => {
32169
32346
  const { t: t3 } = useI18n();
32170
32347
  if (!isForm && !isEditTable) {
32171
32348
  const displayValue = value ?? defaultValue;
32172
- return /* @__PURE__ */ jsx104("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32349
+ return /* @__PURE__ */ jsx106("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32173
32350
  }
32174
- return /* @__PURE__ */ jsx104(
32351
+ return /* @__PURE__ */ jsx106(
32175
32352
  Controller,
32176
32353
  {
32177
32354
  name: name2 || "",
@@ -32188,10 +32365,10 @@ var IntegerField = (props) => {
32188
32365
  const isDirtyRef = useRef18(false);
32189
32366
  const inputRef = useRef18(null);
32190
32367
  const lastCommittedValueRef = useRef18(null);
32191
- const [inputValue, setInputValue] = useState21(
32368
+ const [inputValue, setInputValue] = useState22(
32192
32369
  value2 !== void 0 && value2 !== null ? String(value2) : ""
32193
32370
  );
32194
- useEffect25(() => {
32371
+ useEffect26(() => {
32195
32372
  if (value2 !== void 0 && value2 !== null) {
32196
32373
  setInputValue(String(value2));
32197
32374
  clearErrors(name2);
@@ -32249,8 +32426,8 @@ var IntegerField = (props) => {
32249
32426
  inputRef.current?.blur();
32250
32427
  clearErrors(name2);
32251
32428
  };
32252
- return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32253
- /* @__PURE__ */ jsx104(
32429
+ return /* @__PURE__ */ jsxs71(Fragment31, { children: [
32430
+ /* @__PURE__ */ jsx106(
32254
32431
  "input",
32255
32432
  {
32256
32433
  ref: inputRef,
@@ -32285,7 +32462,7 @@ var IntegerField = (props) => {
32285
32462
  `
32286
32463
  }
32287
32464
  ),
32288
- error2 && isEditTable && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32465
+ error2 && isEditTable && /* @__PURE__ */ jsx106("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32289
32466
  ] });
32290
32467
  }
32291
32468
  }
@@ -32293,7 +32470,7 @@ var IntegerField = (props) => {
32293
32470
  };
32294
32471
 
32295
32472
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32296
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32473
+ import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
32297
32474
  var StatusDropdownField = (props) => {
32298
32475
  const {
32299
32476
  buttonRef,
@@ -32305,13 +32482,13 @@ var StatusDropdownField = (props) => {
32305
32482
  handleClick,
32306
32483
  colors: colors2
32307
32484
  } = props;
32308
- return /* @__PURE__ */ jsxs70(
32485
+ return /* @__PURE__ */ jsxs72(
32309
32486
  "div",
32310
32487
  {
32311
32488
  ref: buttonRef,
32312
32489
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32313
32490
  children: [
32314
- /* @__PURE__ */ jsx105(
32491
+ /* @__PURE__ */ jsx107(
32315
32492
  "button",
32316
32493
  {
32317
32494
  type: "button",
@@ -32319,23 +32496,23 @@ var StatusDropdownField = (props) => {
32319
32496
  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"}`
32320
32497
  }
32321
32498
  ),
32322
- 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) => {
32499
+ isOpen && /* @__PURE__ */ jsx107("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) => {
32323
32500
  const isActive = item[0] == state;
32324
- return /* @__PURE__ */ jsxs70(
32501
+ return /* @__PURE__ */ jsxs72(
32325
32502
  "div",
32326
32503
  {
32327
32504
  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" : ""}`,
32328
32505
  onClick: () => handleClick(item[0]),
32329
32506
  children: [
32330
- /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
32331
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
32332
- /* @__PURE__ */ jsx105(
32507
+ /* @__PURE__ */ jsx107("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx107(CheckIcon, {}) }),
32508
+ /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2", children: [
32509
+ /* @__PURE__ */ jsx107(
32333
32510
  "div",
32334
32511
  {
32335
32512
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
32336
32513
  }
32337
32514
  ),
32338
- /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
32515
+ /* @__PURE__ */ jsx107("span", { className: "text-sm", children: item[1] })
32339
32516
  ] })
32340
32517
  ]
32341
32518
  },
@@ -32349,8 +32526,8 @@ var StatusDropdownField = (props) => {
32349
32526
 
32350
32527
  // src/widgets/basic/many2many-field/many2many.tsx
32351
32528
  import { createPortal as createPortal6 } from "react-dom";
32352
- import { useEffect as useEffect26 } from "react";
32353
- import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32529
+ import { useEffect as useEffect27 } from "react";
32530
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
32354
32531
  var Many2ManyField = (props) => {
32355
32532
  const { t: t3 } = useI18n();
32356
32533
  const {
@@ -32409,7 +32586,7 @@ var Many2ManyField = (props) => {
32409
32586
  clearSearch
32410
32587
  } = searchController;
32411
32588
  const { handleCheckBoxAll, checkedAll, selectedRowKeysRef } = tableHeadController;
32412
- useEffect26(() => {
32589
+ useEffect27(() => {
32413
32590
  const groupItems = Array.isArray(selectedTags) ? selectedTags.filter((item) => item.type === "group_by") : [];
32414
32591
  if (groupItems?.length > 0) {
32415
32592
  typeof setPageLimit === "function" && setPageLimit(80);
@@ -32424,7 +32601,7 @@ var Many2ManyField = (props) => {
32424
32601
  };
32425
32602
  }, [selectedTags]);
32426
32603
  return createPortal6(
32427
- /* @__PURE__ */ jsxs71(
32604
+ /* @__PURE__ */ jsxs73(
32428
32605
  "div",
32429
32606
  {
32430
32607
  style: {
@@ -32432,8 +32609,8 @@ var Many2ManyField = (props) => {
32432
32609
  },
32433
32610
  className: "fixed bottom-0 left-0 right-0 top-0",
32434
32611
  children: [
32435
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32436
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
32612
+ /* @__PURE__ */ jsx108("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32613
+ /* @__PURE__ */ jsx108("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs73(
32437
32614
  "div",
32438
32615
  {
32439
32616
  style: {
@@ -32441,12 +32618,12 @@ var Many2ManyField = (props) => {
32441
32618
  },
32442
32619
  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",
32443
32620
  children: [
32444
- /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32445
- /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
32446
- /* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
32621
+ /* @__PURE__ */ jsxs73("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32622
+ /* @__PURE__ */ jsx108("div", { className: "text-[20px] font-semibold", children: title }),
32623
+ /* @__PURE__ */ jsx108("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx108(CloseIcon, {}) })
32447
32624
  ] }),
32448
- /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32449
- /* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
32625
+ /* @__PURE__ */ jsxs73("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32626
+ /* @__PURE__ */ jsx108("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx108(
32450
32627
  Search,
32451
32628
  {
32452
32629
  removeSearchItems,
@@ -32480,7 +32657,7 @@ var Many2ManyField = (props) => {
32480
32657
  groupByList
32481
32658
  }
32482
32659
  ) }),
32483
- /* @__PURE__ */ jsx106(
32660
+ /* @__PURE__ */ jsx108(
32484
32661
  PaginationView,
32485
32662
  {
32486
32663
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -32497,20 +32674,20 @@ var Many2ManyField = (props) => {
32497
32674
  }
32498
32675
  )
32499
32676
  ] }),
32500
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx106("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx106("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx106(
32677
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx108("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx108("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx108(
32501
32678
  "div",
32502
32679
  {
32503
32680
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
32504
- 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(
32681
+ children: /* @__PURE__ */ jsx108("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx108("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx108(
32505
32682
  "div",
32506
32683
  {
32507
32684
  className: `flex w-full items-center h-full overflow-auto `,
32508
- children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
32685
+ children: /* @__PURE__ */ jsx108("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs73(
32509
32686
  "table",
32510
32687
  {
32511
32688
  className: `relative w-full bg-white custom-dropdown `,
32512
32689
  children: [
32513
- /* @__PURE__ */ jsx106(
32690
+ /* @__PURE__ */ jsx108(
32514
32691
  TableHead,
32515
32692
  {
32516
32693
  columns,
@@ -32520,7 +32697,7 @@ var Many2ManyField = (props) => {
32520
32697
  handleCheckBoxAll
32521
32698
  }
32522
32699
  ),
32523
- rows?.length > 0 ? /* @__PURE__ */ jsx106(
32700
+ rows?.length > 0 ? /* @__PURE__ */ jsx108(
32524
32701
  TableBody,
32525
32702
  {
32526
32703
  tableGroupController,
@@ -32560,16 +32737,16 @@ var Many2ManyField = (props) => {
32560
32737
  checkedAll,
32561
32738
  context
32562
32739
  }
32563
- ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
32740
+ ) : /* @__PURE__ */ jsx108("tr", { children: /* @__PURE__ */ jsx108(
32564
32741
  "td",
32565
32742
  {
32566
32743
  className: "w-full",
32567
32744
  colSpan: columns?.length + 2,
32568
- children: /* @__PURE__ */ jsx106(
32745
+ children: /* @__PURE__ */ jsx108(
32569
32746
  "div",
32570
32747
  {
32571
32748
  className: `flex flex-col items-center justify-center gap-3 py-6`,
32572
- children: /* @__PURE__ */ jsx106(EmptyTable, {})
32749
+ children: /* @__PURE__ */ jsx108(EmptyTable, {})
32573
32750
  }
32574
32751
  )
32575
32752
  }
@@ -32580,9 +32757,9 @@ var Many2ManyField = (props) => {
32580
32757
  }
32581
32758
  ) }) })
32582
32759
  }
32583
- ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
32584
- /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
32585
- isDisplayCheckbox && /* @__PURE__ */ jsx106(
32760
+ ) }) }) : /* @__PURE__ */ jsx108(LayerLoading, {}),
32761
+ /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2 mt-auto", children: [
32762
+ isDisplayCheckbox && /* @__PURE__ */ jsx108(
32586
32763
  "button",
32587
32764
  {
32588
32765
  disabled: selectedRowKeys?.length === 0,
@@ -32592,7 +32769,7 @@ var Many2ManyField = (props) => {
32592
32769
  children: t3("choose")
32593
32770
  }
32594
32771
  ),
32595
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
32772
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx108(
32596
32773
  "button",
32597
32774
  {
32598
32775
  type: "button",
@@ -32608,7 +32785,7 @@ var Many2ManyField = (props) => {
32608
32785
  children: t3("new")
32609
32786
  }
32610
32787
  ),
32611
- /* @__PURE__ */ jsx106(
32788
+ /* @__PURE__ */ jsx108(
32612
32789
  "button",
32613
32790
  {
32614
32791
  type: "button",
@@ -32629,16 +32806,16 @@ var Many2ManyField = (props) => {
32629
32806
  };
32630
32807
 
32631
32808
  // src/widgets/basic/many2one-field/many2one.tsx
32632
- import React18, { useEffect as useEffect27 } from "react";
32633
- import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
32809
+ import React18, { useEffect as useEffect28 } from "react";
32810
+ import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
32634
32811
  var CustomMenuList2 = (props) => {
32635
32812
  const { t: t3 } = useI18n();
32636
32813
  const { options: options2, children, selectProps } = props;
32637
32814
  const { setIsShowModalMany2Many, searchable } = selectProps;
32638
32815
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
32639
- return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
32816
+ return /* @__PURE__ */ jsxs74(components.MenuList, { ...props, className: "z-[99]", children: [
32640
32817
  limitedChildren,
32641
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
32818
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs74(
32642
32819
  "button",
32643
32820
  {
32644
32821
  type: "button",
@@ -32681,14 +32858,14 @@ var Many2OneField = (props) => {
32681
32858
  const { t: t3 } = useI18n();
32682
32859
  if (!isForm && !isEditTable) {
32683
32860
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
32684
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
32861
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
32685
32862
  allowShowDetail && renderDetail({
32686
32863
  idToolTip: String(name2) + Number(index4),
32687
32864
  model: options2?.model ?? relation,
32688
32865
  context: contextObject,
32689
32866
  idForm: id
32690
32867
  }),
32691
- /* @__PURE__ */ jsx107(
32868
+ /* @__PURE__ */ jsx109(
32692
32869
  "span",
32693
32870
  {
32694
32871
  className: "cursor-pointer",
@@ -32699,20 +32876,20 @@ var Many2OneField = (props) => {
32699
32876
  )
32700
32877
  ] });
32701
32878
  }
32702
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
32879
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
32703
32880
  allowShowDetail && renderDetail({
32704
32881
  idToolTip: String(name2),
32705
32882
  model: options2?.model ?? relation,
32706
32883
  context: contextObject,
32707
32884
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
32708
32885
  }),
32709
- /* @__PURE__ */ jsx107(
32886
+ /* @__PURE__ */ jsx109(
32710
32887
  "div",
32711
32888
  {
32712
32889
  id: name2,
32713
32890
  "data-tooltip-id": name2,
32714
32891
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
32715
- children: /* @__PURE__ */ jsx107(
32892
+ children: /* @__PURE__ */ jsx109(
32716
32893
  Controller,
32717
32894
  {
32718
32895
  name: name2 ?? "",
@@ -32732,13 +32909,13 @@ var Many2OneField = (props) => {
32732
32909
  const selectedOption = isForm && options2?.service && options2?.type && options2?.model ? tempSelectedOption : tempSelectedOption && options2?.length > 0 ? options2.find(
32733
32910
  (option) => option.value === tempSelectedOption?.value
32734
32911
  ) : currentValue ? currentValue : null;
32735
- useEffect27(() => {
32912
+ useEffect28(() => {
32736
32913
  if (error2 && selectedOption) {
32737
32914
  methods?.clearErrors(name2);
32738
32915
  }
32739
32916
  }, [selectedOption]);
32740
- return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
32741
- /* @__PURE__ */ jsx107(
32917
+ return /* @__PURE__ */ jsxs74("div", { className: "h-full", children: [
32918
+ /* @__PURE__ */ jsx109(
32742
32919
  StateManagedSelect$1,
32743
32920
  {
32744
32921
  menuShouldScrollIntoView: false,
@@ -32814,7 +32991,7 @@ var Many2OneField = (props) => {
32814
32991
  })
32815
32992
  },
32816
32993
  components: {
32817
- MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
32994
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx109(
32818
32995
  CustomMenuList2,
32819
32996
  {
32820
32997
  ...menuListProps,
@@ -32825,13 +33002,13 @@ var Many2OneField = (props) => {
32825
33002
  }
32826
33003
  ),
32827
33004
  IndicatorSeparator: () => null,
32828
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33005
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx109(components.DropdownIndicator, { ...props2 })
32829
33006
  },
32830
33007
  isDisabled: readonly,
32831
33008
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
32832
33009
  }
32833
33010
  ),
32834
- !isEditTable && error2 && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33011
+ !isEditTable && error2 && /* @__PURE__ */ jsx109("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32835
33012
  ] });
32836
33013
  }
32837
33014
  }
@@ -32842,7 +33019,7 @@ var Many2OneField = (props) => {
32842
33019
  };
32843
33020
 
32844
33021
  // src/widgets/basic/status-bar-field/duration/duration.tsx
32845
- import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33022
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
32846
33023
  var StatusbarDurationField = (props) => {
32847
33024
  const {
32848
33025
  disabled,
@@ -32852,14 +33029,14 @@ var StatusbarDurationField = (props) => {
32852
33029
  defaultValue,
32853
33030
  setModalStatus
32854
33031
  } = props;
32855
- return /* @__PURE__ */ jsx108(
33032
+ return /* @__PURE__ */ jsx110(
32856
33033
  "div",
32857
33034
  {
32858
33035
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
32859
- children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
32860
- /* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33036
+ children: /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-[24px]", children: [
33037
+ /* @__PURE__ */ jsx110("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
32861
33038
  const value = option?.id === defaultValue;
32862
- return /* @__PURE__ */ jsxs73(
33039
+ return /* @__PURE__ */ jsxs75(
32863
33040
  "label",
32864
33041
  {
32865
33042
  onClick: () => !disabled && handleClick(option.id),
@@ -32869,7 +33046,7 @@ var StatusbarDurationField = (props) => {
32869
33046
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
32870
33047
  `,
32871
33048
  children: [
32872
- /* @__PURE__ */ jsx108(
33049
+ /* @__PURE__ */ jsx110(
32873
33050
  "input",
32874
33051
  {
32875
33052
  type: "radio",
@@ -32879,7 +33056,7 @@ var StatusbarDurationField = (props) => {
32879
33056
  }
32880
33057
  ),
32881
33058
  option?.name,
32882
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33059
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx110(
32883
33060
  "div",
32884
33061
  {
32885
33062
  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]
@@ -32894,14 +33071,14 @@ var StatusbarDurationField = (props) => {
32894
33071
  }) }),
32895
33072
  dataResponse?.records?.some(
32896
33073
  (item) => item?.fold && item.id !== defaultValue
32897
- ) && /* @__PURE__ */ jsxs73(
33074
+ ) && /* @__PURE__ */ jsxs75(
32898
33075
  "div",
32899
33076
  {
32900
33077
  onClick: () => setModalStatus(!modelStatus),
32901
33078
  className: "w-[24px] h-[24px] cursor-pointer relative",
32902
33079
  children: [
32903
- /* @__PURE__ */ jsx108(MoreIcon, {}),
32904
- modelStatus && /* @__PURE__ */ jsx108(
33080
+ /* @__PURE__ */ jsx110(MoreIcon, {}),
33081
+ modelStatus && /* @__PURE__ */ jsx110(
32905
33082
  "div",
32906
33083
  {
32907
33084
  onClick: (e3) => e3.stopPropagation(),
@@ -32910,7 +33087,7 @@ var StatusbarDurationField = (props) => {
32910
33087
  (item) => item?.fold && item.id !== defaultValue
32911
33088
  )?.map((option) => {
32912
33089
  const value = option?.id === defaultValue;
32913
- return /* @__PURE__ */ jsx108(
33090
+ return /* @__PURE__ */ jsx110(
32914
33091
  "div",
32915
33092
  {
32916
33093
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -32932,14 +33109,14 @@ var StatusbarDurationField = (props) => {
32932
33109
 
32933
33110
  // src/widgets/basic/status-bar-field/option/option.tsx
32934
33111
  import { useMemo as useMemo11 } from "react";
32935
- import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33112
+ import { Fragment as Fragment33, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
32936
33113
  var StatusBarOptionField = (props) => {
32937
33114
  const { selection, defaultValue } = props;
32938
33115
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
32939
33116
  const indexInProgress = memoizedStatusOptions?.findIndex(
32940
33117
  (option) => option?.[0] === defaultValue
32941
33118
  );
32942
- return /* @__PURE__ */ jsx109(
33119
+ return /* @__PURE__ */ jsx111(
32943
33120
  "div",
32944
33121
  {
32945
33122
  style: {
@@ -32948,8 +33125,8 @@ var StatusBarOptionField = (props) => {
32948
33125
  flexWrap: "wrap"
32949
33126
  },
32950
33127
  children: memoizedStatusOptions?.map((option, index4) => {
32951
- return /* @__PURE__ */ jsxs74(Fragment32, { children: [
32952
- /* @__PURE__ */ jsxs74(
33128
+ return /* @__PURE__ */ jsxs76(Fragment33, { children: [
33129
+ /* @__PURE__ */ jsxs76(
32953
33130
  "div",
32954
33131
  {
32955
33132
  style: {
@@ -32967,7 +33144,7 @@ var StatusBarOptionField = (props) => {
32967
33144
  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" : ""
32968
33145
  },
32969
33146
  children: [
32970
- /* @__PURE__ */ jsx109(
33147
+ /* @__PURE__ */ jsx111(
32971
33148
  "span",
32972
33149
  {
32973
33150
  style: {
@@ -32979,10 +33156,10 @@ var StatusBarOptionField = (props) => {
32979
33156
  alignItems: "center",
32980
33157
  borderRadius: "100%"
32981
33158
  },
32982
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx109(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx109(ICCircle, {}) : /* @__PURE__ */ jsx109(ICMinus, {})
33159
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx111(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx111(ICCircle, {}) : /* @__PURE__ */ jsx111(ICMinus, {})
32983
33160
  }
32984
33161
  ),
32985
- /* @__PURE__ */ jsx109(
33162
+ /* @__PURE__ */ jsx111(
32986
33163
  "span",
32987
33164
  {
32988
33165
  style: {
@@ -32995,7 +33172,7 @@ var StatusBarOptionField = (props) => {
32995
33172
  },
32996
33173
  option?.[0]
32997
33174
  ),
32998
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33175
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx111(
32999
33176
  "div",
33000
33177
  {
33001
33178
  style: {
@@ -33011,7 +33188,7 @@ var StatusBarOptionField = (props) => {
33011
33188
  );
33012
33189
  };
33013
33190
  var ICMinus = () => {
33014
- return /* @__PURE__ */ jsx109(
33191
+ return /* @__PURE__ */ jsx111(
33015
33192
  "svg",
33016
33193
  {
33017
33194
  xmlns: "http://www.w3.org/2000/svg",
@@ -33019,7 +33196,7 @@ var ICMinus = () => {
33019
33196
  height: "16",
33020
33197
  viewBox: "0 0 16 16",
33021
33198
  fill: "none",
33022
- children: /* @__PURE__ */ jsx109(
33199
+ children: /* @__PURE__ */ jsx111(
33023
33200
  "path",
33024
33201
  {
33025
33202
  d: "M4 8H12",
@@ -33033,7 +33210,7 @@ var ICMinus = () => {
33033
33210
  );
33034
33211
  };
33035
33212
  var ICCircle = () => {
33036
- return /* @__PURE__ */ jsx109(
33213
+ return /* @__PURE__ */ jsx111(
33037
33214
  "svg",
33038
33215
  {
33039
33216
  xmlns: "http://www.w3.org/2000/svg",
@@ -33041,12 +33218,12 @@ var ICCircle = () => {
33041
33218
  height: "8",
33042
33219
  viewBox: "0 0 8 8",
33043
33220
  fill: "none",
33044
- children: /* @__PURE__ */ jsx109("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33221
+ children: /* @__PURE__ */ jsx111("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33045
33222
  }
33046
33223
  );
33047
33224
  };
33048
33225
  var ICCheck = () => {
33049
- return /* @__PURE__ */ jsx109(
33226
+ return /* @__PURE__ */ jsx111(
33050
33227
  "svg",
33051
33228
  {
33052
33229
  xmlns: "http://www.w3.org/2000/svg",
@@ -33054,7 +33231,7 @@ var ICCheck = () => {
33054
33231
  height: "16",
33055
33232
  viewBox: "0 0 16 16",
33056
33233
  fill: "none",
33057
- children: /* @__PURE__ */ jsx109(
33234
+ children: /* @__PURE__ */ jsx111(
33058
33235
  "path",
33059
33236
  {
33060
33237
  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",
@@ -33068,7 +33245,7 @@ var ICCheck = () => {
33068
33245
  };
33069
33246
 
33070
33247
  // src/widgets/basic/date-option-field/date-option.tsx
33071
- import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33248
+ import { jsx as jsx112, jsxs as jsxs77 } from "react/jsx-runtime";
33072
33249
  var DateOptionField = (props) => {
33073
33250
  const {
33074
33251
  name: name2,
@@ -33079,19 +33256,19 @@ var DateOptionField = (props) => {
33079
33256
  string,
33080
33257
  onChange: onChange2
33081
33258
  } = props;
33082
- return /* @__PURE__ */ jsx110(
33259
+ return /* @__PURE__ */ jsx112(
33083
33260
  Controller,
33084
33261
  {
33085
33262
  name: name2 ?? "",
33086
33263
  control: methods?.control,
33087
- render: ({ field }) => /* @__PURE__ */ jsxs75(
33264
+ render: ({ field }) => /* @__PURE__ */ jsxs77(
33088
33265
  "label",
33089
33266
  {
33090
33267
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33091
33268
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33092
33269
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33093
33270
  children: [
33094
- /* @__PURE__ */ jsx110(
33271
+ /* @__PURE__ */ jsx112(
33095
33272
  "input",
33096
33273
  {
33097
33274
  type: "checkbox",