@fctc/sme-widget-ui 1.9.1 → 1.9.3

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
@@ -9871,8 +9871,60 @@ var DeleteIconDanger = () => {
9871
9871
  );
9872
9872
  };
9873
9873
 
9874
+ // src/icons/image-icon.tsx
9875
+ import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
9876
+ var ImageIcon = () => {
9877
+ return /* @__PURE__ */ jsxs21(
9878
+ "svg",
9879
+ {
9880
+ xmlns: "http://www.w3.org/2000/svg",
9881
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
9882
+ width: "38",
9883
+ height: "38",
9884
+ viewBox: "0 0 38 38",
9885
+ children: [
9886
+ /* @__PURE__ */ jsxs21("defs", { children: [
9887
+ /* @__PURE__ */ jsx41("rect", { id: "image-a", width: "32", height: "35", x: "3", y: "1", rx: "3" }),
9888
+ /* @__PURE__ */ jsx41(
9889
+ "path",
9890
+ {
9891
+ id: "image-b",
9892
+ d: "M4,19.1032723 C10.2068966,11.6847994 21.5862069,29.7010908 34,22.2826178 C34,27.7196562 34,31.605523 34,33.9402182 C34,34.6467394 33.6428571,35 32.9285714,35 L5.07142857,35 C4.35714286,35 4,34.6467394 4,33.9402182 C4,30.6431191 4,25.6974705 4,19.1032723 Z"
9893
+ }
9894
+ )
9895
+ ] }),
9896
+ /* @__PURE__ */ jsxs21("g", { fill: "none", fillRule: "evenodd", children: [
9897
+ /* @__PURE__ */ jsx41("polygon", { fill: "#1C8B96", points: "34 2 34 34 4 34" }),
9898
+ /* @__PURE__ */ jsx41("use", { fill: "#FFF", fillOpacity: ".93", xlinkHref: "#image-a" }),
9899
+ /* @__PURE__ */ jsx41(
9900
+ "rect",
9901
+ {
9902
+ width: "30",
9903
+ height: "33",
9904
+ x: "4",
9905
+ y: "2",
9906
+ stroke: "#1C8B96",
9907
+ strokeWidth: "2",
9908
+ rx: "3"
9909
+ }
9910
+ ),
9911
+ /* @__PURE__ */ jsx41("use", { fill: "#1C8B96", fillOpacity: ".516", xlinkHref: "#image-b" }),
9912
+ /* @__PURE__ */ jsx41(
9913
+ "path",
9914
+ {
9915
+ stroke: "#1C8B96",
9916
+ d: "M4.5,19.288684 C4.5,28.1705666 4.5,28.2098953 4.5,33.9402182 C4.5,34.3693663 4.63206932,34.5 5.07142857,34.5 L32.9285714,34.5 C33.3679307,34.5 33.5,34.3693663 33.5,33.9402182 C33.5,29.8349108 33.5,29.6695315 33.5,23.1393414 C28.409924,25.8483285 23.7681405,24.8893521 16.4444643,21.1379608 C11.4216372,18.5651287 11.0931764,18.4094718 9.43982941,17.9988583 C7.34020973,17.4774116 5.78906845,17.8335647 4.5,19.2887422 Z"
9917
+ }
9918
+ ),
9919
+ /* @__PURE__ */ jsx41("circle", { cx: "25.5", cy: "11.5", r: "4.5", fill: "#1C8B96" })
9920
+ ] })
9921
+ ]
9922
+ }
9923
+ );
9924
+ };
9925
+
9874
9926
  // src/widgets/advanced/table/table-group.tsx
9875
- import { Fragment as Fragment2, jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
9927
+ import { Fragment as Fragment2, jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
9876
9928
  var TableGroup = (props) => {
9877
9929
  const { t: t3 } = useI18n();
9878
9930
  const {
@@ -9922,28 +9974,28 @@ var TableGroup = (props) => {
9922
9974
  setSelectedRowKeys
9923
9975
  });
9924
9976
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
9925
- return /* @__PURE__ */ jsxs21(Fragment2, { children: [
9926
- /* @__PURE__ */ jsxs21(
9977
+ return /* @__PURE__ */ jsxs22(Fragment2, { children: [
9978
+ /* @__PURE__ */ jsxs22(
9927
9979
  "tr",
9928
9980
  {
9929
9981
  draggable: true,
9930
9982
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
9931
9983
  onClick: onExpandChildGroup,
9932
9984
  children: [
9933
- /* @__PURE__ */ jsx41(
9985
+ /* @__PURE__ */ jsx42(
9934
9986
  "td",
9935
9987
  {
9936
9988
  colSpan: colEmptyGroup.fromStart ?? 1,
9937
9989
  style: { display: "table-cell" },
9938
9990
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
9939
- children: /* @__PURE__ */ jsxs21(
9991
+ children: /* @__PURE__ */ jsxs22(
9940
9992
  "div",
9941
9993
  {
9942
9994
  style: { paddingLeft: leftPadding },
9943
9995
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
9944
9996
  children: [
9945
- /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2", children: [
9946
- /* @__PURE__ */ jsx41(
9997
+ /* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2", children: [
9998
+ /* @__PURE__ */ jsx42(
9947
9999
  TriangleIcon,
9948
10000
  {
9949
10001
  style: {
@@ -9952,15 +10004,15 @@ var TableGroup = (props) => {
9952
10004
  className: `w-2 h-2 text-button_primary `
9953
10005
  }
9954
10006
  ),
9955
- /* @__PURE__ */ jsx41("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10007
+ /* @__PURE__ */ jsx42("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
9956
10008
  ] }),
9957
- /* @__PURE__ */ jsx41(
10009
+ /* @__PURE__ */ jsx42(
9958
10010
  "div",
9959
10011
  {
9960
10012
  onClick: (e3) => {
9961
10013
  e3.stopPropagation();
9962
10014
  },
9963
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx41(
10015
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx42(
9964
10016
  PaginationView,
9965
10017
  {
9966
10018
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -9981,7 +10033,7 @@ var TableGroup = (props) => {
9981
10033
  columns?.map((col) => {
9982
10034
  if (col?.optional === "hide") return;
9983
10035
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
9984
- return /* @__PURE__ */ jsx41(
10036
+ return /* @__PURE__ */ jsx42(
9985
10037
  "td",
9986
10038
  {
9987
10039
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -9999,7 +10051,7 @@ var TableGroup = (props) => {
9999
10051
  ]
10000
10052
  }
10001
10053
  ),
10002
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx41(
10054
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx42(
10003
10055
  TableBodyRow,
10004
10056
  {
10005
10057
  columns: columnsGroup,
@@ -10029,7 +10081,7 @@ var TableGroup = (props) => {
10029
10081
 
10030
10082
  // src/widgets/advanced/table/table-row.tsx
10031
10083
  import { useEffect as useEffect3, useMemo as useMemo3, useRef as useRef2 } from "react";
10032
- import { Fragment as Fragment3, jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
10084
+ import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
10033
10085
  var Row = (props) => {
10034
10086
  const {
10035
10087
  row,
@@ -10095,17 +10147,17 @@ var Row = (props) => {
10095
10147
  setIsAutoSelect(false);
10096
10148
  }
10097
10149
  }, [checkedAll]);
10098
- return /* @__PURE__ */ jsx42(
10150
+ return /* @__PURE__ */ jsx43(
10099
10151
  "tr",
10100
10152
  {
10101
10153
  "data-row-id": row?.id,
10102
10154
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10103
- children: /* @__PURE__ */ jsxs22(Fragment3, { children: [
10104
- isDisplayCheckbox && /* @__PURE__ */ jsx42(
10155
+ children: /* @__PURE__ */ jsxs23(Fragment3, { children: [
10156
+ isDisplayCheckbox && /* @__PURE__ */ jsx43(
10105
10157
  "td",
10106
10158
  {
10107
10159
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
10108
- children: /* @__PURE__ */ jsx42(
10160
+ children: /* @__PURE__ */ jsx43(
10109
10161
  "input",
10110
10162
  {
10111
10163
  type: "checkbox",
@@ -10118,9 +10170,9 @@ var Row = (props) => {
10118
10170
  ),
10119
10171
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
10120
10172
  if (row?.display_type === "line_section" && col.key !== "display_name") {
10121
- return /* @__PURE__ */ jsx42("td", {});
10173
+ return /* @__PURE__ */ jsx43("td", {});
10122
10174
  }
10123
- return /* @__PURE__ */ jsx42(
10175
+ return /* @__PURE__ */ jsx43(
10124
10176
  "td",
10125
10177
  {
10126
10178
  colSpan: 1,
@@ -10139,7 +10191,7 @@ var Row = (props) => {
10139
10191
  `${col.name}____${index4}`
10140
10192
  );
10141
10193
  }),
10142
- typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx42("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx42("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx42(
10194
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx43("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx43("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx43(
10143
10195
  "button",
10144
10196
  {
10145
10197
  type: "button",
@@ -10147,7 +10199,7 @@ var Row = (props) => {
10147
10199
  onClick: () => {
10148
10200
  onRemoveRow(indexRow);
10149
10201
  },
10150
- children: /* @__PURE__ */ jsx42(DeleteIcon, {})
10202
+ children: /* @__PURE__ */ jsx43(DeleteIcon, {})
10151
10203
  }
10152
10204
  ) }) })
10153
10205
  ] })
@@ -10157,7 +10209,7 @@ var Row = (props) => {
10157
10209
  };
10158
10210
 
10159
10211
  // src/widgets/advanced/table/table-body.tsx
10160
- import { jsx as jsx43 } from "react/jsx-runtime";
10212
+ import { jsx as jsx44 } from "react/jsx-runtime";
10161
10213
  var TableBodyRow = (props) => {
10162
10214
  const {
10163
10215
  rows,
@@ -10187,7 +10239,7 @@ var TableBodyRow = (props) => {
10187
10239
  isEditTable
10188
10240
  } = props;
10189
10241
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10190
- return typeTable === "group" ? /* @__PURE__ */ jsx43(
10242
+ return typeTable === "group" ? /* @__PURE__ */ jsx44(
10191
10243
  TableGroup,
10192
10244
  {
10193
10245
  columns,
@@ -10212,7 +10264,7 @@ var TableBodyRow = (props) => {
10212
10264
  onClickRow
10213
10265
  },
10214
10266
  `record-group-${index4}`
10215
- ) : /* @__PURE__ */ jsx43(
10267
+ ) : /* @__PURE__ */ jsx44(
10216
10268
  Row,
10217
10269
  {
10218
10270
  row,
@@ -10240,7 +10292,7 @@ var TableBodyRow = (props) => {
10240
10292
  };
10241
10293
  var TableBody = (props) => {
10242
10294
  const [isAutoSelect, setIsAutoSelect] = useState2(false);
10243
- return /* @__PURE__ */ jsx43("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx43(
10295
+ return /* @__PURE__ */ jsx44("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx44(
10244
10296
  TableBodyRow,
10245
10297
  {
10246
10298
  ...props,
@@ -10501,7 +10553,7 @@ function useFileInfo(source, options2) {
10501
10553
  }
10502
10554
 
10503
10555
  // src/widgets/advanced/table/table-filter.tsx
10504
- import { jsx as jsx44, jsxs as jsxs23 } from "react/jsx-runtime";
10556
+ import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
10505
10557
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
10506
10558
  const [openTableFilter, setOpenTableFilter] = useState4();
10507
10559
  const [filterPosition, setFilterPosition] = useState4(null);
@@ -10533,7 +10585,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10533
10585
  window.removeEventListener("resize", updatePosition);
10534
10586
  };
10535
10587
  }, [filterRef, openTableFilter]);
10536
- return /* @__PURE__ */ jsxs23(
10588
+ return /* @__PURE__ */ jsxs24(
10537
10589
  "div",
10538
10590
  {
10539
10591
  ref: filterRef,
@@ -10542,7 +10594,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10542
10594
  },
10543
10595
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
10544
10596
  children: [
10545
- /* @__PURE__ */ jsx44(
10597
+ /* @__PURE__ */ jsx45(
10546
10598
  "button",
10547
10599
  {
10548
10600
  type: "button",
@@ -10550,7 +10602,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10550
10602
  onClick: () => {
10551
10603
  setOpenTableFilter(!openTableFilter);
10552
10604
  },
10553
- children: /* @__PURE__ */ jsxs23(
10605
+ children: /* @__PURE__ */ jsxs24(
10554
10606
  "svg",
10555
10607
  {
10556
10608
  xmlns: "http://www.w3.org/2000/svg",
@@ -10559,42 +10611,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10559
10611
  viewBox: "0 0 16 16",
10560
10612
  fill: "none",
10561
10613
  children: [
10562
- /* @__PURE__ */ jsx44(
10614
+ /* @__PURE__ */ jsx45(
10563
10615
  "path",
10564
10616
  {
10565
10617
  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",
10566
10618
  fill: "#1F1F1F"
10567
10619
  }
10568
10620
  ),
10569
- /* @__PURE__ */ jsx44(
10621
+ /* @__PURE__ */ jsx45(
10570
10622
  "path",
10571
10623
  {
10572
10624
  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",
10573
10625
  fill: "#1F1F1F"
10574
10626
  }
10575
10627
  ),
10576
- /* @__PURE__ */ jsx44(
10628
+ /* @__PURE__ */ jsx45(
10577
10629
  "path",
10578
10630
  {
10579
10631
  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",
10580
10632
  fill: "#1F1F1F"
10581
10633
  }
10582
10634
  ),
10583
- /* @__PURE__ */ jsx44(
10635
+ /* @__PURE__ */ jsx45(
10584
10636
  "path",
10585
10637
  {
10586
10638
  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",
10587
10639
  fill: "black"
10588
10640
  }
10589
10641
  ),
10590
- /* @__PURE__ */ jsx44(
10642
+ /* @__PURE__ */ jsx45(
10591
10643
  "path",
10592
10644
  {
10593
10645
  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",
10594
10646
  fill: "black"
10595
10647
  }
10596
10648
  ),
10597
- /* @__PURE__ */ jsx44(
10649
+ /* @__PURE__ */ jsx45(
10598
10650
  "path",
10599
10651
  {
10600
10652
  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",
@@ -10607,7 +10659,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10607
10659
  }
10608
10660
  ),
10609
10661
  filterPosition && openTableFilter && createPortal(
10610
- /* @__PURE__ */ jsx44(
10662
+ /* @__PURE__ */ jsx45(
10611
10663
  "div",
10612
10664
  {
10613
10665
  ref: filterPopupRef,
@@ -10618,8 +10670,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10618
10670
  },
10619
10671
  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",
10620
10672
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
10621
- return /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
10622
- /* @__PURE__ */ jsx44(
10673
+ return /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
10674
+ /* @__PURE__ */ jsx45(
10623
10675
  "input",
10624
10676
  {
10625
10677
  type: "checkbox",
@@ -10629,7 +10681,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10629
10681
  className: "cursor-pointer"
10630
10682
  }
10631
10683
  ),
10632
- /* @__PURE__ */ jsx44(
10684
+ /* @__PURE__ */ jsx45(
10633
10685
  "label",
10634
10686
  {
10635
10687
  htmlFor: `${item.name}`,
@@ -10649,14 +10701,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10649
10701
  };
10650
10702
 
10651
10703
  // src/widgets/advanced/table/table-footer.tsx
10652
- import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
10704
+ import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
10653
10705
  var TableFooter = ({ onAddRow, rows }) => {
10654
10706
  const emptyData = rows?.length <= 0;
10655
- return /* @__PURE__ */ jsx45("tfoot", { children: /* @__PURE__ */ jsx45("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx45(
10707
+ return /* @__PURE__ */ jsx46("tfoot", { children: /* @__PURE__ */ jsx46("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx46(
10656
10708
  "td",
10657
10709
  {
10658
10710
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
10659
- children: /* @__PURE__ */ jsxs24(
10711
+ children: /* @__PURE__ */ jsxs25(
10660
10712
  "button",
10661
10713
  {
10662
10714
  type: "button",
@@ -10666,7 +10718,7 @@ var TableFooter = ({ onAddRow, rows }) => {
10666
10718
  },
10667
10719
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
10668
10720
  children: [
10669
- /* @__PURE__ */ jsxs24(
10721
+ /* @__PURE__ */ jsxs25(
10670
10722
  "svg",
10671
10723
  {
10672
10724
  style: {
@@ -10679,14 +10731,14 @@ var TableFooter = ({ onAddRow, rows }) => {
10679
10731
  viewBox: "0 0 20 20",
10680
10732
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
10681
10733
  children: [
10682
- /* @__PURE__ */ jsx45(
10734
+ /* @__PURE__ */ jsx46(
10683
10735
  "path",
10684
10736
  {
10685
10737
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
10686
10738
  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"
10687
10739
  }
10688
10740
  ),
10689
- /* @__PURE__ */ jsx45(
10741
+ /* @__PURE__ */ jsx46(
10690
10742
  "path",
10691
10743
  {
10692
10744
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -12506,7 +12558,8 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
12506
12558
  });
12507
12559
 
12508
12560
  // src/widgets/advanced/table/table-head.tsx
12509
- import { Fragment as Fragment4, jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
12561
+ import { createPortal as createPortal2 } from "react-dom";
12562
+ import { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
12510
12563
  var TableHead = (props) => {
12511
12564
  const {
12512
12565
  handleCheckBoxAll,
@@ -12516,7 +12569,7 @@ var TableHead = (props) => {
12516
12569
  onRemoveRow,
12517
12570
  onToggleColumnOptional
12518
12571
  } = props;
12519
- return /* @__PURE__ */ jsx46("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs25(
12572
+ return /* @__PURE__ */ jsx47("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs26(
12520
12573
  "tr",
12521
12574
  {
12522
12575
  style: {
@@ -12528,11 +12581,11 @@ var TableHead = (props) => {
12528
12581
  },
12529
12582
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
12530
12583
  children: [
12531
- isDisplayCheckbox && /* @__PURE__ */ jsx46(
12584
+ isDisplayCheckbox && /* @__PURE__ */ jsx47(
12532
12585
  "th",
12533
12586
  {
12534
12587
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
12535
- children: /* @__PURE__ */ jsx46(
12588
+ children: /* @__PURE__ */ jsx47(
12536
12589
  "input",
12537
12590
  {
12538
12591
  type: "checkbox",
@@ -12544,32 +12597,36 @@ var TableHead = (props) => {
12544
12597
  }
12545
12598
  ),
12546
12599
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12547
- return /* @__PURE__ */ jsx46(
12600
+ return /* @__PURE__ */ jsx47(
12548
12601
  "th",
12549
12602
  {
12603
+ "data-rtc-resizable": col?.name,
12550
12604
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12551
- children: /* @__PURE__ */ jsxs25("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12605
+ children: /* @__PURE__ */ jsxs26("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12552
12606
  col.title,
12553
- col?.field?.help && /* @__PURE__ */ jsxs25(Fragment4, { children: [
12554
- /* @__PURE__ */ jsx46(
12555
- M,
12556
- {
12557
- style: {
12558
- padding: "6px 12px",
12559
- fontSize: "12px",
12560
- borderRadius: "4px",
12561
- maxWidth: "200%",
12562
- whiteSpace: "wrap",
12563
- fontWeight: 400,
12564
- textTransform: "none"
12565
- },
12566
- id: `field-help-${col?.field?.name}`,
12567
- content: col?.field?.help,
12568
- place: "top",
12569
- className: "z-30"
12570
- }
12607
+ col?.field?.help && /* @__PURE__ */ jsxs26(Fragment4, { children: [
12608
+ createPortal2(
12609
+ /* @__PURE__ */ jsx47(
12610
+ M,
12611
+ {
12612
+ style: {
12613
+ padding: "6px 12px",
12614
+ fontSize: "12px",
12615
+ borderRadius: "4px",
12616
+ maxWidth: "200px",
12617
+ whiteSpace: "wrap",
12618
+ fontWeight: 400,
12619
+ textTransform: "none",
12620
+ zIndex: "9999"
12621
+ },
12622
+ id: `field-help-${col?.field?.name}`,
12623
+ content: col?.field?.help,
12624
+ place: "top"
12625
+ }
12626
+ ),
12627
+ document.body
12571
12628
  ),
12572
- /* @__PURE__ */ jsx46(
12629
+ /* @__PURE__ */ jsx47(
12573
12630
  "span",
12574
12631
  {
12575
12632
  style: {
@@ -12588,8 +12645,8 @@ var TableHead = (props) => {
12588
12645
  "table-head-" + index4
12589
12646
  );
12590
12647
  }),
12591
- typeof onRemoveRow === "function" && /* @__PURE__ */ jsx46("th", { className: "relative p-2 w-[35px]" }),
12592
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx46(
12648
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx47("th", { className: "relative p-2 w-[35px]" }),
12649
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
12593
12650
  "th",
12594
12651
  {
12595
12652
  style: {
@@ -12597,7 +12654,7 @@ var TableHead = (props) => {
12597
12654
  right: 0
12598
12655
  },
12599
12656
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
12600
- children: /* @__PURE__ */ jsx46(
12657
+ children: /* @__PURE__ */ jsx47(
12601
12658
  TableFilter,
12602
12659
  {
12603
12660
  columns,
@@ -12612,9 +12669,9 @@ var TableHead = (props) => {
12612
12669
  };
12613
12670
 
12614
12671
  // src/icons/empty-table-icon.tsx
12615
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
12672
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12616
12673
  var IcEmptyTable = () => {
12617
- return /* @__PURE__ */ jsxs26(
12674
+ return /* @__PURE__ */ jsxs27(
12618
12675
  "svg",
12619
12676
  {
12620
12677
  xmlns: "http://www.w3.org/2000/svg",
@@ -12623,9 +12680,9 @@ var IcEmptyTable = () => {
12623
12680
  viewBox: "0 0 216 140",
12624
12681
  fill: "none",
12625
12682
  children: [
12626
- /* @__PURE__ */ jsxs26("g", { clipPath: "url(#clip0_2454_28950)", children: [
12627
- /* @__PURE__ */ jsx47("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12628
- /* @__PURE__ */ jsx47(
12683
+ /* @__PURE__ */ jsxs27("g", { clipPath: "url(#clip0_2454_28950)", children: [
12684
+ /* @__PURE__ */ jsx48("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12685
+ /* @__PURE__ */ jsx48(
12629
12686
  "path",
12630
12687
  {
12631
12688
  d: "M64.5 0V140",
@@ -12635,7 +12692,7 @@ var IcEmptyTable = () => {
12635
12692
  strokeDasharray: "3 3"
12636
12693
  }
12637
12694
  ),
12638
- /* @__PURE__ */ jsx47(
12695
+ /* @__PURE__ */ jsx48(
12639
12696
  "path",
12640
12697
  {
12641
12698
  d: "M151.5 0V140",
@@ -12645,7 +12702,7 @@ var IcEmptyTable = () => {
12645
12702
  strokeDasharray: "3 3"
12646
12703
  }
12647
12704
  ),
12648
- /* @__PURE__ */ jsx47(
12705
+ /* @__PURE__ */ jsx48(
12649
12706
  "path",
12650
12707
  {
12651
12708
  d: "M215.5 24H0.5",
@@ -12655,7 +12712,7 @@ var IcEmptyTable = () => {
12655
12712
  strokeDasharray: "3 3"
12656
12713
  }
12657
12714
  ),
12658
- /* @__PURE__ */ jsx47(
12715
+ /* @__PURE__ */ jsx48(
12659
12716
  "path",
12660
12717
  {
12661
12718
  d: "M215.5 50H0.5",
@@ -12665,7 +12722,7 @@ var IcEmptyTable = () => {
12665
12722
  strokeDasharray: "3 3"
12666
12723
  }
12667
12724
  ),
12668
- /* @__PURE__ */ jsx47(
12725
+ /* @__PURE__ */ jsx48(
12669
12726
  "path",
12670
12727
  {
12671
12728
  d: "M215.5 88H0.5",
@@ -12675,7 +12732,7 @@ var IcEmptyTable = () => {
12675
12732
  strokeDasharray: "3 3"
12676
12733
  }
12677
12734
  ),
12678
- /* @__PURE__ */ jsx47(
12735
+ /* @__PURE__ */ jsx48(
12679
12736
  "path",
12680
12737
  {
12681
12738
  d: "M215.5 114H0.5",
@@ -12685,7 +12742,7 @@ var IcEmptyTable = () => {
12685
12742
  strokeDasharray: "3 3"
12686
12743
  }
12687
12744
  ),
12688
- /* @__PURE__ */ jsx47(
12745
+ /* @__PURE__ */ jsx48(
12689
12746
  "path",
12690
12747
  {
12691
12748
  d: "M199.5 0V140",
@@ -12694,7 +12751,7 @@ var IcEmptyTable = () => {
12694
12751
  strokeMiterlimit: "10"
12695
12752
  }
12696
12753
  ),
12697
- /* @__PURE__ */ jsx47(
12754
+ /* @__PURE__ */ jsx48(
12698
12755
  "path",
12699
12756
  {
12700
12757
  d: "M16.5 0V140",
@@ -12703,7 +12760,7 @@ var IcEmptyTable = () => {
12703
12760
  strokeMiterlimit: "10"
12704
12761
  }
12705
12762
  ),
12706
- /* @__PURE__ */ jsx47(
12763
+ /* @__PURE__ */ jsx48(
12707
12764
  "path",
12708
12765
  {
12709
12766
  d: "M0.5 16H215.5",
@@ -12712,7 +12769,7 @@ var IcEmptyTable = () => {
12712
12769
  strokeMiterlimit: "10"
12713
12770
  }
12714
12771
  ),
12715
- /* @__PURE__ */ jsx47(
12772
+ /* @__PURE__ */ jsx48(
12716
12773
  "path",
12717
12774
  {
12718
12775
  d: "M0.5 124H215.5",
@@ -12721,7 +12778,7 @@ var IcEmptyTable = () => {
12721
12778
  strokeMiterlimit: "10"
12722
12779
  }
12723
12780
  ),
12724
- /* @__PURE__ */ jsx47(
12781
+ /* @__PURE__ */ jsx48(
12725
12782
  "path",
12726
12783
  {
12727
12784
  opacity: "0.6",
@@ -12732,7 +12789,7 @@ var IcEmptyTable = () => {
12732
12789
  strokeLinejoin: "round"
12733
12790
  }
12734
12791
  ),
12735
- /* @__PURE__ */ jsx47(
12792
+ /* @__PURE__ */ jsx48(
12736
12793
  "path",
12737
12794
  {
12738
12795
  opacity: "0.6",
@@ -12743,7 +12800,7 @@ var IcEmptyTable = () => {
12743
12800
  strokeLinejoin: "round"
12744
12801
  }
12745
12802
  ),
12746
- /* @__PURE__ */ jsx47(
12803
+ /* @__PURE__ */ jsx48(
12747
12804
  "path",
12748
12805
  {
12749
12806
  opacity: "0.6",
@@ -12754,7 +12811,7 @@ var IcEmptyTable = () => {
12754
12811
  strokeLinejoin: "round"
12755
12812
  }
12756
12813
  ),
12757
- /* @__PURE__ */ jsx47(
12814
+ /* @__PURE__ */ jsx48(
12758
12815
  "path",
12759
12816
  {
12760
12817
  opacity: "0.6",
@@ -12765,7 +12822,7 @@ var IcEmptyTable = () => {
12765
12822
  strokeLinejoin: "round"
12766
12823
  }
12767
12824
  ),
12768
- /* @__PURE__ */ jsx47(
12825
+ /* @__PURE__ */ jsx48(
12769
12826
  "path",
12770
12827
  {
12771
12828
  opacity: "0.6",
@@ -12776,14 +12833,14 @@ var IcEmptyTable = () => {
12776
12833
  strokeLinejoin: "round"
12777
12834
  }
12778
12835
  ),
12779
- /* @__PURE__ */ jsx47(
12836
+ /* @__PURE__ */ jsx48(
12780
12837
  "path",
12781
12838
  {
12782
12839
  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",
12783
12840
  fill: "white"
12784
12841
  }
12785
12842
  ),
12786
- /* @__PURE__ */ jsx47(
12843
+ /* @__PURE__ */ jsx48(
12787
12844
  "path",
12788
12845
  {
12789
12846
  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",
@@ -12793,7 +12850,7 @@ var IcEmptyTable = () => {
12793
12850
  strokeLinejoin: "round"
12794
12851
  }
12795
12852
  ),
12796
- /* @__PURE__ */ jsx47(
12853
+ /* @__PURE__ */ jsx48(
12797
12854
  "path",
12798
12855
  {
12799
12856
  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",
@@ -12802,7 +12859,7 @@ var IcEmptyTable = () => {
12802
12859
  strokeLinejoin: "round"
12803
12860
  }
12804
12861
  ),
12805
- /* @__PURE__ */ jsx47(
12862
+ /* @__PURE__ */ jsx48(
12806
12863
  "path",
12807
12864
  {
12808
12865
  opacity: "0.6",
@@ -12813,7 +12870,7 @@ var IcEmptyTable = () => {
12813
12870
  strokeLinejoin: "round"
12814
12871
  }
12815
12872
  ),
12816
- /* @__PURE__ */ jsx47(
12873
+ /* @__PURE__ */ jsx48(
12817
12874
  "path",
12818
12875
  {
12819
12876
  opacity: "0.6",
@@ -12824,7 +12881,7 @@ var IcEmptyTable = () => {
12824
12881
  strokeLinejoin: "round"
12825
12882
  }
12826
12883
  ),
12827
- /* @__PURE__ */ jsx47(
12884
+ /* @__PURE__ */ jsx48(
12828
12885
  "path",
12829
12886
  {
12830
12887
  opacity: "0.6",
@@ -12835,7 +12892,7 @@ var IcEmptyTable = () => {
12835
12892
  strokeLinejoin: "round"
12836
12893
  }
12837
12894
  ),
12838
- /* @__PURE__ */ jsx47(
12895
+ /* @__PURE__ */ jsx48(
12839
12896
  "path",
12840
12897
  {
12841
12898
  opacity: "0.6",
@@ -12846,7 +12903,7 @@ var IcEmptyTable = () => {
12846
12903
  strokeLinejoin: "round"
12847
12904
  }
12848
12905
  ),
12849
- /* @__PURE__ */ jsx47(
12906
+ /* @__PURE__ */ jsx48(
12850
12907
  "path",
12851
12908
  {
12852
12909
  opacity: "0.6",
@@ -12857,7 +12914,7 @@ var IcEmptyTable = () => {
12857
12914
  strokeLinejoin: "round"
12858
12915
  }
12859
12916
  ),
12860
- /* @__PURE__ */ jsx47(
12917
+ /* @__PURE__ */ jsx48(
12861
12918
  "path",
12862
12919
  {
12863
12920
  opacity: "0.6",
@@ -12868,7 +12925,7 @@ var IcEmptyTable = () => {
12868
12925
  strokeLinejoin: "round"
12869
12926
  }
12870
12927
  ),
12871
- /* @__PURE__ */ jsx47(
12928
+ /* @__PURE__ */ jsx48(
12872
12929
  "path",
12873
12930
  {
12874
12931
  opacity: "0.6",
@@ -12879,7 +12936,7 @@ var IcEmptyTable = () => {
12879
12936
  strokeLinejoin: "round"
12880
12937
  }
12881
12938
  ),
12882
- /* @__PURE__ */ jsx47(
12939
+ /* @__PURE__ */ jsx48(
12883
12940
  "path",
12884
12941
  {
12885
12942
  opacity: "0.6",
@@ -12890,7 +12947,7 @@ var IcEmptyTable = () => {
12890
12947
  strokeLinejoin: "round"
12891
12948
  }
12892
12949
  ),
12893
- /* @__PURE__ */ jsx47(
12950
+ /* @__PURE__ */ jsx48(
12894
12951
  "path",
12895
12952
  {
12896
12953
  opacity: "0.6",
@@ -12901,14 +12958,14 @@ var IcEmptyTable = () => {
12901
12958
  strokeLinejoin: "round"
12902
12959
  }
12903
12960
  ),
12904
- /* @__PURE__ */ jsx47(
12961
+ /* @__PURE__ */ jsx48(
12905
12962
  "path",
12906
12963
  {
12907
12964
  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",
12908
12965
  fill: "white"
12909
12966
  }
12910
12967
  ),
12911
- /* @__PURE__ */ jsx47(
12968
+ /* @__PURE__ */ jsx48(
12912
12969
  "path",
12913
12970
  {
12914
12971
  "fill-rule": "evenodd",
@@ -12917,7 +12974,7 @@ var IcEmptyTable = () => {
12917
12974
  fill: "white"
12918
12975
  }
12919
12976
  ),
12920
- /* @__PURE__ */ jsx47(
12977
+ /* @__PURE__ */ jsx48(
12921
12978
  "path",
12922
12979
  {
12923
12980
  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",
@@ -12928,7 +12985,7 @@ var IcEmptyTable = () => {
12928
12985
  }
12929
12986
  )
12930
12987
  ] }),
12931
- /* @__PURE__ */ jsx47("defs", { children: /* @__PURE__ */ jsx47("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx47(
12988
+ /* @__PURE__ */ jsx48("defs", { children: /* @__PURE__ */ jsx48("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx48(
12932
12989
  "rect",
12933
12990
  {
12934
12991
  width: "215",
@@ -12943,14 +13000,14 @@ var IcEmptyTable = () => {
12943
13000
  };
12944
13001
 
12945
13002
  // src/widgets/advanced/table/empty-table.tsx
12946
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
13003
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12947
13004
  var EmptyTable = () => {
12948
13005
  const { t: t3 } = useI18n();
12949
- return /* @__PURE__ */ jsxs27("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
12950
- /* @__PURE__ */ jsx48(IcEmptyTable, {}),
12951
- /* @__PURE__ */ jsxs27("div", { children: [
12952
- /* @__PURE__ */ jsx48("p", {}),
12953
- /* @__PURE__ */ jsx48("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13006
+ return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13007
+ /* @__PURE__ */ jsx49(IcEmptyTable, {}),
13008
+ /* @__PURE__ */ jsxs28("div", { children: [
13009
+ /* @__PURE__ */ jsx49("p", {}),
13010
+ /* @__PURE__ */ jsx49("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
12954
13011
  ] })
12955
13012
  ] });
12956
13013
  };
@@ -14769,10 +14826,10 @@ function s3(o3, s4, t3) {
14769
14826
 
14770
14827
  // src/widgets/advanced/login/shared/button.tsx
14771
14828
  import * as React2 from "react";
14772
- import { jsx as jsx49 } from "react/jsx-runtime";
14829
+ import { jsx as jsx50 } from "react/jsx-runtime";
14773
14830
  var Button = React2.forwardRef(
14774
14831
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
14775
- return /* @__PURE__ */ jsx49(
14832
+ return /* @__PURE__ */ jsx50(
14776
14833
  "button",
14777
14834
  {
14778
14835
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -14782,7 +14839,7 @@ var Button = React2.forwardRef(
14782
14839
  ref,
14783
14840
  type,
14784
14841
  ...props,
14785
- children: isLoading ? /* @__PURE__ */ jsx49(LoadingIcon, { width: 20, height: 20 }) : children
14842
+ children: isLoading ? /* @__PURE__ */ jsx50(LoadingIcon, { width: 20, height: 20 }) : children
14786
14843
  }
14787
14844
  );
14788
14845
  }
@@ -14791,7 +14848,7 @@ Button.displayName = "Button";
14791
14848
 
14792
14849
  // src/widgets/advanced/login/shared/text-input.tsx
14793
14850
  import { useState as useState5 } from "react";
14794
- import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
14851
+ import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
14795
14852
  function TextInput(props) {
14796
14853
  const {
14797
14854
  className,
@@ -14805,17 +14862,17 @@ function TextInput(props) {
14805
14862
  required
14806
14863
  } = props;
14807
14864
  const [showPassword, setShowPassword] = useState5(false);
14808
- return /* @__PURE__ */ jsxs28("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14809
- label && /* @__PURE__ */ jsxs28("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14865
+ return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14866
+ label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14810
14867
  label,
14811
- required ? /* @__PURE__ */ jsx50("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14868
+ required ? /* @__PURE__ */ jsx51("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14812
14869
  ] }),
14813
- /* @__PURE__ */ jsxs28(
14870
+ /* @__PURE__ */ jsxs29(
14814
14871
  "div",
14815
14872
  {
14816
14873
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
14817
14874
  children: [
14818
- /* @__PURE__ */ jsx50(
14875
+ /* @__PURE__ */ jsx51(
14819
14876
  "input",
14820
14877
  {
14821
14878
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -14824,18 +14881,18 @@ function TextInput(props) {
14824
14881
  ...register(name2)
14825
14882
  }
14826
14883
  ),
14827
- type === "password" && /* @__PURE__ */ jsx50(
14884
+ type === "password" && /* @__PURE__ */ jsx51(
14828
14885
  "span",
14829
14886
  {
14830
14887
  onClick: () => setShowPassword(!showPassword),
14831
14888
  className: "focus:outline-none",
14832
- children: showPassword ? /* @__PURE__ */ jsx50(EyeClosedIcon, {}) : /* @__PURE__ */ jsx50(EyeIcon, {})
14889
+ children: showPassword ? /* @__PURE__ */ jsx51(EyeClosedIcon, {}) : /* @__PURE__ */ jsx51(EyeIcon, {})
14833
14890
  }
14834
14891
  )
14835
14892
  ]
14836
14893
  }
14837
14894
  ),
14838
- errors?.[name2]?.message && /* @__PURE__ */ jsx50(
14895
+ errors?.[name2]?.message && /* @__PURE__ */ jsx51(
14839
14896
  "p",
14840
14897
  {
14841
14898
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -14847,7 +14904,7 @@ function TextInput(props) {
14847
14904
 
14848
14905
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
14849
14906
  import { useEffect as useEffect7 } from "react";
14850
- import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
14907
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14851
14908
  var STAY_LOGIN_IN = "stayLoginIn";
14852
14909
  function FormOptions({
14853
14910
  forgotPasswordUrl,
@@ -14873,9 +14930,9 @@ function FormOptions({
14873
14930
  useEffect7(() => {
14874
14931
  localStorage.setItem(STAY_LOGIN_IN, "false");
14875
14932
  }, []);
14876
- return /* @__PURE__ */ jsxs29("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14877
- /* @__PURE__ */ jsxs29("label", { className: "flex gap-3", children: [
14878
- /* @__PURE__ */ jsx51(
14933
+ return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14934
+ /* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
14935
+ /* @__PURE__ */ jsx52(
14879
14936
  "input",
14880
14937
  {
14881
14938
  checked: stayLoginIn,
@@ -14884,9 +14941,9 @@ function FormOptions({
14884
14941
  onChange: handleCheckboxChange
14885
14942
  }
14886
14943
  ),
14887
- /* @__PURE__ */ jsx51("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14944
+ /* @__PURE__ */ jsx52("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14888
14945
  ] }),
14889
- !hideForgotPassword && /* @__PURE__ */ jsx51("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14946
+ !hideForgotPassword && /* @__PURE__ */ jsx52("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14890
14947
  ] });
14891
14948
  }
14892
14949
 
@@ -14902,7 +14959,7 @@ var loginSchema = z2.object({
14902
14959
  });
14903
14960
 
14904
14961
  // src/widgets/advanced/login/provider/credential/index.tsx
14905
- import { Fragment as Fragment5, jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14962
+ import { Fragment as Fragment5, jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
14906
14963
  var CredentialLogin = (props) => {
14907
14964
  const {
14908
14965
  shouldRenderDivider,
@@ -14922,16 +14979,16 @@ var CredentialLogin = (props) => {
14922
14979
  mode: "onChange",
14923
14980
  resolver: s3(loginSchema)
14924
14981
  });
14925
- return /* @__PURE__ */ jsxs30(Fragment5, { children: [
14926
- /* @__PURE__ */ jsxs30(
14982
+ return /* @__PURE__ */ jsxs31(Fragment5, { children: [
14983
+ /* @__PURE__ */ jsxs31(
14927
14984
  "form",
14928
14985
  {
14929
14986
  onSubmit: handleSubmit(onSubmit ?? (() => {
14930
14987
  })),
14931
14988
  className: `flex w-full h-fit flex-col gap-10`,
14932
14989
  children: [
14933
- /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-6", children: [
14934
- /* @__PURE__ */ jsx52(
14990
+ /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
14991
+ /* @__PURE__ */ jsx53(
14935
14992
  TextInput,
14936
14993
  {
14937
14994
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -14944,7 +15001,7 @@ var CredentialLogin = (props) => {
14944
15001
  errors
14945
15002
  }
14946
15003
  ),
14947
- /* @__PURE__ */ jsx52(
15004
+ /* @__PURE__ */ jsx53(
14948
15005
  TextInput,
14949
15006
  {
14950
15007
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -14957,7 +15014,7 @@ var CredentialLogin = (props) => {
14957
15014
  errors
14958
15015
  }
14959
15016
  ),
14960
- /* @__PURE__ */ jsx52(
15017
+ /* @__PURE__ */ jsx53(
14961
15018
  FormOptions,
14962
15019
  {
14963
15020
  forgotPasswordUrl,
@@ -14967,7 +15024,7 @@ var CredentialLogin = (props) => {
14967
15024
  }
14968
15025
  )
14969
15026
  ] }),
14970
- /* @__PURE__ */ jsx52("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx52(
15027
+ /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx53(
14971
15028
  Button,
14972
15029
  {
14973
15030
  type: "submit",
@@ -14979,56 +15036,56 @@ var CredentialLogin = (props) => {
14979
15036
  ]
14980
15037
  }
14981
15038
  ),
14982
- shouldRenderDivider && /* @__PURE__ */ jsxs30("div", { className: "flex justify-center relative", children: [
14983
- /* @__PURE__ */ jsx52("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
14984
- /* @__PURE__ */ jsx52("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15039
+ shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
15040
+ /* @__PURE__ */ jsx53("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15041
+ /* @__PURE__ */ jsx53("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
14985
15042
  ] })
14986
15043
  ] });
14987
15044
  };
14988
15045
 
14989
15046
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
14990
- import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15047
+ import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
14991
15048
  function GoogleButton(props) {
14992
15049
  const { onLoginGoogle, db } = props;
14993
- return /* @__PURE__ */ jsxs31(
15050
+ return /* @__PURE__ */ jsxs32(
14994
15051
  "button",
14995
15052
  {
14996
15053
  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",
14997
15054
  onClick: () => onLoginGoogle?.(db),
14998
15055
  children: [
14999
- /* @__PURE__ */ jsx53(GoogleIcon, { className: "google-icon" }),
15000
- /* @__PURE__ */ jsx53("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15056
+ /* @__PURE__ */ jsx54(GoogleIcon, { className: "google-icon" }),
15057
+ /* @__PURE__ */ jsx54("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15001
15058
  ]
15002
15059
  }
15003
15060
  );
15004
15061
  }
15005
15062
 
15006
15063
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15007
- import { Fragment as Fragment6, jsx as jsx54 } from "react/jsx-runtime";
15064
+ import { Fragment as Fragment6, jsx as jsx55 } from "react/jsx-runtime";
15008
15065
  function SocialRedirect(props) {
15009
15066
  const { db, onLoginSocial } = props;
15010
15067
  onLoginSocial && onLoginSocial(String(db));
15011
- return /* @__PURE__ */ jsx54(Fragment6, {});
15068
+ return /* @__PURE__ */ jsx55(Fragment6, {});
15012
15069
  }
15013
15070
 
15014
15071
  // src/widgets/advanced/login/provider/google/index.tsx
15015
- import { Fragment as Fragment7, jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
15072
+ import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15016
15073
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15017
- return /* @__PURE__ */ jsxs32(Fragment7, { children: [
15018
- /* @__PURE__ */ jsx55(GoogleButton, { db, onLoginGoogle }),
15019
- /* @__PURE__ */ jsx55(SocialRedirect, { db, onLoginSocial })
15074
+ return /* @__PURE__ */ jsxs33(Fragment7, { children: [
15075
+ /* @__PURE__ */ jsx56(GoogleButton, { db, onLoginGoogle }),
15076
+ /* @__PURE__ */ jsx56(SocialRedirect, { db, onLoginSocial })
15020
15077
  ] });
15021
15078
  };
15022
15079
 
15023
15080
  // src/widgets/advanced/login/index.tsx
15024
- import { jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15081
+ import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15025
15082
  var LoginProviderMapping = {
15026
15083
  google: GoogleLogin
15027
15084
  };
15028
15085
  var Login = (props) => {
15029
15086
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15030
- return /* @__PURE__ */ jsxs33("div", { className: "w-full space-y-8", children: [
15031
- /* @__PURE__ */ jsx56(
15087
+ return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
15088
+ /* @__PURE__ */ jsx57(
15032
15089
  CredentialLogin,
15033
15090
  {
15034
15091
  ...props,
@@ -15038,7 +15095,7 @@ var Login = (props) => {
15038
15095
  ),
15039
15096
  providers.map((provider, index4) => {
15040
15097
  const ProviderComp = LoginProviderMapping[provider];
15041
- return /* @__PURE__ */ jsx56(
15098
+ return /* @__PURE__ */ jsx57(
15042
15099
  ProviderComp,
15043
15100
  {
15044
15101
  db,
@@ -15052,7 +15109,7 @@ var Login = (props) => {
15052
15109
  };
15053
15110
 
15054
15111
  // src/widgets/advanced/search/popup-filter/index.tsx
15055
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15112
+ import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15056
15113
  var PopupFilter = ({
15057
15114
  handleAddTagSearch,
15058
15115
  removeSearchItems,
@@ -15063,7 +15120,7 @@ var PopupFilter = ({
15063
15120
  fields
15064
15121
  }) => {
15065
15122
  const { t: t3 } = useI18n();
15066
- return /* @__PURE__ */ jsx57(
15123
+ return /* @__PURE__ */ jsx58(
15067
15124
  "div",
15068
15125
  {
15069
15126
  style: {
@@ -15073,25 +15130,25 @@ var PopupFilter = ({
15073
15130
  zIndex: 33
15074
15131
  },
15075
15132
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15076
- children: /* @__PURE__ */ jsxs34(
15133
+ children: /* @__PURE__ */ jsxs35(
15077
15134
  "div",
15078
15135
  {
15079
15136
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15080
15137
  children: [
15081
- filterBy?.length > 0 && /* @__PURE__ */ jsxs34("div", { className: "filter-by w-full px-3", children: [
15082
- /* @__PURE__ */ jsxs34("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15083
- /* @__PURE__ */ jsx57(FilterIcon, { className: "filter-by-icon text-primary" }),
15084
- /* @__PURE__ */ jsx57("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15138
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
15139
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15140
+ /* @__PURE__ */ jsx58(FilterIcon, { className: "filter-by-icon text-primary" }),
15141
+ /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15085
15142
  ] }),
15086
15143
  filterBy?.reduce((acc, item, index4, array) => {
15087
15144
  const prevItem = array[index4 - 1];
15088
15145
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15089
15146
  const isExist = item?.active;
15090
15147
  if (isDifferentGroup) {
15091
- acc.push(/* @__PURE__ */ jsx57("hr", { className: "my-2" }, "separator-" + index4));
15148
+ acc.push(/* @__PURE__ */ jsx58("hr", { className: "my-2" }, "separator-" + index4));
15092
15149
  }
15093
15150
  acc.push(
15094
- /* @__PURE__ */ jsxs34(
15151
+ /* @__PURE__ */ jsxs35(
15095
15152
  "button",
15096
15153
  {
15097
15154
  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)]"}`,
@@ -15116,8 +15173,8 @@ var PopupFilter = ({
15116
15173
  });
15117
15174
  },
15118
15175
  children: [
15119
- isExist && /* @__PURE__ */ jsx57(CheckIcon, {}),
15120
- /* @__PURE__ */ jsx57("span", { className: "text-sm", children: item?.string ?? item?.help })
15176
+ isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15177
+ /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string ?? item?.help })
15121
15178
  ]
15122
15179
  },
15123
15180
  "filter-" + index4
@@ -15126,16 +15183,16 @@ var PopupFilter = ({
15126
15183
  return acc;
15127
15184
  }, [])
15128
15185
  ] }),
15129
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx57("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15130
- groupBy?.length > 0 && /* @__PURE__ */ jsxs34("div", { className: "group-by w-full px-3", children: [
15131
- /* @__PURE__ */ jsxs34("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15132
- /* @__PURE__ */ jsx57(GroupByIcon, { className: "group-by-icon text-primary" }),
15133
- /* @__PURE__ */ jsx57("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15186
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx58("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15187
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
15188
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15189
+ /* @__PURE__ */ jsx58(GroupByIcon, { className: "group-by-icon text-primary" }),
15190
+ /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15134
15191
  ] }),
15135
15192
  groupBy?.map((item, index4) => {
15136
15193
  const isExist = item?.active;
15137
15194
  if (!item.string) return;
15138
- return /* @__PURE__ */ jsxs34(
15195
+ return /* @__PURE__ */ jsxs35(
15139
15196
  "button",
15140
15197
  {
15141
15198
  onClick: () => {
@@ -15159,8 +15216,8 @@ var PopupFilter = ({
15159
15216
  },
15160
15217
  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)]"}`,
15161
15218
  children: [
15162
- isExist && /* @__PURE__ */ jsx57(CheckIcon, {}),
15163
- /* @__PURE__ */ jsx57("span", { className: "text-sm", children: item?.string })
15219
+ isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15220
+ /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string })
15164
15221
  ]
15165
15222
  },
15166
15223
  "groupby-" + index4 + 1
@@ -15179,7 +15236,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15179
15236
 
15180
15237
  // src/widgets/advanced/search/tag-search/index.tsx
15181
15238
  import { Fragment as Fragment8 } from "react";
15182
- import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15239
+ import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15183
15240
  var TagSearch = ({
15184
15241
  removeSearchItems,
15185
15242
  selectedTags,
@@ -15190,23 +15247,23 @@ var TagSearch = ({
15190
15247
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15191
15248
  if (tag?.values?.length > 0) {
15192
15249
  if (tag?.type !== "group_by") {
15193
- return /* @__PURE__ */ jsxs35(
15250
+ return /* @__PURE__ */ jsxs36(
15194
15251
  "div",
15195
15252
  {
15196
15253
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15197
15254
  children: [
15198
- /* @__PURE__ */ jsx58("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__ */ jsx58(FilterIcon, {}) }),
15199
- /* @__PURE__ */ jsx58("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15200
- return /* @__PURE__ */ jsxs35(Fragment8, { children: [
15201
- /* @__PURE__ */ jsx58("span", { children: value }),
15202
- idx < tag.values.length - 1 && /* @__PURE__ */ jsxs35("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15255
+ /* @__PURE__ */ jsx59("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ jsx59(FilterIcon, {}) }),
15256
+ /* @__PURE__ */ jsx59("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15257
+ return /* @__PURE__ */ jsxs36(Fragment8, { children: [
15258
+ /* @__PURE__ */ jsx59("span", { children: value }),
15259
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15203
15260
  " ",
15204
15261
  instance.t("or"),
15205
15262
  " "
15206
15263
  ] })
15207
15264
  ] }, idx);
15208
15265
  }) }),
15209
- /* @__PURE__ */ jsx58(
15266
+ /* @__PURE__ */ jsx59(
15210
15267
  "button",
15211
15268
  {
15212
15269
  className: "px-2 text-sm font-bold",
@@ -15223,7 +15280,7 @@ var TagSearch = ({
15223
15280
  );
15224
15281
  }
15225
15282
  },
15226
- children: /* @__PURE__ */ jsx58(CloseIcon, { className: "size-4 cursor-pointer" })
15283
+ children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15227
15284
  }
15228
15285
  )
15229
15286
  ]
@@ -15231,26 +15288,26 @@ var TagSearch = ({
15231
15288
  "selected-tag-" + index4
15232
15289
  );
15233
15290
  } else if (tag?.type === "group_by") {
15234
- return /* @__PURE__ */ jsx58(
15291
+ return /* @__PURE__ */ jsx59(
15235
15292
  "div",
15236
15293
  {
15237
15294
  className: "flex min-h-full overflow-hidden",
15238
- children: /* @__PURE__ */ jsx58("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15239
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs35(
15295
+ children: /* @__PURE__ */ jsx59("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15296
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
15240
15297
  "div",
15241
15298
  {
15242
15299
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15243
15300
  children: [
15244
- /* @__PURE__ */ jsx58("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx58(GroupByIcon, {}) }),
15245
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs35(Fragment9, { children: [
15246
- /* @__PURE__ */ jsx58("span", { children: string }),
15247
- idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs35("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15301
+ /* @__PURE__ */ jsx59("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx59(GroupByIcon, {}) }),
15302
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment9, { children: [
15303
+ /* @__PURE__ */ jsx59("span", { children: string }),
15304
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15248
15305
  " ",
15249
15306
  "> ",
15250
15307
  " "
15251
15308
  ] })
15252
15309
  ] })),
15253
- /* @__PURE__ */ jsx58(
15310
+ /* @__PURE__ */ jsx59(
15254
15311
  "button",
15255
15312
  {
15256
15313
  className: "pr-2 text-sm font-bold",
@@ -15265,7 +15322,7 @@ var TagSearch = ({
15265
15322
  );
15266
15323
  }
15267
15324
  },
15268
- children: /* @__PURE__ */ jsx58(CloseIcon, { className: "size-4 cursor-pointer" })
15325
+ children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15269
15326
  }
15270
15327
  )
15271
15328
  ]
@@ -15282,7 +15339,7 @@ var TagSearch = ({
15282
15339
  };
15283
15340
 
15284
15341
  // src/widgets/advanced/search/search-list/index.tsx
15285
- import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15342
+ import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15286
15343
  var SearchList = ({
15287
15344
  handleAddTagSearch,
15288
15345
  handleMouseEnter,
@@ -15292,7 +15349,7 @@ var SearchList = ({
15292
15349
  hoveredIndexSearchList
15293
15350
  }) => {
15294
15351
  const { t: t3 } = useI18n();
15295
- return /* @__PURE__ */ jsx59(
15352
+ return /* @__PURE__ */ jsx60(
15296
15353
  "div",
15297
15354
  {
15298
15355
  style: {
@@ -15304,7 +15361,7 @@ var SearchList = ({
15304
15361
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15305
15362
  return;
15306
15363
  }
15307
- return /* @__PURE__ */ jsxs36(
15364
+ return /* @__PURE__ */ jsxs37(
15308
15365
  "button",
15309
15366
  {
15310
15367
  onClick: () => {
@@ -15326,12 +15383,12 @@ var SearchList = ({
15326
15383
  children: [
15327
15384
  t3("search"),
15328
15385
  " ",
15329
- /* @__PURE__ */ jsx59("span", { className: "font-bold", children: searchItem?.title }),
15386
+ /* @__PURE__ */ jsx60("span", { className: "font-bold", children: searchItem?.title }),
15330
15387
  " ",
15331
15388
  t3("for"),
15332
15389
  ":",
15333
15390
  " ",
15334
- /* @__PURE__ */ jsx59(
15391
+ /* @__PURE__ */ jsx60(
15335
15392
  "span",
15336
15393
  {
15337
15394
  style: {
@@ -15351,7 +15408,7 @@ var SearchList = ({
15351
15408
  };
15352
15409
 
15353
15410
  // src/widgets/advanced/search/search-item/index.tsx
15354
- import { Fragment as Fragment10, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15411
+ import { Fragment as Fragment10, jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15355
15412
  var Search = ({
15356
15413
  removeSearchItems,
15357
15414
  selectedTags,
@@ -15468,15 +15525,15 @@ var Search = ({
15468
15525
  setDidInit(true);
15469
15526
  setIsReadyFormatDomain(true);
15470
15527
  }, [aid, filterBy, fieldsList]);
15471
- return /* @__PURE__ */ jsxs37(
15528
+ return /* @__PURE__ */ jsxs38(
15472
15529
  "div",
15473
15530
  {
15474
15531
  ref: popupFilterRef,
15475
15532
  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)]`,
15476
15533
  children: [
15477
- /* @__PURE__ */ jsx60("div", { className: "size-5", children: /* @__PURE__ */ jsx60(SearchIcon, {}) }),
15478
- /* @__PURE__ */ jsxs37("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15479
- /* @__PURE__ */ jsx60(
15534
+ /* @__PURE__ */ jsx61("div", { className: "size-5", children: /* @__PURE__ */ jsx61(SearchIcon, {}) }),
15535
+ /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15536
+ /* @__PURE__ */ jsx61(
15480
15537
  TagSearch,
15481
15538
  {
15482
15539
  removeSearchItems,
@@ -15486,7 +15543,7 @@ var Search = ({
15486
15543
  setGroupBy
15487
15544
  }
15488
15545
  ),
15489
- /* @__PURE__ */ jsx60(
15546
+ /* @__PURE__ */ jsx61(
15490
15547
  "input",
15491
15548
  {
15492
15549
  value: searchString,
@@ -15499,7 +15556,7 @@ var Search = ({
15499
15556
  onKeyUp: (e3) => e3.preventDefault()
15500
15557
  }
15501
15558
  ),
15502
- /* @__PURE__ */ jsx60(
15559
+ /* @__PURE__ */ jsx61(
15503
15560
  SearchList,
15504
15561
  {
15505
15562
  handleAddTagSearch,
@@ -15508,8 +15565,8 @@ var Search = ({
15508
15565
  }
15509
15566
  )
15510
15567
  ] }),
15511
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs37(Fragment10, { children: [
15512
- /* @__PURE__ */ jsxs37(
15568
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs38(Fragment10, { children: [
15569
+ /* @__PURE__ */ jsxs38(
15513
15570
  "div",
15514
15571
  {
15515
15572
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -15518,8 +15575,8 @@ var Search = ({
15518
15575
  setShowPopupFilter((prev2) => !prev2);
15519
15576
  },
15520
15577
  children: [
15521
- /* @__PURE__ */ jsx60("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15522
- /* @__PURE__ */ jsx60(
15578
+ /* @__PURE__ */ jsx61("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15579
+ /* @__PURE__ */ jsx61(
15523
15580
  ChevronBottomIcon,
15524
15581
  {
15525
15582
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -15528,7 +15585,7 @@ var Search = ({
15528
15585
  ]
15529
15586
  }
15530
15587
  ),
15531
- showPopupFilter && /* @__PURE__ */ jsx60(
15588
+ showPopupFilter && /* @__PURE__ */ jsx61(
15532
15589
  PopupFilter,
15533
15590
  {
15534
15591
  handleAddTagSearch,
@@ -15547,30 +15604,30 @@ var Search = ({
15547
15604
  };
15548
15605
 
15549
15606
  // src/widgets/basic/active-badge-field/active-badge.tsx
15550
- import { Fragment as Fragment11, jsx as jsx61 } from "react/jsx-runtime";
15607
+ import { Fragment as Fragment11, jsx as jsx62 } from "react/jsx-runtime";
15551
15608
  var ActiveBadgeField = (props) => {
15552
15609
  const { t: t3 } = useI18n();
15553
15610
  const {
15554
15611
  type,
15555
15612
  className
15556
15613
  } = props;
15557
- if (type === void 0) return /* @__PURE__ */ jsx61(Fragment11, {});
15614
+ if (type === void 0) return /* @__PURE__ */ jsx62(Fragment11, {});
15558
15615
  const typeStyle = type ? "text-green-500" : "text-red-500";
15559
15616
  const text = type ? t3("active") : t3("in_active");
15560
- return /* @__PURE__ */ jsx61("div", { className: `${typeStyle} ${className}`, children: text });
15617
+ return /* @__PURE__ */ jsx62("div", { className: `${typeStyle} ${className}`, children: text });
15561
15618
  };
15562
15619
 
15563
15620
  // src/widgets/common/modal-layer.tsx
15564
15621
  import { Fragment as Fragment12 } from "react";
15565
15622
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
15566
- import { jsx as jsx62, jsxs as jsxs38 } from "react/jsx-runtime";
15623
+ import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
15567
15624
  var ModalLayer = ({
15568
15625
  isOpen,
15569
15626
  onClose,
15570
15627
  title,
15571
15628
  children
15572
15629
  }) => {
15573
- return /* @__PURE__ */ jsx62(
15630
+ return /* @__PURE__ */ jsx63(
15574
15631
  Transition,
15575
15632
  {
15576
15633
  show: isOpen,
@@ -15581,22 +15638,22 @@ var ModalLayer = ({
15581
15638
  leaveFrom: "transform scale-100 opacity-100",
15582
15639
  leaveTo: "transform scale-95 opacity-0",
15583
15640
  as: Fragment12,
15584
- children: /* @__PURE__ */ jsx62(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx62(DialogPanel, { children: /* @__PURE__ */ jsxs38("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15585
- /* @__PURE__ */ jsx62("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15586
- /* @__PURE__ */ jsx62("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs38("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: [
15587
- /* @__PURE__ */ jsxs38(
15641
+ children: /* @__PURE__ */ jsx63(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx63(DialogPanel, { children: /* @__PURE__ */ jsxs39("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15642
+ /* @__PURE__ */ jsx63("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15643
+ /* @__PURE__ */ jsx63("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs39("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
15644
+ /* @__PURE__ */ jsxs39(
15588
15645
  "div",
15589
15646
  {
15590
15647
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
15591
15648
  children: [
15592
- title && /* @__PURE__ */ jsx62("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15593
- /* @__PURE__ */ jsx62(
15649
+ title && /* @__PURE__ */ jsx63("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15650
+ /* @__PURE__ */ jsx63(
15594
15651
  "button",
15595
15652
  {
15596
15653
  onClick: onClose,
15597
15654
  "aria-label": "Close",
15598
15655
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
15599
- children: /* @__PURE__ */ jsx62(CloseIcon, {})
15656
+ children: /* @__PURE__ */ jsx63(CloseIcon, {})
15600
15657
  }
15601
15658
  )
15602
15659
  ]
@@ -15610,7 +15667,7 @@ var ModalLayer = ({
15610
15667
  };
15611
15668
 
15612
15669
  // src/widgets/common/modal-confirm.tsx
15613
- import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
15670
+ import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15614
15671
  var ModalConfirm = ({
15615
15672
  name: name2,
15616
15673
  isShowModal,
@@ -15624,7 +15681,7 @@ var ModalConfirm = ({
15624
15681
  const renderButtonAction = (name3) => {
15625
15682
  switch (name3) {
15626
15683
  case "duplicate":
15627
- return /* @__PURE__ */ jsxs39(
15684
+ return /* @__PURE__ */ jsxs40(
15628
15685
  "button",
15629
15686
  {
15630
15687
  type: "button",
@@ -15632,13 +15689,13 @@ var ModalConfirm = ({
15632
15689
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15633
15690
  disabled: isLoading,
15634
15691
  children: [
15635
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
15636
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15692
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15693
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15637
15694
  ]
15638
15695
  }
15639
15696
  );
15640
15697
  case "archive":
15641
- return /* @__PURE__ */ jsxs39(
15698
+ return /* @__PURE__ */ jsxs40(
15642
15699
  "button",
15643
15700
  {
15644
15701
  type: "button",
@@ -15646,13 +15703,13 @@ var ModalConfirm = ({
15646
15703
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15647
15704
  disabled: isLoading,
15648
15705
  children: [
15649
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
15650
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15706
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15707
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15651
15708
  ]
15652
15709
  }
15653
15710
  );
15654
15711
  case "unarchive":
15655
- return /* @__PURE__ */ jsxs39(
15712
+ return /* @__PURE__ */ jsxs40(
15656
15713
  "button",
15657
15714
  {
15658
15715
  type: "button",
@@ -15660,13 +15717,13 @@ var ModalConfirm = ({
15660
15717
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15661
15718
  disabled: isLoading,
15662
15719
  children: [
15663
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
15664
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15720
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15721
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15665
15722
  ]
15666
15723
  }
15667
15724
  );
15668
15725
  case "delete":
15669
- return /* @__PURE__ */ jsxs39(
15726
+ return /* @__PURE__ */ jsxs40(
15670
15727
  "button",
15671
15728
  {
15672
15729
  type: "button",
@@ -15674,8 +15731,8 @@ var ModalConfirm = ({
15674
15731
  className: "button-primary flex-1 flex items-center justify-center gap-2",
15675
15732
  disabled: isLoading,
15676
15733
  children: [
15677
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
15678
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15734
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15735
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15679
15736
  ]
15680
15737
  }
15681
15738
  );
@@ -15683,13 +15740,13 @@ var ModalConfirm = ({
15683
15740
  break;
15684
15741
  }
15685
15742
  };
15686
- return /* @__PURE__ */ jsx63(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs39("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15687
- /* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-[4px] items-center", children: [
15688
- /* @__PURE__ */ jsx63("div", { className: "text-[18px] font-bold", children: title }),
15689
- /* @__PURE__ */ jsx63("p", { className: "text-[16px]", children: content })
15743
+ return /* @__PURE__ */ jsx64(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15744
+ /* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
15745
+ /* @__PURE__ */ jsx64("div", { className: "text-[18px] font-bold", children: title }),
15746
+ /* @__PURE__ */ jsx64("p", { className: "text-[16px]", children: content })
15690
15747
  ] }),
15691
- /* @__PURE__ */ jsxs39("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15692
- /* @__PURE__ */ jsx63(
15748
+ /* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15749
+ /* @__PURE__ */ jsx64(
15693
15750
  "button",
15694
15751
  {
15695
15752
  type: "button",
@@ -15705,8 +15762,8 @@ var ModalConfirm = ({
15705
15762
 
15706
15763
  // src/widgets/common/modal-detail.tsx
15707
15764
  import { useState as useState7 } from "react";
15708
- import { createPortal as createPortal2 } from "react-dom";
15709
- import { Fragment as Fragment13, jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15765
+ import { createPortal as createPortal3 } from "react-dom";
15766
+ import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15710
15767
  var ModalDetail = ({
15711
15768
  idToolTip,
15712
15769
  title,
@@ -15728,19 +15785,19 @@ var ModalDetail = ({
15728
15785
  sessionStorage.setItem("actionData", JSON.stringify(actionData));
15729
15786
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
15730
15787
  };
15731
- return createPortal2(
15732
- /* @__PURE__ */ jsx64(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs40("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15733
- /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15734
- /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs40("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: [
15735
- /* @__PURE__ */ jsxs40("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15736
- /* @__PURE__ */ jsxs40(
15788
+ return createPortal3(
15789
+ /* @__PURE__ */ jsx65(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15790
+ /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15791
+ /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs41("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
15792
+ /* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15793
+ /* @__PURE__ */ jsxs41(
15737
15794
  "div",
15738
15795
  {
15739
15796
  id: "modal-detail",
15740
15797
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
15741
15798
  children: [
15742
15799
  t3("detail_button"),
15743
- /* @__PURE__ */ jsx64(
15800
+ /* @__PURE__ */ jsx65(
15744
15801
  "button",
15745
15802
  {
15746
15803
  onClick: handleNavigateDetail,
@@ -15751,9 +15808,9 @@ var ModalDetail = ({
15751
15808
  ]
15752
15809
  }
15753
15810
  ),
15754
- /* @__PURE__ */ jsx64("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx64(CloseIcon, { className: "h-5 w-5" }) })
15811
+ /* @__PURE__ */ jsx65("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx65(CloseIcon, { className: "h-5 w-5" }) })
15755
15812
  ] }),
15756
- /* @__PURE__ */ jsx64("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15813
+ /* @__PURE__ */ jsx65("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15757
15814
  id: idForm,
15758
15815
  aid,
15759
15816
  model,
@@ -15768,7 +15825,7 @@ var ModalDetail = ({
15768
15825
 
15769
15826
  // src/widgets/common/loading-normal.tsx
15770
15827
  import { useEffect as useEffect9, useState as useState8 } from "react";
15771
- import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15828
+ import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15772
15829
  var LayerLoading = () => {
15773
15830
  const { t: t3 } = useI18n();
15774
15831
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -15778,21 +15835,21 @@ var LayerLoading = () => {
15778
15835
  }, 200);
15779
15836
  return () => clearInterval(interval);
15780
15837
  }, []);
15781
- return /* @__PURE__ */ jsx65("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx65("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs41("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15782
- /* @__PURE__ */ jsx65("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx65(
15838
+ return /* @__PURE__ */ jsx66("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx66("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs42("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15839
+ /* @__PURE__ */ jsx66("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx66(
15783
15840
  "div",
15784
15841
  {
15785
15842
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
15786
15843
  },
15787
15844
  index4
15788
15845
  )) }),
15789
- /* @__PURE__ */ jsx65("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15846
+ /* @__PURE__ */ jsx66("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15790
15847
  ] }) }) });
15791
15848
  };
15792
15849
 
15793
15850
  // src/widgets/common/loading-small.tsx
15794
15851
  import { useEffect as useEffect10, useState as useState9 } from "react";
15795
- import { jsx as jsx66 } from "react/jsx-runtime";
15852
+ import { jsx as jsx67 } from "react/jsx-runtime";
15796
15853
  var LoadingSmall = () => {
15797
15854
  const [activeIndex, setActiveIndex] = useState9(0);
15798
15855
  useEffect10(() => {
@@ -15801,7 +15858,7 @@ var LoadingSmall = () => {
15801
15858
  }, 200);
15802
15859
  return () => clearInterval(interval);
15803
15860
  }, []);
15804
- return /* @__PURE__ */ jsx66("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx66("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx66("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx66("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx66(
15861
+ return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx67("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx67(
15805
15862
  "div",
15806
15863
  {
15807
15864
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -15812,7 +15869,7 @@ var LoadingSmall = () => {
15812
15869
 
15813
15870
  // src/widgets/common/video-player.tsx
15814
15871
  import { useRef as useRef6, useState as useState10 } from "react";
15815
- import { jsx as jsx67, jsxs as jsxs42 } from "react/jsx-runtime";
15872
+ import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
15816
15873
  var VideoPlayer = ({ src }) => {
15817
15874
  const [isPlaying, setIsPlaying] = useState10(false);
15818
15875
  const videoRef = useRef6(null);
@@ -15839,8 +15896,8 @@ var VideoPlayer = ({ src }) => {
15839
15896
  }
15840
15897
  }
15841
15898
  };
15842
- return /* @__PURE__ */ jsxs42("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: [
15843
- /* @__PURE__ */ jsx67(
15899
+ return /* @__PURE__ */ jsxs43("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
15900
+ /* @__PURE__ */ jsx68(
15844
15901
  "video",
15845
15902
  {
15846
15903
  ref: videoRef,
@@ -15852,32 +15909,57 @@ var VideoPlayer = ({ src }) => {
15852
15909
  children: "Your browser does not support the video tag."
15853
15910
  }
15854
15911
  ),
15855
- /* @__PURE__ */ jsx67("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15856
- /* @__PURE__ */ jsx67("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__ */ jsx67("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx67(PlayIcon, {}) }) })
15912
+ /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15913
+ /* @__PURE__ */ jsx68("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx68("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx68(PlayIcon, {}) }) })
15857
15914
  ] });
15858
15915
  };
15859
15916
 
15860
15917
  // src/widgets/common/render-files.tsx
15861
- import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
15918
+ import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
15862
15919
  var ImageItem = ({
15863
15920
  filename,
15864
15921
  checksum,
15865
15922
  index: index4,
15866
15923
  src = null,
15867
- useGetImage
15924
+ useGetImage,
15925
+ size: size4,
15926
+ id,
15927
+ envFile,
15928
+ accessToken
15868
15929
  }) => {
15869
15930
  const { data: image } = useGetImage({
15870
15931
  data: { filename, checksum },
15871
15932
  queryKey: [`get-image-${""}`],
15872
15933
  src
15873
15934
  });
15874
- return /* @__PURE__ */ jsx68("div", { className: "relative group group/file", children: /* @__PURE__ */ jsx68(
15935
+ return /* @__PURE__ */ jsx69("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ jsx69(
15875
15936
  "img",
15876
15937
  {
15877
15938
  src: image || src,
15878
15939
  alt: filename,
15879
15940
  className: "w-32 h-32 object-cover rounded-md cursor-pointer"
15880
15941
  }
15942
+ ) : /* @__PURE__ */ jsxs44(
15943
+ "div",
15944
+ {
15945
+ onClick: (e3) => {
15946
+ e3?.stopPropagation();
15947
+ downloadFile(
15948
+ `${envFile}api/v2/web/content/${id}?download=true`,
15949
+ filename,
15950
+ accessToken
15951
+ );
15952
+ },
15953
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
15954
+ className: "flex items-center p-2 gap-2 overflow-hidden",
15955
+ children: [
15956
+ /* @__PURE__ */ jsx69(ImageIcon, {}),
15957
+ /* @__PURE__ */ jsxs44("div", { children: [
15958
+ /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
15959
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
15960
+ ] })
15961
+ ]
15962
+ }
15881
15963
  ) }, index4);
15882
15964
  };
15883
15965
  var FileItem = (props) => {
@@ -15889,37 +15971,57 @@ var FileItem = (props) => {
15889
15971
  src,
15890
15972
  mimetype,
15891
15973
  size: size4,
15892
- useGetImage
15974
+ useGetImage,
15975
+ id,
15976
+ envFile,
15977
+ accessToken
15893
15978
  } = props;
15894
15979
  const fileTypeIcon = {
15895
- "application/pdf": /* @__PURE__ */ jsx68(PdfIcon, {}),
15896
- "application/zip": /* @__PURE__ */ jsx68(ZipIcon, {}),
15897
- "application/x-zip-compressed": /* @__PURE__ */ jsx68(ZipIcon, {}),
15898
- "application/vnd.ms-excel": /* @__PURE__ */ jsx68(ExcelIcon, {}),
15899
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx68(ExcelIcon, {})
15980
+ "application/pdf": /* @__PURE__ */ jsx69(PdfIcon, {}),
15981
+ "application/zip": /* @__PURE__ */ jsx69(ZipIcon, {}),
15982
+ "application/x-zip-compressed": /* @__PURE__ */ jsx69(ZipIcon, {}),
15983
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx69(ExcelIcon, {}),
15984
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {})
15900
15985
  };
15901
15986
  const renderFile = () => {
15902
15987
  if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
15903
- return /* @__PURE__ */ jsx68(ImageItem, { ...props });
15988
+ return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
15904
15989
  } else if (mimetype?.includes("video")) {
15905
- return /* @__PURE__ */ jsx68(VideoPlayer, { ...props });
15990
+ return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
15906
15991
  } else {
15907
- return /* @__PURE__ */ jsxs43("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
15908
- fileTypeIcon[mimetype],
15909
- /* @__PURE__ */ jsxs43("div", { children: [
15910
- /* @__PURE__ */ jsx68("p", { className: "text-[#0A0D14] font-medium", children: filename }),
15911
- /* @__PURE__ */ jsx68("span", { className: "text-[12px]", children: formatFileSize(size4) })
15912
- ] })
15913
- ] });
15992
+ return /* @__PURE__ */ jsxs44(
15993
+ "div",
15994
+ {
15995
+ onClick: (e3) => {
15996
+ if (accessToken) {
15997
+ e3?.stopPropagation();
15998
+ downloadFile(
15999
+ `${envFile}api/v2/web/content/${id}?download=true`,
16000
+ filename,
16001
+ accessToken
16002
+ );
16003
+ }
16004
+ },
16005
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16006
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16007
+ children: [
16008
+ fileTypeIcon[mimetype],
16009
+ /* @__PURE__ */ jsxs44("div", { children: [
16010
+ /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16011
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16012
+ ] })
16013
+ ]
16014
+ }
16015
+ );
15914
16016
  }
15915
16017
  };
15916
- return /* @__PURE__ */ jsxs43(
16018
+ return /* @__PURE__ */ jsxs44(
15917
16019
  "div",
15918
16020
  {
15919
16021
  className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
15920
16022
  children: [
15921
16023
  renderFile(),
15922
- handleRemoveFile && /* @__PURE__ */ jsx68(
16024
+ handleRemoveFile && /* @__PURE__ */ jsx69(
15923
16025
  "div",
15924
16026
  {
15925
16027
  style: {
@@ -15930,10 +16032,10 @@ var FileItem = (props) => {
15930
16032
  },
15931
16033
  onClick: () => handleRemoveFile(index4),
15932
16034
  className: "cursor-pointer p-2 hidden group-hover:block",
15933
- children: /* @__PURE__ */ jsx68(DeleteIcon, {})
16035
+ children: /* @__PURE__ */ jsx69(DeleteIcon, {})
15934
16036
  }
15935
16037
  ),
15936
- !handleRemoveFile && /* @__PURE__ */ jsx68(
16038
+ !handleRemoveFile && /* @__PURE__ */ jsx69(
15937
16039
  "span",
15938
16040
  {
15939
16041
  style: {
@@ -15945,7 +16047,7 @@ var FileItem = (props) => {
15945
16047
  },
15946
16048
  onClick: (e3) => handleFileDownload(e3, src, filename),
15947
16049
  className: "hidden group-hover:block cursor-pointer p-2 text-white ",
15948
- children: /* @__PURE__ */ jsx68(DownloadIcon, {})
16050
+ children: /* @__PURE__ */ jsx69(DownloadIcon, {})
15949
16051
  }
15950
16052
  )
15951
16053
  ]
@@ -15953,9 +16055,14 @@ var FileItem = (props) => {
15953
16055
  index4
15954
16056
  );
15955
16057
  };
15956
- var downloadFile = async (url, filename) => {
16058
+ var downloadFile = async (url, filename, accessToken) => {
15957
16059
  try {
15958
- const response = await fetch(url);
16060
+ const response = accessToken ? await fetch(url, {
16061
+ method: "GET",
16062
+ headers: {
16063
+ Authorization: `Bearer ${accessToken}`
16064
+ }
16065
+ }) : await fetch(url);
15959
16066
  if (response.ok) {
15960
16067
  const blob = await response.blob();
15961
16068
  const urlBlob = window.URL.createObjectURL(blob);
@@ -15976,7 +16083,9 @@ var downloadFile = async (url, filename) => {
15976
16083
  var RenderFiles = ({
15977
16084
  selectedFiles,
15978
16085
  setSelectedFiles,
15979
- useGetImage
16086
+ useGetImage,
16087
+ envFile,
16088
+ accessToken
15980
16089
  }) => {
15981
16090
  const handleRemoveFile = (index4) => {
15982
16091
  if (setSelectedFiles) {
@@ -15988,19 +16097,21 @@ var RenderFiles = ({
15988
16097
  e3.stopPropagation();
15989
16098
  downloadFile(url, name2);
15990
16099
  };
15991
- return /* @__PURE__ */ jsx68("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
15992
- return /* @__PURE__ */ jsx68("div", { className: "relative group/file", children: /* @__PURE__ */ jsx68(
16100
+ return /* @__PURE__ */ jsx69("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16101
+ return /* @__PURE__ */ jsx69("div", { className: "relative group/file", children: /* @__PURE__ */ jsx69(
15993
16102
  FileItem,
15994
16103
  {
15995
16104
  ...file,
15996
16105
  src: file?.datas,
15997
- filename: file?.display_name ?? file?.name,
16106
+ filename: file?.display_name ?? file?.name ?? file?.filename,
16107
+ id: file?.id,
15998
16108
  index: index4,
15999
16109
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16000
16110
  handleFileDownload,
16001
- useGetImage
16002
- },
16003
- index4
16111
+ useGetImage,
16112
+ envFile,
16113
+ accessToken
16114
+ }
16004
16115
  ) }, file?.id ?? index4);
16005
16116
  }) });
16006
16117
  };
@@ -16191,7 +16302,7 @@ var po = $2(K("zoom"));
16191
16302
  var uo = $2(K("flip"));
16192
16303
 
16193
16304
  // src/widgets/common/select-files.tsx
16194
- import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16305
+ import { Fragment as Fragment14, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16195
16306
  var ButtonSelectFiles = ({
16196
16307
  fileInputRef,
16197
16308
  selectedFiles,
@@ -16294,8 +16405,8 @@ var ButtonSelectFiles = ({
16294
16405
  await handleUpload(formData, serivce, xNode);
16295
16406
  }
16296
16407
  };
16297
- return /* @__PURE__ */ jsxs44(Fragment14, { children: [
16298
- isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
16408
+ return /* @__PURE__ */ jsxs45(Fragment14, { children: [
16409
+ isPending ? /* @__PURE__ */ jsx70(Fragment14, { children: /* @__PURE__ */ jsx70("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs45(
16299
16410
  "button",
16300
16411
  {
16301
16412
  type: "button",
@@ -16303,12 +16414,12 @@ var ButtonSelectFiles = ({
16303
16414
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16304
16415
  onClick: () => fileInputRef.current.click(),
16305
16416
  children: [
16306
- /* @__PURE__ */ jsx69(AttachIcon, {}),
16307
- /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16417
+ /* @__PURE__ */ jsx70(AttachIcon, {}),
16418
+ /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16308
16419
  ]
16309
16420
  }
16310
16421
  ),
16311
- /* @__PURE__ */ jsx69(
16422
+ /* @__PURE__ */ jsx70(
16312
16423
  "input",
16313
16424
  {
16314
16425
  type: "file",
@@ -16323,7 +16434,7 @@ var ButtonSelectFiles = ({
16323
16434
  };
16324
16435
 
16325
16436
  // src/widgets/basic/avatar-field/avatar.tsx
16326
- import { Fragment as Fragment15, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16437
+ import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16327
16438
  var AvatarField = (props) => {
16328
16439
  const {
16329
16440
  isForm = false,
@@ -16347,8 +16458,8 @@ var AvatarField = (props) => {
16347
16458
  color: textColor,
16348
16459
  fontSize: `${size4 / 2.5}px`
16349
16460
  };
16350
- return /* @__PURE__ */ jsxs45(Fragment15, { children: [
16351
- isForm && allowShowDetail && /* @__PURE__ */ jsx70(
16461
+ return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16462
+ isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16352
16463
  ModalDetail,
16353
16464
  {
16354
16465
  idToolTip: `avatar-widget-id-${id}`,
@@ -16359,7 +16470,7 @@ var AvatarField = (props) => {
16359
16470
  place: "top-start"
16360
16471
  }
16361
16472
  ),
16362
- allowShowDetail && /* @__PURE__ */ jsx70(
16473
+ allowShowDetail && /* @__PURE__ */ jsx71(
16363
16474
  M,
16364
16475
  {
16365
16476
  id: `avatar-widget-id-${id}`,
@@ -16368,7 +16479,7 @@ var AvatarField = (props) => {
16368
16479
  className: "z-20"
16369
16480
  }
16370
16481
  ),
16371
- avatarSrc ? /* @__PURE__ */ jsx70(
16482
+ avatarSrc ? /* @__PURE__ */ jsx71(
16372
16483
  "img",
16373
16484
  {
16374
16485
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16376,7 +16487,7 @@ var AvatarField = (props) => {
16376
16487
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16377
16488
  alt: "Avatar"
16378
16489
  }
16379
- ) : /* @__PURE__ */ jsx70("div", { children: /* @__PURE__ */ jsx70(
16490
+ ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16380
16491
  "div",
16381
16492
  {
16382
16493
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16389,7 +16500,7 @@ var AvatarField = (props) => {
16389
16500
  };
16390
16501
 
16391
16502
  // src/widgets/basic/binary-field/binary.tsx
16392
- import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16503
+ import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16393
16504
  var BinaryField = (props) => {
16394
16505
  const {
16395
16506
  name: name2,
@@ -16412,7 +16523,7 @@ var BinaryField = (props) => {
16412
16523
  image
16413
16524
  } = props;
16414
16525
  const { t: t3 } = useI18n();
16415
- return /* @__PURE__ */ jsx71(
16526
+ return /* @__PURE__ */ jsx72(
16416
16527
  Controller,
16417
16528
  {
16418
16529
  name: name2 ?? "",
@@ -16422,13 +16533,13 @@ var BinaryField = (props) => {
16422
16533
  },
16423
16534
  render: ({ field }) => {
16424
16535
  const renderImage = initialImage || selectedImage;
16425
- return /* @__PURE__ */ jsx71(
16536
+ return /* @__PURE__ */ jsx72(
16426
16537
  "div",
16427
16538
  {
16428
16539
  ref: binaryRef,
16429
16540
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16430
- children: renderImage ? /* @__PURE__ */ jsxs46("div", { className: "relative group", children: [
16431
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx71(
16541
+ children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
16542
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16432
16543
  "img",
16433
16544
  {
16434
16545
  style: {
@@ -16439,7 +16550,7 @@ var BinaryField = (props) => {
16439
16550
  alt: "Selected",
16440
16551
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16441
16552
  }
16442
- ) : renderImage ? /* @__PURE__ */ jsx71(
16553
+ ) : renderImage ? /* @__PURE__ */ jsx72(
16443
16554
  "img",
16444
16555
  {
16445
16556
  style: {
@@ -16450,17 +16561,17 @@ var BinaryField = (props) => {
16450
16561
  alt: "Selected",
16451
16562
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16452
16563
  }
16453
- ) : /* @__PURE__ */ jsx71(PlaceHolderIcon, {}),
16454
- !isInsideTable && !readonly && /* @__PURE__ */ jsx71(
16564
+ ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
16565
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16455
16566
  "button",
16456
16567
  {
16457
16568
  type: "button",
16458
16569
  onClick: () => handleRemoveImage(field.onChange),
16459
16570
  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",
16460
- children: /* @__PURE__ */ jsx71(DeleteIcon, {})
16571
+ children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16461
16572
  }
16462
16573
  )
16463
- ] }) : /* @__PURE__ */ jsxs46(
16574
+ ] }) : /* @__PURE__ */ jsxs47(
16464
16575
  "label",
16465
16576
  {
16466
16577
  htmlFor: inputId,
@@ -16470,7 +16581,7 @@ var BinaryField = (props) => {
16470
16581
  },
16471
16582
  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"}`,
16472
16583
  children: [
16473
- /* @__PURE__ */ jsx71(
16584
+ /* @__PURE__ */ jsx72(
16474
16585
  "input",
16475
16586
  {
16476
16587
  id: inputId,
@@ -16482,8 +16593,8 @@ var BinaryField = (props) => {
16482
16593
  className: "hidden z-10 relative"
16483
16594
  }
16484
16595
  ),
16485
- /* @__PURE__ */ jsx71("img", { src: image, alt: "", className: "z-0 relative" }),
16486
- /* @__PURE__ */ jsx71(
16596
+ /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
16597
+ /* @__PURE__ */ jsx72(
16487
16598
  "div",
16488
16599
  {
16489
16600
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -16492,7 +16603,7 @@ var BinaryField = (props) => {
16492
16603
  left: "-8px",
16493
16604
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16494
16605
  },
16495
- children: /* @__PURE__ */ jsx71(
16606
+ children: /* @__PURE__ */ jsx72(
16496
16607
  "svg",
16497
16608
  {
16498
16609
  xmlns: "http://www.w3.org/2000/svg",
@@ -16500,7 +16611,7 @@ var BinaryField = (props) => {
16500
16611
  height: "14",
16501
16612
  viewBox: "0 0 14 14",
16502
16613
  fill: "none",
16503
- children: /* @__PURE__ */ jsx71(
16614
+ children: /* @__PURE__ */ jsx72(
16504
16615
  "path",
16505
16616
  {
16506
16617
  "fill-rule": "evenodd",
@@ -16524,7 +16635,7 @@ var BinaryField = (props) => {
16524
16635
  };
16525
16636
 
16526
16637
  // src/widgets/basic/button-badge-field/button-badge.tsx
16527
- import { jsx as jsx72 } from "react/jsx-runtime";
16638
+ import { jsx as jsx73 } from "react/jsx-runtime";
16528
16639
  var typeStyles = {
16529
16640
  primary: {
16530
16641
  backgroundColor: "#3b82f6",
@@ -16599,11 +16710,11 @@ var ButtonBadgeField = (props) => {
16599
16710
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16600
16711
  };
16601
16712
  const label = getLabel(defaultValue ?? value);
16602
- return label ? /* @__PURE__ */ jsx72("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16713
+ return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16603
16714
  };
16604
16715
 
16605
16716
  // src/widgets/basic/button-field/button.tsx
16606
- import { Fragment as Fragment16, jsx as jsx73, jsxs as jsxs47 } from "react/jsx-runtime";
16717
+ import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
16607
16718
  var ButtonField = (props) => {
16608
16719
  const {
16609
16720
  func,
@@ -16614,7 +16725,7 @@ var ButtonField = (props) => {
16614
16725
  type = "submit"
16615
16726
  } = props;
16616
16727
  const { t: t3 } = useI18n();
16617
- return /* @__PURE__ */ jsx73(Fragment16, { children: !loading ? /* @__PURE__ */ jsx73(
16728
+ return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
16618
16729
  "button",
16619
16730
  {
16620
16731
  type,
@@ -16623,7 +16734,7 @@ var ButtonField = (props) => {
16623
16734
  onClick: func,
16624
16735
  children: t3(content)
16625
16736
  }
16626
- ) : /* @__PURE__ */ jsxs47(
16737
+ ) : /* @__PURE__ */ jsxs48(
16627
16738
  "button",
16628
16739
  {
16629
16740
  type,
@@ -16632,7 +16743,7 @@ var ButtonField = (props) => {
16632
16743
  children: [
16633
16744
  t3("loading"),
16634
16745
  " ",
16635
- /* @__PURE__ */ jsx73(LoadingIcon, {})
16746
+ /* @__PURE__ */ jsx74(LoadingIcon, {})
16636
16747
  ]
16637
16748
  }
16638
16749
  ) });
@@ -16640,7 +16751,7 @@ var ButtonField = (props) => {
16640
16751
 
16641
16752
  // src/widgets/basic/char-field/char.tsx
16642
16753
  import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
16643
- import { Fragment as Fragment17, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
16754
+ import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
16644
16755
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16645
16756
  var CharField = (props) => {
16646
16757
  const {
@@ -16668,9 +16779,9 @@ var CharField = (props) => {
16668
16779
  } = props;
16669
16780
  if (!isForm && !isEditTable) {
16670
16781
  const propValue = value || defaultValue;
16671
- return /* @__PURE__ */ jsx74("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16782
+ return /* @__PURE__ */ jsx75("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16672
16783
  }
16673
- return /* @__PURE__ */ jsx74(
16784
+ return /* @__PURE__ */ jsx75(
16674
16785
  Controller,
16675
16786
  {
16676
16787
  name: name2 ?? "",
@@ -16724,8 +16835,8 @@ var CharField = (props) => {
16724
16835
  }
16725
16836
  return "";
16726
16837
  }, [widget, formValues]);
16727
- return /* @__PURE__ */ jsxs48(Fragment17, { children: [
16728
- /* @__PURE__ */ jsx74(
16838
+ return /* @__PURE__ */ jsxs49(Fragment17, { children: [
16839
+ /* @__PURE__ */ jsx75(
16729
16840
  "input",
16730
16841
  {
16731
16842
  value: displayValue ?? "",
@@ -16786,7 +16897,7 @@ var CharField = (props) => {
16786
16897
  `
16787
16898
  }
16788
16899
  ),
16789
- isEditTable ? /* @__PURE__ */ jsx74(Fragment17, {}) : /* @__PURE__ */ jsx74(Fragment17, { children: error2 && /* @__PURE__ */ jsx74("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16900
+ isEditTable ? /* @__PURE__ */ jsx75(Fragment17, {}) : /* @__PURE__ */ jsx75(Fragment17, { children: error2 && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16790
16901
  ] });
16791
16902
  }
16792
16903
  }
@@ -16794,7 +16905,7 @@ var CharField = (props) => {
16794
16905
  };
16795
16906
 
16796
16907
  // src/widgets/basic/checkbox-field/checkbox.tsx
16797
- import { jsx as jsx75 } from "react/jsx-runtime";
16908
+ import { jsx as jsx76 } from "react/jsx-runtime";
16798
16909
  var CheckboxField = (props) => {
16799
16910
  const {
16800
16911
  name: name2,
@@ -16809,9 +16920,9 @@ var CheckboxField = (props) => {
16809
16920
  } = props;
16810
16921
  if (!isForm) {
16811
16922
  if (name2 === "is_active" || name2 === "active") {
16812
- return /* @__PURE__ */ jsx75(ActiveBadgeField, { type: value });
16923
+ return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
16813
16924
  } else {
16814
- return /* @__PURE__ */ jsx75(
16925
+ return /* @__PURE__ */ jsx76(
16815
16926
  "input",
16816
16927
  {
16817
16928
  type: "checkbox",
@@ -16822,12 +16933,12 @@ var CheckboxField = (props) => {
16822
16933
  );
16823
16934
  }
16824
16935
  }
16825
- return /* @__PURE__ */ jsx75(
16936
+ return /* @__PURE__ */ jsx76(
16826
16937
  Controller,
16827
16938
  {
16828
16939
  name: name2 ?? "",
16829
16940
  control: methods?.control,
16830
- render: ({ field }) => /* @__PURE__ */ jsx75(
16941
+ render: ({ field }) => /* @__PURE__ */ jsx76(
16831
16942
  "div",
16832
16943
  {
16833
16944
  className: "flex items-center gap-2",
@@ -16840,7 +16951,7 @@ var CheckboxField = (props) => {
16840
16951
  onChange2(name2 ?? "", checked);
16841
16952
  }
16842
16953
  },
16843
- children: /* @__PURE__ */ jsx75(
16954
+ children: /* @__PURE__ */ jsx76(
16844
16955
  "input",
16845
16956
  {
16846
16957
  ...field,
@@ -16868,7 +16979,7 @@ var CheckboxField = (props) => {
16868
16979
 
16869
16980
  // src/widgets/basic/color-field/color-wrapper.tsx
16870
16981
  import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
16871
- import { Fragment as Fragment18, jsx as jsx76, jsxs as jsxs49 } from "react/jsx-runtime";
16982
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
16872
16983
  var ColorWrapper = (props) => {
16873
16984
  const {
16874
16985
  colors: colors2,
@@ -16895,8 +17006,8 @@ var ColorWrapper = (props) => {
16895
17006
  document.removeEventListener("mousedown", handleClickOutside);
16896
17007
  };
16897
17008
  }, []);
16898
- return /* @__PURE__ */ jsx76("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx76("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs49("div", { children: [
16899
- /* @__PURE__ */ jsx76(
17009
+ return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17010
+ /* @__PURE__ */ jsx77(
16900
17011
  "button",
16901
17012
  {
16902
17013
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -16910,7 +17021,7 @@ var ColorWrapper = (props) => {
16910
17021
  }
16911
17022
  }
16912
17023
  ),
16913
- /* @__PURE__ */ jsx76(
17024
+ /* @__PURE__ */ jsx77(
16914
17025
  M,
16915
17026
  {
16916
17027
  className: "",
@@ -16919,8 +17030,8 @@ var ColorWrapper = (props) => {
16919
17030
  content: i18n_default.t(color?.name)
16920
17031
  }
16921
17032
  )
16922
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs49(Fragment18, { children: [
16923
- /* @__PURE__ */ jsx76(
17033
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17034
+ /* @__PURE__ */ jsx77(
16924
17035
  "button",
16925
17036
  {
16926
17037
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -16933,7 +17044,7 @@ var ColorWrapper = (props) => {
16933
17044
  style: { backgroundColor: selectedColor?.color }
16934
17045
  }
16935
17046
  ),
16936
- /* @__PURE__ */ jsx76(
17047
+ /* @__PURE__ */ jsx77(
16937
17048
  M,
16938
17049
  {
16939
17050
  place: "top",
@@ -16945,13 +17056,13 @@ var ColorWrapper = (props) => {
16945
17056
  };
16946
17057
 
16947
17058
  // src/widgets/basic/color-field/color.tsx
16948
- import { jsx as jsx77 } from "react/jsx-runtime";
17059
+ import { jsx as jsx78 } from "react/jsx-runtime";
16949
17060
  var ColorField = (props) => {
16950
17061
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
16951
17062
  if (!isForm) {
16952
- return /* @__PURE__ */ jsx77(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17063
+ return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
16953
17064
  }
16954
- return /* @__PURE__ */ jsx77(
17065
+ return /* @__PURE__ */ jsx78(
16955
17066
  Controller,
16956
17067
  {
16957
17068
  name: name2 ?? "",
@@ -16961,7 +17072,7 @@ var ColorField = (props) => {
16961
17072
  field.onChange(color?.id);
16962
17073
  onChange2 && onChange2(name2 ?? "", color?.id);
16963
17074
  };
16964
- return /* @__PURE__ */ jsx77(
17075
+ return /* @__PURE__ */ jsx78(
16965
17076
  ColorWrapper,
16966
17077
  {
16967
17078
  savePickColor: handlePickColorChange,
@@ -16976,7 +17087,7 @@ var ColorField = (props) => {
16976
17087
 
16977
17088
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
16978
17089
  import { useEffect as useEffect13 } from "react";
16979
- import { jsx as jsx78, jsxs as jsxs50 } from "react/jsx-runtime";
17090
+ import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
16980
17091
  var CopyLinkButtonField = (props) => {
16981
17092
  const {
16982
17093
  isForm,
@@ -16995,9 +17106,9 @@ var CopyLinkButtonField = (props) => {
16995
17106
  } = props;
16996
17107
  const { t: t3 } = useI18n();
16997
17108
  if (!isForm) {
16998
- return /* @__PURE__ */ jsx78("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17109
+ return /* @__PURE__ */ jsx79("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16999
17110
  }
17000
- return /* @__PURE__ */ jsx78(
17111
+ return /* @__PURE__ */ jsx79(
17001
17112
  Controller,
17002
17113
  {
17003
17114
  name: name2 ?? "",
@@ -17015,8 +17126,8 @@ var CopyLinkButtonField = (props) => {
17015
17126
  clearErrors(name2);
17016
17127
  }
17017
17128
  }, [value]);
17018
- return /* @__PURE__ */ jsxs50("div", { className: "relative", children: [
17019
- /* @__PURE__ */ jsxs50(
17129
+ return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17130
+ /* @__PURE__ */ jsxs51(
17020
17131
  "div",
17021
17132
  {
17022
17133
  "aria-disabled": readonly,
@@ -17025,7 +17136,7 @@ var CopyLinkButtonField = (props) => {
17025
17136
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17026
17137
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17027
17138
  children: [
17028
- /* @__PURE__ */ jsx78(
17139
+ /* @__PURE__ */ jsx79(
17029
17140
  "input",
17030
17141
  {
17031
17142
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17066,19 +17177,19 @@ var CopyLinkButtonField = (props) => {
17066
17177
  `
17067
17178
  }
17068
17179
  ),
17069
- readonly && value && /* @__PURE__ */ jsx78(
17180
+ readonly && value && /* @__PURE__ */ jsx79(
17070
17181
  "button",
17071
17182
  {
17072
17183
  className: "cursor-pointer",
17073
17184
  type: "button",
17074
17185
  onClick: () => handleCopyToClipboard(propValue),
17075
- children: isCopied ? /* @__PURE__ */ jsx78(CheckIcon, {}) : /* @__PURE__ */ jsx78(CopyIcon, {})
17186
+ children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17076
17187
  }
17077
17188
  )
17078
17189
  ]
17079
17190
  }
17080
17191
  ),
17081
- error2 && /* @__PURE__ */ jsx78("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17192
+ error2 && /* @__PURE__ */ jsx79("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17082
17193
  ] });
17083
17194
  }
17084
17195
  }
@@ -21019,7 +21130,7 @@ function useEffectEvent(callback) {
21019
21130
  }
21020
21131
 
21021
21132
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21022
- import { jsx as jsx79, jsxs as jsxs51, Fragment as Fragment19 } from "react/jsx-runtime";
21133
+ import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
21023
21134
  import * as ReactDOM2 from "react-dom";
21024
21135
 
21025
21136
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21417,7 +21528,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21417
21528
  bottom: isCustomShape ? "" : "rotate(180deg)",
21418
21529
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21419
21530
  }[side];
21420
- return /* @__PURE__ */ jsxs51("svg", {
21531
+ return /* @__PURE__ */ jsxs52("svg", {
21421
21532
  ...rest,
21422
21533
  "aria-hidden": true,
21423
21534
  ref,
@@ -21433,18 +21544,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21433
21544
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21434
21545
  ...restStyle
21435
21546
  },
21436
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx79("path", {
21547
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21437
21548
  clipPath: "url(#" + clipPathId + ")",
21438
21549
  fill: "none",
21439
21550
  stroke,
21440
21551
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21441
21552
  d: dValue
21442
- }), /* @__PURE__ */ jsx79("path", {
21553
+ }), /* @__PURE__ */ jsx80("path", {
21443
21554
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21444
21555
  d: dValue
21445
- }), /* @__PURE__ */ jsx79("clipPath", {
21556
+ }), /* @__PURE__ */ jsx80("clipPath", {
21446
21557
  id: clipPathId,
21447
- children: /* @__PURE__ */ jsx79("rect", {
21558
+ children: /* @__PURE__ */ jsx80("rect", {
21448
21559
  x: -halfStrokeWidth,
21449
21560
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21450
21561
  width: width + computedStrokeWidth,
@@ -27377,7 +27488,7 @@ var Emotion$1 = Emotion;
27377
27488
  import * as React12 from "react";
27378
27489
  var import_extends2 = __toESM(require_extends());
27379
27490
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27380
- var jsx80 = function jsx81(type, props) {
27491
+ var jsx81 = function jsx82(type, props) {
27381
27492
  var args = arguments;
27382
27493
  if (props == null || !hasOwn.call(props, "css")) {
27383
27494
  return React12.createElement.apply(void 0, args);
@@ -27395,7 +27506,7 @@ var jsx80 = function jsx81(type, props) {
27395
27506
  var JSX;
27396
27507
  /* @__PURE__ */ (function(_JSX) {
27397
27508
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27398
- })(jsx80 || (jsx80 = {}));
27509
+ })(jsx81 || (jsx81 = {}));
27399
27510
  function css() {
27400
27511
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27401
27512
  args[_key] = arguments[_key];
@@ -27426,7 +27537,7 @@ function _taggedTemplateLiteral(e3, t3) {
27426
27537
 
27427
27538
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27428
27539
  import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27429
- import { createPortal as createPortal4 } from "react-dom";
27540
+ import { createPortal as createPortal5 } from "react-dom";
27430
27541
 
27431
27542
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
27432
27543
  import { useLayoutEffect as useLayoutEffect4 } from "react";
@@ -27803,7 +27914,7 @@ var MenuPlacer = function MenuPlacer2(props) {
27803
27914
  };
27804
27915
  var Menu = function Menu2(props) {
27805
27916
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
27806
- return jsx80("div", _extends({}, getStyleProps(props, "menu", {
27917
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
27807
27918
  menu: true
27808
27919
  }), {
27809
27920
  ref: innerRef
@@ -27825,7 +27936,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
27825
27936
  };
27826
27937
  var MenuList = function MenuList2(props) {
27827
27938
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
27828
- return jsx80("div", _extends({}, getStyleProps(props, "menuList", {
27939
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
27829
27940
  "menu-list": true,
27830
27941
  "menu-list--is-multi": isMulti
27831
27942
  }), {
@@ -27845,7 +27956,7 @@ var noOptionsMessageCSS = noticeCSS;
27845
27956
  var loadingMessageCSS = noticeCSS;
27846
27957
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27847
27958
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
27848
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27959
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27849
27960
  children,
27850
27961
  innerProps
27851
27962
  }), "noOptionsMessage", {
@@ -27855,7 +27966,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27855
27966
  };
27856
27967
  var LoadingMessage = function LoadingMessage2(_ref7) {
27857
27968
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
27858
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27969
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27859
27970
  children,
27860
27971
  innerProps
27861
27972
  }), "loadingMessage", {
@@ -27918,7 +28029,7 @@ var MenuPortal = function MenuPortal2(props) {
27918
28029
  runAutoUpdate();
27919
28030
  }, [runAutoUpdate]);
27920
28031
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
27921
- var menuWrapper = jsx80("div", _extends({
28032
+ var menuWrapper = jsx81("div", _extends({
27922
28033
  ref: setMenuPortalElement
27923
28034
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
27924
28035
  offset: computedPosition.offset,
@@ -27927,9 +28038,9 @@ var MenuPortal = function MenuPortal2(props) {
27927
28038
  }), "menuPortal", {
27928
28039
  "menu-portal": true
27929
28040
  }), innerProps), children);
27930
- return jsx80(PortalPlacementContext.Provider, {
28041
+ return jsx81(PortalPlacementContext.Provider, {
27931
28042
  value: portalPlacementContext
27932
- }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28043
+ }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
27933
28044
  };
27934
28045
  var containerCSS = function containerCSS2(_ref3) {
27935
28046
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -27943,7 +28054,7 @@ var containerCSS = function containerCSS2(_ref3) {
27943
28054
  };
27944
28055
  var SelectContainer = function SelectContainer2(props) {
27945
28056
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
27946
- return jsx80("div", _extends({}, getStyleProps(props, "container", {
28057
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
27947
28058
  "--is-disabled": isDisabled,
27948
28059
  "--is-rtl": isRtl
27949
28060
  }), innerProps), children);
@@ -27964,7 +28075,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
27964
28075
  };
27965
28076
  var ValueContainer = function ValueContainer2(props) {
27966
28077
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
27967
- return jsx80("div", _extends({}, getStyleProps(props, "valueContainer", {
28078
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
27968
28079
  "value-container": true,
27969
28080
  "value-container--is-multi": isMulti,
27970
28081
  "value-container--has-value": hasValue
@@ -27980,7 +28091,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
27980
28091
  };
27981
28092
  var IndicatorsContainer = function IndicatorsContainer2(props) {
27982
28093
  var children = props.children, innerProps = props.innerProps;
27983
- return jsx80("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28094
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
27984
28095
  indicators: true
27985
28096
  }), innerProps), children);
27986
28097
  };
@@ -28001,7 +28112,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28001
28112
  };
28002
28113
  var Svg = function Svg2(_ref3) {
28003
28114
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28004
- return jsx80("svg", _extends({
28115
+ return jsx81("svg", _extends({
28005
28116
  height: size4,
28006
28117
  width: size4,
28007
28118
  viewBox: "0 0 20 20",
@@ -28011,16 +28122,16 @@ var Svg = function Svg2(_ref3) {
28011
28122
  }, props));
28012
28123
  };
28013
28124
  var CrossIcon = function CrossIcon2(props) {
28014
- return jsx80(Svg, _extends({
28125
+ return jsx81(Svg, _extends({
28015
28126
  size: 20
28016
- }, props), jsx80("path", {
28127
+ }, props), jsx81("path", {
28017
28128
  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"
28018
28129
  }));
28019
28130
  };
28020
28131
  var DownChevron = function DownChevron2(props) {
28021
- return jsx80(Svg, _extends({
28132
+ return jsx81(Svg, _extends({
28022
28133
  size: 20
28023
- }, props), jsx80("path", {
28134
+ }, props), jsx81("path", {
28024
28135
  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"
28025
28136
  }));
28026
28137
  };
@@ -28041,18 +28152,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28041
28152
  var dropdownIndicatorCSS = baseCSS;
28042
28153
  var DropdownIndicator = function DropdownIndicator2(props) {
28043
28154
  var children = props.children, innerProps = props.innerProps;
28044
- return jsx80("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28155
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28045
28156
  indicator: true,
28046
28157
  "dropdown-indicator": true
28047
- }), innerProps), children || jsx80(DownChevron, null));
28158
+ }), innerProps), children || jsx81(DownChevron, null));
28048
28159
  };
28049
28160
  var clearIndicatorCSS = baseCSS;
28050
28161
  var ClearIndicator = function ClearIndicator2(props) {
28051
28162
  var children = props.children, innerProps = props.innerProps;
28052
- return jsx80("div", _extends({}, getStyleProps(props, "clearIndicator", {
28163
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28053
28164
  indicator: true,
28054
28165
  "clear-indicator": true
28055
- }), innerProps), children || jsx80(CrossIcon, null));
28166
+ }), innerProps), children || jsx81(CrossIcon, null));
28056
28167
  };
28057
28168
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28058
28169
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28068,7 +28179,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28068
28179
  };
28069
28180
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28070
28181
  var innerProps = props.innerProps;
28071
- return jsx80("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28182
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28072
28183
  "indicator-separator": true
28073
28184
  })));
28074
28185
  };
@@ -28092,7 +28203,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28092
28203
  };
28093
28204
  var LoadingDot = function LoadingDot2(_ref6) {
28094
28205
  var delay = _ref6.delay, offset4 = _ref6.offset;
28095
- return jsx80("span", {
28206
+ return jsx81("span", {
28096
28207
  css: /* @__PURE__ */ css({
28097
28208
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28098
28209
  backgroundColor: "currentColor",
@@ -28107,20 +28218,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28107
28218
  };
28108
28219
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28109
28220
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28110
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28221
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28111
28222
  innerProps,
28112
28223
  isRtl,
28113
28224
  size: size4
28114
28225
  }), "loadingIndicator", {
28115
28226
  indicator: true,
28116
28227
  "loading-indicator": true
28117
- }), innerProps), jsx80(LoadingDot, {
28228
+ }), innerProps), jsx81(LoadingDot, {
28118
28229
  delay: 0,
28119
28230
  offset: isRtl
28120
- }), jsx80(LoadingDot, {
28231
+ }), jsx81(LoadingDot, {
28121
28232
  delay: 160,
28122
28233
  offset: true
28123
- }), jsx80(LoadingDot, {
28234
+ }), jsx81(LoadingDot, {
28124
28235
  delay: 320,
28125
28236
  offset: !isRtl
28126
28237
  }));
@@ -28152,7 +28263,7 @@ var css$1 = function css2(_ref3, unstyled) {
28152
28263
  };
28153
28264
  var Control = function Control2(props) {
28154
28265
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28155
- return jsx80("div", _extends({
28266
+ return jsx81("div", _extends({
28156
28267
  ref: innerRef
28157
28268
  }, getStyleProps(props, "control", {
28158
28269
  control: true,
@@ -28174,15 +28285,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28174
28285
  };
28175
28286
  var Group = function Group2(props) {
28176
28287
  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;
28177
- return jsx80("div", _extends({}, getStyleProps(props, "group", {
28288
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28178
28289
  group: true
28179
- }), innerProps), jsx80(Heading, _extends({}, headingProps, {
28290
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28180
28291
  selectProps,
28181
28292
  theme,
28182
28293
  getStyles,
28183
28294
  getClassNames,
28184
28295
  cx
28185
- }), label), jsx80("div", null, children));
28296
+ }), label), jsx81("div", null, children));
28186
28297
  };
28187
28298
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28188
28299
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28204,7 +28315,7 @@ var GroupHeading = function GroupHeading2(props) {
28204
28315
  var _cleanCommonProps = cleanCommonProps(props);
28205
28316
  _cleanCommonProps.data;
28206
28317
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28207
- return jsx80("div", _extends({}, getStyleProps(props, "groupHeading", {
28318
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28208
28319
  "group-heading": true
28209
28320
  }), innerProps));
28210
28321
  };
@@ -28256,11 +28367,11 @@ var inputStyle = function inputStyle2(isHidden) {
28256
28367
  var Input = function Input2(props) {
28257
28368
  var cx = props.cx, value = props.value;
28258
28369
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28259
- return jsx80("div", _extends({}, getStyleProps(props, "input", {
28370
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28260
28371
  "input-container": true
28261
28372
  }), {
28262
28373
  "data-value": value || ""
28263
- }), jsx80("input", _extends({
28374
+ }), jsx81("input", _extends({
28264
28375
  className: cx({
28265
28376
  input: true
28266
28377
  }, inputClassName),
@@ -28314,35 +28425,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28314
28425
  };
28315
28426
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28316
28427
  var children = _ref4.children, innerProps = _ref4.innerProps;
28317
- return jsx80("div", innerProps, children);
28428
+ return jsx81("div", innerProps, children);
28318
28429
  };
28319
28430
  var MultiValueContainer = MultiValueGeneric;
28320
28431
  var MultiValueLabel = MultiValueGeneric;
28321
28432
  function MultiValueRemove(_ref5) {
28322
28433
  var children = _ref5.children, innerProps = _ref5.innerProps;
28323
- return jsx80("div", _extends({
28434
+ return jsx81("div", _extends({
28324
28435
  role: "button"
28325
- }, innerProps), children || jsx80(CrossIcon, {
28436
+ }, innerProps), children || jsx81(CrossIcon, {
28326
28437
  size: 14
28327
28438
  }));
28328
28439
  }
28329
28440
  var MultiValue = function MultiValue2(props) {
28330
28441
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28331
28442
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28332
- return jsx80(Container, {
28443
+ return jsx81(Container, {
28333
28444
  data,
28334
28445
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28335
28446
  "multi-value": true,
28336
28447
  "multi-value--is-disabled": isDisabled
28337
28448
  })), innerProps),
28338
28449
  selectProps
28339
- }, jsx80(Label, {
28450
+ }, jsx81(Label, {
28340
28451
  data,
28341
28452
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28342
28453
  "multi-value__label": true
28343
28454
  })),
28344
28455
  selectProps
28345
- }, children), jsx80(Remove, {
28456
+ }, children), jsx81(Remove, {
28346
28457
  data,
28347
28458
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28348
28459
  "multi-value__remove": true
@@ -28375,7 +28486,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28375
28486
  };
28376
28487
  var Option = function Option2(props) {
28377
28488
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28378
- return jsx80("div", _extends({}, getStyleProps(props, "option", {
28489
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
28379
28490
  option: true,
28380
28491
  "option--is-disabled": isDisabled,
28381
28492
  "option--is-focused": isFocused,
@@ -28399,7 +28510,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28399
28510
  };
28400
28511
  var Placeholder = function Placeholder2(props) {
28401
28512
  var children = props.children, innerProps = props.innerProps;
28402
- return jsx80("div", _extends({}, getStyleProps(props, "placeholder", {
28513
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28403
28514
  placeholder: true
28404
28515
  }), innerProps), children);
28405
28516
  };
@@ -28421,7 +28532,7 @@ var css3 = function css4(_ref3, unstyled) {
28421
28532
  };
28422
28533
  var SingleValue = function SingleValue2(props) {
28423
28534
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28424
- return jsx80("div", _extends({}, getStyleProps(props, "singleValue", {
28535
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28425
28536
  "single-value": true,
28426
28537
  "single-value--is-disabled": isDisabled
28427
28538
  }), innerProps), children);
@@ -28523,7 +28634,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28523
28634
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28524
28635
  };
28525
28636
  var A11yText = function A11yText2(props) {
28526
- return jsx80("span", _extends({
28637
+ return jsx81("span", _extends({
28527
28638
  css: _ref
28528
28639
  }, props));
28529
28640
  };
@@ -28658,18 +28769,18 @@ var LiveRegion = function LiveRegion2(props) {
28658
28769
  }
28659
28770
  return guidanceMsg;
28660
28771
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28661
- var ScreenReaderText = jsx80(Fragment22, null, jsx80("span", {
28772
+ var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
28662
28773
  id: "aria-selection"
28663
- }, ariaSelected), jsx80("span", {
28774
+ }, ariaSelected), jsx81("span", {
28664
28775
  id: "aria-focused"
28665
- }, ariaFocused), jsx80("span", {
28776
+ }, ariaFocused), jsx81("span", {
28666
28777
  id: "aria-results"
28667
- }, ariaResults), jsx80("span", {
28778
+ }, ariaResults), jsx81("span", {
28668
28779
  id: "aria-guidance"
28669
28780
  }, ariaGuidance));
28670
- return jsx80(Fragment22, null, jsx80(A11yText$1, {
28781
+ return jsx81(Fragment22, null, jsx81(A11yText$1, {
28671
28782
  id
28672
- }, isInitialFocus && ScreenReaderText), jsx80(A11yText$1, {
28783
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
28673
28784
  "aria-live": ariaLive,
28674
28785
  "aria-atomic": "false",
28675
28786
  "aria-relevant": "additions text",
@@ -28982,7 +29093,7 @@ var _excluded4 = ["innerRef"];
28982
29093
  function DummyInput(_ref3) {
28983
29094
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
28984
29095
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
28985
- return jsx80("input", _extends({
29096
+ return jsx81("input", _extends({
28986
29097
  ref: innerRef
28987
29098
  }, filteredProps, {
28988
29099
  css: /* @__PURE__ */ css({
@@ -29224,7 +29335,7 @@ function ScrollManager(_ref3) {
29224
29335
  setScrollCaptureTarget(element);
29225
29336
  setScrollLockTarget(element);
29226
29337
  };
29227
- return jsx80(Fragment22, null, lockEnabled && jsx80("div", {
29338
+ return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29228
29339
  onClick: blurSelectInput,
29229
29340
  css: _ref2$1
29230
29341
  }), children(targetRef));
@@ -29243,7 +29354,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29243
29354
  };
29244
29355
  var RequiredInput = function RequiredInput2(_ref3) {
29245
29356
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29246
- return jsx80("input", {
29357
+ return jsx81("input", {
29247
29358
  required: true,
29248
29359
  name: name2,
29249
29360
  tabIndex: -1,
@@ -30833,7 +30944,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30833
30944
 
30834
30945
  // src/widgets/basic/date-field/date.tsx
30835
30946
  var import_moment2 = __toESM(require_moment());
30836
- import { Fragment as Fragment23, jsx as jsx82, jsxs as jsxs52 } from "react/jsx-runtime";
30947
+ import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
30837
30948
  var DateField = (props) => {
30838
30949
  const {
30839
30950
  name: name2,
@@ -30861,8 +30972,8 @@ var DateField = (props) => {
30861
30972
  } = props;
30862
30973
  const { t: t3 } = useI18n();
30863
30974
  const InputDateCustom = forwardRef6(
30864
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs52("label", { className: `flex ${className}`, children: [
30865
- /* @__PURE__ */ jsx82(
30975
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
30976
+ /* @__PURE__ */ jsx83(
30866
30977
  "input",
30867
30978
  {
30868
30979
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -30876,13 +30987,13 @@ var DateField = (props) => {
30876
30987
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
30877
30988
  }
30878
30989
  ),
30879
- isForm2 && /* @__PURE__ */ jsx82(CalendarIcon, {})
30990
+ isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
30880
30991
  ] })
30881
30992
  );
30882
30993
  if (!isForm && !isEditTable) {
30883
- return /* @__PURE__ */ jsx82("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30994
+ return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30884
30995
  } else {
30885
- return /* @__PURE__ */ jsx82(
30996
+ return /* @__PURE__ */ jsx83(
30886
30997
  Controller,
30887
30998
  {
30888
30999
  name: name2 || "",
@@ -30904,8 +31015,8 @@ var DateField = (props) => {
30904
31015
  }
30905
31016
  }, [value, clearErrors, name2]);
30906
31017
  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;
30907
- return /* @__PURE__ */ jsxs52(Fragment23, { children: [
30908
- /* @__PURE__ */ jsx82(
31018
+ return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31019
+ /* @__PURE__ */ jsx83(
30909
31020
  DatePicker,
30910
31021
  {
30911
31022
  selected: selectedDate,
@@ -30953,7 +31064,7 @@ var DateField = (props) => {
30953
31064
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
30954
31065
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
30955
31066
  showTimeInput: showTime,
30956
- customInput: /* @__PURE__ */ jsx82(
31067
+ customInput: /* @__PURE__ */ jsx83(
30957
31068
  InputDateCustom,
30958
31069
  {
30959
31070
  isForm,
@@ -30971,7 +31082,7 @@ var DateField = (props) => {
30971
31082
  increaseMonth,
30972
31083
  prevMonthButtonDisabled,
30973
31084
  nextMonthButtonDisabled
30974
- }) => /* @__PURE__ */ jsxs52(
31085
+ }) => /* @__PURE__ */ jsxs53(
30975
31086
  "div",
30976
31087
  {
30977
31088
  style: {
@@ -30980,7 +31091,7 @@ var DateField = (props) => {
30980
31091
  justifyContent: "center"
30981
31092
  },
30982
31093
  children: [
30983
- /* @__PURE__ */ jsx82(
31094
+ /* @__PURE__ */ jsx83(
30984
31095
  "button",
30985
31096
  {
30986
31097
  onClick: decreaseMonth,
@@ -30988,7 +31099,7 @@ var DateField = (props) => {
30988
31099
  children: "<"
30989
31100
  }
30990
31101
  ),
30991
- /* @__PURE__ */ jsx82(
31102
+ /* @__PURE__ */ jsx83(
30992
31103
  StateManagedSelect$1,
30993
31104
  {
30994
31105
  classNames: {
@@ -31014,7 +31125,7 @@ var DateField = (props) => {
31014
31125
  autoFocus: true
31015
31126
  }
31016
31127
  ),
31017
- /* @__PURE__ */ jsx82(
31128
+ /* @__PURE__ */ jsx83(
31018
31129
  StateManagedSelect$1,
31019
31130
  {
31020
31131
  classNames: {
@@ -31042,7 +31153,7 @@ var DateField = (props) => {
31042
31153
  }))
31043
31154
  }
31044
31155
  ),
31045
- /* @__PURE__ */ jsx82(
31156
+ /* @__PURE__ */ jsx83(
31046
31157
  "button",
31047
31158
  {
31048
31159
  onClick: increaseMonth,
@@ -31055,7 +31166,7 @@ var DateField = (props) => {
31055
31166
  )
31056
31167
  }
31057
31168
  ),
31058
- !isEditTable && error2 && /* @__PURE__ */ jsx82("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31169
+ !isEditTable && error2 && /* @__PURE__ */ jsx83("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31059
31170
  ] });
31060
31171
  }
31061
31172
  }
@@ -31064,26 +31175,26 @@ var DateField = (props) => {
31064
31175
  };
31065
31176
 
31066
31177
  // src/widgets/basic/download-binary-field/download-binary.tsx
31067
- import { jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31178
+ import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31068
31179
  var DownLoadBinaryField = (props) => {
31069
31180
  const { handleFileDownload } = props;
31070
31181
  const { t: t3 } = useI18n();
31071
- return /* @__PURE__ */ jsxs53(
31182
+ return /* @__PURE__ */ jsxs54(
31072
31183
  "button",
31073
31184
  {
31074
31185
  type: "button",
31075
31186
  onClick: handleFileDownload,
31076
31187
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31077
31188
  children: [
31078
- /* @__PURE__ */ jsx83(DownloadIcon, {}),
31079
- /* @__PURE__ */ jsx83("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31189
+ /* @__PURE__ */ jsx84(DownloadIcon, {}),
31190
+ /* @__PURE__ */ jsx84("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31080
31191
  ]
31081
31192
  }
31082
31193
  );
31083
31194
  };
31084
31195
 
31085
31196
  // src/widgets/basic/download-file-field/download-file.tsx
31086
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31197
+ import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31087
31198
  var DownloadFileField = (props) => {
31088
31199
  const {
31089
31200
  readonly,
@@ -31095,15 +31206,15 @@ var DownloadFileField = (props) => {
31095
31206
  handleFileChange,
31096
31207
  handleFileDownload
31097
31208
  } = props;
31098
- return /* @__PURE__ */ jsxs54("div", { className: "", children: [
31099
- /* @__PURE__ */ jsxs54(
31209
+ return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31210
+ /* @__PURE__ */ jsxs55(
31100
31211
  "label",
31101
31212
  {
31102
31213
  htmlFor: inputId,
31103
31214
  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",
31104
31215
  children: [
31105
- file ? /* @__PURE__ */ jsx84("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx84("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx84("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31106
- /* @__PURE__ */ jsx84(
31216
+ file ? /* @__PURE__ */ jsx85("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31217
+ /* @__PURE__ */ jsx85(
31107
31218
  "input",
31108
31219
  {
31109
31220
  id: inputId,
@@ -31117,7 +31228,7 @@ var DownloadFileField = (props) => {
31117
31228
  ]
31118
31229
  }
31119
31230
  ),
31120
- file && /* @__PURE__ */ jsx84(
31231
+ file && /* @__PURE__ */ jsx85(
31121
31232
  "button",
31122
31233
  {
31123
31234
  onClick: handleFileDownload,
@@ -31131,7 +31242,7 @@ var DownloadFileField = (props) => {
31131
31242
 
31132
31243
  // src/widgets/basic/dropdown-field/dropdown.tsx
31133
31244
  import { useState as useState16 } from "react";
31134
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31245
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31135
31246
  var DropdownField = (props) => {
31136
31247
  const {
31137
31248
  options: options2,
@@ -31145,30 +31256,30 @@ var DropdownField = (props) => {
31145
31256
  } = props;
31146
31257
  const [open, setOpen] = useState16(false);
31147
31258
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31148
- return /* @__PURE__ */ jsxs55(
31259
+ return /* @__PURE__ */ jsxs56(
31149
31260
  "div",
31150
31261
  {
31151
31262
  ref: dropdownRef,
31152
31263
  className: `relative ${className}`,
31153
31264
  onClick: () => setOpen(!open),
31154
31265
  children: [
31155
- /* @__PURE__ */ jsxs55(
31266
+ /* @__PURE__ */ jsxs56(
31156
31267
  "div",
31157
31268
  {
31158
31269
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31159
31270
  children: [
31160
31271
  selectedValue?.icon,
31161
- /* @__PURE__ */ jsx85("span", { children: selectedValue?.label }),
31162
- /* @__PURE__ */ jsx85(ChevronBottomIcon, { className: "h-4 w-4" })
31272
+ /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31273
+ /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31163
31274
  ]
31164
31275
  }
31165
31276
  ),
31166
- open && /* @__PURE__ */ jsx85(
31277
+ open && /* @__PURE__ */ jsx86(
31167
31278
  "div",
31168
31279
  {
31169
31280
  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}`,
31170
31281
  onClick: (e3) => e3.stopPropagation(),
31171
- children: options2.map((option, index4) => /* @__PURE__ */ jsx85(
31282
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31172
31283
  "div",
31173
31284
  {
31174
31285
  onClick: () => {
@@ -31188,7 +31299,7 @@ var DropdownField = (props) => {
31188
31299
  };
31189
31300
 
31190
31301
  // src/widgets/basic/fee-field/fee.tsx
31191
- import { Fragment as Fragment24, jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31302
+ import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31192
31303
  var FeeField = (props) => {
31193
31304
  const { value, formValues } = props;
31194
31305
  const { t: t3 } = useI18n();
@@ -31199,27 +31310,27 @@ var FeeField = (props) => {
31199
31310
  )
31200
31311
  ) + " VND";
31201
31312
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31202
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31313
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31203
31314
  value?.subtotals?.map((sub) => {
31204
31315
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31205
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31206
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31207
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31316
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31317
+ /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31318
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31208
31319
  sub?.name,
31209
31320
  ":"
31210
31321
  ] }),
31211
- /* @__PURE__ */ jsx86("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31322
+ /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31212
31323
  ] }),
31213
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs56(
31324
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31214
31325
  "div",
31215
31326
  {
31216
31327
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31217
31328
  children: [
31218
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31329
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31219
31330
  group?.group_name,
31220
31331
  ":"
31221
31332
  ] }),
31222
- /* @__PURE__ */ jsx86("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31333
+ /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31223
31334
  ]
31224
31335
  },
31225
31336
  `tax_groups_${group?.id}`
@@ -31227,33 +31338,33 @@ var FeeField = (props) => {
31227
31338
  ] });
31228
31339
  }
31229
31340
  }),
31230
- /* @__PURE__ */ jsxs56("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: [
31231
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31341
+ /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31342
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31232
31343
  t3("total"),
31233
31344
  ":"
31234
31345
  ] }),
31235
- /* @__PURE__ */ jsx86("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31346
+ /* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31236
31347
  ] }),
31237
- /* @__PURE__ */ jsxs56("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: [
31238
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31348
+ /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31349
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31239
31350
  t3("paid_amount"),
31240
31351
  ":"
31241
31352
  ] }),
31242
- /* @__PURE__ */ jsx86("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31353
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31243
31354
  ] }),
31244
- /* @__PURE__ */ jsxs56("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: [
31245
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31355
+ /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31356
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31246
31357
  t3("remanining_amount"),
31247
31358
  ":"
31248
31359
  ] }),
31249
- /* @__PURE__ */ jsx86("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31360
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31250
31361
  ] })
31251
31362
  ] });
31252
31363
  };
31253
31364
 
31254
31365
  // src/widgets/basic/file-upload-field/file-upload.tsx
31255
31366
  import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31256
- import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31367
+ import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31257
31368
  var RenderFile = ({
31258
31369
  file,
31259
31370
  onDelete,
@@ -31263,16 +31374,16 @@ var RenderFile = ({
31263
31374
  readAs: "all"
31264
31375
  });
31265
31376
  const fileTypeIcon = {
31266
- "application/pdf": /* @__PURE__ */ jsx87(PdfIcon, {}),
31267
- "application/zip": /* @__PURE__ */ jsx87(ZipIcon, {}),
31268
- "application/x-zip-compressed": /* @__PURE__ */ jsx87(ZipIcon, {}),
31269
- "application/vnd.ms-excel": /* @__PURE__ */ jsx87(ExcelIcon, {}),
31270
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx87(ExcelIcon, {})
31377
+ "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
31378
+ "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
31379
+ "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
31380
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
31381
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
31271
31382
  };
31272
- return /* @__PURE__ */ jsxs57("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31273
- /* @__PURE__ */ jsx87("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31274
- /* @__PURE__ */ jsxs57("div", { children: [
31275
- /* @__PURE__ */ jsx87(
31383
+ return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31384
+ /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31385
+ /* @__PURE__ */ jsxs58("div", { children: [
31386
+ /* @__PURE__ */ jsx88(
31276
31387
  "div",
31277
31388
  {
31278
31389
  style: {
@@ -31282,20 +31393,20 @@ var RenderFile = ({
31282
31393
  children: file?.name || file?.display_name || info?.name
31283
31394
  }
31284
31395
  ),
31285
- /* @__PURE__ */ jsx87("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31396
+ /* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31286
31397
  ] }),
31287
- /* @__PURE__ */ jsxs57("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: [
31288
- /* @__PURE__ */ jsx87(
31398
+ /* @__PURE__ */ jsxs58("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
31399
+ /* @__PURE__ */ jsx88(
31289
31400
  "span",
31290
31401
  {
31291
31402
  onClick: () => onDownload && onDownload(
31292
31403
  file?.data,
31293
31404
  file?.name || file?.display_name || info?.name
31294
31405
  ),
31295
- children: /* @__PURE__ */ jsx87(DownloadIcon, {})
31406
+ children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31296
31407
  }
31297
31408
  ),
31298
- /* @__PURE__ */ jsx87("span", { onClick: onDelete, children: /* @__PURE__ */ jsx87(DeleteIconDanger, {}) })
31409
+ /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31299
31410
  ] })
31300
31411
  ] });
31301
31412
  };
@@ -31329,7 +31440,7 @@ var FileUploadField = (props) => {
31329
31440
  ]);
31330
31441
  }
31331
31442
  }, [value]);
31332
- return /* @__PURE__ */ jsx87(
31443
+ return /* @__PURE__ */ jsx88(
31333
31444
  Controller,
31334
31445
  {
31335
31446
  name: name2 || "",
@@ -31354,8 +31465,8 @@ var FileUploadField = (props) => {
31354
31465
  );
31355
31466
  }
31356
31467
  }, [selectedFiles]);
31357
- return /* @__PURE__ */ jsxs57("div", { className: "file-upload-field", children: [
31358
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx87(
31468
+ return /* @__PURE__ */ jsxs58("div", { children: [
31469
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
31359
31470
  RenderFile,
31360
31471
  {
31361
31472
  file: fileItem,
@@ -31370,8 +31481,8 @@ var FileUploadField = (props) => {
31370
31481
  }
31371
31482
  }
31372
31483
  )),
31373
- uploadError && /* @__PURE__ */ jsx87("div", { className: "text-[#de4747]", children: uploadError }),
31374
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx87(
31484
+ uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
31485
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx88(
31375
31486
  ButtonSelectFiles,
31376
31487
  {
31377
31488
  fileInputRef,
@@ -31386,7 +31497,7 @@ var FileUploadField = (props) => {
31386
31497
  useUploadFile
31387
31498
  }
31388
31499
  ),
31389
- error2 && !isEditTable && /* @__PURE__ */ jsx87("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31500
+ error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31390
31501
  ] });
31391
31502
  }
31392
31503
  }
@@ -31395,7 +31506,7 @@ var FileUploadField = (props) => {
31395
31506
 
31396
31507
  // src/widgets/basic/float-field/float.tsx
31397
31508
  import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31398
- import { Fragment as Fragment25, jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31509
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31399
31510
  var FloatField = (props) => {
31400
31511
  const {
31401
31512
  name: name2,
@@ -31413,9 +31524,9 @@ var FloatField = (props) => {
31413
31524
  } = props;
31414
31525
  const { t: t3 } = useI18n();
31415
31526
  if (!isForm && !isEditTable) {
31416
- return /* @__PURE__ */ jsx88("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31527
+ return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31417
31528
  }
31418
- return /* @__PURE__ */ jsx88(
31529
+ return /* @__PURE__ */ jsx89(
31419
31530
  Controller,
31420
31531
  {
31421
31532
  name: name2 ?? "",
@@ -31520,8 +31631,8 @@ var FloatField = (props) => {
31520
31631
  }
31521
31632
  isDirtyRef.current = false;
31522
31633
  };
31523
- return /* @__PURE__ */ jsxs58(Fragment25, { children: [
31524
- /* @__PURE__ */ jsx88(
31634
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31635
+ /* @__PURE__ */ jsx89(
31525
31636
  "input",
31526
31637
  {
31527
31638
  ref: inputRef,
@@ -31541,7 +31652,7 @@ var FloatField = (props) => {
31541
31652
  `
31542
31653
  }
31543
31654
  ),
31544
- error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31655
+ error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31545
31656
  ] });
31546
31657
  }
31547
31658
  }
@@ -31550,7 +31661,7 @@ var FloatField = (props) => {
31550
31661
 
31551
31662
  // src/widgets/basic/float-time-field/float-time.tsx
31552
31663
  import { useState as useState19 } from "react";
31553
- import { Fragment as Fragment26, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31664
+ import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
31554
31665
  var FloatTimeField = (props) => {
31555
31666
  const {
31556
31667
  name: name2,
@@ -31566,9 +31677,9 @@ var FloatTimeField = (props) => {
31566
31677
  const { t: t3 } = useI18n();
31567
31678
  if (!isForm) {
31568
31679
  const formatValue = value ?? 0;
31569
- return /* @__PURE__ */ jsx89("span", { children: convertFloatToTime(formatValue) });
31680
+ return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
31570
31681
  }
31571
- return /* @__PURE__ */ jsx89(
31682
+ return /* @__PURE__ */ jsx90(
31572
31683
  Controller,
31573
31684
  {
31574
31685
  name: name2 ?? "",
@@ -31630,8 +31741,8 @@ var FloatTimeField = (props) => {
31630
31741
  }
31631
31742
  onBlur();
31632
31743
  };
31633
- return /* @__PURE__ */ jsxs59(Fragment26, { children: [
31634
- /* @__PURE__ */ jsx89(
31744
+ return /* @__PURE__ */ jsxs60(Fragment26, { children: [
31745
+ /* @__PURE__ */ jsx90(
31635
31746
  "input",
31636
31747
  {
31637
31748
  type: "text",
@@ -31663,7 +31774,7 @@ var FloatTimeField = (props) => {
31663
31774
  readOnly: readonly
31664
31775
  }
31665
31776
  ),
31666
- (error2 || errors) && /* @__PURE__ */ jsx89("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31777
+ (error2 || errors) && /* @__PURE__ */ jsx90("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31667
31778
  ] });
31668
31779
  }
31669
31780
  }
@@ -31672,7 +31783,7 @@ var FloatTimeField = (props) => {
31672
31783
 
31673
31784
  // src/widgets/basic/html-field/html.tsx
31674
31785
  import { useEffect as useEffect20, useRef as useRef17 } from "react";
31675
- import { jsx as jsx90 } from "react/jsx-runtime";
31786
+ import { jsx as jsx91 } from "react/jsx-runtime";
31676
31787
  var HtmlField = (props) => {
31677
31788
  const {
31678
31789
  name: name2,
@@ -31686,9 +31797,9 @@ var HtmlField = (props) => {
31686
31797
  } = props;
31687
31798
  const divRef = useRef17(null);
31688
31799
  if (!isForm && !isEditTable) {
31689
- return /* @__PURE__ */ jsx90("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31800
+ return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31690
31801
  }
31691
- return /* @__PURE__ */ jsx90(
31802
+ return /* @__PURE__ */ jsx91(
31692
31803
  Controller,
31693
31804
  {
31694
31805
  name: name2 ?? "",
@@ -31707,7 +31818,7 @@ var HtmlField = (props) => {
31707
31818
  onChange2(newValue, "");
31708
31819
  }
31709
31820
  };
31710
- return /* @__PURE__ */ jsx90(
31821
+ return /* @__PURE__ */ jsx91(
31711
31822
  "div",
31712
31823
  {
31713
31824
  ref: divRef,
@@ -31726,28 +31837,28 @@ var HtmlField = (props) => {
31726
31837
  };
31727
31838
 
31728
31839
  // src/widgets/basic/image-field/image.tsx
31729
- import { jsx as jsx91 } from "react/jsx-runtime";
31840
+ import { jsx as jsx92 } from "react/jsx-runtime";
31730
31841
  var ImageField = (props) => {
31731
31842
  const { value, type, name: name2, baseURL } = props;
31732
31843
  if (!value) return null;
31733
31844
  if (type === "url") {
31734
- return /* @__PURE__ */ jsx91("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31845
+ return /* @__PURE__ */ jsx92("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31735
31846
  }
31736
- return /* @__PURE__ */ jsx91("div", { id: "qr-code", children: /* @__PURE__ */ jsx91("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31847
+ return /* @__PURE__ */ jsx92("div", { id: "qr-code", children: /* @__PURE__ */ jsx92("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31737
31848
  };
31738
31849
 
31739
31850
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31740
31851
  import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
31741
31852
 
31742
31853
  // src/widgets/basic/information-field/information.tsx
31743
- import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs60 } from "react/jsx-runtime";
31854
+ import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31744
31855
  var InfomationField = (props) => {
31745
31856
  const { value, isForm = false, showName = true, stringToColor } = props;
31746
31857
  if (!value || Array.isArray(value) && value.length === 0) {
31747
- return /* @__PURE__ */ jsx92(Fragment27, {});
31858
+ return /* @__PURE__ */ jsx93(Fragment27, {});
31748
31859
  }
31749
31860
  const inforValues = Array.isArray(value) ? value : [value];
31750
- return /* @__PURE__ */ jsx92("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx92(
31861
+ return /* @__PURE__ */ jsx93("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx93(
31751
31862
  AvatarField,
31752
31863
  {
31753
31864
  id: item.id,
@@ -31756,8 +31867,8 @@ var InfomationField = (props) => {
31756
31867
  stringToColor
31757
31868
  },
31758
31869
  item.id
31759
- )) : /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center w-max", children: [
31760
- /* @__PURE__ */ jsx92(
31870
+ )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
31871
+ /* @__PURE__ */ jsx93(
31761
31872
  AvatarField,
31762
31873
  {
31763
31874
  avatarSrc: inforValues[0].image_256,
@@ -31767,12 +31878,12 @@ var InfomationField = (props) => {
31767
31878
  stringToColor
31768
31879
  }
31769
31880
  ),
31770
- showName && /* @__PURE__ */ jsx92("span", { className: "capitalize", children: inforValues[0].display_name })
31881
+ showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
31771
31882
  ] }) });
31772
31883
  };
31773
31884
 
31774
31885
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31775
- import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31886
+ import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31776
31887
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31777
31888
  const { selectProps, data, menuList } = props;
31778
31889
  const { relation } = selectProps;
@@ -31781,8 +31892,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31781
31892
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31782
31893
  )
31783
31894
  )?.[0]?.action?.id;
31784
- return /* @__PURE__ */ jsxs61("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31785
- /* @__PURE__ */ jsx93(
31895
+ return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31896
+ /* @__PURE__ */ jsx94(
31786
31897
  AvatarField,
31787
31898
  {
31788
31899
  id: data?.id,
@@ -31794,8 +31905,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31794
31905
  stringToColor
31795
31906
  }
31796
31907
  ),
31797
- /* @__PURE__ */ jsx93("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31798
- /* @__PURE__ */ jsx93(
31908
+ /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31909
+ /* @__PURE__ */ jsx94(
31799
31910
  "span",
31800
31911
  {
31801
31912
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -31803,7 +31914,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31803
31914
  e3.stopPropagation();
31804
31915
  props.removeProps.onClick();
31805
31916
  },
31806
- children: /* @__PURE__ */ jsx93(CloseIcon, {})
31917
+ children: /* @__PURE__ */ jsx94(CloseIcon, {})
31807
31918
  }
31808
31919
  )
31809
31920
  ] });
@@ -31813,9 +31924,9 @@ var CustomMenuList = (props) => {
31813
31924
  const { setIsShowModalMany2Many, searchable } = selectProps;
31814
31925
  const { t: t3 } = useI18n();
31815
31926
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
31816
- return /* @__PURE__ */ jsxs61(components.MenuList, { ...props, className: "z-[99]", children: [
31927
+ return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
31817
31928
  limitedChildren,
31818
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs61(
31929
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
31819
31930
  "button",
31820
31931
  {
31821
31932
  type: "button",
@@ -31860,7 +31971,7 @@ var Many2ManyTagField = (props) => {
31860
31971
  value: item.id,
31861
31972
  label: item.name ?? item.display_name
31862
31973
  })) : [];
31863
- return /* @__PURE__ */ jsx93(
31974
+ return /* @__PURE__ */ jsx94(
31864
31975
  InfomationField,
31865
31976
  {
31866
31977
  value: optionValue || null,
@@ -31869,7 +31980,7 @@ var Many2ManyTagField = (props) => {
31869
31980
  }
31870
31981
  );
31871
31982
  }
31872
- return /* @__PURE__ */ jsx93(
31983
+ return /* @__PURE__ */ jsx94(
31873
31984
  Controller,
31874
31985
  {
31875
31986
  name: name2 ?? "",
@@ -31905,8 +32016,8 @@ var Many2ManyTagField = (props) => {
31905
32016
  onChange2?.(name2 ?? "", newValue);
31906
32017
  clearErrors(name2);
31907
32018
  };
31908
- return /* @__PURE__ */ jsxs61("div", { className: "group h-full overflow-y-auto", children: [
31909
- /* @__PURE__ */ jsx93(
32019
+ return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32020
+ /* @__PURE__ */ jsx94(
31910
32021
  StateManagedSelect$1,
31911
32022
  {
31912
32023
  options: options2,
@@ -31984,7 +32095,7 @@ var Many2ManyTagField = (props) => {
31984
32095
  })
31985
32096
  },
31986
32097
  components: isUser ? {
31987
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx93(
32098
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
31988
32099
  CustomMultiValue,
31989
32100
  {
31990
32101
  ...multiValueProps,
@@ -31993,7 +32104,7 @@ var Many2ManyTagField = (props) => {
31993
32104
  ),
31994
32105
  IndicatorSeparator: () => null
31995
32106
  } : {
31996
- MenuList: (menuListProps) => /* @__PURE__ */ jsx93(
32107
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
31997
32108
  CustomMenuList,
31998
32109
  {
31999
32110
  ...menuListProps,
@@ -32004,13 +32115,13 @@ var Many2ManyTagField = (props) => {
32004
32115
  }
32005
32116
  ),
32006
32117
  IndicatorSeparator: () => null,
32007
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.DropdownIndicator, { ...props2 }),
32008
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.ClearIndicator, { ...props2 })
32118
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
32119
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.ClearIndicator, { ...props2 })
32009
32120
  },
32010
32121
  required: !invisible && required
32011
32122
  }
32012
32123
  ),
32013
- !isEditTable && error2 && /* @__PURE__ */ jsx93("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32124
+ !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32014
32125
  ] });
32015
32126
  }
32016
32127
  }
@@ -32019,7 +32130,7 @@ var Many2ManyTagField = (props) => {
32019
32130
 
32020
32131
  // src/widgets/basic/monetary-field/monetary.tsx
32021
32132
  import { useEffect as useEffect22 } from "react";
32022
- import { Fragment as Fragment28, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32133
+ import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32023
32134
  var MonetaryField = (props) => {
32024
32135
  const { t: t3 } = useI18n();
32025
32136
  const {
@@ -32039,26 +32150,26 @@ var MonetaryField = (props) => {
32039
32150
  isEditTable
32040
32151
  } = props;
32041
32152
  if (isForm && name2 === "amount_residual") {
32042
- return /* @__PURE__ */ jsxs62("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32043
- /* @__PURE__ */ jsxs62("span", { className: "font-semibold", children: [
32153
+ return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32154
+ /* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
32044
32155
  string,
32045
32156
  ":"
32046
32157
  ] }),
32047
- /* @__PURE__ */ jsx94("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32158
+ /* @__PURE__ */ jsx95("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32048
32159
  ] });
32049
32160
  }
32050
32161
  if (!isForm) {
32051
32162
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32052
32163
  if (widget === "monetary" && !formValues?.currency_id) {
32053
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32164
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32054
32165
  parseFloat(String(value ?? defaultValue))
32055
32166
  )} VND` });
32056
32167
  }
32057
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32168
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32058
32169
  parseFloat(value ?? defaultValue)
32059
32170
  )} ${currencySymbol}` });
32060
32171
  }
32061
- return /* @__PURE__ */ jsx94(
32172
+ return /* @__PURE__ */ jsx95(
32062
32173
  Controller,
32063
32174
  {
32064
32175
  name: name2 ?? "",
@@ -32077,8 +32188,8 @@ var MonetaryField = (props) => {
32077
32188
  clearErrors(name2);
32078
32189
  }
32079
32190
  }, [value2]);
32080
- return /* @__PURE__ */ jsxs62(Fragment28, { children: [
32081
- /* @__PURE__ */ jsx94(
32191
+ return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32192
+ /* @__PURE__ */ jsx95(
32082
32193
  "input",
32083
32194
  {
32084
32195
  value: formatNumberOnly(value2),
@@ -32116,7 +32227,7 @@ var MonetaryField = (props) => {
32116
32227
  `
32117
32228
  }
32118
32229
  ),
32119
- !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32230
+ !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32120
32231
  ] });
32121
32232
  }
32122
32233
  }
@@ -32124,14 +32235,14 @@ var MonetaryField = (props) => {
32124
32235
  };
32125
32236
 
32126
32237
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32127
- import { jsx as jsx95 } from "react/jsx-runtime";
32238
+ import { jsx as jsx96 } from "react/jsx-runtime";
32128
32239
  var PaidBadgedField = () => {
32129
- return /* @__PURE__ */ jsx95("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx95(PaidIcon, {}) });
32240
+ return /* @__PURE__ */ jsx96("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx96(PaidIcon, {}) });
32130
32241
  };
32131
32242
 
32132
32243
  // src/widgets/basic/priority-field/rating-star.tsx
32133
32244
  import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32134
- import { jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
32245
+ import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32135
32246
  var RatingStarField = (props) => {
32136
32247
  const {
32137
32248
  label,
@@ -32166,7 +32277,7 @@ var RatingStarField = (props) => {
32166
32277
  setHover(0);
32167
32278
  setRating(0);
32168
32279
  };
32169
- return /* @__PURE__ */ jsx96(
32280
+ return /* @__PURE__ */ jsx97(
32170
32281
  "div",
32171
32282
  {
32172
32283
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32176,17 +32287,17 @@ var RatingStarField = (props) => {
32176
32287
  const starValue = index4 + 1;
32177
32288
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32178
32289
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32179
- return /* @__PURE__ */ jsxs63(React17.Fragment, { children: [
32180
- /* @__PURE__ */ jsx96(
32290
+ return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32291
+ /* @__PURE__ */ jsx97(
32181
32292
  "div",
32182
32293
  {
32183
32294
  onMouseEnter: () => handleHover(starValue),
32184
32295
  onClick: () => handleClick(starValue),
32185
32296
  "data-tooltip-id": `${id}-${starValue}`,
32186
- children: /* @__PURE__ */ jsx96(StarIcon, { fill: fillColor, stroke: strokeColor })
32297
+ children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32187
32298
  }
32188
32299
  ),
32189
- /* @__PURE__ */ jsx96(
32300
+ /* @__PURE__ */ jsx97(
32190
32301
  M,
32191
32302
  {
32192
32303
  className: "z-50",
@@ -32202,7 +32313,7 @@ var RatingStarField = (props) => {
32202
32313
  };
32203
32314
 
32204
32315
  // src/widgets/basic/priority-field/priority.tsx
32205
- import { jsx as jsx97 } from "react/jsx-runtime";
32316
+ import { jsx as jsx98 } from "react/jsx-runtime";
32206
32317
  var PriorityField = (props) => {
32207
32318
  const {
32208
32319
  isForm,
@@ -32218,7 +32329,7 @@ var PriorityField = (props) => {
32218
32329
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32219
32330
  const defaultPriority = parseInt(value) + 1;
32220
32331
  if (!isForm) {
32221
- return /* @__PURE__ */ jsx97(
32332
+ return /* @__PURE__ */ jsx98(
32222
32333
  RatingStarField,
32223
32334
  {
32224
32335
  label,
@@ -32229,7 +32340,7 @@ var PriorityField = (props) => {
32229
32340
  }
32230
32341
  );
32231
32342
  }
32232
- return /* @__PURE__ */ jsx97(
32343
+ return /* @__PURE__ */ jsx98(
32233
32344
  Controller,
32234
32345
  {
32235
32346
  name: name ?? "",
@@ -32239,7 +32350,7 @@ var PriorityField = (props) => {
32239
32350
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32240
32351
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32241
32352
  };
32242
- return /* @__PURE__ */ jsx97(
32353
+ return /* @__PURE__ */ jsx98(
32243
32354
  RatingStarField,
32244
32355
  {
32245
32356
  label,
@@ -32256,7 +32367,7 @@ var PriorityField = (props) => {
32256
32367
 
32257
32368
  // src/widgets/basic/radio-group-field/radio-group.tsx
32258
32369
  import { useEffect as useEffect24 } from "react";
32259
- import { jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
32370
+ import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32260
32371
  var RadioGroupField = (props) => {
32261
32372
  const {
32262
32373
  name: name2,
@@ -32275,13 +32386,13 @@ var RadioGroupField = (props) => {
32275
32386
  }
32276
32387
  }, [selection, name2, setValue]);
32277
32388
  if (!methods) return null;
32278
- return /* @__PURE__ */ jsx98(
32389
+ return /* @__PURE__ */ jsx99(
32279
32390
  Controller,
32280
32391
  {
32281
32392
  name: name2 ?? "",
32282
32393
  control: methods.control,
32283
- render: ({ field }) => /* @__PURE__ */ jsx98("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-1", children: [
32284
- /* @__PURE__ */ jsx98(
32394
+ render: ({ field }) => /* @__PURE__ */ jsx99("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-1", children: [
32395
+ /* @__PURE__ */ jsx99(
32285
32396
  "input",
32286
32397
  {
32287
32398
  type: "radio",
@@ -32300,7 +32411,7 @@ var RadioGroupField = (props) => {
32300
32411
  className: "custom-radio"
32301
32412
  }
32302
32413
  ),
32303
- /* @__PURE__ */ jsx98("label", { htmlFor: String(select[0]), children: select[1] })
32414
+ /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32304
32415
  ] }, select[0])) })
32305
32416
  }
32306
32417
  );
@@ -32308,7 +32419,7 @@ var RadioGroupField = (props) => {
32308
32419
 
32309
32420
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32310
32421
  var import_moment3 = __toESM(require_moment());
32311
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32422
+ import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32312
32423
  var RemainingDaysField = (props) => {
32313
32424
  const {
32314
32425
  value,
@@ -32319,14 +32430,14 @@ var RemainingDaysField = (props) => {
32319
32430
  if (!value) return null;
32320
32431
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32321
32432
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32322
- return /* @__PURE__ */ jsxs65("div", { className: isForm ? "mb-4" : "", children: [
32323
- /* @__PURE__ */ jsx99(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32324
- /* @__PURE__ */ jsx99(
32433
+ return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32434
+ /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32435
+ /* @__PURE__ */ jsx100(
32325
32436
  "div",
32326
32437
  {
32327
32438
  "data-tooltip-id": `remainingDays_${value}`,
32328
32439
  className: "flex items-center w-fit cursor-context-menu",
32329
- children: /* @__PURE__ */ jsx99(
32440
+ children: /* @__PURE__ */ jsx100(
32330
32441
  "div",
32331
32442
  {
32332
32443
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32339,7 +32450,7 @@ var RemainingDaysField = (props) => {
32339
32450
  };
32340
32451
 
32341
32452
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32342
- import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32453
+ import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32343
32454
  var SelectDropdownField = (props) => {
32344
32455
  const { t: t3 } = useI18n();
32345
32456
  const {
@@ -32361,9 +32472,9 @@ var SelectDropdownField = (props) => {
32361
32472
  label: val[1]
32362
32473
  })) : [];
32363
32474
  if (!isForm && !isEditTable) {
32364
- return /* @__PURE__ */ jsx100("span", { children: options2?.find((item) => item?.value === value)?.label });
32475
+ return /* @__PURE__ */ jsx101("span", { children: options2?.find((item) => item?.value === value)?.label });
32365
32476
  } else {
32366
- return /* @__PURE__ */ jsx100(
32477
+ return /* @__PURE__ */ jsx101(
32367
32478
  Controller,
32368
32479
  {
32369
32480
  name: name2 || "",
@@ -32390,8 +32501,8 @@ var SelectDropdownField = (props) => {
32390
32501
  value: defaultValue || null,
32391
32502
  required: !invisible && required
32392
32503
  };
32393
- return /* @__PURE__ */ jsxs66(Fragment29, { children: [
32394
- /* @__PURE__ */ jsx100("div", { className: "group", children: /* @__PURE__ */ jsx100(
32504
+ return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32505
+ /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32395
32506
  StateManagedSelect$1,
32396
32507
  {
32397
32508
  ...commonProps,
@@ -32446,12 +32557,12 @@ var SelectDropdownField = (props) => {
32446
32557
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32447
32558
  components: {
32448
32559
  IndicatorSeparator: () => null,
32449
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx100(components.DropdownIndicator, { ...props2 })
32560
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32450
32561
  },
32451
32562
  noOptionsMessage: () => t3("no-available")
32452
32563
  }
32453
32564
  ) }),
32454
- !isEditTable && error2 && /* @__PURE__ */ jsx100("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32565
+ !isEditTable && error2 && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32455
32566
  ] });
32456
32567
  }
32457
32568
  }
@@ -32460,7 +32571,7 @@ var SelectDropdownField = (props) => {
32460
32571
  };
32461
32572
 
32462
32573
  // src/widgets/basic/textarea-field/textarea.tsx
32463
- import { jsx as jsx101 } from "react/jsx-runtime";
32574
+ import { jsx as jsx102 } from "react/jsx-runtime";
32464
32575
  var TextAreaField = (props) => {
32465
32576
  const {
32466
32577
  methods,
@@ -32484,9 +32595,9 @@ var TextAreaField = (props) => {
32484
32595
  }
32485
32596
  }) : {};
32486
32597
  if (!isForm) {
32487
- return /* @__PURE__ */ jsx101("span", { children: value && typeof value === "object" ? value.display_name : value });
32598
+ return /* @__PURE__ */ jsx102("span", { children: value && typeof value === "object" ? value.display_name : value });
32488
32599
  }
32489
- return /* @__PURE__ */ jsx101(
32600
+ return /* @__PURE__ */ jsx102(
32490
32601
  "textarea",
32491
32602
  {
32492
32603
  ...formProps,
@@ -32502,7 +32613,7 @@ var TextAreaField = (props) => {
32502
32613
  };
32503
32614
 
32504
32615
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32505
- import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
32616
+ import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32506
32617
  var ToggleButtonField = (props) => {
32507
32618
  const {
32508
32619
  name: name2,
@@ -32512,13 +32623,13 @@ var ToggleButtonField = (props) => {
32512
32623
  onChange: onChange2,
32513
32624
  methods
32514
32625
  } = props;
32515
- return /* @__PURE__ */ jsx102(
32626
+ return /* @__PURE__ */ jsx103(
32516
32627
  Controller,
32517
32628
  {
32518
32629
  name: name2 ?? "",
32519
32630
  control: methods?.control,
32520
- render: ({ field }) => /* @__PURE__ */ jsx102("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs67("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32521
- /* @__PURE__ */ jsx102(
32631
+ render: ({ field }) => /* @__PURE__ */ jsx103("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs68("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32632
+ /* @__PURE__ */ jsx103(
32522
32633
  "input",
32523
32634
  {
32524
32635
  ...field,
@@ -32537,7 +32648,7 @@ var ToggleButtonField = (props) => {
32537
32648
  checked: field.value ?? false
32538
32649
  }
32539
32650
  ),
32540
- /* @__PURE__ */ jsx102(
32651
+ /* @__PURE__ */ jsx103(
32541
32652
  "span",
32542
32653
  {
32543
32654
  style: {
@@ -32546,7 +32657,7 @@ var ToggleButtonField = (props) => {
32546
32657
  },
32547
32658
  className: `rounded-full transition duration-300
32548
32659
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32549
- children: /* @__PURE__ */ jsx102(
32660
+ children: /* @__PURE__ */ jsx103(
32550
32661
  "span",
32551
32662
  {
32552
32663
  style: {
@@ -32571,7 +32682,7 @@ var ToggleButtonField = (props) => {
32571
32682
 
32572
32683
  // src/widgets/basic/integer-field/integer.tsx
32573
32684
  import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
32574
- import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32685
+ import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32575
32686
  var IntegerField = (props) => {
32576
32687
  const {
32577
32688
  name: name2,
@@ -32590,9 +32701,9 @@ var IntegerField = (props) => {
32590
32701
  const { t: t3 } = useI18n();
32591
32702
  if (!isForm && !isEditTable) {
32592
32703
  const displayValue = value ?? defaultValue;
32593
- return /* @__PURE__ */ jsx103("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32704
+ return /* @__PURE__ */ jsx104("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32594
32705
  }
32595
- return /* @__PURE__ */ jsx103(
32706
+ return /* @__PURE__ */ jsx104(
32596
32707
  Controller,
32597
32708
  {
32598
32709
  name: name2 || "",
@@ -32670,8 +32781,8 @@ var IntegerField = (props) => {
32670
32781
  inputRef.current?.blur();
32671
32782
  clearErrors(name2);
32672
32783
  };
32673
- return /* @__PURE__ */ jsxs68(Fragment30, { children: [
32674
- /* @__PURE__ */ jsx103(
32784
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32785
+ /* @__PURE__ */ jsx104(
32675
32786
  "input",
32676
32787
  {
32677
32788
  ref: inputRef,
@@ -32706,7 +32817,7 @@ var IntegerField = (props) => {
32706
32817
  `
32707
32818
  }
32708
32819
  ),
32709
- error2 && isEditTable && /* @__PURE__ */ jsx103("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32820
+ error2 && isEditTable && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32710
32821
  ] });
32711
32822
  }
32712
32823
  }
@@ -32714,7 +32825,7 @@ var IntegerField = (props) => {
32714
32825
  };
32715
32826
 
32716
32827
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32717
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32828
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32718
32829
  var StatusDropdownField = (props) => {
32719
32830
  const {
32720
32831
  buttonRef,
@@ -32726,13 +32837,13 @@ var StatusDropdownField = (props) => {
32726
32837
  handleClick,
32727
32838
  colors: colors2
32728
32839
  } = props;
32729
- return /* @__PURE__ */ jsxs69(
32840
+ return /* @__PURE__ */ jsxs70(
32730
32841
  "div",
32731
32842
  {
32732
32843
  ref: buttonRef,
32733
32844
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32734
32845
  children: [
32735
- /* @__PURE__ */ jsx104(
32846
+ /* @__PURE__ */ jsx105(
32736
32847
  "button",
32737
32848
  {
32738
32849
  type: "button",
@@ -32740,23 +32851,23 @@ var StatusDropdownField = (props) => {
32740
32851
  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"}`
32741
32852
  }
32742
32853
  ),
32743
- isOpen && /* @__PURE__ */ jsx104("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) => {
32854
+ isOpen && /* @__PURE__ */ jsx105("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
32744
32855
  const isActive = item[0] == state;
32745
- return /* @__PURE__ */ jsxs69(
32856
+ return /* @__PURE__ */ jsxs70(
32746
32857
  "div",
32747
32858
  {
32748
32859
  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" : ""}`,
32749
32860
  onClick: () => handleClick(item[0]),
32750
32861
  children: [
32751
- /* @__PURE__ */ jsx104("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx104(CheckIcon, {}) }),
32752
- /* @__PURE__ */ jsxs69("div", { className: "flex items-center gap-2", children: [
32753
- /* @__PURE__ */ jsx104(
32862
+ /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
32863
+ /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
32864
+ /* @__PURE__ */ jsx105(
32754
32865
  "div",
32755
32866
  {
32756
32867
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
32757
32868
  }
32758
32869
  ),
32759
- /* @__PURE__ */ jsx104("span", { className: "text-sm", children: item[1] })
32870
+ /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
32760
32871
  ] })
32761
32872
  ]
32762
32873
  },
@@ -32769,9 +32880,9 @@ var StatusDropdownField = (props) => {
32769
32880
  };
32770
32881
 
32771
32882
  // src/widgets/basic/many2many-field/many2many.tsx
32772
- import { createPortal as createPortal5 } from "react-dom";
32883
+ import { createPortal as createPortal6 } from "react-dom";
32773
32884
  import { useEffect as useEffect26 } from "react";
32774
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32885
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32775
32886
  var Many2ManyField = (props) => {
32776
32887
  const { t: t3 } = useI18n();
32777
32888
  const {
@@ -32844,8 +32955,8 @@ var Many2ManyField = (props) => {
32844
32955
  typeof setGroupByList === "function" && setGroupByList(null);
32845
32956
  };
32846
32957
  }, [selectedTags]);
32847
- return createPortal5(
32848
- /* @__PURE__ */ jsxs70(
32958
+ return createPortal6(
32959
+ /* @__PURE__ */ jsxs71(
32849
32960
  "div",
32850
32961
  {
32851
32962
  style: {
@@ -32853,8 +32964,8 @@ var Many2ManyField = (props) => {
32853
32964
  },
32854
32965
  className: "fixed bottom-0 left-0 right-0 top-0",
32855
32966
  children: [
32856
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32857
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs70(
32967
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32968
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
32858
32969
  "div",
32859
32970
  {
32860
32971
  style: {
@@ -32862,12 +32973,12 @@ var Many2ManyField = (props) => {
32862
32973
  },
32863
32974
  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",
32864
32975
  children: [
32865
- /* @__PURE__ */ jsxs70("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32866
- /* @__PURE__ */ jsx105("div", { className: "text-[20px] font-semibold", children: title }),
32867
- /* @__PURE__ */ jsx105("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx105(CloseIcon, {}) })
32976
+ /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32977
+ /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
32978
+ /* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
32868
32979
  ] }),
32869
- /* @__PURE__ */ jsxs70("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32870
- /* @__PURE__ */ jsx105("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx105(
32980
+ /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32981
+ /* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
32871
32982
  Search,
32872
32983
  {
32873
32984
  removeSearchItems,
@@ -32901,7 +33012,7 @@ var Many2ManyField = (props) => {
32901
33012
  groupByList
32902
33013
  }
32903
33014
  ) }),
32904
- /* @__PURE__ */ jsx105(
33015
+ /* @__PURE__ */ jsx106(
32905
33016
  PaginationView,
32906
33017
  {
32907
33018
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -32918,20 +33029,20 @@ var Many2ManyField = (props) => {
32918
33029
  }
32919
33030
  )
32920
33031
  ] }),
32921
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx105("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx105("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx105(
33032
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx106("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx106("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx106(
32922
33033
  "div",
32923
33034
  {
32924
33035
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
32925
- children: /* @__PURE__ */ jsx105("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx105("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx105(
33036
+ children: /* @__PURE__ */ jsx106("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx106("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx106(
32926
33037
  "div",
32927
33038
  {
32928
33039
  className: `flex w-full items-center h-full overflow-auto `,
32929
- children: /* @__PURE__ */ jsx105("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs70(
33040
+ children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
32930
33041
  "table",
32931
33042
  {
32932
33043
  className: `relative w-full bg-white custom-dropdown `,
32933
33044
  children: [
32934
- /* @__PURE__ */ jsx105(
33045
+ /* @__PURE__ */ jsx106(
32935
33046
  TableHead,
32936
33047
  {
32937
33048
  columns,
@@ -32941,7 +33052,7 @@ var Many2ManyField = (props) => {
32941
33052
  handleCheckBoxAll
32942
33053
  }
32943
33054
  ),
32944
- rows?.length > 0 ? /* @__PURE__ */ jsx105(
33055
+ rows?.length > 0 ? /* @__PURE__ */ jsx106(
32945
33056
  TableBody,
32946
33057
  {
32947
33058
  tableGroupController,
@@ -32981,16 +33092,16 @@ var Many2ManyField = (props) => {
32981
33092
  checkedAll,
32982
33093
  context
32983
33094
  }
32984
- ) : /* @__PURE__ */ jsx105("tr", { children: /* @__PURE__ */ jsx105(
33095
+ ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
32985
33096
  "td",
32986
33097
  {
32987
33098
  className: "w-full",
32988
33099
  colSpan: columns?.length + 2,
32989
- children: /* @__PURE__ */ jsx105(
33100
+ children: /* @__PURE__ */ jsx106(
32990
33101
  "div",
32991
33102
  {
32992
33103
  className: `flex flex-col items-center justify-center gap-3 py-6`,
32993
- children: /* @__PURE__ */ jsx105(EmptyTable, {})
33104
+ children: /* @__PURE__ */ jsx106(EmptyTable, {})
32994
33105
  }
32995
33106
  )
32996
33107
  }
@@ -33001,9 +33112,9 @@ var Many2ManyField = (props) => {
33001
33112
  }
33002
33113
  ) }) })
33003
33114
  }
33004
- ) }) }) : /* @__PURE__ */ jsx105(LayerLoading, {}),
33005
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2 mt-auto", children: [
33006
- isDisplayCheckbox && /* @__PURE__ */ jsx105(
33115
+ ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33116
+ /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33117
+ isDisplayCheckbox && /* @__PURE__ */ jsx106(
33007
33118
  "button",
33008
33119
  {
33009
33120
  disabled: selectedRowKeys?.length === 0,
@@ -33013,7 +33124,7 @@ var Many2ManyField = (props) => {
33013
33124
  children: t3("choose")
33014
33125
  }
33015
33126
  ),
33016
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx105(
33127
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33017
33128
  "button",
33018
33129
  {
33019
33130
  type: "button",
@@ -33029,7 +33140,7 @@ var Many2ManyField = (props) => {
33029
33140
  children: t3("new")
33030
33141
  }
33031
33142
  ),
33032
- /* @__PURE__ */ jsx105(
33143
+ /* @__PURE__ */ jsx106(
33033
33144
  "button",
33034
33145
  {
33035
33146
  type: "button",
@@ -33051,15 +33162,15 @@ var Many2ManyField = (props) => {
33051
33162
 
33052
33163
  // src/widgets/basic/many2one-field/many2one.tsx
33053
33164
  import React18, { useEffect as useEffect27 } from "react";
33054
- import { Fragment as Fragment31, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33165
+ import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33055
33166
  var CustomMenuList2 = (props) => {
33056
33167
  const { t: t3 } = useI18n();
33057
33168
  const { options: options2, children, selectProps } = props;
33058
33169
  const { setIsShowModalMany2Many, searchable } = selectProps;
33059
33170
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33060
- return /* @__PURE__ */ jsxs71(components.MenuList, { ...props, className: "z-[99]", children: [
33171
+ return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33061
33172
  limitedChildren,
33062
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs71(
33173
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33063
33174
  "button",
33064
33175
  {
33065
33176
  type: "button",
@@ -33102,14 +33213,14 @@ var Many2OneField = (props) => {
33102
33213
  const { t: t3 } = useI18n();
33103
33214
  if (!isForm && !isEditTable) {
33104
33215
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33105
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33216
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33106
33217
  allowShowDetail && renderDetail({
33107
33218
  idToolTip: String(name2) + Number(index4),
33108
33219
  model: options2?.model ?? relation,
33109
33220
  context: contextObject,
33110
33221
  idForm: id
33111
33222
  }),
33112
- /* @__PURE__ */ jsx106(
33223
+ /* @__PURE__ */ jsx107(
33113
33224
  "span",
33114
33225
  {
33115
33226
  className: "cursor-pointer",
@@ -33120,20 +33231,20 @@ var Many2OneField = (props) => {
33120
33231
  )
33121
33232
  ] });
33122
33233
  }
33123
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33234
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33124
33235
  allowShowDetail && renderDetail({
33125
33236
  idToolTip: String(name2),
33126
33237
  model: options2?.model ?? relation,
33127
33238
  context: contextObject,
33128
33239
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33129
33240
  }),
33130
- /* @__PURE__ */ jsx106(
33241
+ /* @__PURE__ */ jsx107(
33131
33242
  "div",
33132
33243
  {
33133
33244
  id: name2,
33134
33245
  "data-tooltip-id": name2,
33135
33246
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33136
- children: /* @__PURE__ */ jsx106(
33247
+ children: /* @__PURE__ */ jsx107(
33137
33248
  Controller,
33138
33249
  {
33139
33250
  name: name2 ?? "",
@@ -33158,8 +33269,8 @@ var Many2OneField = (props) => {
33158
33269
  methods?.clearErrors(name2);
33159
33270
  }
33160
33271
  }, [selectedOption]);
33161
- return /* @__PURE__ */ jsxs71("div", { className: "h-full", children: [
33162
- /* @__PURE__ */ jsx106(
33272
+ return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33273
+ /* @__PURE__ */ jsx107(
33163
33274
  StateManagedSelect$1,
33164
33275
  {
33165
33276
  menuShouldScrollIntoView: false,
@@ -33235,7 +33346,7 @@ var Many2OneField = (props) => {
33235
33346
  })
33236
33347
  },
33237
33348
  components: {
33238
- MenuList: (menuListProps) => /* @__PURE__ */ jsx106(
33349
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33239
33350
  CustomMenuList2,
33240
33351
  {
33241
33352
  ...menuListProps,
@@ -33246,13 +33357,13 @@ var Many2OneField = (props) => {
33246
33357
  }
33247
33358
  ),
33248
33359
  IndicatorSeparator: () => null,
33249
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx106(components.DropdownIndicator, { ...props2 })
33360
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33250
33361
  },
33251
33362
  isDisabled: readonly,
33252
33363
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33253
33364
  }
33254
33365
  ),
33255
- !isEditTable && error2 && /* @__PURE__ */ jsx106("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33366
+ !isEditTable && error2 && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33256
33367
  ] });
33257
33368
  }
33258
33369
  }
@@ -33263,7 +33374,7 @@ var Many2OneField = (props) => {
33263
33374
  };
33264
33375
 
33265
33376
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33266
- import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33377
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33267
33378
  var StatusbarDurationField = (props) => {
33268
33379
  const {
33269
33380
  disabled,
@@ -33273,14 +33384,14 @@ var StatusbarDurationField = (props) => {
33273
33384
  defaultValue,
33274
33385
  setModalStatus
33275
33386
  } = props;
33276
- return /* @__PURE__ */ jsx107(
33387
+ return /* @__PURE__ */ jsx108(
33277
33388
  "div",
33278
33389
  {
33279
33390
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33280
- children: /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[24px]", children: [
33281
- /* @__PURE__ */ jsx107("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33391
+ children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33392
+ /* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33282
33393
  const value = option?.id === defaultValue;
33283
- return /* @__PURE__ */ jsxs72(
33394
+ return /* @__PURE__ */ jsxs73(
33284
33395
  "label",
33285
33396
  {
33286
33397
  onClick: () => !disabled && handleClick(option.id),
@@ -33290,7 +33401,7 @@ var StatusbarDurationField = (props) => {
33290
33401
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33291
33402
  `,
33292
33403
  children: [
33293
- /* @__PURE__ */ jsx107(
33404
+ /* @__PURE__ */ jsx108(
33294
33405
  "input",
33295
33406
  {
33296
33407
  type: "radio",
@@ -33300,7 +33411,7 @@ var StatusbarDurationField = (props) => {
33300
33411
  }
33301
33412
  ),
33302
33413
  option?.name,
33303
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx107(
33414
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33304
33415
  "div",
33305
33416
  {
33306
33417
  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]
@@ -33315,14 +33426,14 @@ var StatusbarDurationField = (props) => {
33315
33426
  }) }),
33316
33427
  dataResponse?.records?.some(
33317
33428
  (item) => item?.fold && item.id !== defaultValue
33318
- ) && /* @__PURE__ */ jsxs72(
33429
+ ) && /* @__PURE__ */ jsxs73(
33319
33430
  "div",
33320
33431
  {
33321
33432
  onClick: () => setModalStatus(!modelStatus),
33322
33433
  className: "w-[24px] h-[24px] cursor-pointer relative",
33323
33434
  children: [
33324
- /* @__PURE__ */ jsx107(MoreIcon, {}),
33325
- modelStatus && /* @__PURE__ */ jsx107(
33435
+ /* @__PURE__ */ jsx108(MoreIcon, {}),
33436
+ modelStatus && /* @__PURE__ */ jsx108(
33326
33437
  "div",
33327
33438
  {
33328
33439
  onClick: (e3) => e3.stopPropagation(),
@@ -33331,7 +33442,7 @@ var StatusbarDurationField = (props) => {
33331
33442
  (item) => item?.fold && item.id !== defaultValue
33332
33443
  )?.map((option) => {
33333
33444
  const value = option?.id === defaultValue;
33334
- return /* @__PURE__ */ jsx107(
33445
+ return /* @__PURE__ */ jsx108(
33335
33446
  "div",
33336
33447
  {
33337
33448
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33353,14 +33464,14 @@ var StatusbarDurationField = (props) => {
33353
33464
 
33354
33465
  // src/widgets/basic/status-bar-field/option/option.tsx
33355
33466
  import { useMemo as useMemo11 } from "react";
33356
- import { Fragment as Fragment32, jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33467
+ import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33357
33468
  var StatusBarOptionField = (props) => {
33358
33469
  const { selection, defaultValue } = props;
33359
33470
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33360
33471
  const indexInProgress = memoizedStatusOptions?.findIndex(
33361
33472
  (option) => option?.[0] === defaultValue
33362
33473
  );
33363
- return /* @__PURE__ */ jsx108(
33474
+ return /* @__PURE__ */ jsx109(
33364
33475
  "div",
33365
33476
  {
33366
33477
  style: {
@@ -33369,8 +33480,8 @@ var StatusBarOptionField = (props) => {
33369
33480
  flexWrap: "wrap"
33370
33481
  },
33371
33482
  children: memoizedStatusOptions?.map((option, index4) => {
33372
- return /* @__PURE__ */ jsxs73(Fragment32, { children: [
33373
- /* @__PURE__ */ jsxs73(
33483
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33484
+ /* @__PURE__ */ jsxs74(
33374
33485
  "div",
33375
33486
  {
33376
33487
  style: {
@@ -33388,7 +33499,7 @@ var StatusBarOptionField = (props) => {
33388
33499
  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" : ""
33389
33500
  },
33390
33501
  children: [
33391
- /* @__PURE__ */ jsx108(
33502
+ /* @__PURE__ */ jsx109(
33392
33503
  "span",
33393
33504
  {
33394
33505
  style: {
@@ -33400,10 +33511,10 @@ var StatusBarOptionField = (props) => {
33400
33511
  alignItems: "center",
33401
33512
  borderRadius: "100%"
33402
33513
  },
33403
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx108(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx108(ICCircle, {}) : /* @__PURE__ */ jsx108(ICMinus, {})
33514
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx109(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx109(ICCircle, {}) : /* @__PURE__ */ jsx109(ICMinus, {})
33404
33515
  }
33405
33516
  ),
33406
- /* @__PURE__ */ jsx108(
33517
+ /* @__PURE__ */ jsx109(
33407
33518
  "span",
33408
33519
  {
33409
33520
  style: {
@@ -33416,7 +33527,7 @@ var StatusBarOptionField = (props) => {
33416
33527
  },
33417
33528
  option?.[0]
33418
33529
  ),
33419
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx108(
33530
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33420
33531
  "div",
33421
33532
  {
33422
33533
  style: {
@@ -33432,7 +33543,7 @@ var StatusBarOptionField = (props) => {
33432
33543
  );
33433
33544
  };
33434
33545
  var ICMinus = () => {
33435
- return /* @__PURE__ */ jsx108(
33546
+ return /* @__PURE__ */ jsx109(
33436
33547
  "svg",
33437
33548
  {
33438
33549
  xmlns: "http://www.w3.org/2000/svg",
@@ -33440,7 +33551,7 @@ var ICMinus = () => {
33440
33551
  height: "16",
33441
33552
  viewBox: "0 0 16 16",
33442
33553
  fill: "none",
33443
- children: /* @__PURE__ */ jsx108(
33554
+ children: /* @__PURE__ */ jsx109(
33444
33555
  "path",
33445
33556
  {
33446
33557
  d: "M4 8H12",
@@ -33454,7 +33565,7 @@ var ICMinus = () => {
33454
33565
  );
33455
33566
  };
33456
33567
  var ICCircle = () => {
33457
- return /* @__PURE__ */ jsx108(
33568
+ return /* @__PURE__ */ jsx109(
33458
33569
  "svg",
33459
33570
  {
33460
33571
  xmlns: "http://www.w3.org/2000/svg",
@@ -33462,12 +33573,12 @@ var ICCircle = () => {
33462
33573
  height: "8",
33463
33574
  viewBox: "0 0 8 8",
33464
33575
  fill: "none",
33465
- children: /* @__PURE__ */ jsx108("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33576
+ children: /* @__PURE__ */ jsx109("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33466
33577
  }
33467
33578
  );
33468
33579
  };
33469
33580
  var ICCheck = () => {
33470
- return /* @__PURE__ */ jsx108(
33581
+ return /* @__PURE__ */ jsx109(
33471
33582
  "svg",
33472
33583
  {
33473
33584
  xmlns: "http://www.w3.org/2000/svg",
@@ -33475,7 +33586,7 @@ var ICCheck = () => {
33475
33586
  height: "16",
33476
33587
  viewBox: "0 0 16 16",
33477
33588
  fill: "none",
33478
- children: /* @__PURE__ */ jsx108(
33589
+ children: /* @__PURE__ */ jsx109(
33479
33590
  "path",
33480
33591
  {
33481
33592
  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",
@@ -33489,7 +33600,7 @@ var ICCheck = () => {
33489
33600
  };
33490
33601
 
33491
33602
  // src/widgets/basic/date-option-field/date-option.tsx
33492
- import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33603
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33493
33604
  var DateOptionField = (props) => {
33494
33605
  const {
33495
33606
  name: name2,
@@ -33500,19 +33611,19 @@ var DateOptionField = (props) => {
33500
33611
  string,
33501
33612
  onChange: onChange2
33502
33613
  } = props;
33503
- return /* @__PURE__ */ jsx109(
33614
+ return /* @__PURE__ */ jsx110(
33504
33615
  Controller,
33505
33616
  {
33506
33617
  name: name2 ?? "",
33507
33618
  control: methods?.control,
33508
- render: ({ field }) => /* @__PURE__ */ jsxs74(
33619
+ render: ({ field }) => /* @__PURE__ */ jsxs75(
33509
33620
  "label",
33510
33621
  {
33511
33622
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33512
33623
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33513
33624
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33514
33625
  children: [
33515
- /* @__PURE__ */ jsx109(
33626
+ /* @__PURE__ */ jsx110(
33516
33627
  "input",
33517
33628
  {
33518
33629
  type: "checkbox",