@fctc/sme-widget-ui 1.9.5 → 1.9.7

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
@@ -8667,213 +8667,33 @@ var DownloadIcon = () => {
8667
8667
  };
8668
8668
 
8669
8669
  // src/icons/excel-icon.tsx
8670
- import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
8670
+ import { jsx as jsx17 } from "react/jsx-runtime";
8671
8671
  var ExcelIcon = () => {
8672
- return /* @__PURE__ */ jsxs5(
8672
+ return /* @__PURE__ */ jsx17(
8673
8673
  "svg",
8674
8674
  {
8675
- width: "40",
8676
- height: "40",
8677
- viewBox: "0 0 40 40",
8678
- fill: "none",
8679
8675
  xmlns: "http://www.w3.org/2000/svg",
8680
- children: [
8681
- /* @__PURE__ */ jsxs5("g", { clipPath: "url(#clip0_3263_110998)", children: [
8682
- /* @__PURE__ */ jsxs5("g", { filter: "url(#filter0_di_3263_110998)", children: [
8683
- /* @__PURE__ */ jsx17(
8684
- "path",
8685
- {
8686
- d: "M30 40H10C6.68629 40 4 37.3137 4 34V6C4 2.68629 6.68629 0 10 0H20.5147C22.106 0 23.6321 0.632142 24.7574 1.75736L34.2426 11.2426C35.3679 12.3679 36 13.894 36 15.4853V34C36 37.3137 33.3137 40 30 40Z",
8687
- fill: "white"
8688
- }
8689
- ),
8690
- /* @__PURE__ */ jsx17(
8691
- "path",
8692
- {
8693
- d: "M30 39.25H10C7.10051 39.25 4.75 36.8995 4.75 34V6C4.75 3.10051 7.10051 0.75 10 0.75H20.5147C21.9071 0.75 23.2425 1.30312 24.227 2.28769L33.7123 11.773C34.6969 12.7575 35.25 14.0929 35.25 15.4853V34C35.25 36.8995 32.8995 39.25 30 39.25Z",
8694
- stroke: "#E5E5E5",
8695
- strokeWidth: "1.5"
8696
- }
8697
- )
8698
- ] }),
8699
- /* @__PURE__ */ jsx17(
8700
- "path",
8701
- {
8702
- d: "M23 1V9C23 11.2091 24.7909 13 27 13H35",
8703
- stroke: "#E5E5E5",
8704
- strokeWidth: "1.5"
8705
- }
8706
- ),
8707
- /* @__PURE__ */ jsxs5("g", { filter: "url(#filter1_i_3263_110998)", children: [
8708
- /* @__PURE__ */ jsx17("mask", { id: "path-4-inside-1_3263_110998", fill: "white", children: /* @__PURE__ */ jsx17("path", { d: "M0 22C0 19.7909 1.79086 18 4 18H29C31.2091 18 33 19.7909 33 22V30C33 32.2091 31.2091 34 29 34H4C1.79086 34 0 32.2091 0 30V22Z" }) }),
8709
- /* @__PURE__ */ jsx17(
8710
- "path",
8711
- {
8712
- d: "M0 22C0 19.7909 1.79086 18 4 18H29C31.2091 18 33 19.7909 33 22V30C33 32.2091 31.2091 34 29 34H4C1.79086 34 0 32.2091 0 30V22Z",
8713
- fill: "#11A52B"
8714
- }
8715
- ),
8716
- /* @__PURE__ */ jsx17(
8717
- "path",
8718
- {
8719
- d: "M-1 22C-1 19.2386 1.23858 17 4 17H29C31.7614 17 34 19.2386 34 22H32C32 20.3431 30.6569 19 29 19H4C2.34315 19 1 20.3431 1 22H-1ZM33 34H0H33ZM4 34C1.23858 34 -1 31.7614 -1 29V22C-1 19.2386 1.23858 17 4 17V19C2.34315 19 1 20.3431 1 22V30C1 32.2091 2.34315 34 4 34ZM29 17C31.7614 17 34 19.2386 34 22V29C34 31.7614 31.7614 34 29 34C30.6569 34 32 32.2091 32 30V22C32 20.3431 30.6569 19 29 19V17Z",
8720
- fill: "black",
8721
- fillOpacity: "0.08",
8722
- mask: "url(#path-4-inside-1_3263_110998)"
8723
- }
8724
- ),
8725
- /* @__PURE__ */ jsx17(
8726
- "path",
8727
- {
8728
- d: "M4.81818 22.7273L6.41974 25.3906H6.47656L8.08523 22.7273H9.58736L7.34659 26.3636L9.62287 30H8.09588L6.47656 27.3544H6.41974L4.80043 30H3.28054L5.57812 26.3636L3.30895 22.7273H4.81818ZM10.8216 30V22.7273H12.1391V28.8956H15.3422V30H10.8216ZM20.6381 24.7266C20.605 24.4164 20.4653 24.175 20.2191 24.0021C19.9752 23.8293 19.658 23.7429 19.2674 23.7429C18.9927 23.7429 18.7572 23.7843 18.5607 23.8672C18.3642 23.95 18.2139 24.0625 18.1097 24.2045C18.0055 24.3466 17.9523 24.5088 17.9499 24.6911C17.9499 24.8426 17.9842 24.974 18.0529 25.0852C18.1239 25.1965 18.2198 25.2912 18.3405 25.3693C18.4613 25.4451 18.595 25.509 18.7418 25.5611C18.8886 25.6132 19.0365 25.657 19.1857 25.6925L19.8675 25.8629C20.1421 25.9268 20.4061 26.0133 20.6594 26.1222C20.9151 26.2311 21.1435 26.3684 21.3448 26.5341C21.5484 26.6998 21.7094 26.8999 21.8277 27.1342C21.9461 27.3686 22.0053 27.6432 22.0053 27.9581C22.0053 28.3842 21.8964 28.7595 21.6786 29.0838C21.4608 29.4058 21.1459 29.6579 20.734 29.8402C20.3244 30.0201 19.8284 30.1101 19.2461 30.1101C18.6802 30.1101 18.189 30.0225 17.7723 29.8473C17.358 29.6721 17.0337 29.4164 16.7993 29.0803C16.5673 28.7441 16.4418 28.3345 16.4229 27.8516H17.7191C17.738 28.1049 17.8161 28.3156 17.9534 28.4837C18.0908 28.6518 18.2695 28.7772 18.4897 28.8601C18.7122 28.9429 18.9608 28.9844 19.2354 28.9844C19.5219 28.9844 19.7728 28.9418 19.9882 28.8565C20.206 28.7689 20.3765 28.6482 20.4996 28.4943C20.6227 28.3381 20.6855 28.1558 20.6878 27.9474C20.6855 27.758 20.6298 27.6018 20.5209 27.4787C20.412 27.3532 20.2593 27.2491 20.0628 27.1662C19.8687 27.081 19.6414 27.0052 19.381 26.9389L18.5536 26.7259C17.9546 26.572 17.4811 26.3388 17.1331 26.0263C16.7875 25.7114 16.6147 25.2936 16.6147 24.7727C16.6147 24.3442 16.7307 23.969 16.9627 23.647C17.1971 23.325 17.5155 23.0753 17.9179 22.8977C18.3204 22.7178 18.7761 22.6278 19.2851 22.6278C19.8012 22.6278 20.2534 22.7178 20.6417 22.8977C21.0323 23.0753 21.3389 23.3227 21.5614 23.6399C21.7839 23.9548 21.8988 24.317 21.9059 24.7266H20.6381ZM24.4807 22.7273L26.0822 25.3906H26.1391L27.7477 22.7273H29.2499L27.0091 26.3636L29.2854 30H27.7584L26.1391 27.3544H26.0822L24.4629 30H22.943L25.2406 26.3636L22.9714 22.7273H24.4807Z",
8729
- fill: "white"
8730
- }
8731
- )
8732
- ] })
8733
- ] }),
8734
- /* @__PURE__ */ jsxs5("defs", { children: [
8735
- /* @__PURE__ */ jsxs5(
8736
- "filter",
8737
- {
8738
- id: "filter0_di_3263_110998",
8739
- x: "2",
8740
- y: "-4",
8741
- width: "36",
8742
- height: "47",
8743
- filterUnits: "userSpaceOnUse",
8744
- colorInterpolationFilters: "sRGB",
8745
- children: [
8746
- /* @__PURE__ */ jsx17("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
8747
- /* @__PURE__ */ jsx17(
8748
- "feColorMatrix",
8749
- {
8750
- in: "SourceAlpha",
8751
- type: "matrix",
8752
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
8753
- result: "hardAlpha"
8754
- }
8755
- ),
8756
- /* @__PURE__ */ jsx17("feOffset", { dy: "1" }),
8757
- /* @__PURE__ */ jsx17("feGaussianBlur", { stdDeviation: "1" }),
8758
- /* @__PURE__ */ jsx17("feComposite", { in2: "hardAlpha", operator: "out" }),
8759
- /* @__PURE__ */ jsx17(
8760
- "feColorMatrix",
8761
- {
8762
- type: "matrix",
8763
- values: "0 0 0 0 0.894118 0 0 0 0 0.898039 0 0 0 0 0.905882 0 0 0 0.24 0"
8764
- }
8765
- ),
8766
- /* @__PURE__ */ jsx17(
8767
- "feBlend",
8768
- {
8769
- mode: "normal",
8770
- in2: "BackgroundImageFix",
8771
- result: "effect1_dropShadow_3263_110998"
8772
- }
8773
- ),
8774
- /* @__PURE__ */ jsx17(
8775
- "feBlend",
8776
- {
8777
- mode: "normal",
8778
- in: "SourceGraphic",
8779
- in2: "effect1_dropShadow_3263_110998",
8780
- result: "shape"
8781
- }
8782
- ),
8783
- /* @__PURE__ */ jsx17(
8784
- "feColorMatrix",
8785
- {
8786
- in: "SourceAlpha",
8787
- type: "matrix",
8788
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
8789
- result: "hardAlpha"
8790
- }
8791
- ),
8792
- /* @__PURE__ */ jsx17("feOffset", { dy: "-4" }),
8793
- /* @__PURE__ */ jsx17("feGaussianBlur", { stdDeviation: "2" }),
8794
- /* @__PURE__ */ jsx17("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }),
8795
- /* @__PURE__ */ jsx17(
8796
- "feColorMatrix",
8797
- {
8798
- type: "matrix",
8799
- values: "0 0 0 0 0.813571 0 0 0 0 0.82 0 0 0 0 0.826429 0 0 0 0.32 0"
8800
- }
8801
- ),
8802
- /* @__PURE__ */ jsx17(
8803
- "feBlend",
8804
- {
8805
- mode: "normal",
8806
- in2: "shape",
8807
- result: "effect2_innerShadow_3263_110998"
8808
- }
8809
- )
8810
- ]
8811
- }
8812
- ),
8813
- /* @__PURE__ */ jsxs5(
8814
- "filter",
8815
- {
8816
- id: "filter1_i_3263_110998",
8817
- x: "0",
8818
- y: "18",
8819
- width: "33",
8820
- height: "20",
8821
- filterUnits: "userSpaceOnUse",
8822
- colorInterpolationFilters: "sRGB",
8823
- children: [
8824
- /* @__PURE__ */ jsx17("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
8825
- /* @__PURE__ */ jsx17(
8826
- "feBlend",
8827
- {
8828
- mode: "normal",
8829
- in: "SourceGraphic",
8830
- in2: "BackgroundImageFix",
8831
- result: "shape"
8832
- }
8833
- ),
8834
- /* @__PURE__ */ jsx17(
8835
- "feColorMatrix",
8836
- {
8837
- in: "SourceAlpha",
8838
- type: "matrix",
8839
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
8840
- result: "hardAlpha"
8841
- }
8842
- ),
8843
- /* @__PURE__ */ jsx17("feOffset", { dy: "4" }),
8844
- /* @__PURE__ */ jsx17("feGaussianBlur", { stdDeviation: "2" }),
8845
- /* @__PURE__ */ jsx17("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }),
8846
- /* @__PURE__ */ jsx17(
8847
- "feColorMatrix",
8848
- {
8849
- type: "matrix",
8850
- values: "0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0"
8851
- }
8852
- ),
8853
- /* @__PURE__ */ jsx17(
8854
- "feBlend",
8855
- {
8856
- mode: "normal",
8857
- in2: "shape",
8858
- result: "effect1_innerShadow_3263_110998"
8859
- }
8860
- )
8861
- ]
8862
- }
8863
- ),
8864
- /* @__PURE__ */ jsx17("clipPath", { id: "clip0_3263_110998", children: /* @__PURE__ */ jsx17("rect", { width: "40", height: "40", fill: "white" }) })
8865
- ] })
8866
- ]
8676
+ width: "19",
8677
+ height: "10",
8678
+ viewBox: "0 0 19 10",
8679
+ fill: "none",
8680
+ children: /* @__PURE__ */ jsx17(
8681
+ "path",
8682
+ {
8683
+ d: "M18.5 8.5C18.5 8.9125 18.1625 9.25 17.75 9.25H1.25C0.8375 9.25 0.5 8.9125 0.5 8.5V1C0.5 0.5875 0.8375 0.25 1.25 0.25H17.75C18.1625 0.25 18.5 0.5875 18.5 1V8.5Z",
8684
+ fill: "#47A800"
8685
+ }
8686
+ )
8867
8687
  }
8868
8688
  );
8869
8689
  };
8870
8690
 
8871
8691
  // src/icons/export-icon.tsx
8872
- import { jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
8692
+ import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
8873
8693
 
8874
8694
  // src/icons/eye-icon.tsx
8875
- import { jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
8876
- var EyeIcon = () => /* @__PURE__ */ jsxs7(
8695
+ import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
8696
+ var EyeIcon = () => /* @__PURE__ */ jsxs6(
8877
8697
  "svg",
8878
8698
  {
8879
8699
  width: "20",
@@ -8924,9 +8744,9 @@ var FilterIcon = ({ className }) => {
8924
8744
  };
8925
8745
 
8926
8746
  // src/icons/groupby-icon.tsx
8927
- import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
8747
+ import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
8928
8748
  var GroupByIcon = ({ className }) => {
8929
- return /* @__PURE__ */ jsxs8(
8749
+ return /* @__PURE__ */ jsxs7(
8930
8750
  "svg",
8931
8751
  {
8932
8752
  xmlns: "http://www.w3.org/2000/svg",
@@ -8949,15 +8769,15 @@ var GroupByIcon = ({ className }) => {
8949
8769
  };
8950
8770
 
8951
8771
  // src/icons/kanban-icon.tsx
8952
- import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
8772
+ import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
8953
8773
 
8954
8774
  // src/icons/list-icon.tsx
8955
- import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
8775
+ import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
8956
8776
 
8957
8777
  // src/icons/more-icon.tsx
8958
- import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
8778
+ import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
8959
8779
  var MoreIcon = () => {
8960
- return /* @__PURE__ */ jsxs11(
8780
+ return /* @__PURE__ */ jsxs10(
8961
8781
  "svg",
8962
8782
  {
8963
8783
  width: "24px",
@@ -9002,203 +8822,23 @@ var MoreIcon = () => {
9002
8822
  };
9003
8823
 
9004
8824
  // src/icons/pdf-icon.tsx
9005
- import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
8825
+ import { jsx as jsx25 } from "react/jsx-runtime";
9006
8826
  var PdfIcon = () => {
9007
- return /* @__PURE__ */ jsxs12(
8827
+ return /* @__PURE__ */ jsx25(
9008
8828
  "svg",
9009
8829
  {
9010
- width: "40",
9011
- height: "40",
9012
- viewBox: "0 0 40 40",
9013
- fill: "none",
9014
8830
  xmlns: "http://www.w3.org/2000/svg",
9015
- children: [
9016
- /* @__PURE__ */ jsxs12("g", { clipPath: "url(#clip0_2648_1158)", children: [
9017
- /* @__PURE__ */ jsxs12("g", { filter: "url(#filter0_di_2648_1158)", children: [
9018
- /* @__PURE__ */ jsx25(
9019
- "path",
9020
- {
9021
- d: "M30 40H10C6.68629 40 4 37.3137 4 34V6C4 2.68629 6.68629 0 10 0H20.5147C22.106 0 23.6321 0.632142 24.7574 1.75736L34.2426 11.2426C35.3679 12.3679 36 13.894 36 15.4853V34C36 37.3137 33.3137 40 30 40Z",
9022
- fill: "white"
9023
- }
9024
- ),
9025
- /* @__PURE__ */ jsx25(
9026
- "path",
9027
- {
9028
- d: "M30 39.25H10C7.10051 39.25 4.75 36.8995 4.75 34V6C4.75 3.10051 7.10051 0.75 10 0.75H20.5147C21.9071 0.75 23.2425 1.30312 24.227 2.28769L33.7123 11.773C34.6969 12.7575 35.25 14.0929 35.25 15.4853V34C35.25 36.8995 32.8995 39.25 30 39.25Z",
9029
- stroke: "#CDD0D5",
9030
- strokeWidth: "1.5"
9031
- }
9032
- )
9033
- ] }),
9034
- /* @__PURE__ */ jsx25(
9035
- "path",
9036
- {
9037
- d: "M23 1V9C23 11.2091 24.7909 13 27 13H35",
9038
- stroke: "#CDD0D5",
9039
- strokeWidth: "1.5"
9040
- }
9041
- ),
9042
- /* @__PURE__ */ jsxs12("g", { filter: "url(#filter1_i_2648_1158)", children: [
9043
- /* @__PURE__ */ jsx25("mask", { id: "path-4-inside-1_2648_1158", fill: "white", children: /* @__PURE__ */ jsx25("path", { d: "M0 22C0 19.7909 1.79086 18 4 18H24C26.2091 18 28 19.7909 28 22V30C28 32.2091 26.2091 34 24 34H4C1.79086 34 0 32.2091 0 30V22Z" }) }),
9044
- /* @__PURE__ */ jsx25(
9045
- "path",
9046
- {
9047
- d: "M0 22C0 19.7909 1.79086 18 4 18H24C26.2091 18 28 19.7909 28 22V30C28 32.2091 26.2091 34 24 34H4C1.79086 34 0 32.2091 0 30V22Z",
9048
- fill: "#DF1C41"
9049
- }
9050
- ),
9051
- /* @__PURE__ */ jsx25(
9052
- "path",
9053
- {
9054
- d: "M-1 22C-1 19.2386 1.23858 17 4 17H24C26.7614 17 29 19.2386 29 22H27C27 20.3431 25.6569 19 24 19H4C2.34315 19 1 20.3431 1 22H-1ZM28 34H0H28ZM4 34C1.23858 34 -1 31.7614 -1 29V22C-1 19.2386 1.23858 17 4 17V19C2.34315 19 1 20.3431 1 22V30C1 32.2091 2.34315 34 4 34ZM24 17C26.7614 17 29 19.2386 29 22V29C29 31.7614 26.7614 34 24 34C25.6569 34 27 32.2091 27 30V22C27 20.3431 25.6569 19 24 19V17Z",
9055
- fill: "black",
9056
- fillOpacity: "0.08",
9057
- mask: "url(#path-4-inside-1_2648_1158)"
9058
- }
9059
- ),
9060
- /* @__PURE__ */ jsx25(
9061
- "path",
9062
- {
9063
- d: "M3.78906 30V22H6.78906C7.40365 22 7.91927 22.1146 8.33594 22.3437C8.75521 22.5729 9.07161 22.888 9.28516 23.2891C9.5013 23.6875 9.60938 24.1406 9.60938 24.6484C9.60938 25.1615 9.5013 25.6172 9.28516 26.0156C9.06901 26.4141 8.75 26.7279 8.32812 26.957C7.90625 27.1836 7.38672 27.2969 6.76953 27.2969H4.78125V26.1055H6.57422C6.93359 26.1055 7.22786 26.043 7.45703 25.918C7.6862 25.793 7.85547 25.6211 7.96484 25.4023C8.07682 25.1836 8.13281 24.9323 8.13281 24.6484C8.13281 24.3646 8.07682 24.1146 7.96484 23.8984C7.85547 23.6823 7.6849 23.5143 7.45313 23.3945C7.22396 23.2721 6.92839 23.2109 6.56641 23.2109H5.23828V30H3.78906ZM13.7991 30H11.0882V22H13.8538C14.6481 22 15.3304 22.1602 15.9007 22.4805C16.4736 22.7982 16.9137 23.2552 17.221 23.8516C17.5283 24.4479 17.6819 25.1615 17.6819 25.9922C17.6819 26.8255 17.527 27.5417 17.2171 28.1406C16.9098 28.7396 16.4658 29.1992 15.885 29.5195C15.3069 29.8398 14.6116 30 13.7991 30ZM12.5374 28.7461H13.7288C14.2861 28.7461 14.7509 28.6445 15.1233 28.4414C15.4957 28.2357 15.7757 27.9297 15.9632 27.5234C16.1507 27.1146 16.2444 26.6042 16.2444 25.9922C16.2444 25.3802 16.1507 24.8724 15.9632 24.4687C15.7757 24.0625 15.4983 23.7591 15.1311 23.5586C14.7665 23.3555 14.3134 23.2539 13.7718 23.2539H12.5374V28.7461ZM19.2789 30V22H24.4039V23.2148H20.7281V25.3867H24.0523V26.6016H20.7281V30H19.2789Z",
9064
- fill: "white"
9065
- }
9066
- )
9067
- ] })
9068
- ] }),
9069
- /* @__PURE__ */ jsxs12("defs", { children: [
9070
- /* @__PURE__ */ jsxs12(
9071
- "filter",
9072
- {
9073
- id: "filter0_di_2648_1158",
9074
- x: "2",
9075
- y: "-4",
9076
- width: "36",
9077
- height: "47",
9078
- filterUnits: "userSpaceOnUse",
9079
- colorInterpolationFilters: "sRGB",
9080
- children: [
9081
- /* @__PURE__ */ jsx25("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
9082
- /* @__PURE__ */ jsx25(
9083
- "feColorMatrix",
9084
- {
9085
- in: "SourceAlpha",
9086
- type: "matrix",
9087
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
9088
- result: "hardAlpha"
9089
- }
9090
- ),
9091
- /* @__PURE__ */ jsx25("feOffset", { dy: "1" }),
9092
- /* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "1" }),
9093
- /* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "out" }),
9094
- /* @__PURE__ */ jsx25(
9095
- "feColorMatrix",
9096
- {
9097
- type: "matrix",
9098
- values: "0 0 0 0 0.894118 0 0 0 0 0.898039 0 0 0 0 0.905882 0 0 0 0.24 0"
9099
- }
9100
- ),
9101
- /* @__PURE__ */ jsx25(
9102
- "feBlend",
9103
- {
9104
- mode: "normal",
9105
- in2: "BackgroundImageFix",
9106
- result: "effect1_dropShadow_2648_1158"
9107
- }
9108
- ),
9109
- /* @__PURE__ */ jsx25(
9110
- "feBlend",
9111
- {
9112
- mode: "normal",
9113
- in: "SourceGraphic",
9114
- in2: "effect1_dropShadow_2648_1158",
9115
- result: "shape"
9116
- }
9117
- ),
9118
- /* @__PURE__ */ jsx25(
9119
- "feColorMatrix",
9120
- {
9121
- in: "SourceAlpha",
9122
- type: "matrix",
9123
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
9124
- result: "hardAlpha"
9125
- }
9126
- ),
9127
- /* @__PURE__ */ jsx25("feOffset", { dy: "-4" }),
9128
- /* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "2" }),
9129
- /* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }),
9130
- /* @__PURE__ */ jsx25(
9131
- "feColorMatrix",
9132
- {
9133
- type: "matrix",
9134
- values: "0 0 0 0 0.813571 0 0 0 0 0.82 0 0 0 0 0.826429 0 0 0 0.32 0"
9135
- }
9136
- ),
9137
- /* @__PURE__ */ jsx25(
9138
- "feBlend",
9139
- {
9140
- mode: "normal",
9141
- in2: "shape",
9142
- result: "effect2_innerShadow_2648_1158"
9143
- }
9144
- )
9145
- ]
9146
- }
9147
- ),
9148
- /* @__PURE__ */ jsxs12(
9149
- "filter",
9150
- {
9151
- id: "filter1_i_2648_1158",
9152
- x: "0",
9153
- y: "18",
9154
- width: "28",
9155
- height: "20",
9156
- filterUnits: "userSpaceOnUse",
9157
- colorInterpolationFilters: "sRGB",
9158
- children: [
9159
- /* @__PURE__ */ jsx25("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
9160
- /* @__PURE__ */ jsx25(
9161
- "feBlend",
9162
- {
9163
- mode: "normal",
9164
- in: "SourceGraphic",
9165
- in2: "BackgroundImageFix",
9166
- result: "shape"
9167
- }
9168
- ),
9169
- /* @__PURE__ */ jsx25(
9170
- "feColorMatrix",
9171
- {
9172
- in: "SourceAlpha",
9173
- type: "matrix",
9174
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
9175
- result: "hardAlpha"
9176
- }
9177
- ),
9178
- /* @__PURE__ */ jsx25("feOffset", { dy: "4" }),
9179
- /* @__PURE__ */ jsx25("feGaussianBlur", { stdDeviation: "2" }),
9180
- /* @__PURE__ */ jsx25("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }),
9181
- /* @__PURE__ */ jsx25(
9182
- "feColorMatrix",
9183
- {
9184
- type: "matrix",
9185
- values: "0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0"
9186
- }
9187
- ),
9188
- /* @__PURE__ */ jsx25(
9189
- "feBlend",
9190
- {
9191
- mode: "normal",
9192
- in2: "shape",
9193
- result: "effect1_innerShadow_2648_1158"
9194
- }
9195
- )
9196
- ]
9197
- }
9198
- ),
9199
- /* @__PURE__ */ jsx25("clipPath", { id: "clip0_2648_1158", children: /* @__PURE__ */ jsx25("rect", { width: "40", height: "40", fill: "white" }) })
9200
- ] })
9201
- ]
8831
+ width: "19",
8832
+ height: "10",
8833
+ viewBox: "0 0 19 10",
8834
+ fill: "none",
8835
+ children: /* @__PURE__ */ jsx25(
8836
+ "path",
8837
+ {
8838
+ d: "M18.6992 8.5C18.6992 8.9125 18.3617 9.25 17.9492 9.25H1.44922C1.03672 9.25 0.699219 8.9125 0.699219 8.5V1C0.699219 0.5875 1.03672 0.25 1.44922 0.25H17.9492C18.3617 0.25 18.6992 0.5875 18.6992 1V8.5Z",
8839
+ fill: "#FF4B34"
8840
+ }
8841
+ )
9202
8842
  }
9203
8843
  );
9204
8844
  };
@@ -9226,7 +8866,7 @@ var PlayIcon = () => {
9226
8866
  };
9227
8867
 
9228
8868
  // src/icons/reset-icon.tsx
9229
- import { jsx as jsx27, jsxs as jsxs13 } from "react/jsx-runtime";
8869
+ import { jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
9230
8870
 
9231
8871
  // src/icons/search-icon.tsx
9232
8872
  import { jsx as jsx28 } from "react/jsx-runtime";
@@ -9251,7 +8891,7 @@ var SearchIcon = () => {
9251
8891
  };
9252
8892
 
9253
8893
  // src/icons/setting-icon.tsx
9254
- import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
8894
+ import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
9255
8895
 
9256
8896
  // src/icons/star-filled-icon.tsx
9257
8897
  import { jsx as jsx30 } from "react/jsx-runtime";
@@ -9297,12 +8937,12 @@ var TriangleIcon = (props) => /* @__PURE__ */ jsx31(
9297
8937
  import { jsx as jsx32 } from "react/jsx-runtime";
9298
8938
 
9299
8939
  // src/icons/vector-icon.tsx
9300
- import { jsx as jsx33, jsxs as jsxs15 } from "react/jsx-runtime";
8940
+ import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
9301
8941
 
9302
8942
  // src/icons/zip-icon.tsx
9303
- import { jsx as jsx34, jsxs as jsxs16 } from "react/jsx-runtime";
8943
+ import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
9304
8944
  var ZipIcon = () => {
9305
- return /* @__PURE__ */ jsxs16(
8945
+ return /* @__PURE__ */ jsxs14(
9306
8946
  "svg",
9307
8947
  {
9308
8948
  width: "40",
@@ -9311,8 +8951,8 @@ var ZipIcon = () => {
9311
8951
  fill: "none",
9312
8952
  xmlns: "http://www.w3.org/2000/svg",
9313
8953
  children: [
9314
- /* @__PURE__ */ jsxs16("g", { clipPath: "url(#clip0_3042_66427)", children: [
9315
- /* @__PURE__ */ jsxs16("g", { filter: "url(#filter0_di_3042_66427)", children: [
8954
+ /* @__PURE__ */ jsxs14("g", { clipPath: "url(#clip0_3042_66427)", children: [
8955
+ /* @__PURE__ */ jsxs14("g", { filter: "url(#filter0_di_3042_66427)", children: [
9316
8956
  /* @__PURE__ */ jsx34(
9317
8957
  "path",
9318
8958
  {
@@ -9337,7 +8977,7 @@ var ZipIcon = () => {
9337
8977
  strokeWidth: "1.5"
9338
8978
  }
9339
8979
  ),
9340
- /* @__PURE__ */ jsxs16("g", { filter: "url(#filter1_i_3042_66427)", children: [
8980
+ /* @__PURE__ */ jsxs14("g", { filter: "url(#filter1_i_3042_66427)", children: [
9341
8981
  /* @__PURE__ */ jsx34("mask", { id: "path-4-inside-1_3042_66427", fill: "white", children: /* @__PURE__ */ jsx34("path", { d: "M0 22C0 19.7909 1.79086 18 4 18H20C22.2091 18 24 19.7909 24 22V30C24 32.2091 22.2091 34 20 34H4C1.79086 34 0 32.2091 0 30V22Z" }) }),
9342
8982
  /* @__PURE__ */ jsx34(
9343
8983
  "path",
@@ -9364,8 +9004,8 @@ var ZipIcon = () => {
9364
9004
  )
9365
9005
  ] })
9366
9006
  ] }),
9367
- /* @__PURE__ */ jsxs16("defs", { children: [
9368
- /* @__PURE__ */ jsxs16(
9007
+ /* @__PURE__ */ jsxs14("defs", { children: [
9008
+ /* @__PURE__ */ jsxs14(
9369
9009
  "filter",
9370
9010
  {
9371
9011
  id: "filter0_di_3042_66427",
@@ -9443,7 +9083,7 @@ var ZipIcon = () => {
9443
9083
  ]
9444
9084
  }
9445
9085
  ),
9446
- /* @__PURE__ */ jsxs16(
9086
+ /* @__PURE__ */ jsxs14(
9447
9087
  "filter",
9448
9088
  {
9449
9089
  id: "filter1_i_3042_66427",
@@ -9502,7 +9142,7 @@ var ZipIcon = () => {
9502
9142
  };
9503
9143
 
9504
9144
  // src/icons/loading-icon.tsx
9505
- import { jsx as jsx35, jsxs as jsxs17 } from "react/jsx-runtime";
9145
+ import { jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
9506
9146
  var LoadingIcon = ({
9507
9147
  width = 15,
9508
9148
  height = 15,
@@ -9523,7 +9163,7 @@ var LoadingIcon = ({
9523
9163
  background: "transparent"
9524
9164
  },
9525
9165
  ...props,
9526
- children: /* @__PURE__ */ jsxs17("g", { children: [
9166
+ children: /* @__PURE__ */ jsxs15("g", { children: [
9527
9167
  /* @__PURE__ */ jsx35(
9528
9168
  "circle",
9529
9169
  {
@@ -9554,8 +9194,8 @@ var LoadingIcon = ({
9554
9194
  };
9555
9195
 
9556
9196
  // src/icons/paid-icon.tsx
9557
- import { jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
9558
- var PaidIcon = () => /* @__PURE__ */ jsxs18(
9197
+ import { jsx as jsx36, jsxs as jsxs16 } from "react/jsx-runtime";
9198
+ var PaidIcon = () => /* @__PURE__ */ jsxs16(
9559
9199
  "svg",
9560
9200
  {
9561
9201
  width: "208",
@@ -9564,7 +9204,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs18(
9564
9204
  fill: "none",
9565
9205
  xmlns: "http://www.w3.org/2000/svg",
9566
9206
  children: [
9567
- /* @__PURE__ */ jsxs18("g", { opacity: "0.5", filter: "url(#filter0_d_615_26793)", children: [
9207
+ /* @__PURE__ */ jsxs16("g", { opacity: "0.5", filter: "url(#filter0_d_615_26793)", children: [
9568
9208
  /* @__PURE__ */ jsx36(
9569
9209
  "path",
9570
9210
  {
@@ -9640,8 +9280,8 @@ var PaidIcon = () => /* @__PURE__ */ jsxs18(
9640
9280
  }
9641
9281
  )
9642
9282
  ] }),
9643
- /* @__PURE__ */ jsxs18("defs", { children: [
9644
- /* @__PURE__ */ jsxs18(
9283
+ /* @__PURE__ */ jsxs16("defs", { children: [
9284
+ /* @__PURE__ */ jsxs16(
9645
9285
  "filter",
9646
9286
  {
9647
9287
  id: "filter0_d_615_26793",
@@ -9738,13 +9378,13 @@ var PlaceHolderIcon = () => {
9738
9378
  };
9739
9379
 
9740
9380
  // src/icons/google-icon.tsx
9741
- import { jsx as jsx38, jsxs as jsxs19 } from "react/jsx-runtime";
9381
+ import { jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
9742
9382
  var GoogleIcon = ({
9743
9383
  width = 20,
9744
9384
  height = 20,
9745
9385
  ...props
9746
9386
  }) => {
9747
- return /* @__PURE__ */ jsxs19(
9387
+ return /* @__PURE__ */ jsxs17(
9748
9388
  "svg",
9749
9389
  {
9750
9390
  xmlns: "http://www.w3.org/2000/svg",
@@ -9789,9 +9429,9 @@ var GoogleIcon = ({
9789
9429
  };
9790
9430
 
9791
9431
  // src/icons/eye-closed-icon.tsx
9792
- import { jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
9432
+ import { jsx as jsx39, jsxs as jsxs18 } from "react/jsx-runtime";
9793
9433
  var EyeClosedIcon = () => {
9794
- return /* @__PURE__ */ jsxs20(
9434
+ return /* @__PURE__ */ jsxs18(
9795
9435
  "svg",
9796
9436
  {
9797
9437
  width: "20",
@@ -9856,90 +9496,13 @@ var DeleteIconDanger = () => {
9856
9496
  };
9857
9497
 
9858
9498
  // src/icons/image-icon.tsx
9859
- import { jsx as jsx41, jsxs as jsxs21 } from "react/jsx-runtime";
9860
- var ImageIcon = () => {
9861
- return /* @__PURE__ */ jsxs21(
9862
- "svg",
9863
- {
9864
- xmlns: "http://www.w3.org/2000/svg",
9865
- width: "22",
9866
- height: "23",
9867
- viewBox: "0 0 22 23",
9868
- fill: "none",
9869
- children: [
9870
- /* @__PURE__ */ jsx41(
9871
- "path",
9872
- {
9873
- d: "M22 5.36046V17.6395C21.9989 18.9283 21.4865 20.1639 20.5752 21.0752C19.6639 21.9865 18.4283 22.4989 17.1395 22.5H4.86047C4.32055 22.5016 3.78427 22.4116 3.27442 22.2339C2.31857 21.9038 1.48947 21.2838 0.902556 20.4603C0.315646 19.6368 0.000149319 18.6508 0 17.6395V5.36046C0.00108389 4.07172 0.513515 2.83607 1.42479 1.92479C2.33607 1.01351 3.57172 0.501084 4.86047 0.5H17.1395C18.4283 0.501084 19.6639 1.01351 20.5752 1.92479C21.4865 2.83607 21.9989 4.07172 22 5.36046Z",
9874
- fill: "#E6F7FF"
9875
- }
9876
- ),
9877
- /* @__PURE__ */ jsx41(
9878
- "path",
9879
- {
9880
- d: "M13.75 18.4995V22.2495H5C4.47235 22.251 3.94826 22.1631 3.45 21.9895C2.51588 21.6669 1.70561 21.061 1.13204 20.2562C0.558472 19.4514 0.250146 18.4878 0.25 17.4995V14.7695L3.41 12.6595C3.88229 12.3434 4.44129 12.1822 5.00937 12.1984C5.57745 12.2145 6.1264 12.4071 6.58 12.7495L10.07 15.3695L13.45 17.8995C13.5438 17.9687 13.6199 18.0592 13.672 18.1635C13.7241 18.2678 13.7509 18.3829 13.75 18.4995Z",
9881
- fill: "#70D5B8"
9882
- }
9883
- ),
9884
- /* @__PURE__ */ jsx41(
9885
- "path",
9886
- {
9887
- d: "M7.625 8.625C9.00571 8.625 10.125 7.50571 10.125 6.125C10.125 4.74429 9.00571 3.625 7.625 3.625C6.24429 3.625 5.125 4.74429 5.125 6.125C5.125 7.50571 6.24429 8.625 7.625 8.625Z",
9888
- fill: "#FFD44D"
9889
- }
9890
- ),
9891
- /* @__PURE__ */ jsx41(
9892
- "path",
9893
- {
9894
- d: "M21.7492 12.5393V17.4993C21.7482 18.7588 21.2474 19.9663 20.3568 20.8569C19.4662 21.7475 18.2587 22.2483 16.9992 22.2493H4.99922C4.47157 22.2509 3.94748 22.163 3.44922 21.9893L14.4492 10.9893C14.8555 10.5799 15.3808 10.3092 15.95 10.2158C16.5192 10.1224 17.1034 10.2112 17.6192 10.4693L21.7492 12.5393Z",
9895
- fill: "#13BF8A"
9896
- }
9897
- )
9898
- ]
9899
- }
9900
- );
9901
- };
9499
+ import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
9902
9500
 
9903
9501
  // src/icons/video-icon.tsx
9904
- import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
9905
- var VideoIcon = () => {
9906
- return /* @__PURE__ */ jsxs22(
9907
- "svg",
9908
- {
9909
- xmlns: "http://www.w3.org/2000/svg",
9910
- width: "22",
9911
- height: "21",
9912
- viewBox: "0 0 22 21",
9913
- fill: "none",
9914
- children: [
9915
- /* @__PURE__ */ jsx42(
9916
- "path",
9917
- {
9918
- d: "M22.0001 2.10859L22.0001 18.8914C22.0001 19.7798 21.2799 20.5 20.3915 20.5H1.61054C0.722142 20.5 0.00195312 19.7798 0.00195312 18.8914V2.10859C0.00195312 1.22019 0.722143 0.5 1.61054 0.5H20.3915C21.2799 0.5 22.0001 1.22019 22.0001 2.10859Z",
9919
- fill: "#435E88"
9920
- }
9921
- ),
9922
- /* @__PURE__ */ jsx42(
9923
- "path",
9924
- {
9925
- d: "M21.9974 2.10515L21.9981 18.8914C21.9981 19.7782 21.2797 20.5 20.3895 20.5H1.60863C0.721846 20.5 0 19.7782 0 18.8914L20.3888 0.5C21.2791 0.5 21.9974 1.21832 21.9974 2.10515Z",
9926
- fill: "#33527D"
9927
- }
9928
- ),
9929
- /* @__PURE__ */ jsx42(
9930
- "path",
9931
- {
9932
- d: "M3.96875 14.8779C4.15191 14.8782 4.30078 15.0267 4.30078 15.21V17.123C4.30078 17.3063 4.15191 17.4549 3.96875 17.4551H2.05469C1.87133 17.4551 1.72266 17.3064 1.72266 17.123V15.21C1.72266 15.0266 1.87133 14.8779 2.05469 14.8779H3.96875ZM19.9492 14.8779C20.1326 14.8779 20.2812 15.0266 20.2812 15.21V17.123C20.2812 17.3064 20.1326 17.4551 19.9492 17.4551H18.0361C17.8528 17.4551 17.7041 17.3064 17.7041 17.123V15.21C17.7041 15.0266 17.8528 14.8779 18.0361 14.8779H19.9492ZM8.59473 7.55566C8.59499 7.0953 9.10791 6.82103 9.49121 7.07617L14.1484 10.1758C14.4914 10.4041 14.4914 10.9084 14.1484 11.1367L9.49121 14.2363C9.10788 14.4915 8.59493 14.2173 8.59473 13.7568V7.55566ZM3.96875 10.6592C4.15175 10.6594 4.30052 10.8072 4.30078 10.9902V12.9043C4.30078 13.0875 4.15191 13.2361 3.96875 13.2363H2.05469C1.87133 13.2363 1.72266 13.0877 1.72266 12.9043V10.9902C1.72292 10.8071 1.87149 10.6592 2.05469 10.6592H3.96875ZM19.9492 10.6592C20.1324 10.6592 20.281 10.8071 20.2812 10.9902V12.9043C20.2812 13.0877 20.1326 13.2363 19.9492 13.2363H18.0361C17.8528 13.2363 17.7041 13.0877 17.7041 12.9043V10.9902C17.7044 10.8071 17.8529 10.6592 18.0361 10.6592H19.9492ZM3.96875 6.4375C4.15177 6.43773 4.30055 6.58651 4.30078 6.76953V8.68359C4.30078 8.86681 4.15191 9.0154 3.96875 9.01562H2.05469C1.87133 9.01562 1.72266 8.86695 1.72266 8.68359V6.76953C1.72289 6.58637 1.87147 6.4375 2.05469 6.4375H3.96875ZM19.9492 6.4375C20.1324 6.4375 20.281 6.58637 20.2812 6.76953V8.68359C20.2812 8.86695 20.1326 9.01562 19.9492 9.01562H18.0361C17.8528 9.01562 17.7041 8.86695 17.7041 8.68359V6.76953C17.7043 6.58637 17.8529 6.4375 18.0361 6.4375H19.9492ZM3.96875 2.21875C4.15181 2.21898 4.3006 2.36771 4.30078 2.55078V4.46484C4.30078 4.64806 4.15191 4.79665 3.96875 4.79688H2.05469C1.87133 4.79688 1.72266 4.6482 1.72266 4.46484V2.55078C1.72283 2.36757 1.87144 2.21875 2.05469 2.21875H3.96875ZM19.9492 2.21875C20.1325 2.21875 20.2811 2.36757 20.2812 2.55078V4.46484C20.2812 4.6482 20.1326 4.79688 19.9492 4.79688H18.0361C17.8528 4.79688 17.7041 4.6482 17.7041 4.46484V2.55078C17.7043 2.36757 17.8529 2.21875 18.0361 2.21875H19.9492Z",
9933
- fill: "white"
9934
- }
9935
- )
9936
- ]
9937
- }
9938
- );
9939
- };
9502
+ import { jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
9940
9503
 
9941
9504
  // src/widgets/advanced/table/table-group.tsx
9942
- import { Fragment as Fragment2, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
9505
+ import { Fragment as Fragment2, jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
9943
9506
  var TableGroup = (props) => {
9944
9507
  const { t: t3 } = useI18n();
9945
9508
  const {
@@ -9989,8 +9552,8 @@ var TableGroup = (props) => {
9989
9552
  setSelectedRowKeys
9990
9553
  });
9991
9554
  const leftPadding = level > 1 ? level * 8 + "px" : "0px";
9992
- return /* @__PURE__ */ jsxs23(Fragment2, { children: [
9993
- /* @__PURE__ */ jsxs23(
9555
+ return /* @__PURE__ */ jsxs21(Fragment2, { children: [
9556
+ /* @__PURE__ */ jsxs21(
9994
9557
  "tr",
9995
9558
  {
9996
9559
  draggable: true,
@@ -10003,13 +9566,13 @@ var TableGroup = (props) => {
10003
9566
  colSpan: colEmptyGroup.fromStart ?? 1,
10004
9567
  style: { display: "table-cell" },
10005
9568
  className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
10006
- children: /* @__PURE__ */ jsxs23(
9569
+ children: /* @__PURE__ */ jsxs21(
10007
9570
  "div",
10008
9571
  {
10009
9572
  style: { paddingLeft: leftPadding },
10010
9573
  className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
10011
9574
  children: [
10012
- /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
9575
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2", children: [
10013
9576
  /* @__PURE__ */ jsx43(
10014
9577
  TriangleIcon,
10015
9578
  {
@@ -10096,7 +9659,7 @@ var TableGroup = (props) => {
10096
9659
 
10097
9660
  // src/widgets/advanced/table/table-row.tsx
10098
9661
  import { useEffect as useEffect3, useMemo as useMemo3, useRef as useRef2 } from "react";
10099
- import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
9662
+ import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
10100
9663
  var Row = (props) => {
10101
9664
  const {
10102
9665
  row,
@@ -10167,7 +9730,7 @@ var Row = (props) => {
10167
9730
  {
10168
9731
  "data-row-id": row?.id,
10169
9732
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10170
- children: /* @__PURE__ */ jsxs24(Fragment3, { children: [
9733
+ children: /* @__PURE__ */ jsxs22(Fragment3, { children: [
10171
9734
  isDisplayCheckbox && /* @__PURE__ */ jsx44(
10172
9735
  "td",
10173
9736
  {
@@ -10568,7 +10131,7 @@ function useFileInfo(source, options2) {
10568
10131
  }
10569
10132
 
10570
10133
  // src/widgets/advanced/table/table-filter.tsx
10571
- import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
10134
+ import { jsx as jsx46, jsxs as jsxs23 } from "react/jsx-runtime";
10572
10135
  var TableFilter = ({ columns, onToggleColumnOptional }) => {
10573
10136
  const [openTableFilter, setOpenTableFilter] = useState4();
10574
10137
  const [filterPosition, setFilterPosition] = useState4(null);
@@ -10600,7 +10163,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10600
10163
  window.removeEventListener("resize", updatePosition);
10601
10164
  };
10602
10165
  }, [filterRef, openTableFilter]);
10603
- return /* @__PURE__ */ jsxs25(
10166
+ return /* @__PURE__ */ jsxs23(
10604
10167
  "div",
10605
10168
  {
10606
10169
  ref: filterRef,
@@ -10617,7 +10180,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10617
10180
  onClick: () => {
10618
10181
  setOpenTableFilter(!openTableFilter);
10619
10182
  },
10620
- children: /* @__PURE__ */ jsxs25(
10183
+ children: /* @__PURE__ */ jsxs23(
10621
10184
  "svg",
10622
10185
  {
10623
10186
  xmlns: "http://www.w3.org/2000/svg",
@@ -10685,7 +10248,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10685
10248
  },
10686
10249
  className: "absolute z-[9999] flex w-[250px] h-auto max-h-[800%] overflow-auto flex-col gap-[16px] rounded-[8px] bg-[#fff] px-[24px] py-[16px] shadow-md",
10687
10250
  children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
10688
- return /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
10251
+ return /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
10689
10252
  /* @__PURE__ */ jsx46(
10690
10253
  "input",
10691
10254
  {
@@ -10716,14 +10279,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
10716
10279
  };
10717
10280
 
10718
10281
  // src/widgets/advanced/table/table-footer.tsx
10719
- import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
10282
+ import { jsx as jsx47, jsxs as jsxs24 } from "react/jsx-runtime";
10720
10283
  var TableFooter = ({ onAddRow, rows }) => {
10721
10284
  const emptyData = rows?.length <= 0;
10722
10285
  return /* @__PURE__ */ jsx47("tfoot", { children: /* @__PURE__ */ jsx47("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx47(
10723
10286
  "td",
10724
10287
  {
10725
10288
  className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
10726
- children: /* @__PURE__ */ jsxs26(
10289
+ children: /* @__PURE__ */ jsxs24(
10727
10290
  "button",
10728
10291
  {
10729
10292
  type: "button",
@@ -10733,7 +10296,7 @@ var TableFooter = ({ onAddRow, rows }) => {
10733
10296
  },
10734
10297
  className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
10735
10298
  children: [
10736
- /* @__PURE__ */ jsxs26(
10299
+ /* @__PURE__ */ jsxs24(
10737
10300
  "svg",
10738
10301
  {
10739
10302
  style: {
@@ -12573,7 +12136,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
12573
12136
  });
12574
12137
 
12575
12138
  // src/widgets/advanced/table/table-head.tsx
12576
- import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
12139
+ import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs25 } from "react/jsx-runtime";
12577
12140
  var TableHead = (props) => {
12578
12141
  const {
12579
12142
  handleCheckBoxAll,
@@ -12583,7 +12146,7 @@ var TableHead = (props) => {
12583
12146
  onRemoveRow,
12584
12147
  onToggleColumnOptional
12585
12148
  } = props;
12586
- return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs27(
12149
+ return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs25(
12587
12150
  "tr",
12588
12151
  {
12589
12152
  style: {
@@ -12615,9 +12178,9 @@ var TableHead = (props) => {
12615
12178
  "th",
12616
12179
  {
12617
12180
  className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
12618
- children: /* @__PURE__ */ jsxs27("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12181
+ children: /* @__PURE__ */ jsxs25("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
12619
12182
  col.title,
12620
- col?.field?.help && /* @__PURE__ */ jsxs27(Fragment4, { children: [
12183
+ col?.field?.help && /* @__PURE__ */ jsxs25(Fragment4, { children: [
12621
12184
  /* @__PURE__ */ jsx48(
12622
12185
  M,
12623
12186
  {
@@ -12679,9 +12242,9 @@ var TableHead = (props) => {
12679
12242
  };
12680
12243
 
12681
12244
  // src/icons/empty-table-icon.tsx
12682
- import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
12245
+ import { jsx as jsx49, jsxs as jsxs26 } from "react/jsx-runtime";
12683
12246
  var IcEmptyTable = () => {
12684
- return /* @__PURE__ */ jsxs28(
12247
+ return /* @__PURE__ */ jsxs26(
12685
12248
  "svg",
12686
12249
  {
12687
12250
  xmlns: "http://www.w3.org/2000/svg",
@@ -12690,7 +12253,7 @@ var IcEmptyTable = () => {
12690
12253
  viewBox: "0 0 216 140",
12691
12254
  fill: "none",
12692
12255
  children: [
12693
- /* @__PURE__ */ jsxs28("g", { clipPath: "url(#clip0_2454_28950)", children: [
12256
+ /* @__PURE__ */ jsxs26("g", { clipPath: "url(#clip0_2454_28950)", children: [
12694
12257
  /* @__PURE__ */ jsx49("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
12695
12258
  /* @__PURE__ */ jsx49(
12696
12259
  "path",
@@ -13010,12 +12573,12 @@ var IcEmptyTable = () => {
13010
12573
  };
13011
12574
 
13012
12575
  // src/widgets/advanced/table/empty-table.tsx
13013
- import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
12576
+ import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
13014
12577
  var EmptyTable = () => {
13015
12578
  const { t: t3 } = useI18n();
13016
- return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
12579
+ return /* @__PURE__ */ jsxs27("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
13017
12580
  /* @__PURE__ */ jsx50(IcEmptyTable, {}),
13018
- /* @__PURE__ */ jsxs29("div", { children: [
12581
+ /* @__PURE__ */ jsxs27("div", { children: [
13019
12582
  /* @__PURE__ */ jsx50("p", {}),
13020
12583
  /* @__PURE__ */ jsx50("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
13021
12584
  ] })
@@ -14858,7 +14421,7 @@ Button.displayName = "Button";
14858
14421
 
14859
14422
  // src/widgets/advanced/login/shared/text-input.tsx
14860
14423
  import { useState as useState5 } from "react";
14861
- import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
14424
+ import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
14862
14425
  function TextInput(props) {
14863
14426
  const {
14864
14427
  className,
@@ -14872,12 +14435,12 @@ function TextInput(props) {
14872
14435
  required
14873
14436
  } = props;
14874
14437
  const [showPassword, setShowPassword] = useState5(false);
14875
- return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14876
- label && /* @__PURE__ */ jsxs30("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14438
+ return /* @__PURE__ */ jsxs28("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
14439
+ label && /* @__PURE__ */ jsxs28("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
14877
14440
  label,
14878
14441
  required ? /* @__PURE__ */ jsx52("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
14879
14442
  ] }),
14880
- /* @__PURE__ */ jsxs30(
14443
+ /* @__PURE__ */ jsxs28(
14881
14444
  "div",
14882
14445
  {
14883
14446
  className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
@@ -14914,7 +14477,7 @@ function TextInput(props) {
14914
14477
 
14915
14478
  // src/widgets/advanced/login/provider/credential/form-options/index.tsx
14916
14479
  import { useEffect as useEffect7 } from "react";
14917
- import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
14480
+ import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
14918
14481
  var STAY_LOGIN_IN = "stayLoginIn";
14919
14482
  function FormOptions({
14920
14483
  forgotPasswordUrl,
@@ -14940,8 +14503,8 @@ function FormOptions({
14940
14503
  useEffect7(() => {
14941
14504
  localStorage.setItem(STAY_LOGIN_IN, "false");
14942
14505
  }, []);
14943
- return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14944
- /* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
14506
+ return /* @__PURE__ */ jsxs29("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
14507
+ /* @__PURE__ */ jsxs29("label", { className: "flex gap-3", children: [
14945
14508
  /* @__PURE__ */ jsx53(
14946
14509
  "input",
14947
14510
  {
@@ -14969,7 +14532,7 @@ var loginSchema = z2.object({
14969
14532
  });
14970
14533
 
14971
14534
  // src/widgets/advanced/login/provider/credential/index.tsx
14972
- import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
14535
+ import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
14973
14536
  var CredentialLogin = (props) => {
14974
14537
  const {
14975
14538
  shouldRenderDivider,
@@ -14989,15 +14552,15 @@ var CredentialLogin = (props) => {
14989
14552
  mode: "onChange",
14990
14553
  resolver: s3(loginSchema)
14991
14554
  });
14992
- return /* @__PURE__ */ jsxs32(Fragment5, { children: [
14993
- /* @__PURE__ */ jsxs32(
14555
+ return /* @__PURE__ */ jsxs30(Fragment5, { children: [
14556
+ /* @__PURE__ */ jsxs30(
14994
14557
  "form",
14995
14558
  {
14996
14559
  onSubmit: handleSubmit(onSubmit ?? (() => {
14997
14560
  })),
14998
14561
  className: `flex w-full h-fit flex-col gap-10`,
14999
14562
  children: [
15000
- /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
14563
+ /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-6", children: [
15001
14564
  /* @__PURE__ */ jsx54(
15002
14565
  TextInput,
15003
14566
  {
@@ -15046,7 +14609,7 @@ var CredentialLogin = (props) => {
15046
14609
  ]
15047
14610
  }
15048
14611
  ),
15049
- shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
14612
+ shouldRenderDivider && /* @__PURE__ */ jsxs30("div", { className: "flex justify-center relative", children: [
15050
14613
  /* @__PURE__ */ jsx54("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
15051
14614
  /* @__PURE__ */ jsx54("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
15052
14615
  ] })
@@ -15054,10 +14617,10 @@ var CredentialLogin = (props) => {
15054
14617
  };
15055
14618
 
15056
14619
  // src/widgets/advanced/login/provider/google/google-btn/index.tsx
15057
- import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
14620
+ import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
15058
14621
  function GoogleButton(props) {
15059
14622
  const { onLoginGoogle, db } = props;
15060
- return /* @__PURE__ */ jsxs33(
14623
+ return /* @__PURE__ */ jsxs31(
15061
14624
  "button",
15062
14625
  {
15063
14626
  className: "google-wrapper w-full active:scale-[0.97] cursor-pointer hover:bg-gray-100 scale-100 transition-all gap-2 p-4 border border-[#e5e7eb] rounded-[10px] flex items-center justify-center bg-white",
@@ -15079,22 +14642,22 @@ function SocialRedirect(props) {
15079
14642
  }
15080
14643
 
15081
14644
  // src/widgets/advanced/login/provider/google/index.tsx
15082
- import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
14645
+ import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
15083
14646
  var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
15084
- return /* @__PURE__ */ jsxs34(Fragment7, { children: [
14647
+ return /* @__PURE__ */ jsxs32(Fragment7, { children: [
15085
14648
  /* @__PURE__ */ jsx57(GoogleButton, { db, onLoginGoogle }),
15086
14649
  /* @__PURE__ */ jsx57(SocialRedirect, { db, onLoginSocial })
15087
14650
  ] });
15088
14651
  };
15089
14652
 
15090
14653
  // src/widgets/advanced/login/index.tsx
15091
- import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
14654
+ import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
15092
14655
  var LoginProviderMapping = {
15093
14656
  google: GoogleLogin
15094
14657
  };
15095
14658
  var Login = (props) => {
15096
14659
  const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
15097
- return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
14660
+ return /* @__PURE__ */ jsxs33("div", { className: "w-full space-y-8", children: [
15098
14661
  /* @__PURE__ */ jsx58(
15099
14662
  CredentialLogin,
15100
14663
  {
@@ -15119,7 +14682,7 @@ var Login = (props) => {
15119
14682
  };
15120
14683
 
15121
14684
  // src/widgets/advanced/search/popup-filter/index.tsx
15122
- import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
14685
+ import { jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
15123
14686
  var PopupFilter = ({
15124
14687
  handleAddTagSearch,
15125
14688
  removeSearchItems,
@@ -15140,13 +14703,13 @@ var PopupFilter = ({
15140
14703
  zIndex: 33
15141
14704
  },
15142
14705
  className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
15143
- children: /* @__PURE__ */ jsxs36(
14706
+ children: /* @__PURE__ */ jsxs34(
15144
14707
  "div",
15145
14708
  {
15146
14709
  className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
15147
14710
  children: [
15148
- filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
15149
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14711
+ filterBy?.length > 0 && /* @__PURE__ */ jsxs34("div", { className: "filter-by w-full px-3", children: [
14712
+ /* @__PURE__ */ jsxs34("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15150
14713
  /* @__PURE__ */ jsx59(FilterIcon, { className: "filter-by-icon text-primary" }),
15151
14714
  /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
15152
14715
  ] }),
@@ -15158,7 +14721,7 @@ var PopupFilter = ({
15158
14721
  acc.push(/* @__PURE__ */ jsx59("hr", { className: "my-2" }, "separator-" + index4));
15159
14722
  }
15160
14723
  acc.push(
15161
- /* @__PURE__ */ jsxs36(
14724
+ /* @__PURE__ */ jsxs34(
15162
14725
  "button",
15163
14726
  {
15164
14727
  className: `filter-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "filter-by-checked font-semibold " : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
@@ -15194,15 +14757,15 @@ var PopupFilter = ({
15194
14757
  }, [])
15195
14758
  ] }),
15196
14759
  filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx59("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
15197
- groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
15198
- /* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
14760
+ groupBy?.length > 0 && /* @__PURE__ */ jsxs34("div", { className: "group-by w-full px-3", children: [
14761
+ /* @__PURE__ */ jsxs34("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
15199
14762
  /* @__PURE__ */ jsx59(GroupByIcon, { className: "group-by-icon text-primary" }),
15200
14763
  /* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
15201
14764
  ] }),
15202
14765
  groupBy?.map((item, index4) => {
15203
14766
  const isExist = item?.active;
15204
14767
  if (!item.string) return;
15205
- return /* @__PURE__ */ jsxs36(
14768
+ return /* @__PURE__ */ jsxs34(
15206
14769
  "button",
15207
14770
  {
15208
14771
  onClick: () => {
@@ -15246,7 +14809,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
15246
14809
 
15247
14810
  // src/widgets/advanced/search/tag-search/index.tsx
15248
14811
  import { Fragment as Fragment8 } from "react";
15249
- import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
14812
+ import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs35 } from "react/jsx-runtime";
15250
14813
  var TagSearch = ({
15251
14814
  removeSearchItems,
15252
14815
  selectedTags,
@@ -15257,16 +14820,16 @@ var TagSearch = ({
15257
14820
  return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
15258
14821
  if (tag?.values?.length > 0) {
15259
14822
  if (tag?.type !== "group_by") {
15260
- return /* @__PURE__ */ jsxs37(
14823
+ return /* @__PURE__ */ jsxs35(
15261
14824
  "div",
15262
14825
  {
15263
14826
  className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15264
14827
  children: [
15265
14828
  /* @__PURE__ */ jsx60("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ jsx60(FilterIcon, {}) }),
15266
14829
  /* @__PURE__ */ jsx60("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
15267
- return /* @__PURE__ */ jsxs37(Fragment8, { children: [
14830
+ return /* @__PURE__ */ jsxs35(Fragment8, { children: [
15268
14831
  /* @__PURE__ */ jsx60("span", { children: value }),
15269
- idx < tag.values.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
14832
+ idx < tag.values.length - 1 && /* @__PURE__ */ jsxs35("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15270
14833
  " ",
15271
14834
  instance.t("or"),
15272
14835
  " "
@@ -15303,15 +14866,15 @@ var TagSearch = ({
15303
14866
  {
15304
14867
  className: "flex min-h-full overflow-hidden",
15305
14868
  children: /* @__PURE__ */ jsx60("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
15306
- (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs37(
14869
+ (value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs35(
15307
14870
  "div",
15308
14871
  {
15309
14872
  className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
15310
14873
  children: [
15311
14874
  /* @__PURE__ */ jsx60("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx60(GroupByIcon, {}) }),
15312
- value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
14875
+ value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs35(Fragment9, { children: [
15313
14876
  /* @__PURE__ */ jsx60("span", { children: string }),
15314
- idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
14877
+ idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs35("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
15315
14878
  " ",
15316
14879
  "> ",
15317
14880
  " "
@@ -15349,7 +14912,7 @@ var TagSearch = ({
15349
14912
  };
15350
14913
 
15351
14914
  // src/widgets/advanced/search/search-list/index.tsx
15352
- import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
14915
+ import { jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
15353
14916
  var SearchList = ({
15354
14917
  handleAddTagSearch,
15355
14918
  handleMouseEnter,
@@ -15371,7 +14934,7 @@ var SearchList = ({
15371
14934
  if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
15372
14935
  return;
15373
14936
  }
15374
- return /* @__PURE__ */ jsxs38(
14937
+ return /* @__PURE__ */ jsxs36(
15375
14938
  "button",
15376
14939
  {
15377
14940
  onClick: () => {
@@ -15418,7 +14981,7 @@ var SearchList = ({
15418
14981
  };
15419
14982
 
15420
14983
  // src/widgets/advanced/search/search-item/index.tsx
15421
- import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
14984
+ import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs37 } from "react/jsx-runtime";
15422
14985
  var Search = ({
15423
14986
  removeSearchItems,
15424
14987
  selectedTags,
@@ -15535,14 +15098,14 @@ var Search = ({
15535
15098
  setDidInit(true);
15536
15099
  setIsReadyFormatDomain(true);
15537
15100
  }, [aid, filterBy, fieldsList]);
15538
- return /* @__PURE__ */ jsxs39(
15101
+ return /* @__PURE__ */ jsxs37(
15539
15102
  "div",
15540
15103
  {
15541
15104
  ref: popupFilterRef,
15542
15105
  className: `search gap-[8px] p-2 items-center flex !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
15543
15106
  children: [
15544
15107
  /* @__PURE__ */ jsx62("div", { className: "size-5", children: /* @__PURE__ */ jsx62(SearchIcon, {}) }),
15545
- /* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15108
+ /* @__PURE__ */ jsxs37("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
15546
15109
  /* @__PURE__ */ jsx62(
15547
15110
  TagSearch,
15548
15111
  {
@@ -15575,8 +15138,8 @@ var Search = ({
15575
15138
  }
15576
15139
  )
15577
15140
  ] }),
15578
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment10, { children: [
15579
- /* @__PURE__ */ jsxs39(
15141
+ (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs37(Fragment10, { children: [
15142
+ /* @__PURE__ */ jsxs37(
15580
15143
  "div",
15581
15144
  {
15582
15145
  className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
@@ -15630,7 +15193,7 @@ var ActiveBadgeField = (props) => {
15630
15193
  // src/widgets/common/modal-layer.tsx
15631
15194
  import { Fragment as Fragment12 } from "react";
15632
15195
  import { Dialog, DialogPanel, Transition } from "@headlessui/react";
15633
- import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
15196
+ import { jsx as jsx64, jsxs as jsxs38 } from "react/jsx-runtime";
15634
15197
  var ModalLayer = ({
15635
15198
  isOpen,
15636
15199
  onClose,
@@ -15648,10 +15211,10 @@ var ModalLayer = ({
15648
15211
  leaveFrom: "transform scale-100 opacity-100",
15649
15212
  leaveTo: "transform scale-95 opacity-0",
15650
15213
  as: Fragment12,
15651
- children: /* @__PURE__ */ jsx64(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx64(DialogPanel, { children: /* @__PURE__ */ jsxs40("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15214
+ children: /* @__PURE__ */ jsx64(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx64(DialogPanel, { children: /* @__PURE__ */ jsxs38("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
15652
15215
  /* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15653
- /* @__PURE__ */ jsx64("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs40("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
15654
- /* @__PURE__ */ jsxs40(
15216
+ /* @__PURE__ */ jsx64("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs38("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
15217
+ /* @__PURE__ */ jsxs38(
15655
15218
  "div",
15656
15219
  {
15657
15220
  className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
@@ -15677,7 +15240,7 @@ var ModalLayer = ({
15677
15240
  };
15678
15241
 
15679
15242
  // src/widgets/common/modal-confirm.tsx
15680
- import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
15243
+ import { jsx as jsx65, jsxs as jsxs39 } from "react/jsx-runtime";
15681
15244
  var ModalConfirm = ({
15682
15245
  name: name2,
15683
15246
  isShowModal,
@@ -15691,7 +15254,7 @@ var ModalConfirm = ({
15691
15254
  const renderButtonAction = (name3) => {
15692
15255
  switch (name3) {
15693
15256
  case "duplicate":
15694
- return /* @__PURE__ */ jsxs41(
15257
+ return /* @__PURE__ */ jsxs39(
15695
15258
  "button",
15696
15259
  {
15697
15260
  type: "button",
@@ -15705,7 +15268,7 @@ var ModalConfirm = ({
15705
15268
  }
15706
15269
  );
15707
15270
  case "archive":
15708
- return /* @__PURE__ */ jsxs41(
15271
+ return /* @__PURE__ */ jsxs39(
15709
15272
  "button",
15710
15273
  {
15711
15274
  type: "button",
@@ -15719,7 +15282,7 @@ var ModalConfirm = ({
15719
15282
  }
15720
15283
  );
15721
15284
  case "unarchive":
15722
- return /* @__PURE__ */ jsxs41(
15285
+ return /* @__PURE__ */ jsxs39(
15723
15286
  "button",
15724
15287
  {
15725
15288
  type: "button",
@@ -15733,7 +15296,7 @@ var ModalConfirm = ({
15733
15296
  }
15734
15297
  );
15735
15298
  case "delete":
15736
- return /* @__PURE__ */ jsxs41(
15299
+ return /* @__PURE__ */ jsxs39(
15737
15300
  "button",
15738
15301
  {
15739
15302
  type: "button",
@@ -15750,12 +15313,12 @@ var ModalConfirm = ({
15750
15313
  break;
15751
15314
  }
15752
15315
  };
15753
- return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15754
- /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
15316
+ return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs39("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
15317
+ /* @__PURE__ */ jsxs39("div", { className: "flex flex-col gap-[4px] items-center", children: [
15755
15318
  /* @__PURE__ */ jsx65("div", { className: "text-[18px] font-bold", children: title }),
15756
15319
  /* @__PURE__ */ jsx65("p", { className: "text-[16px]", children: content })
15757
15320
  ] }),
15758
- /* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15321
+ /* @__PURE__ */ jsxs39("div", { className: "flex justify-center items-center gap-2 w-full", children: [
15759
15322
  /* @__PURE__ */ jsx65(
15760
15323
  "button",
15761
15324
  {
@@ -15773,7 +15336,7 @@ var ModalConfirm = ({
15773
15336
  // src/widgets/common/modal-detail.tsx
15774
15337
  import { useState as useState7 } from "react";
15775
15338
  import { createPortal as createPortal2 } from "react-dom";
15776
- import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
15339
+ import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs40 } from "react/jsx-runtime";
15777
15340
  var ModalDetail = ({
15778
15341
  idToolTip,
15779
15342
  title,
@@ -15796,11 +15359,11 @@ var ModalDetail = ({
15796
15359
  window.location.href = `/form/menu?model=${model}&id=${idForm}`;
15797
15360
  };
15798
15361
  return createPortal2(
15799
- /* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15362
+ /* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs40("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
15800
15363
  /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
15801
- /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs42("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
15802
- /* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15803
- /* @__PURE__ */ jsxs42(
15364
+ /* @__PURE__ */ jsx66("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs40("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
15365
+ /* @__PURE__ */ jsxs40("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
15366
+ /* @__PURE__ */ jsxs40(
15804
15367
  "div",
15805
15368
  {
15806
15369
  id: "modal-detail",
@@ -15835,7 +15398,7 @@ var ModalDetail = ({
15835
15398
 
15836
15399
  // src/widgets/common/loading-normal.tsx
15837
15400
  import { useEffect as useEffect9, useState as useState8 } from "react";
15838
- import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
15401
+ import { jsx as jsx67, jsxs as jsxs41 } from "react/jsx-runtime";
15839
15402
  var LayerLoading = () => {
15840
15403
  const { t: t3 } = useI18n();
15841
15404
  const [activeIndex, setActiveIndex] = useState8(0);
@@ -15845,7 +15408,7 @@ var LayerLoading = () => {
15845
15408
  }, 200);
15846
15409
  return () => clearInterval(interval);
15847
15410
  }, []);
15848
- return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs43("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15411
+ return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs41("div", { className: "flex justify-center flex-col items-center gap-12", children: [
15849
15412
  /* @__PURE__ */ jsx67("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx67(
15850
15413
  "div",
15851
15414
  {
@@ -15877,207 +15440,6 @@ var LoadingSmall = () => {
15877
15440
  )) }) }) }) });
15878
15441
  };
15879
15442
 
15880
- // src/widgets/common/render-files.tsx
15881
- import { useEffect as useEffect11, useRef as useRef6, useState as useState10 } from "react";
15882
- import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
15883
- var FileItem = (props) => {
15884
- const {
15885
- filename,
15886
- index: index4,
15887
- handleRemoveFile,
15888
- handleFileDownload,
15889
- src,
15890
- mimetype,
15891
- size: size4,
15892
- id,
15893
- envFile,
15894
- accessToken
15895
- } = props;
15896
- const [name2, ext] = filename.split(".");
15897
- const shortName = name2.length > 12 ? name2.slice(0, 6) : name2;
15898
- const [isOpen, setIsOpen] = useState10(false);
15899
- const tooltipRef = useRef6(null);
15900
- useEffect11(() => {
15901
- const handleClickOutside = (event) => {
15902
- if (tooltipRef.current && !tooltipRef.current.contains(event.target)) {
15903
- setIsOpen(false);
15904
- }
15905
- };
15906
- if (isOpen) {
15907
- document.addEventListener("mousedown", handleClickOutside);
15908
- } else {
15909
- document.removeEventListener("mousedown", handleClickOutside);
15910
- }
15911
- return () => {
15912
- document.removeEventListener("mousedown", handleClickOutside);
15913
- };
15914
- }, [isOpen]);
15915
- const fileTypeIcon = {
15916
- "application/pdf": /* @__PURE__ */ jsx69(PdfIcon, {}),
15917
- "application/zip": /* @__PURE__ */ jsx69(ZipIcon, {}),
15918
- "application/x-zip-compressed": /* @__PURE__ */ jsx69(ZipIcon, {}),
15919
- "application/vnd.ms-excel": /* @__PURE__ */ jsx69(ExcelIcon, {}),
15920
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {}),
15921
- "image/png": /* @__PURE__ */ jsx69(ImageIcon, {}),
15922
- "video/mp4": /* @__PURE__ */ jsx69(VideoIcon, {})
15923
- };
15924
- const renderFile = () => {
15925
- return /* @__PURE__ */ jsxs44(
15926
- "div",
15927
- {
15928
- onClick: (e3) => {
15929
- if (accessToken) {
15930
- e3?.stopPropagation();
15931
- downloadFile(
15932
- `${envFile}api/v2/web/content/${id}?download=true`,
15933
- filename,
15934
- accessToken
15935
- );
15936
- }
15937
- },
15938
- style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
15939
- className: "flex items-center p-2 gap-2 overflow-hidden rounded-lg",
15940
- children: [
15941
- fileTypeIcon[mimetype],
15942
- /* @__PURE__ */ jsxs44("div", { ref: tooltipRef, className: "relative w-fit", children: [
15943
- /* @__PURE__ */ jsxs44(
15944
- "p",
15945
- {
15946
- className: "text-[#060606] font-medium text-[14px] cursor-pointer",
15947
- onClick: () => setIsOpen((prev2) => !prev2),
15948
- "data-tooltip-id": `field-help-${id}`,
15949
- "data-tooltip-content": filename,
15950
- children: [
15951
- shortName + "...",
15952
- ".",
15953
- ext
15954
- ]
15955
- }
15956
- ),
15957
- /* @__PURE__ */ jsx69(
15958
- M,
15959
- {
15960
- id: `field-help-${id}`,
15961
- isOpen,
15962
- place: "top",
15963
- positionStrategy: "fixed",
15964
- style: {
15965
- padding: "6px 12px",
15966
- fontSize: "12px",
15967
- borderRadius: "4px",
15968
- maxWidth: "200%",
15969
- whiteSpace: "wrap",
15970
- fontWeight: 400,
15971
- textTransform: "none",
15972
- zIndex: 999
15973
- }
15974
- }
15975
- ),
15976
- size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px] font-semibold text-[#666666]", children: formatFileSize(size4) })
15977
- ] })
15978
- ]
15979
- }
15980
- );
15981
- };
15982
- return /* @__PURE__ */ jsxs44(
15983
- "div",
15984
- {
15985
- className: "flex relative items-center justify-between group rounded-md w-fit",
15986
- children: [
15987
- renderFile(),
15988
- handleRemoveFile && /* @__PURE__ */ jsx69(
15989
- "div",
15990
- {
15991
- style: {
15992
- position: "absolute",
15993
- top: 0,
15994
- right: 0,
15995
- backgroundColor: "rgba(0,0,0,0.2)"
15996
- },
15997
- onClick: () => handleRemoveFile(index4),
15998
- className: "cursor-pointer p-2 hidden group-hover:block",
15999
- children: /* @__PURE__ */ jsx69(DeleteIcon, {})
16000
- }
16001
- ),
16002
- !handleRemoveFile && /* @__PURE__ */ jsx69(
16003
- "span",
16004
- {
16005
- style: {
16006
- position: "absolute",
16007
- top: 0,
16008
- right: 0,
16009
- backgroundColor: "rgba(0,0,0,0.2)",
16010
- zIndex: 10
16011
- },
16012
- onClick: (e3) => handleFileDownload(e3, src, filename),
16013
- className: "hidden group-hover:block cursor-pointer p-2 text-white ",
16014
- children: /* @__PURE__ */ jsx69(DownloadIcon, {})
16015
- }
16016
- )
16017
- ]
16018
- },
16019
- index4
16020
- );
16021
- };
16022
- var downloadFile = async (url, filename, accessToken) => {
16023
- try {
16024
- const response = accessToken ? await fetch(url, {
16025
- method: "GET",
16026
- headers: {
16027
- Authorization: `Bearer ${accessToken}`
16028
- }
16029
- }) : await fetch(url);
16030
- if (response.ok) {
16031
- const blob = await response.blob();
16032
- const urlBlob = window.URL.createObjectURL(blob);
16033
- const link = document.createElement("a");
16034
- link.href = urlBlob;
16035
- link.download = filename || "downloaded-file";
16036
- document.body.appendChild(link);
16037
- link.click();
16038
- document.body.removeChild(link);
16039
- window.URL.revokeObjectURL(urlBlob);
16040
- } else {
16041
- console.error("File download failed:", response.statusText);
16042
- }
16043
- } catch (error2) {
16044
- console.error("File download failed:", error2);
16045
- }
16046
- };
16047
- var RenderFiles = ({
16048
- selectedFiles,
16049
- setSelectedFiles,
16050
- envFile,
16051
- accessToken
16052
- }) => {
16053
- const handleRemoveFile = (index4) => {
16054
- if (setSelectedFiles) {
16055
- const files = selectedFiles.filter((_2, i3) => i3 !== index4);
16056
- setSelectedFiles(files);
16057
- }
16058
- };
16059
- const handleFileDownload = (e3, url, name2) => {
16060
- e3.stopPropagation();
16061
- downloadFile(url, name2);
16062
- };
16063
- return /* @__PURE__ */ jsx69("div", { className: "flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
16064
- return /* @__PURE__ */ jsx69("div", { className: "relative group/file", children: /* @__PURE__ */ jsx69(
16065
- FileItem,
16066
- {
16067
- ...file,
16068
- src: file?.datas,
16069
- filename: file?.display_name ?? file?.name ?? file?.filename,
16070
- id: file?.id,
16071
- index: index4,
16072
- handleRemoveFile: setSelectedFiles && handleRemoveFile,
16073
- handleFileDownload,
16074
- envFile,
16075
- accessToken
16076
- }
16077
- ) }, file?.id ?? index4);
16078
- }) });
16079
- };
16080
-
16081
15443
  // node_modules/react-toastify/dist/index.mjs
16082
15444
  import { isValidElement as $t } from "react";
16083
15445
  import ut, { useEffect as Rt, useLayoutEffect as Bt, useRef as zt } from "react";
@@ -16264,7 +15626,7 @@ var po = $2(K("zoom"));
16264
15626
  var uo = $2(K("flip"));
16265
15627
 
16266
15628
  // src/widgets/common/select-files.tsx
16267
- import { Fragment as Fragment14, jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
15629
+ import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs42 } from "react/jsx-runtime";
16268
15630
  var ButtonSelectFiles = ({
16269
15631
  fileInputRef,
16270
15632
  selectedFiles,
@@ -16368,8 +15730,8 @@ var ButtonSelectFiles = ({
16368
15730
  await handleUpload(formData, serivce, xNode);
16369
15731
  }
16370
15732
  };
16371
- return /* @__PURE__ */ jsxs45(Fragment14, { children: [
16372
- isPending ? /* @__PURE__ */ jsx70(Fragment14, { children: /* @__PURE__ */ jsx70("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs45(
15733
+ return /* @__PURE__ */ jsxs42(Fragment14, { children: [
15734
+ isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs42(
16373
15735
  "button",
16374
15736
  {
16375
15737
  type: "button",
@@ -16377,12 +15739,12 @@ var ButtonSelectFiles = ({
16377
15739
  className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
16378
15740
  onClick: () => fileInputRef.current.click(),
16379
15741
  children: [
16380
- /* @__PURE__ */ jsx70(AttachIcon, {}),
16381
- isText && /* @__PURE__ */ jsx70("span", { children: t3("upload_file_placeholder") })
15742
+ /* @__PURE__ */ jsx69(AttachIcon, {}),
15743
+ isText && /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
16382
15744
  ]
16383
15745
  }
16384
15746
  ),
16385
- /* @__PURE__ */ jsx70(
15747
+ /* @__PURE__ */ jsx69(
16386
15748
  "input",
16387
15749
  {
16388
15750
  type: "file",
@@ -16397,11 +15759,11 @@ var ButtonSelectFiles = ({
16397
15759
  };
16398
15760
 
16399
15761
  // src/widgets/common/video-player.tsx
16400
- import { useRef as useRef7, useState as useState11 } from "react";
16401
- import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
15762
+ import { useRef as useRef6, useState as useState10 } from "react";
15763
+ import { jsx as jsx70, jsxs as jsxs43 } from "react/jsx-runtime";
16402
15764
  var VideoPlayer = ({ src }) => {
16403
- const [isPlaying, setIsPlaying] = useState11(false);
16404
- const videoRef = useRef7(null);
15765
+ const [isPlaying, setIsPlaying] = useState10(false);
15766
+ const videoRef = useRef6(null);
16405
15767
  const handlePlayPause = () => {
16406
15768
  if (videoRef.current) {
16407
15769
  if (isPlaying) {
@@ -16425,8 +15787,8 @@ var VideoPlayer = ({ src }) => {
16425
15787
  }
16426
15788
  }
16427
15789
  };
16428
- return /* @__PURE__ */ jsxs46("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
16429
- /* @__PURE__ */ jsx71(
15790
+ return /* @__PURE__ */ jsxs43("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
15791
+ /* @__PURE__ */ jsx70(
16430
15792
  "video",
16431
15793
  {
16432
15794
  ref: videoRef,
@@ -16438,13 +15800,13 @@ var VideoPlayer = ({ src }) => {
16438
15800
  children: "Your browser does not support the video tag."
16439
15801
  }
16440
15802
  ),
16441
- /* @__PURE__ */ jsx71("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
16442
- /* @__PURE__ */ jsx71("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx71("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx71(PlayIcon, {}) }) })
15803
+ /* @__PURE__ */ jsx70("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
15804
+ /* @__PURE__ */ jsx70("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx70("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx70(PlayIcon, {}) }) })
16443
15805
  ] });
16444
15806
  };
16445
15807
 
16446
15808
  // src/widgets/basic/avatar-field/avatar.tsx
16447
- import { Fragment as Fragment15, jsx as jsx72, jsxs as jsxs47 } from "react/jsx-runtime";
15809
+ import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs44 } from "react/jsx-runtime";
16448
15810
  var AvatarField = (props) => {
16449
15811
  const {
16450
15812
  isForm = false,
@@ -16468,8 +15830,8 @@ var AvatarField = (props) => {
16468
15830
  color: textColor,
16469
15831
  fontSize: `${size4 / 2.5}px`
16470
15832
  };
16471
- return /* @__PURE__ */ jsxs47(Fragment15, { children: [
16472
- isForm && allowShowDetail && /* @__PURE__ */ jsx72(
15833
+ return /* @__PURE__ */ jsxs44(Fragment15, { children: [
15834
+ isForm && allowShowDetail && /* @__PURE__ */ jsx71(
16473
15835
  ModalDetail,
16474
15836
  {
16475
15837
  idToolTip: `avatar-widget-id-${id}`,
@@ -16480,7 +15842,7 @@ var AvatarField = (props) => {
16480
15842
  place: "top-start"
16481
15843
  }
16482
15844
  ),
16483
- allowShowDetail && /* @__PURE__ */ jsx72(
15845
+ allowShowDetail && /* @__PURE__ */ jsx71(
16484
15846
  M,
16485
15847
  {
16486
15848
  id: `avatar-widget-id-${id}`,
@@ -16489,7 +15851,7 @@ var AvatarField = (props) => {
16489
15851
  className: "z-20"
16490
15852
  }
16491
15853
  ),
16492
- avatarSrc ? /* @__PURE__ */ jsx72(
15854
+ avatarSrc ? /* @__PURE__ */ jsx71(
16493
15855
  "img",
16494
15856
  {
16495
15857
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16497,7 +15859,7 @@ var AvatarField = (props) => {
16497
15859
  className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
16498
15860
  alt: "Avatar"
16499
15861
  }
16500
- ) : /* @__PURE__ */ jsx72("div", { children: /* @__PURE__ */ jsx72(
15862
+ ) : /* @__PURE__ */ jsx71("div", { children: /* @__PURE__ */ jsx71(
16501
15863
  "div",
16502
15864
  {
16503
15865
  "data-tooltip-id": `avatar-widget-id-${id}`,
@@ -16510,7 +15872,7 @@ var AvatarField = (props) => {
16510
15872
  };
16511
15873
 
16512
15874
  // src/widgets/basic/binary-field/binary.tsx
16513
- import { jsx as jsx73, jsxs as jsxs48 } from "react/jsx-runtime";
15875
+ import { jsx as jsx72, jsxs as jsxs45 } from "react/jsx-runtime";
16514
15876
  var BinaryField = (props) => {
16515
15877
  const {
16516
15878
  name: name2,
@@ -16533,7 +15895,7 @@ var BinaryField = (props) => {
16533
15895
  image
16534
15896
  } = props;
16535
15897
  const { t: t3 } = useI18n();
16536
- return /* @__PURE__ */ jsx73(
15898
+ return /* @__PURE__ */ jsx72(
16537
15899
  Controller,
16538
15900
  {
16539
15901
  name: name2 ?? "",
@@ -16543,13 +15905,13 @@ var BinaryField = (props) => {
16543
15905
  },
16544
15906
  render: ({ field }) => {
16545
15907
  const renderImage = initialImage || selectedImage;
16546
- return /* @__PURE__ */ jsx73(
15908
+ return /* @__PURE__ */ jsx72(
16547
15909
  "div",
16548
15910
  {
16549
15911
  ref: binaryRef,
16550
15912
  className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
16551
- children: renderImage ? /* @__PURE__ */ jsxs48("div", { className: "relative group", children: [
16552
- renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx73(
15913
+ children: renderImage ? /* @__PURE__ */ jsxs45("div", { className: "relative group", children: [
15914
+ renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx72(
16553
15915
  "img",
16554
15916
  {
16555
15917
  style: {
@@ -16560,7 +15922,7 @@ var BinaryField = (props) => {
16560
15922
  alt: "Selected",
16561
15923
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16562
15924
  }
16563
- ) : renderImage ? /* @__PURE__ */ jsx73(
15925
+ ) : renderImage ? /* @__PURE__ */ jsx72(
16564
15926
  "img",
16565
15927
  {
16566
15928
  style: {
@@ -16571,17 +15933,17 @@ var BinaryField = (props) => {
16571
15933
  alt: "Selected",
16572
15934
  className: "h-32 w-32 max-w-fit rounded-lg object-contain"
16573
15935
  }
16574
- ) : /* @__PURE__ */ jsx73(PlaceHolderIcon, {}),
16575
- !isInsideTable && !readonly && /* @__PURE__ */ jsx73(
15936
+ ) : /* @__PURE__ */ jsx72(PlaceHolderIcon, {}),
15937
+ !isInsideTable && !readonly && /* @__PURE__ */ jsx72(
16576
15938
  "button",
16577
15939
  {
16578
15940
  type: "button",
16579
15941
  onClick: () => handleRemoveImage(field.onChange),
16580
15942
  className: "hidden group-hover:block absolute right-0 bottom-0 mr-1 mb-1 rounded-full bg-white p-1 transition-colors duration-300 hover:bg-red-600",
16581
- children: /* @__PURE__ */ jsx73(DeleteIcon, {})
15943
+ children: /* @__PURE__ */ jsx72(DeleteIcon, {})
16582
15944
  }
16583
15945
  )
16584
- ] }) : /* @__PURE__ */ jsxs48(
15946
+ ] }) : /* @__PURE__ */ jsxs45(
16585
15947
  "label",
16586
15948
  {
16587
15949
  htmlFor: inputId,
@@ -16591,7 +15953,7 @@ var BinaryField = (props) => {
16591
15953
  },
16592
15954
  className: `relative p-2 flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border border-gray-300 hover:border-gray-500 bg-white transition-colors duration-300 ${readonly && "pointer-events-none"}`,
16593
15955
  children: [
16594
- /* @__PURE__ */ jsx73(
15956
+ /* @__PURE__ */ jsx72(
16595
15957
  "input",
16596
15958
  {
16597
15959
  id: inputId,
@@ -16603,8 +15965,8 @@ var BinaryField = (props) => {
16603
15965
  className: "hidden z-10 relative"
16604
15966
  }
16605
15967
  ),
16606
- /* @__PURE__ */ jsx73("img", { src: image, alt: "", className: "z-0 relative" }),
16607
- /* @__PURE__ */ jsx73(
15968
+ /* @__PURE__ */ jsx72("img", { src: image, alt: "", className: "z-0 relative" }),
15969
+ /* @__PURE__ */ jsx72(
16608
15970
  "div",
16609
15971
  {
16610
15972
  className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
@@ -16613,7 +15975,7 @@ var BinaryField = (props) => {
16613
15975
  left: "-8px",
16614
15976
  boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
16615
15977
  },
16616
- children: /* @__PURE__ */ jsx73(
15978
+ children: /* @__PURE__ */ jsx72(
16617
15979
  "svg",
16618
15980
  {
16619
15981
  xmlns: "http://www.w3.org/2000/svg",
@@ -16621,7 +15983,7 @@ var BinaryField = (props) => {
16621
15983
  height: "14",
16622
15984
  viewBox: "0 0 14 14",
16623
15985
  fill: "none",
16624
- children: /* @__PURE__ */ jsx73(
15986
+ children: /* @__PURE__ */ jsx72(
16625
15987
  "path",
16626
15988
  {
16627
15989
  "fill-rule": "evenodd",
@@ -16645,7 +16007,7 @@ var BinaryField = (props) => {
16645
16007
  };
16646
16008
 
16647
16009
  // src/widgets/basic/button-badge-field/button-badge.tsx
16648
- import { jsx as jsx74 } from "react/jsx-runtime";
16010
+ import { jsx as jsx73 } from "react/jsx-runtime";
16649
16011
  var typeStyles = {
16650
16012
  primary: {
16651
16013
  backgroundColor: "#3b82f6",
@@ -16720,11 +16082,11 @@ var ButtonBadgeField = (props) => {
16720
16082
  return item && type === "selection" && Array.isArray(item) ? item[1] : item;
16721
16083
  };
16722
16084
  const label = getLabel(defaultValue ?? value);
16723
- return label ? /* @__PURE__ */ jsx74("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16085
+ return label ? /* @__PURE__ */ jsx73("div", { style: { ...baseStyle, ...getType() }, children: label }) : null;
16724
16086
  };
16725
16087
 
16726
16088
  // src/widgets/basic/button-field/button.tsx
16727
- import { Fragment as Fragment16, jsx as jsx75, jsxs as jsxs49 } from "react/jsx-runtime";
16089
+ import { Fragment as Fragment16, jsx as jsx74, jsxs as jsxs46 } from "react/jsx-runtime";
16728
16090
  var ButtonField = (props) => {
16729
16091
  const {
16730
16092
  func,
@@ -16735,7 +16097,7 @@ var ButtonField = (props) => {
16735
16097
  type = "submit"
16736
16098
  } = props;
16737
16099
  const { t: t3 } = useI18n();
16738
- return /* @__PURE__ */ jsx75(Fragment16, { children: !loading ? /* @__PURE__ */ jsx75(
16100
+ return /* @__PURE__ */ jsx74(Fragment16, { children: !loading ? /* @__PURE__ */ jsx74(
16739
16101
  "button",
16740
16102
  {
16741
16103
  type,
@@ -16744,7 +16106,7 @@ var ButtonField = (props) => {
16744
16106
  onClick: func,
16745
16107
  children: t3(content)
16746
16108
  }
16747
- ) : /* @__PURE__ */ jsxs49(
16109
+ ) : /* @__PURE__ */ jsxs46(
16748
16110
  "button",
16749
16111
  {
16750
16112
  type,
@@ -16753,15 +16115,15 @@ var ButtonField = (props) => {
16753
16115
  children: [
16754
16116
  t3("loading"),
16755
16117
  " ",
16756
- /* @__PURE__ */ jsx75(LoadingIcon, {})
16118
+ /* @__PURE__ */ jsx74(LoadingIcon, {})
16757
16119
  ]
16758
16120
  }
16759
16121
  ) });
16760
16122
  };
16761
16123
 
16762
16124
  // src/widgets/basic/char-field/char.tsx
16763
- import { useEffect as useEffect12, useMemo as useMemo4 } from "react";
16764
- import { Fragment as Fragment17, jsx as jsx76, jsxs as jsxs50 } from "react/jsx-runtime";
16125
+ import { useEffect as useEffect11, useMemo as useMemo4 } from "react";
16126
+ import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs47 } from "react/jsx-runtime";
16765
16127
  var WIDGET_AUTO_COMPUTE_DEPEND = "auto_compute_depend_field";
16766
16128
  var CharField = (props) => {
16767
16129
  const {
@@ -16789,9 +16151,9 @@ var CharField = (props) => {
16789
16151
  } = props;
16790
16152
  if (!isForm && !isEditTable) {
16791
16153
  const propValue = value || defaultValue;
16792
- return /* @__PURE__ */ jsx76("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16154
+ return /* @__PURE__ */ jsx75("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16793
16155
  }
16794
- return /* @__PURE__ */ jsx76(
16156
+ return /* @__PURE__ */ jsx75(
16795
16157
  Controller,
16796
16158
  {
16797
16159
  name: name2 ?? "",
@@ -16819,12 +16181,12 @@ var CharField = (props) => {
16819
16181
  fieldState: { error: error2, isDirty }
16820
16182
  }) => {
16821
16183
  const { setError, clearErrors } = methods;
16822
- useEffect12(() => {
16184
+ useEffect11(() => {
16823
16185
  if (value2) {
16824
16186
  clearErrors(name2);
16825
16187
  }
16826
16188
  }, [value2, clearErrors, name2]);
16827
- useEffect12(() => {
16189
+ useEffect11(() => {
16828
16190
  if (widget !== WIDGET_AUTO_COMPUTE_DEPEND) return;
16829
16191
  const depValue = formValues?.[options2?.depend_field]?.[options2?.field_name];
16830
16192
  const currentValue = methods?.getValues(name2);
@@ -16845,8 +16207,8 @@ var CharField = (props) => {
16845
16207
  }
16846
16208
  return "";
16847
16209
  }, [widget, formValues]);
16848
- return /* @__PURE__ */ jsxs50(Fragment17, { children: [
16849
- /* @__PURE__ */ jsx76(
16210
+ return /* @__PURE__ */ jsxs47(Fragment17, { children: [
16211
+ /* @__PURE__ */ jsx75(
16850
16212
  "input",
16851
16213
  {
16852
16214
  value: displayValue ?? "",
@@ -16907,7 +16269,7 @@ var CharField = (props) => {
16907
16269
  `
16908
16270
  }
16909
16271
  ),
16910
- isEditTable ? /* @__PURE__ */ jsx76(Fragment17, {}) : /* @__PURE__ */ jsx76(Fragment17, { children: error2 && /* @__PURE__ */ jsx76("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16272
+ isEditTable ? /* @__PURE__ */ jsx75(Fragment17, {}) : /* @__PURE__ */ jsx75(Fragment17, { children: error2 && /* @__PURE__ */ jsx75("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
16911
16273
  ] });
16912
16274
  }
16913
16275
  }
@@ -16915,7 +16277,7 @@ var CharField = (props) => {
16915
16277
  };
16916
16278
 
16917
16279
  // src/widgets/basic/checkbox-field/checkbox.tsx
16918
- import { jsx as jsx77 } from "react/jsx-runtime";
16280
+ import { jsx as jsx76 } from "react/jsx-runtime";
16919
16281
  var CheckboxField = (props) => {
16920
16282
  const {
16921
16283
  name: name2,
@@ -16930,9 +16292,9 @@ var CheckboxField = (props) => {
16930
16292
  } = props;
16931
16293
  if (!isForm) {
16932
16294
  if (name2 === "is_active" || name2 === "active") {
16933
- return /* @__PURE__ */ jsx77(ActiveBadgeField, { type: value });
16295
+ return /* @__PURE__ */ jsx76(ActiveBadgeField, { type: value });
16934
16296
  } else {
16935
- return /* @__PURE__ */ jsx77(
16297
+ return /* @__PURE__ */ jsx76(
16936
16298
  "input",
16937
16299
  {
16938
16300
  type: "checkbox",
@@ -16943,12 +16305,12 @@ var CheckboxField = (props) => {
16943
16305
  );
16944
16306
  }
16945
16307
  }
16946
- return /* @__PURE__ */ jsx77(
16308
+ return /* @__PURE__ */ jsx76(
16947
16309
  Controller,
16948
16310
  {
16949
16311
  name: name2 ?? "",
16950
16312
  control: methods?.control,
16951
- render: ({ field }) => /* @__PURE__ */ jsx77(
16313
+ render: ({ field }) => /* @__PURE__ */ jsx76(
16952
16314
  "div",
16953
16315
  {
16954
16316
  className: "flex items-center gap-2",
@@ -16961,7 +16323,7 @@ var CheckboxField = (props) => {
16961
16323
  onChange2(name2 ?? "", checked);
16962
16324
  }
16963
16325
  },
16964
- children: /* @__PURE__ */ jsx77(
16326
+ children: /* @__PURE__ */ jsx76(
16965
16327
  "input",
16966
16328
  {
16967
16329
  ...field,
@@ -16988,24 +16350,24 @@ var CheckboxField = (props) => {
16988
16350
  };
16989
16351
 
16990
16352
  // src/widgets/basic/color-field/color-wrapper.tsx
16991
- import { useEffect as useEffect13, useRef as useRef8, useState as useState12 } from "react";
16992
- import { Fragment as Fragment18, jsx as jsx78, jsxs as jsxs51 } from "react/jsx-runtime";
16353
+ import { useEffect as useEffect12, useRef as useRef7, useState as useState11 } from "react";
16354
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs48 } from "react/jsx-runtime";
16993
16355
  var ColorWrapper = (props) => {
16994
16356
  const {
16995
16357
  colors: colors2,
16996
16358
  defaultColor,
16997
16359
  savePickColor
16998
16360
  } = props;
16999
- const [selectedColor, setSelectedColor] = useState12(colors2[defaultColor]);
17000
- const [showFullColors, setIsShowFullColor] = useState12(false);
17001
- const pickColorsRef = useRef8(null);
17002
- useEffect13(() => {
16361
+ const [selectedColor, setSelectedColor] = useState11(colors2[defaultColor]);
16362
+ const [showFullColors, setIsShowFullColor] = useState11(false);
16363
+ const pickColorsRef = useRef7(null);
16364
+ useEffect12(() => {
17003
16365
  setSelectedColor(colors2[defaultColor]);
17004
16366
  }, [defaultColor]);
17005
16367
  const handleShowFullColors = () => {
17006
16368
  setIsShowFullColor(!showFullColors);
17007
16369
  };
17008
- useEffect13(() => {
16370
+ useEffect12(() => {
17009
16371
  const handleClickOutside = (event) => {
17010
16372
  if (pickColorsRef.current && !pickColorsRef.current.contains(event.target)) {
17011
16373
  setIsShowFullColor(false);
@@ -17016,8 +16378,8 @@ var ColorWrapper = (props) => {
17016
16378
  document.removeEventListener("mousedown", handleClickOutside);
17017
16379
  };
17018
16380
  }, []);
17019
- return /* @__PURE__ */ jsx78("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx78("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs51("div", { children: [
17020
- /* @__PURE__ */ jsx78(
16381
+ return /* @__PURE__ */ jsx77("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx77("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs48("div", { children: [
16382
+ /* @__PURE__ */ jsx77(
17021
16383
  "button",
17022
16384
  {
17023
16385
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -17031,7 +16393,7 @@ var ColorWrapper = (props) => {
17031
16393
  }
17032
16394
  }
17033
16395
  ),
17034
- /* @__PURE__ */ jsx78(
16396
+ /* @__PURE__ */ jsx77(
17035
16397
  M,
17036
16398
  {
17037
16399
  className: "",
@@ -17040,8 +16402,8 @@ var ColorWrapper = (props) => {
17040
16402
  content: i18n_default.t(color?.name)
17041
16403
  }
17042
16404
  )
17043
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs51(Fragment18, { children: [
17044
- /* @__PURE__ */ jsx78(
16405
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs48(Fragment18, { children: [
16406
+ /* @__PURE__ */ jsx77(
17045
16407
  "button",
17046
16408
  {
17047
16409
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -17054,7 +16416,7 @@ var ColorWrapper = (props) => {
17054
16416
  style: { backgroundColor: selectedColor?.color }
17055
16417
  }
17056
16418
  ),
17057
- /* @__PURE__ */ jsx78(
16419
+ /* @__PURE__ */ jsx77(
17058
16420
  M,
17059
16421
  {
17060
16422
  place: "top",
@@ -17066,13 +16428,13 @@ var ColorWrapper = (props) => {
17066
16428
  };
17067
16429
 
17068
16430
  // src/widgets/basic/color-field/color.tsx
17069
- import { jsx as jsx79 } from "react/jsx-runtime";
16431
+ import { jsx as jsx78 } from "react/jsx-runtime";
17070
16432
  var ColorField = (props) => {
17071
16433
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
17072
16434
  if (!isForm) {
17073
- return /* @__PURE__ */ jsx79(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
16435
+ return /* @__PURE__ */ jsx78(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
17074
16436
  }
17075
- return /* @__PURE__ */ jsx79(
16437
+ return /* @__PURE__ */ jsx78(
17076
16438
  Controller,
17077
16439
  {
17078
16440
  name: name2 ?? "",
@@ -17082,7 +16444,7 @@ var ColorField = (props) => {
17082
16444
  field.onChange(color?.id);
17083
16445
  onChange2 && onChange2(name2 ?? "", color?.id);
17084
16446
  };
17085
- return /* @__PURE__ */ jsx79(
16447
+ return /* @__PURE__ */ jsx78(
17086
16448
  ColorWrapper,
17087
16449
  {
17088
16450
  savePickColor: handlePickColorChange,
@@ -17096,8 +16458,8 @@ var ColorField = (props) => {
17096
16458
  };
17097
16459
 
17098
16460
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
17099
- import { useEffect as useEffect14 } from "react";
17100
- import { jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
16461
+ import { useEffect as useEffect13 } from "react";
16462
+ import { jsx as jsx79, jsxs as jsxs49 } from "react/jsx-runtime";
17101
16463
  var CopyLinkButtonField = (props) => {
17102
16464
  const {
17103
16465
  isForm,
@@ -17116,9 +16478,9 @@ var CopyLinkButtonField = (props) => {
17116
16478
  } = props;
17117
16479
  const { t: t3 } = useI18n();
17118
16480
  if (!isForm) {
17119
- return /* @__PURE__ */ jsx80("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16481
+ return /* @__PURE__ */ jsx79("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
17120
16482
  }
17121
- return /* @__PURE__ */ jsx80(
16483
+ return /* @__PURE__ */ jsx79(
17122
16484
  Controller,
17123
16485
  {
17124
16486
  name: name2 ?? "",
@@ -17131,13 +16493,13 @@ var CopyLinkButtonField = (props) => {
17131
16493
  fieldState: { error: error2 }
17132
16494
  }) => {
17133
16495
  const { setError, clearErrors } = methods;
17134
- useEffect14(() => {
16496
+ useEffect13(() => {
17135
16497
  if (value) {
17136
16498
  clearErrors(name2);
17137
16499
  }
17138
16500
  }, [value]);
17139
- return /* @__PURE__ */ jsxs52("div", { className: "relative", children: [
17140
- /* @__PURE__ */ jsxs52(
16501
+ return /* @__PURE__ */ jsxs49("div", { className: "relative", children: [
16502
+ /* @__PURE__ */ jsxs49(
17141
16503
  "div",
17142
16504
  {
17143
16505
  "aria-disabled": readonly,
@@ -17146,7 +16508,7 @@ var CopyLinkButtonField = (props) => {
17146
16508
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
17147
16509
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
17148
16510
  children: [
17149
- /* @__PURE__ */ jsx80(
16511
+ /* @__PURE__ */ jsx79(
17150
16512
  "input",
17151
16513
  {
17152
16514
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -17187,19 +16549,19 @@ var CopyLinkButtonField = (props) => {
17187
16549
  `
17188
16550
  }
17189
16551
  ),
17190
- readonly && value && /* @__PURE__ */ jsx80(
16552
+ readonly && value && /* @__PURE__ */ jsx79(
17191
16553
  "button",
17192
16554
  {
17193
16555
  className: "cursor-pointer",
17194
16556
  type: "button",
17195
16557
  onClick: () => handleCopyToClipboard(propValue),
17196
- children: isCopied ? /* @__PURE__ */ jsx80(CheckIcon, {}) : /* @__PURE__ */ jsx80(CopyIcon, {})
16558
+ children: isCopied ? /* @__PURE__ */ jsx79(CheckIcon, {}) : /* @__PURE__ */ jsx79(CopyIcon, {})
17197
16559
  }
17198
16560
  )
17199
16561
  ]
17200
16562
  }
17201
16563
  ),
17202
- error2 && /* @__PURE__ */ jsx80("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
16564
+ error2 && /* @__PURE__ */ jsx79("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17203
16565
  ] });
17204
16566
  }
17205
16567
  }
@@ -17207,10 +16569,10 @@ var CopyLinkButtonField = (props) => {
17207
16569
  };
17208
16570
 
17209
16571
  // src/widgets/basic/date-field/date.tsx
17210
- import { forwardRef as forwardRef6, useEffect as useEffect18 } from "react";
16572
+ import { forwardRef as forwardRef6, useEffect as useEffect17 } from "react";
17211
16573
 
17212
16574
  // node_modules/react-datepicker/dist/index.es.js
17213
- import React9, { useRef as useRef12, useCallback as useCallback5, useEffect as useEffect16, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
16575
+ import React9, { useRef as useRef11, useCallback as useCallback5, useEffect as useEffect15, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
17214
16576
 
17215
16577
  // node_modules/date-fns/constants.js
17216
16578
  var daysInYear = 365.2425;
@@ -21140,7 +20502,7 @@ function useEffectEvent(callback) {
21140
20502
  }
21141
20503
 
21142
20504
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
21143
- import { jsx as jsx81, jsxs as jsxs53, Fragment as Fragment19 } from "react/jsx-runtime";
20505
+ import { jsx as jsx80, jsxs as jsxs50, Fragment as Fragment19 } from "react/jsx-runtime";
21144
20506
  import * as ReactDOM2 from "react-dom";
21145
20507
 
21146
20508
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
@@ -21538,7 +20900,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21538
20900
  bottom: isCustomShape ? "" : "rotate(180deg)",
21539
20901
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21540
20902
  }[side];
21541
- return /* @__PURE__ */ jsxs53("svg", {
20903
+ return /* @__PURE__ */ jsxs50("svg", {
21542
20904
  ...rest,
21543
20905
  "aria-hidden": true,
21544
20906
  ref,
@@ -21554,18 +20916,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21554
20916
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21555
20917
  ...restStyle
21556
20918
  },
21557
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx81("path", {
20919
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx80("path", {
21558
20920
  clipPath: "url(#" + clipPathId + ")",
21559
20921
  fill: "none",
21560
20922
  stroke,
21561
20923
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21562
20924
  d: dValue
21563
- }), /* @__PURE__ */ jsx81("path", {
20925
+ }), /* @__PURE__ */ jsx80("path", {
21564
20926
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21565
20927
  d: dValue
21566
- }), /* @__PURE__ */ jsx81("clipPath", {
20928
+ }), /* @__PURE__ */ jsx80("clipPath", {
21567
20929
  id: clipPathId,
21568
- children: /* @__PURE__ */ jsx81("rect", {
20930
+ children: /* @__PURE__ */ jsx80("rect", {
21569
20931
  x: -halfStrokeWidth,
21570
20932
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21571
20933
  width: width + computedStrokeWidth,
@@ -21780,8 +21142,8 @@ var CalendarContainer = function(_a2) {
21780
21142
  return React9.createElement("div", { className, role: "dialog", "aria-label": ariaLabel, "aria-modal": "true" }, children);
21781
21143
  };
21782
21144
  var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21783
- var ref = useRef12(null);
21784
- var onClickOutsideRef = useRef12(onClickOutside);
21145
+ var ref = useRef11(null);
21146
+ var onClickOutsideRef = useRef11(onClickOutside);
21785
21147
  onClickOutsideRef.current = onClickOutside;
21786
21148
  var handleClickOutside = useCallback5(function(event) {
21787
21149
  var _a2;
@@ -21794,7 +21156,7 @@ var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21794
21156
  }
21795
21157
  }
21796
21158
  }, [ignoreClass]);
21797
- useEffect16(function() {
21159
+ useEffect15(function() {
21798
21160
  document.addEventListener("mousedown", handleClickOutside);
21799
21161
  return function() {
21800
21162
  document.removeEventListener("mousedown", handleClickOutside);
@@ -25035,7 +24397,7 @@ function withFloating(Component3) {
25035
24397
  var WithFloating = function(props) {
25036
24398
  var _a2;
25037
24399
  var hidePopper = typeof props.hidePopper === "boolean" ? props.hidePopper : true;
25038
- var arrowRef = useRef12(null);
24400
+ var arrowRef = useRef11(null);
25039
24401
  var floatingProps = useFloating2(_assign({ open: !hidePopper, whileElementsMounted: autoUpdate, placement: props.popperPlacement, middleware: __spreadArray([
25040
24402
  flip3({ padding: 15 }),
25041
24403
  offset3(10),
@@ -26047,13 +25409,13 @@ function _objectWithoutProperties(e3, t3) {
26047
25409
  }
26048
25410
 
26049
25411
  // node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
26050
- import { useState as useState15, useCallback as useCallback6 } from "react";
25412
+ import { useState as useState14, useCallback as useCallback6 } from "react";
26051
25413
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
26052
25414
  function useStateManager(_ref3) {
26053
25415
  var _ref$defaultInputValu = _ref3.defaultInputValue, defaultInputValue = _ref$defaultInputValu === void 0 ? "" : _ref$defaultInputValu, _ref$defaultMenuIsOpe = _ref3.defaultMenuIsOpen, defaultMenuIsOpen = _ref$defaultMenuIsOpe === void 0 ? false : _ref$defaultMenuIsOpe, _ref$defaultValue = _ref3.defaultValue, defaultValue = _ref$defaultValue === void 0 ? null : _ref$defaultValue, propsInputValue = _ref3.inputValue, propsMenuIsOpen = _ref3.menuIsOpen, propsOnChange = _ref3.onChange, propsOnInputChange = _ref3.onInputChange, propsOnMenuClose = _ref3.onMenuClose, propsOnMenuOpen = _ref3.onMenuOpen, propsValue = _ref3.value, restSelectProps = _objectWithoutProperties(_ref3, _excluded);
26054
- var _useState = useState15(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
26055
- var _useState3 = useState15(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
26056
- var _useState5 = useState15(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
25416
+ var _useState = useState14(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
25417
+ var _useState3 = useState14(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
25418
+ var _useState5 = useState14(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
26057
25419
  var onChange2 = useCallback6(function(value2, actionMeta) {
26058
25420
  if (typeof propsOnChange === "function") {
26059
25421
  propsOnChange(value2, actionMeta);
@@ -26214,7 +25576,7 @@ function _toConsumableArray(r4) {
26214
25576
 
26215
25577
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
26216
25578
  import * as React13 from "react";
26217
- import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef15, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
25579
+ import { useMemo as useMemo8, Fragment as Fragment22, useRef as useRef14, useCallback as useCallback8, useEffect as useEffect16, Component as Component2 } from "react";
26218
25580
 
26219
25581
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
26220
25582
  import * as React11 from "react";
@@ -27498,7 +26860,7 @@ var Emotion$1 = Emotion;
27498
26860
  import * as React12 from "react";
27499
26861
  var import_extends2 = __toESM(require_extends());
27500
26862
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27501
- var jsx82 = function jsx83(type, props) {
26863
+ var jsx81 = function jsx82(type, props) {
27502
26864
  var args = arguments;
27503
26865
  if (props == null || !hasOwn.call(props, "css")) {
27504
26866
  return React12.createElement.apply(void 0, args);
@@ -27516,7 +26878,7 @@ var jsx82 = function jsx83(type, props) {
27516
26878
  var JSX;
27517
26879
  /* @__PURE__ */ (function(_JSX) {
27518
26880
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27519
- })(jsx82 || (jsx82 = {}));
26881
+ })(jsx81 || (jsx81 = {}));
27520
26882
  function css() {
27521
26883
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27522
26884
  args[_key] = arguments[_key];
@@ -27546,7 +26908,7 @@ function _taggedTemplateLiteral(e3, t3) {
27546
26908
  }
27547
26909
 
27548
26910
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27549
- import { useContext as useContext9, useRef as useRef14, useState as useState16, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
26911
+ import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27550
26912
  import { createPortal as createPortal4 } from "react-dom";
27551
26913
 
27552
26914
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
@@ -27892,9 +27254,9 @@ var PortalPlacementContext = /* @__PURE__ */ createContext5(null);
27892
27254
  var MenuPlacer = function MenuPlacer2(props) {
27893
27255
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
27894
27256
  var _ref3 = useContext9(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
27895
- var ref = useRef14(null);
27896
- var _useState = useState16(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
27897
- var _useState3 = useState16(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
27257
+ var ref = useRef13(null);
27258
+ var _useState = useState15(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
27259
+ var _useState3 = useState15(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
27898
27260
  var controlHeight2 = theme.spacing.controlHeight;
27899
27261
  index3(function() {
27900
27262
  var menuEl = ref.current;
@@ -27924,7 +27286,7 @@ var MenuPlacer = function MenuPlacer2(props) {
27924
27286
  };
27925
27287
  var Menu = function Menu2(props) {
27926
27288
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
27927
- return jsx82("div", _extends({}, getStyleProps(props, "menu", {
27289
+ return jsx81("div", _extends({}, getStyleProps(props, "menu", {
27928
27290
  menu: true
27929
27291
  }), {
27930
27292
  ref: innerRef
@@ -27946,7 +27308,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
27946
27308
  };
27947
27309
  var MenuList = function MenuList2(props) {
27948
27310
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
27949
- return jsx82("div", _extends({}, getStyleProps(props, "menuList", {
27311
+ return jsx81("div", _extends({}, getStyleProps(props, "menuList", {
27950
27312
  "menu-list": true,
27951
27313
  "menu-list--is-multi": isMulti
27952
27314
  }), {
@@ -27966,7 +27328,7 @@ var noOptionsMessageCSS = noticeCSS;
27966
27328
  var loadingMessageCSS = noticeCSS;
27967
27329
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27968
27330
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
27969
- return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27331
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27970
27332
  children,
27971
27333
  innerProps
27972
27334
  }), "noOptionsMessage", {
@@ -27976,7 +27338,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27976
27338
  };
27977
27339
  var LoadingMessage = function LoadingMessage2(_ref7) {
27978
27340
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
27979
- return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27341
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27980
27342
  children,
27981
27343
  innerProps
27982
27344
  }), "loadingMessage", {
@@ -27996,15 +27358,15 @@ var menuPortalCSS = function menuPortalCSS2(_ref8) {
27996
27358
  };
27997
27359
  var MenuPortal = function MenuPortal2(props) {
27998
27360
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
27999
- var menuPortalRef = useRef14(null);
28000
- var cleanupRef = useRef14(null);
28001
- var _useState5 = useState16(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
27361
+ var menuPortalRef = useRef13(null);
27362
+ var cleanupRef = useRef13(null);
27363
+ var _useState5 = useState15(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
28002
27364
  var portalPlacementContext = useMemo7(function() {
28003
27365
  return {
28004
27366
  setPortalPlacement
28005
27367
  };
28006
27368
  }, []);
28007
- var _useState7 = useState16(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
27369
+ var _useState7 = useState15(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
28008
27370
  var updateComputedPosition = useCallback7(function() {
28009
27371
  if (!controlElement) return;
28010
27372
  var rect = getBoundingClientObj(controlElement);
@@ -28039,7 +27401,7 @@ var MenuPortal = function MenuPortal2(props) {
28039
27401
  runAutoUpdate();
28040
27402
  }, [runAutoUpdate]);
28041
27403
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
28042
- var menuWrapper = jsx82("div", _extends({
27404
+ var menuWrapper = jsx81("div", _extends({
28043
27405
  ref: setMenuPortalElement
28044
27406
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
28045
27407
  offset: computedPosition.offset,
@@ -28048,7 +27410,7 @@ var MenuPortal = function MenuPortal2(props) {
28048
27410
  }), "menuPortal", {
28049
27411
  "menu-portal": true
28050
27412
  }), innerProps), children);
28051
- return jsx82(PortalPlacementContext.Provider, {
27413
+ return jsx81(PortalPlacementContext.Provider, {
28052
27414
  value: portalPlacementContext
28053
27415
  }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
28054
27416
  };
@@ -28064,7 +27426,7 @@ var containerCSS = function containerCSS2(_ref3) {
28064
27426
  };
28065
27427
  var SelectContainer = function SelectContainer2(props) {
28066
27428
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
28067
- return jsx82("div", _extends({}, getStyleProps(props, "container", {
27429
+ return jsx81("div", _extends({}, getStyleProps(props, "container", {
28068
27430
  "--is-disabled": isDisabled,
28069
27431
  "--is-rtl": isRtl
28070
27432
  }), innerProps), children);
@@ -28085,7 +27447,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
28085
27447
  };
28086
27448
  var ValueContainer = function ValueContainer2(props) {
28087
27449
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
28088
- return jsx82("div", _extends({}, getStyleProps(props, "valueContainer", {
27450
+ return jsx81("div", _extends({}, getStyleProps(props, "valueContainer", {
28089
27451
  "value-container": true,
28090
27452
  "value-container--is-multi": isMulti,
28091
27453
  "value-container--has-value": hasValue
@@ -28101,7 +27463,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
28101
27463
  };
28102
27464
  var IndicatorsContainer = function IndicatorsContainer2(props) {
28103
27465
  var children = props.children, innerProps = props.innerProps;
28104
- return jsx82("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
27466
+ return jsx81("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
28105
27467
  indicators: true
28106
27468
  }), innerProps), children);
28107
27469
  };
@@ -28122,7 +27484,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
28122
27484
  };
28123
27485
  var Svg = function Svg2(_ref3) {
28124
27486
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
28125
- return jsx82("svg", _extends({
27487
+ return jsx81("svg", _extends({
28126
27488
  height: size4,
28127
27489
  width: size4,
28128
27490
  viewBox: "0 0 20 20",
@@ -28132,16 +27494,16 @@ var Svg = function Svg2(_ref3) {
28132
27494
  }, props));
28133
27495
  };
28134
27496
  var CrossIcon = function CrossIcon2(props) {
28135
- return jsx82(Svg, _extends({
27497
+ return jsx81(Svg, _extends({
28136
27498
  size: 20
28137
- }, props), jsx82("path", {
27499
+ }, props), jsx81("path", {
28138
27500
  d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
28139
27501
  }));
28140
27502
  };
28141
27503
  var DownChevron = function DownChevron2(props) {
28142
- return jsx82(Svg, _extends({
27504
+ return jsx81(Svg, _extends({
28143
27505
  size: 20
28144
- }, props), jsx82("path", {
27506
+ }, props), jsx81("path", {
28145
27507
  d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
28146
27508
  }));
28147
27509
  };
@@ -28162,18 +27524,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
28162
27524
  var dropdownIndicatorCSS = baseCSS;
28163
27525
  var DropdownIndicator = function DropdownIndicator2(props) {
28164
27526
  var children = props.children, innerProps = props.innerProps;
28165
- return jsx82("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
27527
+ return jsx81("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28166
27528
  indicator: true,
28167
27529
  "dropdown-indicator": true
28168
- }), innerProps), children || jsx82(DownChevron, null));
27530
+ }), innerProps), children || jsx81(DownChevron, null));
28169
27531
  };
28170
27532
  var clearIndicatorCSS = baseCSS;
28171
27533
  var ClearIndicator = function ClearIndicator2(props) {
28172
27534
  var children = props.children, innerProps = props.innerProps;
28173
- return jsx82("div", _extends({}, getStyleProps(props, "clearIndicator", {
27535
+ return jsx81("div", _extends({}, getStyleProps(props, "clearIndicator", {
28174
27536
  indicator: true,
28175
27537
  "clear-indicator": true
28176
- }), innerProps), children || jsx82(CrossIcon, null));
27538
+ }), innerProps), children || jsx81(CrossIcon, null));
28177
27539
  };
28178
27540
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28179
27541
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -28189,7 +27551,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
28189
27551
  };
28190
27552
  var IndicatorSeparator = function IndicatorSeparator2(props) {
28191
27553
  var innerProps = props.innerProps;
28192
- return jsx82("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
27554
+ return jsx81("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28193
27555
  "indicator-separator": true
28194
27556
  })));
28195
27557
  };
@@ -28213,7 +27575,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
28213
27575
  };
28214
27576
  var LoadingDot = function LoadingDot2(_ref6) {
28215
27577
  var delay = _ref6.delay, offset4 = _ref6.offset;
28216
- return jsx82("span", {
27578
+ return jsx81("span", {
28217
27579
  css: /* @__PURE__ */ css({
28218
27580
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
28219
27581
  backgroundColor: "currentColor",
@@ -28228,20 +27590,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
28228
27590
  };
28229
27591
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
28230
27592
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
28231
- return jsx82("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27593
+ return jsx81("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28232
27594
  innerProps,
28233
27595
  isRtl,
28234
27596
  size: size4
28235
27597
  }), "loadingIndicator", {
28236
27598
  indicator: true,
28237
27599
  "loading-indicator": true
28238
- }), innerProps), jsx82(LoadingDot, {
27600
+ }), innerProps), jsx81(LoadingDot, {
28239
27601
  delay: 0,
28240
27602
  offset: isRtl
28241
- }), jsx82(LoadingDot, {
27603
+ }), jsx81(LoadingDot, {
28242
27604
  delay: 160,
28243
27605
  offset: true
28244
- }), jsx82(LoadingDot, {
27606
+ }), jsx81(LoadingDot, {
28245
27607
  delay: 320,
28246
27608
  offset: !isRtl
28247
27609
  }));
@@ -28273,7 +27635,7 @@ var css$1 = function css2(_ref3, unstyled) {
28273
27635
  };
28274
27636
  var Control = function Control2(props) {
28275
27637
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
28276
- return jsx82("div", _extends({
27638
+ return jsx81("div", _extends({
28277
27639
  ref: innerRef
28278
27640
  }, getStyleProps(props, "control", {
28279
27641
  control: true,
@@ -28295,15 +27657,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
28295
27657
  };
28296
27658
  var Group = function Group2(props) {
28297
27659
  var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, Heading = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
28298
- return jsx82("div", _extends({}, getStyleProps(props, "group", {
27660
+ return jsx81("div", _extends({}, getStyleProps(props, "group", {
28299
27661
  group: true
28300
- }), innerProps), jsx82(Heading, _extends({}, headingProps, {
27662
+ }), innerProps), jsx81(Heading, _extends({}, headingProps, {
28301
27663
  selectProps,
28302
27664
  theme,
28303
27665
  getStyles,
28304
27666
  getClassNames,
28305
27667
  cx
28306
- }), label), jsx82("div", null, children));
27668
+ }), label), jsx81("div", null, children));
28307
27669
  };
28308
27670
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
28309
27671
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -28325,7 +27687,7 @@ var GroupHeading = function GroupHeading2(props) {
28325
27687
  var _cleanCommonProps = cleanCommonProps(props);
28326
27688
  _cleanCommonProps.data;
28327
27689
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
28328
- return jsx82("div", _extends({}, getStyleProps(props, "groupHeading", {
27690
+ return jsx81("div", _extends({}, getStyleProps(props, "groupHeading", {
28329
27691
  "group-heading": true
28330
27692
  }), innerProps));
28331
27693
  };
@@ -28377,11 +27739,11 @@ var inputStyle = function inputStyle2(isHidden) {
28377
27739
  var Input = function Input2(props) {
28378
27740
  var cx = props.cx, value = props.value;
28379
27741
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28380
- return jsx82("div", _extends({}, getStyleProps(props, "input", {
27742
+ return jsx81("div", _extends({}, getStyleProps(props, "input", {
28381
27743
  "input-container": true
28382
27744
  }), {
28383
27745
  "data-value": value || ""
28384
- }), jsx82("input", _extends({
27746
+ }), jsx81("input", _extends({
28385
27747
  className: cx({
28386
27748
  input: true
28387
27749
  }, inputClassName),
@@ -28435,35 +27797,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28435
27797
  };
28436
27798
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28437
27799
  var children = _ref4.children, innerProps = _ref4.innerProps;
28438
- return jsx82("div", innerProps, children);
27800
+ return jsx81("div", innerProps, children);
28439
27801
  };
28440
27802
  var MultiValueContainer = MultiValueGeneric;
28441
27803
  var MultiValueLabel = MultiValueGeneric;
28442
27804
  function MultiValueRemove(_ref5) {
28443
27805
  var children = _ref5.children, innerProps = _ref5.innerProps;
28444
- return jsx82("div", _extends({
27806
+ return jsx81("div", _extends({
28445
27807
  role: "button"
28446
- }, innerProps), children || jsx82(CrossIcon, {
27808
+ }, innerProps), children || jsx81(CrossIcon, {
28447
27809
  size: 14
28448
27810
  }));
28449
27811
  }
28450
27812
  var MultiValue = function MultiValue2(props) {
28451
27813
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28452
27814
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28453
- return jsx82(Container, {
27815
+ return jsx81(Container, {
28454
27816
  data,
28455
27817
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28456
27818
  "multi-value": true,
28457
27819
  "multi-value--is-disabled": isDisabled
28458
27820
  })), innerProps),
28459
27821
  selectProps
28460
- }, jsx82(Label, {
27822
+ }, jsx81(Label, {
28461
27823
  data,
28462
27824
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28463
27825
  "multi-value__label": true
28464
27826
  })),
28465
27827
  selectProps
28466
- }, children), jsx82(Remove, {
27828
+ }, children), jsx81(Remove, {
28467
27829
  data,
28468
27830
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28469
27831
  "multi-value__remove": true
@@ -28496,7 +27858,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28496
27858
  };
28497
27859
  var Option = function Option2(props) {
28498
27860
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28499
- return jsx82("div", _extends({}, getStyleProps(props, "option", {
27861
+ return jsx81("div", _extends({}, getStyleProps(props, "option", {
28500
27862
  option: true,
28501
27863
  "option--is-disabled": isDisabled,
28502
27864
  "option--is-focused": isFocused,
@@ -28520,7 +27882,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28520
27882
  };
28521
27883
  var Placeholder = function Placeholder2(props) {
28522
27884
  var children = props.children, innerProps = props.innerProps;
28523
- return jsx82("div", _extends({}, getStyleProps(props, "placeholder", {
27885
+ return jsx81("div", _extends({}, getStyleProps(props, "placeholder", {
28524
27886
  placeholder: true
28525
27887
  }), innerProps), children);
28526
27888
  };
@@ -28542,7 +27904,7 @@ var css3 = function css4(_ref3, unstyled) {
28542
27904
  };
28543
27905
  var SingleValue = function SingleValue2(props) {
28544
27906
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28545
- return jsx82("div", _extends({}, getStyleProps(props, "singleValue", {
27907
+ return jsx81("div", _extends({}, getStyleProps(props, "singleValue", {
28546
27908
  "single-value": true,
28547
27909
  "single-value--is-disabled": isDisabled
28548
27910
  }), innerProps), children);
@@ -28644,7 +28006,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28644
28006
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28645
28007
  };
28646
28008
  var A11yText = function A11yText2(props) {
28647
- return jsx82("span", _extends({
28009
+ return jsx81("span", _extends({
28648
28010
  css: _ref
28649
28011
  }, props));
28650
28012
  };
@@ -28779,18 +28141,18 @@ var LiveRegion = function LiveRegion2(props) {
28779
28141
  }
28780
28142
  return guidanceMsg;
28781
28143
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28782
- var ScreenReaderText = jsx82(Fragment22, null, jsx82("span", {
28144
+ var ScreenReaderText = jsx81(Fragment22, null, jsx81("span", {
28783
28145
  id: "aria-selection"
28784
- }, ariaSelected), jsx82("span", {
28146
+ }, ariaSelected), jsx81("span", {
28785
28147
  id: "aria-focused"
28786
- }, ariaFocused), jsx82("span", {
28148
+ }, ariaFocused), jsx81("span", {
28787
28149
  id: "aria-results"
28788
- }, ariaResults), jsx82("span", {
28150
+ }, ariaResults), jsx81("span", {
28789
28151
  id: "aria-guidance"
28790
28152
  }, ariaGuidance));
28791
- return jsx82(Fragment22, null, jsx82(A11yText$1, {
28153
+ return jsx81(Fragment22, null, jsx81(A11yText$1, {
28792
28154
  id
28793
- }, isInitialFocus && ScreenReaderText), jsx82(A11yText$1, {
28155
+ }, isInitialFocus && ScreenReaderText), jsx81(A11yText$1, {
28794
28156
  "aria-live": ariaLive,
28795
28157
  "aria-atomic": "false",
28796
28158
  "aria-relevant": "additions text",
@@ -29103,7 +28465,7 @@ var _excluded4 = ["innerRef"];
29103
28465
  function DummyInput(_ref3) {
29104
28466
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
29105
28467
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
29106
- return jsx82("input", _extends({
28468
+ return jsx81("input", _extends({
29107
28469
  ref: innerRef
29108
28470
  }, filteredProps, {
29109
28471
  css: /* @__PURE__ */ css({
@@ -29135,10 +28497,10 @@ var cancelScroll = function cancelScroll2(event) {
29135
28497
  };
29136
28498
  function useScrollCapture(_ref3) {
29137
28499
  var isEnabled = _ref3.isEnabled, onBottomArrive = _ref3.onBottomArrive, onBottomLeave = _ref3.onBottomLeave, onTopArrive = _ref3.onTopArrive, onTopLeave = _ref3.onTopLeave;
29138
- var isBottom = useRef15(false);
29139
- var isTop = useRef15(false);
29140
- var touchStart = useRef15(0);
29141
- var scrollTarget = useRef15(null);
28500
+ var isBottom = useRef14(false);
28501
+ var isTop = useRef14(false);
28502
+ var touchStart = useRef14(0);
28503
+ var scrollTarget = useRef14(null);
29142
28504
  var handleEventDelta = useCallback8(function(event, delta) {
29143
28505
  if (scrollTarget.current === null) return;
29144
28506
  var _scrollTarget$current = scrollTarget.current, scrollTop = _scrollTarget$current.scrollTop, scrollHeight = _scrollTarget$current.scrollHeight, clientHeight = _scrollTarget$current.clientHeight;
@@ -29198,7 +28560,7 @@ function useScrollCapture(_ref3) {
29198
28560
  el.removeEventListener("touchstart", onTouchStart, false);
29199
28561
  el.removeEventListener("touchmove", onTouchMove, false);
29200
28562
  }, [onTouchMove, onTouchStart, onWheel]);
29201
- useEffect17(function() {
28563
+ useEffect16(function() {
29202
28564
  if (!isEnabled) return;
29203
28565
  var element = scrollTarget.current;
29204
28566
  startListening(element);
@@ -29245,8 +28607,8 @@ var listenerOptions = {
29245
28607
  };
29246
28608
  function useScrollLock(_ref3) {
29247
28609
  var isEnabled = _ref3.isEnabled, _ref$accountForScroll = _ref3.accountForScrollbars, accountForScrollbars = _ref$accountForScroll === void 0 ? true : _ref$accountForScroll;
29248
- var originalStyles = useRef15({});
29249
- var scrollTarget = useRef15(null);
28610
+ var originalStyles = useRef14({});
28611
+ var scrollTarget = useRef14(null);
29250
28612
  var addScrollLock = useCallback8(function(touchScrollTarget) {
29251
28613
  if (!canUseDOM) return;
29252
28614
  var target = document.body;
@@ -29301,7 +28663,7 @@ function useScrollLock(_ref3) {
29301
28663
  }
29302
28664
  }
29303
28665
  }, [accountForScrollbars]);
29304
- useEffect17(function() {
28666
+ useEffect16(function() {
29305
28667
  if (!isEnabled) return;
29306
28668
  var element = scrollTarget.current;
29307
28669
  addScrollLock(element);
@@ -29345,7 +28707,7 @@ function ScrollManager(_ref3) {
29345
28707
  setScrollCaptureTarget(element);
29346
28708
  setScrollLockTarget(element);
29347
28709
  };
29348
- return jsx82(Fragment22, null, lockEnabled && jsx82("div", {
28710
+ return jsx81(Fragment22, null, lockEnabled && jsx81("div", {
29349
28711
  onClick: blurSelectInput,
29350
28712
  css: _ref2$1
29351
28713
  }), children(targetRef));
@@ -29364,7 +28726,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
29364
28726
  };
29365
28727
  var RequiredInput = function RequiredInput2(_ref3) {
29366
28728
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29367
- return jsx82("input", {
28729
+ return jsx81("input", {
29368
28730
  required: true,
29369
28731
  name: name2,
29370
28732
  tabIndex: -1,
@@ -30954,7 +30316,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30954
30316
 
30955
30317
  // src/widgets/basic/date-field/date.tsx
30956
30318
  var import_moment2 = __toESM(require_moment());
30957
- import { Fragment as Fragment23, jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
30319
+ import { Fragment as Fragment23, jsx as jsx83, jsxs as jsxs51 } from "react/jsx-runtime";
30958
30320
  var DateField = (props) => {
30959
30321
  const {
30960
30322
  name: name2,
@@ -30982,8 +30344,8 @@ var DateField = (props) => {
30982
30344
  } = props;
30983
30345
  const { t: t3 } = useI18n();
30984
30346
  const InputDateCustom = forwardRef6(
30985
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs54("label", { className: `flex ${className}`, children: [
30986
- /* @__PURE__ */ jsx84(
30347
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs51("label", { className: `flex ${className}`, children: [
30348
+ /* @__PURE__ */ jsx83(
30987
30349
  "input",
30988
30350
  {
30989
30351
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -30997,13 +30359,13 @@ var DateField = (props) => {
30997
30359
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
30998
30360
  }
30999
30361
  ),
31000
- isForm2 && /* @__PURE__ */ jsx84(CalendarIcon, {})
30362
+ isForm2 && /* @__PURE__ */ jsx83(CalendarIcon, {})
31001
30363
  ] })
31002
30364
  );
31003
30365
  if (!isForm && !isEditTable) {
31004
- return /* @__PURE__ */ jsx84("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30366
+ return /* @__PURE__ */ jsx83("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
31005
30367
  } else {
31006
- return /* @__PURE__ */ jsx84(
30368
+ return /* @__PURE__ */ jsx83(
31007
30369
  Controller,
31008
30370
  {
31009
30371
  name: name2 || "",
@@ -31019,14 +30381,14 @@ var DateField = (props) => {
31019
30381
  },
31020
30382
  render: ({ field, fieldState: { error: error2 } }) => {
31021
30383
  const { setError, clearErrors } = methods;
31022
- useEffect18(() => {
30384
+ useEffect17(() => {
31023
30385
  if (value) {
31024
30386
  clearErrors(name2);
31025
30387
  }
31026
30388
  }, [value, clearErrors, name2]);
31027
30389
  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;
31028
- return /* @__PURE__ */ jsxs54(Fragment23, { children: [
31029
- /* @__PURE__ */ jsx84(
30390
+ return /* @__PURE__ */ jsxs51(Fragment23, { children: [
30391
+ /* @__PURE__ */ jsx83(
31030
30392
  DatePicker,
31031
30393
  {
31032
30394
  selected: selectedDate,
@@ -31074,7 +30436,7 @@ var DateField = (props) => {
31074
30436
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
31075
30437
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
31076
30438
  showTimeInput: showTime,
31077
- customInput: /* @__PURE__ */ jsx84(
30439
+ customInput: /* @__PURE__ */ jsx83(
31078
30440
  InputDateCustom,
31079
30441
  {
31080
30442
  isForm,
@@ -31092,7 +30454,7 @@ var DateField = (props) => {
31092
30454
  increaseMonth,
31093
30455
  prevMonthButtonDisabled,
31094
30456
  nextMonthButtonDisabled
31095
- }) => /* @__PURE__ */ jsxs54(
30457
+ }) => /* @__PURE__ */ jsxs51(
31096
30458
  "div",
31097
30459
  {
31098
30460
  style: {
@@ -31101,7 +30463,7 @@ var DateField = (props) => {
31101
30463
  justifyContent: "center"
31102
30464
  },
31103
30465
  children: [
31104
- /* @__PURE__ */ jsx84(
30466
+ /* @__PURE__ */ jsx83(
31105
30467
  "button",
31106
30468
  {
31107
30469
  onClick: decreaseMonth,
@@ -31109,7 +30471,7 @@ var DateField = (props) => {
31109
30471
  children: "<"
31110
30472
  }
31111
30473
  ),
31112
- /* @__PURE__ */ jsx84(
30474
+ /* @__PURE__ */ jsx83(
31113
30475
  StateManagedSelect$1,
31114
30476
  {
31115
30477
  classNames: {
@@ -31135,7 +30497,7 @@ var DateField = (props) => {
31135
30497
  autoFocus: true
31136
30498
  }
31137
30499
  ),
31138
- /* @__PURE__ */ jsx84(
30500
+ /* @__PURE__ */ jsx83(
31139
30501
  StateManagedSelect$1,
31140
30502
  {
31141
30503
  classNames: {
@@ -31163,7 +30525,7 @@ var DateField = (props) => {
31163
30525
  }))
31164
30526
  }
31165
30527
  ),
31166
- /* @__PURE__ */ jsx84(
30528
+ /* @__PURE__ */ jsx83(
31167
30529
  "button",
31168
30530
  {
31169
30531
  onClick: increaseMonth,
@@ -31176,7 +30538,7 @@ var DateField = (props) => {
31176
30538
  )
31177
30539
  }
31178
30540
  ),
31179
- !isEditTable && error2 && /* @__PURE__ */ jsx84("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
30541
+ !isEditTable && error2 && /* @__PURE__ */ jsx83("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31180
30542
  ] });
31181
30543
  }
31182
30544
  }
@@ -31185,26 +30547,26 @@ var DateField = (props) => {
31185
30547
  };
31186
30548
 
31187
30549
  // src/widgets/basic/download-binary-field/download-binary.tsx
31188
- import { jsx as jsx85, jsxs as jsxs55 } from "react/jsx-runtime";
30550
+ import { jsx as jsx84, jsxs as jsxs52 } from "react/jsx-runtime";
31189
30551
  var DownLoadBinaryField = (props) => {
31190
30552
  const { handleFileDownload } = props;
31191
30553
  const { t: t3 } = useI18n();
31192
- return /* @__PURE__ */ jsxs55(
30554
+ return /* @__PURE__ */ jsxs52(
31193
30555
  "button",
31194
30556
  {
31195
30557
  type: "button",
31196
30558
  onClick: handleFileDownload,
31197
30559
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
31198
30560
  children: [
31199
- /* @__PURE__ */ jsx85(DownloadIcon, {}),
31200
- /* @__PURE__ */ jsx85("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
30561
+ /* @__PURE__ */ jsx84(DownloadIcon, {}),
30562
+ /* @__PURE__ */ jsx84("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31201
30563
  ]
31202
30564
  }
31203
30565
  );
31204
30566
  };
31205
30567
 
31206
30568
  // src/widgets/basic/download-file-field/download-file.tsx
31207
- import { jsx as jsx86, jsxs as jsxs56 } from "react/jsx-runtime";
30569
+ import { jsx as jsx85, jsxs as jsxs53 } from "react/jsx-runtime";
31208
30570
  var DownloadFileField = (props) => {
31209
30571
  const {
31210
30572
  readonly,
@@ -31216,15 +30578,15 @@ var DownloadFileField = (props) => {
31216
30578
  handleFileChange,
31217
30579
  handleFileDownload
31218
30580
  } = props;
31219
- return /* @__PURE__ */ jsxs56("div", { className: "", children: [
31220
- /* @__PURE__ */ jsxs56(
30581
+ return /* @__PURE__ */ jsxs53("div", { className: "", children: [
30582
+ /* @__PURE__ */ jsxs53(
31221
30583
  "label",
31222
30584
  {
31223
30585
  htmlFor: inputId,
31224
30586
  className: "flex cursor-pointer items-center justify-center rounded-lg border-2 border-gray-300 bg-white px-3 py-2 transition-colors duration-300 hover:bg-gray-200",
31225
30587
  children: [
31226
- file ? /* @__PURE__ */ jsx86("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx86("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx86("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31227
- /* @__PURE__ */ jsx86(
30588
+ file ? /* @__PURE__ */ jsx85("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx85("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
30589
+ /* @__PURE__ */ jsx85(
31228
30590
  "input",
31229
30591
  {
31230
30592
  id: inputId,
@@ -31238,7 +30600,7 @@ var DownloadFileField = (props) => {
31238
30600
  ]
31239
30601
  }
31240
30602
  ),
31241
- file && /* @__PURE__ */ jsx86(
30603
+ file && /* @__PURE__ */ jsx85(
31242
30604
  "button",
31243
30605
  {
31244
30606
  onClick: handleFileDownload,
@@ -31251,8 +30613,8 @@ var DownloadFileField = (props) => {
31251
30613
  };
31252
30614
 
31253
30615
  // src/widgets/basic/dropdown-field/dropdown.tsx
31254
- import { useState as useState17 } from "react";
31255
- import { jsx as jsx87, jsxs as jsxs57 } from "react/jsx-runtime";
30616
+ import { useState as useState16 } from "react";
30617
+ import { jsx as jsx86, jsxs as jsxs54 } from "react/jsx-runtime";
31256
30618
  var DropdownField = (props) => {
31257
30619
  const {
31258
30620
  options: options2,
@@ -31264,32 +30626,32 @@ var DropdownField = (props) => {
31264
30626
  dropdownClassName = "",
31265
30627
  useClickOutside: useClickOutside2
31266
30628
  } = props;
31267
- const [open, setOpen] = useState17(false);
30629
+ const [open, setOpen] = useState16(false);
31268
30630
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
31269
- return /* @__PURE__ */ jsxs57(
30631
+ return /* @__PURE__ */ jsxs54(
31270
30632
  "div",
31271
30633
  {
31272
30634
  ref: dropdownRef,
31273
30635
  className: `relative ${className}`,
31274
30636
  onClick: () => setOpen(!open),
31275
30637
  children: [
31276
- /* @__PURE__ */ jsxs57(
30638
+ /* @__PURE__ */ jsxs54(
31277
30639
  "div",
31278
30640
  {
31279
30641
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
31280
30642
  children: [
31281
30643
  selectedValue?.icon,
31282
- /* @__PURE__ */ jsx87("span", { children: selectedValue?.label }),
31283
- /* @__PURE__ */ jsx87(ChevronBottomIcon, { className: "h-4 w-4" })
30644
+ /* @__PURE__ */ jsx86("span", { children: selectedValue?.label }),
30645
+ /* @__PURE__ */ jsx86(ChevronBottomIcon, { className: "h-4 w-4" })
31284
30646
  ]
31285
30647
  }
31286
30648
  ),
31287
- open && /* @__PURE__ */ jsx87(
30649
+ open && /* @__PURE__ */ jsx86(
31288
30650
  "div",
31289
30651
  {
31290
30652
  className: `absolute left-0 top-[calc(100%_+_4px)] z-50 bg-white overflow-hidden rounded-lg border border-[#dbe0e6] shadow-md text-sub-600 h-auto !min-h-fit text-xs !leading-5 !font-bold ${dropdownClassName}`,
31291
30653
  onClick: (e3) => e3.stopPropagation(),
31292
- children: options2.map((option, index4) => /* @__PURE__ */ jsx87(
30654
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx86(
31293
30655
  "div",
31294
30656
  {
31295
30657
  onClick: () => {
@@ -31309,7 +30671,7 @@ var DropdownField = (props) => {
31309
30671
  };
31310
30672
 
31311
30673
  // src/widgets/basic/fee-field/fee.tsx
31312
- import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs58 } from "react/jsx-runtime";
30674
+ import { Fragment as Fragment24, jsx as jsx87, jsxs as jsxs55 } from "react/jsx-runtime";
31313
30675
  var FeeField = (props) => {
31314
30676
  const { value, formValues } = props;
31315
30677
  const { t: t3 } = useI18n();
@@ -31320,27 +30682,27 @@ var FeeField = (props) => {
31320
30682
  )
31321
30683
  ) + " VND";
31322
30684
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
31323
- return /* @__PURE__ */ jsxs58(Fragment24, { children: [
30685
+ return /* @__PURE__ */ jsxs55(Fragment24, { children: [
31324
30686
  value?.subtotals?.map((sub) => {
31325
30687
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
31326
- return /* @__PURE__ */ jsxs58(Fragment24, { children: [
31327
- /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31328
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
30688
+ return /* @__PURE__ */ jsxs55(Fragment24, { children: [
30689
+ /* @__PURE__ */ jsxs55("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
30690
+ /* @__PURE__ */ jsxs55("div", { className: "text-[14px] leading-[21px] text-right", children: [
31329
30691
  sub?.name,
31330
30692
  ":"
31331
30693
  ] }),
31332
- /* @__PURE__ */ jsx88("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
30694
+ /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31333
30695
  ] }),
31334
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs58(
30696
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs55(
31335
30697
  "div",
31336
30698
  {
31337
30699
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
31338
30700
  children: [
31339
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
30701
+ /* @__PURE__ */ jsxs55("div", { className: "text-[14px] leading-[21px] text-right", children: [
31340
30702
  group?.group_name,
31341
30703
  ":"
31342
30704
  ] }),
31343
- /* @__PURE__ */ jsx88("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
30705
+ /* @__PURE__ */ jsx87("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31344
30706
  ]
31345
30707
  },
31346
30708
  `tax_groups_${group?.id}`
@@ -31348,33 +30710,33 @@ var FeeField = (props) => {
31348
30710
  ] });
31349
30711
  }
31350
30712
  }),
31351
- /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31352
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
30713
+ /* @__PURE__ */ jsxs55("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: [
30714
+ /* @__PURE__ */ jsxs55("div", { className: "text-[14px] leading-[21px] text-right", children: [
31353
30715
  t3("total"),
31354
30716
  ":"
31355
30717
  ] }),
31356
- /* @__PURE__ */ jsx88("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
30718
+ /* @__PURE__ */ jsx87("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31357
30719
  ] }),
31358
- /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31359
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
30720
+ /* @__PURE__ */ jsxs55("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: [
30721
+ /* @__PURE__ */ jsxs55("div", { className: "text-[14px] leading-[21px] text-right", children: [
31360
30722
  t3("paid_amount"),
31361
30723
  ":"
31362
30724
  ] }),
31363
- /* @__PURE__ */ jsx88("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
30725
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31364
30726
  ] }),
31365
- /* @__PURE__ */ jsxs58("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31366
- /* @__PURE__ */ jsxs58("div", { className: "text-[14px] leading-[21px] text-right", children: [
30727
+ /* @__PURE__ */ jsxs55("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: [
30728
+ /* @__PURE__ */ jsxs55("div", { className: "text-[14px] leading-[21px] text-right", children: [
31367
30729
  t3("remanining_amount"),
31368
30730
  ":"
31369
30731
  ] }),
31370
- /* @__PURE__ */ jsx88("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
30732
+ /* @__PURE__ */ jsx87("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31371
30733
  ] })
31372
30734
  ] });
31373
30735
  };
31374
30736
 
31375
30737
  // src/widgets/basic/file-upload-field/file-upload.tsx
31376
- import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
31377
- import { jsx as jsx89, jsxs as jsxs59 } from "react/jsx-runtime";
30738
+ import { useEffect as useEffect18, useRef as useRef15, useState as useState17 } from "react";
30739
+ import { jsx as jsx88, jsxs as jsxs56 } from "react/jsx-runtime";
31378
30740
  var RenderFile = ({
31379
30741
  file,
31380
30742
  onDelete,
@@ -31384,16 +30746,16 @@ var RenderFile = ({
31384
30746
  readAs: "all"
31385
30747
  });
31386
30748
  const fileTypeIcon = {
31387
- "application/pdf": /* @__PURE__ */ jsx89(PdfIcon, {}),
31388
- "application/zip": /* @__PURE__ */ jsx89(ZipIcon, {}),
31389
- "application/x-zip-compressed": /* @__PURE__ */ jsx89(ZipIcon, {}),
31390
- "application/vnd.ms-excel": /* @__PURE__ */ jsx89(ExcelIcon, {}),
31391
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx89(ExcelIcon, {})
30749
+ "application/pdf": /* @__PURE__ */ jsx88(PdfIcon, {}),
30750
+ "application/zip": /* @__PURE__ */ jsx88(ZipIcon, {}),
30751
+ "application/x-zip-compressed": /* @__PURE__ */ jsx88(ZipIcon, {}),
30752
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx88(ExcelIcon, {}),
30753
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx88(ExcelIcon, {})
31392
30754
  };
31393
- return /* @__PURE__ */ jsxs59("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31394
- /* @__PURE__ */ jsx89("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31395
- /* @__PURE__ */ jsxs59("div", { children: [
31396
- /* @__PURE__ */ jsx89(
30755
+ return /* @__PURE__ */ jsxs56("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
30756
+ /* @__PURE__ */ jsx88("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
30757
+ /* @__PURE__ */ jsxs56("div", { children: [
30758
+ /* @__PURE__ */ jsx88(
31397
30759
  "div",
31398
30760
  {
31399
30761
  style: {
@@ -31403,20 +30765,20 @@ var RenderFile = ({
31403
30765
  children: file?.name || file?.display_name || info?.name
31404
30766
  }
31405
30767
  ),
31406
- /* @__PURE__ */ jsx89("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
30768
+ /* @__PURE__ */ jsx88("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31407
30769
  ] }),
31408
- /* @__PURE__ */ jsxs59("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: [
31409
- /* @__PURE__ */ jsx89(
30770
+ /* @__PURE__ */ jsxs56("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: [
30771
+ /* @__PURE__ */ jsx88(
31410
30772
  "span",
31411
30773
  {
31412
30774
  onClick: () => onDownload && onDownload(
31413
30775
  file?.data,
31414
30776
  file?.name || file?.display_name || info?.name
31415
30777
  ),
31416
- children: /* @__PURE__ */ jsx89(DownloadIcon, {})
30778
+ children: /* @__PURE__ */ jsx88(DownloadIcon, {})
31417
30779
  }
31418
30780
  ),
31419
- /* @__PURE__ */ jsx89("span", { onClick: onDelete, children: /* @__PURE__ */ jsx89(DeleteIconDanger, {}) })
30781
+ /* @__PURE__ */ jsx88("span", { onClick: onDelete, children: /* @__PURE__ */ jsx88(DeleteIconDanger, {}) })
31420
30782
  ] })
31421
30783
  ] });
31422
30784
  };
@@ -31438,10 +30800,10 @@ var FileUploadField = (props) => {
31438
30800
  downloadFunction
31439
30801
  } = props;
31440
30802
  const { t: t3 } = useI18n();
31441
- const fileInputRef = useRef16(null);
31442
- const [selectedFiles, setSelectedFiles] = useState18([]);
31443
- const [uploadError, setUploadError] = useState18();
31444
- useEffect19(() => {
30803
+ const fileInputRef = useRef15(null);
30804
+ const [selectedFiles, setSelectedFiles] = useState17([]);
30805
+ const [uploadError, setUploadError] = useState17();
30806
+ useEffect18(() => {
31445
30807
  if (selectedFiles?.length === 0 && value) {
31446
30808
  setSelectedFiles([
31447
30809
  {
@@ -31450,7 +30812,7 @@ var FileUploadField = (props) => {
31450
30812
  ]);
31451
30813
  }
31452
30814
  }, [value]);
31453
- return /* @__PURE__ */ jsx89(
30815
+ return /* @__PURE__ */ jsx88(
31454
30816
  Controller,
31455
30817
  {
31456
30818
  name: name2 || "",
@@ -31459,7 +30821,7 @@ var FileUploadField = (props) => {
31459
30821
  required: required ? { value: true, message: `${string} ${t3("must_required")}` } : false
31460
30822
  },
31461
30823
  render: ({ field: { onChange: onChange2 }, fieldState: { error: error2 } }) => {
31462
- useEffect19(() => {
30824
+ useEffect18(() => {
31463
30825
  let data = widget === "many2many_binary" ? selectedFiles : selectedFiles?.[0]?.data;
31464
30826
  if (widget !== "many2many_binary" && data && isBase64File(data)) {
31465
30827
  data = data.split(",")[1];
@@ -31475,8 +30837,8 @@ var FileUploadField = (props) => {
31475
30837
  );
31476
30838
  }
31477
30839
  }, [selectedFiles]);
31478
- return /* @__PURE__ */ jsxs59("div", { children: [
31479
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx89(
30840
+ return /* @__PURE__ */ jsxs56("div", { children: [
30841
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx88(
31480
30842
  RenderFile,
31481
30843
  {
31482
30844
  file: fileItem,
@@ -31491,8 +30853,8 @@ var FileUploadField = (props) => {
31491
30853
  }
31492
30854
  }
31493
30855
  )),
31494
- uploadError && /* @__PURE__ */ jsx89("div", { className: "text-[#de4747]", children: uploadError }),
31495
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx89(
30856
+ uploadError && /* @__PURE__ */ jsx88("div", { className: "text-[#de4747]", children: uploadError }),
30857
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx88(
31496
30858
  ButtonSelectFiles,
31497
30859
  {
31498
30860
  fileInputRef,
@@ -31507,7 +30869,7 @@ var FileUploadField = (props) => {
31507
30869
  useUploadFile
31508
30870
  }
31509
30871
  ),
31510
- error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
30872
+ error2 && !isEditTable && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31511
30873
  ] });
31512
30874
  }
31513
30875
  }
@@ -31515,8 +30877,8 @@ var FileUploadField = (props) => {
31515
30877
  };
31516
30878
 
31517
30879
  // src/widgets/basic/float-field/float.tsx
31518
- import { useEffect as useEffect20, useRef as useRef17, useState as useState19 } from "react";
31519
- import { Fragment as Fragment25, jsx as jsx90, jsxs as jsxs60 } from "react/jsx-runtime";
30880
+ import { useEffect as useEffect19, useRef as useRef16, useState as useState18 } from "react";
30881
+ import { Fragment as Fragment25, jsx as jsx89, jsxs as jsxs57 } from "react/jsx-runtime";
31520
30882
  var FloatField = (props) => {
31521
30883
  const {
31522
30884
  name: name2,
@@ -31534,9 +30896,9 @@ var FloatField = (props) => {
31534
30896
  } = props;
31535
30897
  const { t: t3 } = useI18n();
31536
30898
  if (!isForm && !isEditTable) {
31537
- return /* @__PURE__ */ jsx90("span", { children: formatFloatNumber(propValue ?? defaultValue) });
30899
+ return /* @__PURE__ */ jsx89("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31538
30900
  }
31539
- return /* @__PURE__ */ jsx90(
30901
+ return /* @__PURE__ */ jsx89(
31540
30902
  Controller,
31541
30903
  {
31542
30904
  name: name2 ?? "",
@@ -31547,10 +30909,10 @@ var FloatField = (props) => {
31547
30909
  },
31548
30910
  render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
31549
30911
  const { setError, clearErrors } = methods;
31550
- const [inputValue, setInputValue] = useState19(
30912
+ const [inputValue, setInputValue] = useState18(
31551
30913
  value !== void 0 && value !== null ? formatFloatNumber(value) : ""
31552
30914
  );
31553
- useEffect20(() => {
30915
+ useEffect19(() => {
31554
30916
  if (propValue !== void 0 && propValue !== null && propValue !== parseFloat(inputValue?.replace(/,/g, ""))) {
31555
30917
  setInputValue(formatFloatNumber(propValue));
31556
30918
  clearErrors(name2);
@@ -31561,9 +30923,9 @@ var FloatField = (props) => {
31561
30923
  setInputValue("");
31562
30924
  }
31563
30925
  }, [value, name2, clearErrors, propValue]);
31564
- const isDirtyRef = useRef17(false);
31565
- const inputRef = useRef17(null);
31566
- const lastCommittedValueRef = useRef17(null);
30926
+ const isDirtyRef = useRef16(false);
30927
+ const inputRef = useRef16(null);
30928
+ const lastCommittedValueRef = useRef16(null);
31567
30929
  const handleInputChange = (e3) => {
31568
30930
  const newValue = e3.target.value;
31569
30931
  const valueWithoutCommas = newValue.replace(/,/g, "");
@@ -31641,8 +31003,8 @@ var FloatField = (props) => {
31641
31003
  }
31642
31004
  isDirtyRef.current = false;
31643
31005
  };
31644
- return /* @__PURE__ */ jsxs60(Fragment25, { children: [
31645
- /* @__PURE__ */ jsx90(
31006
+ return /* @__PURE__ */ jsxs57(Fragment25, { children: [
31007
+ /* @__PURE__ */ jsx89(
31646
31008
  "input",
31647
31009
  {
31648
31010
  ref: inputRef,
@@ -31662,7 +31024,7 @@ var FloatField = (props) => {
31662
31024
  `
31663
31025
  }
31664
31026
  ),
31665
- error2 && !isEditTable && /* @__PURE__ */ jsx90("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31027
+ error2 && !isEditTable && /* @__PURE__ */ jsx89("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31666
31028
  ] });
31667
31029
  }
31668
31030
  }
@@ -31670,8 +31032,8 @@ var FloatField = (props) => {
31670
31032
  };
31671
31033
 
31672
31034
  // src/widgets/basic/float-time-field/float-time.tsx
31673
- import { useState as useState20 } from "react";
31674
- import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs61 } from "react/jsx-runtime";
31035
+ import { useState as useState19 } from "react";
31036
+ import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs58 } from "react/jsx-runtime";
31675
31037
  var FloatTimeField = (props) => {
31676
31038
  const {
31677
31039
  name: name2,
@@ -31687,9 +31049,9 @@ var FloatTimeField = (props) => {
31687
31049
  const { t: t3 } = useI18n();
31688
31050
  if (!isForm) {
31689
31051
  const formatValue = value ?? 0;
31690
- return /* @__PURE__ */ jsx91("span", { children: convertFloatToTime(formatValue) });
31052
+ return /* @__PURE__ */ jsx90("span", { children: convertFloatToTime(formatValue) });
31691
31053
  }
31692
- return /* @__PURE__ */ jsx91(
31054
+ return /* @__PURE__ */ jsx90(
31693
31055
  Controller,
31694
31056
  {
31695
31057
  name: name2 ?? "",
@@ -31702,11 +31064,11 @@ var FloatTimeField = (props) => {
31702
31064
  field: { onChange: fieldOnChange, onBlur, value: value2 },
31703
31065
  fieldState: { error: error2, isDirty }
31704
31066
  }) => {
31705
- const [input, setInput] = useState20(
31067
+ const [input, setInput] = useState19(
31706
31068
  convertFloatToTime(value2 ?? defaultValue)
31707
31069
  );
31708
- const [formattedTime, setFormattedTime] = useState20("");
31709
- const [errors, setErrors] = useState20("");
31070
+ const [formattedTime, setFormattedTime] = useState19("");
31071
+ const [errors, setErrors] = useState19("");
31710
31072
  const handleInputChange = (e3) => {
31711
31073
  const raw = e3.target.value.replace(/[^\d:]/g, "");
31712
31074
  setInput(raw);
@@ -31751,8 +31113,8 @@ var FloatTimeField = (props) => {
31751
31113
  }
31752
31114
  onBlur();
31753
31115
  };
31754
- return /* @__PURE__ */ jsxs61(Fragment26, { children: [
31755
- /* @__PURE__ */ jsx91(
31116
+ return /* @__PURE__ */ jsxs58(Fragment26, { children: [
31117
+ /* @__PURE__ */ jsx90(
31756
31118
  "input",
31757
31119
  {
31758
31120
  type: "text",
@@ -31784,7 +31146,7 @@ var FloatTimeField = (props) => {
31784
31146
  readOnly: readonly
31785
31147
  }
31786
31148
  ),
31787
- (error2 || errors) && /* @__PURE__ */ jsx91("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31149
+ (error2 || errors) && /* @__PURE__ */ jsx90("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31788
31150
  ] });
31789
31151
  }
31790
31152
  }
@@ -31792,8 +31154,8 @@ var FloatTimeField = (props) => {
31792
31154
  };
31793
31155
 
31794
31156
  // src/widgets/basic/html-field/html.tsx
31795
- import { useEffect as useEffect21, useRef as useRef18 } from "react";
31796
- import { jsx as jsx92 } from "react/jsx-runtime";
31157
+ import { useEffect as useEffect20, useRef as useRef17 } from "react";
31158
+ import { jsx as jsx91 } from "react/jsx-runtime";
31797
31159
  var HtmlField = (props) => {
31798
31160
  const {
31799
31161
  name: name2,
@@ -31805,18 +31167,18 @@ var HtmlField = (props) => {
31805
31167
  value,
31806
31168
  isEditTable
31807
31169
  } = props;
31808
- const divRef = useRef18(null);
31170
+ const divRef = useRef17(null);
31809
31171
  if (!isForm && !isEditTable) {
31810
- return /* @__PURE__ */ jsx92("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31172
+ return /* @__PURE__ */ jsx91("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31811
31173
  }
31812
- return /* @__PURE__ */ jsx92(
31174
+ return /* @__PURE__ */ jsx91(
31813
31175
  Controller,
31814
31176
  {
31815
31177
  name: name2 ?? "",
31816
31178
  control: methods?.control,
31817
31179
  defaultValue,
31818
31180
  render: ({ field: { onChange: fieldOnChange, value: value2 } }) => {
31819
- useEffect21(() => {
31181
+ useEffect20(() => {
31820
31182
  if (divRef.current && divRef.current.innerHTML !== value2) {
31821
31183
  divRef.current.innerHTML = value2 || "";
31822
31184
  }
@@ -31828,7 +31190,7 @@ var HtmlField = (props) => {
31828
31190
  onChange2(newValue, "");
31829
31191
  }
31830
31192
  };
31831
- return /* @__PURE__ */ jsx92(
31193
+ return /* @__PURE__ */ jsx91(
31832
31194
  "div",
31833
31195
  {
31834
31196
  ref: divRef,
@@ -31847,28 +31209,28 @@ var HtmlField = (props) => {
31847
31209
  };
31848
31210
 
31849
31211
  // src/widgets/basic/image-field/image.tsx
31850
- import { jsx as jsx93 } from "react/jsx-runtime";
31212
+ import { jsx as jsx92 } from "react/jsx-runtime";
31851
31213
  var ImageField = (props) => {
31852
31214
  const { value, type, name: name2, baseURL } = props;
31853
31215
  if (!value) return null;
31854
31216
  if (type === "url") {
31855
- return /* @__PURE__ */ jsx93("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31217
+ return /* @__PURE__ */ jsx92("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31856
31218
  }
31857
- return /* @__PURE__ */ jsx93("div", { id: "qr-code", children: /* @__PURE__ */ jsx93("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31219
+ return /* @__PURE__ */ jsx92("div", { id: "qr-code", children: /* @__PURE__ */ jsx92("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31858
31220
  };
31859
31221
 
31860
31222
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31861
- import React16, { useEffect as useEffect22, useMemo as useMemo10 } from "react";
31223
+ import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
31862
31224
 
31863
31225
  // src/widgets/basic/information-field/information.tsx
31864
- import { Fragment as Fragment27, jsx as jsx94, jsxs as jsxs62 } from "react/jsx-runtime";
31226
+ import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs59 } from "react/jsx-runtime";
31865
31227
  var InfomationField = (props) => {
31866
31228
  const { value, isForm = false, showName = true, stringToColor } = props;
31867
31229
  if (!value || Array.isArray(value) && value.length === 0) {
31868
- return /* @__PURE__ */ jsx94(Fragment27, {});
31230
+ return /* @__PURE__ */ jsx93(Fragment27, {});
31869
31231
  }
31870
31232
  const inforValues = Array.isArray(value) ? value : [value];
31871
- return /* @__PURE__ */ jsx94("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx94(
31233
+ return /* @__PURE__ */ jsx93("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx93(
31872
31234
  AvatarField,
31873
31235
  {
31874
31236
  id: item.id,
@@ -31877,8 +31239,8 @@ var InfomationField = (props) => {
31877
31239
  stringToColor
31878
31240
  },
31879
31241
  item.id
31880
- )) : /* @__PURE__ */ jsxs62("div", { className: "flex gap-2 items-center w-max", children: [
31881
- /* @__PURE__ */ jsx94(
31242
+ )) : /* @__PURE__ */ jsxs59("div", { className: "flex gap-2 items-center w-max", children: [
31243
+ /* @__PURE__ */ jsx93(
31882
31244
  AvatarField,
31883
31245
  {
31884
31246
  avatarSrc: inforValues[0].image_256,
@@ -31888,12 +31250,12 @@ var InfomationField = (props) => {
31888
31250
  stringToColor
31889
31251
  }
31890
31252
  ),
31891
- showName && /* @__PURE__ */ jsx94("span", { className: "capitalize", children: inforValues[0].display_name })
31253
+ showName && /* @__PURE__ */ jsx93("span", { className: "capitalize", children: inforValues[0].display_name })
31892
31254
  ] }) });
31893
31255
  };
31894
31256
 
31895
31257
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31896
- import { jsx as jsx95, jsxs as jsxs63 } from "react/jsx-runtime";
31258
+ import { jsx as jsx94, jsxs as jsxs60 } from "react/jsx-runtime";
31897
31259
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31898
31260
  const { selectProps, data, menuList } = props;
31899
31261
  const { relation } = selectProps;
@@ -31902,8 +31264,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31902
31264
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31903
31265
  )
31904
31266
  )?.[0]?.action?.id;
31905
- return /* @__PURE__ */ jsxs63("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31906
- /* @__PURE__ */ jsx95(
31267
+ return /* @__PURE__ */ jsxs60("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31268
+ /* @__PURE__ */ jsx94(
31907
31269
  AvatarField,
31908
31270
  {
31909
31271
  id: data?.id,
@@ -31915,8 +31277,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31915
31277
  stringToColor
31916
31278
  }
31917
31279
  ),
31918
- /* @__PURE__ */ jsx95("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31919
- /* @__PURE__ */ jsx95(
31280
+ /* @__PURE__ */ jsx94("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31281
+ /* @__PURE__ */ jsx94(
31920
31282
  "span",
31921
31283
  {
31922
31284
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -31924,7 +31286,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31924
31286
  e3.stopPropagation();
31925
31287
  props.removeProps.onClick();
31926
31288
  },
31927
- children: /* @__PURE__ */ jsx95(CloseIcon, {})
31289
+ children: /* @__PURE__ */ jsx94(CloseIcon, {})
31928
31290
  }
31929
31291
  )
31930
31292
  ] });
@@ -31934,9 +31296,9 @@ var CustomMenuList = (props) => {
31934
31296
  const { setIsShowModalMany2Many, searchable } = selectProps;
31935
31297
  const { t: t3 } = useI18n();
31936
31298
  const limitedChildren = React16.Children.toArray(children).slice(0, 10);
31937
- return /* @__PURE__ */ jsxs63(components.MenuList, { ...props, className: "z-[99]", children: [
31299
+ return /* @__PURE__ */ jsxs60(components.MenuList, { ...props, className: "z-[99]", children: [
31938
31300
  limitedChildren,
31939
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs63(
31301
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs60(
31940
31302
  "button",
31941
31303
  {
31942
31304
  type: "button",
@@ -31981,7 +31343,7 @@ var Many2ManyTagField = (props) => {
31981
31343
  value: item.id,
31982
31344
  label: item.name ?? item.display_name
31983
31345
  })) : [];
31984
- return /* @__PURE__ */ jsx95(
31346
+ return /* @__PURE__ */ jsx94(
31985
31347
  InfomationField,
31986
31348
  {
31987
31349
  value: optionValue || null,
@@ -31990,7 +31352,7 @@ var Many2ManyTagField = (props) => {
31990
31352
  }
31991
31353
  );
31992
31354
  }
31993
- return /* @__PURE__ */ jsx95(
31355
+ return /* @__PURE__ */ jsx94(
31994
31356
  Controller,
31995
31357
  {
31996
31358
  name: name2 ?? "",
@@ -32000,7 +31362,7 @@ var Many2ManyTagField = (props) => {
32000
31362
  },
32001
31363
  render: ({ field, fieldState: { error: error2 } }) => {
32002
31364
  const { clearErrors } = methods;
32003
- useEffect22(() => {
31365
+ useEffect21(() => {
32004
31366
  if (field.value) {
32005
31367
  clearErrors(name2);
32006
31368
  }
@@ -32026,8 +31388,8 @@ var Many2ManyTagField = (props) => {
32026
31388
  onChange2?.(name2 ?? "", newValue);
32027
31389
  clearErrors(name2);
32028
31390
  };
32029
- return /* @__PURE__ */ jsxs63("div", { className: "group h-full overflow-y-auto", children: [
32030
- /* @__PURE__ */ jsx95(
31391
+ return /* @__PURE__ */ jsxs60("div", { className: "group h-full overflow-y-auto", children: [
31392
+ /* @__PURE__ */ jsx94(
32031
31393
  StateManagedSelect$1,
32032
31394
  {
32033
31395
  options: options2,
@@ -32105,7 +31467,7 @@ var Many2ManyTagField = (props) => {
32105
31467
  })
32106
31468
  },
32107
31469
  components: isUser ? {
32108
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx95(
31470
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx94(
32109
31471
  CustomMultiValue,
32110
31472
  {
32111
31473
  ...multiValueProps,
@@ -32114,7 +31476,7 @@ var Many2ManyTagField = (props) => {
32114
31476
  ),
32115
31477
  IndicatorSeparator: () => null
32116
31478
  } : {
32117
- MenuList: (menuListProps) => /* @__PURE__ */ jsx95(
31479
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx94(
32118
31480
  CustomMenuList,
32119
31481
  {
32120
31482
  ...menuListProps,
@@ -32125,13 +31487,13 @@ var Many2ManyTagField = (props) => {
32125
31487
  }
32126
31488
  ),
32127
31489
  IndicatorSeparator: () => null,
32128
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx95(components.DropdownIndicator, { ...props2 }),
32129
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx95(components.ClearIndicator, { ...props2 })
31490
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.DropdownIndicator, { ...props2 }),
31491
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx94(components.ClearIndicator, { ...props2 })
32130
31492
  },
32131
31493
  required: !invisible && required
32132
31494
  }
32133
31495
  ),
32134
- !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31496
+ !isEditTable && error2 && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32135
31497
  ] });
32136
31498
  }
32137
31499
  }
@@ -32139,8 +31501,8 @@ var Many2ManyTagField = (props) => {
32139
31501
  };
32140
31502
 
32141
31503
  // src/widgets/basic/monetary-field/monetary.tsx
32142
- import { useEffect as useEffect23 } from "react";
32143
- import { Fragment as Fragment28, jsx as jsx96, jsxs as jsxs64 } from "react/jsx-runtime";
31504
+ import { useEffect as useEffect22 } from "react";
31505
+ import { Fragment as Fragment28, jsx as jsx95, jsxs as jsxs61 } from "react/jsx-runtime";
32144
31506
  var MonetaryField = (props) => {
32145
31507
  const { t: t3 } = useI18n();
32146
31508
  const {
@@ -32160,26 +31522,26 @@ var MonetaryField = (props) => {
32160
31522
  isEditTable
32161
31523
  } = props;
32162
31524
  if (isForm && name2 === "amount_residual") {
32163
- return /* @__PURE__ */ jsxs64("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32164
- /* @__PURE__ */ jsxs64("span", { className: "font-semibold", children: [
31525
+ return /* @__PURE__ */ jsxs61("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
31526
+ /* @__PURE__ */ jsxs61("span", { className: "font-semibold", children: [
32165
31527
  string,
32166
31528
  ":"
32167
31529
  ] }),
32168
- /* @__PURE__ */ jsx96("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
31530
+ /* @__PURE__ */ jsx95("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32169
31531
  ] });
32170
31532
  }
32171
31533
  if (!isForm) {
32172
31534
  const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32173
31535
  if (widget === "monetary" && !formValues?.currency_id) {
32174
- return /* @__PURE__ */ jsx96("span", { children: `${formatNumberOnly(
31536
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32175
31537
  parseFloat(String(value ?? defaultValue))
32176
31538
  )} VND` });
32177
31539
  }
32178
- return /* @__PURE__ */ jsx96("span", { children: `${formatNumberOnly(
31540
+ return /* @__PURE__ */ jsx95("span", { children: `${formatNumberOnly(
32179
31541
  parseFloat(value ?? defaultValue)
32180
31542
  )} ${currencySymbol}` });
32181
31543
  }
32182
- return /* @__PURE__ */ jsx96(
31544
+ return /* @__PURE__ */ jsx95(
32183
31545
  Controller,
32184
31546
  {
32185
31547
  name: name2 ?? "",
@@ -32193,13 +31555,13 @@ var MonetaryField = (props) => {
32193
31555
  fieldState: { error: error2 }
32194
31556
  }) => {
32195
31557
  const { setError, clearErrors } = methods;
32196
- useEffect23(() => {
31558
+ useEffect22(() => {
32197
31559
  if (value2 !== void 0 && value2 !== null && !isNaN(value2)) {
32198
31560
  clearErrors(name2);
32199
31561
  }
32200
31562
  }, [value2]);
32201
- return /* @__PURE__ */ jsxs64(Fragment28, { children: [
32202
- /* @__PURE__ */ jsx96(
31563
+ return /* @__PURE__ */ jsxs61(Fragment28, { children: [
31564
+ /* @__PURE__ */ jsx95(
32203
31565
  "input",
32204
31566
  {
32205
31567
  value: formatNumberOnly(value2),
@@ -32237,7 +31599,7 @@ var MonetaryField = (props) => {
32237
31599
  `
32238
31600
  }
32239
31601
  ),
32240
- !isEditTable && error2 && /* @__PURE__ */ jsx96("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31602
+ !isEditTable && error2 && /* @__PURE__ */ jsx95("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32241
31603
  ] });
32242
31604
  }
32243
31605
  }
@@ -32245,14 +31607,14 @@ var MonetaryField = (props) => {
32245
31607
  };
32246
31608
 
32247
31609
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
32248
- import { jsx as jsx97 } from "react/jsx-runtime";
31610
+ import { jsx as jsx96 } from "react/jsx-runtime";
32249
31611
  var PaidBadgedField = () => {
32250
- return /* @__PURE__ */ jsx97("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx97(PaidIcon, {}) });
31612
+ return /* @__PURE__ */ jsx96("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx96(PaidIcon, {}) });
32251
31613
  };
32252
31614
 
32253
31615
  // src/widgets/basic/priority-field/rating-star.tsx
32254
- import React17, { useEffect as useEffect24, useState as useState21 } from "react";
32255
- import { jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
31616
+ import React17, { useEffect as useEffect23, useState as useState20 } from "react";
31617
+ import { jsx as jsx97, jsxs as jsxs62 } from "react/jsx-runtime";
32256
31618
  var RatingStarField = (props) => {
32257
31619
  const {
32258
31620
  label,
@@ -32261,9 +31623,9 @@ var RatingStarField = (props) => {
32261
31623
  onSelectPriority,
32262
31624
  id
32263
31625
  } = props;
32264
- const [rating, setRating] = useState21(defaultValue);
32265
- const [hover, setHover] = useState21(0);
32266
- useEffect24(() => {
31626
+ const [rating, setRating] = useState20(defaultValue);
31627
+ const [hover, setHover] = useState20(0);
31628
+ useEffect23(() => {
32267
31629
  setRating(defaultValue);
32268
31630
  }, [defaultValue]);
32269
31631
  const handleClick = (value) => {
@@ -32287,7 +31649,7 @@ var RatingStarField = (props) => {
32287
31649
  setHover(0);
32288
31650
  setRating(0);
32289
31651
  };
32290
- return /* @__PURE__ */ jsx98(
31652
+ return /* @__PURE__ */ jsx97(
32291
31653
  "div",
32292
31654
  {
32293
31655
  className: "flex gap-1 cursor-pointer w-fit",
@@ -32297,17 +31659,17 @@ var RatingStarField = (props) => {
32297
31659
  const starValue = index4 + 1;
32298
31660
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
32299
31661
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
32300
- return /* @__PURE__ */ jsxs65(React17.Fragment, { children: [
32301
- /* @__PURE__ */ jsx98(
31662
+ return /* @__PURE__ */ jsxs62(React17.Fragment, { children: [
31663
+ /* @__PURE__ */ jsx97(
32302
31664
  "div",
32303
31665
  {
32304
31666
  onMouseEnter: () => handleHover(starValue),
32305
31667
  onClick: () => handleClick(starValue),
32306
31668
  "data-tooltip-id": `${id}-${starValue}`,
32307
- children: /* @__PURE__ */ jsx98(StarIcon, { fill: fillColor, stroke: strokeColor })
31669
+ children: /* @__PURE__ */ jsx97(StarIcon, { fill: fillColor, stroke: strokeColor })
32308
31670
  }
32309
31671
  ),
32310
- /* @__PURE__ */ jsx98(
31672
+ /* @__PURE__ */ jsx97(
32311
31673
  M,
32312
31674
  {
32313
31675
  className: "z-50",
@@ -32323,7 +31685,7 @@ var RatingStarField = (props) => {
32323
31685
  };
32324
31686
 
32325
31687
  // src/widgets/basic/priority-field/priority.tsx
32326
- import { jsx as jsx99 } from "react/jsx-runtime";
31688
+ import { jsx as jsx98 } from "react/jsx-runtime";
32327
31689
  var PriorityField = (props) => {
32328
31690
  const {
32329
31691
  isForm,
@@ -32339,7 +31701,7 @@ var PriorityField = (props) => {
32339
31701
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
32340
31702
  const defaultPriority = parseInt(value) + 1;
32341
31703
  if (!isForm) {
32342
- return /* @__PURE__ */ jsx99(
31704
+ return /* @__PURE__ */ jsx98(
32343
31705
  RatingStarField,
32344
31706
  {
32345
31707
  label,
@@ -32350,7 +31712,7 @@ var PriorityField = (props) => {
32350
31712
  }
32351
31713
  );
32352
31714
  }
32353
- return /* @__PURE__ */ jsx99(
31715
+ return /* @__PURE__ */ jsx98(
32354
31716
  Controller,
32355
31717
  {
32356
31718
  name: name ?? "",
@@ -32360,7 +31722,7 @@ var PriorityField = (props) => {
32360
31722
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
32361
31723
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
32362
31724
  };
32363
- return /* @__PURE__ */ jsx99(
31725
+ return /* @__PURE__ */ jsx98(
32364
31726
  RatingStarField,
32365
31727
  {
32366
31728
  label,
@@ -32376,8 +31738,8 @@ var PriorityField = (props) => {
32376
31738
  };
32377
31739
 
32378
31740
  // src/widgets/basic/radio-group-field/radio-group.tsx
32379
- import { useEffect as useEffect25 } from "react";
32380
- import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
31741
+ import { useEffect as useEffect24 } from "react";
31742
+ import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
32381
31743
  var RadioGroupField = (props) => {
32382
31744
  const {
32383
31745
  name: name2,
@@ -32390,19 +31752,19 @@ var RadioGroupField = (props) => {
32390
31752
  onChange: onChange2,
32391
31753
  setValue
32392
31754
  } = props;
32393
- useEffect25(() => {
31755
+ useEffect24(() => {
32394
31756
  if (selection?.length > 0) {
32395
31757
  if (setValue) setValue(name2, selection?.[0]?.[0]);
32396
31758
  }
32397
31759
  }, [selection, name2, setValue]);
32398
31760
  if (!methods) return null;
32399
- return /* @__PURE__ */ jsx100(
31761
+ return /* @__PURE__ */ jsx99(
32400
31762
  Controller,
32401
31763
  {
32402
31764
  name: name2 ?? "",
32403
31765
  control: methods.control,
32404
- render: ({ field }) => /* @__PURE__ */ jsx100("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs66("div", { className: "flex items-center gap-1", children: [
32405
- /* @__PURE__ */ jsx100(
31766
+ render: ({ field }) => /* @__PURE__ */ jsx99("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs63("div", { className: "flex items-center gap-1", children: [
31767
+ /* @__PURE__ */ jsx99(
32406
31768
  "input",
32407
31769
  {
32408
31770
  type: "radio",
@@ -32421,7 +31783,7 @@ var RadioGroupField = (props) => {
32421
31783
  className: "custom-radio"
32422
31784
  }
32423
31785
  ),
32424
- /* @__PURE__ */ jsx100("label", { htmlFor: String(select[0]), children: select[1] })
31786
+ /* @__PURE__ */ jsx99("label", { htmlFor: String(select[0]), children: select[1] })
32425
31787
  ] }, select[0])) })
32426
31788
  }
32427
31789
  );
@@ -32429,7 +31791,7 @@ var RadioGroupField = (props) => {
32429
31791
 
32430
31792
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32431
31793
  var import_moment3 = __toESM(require_moment());
32432
- import { jsx as jsx101, jsxs as jsxs67 } from "react/jsx-runtime";
31794
+ import { jsx as jsx100, jsxs as jsxs64 } from "react/jsx-runtime";
32433
31795
  var RemainingDaysField = (props) => {
32434
31796
  const {
32435
31797
  value,
@@ -32440,14 +31802,14 @@ var RemainingDaysField = (props) => {
32440
31802
  if (!value) return null;
32441
31803
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32442
31804
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32443
- return /* @__PURE__ */ jsxs67("div", { className: isForm ? "mb-4" : "", children: [
32444
- /* @__PURE__ */ jsx101(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32445
- /* @__PURE__ */ jsx101(
31805
+ return /* @__PURE__ */ jsxs64("div", { className: isForm ? "mb-4" : "", children: [
31806
+ /* @__PURE__ */ jsx100(M, { id: `remainingDays_${value}`, place: "top", content: string }),
31807
+ /* @__PURE__ */ jsx100(
32446
31808
  "div",
32447
31809
  {
32448
31810
  "data-tooltip-id": `remainingDays_${value}`,
32449
31811
  className: "flex items-center w-fit cursor-context-menu",
32450
- children: /* @__PURE__ */ jsx101(
31812
+ children: /* @__PURE__ */ jsx100(
32451
31813
  "div",
32452
31814
  {
32453
31815
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32460,7 +31822,7 @@ var RemainingDaysField = (props) => {
32460
31822
  };
32461
31823
 
32462
31824
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32463
- import { Fragment as Fragment29, jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
31825
+ import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs65 } from "react/jsx-runtime";
32464
31826
  var SelectDropdownField = (props) => {
32465
31827
  const { t: t3 } = useI18n();
32466
31828
  const {
@@ -32482,9 +31844,9 @@ var SelectDropdownField = (props) => {
32482
31844
  label: val[1]
32483
31845
  })) : [];
32484
31846
  if (!isForm && !isEditTable) {
32485
- return /* @__PURE__ */ jsx102("span", { children: options2?.find((item) => item?.value === value)?.label });
31847
+ return /* @__PURE__ */ jsx101("span", { children: options2?.find((item) => item?.value === value)?.label });
32486
31848
  } else {
32487
- return /* @__PURE__ */ jsx102(
31849
+ return /* @__PURE__ */ jsx101(
32488
31850
  Controller,
32489
31851
  {
32490
31852
  name: name2 || "",
@@ -32511,8 +31873,8 @@ var SelectDropdownField = (props) => {
32511
31873
  value: defaultValue || null,
32512
31874
  required: !invisible && required
32513
31875
  };
32514
- return /* @__PURE__ */ jsxs68(Fragment29, { children: [
32515
- /* @__PURE__ */ jsx102("div", { className: "group", children: /* @__PURE__ */ jsx102(
31876
+ return /* @__PURE__ */ jsxs65(Fragment29, { children: [
31877
+ /* @__PURE__ */ jsx101("div", { className: "group", children: /* @__PURE__ */ jsx101(
32516
31878
  StateManagedSelect$1,
32517
31879
  {
32518
31880
  ...commonProps,
@@ -32567,12 +31929,12 @@ var SelectDropdownField = (props) => {
32567
31929
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32568
31930
  components: {
32569
31931
  IndicatorSeparator: () => null,
32570
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx102(components.DropdownIndicator, { ...props2 })
31932
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx101(components.DropdownIndicator, { ...props2 })
32571
31933
  },
32572
31934
  noOptionsMessage: () => t3("no-available")
32573
31935
  }
32574
31936
  ) }),
32575
- !isEditTable && error2 && /* @__PURE__ */ jsx102("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31937
+ !isEditTable && error2 && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32576
31938
  ] });
32577
31939
  }
32578
31940
  }
@@ -32581,7 +31943,7 @@ var SelectDropdownField = (props) => {
32581
31943
  };
32582
31944
 
32583
31945
  // src/widgets/basic/textarea-field/textarea.tsx
32584
- import { jsx as jsx103 } from "react/jsx-runtime";
31946
+ import { jsx as jsx102 } from "react/jsx-runtime";
32585
31947
  var TextAreaField = (props) => {
32586
31948
  const {
32587
31949
  methods,
@@ -32605,9 +31967,9 @@ var TextAreaField = (props) => {
32605
31967
  }
32606
31968
  }) : {};
32607
31969
  if (!isForm) {
32608
- return /* @__PURE__ */ jsx103("span", { children: value && typeof value === "object" ? value.display_name : value });
31970
+ return /* @__PURE__ */ jsx102("span", { children: value && typeof value === "object" ? value.display_name : value });
32609
31971
  }
32610
- return /* @__PURE__ */ jsx103(
31972
+ return /* @__PURE__ */ jsx102(
32611
31973
  "textarea",
32612
31974
  {
32613
31975
  ...formProps,
@@ -32623,7 +31985,7 @@ var TextAreaField = (props) => {
32623
31985
  };
32624
31986
 
32625
31987
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32626
- import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
31988
+ import { jsx as jsx103, jsxs as jsxs66 } from "react/jsx-runtime";
32627
31989
  var ToggleButtonField = (props) => {
32628
31990
  const {
32629
31991
  name: name2,
@@ -32633,13 +31995,13 @@ var ToggleButtonField = (props) => {
32633
31995
  onChange: onChange2,
32634
31996
  methods
32635
31997
  } = props;
32636
- return /* @__PURE__ */ jsx104(
31998
+ return /* @__PURE__ */ jsx103(
32637
31999
  Controller,
32638
32000
  {
32639
32001
  name: name2 ?? "",
32640
32002
  control: methods?.control,
32641
- render: ({ field }) => /* @__PURE__ */ jsx104("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs69("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32642
- /* @__PURE__ */ jsx104(
32003
+ render: ({ field }) => /* @__PURE__ */ jsx103("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs66("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32004
+ /* @__PURE__ */ jsx103(
32643
32005
  "input",
32644
32006
  {
32645
32007
  ...field,
@@ -32658,7 +32020,7 @@ var ToggleButtonField = (props) => {
32658
32020
  checked: field.value ?? false
32659
32021
  }
32660
32022
  ),
32661
- /* @__PURE__ */ jsx104(
32023
+ /* @__PURE__ */ jsx103(
32662
32024
  "span",
32663
32025
  {
32664
32026
  style: {
@@ -32667,7 +32029,7 @@ var ToggleButtonField = (props) => {
32667
32029
  },
32668
32030
  className: `rounded-full transition duration-300
32669
32031
  ${field.value ? "bg-primary" : "bg-gray-300"}`,
32670
- children: /* @__PURE__ */ jsx104(
32032
+ children: /* @__PURE__ */ jsx103(
32671
32033
  "span",
32672
32034
  {
32673
32035
  style: {
@@ -32691,8 +32053,8 @@ var ToggleButtonField = (props) => {
32691
32053
  };
32692
32054
 
32693
32055
  // src/widgets/basic/integer-field/integer.tsx
32694
- import { useEffect as useEffect26, useRef as useRef19, useState as useState22 } from "react";
32695
- import { Fragment as Fragment30, jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32056
+ import { useEffect as useEffect25, useRef as useRef18, useState as useState21 } from "react";
32057
+ import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs67 } from "react/jsx-runtime";
32696
32058
  var IntegerField = (props) => {
32697
32059
  const {
32698
32060
  name: name2,
@@ -32711,9 +32073,9 @@ var IntegerField = (props) => {
32711
32073
  const { t: t3 } = useI18n();
32712
32074
  if (!isForm && !isEditTable) {
32713
32075
  const displayValue = value ?? defaultValue;
32714
- return /* @__PURE__ */ jsx105("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32076
+ return /* @__PURE__ */ jsx104("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32715
32077
  }
32716
- return /* @__PURE__ */ jsx105(
32078
+ return /* @__PURE__ */ jsx104(
32717
32079
  Controller,
32718
32080
  {
32719
32081
  name: name2 || "",
@@ -32727,13 +32089,13 @@ var IntegerField = (props) => {
32727
32089
  fieldState: { error: error2 }
32728
32090
  }) => {
32729
32091
  const { setError, clearErrors } = methods;
32730
- const isDirtyRef = useRef19(false);
32731
- const inputRef = useRef19(null);
32732
- const lastCommittedValueRef = useRef19(null);
32733
- const [inputValue, setInputValue] = useState22(
32092
+ const isDirtyRef = useRef18(false);
32093
+ const inputRef = useRef18(null);
32094
+ const lastCommittedValueRef = useRef18(null);
32095
+ const [inputValue, setInputValue] = useState21(
32734
32096
  value2 !== void 0 && value2 !== null ? String(value2) : ""
32735
32097
  );
32736
- useEffect26(() => {
32098
+ useEffect25(() => {
32737
32099
  if (value2 !== void 0 && value2 !== null) {
32738
32100
  setInputValue(String(value2));
32739
32101
  clearErrors(name2);
@@ -32791,8 +32153,8 @@ var IntegerField = (props) => {
32791
32153
  inputRef.current?.blur();
32792
32154
  clearErrors(name2);
32793
32155
  };
32794
- return /* @__PURE__ */ jsxs70(Fragment30, { children: [
32795
- /* @__PURE__ */ jsx105(
32156
+ return /* @__PURE__ */ jsxs67(Fragment30, { children: [
32157
+ /* @__PURE__ */ jsx104(
32796
32158
  "input",
32797
32159
  {
32798
32160
  ref: inputRef,
@@ -32827,7 +32189,7 @@ var IntegerField = (props) => {
32827
32189
  `
32828
32190
  }
32829
32191
  ),
32830
- error2 && isEditTable && /* @__PURE__ */ jsx105("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32192
+ error2 && isEditTable && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32831
32193
  ] });
32832
32194
  }
32833
32195
  }
@@ -32835,7 +32197,7 @@ var IntegerField = (props) => {
32835
32197
  };
32836
32198
 
32837
32199
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32838
- import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32200
+ import { jsx as jsx105, jsxs as jsxs68 } from "react/jsx-runtime";
32839
32201
  var StatusDropdownField = (props) => {
32840
32202
  const {
32841
32203
  buttonRef,
@@ -32847,13 +32209,13 @@ var StatusDropdownField = (props) => {
32847
32209
  handleClick,
32848
32210
  colors: colors2
32849
32211
  } = props;
32850
- return /* @__PURE__ */ jsxs71(
32212
+ return /* @__PURE__ */ jsxs68(
32851
32213
  "div",
32852
32214
  {
32853
32215
  ref: buttonRef,
32854
32216
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32855
32217
  children: [
32856
- /* @__PURE__ */ jsx106(
32218
+ /* @__PURE__ */ jsx105(
32857
32219
  "button",
32858
32220
  {
32859
32221
  type: "button",
@@ -32861,23 +32223,23 @@ var StatusDropdownField = (props) => {
32861
32223
  className: `transition-all rounded-full size-5 cursor-pointer shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] focus:!shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-[#dbe0e6] ${state == "normal" ? "bg-[#e9ecef]" : state == "done" ? "bg-primary" : "bg-red-500"}`
32862
32224
  }
32863
32225
  ),
32864
- isOpen && /* @__PURE__ */ jsx106("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) => {
32226
+ isOpen && /* @__PURE__ */ jsx105("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
32865
32227
  const isActive = item[0] == state;
32866
- return /* @__PURE__ */ jsxs71(
32228
+ return /* @__PURE__ */ jsxs68(
32867
32229
  "div",
32868
32230
  {
32869
32231
  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" : ""}`,
32870
32232
  onClick: () => handleClick(item[0]),
32871
32233
  children: [
32872
- /* @__PURE__ */ jsx106("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx106(CheckIcon, {}) }),
32873
- /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2", children: [
32874
- /* @__PURE__ */ jsx106(
32234
+ /* @__PURE__ */ jsx105("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx105(CheckIcon, {}) }),
32235
+ /* @__PURE__ */ jsxs68("div", { className: "flex items-center gap-2", children: [
32236
+ /* @__PURE__ */ jsx105(
32875
32237
  "div",
32876
32238
  {
32877
32239
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
32878
32240
  }
32879
32241
  ),
32880
- /* @__PURE__ */ jsx106("span", { className: "text-sm", children: item[1] })
32242
+ /* @__PURE__ */ jsx105("span", { className: "text-sm", children: item[1] })
32881
32243
  ] })
32882
32244
  ]
32883
32245
  },
@@ -32891,8 +32253,8 @@ var StatusDropdownField = (props) => {
32891
32253
 
32892
32254
  // src/widgets/basic/many2many-field/many2many.tsx
32893
32255
  import { createPortal as createPortal5 } from "react-dom";
32894
- import { useEffect as useEffect27 } from "react";
32895
- import { jsx as jsx107, jsxs as jsxs72 } from "react/jsx-runtime";
32256
+ import { useEffect as useEffect26 } from "react";
32257
+ import { jsx as jsx106, jsxs as jsxs69 } from "react/jsx-runtime";
32896
32258
  var Many2ManyField = (props) => {
32897
32259
  const { t: t3 } = useI18n();
32898
32260
  const {
@@ -32951,7 +32313,7 @@ var Many2ManyField = (props) => {
32951
32313
  clearSearch
32952
32314
  } = searchController;
32953
32315
  const { handleCheckBoxAll, checkedAll, selectedRowKeysRef } = tableHeadController;
32954
- useEffect27(() => {
32316
+ useEffect26(() => {
32955
32317
  const groupItems = Array.isArray(selectedTags) ? selectedTags.filter((item) => item.type === "group_by") : [];
32956
32318
  if (groupItems?.length > 0) {
32957
32319
  typeof setPageLimit === "function" && setPageLimit(80);
@@ -32966,7 +32328,7 @@ var Many2ManyField = (props) => {
32966
32328
  };
32967
32329
  }, [selectedTags]);
32968
32330
  return createPortal5(
32969
- /* @__PURE__ */ jsxs72(
32331
+ /* @__PURE__ */ jsxs69(
32970
32332
  "div",
32971
32333
  {
32972
32334
  style: {
@@ -32974,8 +32336,8 @@ var Many2ManyField = (props) => {
32974
32336
  },
32975
32337
  className: "fixed bottom-0 left-0 right-0 top-0",
32976
32338
  children: [
32977
- /* @__PURE__ */ jsx107("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32978
- /* @__PURE__ */ jsx107("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs72(
32339
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32340
+ /* @__PURE__ */ jsx106("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs69(
32979
32341
  "div",
32980
32342
  {
32981
32343
  style: {
@@ -32983,12 +32345,12 @@ var Many2ManyField = (props) => {
32983
32345
  },
32984
32346
  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",
32985
32347
  children: [
32986
- /* @__PURE__ */ jsxs72("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32987
- /* @__PURE__ */ jsx107("div", { className: "text-[20px] font-semibold", children: title }),
32988
- /* @__PURE__ */ jsx107("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx107(CloseIcon, {}) })
32348
+ /* @__PURE__ */ jsxs69("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32349
+ /* @__PURE__ */ jsx106("div", { className: "text-[20px] font-semibold", children: title }),
32350
+ /* @__PURE__ */ jsx106("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx106(CloseIcon, {}) })
32989
32351
  ] }),
32990
- /* @__PURE__ */ jsxs72("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32991
- /* @__PURE__ */ jsx107("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx107(
32352
+ /* @__PURE__ */ jsxs69("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32353
+ /* @__PURE__ */ jsx106("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx106(
32992
32354
  Search,
32993
32355
  {
32994
32356
  removeSearchItems,
@@ -33022,7 +32384,7 @@ var Many2ManyField = (props) => {
33022
32384
  groupByList
33023
32385
  }
33024
32386
  ) }),
33025
- /* @__PURE__ */ jsx107(
32387
+ /* @__PURE__ */ jsx106(
33026
32388
  PaginationView,
33027
32389
  {
33028
32390
  className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
@@ -33039,20 +32401,20 @@ var Many2ManyField = (props) => {
33039
32401
  }
33040
32402
  )
33041
32403
  ] }),
33042
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx107("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx107("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx107(
32404
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx106("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx106("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx106(
33043
32405
  "div",
33044
32406
  {
33045
32407
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
33046
- children: /* @__PURE__ */ jsx107("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx107("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx107(
32408
+ children: /* @__PURE__ */ jsx106("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx106("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx106(
33047
32409
  "div",
33048
32410
  {
33049
32411
  className: `flex w-full items-center h-full overflow-auto `,
33050
- children: /* @__PURE__ */ jsx107("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs72(
32412
+ children: /* @__PURE__ */ jsx106("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs69(
33051
32413
  "table",
33052
32414
  {
33053
32415
  className: `relative w-full bg-white custom-dropdown `,
33054
32416
  children: [
33055
- /* @__PURE__ */ jsx107(
32417
+ /* @__PURE__ */ jsx106(
33056
32418
  TableHead,
33057
32419
  {
33058
32420
  columns,
@@ -33062,7 +32424,7 @@ var Many2ManyField = (props) => {
33062
32424
  handleCheckBoxAll
33063
32425
  }
33064
32426
  ),
33065
- rows?.length > 0 ? /* @__PURE__ */ jsx107(
32427
+ rows?.length > 0 ? /* @__PURE__ */ jsx106(
33066
32428
  TableBody,
33067
32429
  {
33068
32430
  tableGroupController,
@@ -33102,16 +32464,16 @@ var Many2ManyField = (props) => {
33102
32464
  checkedAll,
33103
32465
  context
33104
32466
  }
33105
- ) : /* @__PURE__ */ jsx107("tr", { children: /* @__PURE__ */ jsx107(
32467
+ ) : /* @__PURE__ */ jsx106("tr", { children: /* @__PURE__ */ jsx106(
33106
32468
  "td",
33107
32469
  {
33108
32470
  className: "w-full",
33109
32471
  colSpan: columns?.length + 2,
33110
- children: /* @__PURE__ */ jsx107(
32472
+ children: /* @__PURE__ */ jsx106(
33111
32473
  "div",
33112
32474
  {
33113
32475
  className: `flex flex-col items-center justify-center gap-3 py-6`,
33114
- children: /* @__PURE__ */ jsx107(EmptyTable, {})
32476
+ children: /* @__PURE__ */ jsx106(EmptyTable, {})
33115
32477
  }
33116
32478
  )
33117
32479
  }
@@ -33122,9 +32484,9 @@ var Many2ManyField = (props) => {
33122
32484
  }
33123
32485
  ) }) })
33124
32486
  }
33125
- ) }) }) : /* @__PURE__ */ jsx107(LayerLoading, {}),
33126
- /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2 mt-auto", children: [
33127
- isDisplayCheckbox && /* @__PURE__ */ jsx107(
32487
+ ) }) }) : /* @__PURE__ */ jsx106(LayerLoading, {}),
32488
+ /* @__PURE__ */ jsxs69("div", { className: "flex items-center gap-2 mt-auto", children: [
32489
+ isDisplayCheckbox && /* @__PURE__ */ jsx106(
33128
32490
  "button",
33129
32491
  {
33130
32492
  disabled: selectedRowKeys?.length === 0,
@@ -33134,7 +32496,7 @@ var Many2ManyField = (props) => {
33134
32496
  children: t3("choose")
33135
32497
  }
33136
32498
  ),
33137
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx107(
32499
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx106(
33138
32500
  "button",
33139
32501
  {
33140
32502
  type: "button",
@@ -33150,7 +32512,7 @@ var Many2ManyField = (props) => {
33150
32512
  children: t3("new")
33151
32513
  }
33152
32514
  ),
33153
- /* @__PURE__ */ jsx107(
32515
+ /* @__PURE__ */ jsx106(
33154
32516
  "button",
33155
32517
  {
33156
32518
  type: "button",
@@ -33171,16 +32533,16 @@ var Many2ManyField = (props) => {
33171
32533
  };
33172
32534
 
33173
32535
  // src/widgets/basic/many2one-field/many2one.tsx
33174
- import React18, { useEffect as useEffect28 } from "react";
33175
- import { Fragment as Fragment31, jsx as jsx108, jsxs as jsxs73 } from "react/jsx-runtime";
32536
+ import React18, { useEffect as useEffect27 } from "react";
32537
+ import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs70 } from "react/jsx-runtime";
33176
32538
  var CustomMenuList2 = (props) => {
33177
32539
  const { t: t3 } = useI18n();
33178
32540
  const { options: options2, children, selectProps } = props;
33179
32541
  const { setIsShowModalMany2Many, searchable } = selectProps;
33180
32542
  const limitedChildren = React18.Children.toArray(children).slice(0, 10);
33181
- return /* @__PURE__ */ jsxs73(components.MenuList, { ...props, className: "z-[99]", children: [
32543
+ return /* @__PURE__ */ jsxs70(components.MenuList, { ...props, className: "z-[99]", children: [
33182
32544
  limitedChildren,
33183
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs73(
32545
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs70(
33184
32546
  "button",
33185
32547
  {
33186
32548
  type: "button",
@@ -33223,14 +32585,14 @@ var Many2OneField = (props) => {
33223
32585
  const { t: t3 } = useI18n();
33224
32586
  if (!isForm && !isEditTable) {
33225
32587
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
33226
- return /* @__PURE__ */ jsxs73(Fragment31, { children: [
32588
+ return /* @__PURE__ */ jsxs70(Fragment31, { children: [
33227
32589
  allowShowDetail && renderDetail({
33228
32590
  idToolTip: String(name2) + Number(index4),
33229
32591
  model: options2?.model ?? relation,
33230
32592
  context: contextObject,
33231
32593
  idForm: id
33232
32594
  }),
33233
- /* @__PURE__ */ jsx108(
32595
+ /* @__PURE__ */ jsx107(
33234
32596
  "span",
33235
32597
  {
33236
32598
  className: "cursor-pointer",
@@ -33241,20 +32603,20 @@ var Many2OneField = (props) => {
33241
32603
  )
33242
32604
  ] });
33243
32605
  }
33244
- return /* @__PURE__ */ jsxs73(Fragment31, { children: [
32606
+ return /* @__PURE__ */ jsxs70(Fragment31, { children: [
33245
32607
  allowShowDetail && renderDetail({
33246
32608
  idToolTip: String(name2),
33247
32609
  model: options2?.model ?? relation,
33248
32610
  context: contextObject,
33249
32611
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
33250
32612
  }),
33251
- /* @__PURE__ */ jsx108(
32613
+ /* @__PURE__ */ jsx107(
33252
32614
  "div",
33253
32615
  {
33254
32616
  id: name2,
33255
32617
  "data-tooltip-id": name2,
33256
32618
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
33257
- children: /* @__PURE__ */ jsx108(
32619
+ children: /* @__PURE__ */ jsx107(
33258
32620
  Controller,
33259
32621
  {
33260
32622
  name: name2 ?? "",
@@ -33274,13 +32636,13 @@ var Many2OneField = (props) => {
33274
32636
  const selectedOption = isForm && options2?.service && options2?.type && options2?.model ? tempSelectedOption : tempSelectedOption && options2?.length > 0 ? options2.find(
33275
32637
  (option) => option.value === tempSelectedOption?.value
33276
32638
  ) : currentValue ? currentValue : null;
33277
- useEffect28(() => {
32639
+ useEffect27(() => {
33278
32640
  if (error2 && selectedOption) {
33279
32641
  methods?.clearErrors(name2);
33280
32642
  }
33281
32643
  }, [selectedOption]);
33282
- return /* @__PURE__ */ jsxs73("div", { className: "h-full", children: [
33283
- /* @__PURE__ */ jsx108(
32644
+ return /* @__PURE__ */ jsxs70("div", { className: "h-full", children: [
32645
+ /* @__PURE__ */ jsx107(
33284
32646
  StateManagedSelect$1,
33285
32647
  {
33286
32648
  menuShouldScrollIntoView: false,
@@ -33356,7 +32718,7 @@ var Many2OneField = (props) => {
33356
32718
  })
33357
32719
  },
33358
32720
  components: {
33359
- MenuList: (menuListProps) => /* @__PURE__ */ jsx108(
32721
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx107(
33360
32722
  CustomMenuList2,
33361
32723
  {
33362
32724
  ...menuListProps,
@@ -33367,13 +32729,13 @@ var Many2OneField = (props) => {
33367
32729
  }
33368
32730
  ),
33369
32731
  IndicatorSeparator: () => null,
33370
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx108(components.DropdownIndicator, { ...props2 })
32732
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx107(components.DropdownIndicator, { ...props2 })
33371
32733
  },
33372
32734
  isDisabled: readonly,
33373
32735
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33374
32736
  }
33375
32737
  ),
33376
- !isEditTable && error2 && /* @__PURE__ */ jsx108("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32738
+ !isEditTable && error2 && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33377
32739
  ] });
33378
32740
  }
33379
32741
  }
@@ -33384,7 +32746,7 @@ var Many2OneField = (props) => {
33384
32746
  };
33385
32747
 
33386
32748
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33387
- import { jsx as jsx109, jsxs as jsxs74 } from "react/jsx-runtime";
32749
+ import { jsx as jsx108, jsxs as jsxs71 } from "react/jsx-runtime";
33388
32750
  var StatusbarDurationField = (props) => {
33389
32751
  const {
33390
32752
  disabled,
@@ -33394,14 +32756,14 @@ var StatusbarDurationField = (props) => {
33394
32756
  defaultValue,
33395
32757
  setModalStatus
33396
32758
  } = props;
33397
- return /* @__PURE__ */ jsx109(
32759
+ return /* @__PURE__ */ jsx108(
33398
32760
  "div",
33399
32761
  {
33400
32762
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33401
- children: /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-[24px]", children: [
33402
- /* @__PURE__ */ jsx109("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
32763
+ children: /* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-[24px]", children: [
32764
+ /* @__PURE__ */ jsx108("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33403
32765
  const value = option?.id === defaultValue;
33404
- return /* @__PURE__ */ jsxs74(
32766
+ return /* @__PURE__ */ jsxs71(
33405
32767
  "label",
33406
32768
  {
33407
32769
  onClick: () => !disabled && handleClick(option.id),
@@ -33411,7 +32773,7 @@ var StatusbarDurationField = (props) => {
33411
32773
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33412
32774
  `,
33413
32775
  children: [
33414
- /* @__PURE__ */ jsx109(
32776
+ /* @__PURE__ */ jsx108(
33415
32777
  "input",
33416
32778
  {
33417
32779
  type: "radio",
@@ -33421,7 +32783,7 @@ var StatusbarDurationField = (props) => {
33421
32783
  }
33422
32784
  ),
33423
32785
  option?.name,
33424
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx109(
32786
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx108(
33425
32787
  "div",
33426
32788
  {
33427
32789
  className: `absolute top-[5px] bg-[#dee2e6] z-[2] -right-4 w-[30px] h-[30px] border-t-4 border-r-4 border-white transform rotate-45 group-hover:bg-[#ced4da]
@@ -33436,14 +32798,14 @@ var StatusbarDurationField = (props) => {
33436
32798
  }) }),
33437
32799
  dataResponse?.records?.some(
33438
32800
  (item) => item?.fold && item.id !== defaultValue
33439
- ) && /* @__PURE__ */ jsxs74(
32801
+ ) && /* @__PURE__ */ jsxs71(
33440
32802
  "div",
33441
32803
  {
33442
32804
  onClick: () => setModalStatus(!modelStatus),
33443
32805
  className: "w-[24px] h-[24px] cursor-pointer relative",
33444
32806
  children: [
33445
- /* @__PURE__ */ jsx109(MoreIcon, {}),
33446
- modelStatus && /* @__PURE__ */ jsx109(
32807
+ /* @__PURE__ */ jsx108(MoreIcon, {}),
32808
+ modelStatus && /* @__PURE__ */ jsx108(
33447
32809
  "div",
33448
32810
  {
33449
32811
  onClick: (e3) => e3.stopPropagation(),
@@ -33452,7 +32814,7 @@ var StatusbarDurationField = (props) => {
33452
32814
  (item) => item?.fold && item.id !== defaultValue
33453
32815
  )?.map((option) => {
33454
32816
  const value = option?.id === defaultValue;
33455
- return /* @__PURE__ */ jsx109(
32817
+ return /* @__PURE__ */ jsx108(
33456
32818
  "div",
33457
32819
  {
33458
32820
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33474,14 +32836,14 @@ var StatusbarDurationField = (props) => {
33474
32836
 
33475
32837
  // src/widgets/basic/status-bar-field/option/option.tsx
33476
32838
  import { useMemo as useMemo11 } from "react";
33477
- import { Fragment as Fragment32, jsx as jsx110, jsxs as jsxs75 } from "react/jsx-runtime";
32839
+ import { Fragment as Fragment32, jsx as jsx109, jsxs as jsxs72 } from "react/jsx-runtime";
33478
32840
  var StatusBarOptionField = (props) => {
33479
32841
  const { selection, defaultValue } = props;
33480
32842
  const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33481
32843
  const indexInProgress = memoizedStatusOptions?.findIndex(
33482
32844
  (option) => option?.[0] === defaultValue
33483
32845
  );
33484
- return /* @__PURE__ */ jsx110(
32846
+ return /* @__PURE__ */ jsx109(
33485
32847
  "div",
33486
32848
  {
33487
32849
  style: {
@@ -33490,8 +32852,8 @@ var StatusBarOptionField = (props) => {
33490
32852
  flexWrap: "wrap"
33491
32853
  },
33492
32854
  children: memoizedStatusOptions?.map((option, index4) => {
33493
- return /* @__PURE__ */ jsxs75(Fragment32, { children: [
33494
- /* @__PURE__ */ jsxs75(
32855
+ return /* @__PURE__ */ jsxs72(Fragment32, { children: [
32856
+ /* @__PURE__ */ jsxs72(
33495
32857
  "div",
33496
32858
  {
33497
32859
  style: {
@@ -33509,7 +32871,7 @@ var StatusBarOptionField = (props) => {
33509
32871
  boxShadow: index4 === indexInProgress ? "0 1px 2px 0 rgba(51, 51, 51, 0.04), 0 2px 4px 0 rgba(51, 51, 51, 0.04), 0 4px 8px -2px rgba(51, 51, 51, 0.06), 0 0 0 1px rgba(51, 51, 51, 0.04), 0 -1px 1px -0.5px rgba(51, 51, 51, 0.06) inset" : ""
33510
32872
  },
33511
32873
  children: [
33512
- /* @__PURE__ */ jsx110(
32874
+ /* @__PURE__ */ jsx109(
33513
32875
  "span",
33514
32876
  {
33515
32877
  style: {
@@ -33521,10 +32883,10 @@ var StatusBarOptionField = (props) => {
33521
32883
  alignItems: "center",
33522
32884
  borderRadius: "100%"
33523
32885
  },
33524
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx110(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx110(ICCircle, {}) : /* @__PURE__ */ jsx110(ICMinus, {})
32886
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx109(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx109(ICCircle, {}) : /* @__PURE__ */ jsx109(ICMinus, {})
33525
32887
  }
33526
32888
  ),
33527
- /* @__PURE__ */ jsx110(
32889
+ /* @__PURE__ */ jsx109(
33528
32890
  "span",
33529
32891
  {
33530
32892
  style: {
@@ -33537,7 +32899,7 @@ var StatusBarOptionField = (props) => {
33537
32899
  },
33538
32900
  option?.[0]
33539
32901
  ),
33540
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx110(
32902
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx109(
33541
32903
  "div",
33542
32904
  {
33543
32905
  style: {
@@ -33553,7 +32915,7 @@ var StatusBarOptionField = (props) => {
33553
32915
  );
33554
32916
  };
33555
32917
  var ICMinus = () => {
33556
- return /* @__PURE__ */ jsx110(
32918
+ return /* @__PURE__ */ jsx109(
33557
32919
  "svg",
33558
32920
  {
33559
32921
  xmlns: "http://www.w3.org/2000/svg",
@@ -33561,7 +32923,7 @@ var ICMinus = () => {
33561
32923
  height: "16",
33562
32924
  viewBox: "0 0 16 16",
33563
32925
  fill: "none",
33564
- children: /* @__PURE__ */ jsx110(
32926
+ children: /* @__PURE__ */ jsx109(
33565
32927
  "path",
33566
32928
  {
33567
32929
  d: "M4 8H12",
@@ -33575,7 +32937,7 @@ var ICMinus = () => {
33575
32937
  );
33576
32938
  };
33577
32939
  var ICCircle = () => {
33578
- return /* @__PURE__ */ jsx110(
32940
+ return /* @__PURE__ */ jsx109(
33579
32941
  "svg",
33580
32942
  {
33581
32943
  xmlns: "http://www.w3.org/2000/svg",
@@ -33583,12 +32945,12 @@ var ICCircle = () => {
33583
32945
  height: "8",
33584
32946
  viewBox: "0 0 8 8",
33585
32947
  fill: "none",
33586
- children: /* @__PURE__ */ jsx110("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
32948
+ children: /* @__PURE__ */ jsx109("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33587
32949
  }
33588
32950
  );
33589
32951
  };
33590
32952
  var ICCheck = () => {
33591
- return /* @__PURE__ */ jsx110(
32953
+ return /* @__PURE__ */ jsx109(
33592
32954
  "svg",
33593
32955
  {
33594
32956
  xmlns: "http://www.w3.org/2000/svg",
@@ -33596,7 +32958,7 @@ var ICCheck = () => {
33596
32958
  height: "16",
33597
32959
  viewBox: "0 0 16 16",
33598
32960
  fill: "none",
33599
- children: /* @__PURE__ */ jsx110(
32961
+ children: /* @__PURE__ */ jsx109(
33600
32962
  "path",
33601
32963
  {
33602
32964
  d: "M13.3408 5.23535L13.252 5.32324L6.88867 11.6875L6.7998 11.7764L6.71191 11.6875L2.89258 7.86914L2.80469 7.78125L2.89258 7.69238L3.74121 6.84375L3.83008 6.75586L6.7998 9.72559L12.2266 4.29785L12.3154 4.20996L13.3408 5.23535Z",
@@ -33610,7 +32972,7 @@ var ICCheck = () => {
33610
32972
  };
33611
32973
 
33612
32974
  // src/widgets/basic/date-option-field/date-option.tsx
33613
- import { jsx as jsx111, jsxs as jsxs76 } from "react/jsx-runtime";
32975
+ import { jsx as jsx110, jsxs as jsxs73 } from "react/jsx-runtime";
33614
32976
  var DateOptionField = (props) => {
33615
32977
  const {
33616
32978
  name: name2,
@@ -33621,19 +32983,19 @@ var DateOptionField = (props) => {
33621
32983
  string,
33622
32984
  onChange: onChange2
33623
32985
  } = props;
33624
- return /* @__PURE__ */ jsx111(
32986
+ return /* @__PURE__ */ jsx110(
33625
32987
  Controller,
33626
32988
  {
33627
32989
  name: name2 ?? "",
33628
32990
  control: methods?.control,
33629
- render: ({ field }) => /* @__PURE__ */ jsxs76(
32991
+ render: ({ field }) => /* @__PURE__ */ jsxs73(
33630
32992
  "label",
33631
32993
  {
33632
32994
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33633
32995
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33634
32996
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33635
32997
  children: [
33636
- /* @__PURE__ */ jsx111(
32998
+ /* @__PURE__ */ jsx110(
33637
32999
  "input",
33638
33000
  {
33639
33001
  type: "checkbox",
@@ -33700,7 +33062,6 @@ export {
33700
33062
  RadioGroupField,
33701
33063
  RatingStarField,
33702
33064
  RemainingDaysField,
33703
- RenderFiles,
33704
33065
  Row,
33705
33066
  Search,
33706
33067
  SelectDropdownField,