@fctc/sme-widget-ui 1.9.0 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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,7 @@ 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 { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
12510
12562
  var TableHead = (props) => {
12511
12563
  const {
12512
12564
  handleCheckBoxAll,
@@ -12516,7 +12568,7 @@ var TableHead = (props) => {
12516
12568
  onRemoveRow,
12517
12569
  onToggleColumnOptional
12518
12570
  } = props;
12519
- return /* @__PURE__ */ jsx46("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs25(
12571
+ return /* @__PURE__ */ jsx47("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs26(
12520
12572
  "tr",
12521
12573
  {
12522
12574
  style: {
@@ -12528,11 +12580,11 @@ var TableHead = (props) => {
12528
12580
  },
12529
12581
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
12530
12582
  children: [
12531
- isDisplayCheckbox && /* @__PURE__ */ jsx46(
12583
+ isDisplayCheckbox && /* @__PURE__ */ jsx47(
12532
12584
  "th",
12533
12585
  {
12534
12586
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
12535
- children: /* @__PURE__ */ jsx46(
12587
+ children: /* @__PURE__ */ jsx47(
12536
12588
  "input",
12537
12589
  {
12538
12590
  type: "checkbox",
@@ -12544,14 +12596,14 @@ var TableHead = (props) => {
12544
12596
  }
12545
12597
  ),
12546
12598
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12547
- return /* @__PURE__ */ jsx46(
12599
+ return /* @__PURE__ */ jsx47(
12548
12600
  "th",
12549
12601
  {
12550
12602
  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: [
12603
+ children: /* @__PURE__ */ jsxs26("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12552
12604
  col.title,
12553
- col?.field?.help && /* @__PURE__ */ jsxs25(Fragment4, { children: [
12554
- /* @__PURE__ */ jsx46(
12605
+ col?.field?.help && /* @__PURE__ */ jsxs26(Fragment4, { children: [
12606
+ /* @__PURE__ */ jsx47(
12555
12607
  M,
12556
12608
  {
12557
12609
  style: {
@@ -12569,7 +12621,7 @@ var TableHead = (props) => {
12569
12621
  className: "z-30"
12570
12622
  }
12571
12623
  ),
12572
- /* @__PURE__ */ jsx46(
12624
+ /* @__PURE__ */ jsx47(
12573
12625
  "span",
12574
12626
  {
12575
12627
  style: {
@@ -12588,8 +12640,8 @@ var TableHead = (props) => {
12588
12640
  "table-head-" + index4
12589
12641
  );
12590
12642
  }),
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(
12643
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx47("th", { className: "relative p-2 w-[35px]" }),
12644
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
12593
12645
  "th",
12594
12646
  {
12595
12647
  style: {
@@ -12597,7 +12649,7 @@ var TableHead = (props) => {
12597
12649
  right: 0
12598
12650
  },
12599
12651
  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(
12652
+ children: /* @__PURE__ */ jsx47(
12601
12653
  TableFilter,
12602
12654
  {
12603
12655
  columns,
@@ -12612,9 +12664,9 @@ var TableHead = (props) => {
12612
12664
  };
12613
12665
 
12614
12666
  // src/icons/empty-table-icon.tsx
12615
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
12667
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12616
12668
  var IcEmptyTable = () => {
12617
- return /* @__PURE__ */ jsxs26(
12669
+ return /* @__PURE__ */ jsxs27(
12618
12670
  "svg",
12619
12671
  {
12620
12672
  xmlns: "http://www.w3.org/2000/svg",
@@ -12623,9 +12675,9 @@ var IcEmptyTable = () => {
12623
12675
  viewBox: "0 0 216 140",
12624
12676
  fill: "none",
12625
12677
  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(
12678
+ /* @__PURE__ */ jsxs27("g", { clipPath: "url(#clip0_2454_28950)", children: [
12679
+ /* @__PURE__ */ jsx48("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12680
+ /* @__PURE__ */ jsx48(
12629
12681
  "path",
12630
12682
  {
12631
12683
  d: "M64.5 0V140",
@@ -12635,7 +12687,7 @@ var IcEmptyTable = () => {
12635
12687
  strokeDasharray: "3 3"
12636
12688
  }
12637
12689
  ),
12638
- /* @__PURE__ */ jsx47(
12690
+ /* @__PURE__ */ jsx48(
12639
12691
  "path",
12640
12692
  {
12641
12693
  d: "M151.5 0V140",
@@ -12645,7 +12697,7 @@ var IcEmptyTable = () => {
12645
12697
  strokeDasharray: "3 3"
12646
12698
  }
12647
12699
  ),
12648
- /* @__PURE__ */ jsx47(
12700
+ /* @__PURE__ */ jsx48(
12649
12701
  "path",
12650
12702
  {
12651
12703
  d: "M215.5 24H0.5",
@@ -12655,7 +12707,7 @@ var IcEmptyTable = () => {
12655
12707
  strokeDasharray: "3 3"
12656
12708
  }
12657
12709
  ),
12658
- /* @__PURE__ */ jsx47(
12710
+ /* @__PURE__ */ jsx48(
12659
12711
  "path",
12660
12712
  {
12661
12713
  d: "M215.5 50H0.5",
@@ -12665,7 +12717,7 @@ var IcEmptyTable = () => {
12665
12717
  strokeDasharray: "3 3"
12666
12718
  }
12667
12719
  ),
12668
- /* @__PURE__ */ jsx47(
12720
+ /* @__PURE__ */ jsx48(
12669
12721
  "path",
12670
12722
  {
12671
12723
  d: "M215.5 88H0.5",
@@ -12675,7 +12727,7 @@ var IcEmptyTable = () => {
12675
12727
  strokeDasharray: "3 3"
12676
12728
  }
12677
12729
  ),
12678
- /* @__PURE__ */ jsx47(
12730
+ /* @__PURE__ */ jsx48(
12679
12731
  "path",
12680
12732
  {
12681
12733
  d: "M215.5 114H0.5",
@@ -12685,7 +12737,7 @@ var IcEmptyTable = () => {
12685
12737
  strokeDasharray: "3 3"
12686
12738
  }
12687
12739
  ),
12688
- /* @__PURE__ */ jsx47(
12740
+ /* @__PURE__ */ jsx48(
12689
12741
  "path",
12690
12742
  {
12691
12743
  d: "M199.5 0V140",
@@ -12694,7 +12746,7 @@ var IcEmptyTable = () => {
12694
12746
  strokeMiterlimit: "10"
12695
12747
  }
12696
12748
  ),
12697
- /* @__PURE__ */ jsx47(
12749
+ /* @__PURE__ */ jsx48(
12698
12750
  "path",
12699
12751
  {
12700
12752
  d: "M16.5 0V140",
@@ -12703,7 +12755,7 @@ var IcEmptyTable = () => {
12703
12755
  strokeMiterlimit: "10"
12704
12756
  }
12705
12757
  ),
12706
- /* @__PURE__ */ jsx47(
12758
+ /* @__PURE__ */ jsx48(
12707
12759
  "path",
12708
12760
  {
12709
12761
  d: "M0.5 16H215.5",
@@ -12712,7 +12764,7 @@ var IcEmptyTable = () => {
12712
12764
  strokeMiterlimit: "10"
12713
12765
  }
12714
12766
  ),
12715
- /* @__PURE__ */ jsx47(
12767
+ /* @__PURE__ */ jsx48(
12716
12768
  "path",
12717
12769
  {
12718
12770
  d: "M0.5 124H215.5",
@@ -12721,7 +12773,7 @@ var IcEmptyTable = () => {
12721
12773
  strokeMiterlimit: "10"
12722
12774
  }
12723
12775
  ),
12724
- /* @__PURE__ */ jsx47(
12776
+ /* @__PURE__ */ jsx48(
12725
12777
  "path",
12726
12778
  {
12727
12779
  opacity: "0.6",
@@ -12732,7 +12784,7 @@ var IcEmptyTable = () => {
12732
12784
  strokeLinejoin: "round"
12733
12785
  }
12734
12786
  ),
12735
- /* @__PURE__ */ jsx47(
12787
+ /* @__PURE__ */ jsx48(
12736
12788
  "path",
12737
12789
  {
12738
12790
  opacity: "0.6",
@@ -12743,7 +12795,7 @@ var IcEmptyTable = () => {
12743
12795
  strokeLinejoin: "round"
12744
12796
  }
12745
12797
  ),
12746
- /* @__PURE__ */ jsx47(
12798
+ /* @__PURE__ */ jsx48(
12747
12799
  "path",
12748
12800
  {
12749
12801
  opacity: "0.6",
@@ -12754,7 +12806,7 @@ var IcEmptyTable = () => {
12754
12806
  strokeLinejoin: "round"
12755
12807
  }
12756
12808
  ),
12757
- /* @__PURE__ */ jsx47(
12809
+ /* @__PURE__ */ jsx48(
12758
12810
  "path",
12759
12811
  {
12760
12812
  opacity: "0.6",
@@ -12765,7 +12817,7 @@ var IcEmptyTable = () => {
12765
12817
  strokeLinejoin: "round"
12766
12818
  }
12767
12819
  ),
12768
- /* @__PURE__ */ jsx47(
12820
+ /* @__PURE__ */ jsx48(
12769
12821
  "path",
12770
12822
  {
12771
12823
  opacity: "0.6",
@@ -12776,14 +12828,14 @@ var IcEmptyTable = () => {
12776
12828
  strokeLinejoin: "round"
12777
12829
  }
12778
12830
  ),
12779
- /* @__PURE__ */ jsx47(
12831
+ /* @__PURE__ */ jsx48(
12780
12832
  "path",
12781
12833
  {
12782
12834
  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
12835
  fill: "white"
12784
12836
  }
12785
12837
  ),
12786
- /* @__PURE__ */ jsx47(
12838
+ /* @__PURE__ */ jsx48(
12787
12839
  "path",
12788
12840
  {
12789
12841
  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 +12845,7 @@ var IcEmptyTable = () => {
12793
12845
  strokeLinejoin: "round"
12794
12846
  }
12795
12847
  ),
12796
- /* @__PURE__ */ jsx47(
12848
+ /* @__PURE__ */ jsx48(
12797
12849
  "path",
12798
12850
  {
12799
12851
  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 +12854,7 @@ var IcEmptyTable = () => {
12802
12854
  strokeLinejoin: "round"
12803
12855
  }
12804
12856
  ),
12805
- /* @__PURE__ */ jsx47(
12857
+ /* @__PURE__ */ jsx48(
12806
12858
  "path",
12807
12859
  {
12808
12860
  opacity: "0.6",
@@ -12813,7 +12865,7 @@ var IcEmptyTable = () => {
12813
12865
  strokeLinejoin: "round"
12814
12866
  }
12815
12867
  ),
12816
- /* @__PURE__ */ jsx47(
12868
+ /* @__PURE__ */ jsx48(
12817
12869
  "path",
12818
12870
  {
12819
12871
  opacity: "0.6",
@@ -12824,7 +12876,7 @@ var IcEmptyTable = () => {
12824
12876
  strokeLinejoin: "round"
12825
12877
  }
12826
12878
  ),
12827
- /* @__PURE__ */ jsx47(
12879
+ /* @__PURE__ */ jsx48(
12828
12880
  "path",
12829
12881
  {
12830
12882
  opacity: "0.6",
@@ -12835,7 +12887,7 @@ var IcEmptyTable = () => {
12835
12887
  strokeLinejoin: "round"
12836
12888
  }
12837
12889
  ),
12838
- /* @__PURE__ */ jsx47(
12890
+ /* @__PURE__ */ jsx48(
12839
12891
  "path",
12840
12892
  {
12841
12893
  opacity: "0.6",
@@ -12846,7 +12898,7 @@ var IcEmptyTable = () => {
12846
12898
  strokeLinejoin: "round"
12847
12899
  }
12848
12900
  ),
12849
- /* @__PURE__ */ jsx47(
12901
+ /* @__PURE__ */ jsx48(
12850
12902
  "path",
12851
12903
  {
12852
12904
  opacity: "0.6",
@@ -12857,7 +12909,7 @@ var IcEmptyTable = () => {
12857
12909
  strokeLinejoin: "round"
12858
12910
  }
12859
12911
  ),
12860
- /* @__PURE__ */ jsx47(
12912
+ /* @__PURE__ */ jsx48(
12861
12913
  "path",
12862
12914
  {
12863
12915
  opacity: "0.6",
@@ -12868,7 +12920,7 @@ var IcEmptyTable = () => {
12868
12920
  strokeLinejoin: "round"
12869
12921
  }
12870
12922
  ),
12871
- /* @__PURE__ */ jsx47(
12923
+ /* @__PURE__ */ jsx48(
12872
12924
  "path",
12873
12925
  {
12874
12926
  opacity: "0.6",
@@ -12879,7 +12931,7 @@ var IcEmptyTable = () => {
12879
12931
  strokeLinejoin: "round"
12880
12932
  }
12881
12933
  ),
12882
- /* @__PURE__ */ jsx47(
12934
+ /* @__PURE__ */ jsx48(
12883
12935
  "path",
12884
12936
  {
12885
12937
  opacity: "0.6",
@@ -12890,7 +12942,7 @@ var IcEmptyTable = () => {
12890
12942
  strokeLinejoin: "round"
12891
12943
  }
12892
12944
  ),
12893
- /* @__PURE__ */ jsx47(
12945
+ /* @__PURE__ */ jsx48(
12894
12946
  "path",
12895
12947
  {
12896
12948
  opacity: "0.6",
@@ -12901,14 +12953,14 @@ var IcEmptyTable = () => {
12901
12953
  strokeLinejoin: "round"
12902
12954
  }
12903
12955
  ),
12904
- /* @__PURE__ */ jsx47(
12956
+ /* @__PURE__ */ jsx48(
12905
12957
  "path",
12906
12958
  {
12907
12959
  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
12960
  fill: "white"
12909
12961
  }
12910
12962
  ),
12911
- /* @__PURE__ */ jsx47(
12963
+ /* @__PURE__ */ jsx48(
12912
12964
  "path",
12913
12965
  {
12914
12966
  "fill-rule": "evenodd",
@@ -12917,7 +12969,7 @@ var IcEmptyTable = () => {
12917
12969
  fill: "white"
12918
12970
  }
12919
12971
  ),
12920
- /* @__PURE__ */ jsx47(
12972
+ /* @__PURE__ */ jsx48(
12921
12973
  "path",
12922
12974
  {
12923
12975
  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 +12980,7 @@ var IcEmptyTable = () => {
12928
12980
  }
12929
12981
  )
12930
12982
  ] }),
12931
- /* @__PURE__ */ jsx47("defs", { children: /* @__PURE__ */ jsx47("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx47(
12983
+ /* @__PURE__ */ jsx48("defs", { children: /* @__PURE__ */ jsx48("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx48(
12932
12984
  "rect",
12933
12985
  {
12934
12986
  width: "215",
@@ -12943,14 +12995,14 @@ var IcEmptyTable = () => {
12943
12995
  };
12944
12996
 
12945
12997
  // src/widgets/advanced/table/empty-table.tsx
12946
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12998
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12947
12999
  var EmptyTable = () => {
12948
13000
  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") })
13001
+ return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13002
+ /* @__PURE__ */ jsx49(IcEmptyTable, {}),
13003
+ /* @__PURE__ */ jsxs28("div", { children: [
13004
+ /* @__PURE__ */ jsx49("p", {}),
13005
+ /* @__PURE__ */ jsx49("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
12954
13006
  ] })
12955
13007
  ] });
12956
13008
  };
@@ -14769,10 +14821,10 @@ function s3(o3, s4, t3) {
14769
14821
 
14770
14822
  // src/widgets/advanced/login/shared/button.tsx
14771
14823
  import * as React2 from "react";
14772
- import { jsx as jsx49 } from "react/jsx-runtime";
14824
+ import { jsx as jsx50 } from "react/jsx-runtime";
14773
14825
  var Button = React2.forwardRef(
14774
14826
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
14775
- return /* @__PURE__ */ jsx49(
14827
+ return /* @__PURE__ */ jsx50(
14776
14828
  "button",
14777
14829
  {
14778
14830
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -14782,7 +14834,7 @@ var Button = React2.forwardRef(
14782
14834
  ref,
14783
14835
  type,
14784
14836
  ...props,
14785
- children: isLoading ? /* @__PURE__ */ jsx49(LoadingIcon, { width: 20, height: 20 }) : children
14837
+ children: isLoading ? /* @__PURE__ */ jsx50(LoadingIcon, { width: 20, height: 20 }) : children
14786
14838
  }
14787
14839
  );
14788
14840
  }
@@ -14791,7 +14843,7 @@ Button.displayName = "Button";
14791
14843
 
14792
14844
  // src/widgets/advanced/login/shared/text-input.tsx
14793
14845
  import { useState as useState5 } from "react";
14794
- import { jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
14846
+ import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
14795
14847
  function TextInput(props) {
14796
14848
  const {
14797
14849
  className,
@@ -14805,17 +14857,17 @@ function TextInput(props) {
14805
14857
  required
14806
14858
  } = props;
14807
14859
  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: [
14860
+ return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14861
+ label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14810
14862
  label,
14811
- required ? /* @__PURE__ */ jsx50("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14863
+ required ? /* @__PURE__ */ jsx51("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14812
14864
  ] }),
14813
- /* @__PURE__ */ jsxs28(
14865
+ /* @__PURE__ */ jsxs29(
14814
14866
  "div",
14815
14867
  {
14816
14868
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
14817
14869
  children: [
14818
- /* @__PURE__ */ jsx50(
14870
+ /* @__PURE__ */ jsx51(
14819
14871
  "input",
14820
14872
  {
14821
14873
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -14824,18 +14876,18 @@ function TextInput(props) {
14824
14876
  ...register(name2)
14825
14877
  }
14826
14878
  ),
14827
- type === "password" && /* @__PURE__ */ jsx50(
14879
+ type === "password" && /* @__PURE__ */ jsx51(
14828
14880
  "span",
14829
14881
  {
14830
14882
  onClick: () => setShowPassword(!showPassword),
14831
14883
  className: "focus:outline-none",
14832
- children: showPassword ? /* @__PURE__ */ jsx50(EyeClosedIcon, {}) : /* @__PURE__ */ jsx50(EyeIcon, {})
14884
+ children: showPassword ? /* @__PURE__ */ jsx51(EyeClosedIcon, {}) : /* @__PURE__ */ jsx51(EyeIcon, {})
14833
14885
  }
14834
14886
  )
14835
14887
  ]
14836
14888
  }
14837
14889
  ),
14838
- errors?.[name2]?.message && /* @__PURE__ */ jsx50(
14890
+ errors?.[name2]?.message && /* @__PURE__ */ jsx51(
14839
14891
  "p",
14840
14892
  {
14841
14893
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -14847,7 +14899,7 @@ function TextInput(props) {
14847
14899
 
14848
14900
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
14849
14901
  import { useEffect as useEffect7 } from "react";
14850
- import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
14902
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14851
14903
  var STAY_LOGIN_IN = "stayLoginIn";
14852
14904
  function FormOptions({
14853
14905
  forgotPasswordUrl,
@@ -14873,9 +14925,9 @@ function FormOptions({
14873
14925
  useEffect7(() => {
14874
14926
  localStorage.setItem(STAY_LOGIN_IN, "false");
14875
14927
  }, []);
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(
14928
+ return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14929
+ /* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
14930
+ /* @__PURE__ */ jsx52(
14879
14931
  "input",
14880
14932
  {
14881
14933
  checked: stayLoginIn,
@@ -14884,9 +14936,9 @@ function FormOptions({
14884
14936
  onChange: handleCheckboxChange
14885
14937
  }
14886
14938
  ),
14887
- /* @__PURE__ */ jsx51("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14939
+ /* @__PURE__ */ jsx52("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14888
14940
  ] }),
14889
- !hideForgotPassword && /* @__PURE__ */ jsx51("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14941
+ !hideForgotPassword && /* @__PURE__ */ jsx52("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14890
14942
  ] });
14891
14943
  }
14892
14944
 
@@ -14902,7 +14954,7 @@ var loginSchema = z2.object({
14902
14954
  });
14903
14955
 
14904
14956
  // src/widgets/advanced/login/provider/credential/index.tsx
14905
- import { Fragment as Fragment5, jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14957
+ import { Fragment as Fragment5, jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
14906
14958
  var CredentialLogin = (props) => {
14907
14959
  const {
14908
14960
  shouldRenderDivider,
@@ -14922,16 +14974,16 @@ var CredentialLogin = (props) => {
14922
14974
  mode: "onChange",
14923
14975
  resolver: s3(loginSchema)
14924
14976
  });
14925
- return /* @__PURE__ */ jsxs30(Fragment5, { children: [
14926
- /* @__PURE__ */ jsxs30(
14977
+ return /* @__PURE__ */ jsxs31(Fragment5, { children: [
14978
+ /* @__PURE__ */ jsxs31(
14927
14979
  "form",
14928
14980
  {
14929
14981
  onSubmit: handleSubmit(onSubmit ?? (() => {
14930
14982
  })),
14931
14983
  className: `flex w-full h-fit flex-col gap-10`,
14932
14984
  children: [
14933
- /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-6", children: [
14934
- /* @__PURE__ */ jsx52(
14985
+ /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
14986
+ /* @__PURE__ */ jsx53(
14935
14987
  TextInput,
14936
14988
  {
14937
14989
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -14944,7 +14996,7 @@ var CredentialLogin = (props) => {
14944
14996
  errors
14945
14997
  }
14946
14998
  ),
14947
- /* @__PURE__ */ jsx52(
14999
+ /* @__PURE__ */ jsx53(
14948
15000
  TextInput,
14949
15001
  {
14950
15002
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -14957,7 +15009,7 @@ var CredentialLogin = (props) => {
14957
15009
  errors
14958
15010
  }
14959
15011
  ),
14960
- /* @__PURE__ */ jsx52(
15012
+ /* @__PURE__ */ jsx53(
14961
15013
  FormOptions,
14962
15014
  {
14963
15015
  forgotPasswordUrl,
@@ -14967,7 +15019,7 @@ var CredentialLogin = (props) => {
14967
15019
  }
14968
15020
  )
14969
15021
  ] }),
14970
- /* @__PURE__ */ jsx52("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx52(
15022
+ /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx53(
14971
15023
  Button,
14972
15024
  {
14973
15025
  type: "submit",
@@ -14979,56 +15031,56 @@ var CredentialLogin = (props) => {
14979
15031
  ]
14980
15032
  }
14981
15033
  ),
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" })
15034
+ shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
15035
+ /* @__PURE__ */ jsx53("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15036
+ /* @__PURE__ */ jsx53("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
14985
15037
  ] })
14986
15038
  ] });
14987
15039
  };
14988
15040
 
14989
15041
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
14990
- import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15042
+ import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
14991
15043
  function GoogleButton(props) {
14992
15044
  const { onLoginGoogle, db } = props;
14993
- return /* @__PURE__ */ jsxs31(
15045
+ return /* @__PURE__ */ jsxs32(
14994
15046
  "button",
14995
15047
  {
14996
15048
  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
15049
  onClick: () => onLoginGoogle?.(db),
14998
15050
  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" })
15051
+ /* @__PURE__ */ jsx54(GoogleIcon, { className: "google-icon" }),
15052
+ /* @__PURE__ */ jsx54("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15001
15053
  ]
15002
15054
  }
15003
15055
  );
15004
15056
  }
15005
15057
 
15006
15058
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15007
- import { Fragment as Fragment6, jsx as jsx54 } from "react/jsx-runtime";
15059
+ import { Fragment as Fragment6, jsx as jsx55 } from "react/jsx-runtime";
15008
15060
  function SocialRedirect(props) {
15009
15061
  const { db, onLoginSocial } = props;
15010
15062
  onLoginSocial && onLoginSocial(String(db));
15011
- return /* @__PURE__ */ jsx54(Fragment6, {});
15063
+ return /* @__PURE__ */ jsx55(Fragment6, {});
15012
15064
  }
15013
15065
 
15014
15066
  // src/widgets/advanced/login/provider/google/index.tsx
15015
- import { Fragment as Fragment7, jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
15067
+ import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15016
15068
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15017
- return /* @__PURE__ */ jsxs32(Fragment7, { children: [
15018
- /* @__PURE__ */ jsx55(GoogleButton, { db, onLoginGoogle }),
15019
- /* @__PURE__ */ jsx55(SocialRedirect, { db, onLoginSocial })
15069
+ return /* @__PURE__ */ jsxs33(Fragment7, { children: [
15070
+ /* @__PURE__ */ jsx56(GoogleButton, { db, onLoginGoogle }),
15071
+ /* @__PURE__ */ jsx56(SocialRedirect, { db, onLoginSocial })
15020
15072
  ] });
15021
15073
  };
15022
15074
 
15023
15075
  // src/widgets/advanced/login/index.tsx
15024
- import { jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15076
+ import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15025
15077
  var LoginProviderMapping = {
15026
15078
  google: GoogleLogin
15027
15079
  };
15028
15080
  var Login = (props) => {
15029
15081
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15030
- return /* @__PURE__ */ jsxs33("div", { className: "w-full space-y-8", children: [
15031
- /* @__PURE__ */ jsx56(
15082
+ return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
15083
+ /* @__PURE__ */ jsx57(
15032
15084
  CredentialLogin,
15033
15085
  {
15034
15086
  ...props,
@@ -15038,7 +15090,7 @@ var Login = (props) => {
15038
15090
  ),
15039
15091
  providers.map((provider, index4) => {
15040
15092
  const ProviderComp = LoginProviderMapping[provider];
15041
- return /* @__PURE__ */ jsx56(
15093
+ return /* @__PURE__ */ jsx57(
15042
15094
  ProviderComp,
15043
15095
  {
15044
15096
  db,
@@ -15052,7 +15104,7 @@ var Login = (props) => {
15052
15104
  };
15053
15105
 
15054
15106
  // src/widgets/advanced/search/popup-filter/index.tsx
15055
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15107
+ import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15056
15108
  var PopupFilter = ({
15057
15109
  handleAddTagSearch,
15058
15110
  removeSearchItems,
@@ -15063,7 +15115,7 @@ var PopupFilter = ({
15063
15115
  fields
15064
15116
  }) => {
15065
15117
  const { t: t3 } = useI18n();
15066
- return /* @__PURE__ */ jsx57(
15118
+ return /* @__PURE__ */ jsx58(
15067
15119
  "div",
15068
15120
  {
15069
15121
  style: {
@@ -15073,25 +15125,25 @@ var PopupFilter = ({
15073
15125
  zIndex: 33
15074
15126
  },
15075
15127
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15076
- children: /* @__PURE__ */ jsxs34(
15128
+ children: /* @__PURE__ */ jsxs35(
15077
15129
  "div",
15078
15130
  {
15079
15131
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15080
15132
  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") })
15133
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
15134
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15135
+ /* @__PURE__ */ jsx58(FilterIcon, { className: "filter-by-icon text-primary" }),
15136
+ /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15085
15137
  ] }),
15086
15138
  filterBy?.reduce((acc, item, index4, array) => {
15087
15139
  const prevItem = array[index4 - 1];
15088
15140
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15089
15141
  const isExist = item?.active;
15090
15142
  if (isDifferentGroup) {
15091
- acc.push(/* @__PURE__ */ jsx57("hr", { className: "my-2" }, "separator-" + index4));
15143
+ acc.push(/* @__PURE__ */ jsx58("hr", { className: "my-2" }, "separator-" + index4));
15092
15144
  }
15093
15145
  acc.push(
15094
- /* @__PURE__ */ jsxs34(
15146
+ /* @__PURE__ */ jsxs35(
15095
15147
  "button",
15096
15148
  {
15097
15149
  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 +15168,8 @@ var PopupFilter = ({
15116
15168
  });
15117
15169
  },
15118
15170
  children: [
15119
- isExist && /* @__PURE__ */ jsx57(CheckIcon, {}),
15120
- /* @__PURE__ */ jsx57("span", { className: "text-sm", children: item?.string ?? item?.help })
15171
+ isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15172
+ /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string ?? item?.help })
15121
15173
  ]
15122
15174
  },
15123
15175
  "filter-" + index4
@@ -15126,16 +15178,16 @@ var PopupFilter = ({
15126
15178
  return acc;
15127
15179
  }, [])
15128
15180
  ] }),
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") })
15181
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx58("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15182
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
15183
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15184
+ /* @__PURE__ */ jsx58(GroupByIcon, { className: "group-by-icon text-primary" }),
15185
+ /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15134
15186
  ] }),
15135
15187
  groupBy?.map((item, index4) => {
15136
15188
  const isExist = item?.active;
15137
15189
  if (!item.string) return;
15138
- return /* @__PURE__ */ jsxs34(
15190
+ return /* @__PURE__ */ jsxs35(
15139
15191
  "button",
15140
15192
  {
15141
15193
  onClick: () => {
@@ -15159,8 +15211,8 @@ var PopupFilter = ({
15159
15211
  },
15160
15212
  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
15213
  children: [
15162
- isExist && /* @__PURE__ */ jsx57(CheckIcon, {}),
15163
- /* @__PURE__ */ jsx57("span", { className: "text-sm", children: item?.string })
15214
+ isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15215
+ /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string })
15164
15216
  ]
15165
15217
  },
15166
15218
  "groupby-" + index4 + 1
@@ -15179,7 +15231,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15179
15231
 
15180
15232
  // src/widgets/advanced/search/tag-search/index.tsx
15181
15233
  import { Fragment as Fragment8 } from "react";
15182
- import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15234
+ import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15183
15235
  var TagSearch = ({
15184
15236
  removeSearchItems,
15185
15237
  selectedTags,
@@ -15190,23 +15242,23 @@ var TagSearch = ({
15190
15242
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15191
15243
  if (tag?.values?.length > 0) {
15192
15244
  if (tag?.type !== "group_by") {
15193
- return /* @__PURE__ */ jsxs35(
15245
+ return /* @__PURE__ */ jsxs36(
15194
15246
  "div",
15195
15247
  {
15196
15248
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15197
15249
  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: [
15250
+ /* @__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, {}) }),
15251
+ /* @__PURE__ */ jsx59("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15252
+ return /* @__PURE__ */ jsxs36(Fragment8, { children: [
15253
+ /* @__PURE__ */ jsx59("span", { children: value }),
15254
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15203
15255
  " ",
15204
15256
  instance.t("or"),
15205
15257
  " "
15206
15258
  ] })
15207
15259
  ] }, idx);
15208
15260
  }) }),
15209
- /* @__PURE__ */ jsx58(
15261
+ /* @__PURE__ */ jsx59(
15210
15262
  "button",
15211
15263
  {
15212
15264
  className: "px-2 text-sm font-bold",
@@ -15223,7 +15275,7 @@ var TagSearch = ({
15223
15275
  );
15224
15276
  }
15225
15277
  },
15226
- children: /* @__PURE__ */ jsx58(CloseIcon, { className: "size-4 cursor-pointer" })
15278
+ children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15227
15279
  }
15228
15280
  )
15229
15281
  ]
@@ -15231,26 +15283,26 @@ var TagSearch = ({
15231
15283
  "selected-tag-" + index4
15232
15284
  );
15233
15285
  } else if (tag?.type === "group_by") {
15234
- return /* @__PURE__ */ jsx58(
15286
+ return /* @__PURE__ */ jsx59(
15235
15287
  "div",
15236
15288
  {
15237
15289
  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(
15290
+ 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(
15291
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
15240
15292
  "div",
15241
15293
  {
15242
15294
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15243
15295
  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: [
15296
+ /* @__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, {}) }),
15297
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment9, { children: [
15298
+ /* @__PURE__ */ jsx59("span", { children: string }),
15299
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15248
15300
  " ",
15249
15301
  "> ",
15250
15302
  " "
15251
15303
  ] })
15252
15304
  ] })),
15253
- /* @__PURE__ */ jsx58(
15305
+ /* @__PURE__ */ jsx59(
15254
15306
  "button",
15255
15307
  {
15256
15308
  className: "pr-2 text-sm font-bold",
@@ -15265,7 +15317,7 @@ var TagSearch = ({
15265
15317
  );
15266
15318
  }
15267
15319
  },
15268
- children: /* @__PURE__ */ jsx58(CloseIcon, { className: "size-4 cursor-pointer" })
15320
+ children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15269
15321
  }
15270
15322
  )
15271
15323
  ]
@@ -15282,7 +15334,7 @@ var TagSearch = ({
15282
15334
  };
15283
15335
 
15284
15336
  // src/widgets/advanced/search/search-list/index.tsx
15285
- import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15337
+ import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15286
15338
  var SearchList = ({
15287
15339
  handleAddTagSearch,
15288
15340
  handleMouseEnter,
@@ -15292,7 +15344,7 @@ var SearchList = ({
15292
15344
  hoveredIndexSearchList
15293
15345
  }) => {
15294
15346
  const { t: t3 } = useI18n();
15295
- return /* @__PURE__ */ jsx59(
15347
+ return /* @__PURE__ */ jsx60(
15296
15348
  "div",
15297
15349
  {
15298
15350
  style: {
@@ -15304,7 +15356,7 @@ var SearchList = ({
15304
15356
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15305
15357
  return;
15306
15358
  }
15307
- return /* @__PURE__ */ jsxs36(
15359
+ return /* @__PURE__ */ jsxs37(
15308
15360
  "button",
15309
15361
  {
15310
15362
  onClick: () => {
@@ -15326,12 +15378,12 @@ var SearchList = ({
15326
15378
  children: [
15327
15379
  t3("search"),
15328
15380
  " ",
15329
- /* @__PURE__ */ jsx59("span", { className: "font-bold", children: searchItem?.title }),
15381
+ /* @__PURE__ */ jsx60("span", { className: "font-bold", children: searchItem?.title }),
15330
15382
  " ",
15331
15383
  t3("for"),
15332
15384
  ":",
15333
15385
  " ",
15334
- /* @__PURE__ */ jsx59(
15386
+ /* @__PURE__ */ jsx60(
15335
15387
  "span",
15336
15388
  {
15337
15389
  style: {
@@ -15351,7 +15403,7 @@ var SearchList = ({
15351
15403
  };
15352
15404
 
15353
15405
  // src/widgets/advanced/search/search-item/index.tsx
15354
- import { Fragment as Fragment10, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15406
+ import { Fragment as Fragment10, jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15355
15407
  var Search = ({
15356
15408
  removeSearchItems,
15357
15409
  selectedTags,
@@ -15468,15 +15520,15 @@ var Search = ({
15468
15520
  setDidInit(true);
15469
15521
  setIsReadyFormatDomain(true);
15470
15522
  }, [aid, filterBy, fieldsList]);
15471
- return /* @__PURE__ */ jsxs37(
15523
+ return /* @__PURE__ */ jsxs38(
15472
15524
  "div",
15473
15525
  {
15474
15526
  ref: popupFilterRef,
15475
15527
  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
15528
  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(
15529
+ /* @__PURE__ */ jsx61("div", { className: "size-5", children: /* @__PURE__ */ jsx61(SearchIcon, {}) }),
15530
+ /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15531
+ /* @__PURE__ */ jsx61(
15480
15532
  TagSearch,
15481
15533
  {
15482
15534
  removeSearchItems,
@@ -15486,7 +15538,7 @@ var Search = ({
15486
15538
  setGroupBy
15487
15539
  }
15488
15540
  ),
15489
- /* @__PURE__ */ jsx60(
15541
+ /* @__PURE__ */ jsx61(
15490
15542
  "input",
15491
15543
  {
15492
15544
  value: searchString,
@@ -15499,7 +15551,7 @@ var Search = ({
15499
15551
  onKeyUp: (e3) => e3.preventDefault()
15500
15552
  }
15501
15553
  ),
15502
- /* @__PURE__ */ jsx60(
15554
+ /* @__PURE__ */ jsx61(
15503
15555
  SearchList,
15504
15556
  {
15505
15557
  handleAddTagSearch,
@@ -15508,8 +15560,8 @@ var Search = ({
15508
15560
  }
15509
15561
  )
15510
15562
  ] }),
15511
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs37(Fragment10, { children: [
15512
- /* @__PURE__ */ jsxs37(
15563
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs38(Fragment10, { children: [
15564
+ /* @__PURE__ */ jsxs38(
15513
15565
  "div",
15514
15566
  {
15515
15567
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -15518,8 +15570,8 @@ var Search = ({
15518
15570
  setShowPopupFilter((prev2) => !prev2);
15519
15571
  },
15520
15572
  children: [
15521
- /* @__PURE__ */ jsx60("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15522
- /* @__PURE__ */ jsx60(
15573
+ /* @__PURE__ */ jsx61("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15574
+ /* @__PURE__ */ jsx61(
15523
15575
  ChevronBottomIcon,
15524
15576
  {
15525
15577
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -15528,7 +15580,7 @@ var Search = ({
15528
15580
  ]
15529
15581
  }
15530
15582
  ),
15531
- showPopupFilter && /* @__PURE__ */ jsx60(
15583
+ showPopupFilter && /* @__PURE__ */ jsx61(
15532
15584
  PopupFilter,
15533
15585
  {
15534
15586
  handleAddTagSearch,
@@ -15547,30 +15599,30 @@ var Search = ({
15547
15599
  };
15548
15600
 
15549
15601
  // src/widgets/basic/active-badge-field/active-badge.tsx
15550
- import { Fragment as Fragment11, jsx as jsx61 } from "react/jsx-runtime";
15602
+ import { Fragment as Fragment11, jsx as jsx62 } from "react/jsx-runtime";
15551
15603
  var ActiveBadgeField = (props) => {
15552
15604
  const { t: t3 } = useI18n();
15553
15605
  const {
15554
15606
  type,
15555
15607
  className
15556
15608
  } = props;
15557
- if (type === void 0) return /* @__PURE__ */ jsx61(Fragment11, {});
15609
+ if (type === void 0) return /* @__PURE__ */ jsx62(Fragment11, {});
15558
15610
  const typeStyle = type ? "text-green-500" : "text-red-500";
15559
15611
  const text = type ? t3("active") : t3("in_active");
15560
- return /* @__PURE__ */ jsx61("div", { className: `${typeStyle} ${className}`, children: text });
15612
+ return /* @__PURE__ */ jsx62("div", { className: `${typeStyle} ${className}`, children: text });
15561
15613
  };
15562
15614
 
15563
15615
  // src/widgets/common/modal-layer.tsx
15564
15616
  import { Fragment as Fragment12 } from "react";
15565
15617
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
15566
- import { jsx as jsx62, jsxs as jsxs38 } from "react/jsx-runtime";
15618
+ import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
15567
15619
  var ModalLayer = ({
15568
15620
  isOpen,
15569
15621
  onClose,
15570
15622
  title,
15571
15623
  children
15572
15624
  }) => {
15573
- return /* @__PURE__ */ jsx62(
15625
+ return /* @__PURE__ */ jsx63(
15574
15626
  Transition,
15575
15627
  {
15576
15628
  show: isOpen,
@@ -15581,22 +15633,22 @@ var ModalLayer = ({
15581
15633
  leaveFrom: "transform scale-100 opacity-100",
15582
15634
  leaveTo: "transform scale-95 opacity-0",
15583
15635
  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(
15636
+ 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: [
15637
+ /* @__PURE__ */ jsx63("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15638
+ /* @__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: [
15639
+ /* @__PURE__ */ jsxs39(
15588
15640
  "div",
15589
15641
  {
15590
15642
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
15591
15643
  children: [
15592
- title && /* @__PURE__ */ jsx62("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15593
- /* @__PURE__ */ jsx62(
15644
+ title && /* @__PURE__ */ jsx63("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15645
+ /* @__PURE__ */ jsx63(
15594
15646
  "button",
15595
15647
  {
15596
15648
  onClick: onClose,
15597
15649
  "aria-label": "Close",
15598
15650
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
15599
- children: /* @__PURE__ */ jsx62(CloseIcon, {})
15651
+ children: /* @__PURE__ */ jsx63(CloseIcon, {})
15600
15652
  }
15601
15653
  )
15602
15654
  ]
@@ -15610,7 +15662,7 @@ var ModalLayer = ({
15610
15662
  };
15611
15663
 
15612
15664
  // src/widgets/common/modal-confirm.tsx
15613
- import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
15665
+ import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15614
15666
  var ModalConfirm = ({
15615
15667
  name: name2,
15616
15668
  isShowModal,
@@ -15624,7 +15676,7 @@ var ModalConfirm = ({
15624
15676
  const renderButtonAction = (name3) => {
15625
15677
  switch (name3) {
15626
15678
  case "duplicate":
15627
- return /* @__PURE__ */ jsxs39(
15679
+ return /* @__PURE__ */ jsxs40(
15628
15680
  "button",
15629
15681
  {
15630
15682
  type: "button",
@@ -15632,13 +15684,13 @@ var ModalConfirm = ({
15632
15684
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15633
15685
  disabled: isLoading,
15634
15686
  children: [
15635
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
15636
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15687
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15688
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15637
15689
  ]
15638
15690
  }
15639
15691
  );
15640
15692
  case "archive":
15641
- return /* @__PURE__ */ jsxs39(
15693
+ return /* @__PURE__ */ jsxs40(
15642
15694
  "button",
15643
15695
  {
15644
15696
  type: "button",
@@ -15646,13 +15698,13 @@ var ModalConfirm = ({
15646
15698
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15647
15699
  disabled: isLoading,
15648
15700
  children: [
15649
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
15650
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15701
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15702
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15651
15703
  ]
15652
15704
  }
15653
15705
  );
15654
15706
  case "unarchive":
15655
- return /* @__PURE__ */ jsxs39(
15707
+ return /* @__PURE__ */ jsxs40(
15656
15708
  "button",
15657
15709
  {
15658
15710
  type: "button",
@@ -15660,13 +15712,13 @@ var ModalConfirm = ({
15660
15712
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15661
15713
  disabled: isLoading,
15662
15714
  children: [
15663
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
15664
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15715
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15716
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15665
15717
  ]
15666
15718
  }
15667
15719
  );
15668
15720
  case "delete":
15669
- return /* @__PURE__ */ jsxs39(
15721
+ return /* @__PURE__ */ jsxs40(
15670
15722
  "button",
15671
15723
  {
15672
15724
  type: "button",
@@ -15674,8 +15726,8 @@ var ModalConfirm = ({
15674
15726
  className: "button-primary flex-1 flex items-center justify-center gap-2",
15675
15727
  disabled: isLoading,
15676
15728
  children: [
15677
- isLoading && /* @__PURE__ */ jsx63(LoadingIcon, {}),
15678
- /* @__PURE__ */ jsx63("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15729
+ isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15730
+ /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15679
15731
  ]
15680
15732
  }
15681
15733
  );
@@ -15683,13 +15735,13 @@ var ModalConfirm = ({
15683
15735
  break;
15684
15736
  }
15685
15737
  };
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 })
15738
+ return /* @__PURE__ */ jsx64(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15739
+ /* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
15740
+ /* @__PURE__ */ jsx64("div", { className: "text-[18px] font-bold", children: title }),
15741
+ /* @__PURE__ */ jsx64("p", { className: "text-[16px]", children: content })
15690
15742
  ] }),
15691
- /* @__PURE__ */ jsxs39("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15692
- /* @__PURE__ */ jsx63(
15743
+ /* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15744
+ /* @__PURE__ */ jsx64(
15693
15745
  "button",
15694
15746
  {
15695
15747
  type: "button",
@@ -15706,7 +15758,7 @@ var ModalConfirm = ({
15706
15758
  // src/widgets/common/modal-detail.tsx
15707
15759
  import { useState as useState7 } from "react";
15708
15760
  import { createPortal as createPortal2 } from "react-dom";
15709
- import { Fragment as Fragment13, jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15761
+ import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15710
15762
  var ModalDetail = ({
15711
15763
  idToolTip,
15712
15764
  title,
@@ -15729,18 +15781,18 @@ var ModalDetail = ({
15729
15781
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
15730
15782
  };
15731
15783
  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(
15784
+ /* @__PURE__ */ jsx65(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15785
+ /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15786
+ /* @__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: [
15787
+ /* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15788
+ /* @__PURE__ */ jsxs41(
15737
15789
  "div",
15738
15790
  {
15739
15791
  id: "modal-detail",
15740
15792
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
15741
15793
  children: [
15742
15794
  t3("detail_button"),
15743
- /* @__PURE__ */ jsx64(
15795
+ /* @__PURE__ */ jsx65(
15744
15796
  "button",
15745
15797
  {
15746
15798
  onClick: handleNavigateDetail,
@@ -15751,9 +15803,9 @@ var ModalDetail = ({
15751
15803
  ]
15752
15804
  }
15753
15805
  ),
15754
- /* @__PURE__ */ jsx64("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx64(CloseIcon, { className: "h-5 w-5" }) })
15806
+ /* @__PURE__ */ jsx65("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx65(CloseIcon, { className: "h-5 w-5" }) })
15755
15807
  ] }),
15756
- /* @__PURE__ */ jsx64("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15808
+ /* @__PURE__ */ jsx65("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15757
15809
  id: idForm,
15758
15810
  aid,
15759
15811
  model,
@@ -15768,7 +15820,7 @@ var ModalDetail = ({
15768
15820
 
15769
15821
  // src/widgets/common/loading-normal.tsx
15770
15822
  import { useEffect as useEffect9, useState as useState8 } from "react";
15771
- import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15823
+ import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15772
15824
  var LayerLoading = () => {
15773
15825
  const { t: t3 } = useI18n();
15774
15826
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -15778,21 +15830,21 @@ var LayerLoading = () => {
15778
15830
  }, 200);
15779
15831
  return () => clearInterval(interval);
15780
15832
  }, []);
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(
15833
+ 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: [
15834
+ /* @__PURE__ */ jsx66("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx66(
15783
15835
  "div",
15784
15836
  {
15785
15837
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
15786
15838
  },
15787
15839
  index4
15788
15840
  )) }),
15789
- /* @__PURE__ */ jsx65("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15841
+ /* @__PURE__ */ jsx66("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15790
15842
  ] }) }) });
15791
15843
  };
15792
15844
 
15793
15845
  // src/widgets/common/loading-small.tsx
15794
15846
  import { useEffect as useEffect10, useState as useState9 } from "react";
15795
- import { jsx as jsx66 } from "react/jsx-runtime";
15847
+ import { jsx as jsx67 } from "react/jsx-runtime";
15796
15848
  var LoadingSmall = () => {
15797
15849
  const [activeIndex, setActiveIndex] = useState9(0);
15798
15850
  useEffect10(() => {
@@ -15801,7 +15853,7 @@ var LoadingSmall = () => {
15801
15853
  }, 200);
15802
15854
  return () => clearInterval(interval);
15803
15855
  }, []);
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(
15856
+ 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
15857
  "div",
15806
15858
  {
15807
15859
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -15812,7 +15864,7 @@ var LoadingSmall = () => {
15812
15864
 
15813
15865
  // src/widgets/common/video-player.tsx
15814
15866
  import { useRef as useRef6, useState as useState10 } from "react";
15815
- import { jsx as jsx67, jsxs as jsxs42 } from "react/jsx-runtime";
15867
+ import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
15816
15868
  var VideoPlayer = ({ src }) => {
15817
15869
  const [isPlaying, setIsPlaying] = useState10(false);
15818
15870
  const videoRef = useRef6(null);
@@ -15839,8 +15891,8 @@ var VideoPlayer = ({ src }) => {
15839
15891
  }
15840
15892
  }
15841
15893
  };
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(
15894
+ 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: [
15895
+ /* @__PURE__ */ jsx68(
15844
15896
  "video",
15845
15897
  {
15846
15898
  ref: videoRef,
@@ -15852,25 +15904,56 @@ var VideoPlayer = ({ src }) => {
15852
15904
  children: "Your browser does not support the video tag."
15853
15905
  }
15854
15906
  ),
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, {}) }) })
15907
+ /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15908
+ /* @__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
15909
  ] });
15858
15910
  };
15859
15911
 
15860
15912
  // src/widgets/common/render-files.tsx
15861
- import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
15862
- var ImageItem = ({ filename, checksum, index: index4, src = null, useGetImage }) => {
15913
+ import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
15914
+ var ImageItem = ({
15915
+ filename,
15916
+ checksum,
15917
+ index: index4,
15918
+ src = null,
15919
+ useGetImage,
15920
+ size: size4,
15921
+ id,
15922
+ envFile,
15923
+ accessToken
15924
+ }) => {
15863
15925
  const { data: image } = useGetImage({
15864
15926
  data: { filename, checksum },
15865
15927
  queryKey: [`get-image-${""}`],
15866
15928
  src
15867
15929
  });
15868
- return /* @__PURE__ */ jsx68("div", { className: "relative group group/file", children: /* @__PURE__ */ jsx68(
15930
+ return /* @__PURE__ */ jsx69("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ jsx69(
15869
15931
  "img",
15870
15932
  {
15871
15933
  src: image || src,
15872
15934
  alt: filename,
15873
- className: "w-32 h-32 object-cover rounded-md"
15935
+ className: "w-32 h-32 object-cover rounded-md cursor-pointer"
15936
+ }
15937
+ ) : /* @__PURE__ */ jsxs44(
15938
+ "div",
15939
+ {
15940
+ onClick: (e3) => {
15941
+ e3?.stopPropagation();
15942
+ downloadFile(
15943
+ `${envFile}api/v2/web/content/${id}?download=true`,
15944
+ filename,
15945
+ accessToken
15946
+ );
15947
+ },
15948
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
15949
+ className: "flex items-center p-2 gap-2 overflow-hidden",
15950
+ children: [
15951
+ /* @__PURE__ */ jsx69(ImageIcon, {}),
15952
+ /* @__PURE__ */ jsxs44("div", { children: [
15953
+ /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
15954
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
15955
+ ] })
15956
+ ]
15874
15957
  }
15875
15958
  ) }, index4);
15876
15959
  };
@@ -15883,50 +15966,83 @@ var FileItem = (props) => {
15883
15966
  src,
15884
15967
  mimetype,
15885
15968
  size: size4,
15886
- useGetImage
15969
+ useGetImage,
15970
+ id,
15971
+ envFile,
15972
+ accessToken
15887
15973
  } = props;
15888
15974
  const fileTypeIcon = {
15889
- "application/pdf": /* @__PURE__ */ jsx68(PdfIcon, {}),
15890
- "application/zip": /* @__PURE__ */ jsx68(ZipIcon, {}),
15891
- "application/x-zip-compressed": /* @__PURE__ */ jsx68(ZipIcon, {}),
15892
- "application/vnd.ms-excel": /* @__PURE__ */ jsx68(ExcelIcon, {}),
15893
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx68(ExcelIcon, {})
15975
+ "application/pdf": /* @__PURE__ */ jsx69(PdfIcon, {}),
15976
+ "application/zip": /* @__PURE__ */ jsx69(ZipIcon, {}),
15977
+ "application/x-zip-compressed": /* @__PURE__ */ jsx69(ZipIcon, {}),
15978
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx69(ExcelIcon, {}),
15979
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {})
15894
15980
  };
15895
15981
  const renderFile = () => {
15896
15982
  if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
15897
- return /* @__PURE__ */ jsx68(ImageItem, { ...props });
15983
+ return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
15898
15984
  } else if (mimetype?.includes("video")) {
15899
- return /* @__PURE__ */ jsx68(VideoPlayer, { ...props });
15985
+ return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
15900
15986
  } else {
15901
- return /* @__PURE__ */ jsxs43("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
15902
- fileTypeIcon[mimetype],
15903
- /* @__PURE__ */ jsxs43("div", { children: [
15904
- /* @__PURE__ */ jsx68("p", { className: "text-[#0A0D14] font-medium", children: filename }),
15905
- /* @__PURE__ */ jsx68("span", { className: "text-[12px]", children: formatFileSize(size4) })
15906
- ] })
15907
- ] });
15987
+ return /* @__PURE__ */ jsxs44(
15988
+ "div",
15989
+ {
15990
+ onClick: (e3) => {
15991
+ if (accessToken) {
15992
+ e3?.stopPropagation();
15993
+ downloadFile(
15994
+ `${envFile}api/v2/web/content/${id}?download=true`,
15995
+ filename,
15996
+ accessToken
15997
+ );
15998
+ }
15999
+ },
16000
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16001
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16002
+ children: [
16003
+ fileTypeIcon[mimetype],
16004
+ /* @__PURE__ */ jsxs44("div", { children: [
16005
+ /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16006
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16007
+ ] })
16008
+ ]
16009
+ }
16010
+ );
15908
16011
  }
15909
16012
  };
15910
- return /* @__PURE__ */ jsxs43(
16013
+ return /* @__PURE__ */ jsxs44(
15911
16014
  "div",
15912
16015
  {
15913
- className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit group/file",
16016
+ className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
15914
16017
  children: [
15915
16018
  renderFile(),
15916
- handleRemoveFile && /* @__PURE__ */ jsx68(
16019
+ handleRemoveFile && /* @__PURE__ */ jsx69(
15917
16020
  "div",
15918
16021
  {
16022
+ style: {
16023
+ position: "absolute",
16024
+ top: 0,
16025
+ right: 0,
16026
+ backgroundColor: "rgba(0,0,0,0.2)"
16027
+ },
15919
16028
  onClick: () => handleRemoveFile(index4),
15920
- className: "cursor-pointer absolute right-0 top-0 p-2 hidden group-hover/file:block bg-[rgba(0,0,0,0.2)]",
15921
- children: /* @__PURE__ */ jsx68(DeleteIcon, {})
16029
+ className: "cursor-pointer p-2 hidden group-hover:block",
16030
+ children: /* @__PURE__ */ jsx69(DeleteIcon, {})
15922
16031
  }
15923
16032
  ),
15924
- !handleRemoveFile && /* @__PURE__ */ jsx68(
16033
+ !handleRemoveFile && /* @__PURE__ */ jsx69(
15925
16034
  "span",
15926
16035
  {
16036
+ style: {
16037
+ position: "absolute",
16038
+ top: 0,
16039
+ right: 0,
16040
+ backgroundColor: "rgba(0,0,0,0.2)",
16041
+ zIndex: 10
16042
+ },
15927
16043
  onClick: (e3) => handleFileDownload(e3, src, filename),
15928
- className: "absolute top-0 right-0 z-10 hidden group-hover/file:block cursor-pointer p-2 text-white bg-[rgba(0,0,0,0.2)]",
15929
- children: /* @__PURE__ */ jsx68(DownloadIcon, {})
16044
+ className: "hidden group-hover:block cursor-pointer p-2 text-white ",
16045
+ children: /* @__PURE__ */ jsx69(DownloadIcon, {})
15930
16046
  }
15931
16047
  )
15932
16048
  ]
@@ -15934,9 +16050,14 @@ var FileItem = (props) => {
15934
16050
  index4
15935
16051
  );
15936
16052
  };
15937
- var downloadFile = async (url, filename) => {
16053
+ var downloadFile = async (url, filename, accessToken) => {
15938
16054
  try {
15939
- const response = await fetch(url);
16055
+ const response = accessToken ? await fetch(url, {
16056
+ method: "GET",
16057
+ headers: {
16058
+ Authorization: `Bearer ${accessToken}`
16059
+ }
16060
+ }) : await fetch(url);
15940
16061
  if (response.ok) {
15941
16062
  const blob = await response.blob();
15942
16063
  const urlBlob = window.URL.createObjectURL(blob);
@@ -15954,7 +16075,13 @@ var downloadFile = async (url, filename) => {
15954
16075
  console.error("File download failed:", error2);
15955
16076
  }
15956
16077
  };
15957
- var RenderFiles = ({ selectedFiles, setSelectedFiles, useGetImage }) => {
16078
+ var RenderFiles = ({
16079
+ selectedFiles,
16080
+ setSelectedFiles,
16081
+ useGetImage,
16082
+ envFile,
16083
+ accessToken
16084
+ }) => {
15958
16085
  const handleRemoveFile = (index4) => {
15959
16086
  if (setSelectedFiles) {
15960
16087
  const files = selectedFiles.filter((_2, i3) => i3 !== index4);
@@ -15965,20 +16092,22 @@ var RenderFiles = ({ selectedFiles, setSelectedFiles, useGetImage }) => {
15965
16092
  e3.stopPropagation();
15966
16093
  downloadFile(url, name2);
15967
16094
  };
15968
- return /* @__PURE__ */ jsx68("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
15969
- return /* @__PURE__ */ jsx68("div", { className: "relative group/file", children: /* @__PURE__ */ jsx68(
16095
+ return /* @__PURE__ */ jsx69("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16096
+ return /* @__PURE__ */ jsx69("div", { className: "relative group/file", children: /* @__PURE__ */ jsx69(
15970
16097
  FileItem,
15971
16098
  {
15972
16099
  ...file,
15973
16100
  src: file?.datas,
15974
- filename: file?.display_name ?? file?.name,
16101
+ filename: file?.display_name ?? file?.name ?? file?.filename,
16102
+ id: file?.id,
15975
16103
  index: index4,
15976
16104
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
15977
16105
  handleFileDownload,
15978
- useGetImage
15979
- },
15980
- index4
15981
- ) });
16106
+ useGetImage,
16107
+ envFile,
16108
+ accessToken
16109
+ }
16110
+ ) }, file?.id ?? index4);
15982
16111
  }) });
15983
16112
  };
15984
16113
 
@@ -16168,7 +16297,7 @@ var po = $2(K("zoom"));
16168
16297
  var uo = $2(K("flip"));
16169
16298
 
16170
16299
  // src/widgets/common/select-files.tsx
16171
- import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16300
+ import { Fragment as Fragment14, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16172
16301
  var ButtonSelectFiles = ({
16173
16302
  fileInputRef,
16174
16303
  selectedFiles,
@@ -16271,8 +16400,8 @@ var ButtonSelectFiles = ({
16271
16400
  await handleUpload(formData, serivce, xNode);
16272
16401
  }
16273
16402
  };
16274
- return /* @__PURE__ */ jsxs44(Fragment14, { children: [
16275
- isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
16403
+ return /* @__PURE__ */ jsxs45(Fragment14, { children: [
16404
+ isPending ? /* @__PURE__ */ jsx70(Fragment14, { children: /* @__PURE__ */ jsx70("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs45(
16276
16405
  "button",
16277
16406
  {
16278
16407
  type: "button",
@@ -16280,12 +16409,12 @@ var ButtonSelectFiles = ({
16280
16409
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16281
16410
  onClick: () => fileInputRef.current.click(),
16282
16411
  children: [
16283
- /* @__PURE__ */ jsx69(AttachIcon, {}),
16284
- /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16412
+ /* @__PURE__ */ jsx70(AttachIcon, {}),
16413
+ /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16285
16414
  ]
16286
16415
  }
16287
16416
  ),
16288
- /* @__PURE__ */ jsx69(
16417
+ /* @__PURE__ */ jsx70(
16289
16418
  "input",
16290
16419
  {
16291
16420
  type: "file",
@@ -16300,7 +16429,7 @@ var ButtonSelectFiles = ({
16300
16429
  };
16301
16430
 
16302
16431
  // src/widgets/basic/avatar-field/avatar.tsx
16303
- import { Fragment as Fragment15, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16432
+ import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16304
16433
  var AvatarField = (props) => {
16305
16434
  const {
16306
16435
  isForm = false,
@@ -16324,8 +16453,8 @@ var AvatarField = (props) => {
16324
16453
  color: textColor,
16325
16454
  fontSize: `${size4 / 2.5}px`
16326
16455
  };
16327
- return /* @__PURE__ */ jsxs45(Fragment15, { children: [
16328
- isForm && allowShowDetail && /* @__PURE__ */ jsx70(
16456
+ return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16457
+ isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16329
16458
  ModalDetail,
16330
16459
  {
16331
16460
  idToolTip: `avatar-widget-id-${id}`,
@@ -16336,7 +16465,7 @@ var AvatarField = (props) => {
16336
16465
  place: "top-start"
16337
16466
  }
16338
16467
  ),
16339
- allowShowDetail && /* @__PURE__ */ jsx70(
16468
+ allowShowDetail && /* @__PURE__ */ jsx71(
16340
16469
  M,
16341
16470
  {
16342
16471
  id: `avatar-widget-id-${id}`,
@@ -16345,7 +16474,7 @@ var AvatarField = (props) => {
16345
16474
  className: "z-20"
16346
16475
  }
16347
16476
  ),
16348
- avatarSrc ? /* @__PURE__ */ jsx70(
16477
+ avatarSrc ? /* @__PURE__ */ jsx71(
16349
16478
  "img",
16350
16479
  {
16351
16480
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16353,7 +16482,7 @@ var AvatarField = (props) => {
16353
16482
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16354
16483
  alt: "Avatar"
16355
16484
  }
16356
- ) : /* @__PURE__ */ jsx70("div", { children: /* @__PURE__ */ jsx70(
16485
+ ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16357
16486
  "div",
16358
16487
  {
16359
16488
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16366,7 +16495,7 @@ var AvatarField = (props) => {
16366
16495
  };
16367
16496
 
16368
16497
  // src/widgets/basic/binary-field/binary.tsx
16369
- import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16498
+ import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16370
16499
  var BinaryField = (props) => {
16371
16500
  const {
16372
16501
  name: name2,
@@ -16389,7 +16518,7 @@ var BinaryField = (props) => {
16389
16518
  image
16390
16519
  } = props;
16391
16520
  const { t: t3 } = useI18n();
16392
- return /* @__PURE__ */ jsx71(
16521
+ return /* @__PURE__ */ jsx72(
16393
16522
  Controller,
16394
16523
  {
16395
16524
  name: name2 ?? "",
@@ -16399,13 +16528,13 @@ var BinaryField = (props) => {
16399
16528
  },
16400
16529
  render: ({ field }) => {
16401
16530
  const renderImage = initialImage || selectedImage;
16402
- return /* @__PURE__ */ jsx71(
16531
+ return /* @__PURE__ */ jsx72(
16403
16532
  "div",
16404
16533
  {
16405
16534
  ref: binaryRef,
16406
16535
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16407
- children: renderImage ? /* @__PURE__ */ jsxs46("div", { className: "relative group", children: [
16408
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx71(
16536
+ children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
16537
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16409
16538
  "img",
16410
16539
  {
16411
16540
  style: {
@@ -16416,7 +16545,7 @@ var BinaryField = (props) => {
16416
16545
  alt: "Selected",
16417
16546
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16418
16547
  }
16419
- ) : renderImage ? /* @__PURE__ */ jsx71(
16548
+ ) : renderImage ? /* @__PURE__ */ jsx72(
16420
16549
  "img",
16421
16550
  {
16422
16551
  style: {
@@ -16427,17 +16556,17 @@ var BinaryField = (props) => {
16427
16556
  alt: "Selected",
16428
16557
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16429
16558
  }
16430
- ) : /* @__PURE__ */ jsx71(PlaceHolderIcon, {}),
16431
- !isInsideTable && !readonly && /* @__PURE__ */ jsx71(
16559
+ ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
16560
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16432
16561
  "button",
16433
16562
  {
16434
16563
  type: "button",
16435
16564
  onClick: () => handleRemoveImage(field.onChange),
16436
16565
  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",
16437
- children: /* @__PURE__ */ jsx71(DeleteIcon, {})
16566
+ children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16438
16567
  }
16439
16568
  )
16440
- ] }) : /* @__PURE__ */ jsxs46(
16569
+ ] }) : /* @__PURE__ */ jsxs47(
16441
16570
  "label",
16442
16571
  {
16443
16572
  htmlFor: inputId,
@@ -16447,7 +16576,7 @@ var BinaryField = (props) => {
16447
16576
  },
16448
16577
  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"}`,
16449
16578
  children: [
16450
- /* @__PURE__ */ jsx71(
16579
+ /* @__PURE__ */ jsx72(
16451
16580
  "input",
16452
16581
  {
16453
16582
  id: inputId,
@@ -16459,8 +16588,8 @@ var BinaryField = (props) => {
16459
16588
  className: "hidden z-10 relative"
16460
16589
  }
16461
16590
  ),
16462
- /* @__PURE__ */ jsx71("img", { src: image, alt: "", className: "z-0 relative" }),
16463
- /* @__PURE__ */ jsx71(
16591
+ /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
16592
+ /* @__PURE__ */ jsx72(
16464
16593
  "div",
16465
16594
  {
16466
16595
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -16469,7 +16598,7 @@ var BinaryField = (props) => {
16469
16598
  left: "-8px",
16470
16599
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16471
16600
  },
16472
- children: /* @__PURE__ */ jsx71(
16601
+ children: /* @__PURE__ */ jsx72(
16473
16602
  "svg",
16474
16603
  {
16475
16604
  xmlns: "http://www.w3.org/2000/svg",
@@ -16477,7 +16606,7 @@ var BinaryField = (props) => {
16477
16606
  height: "14",
16478
16607
  viewBox: "0 0 14 14",
16479
16608
  fill: "none",
16480
- children: /* @__PURE__ */ jsx71(
16609
+ children: /* @__PURE__ */ jsx72(
16481
16610
  "path",
16482
16611
  {
16483
16612
  "fill-rule": "evenodd",
@@ -16501,7 +16630,7 @@ var BinaryField = (props) => {
16501
16630
  };
16502
16631
 
16503
16632
  // src/widgets/basic/button-badge-field/button-badge.tsx
16504
- import { jsx as jsx72 } from "react/jsx-runtime";
16633
+ import { jsx as jsx73 } from "react/jsx-runtime";
16505
16634
  var typeStyles = {
16506
16635
  primary: {
16507
16636
  backgroundColor: "#3b82f6",
@@ -16576,11 +16705,11 @@ var ButtonBadgeField = (props) => {
16576
16705
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16577
16706
  };
16578
16707
  const label = getLabel(defaultValue ?? value);
16579
- return label ? /* @__PURE__ */ jsx72("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16708
+ return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16580
16709
  };
16581
16710
 
16582
16711
  // src/widgets/basic/button-field/button.tsx
16583
- import { Fragment as Fragment16, jsx as jsx73, jsxs as jsxs47 } from "react/jsx-runtime";
16712
+ import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
16584
16713
  var ButtonField = (props) => {
16585
16714
  const {
16586
16715
  func,
@@ -16591,7 +16720,7 @@ var ButtonField = (props) => {
16591
16720
  type = "submit"
16592
16721
  } = props;
16593
16722
  const { t: t3 } = useI18n();
16594
- return /* @__PURE__ */ jsx73(Fragment16, { children: !loading ? /* @__PURE__ */ jsx73(
16723
+ return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
16595
16724
  "button",
16596
16725
  {
16597
16726
  type,
@@ -16600,7 +16729,7 @@ var ButtonField = (props) => {
16600
16729
  onClick: func,
16601
16730
  children: t3(content)
16602
16731
  }
16603
- ) : /* @__PURE__ */ jsxs47(
16732
+ ) : /* @__PURE__ */ jsxs48(
16604
16733
  "button",
16605
16734
  {
16606
16735
  type,
@@ -16609,7 +16738,7 @@ var ButtonField = (props) => {
16609
16738
  children: [
16610
16739
  t3("loading"),
16611
16740
  " ",
16612
- /* @__PURE__ */ jsx73(LoadingIcon, {})
16741
+ /* @__PURE__ */ jsx74(LoadingIcon, {})
16613
16742
  ]
16614
16743
  }
16615
16744
  ) });
@@ -16617,7 +16746,7 @@ var ButtonField = (props) => {
16617
16746
 
16618
16747
  // src/widgets/basic/char-field/char.tsx
16619
16748
  import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
16620
- import { Fragment as Fragment17, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
16749
+ import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
16621
16750
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16622
16751
  var CharField = (props) => {
16623
16752
  const {
@@ -16645,9 +16774,9 @@ var CharField = (props) => {
16645
16774
  } = props;
16646
16775
  if (!isForm && !isEditTable) {
16647
16776
  const propValue = value || defaultValue;
16648
- return /* @__PURE__ */ jsx74("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16777
+ return /* @__PURE__ */ jsx75("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16649
16778
  }
16650
- return /* @__PURE__ */ jsx74(
16779
+ return /* @__PURE__ */ jsx75(
16651
16780
  Controller,
16652
16781
  {
16653
16782
  name: name2 ?? "",
@@ -16701,8 +16830,8 @@ var CharField = (props) => {
16701
16830
  }
16702
16831
  return "";
16703
16832
  }, [widget, formValues]);
16704
- return /* @__PURE__ */ jsxs48(Fragment17, { children: [
16705
- /* @__PURE__ */ jsx74(
16833
+ return /* @__PURE__ */ jsxs49(Fragment17, { children: [
16834
+ /* @__PURE__ */ jsx75(
16706
16835
  "input",
16707
16836
  {
16708
16837
  value: displayValue ?? "",
@@ -16763,7 +16892,7 @@ var CharField = (props) => {
16763
16892
  `
16764
16893
  }
16765
16894
  ),
16766
- isEditTable ? /* @__PURE__ */ jsx74(Fragment17, {}) : /* @__PURE__ */ jsx74(Fragment17, { children: error2 && /* @__PURE__ */ jsx74("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16895
+ isEditTable ? /* @__PURE__ */ jsx75(Fragment17, {}) : /* @__PURE__ */ jsx75(Fragment17, { children: error2 && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16767
16896
  ] });
16768
16897
  }
16769
16898
  }
@@ -16771,7 +16900,7 @@ var CharField = (props) => {
16771
16900
  };
16772
16901
 
16773
16902
  // src/widgets/basic/checkbox-field/checkbox.tsx
16774
- import { jsx as jsx75 } from "react/jsx-runtime";
16903
+ import { jsx as jsx76 } from "react/jsx-runtime";
16775
16904
  var CheckboxField = (props) => {
16776
16905
  const {
16777
16906
  name: name2,
@@ -16786,9 +16915,9 @@ var CheckboxField = (props) => {
16786
16915
  } = props;
16787
16916
  if (!isForm) {
16788
16917
  if (name2 === "is_active" || name2 === "active") {
16789
- return /* @__PURE__ */ jsx75(ActiveBadgeField, { type: value });
16918
+ return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
16790
16919
  } else {
16791
- return /* @__PURE__ */ jsx75(
16920
+ return /* @__PURE__ */ jsx76(
16792
16921
  "input",
16793
16922
  {
16794
16923
  type: "checkbox",
@@ -16799,12 +16928,12 @@ var CheckboxField = (props) => {
16799
16928
  );
16800
16929
  }
16801
16930
  }
16802
- return /* @__PURE__ */ jsx75(
16931
+ return /* @__PURE__ */ jsx76(
16803
16932
  Controller,
16804
16933
  {
16805
16934
  name: name2 ?? "",
16806
16935
  control: methods?.control,
16807
- render: ({ field }) => /* @__PURE__ */ jsx75(
16936
+ render: ({ field }) => /* @__PURE__ */ jsx76(
16808
16937
  "div",
16809
16938
  {
16810
16939
  className: "flex items-center gap-2",
@@ -16817,7 +16946,7 @@ var CheckboxField = (props) => {
16817
16946
  onChange2(name2 ?? "", checked);
16818
16947
  }
16819
16948
  },
16820
- children: /* @__PURE__ */ jsx75(
16949
+ children: /* @__PURE__ */ jsx76(
16821
16950
  "input",
16822
16951
  {
16823
16952
  ...field,
@@ -16845,7 +16974,7 @@ var CheckboxField = (props) => {
16845
16974
 
16846
16975
  // src/widgets/basic/color-field/color-wrapper.tsx
16847
16976
  import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
16848
- import { Fragment as Fragment18, jsx as jsx76, jsxs as jsxs49 } from "react/jsx-runtime";
16977
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
16849
16978
  var ColorWrapper = (props) => {
16850
16979
  const {
16851
16980
  colors: colors2,
@@ -16872,8 +17001,8 @@ var ColorWrapper = (props) => {
16872
17001
  document.removeEventListener("mousedown", handleClickOutside);
16873
17002
  };
16874
17003
  }, []);
16875
- return /* @__PURE__ */ jsx76("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx76("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs49("div", { children: [
16876
- /* @__PURE__ */ jsx76(
17004
+ return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17005
+ /* @__PURE__ */ jsx77(
16877
17006
  "button",
16878
17007
  {
16879
17008
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -16887,7 +17016,7 @@ var ColorWrapper = (props) => {
16887
17016
  }
16888
17017
  }
16889
17018
  ),
16890
- /* @__PURE__ */ jsx76(
17019
+ /* @__PURE__ */ jsx77(
16891
17020
  M,
16892
17021
  {
16893
17022
  className: "",
@@ -16896,8 +17025,8 @@ var ColorWrapper = (props) => {
16896
17025
  content: i18n_default.t(color?.name)
16897
17026
  }
16898
17027
  )
16899
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs49(Fragment18, { children: [
16900
- /* @__PURE__ */ jsx76(
17028
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17029
+ /* @__PURE__ */ jsx77(
16901
17030
  "button",
16902
17031
  {
16903
17032
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -16910,7 +17039,7 @@ var ColorWrapper = (props) => {
16910
17039
  style: { backgroundColor: selectedColor?.color }
16911
17040
  }
16912
17041
  ),
16913
- /* @__PURE__ */ jsx76(
17042
+ /* @__PURE__ */ jsx77(
16914
17043
  M,
16915
17044
  {
16916
17045
  place: "top",
@@ -16922,13 +17051,13 @@ var ColorWrapper = (props) => {
16922
17051
  };
16923
17052
 
16924
17053
  // src/widgets/basic/color-field/color.tsx
16925
- import { jsx as jsx77 } from "react/jsx-runtime";
17054
+ import { jsx as jsx78 } from "react/jsx-runtime";
16926
17055
  var ColorField = (props) => {
16927
17056
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
16928
17057
  if (!isForm) {
16929
- return /* @__PURE__ */ jsx77(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17058
+ return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
16930
17059
  }
16931
- return /* @__PURE__ */ jsx77(
17060
+ return /* @__PURE__ */ jsx78(
16932
17061
  Controller,
16933
17062
  {
16934
17063
  name: name2 ?? "",
@@ -16938,7 +17067,7 @@ var ColorField = (props) => {
16938
17067
  field.onChange(color?.id);
16939
17068
  onChange2 && onChange2(name2 ?? "", color?.id);
16940
17069
  };
16941
- return /* @__PURE__ */ jsx77(
17070
+ return /* @__PURE__ */ jsx78(
16942
17071
  ColorWrapper,
16943
17072
  {
16944
17073
  savePickColor: handlePickColorChange,
@@ -16953,7 +17082,7 @@ var ColorField = (props) => {
16953
17082
 
16954
17083
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
16955
17084
  import { useEffect as useEffect13 } from "react";
16956
- import { jsx as jsx78, jsxs as jsxs50 } from "react/jsx-runtime";
17085
+ import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
16957
17086
  var CopyLinkButtonField = (props) => {
16958
17087
  const {
16959
17088
  isForm,
@@ -16972,9 +17101,9 @@ var CopyLinkButtonField = (props) => {
16972
17101
  } = props;
16973
17102
  const { t: t3 } = useI18n();
16974
17103
  if (!isForm) {
16975
- return /* @__PURE__ */ jsx78("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17104
+ return /* @__PURE__ */ jsx79("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16976
17105
  }
16977
- return /* @__PURE__ */ jsx78(
17106
+ return /* @__PURE__ */ jsx79(
16978
17107
  Controller,
16979
17108
  {
16980
17109
  name: name2 ?? "",
@@ -16992,8 +17121,8 @@ var CopyLinkButtonField = (props) => {
16992
17121
  clearErrors(name2);
16993
17122
  }
16994
17123
  }, [value]);
16995
- return /* @__PURE__ */ jsxs50("div", { className: "relative", children: [
16996
- /* @__PURE__ */ jsxs50(
17124
+ return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17125
+ /* @__PURE__ */ jsxs51(
16997
17126
  "div",
16998
17127
  {
16999
17128
  "aria-disabled": readonly,
@@ -17002,7 +17131,7 @@ var CopyLinkButtonField = (props) => {
17002
17131
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17003
17132
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17004
17133
  children: [
17005
- /* @__PURE__ */ jsx78(
17134
+ /* @__PURE__ */ jsx79(
17006
17135
  "input",
17007
17136
  {
17008
17137
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17043,19 +17172,19 @@ var CopyLinkButtonField = (props) => {
17043
17172
  `
17044
17173
  }
17045
17174
  ),
17046
- readonly && value && /* @__PURE__ */ jsx78(
17175
+ readonly && value && /* @__PURE__ */ jsx79(
17047
17176
  "button",
17048
17177
  {
17049
17178
  className: "cursor-pointer",
17050
17179
  type: "button",
17051
17180
  onClick: () => handleCopyToClipboard(propValue),
17052
- children: isCopied ? /* @__PURE__ */ jsx78(CheckIcon, {}) : /* @__PURE__ */ jsx78(CopyIcon, {})
17181
+ children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17053
17182
  }
17054
17183
  )
17055
17184
  ]
17056
17185
  }
17057
17186
  ),
17058
- error2 && /* @__PURE__ */ jsx78("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17187
+ error2 && /* @__PURE__ */ jsx79("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17059
17188
  ] });
17060
17189
  }
17061
17190
  }
@@ -20996,7 +21125,7 @@ function useEffectEvent(callback) {
20996
21125
  }
20997
21126
 
20998
21127
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
20999
- import { jsx as jsx79, jsxs as jsxs51, Fragment as Fragment19 } from "react/jsx-runtime";
21128
+ import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
21000
21129
  import * as ReactDOM2 from "react-dom";
21001
21130
 
21002
21131
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21394,7 +21523,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21394
21523
  bottom: isCustomShape ? "" : "rotate(180deg)",
21395
21524
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21396
21525
  }[side];
21397
- return /* @__PURE__ */ jsxs51("svg", {
21526
+ return /* @__PURE__ */ jsxs52("svg", {
21398
21527
  ...rest,
21399
21528
  "aria-hidden": true,
21400
21529
  ref,
@@ -21410,18 +21539,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21410
21539
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21411
21540
  ...restStyle
21412
21541
  },
21413
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx79("path", {
21542
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21414
21543
  clipPath: "url(#" + clipPathId + ")",
21415
21544
  fill: "none",
21416
21545
  stroke,
21417
21546
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21418
21547
  d: dValue
21419
- }), /* @__PURE__ */ jsx79("path", {
21548
+ }), /* @__PURE__ */ jsx80("path", {
21420
21549
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21421
21550
  d: dValue
21422
- }), /* @__PURE__ */ jsx79("clipPath", {
21551
+ }), /* @__PURE__ */ jsx80("clipPath", {
21423
21552
  id: clipPathId,
21424
- children: /* @__PURE__ */ jsx79("rect", {
21553
+ children: /* @__PURE__ */ jsx80("rect", {
21425
21554
  x: -halfStrokeWidth,
21426
21555
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21427
21556
  width: width + computedStrokeWidth,
@@ -27354,7 +27483,7 @@ var Emotion$1 = Emotion;
27354
27483
  import * as React12 from "react";
27355
27484
  var import_extends2 = __toESM(require_extends());
27356
27485
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27357
- var jsx80 = function jsx81(type, props) {
27486
+ var jsx81 = function jsx82(type, props) {
27358
27487
  var args = arguments;
27359
27488
  if (props == null || !hasOwn.call(props, "css")) {
27360
27489
  return React12.createElement.apply(void 0, args);
@@ -27372,7 +27501,7 @@ var jsx80 = function jsx81(type, props) {
27372
27501
  var JSX;
27373
27502
  /* @__PURE__ */ (function(_JSX) {
27374
27503
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27375
- })(jsx80 || (jsx80 = {}));
27504
+ })(jsx81 || (jsx81 = {}));
27376
27505
  function css() {
27377
27506
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27378
27507
  args[_key] = arguments[_key];
@@ -27780,7 +27909,7 @@ var MenuPlacer = function MenuPlacer2(props) {
27780
27909
  };
27781
27910
  var Menu = function Menu2(props) {
27782
27911
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
27783
- return jsx80("div", _extends({}, getStyleProps(props, "menu", {
27912
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
27784
27913
  menu: true
27785
27914
  }), {
27786
27915
  ref: innerRef
@@ -27802,7 +27931,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
27802
27931
  };
27803
27932
  var MenuList = function MenuList2(props) {
27804
27933
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
27805
- return jsx80("div", _extends({}, getStyleProps(props, "menuList", {
27934
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
27806
27935
  "menu-list": true,
27807
27936
  "menu-list--is-multi": isMulti
27808
27937
  }), {
@@ -27822,7 +27951,7 @@ var noOptionsMessageCSS = noticeCSS;
27822
27951
  var loadingMessageCSS = noticeCSS;
27823
27952
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27824
27953
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
27825
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27954
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27826
27955
  children,
27827
27956
  innerProps
27828
27957
  }), "noOptionsMessage", {
@@ -27832,7 +27961,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27832
27961
  };
27833
27962
  var LoadingMessage = function LoadingMessage2(_ref7) {
27834
27963
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
27835
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27964
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27836
27965
  children,
27837
27966
  innerProps
27838
27967
  }), "loadingMessage", {
@@ -27895,7 +28024,7 @@ var MenuPortal = function MenuPortal2(props) {
27895
28024
  runAutoUpdate();
27896
28025
  }, [runAutoUpdate]);
27897
28026
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
27898
- var menuWrapper = jsx80("div", _extends({
28027
+ var menuWrapper = jsx81("div", _extends({
27899
28028
  ref: setMenuPortalElement
27900
28029
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
27901
28030
  offset: computedPosition.offset,
@@ -27904,7 +28033,7 @@ var MenuPortal = function MenuPortal2(props) {
27904
28033
  }), "menuPortal", {
27905
28034
  "menu-portal": true
27906
28035
  }), innerProps), children);
27907
- return jsx80(PortalPlacementContext.Provider, {
28036
+ return jsx81(PortalPlacementContext.Provider, {
27908
28037
  value: portalPlacementContext
27909
28038
  }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
27910
28039
  };
@@ -27920,7 +28049,7 @@ var containerCSS = function containerCSS2(_ref3) {
27920
28049
  };
27921
28050
  var SelectContainer = function SelectContainer2(props) {
27922
28051
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
27923
- return jsx80("div", _extends({}, getStyleProps(props, "container", {
28052
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
27924
28053
  "--is-disabled": isDisabled,
27925
28054
  "--is-rtl": isRtl
27926
28055
  }), innerProps), children);
@@ -27941,7 +28070,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
27941
28070
  };
27942
28071
  var ValueContainer = function ValueContainer2(props) {
27943
28072
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
27944
- return jsx80("div", _extends({}, getStyleProps(props, "valueContainer", {
28073
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
27945
28074
  "value-container": true,
27946
28075
  "value-container--is-multi": isMulti,
27947
28076
  "value-container--has-value": hasValue
@@ -27957,7 +28086,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
27957
28086
  };
27958
28087
  var IndicatorsContainer = function IndicatorsContainer2(props) {
27959
28088
  var children = props.children, innerProps = props.innerProps;
27960
- return jsx80("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28089
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
27961
28090
  indicators: true
27962
28091
  }), innerProps), children);
27963
28092
  };
@@ -27978,7 +28107,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
27978
28107
  };
27979
28108
  var Svg = function Svg2(_ref3) {
27980
28109
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
27981
- return jsx80("svg", _extends({
28110
+ return jsx81("svg", _extends({
27982
28111
  height: size4,
27983
28112
  width: size4,
27984
28113
  viewBox: "0 0 20 20",
@@ -27988,16 +28117,16 @@ var Svg = function Svg2(_ref3) {
27988
28117
  }, props));
27989
28118
  };
27990
28119
  var CrossIcon = function CrossIcon2(props) {
27991
- return jsx80(Svg, _extends({
28120
+ return jsx81(Svg, _extends({
27992
28121
  size: 20
27993
- }, props), jsx80("path", {
28122
+ }, props), jsx81("path", {
27994
28123
  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"
27995
28124
  }));
27996
28125
  };
27997
28126
  var DownChevron = function DownChevron2(props) {
27998
- return jsx80(Svg, _extends({
28127
+ return jsx81(Svg, _extends({
27999
28128
  size: 20
28000
- }, props), jsx80("path", {
28129
+ }, props), jsx81("path", {
28001
28130
  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"
28002
28131
  }));
28003
28132
  };
@@ -28018,18 +28147,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28018
28147
  var dropdownIndicatorCSS = baseCSS;
28019
28148
  var DropdownIndicator = function DropdownIndicator2(props) {
28020
28149
  var children = props.children, innerProps = props.innerProps;
28021
- return jsx80("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28150
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28022
28151
  indicator: true,
28023
28152
  "dropdown-indicator": true
28024
- }), innerProps), children || jsx80(DownChevron, null));
28153
+ }), innerProps), children || jsx81(DownChevron, null));
28025
28154
  };
28026
28155
  var clearIndicatorCSS = baseCSS;
28027
28156
  var ClearIndicator = function ClearIndicator2(props) {
28028
28157
  var children = props.children, innerProps = props.innerProps;
28029
- return jsx80("div", _extends({}, getStyleProps(props, "clearIndicator", {
28158
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28030
28159
  indicator: true,
28031
28160
  "clear-indicator": true
28032
- }), innerProps), children || jsx80(CrossIcon, null));
28161
+ }), innerProps), children || jsx81(CrossIcon, null));
28033
28162
  };
28034
28163
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28035
28164
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28045,7 +28174,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28045
28174
  };
28046
28175
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28047
28176
  var innerProps = props.innerProps;
28048
- return jsx80("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28177
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28049
28178
  "indicator-separator": true
28050
28179
  })));
28051
28180
  };
@@ -28069,7 +28198,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28069
28198
  };
28070
28199
  var LoadingDot = function LoadingDot2(_ref6) {
28071
28200
  var delay = _ref6.delay, offset4 = _ref6.offset;
28072
- return jsx80("span", {
28201
+ return jsx81("span", {
28073
28202
  css: /* @__PURE__ */ css({
28074
28203
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28075
28204
  backgroundColor: "currentColor",
@@ -28084,20 +28213,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28084
28213
  };
28085
28214
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28086
28215
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28087
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28216
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28088
28217
  innerProps,
28089
28218
  isRtl,
28090
28219
  size: size4
28091
28220
  }), "loadingIndicator", {
28092
28221
  indicator: true,
28093
28222
  "loading-indicator": true
28094
- }), innerProps), jsx80(LoadingDot, {
28223
+ }), innerProps), jsx81(LoadingDot, {
28095
28224
  delay: 0,
28096
28225
  offset: isRtl
28097
- }), jsx80(LoadingDot, {
28226
+ }), jsx81(LoadingDot, {
28098
28227
  delay: 160,
28099
28228
  offset: true
28100
- }), jsx80(LoadingDot, {
28229
+ }), jsx81(LoadingDot, {
28101
28230
  delay: 320,
28102
28231
  offset: !isRtl
28103
28232
  }));
@@ -28129,7 +28258,7 @@ var css$1 = function css2(_ref3, unstyled) {
28129
28258
  };
28130
28259
  var Control = function Control2(props) {
28131
28260
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28132
- return jsx80("div", _extends({
28261
+ return jsx81("div", _extends({
28133
28262
  ref: innerRef
28134
28263
  }, getStyleProps(props, "control", {
28135
28264
  control: true,
@@ -28151,15 +28280,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28151
28280
  };
28152
28281
  var Group = function Group2(props) {
28153
28282
  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;
28154
- return jsx80("div", _extends({}, getStyleProps(props, "group", {
28283
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28155
28284
  group: true
28156
- }), innerProps), jsx80(Heading, _extends({}, headingProps, {
28285
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28157
28286
  selectProps,
28158
28287
  theme,
28159
28288
  getStyles,
28160
28289
  getClassNames,
28161
28290
  cx
28162
- }), label), jsx80("div", null, children));
28291
+ }), label), jsx81("div", null, children));
28163
28292
  };
28164
28293
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28165
28294
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28181,7 +28310,7 @@ var GroupHeading = function GroupHeading2(props) {
28181
28310
  var _cleanCommonProps = cleanCommonProps(props);
28182
28311
  _cleanCommonProps.data;
28183
28312
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28184
- return jsx80("div", _extends({}, getStyleProps(props, "groupHeading", {
28313
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28185
28314
  "group-heading": true
28186
28315
  }), innerProps));
28187
28316
  };
@@ -28233,11 +28362,11 @@ var inputStyle = function inputStyle2(isHidden) {
28233
28362
  var Input = function Input2(props) {
28234
28363
  var cx = props.cx, value = props.value;
28235
28364
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28236
- return jsx80("div", _extends({}, getStyleProps(props, "input", {
28365
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28237
28366
  "input-container": true
28238
28367
  }), {
28239
28368
  "data-value": value || ""
28240
- }), jsx80("input", _extends({
28369
+ }), jsx81("input", _extends({
28241
28370
  className: cx({
28242
28371
  input: true
28243
28372
  }, inputClassName),
@@ -28291,35 +28420,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28291
28420
  };
28292
28421
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28293
28422
  var children = _ref4.children, innerProps = _ref4.innerProps;
28294
- return jsx80("div", innerProps, children);
28423
+ return jsx81("div", innerProps, children);
28295
28424
  };
28296
28425
  var MultiValueContainer = MultiValueGeneric;
28297
28426
  var MultiValueLabel = MultiValueGeneric;
28298
28427
  function MultiValueRemove(_ref5) {
28299
28428
  var children = _ref5.children, innerProps = _ref5.innerProps;
28300
- return jsx80("div", _extends({
28429
+ return jsx81("div", _extends({
28301
28430
  role: "button"
28302
- }, innerProps), children || jsx80(CrossIcon, {
28431
+ }, innerProps), children || jsx81(CrossIcon, {
28303
28432
  size: 14
28304
28433
  }));
28305
28434
  }
28306
28435
  var MultiValue = function MultiValue2(props) {
28307
28436
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28308
28437
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28309
- return jsx80(Container, {
28438
+ return jsx81(Container, {
28310
28439
  data,
28311
28440
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28312
28441
  "multi-value": true,
28313
28442
  "multi-value--is-disabled": isDisabled
28314
28443
  })), innerProps),
28315
28444
  selectProps
28316
- }, jsx80(Label, {
28445
+ }, jsx81(Label, {
28317
28446
  data,
28318
28447
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28319
28448
  "multi-value__label": true
28320
28449
  })),
28321
28450
  selectProps
28322
- }, children), jsx80(Remove, {
28451
+ }, children), jsx81(Remove, {
28323
28452
  data,
28324
28453
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28325
28454
  "multi-value__remove": true
@@ -28352,7 +28481,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28352
28481
  };
28353
28482
  var Option = function Option2(props) {
28354
28483
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28355
- return jsx80("div", _extends({}, getStyleProps(props, "option", {
28484
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
28356
28485
  option: true,
28357
28486
  "option--is-disabled": isDisabled,
28358
28487
  "option--is-focused": isFocused,
@@ -28376,7 +28505,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28376
28505
  };
28377
28506
  var Placeholder = function Placeholder2(props) {
28378
28507
  var children = props.children, innerProps = props.innerProps;
28379
- return jsx80("div", _extends({}, getStyleProps(props, "placeholder", {
28508
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28380
28509
  placeholder: true
28381
28510
  }), innerProps), children);
28382
28511
  };
@@ -28398,7 +28527,7 @@ var css3 = function css4(_ref3, unstyled) {
28398
28527
  };
28399
28528
  var SingleValue = function SingleValue2(props) {
28400
28529
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28401
- return jsx80("div", _extends({}, getStyleProps(props, "singleValue", {
28530
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28402
28531
  "single-value": true,
28403
28532
  "single-value--is-disabled": isDisabled
28404
28533
  }), innerProps), children);
@@ -28500,7 +28629,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28500
28629
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28501
28630
  };
28502
28631
  var A11yText = function A11yText2(props) {
28503
- return jsx80("span", _extends({
28632
+ return jsx81("span", _extends({
28504
28633
  css: _ref
28505
28634
  }, props));
28506
28635
  };
@@ -28635,18 +28764,18 @@ var LiveRegion = function LiveRegion2(props) {
28635
28764
  }
28636
28765
  return guidanceMsg;
28637
28766
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28638
- var ScreenReaderText = jsx80(Fragment22, null, jsx80("span", {
28767
+ var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
28639
28768
  id: "aria-selection"
28640
- }, ariaSelected), jsx80("span", {
28769
+ }, ariaSelected), jsx81("span", {
28641
28770
  id: "aria-focused"
28642
- }, ariaFocused), jsx80("span", {
28771
+ }, ariaFocused), jsx81("span", {
28643
28772
  id: "aria-results"
28644
- }, ariaResults), jsx80("span", {
28773
+ }, ariaResults), jsx81("span", {
28645
28774
  id: "aria-guidance"
28646
28775
  }, ariaGuidance));
28647
- return jsx80(Fragment22, null, jsx80(A11yText$1, {
28776
+ return jsx81(Fragment22, null, jsx81(A11yText$1, {
28648
28777
  id
28649
- }, isInitialFocus && ScreenReaderText), jsx80(A11yText$1, {
28778
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
28650
28779
  "aria-live": ariaLive,
28651
28780
  "aria-atomic": "false",
28652
28781
  "aria-relevant": "additions text",
@@ -28959,7 +29088,7 @@ var _excluded4 = ["innerRef"];
28959
29088
  function DummyInput(_ref3) {
28960
29089
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
28961
29090
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
28962
- return jsx80("input", _extends({
29091
+ return jsx81("input", _extends({
28963
29092
  ref: innerRef
28964
29093
  }, filteredProps, {
28965
29094
  css: /* @__PURE__ */ css({
@@ -29201,7 +29330,7 @@ function ScrollManager(_ref3) {
29201
29330
  setScrollCaptureTarget(element);
29202
29331
  setScrollLockTarget(element);
29203
29332
  };
29204
- return jsx80(Fragment22, null, lockEnabled && jsx80("div", {
29333
+ return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29205
29334
  onClick: blurSelectInput,
29206
29335
  css: _ref2$1
29207
29336
  }), children(targetRef));
@@ -29220,7 +29349,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29220
29349
  };
29221
29350
  var RequiredInput = function RequiredInput2(_ref3) {
29222
29351
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29223
- return jsx80("input", {
29352
+ return jsx81("input", {
29224
29353
  required: true,
29225
29354
  name: name2,
29226
29355
  tabIndex: -1,
@@ -30810,7 +30939,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30810
30939
 
30811
30940
  // src/widgets/basic/date-field/date.tsx
30812
30941
  var import_moment2 = __toESM(require_moment());
30813
- import { Fragment as Fragment23, jsx as jsx82, jsxs as jsxs52 } from "react/jsx-runtime";
30942
+ import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
30814
30943
  var DateField = (props) => {
30815
30944
  const {
30816
30945
  name: name2,
@@ -30838,8 +30967,8 @@ var DateField = (props) => {
30838
30967
  } = props;
30839
30968
  const { t: t3 } = useI18n();
30840
30969
  const InputDateCustom = forwardRef6(
30841
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs52("label", { className: `flex ${className}`, children: [
30842
- /* @__PURE__ */ jsx82(
30970
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
30971
+ /* @__PURE__ */ jsx83(
30843
30972
  "input",
30844
30973
  {
30845
30974
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -30853,13 +30982,13 @@ var DateField = (props) => {
30853
30982
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
30854
30983
  }
30855
30984
  ),
30856
- isForm2 && /* @__PURE__ */ jsx82(CalendarIcon, {})
30985
+ isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
30857
30986
  ] })
30858
30987
  );
30859
30988
  if (!isForm && !isEditTable) {
30860
- return /* @__PURE__ */ jsx82("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30989
+ return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30861
30990
  } else {
30862
- return /* @__PURE__ */ jsx82(
30991
+ return /* @__PURE__ */ jsx83(
30863
30992
  Controller,
30864
30993
  {
30865
30994
  name: name2 || "",
@@ -30881,8 +31010,8 @@ var DateField = (props) => {
30881
31010
  }
30882
31011
  }, [value, clearErrors, name2]);
30883
31012
  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;
30884
- return /* @__PURE__ */ jsxs52(Fragment23, { children: [
30885
- /* @__PURE__ */ jsx82(
31013
+ return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31014
+ /* @__PURE__ */ jsx83(
30886
31015
  DatePicker,
30887
31016
  {
30888
31017
  selected: selectedDate,
@@ -30930,7 +31059,7 @@ var DateField = (props) => {
30930
31059
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
30931
31060
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
30932
31061
  showTimeInput: showTime,
30933
- customInput: /* @__PURE__ */ jsx82(
31062
+ customInput: /* @__PURE__ */ jsx83(
30934
31063
  InputDateCustom,
30935
31064
  {
30936
31065
  isForm,
@@ -30948,7 +31077,7 @@ var DateField = (props) => {
30948
31077
  increaseMonth,
30949
31078
  prevMonthButtonDisabled,
30950
31079
  nextMonthButtonDisabled
30951
- }) => /* @__PURE__ */ jsxs52(
31080
+ }) => /* @__PURE__ */ jsxs53(
30952
31081
  "div",
30953
31082
  {
30954
31083
  style: {
@@ -30957,7 +31086,7 @@ var DateField = (props) => {
30957
31086
  justifyContent: "center"
30958
31087
  },
30959
31088
  children: [
30960
- /* @__PURE__ */ jsx82(
31089
+ /* @__PURE__ */ jsx83(
30961
31090
  "button",
30962
31091
  {
30963
31092
  onClick: decreaseMonth,
@@ -30965,7 +31094,7 @@ var DateField = (props) => {
30965
31094
  children: "<"
30966
31095
  }
30967
31096
  ),
30968
- /* @__PURE__ */ jsx82(
31097
+ /* @__PURE__ */ jsx83(
30969
31098
  StateManagedSelect$1,
30970
31099
  {
30971
31100
  classNames: {
@@ -30991,7 +31120,7 @@ var DateField = (props) => {
30991
31120
  autoFocus: true
30992
31121
  }
30993
31122
  ),
30994
- /* @__PURE__ */ jsx82(
31123
+ /* @__PURE__ */ jsx83(
30995
31124
  StateManagedSelect$1,
30996
31125
  {
30997
31126
  classNames: {
@@ -31019,7 +31148,7 @@ var DateField = (props) => {
31019
31148
  }))
31020
31149
  }
31021
31150
  ),
31022
- /* @__PURE__ */ jsx82(
31151
+ /* @__PURE__ */ jsx83(
31023
31152
  "button",
31024
31153
  {
31025
31154
  onClick: increaseMonth,
@@ -31032,7 +31161,7 @@ var DateField = (props) => {
31032
31161
  )
31033
31162
  }
31034
31163
  ),
31035
- !isEditTable && error2 && /* @__PURE__ */ jsx82("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31164
+ !isEditTable && error2 && /* @__PURE__ */ jsx83("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31036
31165
  ] });
31037
31166
  }
31038
31167
  }
@@ -31041,26 +31170,26 @@ var DateField = (props) => {
31041
31170
  };
31042
31171
 
31043
31172
  // src/widgets/basic/download-binary-field/download-binary.tsx
31044
- import { jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31173
+ import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31045
31174
  var DownLoadBinaryField = (props) => {
31046
31175
  const { handleFileDownload } = props;
31047
31176
  const { t: t3 } = useI18n();
31048
- return /* @__PURE__ */ jsxs53(
31177
+ return /* @__PURE__ */ jsxs54(
31049
31178
  "button",
31050
31179
  {
31051
31180
  type: "button",
31052
31181
  onClick: handleFileDownload,
31053
31182
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31054
31183
  children: [
31055
- /* @__PURE__ */ jsx83(DownloadIcon, {}),
31056
- /* @__PURE__ */ jsx83("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31184
+ /* @__PURE__ */ jsx84(DownloadIcon, {}),
31185
+ /* @__PURE__ */ jsx84("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31057
31186
  ]
31058
31187
  }
31059
31188
  );
31060
31189
  };
31061
31190
 
31062
31191
  // src/widgets/basic/download-file-field/download-file.tsx
31063
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31192
+ import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31064
31193
  var DownloadFileField = (props) => {
31065
31194
  const {
31066
31195
  readonly,
@@ -31072,15 +31201,15 @@ var DownloadFileField = (props) => {
31072
31201
  handleFileChange,
31073
31202
  handleFileDownload
31074
31203
  } = props;
31075
- return /* @__PURE__ */ jsxs54("div", { className: "", children: [
31076
- /* @__PURE__ */ jsxs54(
31204
+ return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31205
+ /* @__PURE__ */ jsxs55(
31077
31206
  "label",
31078
31207
  {
31079
31208
  htmlFor: inputId,
31080
31209
  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",
31081
31210
  children: [
31082
- 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" }),
31083
- /* @__PURE__ */ jsx84(
31211
+ 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" }),
31212
+ /* @__PURE__ */ jsx85(
31084
31213
  "input",
31085
31214
  {
31086
31215
  id: inputId,
@@ -31094,7 +31223,7 @@ var DownloadFileField = (props) => {
31094
31223
  ]
31095
31224
  }
31096
31225
  ),
31097
- file && /* @__PURE__ */ jsx84(
31226
+ file && /* @__PURE__ */ jsx85(
31098
31227
  "button",
31099
31228
  {
31100
31229
  onClick: handleFileDownload,
@@ -31108,7 +31237,7 @@ var DownloadFileField = (props) => {
31108
31237
 
31109
31238
  // src/widgets/basic/dropdown-field/dropdown.tsx
31110
31239
  import { useState as useState16 } from "react";
31111
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31240
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31112
31241
  var DropdownField = (props) => {
31113
31242
  const {
31114
31243
  options: options2,
@@ -31122,30 +31251,30 @@ var DropdownField = (props) => {
31122
31251
  } = props;
31123
31252
  const [open, setOpen] = useState16(false);
31124
31253
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31125
- return /* @__PURE__ */ jsxs55(
31254
+ return /* @__PURE__ */ jsxs56(
31126
31255
  "div",
31127
31256
  {
31128
31257
  ref: dropdownRef,
31129
31258
  className: `relative ${className}`,
31130
31259
  onClick: () => setOpen(!open),
31131
31260
  children: [
31132
- /* @__PURE__ */ jsxs55(
31261
+ /* @__PURE__ */ jsxs56(
31133
31262
  "div",
31134
31263
  {
31135
31264
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31136
31265
  children: [
31137
31266
  selectedValue?.icon,
31138
- /* @__PURE__ */ jsx85("span", { children: selectedValue?.label }),
31139
- /* @__PURE__ */ jsx85(ChevronBottomIcon, { className: "h-4 w-4" })
31267
+ /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31268
+ /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31140
31269
  ]
31141
31270
  }
31142
31271
  ),
31143
- open && /* @__PURE__ */ jsx85(
31272
+ open && /* @__PURE__ */ jsx86(
31144
31273
  "div",
31145
31274
  {
31146
31275
  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}`,
31147
31276
  onClick: (e3) => e3.stopPropagation(),
31148
- children: options2.map((option, index4) => /* @__PURE__ */ jsx85(
31277
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31149
31278
  "div",
31150
31279
  {
31151
31280
  onClick: () => {
@@ -31165,7 +31294,7 @@ var DropdownField = (props) => {
31165
31294
  };
31166
31295
 
31167
31296
  // src/widgets/basic/fee-field/fee.tsx
31168
- import { Fragment as Fragment24, jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31297
+ import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31169
31298
  var FeeField = (props) => {
31170
31299
  const { value, formValues } = props;
31171
31300
  const { t: t3 } = useI18n();
@@ -31176,27 +31305,27 @@ var FeeField = (props) => {
31176
31305
  )
31177
31306
  ) + " VND";
31178
31307
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31179
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31308
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31180
31309
  value?.subtotals?.map((sub) => {
31181
31310
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31182
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31183
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31184
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31311
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31312
+ /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31313
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31185
31314
  sub?.name,
31186
31315
  ":"
31187
31316
  ] }),
31188
- /* @__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" })
31317
+ /* @__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" })
31189
31318
  ] }),
31190
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs56(
31319
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31191
31320
  "div",
31192
31321
  {
31193
31322
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31194
31323
  children: [
31195
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31324
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31196
31325
  group?.group_name,
31197
31326
  ":"
31198
31327
  ] }),
31199
- /* @__PURE__ */ jsx86("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31328
+ /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31200
31329
  ]
31201
31330
  },
31202
31331
  `tax_groups_${group?.id}`
@@ -31204,33 +31333,33 @@ var FeeField = (props) => {
31204
31333
  ] });
31205
31334
  }
31206
31335
  }),
31207
- /* @__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: [
31208
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31336
+ /* @__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: [
31337
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31209
31338
  t3("total"),
31210
31339
  ":"
31211
31340
  ] }),
31212
- /* @__PURE__ */ jsx86("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31341
+ /* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31213
31342
  ] }),
31214
- /* @__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: [
31215
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31343
+ /* @__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: [
31344
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31216
31345
  t3("paid_amount"),
31217
31346
  ":"
31218
31347
  ] }),
31219
- /* @__PURE__ */ jsx86("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31348
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31220
31349
  ] }),
31221
- /* @__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: [
31222
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31350
+ /* @__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: [
31351
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31223
31352
  t3("remanining_amount"),
31224
31353
  ":"
31225
31354
  ] }),
31226
- /* @__PURE__ */ jsx86("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31355
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31227
31356
  ] })
31228
31357
  ] });
31229
31358
  };
31230
31359
 
31231
31360
  // src/widgets/basic/file-upload-field/file-upload.tsx
31232
31361
  import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31233
- import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31362
+ import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31234
31363
  var RenderFile = ({
31235
31364
  file,
31236
31365
  onDelete,
@@ -31240,16 +31369,16 @@ var RenderFile = ({
31240
31369
  readAs: "all"
31241
31370
  });
31242
31371
  const fileTypeIcon = {
31243
- "application/pdf": /* @__PURE__ */ jsx87(PdfIcon, {}),
31244
- "application/zip": /* @__PURE__ */ jsx87(ZipIcon, {}),
31245
- "application/x-zip-compressed": /* @__PURE__ */ jsx87(ZipIcon, {}),
31246
- "application/vnd.ms-excel": /* @__PURE__ */ jsx87(ExcelIcon, {}),
31247
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx87(ExcelIcon, {})
31372
+ "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
31373
+ "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
31374
+ "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
31375
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
31376
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
31248
31377
  };
31249
- return /* @__PURE__ */ jsxs57("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31250
- /* @__PURE__ */ jsx87("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31251
- /* @__PURE__ */ jsxs57("div", { children: [
31252
- /* @__PURE__ */ jsx87(
31378
+ return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31379
+ /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31380
+ /* @__PURE__ */ jsxs58("div", { children: [
31381
+ /* @__PURE__ */ jsx88(
31253
31382
  "div",
31254
31383
  {
31255
31384
  style: {
@@ -31259,20 +31388,20 @@ var RenderFile = ({
31259
31388
  children: file?.name || file?.display_name || info?.name
31260
31389
  }
31261
31390
  ),
31262
- /* @__PURE__ */ jsx87("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31391
+ /* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31263
31392
  ] }),
31264
- /* @__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: [
31265
- /* @__PURE__ */ jsx87(
31393
+ /* @__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: [
31394
+ /* @__PURE__ */ jsx88(
31266
31395
  "span",
31267
31396
  {
31268
31397
  onClick: () => onDownload && onDownload(
31269
31398
  file?.data,
31270
31399
  file?.name || file?.display_name || info?.name
31271
31400
  ),
31272
- children: /* @__PURE__ */ jsx87(DownloadIcon, {})
31401
+ children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31273
31402
  }
31274
31403
  ),
31275
- /* @__PURE__ */ jsx87("span", { onClick: onDelete, children: /* @__PURE__ */ jsx87(DeleteIconDanger, {}) })
31404
+ /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31276
31405
  ] })
31277
31406
  ] });
31278
31407
  };
@@ -31306,7 +31435,7 @@ var FileUploadField = (props) => {
31306
31435
  ]);
31307
31436
  }
31308
31437
  }, [value]);
31309
- return /* @__PURE__ */ jsx87(
31438
+ return /* @__PURE__ */ jsx88(
31310
31439
  Controller,
31311
31440
  {
31312
31441
  name: name2 || "",
@@ -31331,8 +31460,8 @@ var FileUploadField = (props) => {
31331
31460
  );
31332
31461
  }
31333
31462
  }, [selectedFiles]);
31334
- return /* @__PURE__ */ jsxs57("div", { className: "file-upload-field", children: [
31335
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx87(
31463
+ return /* @__PURE__ */ jsxs58("div", { className: "file-upload-field", children: [
31464
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
31336
31465
  RenderFile,
31337
31466
  {
31338
31467
  file: fileItem,
@@ -31347,8 +31476,8 @@ var FileUploadField = (props) => {
31347
31476
  }
31348
31477
  }
31349
31478
  )),
31350
- uploadError && /* @__PURE__ */ jsx87("div", { className: "text-[#de4747]", children: uploadError }),
31351
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx87(
31479
+ uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
31480
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx88(
31352
31481
  ButtonSelectFiles,
31353
31482
  {
31354
31483
  fileInputRef,
@@ -31363,7 +31492,7 @@ var FileUploadField = (props) => {
31363
31492
  useUploadFile
31364
31493
  }
31365
31494
  ),
31366
- error2 && !isEditTable && /* @__PURE__ */ jsx87("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31495
+ error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31367
31496
  ] });
31368
31497
  }
31369
31498
  }
@@ -31372,7 +31501,7 @@ var FileUploadField = (props) => {
31372
31501
 
31373
31502
  // src/widgets/basic/float-field/float.tsx
31374
31503
  import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31375
- import { Fragment as Fragment25, jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31504
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31376
31505
  var FloatField = (props) => {
31377
31506
  const {
31378
31507
  name: name2,
@@ -31390,9 +31519,9 @@ var FloatField = (props) => {
31390
31519
  } = props;
31391
31520
  const { t: t3 } = useI18n();
31392
31521
  if (!isForm && !isEditTable) {
31393
- return /* @__PURE__ */ jsx88("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31522
+ return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31394
31523
  }
31395
- return /* @__PURE__ */ jsx88(
31524
+ return /* @__PURE__ */ jsx89(
31396
31525
  Controller,
31397
31526
  {
31398
31527
  name: name2 ?? "",
@@ -31497,8 +31626,8 @@ var FloatField = (props) => {
31497
31626
  }
31498
31627
  isDirtyRef.current = false;
31499
31628
  };
31500
- return /* @__PURE__ */ jsxs58(Fragment25, { children: [
31501
- /* @__PURE__ */ jsx88(
31629
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31630
+ /* @__PURE__ */ jsx89(
31502
31631
  "input",
31503
31632
  {
31504
31633
  ref: inputRef,
@@ -31518,7 +31647,7 @@ var FloatField = (props) => {
31518
31647
  `
31519
31648
  }
31520
31649
  ),
31521
- error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31650
+ error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31522
31651
  ] });
31523
31652
  }
31524
31653
  }
@@ -31527,7 +31656,7 @@ var FloatField = (props) => {
31527
31656
 
31528
31657
  // src/widgets/basic/float-time-field/float-time.tsx
31529
31658
  import { useState as useState19 } from "react";
31530
- import { Fragment as Fragment26, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31659
+ import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
31531
31660
  var FloatTimeField = (props) => {
31532
31661
  const {
31533
31662
  name: name2,
@@ -31543,9 +31672,9 @@ var FloatTimeField = (props) => {
31543
31672
  const { t: t3 } = useI18n();
31544
31673
  if (!isForm) {
31545
31674
  const formatValue = value ?? 0;
31546
- return /* @__PURE__ */ jsx89("span", { children: convertFloatToTime(formatValue) });
31675
+ return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
31547
31676
  }
31548
- return /* @__PURE__ */ jsx89(
31677
+ return /* @__PURE__ */ jsx90(
31549
31678
  Controller,
31550
31679
  {
31551
31680
  name: name2 ?? "",
@@ -31607,8 +31736,8 @@ var FloatTimeField = (props) => {
31607
31736
  }
31608
31737
  onBlur();
31609
31738
  };
31610
- return /* @__PURE__ */ jsxs59(Fragment26, { children: [
31611
- /* @__PURE__ */ jsx89(
31739
+ return /* @__PURE__ */ jsxs60(Fragment26, { children: [
31740
+ /* @__PURE__ */ jsx90(
31612
31741
  "input",
31613
31742
  {
31614
31743
  type: "text",
@@ -31640,7 +31769,7 @@ var FloatTimeField = (props) => {
31640
31769
  readOnly: readonly
31641
31770
  }
31642
31771
  ),
31643
- (error2 || errors) && /* @__PURE__ */ jsx89("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31772
+ (error2 || errors) && /* @__PURE__ */ jsx90("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31644
31773
  ] });
31645
31774
  }
31646
31775
  }
@@ -31649,7 +31778,7 @@ var FloatTimeField = (props) => {
31649
31778
 
31650
31779
  // src/widgets/basic/html-field/html.tsx
31651
31780
  import { useEffect as useEffect20, useRef as useRef17 } from "react";
31652
- import { jsx as jsx90 } from "react/jsx-runtime";
31781
+ import { jsx as jsx91 } from "react/jsx-runtime";
31653
31782
  var HtmlField = (props) => {
31654
31783
  const {
31655
31784
  name: name2,
@@ -31663,9 +31792,9 @@ var HtmlField = (props) => {
31663
31792
  } = props;
31664
31793
  const divRef = useRef17(null);
31665
31794
  if (!isForm && !isEditTable) {
31666
- return /* @__PURE__ */ jsx90("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31795
+ return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31667
31796
  }
31668
- return /* @__PURE__ */ jsx90(
31797
+ return /* @__PURE__ */ jsx91(
31669
31798
  Controller,
31670
31799
  {
31671
31800
  name: name2 ?? "",
@@ -31684,7 +31813,7 @@ var HtmlField = (props) => {
31684
31813
  onChange2(newValue, "");
31685
31814
  }
31686
31815
  };
31687
- return /* @__PURE__ */ jsx90(
31816
+ return /* @__PURE__ */ jsx91(
31688
31817
  "div",
31689
31818
  {
31690
31819
  ref: divRef,
@@ -31703,28 +31832,28 @@ var HtmlField = (props) => {
31703
31832
  };
31704
31833
 
31705
31834
  // src/widgets/basic/image-field/image.tsx
31706
- import { jsx as jsx91 } from "react/jsx-runtime";
31835
+ import { jsx as jsx92 } from "react/jsx-runtime";
31707
31836
  var ImageField = (props) => {
31708
31837
  const { value, type, name: name2, baseURL } = props;
31709
31838
  if (!value) return null;
31710
31839
  if (type === "url") {
31711
- return /* @__PURE__ */ jsx91("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31840
+ return /* @__PURE__ */ jsx92("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31712
31841
  }
31713
- return /* @__PURE__ */ jsx91("div", { id: "qr-code", children: /* @__PURE__ */ jsx91("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31842
+ return /* @__PURE__ */ jsx92("div", { id: "qr-code", children: /* @__PURE__ */ jsx92("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31714
31843
  };
31715
31844
 
31716
31845
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31717
31846
  import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
31718
31847
 
31719
31848
  // src/widgets/basic/information-field/information.tsx
31720
- import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs60 } from "react/jsx-runtime";
31849
+ import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31721
31850
  var InfomationField = (props) => {
31722
31851
  const { value, isForm = false, showName = true, stringToColor } = props;
31723
31852
  if (!value || Array.isArray(value) && value.length === 0) {
31724
- return /* @__PURE__ */ jsx92(Fragment27, {});
31853
+ return /* @__PURE__ */ jsx93(Fragment27, {});
31725
31854
  }
31726
31855
  const inforValues = Array.isArray(value) ? value : [value];
31727
- 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(
31856
+ 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(
31728
31857
  AvatarField,
31729
31858
  {
31730
31859
  id: item.id,
@@ -31733,8 +31862,8 @@ var InfomationField = (props) => {
31733
31862
  stringToColor
31734
31863
  },
31735
31864
  item.id
31736
- )) : /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center w-max", children: [
31737
- /* @__PURE__ */ jsx92(
31865
+ )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
31866
+ /* @__PURE__ */ jsx93(
31738
31867
  AvatarField,
31739
31868
  {
31740
31869
  avatarSrc: inforValues[0].image_256,
@@ -31744,12 +31873,12 @@ var InfomationField = (props) => {
31744
31873
  stringToColor
31745
31874
  }
31746
31875
  ),
31747
- showName && /* @__PURE__ */ jsx92("span", { className: "capitalize", children: inforValues[0].display_name })
31876
+ showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
31748
31877
  ] }) });
31749
31878
  };
31750
31879
 
31751
31880
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31752
- import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31881
+ import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31753
31882
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31754
31883
  const { selectProps, data, menuList } = props;
31755
31884
  const { relation } = selectProps;
@@ -31758,8 +31887,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31758
31887
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31759
31888
  )
31760
31889
  )?.[0]?.action?.id;
31761
- return /* @__PURE__ */ jsxs61("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31762
- /* @__PURE__ */ jsx93(
31890
+ return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31891
+ /* @__PURE__ */ jsx94(
31763
31892
  AvatarField,
31764
31893
  {
31765
31894
  id: data?.id,
@@ -31771,8 +31900,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31771
31900
  stringToColor
31772
31901
  }
31773
31902
  ),
31774
- /* @__PURE__ */ jsx93("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31775
- /* @__PURE__ */ jsx93(
31903
+ /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31904
+ /* @__PURE__ */ jsx94(
31776
31905
  "span",
31777
31906
  {
31778
31907
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -31780,7 +31909,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31780
31909
  e3.stopPropagation();
31781
31910
  props.removeProps.onClick();
31782
31911
  },
31783
- children: /* @__PURE__ */ jsx93(CloseIcon, {})
31912
+ children: /* @__PURE__ */ jsx94(CloseIcon, {})
31784
31913
  }
31785
31914
  )
31786
31915
  ] });
@@ -31790,9 +31919,9 @@ var CustomMenuList = (props) => {
31790
31919
  const { setIsShowModalMany2Many, searchable } = selectProps;
31791
31920
  const { t: t3 } = useI18n();
31792
31921
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
31793
- return /* @__PURE__ */ jsxs61(components.MenuList, { ...props, className: "z-[99]", children: [
31922
+ return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
31794
31923
  limitedChildren,
31795
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs61(
31924
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
31796
31925
  "button",
31797
31926
  {
31798
31927
  type: "button",
@@ -31837,7 +31966,7 @@ var Many2ManyTagField = (props) => {
31837
31966
  value: item.id,
31838
31967
  label: item.name ?? item.display_name
31839
31968
  })) : [];
31840
- return /* @__PURE__ */ jsx93(
31969
+ return /* @__PURE__ */ jsx94(
31841
31970
  InfomationField,
31842
31971
  {
31843
31972
  value: optionValue || null,
@@ -31846,7 +31975,7 @@ var Many2ManyTagField = (props) => {
31846
31975
  }
31847
31976
  );
31848
31977
  }
31849
- return /* @__PURE__ */ jsx93(
31978
+ return /* @__PURE__ */ jsx94(
31850
31979
  Controller,
31851
31980
  {
31852
31981
  name: name2 ?? "",
@@ -31882,8 +32011,8 @@ var Many2ManyTagField = (props) => {
31882
32011
  onChange2?.(name2 ?? "", newValue);
31883
32012
  clearErrors(name2);
31884
32013
  };
31885
- return /* @__PURE__ */ jsxs61("div", { className: "group h-full overflow-y-auto", children: [
31886
- /* @__PURE__ */ jsx93(
32014
+ return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32015
+ /* @__PURE__ */ jsx94(
31887
32016
  StateManagedSelect$1,
31888
32017
  {
31889
32018
  options: options2,
@@ -31961,7 +32090,7 @@ var Many2ManyTagField = (props) => {
31961
32090
  })
31962
32091
  },
31963
32092
  components: isUser ? {
31964
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx93(
32093
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
31965
32094
  CustomMultiValue,
31966
32095
  {
31967
32096
  ...multiValueProps,
@@ -31970,7 +32099,7 @@ var Many2ManyTagField = (props) => {
31970
32099
  ),
31971
32100
  IndicatorSeparator: () => null
31972
32101
  } : {
31973
- MenuList: (menuListProps) => /* @__PURE__ */ jsx93(
32102
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
31974
32103
  CustomMenuList,
31975
32104
  {
31976
32105
  ...menuListProps,
@@ -31981,13 +32110,13 @@ var Many2ManyTagField = (props) => {
31981
32110
  }
31982
32111
  ),
31983
32112
  IndicatorSeparator: () => null,
31984
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.DropdownIndicator, { ...props2 }),
31985
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.ClearIndicator, { ...props2 })
32113
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
32114
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.ClearIndicator, { ...props2 })
31986
32115
  },
31987
32116
  required: !invisible && required
31988
32117
  }
31989
32118
  ),
31990
- !isEditTable && error2 && /* @__PURE__ */ jsx93("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32119
+ !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31991
32120
  ] });
31992
32121
  }
31993
32122
  }
@@ -31996,7 +32125,7 @@ var Many2ManyTagField = (props) => {
31996
32125
 
31997
32126
  // src/widgets/basic/monetary-field/monetary.tsx
31998
32127
  import { useEffect as useEffect22 } from "react";
31999
- import { Fragment as Fragment28, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32128
+ import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32000
32129
  var MonetaryField = (props) => {
32001
32130
  const { t: t3 } = useI18n();
32002
32131
  const {
@@ -32016,26 +32145,26 @@ var MonetaryField = (props) => {
32016
32145
  isEditTable
32017
32146
  } = props;
32018
32147
  if (isForm && name2 === "amount_residual") {
32019
- return /* @__PURE__ */ jsxs62("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32020
- /* @__PURE__ */ jsxs62("span", { className: "font-semibold", children: [
32148
+ return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32149
+ /* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
32021
32150
  string,
32022
32151
  ":"
32023
32152
  ] }),
32024
- /* @__PURE__ */ jsx94("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32153
+ /* @__PURE__ */ jsx95("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32025
32154
  ] });
32026
32155
  }
32027
32156
  if (!isForm) {
32028
32157
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32029
32158
  if (widget === "monetary" && !formValues?.currency_id) {
32030
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32159
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32031
32160
  parseFloat(String(value ?? defaultValue))
32032
32161
  )} VND` });
32033
32162
  }
32034
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32163
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32035
32164
  parseFloat(value ?? defaultValue)
32036
32165
  )} ${currencySymbol}` });
32037
32166
  }
32038
- return /* @__PURE__ */ jsx94(
32167
+ return /* @__PURE__ */ jsx95(
32039
32168
  Controller,
32040
32169
  {
32041
32170
  name: name2 ?? "",
@@ -32054,8 +32183,8 @@ var MonetaryField = (props) => {
32054
32183
  clearErrors(name2);
32055
32184
  }
32056
32185
  }, [value2]);
32057
- return /* @__PURE__ */ jsxs62(Fragment28, { children: [
32058
- /* @__PURE__ */ jsx94(
32186
+ return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32187
+ /* @__PURE__ */ jsx95(
32059
32188
  "input",
32060
32189
  {
32061
32190
  value: formatNumberOnly(value2),
@@ -32093,7 +32222,7 @@ var MonetaryField = (props) => {
32093
32222
  `
32094
32223
  }
32095
32224
  ),
32096
- !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32225
+ !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32097
32226
  ] });
32098
32227
  }
32099
32228
  }
@@ -32101,14 +32230,14 @@ var MonetaryField = (props) => {
32101
32230
  };
32102
32231
 
32103
32232
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32104
- import { jsx as jsx95 } from "react/jsx-runtime";
32233
+ import { jsx as jsx96 } from "react/jsx-runtime";
32105
32234
  var PaidBadgedField = () => {
32106
- return /* @__PURE__ */ jsx95("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx95(PaidIcon, {}) });
32235
+ return /* @__PURE__ */ jsx96("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx96(PaidIcon, {}) });
32107
32236
  };
32108
32237
 
32109
32238
  // src/widgets/basic/priority-field/rating-star.tsx
32110
32239
  import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32111
- import { jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
32240
+ import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32112
32241
  var RatingStarField = (props) => {
32113
32242
  const {
32114
32243
  label,
@@ -32143,7 +32272,7 @@ var RatingStarField = (props) => {
32143
32272
  setHover(0);
32144
32273
  setRating(0);
32145
32274
  };
32146
- return /* @__PURE__ */ jsx96(
32275
+ return /* @__PURE__ */ jsx97(
32147
32276
  "div",
32148
32277
  {
32149
32278
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32153,17 +32282,17 @@ var RatingStarField = (props) => {
32153
32282
  const starValue = index4 + 1;
32154
32283
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32155
32284
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32156
- return /* @__PURE__ */ jsxs63(React17.Fragment, { children: [
32157
- /* @__PURE__ */ jsx96(
32285
+ return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32286
+ /* @__PURE__ */ jsx97(
32158
32287
  "div",
32159
32288
  {
32160
32289
  onMouseEnter: () => handleHover(starValue),
32161
32290
  onClick: () => handleClick(starValue),
32162
32291
  "data-tooltip-id": `${id}-${starValue}`,
32163
- children: /* @__PURE__ */ jsx96(StarIcon, { fill: fillColor, stroke: strokeColor })
32292
+ children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32164
32293
  }
32165
32294
  ),
32166
- /* @__PURE__ */ jsx96(
32295
+ /* @__PURE__ */ jsx97(
32167
32296
  M,
32168
32297
  {
32169
32298
  className: "z-50",
@@ -32179,7 +32308,7 @@ var RatingStarField = (props) => {
32179
32308
  };
32180
32309
 
32181
32310
  // src/widgets/basic/priority-field/priority.tsx
32182
- import { jsx as jsx97 } from "react/jsx-runtime";
32311
+ import { jsx as jsx98 } from "react/jsx-runtime";
32183
32312
  var PriorityField = (props) => {
32184
32313
  const {
32185
32314
  isForm,
@@ -32195,7 +32324,7 @@ var PriorityField = (props) => {
32195
32324
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32196
32325
  const defaultPriority = parseInt(value) + 1;
32197
32326
  if (!isForm) {
32198
- return /* @__PURE__ */ jsx97(
32327
+ return /* @__PURE__ */ jsx98(
32199
32328
  RatingStarField,
32200
32329
  {
32201
32330
  label,
@@ -32206,7 +32335,7 @@ var PriorityField = (props) => {
32206
32335
  }
32207
32336
  );
32208
32337
  }
32209
- return /* @__PURE__ */ jsx97(
32338
+ return /* @__PURE__ */ jsx98(
32210
32339
  Controller,
32211
32340
  {
32212
32341
  name: name ?? "",
@@ -32216,7 +32345,7 @@ var PriorityField = (props) => {
32216
32345
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32217
32346
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32218
32347
  };
32219
- return /* @__PURE__ */ jsx97(
32348
+ return /* @__PURE__ */ jsx98(
32220
32349
  RatingStarField,
32221
32350
  {
32222
32351
  label,
@@ -32233,7 +32362,7 @@ var PriorityField = (props) => {
32233
32362
 
32234
32363
  // src/widgets/basic/radio-group-field/radio-group.tsx
32235
32364
  import { useEffect as useEffect24 } from "react";
32236
- import { jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
32365
+ import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32237
32366
  var RadioGroupField = (props) => {
32238
32367
  const {
32239
32368
  name: name2,
@@ -32252,13 +32381,13 @@ var RadioGroupField = (props) => {
32252
32381
  }
32253
32382
  }, [selection, name2, setValue]);
32254
32383
  if (!methods) return null;
32255
- return /* @__PURE__ */ jsx98(
32384
+ return /* @__PURE__ */ jsx99(
32256
32385
  Controller,
32257
32386
  {
32258
32387
  name: name2 ?? "",
32259
32388
  control: methods.control,
32260
- 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: [
32261
- /* @__PURE__ */ jsx98(
32389
+ 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: [
32390
+ /* @__PURE__ */ jsx99(
32262
32391
  "input",
32263
32392
  {
32264
32393
  type: "radio",
@@ -32277,7 +32406,7 @@ var RadioGroupField = (props) => {
32277
32406
  className: "custom-radio"
32278
32407
  }
32279
32408
  ),
32280
- /* @__PURE__ */ jsx98("label", { htmlFor: String(select[0]), children: select[1] })
32409
+ /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32281
32410
  ] }, select[0])) })
32282
32411
  }
32283
32412
  );
@@ -32285,7 +32414,7 @@ var RadioGroupField = (props) => {
32285
32414
 
32286
32415
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32287
32416
  var import_moment3 = __toESM(require_moment());
32288
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32417
+ import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32289
32418
  var RemainingDaysField = (props) => {
32290
32419
  const {
32291
32420
  value,
@@ -32296,14 +32425,14 @@ var RemainingDaysField = (props) => {
32296
32425
  if (!value) return null;
32297
32426
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32298
32427
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32299
- return /* @__PURE__ */ jsxs65("div", { className: isForm ? "mb-4" : "", children: [
32300
- /* @__PURE__ */ jsx99(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32301
- /* @__PURE__ */ jsx99(
32428
+ return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32429
+ /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32430
+ /* @__PURE__ */ jsx100(
32302
32431
  "div",
32303
32432
  {
32304
32433
  "data-tooltip-id": `remainingDays_${value}`,
32305
32434
  className: "flex items-center w-fit cursor-context-menu",
32306
- children: /* @__PURE__ */ jsx99(
32435
+ children: /* @__PURE__ */ jsx100(
32307
32436
  "div",
32308
32437
  {
32309
32438
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32316,7 +32445,7 @@ var RemainingDaysField = (props) => {
32316
32445
  };
32317
32446
 
32318
32447
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32319
- import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32448
+ import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32320
32449
  var SelectDropdownField = (props) => {
32321
32450
  const { t: t3 } = useI18n();
32322
32451
  const {
@@ -32338,9 +32467,9 @@ var SelectDropdownField = (props) => {
32338
32467
  label: val[1]
32339
32468
  })) : [];
32340
32469
  if (!isForm && !isEditTable) {
32341
- return /* @__PURE__ */ jsx100("span", { children: options2?.find((item) => item?.value === value)?.label });
32470
+ return /* @__PURE__ */ jsx101("span", { children: options2?.find((item) => item?.value === value)?.label });
32342
32471
  } else {
32343
- return /* @__PURE__ */ jsx100(
32472
+ return /* @__PURE__ */ jsx101(
32344
32473
  Controller,
32345
32474
  {
32346
32475
  name: name2 || "",
@@ -32367,8 +32496,8 @@ var SelectDropdownField = (props) => {
32367
32496
  value: defaultValue || null,
32368
32497
  required: !invisible && required
32369
32498
  };
32370
- return /* @__PURE__ */ jsxs66(Fragment29, { children: [
32371
- /* @__PURE__ */ jsx100("div", { className: "group", children: /* @__PURE__ */ jsx100(
32499
+ return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32500
+ /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32372
32501
  StateManagedSelect$1,
32373
32502
  {
32374
32503
  ...commonProps,
@@ -32423,12 +32552,12 @@ var SelectDropdownField = (props) => {
32423
32552
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32424
32553
  components: {
32425
32554
  IndicatorSeparator: () => null,
32426
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx100(components.DropdownIndicator, { ...props2 })
32555
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32427
32556
  },
32428
32557
  noOptionsMessage: () => t3("no-available")
32429
32558
  }
32430
32559
  ) }),
32431
- !isEditTable && error2 && /* @__PURE__ */ jsx100("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32560
+ !isEditTable && error2 && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32432
32561
  ] });
32433
32562
  }
32434
32563
  }
@@ -32437,7 +32566,7 @@ var SelectDropdownField = (props) => {
32437
32566
  };
32438
32567
 
32439
32568
  // src/widgets/basic/textarea-field/textarea.tsx
32440
- import { jsx as jsx101 } from "react/jsx-runtime";
32569
+ import { jsx as jsx102 } from "react/jsx-runtime";
32441
32570
  var TextAreaField = (props) => {
32442
32571
  const {
32443
32572
  methods,
@@ -32461,9 +32590,9 @@ var TextAreaField = (props) => {
32461
32590
  }
32462
32591
  }) : {};
32463
32592
  if (!isForm) {
32464
- return /* @__PURE__ */ jsx101("span", { children: value && typeof value === "object" ? value.display_name : value });
32593
+ return /* @__PURE__ */ jsx102("span", { children: value && typeof value === "object" ? value.display_name : value });
32465
32594
  }
32466
- return /* @__PURE__ */ jsx101(
32595
+ return /* @__PURE__ */ jsx102(
32467
32596
  "textarea",
32468
32597
  {
32469
32598
  ...formProps,
@@ -32479,7 +32608,7 @@ var TextAreaField = (props) => {
32479
32608
  };
32480
32609
 
32481
32610
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32482
- import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
32611
+ import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32483
32612
  var ToggleButtonField = (props) => {
32484
32613
  const {
32485
32614
  name: name2,
@@ -32489,13 +32618,13 @@ var ToggleButtonField = (props) => {
32489
32618
  onChange: onChange2,
32490
32619
  methods
32491
32620
  } = props;
32492
- return /* @__PURE__ */ jsx102(
32621
+ return /* @__PURE__ */ jsx103(
32493
32622
  Controller,
32494
32623
  {
32495
32624
  name: name2 ?? "",
32496
32625
  control: methods?.control,
32497
- 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: [
32498
- /* @__PURE__ */ jsx102(
32626
+ 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: [
32627
+ /* @__PURE__ */ jsx103(
32499
32628
  "input",
32500
32629
  {
32501
32630
  ...field,
@@ -32514,7 +32643,7 @@ var ToggleButtonField = (props) => {
32514
32643
  checked: field.value ?? false
32515
32644
  }
32516
32645
  ),
32517
- /* @__PURE__ */ jsx102(
32646
+ /* @__PURE__ */ jsx103(
32518
32647
  "span",
32519
32648
  {
32520
32649
  style: {
@@ -32523,7 +32652,7 @@ var ToggleButtonField = (props) => {
32523
32652
  },
32524
32653
  className: `rounded-full transition duration-300
32525
32654
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32526
- children: /* @__PURE__ */ jsx102(
32655
+ children: /* @__PURE__ */ jsx103(
32527
32656
  "span",
32528
32657
  {
32529
32658
  style: {
@@ -32548,7 +32677,7 @@ var ToggleButtonField = (props) => {
32548
32677
 
32549
32678
  // src/widgets/basic/integer-field/integer.tsx
32550
32679
  import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
32551
- import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32680
+ import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32552
32681
  var IntegerField = (props) => {
32553
32682
  const {
32554
32683
  name: name2,
@@ -32567,9 +32696,9 @@ var IntegerField = (props) => {
32567
32696
  const { t: t3 } = useI18n();
32568
32697
  if (!isForm && !isEditTable) {
32569
32698
  const displayValue = value ?? defaultValue;
32570
- return /* @__PURE__ */ jsx103("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32699
+ return /* @__PURE__ */ jsx104("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32571
32700
  }
32572
- return /* @__PURE__ */ jsx103(
32701
+ return /* @__PURE__ */ jsx104(
32573
32702
  Controller,
32574
32703
  {
32575
32704
  name: name2 || "",
@@ -32647,8 +32776,8 @@ var IntegerField = (props) => {
32647
32776
  inputRef.current?.blur();
32648
32777
  clearErrors(name2);
32649
32778
  };
32650
- return /* @__PURE__ */ jsxs68(Fragment30, { children: [
32651
- /* @__PURE__ */ jsx103(
32779
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32780
+ /* @__PURE__ */ jsx104(
32652
32781
  "input",
32653
32782
  {
32654
32783
  ref: inputRef,
@@ -32683,7 +32812,7 @@ var IntegerField = (props) => {
32683
32812
  `
32684
32813
  }
32685
32814
  ),
32686
- error2 && isEditTable && /* @__PURE__ */ jsx103("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32815
+ error2 && isEditTable && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32687
32816
  ] });
32688
32817
  }
32689
32818
  }
@@ -32691,7 +32820,7 @@ var IntegerField = (props) => {
32691
32820
  };
32692
32821
 
32693
32822
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32694
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32823
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32695
32824
  var StatusDropdownField = (props) => {
32696
32825
  const {
32697
32826
  buttonRef,
@@ -32703,13 +32832,13 @@ var StatusDropdownField = (props) => {
32703
32832
  handleClick,
32704
32833
  colors: colors2
32705
32834
  } = props;
32706
- return /* @__PURE__ */ jsxs69(
32835
+ return /* @__PURE__ */ jsxs70(
32707
32836
  "div",
32708
32837
  {
32709
32838
  ref: buttonRef,
32710
32839
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32711
32840
  children: [
32712
- /* @__PURE__ */ jsx104(
32841
+ /* @__PURE__ */ jsx105(
32713
32842
  "button",
32714
32843
  {
32715
32844
  type: "button",
@@ -32717,23 +32846,23 @@ var StatusDropdownField = (props) => {
32717
32846
  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"}`
32718
32847
  }
32719
32848
  ),
32720
- 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) => {
32849
+ 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) => {
32721
32850
  const isActive = item[0] == state;
32722
- return /* @__PURE__ */ jsxs69(
32851
+ return /* @__PURE__ */ jsxs70(
32723
32852
  "div",
32724
32853
  {
32725
32854
  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" : ""}`,
32726
32855
  onClick: () => handleClick(item[0]),
32727
32856
  children: [
32728
- /* @__PURE__ */ jsx104("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx104(CheckIcon, {}) }),
32729
- /* @__PURE__ */ jsxs69("div", { className: "flex items-center gap-2", children: [
32730
- /* @__PURE__ */ jsx104(
32857
+ /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
32858
+ /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
32859
+ /* @__PURE__ */ jsx105(
32731
32860
  "div",
32732
32861
  {
32733
32862
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
32734
32863
  }
32735
32864
  ),
32736
- /* @__PURE__ */ jsx104("span", { className: "text-sm", children: item[1] })
32865
+ /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
32737
32866
  ] })
32738
32867
  ]
32739
32868
  },
@@ -32748,7 +32877,7 @@ var StatusDropdownField = (props) => {
32748
32877
  // src/widgets/basic/many2many-field/many2many.tsx
32749
32878
  import { createPortal as createPortal5 } from "react-dom";
32750
32879
  import { useEffect as useEffect26 } from "react";
32751
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32880
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32752
32881
  var Many2ManyField = (props) => {
32753
32882
  const { t: t3 } = useI18n();
32754
32883
  const {
@@ -32822,7 +32951,7 @@ var Many2ManyField = (props) => {
32822
32951
  };
32823
32952
  }, [selectedTags]);
32824
32953
  return createPortal5(
32825
- /* @__PURE__ */ jsxs70(
32954
+ /* @__PURE__ */ jsxs71(
32826
32955
  "div",
32827
32956
  {
32828
32957
  style: {
@@ -32830,8 +32959,8 @@ var Many2ManyField = (props) => {
32830
32959
  },
32831
32960
  className: "fixed bottom-0 left-0 right-0 top-0",
32832
32961
  children: [
32833
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32834
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs70(
32962
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32963
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
32835
32964
  "div",
32836
32965
  {
32837
32966
  style: {
@@ -32839,12 +32968,12 @@ var Many2ManyField = (props) => {
32839
32968
  },
32840
32969
  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",
32841
32970
  children: [
32842
- /* @__PURE__ */ jsxs70("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32843
- /* @__PURE__ */ jsx105("div", { className: "text-[20px] font-semibold", children: title }),
32844
- /* @__PURE__ */ jsx105("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx105(CloseIcon, {}) })
32971
+ /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32972
+ /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
32973
+ /* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
32845
32974
  ] }),
32846
- /* @__PURE__ */ jsxs70("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32847
- /* @__PURE__ */ jsx105("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx105(
32975
+ /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32976
+ /* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
32848
32977
  Search,
32849
32978
  {
32850
32979
  removeSearchItems,
@@ -32878,7 +33007,7 @@ var Many2ManyField = (props) => {
32878
33007
  groupByList
32879
33008
  }
32880
33009
  ) }),
32881
- /* @__PURE__ */ jsx105(
33010
+ /* @__PURE__ */ jsx106(
32882
33011
  PaginationView,
32883
33012
  {
32884
33013
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -32895,20 +33024,20 @@ var Many2ManyField = (props) => {
32895
33024
  }
32896
33025
  )
32897
33026
  ] }),
32898
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx105("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx105("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx105(
33027
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx106("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx106("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx106(
32899
33028
  "div",
32900
33029
  {
32901
33030
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
32902
- 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(
33031
+ 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(
32903
33032
  "div",
32904
33033
  {
32905
33034
  className: `flex w-full items-center h-full overflow-auto `,
32906
- children: /* @__PURE__ */ jsx105("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs70(
33035
+ children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
32907
33036
  "table",
32908
33037
  {
32909
33038
  className: `relative w-full bg-white custom-dropdown `,
32910
33039
  children: [
32911
- /* @__PURE__ */ jsx105(
33040
+ /* @__PURE__ */ jsx106(
32912
33041
  TableHead,
32913
33042
  {
32914
33043
  columns,
@@ -32918,7 +33047,7 @@ var Many2ManyField = (props) => {
32918
33047
  handleCheckBoxAll
32919
33048
  }
32920
33049
  ),
32921
- rows?.length > 0 ? /* @__PURE__ */ jsx105(
33050
+ rows?.length > 0 ? /* @__PURE__ */ jsx106(
32922
33051
  TableBody,
32923
33052
  {
32924
33053
  tableGroupController,
@@ -32958,16 +33087,16 @@ var Many2ManyField = (props) => {
32958
33087
  checkedAll,
32959
33088
  context
32960
33089
  }
32961
- ) : /* @__PURE__ */ jsx105("tr", { children: /* @__PURE__ */ jsx105(
33090
+ ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
32962
33091
  "td",
32963
33092
  {
32964
33093
  className: "w-full",
32965
33094
  colSpan: columns?.length + 2,
32966
- children: /* @__PURE__ */ jsx105(
33095
+ children: /* @__PURE__ */ jsx106(
32967
33096
  "div",
32968
33097
  {
32969
33098
  className: `flex flex-col items-center justify-center gap-3 py-6`,
32970
- children: /* @__PURE__ */ jsx105(EmptyTable, {})
33099
+ children: /* @__PURE__ */ jsx106(EmptyTable, {})
32971
33100
  }
32972
33101
  )
32973
33102
  }
@@ -32978,9 +33107,9 @@ var Many2ManyField = (props) => {
32978
33107
  }
32979
33108
  ) }) })
32980
33109
  }
32981
- ) }) }) : /* @__PURE__ */ jsx105(LayerLoading, {}),
32982
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2 mt-auto", children: [
32983
- isDisplayCheckbox && /* @__PURE__ */ jsx105(
33110
+ ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33111
+ /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33112
+ isDisplayCheckbox && /* @__PURE__ */ jsx106(
32984
33113
  "button",
32985
33114
  {
32986
33115
  disabled: selectedRowKeys?.length === 0,
@@ -32990,7 +33119,7 @@ var Many2ManyField = (props) => {
32990
33119
  children: t3("choose")
32991
33120
  }
32992
33121
  ),
32993
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx105(
33122
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
32994
33123
  "button",
32995
33124
  {
32996
33125
  type: "button",
@@ -33006,7 +33135,7 @@ var Many2ManyField = (props) => {
33006
33135
  children: t3("new")
33007
33136
  }
33008
33137
  ),
33009
- /* @__PURE__ */ jsx105(
33138
+ /* @__PURE__ */ jsx106(
33010
33139
  "button",
33011
33140
  {
33012
33141
  type: "button",
@@ -33028,15 +33157,15 @@ var Many2ManyField = (props) => {
33028
33157
 
33029
33158
  // src/widgets/basic/many2one-field/many2one.tsx
33030
33159
  import React18, { useEffect as useEffect27 } from "react";
33031
- import { Fragment as Fragment31, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33160
+ import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33032
33161
  var CustomMenuList2 = (props) => {
33033
33162
  const { t: t3 } = useI18n();
33034
33163
  const { options: options2, children, selectProps } = props;
33035
33164
  const { setIsShowModalMany2Many, searchable } = selectProps;
33036
33165
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33037
- return /* @__PURE__ */ jsxs71(components.MenuList, { ...props, className: "z-[99]", children: [
33166
+ return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33038
33167
  limitedChildren,
33039
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs71(
33168
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33040
33169
  "button",
33041
33170
  {
33042
33171
  type: "button",
@@ -33079,14 +33208,14 @@ var Many2OneField = (props) => {
33079
33208
  const { t: t3 } = useI18n();
33080
33209
  if (!isForm && !isEditTable) {
33081
33210
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33082
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33211
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33083
33212
  allowShowDetail && renderDetail({
33084
33213
  idToolTip: String(name2) + Number(index4),
33085
33214
  model: options2?.model ?? relation,
33086
33215
  context: contextObject,
33087
33216
  idForm: id
33088
33217
  }),
33089
- /* @__PURE__ */ jsx106(
33218
+ /* @__PURE__ */ jsx107(
33090
33219
  "span",
33091
33220
  {
33092
33221
  className: "cursor-pointer",
@@ -33097,20 +33226,20 @@ var Many2OneField = (props) => {
33097
33226
  )
33098
33227
  ] });
33099
33228
  }
33100
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33229
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33101
33230
  allowShowDetail && renderDetail({
33102
33231
  idToolTip: String(name2),
33103
33232
  model: options2?.model ?? relation,
33104
33233
  context: contextObject,
33105
33234
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33106
33235
  }),
33107
- /* @__PURE__ */ jsx106(
33236
+ /* @__PURE__ */ jsx107(
33108
33237
  "div",
33109
33238
  {
33110
33239
  id: name2,
33111
33240
  "data-tooltip-id": name2,
33112
33241
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33113
- children: /* @__PURE__ */ jsx106(
33242
+ children: /* @__PURE__ */ jsx107(
33114
33243
  Controller,
33115
33244
  {
33116
33245
  name: name2 ?? "",
@@ -33135,8 +33264,8 @@ var Many2OneField = (props) => {
33135
33264
  methods?.clearErrors(name2);
33136
33265
  }
33137
33266
  }, [selectedOption]);
33138
- return /* @__PURE__ */ jsxs71("div", { className: "h-full", children: [
33139
- /* @__PURE__ */ jsx106(
33267
+ return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33268
+ /* @__PURE__ */ jsx107(
33140
33269
  StateManagedSelect$1,
33141
33270
  {
33142
33271
  menuShouldScrollIntoView: false,
@@ -33212,7 +33341,7 @@ var Many2OneField = (props) => {
33212
33341
  })
33213
33342
  },
33214
33343
  components: {
33215
- MenuList: (menuListProps) => /* @__PURE__ */ jsx106(
33344
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33216
33345
  CustomMenuList2,
33217
33346
  {
33218
33347
  ...menuListProps,
@@ -33223,13 +33352,13 @@ var Many2OneField = (props) => {
33223
33352
  }
33224
33353
  ),
33225
33354
  IndicatorSeparator: () => null,
33226
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx106(components.DropdownIndicator, { ...props2 })
33355
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33227
33356
  },
33228
33357
  isDisabled: readonly,
33229
33358
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33230
33359
  }
33231
33360
  ),
33232
- !isEditTable && error2 && /* @__PURE__ */ jsx106("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33361
+ !isEditTable && error2 && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33233
33362
  ] });
33234
33363
  }
33235
33364
  }
@@ -33240,7 +33369,7 @@ var Many2OneField = (props) => {
33240
33369
  };
33241
33370
 
33242
33371
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33243
- import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33372
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33244
33373
  var StatusbarDurationField = (props) => {
33245
33374
  const {
33246
33375
  disabled,
@@ -33250,14 +33379,14 @@ var StatusbarDurationField = (props) => {
33250
33379
  defaultValue,
33251
33380
  setModalStatus
33252
33381
  } = props;
33253
- return /* @__PURE__ */ jsx107(
33382
+ return /* @__PURE__ */ jsx108(
33254
33383
  "div",
33255
33384
  {
33256
33385
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33257
- children: /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[24px]", children: [
33258
- /* @__PURE__ */ jsx107("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33386
+ children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33387
+ /* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33259
33388
  const value = option?.id === defaultValue;
33260
- return /* @__PURE__ */ jsxs72(
33389
+ return /* @__PURE__ */ jsxs73(
33261
33390
  "label",
33262
33391
  {
33263
33392
  onClick: () => !disabled && handleClick(option.id),
@@ -33267,7 +33396,7 @@ var StatusbarDurationField = (props) => {
33267
33396
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33268
33397
  `,
33269
33398
  children: [
33270
- /* @__PURE__ */ jsx107(
33399
+ /* @__PURE__ */ jsx108(
33271
33400
  "input",
33272
33401
  {
33273
33402
  type: "radio",
@@ -33277,7 +33406,7 @@ var StatusbarDurationField = (props) => {
33277
33406
  }
33278
33407
  ),
33279
33408
  option?.name,
33280
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx107(
33409
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33281
33410
  "div",
33282
33411
  {
33283
33412
  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]
@@ -33292,14 +33421,14 @@ var StatusbarDurationField = (props) => {
33292
33421
  }) }),
33293
33422
  dataResponse?.records?.some(
33294
33423
  (item) => item?.fold && item.id !== defaultValue
33295
- ) && /* @__PURE__ */ jsxs72(
33424
+ ) && /* @__PURE__ */ jsxs73(
33296
33425
  "div",
33297
33426
  {
33298
33427
  onClick: () => setModalStatus(!modelStatus),
33299
33428
  className: "w-[24px] h-[24px] cursor-pointer relative",
33300
33429
  children: [
33301
- /* @__PURE__ */ jsx107(MoreIcon, {}),
33302
- modelStatus && /* @__PURE__ */ jsx107(
33430
+ /* @__PURE__ */ jsx108(MoreIcon, {}),
33431
+ modelStatus && /* @__PURE__ */ jsx108(
33303
33432
  "div",
33304
33433
  {
33305
33434
  onClick: (e3) => e3.stopPropagation(),
@@ -33308,7 +33437,7 @@ var StatusbarDurationField = (props) => {
33308
33437
  (item) => item?.fold && item.id !== defaultValue
33309
33438
  )?.map((option) => {
33310
33439
  const value = option?.id === defaultValue;
33311
- return /* @__PURE__ */ jsx107(
33440
+ return /* @__PURE__ */ jsx108(
33312
33441
  "div",
33313
33442
  {
33314
33443
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33330,14 +33459,14 @@ var StatusbarDurationField = (props) => {
33330
33459
 
33331
33460
  // src/widgets/basic/status-bar-field/option/option.tsx
33332
33461
  import { useMemo as useMemo11 } from "react";
33333
- import { Fragment as Fragment32, jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33462
+ import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33334
33463
  var StatusBarOptionField = (props) => {
33335
33464
  const { selection, defaultValue } = props;
33336
33465
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33337
33466
  const indexInProgress = memoizedStatusOptions?.findIndex(
33338
33467
  (option) => option?.[0] === defaultValue
33339
33468
  );
33340
- return /* @__PURE__ */ jsx108(
33469
+ return /* @__PURE__ */ jsx109(
33341
33470
  "div",
33342
33471
  {
33343
33472
  style: {
@@ -33346,8 +33475,8 @@ var StatusBarOptionField = (props) => {
33346
33475
  flexWrap: "wrap"
33347
33476
  },
33348
33477
  children: memoizedStatusOptions?.map((option, index4) => {
33349
- return /* @__PURE__ */ jsxs73(Fragment32, { children: [
33350
- /* @__PURE__ */ jsxs73(
33478
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33479
+ /* @__PURE__ */ jsxs74(
33351
33480
  "div",
33352
33481
  {
33353
33482
  style: {
@@ -33365,7 +33494,7 @@ var StatusBarOptionField = (props) => {
33365
33494
  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" : ""
33366
33495
  },
33367
33496
  children: [
33368
- /* @__PURE__ */ jsx108(
33497
+ /* @__PURE__ */ jsx109(
33369
33498
  "span",
33370
33499
  {
33371
33500
  style: {
@@ -33377,10 +33506,10 @@ var StatusBarOptionField = (props) => {
33377
33506
  alignItems: "center",
33378
33507
  borderRadius: "100%"
33379
33508
  },
33380
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx108(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx108(ICCircle, {}) : /* @__PURE__ */ jsx108(ICMinus, {})
33509
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx109(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx109(ICCircle, {}) : /* @__PURE__ */ jsx109(ICMinus, {})
33381
33510
  }
33382
33511
  ),
33383
- /* @__PURE__ */ jsx108(
33512
+ /* @__PURE__ */ jsx109(
33384
33513
  "span",
33385
33514
  {
33386
33515
  style: {
@@ -33393,7 +33522,7 @@ var StatusBarOptionField = (props) => {
33393
33522
  },
33394
33523
  option?.[0]
33395
33524
  ),
33396
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx108(
33525
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33397
33526
  "div",
33398
33527
  {
33399
33528
  style: {
@@ -33409,7 +33538,7 @@ var StatusBarOptionField = (props) => {
33409
33538
  );
33410
33539
  };
33411
33540
  var ICMinus = () => {
33412
- return /* @__PURE__ */ jsx108(
33541
+ return /* @__PURE__ */ jsx109(
33413
33542
  "svg",
33414
33543
  {
33415
33544
  xmlns: "http://www.w3.org/2000/svg",
@@ -33417,7 +33546,7 @@ var ICMinus = () => {
33417
33546
  height: "16",
33418
33547
  viewBox: "0 0 16 16",
33419
33548
  fill: "none",
33420
- children: /* @__PURE__ */ jsx108(
33549
+ children: /* @__PURE__ */ jsx109(
33421
33550
  "path",
33422
33551
  {
33423
33552
  d: "M4 8H12",
@@ -33431,7 +33560,7 @@ var ICMinus = () => {
33431
33560
  );
33432
33561
  };
33433
33562
  var ICCircle = () => {
33434
- return /* @__PURE__ */ jsx108(
33563
+ return /* @__PURE__ */ jsx109(
33435
33564
  "svg",
33436
33565
  {
33437
33566
  xmlns: "http://www.w3.org/2000/svg",
@@ -33439,12 +33568,12 @@ var ICCircle = () => {
33439
33568
  height: "8",
33440
33569
  viewBox: "0 0 8 8",
33441
33570
  fill: "none",
33442
- children: /* @__PURE__ */ jsx108("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33571
+ children: /* @__PURE__ */ jsx109("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33443
33572
  }
33444
33573
  );
33445
33574
  };
33446
33575
  var ICCheck = () => {
33447
- return /* @__PURE__ */ jsx108(
33576
+ return /* @__PURE__ */ jsx109(
33448
33577
  "svg",
33449
33578
  {
33450
33579
  xmlns: "http://www.w3.org/2000/svg",
@@ -33452,7 +33581,7 @@ var ICCheck = () => {
33452
33581
  height: "16",
33453
33582
  viewBox: "0 0 16 16",
33454
33583
  fill: "none",
33455
- children: /* @__PURE__ */ jsx108(
33584
+ children: /* @__PURE__ */ jsx109(
33456
33585
  "path",
33457
33586
  {
33458
33587
  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",
@@ -33466,7 +33595,7 @@ var ICCheck = () => {
33466
33595
  };
33467
33596
 
33468
33597
  // src/widgets/basic/date-option-field/date-option.tsx
33469
- import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33598
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33470
33599
  var DateOptionField = (props) => {
33471
33600
  const {
33472
33601
  name: name2,
@@ -33477,19 +33606,19 @@ var DateOptionField = (props) => {
33477
33606
  string,
33478
33607
  onChange: onChange2
33479
33608
  } = props;
33480
- return /* @__PURE__ */ jsx109(
33609
+ return /* @__PURE__ */ jsx110(
33481
33610
  Controller,
33482
33611
  {
33483
33612
  name: name2 ?? "",
33484
33613
  control: methods?.control,
33485
- render: ({ field }) => /* @__PURE__ */ jsxs74(
33614
+ render: ({ field }) => /* @__PURE__ */ jsxs75(
33486
33615
  "label",
33487
33616
  {
33488
33617
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33489
33618
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33490
33619
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33491
33620
  children: [
33492
- /* @__PURE__ */ jsx109(
33621
+ /* @__PURE__ */ jsx110(
33493
33622
  "input",
33494
33623
  {
33495
33624
  type: "checkbox",