@fctc/sme-widget-ui 1.9.4 → 1.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widgets.mjs CHANGED
@@ -7755,8 +7755,8 @@ var en_default = {
7755
7755
  download_file: "Download this file",
7756
7756
  upload_success: "Upload file success",
7757
7757
  upload_failure: "Upload file failure",
7758
- file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and each file should be up to 10MB.",
7759
- file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and total should be up to 50MB.",
7758
+ file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and each file should be up to 10MB.",
7759
+ file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and total should be up to 50MB.",
7760
7760
  must_required: "is required",
7761
7761
  invalid_number: "Invalid number",
7762
7762
  active: "Active",
@@ -8199,22 +8199,6 @@ var convertFloatToTime = (floatValue) => {
8199
8199
  const formattedMinutes = String(minutes).padStart(2, "0");
8200
8200
  return `${formattedHours}:${formattedMinutes}`;
8201
8201
  };
8202
- var isBase64Image = (str) => {
8203
- const base64Regex = /^data:image\/(png|jpeg|jpg|gif|webp);base64,/;
8204
- if (!base64Regex.test(str)) {
8205
- return false;
8206
- }
8207
- try {
8208
- const base64Data = str.split(",")[1];
8209
- return !!base64Data && atob(base64Data).length > 0;
8210
- } catch (error2) {
8211
- return false;
8212
- }
8213
- };
8214
- var checkIsImageLink = (url) => {
8215
- const imageExtensions = /\.(jpg|jpeg|png|gif|bmp|webp|svg|tiff|ico)$/i;
8216
- return imageExtensions.test(url) || isBase64Image(url);
8217
- };
8218
8202
  var formatFileSize = (size4) => {
8219
8203
  if (size4 < 1024) return `${size4} B`;
8220
8204
  const i3 = Math.floor(Math.log(size4) / Math.log(1024));
@@ -9873,58 +9857,12 @@ var DeleteIconDanger = () => {
9873
9857
 
9874
9858
  // src/icons/image-icon.tsx
9875
9859
  import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
9876
- var ImageIcon = () => {
9877
- return /* @__PURE__ */ jsxs21(
9878
- "svg",
9879
- {
9880
- xmlns: "http://www.w3.org/2000/svg",
9881
- xmlnsXlink: "http://www.w3.org/1999/xlink",
9882
- width: "38",
9883
- height: "38",
9884
- viewBox: "0 0 38 38",
9885
- children: [
9886
- /* @__PURE__ */ jsxs21("defs", { children: [
9887
- /* @__PURE__ */ jsx41("rect", { id: "image-a", width: "32", height: "35", x: "3", y: "1", rx: "3" }),
9888
- /* @__PURE__ */ jsx41(
9889
- "path",
9890
- {
9891
- id: "image-b",
9892
- d: "M4,19.1032723 C10.2068966,11.6847994 21.5862069,29.7010908 34,22.2826178 C34,27.7196562 34,31.605523 34,33.9402182 C34,34.6467394 33.6428571,35 32.9285714,35 L5.07142857,35 C4.35714286,35 4,34.6467394 4,33.9402182 C4,30.6431191 4,25.6974705 4,19.1032723 Z"
9893
- }
9894
- )
9895
- ] }),
9896
- /* @__PURE__ */ jsxs21("g", { fill: "none", fillRule: "evenodd", children: [
9897
- /* @__PURE__ */ jsx41("polygon", { fill: "#1C8B96", points: "34 2 34 34 4 34" }),
9898
- /* @__PURE__ */ jsx41("use", { fill: "#FFF", fillOpacity: ".93", xlinkHref: "#image-a" }),
9899
- /* @__PURE__ */ jsx41(
9900
- "rect",
9901
- {
9902
- width: "30",
9903
- height: "33",
9904
- x: "4",
9905
- y: "2",
9906
- stroke: "#1C8B96",
9907
- strokeWidth: "2",
9908
- rx: "3"
9909
- }
9910
- ),
9911
- /* @__PURE__ */ jsx41("use", { fill: "#1C8B96", fillOpacity: ".516", xlinkHref: "#image-b" }),
9912
- /* @__PURE__ */ jsx41(
9913
- "path",
9914
- {
9915
- stroke: "#1C8B96",
9916
- d: "M4.5,19.288684 C4.5,28.1705666 4.5,28.2098953 4.5,33.9402182 C4.5,34.3693663 4.63206932,34.5 5.07142857,34.5 L32.9285714,34.5 C33.3679307,34.5 33.5,34.3693663 33.5,33.9402182 C33.5,29.8349108 33.5,29.6695315 33.5,23.1393414 C28.409924,25.8483285 23.7681405,24.8893521 16.4444643,21.1379608 C11.4216372,18.5651287 11.0931764,18.4094718 9.43982941,17.9988583 C7.34020973,17.4774116 5.78906845,17.8335647 4.5,19.2887422 Z"
9917
- }
9918
- ),
9919
- /* @__PURE__ */ jsx41("circle", { cx: "25.5", cy: "11.5", r: "4.5", fill: "#1C8B96" })
9920
- ] })
9921
- ]
9922
- }
9923
- );
9924
- };
9860
+
9861
+ // src/icons/video-icon.tsx
9862
+ import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
9925
9863
 
9926
9864
  // src/widgets/advanced/table/table-group.tsx
9927
- import { Fragment as Fragment2, jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
9865
+ import { Fragment as Fragment2, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
9928
9866
  var TableGroup = (props) => {
9929
9867
  const { t: t3 } = useI18n();
9930
9868
  const {
@@ -9974,28 +9912,28 @@ var TableGroup = (props) => {
9974
9912
  setSelectedRowKeys
9975
9913
  });
9976
9914
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
9977
- return /* @__PURE__ */ jsxs22(Fragment2, { children: [
9978
- /* @__PURE__ */ jsxs22(
9915
+ return /* @__PURE__ */ jsxs23(Fragment2, { children: [
9916
+ /* @__PURE__ */ jsxs23(
9979
9917
  "tr",
9980
9918
  {
9981
9919
  draggable: true,
9982
9920
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
9983
9921
  onClick: onExpandChildGroup,
9984
9922
  children: [
9985
- /* @__PURE__ */ jsx42(
9923
+ /* @__PURE__ */ jsx43(
9986
9924
  "td",
9987
9925
  {
9988
9926
  colSpan: colEmptyGroup.fromStart ?? 1,
9989
9927
  style: { display: "table-cell" },
9990
9928
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
9991
- children: /* @__PURE__ */ jsxs22(
9929
+ children: /* @__PURE__ */ jsxs23(
9992
9930
  "div",
9993
9931
  {
9994
9932
  style: { paddingLeft: leftPadding },
9995
9933
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
9996
9934
  children: [
9997
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2", children: [
9998
- /* @__PURE__ */ jsx42(
9935
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
9936
+ /* @__PURE__ */ jsx43(
9999
9937
  TriangleIcon,
10000
9938
  {
10001
9939
  style: {
@@ -10004,15 +9942,15 @@ var TableGroup = (props) => {
10004
9942
  className: `w-2 h-2 text-button_primary `
10005
9943
  }
10006
9944
  ),
10007
- /* @__PURE__ */ jsx42("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
9945
+ /* @__PURE__ */ jsx43("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10008
9946
  ] }),
10009
- /* @__PURE__ */ jsx42(
9947
+ /* @__PURE__ */ jsx43(
10010
9948
  "div",
10011
9949
  {
10012
9950
  onClick: (e3) => {
10013
9951
  e3.stopPropagation();
10014
9952
  },
10015
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx42(
9953
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx43(
10016
9954
  PaginationView,
10017
9955
  {
10018
9956
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -10033,7 +9971,7 @@ var TableGroup = (props) => {
10033
9971
  columns?.map((col) => {
10034
9972
  if (col?.optional === "hide") return;
10035
9973
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
10036
- return /* @__PURE__ */ jsx42(
9974
+ return /* @__PURE__ */ jsx43(
10037
9975
  "td",
10038
9976
  {
10039
9977
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -10051,7 +9989,7 @@ var TableGroup = (props) => {
10051
9989
  ]
10052
9990
  }
10053
9991
  ),
10054
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx42(
9992
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx43(
10055
9993
  TableBodyRow,
10056
9994
  {
10057
9995
  columns: columnsGroup,
@@ -10081,7 +10019,7 @@ var TableGroup = (props) => {
10081
10019
 
10082
10020
  // src/widgets/advanced/table/table-row.tsx
10083
10021
  import { useEffect as useEffect3, useMemo as useMemo3, useRef as useRef2 } from "react";
10084
- import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
10022
+ import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
10085
10023
  var Row = (props) => {
10086
10024
  const {
10087
10025
  row,
@@ -10147,17 +10085,17 @@ var Row = (props) => {
10147
10085
  setIsAutoSelect(false);
10148
10086
  }
10149
10087
  }, [checkedAll]);
10150
- return /* @__PURE__ */ jsx43(
10088
+ return /* @__PURE__ */ jsx44(
10151
10089
  "tr",
10152
10090
  {
10153
10091
  "data-row-id": row?.id,
10154
10092
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10155
- children: /* @__PURE__ */ jsxs23(Fragment3, { children: [
10156
- isDisplayCheckbox && /* @__PURE__ */ jsx43(
10093
+ children: /* @__PURE__ */ jsxs24(Fragment3, { children: [
10094
+ isDisplayCheckbox && /* @__PURE__ */ jsx44(
10157
10095
  "td",
10158
10096
  {
10159
10097
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
10160
- children: /* @__PURE__ */ jsx43(
10098
+ children: /* @__PURE__ */ jsx44(
10161
10099
  "input",
10162
10100
  {
10163
10101
  type: "checkbox",
@@ -10170,9 +10108,9 @@ var Row = (props) => {
10170
10108
  ),
10171
10109
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
10172
10110
  if (row?.display_type === "line_section" && col.key !== "display_name") {
10173
- return /* @__PURE__ */ jsx43("td", {});
10111
+ return /* @__PURE__ */ jsx44("td", {});
10174
10112
  }
10175
- return /* @__PURE__ */ jsx43(
10113
+ return /* @__PURE__ */ jsx44(
10176
10114
  "td",
10177
10115
  {
10178
10116
  colSpan: 1,
@@ -10191,7 +10129,7 @@ var Row = (props) => {
10191
10129
  `${col.name}____${index4}`
10192
10130
  );
10193
10131
  }),
10194
- typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx43("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx43("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx43(
10132
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx44("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx44("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx44(
10195
10133
  "button",
10196
10134
  {
10197
10135
  type: "button",
@@ -10199,7 +10137,7 @@ var Row = (props) => {
10199
10137
  onClick: () => {
10200
10138
  onRemoveRow(indexRow);
10201
10139
  },
10202
- children: /* @__PURE__ */ jsx43(DeleteIcon, {})
10140
+ children: /* @__PURE__ */ jsx44(DeleteIcon, {})
10203
10141
  }
10204
10142
  ) }) })
10205
10143
  ] })
@@ -10209,7 +10147,7 @@ var Row = (props) => {
10209
10147
  };
10210
10148
 
10211
10149
  // src/widgets/advanced/table/table-body.tsx
10212
- import { jsx as jsx44 } from "react/jsx-runtime";
10150
+ import { jsx as jsx45 } from "react/jsx-runtime";
10213
10151
  var TableBodyRow = (props) => {
10214
10152
  const {
10215
10153
  rows,
@@ -10239,7 +10177,7 @@ var TableBodyRow = (props) => {
10239
10177
  isEditTable
10240
10178
  } = props;
10241
10179
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10242
- return typeTable === "group" ? /* @__PURE__ */ jsx44(
10180
+ return typeTable === "group" ? /* @__PURE__ */ jsx45(
10243
10181
  TableGroup,
10244
10182
  {
10245
10183
  columns,
@@ -10264,7 +10202,7 @@ var TableBodyRow = (props) => {
10264
10202
  onClickRow
10265
10203
  },
10266
10204
  `record-group-${index4}`
10267
- ) : /* @__PURE__ */ jsx44(
10205
+ ) : /* @__PURE__ */ jsx45(
10268
10206
  Row,
10269
10207
  {
10270
10208
  row,
@@ -10292,7 +10230,7 @@ var TableBodyRow = (props) => {
10292
10230
  };
10293
10231
  var TableBody = (props) => {
10294
10232
  const [isAutoSelect, setIsAutoSelect] = useState2(false);
10295
- return /* @__PURE__ */ jsx44("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx44(
10233
+ return /* @__PURE__ */ jsx45("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx45(
10296
10234
  TableBodyRow,
10297
10235
  {
10298
10236
  ...props,
@@ -10553,7 +10491,7 @@ function useFileInfo(source, options2) {
10553
10491
  }
10554
10492
 
10555
10493
  // src/widgets/advanced/table/table-filter.tsx
10556
- import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
10494
+ import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
10557
10495
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
10558
10496
  const [openTableFilter, setOpenTableFilter] = useState4();
10559
10497
  const [filterPosition, setFilterPosition] = useState4(null);
@@ -10585,7 +10523,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10585
10523
  window.removeEventListener("resize", updatePosition);
10586
10524
  };
10587
10525
  }, [filterRef, openTableFilter]);
10588
- return /* @__PURE__ */ jsxs24(
10526
+ return /* @__PURE__ */ jsxs25(
10589
10527
  "div",
10590
10528
  {
10591
10529
  ref: filterRef,
@@ -10594,7 +10532,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10594
10532
  },
10595
10533
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
10596
10534
  children: [
10597
- /* @__PURE__ */ jsx45(
10535
+ /* @__PURE__ */ jsx46(
10598
10536
  "button",
10599
10537
  {
10600
10538
  type: "button",
@@ -10602,7 +10540,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10602
10540
  onClick: () => {
10603
10541
  setOpenTableFilter(!openTableFilter);
10604
10542
  },
10605
- children: /* @__PURE__ */ jsxs24(
10543
+ children: /* @__PURE__ */ jsxs25(
10606
10544
  "svg",
10607
10545
  {
10608
10546
  xmlns: "http://www.w3.org/2000/svg",
@@ -10611,42 +10549,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10611
10549
  viewBox: "0 0 16 16",
10612
10550
  fill: "none",
10613
10551
  children: [
10614
- /* @__PURE__ */ jsx45(
10552
+ /* @__PURE__ */ jsx46(
10615
10553
  "path",
10616
10554
  {
10617
10555
  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",
10618
10556
  fill: "#1F1F1F"
10619
10557
  }
10620
10558
  ),
10621
- /* @__PURE__ */ jsx45(
10559
+ /* @__PURE__ */ jsx46(
10622
10560
  "path",
10623
10561
  {
10624
10562
  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",
10625
10563
  fill: "#1F1F1F"
10626
10564
  }
10627
10565
  ),
10628
- /* @__PURE__ */ jsx45(
10566
+ /* @__PURE__ */ jsx46(
10629
10567
  "path",
10630
10568
  {
10631
10569
  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",
10632
10570
  fill: "#1F1F1F"
10633
10571
  }
10634
10572
  ),
10635
- /* @__PURE__ */ jsx45(
10573
+ /* @__PURE__ */ jsx46(
10636
10574
  "path",
10637
10575
  {
10638
10576
  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",
10639
10577
  fill: "black"
10640
10578
  }
10641
10579
  ),
10642
- /* @__PURE__ */ jsx45(
10580
+ /* @__PURE__ */ jsx46(
10643
10581
  "path",
10644
10582
  {
10645
10583
  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",
10646
10584
  fill: "black"
10647
10585
  }
10648
10586
  ),
10649
- /* @__PURE__ */ jsx45(
10587
+ /* @__PURE__ */ jsx46(
10650
10588
  "path",
10651
10589
  {
10652
10590
  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",
@@ -10659,7 +10597,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10659
10597
  }
10660
10598
  ),
10661
10599
  filterPosition && openTableFilter && createPortal(
10662
- /* @__PURE__ */ jsx45(
10600
+ /* @__PURE__ */ jsx46(
10663
10601
  "div",
10664
10602
  {
10665
10603
  ref: filterPopupRef,
@@ -10670,8 +10608,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10670
10608
  },
10671
10609
  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",
10672
10610
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
10673
- return /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
10674
- /* @__PURE__ */ jsx45(
10611
+ return /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
10612
+ /* @__PURE__ */ jsx46(
10675
10613
  "input",
10676
10614
  {
10677
10615
  type: "checkbox",
@@ -10681,7 +10619,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10681
10619
  className: "cursor-pointer"
10682
10620
  }
10683
10621
  ),
10684
- /* @__PURE__ */ jsx45(
10622
+ /* @__PURE__ */ jsx46(
10685
10623
  "label",
10686
10624
  {
10687
10625
  htmlFor: `${item.name}`,
@@ -10701,14 +10639,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10701
10639
  };
10702
10640
 
10703
10641
  // src/widgets/advanced/table/table-footer.tsx
10704
- import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
10642
+ import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
10705
10643
  var TableFooter = ({ onAddRow, rows }) => {
10706
10644
  const emptyData = rows?.length <= 0;
10707
- return /* @__PURE__ */ jsx46("tfoot", { children: /* @__PURE__ */ jsx46("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx46(
10645
+ return /* @__PURE__ */ jsx47("tfoot", { children: /* @__PURE__ */ jsx47("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx47(
10708
10646
  "td",
10709
10647
  {
10710
10648
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
10711
- children: /* @__PURE__ */ jsxs25(
10649
+ children: /* @__PURE__ */ jsxs26(
10712
10650
  "button",
10713
10651
  {
10714
10652
  type: "button",
@@ -10718,7 +10656,7 @@ var TableFooter = ({ onAddRow, rows }) => {
10718
10656
  },
10719
10657
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
10720
10658
  children: [
10721
- /* @__PURE__ */ jsxs25(
10659
+ /* @__PURE__ */ jsxs26(
10722
10660
  "svg",
10723
10661
  {
10724
10662
  style: {
@@ -10731,14 +10669,14 @@ var TableFooter = ({ onAddRow, rows }) => {
10731
10669
  viewBox: "0 0 20 20",
10732
10670
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
10733
10671
  children: [
10734
- /* @__PURE__ */ jsx46(
10672
+ /* @__PURE__ */ jsx47(
10735
10673
  "path",
10736
10674
  {
10737
10675
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
10738
10676
  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"
10739
10677
  }
10740
10678
  ),
10741
- /* @__PURE__ */ jsx46(
10679
+ /* @__PURE__ */ jsx47(
10742
10680
  "path",
10743
10681
  {
10744
10682
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -12558,8 +12496,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
12558
12496
  });
12559
12497
 
12560
12498
  // src/widgets/advanced/table/table-head.tsx
12561
- import { createPortal as createPortal2 } from "react-dom";
12562
- import { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
12499
+ import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12563
12500
  var TableHead = (props) => {
12564
12501
  const {
12565
12502
  handleCheckBoxAll,
@@ -12569,7 +12506,7 @@ var TableHead = (props) => {
12569
12506
  onRemoveRow,
12570
12507
  onToggleColumnOptional
12571
12508
  } = props;
12572
- return /* @__PURE__ */ jsx47("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs26(
12509
+ return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs27(
12573
12510
  "tr",
12574
12511
  {
12575
12512
  style: {
@@ -12581,11 +12518,11 @@ var TableHead = (props) => {
12581
12518
  },
12582
12519
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
12583
12520
  children: [
12584
- isDisplayCheckbox && /* @__PURE__ */ jsx47(
12521
+ isDisplayCheckbox && /* @__PURE__ */ jsx48(
12585
12522
  "th",
12586
12523
  {
12587
12524
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
12588
- children: /* @__PURE__ */ jsx47(
12525
+ children: /* @__PURE__ */ jsx48(
12589
12526
  "input",
12590
12527
  {
12591
12528
  type: "checkbox",
@@ -12597,36 +12534,32 @@ var TableHead = (props) => {
12597
12534
  }
12598
12535
  ),
12599
12536
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12600
- return /* @__PURE__ */ jsx47(
12537
+ return /* @__PURE__ */ jsx48(
12601
12538
  "th",
12602
12539
  {
12603
- "data-rtc-resizable": col?.name,
12604
12540
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12605
- children: /* @__PURE__ */ jsxs26("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12541
+ children: /* @__PURE__ */ jsxs27("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12606
12542
  col.title,
12607
- col?.field?.help && /* @__PURE__ */ jsxs26(Fragment4, { children: [
12608
- createPortal2(
12609
- /* @__PURE__ */ jsx47(
12610
- M,
12611
- {
12612
- style: {
12613
- padding: "6px 12px",
12614
- fontSize: "12px",
12615
- borderRadius: "4px",
12616
- maxWidth: "200px",
12617
- whiteSpace: "wrap",
12618
- fontWeight: 400,
12619
- textTransform: "none",
12620
- zIndex: "9999"
12621
- },
12622
- id: `field-help-${col?.field?.name}`,
12623
- content: col?.field?.help,
12624
- place: "top"
12625
- }
12626
- ),
12627
- document.body
12543
+ col?.field?.help && /* @__PURE__ */ jsxs27(Fragment4, { children: [
12544
+ /* @__PURE__ */ jsx48(
12545
+ M,
12546
+ {
12547
+ style: {
12548
+ padding: "6px 12px",
12549
+ fontSize: "12px",
12550
+ borderRadius: "4px",
12551
+ maxWidth: "200%",
12552
+ whiteSpace: "wrap",
12553
+ fontWeight: 400,
12554
+ textTransform: "none"
12555
+ },
12556
+ id: `field-help-${col?.field?.name}`,
12557
+ content: col?.field?.help,
12558
+ place: "top",
12559
+ className: "z-30"
12560
+ }
12628
12561
  ),
12629
- /* @__PURE__ */ jsx47(
12562
+ /* @__PURE__ */ jsx48(
12630
12563
  "span",
12631
12564
  {
12632
12565
  style: {
@@ -12645,8 +12578,8 @@ var TableHead = (props) => {
12645
12578
  "table-head-" + index4
12646
12579
  );
12647
12580
  }),
12648
- typeof onRemoveRow === "function" && /* @__PURE__ */ jsx47("th", { className: "relative p-2 w-[35px]" }),
12649
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
12581
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx48("th", { className: "relative p-2 w-[35px]" }),
12582
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx48(
12650
12583
  "th",
12651
12584
  {
12652
12585
  style: {
@@ -12654,7 +12587,7 @@ var TableHead = (props) => {
12654
12587
  right: 0
12655
12588
  },
12656
12589
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
12657
- children: /* @__PURE__ */ jsx47(
12590
+ children: /* @__PURE__ */ jsx48(
12658
12591
  TableFilter,
12659
12592
  {
12660
12593
  columns,
@@ -12669,9 +12602,9 @@ var TableHead = (props) => {
12669
12602
  };
12670
12603
 
12671
12604
  // src/icons/empty-table-icon.tsx
12672
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12605
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12673
12606
  var IcEmptyTable = () => {
12674
- return /* @__PURE__ */ jsxs27(
12607
+ return /* @__PURE__ */ jsxs28(
12675
12608
  "svg",
12676
12609
  {
12677
12610
  xmlns: "http://www.w3.org/2000/svg",
@@ -12680,9 +12613,9 @@ var IcEmptyTable = () => {
12680
12613
  viewBox: "0 0 216 140",
12681
12614
  fill: "none",
12682
12615
  children: [
12683
- /* @__PURE__ */ jsxs27("g", { clipPath: "url(#clip0_2454_28950)", children: [
12684
- /* @__PURE__ */ jsx48("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12685
- /* @__PURE__ */ jsx48(
12616
+ /* @__PURE__ */ jsxs28("g", { clipPath: "url(#clip0_2454_28950)", children: [
12617
+ /* @__PURE__ */ jsx49("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12618
+ /* @__PURE__ */ jsx49(
12686
12619
  "path",
12687
12620
  {
12688
12621
  d: "M64.5 0V140",
@@ -12692,7 +12625,7 @@ var IcEmptyTable = () => {
12692
12625
  strokeDasharray: "3 3"
12693
12626
  }
12694
12627
  ),
12695
- /* @__PURE__ */ jsx48(
12628
+ /* @__PURE__ */ jsx49(
12696
12629
  "path",
12697
12630
  {
12698
12631
  d: "M151.5 0V140",
@@ -12702,7 +12635,7 @@ var IcEmptyTable = () => {
12702
12635
  strokeDasharray: "3 3"
12703
12636
  }
12704
12637
  ),
12705
- /* @__PURE__ */ jsx48(
12638
+ /* @__PURE__ */ jsx49(
12706
12639
  "path",
12707
12640
  {
12708
12641
  d: "M215.5 24H0.5",
@@ -12712,7 +12645,7 @@ var IcEmptyTable = () => {
12712
12645
  strokeDasharray: "3 3"
12713
12646
  }
12714
12647
  ),
12715
- /* @__PURE__ */ jsx48(
12648
+ /* @__PURE__ */ jsx49(
12716
12649
  "path",
12717
12650
  {
12718
12651
  d: "M215.5 50H0.5",
@@ -12722,7 +12655,7 @@ var IcEmptyTable = () => {
12722
12655
  strokeDasharray: "3 3"
12723
12656
  }
12724
12657
  ),
12725
- /* @__PURE__ */ jsx48(
12658
+ /* @__PURE__ */ jsx49(
12726
12659
  "path",
12727
12660
  {
12728
12661
  d: "M215.5 88H0.5",
@@ -12732,7 +12665,7 @@ var IcEmptyTable = () => {
12732
12665
  strokeDasharray: "3 3"
12733
12666
  }
12734
12667
  ),
12735
- /* @__PURE__ */ jsx48(
12668
+ /* @__PURE__ */ jsx49(
12736
12669
  "path",
12737
12670
  {
12738
12671
  d: "M215.5 114H0.5",
@@ -12742,7 +12675,7 @@ var IcEmptyTable = () => {
12742
12675
  strokeDasharray: "3 3"
12743
12676
  }
12744
12677
  ),
12745
- /* @__PURE__ */ jsx48(
12678
+ /* @__PURE__ */ jsx49(
12746
12679
  "path",
12747
12680
  {
12748
12681
  d: "M199.5 0V140",
@@ -12751,7 +12684,7 @@ var IcEmptyTable = () => {
12751
12684
  strokeMiterlimit: "10"
12752
12685
  }
12753
12686
  ),
12754
- /* @__PURE__ */ jsx48(
12687
+ /* @__PURE__ */ jsx49(
12755
12688
  "path",
12756
12689
  {
12757
12690
  d: "M16.5 0V140",
@@ -12760,7 +12693,7 @@ var IcEmptyTable = () => {
12760
12693
  strokeMiterlimit: "10"
12761
12694
  }
12762
12695
  ),
12763
- /* @__PURE__ */ jsx48(
12696
+ /* @__PURE__ */ jsx49(
12764
12697
  "path",
12765
12698
  {
12766
12699
  d: "M0.5 16H215.5",
@@ -12769,7 +12702,7 @@ var IcEmptyTable = () => {
12769
12702
  strokeMiterlimit: "10"
12770
12703
  }
12771
12704
  ),
12772
- /* @__PURE__ */ jsx48(
12705
+ /* @__PURE__ */ jsx49(
12773
12706
  "path",
12774
12707
  {
12775
12708
  d: "M0.5 124H215.5",
@@ -12778,7 +12711,7 @@ var IcEmptyTable = () => {
12778
12711
  strokeMiterlimit: "10"
12779
12712
  }
12780
12713
  ),
12781
- /* @__PURE__ */ jsx48(
12714
+ /* @__PURE__ */ jsx49(
12782
12715
  "path",
12783
12716
  {
12784
12717
  opacity: "0.6",
@@ -12789,7 +12722,7 @@ var IcEmptyTable = () => {
12789
12722
  strokeLinejoin: "round"
12790
12723
  }
12791
12724
  ),
12792
- /* @__PURE__ */ jsx48(
12725
+ /* @__PURE__ */ jsx49(
12793
12726
  "path",
12794
12727
  {
12795
12728
  opacity: "0.6",
@@ -12800,7 +12733,7 @@ var IcEmptyTable = () => {
12800
12733
  strokeLinejoin: "round"
12801
12734
  }
12802
12735
  ),
12803
- /* @__PURE__ */ jsx48(
12736
+ /* @__PURE__ */ jsx49(
12804
12737
  "path",
12805
12738
  {
12806
12739
  opacity: "0.6",
@@ -12811,7 +12744,7 @@ var IcEmptyTable = () => {
12811
12744
  strokeLinejoin: "round"
12812
12745
  }
12813
12746
  ),
12814
- /* @__PURE__ */ jsx48(
12747
+ /* @__PURE__ */ jsx49(
12815
12748
  "path",
12816
12749
  {
12817
12750
  opacity: "0.6",
@@ -12822,7 +12755,7 @@ var IcEmptyTable = () => {
12822
12755
  strokeLinejoin: "round"
12823
12756
  }
12824
12757
  ),
12825
- /* @__PURE__ */ jsx48(
12758
+ /* @__PURE__ */ jsx49(
12826
12759
  "path",
12827
12760
  {
12828
12761
  opacity: "0.6",
@@ -12833,14 +12766,14 @@ var IcEmptyTable = () => {
12833
12766
  strokeLinejoin: "round"
12834
12767
  }
12835
12768
  ),
12836
- /* @__PURE__ */ jsx48(
12769
+ /* @__PURE__ */ jsx49(
12837
12770
  "path",
12838
12771
  {
12839
12772
  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",
12840
12773
  fill: "white"
12841
12774
  }
12842
12775
  ),
12843
- /* @__PURE__ */ jsx48(
12776
+ /* @__PURE__ */ jsx49(
12844
12777
  "path",
12845
12778
  {
12846
12779
  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",
@@ -12850,7 +12783,7 @@ var IcEmptyTable = () => {
12850
12783
  strokeLinejoin: "round"
12851
12784
  }
12852
12785
  ),
12853
- /* @__PURE__ */ jsx48(
12786
+ /* @__PURE__ */ jsx49(
12854
12787
  "path",
12855
12788
  {
12856
12789
  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",
@@ -12859,7 +12792,7 @@ var IcEmptyTable = () => {
12859
12792
  strokeLinejoin: "round"
12860
12793
  }
12861
12794
  ),
12862
- /* @__PURE__ */ jsx48(
12795
+ /* @__PURE__ */ jsx49(
12863
12796
  "path",
12864
12797
  {
12865
12798
  opacity: "0.6",
@@ -12870,7 +12803,7 @@ var IcEmptyTable = () => {
12870
12803
  strokeLinejoin: "round"
12871
12804
  }
12872
12805
  ),
12873
- /* @__PURE__ */ jsx48(
12806
+ /* @__PURE__ */ jsx49(
12874
12807
  "path",
12875
12808
  {
12876
12809
  opacity: "0.6",
@@ -12881,7 +12814,7 @@ var IcEmptyTable = () => {
12881
12814
  strokeLinejoin: "round"
12882
12815
  }
12883
12816
  ),
12884
- /* @__PURE__ */ jsx48(
12817
+ /* @__PURE__ */ jsx49(
12885
12818
  "path",
12886
12819
  {
12887
12820
  opacity: "0.6",
@@ -12892,7 +12825,7 @@ var IcEmptyTable = () => {
12892
12825
  strokeLinejoin: "round"
12893
12826
  }
12894
12827
  ),
12895
- /* @__PURE__ */ jsx48(
12828
+ /* @__PURE__ */ jsx49(
12896
12829
  "path",
12897
12830
  {
12898
12831
  opacity: "0.6",
@@ -12903,7 +12836,7 @@ var IcEmptyTable = () => {
12903
12836
  strokeLinejoin: "round"
12904
12837
  }
12905
12838
  ),
12906
- /* @__PURE__ */ jsx48(
12839
+ /* @__PURE__ */ jsx49(
12907
12840
  "path",
12908
12841
  {
12909
12842
  opacity: "0.6",
@@ -12914,7 +12847,7 @@ var IcEmptyTable = () => {
12914
12847
  strokeLinejoin: "round"
12915
12848
  }
12916
12849
  ),
12917
- /* @__PURE__ */ jsx48(
12850
+ /* @__PURE__ */ jsx49(
12918
12851
  "path",
12919
12852
  {
12920
12853
  opacity: "0.6",
@@ -12925,7 +12858,7 @@ var IcEmptyTable = () => {
12925
12858
  strokeLinejoin: "round"
12926
12859
  }
12927
12860
  ),
12928
- /* @__PURE__ */ jsx48(
12861
+ /* @__PURE__ */ jsx49(
12929
12862
  "path",
12930
12863
  {
12931
12864
  opacity: "0.6",
@@ -12936,7 +12869,7 @@ var IcEmptyTable = () => {
12936
12869
  strokeLinejoin: "round"
12937
12870
  }
12938
12871
  ),
12939
- /* @__PURE__ */ jsx48(
12872
+ /* @__PURE__ */ jsx49(
12940
12873
  "path",
12941
12874
  {
12942
12875
  opacity: "0.6",
@@ -12947,7 +12880,7 @@ var IcEmptyTable = () => {
12947
12880
  strokeLinejoin: "round"
12948
12881
  }
12949
12882
  ),
12950
- /* @__PURE__ */ jsx48(
12883
+ /* @__PURE__ */ jsx49(
12951
12884
  "path",
12952
12885
  {
12953
12886
  opacity: "0.6",
@@ -12958,14 +12891,14 @@ var IcEmptyTable = () => {
12958
12891
  strokeLinejoin: "round"
12959
12892
  }
12960
12893
  ),
12961
- /* @__PURE__ */ jsx48(
12894
+ /* @__PURE__ */ jsx49(
12962
12895
  "path",
12963
12896
  {
12964
12897
  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",
12965
12898
  fill: "white"
12966
12899
  }
12967
12900
  ),
12968
- /* @__PURE__ */ jsx48(
12901
+ /* @__PURE__ */ jsx49(
12969
12902
  "path",
12970
12903
  {
12971
12904
  "fill-rule": "evenodd",
@@ -12974,7 +12907,7 @@ var IcEmptyTable = () => {
12974
12907
  fill: "white"
12975
12908
  }
12976
12909
  ),
12977
- /* @__PURE__ */ jsx48(
12910
+ /* @__PURE__ */ jsx49(
12978
12911
  "path",
12979
12912
  {
12980
12913
  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",
@@ -12985,7 +12918,7 @@ var IcEmptyTable = () => {
12985
12918
  }
12986
12919
  )
12987
12920
  ] }),
12988
- /* @__PURE__ */ jsx48("defs", { children: /* @__PURE__ */ jsx48("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx48(
12921
+ /* @__PURE__ */ jsx49("defs", { children: /* @__PURE__ */ jsx49("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx49(
12989
12922
  "rect",
12990
12923
  {
12991
12924
  width: "215",
@@ -13000,14 +12933,14 @@ var IcEmptyTable = () => {
13000
12933
  };
13001
12934
 
13002
12935
  // src/widgets/advanced/table/empty-table.tsx
13003
- import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12936
+ import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
13004
12937
  var EmptyTable = () => {
13005
12938
  const { t: t3 } = useI18n();
13006
- return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13007
- /* @__PURE__ */ jsx49(IcEmptyTable, {}),
13008
- /* @__PURE__ */ jsxs28("div", { children: [
13009
- /* @__PURE__ */ jsx49("p", {}),
13010
- /* @__PURE__ */ jsx49("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
12939
+ return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
12940
+ /* @__PURE__ */ jsx50(IcEmptyTable, {}),
12941
+ /* @__PURE__ */ jsxs29("div", { children: [
12942
+ /* @__PURE__ */ jsx50("p", {}),
12943
+ /* @__PURE__ */ jsx50("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13011
12944
  ] })
13012
12945
  ] });
13013
12946
  };
@@ -14826,10 +14759,10 @@ function s3(o3, s4, t3) {
14826
14759
 
14827
14760
  // src/widgets/advanced/login/shared/button.tsx
14828
14761
  import * as React2 from "react";
14829
- import { jsx as jsx50 } from "react/jsx-runtime";
14762
+ import { jsx as jsx51 } from "react/jsx-runtime";
14830
14763
  var Button = React2.forwardRef(
14831
14764
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
14832
- return /* @__PURE__ */ jsx50(
14765
+ return /* @__PURE__ */ jsx51(
14833
14766
  "button",
14834
14767
  {
14835
14768
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -14839,7 +14772,7 @@ var Button = React2.forwardRef(
14839
14772
  ref,
14840
14773
  type,
14841
14774
  ...props,
14842
- children: isLoading ? /* @__PURE__ */ jsx50(LoadingIcon, { width: 20, height: 20 }) : children
14775
+ children: isLoading ? /* @__PURE__ */ jsx51(LoadingIcon, { width: 20, height: 20 }) : children
14843
14776
  }
14844
14777
  );
14845
14778
  }
@@ -14848,7 +14781,7 @@ Button.displayName = "Button";
14848
14781
 
14849
14782
  // src/widgets/advanced/login/shared/text-input.tsx
14850
14783
  import { useState as useState5 } from "react";
14851
- import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
14784
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14852
14785
  function TextInput(props) {
14853
14786
  const {
14854
14787
  className,
@@ -14862,17 +14795,17 @@ function TextInput(props) {
14862
14795
  required
14863
14796
  } = props;
14864
14797
  const [showPassword, setShowPassword] = useState5(false);
14865
- return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14866
- label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14798
+ return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14799
+ label && /* @__PURE__ */ jsxs30("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14867
14800
  label,
14868
- required ? /* @__PURE__ */ jsx51("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14801
+ required ? /* @__PURE__ */ jsx52("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14869
14802
  ] }),
14870
- /* @__PURE__ */ jsxs29(
14803
+ /* @__PURE__ */ jsxs30(
14871
14804
  "div",
14872
14805
  {
14873
14806
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
14874
14807
  children: [
14875
- /* @__PURE__ */ jsx51(
14808
+ /* @__PURE__ */ jsx52(
14876
14809
  "input",
14877
14810
  {
14878
14811
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -14881,18 +14814,18 @@ function TextInput(props) {
14881
14814
  ...register(name2)
14882
14815
  }
14883
14816
  ),
14884
- type === "password" && /* @__PURE__ */ jsx51(
14817
+ type === "password" && /* @__PURE__ */ jsx52(
14885
14818
  "span",
14886
14819
  {
14887
14820
  onClick: () => setShowPassword(!showPassword),
14888
14821
  className: "focus:outline-none",
14889
- children: showPassword ? /* @__PURE__ */ jsx51(EyeClosedIcon, {}) : /* @__PURE__ */ jsx51(EyeIcon, {})
14822
+ children: showPassword ? /* @__PURE__ */ jsx52(EyeClosedIcon, {}) : /* @__PURE__ */ jsx52(EyeIcon, {})
14890
14823
  }
14891
14824
  )
14892
14825
  ]
14893
14826
  }
14894
14827
  ),
14895
- errors?.[name2]?.message && /* @__PURE__ */ jsx51(
14828
+ errors?.[name2]?.message && /* @__PURE__ */ jsx52(
14896
14829
  "p",
14897
14830
  {
14898
14831
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -14904,7 +14837,7 @@ function TextInput(props) {
14904
14837
 
14905
14838
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
14906
14839
  import { useEffect as useEffect7 } from "react";
14907
- import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14840
+ import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
14908
14841
  var STAY_LOGIN_IN = "stayLoginIn";
14909
14842
  function FormOptions({
14910
14843
  forgotPasswordUrl,
@@ -14930,9 +14863,9 @@ function FormOptions({
14930
14863
  useEffect7(() => {
14931
14864
  localStorage.setItem(STAY_LOGIN_IN, "false");
14932
14865
  }, []);
14933
- return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14934
- /* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
14935
- /* @__PURE__ */ jsx52(
14866
+ return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14867
+ /* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
14868
+ /* @__PURE__ */ jsx53(
14936
14869
  "input",
14937
14870
  {
14938
14871
  checked: stayLoginIn,
@@ -14941,9 +14874,9 @@ function FormOptions({
14941
14874
  onChange: handleCheckboxChange
14942
14875
  }
14943
14876
  ),
14944
- /* @__PURE__ */ jsx52("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14877
+ /* @__PURE__ */ jsx53("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
14945
14878
  ] }),
14946
- !hideForgotPassword && /* @__PURE__ */ jsx52("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14879
+ !hideForgotPassword && /* @__PURE__ */ jsx53("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
14947
14880
  ] });
14948
14881
  }
14949
14882
 
@@ -14959,7 +14892,7 @@ var loginSchema = z2.object({
14959
14892
  });
14960
14893
 
14961
14894
  // src/widgets/advanced/login/provider/credential/index.tsx
14962
- import { Fragment as Fragment5, jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
14895
+ import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
14963
14896
  var CredentialLogin = (props) => {
14964
14897
  const {
14965
14898
  shouldRenderDivider,
@@ -14979,16 +14912,16 @@ var CredentialLogin = (props) => {
14979
14912
  mode: "onChange",
14980
14913
  resolver: s3(loginSchema)
14981
14914
  });
14982
- return /* @__PURE__ */ jsxs31(Fragment5, { children: [
14983
- /* @__PURE__ */ jsxs31(
14915
+ return /* @__PURE__ */ jsxs32(Fragment5, { children: [
14916
+ /* @__PURE__ */ jsxs32(
14984
14917
  "form",
14985
14918
  {
14986
14919
  onSubmit: handleSubmit(onSubmit ?? (() => {
14987
14920
  })),
14988
14921
  className: `flex w-full h-fit flex-col gap-10`,
14989
14922
  children: [
14990
- /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
14991
- /* @__PURE__ */ jsx53(
14923
+ /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
14924
+ /* @__PURE__ */ jsx54(
14992
14925
  TextInput,
14993
14926
  {
14994
14927
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15001,7 +14934,7 @@ var CredentialLogin = (props) => {
15001
14934
  errors
15002
14935
  }
15003
14936
  ),
15004
- /* @__PURE__ */ jsx53(
14937
+ /* @__PURE__ */ jsx54(
15005
14938
  TextInput,
15006
14939
  {
15007
14940
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15014,7 +14947,7 @@ var CredentialLogin = (props) => {
15014
14947
  errors
15015
14948
  }
15016
14949
  ),
15017
- /* @__PURE__ */ jsx53(
14950
+ /* @__PURE__ */ jsx54(
15018
14951
  FormOptions,
15019
14952
  {
15020
14953
  forgotPasswordUrl,
@@ -15024,7 +14957,7 @@ var CredentialLogin = (props) => {
15024
14957
  }
15025
14958
  )
15026
14959
  ] }),
15027
- /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx53(
14960
+ /* @__PURE__ */ jsx54("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx54(
15028
14961
  Button,
15029
14962
  {
15030
14963
  type: "submit",
@@ -15036,56 +14969,56 @@ var CredentialLogin = (props) => {
15036
14969
  ]
15037
14970
  }
15038
14971
  ),
15039
- shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
15040
- /* @__PURE__ */ jsx53("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15041
- /* @__PURE__ */ jsx53("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
14972
+ shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
14973
+ /* @__PURE__ */ jsx54("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
14974
+ /* @__PURE__ */ jsx54("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15042
14975
  ] })
15043
14976
  ] });
15044
14977
  };
15045
14978
 
15046
14979
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15047
- import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
14980
+ import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
15048
14981
  function GoogleButton(props) {
15049
14982
  const { onLoginGoogle, db } = props;
15050
- return /* @__PURE__ */ jsxs32(
14983
+ return /* @__PURE__ */ jsxs33(
15051
14984
  "button",
15052
14985
  {
15053
14986
  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",
15054
14987
  onClick: () => onLoginGoogle?.(db),
15055
14988
  children: [
15056
- /* @__PURE__ */ jsx54(GoogleIcon, { className: "google-icon" }),
15057
- /* @__PURE__ */ jsx54("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
14989
+ /* @__PURE__ */ jsx55(GoogleIcon, { className: "google-icon" }),
14990
+ /* @__PURE__ */ jsx55("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15058
14991
  ]
15059
14992
  }
15060
14993
  );
15061
14994
  }
15062
14995
 
15063
14996
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15064
- import { Fragment as Fragment6, jsx as jsx55 } from "react/jsx-runtime";
14997
+ import { Fragment as Fragment6, jsx as jsx56 } from "react/jsx-runtime";
15065
14998
  function SocialRedirect(props) {
15066
14999
  const { db, onLoginSocial } = props;
15067
15000
  onLoginSocial && onLoginSocial(String(db));
15068
- return /* @__PURE__ */ jsx55(Fragment6, {});
15001
+ return /* @__PURE__ */ jsx56(Fragment6, {});
15069
15002
  }
15070
15003
 
15071
15004
  // src/widgets/advanced/login/provider/google/index.tsx
15072
- import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15005
+ import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15073
15006
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15074
- return /* @__PURE__ */ jsxs33(Fragment7, { children: [
15075
- /* @__PURE__ */ jsx56(GoogleButton, { db, onLoginGoogle }),
15076
- /* @__PURE__ */ jsx56(SocialRedirect, { db, onLoginSocial })
15007
+ return /* @__PURE__ */ jsxs34(Fragment7, { children: [
15008
+ /* @__PURE__ */ jsx57(GoogleButton, { db, onLoginGoogle }),
15009
+ /* @__PURE__ */ jsx57(SocialRedirect, { db, onLoginSocial })
15077
15010
  ] });
15078
15011
  };
15079
15012
 
15080
15013
  // src/widgets/advanced/login/index.tsx
15081
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15014
+ import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15082
15015
  var LoginProviderMapping = {
15083
15016
  google: GoogleLogin
15084
15017
  };
15085
15018
  var Login = (props) => {
15086
15019
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15087
- return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
15088
- /* @__PURE__ */ jsx57(
15020
+ return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
15021
+ /* @__PURE__ */ jsx58(
15089
15022
  CredentialLogin,
15090
15023
  {
15091
15024
  ...props,
@@ -15095,7 +15028,7 @@ var Login = (props) => {
15095
15028
  ),
15096
15029
  providers.map((provider, index4) => {
15097
15030
  const ProviderComp = LoginProviderMapping[provider];
15098
- return /* @__PURE__ */ jsx57(
15031
+ return /* @__PURE__ */ jsx58(
15099
15032
  ProviderComp,
15100
15033
  {
15101
15034
  db,
@@ -15109,7 +15042,7 @@ var Login = (props) => {
15109
15042
  };
15110
15043
 
15111
15044
  // src/widgets/advanced/search/popup-filter/index.tsx
15112
- import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15045
+ import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15113
15046
  var PopupFilter = ({
15114
15047
  handleAddTagSearch,
15115
15048
  removeSearchItems,
@@ -15120,7 +15053,7 @@ var PopupFilter = ({
15120
15053
  fields
15121
15054
  }) => {
15122
15055
  const { t: t3 } = useI18n();
15123
- return /* @__PURE__ */ jsx58(
15056
+ return /* @__PURE__ */ jsx59(
15124
15057
  "div",
15125
15058
  {
15126
15059
  style: {
@@ -15130,25 +15063,25 @@ var PopupFilter = ({
15130
15063
  zIndex: 33
15131
15064
  },
15132
15065
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15133
- children: /* @__PURE__ */ jsxs35(
15066
+ children: /* @__PURE__ */ jsxs36(
15134
15067
  "div",
15135
15068
  {
15136
15069
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15137
15070
  children: [
15138
- filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
15139
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15140
- /* @__PURE__ */ jsx58(FilterIcon, { className: "filter-by-icon text-primary" }),
15141
- /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15071
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
15072
+ /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15073
+ /* @__PURE__ */ jsx59(FilterIcon, { className: "filter-by-icon text-primary" }),
15074
+ /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15142
15075
  ] }),
15143
15076
  filterBy?.reduce((acc, item, index4, array) => {
15144
15077
  const prevItem = array[index4 - 1];
15145
15078
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15146
15079
  const isExist = item?.active;
15147
15080
  if (isDifferentGroup) {
15148
- acc.push(/* @__PURE__ */ jsx58("hr", { className: "my-2" }, "separator-" + index4));
15081
+ acc.push(/* @__PURE__ */ jsx59("hr", { className: "my-2" }, "separator-" + index4));
15149
15082
  }
15150
15083
  acc.push(
15151
- /* @__PURE__ */ jsxs35(
15084
+ /* @__PURE__ */ jsxs36(
15152
15085
  "button",
15153
15086
  {
15154
15087
  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)]"}`,
@@ -15173,8 +15106,8 @@ var PopupFilter = ({
15173
15106
  });
15174
15107
  },
15175
15108
  children: [
15176
- isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15177
- /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string ?? item?.help })
15109
+ isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15110
+ /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string ?? item?.help })
15178
15111
  ]
15179
15112
  },
15180
15113
  "filter-" + index4
@@ -15183,16 +15116,16 @@ var PopupFilter = ({
15183
15116
  return acc;
15184
15117
  }, [])
15185
15118
  ] }),
15186
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx58("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15187
- groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
15188
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15189
- /* @__PURE__ */ jsx58(GroupByIcon, { className: "group-by-icon text-primary" }),
15190
- /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15119
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx59("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15120
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
15121
+ /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15122
+ /* @__PURE__ */ jsx59(GroupByIcon, { className: "group-by-icon text-primary" }),
15123
+ /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15191
15124
  ] }),
15192
15125
  groupBy?.map((item, index4) => {
15193
15126
  const isExist = item?.active;
15194
15127
  if (!item.string) return;
15195
- return /* @__PURE__ */ jsxs35(
15128
+ return /* @__PURE__ */ jsxs36(
15196
15129
  "button",
15197
15130
  {
15198
15131
  onClick: () => {
@@ -15216,8 +15149,8 @@ var PopupFilter = ({
15216
15149
  },
15217
15150
  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)]"}`,
15218
15151
  children: [
15219
- isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15220
- /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string })
15152
+ isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15153
+ /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string })
15221
15154
  ]
15222
15155
  },
15223
15156
  "groupby-" + index4 + 1
@@ -15236,7 +15169,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15236
15169
 
15237
15170
  // src/widgets/advanced/search/tag-search/index.tsx
15238
15171
  import { Fragment as Fragment8 } from "react";
15239
- import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15172
+ import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15240
15173
  var TagSearch = ({
15241
15174
  removeSearchItems,
15242
15175
  selectedTags,
@@ -15247,23 +15180,23 @@ var TagSearch = ({
15247
15180
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15248
15181
  if (tag?.values?.length > 0) {
15249
15182
  if (tag?.type !== "group_by") {
15250
- return /* @__PURE__ */ jsxs36(
15183
+ return /* @__PURE__ */ jsxs37(
15251
15184
  "div",
15252
15185
  {
15253
15186
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15254
15187
  children: [
15255
- /* @__PURE__ */ jsx59("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ jsx59(FilterIcon, {}) }),
15256
- /* @__PURE__ */ jsx59("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15257
- return /* @__PURE__ */ jsxs36(Fragment8, { children: [
15258
- /* @__PURE__ */ jsx59("span", { children: value }),
15259
- idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15188
+ /* @__PURE__ */ jsx60("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ jsx60(FilterIcon, {}) }),
15189
+ /* @__PURE__ */ jsx60("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15190
+ return /* @__PURE__ */ jsxs37(Fragment8, { children: [
15191
+ /* @__PURE__ */ jsx60("span", { children: value }),
15192
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15260
15193
  " ",
15261
15194
  instance.t("or"),
15262
15195
  " "
15263
15196
  ] })
15264
15197
  ] }, idx);
15265
15198
  }) }),
15266
- /* @__PURE__ */ jsx59(
15199
+ /* @__PURE__ */ jsx60(
15267
15200
  "button",
15268
15201
  {
15269
15202
  className: "px-2 text-sm font-bold",
@@ -15280,7 +15213,7 @@ var TagSearch = ({
15280
15213
  );
15281
15214
  }
15282
15215
  },
15283
- children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15216
+ children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15284
15217
  }
15285
15218
  )
15286
15219
  ]
@@ -15288,26 +15221,26 @@ var TagSearch = ({
15288
15221
  "selected-tag-" + index4
15289
15222
  );
15290
15223
  } else if (tag?.type === "group_by") {
15291
- return /* @__PURE__ */ jsx59(
15224
+ return /* @__PURE__ */ jsx60(
15292
15225
  "div",
15293
15226
  {
15294
15227
  className: "flex min-h-full overflow-hidden",
15295
- children: /* @__PURE__ */ jsx59("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15296
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
15228
+ children: /* @__PURE__ */ jsx60("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15229
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs37(
15297
15230
  "div",
15298
15231
  {
15299
15232
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15300
15233
  children: [
15301
- /* @__PURE__ */ jsx59("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx59(GroupByIcon, {}) }),
15302
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment9, { children: [
15303
- /* @__PURE__ */ jsx59("span", { children: string }),
15304
- idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15234
+ /* @__PURE__ */ jsx60("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx60(GroupByIcon, {}) }),
15235
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
15236
+ /* @__PURE__ */ jsx60("span", { children: string }),
15237
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15305
15238
  " ",
15306
15239
  "> ",
15307
15240
  " "
15308
15241
  ] })
15309
15242
  ] })),
15310
- /* @__PURE__ */ jsx59(
15243
+ /* @__PURE__ */ jsx60(
15311
15244
  "button",
15312
15245
  {
15313
15246
  className: "pr-2 text-sm font-bold",
@@ -15322,7 +15255,7 @@ var TagSearch = ({
15322
15255
  );
15323
15256
  }
15324
15257
  },
15325
- children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15258
+ children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15326
15259
  }
15327
15260
  )
15328
15261
  ]
@@ -15339,7 +15272,7 @@ var TagSearch = ({
15339
15272
  };
15340
15273
 
15341
15274
  // src/widgets/advanced/search/search-list/index.tsx
15342
- import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15275
+ import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15343
15276
  var SearchList = ({
15344
15277
  handleAddTagSearch,
15345
15278
  handleMouseEnter,
@@ -15349,7 +15282,7 @@ var SearchList = ({
15349
15282
  hoveredIndexSearchList
15350
15283
  }) => {
15351
15284
  const { t: t3 } = useI18n();
15352
- return /* @__PURE__ */ jsx60(
15285
+ return /* @__PURE__ */ jsx61(
15353
15286
  "div",
15354
15287
  {
15355
15288
  style: {
@@ -15361,7 +15294,7 @@ var SearchList = ({
15361
15294
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15362
15295
  return;
15363
15296
  }
15364
- return /* @__PURE__ */ jsxs37(
15297
+ return /* @__PURE__ */ jsxs38(
15365
15298
  "button",
15366
15299
  {
15367
15300
  onClick: () => {
@@ -15383,12 +15316,12 @@ var SearchList = ({
15383
15316
  children: [
15384
15317
  t3("search"),
15385
15318
  " ",
15386
- /* @__PURE__ */ jsx60("span", { className: "font-bold", children: searchItem?.title }),
15319
+ /* @__PURE__ */ jsx61("span", { className: "font-bold", children: searchItem?.title }),
15387
15320
  " ",
15388
15321
  t3("for"),
15389
15322
  ":",
15390
15323
  " ",
15391
- /* @__PURE__ */ jsx60(
15324
+ /* @__PURE__ */ jsx61(
15392
15325
  "span",
15393
15326
  {
15394
15327
  style: {
@@ -15408,7 +15341,7 @@ var SearchList = ({
15408
15341
  };
15409
15342
 
15410
15343
  // src/widgets/advanced/search/search-item/index.tsx
15411
- import { Fragment as Fragment10, jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15344
+ import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
15412
15345
  var Search = ({
15413
15346
  removeSearchItems,
15414
15347
  selectedTags,
@@ -15525,15 +15458,15 @@ var Search = ({
15525
15458
  setDidInit(true);
15526
15459
  setIsReadyFormatDomain(true);
15527
15460
  }, [aid, filterBy, fieldsList]);
15528
- return /* @__PURE__ */ jsxs38(
15461
+ return /* @__PURE__ */ jsxs39(
15529
15462
  "div",
15530
15463
  {
15531
15464
  ref: popupFilterRef,
15532
15465
  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)]`,
15533
15466
  children: [
15534
- /* @__PURE__ */ jsx61("div", { className: "size-5", children: /* @__PURE__ */ jsx61(SearchIcon, {}) }),
15535
- /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15536
- /* @__PURE__ */ jsx61(
15467
+ /* @__PURE__ */ jsx62("div", { className: "size-5", children: /* @__PURE__ */ jsx62(SearchIcon, {}) }),
15468
+ /* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15469
+ /* @__PURE__ */ jsx62(
15537
15470
  TagSearch,
15538
15471
  {
15539
15472
  removeSearchItems,
@@ -15543,7 +15476,7 @@ var Search = ({
15543
15476
  setGroupBy
15544
15477
  }
15545
15478
  ),
15546
- /* @__PURE__ */ jsx61(
15479
+ /* @__PURE__ */ jsx62(
15547
15480
  "input",
15548
15481
  {
15549
15482
  value: searchString,
@@ -15556,7 +15489,7 @@ var Search = ({
15556
15489
  onKeyUp: (e3) => e3.preventDefault()
15557
15490
  }
15558
15491
  ),
15559
- /* @__PURE__ */ jsx61(
15492
+ /* @__PURE__ */ jsx62(
15560
15493
  SearchList,
15561
15494
  {
15562
15495
  handleAddTagSearch,
@@ -15565,8 +15498,8 @@ var Search = ({
15565
15498
  }
15566
15499
  )
15567
15500
  ] }),
15568
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs38(Fragment10, { children: [
15569
- /* @__PURE__ */ jsxs38(
15501
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment10, { children: [
15502
+ /* @__PURE__ */ jsxs39(
15570
15503
  "div",
15571
15504
  {
15572
15505
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -15575,8 +15508,8 @@ var Search = ({
15575
15508
  setShowPopupFilter((prev2) => !prev2);
15576
15509
  },
15577
15510
  children: [
15578
- /* @__PURE__ */ jsx61("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15579
- /* @__PURE__ */ jsx61(
15511
+ /* @__PURE__ */ jsx62("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15512
+ /* @__PURE__ */ jsx62(
15580
15513
  ChevronBottomIcon,
15581
15514
  {
15582
15515
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -15585,7 +15518,7 @@ var Search = ({
15585
15518
  ]
15586
15519
  }
15587
15520
  ),
15588
- showPopupFilter && /* @__PURE__ */ jsx61(
15521
+ showPopupFilter && /* @__PURE__ */ jsx62(
15589
15522
  PopupFilter,
15590
15523
  {
15591
15524
  handleAddTagSearch,
@@ -15604,30 +15537,30 @@ var Search = ({
15604
15537
  };
15605
15538
 
15606
15539
  // src/widgets/basic/active-badge-field/active-badge.tsx
15607
- import { Fragment as Fragment11, jsx as jsx62 } from "react/jsx-runtime";
15540
+ import { Fragment as Fragment11, jsx as jsx63 } from "react/jsx-runtime";
15608
15541
  var ActiveBadgeField = (props) => {
15609
15542
  const { t: t3 } = useI18n();
15610
15543
  const {
15611
15544
  type,
15612
15545
  className
15613
15546
  } = props;
15614
- if (type === void 0) return /* @__PURE__ */ jsx62(Fragment11, {});
15547
+ if (type === void 0) return /* @__PURE__ */ jsx63(Fragment11, {});
15615
15548
  const typeStyle = type ? "text-green-500" : "text-red-500";
15616
15549
  const text = type ? t3("active") : t3("in_active");
15617
- return /* @__PURE__ */ jsx62("div", { className: `${typeStyle} ${className}`, children: text });
15550
+ return /* @__PURE__ */ jsx63("div", { className: `${typeStyle} ${className}`, children: text });
15618
15551
  };
15619
15552
 
15620
15553
  // src/widgets/common/modal-layer.tsx
15621
15554
  import { Fragment as Fragment12 } from "react";
15622
15555
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
15623
- import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
15556
+ import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15624
15557
  var ModalLayer = ({
15625
15558
  isOpen,
15626
15559
  onClose,
15627
15560
  title,
15628
15561
  children
15629
15562
  }) => {
15630
- return /* @__PURE__ */ jsx63(
15563
+ return /* @__PURE__ */ jsx64(
15631
15564
  Transition,
15632
15565
  {
15633
15566
  show: isOpen,
@@ -15638,22 +15571,22 @@ var ModalLayer = ({
15638
15571
  leaveFrom: "transform scale-100 opacity-100",
15639
15572
  leaveTo: "transform scale-95 opacity-0",
15640
15573
  as: Fragment12,
15641
- children: /* @__PURE__ */ jsx63(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx63(DialogPanel, { children: /* @__PURE__ */ jsxs39("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15642
- /* @__PURE__ */ jsx63("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15643
- /* @__PURE__ */ jsx63("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs39("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
15644
- /* @__PURE__ */ jsxs39(
15574
+ children: /* @__PURE__ */ jsx64(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx64(DialogPanel, { children: /* @__PURE__ */ jsxs40("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15575
+ /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15576
+ /* @__PURE__ */ jsx64("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs40("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
15577
+ /* @__PURE__ */ jsxs40(
15645
15578
  "div",
15646
15579
  {
15647
15580
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
15648
15581
  children: [
15649
- title && /* @__PURE__ */ jsx63("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15650
- /* @__PURE__ */ jsx63(
15582
+ title && /* @__PURE__ */ jsx64("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15583
+ /* @__PURE__ */ jsx64(
15651
15584
  "button",
15652
15585
  {
15653
15586
  onClick: onClose,
15654
15587
  "aria-label": "Close",
15655
15588
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
15656
- children: /* @__PURE__ */ jsx63(CloseIcon, {})
15589
+ children: /* @__PURE__ */ jsx64(CloseIcon, {})
15657
15590
  }
15658
15591
  )
15659
15592
  ]
@@ -15667,7 +15600,7 @@ var ModalLayer = ({
15667
15600
  };
15668
15601
 
15669
15602
  // src/widgets/common/modal-confirm.tsx
15670
- import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15603
+ import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15671
15604
  var ModalConfirm = ({
15672
15605
  name: name2,
15673
15606
  isShowModal,
@@ -15681,7 +15614,7 @@ var ModalConfirm = ({
15681
15614
  const renderButtonAction = (name3) => {
15682
15615
  switch (name3) {
15683
15616
  case "duplicate":
15684
- return /* @__PURE__ */ jsxs40(
15617
+ return /* @__PURE__ */ jsxs41(
15685
15618
  "button",
15686
15619
  {
15687
15620
  type: "button",
@@ -15689,13 +15622,13 @@ var ModalConfirm = ({
15689
15622
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15690
15623
  disabled: isLoading,
15691
15624
  children: [
15692
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15693
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15625
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15626
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
15694
15627
  ]
15695
15628
  }
15696
15629
  );
15697
15630
  case "archive":
15698
- return /* @__PURE__ */ jsxs40(
15631
+ return /* @__PURE__ */ jsxs41(
15699
15632
  "button",
15700
15633
  {
15701
15634
  type: "button",
@@ -15703,13 +15636,13 @@ var ModalConfirm = ({
15703
15636
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15704
15637
  disabled: isLoading,
15705
15638
  children: [
15706
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15707
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15639
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15640
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "archiving" : "save_archive") })
15708
15641
  ]
15709
15642
  }
15710
15643
  );
15711
15644
  case "unarchive":
15712
- return /* @__PURE__ */ jsxs40(
15645
+ return /* @__PURE__ */ jsxs41(
15713
15646
  "button",
15714
15647
  {
15715
15648
  type: "button",
@@ -15717,13 +15650,13 @@ var ModalConfirm = ({
15717
15650
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
15718
15651
  disabled: isLoading,
15719
15652
  children: [
15720
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15721
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15653
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15654
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
15722
15655
  ]
15723
15656
  }
15724
15657
  );
15725
15658
  case "delete":
15726
- return /* @__PURE__ */ jsxs40(
15659
+ return /* @__PURE__ */ jsxs41(
15727
15660
  "button",
15728
15661
  {
15729
15662
  type: "button",
@@ -15731,8 +15664,8 @@ var ModalConfirm = ({
15731
15664
  className: "button-primary flex-1 flex items-center justify-center gap-2",
15732
15665
  disabled: isLoading,
15733
15666
  children: [
15734
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
15735
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15667
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
15668
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "deleting" : "delete_button") })
15736
15669
  ]
15737
15670
  }
15738
15671
  );
@@ -15740,13 +15673,13 @@ var ModalConfirm = ({
15740
15673
  break;
15741
15674
  }
15742
15675
  };
15743
- return /* @__PURE__ */ jsx64(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15744
- /* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
15745
- /* @__PURE__ */ jsx64("div", { className: "text-[18px] font-bold", children: title }),
15746
- /* @__PURE__ */ jsx64("p", { className: "text-[16px]", children: content })
15676
+ return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15677
+ /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
15678
+ /* @__PURE__ */ jsx65("div", { className: "text-[18px] font-bold", children: title }),
15679
+ /* @__PURE__ */ jsx65("p", { className: "text-[16px]", children: content })
15747
15680
  ] }),
15748
- /* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15749
- /* @__PURE__ */ jsx64(
15681
+ /* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15682
+ /* @__PURE__ */ jsx65(
15750
15683
  "button",
15751
15684
  {
15752
15685
  type: "button",
@@ -15762,8 +15695,8 @@ var ModalConfirm = ({
15762
15695
 
15763
15696
  // src/widgets/common/modal-detail.tsx
15764
15697
  import { useState as useState7 } from "react";
15765
- import { createPortal as createPortal3 } from "react-dom";
15766
- import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15698
+ import { createPortal as createPortal2 } from "react-dom";
15699
+ import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15767
15700
  var ModalDetail = ({
15768
15701
  idToolTip,
15769
15702
  title,
@@ -15785,19 +15718,19 @@ var ModalDetail = ({
15785
15718
  sessionStorage.setItem("actionData", JSON.stringify(actionData));
15786
15719
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
15787
15720
  };
15788
- return createPortal3(
15789
- /* @__PURE__ */ jsx65(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15790
- /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15791
- /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs41("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
15792
- /* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15793
- /* @__PURE__ */ jsxs41(
15721
+ return createPortal2(
15722
+ /* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15723
+ /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15724
+ /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs42("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
15725
+ /* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15726
+ /* @__PURE__ */ jsxs42(
15794
15727
  "div",
15795
15728
  {
15796
15729
  id: "modal-detail",
15797
15730
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
15798
15731
  children: [
15799
15732
  t3("detail_button"),
15800
- /* @__PURE__ */ jsx65(
15733
+ /* @__PURE__ */ jsx66(
15801
15734
  "button",
15802
15735
  {
15803
15736
  onClick: handleNavigateDetail,
@@ -15808,9 +15741,9 @@ var ModalDetail = ({
15808
15741
  ]
15809
15742
  }
15810
15743
  ),
15811
- /* @__PURE__ */ jsx65("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx65(CloseIcon, { className: "h-5 w-5" }) })
15744
+ /* @__PURE__ */ jsx66("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx66(CloseIcon, { className: "h-5 w-5" }) })
15812
15745
  ] }),
15813
- /* @__PURE__ */ jsx65("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15746
+ /* @__PURE__ */ jsx66("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
15814
15747
  id: idForm,
15815
15748
  aid,
15816
15749
  model,
@@ -15825,7 +15758,7 @@ var ModalDetail = ({
15825
15758
 
15826
15759
  // src/widgets/common/loading-normal.tsx
15827
15760
  import { useEffect as useEffect9, useState as useState8 } from "react";
15828
- import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15761
+ import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
15829
15762
  var LayerLoading = () => {
15830
15763
  const { t: t3 } = useI18n();
15831
15764
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -15835,21 +15768,21 @@ var LayerLoading = () => {
15835
15768
  }, 200);
15836
15769
  return () => clearInterval(interval);
15837
15770
  }, []);
15838
- return /* @__PURE__ */ jsx66("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx66("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs42("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15839
- /* @__PURE__ */ jsx66("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx66(
15771
+ return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs43("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15772
+ /* @__PURE__ */ jsx67("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx67(
15840
15773
  "div",
15841
15774
  {
15842
15775
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
15843
15776
  },
15844
15777
  index4
15845
15778
  )) }),
15846
- /* @__PURE__ */ jsx66("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15779
+ /* @__PURE__ */ jsx67("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
15847
15780
  ] }) }) });
15848
15781
  };
15849
15782
 
15850
15783
  // src/widgets/common/loading-small.tsx
15851
15784
  import { useEffect as useEffect10, useState as useState9 } from "react";
15852
- import { jsx as jsx67 } from "react/jsx-runtime";
15785
+ import { jsx as jsx68 } from "react/jsx-runtime";
15853
15786
  var LoadingSmall = () => {
15854
15787
  const [activeIndex, setActiveIndex] = useState9(0);
15855
15788
  useEffect10(() => {
@@ -15858,7 +15791,7 @@ var LoadingSmall = () => {
15858
15791
  }, 200);
15859
15792
  return () => clearInterval(interval);
15860
15793
  }, []);
15861
- return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx67("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx67(
15794
+ return /* @__PURE__ */ jsx68("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx68("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx68("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx68("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx68(
15862
15795
  "div",
15863
15796
  {
15864
15797
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -15867,255 +15800,6 @@ var LoadingSmall = () => {
15867
15800
  )) }) }) }) });
15868
15801
  };
15869
15802
 
15870
- // src/widgets/common/video-player.tsx
15871
- import { useRef as useRef6, useState as useState10 } from "react";
15872
- import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
15873
- var VideoPlayer = ({ src }) => {
15874
- const [isPlaying, setIsPlaying] = useState10(false);
15875
- const videoRef = useRef6(null);
15876
- const handlePlayPause = () => {
15877
- if (videoRef.current) {
15878
- if (isPlaying) {
15879
- videoRef.current.pause();
15880
- } else {
15881
- videoRef.current.play();
15882
- }
15883
- setIsPlaying(!isPlaying);
15884
- }
15885
- };
15886
- const handleFullScreen = () => {
15887
- if (videoRef.current) {
15888
- if (videoRef.current.requestFullscreen) {
15889
- videoRef.current.requestFullscreen();
15890
- } else if (videoRef.current.webkitRequestFullscreen) {
15891
- ;
15892
- videoRef.current.webkitRequestFullscreen();
15893
- } else if (videoRef.current.msRequestFullscreen) {
15894
- ;
15895
- videoRef.current.msRequestFullscreen();
15896
- }
15897
- }
15898
- };
15899
- return /* @__PURE__ */ jsxs43("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
15900
- /* @__PURE__ */ jsx68(
15901
- "video",
15902
- {
15903
- ref: videoRef,
15904
- src,
15905
- className: "w-full rounded-lg",
15906
- onClick: handlePlayPause,
15907
- width: 300,
15908
- height: 300,
15909
- children: "Your browser does not support the video tag."
15910
- }
15911
- ),
15912
- /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15913
- /* @__PURE__ */ jsx68("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx68("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx68(PlayIcon, {}) }) })
15914
- ] });
15915
- };
15916
-
15917
- // src/widgets/common/render-files.tsx
15918
- import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
15919
- var ImageItem = ({
15920
- filename,
15921
- checksum,
15922
- index: index4,
15923
- src = null,
15924
- useGetImage,
15925
- size: size4,
15926
- id,
15927
- envFile,
15928
- accessToken
15929
- }) => {
15930
- const { data: image } = useGetImage({
15931
- data: { filename, checksum },
15932
- queryKey: [`get-image-${""}`],
15933
- src
15934
- });
15935
- return /* @__PURE__ */ jsx69("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ jsx69(
15936
- "img",
15937
- {
15938
- src: image || src,
15939
- alt: filename,
15940
- className: "w-32 h-32 object-cover rounded-md cursor-pointer"
15941
- }
15942
- ) : /* @__PURE__ */ jsxs44(
15943
- "div",
15944
- {
15945
- onClick: (e3) => {
15946
- e3?.stopPropagation();
15947
- downloadFile(
15948
- `${envFile}api/v2/web/content/${id}?download=true`,
15949
- filename,
15950
- accessToken
15951
- );
15952
- },
15953
- style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
15954
- className: "flex items-center p-2 gap-2 overflow-hidden",
15955
- children: [
15956
- /* @__PURE__ */ jsx69(ImageIcon, {}),
15957
- /* @__PURE__ */ jsxs44("div", { children: [
15958
- /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
15959
- size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
15960
- ] })
15961
- ]
15962
- }
15963
- ) }, index4);
15964
- };
15965
- var FileItem = (props) => {
15966
- const {
15967
- filename,
15968
- index: index4,
15969
- handleRemoveFile,
15970
- handleFileDownload,
15971
- src,
15972
- mimetype,
15973
- size: size4,
15974
- useGetImage,
15975
- id,
15976
- envFile,
15977
- accessToken
15978
- } = props;
15979
- const fileTypeIcon = {
15980
- "application/pdf": /* @__PURE__ */ jsx69(PdfIcon, {}),
15981
- "application/zip": /* @__PURE__ */ jsx69(ZipIcon, {}),
15982
- "application/x-zip-compressed": /* @__PURE__ */ jsx69(ZipIcon, {}),
15983
- "application/vnd.ms-excel": /* @__PURE__ */ jsx69(ExcelIcon, {}),
15984
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {})
15985
- };
15986
- const renderFile = () => {
15987
- if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
15988
- return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
15989
- } else if (mimetype?.includes("video")) {
15990
- return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
15991
- } else {
15992
- return /* @__PURE__ */ jsxs44(
15993
- "div",
15994
- {
15995
- onClick: (e3) => {
15996
- if (accessToken) {
15997
- e3?.stopPropagation();
15998
- downloadFile(
15999
- `${envFile}api/v2/web/content/${id}?download=true`,
16000
- filename,
16001
- accessToken
16002
- );
16003
- }
16004
- },
16005
- style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16006
- className: "flex items-center p-2 gap-2 overflow-hidden",
16007
- children: [
16008
- fileTypeIcon[mimetype],
16009
- /* @__PURE__ */ jsxs44("div", { children: [
16010
- /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16011
- size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16012
- ] })
16013
- ]
16014
- }
16015
- );
16016
- }
16017
- };
16018
- return /* @__PURE__ */ jsxs44(
16019
- "div",
16020
- {
16021
- className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
16022
- children: [
16023
- renderFile(),
16024
- handleRemoveFile && /* @__PURE__ */ jsx69(
16025
- "div",
16026
- {
16027
- style: {
16028
- position: "absolute",
16029
- top: 0,
16030
- right: 0,
16031
- backgroundColor: "rgba(0,0,0,0.2)"
16032
- },
16033
- onClick: () => handleRemoveFile(index4),
16034
- className: "cursor-pointer p-2 hidden group-hover:block",
16035
- children: /* @__PURE__ */ jsx69(DeleteIcon, {})
16036
- }
16037
- ),
16038
- !handleRemoveFile && /* @__PURE__ */ jsx69(
16039
- "span",
16040
- {
16041
- style: {
16042
- position: "absolute",
16043
- top: 0,
16044
- right: 0,
16045
- backgroundColor: "rgba(0,0,0,0.2)",
16046
- zIndex: 10
16047
- },
16048
- onClick: (e3) => handleFileDownload(e3, src, filename),
16049
- className: "hidden group-hover:block cursor-pointer p-2 text-white ",
16050
- children: /* @__PURE__ */ jsx69(DownloadIcon, {})
16051
- }
16052
- )
16053
- ]
16054
- },
16055
- index4
16056
- );
16057
- };
16058
- var downloadFile = async (url, filename, accessToken) => {
16059
- try {
16060
- const response = accessToken ? await fetch(url, {
16061
- method: "GET",
16062
- headers: {
16063
- Authorization: `Bearer ${accessToken}`
16064
- }
16065
- }) : await fetch(url);
16066
- if (response.ok) {
16067
- const blob = await response.blob();
16068
- const urlBlob = window.URL.createObjectURL(blob);
16069
- const link = document.createElement("a");
16070
- link.href = urlBlob;
16071
- link.download = filename || "downloaded-file";
16072
- document.body.appendChild(link);
16073
- link.click();
16074
- document.body.removeChild(link);
16075
- window.URL.revokeObjectURL(urlBlob);
16076
- } else {
16077
- console.error("File download failed:", response.statusText);
16078
- }
16079
- } catch (error2) {
16080
- console.error("File download failed:", error2);
16081
- }
16082
- };
16083
- var RenderFiles = ({
16084
- selectedFiles,
16085
- setSelectedFiles,
16086
- useGetImage,
16087
- envFile,
16088
- accessToken
16089
- }) => {
16090
- const handleRemoveFile = (index4) => {
16091
- if (setSelectedFiles) {
16092
- const files = selectedFiles.filter((_2, i3) => i3 !== index4);
16093
- setSelectedFiles(files);
16094
- }
16095
- };
16096
- const handleFileDownload = (e3, url, name2) => {
16097
- e3.stopPropagation();
16098
- downloadFile(url, name2);
16099
- };
16100
- return /* @__PURE__ */ jsx69("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16101
- return /* @__PURE__ */ jsx69("div", { className: "relative group/file", children: /* @__PURE__ */ jsx69(
16102
- FileItem,
16103
- {
16104
- ...file,
16105
- src: file?.datas,
16106
- filename: file?.display_name ?? file?.name ?? file?.filename,
16107
- id: file?.id,
16108
- index: index4,
16109
- handleRemoveFile: setSelectedFiles && handleRemoveFile,
16110
- handleFileDownload,
16111
- useGetImage,
16112
- envFile,
16113
- accessToken
16114
- }
16115
- ) }, file?.id ?? index4);
16116
- }) });
16117
- };
16118
-
16119
15803
  // node_modules/react-toastify/dist/index.mjs
16120
15804
  import { isValidElement as $t } from "react";
16121
15805
  import ut, { useEffect as Rt, useLayoutEffect as Bt, useRef as zt } from "react";
@@ -16302,7 +15986,7 @@ var po = $2(K("zoom"));
16302
15986
  var uo = $2(K("flip"));
16303
15987
 
16304
15988
  // src/widgets/common/select-files.tsx
16305
- import { Fragment as Fragment14, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
15989
+ import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16306
15990
  var ButtonSelectFiles = ({
16307
15991
  fileInputRef,
16308
15992
  selectedFiles,
@@ -16315,7 +15999,8 @@ var ButtonSelectFiles = ({
16315
15999
  useUploadFile,
16316
16000
  env,
16317
16001
  service,
16318
- user
16002
+ user,
16003
+ isText
16319
16004
  }) => {
16320
16005
  const { t: t3 } = useI18n();
16321
16006
  const ALLOWED_TYPES = [
@@ -16326,8 +16011,7 @@ var ButtonSelectFiles = ({
16326
16011
  "application/zip",
16327
16012
  "application/x-zip-compressed",
16328
16013
  "application/vnd.ms-excel",
16329
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
16330
- "application/json"
16014
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
16331
16015
  ];
16332
16016
  const MAX_FILE_SIZE = 10 * 1024 * 1024;
16333
16017
  const MAX_TOTAL_SIZE = 50 * 1024 * 1024;
@@ -16406,8 +16090,8 @@ var ButtonSelectFiles = ({
16406
16090
  await handleUpload(formData, serivce, xNode);
16407
16091
  }
16408
16092
  };
16409
- return /* @__PURE__ */ jsxs45(Fragment14, { children: [
16410
- isPending ? /* @__PURE__ */ jsx70(Fragment14, { children: /* @__PURE__ */ jsx70("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs45(
16093
+ return /* @__PURE__ */ jsxs44(Fragment14, { children: [
16094
+ isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
16411
16095
  "button",
16412
16096
  {
16413
16097
  type: "button",
@@ -16415,12 +16099,12 @@ var ButtonSelectFiles = ({
16415
16099
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16416
16100
  onClick: () => fileInputRef.current.click(),
16417
16101
  children: [
16418
- /* @__PURE__ */ jsx70(AttachIcon, {}),
16419
- /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16102
+ /* @__PURE__ */ jsx69(AttachIcon, {}),
16103
+ isText && /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16420
16104
  ]
16421
16105
  }
16422
16106
  ),
16423
- /* @__PURE__ */ jsx70(
16107
+ /* @__PURE__ */ jsx69(
16424
16108
  "input",
16425
16109
  {
16426
16110
  type: "file",
@@ -16428,12 +16112,59 @@ var ButtonSelectFiles = ({
16428
16112
  style: { display: "none" },
16429
16113
  onChange: handleOnChange,
16430
16114
  multiple: true,
16431
- accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
16115
+ accept: ".jpeg,.jpg,.png,.pdf,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
16432
16116
  }
16433
16117
  )
16434
16118
  ] });
16435
16119
  };
16436
16120
 
16121
+ // src/widgets/common/video-player.tsx
16122
+ import { useRef as useRef6, useState as useState10 } from "react";
16123
+ import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16124
+ var VideoPlayer = ({ src }) => {
16125
+ const [isPlaying, setIsPlaying] = useState10(false);
16126
+ const videoRef = useRef6(null);
16127
+ const handlePlayPause = () => {
16128
+ if (videoRef.current) {
16129
+ if (isPlaying) {
16130
+ videoRef.current.pause();
16131
+ } else {
16132
+ videoRef.current.play();
16133
+ }
16134
+ setIsPlaying(!isPlaying);
16135
+ }
16136
+ };
16137
+ const handleFullScreen = () => {
16138
+ if (videoRef.current) {
16139
+ if (videoRef.current.requestFullscreen) {
16140
+ videoRef.current.requestFullscreen();
16141
+ } else if (videoRef.current.webkitRequestFullscreen) {
16142
+ ;
16143
+ videoRef.current.webkitRequestFullscreen();
16144
+ } else if (videoRef.current.msRequestFullscreen) {
16145
+ ;
16146
+ videoRef.current.msRequestFullscreen();
16147
+ }
16148
+ }
16149
+ };
16150
+ return /* @__PURE__ */ jsxs45("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
16151
+ /* @__PURE__ */ jsx70(
16152
+ "video",
16153
+ {
16154
+ ref: videoRef,
16155
+ src,
16156
+ className: "w-full rounded-lg",
16157
+ onClick: handlePlayPause,
16158
+ width: 300,
16159
+ height: 300,
16160
+ children: "Your browser does not support the video tag."
16161
+ }
16162
+ ),
16163
+ /* @__PURE__ */ jsx70("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16164
+ /* @__PURE__ */ jsx70("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx70("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx70(PlayIcon, {}) }) })
16165
+ ] });
16166
+ };
16167
+
16437
16168
  // src/widgets/basic/avatar-field/avatar.tsx
16438
16169
  import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16439
16170
  var AvatarField = (props) => {
@@ -27538,7 +27269,7 @@ function _taggedTemplateLiteral(e3, t3) {
27538
27269
 
27539
27270
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27540
27271
  import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27541
- import { createPortal as createPortal5 } from "react-dom";
27272
+ import { createPortal as createPortal4 } from "react-dom";
27542
27273
 
27543
27274
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
27544
27275
  import { useLayoutEffect as useLayoutEffect4 } from "react";
@@ -28041,7 +27772,7 @@ var MenuPortal = function MenuPortal2(props) {
28041
27772
  }), innerProps), children);
28042
27773
  return jsx81(PortalPlacementContext.Provider, {
28043
27774
  value: portalPlacementContext
28044
- }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
27775
+ }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28045
27776
  };
28046
27777
  var containerCSS = function containerCSS2(_ref3) {
28047
27778
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -32881,7 +32612,7 @@ var StatusDropdownField = (props) => {
32881
32612
  };
32882
32613
 
32883
32614
  // src/widgets/basic/many2many-field/many2many.tsx
32884
- import { createPortal as createPortal6 } from "react-dom";
32615
+ import { createPortal as createPortal5 } from "react-dom";
32885
32616
  import { useEffect as useEffect26 } from "react";
32886
32617
  import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32887
32618
  var Many2ManyField = (props) => {
@@ -32956,7 +32687,7 @@ var Many2ManyField = (props) => {
32956
32687
  typeof setGroupByList === "function" && setGroupByList(null);
32957
32688
  };
32958
32689
  }, [selectedTags]);
32959
- return createPortal6(
32690
+ return createPortal5(
32960
32691
  /* @__PURE__ */ jsxs71(
32961
32692
  "div",
32962
32693
  {
@@ -33691,7 +33422,6 @@ export {
33691
33422
  RadioGroupField,
33692
33423
  RatingStarField,
33693
33424
  RemainingDaysField,
33694
- RenderFiles,
33695
33425
  Row,
33696
33426
  Search,
33697
33427
  SelectDropdownField,