@fctc/sme-widget-ui 1.9.4 → 1.9.5

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/index.mjs CHANGED
@@ -6938,46 +6938,77 @@ var ImageIcon = () => {
6938
6938
  "svg",
6939
6939
  {
6940
6940
  xmlns: "http://www.w3.org/2000/svg",
6941
- xmlnsXlink: "http://www.w3.org/1999/xlink",
6942
- width: "38",
6943
- height: "38",
6944
- viewBox: "0 0 38 38",
6941
+ width: "22",
6942
+ height: "23",
6943
+ viewBox: "0 0 22 23",
6944
+ fill: "none",
6945
6945
  children: [
6946
- /* @__PURE__ */ jsxs20("defs", { children: [
6947
- /* @__PURE__ */ jsx38("rect", { id: "image-a", width: "32", height: "35", x: "3", y: "1", rx: "3" }),
6948
- /* @__PURE__ */ jsx38(
6949
- "path",
6950
- {
6951
- id: "image-b",
6952
- 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"
6953
- }
6954
- )
6955
- ] }),
6956
- /* @__PURE__ */ jsxs20("g", { fill: "none", fillRule: "evenodd", children: [
6957
- /* @__PURE__ */ jsx38("polygon", { fill: "#1C8B96", points: "34 2 34 34 4 34" }),
6958
- /* @__PURE__ */ jsx38("use", { fill: "#FFF", fillOpacity: ".93", xlinkHref: "#image-a" }),
6959
- /* @__PURE__ */ jsx38(
6960
- "rect",
6961
- {
6962
- width: "30",
6963
- height: "33",
6964
- x: "4",
6965
- y: "2",
6966
- stroke: "#1C8B96",
6967
- strokeWidth: "2",
6968
- rx: "3"
6969
- }
6970
- ),
6971
- /* @__PURE__ */ jsx38("use", { fill: "#1C8B96", fillOpacity: ".516", xlinkHref: "#image-b" }),
6972
- /* @__PURE__ */ jsx38(
6973
- "path",
6974
- {
6975
- stroke: "#1C8B96",
6976
- 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"
6977
- }
6978
- ),
6979
- /* @__PURE__ */ jsx38("circle", { cx: "25.5", cy: "11.5", r: "4.5", fill: "#1C8B96" })
6980
- ] })
6946
+ /* @__PURE__ */ jsx38(
6947
+ "path",
6948
+ {
6949
+ d: "M22 5.36046V17.6395C21.9989 18.9283 21.4865 20.1639 20.5752 21.0752C19.6639 21.9865 18.4283 22.4989 17.1395 22.5H4.86047C4.32055 22.5016 3.78427 22.4116 3.27442 22.2339C2.31857 21.9038 1.48947 21.2838 0.902556 20.4603C0.315646 19.6368 0.000149319 18.6508 0 17.6395V5.36046C0.00108389 4.07172 0.513515 2.83607 1.42479 1.92479C2.33607 1.01351 3.57172 0.501084 4.86047 0.5H17.1395C18.4283 0.501084 19.6639 1.01351 20.5752 1.92479C21.4865 2.83607 21.9989 4.07172 22 5.36046Z",
6950
+ fill: "#E6F7FF"
6951
+ }
6952
+ ),
6953
+ /* @__PURE__ */ jsx38(
6954
+ "path",
6955
+ {
6956
+ d: "M13.75 18.4995V22.2495H5C4.47235 22.251 3.94826 22.1631 3.45 21.9895C2.51588 21.6669 1.70561 21.061 1.13204 20.2562C0.558472 19.4514 0.250146 18.4878 0.25 17.4995V14.7695L3.41 12.6595C3.88229 12.3434 4.44129 12.1822 5.00937 12.1984C5.57745 12.2145 6.1264 12.4071 6.58 12.7495L10.07 15.3695L13.45 17.8995C13.5438 17.9687 13.6199 18.0592 13.672 18.1635C13.7241 18.2678 13.7509 18.3829 13.75 18.4995Z",
6957
+ fill: "#70D5B8"
6958
+ }
6959
+ ),
6960
+ /* @__PURE__ */ jsx38(
6961
+ "path",
6962
+ {
6963
+ d: "M7.625 8.625C9.00571 8.625 10.125 7.50571 10.125 6.125C10.125 4.74429 9.00571 3.625 7.625 3.625C6.24429 3.625 5.125 4.74429 5.125 6.125C5.125 7.50571 6.24429 8.625 7.625 8.625Z",
6964
+ fill: "#FFD44D"
6965
+ }
6966
+ ),
6967
+ /* @__PURE__ */ jsx38(
6968
+ "path",
6969
+ {
6970
+ d: "M21.7492 12.5393V17.4993C21.7482 18.7588 21.2474 19.9663 20.3568 20.8569C19.4662 21.7475 18.2587 22.2483 16.9992 22.2493H4.99922C4.47157 22.2509 3.94748 22.163 3.44922 21.9893L14.4492 10.9893C14.8555 10.5799 15.3808 10.3092 15.95 10.2158C16.5192 10.1224 17.1034 10.2112 17.6192 10.4693L21.7492 12.5393Z",
6971
+ fill: "#13BF8A"
6972
+ }
6973
+ )
6974
+ ]
6975
+ }
6976
+ );
6977
+ };
6978
+
6979
+ // src/icons/video-icon.tsx
6980
+ import { jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
6981
+ var VideoIcon = () => {
6982
+ return /* @__PURE__ */ jsxs21(
6983
+ "svg",
6984
+ {
6985
+ xmlns: "http://www.w3.org/2000/svg",
6986
+ width: "22",
6987
+ height: "21",
6988
+ viewBox: "0 0 22 21",
6989
+ fill: "none",
6990
+ children: [
6991
+ /* @__PURE__ */ jsx39(
6992
+ "path",
6993
+ {
6994
+ d: "M22.0001 2.10859L22.0001 18.8914C22.0001 19.7798 21.2799 20.5 20.3915 20.5H1.61054C0.722142 20.5 0.00195312 19.7798 0.00195312 18.8914V2.10859C0.00195312 1.22019 0.722143 0.5 1.61054 0.5H20.3915C21.2799 0.5 22.0001 1.22019 22.0001 2.10859Z",
6995
+ fill: "#435E88"
6996
+ }
6997
+ ),
6998
+ /* @__PURE__ */ jsx39(
6999
+ "path",
7000
+ {
7001
+ d: "M21.9974 2.10515L21.9981 18.8914C21.9981 19.7782 21.2797 20.5 20.3895 20.5H1.60863C0.721846 20.5 0 19.7782 0 18.8914L20.3888 0.5C21.2791 0.5 21.9974 1.21832 21.9974 2.10515Z",
7002
+ fill: "#33527D"
7003
+ }
7004
+ ),
7005
+ /* @__PURE__ */ jsx39(
7006
+ "path",
7007
+ {
7008
+ d: "M3.96875 14.8779C4.15191 14.8782 4.30078 15.0267 4.30078 15.21V17.123C4.30078 17.3063 4.15191 17.4549 3.96875 17.4551H2.05469C1.87133 17.4551 1.72266 17.3064 1.72266 17.123V15.21C1.72266 15.0266 1.87133 14.8779 2.05469 14.8779H3.96875ZM19.9492 14.8779C20.1326 14.8779 20.2812 15.0266 20.2812 15.21V17.123C20.2812 17.3064 20.1326 17.4551 19.9492 17.4551H18.0361C17.8528 17.4551 17.7041 17.3064 17.7041 17.123V15.21C17.7041 15.0266 17.8528 14.8779 18.0361 14.8779H19.9492ZM8.59473 7.55566C8.59499 7.0953 9.10791 6.82103 9.49121 7.07617L14.1484 10.1758C14.4914 10.4041 14.4914 10.9084 14.1484 11.1367L9.49121 14.2363C9.10788 14.4915 8.59493 14.2173 8.59473 13.7568V7.55566ZM3.96875 10.6592C4.15175 10.6594 4.30052 10.8072 4.30078 10.9902V12.9043C4.30078 13.0875 4.15191 13.2361 3.96875 13.2363H2.05469C1.87133 13.2363 1.72266 13.0877 1.72266 12.9043V10.9902C1.72292 10.8071 1.87149 10.6592 2.05469 10.6592H3.96875ZM19.9492 10.6592C20.1324 10.6592 20.281 10.8071 20.2812 10.9902V12.9043C20.2812 13.0877 20.1326 13.2363 19.9492 13.2363H18.0361C17.8528 13.2363 17.7041 13.0877 17.7041 12.9043V10.9902C17.7044 10.8071 17.8529 10.6592 18.0361 10.6592H19.9492ZM3.96875 6.4375C4.15177 6.43773 4.30055 6.58651 4.30078 6.76953V8.68359C4.30078 8.86681 4.15191 9.0154 3.96875 9.01562H2.05469C1.87133 9.01562 1.72266 8.86695 1.72266 8.68359V6.76953C1.72289 6.58637 1.87147 6.4375 2.05469 6.4375H3.96875ZM19.9492 6.4375C20.1324 6.4375 20.281 6.58637 20.2812 6.76953V8.68359C20.2812 8.86695 20.1326 9.01562 19.9492 9.01562H18.0361C17.8528 9.01562 17.7041 8.86695 17.7041 8.68359V6.76953C17.7043 6.58637 17.8529 6.4375 18.0361 6.4375H19.9492ZM3.96875 2.21875C4.15181 2.21898 4.3006 2.36771 4.30078 2.55078V4.46484C4.30078 4.64806 4.15191 4.79665 3.96875 4.79688H2.05469C1.87133 4.79688 1.72266 4.6482 1.72266 4.46484V2.55078C1.72283 2.36757 1.87144 2.21875 2.05469 2.21875H3.96875ZM19.9492 2.21875C20.1325 2.21875 20.2811 2.36757 20.2812 2.55078V4.46484C20.2812 4.6482 20.1326 4.79688 19.9492 4.79688H18.0361C17.8528 4.79688 17.7041 4.6482 17.7041 4.46484V2.55078C17.7043 2.36757 17.8529 2.21875 18.0361 2.21875H19.9492Z",
7009
+ fill: "white"
7010
+ }
7011
+ )
6981
7012
  ]
6982
7013
  }
6983
7014
  );
@@ -10009,8 +10040,8 @@ var en_default = {
10009
10040
  download_file: "Download this file",
10010
10041
  upload_success: "Upload file success",
10011
10042
  upload_failure: "Upload file failure",
10012
- file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and each file should be up to 10MB.",
10013
- file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and total should be up to 50MB.",
10043
+ file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and each file should be up to 10MB.",
10044
+ file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and total should be up to 50MB.",
10014
10045
  must_required: "is required",
10015
10046
  invalid_number: "Invalid number",
10016
10047
  active: "Active",
@@ -10041,7 +10072,7 @@ instance.use(Browser).use(initReactI18next).init({
10041
10072
  var i18n_default = instance;
10042
10073
 
10043
10074
  // src/provider/index.tsx
10044
- import { jsx as jsx39 } from "react/jsx-runtime";
10075
+ import { jsx as jsx40 } from "react/jsx-runtime";
10045
10076
  var I18nContext2 = createContext2(null);
10046
10077
  var I18nProvider = ({
10047
10078
  children,
@@ -10053,7 +10084,7 @@ var I18nProvider = ({
10053
10084
  }
10054
10085
  }, [lang]);
10055
10086
  const { t: t3 } = useTranslation();
10056
- return /* @__PURE__ */ jsx39(
10087
+ return /* @__PURE__ */ jsx40(
10057
10088
  I18nContext2.Provider,
10058
10089
  {
10059
10090
  value: {
@@ -10061,7 +10092,7 @@ var I18nProvider = ({
10061
10092
  t: t3,
10062
10093
  changeLanguage: i18n_default.changeLanguage
10063
10094
  },
10064
- children: /* @__PURE__ */ jsx39(I18nextProvider, { i18n: i18n_default, children })
10095
+ children: /* @__PURE__ */ jsx40(I18nextProvider, { i18n: i18n_default, children })
10065
10096
  }
10066
10097
  );
10067
10098
  };
@@ -10629,11 +10660,11 @@ var usePagination = ({
10629
10660
  };
10630
10661
 
10631
10662
  // src/icons/common.tsx
10632
- import { jsx as jsx40 } from "react/jsx-runtime";
10633
- var IcArrow = () => /* @__PURE__ */ jsx40("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx40("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }) });
10663
+ import { jsx as jsx41 } from "react/jsx-runtime";
10664
+ var IcArrow = () => /* @__PURE__ */ jsx41("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx41("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }) });
10634
10665
 
10635
10666
  // src/widgets/advanced/pagination/pagination-view.tsx
10636
- import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
10667
+ import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
10637
10668
  var PaginationView = (props) => {
10638
10669
  const {
10639
10670
  displayPageNumberDots,
@@ -10666,25 +10697,25 @@ var PaginationView = (props) => {
10666
10697
  let lastPage = paginationRange[paginationRange.length - 1];
10667
10698
  const startPage = currentPage * pageSize + 1;
10668
10699
  const endPage = Math.min((currentPage + 1) * pageSize, totalCount);
10669
- return /* @__PURE__ */ jsxs21("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10670
- !displayPageNumberDots && /* @__PURE__ */ jsxs21("li", { className: "pagination-item px-0", children: [
10700
+ return /* @__PURE__ */ jsxs22("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10701
+ !displayPageNumberDots && /* @__PURE__ */ jsxs22("li", { className: "pagination-item px-0", children: [
10671
10702
  startPage,
10672
10703
  " - ",
10673
10704
  endPage,
10674
10705
  " / ",
10675
10706
  totalCount
10676
10707
  ] }),
10677
- /* @__PURE__ */ jsx41(
10708
+ /* @__PURE__ */ jsx42(
10678
10709
  "li",
10679
10710
  {
10680
10711
  className: `pagination-item ${currentPage === 0 && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10681
10712
  onClick: onPrevious,
10682
- children: /* @__PURE__ */ jsx41("div", { className: "arrow left", children: /* @__PURE__ */ jsx41(IcArrow, {}) })
10713
+ children: /* @__PURE__ */ jsx42("div", { className: "arrow left", children: /* @__PURE__ */ jsx42(IcArrow, {}) })
10683
10714
  }
10684
10715
  ),
10685
10716
  displayPageNumberDots && paginationRange.map((pageNumber) => {
10686
10717
  if (pageNumber === DOTS) {
10687
- return /* @__PURE__ */ jsx41(
10718
+ return /* @__PURE__ */ jsx42(
10688
10719
  "li",
10689
10720
  {
10690
10721
  className: "pagination-item dots",
@@ -10693,7 +10724,7 @@ var PaginationView = (props) => {
10693
10724
  "pagination" + pageNumber
10694
10725
  );
10695
10726
  }
10696
- return /* @__PURE__ */ jsx41(
10727
+ return /* @__PURE__ */ jsx42(
10697
10728
  "li",
10698
10729
  {
10699
10730
  className: `pagination-item ${pageNumber - 1 === currentPage && "selected"}`,
@@ -10703,12 +10734,12 @@ var PaginationView = (props) => {
10703
10734
  "pagination" + pageNumber
10704
10735
  );
10705
10736
  }),
10706
- /* @__PURE__ */ jsx41(
10737
+ /* @__PURE__ */ jsx42(
10707
10738
  "li",
10708
10739
  {
10709
10740
  className: `pagination-item ${currentPage + 1 === lastPage && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10710
10741
  onClick: onNext,
10711
- children: /* @__PURE__ */ jsx41("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx41(IcArrow, {}) })
10742
+ children: /* @__PURE__ */ jsx42("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx42(IcArrow, {}) })
10712
10743
  }
10713
10744
  )
10714
10745
  ] });
@@ -10718,7 +10749,7 @@ var PaginationView = (props) => {
10718
10749
  import { useState as useState3 } from "react";
10719
10750
 
10720
10751
  // src/widgets/advanced/table/table-group.tsx
10721
- import { Fragment as Fragment2, jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
10752
+ import { Fragment as Fragment2, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
10722
10753
  var TableGroup = (props) => {
10723
10754
  const { t: t3 } = useI18n();
10724
10755
  const {
@@ -10768,28 +10799,28 @@ var TableGroup = (props) => {
10768
10799
  setSelectedRowKeys
10769
10800
  });
10770
10801
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
10771
- return /* @__PURE__ */ jsxs22(Fragment2, { children: [
10772
- /* @__PURE__ */ jsxs22(
10802
+ return /* @__PURE__ */ jsxs23(Fragment2, { children: [
10803
+ /* @__PURE__ */ jsxs23(
10773
10804
  "tr",
10774
10805
  {
10775
10806
  draggable: true,
10776
10807
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
10777
10808
  onClick: onExpandChildGroup,
10778
10809
  children: [
10779
- /* @__PURE__ */ jsx42(
10810
+ /* @__PURE__ */ jsx43(
10780
10811
  "td",
10781
10812
  {
10782
10813
  colSpan: colEmptyGroup.fromStart ?? 1,
10783
10814
  style: { display: "table-cell" },
10784
10815
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
10785
- children: /* @__PURE__ */ jsxs22(
10816
+ children: /* @__PURE__ */ jsxs23(
10786
10817
  "div",
10787
10818
  {
10788
10819
  style: { paddingLeft: leftPadding },
10789
10820
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
10790
10821
  children: [
10791
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2", children: [
10792
- /* @__PURE__ */ jsx42(
10822
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
10823
+ /* @__PURE__ */ jsx43(
10793
10824
  TriangleIcon,
10794
10825
  {
10795
10826
  style: {
@@ -10798,15 +10829,15 @@ var TableGroup = (props) => {
10798
10829
  className: `w-2 h-2 text-button_primary `
10799
10830
  }
10800
10831
  ),
10801
- /* @__PURE__ */ jsx42("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10832
+ /* @__PURE__ */ jsx43("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10802
10833
  ] }),
10803
- /* @__PURE__ */ jsx42(
10834
+ /* @__PURE__ */ jsx43(
10804
10835
  "div",
10805
10836
  {
10806
10837
  onClick: (e3) => {
10807
10838
  e3.stopPropagation();
10808
10839
  },
10809
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx42(
10840
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx43(
10810
10841
  PaginationView,
10811
10842
  {
10812
10843
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -10827,7 +10858,7 @@ var TableGroup = (props) => {
10827
10858
  columns?.map((col) => {
10828
10859
  if (col?.optional === "hide") return;
10829
10860
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
10830
- return /* @__PURE__ */ jsx42(
10861
+ return /* @__PURE__ */ jsx43(
10831
10862
  "td",
10832
10863
  {
10833
10864
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -10845,7 +10876,7 @@ var TableGroup = (props) => {
10845
10876
  ]
10846
10877
  }
10847
10878
  ),
10848
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx42(
10879
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx43(
10849
10880
  TableBodyRow,
10850
10881
  {
10851
10882
  columns: columnsGroup,
@@ -10875,7 +10906,7 @@ var TableGroup = (props) => {
10875
10906
 
10876
10907
  // src/widgets/advanced/table/table-row.tsx
10877
10908
  import { useEffect as useEffect5, useMemo as useMemo3, useRef as useRef4 } from "react";
10878
- import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
10909
+ import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
10879
10910
  var Row = (props) => {
10880
10911
  const {
10881
10912
  row,
@@ -10941,17 +10972,17 @@ var Row = (props) => {
10941
10972
  setIsAutoSelect(false);
10942
10973
  }
10943
10974
  }, [checkedAll]);
10944
- return /* @__PURE__ */ jsx43(
10975
+ return /* @__PURE__ */ jsx44(
10945
10976
  "tr",
10946
10977
  {
10947
10978
  "data-row-id": row?.id,
10948
10979
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10949
- children: /* @__PURE__ */ jsxs23(Fragment3, { children: [
10950
- isDisplayCheckbox && /* @__PURE__ */ jsx43(
10980
+ children: /* @__PURE__ */ jsxs24(Fragment3, { children: [
10981
+ isDisplayCheckbox && /* @__PURE__ */ jsx44(
10951
10982
  "td",
10952
10983
  {
10953
10984
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
10954
- children: /* @__PURE__ */ jsx43(
10985
+ children: /* @__PURE__ */ jsx44(
10955
10986
  "input",
10956
10987
  {
10957
10988
  type: "checkbox",
@@ -10964,9 +10995,9 @@ var Row = (props) => {
10964
10995
  ),
10965
10996
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
10966
10997
  if (row?.display_type === "line_section" && col.key !== "display_name") {
10967
- return /* @__PURE__ */ jsx43("td", {});
10998
+ return /* @__PURE__ */ jsx44("td", {});
10968
10999
  }
10969
- return /* @__PURE__ */ jsx43(
11000
+ return /* @__PURE__ */ jsx44(
10970
11001
  "td",
10971
11002
  {
10972
11003
  colSpan: 1,
@@ -10985,7 +11016,7 @@ var Row = (props) => {
10985
11016
  `${col.name}____${index4}`
10986
11017
  );
10987
11018
  }),
10988
- 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(
11019
+ 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(
10989
11020
  "button",
10990
11021
  {
10991
11022
  type: "button",
@@ -10993,7 +11024,7 @@ var Row = (props) => {
10993
11024
  onClick: () => {
10994
11025
  onRemoveRow(indexRow);
10995
11026
  },
10996
- children: /* @__PURE__ */ jsx43(DeleteIcon, {})
11027
+ children: /* @__PURE__ */ jsx44(DeleteIcon, {})
10997
11028
  }
10998
11029
  ) }) })
10999
11030
  ] })
@@ -11003,7 +11034,7 @@ var Row = (props) => {
11003
11034
  };
11004
11035
 
11005
11036
  // src/widgets/advanced/table/table-body.tsx
11006
- import { jsx as jsx44 } from "react/jsx-runtime";
11037
+ import { jsx as jsx45 } from "react/jsx-runtime";
11007
11038
  var TableBodyRow = (props) => {
11008
11039
  const {
11009
11040
  rows,
@@ -11033,7 +11064,7 @@ var TableBodyRow = (props) => {
11033
11064
  isEditTable
11034
11065
  } = props;
11035
11066
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
11036
- return typeTable === "group" ? /* @__PURE__ */ jsx44(
11067
+ return typeTable === "group" ? /* @__PURE__ */ jsx45(
11037
11068
  TableGroup,
11038
11069
  {
11039
11070
  columns,
@@ -11058,7 +11089,7 @@ var TableBodyRow = (props) => {
11058
11089
  onClickRow
11059
11090
  },
11060
11091
  `record-group-${index4}`
11061
- ) : /* @__PURE__ */ jsx44(
11092
+ ) : /* @__PURE__ */ jsx45(
11062
11093
  Row,
11063
11094
  {
11064
11095
  row,
@@ -11086,7 +11117,7 @@ var TableBodyRow = (props) => {
11086
11117
  };
11087
11118
  var TableBody = (props) => {
11088
11119
  const [isAutoSelect, setIsAutoSelect] = useState3(false);
11089
- return /* @__PURE__ */ jsx44("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx44(
11120
+ return /* @__PURE__ */ jsx45("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx45(
11090
11121
  TableBodyRow,
11091
11122
  {
11092
11123
  ...props,
@@ -11099,7 +11130,7 @@ var TableBody = (props) => {
11099
11130
  // src/widgets/advanced/table/table-filter.tsx
11100
11131
  import { useEffect as useEffect6, useRef as useRef5, useState as useState4 } from "react";
11101
11132
  import { createPortal } from "react-dom";
11102
- import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
11133
+ import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
11103
11134
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
11104
11135
  const [openTableFilter, setOpenTableFilter] = useState4();
11105
11136
  const [filterPosition, setFilterPosition] = useState4(null);
@@ -11131,7 +11162,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11131
11162
  window.removeEventListener("resize", updatePosition);
11132
11163
  };
11133
11164
  }, [filterRef, openTableFilter]);
11134
- return /* @__PURE__ */ jsxs24(
11165
+ return /* @__PURE__ */ jsxs25(
11135
11166
  "div",
11136
11167
  {
11137
11168
  ref: filterRef,
@@ -11140,7 +11171,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11140
11171
  },
11141
11172
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
11142
11173
  children: [
11143
- /* @__PURE__ */ jsx45(
11174
+ /* @__PURE__ */ jsx46(
11144
11175
  "button",
11145
11176
  {
11146
11177
  type: "button",
@@ -11148,7 +11179,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11148
11179
  onClick: () => {
11149
11180
  setOpenTableFilter(!openTableFilter);
11150
11181
  },
11151
- children: /* @__PURE__ */ jsxs24(
11182
+ children: /* @__PURE__ */ jsxs25(
11152
11183
  "svg",
11153
11184
  {
11154
11185
  xmlns: "http://www.w3.org/2000/svg",
@@ -11157,42 +11188,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11157
11188
  viewBox: "0 0 16 16",
11158
11189
  fill: "none",
11159
11190
  children: [
11160
- /* @__PURE__ */ jsx45(
11191
+ /* @__PURE__ */ jsx46(
11161
11192
  "path",
11162
11193
  {
11163
11194
  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",
11164
11195
  fill: "#1F1F1F"
11165
11196
  }
11166
11197
  ),
11167
- /* @__PURE__ */ jsx45(
11198
+ /* @__PURE__ */ jsx46(
11168
11199
  "path",
11169
11200
  {
11170
11201
  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",
11171
11202
  fill: "#1F1F1F"
11172
11203
  }
11173
11204
  ),
11174
- /* @__PURE__ */ jsx45(
11205
+ /* @__PURE__ */ jsx46(
11175
11206
  "path",
11176
11207
  {
11177
11208
  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",
11178
11209
  fill: "#1F1F1F"
11179
11210
  }
11180
11211
  ),
11181
- /* @__PURE__ */ jsx45(
11212
+ /* @__PURE__ */ jsx46(
11182
11213
  "path",
11183
11214
  {
11184
11215
  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",
11185
11216
  fill: "black"
11186
11217
  }
11187
11218
  ),
11188
- /* @__PURE__ */ jsx45(
11219
+ /* @__PURE__ */ jsx46(
11189
11220
  "path",
11190
11221
  {
11191
11222
  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",
11192
11223
  fill: "black"
11193
11224
  }
11194
11225
  ),
11195
- /* @__PURE__ */ jsx45(
11226
+ /* @__PURE__ */ jsx46(
11196
11227
  "path",
11197
11228
  {
11198
11229
  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",
@@ -11205,7 +11236,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11205
11236
  }
11206
11237
  ),
11207
11238
  filterPosition && openTableFilter && createPortal(
11208
- /* @__PURE__ */ jsx45(
11239
+ /* @__PURE__ */ jsx46(
11209
11240
  "div",
11210
11241
  {
11211
11242
  ref: filterPopupRef,
@@ -11216,8 +11247,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11216
11247
  },
11217
11248
  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",
11218
11249
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
11219
- return /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
11220
- /* @__PURE__ */ jsx45(
11250
+ return /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
11251
+ /* @__PURE__ */ jsx46(
11221
11252
  "input",
11222
11253
  {
11223
11254
  type: "checkbox",
@@ -11227,7 +11258,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11227
11258
  className: "cursor-pointer"
11228
11259
  }
11229
11260
  ),
11230
- /* @__PURE__ */ jsx45(
11261
+ /* @__PURE__ */ jsx46(
11231
11262
  "label",
11232
11263
  {
11233
11264
  htmlFor: `${item.name}`,
@@ -11247,14 +11278,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11247
11278
  };
11248
11279
 
11249
11280
  // src/widgets/advanced/table/table-footer.tsx
11250
- import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
11281
+ import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
11251
11282
  var TableFooter = ({ onAddRow, rows }) => {
11252
11283
  const emptyData = rows?.length <= 0;
11253
- return /* @__PURE__ */ jsx46("tfoot", { children: /* @__PURE__ */ jsx46("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx46(
11284
+ return /* @__PURE__ */ jsx47("tfoot", { children: /* @__PURE__ */ jsx47("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx47(
11254
11285
  "td",
11255
11286
  {
11256
11287
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
11257
- children: /* @__PURE__ */ jsxs25(
11288
+ children: /* @__PURE__ */ jsxs26(
11258
11289
  "button",
11259
11290
  {
11260
11291
  type: "button",
@@ -11264,7 +11295,7 @@ var TableFooter = ({ onAddRow, rows }) => {
11264
11295
  },
11265
11296
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
11266
11297
  children: [
11267
- /* @__PURE__ */ jsxs25(
11298
+ /* @__PURE__ */ jsxs26(
11268
11299
  "svg",
11269
11300
  {
11270
11301
  style: {
@@ -11277,14 +11308,14 @@ var TableFooter = ({ onAddRow, rows }) => {
11277
11308
  viewBox: "0 0 20 20",
11278
11309
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
11279
11310
  children: [
11280
- /* @__PURE__ */ jsx46(
11311
+ /* @__PURE__ */ jsx47(
11281
11312
  "path",
11282
11313
  {
11283
11314
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
11284
11315
  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"
11285
11316
  }
11286
11317
  ),
11287
- /* @__PURE__ */ jsx46(
11318
+ /* @__PURE__ */ jsx47(
11288
11319
  "path",
11289
11320
  {
11290
11321
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -13104,8 +13135,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
13104
13135
  });
13105
13136
 
13106
13137
  // src/widgets/advanced/table/table-head.tsx
13107
- import { createPortal as createPortal2 } from "react-dom";
13108
- import { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
13138
+ import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
13109
13139
  var TableHead = (props) => {
13110
13140
  const {
13111
13141
  handleCheckBoxAll,
@@ -13115,7 +13145,7 @@ var TableHead = (props) => {
13115
13145
  onRemoveRow,
13116
13146
  onToggleColumnOptional
13117
13147
  } = props;
13118
- return /* @__PURE__ */ jsx47("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs26(
13148
+ return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs27(
13119
13149
  "tr",
13120
13150
  {
13121
13151
  style: {
@@ -13127,11 +13157,11 @@ var TableHead = (props) => {
13127
13157
  },
13128
13158
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
13129
13159
  children: [
13130
- isDisplayCheckbox && /* @__PURE__ */ jsx47(
13160
+ isDisplayCheckbox && /* @__PURE__ */ jsx48(
13131
13161
  "th",
13132
13162
  {
13133
13163
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
13134
- children: /* @__PURE__ */ jsx47(
13164
+ children: /* @__PURE__ */ jsx48(
13135
13165
  "input",
13136
13166
  {
13137
13167
  type: "checkbox",
@@ -13143,36 +13173,32 @@ var TableHead = (props) => {
13143
13173
  }
13144
13174
  ),
13145
13175
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
13146
- return /* @__PURE__ */ jsx47(
13176
+ return /* @__PURE__ */ jsx48(
13147
13177
  "th",
13148
13178
  {
13149
- "data-rtc-resizable": col?.name,
13150
13179
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
13151
- children: /* @__PURE__ */ jsxs26("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
13180
+ children: /* @__PURE__ */ jsxs27("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
13152
13181
  col.title,
13153
- col?.field?.help && /* @__PURE__ */ jsxs26(Fragment4, { children: [
13154
- createPortal2(
13155
- /* @__PURE__ */ jsx47(
13156
- M,
13157
- {
13158
- style: {
13159
- padding: "6px 12px",
13160
- fontSize: "12px",
13161
- borderRadius: "4px",
13162
- maxWidth: "200px",
13163
- whiteSpace: "wrap",
13164
- fontWeight: 400,
13165
- textTransform: "none",
13166
- zIndex: "9999"
13167
- },
13168
- id: `field-help-${col?.field?.name}`,
13169
- content: col?.field?.help,
13170
- place: "top"
13171
- }
13172
- ),
13173
- document.body
13182
+ col?.field?.help && /* @__PURE__ */ jsxs27(Fragment4, { children: [
13183
+ /* @__PURE__ */ jsx48(
13184
+ M,
13185
+ {
13186
+ style: {
13187
+ padding: "6px 12px",
13188
+ fontSize: "12px",
13189
+ borderRadius: "4px",
13190
+ maxWidth: "200%",
13191
+ whiteSpace: "wrap",
13192
+ fontWeight: 400,
13193
+ textTransform: "none"
13194
+ },
13195
+ id: `field-help-${col?.field?.name}`,
13196
+ content: col?.field?.help,
13197
+ place: "top",
13198
+ className: "z-30"
13199
+ }
13174
13200
  ),
13175
- /* @__PURE__ */ jsx47(
13201
+ /* @__PURE__ */ jsx48(
13176
13202
  "span",
13177
13203
  {
13178
13204
  style: {
@@ -13191,8 +13217,8 @@ var TableHead = (props) => {
13191
13217
  "table-head-" + index4
13192
13218
  );
13193
13219
  }),
13194
- typeof onRemoveRow === "function" && /* @__PURE__ */ jsx47("th", { className: "relative p-2 w-[35px]" }),
13195
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx47(
13220
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx48("th", { className: "relative p-2 w-[35px]" }),
13221
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx48(
13196
13222
  "th",
13197
13223
  {
13198
13224
  style: {
@@ -13200,7 +13226,7 @@ var TableHead = (props) => {
13200
13226
  right: 0
13201
13227
  },
13202
13228
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
13203
- children: /* @__PURE__ */ jsx47(
13229
+ children: /* @__PURE__ */ jsx48(
13204
13230
  TableFilter,
13205
13231
  {
13206
13232
  columns,
@@ -13215,9 +13241,9 @@ var TableHead = (props) => {
13215
13241
  };
13216
13242
 
13217
13243
  // src/icons/empty-table-icon.tsx
13218
- import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
13244
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
13219
13245
  var IcEmptyTable = () => {
13220
- return /* @__PURE__ */ jsxs27(
13246
+ return /* @__PURE__ */ jsxs28(
13221
13247
  "svg",
13222
13248
  {
13223
13249
  xmlns: "http://www.w3.org/2000/svg",
@@ -13226,9 +13252,9 @@ var IcEmptyTable = () => {
13226
13252
  viewBox: "0 0 216 140",
13227
13253
  fill: "none",
13228
13254
  children: [
13229
- /* @__PURE__ */ jsxs27("g", { clipPath: "url(#clip0_2454_28950)", children: [
13230
- /* @__PURE__ */ jsx48("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13231
- /* @__PURE__ */ jsx48(
13255
+ /* @__PURE__ */ jsxs28("g", { clipPath: "url(#clip0_2454_28950)", children: [
13256
+ /* @__PURE__ */ jsx49("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13257
+ /* @__PURE__ */ jsx49(
13232
13258
  "path",
13233
13259
  {
13234
13260
  d: "M64.5 0V140",
@@ -13238,7 +13264,7 @@ var IcEmptyTable = () => {
13238
13264
  strokeDasharray: "3 3"
13239
13265
  }
13240
13266
  ),
13241
- /* @__PURE__ */ jsx48(
13267
+ /* @__PURE__ */ jsx49(
13242
13268
  "path",
13243
13269
  {
13244
13270
  d: "M151.5 0V140",
@@ -13248,7 +13274,7 @@ var IcEmptyTable = () => {
13248
13274
  strokeDasharray: "3 3"
13249
13275
  }
13250
13276
  ),
13251
- /* @__PURE__ */ jsx48(
13277
+ /* @__PURE__ */ jsx49(
13252
13278
  "path",
13253
13279
  {
13254
13280
  d: "M215.5 24H0.5",
@@ -13258,7 +13284,7 @@ var IcEmptyTable = () => {
13258
13284
  strokeDasharray: "3 3"
13259
13285
  }
13260
13286
  ),
13261
- /* @__PURE__ */ jsx48(
13287
+ /* @__PURE__ */ jsx49(
13262
13288
  "path",
13263
13289
  {
13264
13290
  d: "M215.5 50H0.5",
@@ -13268,7 +13294,7 @@ var IcEmptyTable = () => {
13268
13294
  strokeDasharray: "3 3"
13269
13295
  }
13270
13296
  ),
13271
- /* @__PURE__ */ jsx48(
13297
+ /* @__PURE__ */ jsx49(
13272
13298
  "path",
13273
13299
  {
13274
13300
  d: "M215.5 88H0.5",
@@ -13278,7 +13304,7 @@ var IcEmptyTable = () => {
13278
13304
  strokeDasharray: "3 3"
13279
13305
  }
13280
13306
  ),
13281
- /* @__PURE__ */ jsx48(
13307
+ /* @__PURE__ */ jsx49(
13282
13308
  "path",
13283
13309
  {
13284
13310
  d: "M215.5 114H0.5",
@@ -13288,7 +13314,7 @@ var IcEmptyTable = () => {
13288
13314
  strokeDasharray: "3 3"
13289
13315
  }
13290
13316
  ),
13291
- /* @__PURE__ */ jsx48(
13317
+ /* @__PURE__ */ jsx49(
13292
13318
  "path",
13293
13319
  {
13294
13320
  d: "M199.5 0V140",
@@ -13297,7 +13323,7 @@ var IcEmptyTable = () => {
13297
13323
  strokeMiterlimit: "10"
13298
13324
  }
13299
13325
  ),
13300
- /* @__PURE__ */ jsx48(
13326
+ /* @__PURE__ */ jsx49(
13301
13327
  "path",
13302
13328
  {
13303
13329
  d: "M16.5 0V140",
@@ -13306,7 +13332,7 @@ var IcEmptyTable = () => {
13306
13332
  strokeMiterlimit: "10"
13307
13333
  }
13308
13334
  ),
13309
- /* @__PURE__ */ jsx48(
13335
+ /* @__PURE__ */ jsx49(
13310
13336
  "path",
13311
13337
  {
13312
13338
  d: "M0.5 16H215.5",
@@ -13315,7 +13341,7 @@ var IcEmptyTable = () => {
13315
13341
  strokeMiterlimit: "10"
13316
13342
  }
13317
13343
  ),
13318
- /* @__PURE__ */ jsx48(
13344
+ /* @__PURE__ */ jsx49(
13319
13345
  "path",
13320
13346
  {
13321
13347
  d: "M0.5 124H215.5",
@@ -13324,7 +13350,7 @@ var IcEmptyTable = () => {
13324
13350
  strokeMiterlimit: "10"
13325
13351
  }
13326
13352
  ),
13327
- /* @__PURE__ */ jsx48(
13353
+ /* @__PURE__ */ jsx49(
13328
13354
  "path",
13329
13355
  {
13330
13356
  opacity: "0.6",
@@ -13335,7 +13361,7 @@ var IcEmptyTable = () => {
13335
13361
  strokeLinejoin: "round"
13336
13362
  }
13337
13363
  ),
13338
- /* @__PURE__ */ jsx48(
13364
+ /* @__PURE__ */ jsx49(
13339
13365
  "path",
13340
13366
  {
13341
13367
  opacity: "0.6",
@@ -13346,7 +13372,7 @@ var IcEmptyTable = () => {
13346
13372
  strokeLinejoin: "round"
13347
13373
  }
13348
13374
  ),
13349
- /* @__PURE__ */ jsx48(
13375
+ /* @__PURE__ */ jsx49(
13350
13376
  "path",
13351
13377
  {
13352
13378
  opacity: "0.6",
@@ -13357,7 +13383,7 @@ var IcEmptyTable = () => {
13357
13383
  strokeLinejoin: "round"
13358
13384
  }
13359
13385
  ),
13360
- /* @__PURE__ */ jsx48(
13386
+ /* @__PURE__ */ jsx49(
13361
13387
  "path",
13362
13388
  {
13363
13389
  opacity: "0.6",
@@ -13368,7 +13394,7 @@ var IcEmptyTable = () => {
13368
13394
  strokeLinejoin: "round"
13369
13395
  }
13370
13396
  ),
13371
- /* @__PURE__ */ jsx48(
13397
+ /* @__PURE__ */ jsx49(
13372
13398
  "path",
13373
13399
  {
13374
13400
  opacity: "0.6",
@@ -13379,14 +13405,14 @@ var IcEmptyTable = () => {
13379
13405
  strokeLinejoin: "round"
13380
13406
  }
13381
13407
  ),
13382
- /* @__PURE__ */ jsx48(
13408
+ /* @__PURE__ */ jsx49(
13383
13409
  "path",
13384
13410
  {
13385
13411
  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",
13386
13412
  fill: "white"
13387
13413
  }
13388
13414
  ),
13389
- /* @__PURE__ */ jsx48(
13415
+ /* @__PURE__ */ jsx49(
13390
13416
  "path",
13391
13417
  {
13392
13418
  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",
@@ -13396,7 +13422,7 @@ var IcEmptyTable = () => {
13396
13422
  strokeLinejoin: "round"
13397
13423
  }
13398
13424
  ),
13399
- /* @__PURE__ */ jsx48(
13425
+ /* @__PURE__ */ jsx49(
13400
13426
  "path",
13401
13427
  {
13402
13428
  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",
@@ -13405,7 +13431,7 @@ var IcEmptyTable = () => {
13405
13431
  strokeLinejoin: "round"
13406
13432
  }
13407
13433
  ),
13408
- /* @__PURE__ */ jsx48(
13434
+ /* @__PURE__ */ jsx49(
13409
13435
  "path",
13410
13436
  {
13411
13437
  opacity: "0.6",
@@ -13416,7 +13442,7 @@ var IcEmptyTable = () => {
13416
13442
  strokeLinejoin: "round"
13417
13443
  }
13418
13444
  ),
13419
- /* @__PURE__ */ jsx48(
13445
+ /* @__PURE__ */ jsx49(
13420
13446
  "path",
13421
13447
  {
13422
13448
  opacity: "0.6",
@@ -13427,7 +13453,7 @@ var IcEmptyTable = () => {
13427
13453
  strokeLinejoin: "round"
13428
13454
  }
13429
13455
  ),
13430
- /* @__PURE__ */ jsx48(
13456
+ /* @__PURE__ */ jsx49(
13431
13457
  "path",
13432
13458
  {
13433
13459
  opacity: "0.6",
@@ -13438,7 +13464,7 @@ var IcEmptyTable = () => {
13438
13464
  strokeLinejoin: "round"
13439
13465
  }
13440
13466
  ),
13441
- /* @__PURE__ */ jsx48(
13467
+ /* @__PURE__ */ jsx49(
13442
13468
  "path",
13443
13469
  {
13444
13470
  opacity: "0.6",
@@ -13449,7 +13475,7 @@ var IcEmptyTable = () => {
13449
13475
  strokeLinejoin: "round"
13450
13476
  }
13451
13477
  ),
13452
- /* @__PURE__ */ jsx48(
13478
+ /* @__PURE__ */ jsx49(
13453
13479
  "path",
13454
13480
  {
13455
13481
  opacity: "0.6",
@@ -13460,7 +13486,7 @@ var IcEmptyTable = () => {
13460
13486
  strokeLinejoin: "round"
13461
13487
  }
13462
13488
  ),
13463
- /* @__PURE__ */ jsx48(
13489
+ /* @__PURE__ */ jsx49(
13464
13490
  "path",
13465
13491
  {
13466
13492
  opacity: "0.6",
@@ -13471,7 +13497,7 @@ var IcEmptyTable = () => {
13471
13497
  strokeLinejoin: "round"
13472
13498
  }
13473
13499
  ),
13474
- /* @__PURE__ */ jsx48(
13500
+ /* @__PURE__ */ jsx49(
13475
13501
  "path",
13476
13502
  {
13477
13503
  opacity: "0.6",
@@ -13482,7 +13508,7 @@ var IcEmptyTable = () => {
13482
13508
  strokeLinejoin: "round"
13483
13509
  }
13484
13510
  ),
13485
- /* @__PURE__ */ jsx48(
13511
+ /* @__PURE__ */ jsx49(
13486
13512
  "path",
13487
13513
  {
13488
13514
  opacity: "0.6",
@@ -13493,7 +13519,7 @@ var IcEmptyTable = () => {
13493
13519
  strokeLinejoin: "round"
13494
13520
  }
13495
13521
  ),
13496
- /* @__PURE__ */ jsx48(
13522
+ /* @__PURE__ */ jsx49(
13497
13523
  "path",
13498
13524
  {
13499
13525
  opacity: "0.6",
@@ -13504,14 +13530,14 @@ var IcEmptyTable = () => {
13504
13530
  strokeLinejoin: "round"
13505
13531
  }
13506
13532
  ),
13507
- /* @__PURE__ */ jsx48(
13533
+ /* @__PURE__ */ jsx49(
13508
13534
  "path",
13509
13535
  {
13510
13536
  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",
13511
13537
  fill: "white"
13512
13538
  }
13513
13539
  ),
13514
- /* @__PURE__ */ jsx48(
13540
+ /* @__PURE__ */ jsx49(
13515
13541
  "path",
13516
13542
  {
13517
13543
  "fill-rule": "evenodd",
@@ -13520,7 +13546,7 @@ var IcEmptyTable = () => {
13520
13546
  fill: "white"
13521
13547
  }
13522
13548
  ),
13523
- /* @__PURE__ */ jsx48(
13549
+ /* @__PURE__ */ jsx49(
13524
13550
  "path",
13525
13551
  {
13526
13552
  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",
@@ -13531,7 +13557,7 @@ var IcEmptyTable = () => {
13531
13557
  }
13532
13558
  )
13533
13559
  ] }),
13534
- /* @__PURE__ */ jsx48("defs", { children: /* @__PURE__ */ jsx48("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx48(
13560
+ /* @__PURE__ */ jsx49("defs", { children: /* @__PURE__ */ jsx49("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx49(
13535
13561
  "rect",
13536
13562
  {
13537
13563
  width: "215",
@@ -13546,14 +13572,14 @@ var IcEmptyTable = () => {
13546
13572
  };
13547
13573
 
13548
13574
  // src/widgets/advanced/table/empty-table.tsx
13549
- import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
13575
+ import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
13550
13576
  var EmptyTable = () => {
13551
13577
  const { t: t3 } = useI18n();
13552
- return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13553
- /* @__PURE__ */ jsx49(IcEmptyTable, {}),
13554
- /* @__PURE__ */ jsxs28("div", { children: [
13555
- /* @__PURE__ */ jsx49("p", {}),
13556
- /* @__PURE__ */ jsx49("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13578
+ return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13579
+ /* @__PURE__ */ jsx50(IcEmptyTable, {}),
13580
+ /* @__PURE__ */ jsxs29("div", { children: [
13581
+ /* @__PURE__ */ jsx50("p", {}),
13582
+ /* @__PURE__ */ jsx50("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13557
13583
  ] })
13558
13584
  ] });
13559
13585
  };
@@ -15372,10 +15398,10 @@ function s3(o3, s4, t3) {
15372
15398
 
15373
15399
  // src/widgets/advanced/login/shared/button.tsx
15374
15400
  import * as React2 from "react";
15375
- import { jsx as jsx50 } from "react/jsx-runtime";
15401
+ import { jsx as jsx51 } from "react/jsx-runtime";
15376
15402
  var Button = React2.forwardRef(
15377
15403
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
15378
- return /* @__PURE__ */ jsx50(
15404
+ return /* @__PURE__ */ jsx51(
15379
15405
  "button",
15380
15406
  {
15381
15407
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -15385,7 +15411,7 @@ var Button = React2.forwardRef(
15385
15411
  ref,
15386
15412
  type,
15387
15413
  ...props,
15388
- children: isLoading ? /* @__PURE__ */ jsx50(LoadingIcon, { width: 20, height: 20 }) : children
15414
+ children: isLoading ? /* @__PURE__ */ jsx51(LoadingIcon, { width: 20, height: 20 }) : children
15389
15415
  }
15390
15416
  );
15391
15417
  }
@@ -15394,7 +15420,7 @@ Button.displayName = "Button";
15394
15420
 
15395
15421
  // src/widgets/advanced/login/shared/text-input.tsx
15396
15422
  import { useState as useState5 } from "react";
15397
- import { jsx as jsx51, jsxs as jsxs29 } from "react/jsx-runtime";
15423
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
15398
15424
  function TextInput(props) {
15399
15425
  const {
15400
15426
  className,
@@ -15408,17 +15434,17 @@ function TextInput(props) {
15408
15434
  required
15409
15435
  } = props;
15410
15436
  const [showPassword, setShowPassword] = useState5(false);
15411
- return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15412
- label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15437
+ return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15438
+ label && /* @__PURE__ */ jsxs30("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15413
15439
  label,
15414
- required ? /* @__PURE__ */ jsx51("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15440
+ required ? /* @__PURE__ */ jsx52("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15415
15441
  ] }),
15416
- /* @__PURE__ */ jsxs29(
15442
+ /* @__PURE__ */ jsxs30(
15417
15443
  "div",
15418
15444
  {
15419
15445
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
15420
15446
  children: [
15421
- /* @__PURE__ */ jsx51(
15447
+ /* @__PURE__ */ jsx52(
15422
15448
  "input",
15423
15449
  {
15424
15450
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -15427,18 +15453,18 @@ function TextInput(props) {
15427
15453
  ...register(name2)
15428
15454
  }
15429
15455
  ),
15430
- type === "password" && /* @__PURE__ */ jsx51(
15456
+ type === "password" && /* @__PURE__ */ jsx52(
15431
15457
  "span",
15432
15458
  {
15433
15459
  onClick: () => setShowPassword(!showPassword),
15434
15460
  className: "focus:outline-none",
15435
- children: showPassword ? /* @__PURE__ */ jsx51(EyeClosedIcon, {}) : /* @__PURE__ */ jsx51(EyeIcon, {})
15461
+ children: showPassword ? /* @__PURE__ */ jsx52(EyeClosedIcon, {}) : /* @__PURE__ */ jsx52(EyeIcon, {})
15436
15462
  }
15437
15463
  )
15438
15464
  ]
15439
15465
  }
15440
15466
  ),
15441
- errors?.[name2]?.message && /* @__PURE__ */ jsx51(
15467
+ errors?.[name2]?.message && /* @__PURE__ */ jsx52(
15442
15468
  "p",
15443
15469
  {
15444
15470
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -15450,7 +15476,7 @@ function TextInput(props) {
15450
15476
 
15451
15477
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
15452
15478
  import { useEffect as useEffect7 } from "react";
15453
- import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
15479
+ import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15454
15480
  var STAY_LOGIN_IN = "stayLoginIn";
15455
15481
  function FormOptions({
15456
15482
  forgotPasswordUrl,
@@ -15476,9 +15502,9 @@ function FormOptions({
15476
15502
  useEffect7(() => {
15477
15503
  localStorage.setItem(STAY_LOGIN_IN, "false");
15478
15504
  }, []);
15479
- return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15480
- /* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
15481
- /* @__PURE__ */ jsx52(
15505
+ return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15506
+ /* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
15507
+ /* @__PURE__ */ jsx53(
15482
15508
  "input",
15483
15509
  {
15484
15510
  checked: stayLoginIn,
@@ -15487,14 +15513,14 @@ function FormOptions({
15487
15513
  onChange: handleCheckboxChange
15488
15514
  }
15489
15515
  ),
15490
- /* @__PURE__ */ jsx52("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15516
+ /* @__PURE__ */ jsx53("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15491
15517
  ] }),
15492
- !hideForgotPassword && /* @__PURE__ */ jsx52("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15518
+ !hideForgotPassword && /* @__PURE__ */ jsx53("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15493
15519
  ] });
15494
15520
  }
15495
15521
 
15496
15522
  // src/widgets/advanced/login/provider/credential/index.tsx
15497
- import { Fragment as Fragment5, jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15523
+ import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
15498
15524
  var CredentialLogin = (props) => {
15499
15525
  const {
15500
15526
  shouldRenderDivider,
@@ -15514,16 +15540,16 @@ var CredentialLogin = (props) => {
15514
15540
  mode: "onChange",
15515
15541
  resolver: s3(loginSchema)
15516
15542
  });
15517
- return /* @__PURE__ */ jsxs31(Fragment5, { children: [
15518
- /* @__PURE__ */ jsxs31(
15543
+ return /* @__PURE__ */ jsxs32(Fragment5, { children: [
15544
+ /* @__PURE__ */ jsxs32(
15519
15545
  "form",
15520
15546
  {
15521
15547
  onSubmit: handleSubmit(onSubmit ?? (() => {
15522
15548
  })),
15523
15549
  className: `flex w-full h-fit flex-col gap-10`,
15524
15550
  children: [
15525
- /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
15526
- /* @__PURE__ */ jsx53(
15551
+ /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
15552
+ /* @__PURE__ */ jsx54(
15527
15553
  TextInput,
15528
15554
  {
15529
15555
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15536,7 +15562,7 @@ var CredentialLogin = (props) => {
15536
15562
  errors
15537
15563
  }
15538
15564
  ),
15539
- /* @__PURE__ */ jsx53(
15565
+ /* @__PURE__ */ jsx54(
15540
15566
  TextInput,
15541
15567
  {
15542
15568
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15549,7 +15575,7 @@ var CredentialLogin = (props) => {
15549
15575
  errors
15550
15576
  }
15551
15577
  ),
15552
- /* @__PURE__ */ jsx53(
15578
+ /* @__PURE__ */ jsx54(
15553
15579
  FormOptions,
15554
15580
  {
15555
15581
  forgotPasswordUrl,
@@ -15559,7 +15585,7 @@ var CredentialLogin = (props) => {
15559
15585
  }
15560
15586
  )
15561
15587
  ] }),
15562
- /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx53(
15588
+ /* @__PURE__ */ jsx54("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx54(
15563
15589
  Button,
15564
15590
  {
15565
15591
  type: "submit",
@@ -15571,56 +15597,56 @@ var CredentialLogin = (props) => {
15571
15597
  ]
15572
15598
  }
15573
15599
  ),
15574
- shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
15575
- /* @__PURE__ */ jsx53("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15576
- /* @__PURE__ */ jsx53("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15600
+ shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
15601
+ /* @__PURE__ */ jsx54("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15602
+ /* @__PURE__ */ jsx54("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15577
15603
  ] })
15578
15604
  ] });
15579
15605
  };
15580
15606
 
15581
15607
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15582
- import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
15608
+ import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
15583
15609
  function GoogleButton(props) {
15584
15610
  const { onLoginGoogle, db } = props;
15585
- return /* @__PURE__ */ jsxs32(
15611
+ return /* @__PURE__ */ jsxs33(
15586
15612
  "button",
15587
15613
  {
15588
15614
  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",
15589
15615
  onClick: () => onLoginGoogle?.(db),
15590
15616
  children: [
15591
- /* @__PURE__ */ jsx54(GoogleIcon, { className: "google-icon" }),
15592
- /* @__PURE__ */ jsx54("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15617
+ /* @__PURE__ */ jsx55(GoogleIcon, { className: "google-icon" }),
15618
+ /* @__PURE__ */ jsx55("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15593
15619
  ]
15594
15620
  }
15595
15621
  );
15596
15622
  }
15597
15623
 
15598
15624
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15599
- import { Fragment as Fragment6, jsx as jsx55 } from "react/jsx-runtime";
15625
+ import { Fragment as Fragment6, jsx as jsx56 } from "react/jsx-runtime";
15600
15626
  function SocialRedirect(props) {
15601
15627
  const { db, onLoginSocial } = props;
15602
15628
  onLoginSocial && onLoginSocial(String(db));
15603
- return /* @__PURE__ */ jsx55(Fragment6, {});
15629
+ return /* @__PURE__ */ jsx56(Fragment6, {});
15604
15630
  }
15605
15631
 
15606
15632
  // src/widgets/advanced/login/provider/google/index.tsx
15607
- import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
15633
+ import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15608
15634
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15609
- return /* @__PURE__ */ jsxs33(Fragment7, { children: [
15610
- /* @__PURE__ */ jsx56(GoogleButton, { db, onLoginGoogle }),
15611
- /* @__PURE__ */ jsx56(SocialRedirect, { db, onLoginSocial })
15635
+ return /* @__PURE__ */ jsxs34(Fragment7, { children: [
15636
+ /* @__PURE__ */ jsx57(GoogleButton, { db, onLoginGoogle }),
15637
+ /* @__PURE__ */ jsx57(SocialRedirect, { db, onLoginSocial })
15612
15638
  ] });
15613
15639
  };
15614
15640
 
15615
15641
  // src/widgets/advanced/login/index.tsx
15616
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15642
+ import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15617
15643
  var LoginProviderMapping = {
15618
15644
  google: GoogleLogin
15619
15645
  };
15620
15646
  var Login = (props) => {
15621
15647
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15622
- return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
15623
- /* @__PURE__ */ jsx57(
15648
+ return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
15649
+ /* @__PURE__ */ jsx58(
15624
15650
  CredentialLogin,
15625
15651
  {
15626
15652
  ...props,
@@ -15630,7 +15656,7 @@ var Login = (props) => {
15630
15656
  ),
15631
15657
  providers.map((provider, index4) => {
15632
15658
  const ProviderComp = LoginProviderMapping[provider];
15633
- return /* @__PURE__ */ jsx57(
15659
+ return /* @__PURE__ */ jsx58(
15634
15660
  ProviderComp,
15635
15661
  {
15636
15662
  db,
@@ -15644,7 +15670,7 @@ var Login = (props) => {
15644
15670
  };
15645
15671
 
15646
15672
  // src/widgets/advanced/search/popup-filter/index.tsx
15647
- import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15673
+ import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15648
15674
  var PopupFilter = ({
15649
15675
  handleAddTagSearch,
15650
15676
  removeSearchItems,
@@ -15655,7 +15681,7 @@ var PopupFilter = ({
15655
15681
  fields
15656
15682
  }) => {
15657
15683
  const { t: t3 } = useI18n();
15658
- return /* @__PURE__ */ jsx58(
15684
+ return /* @__PURE__ */ jsx59(
15659
15685
  "div",
15660
15686
  {
15661
15687
  style: {
@@ -15665,25 +15691,25 @@ var PopupFilter = ({
15665
15691
  zIndex: 33
15666
15692
  },
15667
15693
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15668
- children: /* @__PURE__ */ jsxs35(
15694
+ children: /* @__PURE__ */ jsxs36(
15669
15695
  "div",
15670
15696
  {
15671
15697
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15672
15698
  children: [
15673
- filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
15674
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15675
- /* @__PURE__ */ jsx58(FilterIcon, { className: "filter-by-icon text-primary" }),
15676
- /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15699
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
15700
+ /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15701
+ /* @__PURE__ */ jsx59(FilterIcon, { className: "filter-by-icon text-primary" }),
15702
+ /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15677
15703
  ] }),
15678
15704
  filterBy?.reduce((acc, item, index4, array) => {
15679
15705
  const prevItem = array[index4 - 1];
15680
15706
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15681
15707
  const isExist = item?.active;
15682
15708
  if (isDifferentGroup) {
15683
- acc.push(/* @__PURE__ */ jsx58("hr", { className: "my-2" }, "separator-" + index4));
15709
+ acc.push(/* @__PURE__ */ jsx59("hr", { className: "my-2" }, "separator-" + index4));
15684
15710
  }
15685
15711
  acc.push(
15686
- /* @__PURE__ */ jsxs35(
15712
+ /* @__PURE__ */ jsxs36(
15687
15713
  "button",
15688
15714
  {
15689
15715
  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)]"}`,
@@ -15708,8 +15734,8 @@ var PopupFilter = ({
15708
15734
  });
15709
15735
  },
15710
15736
  children: [
15711
- isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15712
- /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string ?? item?.help })
15737
+ isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15738
+ /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string ?? item?.help })
15713
15739
  ]
15714
15740
  },
15715
15741
  "filter-" + index4
@@ -15718,16 +15744,16 @@ var PopupFilter = ({
15718
15744
  return acc;
15719
15745
  }, [])
15720
15746
  ] }),
15721
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx58("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15722
- groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
15723
- /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15724
- /* @__PURE__ */ jsx58(GroupByIcon, { className: "group-by-icon text-primary" }),
15725
- /* @__PURE__ */ jsx58("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15747
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx59("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15748
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
15749
+ /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15750
+ /* @__PURE__ */ jsx59(GroupByIcon, { className: "group-by-icon text-primary" }),
15751
+ /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15726
15752
  ] }),
15727
15753
  groupBy?.map((item, index4) => {
15728
15754
  const isExist = item?.active;
15729
15755
  if (!item.string) return;
15730
- return /* @__PURE__ */ jsxs35(
15756
+ return /* @__PURE__ */ jsxs36(
15731
15757
  "button",
15732
15758
  {
15733
15759
  onClick: () => {
@@ -15751,8 +15777,8 @@ var PopupFilter = ({
15751
15777
  },
15752
15778
  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)]"}`,
15753
15779
  children: [
15754
- isExist && /* @__PURE__ */ jsx58(CheckIcon, {}),
15755
- /* @__PURE__ */ jsx58("span", { className: "text-sm", children: item?.string })
15780
+ isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15781
+ /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string })
15756
15782
  ]
15757
15783
  },
15758
15784
  "groupby-" + index4 + 1
@@ -15771,7 +15797,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15771
15797
 
15772
15798
  // src/widgets/advanced/search/tag-search/index.tsx
15773
15799
  import { Fragment as Fragment8 } from "react";
15774
- import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15800
+ import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15775
15801
  var TagSearch = ({
15776
15802
  removeSearchItems,
15777
15803
  selectedTags,
@@ -15782,23 +15808,23 @@ var TagSearch = ({
15782
15808
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15783
15809
  if (tag?.values?.length > 0) {
15784
15810
  if (tag?.type !== "group_by") {
15785
- return /* @__PURE__ */ jsxs36(
15811
+ return /* @__PURE__ */ jsxs37(
15786
15812
  "div",
15787
15813
  {
15788
15814
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15789
15815
  children: [
15790
- /* @__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, {}) }),
15791
- /* @__PURE__ */ jsx59("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15792
- return /* @__PURE__ */ jsxs36(Fragment8, { children: [
15793
- /* @__PURE__ */ jsx59("span", { children: value }),
15794
- idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15816
+ /* @__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, {}) }),
15817
+ /* @__PURE__ */ jsx60("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15818
+ return /* @__PURE__ */ jsxs37(Fragment8, { children: [
15819
+ /* @__PURE__ */ jsx60("span", { children: value }),
15820
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15795
15821
  " ",
15796
15822
  instance.t("or"),
15797
15823
  " "
15798
15824
  ] })
15799
15825
  ] }, idx);
15800
15826
  }) }),
15801
- /* @__PURE__ */ jsx59(
15827
+ /* @__PURE__ */ jsx60(
15802
15828
  "button",
15803
15829
  {
15804
15830
  className: "px-2 text-sm font-bold",
@@ -15815,7 +15841,7 @@ var TagSearch = ({
15815
15841
  );
15816
15842
  }
15817
15843
  },
15818
- children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15844
+ children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15819
15845
  }
15820
15846
  )
15821
15847
  ]
@@ -15823,26 +15849,26 @@ var TagSearch = ({
15823
15849
  "selected-tag-" + index4
15824
15850
  );
15825
15851
  } else if (tag?.type === "group_by") {
15826
- return /* @__PURE__ */ jsx59(
15852
+ return /* @__PURE__ */ jsx60(
15827
15853
  "div",
15828
15854
  {
15829
15855
  className: "flex min-h-full overflow-hidden",
15830
- 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(
15831
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
15856
+ 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(
15857
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs37(
15832
15858
  "div",
15833
15859
  {
15834
15860
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15835
15861
  children: [
15836
- /* @__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, {}) }),
15837
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment9, { children: [
15838
- /* @__PURE__ */ jsx59("span", { children: string }),
15839
- idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15862
+ /* @__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, {}) }),
15863
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
15864
+ /* @__PURE__ */ jsx60("span", { children: string }),
15865
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15840
15866
  " ",
15841
15867
  "> ",
15842
15868
  " "
15843
15869
  ] })
15844
15870
  ] })),
15845
- /* @__PURE__ */ jsx59(
15871
+ /* @__PURE__ */ jsx60(
15846
15872
  "button",
15847
15873
  {
15848
15874
  className: "pr-2 text-sm font-bold",
@@ -15857,7 +15883,7 @@ var TagSearch = ({
15857
15883
  );
15858
15884
  }
15859
15885
  },
15860
- children: /* @__PURE__ */ jsx59(CloseIcon, { className: "size-4 cursor-pointer" })
15886
+ children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15861
15887
  }
15862
15888
  )
15863
15889
  ]
@@ -15874,7 +15900,7 @@ var TagSearch = ({
15874
15900
  };
15875
15901
 
15876
15902
  // src/widgets/advanced/search/search-list/index.tsx
15877
- import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15903
+ import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15878
15904
  var SearchList = ({
15879
15905
  handleAddTagSearch,
15880
15906
  handleMouseEnter,
@@ -15884,7 +15910,7 @@ var SearchList = ({
15884
15910
  hoveredIndexSearchList
15885
15911
  }) => {
15886
15912
  const { t: t3 } = useI18n();
15887
- return /* @__PURE__ */ jsx60(
15913
+ return /* @__PURE__ */ jsx61(
15888
15914
  "div",
15889
15915
  {
15890
15916
  style: {
@@ -15896,7 +15922,7 @@ var SearchList = ({
15896
15922
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15897
15923
  return;
15898
15924
  }
15899
- return /* @__PURE__ */ jsxs37(
15925
+ return /* @__PURE__ */ jsxs38(
15900
15926
  "button",
15901
15927
  {
15902
15928
  onClick: () => {
@@ -15918,12 +15944,12 @@ var SearchList = ({
15918
15944
  children: [
15919
15945
  t3("search"),
15920
15946
  " ",
15921
- /* @__PURE__ */ jsx60("span", { className: "font-bold", children: searchItem?.title }),
15947
+ /* @__PURE__ */ jsx61("span", { className: "font-bold", children: searchItem?.title }),
15922
15948
  " ",
15923
15949
  t3("for"),
15924
15950
  ":",
15925
15951
  " ",
15926
- /* @__PURE__ */ jsx60(
15952
+ /* @__PURE__ */ jsx61(
15927
15953
  "span",
15928
15954
  {
15929
15955
  style: {
@@ -15943,7 +15969,7 @@ var SearchList = ({
15943
15969
  };
15944
15970
 
15945
15971
  // src/widgets/advanced/search/search-item/index.tsx
15946
- import { Fragment as Fragment10, jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15972
+ import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
15947
15973
  var Search = ({
15948
15974
  removeSearchItems,
15949
15975
  selectedTags,
@@ -16060,15 +16086,15 @@ var Search = ({
16060
16086
  setDidInit(true);
16061
16087
  setIsReadyFormatDomain(true);
16062
16088
  }, [aid, filterBy, fieldsList]);
16063
- return /* @__PURE__ */ jsxs38(
16089
+ return /* @__PURE__ */ jsxs39(
16064
16090
  "div",
16065
16091
  {
16066
16092
  ref: popupFilterRef,
16067
16093
  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)]`,
16068
16094
  children: [
16069
- /* @__PURE__ */ jsx61("div", { className: "size-5", children: /* @__PURE__ */ jsx61(SearchIcon, {}) }),
16070
- /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
16071
- /* @__PURE__ */ jsx61(
16095
+ /* @__PURE__ */ jsx62("div", { className: "size-5", children: /* @__PURE__ */ jsx62(SearchIcon, {}) }),
16096
+ /* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
16097
+ /* @__PURE__ */ jsx62(
16072
16098
  TagSearch,
16073
16099
  {
16074
16100
  removeSearchItems,
@@ -16078,7 +16104,7 @@ var Search = ({
16078
16104
  setGroupBy
16079
16105
  }
16080
16106
  ),
16081
- /* @__PURE__ */ jsx61(
16107
+ /* @__PURE__ */ jsx62(
16082
16108
  "input",
16083
16109
  {
16084
16110
  value: searchString,
@@ -16091,7 +16117,7 @@ var Search = ({
16091
16117
  onKeyUp: (e3) => e3.preventDefault()
16092
16118
  }
16093
16119
  ),
16094
- /* @__PURE__ */ jsx61(
16120
+ /* @__PURE__ */ jsx62(
16095
16121
  SearchList,
16096
16122
  {
16097
16123
  handleAddTagSearch,
@@ -16100,8 +16126,8 @@ var Search = ({
16100
16126
  }
16101
16127
  )
16102
16128
  ] }),
16103
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs38(Fragment10, { children: [
16104
- /* @__PURE__ */ jsxs38(
16129
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment10, { children: [
16130
+ /* @__PURE__ */ jsxs39(
16105
16131
  "div",
16106
16132
  {
16107
16133
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -16110,8 +16136,8 @@ var Search = ({
16110
16136
  setShowPopupFilter((prev2) => !prev2);
16111
16137
  },
16112
16138
  children: [
16113
- /* @__PURE__ */ jsx61("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16114
- /* @__PURE__ */ jsx61(
16139
+ /* @__PURE__ */ jsx62("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
16140
+ /* @__PURE__ */ jsx62(
16115
16141
  ChevronBottomIcon,
16116
16142
  {
16117
16143
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -16120,7 +16146,7 @@ var Search = ({
16120
16146
  ]
16121
16147
  }
16122
16148
  ),
16123
- showPopupFilter && /* @__PURE__ */ jsx61(
16149
+ showPopupFilter && /* @__PURE__ */ jsx62(
16124
16150
  PopupFilter,
16125
16151
  {
16126
16152
  handleAddTagSearch,
@@ -16139,30 +16165,30 @@ var Search = ({
16139
16165
  };
16140
16166
 
16141
16167
  // src/widgets/basic/active-badge-field/active-badge.tsx
16142
- import { Fragment as Fragment11, jsx as jsx62 } from "react/jsx-runtime";
16168
+ import { Fragment as Fragment11, jsx as jsx63 } from "react/jsx-runtime";
16143
16169
  var ActiveBadgeField = (props) => {
16144
16170
  const { t: t3 } = useI18n();
16145
16171
  const {
16146
16172
  type,
16147
16173
  className
16148
16174
  } = props;
16149
- if (type === void 0) return /* @__PURE__ */ jsx62(Fragment11, {});
16175
+ if (type === void 0) return /* @__PURE__ */ jsx63(Fragment11, {});
16150
16176
  const typeStyle = type ? "text-green-500" : "text-red-500";
16151
16177
  const text = type ? t3("active") : t3("in_active");
16152
- return /* @__PURE__ */ jsx62("div", { className: `${typeStyle} ${className}`, children: text });
16178
+ return /* @__PURE__ */ jsx63("div", { className: `${typeStyle} ${className}`, children: text });
16153
16179
  };
16154
16180
 
16155
16181
  // src/widgets/common/modal-layer.tsx
16156
16182
  import { Fragment as Fragment12 } from "react";
16157
16183
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
16158
- import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
16184
+ import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
16159
16185
  var ModalLayer = ({
16160
16186
  isOpen,
16161
16187
  onClose,
16162
16188
  title,
16163
16189
  children
16164
16190
  }) => {
16165
- return /* @__PURE__ */ jsx63(
16191
+ return /* @__PURE__ */ jsx64(
16166
16192
  Transition,
16167
16193
  {
16168
16194
  show: isOpen,
@@ -16173,22 +16199,22 @@ var ModalLayer = ({
16173
16199
  leaveFrom: "transform scale-100 opacity-100",
16174
16200
  leaveTo: "transform scale-95 opacity-0",
16175
16201
  as: Fragment12,
16176
- 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: [
16177
- /* @__PURE__ */ jsx63("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16178
- /* @__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: [
16179
- /* @__PURE__ */ jsxs39(
16202
+ 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: [
16203
+ /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16204
+ /* @__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: [
16205
+ /* @__PURE__ */ jsxs40(
16180
16206
  "div",
16181
16207
  {
16182
16208
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
16183
16209
  children: [
16184
- title && /* @__PURE__ */ jsx63("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16185
- /* @__PURE__ */ jsx63(
16210
+ title && /* @__PURE__ */ jsx64("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16211
+ /* @__PURE__ */ jsx64(
16186
16212
  "button",
16187
16213
  {
16188
16214
  onClick: onClose,
16189
16215
  "aria-label": "Close",
16190
16216
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
16191
- children: /* @__PURE__ */ jsx63(CloseIcon, {})
16217
+ children: /* @__PURE__ */ jsx64(CloseIcon, {})
16192
16218
  }
16193
16219
  )
16194
16220
  ]
@@ -16202,7 +16228,7 @@ var ModalLayer = ({
16202
16228
  };
16203
16229
 
16204
16230
  // src/widgets/common/modal-confirm.tsx
16205
- import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
16231
+ import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
16206
16232
  var ModalConfirm = ({
16207
16233
  name: name2,
16208
16234
  isShowModal,
@@ -16216,7 +16242,7 @@ var ModalConfirm = ({
16216
16242
  const renderButtonAction = (name3) => {
16217
16243
  switch (name3) {
16218
16244
  case "duplicate":
16219
- return /* @__PURE__ */ jsxs40(
16245
+ return /* @__PURE__ */ jsxs41(
16220
16246
  "button",
16221
16247
  {
16222
16248
  type: "button",
@@ -16224,13 +16250,13 @@ var ModalConfirm = ({
16224
16250
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16225
16251
  disabled: isLoading,
16226
16252
  children: [
16227
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16228
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16253
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16254
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16229
16255
  ]
16230
16256
  }
16231
16257
  );
16232
16258
  case "archive":
16233
- return /* @__PURE__ */ jsxs40(
16259
+ return /* @__PURE__ */ jsxs41(
16234
16260
  "button",
16235
16261
  {
16236
16262
  type: "button",
@@ -16238,13 +16264,13 @@ var ModalConfirm = ({
16238
16264
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16239
16265
  disabled: isLoading,
16240
16266
  children: [
16241
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16242
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16267
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16268
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16243
16269
  ]
16244
16270
  }
16245
16271
  );
16246
16272
  case "unarchive":
16247
- return /* @__PURE__ */ jsxs40(
16273
+ return /* @__PURE__ */ jsxs41(
16248
16274
  "button",
16249
16275
  {
16250
16276
  type: "button",
@@ -16252,13 +16278,13 @@ var ModalConfirm = ({
16252
16278
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16253
16279
  disabled: isLoading,
16254
16280
  children: [
16255
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16256
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16281
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16282
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16257
16283
  ]
16258
16284
  }
16259
16285
  );
16260
16286
  case "delete":
16261
- return /* @__PURE__ */ jsxs40(
16287
+ return /* @__PURE__ */ jsxs41(
16262
16288
  "button",
16263
16289
  {
16264
16290
  type: "button",
@@ -16266,8 +16292,8 @@ var ModalConfirm = ({
16266
16292
  className: "button-primary flex-1 flex items-center justify-center gap-2",
16267
16293
  disabled: isLoading,
16268
16294
  children: [
16269
- isLoading && /* @__PURE__ */ jsx64(LoadingIcon, {}),
16270
- /* @__PURE__ */ jsx64("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16295
+ isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16296
+ /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16271
16297
  ]
16272
16298
  }
16273
16299
  );
@@ -16275,13 +16301,13 @@ var ModalConfirm = ({
16275
16301
  break;
16276
16302
  }
16277
16303
  };
16278
- return /* @__PURE__ */ jsx64(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16279
- /* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
16280
- /* @__PURE__ */ jsx64("div", { className: "text-[18px] font-bold", children: title }),
16281
- /* @__PURE__ */ jsx64("p", { className: "text-[16px]", children: content })
16304
+ return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16305
+ /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
16306
+ /* @__PURE__ */ jsx65("div", { className: "text-[18px] font-bold", children: title }),
16307
+ /* @__PURE__ */ jsx65("p", { className: "text-[16px]", children: content })
16282
16308
  ] }),
16283
- /* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16284
- /* @__PURE__ */ jsx64(
16309
+ /* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16310
+ /* @__PURE__ */ jsx65(
16285
16311
  "button",
16286
16312
  {
16287
16313
  type: "button",
@@ -16297,8 +16323,8 @@ var ModalConfirm = ({
16297
16323
 
16298
16324
  // src/widgets/common/modal-detail.tsx
16299
16325
  import { useState as useState7 } from "react";
16300
- import { createPortal as createPortal3 } from "react-dom";
16301
- import { Fragment as Fragment13, jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
16326
+ import { createPortal as createPortal2 } from "react-dom";
16327
+ import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
16302
16328
  var ModalDetail = ({
16303
16329
  idToolTip,
16304
16330
  title,
@@ -16320,19 +16346,19 @@ var ModalDetail = ({
16320
16346
  sessionStorage.setItem("actionData", JSON.stringify(actionData));
16321
16347
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
16322
16348
  };
16323
- return createPortal3(
16324
- /* @__PURE__ */ jsx65(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16325
- /* @__PURE__ */ jsx65("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16326
- /* @__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: [
16327
- /* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16328
- /* @__PURE__ */ jsxs41(
16349
+ return createPortal2(
16350
+ /* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16351
+ /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16352
+ /* @__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: [
16353
+ /* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16354
+ /* @__PURE__ */ jsxs42(
16329
16355
  "div",
16330
16356
  {
16331
16357
  id: "modal-detail",
16332
16358
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
16333
16359
  children: [
16334
16360
  t3("detail_button"),
16335
- /* @__PURE__ */ jsx65(
16361
+ /* @__PURE__ */ jsx66(
16336
16362
  "button",
16337
16363
  {
16338
16364
  onClick: handleNavigateDetail,
@@ -16343,9 +16369,9 @@ var ModalDetail = ({
16343
16369
  ]
16344
16370
  }
16345
16371
  ),
16346
- /* @__PURE__ */ jsx65("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx65(CloseIcon, { className: "h-5 w-5" }) })
16372
+ /* @__PURE__ */ jsx66("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx66(CloseIcon, { className: "h-5 w-5" }) })
16347
16373
  ] }),
16348
- /* @__PURE__ */ jsx65("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16374
+ /* @__PURE__ */ jsx66("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16349
16375
  id: idForm,
16350
16376
  aid,
16351
16377
  model,
@@ -16360,7 +16386,7 @@ var ModalDetail = ({
16360
16386
 
16361
16387
  // src/widgets/common/loading-normal.tsx
16362
16388
  import { useEffect as useEffect9, useState as useState8 } from "react";
16363
- import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
16389
+ import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
16364
16390
  var LayerLoading = () => {
16365
16391
  const { t: t3 } = useI18n();
16366
16392
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -16370,21 +16396,21 @@ var LayerLoading = () => {
16370
16396
  }, 200);
16371
16397
  return () => clearInterval(interval);
16372
16398
  }, []);
16373
- 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: [
16374
- /* @__PURE__ */ jsx66("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx66(
16399
+ 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: [
16400
+ /* @__PURE__ */ jsx67("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx67(
16375
16401
  "div",
16376
16402
  {
16377
16403
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
16378
16404
  },
16379
16405
  index4
16380
16406
  )) }),
16381
- /* @__PURE__ */ jsx66("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16407
+ /* @__PURE__ */ jsx67("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16382
16408
  ] }) }) });
16383
16409
  };
16384
16410
 
16385
16411
  // src/widgets/common/loading-small.tsx
16386
16412
  import { useEffect as useEffect10, useState as useState9 } from "react";
16387
- import { jsx as jsx67 } from "react/jsx-runtime";
16413
+ import { jsx as jsx68 } from "react/jsx-runtime";
16388
16414
  var LoadingSmall = () => {
16389
16415
  const [activeIndex, setActiveIndex] = useState9(0);
16390
16416
  useEffect10(() => {
@@ -16393,7 +16419,7 @@ var LoadingSmall = () => {
16393
16419
  }, 200);
16394
16420
  return () => clearInterval(interval);
16395
16421
  }, []);
16396
- 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(
16422
+ 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(
16397
16423
  "div",
16398
16424
  {
16399
16425
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -16402,101 +16428,9 @@ var LoadingSmall = () => {
16402
16428
  )) }) }) }) });
16403
16429
  };
16404
16430
 
16405
- // src/widgets/common/video-player.tsx
16406
- import { useRef as useRef6, useState as useState10 } from "react";
16407
- import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
16408
- var VideoPlayer = ({ src }) => {
16409
- const [isPlaying, setIsPlaying] = useState10(false);
16410
- const videoRef = useRef6(null);
16411
- const handlePlayPause = () => {
16412
- if (videoRef.current) {
16413
- if (isPlaying) {
16414
- videoRef.current.pause();
16415
- } else {
16416
- videoRef.current.play();
16417
- }
16418
- setIsPlaying(!isPlaying);
16419
- }
16420
- };
16421
- const handleFullScreen = () => {
16422
- if (videoRef.current) {
16423
- if (videoRef.current.requestFullscreen) {
16424
- videoRef.current.requestFullscreen();
16425
- } else if (videoRef.current.webkitRequestFullscreen) {
16426
- ;
16427
- videoRef.current.webkitRequestFullscreen();
16428
- } else if (videoRef.current.msRequestFullscreen) {
16429
- ;
16430
- videoRef.current.msRequestFullscreen();
16431
- }
16432
- }
16433
- };
16434
- 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: [
16435
- /* @__PURE__ */ jsx68(
16436
- "video",
16437
- {
16438
- ref: videoRef,
16439
- src,
16440
- className: "w-full rounded-lg",
16441
- onClick: handlePlayPause,
16442
- width: 300,
16443
- height: 300,
16444
- children: "Your browser does not support the video tag."
16445
- }
16446
- ),
16447
- /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16448
- /* @__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, {}) }) })
16449
- ] });
16450
- };
16451
-
16452
16431
  // src/widgets/common/render-files.tsx
16432
+ import { useEffect as useEffect11, useRef as useRef6, useState as useState10 } from "react";
16453
16433
  import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16454
- var ImageItem = ({
16455
- filename,
16456
- checksum,
16457
- index: index4,
16458
- src = null,
16459
- useGetImage,
16460
- size: size4,
16461
- id,
16462
- envFile,
16463
- accessToken
16464
- }) => {
16465
- const { data: image } = useGetImage({
16466
- data: { filename, checksum },
16467
- queryKey: [`get-image-${""}`],
16468
- src
16469
- });
16470
- return /* @__PURE__ */ jsx69("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ jsx69(
16471
- "img",
16472
- {
16473
- src: image || src,
16474
- alt: filename,
16475
- className: "w-32 h-32 object-cover rounded-md cursor-pointer"
16476
- }
16477
- ) : /* @__PURE__ */ jsxs44(
16478
- "div",
16479
- {
16480
- onClick: (e3) => {
16481
- e3?.stopPropagation();
16482
- downloadFile(
16483
- `${envFile}api/v2/web/content/${id}?download=true`,
16484
- filename,
16485
- accessToken
16486
- );
16487
- },
16488
- style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16489
- className: "flex items-center p-2 gap-2 overflow-hidden",
16490
- children: [
16491
- /* @__PURE__ */ jsx69(ImageIcon, {}),
16492
- /* @__PURE__ */ jsxs44("div", { children: [
16493
- /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16494
- size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16495
- ] })
16496
- ]
16497
- }
16498
- ) }, index4);
16499
- };
16500
16434
  var FileItem = (props) => {
16501
16435
  const {
16502
16436
  filename,
@@ -16506,54 +16440,100 @@ var FileItem = (props) => {
16506
16440
  src,
16507
16441
  mimetype,
16508
16442
  size: size4,
16509
- useGetImage,
16510
16443
  id,
16511
16444
  envFile,
16512
16445
  accessToken
16513
16446
  } = props;
16447
+ const [name2, ext] = filename.split(".");
16448
+ const shortName = name2.length > 12 ? name2.slice(0, 6) : name2;
16449
+ const [isOpen, setIsOpen] = useState10(false);
16450
+ const tooltipRef = useRef6(null);
16451
+ useEffect11(() => {
16452
+ const handleClickOutside = (event) => {
16453
+ if (tooltipRef.current && !tooltipRef.current.contains(event.target)) {
16454
+ setIsOpen(false);
16455
+ }
16456
+ };
16457
+ if (isOpen) {
16458
+ document.addEventListener("mousedown", handleClickOutside);
16459
+ } else {
16460
+ document.removeEventListener("mousedown", handleClickOutside);
16461
+ }
16462
+ return () => {
16463
+ document.removeEventListener("mousedown", handleClickOutside);
16464
+ };
16465
+ }, [isOpen]);
16514
16466
  const fileTypeIcon = {
16515
16467
  "application/pdf": /* @__PURE__ */ jsx69(PdfIcon, {}),
16516
16468
  "application/zip": /* @__PURE__ */ jsx69(ZipIcon, {}),
16517
16469
  "application/x-zip-compressed": /* @__PURE__ */ jsx69(ZipIcon, {}),
16518
16470
  "application/vnd.ms-excel": /* @__PURE__ */ jsx69(ExcelIcon, {}),
16519
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {})
16471
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {}),
16472
+ "image/png": /* @__PURE__ */ jsx69(ImageIcon, {}),
16473
+ "video/mp4": /* @__PURE__ */ jsx69(VideoIcon, {})
16520
16474
  };
16521
16475
  const renderFile = () => {
16522
- if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
16523
- return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
16524
- } else if (mimetype?.includes("video")) {
16525
- return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
16526
- } else {
16527
- return /* @__PURE__ */ jsxs44(
16528
- "div",
16529
- {
16530
- onClick: (e3) => {
16531
- if (accessToken) {
16532
- e3?.stopPropagation();
16533
- downloadFile(
16534
- `${envFile}api/v2/web/content/${id}?download=true`,
16535
- filename,
16536
- accessToken
16537
- );
16538
- }
16539
- },
16540
- style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16541
- className: "flex items-center p-2 gap-2 overflow-hidden",
16542
- children: [
16543
- fileTypeIcon[mimetype],
16544
- /* @__PURE__ */ jsxs44("div", { children: [
16545
- /* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
16546
- size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
16547
- ] })
16548
- ]
16549
- }
16550
- );
16551
- }
16476
+ return /* @__PURE__ */ jsxs44(
16477
+ "div",
16478
+ {
16479
+ onClick: (e3) => {
16480
+ if (accessToken) {
16481
+ e3?.stopPropagation();
16482
+ downloadFile(
16483
+ `${envFile}api/v2/web/content/${id}?download=true`,
16484
+ filename,
16485
+ accessToken
16486
+ );
16487
+ }
16488
+ },
16489
+ style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
16490
+ className: "flex items-center p-2 gap-2 overflow-hidden rounded-lg",
16491
+ children: [
16492
+ fileTypeIcon[mimetype],
16493
+ /* @__PURE__ */ jsxs44("div", { ref: tooltipRef, className: "relative w-fit", children: [
16494
+ /* @__PURE__ */ jsxs44(
16495
+ "p",
16496
+ {
16497
+ className: "text-[#060606] font-medium text-[14px] cursor-pointer",
16498
+ onClick: () => setIsOpen((prev2) => !prev2),
16499
+ "data-tooltip-id": `field-help-${id}`,
16500
+ "data-tooltip-content": filename,
16501
+ children: [
16502
+ shortName + "...",
16503
+ ".",
16504
+ ext
16505
+ ]
16506
+ }
16507
+ ),
16508
+ /* @__PURE__ */ jsx69(
16509
+ M,
16510
+ {
16511
+ id: `field-help-${id}`,
16512
+ isOpen,
16513
+ place: "top",
16514
+ positionStrategy: "fixed",
16515
+ style: {
16516
+ padding: "6px 12px",
16517
+ fontSize: "12px",
16518
+ borderRadius: "4px",
16519
+ maxWidth: "200%",
16520
+ whiteSpace: "wrap",
16521
+ fontWeight: 400,
16522
+ textTransform: "none",
16523
+ zIndex: 999
16524
+ }
16525
+ }
16526
+ ),
16527
+ size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px] font-semibold text-[#666666]", children: formatFileSize(size4) })
16528
+ ] })
16529
+ ]
16530
+ }
16531
+ );
16552
16532
  };
16553
16533
  return /* @__PURE__ */ jsxs44(
16554
16534
  "div",
16555
16535
  {
16556
- className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
16536
+ className: "flex relative items-center justify-between group rounded-md w-fit",
16557
16537
  children: [
16558
16538
  renderFile(),
16559
16539
  handleRemoveFile && /* @__PURE__ */ jsx69(
@@ -16618,7 +16598,6 @@ var downloadFile = async (url, filename, accessToken) => {
16618
16598
  var RenderFiles = ({
16619
16599
  selectedFiles,
16620
16600
  setSelectedFiles,
16621
- useGetImage,
16622
16601
  envFile,
16623
16602
  accessToken
16624
16603
  }) => {
@@ -16632,7 +16611,7 @@ var RenderFiles = ({
16632
16611
  e3.stopPropagation();
16633
16612
  downloadFile(url, name2);
16634
16613
  };
16635
- return /* @__PURE__ */ jsx69("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16614
+ return /* @__PURE__ */ jsx69("div", { className: "flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16636
16615
  return /* @__PURE__ */ jsx69("div", { className: "relative group/file", children: /* @__PURE__ */ jsx69(
16637
16616
  FileItem,
16638
16617
  {
@@ -16643,7 +16622,6 @@ var RenderFiles = ({
16643
16622
  index: index4,
16644
16623
  handleRemoveFile: setSelectedFiles && handleRemoveFile,
16645
16624
  handleFileDownload,
16646
- useGetImage,
16647
16625
  envFile,
16648
16626
  accessToken
16649
16627
  }
@@ -16850,7 +16828,8 @@ var ButtonSelectFiles = ({
16850
16828
  useUploadFile,
16851
16829
  env,
16852
16830
  service,
16853
- user
16831
+ user,
16832
+ isText
16854
16833
  }) => {
16855
16834
  const { t: t3 } = useI18n();
16856
16835
  const ALLOWED_TYPES = [
@@ -16861,8 +16840,7 @@ var ButtonSelectFiles = ({
16861
16840
  "application/zip",
16862
16841
  "application/x-zip-compressed",
16863
16842
  "application/vnd.ms-excel",
16864
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
16865
- "application/json"
16843
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
16866
16844
  ];
16867
16845
  const MAX_FILE_SIZE = 10 * 1024 * 1024;
16868
16846
  const MAX_TOTAL_SIZE = 50 * 1024 * 1024;
@@ -16951,7 +16929,7 @@ var ButtonSelectFiles = ({
16951
16929
  onClick: () => fileInputRef.current.click(),
16952
16930
  children: [
16953
16931
  /* @__PURE__ */ jsx70(AttachIcon, {}),
16954
- /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16932
+ isText && /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
16955
16933
  ]
16956
16934
  }
16957
16935
  ),
@@ -16963,14 +16941,61 @@ var ButtonSelectFiles = ({
16963
16941
  style: { display: "none" },
16964
16942
  onChange: handleOnChange,
16965
16943
  multiple: true,
16966
- accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
16944
+ accept: ".jpeg,.jpg,.png,.pdf,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
16967
16945
  }
16968
16946
  )
16969
16947
  ] });
16970
16948
  };
16971
16949
 
16950
+ // src/widgets/common/video-player.tsx
16951
+ import { useRef as useRef7, useState as useState11 } from "react";
16952
+ import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16953
+ var VideoPlayer = ({ src }) => {
16954
+ const [isPlaying, setIsPlaying] = useState11(false);
16955
+ const videoRef = useRef7(null);
16956
+ const handlePlayPause = () => {
16957
+ if (videoRef.current) {
16958
+ if (isPlaying) {
16959
+ videoRef.current.pause();
16960
+ } else {
16961
+ videoRef.current.play();
16962
+ }
16963
+ setIsPlaying(!isPlaying);
16964
+ }
16965
+ };
16966
+ const handleFullScreen = () => {
16967
+ if (videoRef.current) {
16968
+ if (videoRef.current.requestFullscreen) {
16969
+ videoRef.current.requestFullscreen();
16970
+ } else if (videoRef.current.webkitRequestFullscreen) {
16971
+ ;
16972
+ videoRef.current.webkitRequestFullscreen();
16973
+ } else if (videoRef.current.msRequestFullscreen) {
16974
+ ;
16975
+ videoRef.current.msRequestFullscreen();
16976
+ }
16977
+ }
16978
+ };
16979
+ return /* @__PURE__ */ jsxs46("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: [
16980
+ /* @__PURE__ */ jsx71(
16981
+ "video",
16982
+ {
16983
+ ref: videoRef,
16984
+ src,
16985
+ className: "w-full rounded-lg",
16986
+ onClick: handlePlayPause,
16987
+ width: 300,
16988
+ height: 300,
16989
+ children: "Your browser does not support the video tag."
16990
+ }
16991
+ ),
16992
+ /* @__PURE__ */ jsx71("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16993
+ /* @__PURE__ */ jsx71("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__ */ jsx71("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx71(PlayIcon, {}) }) })
16994
+ ] });
16995
+ };
16996
+
16972
16997
  // src/widgets/basic/avatar-field/avatar.tsx
16973
- import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16998
+ import { Fragment as Fragment15, jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16974
16999
  var AvatarField = (props) => {
16975
17000
  const {
16976
17001
  isForm = false,
@@ -16994,8 +17019,8 @@ var AvatarField = (props) => {
16994
17019
  color: textColor,
16995
17020
  fontSize: `${size4 / 2.5}px`
16996
17021
  };
16997
- return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16998
- isForm && allowShowDetail && /* @__PURE__ */ jsx71(
17022
+ return /* @__PURE__ */ jsxs47(Fragment15, { children: [
17023
+ isForm && allowShowDetail && /* @__PURE__ */ jsx72(
16999
17024
  ModalDetail,
17000
17025
  {
17001
17026
  idToolTip: `avatar-widget-id-${id}`,
@@ -17006,7 +17031,7 @@ var AvatarField = (props) => {
17006
17031
  place: "top-start"
17007
17032
  }
17008
17033
  ),
17009
- allowShowDetail && /* @__PURE__ */ jsx71(
17034
+ allowShowDetail && /* @__PURE__ */ jsx72(
17010
17035
  M,
17011
17036
  {
17012
17037
  id: `avatar-widget-id-${id}`,
@@ -17015,7 +17040,7 @@ var AvatarField = (props) => {
17015
17040
  className: "z-20"
17016
17041
  }
17017
17042
  ),
17018
- avatarSrc ? /* @__PURE__ */ jsx71(
17043
+ avatarSrc ? /* @__PURE__ */ jsx72(
17019
17044
  "img",
17020
17045
  {
17021
17046
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -17023,7 +17048,7 @@ var AvatarField = (props) => {
17023
17048
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
17024
17049
  alt: "Avatar"
17025
17050
  }
17026
- ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
17051
+ ) : /* @__PURE__ */ jsx72("div", { children: /* @__PURE__ */ jsx72(
17027
17052
  "div",
17028
17053
  {
17029
17054
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -17036,7 +17061,7 @@ var AvatarField = (props) => {
17036
17061
  };
17037
17062
 
17038
17063
  // src/widgets/basic/binary-field/binary.tsx
17039
- import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
17064
+ import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
17040
17065
  var BinaryField = (props) => {
17041
17066
  const {
17042
17067
  name: name2,
@@ -17059,7 +17084,7 @@ var BinaryField = (props) => {
17059
17084
  image
17060
17085
  } = props;
17061
17086
  const { t: t3 } = useI18n();
17062
- return /* @__PURE__ */ jsx72(
17087
+ return /* @__PURE__ */ jsx73(
17063
17088
  Controller,
17064
17089
  {
17065
17090
  name: name2 ?? "",
@@ -17069,13 +17094,13 @@ var BinaryField = (props) => {
17069
17094
  },
17070
17095
  render: ({ field }) => {
17071
17096
  const renderImage = initialImage || selectedImage;
17072
- return /* @__PURE__ */ jsx72(
17097
+ return /* @__PURE__ */ jsx73(
17073
17098
  "div",
17074
17099
  {
17075
17100
  ref: binaryRef,
17076
17101
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
17077
- children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
17078
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
17102
+ children: renderImage ? /* @__PURE__ */ jsxs48("div", { className: "relative group", children: [
17103
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx73(
17079
17104
  "img",
17080
17105
  {
17081
17106
  style: {
@@ -17086,7 +17111,7 @@ var BinaryField = (props) => {
17086
17111
  alt: "Selected",
17087
17112
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
17088
17113
  }
17089
- ) : renderImage ? /* @__PURE__ */ jsx72(
17114
+ ) : renderImage ? /* @__PURE__ */ jsx73(
17090
17115
  "img",
17091
17116
  {
17092
17117
  style: {
@@ -17097,17 +17122,17 @@ var BinaryField = (props) => {
17097
17122
  alt: "Selected",
17098
17123
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
17099
17124
  }
17100
- ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
17101
- !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
17125
+ ) : /* @__PURE__ */ jsx73(PlaceHolderIcon, {}),
17126
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx73(
17102
17127
  "button",
17103
17128
  {
17104
17129
  type: "button",
17105
17130
  onClick: () => handleRemoveImage(field.onChange),
17106
17131
  className: "hidden group-hover:block absolute right-0 bottom-0 mr-1 mb-1 rounded-full bg-white p-1 transition-colors duration-300 hover:bg-red-600",
17107
- children: /* @__PURE__ */ jsx72(DeleteIcon, {})
17132
+ children: /* @__PURE__ */ jsx73(DeleteIcon, {})
17108
17133
  }
17109
17134
  )
17110
- ] }) : /* @__PURE__ */ jsxs47(
17135
+ ] }) : /* @__PURE__ */ jsxs48(
17111
17136
  "label",
17112
17137
  {
17113
17138
  htmlFor: inputId,
@@ -17117,7 +17142,7 @@ var BinaryField = (props) => {
17117
17142
  },
17118
17143
  className: `relative p-2 flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border border-gray-300 hover:border-gray-500 bg-white transition-colors duration-300 ${readonly && "pointer-events-none"}`,
17119
17144
  children: [
17120
- /* @__PURE__ */ jsx72(
17145
+ /* @__PURE__ */ jsx73(
17121
17146
  "input",
17122
17147
  {
17123
17148
  id: inputId,
@@ -17129,8 +17154,8 @@ var BinaryField = (props) => {
17129
17154
  className: "hidden z-10 relative"
17130
17155
  }
17131
17156
  ),
17132
- /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
17133
- /* @__PURE__ */ jsx72(
17157
+ /* @__PURE__ */ jsx73("img", { src: image, alt: "", className: "z-0 relative" }),
17158
+ /* @__PURE__ */ jsx73(
17134
17159
  "div",
17135
17160
  {
17136
17161
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -17139,7 +17164,7 @@ var BinaryField = (props) => {
17139
17164
  left: "-8px",
17140
17165
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
17141
17166
  },
17142
- children: /* @__PURE__ */ jsx72(
17167
+ children: /* @__PURE__ */ jsx73(
17143
17168
  "svg",
17144
17169
  {
17145
17170
  xmlns: "http://www.w3.org/2000/svg",
@@ -17147,7 +17172,7 @@ var BinaryField = (props) => {
17147
17172
  height: "14",
17148
17173
  viewBox: "0 0 14 14",
17149
17174
  fill: "none",
17150
- children: /* @__PURE__ */ jsx72(
17175
+ children: /* @__PURE__ */ jsx73(
17151
17176
  "path",
17152
17177
  {
17153
17178
  "fill-rule": "evenodd",
@@ -17171,7 +17196,7 @@ var BinaryField = (props) => {
17171
17196
  };
17172
17197
 
17173
17198
  // src/widgets/basic/button-badge-field/button-badge.tsx
17174
- import { jsx as jsx73 } from "react/jsx-runtime";
17199
+ import { jsx as jsx74 } from "react/jsx-runtime";
17175
17200
  var typeStyles = {
17176
17201
  primary: {
17177
17202
  backgroundColor: "#3b82f6",
@@ -17246,11 +17271,11 @@ var ButtonBadgeField = (props) => {
17246
17271
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
17247
17272
  };
17248
17273
  const label = getLabel(defaultValue ?? value);
17249
- return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17274
+ return label ? /* @__PURE__ */ jsx74("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17250
17275
  };
17251
17276
 
17252
17277
  // src/widgets/basic/button-field/button.tsx
17253
- import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
17278
+ import { Fragment as Fragment16, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
17254
17279
  var ButtonField = (props) => {
17255
17280
  const {
17256
17281
  func,
@@ -17261,7 +17286,7 @@ var ButtonField = (props) => {
17261
17286
  type = "submit"
17262
17287
  } = props;
17263
17288
  const { t: t3 } = useI18n();
17264
- return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
17289
+ return /* @__PURE__ */ jsx75(Fragment16, { children: !loading ? /* @__PURE__ */ jsx75(
17265
17290
  "button",
17266
17291
  {
17267
17292
  type,
@@ -17270,7 +17295,7 @@ var ButtonField = (props) => {
17270
17295
  onClick: func,
17271
17296
  children: t3(content)
17272
17297
  }
17273
- ) : /* @__PURE__ */ jsxs48(
17298
+ ) : /* @__PURE__ */ jsxs49(
17274
17299
  "button",
17275
17300
  {
17276
17301
  type,
@@ -17279,15 +17304,15 @@ var ButtonField = (props) => {
17279
17304
  children: [
17280
17305
  t3("loading"),
17281
17306
  " ",
17282
- /* @__PURE__ */ jsx74(LoadingIcon, {})
17307
+ /* @__PURE__ */ jsx75(LoadingIcon, {})
17283
17308
  ]
17284
17309
  }
17285
17310
  ) });
17286
17311
  };
17287
17312
 
17288
17313
  // src/widgets/basic/char-field/char.tsx
17289
- import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
17290
- import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
17314
+ import { useEffect as useEffect12, useMemo as useMemo4 } from "react";
17315
+ import { Fragment as Fragment17, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
17291
17316
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
17292
17317
  var CharField = (props) => {
17293
17318
  const {
@@ -17315,9 +17340,9 @@ var CharField = (props) => {
17315
17340
  } = props;
17316
17341
  if (!isForm && !isEditTable) {
17317
17342
  const propValue = value || defaultValue;
17318
- return /* @__PURE__ */ jsx75("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17343
+ return /* @__PURE__ */ jsx76("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17319
17344
  }
17320
- return /* @__PURE__ */ jsx75(
17345
+ return /* @__PURE__ */ jsx76(
17321
17346
  Controller,
17322
17347
  {
17323
17348
  name: name2 ?? "",
@@ -17345,12 +17370,12 @@ var CharField = (props) => {
17345
17370
  fieldState: { error: error2, isDirty }
17346
17371
  }) => {
17347
17372
  const { setError, clearErrors } = methods;
17348
- useEffect11(() => {
17373
+ useEffect12(() => {
17349
17374
  if (value2) {
17350
17375
  clearErrors(name2);
17351
17376
  }
17352
17377
  }, [value2, clearErrors, name2]);
17353
- useEffect11(() => {
17378
+ useEffect12(() => {
17354
17379
  if (widget !== WIDGET_AUTO_COMPUTE_DEPEND) return;
17355
17380
  const depValue = formValues?.[options2?.depend_field]?.[options2?.field_name];
17356
17381
  const currentValue = methods?.getValues(name2);
@@ -17371,8 +17396,8 @@ var CharField = (props) => {
17371
17396
  }
17372
17397
  return "";
17373
17398
  }, [widget, formValues]);
17374
- return /* @__PURE__ */ jsxs49(Fragment17, { children: [
17375
- /* @__PURE__ */ jsx75(
17399
+ return /* @__PURE__ */ jsxs50(Fragment17, { children: [
17400
+ /* @__PURE__ */ jsx76(
17376
17401
  "input",
17377
17402
  {
17378
17403
  value: displayValue ?? "",
@@ -17433,7 +17458,7 @@ var CharField = (props) => {
17433
17458
  `
17434
17459
  }
17435
17460
  ),
17436
- isEditTable ? /* @__PURE__ */ jsx75(Fragment17, {}) : /* @__PURE__ */ jsx75(Fragment17, { children: error2 && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17461
+ isEditTable ? /* @__PURE__ */ jsx76(Fragment17, {}) : /* @__PURE__ */ jsx76(Fragment17, { children: error2 && /* @__PURE__ */ jsx76("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17437
17462
  ] });
17438
17463
  }
17439
17464
  }
@@ -17441,7 +17466,7 @@ var CharField = (props) => {
17441
17466
  };
17442
17467
 
17443
17468
  // src/widgets/basic/checkbox-field/checkbox.tsx
17444
- import { jsx as jsx76 } from "react/jsx-runtime";
17469
+ import { jsx as jsx77 } from "react/jsx-runtime";
17445
17470
  var CheckboxField = (props) => {
17446
17471
  const {
17447
17472
  name: name2,
@@ -17456,9 +17481,9 @@ var CheckboxField = (props) => {
17456
17481
  } = props;
17457
17482
  if (!isForm) {
17458
17483
  if (name2 === "is_active" || name2 === "active") {
17459
- return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
17484
+ return /* @__PURE__ */ jsx77(ActiveBadgeField, { type: value });
17460
17485
  } else {
17461
- return /* @__PURE__ */ jsx76(
17486
+ return /* @__PURE__ */ jsx77(
17462
17487
  "input",
17463
17488
  {
17464
17489
  type: "checkbox",
@@ -17469,12 +17494,12 @@ var CheckboxField = (props) => {
17469
17494
  );
17470
17495
  }
17471
17496
  }
17472
- return /* @__PURE__ */ jsx76(
17497
+ return /* @__PURE__ */ jsx77(
17473
17498
  Controller,
17474
17499
  {
17475
17500
  name: name2 ?? "",
17476
17501
  control: methods?.control,
17477
- render: ({ field }) => /* @__PURE__ */ jsx76(
17502
+ render: ({ field }) => /* @__PURE__ */ jsx77(
17478
17503
  "div",
17479
17504
  {
17480
17505
  className: "flex items-center gap-2",
@@ -17487,7 +17512,7 @@ var CheckboxField = (props) => {
17487
17512
  onChange2(name2 ?? "", checked);
17488
17513
  }
17489
17514
  },
17490
- children: /* @__PURE__ */ jsx76(
17515
+ children: /* @__PURE__ */ jsx77(
17491
17516
  "input",
17492
17517
  {
17493
17518
  ...field,
@@ -17514,24 +17539,24 @@ var CheckboxField = (props) => {
17514
17539
  };
17515
17540
 
17516
17541
  // src/widgets/basic/color-field/color-wrapper.tsx
17517
- import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
17518
- import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
17542
+ import { useEffect as useEffect13, useRef as useRef8, useState as useState12 } from "react";
17543
+ import { Fragment as Fragment18, jsx as jsx78, jsxs as jsxs51 } from "react/jsx-runtime";
17519
17544
  var ColorWrapper = (props) => {
17520
17545
  const {
17521
17546
  colors: colors2,
17522
17547
  defaultColor,
17523
17548
  savePickColor
17524
17549
  } = props;
17525
- const [selectedColor, setSelectedColor] = useState11(colors2[defaultColor]);
17526
- const [showFullColors, setIsShowFullColor] = useState11(false);
17527
- const pickColorsRef = useRef7(null);
17528
- useEffect12(() => {
17550
+ const [selectedColor, setSelectedColor] = useState12(colors2[defaultColor]);
17551
+ const [showFullColors, setIsShowFullColor] = useState12(false);
17552
+ const pickColorsRef = useRef8(null);
17553
+ useEffect13(() => {
17529
17554
  setSelectedColor(colors2[defaultColor]);
17530
17555
  }, [defaultColor]);
17531
17556
  const handleShowFullColors = () => {
17532
17557
  setIsShowFullColor(!showFullColors);
17533
17558
  };
17534
- useEffect12(() => {
17559
+ useEffect13(() => {
17535
17560
  const handleClickOutside = (event) => {
17536
17561
  if (pickColorsRef.current && !pickColorsRef.current.contains(event.target)) {
17537
17562
  setIsShowFullColor(false);
@@ -17542,8 +17567,8 @@ var ColorWrapper = (props) => {
17542
17567
  document.removeEventListener("mousedown", handleClickOutside);
17543
17568
  };
17544
17569
  }, []);
17545
- return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17546
- /* @__PURE__ */ jsx77(
17570
+ return /* @__PURE__ */ jsx78("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx78("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs51("div", { children: [
17571
+ /* @__PURE__ */ jsx78(
17547
17572
  "button",
17548
17573
  {
17549
17574
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17557,7 +17582,7 @@ var ColorWrapper = (props) => {
17557
17582
  }
17558
17583
  }
17559
17584
  ),
17560
- /* @__PURE__ */ jsx77(
17585
+ /* @__PURE__ */ jsx78(
17561
17586
  M,
17562
17587
  {
17563
17588
  className: "",
@@ -17566,8 +17591,8 @@ var ColorWrapper = (props) => {
17566
17591
  content: i18n_default.t(color?.name)
17567
17592
  }
17568
17593
  )
17569
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17570
- /* @__PURE__ */ jsx77(
17594
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs51(Fragment18, { children: [
17595
+ /* @__PURE__ */ jsx78(
17571
17596
  "button",
17572
17597
  {
17573
17598
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17580,7 +17605,7 @@ var ColorWrapper = (props) => {
17580
17605
  style: { backgroundColor: selectedColor?.color }
17581
17606
  }
17582
17607
  ),
17583
- /* @__PURE__ */ jsx77(
17608
+ /* @__PURE__ */ jsx78(
17584
17609
  M,
17585
17610
  {
17586
17611
  place: "top",
@@ -17592,13 +17617,13 @@ var ColorWrapper = (props) => {
17592
17617
  };
17593
17618
 
17594
17619
  // src/widgets/basic/color-field/color.tsx
17595
- import { jsx as jsx78 } from "react/jsx-runtime";
17620
+ import { jsx as jsx79 } from "react/jsx-runtime";
17596
17621
  var ColorField = (props) => {
17597
17622
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17598
17623
  if (!isForm) {
17599
- return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17624
+ return /* @__PURE__ */ jsx79(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17600
17625
  }
17601
- return /* @__PURE__ */ jsx78(
17626
+ return /* @__PURE__ */ jsx79(
17602
17627
  Controller,
17603
17628
  {
17604
17629
  name: name2 ?? "",
@@ -17608,7 +17633,7 @@ var ColorField = (props) => {
17608
17633
  field.onChange(color?.id);
17609
17634
  onChange2 && onChange2(name2 ?? "", color?.id);
17610
17635
  };
17611
- return /* @__PURE__ */ jsx78(
17636
+ return /* @__PURE__ */ jsx79(
17612
17637
  ColorWrapper,
17613
17638
  {
17614
17639
  savePickColor: handlePickColorChange,
@@ -17622,8 +17647,8 @@ var ColorField = (props) => {
17622
17647
  };
17623
17648
 
17624
17649
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17625
- import { useEffect as useEffect13 } from "react";
17626
- import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
17650
+ import { useEffect as useEffect14 } from "react";
17651
+ import { jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
17627
17652
  var CopyLinkButtonField = (props) => {
17628
17653
  const {
17629
17654
  isForm,
@@ -17642,9 +17667,9 @@ var CopyLinkButtonField = (props) => {
17642
17667
  } = props;
17643
17668
  const { t: t3 } = useI18n();
17644
17669
  if (!isForm) {
17645
- return /* @__PURE__ */ jsx79("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17670
+ return /* @__PURE__ */ jsx80("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17646
17671
  }
17647
- return /* @__PURE__ */ jsx79(
17672
+ return /* @__PURE__ */ jsx80(
17648
17673
  Controller,
17649
17674
  {
17650
17675
  name: name2 ?? "",
@@ -17657,13 +17682,13 @@ var CopyLinkButtonField = (props) => {
17657
17682
  fieldState: { error: error2 }
17658
17683
  }) => {
17659
17684
  const { setError, clearErrors } = methods;
17660
- useEffect13(() => {
17685
+ useEffect14(() => {
17661
17686
  if (value) {
17662
17687
  clearErrors(name2);
17663
17688
  }
17664
17689
  }, [value]);
17665
- return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17666
- /* @__PURE__ */ jsxs51(
17690
+ return /* @__PURE__ */ jsxs52("div", { className: "relative", children: [
17691
+ /* @__PURE__ */ jsxs52(
17667
17692
  "div",
17668
17693
  {
17669
17694
  "aria-disabled": readonly,
@@ -17672,7 +17697,7 @@ var CopyLinkButtonField = (props) => {
17672
17697
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17673
17698
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17674
17699
  children: [
17675
- /* @__PURE__ */ jsx79(
17700
+ /* @__PURE__ */ jsx80(
17676
17701
  "input",
17677
17702
  {
17678
17703
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17713,19 +17738,19 @@ var CopyLinkButtonField = (props) => {
17713
17738
  `
17714
17739
  }
17715
17740
  ),
17716
- readonly && value && /* @__PURE__ */ jsx79(
17741
+ readonly && value && /* @__PURE__ */ jsx80(
17717
17742
  "button",
17718
17743
  {
17719
17744
  className: "cursor-pointer",
17720
17745
  type: "button",
17721
17746
  onClick: () => handleCopyToClipboard(propValue),
17722
- children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17747
+ children: isCopied ? /* @__PURE__ */ jsx80(CheckIcon, {}) : /* @__PURE__ */ jsx80(CopyIcon, {})
17723
17748
  }
17724
17749
  )
17725
17750
  ]
17726
17751
  }
17727
17752
  ),
17728
- error2 && /* @__PURE__ */ jsx79("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17753
+ error2 && /* @__PURE__ */ jsx80("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17729
17754
  ] });
17730
17755
  }
17731
17756
  }
@@ -17733,10 +17758,10 @@ var CopyLinkButtonField = (props) => {
17733
17758
  };
17734
17759
 
17735
17760
  // src/widgets/basic/date-field/date.tsx
17736
- import { forwardRef as forwardRef6, useEffect as useEffect17 } from "react";
17761
+ import { forwardRef as forwardRef6, useEffect as useEffect18 } from "react";
17737
17762
 
17738
17763
  // node_modules/react-datepicker/dist/index.es.js
17739
- import React9, { useRef as useRef11, useCallback as useCallback5, useEffect as useEffect15, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
17764
+ import React9, { useRef as useRef12, useCallback as useCallback5, useEffect as useEffect16, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
17740
17765
 
17741
17766
  // node_modules/date-fns/constants.js
17742
17767
  var daysInYear = 365.2425;
@@ -21666,7 +21691,7 @@ function useEffectEvent(callback) {
21666
21691
  }
21667
21692
 
21668
21693
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21669
- import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
21694
+ import { jsx as jsx81, jsxs as jsxs53, Fragment as Fragment19 } from "react/jsx-runtime";
21670
21695
  import * as ReactDOM2 from "react-dom";
21671
21696
 
21672
21697
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -22064,7 +22089,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
22064
22089
  bottom: isCustomShape ? "" : "rotate(180deg)",
22065
22090
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
22066
22091
  }[side];
22067
- return /* @__PURE__ */ jsxs52("svg", {
22092
+ return /* @__PURE__ */ jsxs53("svg", {
22068
22093
  ...rest,
22069
22094
  "aria-hidden": true,
22070
22095
  ref,
@@ -22080,18 +22105,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
22080
22105
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
22081
22106
  ...restStyle
22082
22107
  },
22083
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
22108
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx81("path", {
22084
22109
  clipPath: "url(#" + clipPathId + ")",
22085
22110
  fill: "none",
22086
22111
  stroke,
22087
22112
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
22088
22113
  d: dValue
22089
- }), /* @__PURE__ */ jsx80("path", {
22114
+ }), /* @__PURE__ */ jsx81("path", {
22090
22115
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
22091
22116
  d: dValue
22092
- }), /* @__PURE__ */ jsx80("clipPath", {
22117
+ }), /* @__PURE__ */ jsx81("clipPath", {
22093
22118
  id: clipPathId,
22094
- children: /* @__PURE__ */ jsx80("rect", {
22119
+ children: /* @__PURE__ */ jsx81("rect", {
22095
22120
  x: -halfStrokeWidth,
22096
22121
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
22097
22122
  width: width + computedStrokeWidth,
@@ -22306,8 +22331,8 @@ var CalendarContainer = function(_a2) {
22306
22331
  return React9.createElement("div", { className, role: "dialog", "aria-label": ariaLabel, "aria-modal": "true" }, children);
22307
22332
  };
22308
22333
  var useDetectClickOutside = function(onClickOutside, ignoreClass) {
22309
- var ref = useRef11(null);
22310
- var onClickOutsideRef = useRef11(onClickOutside);
22334
+ var ref = useRef12(null);
22335
+ var onClickOutsideRef = useRef12(onClickOutside);
22311
22336
  onClickOutsideRef.current = onClickOutside;
22312
22337
  var handleClickOutside = useCallback5(function(event) {
22313
22338
  var _a2;
@@ -22320,7 +22345,7 @@ var useDetectClickOutside = function(onClickOutside, ignoreClass) {
22320
22345
  }
22321
22346
  }
22322
22347
  }, [ignoreClass]);
22323
- useEffect15(function() {
22348
+ useEffect16(function() {
22324
22349
  document.addEventListener("mousedown", handleClickOutside);
22325
22350
  return function() {
22326
22351
  document.removeEventListener("mousedown", handleClickOutside);
@@ -25561,7 +25586,7 @@ function withFloating(Component3) {
25561
25586
  var WithFloating = function(props) {
25562
25587
  var _a2;
25563
25588
  var hidePopper = typeof props.hidePopper === "boolean" ? props.hidePopper : true;
25564
- var arrowRef = useRef11(null);
25589
+ var arrowRef = useRef12(null);
25565
25590
  var floatingProps = useFloating2(_assign({ open: !hidePopper, whileElementsMounted: autoUpdate, placement: props.popperPlacement, middleware: __spreadArray([
25566
25591
  flip3({ padding: 15 }),
25567
25592
  offset3(10),
@@ -26573,13 +26598,13 @@ function _objectWithoutProperties(e3, t3) {
26573
26598
  }
26574
26599
 
26575
26600
  // node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
26576
- import { useState as useState14, useCallback as useCallback6 } from "react";
26601
+ import { useState as useState15, useCallback as useCallback6 } from "react";
26577
26602
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
26578
26603
  function useStateManager(_ref3) {
26579
26604
  var _ref$defaultInputValu = _ref3.defaultInputValue, defaultInputValue = _ref$defaultInputValu === void 0 ? "" : _ref$defaultInputValu, _ref$defaultMenuIsOpe = _ref3.defaultMenuIsOpen, defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, _ref$defaultValue = _ref3.defaultValue, defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, propsInputValue = _ref3.inputValue, propsMenuIsOpen = _ref3.menuIsOpen, propsOnChange = _ref3.onChange, propsOnInputChange = _ref3.onInputChange, propsOnMenuClose = _ref3.onMenuClose, propsOnMenuOpen = _ref3.onMenuOpen, propsValue = _ref3.value, restSelectProps = _objectWithoutProperties(_ref3, _excluded);
26580
- var _useState = useState14(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
26581
- var _useState3 = useState14(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
26582
- var _useState5 = useState14(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
26605
+ var _useState = useState15(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
26606
+ var _useState3 = useState15(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
26607
+ var _useState5 = useState15(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
26583
26608
  var onChange2 = useCallback6(function(value2, actionMeta) {
26584
26609
  if (typeof propsOnChange === "function") {
26585
26610
  propsOnChange(value2, actionMeta);
@@ -26740,7 +26765,7 @@ function _toConsumableArray(r4) {
26740
26765
 
26741
26766
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
26742
26767
  import * as React13 from "react";
26743
- import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect16, Component as Component2 } from "react";
26768
+ import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef15, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
26744
26769
 
26745
26770
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
26746
26771
  import * as React11 from "react";
@@ -28024,7 +28049,7 @@ var Emotion$1 = Emotion;
28024
28049
  import * as React12 from "react";
28025
28050
  var import_extends2 = __toESM(require_extends());
28026
28051
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
28027
- var jsx81 = function jsx82(type, props) {
28052
+ var jsx82 = function jsx83(type, props) {
28028
28053
  var args = arguments;
28029
28054
  if (props == null || !hasOwn.call(props, "css")) {
28030
28055
  return React12.createElement.apply(void 0, args);
@@ -28042,7 +28067,7 @@ var jsx81 = function jsx82(type, props) {
28042
28067
  var JSX;
28043
28068
  /* @__PURE__ */ (function(_JSX) {
28044
28069
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
28045
- })(jsx81 || (jsx81 = {}));
28070
+ })(jsx82 || (jsx82 = {}));
28046
28071
  function css() {
28047
28072
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
28048
28073
  args[_key] = arguments[_key];
@@ -28072,8 +28097,8 @@ function _taggedTemplateLiteral(e3, t3) {
28072
28097
  }
28073
28098
 
28074
28099
  // node_modules/react-select/dist/index-641ee5b8.esm.js
28075
- import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
28076
- import { createPortal as createPortal5 } from "react-dom";
28100
+ import { useContext as useContext9, useRef as useRef14, useState as useState16, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
28101
+ import { createPortal as createPortal4 } from "react-dom";
28077
28102
 
28078
28103
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
28079
28104
  import { useLayoutEffect as useLayoutEffect4 } from "react";
@@ -28418,9 +28443,9 @@ var PortalPlacementContext = /* @__PURE__ */ createContext5(null);
28418
28443
  var MenuPlacer = function MenuPlacer2(props) {
28419
28444
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
28420
28445
  var _ref3 = useContext9(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
28421
- var ref = useRef13(null);
28422
- var _useState = useState15(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
28423
- var _useState3 = useState15(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
28446
+ var ref = useRef14(null);
28447
+ var _useState = useState16(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
28448
+ var _useState3 = useState16(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
28424
28449
  var controlHeight2 = theme.spacing.controlHeight;
28425
28450
  index3(function() {
28426
28451
  var menuEl = ref.current;
@@ -28450,7 +28475,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28450
28475
  };
28451
28476
  var Menu = function Menu2(props) {
28452
28477
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28453
- return jsx81("div", _extends({}, getStyleProps(props, "menu", {
28478
+ return jsx82("div", _extends({}, getStyleProps(props, "menu", {
28454
28479
  menu: true
28455
28480
  }), {
28456
28481
  ref: innerRef
@@ -28472,7 +28497,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28472
28497
  };
28473
28498
  var MenuList = function MenuList2(props) {
28474
28499
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28475
- return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
28500
+ return jsx82("div", _extends({}, getStyleProps(props, "menuList", {
28476
28501
  "menu-list": true,
28477
28502
  "menu-list--is-multi": isMulti
28478
28503
  }), {
@@ -28492,7 +28517,7 @@ var noOptionsMessageCSS = noticeCSS;
28492
28517
  var loadingMessageCSS = noticeCSS;
28493
28518
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28494
28519
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28495
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28520
+ return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28496
28521
  children,
28497
28522
  innerProps
28498
28523
  }), "noOptionsMessage", {
@@ -28502,7 +28527,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28502
28527
  };
28503
28528
  var LoadingMessage = function LoadingMessage2(_ref7) {
28504
28529
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28505
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28530
+ return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28506
28531
  children,
28507
28532
  innerProps
28508
28533
  }), "loadingMessage", {
@@ -28522,15 +28547,15 @@ var menuPortalCSS = function menuPortalCSS2(_ref8) {
28522
28547
  };
28523
28548
  var MenuPortal = function MenuPortal2(props) {
28524
28549
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
28525
- var menuPortalRef = useRef13(null);
28526
- var cleanupRef = useRef13(null);
28527
- var _useState5 = useState15(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
28550
+ var menuPortalRef = useRef14(null);
28551
+ var cleanupRef = useRef14(null);
28552
+ var _useState5 = useState16(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
28528
28553
  var portalPlacementContext = useMemo7(function() {
28529
28554
  return {
28530
28555
  setPortalPlacement
28531
28556
  };
28532
28557
  }, []);
28533
- var _useState7 = useState15(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
28558
+ var _useState7 = useState16(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
28534
28559
  var updateComputedPosition = useCallback7(function() {
28535
28560
  if (!controlElement) return;
28536
28561
  var rect = getBoundingClientObj(controlElement);
@@ -28565,7 +28590,7 @@ var MenuPortal = function MenuPortal2(props) {
28565
28590
  runAutoUpdate();
28566
28591
  }, [runAutoUpdate]);
28567
28592
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28568
- var menuWrapper = jsx81("div", _extends({
28593
+ var menuWrapper = jsx82("div", _extends({
28569
28594
  ref: setMenuPortalElement
28570
28595
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28571
28596
  offset: computedPosition.offset,
@@ -28574,9 +28599,9 @@ var MenuPortal = function MenuPortal2(props) {
28574
28599
  }), "menuPortal", {
28575
28600
  "menu-portal": true
28576
28601
  }), innerProps), children);
28577
- return jsx81(PortalPlacementContext.Provider, {
28602
+ return jsx82(PortalPlacementContext.Provider, {
28578
28603
  value: portalPlacementContext
28579
- }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
28604
+ }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28580
28605
  };
28581
28606
  var containerCSS = function containerCSS2(_ref3) {
28582
28607
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -28590,7 +28615,7 @@ var containerCSS = function containerCSS2(_ref3) {
28590
28615
  };
28591
28616
  var SelectContainer = function SelectContainer2(props) {
28592
28617
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28593
- return jsx81("div", _extends({}, getStyleProps(props, "container", {
28618
+ return jsx82("div", _extends({}, getStyleProps(props, "container", {
28594
28619
  "--is-disabled": isDisabled,
28595
28620
  "--is-rtl": isRtl
28596
28621
  }), innerProps), children);
@@ -28611,7 +28636,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28611
28636
  };
28612
28637
  var ValueContainer = function ValueContainer2(props) {
28613
28638
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28614
- return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28639
+ return jsx82("div", _extends({}, getStyleProps(props, "valueContainer", {
28615
28640
  "value-container": true,
28616
28641
  "value-container--is-multi": isMulti,
28617
28642
  "value-container--has-value": hasValue
@@ -28627,7 +28652,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28627
28652
  };
28628
28653
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28629
28654
  var children = props.children, innerProps = props.innerProps;
28630
- return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28655
+ return jsx82("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28631
28656
  indicators: true
28632
28657
  }), innerProps), children);
28633
28658
  };
@@ -28648,7 +28673,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28648
28673
  };
28649
28674
  var Svg = function Svg2(_ref3) {
28650
28675
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28651
- return jsx81("svg", _extends({
28676
+ return jsx82("svg", _extends({
28652
28677
  height: size4,
28653
28678
  width: size4,
28654
28679
  viewBox: "0 0 20 20",
@@ -28658,16 +28683,16 @@ var Svg = function Svg2(_ref3) {
28658
28683
  }, props));
28659
28684
  };
28660
28685
  var CrossIcon = function CrossIcon2(props) {
28661
- return jsx81(Svg, _extends({
28686
+ return jsx82(Svg, _extends({
28662
28687
  size: 20
28663
- }, props), jsx81("path", {
28688
+ }, props), jsx82("path", {
28664
28689
  d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
28665
28690
  }));
28666
28691
  };
28667
28692
  var DownChevron = function DownChevron2(props) {
28668
- return jsx81(Svg, _extends({
28693
+ return jsx82(Svg, _extends({
28669
28694
  size: 20
28670
- }, props), jsx81("path", {
28695
+ }, props), jsx82("path", {
28671
28696
  d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
28672
28697
  }));
28673
28698
  };
@@ -28688,18 +28713,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28688
28713
  var dropdownIndicatorCSS = baseCSS;
28689
28714
  var DropdownIndicator = function DropdownIndicator2(props) {
28690
28715
  var children = props.children, innerProps = props.innerProps;
28691
- return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28716
+ return jsx82("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28692
28717
  indicator: true,
28693
28718
  "dropdown-indicator": true
28694
- }), innerProps), children || jsx81(DownChevron, null));
28719
+ }), innerProps), children || jsx82(DownChevron, null));
28695
28720
  };
28696
28721
  var clearIndicatorCSS = baseCSS;
28697
28722
  var ClearIndicator = function ClearIndicator2(props) {
28698
28723
  var children = props.children, innerProps = props.innerProps;
28699
- return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28724
+ return jsx82("div", _extends({}, getStyleProps(props, "clearIndicator", {
28700
28725
  indicator: true,
28701
28726
  "clear-indicator": true
28702
- }), innerProps), children || jsx81(CrossIcon, null));
28727
+ }), innerProps), children || jsx82(CrossIcon, null));
28703
28728
  };
28704
28729
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28705
28730
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28715,7 +28740,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28715
28740
  };
28716
28741
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28717
28742
  var innerProps = props.innerProps;
28718
- return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28743
+ return jsx82("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28719
28744
  "indicator-separator": true
28720
28745
  })));
28721
28746
  };
@@ -28739,7 +28764,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28739
28764
  };
28740
28765
  var LoadingDot = function LoadingDot2(_ref6) {
28741
28766
  var delay = _ref6.delay, offset4 = _ref6.offset;
28742
- return jsx81("span", {
28767
+ return jsx82("span", {
28743
28768
  css: /* @__PURE__ */ css({
28744
28769
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28745
28770
  backgroundColor: "currentColor",
@@ -28754,20 +28779,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28754
28779
  };
28755
28780
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28756
28781
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28757
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28782
+ return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28758
28783
  innerProps,
28759
28784
  isRtl,
28760
28785
  size: size4
28761
28786
  }), "loadingIndicator", {
28762
28787
  indicator: true,
28763
28788
  "loading-indicator": true
28764
- }), innerProps), jsx81(LoadingDot, {
28789
+ }), innerProps), jsx82(LoadingDot, {
28765
28790
  delay: 0,
28766
28791
  offset: isRtl
28767
- }), jsx81(LoadingDot, {
28792
+ }), jsx82(LoadingDot, {
28768
28793
  delay: 160,
28769
28794
  offset: true
28770
- }), jsx81(LoadingDot, {
28795
+ }), jsx82(LoadingDot, {
28771
28796
  delay: 320,
28772
28797
  offset: !isRtl
28773
28798
  }));
@@ -28799,7 +28824,7 @@ var css$1 = function css2(_ref3, unstyled) {
28799
28824
  };
28800
28825
  var Control = function Control2(props) {
28801
28826
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28802
- return jsx81("div", _extends({
28827
+ return jsx82("div", _extends({
28803
28828
  ref: innerRef
28804
28829
  }, getStyleProps(props, "control", {
28805
28830
  control: true,
@@ -28821,15 +28846,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28821
28846
  };
28822
28847
  var Group = function Group2(props) {
28823
28848
  var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, Heading = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
28824
- return jsx81("div", _extends({}, getStyleProps(props, "group", {
28849
+ return jsx82("div", _extends({}, getStyleProps(props, "group", {
28825
28850
  group: true
28826
- }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28851
+ }), innerProps), jsx82(Heading, _extends({}, headingProps, {
28827
28852
  selectProps,
28828
28853
  theme,
28829
28854
  getStyles,
28830
28855
  getClassNames,
28831
28856
  cx
28832
- }), label), jsx81("div", null, children));
28857
+ }), label), jsx82("div", null, children));
28833
28858
  };
28834
28859
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28835
28860
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28851,7 +28876,7 @@ var GroupHeading = function GroupHeading2(props) {
28851
28876
  var _cleanCommonProps = cleanCommonProps(props);
28852
28877
  _cleanCommonProps.data;
28853
28878
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28854
- return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28879
+ return jsx82("div", _extends({}, getStyleProps(props, "groupHeading", {
28855
28880
  "group-heading": true
28856
28881
  }), innerProps));
28857
28882
  };
@@ -28903,11 +28928,11 @@ var inputStyle = function inputStyle2(isHidden) {
28903
28928
  var Input = function Input2(props) {
28904
28929
  var cx = props.cx, value = props.value;
28905
28930
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28906
- return jsx81("div", _extends({}, getStyleProps(props, "input", {
28931
+ return jsx82("div", _extends({}, getStyleProps(props, "input", {
28907
28932
  "input-container": true
28908
28933
  }), {
28909
28934
  "data-value": value || ""
28910
- }), jsx81("input", _extends({
28935
+ }), jsx82("input", _extends({
28911
28936
  className: cx({
28912
28937
  input: true
28913
28938
  }, inputClassName),
@@ -28961,35 +28986,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28961
28986
  };
28962
28987
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28963
28988
  var children = _ref4.children, innerProps = _ref4.innerProps;
28964
- return jsx81("div", innerProps, children);
28989
+ return jsx82("div", innerProps, children);
28965
28990
  };
28966
28991
  var MultiValueContainer = MultiValueGeneric;
28967
28992
  var MultiValueLabel = MultiValueGeneric;
28968
28993
  function MultiValueRemove(_ref5) {
28969
28994
  var children = _ref5.children, innerProps = _ref5.innerProps;
28970
- return jsx81("div", _extends({
28995
+ return jsx82("div", _extends({
28971
28996
  role: "button"
28972
- }, innerProps), children || jsx81(CrossIcon, {
28997
+ }, innerProps), children || jsx82(CrossIcon, {
28973
28998
  size: 14
28974
28999
  }));
28975
29000
  }
28976
29001
  var MultiValue = function MultiValue2(props) {
28977
29002
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28978
29003
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28979
- return jsx81(Container, {
29004
+ return jsx82(Container, {
28980
29005
  data,
28981
29006
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28982
29007
  "multi-value": true,
28983
29008
  "multi-value--is-disabled": isDisabled
28984
29009
  })), innerProps),
28985
29010
  selectProps
28986
- }, jsx81(Label, {
29011
+ }, jsx82(Label, {
28987
29012
  data,
28988
29013
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28989
29014
  "multi-value__label": true
28990
29015
  })),
28991
29016
  selectProps
28992
- }, children), jsx81(Remove, {
29017
+ }, children), jsx82(Remove, {
28993
29018
  data,
28994
29019
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28995
29020
  "multi-value__remove": true
@@ -29022,7 +29047,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
29022
29047
  };
29023
29048
  var Option = function Option2(props) {
29024
29049
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
29025
- return jsx81("div", _extends({}, getStyleProps(props, "option", {
29050
+ return jsx82("div", _extends({}, getStyleProps(props, "option", {
29026
29051
  option: true,
29027
29052
  "option--is-disabled": isDisabled,
29028
29053
  "option--is-focused": isFocused,
@@ -29046,7 +29071,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
29046
29071
  };
29047
29072
  var Placeholder = function Placeholder2(props) {
29048
29073
  var children = props.children, innerProps = props.innerProps;
29049
- return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
29074
+ return jsx82("div", _extends({}, getStyleProps(props, "placeholder", {
29050
29075
  placeholder: true
29051
29076
  }), innerProps), children);
29052
29077
  };
@@ -29068,7 +29093,7 @@ var css3 = function css4(_ref3, unstyled) {
29068
29093
  };
29069
29094
  var SingleValue = function SingleValue2(props) {
29070
29095
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
29071
- return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
29096
+ return jsx82("div", _extends({}, getStyleProps(props, "singleValue", {
29072
29097
  "single-value": true,
29073
29098
  "single-value--is-disabled": isDisabled
29074
29099
  }), innerProps), children);
@@ -29170,7 +29195,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
29170
29195
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
29171
29196
  };
29172
29197
  var A11yText = function A11yText2(props) {
29173
- return jsx81("span", _extends({
29198
+ return jsx82("span", _extends({
29174
29199
  css: _ref
29175
29200
  }, props));
29176
29201
  };
@@ -29305,18 +29330,18 @@ var LiveRegion = function LiveRegion2(props) {
29305
29330
  }
29306
29331
  return guidanceMsg;
29307
29332
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
29308
- var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
29333
+ var ScreenReaderText = jsx82(Fragment22, null, jsx82("span", {
29309
29334
  id: "aria-selection"
29310
- }, ariaSelected), jsx81("span", {
29335
+ }, ariaSelected), jsx82("span", {
29311
29336
  id: "aria-focused"
29312
- }, ariaFocused), jsx81("span", {
29337
+ }, ariaFocused), jsx82("span", {
29313
29338
  id: "aria-results"
29314
- }, ariaResults), jsx81("span", {
29339
+ }, ariaResults), jsx82("span", {
29315
29340
  id: "aria-guidance"
29316
29341
  }, ariaGuidance));
29317
- return jsx81(Fragment22, null, jsx81(A11yText$1, {
29342
+ return jsx82(Fragment22, null, jsx82(A11yText$1, {
29318
29343
  id
29319
- }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
29344
+ }, isInitialFocus && ScreenReaderText), jsx82(A11yText$1, {
29320
29345
  "aria-live": ariaLive,
29321
29346
  "aria-atomic": "false",
29322
29347
  "aria-relevant": "additions text",
@@ -29629,7 +29654,7 @@ var _excluded4 = ["innerRef"];
29629
29654
  function DummyInput(_ref3) {
29630
29655
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29631
29656
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29632
- return jsx81("input", _extends({
29657
+ return jsx82("input", _extends({
29633
29658
  ref: innerRef
29634
29659
  }, filteredProps, {
29635
29660
  css: /* @__PURE__ */ css({
@@ -29661,10 +29686,10 @@ var cancelScroll = function cancelScroll2(event) {
29661
29686
  };
29662
29687
  function useScrollCapture(_ref3) {
29663
29688
  var isEnabled = _ref3.isEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave;
29664
- var isBottom = useRef14(false);
29665
- var isTop = useRef14(false);
29666
- var touchStart = useRef14(0);
29667
- var scrollTarget = useRef14(null);
29689
+ var isBottom = useRef15(false);
29690
+ var isTop = useRef15(false);
29691
+ var touchStart = useRef15(0);
29692
+ var scrollTarget = useRef15(null);
29668
29693
  var handleEventDelta = useCallback8(function(event, delta) {
29669
29694
  if (scrollTarget.current === null) return;
29670
29695
  var _scrollTarget$current = scrollTarget.current, scrollTop = _scrollTarget$current.scrollTop, scrollHeight = _scrollTarget$current.scrollHeight, clientHeight = _scrollTarget$current.clientHeight;
@@ -29724,7 +29749,7 @@ function useScrollCapture(_ref3) {
29724
29749
  el.removeEventListener("touchstart", onTouchStart, false);
29725
29750
  el.removeEventListener("touchmove", onTouchMove, false);
29726
29751
  }, [onTouchMove, onTouchStart, onWheel]);
29727
- useEffect16(function() {
29752
+ useEffect17(function() {
29728
29753
  if (!isEnabled) return;
29729
29754
  var element = scrollTarget.current;
29730
29755
  startListening(element);
@@ -29771,8 +29796,8 @@ var listenerOptions = {
29771
29796
  };
29772
29797
  function useScrollLock(_ref3) {
29773
29798
  var isEnabled = _ref3.isEnabled, _ref$accountForScroll = _ref3.accountForScrollbars, accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;
29774
- var originalStyles = useRef14({});
29775
- var scrollTarget = useRef14(null);
29799
+ var originalStyles = useRef15({});
29800
+ var scrollTarget = useRef15(null);
29776
29801
  var addScrollLock = useCallback8(function(touchScrollTarget) {
29777
29802
  if (!canUseDOM) return;
29778
29803
  var target = document.body;
@@ -29827,7 +29852,7 @@ function useScrollLock(_ref3) {
29827
29852
  }
29828
29853
  }
29829
29854
  }, [accountForScrollbars]);
29830
- useEffect16(function() {
29855
+ useEffect17(function() {
29831
29856
  if (!isEnabled) return;
29832
29857
  var element = scrollTarget.current;
29833
29858
  addScrollLock(element);
@@ -29871,7 +29896,7 @@ function ScrollManager(_ref3) {
29871
29896
  setScrollCaptureTarget(element);
29872
29897
  setScrollLockTarget(element);
29873
29898
  };
29874
- return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29899
+ return jsx82(Fragment22, null, lockEnabled && jsx82("div", {
29875
29900
  onClick: blurSelectInput,
29876
29901
  css: _ref2$1
29877
29902
  }), children(targetRef));
@@ -29890,7 +29915,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29890
29915
  };
29891
29916
  var RequiredInput = function RequiredInput2(_ref3) {
29892
29917
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29893
- return jsx81("input", {
29918
+ return jsx82("input", {
29894
29919
  required: true,
29895
29920
  name: name2,
29896
29921
  tabIndex: -1,
@@ -31480,7 +31505,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31480
31505
 
31481
31506
  // src/widgets/basic/date-field/date.tsx
31482
31507
  var import_moment2 = __toESM(require_moment());
31483
- import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31508
+ import { Fragment as Fragment23, jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31484
31509
  var DateField = (props) => {
31485
31510
  const {
31486
31511
  name: name2,
@@ -31508,8 +31533,8 @@ var DateField = (props) => {
31508
31533
  } = props;
31509
31534
  const { t: t3 } = useI18n();
31510
31535
  const InputDateCustom = forwardRef6(
31511
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
31512
- /* @__PURE__ */ jsx83(
31536
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs54("label", { className: `flex ${className}`, children: [
31537
+ /* @__PURE__ */ jsx84(
31513
31538
  "input",
31514
31539
  {
31515
31540
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31523,13 +31548,13 @@ var DateField = (props) => {
31523
31548
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31524
31549
  }
31525
31550
  ),
31526
- isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
31551
+ isForm2 && /* @__PURE__ */ jsx84(CalendarIcon, {})
31527
31552
  ] })
31528
31553
  );
31529
31554
  if (!isForm && !isEditTable) {
31530
- return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31555
+ return /* @__PURE__ */ jsx84("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31531
31556
  } else {
31532
- return /* @__PURE__ */ jsx83(
31557
+ return /* @__PURE__ */ jsx84(
31533
31558
  Controller,
31534
31559
  {
31535
31560
  name: name2 || "",
@@ -31545,14 +31570,14 @@ var DateField = (props) => {
31545
31570
  },
31546
31571
  render: ({ field, fieldState: { error: error2 } }) => {
31547
31572
  const { setError, clearErrors } = methods;
31548
- useEffect17(() => {
31573
+ useEffect18(() => {
31549
31574
  if (value) {
31550
31575
  clearErrors(name2);
31551
31576
  }
31552
31577
  }, [value, clearErrors, name2]);
31553
31578
  const selectedDate = !methods ? value && (0, import_moment2.default)(value, formatDateParse).isValid() ? (0, import_moment2.default)(value, formatDateParse).add(7, "hours").toDate() : null : field?.value && (0, import_moment2.default)(field.value, formatDateParse).isValid() ? (0, import_moment2.default)(field.value, formatDateParse).add(7, "hours").toDate() : null;
31554
- return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31555
- /* @__PURE__ */ jsx83(
31579
+ return /* @__PURE__ */ jsxs54(Fragment23, { children: [
31580
+ /* @__PURE__ */ jsx84(
31556
31581
  DatePicker,
31557
31582
  {
31558
31583
  selected: selectedDate,
@@ -31600,7 +31625,7 @@ var DateField = (props) => {
31600
31625
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31601
31626
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31602
31627
  showTimeInput: showTime,
31603
- customInput: /* @__PURE__ */ jsx83(
31628
+ customInput: /* @__PURE__ */ jsx84(
31604
31629
  InputDateCustom,
31605
31630
  {
31606
31631
  isForm,
@@ -31618,7 +31643,7 @@ var DateField = (props) => {
31618
31643
  increaseMonth,
31619
31644
  prevMonthButtonDisabled,
31620
31645
  nextMonthButtonDisabled
31621
- }) => /* @__PURE__ */ jsxs53(
31646
+ }) => /* @__PURE__ */ jsxs54(
31622
31647
  "div",
31623
31648
  {
31624
31649
  style: {
@@ -31627,7 +31652,7 @@ var DateField = (props) => {
31627
31652
  justifyContent: "center"
31628
31653
  },
31629
31654
  children: [
31630
- /* @__PURE__ */ jsx83(
31655
+ /* @__PURE__ */ jsx84(
31631
31656
  "button",
31632
31657
  {
31633
31658
  onClick: decreaseMonth,
@@ -31635,7 +31660,7 @@ var DateField = (props) => {
31635
31660
  children: "<"
31636
31661
  }
31637
31662
  ),
31638
- /* @__PURE__ */ jsx83(
31663
+ /* @__PURE__ */ jsx84(
31639
31664
  StateManagedSelect$1,
31640
31665
  {
31641
31666
  classNames: {
@@ -31661,7 +31686,7 @@ var DateField = (props) => {
31661
31686
  autoFocus: true
31662
31687
  }
31663
31688
  ),
31664
- /* @__PURE__ */ jsx83(
31689
+ /* @__PURE__ */ jsx84(
31665
31690
  StateManagedSelect$1,
31666
31691
  {
31667
31692
  classNames: {
@@ -31689,7 +31714,7 @@ var DateField = (props) => {
31689
31714
  }))
31690
31715
  }
31691
31716
  ),
31692
- /* @__PURE__ */ jsx83(
31717
+ /* @__PURE__ */ jsx84(
31693
31718
  "button",
31694
31719
  {
31695
31720
  onClick: increaseMonth,
@@ -31702,7 +31727,7 @@ var DateField = (props) => {
31702
31727
  )
31703
31728
  }
31704
31729
  ),
31705
- !isEditTable && error2 && /* @__PURE__ */ jsx83("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31730
+ !isEditTable && error2 && /* @__PURE__ */ jsx84("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31706
31731
  ] });
31707
31732
  }
31708
31733
  }
@@ -31711,26 +31736,26 @@ var DateField = (props) => {
31711
31736
  };
31712
31737
 
31713
31738
  // src/widgets/basic/download-binary-field/download-binary.tsx
31714
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31739
+ import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31715
31740
  var DownLoadBinaryField = (props) => {
31716
31741
  const { handleFileDownload } = props;
31717
31742
  const { t: t3 } = useI18n();
31718
- return /* @__PURE__ */ jsxs54(
31743
+ return /* @__PURE__ */ jsxs55(
31719
31744
  "button",
31720
31745
  {
31721
31746
  type: "button",
31722
31747
  onClick: handleFileDownload,
31723
31748
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31724
31749
  children: [
31725
- /* @__PURE__ */ jsx84(DownloadIcon, {}),
31726
- /* @__PURE__ */ jsx84("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31750
+ /* @__PURE__ */ jsx85(DownloadIcon, {}),
31751
+ /* @__PURE__ */ jsx85("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31727
31752
  ]
31728
31753
  }
31729
31754
  );
31730
31755
  };
31731
31756
 
31732
31757
  // src/widgets/basic/download-file-field/download-file.tsx
31733
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31758
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31734
31759
  var DownloadFileField = (props) => {
31735
31760
  const {
31736
31761
  readonly,
@@ -31742,15 +31767,15 @@ var DownloadFileField = (props) => {
31742
31767
  handleFileChange,
31743
31768
  handleFileDownload
31744
31769
  } = props;
31745
- return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31746
- /* @__PURE__ */ jsxs55(
31770
+ return /* @__PURE__ */ jsxs56("div", { className: "", children: [
31771
+ /* @__PURE__ */ jsxs56(
31747
31772
  "label",
31748
31773
  {
31749
31774
  htmlFor: inputId,
31750
31775
  className: "flex cursor-pointer items-center justify-center rounded-lg border-2 border-gray-300 bg-white px-3 py-2 transition-colors duration-300 hover:bg-gray-200",
31751
31776
  children: [
31752
- file ? /* @__PURE__ */ jsx85("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31753
- /* @__PURE__ */ jsx85(
31777
+ file ? /* @__PURE__ */ jsx86("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx86("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx86("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31778
+ /* @__PURE__ */ jsx86(
31754
31779
  "input",
31755
31780
  {
31756
31781
  id: inputId,
@@ -31764,7 +31789,7 @@ var DownloadFileField = (props) => {
31764
31789
  ]
31765
31790
  }
31766
31791
  ),
31767
- file && /* @__PURE__ */ jsx85(
31792
+ file && /* @__PURE__ */ jsx86(
31768
31793
  "button",
31769
31794
  {
31770
31795
  onClick: handleFileDownload,
@@ -31777,8 +31802,8 @@ var DownloadFileField = (props) => {
31777
31802
  };
31778
31803
 
31779
31804
  // src/widgets/basic/dropdown-field/dropdown.tsx
31780
- import { useState as useState16 } from "react";
31781
- import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31805
+ import { useState as useState17 } from "react";
31806
+ import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31782
31807
  var DropdownField = (props) => {
31783
31808
  const {
31784
31809
  options: options2,
@@ -31790,32 +31815,32 @@ var DropdownField = (props) => {
31790
31815
  dropdownClassName = "",
31791
31816
  useClickOutside: useClickOutside2
31792
31817
  } = props;
31793
- const [open, setOpen] = useState16(false);
31818
+ const [open, setOpen] = useState17(false);
31794
31819
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31795
- return /* @__PURE__ */ jsxs56(
31820
+ return /* @__PURE__ */ jsxs57(
31796
31821
  "div",
31797
31822
  {
31798
31823
  ref: dropdownRef,
31799
31824
  className: `relative ${className}`,
31800
31825
  onClick: () => setOpen(!open),
31801
31826
  children: [
31802
- /* @__PURE__ */ jsxs56(
31827
+ /* @__PURE__ */ jsxs57(
31803
31828
  "div",
31804
31829
  {
31805
31830
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31806
31831
  children: [
31807
31832
  selectedValue?.icon,
31808
- /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31809
- /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31833
+ /* @__PURE__ */ jsx87("span", { children: selectedValue?.label }),
31834
+ /* @__PURE__ */ jsx87(ChevronBottomIcon, { className: "h-4 w-4" })
31810
31835
  ]
31811
31836
  }
31812
31837
  ),
31813
- open && /* @__PURE__ */ jsx86(
31838
+ open && /* @__PURE__ */ jsx87(
31814
31839
  "div",
31815
31840
  {
31816
31841
  className: `absolute left-0 top-[calc(100%_+_4px)] z-50 bg-white overflow-hidden rounded-lg border border-[#dbe0e6] shadow-md text-sub-600 h-auto !min-h-fit text-xs !leading-5 !font-bold ${dropdownClassName}`,
31817
31842
  onClick: (e3) => e3.stopPropagation(),
31818
- children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31843
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx87(
31819
31844
  "div",
31820
31845
  {
31821
31846
  onClick: () => {
@@ -31835,7 +31860,7 @@ var DropdownField = (props) => {
31835
31860
  };
31836
31861
 
31837
31862
  // src/widgets/basic/fee-field/fee.tsx
31838
- import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31863
+ import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31839
31864
  var FeeField = (props) => {
31840
31865
  const { value, formValues } = props;
31841
31866
  const { t: t3 } = useI18n();
@@ -31846,27 +31871,27 @@ var FeeField = (props) => {
31846
31871
  )
31847
31872
  ) + " VND";
31848
31873
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31849
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31874
+ return /* @__PURE__ */ jsxs58(Fragment24, { children: [
31850
31875
  value?.subtotals?.map((sub) => {
31851
31876
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31852
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31853
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31854
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31877
+ return /* @__PURE__ */ jsxs58(Fragment24, { children: [
31878
+ /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31879
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31855
31880
  sub?.name,
31856
31881
  ":"
31857
31882
  ] }),
31858
- /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31883
+ /* @__PURE__ */ jsx88("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31859
31884
  ] }),
31860
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31885
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs58(
31861
31886
  "div",
31862
31887
  {
31863
31888
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31864
31889
  children: [
31865
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31890
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31866
31891
  group?.group_name,
31867
31892
  ":"
31868
31893
  ] }),
31869
- /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31894
+ /* @__PURE__ */ jsx88("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31870
31895
  ]
31871
31896
  },
31872
31897
  `tax_groups_${group?.id}`
@@ -31874,33 +31899,33 @@ var FeeField = (props) => {
31874
31899
  ] });
31875
31900
  }
31876
31901
  }),
31877
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31878
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31902
+ /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31903
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31879
31904
  t3("total"),
31880
31905
  ":"
31881
31906
  ] }),
31882
- /* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31907
+ /* @__PURE__ */ jsx88("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31883
31908
  ] }),
31884
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31885
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31909
+ /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31910
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31886
31911
  t3("paid_amount"),
31887
31912
  ":"
31888
31913
  ] }),
31889
- /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31914
+ /* @__PURE__ */ jsx88("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31890
31915
  ] }),
31891
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31892
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31916
+ /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31917
+ /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
31893
31918
  t3("remanining_amount"),
31894
31919
  ":"
31895
31920
  ] }),
31896
- /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31921
+ /* @__PURE__ */ jsx88("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31897
31922
  ] })
31898
31923
  ] });
31899
31924
  };
31900
31925
 
31901
31926
  // src/widgets/basic/file-upload-field/file-upload.tsx
31902
- import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31903
- import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31927
+ import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31928
+ import { jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31904
31929
  var RenderFile = ({
31905
31930
  file,
31906
31931
  onDelete,
@@ -31910,16 +31935,16 @@ var RenderFile = ({
31910
31935
  readAs: "all"
31911
31936
  });
31912
31937
  const fileTypeIcon = {
31913
- "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
31914
- "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
31915
- "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
31916
- "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
31917
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
31938
+ "application/pdf": /* @__PURE__ */ jsx89(PdfIcon, {}),
31939
+ "application/zip": /* @__PURE__ */ jsx89(ZipIcon, {}),
31940
+ "application/x-zip-compressed": /* @__PURE__ */ jsx89(ZipIcon, {}),
31941
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx89(ExcelIcon, {}),
31942
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx89(ExcelIcon, {})
31918
31943
  };
31919
- return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31920
- /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31921
- /* @__PURE__ */ jsxs58("div", { children: [
31922
- /* @__PURE__ */ jsx88(
31944
+ return /* @__PURE__ */ jsxs59("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31945
+ /* @__PURE__ */ jsx89("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31946
+ /* @__PURE__ */ jsxs59("div", { children: [
31947
+ /* @__PURE__ */ jsx89(
31923
31948
  "div",
31924
31949
  {
31925
31950
  style: {
@@ -31929,20 +31954,20 @@ var RenderFile = ({
31929
31954
  children: file?.name || file?.display_name || info?.name
31930
31955
  }
31931
31956
  ),
31932
- /* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31957
+ /* @__PURE__ */ jsx89("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31933
31958
  ] }),
31934
- /* @__PURE__ */ jsxs58("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
31935
- /* @__PURE__ */ jsx88(
31959
+ /* @__PURE__ */ jsxs59("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
31960
+ /* @__PURE__ */ jsx89(
31936
31961
  "span",
31937
31962
  {
31938
31963
  onClick: () => onDownload && onDownload(
31939
31964
  file?.data,
31940
31965
  file?.name || file?.display_name || info?.name
31941
31966
  ),
31942
- children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31967
+ children: /* @__PURE__ */ jsx89(DownloadIcon, {})
31943
31968
  }
31944
31969
  ),
31945
- /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31970
+ /* @__PURE__ */ jsx89("span", { onClick: onDelete, children: /* @__PURE__ */ jsx89(DeleteIconDanger, {}) })
31946
31971
  ] })
31947
31972
  ] });
31948
31973
  };
@@ -31964,10 +31989,10 @@ var FileUploadField = (props) => {
31964
31989
  downloadFunction
31965
31990
  } = props;
31966
31991
  const { t: t3 } = useI18n();
31967
- const fileInputRef = useRef15(null);
31968
- const [selectedFiles, setSelectedFiles] = useState17([]);
31969
- const [uploadError, setUploadError] = useState17();
31970
- useEffect18(() => {
31992
+ const fileInputRef = useRef16(null);
31993
+ const [selectedFiles, setSelectedFiles] = useState18([]);
31994
+ const [uploadError, setUploadError] = useState18();
31995
+ useEffect19(() => {
31971
31996
  if (selectedFiles?.length === 0 && value) {
31972
31997
  setSelectedFiles([
31973
31998
  {
@@ -31976,7 +32001,7 @@ var FileUploadField = (props) => {
31976
32001
  ]);
31977
32002
  }
31978
32003
  }, [value]);
31979
- return /* @__PURE__ */ jsx88(
32004
+ return /* @__PURE__ */ jsx89(
31980
32005
  Controller,
31981
32006
  {
31982
32007
  name: name2 || "",
@@ -31985,7 +32010,7 @@ var FileUploadField = (props) => {
31985
32010
  required: required ? { value: true, message: `${string} ${t3("must_required")}` } : false
31986
32011
  },
31987
32012
  render: ({ field: { onChange: onChange2 }, fieldState: { error: error2 } }) => {
31988
- useEffect18(() => {
32013
+ useEffect19(() => {
31989
32014
  let data = widget === "many2many_binary" ? selectedFiles : selectedFiles?.[0]?.data;
31990
32015
  if (widget !== "many2many_binary" && data && isBase64File(data)) {
31991
32016
  data = data.split(",")[1];
@@ -32001,8 +32026,8 @@ var FileUploadField = (props) => {
32001
32026
  );
32002
32027
  }
32003
32028
  }, [selectedFiles]);
32004
- return /* @__PURE__ */ jsxs58("div", { children: [
32005
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
32029
+ return /* @__PURE__ */ jsxs59("div", { children: [
32030
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx89(
32006
32031
  RenderFile,
32007
32032
  {
32008
32033
  file: fileItem,
@@ -32017,8 +32042,8 @@ var FileUploadField = (props) => {
32017
32042
  }
32018
32043
  }
32019
32044
  )),
32020
- uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
32021
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx88(
32045
+ uploadError && /* @__PURE__ */ jsx89("div", { className: "text-[#de4747]", children: uploadError }),
32046
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx89(
32022
32047
  ButtonSelectFiles,
32023
32048
  {
32024
32049
  fileInputRef,
@@ -32033,7 +32058,7 @@ var FileUploadField = (props) => {
32033
32058
  useUploadFile
32034
32059
  }
32035
32060
  ),
32036
- error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32061
+ error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32037
32062
  ] });
32038
32063
  }
32039
32064
  }
@@ -32041,8 +32066,8 @@ var FileUploadField = (props) => {
32041
32066
  };
32042
32067
 
32043
32068
  // src/widgets/basic/float-field/float.tsx
32044
- import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
32045
- import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
32069
+ import { useEffect as useEffect20, useRef as useRef17, useState as useState19 } from "react";
32070
+ import { Fragment as Fragment25, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
32046
32071
  var FloatField = (props) => {
32047
32072
  const {
32048
32073
  name: name2,
@@ -32060,9 +32085,9 @@ var FloatField = (props) => {
32060
32085
  } = props;
32061
32086
  const { t: t3 } = useI18n();
32062
32087
  if (!isForm && !isEditTable) {
32063
- return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
32088
+ return /* @__PURE__ */ jsx90("span", { children: formatFloatNumber(propValue ?? defaultValue) });
32064
32089
  }
32065
- return /* @__PURE__ */ jsx89(
32090
+ return /* @__PURE__ */ jsx90(
32066
32091
  Controller,
32067
32092
  {
32068
32093
  name: name2 ?? "",
@@ -32073,10 +32098,10 @@ var FloatField = (props) => {
32073
32098
  },
32074
32099
  render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
32075
32100
  const { setError, clearErrors } = methods;
32076
- const [inputValue, setInputValue] = useState18(
32101
+ const [inputValue, setInputValue] = useState19(
32077
32102
  value !== void 0 && value !== null ? formatFloatNumber(value) : ""
32078
32103
  );
32079
- useEffect19(() => {
32104
+ useEffect20(() => {
32080
32105
  if (propValue !== void 0 && propValue !== null && propValue !== parseFloat(inputValue?.replace(/,/g, ""))) {
32081
32106
  setInputValue(formatFloatNumber(propValue));
32082
32107
  clearErrors(name2);
@@ -32087,9 +32112,9 @@ var FloatField = (props) => {
32087
32112
  setInputValue("");
32088
32113
  }
32089
32114
  }, [value, name2, clearErrors, propValue]);
32090
- const isDirtyRef = useRef16(false);
32091
- const inputRef = useRef16(null);
32092
- const lastCommittedValueRef = useRef16(null);
32115
+ const isDirtyRef = useRef17(false);
32116
+ const inputRef = useRef17(null);
32117
+ const lastCommittedValueRef = useRef17(null);
32093
32118
  const handleInputChange = (e3) => {
32094
32119
  const newValue = e3.target.value;
32095
32120
  const valueWithoutCommas = newValue.replace(/,/g, "");
@@ -32167,8 +32192,8 @@ var FloatField = (props) => {
32167
32192
  }
32168
32193
  isDirtyRef.current = false;
32169
32194
  };
32170
- return /* @__PURE__ */ jsxs59(Fragment25, { children: [
32171
- /* @__PURE__ */ jsx89(
32195
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
32196
+ /* @__PURE__ */ jsx90(
32172
32197
  "input",
32173
32198
  {
32174
32199
  ref: inputRef,
@@ -32188,7 +32213,7 @@ var FloatField = (props) => {
32188
32213
  `
32189
32214
  }
32190
32215
  ),
32191
- error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32216
+ error2 && !isEditTable && /* @__PURE__ */ jsx90("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32192
32217
  ] });
32193
32218
  }
32194
32219
  }
@@ -32196,8 +32221,8 @@ var FloatField = (props) => {
32196
32221
  };
32197
32222
 
32198
32223
  // src/widgets/basic/float-time-field/float-time.tsx
32199
- import { useState as useState19 } from "react";
32200
- import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
32224
+ import { useState as useState20 } from "react";
32225
+ import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
32201
32226
  var FloatTimeField = (props) => {
32202
32227
  const {
32203
32228
  name: name2,
@@ -32213,9 +32238,9 @@ var FloatTimeField = (props) => {
32213
32238
  const { t: t3 } = useI18n();
32214
32239
  if (!isForm) {
32215
32240
  const formatValue = value ?? 0;
32216
- return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
32241
+ return /* @__PURE__ */ jsx91("span", { children: convertFloatToTime(formatValue) });
32217
32242
  }
32218
- return /* @__PURE__ */ jsx90(
32243
+ return /* @__PURE__ */ jsx91(
32219
32244
  Controller,
32220
32245
  {
32221
32246
  name: name2 ?? "",
@@ -32228,11 +32253,11 @@ var FloatTimeField = (props) => {
32228
32253
  field: { onChange: fieldOnChange, onBlur, value: value2 },
32229
32254
  fieldState: { error: error2, isDirty }
32230
32255
  }) => {
32231
- const [input, setInput] = useState19(
32256
+ const [input, setInput] = useState20(
32232
32257
  convertFloatToTime(value2 ?? defaultValue)
32233
32258
  );
32234
- const [formattedTime, setFormattedTime] = useState19("");
32235
- const [errors, setErrors] = useState19("");
32259
+ const [formattedTime, setFormattedTime] = useState20("");
32260
+ const [errors, setErrors] = useState20("");
32236
32261
  const handleInputChange = (e3) => {
32237
32262
  const raw = e3.target.value.replace(/[^\d:]/g, "");
32238
32263
  setInput(raw);
@@ -32277,8 +32302,8 @@ var FloatTimeField = (props) => {
32277
32302
  }
32278
32303
  onBlur();
32279
32304
  };
32280
- return /* @__PURE__ */ jsxs60(Fragment26, { children: [
32281
- /* @__PURE__ */ jsx90(
32305
+ return /* @__PURE__ */ jsxs61(Fragment26, { children: [
32306
+ /* @__PURE__ */ jsx91(
32282
32307
  "input",
32283
32308
  {
32284
32309
  type: "text",
@@ -32310,7 +32335,7 @@ var FloatTimeField = (props) => {
32310
32335
  readOnly: readonly
32311
32336
  }
32312
32337
  ),
32313
- (error2 || errors) && /* @__PURE__ */ jsx90("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32338
+ (error2 || errors) && /* @__PURE__ */ jsx91("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32314
32339
  ] });
32315
32340
  }
32316
32341
  }
@@ -32318,8 +32343,8 @@ var FloatTimeField = (props) => {
32318
32343
  };
32319
32344
 
32320
32345
  // src/widgets/basic/html-field/html.tsx
32321
- import { useEffect as useEffect20, useRef as useRef17 } from "react";
32322
- import { jsx as jsx91 } from "react/jsx-runtime";
32346
+ import { useEffect as useEffect21, useRef as useRef18 } from "react";
32347
+ import { jsx as jsx92 } from "react/jsx-runtime";
32323
32348
  var HtmlField = (props) => {
32324
32349
  const {
32325
32350
  name: name2,
@@ -32331,18 +32356,18 @@ var HtmlField = (props) => {
32331
32356
  value,
32332
32357
  isEditTable
32333
32358
  } = props;
32334
- const divRef = useRef17(null);
32359
+ const divRef = useRef18(null);
32335
32360
  if (!isForm && !isEditTable) {
32336
- return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32361
+ return /* @__PURE__ */ jsx92("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32337
32362
  }
32338
- return /* @__PURE__ */ jsx91(
32363
+ return /* @__PURE__ */ jsx92(
32339
32364
  Controller,
32340
32365
  {
32341
32366
  name: name2 ?? "",
32342
32367
  control: methods?.control,
32343
32368
  defaultValue,
32344
32369
  render: ({ field: { onChange: fieldOnChange, value: value2 } }) => {
32345
- useEffect20(() => {
32370
+ useEffect21(() => {
32346
32371
  if (divRef.current && divRef.current.innerHTML !== value2) {
32347
32372
  divRef.current.innerHTML = value2 || "";
32348
32373
  }
@@ -32354,7 +32379,7 @@ var HtmlField = (props) => {
32354
32379
  onChange2(newValue, "");
32355
32380
  }
32356
32381
  };
32357
- return /* @__PURE__ */ jsx91(
32382
+ return /* @__PURE__ */ jsx92(
32358
32383
  "div",
32359
32384
  {
32360
32385
  ref: divRef,
@@ -32373,28 +32398,28 @@ var HtmlField = (props) => {
32373
32398
  };
32374
32399
 
32375
32400
  // src/widgets/basic/image-field/image.tsx
32376
- import { jsx as jsx92 } from "react/jsx-runtime";
32401
+ import { jsx as jsx93 } from "react/jsx-runtime";
32377
32402
  var ImageField = (props) => {
32378
32403
  const { value, type, name: name2, baseURL } = props;
32379
32404
  if (!value) return null;
32380
32405
  if (type === "url") {
32381
- return /* @__PURE__ */ jsx92("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32406
+ return /* @__PURE__ */ jsx93("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32382
32407
  }
32383
- return /* @__PURE__ */ jsx92("div", { id: "qr-code", children: /* @__PURE__ */ jsx92("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32408
+ return /* @__PURE__ */ jsx93("div", { id: "qr-code", children: /* @__PURE__ */ jsx93("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32384
32409
  };
32385
32410
 
32386
32411
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32387
- import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
32412
+ import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
32388
32413
 
32389
32414
  // src/widgets/basic/information-field/information.tsx
32390
- import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
32415
+ import { Fragment as Fragment27, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32391
32416
  var InfomationField = (props) => {
32392
32417
  const { value, isForm = false, showName = true, stringToColor } = props;
32393
32418
  if (!value || Array.isArray(value) && value.length === 0) {
32394
- return /* @__PURE__ */ jsx93(Fragment27, {});
32419
+ return /* @__PURE__ */ jsx94(Fragment27, {});
32395
32420
  }
32396
32421
  const inforValues = Array.isArray(value) ? value : [value];
32397
- return /* @__PURE__ */ jsx93("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx93(
32422
+ return /* @__PURE__ */ jsx94("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx94(
32398
32423
  AvatarField,
32399
32424
  {
32400
32425
  id: item.id,
@@ -32403,8 +32428,8 @@ var InfomationField = (props) => {
32403
32428
  stringToColor
32404
32429
  },
32405
32430
  item.id
32406
- )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
32407
- /* @__PURE__ */ jsx93(
32431
+ )) : /* @__PURE__ */ jsxs62("div", { className: "flex gap-2 items-center w-max", children: [
32432
+ /* @__PURE__ */ jsx94(
32408
32433
  AvatarField,
32409
32434
  {
32410
32435
  avatarSrc: inforValues[0].image_256,
@@ -32414,12 +32439,12 @@ var InfomationField = (props) => {
32414
32439
  stringToColor
32415
32440
  }
32416
32441
  ),
32417
- showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
32442
+ showName && /* @__PURE__ */ jsx94("span", { className: "capitalize", children: inforValues[0].display_name })
32418
32443
  ] }) });
32419
32444
  };
32420
32445
 
32421
32446
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32422
- import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32447
+ import { jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32423
32448
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32424
32449
  const { selectProps, data, menuList } = props;
32425
32450
  const { relation } = selectProps;
@@ -32428,8 +32453,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32428
32453
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32429
32454
  )
32430
32455
  )?.[0]?.action?.id;
32431
- return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32432
- /* @__PURE__ */ jsx94(
32456
+ return /* @__PURE__ */ jsxs63("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32457
+ /* @__PURE__ */ jsx95(
32433
32458
  AvatarField,
32434
32459
  {
32435
32460
  id: data?.id,
@@ -32441,8 +32466,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32441
32466
  stringToColor
32442
32467
  }
32443
32468
  ),
32444
- /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32445
- /* @__PURE__ */ jsx94(
32469
+ /* @__PURE__ */ jsx95("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32470
+ /* @__PURE__ */ jsx95(
32446
32471
  "span",
32447
32472
  {
32448
32473
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32450,7 +32475,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32450
32475
  e3.stopPropagation();
32451
32476
  props.removeProps.onClick();
32452
32477
  },
32453
- children: /* @__PURE__ */ jsx94(CloseIcon, {})
32478
+ children: /* @__PURE__ */ jsx95(CloseIcon, {})
32454
32479
  }
32455
32480
  )
32456
32481
  ] });
@@ -32460,9 +32485,9 @@ var CustomMenuList = (props) => {
32460
32485
  const { setIsShowModalMany2Many, searchable } = selectProps;
32461
32486
  const { t: t3 } = useI18n();
32462
32487
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
32463
- return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
32488
+ return /* @__PURE__ */ jsxs63(components.MenuList, { ...props, className: "z-[99]", children: [
32464
32489
  limitedChildren,
32465
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
32490
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs63(
32466
32491
  "button",
32467
32492
  {
32468
32493
  type: "button",
@@ -32507,7 +32532,7 @@ var Many2ManyTagField = (props) => {
32507
32532
  value: item.id,
32508
32533
  label: item.name ?? item.display_name
32509
32534
  })) : [];
32510
- return /* @__PURE__ */ jsx94(
32535
+ return /* @__PURE__ */ jsx95(
32511
32536
  InfomationField,
32512
32537
  {
32513
32538
  value: optionValue || null,
@@ -32516,7 +32541,7 @@ var Many2ManyTagField = (props) => {
32516
32541
  }
32517
32542
  );
32518
32543
  }
32519
- return /* @__PURE__ */ jsx94(
32544
+ return /* @__PURE__ */ jsx95(
32520
32545
  Controller,
32521
32546
  {
32522
32547
  name: name2 ?? "",
@@ -32526,7 +32551,7 @@ var Many2ManyTagField = (props) => {
32526
32551
  },
32527
32552
  render: ({ field, fieldState: { error: error2 } }) => {
32528
32553
  const { clearErrors } = methods;
32529
- useEffect21(() => {
32554
+ useEffect22(() => {
32530
32555
  if (field.value) {
32531
32556
  clearErrors(name2);
32532
32557
  }
@@ -32552,8 +32577,8 @@ var Many2ManyTagField = (props) => {
32552
32577
  onChange2?.(name2 ?? "", newValue);
32553
32578
  clearErrors(name2);
32554
32579
  };
32555
- return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32556
- /* @__PURE__ */ jsx94(
32580
+ return /* @__PURE__ */ jsxs63("div", { className: "group h-full overflow-y-auto", children: [
32581
+ /* @__PURE__ */ jsx95(
32557
32582
  StateManagedSelect$1,
32558
32583
  {
32559
32584
  options: options2,
@@ -32631,7 +32656,7 @@ var Many2ManyTagField = (props) => {
32631
32656
  })
32632
32657
  },
32633
32658
  components: isUser ? {
32634
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
32659
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx95(
32635
32660
  CustomMultiValue,
32636
32661
  {
32637
32662
  ...multiValueProps,
@@ -32640,7 +32665,7 @@ var Many2ManyTagField = (props) => {
32640
32665
  ),
32641
32666
  IndicatorSeparator: () => null
32642
32667
  } : {
32643
- MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
32668
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx95(
32644
32669
  CustomMenuList,
32645
32670
  {
32646
32671
  ...menuListProps,
@@ -32651,13 +32676,13 @@ var Many2ManyTagField = (props) => {
32651
32676
  }
32652
32677
  ),
32653
32678
  IndicatorSeparator: () => null,
32654
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
32655
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.ClearIndicator, { ...props2 })
32679
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx95(components.DropdownIndicator, { ...props2 }),
32680
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx95(components.ClearIndicator, { ...props2 })
32656
32681
  },
32657
32682
  required: !invisible && required
32658
32683
  }
32659
32684
  ),
32660
- !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32685
+ !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32661
32686
  ] });
32662
32687
  }
32663
32688
  }
@@ -32665,8 +32690,8 @@ var Many2ManyTagField = (props) => {
32665
32690
  };
32666
32691
 
32667
32692
  // src/widgets/basic/monetary-field/monetary.tsx
32668
- import { useEffect as useEffect22 } from "react";
32669
- import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32693
+ import { useEffect as useEffect23 } from "react";
32694
+ import { Fragment as Fragment28, jsx as jsx96, jsxs as jsxs64 } from "react/jsx-runtime";
32670
32695
  var MonetaryField = (props) => {
32671
32696
  const { t: t3 } = useI18n();
32672
32697
  const {
@@ -32686,26 +32711,26 @@ var MonetaryField = (props) => {
32686
32711
  isEditTable
32687
32712
  } = props;
32688
32713
  if (isForm && name2 === "amount_residual") {
32689
- return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32690
- /* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
32714
+ return /* @__PURE__ */ jsxs64("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32715
+ /* @__PURE__ */ jsxs64("span", { className: "font-semibold", children: [
32691
32716
  string,
32692
32717
  ":"
32693
32718
  ] }),
32694
- /* @__PURE__ */ jsx95("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32719
+ /* @__PURE__ */ jsx96("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32695
32720
  ] });
32696
32721
  }
32697
32722
  if (!isForm) {
32698
32723
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32699
32724
  if (widget === "monetary" && !formValues?.currency_id) {
32700
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32725
+ return /* @__PURE__ */ jsx96("span", { children: `${formatNumberOnly(
32701
32726
  parseFloat(String(value ?? defaultValue))
32702
32727
  )} VND` });
32703
32728
  }
32704
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32729
+ return /* @__PURE__ */ jsx96("span", { children: `${formatNumberOnly(
32705
32730
  parseFloat(value ?? defaultValue)
32706
32731
  )} ${currencySymbol}` });
32707
32732
  }
32708
- return /* @__PURE__ */ jsx95(
32733
+ return /* @__PURE__ */ jsx96(
32709
32734
  Controller,
32710
32735
  {
32711
32736
  name: name2 ?? "",
@@ -32719,13 +32744,13 @@ var MonetaryField = (props) => {
32719
32744
  fieldState: { error: error2 }
32720
32745
  }) => {
32721
32746
  const { setError, clearErrors } = methods;
32722
- useEffect22(() => {
32747
+ useEffect23(() => {
32723
32748
  if (value2 !== void 0 && value2 !== null && !isNaN(value2)) {
32724
32749
  clearErrors(name2);
32725
32750
  }
32726
32751
  }, [value2]);
32727
- return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32728
- /* @__PURE__ */ jsx95(
32752
+ return /* @__PURE__ */ jsxs64(Fragment28, { children: [
32753
+ /* @__PURE__ */ jsx96(
32729
32754
  "input",
32730
32755
  {
32731
32756
  value: formatNumberOnly(value2),
@@ -32763,7 +32788,7 @@ var MonetaryField = (props) => {
32763
32788
  `
32764
32789
  }
32765
32790
  ),
32766
- !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32791
+ !isEditTable && error2 && /* @__PURE__ */ jsx96("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32767
32792
  ] });
32768
32793
  }
32769
32794
  }
@@ -32771,14 +32796,14 @@ var MonetaryField = (props) => {
32771
32796
  };
32772
32797
 
32773
32798
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32774
- import { jsx as jsx96 } from "react/jsx-runtime";
32799
+ import { jsx as jsx97 } from "react/jsx-runtime";
32775
32800
  var PaidBadgedField = () => {
32776
- return /* @__PURE__ */ jsx96("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx96(PaidIcon, {}) });
32801
+ return /* @__PURE__ */ jsx97("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx97(PaidIcon, {}) });
32777
32802
  };
32778
32803
 
32779
32804
  // src/widgets/basic/priority-field/rating-star.tsx
32780
- import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32781
- import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32805
+ import React17, { useEffect as useEffect24, useState as useState21 } from "react";
32806
+ import { jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
32782
32807
  var RatingStarField = (props) => {
32783
32808
  const {
32784
32809
  label,
@@ -32787,9 +32812,9 @@ var RatingStarField = (props) => {
32787
32812
  onSelectPriority,
32788
32813
  id
32789
32814
  } = props;
32790
- const [rating, setRating] = useState20(defaultValue);
32791
- const [hover, setHover] = useState20(0);
32792
- useEffect23(() => {
32815
+ const [rating, setRating] = useState21(defaultValue);
32816
+ const [hover, setHover] = useState21(0);
32817
+ useEffect24(() => {
32793
32818
  setRating(defaultValue);
32794
32819
  }, [defaultValue]);
32795
32820
  const handleClick = (value) => {
@@ -32813,7 +32838,7 @@ var RatingStarField = (props) => {
32813
32838
  setHover(0);
32814
32839
  setRating(0);
32815
32840
  };
32816
- return /* @__PURE__ */ jsx97(
32841
+ return /* @__PURE__ */ jsx98(
32817
32842
  "div",
32818
32843
  {
32819
32844
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32823,17 +32848,17 @@ var RatingStarField = (props) => {
32823
32848
  const starValue = index4 + 1;
32824
32849
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32825
32850
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32826
- return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32827
- /* @__PURE__ */ jsx97(
32851
+ return /* @__PURE__ */ jsxs65(React17.Fragment, { children: [
32852
+ /* @__PURE__ */ jsx98(
32828
32853
  "div",
32829
32854
  {
32830
32855
  onMouseEnter: () => handleHover(starValue),
32831
32856
  onClick: () => handleClick(starValue),
32832
32857
  "data-tooltip-id": `${id}-${starValue}`,
32833
- children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32858
+ children: /* @__PURE__ */ jsx98(StarIcon, { fill: fillColor, stroke: strokeColor })
32834
32859
  }
32835
32860
  ),
32836
- /* @__PURE__ */ jsx97(
32861
+ /* @__PURE__ */ jsx98(
32837
32862
  M,
32838
32863
  {
32839
32864
  className: "z-50",
@@ -32849,7 +32874,7 @@ var RatingStarField = (props) => {
32849
32874
  };
32850
32875
 
32851
32876
  // src/widgets/basic/priority-field/priority.tsx
32852
- import { jsx as jsx98 } from "react/jsx-runtime";
32877
+ import { jsx as jsx99 } from "react/jsx-runtime";
32853
32878
  var PriorityField = (props) => {
32854
32879
  const {
32855
32880
  isForm,
@@ -32865,7 +32890,7 @@ var PriorityField = (props) => {
32865
32890
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32866
32891
  const defaultPriority = parseInt(value) + 1;
32867
32892
  if (!isForm) {
32868
- return /* @__PURE__ */ jsx98(
32893
+ return /* @__PURE__ */ jsx99(
32869
32894
  RatingStarField,
32870
32895
  {
32871
32896
  label,
@@ -32876,7 +32901,7 @@ var PriorityField = (props) => {
32876
32901
  }
32877
32902
  );
32878
32903
  }
32879
- return /* @__PURE__ */ jsx98(
32904
+ return /* @__PURE__ */ jsx99(
32880
32905
  Controller,
32881
32906
  {
32882
32907
  name: name ?? "",
@@ -32886,7 +32911,7 @@ var PriorityField = (props) => {
32886
32911
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32887
32912
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32888
32913
  };
32889
- return /* @__PURE__ */ jsx98(
32914
+ return /* @__PURE__ */ jsx99(
32890
32915
  RatingStarField,
32891
32916
  {
32892
32917
  label,
@@ -32902,8 +32927,8 @@ var PriorityField = (props) => {
32902
32927
  };
32903
32928
 
32904
32929
  // src/widgets/basic/radio-group-field/radio-group.tsx
32905
- import { useEffect as useEffect24 } from "react";
32906
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32930
+ import { useEffect as useEffect25 } from "react";
32931
+ import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32907
32932
  var RadioGroupField = (props) => {
32908
32933
  const {
32909
32934
  name: name2,
@@ -32916,19 +32941,19 @@ var RadioGroupField = (props) => {
32916
32941
  onChange: onChange2,
32917
32942
  setValue
32918
32943
  } = props;
32919
- useEffect24(() => {
32944
+ useEffect25(() => {
32920
32945
  if (selection?.length > 0) {
32921
32946
  if (setValue) setValue(name2, selection?.[0]?.[0]);
32922
32947
  }
32923
32948
  }, [selection, name2, setValue]);
32924
32949
  if (!methods) return null;
32925
- return /* @__PURE__ */ jsx99(
32950
+ return /* @__PURE__ */ jsx100(
32926
32951
  Controller,
32927
32952
  {
32928
32953
  name: name2 ?? "",
32929
32954
  control: methods.control,
32930
- render: ({ field }) => /* @__PURE__ */ jsx99("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-1", children: [
32931
- /* @__PURE__ */ jsx99(
32955
+ render: ({ field }) => /* @__PURE__ */ jsx100("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs66("div", { className: "flex items-center gap-1", children: [
32956
+ /* @__PURE__ */ jsx100(
32932
32957
  "input",
32933
32958
  {
32934
32959
  type: "radio",
@@ -32947,7 +32972,7 @@ var RadioGroupField = (props) => {
32947
32972
  className: "custom-radio"
32948
32973
  }
32949
32974
  ),
32950
- /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32975
+ /* @__PURE__ */ jsx100("label", { htmlFor: String(select[0]), children: select[1] })
32951
32976
  ] }, select[0])) })
32952
32977
  }
32953
32978
  );
@@ -32955,7 +32980,7 @@ var RadioGroupField = (props) => {
32955
32980
 
32956
32981
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32957
32982
  var import_moment3 = __toESM(require_moment());
32958
- import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32983
+ import { jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32959
32984
  var RemainingDaysField = (props) => {
32960
32985
  const {
32961
32986
  value,
@@ -32966,14 +32991,14 @@ var RemainingDaysField = (props) => {
32966
32991
  if (!value) return null;
32967
32992
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32968
32993
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32969
- return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32970
- /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32971
- /* @__PURE__ */ jsx100(
32994
+ return /* @__PURE__ */ jsxs67("div", { className: isForm ? "mb-4" : "", children: [
32995
+ /* @__PURE__ */ jsx101(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32996
+ /* @__PURE__ */ jsx101(
32972
32997
  "div",
32973
32998
  {
32974
32999
  "data-tooltip-id": `remainingDays_${value}`,
32975
33000
  className: "flex items-center w-fit cursor-context-menu",
32976
- children: /* @__PURE__ */ jsx100(
33001
+ children: /* @__PURE__ */ jsx101(
32977
33002
  "div",
32978
33003
  {
32979
33004
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32986,7 +33011,7 @@ var RemainingDaysField = (props) => {
32986
33011
  };
32987
33012
 
32988
33013
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32989
- import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
33014
+ import { Fragment as Fragment29, jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
32990
33015
  var SelectDropdownField = (props) => {
32991
33016
  const { t: t3 } = useI18n();
32992
33017
  const {
@@ -33008,9 +33033,9 @@ var SelectDropdownField = (props) => {
33008
33033
  label: val[1]
33009
33034
  })) : [];
33010
33035
  if (!isForm && !isEditTable) {
33011
- return /* @__PURE__ */ jsx101("span", { children: options2?.find((item) => item?.value === value)?.label });
33036
+ return /* @__PURE__ */ jsx102("span", { children: options2?.find((item) => item?.value === value)?.label });
33012
33037
  } else {
33013
- return /* @__PURE__ */ jsx101(
33038
+ return /* @__PURE__ */ jsx102(
33014
33039
  Controller,
33015
33040
  {
33016
33041
  name: name2 || "",
@@ -33037,8 +33062,8 @@ var SelectDropdownField = (props) => {
33037
33062
  value: defaultValue || null,
33038
33063
  required: !invisible && required
33039
33064
  };
33040
- return /* @__PURE__ */ jsxs67(Fragment29, { children: [
33041
- /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
33065
+ return /* @__PURE__ */ jsxs68(Fragment29, { children: [
33066
+ /* @__PURE__ */ jsx102("div", { className: "group", children: /* @__PURE__ */ jsx102(
33042
33067
  StateManagedSelect$1,
33043
33068
  {
33044
33069
  ...commonProps,
@@ -33093,12 +33118,12 @@ var SelectDropdownField = (props) => {
33093
33118
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
33094
33119
  components: {
33095
33120
  IndicatorSeparator: () => null,
33096
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
33121
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx102(components.DropdownIndicator, { ...props2 })
33097
33122
  },
33098
33123
  noOptionsMessage: () => t3("no-available")
33099
33124
  }
33100
33125
  ) }),
33101
- !isEditTable && error2 && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33126
+ !isEditTable && error2 && /* @__PURE__ */ jsx102("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33102
33127
  ] });
33103
33128
  }
33104
33129
  }
@@ -33107,7 +33132,7 @@ var SelectDropdownField = (props) => {
33107
33132
  };
33108
33133
 
33109
33134
  // src/widgets/basic/textarea-field/textarea.tsx
33110
- import { jsx as jsx102 } from "react/jsx-runtime";
33135
+ import { jsx as jsx103 } from "react/jsx-runtime";
33111
33136
  var TextAreaField = (props) => {
33112
33137
  const {
33113
33138
  methods,
@@ -33131,9 +33156,9 @@ var TextAreaField = (props) => {
33131
33156
  }
33132
33157
  }) : {};
33133
33158
  if (!isForm) {
33134
- return /* @__PURE__ */ jsx102("span", { children: value && typeof value === "object" ? value.display_name : value });
33159
+ return /* @__PURE__ */ jsx103("span", { children: value && typeof value === "object" ? value.display_name : value });
33135
33160
  }
33136
- return /* @__PURE__ */ jsx102(
33161
+ return /* @__PURE__ */ jsx103(
33137
33162
  "textarea",
33138
33163
  {
33139
33164
  ...formProps,
@@ -33149,7 +33174,7 @@ var TextAreaField = (props) => {
33149
33174
  };
33150
33175
 
33151
33176
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
33152
- import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
33177
+ import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
33153
33178
  var ToggleButtonField = (props) => {
33154
33179
  const {
33155
33180
  name: name2,
@@ -33159,13 +33184,13 @@ var ToggleButtonField = (props) => {
33159
33184
  onChange: onChange2,
33160
33185
  methods
33161
33186
  } = props;
33162
- return /* @__PURE__ */ jsx103(
33187
+ return /* @__PURE__ */ jsx104(
33163
33188
  Controller,
33164
33189
  {
33165
33190
  name: name2 ?? "",
33166
33191
  control: methods?.control,
33167
- render: ({ field }) => /* @__PURE__ */ jsx103("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs68("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33168
- /* @__PURE__ */ jsx103(
33192
+ render: ({ field }) => /* @__PURE__ */ jsx104("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs69("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
33193
+ /* @__PURE__ */ jsx104(
33169
33194
  "input",
33170
33195
  {
33171
33196
  ...field,
@@ -33184,7 +33209,7 @@ var ToggleButtonField = (props) => {
33184
33209
  checked: field.value ?? false
33185
33210
  }
33186
33211
  ),
33187
- /* @__PURE__ */ jsx103(
33212
+ /* @__PURE__ */ jsx104(
33188
33213
  "span",
33189
33214
  {
33190
33215
  style: {
@@ -33193,7 +33218,7 @@ var ToggleButtonField = (props) => {
33193
33218
  },
33194
33219
  className: `rounded-full transition duration-300
33195
33220
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
33196
- children: /* @__PURE__ */ jsx103(
33221
+ children: /* @__PURE__ */ jsx104(
33197
33222
  "span",
33198
33223
  {
33199
33224
  style: {
@@ -33217,8 +33242,8 @@ var ToggleButtonField = (props) => {
33217
33242
  };
33218
33243
 
33219
33244
  // src/widgets/basic/integer-field/integer.tsx
33220
- import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
33221
- import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
33245
+ import { useEffect as useEffect26, useRef as useRef19, useState as useState22 } from "react";
33246
+ import { Fragment as Fragment30, jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33222
33247
  var IntegerField = (props) => {
33223
33248
  const {
33224
33249
  name: name2,
@@ -33237,9 +33262,9 @@ var IntegerField = (props) => {
33237
33262
  const { t: t3 } = useI18n();
33238
33263
  if (!isForm && !isEditTable) {
33239
33264
  const displayValue = value ?? defaultValue;
33240
- return /* @__PURE__ */ jsx104("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33265
+ return /* @__PURE__ */ jsx105("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33241
33266
  }
33242
- return /* @__PURE__ */ jsx104(
33267
+ return /* @__PURE__ */ jsx105(
33243
33268
  Controller,
33244
33269
  {
33245
33270
  name: name2 || "",
@@ -33253,13 +33278,13 @@ var IntegerField = (props) => {
33253
33278
  fieldState: { error: error2 }
33254
33279
  }) => {
33255
33280
  const { setError, clearErrors } = methods;
33256
- const isDirtyRef = useRef18(false);
33257
- const inputRef = useRef18(null);
33258
- const lastCommittedValueRef = useRef18(null);
33259
- const [inputValue, setInputValue] = useState21(
33281
+ const isDirtyRef = useRef19(false);
33282
+ const inputRef = useRef19(null);
33283
+ const lastCommittedValueRef = useRef19(null);
33284
+ const [inputValue, setInputValue] = useState22(
33260
33285
  value2 !== void 0 && value2 !== null ? String(value2) : ""
33261
33286
  );
33262
- useEffect25(() => {
33287
+ useEffect26(() => {
33263
33288
  if (value2 !== void 0 && value2 !== null) {
33264
33289
  setInputValue(String(value2));
33265
33290
  clearErrors(name2);
@@ -33317,8 +33342,8 @@ var IntegerField = (props) => {
33317
33342
  inputRef.current?.blur();
33318
33343
  clearErrors(name2);
33319
33344
  };
33320
- return /* @__PURE__ */ jsxs69(Fragment30, { children: [
33321
- /* @__PURE__ */ jsx104(
33345
+ return /* @__PURE__ */ jsxs70(Fragment30, { children: [
33346
+ /* @__PURE__ */ jsx105(
33322
33347
  "input",
33323
33348
  {
33324
33349
  ref: inputRef,
@@ -33353,7 +33378,7 @@ var IntegerField = (props) => {
33353
33378
  `
33354
33379
  }
33355
33380
  ),
33356
- error2 && isEditTable && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33381
+ error2 && isEditTable && /* @__PURE__ */ jsx105("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33357
33382
  ] });
33358
33383
  }
33359
33384
  }
@@ -33361,7 +33386,7 @@ var IntegerField = (props) => {
33361
33386
  };
33362
33387
 
33363
33388
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33364
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33389
+ import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33365
33390
  var StatusDropdownField = (props) => {
33366
33391
  const {
33367
33392
  buttonRef,
@@ -33373,13 +33398,13 @@ var StatusDropdownField = (props) => {
33373
33398
  handleClick,
33374
33399
  colors: colors2
33375
33400
  } = props;
33376
- return /* @__PURE__ */ jsxs70(
33401
+ return /* @__PURE__ */ jsxs71(
33377
33402
  "div",
33378
33403
  {
33379
33404
  ref: buttonRef,
33380
33405
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
33381
33406
  children: [
33382
- /* @__PURE__ */ jsx105(
33407
+ /* @__PURE__ */ jsx106(
33383
33408
  "button",
33384
33409
  {
33385
33410
  type: "button",
@@ -33387,23 +33412,23 @@ var StatusDropdownField = (props) => {
33387
33412
  className: `transition-all rounded-full size-5 cursor-pointer shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] focus:!shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-[#dbe0e6] ${state == "normal" ? "bg-[#e9ecef]" : state == "done" ? "bg-primary" : "bg-red-500"}`
33388
33413
  }
33389
33414
  ),
33390
- isOpen && /* @__PURE__ */ jsx105("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
33415
+ isOpen && /* @__PURE__ */ jsx106("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
33391
33416
  const isActive = item[0] == state;
33392
- return /* @__PURE__ */ jsxs70(
33417
+ return /* @__PURE__ */ jsxs71(
33393
33418
  "div",
33394
33419
  {
33395
33420
  className: `cursor-pointer relative hover:bg-gray-200 pl-[12px] pr-[20px] py-[5px] flex items-center justify-start gap-2 ${isActive ? "bg-gray-100" : ""}`,
33396
33421
  onClick: () => handleClick(item[0]),
33397
33422
  children: [
33398
- /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
33399
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
33400
- /* @__PURE__ */ jsx105(
33423
+ /* @__PURE__ */ jsx106("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx106(CheckIcon, {}) }),
33424
+ /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2", children: [
33425
+ /* @__PURE__ */ jsx106(
33401
33426
  "div",
33402
33427
  {
33403
33428
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33404
33429
  }
33405
33430
  ),
33406
- /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
33431
+ /* @__PURE__ */ jsx106("span", { className: "text-sm", children: item[1] })
33407
33432
  ] })
33408
33433
  ]
33409
33434
  },
@@ -33416,9 +33441,9 @@ var StatusDropdownField = (props) => {
33416
33441
  };
33417
33442
 
33418
33443
  // src/widgets/basic/many2many-field/many2many.tsx
33419
- import { createPortal as createPortal6 } from "react-dom";
33420
- import { useEffect as useEffect26 } from "react";
33421
- import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33444
+ import { createPortal as createPortal5 } from "react-dom";
33445
+ import { useEffect as useEffect27 } from "react";
33446
+ import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33422
33447
  var Many2ManyField = (props) => {
33423
33448
  const { t: t3 } = useI18n();
33424
33449
  const {
@@ -33477,7 +33502,7 @@ var Many2ManyField = (props) => {
33477
33502
  clearSearch
33478
33503
  } = searchController;
33479
33504
  const { handleCheckBoxAll, checkedAll, selectedRowKeysRef } = tableHeadController;
33480
- useEffect26(() => {
33505
+ useEffect27(() => {
33481
33506
  const groupItems = Array.isArray(selectedTags) ? selectedTags.filter((item) => item.type === "group_by") : [];
33482
33507
  if (groupItems?.length > 0) {
33483
33508
  typeof setPageLimit === "function" && setPageLimit(80);
@@ -33491,8 +33516,8 @@ var Many2ManyField = (props) => {
33491
33516
  typeof setGroupByList === "function" && setGroupByList(null);
33492
33517
  };
33493
33518
  }, [selectedTags]);
33494
- return createPortal6(
33495
- /* @__PURE__ */ jsxs71(
33519
+ return createPortal5(
33520
+ /* @__PURE__ */ jsxs72(
33496
33521
  "div",
33497
33522
  {
33498
33523
  style: {
@@ -33500,8 +33525,8 @@ var Many2ManyField = (props) => {
33500
33525
  },
33501
33526
  className: "fixed bottom-0 left-0 right-0 top-0",
33502
33527
  children: [
33503
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33504
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
33528
+ /* @__PURE__ */ jsx107("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33529
+ /* @__PURE__ */ jsx107("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs72(
33505
33530
  "div",
33506
33531
  {
33507
33532
  style: {
@@ -33509,12 +33534,12 @@ var Many2ManyField = (props) => {
33509
33534
  },
33510
33535
  className: "relative p-4 flex flex-col gap-2 max-w-full lg:max-w-[1000px] lg:min-w-[1000px] transform rounded-3xl bg-[#FFF] min-h-[90%] max-h-[90%] h-fit",
33511
33536
  children: [
33512
- /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33513
- /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
33514
- /* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
33537
+ /* @__PURE__ */ jsxs72("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33538
+ /* @__PURE__ */ jsx107("div", { className: "text-[20px] font-semibold", children: title }),
33539
+ /* @__PURE__ */ jsx107("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx107(CloseIcon, {}) })
33515
33540
  ] }),
33516
- /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33517
- /* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
33541
+ /* @__PURE__ */ jsxs72("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33542
+ /* @__PURE__ */ jsx107("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx107(
33518
33543
  Search,
33519
33544
  {
33520
33545
  removeSearchItems,
@@ -33548,7 +33573,7 @@ var Many2ManyField = (props) => {
33548
33573
  groupByList
33549
33574
  }
33550
33575
  ) }),
33551
- /* @__PURE__ */ jsx106(
33576
+ /* @__PURE__ */ jsx107(
33552
33577
  PaginationView,
33553
33578
  {
33554
33579
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33565,20 +33590,20 @@ var Many2ManyField = (props) => {
33565
33590
  }
33566
33591
  )
33567
33592
  ] }),
33568
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx106("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx106("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx106(
33593
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx107("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx107("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx107(
33569
33594
  "div",
33570
33595
  {
33571
33596
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33572
- children: /* @__PURE__ */ jsx106("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx106("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx106(
33597
+ children: /* @__PURE__ */ jsx107("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx107("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx107(
33573
33598
  "div",
33574
33599
  {
33575
33600
  className: `flex w-full items-center h-full overflow-auto `,
33576
- children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
33601
+ children: /* @__PURE__ */ jsx107("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs72(
33577
33602
  "table",
33578
33603
  {
33579
33604
  className: `relative w-full bg-white custom-dropdown `,
33580
33605
  children: [
33581
- /* @__PURE__ */ jsx106(
33606
+ /* @__PURE__ */ jsx107(
33582
33607
  TableHead,
33583
33608
  {
33584
33609
  columns,
@@ -33588,7 +33613,7 @@ var Many2ManyField = (props) => {
33588
33613
  handleCheckBoxAll
33589
33614
  }
33590
33615
  ),
33591
- rows?.length > 0 ? /* @__PURE__ */ jsx106(
33616
+ rows?.length > 0 ? /* @__PURE__ */ jsx107(
33592
33617
  TableBody,
33593
33618
  {
33594
33619
  tableGroupController,
@@ -33628,16 +33653,16 @@ var Many2ManyField = (props) => {
33628
33653
  checkedAll,
33629
33654
  context
33630
33655
  }
33631
- ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
33656
+ ) : /* @__PURE__ */ jsx107("tr", { children: /* @__PURE__ */ jsx107(
33632
33657
  "td",
33633
33658
  {
33634
33659
  className: "w-full",
33635
33660
  colSpan: columns?.length + 2,
33636
- children: /* @__PURE__ */ jsx106(
33661
+ children: /* @__PURE__ */ jsx107(
33637
33662
  "div",
33638
33663
  {
33639
33664
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33640
- children: /* @__PURE__ */ jsx106(EmptyTable, {})
33665
+ children: /* @__PURE__ */ jsx107(EmptyTable, {})
33641
33666
  }
33642
33667
  )
33643
33668
  }
@@ -33648,9 +33673,9 @@ var Many2ManyField = (props) => {
33648
33673
  }
33649
33674
  ) }) })
33650
33675
  }
33651
- ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33652
- /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33653
- isDisplayCheckbox && /* @__PURE__ */ jsx106(
33676
+ ) }) }) : /* @__PURE__ */ jsx107(LayerLoading, {}),
33677
+ /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2 mt-auto", children: [
33678
+ isDisplayCheckbox && /* @__PURE__ */ jsx107(
33654
33679
  "button",
33655
33680
  {
33656
33681
  disabled: selectedRowKeys?.length === 0,
@@ -33660,7 +33685,7 @@ var Many2ManyField = (props) => {
33660
33685
  children: t3("choose")
33661
33686
  }
33662
33687
  ),
33663
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33688
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx107(
33664
33689
  "button",
33665
33690
  {
33666
33691
  type: "button",
@@ -33676,7 +33701,7 @@ var Many2ManyField = (props) => {
33676
33701
  children: t3("new")
33677
33702
  }
33678
33703
  ),
33679
- /* @__PURE__ */ jsx106(
33704
+ /* @__PURE__ */ jsx107(
33680
33705
  "button",
33681
33706
  {
33682
33707
  type: "button",
@@ -33697,16 +33722,16 @@ var Many2ManyField = (props) => {
33697
33722
  };
33698
33723
 
33699
33724
  // src/widgets/basic/many2one-field/many2one.tsx
33700
- import React18, { useEffect as useEffect27 } from "react";
33701
- import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33725
+ import React18, { useEffect as useEffect28 } from "react";
33726
+ import { Fragment as Fragment31, jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33702
33727
  var CustomMenuList2 = (props) => {
33703
33728
  const { t: t3 } = useI18n();
33704
33729
  const { options: options2, children, selectProps } = props;
33705
33730
  const { setIsShowModalMany2Many, searchable } = selectProps;
33706
33731
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33707
- return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33732
+ return /* @__PURE__ */ jsxs73(components.MenuList, { ...props, className: "z-[99]", children: [
33708
33733
  limitedChildren,
33709
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33734
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs73(
33710
33735
  "button",
33711
33736
  {
33712
33737
  type: "button",
@@ -33749,14 +33774,14 @@ var Many2OneField = (props) => {
33749
33774
  const { t: t3 } = useI18n();
33750
33775
  if (!isForm && !isEditTable) {
33751
33776
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33752
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33777
+ return /* @__PURE__ */ jsxs73(Fragment31, { children: [
33753
33778
  allowShowDetail && renderDetail({
33754
33779
  idToolTip: String(name2) + Number(index4),
33755
33780
  model: options2?.model ?? relation,
33756
33781
  context: contextObject,
33757
33782
  idForm: id
33758
33783
  }),
33759
- /* @__PURE__ */ jsx107(
33784
+ /* @__PURE__ */ jsx108(
33760
33785
  "span",
33761
33786
  {
33762
33787
  className: "cursor-pointer",
@@ -33767,20 +33792,20 @@ var Many2OneField = (props) => {
33767
33792
  )
33768
33793
  ] });
33769
33794
  }
33770
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33795
+ return /* @__PURE__ */ jsxs73(Fragment31, { children: [
33771
33796
  allowShowDetail && renderDetail({
33772
33797
  idToolTip: String(name2),
33773
33798
  model: options2?.model ?? relation,
33774
33799
  context: contextObject,
33775
33800
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33776
33801
  }),
33777
- /* @__PURE__ */ jsx107(
33802
+ /* @__PURE__ */ jsx108(
33778
33803
  "div",
33779
33804
  {
33780
33805
  id: name2,
33781
33806
  "data-tooltip-id": name2,
33782
33807
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33783
- children: /* @__PURE__ */ jsx107(
33808
+ children: /* @__PURE__ */ jsx108(
33784
33809
  Controller,
33785
33810
  {
33786
33811
  name: name2 ?? "",
@@ -33800,13 +33825,13 @@ var Many2OneField = (props) => {
33800
33825
  const selectedOption = isForm && options2?.service && options2?.type && options2?.model ? tempSelectedOption : tempSelectedOption && options2?.length > 0 ? options2.find(
33801
33826
  (option) => option.value === tempSelectedOption?.value
33802
33827
  ) : currentValue ? currentValue : null;
33803
- useEffect27(() => {
33828
+ useEffect28(() => {
33804
33829
  if (error2 && selectedOption) {
33805
33830
  methods?.clearErrors(name2);
33806
33831
  }
33807
33832
  }, [selectedOption]);
33808
- return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33809
- /* @__PURE__ */ jsx107(
33833
+ return /* @__PURE__ */ jsxs73("div", { className: "h-full", children: [
33834
+ /* @__PURE__ */ jsx108(
33810
33835
  StateManagedSelect$1,
33811
33836
  {
33812
33837
  menuShouldScrollIntoView: false,
@@ -33882,7 +33907,7 @@ var Many2OneField = (props) => {
33882
33907
  })
33883
33908
  },
33884
33909
  components: {
33885
- MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33910
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx108(
33886
33911
  CustomMenuList2,
33887
33912
  {
33888
33913
  ...menuListProps,
@@ -33893,13 +33918,13 @@ var Many2OneField = (props) => {
33893
33918
  }
33894
33919
  ),
33895
33920
  IndicatorSeparator: () => null,
33896
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33921
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx108(components.DropdownIndicator, { ...props2 })
33897
33922
  },
33898
33923
  isDisabled: readonly,
33899
33924
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33900
33925
  }
33901
33926
  ),
33902
- !isEditTable && error2 && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33927
+ !isEditTable && error2 && /* @__PURE__ */ jsx108("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33903
33928
  ] });
33904
33929
  }
33905
33930
  }
@@ -33910,7 +33935,7 @@ var Many2OneField = (props) => {
33910
33935
  };
33911
33936
 
33912
33937
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33913
- import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33938
+ import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33914
33939
  var StatusbarDurationField = (props) => {
33915
33940
  const {
33916
33941
  disabled,
@@ -33920,14 +33945,14 @@ var StatusbarDurationField = (props) => {
33920
33945
  defaultValue,
33921
33946
  setModalStatus
33922
33947
  } = props;
33923
- return /* @__PURE__ */ jsx108(
33948
+ return /* @__PURE__ */ jsx109(
33924
33949
  "div",
33925
33950
  {
33926
33951
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33927
- children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33928
- /* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33952
+ children: /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-[24px]", children: [
33953
+ /* @__PURE__ */ jsx109("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33929
33954
  const value = option?.id === defaultValue;
33930
- return /* @__PURE__ */ jsxs73(
33955
+ return /* @__PURE__ */ jsxs74(
33931
33956
  "label",
33932
33957
  {
33933
33958
  onClick: () => !disabled && handleClick(option.id),
@@ -33937,7 +33962,7 @@ var StatusbarDurationField = (props) => {
33937
33962
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33938
33963
  `,
33939
33964
  children: [
33940
- /* @__PURE__ */ jsx108(
33965
+ /* @__PURE__ */ jsx109(
33941
33966
  "input",
33942
33967
  {
33943
33968
  type: "radio",
@@ -33947,7 +33972,7 @@ var StatusbarDurationField = (props) => {
33947
33972
  }
33948
33973
  ),
33949
33974
  option?.name,
33950
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33975
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx109(
33951
33976
  "div",
33952
33977
  {
33953
33978
  className: `absolute top-[5px] bg-[#dee2e6] z-[2] -right-4 w-[30px] h-[30px] border-t-4 border-r-4 border-white transform rotate-45 group-hover:bg-[#ced4da]
@@ -33962,14 +33987,14 @@ var StatusbarDurationField = (props) => {
33962
33987
  }) }),
33963
33988
  dataResponse?.records?.some(
33964
33989
  (item) => item?.fold && item.id !== defaultValue
33965
- ) && /* @__PURE__ */ jsxs73(
33990
+ ) && /* @__PURE__ */ jsxs74(
33966
33991
  "div",
33967
33992
  {
33968
33993
  onClick: () => setModalStatus(!modelStatus),
33969
33994
  className: "w-[24px] h-[24px] cursor-pointer relative",
33970
33995
  children: [
33971
- /* @__PURE__ */ jsx108(MoreIcon, {}),
33972
- modelStatus && /* @__PURE__ */ jsx108(
33996
+ /* @__PURE__ */ jsx109(MoreIcon, {}),
33997
+ modelStatus && /* @__PURE__ */ jsx109(
33973
33998
  "div",
33974
33999
  {
33975
34000
  onClick: (e3) => e3.stopPropagation(),
@@ -33978,7 +34003,7 @@ var StatusbarDurationField = (props) => {
33978
34003
  (item) => item?.fold && item.id !== defaultValue
33979
34004
  )?.map((option) => {
33980
34005
  const value = option?.id === defaultValue;
33981
- return /* @__PURE__ */ jsx108(
34006
+ return /* @__PURE__ */ jsx109(
33982
34007
  "div",
33983
34008
  {
33984
34009
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -34000,14 +34025,14 @@ var StatusbarDurationField = (props) => {
34000
34025
 
34001
34026
  // src/widgets/basic/status-bar-field/option/option.tsx
34002
34027
  import { useMemo as useMemo11 } from "react";
34003
- import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
34028
+ import { Fragment as Fragment32, jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
34004
34029
  var StatusBarOptionField = (props) => {
34005
34030
  const { selection, defaultValue } = props;
34006
34031
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
34007
34032
  const indexInProgress = memoizedStatusOptions?.findIndex(
34008
34033
  (option) => option?.[0] === defaultValue
34009
34034
  );
34010
- return /* @__PURE__ */ jsx109(
34035
+ return /* @__PURE__ */ jsx110(
34011
34036
  "div",
34012
34037
  {
34013
34038
  style: {
@@ -34016,8 +34041,8 @@ var StatusBarOptionField = (props) => {
34016
34041
  flexWrap: "wrap"
34017
34042
  },
34018
34043
  children: memoizedStatusOptions?.map((option, index4) => {
34019
- return /* @__PURE__ */ jsxs74(Fragment32, { children: [
34020
- /* @__PURE__ */ jsxs74(
34044
+ return /* @__PURE__ */ jsxs75(Fragment32, { children: [
34045
+ /* @__PURE__ */ jsxs75(
34021
34046
  "div",
34022
34047
  {
34023
34048
  style: {
@@ -34035,7 +34060,7 @@ var StatusBarOptionField = (props) => {
34035
34060
  boxShadow: index4 === indexInProgress ? "0 1px 2px 0 rgba(51, 51, 51, 0.04), 0 2px 4px 0 rgba(51, 51, 51, 0.04), 0 4px 8px -2px rgba(51, 51, 51, 0.06), 0 0 0 1px rgba(51, 51, 51, 0.04), 0 -1px 1px -0.5px rgba(51, 51, 51, 0.06) inset" : ""
34036
34061
  },
34037
34062
  children: [
34038
- /* @__PURE__ */ jsx109(
34063
+ /* @__PURE__ */ jsx110(
34039
34064
  "span",
34040
34065
  {
34041
34066
  style: {
@@ -34047,10 +34072,10 @@ var StatusBarOptionField = (props) => {
34047
34072
  alignItems: "center",
34048
34073
  borderRadius: "100%"
34049
34074
  },
34050
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx109(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx109(ICCircle, {}) : /* @__PURE__ */ jsx109(ICMinus, {})
34075
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx110(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx110(ICCircle, {}) : /* @__PURE__ */ jsx110(ICMinus, {})
34051
34076
  }
34052
34077
  ),
34053
- /* @__PURE__ */ jsx109(
34078
+ /* @__PURE__ */ jsx110(
34054
34079
  "span",
34055
34080
  {
34056
34081
  style: {
@@ -34063,7 +34088,7 @@ var StatusBarOptionField = (props) => {
34063
34088
  },
34064
34089
  option?.[0]
34065
34090
  ),
34066
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
34091
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx110(
34067
34092
  "div",
34068
34093
  {
34069
34094
  style: {
@@ -34079,7 +34104,7 @@ var StatusBarOptionField = (props) => {
34079
34104
  );
34080
34105
  };
34081
34106
  var ICMinus = () => {
34082
- return /* @__PURE__ */ jsx109(
34107
+ return /* @__PURE__ */ jsx110(
34083
34108
  "svg",
34084
34109
  {
34085
34110
  xmlns: "http://www.w3.org/2000/svg",
@@ -34087,7 +34112,7 @@ var ICMinus = () => {
34087
34112
  height: "16",
34088
34113
  viewBox: "0 0 16 16",
34089
34114
  fill: "none",
34090
- children: /* @__PURE__ */ jsx109(
34115
+ children: /* @__PURE__ */ jsx110(
34091
34116
  "path",
34092
34117
  {
34093
34118
  d: "M4 8H12",
@@ -34101,7 +34126,7 @@ var ICMinus = () => {
34101
34126
  );
34102
34127
  };
34103
34128
  var ICCircle = () => {
34104
- return /* @__PURE__ */ jsx109(
34129
+ return /* @__PURE__ */ jsx110(
34105
34130
  "svg",
34106
34131
  {
34107
34132
  xmlns: "http://www.w3.org/2000/svg",
@@ -34109,12 +34134,12 @@ var ICCircle = () => {
34109
34134
  height: "8",
34110
34135
  viewBox: "0 0 8 8",
34111
34136
  fill: "none",
34112
- children: /* @__PURE__ */ jsx109("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
34137
+ children: /* @__PURE__ */ jsx110("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
34113
34138
  }
34114
34139
  );
34115
34140
  };
34116
34141
  var ICCheck = () => {
34117
- return /* @__PURE__ */ jsx109(
34142
+ return /* @__PURE__ */ jsx110(
34118
34143
  "svg",
34119
34144
  {
34120
34145
  xmlns: "http://www.w3.org/2000/svg",
@@ -34122,7 +34147,7 @@ var ICCheck = () => {
34122
34147
  height: "16",
34123
34148
  viewBox: "0 0 16 16",
34124
34149
  fill: "none",
34125
- children: /* @__PURE__ */ jsx109(
34150
+ children: /* @__PURE__ */ jsx110(
34126
34151
  "path",
34127
34152
  {
34128
34153
  d: "M13.3408 5.23535L13.252 5.32324L6.88867 11.6875L6.7998 11.7764L6.71191 11.6875L2.89258 7.86914L2.80469 7.78125L2.89258 7.69238L3.74121 6.84375L3.83008 6.75586L6.7998 9.72559L12.2266 4.29785L12.3154 4.20996L13.3408 5.23535Z",
@@ -34136,7 +34161,7 @@ var ICCheck = () => {
34136
34161
  };
34137
34162
 
34138
34163
  // src/widgets/basic/date-option-field/date-option.tsx
34139
- import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
34164
+ import { jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
34140
34165
  var DateOptionField = (props) => {
34141
34166
  const {
34142
34167
  name: name2,
@@ -34147,19 +34172,19 @@ var DateOptionField = (props) => {
34147
34172
  string,
34148
34173
  onChange: onChange2
34149
34174
  } = props;
34150
- return /* @__PURE__ */ jsx110(
34175
+ return /* @__PURE__ */ jsx111(
34151
34176
  Controller,
34152
34177
  {
34153
34178
  name: name2 ?? "",
34154
34179
  control: methods?.control,
34155
- render: ({ field }) => /* @__PURE__ */ jsxs75(
34180
+ render: ({ field }) => /* @__PURE__ */ jsxs76(
34156
34181
  "label",
34157
34182
  {
34158
34183
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
34159
34184
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
34160
34185
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
34161
34186
  children: [
34162
- /* @__PURE__ */ jsx110(
34187
+ /* @__PURE__ */ jsx111(
34163
34188
  "input",
34164
34189
  {
34165
34190
  type: "checkbox",
@@ -34281,6 +34306,7 @@ export {
34281
34306
  TriangleIcon,
34282
34307
  UnArchiveIcon,
34283
34308
  VectorIcon,
34309
+ VideoIcon,
34284
34310
  VideoPlayer,
34285
34311
  ZipIcon,
34286
34312
  checkIsImageLink,