@fctc/sme-widget-ui 1.9.1 → 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,32 +15904,57 @@ 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";
15913
+ import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
15862
15914
  var ImageItem = ({
15863
15915
  filename,
15864
15916
  checksum,
15865
15917
  index: index4,
15866
15918
  src = null,
15867
- useGetImage
15919
+ useGetImage,
15920
+ size: size4,
15921
+ id,
15922
+ envFile,
15923
+ accessToken
15868
15924
  }) => {
15869
15925
  const { data: image } = useGetImage({
15870
15926
  data: { filename, checksum },
15871
15927
  queryKey: [`get-image-${""}`],
15872
15928
  src
15873
15929
  });
15874
- 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(
15875
15931
  "img",
15876
15932
  {
15877
15933
  src: image || src,
15878
15934
  alt: filename,
15879
15935
  className: "w-32 h-32 object-cover rounded-md cursor-pointer"
15880
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
+ ]
15957
+ }
15881
15958
  ) }, index4);
15882
15959
  };
15883
15960
  var FileItem = (props) => {
@@ -15889,37 +15966,57 @@ var FileItem = (props) => {
15889
15966
  src,
15890
15967
  mimetype,
15891
15968
  size: size4,
15892
- useGetImage
15969
+ useGetImage,
15970
+ id,
15971
+ envFile,
15972
+ accessToken
15893
15973
  } = props;
15894
15974
  const fileTypeIcon = {
15895
- "application/pdf": /* @__PURE__ */ jsx68(PdfIcon, {}),
15896
- "application/zip": /* @__PURE__ */ jsx68(ZipIcon, {}),
15897
- "application/x-zip-compressed": /* @__PURE__ */ jsx68(ZipIcon, {}),
15898
- "application/vnd.ms-excel": /* @__PURE__ */ jsx68(ExcelIcon, {}),
15899
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx68(ExcelIcon, {})
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, {})
15900
15980
  };
15901
15981
  const renderFile = () => {
15902
15982
  if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
15903
- return /* @__PURE__ */ jsx68(ImageItem, { ...props });
15983
+ return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
15904
15984
  } else if (mimetype?.includes("video")) {
15905
- return /* @__PURE__ */ jsx68(VideoPlayer, { ...props });
15985
+ return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
15906
15986
  } else {
15907
- return /* @__PURE__ */ jsxs43("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
15908
- fileTypeIcon[mimetype],
15909
- /* @__PURE__ */ jsxs43("div", { children: [
15910
- /* @__PURE__ */ jsx68("p", { className: "text-[#0A0D14] font-medium", children: filename }),
15911
- /* @__PURE__ */ jsx68("span", { className: "text-[12px]", children: formatFileSize(size4) })
15912
- ] })
15913
- ] });
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
+ );
15914
16011
  }
15915
16012
  };
15916
- return /* @__PURE__ */ jsxs43(
16013
+ return /* @__PURE__ */ jsxs44(
15917
16014
  "div",
15918
16015
  {
15919
16016
  className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
15920
16017
  children: [
15921
16018
  renderFile(),
15922
- handleRemoveFile && /* @__PURE__ */ jsx68(
16019
+ handleRemoveFile && /* @__PURE__ */ jsx69(
15923
16020
  "div",
15924
16021
  {
15925
16022
  style: {
@@ -15930,10 +16027,10 @@ var FileItem = (props) => {
15930
16027
  },
15931
16028
  onClick: () => handleRemoveFile(index4),
15932
16029
  className: "cursor-pointer p-2 hidden group-hover:block",
15933
- children: /* @__PURE__ */ jsx68(DeleteIcon, {})
16030
+ children: /* @__PURE__ */ jsx69(DeleteIcon, {})
15934
16031
  }
15935
16032
  ),
15936
- !handleRemoveFile && /* @__PURE__ */ jsx68(
16033
+ !handleRemoveFile && /* @__PURE__ */ jsx69(
15937
16034
  "span",
15938
16035
  {
15939
16036
  style: {
@@ -15945,7 +16042,7 @@ var FileItem = (props) => {
15945
16042
  },
15946
16043
  onClick: (e3) => handleFileDownload(e3, src, filename),
15947
16044
  className: "hidden group-hover:block cursor-pointer p-2 text-white ",
15948
- children: /* @__PURE__ */ jsx68(DownloadIcon, {})
16045
+ children: /* @__PURE__ */ jsx69(DownloadIcon, {})
15949
16046
  }
15950
16047
  )
15951
16048
  ]
@@ -15953,9 +16050,14 @@ var FileItem = (props) => {
15953
16050
  index4
15954
16051
  );
15955
16052
  };
15956
- var downloadFile = async (url, filename) => {
16053
+ var downloadFile = async (url, filename, accessToken) => {
15957
16054
  try {
15958
- 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);
15959
16061
  if (response.ok) {
15960
16062
  const blob = await response.blob();
15961
16063
  const urlBlob = window.URL.createObjectURL(blob);
@@ -15976,7 +16078,9 @@ var downloadFile = async (url, filename) => {
15976
16078
  var RenderFiles = ({
15977
16079
  selectedFiles,
15978
16080
  setSelectedFiles,
15979
- useGetImage
16081
+ useGetImage,
16082
+ envFile,
16083
+ accessToken
15980
16084
  }) => {
15981
16085
  const handleRemoveFile = (index4) => {
15982
16086
  if (setSelectedFiles) {
@@ -15988,19 +16092,21 @@ var RenderFiles = ({
15988
16092
  e3.stopPropagation();
15989
16093
  downloadFile(url, name2);
15990
16094
  };
15991
- return /* @__PURE__ */ jsx68("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
15992
- return /* @__PURE__ */ jsx68("div", { className: "relative group/file", children: /* @__PURE__ */ jsx68(
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(
15993
16097
  FileItem,
15994
16098
  {
15995
16099
  ...file,
15996
16100
  src: file?.datas,
15997
- filename: file?.display_name ?? file?.name,
16101
+ filename: file?.display_name ?? file?.name ?? file?.filename,
16102
+ id: file?.id,
15998
16103
  index: index4,
15999
16104
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16000
16105
  handleFileDownload,
16001
- useGetImage
16002
- },
16003
- index4
16106
+ useGetImage,
16107
+ envFile,
16108
+ accessToken
16109
+ }
16004
16110
  ) }, file?.id ?? index4);
16005
16111
  }) });
16006
16112
  };
@@ -16191,7 +16297,7 @@ var po = $2(K("zoom"));
16191
16297
  var uo = $2(K("flip"));
16192
16298
 
16193
16299
  // src/widgets/common/select-files.tsx
16194
- 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";
16195
16301
  var ButtonSelectFiles = ({
16196
16302
  fileInputRef,
16197
16303
  selectedFiles,
@@ -16294,8 +16400,8 @@ var ButtonSelectFiles = ({
16294
16400
  await handleUpload(formData, serivce, xNode);
16295
16401
  }
16296
16402
  };
16297
- return /* @__PURE__ */ jsxs44(Fragment14, { children: [
16298
- isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
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(
16299
16405
  "button",
16300
16406
  {
16301
16407
  type: "button",
@@ -16303,12 +16409,12 @@ var ButtonSelectFiles = ({
16303
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"}`,
16304
16410
  onClick: () => fileInputRef.current.click(),
16305
16411
  children: [
16306
- /* @__PURE__ */ jsx69(AttachIcon, {}),
16307
- /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16412
+ /* @__PURE__ */ jsx70(AttachIcon, {}),
16413
+ /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16308
16414
  ]
16309
16415
  }
16310
16416
  ),
16311
- /* @__PURE__ */ jsx69(
16417
+ /* @__PURE__ */ jsx70(
16312
16418
  "input",
16313
16419
  {
16314
16420
  type: "file",
@@ -16323,7 +16429,7 @@ var ButtonSelectFiles = ({
16323
16429
  };
16324
16430
 
16325
16431
  // src/widgets/basic/avatar-field/avatar.tsx
16326
- 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";
16327
16433
  var AvatarField = (props) => {
16328
16434
  const {
16329
16435
  isForm = false,
@@ -16347,8 +16453,8 @@ var AvatarField = (props) => {
16347
16453
  color: textColor,
16348
16454
  fontSize: `${size4 / 2.5}px`
16349
16455
  };
16350
- return /* @__PURE__ */ jsxs45(Fragment15, { children: [
16351
- isForm && allowShowDetail && /* @__PURE__ */ jsx70(
16456
+ return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16457
+ isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16352
16458
  ModalDetail,
16353
16459
  {
16354
16460
  idToolTip: `avatar-widget-id-${id}`,
@@ -16359,7 +16465,7 @@ var AvatarField = (props) => {
16359
16465
  place: "top-start"
16360
16466
  }
16361
16467
  ),
16362
- allowShowDetail && /* @__PURE__ */ jsx70(
16468
+ allowShowDetail && /* @__PURE__ */ jsx71(
16363
16469
  M,
16364
16470
  {
16365
16471
  id: `avatar-widget-id-${id}`,
@@ -16368,7 +16474,7 @@ var AvatarField = (props) => {
16368
16474
  className: "z-20"
16369
16475
  }
16370
16476
  ),
16371
- avatarSrc ? /* @__PURE__ */ jsx70(
16477
+ avatarSrc ? /* @__PURE__ */ jsx71(
16372
16478
  "img",
16373
16479
  {
16374
16480
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16376,7 +16482,7 @@ var AvatarField = (props) => {
16376
16482
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16377
16483
  alt: "Avatar"
16378
16484
  }
16379
- ) : /* @__PURE__ */ jsx70("div", { children: /* @__PURE__ */ jsx70(
16485
+ ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16380
16486
  "div",
16381
16487
  {
16382
16488
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16389,7 +16495,7 @@ var AvatarField = (props) => {
16389
16495
  };
16390
16496
 
16391
16497
  // src/widgets/basic/binary-field/binary.tsx
16392
- import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16498
+ import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16393
16499
  var BinaryField = (props) => {
16394
16500
  const {
16395
16501
  name: name2,
@@ -16412,7 +16518,7 @@ var BinaryField = (props) => {
16412
16518
  image
16413
16519
  } = props;
16414
16520
  const { t: t3 } = useI18n();
16415
- return /* @__PURE__ */ jsx71(
16521
+ return /* @__PURE__ */ jsx72(
16416
16522
  Controller,
16417
16523
  {
16418
16524
  name: name2 ?? "",
@@ -16422,13 +16528,13 @@ var BinaryField = (props) => {
16422
16528
  },
16423
16529
  render: ({ field }) => {
16424
16530
  const renderImage = initialImage || selectedImage;
16425
- return /* @__PURE__ */ jsx71(
16531
+ return /* @__PURE__ */ jsx72(
16426
16532
  "div",
16427
16533
  {
16428
16534
  ref: binaryRef,
16429
16535
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16430
- children: renderImage ? /* @__PURE__ */ jsxs46("div", { className: "relative group", children: [
16431
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx71(
16536
+ children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
16537
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16432
16538
  "img",
16433
16539
  {
16434
16540
  style: {
@@ -16439,7 +16545,7 @@ var BinaryField = (props) => {
16439
16545
  alt: "Selected",
16440
16546
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16441
16547
  }
16442
- ) : renderImage ? /* @__PURE__ */ jsx71(
16548
+ ) : renderImage ? /* @__PURE__ */ jsx72(
16443
16549
  "img",
16444
16550
  {
16445
16551
  style: {
@@ -16450,17 +16556,17 @@ var BinaryField = (props) => {
16450
16556
  alt: "Selected",
16451
16557
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16452
16558
  }
16453
- ) : /* @__PURE__ */ jsx71(PlaceHolderIcon, {}),
16454
- !isInsideTable && !readonly && /* @__PURE__ */ jsx71(
16559
+ ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
16560
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16455
16561
  "button",
16456
16562
  {
16457
16563
  type: "button",
16458
16564
  onClick: () => handleRemoveImage(field.onChange),
16459
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",
16460
- children: /* @__PURE__ */ jsx71(DeleteIcon, {})
16566
+ children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16461
16567
  }
16462
16568
  )
16463
- ] }) : /* @__PURE__ */ jsxs46(
16569
+ ] }) : /* @__PURE__ */ jsxs47(
16464
16570
  "label",
16465
16571
  {
16466
16572
  htmlFor: inputId,
@@ -16470,7 +16576,7 @@ var BinaryField = (props) => {
16470
16576
  },
16471
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"}`,
16472
16578
  children: [
16473
- /* @__PURE__ */ jsx71(
16579
+ /* @__PURE__ */ jsx72(
16474
16580
  "input",
16475
16581
  {
16476
16582
  id: inputId,
@@ -16482,8 +16588,8 @@ var BinaryField = (props) => {
16482
16588
  className: "hidden z-10 relative"
16483
16589
  }
16484
16590
  ),
16485
- /* @__PURE__ */ jsx71("img", { src: image, alt: "", className: "z-0 relative" }),
16486
- /* @__PURE__ */ jsx71(
16591
+ /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
16592
+ /* @__PURE__ */ jsx72(
16487
16593
  "div",
16488
16594
  {
16489
16595
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -16492,7 +16598,7 @@ var BinaryField = (props) => {
16492
16598
  left: "-8px",
16493
16599
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16494
16600
  },
16495
- children: /* @__PURE__ */ jsx71(
16601
+ children: /* @__PURE__ */ jsx72(
16496
16602
  "svg",
16497
16603
  {
16498
16604
  xmlns: "http://www.w3.org/2000/svg",
@@ -16500,7 +16606,7 @@ var BinaryField = (props) => {
16500
16606
  height: "14",
16501
16607
  viewBox: "0 0 14 14",
16502
16608
  fill: "none",
16503
- children: /* @__PURE__ */ jsx71(
16609
+ children: /* @__PURE__ */ jsx72(
16504
16610
  "path",
16505
16611
  {
16506
16612
  "fill-rule": "evenodd",
@@ -16524,7 +16630,7 @@ var BinaryField = (props) => {
16524
16630
  };
16525
16631
 
16526
16632
  // src/widgets/basic/button-badge-field/button-badge.tsx
16527
- import { jsx as jsx72 } from "react/jsx-runtime";
16633
+ import { jsx as jsx73 } from "react/jsx-runtime";
16528
16634
  var typeStyles = {
16529
16635
  primary: {
16530
16636
  backgroundColor: "#3b82f6",
@@ -16599,11 +16705,11 @@ var ButtonBadgeField = (props) => {
16599
16705
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16600
16706
  };
16601
16707
  const label = getLabel(defaultValue ?? value);
16602
- return label ? /* @__PURE__ */ jsx72("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16708
+ return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16603
16709
  };
16604
16710
 
16605
16711
  // src/widgets/basic/button-field/button.tsx
16606
- 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";
16607
16713
  var ButtonField = (props) => {
16608
16714
  const {
16609
16715
  func,
@@ -16614,7 +16720,7 @@ var ButtonField = (props) => {
16614
16720
  type = "submit"
16615
16721
  } = props;
16616
16722
  const { t: t3 } = useI18n();
16617
- return /* @__PURE__ */ jsx73(Fragment16, { children: !loading ? /* @__PURE__ */ jsx73(
16723
+ return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
16618
16724
  "button",
16619
16725
  {
16620
16726
  type,
@@ -16623,7 +16729,7 @@ var ButtonField = (props) => {
16623
16729
  onClick: func,
16624
16730
  children: t3(content)
16625
16731
  }
16626
- ) : /* @__PURE__ */ jsxs47(
16732
+ ) : /* @__PURE__ */ jsxs48(
16627
16733
  "button",
16628
16734
  {
16629
16735
  type,
@@ -16632,7 +16738,7 @@ var ButtonField = (props) => {
16632
16738
  children: [
16633
16739
  t3("loading"),
16634
16740
  " ",
16635
- /* @__PURE__ */ jsx73(LoadingIcon, {})
16741
+ /* @__PURE__ */ jsx74(LoadingIcon, {})
16636
16742
  ]
16637
16743
  }
16638
16744
  ) });
@@ -16640,7 +16746,7 @@ var ButtonField = (props) => {
16640
16746
 
16641
16747
  // src/widgets/basic/char-field/char.tsx
16642
16748
  import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
16643
- 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";
16644
16750
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16645
16751
  var CharField = (props) => {
16646
16752
  const {
@@ -16668,9 +16774,9 @@ var CharField = (props) => {
16668
16774
  } = props;
16669
16775
  if (!isForm && !isEditTable) {
16670
16776
  const propValue = value || defaultValue;
16671
- 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 });
16672
16778
  }
16673
- return /* @__PURE__ */ jsx74(
16779
+ return /* @__PURE__ */ jsx75(
16674
16780
  Controller,
16675
16781
  {
16676
16782
  name: name2 ?? "",
@@ -16724,8 +16830,8 @@ var CharField = (props) => {
16724
16830
  }
16725
16831
  return "";
16726
16832
  }, [widget, formValues]);
16727
- return /* @__PURE__ */ jsxs48(Fragment17, { children: [
16728
- /* @__PURE__ */ jsx74(
16833
+ return /* @__PURE__ */ jsxs49(Fragment17, { children: [
16834
+ /* @__PURE__ */ jsx75(
16729
16835
  "input",
16730
16836
  {
16731
16837
  value: displayValue ?? "",
@@ -16786,7 +16892,7 @@ var CharField = (props) => {
16786
16892
  `
16787
16893
  }
16788
16894
  ),
16789
- 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 }) })
16790
16896
  ] });
16791
16897
  }
16792
16898
  }
@@ -16794,7 +16900,7 @@ var CharField = (props) => {
16794
16900
  };
16795
16901
 
16796
16902
  // src/widgets/basic/checkbox-field/checkbox.tsx
16797
- import { jsx as jsx75 } from "react/jsx-runtime";
16903
+ import { jsx as jsx76 } from "react/jsx-runtime";
16798
16904
  var CheckboxField = (props) => {
16799
16905
  const {
16800
16906
  name: name2,
@@ -16809,9 +16915,9 @@ var CheckboxField = (props) => {
16809
16915
  } = props;
16810
16916
  if (!isForm) {
16811
16917
  if (name2 === "is_active" || name2 === "active") {
16812
- return /* @__PURE__ */ jsx75(ActiveBadgeField, { type: value });
16918
+ return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
16813
16919
  } else {
16814
- return /* @__PURE__ */ jsx75(
16920
+ return /* @__PURE__ */ jsx76(
16815
16921
  "input",
16816
16922
  {
16817
16923
  type: "checkbox",
@@ -16822,12 +16928,12 @@ var CheckboxField = (props) => {
16822
16928
  );
16823
16929
  }
16824
16930
  }
16825
- return /* @__PURE__ */ jsx75(
16931
+ return /* @__PURE__ */ jsx76(
16826
16932
  Controller,
16827
16933
  {
16828
16934
  name: name2 ?? "",
16829
16935
  control: methods?.control,
16830
- render: ({ field }) => /* @__PURE__ */ jsx75(
16936
+ render: ({ field }) => /* @__PURE__ */ jsx76(
16831
16937
  "div",
16832
16938
  {
16833
16939
  className: "flex items-center gap-2",
@@ -16840,7 +16946,7 @@ var CheckboxField = (props) => {
16840
16946
  onChange2(name2 ?? "", checked);
16841
16947
  }
16842
16948
  },
16843
- children: /* @__PURE__ */ jsx75(
16949
+ children: /* @__PURE__ */ jsx76(
16844
16950
  "input",
16845
16951
  {
16846
16952
  ...field,
@@ -16868,7 +16974,7 @@ var CheckboxField = (props) => {
16868
16974
 
16869
16975
  // src/widgets/basic/color-field/color-wrapper.tsx
16870
16976
  import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
16871
- import { Fragment as Fragment18, jsx as jsx76, jsxs as jsxs49 } from "react/jsx-runtime";
16977
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
16872
16978
  var ColorWrapper = (props) => {
16873
16979
  const {
16874
16980
  colors: colors2,
@@ -16895,8 +17001,8 @@ var ColorWrapper = (props) => {
16895
17001
  document.removeEventListener("mousedown", handleClickOutside);
16896
17002
  };
16897
17003
  }, []);
16898
- return /* @__PURE__ */ jsx76("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx76("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs49("div", { children: [
16899
- /* @__PURE__ */ jsx76(
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(
16900
17006
  "button",
16901
17007
  {
16902
17008
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -16910,7 +17016,7 @@ var ColorWrapper = (props) => {
16910
17016
  }
16911
17017
  }
16912
17018
  ),
16913
- /* @__PURE__ */ jsx76(
17019
+ /* @__PURE__ */ jsx77(
16914
17020
  M,
16915
17021
  {
16916
17022
  className: "",
@@ -16919,8 +17025,8 @@ var ColorWrapper = (props) => {
16919
17025
  content: i18n_default.t(color?.name)
16920
17026
  }
16921
17027
  )
16922
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs49(Fragment18, { children: [
16923
- /* @__PURE__ */ jsx76(
17028
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17029
+ /* @__PURE__ */ jsx77(
16924
17030
  "button",
16925
17031
  {
16926
17032
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -16933,7 +17039,7 @@ var ColorWrapper = (props) => {
16933
17039
  style: { backgroundColor: selectedColor?.color }
16934
17040
  }
16935
17041
  ),
16936
- /* @__PURE__ */ jsx76(
17042
+ /* @__PURE__ */ jsx77(
16937
17043
  M,
16938
17044
  {
16939
17045
  place: "top",
@@ -16945,13 +17051,13 @@ var ColorWrapper = (props) => {
16945
17051
  };
16946
17052
 
16947
17053
  // src/widgets/basic/color-field/color.tsx
16948
- import { jsx as jsx77 } from "react/jsx-runtime";
17054
+ import { jsx as jsx78 } from "react/jsx-runtime";
16949
17055
  var ColorField = (props) => {
16950
17056
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
16951
17057
  if (!isForm) {
16952
- return /* @__PURE__ */ jsx77(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17058
+ return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
16953
17059
  }
16954
- return /* @__PURE__ */ jsx77(
17060
+ return /* @__PURE__ */ jsx78(
16955
17061
  Controller,
16956
17062
  {
16957
17063
  name: name2 ?? "",
@@ -16961,7 +17067,7 @@ var ColorField = (props) => {
16961
17067
  field.onChange(color?.id);
16962
17068
  onChange2 && onChange2(name2 ?? "", color?.id);
16963
17069
  };
16964
- return /* @__PURE__ */ jsx77(
17070
+ return /* @__PURE__ */ jsx78(
16965
17071
  ColorWrapper,
16966
17072
  {
16967
17073
  savePickColor: handlePickColorChange,
@@ -16976,7 +17082,7 @@ var ColorField = (props) => {
16976
17082
 
16977
17083
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
16978
17084
  import { useEffect as useEffect13 } from "react";
16979
- import { jsx as jsx78, jsxs as jsxs50 } from "react/jsx-runtime";
17085
+ import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
16980
17086
  var CopyLinkButtonField = (props) => {
16981
17087
  const {
16982
17088
  isForm,
@@ -16995,9 +17101,9 @@ var CopyLinkButtonField = (props) => {
16995
17101
  } = props;
16996
17102
  const { t: t3 } = useI18n();
16997
17103
  if (!isForm) {
16998
- 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 });
16999
17105
  }
17000
- return /* @__PURE__ */ jsx78(
17106
+ return /* @__PURE__ */ jsx79(
17001
17107
  Controller,
17002
17108
  {
17003
17109
  name: name2 ?? "",
@@ -17015,8 +17121,8 @@ var CopyLinkButtonField = (props) => {
17015
17121
  clearErrors(name2);
17016
17122
  }
17017
17123
  }, [value]);
17018
- return /* @__PURE__ */ jsxs50("div", { className: "relative", children: [
17019
- /* @__PURE__ */ jsxs50(
17124
+ return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17125
+ /* @__PURE__ */ jsxs51(
17020
17126
  "div",
17021
17127
  {
17022
17128
  "aria-disabled": readonly,
@@ -17025,7 +17131,7 @@ var CopyLinkButtonField = (props) => {
17025
17131
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17026
17132
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17027
17133
  children: [
17028
- /* @__PURE__ */ jsx78(
17134
+ /* @__PURE__ */ jsx79(
17029
17135
  "input",
17030
17136
  {
17031
17137
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17066,19 +17172,19 @@ var CopyLinkButtonField = (props) => {
17066
17172
  `
17067
17173
  }
17068
17174
  ),
17069
- readonly && value && /* @__PURE__ */ jsx78(
17175
+ readonly && value && /* @__PURE__ */ jsx79(
17070
17176
  "button",
17071
17177
  {
17072
17178
  className: "cursor-pointer",
17073
17179
  type: "button",
17074
17180
  onClick: () => handleCopyToClipboard(propValue),
17075
- children: isCopied ? /* @__PURE__ */ jsx78(CheckIcon, {}) : /* @__PURE__ */ jsx78(CopyIcon, {})
17181
+ children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17076
17182
  }
17077
17183
  )
17078
17184
  ]
17079
17185
  }
17080
17186
  ),
17081
- 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 })
17082
17188
  ] });
17083
17189
  }
17084
17190
  }
@@ -21019,7 +21125,7 @@ function useEffectEvent(callback) {
21019
21125
  }
21020
21126
 
21021
21127
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21022
- import { jsx as jsx79, jsxs as jsxs51, Fragment as Fragment19 } from "react/jsx-runtime";
21128
+ import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
21023
21129
  import * as ReactDOM2 from "react-dom";
21024
21130
 
21025
21131
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21417,7 +21523,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21417
21523
  bottom: isCustomShape ? "" : "rotate(180deg)",
21418
21524
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21419
21525
  }[side];
21420
- return /* @__PURE__ */ jsxs51("svg", {
21526
+ return /* @__PURE__ */ jsxs52("svg", {
21421
21527
  ...rest,
21422
21528
  "aria-hidden": true,
21423
21529
  ref,
@@ -21433,18 +21539,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21433
21539
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21434
21540
  ...restStyle
21435
21541
  },
21436
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx79("path", {
21542
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21437
21543
  clipPath: "url(#" + clipPathId + ")",
21438
21544
  fill: "none",
21439
21545
  stroke,
21440
21546
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21441
21547
  d: dValue
21442
- }), /* @__PURE__ */ jsx79("path", {
21548
+ }), /* @__PURE__ */ jsx80("path", {
21443
21549
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21444
21550
  d: dValue
21445
- }), /* @__PURE__ */ jsx79("clipPath", {
21551
+ }), /* @__PURE__ */ jsx80("clipPath", {
21446
21552
  id: clipPathId,
21447
- children: /* @__PURE__ */ jsx79("rect", {
21553
+ children: /* @__PURE__ */ jsx80("rect", {
21448
21554
  x: -halfStrokeWidth,
21449
21555
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21450
21556
  width: width + computedStrokeWidth,
@@ -27377,7 +27483,7 @@ var Emotion$1 = Emotion;
27377
27483
  import * as React12 from "react";
27378
27484
  var import_extends2 = __toESM(require_extends());
27379
27485
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27380
- var jsx80 = function jsx81(type, props) {
27486
+ var jsx81 = function jsx82(type, props) {
27381
27487
  var args = arguments;
27382
27488
  if (props == null || !hasOwn.call(props, "css")) {
27383
27489
  return React12.createElement.apply(void 0, args);
@@ -27395,7 +27501,7 @@ var jsx80 = function jsx81(type, props) {
27395
27501
  var JSX;
27396
27502
  /* @__PURE__ */ (function(_JSX) {
27397
27503
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27398
- })(jsx80 || (jsx80 = {}));
27504
+ })(jsx81 || (jsx81 = {}));
27399
27505
  function css() {
27400
27506
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27401
27507
  args[_key] = arguments[_key];
@@ -27803,7 +27909,7 @@ var MenuPlacer = function MenuPlacer2(props) {
27803
27909
  };
27804
27910
  var Menu = function Menu2(props) {
27805
27911
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
27806
- return jsx80("div", _extends({}, getStyleProps(props, "menu", {
27912
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
27807
27913
  menu: true
27808
27914
  }), {
27809
27915
  ref: innerRef
@@ -27825,7 +27931,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
27825
27931
  };
27826
27932
  var MenuList = function MenuList2(props) {
27827
27933
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
27828
- return jsx80("div", _extends({}, getStyleProps(props, "menuList", {
27934
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
27829
27935
  "menu-list": true,
27830
27936
  "menu-list--is-multi": isMulti
27831
27937
  }), {
@@ -27845,7 +27951,7 @@ var noOptionsMessageCSS = noticeCSS;
27845
27951
  var loadingMessageCSS = noticeCSS;
27846
27952
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27847
27953
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
27848
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27954
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27849
27955
  children,
27850
27956
  innerProps
27851
27957
  }), "noOptionsMessage", {
@@ -27855,7 +27961,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27855
27961
  };
27856
27962
  var LoadingMessage = function LoadingMessage2(_ref7) {
27857
27963
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
27858
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27964
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27859
27965
  children,
27860
27966
  innerProps
27861
27967
  }), "loadingMessage", {
@@ -27918,7 +28024,7 @@ var MenuPortal = function MenuPortal2(props) {
27918
28024
  runAutoUpdate();
27919
28025
  }, [runAutoUpdate]);
27920
28026
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
27921
- var menuWrapper = jsx80("div", _extends({
28027
+ var menuWrapper = jsx81("div", _extends({
27922
28028
  ref: setMenuPortalElement
27923
28029
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
27924
28030
  offset: computedPosition.offset,
@@ -27927,7 +28033,7 @@ var MenuPortal = function MenuPortal2(props) {
27927
28033
  }), "menuPortal", {
27928
28034
  "menu-portal": true
27929
28035
  }), innerProps), children);
27930
- return jsx80(PortalPlacementContext.Provider, {
28036
+ return jsx81(PortalPlacementContext.Provider, {
27931
28037
  value: portalPlacementContext
27932
28038
  }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
27933
28039
  };
@@ -27943,7 +28049,7 @@ var containerCSS = function containerCSS2(_ref3) {
27943
28049
  };
27944
28050
  var SelectContainer = function SelectContainer2(props) {
27945
28051
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
27946
- return jsx80("div", _extends({}, getStyleProps(props, "container", {
28052
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
27947
28053
  "--is-disabled": isDisabled,
27948
28054
  "--is-rtl": isRtl
27949
28055
  }), innerProps), children);
@@ -27964,7 +28070,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
27964
28070
  };
27965
28071
  var ValueContainer = function ValueContainer2(props) {
27966
28072
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
27967
- return jsx80("div", _extends({}, getStyleProps(props, "valueContainer", {
28073
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
27968
28074
  "value-container": true,
27969
28075
  "value-container--is-multi": isMulti,
27970
28076
  "value-container--has-value": hasValue
@@ -27980,7 +28086,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
27980
28086
  };
27981
28087
  var IndicatorsContainer = function IndicatorsContainer2(props) {
27982
28088
  var children = props.children, innerProps = props.innerProps;
27983
- return jsx80("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28089
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
27984
28090
  indicators: true
27985
28091
  }), innerProps), children);
27986
28092
  };
@@ -28001,7 +28107,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28001
28107
  };
28002
28108
  var Svg = function Svg2(_ref3) {
28003
28109
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28004
- return jsx80("svg", _extends({
28110
+ return jsx81("svg", _extends({
28005
28111
  height: size4,
28006
28112
  width: size4,
28007
28113
  viewBox: "0 0 20 20",
@@ -28011,16 +28117,16 @@ var Svg = function Svg2(_ref3) {
28011
28117
  }, props));
28012
28118
  };
28013
28119
  var CrossIcon = function CrossIcon2(props) {
28014
- return jsx80(Svg, _extends({
28120
+ return jsx81(Svg, _extends({
28015
28121
  size: 20
28016
- }, props), jsx80("path", {
28122
+ }, props), jsx81("path", {
28017
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"
28018
28124
  }));
28019
28125
  };
28020
28126
  var DownChevron = function DownChevron2(props) {
28021
- return jsx80(Svg, _extends({
28127
+ return jsx81(Svg, _extends({
28022
28128
  size: 20
28023
- }, props), jsx80("path", {
28129
+ }, props), jsx81("path", {
28024
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"
28025
28131
  }));
28026
28132
  };
@@ -28041,18 +28147,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28041
28147
  var dropdownIndicatorCSS = baseCSS;
28042
28148
  var DropdownIndicator = function DropdownIndicator2(props) {
28043
28149
  var children = props.children, innerProps = props.innerProps;
28044
- return jsx80("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28150
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28045
28151
  indicator: true,
28046
28152
  "dropdown-indicator": true
28047
- }), innerProps), children || jsx80(DownChevron, null));
28153
+ }), innerProps), children || jsx81(DownChevron, null));
28048
28154
  };
28049
28155
  var clearIndicatorCSS = baseCSS;
28050
28156
  var ClearIndicator = function ClearIndicator2(props) {
28051
28157
  var children = props.children, innerProps = props.innerProps;
28052
- return jsx80("div", _extends({}, getStyleProps(props, "clearIndicator", {
28158
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28053
28159
  indicator: true,
28054
28160
  "clear-indicator": true
28055
- }), innerProps), children || jsx80(CrossIcon, null));
28161
+ }), innerProps), children || jsx81(CrossIcon, null));
28056
28162
  };
28057
28163
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28058
28164
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28068,7 +28174,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28068
28174
  };
28069
28175
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28070
28176
  var innerProps = props.innerProps;
28071
- return jsx80("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28177
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28072
28178
  "indicator-separator": true
28073
28179
  })));
28074
28180
  };
@@ -28092,7 +28198,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28092
28198
  };
28093
28199
  var LoadingDot = function LoadingDot2(_ref6) {
28094
28200
  var delay = _ref6.delay, offset4 = _ref6.offset;
28095
- return jsx80("span", {
28201
+ return jsx81("span", {
28096
28202
  css: /* @__PURE__ */ css({
28097
28203
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28098
28204
  backgroundColor: "currentColor",
@@ -28107,20 +28213,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28107
28213
  };
28108
28214
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28109
28215
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28110
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28216
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28111
28217
  innerProps,
28112
28218
  isRtl,
28113
28219
  size: size4
28114
28220
  }), "loadingIndicator", {
28115
28221
  indicator: true,
28116
28222
  "loading-indicator": true
28117
- }), innerProps), jsx80(LoadingDot, {
28223
+ }), innerProps), jsx81(LoadingDot, {
28118
28224
  delay: 0,
28119
28225
  offset: isRtl
28120
- }), jsx80(LoadingDot, {
28226
+ }), jsx81(LoadingDot, {
28121
28227
  delay: 160,
28122
28228
  offset: true
28123
- }), jsx80(LoadingDot, {
28229
+ }), jsx81(LoadingDot, {
28124
28230
  delay: 320,
28125
28231
  offset: !isRtl
28126
28232
  }));
@@ -28152,7 +28258,7 @@ var css$1 = function css2(_ref3, unstyled) {
28152
28258
  };
28153
28259
  var Control = function Control2(props) {
28154
28260
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28155
- return jsx80("div", _extends({
28261
+ return jsx81("div", _extends({
28156
28262
  ref: innerRef
28157
28263
  }, getStyleProps(props, "control", {
28158
28264
  control: true,
@@ -28174,15 +28280,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28174
28280
  };
28175
28281
  var Group = function Group2(props) {
28176
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;
28177
- return jsx80("div", _extends({}, getStyleProps(props, "group", {
28283
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28178
28284
  group: true
28179
- }), innerProps), jsx80(Heading, _extends({}, headingProps, {
28285
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28180
28286
  selectProps,
28181
28287
  theme,
28182
28288
  getStyles,
28183
28289
  getClassNames,
28184
28290
  cx
28185
- }), label), jsx80("div", null, children));
28291
+ }), label), jsx81("div", null, children));
28186
28292
  };
28187
28293
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28188
28294
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28204,7 +28310,7 @@ var GroupHeading = function GroupHeading2(props) {
28204
28310
  var _cleanCommonProps = cleanCommonProps(props);
28205
28311
  _cleanCommonProps.data;
28206
28312
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28207
- return jsx80("div", _extends({}, getStyleProps(props, "groupHeading", {
28313
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28208
28314
  "group-heading": true
28209
28315
  }), innerProps));
28210
28316
  };
@@ -28256,11 +28362,11 @@ var inputStyle = function inputStyle2(isHidden) {
28256
28362
  var Input = function Input2(props) {
28257
28363
  var cx = props.cx, value = props.value;
28258
28364
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28259
- return jsx80("div", _extends({}, getStyleProps(props, "input", {
28365
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28260
28366
  "input-container": true
28261
28367
  }), {
28262
28368
  "data-value": value || ""
28263
- }), jsx80("input", _extends({
28369
+ }), jsx81("input", _extends({
28264
28370
  className: cx({
28265
28371
  input: true
28266
28372
  }, inputClassName),
@@ -28314,35 +28420,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28314
28420
  };
28315
28421
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28316
28422
  var children = _ref4.children, innerProps = _ref4.innerProps;
28317
- return jsx80("div", innerProps, children);
28423
+ return jsx81("div", innerProps, children);
28318
28424
  };
28319
28425
  var MultiValueContainer = MultiValueGeneric;
28320
28426
  var MultiValueLabel = MultiValueGeneric;
28321
28427
  function MultiValueRemove(_ref5) {
28322
28428
  var children = _ref5.children, innerProps = _ref5.innerProps;
28323
- return jsx80("div", _extends({
28429
+ return jsx81("div", _extends({
28324
28430
  role: "button"
28325
- }, innerProps), children || jsx80(CrossIcon, {
28431
+ }, innerProps), children || jsx81(CrossIcon, {
28326
28432
  size: 14
28327
28433
  }));
28328
28434
  }
28329
28435
  var MultiValue = function MultiValue2(props) {
28330
28436
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28331
28437
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28332
- return jsx80(Container, {
28438
+ return jsx81(Container, {
28333
28439
  data,
28334
28440
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28335
28441
  "multi-value": true,
28336
28442
  "multi-value--is-disabled": isDisabled
28337
28443
  })), innerProps),
28338
28444
  selectProps
28339
- }, jsx80(Label, {
28445
+ }, jsx81(Label, {
28340
28446
  data,
28341
28447
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28342
28448
  "multi-value__label": true
28343
28449
  })),
28344
28450
  selectProps
28345
- }, children), jsx80(Remove, {
28451
+ }, children), jsx81(Remove, {
28346
28452
  data,
28347
28453
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28348
28454
  "multi-value__remove": true
@@ -28375,7 +28481,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28375
28481
  };
28376
28482
  var Option = function Option2(props) {
28377
28483
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28378
- return jsx80("div", _extends({}, getStyleProps(props, "option", {
28484
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
28379
28485
  option: true,
28380
28486
  "option--is-disabled": isDisabled,
28381
28487
  "option--is-focused": isFocused,
@@ -28399,7 +28505,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28399
28505
  };
28400
28506
  var Placeholder = function Placeholder2(props) {
28401
28507
  var children = props.children, innerProps = props.innerProps;
28402
- return jsx80("div", _extends({}, getStyleProps(props, "placeholder", {
28508
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28403
28509
  placeholder: true
28404
28510
  }), innerProps), children);
28405
28511
  };
@@ -28421,7 +28527,7 @@ var css3 = function css4(_ref3, unstyled) {
28421
28527
  };
28422
28528
  var SingleValue = function SingleValue2(props) {
28423
28529
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28424
- return jsx80("div", _extends({}, getStyleProps(props, "singleValue", {
28530
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28425
28531
  "single-value": true,
28426
28532
  "single-value--is-disabled": isDisabled
28427
28533
  }), innerProps), children);
@@ -28523,7 +28629,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28523
28629
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28524
28630
  };
28525
28631
  var A11yText = function A11yText2(props) {
28526
- return jsx80("span", _extends({
28632
+ return jsx81("span", _extends({
28527
28633
  css: _ref
28528
28634
  }, props));
28529
28635
  };
@@ -28658,18 +28764,18 @@ var LiveRegion = function LiveRegion2(props) {
28658
28764
  }
28659
28765
  return guidanceMsg;
28660
28766
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28661
- var ScreenReaderText = jsx80(Fragment22, null, jsx80("span", {
28767
+ var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
28662
28768
  id: "aria-selection"
28663
- }, ariaSelected), jsx80("span", {
28769
+ }, ariaSelected), jsx81("span", {
28664
28770
  id: "aria-focused"
28665
- }, ariaFocused), jsx80("span", {
28771
+ }, ariaFocused), jsx81("span", {
28666
28772
  id: "aria-results"
28667
- }, ariaResults), jsx80("span", {
28773
+ }, ariaResults), jsx81("span", {
28668
28774
  id: "aria-guidance"
28669
28775
  }, ariaGuidance));
28670
- return jsx80(Fragment22, null, jsx80(A11yText$1, {
28776
+ return jsx81(Fragment22, null, jsx81(A11yText$1, {
28671
28777
  id
28672
- }, isInitialFocus && ScreenReaderText), jsx80(A11yText$1, {
28778
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
28673
28779
  "aria-live": ariaLive,
28674
28780
  "aria-atomic": "false",
28675
28781
  "aria-relevant": "additions text",
@@ -28982,7 +29088,7 @@ var _excluded4 = ["innerRef"];
28982
29088
  function DummyInput(_ref3) {
28983
29089
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
28984
29090
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
28985
- return jsx80("input", _extends({
29091
+ return jsx81("input", _extends({
28986
29092
  ref: innerRef
28987
29093
  }, filteredProps, {
28988
29094
  css: /* @__PURE__ */ css({
@@ -29224,7 +29330,7 @@ function ScrollManager(_ref3) {
29224
29330
  setScrollCaptureTarget(element);
29225
29331
  setScrollLockTarget(element);
29226
29332
  };
29227
- return jsx80(Fragment22, null, lockEnabled && jsx80("div", {
29333
+ return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29228
29334
  onClick: blurSelectInput,
29229
29335
  css: _ref2$1
29230
29336
  }), children(targetRef));
@@ -29243,7 +29349,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29243
29349
  };
29244
29350
  var RequiredInput = function RequiredInput2(_ref3) {
29245
29351
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29246
- return jsx80("input", {
29352
+ return jsx81("input", {
29247
29353
  required: true,
29248
29354
  name: name2,
29249
29355
  tabIndex: -1,
@@ -30833,7 +30939,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30833
30939
 
30834
30940
  // src/widgets/basic/date-field/date.tsx
30835
30941
  var import_moment2 = __toESM(require_moment());
30836
- 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";
30837
30943
  var DateField = (props) => {
30838
30944
  const {
30839
30945
  name: name2,
@@ -30861,8 +30967,8 @@ var DateField = (props) => {
30861
30967
  } = props;
30862
30968
  const { t: t3 } = useI18n();
30863
30969
  const InputDateCustom = forwardRef6(
30864
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs52("label", { className: `flex ${className}`, children: [
30865
- /* @__PURE__ */ jsx82(
30970
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
30971
+ /* @__PURE__ */ jsx83(
30866
30972
  "input",
30867
30973
  {
30868
30974
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -30876,13 +30982,13 @@ var DateField = (props) => {
30876
30982
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
30877
30983
  }
30878
30984
  ),
30879
- isForm2 && /* @__PURE__ */ jsx82(CalendarIcon, {})
30985
+ isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
30880
30986
  ] })
30881
30987
  );
30882
30988
  if (!isForm && !isEditTable) {
30883
- return /* @__PURE__ */ jsx82("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30989
+ return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30884
30990
  } else {
30885
- return /* @__PURE__ */ jsx82(
30991
+ return /* @__PURE__ */ jsx83(
30886
30992
  Controller,
30887
30993
  {
30888
30994
  name: name2 || "",
@@ -30904,8 +31010,8 @@ var DateField = (props) => {
30904
31010
  }
30905
31011
  }, [value, clearErrors, name2]);
30906
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;
30907
- return /* @__PURE__ */ jsxs52(Fragment23, { children: [
30908
- /* @__PURE__ */ jsx82(
31013
+ return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31014
+ /* @__PURE__ */ jsx83(
30909
31015
  DatePicker,
30910
31016
  {
30911
31017
  selected: selectedDate,
@@ -30953,7 +31059,7 @@ var DateField = (props) => {
30953
31059
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
30954
31060
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
30955
31061
  showTimeInput: showTime,
30956
- customInput: /* @__PURE__ */ jsx82(
31062
+ customInput: /* @__PURE__ */ jsx83(
30957
31063
  InputDateCustom,
30958
31064
  {
30959
31065
  isForm,
@@ -30971,7 +31077,7 @@ var DateField = (props) => {
30971
31077
  increaseMonth,
30972
31078
  prevMonthButtonDisabled,
30973
31079
  nextMonthButtonDisabled
30974
- }) => /* @__PURE__ */ jsxs52(
31080
+ }) => /* @__PURE__ */ jsxs53(
30975
31081
  "div",
30976
31082
  {
30977
31083
  style: {
@@ -30980,7 +31086,7 @@ var DateField = (props) => {
30980
31086
  justifyContent: "center"
30981
31087
  },
30982
31088
  children: [
30983
- /* @__PURE__ */ jsx82(
31089
+ /* @__PURE__ */ jsx83(
30984
31090
  "button",
30985
31091
  {
30986
31092
  onClick: decreaseMonth,
@@ -30988,7 +31094,7 @@ var DateField = (props) => {
30988
31094
  children: "<"
30989
31095
  }
30990
31096
  ),
30991
- /* @__PURE__ */ jsx82(
31097
+ /* @__PURE__ */ jsx83(
30992
31098
  StateManagedSelect$1,
30993
31099
  {
30994
31100
  classNames: {
@@ -31014,7 +31120,7 @@ var DateField = (props) => {
31014
31120
  autoFocus: true
31015
31121
  }
31016
31122
  ),
31017
- /* @__PURE__ */ jsx82(
31123
+ /* @__PURE__ */ jsx83(
31018
31124
  StateManagedSelect$1,
31019
31125
  {
31020
31126
  classNames: {
@@ -31042,7 +31148,7 @@ var DateField = (props) => {
31042
31148
  }))
31043
31149
  }
31044
31150
  ),
31045
- /* @__PURE__ */ jsx82(
31151
+ /* @__PURE__ */ jsx83(
31046
31152
  "button",
31047
31153
  {
31048
31154
  onClick: increaseMonth,
@@ -31055,7 +31161,7 @@ var DateField = (props) => {
31055
31161
  )
31056
31162
  }
31057
31163
  ),
31058
- !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 })
31059
31165
  ] });
31060
31166
  }
31061
31167
  }
@@ -31064,26 +31170,26 @@ var DateField = (props) => {
31064
31170
  };
31065
31171
 
31066
31172
  // src/widgets/basic/download-binary-field/download-binary.tsx
31067
- import { jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31173
+ import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31068
31174
  var DownLoadBinaryField = (props) => {
31069
31175
  const { handleFileDownload } = props;
31070
31176
  const { t: t3 } = useI18n();
31071
- return /* @__PURE__ */ jsxs53(
31177
+ return /* @__PURE__ */ jsxs54(
31072
31178
  "button",
31073
31179
  {
31074
31180
  type: "button",
31075
31181
  onClick: handleFileDownload,
31076
31182
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31077
31183
  children: [
31078
- /* @__PURE__ */ jsx83(DownloadIcon, {}),
31079
- /* @__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") })
31080
31186
  ]
31081
31187
  }
31082
31188
  );
31083
31189
  };
31084
31190
 
31085
31191
  // src/widgets/basic/download-file-field/download-file.tsx
31086
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31192
+ import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31087
31193
  var DownloadFileField = (props) => {
31088
31194
  const {
31089
31195
  readonly,
@@ -31095,15 +31201,15 @@ var DownloadFileField = (props) => {
31095
31201
  handleFileChange,
31096
31202
  handleFileDownload
31097
31203
  } = props;
31098
- return /* @__PURE__ */ jsxs54("div", { className: "", children: [
31099
- /* @__PURE__ */ jsxs54(
31204
+ return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31205
+ /* @__PURE__ */ jsxs55(
31100
31206
  "label",
31101
31207
  {
31102
31208
  htmlFor: inputId,
31103
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",
31104
31210
  children: [
31105
- file ? /* @__PURE__ */ jsx84("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx84("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx84("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31106
- /* @__PURE__ */ jsx84(
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(
31107
31213
  "input",
31108
31214
  {
31109
31215
  id: inputId,
@@ -31117,7 +31223,7 @@ var DownloadFileField = (props) => {
31117
31223
  ]
31118
31224
  }
31119
31225
  ),
31120
- file && /* @__PURE__ */ jsx84(
31226
+ file && /* @__PURE__ */ jsx85(
31121
31227
  "button",
31122
31228
  {
31123
31229
  onClick: handleFileDownload,
@@ -31131,7 +31237,7 @@ var DownloadFileField = (props) => {
31131
31237
 
31132
31238
  // src/widgets/basic/dropdown-field/dropdown.tsx
31133
31239
  import { useState as useState16 } from "react";
31134
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31240
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31135
31241
  var DropdownField = (props) => {
31136
31242
  const {
31137
31243
  options: options2,
@@ -31145,30 +31251,30 @@ var DropdownField = (props) => {
31145
31251
  } = props;
31146
31252
  const [open, setOpen] = useState16(false);
31147
31253
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31148
- return /* @__PURE__ */ jsxs55(
31254
+ return /* @__PURE__ */ jsxs56(
31149
31255
  "div",
31150
31256
  {
31151
31257
  ref: dropdownRef,
31152
31258
  className: `relative ${className}`,
31153
31259
  onClick: () => setOpen(!open),
31154
31260
  children: [
31155
- /* @__PURE__ */ jsxs55(
31261
+ /* @__PURE__ */ jsxs56(
31156
31262
  "div",
31157
31263
  {
31158
31264
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31159
31265
  children: [
31160
31266
  selectedValue?.icon,
31161
- /* @__PURE__ */ jsx85("span", { children: selectedValue?.label }),
31162
- /* @__PURE__ */ jsx85(ChevronBottomIcon, { className: "h-4 w-4" })
31267
+ /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31268
+ /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31163
31269
  ]
31164
31270
  }
31165
31271
  ),
31166
- open && /* @__PURE__ */ jsx85(
31272
+ open && /* @__PURE__ */ jsx86(
31167
31273
  "div",
31168
31274
  {
31169
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}`,
31170
31276
  onClick: (e3) => e3.stopPropagation(),
31171
- children: options2.map((option, index4) => /* @__PURE__ */ jsx85(
31277
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31172
31278
  "div",
31173
31279
  {
31174
31280
  onClick: () => {
@@ -31188,7 +31294,7 @@ var DropdownField = (props) => {
31188
31294
  };
31189
31295
 
31190
31296
  // src/widgets/basic/fee-field/fee.tsx
31191
- 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";
31192
31298
  var FeeField = (props) => {
31193
31299
  const { value, formValues } = props;
31194
31300
  const { t: t3 } = useI18n();
@@ -31199,27 +31305,27 @@ var FeeField = (props) => {
31199
31305
  )
31200
31306
  ) + " VND";
31201
31307
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31202
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31308
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31203
31309
  value?.subtotals?.map((sub) => {
31204
31310
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31205
- return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31206
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31207
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
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: [
31208
31314
  sub?.name,
31209
31315
  ":"
31210
31316
  ] }),
31211
- /* @__PURE__ */ jsx86("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
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" })
31212
31318
  ] }),
31213
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs56(
31319
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31214
31320
  "div",
31215
31321
  {
31216
31322
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31217
31323
  children: [
31218
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
31324
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31219
31325
  group?.group_name,
31220
31326
  ":"
31221
31327
  ] }),
31222
- /* @__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" })
31223
31329
  ]
31224
31330
  },
31225
31331
  `tax_groups_${group?.id}`
@@ -31227,33 +31333,33 @@ var FeeField = (props) => {
31227
31333
  ] });
31228
31334
  }
31229
31335
  }),
31230
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31231
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
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: [
31232
31338
  t3("total"),
31233
31339
  ":"
31234
31340
  ] }),
31235
- /* @__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 })
31236
31342
  ] }),
31237
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31238
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
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: [
31239
31345
  t3("paid_amount"),
31240
31346
  ":"
31241
31347
  ] }),
31242
- /* @__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 })
31243
31349
  ] }),
31244
- /* @__PURE__ */ jsxs56("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31245
- /* @__PURE__ */ jsxs56("div", { className: "text-[14px] leading-[21px] text-right", children: [
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: [
31246
31352
  t3("remanining_amount"),
31247
31353
  ":"
31248
31354
  ] }),
31249
- /* @__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 })
31250
31356
  ] })
31251
31357
  ] });
31252
31358
  };
31253
31359
 
31254
31360
  // src/widgets/basic/file-upload-field/file-upload.tsx
31255
31361
  import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31256
- import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31362
+ import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31257
31363
  var RenderFile = ({
31258
31364
  file,
31259
31365
  onDelete,
@@ -31263,16 +31369,16 @@ var RenderFile = ({
31263
31369
  readAs: "all"
31264
31370
  });
31265
31371
  const fileTypeIcon = {
31266
- "application/pdf": /* @__PURE__ */ jsx87(PdfIcon, {}),
31267
- "application/zip": /* @__PURE__ */ jsx87(ZipIcon, {}),
31268
- "application/x-zip-compressed": /* @__PURE__ */ jsx87(ZipIcon, {}),
31269
- "application/vnd.ms-excel": /* @__PURE__ */ jsx87(ExcelIcon, {}),
31270
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx87(ExcelIcon, {})
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, {})
31271
31377
  };
31272
- return /* @__PURE__ */ jsxs57("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31273
- /* @__PURE__ */ jsx87("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31274
- /* @__PURE__ */ jsxs57("div", { children: [
31275
- /* @__PURE__ */ jsx87(
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(
31276
31382
  "div",
31277
31383
  {
31278
31384
  style: {
@@ -31282,20 +31388,20 @@ var RenderFile = ({
31282
31388
  children: file?.name || file?.display_name || info?.name
31283
31389
  }
31284
31390
  ),
31285
- /* @__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) })
31286
31392
  ] }),
31287
- /* @__PURE__ */ jsxs57("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
31288
- /* @__PURE__ */ jsx87(
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(
31289
31395
  "span",
31290
31396
  {
31291
31397
  onClick: () => onDownload && onDownload(
31292
31398
  file?.data,
31293
31399
  file?.name || file?.display_name || info?.name
31294
31400
  ),
31295
- children: /* @__PURE__ */ jsx87(DownloadIcon, {})
31401
+ children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31296
31402
  }
31297
31403
  ),
31298
- /* @__PURE__ */ jsx87("span", { onClick: onDelete, children: /* @__PURE__ */ jsx87(DeleteIconDanger, {}) })
31404
+ /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31299
31405
  ] })
31300
31406
  ] });
31301
31407
  };
@@ -31329,7 +31435,7 @@ var FileUploadField = (props) => {
31329
31435
  ]);
31330
31436
  }
31331
31437
  }, [value]);
31332
- return /* @__PURE__ */ jsx87(
31438
+ return /* @__PURE__ */ jsx88(
31333
31439
  Controller,
31334
31440
  {
31335
31441
  name: name2 || "",
@@ -31354,8 +31460,8 @@ var FileUploadField = (props) => {
31354
31460
  );
31355
31461
  }
31356
31462
  }, [selectedFiles]);
31357
- return /* @__PURE__ */ jsxs57("div", { className: "file-upload-field", children: [
31358
- 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(
31359
31465
  RenderFile,
31360
31466
  {
31361
31467
  file: fileItem,
@@ -31370,8 +31476,8 @@ var FileUploadField = (props) => {
31370
31476
  }
31371
31477
  }
31372
31478
  )),
31373
- uploadError && /* @__PURE__ */ jsx87("div", { className: "text-[#de4747]", children: uploadError }),
31374
- (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(
31375
31481
  ButtonSelectFiles,
31376
31482
  {
31377
31483
  fileInputRef,
@@ -31386,7 +31492,7 @@ var FileUploadField = (props) => {
31386
31492
  useUploadFile
31387
31493
  }
31388
31494
  ),
31389
- 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 })
31390
31496
  ] });
31391
31497
  }
31392
31498
  }
@@ -31395,7 +31501,7 @@ var FileUploadField = (props) => {
31395
31501
 
31396
31502
  // src/widgets/basic/float-field/float.tsx
31397
31503
  import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31398
- import { Fragment as Fragment25, jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31504
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31399
31505
  var FloatField = (props) => {
31400
31506
  const {
31401
31507
  name: name2,
@@ -31413,9 +31519,9 @@ var FloatField = (props) => {
31413
31519
  } = props;
31414
31520
  const { t: t3 } = useI18n();
31415
31521
  if (!isForm && !isEditTable) {
31416
- return /* @__PURE__ */ jsx88("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31522
+ return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31417
31523
  }
31418
- return /* @__PURE__ */ jsx88(
31524
+ return /* @__PURE__ */ jsx89(
31419
31525
  Controller,
31420
31526
  {
31421
31527
  name: name2 ?? "",
@@ -31520,8 +31626,8 @@ var FloatField = (props) => {
31520
31626
  }
31521
31627
  isDirtyRef.current = false;
31522
31628
  };
31523
- return /* @__PURE__ */ jsxs58(Fragment25, { children: [
31524
- /* @__PURE__ */ jsx88(
31629
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31630
+ /* @__PURE__ */ jsx89(
31525
31631
  "input",
31526
31632
  {
31527
31633
  ref: inputRef,
@@ -31541,7 +31647,7 @@ var FloatField = (props) => {
31541
31647
  `
31542
31648
  }
31543
31649
  ),
31544
- 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 })
31545
31651
  ] });
31546
31652
  }
31547
31653
  }
@@ -31550,7 +31656,7 @@ var FloatField = (props) => {
31550
31656
 
31551
31657
  // src/widgets/basic/float-time-field/float-time.tsx
31552
31658
  import { useState as useState19 } from "react";
31553
- 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";
31554
31660
  var FloatTimeField = (props) => {
31555
31661
  const {
31556
31662
  name: name2,
@@ -31566,9 +31672,9 @@ var FloatTimeField = (props) => {
31566
31672
  const { t: t3 } = useI18n();
31567
31673
  if (!isForm) {
31568
31674
  const formatValue = value ?? 0;
31569
- return /* @__PURE__ */ jsx89("span", { children: convertFloatToTime(formatValue) });
31675
+ return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
31570
31676
  }
31571
- return /* @__PURE__ */ jsx89(
31677
+ return /* @__PURE__ */ jsx90(
31572
31678
  Controller,
31573
31679
  {
31574
31680
  name: name2 ?? "",
@@ -31630,8 +31736,8 @@ var FloatTimeField = (props) => {
31630
31736
  }
31631
31737
  onBlur();
31632
31738
  };
31633
- return /* @__PURE__ */ jsxs59(Fragment26, { children: [
31634
- /* @__PURE__ */ jsx89(
31739
+ return /* @__PURE__ */ jsxs60(Fragment26, { children: [
31740
+ /* @__PURE__ */ jsx90(
31635
31741
  "input",
31636
31742
  {
31637
31743
  type: "text",
@@ -31663,7 +31769,7 @@ var FloatTimeField = (props) => {
31663
31769
  readOnly: readonly
31664
31770
  }
31665
31771
  ),
31666
- (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 })
31667
31773
  ] });
31668
31774
  }
31669
31775
  }
@@ -31672,7 +31778,7 @@ var FloatTimeField = (props) => {
31672
31778
 
31673
31779
  // src/widgets/basic/html-field/html.tsx
31674
31780
  import { useEffect as useEffect20, useRef as useRef17 } from "react";
31675
- import { jsx as jsx90 } from "react/jsx-runtime";
31781
+ import { jsx as jsx91 } from "react/jsx-runtime";
31676
31782
  var HtmlField = (props) => {
31677
31783
  const {
31678
31784
  name: name2,
@@ -31686,9 +31792,9 @@ var HtmlField = (props) => {
31686
31792
  } = props;
31687
31793
  const divRef = useRef17(null);
31688
31794
  if (!isForm && !isEditTable) {
31689
- return /* @__PURE__ */ jsx90("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31795
+ return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31690
31796
  }
31691
- return /* @__PURE__ */ jsx90(
31797
+ return /* @__PURE__ */ jsx91(
31692
31798
  Controller,
31693
31799
  {
31694
31800
  name: name2 ?? "",
@@ -31707,7 +31813,7 @@ var HtmlField = (props) => {
31707
31813
  onChange2(newValue, "");
31708
31814
  }
31709
31815
  };
31710
- return /* @__PURE__ */ jsx90(
31816
+ return /* @__PURE__ */ jsx91(
31711
31817
  "div",
31712
31818
  {
31713
31819
  ref: divRef,
@@ -31726,28 +31832,28 @@ var HtmlField = (props) => {
31726
31832
  };
31727
31833
 
31728
31834
  // src/widgets/basic/image-field/image.tsx
31729
- import { jsx as jsx91 } from "react/jsx-runtime";
31835
+ import { jsx as jsx92 } from "react/jsx-runtime";
31730
31836
  var ImageField = (props) => {
31731
31837
  const { value, type, name: name2, baseURL } = props;
31732
31838
  if (!value) return null;
31733
31839
  if (type === "url") {
31734
- 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 });
31735
31841
  }
31736
- 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" }) });
31737
31843
  };
31738
31844
 
31739
31845
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31740
31846
  import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
31741
31847
 
31742
31848
  // src/widgets/basic/information-field/information.tsx
31743
- 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";
31744
31850
  var InfomationField = (props) => {
31745
31851
  const { value, isForm = false, showName = true, stringToColor } = props;
31746
31852
  if (!value || Array.isArray(value) && value.length === 0) {
31747
- return /* @__PURE__ */ jsx92(Fragment27, {});
31853
+ return /* @__PURE__ */ jsx93(Fragment27, {});
31748
31854
  }
31749
31855
  const inforValues = Array.isArray(value) ? value : [value];
31750
- return /* @__PURE__ */ jsx92("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx92(
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(
31751
31857
  AvatarField,
31752
31858
  {
31753
31859
  id: item.id,
@@ -31756,8 +31862,8 @@ var InfomationField = (props) => {
31756
31862
  stringToColor
31757
31863
  },
31758
31864
  item.id
31759
- )) : /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center w-max", children: [
31760
- /* @__PURE__ */ jsx92(
31865
+ )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
31866
+ /* @__PURE__ */ jsx93(
31761
31867
  AvatarField,
31762
31868
  {
31763
31869
  avatarSrc: inforValues[0].image_256,
@@ -31767,12 +31873,12 @@ var InfomationField = (props) => {
31767
31873
  stringToColor
31768
31874
  }
31769
31875
  ),
31770
- showName && /* @__PURE__ */ jsx92("span", { className: "capitalize", children: inforValues[0].display_name })
31876
+ showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
31771
31877
  ] }) });
31772
31878
  };
31773
31879
 
31774
31880
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31775
- import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31881
+ import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31776
31882
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31777
31883
  const { selectProps, data, menuList } = props;
31778
31884
  const { relation } = selectProps;
@@ -31781,8 +31887,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31781
31887
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31782
31888
  )
31783
31889
  )?.[0]?.action?.id;
31784
- return /* @__PURE__ */ jsxs61("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31785
- /* @__PURE__ */ jsx93(
31890
+ return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31891
+ /* @__PURE__ */ jsx94(
31786
31892
  AvatarField,
31787
31893
  {
31788
31894
  id: data?.id,
@@ -31794,8 +31900,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31794
31900
  stringToColor
31795
31901
  }
31796
31902
  ),
31797
- /* @__PURE__ */ jsx93("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31798
- /* @__PURE__ */ jsx93(
31903
+ /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31904
+ /* @__PURE__ */ jsx94(
31799
31905
  "span",
31800
31906
  {
31801
31907
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -31803,7 +31909,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31803
31909
  e3.stopPropagation();
31804
31910
  props.removeProps.onClick();
31805
31911
  },
31806
- children: /* @__PURE__ */ jsx93(CloseIcon, {})
31912
+ children: /* @__PURE__ */ jsx94(CloseIcon, {})
31807
31913
  }
31808
31914
  )
31809
31915
  ] });
@@ -31813,9 +31919,9 @@ var CustomMenuList = (props) => {
31813
31919
  const { setIsShowModalMany2Many, searchable } = selectProps;
31814
31920
  const { t: t3 } = useI18n();
31815
31921
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
31816
- return /* @__PURE__ */ jsxs61(components.MenuList, { ...props, className: "z-[99]", children: [
31922
+ return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
31817
31923
  limitedChildren,
31818
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs61(
31924
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
31819
31925
  "button",
31820
31926
  {
31821
31927
  type: "button",
@@ -31860,7 +31966,7 @@ var Many2ManyTagField = (props) => {
31860
31966
  value: item.id,
31861
31967
  label: item.name ?? item.display_name
31862
31968
  })) : [];
31863
- return /* @__PURE__ */ jsx93(
31969
+ return /* @__PURE__ */ jsx94(
31864
31970
  InfomationField,
31865
31971
  {
31866
31972
  value: optionValue || null,
@@ -31869,7 +31975,7 @@ var Many2ManyTagField = (props) => {
31869
31975
  }
31870
31976
  );
31871
31977
  }
31872
- return /* @__PURE__ */ jsx93(
31978
+ return /* @__PURE__ */ jsx94(
31873
31979
  Controller,
31874
31980
  {
31875
31981
  name: name2 ?? "",
@@ -31905,8 +32011,8 @@ var Many2ManyTagField = (props) => {
31905
32011
  onChange2?.(name2 ?? "", newValue);
31906
32012
  clearErrors(name2);
31907
32013
  };
31908
- return /* @__PURE__ */ jsxs61("div", { className: "group h-full overflow-y-auto", children: [
31909
- /* @__PURE__ */ jsx93(
32014
+ return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32015
+ /* @__PURE__ */ jsx94(
31910
32016
  StateManagedSelect$1,
31911
32017
  {
31912
32018
  options: options2,
@@ -31984,7 +32090,7 @@ var Many2ManyTagField = (props) => {
31984
32090
  })
31985
32091
  },
31986
32092
  components: isUser ? {
31987
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx93(
32093
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
31988
32094
  CustomMultiValue,
31989
32095
  {
31990
32096
  ...multiValueProps,
@@ -31993,7 +32099,7 @@ var Many2ManyTagField = (props) => {
31993
32099
  ),
31994
32100
  IndicatorSeparator: () => null
31995
32101
  } : {
31996
- MenuList: (menuListProps) => /* @__PURE__ */ jsx93(
32102
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
31997
32103
  CustomMenuList,
31998
32104
  {
31999
32105
  ...menuListProps,
@@ -32004,13 +32110,13 @@ var Many2ManyTagField = (props) => {
32004
32110
  }
32005
32111
  ),
32006
32112
  IndicatorSeparator: () => null,
32007
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx93(components.DropdownIndicator, { ...props2 }),
32008
- 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 })
32009
32115
  },
32010
32116
  required: !invisible && required
32011
32117
  }
32012
32118
  ),
32013
- !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 })
32014
32120
  ] });
32015
32121
  }
32016
32122
  }
@@ -32019,7 +32125,7 @@ var Many2ManyTagField = (props) => {
32019
32125
 
32020
32126
  // src/widgets/basic/monetary-field/monetary.tsx
32021
32127
  import { useEffect as useEffect22 } from "react";
32022
- 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";
32023
32129
  var MonetaryField = (props) => {
32024
32130
  const { t: t3 } = useI18n();
32025
32131
  const {
@@ -32039,26 +32145,26 @@ var MonetaryField = (props) => {
32039
32145
  isEditTable
32040
32146
  } = props;
32041
32147
  if (isForm && name2 === "amount_residual") {
32042
- return /* @__PURE__ */ jsxs62("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32043
- /* @__PURE__ */ jsxs62("span", { className: "font-semibold", children: [
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: [
32044
32150
  string,
32045
32151
  ":"
32046
32152
  ] }),
32047
- /* @__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` })
32048
32154
  ] });
32049
32155
  }
32050
32156
  if (!isForm) {
32051
32157
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32052
32158
  if (widget === "monetary" && !formValues?.currency_id) {
32053
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32159
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32054
32160
  parseFloat(String(value ?? defaultValue))
32055
32161
  )} VND` });
32056
32162
  }
32057
- return /* @__PURE__ */ jsx94("span", { children: `${formatNumberOnly(
32163
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32058
32164
  parseFloat(value ?? defaultValue)
32059
32165
  )} ${currencySymbol}` });
32060
32166
  }
32061
- return /* @__PURE__ */ jsx94(
32167
+ return /* @__PURE__ */ jsx95(
32062
32168
  Controller,
32063
32169
  {
32064
32170
  name: name2 ?? "",
@@ -32077,8 +32183,8 @@ var MonetaryField = (props) => {
32077
32183
  clearErrors(name2);
32078
32184
  }
32079
32185
  }, [value2]);
32080
- return /* @__PURE__ */ jsxs62(Fragment28, { children: [
32081
- /* @__PURE__ */ jsx94(
32186
+ return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32187
+ /* @__PURE__ */ jsx95(
32082
32188
  "input",
32083
32189
  {
32084
32190
  value: formatNumberOnly(value2),
@@ -32116,7 +32222,7 @@ var MonetaryField = (props) => {
32116
32222
  `
32117
32223
  }
32118
32224
  ),
32119
- !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 })
32120
32226
  ] });
32121
32227
  }
32122
32228
  }
@@ -32124,14 +32230,14 @@ var MonetaryField = (props) => {
32124
32230
  };
32125
32231
 
32126
32232
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32127
- import { jsx as jsx95 } from "react/jsx-runtime";
32233
+ import { jsx as jsx96 } from "react/jsx-runtime";
32128
32234
  var PaidBadgedField = () => {
32129
- 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, {}) });
32130
32236
  };
32131
32237
 
32132
32238
  // src/widgets/basic/priority-field/rating-star.tsx
32133
32239
  import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32134
- import { jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
32240
+ import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32135
32241
  var RatingStarField = (props) => {
32136
32242
  const {
32137
32243
  label,
@@ -32166,7 +32272,7 @@ var RatingStarField = (props) => {
32166
32272
  setHover(0);
32167
32273
  setRating(0);
32168
32274
  };
32169
- return /* @__PURE__ */ jsx96(
32275
+ return /* @__PURE__ */ jsx97(
32170
32276
  "div",
32171
32277
  {
32172
32278
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32176,17 +32282,17 @@ var RatingStarField = (props) => {
32176
32282
  const starValue = index4 + 1;
32177
32283
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32178
32284
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32179
- return /* @__PURE__ */ jsxs63(React17.Fragment, { children: [
32180
- /* @__PURE__ */ jsx96(
32285
+ return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32286
+ /* @__PURE__ */ jsx97(
32181
32287
  "div",
32182
32288
  {
32183
32289
  onMouseEnter: () => handleHover(starValue),
32184
32290
  onClick: () => handleClick(starValue),
32185
32291
  "data-tooltip-id": `${id}-${starValue}`,
32186
- children: /* @__PURE__ */ jsx96(StarIcon, { fill: fillColor, stroke: strokeColor })
32292
+ children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32187
32293
  }
32188
32294
  ),
32189
- /* @__PURE__ */ jsx96(
32295
+ /* @__PURE__ */ jsx97(
32190
32296
  M,
32191
32297
  {
32192
32298
  className: "z-50",
@@ -32202,7 +32308,7 @@ var RatingStarField = (props) => {
32202
32308
  };
32203
32309
 
32204
32310
  // src/widgets/basic/priority-field/priority.tsx
32205
- import { jsx as jsx97 } from "react/jsx-runtime";
32311
+ import { jsx as jsx98 } from "react/jsx-runtime";
32206
32312
  var PriorityField = (props) => {
32207
32313
  const {
32208
32314
  isForm,
@@ -32218,7 +32324,7 @@ var PriorityField = (props) => {
32218
32324
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32219
32325
  const defaultPriority = parseInt(value) + 1;
32220
32326
  if (!isForm) {
32221
- return /* @__PURE__ */ jsx97(
32327
+ return /* @__PURE__ */ jsx98(
32222
32328
  RatingStarField,
32223
32329
  {
32224
32330
  label,
@@ -32229,7 +32335,7 @@ var PriorityField = (props) => {
32229
32335
  }
32230
32336
  );
32231
32337
  }
32232
- return /* @__PURE__ */ jsx97(
32338
+ return /* @__PURE__ */ jsx98(
32233
32339
  Controller,
32234
32340
  {
32235
32341
  name: name ?? "",
@@ -32239,7 +32345,7 @@ var PriorityField = (props) => {
32239
32345
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32240
32346
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32241
32347
  };
32242
- return /* @__PURE__ */ jsx97(
32348
+ return /* @__PURE__ */ jsx98(
32243
32349
  RatingStarField,
32244
32350
  {
32245
32351
  label,
@@ -32256,7 +32362,7 @@ var PriorityField = (props) => {
32256
32362
 
32257
32363
  // src/widgets/basic/radio-group-field/radio-group.tsx
32258
32364
  import { useEffect as useEffect24 } from "react";
32259
- import { jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
32365
+ import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32260
32366
  var RadioGroupField = (props) => {
32261
32367
  const {
32262
32368
  name: name2,
@@ -32275,13 +32381,13 @@ var RadioGroupField = (props) => {
32275
32381
  }
32276
32382
  }, [selection, name2, setValue]);
32277
32383
  if (!methods) return null;
32278
- return /* @__PURE__ */ jsx98(
32384
+ return /* @__PURE__ */ jsx99(
32279
32385
  Controller,
32280
32386
  {
32281
32387
  name: name2 ?? "",
32282
32388
  control: methods.control,
32283
- render: ({ field }) => /* @__PURE__ */ jsx98("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-1", children: [
32284
- /* @__PURE__ */ jsx98(
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(
32285
32391
  "input",
32286
32392
  {
32287
32393
  type: "radio",
@@ -32300,7 +32406,7 @@ var RadioGroupField = (props) => {
32300
32406
  className: "custom-radio"
32301
32407
  }
32302
32408
  ),
32303
- /* @__PURE__ */ jsx98("label", { htmlFor: String(select[0]), children: select[1] })
32409
+ /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32304
32410
  ] }, select[0])) })
32305
32411
  }
32306
32412
  );
@@ -32308,7 +32414,7 @@ var RadioGroupField = (props) => {
32308
32414
 
32309
32415
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32310
32416
  var import_moment3 = __toESM(require_moment());
32311
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32417
+ import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32312
32418
  var RemainingDaysField = (props) => {
32313
32419
  const {
32314
32420
  value,
@@ -32319,14 +32425,14 @@ var RemainingDaysField = (props) => {
32319
32425
  if (!value) return null;
32320
32426
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32321
32427
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32322
- return /* @__PURE__ */ jsxs65("div", { className: isForm ? "mb-4" : "", children: [
32323
- /* @__PURE__ */ jsx99(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32324
- /* @__PURE__ */ jsx99(
32428
+ return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32429
+ /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32430
+ /* @__PURE__ */ jsx100(
32325
32431
  "div",
32326
32432
  {
32327
32433
  "data-tooltip-id": `remainingDays_${value}`,
32328
32434
  className: "flex items-center w-fit cursor-context-menu",
32329
- children: /* @__PURE__ */ jsx99(
32435
+ children: /* @__PURE__ */ jsx100(
32330
32436
  "div",
32331
32437
  {
32332
32438
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32339,7 +32445,7 @@ var RemainingDaysField = (props) => {
32339
32445
  };
32340
32446
 
32341
32447
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32342
- 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";
32343
32449
  var SelectDropdownField = (props) => {
32344
32450
  const { t: t3 } = useI18n();
32345
32451
  const {
@@ -32361,9 +32467,9 @@ var SelectDropdownField = (props) => {
32361
32467
  label: val[1]
32362
32468
  })) : [];
32363
32469
  if (!isForm && !isEditTable) {
32364
- 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 });
32365
32471
  } else {
32366
- return /* @__PURE__ */ jsx100(
32472
+ return /* @__PURE__ */ jsx101(
32367
32473
  Controller,
32368
32474
  {
32369
32475
  name: name2 || "",
@@ -32390,8 +32496,8 @@ var SelectDropdownField = (props) => {
32390
32496
  value: defaultValue || null,
32391
32497
  required: !invisible && required
32392
32498
  };
32393
- return /* @__PURE__ */ jsxs66(Fragment29, { children: [
32394
- /* @__PURE__ */ jsx100("div", { className: "group", children: /* @__PURE__ */ jsx100(
32499
+ return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32500
+ /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32395
32501
  StateManagedSelect$1,
32396
32502
  {
32397
32503
  ...commonProps,
@@ -32446,12 +32552,12 @@ var SelectDropdownField = (props) => {
32446
32552
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32447
32553
  components: {
32448
32554
  IndicatorSeparator: () => null,
32449
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx100(components.DropdownIndicator, { ...props2 })
32555
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32450
32556
  },
32451
32557
  noOptionsMessage: () => t3("no-available")
32452
32558
  }
32453
32559
  ) }),
32454
- !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 })
32455
32561
  ] });
32456
32562
  }
32457
32563
  }
@@ -32460,7 +32566,7 @@ var SelectDropdownField = (props) => {
32460
32566
  };
32461
32567
 
32462
32568
  // src/widgets/basic/textarea-field/textarea.tsx
32463
- import { jsx as jsx101 } from "react/jsx-runtime";
32569
+ import { jsx as jsx102 } from "react/jsx-runtime";
32464
32570
  var TextAreaField = (props) => {
32465
32571
  const {
32466
32572
  methods,
@@ -32484,9 +32590,9 @@ var TextAreaField = (props) => {
32484
32590
  }
32485
32591
  }) : {};
32486
32592
  if (!isForm) {
32487
- 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 });
32488
32594
  }
32489
- return /* @__PURE__ */ jsx101(
32595
+ return /* @__PURE__ */ jsx102(
32490
32596
  "textarea",
32491
32597
  {
32492
32598
  ...formProps,
@@ -32502,7 +32608,7 @@ var TextAreaField = (props) => {
32502
32608
  };
32503
32609
 
32504
32610
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32505
- import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
32611
+ import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32506
32612
  var ToggleButtonField = (props) => {
32507
32613
  const {
32508
32614
  name: name2,
@@ -32512,13 +32618,13 @@ var ToggleButtonField = (props) => {
32512
32618
  onChange: onChange2,
32513
32619
  methods
32514
32620
  } = props;
32515
- return /* @__PURE__ */ jsx102(
32621
+ return /* @__PURE__ */ jsx103(
32516
32622
  Controller,
32517
32623
  {
32518
32624
  name: name2 ?? "",
32519
32625
  control: methods?.control,
32520
- render: ({ field }) => /* @__PURE__ */ jsx102("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs67("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32521
- /* @__PURE__ */ jsx102(
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(
32522
32628
  "input",
32523
32629
  {
32524
32630
  ...field,
@@ -32537,7 +32643,7 @@ var ToggleButtonField = (props) => {
32537
32643
  checked: field.value ?? false
32538
32644
  }
32539
32645
  ),
32540
- /* @__PURE__ */ jsx102(
32646
+ /* @__PURE__ */ jsx103(
32541
32647
  "span",
32542
32648
  {
32543
32649
  style: {
@@ -32546,7 +32652,7 @@ var ToggleButtonField = (props) => {
32546
32652
  },
32547
32653
  className: `rounded-full transition duration-300
32548
32654
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32549
- children: /* @__PURE__ */ jsx102(
32655
+ children: /* @__PURE__ */ jsx103(
32550
32656
  "span",
32551
32657
  {
32552
32658
  style: {
@@ -32571,7 +32677,7 @@ var ToggleButtonField = (props) => {
32571
32677
 
32572
32678
  // src/widgets/basic/integer-field/integer.tsx
32573
32679
  import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
32574
- import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32680
+ import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32575
32681
  var IntegerField = (props) => {
32576
32682
  const {
32577
32683
  name: name2,
@@ -32590,9 +32696,9 @@ var IntegerField = (props) => {
32590
32696
  const { t: t3 } = useI18n();
32591
32697
  if (!isForm && !isEditTable) {
32592
32698
  const displayValue = value ?? defaultValue;
32593
- 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) });
32594
32700
  }
32595
- return /* @__PURE__ */ jsx103(
32701
+ return /* @__PURE__ */ jsx104(
32596
32702
  Controller,
32597
32703
  {
32598
32704
  name: name2 || "",
@@ -32670,8 +32776,8 @@ var IntegerField = (props) => {
32670
32776
  inputRef.current?.blur();
32671
32777
  clearErrors(name2);
32672
32778
  };
32673
- return /* @__PURE__ */ jsxs68(Fragment30, { children: [
32674
- /* @__PURE__ */ jsx103(
32779
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32780
+ /* @__PURE__ */ jsx104(
32675
32781
  "input",
32676
32782
  {
32677
32783
  ref: inputRef,
@@ -32706,7 +32812,7 @@ var IntegerField = (props) => {
32706
32812
  `
32707
32813
  }
32708
32814
  ),
32709
- 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 })
32710
32816
  ] });
32711
32817
  }
32712
32818
  }
@@ -32714,7 +32820,7 @@ var IntegerField = (props) => {
32714
32820
  };
32715
32821
 
32716
32822
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32717
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32823
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32718
32824
  var StatusDropdownField = (props) => {
32719
32825
  const {
32720
32826
  buttonRef,
@@ -32726,13 +32832,13 @@ var StatusDropdownField = (props) => {
32726
32832
  handleClick,
32727
32833
  colors: colors2
32728
32834
  } = props;
32729
- return /* @__PURE__ */ jsxs69(
32835
+ return /* @__PURE__ */ jsxs70(
32730
32836
  "div",
32731
32837
  {
32732
32838
  ref: buttonRef,
32733
32839
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32734
32840
  children: [
32735
- /* @__PURE__ */ jsx104(
32841
+ /* @__PURE__ */ jsx105(
32736
32842
  "button",
32737
32843
  {
32738
32844
  type: "button",
@@ -32740,23 +32846,23 @@ var StatusDropdownField = (props) => {
32740
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"}`
32741
32847
  }
32742
32848
  ),
32743
- isOpen && /* @__PURE__ */ jsx104("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
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) => {
32744
32850
  const isActive = item[0] == state;
32745
- return /* @__PURE__ */ jsxs69(
32851
+ return /* @__PURE__ */ jsxs70(
32746
32852
  "div",
32747
32853
  {
32748
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" : ""}`,
32749
32855
  onClick: () => handleClick(item[0]),
32750
32856
  children: [
32751
- /* @__PURE__ */ jsx104("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx104(CheckIcon, {}) }),
32752
- /* @__PURE__ */ jsxs69("div", { className: "flex items-center gap-2", children: [
32753
- /* @__PURE__ */ jsx104(
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(
32754
32860
  "div",
32755
32861
  {
32756
32862
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
32757
32863
  }
32758
32864
  ),
32759
- /* @__PURE__ */ jsx104("span", { className: "text-sm", children: item[1] })
32865
+ /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
32760
32866
  ] })
32761
32867
  ]
32762
32868
  },
@@ -32771,7 +32877,7 @@ var StatusDropdownField = (props) => {
32771
32877
  // src/widgets/basic/many2many-field/many2many.tsx
32772
32878
  import { createPortal as createPortal5 } from "react-dom";
32773
32879
  import { useEffect as useEffect26 } from "react";
32774
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32880
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32775
32881
  var Many2ManyField = (props) => {
32776
32882
  const { t: t3 } = useI18n();
32777
32883
  const {
@@ -32845,7 +32951,7 @@ var Many2ManyField = (props) => {
32845
32951
  };
32846
32952
  }, [selectedTags]);
32847
32953
  return createPortal5(
32848
- /* @__PURE__ */ jsxs70(
32954
+ /* @__PURE__ */ jsxs71(
32849
32955
  "div",
32850
32956
  {
32851
32957
  style: {
@@ -32853,8 +32959,8 @@ var Many2ManyField = (props) => {
32853
32959
  },
32854
32960
  className: "fixed bottom-0 left-0 right-0 top-0",
32855
32961
  children: [
32856
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32857
- /* @__PURE__ */ jsx105("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs70(
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(
32858
32964
  "div",
32859
32965
  {
32860
32966
  style: {
@@ -32862,12 +32968,12 @@ var Many2ManyField = (props) => {
32862
32968
  },
32863
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",
32864
32970
  children: [
32865
- /* @__PURE__ */ jsxs70("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32866
- /* @__PURE__ */ jsx105("div", { className: "text-[20px] font-semibold", children: title }),
32867
- /* @__PURE__ */ jsx105("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx105(CloseIcon, {}) })
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, {}) })
32868
32974
  ] }),
32869
- /* @__PURE__ */ jsxs70("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32870
- /* @__PURE__ */ jsx105("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx105(
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(
32871
32977
  Search,
32872
32978
  {
32873
32979
  removeSearchItems,
@@ -32901,7 +33007,7 @@ var Many2ManyField = (props) => {
32901
33007
  groupByList
32902
33008
  }
32903
33009
  ) }),
32904
- /* @__PURE__ */ jsx105(
33010
+ /* @__PURE__ */ jsx106(
32905
33011
  PaginationView,
32906
33012
  {
32907
33013
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -32918,20 +33024,20 @@ var Many2ManyField = (props) => {
32918
33024
  }
32919
33025
  )
32920
33026
  ] }),
32921
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx105("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx105("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx105(
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(
32922
33028
  "div",
32923
33029
  {
32924
33030
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
32925
- children: /* @__PURE__ */ jsx105("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx105("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx105(
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(
32926
33032
  "div",
32927
33033
  {
32928
33034
  className: `flex w-full items-center h-full overflow-auto `,
32929
- children: /* @__PURE__ */ jsx105("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs70(
33035
+ children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
32930
33036
  "table",
32931
33037
  {
32932
33038
  className: `relative w-full bg-white custom-dropdown `,
32933
33039
  children: [
32934
- /* @__PURE__ */ jsx105(
33040
+ /* @__PURE__ */ jsx106(
32935
33041
  TableHead,
32936
33042
  {
32937
33043
  columns,
@@ -32941,7 +33047,7 @@ var Many2ManyField = (props) => {
32941
33047
  handleCheckBoxAll
32942
33048
  }
32943
33049
  ),
32944
- rows?.length > 0 ? /* @__PURE__ */ jsx105(
33050
+ rows?.length > 0 ? /* @__PURE__ */ jsx106(
32945
33051
  TableBody,
32946
33052
  {
32947
33053
  tableGroupController,
@@ -32981,16 +33087,16 @@ var Many2ManyField = (props) => {
32981
33087
  checkedAll,
32982
33088
  context
32983
33089
  }
32984
- ) : /* @__PURE__ */ jsx105("tr", { children: /* @__PURE__ */ jsx105(
33090
+ ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
32985
33091
  "td",
32986
33092
  {
32987
33093
  className: "w-full",
32988
33094
  colSpan: columns?.length + 2,
32989
- children: /* @__PURE__ */ jsx105(
33095
+ children: /* @__PURE__ */ jsx106(
32990
33096
  "div",
32991
33097
  {
32992
33098
  className: `flex flex-col items-center justify-center gap-3 py-6`,
32993
- children: /* @__PURE__ */ jsx105(EmptyTable, {})
33099
+ children: /* @__PURE__ */ jsx106(EmptyTable, {})
32994
33100
  }
32995
33101
  )
32996
33102
  }
@@ -33001,9 +33107,9 @@ var Many2ManyField = (props) => {
33001
33107
  }
33002
33108
  ) }) })
33003
33109
  }
33004
- ) }) }) : /* @__PURE__ */ jsx105(LayerLoading, {}),
33005
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2 mt-auto", children: [
33006
- isDisplayCheckbox && /* @__PURE__ */ jsx105(
33110
+ ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33111
+ /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33112
+ isDisplayCheckbox && /* @__PURE__ */ jsx106(
33007
33113
  "button",
33008
33114
  {
33009
33115
  disabled: selectedRowKeys?.length === 0,
@@ -33013,7 +33119,7 @@ var Many2ManyField = (props) => {
33013
33119
  children: t3("choose")
33014
33120
  }
33015
33121
  ),
33016
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx105(
33122
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33017
33123
  "button",
33018
33124
  {
33019
33125
  type: "button",
@@ -33029,7 +33135,7 @@ var Many2ManyField = (props) => {
33029
33135
  children: t3("new")
33030
33136
  }
33031
33137
  ),
33032
- /* @__PURE__ */ jsx105(
33138
+ /* @__PURE__ */ jsx106(
33033
33139
  "button",
33034
33140
  {
33035
33141
  type: "button",
@@ -33051,15 +33157,15 @@ var Many2ManyField = (props) => {
33051
33157
 
33052
33158
  // src/widgets/basic/many2one-field/many2one.tsx
33053
33159
  import React18, { useEffect as useEffect27 } from "react";
33054
- 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";
33055
33161
  var CustomMenuList2 = (props) => {
33056
33162
  const { t: t3 } = useI18n();
33057
33163
  const { options: options2, children, selectProps } = props;
33058
33164
  const { setIsShowModalMany2Many, searchable } = selectProps;
33059
33165
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33060
- return /* @__PURE__ */ jsxs71(components.MenuList, { ...props, className: "z-[99]", children: [
33166
+ return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33061
33167
  limitedChildren,
33062
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs71(
33168
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33063
33169
  "button",
33064
33170
  {
33065
33171
  type: "button",
@@ -33102,14 +33208,14 @@ var Many2OneField = (props) => {
33102
33208
  const { t: t3 } = useI18n();
33103
33209
  if (!isForm && !isEditTable) {
33104
33210
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33105
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33211
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33106
33212
  allowShowDetail && renderDetail({
33107
33213
  idToolTip: String(name2) + Number(index4),
33108
33214
  model: options2?.model ?? relation,
33109
33215
  context: contextObject,
33110
33216
  idForm: id
33111
33217
  }),
33112
- /* @__PURE__ */ jsx106(
33218
+ /* @__PURE__ */ jsx107(
33113
33219
  "span",
33114
33220
  {
33115
33221
  className: "cursor-pointer",
@@ -33120,20 +33226,20 @@ var Many2OneField = (props) => {
33120
33226
  )
33121
33227
  ] });
33122
33228
  }
33123
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33229
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33124
33230
  allowShowDetail && renderDetail({
33125
33231
  idToolTip: String(name2),
33126
33232
  model: options2?.model ?? relation,
33127
33233
  context: contextObject,
33128
33234
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33129
33235
  }),
33130
- /* @__PURE__ */ jsx106(
33236
+ /* @__PURE__ */ jsx107(
33131
33237
  "div",
33132
33238
  {
33133
33239
  id: name2,
33134
33240
  "data-tooltip-id": name2,
33135
33241
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33136
- children: /* @__PURE__ */ jsx106(
33242
+ children: /* @__PURE__ */ jsx107(
33137
33243
  Controller,
33138
33244
  {
33139
33245
  name: name2 ?? "",
@@ -33158,8 +33264,8 @@ var Many2OneField = (props) => {
33158
33264
  methods?.clearErrors(name2);
33159
33265
  }
33160
33266
  }, [selectedOption]);
33161
- return /* @__PURE__ */ jsxs71("div", { className: "h-full", children: [
33162
- /* @__PURE__ */ jsx106(
33267
+ return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33268
+ /* @__PURE__ */ jsx107(
33163
33269
  StateManagedSelect$1,
33164
33270
  {
33165
33271
  menuShouldScrollIntoView: false,
@@ -33235,7 +33341,7 @@ var Many2OneField = (props) => {
33235
33341
  })
33236
33342
  },
33237
33343
  components: {
33238
- MenuList: (menuListProps) => /* @__PURE__ */ jsx106(
33344
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33239
33345
  CustomMenuList2,
33240
33346
  {
33241
33347
  ...menuListProps,
@@ -33246,13 +33352,13 @@ var Many2OneField = (props) => {
33246
33352
  }
33247
33353
  ),
33248
33354
  IndicatorSeparator: () => null,
33249
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx106(components.DropdownIndicator, { ...props2 })
33355
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33250
33356
  },
33251
33357
  isDisabled: readonly,
33252
33358
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33253
33359
  }
33254
33360
  ),
33255
- !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 })
33256
33362
  ] });
33257
33363
  }
33258
33364
  }
@@ -33263,7 +33369,7 @@ var Many2OneField = (props) => {
33263
33369
  };
33264
33370
 
33265
33371
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33266
- import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33372
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33267
33373
  var StatusbarDurationField = (props) => {
33268
33374
  const {
33269
33375
  disabled,
@@ -33273,14 +33379,14 @@ var StatusbarDurationField = (props) => {
33273
33379
  defaultValue,
33274
33380
  setModalStatus
33275
33381
  } = props;
33276
- return /* @__PURE__ */ jsx107(
33382
+ return /* @__PURE__ */ jsx108(
33277
33383
  "div",
33278
33384
  {
33279
33385
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33280
- children: /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-[24px]", children: [
33281
- /* @__PURE__ */ jsx107("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
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) => {
33282
33388
  const value = option?.id === defaultValue;
33283
- return /* @__PURE__ */ jsxs72(
33389
+ return /* @__PURE__ */ jsxs73(
33284
33390
  "label",
33285
33391
  {
33286
33392
  onClick: () => !disabled && handleClick(option.id),
@@ -33290,7 +33396,7 @@ var StatusbarDurationField = (props) => {
33290
33396
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33291
33397
  `,
33292
33398
  children: [
33293
- /* @__PURE__ */ jsx107(
33399
+ /* @__PURE__ */ jsx108(
33294
33400
  "input",
33295
33401
  {
33296
33402
  type: "radio",
@@ -33300,7 +33406,7 @@ var StatusbarDurationField = (props) => {
33300
33406
  }
33301
33407
  ),
33302
33408
  option?.name,
33303
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx107(
33409
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33304
33410
  "div",
33305
33411
  {
33306
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]
@@ -33315,14 +33421,14 @@ var StatusbarDurationField = (props) => {
33315
33421
  }) }),
33316
33422
  dataResponse?.records?.some(
33317
33423
  (item) => item?.fold && item.id !== defaultValue
33318
- ) && /* @__PURE__ */ jsxs72(
33424
+ ) && /* @__PURE__ */ jsxs73(
33319
33425
  "div",
33320
33426
  {
33321
33427
  onClick: () => setModalStatus(!modelStatus),
33322
33428
  className: "w-[24px] h-[24px] cursor-pointer relative",
33323
33429
  children: [
33324
- /* @__PURE__ */ jsx107(MoreIcon, {}),
33325
- modelStatus && /* @__PURE__ */ jsx107(
33430
+ /* @__PURE__ */ jsx108(MoreIcon, {}),
33431
+ modelStatus && /* @__PURE__ */ jsx108(
33326
33432
  "div",
33327
33433
  {
33328
33434
  onClick: (e3) => e3.stopPropagation(),
@@ -33331,7 +33437,7 @@ var StatusbarDurationField = (props) => {
33331
33437
  (item) => item?.fold && item.id !== defaultValue
33332
33438
  )?.map((option) => {
33333
33439
  const value = option?.id === defaultValue;
33334
- return /* @__PURE__ */ jsx107(
33440
+ return /* @__PURE__ */ jsx108(
33335
33441
  "div",
33336
33442
  {
33337
33443
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33353,14 +33459,14 @@ var StatusbarDurationField = (props) => {
33353
33459
 
33354
33460
  // src/widgets/basic/status-bar-field/option/option.tsx
33355
33461
  import { useMemo as useMemo11 } from "react";
33356
- 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";
33357
33463
  var StatusBarOptionField = (props) => {
33358
33464
  const { selection, defaultValue } = props;
33359
33465
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33360
33466
  const indexInProgress = memoizedStatusOptions?.findIndex(
33361
33467
  (option) => option?.[0] === defaultValue
33362
33468
  );
33363
- return /* @__PURE__ */ jsx108(
33469
+ return /* @__PURE__ */ jsx109(
33364
33470
  "div",
33365
33471
  {
33366
33472
  style: {
@@ -33369,8 +33475,8 @@ var StatusBarOptionField = (props) => {
33369
33475
  flexWrap: "wrap"
33370
33476
  },
33371
33477
  children: memoizedStatusOptions?.map((option, index4) => {
33372
- return /* @__PURE__ */ jsxs73(Fragment32, { children: [
33373
- /* @__PURE__ */ jsxs73(
33478
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33479
+ /* @__PURE__ */ jsxs74(
33374
33480
  "div",
33375
33481
  {
33376
33482
  style: {
@@ -33388,7 +33494,7 @@ var StatusBarOptionField = (props) => {
33388
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" : ""
33389
33495
  },
33390
33496
  children: [
33391
- /* @__PURE__ */ jsx108(
33497
+ /* @__PURE__ */ jsx109(
33392
33498
  "span",
33393
33499
  {
33394
33500
  style: {
@@ -33400,10 +33506,10 @@ var StatusBarOptionField = (props) => {
33400
33506
  alignItems: "center",
33401
33507
  borderRadius: "100%"
33402
33508
  },
33403
- 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, {})
33404
33510
  }
33405
33511
  ),
33406
- /* @__PURE__ */ jsx108(
33512
+ /* @__PURE__ */ jsx109(
33407
33513
  "span",
33408
33514
  {
33409
33515
  style: {
@@ -33416,7 +33522,7 @@ var StatusBarOptionField = (props) => {
33416
33522
  },
33417
33523
  option?.[0]
33418
33524
  ),
33419
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx108(
33525
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33420
33526
  "div",
33421
33527
  {
33422
33528
  style: {
@@ -33432,7 +33538,7 @@ var StatusBarOptionField = (props) => {
33432
33538
  );
33433
33539
  };
33434
33540
  var ICMinus = () => {
33435
- return /* @__PURE__ */ jsx108(
33541
+ return /* @__PURE__ */ jsx109(
33436
33542
  "svg",
33437
33543
  {
33438
33544
  xmlns: "http://www.w3.org/2000/svg",
@@ -33440,7 +33546,7 @@ var ICMinus = () => {
33440
33546
  height: "16",
33441
33547
  viewBox: "0 0 16 16",
33442
33548
  fill: "none",
33443
- children: /* @__PURE__ */ jsx108(
33549
+ children: /* @__PURE__ */ jsx109(
33444
33550
  "path",
33445
33551
  {
33446
33552
  d: "M4 8H12",
@@ -33454,7 +33560,7 @@ var ICMinus = () => {
33454
33560
  );
33455
33561
  };
33456
33562
  var ICCircle = () => {
33457
- return /* @__PURE__ */ jsx108(
33563
+ return /* @__PURE__ */ jsx109(
33458
33564
  "svg",
33459
33565
  {
33460
33566
  xmlns: "http://www.w3.org/2000/svg",
@@ -33462,12 +33568,12 @@ var ICCircle = () => {
33462
33568
  height: "8",
33463
33569
  viewBox: "0 0 8 8",
33464
33570
  fill: "none",
33465
- 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" })
33466
33572
  }
33467
33573
  );
33468
33574
  };
33469
33575
  var ICCheck = () => {
33470
- return /* @__PURE__ */ jsx108(
33576
+ return /* @__PURE__ */ jsx109(
33471
33577
  "svg",
33472
33578
  {
33473
33579
  xmlns: "http://www.w3.org/2000/svg",
@@ -33475,7 +33581,7 @@ var ICCheck = () => {
33475
33581
  height: "16",
33476
33582
  viewBox: "0 0 16 16",
33477
33583
  fill: "none",
33478
- children: /* @__PURE__ */ jsx108(
33584
+ children: /* @__PURE__ */ jsx109(
33479
33585
  "path",
33480
33586
  {
33481
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",
@@ -33489,7 +33595,7 @@ var ICCheck = () => {
33489
33595
  };
33490
33596
 
33491
33597
  // src/widgets/basic/date-option-field/date-option.tsx
33492
- import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33598
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33493
33599
  var DateOptionField = (props) => {
33494
33600
  const {
33495
33601
  name: name2,
@@ -33500,19 +33606,19 @@ var DateOptionField = (props) => {
33500
33606
  string,
33501
33607
  onChange: onChange2
33502
33608
  } = props;
33503
- return /* @__PURE__ */ jsx109(
33609
+ return /* @__PURE__ */ jsx110(
33504
33610
  Controller,
33505
33611
  {
33506
33612
  name: name2 ?? "",
33507
33613
  control: methods?.control,
33508
- render: ({ field }) => /* @__PURE__ */ jsxs74(
33614
+ render: ({ field }) => /* @__PURE__ */ jsxs75(
33509
33615
  "label",
33510
33616
  {
33511
33617
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33512
33618
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33513
33619
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33514
33620
  children: [
33515
- /* @__PURE__ */ jsx109(
33621
+ /* @__PURE__ */ jsx110(
33516
33622
  "input",
33517
33623
  {
33518
33624
  type: "checkbox",