@fctc/sme-widget-ui 2.3.4 → 2.3.5

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
@@ -8742,26 +8742,30 @@ import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
8742
8742
  var EyeIcon = () => /* @__PURE__ */ jsxs7(
8743
8743
  "svg",
8744
8744
  {
8745
- width: "20",
8746
- height: "21",
8747
- viewBox: "0 0 20 21",
8748
- fill: "none",
8749
8745
  xmlns: "http://www.w3.org/2000/svg",
8746
+ width: "16",
8747
+ height: "16",
8748
+ viewBox: "0 0 16 16",
8749
+ fill: "none",
8750
8750
  children: [
8751
8751
  /* @__PURE__ */ jsx19(
8752
8752
  "path",
8753
8753
  {
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"
8754
+ 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",
8755
+ stroke: "#646566",
8756
+ strokeWidth: "1.5",
8757
+ strokeLinecap: "round",
8758
+ strokeLinejoin: "round"
8757
8759
  }
8758
8760
  ),
8759
8761
  /* @__PURE__ */ jsx19(
8760
8762
  "path",
8761
8763
  {
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"
8764
+ 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",
8765
+ stroke: "#646566",
8766
+ strokeWidth: "1.5",
8767
+ strokeLinecap: "round",
8768
+ strokeLinejoin: "round"
8765
8769
  }
8766
8770
  )
8767
8771
  ]
@@ -16554,9 +16558,9 @@ var CharField = (props) => {
16554
16558
  import { useEffect as useEffect12, useMemo as useMemo5, useState as useState11 } from "react";
16555
16559
 
16556
16560
  // src/icons/eye-hidden-icon.tsx
16557
- import { jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
16561
+ import { jsx as jsx79 } from "react/jsx-runtime";
16558
16562
  var EyeHiddenIcon = () => {
16559
- return /* @__PURE__ */ jsxs52(
16563
+ return /* @__PURE__ */ jsx79(
16560
16564
  "svg",
16561
16565
  {
16562
16566
  xmlns: "http://www.w3.org/2000/svg",
@@ -16564,74 +16568,19 @@ var EyeHiddenIcon = () => {
16564
16568
  height: "16",
16565
16569
  viewBox: "0 0 16 16",
16566
16570
  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
- ]
16571
+ children: /* @__PURE__ */ jsx79(
16572
+ "path",
16573
+ {
16574
+ 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",
16575
+ fill: "#646566"
16576
+ }
16577
+ )
16629
16578
  }
16630
16579
  );
16631
16580
  };
16632
16581
 
16633
16582
  // src/widgets/basic/char-field/secure-field.tsx
16634
- import { jsx as jsx80, jsxs as jsxs53 } from "react/jsx-runtime";
16583
+ import { jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
16635
16584
  function isSensitive(widget) {
16636
16585
  return widget === "password" || widget === "access_token" || widget === "refresh_token" || widget === "private_secret_key";
16637
16586
  }
@@ -16712,7 +16661,7 @@ var SecureField = (props) => {
16712
16661
  useEffect12(() => {
16713
16662
  if (value2) clearErrors(name2);
16714
16663
  }, [value2, clearErrors, name2]);
16715
- return /* @__PURE__ */ jsxs53("div", { className: `relative w-full ${className ?? ""}`, children: [
16664
+ return /* @__PURE__ */ jsxs52("div", { className: `relative w-full ${className ?? ""}`, children: [
16716
16665
  isCappedToken && shouldMask && /* @__PURE__ */ jsx80(
16717
16666
  "div",
16718
16667
  {
@@ -16868,7 +16817,7 @@ var CheckboxField = (props) => {
16868
16817
 
16869
16818
  // src/widgets/basic/color-field/color-wrapper.tsx
16870
16819
  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";
16820
+ import { Fragment as Fragment19, jsx as jsx82, jsxs as jsxs53 } from "react/jsx-runtime";
16872
16821
  var ColorWrapper = (props) => {
16873
16822
  const { colors: colors2, defaultColor, savePickColor } = props;
16874
16823
  const { t: t3 } = useI18n();
@@ -16892,7 +16841,7 @@ var ColorWrapper = (props) => {
16892
16841
  document.removeEventListener("mousedown", handleClickOutside);
16893
16842
  };
16894
16843
  }, []);
16895
- return /* @__PURE__ */ jsx82("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx82("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs54("div", { children: [
16844
+ return /* @__PURE__ */ jsx82("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx82("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs53("div", { children: [
16896
16845
  /* @__PURE__ */ jsx82(
16897
16846
  "button",
16898
16847
  {
@@ -16916,7 +16865,7 @@ var ColorWrapper = (props) => {
16916
16865
  content: t3(color?.name)
16917
16866
  }
16918
16867
  )
16919
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs54(Fragment19, { children: [
16868
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs53(Fragment19, { children: [
16920
16869
  /* @__PURE__ */ jsx82(
16921
16870
  "button",
16922
16871
  {
@@ -16973,7 +16922,7 @@ var ColorField = (props) => {
16973
16922
 
16974
16923
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
16975
16924
  import { useEffect as useEffect14 } from "react";
16976
- import { jsx as jsx84, jsxs as jsxs55 } from "react/jsx-runtime";
16925
+ import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
16977
16926
  var CopyLinkButtonField = (props) => {
16978
16927
  const {
16979
16928
  isForm,
@@ -17012,8 +16961,8 @@ var CopyLinkButtonField = (props) => {
17012
16961
  clearErrors(name2);
17013
16962
  }
17014
16963
  }, [value]);
17015
- return /* @__PURE__ */ jsxs55("div", { className: "relative", children: [
17016
- /* @__PURE__ */ jsxs55(
16964
+ return /* @__PURE__ */ jsxs54("div", { className: "relative", children: [
16965
+ /* @__PURE__ */ jsxs54(
17017
16966
  "div",
17018
16967
  {
17019
16968
  "aria-disabled": readonly,
@@ -21016,7 +20965,7 @@ function useEffectEvent(callback) {
21016
20965
  }
21017
20966
 
21018
20967
  // 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";
20968
+ import { jsx as jsx85, jsxs as jsxs55, Fragment as Fragment20 } from "react/jsx-runtime";
21020
20969
  import * as ReactDOM2 from "react-dom";
21021
20970
 
21022
20971
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21414,7 +21363,7 @@ var FloatingArrow = /* @__PURE__ */ React9.forwardRef(function FloatingArrow2(pr
21414
21363
  bottom: isCustomShape ? "" : "rotate(180deg)",
21415
21364
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21416
21365
  }[side];
21417
- return /* @__PURE__ */ jsxs56("svg", {
21366
+ return /* @__PURE__ */ jsxs55("svg", {
21418
21367
  ...rest,
21419
21368
  "aria-hidden": true,
21420
21369
  ref,
@@ -30830,7 +30779,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30830
30779
 
30831
30780
  // src/widgets/basic/date-field/date.tsx
30832
30781
  var import_moment2 = __toESM(require_moment());
30833
- import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs57 } from "react/jsx-runtime";
30782
+ import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs56 } from "react/jsx-runtime";
30834
30783
  var DateField = (props) => {
30835
30784
  const {
30836
30785
  name: name2,
@@ -30858,7 +30807,7 @@ var DateField = (props) => {
30858
30807
  } = props;
30859
30808
  const { t: t3 } = useI18n();
30860
30809
  const InputDateCustom = forwardRef6(
30861
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs57("label", { className: `flex ${className}`, children: [
30810
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs56("label", { className: `flex ${className}`, children: [
30862
30811
  /* @__PURE__ */ jsx88(
30863
30812
  "input",
30864
30813
  {
@@ -30901,7 +30850,7 @@ var DateField = (props) => {
30901
30850
  }
30902
30851
  }, [value, clearErrors, name2]);
30903
30852
  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: [
30853
+ return /* @__PURE__ */ jsxs56(Fragment24, { children: [
30905
30854
  /* @__PURE__ */ jsx88(
30906
30855
  DatePicker,
30907
30856
  {
@@ -30968,7 +30917,7 @@ var DateField = (props) => {
30968
30917
  increaseMonth,
30969
30918
  prevMonthButtonDisabled,
30970
30919
  nextMonthButtonDisabled
30971
- }) => /* @__PURE__ */ jsxs57(
30920
+ }) => /* @__PURE__ */ jsxs56(
30972
30921
  "div",
30973
30922
  {
30974
30923
  style: {
@@ -31061,11 +31010,11 @@ var DateField = (props) => {
31061
31010
  };
31062
31011
 
31063
31012
  // src/widgets/basic/download-binary-field/download-binary.tsx
31064
- import { jsx as jsx89, jsxs as jsxs58 } from "react/jsx-runtime";
31013
+ import { jsx as jsx89, jsxs as jsxs57 } from "react/jsx-runtime";
31065
31014
  var DownLoadBinaryField = (props) => {
31066
31015
  const { handleFileDownload } = props;
31067
31016
  const { t: t3 } = useI18n();
31068
- return /* @__PURE__ */ jsxs58(
31017
+ return /* @__PURE__ */ jsxs57(
31069
31018
  "button",
31070
31019
  {
31071
31020
  type: "button",
@@ -31080,7 +31029,7 @@ var DownLoadBinaryField = (props) => {
31080
31029
  };
31081
31030
 
31082
31031
  // src/widgets/basic/download-file-field/download-file.tsx
31083
- import { jsx as jsx90, jsxs as jsxs59 } from "react/jsx-runtime";
31032
+ import { jsx as jsx90, jsxs as jsxs58 } from "react/jsx-runtime";
31084
31033
  var DownloadFileField = (props) => {
31085
31034
  const {
31086
31035
  readonly,
@@ -31092,8 +31041,8 @@ var DownloadFileField = (props) => {
31092
31041
  handleFileChange,
31093
31042
  handleFileDownload
31094
31043
  } = props;
31095
- return /* @__PURE__ */ jsxs59("div", { className: "", children: [
31096
- /* @__PURE__ */ jsxs59(
31044
+ return /* @__PURE__ */ jsxs58("div", { className: "", children: [
31045
+ /* @__PURE__ */ jsxs58(
31097
31046
  "label",
31098
31047
  {
31099
31048
  htmlFor: inputId,
@@ -31128,7 +31077,7 @@ var DownloadFileField = (props) => {
31128
31077
 
31129
31078
  // src/widgets/basic/dropdown-field/dropdown.tsx
31130
31079
  import { useState as useState17 } from "react";
31131
- import { jsx as jsx91, jsxs as jsxs60 } from "react/jsx-runtime";
31080
+ import { jsx as jsx91, jsxs as jsxs59 } from "react/jsx-runtime";
31132
31081
  var DropdownField = (props) => {
31133
31082
  const {
31134
31083
  options: options2,
@@ -31142,14 +31091,14 @@ var DropdownField = (props) => {
31142
31091
  } = props;
31143
31092
  const [open, setOpen] = useState17(false);
31144
31093
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31145
- return /* @__PURE__ */ jsxs60(
31094
+ return /* @__PURE__ */ jsxs59(
31146
31095
  "div",
31147
31096
  {
31148
31097
  ref: dropdownRef,
31149
31098
  className: `relative ${className}`,
31150
31099
  onClick: () => setOpen(!open),
31151
31100
  children: [
31152
- /* @__PURE__ */ jsxs60(
31101
+ /* @__PURE__ */ jsxs59(
31153
31102
  "div",
31154
31103
  {
31155
31104
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
@@ -31185,7 +31134,7 @@ var DropdownField = (props) => {
31185
31134
  };
31186
31135
 
31187
31136
  // src/widgets/basic/fee-field/fee.tsx
31188
- import { Fragment as Fragment25, jsx as jsx92, jsxs as jsxs61 } from "react/jsx-runtime";
31137
+ import { Fragment as Fragment25, jsx as jsx92, jsxs as jsxs60 } from "react/jsx-runtime";
31189
31138
  var FeeField = (props) => {
31190
31139
  const { value, formValues } = props;
31191
31140
  const { t: t3 } = useI18n();
@@ -31196,23 +31145,23 @@ var FeeField = (props) => {
31196
31145
  )
31197
31146
  ) + " VND";
31198
31147
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31199
- return /* @__PURE__ */ jsxs61(Fragment25, { children: [
31148
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
31200
31149
  value?.subtotals?.map((sub) => {
31201
31150
  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: [
31151
+ return /* @__PURE__ */ jsxs60(Fragment25, { children: [
31152
+ /* @__PURE__ */ jsxs60("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31153
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31205
31154
  sub?.name,
31206
31155
  ":"
31207
31156
  ] }),
31208
31157
  /* @__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
31158
  ] }),
31210
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs61(
31159
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs60(
31211
31160
  "div",
31212
31161
  {
31213
31162
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31214
31163
  children: [
31215
- /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31164
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31216
31165
  group?.group_name,
31217
31166
  ":"
31218
31167
  ] }),
@@ -31224,22 +31173,22 @@ var FeeField = (props) => {
31224
31173
  ] });
31225
31174
  }
31226
31175
  }),
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: [
31176
+ /* @__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: [
31177
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31229
31178
  t3("total"),
31230
31179
  ":"
31231
31180
  ] }),
31232
31181
  /* @__PURE__ */ jsx92("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31233
31182
  ] }),
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: [
31183
+ /* @__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: [
31184
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31236
31185
  t3("paid_amount"),
31237
31186
  ":"
31238
31187
  ] }),
31239
31188
  /* @__PURE__ */ jsx92("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31240
31189
  ] }),
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: [
31190
+ /* @__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: [
31191
+ /* @__PURE__ */ jsxs60("div", { className: "text-[14px] leading-[21px] text-right", children: [
31243
31192
  t3("remanining_amount"),
31244
31193
  ":"
31245
31194
  ] }),
@@ -31250,7 +31199,7 @@ var FeeField = (props) => {
31250
31199
 
31251
31200
  // src/widgets/basic/file-upload-field/file-upload.tsx
31252
31201
  import { useEffect as useEffect19, useRef as useRef14, useState as useState18 } from "react";
31253
- import { jsx as jsx93, jsxs as jsxs62 } from "react/jsx-runtime";
31202
+ import { jsx as jsx93, jsxs as jsxs61 } from "react/jsx-runtime";
31254
31203
  var RenderFile = ({
31255
31204
  file,
31256
31205
  onDelete,
@@ -31266,9 +31215,9 @@ var RenderFile = ({
31266
31215
  "application/vnd.ms-excel": /* @__PURE__ */ jsx93(ExcelIcon, {}),
31267
31216
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx93(ExcelIcon, {})
31268
31217
  };
31269
- return /* @__PURE__ */ jsxs62("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31218
+ return /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31270
31219
  /* @__PURE__ */ jsx93("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31271
- /* @__PURE__ */ jsxs62("div", { children: [
31220
+ /* @__PURE__ */ jsxs61("div", { children: [
31272
31221
  /* @__PURE__ */ jsx93(
31273
31222
  "div",
31274
31223
  {
@@ -31281,7 +31230,7 @@ var RenderFile = ({
31281
31230
  ),
31282
31231
  /* @__PURE__ */ jsx93("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31283
31232
  ] }),
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: [
31233
+ /* @__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
31234
  /* @__PURE__ */ jsx93(
31286
31235
  "span",
31287
31236
  {
@@ -31351,7 +31300,7 @@ var FileUploadField = (props) => {
31351
31300
  );
31352
31301
  }
31353
31302
  }, [selectedFiles]);
31354
- return /* @__PURE__ */ jsxs62("div", { children: [
31303
+ return /* @__PURE__ */ jsxs61("div", { children: [
31355
31304
  selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx93(
31356
31305
  RenderFile,
31357
31306
  {
@@ -31392,7 +31341,7 @@ var FileUploadField = (props) => {
31392
31341
 
31393
31342
  // src/widgets/basic/float-field/float.tsx
31394
31343
  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";
31344
+ import { Fragment as Fragment26, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31396
31345
  var FloatField = (props) => {
31397
31346
  const {
31398
31347
  name: name2,
@@ -31506,7 +31455,7 @@ var FloatField = (props) => {
31506
31455
  }
31507
31456
  isDirtyRef.current = false;
31508
31457
  };
31509
- return /* @__PURE__ */ jsxs63(Fragment26, { children: [
31458
+ return /* @__PURE__ */ jsxs62(Fragment26, { children: [
31510
31459
  /* @__PURE__ */ jsx94(
31511
31460
  "input",
31512
31461
  {
@@ -31535,7 +31484,7 @@ var FloatField = (props) => {
31535
31484
 
31536
31485
  // src/widgets/basic/float-time-field/float-time.tsx
31537
31486
  import { useState as useState20 } from "react";
31538
- import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs64 } from "react/jsx-runtime";
31487
+ import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
31539
31488
  var FloatTimeField = (props) => {
31540
31489
  const {
31541
31490
  name: name2,
@@ -31615,7 +31564,7 @@ var FloatTimeField = (props) => {
31615
31564
  }
31616
31565
  onBlur();
31617
31566
  };
31618
- return /* @__PURE__ */ jsxs64(Fragment27, { children: [
31567
+ return /* @__PURE__ */ jsxs63(Fragment27, { children: [
31619
31568
  /* @__PURE__ */ jsx95(
31620
31569
  "input",
31621
31570
  {
@@ -31725,7 +31674,7 @@ var ImageField = (props) => {
31725
31674
  import React17, { useEffect as useEffect22, useMemo as useMemo11 } from "react";
31726
31675
 
31727
31676
  // src/widgets/basic/information-field/information.tsx
31728
- import { Fragment as Fragment28, jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
31677
+ import { Fragment as Fragment28, jsx as jsx98, jsxs as jsxs64 } from "react/jsx-runtime";
31729
31678
  var InfomationField = (props) => {
31730
31679
  const { value, isForm = false, showName = true, stringToColor } = props;
31731
31680
  if (!value || Array.isArray(value) && value.length === 0) {
@@ -31741,7 +31690,7 @@ var InfomationField = (props) => {
31741
31690
  stringToColor
31742
31691
  },
31743
31692
  item.id
31744
- )) : /* @__PURE__ */ jsxs65("div", { className: "flex gap-2 items-center w-max", children: [
31693
+ )) : /* @__PURE__ */ jsxs64("div", { className: "flex gap-2 items-center w-max", children: [
31745
31694
  /* @__PURE__ */ jsx98(
31746
31695
  AvatarField,
31747
31696
  {
@@ -31757,7 +31706,7 @@ var InfomationField = (props) => {
31757
31706
  };
31758
31707
 
31759
31708
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31760
- import { jsx as jsx99, jsxs as jsxs66 } from "react/jsx-runtime";
31709
+ import { jsx as jsx99, jsxs as jsxs65 } from "react/jsx-runtime";
31761
31710
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31762
31711
  const { selectProps, data, menuList } = props;
31763
31712
  const { relation } = selectProps;
@@ -31766,7 +31715,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31766
31715
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31767
31716
  )
31768
31717
  )?.[0]?.action?.id;
31769
- return /* @__PURE__ */ jsxs66("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31718
+ return /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31770
31719
  /* @__PURE__ */ jsx99(
31771
31720
  AvatarField,
31772
31721
  {
@@ -31798,9 +31747,9 @@ var CustomMenuList = (props) => {
31798
31747
  const { setIsShowModalMany2Many, searchable } = selectProps;
31799
31748
  const { t: t3 } = useI18n();
31800
31749
  const limitedChildren = React17.Children.toArray(children).slice(0, 10);
31801
- return /* @__PURE__ */ jsxs66(components.MenuList, { ...props, className: "z-[99]", children: [
31750
+ return /* @__PURE__ */ jsxs65(components.MenuList, { ...props, className: "z-[99]", children: [
31802
31751
  limitedChildren,
31803
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs66(
31752
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs65(
31804
31753
  "button",
31805
31754
  {
31806
31755
  type: "button",
@@ -31890,7 +31839,7 @@ var Many2ManyTagField = (props) => {
31890
31839
  onChange2?.(name2 ?? "", newValue);
31891
31840
  clearErrors(name2);
31892
31841
  };
31893
- return /* @__PURE__ */ jsxs66("div", { className: "group h-full overflow-y-auto", children: [
31842
+ return /* @__PURE__ */ jsxs65("div", { className: "group h-full overflow-y-auto", children: [
31894
31843
  /* @__PURE__ */ jsx99(
31895
31844
  StateManagedSelect$1,
31896
31845
  {
@@ -32005,7 +31954,7 @@ var Many2ManyTagField = (props) => {
32005
31954
 
32006
31955
  // src/widgets/basic/monetary-field/monetary.tsx
32007
31956
  import { useEffect as useEffect23 } from "react";
32008
- import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs67 } from "react/jsx-runtime";
31957
+ import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32009
31958
  var MonetaryField = (props) => {
32010
31959
  const { t: t3 } = useI18n();
32011
31960
  const {
@@ -32026,8 +31975,8 @@ var MonetaryField = (props) => {
32026
31975
  symbol = "VND"
32027
31976
  } = props;
32028
31977
  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: [
31978
+ return /* @__PURE__ */ jsxs66("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
31979
+ /* @__PURE__ */ jsxs66("span", { className: "font-semibold", children: [
32031
31980
  string,
32032
31981
  ":"
32033
31982
  ] }),
@@ -32064,7 +32013,7 @@ var MonetaryField = (props) => {
32064
32013
  clearErrors(name2);
32065
32014
  }
32066
32015
  }, [value2]);
32067
- return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32016
+ return /* @__PURE__ */ jsxs66(Fragment29, { children: [
32068
32017
  /* @__PURE__ */ jsx100(
32069
32018
  "input",
32070
32019
  {
@@ -32118,7 +32067,7 @@ var PaidBadgedField = () => {
32118
32067
 
32119
32068
  // src/widgets/basic/priority-field/rating-star.tsx
32120
32069
  import React18, { useEffect as useEffect24, useState as useState21 } from "react";
32121
- import { jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
32070
+ import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
32122
32071
  var RatingStarField = (props) => {
32123
32072
  const {
32124
32073
  label,
@@ -32163,7 +32112,7 @@ var RatingStarField = (props) => {
32163
32112
  const starValue = index4 + 1;
32164
32113
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32165
32114
  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: [
32115
+ return /* @__PURE__ */ jsxs67(React18.Fragment, { children: [
32167
32116
  /* @__PURE__ */ jsx102(
32168
32117
  "div",
32169
32118
  {
@@ -32243,7 +32192,7 @@ var PriorityField = (props) => {
32243
32192
 
32244
32193
  // src/widgets/basic/radio-group-field/radio-group.tsx
32245
32194
  import { useEffect as useEffect25 } from "react";
32246
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32195
+ import { jsx as jsx104, jsxs as jsxs68 } from "react/jsx-runtime";
32247
32196
  var RadioGroupField = (props) => {
32248
32197
  const {
32249
32198
  name: name2,
@@ -32267,7 +32216,7 @@ var RadioGroupField = (props) => {
32267
32216
  {
32268
32217
  name: name2 ?? "",
32269
32218
  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: [
32219
+ 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
32220
  /* @__PURE__ */ jsx104(
32272
32221
  "input",
32273
32222
  {
@@ -32295,7 +32244,7 @@ var RadioGroupField = (props) => {
32295
32244
 
32296
32245
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32297
32246
  var import_moment3 = __toESM(require_moment());
32298
- import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32247
+ import { jsx as jsx105, jsxs as jsxs69 } from "react/jsx-runtime";
32299
32248
  var RemainingDaysField = (props) => {
32300
32249
  const {
32301
32250
  value,
@@ -32306,7 +32255,7 @@ var RemainingDaysField = (props) => {
32306
32255
  if (!value) return null;
32307
32256
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32308
32257
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32309
- return /* @__PURE__ */ jsxs70("div", { className: isForm ? "mb-4" : "", children: [
32258
+ return /* @__PURE__ */ jsxs69("div", { className: isForm ? "mb-4" : "", children: [
32310
32259
  /* @__PURE__ */ jsx105(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32311
32260
  /* @__PURE__ */ jsx105(
32312
32261
  "div",
@@ -32326,7 +32275,7 @@ var RemainingDaysField = (props) => {
32326
32275
  };
32327
32276
 
32328
32277
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32329
- import { Fragment as Fragment30, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32278
+ import { Fragment as Fragment30, jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
32330
32279
  var SelectDropdownField = (props) => {
32331
32280
  const { t: t3 } = useI18n();
32332
32281
  const {
@@ -32377,7 +32326,7 @@ var SelectDropdownField = (props) => {
32377
32326
  value: defaultValue || null,
32378
32327
  required: !invisible && required
32379
32328
  };
32380
- return /* @__PURE__ */ jsxs71(Fragment30, { children: [
32329
+ return /* @__PURE__ */ jsxs70(Fragment30, { children: [
32381
32330
  /* @__PURE__ */ jsx106("div", { className: `group ${isEditTable ? "h-full" : ""}`, children: /* @__PURE__ */ jsx106(
32382
32331
  StateManagedSelect$1,
32383
32332
  {
@@ -32491,7 +32440,7 @@ var TextAreaField = (props) => {
32491
32440
  };
32492
32441
 
32493
32442
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32494
- import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
32443
+ import { jsx as jsx108, jsxs as jsxs71 } from "react/jsx-runtime";
32495
32444
  var ToggleButtonField = (props) => {
32496
32445
  const {
32497
32446
  name: name2,
@@ -32506,7 +32455,7 @@ var ToggleButtonField = (props) => {
32506
32455
  {
32507
32456
  name: name2 ?? "",
32508
32457
  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: [
32458
+ 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
32459
  /* @__PURE__ */ jsx108(
32511
32460
  "input",
32512
32461
  {
@@ -32561,7 +32510,7 @@ var ToggleButtonField = (props) => {
32561
32510
 
32562
32511
  // src/widgets/basic/integer-field/integer.tsx
32563
32512
  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";
32513
+ import { Fragment as Fragment31, jsx as jsx109, jsxs as jsxs72 } from "react/jsx-runtime";
32565
32514
  var IntegerField = (props) => {
32566
32515
  const {
32567
32516
  name: name2,
@@ -32660,7 +32609,7 @@ var IntegerField = (props) => {
32660
32609
  inputRef.current?.blur();
32661
32610
  clearErrors(name2);
32662
32611
  };
32663
- return /* @__PURE__ */ jsxs73(Fragment31, { children: [
32612
+ return /* @__PURE__ */ jsxs72(Fragment31, { children: [
32664
32613
  /* @__PURE__ */ jsx109(
32665
32614
  "input",
32666
32615
  {
@@ -32704,7 +32653,7 @@ var IntegerField = (props) => {
32704
32653
  };
32705
32654
 
32706
32655
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32707
- import { jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
32656
+ import { jsx as jsx110, jsxs as jsxs73 } from "react/jsx-runtime";
32708
32657
  var StatusDropdownField = (props) => {
32709
32658
  const {
32710
32659
  buttonRef,
@@ -32716,7 +32665,7 @@ var StatusDropdownField = (props) => {
32716
32665
  handleClick,
32717
32666
  colors: colors2
32718
32667
  } = props;
32719
- return /* @__PURE__ */ jsxs74(
32668
+ return /* @__PURE__ */ jsxs73(
32720
32669
  "div",
32721
32670
  {
32722
32671
  ref: buttonRef,
@@ -32732,14 +32681,14 @@ var StatusDropdownField = (props) => {
32732
32681
  ),
32733
32682
  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
32683
  const isActive = item[0] == state;
32735
- return /* @__PURE__ */ jsxs74(
32684
+ return /* @__PURE__ */ jsxs73(
32736
32685
  "div",
32737
32686
  {
32738
32687
  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
32688
  onClick: () => handleClick(item[0]),
32740
32689
  children: [
32741
32690
  /* @__PURE__ */ jsx110("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx110(CheckIcon, {}) }),
32742
- /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2", children: [
32691
+ /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2", children: [
32743
32692
  /* @__PURE__ */ jsx110(
32744
32693
  "div",
32745
32694
  {
@@ -32761,7 +32710,7 @@ var StatusDropdownField = (props) => {
32761
32710
  // src/widgets/basic/many2many-field/many2many.tsx
32762
32711
  import { createPortal as createPortal5 } from "react-dom";
32763
32712
  import { useEffect as useEffect27 } from "react";
32764
- import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
32713
+ import { jsx as jsx111, jsxs as jsxs74 } from "react/jsx-runtime";
32765
32714
  var Many2ManyField = (props) => {
32766
32715
  const { t: t3 } = useI18n();
32767
32716
  const {
@@ -32835,7 +32784,7 @@ var Many2ManyField = (props) => {
32835
32784
  };
32836
32785
  }, [selectedTags]);
32837
32786
  return createPortal5(
32838
- /* @__PURE__ */ jsxs75(
32787
+ /* @__PURE__ */ jsxs74(
32839
32788
  "div",
32840
32789
  {
32841
32790
  style: {
@@ -32844,7 +32793,7 @@ var Many2ManyField = (props) => {
32844
32793
  className: "fixed bottom-0 left-0 right-0 top-0",
32845
32794
  children: [
32846
32795
  /* @__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(
32796
+ /* @__PURE__ */ jsx111("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs74(
32848
32797
  "div",
32849
32798
  {
32850
32799
  style: {
@@ -32852,11 +32801,11 @@ var Many2ManyField = (props) => {
32852
32801
  },
32853
32802
  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
32803
  children: [
32855
- /* @__PURE__ */ jsxs75("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32804
+ /* @__PURE__ */ jsxs74("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32856
32805
  /* @__PURE__ */ jsx111("div", { className: "text-[20px] font-semibold", children: title }),
32857
32806
  /* @__PURE__ */ jsx111("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx111(CloseIcon, {}) })
32858
32807
  ] }),
32859
- /* @__PURE__ */ jsxs75("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32808
+ /* @__PURE__ */ jsxs74("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32860
32809
  /* @__PURE__ */ jsx111("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx111(
32861
32810
  Search,
32862
32811
  {
@@ -32916,7 +32865,7 @@ var Many2ManyField = (props) => {
32916
32865
  "div",
32917
32866
  {
32918
32867
  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(
32868
+ children: /* @__PURE__ */ jsx111("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs74(
32920
32869
  "table",
32921
32870
  {
32922
32871
  className: `relative w-full bg-white custom-dropdown `,
@@ -32992,7 +32941,7 @@ var Many2ManyField = (props) => {
32992
32941
  ) }) })
32993
32942
  }
32994
32943
  ) }) }) : /* @__PURE__ */ jsx111(LayerLoading, {}),
32995
- /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-2 mt-auto", children: [
32944
+ /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2 mt-auto", children: [
32996
32945
  isDisplayCheckbox && /* @__PURE__ */ jsx111(
32997
32946
  "button",
32998
32947
  {
@@ -33041,15 +32990,15 @@ var Many2ManyField = (props) => {
33041
32990
 
33042
32991
  // src/widgets/basic/many2one-field/many2one.tsx
33043
32992
  import React19, { useEffect as useEffect28 } from "react";
33044
- import { Fragment as Fragment32, jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
32993
+ import { Fragment as Fragment32, jsx as jsx112, jsxs as jsxs75 } from "react/jsx-runtime";
33045
32994
  var CustomMenuList2 = (props) => {
33046
32995
  const { t: t3 } = useI18n();
33047
32996
  const { options: options2, children, selectProps } = props;
33048
32997
  const { setIsShowModalMany2Many, searchable } = selectProps;
33049
32998
  const limitedChildren = React19.Children.toArray(children).slice(0, 10);
33050
- return /* @__PURE__ */ jsxs76(components.MenuList, { ...props, className: "z-[99]", children: [
32999
+ return /* @__PURE__ */ jsxs75(components.MenuList, { ...props, className: "z-[99]", children: [
33051
33000
  limitedChildren,
33052
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs76(
33001
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs75(
33053
33002
  "button",
33054
33003
  {
33055
33004
  type: "button",
@@ -33092,7 +33041,7 @@ var Many2OneField = (props) => {
33092
33041
  const { t: t3 } = useI18n();
33093
33042
  if (!isForm && !isEditTable) {
33094
33043
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33095
- return /* @__PURE__ */ jsxs76(Fragment32, { children: [
33044
+ return /* @__PURE__ */ jsxs75(Fragment32, { children: [
33096
33045
  allowShowDetail && renderDetail({
33097
33046
  idToolTip: String(name2) + Number(index4),
33098
33047
  model: options2?.model ?? relation,
@@ -33110,7 +33059,7 @@ var Many2OneField = (props) => {
33110
33059
  )
33111
33060
  ] });
33112
33061
  }
33113
- return /* @__PURE__ */ jsxs76(Fragment32, { children: [
33062
+ return /* @__PURE__ */ jsxs75(Fragment32, { children: [
33114
33063
  allowShowDetail && renderDetail({
33115
33064
  idToolTip: String(name2),
33116
33065
  model: options2?.model ?? relation,
@@ -33148,7 +33097,7 @@ var Many2OneField = (props) => {
33148
33097
  methods?.clearErrors(name2);
33149
33098
  }
33150
33099
  }, [selectedOption]);
33151
- return /* @__PURE__ */ jsxs76("div", { className: "h-full", children: [
33100
+ return /* @__PURE__ */ jsxs75("div", { className: "h-full", children: [
33152
33101
  /* @__PURE__ */ jsx112(
33153
33102
  StateManagedSelect$1,
33154
33103
  {
@@ -33254,7 +33203,7 @@ var Many2OneField = (props) => {
33254
33203
  };
33255
33204
 
33256
33205
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33257
- import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
33206
+ import { jsx as jsx113, jsxs as jsxs76 } from "react/jsx-runtime";
33258
33207
  var StatusbarDurationField = (props) => {
33259
33208
  const {
33260
33209
  disabled,
@@ -33268,10 +33217,10 @@ var StatusbarDurationField = (props) => {
33268
33217
  "div",
33269
33218
  {
33270
33219
  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: [
33220
+ children: /* @__PURE__ */ jsxs76("div", { className: "flex items-center gap-[24px]", children: [
33272
33221
  /* @__PURE__ */ jsx113("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33273
33222
  const value = option?.id === defaultValue;
33274
- return /* @__PURE__ */ jsxs77(
33223
+ return /* @__PURE__ */ jsxs76(
33275
33224
  "label",
33276
33225
  {
33277
33226
  onClick: () => !disabled && handleClick(option.id),
@@ -33306,7 +33255,7 @@ var StatusbarDurationField = (props) => {
33306
33255
  }) }),
33307
33256
  dataResponse?.records?.some(
33308
33257
  (item) => item?.fold && item.id !== defaultValue
33309
- ) && /* @__PURE__ */ jsxs77(
33258
+ ) && /* @__PURE__ */ jsxs76(
33310
33259
  "div",
33311
33260
  {
33312
33261
  onClick: () => setModalStatus(!modelStatus),
@@ -33344,7 +33293,7 @@ var StatusbarDurationField = (props) => {
33344
33293
 
33345
33294
  // src/widgets/basic/status-bar-field/option/option.tsx
33346
33295
  import { useMemo as useMemo12 } from "react";
33347
- import { Fragment as Fragment33, jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
33296
+ import { Fragment as Fragment33, jsx as jsx114, jsxs as jsxs77 } from "react/jsx-runtime";
33348
33297
  var StatusBarOptionField = (props) => {
33349
33298
  const { selection, defaultValue } = props;
33350
33299
  const memoizedStatusOptions = useMemo12(() => selection, [selection]);
@@ -33360,8 +33309,8 @@ var StatusBarOptionField = (props) => {
33360
33309
  flexWrap: "wrap"
33361
33310
  },
33362
33311
  children: memoizedStatusOptions?.map((option, index4) => {
33363
- return /* @__PURE__ */ jsxs78(Fragment33, { children: [
33364
- /* @__PURE__ */ jsxs78(
33312
+ return /* @__PURE__ */ jsxs77(Fragment33, { children: [
33313
+ /* @__PURE__ */ jsxs77(
33365
33314
  "div",
33366
33315
  {
33367
33316
  style: {
@@ -33480,7 +33429,7 @@ var ICCheck = () => {
33480
33429
  };
33481
33430
 
33482
33431
  // src/widgets/basic/date-option-field/date-option.tsx
33483
- import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
33432
+ import { jsx as jsx115, jsxs as jsxs78 } from "react/jsx-runtime";
33484
33433
  var DateOptionField = (props) => {
33485
33434
  const {
33486
33435
  name: name2,
@@ -33496,7 +33445,7 @@ var DateOptionField = (props) => {
33496
33445
  {
33497
33446
  name: name2 ?? "",
33498
33447
  control: methods?.control,
33499
- render: ({ field }) => /* @__PURE__ */ jsxs79(
33448
+ render: ({ field }) => /* @__PURE__ */ jsxs78(
33500
33449
  "label",
33501
33450
  {
33502
33451
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm