@fctc/sme-widget-ui 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widgets.mjs CHANGED
@@ -6707,9 +6707,9 @@ var PlayIcon = () => {
6707
6707
  import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
6708
6708
 
6709
6709
  // src/icons/search-icon.tsx
6710
- import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
6710
+ import { jsx as jsx27 } from "react/jsx-runtime";
6711
6711
  var SearchIcon = () => {
6712
- return /* @__PURE__ */ jsxs15(
6712
+ return /* @__PURE__ */ jsx27(
6713
6713
  "svg",
6714
6714
  {
6715
6715
  xmlns: "http://www.w3.org/2000/svg",
@@ -6717,28 +6717,19 @@ var SearchIcon = () => {
6717
6717
  height: "20",
6718
6718
  viewBox: "0 0 20 20",
6719
6719
  fill: "none",
6720
- children: [
6721
- /* @__PURE__ */ jsx27(
6722
- "path",
6723
- {
6724
- d: "M9.58334 18.1248C4.875 18.1248 1.04167 14.2915 1.04167 9.58317C1.04167 4.87484 4.875 1.0415 9.58334 1.0415C14.2917 1.0415 18.125 4.87484 18.125 9.58317C18.125 14.2915 14.2917 18.1248 9.58334 18.1248ZM9.58334 2.2915C5.55834 2.2915 2.29167 5.5665 2.29167 9.58317C2.29167 13.5998 5.55834 16.8748 9.58334 16.8748C13.6083 16.8748 16.875 13.5998 16.875 9.58317C16.875 5.5665 13.6083 2.2915 9.58334 2.2915Z",
6725
- fill: "#525252"
6726
- }
6727
- ),
6728
- /* @__PURE__ */ jsx27(
6729
- "path",
6730
- {
6731
- d: "M18.3333 18.9585C18.175 18.9585 18.0167 18.9002 17.8917 18.7752L16.225 17.1085C15.9833 16.8669 15.9833 16.4669 16.225 16.2252C16.4667 15.9835 16.8667 15.9835 17.1083 16.2252L18.775 17.8919C19.0167 18.1335 19.0167 18.5335 18.775 18.7752C18.65 18.9002 18.4917 18.9585 18.3333 18.9585Z",
6732
- fill: "#525252"
6733
- }
6734
- )
6735
- ]
6720
+ children: /* @__PURE__ */ jsx27(
6721
+ "path",
6722
+ {
6723
+ d: "M14.5232 13.4627L17.7355 16.6742L16.6742 17.7355L13.4627 14.5232C12.2678 15.4812 10.7815 16.0022 9.25 16C5.524 16 2.5 12.976 2.5 9.25C2.5 5.524 5.524 2.5 9.25 2.5C12.976 2.5 16 5.524 16 9.25C16.0022 10.7815 15.4812 12.2678 14.5232 13.4627ZM13.0187 12.9062C13.9706 11.9274 14.5021 10.6153 14.5 9.25C14.5 6.349 12.1502 4 9.25 4C6.349 4 4 6.349 4 9.25C4 12.1502 6.349 14.5 9.25 14.5C10.6153 14.5021 11.9274 13.9706 12.9062 13.0187L13.0187 12.9062Z",
6724
+ fill: "#AEAEAE"
6725
+ }
6726
+ )
6736
6727
  }
6737
6728
  );
6738
6729
  };
6739
6730
 
6740
6731
  // src/icons/setting-icon.tsx
6741
- import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
6732
+ import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
6742
6733
 
6743
6734
  // src/icons/star-filled-icon.tsx
6744
6735
  import { jsx as jsx29 } from "react/jsx-runtime";
@@ -6784,12 +6775,12 @@ var TriangleIcon = (props) => /* @__PURE__ */ jsx30(
6784
6775
  import { jsx as jsx31 } from "react/jsx-runtime";
6785
6776
 
6786
6777
  // src/icons/vector-icon.tsx
6787
- import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
6778
+ import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
6788
6779
 
6789
6780
  // src/icons/zip-icon.tsx
6790
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
6781
+ import { jsx as jsx33, jsxs as jsxs17 } from "react/jsx-runtime";
6791
6782
  var ZipIcon = () => {
6792
- return /* @__PURE__ */ jsxs18(
6783
+ return /* @__PURE__ */ jsxs17(
6793
6784
  "svg",
6794
6785
  {
6795
6786
  width: "40",
@@ -6798,8 +6789,8 @@ var ZipIcon = () => {
6798
6789
  fill: "none",
6799
6790
  xmlns: "http://www.w3.org/2000/svg",
6800
6791
  children: [
6801
- /* @__PURE__ */ jsxs18("g", { clipPath: "url(#clip0_3042_66427)", children: [
6802
- /* @__PURE__ */ jsxs18("g", { filter: "url(#filter0_di_3042_66427)", children: [
6792
+ /* @__PURE__ */ jsxs17("g", { clipPath: "url(#clip0_3042_66427)", children: [
6793
+ /* @__PURE__ */ jsxs17("g", { filter: "url(#filter0_di_3042_66427)", children: [
6803
6794
  /* @__PURE__ */ jsx33(
6804
6795
  "path",
6805
6796
  {
@@ -6824,7 +6815,7 @@ var ZipIcon = () => {
6824
6815
  strokeWidth: "1.5"
6825
6816
  }
6826
6817
  ),
6827
- /* @__PURE__ */ jsxs18("g", { filter: "url(#filter1_i_3042_66427)", children: [
6818
+ /* @__PURE__ */ jsxs17("g", { filter: "url(#filter1_i_3042_66427)", children: [
6828
6819
  /* @__PURE__ */ jsx33("mask", { id: "path-4-inside-1_3042_66427", fill: "white", children: /* @__PURE__ */ jsx33("path", { d: "M0 22C0 19.7909 1.79086 18 4 18H20C22.2091 18 24 19.7909 24 22V30C24 32.2091 22.2091 34 20 34H4C1.79086 34 0 32.2091 0 30V22Z" }) }),
6829
6820
  /* @__PURE__ */ jsx33(
6830
6821
  "path",
@@ -6851,8 +6842,8 @@ var ZipIcon = () => {
6851
6842
  )
6852
6843
  ] })
6853
6844
  ] }),
6854
- /* @__PURE__ */ jsxs18("defs", { children: [
6855
- /* @__PURE__ */ jsxs18(
6845
+ /* @__PURE__ */ jsxs17("defs", { children: [
6846
+ /* @__PURE__ */ jsxs17(
6856
6847
  "filter",
6857
6848
  {
6858
6849
  id: "filter0_di_3042_66427",
@@ -6930,7 +6921,7 @@ var ZipIcon = () => {
6930
6921
  ]
6931
6922
  }
6932
6923
  ),
6933
- /* @__PURE__ */ jsxs18(
6924
+ /* @__PURE__ */ jsxs17(
6934
6925
  "filter",
6935
6926
  {
6936
6927
  id: "filter1_i_3042_66427",
@@ -6989,9 +6980,9 @@ var ZipIcon = () => {
6989
6980
  };
6990
6981
 
6991
6982
  // src/icons/empty-data.tsx
6992
- import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
6983
+ import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
6993
6984
  var EmptyData = ({ className }) => {
6994
- return /* @__PURE__ */ jsxs19(
6985
+ return /* @__PURE__ */ jsxs18(
6995
6986
  "svg",
6996
6987
  {
6997
6988
  xmlns: "http://www.w3.org/2000/svg",
@@ -7000,7 +6991,7 @@ var EmptyData = ({ className }) => {
7000
6991
  viewBox: "0 0 120 140",
7001
6992
  fill: "none",
7002
6993
  children: [
7003
- /* @__PURE__ */ jsxs19("g", { clipPath: "url(#clip0_5603_10527)", children: [
6994
+ /* @__PURE__ */ jsxs18("g", { clipPath: "url(#clip0_5603_10527)", children: [
7004
6995
  /* @__PURE__ */ jsx34("g", { filter: "url(#filter0_d_5603_10527)", children: /* @__PURE__ */ jsx34(
7005
6996
  "path",
7006
6997
  {
@@ -7033,7 +7024,7 @@ var EmptyData = ({ className }) => {
7033
7024
  )
7034
7025
  }
7035
7026
  ),
7036
- /* @__PURE__ */ jsxs19("g", { mask: "url(#mask0_5603_10527)", children: [
7027
+ /* @__PURE__ */ jsxs18("g", { mask: "url(#mask0_5603_10527)", children: [
7037
7028
  /* @__PURE__ */ jsx34(
7038
7029
  "path",
7039
7030
  {
@@ -7098,7 +7089,7 @@ var EmptyData = ({ className }) => {
7098
7089
  )
7099
7090
  }
7100
7091
  ),
7101
- /* @__PURE__ */ jsx34("g", { mask: "url(#mask2_5603_10527)", children: /* @__PURE__ */ jsxs19("g", { opacity: "0.07", children: [
7092
+ /* @__PURE__ */ jsx34("g", { mask: "url(#mask2_5603_10527)", children: /* @__PURE__ */ jsxs18("g", { opacity: "0.07", children: [
7102
7093
  /* @__PURE__ */ jsx34("path", { d: "M73.716 93H27V99.214H73.716V93Z", fill: "black" }),
7103
7094
  /* @__PURE__ */ jsx34("path", { d: "M95.812 101.699H27V107.913H95.812V101.699Z", fill: "black" }),
7104
7095
  /* @__PURE__ */ jsx34("path", { d: "M69.297 113.506H27V119.72H69.297V113.506Z", fill: "black" }),
@@ -7138,8 +7129,8 @@ var EmptyData = ({ className }) => {
7138
7129
  }
7139
7130
  )
7140
7131
  ] }),
7141
- /* @__PURE__ */ jsxs19("defs", { children: [
7142
- /* @__PURE__ */ jsxs19(
7132
+ /* @__PURE__ */ jsxs18("defs", { children: [
7133
+ /* @__PURE__ */ jsxs18(
7143
7134
  "filter",
7144
7135
  {
7145
7136
  id: "filter0_d_5603_10527",
@@ -7197,7 +7188,7 @@ var EmptyData = ({ className }) => {
7197
7188
  };
7198
7189
 
7199
7190
  // src/icons/loading-icon.tsx
7200
- import { jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
7191
+ import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
7201
7192
  var LoadingIcon = ({
7202
7193
  width = 15,
7203
7194
  height = 15,
@@ -7218,7 +7209,7 @@ var LoadingIcon = ({
7218
7209
  background: "transparent"
7219
7210
  },
7220
7211
  ...props,
7221
- children: /* @__PURE__ */ jsxs20("g", { children: [
7212
+ children: /* @__PURE__ */ jsxs19("g", { children: [
7222
7213
  /* @__PURE__ */ jsx35(
7223
7214
  "circle",
7224
7215
  {
@@ -7249,8 +7240,8 @@ var LoadingIcon = ({
7249
7240
  };
7250
7241
 
7251
7242
  // src/icons/paid-icon.tsx
7252
- import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
7253
- var PaidIcon = () => /* @__PURE__ */ jsxs21(
7243
+ import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
7244
+ var PaidIcon = () => /* @__PURE__ */ jsxs20(
7254
7245
  "svg",
7255
7246
  {
7256
7247
  width: "208",
@@ -7259,7 +7250,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs21(
7259
7250
  fill: "none",
7260
7251
  xmlns: "http://www.w3.org/2000/svg",
7261
7252
  children: [
7262
- /* @__PURE__ */ jsxs21("g", { opacity: "0.5", filter: "url(#filter0_d_615_26793)", children: [
7253
+ /* @__PURE__ */ jsxs20("g", { opacity: "0.5", filter: "url(#filter0_d_615_26793)", children: [
7263
7254
  /* @__PURE__ */ jsx36(
7264
7255
  "path",
7265
7256
  {
@@ -7335,8 +7326,8 @@ var PaidIcon = () => /* @__PURE__ */ jsxs21(
7335
7326
  }
7336
7327
  )
7337
7328
  ] }),
7338
- /* @__PURE__ */ jsxs21("defs", { children: [
7339
- /* @__PURE__ */ jsxs21(
7329
+ /* @__PURE__ */ jsxs20("defs", { children: [
7330
+ /* @__PURE__ */ jsxs20(
7340
7331
  "filter",
7341
7332
  {
7342
7333
  id: "filter0_d_615_26793",
@@ -7433,13 +7424,13 @@ var PlaceHolderIcon = () => {
7433
7424
  };
7434
7425
 
7435
7426
  // src/icons/google-icon.tsx
7436
- import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
7427
+ import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
7437
7428
  var GoogleIcon = ({
7438
7429
  width = 20,
7439
7430
  height = 20,
7440
7431
  ...props
7441
7432
  }) => {
7442
- return /* @__PURE__ */ jsxs22(
7433
+ return /* @__PURE__ */ jsxs21(
7443
7434
  "svg",
7444
7435
  {
7445
7436
  xmlns: "http://www.w3.org/2000/svg",
@@ -7484,9 +7475,9 @@ var GoogleIcon = ({
7484
7475
  };
7485
7476
 
7486
7477
  // src/icons/eye-closed-icon.tsx
7487
- import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
7478
+ import { jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
7488
7479
  var EyeClosedIcon = () => {
7489
- return /* @__PURE__ */ jsxs23(
7480
+ return /* @__PURE__ */ jsxs22(
7490
7481
  "svg",
7491
7482
  {
7492
7483
  width: "20",
@@ -11677,7 +11668,7 @@ instance.use(Browser).use(initReactI18next).init({
11677
11668
  var i18n_default = instance;
11678
11669
 
11679
11670
  // src/widgets/advanced/table/table-group.tsx
11680
- import { Fragment as Fragment2, jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
11671
+ import { Fragment as Fragment2, jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
11681
11672
  var TableGroup = (props) => {
11682
11673
  const {
11683
11674
  handleExpandChildGroup,
@@ -11708,8 +11699,8 @@ var TableGroup = (props) => {
11708
11699
  pageGroup,
11709
11700
  setPageGroup
11710
11701
  } = props;
11711
- return /* @__PURE__ */ jsxs24(Fragment2, { children: [
11712
- /* @__PURE__ */ jsxs24(
11702
+ return /* @__PURE__ */ jsxs23(Fragment2, { children: [
11703
+ /* @__PURE__ */ jsxs23(
11713
11704
  "tr",
11714
11705
  {
11715
11706
  draggable: true,
@@ -11722,13 +11713,13 @@ var TableGroup = (props) => {
11722
11713
  colSpan: colEmptyGroup.fromStart ?? 1,
11723
11714
  style: { display: "table-cell" },
11724
11715
  className: "relative z-20 w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
11725
- children: /* @__PURE__ */ jsxs24(
11716
+ children: /* @__PURE__ */ jsxs23(
11726
11717
  "div",
11727
11718
  {
11728
11719
  style: { paddingLeft: leftPadding },
11729
11720
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
11730
11721
  children: [
11731
- /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
11722
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
11732
11723
  /* @__PURE__ */ jsx40(
11733
11724
  TriangleIcon,
11734
11725
  {
@@ -11805,7 +11796,7 @@ var TableGroup = (props) => {
11805
11796
 
11806
11797
  // src/widgets/advanced/table/table-row.tsx
11807
11798
  import { useEffect as useEffect2, useMemo as useMemo3, useRef as useRef2 } from "react";
11808
- import { Fragment as Fragment3, jsx as jsx41, jsxs as jsxs25 } from "react/jsx-runtime";
11799
+ import { Fragment as Fragment3, jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
11809
11800
  var Row = (props) => {
11810
11801
  const {
11811
11802
  row,
@@ -11875,7 +11866,7 @@ var Row = (props) => {
11875
11866
  {
11876
11867
  "data-row-id": row?.id,
11877
11868
  className: `border-b border-[#e8e8e8] cursor-pointer`,
11878
- children: /* @__PURE__ */ jsxs25(Fragment3, { children: [
11869
+ children: /* @__PURE__ */ jsxs24(Fragment3, { children: [
11879
11870
  isDisplayCheckbox && /* @__PURE__ */ jsx41(
11880
11871
  "td",
11881
11872
  {
@@ -11932,7 +11923,7 @@ var Row = (props) => {
11932
11923
  };
11933
11924
 
11934
11925
  // src/widgets/advanced/table/table-body.tsx
11935
- import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
11926
+ import { jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
11936
11927
  var TableBodyRow = (props) => {
11937
11928
  const {
11938
11929
  rows,
@@ -11956,7 +11947,8 @@ var TableBodyRow = (props) => {
11956
11947
  checked,
11957
11948
  isForm,
11958
11949
  typeCo,
11959
- selectedRowKeys
11950
+ selectedRowKeys,
11951
+ isEditTable
11960
11952
  } = props;
11961
11953
  const [isAutoSelect, setIsAutoSelect] = useState2(false);
11962
11954
  const rootStyle = getComputedStyle(document.documentElement);
@@ -12001,16 +11993,16 @@ var TableBodyRow = (props) => {
12001
11993
  checkedAll,
12002
11994
  setIsAutoSelect,
12003
11995
  isAutoSelect,
12004
- s: true,
12005
11996
  selectedRowKeysRef,
12006
- setSelectedRowKeys
11997
+ setSelectedRowKeys,
11998
+ isEditTable
12007
11999
  },
12008
12000
  `record-${index4}`
12009
12001
  );
12010
- }) : !isForm && /* @__PURE__ */ jsx42("tr", { children: /* @__PURE__ */ jsx42("td", { className: "w-full", colSpan: columns?.length + 2, children: /* @__PURE__ */ jsxs26(
12002
+ }) : !isForm && /* @__PURE__ */ jsx42("tr", { children: /* @__PURE__ */ jsx42("td", { className: "w-full", colSpan: columns?.length + 2, children: /* @__PURE__ */ jsxs25(
12011
12003
  "div",
12012
12004
  {
12013
- className: `flex flex-col items-center justify-center gap-3 ${typeCo === "form" ? "my-6" : "my-20"}`,
12005
+ className: `flex flex-col items-center justify-center gap-3 ${typeCo === "form" ? "my-6" : "my-2"}`,
12014
12006
  children: [
12015
12007
  /* @__PURE__ */ jsx42(EmptyData, { className: colorPrimary }),
12016
12008
  /* @__PURE__ */ jsx42("div", { className: "text-xl font-extrabold", children: i18n_default.t("empty_data") })
@@ -12019,7 +12011,7 @@ var TableBodyRow = (props) => {
12019
12011
  ) }) });
12020
12012
  };
12021
12013
  var TableBody = (props) => {
12022
- return /* @__PURE__ */ jsx42("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx42(TableBodyRow, { ...props }) });
12014
+ return /* @__PURE__ */ jsx42("tbody", { className: "overflow-hidden z-0", children: /* @__PURE__ */ jsx42(TableBodyRow, { ...props }) });
12023
12015
  };
12024
12016
 
12025
12017
  // src/widgets/advanced/table/table-filter.tsx
@@ -12059,7 +12051,7 @@ var useClickOutside = ({
12059
12051
  };
12060
12052
 
12061
12053
  // src/widgets/advanced/table/table-filter.tsx
12062
- import { jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
12054
+ import { jsx as jsx43, jsxs as jsxs26 } from "react/jsx-runtime";
12063
12055
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
12064
12056
  const [openTableFilter, setOpenTableFilter] = useState3();
12065
12057
  const [filterPosition, setFilterPosition] = useState3(null);
@@ -12091,7 +12083,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
12091
12083
  window.removeEventListener("resize", updatePosition);
12092
12084
  };
12093
12085
  }, [filterRef, openTableFilter]);
12094
- return /* @__PURE__ */ jsxs27(
12086
+ return /* @__PURE__ */ jsxs26(
12095
12087
  "div",
12096
12088
  {
12097
12089
  ref: filterRef,
@@ -12108,7 +12100,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
12108
12100
  onClick: () => {
12109
12101
  setOpenTableFilter(!openTableFilter);
12110
12102
  },
12111
- children: /* @__PURE__ */ jsxs27(
12103
+ children: /* @__PURE__ */ jsxs26(
12112
12104
  "svg",
12113
12105
  {
12114
12106
  xmlns: "http://www.w3.org/2000/svg",
@@ -12172,7 +12164,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
12172
12164
  style: { top: filterPosition?.top, right: filterPosition?.right },
12173
12165
  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",
12174
12166
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
12175
- return /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
12167
+ return /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2", children: [
12176
12168
  /* @__PURE__ */ jsx43(
12177
12169
  "input",
12178
12170
  {
@@ -12203,14 +12195,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
12203
12195
  };
12204
12196
 
12205
12197
  // src/widgets/advanced/table/table-footer.tsx
12206
- import { jsx as jsx44, jsxs as jsxs28 } from "react/jsx-runtime";
12198
+ import { jsx as jsx44, jsxs as jsxs27 } from "react/jsx-runtime";
12207
12199
  var TableFooter = ({ onAddRow, rows }) => {
12208
12200
  const emptyData = rows?.length <= 0;
12209
12201
  return /* @__PURE__ */ jsx44("tfoot", { children: /* @__PURE__ */ jsx44("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx44(
12210
12202
  "td",
12211
12203
  {
12212
12204
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
12213
- children: /* @__PURE__ */ jsxs28(
12205
+ children: /* @__PURE__ */ jsxs27(
12214
12206
  "button",
12215
12207
  {
12216
12208
  type: "button",
@@ -12220,7 +12212,7 @@ var TableFooter = ({ onAddRow, rows }) => {
12220
12212
  },
12221
12213
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
12222
12214
  children: [
12223
- /* @__PURE__ */ jsxs28(
12215
+ /* @__PURE__ */ jsxs27(
12224
12216
  "svg",
12225
12217
  {
12226
12218
  style: {
@@ -12259,7 +12251,7 @@ var TableFooter = ({ onAddRow, rows }) => {
12259
12251
  };
12260
12252
 
12261
12253
  // src/widgets/advanced/table/table-head.tsx
12262
- import { jsx as jsx45, jsxs as jsxs29 } from "react/jsx-runtime";
12254
+ import { jsx as jsx45, jsxs as jsxs28 } from "react/jsx-runtime";
12263
12255
  var TableHead = (props) => {
12264
12256
  const {
12265
12257
  handleCheckBoxAll,
@@ -12269,11 +12261,11 @@ var TableHead = (props) => {
12269
12261
  onRemoveRow,
12270
12262
  onToggleColumnOptional
12271
12263
  } = props;
12272
- return /* @__PURE__ */ jsx45("thead", { className: "relative z-[0]", children: /* @__PURE__ */ jsxs29(
12264
+ return /* @__PURE__ */ jsx45("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs28(
12273
12265
  "tr",
12274
12266
  {
12275
12267
  style: { userSelect: "none", WebkitUserSelect: "none" },
12276
- className: "border-b-[1.5px] border-[#DEE7DD] sticky top-0 bg-[#eff1f2] z-[1]",
12268
+ className: "border-b-[1.5px] border-[rgba(66,66,66,0.12)] sticky top-0 bg-white z-[1]",
12277
12269
  children: [
12278
12270
  isDisplayCheckbox && /* @__PURE__ */ jsx45(
12279
12271
  "th",
@@ -14159,7 +14151,7 @@ Button.displayName = "Button";
14159
14151
 
14160
14152
  // src/widgets/advanced/login/shared/text-input.tsx
14161
14153
  import { useState as useState4 } from "react";
14162
- import { jsx as jsx47, jsxs as jsxs30 } from "react/jsx-runtime";
14154
+ import { jsx as jsx47, jsxs as jsxs29 } from "react/jsx-runtime";
14163
14155
  function TextInput(props) {
14164
14156
  const {
14165
14157
  className,
@@ -14173,12 +14165,12 @@ function TextInput(props) {
14173
14165
  required
14174
14166
  } = props;
14175
14167
  const [showPassword, setShowPassword] = useState4(false);
14176
- return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14177
- label && /* @__PURE__ */ jsxs30("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14168
+ return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14169
+ label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14178
14170
  label,
14179
14171
  required ? /* @__PURE__ */ jsx47("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14180
14172
  ] }),
14181
- /* @__PURE__ */ jsxs30(
14173
+ /* @__PURE__ */ jsxs29(
14182
14174
  "div",
14183
14175
  {
14184
14176
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
@@ -14215,7 +14207,7 @@ function TextInput(props) {
14215
14207
 
14216
14208
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
14217
14209
  import { useEffect as useEffect5 } from "react";
14218
- import { jsx as jsx48, jsxs as jsxs31 } from "react/jsx-runtime";
14210
+ import { jsx as jsx48, jsxs as jsxs30 } from "react/jsx-runtime";
14219
14211
  var STAY_LOGIN_IN = "stayLoginIn";
14220
14212
  function FormOptions({
14221
14213
  forgotPasswordUrl,
@@ -14241,8 +14233,8 @@ function FormOptions({
14241
14233
  useEffect5(() => {
14242
14234
  localStorage.setItem(STAY_LOGIN_IN, "false");
14243
14235
  }, []);
14244
- return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14245
- /* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
14236
+ return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14237
+ /* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
14246
14238
  /* @__PURE__ */ jsx48(
14247
14239
  "input",
14248
14240
  {
@@ -14270,7 +14262,7 @@ var loginSchema = z.object({
14270
14262
  });
14271
14263
 
14272
14264
  // src/widgets/advanced/login/provider/credential/index.tsx
14273
- import { Fragment as Fragment4, jsx as jsx49, jsxs as jsxs32 } from "react/jsx-runtime";
14265
+ import { Fragment as Fragment4, jsx as jsx49, jsxs as jsxs31 } from "react/jsx-runtime";
14274
14266
  var CredentialLogin = (props) => {
14275
14267
  const {
14276
14268
  shouldRenderDivider,
@@ -14290,15 +14282,15 @@ var CredentialLogin = (props) => {
14290
14282
  mode: "onChange",
14291
14283
  resolver: s2(loginSchema)
14292
14284
  });
14293
- return /* @__PURE__ */ jsxs32(Fragment4, { children: [
14294
- /* @__PURE__ */ jsxs32(
14285
+ return /* @__PURE__ */ jsxs31(Fragment4, { children: [
14286
+ /* @__PURE__ */ jsxs31(
14295
14287
  "form",
14296
14288
  {
14297
14289
  onSubmit: handleSubmit(onSubmit ?? (() => {
14298
14290
  })),
14299
14291
  className: `flex w-full h-fit flex-col gap-10`,
14300
14292
  children: [
14301
- /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
14293
+ /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
14302
14294
  /* @__PURE__ */ jsx49(
14303
14295
  TextInput,
14304
14296
  {
@@ -14347,7 +14339,7 @@ var CredentialLogin = (props) => {
14347
14339
  ]
14348
14340
  }
14349
14341
  ),
14350
- shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
14342
+ shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
14351
14343
  /* @__PURE__ */ jsx49("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
14352
14344
  /* @__PURE__ */ jsx49("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
14353
14345
  ] })
@@ -14355,10 +14347,10 @@ var CredentialLogin = (props) => {
14355
14347
  };
14356
14348
 
14357
14349
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
14358
- import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
14350
+ import { jsx as jsx50, jsxs as jsxs32 } from "react/jsx-runtime";
14359
14351
  function GoogleButton(props) {
14360
14352
  const { onLoginGoogle, db } = props;
14361
- return /* @__PURE__ */ jsxs33(
14353
+ return /* @__PURE__ */ jsxs32(
14362
14354
  "button",
14363
14355
  {
14364
14356
  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",
@@ -14380,22 +14372,22 @@ function SocialRedirect(props) {
14380
14372
  }
14381
14373
 
14382
14374
  // src/widgets/advanced/login/provider/google/index.tsx
14383
- import { Fragment as Fragment6, jsx as jsx52, jsxs as jsxs34 } from "react/jsx-runtime";
14375
+ import { Fragment as Fragment6, jsx as jsx52, jsxs as jsxs33 } from "react/jsx-runtime";
14384
14376
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
14385
- return /* @__PURE__ */ jsxs34(Fragment6, { children: [
14377
+ return /* @__PURE__ */ jsxs33(Fragment6, { children: [
14386
14378
  /* @__PURE__ */ jsx52(GoogleButton, { db, onLoginGoogle }),
14387
14379
  /* @__PURE__ */ jsx52(SocialRedirect, { db, onLoginSocial })
14388
14380
  ] });
14389
14381
  };
14390
14382
 
14391
14383
  // src/widgets/advanced/login/index.tsx
14392
- import { jsx as jsx53, jsxs as jsxs35 } from "react/jsx-runtime";
14384
+ import { jsx as jsx53, jsxs as jsxs34 } from "react/jsx-runtime";
14393
14385
  var LoginProviderMapping = {
14394
14386
  google: GoogleLogin
14395
14387
  };
14396
14388
  var Login = (props) => {
14397
14389
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
14398
- return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
14390
+ return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
14399
14391
  /* @__PURE__ */ jsx53(
14400
14392
  CredentialLogin,
14401
14393
  {
@@ -14420,7 +14412,7 @@ var Login = (props) => {
14420
14412
  };
14421
14413
 
14422
14414
  // src/widgets/advanced/search/popup-filter/index.tsx
14423
- import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
14415
+ import { jsx as jsx54, jsxs as jsxs35 } from "react/jsx-runtime";
14424
14416
  var PopupFilter = ({
14425
14417
  handleAddTagSearch,
14426
14418
  removeSearchItems,
@@ -14430,13 +14422,13 @@ var PopupFilter = ({
14430
14422
  setGroupBy,
14431
14423
  fields
14432
14424
  }) => {
14433
- return /* @__PURE__ */ jsx54("div", { className: "popup-filter absolute right-0 top-[calc(100%_+_3px)] z-[33] w-auto min-w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl", children: /* @__PURE__ */ jsxs36(
14425
+ return /* @__PURE__ */ jsx54("div", { className: "popup-filter absolute right-0 top-[calc(100%_+_3px)] z-[33] w-auto min-w-full overflow-x-auto rounded-lg border bg-white border-none shadow-xl", children: /* @__PURE__ */ jsxs35(
14434
14426
  "div",
14435
14427
  {
14436
14428
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
14437
14429
  children: [
14438
- filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
14439
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14430
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
14431
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14440
14432
  /* @__PURE__ */ jsx54(FilterIcon, { className: "filter-by-icon text-primary" }),
14441
14433
  /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
14442
14434
  ] }),
@@ -14448,7 +14440,7 @@ var PopupFilter = ({
14448
14440
  acc.push(/* @__PURE__ */ jsx54("hr", { className: "my-2" }, "separator-" + index4));
14449
14441
  }
14450
14442
  acc.push(
14451
- /* @__PURE__ */ jsxs36(
14443
+ /* @__PURE__ */ jsxs35(
14452
14444
  "button",
14453
14445
  {
14454
14446
  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)]"}`,
@@ -14484,15 +14476,15 @@ var PopupFilter = ({
14484
14476
  }, [])
14485
14477
  ] }),
14486
14478
  filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx54("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
14487
- groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
14488
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14479
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
14480
+ /* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14489
14481
  /* @__PURE__ */ jsx54(GroupByIcon, { className: "group-by-icon text-primary" }),
14490
14482
  /* @__PURE__ */ jsx54("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
14491
14483
  ] }),
14492
14484
  groupBy?.map((item, index4) => {
14493
14485
  const isExist = item?.active;
14494
14486
  if (!item.string) return;
14495
- return /* @__PURE__ */ jsxs36(
14487
+ return /* @__PURE__ */ jsxs35(
14496
14488
  "button",
14497
14489
  {
14498
14490
  onClick: () => {
@@ -14534,7 +14526,7 @@ import { useEffect as useEffect6, useState as useState5 } from "react";
14534
14526
 
14535
14527
  // src/widgets/advanced/search/tag-search/index.tsx
14536
14528
  import { Fragment as Fragment7 } from "react";
14537
- import { Fragment as Fragment8, jsx as jsx55, jsxs as jsxs37 } from "react/jsx-runtime";
14529
+ import { Fragment as Fragment8, jsx as jsx55, jsxs as jsxs36 } from "react/jsx-runtime";
14538
14530
  var TagSearch = ({
14539
14531
  removeSearchItems,
14540
14532
  selectedTags,
@@ -14544,16 +14536,16 @@ var TagSearch = ({
14544
14536
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
14545
14537
  if (tag?.values?.length > 0) {
14546
14538
  if (tag?.type !== "group_by") {
14547
- return /* @__PURE__ */ jsxs37(
14539
+ return /* @__PURE__ */ jsxs36(
14548
14540
  "div",
14549
14541
  {
14550
14542
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
14551
14543
  children: [
14552
14544
  /* @__PURE__ */ jsx55("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__ */ jsx55(FilterIcon, {}) }),
14553
14545
  /* @__PURE__ */ jsx55("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
14554
- return /* @__PURE__ */ jsxs37(Fragment7, { children: [
14546
+ return /* @__PURE__ */ jsxs36(Fragment7, { children: [
14555
14547
  /* @__PURE__ */ jsx55("span", { children: value }),
14556
- idx < tag.values.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
14548
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
14557
14549
  " ",
14558
14550
  instance.t("or"),
14559
14551
  " "
@@ -14590,15 +14582,15 @@ var TagSearch = ({
14590
14582
  {
14591
14583
  className: "flex min-h-full overflow-hidden",
14592
14584
  children: /* @__PURE__ */ jsx55("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
14593
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs37(
14585
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
14594
14586
  "div",
14595
14587
  {
14596
14588
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
14597
14589
  children: [
14598
14590
  /* @__PURE__ */ jsx55("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx55(GroupByIcon, {}) }),
14599
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment8, { children: [
14591
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment8, { children: [
14600
14592
  /* @__PURE__ */ jsx55("span", { children: string }),
14601
- idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
14593
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
14602
14594
  " ",
14603
14595
  "> ",
14604
14596
  " "
@@ -14630,7 +14622,7 @@ var TagSearch = ({
14630
14622
  };
14631
14623
 
14632
14624
  // src/widgets/advanced/search/search-list/index.tsx
14633
- import { jsx as jsx56, jsxs as jsxs38 } from "react/jsx-runtime";
14625
+ import { jsx as jsx56, jsxs as jsxs37 } from "react/jsx-runtime";
14634
14626
  var SearchList = ({
14635
14627
  handleAddTagSearch,
14636
14628
  handleMouseEnter,
@@ -14648,7 +14640,7 @@ var SearchList = ({
14648
14640
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
14649
14641
  return;
14650
14642
  }
14651
- return /* @__PURE__ */ jsxs38(
14643
+ return /* @__PURE__ */ jsxs37(
14652
14644
  "button",
14653
14645
  {
14654
14646
  onClick: () => {
@@ -14686,7 +14678,7 @@ var SearchList = ({
14686
14678
  };
14687
14679
 
14688
14680
  // src/widgets/advanced/search/search-item/index.tsx
14689
- import { Fragment as Fragment9, jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
14681
+ import { Fragment as Fragment9, jsx as jsx57, jsxs as jsxs38 } from "react/jsx-runtime";
14690
14682
  var Search = ({
14691
14683
  removeSearchItems,
14692
14684
  selectedTags,
@@ -14783,19 +14775,19 @@ var Search = ({
14783
14775
  }
14784
14776
  setIsReadyFormatDomain(true);
14785
14777
  }, [aid, filterBy, fieldsList]);
14786
- return /* @__PURE__ */ jsxs39(
14778
+ return /* @__PURE__ */ jsxs38(
14787
14779
  "div",
14788
14780
  {
14789
14781
  ref: popupFilterRef,
14790
14782
  className: `search ${selectedRowKeys?.length <= 0 ? "flex" : "hidden"} !order-3 xl:!order-2 bg-white custom-search-input relative items-center w-full min-w-[70%] flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] bg-grey-100 shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[#F2F2F2]`,
14791
14783
  children: [
14792
- /* @__PURE__ */ jsxs39(
14784
+ /* @__PURE__ */ jsxs38(
14793
14785
  "div",
14794
14786
  {
14795
14787
  className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] p-1 !pl-4 w-full ${(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && "border-r border-[rgba(242,242,242,1)]"}`,
14796
14788
  children: [
14797
14789
  /* @__PURE__ */ jsx57("div", { className: "min-h-5 min-w-5", children: /* @__PURE__ */ jsx57(SearchIcon, {}) }),
14798
- /* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
14790
+ /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
14799
14791
  /* @__PURE__ */ jsx57(
14800
14792
  TagSearch,
14801
14793
  {
@@ -14830,7 +14822,7 @@ var Search = ({
14830
14822
  ]
14831
14823
  }
14832
14824
  ),
14833
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment9, { children: [
14825
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs38(Fragment9, { children: [
14834
14826
  /* @__PURE__ */ jsx57(
14835
14827
  "div",
14836
14828
  {
@@ -16682,7 +16674,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
16682
16674
  // src/widgets/common/modal-layer.tsx
16683
16675
  import { Fragment as Fragment11 } from "react";
16684
16676
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
16685
- import { jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
16677
+ import { jsx as jsx59, jsxs as jsxs39 } from "react/jsx-runtime";
16686
16678
  var ModalLayer = ({
16687
16679
  isOpen,
16688
16680
  onClose,
@@ -16700,10 +16692,10 @@ var ModalLayer = ({
16700
16692
  leaveFrom: "transform scale-100 opacity-100",
16701
16693
  leaveTo: "transform scale-95 opacity-0",
16702
16694
  as: Fragment11,
16703
- children: /* @__PURE__ */ jsx59(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx59(DialogPanel, { children: /* @__PURE__ */ jsxs40("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16695
+ children: /* @__PURE__ */ jsx59(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx59(DialogPanel, { children: /* @__PURE__ */ jsxs39("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
16704
16696
  /* @__PURE__ */ jsx59("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16705
- /* @__PURE__ */ jsx59("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: [
16706
- /* @__PURE__ */ jsxs40(
16697
+ /* @__PURE__ */ jsx59("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs39("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
16698
+ /* @__PURE__ */ jsxs39(
16707
16699
  "div",
16708
16700
  {
16709
16701
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
@@ -16729,7 +16721,7 @@ var ModalLayer = ({
16729
16721
  };
16730
16722
 
16731
16723
  // src/widgets/common/modal-confirm.tsx
16732
- import { jsx as jsx60, jsxs as jsxs41 } from "react/jsx-runtime";
16724
+ import { jsx as jsx60, jsxs as jsxs40 } from "react/jsx-runtime";
16733
16725
  var ModalConfirm = ({
16734
16726
  name: name2,
16735
16727
  isShowModal,
@@ -16742,7 +16734,7 @@ var ModalConfirm = ({
16742
16734
  const renderButtonAction = (name3) => {
16743
16735
  switch (name3) {
16744
16736
  case "duplicate":
16745
- return /* @__PURE__ */ jsxs41(
16737
+ return /* @__PURE__ */ jsxs40(
16746
16738
  "button",
16747
16739
  {
16748
16740
  type: "button",
@@ -16756,7 +16748,7 @@ var ModalConfirm = ({
16756
16748
  }
16757
16749
  );
16758
16750
  case "archive":
16759
- return /* @__PURE__ */ jsxs41(
16751
+ return /* @__PURE__ */ jsxs40(
16760
16752
  "button",
16761
16753
  {
16762
16754
  type: "button",
@@ -16770,7 +16762,7 @@ var ModalConfirm = ({
16770
16762
  }
16771
16763
  );
16772
16764
  case "unarchive":
16773
- return /* @__PURE__ */ jsxs41(
16765
+ return /* @__PURE__ */ jsxs40(
16774
16766
  "button",
16775
16767
  {
16776
16768
  type: "button",
@@ -16784,7 +16776,7 @@ var ModalConfirm = ({
16784
16776
  }
16785
16777
  );
16786
16778
  case "delete":
16787
- return /* @__PURE__ */ jsxs41(
16779
+ return /* @__PURE__ */ jsxs40(
16788
16780
  "button",
16789
16781
  {
16790
16782
  type: "button",
@@ -16801,12 +16793,12 @@ var ModalConfirm = ({
16801
16793
  break;
16802
16794
  }
16803
16795
  };
16804
- return /* @__PURE__ */ jsx60(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16805
- /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
16796
+ return /* @__PURE__ */ jsx60(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
16797
+ /* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
16806
16798
  /* @__PURE__ */ jsx60("div", { className: "text-[18px] font-bold", children: title }),
16807
16799
  /* @__PURE__ */ jsx60("p", { className: "text-[16px]", children: content })
16808
16800
  ] }),
16809
- /* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16801
+ /* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
16810
16802
  /* @__PURE__ */ jsx60(
16811
16803
  "button",
16812
16804
  {
@@ -16824,7 +16816,7 @@ var ModalConfirm = ({
16824
16816
  // src/widgets/common/modal-detail.tsx
16825
16817
  import { useState as useState6 } from "react";
16826
16818
  import { createPortal as createPortal2 } from "react-dom";
16827
- import { Fragment as Fragment12, jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
16819
+ import { Fragment as Fragment12, jsx as jsx61, jsxs as jsxs41 } from "react/jsx-runtime";
16828
16820
  var ModalDetail = ({
16829
16821
  idToolTip,
16830
16822
  title,
@@ -16846,11 +16838,11 @@ var ModalDetail = ({
16846
16838
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
16847
16839
  };
16848
16840
  return createPortal2(
16849
- /* @__PURE__ */ jsx61(Fragment12, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16841
+ /* @__PURE__ */ jsx61(Fragment12, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
16850
16842
  /* @__PURE__ */ jsx61("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
16851
- /* @__PURE__ */ jsx61("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: [
16852
- /* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16853
- /* @__PURE__ */ jsxs42(
16843
+ /* @__PURE__ */ jsx61("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs41("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
16844
+ /* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
16845
+ /* @__PURE__ */ jsxs41(
16854
16846
  "div",
16855
16847
  {
16856
16848
  id: "modal-detail",
@@ -16885,7 +16877,7 @@ var ModalDetail = ({
16885
16877
 
16886
16878
  // src/widgets/common/loading-normal.tsx
16887
16879
  import { useEffect as useEffect7, useState as useState7 } from "react";
16888
- import { jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
16880
+ import { jsx as jsx62, jsxs as jsxs42 } from "react/jsx-runtime";
16889
16881
  var LayerLoading = () => {
16890
16882
  const [activeIndex, setActiveIndex] = useState7(0);
16891
16883
  useEffect7(() => {
@@ -16894,7 +16886,7 @@ var LayerLoading = () => {
16894
16886
  }, 200);
16895
16887
  return () => clearInterval(interval);
16896
16888
  }, []);
16897
- return /* @__PURE__ */ jsx62("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx62("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs43("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16889
+ return /* @__PURE__ */ jsx62("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx62("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs42("div", { className: "flex justify-center flex-col items-center gap-12", children: [
16898
16890
  /* @__PURE__ */ jsx62("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx62(
16899
16891
  "div",
16900
16892
  {
@@ -16928,7 +16920,7 @@ var LoadingSmall = () => {
16928
16920
 
16929
16921
  // src/widgets/common/video-player.tsx
16930
16922
  import { useRef as useRef5, useState as useState9 } from "react";
16931
- import { jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
16923
+ import { jsx as jsx64, jsxs as jsxs43 } from "react/jsx-runtime";
16932
16924
  var VideoPlayer = ({ src }) => {
16933
16925
  const [isPlaying, setIsPlaying] = useState9(false);
16934
16926
  const videoRef = useRef5(null);
@@ -16955,7 +16947,7 @@ var VideoPlayer = ({ src }) => {
16955
16947
  }
16956
16948
  }
16957
16949
  };
16958
- return /* @__PURE__ */ jsxs44("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: [
16950
+ return /* @__PURE__ */ jsxs43("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
16959
16951
  /* @__PURE__ */ jsx64(
16960
16952
  "video",
16961
16953
  {
@@ -16974,7 +16966,7 @@ var VideoPlayer = ({ src }) => {
16974
16966
  };
16975
16967
 
16976
16968
  // src/widgets/common/render-files.tsx
16977
- import { jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
16969
+ import { jsx as jsx65, jsxs as jsxs44 } from "react/jsx-runtime";
16978
16970
  var ImageItem = ({ filename, checksum, index: index4, src = null, useGetImage }) => {
16979
16971
  const { data: image } = useGetImage({
16980
16972
  data: { filename, checksum },
@@ -17014,16 +17006,16 @@ var FileItem = (props) => {
17014
17006
  } else if (mimetype?.includes("video")) {
17015
17007
  return /* @__PURE__ */ jsx65(VideoPlayer, { ...props });
17016
17008
  } else {
17017
- return /* @__PURE__ */ jsxs45("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
17009
+ return /* @__PURE__ */ jsxs44("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
17018
17010
  fileTypeIcon[mimetype],
17019
- /* @__PURE__ */ jsxs45("div", { children: [
17011
+ /* @__PURE__ */ jsxs44("div", { children: [
17020
17012
  /* @__PURE__ */ jsx65("p", { className: "text-[#0A0D14] font-medium", children: filename }),
17021
17013
  /* @__PURE__ */ jsx65("span", { className: "text-[12px]", children: formatFileSize(size4) })
17022
17014
  ] })
17023
17015
  ] });
17024
17016
  }
17025
17017
  };
17026
- return /* @__PURE__ */ jsxs45(
17018
+ return /* @__PURE__ */ jsxs44(
17027
17019
  "div",
17028
17020
  {
17029
17021
  className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit group/file",
@@ -17284,7 +17276,7 @@ var po = $2(K("zoom"));
17284
17276
  var uo = $2(K("flip"));
17285
17277
 
17286
17278
  // src/widgets/common/select-files.tsx
17287
- import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
17279
+ import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs45 } from "react/jsx-runtime";
17288
17280
  var ButtonSelectFiles = ({
17289
17281
  fileInputRef,
17290
17282
  selectedFiles,
@@ -17381,8 +17373,8 @@ var ButtonSelectFiles = ({
17381
17373
  await handleUploadImage({ formData });
17382
17374
  }
17383
17375
  };
17384
- return /* @__PURE__ */ jsxs46(Fragment13, { children: [
17385
- isPending ? /* @__PURE__ */ jsx66(Fragment13, { children: /* @__PURE__ */ jsx66("span", { className: "text-sm text-gray-500", children: i18n_default.t("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs46(
17376
+ return /* @__PURE__ */ jsxs45(Fragment13, { children: [
17377
+ isPending ? /* @__PURE__ */ jsx66(Fragment13, { children: /* @__PURE__ */ jsx66("span", { className: "text-sm text-gray-500", children: i18n_default.t("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs45(
17386
17378
  "button",
17387
17379
  {
17388
17380
  type: "button",
@@ -17410,7 +17402,7 @@ var ButtonSelectFiles = ({
17410
17402
  };
17411
17403
 
17412
17404
  // src/widgets/basic/avatar-field/avatar.tsx
17413
- import { Fragment as Fragment14, jsx as jsx67, jsxs as jsxs47 } from "react/jsx-runtime";
17405
+ import { Fragment as Fragment14, jsx as jsx67, jsxs as jsxs46 } from "react/jsx-runtime";
17414
17406
  var AvatarField = (props) => {
17415
17407
  const {
17416
17408
  isForm = false,
@@ -17434,7 +17426,7 @@ var AvatarField = (props) => {
17434
17426
  color: textColor,
17435
17427
  fontSize: `${size4 / 2.5}px`
17436
17428
  };
17437
- return /* @__PURE__ */ jsxs47(Fragment14, { children: [
17429
+ return /* @__PURE__ */ jsxs46(Fragment14, { children: [
17438
17430
  isForm && allowShowDetail && /* @__PURE__ */ jsx67(
17439
17431
  ModalDetail,
17440
17432
  {
@@ -17476,7 +17468,7 @@ var AvatarField = (props) => {
17476
17468
  };
17477
17469
 
17478
17470
  // src/widgets/basic/binary-field/binary.tsx
17479
- import { jsx as jsx68, jsxs as jsxs48 } from "react/jsx-runtime";
17471
+ import { jsx as jsx68, jsxs as jsxs47 } from "react/jsx-runtime";
17480
17472
  var BinaryField = (props) => {
17481
17473
  const {
17482
17474
  name: name2,
@@ -17508,7 +17500,7 @@ var BinaryField = (props) => {
17508
17500
  {
17509
17501
  ref: binaryRef,
17510
17502
  className: "relative flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
17511
- children: renderImage ? /* @__PURE__ */ jsxs48("div", { className: "relative group", children: [
17503
+ children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
17512
17504
  renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx68(
17513
17505
  "img",
17514
17506
  {
@@ -17533,7 +17525,7 @@ var BinaryField = (props) => {
17533
17525
  children: /* @__PURE__ */ jsx68(DeleteIcon, {})
17534
17526
  }
17535
17527
  )
17536
- ] }) : /* @__PURE__ */ jsxs48(
17528
+ ] }) : /* @__PURE__ */ jsxs47(
17537
17529
  "label",
17538
17530
  {
17539
17531
  htmlFor: inputId,
@@ -17599,7 +17591,7 @@ var ButtonBadgeField = (props) => {
17599
17591
  };
17600
17592
 
17601
17593
  // src/widgets/basic/button-field/button.tsx
17602
- import { Fragment as Fragment15, jsx as jsx70, jsxs as jsxs49 } from "react/jsx-runtime";
17594
+ import { Fragment as Fragment15, jsx as jsx70, jsxs as jsxs48 } from "react/jsx-runtime";
17603
17595
  var ButtonField = (props) => {
17604
17596
  const {
17605
17597
  func,
@@ -17618,7 +17610,7 @@ var ButtonField = (props) => {
17618
17610
  onClick: func,
17619
17611
  children: i18n_default.t(content)
17620
17612
  }
17621
- ) : /* @__PURE__ */ jsxs49(
17613
+ ) : /* @__PURE__ */ jsxs48(
17622
17614
  "button",
17623
17615
  {
17624
17616
  type,
@@ -17635,7 +17627,7 @@ var ButtonField = (props) => {
17635
17627
 
17636
17628
  // src/widgets/basic/char-field/char.tsx
17637
17629
  import { useEffect as useEffect9 } from "react";
17638
- import { Fragment as Fragment16, jsx as jsx71, jsxs as jsxs50 } from "react/jsx-runtime";
17630
+ import { Fragment as Fragment16, jsx as jsx71, jsxs as jsxs49 } from "react/jsx-runtime";
17639
17631
  var CharField = (props) => {
17640
17632
  const {
17641
17633
  name: name2,
@@ -17698,7 +17690,7 @@ var CharField = (props) => {
17698
17690
  }, [value2, clearErrors, name2]);
17699
17691
  const realValue = typeof value2 === "string" || typeof value2 === "number" ? String(value2) : "";
17700
17692
  const displayValue = (widget === "access_token" || widget === "refresh_token") && typeof realValue === "string" && !isDirty ? "*".repeat(realValue?.length) : widget === "private_secret_key" && formValues?.id && typeof formValues?.id === "number" && !isDirty && typeof realValue === "string" ? `${realValue?.slice(0, 4)}${realValue?.length > 4 ? "*".repeat(realValue?.length - 4) : ""}` : typeof realValue === "string" || typeof realValue === "number" ? String(realValue) : "";
17701
- return /* @__PURE__ */ jsxs50(Fragment16, { children: [
17693
+ return /* @__PURE__ */ jsxs49(Fragment16, { children: [
17702
17694
  /* @__PURE__ */ jsx71(
17703
17695
  "textarea",
17704
17696
  {
@@ -17825,7 +17817,7 @@ var CheckboxField = (props) => {
17825
17817
 
17826
17818
  // src/widgets/basic/color-field/color-wrapper.tsx
17827
17819
  import { useEffect as useEffect10, useRef as useRef6, useState as useState10 } from "react";
17828
- import { Fragment as Fragment17, jsx as jsx73, jsxs as jsxs51 } from "react/jsx-runtime";
17820
+ import { Fragment as Fragment17, jsx as jsx73, jsxs as jsxs50 } from "react/jsx-runtime";
17829
17821
  var ColorWrapper = (props) => {
17830
17822
  const {
17831
17823
  colors: colors2,
@@ -17852,7 +17844,7 @@ var ColorWrapper = (props) => {
17852
17844
  document.removeEventListener("mousedown", handleClickOutside);
17853
17845
  };
17854
17846
  }, []);
17855
- return /* @__PURE__ */ jsx73("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx73("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs51("div", { children: [
17847
+ return /* @__PURE__ */ jsx73("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx73("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
17856
17848
  /* @__PURE__ */ jsx73(
17857
17849
  "button",
17858
17850
  {
@@ -17876,7 +17868,7 @@ var ColorWrapper = (props) => {
17876
17868
  content: i18n_default.t(color?.name)
17877
17869
  }
17878
17870
  )
17879
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs51(Fragment17, { children: [
17871
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment17, { children: [
17880
17872
  /* @__PURE__ */ jsx73(
17881
17873
  "button",
17882
17874
  {
@@ -17933,7 +17925,7 @@ var ColorField = (props) => {
17933
17925
 
17934
17926
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17935
17927
  import { useEffect as useEffect11 } from "react";
17936
- import { jsx as jsx75, jsxs as jsxs52 } from "react/jsx-runtime";
17928
+ import { jsx as jsx75, jsxs as jsxs51 } from "react/jsx-runtime";
17937
17929
  var CopyLinkButtonField = (props) => {
17938
17930
  const {
17939
17931
  isForm,
@@ -17971,8 +17963,8 @@ var CopyLinkButtonField = (props) => {
17971
17963
  clearErrors(name2);
17972
17964
  }
17973
17965
  }, [value]);
17974
- return /* @__PURE__ */ jsxs52("div", { className: "relative", children: [
17975
- /* @__PURE__ */ jsxs52("div", { className: "flex relative field", children: [
17966
+ return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
17967
+ /* @__PURE__ */ jsxs51("div", { className: "flex relative field", children: [
17976
17968
  /* @__PURE__ */ jsx75(
17977
17969
  "input",
17978
17970
  {
@@ -21965,7 +21957,7 @@ function useEffectEvent(callback) {
21965
21957
  }
21966
21958
 
21967
21959
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21968
- import { jsx as jsx76, jsxs as jsxs53, Fragment as Fragment18 } from "react/jsx-runtime";
21960
+ import { jsx as jsx76, jsxs as jsxs52, Fragment as Fragment18 } from "react/jsx-runtime";
21969
21961
  import * as ReactDOM2 from "react-dom";
21970
21962
 
21971
21963
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -22363,7 +22355,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
22363
22355
  bottom: isCustomShape ? "" : "rotate(180deg)",
22364
22356
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
22365
22357
  }[side];
22366
- return /* @__PURE__ */ jsxs53("svg", {
22358
+ return /* @__PURE__ */ jsxs52("svg", {
22367
22359
  ...rest,
22368
22360
  "aria-hidden": true,
22369
22361
  ref,
@@ -31779,7 +31771,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31779
31771
 
31780
31772
  // src/widgets/basic/date-field/date.tsx
31781
31773
  var import_moment2 = __toESM(require_moment());
31782
- import { Fragment as Fragment22, jsx as jsx79, jsxs as jsxs54 } from "react/jsx-runtime";
31774
+ import { Fragment as Fragment22, jsx as jsx79, jsxs as jsxs53 } from "react/jsx-runtime";
31783
31775
  var DateField = (props) => {
31784
31776
  const {
31785
31777
  name: name2,
@@ -31806,7 +31798,7 @@ var DateField = (props) => {
31806
31798
  context
31807
31799
  } = props;
31808
31800
  const InputDateCustom = forwardRef6(
31809
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs54("label", { className: `flex ${className}`, children: [
31801
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
31810
31802
  /* @__PURE__ */ jsx79(
31811
31803
  "input",
31812
31804
  {
@@ -31849,7 +31841,7 @@ var DateField = (props) => {
31849
31841
  }
31850
31842
  }, [value, clearErrors, name2]);
31851
31843
  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;
31852
- return /* @__PURE__ */ jsxs54(Fragment22, { children: [
31844
+ return /* @__PURE__ */ jsxs53(Fragment22, { children: [
31853
31845
  /* @__PURE__ */ jsx79(
31854
31846
  DatePicker,
31855
31847
  {
@@ -31916,7 +31908,7 @@ var DateField = (props) => {
31916
31908
  increaseMonth,
31917
31909
  prevMonthButtonDisabled,
31918
31910
  nextMonthButtonDisabled
31919
- }) => /* @__PURE__ */ jsxs54(
31911
+ }) => /* @__PURE__ */ jsxs53(
31920
31912
  "div",
31921
31913
  {
31922
31914
  style: {
@@ -32009,10 +32001,10 @@ var DateField = (props) => {
32009
32001
  };
32010
32002
 
32011
32003
  // src/widgets/basic/download-binary-field/download-binary.tsx
32012
- import { jsx as jsx80, jsxs as jsxs55 } from "react/jsx-runtime";
32004
+ import { jsx as jsx80, jsxs as jsxs54 } from "react/jsx-runtime";
32013
32005
  var DownLoadBinaryField = (props) => {
32014
32006
  const { handleFileDownload } = props;
32015
- return /* @__PURE__ */ jsxs55(
32007
+ return /* @__PURE__ */ jsxs54(
32016
32008
  "button",
32017
32009
  {
32018
32010
  type: "button",
@@ -32027,7 +32019,7 @@ var DownLoadBinaryField = (props) => {
32027
32019
  };
32028
32020
 
32029
32021
  // src/widgets/basic/download-file-field/download-file.tsx
32030
- import { jsx as jsx81, jsxs as jsxs56 } from "react/jsx-runtime";
32022
+ import { jsx as jsx81, jsxs as jsxs55 } from "react/jsx-runtime";
32031
32023
  var DownloadFileField = (props) => {
32032
32024
  const {
32033
32025
  readonly,
@@ -32039,8 +32031,8 @@ var DownloadFileField = (props) => {
32039
32031
  handleFileChange,
32040
32032
  handleFileDownload
32041
32033
  } = props;
32042
- return /* @__PURE__ */ jsxs56("div", { className: "", children: [
32043
- /* @__PURE__ */ jsxs56(
32034
+ return /* @__PURE__ */ jsxs55("div", { className: "", children: [
32035
+ /* @__PURE__ */ jsxs55(
32044
32036
  "label",
32045
32037
  {
32046
32038
  htmlFor: inputId,
@@ -32075,7 +32067,7 @@ var DownloadFileField = (props) => {
32075
32067
 
32076
32068
  // src/widgets/basic/dropdown-field/dropdown.tsx
32077
32069
  import { useState as useState15 } from "react";
32078
- import { jsx as jsx82, jsxs as jsxs57 } from "react/jsx-runtime";
32070
+ import { jsx as jsx82, jsxs as jsxs56 } from "react/jsx-runtime";
32079
32071
  var DropdownField = (props) => {
32080
32072
  const {
32081
32073
  options: options2,
@@ -32089,14 +32081,14 @@ var DropdownField = (props) => {
32089
32081
  } = props;
32090
32082
  const [open, setOpen] = useState15(false);
32091
32083
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
32092
- return /* @__PURE__ */ jsxs57(
32084
+ return /* @__PURE__ */ jsxs56(
32093
32085
  "div",
32094
32086
  {
32095
32087
  ref: dropdownRef,
32096
32088
  className: `relative ${className}`,
32097
32089
  onClick: () => setOpen(!open),
32098
32090
  children: [
32099
- /* @__PURE__ */ jsxs57(
32091
+ /* @__PURE__ */ jsxs56(
32100
32092
  "div",
32101
32093
  {
32102
32094
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
@@ -32132,7 +32124,7 @@ var DropdownField = (props) => {
32132
32124
  };
32133
32125
 
32134
32126
  // src/widgets/basic/fee-field/fee.tsx
32135
- import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs58 } from "react/jsx-runtime";
32127
+ import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs57 } from "react/jsx-runtime";
32136
32128
  var FeeField = (props) => {
32137
32129
  const { value, formValues } = props;
32138
32130
  const totalAmount = formatNumberOnly(parseFloat(value?.total_amount)) + " VND";
@@ -32142,23 +32134,23 @@ var FeeField = (props) => {
32142
32134
  )
32143
32135
  ) + " VND";
32144
32136
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
32145
- return /* @__PURE__ */ jsxs58(Fragment23, { children: [
32137
+ return /* @__PURE__ */ jsxs57(Fragment23, { children: [
32146
32138
  value?.subtotals?.map((sub) => {
32147
32139
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
32148
- return /* @__PURE__ */ jsxs58(Fragment23, { children: [
32149
- /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
32150
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
32140
+ return /* @__PURE__ */ jsxs57(Fragment23, { children: [
32141
+ /* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
32142
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
32151
32143
  sub?.name,
32152
32144
  ":"
32153
32145
  ] }),
32154
32146
  /* @__PURE__ */ jsx83("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
32155
32147
  ] }),
32156
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs58(
32148
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
32157
32149
  "div",
32158
32150
  {
32159
32151
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
32160
32152
  children: [
32161
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
32153
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
32162
32154
  group?.group_name,
32163
32155
  ":"
32164
32156
  ] }),
@@ -32170,22 +32162,22 @@ var FeeField = (props) => {
32170
32162
  ] });
32171
32163
  }
32172
32164
  }),
32173
- /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
32174
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
32165
+ /* @__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: [
32166
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
32175
32167
  i18n_default.t("total"),
32176
32168
  ":"
32177
32169
  ] }),
32178
32170
  /* @__PURE__ */ jsx83("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
32179
32171
  ] }),
32180
- /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
32181
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
32172
+ /* @__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: [
32173
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
32182
32174
  i18n_default.t("paid_amount"),
32183
32175
  ":"
32184
32176
  ] }),
32185
32177
  /* @__PURE__ */ jsx83("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
32186
32178
  ] }),
32187
- /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
32188
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
32179
+ /* @__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: [
32180
+ /* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
32189
32181
  i18n_default.t("remanining_amount"),
32190
32182
  ":"
32191
32183
  ] }),
@@ -32196,7 +32188,7 @@ var FeeField = (props) => {
32196
32188
 
32197
32189
  // src/widgets/basic/file-upload-field/file-upload.tsx
32198
32190
  import { useEffect as useEffect16, useRef as useRef14, useState as useState16 } from "react";
32199
- import { jsx as jsx84, jsxs as jsxs59 } from "react/jsx-runtime";
32191
+ import { jsx as jsx84, jsxs as jsxs58 } from "react/jsx-runtime";
32200
32192
  var FileUploadField = (props) => {
32201
32193
  const { name: name2, methods, isForm, model, required, idForm, widget, useUploadImage, useUploadFile, useGetImage, isBase64File } = props;
32202
32194
  const fileInputRef = useRef14(null);
@@ -32227,7 +32219,7 @@ var FileUploadField = (props) => {
32227
32219
  );
32228
32220
  }
32229
32221
  }, [selectedFiles]);
32230
- return /* @__PURE__ */ jsxs59("div", { children: [
32222
+ return /* @__PURE__ */ jsxs58("div", { children: [
32231
32223
  selectedFiles.length > 0 && /* @__PURE__ */ jsx84(
32232
32224
  RenderFiles,
32233
32225
  {
@@ -32261,7 +32253,7 @@ var FileUploadField = (props) => {
32261
32253
 
32262
32254
  // src/widgets/basic/float-field/float.tsx
32263
32255
  import { useEffect as useEffect17, useRef as useRef15, useState as useState17 } from "react";
32264
- import { Fragment as Fragment24, jsx as jsx85, jsxs as jsxs60 } from "react/jsx-runtime";
32256
+ import { Fragment as Fragment24, jsx as jsx85, jsxs as jsxs59 } from "react/jsx-runtime";
32265
32257
  var FloatField = (props) => {
32266
32258
  const {
32267
32259
  name: name2,
@@ -32385,7 +32377,7 @@ var FloatField = (props) => {
32385
32377
  isDirtyRef.current = false;
32386
32378
  inputRef.current?.blur();
32387
32379
  };
32388
- return /* @__PURE__ */ jsxs60(Fragment24, { children: [
32380
+ return /* @__PURE__ */ jsxs59(Fragment24, { children: [
32389
32381
  /* @__PURE__ */ jsx85(
32390
32382
  "input",
32391
32383
  {
@@ -32413,7 +32405,7 @@ var FloatField = (props) => {
32413
32405
 
32414
32406
  // src/widgets/basic/float-time-field/float-time.tsx
32415
32407
  import { useState as useState18 } from "react";
32416
- import { Fragment as Fragment25, jsx as jsx86, jsxs as jsxs61 } from "react/jsx-runtime";
32408
+ import { Fragment as Fragment25, jsx as jsx86, jsxs as jsxs60 } from "react/jsx-runtime";
32417
32409
  var FloatTimeField = (props) => {
32418
32410
  const {
32419
32411
  name: name2,
@@ -32492,7 +32484,7 @@ var FloatTimeField = (props) => {
32492
32484
  }
32493
32485
  onBlur();
32494
32486
  };
32495
- return /* @__PURE__ */ jsxs61(Fragment25, { children: [
32487
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
32496
32488
  /* @__PURE__ */ jsx86(
32497
32489
  "input",
32498
32490
  {
@@ -32609,7 +32601,7 @@ var ImageField = (props) => {
32609
32601
  import { useEffect as useEffect19 } from "react";
32610
32602
 
32611
32603
  // src/widgets/basic/information-field/information.tsx
32612
- import { Fragment as Fragment26, jsx as jsx89, jsxs as jsxs62 } from "react/jsx-runtime";
32604
+ import { Fragment as Fragment26, jsx as jsx89, jsxs as jsxs61 } from "react/jsx-runtime";
32613
32605
  var InfomationField = (props) => {
32614
32606
  const { value, isForm = false, showName = true, stringToColor } = props;
32615
32607
  if (!value || Array.isArray(value) && value.length === 0) {
@@ -32625,7 +32617,7 @@ var InfomationField = (props) => {
32625
32617
  stringToColor
32626
32618
  },
32627
32619
  item.id
32628
- )) : /* @__PURE__ */ jsxs62("div", { className: "flex gap-2 items-center w-max", children: [
32620
+ )) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
32629
32621
  /* @__PURE__ */ jsx89(
32630
32622
  AvatarField,
32631
32623
  {
@@ -32641,7 +32633,7 @@ var InfomationField = (props) => {
32641
32633
  };
32642
32634
 
32643
32635
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32644
- import { jsx as jsx90, jsxs as jsxs63 } from "react/jsx-runtime";
32636
+ import { jsx as jsx90, jsxs as jsxs62 } from "react/jsx-runtime";
32645
32637
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32646
32638
  const { selectProps, data, menuList } = props;
32647
32639
  const { relation } = selectProps;
@@ -32650,7 +32642,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32650
32642
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32651
32643
  )
32652
32644
  )?.[0]?.action?.id;
32653
- return /* @__PURE__ */ jsxs63("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32645
+ return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32654
32646
  /* @__PURE__ */ jsx90(
32655
32647
  AvatarField,
32656
32648
  {
@@ -32738,7 +32730,7 @@ var Many2ManyTagField = (props) => {
32738
32730
  onChange2?.(name2 ?? "", newValue);
32739
32731
  clearErrors(name2);
32740
32732
  };
32741
- return /* @__PURE__ */ jsxs63("div", { className: "group", children: [
32733
+ return /* @__PURE__ */ jsxs62("div", { className: "group", children: [
32742
32734
  /* @__PURE__ */ jsx90(
32743
32735
  CustomSelect,
32744
32736
  {
@@ -32821,7 +32813,7 @@ var Many2ManyTagField = (props) => {
32821
32813
 
32822
32814
  // src/widgets/basic/monetary-field/monetary.tsx
32823
32815
  import { useEffect as useEffect20 } from "react";
32824
- import { Fragment as Fragment27, jsx as jsx91, jsxs as jsxs64 } from "react/jsx-runtime";
32816
+ import { Fragment as Fragment27, jsx as jsx91, jsxs as jsxs63 } from "react/jsx-runtime";
32825
32817
  var MonetaryField = (props) => {
32826
32818
  const {
32827
32819
  name: name2,
@@ -32840,8 +32832,8 @@ var MonetaryField = (props) => {
32840
32832
  isEditTable
32841
32833
  } = props;
32842
32834
  if (isForm && name2 === "amount_residual") {
32843
- return /* @__PURE__ */ jsxs64("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32844
- /* @__PURE__ */ jsxs64("span", { className: "font-semibold", children: [
32835
+ return /* @__PURE__ */ jsxs63("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32836
+ /* @__PURE__ */ jsxs63("span", { className: "font-semibold", children: [
32845
32837
  string,
32846
32838
  ":"
32847
32839
  ] }),
@@ -32881,7 +32873,7 @@ var MonetaryField = (props) => {
32881
32873
  const baseClasses = `w-full min-h-[44px] ring-0 px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content`;
32882
32874
  const editableClass = isEditTable ? `${error2 ? "hover:border-b-[1px] hover:border-b-[#de4747]" : "hover:border-b-[1px] hover:border-b-primary"} outline-0 hover:!outline-none` : `focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]`;
32883
32875
  const readonlyClass = readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]";
32884
- return /* @__PURE__ */ jsxs64(Fragment27, { children: [
32876
+ return /* @__PURE__ */ jsxs63(Fragment27, { children: [
32885
32877
  /* @__PURE__ */ jsx91(
32886
32878
  "input",
32887
32879
  {
@@ -32931,7 +32923,7 @@ var PaidBadgedField = () => {
32931
32923
 
32932
32924
  // src/widgets/basic/priority-field/rating-star.tsx
32933
32925
  import React16, { useEffect as useEffect21, useState as useState19 } from "react";
32934
- import { jsx as jsx93, jsxs as jsxs65 } from "react/jsx-runtime";
32926
+ import { jsx as jsx93, jsxs as jsxs64 } from "react/jsx-runtime";
32935
32927
  var RatingStarField = (props) => {
32936
32928
  const {
32937
32929
  label,
@@ -32976,7 +32968,7 @@ var RatingStarField = (props) => {
32976
32968
  const starValue = index4 + 1;
32977
32969
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32978
32970
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32979
- return /* @__PURE__ */ jsxs65(React16.Fragment, { children: [
32971
+ return /* @__PURE__ */ jsxs64(React16.Fragment, { children: [
32980
32972
  /* @__PURE__ */ jsx93(
32981
32973
  "div",
32982
32974
  {
@@ -33056,7 +33048,7 @@ var PriorityField = (props) => {
33056
33048
 
33057
33049
  // src/widgets/basic/radio-group-field/radio-group.tsx
33058
33050
  import { useEffect as useEffect22 } from "react";
33059
- import { jsx as jsx95, jsxs as jsxs66 } from "react/jsx-runtime";
33051
+ import { jsx as jsx95, jsxs as jsxs65 } from "react/jsx-runtime";
33060
33052
  var RadioGroupField = (props) => {
33061
33053
  const {
33062
33054
  name: name2,
@@ -33080,7 +33072,7 @@ var RadioGroupField = (props) => {
33080
33072
  {
33081
33073
  name: name2 ?? "",
33082
33074
  control: methods.control,
33083
- render: ({ field }) => /* @__PURE__ */ jsx95("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs66("div", { className: "flex items-center gap-1", children: [
33075
+ render: ({ field }) => /* @__PURE__ */ jsx95("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-1", children: [
33084
33076
  /* @__PURE__ */ jsx95(
33085
33077
  "input",
33086
33078
  {
@@ -33108,7 +33100,7 @@ var RadioGroupField = (props) => {
33108
33100
 
33109
33101
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
33110
33102
  var import_moment3 = __toESM(require_moment());
33111
- import { jsx as jsx96, jsxs as jsxs67 } from "react/jsx-runtime";
33103
+ import { jsx as jsx96, jsxs as jsxs66 } from "react/jsx-runtime";
33112
33104
  var RemainingDaysField = (props) => {
33113
33105
  const {
33114
33106
  value,
@@ -33119,7 +33111,7 @@ var RemainingDaysField = (props) => {
33119
33111
  if (!value) return null;
33120
33112
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
33121
33113
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
33122
- return /* @__PURE__ */ jsxs67("div", { className: isForm ? "mb-4" : "", children: [
33114
+ return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
33123
33115
  /* @__PURE__ */ jsx96(M, { id: `remainingDays_${value}`, place: "top", content: string }),
33124
33116
  /* @__PURE__ */ jsx96(
33125
33117
  "div",
@@ -33139,7 +33131,7 @@ var RemainingDaysField = (props) => {
33139
33131
  };
33140
33132
 
33141
33133
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
33142
- import { Fragment as Fragment28, jsx as jsx97, jsxs as jsxs68 } from "react/jsx-runtime";
33134
+ import { Fragment as Fragment28, jsx as jsx97, jsxs as jsxs67 } from "react/jsx-runtime";
33143
33135
  var SelectDropdownField = (props) => {
33144
33136
  const {
33145
33137
  selection,
@@ -33160,7 +33152,14 @@ var SelectDropdownField = (props) => {
33160
33152
  label: val[1]
33161
33153
  })) : [];
33162
33154
  if (!isForm) {
33163
- return /* @__PURE__ */ jsx97("span", { children: options2?.find((item) => item?.value === value)?.label });
33155
+ const value2 = options2?.find((item) => item?.value === value2)?.label;
33156
+ return value2 && /* @__PURE__ */ jsx97(
33157
+ "span",
33158
+ {
33159
+ className: `${props.className} px-2 py-1 rounded border text-xs font-medium leading-[16px]`,
33160
+ children: value2
33161
+ }
33162
+ );
33164
33163
  } else {
33165
33164
  return /* @__PURE__ */ jsx97(
33166
33165
  Controller,
@@ -33196,7 +33195,7 @@ var SelectDropdownField = (props) => {
33196
33195
  })
33197
33196
  }
33198
33197
  };
33199
- return /* @__PURE__ */ jsxs68(Fragment28, { children: [
33198
+ return /* @__PURE__ */ jsxs67(Fragment28, { children: [
33200
33199
  /* @__PURE__ */ jsx97("div", { className: "group", children: /* @__PURE__ */ jsx97(
33201
33200
  StateManagedSelect$1,
33202
33201
  {
@@ -33272,7 +33271,7 @@ var TextAreaField = (props) => {
33272
33271
  };
33273
33272
 
33274
33273
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
33275
- import { jsx as jsx99, jsxs as jsxs69 } from "react/jsx-runtime";
33274
+ import { jsx as jsx99, jsxs as jsxs68 } from "react/jsx-runtime";
33276
33275
  var ToggleButtonField = (props) => {
33277
33276
  const {
33278
33277
  name: name2,
@@ -33287,7 +33286,7 @@ var ToggleButtonField = (props) => {
33287
33286
  {
33288
33287
  name: name2 ?? "",
33289
33288
  control: methods?.control,
33290
- render: ({ field }) => /* @__PURE__ */ jsx99("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs69("label", { className: "relative inline-block w-9 h-5 cursor-pointer", children: [
33289
+ render: ({ field }) => /* @__PURE__ */ jsx99("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs68("label", { className: "relative inline-block w-9 h-5 cursor-pointer", children: [
33291
33290
  /* @__PURE__ */ jsx99(
33292
33291
  "input",
33293
33292
  {
@@ -33328,7 +33327,7 @@ var ToggleButtonField = (props) => {
33328
33327
 
33329
33328
  // src/widgets/basic/integer-field/integer.tsx
33330
33329
  import { useEffect as useEffect23, useRef as useRef17, useState as useState20 } from "react";
33331
- import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs70 } from "react/jsx-runtime";
33330
+ import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs69 } from "react/jsx-runtime";
33332
33331
  var IntegerField = (props) => {
33333
33332
  const {
33334
33333
  name: name2,
@@ -33426,7 +33425,7 @@ var IntegerField = (props) => {
33426
33425
  inputRef.current?.blur();
33427
33426
  clearErrors(name2);
33428
33427
  };
33429
- return /* @__PURE__ */ jsxs70(Fragment29, { children: [
33428
+ return /* @__PURE__ */ jsxs69(Fragment29, { children: [
33430
33429
  /* @__PURE__ */ jsx100(
33431
33430
  "input",
33432
33431
  {
@@ -33469,7 +33468,7 @@ var IntegerField = (props) => {
33469
33468
  };
33470
33469
 
33471
33470
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33472
- import { jsx as jsx101, jsxs as jsxs71 } from "react/jsx-runtime";
33471
+ import { jsx as jsx101, jsxs as jsxs70 } from "react/jsx-runtime";
33473
33472
  var StatusDropdownField = (props) => {
33474
33473
  const {
33475
33474
  buttonRef,
@@ -33481,7 +33480,7 @@ var StatusDropdownField = (props) => {
33481
33480
  handleClick,
33482
33481
  colors: colors2
33483
33482
  } = props;
33484
- return /* @__PURE__ */ jsxs71(
33483
+ return /* @__PURE__ */ jsxs70(
33485
33484
  "div",
33486
33485
  {
33487
33486
  ref: buttonRef,
@@ -33497,14 +33496,14 @@ var StatusDropdownField = (props) => {
33497
33496
  ),
33498
33497
  isOpen && /* @__PURE__ */ jsx101("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) => {
33499
33498
  const isActive = item[0] == state;
33500
- return /* @__PURE__ */ jsxs71(
33499
+ return /* @__PURE__ */ jsxs70(
33501
33500
  "div",
33502
33501
  {
33503
33502
  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" : ""}`,
33504
33503
  onClick: () => handleClick(item[0]),
33505
33504
  children: [
33506
33505
  /* @__PURE__ */ jsx101("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx101(CheckIcon, {}) }),
33507
- /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2", children: [
33506
+ /* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
33508
33507
  /* @__PURE__ */ jsx101(
33509
33508
  "div",
33510
33509
  {
@@ -33525,7 +33524,7 @@ var StatusDropdownField = (props) => {
33525
33524
 
33526
33525
  // src/widgets/basic/many2many-field/many2many.tsx
33527
33526
  import { createPortal as createPortal5 } from "react-dom";
33528
- import { jsx as jsx102, jsxs as jsxs72 } from "react/jsx-runtime";
33527
+ import { jsx as jsx102, jsxs as jsxs71 } from "react/jsx-runtime";
33529
33528
  var Many2ManyField = (props) => {
33530
33529
  const {
33531
33530
  aid,
@@ -33577,14 +33576,14 @@ var Many2ManyField = (props) => {
33577
33576
  clearSearch
33578
33577
  } = searchController;
33579
33578
  return createPortal5(
33580
- /* @__PURE__ */ jsxs72("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[9999]", children: [
33579
+ /* @__PURE__ */ jsxs71("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[9999]", children: [
33581
33580
  /* @__PURE__ */ jsx102("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33582
- /* @__PURE__ */ jsx102("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs72("div", { className: "relative z-[1] 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", children: [
33583
- /* @__PURE__ */ jsxs72("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33581
+ /* @__PURE__ */ jsx102("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71("div", { className: "relative z-[1] 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", children: [
33582
+ /* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33584
33583
  /* @__PURE__ */ jsx102("div", { className: "text-[20px] font-semibold", children: title }),
33585
33584
  /* @__PURE__ */ jsx102("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx102(CloseIcon, {}) })
33586
33585
  ] }),
33587
- /* @__PURE__ */ jsxs72("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33586
+ /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33588
33587
  /* @__PURE__ */ jsx102("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx102(
33589
33588
  Search,
33590
33589
  {
@@ -33643,7 +33642,7 @@ var Many2ManyField = (props) => {
33643
33642
  "div",
33644
33643
  {
33645
33644
  className: `flex w-full items-center h-full overflow-auto `,
33646
- children: /* @__PURE__ */ jsx102("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs72(
33645
+ children: /* @__PURE__ */ jsx102("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
33647
33646
  "table",
33648
33647
  {
33649
33648
  className: `relative w-full bg-white custom-dropdown `,
@@ -33699,7 +33698,7 @@ var Many2ManyField = (props) => {
33699
33698
  ) }) })
33700
33699
  }
33701
33700
  ) }) }) : /* @__PURE__ */ jsx102(LayerLoading, {}),
33702
- /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2 mt-auto", children: [
33701
+ /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
33703
33702
  isDisplayCheckbox && /* @__PURE__ */ jsx102(
33704
33703
  "button",
33705
33704
  {
@@ -33744,14 +33743,14 @@ var Many2ManyField = (props) => {
33744
33743
 
33745
33744
  // src/widgets/basic/many2one-field/many2one.tsx
33746
33745
  import React17, { useEffect as useEffect24, useMemo as useMemo9 } from "react";
33747
- import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs73 } from "react/jsx-runtime";
33746
+ import { Fragment as Fragment30, jsx as jsx103, jsxs as jsxs72 } from "react/jsx-runtime";
33748
33747
  var CustomMenuList = (props) => {
33749
33748
  const { options: options2, children, selectProps } = props;
33750
33749
  const { setIsShowModalMany2Many, searchable } = selectProps;
33751
33750
  const limitedChildren = React17.Children.toArray(children).slice(0, 10);
33752
- return /* @__PURE__ */ jsxs73(components.MenuList, { ...props, className: "z-[99]", children: [
33751
+ return /* @__PURE__ */ jsxs72(components.MenuList, { ...props, className: "z-[99]", children: [
33753
33752
  limitedChildren,
33754
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs73(
33753
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs72(
33755
33754
  "button",
33756
33755
  {
33757
33756
  type: "button",
@@ -33778,15 +33777,10 @@ var Many2OneField = (props) => {
33778
33777
  string,
33779
33778
  //return
33780
33779
  menuList,
33781
- handleChooseRecord,
33782
- handleClose,
33783
- selectedRowKeys,
33784
33780
  allowShowDetail,
33785
33781
  index: index4,
33786
33782
  contextObject,
33787
33783
  renderDetail,
33788
- isShowModalMany2Many,
33789
- initValue,
33790
33784
  tempSelectedOption,
33791
33785
  options: options2,
33792
33786
  fetchMoreOptions,
@@ -33807,7 +33801,7 @@ var Many2OneField = (props) => {
33807
33801
  );
33808
33802
  if (!isForm && !isEditTable) {
33809
33803
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue.id : propValue;
33810
- return /* @__PURE__ */ jsxs73(Fragment30, { children: [
33804
+ return /* @__PURE__ */ jsxs72(Fragment30, { children: [
33811
33805
  allowShowDetail && /* @__PURE__ */ jsx103(
33812
33806
  ModalDetail,
33813
33807
  {
@@ -33859,7 +33853,7 @@ var Many2OneField = (props) => {
33859
33853
  methods?.clearErrors(name2);
33860
33854
  }
33861
33855
  }, [selectedOption]);
33862
- return /* @__PURE__ */ jsxs73("div", { className: "group", children: [
33856
+ return /* @__PURE__ */ jsxs72("div", { className: "group", children: [
33863
33857
  /* @__PURE__ */ jsx103(
33864
33858
  StateManagedSelect$1,
33865
33859
  {
@@ -33939,7 +33933,7 @@ var Many2OneField = (props) => {
33939
33933
  };
33940
33934
 
33941
33935
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33942
- import { jsx as jsx104, jsxs as jsxs74 } from "react/jsx-runtime";
33936
+ import { jsx as jsx104, jsxs as jsxs73 } from "react/jsx-runtime";
33943
33937
  var StatusbarDurationField = (props) => {
33944
33938
  const {
33945
33939
  disabled,
@@ -33953,10 +33947,10 @@ var StatusbarDurationField = (props) => {
33953
33947
  "div",
33954
33948
  {
33955
33949
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33956
- children: /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-[24px]", children: [
33950
+ children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
33957
33951
  /* @__PURE__ */ jsx104("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33958
33952
  const value = option?.id === defaultValue;
33959
- return /* @__PURE__ */ jsxs74(
33953
+ return /* @__PURE__ */ jsxs73(
33960
33954
  "label",
33961
33955
  {
33962
33956
  onClick: () => !disabled && handleClick(option.id),
@@ -33991,7 +33985,7 @@ var StatusbarDurationField = (props) => {
33991
33985
  }) }),
33992
33986
  dataResponse?.records?.some(
33993
33987
  (item) => item?.fold && item.id !== defaultValue
33994
- ) && /* @__PURE__ */ jsxs74(
33988
+ ) && /* @__PURE__ */ jsxs73(
33995
33989
  "div",
33996
33990
  {
33997
33991
  onClick: () => setModalStatus(!modelStatus),
@@ -34029,13 +34023,13 @@ var StatusbarDurationField = (props) => {
34029
34023
 
34030
34024
  // src/widgets/basic/status-bar-field/option/option.tsx
34031
34025
  import { useMemo as useMemo10 } from "react";
34032
- import { jsx as jsx105, jsxs as jsxs75 } from "react/jsx-runtime";
34026
+ import { jsx as jsx105, jsxs as jsxs74 } from "react/jsx-runtime";
34033
34027
  var StatusBarOptionField = (props) => {
34034
34028
  const { selection, defaultValue } = props;
34035
34029
  const memoizedStatusOptions = useMemo10(() => selection, [selection]);
34036
34030
  return /* @__PURE__ */ jsx105("div", { className: "flex items-center flex-wrap", children: memoizedStatusOptions?.map((option, index4) => {
34037
34031
  const value = option?.[0] === defaultValue;
34038
- return /* @__PURE__ */ jsxs75(
34032
+ return /* @__PURE__ */ jsxs74(
34039
34033
  "label",
34040
34034
  {
34041
34035
  className: `relative flex-shrink-0 cursor-default py-[10px] px-8 font-semibold !text-sm
@@ -34062,7 +34056,7 @@ var StatusBarOptionField = (props) => {
34062
34056
  };
34063
34057
 
34064
34058
  // src/widgets/basic/date-option-field/date-option.tsx
34065
- import { jsx as jsx106, jsxs as jsxs76 } from "react/jsx-runtime";
34059
+ import { jsx as jsx106, jsxs as jsxs75 } from "react/jsx-runtime";
34066
34060
  var DateOptionField = (props) => {
34067
34061
  const {
34068
34062
  name: name2,
@@ -34078,7 +34072,7 @@ var DateOptionField = (props) => {
34078
34072
  {
34079
34073
  name: name2 ?? "",
34080
34074
  control: methods?.control,
34081
- render: ({ field }) => /* @__PURE__ */ jsxs76(
34075
+ render: ({ field }) => /* @__PURE__ */ jsxs75(
34082
34076
  "label",
34083
34077
  {
34084
34078
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm