@fctc/sme-widget-ui 1.9.9 → 2.0.0

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
@@ -4297,7 +4297,7 @@ var require_react_is_development = __commonJS({
4297
4297
  var ContextProvider = REACT_PROVIDER_TYPE;
4298
4298
  var Element2 = REACT_ELEMENT_TYPE;
4299
4299
  var ForwardRef = REACT_FORWARD_REF_TYPE;
4300
- var Fragment33 = REACT_FRAGMENT_TYPE;
4300
+ var Fragment34 = REACT_FRAGMENT_TYPE;
4301
4301
  var Lazy = REACT_LAZY_TYPE;
4302
4302
  var Memo = REACT_MEMO_TYPE;
4303
4303
  var Portal2 = REACT_PORTAL_TYPE;
@@ -4356,7 +4356,7 @@ var require_react_is_development = __commonJS({
4356
4356
  exports.ContextProvider = ContextProvider;
4357
4357
  exports.Element = Element2;
4358
4358
  exports.ForwardRef = ForwardRef;
4359
- exports.Fragment = Fragment33;
4359
+ exports.Fragment = Fragment34;
4360
4360
  exports.Lazy = Lazy;
4361
4361
  exports.Memo = Memo;
4362
4362
  exports.Portal = Portal2;
@@ -6706,9 +6706,9 @@ var ImageIcon = () => {
6706
6706
  );
6707
6707
  };
6708
6708
 
6709
- // src/icons/video-icon.tsx
6709
+ // src/icons/json-file-icon.tsx
6710
6710
  import { jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
6711
- var VideoIcon = () => {
6711
+ var JSONFileIcon = () => {
6712
6712
  return /* @__PURE__ */ jsxs21(
6713
6713
  "svg",
6714
6714
  {
@@ -6717,78 +6717,128 @@ var VideoIcon = () => {
6717
6717
  height: "24",
6718
6718
  viewBox: "0 0 24 24",
6719
6719
  fill: "none",
6720
+ stroke: "currentColor",
6721
+ strokeWidth: "2",
6722
+ strokeLinecap: "round",
6723
+ strokeLinejoin: "round",
6724
+ "aria-hidden": "true",
6720
6725
  children: [
6721
- /* @__PURE__ */ jsx39(
6726
+ /* @__PURE__ */ jsx39("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
6727
+ /* @__PURE__ */ jsx39("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
6728
+ /* @__PURE__ */ jsx39("path", { d: "M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1" }),
6729
+ /* @__PURE__ */ jsx39("path", { d: "M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1" })
6730
+ ]
6731
+ }
6732
+ );
6733
+ };
6734
+
6735
+ // src/icons/default-file-icon.tsx
6736
+ import { jsx as jsx40, jsxs as jsxs22 } from "react/jsx-runtime";
6737
+ var DefaultFileIcon = () => {
6738
+ return /* @__PURE__ */ jsxs22(
6739
+ "svg",
6740
+ {
6741
+ xmlns: "http://www.w3.org/2000/svg",
6742
+ width: "20",
6743
+ height: "20",
6744
+ viewBox: "0 0 24 24",
6745
+ fill: "none",
6746
+ stroke: "currentColor",
6747
+ "stroke-width": "2",
6748
+ strokeLinecap: "round",
6749
+ strokeLinejoin: "round",
6750
+ "aria-hidden": "true",
6751
+ children: [
6752
+ /* @__PURE__ */ jsx40("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
6753
+ /* @__PURE__ */ jsx40("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" })
6754
+ ]
6755
+ }
6756
+ );
6757
+ };
6758
+
6759
+ // src/icons/video-icon.tsx
6760
+ import { jsx as jsx41, jsxs as jsxs23 } from "react/jsx-runtime";
6761
+ var VideoIcon = () => {
6762
+ return /* @__PURE__ */ jsxs23(
6763
+ "svg",
6764
+ {
6765
+ xmlns: "http://www.w3.org/2000/svg",
6766
+ width: "24",
6767
+ height: "24",
6768
+ viewBox: "0 0 24 24",
6769
+ fill: "none",
6770
+ children: [
6771
+ /* @__PURE__ */ jsx41(
6722
6772
  "path",
6723
6773
  {
6724
6774
  d: "M22.9996 3.60859L22.9995 20.3914C22.9995 21.2798 22.2794 22 21.391 22H2.61004C1.72164 22 1.00145 21.2798 1.00145 20.3914V3.60859C1.00145 2.72019 1.72164 2 2.61004 2H21.391C22.2794 2 22.9996 2.72019 22.9996 3.60859Z",
6725
6775
  fill: "#435E88"
6726
6776
  }
6727
6777
  ),
6728
- /* @__PURE__ */ jsx39(
6778
+ /* @__PURE__ */ jsx41(
6729
6779
  "path",
6730
6780
  {
6731
6781
  d: "M22.9974 3.60553L22.9981 20.3918C22.9981 21.2786 22.2797 22.0004 21.3895 22.0004H2.60863C1.72185 22.0004 1 21.2786 1 20.3918L21.3888 2.00039C22.2791 2.00039 22.9974 2.71871 22.9974 3.60553Z",
6732
6782
  fill: "#33527D"
6733
6783
  }
6734
6784
  ),
6735
- /* @__PURE__ */ jsx39(
6785
+ /* @__PURE__ */ jsx41(
6736
6786
  "path",
6737
6787
  {
6738
6788
  d: "M4.96732 16.3783C5.15049 16.3785 5.29935 16.5271 5.29935 16.7103V18.6234C5.29935 18.8067 5.15049 18.9552 4.96732 18.9555H3.05326C2.8699 18.9555 2.72123 18.8068 2.72123 18.6234V16.7103C2.72123 16.527 2.8699 16.3783 3.05326 16.3783H4.96732Z",
6739
6789
  fill: "white"
6740
6790
  }
6741
6791
  ),
6742
- /* @__PURE__ */ jsx39(
6792
+ /* @__PURE__ */ jsx41(
6743
6793
  "path",
6744
6794
  {
6745
6795
  d: "M20.9478 16.3783C21.1311 16.3783 21.2798 16.527 21.2798 16.7103V18.6234C21.2798 18.8068 21.1311 18.9555 20.9478 18.9555H19.0347C18.8513 18.9555 18.7027 18.8068 18.7027 18.6234V16.7103C18.7027 16.527 18.8513 16.3783 19.0347 16.3783H20.9478Z",
6746
6796
  fill: "white"
6747
6797
  }
6748
6798
  ),
6749
- /* @__PURE__ */ jsx39(
6799
+ /* @__PURE__ */ jsx41(
6750
6800
  "path",
6751
6801
  {
6752
6802
  d: "M9.5933 9.05605C9.59356 8.59569 10.1065 8.32141 10.4898 8.57656L15.147 11.6762C15.49 11.9045 15.49 12.4088 15.147 12.6371L10.4898 15.7367C10.1065 15.9919 9.5935 15.7176 9.5933 15.2572V9.05605Z",
6753
6803
  fill: "white"
6754
6804
  }
6755
6805
  ),
6756
- /* @__PURE__ */ jsx39(
6806
+ /* @__PURE__ */ jsx41(
6757
6807
  "path",
6758
6808
  {
6759
6809
  d: "M4.96732 12.1596C5.15033 12.1598 5.29909 12.3076 5.29935 12.4906V14.4047C5.29935 14.5879 5.15049 14.7365 4.96732 14.7367H3.05326C2.8699 14.7367 2.72123 14.588 2.72123 14.4047V12.4906C2.72149 12.3075 2.87006 12.1596 3.05326 12.1596H4.96732Z",
6760
6810
  fill: "white"
6761
6811
  }
6762
6812
  ),
6763
- /* @__PURE__ */ jsx39(
6813
+ /* @__PURE__ */ jsx41(
6764
6814
  "path",
6765
6815
  {
6766
6816
  d: "M20.9478 12.1596C21.131 12.1596 21.2796 12.3075 21.2798 12.4906V14.4047C21.2798 14.588 21.1311 14.7367 20.9478 14.7367H19.0347C18.8513 14.7367 18.7027 14.588 18.7027 14.4047V12.4906C18.7029 12.3075 18.8515 12.1596 19.0347 12.1596H20.9478Z",
6767
6817
  fill: "white"
6768
6818
  }
6769
6819
  ),
6770
- /* @__PURE__ */ jsx39(
6820
+ /* @__PURE__ */ jsx41(
6771
6821
  "path",
6772
6822
  {
6773
6823
  d: "M4.96732 7.93789C5.15034 7.93811 5.29912 8.0869 5.29935 8.26992V10.184C5.29935 10.3672 5.15049 10.5158 4.96732 10.516H3.05326C2.8699 10.516 2.72123 10.3673 2.72123 10.184V8.26992C2.72146 8.08676 2.87005 7.93789 3.05326 7.93789H4.96732Z",
6774
6824
  fill: "white"
6775
6825
  }
6776
6826
  ),
6777
- /* @__PURE__ */ jsx39(
6827
+ /* @__PURE__ */ jsx41(
6778
6828
  "path",
6779
6829
  {
6780
6830
  d: "M20.9478 7.93789C21.131 7.93789 21.2796 8.08676 21.2798 8.26992V10.184C21.2798 10.3673 21.1311 10.516 20.9478 10.516H19.0347C18.8513 10.516 18.7027 10.3673 18.7027 10.184V8.26992C18.7029 8.08676 18.8515 7.93789 19.0347 7.93789H20.9478Z",
6781
6831
  fill: "white"
6782
6832
  }
6783
6833
  ),
6784
- /* @__PURE__ */ jsx39(
6834
+ /* @__PURE__ */ jsx41(
6785
6835
  "path",
6786
6836
  {
6787
6837
  d: "M4.96732 3.71914C5.15038 3.71936 5.29918 3.8681 5.29935 4.05117V5.96523C5.29935 6.14845 5.15049 6.29703 4.96732 6.29726H3.05326C2.8699 6.29726 2.72123 6.14859 2.72123 5.96523V4.05117C2.72141 3.86796 2.87001 3.71914 3.05326 3.71914H4.96732Z",
6788
6838
  fill: "white"
6789
6839
  }
6790
6840
  ),
6791
- /* @__PURE__ */ jsx39(
6841
+ /* @__PURE__ */ jsx41(
6792
6842
  "path",
6793
6843
  {
6794
6844
  d: "M20.9478 3.71914C21.131 3.71914 21.2796 3.86796 21.2798 4.05117V5.96523C21.2798 6.14859 21.1311 6.29726 20.9478 6.29726H19.0347C18.8513 6.29726 18.7027 6.14859 18.7027 5.96523V4.05117C18.7029 3.86796 18.8515 3.71914 19.0347 3.71914H20.9478Z",
@@ -9858,7 +9908,7 @@ instance.use(Browser).use(initReactI18next).init({
9858
9908
  var i18n_default = instance;
9859
9909
 
9860
9910
  // src/provider/index.tsx
9861
- import { jsx as jsx40 } from "react/jsx-runtime";
9911
+ import { jsx as jsx42 } from "react/jsx-runtime";
9862
9912
  var I18nContext2 = createContext2(null);
9863
9913
  var I18nProvider = ({
9864
9914
  children,
@@ -9870,7 +9920,7 @@ var I18nProvider = ({
9870
9920
  }
9871
9921
  }, [lang]);
9872
9922
  const { t: t3 } = useTranslation();
9873
- return /* @__PURE__ */ jsx40(
9923
+ return /* @__PURE__ */ jsx42(
9874
9924
  I18nContext2.Provider,
9875
9925
  {
9876
9926
  value: {
@@ -9878,7 +9928,7 @@ var I18nProvider = ({
9878
9928
  t: t3,
9879
9929
  changeLanguage: i18n_default.changeLanguage
9880
9930
  },
9881
- children: /* @__PURE__ */ jsx40(I18nextProvider, { i18n: i18n_default, children })
9931
+ children: /* @__PURE__ */ jsx42(I18nextProvider, { i18n: i18n_default, children })
9882
9932
  }
9883
9933
  );
9884
9934
  };
@@ -10446,11 +10496,11 @@ var usePagination = ({
10446
10496
  };
10447
10497
 
10448
10498
  // src/icons/common.tsx
10449
- import { jsx as jsx41 } from "react/jsx-runtime";
10450
- 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" }) });
10499
+ import { jsx as jsx43 } from "react/jsx-runtime";
10500
+ var IcArrow = () => /* @__PURE__ */ jsx43("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx43("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" }) });
10451
10501
 
10452
10502
  // src/widgets/advanced/pagination/pagination-view.tsx
10453
- import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
10503
+ import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
10454
10504
  var PaginationView = (props) => {
10455
10505
  const {
10456
10506
  displayPageNumberDots,
@@ -10483,25 +10533,25 @@ var PaginationView = (props) => {
10483
10533
  let lastPage = paginationRange[paginationRange.length - 1];
10484
10534
  const startPage = currentPage * pageSize + 1;
10485
10535
  const endPage = Math.min((currentPage + 1) * pageSize, totalCount);
10486
- return /* @__PURE__ */ jsxs22("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10487
- !displayPageNumberDots && /* @__PURE__ */ jsxs22("li", { className: "pagination-item px-0", children: [
10536
+ return /* @__PURE__ */ jsxs24("ul", { className: `pagination-container rounded-lg ${className}`, children: [
10537
+ !displayPageNumberDots && /* @__PURE__ */ jsxs24("li", { className: "pagination-item px-0", children: [
10488
10538
  startPage,
10489
10539
  " - ",
10490
10540
  endPage,
10491
10541
  " / ",
10492
10542
  totalCount
10493
10543
  ] }),
10494
- /* @__PURE__ */ jsx42(
10544
+ /* @__PURE__ */ jsx44(
10495
10545
  "li",
10496
10546
  {
10497
10547
  className: `pagination-item ${currentPage === 0 && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10498
10548
  onClick: onPrevious,
10499
- children: /* @__PURE__ */ jsx42("div", { className: "arrow left", children: /* @__PURE__ */ jsx42(IcArrow, {}) })
10549
+ children: /* @__PURE__ */ jsx44("div", { className: "arrow left", children: /* @__PURE__ */ jsx44(IcArrow, {}) })
10500
10550
  }
10501
10551
  ),
10502
10552
  displayPageNumberDots && paginationRange.map((pageNumber) => {
10503
10553
  if (pageNumber === DOTS) {
10504
- return /* @__PURE__ */ jsx42(
10554
+ return /* @__PURE__ */ jsx44(
10505
10555
  "li",
10506
10556
  {
10507
10557
  className: "pagination-item dots",
@@ -10510,7 +10560,7 @@ var PaginationView = (props) => {
10510
10560
  "pagination" + pageNumber
10511
10561
  );
10512
10562
  }
10513
- return /* @__PURE__ */ jsx42(
10563
+ return /* @__PURE__ */ jsx44(
10514
10564
  "li",
10515
10565
  {
10516
10566
  className: `pagination-item ${pageNumber - 1 === currentPage && "selected"}`,
@@ -10520,12 +10570,12 @@ var PaginationView = (props) => {
10520
10570
  "pagination" + pageNumber
10521
10571
  );
10522
10572
  }),
10523
- /* @__PURE__ */ jsx42(
10573
+ /* @__PURE__ */ jsx44(
10524
10574
  "li",
10525
10575
  {
10526
10576
  className: `pagination-item ${currentPage + 1 === lastPage && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
10527
10577
  onClick: onNext,
10528
- children: /* @__PURE__ */ jsx42("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx42(IcArrow, {}) })
10578
+ children: /* @__PURE__ */ jsx44("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx44(IcArrow, {}) })
10529
10579
  }
10530
10580
  )
10531
10581
  ] });
@@ -10535,7 +10585,7 @@ var PaginationView = (props) => {
10535
10585
  import { useState as useState3 } from "react";
10536
10586
 
10537
10587
  // src/widgets/advanced/table/table-group.tsx
10538
- import { Fragment as Fragment2, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
10588
+ import { Fragment as Fragment2, jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
10539
10589
  var TableGroup = (props) => {
10540
10590
  const { t: t3 } = useI18n();
10541
10591
  const {
@@ -10585,28 +10635,28 @@ var TableGroup = (props) => {
10585
10635
  setSelectedRowKeys
10586
10636
  });
10587
10637
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
10588
- return /* @__PURE__ */ jsxs23(Fragment2, { children: [
10589
- /* @__PURE__ */ jsxs23(
10638
+ return /* @__PURE__ */ jsxs25(Fragment2, { children: [
10639
+ /* @__PURE__ */ jsxs25(
10590
10640
  "tr",
10591
10641
  {
10592
10642
  draggable: true,
10593
10643
  className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
10594
10644
  onClick: onExpandChildGroup,
10595
10645
  children: [
10596
- /* @__PURE__ */ jsx43(
10646
+ /* @__PURE__ */ jsx45(
10597
10647
  "td",
10598
10648
  {
10599
10649
  colSpan: colEmptyGroup.fromStart ?? 1,
10600
10650
  style: { display: "table-cell" },
10601
10651
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
10602
- children: /* @__PURE__ */ jsxs23(
10652
+ children: /* @__PURE__ */ jsxs25(
10603
10653
  "div",
10604
10654
  {
10605
10655
  style: { paddingLeft: leftPadding },
10606
10656
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
10607
10657
  children: [
10608
- /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
10609
- /* @__PURE__ */ jsx43(
10658
+ /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
10659
+ /* @__PURE__ */ jsx45(
10610
10660
  TriangleIcon,
10611
10661
  {
10612
10662
  style: {
@@ -10615,15 +10665,15 @@ var TableGroup = (props) => {
10615
10665
  className: `w-2 h-2 text-button_primary `
10616
10666
  }
10617
10667
  ),
10618
- /* @__PURE__ */ jsx43("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10668
+ /* @__PURE__ */ jsx45("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
10619
10669
  ] }),
10620
- /* @__PURE__ */ jsx43(
10670
+ /* @__PURE__ */ jsx45(
10621
10671
  "div",
10622
10672
  {
10623
10673
  onClick: (e3) => {
10624
10674
  e3.stopPropagation();
10625
10675
  },
10626
- children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx43(
10676
+ children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx45(
10627
10677
  PaginationView,
10628
10678
  {
10629
10679
  className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
@@ -10644,7 +10694,7 @@ var TableGroup = (props) => {
10644
10694
  columns?.map((col) => {
10645
10695
  if (col?.optional === "hide") return;
10646
10696
  if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
10647
- return /* @__PURE__ */ jsx43(
10697
+ return /* @__PURE__ */ jsx45(
10648
10698
  "td",
10649
10699
  {
10650
10700
  className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
@@ -10662,7 +10712,7 @@ var TableGroup = (props) => {
10662
10712
  ]
10663
10713
  }
10664
10714
  ),
10665
- isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx43(
10715
+ isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx45(
10666
10716
  TableBodyRow,
10667
10717
  {
10668
10718
  columns: columnsGroup,
@@ -10692,7 +10742,7 @@ var TableGroup = (props) => {
10692
10742
 
10693
10743
  // src/widgets/advanced/table/table-row.tsx
10694
10744
  import { useEffect as useEffect5, useMemo as useMemo3, useRef as useRef4 } from "react";
10695
- import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
10745
+ import { Fragment as Fragment3, jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
10696
10746
  var Row = (props) => {
10697
10747
  const {
10698
10748
  row,
@@ -10758,17 +10808,17 @@ var Row = (props) => {
10758
10808
  setIsAutoSelect(false);
10759
10809
  }
10760
10810
  }, [checkedAll]);
10761
- return /* @__PURE__ */ jsx44(
10811
+ return /* @__PURE__ */ jsx46(
10762
10812
  "tr",
10763
10813
  {
10764
10814
  "data-row-id": row?.id,
10765
10815
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10766
- children: /* @__PURE__ */ jsxs24(Fragment3, { children: [
10767
- isDisplayCheckbox && /* @__PURE__ */ jsx44(
10816
+ children: /* @__PURE__ */ jsxs26(Fragment3, { children: [
10817
+ isDisplayCheckbox && /* @__PURE__ */ jsx46(
10768
10818
  "td",
10769
10819
  {
10770
10820
  className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
10771
- children: /* @__PURE__ */ jsx44(
10821
+ children: /* @__PURE__ */ jsx46(
10772
10822
  "input",
10773
10823
  {
10774
10824
  type: "checkbox",
@@ -10781,9 +10831,9 @@ var Row = (props) => {
10781
10831
  ),
10782
10832
  columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
10783
10833
  if (row?.display_type === "line_section" && col.key !== "display_name") {
10784
- return /* @__PURE__ */ jsx44("td", {});
10834
+ return /* @__PURE__ */ jsx46("td", {});
10785
10835
  }
10786
- return /* @__PURE__ */ jsx44(
10836
+ return /* @__PURE__ */ jsx46(
10787
10837
  "td",
10788
10838
  {
10789
10839
  colSpan: 1,
@@ -10802,7 +10852,7 @@ var Row = (props) => {
10802
10852
  `${col.name}____${index4}`
10803
10853
  );
10804
10854
  }),
10805
- 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(
10855
+ typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx46("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx46("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx46(
10806
10856
  "button",
10807
10857
  {
10808
10858
  type: "button",
@@ -10810,7 +10860,7 @@ var Row = (props) => {
10810
10860
  onClick: () => {
10811
10861
  onRemoveRow(indexRow);
10812
10862
  },
10813
- children: /* @__PURE__ */ jsx44(DeleteIcon, {})
10863
+ children: /* @__PURE__ */ jsx46(DeleteIcon, {})
10814
10864
  }
10815
10865
  ) }) })
10816
10866
  ] })
@@ -10820,7 +10870,7 @@ var Row = (props) => {
10820
10870
  };
10821
10871
 
10822
10872
  // src/widgets/advanced/table/table-body.tsx
10823
- import { jsx as jsx45 } from "react/jsx-runtime";
10873
+ import { jsx as jsx47 } from "react/jsx-runtime";
10824
10874
  var TableBodyRow = (props) => {
10825
10875
  const {
10826
10876
  rows,
@@ -10850,7 +10900,7 @@ var TableBodyRow = (props) => {
10850
10900
  isEditTable
10851
10901
  } = props;
10852
10902
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10853
- return typeTable === "group" ? /* @__PURE__ */ jsx45(
10903
+ return typeTable === "group" ? /* @__PURE__ */ jsx47(
10854
10904
  TableGroup,
10855
10905
  {
10856
10906
  columns,
@@ -10875,7 +10925,7 @@ var TableBodyRow = (props) => {
10875
10925
  onClickRow
10876
10926
  },
10877
10927
  `record-group-${index4}`
10878
- ) : /* @__PURE__ */ jsx45(
10928
+ ) : /* @__PURE__ */ jsx47(
10879
10929
  Row,
10880
10930
  {
10881
10931
  row,
@@ -10903,7 +10953,7 @@ var TableBodyRow = (props) => {
10903
10953
  };
10904
10954
  var TableBody = (props) => {
10905
10955
  const [isAutoSelect, setIsAutoSelect] = useState3(false);
10906
- return /* @__PURE__ */ jsx45("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx45(
10956
+ return /* @__PURE__ */ jsx47("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx47(
10907
10957
  TableBodyRow,
10908
10958
  {
10909
10959
  ...props,
@@ -10916,7 +10966,7 @@ var TableBody = (props) => {
10916
10966
  // src/widgets/advanced/table/table-filter.tsx
10917
10967
  import { useEffect as useEffect6, useRef as useRef5, useState as useState4 } from "react";
10918
10968
  import { createPortal } from "react-dom";
10919
- import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
10969
+ import { jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
10920
10970
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
10921
10971
  const [openTableFilter, setOpenTableFilter] = useState4();
10922
10972
  const [filterPosition, setFilterPosition] = useState4(null);
@@ -10948,7 +10998,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10948
10998
  window.removeEventListener("resize", updatePosition);
10949
10999
  };
10950
11000
  }, [filterRef, openTableFilter]);
10951
- return /* @__PURE__ */ jsxs25(
11001
+ return /* @__PURE__ */ jsxs27(
10952
11002
  "div",
10953
11003
  {
10954
11004
  ref: filterRef,
@@ -10957,7 +11007,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10957
11007
  },
10958
11008
  className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
10959
11009
  children: [
10960
- /* @__PURE__ */ jsx46(
11010
+ /* @__PURE__ */ jsx48(
10961
11011
  "button",
10962
11012
  {
10963
11013
  type: "button",
@@ -10965,7 +11015,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10965
11015
  onClick: () => {
10966
11016
  setOpenTableFilter(!openTableFilter);
10967
11017
  },
10968
- children: /* @__PURE__ */ jsxs25(
11018
+ children: /* @__PURE__ */ jsxs27(
10969
11019
  "svg",
10970
11020
  {
10971
11021
  xmlns: "http://www.w3.org/2000/svg",
@@ -10974,42 +11024,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10974
11024
  viewBox: "0 0 16 16",
10975
11025
  fill: "none",
10976
11026
  children: [
10977
- /* @__PURE__ */ jsx46(
11027
+ /* @__PURE__ */ jsx48(
10978
11028
  "path",
10979
11029
  {
10980
11030
  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",
10981
11031
  fill: "#1F1F1F"
10982
11032
  }
10983
11033
  ),
10984
- /* @__PURE__ */ jsx46(
11034
+ /* @__PURE__ */ jsx48(
10985
11035
  "path",
10986
11036
  {
10987
11037
  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",
10988
11038
  fill: "#1F1F1F"
10989
11039
  }
10990
11040
  ),
10991
- /* @__PURE__ */ jsx46(
11041
+ /* @__PURE__ */ jsx48(
10992
11042
  "path",
10993
11043
  {
10994
11044
  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",
10995
11045
  fill: "#1F1F1F"
10996
11046
  }
10997
11047
  ),
10998
- /* @__PURE__ */ jsx46(
11048
+ /* @__PURE__ */ jsx48(
10999
11049
  "path",
11000
11050
  {
11001
11051
  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",
11002
11052
  fill: "black"
11003
11053
  }
11004
11054
  ),
11005
- /* @__PURE__ */ jsx46(
11055
+ /* @__PURE__ */ jsx48(
11006
11056
  "path",
11007
11057
  {
11008
11058
  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",
11009
11059
  fill: "black"
11010
11060
  }
11011
11061
  ),
11012
- /* @__PURE__ */ jsx46(
11062
+ /* @__PURE__ */ jsx48(
11013
11063
  "path",
11014
11064
  {
11015
11065
  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",
@@ -11022,7 +11072,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11022
11072
  }
11023
11073
  ),
11024
11074
  filterPosition && openTableFilter && createPortal(
11025
- /* @__PURE__ */ jsx46(
11075
+ /* @__PURE__ */ jsx48(
11026
11076
  "div",
11027
11077
  {
11028
11078
  ref: filterPopupRef,
@@ -11033,8 +11083,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11033
11083
  },
11034
11084
  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",
11035
11085
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
11036
- return /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
11037
- /* @__PURE__ */ jsx46(
11086
+ return /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
11087
+ /* @__PURE__ */ jsx48(
11038
11088
  "input",
11039
11089
  {
11040
11090
  type: "checkbox",
@@ -11044,7 +11094,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11044
11094
  className: "cursor-pointer"
11045
11095
  }
11046
11096
  ),
11047
- /* @__PURE__ */ jsx46(
11097
+ /* @__PURE__ */ jsx48(
11048
11098
  "label",
11049
11099
  {
11050
11100
  htmlFor: `${item.name}`,
@@ -11064,14 +11114,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
11064
11114
  };
11065
11115
 
11066
11116
  // src/widgets/advanced/table/table-footer.tsx
11067
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
11117
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
11068
11118
  var TableFooter = ({ onAddRow, rows }) => {
11069
11119
  const emptyData = rows?.length <= 0;
11070
- return /* @__PURE__ */ jsx47("tfoot", { children: /* @__PURE__ */ jsx47("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx47(
11120
+ return /* @__PURE__ */ jsx49("tfoot", { children: /* @__PURE__ */ jsx49("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx49(
11071
11121
  "td",
11072
11122
  {
11073
11123
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
11074
- children: /* @__PURE__ */ jsxs26(
11124
+ children: /* @__PURE__ */ jsxs28(
11075
11125
  "button",
11076
11126
  {
11077
11127
  type: "button",
@@ -11081,7 +11131,7 @@ var TableFooter = ({ onAddRow, rows }) => {
11081
11131
  },
11082
11132
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
11083
11133
  children: [
11084
- /* @__PURE__ */ jsxs26(
11134
+ /* @__PURE__ */ jsxs28(
11085
11135
  "svg",
11086
11136
  {
11087
11137
  style: {
@@ -11094,14 +11144,14 @@ var TableFooter = ({ onAddRow, rows }) => {
11094
11144
  viewBox: "0 0 20 20",
11095
11145
  fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
11096
11146
  children: [
11097
- /* @__PURE__ */ jsx47(
11147
+ /* @__PURE__ */ jsx49(
11098
11148
  "path",
11099
11149
  {
11100
11150
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
11101
11151
  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"
11102
11152
  }
11103
11153
  ),
11104
- /* @__PURE__ */ jsx47(
11154
+ /* @__PURE__ */ jsx49(
11105
11155
  "path",
11106
11156
  {
11107
11157
  className: `${!emptyData ? "fill-primary" : "fill-white"} `,
@@ -12922,7 +12972,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
12922
12972
 
12923
12973
  // src/widgets/advanced/table/table-head.tsx
12924
12974
  import { createPortal as createPortal2 } from "react-dom";
12925
- import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12975
+ import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
12926
12976
  var TableHead = (props) => {
12927
12977
  const {
12928
12978
  handleCheckBoxAll,
@@ -12932,7 +12982,7 @@ var TableHead = (props) => {
12932
12982
  onRemoveRow,
12933
12983
  onToggleColumnOptional
12934
12984
  } = props;
12935
- return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs27(
12985
+ return /* @__PURE__ */ jsx50("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs29(
12936
12986
  "tr",
12937
12987
  {
12938
12988
  style: {
@@ -12944,11 +12994,11 @@ var TableHead = (props) => {
12944
12994
  },
12945
12995
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
12946
12996
  children: [
12947
- isDisplayCheckbox && /* @__PURE__ */ jsx48(
12997
+ isDisplayCheckbox && /* @__PURE__ */ jsx50(
12948
12998
  "th",
12949
12999
  {
12950
13000
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
12951
- children: /* @__PURE__ */ jsx48(
13001
+ children: /* @__PURE__ */ jsx50(
12952
13002
  "input",
12953
13003
  {
12954
13004
  type: "checkbox",
@@ -12960,16 +13010,16 @@ var TableHead = (props) => {
12960
13010
  }
12961
13011
  ),
12962
13012
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12963
- return /* @__PURE__ */ jsx48(
13013
+ return /* @__PURE__ */ jsx50(
12964
13014
  "th",
12965
13015
  {
12966
13016
  "data-rtc-resizable": col?.name,
12967
13017
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12968
- children: /* @__PURE__ */ jsxs27("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
13018
+ children: /* @__PURE__ */ jsxs29("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12969
13019
  col.title,
12970
- col?.field?.help && /* @__PURE__ */ jsxs27(Fragment4, { children: [
13020
+ col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
12971
13021
  createPortal2(
12972
- /* @__PURE__ */ jsx48(
13022
+ /* @__PURE__ */ jsx50(
12973
13023
  M,
12974
13024
  {
12975
13025
  style: {
@@ -12989,7 +13039,7 @@ var TableHead = (props) => {
12989
13039
  ),
12990
13040
  document.body
12991
13041
  ),
12992
- /* @__PURE__ */ jsx48(
13042
+ /* @__PURE__ */ jsx50(
12993
13043
  "span",
12994
13044
  {
12995
13045
  style: {
@@ -13008,8 +13058,8 @@ var TableHead = (props) => {
13008
13058
  "table-head-" + index4
13009
13059
  );
13010
13060
  }),
13011
- typeof onRemoveRow === "function" && /* @__PURE__ */ jsx48("th", { className: "relative p-2 w-[35px]" }),
13012
- columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx48(
13061
+ typeof onRemoveRow === "function" && /* @__PURE__ */ jsx50("th", { className: "relative p-2 w-[35px]" }),
13062
+ columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx50(
13013
13063
  "th",
13014
13064
  {
13015
13065
  style: {
@@ -13017,7 +13067,7 @@ var TableHead = (props) => {
13017
13067
  right: 0
13018
13068
  },
13019
13069
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
13020
- children: /* @__PURE__ */ jsx48(
13070
+ children: /* @__PURE__ */ jsx50(
13021
13071
  TableFilter,
13022
13072
  {
13023
13073
  columns,
@@ -13032,9 +13082,9 @@ var TableHead = (props) => {
13032
13082
  };
13033
13083
 
13034
13084
  // src/icons/empty-table-icon.tsx
13035
- import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
13085
+ import { jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
13036
13086
  var IcEmptyTable = () => {
13037
- return /* @__PURE__ */ jsxs28(
13087
+ return /* @__PURE__ */ jsxs30(
13038
13088
  "svg",
13039
13089
  {
13040
13090
  xmlns: "http://www.w3.org/2000/svg",
@@ -13043,9 +13093,9 @@ var IcEmptyTable = () => {
13043
13093
  viewBox: "0 0 216 140",
13044
13094
  fill: "none",
13045
13095
  children: [
13046
- /* @__PURE__ */ jsxs28("g", { clipPath: "url(#clip0_2454_28950)", children: [
13047
- /* @__PURE__ */ jsx49("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13048
- /* @__PURE__ */ jsx49(
13096
+ /* @__PURE__ */ jsxs30("g", { clipPath: "url(#clip0_2454_28950)", children: [
13097
+ /* @__PURE__ */ jsx51("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13098
+ /* @__PURE__ */ jsx51(
13049
13099
  "path",
13050
13100
  {
13051
13101
  d: "M64.5 0V140",
@@ -13055,7 +13105,7 @@ var IcEmptyTable = () => {
13055
13105
  strokeDasharray: "3 3"
13056
13106
  }
13057
13107
  ),
13058
- /* @__PURE__ */ jsx49(
13108
+ /* @__PURE__ */ jsx51(
13059
13109
  "path",
13060
13110
  {
13061
13111
  d: "M151.5 0V140",
@@ -13065,7 +13115,7 @@ var IcEmptyTable = () => {
13065
13115
  strokeDasharray: "3 3"
13066
13116
  }
13067
13117
  ),
13068
- /* @__PURE__ */ jsx49(
13118
+ /* @__PURE__ */ jsx51(
13069
13119
  "path",
13070
13120
  {
13071
13121
  d: "M215.5 24H0.5",
@@ -13075,7 +13125,7 @@ var IcEmptyTable = () => {
13075
13125
  strokeDasharray: "3 3"
13076
13126
  }
13077
13127
  ),
13078
- /* @__PURE__ */ jsx49(
13128
+ /* @__PURE__ */ jsx51(
13079
13129
  "path",
13080
13130
  {
13081
13131
  d: "M215.5 50H0.5",
@@ -13085,7 +13135,7 @@ var IcEmptyTable = () => {
13085
13135
  strokeDasharray: "3 3"
13086
13136
  }
13087
13137
  ),
13088
- /* @__PURE__ */ jsx49(
13138
+ /* @__PURE__ */ jsx51(
13089
13139
  "path",
13090
13140
  {
13091
13141
  d: "M215.5 88H0.5",
@@ -13095,7 +13145,7 @@ var IcEmptyTable = () => {
13095
13145
  strokeDasharray: "3 3"
13096
13146
  }
13097
13147
  ),
13098
- /* @__PURE__ */ jsx49(
13148
+ /* @__PURE__ */ jsx51(
13099
13149
  "path",
13100
13150
  {
13101
13151
  d: "M215.5 114H0.5",
@@ -13105,7 +13155,7 @@ var IcEmptyTable = () => {
13105
13155
  strokeDasharray: "3 3"
13106
13156
  }
13107
13157
  ),
13108
- /* @__PURE__ */ jsx49(
13158
+ /* @__PURE__ */ jsx51(
13109
13159
  "path",
13110
13160
  {
13111
13161
  d: "M199.5 0V140",
@@ -13114,7 +13164,7 @@ var IcEmptyTable = () => {
13114
13164
  strokeMiterlimit: "10"
13115
13165
  }
13116
13166
  ),
13117
- /* @__PURE__ */ jsx49(
13167
+ /* @__PURE__ */ jsx51(
13118
13168
  "path",
13119
13169
  {
13120
13170
  d: "M16.5 0V140",
@@ -13123,7 +13173,7 @@ var IcEmptyTable = () => {
13123
13173
  strokeMiterlimit: "10"
13124
13174
  }
13125
13175
  ),
13126
- /* @__PURE__ */ jsx49(
13176
+ /* @__PURE__ */ jsx51(
13127
13177
  "path",
13128
13178
  {
13129
13179
  d: "M0.5 16H215.5",
@@ -13132,7 +13182,7 @@ var IcEmptyTable = () => {
13132
13182
  strokeMiterlimit: "10"
13133
13183
  }
13134
13184
  ),
13135
- /* @__PURE__ */ jsx49(
13185
+ /* @__PURE__ */ jsx51(
13136
13186
  "path",
13137
13187
  {
13138
13188
  d: "M0.5 124H215.5",
@@ -13141,7 +13191,7 @@ var IcEmptyTable = () => {
13141
13191
  strokeMiterlimit: "10"
13142
13192
  }
13143
13193
  ),
13144
- /* @__PURE__ */ jsx49(
13194
+ /* @__PURE__ */ jsx51(
13145
13195
  "path",
13146
13196
  {
13147
13197
  opacity: "0.6",
@@ -13152,7 +13202,7 @@ var IcEmptyTable = () => {
13152
13202
  strokeLinejoin: "round"
13153
13203
  }
13154
13204
  ),
13155
- /* @__PURE__ */ jsx49(
13205
+ /* @__PURE__ */ jsx51(
13156
13206
  "path",
13157
13207
  {
13158
13208
  opacity: "0.6",
@@ -13163,7 +13213,7 @@ var IcEmptyTable = () => {
13163
13213
  strokeLinejoin: "round"
13164
13214
  }
13165
13215
  ),
13166
- /* @__PURE__ */ jsx49(
13216
+ /* @__PURE__ */ jsx51(
13167
13217
  "path",
13168
13218
  {
13169
13219
  opacity: "0.6",
@@ -13174,7 +13224,7 @@ var IcEmptyTable = () => {
13174
13224
  strokeLinejoin: "round"
13175
13225
  }
13176
13226
  ),
13177
- /* @__PURE__ */ jsx49(
13227
+ /* @__PURE__ */ jsx51(
13178
13228
  "path",
13179
13229
  {
13180
13230
  opacity: "0.6",
@@ -13185,7 +13235,7 @@ var IcEmptyTable = () => {
13185
13235
  strokeLinejoin: "round"
13186
13236
  }
13187
13237
  ),
13188
- /* @__PURE__ */ jsx49(
13238
+ /* @__PURE__ */ jsx51(
13189
13239
  "path",
13190
13240
  {
13191
13241
  opacity: "0.6",
@@ -13196,14 +13246,14 @@ var IcEmptyTable = () => {
13196
13246
  strokeLinejoin: "round"
13197
13247
  }
13198
13248
  ),
13199
- /* @__PURE__ */ jsx49(
13249
+ /* @__PURE__ */ jsx51(
13200
13250
  "path",
13201
13251
  {
13202
13252
  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",
13203
13253
  fill: "white"
13204
13254
  }
13205
13255
  ),
13206
- /* @__PURE__ */ jsx49(
13256
+ /* @__PURE__ */ jsx51(
13207
13257
  "path",
13208
13258
  {
13209
13259
  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",
@@ -13213,7 +13263,7 @@ var IcEmptyTable = () => {
13213
13263
  strokeLinejoin: "round"
13214
13264
  }
13215
13265
  ),
13216
- /* @__PURE__ */ jsx49(
13266
+ /* @__PURE__ */ jsx51(
13217
13267
  "path",
13218
13268
  {
13219
13269
  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",
@@ -13222,7 +13272,7 @@ var IcEmptyTable = () => {
13222
13272
  strokeLinejoin: "round"
13223
13273
  }
13224
13274
  ),
13225
- /* @__PURE__ */ jsx49(
13275
+ /* @__PURE__ */ jsx51(
13226
13276
  "path",
13227
13277
  {
13228
13278
  opacity: "0.6",
@@ -13233,7 +13283,7 @@ var IcEmptyTable = () => {
13233
13283
  strokeLinejoin: "round"
13234
13284
  }
13235
13285
  ),
13236
- /* @__PURE__ */ jsx49(
13286
+ /* @__PURE__ */ jsx51(
13237
13287
  "path",
13238
13288
  {
13239
13289
  opacity: "0.6",
@@ -13244,7 +13294,7 @@ var IcEmptyTable = () => {
13244
13294
  strokeLinejoin: "round"
13245
13295
  }
13246
13296
  ),
13247
- /* @__PURE__ */ jsx49(
13297
+ /* @__PURE__ */ jsx51(
13248
13298
  "path",
13249
13299
  {
13250
13300
  opacity: "0.6",
@@ -13255,7 +13305,7 @@ var IcEmptyTable = () => {
13255
13305
  strokeLinejoin: "round"
13256
13306
  }
13257
13307
  ),
13258
- /* @__PURE__ */ jsx49(
13308
+ /* @__PURE__ */ jsx51(
13259
13309
  "path",
13260
13310
  {
13261
13311
  opacity: "0.6",
@@ -13266,7 +13316,7 @@ var IcEmptyTable = () => {
13266
13316
  strokeLinejoin: "round"
13267
13317
  }
13268
13318
  ),
13269
- /* @__PURE__ */ jsx49(
13319
+ /* @__PURE__ */ jsx51(
13270
13320
  "path",
13271
13321
  {
13272
13322
  opacity: "0.6",
@@ -13277,7 +13327,7 @@ var IcEmptyTable = () => {
13277
13327
  strokeLinejoin: "round"
13278
13328
  }
13279
13329
  ),
13280
- /* @__PURE__ */ jsx49(
13330
+ /* @__PURE__ */ jsx51(
13281
13331
  "path",
13282
13332
  {
13283
13333
  opacity: "0.6",
@@ -13288,7 +13338,7 @@ var IcEmptyTable = () => {
13288
13338
  strokeLinejoin: "round"
13289
13339
  }
13290
13340
  ),
13291
- /* @__PURE__ */ jsx49(
13341
+ /* @__PURE__ */ jsx51(
13292
13342
  "path",
13293
13343
  {
13294
13344
  opacity: "0.6",
@@ -13299,7 +13349,7 @@ var IcEmptyTable = () => {
13299
13349
  strokeLinejoin: "round"
13300
13350
  }
13301
13351
  ),
13302
- /* @__PURE__ */ jsx49(
13352
+ /* @__PURE__ */ jsx51(
13303
13353
  "path",
13304
13354
  {
13305
13355
  opacity: "0.6",
@@ -13310,7 +13360,7 @@ var IcEmptyTable = () => {
13310
13360
  strokeLinejoin: "round"
13311
13361
  }
13312
13362
  ),
13313
- /* @__PURE__ */ jsx49(
13363
+ /* @__PURE__ */ jsx51(
13314
13364
  "path",
13315
13365
  {
13316
13366
  opacity: "0.6",
@@ -13321,14 +13371,14 @@ var IcEmptyTable = () => {
13321
13371
  strokeLinejoin: "round"
13322
13372
  }
13323
13373
  ),
13324
- /* @__PURE__ */ jsx49(
13374
+ /* @__PURE__ */ jsx51(
13325
13375
  "path",
13326
13376
  {
13327
13377
  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",
13328
13378
  fill: "white"
13329
13379
  }
13330
13380
  ),
13331
- /* @__PURE__ */ jsx49(
13381
+ /* @__PURE__ */ jsx51(
13332
13382
  "path",
13333
13383
  {
13334
13384
  "fill-rule": "evenodd",
@@ -13337,7 +13387,7 @@ var IcEmptyTable = () => {
13337
13387
  fill: "white"
13338
13388
  }
13339
13389
  ),
13340
- /* @__PURE__ */ jsx49(
13390
+ /* @__PURE__ */ jsx51(
13341
13391
  "path",
13342
13392
  {
13343
13393
  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",
@@ -13348,7 +13398,7 @@ var IcEmptyTable = () => {
13348
13398
  }
13349
13399
  )
13350
13400
  ] }),
13351
- /* @__PURE__ */ jsx49("defs", { children: /* @__PURE__ */ jsx49("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx49(
13401
+ /* @__PURE__ */ jsx51("defs", { children: /* @__PURE__ */ jsx51("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx51(
13352
13402
  "rect",
13353
13403
  {
13354
13404
  width: "215",
@@ -13363,14 +13413,14 @@ var IcEmptyTable = () => {
13363
13413
  };
13364
13414
 
13365
13415
  // src/widgets/advanced/table/empty-table.tsx
13366
- import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
13416
+ import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
13367
13417
  var EmptyTable = () => {
13368
13418
  const { t: t3 } = useI18n();
13369
- return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13370
- /* @__PURE__ */ jsx50(IcEmptyTable, {}),
13371
- /* @__PURE__ */ jsxs29("div", { children: [
13372
- /* @__PURE__ */ jsx50("p", {}),
13373
- /* @__PURE__ */ jsx50("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13419
+ return /* @__PURE__ */ jsxs31("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13420
+ /* @__PURE__ */ jsx52(IcEmptyTable, {}),
13421
+ /* @__PURE__ */ jsxs31("div", { children: [
13422
+ /* @__PURE__ */ jsx52("p", {}),
13423
+ /* @__PURE__ */ jsx52("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13374
13424
  ] })
13375
13425
  ] });
13376
13426
  };
@@ -15189,10 +15239,10 @@ function s3(o3, s4, t3) {
15189
15239
 
15190
15240
  // src/widgets/advanced/login/shared/button.tsx
15191
15241
  import * as React2 from "react";
15192
- import { jsx as jsx51 } from "react/jsx-runtime";
15242
+ import { jsx as jsx53 } from "react/jsx-runtime";
15193
15243
  var Button = React2.forwardRef(
15194
15244
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
15195
- return /* @__PURE__ */ jsx51(
15245
+ return /* @__PURE__ */ jsx53(
15196
15246
  "button",
15197
15247
  {
15198
15248
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -15202,7 +15252,7 @@ var Button = React2.forwardRef(
15202
15252
  ref,
15203
15253
  type,
15204
15254
  ...props,
15205
- children: isLoading ? /* @__PURE__ */ jsx51(LoadingIcon, { width: 20, height: 20 }) : children
15255
+ children: isLoading ? /* @__PURE__ */ jsx53(LoadingIcon, { width: 20, height: 20 }) : children
15206
15256
  }
15207
15257
  );
15208
15258
  }
@@ -15211,7 +15261,7 @@ Button.displayName = "Button";
15211
15261
 
15212
15262
  // src/widgets/advanced/login/shared/text-input.tsx
15213
15263
  import { useState as useState5 } from "react";
15214
- import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
15264
+ import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
15215
15265
  function TextInput(props) {
15216
15266
  const {
15217
15267
  className,
@@ -15225,17 +15275,17 @@ function TextInput(props) {
15225
15275
  required
15226
15276
  } = props;
15227
15277
  const [showPassword, setShowPassword] = useState5(false);
15228
- return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15229
- label && /* @__PURE__ */ jsxs30("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15278
+ return /* @__PURE__ */ jsxs32("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15279
+ label && /* @__PURE__ */ jsxs32("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
15230
15280
  label,
15231
- required ? /* @__PURE__ */ jsx52("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15281
+ required ? /* @__PURE__ */ jsx54("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15232
15282
  ] }),
15233
- /* @__PURE__ */ jsxs30(
15283
+ /* @__PURE__ */ jsxs32(
15234
15284
  "div",
15235
15285
  {
15236
15286
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
15237
15287
  children: [
15238
- /* @__PURE__ */ jsx52(
15288
+ /* @__PURE__ */ jsx54(
15239
15289
  "input",
15240
15290
  {
15241
15291
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -15244,18 +15294,18 @@ function TextInput(props) {
15244
15294
  ...register(name2)
15245
15295
  }
15246
15296
  ),
15247
- type === "password" && /* @__PURE__ */ jsx52(
15297
+ type === "password" && /* @__PURE__ */ jsx54(
15248
15298
  "span",
15249
15299
  {
15250
15300
  onClick: () => setShowPassword(!showPassword),
15251
15301
  className: "focus:outline-none",
15252
- children: showPassword ? /* @__PURE__ */ jsx52(EyeClosedIcon, {}) : /* @__PURE__ */ jsx52(EyeIcon, {})
15302
+ children: showPassword ? /* @__PURE__ */ jsx54(EyeClosedIcon, {}) : /* @__PURE__ */ jsx54(EyeIcon, {})
15253
15303
  }
15254
15304
  )
15255
15305
  ]
15256
15306
  }
15257
15307
  ),
15258
- errors?.[name2]?.message && /* @__PURE__ */ jsx52(
15308
+ errors?.[name2]?.message && /* @__PURE__ */ jsx54(
15259
15309
  "p",
15260
15310
  {
15261
15311
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -15267,7 +15317,7 @@ function TextInput(props) {
15267
15317
 
15268
15318
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
15269
15319
  import { useEffect as useEffect7 } from "react";
15270
- import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15320
+ import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
15271
15321
  var STAY_LOGIN_IN = "stayLoginIn";
15272
15322
  function FormOptions({
15273
15323
  forgotPasswordUrl,
@@ -15293,9 +15343,9 @@ function FormOptions({
15293
15343
  useEffect7(() => {
15294
15344
  localStorage.setItem(STAY_LOGIN_IN, "false");
15295
15345
  }, []);
15296
- return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15297
- /* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
15298
- /* @__PURE__ */ jsx53(
15346
+ return /* @__PURE__ */ jsxs33("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15347
+ /* @__PURE__ */ jsxs33("label", { className: "flex gap-3", children: [
15348
+ /* @__PURE__ */ jsx55(
15299
15349
  "input",
15300
15350
  {
15301
15351
  checked: stayLoginIn,
@@ -15304,14 +15354,14 @@ function FormOptions({
15304
15354
  onChange: handleCheckboxChange
15305
15355
  }
15306
15356
  ),
15307
- /* @__PURE__ */ jsx53("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15357
+ /* @__PURE__ */ jsx55("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15308
15358
  ] }),
15309
- !hideForgotPassword && /* @__PURE__ */ jsx53("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15359
+ !hideForgotPassword && /* @__PURE__ */ jsx55("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
15310
15360
  ] });
15311
15361
  }
15312
15362
 
15313
15363
  // src/widgets/advanced/login/provider/credential/index.tsx
15314
- import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
15364
+ import { Fragment as Fragment5, jsx as jsx56, jsxs as jsxs34 } from "react/jsx-runtime";
15315
15365
  var CredentialLogin = (props) => {
15316
15366
  const {
15317
15367
  shouldRenderDivider,
@@ -15331,16 +15381,16 @@ var CredentialLogin = (props) => {
15331
15381
  mode: "onChange",
15332
15382
  resolver: s3(loginSchema)
15333
15383
  });
15334
- return /* @__PURE__ */ jsxs32(Fragment5, { children: [
15335
- /* @__PURE__ */ jsxs32(
15384
+ return /* @__PURE__ */ jsxs34(Fragment5, { children: [
15385
+ /* @__PURE__ */ jsxs34(
15336
15386
  "form",
15337
15387
  {
15338
15388
  onSubmit: handleSubmit(onSubmit ?? (() => {
15339
15389
  })),
15340
15390
  className: `flex w-full h-fit flex-col gap-10`,
15341
15391
  children: [
15342
- /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
15343
- /* @__PURE__ */ jsx54(
15392
+ /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
15393
+ /* @__PURE__ */ jsx56(
15344
15394
  TextInput,
15345
15395
  {
15346
15396
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15353,7 +15403,7 @@ var CredentialLogin = (props) => {
15353
15403
  errors
15354
15404
  }
15355
15405
  ),
15356
- /* @__PURE__ */ jsx54(
15406
+ /* @__PURE__ */ jsx56(
15357
15407
  TextInput,
15358
15408
  {
15359
15409
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15366,7 +15416,7 @@ var CredentialLogin = (props) => {
15366
15416
  errors
15367
15417
  }
15368
15418
  ),
15369
- /* @__PURE__ */ jsx54(
15419
+ /* @__PURE__ */ jsx56(
15370
15420
  FormOptions,
15371
15421
  {
15372
15422
  forgotPasswordUrl,
@@ -15376,7 +15426,7 @@ var CredentialLogin = (props) => {
15376
15426
  }
15377
15427
  )
15378
15428
  ] }),
15379
- /* @__PURE__ */ jsx54("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx54(
15429
+ /* @__PURE__ */ jsx56("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx56(
15380
15430
  Button,
15381
15431
  {
15382
15432
  type: "submit",
@@ -15388,56 +15438,56 @@ var CredentialLogin = (props) => {
15388
15438
  ]
15389
15439
  }
15390
15440
  ),
15391
- shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
15392
- /* @__PURE__ */ jsx54("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15393
- /* @__PURE__ */ jsx54("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15441
+ shouldRenderDivider && /* @__PURE__ */ jsxs34("div", { className: "flex justify-center relative", children: [
15442
+ /* @__PURE__ */ jsx56("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15443
+ /* @__PURE__ */ jsx56("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15394
15444
  ] })
15395
15445
  ] });
15396
15446
  };
15397
15447
 
15398
15448
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15399
- import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
15449
+ import { jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
15400
15450
  function GoogleButton(props) {
15401
15451
  const { onLoginGoogle, db } = props;
15402
- return /* @__PURE__ */ jsxs33(
15452
+ return /* @__PURE__ */ jsxs35(
15403
15453
  "button",
15404
15454
  {
15405
15455
  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",
15406
15456
  onClick: () => onLoginGoogle?.(db),
15407
15457
  children: [
15408
- /* @__PURE__ */ jsx55(GoogleIcon, { className: "google-icon" }),
15409
- /* @__PURE__ */ jsx55("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15458
+ /* @__PURE__ */ jsx57(GoogleIcon, { className: "google-icon" }),
15459
+ /* @__PURE__ */ jsx57("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
15410
15460
  ]
15411
15461
  }
15412
15462
  );
15413
15463
  }
15414
15464
 
15415
15465
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15416
- import { Fragment as Fragment6, jsx as jsx56 } from "react/jsx-runtime";
15466
+ import { Fragment as Fragment6, jsx as jsx58 } from "react/jsx-runtime";
15417
15467
  function SocialRedirect(props) {
15418
15468
  const { db, onLoginSocial } = props;
15419
15469
  onLoginSocial && onLoginSocial(String(db));
15420
- return /* @__PURE__ */ jsx56(Fragment6, {});
15470
+ return /* @__PURE__ */ jsx58(Fragment6, {});
15421
15471
  }
15422
15472
 
15423
15473
  // src/widgets/advanced/login/provider/google/index.tsx
15424
- import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
15474
+ import { Fragment as Fragment7, jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15425
15475
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15426
- return /* @__PURE__ */ jsxs34(Fragment7, { children: [
15427
- /* @__PURE__ */ jsx57(GoogleButton, { db, onLoginGoogle }),
15428
- /* @__PURE__ */ jsx57(SocialRedirect, { db, onLoginSocial })
15476
+ return /* @__PURE__ */ jsxs36(Fragment7, { children: [
15477
+ /* @__PURE__ */ jsx59(GoogleButton, { db, onLoginGoogle }),
15478
+ /* @__PURE__ */ jsx59(SocialRedirect, { db, onLoginSocial })
15429
15479
  ] });
15430
15480
  };
15431
15481
 
15432
15482
  // src/widgets/advanced/login/index.tsx
15433
- import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15483
+ import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15434
15484
  var LoginProviderMapping = {
15435
15485
  google: GoogleLogin
15436
15486
  };
15437
15487
  var Login = (props) => {
15438
15488
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15439
- return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
15440
- /* @__PURE__ */ jsx58(
15489
+ return /* @__PURE__ */ jsxs37("div", { className: "w-full space-y-8", children: [
15490
+ /* @__PURE__ */ jsx60(
15441
15491
  CredentialLogin,
15442
15492
  {
15443
15493
  ...props,
@@ -15447,7 +15497,7 @@ var Login = (props) => {
15447
15497
  ),
15448
15498
  providers.map((provider, index4) => {
15449
15499
  const ProviderComp = LoginProviderMapping[provider];
15450
- return /* @__PURE__ */ jsx58(
15500
+ return /* @__PURE__ */ jsx60(
15451
15501
  ProviderComp,
15452
15502
  {
15453
15503
  db,
@@ -15461,7 +15511,7 @@ var Login = (props) => {
15461
15511
  };
15462
15512
 
15463
15513
  // src/widgets/advanced/search/popup-filter/index.tsx
15464
- import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15514
+ import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15465
15515
  var PopupFilter = ({
15466
15516
  handleAddTagSearch,
15467
15517
  removeSearchItems,
@@ -15472,7 +15522,7 @@ var PopupFilter = ({
15472
15522
  fields
15473
15523
  }) => {
15474
15524
  const { t: t3 } = useI18n();
15475
- return /* @__PURE__ */ jsx59(
15525
+ return /* @__PURE__ */ jsx61(
15476
15526
  "div",
15477
15527
  {
15478
15528
  style: {
@@ -15482,25 +15532,25 @@ var PopupFilter = ({
15482
15532
  zIndex: 33
15483
15533
  },
15484
15534
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15485
- children: /* @__PURE__ */ jsxs36(
15535
+ children: /* @__PURE__ */ jsxs38(
15486
15536
  "div",
15487
15537
  {
15488
15538
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15489
15539
  children: [
15490
- filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
15491
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15492
- /* @__PURE__ */ jsx59(FilterIcon, { className: "filter-by-icon text-primary" }),
15493
- /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15540
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs38("div", { className: "filter-by w-full px-3", children: [
15541
+ /* @__PURE__ */ jsxs38("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15542
+ /* @__PURE__ */ jsx61(FilterIcon, { className: "filter-by-icon text-primary" }),
15543
+ /* @__PURE__ */ jsx61("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15494
15544
  ] }),
15495
15545
  filterBy?.reduce((acc, item, index4, array) => {
15496
15546
  const prevItem = array[index4 - 1];
15497
15547
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15498
15548
  const isExist = item?.active;
15499
15549
  if (isDifferentGroup) {
15500
- acc.push(/* @__PURE__ */ jsx59("hr", { className: "my-2" }, "separator-" + index4));
15550
+ acc.push(/* @__PURE__ */ jsx61("hr", { className: "my-2" }, "separator-" + index4));
15501
15551
  }
15502
15552
  acc.push(
15503
- /* @__PURE__ */ jsxs36(
15553
+ /* @__PURE__ */ jsxs38(
15504
15554
  "button",
15505
15555
  {
15506
15556
  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)]"}`,
@@ -15525,8 +15575,8 @@ var PopupFilter = ({
15525
15575
  });
15526
15576
  },
15527
15577
  children: [
15528
- isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15529
- /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string ?? item?.help })
15578
+ isExist && /* @__PURE__ */ jsx61(CheckIcon, {}),
15579
+ /* @__PURE__ */ jsx61("span", { className: "text-sm", children: item?.string ?? item?.help })
15530
15580
  ]
15531
15581
  },
15532
15582
  "filter-" + index4
@@ -15535,16 +15585,16 @@ var PopupFilter = ({
15535
15585
  return acc;
15536
15586
  }, [])
15537
15587
  ] }),
15538
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx59("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15539
- groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
15540
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15541
- /* @__PURE__ */ jsx59(GroupByIcon, { className: "group-by-icon text-primary" }),
15542
- /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15588
+ filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx61("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15589
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs38("div", { className: "group-by w-full px-3", children: [
15590
+ /* @__PURE__ */ jsxs38("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15591
+ /* @__PURE__ */ jsx61(GroupByIcon, { className: "group-by-icon text-primary" }),
15592
+ /* @__PURE__ */ jsx61("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15543
15593
  ] }),
15544
15594
  groupBy?.map((item, index4) => {
15545
15595
  const isExist = item?.active;
15546
15596
  if (!item.string) return;
15547
- return /* @__PURE__ */ jsxs36(
15597
+ return /* @__PURE__ */ jsxs38(
15548
15598
  "button",
15549
15599
  {
15550
15600
  onClick: () => {
@@ -15568,8 +15618,8 @@ var PopupFilter = ({
15568
15618
  },
15569
15619
  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)]"}`,
15570
15620
  children: [
15571
- isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15572
- /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string })
15621
+ isExist && /* @__PURE__ */ jsx61(CheckIcon, {}),
15622
+ /* @__PURE__ */ jsx61("span", { className: "text-sm", children: item?.string })
15573
15623
  ]
15574
15624
  },
15575
15625
  "groupby-" + index4 + 1
@@ -15588,7 +15638,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15588
15638
 
15589
15639
  // src/widgets/advanced/search/tag-search/index.tsx
15590
15640
  import { Fragment as Fragment8 } from "react";
15591
- import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15641
+ import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
15592
15642
  var TagSearch = ({
15593
15643
  removeSearchItems,
15594
15644
  selectedTags,
@@ -15599,23 +15649,23 @@ var TagSearch = ({
15599
15649
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15600
15650
  if (tag?.values?.length > 0) {
15601
15651
  if (tag?.type !== "group_by") {
15602
- return /* @__PURE__ */ jsxs37(
15652
+ return /* @__PURE__ */ jsxs39(
15603
15653
  "div",
15604
15654
  {
15605
15655
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15606
15656
  children: [
15607
- /* @__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, {}) }),
15608
- /* @__PURE__ */ jsx60("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15609
- return /* @__PURE__ */ jsxs37(Fragment8, { children: [
15610
- /* @__PURE__ */ jsx60("span", { children: value }),
15611
- idx < tag.values.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15657
+ /* @__PURE__ */ jsx62("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__ */ jsx62(FilterIcon, {}) }),
15658
+ /* @__PURE__ */ jsx62("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15659
+ return /* @__PURE__ */ jsxs39(Fragment8, { children: [
15660
+ /* @__PURE__ */ jsx62("span", { children: value }),
15661
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs39("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15612
15662
  " ",
15613
15663
  instance.t("or"),
15614
15664
  " "
15615
15665
  ] })
15616
15666
  ] }, idx);
15617
15667
  }) }),
15618
- /* @__PURE__ */ jsx60(
15668
+ /* @__PURE__ */ jsx62(
15619
15669
  "button",
15620
15670
  {
15621
15671
  className: "px-2 text-sm font-bold",
@@ -15632,7 +15682,7 @@ var TagSearch = ({
15632
15682
  );
15633
15683
  }
15634
15684
  },
15635
- children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15685
+ children: /* @__PURE__ */ jsx62(CloseIcon, { className: "size-4 cursor-pointer" })
15636
15686
  }
15637
15687
  )
15638
15688
  ]
@@ -15640,26 +15690,26 @@ var TagSearch = ({
15640
15690
  "selected-tag-" + index4
15641
15691
  );
15642
15692
  } else if (tag?.type === "group_by") {
15643
- return /* @__PURE__ */ jsx60(
15693
+ return /* @__PURE__ */ jsx62(
15644
15694
  "div",
15645
15695
  {
15646
15696
  className: "flex min-h-full overflow-hidden",
15647
- 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(
15648
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs37(
15697
+ children: /* @__PURE__ */ jsx62("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15698
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs39(
15649
15699
  "div",
15650
15700
  {
15651
15701
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15652
15702
  children: [
15653
- /* @__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, {}) }),
15654
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
15655
- /* @__PURE__ */ jsx60("span", { children: string }),
15656
- idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15703
+ /* @__PURE__ */ jsx62("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx62(GroupByIcon, {}) }),
15704
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs39(Fragment9, { children: [
15705
+ /* @__PURE__ */ jsx62("span", { children: string }),
15706
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs39("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15657
15707
  " ",
15658
15708
  "> ",
15659
15709
  " "
15660
15710
  ] })
15661
15711
  ] })),
15662
- /* @__PURE__ */ jsx60(
15712
+ /* @__PURE__ */ jsx62(
15663
15713
  "button",
15664
15714
  {
15665
15715
  className: "pr-2 text-sm font-bold",
@@ -15674,7 +15724,7 @@ var TagSearch = ({
15674
15724
  );
15675
15725
  }
15676
15726
  },
15677
- children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15727
+ children: /* @__PURE__ */ jsx62(CloseIcon, { className: "size-4 cursor-pointer" })
15678
15728
  }
15679
15729
  )
15680
15730
  ]
@@ -15691,7 +15741,7 @@ var TagSearch = ({
15691
15741
  };
15692
15742
 
15693
15743
  // src/widgets/advanced/search/search-list/index.tsx
15694
- import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15744
+ import { jsx as jsx63, jsxs as jsxs40 } from "react/jsx-runtime";
15695
15745
  var SearchList = ({
15696
15746
  handleAddTagSearch,
15697
15747
  handleMouseEnter,
@@ -15701,7 +15751,7 @@ var SearchList = ({
15701
15751
  hoveredIndexSearchList
15702
15752
  }) => {
15703
15753
  const { t: t3 } = useI18n();
15704
- return /* @__PURE__ */ jsx61(
15754
+ return /* @__PURE__ */ jsx63(
15705
15755
  "div",
15706
15756
  {
15707
15757
  style: {
@@ -15713,7 +15763,7 @@ var SearchList = ({
15713
15763
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15714
15764
  return;
15715
15765
  }
15716
- return /* @__PURE__ */ jsxs38(
15766
+ return /* @__PURE__ */ jsxs40(
15717
15767
  "button",
15718
15768
  {
15719
15769
  onClick: () => {
@@ -15735,12 +15785,12 @@ var SearchList = ({
15735
15785
  children: [
15736
15786
  t3("search"),
15737
15787
  " ",
15738
- /* @__PURE__ */ jsx61("span", { className: "font-bold", children: searchItem?.title }),
15788
+ /* @__PURE__ */ jsx63("span", { className: "font-bold", children: searchItem?.title }),
15739
15789
  " ",
15740
15790
  t3("for"),
15741
15791
  ":",
15742
15792
  " ",
15743
- /* @__PURE__ */ jsx61(
15793
+ /* @__PURE__ */ jsx63(
15744
15794
  "span",
15745
15795
  {
15746
15796
  style: {
@@ -15760,7 +15810,7 @@ var SearchList = ({
15760
15810
  };
15761
15811
 
15762
15812
  // src/widgets/advanced/search/search-item/index.tsx
15763
- import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
15813
+ import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs41 } from "react/jsx-runtime";
15764
15814
  var Search = ({
15765
15815
  removeSearchItems,
15766
15816
  selectedTags,
@@ -15877,15 +15927,15 @@ var Search = ({
15877
15927
  setDidInit(true);
15878
15928
  setIsReadyFormatDomain(true);
15879
15929
  }, [aid, filterBy, fieldsList]);
15880
- return /* @__PURE__ */ jsxs39(
15930
+ return /* @__PURE__ */ jsxs41(
15881
15931
  "div",
15882
15932
  {
15883
15933
  ref: popupFilterRef,
15884
15934
  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)]`,
15885
15935
  children: [
15886
- /* @__PURE__ */ jsx62("div", { className: "size-5", children: /* @__PURE__ */ jsx62(SearchIcon, {}) }),
15887
- /* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15888
- /* @__PURE__ */ jsx62(
15936
+ /* @__PURE__ */ jsx64("div", { className: "size-5", children: /* @__PURE__ */ jsx64(SearchIcon, {}) }),
15937
+ /* @__PURE__ */ jsxs41("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15938
+ /* @__PURE__ */ jsx64(
15889
15939
  TagSearch,
15890
15940
  {
15891
15941
  removeSearchItems,
@@ -15895,7 +15945,7 @@ var Search = ({
15895
15945
  setGroupBy
15896
15946
  }
15897
15947
  ),
15898
- /* @__PURE__ */ jsx62(
15948
+ /* @__PURE__ */ jsx64(
15899
15949
  "input",
15900
15950
  {
15901
15951
  value: searchString,
@@ -15908,7 +15958,7 @@ var Search = ({
15908
15958
  onKeyUp: (e3) => e3.preventDefault()
15909
15959
  }
15910
15960
  ),
15911
- /* @__PURE__ */ jsx62(
15961
+ /* @__PURE__ */ jsx64(
15912
15962
  SearchList,
15913
15963
  {
15914
15964
  handleAddTagSearch,
@@ -15917,8 +15967,8 @@ var Search = ({
15917
15967
  }
15918
15968
  )
15919
15969
  ] }),
15920
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment10, { children: [
15921
- /* @__PURE__ */ jsxs39(
15970
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs41(Fragment10, { children: [
15971
+ /* @__PURE__ */ jsxs41(
15922
15972
  "div",
15923
15973
  {
15924
15974
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -15927,8 +15977,8 @@ var Search = ({
15927
15977
  setShowPopupFilter((prev2) => !prev2);
15928
15978
  },
15929
15979
  children: [
15930
- /* @__PURE__ */ jsx62("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15931
- /* @__PURE__ */ jsx62(
15980
+ /* @__PURE__ */ jsx64("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15981
+ /* @__PURE__ */ jsx64(
15932
15982
  ChevronBottomIcon,
15933
15983
  {
15934
15984
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -15937,7 +15987,7 @@ var Search = ({
15937
15987
  ]
15938
15988
  }
15939
15989
  ),
15940
- showPopupFilter && /* @__PURE__ */ jsx62(
15990
+ showPopupFilter && /* @__PURE__ */ jsx64(
15941
15991
  PopupFilter,
15942
15992
  {
15943
15993
  handleAddTagSearch,
@@ -15956,30 +16006,30 @@ var Search = ({
15956
16006
  };
15957
16007
 
15958
16008
  // src/widgets/basic/active-badge-field/active-badge.tsx
15959
- import { Fragment as Fragment11, jsx as jsx63 } from "react/jsx-runtime";
16009
+ import { Fragment as Fragment11, jsx as jsx65 } from "react/jsx-runtime";
15960
16010
  var ActiveBadgeField = (props) => {
15961
16011
  const { t: t3 } = useI18n();
15962
16012
  const {
15963
16013
  type,
15964
16014
  className
15965
16015
  } = props;
15966
- if (type === void 0) return /* @__PURE__ */ jsx63(Fragment11, {});
16016
+ if (type === void 0) return /* @__PURE__ */ jsx65(Fragment11, {});
15967
16017
  const typeStyle = type ? "text-green-500" : "text-red-500";
15968
16018
  const text = type ? t3("active") : t3("in_active");
15969
- return /* @__PURE__ */ jsx63("div", { className: `${typeStyle} ${className}`, children: text });
16019
+ return /* @__PURE__ */ jsx65("div", { className: `${typeStyle} ${className}`, children: text });
15970
16020
  };
15971
16021
 
15972
16022
  // src/widgets/common/modal-layer.tsx
15973
16023
  import { Fragment as Fragment12 } from "react";
15974
16024
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
15975
- import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
16025
+ import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15976
16026
  var ModalLayer = ({
15977
16027
  isOpen,
15978
16028
  onClose,
15979
16029
  title,
15980
16030
  children
15981
16031
  }) => {
15982
- return /* @__PURE__ */ jsx64(
16032
+ return /* @__PURE__ */ jsx66(
15983
16033
  Transition,
15984
16034
  {
15985
16035
  show: isOpen,
@@ -15990,22 +16040,22 @@ var ModalLayer = ({
15990
16040
  leaveFrom: "transform scale-100 opacity-100",
15991
16041
  leaveTo: "transform scale-95 opacity-0",
15992
16042
  as: Fragment12,
15993
- 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: [
15994
- /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15995
- /* @__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: [
15996
- /* @__PURE__ */ jsxs40(
16043
+ children: /* @__PURE__ */ jsx66(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx66(DialogPanel, { children: /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16044
+ /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16045
+ /* @__PURE__ */ jsx66("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs42("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: [
16046
+ /* @__PURE__ */ jsxs42(
15997
16047
  "div",
15998
16048
  {
15999
16049
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
16000
16050
  children: [
16001
- title && /* @__PURE__ */ jsx64("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16002
- /* @__PURE__ */ jsx64(
16051
+ title && /* @__PURE__ */ jsx66("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16052
+ /* @__PURE__ */ jsx66(
16003
16053
  "button",
16004
16054
  {
16005
16055
  onClick: onClose,
16006
16056
  "aria-label": "Close",
16007
16057
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
16008
- children: /* @__PURE__ */ jsx64(CloseIcon, {})
16058
+ children: /* @__PURE__ */ jsx66(CloseIcon, {})
16009
16059
  }
16010
16060
  )
16011
16061
  ]
@@ -16019,7 +16069,7 @@ var ModalLayer = ({
16019
16069
  };
16020
16070
 
16021
16071
  // src/widgets/common/modal-confirm.tsx
16022
- import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
16072
+ import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
16023
16073
  var ModalConfirm = ({
16024
16074
  name: name2,
16025
16075
  isShowModal,
@@ -16033,7 +16083,7 @@ var ModalConfirm = ({
16033
16083
  const renderButtonAction = (name3) => {
16034
16084
  switch (name3) {
16035
16085
  case "duplicate":
16036
- return /* @__PURE__ */ jsxs41(
16086
+ return /* @__PURE__ */ jsxs43(
16037
16087
  "button",
16038
16088
  {
16039
16089
  type: "button",
@@ -16041,13 +16091,13 @@ var ModalConfirm = ({
16041
16091
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16042
16092
  disabled: isLoading,
16043
16093
  children: [
16044
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16045
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16094
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16095
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16046
16096
  ]
16047
16097
  }
16048
16098
  );
16049
16099
  case "archive":
16050
- return /* @__PURE__ */ jsxs41(
16100
+ return /* @__PURE__ */ jsxs43(
16051
16101
  "button",
16052
16102
  {
16053
16103
  type: "button",
@@ -16055,13 +16105,13 @@ var ModalConfirm = ({
16055
16105
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16056
16106
  disabled: isLoading,
16057
16107
  children: [
16058
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16059
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16108
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16109
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16060
16110
  ]
16061
16111
  }
16062
16112
  );
16063
16113
  case "unarchive":
16064
- return /* @__PURE__ */ jsxs41(
16114
+ return /* @__PURE__ */ jsxs43(
16065
16115
  "button",
16066
16116
  {
16067
16117
  type: "button",
@@ -16069,13 +16119,13 @@ var ModalConfirm = ({
16069
16119
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16070
16120
  disabled: isLoading,
16071
16121
  children: [
16072
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16073
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16122
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16123
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16074
16124
  ]
16075
16125
  }
16076
16126
  );
16077
16127
  case "delete":
16078
- return /* @__PURE__ */ jsxs41(
16128
+ return /* @__PURE__ */ jsxs43(
16079
16129
  "button",
16080
16130
  {
16081
16131
  type: "button",
@@ -16083,8 +16133,8 @@ var ModalConfirm = ({
16083
16133
  className: "button-primary flex-1 flex items-center justify-center gap-2",
16084
16134
  disabled: isLoading,
16085
16135
  children: [
16086
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16087
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16136
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16137
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16088
16138
  ]
16089
16139
  }
16090
16140
  );
@@ -16092,13 +16142,13 @@ var ModalConfirm = ({
16092
16142
  break;
16093
16143
  }
16094
16144
  };
16095
- return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16096
- /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
16097
- /* @__PURE__ */ jsx65("div", { className: "text-[18px] font-bold", children: title }),
16098
- /* @__PURE__ */ jsx65("p", { className: "text-[16px]", children: content })
16145
+ return /* @__PURE__ */ jsx67(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs43("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16146
+ /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-[4px] items-center", children: [
16147
+ /* @__PURE__ */ jsx67("div", { className: "text-[18px] font-bold", children: title }),
16148
+ /* @__PURE__ */ jsx67("p", { className: "text-[16px]", children: content })
16099
16149
  ] }),
16100
- /* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16101
- /* @__PURE__ */ jsx65(
16150
+ /* @__PURE__ */ jsxs43("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16151
+ /* @__PURE__ */ jsx67(
16102
16152
  "button",
16103
16153
  {
16104
16154
  type: "button",
@@ -16115,7 +16165,7 @@ var ModalConfirm = ({
16115
16165
  // src/widgets/common/modal-detail.tsx
16116
16166
  import { useState as useState7 } from "react";
16117
16167
  import { createPortal as createPortal3 } from "react-dom";
16118
- import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
16168
+ import { Fragment as Fragment13, jsx as jsx68, jsxs as jsxs44 } from "react/jsx-runtime";
16119
16169
  var ModalDetail = ({
16120
16170
  idToolTip,
16121
16171
  title,
@@ -16138,18 +16188,18 @@ var ModalDetail = ({
16138
16188
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
16139
16189
  };
16140
16190
  return createPortal3(
16141
- /* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16142
- /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16143
- /* @__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: [
16144
- /* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16145
- /* @__PURE__ */ jsxs42(
16191
+ /* @__PURE__ */ jsx68(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs44("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16192
+ /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16193
+ /* @__PURE__ */ jsx68("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs44("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: [
16194
+ /* @__PURE__ */ jsxs44("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16195
+ /* @__PURE__ */ jsxs44(
16146
16196
  "div",
16147
16197
  {
16148
16198
  id: "modal-detail",
16149
16199
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
16150
16200
  children: [
16151
16201
  t3("detail_button"),
16152
- /* @__PURE__ */ jsx66(
16202
+ /* @__PURE__ */ jsx68(
16153
16203
  "button",
16154
16204
  {
16155
16205
  onClick: handleNavigateDetail,
@@ -16160,9 +16210,9 @@ var ModalDetail = ({
16160
16210
  ]
16161
16211
  }
16162
16212
  ),
16163
- /* @__PURE__ */ jsx66("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx66(CloseIcon, { className: "h-5 w-5" }) })
16213
+ /* @__PURE__ */ jsx68("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx68(CloseIcon, { className: "h-5 w-5" }) })
16164
16214
  ] }),
16165
- /* @__PURE__ */ jsx66("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16215
+ /* @__PURE__ */ jsx68("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
16166
16216
  id: idForm,
16167
16217
  aid,
16168
16218
  model,
@@ -16177,7 +16227,7 @@ var ModalDetail = ({
16177
16227
 
16178
16228
  // src/widgets/common/loading-normal.tsx
16179
16229
  import { useEffect as useEffect9, useState as useState8 } from "react";
16180
- import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
16230
+ import { jsx as jsx69, jsxs as jsxs45 } from "react/jsx-runtime";
16181
16231
  var LayerLoading = () => {
16182
16232
  const { t: t3 } = useI18n();
16183
16233
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -16187,21 +16237,21 @@ var LayerLoading = () => {
16187
16237
  }, 200);
16188
16238
  return () => clearInterval(interval);
16189
16239
  }, []);
16190
- 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: [
16191
- /* @__PURE__ */ jsx67("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx67(
16240
+ return /* @__PURE__ */ jsx69("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx69("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs45("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16241
+ /* @__PURE__ */ jsx69("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx69(
16192
16242
  "div",
16193
16243
  {
16194
16244
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
16195
16245
  },
16196
16246
  index4
16197
16247
  )) }),
16198
- /* @__PURE__ */ jsx67("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16248
+ /* @__PURE__ */ jsx69("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
16199
16249
  ] }) }) });
16200
16250
  };
16201
16251
 
16202
16252
  // src/widgets/common/loading-small.tsx
16203
16253
  import { useEffect as useEffect10, useState as useState9 } from "react";
16204
- import { jsx as jsx68 } from "react/jsx-runtime";
16254
+ import { jsx as jsx70 } from "react/jsx-runtime";
16205
16255
  var LoadingSmall = () => {
16206
16256
  const [activeIndex, setActiveIndex] = useState9(0);
16207
16257
  useEffect10(() => {
@@ -16210,7 +16260,7 @@ var LoadingSmall = () => {
16210
16260
  }, 200);
16211
16261
  return () => clearInterval(interval);
16212
16262
  }, []);
16213
- 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(
16263
+ return /* @__PURE__ */ jsx70("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx70("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx70("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx70("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx70(
16214
16264
  "div",
16215
16265
  {
16216
16266
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -16405,7 +16455,7 @@ var po = $2(K("zoom"));
16405
16455
  var uo = $2(K("flip"));
16406
16456
 
16407
16457
  // src/widgets/common/select-files.tsx
16408
- import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
16458
+ import { Fragment as Fragment14, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16409
16459
  var ButtonSelectFiles = ({
16410
16460
  fileInputRef,
16411
16461
  selectedFiles,
@@ -16510,8 +16560,8 @@ var ButtonSelectFiles = ({
16510
16560
  await handleUpload(formData, serivce, xNode);
16511
16561
  }
16512
16562
  };
16513
- return /* @__PURE__ */ jsxs44(Fragment14, { children: [
16514
- isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
16563
+ return /* @__PURE__ */ jsxs46(Fragment14, { children: [
16564
+ isPending ? /* @__PURE__ */ jsx71(Fragment14, { children: /* @__PURE__ */ jsx71("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs46(
16515
16565
  "button",
16516
16566
  {
16517
16567
  type: "button",
@@ -16519,12 +16569,12 @@ var ButtonSelectFiles = ({
16519
16569
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16520
16570
  onClick: () => fileInputRef.current.click(),
16521
16571
  children: [
16522
- /* @__PURE__ */ jsx69(AttachIcon, {}),
16523
- isText && /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16572
+ /* @__PURE__ */ jsx71(AttachIcon, {}),
16573
+ isText && /* @__PURE__ */ jsx71("span", { children: t3("upload_file_placeholder") })
16524
16574
  ]
16525
16575
  }
16526
16576
  ),
16527
- /* @__PURE__ */ jsx69(
16577
+ /* @__PURE__ */ jsx71(
16528
16578
  "input",
16529
16579
  {
16530
16580
  type: "file",
@@ -16540,7 +16590,7 @@ var ButtonSelectFiles = ({
16540
16590
 
16541
16591
  // src/widgets/common/video-player.tsx
16542
16592
  import { useRef as useRef6, useState as useState10 } from "react";
16543
- import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16593
+ import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16544
16594
  var VideoPlayer = ({ src }) => {
16545
16595
  const [isPlaying, setIsPlaying] = useState10(false);
16546
16596
  const videoRef = useRef6(null);
@@ -16567,8 +16617,8 @@ var VideoPlayer = ({ src }) => {
16567
16617
  }
16568
16618
  }
16569
16619
  };
16570
- return /* @__PURE__ */ jsxs45("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
16571
- /* @__PURE__ */ jsx70(
16620
+ return /* @__PURE__ */ jsxs47("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: [
16621
+ /* @__PURE__ */ jsx72(
16572
16622
  "video",
16573
16623
  {
16574
16624
  ref: videoRef,
@@ -16580,13 +16630,13 @@ var VideoPlayer = ({ src }) => {
16580
16630
  children: "Your browser does not support the video tag."
16581
16631
  }
16582
16632
  ),
16583
- /* @__PURE__ */ jsx70("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16584
- /* @__PURE__ */ jsx70("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx70("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx70(PlayIcon, {}) }) })
16633
+ /* @__PURE__ */ jsx72("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16634
+ /* @__PURE__ */ jsx72("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__ */ jsx72("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx72(PlayIcon, {}) }) })
16585
16635
  ] });
16586
16636
  };
16587
16637
 
16588
16638
  // src/widgets/basic/avatar-field/avatar.tsx
16589
- import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
16639
+ import { Fragment as Fragment15, jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
16590
16640
  var AvatarField = (props) => {
16591
16641
  const {
16592
16642
  isForm = false,
@@ -16610,8 +16660,8 @@ var AvatarField = (props) => {
16610
16660
  color: textColor,
16611
16661
  fontSize: `${size4 / 2.5}px`
16612
16662
  };
16613
- return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16614
- isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16663
+ return /* @__PURE__ */ jsxs48(Fragment15, { children: [
16664
+ isForm && allowShowDetail && /* @__PURE__ */ jsx73(
16615
16665
  ModalDetail,
16616
16666
  {
16617
16667
  idToolTip: `avatar-widget-id-${id}`,
@@ -16622,7 +16672,7 @@ var AvatarField = (props) => {
16622
16672
  place: "top-start"
16623
16673
  }
16624
16674
  ),
16625
- allowShowDetail && /* @__PURE__ */ jsx71(
16675
+ allowShowDetail && /* @__PURE__ */ jsx73(
16626
16676
  M,
16627
16677
  {
16628
16678
  id: `avatar-widget-id-${id}`,
@@ -16631,7 +16681,7 @@ var AvatarField = (props) => {
16631
16681
  className: "z-20"
16632
16682
  }
16633
16683
  ),
16634
- avatarSrc ? /* @__PURE__ */ jsx71(
16684
+ avatarSrc ? /* @__PURE__ */ jsx73(
16635
16685
  "img",
16636
16686
  {
16637
16687
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16639,7 +16689,7 @@ var AvatarField = (props) => {
16639
16689
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16640
16690
  alt: "Avatar"
16641
16691
  }
16642
- ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16692
+ ) : /* @__PURE__ */ jsx73("div", { children: /* @__PURE__ */ jsx73(
16643
16693
  "div",
16644
16694
  {
16645
16695
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16652,7 +16702,8 @@ var AvatarField = (props) => {
16652
16702
  };
16653
16703
 
16654
16704
  // src/widgets/basic/binary-field/binary.tsx
16655
- import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16705
+ import { useEffect as useEffect11, useState as useState11 } from "react";
16706
+ import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs49 } from "react/jsx-runtime";
16656
16707
  var BinaryField = (props) => {
16657
16708
  const {
16658
16709
  name: name2,
@@ -16661,21 +16712,114 @@ var BinaryField = (props) => {
16661
16712
  placeholder,
16662
16713
  required = false,
16663
16714
  invisible = false,
16664
- //hook return
16715
+ filename,
16716
+ formValues,
16717
+ isEditTable,
16718
+ widget,
16665
16719
  string,
16720
+ // from hook
16721
+ placeHolderImage,
16666
16722
  inputId,
16667
- selectedImage,
16668
- initialImage,
16669
- isInsideTable,
16723
+ initialFile,
16670
16724
  binaryRef,
16671
- handleImageChange,
16672
- handleRemoveImage,
16725
+ handleFileChange,
16726
+ handleRemoveFile,
16673
16727
  checkIsImageLink: checkIsImageLink2,
16674
- getImageBase64WithMimeType,
16675
- image
16728
+ onDownload
16676
16729
  } = props;
16677
16730
  const { t: t3 } = useI18n();
16678
- return /* @__PURE__ */ jsx72(
16731
+ const [fileInfo, setFileInfo] = useState11(null);
16732
+ useEffect11(() => {
16733
+ const loadFromLink = async () => {
16734
+ if (!initialFile) return;
16735
+ if (typeof initialFile !== "string") {
16736
+ setFileInfo(initialFile);
16737
+ return;
16738
+ }
16739
+ try {
16740
+ let type = "application/octet-stream";
16741
+ let size4 = 0;
16742
+ let name3 = formValues?.[filename ?? ""] || initialFile.split("/").pop() || "unknown_file";
16743
+ if (checkIsImageLink2(initialFile)) {
16744
+ type = "image/*";
16745
+ } else {
16746
+ const response = await fetch(initialFile);
16747
+ const responseBlob = await response.blob();
16748
+ if (responseBlob) {
16749
+ type = responseBlob?.type;
16750
+ size4 = responseBlob.size;
16751
+ }
16752
+ }
16753
+ setFileInfo({
16754
+ name: name3,
16755
+ type,
16756
+ url: initialFile,
16757
+ size: size4,
16758
+ source: "link"
16759
+ });
16760
+ } catch (error2) {
16761
+ console.warn("Cannot load link info:", error2);
16762
+ }
16763
+ };
16764
+ loadFromLink();
16765
+ }, [initialFile]);
16766
+ const handleChange = (e3, onChange2) => {
16767
+ const file = e3.target.files?.[0];
16768
+ if (!file) return;
16769
+ const isImage = file.type.startsWith("image/");
16770
+ const preview = isImage ? URL.createObjectURL(file) : null;
16771
+ const normalized = {
16772
+ name: file.name,
16773
+ type: file.type,
16774
+ size: file.size,
16775
+ url: preview,
16776
+ // chỉ có giá trị nếu là ảnh
16777
+ source: "upload",
16778
+ raw: file
16779
+ };
16780
+ setFileInfo(normalized);
16781
+ handleFileChange(e3, onChange2);
16782
+ };
16783
+ const renderPreview = (file) => {
16784
+ if (!file) return /* @__PURE__ */ jsx74(PlaceHolderIcon, {});
16785
+ const { name: name3, type, url, size: size4 } = file;
16786
+ if (type?.startsWith("image/") || checkIsImageLink2(url))
16787
+ return /* @__PURE__ */ jsx74(
16788
+ "img",
16789
+ {
16790
+ src: url,
16791
+ alt: name3,
16792
+ className: "w-full h-full max-w-32 max-h-32 rounded-lg object-contain"
16793
+ }
16794
+ );
16795
+ if (type?.startsWith("video/"))
16796
+ return /* @__PURE__ */ jsx74(
16797
+ "video",
16798
+ {
16799
+ src: url,
16800
+ className: "h-32 w-32 rounded-lg object-cover",
16801
+ controls: true
16802
+ }
16803
+ );
16804
+ const getFileIcon = () => {
16805
+ if (type === "application/pdf") return /* @__PURE__ */ jsx74(PdfIcon, {});
16806
+ if (type?.includes("excel") || type?.includes("spreadsheet"))
16807
+ return /* @__PURE__ */ jsx74(ExcelIcon, {});
16808
+ if (type?.includes("zip")) return /* @__PURE__ */ jsx74(ZipIcon, {});
16809
+ if (type === "application/json") return /* @__PURE__ */ jsx74(JSONFileIcon, {});
16810
+ return /* @__PURE__ */ jsx74(DefaultFileIcon, {});
16811
+ };
16812
+ const isShowSize = !isNaN(size4);
16813
+ return /* @__PURE__ */ jsxs49("div", { className: "flex items-center gap-2", children: [
16814
+ getFileIcon(),
16815
+ /* @__PURE__ */ jsxs49("div", { children: [
16816
+ /* @__PURE__ */ jsx74("p", { className: "text-sm font-medium text-gray-600 truncate max-w-[120px]", children: name3 }),
16817
+ isShowSize && /* @__PURE__ */ jsx74("span", { className: "text-xs text-[#666] font-semibold", children: formatFileSize(size4) })
16818
+ ] })
16819
+ ] });
16820
+ };
16821
+ const onlyImage = widget === "image" || widget === "image_url";
16822
+ return /* @__PURE__ */ jsx74(
16679
16823
  Controller,
16680
16824
  {
16681
16825
  name: name2 ?? "",
@@ -16683,111 +16827,144 @@ var BinaryField = (props) => {
16683
16827
  rules: {
16684
16828
  required: required && !invisible ? { value: true, message: `${string} ${t3("must_required")}` } : false
16685
16829
  },
16686
- render: ({ field }) => {
16687
- const renderImage = initialImage || selectedImage;
16688
- return /* @__PURE__ */ jsx72(
16689
- "div",
16690
- {
16691
- ref: binaryRef,
16692
- className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16693
- children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
16694
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16695
- "img",
16696
- {
16697
- style: {
16698
- width: "128px",
16699
- height: "128px"
16700
- },
16701
- src: renderImage,
16702
- alt: "Selected",
16703
- className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16704
- }
16705
- ) : renderImage ? /* @__PURE__ */ jsx72(
16706
- "img",
16707
- {
16708
- style: {
16709
- width: "128px",
16710
- height: "128px"
16711
- },
16712
- src: getImageBase64WithMimeType(renderImage) ?? void 0,
16713
- alt: "Selected",
16714
- className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16715
- }
16716
- ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
16717
- !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16718
- "button",
16830
+ render: ({ field, fieldState: { error: error2 } }) => {
16831
+ const hasFile = !!fileInfo;
16832
+ return /* @__PURE__ */ jsxs49(Fragment16, { children: [
16833
+ /* @__PURE__ */ jsx74(
16834
+ "div",
16835
+ {
16836
+ ref: binaryRef,
16837
+ className: `flex w-fit items-center gap-4 ${onlyImage && initialFile ? "shadow-md rounded-lg" : ""}`,
16838
+ children: hasFile ? /* @__PURE__ */ jsx74(
16839
+ "div",
16719
16840
  {
16720
- type: "button",
16721
- onClick: () => handleRemoveImage(field.onChange),
16722
- 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",
16723
- children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16724
- }
16725
- )
16726
- ] }) : /* @__PURE__ */ jsxs47(
16727
- "label",
16728
- {
16729
- htmlFor: inputId,
16730
- style: {
16731
- width: "128px",
16732
- height: "128px"
16733
- },
16734
- 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"}`,
16735
- children: [
16736
- /* @__PURE__ */ jsx72(
16737
- "input",
16738
- {
16739
- id: inputId,
16740
- type: "file",
16741
- readOnly: readonly,
16742
- placeholder,
16743
- required: !invisible && required,
16744
- onChange: (e3) => handleImageChange(e3, field.onChange),
16745
- className: "hidden z-10 relative"
16746
- }
16747
- ),
16748
- /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
16749
- /* @__PURE__ */ jsx72(
16841
+ className: `relative group ${onlyImage ? "shadow-md rounded-lg" : ""}`,
16842
+ children: /* @__PURE__ */ jsxs49(
16750
16843
  "div",
16751
16844
  {
16752
- className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
16753
- style: {
16754
- bottom: "-8px",
16755
- left: "-8px",
16756
- boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16757
- },
16758
- children: /* @__PURE__ */ jsx72(
16759
- "svg",
16760
- {
16761
- xmlns: "http://www.w3.org/2000/svg",
16762
- width: "14",
16763
- height: "14",
16764
- viewBox: "0 0 14 14",
16765
- fill: "none",
16766
- children: /* @__PURE__ */ jsx72(
16767
- "path",
16768
- {
16769
- "fill-rule": "evenodd",
16770
- "clip-rule": "evenodd",
16771
- d: "M13.1868 0.813097C12.7961 0.422532 12.2663 0.203125 11.7139 0.203125C11.1615 0.203125 10.6317 0.422532 10.241 0.813097L9.35765 1.69726L12.3035 4.64393L12.0085 4.9381L11.7143 5.2331L8.76765 2.28643L1.40182 9.65226C1.34395 9.7104 1.30452 9.78432 1.28848 9.86476L0.698483 12.8114C0.685057 12.8787 0.688459 12.9483 0.708387 13.014C0.728316 13.0796 0.764154 13.1394 0.812719 13.1878C0.861283 13.2363 0.92107 13.2721 0.986769 13.2919C1.05247 13.3117 1.12204 13.315 1.18932 13.3014L4.13515 12.7123C4.21599 12.6961 4.29023 12.6564 4.34848 12.5981L13.1868 3.75976C13.3803 3.5663 13.5338 3.33661 13.6386 3.08381C13.7433 2.83102 13.7972 2.56006 13.7972 2.28643C13.7972 2.0128 13.7433 1.74184 13.6386 1.48905C13.5338 1.23625 13.3803 1.00656 13.1868 0.813097Z",
16772
- fill: "black"
16773
- }
16774
- )
16775
- }
16776
- )
16845
+ className: `flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px] ${onlyImage ? "h-32 w-32" : "max-h-fit max-w-fit"}`,
16846
+ children: [
16847
+ renderPreview(fileInfo),
16848
+ /* @__PURE__ */ jsxs49(
16849
+ "div",
16850
+ {
16851
+ style: {
16852
+ display: "flex",
16853
+ alignItems: "center",
16854
+ borderRadius: "8px",
16855
+ padding: "4px",
16856
+ gap: "8px",
16857
+ backgroundColor: onlyImage ? "rgba(0,0,0,0.03)" : "white",
16858
+ boxShadow: "0 2px 4px 0 rgba(27, 28, 29, 0.04)",
16859
+ position: onlyImage ? "absolute" : "relative",
16860
+ bottom: onlyImage ? "0" : "none",
16861
+ right: onlyImage ? "0" : "none"
16862
+ },
16863
+ children: [
16864
+ /* @__PURE__ */ jsx74(
16865
+ "span",
16866
+ {
16867
+ className: "cursor-pointer",
16868
+ onClick: () => onDownload && onDownload(
16869
+ fileInfo?.url || fileInfo?.data,
16870
+ fileInfo?.name || fileInfo?.display_name
16871
+ ),
16872
+ children: /* @__PURE__ */ jsx74(DownloadIcon, {})
16873
+ }
16874
+ ),
16875
+ !readonly && /* @__PURE__ */ jsx74(
16876
+ "span",
16877
+ {
16878
+ className: "cursor-pointer",
16879
+ onClick: () => {
16880
+ setFileInfo(null);
16881
+ handleRemoveFile(field.onChange);
16882
+ },
16883
+ children: /* @__PURE__ */ jsx74(DeleteIconDanger, {})
16884
+ }
16885
+ )
16886
+ ]
16887
+ }
16888
+ )
16889
+ ]
16777
16890
  }
16778
16891
  )
16779
- ]
16780
- }
16781
- )
16782
- }
16783
- );
16892
+ }
16893
+ ) : /* @__PURE__ */ jsxs49(
16894
+ "label",
16895
+ {
16896
+ htmlFor: inputId,
16897
+ className: `relative p-2 flex cursor-pointer items-center justify-center rounded-lg border border-gray-300 hover:border-primary bg-white transition-colors duration-300 ${readonly && "pointer-events-none"} ${onlyImage ? "h-32 w-32" : "w-fit h-fit "}`,
16898
+ children: [
16899
+ /* @__PURE__ */ jsx74(
16900
+ "input",
16901
+ {
16902
+ id: inputId,
16903
+ type: "file",
16904
+ readOnly: readonly,
16905
+ placeholder,
16906
+ required: !invisible && required,
16907
+ onChange: (e3) => handleChange(e3, field.onChange),
16908
+ className: "hidden",
16909
+ accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
16910
+ }
16911
+ ),
16912
+ onlyImage && /* @__PURE__ */ jsx74(
16913
+ "img",
16914
+ {
16915
+ src: placeHolderImage,
16916
+ alt: "",
16917
+ className: "z-0 relative"
16918
+ }
16919
+ ),
16920
+ /* @__PURE__ */ jsx74(
16921
+ "div",
16922
+ {
16923
+ className: "absolute size-8 bg-white rounded-lg flex justify-center items-center z-20",
16924
+ style: {
16925
+ bottom: "-8px",
16926
+ left: "-8px",
16927
+ boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)",
16928
+ width: "2rem",
16929
+ height: "2rem",
16930
+ border: onlyImage ? "1px solid transparent" : "1px solid var(--color-primary)",
16931
+ borderRadius: onlyImage ? "100%" : "8px"
16932
+ },
16933
+ children: /* @__PURE__ */ jsx74(
16934
+ "svg",
16935
+ {
16936
+ xmlns: "http://www.w3.org/2000/svg",
16937
+ width: "14",
16938
+ height: "14",
16939
+ viewBox: "0 0 14 14",
16940
+ fill: "none",
16941
+ children: /* @__PURE__ */ jsx74(
16942
+ "path",
16943
+ {
16944
+ "fill-rule": "evenodd",
16945
+ "clip-rule": "evenodd",
16946
+ d: "M13.1868 0.813097C12.7961 0.422532 12.2663 0.203125 11.7139 0.203125C11.1615 0.203125 10.6317 0.422532 10.241 0.813097L9.35765 1.69726L12.3035 4.64393L12.0085 4.9381L11.7143 5.2331L8.76765 2.28643L1.40182 9.65226C1.34395 9.7104 1.30452 9.78432 1.28848 9.86476L0.698483 12.8114C0.685057 12.8787 0.688459 12.9483 0.708387 13.014C0.728316 13.0796 0.764154 13.1394 0.812719 13.1878C0.861283 13.2363 0.92107 13.2721 0.986769 13.2919C1.05247 13.3117 1.12204 13.315 1.18932 13.3014L4.13515 12.7123C4.21599 12.6961 4.29023 12.6564 4.34848 12.5981L13.1868 3.75976C13.3803 3.5663 13.5338 3.33661 13.6386 3.08381C13.7433 2.83102 13.7972 2.56006 13.7972 2.28643C13.7972 2.0128 13.7433 1.74184 13.6386 1.48905C13.5338 1.23625 13.3803 1.00656 13.1868 0.813097Z",
16947
+ fill: "black"
16948
+ }
16949
+ )
16950
+ }
16951
+ )
16952
+ }
16953
+ )
16954
+ ]
16955
+ }
16956
+ )
16957
+ }
16958
+ ),
16959
+ error2 && !isEditTable && /* @__PURE__ */ jsx74("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
16960
+ ] });
16784
16961
  }
16785
16962
  }
16786
16963
  );
16787
16964
  };
16788
16965
 
16789
16966
  // src/widgets/basic/button-badge-field/button-badge.tsx
16790
- import { jsx as jsx73 } from "react/jsx-runtime";
16967
+ import { jsx as jsx75 } from "react/jsx-runtime";
16791
16968
  var typeStyles = {
16792
16969
  primary: {
16793
16970
  backgroundColor: "#3b82f6",
@@ -16862,11 +17039,11 @@ var ButtonBadgeField = (props) => {
16862
17039
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16863
17040
  };
16864
17041
  const label = getLabel(defaultValue ?? value);
16865
- return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17042
+ return label ? /* @__PURE__ */ jsx75("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16866
17043
  };
16867
17044
 
16868
17045
  // src/widgets/basic/button-field/button.tsx
16869
- import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
17046
+ import { Fragment as Fragment17, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
16870
17047
  var ButtonField = (props) => {
16871
17048
  const {
16872
17049
  func,
@@ -16877,7 +17054,7 @@ var ButtonField = (props) => {
16877
17054
  type = "submit"
16878
17055
  } = props;
16879
17056
  const { t: t3 } = useI18n();
16880
- return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
17057
+ return /* @__PURE__ */ jsx76(Fragment17, { children: !loading ? /* @__PURE__ */ jsx76(
16881
17058
  "button",
16882
17059
  {
16883
17060
  type,
@@ -16886,7 +17063,7 @@ var ButtonField = (props) => {
16886
17063
  onClick: func,
16887
17064
  children: t3(content)
16888
17065
  }
16889
- ) : /* @__PURE__ */ jsxs48(
17066
+ ) : /* @__PURE__ */ jsxs50(
16890
17067
  "button",
16891
17068
  {
16892
17069
  type,
@@ -16895,15 +17072,15 @@ var ButtonField = (props) => {
16895
17072
  children: [
16896
17073
  t3("loading"),
16897
17074
  " ",
16898
- /* @__PURE__ */ jsx74(LoadingIcon, {})
17075
+ /* @__PURE__ */ jsx76(LoadingIcon, {})
16899
17076
  ]
16900
17077
  }
16901
17078
  ) });
16902
17079
  };
16903
17080
 
16904
17081
  // src/widgets/basic/char-field/char.tsx
16905
- import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
16906
- import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
17082
+ import { useEffect as useEffect12, useMemo as useMemo4 } from "react";
17083
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs51 } from "react/jsx-runtime";
16907
17084
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16908
17085
  var CharField = (props) => {
16909
17086
  const {
@@ -16931,9 +17108,9 @@ var CharField = (props) => {
16931
17108
  } = props;
16932
17109
  if (!isForm && !isEditTable) {
16933
17110
  const propValue = value || defaultValue;
16934
- return /* @__PURE__ */ jsx75("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17111
+ return /* @__PURE__ */ jsx77("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16935
17112
  }
16936
- return /* @__PURE__ */ jsx75(
17113
+ return /* @__PURE__ */ jsx77(
16937
17114
  Controller,
16938
17115
  {
16939
17116
  name: name2 ?? "",
@@ -16961,12 +17138,12 @@ var CharField = (props) => {
16961
17138
  fieldState: { error: error2, isDirty }
16962
17139
  }) => {
16963
17140
  const { setError, clearErrors } = methods;
16964
- useEffect11(() => {
17141
+ useEffect12(() => {
16965
17142
  if (value2) {
16966
17143
  clearErrors(name2);
16967
17144
  }
16968
17145
  }, [value2, clearErrors, name2]);
16969
- useEffect11(() => {
17146
+ useEffect12(() => {
16970
17147
  if (widget !== WIDGET_AUTO_COMPUTE_DEPEND) return;
16971
17148
  const depValue = formValues?.[options2?.depend_field]?.[options2?.field_name];
16972
17149
  const currentValue = methods?.getValues(name2);
@@ -16987,8 +17164,8 @@ var CharField = (props) => {
16987
17164
  }
16988
17165
  return "";
16989
17166
  }, [widget, formValues]);
16990
- return /* @__PURE__ */ jsxs49(Fragment17, { children: [
16991
- /* @__PURE__ */ jsx75(
17167
+ return /* @__PURE__ */ jsxs51(Fragment18, { children: [
17168
+ /* @__PURE__ */ jsx77(
16992
17169
  "input",
16993
17170
  {
16994
17171
  value: displayValue ?? "",
@@ -17049,7 +17226,7 @@ var CharField = (props) => {
17049
17226
  `
17050
17227
  }
17051
17228
  ),
17052
- isEditTable ? /* @__PURE__ */ jsx75(Fragment17, {}) : /* @__PURE__ */ jsx75(Fragment17, { children: error2 && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17229
+ isEditTable ? /* @__PURE__ */ jsx77(Fragment18, {}) : /* @__PURE__ */ jsx77(Fragment18, { children: error2 && /* @__PURE__ */ jsx77("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
17053
17230
  ] });
17054
17231
  }
17055
17232
  }
@@ -17057,7 +17234,7 @@ var CharField = (props) => {
17057
17234
  };
17058
17235
 
17059
17236
  // src/widgets/basic/checkbox-field/checkbox.tsx
17060
- import { jsx as jsx76 } from "react/jsx-runtime";
17237
+ import { jsx as jsx78 } from "react/jsx-runtime";
17061
17238
  var CheckboxField = (props) => {
17062
17239
  const {
17063
17240
  name: name2,
@@ -17072,9 +17249,9 @@ var CheckboxField = (props) => {
17072
17249
  } = props;
17073
17250
  if (!isForm) {
17074
17251
  if (name2 === "is_active" || name2 === "active") {
17075
- return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
17252
+ return /* @__PURE__ */ jsx78(ActiveBadgeField, { type: value });
17076
17253
  } else {
17077
- return /* @__PURE__ */ jsx76(
17254
+ return /* @__PURE__ */ jsx78(
17078
17255
  "input",
17079
17256
  {
17080
17257
  type: "checkbox",
@@ -17085,12 +17262,12 @@ var CheckboxField = (props) => {
17085
17262
  );
17086
17263
  }
17087
17264
  }
17088
- return /* @__PURE__ */ jsx76(
17265
+ return /* @__PURE__ */ jsx78(
17089
17266
  Controller,
17090
17267
  {
17091
17268
  name: name2 ?? "",
17092
17269
  control: methods?.control,
17093
- render: ({ field }) => /* @__PURE__ */ jsx76(
17270
+ render: ({ field }) => /* @__PURE__ */ jsx78(
17094
17271
  "div",
17095
17272
  {
17096
17273
  className: "flex items-center gap-2",
@@ -17103,7 +17280,7 @@ var CheckboxField = (props) => {
17103
17280
  onChange2(name2 ?? "", checked);
17104
17281
  }
17105
17282
  },
17106
- children: /* @__PURE__ */ jsx76(
17283
+ children: /* @__PURE__ */ jsx78(
17107
17284
  "input",
17108
17285
  {
17109
17286
  ...field,
@@ -17130,24 +17307,24 @@ var CheckboxField = (props) => {
17130
17307
  };
17131
17308
 
17132
17309
  // src/widgets/basic/color-field/color-wrapper.tsx
17133
- import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
17134
- import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs50 } from "react/jsx-runtime";
17310
+ import { useEffect as useEffect13, useRef as useRef7, useState as useState12 } from "react";
17311
+ import { Fragment as Fragment19, jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
17135
17312
  var ColorWrapper = (props) => {
17136
17313
  const {
17137
17314
  colors: colors2,
17138
17315
  defaultColor,
17139
17316
  savePickColor
17140
17317
  } = props;
17141
- const [selectedColor, setSelectedColor] = useState11(colors2[defaultColor]);
17142
- const [showFullColors, setIsShowFullColor] = useState11(false);
17318
+ const [selectedColor, setSelectedColor] = useState12(colors2[defaultColor]);
17319
+ const [showFullColors, setIsShowFullColor] = useState12(false);
17143
17320
  const pickColorsRef = useRef7(null);
17144
- useEffect12(() => {
17321
+ useEffect13(() => {
17145
17322
  setSelectedColor(colors2[defaultColor]);
17146
17323
  }, [defaultColor]);
17147
17324
  const handleShowFullColors = () => {
17148
17325
  setIsShowFullColor(!showFullColors);
17149
17326
  };
17150
- useEffect12(() => {
17327
+ useEffect13(() => {
17151
17328
  const handleClickOutside = (event) => {
17152
17329
  if (pickColorsRef.current && !pickColorsRef.current.contains(event.target)) {
17153
17330
  setIsShowFullColor(false);
@@ -17158,8 +17335,8 @@ var ColorWrapper = (props) => {
17158
17335
  document.removeEventListener("mousedown", handleClickOutside);
17159
17336
  };
17160
17337
  }, []);
17161
- return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17162
- /* @__PURE__ */ jsx77(
17338
+ return /* @__PURE__ */ jsx79("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx79("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs52("div", { children: [
17339
+ /* @__PURE__ */ jsx79(
17163
17340
  "button",
17164
17341
  {
17165
17342
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17173,7 +17350,7 @@ var ColorWrapper = (props) => {
17173
17350
  }
17174
17351
  }
17175
17352
  ),
17176
- /* @__PURE__ */ jsx77(
17353
+ /* @__PURE__ */ jsx79(
17177
17354
  M,
17178
17355
  {
17179
17356
  className: "",
@@ -17182,8 +17359,8 @@ var ColorWrapper = (props) => {
17182
17359
  content: i18n_default.t(color?.name)
17183
17360
  }
17184
17361
  )
17185
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17186
- /* @__PURE__ */ jsx77(
17362
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment19, { children: [
17363
+ /* @__PURE__ */ jsx79(
17187
17364
  "button",
17188
17365
  {
17189
17366
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17196,7 +17373,7 @@ var ColorWrapper = (props) => {
17196
17373
  style: { backgroundColor: selectedColor?.color }
17197
17374
  }
17198
17375
  ),
17199
- /* @__PURE__ */ jsx77(
17376
+ /* @__PURE__ */ jsx79(
17200
17377
  M,
17201
17378
  {
17202
17379
  place: "top",
@@ -17208,13 +17385,13 @@ var ColorWrapper = (props) => {
17208
17385
  };
17209
17386
 
17210
17387
  // src/widgets/basic/color-field/color.tsx
17211
- import { jsx as jsx78 } from "react/jsx-runtime";
17388
+ import { jsx as jsx80 } from "react/jsx-runtime";
17212
17389
  var ColorField = (props) => {
17213
17390
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17214
17391
  if (!isForm) {
17215
- return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17392
+ return /* @__PURE__ */ jsx80(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17216
17393
  }
17217
- return /* @__PURE__ */ jsx78(
17394
+ return /* @__PURE__ */ jsx80(
17218
17395
  Controller,
17219
17396
  {
17220
17397
  name: name2 ?? "",
@@ -17224,7 +17401,7 @@ var ColorField = (props) => {
17224
17401
  field.onChange(color?.id);
17225
17402
  onChange2 && onChange2(name2 ?? "", color?.id);
17226
17403
  };
17227
- return /* @__PURE__ */ jsx78(
17404
+ return /* @__PURE__ */ jsx80(
17228
17405
  ColorWrapper,
17229
17406
  {
17230
17407
  savePickColor: handlePickColorChange,
@@ -17238,8 +17415,8 @@ var ColorField = (props) => {
17238
17415
  };
17239
17416
 
17240
17417
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17241
- import { useEffect as useEffect13 } from "react";
17242
- import { jsx as jsx79, jsxs as jsxs51 } from "react/jsx-runtime";
17418
+ import { useEffect as useEffect14 } from "react";
17419
+ import { jsx as jsx81, jsxs as jsxs53 } from "react/jsx-runtime";
17243
17420
  var CopyLinkButtonField = (props) => {
17244
17421
  const {
17245
17422
  isForm,
@@ -17258,9 +17435,9 @@ var CopyLinkButtonField = (props) => {
17258
17435
  } = props;
17259
17436
  const { t: t3 } = useI18n();
17260
17437
  if (!isForm) {
17261
- return /* @__PURE__ */ jsx79("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17438
+ return /* @__PURE__ */ jsx81("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17262
17439
  }
17263
- return /* @__PURE__ */ jsx79(
17440
+ return /* @__PURE__ */ jsx81(
17264
17441
  Controller,
17265
17442
  {
17266
17443
  name: name2 ?? "",
@@ -17273,13 +17450,13 @@ var CopyLinkButtonField = (props) => {
17273
17450
  fieldState: { error: error2 }
17274
17451
  }) => {
17275
17452
  const { setError, clearErrors } = methods;
17276
- useEffect13(() => {
17453
+ useEffect14(() => {
17277
17454
  if (value) {
17278
17455
  clearErrors(name2);
17279
17456
  }
17280
17457
  }, [value]);
17281
- return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17282
- /* @__PURE__ */ jsxs51(
17458
+ return /* @__PURE__ */ jsxs53("div", { className: "relative", children: [
17459
+ /* @__PURE__ */ jsxs53(
17283
17460
  "div",
17284
17461
  {
17285
17462
  "aria-disabled": readonly,
@@ -17288,7 +17465,7 @@ var CopyLinkButtonField = (props) => {
17288
17465
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17289
17466
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17290
17467
  children: [
17291
- /* @__PURE__ */ jsx79(
17468
+ /* @__PURE__ */ jsx81(
17292
17469
  "input",
17293
17470
  {
17294
17471
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17329,19 +17506,19 @@ var CopyLinkButtonField = (props) => {
17329
17506
  `
17330
17507
  }
17331
17508
  ),
17332
- readonly && value && /* @__PURE__ */ jsx79(
17509
+ readonly && value && /* @__PURE__ */ jsx81(
17333
17510
  "button",
17334
17511
  {
17335
17512
  className: "cursor-pointer",
17336
17513
  type: "button",
17337
17514
  onClick: () => handleCopyToClipboard(propValue),
17338
- children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17515
+ children: isCopied ? /* @__PURE__ */ jsx81(CheckIcon, {}) : /* @__PURE__ */ jsx81(CopyIcon, {})
17339
17516
  }
17340
17517
  )
17341
17518
  ]
17342
17519
  }
17343
17520
  ),
17344
- error2 && /* @__PURE__ */ jsx79("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17521
+ error2 && /* @__PURE__ */ jsx81("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17345
17522
  ] });
17346
17523
  }
17347
17524
  }
@@ -17349,10 +17526,10 @@ var CopyLinkButtonField = (props) => {
17349
17526
  };
17350
17527
 
17351
17528
  // src/widgets/basic/date-field/date.tsx
17352
- import { forwardRef as forwardRef6, useEffect as useEffect17 } from "react";
17529
+ import { forwardRef as forwardRef6, useEffect as useEffect18 } from "react";
17353
17530
 
17354
17531
  // node_modules/react-datepicker/dist/index.es.js
17355
- import React9, { useRef as useRef11, useCallback as useCallback5, useEffect as useEffect15, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
17532
+ import React9, { useRef as useRef11, useCallback as useCallback5, useEffect as useEffect16, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
17356
17533
 
17357
17534
  // node_modules/date-fns/constants.js
17358
17535
  var daysInYear = 365.2425;
@@ -21282,7 +21459,7 @@ function useEffectEvent(callback) {
21282
21459
  }
21283
21460
 
21284
21461
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21285
- import { jsx as jsx80, jsxs as jsxs52, Fragment as Fragment19 } from "react/jsx-runtime";
21462
+ import { jsx as jsx82, jsxs as jsxs54, Fragment as Fragment20 } from "react/jsx-runtime";
21286
21463
  import * as ReactDOM2 from "react-dom";
21287
21464
 
21288
21465
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21680,7 +21857,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21680
21857
  bottom: isCustomShape ? "" : "rotate(180deg)",
21681
21858
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21682
21859
  }[side];
21683
- return /* @__PURE__ */ jsxs52("svg", {
21860
+ return /* @__PURE__ */ jsxs54("svg", {
21684
21861
  ...rest,
21685
21862
  "aria-hidden": true,
21686
21863
  ref,
@@ -21696,18 +21873,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21696
21873
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21697
21874
  ...restStyle
21698
21875
  },
21699
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21876
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx82("path", {
21700
21877
  clipPath: "url(#" + clipPathId + ")",
21701
21878
  fill: "none",
21702
21879
  stroke,
21703
21880
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21704
21881
  d: dValue
21705
- }), /* @__PURE__ */ jsx80("path", {
21882
+ }), /* @__PURE__ */ jsx82("path", {
21706
21883
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21707
21884
  d: dValue
21708
- }), /* @__PURE__ */ jsx80("clipPath", {
21885
+ }), /* @__PURE__ */ jsx82("clipPath", {
21709
21886
  id: clipPathId,
21710
- children: /* @__PURE__ */ jsx80("rect", {
21887
+ children: /* @__PURE__ */ jsx82("rect", {
21711
21888
  x: -halfStrokeWidth,
21712
21889
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21713
21890
  width: width + computedStrokeWidth,
@@ -21936,7 +22113,7 @@ var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21936
22113
  }
21937
22114
  }
21938
22115
  }, [ignoreClass]);
21939
- useEffect15(function() {
22116
+ useEffect16(function() {
21940
22117
  document.addEventListener("mousedown", handleClickOutside);
21941
22118
  return function() {
21942
22119
  document.removeEventListener("mousedown", handleClickOutside);
@@ -26189,13 +26366,13 @@ function _objectWithoutProperties(e3, t3) {
26189
26366
  }
26190
26367
 
26191
26368
  // node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
26192
- import { useState as useState14, useCallback as useCallback6 } from "react";
26369
+ import { useState as useState15, useCallback as useCallback6 } from "react";
26193
26370
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
26194
26371
  function useStateManager(_ref3) {
26195
26372
  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);
26196
- var _useState = useState14(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
26197
- var _useState3 = useState14(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
26198
- var _useState5 = useState14(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
26373
+ var _useState = useState15(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
26374
+ var _useState3 = useState15(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
26375
+ var _useState5 = useState15(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
26199
26376
  var onChange2 = useCallback6(function(value2, actionMeta) {
26200
26377
  if (typeof propsOnChange === "function") {
26201
26378
  propsOnChange(value2, actionMeta);
@@ -26356,7 +26533,7 @@ function _toConsumableArray(r4) {
26356
26533
 
26357
26534
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
26358
26535
  import * as React13 from "react";
26359
- import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect16, Component as Component2 } from "react";
26536
+ import { useMemo as useMemo8, Fragment as Fragment23, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
26360
26537
 
26361
26538
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
26362
26539
  import * as React11 from "react";
@@ -27640,7 +27817,7 @@ var Emotion$1 = Emotion;
27640
27817
  import * as React12 from "react";
27641
27818
  var import_extends2 = __toESM(require_extends());
27642
27819
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27643
- var jsx81 = function jsx82(type, props) {
27820
+ var jsx83 = function jsx84(type, props) {
27644
27821
  var args = arguments;
27645
27822
  if (props == null || !hasOwn.call(props, "css")) {
27646
27823
  return React12.createElement.apply(void 0, args);
@@ -27658,7 +27835,7 @@ var jsx81 = function jsx82(type, props) {
27658
27835
  var JSX;
27659
27836
  /* @__PURE__ */ (function(_JSX) {
27660
27837
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27661
- })(jsx81 || (jsx81 = {}));
27838
+ })(jsx83 || (jsx83 = {}));
27662
27839
  function css() {
27663
27840
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27664
27841
  args[_key] = arguments[_key];
@@ -27688,7 +27865,7 @@ function _taggedTemplateLiteral(e3, t3) {
27688
27865
  }
27689
27866
 
27690
27867
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27691
- import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27868
+ import { useContext as useContext9, useRef as useRef13, useState as useState16, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27692
27869
  import { createPortal as createPortal5 } from "react-dom";
27693
27870
 
27694
27871
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
@@ -28035,8 +28212,8 @@ var MenuPlacer = function MenuPlacer2(props) {
28035
28212
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
28036
28213
  var _ref3 = useContext9(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
28037
28214
  var ref = useRef13(null);
28038
- var _useState = useState15(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
28039
- var _useState3 = useState15(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
28215
+ var _useState = useState16(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
28216
+ var _useState3 = useState16(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
28040
28217
  var controlHeight2 = theme.spacing.controlHeight;
28041
28218
  index3(function() {
28042
28219
  var menuEl = ref.current;
@@ -28066,7 +28243,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28066
28243
  };
28067
28244
  var Menu = function Menu2(props) {
28068
28245
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28069
- return jsx81("div", _extends({}, getStyleProps(props, "menu", {
28246
+ return jsx83("div", _extends({}, getStyleProps(props, "menu", {
28070
28247
  menu: true
28071
28248
  }), {
28072
28249
  ref: innerRef
@@ -28088,7 +28265,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28088
28265
  };
28089
28266
  var MenuList = function MenuList2(props) {
28090
28267
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28091
- return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
28268
+ return jsx83("div", _extends({}, getStyleProps(props, "menuList", {
28092
28269
  "menu-list": true,
28093
28270
  "menu-list--is-multi": isMulti
28094
28271
  }), {
@@ -28108,7 +28285,7 @@ var noOptionsMessageCSS = noticeCSS;
28108
28285
  var loadingMessageCSS = noticeCSS;
28109
28286
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28110
28287
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28111
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28288
+ return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28112
28289
  children,
28113
28290
  innerProps
28114
28291
  }), "noOptionsMessage", {
@@ -28118,7 +28295,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28118
28295
  };
28119
28296
  var LoadingMessage = function LoadingMessage2(_ref7) {
28120
28297
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28121
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28298
+ return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28122
28299
  children,
28123
28300
  innerProps
28124
28301
  }), "loadingMessage", {
@@ -28140,13 +28317,13 @@ var MenuPortal = function MenuPortal2(props) {
28140
28317
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
28141
28318
  var menuPortalRef = useRef13(null);
28142
28319
  var cleanupRef = useRef13(null);
28143
- var _useState5 = useState15(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
28320
+ var _useState5 = useState16(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
28144
28321
  var portalPlacementContext = useMemo7(function() {
28145
28322
  return {
28146
28323
  setPortalPlacement
28147
28324
  };
28148
28325
  }, []);
28149
- var _useState7 = useState15(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
28326
+ var _useState7 = useState16(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
28150
28327
  var updateComputedPosition = useCallback7(function() {
28151
28328
  if (!controlElement) return;
28152
28329
  var rect = getBoundingClientObj(controlElement);
@@ -28181,7 +28358,7 @@ var MenuPortal = function MenuPortal2(props) {
28181
28358
  runAutoUpdate();
28182
28359
  }, [runAutoUpdate]);
28183
28360
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28184
- var menuWrapper = jsx81("div", _extends({
28361
+ var menuWrapper = jsx83("div", _extends({
28185
28362
  ref: setMenuPortalElement
28186
28363
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28187
28364
  offset: computedPosition.offset,
@@ -28190,7 +28367,7 @@ var MenuPortal = function MenuPortal2(props) {
28190
28367
  }), "menuPortal", {
28191
28368
  "menu-portal": true
28192
28369
  }), innerProps), children);
28193
- return jsx81(PortalPlacementContext.Provider, {
28370
+ return jsx83(PortalPlacementContext.Provider, {
28194
28371
  value: portalPlacementContext
28195
28372
  }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
28196
28373
  };
@@ -28206,7 +28383,7 @@ var containerCSS = function containerCSS2(_ref3) {
28206
28383
  };
28207
28384
  var SelectContainer = function SelectContainer2(props) {
28208
28385
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28209
- return jsx81("div", _extends({}, getStyleProps(props, "container", {
28386
+ return jsx83("div", _extends({}, getStyleProps(props, "container", {
28210
28387
  "--is-disabled": isDisabled,
28211
28388
  "--is-rtl": isRtl
28212
28389
  }), innerProps), children);
@@ -28227,7 +28404,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28227
28404
  };
28228
28405
  var ValueContainer = function ValueContainer2(props) {
28229
28406
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28230
- return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28407
+ return jsx83("div", _extends({}, getStyleProps(props, "valueContainer", {
28231
28408
  "value-container": true,
28232
28409
  "value-container--is-multi": isMulti,
28233
28410
  "value-container--has-value": hasValue
@@ -28243,7 +28420,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28243
28420
  };
28244
28421
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28245
28422
  var children = props.children, innerProps = props.innerProps;
28246
- return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28423
+ return jsx83("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28247
28424
  indicators: true
28248
28425
  }), innerProps), children);
28249
28426
  };
@@ -28264,7 +28441,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28264
28441
  };
28265
28442
  var Svg = function Svg2(_ref3) {
28266
28443
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28267
- return jsx81("svg", _extends({
28444
+ return jsx83("svg", _extends({
28268
28445
  height: size4,
28269
28446
  width: size4,
28270
28447
  viewBox: "0 0 20 20",
@@ -28274,16 +28451,16 @@ var Svg = function Svg2(_ref3) {
28274
28451
  }, props));
28275
28452
  };
28276
28453
  var CrossIcon = function CrossIcon2(props) {
28277
- return jsx81(Svg, _extends({
28454
+ return jsx83(Svg, _extends({
28278
28455
  size: 20
28279
- }, props), jsx81("path", {
28456
+ }, props), jsx83("path", {
28280
28457
  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"
28281
28458
  }));
28282
28459
  };
28283
28460
  var DownChevron = function DownChevron2(props) {
28284
- return jsx81(Svg, _extends({
28461
+ return jsx83(Svg, _extends({
28285
28462
  size: 20
28286
- }, props), jsx81("path", {
28463
+ }, props), jsx83("path", {
28287
28464
  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"
28288
28465
  }));
28289
28466
  };
@@ -28304,18 +28481,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28304
28481
  var dropdownIndicatorCSS = baseCSS;
28305
28482
  var DropdownIndicator = function DropdownIndicator2(props) {
28306
28483
  var children = props.children, innerProps = props.innerProps;
28307
- return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28484
+ return jsx83("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28308
28485
  indicator: true,
28309
28486
  "dropdown-indicator": true
28310
- }), innerProps), children || jsx81(DownChevron, null));
28487
+ }), innerProps), children || jsx83(DownChevron, null));
28311
28488
  };
28312
28489
  var clearIndicatorCSS = baseCSS;
28313
28490
  var ClearIndicator = function ClearIndicator2(props) {
28314
28491
  var children = props.children, innerProps = props.innerProps;
28315
- return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28492
+ return jsx83("div", _extends({}, getStyleProps(props, "clearIndicator", {
28316
28493
  indicator: true,
28317
28494
  "clear-indicator": true
28318
- }), innerProps), children || jsx81(CrossIcon, null));
28495
+ }), innerProps), children || jsx83(CrossIcon, null));
28319
28496
  };
28320
28497
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28321
28498
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28331,7 +28508,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28331
28508
  };
28332
28509
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28333
28510
  var innerProps = props.innerProps;
28334
- return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28511
+ return jsx83("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28335
28512
  "indicator-separator": true
28336
28513
  })));
28337
28514
  };
@@ -28355,7 +28532,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28355
28532
  };
28356
28533
  var LoadingDot = function LoadingDot2(_ref6) {
28357
28534
  var delay = _ref6.delay, offset4 = _ref6.offset;
28358
- return jsx81("span", {
28535
+ return jsx83("span", {
28359
28536
  css: /* @__PURE__ */ css({
28360
28537
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28361
28538
  backgroundColor: "currentColor",
@@ -28370,20 +28547,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28370
28547
  };
28371
28548
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28372
28549
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28373
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28550
+ return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28374
28551
  innerProps,
28375
28552
  isRtl,
28376
28553
  size: size4
28377
28554
  }), "loadingIndicator", {
28378
28555
  indicator: true,
28379
28556
  "loading-indicator": true
28380
- }), innerProps), jsx81(LoadingDot, {
28557
+ }), innerProps), jsx83(LoadingDot, {
28381
28558
  delay: 0,
28382
28559
  offset: isRtl
28383
- }), jsx81(LoadingDot, {
28560
+ }), jsx83(LoadingDot, {
28384
28561
  delay: 160,
28385
28562
  offset: true
28386
- }), jsx81(LoadingDot, {
28563
+ }), jsx83(LoadingDot, {
28387
28564
  delay: 320,
28388
28565
  offset: !isRtl
28389
28566
  }));
@@ -28415,7 +28592,7 @@ var css$1 = function css2(_ref3, unstyled) {
28415
28592
  };
28416
28593
  var Control = function Control2(props) {
28417
28594
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28418
- return jsx81("div", _extends({
28595
+ return jsx83("div", _extends({
28419
28596
  ref: innerRef
28420
28597
  }, getStyleProps(props, "control", {
28421
28598
  control: true,
@@ -28437,15 +28614,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28437
28614
  };
28438
28615
  var Group = function Group2(props) {
28439
28616
  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;
28440
- return jsx81("div", _extends({}, getStyleProps(props, "group", {
28617
+ return jsx83("div", _extends({}, getStyleProps(props, "group", {
28441
28618
  group: true
28442
- }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28619
+ }), innerProps), jsx83(Heading, _extends({}, headingProps, {
28443
28620
  selectProps,
28444
28621
  theme,
28445
28622
  getStyles,
28446
28623
  getClassNames,
28447
28624
  cx
28448
- }), label), jsx81("div", null, children));
28625
+ }), label), jsx83("div", null, children));
28449
28626
  };
28450
28627
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28451
28628
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28467,7 +28644,7 @@ var GroupHeading = function GroupHeading2(props) {
28467
28644
  var _cleanCommonProps = cleanCommonProps(props);
28468
28645
  _cleanCommonProps.data;
28469
28646
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28470
- return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28647
+ return jsx83("div", _extends({}, getStyleProps(props, "groupHeading", {
28471
28648
  "group-heading": true
28472
28649
  }), innerProps));
28473
28650
  };
@@ -28519,11 +28696,11 @@ var inputStyle = function inputStyle2(isHidden) {
28519
28696
  var Input = function Input2(props) {
28520
28697
  var cx = props.cx, value = props.value;
28521
28698
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28522
- return jsx81("div", _extends({}, getStyleProps(props, "input", {
28699
+ return jsx83("div", _extends({}, getStyleProps(props, "input", {
28523
28700
  "input-container": true
28524
28701
  }), {
28525
28702
  "data-value": value || ""
28526
- }), jsx81("input", _extends({
28703
+ }), jsx83("input", _extends({
28527
28704
  className: cx({
28528
28705
  input: true
28529
28706
  }, inputClassName),
@@ -28577,35 +28754,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28577
28754
  };
28578
28755
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28579
28756
  var children = _ref4.children, innerProps = _ref4.innerProps;
28580
- return jsx81("div", innerProps, children);
28757
+ return jsx83("div", innerProps, children);
28581
28758
  };
28582
28759
  var MultiValueContainer = MultiValueGeneric;
28583
28760
  var MultiValueLabel = MultiValueGeneric;
28584
28761
  function MultiValueRemove(_ref5) {
28585
28762
  var children = _ref5.children, innerProps = _ref5.innerProps;
28586
- return jsx81("div", _extends({
28763
+ return jsx83("div", _extends({
28587
28764
  role: "button"
28588
- }, innerProps), children || jsx81(CrossIcon, {
28765
+ }, innerProps), children || jsx83(CrossIcon, {
28589
28766
  size: 14
28590
28767
  }));
28591
28768
  }
28592
28769
  var MultiValue = function MultiValue2(props) {
28593
28770
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28594
28771
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28595
- return jsx81(Container, {
28772
+ return jsx83(Container, {
28596
28773
  data,
28597
28774
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28598
28775
  "multi-value": true,
28599
28776
  "multi-value--is-disabled": isDisabled
28600
28777
  })), innerProps),
28601
28778
  selectProps
28602
- }, jsx81(Label, {
28779
+ }, jsx83(Label, {
28603
28780
  data,
28604
28781
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28605
28782
  "multi-value__label": true
28606
28783
  })),
28607
28784
  selectProps
28608
- }, children), jsx81(Remove, {
28785
+ }, children), jsx83(Remove, {
28609
28786
  data,
28610
28787
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28611
28788
  "multi-value__remove": true
@@ -28638,7 +28815,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28638
28815
  };
28639
28816
  var Option = function Option2(props) {
28640
28817
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28641
- return jsx81("div", _extends({}, getStyleProps(props, "option", {
28818
+ return jsx83("div", _extends({}, getStyleProps(props, "option", {
28642
28819
  option: true,
28643
28820
  "option--is-disabled": isDisabled,
28644
28821
  "option--is-focused": isFocused,
@@ -28662,7 +28839,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28662
28839
  };
28663
28840
  var Placeholder = function Placeholder2(props) {
28664
28841
  var children = props.children, innerProps = props.innerProps;
28665
- return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28842
+ return jsx83("div", _extends({}, getStyleProps(props, "placeholder", {
28666
28843
  placeholder: true
28667
28844
  }), innerProps), children);
28668
28845
  };
@@ -28684,7 +28861,7 @@ var css3 = function css4(_ref3, unstyled) {
28684
28861
  };
28685
28862
  var SingleValue = function SingleValue2(props) {
28686
28863
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28687
- return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28864
+ return jsx83("div", _extends({}, getStyleProps(props, "singleValue", {
28688
28865
  "single-value": true,
28689
28866
  "single-value--is-disabled": isDisabled
28690
28867
  }), innerProps), children);
@@ -28786,7 +28963,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28786
28963
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28787
28964
  };
28788
28965
  var A11yText = function A11yText2(props) {
28789
- return jsx81("span", _extends({
28966
+ return jsx83("span", _extends({
28790
28967
  css: _ref
28791
28968
  }, props));
28792
28969
  };
@@ -28921,18 +29098,18 @@ var LiveRegion = function LiveRegion2(props) {
28921
29098
  }
28922
29099
  return guidanceMsg;
28923
29100
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28924
- var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
29101
+ var ScreenReaderText = jsx83(Fragment23, null, jsx83("span", {
28925
29102
  id: "aria-selection"
28926
- }, ariaSelected), jsx81("span", {
29103
+ }, ariaSelected), jsx83("span", {
28927
29104
  id: "aria-focused"
28928
- }, ariaFocused), jsx81("span", {
29105
+ }, ariaFocused), jsx83("span", {
28929
29106
  id: "aria-results"
28930
- }, ariaResults), jsx81("span", {
29107
+ }, ariaResults), jsx83("span", {
28931
29108
  id: "aria-guidance"
28932
29109
  }, ariaGuidance));
28933
- return jsx81(Fragment22, null, jsx81(A11yText$1, {
29110
+ return jsx83(Fragment23, null, jsx83(A11yText$1, {
28934
29111
  id
28935
- }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
29112
+ }, isInitialFocus && ScreenReaderText), jsx83(A11yText$1, {
28936
29113
  "aria-live": ariaLive,
28937
29114
  "aria-atomic": "false",
28938
29115
  "aria-relevant": "additions text",
@@ -29245,7 +29422,7 @@ var _excluded4 = ["innerRef"];
29245
29422
  function DummyInput(_ref3) {
29246
29423
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29247
29424
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29248
- return jsx81("input", _extends({
29425
+ return jsx83("input", _extends({
29249
29426
  ref: innerRef
29250
29427
  }, filteredProps, {
29251
29428
  css: /* @__PURE__ */ css({
@@ -29340,7 +29517,7 @@ function useScrollCapture(_ref3) {
29340
29517
  el.removeEventListener("touchstart", onTouchStart, false);
29341
29518
  el.removeEventListener("touchmove", onTouchMove, false);
29342
29519
  }, [onTouchMove, onTouchStart, onWheel]);
29343
- useEffect16(function() {
29520
+ useEffect17(function() {
29344
29521
  if (!isEnabled) return;
29345
29522
  var element = scrollTarget.current;
29346
29523
  startListening(element);
@@ -29443,7 +29620,7 @@ function useScrollLock(_ref3) {
29443
29620
  }
29444
29621
  }
29445
29622
  }, [accountForScrollbars]);
29446
- useEffect16(function() {
29623
+ useEffect17(function() {
29447
29624
  if (!isEnabled) return;
29448
29625
  var element = scrollTarget.current;
29449
29626
  addScrollLock(element);
@@ -29487,7 +29664,7 @@ function ScrollManager(_ref3) {
29487
29664
  setScrollCaptureTarget(element);
29488
29665
  setScrollLockTarget(element);
29489
29666
  };
29490
- return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29667
+ return jsx83(Fragment23, null, lockEnabled && jsx83("div", {
29491
29668
  onClick: blurSelectInput,
29492
29669
  css: _ref2$1
29493
29670
  }), children(targetRef));
@@ -29506,7 +29683,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29506
29683
  };
29507
29684
  var RequiredInput = function RequiredInput2(_ref3) {
29508
29685
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29509
- return jsx81("input", {
29686
+ return jsx83("input", {
29510
29687
  required: true,
29511
29688
  name: name2,
29512
29689
  tabIndex: -1,
@@ -31096,7 +31273,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31096
31273
 
31097
31274
  // src/widgets/basic/date-field/date.tsx
31098
31275
  var import_moment2 = __toESM(require_moment());
31099
- import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
31276
+ import { Fragment as Fragment24, jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31100
31277
  var DateField = (props) => {
31101
31278
  const {
31102
31279
  name: name2,
@@ -31124,8 +31301,8 @@ var DateField = (props) => {
31124
31301
  } = props;
31125
31302
  const { t: t3 } = useI18n();
31126
31303
  const InputDateCustom = forwardRef6(
31127
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
31128
- /* @__PURE__ */ jsx83(
31304
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs55("label", { className: `flex ${className}`, children: [
31305
+ /* @__PURE__ */ jsx85(
31129
31306
  "input",
31130
31307
  {
31131
31308
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31139,13 +31316,13 @@ var DateField = (props) => {
31139
31316
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31140
31317
  }
31141
31318
  ),
31142
- isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
31319
+ isForm2 && /* @__PURE__ */ jsx85(CalendarIcon, {})
31143
31320
  ] })
31144
31321
  );
31145
31322
  if (!isForm && !isEditTable) {
31146
- return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31323
+ return /* @__PURE__ */ jsx85("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31147
31324
  } else {
31148
- return /* @__PURE__ */ jsx83(
31325
+ return /* @__PURE__ */ jsx85(
31149
31326
  Controller,
31150
31327
  {
31151
31328
  name: name2 || "",
@@ -31161,14 +31338,14 @@ var DateField = (props) => {
31161
31338
  },
31162
31339
  render: ({ field, fieldState: { error: error2 } }) => {
31163
31340
  const { setError, clearErrors } = methods;
31164
- useEffect17(() => {
31341
+ useEffect18(() => {
31165
31342
  if (value) {
31166
31343
  clearErrors(name2);
31167
31344
  }
31168
31345
  }, [value, clearErrors, name2]);
31169
31346
  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;
31170
- return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31171
- /* @__PURE__ */ jsx83(
31347
+ return /* @__PURE__ */ jsxs55(Fragment24, { children: [
31348
+ /* @__PURE__ */ jsx85(
31172
31349
  DatePicker,
31173
31350
  {
31174
31351
  selected: selectedDate,
@@ -31216,7 +31393,7 @@ var DateField = (props) => {
31216
31393
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31217
31394
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31218
31395
  showTimeInput: showTime,
31219
- customInput: /* @__PURE__ */ jsx83(
31396
+ customInput: /* @__PURE__ */ jsx85(
31220
31397
  InputDateCustom,
31221
31398
  {
31222
31399
  isForm,
@@ -31234,7 +31411,7 @@ var DateField = (props) => {
31234
31411
  increaseMonth,
31235
31412
  prevMonthButtonDisabled,
31236
31413
  nextMonthButtonDisabled
31237
- }) => /* @__PURE__ */ jsxs53(
31414
+ }) => /* @__PURE__ */ jsxs55(
31238
31415
  "div",
31239
31416
  {
31240
31417
  style: {
@@ -31243,7 +31420,7 @@ var DateField = (props) => {
31243
31420
  justifyContent: "center"
31244
31421
  },
31245
31422
  children: [
31246
- /* @__PURE__ */ jsx83(
31423
+ /* @__PURE__ */ jsx85(
31247
31424
  "button",
31248
31425
  {
31249
31426
  onClick: decreaseMonth,
@@ -31251,7 +31428,7 @@ var DateField = (props) => {
31251
31428
  children: "<"
31252
31429
  }
31253
31430
  ),
31254
- /* @__PURE__ */ jsx83(
31431
+ /* @__PURE__ */ jsx85(
31255
31432
  StateManagedSelect$1,
31256
31433
  {
31257
31434
  classNames: {
@@ -31277,7 +31454,7 @@ var DateField = (props) => {
31277
31454
  autoFocus: true
31278
31455
  }
31279
31456
  ),
31280
- /* @__PURE__ */ jsx83(
31457
+ /* @__PURE__ */ jsx85(
31281
31458
  StateManagedSelect$1,
31282
31459
  {
31283
31460
  classNames: {
@@ -31305,7 +31482,7 @@ var DateField = (props) => {
31305
31482
  }))
31306
31483
  }
31307
31484
  ),
31308
- /* @__PURE__ */ jsx83(
31485
+ /* @__PURE__ */ jsx85(
31309
31486
  "button",
31310
31487
  {
31311
31488
  onClick: increaseMonth,
@@ -31318,7 +31495,7 @@ var DateField = (props) => {
31318
31495
  )
31319
31496
  }
31320
31497
  ),
31321
- !isEditTable && error2 && /* @__PURE__ */ jsx83("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31498
+ !isEditTable && error2 && /* @__PURE__ */ jsx85("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31322
31499
  ] });
31323
31500
  }
31324
31501
  }
@@ -31327,26 +31504,26 @@ var DateField = (props) => {
31327
31504
  };
31328
31505
 
31329
31506
  // src/widgets/basic/download-binary-field/download-binary.tsx
31330
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31507
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31331
31508
  var DownLoadBinaryField = (props) => {
31332
31509
  const { handleFileDownload } = props;
31333
31510
  const { t: t3 } = useI18n();
31334
- return /* @__PURE__ */ jsxs54(
31511
+ return /* @__PURE__ */ jsxs56(
31335
31512
  "button",
31336
31513
  {
31337
31514
  type: "button",
31338
31515
  onClick: handleFileDownload,
31339
31516
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31340
31517
  children: [
31341
- /* @__PURE__ */ jsx84(DownloadIcon, {}),
31342
- /* @__PURE__ */ jsx84("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31518
+ /* @__PURE__ */ jsx86(DownloadIcon, {}),
31519
+ /* @__PURE__ */ jsx86("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31343
31520
  ]
31344
31521
  }
31345
31522
  );
31346
31523
  };
31347
31524
 
31348
31525
  // src/widgets/basic/download-file-field/download-file.tsx
31349
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31526
+ import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31350
31527
  var DownloadFileField = (props) => {
31351
31528
  const {
31352
31529
  readonly,
@@ -31358,15 +31535,15 @@ var DownloadFileField = (props) => {
31358
31535
  handleFileChange,
31359
31536
  handleFileDownload
31360
31537
  } = props;
31361
- return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31362
- /* @__PURE__ */ jsxs55(
31538
+ return /* @__PURE__ */ jsxs57("div", { className: "", children: [
31539
+ /* @__PURE__ */ jsxs57(
31363
31540
  "label",
31364
31541
  {
31365
31542
  htmlFor: inputId,
31366
31543
  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",
31367
31544
  children: [
31368
- 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" }),
31369
- /* @__PURE__ */ jsx85(
31545
+ file ? /* @__PURE__ */ jsx87("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx87("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx87("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31546
+ /* @__PURE__ */ jsx87(
31370
31547
  "input",
31371
31548
  {
31372
31549
  id: inputId,
@@ -31380,7 +31557,7 @@ var DownloadFileField = (props) => {
31380
31557
  ]
31381
31558
  }
31382
31559
  ),
31383
- file && /* @__PURE__ */ jsx85(
31560
+ file && /* @__PURE__ */ jsx87(
31384
31561
  "button",
31385
31562
  {
31386
31563
  onClick: handleFileDownload,
@@ -31393,8 +31570,8 @@ var DownloadFileField = (props) => {
31393
31570
  };
31394
31571
 
31395
31572
  // src/widgets/basic/dropdown-field/dropdown.tsx
31396
- import { useState as useState16 } from "react";
31397
- import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31573
+ import { useState as useState17 } from "react";
31574
+ import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31398
31575
  var DropdownField = (props) => {
31399
31576
  const {
31400
31577
  options: options2,
@@ -31406,32 +31583,32 @@ var DropdownField = (props) => {
31406
31583
  dropdownClassName = "",
31407
31584
  useClickOutside: useClickOutside2
31408
31585
  } = props;
31409
- const [open, setOpen] = useState16(false);
31586
+ const [open, setOpen] = useState17(false);
31410
31587
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31411
- return /* @__PURE__ */ jsxs56(
31588
+ return /* @__PURE__ */ jsxs58(
31412
31589
  "div",
31413
31590
  {
31414
31591
  ref: dropdownRef,
31415
31592
  className: `relative ${className}`,
31416
31593
  onClick: () => setOpen(!open),
31417
31594
  children: [
31418
- /* @__PURE__ */ jsxs56(
31595
+ /* @__PURE__ */ jsxs58(
31419
31596
  "div",
31420
31597
  {
31421
31598
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31422
31599
  children: [
31423
31600
  selectedValue?.icon,
31424
- /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31425
- /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31601
+ /* @__PURE__ */ jsx88("span", { children: selectedValue?.label }),
31602
+ /* @__PURE__ */ jsx88(ChevronBottomIcon, { className: "h-4 w-4" })
31426
31603
  ]
31427
31604
  }
31428
31605
  ),
31429
- open && /* @__PURE__ */ jsx86(
31606
+ open && /* @__PURE__ */ jsx88(
31430
31607
  "div",
31431
31608
  {
31432
31609
  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}`,
31433
31610
  onClick: (e3) => e3.stopPropagation(),
31434
- children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31611
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx88(
31435
31612
  "div",
31436
31613
  {
31437
31614
  onClick: () => {
@@ -31451,7 +31628,7 @@ var DropdownField = (props) => {
31451
31628
  };
31452
31629
 
31453
31630
  // src/widgets/basic/fee-field/fee.tsx
31454
- import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31631
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31455
31632
  var FeeField = (props) => {
31456
31633
  const { value, formValues } = props;
31457
31634
  const { t: t3 } = useI18n();
@@ -31462,27 +31639,27 @@ var FeeField = (props) => {
31462
31639
  )
31463
31640
  ) + " VND";
31464
31641
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31465
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31642
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31466
31643
  value?.subtotals?.map((sub) => {
31467
31644
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31468
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31469
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31470
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31645
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31646
+ /* @__PURE__ */ jsxs59("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31647
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31471
31648
  sub?.name,
31472
31649
  ":"
31473
31650
  ] }),
31474
- /* @__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" })
31651
+ /* @__PURE__ */ jsx89("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31475
31652
  ] }),
31476
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31653
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs59(
31477
31654
  "div",
31478
31655
  {
31479
31656
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31480
31657
  children: [
31481
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31658
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31482
31659
  group?.group_name,
31483
31660
  ":"
31484
31661
  ] }),
31485
- /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31662
+ /* @__PURE__ */ jsx89("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31486
31663
  ]
31487
31664
  },
31488
31665
  `tax_groups_${group?.id}`
@@ -31490,33 +31667,33 @@ var FeeField = (props) => {
31490
31667
  ] });
31491
31668
  }
31492
31669
  }),
31493
- /* @__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: [
31494
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31670
+ /* @__PURE__ */ jsxs59("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: [
31671
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31495
31672
  t3("total"),
31496
31673
  ":"
31497
31674
  ] }),
31498
- /* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31675
+ /* @__PURE__ */ jsx89("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31499
31676
  ] }),
31500
- /* @__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: [
31501
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31677
+ /* @__PURE__ */ jsxs59("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: [
31678
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31502
31679
  t3("paid_amount"),
31503
31680
  ":"
31504
31681
  ] }),
31505
- /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31682
+ /* @__PURE__ */ jsx89("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31506
31683
  ] }),
31507
- /* @__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: [
31508
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31684
+ /* @__PURE__ */ jsxs59("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: [
31685
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31509
31686
  t3("remanining_amount"),
31510
31687
  ":"
31511
31688
  ] }),
31512
- /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31689
+ /* @__PURE__ */ jsx89("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31513
31690
  ] })
31514
31691
  ] });
31515
31692
  };
31516
31693
 
31517
31694
  // src/widgets/basic/file-upload-field/file-upload.tsx
31518
- import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31519
- import { jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
31695
+ import { useEffect as useEffect19, useRef as useRef15, useState as useState18 } from "react";
31696
+ import { jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
31520
31697
  var RenderFile = ({
31521
31698
  file,
31522
31699
  onDelete,
@@ -31526,16 +31703,16 @@ var RenderFile = ({
31526
31703
  readAs: "all"
31527
31704
  });
31528
31705
  const fileTypeIcon = {
31529
- "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
31530
- "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
31531
- "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
31532
- "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
31533
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
31706
+ "application/pdf": /* @__PURE__ */ jsx90(PdfIcon, {}),
31707
+ "application/zip": /* @__PURE__ */ jsx90(ZipIcon, {}),
31708
+ "application/x-zip-compressed": /* @__PURE__ */ jsx90(ZipIcon, {}),
31709
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx90(ExcelIcon, {}),
31710
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx90(ExcelIcon, {})
31534
31711
  };
31535
- return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31536
- /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31537
- /* @__PURE__ */ jsxs58("div", { children: [
31538
- /* @__PURE__ */ jsx88(
31712
+ return /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31713
+ /* @__PURE__ */ jsx90("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31714
+ /* @__PURE__ */ jsxs60("div", { children: [
31715
+ /* @__PURE__ */ jsx90(
31539
31716
  "div",
31540
31717
  {
31541
31718
  style: {
@@ -31545,20 +31722,20 @@ var RenderFile = ({
31545
31722
  children: file?.name || file?.display_name || info?.name
31546
31723
  }
31547
31724
  ),
31548
- /* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31725
+ /* @__PURE__ */ jsx90("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31549
31726
  ] }),
31550
- /* @__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: [
31551
- /* @__PURE__ */ jsx88(
31727
+ /* @__PURE__ */ jsxs60("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: [
31728
+ /* @__PURE__ */ jsx90(
31552
31729
  "span",
31553
31730
  {
31554
31731
  onClick: () => onDownload && onDownload(
31555
31732
  file?.data,
31556
31733
  file?.name || file?.display_name || info?.name
31557
31734
  ),
31558
- children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31735
+ children: /* @__PURE__ */ jsx90(DownloadIcon, {})
31559
31736
  }
31560
31737
  ),
31561
- /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31738
+ /* @__PURE__ */ jsx90("span", { onClick: onDelete, children: /* @__PURE__ */ jsx90(DeleteIconDanger, {}) })
31562
31739
  ] })
31563
31740
  ] });
31564
31741
  };
@@ -31581,9 +31758,9 @@ var FileUploadField = (props) => {
31581
31758
  } = props;
31582
31759
  const { t: t3 } = useI18n();
31583
31760
  const fileInputRef = useRef15(null);
31584
- const [selectedFiles, setSelectedFiles] = useState17([]);
31585
- const [uploadError, setUploadError] = useState17();
31586
- useEffect18(() => {
31761
+ const [selectedFiles, setSelectedFiles] = useState18([]);
31762
+ const [uploadError, setUploadError] = useState18();
31763
+ useEffect19(() => {
31587
31764
  if (selectedFiles?.length === 0 && value) {
31588
31765
  setSelectedFiles([
31589
31766
  {
@@ -31592,7 +31769,7 @@ var FileUploadField = (props) => {
31592
31769
  ]);
31593
31770
  }
31594
31771
  }, [value]);
31595
- return /* @__PURE__ */ jsx88(
31772
+ return /* @__PURE__ */ jsx90(
31596
31773
  Controller,
31597
31774
  {
31598
31775
  name: name2 || "",
@@ -31601,7 +31778,7 @@ var FileUploadField = (props) => {
31601
31778
  required: required ? { value: true, message: `${string} ${t3("must_required")}` } : false
31602
31779
  },
31603
31780
  render: ({ field: { onChange: onChange2 }, fieldState: { error: error2 } }) => {
31604
- useEffect18(() => {
31781
+ useEffect19(() => {
31605
31782
  let data = widget === "many2many_binary" ? selectedFiles : selectedFiles?.[0]?.data;
31606
31783
  if (widget !== "many2many_binary" && data && isBase64File(data)) {
31607
31784
  data = data.split(",")[1];
@@ -31617,8 +31794,8 @@ var FileUploadField = (props) => {
31617
31794
  );
31618
31795
  }
31619
31796
  }, [selectedFiles]);
31620
- return /* @__PURE__ */ jsxs58("div", { children: [
31621
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
31797
+ return /* @__PURE__ */ jsxs60("div", { children: [
31798
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx90(
31622
31799
  RenderFile,
31623
31800
  {
31624
31801
  file: fileItem,
@@ -31633,8 +31810,8 @@ var FileUploadField = (props) => {
31633
31810
  }
31634
31811
  }
31635
31812
  )),
31636
- uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
31637
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx88(
31813
+ uploadError && /* @__PURE__ */ jsx90("div", { className: "text-[#de4747]", children: uploadError }),
31814
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx90(
31638
31815
  ButtonSelectFiles,
31639
31816
  {
31640
31817
  fileInputRef,
@@ -31649,7 +31826,7 @@ var FileUploadField = (props) => {
31649
31826
  useUploadFile
31650
31827
  }
31651
31828
  ),
31652
- error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31829
+ error2 && !isEditTable && /* @__PURE__ */ jsx90("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31653
31830
  ] });
31654
31831
  }
31655
31832
  }
@@ -31657,8 +31834,8 @@ var FileUploadField = (props) => {
31657
31834
  };
31658
31835
 
31659
31836
  // src/widgets/basic/float-field/float.tsx
31660
- import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31661
- import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
31837
+ import { useEffect as useEffect20, useRef as useRef16, useState as useState19 } from "react";
31838
+ import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
31662
31839
  var FloatField = (props) => {
31663
31840
  const {
31664
31841
  name: name2,
@@ -31676,9 +31853,9 @@ var FloatField = (props) => {
31676
31853
  } = props;
31677
31854
  const { t: t3 } = useI18n();
31678
31855
  if (!isForm && !isEditTable) {
31679
- return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31856
+ return /* @__PURE__ */ jsx91("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31680
31857
  }
31681
- return /* @__PURE__ */ jsx89(
31858
+ return /* @__PURE__ */ jsx91(
31682
31859
  Controller,
31683
31860
  {
31684
31861
  name: name2 ?? "",
@@ -31689,10 +31866,10 @@ var FloatField = (props) => {
31689
31866
  },
31690
31867
  render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
31691
31868
  const { setError, clearErrors } = methods;
31692
- const [inputValue, setInputValue] = useState18(
31869
+ const [inputValue, setInputValue] = useState19(
31693
31870
  value !== void 0 && value !== null ? formatFloatNumber(value) : ""
31694
31871
  );
31695
- useEffect19(() => {
31872
+ useEffect20(() => {
31696
31873
  if (propValue !== void 0 && propValue !== null && propValue !== parseFloat(inputValue?.replace(/,/g, ""))) {
31697
31874
  setInputValue(formatFloatNumber(propValue));
31698
31875
  clearErrors(name2);
@@ -31783,8 +31960,8 @@ var FloatField = (props) => {
31783
31960
  }
31784
31961
  isDirtyRef.current = false;
31785
31962
  };
31786
- return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31787
- /* @__PURE__ */ jsx89(
31963
+ return /* @__PURE__ */ jsxs61(Fragment26, { children: [
31964
+ /* @__PURE__ */ jsx91(
31788
31965
  "input",
31789
31966
  {
31790
31967
  ref: inputRef,
@@ -31804,7 +31981,7 @@ var FloatField = (props) => {
31804
31981
  `
31805
31982
  }
31806
31983
  ),
31807
- error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31984
+ error2 && !isEditTable && /* @__PURE__ */ jsx91("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31808
31985
  ] });
31809
31986
  }
31810
31987
  }
@@ -31812,8 +31989,8 @@ var FloatField = (props) => {
31812
31989
  };
31813
31990
 
31814
31991
  // src/widgets/basic/float-time-field/float-time.tsx
31815
- import { useState as useState19 } from "react";
31816
- import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
31992
+ import { useState as useState20 } from "react";
31993
+ import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs62 } from "react/jsx-runtime";
31817
31994
  var FloatTimeField = (props) => {
31818
31995
  const {
31819
31996
  name: name2,
@@ -31829,9 +32006,9 @@ var FloatTimeField = (props) => {
31829
32006
  const { t: t3 } = useI18n();
31830
32007
  if (!isForm) {
31831
32008
  const formatValue = value ?? 0;
31832
- return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
32009
+ return /* @__PURE__ */ jsx92("span", { children: convertFloatToTime(formatValue) });
31833
32010
  }
31834
- return /* @__PURE__ */ jsx90(
32011
+ return /* @__PURE__ */ jsx92(
31835
32012
  Controller,
31836
32013
  {
31837
32014
  name: name2 ?? "",
@@ -31844,11 +32021,11 @@ var FloatTimeField = (props) => {
31844
32021
  field: { onChange: fieldOnChange, onBlur, value: value2 },
31845
32022
  fieldState: { error: error2, isDirty }
31846
32023
  }) => {
31847
- const [input, setInput] = useState19(
32024
+ const [input, setInput] = useState20(
31848
32025
  convertFloatToTime(value2 ?? defaultValue)
31849
32026
  );
31850
- const [formattedTime, setFormattedTime] = useState19("");
31851
- const [errors, setErrors] = useState19("");
32027
+ const [formattedTime, setFormattedTime] = useState20("");
32028
+ const [errors, setErrors] = useState20("");
31852
32029
  const handleInputChange = (e3) => {
31853
32030
  const raw = e3.target.value.replace(/[^\d:]/g, "");
31854
32031
  setInput(raw);
@@ -31893,8 +32070,8 @@ var FloatTimeField = (props) => {
31893
32070
  }
31894
32071
  onBlur();
31895
32072
  };
31896
- return /* @__PURE__ */ jsxs60(Fragment26, { children: [
31897
- /* @__PURE__ */ jsx90(
32073
+ return /* @__PURE__ */ jsxs62(Fragment27, { children: [
32074
+ /* @__PURE__ */ jsx92(
31898
32075
  "input",
31899
32076
  {
31900
32077
  type: "text",
@@ -31926,7 +32103,7 @@ var FloatTimeField = (props) => {
31926
32103
  readOnly: readonly
31927
32104
  }
31928
32105
  ),
31929
- (error2 || errors) && /* @__PURE__ */ jsx90("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
32106
+ (error2 || errors) && /* @__PURE__ */ jsx92("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31930
32107
  ] });
31931
32108
  }
31932
32109
  }
@@ -31934,8 +32111,8 @@ var FloatTimeField = (props) => {
31934
32111
  };
31935
32112
 
31936
32113
  // src/widgets/basic/html-field/html.tsx
31937
- import { useEffect as useEffect20, useRef as useRef17 } from "react";
31938
- import { jsx as jsx91 } from "react/jsx-runtime";
32114
+ import { useEffect as useEffect21, useRef as useRef17 } from "react";
32115
+ import { jsx as jsx93 } from "react/jsx-runtime";
31939
32116
  var HtmlField = (props) => {
31940
32117
  const {
31941
32118
  name: name2,
@@ -31949,16 +32126,16 @@ var HtmlField = (props) => {
31949
32126
  } = props;
31950
32127
  const divRef = useRef17(null);
31951
32128
  if (!isForm && !isEditTable) {
31952
- return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32129
+ return /* @__PURE__ */ jsx93("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31953
32130
  }
31954
- return /* @__PURE__ */ jsx91(
32131
+ return /* @__PURE__ */ jsx93(
31955
32132
  Controller,
31956
32133
  {
31957
32134
  name: name2 ?? "",
31958
32135
  control: methods?.control,
31959
32136
  defaultValue,
31960
32137
  render: ({ field: { onChange: fieldOnChange, value: value2 } }) => {
31961
- useEffect20(() => {
32138
+ useEffect21(() => {
31962
32139
  if (divRef.current && divRef.current.innerHTML !== value2) {
31963
32140
  divRef.current.innerHTML = value2 || "";
31964
32141
  }
@@ -31970,7 +32147,7 @@ var HtmlField = (props) => {
31970
32147
  onChange2(newValue, "");
31971
32148
  }
31972
32149
  };
31973
- return /* @__PURE__ */ jsx91(
32150
+ return /* @__PURE__ */ jsx93(
31974
32151
  "div",
31975
32152
  {
31976
32153
  ref: divRef,
@@ -31989,28 +32166,28 @@ var HtmlField = (props) => {
31989
32166
  };
31990
32167
 
31991
32168
  // src/widgets/basic/image-field/image.tsx
31992
- import { jsx as jsx92 } from "react/jsx-runtime";
32169
+ import { jsx as jsx94 } from "react/jsx-runtime";
31993
32170
  var ImageField = (props) => {
31994
32171
  const { value, type, name: name2, baseURL } = props;
31995
32172
  if (!value) return null;
31996
32173
  if (type === "url") {
31997
- return /* @__PURE__ */ jsx92("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
32174
+ return /* @__PURE__ */ jsx94("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31998
32175
  }
31999
- return /* @__PURE__ */ jsx92("div", { id: "qr-code", children: /* @__PURE__ */ jsx92("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32176
+ return /* @__PURE__ */ jsx94("div", { id: "qr-code", children: /* @__PURE__ */ jsx94("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
32000
32177
  };
32001
32178
 
32002
32179
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32003
- import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
32180
+ import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
32004
32181
 
32005
32182
  // src/widgets/basic/information-field/information.tsx
32006
- import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
32183
+ import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32007
32184
  var InfomationField = (props) => {
32008
32185
  const { value, isForm = false, showName = true, stringToColor } = props;
32009
32186
  if (!value || Array.isArray(value) && value.length === 0) {
32010
- return /* @__PURE__ */ jsx93(Fragment27, {});
32187
+ return /* @__PURE__ */ jsx95(Fragment28, {});
32011
32188
  }
32012
32189
  const inforValues = Array.isArray(value) ? value : [value];
32013
- 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(
32190
+ return /* @__PURE__ */ jsx95("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx95(
32014
32191
  AvatarField,
32015
32192
  {
32016
32193
  id: item.id,
@@ -32019,8 +32196,8 @@ var InfomationField = (props) => {
32019
32196
  stringToColor
32020
32197
  },
32021
32198
  item.id
32022
- )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
32023
- /* @__PURE__ */ jsx93(
32199
+ )) : /* @__PURE__ */ jsxs63("div", { className: "flex gap-2 items-center w-max", children: [
32200
+ /* @__PURE__ */ jsx95(
32024
32201
  AvatarField,
32025
32202
  {
32026
32203
  avatarSrc: inforValues[0].image_256,
@@ -32030,12 +32207,12 @@ var InfomationField = (props) => {
32030
32207
  stringToColor
32031
32208
  }
32032
32209
  ),
32033
- showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
32210
+ showName && /* @__PURE__ */ jsx95("span", { className: "capitalize", children: inforValues[0].display_name })
32034
32211
  ] }) });
32035
32212
  };
32036
32213
 
32037
32214
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32038
- import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32215
+ import { jsx as jsx96, jsxs as jsxs64 } from "react/jsx-runtime";
32039
32216
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32040
32217
  const { selectProps, data, menuList } = props;
32041
32218
  const { relation } = selectProps;
@@ -32044,8 +32221,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32044
32221
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32045
32222
  )
32046
32223
  )?.[0]?.action?.id;
32047
- return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32048
- /* @__PURE__ */ jsx94(
32224
+ return /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32225
+ /* @__PURE__ */ jsx96(
32049
32226
  AvatarField,
32050
32227
  {
32051
32228
  id: data?.id,
@@ -32057,8 +32234,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32057
32234
  stringToColor
32058
32235
  }
32059
32236
  ),
32060
- /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32061
- /* @__PURE__ */ jsx94(
32237
+ /* @__PURE__ */ jsx96("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32238
+ /* @__PURE__ */ jsx96(
32062
32239
  "span",
32063
32240
  {
32064
32241
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32066,7 +32243,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32066
32243
  e3.stopPropagation();
32067
32244
  props.removeProps.onClick();
32068
32245
  },
32069
- children: /* @__PURE__ */ jsx94(CloseIcon, {})
32246
+ children: /* @__PURE__ */ jsx96(CloseIcon, {})
32070
32247
  }
32071
32248
  )
32072
32249
  ] });
@@ -32076,9 +32253,9 @@ var CustomMenuList = (props) => {
32076
32253
  const { setIsShowModalMany2Many, searchable } = selectProps;
32077
32254
  const { t: t3 } = useI18n();
32078
32255
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
32079
- return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
32256
+ return /* @__PURE__ */ jsxs64(components.MenuList, { ...props, className: "z-[99]", children: [
32080
32257
  limitedChildren,
32081
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
32258
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs64(
32082
32259
  "button",
32083
32260
  {
32084
32261
  type: "button",
@@ -32123,7 +32300,7 @@ var Many2ManyTagField = (props) => {
32123
32300
  value: item.id,
32124
32301
  label: item.name ?? item.display_name
32125
32302
  })) : [];
32126
- return /* @__PURE__ */ jsx94(
32303
+ return /* @__PURE__ */ jsx96(
32127
32304
  InfomationField,
32128
32305
  {
32129
32306
  value: optionValue || null,
@@ -32132,7 +32309,7 @@ var Many2ManyTagField = (props) => {
32132
32309
  }
32133
32310
  );
32134
32311
  }
32135
- return /* @__PURE__ */ jsx94(
32312
+ return /* @__PURE__ */ jsx96(
32136
32313
  Controller,
32137
32314
  {
32138
32315
  name: name2 ?? "",
@@ -32142,7 +32319,7 @@ var Many2ManyTagField = (props) => {
32142
32319
  },
32143
32320
  render: ({ field, fieldState: { error: error2 } }) => {
32144
32321
  const { clearErrors } = methods;
32145
- useEffect21(() => {
32322
+ useEffect22(() => {
32146
32323
  if (field.value) {
32147
32324
  clearErrors(name2);
32148
32325
  }
@@ -32168,8 +32345,8 @@ var Many2ManyTagField = (props) => {
32168
32345
  onChange2?.(name2 ?? "", newValue);
32169
32346
  clearErrors(name2);
32170
32347
  };
32171
- return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32172
- /* @__PURE__ */ jsx94(
32348
+ return /* @__PURE__ */ jsxs64("div", { className: "group h-full overflow-y-auto", children: [
32349
+ /* @__PURE__ */ jsx96(
32173
32350
  StateManagedSelect$1,
32174
32351
  {
32175
32352
  options: options2,
@@ -32247,7 +32424,7 @@ var Many2ManyTagField = (props) => {
32247
32424
  })
32248
32425
  },
32249
32426
  components: isUser ? {
32250
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
32427
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx96(
32251
32428
  CustomMultiValue,
32252
32429
  {
32253
32430
  ...multiValueProps,
@@ -32256,7 +32433,7 @@ var Many2ManyTagField = (props) => {
32256
32433
  ),
32257
32434
  IndicatorSeparator: () => null
32258
32435
  } : {
32259
- MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
32436
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx96(
32260
32437
  CustomMenuList,
32261
32438
  {
32262
32439
  ...menuListProps,
@@ -32267,13 +32444,13 @@ var Many2ManyTagField = (props) => {
32267
32444
  }
32268
32445
  ),
32269
32446
  IndicatorSeparator: () => null,
32270
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
32271
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.ClearIndicator, { ...props2 })
32447
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx96(components.DropdownIndicator, { ...props2 }),
32448
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx96(components.ClearIndicator, { ...props2 })
32272
32449
  },
32273
32450
  required: !invisible && required
32274
32451
  }
32275
32452
  ),
32276
- !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32453
+ !isEditTable && error2 && /* @__PURE__ */ jsx96("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32277
32454
  ] });
32278
32455
  }
32279
32456
  }
@@ -32281,8 +32458,8 @@ var Many2ManyTagField = (props) => {
32281
32458
  };
32282
32459
 
32283
32460
  // src/widgets/basic/monetary-field/monetary.tsx
32284
- import { useEffect as useEffect22 } from "react";
32285
- import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32461
+ import { useEffect as useEffect23 } from "react";
32462
+ import { Fragment as Fragment29, jsx as jsx97, jsxs as jsxs65 } from "react/jsx-runtime";
32286
32463
  var MonetaryField = (props) => {
32287
32464
  const { t: t3 } = useI18n();
32288
32465
  const {
@@ -32302,26 +32479,26 @@ var MonetaryField = (props) => {
32302
32479
  isEditTable
32303
32480
  } = props;
32304
32481
  if (isForm && name2 === "amount_residual") {
32305
- return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32306
- /* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
32482
+ return /* @__PURE__ */ jsxs65("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32483
+ /* @__PURE__ */ jsxs65("span", { className: "font-semibold", children: [
32307
32484
  string,
32308
32485
  ":"
32309
32486
  ] }),
32310
- /* @__PURE__ */ jsx95("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32487
+ /* @__PURE__ */ jsx97("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32311
32488
  ] });
32312
32489
  }
32313
32490
  if (!isForm) {
32314
32491
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32315
32492
  if (widget === "monetary" && !formValues?.currency_id) {
32316
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32493
+ return /* @__PURE__ */ jsx97("span", { children: `${formatNumberOnly(
32317
32494
  parseFloat(String(value ?? defaultValue))
32318
32495
  )} VND` });
32319
32496
  }
32320
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32497
+ return /* @__PURE__ */ jsx97("span", { children: `${formatNumberOnly(
32321
32498
  parseFloat(value ?? defaultValue)
32322
32499
  )} ${currencySymbol}` });
32323
32500
  }
32324
- return /* @__PURE__ */ jsx95(
32501
+ return /* @__PURE__ */ jsx97(
32325
32502
  Controller,
32326
32503
  {
32327
32504
  name: name2 ?? "",
@@ -32335,13 +32512,13 @@ var MonetaryField = (props) => {
32335
32512
  fieldState: { error: error2 }
32336
32513
  }) => {
32337
32514
  const { setError, clearErrors } = methods;
32338
- useEffect22(() => {
32515
+ useEffect23(() => {
32339
32516
  if (value2 !== void 0 && value2 !== null && !isNaN(value2)) {
32340
32517
  clearErrors(name2);
32341
32518
  }
32342
32519
  }, [value2]);
32343
- return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32344
- /* @__PURE__ */ jsx95(
32520
+ return /* @__PURE__ */ jsxs65(Fragment29, { children: [
32521
+ /* @__PURE__ */ jsx97(
32345
32522
  "input",
32346
32523
  {
32347
32524
  value: formatNumberOnly(value2),
@@ -32379,7 +32556,7 @@ var MonetaryField = (props) => {
32379
32556
  `
32380
32557
  }
32381
32558
  ),
32382
- !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32559
+ !isEditTable && error2 && /* @__PURE__ */ jsx97("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32383
32560
  ] });
32384
32561
  }
32385
32562
  }
@@ -32387,14 +32564,14 @@ var MonetaryField = (props) => {
32387
32564
  };
32388
32565
 
32389
32566
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32390
- import { jsx as jsx96 } from "react/jsx-runtime";
32567
+ import { jsx as jsx98 } from "react/jsx-runtime";
32391
32568
  var PaidBadgedField = () => {
32392
- return /* @__PURE__ */ jsx96("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx96(PaidIcon, {}) });
32569
+ return /* @__PURE__ */ jsx98("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx98(PaidIcon, {}) });
32393
32570
  };
32394
32571
 
32395
32572
  // src/widgets/basic/priority-field/rating-star.tsx
32396
- import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32397
- import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
32573
+ import React17, { useEffect as useEffect24, useState as useState21 } from "react";
32574
+ import { jsx as jsx99, jsxs as jsxs66 } from "react/jsx-runtime";
32398
32575
  var RatingStarField = (props) => {
32399
32576
  const {
32400
32577
  label,
@@ -32403,9 +32580,9 @@ var RatingStarField = (props) => {
32403
32580
  onSelectPriority,
32404
32581
  id
32405
32582
  } = props;
32406
- const [rating, setRating] = useState20(defaultValue);
32407
- const [hover, setHover] = useState20(0);
32408
- useEffect23(() => {
32583
+ const [rating, setRating] = useState21(defaultValue);
32584
+ const [hover, setHover] = useState21(0);
32585
+ useEffect24(() => {
32409
32586
  setRating(defaultValue);
32410
32587
  }, [defaultValue]);
32411
32588
  const handleClick = (value) => {
@@ -32429,7 +32606,7 @@ var RatingStarField = (props) => {
32429
32606
  setHover(0);
32430
32607
  setRating(0);
32431
32608
  };
32432
- return /* @__PURE__ */ jsx97(
32609
+ return /* @__PURE__ */ jsx99(
32433
32610
  "div",
32434
32611
  {
32435
32612
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32439,17 +32616,17 @@ var RatingStarField = (props) => {
32439
32616
  const starValue = index4 + 1;
32440
32617
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32441
32618
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32442
- return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32443
- /* @__PURE__ */ jsx97(
32619
+ return /* @__PURE__ */ jsxs66(React17.Fragment, { children: [
32620
+ /* @__PURE__ */ jsx99(
32444
32621
  "div",
32445
32622
  {
32446
32623
  onMouseEnter: () => handleHover(starValue),
32447
32624
  onClick: () => handleClick(starValue),
32448
32625
  "data-tooltip-id": `${id}-${starValue}`,
32449
- children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32626
+ children: /* @__PURE__ */ jsx99(StarIcon, { fill: fillColor, stroke: strokeColor })
32450
32627
  }
32451
32628
  ),
32452
- /* @__PURE__ */ jsx97(
32629
+ /* @__PURE__ */ jsx99(
32453
32630
  M,
32454
32631
  {
32455
32632
  className: "z-50",
@@ -32465,7 +32642,7 @@ var RatingStarField = (props) => {
32465
32642
  };
32466
32643
 
32467
32644
  // src/widgets/basic/priority-field/priority.tsx
32468
- import { jsx as jsx98 } from "react/jsx-runtime";
32645
+ import { jsx as jsx100 } from "react/jsx-runtime";
32469
32646
  var PriorityField = (props) => {
32470
32647
  const {
32471
32648
  isForm,
@@ -32481,7 +32658,7 @@ var PriorityField = (props) => {
32481
32658
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32482
32659
  const defaultPriority = parseInt(value) + 1;
32483
32660
  if (!isForm) {
32484
- return /* @__PURE__ */ jsx98(
32661
+ return /* @__PURE__ */ jsx100(
32485
32662
  RatingStarField,
32486
32663
  {
32487
32664
  label,
@@ -32492,7 +32669,7 @@ var PriorityField = (props) => {
32492
32669
  }
32493
32670
  );
32494
32671
  }
32495
- return /* @__PURE__ */ jsx98(
32672
+ return /* @__PURE__ */ jsx100(
32496
32673
  Controller,
32497
32674
  {
32498
32675
  name: name ?? "",
@@ -32502,7 +32679,7 @@ var PriorityField = (props) => {
32502
32679
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32503
32680
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32504
32681
  };
32505
- return /* @__PURE__ */ jsx98(
32682
+ return /* @__PURE__ */ jsx100(
32506
32683
  RatingStarField,
32507
32684
  {
32508
32685
  label,
@@ -32518,8 +32695,8 @@ var PriorityField = (props) => {
32518
32695
  };
32519
32696
 
32520
32697
  // src/widgets/basic/radio-group-field/radio-group.tsx
32521
- import { useEffect as useEffect24 } from "react";
32522
- import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32698
+ import { useEffect as useEffect25 } from "react";
32699
+ import { jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32523
32700
  var RadioGroupField = (props) => {
32524
32701
  const {
32525
32702
  name: name2,
@@ -32532,19 +32709,19 @@ var RadioGroupField = (props) => {
32532
32709
  onChange: onChange2,
32533
32710
  setValue
32534
32711
  } = props;
32535
- useEffect24(() => {
32712
+ useEffect25(() => {
32536
32713
  if (selection?.length > 0) {
32537
32714
  if (setValue) setValue(name2, selection?.[0]?.[0]);
32538
32715
  }
32539
32716
  }, [selection, name2, setValue]);
32540
32717
  if (!methods) return null;
32541
- return /* @__PURE__ */ jsx99(
32718
+ return /* @__PURE__ */ jsx101(
32542
32719
  Controller,
32543
32720
  {
32544
32721
  name: name2 ?? "",
32545
32722
  control: methods.control,
32546
- 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: [
32547
- /* @__PURE__ */ jsx99(
32723
+ render: ({ field }) => /* @__PURE__ */ jsx101("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-1", children: [
32724
+ /* @__PURE__ */ jsx101(
32548
32725
  "input",
32549
32726
  {
32550
32727
  type: "radio",
@@ -32563,7 +32740,7 @@ var RadioGroupField = (props) => {
32563
32740
  className: "custom-radio"
32564
32741
  }
32565
32742
  ),
32566
- /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32743
+ /* @__PURE__ */ jsx101("label", { htmlFor: String(select[0]), children: select[1] })
32567
32744
  ] }, select[0])) })
32568
32745
  }
32569
32746
  );
@@ -32571,7 +32748,7 @@ var RadioGroupField = (props) => {
32571
32748
 
32572
32749
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32573
32750
  var import_moment3 = __toESM(require_moment());
32574
- import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32751
+ import { jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
32575
32752
  var RemainingDaysField = (props) => {
32576
32753
  const {
32577
32754
  value,
@@ -32582,14 +32759,14 @@ var RemainingDaysField = (props) => {
32582
32759
  if (!value) return null;
32583
32760
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32584
32761
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32585
- return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32586
- /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32587
- /* @__PURE__ */ jsx100(
32762
+ return /* @__PURE__ */ jsxs68("div", { className: isForm ? "mb-4" : "", children: [
32763
+ /* @__PURE__ */ jsx102(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32764
+ /* @__PURE__ */ jsx102(
32588
32765
  "div",
32589
32766
  {
32590
32767
  "data-tooltip-id": `remainingDays_${value}`,
32591
32768
  className: "flex items-center w-fit cursor-context-menu",
32592
- children: /* @__PURE__ */ jsx100(
32769
+ children: /* @__PURE__ */ jsx102(
32593
32770
  "div",
32594
32771
  {
32595
32772
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32602,7 +32779,7 @@ var RemainingDaysField = (props) => {
32602
32779
  };
32603
32780
 
32604
32781
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32605
- import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
32782
+ import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs69 } from "react/jsx-runtime";
32606
32783
  var SelectDropdownField = (props) => {
32607
32784
  const { t: t3 } = useI18n();
32608
32785
  const {
@@ -32624,9 +32801,9 @@ var SelectDropdownField = (props) => {
32624
32801
  label: val[1]
32625
32802
  })) : [];
32626
32803
  if (!isForm && !isEditTable) {
32627
- return /* @__PURE__ */ jsx101("span", { children: options2?.find((item) => item?.value === value)?.label });
32804
+ return /* @__PURE__ */ jsx103("span", { children: options2?.find((item) => item?.value === value)?.label });
32628
32805
  } else {
32629
- return /* @__PURE__ */ jsx101(
32806
+ return /* @__PURE__ */ jsx103(
32630
32807
  Controller,
32631
32808
  {
32632
32809
  name: name2 || "",
@@ -32653,8 +32830,8 @@ var SelectDropdownField = (props) => {
32653
32830
  value: defaultValue || null,
32654
32831
  required: !invisible && required
32655
32832
  };
32656
- return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32657
- /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32833
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32834
+ /* @__PURE__ */ jsx103("div", { className: "group", children: /* @__PURE__ */ jsx103(
32658
32835
  StateManagedSelect$1,
32659
32836
  {
32660
32837
  ...commonProps,
@@ -32709,12 +32886,12 @@ var SelectDropdownField = (props) => {
32709
32886
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32710
32887
  components: {
32711
32888
  IndicatorSeparator: () => null,
32712
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32889
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx103(components.DropdownIndicator, { ...props2 })
32713
32890
  },
32714
32891
  noOptionsMessage: () => t3("no-available")
32715
32892
  }
32716
32893
  ) }),
32717
- !isEditTable && error2 && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32894
+ !isEditTable && error2 && /* @__PURE__ */ jsx103("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32718
32895
  ] });
32719
32896
  }
32720
32897
  }
@@ -32723,7 +32900,7 @@ var SelectDropdownField = (props) => {
32723
32900
  };
32724
32901
 
32725
32902
  // src/widgets/basic/textarea-field/textarea.tsx
32726
- import { jsx as jsx102 } from "react/jsx-runtime";
32903
+ import { jsx as jsx104 } from "react/jsx-runtime";
32727
32904
  var TextAreaField = (props) => {
32728
32905
  const {
32729
32906
  methods,
@@ -32747,9 +32924,9 @@ var TextAreaField = (props) => {
32747
32924
  }
32748
32925
  }) : {};
32749
32926
  if (!isForm) {
32750
- return /* @__PURE__ */ jsx102("span", { children: value && typeof value === "object" ? value.display_name : value });
32927
+ return /* @__PURE__ */ jsx104("span", { children: value && typeof value === "object" ? value.display_name : value });
32751
32928
  }
32752
- return /* @__PURE__ */ jsx102(
32929
+ return /* @__PURE__ */ jsx104(
32753
32930
  "textarea",
32754
32931
  {
32755
32932
  ...formProps,
@@ -32765,7 +32942,7 @@ var TextAreaField = (props) => {
32765
32942
  };
32766
32943
 
32767
32944
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32768
- import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32945
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32769
32946
  var ToggleButtonField = (props) => {
32770
32947
  const {
32771
32948
  name: name2,
@@ -32775,13 +32952,13 @@ var ToggleButtonField = (props) => {
32775
32952
  onChange: onChange2,
32776
32953
  methods
32777
32954
  } = props;
32778
- return /* @__PURE__ */ jsx103(
32955
+ return /* @__PURE__ */ jsx105(
32779
32956
  Controller,
32780
32957
  {
32781
32958
  name: name2 ?? "",
32782
32959
  control: methods?.control,
32783
- 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: [
32784
- /* @__PURE__ */ jsx103(
32960
+ render: ({ field }) => /* @__PURE__ */ jsx105("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs70("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32961
+ /* @__PURE__ */ jsx105(
32785
32962
  "input",
32786
32963
  {
32787
32964
  ...field,
@@ -32800,7 +32977,7 @@ var ToggleButtonField = (props) => {
32800
32977
  checked: field.value ?? false
32801
32978
  }
32802
32979
  ),
32803
- /* @__PURE__ */ jsx103(
32980
+ /* @__PURE__ */ jsx105(
32804
32981
  "span",
32805
32982
  {
32806
32983
  style: {
@@ -32809,7 +32986,7 @@ var ToggleButtonField = (props) => {
32809
32986
  },
32810
32987
  className: `rounded-full transition duration-300
32811
32988
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32812
- children: /* @__PURE__ */ jsx103(
32989
+ children: /* @__PURE__ */ jsx105(
32813
32990
  "span",
32814
32991
  {
32815
32992
  style: {
@@ -32833,8 +33010,8 @@ var ToggleButtonField = (props) => {
32833
33010
  };
32834
33011
 
32835
33012
  // src/widgets/basic/integer-field/integer.tsx
32836
- import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
32837
- import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
33013
+ import { useEffect as useEffect26, useRef as useRef18, useState as useState22 } from "react";
33014
+ import { Fragment as Fragment31, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32838
33015
  var IntegerField = (props) => {
32839
33016
  const {
32840
33017
  name: name2,
@@ -32853,9 +33030,9 @@ var IntegerField = (props) => {
32853
33030
  const { t: t3 } = useI18n();
32854
33031
  if (!isForm && !isEditTable) {
32855
33032
  const displayValue = value ?? defaultValue;
32856
- return /* @__PURE__ */ jsx104("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
33033
+ return /* @__PURE__ */ jsx106("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32857
33034
  }
32858
- return /* @__PURE__ */ jsx104(
33035
+ return /* @__PURE__ */ jsx106(
32859
33036
  Controller,
32860
33037
  {
32861
33038
  name: name2 || "",
@@ -32872,10 +33049,10 @@ var IntegerField = (props) => {
32872
33049
  const isDirtyRef = useRef18(false);
32873
33050
  const inputRef = useRef18(null);
32874
33051
  const lastCommittedValueRef = useRef18(null);
32875
- const [inputValue, setInputValue] = useState21(
33052
+ const [inputValue, setInputValue] = useState22(
32876
33053
  value2 !== void 0 && value2 !== null ? String(value2) : ""
32877
33054
  );
32878
- useEffect25(() => {
33055
+ useEffect26(() => {
32879
33056
  if (value2 !== void 0 && value2 !== null) {
32880
33057
  setInputValue(String(value2));
32881
33058
  clearErrors(name2);
@@ -32933,8 +33110,8 @@ var IntegerField = (props) => {
32933
33110
  inputRef.current?.blur();
32934
33111
  clearErrors(name2);
32935
33112
  };
32936
- return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32937
- /* @__PURE__ */ jsx104(
33113
+ return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33114
+ /* @__PURE__ */ jsx106(
32938
33115
  "input",
32939
33116
  {
32940
33117
  ref: inputRef,
@@ -32969,7 +33146,7 @@ var IntegerField = (props) => {
32969
33146
  `
32970
33147
  }
32971
33148
  ),
32972
- error2 && isEditTable && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33149
+ error2 && isEditTable && /* @__PURE__ */ jsx106("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32973
33150
  ] });
32974
33151
  }
32975
33152
  }
@@ -32977,7 +33154,7 @@ var IntegerField = (props) => {
32977
33154
  };
32978
33155
 
32979
33156
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32980
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33157
+ import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
32981
33158
  var StatusDropdownField = (props) => {
32982
33159
  const {
32983
33160
  buttonRef,
@@ -32989,13 +33166,13 @@ var StatusDropdownField = (props) => {
32989
33166
  handleClick,
32990
33167
  colors: colors2
32991
33168
  } = props;
32992
- return /* @__PURE__ */ jsxs70(
33169
+ return /* @__PURE__ */ jsxs72(
32993
33170
  "div",
32994
33171
  {
32995
33172
  ref: buttonRef,
32996
33173
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32997
33174
  children: [
32998
- /* @__PURE__ */ jsx105(
33175
+ /* @__PURE__ */ jsx107(
32999
33176
  "button",
33000
33177
  {
33001
33178
  type: "button",
@@ -33003,23 +33180,23 @@ var StatusDropdownField = (props) => {
33003
33180
  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"}`
33004
33181
  }
33005
33182
  ),
33006
- 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) => {
33183
+ isOpen && /* @__PURE__ */ jsx107("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) => {
33007
33184
  const isActive = item[0] == state;
33008
- return /* @__PURE__ */ jsxs70(
33185
+ return /* @__PURE__ */ jsxs72(
33009
33186
  "div",
33010
33187
  {
33011
33188
  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" : ""}`,
33012
33189
  onClick: () => handleClick(item[0]),
33013
33190
  children: [
33014
- /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
33015
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
33016
- /* @__PURE__ */ jsx105(
33191
+ /* @__PURE__ */ jsx107("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx107(CheckIcon, {}) }),
33192
+ /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2", children: [
33193
+ /* @__PURE__ */ jsx107(
33017
33194
  "div",
33018
33195
  {
33019
33196
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33020
33197
  }
33021
33198
  ),
33022
- /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
33199
+ /* @__PURE__ */ jsx107("span", { className: "text-sm", children: item[1] })
33023
33200
  ] })
33024
33201
  ]
33025
33202
  },
@@ -33033,8 +33210,8 @@ var StatusDropdownField = (props) => {
33033
33210
 
33034
33211
  // src/widgets/basic/many2many-field/many2many.tsx
33035
33212
  import { createPortal as createPortal6 } from "react-dom";
33036
- import { useEffect as useEffect26 } from "react";
33037
- import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33213
+ import { useEffect as useEffect27 } from "react";
33214
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33038
33215
  var Many2ManyField = (props) => {
33039
33216
  const { t: t3 } = useI18n();
33040
33217
  const {
@@ -33093,7 +33270,7 @@ var Many2ManyField = (props) => {
33093
33270
  clearSearch
33094
33271
  } = searchController;
33095
33272
  const { handleCheckBoxAll, checkedAll, selectedRowKeysRef } = tableHeadController;
33096
- useEffect26(() => {
33273
+ useEffect27(() => {
33097
33274
  const groupItems = Array.isArray(selectedTags) ? selectedTags.filter((item) => item.type === "group_by") : [];
33098
33275
  if (groupItems?.length > 0) {
33099
33276
  typeof setPageLimit === "function" && setPageLimit(80);
@@ -33108,7 +33285,7 @@ var Many2ManyField = (props) => {
33108
33285
  };
33109
33286
  }, [selectedTags]);
33110
33287
  return createPortal6(
33111
- /* @__PURE__ */ jsxs71(
33288
+ /* @__PURE__ */ jsxs73(
33112
33289
  "div",
33113
33290
  {
33114
33291
  style: {
@@ -33116,8 +33293,8 @@ var Many2ManyField = (props) => {
33116
33293
  },
33117
33294
  className: "fixed bottom-0 left-0 right-0 top-0",
33118
33295
  children: [
33119
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33120
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
33296
+ /* @__PURE__ */ jsx108("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33297
+ /* @__PURE__ */ jsx108("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs73(
33121
33298
  "div",
33122
33299
  {
33123
33300
  style: {
@@ -33125,12 +33302,12 @@ var Many2ManyField = (props) => {
33125
33302
  },
33126
33303
  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",
33127
33304
  children: [
33128
- /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33129
- /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
33130
- /* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
33305
+ /* @__PURE__ */ jsxs73("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33306
+ /* @__PURE__ */ jsx108("div", { className: "text-[20px] font-semibold", children: title }),
33307
+ /* @__PURE__ */ jsx108("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx108(CloseIcon, {}) })
33131
33308
  ] }),
33132
- /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33133
- /* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
33309
+ /* @__PURE__ */ jsxs73("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33310
+ /* @__PURE__ */ jsx108("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx108(
33134
33311
  Search,
33135
33312
  {
33136
33313
  removeSearchItems,
@@ -33164,7 +33341,7 @@ var Many2ManyField = (props) => {
33164
33341
  groupByList
33165
33342
  }
33166
33343
  ) }),
33167
- /* @__PURE__ */ jsx106(
33344
+ /* @__PURE__ */ jsx108(
33168
33345
  PaginationView,
33169
33346
  {
33170
33347
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33181,20 +33358,20 @@ var Many2ManyField = (props) => {
33181
33358
  }
33182
33359
  )
33183
33360
  ] }),
33184
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx106("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx106("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx106(
33361
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx108("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx108("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx108(
33185
33362
  "div",
33186
33363
  {
33187
33364
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33188
- 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(
33365
+ children: /* @__PURE__ */ jsx108("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx108("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx108(
33189
33366
  "div",
33190
33367
  {
33191
33368
  className: `flex w-full items-center h-full overflow-auto `,
33192
- children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
33369
+ children: /* @__PURE__ */ jsx108("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs73(
33193
33370
  "table",
33194
33371
  {
33195
33372
  className: `relative w-full bg-white custom-dropdown `,
33196
33373
  children: [
33197
- /* @__PURE__ */ jsx106(
33374
+ /* @__PURE__ */ jsx108(
33198
33375
  TableHead,
33199
33376
  {
33200
33377
  columns,
@@ -33204,7 +33381,7 @@ var Many2ManyField = (props) => {
33204
33381
  handleCheckBoxAll
33205
33382
  }
33206
33383
  ),
33207
- rows?.length > 0 ? /* @__PURE__ */ jsx106(
33384
+ rows?.length > 0 ? /* @__PURE__ */ jsx108(
33208
33385
  TableBody,
33209
33386
  {
33210
33387
  tableGroupController,
@@ -33244,16 +33421,16 @@ var Many2ManyField = (props) => {
33244
33421
  checkedAll,
33245
33422
  context
33246
33423
  }
33247
- ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
33424
+ ) : /* @__PURE__ */ jsx108("tr", { children: /* @__PURE__ */ jsx108(
33248
33425
  "td",
33249
33426
  {
33250
33427
  className: "w-full",
33251
33428
  colSpan: columns?.length + 2,
33252
- children: /* @__PURE__ */ jsx106(
33429
+ children: /* @__PURE__ */ jsx108(
33253
33430
  "div",
33254
33431
  {
33255
33432
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33256
- children: /* @__PURE__ */ jsx106(EmptyTable, {})
33433
+ children: /* @__PURE__ */ jsx108(EmptyTable, {})
33257
33434
  }
33258
33435
  )
33259
33436
  }
@@ -33264,9 +33441,9 @@ var Many2ManyField = (props) => {
33264
33441
  }
33265
33442
  ) }) })
33266
33443
  }
33267
- ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33268
- /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33269
- isDisplayCheckbox && /* @__PURE__ */ jsx106(
33444
+ ) }) }) : /* @__PURE__ */ jsx108(LayerLoading, {}),
33445
+ /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2 mt-auto", children: [
33446
+ isDisplayCheckbox && /* @__PURE__ */ jsx108(
33270
33447
  "button",
33271
33448
  {
33272
33449
  disabled: selectedRowKeys?.length === 0,
@@ -33276,7 +33453,7 @@ var Many2ManyField = (props) => {
33276
33453
  children: t3("choose")
33277
33454
  }
33278
33455
  ),
33279
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33456
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx108(
33280
33457
  "button",
33281
33458
  {
33282
33459
  type: "button",
@@ -33292,7 +33469,7 @@ var Many2ManyField = (props) => {
33292
33469
  children: t3("new")
33293
33470
  }
33294
33471
  ),
33295
- /* @__PURE__ */ jsx106(
33472
+ /* @__PURE__ */ jsx108(
33296
33473
  "button",
33297
33474
  {
33298
33475
  type: "button",
@@ -33313,16 +33490,16 @@ var Many2ManyField = (props) => {
33313
33490
  };
33314
33491
 
33315
33492
  // src/widgets/basic/many2one-field/many2one.tsx
33316
- import React18, { useEffect as useEffect27 } from "react";
33317
- import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
33493
+ import React18, { useEffect as useEffect28 } from "react";
33494
+ import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33318
33495
  var CustomMenuList2 = (props) => {
33319
33496
  const { t: t3 } = useI18n();
33320
33497
  const { options: options2, children, selectProps } = props;
33321
33498
  const { setIsShowModalMany2Many, searchable } = selectProps;
33322
33499
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33323
- return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33500
+ return /* @__PURE__ */ jsxs74(components.MenuList, { ...props, className: "z-[99]", children: [
33324
33501
  limitedChildren,
33325
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33502
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs74(
33326
33503
  "button",
33327
33504
  {
33328
33505
  type: "button",
@@ -33365,14 +33542,14 @@ var Many2OneField = (props) => {
33365
33542
  const { t: t3 } = useI18n();
33366
33543
  if (!isForm && !isEditTable) {
33367
33544
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33368
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33545
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33369
33546
  allowShowDetail && renderDetail({
33370
33547
  idToolTip: String(name2) + Number(index4),
33371
33548
  model: options2?.model ?? relation,
33372
33549
  context: contextObject,
33373
33550
  idForm: id
33374
33551
  }),
33375
- /* @__PURE__ */ jsx107(
33552
+ /* @__PURE__ */ jsx109(
33376
33553
  "span",
33377
33554
  {
33378
33555
  className: "cursor-pointer",
@@ -33383,20 +33560,20 @@ var Many2OneField = (props) => {
33383
33560
  )
33384
33561
  ] });
33385
33562
  }
33386
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33563
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33387
33564
  allowShowDetail && renderDetail({
33388
33565
  idToolTip: String(name2),
33389
33566
  model: options2?.model ?? relation,
33390
33567
  context: contextObject,
33391
33568
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33392
33569
  }),
33393
- /* @__PURE__ */ jsx107(
33570
+ /* @__PURE__ */ jsx109(
33394
33571
  "div",
33395
33572
  {
33396
33573
  id: name2,
33397
33574
  "data-tooltip-id": name2,
33398
33575
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33399
- children: /* @__PURE__ */ jsx107(
33576
+ children: /* @__PURE__ */ jsx109(
33400
33577
  Controller,
33401
33578
  {
33402
33579
  name: name2 ?? "",
@@ -33416,13 +33593,13 @@ var Many2OneField = (props) => {
33416
33593
  const selectedOption = isForm && options2?.service && options2?.type && options2?.model ? tempSelectedOption : tempSelectedOption && options2?.length > 0 ? options2.find(
33417
33594
  (option) => option.value === tempSelectedOption?.value
33418
33595
  ) : currentValue ? currentValue : null;
33419
- useEffect27(() => {
33596
+ useEffect28(() => {
33420
33597
  if (error2 && selectedOption) {
33421
33598
  methods?.clearErrors(name2);
33422
33599
  }
33423
33600
  }, [selectedOption]);
33424
- return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33425
- /* @__PURE__ */ jsx107(
33601
+ return /* @__PURE__ */ jsxs74("div", { className: "h-full", children: [
33602
+ /* @__PURE__ */ jsx109(
33426
33603
  StateManagedSelect$1,
33427
33604
  {
33428
33605
  menuShouldScrollIntoView: false,
@@ -33498,7 +33675,7 @@ var Many2OneField = (props) => {
33498
33675
  })
33499
33676
  },
33500
33677
  components: {
33501
- MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33678
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx109(
33502
33679
  CustomMenuList2,
33503
33680
  {
33504
33681
  ...menuListProps,
@@ -33509,13 +33686,13 @@ var Many2OneField = (props) => {
33509
33686
  }
33510
33687
  ),
33511
33688
  IndicatorSeparator: () => null,
33512
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33689
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx109(components.DropdownIndicator, { ...props2 })
33513
33690
  },
33514
33691
  isDisabled: readonly,
33515
33692
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33516
33693
  }
33517
33694
  ),
33518
- !isEditTable && error2 && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33695
+ !isEditTable && error2 && /* @__PURE__ */ jsx109("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33519
33696
  ] });
33520
33697
  }
33521
33698
  }
@@ -33526,7 +33703,7 @@ var Many2OneField = (props) => {
33526
33703
  };
33527
33704
 
33528
33705
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33529
- import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33706
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33530
33707
  var StatusbarDurationField = (props) => {
33531
33708
  const {
33532
33709
  disabled,
@@ -33536,14 +33713,14 @@ var StatusbarDurationField = (props) => {
33536
33713
  defaultValue,
33537
33714
  setModalStatus
33538
33715
  } = props;
33539
- return /* @__PURE__ */ jsx108(
33716
+ return /* @__PURE__ */ jsx110(
33540
33717
  "div",
33541
33718
  {
33542
33719
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33543
- children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33544
- /* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33720
+ children: /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-[24px]", children: [
33721
+ /* @__PURE__ */ jsx110("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33545
33722
  const value = option?.id === defaultValue;
33546
- return /* @__PURE__ */ jsxs73(
33723
+ return /* @__PURE__ */ jsxs75(
33547
33724
  "label",
33548
33725
  {
33549
33726
  onClick: () => !disabled && handleClick(option.id),
@@ -33553,7 +33730,7 @@ var StatusbarDurationField = (props) => {
33553
33730
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33554
33731
  `,
33555
33732
  children: [
33556
- /* @__PURE__ */ jsx108(
33733
+ /* @__PURE__ */ jsx110(
33557
33734
  "input",
33558
33735
  {
33559
33736
  type: "radio",
@@ -33563,7 +33740,7 @@ var StatusbarDurationField = (props) => {
33563
33740
  }
33564
33741
  ),
33565
33742
  option?.name,
33566
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33743
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx110(
33567
33744
  "div",
33568
33745
  {
33569
33746
  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]
@@ -33578,14 +33755,14 @@ var StatusbarDurationField = (props) => {
33578
33755
  }) }),
33579
33756
  dataResponse?.records?.some(
33580
33757
  (item) => item?.fold && item.id !== defaultValue
33581
- ) && /* @__PURE__ */ jsxs73(
33758
+ ) && /* @__PURE__ */ jsxs75(
33582
33759
  "div",
33583
33760
  {
33584
33761
  onClick: () => setModalStatus(!modelStatus),
33585
33762
  className: "w-[24px] h-[24px] cursor-pointer relative",
33586
33763
  children: [
33587
- /* @__PURE__ */ jsx108(MoreIcon, {}),
33588
- modelStatus && /* @__PURE__ */ jsx108(
33764
+ /* @__PURE__ */ jsx110(MoreIcon, {}),
33765
+ modelStatus && /* @__PURE__ */ jsx110(
33589
33766
  "div",
33590
33767
  {
33591
33768
  onClick: (e3) => e3.stopPropagation(),
@@ -33594,7 +33771,7 @@ var StatusbarDurationField = (props) => {
33594
33771
  (item) => item?.fold && item.id !== defaultValue
33595
33772
  )?.map((option) => {
33596
33773
  const value = option?.id === defaultValue;
33597
- return /* @__PURE__ */ jsx108(
33774
+ return /* @__PURE__ */ jsx110(
33598
33775
  "div",
33599
33776
  {
33600
33777
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33616,14 +33793,14 @@ var StatusbarDurationField = (props) => {
33616
33793
 
33617
33794
  // src/widgets/basic/status-bar-field/option/option.tsx
33618
33795
  import { useMemo as useMemo11 } from "react";
33619
- import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
33796
+ import { Fragment as Fragment33, jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
33620
33797
  var StatusBarOptionField = (props) => {
33621
33798
  const { selection, defaultValue } = props;
33622
33799
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33623
33800
  const indexInProgress = memoizedStatusOptions?.findIndex(
33624
33801
  (option) => option?.[0] === defaultValue
33625
33802
  );
33626
- return /* @__PURE__ */ jsx109(
33803
+ return /* @__PURE__ */ jsx111(
33627
33804
  "div",
33628
33805
  {
33629
33806
  style: {
@@ -33632,8 +33809,8 @@ var StatusBarOptionField = (props) => {
33632
33809
  flexWrap: "wrap"
33633
33810
  },
33634
33811
  children: memoizedStatusOptions?.map((option, index4) => {
33635
- return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33636
- /* @__PURE__ */ jsxs74(
33812
+ return /* @__PURE__ */ jsxs76(Fragment33, { children: [
33813
+ /* @__PURE__ */ jsxs76(
33637
33814
  "div",
33638
33815
  {
33639
33816
  style: {
@@ -33651,7 +33828,7 @@ var StatusBarOptionField = (props) => {
33651
33828
  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" : ""
33652
33829
  },
33653
33830
  children: [
33654
- /* @__PURE__ */ jsx109(
33831
+ /* @__PURE__ */ jsx111(
33655
33832
  "span",
33656
33833
  {
33657
33834
  style: {
@@ -33663,10 +33840,10 @@ var StatusBarOptionField = (props) => {
33663
33840
  alignItems: "center",
33664
33841
  borderRadius: "100%"
33665
33842
  },
33666
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx109(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx109(ICCircle, {}) : /* @__PURE__ */ jsx109(ICMinus, {})
33843
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx111(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx111(ICCircle, {}) : /* @__PURE__ */ jsx111(ICMinus, {})
33667
33844
  }
33668
33845
  ),
33669
- /* @__PURE__ */ jsx109(
33846
+ /* @__PURE__ */ jsx111(
33670
33847
  "span",
33671
33848
  {
33672
33849
  style: {
@@ -33679,7 +33856,7 @@ var StatusBarOptionField = (props) => {
33679
33856
  },
33680
33857
  option?.[0]
33681
33858
  ),
33682
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33859
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx111(
33683
33860
  "div",
33684
33861
  {
33685
33862
  style: {
@@ -33695,7 +33872,7 @@ var StatusBarOptionField = (props) => {
33695
33872
  );
33696
33873
  };
33697
33874
  var ICMinus = () => {
33698
- return /* @__PURE__ */ jsx109(
33875
+ return /* @__PURE__ */ jsx111(
33699
33876
  "svg",
33700
33877
  {
33701
33878
  xmlns: "http://www.w3.org/2000/svg",
@@ -33703,7 +33880,7 @@ var ICMinus = () => {
33703
33880
  height: "16",
33704
33881
  viewBox: "0 0 16 16",
33705
33882
  fill: "none",
33706
- children: /* @__PURE__ */ jsx109(
33883
+ children: /* @__PURE__ */ jsx111(
33707
33884
  "path",
33708
33885
  {
33709
33886
  d: "M4 8H12",
@@ -33717,7 +33894,7 @@ var ICMinus = () => {
33717
33894
  );
33718
33895
  };
33719
33896
  var ICCircle = () => {
33720
- return /* @__PURE__ */ jsx109(
33897
+ return /* @__PURE__ */ jsx111(
33721
33898
  "svg",
33722
33899
  {
33723
33900
  xmlns: "http://www.w3.org/2000/svg",
@@ -33725,12 +33902,12 @@ var ICCircle = () => {
33725
33902
  height: "8",
33726
33903
  viewBox: "0 0 8 8",
33727
33904
  fill: "none",
33728
- children: /* @__PURE__ */ jsx109("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33905
+ children: /* @__PURE__ */ jsx111("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33729
33906
  }
33730
33907
  );
33731
33908
  };
33732
33909
  var ICCheck = () => {
33733
- return /* @__PURE__ */ jsx109(
33910
+ return /* @__PURE__ */ jsx111(
33734
33911
  "svg",
33735
33912
  {
33736
33913
  xmlns: "http://www.w3.org/2000/svg",
@@ -33738,7 +33915,7 @@ var ICCheck = () => {
33738
33915
  height: "16",
33739
33916
  viewBox: "0 0 16 16",
33740
33917
  fill: "none",
33741
- children: /* @__PURE__ */ jsx109(
33918
+ children: /* @__PURE__ */ jsx111(
33742
33919
  "path",
33743
33920
  {
33744
33921
  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",
@@ -33752,7 +33929,7 @@ var ICCheck = () => {
33752
33929
  };
33753
33930
 
33754
33931
  // src/widgets/basic/date-option-field/date-option.tsx
33755
- import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33932
+ import { jsx as jsx112, jsxs as jsxs77 } from "react/jsx-runtime";
33756
33933
  var DateOptionField = (props) => {
33757
33934
  const {
33758
33935
  name: name2,
@@ -33763,19 +33940,19 @@ var DateOptionField = (props) => {
33763
33940
  string,
33764
33941
  onChange: onChange2
33765
33942
  } = props;
33766
- return /* @__PURE__ */ jsx110(
33943
+ return /* @__PURE__ */ jsx112(
33767
33944
  Controller,
33768
33945
  {
33769
33946
  name: name2 ?? "",
33770
33947
  control: methods?.control,
33771
- render: ({ field }) => /* @__PURE__ */ jsxs75(
33948
+ render: ({ field }) => /* @__PURE__ */ jsxs77(
33772
33949
  "label",
33773
33950
  {
33774
33951
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33775
33952
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33776
33953
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33777
33954
  children: [
33778
- /* @__PURE__ */ jsx110(
33955
+ /* @__PURE__ */ jsx112(
33779
33956
  "input",
33780
33957
  {
33781
33958
  type: "checkbox",
@@ -33827,6 +34004,7 @@ export {
33827
34004
  DOTS,
33828
34005
  DateField,
33829
34006
  DateOptionField,
34007
+ DefaultFileIcon,
33830
34008
  DeleteIcon,
33831
34009
  DeleteIconDanger,
33832
34010
  DownLoadBinaryField,
@@ -33851,6 +34029,7 @@ export {
33851
34029
  ImageIcon,
33852
34030
  InfomationField,
33853
34031
  IntegerField,
34032
+ JSONFileIcon,
33854
34033
  KanbanIcon,
33855
34034
  LayerLoading,
33856
34035
  ListIcon,