@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.js CHANGED
@@ -9934,8 +9934,60 @@ var DeleteIconDanger = () => {
9934
9934
  );
9935
9935
  };
9936
9936
 
9937
- // src/widgets/advanced/table/table-group.tsx
9937
+ // src/icons/image-icon.tsx
9938
9938
  var import_jsx_runtime41 = require("react/jsx-runtime");
9939
+ var ImageIcon = () => {
9940
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
9941
+ "svg",
9942
+ {
9943
+ xmlns: "http://www.w3.org/2000/svg",
9944
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
9945
+ width: "38",
9946
+ height: "38",
9947
+ viewBox: "0 0 38 38",
9948
+ children: [
9949
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("defs", { children: [
9950
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("rect", { id: "image-a", width: "32", height: "35", x: "3", y: "1", rx: "3" }),
9951
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
9952
+ "path",
9953
+ {
9954
+ id: "image-b",
9955
+ 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"
9956
+ }
9957
+ )
9958
+ ] }),
9959
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("g", { fill: "none", fillRule: "evenodd", children: [
9960
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("polygon", { fill: "#1C8B96", points: "34 2 34 34 4 34" }),
9961
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("use", { fill: "#FFF", fillOpacity: ".93", xlinkHref: "#image-a" }),
9962
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
9963
+ "rect",
9964
+ {
9965
+ width: "30",
9966
+ height: "33",
9967
+ x: "4",
9968
+ y: "2",
9969
+ stroke: "#1C8B96",
9970
+ strokeWidth: "2",
9971
+ rx: "3"
9972
+ }
9973
+ ),
9974
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("use", { fill: "#1C8B96", fillOpacity: ".516", xlinkHref: "#image-b" }),
9975
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
9976
+ "path",
9977
+ {
9978
+ stroke: "#1C8B96",
9979
+ 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"
9980
+ }
9981
+ ),
9982
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("circle", { cx: "25.5", cy: "11.5", r: "4.5", fill: "#1C8B96" })
9983
+ ] })
9984
+ ]
9985
+ }
9986
+ );
9987
+ };
9988
+
9989
+ // src/widgets/advanced/table/table-group.tsx
9990
+ var import_jsx_runtime42 = require("react/jsx-runtime");
9939
9991
  var TableGroup = (props) => {
9940
9992
  const { t: t3 } = useI18n();
9941
9993
  const {
@@ -9985,28 +10037,28 @@ var TableGroup = (props) => {
9985
10037
  setSelectedRowKeys
9986
10038
  });
9987
10039
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
9988
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
9989
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
10040
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
10041
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
9990
10042
  "tr",
9991
10043
  {
9992
10044
  draggable: true,
9993
10045
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
9994
10046
  onClick: onExpandChildGroup,
9995
10047
  children: [
9996
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10048
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
9997
10049
  "td",
9998
10050
  {
9999
10051
  colSpan: colEmptyGroup.fromStart ?? 1,
10000
10052
  style: { display: "table-cell" },
10001
10053
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
10002
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
10054
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
10003
10055
  "div",
10004
10056
  {
10005
10057
  style: { paddingLeft: leftPadding },
10006
10058
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
10007
10059
  children: [
10008
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center gap-2", children: [
10009
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10060
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center gap-2", children: [
10061
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10010
10062
  TriangleIcon,
10011
10063
  {
10012
10064
  style: {
@@ -10015,15 +10067,15 @@ var TableGroup = (props) => {
10015
10067
  className: `w-2 h-2 text-button_primary `
10016
10068
  }
10017
10069
  ),
10018
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10070
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10019
10071
  ] }),
10020
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10072
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10021
10073
  "div",
10022
10074
  {
10023
10075
  onClick: (e3) => {
10024
10076
  e3.stopPropagation();
10025
10077
  },
10026
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10078
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10027
10079
  PaginationView,
10028
10080
  {
10029
10081
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -10044,7 +10096,7 @@ var TableGroup = (props) => {
10044
10096
  columns?.map((col) => {
10045
10097
  if (col?.optional === "hide") return;
10046
10098
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
10047
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10099
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10048
10100
  "td",
10049
10101
  {
10050
10102
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -10062,7 +10114,7 @@ var TableGroup = (props) => {
10062
10114
  ]
10063
10115
  }
10064
10116
  ),
10065
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10117
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10066
10118
  TableBodyRow,
10067
10119
  {
10068
10120
  columns: columnsGroup,
@@ -10092,7 +10144,7 @@ var TableGroup = (props) => {
10092
10144
 
10093
10145
  // src/widgets/advanced/table/table-row.tsx
10094
10146
  var import_react11 = require("react");
10095
- var import_jsx_runtime42 = require("react/jsx-runtime");
10147
+ var import_jsx_runtime43 = require("react/jsx-runtime");
10096
10148
  var Row = (props) => {
10097
10149
  const {
10098
10150
  row,
@@ -10158,17 +10210,17 @@ var Row = (props) => {
10158
10210
  setIsAutoSelect(false);
10159
10211
  }
10160
10212
  }, [checkedAll]);
10161
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10213
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10162
10214
  "tr",
10163
10215
  {
10164
10216
  "data-row-id": row?.id,
10165
10217
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10166
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
10167
- isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10218
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
10219
+ isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10168
10220
  "td",
10169
10221
  {
10170
10222
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
10171
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10223
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10172
10224
  "input",
10173
10225
  {
10174
10226
  type: "checkbox",
@@ -10181,9 +10233,9 @@ var Row = (props) => {
10181
10233
  ),
10182
10234
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
10183
10235
  if (row?.display_type === "line_section" && col.key !== "display_name") {
10184
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("td", {});
10236
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("td", {});
10185
10237
  }
10186
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10238
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10187
10239
  "td",
10188
10240
  {
10189
10241
  colSpan: 1,
@@ -10202,7 +10254,7 @@ var Row = (props) => {
10202
10254
  `${col.name}____${index4}`
10203
10255
  );
10204
10256
  }),
10205
- typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10257
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10206
10258
  "button",
10207
10259
  {
10208
10260
  type: "button",
@@ -10210,7 +10262,7 @@ var Row = (props) => {
10210
10262
  onClick: () => {
10211
10263
  onRemoveRow(indexRow);
10212
10264
  },
10213
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DeleteIcon, {})
10265
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DeleteIcon, {})
10214
10266
  }
10215
10267
  ) }) })
10216
10268
  ] })
@@ -10220,7 +10272,7 @@ var Row = (props) => {
10220
10272
  };
10221
10273
 
10222
10274
  // src/widgets/advanced/table/table-body.tsx
10223
- var import_jsx_runtime43 = require("react/jsx-runtime");
10275
+ var import_jsx_runtime44 = require("react/jsx-runtime");
10224
10276
  var TableBodyRow = (props) => {
10225
10277
  const {
10226
10278
  rows,
@@ -10250,7 +10302,7 @@ var TableBodyRow = (props) => {
10250
10302
  isEditTable
10251
10303
  } = props;
10252
10304
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10253
- return typeTable === "group" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10305
+ return typeTable === "group" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10254
10306
  TableGroup,
10255
10307
  {
10256
10308
  columns,
@@ -10275,7 +10327,7 @@ var TableBodyRow = (props) => {
10275
10327
  onClickRow
10276
10328
  },
10277
10329
  `record-group-${index4}`
10278
- ) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10330
+ ) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10279
10331
  Row,
10280
10332
  {
10281
10333
  row,
@@ -10303,7 +10355,7 @@ var TableBodyRow = (props) => {
10303
10355
  };
10304
10356
  var TableBody = (props) => {
10305
10357
  const [isAutoSelect, setIsAutoSelect] = (0, import_react12.useState)(false);
10306
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
10358
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10307
10359
  TableBodyRow,
10308
10360
  {
10309
10361
  ...props,
@@ -10564,7 +10616,7 @@ function useFileInfo(source, options2) {
10564
10616
  }
10565
10617
 
10566
10618
  // src/widgets/advanced/table/table-filter.tsx
10567
- var import_jsx_runtime44 = require("react/jsx-runtime");
10619
+ var import_jsx_runtime45 = require("react/jsx-runtime");
10568
10620
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
10569
10621
  const [openTableFilter, setOpenTableFilter] = (0, import_react15.useState)();
10570
10622
  const [filterPosition, setFilterPosition] = (0, import_react15.useState)(null);
@@ -10596,7 +10648,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10596
10648
  window.removeEventListener("resize", updatePosition);
10597
10649
  };
10598
10650
  }, [filterRef, openTableFilter]);
10599
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
10651
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
10600
10652
  "div",
10601
10653
  {
10602
10654
  ref: filterRef,
@@ -10605,7 +10657,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10605
10657
  },
10606
10658
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
10607
10659
  children: [
10608
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10660
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10609
10661
  "button",
10610
10662
  {
10611
10663
  type: "button",
@@ -10613,7 +10665,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10613
10665
  onClick: () => {
10614
10666
  setOpenTableFilter(!openTableFilter);
10615
10667
  },
10616
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
10668
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
10617
10669
  "svg",
10618
10670
  {
10619
10671
  xmlns: "http://www.w3.org/2000/svg",
@@ -10622,42 +10674,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10622
10674
  viewBox: "0 0 16 16",
10623
10675
  fill: "none",
10624
10676
  children: [
10625
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10677
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10626
10678
  "path",
10627
10679
  {
10628
10680
  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",
10629
10681
  fill: "#1F1F1F"
10630
10682
  }
10631
10683
  ),
10632
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10684
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10633
10685
  "path",
10634
10686
  {
10635
10687
  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",
10636
10688
  fill: "#1F1F1F"
10637
10689
  }
10638
10690
  ),
10639
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10691
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10640
10692
  "path",
10641
10693
  {
10642
10694
  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",
10643
10695
  fill: "#1F1F1F"
10644
10696
  }
10645
10697
  ),
10646
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10698
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10647
10699
  "path",
10648
10700
  {
10649
10701
  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",
10650
10702
  fill: "black"
10651
10703
  }
10652
10704
  ),
10653
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10705
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10654
10706
  "path",
10655
10707
  {
10656
10708
  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",
10657
10709
  fill: "black"
10658
10710
  }
10659
10711
  ),
10660
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10712
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10661
10713
  "path",
10662
10714
  {
10663
10715
  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",
@@ -10670,7 +10722,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10670
10722
  }
10671
10723
  ),
10672
10724
  filterPosition && openTableFilter && (0, import_react_dom.createPortal)(
10673
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10725
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10674
10726
  "div",
10675
10727
  {
10676
10728
  ref: filterPopupRef,
@@ -10681,8 +10733,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10681
10733
  },
10682
10734
  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",
10683
10735
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
10684
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex items-center gap-2", children: [
10685
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10736
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center gap-2", children: [
10737
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10686
10738
  "input",
10687
10739
  {
10688
10740
  type: "checkbox",
@@ -10692,7 +10744,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10692
10744
  className: "cursor-pointer"
10693
10745
  }
10694
10746
  ),
10695
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
10747
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10696
10748
  "label",
10697
10749
  {
10698
10750
  htmlFor: `${item.name}`,
@@ -10712,14 +10764,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10712
10764
  };
10713
10765
 
10714
10766
  // src/widgets/advanced/table/table-footer.tsx
10715
- var import_jsx_runtime45 = require("react/jsx-runtime");
10767
+ var import_jsx_runtime46 = require("react/jsx-runtime");
10716
10768
  var TableFooter = ({ onAddRow, rows }) => {
10717
10769
  const emptyData = rows?.length <= 0;
10718
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10770
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tfoot", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10719
10771
  "td",
10720
10772
  {
10721
10773
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
10722
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
10774
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
10723
10775
  "button",
10724
10776
  {
10725
10777
  type: "button",
@@ -10729,7 +10781,7 @@ var TableFooter = ({ onAddRow, rows }) => {
10729
10781
  },
10730
10782
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
10731
10783
  children: [
10732
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
10784
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
10733
10785
  "svg",
10734
10786
  {
10735
10787
  style: {
@@ -10742,14 +10794,14 @@ var TableFooter = ({ onAddRow, rows }) => {
10742
10794
  viewBox: "0 0 20 20",
10743
10795
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
10744
10796
  children: [
10745
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10797
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10746
10798
  "path",
10747
10799
  {
10748
10800
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
10749
10801
  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"
10750
10802
  }
10751
10803
  ),
10752
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
10804
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
10753
10805
  "path",
10754
10806
  {
10755
10807
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -12569,7 +12621,7 @@ var M = import_react16.default.forwardRef(({ id: t3, anchorId: l2, anchorSelect:
12569
12621
  });
12570
12622
 
12571
12623
  // src/widgets/advanced/table/table-head.tsx
12572
- var import_jsx_runtime46 = require("react/jsx-runtime");
12624
+ var import_jsx_runtime47 = require("react/jsx-runtime");
12573
12625
  var TableHead = (props) => {
12574
12626
  const {
12575
12627
  handleCheckBoxAll,
@@ -12579,7 +12631,7 @@ var TableHead = (props) => {
12579
12631
  onRemoveRow,
12580
12632
  onToggleColumnOptional
12581
12633
  } = props;
12582
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("thead", { className: "relative z-10", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
12634
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("thead", { className: "relative z-10", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12583
12635
  "tr",
12584
12636
  {
12585
12637
  style: {
@@ -12591,11 +12643,11 @@ var TableHead = (props) => {
12591
12643
  },
12592
12644
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
12593
12645
  children: [
12594
- isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12646
+ isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12595
12647
  "th",
12596
12648
  {
12597
12649
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
12598
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12650
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12599
12651
  "input",
12600
12652
  {
12601
12653
  type: "checkbox",
@@ -12607,14 +12659,14 @@ var TableHead = (props) => {
12607
12659
  }
12608
12660
  ),
12609
12661
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12610
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12662
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12611
12663
  "th",
12612
12664
  {
12613
12665
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12614
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12666
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12615
12667
  col.title,
12616
- col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
12617
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12668
+ col?.field?.help && /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
12669
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12618
12670
  M,
12619
12671
  {
12620
12672
  style: {
@@ -12632,7 +12684,7 @@ var TableHead = (props) => {
12632
12684
  className: "z-30"
12633
12685
  }
12634
12686
  ),
12635
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12687
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12636
12688
  "span",
12637
12689
  {
12638
12690
  style: {
@@ -12651,8 +12703,8 @@ var TableHead = (props) => {
12651
12703
  "table-head-" + index4
12652
12704
  );
12653
12705
  }),
12654
- typeof onRemoveRow === "function" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("th", { className: "relative p-2 w-[35px]" }),
12655
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12706
+ typeof onRemoveRow === "function" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("th", { className: "relative p-2 w-[35px]" }),
12707
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12656
12708
  "th",
12657
12709
  {
12658
12710
  style: {
@@ -12660,7 +12712,7 @@ var TableHead = (props) => {
12660
12712
  right: 0
12661
12713
  },
12662
12714
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
12663
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
12715
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12664
12716
  TableFilter,
12665
12717
  {
12666
12718
  columns,
@@ -12675,9 +12727,9 @@ var TableHead = (props) => {
12675
12727
  };
12676
12728
 
12677
12729
  // src/icons/empty-table-icon.tsx
12678
- var import_jsx_runtime47 = require("react/jsx-runtime");
12730
+ var import_jsx_runtime48 = require("react/jsx-runtime");
12679
12731
  var IcEmptyTable = () => {
12680
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
12732
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
12681
12733
  "svg",
12682
12734
  {
12683
12735
  xmlns: "http://www.w3.org/2000/svg",
@@ -12686,9 +12738,9 @@ var IcEmptyTable = () => {
12686
12738
  viewBox: "0 0 216 140",
12687
12739
  fill: "none",
12688
12740
  children: [
12689
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("g", { clipPath: "url(#clip0_2454_28950)", children: [
12690
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12691
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12741
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("g", { clipPath: "url(#clip0_2454_28950)", children: [
12742
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12743
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12692
12744
  "path",
12693
12745
  {
12694
12746
  d: "M64.5 0V140",
@@ -12698,7 +12750,7 @@ var IcEmptyTable = () => {
12698
12750
  strokeDasharray: "3 3"
12699
12751
  }
12700
12752
  ),
12701
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12753
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12702
12754
  "path",
12703
12755
  {
12704
12756
  d: "M151.5 0V140",
@@ -12708,7 +12760,7 @@ var IcEmptyTable = () => {
12708
12760
  strokeDasharray: "3 3"
12709
12761
  }
12710
12762
  ),
12711
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12763
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12712
12764
  "path",
12713
12765
  {
12714
12766
  d: "M215.5 24H0.5",
@@ -12718,7 +12770,7 @@ var IcEmptyTable = () => {
12718
12770
  strokeDasharray: "3 3"
12719
12771
  }
12720
12772
  ),
12721
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12773
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12722
12774
  "path",
12723
12775
  {
12724
12776
  d: "M215.5 50H0.5",
@@ -12728,7 +12780,7 @@ var IcEmptyTable = () => {
12728
12780
  strokeDasharray: "3 3"
12729
12781
  }
12730
12782
  ),
12731
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12783
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12732
12784
  "path",
12733
12785
  {
12734
12786
  d: "M215.5 88H0.5",
@@ -12738,7 +12790,7 @@ var IcEmptyTable = () => {
12738
12790
  strokeDasharray: "3 3"
12739
12791
  }
12740
12792
  ),
12741
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12793
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12742
12794
  "path",
12743
12795
  {
12744
12796
  d: "M215.5 114H0.5",
@@ -12748,7 +12800,7 @@ var IcEmptyTable = () => {
12748
12800
  strokeDasharray: "3 3"
12749
12801
  }
12750
12802
  ),
12751
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12803
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12752
12804
  "path",
12753
12805
  {
12754
12806
  d: "M199.5 0V140",
@@ -12757,7 +12809,7 @@ var IcEmptyTable = () => {
12757
12809
  strokeMiterlimit: "10"
12758
12810
  }
12759
12811
  ),
12760
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12812
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12761
12813
  "path",
12762
12814
  {
12763
12815
  d: "M16.5 0V140",
@@ -12766,7 +12818,7 @@ var IcEmptyTable = () => {
12766
12818
  strokeMiterlimit: "10"
12767
12819
  }
12768
12820
  ),
12769
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12821
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12770
12822
  "path",
12771
12823
  {
12772
12824
  d: "M0.5 16H215.5",
@@ -12775,7 +12827,7 @@ var IcEmptyTable = () => {
12775
12827
  strokeMiterlimit: "10"
12776
12828
  }
12777
12829
  ),
12778
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12830
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12779
12831
  "path",
12780
12832
  {
12781
12833
  d: "M0.5 124H215.5",
@@ -12784,7 +12836,7 @@ var IcEmptyTable = () => {
12784
12836
  strokeMiterlimit: "10"
12785
12837
  }
12786
12838
  ),
12787
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12839
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12788
12840
  "path",
12789
12841
  {
12790
12842
  opacity: "0.6",
@@ -12795,7 +12847,7 @@ var IcEmptyTable = () => {
12795
12847
  strokeLinejoin: "round"
12796
12848
  }
12797
12849
  ),
12798
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12850
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12799
12851
  "path",
12800
12852
  {
12801
12853
  opacity: "0.6",
@@ -12806,7 +12858,7 @@ var IcEmptyTable = () => {
12806
12858
  strokeLinejoin: "round"
12807
12859
  }
12808
12860
  ),
12809
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12861
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12810
12862
  "path",
12811
12863
  {
12812
12864
  opacity: "0.6",
@@ -12817,7 +12869,7 @@ var IcEmptyTable = () => {
12817
12869
  strokeLinejoin: "round"
12818
12870
  }
12819
12871
  ),
12820
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12872
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12821
12873
  "path",
12822
12874
  {
12823
12875
  opacity: "0.6",
@@ -12828,7 +12880,7 @@ var IcEmptyTable = () => {
12828
12880
  strokeLinejoin: "round"
12829
12881
  }
12830
12882
  ),
12831
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12883
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12832
12884
  "path",
12833
12885
  {
12834
12886
  opacity: "0.6",
@@ -12839,14 +12891,14 @@ var IcEmptyTable = () => {
12839
12891
  strokeLinejoin: "round"
12840
12892
  }
12841
12893
  ),
12842
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12894
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12843
12895
  "path",
12844
12896
  {
12845
12897
  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",
12846
12898
  fill: "white"
12847
12899
  }
12848
12900
  ),
12849
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12901
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12850
12902
  "path",
12851
12903
  {
12852
12904
  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",
@@ -12856,7 +12908,7 @@ var IcEmptyTable = () => {
12856
12908
  strokeLinejoin: "round"
12857
12909
  }
12858
12910
  ),
12859
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12911
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12860
12912
  "path",
12861
12913
  {
12862
12914
  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",
@@ -12865,7 +12917,7 @@ var IcEmptyTable = () => {
12865
12917
  strokeLinejoin: "round"
12866
12918
  }
12867
12919
  ),
12868
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12920
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12869
12921
  "path",
12870
12922
  {
12871
12923
  opacity: "0.6",
@@ -12876,7 +12928,7 @@ var IcEmptyTable = () => {
12876
12928
  strokeLinejoin: "round"
12877
12929
  }
12878
12930
  ),
12879
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12931
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12880
12932
  "path",
12881
12933
  {
12882
12934
  opacity: "0.6",
@@ -12887,7 +12939,7 @@ var IcEmptyTable = () => {
12887
12939
  strokeLinejoin: "round"
12888
12940
  }
12889
12941
  ),
12890
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12942
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12891
12943
  "path",
12892
12944
  {
12893
12945
  opacity: "0.6",
@@ -12898,7 +12950,7 @@ var IcEmptyTable = () => {
12898
12950
  strokeLinejoin: "round"
12899
12951
  }
12900
12952
  ),
12901
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12953
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12902
12954
  "path",
12903
12955
  {
12904
12956
  opacity: "0.6",
@@ -12909,7 +12961,7 @@ var IcEmptyTable = () => {
12909
12961
  strokeLinejoin: "round"
12910
12962
  }
12911
12963
  ),
12912
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12964
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12913
12965
  "path",
12914
12966
  {
12915
12967
  opacity: "0.6",
@@ -12920,7 +12972,7 @@ var IcEmptyTable = () => {
12920
12972
  strokeLinejoin: "round"
12921
12973
  }
12922
12974
  ),
12923
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12975
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12924
12976
  "path",
12925
12977
  {
12926
12978
  opacity: "0.6",
@@ -12931,7 +12983,7 @@ var IcEmptyTable = () => {
12931
12983
  strokeLinejoin: "round"
12932
12984
  }
12933
12985
  ),
12934
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12986
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12935
12987
  "path",
12936
12988
  {
12937
12989
  opacity: "0.6",
@@ -12942,7 +12994,7 @@ var IcEmptyTable = () => {
12942
12994
  strokeLinejoin: "round"
12943
12995
  }
12944
12996
  ),
12945
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
12997
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12946
12998
  "path",
12947
12999
  {
12948
13000
  opacity: "0.6",
@@ -12953,7 +13005,7 @@ var IcEmptyTable = () => {
12953
13005
  strokeLinejoin: "round"
12954
13006
  }
12955
13007
  ),
12956
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13008
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12957
13009
  "path",
12958
13010
  {
12959
13011
  opacity: "0.6",
@@ -12964,14 +13016,14 @@ var IcEmptyTable = () => {
12964
13016
  strokeLinejoin: "round"
12965
13017
  }
12966
13018
  ),
12967
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13019
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12968
13020
  "path",
12969
13021
  {
12970
13022
  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",
12971
13023
  fill: "white"
12972
13024
  }
12973
13025
  ),
12974
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13026
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12975
13027
  "path",
12976
13028
  {
12977
13029
  "fill-rule": "evenodd",
@@ -12980,7 +13032,7 @@ var IcEmptyTable = () => {
12980
13032
  fill: "white"
12981
13033
  }
12982
13034
  ),
12983
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13035
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12984
13036
  "path",
12985
13037
  {
12986
13038
  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",
@@ -12991,7 +13043,7 @@ var IcEmptyTable = () => {
12991
13043
  }
12992
13044
  )
12993
13045
  ] }),
12994
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13046
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
12995
13047
  "rect",
12996
13048
  {
12997
13049
  width: "215",
@@ -13006,14 +13058,14 @@ var IcEmptyTable = () => {
13006
13058
  };
13007
13059
 
13008
13060
  // src/widgets/advanced/table/empty-table.tsx
13009
- var import_jsx_runtime48 = require("react/jsx-runtime");
13061
+ var import_jsx_runtime49 = require("react/jsx-runtime");
13010
13062
  var EmptyTable = () => {
13011
13063
  const { t: t3 } = useI18n();
13012
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13013
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(IcEmptyTable, {}),
13014
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { children: [
13015
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", {}),
13016
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13064
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13065
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(IcEmptyTable, {}),
13066
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { children: [
13067
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", {}),
13068
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13017
13069
  ] })
13018
13070
  ] });
13019
13071
  };
@@ -14832,10 +14884,10 @@ function s3(o3, s4, t3) {
14832
14884
 
14833
14885
  // src/widgets/advanced/login/shared/button.tsx
14834
14886
  var React2 = __toESM(require("react"));
14835
- var import_jsx_runtime49 = require("react/jsx-runtime");
14887
+ var import_jsx_runtime50 = require("react/jsx-runtime");
14836
14888
  var Button = React2.forwardRef(
14837
14889
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
14838
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
14890
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14839
14891
  "button",
14840
14892
  {
14841
14893
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -14845,7 +14897,7 @@ var Button = React2.forwardRef(
14845
14897
  ref,
14846
14898
  type,
14847
14899
  ...props,
14848
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(LoadingIcon, { width: 20, height: 20 }) : children
14900
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(LoadingIcon, { width: 20, height: 20 }) : children
14849
14901
  }
14850
14902
  );
14851
14903
  }
@@ -14854,7 +14906,7 @@ Button.displayName = "Button";
14854
14906
 
14855
14907
  // src/widgets/advanced/login/shared/text-input.tsx
14856
14908
  var import_react18 = require("react");
14857
- var import_jsx_runtime50 = require("react/jsx-runtime");
14909
+ var import_jsx_runtime51 = require("react/jsx-runtime");
14858
14910
  function TextInput(props) {
14859
14911
  const {
14860
14912
  className,
@@ -14868,17 +14920,17 @@ function TextInput(props) {
14868
14920
  required
14869
14921
  } = props;
14870
14922
  const [showPassword, setShowPassword] = (0, import_react18.useState)(false);
14871
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14872
- label && /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14923
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14924
+ label && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14873
14925
  label,
14874
- required ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14926
+ required ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14875
14927
  ] }),
14876
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
14928
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
14877
14929
  "div",
14878
14930
  {
14879
14931
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
14880
14932
  children: [
14881
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14933
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14882
14934
  "input",
14883
14935
  {
14884
14936
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -14887,18 +14939,18 @@ function TextInput(props) {
14887
14939
  ...register(name2)
14888
14940
  }
14889
14941
  ),
14890
- type === "password" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14942
+ type === "password" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14891
14943
  "span",
14892
14944
  {
14893
14945
  onClick: () => setShowPassword(!showPassword),
14894
14946
  className: "focus:outline-none",
14895
- children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(EyeClosedIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(EyeIcon, {})
14947
+ children: showPassword ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EyeClosedIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EyeIcon, {})
14896
14948
  }
14897
14949
  )
14898
14950
  ]
14899
14951
  }
14900
14952
  ),
14901
- errors?.[name2]?.message && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14953
+ errors?.[name2]?.message && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14902
14954
  "p",
14903
14955
  {
14904
14956
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -14910,7 +14962,7 @@ function TextInput(props) {
14910
14962
 
14911
14963
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
14912
14964
  var import_react19 = require("react");
14913
- var import_jsx_runtime51 = require("react/jsx-runtime");
14965
+ var import_jsx_runtime52 = require("react/jsx-runtime");
14914
14966
  var STAY_LOGIN_IN = "stayLoginIn";
14915
14967
  function FormOptions({
14916
14968
  forgotPasswordUrl,
@@ -14936,9 +14988,9 @@ function FormOptions({
14936
14988
  (0, import_react19.useEffect)(() => {
14937
14989
  localStorage.setItem(STAY_LOGIN_IN, "false");
14938
14990
  }, []);
14939
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14940
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("label", { className: "flex gap-3", children: [
14941
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14991
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14992
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("label", { className: "flex gap-3", children: [
14993
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
14942
14994
  "input",
14943
14995
  {
14944
14996
  checked: stayLoginIn,
@@ -14947,9 +14999,9 @@ function FormOptions({
14947
14999
  onChange: handleCheckboxChange
14948
15000
  }
14949
15001
  ),
14950
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15002
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14951
15003
  ] }),
14952
- !hideForgotPassword && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15004
+ !hideForgotPassword && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14953
15005
  ] });
14954
15006
  }
14955
15007
 
@@ -14965,7 +15017,7 @@ var loginSchema = import_zod.default.object({
14965
15017
  });
14966
15018
 
14967
15019
  // src/widgets/advanced/login/provider/credential/index.tsx
14968
- var import_jsx_runtime52 = require("react/jsx-runtime");
15020
+ var import_jsx_runtime53 = require("react/jsx-runtime");
14969
15021
  var CredentialLogin = (props) => {
14970
15022
  const {
14971
15023
  shouldRenderDivider,
@@ -14985,16 +15037,16 @@ var CredentialLogin = (props) => {
14985
15037
  mode: "onChange",
14986
15038
  resolver: s3(loginSchema)
14987
15039
  });
14988
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
14989
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
15040
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
15041
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
14990
15042
  "form",
14991
15043
  {
14992
15044
  onSubmit: handleSubmit(onSubmit ?? (() => {
14993
15045
  })),
14994
15046
  className: `flex w-full h-fit flex-col gap-10`,
14995
15047
  children: [
14996
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col gap-6", children: [
14997
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
15048
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-6", children: [
15049
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
14998
15050
  TextInput,
14999
15051
  {
15000
15052
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15007,7 +15059,7 @@ var CredentialLogin = (props) => {
15007
15059
  errors
15008
15060
  }
15009
15061
  ),
15010
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
15062
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
15011
15063
  TextInput,
15012
15064
  {
15013
15065
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15020,7 +15072,7 @@ var CredentialLogin = (props) => {
15020
15072
  errors
15021
15073
  }
15022
15074
  ),
15023
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
15075
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
15024
15076
  FormOptions,
15025
15077
  {
15026
15078
  forgotPasswordUrl,
@@ -15030,7 +15082,7 @@ var CredentialLogin = (props) => {
15030
15082
  }
15031
15083
  )
15032
15084
  ] }),
15033
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
15085
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
15034
15086
  Button,
15035
15087
  {
15036
15088
  type: "submit",
@@ -15042,56 +15094,56 @@ var CredentialLogin = (props) => {
15042
15094
  ]
15043
15095
  }
15044
15096
  ),
15045
- shouldRenderDivider && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex justify-center relative", children: [
15046
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15047
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15097
+ shouldRenderDivider && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex justify-center relative", children: [
15098
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15099
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15048
15100
  ] })
15049
15101
  ] });
15050
15102
  };
15051
15103
 
15052
15104
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15053
- var import_jsx_runtime53 = require("react/jsx-runtime");
15105
+ var import_jsx_runtime54 = require("react/jsx-runtime");
15054
15106
  function GoogleButton(props) {
15055
15107
  const { onLoginGoogle, db } = props;
15056
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
15108
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
15057
15109
  "button",
15058
15110
  {
15059
15111
  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",
15060
15112
  onClick: () => onLoginGoogle?.(db),
15061
15113
  children: [
15062
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(GoogleIcon, { className: "google-icon" }),
15063
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15114
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(GoogleIcon, { className: "google-icon" }),
15115
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15064
15116
  ]
15065
15117
  }
15066
15118
  );
15067
15119
  }
15068
15120
 
15069
15121
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15070
- var import_jsx_runtime54 = require("react/jsx-runtime");
15122
+ var import_jsx_runtime55 = require("react/jsx-runtime");
15071
15123
  function SocialRedirect(props) {
15072
15124
  const { db, onLoginSocial } = props;
15073
15125
  onLoginSocial && onLoginSocial(String(db));
15074
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, {});
15126
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, {});
15075
15127
  }
15076
15128
 
15077
15129
  // src/widgets/advanced/login/provider/google/index.tsx
15078
- var import_jsx_runtime55 = require("react/jsx-runtime");
15130
+ var import_jsx_runtime56 = require("react/jsx-runtime");
15079
15131
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15080
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
15081
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(GoogleButton, { db, onLoginGoogle }),
15082
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SocialRedirect, { db, onLoginSocial })
15132
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
15133
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(GoogleButton, { db, onLoginGoogle }),
15134
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SocialRedirect, { db, onLoginSocial })
15083
15135
  ] });
15084
15136
  };
15085
15137
 
15086
15138
  // src/widgets/advanced/login/index.tsx
15087
- var import_jsx_runtime56 = require("react/jsx-runtime");
15139
+ var import_jsx_runtime57 = require("react/jsx-runtime");
15088
15140
  var LoginProviderMapping = {
15089
15141
  google: GoogleLogin
15090
15142
  };
15091
15143
  var Login = (props) => {
15092
15144
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15093
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "w-full space-y-8", children: [
15094
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15145
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "w-full space-y-8", children: [
15146
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15095
15147
  CredentialLogin,
15096
15148
  {
15097
15149
  ...props,
@@ -15101,7 +15153,7 @@ var Login = (props) => {
15101
15153
  ),
15102
15154
  providers.map((provider, index4) => {
15103
15155
  const ProviderComp = LoginProviderMapping[provider];
15104
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
15156
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15105
15157
  ProviderComp,
15106
15158
  {
15107
15159
  db,
@@ -15115,7 +15167,7 @@ var Login = (props) => {
15115
15167
  };
15116
15168
 
15117
15169
  // src/widgets/advanced/search/popup-filter/index.tsx
15118
- var import_jsx_runtime57 = require("react/jsx-runtime");
15170
+ var import_jsx_runtime58 = require("react/jsx-runtime");
15119
15171
  var PopupFilter = ({
15120
15172
  handleAddTagSearch,
15121
15173
  removeSearchItems,
@@ -15126,7 +15178,7 @@ var PopupFilter = ({
15126
15178
  fields
15127
15179
  }) => {
15128
15180
  const { t: t3 } = useI18n();
15129
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
15181
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15130
15182
  "div",
15131
15183
  {
15132
15184
  style: {
@@ -15136,25 +15188,25 @@ var PopupFilter = ({
15136
15188
  zIndex: 33
15137
15189
  },
15138
15190
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15139
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15191
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15140
15192
  "div",
15141
15193
  {
15142
15194
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15143
15195
  children: [
15144
- filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "filter-by w-full px-3", children: [
15145
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15146
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
15147
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15196
+ filterBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "filter-by w-full px-3", children: [
15197
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15198
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FilterIcon, { className: "filter-by-icon text-primary" }),
15199
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15148
15200
  ] }),
15149
15201
  filterBy?.reduce((acc, item, index4, array) => {
15150
15202
  const prevItem = array[index4 - 1];
15151
15203
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15152
15204
  const isExist = item?.active;
15153
15205
  if (isDifferentGroup) {
15154
- acc.push(/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("hr", { className: "my-2" }, "separator-" + index4));
15206
+ acc.push(/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("hr", { className: "my-2" }, "separator-" + index4));
15155
15207
  }
15156
15208
  acc.push(
15157
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15209
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15158
15210
  "button",
15159
15211
  {
15160
15212
  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)]"}`,
@@ -15179,8 +15231,8 @@ var PopupFilter = ({
15179
15231
  });
15180
15232
  },
15181
15233
  children: [
15182
- isExist && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CheckIcon, {}),
15183
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
15234
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CheckIcon, {}),
15235
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm", children: item?.string ?? item?.help })
15184
15236
  ]
15185
15237
  },
15186
15238
  "filter-" + index4
@@ -15189,16 +15241,16 @@ var PopupFilter = ({
15189
15241
  return acc;
15190
15242
  }, [])
15191
15243
  ] }),
15192
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15193
- groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "group-by w-full px-3", children: [
15194
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15195
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
15196
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15244
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15245
+ groupBy?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "group-by w-full px-3", children: [
15246
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15247
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(GroupByIcon, { className: "group-by-icon text-primary" }),
15248
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15197
15249
  ] }),
15198
15250
  groupBy?.map((item, index4) => {
15199
15251
  const isExist = item?.active;
15200
15252
  if (!item.string) return;
15201
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
15253
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15202
15254
  "button",
15203
15255
  {
15204
15256
  onClick: () => {
@@ -15222,8 +15274,8 @@ var PopupFilter = ({
15222
15274
  },
15223
15275
  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)]"}`,
15224
15276
  children: [
15225
- isExist && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(CheckIcon, {}),
15226
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-sm", children: item?.string })
15277
+ isExist && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CheckIcon, {}),
15278
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { className: "text-sm", children: item?.string })
15227
15279
  ]
15228
15280
  },
15229
15281
  "groupby-" + index4 + 1
@@ -15242,7 +15294,7 @@ var import_react21 = require("react");
15242
15294
 
15243
15295
  // src/widgets/advanced/search/tag-search/index.tsx
15244
15296
  var import_react20 = require("react");
15245
- var import_jsx_runtime58 = require("react/jsx-runtime");
15297
+ var import_jsx_runtime59 = require("react/jsx-runtime");
15246
15298
  var TagSearch = ({
15247
15299
  removeSearchItems,
15248
15300
  selectedTags,
@@ -15253,23 +15305,23 @@ var TagSearch = ({
15253
15305
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15254
15306
  if (tag?.values?.length > 0) {
15255
15307
  if (tag?.type !== "group_by") {
15256
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15308
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
15257
15309
  "div",
15258
15310
  {
15259
15311
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15260
15312
  children: [
15261
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("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__ */ (0, import_jsx_runtime58.jsx)(FilterIcon, {}) }),
15262
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15263
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react20.Fragment, { children: [
15264
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: value }),
15265
- idx < tag.values.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15313
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("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__ */ (0, import_jsx_runtime59.jsx)(FilterIcon, {}) }),
15314
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15315
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_react20.Fragment, { children: [
15316
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: value }),
15317
+ idx < tag.values.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15266
15318
  " ",
15267
15319
  instance.t("or"),
15268
15320
  " "
15269
15321
  ] })
15270
15322
  ] }, idx);
15271
15323
  }) }),
15272
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15324
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15273
15325
  "button",
15274
15326
  {
15275
15327
  className: "px-2 text-sm font-bold",
@@ -15286,7 +15338,7 @@ var TagSearch = ({
15286
15338
  );
15287
15339
  }
15288
15340
  },
15289
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15341
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15290
15342
  }
15291
15343
  )
15292
15344
  ]
@@ -15294,26 +15346,26 @@ var TagSearch = ({
15294
15346
  "selected-tag-" + index4
15295
15347
  );
15296
15348
  } else if (tag?.type === "group_by") {
15297
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15349
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15298
15350
  "div",
15299
15351
  {
15300
15352
  className: "flex min-h-full overflow-hidden",
15301
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15302
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
15353
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15354
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
15303
15355
  "div",
15304
15356
  {
15305
15357
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15306
15358
  children: [
15307
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(GroupByIcon, {}) }),
15308
- value?.strings?.map((string, idx) => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
15309
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: string }),
15310
- idx < value?.strings.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15359
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(GroupByIcon, {}) }),
15360
+ value?.strings?.map((string, idx) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
15361
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { children: string }),
15362
+ idx < value?.strings.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15311
15363
  " ",
15312
15364
  "> ",
15313
15365
  " "
15314
15366
  ] })
15315
15367
  ] })),
15316
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15368
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15317
15369
  "button",
15318
15370
  {
15319
15371
  className: "pr-2 text-sm font-bold",
@@ -15328,7 +15380,7 @@ var TagSearch = ({
15328
15380
  );
15329
15381
  }
15330
15382
  },
15331
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15383
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(CloseIcon, { className: "size-4 cursor-pointer" })
15332
15384
  }
15333
15385
  )
15334
15386
  ]
@@ -15345,7 +15397,7 @@ var TagSearch = ({
15345
15397
  };
15346
15398
 
15347
15399
  // src/widgets/advanced/search/search-list/index.tsx
15348
- var import_jsx_runtime59 = require("react/jsx-runtime");
15400
+ var import_jsx_runtime60 = require("react/jsx-runtime");
15349
15401
  var SearchList = ({
15350
15402
  handleAddTagSearch,
15351
15403
  handleMouseEnter,
@@ -15355,7 +15407,7 @@ var SearchList = ({
15355
15407
  hoveredIndexSearchList
15356
15408
  }) => {
15357
15409
  const { t: t3 } = useI18n();
15358
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15410
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15359
15411
  "div",
15360
15412
  {
15361
15413
  style: {
@@ -15367,7 +15419,7 @@ var SearchList = ({
15367
15419
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15368
15420
  return;
15369
15421
  }
15370
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
15422
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
15371
15423
  "button",
15372
15424
  {
15373
15425
  onClick: () => {
@@ -15389,12 +15441,12 @@ var SearchList = ({
15389
15441
  children: [
15390
15442
  t3("search"),
15391
15443
  " ",
15392
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "font-bold", children: searchItem?.title }),
15444
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "font-bold", children: searchItem?.title }),
15393
15445
  " ",
15394
15446
  t3("for"),
15395
15447
  ":",
15396
15448
  " ",
15397
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15449
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15398
15450
  "span",
15399
15451
  {
15400
15452
  style: {
@@ -15414,7 +15466,7 @@ var SearchList = ({
15414
15466
  };
15415
15467
 
15416
15468
  // src/widgets/advanced/search/search-item/index.tsx
15417
- var import_jsx_runtime60 = require("react/jsx-runtime");
15469
+ var import_jsx_runtime61 = require("react/jsx-runtime");
15418
15470
  var Search = ({
15419
15471
  removeSearchItems,
15420
15472
  selectedTags,
@@ -15531,15 +15583,15 @@ var Search = ({
15531
15583
  setDidInit(true);
15532
15584
  setIsReadyFormatDomain(true);
15533
15585
  }, [aid, filterBy, fieldsList]);
15534
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
15586
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
15535
15587
  "div",
15536
15588
  {
15537
15589
  ref: popupFilterRef,
15538
15590
  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)]`,
15539
15591
  children: [
15540
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "size-5", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(SearchIcon, {}) }),
15541
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15542
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15592
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "size-5", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(SearchIcon, {}) }),
15593
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15594
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15543
15595
  TagSearch,
15544
15596
  {
15545
15597
  removeSearchItems,
@@ -15549,7 +15601,7 @@ var Search = ({
15549
15601
  setGroupBy
15550
15602
  }
15551
15603
  ),
15552
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15604
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15553
15605
  "input",
15554
15606
  {
15555
15607
  value: searchString,
@@ -15562,7 +15614,7 @@ var Search = ({
15562
15614
  onKeyUp: (e3) => e3.preventDefault()
15563
15615
  }
15564
15616
  ),
15565
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15617
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15566
15618
  SearchList,
15567
15619
  {
15568
15620
  handleAddTagSearch,
@@ -15571,8 +15623,8 @@ var Search = ({
15571
15623
  }
15572
15624
  )
15573
15625
  ] }),
15574
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
15575
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
15626
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
15627
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
15576
15628
  "div",
15577
15629
  {
15578
15630
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -15581,8 +15633,8 @@ var Search = ({
15581
15633
  setShowPopupFilter((prev2) => !prev2);
15582
15634
  },
15583
15635
  children: [
15584
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15585
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15636
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15637
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15586
15638
  ChevronBottomIcon,
15587
15639
  {
15588
15640
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -15591,7 +15643,7 @@ var Search = ({
15591
15643
  ]
15592
15644
  }
15593
15645
  ),
15594
- showPopupFilter && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
15646
+ showPopupFilter && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15595
15647
  PopupFilter,
15596
15648
  {
15597
15649
  handleAddTagSearch,
@@ -15610,30 +15662,30 @@ var Search = ({
15610
15662
  };
15611
15663
 
15612
15664
  // src/widgets/basic/active-badge-field/active-badge.tsx
15613
- var import_jsx_runtime61 = require("react/jsx-runtime");
15665
+ var import_jsx_runtime62 = require("react/jsx-runtime");
15614
15666
  var ActiveBadgeField = (props) => {
15615
15667
  const { t: t3 } = useI18n();
15616
15668
  const {
15617
15669
  type,
15618
15670
  className
15619
15671
  } = props;
15620
- if (type === void 0) return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_jsx_runtime61.Fragment, {});
15672
+ if (type === void 0) return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_jsx_runtime62.Fragment, {});
15621
15673
  const typeStyle = type ? "text-green-500" : "text-red-500";
15622
15674
  const text = type ? t3("active") : t3("in_active");
15623
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: `${typeStyle} ${className}`, children: text });
15675
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: `${typeStyle} ${className}`, children: text });
15624
15676
  };
15625
15677
 
15626
15678
  // src/widgets/common/modal-layer.tsx
15627
15679
  var import_react22 = require("react");
15628
15680
  var import_react23 = require("@headlessui/react");
15629
- var import_jsx_runtime62 = require("react/jsx-runtime");
15681
+ var import_jsx_runtime63 = require("react/jsx-runtime");
15630
15682
  var ModalLayer = ({
15631
15683
  isOpen,
15632
15684
  onClose,
15633
15685
  title,
15634
15686
  children
15635
15687
  }) => {
15636
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
15688
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
15637
15689
  import_react23.Transition,
15638
15690
  {
15639
15691
  show: isOpen,
@@ -15644,22 +15696,22 @@ var ModalLayer = ({
15644
15696
  leaveFrom: "transform scale-100 opacity-100",
15645
15697
  leaveTo: "transform scale-95 opacity-0",
15646
15698
  as: import_react22.Fragment,
15647
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react23.Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react23.DialogPanel, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15648
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15649
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("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: [
15650
- /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
15699
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react23.Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react23.DialogPanel, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15700
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15701
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("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: [
15702
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
15651
15703
  "div",
15652
15704
  {
15653
15705
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
15654
15706
  children: [
15655
- title && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15656
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
15707
+ title && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15708
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
15657
15709
  "button",
15658
15710
  {
15659
15711
  onClick: onClose,
15660
15712
  "aria-label": "Close",
15661
15713
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
15662
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CloseIcon, {})
15714
+ children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CloseIcon, {})
15663
15715
  }
15664
15716
  )
15665
15717
  ]
@@ -15673,7 +15725,7 @@ var ModalLayer = ({
15673
15725
  };
15674
15726
 
15675
15727
  // src/widgets/common/modal-confirm.tsx
15676
- var import_jsx_runtime63 = require("react/jsx-runtime");
15728
+ var import_jsx_runtime64 = require("react/jsx-runtime");
15677
15729
  var ModalConfirm = ({
15678
15730
  name: name2,
15679
15731
  isShowModal,
@@ -15687,7 +15739,7 @@ var ModalConfirm = ({
15687
15739
  const renderButtonAction = (name3) => {
15688
15740
  switch (name3) {
15689
15741
  case "duplicate":
15690
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
15742
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
15691
15743
  "button",
15692
15744
  {
15693
15745
  type: "button",
@@ -15695,13 +15747,13 @@ var ModalConfirm = ({
15695
15747
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15696
15748
  disabled: isLoading,
15697
15749
  children: [
15698
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LoadingIcon, {}),
15699
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15750
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoadingIcon, {}),
15751
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15700
15752
  ]
15701
15753
  }
15702
15754
  );
15703
15755
  case "archive":
15704
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
15756
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
15705
15757
  "button",
15706
15758
  {
15707
15759
  type: "button",
@@ -15709,13 +15761,13 @@ var ModalConfirm = ({
15709
15761
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15710
15762
  disabled: isLoading,
15711
15763
  children: [
15712
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LoadingIcon, {}),
15713
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15764
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoadingIcon, {}),
15765
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15714
15766
  ]
15715
15767
  }
15716
15768
  );
15717
15769
  case "unarchive":
15718
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
15770
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
15719
15771
  "button",
15720
15772
  {
15721
15773
  type: "button",
@@ -15723,13 +15775,13 @@ var ModalConfirm = ({
15723
15775
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15724
15776
  disabled: isLoading,
15725
15777
  children: [
15726
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LoadingIcon, {}),
15727
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15778
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoadingIcon, {}),
15779
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15728
15780
  ]
15729
15781
  }
15730
15782
  );
15731
15783
  case "delete":
15732
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
15784
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
15733
15785
  "button",
15734
15786
  {
15735
15787
  type: "button",
@@ -15737,8 +15789,8 @@ var ModalConfirm = ({
15737
15789
  className: "button-primary flex-1 flex items-center justify-center gap-2",
15738
15790
  disabled: isLoading,
15739
15791
  children: [
15740
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LoadingIcon, {}),
15741
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15792
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(LoadingIcon, {}),
15793
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15742
15794
  ]
15743
15795
  }
15744
15796
  );
@@ -15746,13 +15798,13 @@ var ModalConfirm = ({
15746
15798
  break;
15747
15799
  }
15748
15800
  };
15749
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15750
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-col gap-[4px] items-center", children: [
15751
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "text-[18px] font-bold", children: title }),
15752
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: "text-[16px]", children: content })
15801
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15802
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-[4px] items-center", children: [
15803
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "text-[18px] font-bold", children: title }),
15804
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-[16px]", children: content })
15753
15805
  ] }),
15754
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15755
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
15806
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15807
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
15756
15808
  "button",
15757
15809
  {
15758
15810
  type: "button",
@@ -15769,7 +15821,7 @@ var ModalConfirm = ({
15769
15821
  // src/widgets/common/modal-detail.tsx
15770
15822
  var import_react24 = require("react");
15771
15823
  var import_react_dom2 = require("react-dom");
15772
- var import_jsx_runtime64 = require("react/jsx-runtime");
15824
+ var import_jsx_runtime65 = require("react/jsx-runtime");
15773
15825
  var ModalDetail = ({
15774
15826
  idToolTip,
15775
15827
  title,
@@ -15792,18 +15844,18 @@ var ModalDetail = ({
15792
15844
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
15793
15845
  };
15794
15846
  return (0, import_react_dom2.createPortal)(
15795
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: showModalDetail && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15796
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15797
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("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: [
15798
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15799
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
15847
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_jsx_runtime65.Fragment, { children: showModalDetail && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15848
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15849
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("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: [
15850
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15851
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
15800
15852
  "div",
15801
15853
  {
15802
15854
  id: "modal-detail",
15803
15855
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
15804
15856
  children: [
15805
15857
  t3("detail_button"),
15806
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
15858
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
15807
15859
  "button",
15808
15860
  {
15809
15861
  onClick: handleNavigateDetail,
@@ -15814,9 +15866,9 @@ var ModalDetail = ({
15814
15866
  ]
15815
15867
  }
15816
15868
  ),
15817
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(CloseIcon, { className: "h-5 w-5" }) })
15869
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(CloseIcon, { className: "h-5 w-5" }) })
15818
15870
  ] }),
15819
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15871
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15820
15872
  id: idForm,
15821
15873
  aid,
15822
15874
  model,
@@ -15831,7 +15883,7 @@ var ModalDetail = ({
15831
15883
 
15832
15884
  // src/widgets/common/loading-normal.tsx
15833
15885
  var import_react25 = require("react");
15834
- var import_jsx_runtime65 = require("react/jsx-runtime");
15886
+ var import_jsx_runtime66 = require("react/jsx-runtime");
15835
15887
  var LayerLoading = () => {
15836
15888
  const { t: t3 } = useI18n();
15837
15889
  const [activeIndex, setActiveIndex] = (0, import_react25.useState)(0);
@@ -15841,21 +15893,21 @@ var LayerLoading = () => {
15841
15893
  }, 200);
15842
15894
  return () => clearInterval(interval);
15843
15895
  }, []);
15844
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15845
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
15896
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15897
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
15846
15898
  "div",
15847
15899
  {
15848
15900
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
15849
15901
  },
15850
15902
  index4
15851
15903
  )) }),
15852
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15904
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15853
15905
  ] }) }) });
15854
15906
  };
15855
15907
 
15856
15908
  // src/widgets/common/loading-small.tsx
15857
15909
  var import_react26 = require("react");
15858
- var import_jsx_runtime66 = require("react/jsx-runtime");
15910
+ var import_jsx_runtime67 = require("react/jsx-runtime");
15859
15911
  var LoadingSmall = () => {
15860
15912
  const [activeIndex, setActiveIndex] = (0, import_react26.useState)(0);
15861
15913
  (0, import_react26.useEffect)(() => {
@@ -15864,7 +15916,7 @@ var LoadingSmall = () => {
15864
15916
  }, 200);
15865
15917
  return () => clearInterval(interval);
15866
15918
  }, []);
15867
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
15919
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
15868
15920
  "div",
15869
15921
  {
15870
15922
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -15875,7 +15927,7 @@ var LoadingSmall = () => {
15875
15927
 
15876
15928
  // src/widgets/common/video-player.tsx
15877
15929
  var import_react27 = require("react");
15878
- var import_jsx_runtime67 = require("react/jsx-runtime");
15930
+ var import_jsx_runtime68 = require("react/jsx-runtime");
15879
15931
  var VideoPlayer = ({ src }) => {
15880
15932
  const [isPlaying, setIsPlaying] = (0, import_react27.useState)(false);
15881
15933
  const videoRef = (0, import_react27.useRef)(null);
@@ -15902,8 +15954,8 @@ var VideoPlayer = ({ src }) => {
15902
15954
  }
15903
15955
  }
15904
15956
  };
15905
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("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: [
15906
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
15957
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("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: [
15958
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
15907
15959
  "video",
15908
15960
  {
15909
15961
  ref: videoRef,
@@ -15915,32 +15967,57 @@ var VideoPlayer = ({ src }) => {
15915
15967
  children: "Your browser does not support the video tag."
15916
15968
  }
15917
15969
  ),
15918
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15919
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("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__ */ (0, import_jsx_runtime67.jsx)("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(PlayIcon, {}) }) })
15970
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15971
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("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__ */ (0, import_jsx_runtime68.jsx)("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PlayIcon, {}) }) })
15920
15972
  ] });
15921
15973
  };
15922
15974
 
15923
15975
  // src/widgets/common/render-files.tsx
15924
- var import_jsx_runtime68 = require("react/jsx-runtime");
15976
+ var import_jsx_runtime69 = require("react/jsx-runtime");
15925
15977
  var ImageItem = ({
15926
15978
  filename,
15927
15979
  checksum,
15928
15980
  index: index4,
15929
15981
  src = null,
15930
- useGetImage
15982
+ useGetImage,
15983
+ size: size4,
15984
+ id,
15985
+ envFile,
15986
+ accessToken
15931
15987
  }) => {
15932
15988
  const { data: image } = useGetImage({
15933
15989
  data: { filename, checksum },
15934
15990
  queryKey: [`get-image-${""}`],
15935
15991
  src
15936
15992
  });
15937
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "relative group group/file", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
15993
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
15938
15994
  "img",
15939
15995
  {
15940
15996
  src: image || src,
15941
15997
  alt: filename,
15942
15998
  className: "w-32 h-32 object-cover rounded-md cursor-pointer"
15943
15999
  }
16000
+ ) : /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16001
+ "div",
16002
+ {
16003
+ onClick: (e3) => {
16004
+ e3?.stopPropagation();
16005
+ downloadFile(
16006
+ `${envFile}api/v2/web/content/${id}?download=true`,
16007
+ filename,
16008
+ accessToken
16009
+ );
16010
+ },
16011
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16012
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16013
+ children: [
16014
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ImageIcon, {}),
16015
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { children: [
16016
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16017
+ size4 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-[12px]", children: formatFileSize(size4) })
16018
+ ] })
16019
+ ]
16020
+ }
15944
16021
  ) }, index4);
15945
16022
  };
15946
16023
  var FileItem = (props) => {
@@ -15952,37 +16029,57 @@ var FileItem = (props) => {
15952
16029
  src,
15953
16030
  mimetype,
15954
16031
  size: size4,
15955
- useGetImage
16032
+ useGetImage,
16033
+ id,
16034
+ envFile,
16035
+ accessToken
15956
16036
  } = props;
15957
16037
  const fileTypeIcon = {
15958
- "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(PdfIcon, {}),
15959
- "application/zip": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ZipIcon, {}),
15960
- "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ZipIcon, {}),
15961
- "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ExcelIcon, {}),
15962
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ExcelIcon, {})
16038
+ "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(PdfIcon, {}),
16039
+ "application/zip": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ZipIcon, {}),
16040
+ "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ZipIcon, {}),
16041
+ "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ExcelIcon, {}),
16042
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ExcelIcon, {})
15963
16043
  };
15964
16044
  const renderFile = () => {
15965
16045
  if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
15966
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ImageItem, { ...props });
16046
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ImageItem, { ...props, useGetImage });
15967
16047
  } else if (mimetype?.includes("video")) {
15968
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(VideoPlayer, { ...props });
16048
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(VideoPlayer, { ...props });
15969
16049
  } else {
15970
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
15971
- fileTypeIcon[mimetype],
15972
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { children: [
15973
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "text-[#0A0D14] font-medium", children: filename }),
15974
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-[12px]", children: formatFileSize(size4) })
15975
- ] })
15976
- ] });
16050
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16051
+ "div",
16052
+ {
16053
+ onClick: (e3) => {
16054
+ if (accessToken) {
16055
+ e3?.stopPropagation();
16056
+ downloadFile(
16057
+ `${envFile}api/v2/web/content/${id}?download=true`,
16058
+ filename,
16059
+ accessToken
16060
+ );
16061
+ }
16062
+ },
16063
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16064
+ className: "flex items-center p-2 gap-2 overflow-hidden",
16065
+ children: [
16066
+ fileTypeIcon[mimetype],
16067
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { children: [
16068
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16069
+ size4 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-[12px]", children: formatFileSize(size4) })
16070
+ ] })
16071
+ ]
16072
+ }
16073
+ );
15977
16074
  }
15978
16075
  };
15979
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
16076
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
15980
16077
  "div",
15981
16078
  {
15982
16079
  className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
15983
16080
  children: [
15984
16081
  renderFile(),
15985
- handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16082
+ handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
15986
16083
  "div",
15987
16084
  {
15988
16085
  style: {
@@ -15993,10 +16090,10 @@ var FileItem = (props) => {
15993
16090
  },
15994
16091
  onClick: () => handleRemoveFile(index4),
15995
16092
  className: "cursor-pointer p-2 hidden group-hover:block",
15996
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DeleteIcon, {})
16093
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DeleteIcon, {})
15997
16094
  }
15998
16095
  ),
15999
- !handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16096
+ !handleRemoveFile && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16000
16097
  "span",
16001
16098
  {
16002
16099
  style: {
@@ -16008,7 +16105,7 @@ var FileItem = (props) => {
16008
16105
  },
16009
16106
  onClick: (e3) => handleFileDownload(e3, src, filename),
16010
16107
  className: "hidden group-hover:block cursor-pointer p-2 text-white ",
16011
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(DownloadIcon, {})
16108
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DownloadIcon, {})
16012
16109
  }
16013
16110
  )
16014
16111
  ]
@@ -16016,9 +16113,14 @@ var FileItem = (props) => {
16016
16113
  index4
16017
16114
  );
16018
16115
  };
16019
- var downloadFile = async (url, filename) => {
16116
+ var downloadFile = async (url, filename, accessToken) => {
16020
16117
  try {
16021
- const response = await fetch(url);
16118
+ const response = accessToken ? await fetch(url, {
16119
+ method: "GET",
16120
+ headers: {
16121
+ Authorization: `Bearer ${accessToken}`
16122
+ }
16123
+ }) : await fetch(url);
16022
16124
  if (response.ok) {
16023
16125
  const blob = await response.blob();
16024
16126
  const urlBlob = window.URL.createObjectURL(blob);
@@ -16039,7 +16141,9 @@ var downloadFile = async (url, filename) => {
16039
16141
  var RenderFiles = ({
16040
16142
  selectedFiles,
16041
16143
  setSelectedFiles,
16042
- useGetImage
16144
+ useGetImage,
16145
+ envFile,
16146
+ accessToken
16043
16147
  }) => {
16044
16148
  const handleRemoveFile = (index4) => {
16045
16149
  if (setSelectedFiles) {
@@ -16051,19 +16155,21 @@ var RenderFiles = ({
16051
16155
  e3.stopPropagation();
16052
16156
  downloadFile(url, name2);
16053
16157
  };
16054
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16055
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "relative group/file", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16158
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16159
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "relative group/file", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16056
16160
  FileItem,
16057
16161
  {
16058
16162
  ...file,
16059
16163
  src: file?.datas,
16060
- filename: file?.display_name ?? file?.name,
16164
+ filename: file?.display_name ?? file?.name ?? file?.filename,
16165
+ id: file?.id,
16061
16166
  index: index4,
16062
16167
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16063
16168
  handleFileDownload,
16064
- useGetImage
16065
- },
16066
- index4
16169
+ useGetImage,
16170
+ envFile,
16171
+ accessToken
16172
+ }
16067
16173
  ) }, file?.id ?? index4);
16068
16174
  }) });
16069
16175
  };
@@ -16254,7 +16360,7 @@ var po = $2(K("zoom"));
16254
16360
  var uo = $2(K("flip"));
16255
16361
 
16256
16362
  // src/widgets/common/select-files.tsx
16257
- var import_jsx_runtime69 = require("react/jsx-runtime");
16363
+ var import_jsx_runtime70 = require("react/jsx-runtime");
16258
16364
  var ButtonSelectFiles = ({
16259
16365
  fileInputRef,
16260
16366
  selectedFiles,
@@ -16357,8 +16463,8 @@ var ButtonSelectFiles = ({
16357
16463
  await handleUpload(formData, serivce, xNode);
16358
16464
  }
16359
16465
  };
16360
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
16361
- isPending ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16466
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
16467
+ isPending ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
16362
16468
  "button",
16363
16469
  {
16364
16470
  type: "button",
@@ -16366,12 +16472,12 @@ var ButtonSelectFiles = ({
16366
16472
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16367
16473
  onClick: () => fileInputRef.current.click(),
16368
16474
  children: [
16369
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(AttachIcon, {}),
16370
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { children: t3("upload_file_placeholder") })
16475
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(AttachIcon, {}),
16476
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { children: t3("upload_file_placeholder") })
16371
16477
  ]
16372
16478
  }
16373
16479
  ),
16374
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16480
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16375
16481
  "input",
16376
16482
  {
16377
16483
  type: "file",
@@ -16386,7 +16492,7 @@ var ButtonSelectFiles = ({
16386
16492
  };
16387
16493
 
16388
16494
  // src/widgets/basic/avatar-field/avatar.tsx
16389
- var import_jsx_runtime70 = require("react/jsx-runtime");
16495
+ var import_jsx_runtime71 = require("react/jsx-runtime");
16390
16496
  var AvatarField = (props) => {
16391
16497
  const {
16392
16498
  isForm = false,
@@ -16410,8 +16516,8 @@ var AvatarField = (props) => {
16410
16516
  color: textColor,
16411
16517
  fontSize: `${size4 / 2.5}px`
16412
16518
  };
16413
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
16414
- isForm && allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16519
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
16520
+ isForm && allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16415
16521
  ModalDetail,
16416
16522
  {
16417
16523
  idToolTip: `avatar-widget-id-${id}`,
@@ -16422,7 +16528,7 @@ var AvatarField = (props) => {
16422
16528
  place: "top-start"
16423
16529
  }
16424
16530
  ),
16425
- allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16531
+ allowShowDetail && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16426
16532
  M,
16427
16533
  {
16428
16534
  id: `avatar-widget-id-${id}`,
@@ -16431,7 +16537,7 @@ var AvatarField = (props) => {
16431
16537
  className: "z-20"
16432
16538
  }
16433
16539
  ),
16434
- avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16540
+ avatarSrc ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16435
16541
  "img",
16436
16542
  {
16437
16543
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16439,7 +16545,7 @@ var AvatarField = (props) => {
16439
16545
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16440
16546
  alt: "Avatar"
16441
16547
  }
16442
- ) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16548
+ ) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16443
16549
  "div",
16444
16550
  {
16445
16551
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16452,7 +16558,7 @@ var AvatarField = (props) => {
16452
16558
  };
16453
16559
 
16454
16560
  // src/widgets/basic/binary-field/binary.tsx
16455
- var import_jsx_runtime71 = require("react/jsx-runtime");
16561
+ var import_jsx_runtime72 = require("react/jsx-runtime");
16456
16562
  var BinaryField = (props) => {
16457
16563
  const {
16458
16564
  name: name2,
@@ -16475,7 +16581,7 @@ var BinaryField = (props) => {
16475
16581
  image
16476
16582
  } = props;
16477
16583
  const { t: t3 } = useI18n();
16478
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16584
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16479
16585
  Controller,
16480
16586
  {
16481
16587
  name: name2 ?? "",
@@ -16485,13 +16591,13 @@ var BinaryField = (props) => {
16485
16591
  },
16486
16592
  render: ({ field }) => {
16487
16593
  const renderImage = initialImage || selectedImage;
16488
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16594
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16489
16595
  "div",
16490
16596
  {
16491
16597
  ref: binaryRef,
16492
16598
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16493
- children: renderImage ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "relative group", children: [
16494
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16599
+ children: renderImage ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "relative group", children: [
16600
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16495
16601
  "img",
16496
16602
  {
16497
16603
  style: {
@@ -16502,7 +16608,7 @@ var BinaryField = (props) => {
16502
16608
  alt: "Selected",
16503
16609
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16504
16610
  }
16505
- ) : renderImage ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16611
+ ) : renderImage ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16506
16612
  "img",
16507
16613
  {
16508
16614
  style: {
@@ -16513,17 +16619,17 @@ var BinaryField = (props) => {
16513
16619
  alt: "Selected",
16514
16620
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16515
16621
  }
16516
- ) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(PlaceHolderIcon, {}),
16517
- !isInsideTable && !readonly && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16622
+ ) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(PlaceHolderIcon, {}),
16623
+ !isInsideTable && !readonly && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16518
16624
  "button",
16519
16625
  {
16520
16626
  type: "button",
16521
16627
  onClick: () => handleRemoveImage(field.onChange),
16522
16628
  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",
16523
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DeleteIcon, {})
16629
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(DeleteIcon, {})
16524
16630
  }
16525
16631
  )
16526
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
16632
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
16527
16633
  "label",
16528
16634
  {
16529
16635
  htmlFor: inputId,
@@ -16533,7 +16639,7 @@ var BinaryField = (props) => {
16533
16639
  },
16534
16640
  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"}`,
16535
16641
  children: [
16536
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16642
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16537
16643
  "input",
16538
16644
  {
16539
16645
  id: inputId,
@@ -16545,8 +16651,8 @@ var BinaryField = (props) => {
16545
16651
  className: "hidden z-10 relative"
16546
16652
  }
16547
16653
  ),
16548
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("img", { src: image, alt: "", className: "z-0 relative" }),
16549
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16654
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("img", { src: image, alt: "", className: "z-0 relative" }),
16655
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16550
16656
  "div",
16551
16657
  {
16552
16658
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -16555,7 +16661,7 @@ var BinaryField = (props) => {
16555
16661
  left: "-8px",
16556
16662
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16557
16663
  },
16558
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16664
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16559
16665
  "svg",
16560
16666
  {
16561
16667
  xmlns: "http://www.w3.org/2000/svg",
@@ -16563,7 +16669,7 @@ var BinaryField = (props) => {
16563
16669
  height: "14",
16564
16670
  viewBox: "0 0 14 14",
16565
16671
  fill: "none",
16566
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16672
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16567
16673
  "path",
16568
16674
  {
16569
16675
  "fill-rule": "evenodd",
@@ -16587,7 +16693,7 @@ var BinaryField = (props) => {
16587
16693
  };
16588
16694
 
16589
16695
  // src/widgets/basic/button-badge-field/button-badge.tsx
16590
- var import_jsx_runtime72 = require("react/jsx-runtime");
16696
+ var import_jsx_runtime73 = require("react/jsx-runtime");
16591
16697
  var typeStyles = {
16592
16698
  primary: {
16593
16699
  backgroundColor: "#3b82f6",
@@ -16662,11 +16768,11 @@ var ButtonBadgeField = (props) => {
16662
16768
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16663
16769
  };
16664
16770
  const label = getLabel(defaultValue ?? value);
16665
- return label ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16771
+ return label ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16666
16772
  };
16667
16773
 
16668
16774
  // src/widgets/basic/button-field/button.tsx
16669
- var import_jsx_runtime73 = require("react/jsx-runtime");
16775
+ var import_jsx_runtime74 = require("react/jsx-runtime");
16670
16776
  var ButtonField = (props) => {
16671
16777
  const {
16672
16778
  func,
@@ -16677,7 +16783,7 @@ var ButtonField = (props) => {
16677
16783
  type = "submit"
16678
16784
  } = props;
16679
16785
  const { t: t3 } = useI18n();
16680
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_jsx_runtime73.Fragment, { children: !loading ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
16786
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, { children: !loading ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16681
16787
  "button",
16682
16788
  {
16683
16789
  type,
@@ -16686,7 +16792,7 @@ var ButtonField = (props) => {
16686
16792
  onClick: func,
16687
16793
  children: t3(content)
16688
16794
  }
16689
- ) : /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
16795
+ ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
16690
16796
  "button",
16691
16797
  {
16692
16798
  type,
@@ -16695,7 +16801,7 @@ var ButtonField = (props) => {
16695
16801
  children: [
16696
16802
  t3("loading"),
16697
16803
  " ",
16698
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LoadingIcon, {})
16804
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(LoadingIcon, {})
16699
16805
  ]
16700
16806
  }
16701
16807
  ) });
@@ -16703,7 +16809,7 @@ var ButtonField = (props) => {
16703
16809
 
16704
16810
  // src/widgets/basic/char-field/char.tsx
16705
16811
  var import_react39 = require("react");
16706
- var import_jsx_runtime74 = require("react/jsx-runtime");
16812
+ var import_jsx_runtime75 = require("react/jsx-runtime");
16707
16813
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16708
16814
  var CharField = (props) => {
16709
16815
  const {
@@ -16731,9 +16837,9 @@ var CharField = (props) => {
16731
16837
  } = props;
16732
16838
  if (!isForm && !isEditTable) {
16733
16839
  const propValue = value || defaultValue;
16734
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16840
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16735
16841
  }
16736
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16842
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16737
16843
  Controller,
16738
16844
  {
16739
16845
  name: name2 ?? "",
@@ -16787,8 +16893,8 @@ var CharField = (props) => {
16787
16893
  }
16788
16894
  return "";
16789
16895
  }, [widget, formValues]);
16790
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
16791
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16896
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
16897
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16792
16898
  "input",
16793
16899
  {
16794
16900
  value: displayValue ?? "",
@@ -16849,7 +16955,7 @@ var CharField = (props) => {
16849
16955
  `
16850
16956
  }
16851
16957
  ),
16852
- isEditTable ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_jsx_runtime74.Fragment, { children: error2 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16958
+ isEditTable ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, { children: error2 && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16853
16959
  ] });
16854
16960
  }
16855
16961
  }
@@ -16857,7 +16963,7 @@ var CharField = (props) => {
16857
16963
  };
16858
16964
 
16859
16965
  // src/widgets/basic/checkbox-field/checkbox.tsx
16860
- var import_jsx_runtime75 = require("react/jsx-runtime");
16966
+ var import_jsx_runtime76 = require("react/jsx-runtime");
16861
16967
  var CheckboxField = (props) => {
16862
16968
  const {
16863
16969
  name: name2,
@@ -16872,9 +16978,9 @@ var CheckboxField = (props) => {
16872
16978
  } = props;
16873
16979
  if (!isForm) {
16874
16980
  if (name2 === "is_active" || name2 === "active") {
16875
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ActiveBadgeField, { type: value });
16981
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ActiveBadgeField, { type: value });
16876
16982
  } else {
16877
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16983
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
16878
16984
  "input",
16879
16985
  {
16880
16986
  type: "checkbox",
@@ -16885,12 +16991,12 @@ var CheckboxField = (props) => {
16885
16991
  );
16886
16992
  }
16887
16993
  }
16888
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16994
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
16889
16995
  Controller,
16890
16996
  {
16891
16997
  name: name2 ?? "",
16892
16998
  control: methods?.control,
16893
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16999
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
16894
17000
  "div",
16895
17001
  {
16896
17002
  className: "flex items-center gap-2",
@@ -16903,7 +17009,7 @@ var CheckboxField = (props) => {
16903
17009
  onChange2(name2 ?? "", checked);
16904
17010
  }
16905
17011
  },
16906
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17012
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
16907
17013
  "input",
16908
17014
  {
16909
17015
  ...field,
@@ -16931,7 +17037,7 @@ var CheckboxField = (props) => {
16931
17037
 
16932
17038
  // src/widgets/basic/color-field/color-wrapper.tsx
16933
17039
  var import_react40 = require("react");
16934
- var import_jsx_runtime76 = require("react/jsx-runtime");
17040
+ var import_jsx_runtime77 = require("react/jsx-runtime");
16935
17041
  var ColorWrapper = (props) => {
16936
17042
  const {
16937
17043
  colors: colors2,
@@ -16958,8 +17064,8 @@ var ColorWrapper = (props) => {
16958
17064
  document.removeEventListener("mousedown", handleClickOutside);
16959
17065
  };
16960
17066
  }, []);
16961
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { children: [
16962
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17067
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { children: [
17068
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
16963
17069
  "button",
16964
17070
  {
16965
17071
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -16973,7 +17079,7 @@ var ColorWrapper = (props) => {
16973
17079
  }
16974
17080
  }
16975
17081
  ),
16976
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17082
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
16977
17083
  M,
16978
17084
  {
16979
17085
  className: "",
@@ -16982,8 +17088,8 @@ var ColorWrapper = (props) => {
16982
17088
  content: i18n_default.t(color?.name)
16983
17089
  }
16984
17090
  )
16985
- ] }, color?.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
16986
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17091
+ ] }, color?.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
17092
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
16987
17093
  "button",
16988
17094
  {
16989
17095
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -16996,7 +17102,7 @@ var ColorWrapper = (props) => {
16996
17102
  style: { backgroundColor: selectedColor?.color }
16997
17103
  }
16998
17104
  ),
16999
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17105
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17000
17106
  M,
17001
17107
  {
17002
17108
  place: "top",
@@ -17008,13 +17114,13 @@ var ColorWrapper = (props) => {
17008
17114
  };
17009
17115
 
17010
17116
  // src/widgets/basic/color-field/color.tsx
17011
- var import_jsx_runtime77 = require("react/jsx-runtime");
17117
+ var import_jsx_runtime78 = require("react/jsx-runtime");
17012
17118
  var ColorField = (props) => {
17013
17119
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17014
17120
  if (!isForm) {
17015
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17121
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17016
17122
  }
17017
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17123
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17018
17124
  Controller,
17019
17125
  {
17020
17126
  name: name2 ?? "",
@@ -17024,7 +17130,7 @@ var ColorField = (props) => {
17024
17130
  field.onChange(color?.id);
17025
17131
  onChange2 && onChange2(name2 ?? "", color?.id);
17026
17132
  };
17027
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
17133
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17028
17134
  ColorWrapper,
17029
17135
  {
17030
17136
  savePickColor: handlePickColorChange,
@@ -17039,7 +17145,7 @@ var ColorField = (props) => {
17039
17145
 
17040
17146
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17041
17147
  var import_react41 = require("react");
17042
- var import_jsx_runtime78 = require("react/jsx-runtime");
17148
+ var import_jsx_runtime79 = require("react/jsx-runtime");
17043
17149
  var CopyLinkButtonField = (props) => {
17044
17150
  const {
17045
17151
  isForm,
@@ -17058,9 +17164,9 @@ var CopyLinkButtonField = (props) => {
17058
17164
  } = props;
17059
17165
  const { t: t3 } = useI18n();
17060
17166
  if (!isForm) {
17061
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17167
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17062
17168
  }
17063
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17169
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17064
17170
  Controller,
17065
17171
  {
17066
17172
  name: name2 ?? "",
@@ -17078,8 +17184,8 @@ var CopyLinkButtonField = (props) => {
17078
17184
  clearErrors(name2);
17079
17185
  }
17080
17186
  }, [value]);
17081
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "relative", children: [
17082
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
17187
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "relative", children: [
17188
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
17083
17189
  "div",
17084
17190
  {
17085
17191
  "aria-disabled": readonly,
@@ -17088,7 +17194,7 @@ var CopyLinkButtonField = (props) => {
17088
17194
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17089
17195
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17090
17196
  children: [
17091
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17197
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17092
17198
  "input",
17093
17199
  {
17094
17200
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17129,19 +17235,19 @@ var CopyLinkButtonField = (props) => {
17129
17235
  `
17130
17236
  }
17131
17237
  ),
17132
- readonly && value && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
17238
+ readonly && value && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
17133
17239
  "button",
17134
17240
  {
17135
17241
  className: "cursor-pointer",
17136
17242
  type: "button",
17137
17243
  onClick: () => handleCopyToClipboard(propValue),
17138
- children: isCopied ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CheckIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CopyIcon, {})
17244
+ children: isCopied ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CheckIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CopyIcon, {})
17139
17245
  }
17140
17246
  )
17141
17247
  ]
17142
17248
  }
17143
17249
  ),
17144
- error2 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17250
+ error2 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17145
17251
  ] });
17146
17252
  }
17147
17253
  }
@@ -21082,7 +21188,7 @@ function useEffectEvent(callback) {
21082
21188
  }
21083
21189
 
21084
21190
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21085
- var import_jsx_runtime79 = require("react/jsx-runtime");
21191
+ var import_jsx_runtime80 = require("react/jsx-runtime");
21086
21192
  var ReactDOM2 = __toESM(require("react-dom"), 1);
21087
21193
 
21088
21194
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21480,7 +21586,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21480
21586
  bottom: isCustomShape ? "" : "rotate(180deg)",
21481
21587
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21482
21588
  }[side];
21483
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("svg", {
21589
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("svg", {
21484
21590
  ...rest,
21485
21591
  "aria-hidden": true,
21486
21592
  ref,
@@ -21496,18 +21602,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21496
21602
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21497
21603
  ...restStyle
21498
21604
  },
21499
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", {
21605
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", {
21500
21606
  clipPath: "url(#" + clipPathId + ")",
21501
21607
  fill: "none",
21502
21608
  stroke,
21503
21609
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21504
21610
  d: dValue
21505
- }), /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("path", {
21611
+ }), /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", {
21506
21612
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21507
21613
  d: dValue
21508
- }), /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("clipPath", {
21614
+ }), /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("clipPath", {
21509
21615
  id: clipPathId,
21510
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("rect", {
21616
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("rect", {
21511
21617
  x: -halfStrokeWidth,
21512
21618
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21513
21619
  width: width + computedStrokeWidth,
@@ -27440,7 +27546,7 @@ var Emotion$1 = Emotion;
27440
27546
  var React12 = __toESM(require("react"));
27441
27547
  var import_extends2 = __toESM(require_extends());
27442
27548
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27443
- var jsx80 = function jsx81(type, props) {
27549
+ var jsx81 = function jsx82(type, props) {
27444
27550
  var args = arguments;
27445
27551
  if (props == null || !hasOwn.call(props, "css")) {
27446
27552
  return React12.createElement.apply(void 0, args);
@@ -27458,7 +27564,7 @@ var jsx80 = function jsx81(type, props) {
27458
27564
  var JSX;
27459
27565
  /* @__PURE__ */ (function(_JSX) {
27460
27566
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27461
- })(jsx80 || (jsx80 = {}));
27567
+ })(jsx81 || (jsx81 = {}));
27462
27568
  function css() {
27463
27569
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27464
27570
  args[_key] = arguments[_key];
@@ -27866,7 +27972,7 @@ var MenuPlacer = function MenuPlacer2(props) {
27866
27972
  };
27867
27973
  var Menu = function Menu2(props) {
27868
27974
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
27869
- return jsx80("div", _extends({}, getStyleProps(props, "menu", {
27975
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
27870
27976
  menu: true
27871
27977
  }), {
27872
27978
  ref: innerRef
@@ -27888,7 +27994,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
27888
27994
  };
27889
27995
  var MenuList = function MenuList2(props) {
27890
27996
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
27891
- return jsx80("div", _extends({}, getStyleProps(props, "menuList", {
27997
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
27892
27998
  "menu-list": true,
27893
27999
  "menu-list--is-multi": isMulti
27894
28000
  }), {
@@ -27908,7 +28014,7 @@ var noOptionsMessageCSS = noticeCSS;
27908
28014
  var loadingMessageCSS = noticeCSS;
27909
28015
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27910
28016
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
27911
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28017
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27912
28018
  children,
27913
28019
  innerProps
27914
28020
  }), "noOptionsMessage", {
@@ -27918,7 +28024,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27918
28024
  };
27919
28025
  var LoadingMessage = function LoadingMessage2(_ref7) {
27920
28026
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
27921
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28027
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27922
28028
  children,
27923
28029
  innerProps
27924
28030
  }), "loadingMessage", {
@@ -27981,7 +28087,7 @@ var MenuPortal = function MenuPortal2(props) {
27981
28087
  runAutoUpdate();
27982
28088
  }, [runAutoUpdate]);
27983
28089
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
27984
- var menuWrapper = jsx80("div", _extends({
28090
+ var menuWrapper = jsx81("div", _extends({
27985
28091
  ref: setMenuPortalElement
27986
28092
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
27987
28093
  offset: computedPosition.offset,
@@ -27990,7 +28096,7 @@ var MenuPortal = function MenuPortal2(props) {
27990
28096
  }), "menuPortal", {
27991
28097
  "menu-portal": true
27992
28098
  }), innerProps), children);
27993
- return jsx80(PortalPlacementContext.Provider, {
28099
+ return jsx81(PortalPlacementContext.Provider, {
27994
28100
  value: portalPlacementContext
27995
28101
  }, appendTo ? /* @__PURE__ */ (0, import_react_dom6.createPortal)(menuWrapper, appendTo) : menuWrapper);
27996
28102
  };
@@ -28006,7 +28112,7 @@ var containerCSS = function containerCSS2(_ref3) {
28006
28112
  };
28007
28113
  var SelectContainer = function SelectContainer2(props) {
28008
28114
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28009
- return jsx80("div", _extends({}, getStyleProps(props, "container", {
28115
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
28010
28116
  "--is-disabled": isDisabled,
28011
28117
  "--is-rtl": isRtl
28012
28118
  }), innerProps), children);
@@ -28027,7 +28133,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28027
28133
  };
28028
28134
  var ValueContainer = function ValueContainer2(props) {
28029
28135
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28030
- return jsx80("div", _extends({}, getStyleProps(props, "valueContainer", {
28136
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28031
28137
  "value-container": true,
28032
28138
  "value-container--is-multi": isMulti,
28033
28139
  "value-container--has-value": hasValue
@@ -28043,7 +28149,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28043
28149
  };
28044
28150
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28045
28151
  var children = props.children, innerProps = props.innerProps;
28046
- return jsx80("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28152
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28047
28153
  indicators: true
28048
28154
  }), innerProps), children);
28049
28155
  };
@@ -28064,7 +28170,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28064
28170
  };
28065
28171
  var Svg = function Svg2(_ref3) {
28066
28172
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28067
- return jsx80("svg", _extends({
28173
+ return jsx81("svg", _extends({
28068
28174
  height: size4,
28069
28175
  width: size4,
28070
28176
  viewBox: "0 0 20 20",
@@ -28074,16 +28180,16 @@ var Svg = function Svg2(_ref3) {
28074
28180
  }, props));
28075
28181
  };
28076
28182
  var CrossIcon = function CrossIcon2(props) {
28077
- return jsx80(Svg, _extends({
28183
+ return jsx81(Svg, _extends({
28078
28184
  size: 20
28079
- }, props), jsx80("path", {
28185
+ }, props), jsx81("path", {
28080
28186
  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"
28081
28187
  }));
28082
28188
  };
28083
28189
  var DownChevron = function DownChevron2(props) {
28084
- return jsx80(Svg, _extends({
28190
+ return jsx81(Svg, _extends({
28085
28191
  size: 20
28086
- }, props), jsx80("path", {
28192
+ }, props), jsx81("path", {
28087
28193
  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"
28088
28194
  }));
28089
28195
  };
@@ -28104,18 +28210,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28104
28210
  var dropdownIndicatorCSS = baseCSS;
28105
28211
  var DropdownIndicator = function DropdownIndicator2(props) {
28106
28212
  var children = props.children, innerProps = props.innerProps;
28107
- return jsx80("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28213
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28108
28214
  indicator: true,
28109
28215
  "dropdown-indicator": true
28110
- }), innerProps), children || jsx80(DownChevron, null));
28216
+ }), innerProps), children || jsx81(DownChevron, null));
28111
28217
  };
28112
28218
  var clearIndicatorCSS = baseCSS;
28113
28219
  var ClearIndicator = function ClearIndicator2(props) {
28114
28220
  var children = props.children, innerProps = props.innerProps;
28115
- return jsx80("div", _extends({}, getStyleProps(props, "clearIndicator", {
28221
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28116
28222
  indicator: true,
28117
28223
  "clear-indicator": true
28118
- }), innerProps), children || jsx80(CrossIcon, null));
28224
+ }), innerProps), children || jsx81(CrossIcon, null));
28119
28225
  };
28120
28226
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28121
28227
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28131,7 +28237,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28131
28237
  };
28132
28238
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28133
28239
  var innerProps = props.innerProps;
28134
- return jsx80("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28240
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28135
28241
  "indicator-separator": true
28136
28242
  })));
28137
28243
  };
@@ -28155,7 +28261,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28155
28261
  };
28156
28262
  var LoadingDot = function LoadingDot2(_ref6) {
28157
28263
  var delay = _ref6.delay, offset4 = _ref6.offset;
28158
- return jsx80("span", {
28264
+ return jsx81("span", {
28159
28265
  css: /* @__PURE__ */ css({
28160
28266
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28161
28267
  backgroundColor: "currentColor",
@@ -28170,20 +28276,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28170
28276
  };
28171
28277
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28172
28278
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28173
- return jsx80("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28279
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28174
28280
  innerProps,
28175
28281
  isRtl,
28176
28282
  size: size4
28177
28283
  }), "loadingIndicator", {
28178
28284
  indicator: true,
28179
28285
  "loading-indicator": true
28180
- }), innerProps), jsx80(LoadingDot, {
28286
+ }), innerProps), jsx81(LoadingDot, {
28181
28287
  delay: 0,
28182
28288
  offset: isRtl
28183
- }), jsx80(LoadingDot, {
28289
+ }), jsx81(LoadingDot, {
28184
28290
  delay: 160,
28185
28291
  offset: true
28186
- }), jsx80(LoadingDot, {
28292
+ }), jsx81(LoadingDot, {
28187
28293
  delay: 320,
28188
28294
  offset: !isRtl
28189
28295
  }));
@@ -28215,7 +28321,7 @@ var css$1 = function css2(_ref3, unstyled) {
28215
28321
  };
28216
28322
  var Control = function Control2(props) {
28217
28323
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28218
- return jsx80("div", _extends({
28324
+ return jsx81("div", _extends({
28219
28325
  ref: innerRef
28220
28326
  }, getStyleProps(props, "control", {
28221
28327
  control: true,
@@ -28237,15 +28343,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28237
28343
  };
28238
28344
  var Group = function Group2(props) {
28239
28345
  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;
28240
- return jsx80("div", _extends({}, getStyleProps(props, "group", {
28346
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28241
28347
  group: true
28242
- }), innerProps), jsx80(Heading, _extends({}, headingProps, {
28348
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28243
28349
  selectProps,
28244
28350
  theme,
28245
28351
  getStyles,
28246
28352
  getClassNames,
28247
28353
  cx
28248
- }), label), jsx80("div", null, children));
28354
+ }), label), jsx81("div", null, children));
28249
28355
  };
28250
28356
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28251
28357
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28267,7 +28373,7 @@ var GroupHeading = function GroupHeading2(props) {
28267
28373
  var _cleanCommonProps = cleanCommonProps(props);
28268
28374
  _cleanCommonProps.data;
28269
28375
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28270
- return jsx80("div", _extends({}, getStyleProps(props, "groupHeading", {
28376
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28271
28377
  "group-heading": true
28272
28378
  }), innerProps));
28273
28379
  };
@@ -28319,11 +28425,11 @@ var inputStyle = function inputStyle2(isHidden) {
28319
28425
  var Input = function Input2(props) {
28320
28426
  var cx = props.cx, value = props.value;
28321
28427
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28322
- return jsx80("div", _extends({}, getStyleProps(props, "input", {
28428
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28323
28429
  "input-container": true
28324
28430
  }), {
28325
28431
  "data-value": value || ""
28326
- }), jsx80("input", _extends({
28432
+ }), jsx81("input", _extends({
28327
28433
  className: cx({
28328
28434
  input: true
28329
28435
  }, inputClassName),
@@ -28377,35 +28483,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28377
28483
  };
28378
28484
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28379
28485
  var children = _ref4.children, innerProps = _ref4.innerProps;
28380
- return jsx80("div", innerProps, children);
28486
+ return jsx81("div", innerProps, children);
28381
28487
  };
28382
28488
  var MultiValueContainer = MultiValueGeneric;
28383
28489
  var MultiValueLabel = MultiValueGeneric;
28384
28490
  function MultiValueRemove(_ref5) {
28385
28491
  var children = _ref5.children, innerProps = _ref5.innerProps;
28386
- return jsx80("div", _extends({
28492
+ return jsx81("div", _extends({
28387
28493
  role: "button"
28388
- }, innerProps), children || jsx80(CrossIcon, {
28494
+ }, innerProps), children || jsx81(CrossIcon, {
28389
28495
  size: 14
28390
28496
  }));
28391
28497
  }
28392
28498
  var MultiValue = function MultiValue2(props) {
28393
28499
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28394
28500
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28395
- return jsx80(Container, {
28501
+ return jsx81(Container, {
28396
28502
  data,
28397
28503
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28398
28504
  "multi-value": true,
28399
28505
  "multi-value--is-disabled": isDisabled
28400
28506
  })), innerProps),
28401
28507
  selectProps
28402
- }, jsx80(Label, {
28508
+ }, jsx81(Label, {
28403
28509
  data,
28404
28510
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28405
28511
  "multi-value__label": true
28406
28512
  })),
28407
28513
  selectProps
28408
- }, children), jsx80(Remove, {
28514
+ }, children), jsx81(Remove, {
28409
28515
  data,
28410
28516
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28411
28517
  "multi-value__remove": true
@@ -28438,7 +28544,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28438
28544
  };
28439
28545
  var Option = function Option2(props) {
28440
28546
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28441
- return jsx80("div", _extends({}, getStyleProps(props, "option", {
28547
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
28442
28548
  option: true,
28443
28549
  "option--is-disabled": isDisabled,
28444
28550
  "option--is-focused": isFocused,
@@ -28462,7 +28568,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28462
28568
  };
28463
28569
  var Placeholder = function Placeholder2(props) {
28464
28570
  var children = props.children, innerProps = props.innerProps;
28465
- return jsx80("div", _extends({}, getStyleProps(props, "placeholder", {
28571
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28466
28572
  placeholder: true
28467
28573
  }), innerProps), children);
28468
28574
  };
@@ -28484,7 +28590,7 @@ var css3 = function css4(_ref3, unstyled) {
28484
28590
  };
28485
28591
  var SingleValue = function SingleValue2(props) {
28486
28592
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28487
- return jsx80("div", _extends({}, getStyleProps(props, "singleValue", {
28593
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28488
28594
  "single-value": true,
28489
28595
  "single-value--is-disabled": isDisabled
28490
28596
  }), innerProps), children);
@@ -28586,7 +28692,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28586
28692
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28587
28693
  };
28588
28694
  var A11yText = function A11yText2(props) {
28589
- return jsx80("span", _extends({
28695
+ return jsx81("span", _extends({
28590
28696
  css: _ref
28591
28697
  }, props));
28592
28698
  };
@@ -28721,18 +28827,18 @@ var LiveRegion = function LiveRegion2(props) {
28721
28827
  }
28722
28828
  return guidanceMsg;
28723
28829
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28724
- var ScreenReaderText = jsx80(import_react51.Fragment, null, jsx80("span", {
28830
+ var ScreenReaderText = jsx81(import_react51.Fragment, null, jsx81("span", {
28725
28831
  id: "aria-selection"
28726
- }, ariaSelected), jsx80("span", {
28832
+ }, ariaSelected), jsx81("span", {
28727
28833
  id: "aria-focused"
28728
- }, ariaFocused), jsx80("span", {
28834
+ }, ariaFocused), jsx81("span", {
28729
28835
  id: "aria-results"
28730
- }, ariaResults), jsx80("span", {
28836
+ }, ariaResults), jsx81("span", {
28731
28837
  id: "aria-guidance"
28732
28838
  }, ariaGuidance));
28733
- return jsx80(import_react51.Fragment, null, jsx80(A11yText$1, {
28839
+ return jsx81(import_react51.Fragment, null, jsx81(A11yText$1, {
28734
28840
  id
28735
- }, isInitialFocus && ScreenReaderText), jsx80(A11yText$1, {
28841
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
28736
28842
  "aria-live": ariaLive,
28737
28843
  "aria-atomic": "false",
28738
28844
  "aria-relevant": "additions text",
@@ -29045,7 +29151,7 @@ var _excluded4 = ["innerRef"];
29045
29151
  function DummyInput(_ref3) {
29046
29152
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29047
29153
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29048
- return jsx80("input", _extends({
29154
+ return jsx81("input", _extends({
29049
29155
  ref: innerRef
29050
29156
  }, filteredProps, {
29051
29157
  css: /* @__PURE__ */ css({
@@ -29287,7 +29393,7 @@ function ScrollManager(_ref3) {
29287
29393
  setScrollCaptureTarget(element);
29288
29394
  setScrollLockTarget(element);
29289
29395
  };
29290
- return jsx80(import_react51.Fragment, null, lockEnabled && jsx80("div", {
29396
+ return jsx81(import_react51.Fragment, null, lockEnabled && jsx81("div", {
29291
29397
  onClick: blurSelectInput,
29292
29398
  css: _ref2$1
29293
29399
  }), children(targetRef));
@@ -29306,7 +29412,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29306
29412
  };
29307
29413
  var RequiredInput = function RequiredInput2(_ref3) {
29308
29414
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29309
- return jsx80("input", {
29415
+ return jsx81("input", {
29310
29416
  required: true,
29311
29417
  name: name2,
29312
29418
  tabIndex: -1,
@@ -30896,7 +31002,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30896
31002
 
30897
31003
  // src/widgets/basic/date-field/date.tsx
30898
31004
  var import_moment2 = __toESM(require_moment());
30899
- var import_jsx_runtime80 = require("react/jsx-runtime");
31005
+ var import_jsx_runtime81 = require("react/jsx-runtime");
30900
31006
  var DateField = (props) => {
30901
31007
  const {
30902
31008
  name: name2,
@@ -30924,8 +31030,8 @@ var DateField = (props) => {
30924
31030
  } = props;
30925
31031
  const { t: t3 } = useI18n();
30926
31032
  const InputDateCustom = (0, import_react54.forwardRef)(
30927
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("label", { className: `flex ${className}`, children: [
30928
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31033
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("label", { className: `flex ${className}`, children: [
31034
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
30929
31035
  "input",
30930
31036
  {
30931
31037
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -30939,13 +31045,13 @@ var DateField = (props) => {
30939
31045
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
30940
31046
  }
30941
31047
  ),
30942
- isForm2 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(CalendarIcon, {})
31048
+ isForm2 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(CalendarIcon, {})
30943
31049
  ] })
30944
31050
  );
30945
31051
  if (!isForm && !isEditTable) {
30946
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31052
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30947
31053
  } else {
30948
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31054
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
30949
31055
  Controller,
30950
31056
  {
30951
31057
  name: name2 || "",
@@ -30967,8 +31073,8 @@ var DateField = (props) => {
30967
31073
  }
30968
31074
  }, [value, clearErrors, name2]);
30969
31075
  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;
30970
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
30971
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31076
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
31077
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
30972
31078
  DatePicker,
30973
31079
  {
30974
31080
  selected: selectedDate,
@@ -31016,7 +31122,7 @@ var DateField = (props) => {
31016
31122
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31017
31123
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31018
31124
  showTimeInput: showTime,
31019
- customInput: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31125
+ customInput: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31020
31126
  InputDateCustom,
31021
31127
  {
31022
31128
  isForm,
@@ -31034,7 +31140,7 @@ var DateField = (props) => {
31034
31140
  increaseMonth,
31035
31141
  prevMonthButtonDisabled,
31036
31142
  nextMonthButtonDisabled
31037
- }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
31143
+ }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
31038
31144
  "div",
31039
31145
  {
31040
31146
  style: {
@@ -31043,7 +31149,7 @@ var DateField = (props) => {
31043
31149
  justifyContent: "center"
31044
31150
  },
31045
31151
  children: [
31046
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31152
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31047
31153
  "button",
31048
31154
  {
31049
31155
  onClick: decreaseMonth,
@@ -31051,7 +31157,7 @@ var DateField = (props) => {
31051
31157
  children: "<"
31052
31158
  }
31053
31159
  ),
31054
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31160
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31055
31161
  StateManagedSelect$1,
31056
31162
  {
31057
31163
  classNames: {
@@ -31077,7 +31183,7 @@ var DateField = (props) => {
31077
31183
  autoFocus: true
31078
31184
  }
31079
31185
  ),
31080
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31186
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31081
31187
  StateManagedSelect$1,
31082
31188
  {
31083
31189
  classNames: {
@@ -31105,7 +31211,7 @@ var DateField = (props) => {
31105
31211
  }))
31106
31212
  }
31107
31213
  ),
31108
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
31214
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
31109
31215
  "button",
31110
31216
  {
31111
31217
  onClick: increaseMonth,
@@ -31118,7 +31224,7 @@ var DateField = (props) => {
31118
31224
  )
31119
31225
  }
31120
31226
  ),
31121
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31227
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31122
31228
  ] });
31123
31229
  }
31124
31230
  }
@@ -31127,26 +31233,26 @@ var DateField = (props) => {
31127
31233
  };
31128
31234
 
31129
31235
  // src/widgets/basic/download-binary-field/download-binary.tsx
31130
- var import_jsx_runtime81 = require("react/jsx-runtime");
31236
+ var import_jsx_runtime82 = require("react/jsx-runtime");
31131
31237
  var DownLoadBinaryField = (props) => {
31132
31238
  const { handleFileDownload } = props;
31133
31239
  const { t: t3 } = useI18n();
31134
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
31240
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
31135
31241
  "button",
31136
31242
  {
31137
31243
  type: "button",
31138
31244
  onClick: handleFileDownload,
31139
31245
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31140
31246
  children: [
31141
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(DownloadIcon, {}),
31142
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31247
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(DownloadIcon, {}),
31248
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31143
31249
  ]
31144
31250
  }
31145
31251
  );
31146
31252
  };
31147
31253
 
31148
31254
  // src/widgets/basic/download-file-field/download-file.tsx
31149
- var import_jsx_runtime82 = require("react/jsx-runtime");
31255
+ var import_jsx_runtime83 = require("react/jsx-runtime");
31150
31256
  var DownloadFileField = (props) => {
31151
31257
  const {
31152
31258
  readonly,
@@ -31158,15 +31264,15 @@ var DownloadFileField = (props) => {
31158
31264
  handleFileChange,
31159
31265
  handleFileDownload
31160
31266
  } = props;
31161
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "", children: [
31162
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
31267
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "", children: [
31268
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31163
31269
  "label",
31164
31270
  {
31165
31271
  htmlFor: inputId,
31166
31272
  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",
31167
31273
  children: [
31168
- file ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31169
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
31274
+ file ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31275
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31170
31276
  "input",
31171
31277
  {
31172
31278
  id: inputId,
@@ -31180,7 +31286,7 @@ var DownloadFileField = (props) => {
31180
31286
  ]
31181
31287
  }
31182
31288
  ),
31183
- file && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
31289
+ file && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31184
31290
  "button",
31185
31291
  {
31186
31292
  onClick: handleFileDownload,
@@ -31194,7 +31300,7 @@ var DownloadFileField = (props) => {
31194
31300
 
31195
31301
  // src/widgets/basic/dropdown-field/dropdown.tsx
31196
31302
  var import_react55 = require("react");
31197
- var import_jsx_runtime83 = require("react/jsx-runtime");
31303
+ var import_jsx_runtime84 = require("react/jsx-runtime");
31198
31304
  var DropdownField = (props) => {
31199
31305
  const {
31200
31306
  options: options2,
@@ -31208,30 +31314,30 @@ var DropdownField = (props) => {
31208
31314
  } = props;
31209
31315
  const [open, setOpen] = (0, import_react55.useState)(false);
31210
31316
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31211
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31317
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31212
31318
  "div",
31213
31319
  {
31214
31320
  ref: dropdownRef,
31215
31321
  className: `relative ${className}`,
31216
31322
  onClick: () => setOpen(!open),
31217
31323
  children: [
31218
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
31324
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31219
31325
  "div",
31220
31326
  {
31221
31327
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31222
31328
  children: [
31223
31329
  selectedValue?.icon,
31224
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { children: selectedValue?.label }),
31225
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ChevronBottomIcon, { className: "h-4 w-4" })
31330
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { children: selectedValue?.label }),
31331
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ChevronBottomIcon, { className: "h-4 w-4" })
31226
31332
  ]
31227
31333
  }
31228
31334
  ),
31229
- open && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31335
+ open && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31230
31336
  "div",
31231
31337
  {
31232
31338
  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}`,
31233
31339
  onClick: (e3) => e3.stopPropagation(),
31234
- children: options2.map((option, index4) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
31340
+ children: options2.map((option, index4) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
31235
31341
  "div",
31236
31342
  {
31237
31343
  onClick: () => {
@@ -31251,7 +31357,7 @@ var DropdownField = (props) => {
31251
31357
  };
31252
31358
 
31253
31359
  // src/widgets/basic/fee-field/fee.tsx
31254
- var import_jsx_runtime84 = require("react/jsx-runtime");
31360
+ var import_jsx_runtime85 = require("react/jsx-runtime");
31255
31361
  var FeeField = (props) => {
31256
31362
  const { value, formValues } = props;
31257
31363
  const { t: t3 } = useI18n();
@@ -31262,27 +31368,27 @@ var FeeField = (props) => {
31262
31368
  )
31263
31369
  ) + " VND";
31264
31370
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31265
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
31371
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
31266
31372
  value?.subtotals?.map((sub) => {
31267
31373
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31268
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
31269
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31270
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31374
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
31375
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31376
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31271
31377
  sub?.name,
31272
31378
  ":"
31273
31379
  ] }),
31274
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31380
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31275
31381
  ] }),
31276
- sub?.tax_groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
31382
+ sub?.tax_groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
31277
31383
  "div",
31278
31384
  {
31279
31385
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31280
31386
  children: [
31281
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31387
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31282
31388
  group?.group_name,
31283
31389
  ":"
31284
31390
  ] }),
31285
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31391
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31286
31392
  ]
31287
31393
  },
31288
31394
  `tax_groups_${group?.id}`
@@ -31290,33 +31396,33 @@ var FeeField = (props) => {
31290
31396
  ] });
31291
31397
  }
31292
31398
  }),
31293
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("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: [
31294
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31399
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("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: [
31400
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31295
31401
  t3("total"),
31296
31402
  ":"
31297
31403
  ] }),
31298
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31404
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31299
31405
  ] }),
31300
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("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: [
31301
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31406
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("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: [
31407
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31302
31408
  t3("paid_amount"),
31303
31409
  ":"
31304
31410
  ] }),
31305
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31411
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31306
31412
  ] }),
31307
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("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: [
31308
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31413
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("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: [
31414
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "text-[14px] leading-[21px] text-right", children: [
31309
31415
  t3("remanining_amount"),
31310
31416
  ":"
31311
31417
  ] }),
31312
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31418
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31313
31419
  ] })
31314
31420
  ] });
31315
31421
  };
31316
31422
 
31317
31423
  // src/widgets/basic/file-upload-field/file-upload.tsx
31318
31424
  var import_react56 = require("react");
31319
- var import_jsx_runtime85 = require("react/jsx-runtime");
31425
+ var import_jsx_runtime86 = require("react/jsx-runtime");
31320
31426
  var RenderFile = ({
31321
31427
  file,
31322
31428
  onDelete,
@@ -31326,16 +31432,16 @@ var RenderFile = ({
31326
31432
  readAs: "all"
31327
31433
  });
31328
31434
  const fileTypeIcon = {
31329
- "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(PdfIcon, {}),
31330
- "application/zip": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ZipIcon, {}),
31331
- "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ZipIcon, {}),
31332
- "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ExcelIcon, {}),
31333
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ExcelIcon, {})
31435
+ "application/pdf": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(PdfIcon, {}),
31436
+ "application/zip": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ZipIcon, {}),
31437
+ "application/x-zip-compressed": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ZipIcon, {}),
31438
+ "application/vnd.ms-excel": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ExcelIcon, {}),
31439
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ExcelIcon, {})
31334
31440
  };
31335
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31336
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31337
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { children: [
31338
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
31441
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31442
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31443
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { children: [
31444
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31339
31445
  "div",
31340
31446
  {
31341
31447
  style: {
@@ -31345,20 +31451,20 @@ var RenderFile = ({
31345
31451
  children: file?.name || file?.display_name || info?.name
31346
31452
  }
31347
31453
  ),
31348
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31454
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31349
31455
  ] }),
31350
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("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: [
31351
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
31456
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("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: [
31457
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31352
31458
  "span",
31353
31459
  {
31354
31460
  onClick: () => onDownload && onDownload(
31355
31461
  file?.data,
31356
31462
  file?.name || file?.display_name || info?.name
31357
31463
  ),
31358
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DownloadIcon, {})
31464
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DownloadIcon, {})
31359
31465
  }
31360
31466
  ),
31361
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DeleteIconDanger, {}) })
31467
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { onClick: onDelete, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DeleteIconDanger, {}) })
31362
31468
  ] })
31363
31469
  ] });
31364
31470
  };
@@ -31392,7 +31498,7 @@ var FileUploadField = (props) => {
31392
31498
  ]);
31393
31499
  }
31394
31500
  }, [value]);
31395
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
31501
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31396
31502
  Controller,
31397
31503
  {
31398
31504
  name: name2 || "",
@@ -31417,8 +31523,8 @@ var FileUploadField = (props) => {
31417
31523
  );
31418
31524
  }
31419
31525
  }, [selectedFiles]);
31420
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "file-upload-field", children: [
31421
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
31526
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "file-upload-field", children: [
31527
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31422
31528
  RenderFile,
31423
31529
  {
31424
31530
  file: fileItem,
@@ -31433,8 +31539,8 @@ var FileUploadField = (props) => {
31433
31539
  }
31434
31540
  }
31435
31541
  )),
31436
- uploadError && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-[#de4747]", children: uploadError }),
31437
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
31542
+ uploadError && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-[#de4747]", children: uploadError }),
31543
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31438
31544
  ButtonSelectFiles,
31439
31545
  {
31440
31546
  fileInputRef,
@@ -31449,7 +31555,7 @@ var FileUploadField = (props) => {
31449
31555
  useUploadFile
31450
31556
  }
31451
31557
  ),
31452
- error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31558
+ error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31453
31559
  ] });
31454
31560
  }
31455
31561
  }
@@ -31458,7 +31564,7 @@ var FileUploadField = (props) => {
31458
31564
 
31459
31565
  // src/widgets/basic/float-field/float.tsx
31460
31566
  var import_react57 = require("react");
31461
- var import_jsx_runtime86 = require("react/jsx-runtime");
31567
+ var import_jsx_runtime87 = require("react/jsx-runtime");
31462
31568
  var FloatField = (props) => {
31463
31569
  const {
31464
31570
  name: name2,
@@ -31476,9 +31582,9 @@ var FloatField = (props) => {
31476
31582
  } = props;
31477
31583
  const { t: t3 } = useI18n();
31478
31584
  if (!isForm && !isEditTable) {
31479
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31585
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31480
31586
  }
31481
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31587
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
31482
31588
  Controller,
31483
31589
  {
31484
31590
  name: name2 ?? "",
@@ -31583,8 +31689,8 @@ var FloatField = (props) => {
31583
31689
  }
31584
31690
  isDirtyRef.current = false;
31585
31691
  };
31586
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
31587
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
31692
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
31693
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
31588
31694
  "input",
31589
31695
  {
31590
31696
  ref: inputRef,
@@ -31604,7 +31710,7 @@ var FloatField = (props) => {
31604
31710
  `
31605
31711
  }
31606
31712
  ),
31607
- error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31713
+ error2 && !isEditTable && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31608
31714
  ] });
31609
31715
  }
31610
31716
  }
@@ -31613,7 +31719,7 @@ var FloatField = (props) => {
31613
31719
 
31614
31720
  // src/widgets/basic/float-time-field/float-time.tsx
31615
31721
  var import_react58 = require("react");
31616
- var import_jsx_runtime87 = require("react/jsx-runtime");
31722
+ var import_jsx_runtime88 = require("react/jsx-runtime");
31617
31723
  var FloatTimeField = (props) => {
31618
31724
  const {
31619
31725
  name: name2,
@@ -31629,9 +31735,9 @@ var FloatTimeField = (props) => {
31629
31735
  const { t: t3 } = useI18n();
31630
31736
  if (!isForm) {
31631
31737
  const formatValue = value ?? 0;
31632
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { children: convertFloatToTime(formatValue) });
31738
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { children: convertFloatToTime(formatValue) });
31633
31739
  }
31634
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
31740
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
31635
31741
  Controller,
31636
31742
  {
31637
31743
  name: name2 ?? "",
@@ -31693,8 +31799,8 @@ var FloatTimeField = (props) => {
31693
31799
  }
31694
31800
  onBlur();
31695
31801
  };
31696
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
31697
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
31802
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
31803
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
31698
31804
  "input",
31699
31805
  {
31700
31806
  type: "text",
@@ -31726,7 +31832,7 @@ var FloatTimeField = (props) => {
31726
31832
  readOnly: readonly
31727
31833
  }
31728
31834
  ),
31729
- (error2 || errors) && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31835
+ (error2 || errors) && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31730
31836
  ] });
31731
31837
  }
31732
31838
  }
@@ -31735,7 +31841,7 @@ var FloatTimeField = (props) => {
31735
31841
 
31736
31842
  // src/widgets/basic/html-field/html.tsx
31737
31843
  var import_react59 = require("react");
31738
- var import_jsx_runtime88 = require("react/jsx-runtime");
31844
+ var import_jsx_runtime89 = require("react/jsx-runtime");
31739
31845
  var HtmlField = (props) => {
31740
31846
  const {
31741
31847
  name: name2,
@@ -31749,9 +31855,9 @@ var HtmlField = (props) => {
31749
31855
  } = props;
31750
31856
  const divRef = (0, import_react59.useRef)(null);
31751
31857
  if (!isForm && !isEditTable) {
31752
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31858
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31753
31859
  }
31754
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
31860
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
31755
31861
  Controller,
31756
31862
  {
31757
31863
  name: name2 ?? "",
@@ -31770,7 +31876,7 @@ var HtmlField = (props) => {
31770
31876
  onChange2(newValue, "");
31771
31877
  }
31772
31878
  };
31773
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
31879
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
31774
31880
  "div",
31775
31881
  {
31776
31882
  ref: divRef,
@@ -31789,28 +31895,28 @@ var HtmlField = (props) => {
31789
31895
  };
31790
31896
 
31791
31897
  // src/widgets/basic/image-field/image.tsx
31792
- var import_jsx_runtime89 = require("react/jsx-runtime");
31898
+ var import_jsx_runtime90 = require("react/jsx-runtime");
31793
31899
  var ImageField = (props) => {
31794
31900
  const { value, type, name: name2, baseURL } = props;
31795
31901
  if (!value) return null;
31796
31902
  if (type === "url") {
31797
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31903
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31798
31904
  }
31799
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { id: "qr-code", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31905
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { id: "qr-code", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31800
31906
  };
31801
31907
 
31802
31908
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31803
31909
  var import_react60 = __toESM(require("react"));
31804
31910
 
31805
31911
  // src/widgets/basic/information-field/information.tsx
31806
- var import_jsx_runtime90 = require("react/jsx-runtime");
31912
+ var import_jsx_runtime91 = require("react/jsx-runtime");
31807
31913
  var InfomationField = (props) => {
31808
31914
  const { value, isForm = false, showName = true, stringToColor } = props;
31809
31915
  if (!value || Array.isArray(value) && value.length === 0) {
31810
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_jsx_runtime90.Fragment, {});
31916
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_jsx_runtime91.Fragment, {});
31811
31917
  }
31812
31918
  const inforValues = Array.isArray(value) ? value : [value];
31813
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
31919
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
31814
31920
  AvatarField,
31815
31921
  {
31816
31922
  id: item.id,
@@ -31819,8 +31925,8 @@ var InfomationField = (props) => {
31819
31925
  stringToColor
31820
31926
  },
31821
31927
  item.id
31822
- )) : /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex gap-2 items-center w-max", children: [
31823
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
31928
+ )) : /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex gap-2 items-center w-max", children: [
31929
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
31824
31930
  AvatarField,
31825
31931
  {
31826
31932
  avatarSrc: inforValues[0].image_256,
@@ -31830,12 +31936,12 @@ var InfomationField = (props) => {
31830
31936
  stringToColor
31831
31937
  }
31832
31938
  ),
31833
- showName && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "capitalize", children: inforValues[0].display_name })
31939
+ showName && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "capitalize", children: inforValues[0].display_name })
31834
31940
  ] }) });
31835
31941
  };
31836
31942
 
31837
31943
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31838
- var import_jsx_runtime91 = require("react/jsx-runtime");
31944
+ var import_jsx_runtime92 = require("react/jsx-runtime");
31839
31945
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31840
31946
  const { selectProps, data, menuList } = props;
31841
31947
  const { relation } = selectProps;
@@ -31844,8 +31950,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31844
31950
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31845
31951
  )
31846
31952
  )?.[0]?.action?.id;
31847
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31848
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
31953
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31954
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
31849
31955
  AvatarField,
31850
31956
  {
31851
31957
  id: data?.id,
@@ -31857,8 +31963,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31857
31963
  stringToColor
31858
31964
  }
31859
31965
  ),
31860
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31861
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
31966
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31967
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
31862
31968
  "span",
31863
31969
  {
31864
31970
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -31866,7 +31972,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31866
31972
  e3.stopPropagation();
31867
31973
  props.removeProps.onClick();
31868
31974
  },
31869
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(CloseIcon, {})
31975
+ children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CloseIcon, {})
31870
31976
  }
31871
31977
  )
31872
31978
  ] });
@@ -31876,9 +31982,9 @@ var CustomMenuList = (props) => {
31876
31982
  const { setIsShowModalMany2Many, searchable } = selectProps;
31877
31983
  const { t: t3 } = useI18n();
31878
31984
  const limitedChildren = import_react60.default.Children.toArray(children).slice(0, 10);
31879
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
31985
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
31880
31986
  limitedChildren,
31881
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
31987
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
31882
31988
  "button",
31883
31989
  {
31884
31990
  type: "button",
@@ -31923,7 +32029,7 @@ var Many2ManyTagField = (props) => {
31923
32029
  value: item.id,
31924
32030
  label: item.name ?? item.display_name
31925
32031
  })) : [];
31926
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32032
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
31927
32033
  InfomationField,
31928
32034
  {
31929
32035
  value: optionValue || null,
@@ -31932,7 +32038,7 @@ var Many2ManyTagField = (props) => {
31932
32038
  }
31933
32039
  );
31934
32040
  }
31935
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32041
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
31936
32042
  Controller,
31937
32043
  {
31938
32044
  name: name2 ?? "",
@@ -31968,8 +32074,8 @@ var Many2ManyTagField = (props) => {
31968
32074
  onChange2?.(name2 ?? "", newValue);
31969
32075
  clearErrors(name2);
31970
32076
  };
31971
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "group h-full overflow-y-auto", children: [
31972
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32077
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "group h-full overflow-y-auto", children: [
32078
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
31973
32079
  StateManagedSelect$1,
31974
32080
  {
31975
32081
  options: options2,
@@ -32047,7 +32153,7 @@ var Many2ManyTagField = (props) => {
32047
32153
  })
32048
32154
  },
32049
32155
  components: isUser ? {
32050
- MultiValue: (multiValueProps) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32156
+ MultiValue: (multiValueProps) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32051
32157
  CustomMultiValue,
32052
32158
  {
32053
32159
  ...multiValueProps,
@@ -32056,7 +32162,7 @@ var Many2ManyTagField = (props) => {
32056
32162
  ),
32057
32163
  IndicatorSeparator: () => null
32058
32164
  } : {
32059
- MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
32165
+ MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32060
32166
  CustomMenuList,
32061
32167
  {
32062
32168
  ...menuListProps,
@@ -32067,13 +32173,13 @@ var Many2ManyTagField = (props) => {
32067
32173
  }
32068
32174
  ),
32069
32175
  IndicatorSeparator: () => null,
32070
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(components.DropdownIndicator, { ...props2 }),
32071
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(components.ClearIndicator, { ...props2 })
32176
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(components.DropdownIndicator, { ...props2 }),
32177
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(components.ClearIndicator, { ...props2 })
32072
32178
  },
32073
32179
  required: !invisible && required
32074
32180
  }
32075
32181
  ),
32076
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32182
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32077
32183
  ] });
32078
32184
  }
32079
32185
  }
@@ -32082,7 +32188,7 @@ var Many2ManyTagField = (props) => {
32082
32188
 
32083
32189
  // src/widgets/basic/monetary-field/monetary.tsx
32084
32190
  var import_react61 = require("react");
32085
- var import_jsx_runtime92 = require("react/jsx-runtime");
32191
+ var import_jsx_runtime93 = require("react/jsx-runtime");
32086
32192
  var MonetaryField = (props) => {
32087
32193
  const { t: t3 } = useI18n();
32088
32194
  const {
@@ -32102,26 +32208,26 @@ var MonetaryField = (props) => {
32102
32208
  isEditTable
32103
32209
  } = props;
32104
32210
  if (isForm && name2 === "amount_residual") {
32105
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32106
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("span", { className: "font-semibold", children: [
32211
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32212
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("span", { className: "font-semibold", children: [
32107
32213
  string,
32108
32214
  ":"
32109
32215
  ] }),
32110
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32216
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32111
32217
  ] });
32112
32218
  }
32113
32219
  if (!isForm) {
32114
32220
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32115
32221
  if (widget === "monetary" && !formValues?.currency_id) {
32116
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: `${formatNumberOnly(
32222
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: `${formatNumberOnly(
32117
32223
  parseFloat(String(value ?? defaultValue))
32118
32224
  )} VND` });
32119
32225
  }
32120
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { children: `${formatNumberOnly(
32226
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { children: `${formatNumberOnly(
32121
32227
  parseFloat(value ?? defaultValue)
32122
32228
  )} ${currencySymbol}` });
32123
32229
  }
32124
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32230
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
32125
32231
  Controller,
32126
32232
  {
32127
32233
  name: name2 ?? "",
@@ -32140,8 +32246,8 @@ var MonetaryField = (props) => {
32140
32246
  clearErrors(name2);
32141
32247
  }
32142
32248
  }, [value2]);
32143
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
32144
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
32249
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
32250
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
32145
32251
  "input",
32146
32252
  {
32147
32253
  value: formatNumberOnly(value2),
@@ -32179,7 +32285,7 @@ var MonetaryField = (props) => {
32179
32285
  `
32180
32286
  }
32181
32287
  ),
32182
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32288
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32183
32289
  ] });
32184
32290
  }
32185
32291
  }
@@ -32187,14 +32293,14 @@ var MonetaryField = (props) => {
32187
32293
  };
32188
32294
 
32189
32295
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32190
- var import_jsx_runtime93 = require("react/jsx-runtime");
32296
+ var import_jsx_runtime94 = require("react/jsx-runtime");
32191
32297
  var PaidBadgedField = () => {
32192
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(PaidIcon, {}) });
32298
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(PaidIcon, {}) });
32193
32299
  };
32194
32300
 
32195
32301
  // src/widgets/basic/priority-field/rating-star.tsx
32196
32302
  var import_react62 = __toESM(require("react"));
32197
- var import_jsx_runtime94 = require("react/jsx-runtime");
32303
+ var import_jsx_runtime95 = require("react/jsx-runtime");
32198
32304
  var RatingStarField = (props) => {
32199
32305
  const {
32200
32306
  label,
@@ -32229,7 +32335,7 @@ var RatingStarField = (props) => {
32229
32335
  setHover(0);
32230
32336
  setRating(0);
32231
32337
  };
32232
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32338
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32233
32339
  "div",
32234
32340
  {
32235
32341
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32239,17 +32345,17 @@ var RatingStarField = (props) => {
32239
32345
  const starValue = index4 + 1;
32240
32346
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32241
32347
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32242
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_react62.default.Fragment, { children: [
32243
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32348
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_react62.default.Fragment, { children: [
32349
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32244
32350
  "div",
32245
32351
  {
32246
32352
  onMouseEnter: () => handleHover(starValue),
32247
32353
  onClick: () => handleClick(starValue),
32248
32354
  "data-tooltip-id": `${id}-${starValue}`,
32249
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(StarIcon, { fill: fillColor, stroke: strokeColor })
32355
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(StarIcon, { fill: fillColor, stroke: strokeColor })
32250
32356
  }
32251
32357
  ),
32252
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
32358
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32253
32359
  M,
32254
32360
  {
32255
32361
  className: "z-50",
@@ -32265,7 +32371,7 @@ var RatingStarField = (props) => {
32265
32371
  };
32266
32372
 
32267
32373
  // src/widgets/basic/priority-field/priority.tsx
32268
- var import_jsx_runtime95 = require("react/jsx-runtime");
32374
+ var import_jsx_runtime96 = require("react/jsx-runtime");
32269
32375
  var PriorityField = (props) => {
32270
32376
  const {
32271
32377
  isForm,
@@ -32281,7 +32387,7 @@ var PriorityField = (props) => {
32281
32387
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32282
32388
  const defaultPriority = parseInt(value) + 1;
32283
32389
  if (!isForm) {
32284
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32390
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32285
32391
  RatingStarField,
32286
32392
  {
32287
32393
  label,
@@ -32292,7 +32398,7 @@ var PriorityField = (props) => {
32292
32398
  }
32293
32399
  );
32294
32400
  }
32295
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32401
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32296
32402
  Controller,
32297
32403
  {
32298
32404
  name: name ?? "",
@@ -32302,7 +32408,7 @@ var PriorityField = (props) => {
32302
32408
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32303
32409
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32304
32410
  };
32305
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
32411
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32306
32412
  RatingStarField,
32307
32413
  {
32308
32414
  label,
@@ -32319,7 +32425,7 @@ var PriorityField = (props) => {
32319
32425
 
32320
32426
  // src/widgets/basic/radio-group-field/radio-group.tsx
32321
32427
  var import_react63 = require("react");
32322
- var import_jsx_runtime96 = require("react/jsx-runtime");
32428
+ var import_jsx_runtime97 = require("react/jsx-runtime");
32323
32429
  var RadioGroupField = (props) => {
32324
32430
  const {
32325
32431
  name: name2,
@@ -32338,13 +32444,13 @@ var RadioGroupField = (props) => {
32338
32444
  }
32339
32445
  }, [selection, name2, setValue]);
32340
32446
  if (!methods) return null;
32341
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32447
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32342
32448
  Controller,
32343
32449
  {
32344
32450
  name: name2 ?? "",
32345
32451
  control: methods.control,
32346
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center gap-1", children: [
32347
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
32452
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-1", children: [
32453
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32348
32454
  "input",
32349
32455
  {
32350
32456
  type: "radio",
@@ -32363,7 +32469,7 @@ var RadioGroupField = (props) => {
32363
32469
  className: "custom-radio"
32364
32470
  }
32365
32471
  ),
32366
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("label", { htmlFor: String(select[0]), children: select[1] })
32472
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("label", { htmlFor: String(select[0]), children: select[1] })
32367
32473
  ] }, select[0])) })
32368
32474
  }
32369
32475
  );
@@ -32371,7 +32477,7 @@ var RadioGroupField = (props) => {
32371
32477
 
32372
32478
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32373
32479
  var import_moment3 = __toESM(require_moment());
32374
- var import_jsx_runtime97 = require("react/jsx-runtime");
32480
+ var import_jsx_runtime98 = require("react/jsx-runtime");
32375
32481
  var RemainingDaysField = (props) => {
32376
32482
  const {
32377
32483
  value,
@@ -32382,14 +32488,14 @@ var RemainingDaysField = (props) => {
32382
32488
  if (!value) return null;
32383
32489
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32384
32490
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32385
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: isForm ? "mb-4" : "", children: [
32386
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32387
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32491
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: isForm ? "mb-4" : "", children: [
32492
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32493
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32388
32494
  "div",
32389
32495
  {
32390
32496
  "data-tooltip-id": `remainingDays_${value}`,
32391
32497
  className: "flex items-center w-fit cursor-context-menu",
32392
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
32498
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32393
32499
  "div",
32394
32500
  {
32395
32501
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32402,7 +32508,7 @@ var RemainingDaysField = (props) => {
32402
32508
  };
32403
32509
 
32404
32510
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32405
- var import_jsx_runtime98 = require("react/jsx-runtime");
32511
+ var import_jsx_runtime99 = require("react/jsx-runtime");
32406
32512
  var SelectDropdownField = (props) => {
32407
32513
  const { t: t3 } = useI18n();
32408
32514
  const {
@@ -32424,9 +32530,9 @@ var SelectDropdownField = (props) => {
32424
32530
  label: val[1]
32425
32531
  })) : [];
32426
32532
  if (!isForm && !isEditTable) {
32427
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { children: options2?.find((item) => item?.value === value)?.label });
32533
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: options2?.find((item) => item?.value === value)?.label });
32428
32534
  } else {
32429
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32535
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
32430
32536
  Controller,
32431
32537
  {
32432
32538
  name: name2 || "",
@@ -32453,8 +32559,8 @@ var SelectDropdownField = (props) => {
32453
32559
  value: defaultValue || null,
32454
32560
  required: !invisible && required
32455
32561
  };
32456
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
32457
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "group", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
32562
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
32563
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "group", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
32458
32564
  StateManagedSelect$1,
32459
32565
  {
32460
32566
  ...commonProps,
@@ -32509,12 +32615,12 @@ var SelectDropdownField = (props) => {
32509
32615
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32510
32616
  components: {
32511
32617
  IndicatorSeparator: () => null,
32512
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(components.DropdownIndicator, { ...props2 })
32618
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(components.DropdownIndicator, { ...props2 })
32513
32619
  },
32514
32620
  noOptionsMessage: () => t3("no-available")
32515
32621
  }
32516
32622
  ) }),
32517
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32623
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32518
32624
  ] });
32519
32625
  }
32520
32626
  }
@@ -32523,7 +32629,7 @@ var SelectDropdownField = (props) => {
32523
32629
  };
32524
32630
 
32525
32631
  // src/widgets/basic/textarea-field/textarea.tsx
32526
- var import_jsx_runtime99 = require("react/jsx-runtime");
32632
+ var import_jsx_runtime100 = require("react/jsx-runtime");
32527
32633
  var TextAreaField = (props) => {
32528
32634
  const {
32529
32635
  methods,
@@ -32547,9 +32653,9 @@ var TextAreaField = (props) => {
32547
32653
  }
32548
32654
  }) : {};
32549
32655
  if (!isForm) {
32550
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: value && typeof value === "object" ? value.display_name : value });
32656
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { children: value && typeof value === "object" ? value.display_name : value });
32551
32657
  }
32552
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
32658
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
32553
32659
  "textarea",
32554
32660
  {
32555
32661
  ...formProps,
@@ -32565,7 +32671,7 @@ var TextAreaField = (props) => {
32565
32671
  };
32566
32672
 
32567
32673
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32568
- var import_jsx_runtime100 = require("react/jsx-runtime");
32674
+ var import_jsx_runtime101 = require("react/jsx-runtime");
32569
32675
  var ToggleButtonField = (props) => {
32570
32676
  const {
32571
32677
  name: name2,
@@ -32575,13 +32681,13 @@ var ToggleButtonField = (props) => {
32575
32681
  onChange: onChange2,
32576
32682
  methods
32577
32683
  } = props;
32578
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
32684
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32579
32685
  Controller,
32580
32686
  {
32581
32687
  name: name2 ?? "",
32582
32688
  control: methods?.control,
32583
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "inline-flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32584
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
32689
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "inline-flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32690
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32585
32691
  "input",
32586
32692
  {
32587
32693
  ...field,
@@ -32600,7 +32706,7 @@ var ToggleButtonField = (props) => {
32600
32706
  checked: field.value ?? false
32601
32707
  }
32602
32708
  ),
32603
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
32709
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32604
32710
  "span",
32605
32711
  {
32606
32712
  style: {
@@ -32609,7 +32715,7 @@ var ToggleButtonField = (props) => {
32609
32715
  },
32610
32716
  className: `rounded-full transition duration-300
32611
32717
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32612
- children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
32718
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32613
32719
  "span",
32614
32720
  {
32615
32721
  style: {
@@ -32634,7 +32740,7 @@ var ToggleButtonField = (props) => {
32634
32740
 
32635
32741
  // src/widgets/basic/integer-field/integer.tsx
32636
32742
  var import_react64 = require("react");
32637
- var import_jsx_runtime101 = require("react/jsx-runtime");
32743
+ var import_jsx_runtime102 = require("react/jsx-runtime");
32638
32744
  var IntegerField = (props) => {
32639
32745
  const {
32640
32746
  name: name2,
@@ -32653,9 +32759,9 @@ var IntegerField = (props) => {
32653
32759
  const { t: t3 } = useI18n();
32654
32760
  if (!isForm && !isEditTable) {
32655
32761
  const displayValue = value ?? defaultValue;
32656
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32762
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32657
32763
  }
32658
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32764
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
32659
32765
  Controller,
32660
32766
  {
32661
32767
  name: name2 || "",
@@ -32733,8 +32839,8 @@ var IntegerField = (props) => {
32733
32839
  inputRef.current?.blur();
32734
32840
  clearErrors(name2);
32735
32841
  };
32736
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
32737
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
32842
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_jsx_runtime102.Fragment, { children: [
32843
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
32738
32844
  "input",
32739
32845
  {
32740
32846
  ref: inputRef,
@@ -32769,7 +32875,7 @@ var IntegerField = (props) => {
32769
32875
  `
32770
32876
  }
32771
32877
  ),
32772
- error2 && isEditTable && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32878
+ error2 && isEditTable && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32773
32879
  ] });
32774
32880
  }
32775
32881
  }
@@ -32777,7 +32883,7 @@ var IntegerField = (props) => {
32777
32883
  };
32778
32884
 
32779
32885
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32780
- var import_jsx_runtime102 = require("react/jsx-runtime");
32886
+ var import_jsx_runtime103 = require("react/jsx-runtime");
32781
32887
  var StatusDropdownField = (props) => {
32782
32888
  const {
32783
32889
  buttonRef,
@@ -32789,13 +32895,13 @@ var StatusDropdownField = (props) => {
32789
32895
  handleClick,
32790
32896
  colors: colors2
32791
32897
  } = props;
32792
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
32898
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
32793
32899
  "div",
32794
32900
  {
32795
32901
  ref: buttonRef,
32796
32902
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32797
32903
  children: [
32798
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
32904
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
32799
32905
  "button",
32800
32906
  {
32801
32907
  type: "button",
@@ -32803,23 +32909,23 @@ var StatusDropdownField = (props) => {
32803
32909
  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"}`
32804
32910
  }
32805
32911
  ),
32806
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("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) => {
32912
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("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) => {
32807
32913
  const isActive = item[0] == state;
32808
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
32914
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
32809
32915
  "div",
32810
32916
  {
32811
32917
  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" : ""}`,
32812
32918
  onClick: () => handleClick(item[0]),
32813
32919
  children: [
32814
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CheckIcon, {}) }),
32815
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex items-center gap-2", children: [
32816
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
32920
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(CheckIcon, {}) }),
32921
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex items-center gap-2", children: [
32922
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
32817
32923
  "div",
32818
32924
  {
32819
32925
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
32820
32926
  }
32821
32927
  ),
32822
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: "text-sm", children: item[1] })
32928
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "text-sm", children: item[1] })
32823
32929
  ] })
32824
32930
  ]
32825
32931
  },
@@ -32834,7 +32940,7 @@ var StatusDropdownField = (props) => {
32834
32940
  // src/widgets/basic/many2many-field/many2many.tsx
32835
32941
  var import_react_dom8 = require("react-dom");
32836
32942
  var import_react65 = require("react");
32837
- var import_jsx_runtime103 = require("react/jsx-runtime");
32943
+ var import_jsx_runtime104 = require("react/jsx-runtime");
32838
32944
  var Many2ManyField = (props) => {
32839
32945
  const { t: t3 } = useI18n();
32840
32946
  const {
@@ -32908,7 +33014,7 @@ var Many2ManyField = (props) => {
32908
33014
  };
32909
33015
  }, [selectedTags]);
32910
33016
  return (0, import_react_dom8.createPortal)(
32911
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33017
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
32912
33018
  "div",
32913
33019
  {
32914
33020
  style: {
@@ -32916,8 +33022,8 @@ var Many2ManyField = (props) => {
32916
33022
  },
32917
33023
  className: "fixed bottom-0 left-0 right-0 top-0",
32918
33024
  children: [
32919
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32920
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33025
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33026
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
32921
33027
  "div",
32922
33028
  {
32923
33029
  style: {
@@ -32925,12 +33031,12 @@ var Many2ManyField = (props) => {
32925
33031
  },
32926
33032
  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",
32927
33033
  children: [
32928
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32929
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "text-[20px] font-semibold", children: title }),
32930
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(CloseIcon, {}) })
33034
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33035
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "text-[20px] font-semibold", children: title }),
33036
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(CloseIcon, {}) })
32931
33037
  ] }),
32932
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32933
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33038
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33039
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
32934
33040
  Search,
32935
33041
  {
32936
33042
  removeSearchItems,
@@ -32964,7 +33070,7 @@ var Many2ManyField = (props) => {
32964
33070
  groupByList
32965
33071
  }
32966
33072
  ) }),
32967
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33073
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
32968
33074
  PaginationView,
32969
33075
  {
32970
33076
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -32981,20 +33087,20 @@ var Many2ManyField = (props) => {
32981
33087
  }
32982
33088
  )
32983
33089
  ] }),
32984
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "relative h-full w-full", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33090
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "relative h-full w-full", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
32985
33091
  "div",
32986
33092
  {
32987
33093
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
32988
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33094
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
32989
33095
  "div",
32990
33096
  {
32991
33097
  className: `flex w-full items-center h-full overflow-auto `,
32992
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
33098
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
32993
33099
  "table",
32994
33100
  {
32995
33101
  className: `relative w-full bg-white custom-dropdown `,
32996
33102
  children: [
32997
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33103
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
32998
33104
  TableHead,
32999
33105
  {
33000
33106
  columns,
@@ -33004,7 +33110,7 @@ var Many2ManyField = (props) => {
33004
33110
  handleCheckBoxAll
33005
33111
  }
33006
33112
  ),
33007
- rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33113
+ rows?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33008
33114
  TableBody,
33009
33115
  {
33010
33116
  tableGroupController,
@@ -33044,16 +33150,16 @@ var Many2ManyField = (props) => {
33044
33150
  checkedAll,
33045
33151
  context
33046
33152
  }
33047
- ) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33153
+ ) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33048
33154
  "td",
33049
33155
  {
33050
33156
  className: "w-full",
33051
33157
  colSpan: columns?.length + 2,
33052
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33158
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33053
33159
  "div",
33054
33160
  {
33055
33161
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33056
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(EmptyTable, {})
33162
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(EmptyTable, {})
33057
33163
  }
33058
33164
  )
33059
33165
  }
@@ -33064,9 +33170,9 @@ var Many2ManyField = (props) => {
33064
33170
  }
33065
33171
  ) }) })
33066
33172
  }
33067
- ) }) }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(LayerLoading, {}),
33068
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex items-center gap-2 mt-auto", children: [
33069
- isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33173
+ ) }) }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(LayerLoading, {}),
33174
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center gap-2 mt-auto", children: [
33175
+ isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33070
33176
  "button",
33071
33177
  {
33072
33178
  disabled: selectedRowKeys?.length === 0,
@@ -33076,7 +33182,7 @@ var Many2ManyField = (props) => {
33076
33182
  children: t3("choose")
33077
33183
  }
33078
33184
  ),
33079
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33185
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33080
33186
  "button",
33081
33187
  {
33082
33188
  type: "button",
@@ -33092,7 +33198,7 @@ var Many2ManyField = (props) => {
33092
33198
  children: t3("new")
33093
33199
  }
33094
33200
  ),
33095
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
33201
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33096
33202
  "button",
33097
33203
  {
33098
33204
  type: "button",
@@ -33114,15 +33220,15 @@ var Many2ManyField = (props) => {
33114
33220
 
33115
33221
  // src/widgets/basic/many2one-field/many2one.tsx
33116
33222
  var import_react66 = __toESM(require("react"));
33117
- var import_jsx_runtime104 = require("react/jsx-runtime");
33223
+ var import_jsx_runtime105 = require("react/jsx-runtime");
33118
33224
  var CustomMenuList2 = (props) => {
33119
33225
  const { t: t3 } = useI18n();
33120
33226
  const { options: options2, children, selectProps } = props;
33121
33227
  const { setIsShowModalMany2Many, searchable } = selectProps;
33122
33228
  const limitedChildren = import_react66.default.Children.toArray(children).slice(0, 10);
33123
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
33229
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(components.MenuList, { ...props, className: "z-[99]", children: [
33124
33230
  limitedChildren,
33125
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
33231
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
33126
33232
  "button",
33127
33233
  {
33128
33234
  type: "button",
@@ -33165,14 +33271,14 @@ var Many2OneField = (props) => {
33165
33271
  const { t: t3 } = useI18n();
33166
33272
  if (!isForm && !isEditTable) {
33167
33273
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33168
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
33274
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
33169
33275
  allowShowDetail && renderDetail({
33170
33276
  idToolTip: String(name2) + Number(index4),
33171
33277
  model: options2?.model ?? relation,
33172
33278
  context: contextObject,
33173
33279
  idForm: id
33174
33280
  }),
33175
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33281
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33176
33282
  "span",
33177
33283
  {
33178
33284
  className: "cursor-pointer",
@@ -33183,20 +33289,20 @@ var Many2OneField = (props) => {
33183
33289
  )
33184
33290
  ] });
33185
33291
  }
33186
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
33292
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
33187
33293
  allowShowDetail && renderDetail({
33188
33294
  idToolTip: String(name2),
33189
33295
  model: options2?.model ?? relation,
33190
33296
  context: contextObject,
33191
33297
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33192
33298
  }),
33193
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33299
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33194
33300
  "div",
33195
33301
  {
33196
33302
  id: name2,
33197
33303
  "data-tooltip-id": name2,
33198
33304
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33199
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33305
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33200
33306
  Controller,
33201
33307
  {
33202
33308
  name: name2 ?? "",
@@ -33221,8 +33327,8 @@ var Many2OneField = (props) => {
33221
33327
  methods?.clearErrors(name2);
33222
33328
  }
33223
33329
  }, [selectedOption]);
33224
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "h-full", children: [
33225
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33330
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "h-full", children: [
33331
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33226
33332
  StateManagedSelect$1,
33227
33333
  {
33228
33334
  menuShouldScrollIntoView: false,
@@ -33298,7 +33404,7 @@ var Many2OneField = (props) => {
33298
33404
  })
33299
33405
  },
33300
33406
  components: {
33301
- MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
33407
+ MenuList: (menuListProps) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33302
33408
  CustomMenuList2,
33303
33409
  {
33304
33410
  ...menuListProps,
@@ -33309,13 +33415,13 @@ var Many2OneField = (props) => {
33309
33415
  }
33310
33416
  ),
33311
33417
  IndicatorSeparator: () => null,
33312
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(components.DropdownIndicator, { ...props2 })
33418
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(components.DropdownIndicator, { ...props2 })
33313
33419
  },
33314
33420
  isDisabled: readonly,
33315
33421
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33316
33422
  }
33317
33423
  ),
33318
- !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33424
+ !isEditTable && error2 && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33319
33425
  ] });
33320
33426
  }
33321
33427
  }
@@ -33326,7 +33432,7 @@ var Many2OneField = (props) => {
33326
33432
  };
33327
33433
 
33328
33434
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33329
- var import_jsx_runtime105 = require("react/jsx-runtime");
33435
+ var import_jsx_runtime106 = require("react/jsx-runtime");
33330
33436
  var StatusbarDurationField = (props) => {
33331
33437
  const {
33332
33438
  disabled,
@@ -33336,14 +33442,14 @@ var StatusbarDurationField = (props) => {
33336
33442
  defaultValue,
33337
33443
  setModalStatus
33338
33444
  } = props;
33339
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33445
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33340
33446
  "div",
33341
33447
  {
33342
33448
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33343
- children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center gap-[24px]", children: [
33344
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33449
+ children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center gap-[24px]", children: [
33450
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33345
33451
  const value = option?.id === defaultValue;
33346
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
33452
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33347
33453
  "label",
33348
33454
  {
33349
33455
  onClick: () => !disabled && handleClick(option.id),
@@ -33353,7 +33459,7 @@ var StatusbarDurationField = (props) => {
33353
33459
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33354
33460
  `,
33355
33461
  children: [
33356
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33462
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33357
33463
  "input",
33358
33464
  {
33359
33465
  type: "radio",
@@ -33363,7 +33469,7 @@ var StatusbarDurationField = (props) => {
33363
33469
  }
33364
33470
  ),
33365
33471
  option?.name,
33366
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33472
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33367
33473
  "div",
33368
33474
  {
33369
33475
  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]
@@ -33378,14 +33484,14 @@ var StatusbarDurationField = (props) => {
33378
33484
  }) }),
33379
33485
  dataResponse?.records?.some(
33380
33486
  (item) => item?.fold && item.id !== defaultValue
33381
- ) && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
33487
+ ) && /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33382
33488
  "div",
33383
33489
  {
33384
33490
  onClick: () => setModalStatus(!modelStatus),
33385
33491
  className: "w-[24px] h-[24px] cursor-pointer relative",
33386
33492
  children: [
33387
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(MoreIcon, {}),
33388
- modelStatus && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33493
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(MoreIcon, {}),
33494
+ modelStatus && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33389
33495
  "div",
33390
33496
  {
33391
33497
  onClick: (e3) => e3.stopPropagation(),
@@ -33394,7 +33500,7 @@ var StatusbarDurationField = (props) => {
33394
33500
  (item) => item?.fold && item.id !== defaultValue
33395
33501
  )?.map((option) => {
33396
33502
  const value = option?.id === defaultValue;
33397
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
33503
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33398
33504
  "div",
33399
33505
  {
33400
33506
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33416,14 +33522,14 @@ var StatusbarDurationField = (props) => {
33416
33522
 
33417
33523
  // src/widgets/basic/status-bar-field/option/option.tsx
33418
33524
  var import_react67 = require("react");
33419
- var import_jsx_runtime106 = require("react/jsx-runtime");
33525
+ var import_jsx_runtime107 = require("react/jsx-runtime");
33420
33526
  var StatusBarOptionField = (props) => {
33421
33527
  const { selection, defaultValue } = props;
33422
33528
  const memoizedStatusOptions = (0, import_react67.useMemo)(() => selection, [selection]);
33423
33529
  const indexInProgress = memoizedStatusOptions?.findIndex(
33424
33530
  (option) => option?.[0] === defaultValue
33425
33531
  );
33426
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33532
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33427
33533
  "div",
33428
33534
  {
33429
33535
  style: {
@@ -33432,8 +33538,8 @@ var StatusBarOptionField = (props) => {
33432
33538
  flexWrap: "wrap"
33433
33539
  },
33434
33540
  children: memoizedStatusOptions?.map((option, index4) => {
33435
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
33436
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
33541
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
33542
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
33437
33543
  "div",
33438
33544
  {
33439
33545
  style: {
@@ -33451,7 +33557,7 @@ var StatusBarOptionField = (props) => {
33451
33557
  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" : ""
33452
33558
  },
33453
33559
  children: [
33454
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33560
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33455
33561
  "span",
33456
33562
  {
33457
33563
  style: {
@@ -33463,10 +33569,10 @@ var StatusBarOptionField = (props) => {
33463
33569
  alignItems: "center",
33464
33570
  borderRadius: "100%"
33465
33571
  },
33466
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ICCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ICMinus, {})
33572
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ICCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ICMinus, {})
33467
33573
  }
33468
33574
  ),
33469
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33575
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33470
33576
  "span",
33471
33577
  {
33472
33578
  style: {
@@ -33479,7 +33585,7 @@ var StatusBarOptionField = (props) => {
33479
33585
  },
33480
33586
  option?.[0]
33481
33587
  ),
33482
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33588
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33483
33589
  "div",
33484
33590
  {
33485
33591
  style: {
@@ -33495,7 +33601,7 @@ var StatusBarOptionField = (props) => {
33495
33601
  );
33496
33602
  };
33497
33603
  var ICMinus = () => {
33498
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33604
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33499
33605
  "svg",
33500
33606
  {
33501
33607
  xmlns: "http://www.w3.org/2000/svg",
@@ -33503,7 +33609,7 @@ var ICMinus = () => {
33503
33609
  height: "16",
33504
33610
  viewBox: "0 0 16 16",
33505
33611
  fill: "none",
33506
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33612
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33507
33613
  "path",
33508
33614
  {
33509
33615
  d: "M4 8H12",
@@ -33517,7 +33623,7 @@ var ICMinus = () => {
33517
33623
  );
33518
33624
  };
33519
33625
  var ICCircle = () => {
33520
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33626
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33521
33627
  "svg",
33522
33628
  {
33523
33629
  xmlns: "http://www.w3.org/2000/svg",
@@ -33525,12 +33631,12 @@ var ICCircle = () => {
33525
33631
  height: "8",
33526
33632
  viewBox: "0 0 8 8",
33527
33633
  fill: "none",
33528
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33634
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33529
33635
  }
33530
33636
  );
33531
33637
  };
33532
33638
  var ICCheck = () => {
33533
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33639
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33534
33640
  "svg",
33535
33641
  {
33536
33642
  xmlns: "http://www.w3.org/2000/svg",
@@ -33538,7 +33644,7 @@ var ICCheck = () => {
33538
33644
  height: "16",
33539
33645
  viewBox: "0 0 16 16",
33540
33646
  fill: "none",
33541
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
33647
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33542
33648
  "path",
33543
33649
  {
33544
33650
  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",
@@ -33552,7 +33658,7 @@ var ICCheck = () => {
33552
33658
  };
33553
33659
 
33554
33660
  // src/widgets/basic/date-option-field/date-option.tsx
33555
- var import_jsx_runtime107 = require("react/jsx-runtime");
33661
+ var import_jsx_runtime108 = require("react/jsx-runtime");
33556
33662
  var DateOptionField = (props) => {
33557
33663
  const {
33558
33664
  name: name2,
@@ -33563,19 +33669,19 @@ var DateOptionField = (props) => {
33563
33669
  string,
33564
33670
  onChange: onChange2
33565
33671
  } = props;
33566
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33672
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33567
33673
  Controller,
33568
33674
  {
33569
33675
  name: name2 ?? "",
33570
33676
  control: methods?.control,
33571
- render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
33677
+ render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
33572
33678
  "label",
33573
33679
  {
33574
33680
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33575
33681
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33576
33682
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33577
33683
  children: [
33578
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
33684
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
33579
33685
  "input",
33580
33686
  {
33581
33687
  type: "checkbox",