@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/index.mjs CHANGED
@@ -5636,26 +5636,30 @@ import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
5636
5636
  var EyeIcon = () => /* @__PURE__ */ jsxs6(
5637
5637
  "svg",
5638
5638
  {
5639
- width: "20",
5640
- height: "21",
5641
- viewBox: "0 0 20 21",
5642
- fill: "none",
5643
5639
  xmlns: "http://www.w3.org/2000/svg",
5640
+ width: "16",
5641
+ height: "16",
5642
+ viewBox: "0 0 16 16",
5643
+ fill: "none",
5644
5644
  children: [
5645
5645
  /* @__PURE__ */ jsx16(
5646
5646
  "path",
5647
5647
  {
5648
- 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",
5649
- stroke: "#ABACAE",
5650
- strokeWidth: "1.5"
5648
+ 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",
5649
+ stroke: "#646566",
5650
+ strokeWidth: "1.5",
5651
+ strokeLinecap: "round",
5652
+ strokeLinejoin: "round"
5651
5653
  }
5652
5654
  ),
5653
5655
  /* @__PURE__ */ jsx16(
5654
5656
  "path",
5655
5657
  {
5656
- 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",
5657
- stroke: "#ABACAE",
5658
- strokeWidth: "1.5"
5658
+ 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",
5659
+ stroke: "#646566",
5660
+ strokeWidth: "1.5",
5661
+ strokeLinecap: "round",
5662
+ strokeLinejoin: "round"
5659
5663
  }
5660
5664
  )
5661
5665
  ]
@@ -9859,7 +9863,16 @@ var vi_default = {
9859
9863
  "no-available": "Kh\xF4ng c\xF3 l\u1EF1a ch\u1ECDn n\xE0o",
9860
9864
  paid_amount: "S\u1ED1 ti\u1EC1n \u0111\xE3 \u0111\xF3ng",
9861
9865
  remanining_amount: "S\u1ED1 ti\u1EC1n c\xF2n l\u1EA1i",
9862
- only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh"
9866
+ only_image_accept: "Ch\u1EC9 \u0111\u01B0\u1EE3c upload file h\xECnh \u1EA3nh",
9867
+ "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)",
9868
+ "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)",
9869
+ "email-only": "Email kh\xF4ng h\u1EE3p l\u1EC7",
9870
+ "phone-only": "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i kh\xF4ng h\u1EE3p l\u1EC7",
9871
+ message: "M\u1EADt kh\u1EA9u ph\u1EA3i c\xF3 t\u1EEB {{min}} \u0111\u1EBFn {{max}} k\xFD t\u1EF1",
9872
+ "message-text-error": " kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 {{max}} k\xFD t\u1EF1",
9873
+ upcase: ", {{count}} ch\u1EEF in hoa",
9874
+ digit: ", {{count}} s\u1ED1",
9875
+ special: ", {{count}} k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t"
9863
9876
  };
9864
9877
 
9865
9878
  // src/locales/en.json
@@ -9909,7 +9922,16 @@ var en_default = {
9909
9922
  "no-available": "No options available",
9910
9923
  paid_amount: "Amount Paid",
9911
9924
  remanining_amount: "Amount Remaining",
9912
- only_image_accept: "Only accept image"
9925
+ only_image_accept: "Only accept image",
9926
+ "text-only": "Only letters (no numbers or special characters)",
9927
+ "number-only": "Only enter numbers (no letters or special characters)",
9928
+ "email-only": "Invalid email address",
9929
+ "phone-only": "Invalid phone number",
9930
+ message: "Password must be between {{min}} and {{max}} characters",
9931
+ "message-text-error": " must not exceed {{max}} characters",
9932
+ upcase: ", {{count}} uppercase letter",
9933
+ digit: ", {{count}} digit",
9934
+ special: ", {{count}} special character"
9913
9935
  };
9914
9936
 
9915
9937
  // src/utils/i18n.ts
@@ -17241,9 +17263,9 @@ var CharField = (props) => {
17241
17263
  import { useEffect as useEffect12, useMemo as useMemo5, useState as useState11 } from "react";
17242
17264
 
17243
17265
  // src/icons/eye-hidden-icon.tsx
17244
- import { jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
17266
+ import { jsx as jsx79 } from "react/jsx-runtime";
17245
17267
  var EyeHiddenIcon = () => {
17246
- return /* @__PURE__ */ jsxs52(
17268
+ return /* @__PURE__ */ jsx79(
17247
17269
  "svg",
17248
17270
  {
17249
17271
  xmlns: "http://www.w3.org/2000/svg",
@@ -17251,74 +17273,19 @@ var EyeHiddenIcon = () => {
17251
17273
  height: "16",
17252
17274
  viewBox: "0 0 16 16",
17253
17275
  fill: "none",
17254
- children: [
17255
- /* @__PURE__ */ jsx79(
17256
- "path",
17257
- {
17258
- 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",
17259
- stroke: "#576071",
17260
- strokeWidth: "1.5",
17261
- strokeLinecap: "round",
17262
- strokeLinejoin: "round"
17263
- }
17264
- ),
17265
- /* @__PURE__ */ jsx79(
17266
- "path",
17267
- {
17268
- 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",
17269
- stroke: "#576071",
17270
- strokeWidth: "1.5",
17271
- strokeLinecap: "round",
17272
- strokeLinejoin: "round"
17273
- }
17274
- ),
17275
- /* @__PURE__ */ jsx79(
17276
- "path",
17277
- {
17278
- 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",
17279
- stroke: "#576071",
17280
- strokeWidth: "1.5",
17281
- strokeLinecap: "round",
17282
- strokeLinejoin: "round"
17283
- }
17284
- ),
17285
- /* @__PURE__ */ jsx79(
17286
- "path",
17287
- {
17288
- d: "M10.3409 8.4668C10.1676 9.4068 9.40094 10.1735 8.46094 10.3468",
17289
- stroke: "#576071",
17290
- strokeWidth: "1.5",
17291
- strokeLinecap: "round",
17292
- strokeLinejoin: "round"
17293
- }
17294
- ),
17295
- /* @__PURE__ */ jsx79(
17296
- "path",
17297
- {
17298
- d: "M6.31203 9.68652L1.33203 14.6665",
17299
- stroke: "#576071",
17300
- strokeWidth: "1.5",
17301
- strokeLinecap: "round",
17302
- strokeLinejoin: "round"
17303
- }
17304
- ),
17305
- /* @__PURE__ */ jsx79(
17306
- "path",
17307
- {
17308
- d: "M14.6675 1.33301L9.6875 6.31301",
17309
- stroke: "#576071",
17310
- strokeWidth: "1.5",
17311
- strokeLinecap: "round",
17312
- strokeLinejoin: "round"
17313
- }
17314
- )
17315
- ]
17276
+ children: /* @__PURE__ */ jsx79(
17277
+ "path",
17278
+ {
17279
+ 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",
17280
+ fill: "#646566"
17281
+ }
17282
+ )
17316
17283
  }
17317
17284
  );
17318
17285
  };
17319
17286
 
17320
17287
  // src/widgets/basic/char-field/secure-field.tsx
17321
- import { jsx as jsx80, jsxs as jsxs53 } from "react/jsx-runtime";
17288
+ import { jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
17322
17289
  function isSensitive(widget) {
17323
17290
  return widget === "password" || widget === "access_token" || widget === "refresh_token" || widget === "private_secret_key";
17324
17291
  }
@@ -17399,7 +17366,7 @@ var SecureField = (props) => {
17399
17366
  useEffect12(() => {
17400
17367
  if (value2) clearErrors(name2);
17401
17368
  }, [value2, clearErrors, name2]);
17402
- return /* @__PURE__ */ jsxs53("div", { className: `relative w-full ${className ?? ""}`, children: [
17369
+ return /* @__PURE__ */ jsxs52("div", { className: `relative w-full ${className ?? ""}`, children: [
17403
17370
  isCappedToken && shouldMask && /* @__PURE__ */ jsx80(
17404
17371
  "div",
17405
17372
  {
@@ -17555,7 +17522,7 @@ var CheckboxField = (props) => {
17555
17522
 
17556
17523
  // src/widgets/basic/color-field/color-wrapper.tsx
17557
17524
  import { useEffect as useEffect13, useRef as useRef6, useState as useState12 } from "react";
17558
- import { Fragment as Fragment19, jsx as jsx82, jsxs as jsxs54 } from "react/jsx-runtime";
17525
+ import { Fragment as Fragment19, jsx as jsx82, jsxs as jsxs53 } from "react/jsx-runtime";
17559
17526
  var ColorWrapper = (props) => {
17560
17527
  const { colors: colors2, defaultColor, savePickColor } = props;
17561
17528
  const { t: t3 } = useI18n();
@@ -17579,7 +17546,7 @@ var ColorWrapper = (props) => {
17579
17546
  document.removeEventListener("mousedown", handleClickOutside);
17580
17547
  };
17581
17548
  }, []);
17582
- return /* @__PURE__ */ jsx82("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx82("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs54("div", { children: [
17549
+ return /* @__PURE__ */ jsx82("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx82("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs53("div", { children: [
17583
17550
  /* @__PURE__ */ jsx82(
17584
17551
  "button",
17585
17552
  {
@@ -17603,7 +17570,7 @@ var ColorWrapper = (props) => {
17603
17570
  content: t3(color?.name)
17604
17571
  }
17605
17572
  )
17606
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs54(Fragment19, { children: [
17573
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs53(Fragment19, { children: [
17607
17574
  /* @__PURE__ */ jsx82(
17608
17575
  "button",
17609
17576
  {
@@ -17660,7 +17627,7 @@ var ColorField = (props) => {
17660
17627
 
17661
17628
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17662
17629
  import { useEffect as useEffect14 } from "react";
17663
- import { jsx as jsx84, jsxs as jsxs55 } from "react/jsx-runtime";
17630
+ import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
17664
17631
  var CopyLinkButtonField = (props) => {
17665
17632
  const {
17666
17633
  isForm,
@@ -17699,8 +17666,8 @@ var CopyLinkButtonField = (props) => {
17699
17666
  clearErrors(name2);
17700
17667
  }
17701
17668
  }, [value]);
17702
- return /* @__PURE__ */ jsxs55("div", { className: "relative", children: [
17703
- /* @__PURE__ */ jsxs55(
17669
+ return /* @__PURE__ */ jsxs54("div", { className: "relative", children: [
17670
+ /* @__PURE__ */ jsxs54(
17704
17671
  "div",
17705
17672
  {
17706
17673
  "aria-disabled": readonly,
@@ -21703,7 +21670,7 @@ function useEffectEvent(callback) {
21703
21670
  }
21704
21671
 
21705
21672
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21706
- import { jsx as jsx85, jsxs as jsxs56, Fragment as Fragment20 } from "react/jsx-runtime";
21673
+ import { jsx as jsx85, jsxs as jsxs55, Fragment as Fragment20 } from "react/jsx-runtime";
21707
21674
  import * as ReactDOM2 from "react-dom";
21708
21675
 
21709
21676
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -22101,7 +22068,7 @@ var FloatingArrow = /* @__PURE__ */ React9.forwardRef(function FloatingArrow2(pr
22101
22068
  bottom: isCustomShape ? "" : "rotate(180deg)",
22102
22069
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
22103
22070
  }[side];
22104
- return /* @__PURE__ */ jsxs56("svg", {
22071
+ return /* @__PURE__ */ jsxs55("svg", {
22105
22072
  ...rest,
22106
22073
  "aria-hidden": true,
22107
22074
  ref,
@@ -31517,7 +31484,7 @@ var StateManagedSelect$1 = StateManagedSelect;
31517
31484
 
31518
31485
  // src/widgets/basic/date-field/date.tsx
31519
31486
  var import_moment2 = __toESM(require_moment());
31520
- import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs57 } from "react/jsx-runtime";
31487
+ import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs56 } from "react/jsx-runtime";
31521
31488
  var DateField = (props) => {
31522
31489
  const {
31523
31490
  name: name2,
@@ -31545,7 +31512,7 @@ var DateField = (props) => {
31545
31512
  } = props;
31546
31513
  const { t: t3 } = useI18n();
31547
31514
  const InputDateCustom = forwardRef6(
31548
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs57("label", { className: `flex ${className}`, children: [
31515
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs56("label", { className: `flex ${className}`, children: [
31549
31516
  /* @__PURE__ */ jsx88(
31550
31517
  "input",
31551
31518
  {
@@ -31588,7 +31555,7 @@ var DateField = (props) => {
31588
31555
  }
31589
31556
  }, [value, clearErrors, name2]);
31590
31557
  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;
31591
- return /* @__PURE__ */ jsxs57(Fragment24, { children: [
31558
+ return /* @__PURE__ */ jsxs56(Fragment24, { children: [
31592
31559
  /* @__PURE__ */ jsx88(
31593
31560
  DatePicker,
31594
31561
  {
@@ -31655,7 +31622,7 @@ var DateField = (props) => {
31655
31622
  increaseMonth,
31656
31623
  prevMonthButtonDisabled,
31657
31624
  nextMonthButtonDisabled
31658
- }) => /* @__PURE__ */ jsxs57(
31625
+ }) => /* @__PURE__ */ jsxs56(
31659
31626
  "div",
31660
31627
  {
31661
31628
  style: {
@@ -31748,11 +31715,11 @@ var DateField = (props) => {
31748
31715
  };
31749
31716
 
31750
31717
  // src/widgets/basic/download-binary-field/download-binary.tsx
31751
- import { jsx as jsx89, jsxs as jsxs58 } from "react/jsx-runtime";
31718
+ import { jsx as jsx89, jsxs as jsxs57 } from "react/jsx-runtime";
31752
31719
  var DownLoadBinaryField = (props) => {
31753
31720
  const { handleFileDownload } = props;
31754
31721
  const { t: t3 } = useI18n();
31755
- return /* @__PURE__ */ jsxs58(
31722
+ return /* @__PURE__ */ jsxs57(
31756
31723
  "button",
31757
31724
  {
31758
31725
  type: "button",
@@ -31767,7 +31734,7 @@ var DownLoadBinaryField = (props) => {
31767
31734
  };
31768
31735
 
31769
31736
  // src/widgets/basic/download-file-field/download-file.tsx
31770
- import { jsx as jsx90, jsxs as jsxs59 } from "react/jsx-runtime";
31737
+ import { jsx as jsx90, jsxs as jsxs58 } from "react/jsx-runtime";
31771
31738
  var DownloadFileField = (props) => {
31772
31739
  const {
31773
31740
  readonly,
@@ -31779,8 +31746,8 @@ var DownloadFileField = (props) => {
31779
31746
  handleFileChange,
31780
31747
  handleFileDownload
31781
31748
  } = props;
31782
- return /* @__PURE__ */ jsxs59("div", { className: "", children: [
31783
- /* @__PURE__ */ jsxs59(
31749
+ return /* @__PURE__ */ jsxs58("div", { className: "", children: [
31750
+ /* @__PURE__ */ jsxs58(
31784
31751
  "label",
31785
31752
  {
31786
31753
  htmlFor: inputId,
@@ -31815,7 +31782,7 @@ var DownloadFileField = (props) => {
31815
31782
 
31816
31783
  // src/widgets/basic/dropdown-field/dropdown.tsx
31817
31784
  import { useState as useState17 } from "react";
31818
- import { jsx as jsx91, jsxs as jsxs60 } from "react/jsx-runtime";
31785
+ import { jsx as jsx91, jsxs as jsxs59 } from "react/jsx-runtime";
31819
31786
  var DropdownField = (props) => {
31820
31787
  const {
31821
31788
  options: options2,
@@ -31829,14 +31796,14 @@ var DropdownField = (props) => {
31829
31796
  } = props;
31830
31797
  const [open, setOpen] = useState17(false);
31831
31798
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31832
- return /* @__PURE__ */ jsxs60(
31799
+ return /* @__PURE__ */ jsxs59(
31833
31800
  "div",
31834
31801
  {
31835
31802
  ref: dropdownRef,
31836
31803
  className: `relative ${className}`,
31837
31804
  onClick: () => setOpen(!open),
31838
31805
  children: [
31839
- /* @__PURE__ */ jsxs60(
31806
+ /* @__PURE__ */ jsxs59(
31840
31807
  "div",
31841
31808
  {
31842
31809
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
@@ -31872,7 +31839,7 @@ var DropdownField = (props) => {
31872
31839
  };
31873
31840
 
31874
31841
  // src/widgets/basic/fee-field/fee.tsx
31875
- import { Fragment as Fragment25, jsx as jsx92, jsxs as jsxs61 } from "react/jsx-runtime";
31842
+ import { Fragment as Fragment25, jsx as jsx92, jsxs as jsxs60 } from "react/jsx-runtime";
31876
31843
  var FeeField = (props) => {
31877
31844
  const { value, formValues } = props;
31878
31845
  const { t: t3 } = useI18n();
@@ -31883,23 +31850,23 @@ var FeeField = (props) => {
31883
31850
  )
31884
31851
  ) + " VND";
31885
31852
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31886
- return /* @__PURE__ */ jsxs61(Fragment25, { children: [
31853
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
31887
31854
  value?.subtotals?.map((sub) => {
31888
31855
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31889
- return /* @__PURE__ */ jsxs61(Fragment25, { children: [
31890
- /* @__PURE__ */ jsxs61("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31891
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31856
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
31857
+ /* @__PURE__ */ jsxs60("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31858
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31892
31859
  sub?.name,
31893
31860
  ":"
31894
31861
  ] }),
31895
31862
  /* @__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" })
31896
31863
  ] }),
31897
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs61(
31864
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs60(
31898
31865
  "div",
31899
31866
  {
31900
31867
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31901
31868
  children: [
31902
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31869
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31903
31870
  group?.group_name,
31904
31871
  ":"
31905
31872
  ] }),
@@ -31911,22 +31878,22 @@ var FeeField = (props) => {
31911
31878
  ] });
31912
31879
  }
31913
31880
  }),
31914
- /* @__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: [
31915
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31881
+ /* @__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: [
31882
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31916
31883
  t3("total"),
31917
31884
  ":"
31918
31885
  ] }),
31919
31886
  /* @__PURE__ */ jsx92("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31920
31887
  ] }),
31921
- /* @__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: [
31922
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31888
+ /* @__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: [
31889
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31923
31890
  t3("paid_amount"),
31924
31891
  ":"
31925
31892
  ] }),
31926
31893
  /* @__PURE__ */ jsx92("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31927
31894
  ] }),
31928
- /* @__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: [
31929
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31895
+ /* @__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: [
31896
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31930
31897
  t3("remanining_amount"),
31931
31898
  ":"
31932
31899
  ] }),
@@ -31937,7 +31904,7 @@ var FeeField = (props) => {
31937
31904
 
31938
31905
  // src/widgets/basic/file-upload-field/file-upload.tsx
31939
31906
  import { useEffect as useEffect19, useRef as useRef14, useState as useState18 } from "react";
31940
- import { jsx as jsx93, jsxs as jsxs62 } from "react/jsx-runtime";
31907
+ import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31941
31908
  var RenderFile = ({
31942
31909
  file,
31943
31910
  onDelete,
@@ -31953,9 +31920,9 @@ var RenderFile = ({
31953
31920
  "application/vnd.ms-excel": /* @__PURE__ */ jsx93(ExcelIcon, {}),
31954
31921
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx93(ExcelIcon, {})
31955
31922
  };
31956
- return /* @__PURE__ */ jsxs62("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31923
+ return /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31957
31924
  /* @__PURE__ */ jsx93("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31958
- /* @__PURE__ */ jsxs62("div", { children: [
31925
+ /* @__PURE__ */ jsxs61("div", { children: [
31959
31926
  /* @__PURE__ */ jsx93(
31960
31927
  "div",
31961
31928
  {
@@ -31968,7 +31935,7 @@ var RenderFile = ({
31968
31935
  ),
31969
31936
  /* @__PURE__ */ jsx93("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31970
31937
  ] }),
31971
- /* @__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: [
31938
+ /* @__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: [
31972
31939
  /* @__PURE__ */ jsx93(
31973
31940
  "span",
31974
31941
  {
@@ -32038,7 +32005,7 @@ var FileUploadField = (props) => {
32038
32005
  );
32039
32006
  }
32040
32007
  }, [selectedFiles]);
32041
- return /* @__PURE__ */ jsxs62("div", { children: [
32008
+ return /* @__PURE__ */ jsxs61("div", { children: [
32042
32009
  selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx93(
32043
32010
  RenderFile,
32044
32011
  {
@@ -32079,7 +32046,7 @@ var FileUploadField = (props) => {
32079
32046
 
32080
32047
  // src/widgets/basic/float-field/float.tsx
32081
32048
  import { useEffect as useEffect20, useRef as useRef15, useState as useState19 } from "react";
32082
- import { Fragment as Fragment26, jsx as jsx94, jsxs as jsxs63 } from "react/jsx-runtime";
32049
+ import { Fragment as Fragment26, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
32083
32050
  var FloatField = (props) => {
32084
32051
  const {
32085
32052
  name: name2,
@@ -32193,7 +32160,7 @@ var FloatField = (props) => {
32193
32160
  }
32194
32161
  isDirtyRef.current = false;
32195
32162
  };
32196
- return /* @__PURE__ */ jsxs63(Fragment26, { children: [
32163
+ return /* @__PURE__ */ jsxs62(Fragment26, { children: [
32197
32164
  /* @__PURE__ */ jsx94(
32198
32165
  "input",
32199
32166
  {
@@ -32222,7 +32189,7 @@ var FloatField = (props) => {
32222
32189
 
32223
32190
  // src/widgets/basic/float-time-field/float-time.tsx
32224
32191
  import { useState as useState20 } from "react";
32225
- import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs64 } from "react/jsx-runtime";
32192
+ import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
32226
32193
  var FloatTimeField = (props) => {
32227
32194
  const {
32228
32195
  name: name2,
@@ -32302,7 +32269,7 @@ var FloatTimeField = (props) => {
32302
32269
  }
32303
32270
  onBlur();
32304
32271
  };
32305
- return /* @__PURE__ */ jsxs64(Fragment27, { children: [
32272
+ return /* @__PURE__ */ jsxs63(Fragment27, { children: [
32306
32273
  /* @__PURE__ */ jsx95(
32307
32274
  "input",
32308
32275
  {
@@ -32412,7 +32379,7 @@ var ImageField = (props) => {
32412
32379
  import React17, { useEffect as useEffect22, useMemo as useMemo11 } from "react";
32413
32380
 
32414
32381
  // src/widgets/basic/information-field/information.tsx
32415
- import { Fragment as Fragment28, jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
32382
+ import { Fragment as Fragment28, jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
32416
32383
  var InfomationField = (props) => {
32417
32384
  const { value, isForm = false, showName = true, stringToColor } = props;
32418
32385
  if (!value || Array.isArray(value) && value.length === 0) {
@@ -32428,7 +32395,7 @@ var InfomationField = (props) => {
32428
32395
  stringToColor
32429
32396
  },
32430
32397
  item.id
32431
- )) : /* @__PURE__ */ jsxs65("div", { className: "flex gap-2 items-center w-max", children: [
32398
+ )) : /* @__PURE__ */ jsxs64("div", { className: "flex gap-2 items-center w-max", children: [
32432
32399
  /* @__PURE__ */ jsx98(
32433
32400
  AvatarField,
32434
32401
  {
@@ -32444,7 +32411,7 @@ var InfomationField = (props) => {
32444
32411
  };
32445
32412
 
32446
32413
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
32447
- import { jsx as jsx99, jsxs as jsxs66 } from "react/jsx-runtime";
32414
+ import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
32448
32415
  var CustomMultiValue = ({ stringToColor, ...props }) => {
32449
32416
  const { selectProps, data, menuList } = props;
32450
32417
  const { relation } = selectProps;
@@ -32453,7 +32420,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
32453
32420
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
32454
32421
  )
32455
32422
  )?.[0]?.action?.id;
32456
- return /* @__PURE__ */ jsxs66("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32423
+ return /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
32457
32424
  /* @__PURE__ */ jsx99(
32458
32425
  AvatarField,
32459
32426
  {
@@ -32485,9 +32452,9 @@ var CustomMenuList = (props) => {
32485
32452
  const { setIsShowModalMany2Many, searchable } = selectProps;
32486
32453
  const { t: t3 } = useI18n();
32487
32454
  const limitedChildren = React17.Children.toArray(children).slice(0, 10);
32488
- return /* @__PURE__ */ jsxs66(components.MenuList, { ...props, className: "z-[99]", children: [
32455
+ return /* @__PURE__ */ jsxs65(components.MenuList, { ...props, className: "z-[99]", children: [
32489
32456
  limitedChildren,
32490
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs66(
32457
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs65(
32491
32458
  "button",
32492
32459
  {
32493
32460
  type: "button",
@@ -32577,7 +32544,7 @@ var Many2ManyTagField = (props) => {
32577
32544
  onChange2?.(name2 ?? "", newValue);
32578
32545
  clearErrors(name2);
32579
32546
  };
32580
- return /* @__PURE__ */ jsxs66("div", { className: "group h-full overflow-y-auto", children: [
32547
+ return /* @__PURE__ */ jsxs65("div", { className: "group h-full overflow-y-auto", children: [
32581
32548
  /* @__PURE__ */ jsx99(
32582
32549
  StateManagedSelect$1,
32583
32550
  {
@@ -32692,7 +32659,7 @@ var Many2ManyTagField = (props) => {
32692
32659
 
32693
32660
  // src/widgets/basic/monetary-field/monetary.tsx
32694
32661
  import { useEffect as useEffect23 } from "react";
32695
- import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs67 } from "react/jsx-runtime";
32662
+ import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32696
32663
  var MonetaryField = (props) => {
32697
32664
  const { t: t3 } = useI18n();
32698
32665
  const {
@@ -32713,8 +32680,8 @@ var MonetaryField = (props) => {
32713
32680
  symbol = "VND"
32714
32681
  } = props;
32715
32682
  if (isForm && name2 === "amount_residual") {
32716
- return /* @__PURE__ */ jsxs67("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32717
- /* @__PURE__ */ jsxs67("span", { className: "font-semibold", children: [
32683
+ return /* @__PURE__ */ jsxs66("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32684
+ /* @__PURE__ */ jsxs66("span", { className: "font-semibold", children: [
32718
32685
  string,
32719
32686
  ":"
32720
32687
  ] }),
@@ -32751,7 +32718,7 @@ var MonetaryField = (props) => {
32751
32718
  clearErrors(name2);
32752
32719
  }
32753
32720
  }, [value2]);
32754
- return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32721
+ return /* @__PURE__ */ jsxs66(Fragment29, { children: [
32755
32722
  /* @__PURE__ */ jsx100(
32756
32723
  "input",
32757
32724
  {
@@ -32805,7 +32772,7 @@ var PaidBadgedField = () => {
32805
32772
 
32806
32773
  // src/widgets/basic/priority-field/rating-star.tsx
32807
32774
  import React18, { useEffect as useEffect24, useState as useState21 } from "react";
32808
- import { jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
32775
+ import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
32809
32776
  var RatingStarField = (props) => {
32810
32777
  const {
32811
32778
  label,
@@ -32850,7 +32817,7 @@ var RatingStarField = (props) => {
32850
32817
  const starValue = index4 + 1;
32851
32818
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32852
32819
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32853
- return /* @__PURE__ */ jsxs68(React18.Fragment, { children: [
32820
+ return /* @__PURE__ */ jsxs67(React18.Fragment, { children: [
32854
32821
  /* @__PURE__ */ jsx102(
32855
32822
  "div",
32856
32823
  {
@@ -32930,7 +32897,7 @@ var PriorityField = (props) => {
32930
32897
 
32931
32898
  // src/widgets/basic/radio-group-field/radio-group.tsx
32932
32899
  import { useEffect as useEffect25 } from "react";
32933
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32900
+ import { jsx as jsx104, jsxs as jsxs68 } from "react/jsx-runtime";
32934
32901
  var RadioGroupField = (props) => {
32935
32902
  const {
32936
32903
  name: name2,
@@ -32954,7 +32921,7 @@ var RadioGroupField = (props) => {
32954
32921
  {
32955
32922
  name: name2 ?? "",
32956
32923
  control: methods.control,
32957
- 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: [
32924
+ 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: [
32958
32925
  /* @__PURE__ */ jsx104(
32959
32926
  "input",
32960
32927
  {
@@ -32982,7 +32949,7 @@ var RadioGroupField = (props) => {
32982
32949
 
32983
32950
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32984
32951
  var import_moment3 = __toESM(require_moment());
32985
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32952
+ import { jsx as jsx105, jsxs as jsxs69 } from "react/jsx-runtime";
32986
32953
  var RemainingDaysField = (props) => {
32987
32954
  const {
32988
32955
  value,
@@ -32993,7 +32960,7 @@ var RemainingDaysField = (props) => {
32993
32960
  if (!value) return null;
32994
32961
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32995
32962
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32996
- return /* @__PURE__ */ jsxs70("div", { className: isForm ? "mb-4" : "", children: [
32963
+ return /* @__PURE__ */ jsxs69("div", { className: isForm ? "mb-4" : "", children: [
32997
32964
  /* @__PURE__ */ jsx105(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32998
32965
  /* @__PURE__ */ jsx105(
32999
32966
  "div",
@@ -33013,7 +32980,7 @@ var RemainingDaysField = (props) => {
33013
32980
  };
33014
32981
 
33015
32982
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
33016
- import { Fragment as Fragment30, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32983
+ import { Fragment as Fragment30, jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
33017
32984
  var SelectDropdownField = (props) => {
33018
32985
  const { t: t3 } = useI18n();
33019
32986
  const {
@@ -33064,7 +33031,7 @@ var SelectDropdownField = (props) => {
33064
33031
  value: defaultValue || null,
33065
33032
  required: !invisible && required
33066
33033
  };
33067
- return /* @__PURE__ */ jsxs71(Fragment30, { children: [
33034
+ return /* @__PURE__ */ jsxs70(Fragment30, { children: [
33068
33035
  /* @__PURE__ */ jsx106("div", { className: `group ${isEditTable ? "h-full" : ""}`, children: /* @__PURE__ */ jsx106(
33069
33036
  StateManagedSelect$1,
33070
33037
  {
@@ -33178,7 +33145,7 @@ var TextAreaField = (props) => {
33178
33145
  };
33179
33146
 
33180
33147
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
33181
- import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
33148
+ import { jsx as jsx108, jsxs as jsxs71 } from "react/jsx-runtime";
33182
33149
  var ToggleButtonField = (props) => {
33183
33150
  const {
33184
33151
  name: name2,
@@ -33193,7 +33160,7 @@ var ToggleButtonField = (props) => {
33193
33160
  {
33194
33161
  name: name2 ?? "",
33195
33162
  control: methods?.control,
33196
- 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: [
33163
+ 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: [
33197
33164
  /* @__PURE__ */ jsx108(
33198
33165
  "input",
33199
33166
  {
@@ -33248,7 +33215,7 @@ var ToggleButtonField = (props) => {
33248
33215
 
33249
33216
  // src/widgets/basic/integer-field/integer.tsx
33250
33217
  import { useEffect as useEffect26, useRef as useRef17, useState as useState22 } from "react";
33251
- import { Fragment as Fragment31, jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
33218
+ import { Fragment as Fragment31, jsx as jsx109, jsxs as jsxs72 } from "react/jsx-runtime";
33252
33219
  var IntegerField = (props) => {
33253
33220
  const {
33254
33221
  name: name2,
@@ -33347,7 +33314,7 @@ var IntegerField = (props) => {
33347
33314
  inputRef.current?.blur();
33348
33315
  clearErrors(name2);
33349
33316
  };
33350
- return /* @__PURE__ */ jsxs73(Fragment31, { children: [
33317
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
33351
33318
  /* @__PURE__ */ jsx109(
33352
33319
  "input",
33353
33320
  {
@@ -33391,7 +33358,7 @@ var IntegerField = (props) => {
33391
33358
  };
33392
33359
 
33393
33360
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
33394
- import { jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
33361
+ import { jsx as jsx110, jsxs as jsxs73 } from "react/jsx-runtime";
33395
33362
  var StatusDropdownField = (props) => {
33396
33363
  const {
33397
33364
  buttonRef,
@@ -33403,7 +33370,7 @@ var StatusDropdownField = (props) => {
33403
33370
  handleClick,
33404
33371
  colors: colors2
33405
33372
  } = props;
33406
- return /* @__PURE__ */ jsxs74(
33373
+ return /* @__PURE__ */ jsxs73(
33407
33374
  "div",
33408
33375
  {
33409
33376
  ref: buttonRef,
@@ -33419,14 +33386,14 @@ var StatusDropdownField = (props) => {
33419
33386
  ),
33420
33387
  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) => {
33421
33388
  const isActive = item[0] == state;
33422
- return /* @__PURE__ */ jsxs74(
33389
+ return /* @__PURE__ */ jsxs73(
33423
33390
  "div",
33424
33391
  {
33425
33392
  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" : ""}`,
33426
33393
  onClick: () => handleClick(item[0]),
33427
33394
  children: [
33428
33395
  /* @__PURE__ */ jsx110("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx110(CheckIcon, {}) }),
33429
- /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2", children: [
33396
+ /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2", children: [
33430
33397
  /* @__PURE__ */ jsx110(
33431
33398
  "div",
33432
33399
  {
@@ -33448,7 +33415,7 @@ var StatusDropdownField = (props) => {
33448
33415
  // src/widgets/basic/many2many-field/many2many.tsx
33449
33416
  import { createPortal as createPortal5 } from "react-dom";
33450
33417
  import { useEffect as useEffect27 } from "react";
33451
- import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
33418
+ import { jsx as jsx111, jsxs as jsxs74 } from "react/jsx-runtime";
33452
33419
  var Many2ManyField = (props) => {
33453
33420
  const { t: t3 } = useI18n();
33454
33421
  const {
@@ -33522,7 +33489,7 @@ var Many2ManyField = (props) => {
33522
33489
  };
33523
33490
  }, [selectedTags]);
33524
33491
  return createPortal5(
33525
- /* @__PURE__ */ jsxs75(
33492
+ /* @__PURE__ */ jsxs74(
33526
33493
  "div",
33527
33494
  {
33528
33495
  style: {
@@ -33531,7 +33498,7 @@ var Many2ManyField = (props) => {
33531
33498
  className: "fixed bottom-0 left-0 right-0 top-0",
33532
33499
  children: [
33533
33500
  /* @__PURE__ */ jsx111("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
33534
- /* @__PURE__ */ jsx111("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs75(
33501
+ /* @__PURE__ */ jsx111("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs74(
33535
33502
  "div",
33536
33503
  {
33537
33504
  style: {
@@ -33539,11 +33506,11 @@ var Many2ManyField = (props) => {
33539
33506
  },
33540
33507
  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",
33541
33508
  children: [
33542
- /* @__PURE__ */ jsxs75("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33509
+ /* @__PURE__ */ jsxs74("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
33543
33510
  /* @__PURE__ */ jsx111("div", { className: "text-[20px] font-semibold", children: title }),
33544
33511
  /* @__PURE__ */ jsx111("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx111(CloseIcon, {}) })
33545
33512
  ] }),
33546
- /* @__PURE__ */ jsxs75("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33513
+ /* @__PURE__ */ jsxs74("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33547
33514
  /* @__PURE__ */ jsx111("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx111(
33548
33515
  Search,
33549
33516
  {
@@ -33603,7 +33570,7 @@ var Many2ManyField = (props) => {
33603
33570
  "div",
33604
33571
  {
33605
33572
  className: `flex w-full items-center h-full overflow-auto `,
33606
- children: /* @__PURE__ */ jsx111("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs75(
33573
+ children: /* @__PURE__ */ jsx111("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs74(
33607
33574
  "table",
33608
33575
  {
33609
33576
  className: `relative w-full bg-white custom-dropdown `,
@@ -33679,7 +33646,7 @@ var Many2ManyField = (props) => {
33679
33646
  ) }) })
33680
33647
  }
33681
33648
  ) }) }) : /* @__PURE__ */ jsx111(LayerLoading, {}),
33682
- /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-2 mt-auto", children: [
33649
+ /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2 mt-auto", children: [
33683
33650
  isDisplayCheckbox && /* @__PURE__ */ jsx111(
33684
33651
  "button",
33685
33652
  {
@@ -33728,15 +33695,15 @@ var Many2ManyField = (props) => {
33728
33695
 
33729
33696
  // src/widgets/basic/many2one-field/many2one.tsx
33730
33697
  import React19, { useEffect as useEffect28 } from "react";
33731
- import { Fragment as Fragment32, jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
33698
+ import { Fragment as Fragment32, jsx as jsx112, jsxs as jsxs75 } from "react/jsx-runtime";
33732
33699
  var CustomMenuList2 = (props) => {
33733
33700
  const { t: t3 } = useI18n();
33734
33701
  const { options: options2, children, selectProps } = props;
33735
33702
  const { setIsShowModalMany2Many, searchable } = selectProps;
33736
33703
  const limitedChildren = React19.Children.toArray(children).slice(0, 10);
33737
- return /* @__PURE__ */ jsxs76(components.MenuList, { ...props, className: "z-[99]", children: [
33704
+ return /* @__PURE__ */ jsxs75(components.MenuList, { ...props, className: "z-[99]", children: [
33738
33705
  limitedChildren,
33739
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs76(
33706
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs75(
33740
33707
  "button",
33741
33708
  {
33742
33709
  type: "button",
@@ -33779,7 +33746,7 @@ var Many2OneField = (props) => {
33779
33746
  const { t: t3 } = useI18n();
33780
33747
  if (!isForm && !isEditTable) {
33781
33748
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33782
- return /* @__PURE__ */ jsxs76(Fragment32, { children: [
33749
+ return /* @__PURE__ */ jsxs75(Fragment32, { children: [
33783
33750
  allowShowDetail && renderDetail({
33784
33751
  idToolTip: String(name2) + Number(index4),
33785
33752
  model: options2?.model ?? relation,
@@ -33797,7 +33764,7 @@ var Many2OneField = (props) => {
33797
33764
  )
33798
33765
  ] });
33799
33766
  }
33800
- return /* @__PURE__ */ jsxs76(Fragment32, { children: [
33767
+ return /* @__PURE__ */ jsxs75(Fragment32, { children: [
33801
33768
  allowShowDetail && renderDetail({
33802
33769
  idToolTip: String(name2),
33803
33770
  model: options2?.model ?? relation,
@@ -33835,7 +33802,7 @@ var Many2OneField = (props) => {
33835
33802
  methods?.clearErrors(name2);
33836
33803
  }
33837
33804
  }, [selectedOption]);
33838
- return /* @__PURE__ */ jsxs76("div", { className: "h-full", children: [
33805
+ return /* @__PURE__ */ jsxs75("div", { className: "h-full", children: [
33839
33806
  /* @__PURE__ */ jsx112(
33840
33807
  StateManagedSelect$1,
33841
33808
  {
@@ -33941,7 +33908,7 @@ var Many2OneField = (props) => {
33941
33908
  };
33942
33909
 
33943
33910
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33944
- import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
33911
+ import { jsx as jsx113, jsxs as jsxs76 } from "react/jsx-runtime";
33945
33912
  var StatusbarDurationField = (props) => {
33946
33913
  const {
33947
33914
  disabled,
@@ -33955,10 +33922,10 @@ var StatusbarDurationField = (props) => {
33955
33922
  "div",
33956
33923
  {
33957
33924
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33958
- children: /* @__PURE__ */ jsxs77("div", { className: "flex items-center gap-[24px]", children: [
33925
+ children: /* @__PURE__ */ jsxs76("div", { className: "flex items-center gap-[24px]", children: [
33959
33926
  /* @__PURE__ */ jsx113("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33960
33927
  const value = option?.id === defaultValue;
33961
- return /* @__PURE__ */ jsxs77(
33928
+ return /* @__PURE__ */ jsxs76(
33962
33929
  "label",
33963
33930
  {
33964
33931
  onClick: () => !disabled && handleClick(option.id),
@@ -33993,7 +33960,7 @@ var StatusbarDurationField = (props) => {
33993
33960
  }) }),
33994
33961
  dataResponse?.records?.some(
33995
33962
  (item) => item?.fold && item.id !== defaultValue
33996
- ) && /* @__PURE__ */ jsxs77(
33963
+ ) && /* @__PURE__ */ jsxs76(
33997
33964
  "div",
33998
33965
  {
33999
33966
  onClick: () => setModalStatus(!modelStatus),
@@ -34031,7 +33998,7 @@ var StatusbarDurationField = (props) => {
34031
33998
 
34032
33999
  // src/widgets/basic/status-bar-field/option/option.tsx
34033
34000
  import { useMemo as useMemo12 } from "react";
34034
- import { Fragment as Fragment33, jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
34001
+ import { Fragment as Fragment33, jsx as jsx114, jsxs as jsxs77 } from "react/jsx-runtime";
34035
34002
  var StatusBarOptionField = (props) => {
34036
34003
  const { selection, defaultValue } = props;
34037
34004
  const memoizedStatusOptions = useMemo12(() => selection, [selection]);
@@ -34047,8 +34014,8 @@ var StatusBarOptionField = (props) => {
34047
34014
  flexWrap: "wrap"
34048
34015
  },
34049
34016
  children: memoizedStatusOptions?.map((option, index4) => {
34050
- return /* @__PURE__ */ jsxs78(Fragment33, { children: [
34051
- /* @__PURE__ */ jsxs78(
34017
+ return /* @__PURE__ */ jsxs77(Fragment33, { children: [
34018
+ /* @__PURE__ */ jsxs77(
34052
34019
  "div",
34053
34020
  {
34054
34021
  style: {
@@ -34167,7 +34134,7 @@ var ICCheck = () => {
34167
34134
  };
34168
34135
 
34169
34136
  // src/widgets/basic/date-option-field/date-option.tsx
34170
- import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
34137
+ import { jsx as jsx115, jsxs as jsxs78 } from "react/jsx-runtime";
34171
34138
  var DateOptionField = (props) => {
34172
34139
  const {
34173
34140
  name: name2,
@@ -34183,7 +34150,7 @@ var DateOptionField = (props) => {
34183
34150
  {
34184
34151
  name: name2 ?? "",
34185
34152
  control: methods?.control,
34186
- render: ({ field }) => /* @__PURE__ */ jsxs79(
34153
+ render: ({ field }) => /* @__PURE__ */ jsxs78(
34187
34154
  "label",
34188
34155
  {
34189
34156
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm