@fctc/sme-widget-ui 2.3.4 → 2.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widgets.mjs CHANGED
@@ -7716,7 +7716,16 @@ var vi_default = {
7716
7716
  "no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
7717
7717
  paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \u0111\xF3ng",
7718
7718
  remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
7719
- only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh"
7719
+ only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
7720
+ "text-only": "Ch\u1EC9 \u0111\u01B0\u1EE3c nh\u1EADp ch\u1EEF (kh\xF4ng ch\u1EE9a s\u1ED1 v\xE0 k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t)",
7721
+ "number-only": "Ch\u1EC9 \u0111\u01B0\u1EE3c nh\u1EADp s\u1ED1 (kh\xF4ng ch\u1EE9a ch\u1EEF v\xE0 k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t)",
7722
+ "email-only": "Email kh\xF4ng h\u1EE3p l\u1EC7",
7723
+ "phone-only": "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",
7724
+ message: "M\u1EADt kh\u1EA9u ph\u1EA3i c\xF3 t\u1EEB {{min}} \u0111\u1EBFn {{max}} k\xFD t\u1EF1",
7725
+ "message-text-error": " kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 {{max}} k\xFD t\u1EF1",
7726
+ upcase: ", {{count}} ch\u1EEF in hoa",
7727
+ digit: ", {{count}} s\u1ED1",
7728
+ special: ", {{count}} k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t"
7720
7729
  };
7721
7730
 
7722
7731
  // src/locales/en.json
@@ -7766,7 +7775,16 @@ var en_default = {
7766
7775
  "no-available": "No options available",
7767
7776
  paid_amount: "Amount Paid",
7768
7777
  remanining_amount: "Amount Remaining",
7769
- only_image_accept: "Only accept image"
7778
+ only_image_accept: "Only accept image",
7779
+ "text-only": "Only letters (no numbers or special characters)",
7780
+ "number-only": "Only enter numbers (no letters or special characters)",
7781
+ "email-only": "Invalid email address",
7782
+ "phone-only": "Invalid phone number",
7783
+ message: "Password must be between {{min}} and {{max}} characters",
7784
+ "message-text-error": " must not exceed {{max}} characters",
7785
+ upcase: ", {{count}} uppercase letter",
7786
+ digit: ", {{count}} digit",
7787
+ special: ", {{count}} special character"
7770
7788
  };
7771
7789
 
7772
7790
  // src/utils/i18n.ts
@@ -8742,26 +8760,30 @@ import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
8742
8760
  var EyeIcon = () => /* @__PURE__ */ jsxs7(
8743
8761
  "svg",
8744
8762
  {
8745
- width: "20",
8746
- height: "21",
8747
- viewBox: "0 0 20 21",
8748
- fill: "none",
8749
8763
  xmlns: "http://www.w3.org/2000/svg",
8764
+ width: "16",
8765
+ height: "16",
8766
+ viewBox: "0 0 16 16",
8767
+ fill: "none",
8750
8768
  children: [
8751
8769
  /* @__PURE__ */ jsx19(
8752
8770
  "path",
8753
8771
  {
8754
- d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
8755
- stroke: "#ABACAE",
8756
- strokeWidth: "1.5"
8772
+ d: "M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z",
8773
+ stroke: "#646566",
8774
+ strokeWidth: "1.5",
8775
+ strokeLinecap: "round",
8776
+ strokeLinejoin: "round"
8757
8777
  }
8758
8778
  ),
8759
8779
  /* @__PURE__ */ jsx19(
8760
8780
  "path",
8761
8781
  {
8762
- d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
8763
- stroke: "#ABACAE",
8764
- strokeWidth: "1.5"
8782
+ d: "M7.9999 13.5138C10.3532 13.5138 12.5466 12.1271 14.0732 9.72714C14.6732 8.78714 14.6732 7.20714 14.0732 6.26714C12.5466 3.86714 10.3532 2.48047 7.9999 2.48047C5.64656 2.48047 3.45323 3.86714 1.92656 6.26714C1.32656 7.20714 1.32656 8.78714 1.92656 9.72714C3.45323 12.1271 5.64656 13.5138 7.9999 13.5138Z",
8783
+ stroke: "#646566",
8784
+ strokeWidth: "1.5",
8785
+ strokeLinecap: "round",
8786
+ strokeLinejoin: "round"
8765
8787
  }
8766
8788
  )
8767
8789
  ]
@@ -16554,9 +16576,9 @@ var CharField = (props) => {
16554
16576
  import { useEffect as useEffect12, useMemo as useMemo5, useState as useState11 } from "react";
16555
16577
 
16556
16578
  // src/icons/eye-hidden-icon.tsx
16557
- import { jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
16579
+ import { jsx as jsx79 } from "react/jsx-runtime";
16558
16580
  var EyeHiddenIcon = () => {
16559
- return /* @__PURE__ */ jsxs52(
16581
+ return /* @__PURE__ */ jsx79(
16560
16582
  "svg",
16561
16583
  {
16562
16584
  xmlns: "http://www.w3.org/2000/svg",
@@ -16564,74 +16586,19 @@ var EyeHiddenIcon = () => {
16564
16586
  height: "16",
16565
16587
  viewBox: "0 0 16 16",
16566
16588
  fill: "none",
16567
- children: [
16568
- /* @__PURE__ */ jsx79(
16569
- "path",
16570
- {
16571
- d: "M9.68661 6.31328L6.31328 9.68661C5.87995 9.25328 5.61328 8.65995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C8.65995 5.61328 9.25328 5.87995 9.68661 6.31328Z",
16572
- stroke: "#576071",
16573
- strokeWidth: "1.5",
16574
- strokeLinecap: "round",
16575
- strokeLinejoin: "round"
16576
- }
16577
- ),
16578
- /* @__PURE__ */ jsx79(
16579
- "path",
16580
- {
16581
- d: "M11.8799 3.8473C10.7132 2.9673 9.3799 2.4873 7.9999 2.4873C5.64656 2.4873 3.45323 3.87397 1.92656 6.27397C1.32656 7.21397 1.32656 8.79397 1.92656 9.73397C2.45323 10.5606 3.06656 11.274 3.73323 11.8473",
16582
- stroke: "#576071",
16583
- strokeWidth: "1.5",
16584
- strokeLinecap: "round",
16585
- strokeLinejoin: "round"
16586
- }
16587
- ),
16588
- /* @__PURE__ */ jsx79(
16589
- "path",
16590
- {
16591
- d: "M5.61328 13.0195C6.37328 13.3395 7.17995 13.5128 7.99995 13.5128C10.3533 13.5128 12.5466 12.1261 14.0733 9.72613C14.6733 8.78613 14.6733 7.20613 14.0733 6.26613C13.8533 5.91947 13.6133 5.5928 13.3666 5.28613",
16592
- stroke: "#576071",
16593
- strokeWidth: "1.5",
16594
- strokeLinecap: "round",
16595
- strokeLinejoin: "round"
16596
- }
16597
- ),
16598
- /* @__PURE__ */ jsx79(
16599
- "path",
16600
- {
16601
- d: "M10.3409 8.4668C10.1676 9.4068 9.40094 10.1735 8.46094 10.3468",
16602
- stroke: "#576071",
16603
- strokeWidth: "1.5",
16604
- strokeLinecap: "round",
16605
- strokeLinejoin: "round"
16606
- }
16607
- ),
16608
- /* @__PURE__ */ jsx79(
16609
- "path",
16610
- {
16611
- d: "M6.31203 9.68652L1.33203 14.6665",
16612
- stroke: "#576071",
16613
- strokeWidth: "1.5",
16614
- strokeLinecap: "round",
16615
- strokeLinejoin: "round"
16616
- }
16617
- ),
16618
- /* @__PURE__ */ jsx79(
16619
- "path",
16620
- {
16621
- d: "M14.6675 1.33301L9.6875 6.31301",
16622
- stroke: "#576071",
16623
- strokeWidth: "1.5",
16624
- strokeLinecap: "round",
16625
- strokeLinejoin: "round"
16626
- }
16627
- )
16628
- ]
16589
+ children: /* @__PURE__ */ jsx79(
16590
+ "path",
16591
+ {
16592
+ d: "M2.02273 4.37106C1.85957 3.99034 1.41866 3.81398 1.03793 3.97715C0.657212 4.14031 0.480849 4.58122 0.644015 4.96194L1.33337 4.6665L2.02273 4.37106ZM10.3915 8.88564L10.1168 8.18775L10.1168 8.18775L10.3915 8.88564ZM6.23722 9.29468C6.46313 8.94749 6.36481 8.48291 6.01762 8.257C5.67043 8.03109 5.20585 8.12941 4.97994 8.4766L5.60858 8.88564L6.23722 9.29468ZM4.03807 9.92413C3.81216 10.2713 3.91048 10.7359 4.25767 10.9618C4.60486 11.1877 5.06944 11.0894 5.29535 10.7422L4.66671 10.3332L4.03807 9.92413ZM15.3561 4.96194C15.5192 4.58122 15.3429 4.14031 14.9621 3.97715C14.5814 3.81398 14.1405 3.99034 13.9773 4.37106L14.6667 4.6665L15.3561 4.96194ZM12.6667 7.41906L12.1534 6.87221H12.1534L12.6667 7.41906ZM13.1364 8.94939C13.4293 9.24229 13.9041 9.24229 14.197 8.94939C14.4899 8.6565 14.4899 8.18163 14.197 7.88873L13.6667 8.41906L13.1364 8.94939ZM7.25004 10.9998C7.25004 11.4141 7.58583 11.7498 8.00004 11.7498C8.41425 11.7498 8.75004 11.4141 8.75004 10.9998H8.00004H7.25004ZM10.7047 10.7422C10.9306 11.0894 11.3952 11.1877 11.7424 10.9618C12.0896 10.7359 12.1879 10.2713 11.962 9.92413L11.3334 10.3332L10.7047 10.7422ZM3.8637 7.94939C4.1566 7.6565 4.1566 7.18163 3.8637 6.88873C3.57081 6.59584 3.09594 6.59584 2.80304 6.88873L3.33337 7.41906L3.8637 7.94939ZM1.80304 7.88873C1.51015 8.18163 1.51015 8.6565 1.80304 8.94939C2.09594 9.24229 2.57081 9.24229 2.8637 8.94939L2.33337 8.41906L1.80304 7.88873ZM8.00004 9.33317V8.58317C5.94282 8.58317 4.46137 7.56111 3.4663 6.4895C2.96899 5.95393 2.60371 5.41601 2.36326 5.01206C2.24346 4.81079 2.15582 4.64476 2.09925 4.53161C2.07099 4.4751 2.05057 4.43196 2.03785 4.40441C2.03149 4.39065 2.02706 4.3808 2.02455 4.37514C2.02329 4.37231 2.02251 4.37054 2.02221 4.36984C2.02206 4.3695 2.02203 4.36942 2.02211 4.36963C2.02216 4.36973 2.02223 4.3699 2.02233 4.37014C2.02239 4.37026 2.02249 4.37049 2.02251 4.37055C2.02262 4.3708 2.02273 4.37106 1.33337 4.6665C0.644015 4.96194 0.644145 4.96225 0.644283 4.96257C0.644339 4.9627 0.644484 4.96304 0.644597 4.9633C0.644822 4.96382 0.645079 4.96442 0.645367 4.96508C0.645943 4.96641 0.646645 4.96803 0.647473 4.96993C0.64913 4.97372 0.651291 4.97864 0.65396 4.98464C0.659298 4.99664 0.666671 5.013 0.6761 5.03341C0.694953 5.07423 0.722061 5.13135 0.757606 5.20243C0.828639 5.3445 0.933705 5.54305 1.07432 5.77928C1.35471 6.25033 1.78109 6.87907 2.36711 7.51018C3.53871 8.7719 5.3906 10.0832 8.00004 10.0832V9.33317ZM10.3915 8.88564L10.1168 8.18775C9.49772 8.43143 8.7951 8.58317 8.00004 8.58317V9.33317V10.0832C8.9916 10.0832 9.88017 9.89291 10.6662 9.58352L10.3915 8.88564ZM5.60858 8.88564L4.97994 8.4766L4.03807 9.92413L4.66671 10.3332L5.29535 10.7422L6.23722 9.29468L5.60858 8.88564ZM14.6667 4.6665C13.9773 4.37106 13.9774 4.37091 13.9775 4.37076C13.9775 4.37072 13.9776 4.37058 13.9776 4.37049C13.9777 4.37032 13.9777 4.37018 13.9778 4.37005C13.9779 4.3698 13.978 4.36964 13.978 4.36957C13.9781 4.36941 13.978 4.36961 13.9777 4.37014C13.9773 4.37121 13.9762 4.37363 13.9745 4.37736C13.9712 4.38483 13.9655 4.39752 13.9573 4.41503C13.941 4.45007 13.915 4.50434 13.8791 4.5747C13.8072 4.71559 13.6963 4.91998 13.5448 5.1631C13.2405 5.65149 12.7799 6.28423 12.1534 6.87221L12.6667 7.41906L13.18 7.96591C13.9259 7.26575 14.4653 6.52221 14.8179 5.95636C14.9949 5.67235 15.1266 5.43013 15.2153 5.25619C15.2597 5.16913 15.2935 5.09893 15.3168 5.04886C15.3285 5.02381 15.3376 5.00378 15.3441 4.98916C15.3474 4.98186 15.35 4.9759 15.352 4.97135C15.353 4.96907 15.3538 4.96714 15.3545 4.96557C15.3548 4.96479 15.3551 4.96409 15.3554 4.96349C15.3555 4.96319 15.3557 4.96291 15.3558 4.96265C15.3558 4.96252 15.3559 4.96234 15.3559 4.96228C15.356 4.96211 15.3561 4.96194 14.6667 4.6665ZM12.6667 7.41906L12.1534 6.87221C11.5987 7.39287 10.9224 7.87068 10.1168 8.18775L10.3915 8.88564L10.6662 9.58352C11.684 9.18292 12.5176 8.58764 13.18 7.96591L12.6667 7.41906ZM12.6667 7.41906L12.1364 7.94939L13.1364 8.94939L13.6667 8.41906L14.197 7.88873L13.197 6.88873L12.6667 7.41906ZM8.00004 9.33317H7.25004V10.9998H8.00004H8.75004V9.33317H8.00004ZM10.3915 8.88564L9.76286 9.29468L10.7047 10.7422L11.3334 10.3332L11.962 9.92413L11.0201 8.4766L10.3915 8.88564ZM3.33337 7.41906L2.80304 6.88873L1.80304 7.88873L2.33337 8.41906L2.8637 8.94939L3.8637 7.94939L3.33337 7.41906Z",
16593
+ fill: "#646566"
16594
+ }
16595
+ )
16629
16596
  }
16630
16597
  );
16631
16598
  };
16632
16599
 
16633
16600
  // src/widgets/basic/char-field/secure-field.tsx
16634
- import { jsx as jsx80, jsxs as jsxs53 } from "react/jsx-runtime";
16601
+ import { jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
16635
16602
  function isSensitive(widget) {
16636
16603
  return widget === "password" || widget === "access_token" || widget === "refresh_token" || widget === "private_secret_key";
16637
16604
  }
@@ -16712,7 +16679,7 @@ var SecureField = (props) => {
16712
16679
  useEffect12(() => {
16713
16680
  if (value2) clearErrors(name2);
16714
16681
  }, [value2, clearErrors, name2]);
16715
- return /* @__PURE__ */ jsxs53("div", { className: `relative w-full ${className ?? ""}`, children: [
16682
+ return /* @__PURE__ */ jsxs52("div", { className: `relative w-full ${className ?? ""}`, children: [
16716
16683
  isCappedToken && shouldMask && /* @__PURE__ */ jsx80(
16717
16684
  "div",
16718
16685
  {
@@ -16868,7 +16835,7 @@ var CheckboxField = (props) => {
16868
16835
 
16869
16836
  // src/widgets/basic/color-field/color-wrapper.tsx
16870
16837
  import { useEffect as useEffect13, useRef as useRef6, useState as useState12 } from "react";
16871
- import { Fragment as Fragment19, jsx as jsx82, jsxs as jsxs54 } from "react/jsx-runtime";
16838
+ import { Fragment as Fragment19, jsx as jsx82, jsxs as jsxs53 } from "react/jsx-runtime";
16872
16839
  var ColorWrapper = (props) => {
16873
16840
  const { colors: colors2, defaultColor, savePickColor } = props;
16874
16841
  const { t: t3 } = useI18n();
@@ -16892,7 +16859,7 @@ var ColorWrapper = (props) => {
16892
16859
  document.removeEventListener("mousedown", handleClickOutside);
16893
16860
  };
16894
16861
  }, []);
16895
- return /* @__PURE__ */ jsx82("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx82("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs54("div", { children: [
16862
+ return /* @__PURE__ */ jsx82("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx82("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs53("div", { children: [
16896
16863
  /* @__PURE__ */ jsx82(
16897
16864
  "button",
16898
16865
  {
@@ -16916,7 +16883,7 @@ var ColorWrapper = (props) => {
16916
16883
  content: t3(color?.name)
16917
16884
  }
16918
16885
  )
16919
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs54(Fragment19, { children: [
16886
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs53(Fragment19, { children: [
16920
16887
  /* @__PURE__ */ jsx82(
16921
16888
  "button",
16922
16889
  {
@@ -16973,7 +16940,7 @@ var ColorField = (props) => {
16973
16940
 
16974
16941
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
16975
16942
  import { useEffect as useEffect14 } from "react";
16976
- import { jsx as jsx84, jsxs as jsxs55 } from "react/jsx-runtime";
16943
+ import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
16977
16944
  var CopyLinkButtonField = (props) => {
16978
16945
  const {
16979
16946
  isForm,
@@ -17012,8 +16979,8 @@ var CopyLinkButtonField = (props) => {
17012
16979
  clearErrors(name2);
17013
16980
  }
17014
16981
  }, [value]);
17015
- return /* @__PURE__ */ jsxs55("div", { className: "relative", children: [
17016
- /* @__PURE__ */ jsxs55(
16982
+ return /* @__PURE__ */ jsxs54("div", { className: "relative", children: [
16983
+ /* @__PURE__ */ jsxs54(
17017
16984
  "div",
17018
16985
  {
17019
16986
  "aria-disabled": readonly,
@@ -21016,7 +20983,7 @@ function useEffectEvent(callback) {
21016
20983
  }
21017
20984
 
21018
20985
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21019
- import { jsx as jsx85, jsxs as jsxs56, Fragment as Fragment20 } from "react/jsx-runtime";
20986
+ import { jsx as jsx85, jsxs as jsxs55, Fragment as Fragment20 } from "react/jsx-runtime";
21020
20987
  import * as ReactDOM2 from "react-dom";
21021
20988
 
21022
20989
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21414,7 +21381,7 @@ var FloatingArrow = /* @__PURE__ */ React9.forwardRef(function FloatingArrow2(pr
21414
21381
  bottom: isCustomShape ? "" : "rotate(180deg)",
21415
21382
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21416
21383
  }[side];
21417
- return /* @__PURE__ */ jsxs56("svg", {
21384
+ return /* @__PURE__ */ jsxs55("svg", {
21418
21385
  ...rest,
21419
21386
  "aria-hidden": true,
21420
21387
  ref,
@@ -30830,7 +30797,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30830
30797
 
30831
30798
  // src/widgets/basic/date-field/date.tsx
30832
30799
  var import_moment2 = __toESM(require_moment());
30833
- import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs57 } from "react/jsx-runtime";
30800
+ import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs56 } from "react/jsx-runtime";
30834
30801
  var DateField = (props) => {
30835
30802
  const {
30836
30803
  name: name2,
@@ -30858,7 +30825,7 @@ var DateField = (props) => {
30858
30825
  } = props;
30859
30826
  const { t: t3 } = useI18n();
30860
30827
  const InputDateCustom = forwardRef6(
30861
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs57("label", { className: `flex ${className}`, children: [
30828
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs56("label", { className: `flex ${className}`, children: [
30862
30829
  /* @__PURE__ */ jsx88(
30863
30830
  "input",
30864
30831
  {
@@ -30901,7 +30868,7 @@ var DateField = (props) => {
30901
30868
  }
30902
30869
  }, [value, clearErrors, name2]);
30903
30870
  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;
30904
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
30871
+ return /* @__PURE__ */ jsxs56(Fragment24, { children: [
30905
30872
  /* @__PURE__ */ jsx88(
30906
30873
  DatePicker,
30907
30874
  {
@@ -30968,7 +30935,7 @@ var DateField = (props) => {
30968
30935
  increaseMonth,
30969
30936
  prevMonthButtonDisabled,
30970
30937
  nextMonthButtonDisabled
30971
- }) => /* @__PURE__ */ jsxs57(
30938
+ }) => /* @__PURE__ */ jsxs56(
30972
30939
  "div",
30973
30940
  {
30974
30941
  style: {
@@ -31061,11 +31028,11 @@ var DateField = (props) => {
31061
31028
  };
31062
31029
 
31063
31030
  // src/widgets/basic/download-binary-field/download-binary.tsx
31064
- import { jsx as jsx89, jsxs as jsxs58 } from "react/jsx-runtime";
31031
+ import { jsx as jsx89, jsxs as jsxs57 } from "react/jsx-runtime";
31065
31032
  var DownLoadBinaryField = (props) => {
31066
31033
  const { handleFileDownload } = props;
31067
31034
  const { t: t3 } = useI18n();
31068
- return /* @__PURE__ */ jsxs58(
31035
+ return /* @__PURE__ */ jsxs57(
31069
31036
  "button",
31070
31037
  {
31071
31038
  type: "button",
@@ -31080,7 +31047,7 @@ var DownLoadBinaryField = (props) => {
31080
31047
  };
31081
31048
 
31082
31049
  // src/widgets/basic/download-file-field/download-file.tsx
31083
- import { jsx as jsx90, jsxs as jsxs59 } from "react/jsx-runtime";
31050
+ import { jsx as jsx90, jsxs as jsxs58 } from "react/jsx-runtime";
31084
31051
  var DownloadFileField = (props) => {
31085
31052
  const {
31086
31053
  readonly,
@@ -31092,8 +31059,8 @@ var DownloadFileField = (props) => {
31092
31059
  handleFileChange,
31093
31060
  handleFileDownload
31094
31061
  } = props;
31095
- return /* @__PURE__ */ jsxs59("div", { className: "", children: [
31096
- /* @__PURE__ */ jsxs59(
31062
+ return /* @__PURE__ */ jsxs58("div", { className: "", children: [
31063
+ /* @__PURE__ */ jsxs58(
31097
31064
  "label",
31098
31065
  {
31099
31066
  htmlFor: inputId,
@@ -31128,7 +31095,7 @@ var DownloadFileField = (props) => {
31128
31095
 
31129
31096
  // src/widgets/basic/dropdown-field/dropdown.tsx
31130
31097
  import { useState as useState17 } from "react";
31131
- import { jsx as jsx91, jsxs as jsxs60 } from "react/jsx-runtime";
31098
+ import { jsx as jsx91, jsxs as jsxs59 } from "react/jsx-runtime";
31132
31099
  var DropdownField = (props) => {
31133
31100
  const {
31134
31101
  options: options2,
@@ -31142,14 +31109,14 @@ var DropdownField = (props) => {
31142
31109
  } = props;
31143
31110
  const [open, setOpen] = useState17(false);
31144
31111
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31145
- return /* @__PURE__ */ jsxs60(
31112
+ return /* @__PURE__ */ jsxs59(
31146
31113
  "div",
31147
31114
  {
31148
31115
  ref: dropdownRef,
31149
31116
  className: `relative ${className}`,
31150
31117
  onClick: () => setOpen(!open),
31151
31118
  children: [
31152
- /* @__PURE__ */ jsxs60(
31119
+ /* @__PURE__ */ jsxs59(
31153
31120
  "div",
31154
31121
  {
31155
31122
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
@@ -31185,7 +31152,7 @@ var DropdownField = (props) => {
31185
31152
  };
31186
31153
 
31187
31154
  // src/widgets/basic/fee-field/fee.tsx
31188
- import { Fragment as Fragment25, jsx as jsx92, jsxs as jsxs61 } from "react/jsx-runtime";
31155
+ import { Fragment as Fragment25, jsx as jsx92, jsxs as jsxs60 } from "react/jsx-runtime";
31189
31156
  var FeeField = (props) => {
31190
31157
  const { value, formValues } = props;
31191
31158
  const { t: t3 } = useI18n();
@@ -31196,23 +31163,23 @@ var FeeField = (props) => {
31196
31163
  )
31197
31164
  ) + " VND";
31198
31165
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31199
- return /* @__PURE__ */ jsxs61(Fragment25, { children: [
31166
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
31200
31167
  value?.subtotals?.map((sub) => {
31201
31168
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31202
- return /* @__PURE__ */ jsxs61(Fragment25, { children: [
31203
- /* @__PURE__ */ jsxs61("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31204
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31169
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
31170
+ /* @__PURE__ */ jsxs60("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31171
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31205
31172
  sub?.name,
31206
31173
  ":"
31207
31174
  ] }),
31208
31175
  /* @__PURE__ */ jsx92("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31209
31176
  ] }),
31210
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs61(
31177
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs60(
31211
31178
  "div",
31212
31179
  {
31213
31180
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31214
31181
  children: [
31215
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31182
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31216
31183
  group?.group_name,
31217
31184
  ":"
31218
31185
  ] }),
@@ -31224,22 +31191,22 @@ var FeeField = (props) => {
31224
31191
  ] });
31225
31192
  }
31226
31193
  }),
31227
- /* @__PURE__ */ jsxs61("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: [
31228
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31194
+ /* @__PURE__ */ jsxs60("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: [
31195
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31229
31196
  t3("total"),
31230
31197
  ":"
31231
31198
  ] }),
31232
31199
  /* @__PURE__ */ jsx92("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31233
31200
  ] }),
31234
- /* @__PURE__ */ jsxs61("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: [
31235
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31201
+ /* @__PURE__ */ jsxs60("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: [
31202
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31236
31203
  t3("paid_amount"),
31237
31204
  ":"
31238
31205
  ] }),
31239
31206
  /* @__PURE__ */ jsx92("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31240
31207
  ] }),
31241
- /* @__PURE__ */ jsxs61("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: [
31242
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31208
+ /* @__PURE__ */ jsxs60("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: [
31209
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31243
31210
  t3("remanining_amount"),
31244
31211
  ":"
31245
31212
  ] }),
@@ -31250,7 +31217,7 @@ var FeeField = (props) => {
31250
31217
 
31251
31218
  // src/widgets/basic/file-upload-field/file-upload.tsx
31252
31219
  import { useEffect as useEffect19, useRef as useRef14, useState as useState18 } from "react";
31253
- import { jsx as jsx93, jsxs as jsxs62 } from "react/jsx-runtime";
31220
+ import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31254
31221
  var RenderFile = ({
31255
31222
  file,
31256
31223
  onDelete,
@@ -31266,9 +31233,9 @@ var RenderFile = ({
31266
31233
  "application/vnd.ms-excel": /* @__PURE__ */ jsx93(ExcelIcon, {}),
31267
31234
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx93(ExcelIcon, {})
31268
31235
  };
31269
- return /* @__PURE__ */ jsxs62("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31236
+ return /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31270
31237
  /* @__PURE__ */ jsx93("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31271
- /* @__PURE__ */ jsxs62("div", { children: [
31238
+ /* @__PURE__ */ jsxs61("div", { children: [
31272
31239
  /* @__PURE__ */ jsx93(
31273
31240
  "div",
31274
31241
  {
@@ -31281,7 +31248,7 @@ var RenderFile = ({
31281
31248
  ),
31282
31249
  /* @__PURE__ */ jsx93("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31283
31250
  ] }),
31284
- /* @__PURE__ */ jsxs62("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: [
31251
+ /* @__PURE__ */ jsxs61("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: [
31285
31252
  /* @__PURE__ */ jsx93(
31286
31253
  "span",
31287
31254
  {
@@ -31351,7 +31318,7 @@ var FileUploadField = (props) => {
31351
31318
  );
31352
31319
  }
31353
31320
  }, [selectedFiles]);
31354
- return /* @__PURE__ */ jsxs62("div", { children: [
31321
+ return /* @__PURE__ */ jsxs61("div", { children: [
31355
31322
  selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx93(
31356
31323
  RenderFile,
31357
31324
  {
@@ -31392,7 +31359,7 @@ var FileUploadField = (props) => {
31392
31359
 
31393
31360
  // src/widgets/basic/float-field/float.tsx
31394
31361
  import { useEffect as useEffect20, useRef as useRef15, useState as useState19 } from "react";
31395
- import { Fragment as Fragment26, jsx as jsx94, jsxs as jsxs63 } from "react/jsx-runtime";
31362
+ import { Fragment as Fragment26, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31396
31363
  var FloatField = (props) => {
31397
31364
  const {
31398
31365
  name: name2,
@@ -31506,7 +31473,7 @@ var FloatField = (props) => {
31506
31473
  }
31507
31474
  isDirtyRef.current = false;
31508
31475
  };
31509
- return /* @__PURE__ */ jsxs63(Fragment26, { children: [
31476
+ return /* @__PURE__ */ jsxs62(Fragment26, { children: [
31510
31477
  /* @__PURE__ */ jsx94(
31511
31478
  "input",
31512
31479
  {
@@ -31535,7 +31502,7 @@ var FloatField = (props) => {
31535
31502
 
31536
31503
  // src/widgets/basic/float-time-field/float-time.tsx
31537
31504
  import { useState as useState20 } from "react";
31538
- import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs64 } from "react/jsx-runtime";
31505
+ import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
31539
31506
  var FloatTimeField = (props) => {
31540
31507
  const {
31541
31508
  name: name2,
@@ -31615,7 +31582,7 @@ var FloatTimeField = (props) => {
31615
31582
  }
31616
31583
  onBlur();
31617
31584
  };
31618
- return /* @__PURE__ */ jsxs64(Fragment27, { children: [
31585
+ return /* @__PURE__ */ jsxs63(Fragment27, { children: [
31619
31586
  /* @__PURE__ */ jsx95(
31620
31587
  "input",
31621
31588
  {
@@ -31725,7 +31692,7 @@ var ImageField = (props) => {
31725
31692
  import React17, { useEffect as useEffect22, useMemo as useMemo11 } from "react";
31726
31693
 
31727
31694
  // src/widgets/basic/information-field/information.tsx
31728
- import { Fragment as Fragment28, jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
31695
+ import { Fragment as Fragment28, jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
31729
31696
  var InfomationField = (props) => {
31730
31697
  const { value, isForm = false, showName = true, stringToColor } = props;
31731
31698
  if (!value || Array.isArray(value) && value.length === 0) {
@@ -31741,7 +31708,7 @@ var InfomationField = (props) => {
31741
31708
  stringToColor
31742
31709
  },
31743
31710
  item.id
31744
- )) : /* @__PURE__ */ jsxs65("div", { className: "flex gap-2 items-center w-max", children: [
31711
+ )) : /* @__PURE__ */ jsxs64("div", { className: "flex gap-2 items-center w-max", children: [
31745
31712
  /* @__PURE__ */ jsx98(
31746
31713
  AvatarField,
31747
31714
  {
@@ -31757,7 +31724,7 @@ var InfomationField = (props) => {
31757
31724
  };
31758
31725
 
31759
31726
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31760
- import { jsx as jsx99, jsxs as jsxs66 } from "react/jsx-runtime";
31727
+ import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
31761
31728
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31762
31729
  const { selectProps, data, menuList } = props;
31763
31730
  const { relation } = selectProps;
@@ -31766,7 +31733,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31766
31733
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31767
31734
  )
31768
31735
  )?.[0]?.action?.id;
31769
- return /* @__PURE__ */ jsxs66("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31736
+ return /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31770
31737
  /* @__PURE__ */ jsx99(
31771
31738
  AvatarField,
31772
31739
  {
@@ -31798,9 +31765,9 @@ var CustomMenuList = (props) => {
31798
31765
  const { setIsShowModalMany2Many, searchable } = selectProps;
31799
31766
  const { t: t3 } = useI18n();
31800
31767
  const limitedChildren = React17.Children.toArray(children).slice(0, 10);
31801
- return /* @__PURE__ */ jsxs66(components.MenuList, { ...props, className: "z-[99]", children: [
31768
+ return /* @__PURE__ */ jsxs65(components.MenuList, { ...props, className: "z-[99]", children: [
31802
31769
  limitedChildren,
31803
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs66(
31770
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs65(
31804
31771
  "button",
31805
31772
  {
31806
31773
  type: "button",
@@ -31890,7 +31857,7 @@ var Many2ManyTagField = (props) => {
31890
31857
  onChange2?.(name2 ?? "", newValue);
31891
31858
  clearErrors(name2);
31892
31859
  };
31893
- return /* @__PURE__ */ jsxs66("div", { className: "group h-full overflow-y-auto", children: [
31860
+ return /* @__PURE__ */ jsxs65("div", { className: "group h-full overflow-y-auto", children: [
31894
31861
  /* @__PURE__ */ jsx99(
31895
31862
  StateManagedSelect$1,
31896
31863
  {
@@ -32005,7 +31972,7 @@ var Many2ManyTagField = (props) => {
32005
31972
 
32006
31973
  // src/widgets/basic/monetary-field/monetary.tsx
32007
31974
  import { useEffect as useEffect23 } from "react";
32008
- import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs67 } from "react/jsx-runtime";
31975
+ import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32009
31976
  var MonetaryField = (props) => {
32010
31977
  const { t: t3 } = useI18n();
32011
31978
  const {
@@ -32026,8 +31993,8 @@ var MonetaryField = (props) => {
32026
31993
  symbol = "VND"
32027
31994
  } = props;
32028
31995
  if (isForm && name2 === "amount_residual") {
32029
- return /* @__PURE__ */ jsxs67("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32030
- /* @__PURE__ */ jsxs67("span", { className: "font-semibold", children: [
31996
+ return /* @__PURE__ */ jsxs66("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
31997
+ /* @__PURE__ */ jsxs66("span", { className: "font-semibold", children: [
32031
31998
  string,
32032
31999
  ":"
32033
32000
  ] }),
@@ -32064,7 +32031,7 @@ var MonetaryField = (props) => {
32064
32031
  clearErrors(name2);
32065
32032
  }
32066
32033
  }, [value2]);
32067
- return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32034
+ return /* @__PURE__ */ jsxs66(Fragment29, { children: [
32068
32035
  /* @__PURE__ */ jsx100(
32069
32036
  "input",
32070
32037
  {
@@ -32118,7 +32085,7 @@ var PaidBadgedField = () => {
32118
32085
 
32119
32086
  // src/widgets/basic/priority-field/rating-star.tsx
32120
32087
  import React18, { useEffect as useEffect24, useState as useState21 } from "react";
32121
- import { jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
32088
+ import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
32122
32089
  var RatingStarField = (props) => {
32123
32090
  const {
32124
32091
  label,
@@ -32163,7 +32130,7 @@ var RatingStarField = (props) => {
32163
32130
  const starValue = index4 + 1;
32164
32131
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32165
32132
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32166
- return /* @__PURE__ */ jsxs68(React18.Fragment, { children: [
32133
+ return /* @__PURE__ */ jsxs67(React18.Fragment, { children: [
32167
32134
  /* @__PURE__ */ jsx102(
32168
32135
  "div",
32169
32136
  {
@@ -32243,7 +32210,7 @@ var PriorityField = (props) => {
32243
32210
 
32244
32211
  // src/widgets/basic/radio-group-field/radio-group.tsx
32245
32212
  import { useEffect as useEffect25 } from "react";
32246
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32213
+ import { jsx as jsx104, jsxs as jsxs68 } from "react/jsx-runtime";
32247
32214
  var RadioGroupField = (props) => {
32248
32215
  const {
32249
32216
  name: name2,
@@ -32267,7 +32234,7 @@ var RadioGroupField = (props) => {
32267
32234
  {
32268
32235
  name: name2 ?? "",
32269
32236
  control: methods.control,
32270
- render: ({ field }) => /* @__PURE__ */ jsx104("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs69("div", { className: "flex items-center gap-1", children: [
32237
+ render: ({ field }) => /* @__PURE__ */ jsx104("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs68("div", { className: "flex items-center gap-1", children: [
32271
32238
  /* @__PURE__ */ jsx104(
32272
32239
  "input",
32273
32240
  {
@@ -32295,7 +32262,7 @@ var RadioGroupField = (props) => {
32295
32262
 
32296
32263
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32297
32264
  var import_moment3 = __toESM(require_moment());
32298
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32265
+ import { jsx as jsx105, jsxs as jsxs69 } from "react/jsx-runtime";
32299
32266
  var RemainingDaysField = (props) => {
32300
32267
  const {
32301
32268
  value,
@@ -32306,7 +32273,7 @@ var RemainingDaysField = (props) => {
32306
32273
  if (!value) return null;
32307
32274
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32308
32275
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32309
- return /* @__PURE__ */ jsxs70("div", { className: isForm ? "mb-4" : "", children: [
32276
+ return /* @__PURE__ */ jsxs69("div", { className: isForm ? "mb-4" : "", children: [
32310
32277
  /* @__PURE__ */ jsx105(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32311
32278
  /* @__PURE__ */ jsx105(
32312
32279
  "div",
@@ -32326,7 +32293,7 @@ var RemainingDaysField = (props) => {
32326
32293
  };
32327
32294
 
32328
32295
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32329
- import { Fragment as Fragment30, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32296
+ import { Fragment as Fragment30, jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
32330
32297
  var SelectDropdownField = (props) => {
32331
32298
  const { t: t3 } = useI18n();
32332
32299
  const {
@@ -32377,7 +32344,7 @@ var SelectDropdownField = (props) => {
32377
32344
  value: defaultValue || null,
32378
32345
  required: !invisible && required
32379
32346
  };
32380
- return /* @__PURE__ */ jsxs71(Fragment30, { children: [
32347
+ return /* @__PURE__ */ jsxs70(Fragment30, { children: [
32381
32348
  /* @__PURE__ */ jsx106("div", { className: `group ${isEditTable ? "h-full" : ""}`, children: /* @__PURE__ */ jsx106(
32382
32349
  StateManagedSelect$1,
32383
32350
  {
@@ -32491,7 +32458,7 @@ var TextAreaField = (props) => {
32491
32458
  };
32492
32459
 
32493
32460
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32494
- import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
32461
+ import { jsx as jsx108, jsxs as jsxs71 } from "react/jsx-runtime";
32495
32462
  var ToggleButtonField = (props) => {
32496
32463
  const {
32497
32464
  name: name2,
@@ -32506,7 +32473,7 @@ var ToggleButtonField = (props) => {
32506
32473
  {
32507
32474
  name: name2 ?? "",
32508
32475
  control: methods?.control,
32509
- render: ({ field }) => /* @__PURE__ */ jsx108("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs72("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32476
+ render: ({ field }) => /* @__PURE__ */ jsx108("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs71("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32510
32477
  /* @__PURE__ */ jsx108(
32511
32478
  "input",
32512
32479
  {
@@ -32561,7 +32528,7 @@ var ToggleButtonField = (props) => {
32561
32528
 
32562
32529
  // src/widgets/basic/integer-field/integer.tsx
32563
32530
  import { useEffect as useEffect26, useRef as useRef17, useState as useState22 } from "react";
32564
- import { Fragment as Fragment31, jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
32531
+ import { Fragment as Fragment31, jsx as jsx109, jsxs as jsxs72 } from "react/jsx-runtime";
32565
32532
  var IntegerField = (props) => {
32566
32533
  const {
32567
32534
  name: name2,
@@ -32660,7 +32627,7 @@ var IntegerField = (props) => {
32660
32627
  inputRef.current?.blur();
32661
32628
  clearErrors(name2);
32662
32629
  };
32663
- return /* @__PURE__ */ jsxs73(Fragment31, { children: [
32630
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
32664
32631
  /* @__PURE__ */ jsx109(
32665
32632
  "input",
32666
32633
  {
@@ -32704,7 +32671,7 @@ var IntegerField = (props) => {
32704
32671
  };
32705
32672
 
32706
32673
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32707
- import { jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
32674
+ import { jsx as jsx110, jsxs as jsxs73 } from "react/jsx-runtime";
32708
32675
  var StatusDropdownField = (props) => {
32709
32676
  const {
32710
32677
  buttonRef,
@@ -32716,7 +32683,7 @@ var StatusDropdownField = (props) => {
32716
32683
  handleClick,
32717
32684
  colors: colors2
32718
32685
  } = props;
32719
- return /* @__PURE__ */ jsxs74(
32686
+ return /* @__PURE__ */ jsxs73(
32720
32687
  "div",
32721
32688
  {
32722
32689
  ref: buttonRef,
@@ -32732,14 +32699,14 @@ var StatusDropdownField = (props) => {
32732
32699
  ),
32733
32700
  isOpen && /* @__PURE__ */ jsx110("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) => {
32734
32701
  const isActive = item[0] == state;
32735
- return /* @__PURE__ */ jsxs74(
32702
+ return /* @__PURE__ */ jsxs73(
32736
32703
  "div",
32737
32704
  {
32738
32705
  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" : ""}`,
32739
32706
  onClick: () => handleClick(item[0]),
32740
32707
  children: [
32741
32708
  /* @__PURE__ */ jsx110("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx110(CheckIcon, {}) }),
32742
- /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2", children: [
32709
+ /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2", children: [
32743
32710
  /* @__PURE__ */ jsx110(
32744
32711
  "div",
32745
32712
  {
@@ -32761,7 +32728,7 @@ var StatusDropdownField = (props) => {
32761
32728
  // src/widgets/basic/many2many-field/many2many.tsx
32762
32729
  import { createPortal as createPortal5 } from "react-dom";
32763
32730
  import { useEffect as useEffect27 } from "react";
32764
- import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
32731
+ import { jsx as jsx111, jsxs as jsxs74 } from "react/jsx-runtime";
32765
32732
  var Many2ManyField = (props) => {
32766
32733
  const { t: t3 } = useI18n();
32767
32734
  const {
@@ -32835,7 +32802,7 @@ var Many2ManyField = (props) => {
32835
32802
  };
32836
32803
  }, [selectedTags]);
32837
32804
  return createPortal5(
32838
- /* @__PURE__ */ jsxs75(
32805
+ /* @__PURE__ */ jsxs74(
32839
32806
  "div",
32840
32807
  {
32841
32808
  style: {
@@ -32844,7 +32811,7 @@ var Many2ManyField = (props) => {
32844
32811
  className: "fixed bottom-0 left-0 right-0 top-0",
32845
32812
  children: [
32846
32813
  /* @__PURE__ */ jsx111("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32847
- /* @__PURE__ */ jsx111("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs75(
32814
+ /* @__PURE__ */ jsx111("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs74(
32848
32815
  "div",
32849
32816
  {
32850
32817
  style: {
@@ -32852,11 +32819,11 @@ var Many2ManyField = (props) => {
32852
32819
  },
32853
32820
  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",
32854
32821
  children: [
32855
- /* @__PURE__ */ jsxs75("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32822
+ /* @__PURE__ */ jsxs74("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32856
32823
  /* @__PURE__ */ jsx111("div", { className: "text-[20px] font-semibold", children: title }),
32857
32824
  /* @__PURE__ */ jsx111("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx111(CloseIcon, {}) })
32858
32825
  ] }),
32859
- /* @__PURE__ */ jsxs75("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32826
+ /* @__PURE__ */ jsxs74("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32860
32827
  /* @__PURE__ */ jsx111("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx111(
32861
32828
  Search,
32862
32829
  {
@@ -32916,7 +32883,7 @@ var Many2ManyField = (props) => {
32916
32883
  "div",
32917
32884
  {
32918
32885
  className: `flex w-full items-center h-full overflow-auto `,
32919
- children: /* @__PURE__ */ jsx111("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs75(
32886
+ children: /* @__PURE__ */ jsx111("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs74(
32920
32887
  "table",
32921
32888
  {
32922
32889
  className: `relative w-full bg-white custom-dropdown `,
@@ -32992,7 +32959,7 @@ var Many2ManyField = (props) => {
32992
32959
  ) }) })
32993
32960
  }
32994
32961
  ) }) }) : /* @__PURE__ */ jsx111(LayerLoading, {}),
32995
- /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-2 mt-auto", children: [
32962
+ /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2 mt-auto", children: [
32996
32963
  isDisplayCheckbox && /* @__PURE__ */ jsx111(
32997
32964
  "button",
32998
32965
  {
@@ -33041,15 +33008,15 @@ var Many2ManyField = (props) => {
33041
33008
 
33042
33009
  // src/widgets/basic/many2one-field/many2one.tsx
33043
33010
  import React19, { useEffect as useEffect28 } from "react";
33044
- import { Fragment as Fragment32, jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
33011
+ import { Fragment as Fragment32, jsx as jsx112, jsxs as jsxs75 } from "react/jsx-runtime";
33045
33012
  var CustomMenuList2 = (props) => {
33046
33013
  const { t: t3 } = useI18n();
33047
33014
  const { options: options2, children, selectProps } = props;
33048
33015
  const { setIsShowModalMany2Many, searchable } = selectProps;
33049
33016
  const limitedChildren = React19.Children.toArray(children).slice(0, 10);
33050
- return /* @__PURE__ */ jsxs76(components.MenuList, { ...props, className: "z-[99]", children: [
33017
+ return /* @__PURE__ */ jsxs75(components.MenuList, { ...props, className: "z-[99]", children: [
33051
33018
  limitedChildren,
33052
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs76(
33019
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs75(
33053
33020
  "button",
33054
33021
  {
33055
33022
  type: "button",
@@ -33092,7 +33059,7 @@ var Many2OneField = (props) => {
33092
33059
  const { t: t3 } = useI18n();
33093
33060
  if (!isForm && !isEditTable) {
33094
33061
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33095
- return /* @__PURE__ */ jsxs76(Fragment32, { children: [
33062
+ return /* @__PURE__ */ jsxs75(Fragment32, { children: [
33096
33063
  allowShowDetail && renderDetail({
33097
33064
  idToolTip: String(name2) + Number(index4),
33098
33065
  model: options2?.model ?? relation,
@@ -33110,7 +33077,7 @@ var Many2OneField = (props) => {
33110
33077
  )
33111
33078
  ] });
33112
33079
  }
33113
- return /* @__PURE__ */ jsxs76(Fragment32, { children: [
33080
+ return /* @__PURE__ */ jsxs75(Fragment32, { children: [
33114
33081
  allowShowDetail && renderDetail({
33115
33082
  idToolTip: String(name2),
33116
33083
  model: options2?.model ?? relation,
@@ -33148,7 +33115,7 @@ var Many2OneField = (props) => {
33148
33115
  methods?.clearErrors(name2);
33149
33116
  }
33150
33117
  }, [selectedOption]);
33151
- return /* @__PURE__ */ jsxs76("div", { className: "h-full", children: [
33118
+ return /* @__PURE__ */ jsxs75("div", { className: "h-full", children: [
33152
33119
  /* @__PURE__ */ jsx112(
33153
33120
  StateManagedSelect$1,
33154
33121
  {
@@ -33254,7 +33221,7 @@ var Many2OneField = (props) => {
33254
33221
  };
33255
33222
 
33256
33223
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33257
- import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
33224
+ import { jsx as jsx113, jsxs as jsxs76 } from "react/jsx-runtime";
33258
33225
  var StatusbarDurationField = (props) => {
33259
33226
  const {
33260
33227
  disabled,
@@ -33268,10 +33235,10 @@ var StatusbarDurationField = (props) => {
33268
33235
  "div",
33269
33236
  {
33270
33237
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33271
- children: /* @__PURE__ */ jsxs77("div", { className: "flex items-center gap-[24px]", children: [
33238
+ children: /* @__PURE__ */ jsxs76("div", { className: "flex items-center gap-[24px]", children: [
33272
33239
  /* @__PURE__ */ jsx113("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33273
33240
  const value = option?.id === defaultValue;
33274
- return /* @__PURE__ */ jsxs77(
33241
+ return /* @__PURE__ */ jsxs76(
33275
33242
  "label",
33276
33243
  {
33277
33244
  onClick: () => !disabled && handleClick(option.id),
@@ -33306,7 +33273,7 @@ var StatusbarDurationField = (props) => {
33306
33273
  }) }),
33307
33274
  dataResponse?.records?.some(
33308
33275
  (item) => item?.fold && item.id !== defaultValue
33309
- ) && /* @__PURE__ */ jsxs77(
33276
+ ) && /* @__PURE__ */ jsxs76(
33310
33277
  "div",
33311
33278
  {
33312
33279
  onClick: () => setModalStatus(!modelStatus),
@@ -33344,7 +33311,7 @@ var StatusbarDurationField = (props) => {
33344
33311
 
33345
33312
  // src/widgets/basic/status-bar-field/option/option.tsx
33346
33313
  import { useMemo as useMemo12 } from "react";
33347
- import { Fragment as Fragment33, jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
33314
+ import { Fragment as Fragment33, jsx as jsx114, jsxs as jsxs77 } from "react/jsx-runtime";
33348
33315
  var StatusBarOptionField = (props) => {
33349
33316
  const { selection, defaultValue } = props;
33350
33317
  const memoizedStatusOptions = useMemo12(() => selection, [selection]);
@@ -33360,8 +33327,8 @@ var StatusBarOptionField = (props) => {
33360
33327
  flexWrap: "wrap"
33361
33328
  },
33362
33329
  children: memoizedStatusOptions?.map((option, index4) => {
33363
- return /* @__PURE__ */ jsxs78(Fragment33, { children: [
33364
- /* @__PURE__ */ jsxs78(
33330
+ return /* @__PURE__ */ jsxs77(Fragment33, { children: [
33331
+ /* @__PURE__ */ jsxs77(
33365
33332
  "div",
33366
33333
  {
33367
33334
  style: {
@@ -33480,7 +33447,7 @@ var ICCheck = () => {
33480
33447
  };
33481
33448
 
33482
33449
  // src/widgets/basic/date-option-field/date-option.tsx
33483
- import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
33450
+ import { jsx as jsx115, jsxs as jsxs78 } from "react/jsx-runtime";
33484
33451
  var DateOptionField = (props) => {
33485
33452
  const {
33486
33453
  name: name2,
@@ -33496,7 +33463,7 @@ var DateOptionField = (props) => {
33496
33463
  {
33497
33464
  name: name2 ?? "",
33498
33465
  control: methods?.control,
33499
- render: ({ field }) => /* @__PURE__ */ jsxs79(
33466
+ render: ({ field }) => /* @__PURE__ */ jsxs78(
33500
33467
  "label",
33501
33468
  {
33502
33469
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm