@fctc/sme-widget-ui 1.9.8 → 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;
@@ -6111,8 +6111,8 @@ var ZipIcon = () => {
6111
6111
  return /* @__PURE__ */ jsxs15(
6112
6112
  "svg",
6113
6113
  {
6114
- width: "40",
6115
- height: "40",
6114
+ width: "30",
6115
+ height: "30",
6116
6116
  viewBox: "0 0 40 40",
6117
6117
  fill: "none",
6118
6118
  xmlns: "http://www.w3.org/2000/svg",
@@ -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",
6725
+ children: [
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",
6720
6751
  children: [
6721
- /* @__PURE__ */ jsx39(
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",
@@ -9826,8 +9876,8 @@ var en_default = {
9826
9876
  download_file: "Download this file",
9827
9877
  upload_success: "Upload file success",
9828
9878
  upload_failure: "Upload file failure",
9829
- file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and each file should be up to 10MB.",
9830
- file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and total should be up to 50MB.",
9879
+ file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and each file should be up to 10MB.",
9880
+ file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP, JSON formats are allowed, and total should be up to 50MB.",
9831
9881
  must_required: "is required",
9832
9882
  invalid_number: "Invalid number",
9833
9883
  active: "Active",
@@ -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"} `,
@@ -12921,7 +12971,8 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
12921
12971
  });
12922
12972
 
12923
12973
  // src/widgets/advanced/table/table-head.tsx
12924
- import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12974
+ import { createPortal as createPortal2 } from "react-dom";
12975
+ import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
12925
12976
  var TableHead = (props) => {
12926
12977
  const {
12927
12978
  handleCheckBoxAll,
@@ -12931,7 +12982,7 @@ var TableHead = (props) => {
12931
12982
  onRemoveRow,
12932
12983
  onToggleColumnOptional
12933
12984
  } = props;
12934
- return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs27(
12985
+ return /* @__PURE__ */ jsx50("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs29(
12935
12986
  "tr",
12936
12987
  {
12937
12988
  style: {
@@ -12943,11 +12994,11 @@ var TableHead = (props) => {
12943
12994
  },
12944
12995
  className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
12945
12996
  children: [
12946
- isDisplayCheckbox && /* @__PURE__ */ jsx48(
12997
+ isDisplayCheckbox && /* @__PURE__ */ jsx50(
12947
12998
  "th",
12948
12999
  {
12949
13000
  className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
12950
- children: /* @__PURE__ */ jsx48(
13001
+ children: /* @__PURE__ */ jsx50(
12951
13002
  "input",
12952
13003
  {
12953
13004
  type: "checkbox",
@@ -12959,32 +13010,36 @@ var TableHead = (props) => {
12959
13010
  }
12960
13011
  ),
12961
13012
  columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
12962
- return /* @__PURE__ */ jsx48(
13013
+ return /* @__PURE__ */ jsx50(
12963
13014
  "th",
12964
13015
  {
13016
+ "data-rtc-resizable": col?.name,
12965
13017
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12966
- 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: [
12967
13019
  col.title,
12968
- col?.field?.help && /* @__PURE__ */ jsxs27(Fragment4, { children: [
12969
- /* @__PURE__ */ jsx48(
12970
- M,
12971
- {
12972
- style: {
12973
- padding: "6px 12px",
12974
- fontSize: "12px",
12975
- borderRadius: "4px",
12976
- maxWidth: "200%",
12977
- whiteSpace: "wrap",
12978
- fontWeight: 400,
12979
- textTransform: "none"
12980
- },
12981
- id: `field-help-${col?.field?.name}`,
12982
- content: col?.field?.help,
12983
- place: "top",
12984
- className: "z-30"
12985
- }
13020
+ col?.field?.help && /* @__PURE__ */ jsxs29(Fragment4, { children: [
13021
+ createPortal2(
13022
+ /* @__PURE__ */ jsx50(
13023
+ M,
13024
+ {
13025
+ style: {
13026
+ padding: "6px 12px",
13027
+ fontSize: "12px",
13028
+ borderRadius: "4px",
13029
+ maxWidth: "200px",
13030
+ whiteSpace: "wrap",
13031
+ fontWeight: 400,
13032
+ textTransform: "none",
13033
+ zIndex: "9999"
13034
+ },
13035
+ id: `field-help-${col?.field?.name}`,
13036
+ content: col?.field?.help,
13037
+ place: "top"
13038
+ }
13039
+ ),
13040
+ document.body
12986
13041
  ),
12987
- /* @__PURE__ */ jsx48(
13042
+ /* @__PURE__ */ jsx50(
12988
13043
  "span",
12989
13044
  {
12990
13045
  style: {
@@ -13003,8 +13058,8 @@ var TableHead = (props) => {
13003
13058
  "table-head-" + index4
13004
13059
  );
13005
13060
  }),
13006
- typeof onRemoveRow === "function" && /* @__PURE__ */ jsx48("th", { className: "relative p-2 w-[35px]" }),
13007
- 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(
13008
13063
  "th",
13009
13064
  {
13010
13065
  style: {
@@ -13012,7 +13067,7 @@ var TableHead = (props) => {
13012
13067
  right: 0
13013
13068
  },
13014
13069
  className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
13015
- children: /* @__PURE__ */ jsx48(
13070
+ children: /* @__PURE__ */ jsx50(
13016
13071
  TableFilter,
13017
13072
  {
13018
13073
  columns,
@@ -13027,9 +13082,9 @@ var TableHead = (props) => {
13027
13082
  };
13028
13083
 
13029
13084
  // src/icons/empty-table-icon.tsx
13030
- import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
13085
+ import { jsx as jsx51, jsxs as jsxs30 } from "react/jsx-runtime";
13031
13086
  var IcEmptyTable = () => {
13032
- return /* @__PURE__ */ jsxs28(
13087
+ return /* @__PURE__ */ jsxs30(
13033
13088
  "svg",
13034
13089
  {
13035
13090
  xmlns: "http://www.w3.org/2000/svg",
@@ -13038,9 +13093,9 @@ var IcEmptyTable = () => {
13038
13093
  viewBox: "0 0 216 140",
13039
13094
  fill: "none",
13040
13095
  children: [
13041
- /* @__PURE__ */ jsxs28("g", { clipPath: "url(#clip0_2454_28950)", children: [
13042
- /* @__PURE__ */ jsx49("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
13043
- /* @__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(
13044
13099
  "path",
13045
13100
  {
13046
13101
  d: "M64.5 0V140",
@@ -13050,7 +13105,7 @@ var IcEmptyTable = () => {
13050
13105
  strokeDasharray: "3 3"
13051
13106
  }
13052
13107
  ),
13053
- /* @__PURE__ */ jsx49(
13108
+ /* @__PURE__ */ jsx51(
13054
13109
  "path",
13055
13110
  {
13056
13111
  d: "M151.5 0V140",
@@ -13060,7 +13115,7 @@ var IcEmptyTable = () => {
13060
13115
  strokeDasharray: "3 3"
13061
13116
  }
13062
13117
  ),
13063
- /* @__PURE__ */ jsx49(
13118
+ /* @__PURE__ */ jsx51(
13064
13119
  "path",
13065
13120
  {
13066
13121
  d: "M215.5 24H0.5",
@@ -13070,7 +13125,7 @@ var IcEmptyTable = () => {
13070
13125
  strokeDasharray: "3 3"
13071
13126
  }
13072
13127
  ),
13073
- /* @__PURE__ */ jsx49(
13128
+ /* @__PURE__ */ jsx51(
13074
13129
  "path",
13075
13130
  {
13076
13131
  d: "M215.5 50H0.5",
@@ -13080,7 +13135,7 @@ var IcEmptyTable = () => {
13080
13135
  strokeDasharray: "3 3"
13081
13136
  }
13082
13137
  ),
13083
- /* @__PURE__ */ jsx49(
13138
+ /* @__PURE__ */ jsx51(
13084
13139
  "path",
13085
13140
  {
13086
13141
  d: "M215.5 88H0.5",
@@ -13090,7 +13145,7 @@ var IcEmptyTable = () => {
13090
13145
  strokeDasharray: "3 3"
13091
13146
  }
13092
13147
  ),
13093
- /* @__PURE__ */ jsx49(
13148
+ /* @__PURE__ */ jsx51(
13094
13149
  "path",
13095
13150
  {
13096
13151
  d: "M215.5 114H0.5",
@@ -13100,7 +13155,7 @@ var IcEmptyTable = () => {
13100
13155
  strokeDasharray: "3 3"
13101
13156
  }
13102
13157
  ),
13103
- /* @__PURE__ */ jsx49(
13158
+ /* @__PURE__ */ jsx51(
13104
13159
  "path",
13105
13160
  {
13106
13161
  d: "M199.5 0V140",
@@ -13109,7 +13164,7 @@ var IcEmptyTable = () => {
13109
13164
  strokeMiterlimit: "10"
13110
13165
  }
13111
13166
  ),
13112
- /* @__PURE__ */ jsx49(
13167
+ /* @__PURE__ */ jsx51(
13113
13168
  "path",
13114
13169
  {
13115
13170
  d: "M16.5 0V140",
@@ -13118,7 +13173,7 @@ var IcEmptyTable = () => {
13118
13173
  strokeMiterlimit: "10"
13119
13174
  }
13120
13175
  ),
13121
- /* @__PURE__ */ jsx49(
13176
+ /* @__PURE__ */ jsx51(
13122
13177
  "path",
13123
13178
  {
13124
13179
  d: "M0.5 16H215.5",
@@ -13127,7 +13182,7 @@ var IcEmptyTable = () => {
13127
13182
  strokeMiterlimit: "10"
13128
13183
  }
13129
13184
  ),
13130
- /* @__PURE__ */ jsx49(
13185
+ /* @__PURE__ */ jsx51(
13131
13186
  "path",
13132
13187
  {
13133
13188
  d: "M0.5 124H215.5",
@@ -13136,7 +13191,7 @@ var IcEmptyTable = () => {
13136
13191
  strokeMiterlimit: "10"
13137
13192
  }
13138
13193
  ),
13139
- /* @__PURE__ */ jsx49(
13194
+ /* @__PURE__ */ jsx51(
13140
13195
  "path",
13141
13196
  {
13142
13197
  opacity: "0.6",
@@ -13147,7 +13202,7 @@ var IcEmptyTable = () => {
13147
13202
  strokeLinejoin: "round"
13148
13203
  }
13149
13204
  ),
13150
- /* @__PURE__ */ jsx49(
13205
+ /* @__PURE__ */ jsx51(
13151
13206
  "path",
13152
13207
  {
13153
13208
  opacity: "0.6",
@@ -13158,7 +13213,7 @@ var IcEmptyTable = () => {
13158
13213
  strokeLinejoin: "round"
13159
13214
  }
13160
13215
  ),
13161
- /* @__PURE__ */ jsx49(
13216
+ /* @__PURE__ */ jsx51(
13162
13217
  "path",
13163
13218
  {
13164
13219
  opacity: "0.6",
@@ -13169,7 +13224,7 @@ var IcEmptyTable = () => {
13169
13224
  strokeLinejoin: "round"
13170
13225
  }
13171
13226
  ),
13172
- /* @__PURE__ */ jsx49(
13227
+ /* @__PURE__ */ jsx51(
13173
13228
  "path",
13174
13229
  {
13175
13230
  opacity: "0.6",
@@ -13180,7 +13235,7 @@ var IcEmptyTable = () => {
13180
13235
  strokeLinejoin: "round"
13181
13236
  }
13182
13237
  ),
13183
- /* @__PURE__ */ jsx49(
13238
+ /* @__PURE__ */ jsx51(
13184
13239
  "path",
13185
13240
  {
13186
13241
  opacity: "0.6",
@@ -13191,14 +13246,14 @@ var IcEmptyTable = () => {
13191
13246
  strokeLinejoin: "round"
13192
13247
  }
13193
13248
  ),
13194
- /* @__PURE__ */ jsx49(
13249
+ /* @__PURE__ */ jsx51(
13195
13250
  "path",
13196
13251
  {
13197
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",
13198
13253
  fill: "white"
13199
13254
  }
13200
13255
  ),
13201
- /* @__PURE__ */ jsx49(
13256
+ /* @__PURE__ */ jsx51(
13202
13257
  "path",
13203
13258
  {
13204
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",
@@ -13208,7 +13263,7 @@ var IcEmptyTable = () => {
13208
13263
  strokeLinejoin: "round"
13209
13264
  }
13210
13265
  ),
13211
- /* @__PURE__ */ jsx49(
13266
+ /* @__PURE__ */ jsx51(
13212
13267
  "path",
13213
13268
  {
13214
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",
@@ -13217,7 +13272,7 @@ var IcEmptyTable = () => {
13217
13272
  strokeLinejoin: "round"
13218
13273
  }
13219
13274
  ),
13220
- /* @__PURE__ */ jsx49(
13275
+ /* @__PURE__ */ jsx51(
13221
13276
  "path",
13222
13277
  {
13223
13278
  opacity: "0.6",
@@ -13228,7 +13283,7 @@ var IcEmptyTable = () => {
13228
13283
  strokeLinejoin: "round"
13229
13284
  }
13230
13285
  ),
13231
- /* @__PURE__ */ jsx49(
13286
+ /* @__PURE__ */ jsx51(
13232
13287
  "path",
13233
13288
  {
13234
13289
  opacity: "0.6",
@@ -13239,7 +13294,7 @@ var IcEmptyTable = () => {
13239
13294
  strokeLinejoin: "round"
13240
13295
  }
13241
13296
  ),
13242
- /* @__PURE__ */ jsx49(
13297
+ /* @__PURE__ */ jsx51(
13243
13298
  "path",
13244
13299
  {
13245
13300
  opacity: "0.6",
@@ -13250,7 +13305,7 @@ var IcEmptyTable = () => {
13250
13305
  strokeLinejoin: "round"
13251
13306
  }
13252
13307
  ),
13253
- /* @__PURE__ */ jsx49(
13308
+ /* @__PURE__ */ jsx51(
13254
13309
  "path",
13255
13310
  {
13256
13311
  opacity: "0.6",
@@ -13261,7 +13316,7 @@ var IcEmptyTable = () => {
13261
13316
  strokeLinejoin: "round"
13262
13317
  }
13263
13318
  ),
13264
- /* @__PURE__ */ jsx49(
13319
+ /* @__PURE__ */ jsx51(
13265
13320
  "path",
13266
13321
  {
13267
13322
  opacity: "0.6",
@@ -13272,7 +13327,7 @@ var IcEmptyTable = () => {
13272
13327
  strokeLinejoin: "round"
13273
13328
  }
13274
13329
  ),
13275
- /* @__PURE__ */ jsx49(
13330
+ /* @__PURE__ */ jsx51(
13276
13331
  "path",
13277
13332
  {
13278
13333
  opacity: "0.6",
@@ -13283,7 +13338,7 @@ var IcEmptyTable = () => {
13283
13338
  strokeLinejoin: "round"
13284
13339
  }
13285
13340
  ),
13286
- /* @__PURE__ */ jsx49(
13341
+ /* @__PURE__ */ jsx51(
13287
13342
  "path",
13288
13343
  {
13289
13344
  opacity: "0.6",
@@ -13294,7 +13349,7 @@ var IcEmptyTable = () => {
13294
13349
  strokeLinejoin: "round"
13295
13350
  }
13296
13351
  ),
13297
- /* @__PURE__ */ jsx49(
13352
+ /* @__PURE__ */ jsx51(
13298
13353
  "path",
13299
13354
  {
13300
13355
  opacity: "0.6",
@@ -13305,7 +13360,7 @@ var IcEmptyTable = () => {
13305
13360
  strokeLinejoin: "round"
13306
13361
  }
13307
13362
  ),
13308
- /* @__PURE__ */ jsx49(
13363
+ /* @__PURE__ */ jsx51(
13309
13364
  "path",
13310
13365
  {
13311
13366
  opacity: "0.6",
@@ -13316,14 +13371,14 @@ var IcEmptyTable = () => {
13316
13371
  strokeLinejoin: "round"
13317
13372
  }
13318
13373
  ),
13319
- /* @__PURE__ */ jsx49(
13374
+ /* @__PURE__ */ jsx51(
13320
13375
  "path",
13321
13376
  {
13322
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",
13323
13378
  fill: "white"
13324
13379
  }
13325
13380
  ),
13326
- /* @__PURE__ */ jsx49(
13381
+ /* @__PURE__ */ jsx51(
13327
13382
  "path",
13328
13383
  {
13329
13384
  "fill-rule": "evenodd",
@@ -13332,7 +13387,7 @@ var IcEmptyTable = () => {
13332
13387
  fill: "white"
13333
13388
  }
13334
13389
  ),
13335
- /* @__PURE__ */ jsx49(
13390
+ /* @__PURE__ */ jsx51(
13336
13391
  "path",
13337
13392
  {
13338
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",
@@ -13343,7 +13398,7 @@ var IcEmptyTable = () => {
13343
13398
  }
13344
13399
  )
13345
13400
  ] }),
13346
- /* @__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(
13347
13402
  "rect",
13348
13403
  {
13349
13404
  width: "215",
@@ -13358,14 +13413,14 @@ var IcEmptyTable = () => {
13358
13413
  };
13359
13414
 
13360
13415
  // src/widgets/advanced/table/empty-table.tsx
13361
- import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
13416
+ import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
13362
13417
  var EmptyTable = () => {
13363
13418
  const { t: t3 } = useI18n();
13364
- return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13365
- /* @__PURE__ */ jsx50(IcEmptyTable, {}),
13366
- /* @__PURE__ */ jsxs29("div", { children: [
13367
- /* @__PURE__ */ jsx50("p", {}),
13368
- /* @__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") })
13369
13424
  ] })
13370
13425
  ] });
13371
13426
  };
@@ -15184,10 +15239,10 @@ function s3(o3, s4, t3) {
15184
15239
 
15185
15240
  // src/widgets/advanced/login/shared/button.tsx
15186
15241
  import * as React2 from "react";
15187
- import { jsx as jsx51 } from "react/jsx-runtime";
15242
+ import { jsx as jsx53 } from "react/jsx-runtime";
15188
15243
  var Button = React2.forwardRef(
15189
15244
  ({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
15190
- return /* @__PURE__ */ jsx51(
15245
+ return /* @__PURE__ */ jsx53(
15191
15246
  "button",
15192
15247
  {
15193
15248
  className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
@@ -15197,7 +15252,7 @@ var Button = React2.forwardRef(
15197
15252
  ref,
15198
15253
  type,
15199
15254
  ...props,
15200
- children: isLoading ? /* @__PURE__ */ jsx51(LoadingIcon, { width: 20, height: 20 }) : children
15255
+ children: isLoading ? /* @__PURE__ */ jsx53(LoadingIcon, { width: 20, height: 20 }) : children
15201
15256
  }
15202
15257
  );
15203
15258
  }
@@ -15206,7 +15261,7 @@ Button.displayName = "Button";
15206
15261
 
15207
15262
  // src/widgets/advanced/login/shared/text-input.tsx
15208
15263
  import { useState as useState5 } from "react";
15209
- import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
15264
+ import { jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
15210
15265
  function TextInput(props) {
15211
15266
  const {
15212
15267
  className,
@@ -15220,17 +15275,17 @@ function TextInput(props) {
15220
15275
  required
15221
15276
  } = props;
15222
15277
  const [showPassword, setShowPassword] = useState5(false);
15223
- return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
15224
- 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: [
15225
15280
  label,
15226
- required ? /* @__PURE__ */ jsx52("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15281
+ required ? /* @__PURE__ */ jsx54("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
15227
15282
  ] }),
15228
- /* @__PURE__ */ jsxs30(
15283
+ /* @__PURE__ */ jsxs32(
15229
15284
  "div",
15230
15285
  {
15231
15286
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
15232
15287
  children: [
15233
- /* @__PURE__ */ jsx52(
15288
+ /* @__PURE__ */ jsx54(
15234
15289
  "input",
15235
15290
  {
15236
15291
  className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
@@ -15239,18 +15294,18 @@ function TextInput(props) {
15239
15294
  ...register(name2)
15240
15295
  }
15241
15296
  ),
15242
- type === "password" && /* @__PURE__ */ jsx52(
15297
+ type === "password" && /* @__PURE__ */ jsx54(
15243
15298
  "span",
15244
15299
  {
15245
15300
  onClick: () => setShowPassword(!showPassword),
15246
15301
  className: "focus:outline-none",
15247
- children: showPassword ? /* @__PURE__ */ jsx52(EyeClosedIcon, {}) : /* @__PURE__ */ jsx52(EyeIcon, {})
15302
+ children: showPassword ? /* @__PURE__ */ jsx54(EyeClosedIcon, {}) : /* @__PURE__ */ jsx54(EyeIcon, {})
15248
15303
  }
15249
15304
  )
15250
15305
  ]
15251
15306
  }
15252
15307
  ),
15253
- errors?.[name2]?.message && /* @__PURE__ */ jsx52(
15308
+ errors?.[name2]?.message && /* @__PURE__ */ jsx54(
15254
15309
  "p",
15255
15310
  {
15256
15311
  className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
@@ -15262,7 +15317,7 @@ function TextInput(props) {
15262
15317
 
15263
15318
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
15264
15319
  import { useEffect as useEffect7 } from "react";
15265
- import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
15320
+ import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
15266
15321
  var STAY_LOGIN_IN = "stayLoginIn";
15267
15322
  function FormOptions({
15268
15323
  forgotPasswordUrl,
@@ -15288,9 +15343,9 @@ function FormOptions({
15288
15343
  useEffect7(() => {
15289
15344
  localStorage.setItem(STAY_LOGIN_IN, "false");
15290
15345
  }, []);
15291
- return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
15292
- /* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
15293
- /* @__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(
15294
15349
  "input",
15295
15350
  {
15296
15351
  checked: stayLoginIn,
@@ -15299,14 +15354,14 @@ function FormOptions({
15299
15354
  onChange: handleCheckboxChange
15300
15355
  }
15301
15356
  ),
15302
- /* @__PURE__ */ jsx53("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15357
+ /* @__PURE__ */ jsx55("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
15303
15358
  ] }),
15304
- !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?" })
15305
15360
  ] });
15306
15361
  }
15307
15362
 
15308
15363
  // src/widgets/advanced/login/provider/credential/index.tsx
15309
- 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";
15310
15365
  var CredentialLogin = (props) => {
15311
15366
  const {
15312
15367
  shouldRenderDivider,
@@ -15326,16 +15381,16 @@ var CredentialLogin = (props) => {
15326
15381
  mode: "onChange",
15327
15382
  resolver: s3(loginSchema)
15328
15383
  });
15329
- return /* @__PURE__ */ jsxs32(Fragment5, { children: [
15330
- /* @__PURE__ */ jsxs32(
15384
+ return /* @__PURE__ */ jsxs34(Fragment5, { children: [
15385
+ /* @__PURE__ */ jsxs34(
15331
15386
  "form",
15332
15387
  {
15333
15388
  onSubmit: handleSubmit(onSubmit ?? (() => {
15334
15389
  })),
15335
15390
  className: `flex w-full h-fit flex-col gap-10`,
15336
15391
  children: [
15337
- /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
15338
- /* @__PURE__ */ jsx54(
15392
+ /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
15393
+ /* @__PURE__ */ jsx56(
15339
15394
  TextInput,
15340
15395
  {
15341
15396
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15348,7 +15403,7 @@ var CredentialLogin = (props) => {
15348
15403
  errors
15349
15404
  }
15350
15405
  ),
15351
- /* @__PURE__ */ jsx54(
15406
+ /* @__PURE__ */ jsx56(
15352
15407
  TextInput,
15353
15408
  {
15354
15409
  inputWrapperClassName: "py-2.5 h-[42px] rounded",
@@ -15361,7 +15416,7 @@ var CredentialLogin = (props) => {
15361
15416
  errors
15362
15417
  }
15363
15418
  ),
15364
- /* @__PURE__ */ jsx54(
15419
+ /* @__PURE__ */ jsx56(
15365
15420
  FormOptions,
15366
15421
  {
15367
15422
  forgotPasswordUrl,
@@ -15371,7 +15426,7 @@ var CredentialLogin = (props) => {
15371
15426
  }
15372
15427
  )
15373
15428
  ] }),
15374
- /* @__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(
15375
15430
  Button,
15376
15431
  {
15377
15432
  type: "submit",
@@ -15383,56 +15438,56 @@ var CredentialLogin = (props) => {
15383
15438
  ]
15384
15439
  }
15385
15440
  ),
15386
- shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
15387
- /* @__PURE__ */ jsx54("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15388
- /* @__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" })
15389
15444
  ] })
15390
15445
  ] });
15391
15446
  };
15392
15447
 
15393
15448
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15394
- import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
15449
+ import { jsx as jsx57, jsxs as jsxs35 } from "react/jsx-runtime";
15395
15450
  function GoogleButton(props) {
15396
15451
  const { onLoginGoogle, db } = props;
15397
- return /* @__PURE__ */ jsxs33(
15452
+ return /* @__PURE__ */ jsxs35(
15398
15453
  "button",
15399
15454
  {
15400
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",
15401
15456
  onClick: () => onLoginGoogle?.(db),
15402
15457
  children: [
15403
- /* @__PURE__ */ jsx55(GoogleIcon, { className: "google-icon" }),
15404
- /* @__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" })
15405
15460
  ]
15406
15461
  }
15407
15462
  );
15408
15463
  }
15409
15464
 
15410
15465
  // src/widgets/advanced/login/provider/google/redirect/index.tsx
15411
- import { Fragment as Fragment6, jsx as jsx56 } from "react/jsx-runtime";
15466
+ import { Fragment as Fragment6, jsx as jsx58 } from "react/jsx-runtime";
15412
15467
  function SocialRedirect(props) {
15413
15468
  const { db, onLoginSocial } = props;
15414
15469
  onLoginSocial && onLoginSocial(String(db));
15415
- return /* @__PURE__ */ jsx56(Fragment6, {});
15470
+ return /* @__PURE__ */ jsx58(Fragment6, {});
15416
15471
  }
15417
15472
 
15418
15473
  // src/widgets/advanced/login/provider/google/index.tsx
15419
- 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";
15420
15475
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15421
- return /* @__PURE__ */ jsxs34(Fragment7, { children: [
15422
- /* @__PURE__ */ jsx57(GoogleButton, { db, onLoginGoogle }),
15423
- /* @__PURE__ */ jsx57(SocialRedirect, { db, onLoginSocial })
15476
+ return /* @__PURE__ */ jsxs36(Fragment7, { children: [
15477
+ /* @__PURE__ */ jsx59(GoogleButton, { db, onLoginGoogle }),
15478
+ /* @__PURE__ */ jsx59(SocialRedirect, { db, onLoginSocial })
15424
15479
  ] });
15425
15480
  };
15426
15481
 
15427
15482
  // src/widgets/advanced/login/index.tsx
15428
- import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
15483
+ import { jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
15429
15484
  var LoginProviderMapping = {
15430
15485
  google: GoogleLogin
15431
15486
  };
15432
15487
  var Login = (props) => {
15433
15488
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15434
- return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
15435
- /* @__PURE__ */ jsx58(
15489
+ return /* @__PURE__ */ jsxs37("div", { className: "w-full space-y-8", children: [
15490
+ /* @__PURE__ */ jsx60(
15436
15491
  CredentialLogin,
15437
15492
  {
15438
15493
  ...props,
@@ -15442,7 +15497,7 @@ var Login = (props) => {
15442
15497
  ),
15443
15498
  providers.map((provider, index4) => {
15444
15499
  const ProviderComp = LoginProviderMapping[provider];
15445
- return /* @__PURE__ */ jsx58(
15500
+ return /* @__PURE__ */ jsx60(
15446
15501
  ProviderComp,
15447
15502
  {
15448
15503
  db,
@@ -15456,7 +15511,7 @@ var Login = (props) => {
15456
15511
  };
15457
15512
 
15458
15513
  // src/widgets/advanced/search/popup-filter/index.tsx
15459
- import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
15514
+ import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15460
15515
  var PopupFilter = ({
15461
15516
  handleAddTagSearch,
15462
15517
  removeSearchItems,
@@ -15467,7 +15522,7 @@ var PopupFilter = ({
15467
15522
  fields
15468
15523
  }) => {
15469
15524
  const { t: t3 } = useI18n();
15470
- return /* @__PURE__ */ jsx59(
15525
+ return /* @__PURE__ */ jsx61(
15471
15526
  "div",
15472
15527
  {
15473
15528
  style: {
@@ -15477,25 +15532,25 @@ var PopupFilter = ({
15477
15532
  zIndex: 33
15478
15533
  },
15479
15534
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15480
- children: /* @__PURE__ */ jsxs36(
15535
+ children: /* @__PURE__ */ jsxs38(
15481
15536
  "div",
15482
15537
  {
15483
15538
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15484
15539
  children: [
15485
- filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
15486
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15487
- /* @__PURE__ */ jsx59(FilterIcon, { className: "filter-by-icon text-primary" }),
15488
- /* @__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") })
15489
15544
  ] }),
15490
15545
  filterBy?.reduce((acc, item, index4, array) => {
15491
15546
  const prevItem = array[index4 - 1];
15492
15547
  const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
15493
15548
  const isExist = item?.active;
15494
15549
  if (isDifferentGroup) {
15495
- acc.push(/* @__PURE__ */ jsx59("hr", { className: "my-2" }, "separator-" + index4));
15550
+ acc.push(/* @__PURE__ */ jsx61("hr", { className: "my-2" }, "separator-" + index4));
15496
15551
  }
15497
15552
  acc.push(
15498
- /* @__PURE__ */ jsxs36(
15553
+ /* @__PURE__ */ jsxs38(
15499
15554
  "button",
15500
15555
  {
15501
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)]"}`,
@@ -15520,8 +15575,8 @@ var PopupFilter = ({
15520
15575
  });
15521
15576
  },
15522
15577
  children: [
15523
- isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15524
- /* @__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 })
15525
15580
  ]
15526
15581
  },
15527
15582
  "filter-" + index4
@@ -15530,16 +15585,16 @@ var PopupFilter = ({
15530
15585
  return acc;
15531
15586
  }, [])
15532
15587
  ] }),
15533
- filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx59("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15534
- groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
15535
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15536
- /* @__PURE__ */ jsx59(GroupByIcon, { className: "group-by-icon text-primary" }),
15537
- /* @__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") })
15538
15593
  ] }),
15539
15594
  groupBy?.map((item, index4) => {
15540
15595
  const isExist = item?.active;
15541
15596
  if (!item.string) return;
15542
- return /* @__PURE__ */ jsxs36(
15597
+ return /* @__PURE__ */ jsxs38(
15543
15598
  "button",
15544
15599
  {
15545
15600
  onClick: () => {
@@ -15563,8 +15618,8 @@ var PopupFilter = ({
15563
15618
  },
15564
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)]"}`,
15565
15620
  children: [
15566
- isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
15567
- /* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string })
15621
+ isExist && /* @__PURE__ */ jsx61(CheckIcon, {}),
15622
+ /* @__PURE__ */ jsx61("span", { className: "text-sm", children: item?.string })
15568
15623
  ]
15569
15624
  },
15570
15625
  "groupby-" + index4 + 1
@@ -15583,7 +15638,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15583
15638
 
15584
15639
  // src/widgets/advanced/search/tag-search/index.tsx
15585
15640
  import { Fragment as Fragment8 } from "react";
15586
- 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";
15587
15642
  var TagSearch = ({
15588
15643
  removeSearchItems,
15589
15644
  selectedTags,
@@ -15594,23 +15649,23 @@ var TagSearch = ({
15594
15649
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15595
15650
  if (tag?.values?.length > 0) {
15596
15651
  if (tag?.type !== "group_by") {
15597
- return /* @__PURE__ */ jsxs37(
15652
+ return /* @__PURE__ */ jsxs39(
15598
15653
  "div",
15599
15654
  {
15600
15655
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15601
15656
  children: [
15602
- /* @__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, {}) }),
15603
- /* @__PURE__ */ jsx60("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15604
- return /* @__PURE__ */ jsxs37(Fragment8, { children: [
15605
- /* @__PURE__ */ jsx60("span", { children: value }),
15606
- 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: [
15607
15662
  " ",
15608
15663
  instance.t("or"),
15609
15664
  " "
15610
15665
  ] })
15611
15666
  ] }, idx);
15612
15667
  }) }),
15613
- /* @__PURE__ */ jsx60(
15668
+ /* @__PURE__ */ jsx62(
15614
15669
  "button",
15615
15670
  {
15616
15671
  className: "px-2 text-sm font-bold",
@@ -15627,7 +15682,7 @@ var TagSearch = ({
15627
15682
  );
15628
15683
  }
15629
15684
  },
15630
- children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15685
+ children: /* @__PURE__ */ jsx62(CloseIcon, { className: "size-4 cursor-pointer" })
15631
15686
  }
15632
15687
  )
15633
15688
  ]
@@ -15635,26 +15690,26 @@ var TagSearch = ({
15635
15690
  "selected-tag-" + index4
15636
15691
  );
15637
15692
  } else if (tag?.type === "group_by") {
15638
- return /* @__PURE__ */ jsx60(
15693
+ return /* @__PURE__ */ jsx62(
15639
15694
  "div",
15640
15695
  {
15641
15696
  className: "flex min-h-full overflow-hidden",
15642
- 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(
15643
- (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(
15644
15699
  "div",
15645
15700
  {
15646
15701
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15647
15702
  children: [
15648
- /* @__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, {}) }),
15649
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
15650
- /* @__PURE__ */ jsx60("span", { children: string }),
15651
- 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: [
15652
15707
  " ",
15653
15708
  "> ",
15654
15709
  " "
15655
15710
  ] })
15656
15711
  ] })),
15657
- /* @__PURE__ */ jsx60(
15712
+ /* @__PURE__ */ jsx62(
15658
15713
  "button",
15659
15714
  {
15660
15715
  className: "pr-2 text-sm font-bold",
@@ -15669,7 +15724,7 @@ var TagSearch = ({
15669
15724
  );
15670
15725
  }
15671
15726
  },
15672
- children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
15727
+ children: /* @__PURE__ */ jsx62(CloseIcon, { className: "size-4 cursor-pointer" })
15673
15728
  }
15674
15729
  )
15675
15730
  ]
@@ -15686,7 +15741,7 @@ var TagSearch = ({
15686
15741
  };
15687
15742
 
15688
15743
  // src/widgets/advanced/search/search-list/index.tsx
15689
- import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
15744
+ import { jsx as jsx63, jsxs as jsxs40 } from "react/jsx-runtime";
15690
15745
  var SearchList = ({
15691
15746
  handleAddTagSearch,
15692
15747
  handleMouseEnter,
@@ -15696,7 +15751,7 @@ var SearchList = ({
15696
15751
  hoveredIndexSearchList
15697
15752
  }) => {
15698
15753
  const { t: t3 } = useI18n();
15699
- return /* @__PURE__ */ jsx61(
15754
+ return /* @__PURE__ */ jsx63(
15700
15755
  "div",
15701
15756
  {
15702
15757
  style: {
@@ -15708,7 +15763,7 @@ var SearchList = ({
15708
15763
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15709
15764
  return;
15710
15765
  }
15711
- return /* @__PURE__ */ jsxs38(
15766
+ return /* @__PURE__ */ jsxs40(
15712
15767
  "button",
15713
15768
  {
15714
15769
  onClick: () => {
@@ -15730,12 +15785,12 @@ var SearchList = ({
15730
15785
  children: [
15731
15786
  t3("search"),
15732
15787
  " ",
15733
- /* @__PURE__ */ jsx61("span", { className: "font-bold", children: searchItem?.title }),
15788
+ /* @__PURE__ */ jsx63("span", { className: "font-bold", children: searchItem?.title }),
15734
15789
  " ",
15735
15790
  t3("for"),
15736
15791
  ":",
15737
15792
  " ",
15738
- /* @__PURE__ */ jsx61(
15793
+ /* @__PURE__ */ jsx63(
15739
15794
  "span",
15740
15795
  {
15741
15796
  style: {
@@ -15755,7 +15810,7 @@ var SearchList = ({
15755
15810
  };
15756
15811
 
15757
15812
  // src/widgets/advanced/search/search-item/index.tsx
15758
- 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";
15759
15814
  var Search = ({
15760
15815
  removeSearchItems,
15761
15816
  selectedTags,
@@ -15872,15 +15927,15 @@ var Search = ({
15872
15927
  setDidInit(true);
15873
15928
  setIsReadyFormatDomain(true);
15874
15929
  }, [aid, filterBy, fieldsList]);
15875
- return /* @__PURE__ */ jsxs39(
15930
+ return /* @__PURE__ */ jsxs41(
15876
15931
  "div",
15877
15932
  {
15878
15933
  ref: popupFilterRef,
15879
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)]`,
15880
15935
  children: [
15881
- /* @__PURE__ */ jsx62("div", { className: "size-5", children: /* @__PURE__ */ jsx62(SearchIcon, {}) }),
15882
- /* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15883
- /* @__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(
15884
15939
  TagSearch,
15885
15940
  {
15886
15941
  removeSearchItems,
@@ -15890,7 +15945,7 @@ var Search = ({
15890
15945
  setGroupBy
15891
15946
  }
15892
15947
  ),
15893
- /* @__PURE__ */ jsx62(
15948
+ /* @__PURE__ */ jsx64(
15894
15949
  "input",
15895
15950
  {
15896
15951
  value: searchString,
@@ -15903,7 +15958,7 @@ var Search = ({
15903
15958
  onKeyUp: (e3) => e3.preventDefault()
15904
15959
  }
15905
15960
  ),
15906
- /* @__PURE__ */ jsx62(
15961
+ /* @__PURE__ */ jsx64(
15907
15962
  SearchList,
15908
15963
  {
15909
15964
  handleAddTagSearch,
@@ -15912,8 +15967,8 @@ var Search = ({
15912
15967
  }
15913
15968
  )
15914
15969
  ] }),
15915
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment10, { children: [
15916
- /* @__PURE__ */ jsxs39(
15970
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs41(Fragment10, { children: [
15971
+ /* @__PURE__ */ jsxs41(
15917
15972
  "div",
15918
15973
  {
15919
15974
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -15922,8 +15977,8 @@ var Search = ({
15922
15977
  setShowPopupFilter((prev2) => !prev2);
15923
15978
  },
15924
15979
  children: [
15925
- /* @__PURE__ */ jsx62("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15926
- /* @__PURE__ */ jsx62(
15980
+ /* @__PURE__ */ jsx64("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
15981
+ /* @__PURE__ */ jsx64(
15927
15982
  ChevronBottomIcon,
15928
15983
  {
15929
15984
  className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
@@ -15932,7 +15987,7 @@ var Search = ({
15932
15987
  ]
15933
15988
  }
15934
15989
  ),
15935
- showPopupFilter && /* @__PURE__ */ jsx62(
15990
+ showPopupFilter && /* @__PURE__ */ jsx64(
15936
15991
  PopupFilter,
15937
15992
  {
15938
15993
  handleAddTagSearch,
@@ -15951,30 +16006,30 @@ var Search = ({
15951
16006
  };
15952
16007
 
15953
16008
  // src/widgets/basic/active-badge-field/active-badge.tsx
15954
- import { Fragment as Fragment11, jsx as jsx63 } from "react/jsx-runtime";
16009
+ import { Fragment as Fragment11, jsx as jsx65 } from "react/jsx-runtime";
15955
16010
  var ActiveBadgeField = (props) => {
15956
16011
  const { t: t3 } = useI18n();
15957
16012
  const {
15958
16013
  type,
15959
16014
  className
15960
16015
  } = props;
15961
- if (type === void 0) return /* @__PURE__ */ jsx63(Fragment11, {});
16016
+ if (type === void 0) return /* @__PURE__ */ jsx65(Fragment11, {});
15962
16017
  const typeStyle = type ? "text-green-500" : "text-red-500";
15963
16018
  const text = type ? t3("active") : t3("in_active");
15964
- return /* @__PURE__ */ jsx63("div", { className: `${typeStyle} ${className}`, children: text });
16019
+ return /* @__PURE__ */ jsx65("div", { className: `${typeStyle} ${className}`, children: text });
15965
16020
  };
15966
16021
 
15967
16022
  // src/widgets/common/modal-layer.tsx
15968
16023
  import { Fragment as Fragment12 } from "react";
15969
16024
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
15970
- import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
16025
+ import { jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15971
16026
  var ModalLayer = ({
15972
16027
  isOpen,
15973
16028
  onClose,
15974
16029
  title,
15975
16030
  children
15976
16031
  }) => {
15977
- return /* @__PURE__ */ jsx64(
16032
+ return /* @__PURE__ */ jsx66(
15978
16033
  Transition,
15979
16034
  {
15980
16035
  show: isOpen,
@@ -15985,22 +16040,22 @@ var ModalLayer = ({
15985
16040
  leaveFrom: "transform scale-100 opacity-100",
15986
16041
  leaveTo: "transform scale-95 opacity-0",
15987
16042
  as: Fragment12,
15988
- 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: [
15989
- /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15990
- /* @__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: [
15991
- /* @__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(
15992
16047
  "div",
15993
16048
  {
15994
16049
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
15995
16050
  children: [
15996
- title && /* @__PURE__ */ jsx64("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
15997
- /* @__PURE__ */ jsx64(
16051
+ title && /* @__PURE__ */ jsx66("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
16052
+ /* @__PURE__ */ jsx66(
15998
16053
  "button",
15999
16054
  {
16000
16055
  onClick: onClose,
16001
16056
  "aria-label": "Close",
16002
16057
  className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
16003
- children: /* @__PURE__ */ jsx64(CloseIcon, {})
16058
+ children: /* @__PURE__ */ jsx66(CloseIcon, {})
16004
16059
  }
16005
16060
  )
16006
16061
  ]
@@ -16014,7 +16069,7 @@ var ModalLayer = ({
16014
16069
  };
16015
16070
 
16016
16071
  // src/widgets/common/modal-confirm.tsx
16017
- import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
16072
+ import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
16018
16073
  var ModalConfirm = ({
16019
16074
  name: name2,
16020
16075
  isShowModal,
@@ -16028,7 +16083,7 @@ var ModalConfirm = ({
16028
16083
  const renderButtonAction = (name3) => {
16029
16084
  switch (name3) {
16030
16085
  case "duplicate":
16031
- return /* @__PURE__ */ jsxs41(
16086
+ return /* @__PURE__ */ jsxs43(
16032
16087
  "button",
16033
16088
  {
16034
16089
  type: "button",
@@ -16036,13 +16091,13 @@ var ModalConfirm = ({
16036
16091
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16037
16092
  disabled: isLoading,
16038
16093
  children: [
16039
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16040
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16094
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16095
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
16041
16096
  ]
16042
16097
  }
16043
16098
  );
16044
16099
  case "archive":
16045
- return /* @__PURE__ */ jsxs41(
16100
+ return /* @__PURE__ */ jsxs43(
16046
16101
  "button",
16047
16102
  {
16048
16103
  type: "button",
@@ -16050,13 +16105,13 @@ var ModalConfirm = ({
16050
16105
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16051
16106
  disabled: isLoading,
16052
16107
  children: [
16053
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16054
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16108
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16109
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "archiving" : "save_archive") })
16055
16110
  ]
16056
16111
  }
16057
16112
  );
16058
16113
  case "unarchive":
16059
- return /* @__PURE__ */ jsxs41(
16114
+ return /* @__PURE__ */ jsxs43(
16060
16115
  "button",
16061
16116
  {
16062
16117
  type: "button",
@@ -16064,13 +16119,13 @@ var ModalConfirm = ({
16064
16119
  className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
16065
16120
  disabled: isLoading,
16066
16121
  children: [
16067
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16068
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16122
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16123
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
16069
16124
  ]
16070
16125
  }
16071
16126
  );
16072
16127
  case "delete":
16073
- return /* @__PURE__ */ jsxs41(
16128
+ return /* @__PURE__ */ jsxs43(
16074
16129
  "button",
16075
16130
  {
16076
16131
  type: "button",
@@ -16078,8 +16133,8 @@ var ModalConfirm = ({
16078
16133
  className: "button-primary flex-1 flex items-center justify-center gap-2",
16079
16134
  disabled: isLoading,
16080
16135
  children: [
16081
- isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
16082
- /* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16136
+ isLoading && /* @__PURE__ */ jsx67(LoadingIcon, {}),
16137
+ /* @__PURE__ */ jsx67("span", { children: t3(isLoading ? "deleting" : "delete_button") })
16083
16138
  ]
16084
16139
  }
16085
16140
  );
@@ -16087,13 +16142,13 @@ var ModalConfirm = ({
16087
16142
  break;
16088
16143
  }
16089
16144
  };
16090
- return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16091
- /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
16092
- /* @__PURE__ */ jsx65("div", { className: "text-[18px] font-bold", children: title }),
16093
- /* @__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 })
16094
16149
  ] }),
16095
- /* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16096
- /* @__PURE__ */ jsx65(
16150
+ /* @__PURE__ */ jsxs43("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16151
+ /* @__PURE__ */ jsx67(
16097
16152
  "button",
16098
16153
  {
16099
16154
  type: "button",
@@ -16109,8 +16164,8 @@ var ModalConfirm = ({
16109
16164
 
16110
16165
  // src/widgets/common/modal-detail.tsx
16111
16166
  import { useState as useState7 } from "react";
16112
- import { createPortal as createPortal2 } from "react-dom";
16113
- import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
16167
+ import { createPortal as createPortal3 } from "react-dom";
16168
+ import { Fragment as Fragment13, jsx as jsx68, jsxs as jsxs44 } from "react/jsx-runtime";
16114
16169
  var ModalDetail = ({
16115
16170
  idToolTip,
16116
16171
  title,
@@ -16132,19 +16187,19 @@ var ModalDetail = ({
16132
16187
  sessionStorage.setItem("actionData", JSON.stringify(actionData));
16133
16188
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
16134
16189
  };
16135
- return createPortal2(
16136
- /* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16137
- /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16138
- /* @__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: [
16139
- /* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16140
- /* @__PURE__ */ jsxs42(
16190
+ return createPortal3(
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(
16141
16196
  "div",
16142
16197
  {
16143
16198
  id: "modal-detail",
16144
16199
  className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
16145
16200
  children: [
16146
16201
  t3("detail_button"),
16147
- /* @__PURE__ */ jsx66(
16202
+ /* @__PURE__ */ jsx68(
16148
16203
  "button",
16149
16204
  {
16150
16205
  onClick: handleNavigateDetail,
@@ -16155,9 +16210,9 @@ var ModalDetail = ({
16155
16210
  ]
16156
16211
  }
16157
16212
  ),
16158
- /* @__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" }) })
16159
16214
  ] }),
16160
- /* @__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({
16161
16216
  id: idForm,
16162
16217
  aid,
16163
16218
  model,
@@ -16172,7 +16227,7 @@ var ModalDetail = ({
16172
16227
 
16173
16228
  // src/widgets/common/loading-normal.tsx
16174
16229
  import { useEffect as useEffect9, useState as useState8 } from "react";
16175
- import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
16230
+ import { jsx as jsx69, jsxs as jsxs45 } from "react/jsx-runtime";
16176
16231
  var LayerLoading = () => {
16177
16232
  const { t: t3 } = useI18n();
16178
16233
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -16182,21 +16237,21 @@ var LayerLoading = () => {
16182
16237
  }, 200);
16183
16238
  return () => clearInterval(interval);
16184
16239
  }, []);
16185
- 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: [
16186
- /* @__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(
16187
16242
  "div",
16188
16243
  {
16189
16244
  className: `loading-item ${index4 === activeIndex ? "active" : ""}`
16190
16245
  },
16191
16246
  index4
16192
16247
  )) }),
16193
- /* @__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") })
16194
16249
  ] }) }) });
16195
16250
  };
16196
16251
 
16197
16252
  // src/widgets/common/loading-small.tsx
16198
16253
  import { useEffect as useEffect10, useState as useState9 } from "react";
16199
- import { jsx as jsx68 } from "react/jsx-runtime";
16254
+ import { jsx as jsx70 } from "react/jsx-runtime";
16200
16255
  var LoadingSmall = () => {
16201
16256
  const [activeIndex, setActiveIndex] = useState9(0);
16202
16257
  useEffect10(() => {
@@ -16205,7 +16260,7 @@ var LoadingSmall = () => {
16205
16260
  }, 200);
16206
16261
  return () => clearInterval(interval);
16207
16262
  }, []);
16208
- 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(
16209
16264
  "div",
16210
16265
  {
16211
16266
  className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
@@ -16400,7 +16455,7 @@ var po = $2(K("zoom"));
16400
16455
  var uo = $2(K("flip"));
16401
16456
 
16402
16457
  // src/widgets/common/select-files.tsx
16403
- 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";
16404
16459
  var ButtonSelectFiles = ({
16405
16460
  fileInputRef,
16406
16461
  selectedFiles,
@@ -16425,7 +16480,8 @@ var ButtonSelectFiles = ({
16425
16480
  "application/zip",
16426
16481
  "application/x-zip-compressed",
16427
16482
  "application/vnd.ms-excel",
16428
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
16483
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
16484
+ "application/json"
16429
16485
  ];
16430
16486
  const MAX_FILE_SIZE = 10 * 1024 * 1024;
16431
16487
  const MAX_TOTAL_SIZE = 50 * 1024 * 1024;
@@ -16504,8 +16560,8 @@ var ButtonSelectFiles = ({
16504
16560
  await handleUpload(formData, serivce, xNode);
16505
16561
  }
16506
16562
  };
16507
- return /* @__PURE__ */ jsxs44(Fragment14, { children: [
16508
- 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(
16509
16565
  "button",
16510
16566
  {
16511
16567
  type: "button",
@@ -16513,12 +16569,12 @@ var ButtonSelectFiles = ({
16513
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"}`,
16514
16570
  onClick: () => fileInputRef.current.click(),
16515
16571
  children: [
16516
- /* @__PURE__ */ jsx69(AttachIcon, {}),
16517
- isText && /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16572
+ /* @__PURE__ */ jsx71(AttachIcon, {}),
16573
+ isText && /* @__PURE__ */ jsx71("span", { children: t3("upload_file_placeholder") })
16518
16574
  ]
16519
16575
  }
16520
16576
  ),
16521
- /* @__PURE__ */ jsx69(
16577
+ /* @__PURE__ */ jsx71(
16522
16578
  "input",
16523
16579
  {
16524
16580
  type: "file",
@@ -16526,7 +16582,7 @@ var ButtonSelectFiles = ({
16526
16582
  style: { display: "none" },
16527
16583
  onChange: handleOnChange,
16528
16584
  multiple: true,
16529
- accept: ".jpeg,.jpg,.png,.pdf,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
16585
+ accept: ".jpeg,.jpg,.png,.pdf,.json,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
16530
16586
  }
16531
16587
  )
16532
16588
  ] });
@@ -16534,7 +16590,7 @@ var ButtonSelectFiles = ({
16534
16590
 
16535
16591
  // src/widgets/common/video-player.tsx
16536
16592
  import { useRef as useRef6, useState as useState10 } from "react";
16537
- import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
16593
+ import { jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
16538
16594
  var VideoPlayer = ({ src }) => {
16539
16595
  const [isPlaying, setIsPlaying] = useState10(false);
16540
16596
  const videoRef = useRef6(null);
@@ -16561,8 +16617,8 @@ var VideoPlayer = ({ src }) => {
16561
16617
  }
16562
16618
  }
16563
16619
  };
16564
- 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: [
16565
- /* @__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(
16566
16622
  "video",
16567
16623
  {
16568
16624
  ref: videoRef,
@@ -16574,13 +16630,13 @@ var VideoPlayer = ({ src }) => {
16574
16630
  children: "Your browser does not support the video tag."
16575
16631
  }
16576
16632
  ),
16577
- /* @__PURE__ */ jsx70("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16578
- /* @__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, {}) }) })
16579
16635
  ] });
16580
16636
  };
16581
16637
 
16582
16638
  // src/widgets/basic/avatar-field/avatar.tsx
16583
- 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";
16584
16640
  var AvatarField = (props) => {
16585
16641
  const {
16586
16642
  isForm = false,
@@ -16604,8 +16660,8 @@ var AvatarField = (props) => {
16604
16660
  color: textColor,
16605
16661
  fontSize: `${size4 / 2.5}px`
16606
16662
  };
16607
- return /* @__PURE__ */ jsxs46(Fragment15, { children: [
16608
- isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16663
+ return /* @__PURE__ */ jsxs48(Fragment15, { children: [
16664
+ isForm && allowShowDetail && /* @__PURE__ */ jsx73(
16609
16665
  ModalDetail,
16610
16666
  {
16611
16667
  idToolTip: `avatar-widget-id-${id}`,
@@ -16616,7 +16672,7 @@ var AvatarField = (props) => {
16616
16672
  place: "top-start"
16617
16673
  }
16618
16674
  ),
16619
- allowShowDetail && /* @__PURE__ */ jsx71(
16675
+ allowShowDetail && /* @__PURE__ */ jsx73(
16620
16676
  M,
16621
16677
  {
16622
16678
  id: `avatar-widget-id-${id}`,
@@ -16625,7 +16681,7 @@ var AvatarField = (props) => {
16625
16681
  className: "z-20"
16626
16682
  }
16627
16683
  ),
16628
- avatarSrc ? /* @__PURE__ */ jsx71(
16684
+ avatarSrc ? /* @__PURE__ */ jsx73(
16629
16685
  "img",
16630
16686
  {
16631
16687
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16633,7 +16689,7 @@ var AvatarField = (props) => {
16633
16689
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16634
16690
  alt: "Avatar"
16635
16691
  }
16636
- ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16692
+ ) : /* @__PURE__ */ jsx73("div", { children: /* @__PURE__ */ jsx73(
16637
16693
  "div",
16638
16694
  {
16639
16695
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16646,7 +16702,8 @@ var AvatarField = (props) => {
16646
16702
  };
16647
16703
 
16648
16704
  // src/widgets/basic/binary-field/binary.tsx
16649
- 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";
16650
16707
  var BinaryField = (props) => {
16651
16708
  const {
16652
16709
  name: name2,
@@ -16655,21 +16712,114 @@ var BinaryField = (props) => {
16655
16712
  placeholder,
16656
16713
  required = false,
16657
16714
  invisible = false,
16658
- //hook return
16715
+ filename,
16716
+ formValues,
16717
+ isEditTable,
16718
+ widget,
16659
16719
  string,
16720
+ // from hook
16721
+ placeHolderImage,
16660
16722
  inputId,
16661
- selectedImage,
16662
- initialImage,
16663
- isInsideTable,
16723
+ initialFile,
16664
16724
  binaryRef,
16665
- handleImageChange,
16666
- handleRemoveImage,
16725
+ handleFileChange,
16726
+ handleRemoveFile,
16667
16727
  checkIsImageLink: checkIsImageLink2,
16668
- getImageBase64WithMimeType,
16669
- image
16728
+ onDownload
16670
16729
  } = props;
16671
16730
  const { t: t3 } = useI18n();
16672
- 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(
16673
16823
  Controller,
16674
16824
  {
16675
16825
  name: name2 ?? "",
@@ -16677,111 +16827,144 @@ var BinaryField = (props) => {
16677
16827
  rules: {
16678
16828
  required: required && !invisible ? { value: true, message: `${string} ${t3("must_required")}` } : false
16679
16829
  },
16680
- render: ({ field }) => {
16681
- const renderImage = initialImage || selectedImage;
16682
- return /* @__PURE__ */ jsx72(
16683
- "div",
16684
- {
16685
- ref: binaryRef,
16686
- className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16687
- children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
16688
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16689
- "img",
16690
- {
16691
- style: {
16692
- width: "128px",
16693
- height: "128px"
16694
- },
16695
- src: renderImage,
16696
- alt: "Selected",
16697
- className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16698
- }
16699
- ) : renderImage ? /* @__PURE__ */ jsx72(
16700
- "img",
16701
- {
16702
- style: {
16703
- width: "128px",
16704
- height: "128px"
16705
- },
16706
- src: getImageBase64WithMimeType(renderImage) ?? void 0,
16707
- alt: "Selected",
16708
- className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16709
- }
16710
- ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
16711
- !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16712
- "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",
16713
16840
  {
16714
- type: "button",
16715
- onClick: () => handleRemoveImage(field.onChange),
16716
- 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",
16717
- children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16718
- }
16719
- )
16720
- ] }) : /* @__PURE__ */ jsxs47(
16721
- "label",
16722
- {
16723
- htmlFor: inputId,
16724
- style: {
16725
- width: "128px",
16726
- height: "128px"
16727
- },
16728
- 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"}`,
16729
- children: [
16730
- /* @__PURE__ */ jsx72(
16731
- "input",
16732
- {
16733
- id: inputId,
16734
- type: "file",
16735
- readOnly: readonly,
16736
- placeholder,
16737
- required: !invisible && required,
16738
- onChange: (e3) => handleImageChange(e3, field.onChange),
16739
- className: "hidden z-10 relative"
16740
- }
16741
- ),
16742
- /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
16743
- /* @__PURE__ */ jsx72(
16841
+ className: `relative group ${onlyImage ? "shadow-md rounded-lg" : ""}`,
16842
+ children: /* @__PURE__ */ jsxs49(
16744
16843
  "div",
16745
16844
  {
16746
- className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
16747
- style: {
16748
- bottom: "-8px",
16749
- left: "-8px",
16750
- boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16751
- },
16752
- children: /* @__PURE__ */ jsx72(
16753
- "svg",
16754
- {
16755
- xmlns: "http://www.w3.org/2000/svg",
16756
- width: "14",
16757
- height: "14",
16758
- viewBox: "0 0 14 14",
16759
- fill: "none",
16760
- children: /* @__PURE__ */ jsx72(
16761
- "path",
16762
- {
16763
- "fill-rule": "evenodd",
16764
- "clip-rule": "evenodd",
16765
- 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",
16766
- fill: "black"
16767
- }
16768
- )
16769
- }
16770
- )
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
+ ]
16771
16890
  }
16772
16891
  )
16773
- ]
16774
- }
16775
- )
16776
- }
16777
- );
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
+ ] });
16778
16961
  }
16779
16962
  }
16780
16963
  );
16781
16964
  };
16782
16965
 
16783
16966
  // src/widgets/basic/button-badge-field/button-badge.tsx
16784
- import { jsx as jsx73 } from "react/jsx-runtime";
16967
+ import { jsx as jsx75 } from "react/jsx-runtime";
16785
16968
  var typeStyles = {
16786
16969
  primary: {
16787
16970
  backgroundColor: "#3b82f6",
@@ -16856,11 +17039,11 @@ var ButtonBadgeField = (props) => {
16856
17039
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16857
17040
  };
16858
17041
  const label = getLabel(defaultValue ?? value);
16859
- return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
17042
+ return label ? /* @__PURE__ */ jsx75("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16860
17043
  };
16861
17044
 
16862
17045
  // src/widgets/basic/button-field/button.tsx
16863
- 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";
16864
17047
  var ButtonField = (props) => {
16865
17048
  const {
16866
17049
  func,
@@ -16871,7 +17054,7 @@ var ButtonField = (props) => {
16871
17054
  type = "submit"
16872
17055
  } = props;
16873
17056
  const { t: t3 } = useI18n();
16874
- return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
17057
+ return /* @__PURE__ */ jsx76(Fragment17, { children: !loading ? /* @__PURE__ */ jsx76(
16875
17058
  "button",
16876
17059
  {
16877
17060
  type,
@@ -16880,7 +17063,7 @@ var ButtonField = (props) => {
16880
17063
  onClick: func,
16881
17064
  children: t3(content)
16882
17065
  }
16883
- ) : /* @__PURE__ */ jsxs48(
17066
+ ) : /* @__PURE__ */ jsxs50(
16884
17067
  "button",
16885
17068
  {
16886
17069
  type,
@@ -16889,15 +17072,15 @@ var ButtonField = (props) => {
16889
17072
  children: [
16890
17073
  t3("loading"),
16891
17074
  " ",
16892
- /* @__PURE__ */ jsx74(LoadingIcon, {})
17075
+ /* @__PURE__ */ jsx76(LoadingIcon, {})
16893
17076
  ]
16894
17077
  }
16895
17078
  ) });
16896
17079
  };
16897
17080
 
16898
17081
  // src/widgets/basic/char-field/char.tsx
16899
- import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
16900
- 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";
16901
17084
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16902
17085
  var CharField = (props) => {
16903
17086
  const {
@@ -16925,9 +17108,9 @@ var CharField = (props) => {
16925
17108
  } = props;
16926
17109
  if (!isForm && !isEditTable) {
16927
17110
  const propValue = value || defaultValue;
16928
- 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 });
16929
17112
  }
16930
- return /* @__PURE__ */ jsx75(
17113
+ return /* @__PURE__ */ jsx77(
16931
17114
  Controller,
16932
17115
  {
16933
17116
  name: name2 ?? "",
@@ -16955,12 +17138,12 @@ var CharField = (props) => {
16955
17138
  fieldState: { error: error2, isDirty }
16956
17139
  }) => {
16957
17140
  const { setError, clearErrors } = methods;
16958
- useEffect11(() => {
17141
+ useEffect12(() => {
16959
17142
  if (value2) {
16960
17143
  clearErrors(name2);
16961
17144
  }
16962
17145
  }, [value2, clearErrors, name2]);
16963
- useEffect11(() => {
17146
+ useEffect12(() => {
16964
17147
  if (widget !== WIDGET_AUTO_COMPUTE_DEPEND) return;
16965
17148
  const depValue = formValues?.[options2?.depend_field]?.[options2?.field_name];
16966
17149
  const currentValue = methods?.getValues(name2);
@@ -16981,8 +17164,8 @@ var CharField = (props) => {
16981
17164
  }
16982
17165
  return "";
16983
17166
  }, [widget, formValues]);
16984
- return /* @__PURE__ */ jsxs49(Fragment17, { children: [
16985
- /* @__PURE__ */ jsx75(
17167
+ return /* @__PURE__ */ jsxs51(Fragment18, { children: [
17168
+ /* @__PURE__ */ jsx77(
16986
17169
  "input",
16987
17170
  {
16988
17171
  value: displayValue ?? "",
@@ -17043,7 +17226,7 @@ var CharField = (props) => {
17043
17226
  `
17044
17227
  }
17045
17228
  ),
17046
- 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 }) })
17047
17230
  ] });
17048
17231
  }
17049
17232
  }
@@ -17051,7 +17234,7 @@ var CharField = (props) => {
17051
17234
  };
17052
17235
 
17053
17236
  // src/widgets/basic/checkbox-field/checkbox.tsx
17054
- import { jsx as jsx76 } from "react/jsx-runtime";
17237
+ import { jsx as jsx78 } from "react/jsx-runtime";
17055
17238
  var CheckboxField = (props) => {
17056
17239
  const {
17057
17240
  name: name2,
@@ -17066,9 +17249,9 @@ var CheckboxField = (props) => {
17066
17249
  } = props;
17067
17250
  if (!isForm) {
17068
17251
  if (name2 === "is_active" || name2 === "active") {
17069
- return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
17252
+ return /* @__PURE__ */ jsx78(ActiveBadgeField, { type: value });
17070
17253
  } else {
17071
- return /* @__PURE__ */ jsx76(
17254
+ return /* @__PURE__ */ jsx78(
17072
17255
  "input",
17073
17256
  {
17074
17257
  type: "checkbox",
@@ -17079,12 +17262,12 @@ var CheckboxField = (props) => {
17079
17262
  );
17080
17263
  }
17081
17264
  }
17082
- return /* @__PURE__ */ jsx76(
17265
+ return /* @__PURE__ */ jsx78(
17083
17266
  Controller,
17084
17267
  {
17085
17268
  name: name2 ?? "",
17086
17269
  control: methods?.control,
17087
- render: ({ field }) => /* @__PURE__ */ jsx76(
17270
+ render: ({ field }) => /* @__PURE__ */ jsx78(
17088
17271
  "div",
17089
17272
  {
17090
17273
  className: "flex items-center gap-2",
@@ -17097,7 +17280,7 @@ var CheckboxField = (props) => {
17097
17280
  onChange2(name2 ?? "", checked);
17098
17281
  }
17099
17282
  },
17100
- children: /* @__PURE__ */ jsx76(
17283
+ children: /* @__PURE__ */ jsx78(
17101
17284
  "input",
17102
17285
  {
17103
17286
  ...field,
@@ -17124,24 +17307,24 @@ var CheckboxField = (props) => {
17124
17307
  };
17125
17308
 
17126
17309
  // src/widgets/basic/color-field/color-wrapper.tsx
17127
- import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
17128
- 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";
17129
17312
  var ColorWrapper = (props) => {
17130
17313
  const {
17131
17314
  colors: colors2,
17132
17315
  defaultColor,
17133
17316
  savePickColor
17134
17317
  } = props;
17135
- const [selectedColor, setSelectedColor] = useState11(colors2[defaultColor]);
17136
- const [showFullColors, setIsShowFullColor] = useState11(false);
17318
+ const [selectedColor, setSelectedColor] = useState12(colors2[defaultColor]);
17319
+ const [showFullColors, setIsShowFullColor] = useState12(false);
17137
17320
  const pickColorsRef = useRef7(null);
17138
- useEffect12(() => {
17321
+ useEffect13(() => {
17139
17322
  setSelectedColor(colors2[defaultColor]);
17140
17323
  }, [defaultColor]);
17141
17324
  const handleShowFullColors = () => {
17142
17325
  setIsShowFullColor(!showFullColors);
17143
17326
  };
17144
- useEffect12(() => {
17327
+ useEffect13(() => {
17145
17328
  const handleClickOutside = (event) => {
17146
17329
  if (pickColorsRef.current && !pickColorsRef.current.contains(event.target)) {
17147
17330
  setIsShowFullColor(false);
@@ -17152,8 +17335,8 @@ var ColorWrapper = (props) => {
17152
17335
  document.removeEventListener("mousedown", handleClickOutside);
17153
17336
  };
17154
17337
  }, []);
17155
- return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17156
- /* @__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(
17157
17340
  "button",
17158
17341
  {
17159
17342
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17167,7 +17350,7 @@ var ColorWrapper = (props) => {
17167
17350
  }
17168
17351
  }
17169
17352
  ),
17170
- /* @__PURE__ */ jsx77(
17353
+ /* @__PURE__ */ jsx79(
17171
17354
  M,
17172
17355
  {
17173
17356
  className: "",
@@ -17176,8 +17359,8 @@ var ColorWrapper = (props) => {
17176
17359
  content: i18n_default.t(color?.name)
17177
17360
  }
17178
17361
  )
17179
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment18, { children: [
17180
- /* @__PURE__ */ jsx77(
17362
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment19, { children: [
17363
+ /* @__PURE__ */ jsx79(
17181
17364
  "button",
17182
17365
  {
17183
17366
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17190,7 +17373,7 @@ var ColorWrapper = (props) => {
17190
17373
  style: { backgroundColor: selectedColor?.color }
17191
17374
  }
17192
17375
  ),
17193
- /* @__PURE__ */ jsx77(
17376
+ /* @__PURE__ */ jsx79(
17194
17377
  M,
17195
17378
  {
17196
17379
  place: "top",
@@ -17202,13 +17385,13 @@ var ColorWrapper = (props) => {
17202
17385
  };
17203
17386
 
17204
17387
  // src/widgets/basic/color-field/color.tsx
17205
- import { jsx as jsx78 } from "react/jsx-runtime";
17388
+ import { jsx as jsx80 } from "react/jsx-runtime";
17206
17389
  var ColorField = (props) => {
17207
17390
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17208
17391
  if (!isForm) {
17209
- return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17392
+ return /* @__PURE__ */ jsx80(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17210
17393
  }
17211
- return /* @__PURE__ */ jsx78(
17394
+ return /* @__PURE__ */ jsx80(
17212
17395
  Controller,
17213
17396
  {
17214
17397
  name: name2 ?? "",
@@ -17218,7 +17401,7 @@ var ColorField = (props) => {
17218
17401
  field.onChange(color?.id);
17219
17402
  onChange2 && onChange2(name2 ?? "", color?.id);
17220
17403
  };
17221
- return /* @__PURE__ */ jsx78(
17404
+ return /* @__PURE__ */ jsx80(
17222
17405
  ColorWrapper,
17223
17406
  {
17224
17407
  savePickColor: handlePickColorChange,
@@ -17232,8 +17415,8 @@ var ColorField = (props) => {
17232
17415
  };
17233
17416
 
17234
17417
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17235
- import { useEffect as useEffect13 } from "react";
17236
- 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";
17237
17420
  var CopyLinkButtonField = (props) => {
17238
17421
  const {
17239
17422
  isForm,
@@ -17252,9 +17435,9 @@ var CopyLinkButtonField = (props) => {
17252
17435
  } = props;
17253
17436
  const { t: t3 } = useI18n();
17254
17437
  if (!isForm) {
17255
- 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 });
17256
17439
  }
17257
- return /* @__PURE__ */ jsx79(
17440
+ return /* @__PURE__ */ jsx81(
17258
17441
  Controller,
17259
17442
  {
17260
17443
  name: name2 ?? "",
@@ -17267,13 +17450,13 @@ var CopyLinkButtonField = (props) => {
17267
17450
  fieldState: { error: error2 }
17268
17451
  }) => {
17269
17452
  const { setError, clearErrors } = methods;
17270
- useEffect13(() => {
17453
+ useEffect14(() => {
17271
17454
  if (value) {
17272
17455
  clearErrors(name2);
17273
17456
  }
17274
17457
  }, [value]);
17275
- return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17276
- /* @__PURE__ */ jsxs51(
17458
+ return /* @__PURE__ */ jsxs53("div", { className: "relative", children: [
17459
+ /* @__PURE__ */ jsxs53(
17277
17460
  "div",
17278
17461
  {
17279
17462
  "aria-disabled": readonly,
@@ -17282,7 +17465,7 @@ var CopyLinkButtonField = (props) => {
17282
17465
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17283
17466
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17284
17467
  children: [
17285
- /* @__PURE__ */ jsx79(
17468
+ /* @__PURE__ */ jsx81(
17286
17469
  "input",
17287
17470
  {
17288
17471
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17323,19 +17506,19 @@ var CopyLinkButtonField = (props) => {
17323
17506
  `
17324
17507
  }
17325
17508
  ),
17326
- readonly && value && /* @__PURE__ */ jsx79(
17509
+ readonly && value && /* @__PURE__ */ jsx81(
17327
17510
  "button",
17328
17511
  {
17329
17512
  className: "cursor-pointer",
17330
17513
  type: "button",
17331
17514
  onClick: () => handleCopyToClipboard(propValue),
17332
- children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17515
+ children: isCopied ? /* @__PURE__ */ jsx81(CheckIcon, {}) : /* @__PURE__ */ jsx81(CopyIcon, {})
17333
17516
  }
17334
17517
  )
17335
17518
  ]
17336
17519
  }
17337
17520
  ),
17338
- 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 })
17339
17522
  ] });
17340
17523
  }
17341
17524
  }
@@ -17343,10 +17526,10 @@ var CopyLinkButtonField = (props) => {
17343
17526
  };
17344
17527
 
17345
17528
  // src/widgets/basic/date-field/date.tsx
17346
- import { forwardRef as forwardRef6, useEffect as useEffect17 } from "react";
17529
+ import { forwardRef as forwardRef6, useEffect as useEffect18 } from "react";
17347
17530
 
17348
17531
  // node_modules/react-datepicker/dist/index.es.js
17349
- 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";
17350
17533
 
17351
17534
  // node_modules/date-fns/constants.js
17352
17535
  var daysInYear = 365.2425;
@@ -21276,7 +21459,7 @@ function useEffectEvent(callback) {
21276
21459
  }
21277
21460
 
21278
21461
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21279
- 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";
21280
21463
  import * as ReactDOM2 from "react-dom";
21281
21464
 
21282
21465
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21674,7 +21857,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21674
21857
  bottom: isCustomShape ? "" : "rotate(180deg)",
21675
21858
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21676
21859
  }[side];
21677
- return /* @__PURE__ */ jsxs52("svg", {
21860
+ return /* @__PURE__ */ jsxs54("svg", {
21678
21861
  ...rest,
21679
21862
  "aria-hidden": true,
21680
21863
  ref,
@@ -21690,18 +21873,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21690
21873
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21691
21874
  ...restStyle
21692
21875
  },
21693
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21876
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx82("path", {
21694
21877
  clipPath: "url(#" + clipPathId + ")",
21695
21878
  fill: "none",
21696
21879
  stroke,
21697
21880
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21698
21881
  d: dValue
21699
- }), /* @__PURE__ */ jsx80("path", {
21882
+ }), /* @__PURE__ */ jsx82("path", {
21700
21883
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21701
21884
  d: dValue
21702
- }), /* @__PURE__ */ jsx80("clipPath", {
21885
+ }), /* @__PURE__ */ jsx82("clipPath", {
21703
21886
  id: clipPathId,
21704
- children: /* @__PURE__ */ jsx80("rect", {
21887
+ children: /* @__PURE__ */ jsx82("rect", {
21705
21888
  x: -halfStrokeWidth,
21706
21889
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21707
21890
  width: width + computedStrokeWidth,
@@ -21930,7 +22113,7 @@ var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21930
22113
  }
21931
22114
  }
21932
22115
  }, [ignoreClass]);
21933
- useEffect15(function() {
22116
+ useEffect16(function() {
21934
22117
  document.addEventListener("mousedown", handleClickOutside);
21935
22118
  return function() {
21936
22119
  document.removeEventListener("mousedown", handleClickOutside);
@@ -26183,13 +26366,13 @@ function _objectWithoutProperties(e3, t3) {
26183
26366
  }
26184
26367
 
26185
26368
  // node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
26186
- import { useState as useState14, useCallback as useCallback6 } from "react";
26369
+ import { useState as useState15, useCallback as useCallback6 } from "react";
26187
26370
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
26188
26371
  function useStateManager(_ref3) {
26189
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);
26190
- var _useState = useState14(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
26191
- var _useState3 = useState14(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
26192
- 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];
26193
26376
  var onChange2 = useCallback6(function(value2, actionMeta) {
26194
26377
  if (typeof propsOnChange === "function") {
26195
26378
  propsOnChange(value2, actionMeta);
@@ -26350,7 +26533,7 @@ function _toConsumableArray(r4) {
26350
26533
 
26351
26534
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
26352
26535
  import * as React13 from "react";
26353
- 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";
26354
26537
 
26355
26538
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
26356
26539
  import * as React11 from "react";
@@ -27634,7 +27817,7 @@ var Emotion$1 = Emotion;
27634
27817
  import * as React12 from "react";
27635
27818
  var import_extends2 = __toESM(require_extends());
27636
27819
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27637
- var jsx81 = function jsx82(type, props) {
27820
+ var jsx83 = function jsx84(type, props) {
27638
27821
  var args = arguments;
27639
27822
  if (props == null || !hasOwn.call(props, "css")) {
27640
27823
  return React12.createElement.apply(void 0, args);
@@ -27652,7 +27835,7 @@ var jsx81 = function jsx82(type, props) {
27652
27835
  var JSX;
27653
27836
  /* @__PURE__ */ (function(_JSX) {
27654
27837
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27655
- })(jsx81 || (jsx81 = {}));
27838
+ })(jsx83 || (jsx83 = {}));
27656
27839
  function css() {
27657
27840
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27658
27841
  args[_key] = arguments[_key];
@@ -27682,8 +27865,8 @@ function _taggedTemplateLiteral(e3, t3) {
27682
27865
  }
27683
27866
 
27684
27867
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27685
- import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27686
- import { createPortal as createPortal4 } from "react-dom";
27868
+ import { useContext as useContext9, useRef as useRef13, useState as useState16, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27869
+ import { createPortal as createPortal5 } from "react-dom";
27687
27870
 
27688
27871
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
27689
27872
  import { useLayoutEffect as useLayoutEffect4 } from "react";
@@ -28029,8 +28212,8 @@ var MenuPlacer = function MenuPlacer2(props) {
28029
28212
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
28030
28213
  var _ref3 = useContext9(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
28031
28214
  var ref = useRef13(null);
28032
- var _useState = useState15(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
28033
- 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];
28034
28217
  var controlHeight2 = theme.spacing.controlHeight;
28035
28218
  index3(function() {
28036
28219
  var menuEl = ref.current;
@@ -28060,7 +28243,7 @@ var MenuPlacer = function MenuPlacer2(props) {
28060
28243
  };
28061
28244
  var Menu = function Menu2(props) {
28062
28245
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
28063
- return jsx81("div", _extends({}, getStyleProps(props, "menu", {
28246
+ return jsx83("div", _extends({}, getStyleProps(props, "menu", {
28064
28247
  menu: true
28065
28248
  }), {
28066
28249
  ref: innerRef
@@ -28082,7 +28265,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
28082
28265
  };
28083
28266
  var MenuList = function MenuList2(props) {
28084
28267
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
28085
- return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
28268
+ return jsx83("div", _extends({}, getStyleProps(props, "menuList", {
28086
28269
  "menu-list": true,
28087
28270
  "menu-list--is-multi": isMulti
28088
28271
  }), {
@@ -28102,7 +28285,7 @@ var noOptionsMessageCSS = noticeCSS;
28102
28285
  var loadingMessageCSS = noticeCSS;
28103
28286
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28104
28287
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
28105
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28288
+ return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28106
28289
  children,
28107
28290
  innerProps
28108
28291
  }), "noOptionsMessage", {
@@ -28112,7 +28295,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
28112
28295
  };
28113
28296
  var LoadingMessage = function LoadingMessage2(_ref7) {
28114
28297
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
28115
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28298
+ return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28116
28299
  children,
28117
28300
  innerProps
28118
28301
  }), "loadingMessage", {
@@ -28134,13 +28317,13 @@ var MenuPortal = function MenuPortal2(props) {
28134
28317
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
28135
28318
  var menuPortalRef = useRef13(null);
28136
28319
  var cleanupRef = useRef13(null);
28137
- 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];
28138
28321
  var portalPlacementContext = useMemo7(function() {
28139
28322
  return {
28140
28323
  setPortalPlacement
28141
28324
  };
28142
28325
  }, []);
28143
- 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];
28144
28327
  var updateComputedPosition = useCallback7(function() {
28145
28328
  if (!controlElement) return;
28146
28329
  var rect = getBoundingClientObj(controlElement);
@@ -28175,7 +28358,7 @@ var MenuPortal = function MenuPortal2(props) {
28175
28358
  runAutoUpdate();
28176
28359
  }, [runAutoUpdate]);
28177
28360
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28178
- var menuWrapper = jsx81("div", _extends({
28361
+ var menuWrapper = jsx83("div", _extends({
28179
28362
  ref: setMenuPortalElement
28180
28363
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28181
28364
  offset: computedPosition.offset,
@@ -28184,9 +28367,9 @@ var MenuPortal = function MenuPortal2(props) {
28184
28367
  }), "menuPortal", {
28185
28368
  "menu-portal": true
28186
28369
  }), innerProps), children);
28187
- return jsx81(PortalPlacementContext.Provider, {
28370
+ return jsx83(PortalPlacementContext.Provider, {
28188
28371
  value: portalPlacementContext
28189
- }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28372
+ }, appendTo ? /* @__PURE__ */ createPortal5(menuWrapper, appendTo) : menuWrapper);
28190
28373
  };
28191
28374
  var containerCSS = function containerCSS2(_ref3) {
28192
28375
  var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
@@ -28200,7 +28383,7 @@ var containerCSS = function containerCSS2(_ref3) {
28200
28383
  };
28201
28384
  var SelectContainer = function SelectContainer2(props) {
28202
28385
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28203
- return jsx81("div", _extends({}, getStyleProps(props, "container", {
28386
+ return jsx83("div", _extends({}, getStyleProps(props, "container", {
28204
28387
  "--is-disabled": isDisabled,
28205
28388
  "--is-rtl": isRtl
28206
28389
  }), innerProps), children);
@@ -28221,7 +28404,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28221
28404
  };
28222
28405
  var ValueContainer = function ValueContainer2(props) {
28223
28406
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28224
- return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28407
+ return jsx83("div", _extends({}, getStyleProps(props, "valueContainer", {
28225
28408
  "value-container": true,
28226
28409
  "value-container--is-multi": isMulti,
28227
28410
  "value-container--has-value": hasValue
@@ -28237,7 +28420,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28237
28420
  };
28238
28421
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28239
28422
  var children = props.children, innerProps = props.innerProps;
28240
- return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28423
+ return jsx83("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28241
28424
  indicators: true
28242
28425
  }), innerProps), children);
28243
28426
  };
@@ -28258,7 +28441,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28258
28441
  };
28259
28442
  var Svg = function Svg2(_ref3) {
28260
28443
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28261
- return jsx81("svg", _extends({
28444
+ return jsx83("svg", _extends({
28262
28445
  height: size4,
28263
28446
  width: size4,
28264
28447
  viewBox: "0 0 20 20",
@@ -28268,16 +28451,16 @@ var Svg = function Svg2(_ref3) {
28268
28451
  }, props));
28269
28452
  };
28270
28453
  var CrossIcon = function CrossIcon2(props) {
28271
- return jsx81(Svg, _extends({
28454
+ return jsx83(Svg, _extends({
28272
28455
  size: 20
28273
- }, props), jsx81("path", {
28456
+ }, props), jsx83("path", {
28274
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"
28275
28458
  }));
28276
28459
  };
28277
28460
  var DownChevron = function DownChevron2(props) {
28278
- return jsx81(Svg, _extends({
28461
+ return jsx83(Svg, _extends({
28279
28462
  size: 20
28280
- }, props), jsx81("path", {
28463
+ }, props), jsx83("path", {
28281
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"
28282
28465
  }));
28283
28466
  };
@@ -28298,18 +28481,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28298
28481
  var dropdownIndicatorCSS = baseCSS;
28299
28482
  var DropdownIndicator = function DropdownIndicator2(props) {
28300
28483
  var children = props.children, innerProps = props.innerProps;
28301
- return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28484
+ return jsx83("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28302
28485
  indicator: true,
28303
28486
  "dropdown-indicator": true
28304
- }), innerProps), children || jsx81(DownChevron, null));
28487
+ }), innerProps), children || jsx83(DownChevron, null));
28305
28488
  };
28306
28489
  var clearIndicatorCSS = baseCSS;
28307
28490
  var ClearIndicator = function ClearIndicator2(props) {
28308
28491
  var children = props.children, innerProps = props.innerProps;
28309
- return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28492
+ return jsx83("div", _extends({}, getStyleProps(props, "clearIndicator", {
28310
28493
  indicator: true,
28311
28494
  "clear-indicator": true
28312
- }), innerProps), children || jsx81(CrossIcon, null));
28495
+ }), innerProps), children || jsx83(CrossIcon, null));
28313
28496
  };
28314
28497
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28315
28498
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28325,7 +28508,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28325
28508
  };
28326
28509
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28327
28510
  var innerProps = props.innerProps;
28328
- return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28511
+ return jsx83("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28329
28512
  "indicator-separator": true
28330
28513
  })));
28331
28514
  };
@@ -28349,7 +28532,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28349
28532
  };
28350
28533
  var LoadingDot = function LoadingDot2(_ref6) {
28351
28534
  var delay = _ref6.delay, offset4 = _ref6.offset;
28352
- return jsx81("span", {
28535
+ return jsx83("span", {
28353
28536
  css: /* @__PURE__ */ css({
28354
28537
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28355
28538
  backgroundColor: "currentColor",
@@ -28364,20 +28547,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28364
28547
  };
28365
28548
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28366
28549
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28367
- return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28550
+ return jsx83("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28368
28551
  innerProps,
28369
28552
  isRtl,
28370
28553
  size: size4
28371
28554
  }), "loadingIndicator", {
28372
28555
  indicator: true,
28373
28556
  "loading-indicator": true
28374
- }), innerProps), jsx81(LoadingDot, {
28557
+ }), innerProps), jsx83(LoadingDot, {
28375
28558
  delay: 0,
28376
28559
  offset: isRtl
28377
- }), jsx81(LoadingDot, {
28560
+ }), jsx83(LoadingDot, {
28378
28561
  delay: 160,
28379
28562
  offset: true
28380
- }), jsx81(LoadingDot, {
28563
+ }), jsx83(LoadingDot, {
28381
28564
  delay: 320,
28382
28565
  offset: !isRtl
28383
28566
  }));
@@ -28409,7 +28592,7 @@ var css$1 = function css2(_ref3, unstyled) {
28409
28592
  };
28410
28593
  var Control = function Control2(props) {
28411
28594
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28412
- return jsx81("div", _extends({
28595
+ return jsx83("div", _extends({
28413
28596
  ref: innerRef
28414
28597
  }, getStyleProps(props, "control", {
28415
28598
  control: true,
@@ -28431,15 +28614,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28431
28614
  };
28432
28615
  var Group = function Group2(props) {
28433
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;
28434
- return jsx81("div", _extends({}, getStyleProps(props, "group", {
28617
+ return jsx83("div", _extends({}, getStyleProps(props, "group", {
28435
28618
  group: true
28436
- }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28619
+ }), innerProps), jsx83(Heading, _extends({}, headingProps, {
28437
28620
  selectProps,
28438
28621
  theme,
28439
28622
  getStyles,
28440
28623
  getClassNames,
28441
28624
  cx
28442
- }), label), jsx81("div", null, children));
28625
+ }), label), jsx83("div", null, children));
28443
28626
  };
28444
28627
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28445
28628
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28461,7 +28644,7 @@ var GroupHeading = function GroupHeading2(props) {
28461
28644
  var _cleanCommonProps = cleanCommonProps(props);
28462
28645
  _cleanCommonProps.data;
28463
28646
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28464
- return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28647
+ return jsx83("div", _extends({}, getStyleProps(props, "groupHeading", {
28465
28648
  "group-heading": true
28466
28649
  }), innerProps));
28467
28650
  };
@@ -28513,11 +28696,11 @@ var inputStyle = function inputStyle2(isHidden) {
28513
28696
  var Input = function Input2(props) {
28514
28697
  var cx = props.cx, value = props.value;
28515
28698
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28516
- return jsx81("div", _extends({}, getStyleProps(props, "input", {
28699
+ return jsx83("div", _extends({}, getStyleProps(props, "input", {
28517
28700
  "input-container": true
28518
28701
  }), {
28519
28702
  "data-value": value || ""
28520
- }), jsx81("input", _extends({
28703
+ }), jsx83("input", _extends({
28521
28704
  className: cx({
28522
28705
  input: true
28523
28706
  }, inputClassName),
@@ -28571,35 +28754,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28571
28754
  };
28572
28755
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28573
28756
  var children = _ref4.children, innerProps = _ref4.innerProps;
28574
- return jsx81("div", innerProps, children);
28757
+ return jsx83("div", innerProps, children);
28575
28758
  };
28576
28759
  var MultiValueContainer = MultiValueGeneric;
28577
28760
  var MultiValueLabel = MultiValueGeneric;
28578
28761
  function MultiValueRemove(_ref5) {
28579
28762
  var children = _ref5.children, innerProps = _ref5.innerProps;
28580
- return jsx81("div", _extends({
28763
+ return jsx83("div", _extends({
28581
28764
  role: "button"
28582
- }, innerProps), children || jsx81(CrossIcon, {
28765
+ }, innerProps), children || jsx83(CrossIcon, {
28583
28766
  size: 14
28584
28767
  }));
28585
28768
  }
28586
28769
  var MultiValue = function MultiValue2(props) {
28587
28770
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28588
28771
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28589
- return jsx81(Container, {
28772
+ return jsx83(Container, {
28590
28773
  data,
28591
28774
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28592
28775
  "multi-value": true,
28593
28776
  "multi-value--is-disabled": isDisabled
28594
28777
  })), innerProps),
28595
28778
  selectProps
28596
- }, jsx81(Label, {
28779
+ }, jsx83(Label, {
28597
28780
  data,
28598
28781
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28599
28782
  "multi-value__label": true
28600
28783
  })),
28601
28784
  selectProps
28602
- }, children), jsx81(Remove, {
28785
+ }, children), jsx83(Remove, {
28603
28786
  data,
28604
28787
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28605
28788
  "multi-value__remove": true
@@ -28632,7 +28815,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28632
28815
  };
28633
28816
  var Option = function Option2(props) {
28634
28817
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28635
- return jsx81("div", _extends({}, getStyleProps(props, "option", {
28818
+ return jsx83("div", _extends({}, getStyleProps(props, "option", {
28636
28819
  option: true,
28637
28820
  "option--is-disabled": isDisabled,
28638
28821
  "option--is-focused": isFocused,
@@ -28656,7 +28839,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28656
28839
  };
28657
28840
  var Placeholder = function Placeholder2(props) {
28658
28841
  var children = props.children, innerProps = props.innerProps;
28659
- return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28842
+ return jsx83("div", _extends({}, getStyleProps(props, "placeholder", {
28660
28843
  placeholder: true
28661
28844
  }), innerProps), children);
28662
28845
  };
@@ -28678,7 +28861,7 @@ var css3 = function css4(_ref3, unstyled) {
28678
28861
  };
28679
28862
  var SingleValue = function SingleValue2(props) {
28680
28863
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28681
- return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28864
+ return jsx83("div", _extends({}, getStyleProps(props, "singleValue", {
28682
28865
  "single-value": true,
28683
28866
  "single-value--is-disabled": isDisabled
28684
28867
  }), innerProps), children);
@@ -28780,7 +28963,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28780
28963
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28781
28964
  };
28782
28965
  var A11yText = function A11yText2(props) {
28783
- return jsx81("span", _extends({
28966
+ return jsx83("span", _extends({
28784
28967
  css: _ref
28785
28968
  }, props));
28786
28969
  };
@@ -28915,18 +29098,18 @@ var LiveRegion = function LiveRegion2(props) {
28915
29098
  }
28916
29099
  return guidanceMsg;
28917
29100
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28918
- var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
29101
+ var ScreenReaderText = jsx83(Fragment23, null, jsx83("span", {
28919
29102
  id: "aria-selection"
28920
- }, ariaSelected), jsx81("span", {
29103
+ }, ariaSelected), jsx83("span", {
28921
29104
  id: "aria-focused"
28922
- }, ariaFocused), jsx81("span", {
29105
+ }, ariaFocused), jsx83("span", {
28923
29106
  id: "aria-results"
28924
- }, ariaResults), jsx81("span", {
29107
+ }, ariaResults), jsx83("span", {
28925
29108
  id: "aria-guidance"
28926
29109
  }, ariaGuidance));
28927
- return jsx81(Fragment22, null, jsx81(A11yText$1, {
29110
+ return jsx83(Fragment23, null, jsx83(A11yText$1, {
28928
29111
  id
28929
- }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
29112
+ }, isInitialFocus && ScreenReaderText), jsx83(A11yText$1, {
28930
29113
  "aria-live": ariaLive,
28931
29114
  "aria-atomic": "false",
28932
29115
  "aria-relevant": "additions text",
@@ -29239,7 +29422,7 @@ var _excluded4 = ["innerRef"];
29239
29422
  function DummyInput(_ref3) {
29240
29423
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29241
29424
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29242
- return jsx81("input", _extends({
29425
+ return jsx83("input", _extends({
29243
29426
  ref: innerRef
29244
29427
  }, filteredProps, {
29245
29428
  css: /* @__PURE__ */ css({
@@ -29334,7 +29517,7 @@ function useScrollCapture(_ref3) {
29334
29517
  el.removeEventListener("touchstart", onTouchStart, false);
29335
29518
  el.removeEventListener("touchmove", onTouchMove, false);
29336
29519
  }, [onTouchMove, onTouchStart, onWheel]);
29337
- useEffect16(function() {
29520
+ useEffect17(function() {
29338
29521
  if (!isEnabled) return;
29339
29522
  var element = scrollTarget.current;
29340
29523
  startListening(element);
@@ -29437,7 +29620,7 @@ function useScrollLock(_ref3) {
29437
29620
  }
29438
29621
  }
29439
29622
  }, [accountForScrollbars]);
29440
- useEffect16(function() {
29623
+ useEffect17(function() {
29441
29624
  if (!isEnabled) return;
29442
29625
  var element = scrollTarget.current;
29443
29626
  addScrollLock(element);
@@ -29481,7 +29664,7 @@ function ScrollManager(_ref3) {
29481
29664
  setScrollCaptureTarget(element);
29482
29665
  setScrollLockTarget(element);
29483
29666
  };
29484
- return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29667
+ return jsx83(Fragment23, null, lockEnabled && jsx83("div", {
29485
29668
  onClick: blurSelectInput,
29486
29669
  css: _ref2$1
29487
29670
  }), children(targetRef));
@@ -29500,7 +29683,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29500
29683
  };
29501
29684
  var RequiredInput = function RequiredInput2(_ref3) {
29502
29685
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29503
- return jsx81("input", {
29686
+ return jsx83("input", {
29504
29687
  required: true,
29505
29688
  name: name2,
29506
29689
  tabIndex: -1,
@@ -31090,7 +31273,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31090
31273
 
31091
31274
  // src/widgets/basic/date-field/date.tsx
31092
31275
  var import_moment2 = __toESM(require_moment());
31093
- 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";
31094
31277
  var DateField = (props) => {
31095
31278
  const {
31096
31279
  name: name2,
@@ -31118,8 +31301,8 @@ var DateField = (props) => {
31118
31301
  } = props;
31119
31302
  const { t: t3 } = useI18n();
31120
31303
  const InputDateCustom = forwardRef6(
31121
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
31122
- /* @__PURE__ */ jsx83(
31304
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs55("label", { className: `flex ${className}`, children: [
31305
+ /* @__PURE__ */ jsx85(
31123
31306
  "input",
31124
31307
  {
31125
31308
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -31133,13 +31316,13 @@ var DateField = (props) => {
31133
31316
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
31134
31317
  }
31135
31318
  ),
31136
- isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
31319
+ isForm2 && /* @__PURE__ */ jsx85(CalendarIcon, {})
31137
31320
  ] })
31138
31321
  );
31139
31322
  if (!isForm && !isEditTable) {
31140
- 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) : "" });
31141
31324
  } else {
31142
- return /* @__PURE__ */ jsx83(
31325
+ return /* @__PURE__ */ jsx85(
31143
31326
  Controller,
31144
31327
  {
31145
31328
  name: name2 || "",
@@ -31155,14 +31338,14 @@ var DateField = (props) => {
31155
31338
  },
31156
31339
  render: ({ field, fieldState: { error: error2 } }) => {
31157
31340
  const { setError, clearErrors } = methods;
31158
- useEffect17(() => {
31341
+ useEffect18(() => {
31159
31342
  if (value) {
31160
31343
  clearErrors(name2);
31161
31344
  }
31162
31345
  }, [value, clearErrors, name2]);
31163
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;
31164
- return /* @__PURE__ */ jsxs53(Fragment23, { children: [
31165
- /* @__PURE__ */ jsx83(
31347
+ return /* @__PURE__ */ jsxs55(Fragment24, { children: [
31348
+ /* @__PURE__ */ jsx85(
31166
31349
  DatePicker,
31167
31350
  {
31168
31351
  selected: selectedDate,
@@ -31210,7 +31393,7 @@ var DateField = (props) => {
31210
31393
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31211
31394
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31212
31395
  showTimeInput: showTime,
31213
- customInput: /* @__PURE__ */ jsx83(
31396
+ customInput: /* @__PURE__ */ jsx85(
31214
31397
  InputDateCustom,
31215
31398
  {
31216
31399
  isForm,
@@ -31228,7 +31411,7 @@ var DateField = (props) => {
31228
31411
  increaseMonth,
31229
31412
  prevMonthButtonDisabled,
31230
31413
  nextMonthButtonDisabled
31231
- }) => /* @__PURE__ */ jsxs53(
31414
+ }) => /* @__PURE__ */ jsxs55(
31232
31415
  "div",
31233
31416
  {
31234
31417
  style: {
@@ -31237,7 +31420,7 @@ var DateField = (props) => {
31237
31420
  justifyContent: "center"
31238
31421
  },
31239
31422
  children: [
31240
- /* @__PURE__ */ jsx83(
31423
+ /* @__PURE__ */ jsx85(
31241
31424
  "button",
31242
31425
  {
31243
31426
  onClick: decreaseMonth,
@@ -31245,7 +31428,7 @@ var DateField = (props) => {
31245
31428
  children: "<"
31246
31429
  }
31247
31430
  ),
31248
- /* @__PURE__ */ jsx83(
31431
+ /* @__PURE__ */ jsx85(
31249
31432
  StateManagedSelect$1,
31250
31433
  {
31251
31434
  classNames: {
@@ -31271,7 +31454,7 @@ var DateField = (props) => {
31271
31454
  autoFocus: true
31272
31455
  }
31273
31456
  ),
31274
- /* @__PURE__ */ jsx83(
31457
+ /* @__PURE__ */ jsx85(
31275
31458
  StateManagedSelect$1,
31276
31459
  {
31277
31460
  classNames: {
@@ -31299,7 +31482,7 @@ var DateField = (props) => {
31299
31482
  }))
31300
31483
  }
31301
31484
  ),
31302
- /* @__PURE__ */ jsx83(
31485
+ /* @__PURE__ */ jsx85(
31303
31486
  "button",
31304
31487
  {
31305
31488
  onClick: increaseMonth,
@@ -31312,7 +31495,7 @@ var DateField = (props) => {
31312
31495
  )
31313
31496
  }
31314
31497
  ),
31315
- !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 })
31316
31499
  ] });
31317
31500
  }
31318
31501
  }
@@ -31321,26 +31504,26 @@ var DateField = (props) => {
31321
31504
  };
31322
31505
 
31323
31506
  // src/widgets/basic/download-binary-field/download-binary.tsx
31324
- import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
31507
+ import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
31325
31508
  var DownLoadBinaryField = (props) => {
31326
31509
  const { handleFileDownload } = props;
31327
31510
  const { t: t3 } = useI18n();
31328
- return /* @__PURE__ */ jsxs54(
31511
+ return /* @__PURE__ */ jsxs56(
31329
31512
  "button",
31330
31513
  {
31331
31514
  type: "button",
31332
31515
  onClick: handleFileDownload,
31333
31516
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31334
31517
  children: [
31335
- /* @__PURE__ */ jsx84(DownloadIcon, {}),
31336
- /* @__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") })
31337
31520
  ]
31338
31521
  }
31339
31522
  );
31340
31523
  };
31341
31524
 
31342
31525
  // src/widgets/basic/download-file-field/download-file.tsx
31343
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
31526
+ import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
31344
31527
  var DownloadFileField = (props) => {
31345
31528
  const {
31346
31529
  readonly,
@@ -31352,15 +31535,15 @@ var DownloadFileField = (props) => {
31352
31535
  handleFileChange,
31353
31536
  handleFileDownload
31354
31537
  } = props;
31355
- return /* @__PURE__ */ jsxs55("div", { className: "", children: [
31356
- /* @__PURE__ */ jsxs55(
31538
+ return /* @__PURE__ */ jsxs57("div", { className: "", children: [
31539
+ /* @__PURE__ */ jsxs57(
31357
31540
  "label",
31358
31541
  {
31359
31542
  htmlFor: inputId,
31360
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",
31361
31544
  children: [
31362
- 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" }),
31363
- /* @__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(
31364
31547
  "input",
31365
31548
  {
31366
31549
  id: inputId,
@@ -31374,7 +31557,7 @@ var DownloadFileField = (props) => {
31374
31557
  ]
31375
31558
  }
31376
31559
  ),
31377
- file && /* @__PURE__ */ jsx85(
31560
+ file && /* @__PURE__ */ jsx87(
31378
31561
  "button",
31379
31562
  {
31380
31563
  onClick: handleFileDownload,
@@ -31387,8 +31570,8 @@ var DownloadFileField = (props) => {
31387
31570
  };
31388
31571
 
31389
31572
  // src/widgets/basic/dropdown-field/dropdown.tsx
31390
- import { useState as useState16 } from "react";
31391
- 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";
31392
31575
  var DropdownField = (props) => {
31393
31576
  const {
31394
31577
  options: options2,
@@ -31400,32 +31583,32 @@ var DropdownField = (props) => {
31400
31583
  dropdownClassName = "",
31401
31584
  useClickOutside: useClickOutside2
31402
31585
  } = props;
31403
- const [open, setOpen] = useState16(false);
31586
+ const [open, setOpen] = useState17(false);
31404
31587
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31405
- return /* @__PURE__ */ jsxs56(
31588
+ return /* @__PURE__ */ jsxs58(
31406
31589
  "div",
31407
31590
  {
31408
31591
  ref: dropdownRef,
31409
31592
  className: `relative ${className}`,
31410
31593
  onClick: () => setOpen(!open),
31411
31594
  children: [
31412
- /* @__PURE__ */ jsxs56(
31595
+ /* @__PURE__ */ jsxs58(
31413
31596
  "div",
31414
31597
  {
31415
31598
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31416
31599
  children: [
31417
31600
  selectedValue?.icon,
31418
- /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
31419
- /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31601
+ /* @__PURE__ */ jsx88("span", { children: selectedValue?.label }),
31602
+ /* @__PURE__ */ jsx88(ChevronBottomIcon, { className: "h-4 w-4" })
31420
31603
  ]
31421
31604
  }
31422
31605
  ),
31423
- open && /* @__PURE__ */ jsx86(
31606
+ open && /* @__PURE__ */ jsx88(
31424
31607
  "div",
31425
31608
  {
31426
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}`,
31427
31610
  onClick: (e3) => e3.stopPropagation(),
31428
- children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31611
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx88(
31429
31612
  "div",
31430
31613
  {
31431
31614
  onClick: () => {
@@ -31445,7 +31628,7 @@ var DropdownField = (props) => {
31445
31628
  };
31446
31629
 
31447
31630
  // src/widgets/basic/fee-field/fee.tsx
31448
- 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";
31449
31632
  var FeeField = (props) => {
31450
31633
  const { value, formValues } = props;
31451
31634
  const { t: t3 } = useI18n();
@@ -31456,27 +31639,27 @@ var FeeField = (props) => {
31456
31639
  )
31457
31640
  ) + " VND";
31458
31641
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31459
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31642
+ return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31460
31643
  value?.subtotals?.map((sub) => {
31461
31644
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31462
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31463
- /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31464
- /* @__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: [
31465
31648
  sub?.name,
31466
31649
  ":"
31467
31650
  ] }),
31468
- /* @__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" })
31469
31652
  ] }),
31470
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
31653
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs59(
31471
31654
  "div",
31472
31655
  {
31473
31656
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31474
31657
  children: [
31475
- /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
31658
+ /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31476
31659
  group?.group_name,
31477
31660
  ":"
31478
31661
  ] }),
31479
- /* @__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" })
31480
31663
  ]
31481
31664
  },
31482
31665
  `tax_groups_${group?.id}`
@@ -31484,33 +31667,33 @@ var FeeField = (props) => {
31484
31667
  ] });
31485
31668
  }
31486
31669
  }),
31487
- /* @__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: [
31488
- /* @__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: [
31489
31672
  t3("total"),
31490
31673
  ":"
31491
31674
  ] }),
31492
- /* @__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 })
31493
31676
  ] }),
31494
- /* @__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: [
31495
- /* @__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: [
31496
31679
  t3("paid_amount"),
31497
31680
  ":"
31498
31681
  ] }),
31499
- /* @__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 })
31500
31683
  ] }),
31501
- /* @__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: [
31502
- /* @__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: [
31503
31686
  t3("remanining_amount"),
31504
31687
  ":"
31505
31688
  ] }),
31506
- /* @__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 })
31507
31690
  ] })
31508
31691
  ] });
31509
31692
  };
31510
31693
 
31511
31694
  // src/widgets/basic/file-upload-field/file-upload.tsx
31512
- import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
31513
- 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";
31514
31697
  var RenderFile = ({
31515
31698
  file,
31516
31699
  onDelete,
@@ -31520,16 +31703,16 @@ var RenderFile = ({
31520
31703
  readAs: "all"
31521
31704
  });
31522
31705
  const fileTypeIcon = {
31523
- "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
31524
- "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
31525
- "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
31526
- "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
31527
- "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, {})
31528
31711
  };
31529
- return /* @__PURE__ */ jsxs58("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31530
- /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31531
- /* @__PURE__ */ jsxs58("div", { children: [
31532
- /* @__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(
31533
31716
  "div",
31534
31717
  {
31535
31718
  style: {
@@ -31539,20 +31722,20 @@ var RenderFile = ({
31539
31722
  children: file?.name || file?.display_name || info?.name
31540
31723
  }
31541
31724
  ),
31542
- /* @__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) })
31543
31726
  ] }),
31544
- /* @__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: [
31545
- /* @__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(
31546
31729
  "span",
31547
31730
  {
31548
31731
  onClick: () => onDownload && onDownload(
31549
31732
  file?.data,
31550
31733
  file?.name || file?.display_name || info?.name
31551
31734
  ),
31552
- children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31735
+ children: /* @__PURE__ */ jsx90(DownloadIcon, {})
31553
31736
  }
31554
31737
  ),
31555
- /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31738
+ /* @__PURE__ */ jsx90("span", { onClick: onDelete, children: /* @__PURE__ */ jsx90(DeleteIconDanger, {}) })
31556
31739
  ] })
31557
31740
  ] });
31558
31741
  };
@@ -31575,9 +31758,9 @@ var FileUploadField = (props) => {
31575
31758
  } = props;
31576
31759
  const { t: t3 } = useI18n();
31577
31760
  const fileInputRef = useRef15(null);
31578
- const [selectedFiles, setSelectedFiles] = useState17([]);
31579
- const [uploadError, setUploadError] = useState17();
31580
- useEffect18(() => {
31761
+ const [selectedFiles, setSelectedFiles] = useState18([]);
31762
+ const [uploadError, setUploadError] = useState18();
31763
+ useEffect19(() => {
31581
31764
  if (selectedFiles?.length === 0 && value) {
31582
31765
  setSelectedFiles([
31583
31766
  {
@@ -31586,7 +31769,7 @@ var FileUploadField = (props) => {
31586
31769
  ]);
31587
31770
  }
31588
31771
  }, [value]);
31589
- return /* @__PURE__ */ jsx88(
31772
+ return /* @__PURE__ */ jsx90(
31590
31773
  Controller,
31591
31774
  {
31592
31775
  name: name2 || "",
@@ -31595,7 +31778,7 @@ var FileUploadField = (props) => {
31595
31778
  required: required ? { value: true, message: `${string} ${t3("must_required")}` } : false
31596
31779
  },
31597
31780
  render: ({ field: { onChange: onChange2 }, fieldState: { error: error2 } }) => {
31598
- useEffect18(() => {
31781
+ useEffect19(() => {
31599
31782
  let data = widget === "many2many_binary" ? selectedFiles : selectedFiles?.[0]?.data;
31600
31783
  if (widget !== "many2many_binary" && data && isBase64File(data)) {
31601
31784
  data = data.split(",")[1];
@@ -31611,8 +31794,8 @@ var FileUploadField = (props) => {
31611
31794
  );
31612
31795
  }
31613
31796
  }, [selectedFiles]);
31614
- return /* @__PURE__ */ jsxs58("div", { children: [
31615
- 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(
31616
31799
  RenderFile,
31617
31800
  {
31618
31801
  file: fileItem,
@@ -31627,8 +31810,8 @@ var FileUploadField = (props) => {
31627
31810
  }
31628
31811
  }
31629
31812
  )),
31630
- uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
31631
- (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(
31632
31815
  ButtonSelectFiles,
31633
31816
  {
31634
31817
  fileInputRef,
@@ -31643,7 +31826,7 @@ var FileUploadField = (props) => {
31643
31826
  useUploadFile
31644
31827
  }
31645
31828
  ),
31646
- 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 })
31647
31830
  ] });
31648
31831
  }
31649
31832
  }
@@ -31651,8 +31834,8 @@ var FileUploadField = (props) => {
31651
31834
  };
31652
31835
 
31653
31836
  // src/widgets/basic/float-field/float.tsx
31654
- import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31655
- 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";
31656
31839
  var FloatField = (props) => {
31657
31840
  const {
31658
31841
  name: name2,
@@ -31670,9 +31853,9 @@ var FloatField = (props) => {
31670
31853
  } = props;
31671
31854
  const { t: t3 } = useI18n();
31672
31855
  if (!isForm && !isEditTable) {
31673
- return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31856
+ return /* @__PURE__ */ jsx91("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31674
31857
  }
31675
- return /* @__PURE__ */ jsx89(
31858
+ return /* @__PURE__ */ jsx91(
31676
31859
  Controller,
31677
31860
  {
31678
31861
  name: name2 ?? "",
@@ -31683,10 +31866,10 @@ var FloatField = (props) => {
31683
31866
  },
31684
31867
  render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
31685
31868
  const { setError, clearErrors } = methods;
31686
- const [inputValue, setInputValue] = useState18(
31869
+ const [inputValue, setInputValue] = useState19(
31687
31870
  value !== void 0 && value !== null ? formatFloatNumber(value) : ""
31688
31871
  );
31689
- useEffect19(() => {
31872
+ useEffect20(() => {
31690
31873
  if (propValue !== void 0 && propValue !== null && propValue !== parseFloat(inputValue?.replace(/,/g, ""))) {
31691
31874
  setInputValue(formatFloatNumber(propValue));
31692
31875
  clearErrors(name2);
@@ -31777,8 +31960,8 @@ var FloatField = (props) => {
31777
31960
  }
31778
31961
  isDirtyRef.current = false;
31779
31962
  };
31780
- return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31781
- /* @__PURE__ */ jsx89(
31963
+ return /* @__PURE__ */ jsxs61(Fragment26, { children: [
31964
+ /* @__PURE__ */ jsx91(
31782
31965
  "input",
31783
31966
  {
31784
31967
  ref: inputRef,
@@ -31798,7 +31981,7 @@ var FloatField = (props) => {
31798
31981
  `
31799
31982
  }
31800
31983
  ),
31801
- 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 })
31802
31985
  ] });
31803
31986
  }
31804
31987
  }
@@ -31806,8 +31989,8 @@ var FloatField = (props) => {
31806
31989
  };
31807
31990
 
31808
31991
  // src/widgets/basic/float-time-field/float-time.tsx
31809
- import { useState as useState19 } from "react";
31810
- 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";
31811
31994
  var FloatTimeField = (props) => {
31812
31995
  const {
31813
31996
  name: name2,
@@ -31823,9 +32006,9 @@ var FloatTimeField = (props) => {
31823
32006
  const { t: t3 } = useI18n();
31824
32007
  if (!isForm) {
31825
32008
  const formatValue = value ?? 0;
31826
- return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
32009
+ return /* @__PURE__ */ jsx92("span", { children: convertFloatToTime(formatValue) });
31827
32010
  }
31828
- return /* @__PURE__ */ jsx90(
32011
+ return /* @__PURE__ */ jsx92(
31829
32012
  Controller,
31830
32013
  {
31831
32014
  name: name2 ?? "",
@@ -31838,11 +32021,11 @@ var FloatTimeField = (props) => {
31838
32021
  field: { onChange: fieldOnChange, onBlur, value: value2 },
31839
32022
  fieldState: { error: error2, isDirty }
31840
32023
  }) => {
31841
- const [input, setInput] = useState19(
32024
+ const [input, setInput] = useState20(
31842
32025
  convertFloatToTime(value2 ?? defaultValue)
31843
32026
  );
31844
- const [formattedTime, setFormattedTime] = useState19("");
31845
- const [errors, setErrors] = useState19("");
32027
+ const [formattedTime, setFormattedTime] = useState20("");
32028
+ const [errors, setErrors] = useState20("");
31846
32029
  const handleInputChange = (e3) => {
31847
32030
  const raw = e3.target.value.replace(/[^\d:]/g, "");
31848
32031
  setInput(raw);
@@ -31887,8 +32070,8 @@ var FloatTimeField = (props) => {
31887
32070
  }
31888
32071
  onBlur();
31889
32072
  };
31890
- return /* @__PURE__ */ jsxs60(Fragment26, { children: [
31891
- /* @__PURE__ */ jsx90(
32073
+ return /* @__PURE__ */ jsxs62(Fragment27, { children: [
32074
+ /* @__PURE__ */ jsx92(
31892
32075
  "input",
31893
32076
  {
31894
32077
  type: "text",
@@ -31920,7 +32103,7 @@ var FloatTimeField = (props) => {
31920
32103
  readOnly: readonly
31921
32104
  }
31922
32105
  ),
31923
- (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 })
31924
32107
  ] });
31925
32108
  }
31926
32109
  }
@@ -31928,8 +32111,8 @@ var FloatTimeField = (props) => {
31928
32111
  };
31929
32112
 
31930
32113
  // src/widgets/basic/html-field/html.tsx
31931
- import { useEffect as useEffect20, useRef as useRef17 } from "react";
31932
- 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";
31933
32116
  var HtmlField = (props) => {
31934
32117
  const {
31935
32118
  name: name2,
@@ -31943,16 +32126,16 @@ var HtmlField = (props) => {
31943
32126
  } = props;
31944
32127
  const divRef = useRef17(null);
31945
32128
  if (!isForm && !isEditTable) {
31946
- return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
32129
+ return /* @__PURE__ */ jsx93("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31947
32130
  }
31948
- return /* @__PURE__ */ jsx91(
32131
+ return /* @__PURE__ */ jsx93(
31949
32132
  Controller,
31950
32133
  {
31951
32134
  name: name2 ?? "",
31952
32135
  control: methods?.control,
31953
32136
  defaultValue,
31954
32137
  render: ({ field: { onChange: fieldOnChange, value: value2 } }) => {
31955
- useEffect20(() => {
32138
+ useEffect21(() => {
31956
32139
  if (divRef.current && divRef.current.innerHTML !== value2) {
31957
32140
  divRef.current.innerHTML = value2 || "";
31958
32141
  }
@@ -31964,7 +32147,7 @@ var HtmlField = (props) => {
31964
32147
  onChange2(newValue, "");
31965
32148
  }
31966
32149
  };
31967
- return /* @__PURE__ */ jsx91(
32150
+ return /* @__PURE__ */ jsx93(
31968
32151
  "div",
31969
32152
  {
31970
32153
  ref: divRef,
@@ -31983,28 +32166,28 @@ var HtmlField = (props) => {
31983
32166
  };
31984
32167
 
31985
32168
  // src/widgets/basic/image-field/image.tsx
31986
- import { jsx as jsx92 } from "react/jsx-runtime";
32169
+ import { jsx as jsx94 } from "react/jsx-runtime";
31987
32170
  var ImageField = (props) => {
31988
32171
  const { value, type, name: name2, baseURL } = props;
31989
32172
  if (!value) return null;
31990
32173
  if (type === "url") {
31991
- 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 });
31992
32175
  }
31993
- 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" }) });
31994
32177
  };
31995
32178
 
31996
32179
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31997
- import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
32180
+ import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
31998
32181
 
31999
32182
  // src/widgets/basic/information-field/information.tsx
32000
- 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";
32001
32184
  var InfomationField = (props) => {
32002
32185
  const { value, isForm = false, showName = true, stringToColor } = props;
32003
32186
  if (!value || Array.isArray(value) && value.length === 0) {
32004
- return /* @__PURE__ */ jsx93(Fragment27, {});
32187
+ return /* @__PURE__ */ jsx95(Fragment28, {});
32005
32188
  }
32006
32189
  const inforValues = Array.isArray(value) ? value : [value];
32007
- 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(
32008
32191
  AvatarField,
32009
32192
  {
32010
32193
  id: item.id,
@@ -32013,8 +32196,8 @@ var InfomationField = (props) => {
32013
32196
  stringToColor
32014
32197
  },
32015
32198
  item.id
32016
- )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
32017
- /* @__PURE__ */ jsx93(
32199
+ )) : /* @__PURE__ */ jsxs63("div", { className: "flex gap-2 items-center w-max", children: [
32200
+ /* @__PURE__ */ jsx95(
32018
32201
  AvatarField,
32019
32202
  {
32020
32203
  avatarSrc: inforValues[0].image_256,
@@ -32024,12 +32207,12 @@ var InfomationField = (props) => {
32024
32207
  stringToColor
32025
32208
  }
32026
32209
  ),
32027
- showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
32210
+ showName && /* @__PURE__ */ jsx95("span", { className: "capitalize", children: inforValues[0].display_name })
32028
32211
  ] }) });
32029
32212
  };
32030
32213
 
32031
32214
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32032
- import { jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32215
+ import { jsx as jsx96, jsxs as jsxs64 } from "react/jsx-runtime";
32033
32216
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32034
32217
  const { selectProps, data, menuList } = props;
32035
32218
  const { relation } = selectProps;
@@ -32038,8 +32221,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32038
32221
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32039
32222
  )
32040
32223
  )?.[0]?.action?.id;
32041
- return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32042
- /* @__PURE__ */ jsx94(
32224
+ return /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32225
+ /* @__PURE__ */ jsx96(
32043
32226
  AvatarField,
32044
32227
  {
32045
32228
  id: data?.id,
@@ -32051,8 +32234,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32051
32234
  stringToColor
32052
32235
  }
32053
32236
  ),
32054
- /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32055
- /* @__PURE__ */ jsx94(
32237
+ /* @__PURE__ */ jsx96("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
32238
+ /* @__PURE__ */ jsx96(
32056
32239
  "span",
32057
32240
  {
32058
32241
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -32060,7 +32243,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32060
32243
  e3.stopPropagation();
32061
32244
  props.removeProps.onClick();
32062
32245
  },
32063
- children: /* @__PURE__ */ jsx94(CloseIcon, {})
32246
+ children: /* @__PURE__ */ jsx96(CloseIcon, {})
32064
32247
  }
32065
32248
  )
32066
32249
  ] });
@@ -32070,9 +32253,9 @@ var CustomMenuList = (props) => {
32070
32253
  const { setIsShowModalMany2Many, searchable } = selectProps;
32071
32254
  const { t: t3 } = useI18n();
32072
32255
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
32073
- return /* @__PURE__ */ jsxs62(components.MenuList, { ...props, className: "z-[99]", children: [
32256
+ return /* @__PURE__ */ jsxs64(components.MenuList, { ...props, className: "z-[99]", children: [
32074
32257
  limitedChildren,
32075
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs62(
32258
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs64(
32076
32259
  "button",
32077
32260
  {
32078
32261
  type: "button",
@@ -32117,7 +32300,7 @@ var Many2ManyTagField = (props) => {
32117
32300
  value: item.id,
32118
32301
  label: item.name ?? item.display_name
32119
32302
  })) : [];
32120
- return /* @__PURE__ */ jsx94(
32303
+ return /* @__PURE__ */ jsx96(
32121
32304
  InfomationField,
32122
32305
  {
32123
32306
  value: optionValue || null,
@@ -32126,7 +32309,7 @@ var Many2ManyTagField = (props) => {
32126
32309
  }
32127
32310
  );
32128
32311
  }
32129
- return /* @__PURE__ */ jsx94(
32312
+ return /* @__PURE__ */ jsx96(
32130
32313
  Controller,
32131
32314
  {
32132
32315
  name: name2 ?? "",
@@ -32136,7 +32319,7 @@ var Many2ManyTagField = (props) => {
32136
32319
  },
32137
32320
  render: ({ field, fieldState: { error: error2 } }) => {
32138
32321
  const { clearErrors } = methods;
32139
- useEffect21(() => {
32322
+ useEffect22(() => {
32140
32323
  if (field.value) {
32141
32324
  clearErrors(name2);
32142
32325
  }
@@ -32162,8 +32345,8 @@ var Many2ManyTagField = (props) => {
32162
32345
  onChange2?.(name2 ?? "", newValue);
32163
32346
  clearErrors(name2);
32164
32347
  };
32165
- return /* @__PURE__ */ jsxs62("div", { className: "group h-full overflow-y-auto", children: [
32166
- /* @__PURE__ */ jsx94(
32348
+ return /* @__PURE__ */ jsxs64("div", { className: "group h-full overflow-y-auto", children: [
32349
+ /* @__PURE__ */ jsx96(
32167
32350
  StateManagedSelect$1,
32168
32351
  {
32169
32352
  options: options2,
@@ -32241,7 +32424,7 @@ var Many2ManyTagField = (props) => {
32241
32424
  })
32242
32425
  },
32243
32426
  components: isUser ? {
32244
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
32427
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx96(
32245
32428
  CustomMultiValue,
32246
32429
  {
32247
32430
  ...multiValueProps,
@@ -32250,7 +32433,7 @@ var Many2ManyTagField = (props) => {
32250
32433
  ),
32251
32434
  IndicatorSeparator: () => null
32252
32435
  } : {
32253
- MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
32436
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx96(
32254
32437
  CustomMenuList,
32255
32438
  {
32256
32439
  ...menuListProps,
@@ -32261,13 +32444,13 @@ var Many2ManyTagField = (props) => {
32261
32444
  }
32262
32445
  ),
32263
32446
  IndicatorSeparator: () => null,
32264
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
32265
- 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 })
32266
32449
  },
32267
32450
  required: !invisible && required
32268
32451
  }
32269
32452
  ),
32270
- !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 })
32271
32454
  ] });
32272
32455
  }
32273
32456
  }
@@ -32275,8 +32458,8 @@ var Many2ManyTagField = (props) => {
32275
32458
  };
32276
32459
 
32277
32460
  // src/widgets/basic/monetary-field/monetary.tsx
32278
- import { useEffect as useEffect22 } from "react";
32279
- 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";
32280
32463
  var MonetaryField = (props) => {
32281
32464
  const { t: t3 } = useI18n();
32282
32465
  const {
@@ -32296,26 +32479,26 @@ var MonetaryField = (props) => {
32296
32479
  isEditTable
32297
32480
  } = props;
32298
32481
  if (isForm && name2 === "amount_residual") {
32299
- return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32300
- /* @__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: [
32301
32484
  string,
32302
32485
  ":"
32303
32486
  ] }),
32304
- /* @__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` })
32305
32488
  ] });
32306
32489
  }
32307
32490
  if (!isForm) {
32308
32491
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32309
32492
  if (widget === "monetary" && !formValues?.currency_id) {
32310
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32493
+ return /* @__PURE__ */ jsx97("span", { children: `${formatNumberOnly(
32311
32494
  parseFloat(String(value ?? defaultValue))
32312
32495
  )} VND` });
32313
32496
  }
32314
- return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32497
+ return /* @__PURE__ */ jsx97("span", { children: `${formatNumberOnly(
32315
32498
  parseFloat(value ?? defaultValue)
32316
32499
  )} ${currencySymbol}` });
32317
32500
  }
32318
- return /* @__PURE__ */ jsx95(
32501
+ return /* @__PURE__ */ jsx97(
32319
32502
  Controller,
32320
32503
  {
32321
32504
  name: name2 ?? "",
@@ -32329,13 +32512,13 @@ var MonetaryField = (props) => {
32329
32512
  fieldState: { error: error2 }
32330
32513
  }) => {
32331
32514
  const { setError, clearErrors } = methods;
32332
- useEffect22(() => {
32515
+ useEffect23(() => {
32333
32516
  if (value2 !== void 0 && value2 !== null && !isNaN(value2)) {
32334
32517
  clearErrors(name2);
32335
32518
  }
32336
32519
  }, [value2]);
32337
- return /* @__PURE__ */ jsxs63(Fragment28, { children: [
32338
- /* @__PURE__ */ jsx95(
32520
+ return /* @__PURE__ */ jsxs65(Fragment29, { children: [
32521
+ /* @__PURE__ */ jsx97(
32339
32522
  "input",
32340
32523
  {
32341
32524
  value: formatNumberOnly(value2),
@@ -32373,7 +32556,7 @@ var MonetaryField = (props) => {
32373
32556
  `
32374
32557
  }
32375
32558
  ),
32376
- !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 })
32377
32560
  ] });
32378
32561
  }
32379
32562
  }
@@ -32381,14 +32564,14 @@ var MonetaryField = (props) => {
32381
32564
  };
32382
32565
 
32383
32566
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32384
- import { jsx as jsx96 } from "react/jsx-runtime";
32567
+ import { jsx as jsx98 } from "react/jsx-runtime";
32385
32568
  var PaidBadgedField = () => {
32386
- 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, {}) });
32387
32570
  };
32388
32571
 
32389
32572
  // src/widgets/basic/priority-field/rating-star.tsx
32390
- import React17, { useEffect as useEffect23, useState as useState20 } from "react";
32391
- 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";
32392
32575
  var RatingStarField = (props) => {
32393
32576
  const {
32394
32577
  label,
@@ -32397,9 +32580,9 @@ var RatingStarField = (props) => {
32397
32580
  onSelectPriority,
32398
32581
  id
32399
32582
  } = props;
32400
- const [rating, setRating] = useState20(defaultValue);
32401
- const [hover, setHover] = useState20(0);
32402
- useEffect23(() => {
32583
+ const [rating, setRating] = useState21(defaultValue);
32584
+ const [hover, setHover] = useState21(0);
32585
+ useEffect24(() => {
32403
32586
  setRating(defaultValue);
32404
32587
  }, [defaultValue]);
32405
32588
  const handleClick = (value) => {
@@ -32423,7 +32606,7 @@ var RatingStarField = (props) => {
32423
32606
  setHover(0);
32424
32607
  setRating(0);
32425
32608
  };
32426
- return /* @__PURE__ */ jsx97(
32609
+ return /* @__PURE__ */ jsx99(
32427
32610
  "div",
32428
32611
  {
32429
32612
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32433,17 +32616,17 @@ var RatingStarField = (props) => {
32433
32616
  const starValue = index4 + 1;
32434
32617
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32435
32618
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32436
- return /* @__PURE__ */ jsxs64(React17.Fragment, { children: [
32437
- /* @__PURE__ */ jsx97(
32619
+ return /* @__PURE__ */ jsxs66(React17.Fragment, { children: [
32620
+ /* @__PURE__ */ jsx99(
32438
32621
  "div",
32439
32622
  {
32440
32623
  onMouseEnter: () => handleHover(starValue),
32441
32624
  onClick: () => handleClick(starValue),
32442
32625
  "data-tooltip-id": `${id}-${starValue}`,
32443
- children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32626
+ children: /* @__PURE__ */ jsx99(StarIcon, { fill: fillColor, stroke: strokeColor })
32444
32627
  }
32445
32628
  ),
32446
- /* @__PURE__ */ jsx97(
32629
+ /* @__PURE__ */ jsx99(
32447
32630
  M,
32448
32631
  {
32449
32632
  className: "z-50",
@@ -32459,7 +32642,7 @@ var RatingStarField = (props) => {
32459
32642
  };
32460
32643
 
32461
32644
  // src/widgets/basic/priority-field/priority.tsx
32462
- import { jsx as jsx98 } from "react/jsx-runtime";
32645
+ import { jsx as jsx100 } from "react/jsx-runtime";
32463
32646
  var PriorityField = (props) => {
32464
32647
  const {
32465
32648
  isForm,
@@ -32475,7 +32658,7 @@ var PriorityField = (props) => {
32475
32658
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32476
32659
  const defaultPriority = parseInt(value) + 1;
32477
32660
  if (!isForm) {
32478
- return /* @__PURE__ */ jsx98(
32661
+ return /* @__PURE__ */ jsx100(
32479
32662
  RatingStarField,
32480
32663
  {
32481
32664
  label,
@@ -32486,7 +32669,7 @@ var PriorityField = (props) => {
32486
32669
  }
32487
32670
  );
32488
32671
  }
32489
- return /* @__PURE__ */ jsx98(
32672
+ return /* @__PURE__ */ jsx100(
32490
32673
  Controller,
32491
32674
  {
32492
32675
  name: name ?? "",
@@ -32496,7 +32679,7 @@ var PriorityField = (props) => {
32496
32679
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32497
32680
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32498
32681
  };
32499
- return /* @__PURE__ */ jsx98(
32682
+ return /* @__PURE__ */ jsx100(
32500
32683
  RatingStarField,
32501
32684
  {
32502
32685
  label,
@@ -32512,8 +32695,8 @@ var PriorityField = (props) => {
32512
32695
  };
32513
32696
 
32514
32697
  // src/widgets/basic/radio-group-field/radio-group.tsx
32515
- import { useEffect as useEffect24 } from "react";
32516
- 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";
32517
32700
  var RadioGroupField = (props) => {
32518
32701
  const {
32519
32702
  name: name2,
@@ -32526,19 +32709,19 @@ var RadioGroupField = (props) => {
32526
32709
  onChange: onChange2,
32527
32710
  setValue
32528
32711
  } = props;
32529
- useEffect24(() => {
32712
+ useEffect25(() => {
32530
32713
  if (selection?.length > 0) {
32531
32714
  if (setValue) setValue(name2, selection?.[0]?.[0]);
32532
32715
  }
32533
32716
  }, [selection, name2, setValue]);
32534
32717
  if (!methods) return null;
32535
- return /* @__PURE__ */ jsx99(
32718
+ return /* @__PURE__ */ jsx101(
32536
32719
  Controller,
32537
32720
  {
32538
32721
  name: name2 ?? "",
32539
32722
  control: methods.control,
32540
- 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: [
32541
- /* @__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(
32542
32725
  "input",
32543
32726
  {
32544
32727
  type: "radio",
@@ -32557,7 +32740,7 @@ var RadioGroupField = (props) => {
32557
32740
  className: "custom-radio"
32558
32741
  }
32559
32742
  ),
32560
- /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32743
+ /* @__PURE__ */ jsx101("label", { htmlFor: String(select[0]), children: select[1] })
32561
32744
  ] }, select[0])) })
32562
32745
  }
32563
32746
  );
@@ -32565,7 +32748,7 @@ var RadioGroupField = (props) => {
32565
32748
 
32566
32749
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32567
32750
  var import_moment3 = __toESM(require_moment());
32568
- import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32751
+ import { jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
32569
32752
  var RemainingDaysField = (props) => {
32570
32753
  const {
32571
32754
  value,
@@ -32576,14 +32759,14 @@ var RemainingDaysField = (props) => {
32576
32759
  if (!value) return null;
32577
32760
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32578
32761
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32579
- return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
32580
- /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32581
- /* @__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(
32582
32765
  "div",
32583
32766
  {
32584
32767
  "data-tooltip-id": `remainingDays_${value}`,
32585
32768
  className: "flex items-center w-fit cursor-context-menu",
32586
- children: /* @__PURE__ */ jsx100(
32769
+ children: /* @__PURE__ */ jsx102(
32587
32770
  "div",
32588
32771
  {
32589
32772
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32596,7 +32779,7 @@ var RemainingDaysField = (props) => {
32596
32779
  };
32597
32780
 
32598
32781
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32599
- 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";
32600
32783
  var SelectDropdownField = (props) => {
32601
32784
  const { t: t3 } = useI18n();
32602
32785
  const {
@@ -32618,9 +32801,9 @@ var SelectDropdownField = (props) => {
32618
32801
  label: val[1]
32619
32802
  })) : [];
32620
32803
  if (!isForm && !isEditTable) {
32621
- 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 });
32622
32805
  } else {
32623
- return /* @__PURE__ */ jsx101(
32806
+ return /* @__PURE__ */ jsx103(
32624
32807
  Controller,
32625
32808
  {
32626
32809
  name: name2 || "",
@@ -32647,8 +32830,8 @@ var SelectDropdownField = (props) => {
32647
32830
  value: defaultValue || null,
32648
32831
  required: !invisible && required
32649
32832
  };
32650
- return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32651
- /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32833
+ return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32834
+ /* @__PURE__ */ jsx103("div", { className: "group", children: /* @__PURE__ */ jsx103(
32652
32835
  StateManagedSelect$1,
32653
32836
  {
32654
32837
  ...commonProps,
@@ -32703,12 +32886,12 @@ var SelectDropdownField = (props) => {
32703
32886
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32704
32887
  components: {
32705
32888
  IndicatorSeparator: () => null,
32706
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32889
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx103(components.DropdownIndicator, { ...props2 })
32707
32890
  },
32708
32891
  noOptionsMessage: () => t3("no-available")
32709
32892
  }
32710
32893
  ) }),
32711
- !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 })
32712
32895
  ] });
32713
32896
  }
32714
32897
  }
@@ -32717,7 +32900,7 @@ var SelectDropdownField = (props) => {
32717
32900
  };
32718
32901
 
32719
32902
  // src/widgets/basic/textarea-field/textarea.tsx
32720
- import { jsx as jsx102 } from "react/jsx-runtime";
32903
+ import { jsx as jsx104 } from "react/jsx-runtime";
32721
32904
  var TextAreaField = (props) => {
32722
32905
  const {
32723
32906
  methods,
@@ -32741,9 +32924,9 @@ var TextAreaField = (props) => {
32741
32924
  }
32742
32925
  }) : {};
32743
32926
  if (!isForm) {
32744
- 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 });
32745
32928
  }
32746
- return /* @__PURE__ */ jsx102(
32929
+ return /* @__PURE__ */ jsx104(
32747
32930
  "textarea",
32748
32931
  {
32749
32932
  ...formProps,
@@ -32759,7 +32942,7 @@ var TextAreaField = (props) => {
32759
32942
  };
32760
32943
 
32761
32944
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32762
- import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32945
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32763
32946
  var ToggleButtonField = (props) => {
32764
32947
  const {
32765
32948
  name: name2,
@@ -32769,13 +32952,13 @@ var ToggleButtonField = (props) => {
32769
32952
  onChange: onChange2,
32770
32953
  methods
32771
32954
  } = props;
32772
- return /* @__PURE__ */ jsx103(
32955
+ return /* @__PURE__ */ jsx105(
32773
32956
  Controller,
32774
32957
  {
32775
32958
  name: name2 ?? "",
32776
32959
  control: methods?.control,
32777
- 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: [
32778
- /* @__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(
32779
32962
  "input",
32780
32963
  {
32781
32964
  ...field,
@@ -32794,7 +32977,7 @@ var ToggleButtonField = (props) => {
32794
32977
  checked: field.value ?? false
32795
32978
  }
32796
32979
  ),
32797
- /* @__PURE__ */ jsx103(
32980
+ /* @__PURE__ */ jsx105(
32798
32981
  "span",
32799
32982
  {
32800
32983
  style: {
@@ -32803,7 +32986,7 @@ var ToggleButtonField = (props) => {
32803
32986
  },
32804
32987
  className: `rounded-full transition duration-300
32805
32988
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32806
- children: /* @__PURE__ */ jsx103(
32989
+ children: /* @__PURE__ */ jsx105(
32807
32990
  "span",
32808
32991
  {
32809
32992
  style: {
@@ -32827,8 +33010,8 @@ var ToggleButtonField = (props) => {
32827
33010
  };
32828
33011
 
32829
33012
  // src/widgets/basic/integer-field/integer.tsx
32830
- import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
32831
- 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";
32832
33015
  var IntegerField = (props) => {
32833
33016
  const {
32834
33017
  name: name2,
@@ -32847,9 +33030,9 @@ var IntegerField = (props) => {
32847
33030
  const { t: t3 } = useI18n();
32848
33031
  if (!isForm && !isEditTable) {
32849
33032
  const displayValue = value ?? defaultValue;
32850
- 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) });
32851
33034
  }
32852
- return /* @__PURE__ */ jsx104(
33035
+ return /* @__PURE__ */ jsx106(
32853
33036
  Controller,
32854
33037
  {
32855
33038
  name: name2 || "",
@@ -32866,10 +33049,10 @@ var IntegerField = (props) => {
32866
33049
  const isDirtyRef = useRef18(false);
32867
33050
  const inputRef = useRef18(null);
32868
33051
  const lastCommittedValueRef = useRef18(null);
32869
- const [inputValue, setInputValue] = useState21(
33052
+ const [inputValue, setInputValue] = useState22(
32870
33053
  value2 !== void 0 && value2 !== null ? String(value2) : ""
32871
33054
  );
32872
- useEffect25(() => {
33055
+ useEffect26(() => {
32873
33056
  if (value2 !== void 0 && value2 !== null) {
32874
33057
  setInputValue(String(value2));
32875
33058
  clearErrors(name2);
@@ -32927,8 +33110,8 @@ var IntegerField = (props) => {
32927
33110
  inputRef.current?.blur();
32928
33111
  clearErrors(name2);
32929
33112
  };
32930
- return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32931
- /* @__PURE__ */ jsx104(
33113
+ return /* @__PURE__ */ jsxs71(Fragment31, { children: [
33114
+ /* @__PURE__ */ jsx106(
32932
33115
  "input",
32933
33116
  {
32934
33117
  ref: inputRef,
@@ -32963,7 +33146,7 @@ var IntegerField = (props) => {
32963
33146
  `
32964
33147
  }
32965
33148
  ),
32966
- 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 })
32967
33150
  ] });
32968
33151
  }
32969
33152
  }
@@ -32971,7 +33154,7 @@ var IntegerField = (props) => {
32971
33154
  };
32972
33155
 
32973
33156
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32974
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
33157
+ import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
32975
33158
  var StatusDropdownField = (props) => {
32976
33159
  const {
32977
33160
  buttonRef,
@@ -32983,13 +33166,13 @@ var StatusDropdownField = (props) => {
32983
33166
  handleClick,
32984
33167
  colors: colors2
32985
33168
  } = props;
32986
- return /* @__PURE__ */ jsxs70(
33169
+ return /* @__PURE__ */ jsxs72(
32987
33170
  "div",
32988
33171
  {
32989
33172
  ref: buttonRef,
32990
33173
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32991
33174
  children: [
32992
- /* @__PURE__ */ jsx105(
33175
+ /* @__PURE__ */ jsx107(
32993
33176
  "button",
32994
33177
  {
32995
33178
  type: "button",
@@ -32997,23 +33180,23 @@ var StatusDropdownField = (props) => {
32997
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"}`
32998
33181
  }
32999
33182
  ),
33000
- 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) => {
33001
33184
  const isActive = item[0] == state;
33002
- return /* @__PURE__ */ jsxs70(
33185
+ return /* @__PURE__ */ jsxs72(
33003
33186
  "div",
33004
33187
  {
33005
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" : ""}`,
33006
33189
  onClick: () => handleClick(item[0]),
33007
33190
  children: [
33008
- /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
33009
- /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
33010
- /* @__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(
33011
33194
  "div",
33012
33195
  {
33013
33196
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
33014
33197
  }
33015
33198
  ),
33016
- /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
33199
+ /* @__PURE__ */ jsx107("span", { className: "text-sm", children: item[1] })
33017
33200
  ] })
33018
33201
  ]
33019
33202
  },
@@ -33026,9 +33209,9 @@ var StatusDropdownField = (props) => {
33026
33209
  };
33027
33210
 
33028
33211
  // src/widgets/basic/many2many-field/many2many.tsx
33029
- import { createPortal as createPortal5 } from "react-dom";
33030
- import { useEffect as useEffect26 } from "react";
33031
- import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
33212
+ import { createPortal as createPortal6 } from "react-dom";
33213
+ import { useEffect as useEffect27 } from "react";
33214
+ import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33032
33215
  var Many2ManyField = (props) => {
33033
33216
  const { t: t3 } = useI18n();
33034
33217
  const {
@@ -33087,7 +33270,7 @@ var Many2ManyField = (props) => {
33087
33270
  clearSearch
33088
33271
  } = searchController;
33089
33272
  const { handleCheckBoxAll, checkedAll, selectedRowKeysRef } = tableHeadController;
33090
- useEffect26(() => {
33273
+ useEffect27(() => {
33091
33274
  const groupItems = Array.isArray(selectedTags) ? selectedTags.filter((item) => item.type === "group_by") : [];
33092
33275
  if (groupItems?.length > 0) {
33093
33276
  typeof setPageLimit === "function" && setPageLimit(80);
@@ -33101,8 +33284,8 @@ var Many2ManyField = (props) => {
33101
33284
  typeof setGroupByList === "function" && setGroupByList(null);
33102
33285
  };
33103
33286
  }, [selectedTags]);
33104
- return createPortal5(
33105
- /* @__PURE__ */ jsxs71(
33287
+ return createPortal6(
33288
+ /* @__PURE__ */ jsxs73(
33106
33289
  "div",
33107
33290
  {
33108
33291
  style: {
@@ -33110,8 +33293,8 @@ var Many2ManyField = (props) => {
33110
33293
  },
33111
33294
  className: "fixed bottom-0 left-0 right-0 top-0",
33112
33295
  children: [
33113
- /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33114
- /* @__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(
33115
33298
  "div",
33116
33299
  {
33117
33300
  style: {
@@ -33119,12 +33302,12 @@ var Many2ManyField = (props) => {
33119
33302
  },
33120
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",
33121
33304
  children: [
33122
- /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33123
- /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
33124
- /* @__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, {}) })
33125
33308
  ] }),
33126
- /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33127
- /* @__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(
33128
33311
  Search,
33129
33312
  {
33130
33313
  removeSearchItems,
@@ -33158,7 +33341,7 @@ var Many2ManyField = (props) => {
33158
33341
  groupByList
33159
33342
  }
33160
33343
  ) }),
33161
- /* @__PURE__ */ jsx106(
33344
+ /* @__PURE__ */ jsx108(
33162
33345
  PaginationView,
33163
33346
  {
33164
33347
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33175,20 +33358,20 @@ var Many2ManyField = (props) => {
33175
33358
  }
33176
33359
  )
33177
33360
  ] }),
33178
- !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(
33179
33362
  "div",
33180
33363
  {
33181
33364
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33182
- 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(
33183
33366
  "div",
33184
33367
  {
33185
33368
  className: `flex w-full items-center h-full overflow-auto `,
33186
- 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(
33187
33370
  "table",
33188
33371
  {
33189
33372
  className: `relative w-full bg-white custom-dropdown `,
33190
33373
  children: [
33191
- /* @__PURE__ */ jsx106(
33374
+ /* @__PURE__ */ jsx108(
33192
33375
  TableHead,
33193
33376
  {
33194
33377
  columns,
@@ -33198,7 +33381,7 @@ var Many2ManyField = (props) => {
33198
33381
  handleCheckBoxAll
33199
33382
  }
33200
33383
  ),
33201
- rows?.length > 0 ? /* @__PURE__ */ jsx106(
33384
+ rows?.length > 0 ? /* @__PURE__ */ jsx108(
33202
33385
  TableBody,
33203
33386
  {
33204
33387
  tableGroupController,
@@ -33238,16 +33421,16 @@ var Many2ManyField = (props) => {
33238
33421
  checkedAll,
33239
33422
  context
33240
33423
  }
33241
- ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
33424
+ ) : /* @__PURE__ */ jsx108("tr", { children: /* @__PURE__ */ jsx108(
33242
33425
  "td",
33243
33426
  {
33244
33427
  className: "w-full",
33245
33428
  colSpan: columns?.length + 2,
33246
- children: /* @__PURE__ */ jsx106(
33429
+ children: /* @__PURE__ */ jsx108(
33247
33430
  "div",
33248
33431
  {
33249
33432
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33250
- children: /* @__PURE__ */ jsx106(EmptyTable, {})
33433
+ children: /* @__PURE__ */ jsx108(EmptyTable, {})
33251
33434
  }
33252
33435
  )
33253
33436
  }
@@ -33258,9 +33441,9 @@ var Many2ManyField = (props) => {
33258
33441
  }
33259
33442
  ) }) })
33260
33443
  }
33261
- ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
33262
- /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33263
- isDisplayCheckbox && /* @__PURE__ */ jsx106(
33444
+ ) }) }) : /* @__PURE__ */ jsx108(LayerLoading, {}),
33445
+ /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2 mt-auto", children: [
33446
+ isDisplayCheckbox && /* @__PURE__ */ jsx108(
33264
33447
  "button",
33265
33448
  {
33266
33449
  disabled: selectedRowKeys?.length === 0,
@@ -33270,7 +33453,7 @@ var Many2ManyField = (props) => {
33270
33453
  children: t3("choose")
33271
33454
  }
33272
33455
  ),
33273
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33456
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx108(
33274
33457
  "button",
33275
33458
  {
33276
33459
  type: "button",
@@ -33286,7 +33469,7 @@ var Many2ManyField = (props) => {
33286
33469
  children: t3("new")
33287
33470
  }
33288
33471
  ),
33289
- /* @__PURE__ */ jsx106(
33472
+ /* @__PURE__ */ jsx108(
33290
33473
  "button",
33291
33474
  {
33292
33475
  type: "button",
@@ -33307,16 +33490,16 @@ var Many2ManyField = (props) => {
33307
33490
  };
33308
33491
 
33309
33492
  // src/widgets/basic/many2one-field/many2one.tsx
33310
- import React18, { useEffect as useEffect27 } from "react";
33311
- 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";
33312
33495
  var CustomMenuList2 = (props) => {
33313
33496
  const { t: t3 } = useI18n();
33314
33497
  const { options: options2, children, selectProps } = props;
33315
33498
  const { setIsShowModalMany2Many, searchable } = selectProps;
33316
33499
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33317
- return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33500
+ return /* @__PURE__ */ jsxs74(components.MenuList, { ...props, className: "z-[99]", children: [
33318
33501
  limitedChildren,
33319
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33502
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs74(
33320
33503
  "button",
33321
33504
  {
33322
33505
  type: "button",
@@ -33359,14 +33542,14 @@ var Many2OneField = (props) => {
33359
33542
  const { t: t3 } = useI18n();
33360
33543
  if (!isForm && !isEditTable) {
33361
33544
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33362
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33545
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33363
33546
  allowShowDetail && renderDetail({
33364
33547
  idToolTip: String(name2) + Number(index4),
33365
33548
  model: options2?.model ?? relation,
33366
33549
  context: contextObject,
33367
33550
  idForm: id
33368
33551
  }),
33369
- /* @__PURE__ */ jsx107(
33552
+ /* @__PURE__ */ jsx109(
33370
33553
  "span",
33371
33554
  {
33372
33555
  className: "cursor-pointer",
@@ -33377,20 +33560,20 @@ var Many2OneField = (props) => {
33377
33560
  )
33378
33561
  ] });
33379
33562
  }
33380
- return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33563
+ return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33381
33564
  allowShowDetail && renderDetail({
33382
33565
  idToolTip: String(name2),
33383
33566
  model: options2?.model ?? relation,
33384
33567
  context: contextObject,
33385
33568
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33386
33569
  }),
33387
- /* @__PURE__ */ jsx107(
33570
+ /* @__PURE__ */ jsx109(
33388
33571
  "div",
33389
33572
  {
33390
33573
  id: name2,
33391
33574
  "data-tooltip-id": name2,
33392
33575
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33393
- children: /* @__PURE__ */ jsx107(
33576
+ children: /* @__PURE__ */ jsx109(
33394
33577
  Controller,
33395
33578
  {
33396
33579
  name: name2 ?? "",
@@ -33410,13 +33593,13 @@ var Many2OneField = (props) => {
33410
33593
  const selectedOption = isForm && options2?.service && options2?.type && options2?.model ? tempSelectedOption : tempSelectedOption && options2?.length > 0 ? options2.find(
33411
33594
  (option) => option.value === tempSelectedOption?.value
33412
33595
  ) : currentValue ? currentValue : null;
33413
- useEffect27(() => {
33596
+ useEffect28(() => {
33414
33597
  if (error2 && selectedOption) {
33415
33598
  methods?.clearErrors(name2);
33416
33599
  }
33417
33600
  }, [selectedOption]);
33418
- return /* @__PURE__ */ jsxs72("div", { className: "h-full", children: [
33419
- /* @__PURE__ */ jsx107(
33601
+ return /* @__PURE__ */ jsxs74("div", { className: "h-full", children: [
33602
+ /* @__PURE__ */ jsx109(
33420
33603
  StateManagedSelect$1,
33421
33604
  {
33422
33605
  menuShouldScrollIntoView: false,
@@ -33492,7 +33675,7 @@ var Many2OneField = (props) => {
33492
33675
  })
33493
33676
  },
33494
33677
  components: {
33495
- MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33678
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx109(
33496
33679
  CustomMenuList2,
33497
33680
  {
33498
33681
  ...menuListProps,
@@ -33503,13 +33686,13 @@ var Many2OneField = (props) => {
33503
33686
  }
33504
33687
  ),
33505
33688
  IndicatorSeparator: () => null,
33506
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33689
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx109(components.DropdownIndicator, { ...props2 })
33507
33690
  },
33508
33691
  isDisabled: readonly,
33509
33692
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33510
33693
  }
33511
33694
  ),
33512
- !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 })
33513
33696
  ] });
33514
33697
  }
33515
33698
  }
@@ -33520,7 +33703,7 @@ var Many2OneField = (props) => {
33520
33703
  };
33521
33704
 
33522
33705
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33523
- import { jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
33706
+ import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33524
33707
  var StatusbarDurationField = (props) => {
33525
33708
  const {
33526
33709
  disabled,
@@ -33530,14 +33713,14 @@ var StatusbarDurationField = (props) => {
33530
33713
  defaultValue,
33531
33714
  setModalStatus
33532
33715
  } = props;
33533
- return /* @__PURE__ */ jsx108(
33716
+ return /* @__PURE__ */ jsx110(
33534
33717
  "div",
33535
33718
  {
33536
33719
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33537
- children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33538
- /* @__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) => {
33539
33722
  const value = option?.id === defaultValue;
33540
- return /* @__PURE__ */ jsxs73(
33723
+ return /* @__PURE__ */ jsxs75(
33541
33724
  "label",
33542
33725
  {
33543
33726
  onClick: () => !disabled && handleClick(option.id),
@@ -33547,7 +33730,7 @@ var StatusbarDurationField = (props) => {
33547
33730
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33548
33731
  `,
33549
33732
  children: [
33550
- /* @__PURE__ */ jsx108(
33733
+ /* @__PURE__ */ jsx110(
33551
33734
  "input",
33552
33735
  {
33553
33736
  type: "radio",
@@ -33557,7 +33740,7 @@ var StatusbarDurationField = (props) => {
33557
33740
  }
33558
33741
  ),
33559
33742
  option?.name,
33560
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33743
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx110(
33561
33744
  "div",
33562
33745
  {
33563
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]
@@ -33572,14 +33755,14 @@ var StatusbarDurationField = (props) => {
33572
33755
  }) }),
33573
33756
  dataResponse?.records?.some(
33574
33757
  (item) => item?.fold && item.id !== defaultValue
33575
- ) && /* @__PURE__ */ jsxs73(
33758
+ ) && /* @__PURE__ */ jsxs75(
33576
33759
  "div",
33577
33760
  {
33578
33761
  onClick: () => setModalStatus(!modelStatus),
33579
33762
  className: "w-[24px] h-[24px] cursor-pointer relative",
33580
33763
  children: [
33581
- /* @__PURE__ */ jsx108(MoreIcon, {}),
33582
- modelStatus && /* @__PURE__ */ jsx108(
33764
+ /* @__PURE__ */ jsx110(MoreIcon, {}),
33765
+ modelStatus && /* @__PURE__ */ jsx110(
33583
33766
  "div",
33584
33767
  {
33585
33768
  onClick: (e3) => e3.stopPropagation(),
@@ -33588,7 +33771,7 @@ var StatusbarDurationField = (props) => {
33588
33771
  (item) => item?.fold && item.id !== defaultValue
33589
33772
  )?.map((option) => {
33590
33773
  const value = option?.id === defaultValue;
33591
- return /* @__PURE__ */ jsx108(
33774
+ return /* @__PURE__ */ jsx110(
33592
33775
  "div",
33593
33776
  {
33594
33777
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33610,14 +33793,14 @@ var StatusbarDurationField = (props) => {
33610
33793
 
33611
33794
  // src/widgets/basic/status-bar-field/option/option.tsx
33612
33795
  import { useMemo as useMemo11 } from "react";
33613
- 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";
33614
33797
  var StatusBarOptionField = (props) => {
33615
33798
  const { selection, defaultValue } = props;
33616
33799
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33617
33800
  const indexInProgress = memoizedStatusOptions?.findIndex(
33618
33801
  (option) => option?.[0] === defaultValue
33619
33802
  );
33620
- return /* @__PURE__ */ jsx109(
33803
+ return /* @__PURE__ */ jsx111(
33621
33804
  "div",
33622
33805
  {
33623
33806
  style: {
@@ -33626,8 +33809,8 @@ var StatusBarOptionField = (props) => {
33626
33809
  flexWrap: "wrap"
33627
33810
  },
33628
33811
  children: memoizedStatusOptions?.map((option, index4) => {
33629
- return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33630
- /* @__PURE__ */ jsxs74(
33812
+ return /* @__PURE__ */ jsxs76(Fragment33, { children: [
33813
+ /* @__PURE__ */ jsxs76(
33631
33814
  "div",
33632
33815
  {
33633
33816
  style: {
@@ -33645,7 +33828,7 @@ var StatusBarOptionField = (props) => {
33645
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" : ""
33646
33829
  },
33647
33830
  children: [
33648
- /* @__PURE__ */ jsx109(
33831
+ /* @__PURE__ */ jsx111(
33649
33832
  "span",
33650
33833
  {
33651
33834
  style: {
@@ -33657,10 +33840,10 @@ var StatusBarOptionField = (props) => {
33657
33840
  alignItems: "center",
33658
33841
  borderRadius: "100%"
33659
33842
  },
33660
- 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, {})
33661
33844
  }
33662
33845
  ),
33663
- /* @__PURE__ */ jsx109(
33846
+ /* @__PURE__ */ jsx111(
33664
33847
  "span",
33665
33848
  {
33666
33849
  style: {
@@ -33673,7 +33856,7 @@ var StatusBarOptionField = (props) => {
33673
33856
  },
33674
33857
  option?.[0]
33675
33858
  ),
33676
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33859
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx111(
33677
33860
  "div",
33678
33861
  {
33679
33862
  style: {
@@ -33689,7 +33872,7 @@ var StatusBarOptionField = (props) => {
33689
33872
  );
33690
33873
  };
33691
33874
  var ICMinus = () => {
33692
- return /* @__PURE__ */ jsx109(
33875
+ return /* @__PURE__ */ jsx111(
33693
33876
  "svg",
33694
33877
  {
33695
33878
  xmlns: "http://www.w3.org/2000/svg",
@@ -33697,7 +33880,7 @@ var ICMinus = () => {
33697
33880
  height: "16",
33698
33881
  viewBox: "0 0 16 16",
33699
33882
  fill: "none",
33700
- children: /* @__PURE__ */ jsx109(
33883
+ children: /* @__PURE__ */ jsx111(
33701
33884
  "path",
33702
33885
  {
33703
33886
  d: "M4 8H12",
@@ -33711,7 +33894,7 @@ var ICMinus = () => {
33711
33894
  );
33712
33895
  };
33713
33896
  var ICCircle = () => {
33714
- return /* @__PURE__ */ jsx109(
33897
+ return /* @__PURE__ */ jsx111(
33715
33898
  "svg",
33716
33899
  {
33717
33900
  xmlns: "http://www.w3.org/2000/svg",
@@ -33719,12 +33902,12 @@ var ICCircle = () => {
33719
33902
  height: "8",
33720
33903
  viewBox: "0 0 8 8",
33721
33904
  fill: "none",
33722
- 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" })
33723
33906
  }
33724
33907
  );
33725
33908
  };
33726
33909
  var ICCheck = () => {
33727
- return /* @__PURE__ */ jsx109(
33910
+ return /* @__PURE__ */ jsx111(
33728
33911
  "svg",
33729
33912
  {
33730
33913
  xmlns: "http://www.w3.org/2000/svg",
@@ -33732,7 +33915,7 @@ var ICCheck = () => {
33732
33915
  height: "16",
33733
33916
  viewBox: "0 0 16 16",
33734
33917
  fill: "none",
33735
- children: /* @__PURE__ */ jsx109(
33918
+ children: /* @__PURE__ */ jsx111(
33736
33919
  "path",
33737
33920
  {
33738
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",
@@ -33746,7 +33929,7 @@ var ICCheck = () => {
33746
33929
  };
33747
33930
 
33748
33931
  // src/widgets/basic/date-option-field/date-option.tsx
33749
- import { jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
33932
+ import { jsx as jsx112, jsxs as jsxs77 } from "react/jsx-runtime";
33750
33933
  var DateOptionField = (props) => {
33751
33934
  const {
33752
33935
  name: name2,
@@ -33757,19 +33940,19 @@ var DateOptionField = (props) => {
33757
33940
  string,
33758
33941
  onChange: onChange2
33759
33942
  } = props;
33760
- return /* @__PURE__ */ jsx110(
33943
+ return /* @__PURE__ */ jsx112(
33761
33944
  Controller,
33762
33945
  {
33763
33946
  name: name2 ?? "",
33764
33947
  control: methods?.control,
33765
- render: ({ field }) => /* @__PURE__ */ jsxs75(
33948
+ render: ({ field }) => /* @__PURE__ */ jsxs77(
33766
33949
  "label",
33767
33950
  {
33768
33951
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33769
33952
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33770
33953
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33771
33954
  children: [
33772
- /* @__PURE__ */ jsx110(
33955
+ /* @__PURE__ */ jsx112(
33773
33956
  "input",
33774
33957
  {
33775
33958
  type: "checkbox",
@@ -33821,6 +34004,7 @@ export {
33821
34004
  DOTS,
33822
34005
  DateField,
33823
34006
  DateOptionField,
34007
+ DefaultFileIcon,
33824
34008
  DeleteIcon,
33825
34009
  DeleteIconDanger,
33826
34010
  DownLoadBinaryField,
@@ -33845,6 +34029,7 @@ export {
33845
34029
  ImageIcon,
33846
34030
  InfomationField,
33847
34031
  IntegerField,
34032
+ JSONFileIcon,
33848
34033
  KanbanIcon,
33849
34034
  LayerLoading,
33850
34035
  ListIcon,