@fctc/sme-widget-ui 2.3.2 → 2.3.4

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
@@ -16550,8 +16550,251 @@ var CharField = (props) => {
16550
16550
  );
16551
16551
  };
16552
16552
 
16553
+ // src/widgets/basic/char-field/secure-field.tsx
16554
+ import { useEffect as useEffect12, useMemo as useMemo5, useState as useState11 } from "react";
16555
+
16556
+ // src/icons/eye-hidden-icon.tsx
16557
+ import { jsx as jsx79, jsxs as jsxs52 } from "react/jsx-runtime";
16558
+ var EyeHiddenIcon = () => {
16559
+ return /* @__PURE__ */ jsxs52(
16560
+ "svg",
16561
+ {
16562
+ xmlns: "http://www.w3.org/2000/svg",
16563
+ width: "16",
16564
+ height: "16",
16565
+ viewBox: "0 0 16 16",
16566
+ fill: "none",
16567
+ children: [
16568
+ /* @__PURE__ */ jsx79(
16569
+ "path",
16570
+ {
16571
+ d: "M9.68661 6.31328L6.31328 9.68661C5.87995 9.25328 5.61328 8.65995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C8.65995 5.61328 9.25328 5.87995 9.68661 6.31328Z",
16572
+ stroke: "#576071",
16573
+ strokeWidth: "1.5",
16574
+ strokeLinecap: "round",
16575
+ strokeLinejoin: "round"
16576
+ }
16577
+ ),
16578
+ /* @__PURE__ */ jsx79(
16579
+ "path",
16580
+ {
16581
+ d: "M11.8799 3.8473C10.7132 2.9673 9.3799 2.4873 7.9999 2.4873C5.64656 2.4873 3.45323 3.87397 1.92656 6.27397C1.32656 7.21397 1.32656 8.79397 1.92656 9.73397C2.45323 10.5606 3.06656 11.274 3.73323 11.8473",
16582
+ stroke: "#576071",
16583
+ strokeWidth: "1.5",
16584
+ strokeLinecap: "round",
16585
+ strokeLinejoin: "round"
16586
+ }
16587
+ ),
16588
+ /* @__PURE__ */ jsx79(
16589
+ "path",
16590
+ {
16591
+ d: "M5.61328 13.0195C6.37328 13.3395 7.17995 13.5128 7.99995 13.5128C10.3533 13.5128 12.5466 12.1261 14.0733 9.72613C14.6733 8.78613 14.6733 7.20613 14.0733 6.26613C13.8533 5.91947 13.6133 5.5928 13.3666 5.28613",
16592
+ stroke: "#576071",
16593
+ strokeWidth: "1.5",
16594
+ strokeLinecap: "round",
16595
+ strokeLinejoin: "round"
16596
+ }
16597
+ ),
16598
+ /* @__PURE__ */ jsx79(
16599
+ "path",
16600
+ {
16601
+ d: "M10.3409 8.4668C10.1676 9.4068 9.40094 10.1735 8.46094 10.3468",
16602
+ stroke: "#576071",
16603
+ strokeWidth: "1.5",
16604
+ strokeLinecap: "round",
16605
+ strokeLinejoin: "round"
16606
+ }
16607
+ ),
16608
+ /* @__PURE__ */ jsx79(
16609
+ "path",
16610
+ {
16611
+ d: "M6.31203 9.68652L1.33203 14.6665",
16612
+ stroke: "#576071",
16613
+ strokeWidth: "1.5",
16614
+ strokeLinecap: "round",
16615
+ strokeLinejoin: "round"
16616
+ }
16617
+ ),
16618
+ /* @__PURE__ */ jsx79(
16619
+ "path",
16620
+ {
16621
+ d: "M14.6675 1.33301L9.6875 6.31301",
16622
+ stroke: "#576071",
16623
+ strokeWidth: "1.5",
16624
+ strokeLinecap: "round",
16625
+ strokeLinejoin: "round"
16626
+ }
16627
+ )
16628
+ ]
16629
+ }
16630
+ );
16631
+ };
16632
+
16633
+ // src/widgets/basic/char-field/secure-field.tsx
16634
+ import { jsx as jsx80, jsxs as jsxs53 } from "react/jsx-runtime";
16635
+ function isSensitive(widget) {
16636
+ return widget === "password" || widget === "access_token" || widget === "refresh_token" || widget === "private_secret_key";
16637
+ }
16638
+ function EyeIconComponent({ open }) {
16639
+ return open ? /* @__PURE__ */ jsx80(EyeIcon, {}) : /* @__PURE__ */ jsx80(EyeHiddenIcon, {});
16640
+ }
16641
+ var SecureField = (props) => {
16642
+ const {
16643
+ name: name2,
16644
+ readonly,
16645
+ placeholder,
16646
+ required,
16647
+ invisible,
16648
+ methods,
16649
+ onChange: onChange2,
16650
+ string = name2,
16651
+ widget,
16652
+ min: min3,
16653
+ max: max3,
16654
+ special,
16655
+ upcase,
16656
+ digit,
16657
+ regex,
16658
+ className,
16659
+ value,
16660
+ defaultValue,
16661
+ isForm,
16662
+ isEditTable
16663
+ } = props;
16664
+ const { t: t3 } = useI18n();
16665
+ const getPasswordMessage2 = (min4, max4, upcase2, digit2, special2) => {
16666
+ let message2 = t3("message", { min: min4, max: max4 });
16667
+ if (upcase2 || upcase2 === "0") message2 += t3("upcase", { count: upcase2 });
16668
+ if (digit2 || digit2 === "0") message2 += t3("digit", { count: digit2 });
16669
+ if (special2 || special2 === "0") message2 += t3("special", { count: special2 });
16670
+ return message2;
16671
+ };
16672
+ if (!isForm && !isEditTable) {
16673
+ const propValue = value || defaultValue;
16674
+ return /* @__PURE__ */ jsx80("span", { children: propValue && typeof propValue === "object" ? propValue?.display_name : propValue });
16675
+ }
16676
+ return /* @__PURE__ */ jsx80(
16677
+ Controller,
16678
+ {
16679
+ name: String(name2),
16680
+ control: methods.control,
16681
+ rules: {
16682
+ ...required && !invisible ? {
16683
+ required: {
16684
+ value: true,
16685
+ message: `${string} ${t3("must_required")}`
16686
+ }
16687
+ } : {},
16688
+ ...(widget === "custom_password" || widget === "password") && regex ? {
16689
+ pattern: {
16690
+ value: new RegExp(regex),
16691
+ message: getPasswordMessage2(min3, max3, upcase, digit, special)
16692
+ }
16693
+ } : {}
16694
+ },
16695
+ render: ({
16696
+ field: { onChange: fieldOnchange, value: value2 },
16697
+ fieldState: { error: error2 }
16698
+ }) => {
16699
+ const { setError, clearErrors } = methods;
16700
+ const [showPlain, setShowPlain] = useState11(false);
16701
+ const realValue = useMemo5(
16702
+ () => typeof value2 === "string" || typeof value2 === "number" ? String(value2) : "",
16703
+ [value2]
16704
+ );
16705
+ const canToggle = isSensitive(widget) && !readonly;
16706
+ const shouldMask = isSensitive(widget) && !showPlain;
16707
+ const isCappedToken = widget === "access_token" || widget === "refresh_token";
16708
+ const maskedDisplay = isCappedToken && shouldMask ? "\u2022".repeat(Math.min(realValue.length, 20)) : "";
16709
+ useEffect12(() => {
16710
+ if (canToggle) setShowPlain(false);
16711
+ }, [canToggle]);
16712
+ useEffect12(() => {
16713
+ if (value2) clearErrors(name2);
16714
+ }, [value2, clearErrors, name2]);
16715
+ return /* @__PURE__ */ jsxs53("div", { className: `relative w-full ${className ?? ""}`, children: [
16716
+ isCappedToken && shouldMask && /* @__PURE__ */ jsx80(
16717
+ "div",
16718
+ {
16719
+ className: "pointer-events-none absolute inset-0 p-3 text-sm leading-[1.5] whitespace-pre-wrap",
16720
+ "aria-hidden": "true",
16721
+ children: maskedDisplay
16722
+ }
16723
+ ),
16724
+ /* @__PURE__ */ jsx80(
16725
+ "input",
16726
+ {
16727
+ value: realValue,
16728
+ onChange: (e3) => {
16729
+ if (readonly) return;
16730
+ const inputValue = e3.target.value ?? "";
16731
+ fieldOnchange(inputValue);
16732
+ clearErrors(name2);
16733
+ },
16734
+ onBlur: (e3) => {
16735
+ if (readonly) return;
16736
+ const inputValue = (e3.target.value ?? "").trim();
16737
+ if (!inputValue && required && !invisible) {
16738
+ setError(name2, {
16739
+ type: "required",
16740
+ message: `${string} ${t3("must_required")}`
16741
+ });
16742
+ return;
16743
+ }
16744
+ if ((widget === "custom_password" || widget === "password") && regex && !new RegExp(regex).test(inputValue)) {
16745
+ setError(name2, {
16746
+ type: "pattern",
16747
+ message: getPasswordMessage2(
16748
+ min3,
16749
+ max3,
16750
+ upcase,
16751
+ digit,
16752
+ special
16753
+ )
16754
+ });
16755
+ return;
16756
+ }
16757
+ fieldOnchange(inputValue);
16758
+ onChange2 && onChange2(String(name2), inputValue);
16759
+ clearErrors(name2);
16760
+ },
16761
+ readOnly: readonly,
16762
+ disabled: readonly,
16763
+ placeholder,
16764
+ required: !invisible && required,
16765
+ style: {
16766
+ ...isCappedToken && shouldMask ? {
16767
+ WebkitTextSecurity: "none",
16768
+ color: "transparent",
16769
+ caretColor: void 0
16770
+ } : shouldMask ? { WebkitTextSecurity: "disc" } : { WebkitTextSecurity: "none" }
16771
+ },
16772
+ onCopy: (e3) => {
16773
+ if (shouldMask) e3.preventDefault();
16774
+ },
16775
+ className: `${!isCappedToken ? "w-full" : "w-[200px]"} min-h-[44px] ring-0 outline-0 p-3 text-sm font-normal leading-[1.5] resize-none overflow-hidden field-sizing-content
16776
+ bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]
16777
+ ${readonly ? "!cursor-not-allowed text-[#5c5a5a]" : "!cursor-text"}`
16778
+ }
16779
+ ),
16780
+ canToggle && !isCappedToken && /* @__PURE__ */ jsx80(
16781
+ "button",
16782
+ {
16783
+ type: "button",
16784
+ onClick: () => setShowPlain((s4) => !s4),
16785
+ className: "absolute right-[12px] top-[15px] rounded-md text-[#60656c]",
16786
+ children: /* @__PURE__ */ jsx80(EyeIconComponent, { open: showPlain })
16787
+ }
16788
+ ),
16789
+ error2 && !isEditTable && /* @__PURE__ */ jsx80("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
16790
+ ] });
16791
+ }
16792
+ }
16793
+ );
16794
+ };
16795
+
16553
16796
  // src/widgets/basic/checkbox-field/checkbox.tsx
16554
- import { jsx as jsx79 } from "react/jsx-runtime";
16797
+ import { jsx as jsx81 } from "react/jsx-runtime";
16555
16798
  var CheckboxField = (props) => {
16556
16799
  const {
16557
16800
  name: name2,
@@ -16566,9 +16809,9 @@ var CheckboxField = (props) => {
16566
16809
  } = props;
16567
16810
  if (!isForm) {
16568
16811
  if (name2 === "is_active" || name2 === "active") {
16569
- return /* @__PURE__ */ jsx79(ActiveBadgeField, { type: value });
16812
+ return /* @__PURE__ */ jsx81(ActiveBadgeField, { type: value });
16570
16813
  } else {
16571
- return /* @__PURE__ */ jsx79(
16814
+ return /* @__PURE__ */ jsx81(
16572
16815
  "input",
16573
16816
  {
16574
16817
  type: "checkbox",
@@ -16579,12 +16822,12 @@ var CheckboxField = (props) => {
16579
16822
  );
16580
16823
  }
16581
16824
  }
16582
- return /* @__PURE__ */ jsx79(
16825
+ return /* @__PURE__ */ jsx81(
16583
16826
  Controller,
16584
16827
  {
16585
16828
  name: name2 ?? "",
16586
16829
  control: methods?.control,
16587
- render: ({ field }) => /* @__PURE__ */ jsx79(
16830
+ render: ({ field }) => /* @__PURE__ */ jsx81(
16588
16831
  "div",
16589
16832
  {
16590
16833
  className: "flex items-center gap-2",
@@ -16597,7 +16840,7 @@ var CheckboxField = (props) => {
16597
16840
  onChange2(name2 ?? "", checked);
16598
16841
  }
16599
16842
  },
16600
- children: /* @__PURE__ */ jsx79(
16843
+ children: /* @__PURE__ */ jsx81(
16601
16844
  "input",
16602
16845
  {
16603
16846
  ...field,
@@ -16624,21 +16867,21 @@ var CheckboxField = (props) => {
16624
16867
  };
16625
16868
 
16626
16869
  // src/widgets/basic/color-field/color-wrapper.tsx
16627
- import { useEffect as useEffect12, useRef as useRef6, useState as useState11 } from "react";
16628
- import { Fragment as Fragment19, jsx as jsx80, jsxs as jsxs52 } from "react/jsx-runtime";
16870
+ import { useEffect as useEffect13, useRef as useRef6, useState as useState12 } from "react";
16871
+ import { Fragment as Fragment19, jsx as jsx82, jsxs as jsxs54 } from "react/jsx-runtime";
16629
16872
  var ColorWrapper = (props) => {
16630
16873
  const { colors: colors2, defaultColor, savePickColor } = props;
16631
16874
  const { t: t3 } = useI18n();
16632
- const [selectedColor, setSelectedColor] = useState11(colors2[defaultColor]);
16633
- const [showFullColors, setIsShowFullColor] = useState11(false);
16875
+ const [selectedColor, setSelectedColor] = useState12(colors2[defaultColor]);
16876
+ const [showFullColors, setIsShowFullColor] = useState12(false);
16634
16877
  const pickColorsRef = useRef6(null);
16635
- useEffect12(() => {
16878
+ useEffect13(() => {
16636
16879
  setSelectedColor(colors2[defaultColor]);
16637
16880
  }, [defaultColor]);
16638
16881
  const handleShowFullColors = () => {
16639
16882
  setIsShowFullColor(!showFullColors);
16640
16883
  };
16641
- useEffect12(() => {
16884
+ useEffect13(() => {
16642
16885
  const handleClickOutside = (event) => {
16643
16886
  if (pickColorsRef.current && !pickColorsRef.current.contains(event.target)) {
16644
16887
  setIsShowFullColor(false);
@@ -16649,8 +16892,8 @@ var ColorWrapper = (props) => {
16649
16892
  document.removeEventListener("mousedown", handleClickOutside);
16650
16893
  };
16651
16894
  }, []);
16652
- return /* @__PURE__ */ jsx80("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx80("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs52("div", { children: [
16653
- /* @__PURE__ */ jsx80(
16895
+ return /* @__PURE__ */ jsx82("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx82("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs54("div", { children: [
16896
+ /* @__PURE__ */ jsx82(
16654
16897
  "button",
16655
16898
  {
16656
16899
  "data-tooltip-id": `${color?.color}${color?.id}`,
@@ -16664,7 +16907,7 @@ var ColorWrapper = (props) => {
16664
16907
  }
16665
16908
  }
16666
16909
  ),
16667
- /* @__PURE__ */ jsx80(
16910
+ /* @__PURE__ */ jsx82(
16668
16911
  M,
16669
16912
  {
16670
16913
  className: "",
@@ -16673,8 +16916,8 @@ var ColorWrapper = (props) => {
16673
16916
  content: t3(color?.name)
16674
16917
  }
16675
16918
  )
16676
- ] }, color?.id)) }) : /* @__PURE__ */ jsxs52(Fragment19, { children: [
16677
- /* @__PURE__ */ jsx80(
16919
+ ] }, color?.id)) }) : /* @__PURE__ */ jsxs54(Fragment19, { children: [
16920
+ /* @__PURE__ */ jsx82(
16678
16921
  "button",
16679
16922
  {
16680
16923
  "data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
@@ -16687,7 +16930,7 @@ var ColorWrapper = (props) => {
16687
16930
  style: { backgroundColor: selectedColor?.color }
16688
16931
  }
16689
16932
  ),
16690
- /* @__PURE__ */ jsx80(
16933
+ /* @__PURE__ */ jsx82(
16691
16934
  M,
16692
16935
  {
16693
16936
  place: "top",
@@ -16699,13 +16942,13 @@ var ColorWrapper = (props) => {
16699
16942
  };
16700
16943
 
16701
16944
  // src/widgets/basic/color-field/color.tsx
16702
- import { jsx as jsx81 } from "react/jsx-runtime";
16945
+ import { jsx as jsx83 } from "react/jsx-runtime";
16703
16946
  var ColorField = (props) => {
16704
16947
  const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
16705
16948
  if (!isForm) {
16706
- return /* @__PURE__ */ jsx81(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
16949
+ return /* @__PURE__ */ jsx83(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
16707
16950
  }
16708
- return /* @__PURE__ */ jsx81(
16951
+ return /* @__PURE__ */ jsx83(
16709
16952
  Controller,
16710
16953
  {
16711
16954
  name: name2 ?? "",
@@ -16715,7 +16958,7 @@ var ColorField = (props) => {
16715
16958
  field.onChange(color?.id);
16716
16959
  onChange2 && onChange2(name2 ?? "", color?.id);
16717
16960
  };
16718
- return /* @__PURE__ */ jsx81(
16961
+ return /* @__PURE__ */ jsx83(
16719
16962
  ColorWrapper,
16720
16963
  {
16721
16964
  savePickColor: handlePickColorChange,
@@ -16729,8 +16972,8 @@ var ColorField = (props) => {
16729
16972
  };
16730
16973
 
16731
16974
  // src/widgets/basic/copy-link-buttton/copy-link.tsx
16732
- import { useEffect as useEffect13 } from "react";
16733
- import { jsx as jsx82, jsxs as jsxs53 } from "react/jsx-runtime";
16975
+ import { useEffect as useEffect14 } from "react";
16976
+ import { jsx as jsx84, jsxs as jsxs55 } from "react/jsx-runtime";
16734
16977
  var CopyLinkButtonField = (props) => {
16735
16978
  const {
16736
16979
  isForm,
@@ -16749,9 +16992,9 @@ var CopyLinkButtonField = (props) => {
16749
16992
  } = props;
16750
16993
  const { t: t3 } = useI18n();
16751
16994
  if (!isForm) {
16752
- return /* @__PURE__ */ jsx82("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16995
+ return /* @__PURE__ */ jsx84("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
16753
16996
  }
16754
- return /* @__PURE__ */ jsx82(
16997
+ return /* @__PURE__ */ jsx84(
16755
16998
  Controller,
16756
16999
  {
16757
17000
  name: name2 ?? "",
@@ -16764,13 +17007,13 @@ var CopyLinkButtonField = (props) => {
16764
17007
  fieldState: { error: error2 }
16765
17008
  }) => {
16766
17009
  const { setError, clearErrors } = methods;
16767
- useEffect13(() => {
17010
+ useEffect14(() => {
16768
17011
  if (value) {
16769
17012
  clearErrors(name2);
16770
17013
  }
16771
17014
  }, [value]);
16772
- return /* @__PURE__ */ jsxs53("div", { className: "relative", children: [
16773
- /* @__PURE__ */ jsxs53(
17015
+ return /* @__PURE__ */ jsxs55("div", { className: "relative", children: [
17016
+ /* @__PURE__ */ jsxs55(
16774
17017
  "div",
16775
17018
  {
16776
17019
  "aria-disabled": readonly,
@@ -16779,7 +17022,7 @@ var CopyLinkButtonField = (props) => {
16779
17022
  ${!isEditTable ? isForm ? "bg-white border-input-primary rounded-[10px]" : "" : `border-transparent bg-transparent ${readonly ? "" : "border-b-primary"}`}
16780
17023
  ${error2 && isEditTable && "focus:border-b-[1px] focus:border-[#de4747] hover:border-b-[1px] hover:border-[#de4747]"}`,
16781
17024
  children: [
16782
- /* @__PURE__ */ jsx82(
17025
+ /* @__PURE__ */ jsx84(
16783
17026
  "input",
16784
17027
  {
16785
17028
  value: typeof value === "string" || typeof value === "number" ? String(value) : "",
@@ -16820,19 +17063,19 @@ var CopyLinkButtonField = (props) => {
16820
17063
  `
16821
17064
  }
16822
17065
  ),
16823
- readonly && value && /* @__PURE__ */ jsx82(
17066
+ readonly && value && /* @__PURE__ */ jsx84(
16824
17067
  "button",
16825
17068
  {
16826
17069
  className: "cursor-pointer",
16827
17070
  type: "button",
16828
17071
  onClick: () => handleCopyToClipboard(propValue),
16829
- children: isCopied ? /* @__PURE__ */ jsx82(CheckIcon, {}) : /* @__PURE__ */ jsx82(CopyIcon, {})
17072
+ children: isCopied ? /* @__PURE__ */ jsx84(CheckIcon, {}) : /* @__PURE__ */ jsx84(CopyIcon, {})
16830
17073
  }
16831
17074
  )
16832
17075
  ]
16833
17076
  }
16834
17077
  ),
16835
- error2 && /* @__PURE__ */ jsx82("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
17078
+ error2 && /* @__PURE__ */ jsx84("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
16836
17079
  ] });
16837
17080
  }
16838
17081
  }
@@ -16840,10 +17083,10 @@ var CopyLinkButtonField = (props) => {
16840
17083
  };
16841
17084
 
16842
17085
  // src/widgets/basic/date-field/date.tsx
16843
- import { forwardRef as forwardRef6, useEffect as useEffect17 } from "react";
17086
+ import { forwardRef as forwardRef6, useEffect as useEffect18 } from "react";
16844
17087
 
16845
17088
  // node_modules/react-datepicker/dist/index.es.js
16846
- import React9, { useRef as useRef10, useCallback as useCallback5, useEffect as useEffect15, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
17089
+ import React10, { useRef as useRef10, useCallback as useCallback5, useEffect as useEffect16, cloneElement as cloneElement3, Component, createRef, createElement as createElement5 } from "react";
16847
17090
 
16848
17091
  // node_modules/date-fns/constants.js
16849
17092
  var daysInYear = 365.2425;
@@ -20741,22 +20984,22 @@ function subYears(date, amount, options2) {
20741
20984
  }
20742
20985
 
20743
20986
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
20744
- import * as React8 from "react";
20987
+ import * as React9 from "react";
20745
20988
 
20746
20989
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs
20747
- import * as React6 from "react";
20990
+ import * as React7 from "react";
20748
20991
  import { useLayoutEffect } from "react";
20749
20992
  var isClient = typeof document !== "undefined";
20750
20993
  var noop2 = function noop3() {
20751
20994
  };
20752
20995
  var index = isClient ? useLayoutEffect : noop2;
20753
20996
  var SafeReact = {
20754
- ...React6
20997
+ ...React7
20755
20998
  };
20756
20999
  var useInsertionEffect = SafeReact.useInsertionEffect;
20757
21000
  var useSafeInsertionEffect = useInsertionEffect || ((fn) => fn());
20758
21001
  function useEffectEvent(callback) {
20759
- const ref = React6.useRef(() => {
21002
+ const ref = React7.useRef(() => {
20760
21003
  if (process.env.NODE_ENV !== "production") {
20761
21004
  throw new Error("Cannot call an event handler while rendering.");
20762
21005
  }
@@ -20764,7 +21007,7 @@ function useEffectEvent(callback) {
20764
21007
  useSafeInsertionEffect(() => {
20765
21008
  ref.current = callback;
20766
21009
  });
20767
- return React6.useCallback(function() {
21010
+ return React7.useCallback(function() {
20768
21011
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
20769
21012
  args[_key] = arguments[_key];
20770
21013
  }
@@ -20773,11 +21016,11 @@ function useEffectEvent(callback) {
20773
21016
  }
20774
21017
 
20775
21018
  // node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
20776
- import { jsx as jsx83, jsxs as jsxs54, Fragment as Fragment20 } from "react/jsx-runtime";
21019
+ import { jsx as jsx85, jsxs as jsxs56, Fragment as Fragment20 } from "react/jsx-runtime";
20777
21020
  import * as ReactDOM2 from "react-dom";
20778
21021
 
20779
21022
  // node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
20780
- import * as React7 from "react";
21023
+ import * as React8 from "react";
20781
21024
  import { useLayoutEffect as useLayoutEffect2 } from "react";
20782
21025
  import * as ReactDOM from "react-dom";
20783
21026
  var isClient2 = typeof document !== "undefined";
@@ -20843,7 +21086,7 @@ function roundByDPR(element, value) {
20843
21086
  return Math.round(value * dpr) / dpr;
20844
21087
  }
20845
21088
  function useLatestRef(value) {
20846
- const ref = React7.useRef(value);
21089
+ const ref = React8.useRef(value);
20847
21090
  index2(() => {
20848
21091
  ref.current = value;
20849
21092
  });
@@ -20866,7 +21109,7 @@ function useFloating(options2) {
20866
21109
  whileElementsMounted,
20867
21110
  open
20868
21111
  } = options2;
20869
- const [data, setData] = React7.useState({
21112
+ const [data, setData] = React8.useState({
20870
21113
  x: 0,
20871
21114
  y: 0,
20872
21115
  strategy,
@@ -20874,19 +21117,19 @@ function useFloating(options2) {
20874
21117
  middlewareData: {},
20875
21118
  isPositioned: false
20876
21119
  });
20877
- const [latestMiddleware, setLatestMiddleware] = React7.useState(middleware2);
21120
+ const [latestMiddleware, setLatestMiddleware] = React8.useState(middleware2);
20878
21121
  if (!deepEqual2(latestMiddleware, middleware2)) {
20879
21122
  setLatestMiddleware(middleware2);
20880
21123
  }
20881
- const [_reference, _setReference] = React7.useState(null);
20882
- const [_floating, _setFloating] = React7.useState(null);
20883
- const setReference = React7.useCallback((node2) => {
21124
+ const [_reference, _setReference] = React8.useState(null);
21125
+ const [_floating, _setFloating] = React8.useState(null);
21126
+ const setReference = React8.useCallback((node2) => {
20884
21127
  if (node2 !== referenceRef.current) {
20885
21128
  referenceRef.current = node2;
20886
21129
  _setReference(node2);
20887
21130
  }
20888
21131
  }, []);
20889
- const setFloating = React7.useCallback((node2) => {
21132
+ const setFloating = React8.useCallback((node2) => {
20890
21133
  if (node2 !== floatingRef.current) {
20891
21134
  floatingRef.current = node2;
20892
21135
  _setFloating(node2);
@@ -20894,14 +21137,14 @@ function useFloating(options2) {
20894
21137
  }, []);
20895
21138
  const referenceEl = externalReference || _reference;
20896
21139
  const floatingEl = externalFloating || _floating;
20897
- const referenceRef = React7.useRef(null);
20898
- const floatingRef = React7.useRef(null);
20899
- const dataRef = React7.useRef(data);
21140
+ const referenceRef = React8.useRef(null);
21141
+ const floatingRef = React8.useRef(null);
21142
+ const dataRef = React8.useRef(data);
20900
21143
  const hasWhileElementsMounted = whileElementsMounted != null;
20901
21144
  const whileElementsMountedRef = useLatestRef(whileElementsMounted);
20902
21145
  const platformRef = useLatestRef(platform2);
20903
21146
  const openRef = useLatestRef(open);
20904
- const update = React7.useCallback(() => {
21147
+ const update = React8.useCallback(() => {
20905
21148
  if (!referenceRef.current || !floatingRef.current) {
20906
21149
  return;
20907
21150
  }
@@ -20939,7 +21182,7 @@ function useFloating(options2) {
20939
21182
  }));
20940
21183
  }
20941
21184
  }, [open]);
20942
- const isMountedRef = React7.useRef(false);
21185
+ const isMountedRef = React8.useRef(false);
20943
21186
  index2(() => {
20944
21187
  isMountedRef.current = true;
20945
21188
  return () => {
@@ -20956,17 +21199,17 @@ function useFloating(options2) {
20956
21199
  update();
20957
21200
  }
20958
21201
  }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
20959
- const refs = React7.useMemo(() => ({
21202
+ const refs = React8.useMemo(() => ({
20960
21203
  reference: referenceRef,
20961
21204
  floating: floatingRef,
20962
21205
  setReference,
20963
21206
  setFloating
20964
21207
  }), [setReference, setFloating]);
20965
- const elements = React7.useMemo(() => ({
21208
+ const elements = React8.useMemo(() => ({
20966
21209
  reference: referenceEl,
20967
21210
  floating: floatingEl
20968
21211
  }), [referenceEl, floatingEl]);
20969
- const floatingStyles = React7.useMemo(() => {
21212
+ const floatingStyles = React8.useMemo(() => {
20970
21213
  const initialStyles = {
20971
21214
  position: strategy,
20972
21215
  left: 0,
@@ -20992,7 +21235,7 @@ function useFloating(options2) {
20992
21235
  top: y3
20993
21236
  };
20994
21237
  }, [strategy, transform, elements.floating, data.x, data.y]);
20995
- return React7.useMemo(() => ({
21238
+ return React8.useMemo(() => ({
20996
21239
  ...data,
20997
21240
  update,
20998
21241
  refs,
@@ -21053,7 +21296,7 @@ var horizontalKeys = [ARROW_LEFT, ARROW_RIGHT];
21053
21296
  var verticalKeys = [ARROW_UP, ARROW_DOWN];
21054
21297
  var allKeys = [...horizontalKeys, ...verticalKeys];
21055
21298
  var SafeReact2 = {
21056
- ...React8
21299
+ ...React9
21057
21300
  };
21058
21301
  var serverHandoffComplete = false;
21059
21302
  var count = 0;
@@ -21063,13 +21306,13 @@ var genId = () => (
21063
21306
  "floating-ui-" + Math.random().toString(36).slice(2, 6) + count++
21064
21307
  );
21065
21308
  function useFloatingId() {
21066
- const [id, setId] = React8.useState(() => serverHandoffComplete ? genId() : void 0);
21309
+ const [id, setId] = React9.useState(() => serverHandoffComplete ? genId() : void 0);
21067
21310
  index(() => {
21068
21311
  if (id == null) {
21069
21312
  setId(genId());
21070
21313
  }
21071
21314
  }, []);
21072
- React8.useEffect(() => {
21315
+ React9.useEffect(() => {
21073
21316
  serverHandoffComplete = true;
21074
21317
  }, []);
21075
21318
  return id;
@@ -21104,7 +21347,7 @@ function error() {
21104
21347
  console.error(message2);
21105
21348
  }
21106
21349
  }
21107
- var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(props, ref) {
21350
+ var FloatingArrow = /* @__PURE__ */ React9.forwardRef(function FloatingArrow2(props, ref) {
21108
21351
  const {
21109
21352
  context: {
21110
21353
  placement,
@@ -21135,7 +21378,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21135
21378
  }
21136
21379
  }
21137
21380
  const clipPathId = useId();
21138
- const [isRTL2, setIsRTL] = React8.useState(false);
21381
+ const [isRTL2, setIsRTL] = React9.useState(false);
21139
21382
  index(() => {
21140
21383
  if (!floating) return;
21141
21384
  const isRTL3 = getComputedStyle2(floating).direction === "rtl";
@@ -21171,7 +21414,7 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21171
21414
  bottom: isCustomShape ? "" : "rotate(180deg)",
21172
21415
  right: isCustomShape ? "rotate(-90deg)" : "rotate(90deg)"
21173
21416
  }[side];
21174
- return /* @__PURE__ */ jsxs54("svg", {
21417
+ return /* @__PURE__ */ jsxs56("svg", {
21175
21418
  ...rest,
21176
21419
  "aria-hidden": true,
21177
21420
  ref,
@@ -21187,18 +21430,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
21187
21430
  transform: [rotation, transform].filter((t3) => !!t3).join(" "),
21188
21431
  ...restStyle
21189
21432
  },
21190
- children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx83("path", {
21433
+ children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx85("path", {
21191
21434
  clipPath: "url(#" + clipPathId + ")",
21192
21435
  fill: "none",
21193
21436
  stroke,
21194
21437
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
21195
21438
  d: dValue
21196
- }), /* @__PURE__ */ jsx83("path", {
21439
+ }), /* @__PURE__ */ jsx85("path", {
21197
21440
  stroke: computedStrokeWidth && !d ? rest.fill : "none",
21198
21441
  d: dValue
21199
- }), /* @__PURE__ */ jsx83("clipPath", {
21442
+ }), /* @__PURE__ */ jsx85("clipPath", {
21200
21443
  id: clipPathId,
21201
- children: /* @__PURE__ */ jsx83("rect", {
21444
+ children: /* @__PURE__ */ jsx85("rect", {
21202
21445
  x: -halfStrokeWidth,
21203
21446
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
21204
21447
  width: width + computedStrokeWidth,
@@ -21226,13 +21469,13 @@ function createEventEmitter() {
21226
21469
  }
21227
21470
  };
21228
21471
  }
21229
- var FloatingNodeContext = /* @__PURE__ */ React8.createContext(null);
21230
- var FloatingTreeContext = /* @__PURE__ */ React8.createContext(null);
21472
+ var FloatingNodeContext = /* @__PURE__ */ React9.createContext(null);
21473
+ var FloatingTreeContext = /* @__PURE__ */ React9.createContext(null);
21231
21474
  var useFloatingParentNodeId = () => {
21232
21475
  var _React$useContext;
21233
- return ((_React$useContext = React8.useContext(FloatingNodeContext)) == null ? void 0 : _React$useContext.id) || null;
21476
+ return ((_React$useContext = React9.useContext(FloatingNodeContext)) == null ? void 0 : _React$useContext.id) || null;
21234
21477
  };
21235
- var useFloatingTree = () => React8.useContext(FloatingTreeContext);
21478
+ var useFloatingTree = () => React9.useContext(FloatingTreeContext);
21236
21479
  function useFloatingRootContext(options2) {
21237
21480
  const {
21238
21481
  open = false,
@@ -21240,8 +21483,8 @@ function useFloatingRootContext(options2) {
21240
21483
  elements: elementsProp
21241
21484
  } = options2;
21242
21485
  const floatingId = useId();
21243
- const dataRef = React8.useRef({});
21244
- const [events] = React8.useState(() => createEventEmitter());
21486
+ const dataRef = React9.useRef({});
21487
+ const [events] = React9.useState(() => createEventEmitter());
21245
21488
  const nested = useFloatingParentNodeId() != null;
21246
21489
  if (process.env.NODE_ENV !== "production") {
21247
21490
  const optionDomReference = elementsProp.reference;
@@ -21249,7 +21492,7 @@ function useFloatingRootContext(options2) {
21249
21492
  error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
21250
21493
  }
21251
21494
  }
21252
- const [positionReference, setPositionReference] = React8.useState(elementsProp.reference);
21495
+ const [positionReference, setPositionReference] = React9.useState(elementsProp.reference);
21253
21496
  const onOpenChange = useEffectEvent((open2, event, reason) => {
21254
21497
  dataRef.current.openEvent = open2 ? event : void 0;
21255
21498
  events.emit("openchange", {
@@ -21260,15 +21503,15 @@ function useFloatingRootContext(options2) {
21260
21503
  });
21261
21504
  onOpenChangeProp == null || onOpenChangeProp(open2, event, reason);
21262
21505
  });
21263
- const refs = React8.useMemo(() => ({
21506
+ const refs = React9.useMemo(() => ({
21264
21507
  setPositionReference
21265
21508
  }), []);
21266
- const elements = React8.useMemo(() => ({
21509
+ const elements = React9.useMemo(() => ({
21267
21510
  reference: positionReference || elementsProp.reference || null,
21268
21511
  floating: elementsProp.floating || null,
21269
21512
  domReference: elementsProp.reference
21270
21513
  }), [positionReference, elementsProp.reference, elementsProp.floating]);
21271
- return React8.useMemo(() => ({
21514
+ return React9.useMemo(() => ({
21272
21515
  dataRef,
21273
21516
  open,
21274
21517
  onOpenChange,
@@ -21295,11 +21538,11 @@ function useFloating2(options2) {
21295
21538
  });
21296
21539
  const rootContext = options2.rootContext || internalRootContext;
21297
21540
  const computedElements = rootContext.elements;
21298
- const [_domReference, setDomReference] = React8.useState(null);
21299
- const [positionReference, _setPositionReference] = React8.useState(null);
21541
+ const [_domReference, setDomReference] = React9.useState(null);
21542
+ const [positionReference, _setPositionReference] = React9.useState(null);
21300
21543
  const optionDomReference = computedElements == null ? void 0 : computedElements.domReference;
21301
21544
  const domReference = optionDomReference || _domReference;
21302
- const domReferenceRef = React8.useRef(null);
21545
+ const domReferenceRef = React9.useRef(null);
21303
21546
  const tree = useFloatingTree();
21304
21547
  index(() => {
21305
21548
  if (domReference) {
@@ -21315,7 +21558,7 @@ function useFloating2(options2) {
21315
21558
  }
21316
21559
  }
21317
21560
  });
21318
- const setPositionReference = React8.useCallback((node2) => {
21561
+ const setPositionReference = React9.useCallback((node2) => {
21319
21562
  const computedPositionReference = isElement(node2) ? {
21320
21563
  getBoundingClientRect: () => node2.getBoundingClientRect(),
21321
21564
  getClientRects: () => node2.getClientRects(),
@@ -21324,7 +21567,7 @@ function useFloating2(options2) {
21324
21567
  _setPositionReference(computedPositionReference);
21325
21568
  position2.refs.setReference(computedPositionReference);
21326
21569
  }, [position2.refs]);
21327
- const setReference = React8.useCallback((node2) => {
21570
+ const setReference = React9.useCallback((node2) => {
21328
21571
  if (isElement(node2) || node2 === null) {
21329
21572
  domReferenceRef.current = node2;
21330
21573
  setDomReference(node2);
@@ -21336,17 +21579,17 @@ function useFloating2(options2) {
21336
21579
  position2.refs.setReference(node2);
21337
21580
  }
21338
21581
  }, [position2.refs]);
21339
- const refs = React8.useMemo(() => ({
21582
+ const refs = React9.useMemo(() => ({
21340
21583
  ...position2.refs,
21341
21584
  setReference,
21342
21585
  setPositionReference,
21343
21586
  domReference: domReferenceRef
21344
21587
  }), [position2.refs, setReference, setPositionReference]);
21345
- const elements = React8.useMemo(() => ({
21588
+ const elements = React9.useMemo(() => ({
21346
21589
  ...position2.elements,
21347
21590
  domReference
21348
21591
  }), [position2.elements, domReference]);
21349
- const context = React8.useMemo(() => ({
21592
+ const context = React9.useMemo(() => ({
21350
21593
  ...position2,
21351
21594
  ...rootContext,
21352
21595
  refs,
@@ -21360,7 +21603,7 @@ function useFloating2(options2) {
21360
21603
  node2.context = context;
21361
21604
  }
21362
21605
  });
21363
- return React8.useMemo(() => ({
21606
+ return React9.useMemo(() => ({
21364
21607
  ...position2,
21365
21608
  context,
21366
21609
  refs,
@@ -21410,7 +21653,7 @@ function __spreadArray(to2, from2, pack) {
21410
21653
  var CalendarContainer = function(_a2) {
21411
21654
  var _b = _a2.showTimeSelectOnly, showTimeSelectOnly = _b === void 0 ? false : _b, _c = _a2.showTime, showTime = _c === void 0 ? false : _c, className = _a2.className, children = _a2.children;
21412
21655
  var ariaLabel = showTimeSelectOnly ? "Choose Time" : "Choose Date".concat(showTime ? " and Time" : "");
21413
- return React9.createElement("div", { className, role: "dialog", "aria-label": ariaLabel, "aria-modal": "true" }, children);
21656
+ return React10.createElement("div", { className, role: "dialog", "aria-label": ariaLabel, "aria-modal": "true" }, children);
21414
21657
  };
21415
21658
  var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21416
21659
  var ref = useRef10(null);
@@ -21427,7 +21670,7 @@ var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21427
21670
  }
21428
21671
  }
21429
21672
  }, [ignoreClass]);
21430
- useEffect15(function() {
21673
+ useEffect16(function() {
21431
21674
  document.addEventListener("mousedown", handleClickOutside);
21432
21675
  return function() {
21433
21676
  document.removeEventListener("mousedown", handleClickOutside);
@@ -21438,7 +21681,7 @@ var useDetectClickOutside = function(onClickOutside, ignoreClass) {
21438
21681
  var ClickOutsideWrapper = function(_a2) {
21439
21682
  var children = _a2.children, onClickOutside = _a2.onClickOutside, className = _a2.className, containerRef = _a2.containerRef, style = _a2.style, ignoreClass = _a2.ignoreClass;
21440
21683
  var detectRef = useDetectClickOutside(onClickOutside, ignoreClass);
21441
- return React9.createElement("div", { className, style, ref: function(node2) {
21684
+ return React10.createElement("div", { className, style, ref: function(node2) {
21442
21685
  detectRef.current = node2;
21443
21686
  if (containerRef) {
21444
21687
  containerRef.current = node2;
@@ -22034,7 +22277,7 @@ var InputTime = (
22034
22277
  __extends(InputTime2, _super);
22035
22278
  function InputTime2(props) {
22036
22279
  var _this = _super.call(this, props) || this;
22037
- _this.inputRef = React9.createRef();
22280
+ _this.inputRef = React10.createRef();
22038
22281
  _this.onTimeChange = function(time) {
22039
22282
  var _a2, _b;
22040
22283
  _this.setState({ time });
@@ -22058,7 +22301,7 @@ var InputTime = (
22058
22301
  onChange: _this.onTimeChange
22059
22302
  });
22060
22303
  }
22061
- return React9.createElement("input", { type: "time", className: "react-datepicker-time__input", placeholder: "Time", name: "time-input", ref: _this.inputRef, onClick: function() {
22304
+ return React10.createElement("input", { type: "time", className: "react-datepicker-time__input", placeholder: "Time", name: "time-input", ref: _this.inputRef, onClick: function() {
22062
22305
  var _a3;
22063
22306
  (_a3 = _this.inputRef.current) === null || _a3 === void 0 ? void 0 : _a3.focus();
22064
22307
  }, required: true, value: time, onChange: function(event) {
@@ -22079,14 +22322,14 @@ var InputTime = (
22079
22322
  return null;
22080
22323
  };
22081
22324
  InputTime2.prototype.render = function() {
22082
- return React9.createElement(
22325
+ return React10.createElement(
22083
22326
  "div",
22084
22327
  { className: "react-datepicker__input-time-container" },
22085
- React9.createElement("div", { className: "react-datepicker-time__caption" }, this.props.timeInputLabel),
22086
- React9.createElement(
22328
+ React10.createElement("div", { className: "react-datepicker-time__caption" }, this.props.timeInputLabel),
22329
+ React10.createElement(
22087
22330
  "div",
22088
22331
  { className: "react-datepicker-time__input-container" },
22089
- React9.createElement("div", { className: "react-datepicker-time__input" }, this.renderTimeInput())
22332
+ React10.createElement("div", { className: "react-datepicker-time__input" }, this.renderTimeInput())
22090
22333
  )
22091
22334
  );
22092
22335
  };
@@ -22334,11 +22577,11 @@ var Day = (
22334
22577
  _this.render = function() {
22335
22578
  return (
22336
22579
  // TODO: Use <option> instead of the "option" role to ensure accessibility across all devices.
22337
- React9.createElement(
22580
+ React10.createElement(
22338
22581
  "div",
22339
22582
  { ref: _this.dayEl, className: _this.getClassNames(_this.props.day), onKeyDown: _this.handleOnKeyDown, onClick: _this.handleClick, onMouseEnter: !_this.props.usePointerEvent ? _this.handleMouseEnter : void 0, onPointerEnter: _this.props.usePointerEvent ? _this.handleMouseEnter : void 0, tabIndex: _this.getTabIndex(), "aria-label": _this.getAriaLabel(), role: "option", title: _this.getTitle(), "aria-disabled": _this.isDisabled(), "aria-current": _this.isCurrentDay() ? "date" : void 0, "aria-selected": _this.isSelected() || _this.isInRange() },
22340
22583
  _this.renderDayContents(),
22341
- _this.getTitle() !== "" && React9.createElement("span", { className: "overlay" }, _this.getTitle())
22584
+ _this.getTitle() !== "" && React10.createElement("span", { className: "overlay" }, _this.getTitle())
22342
22585
  )
22343
22586
  );
22344
22587
  };
@@ -22447,7 +22690,7 @@ var WeekNumber = (
22447
22690
  "react-datepicker__week-number--clickable": !!onClick && !isWeekDisabled,
22448
22691
  "react-datepicker__week-number--selected": !!onClick && isSameDay2(this.props.date, this.props.selected)
22449
22692
  };
22450
- return React9.createElement("div", { ref: this.weekNumberEl, className: clsx(weekNumberClasses), "aria-label": "".concat(ariaLabelPrefix, " ").concat(this.props.weekNumber), onClick: this.handleClick, onKeyDown: this.handleOnKeyDown, tabIndex: this.getTabIndex() }, weekNumber);
22693
+ return React10.createElement("div", { ref: this.weekNumberEl, className: clsx(weekNumberClasses), "aria-label": "".concat(ariaLabelPrefix, " ").concat(this.props.weekNumber), onClick: this.handleClick, onKeyDown: this.handleOnKeyDown, tabIndex: this.getTabIndex() }, weekNumber);
22451
22694
  };
22452
22695
  return WeekNumber2;
22453
22696
  }(Component)
@@ -22524,11 +22767,11 @@ var Week = (
22524
22767
  var weekNumber = _this.formatWeekNumber(startOfWeek2);
22525
22768
  if (_this.props.showWeekNumber) {
22526
22769
  var onClickAction = _this.props.onWeekSelect || _this.props.showWeekPicker ? _this.handleWeekClick.bind(_this, startOfWeek2, weekNumber) : void 0;
22527
- days.push(React9.createElement(WeekNumber, _assign({ key: "W" }, Week2.defaultProps, _this.props, { weekNumber, isWeekDisabled: _this.isWeekDisabled(), date: startOfWeek2, onClick: onClickAction })));
22770
+ days.push(React10.createElement(WeekNumber, _assign({ key: "W" }, Week2.defaultProps, _this.props, { weekNumber, isWeekDisabled: _this.isWeekDisabled(), date: startOfWeek2, onClick: onClickAction })));
22528
22771
  }
22529
22772
  return days.concat([0, 1, 2, 3, 4, 5, 6].map(function(offset4) {
22530
22773
  var day = addDays(startOfWeek2, offset4);
22531
- return React9.createElement(Day, _assign({}, Week2.defaultProps, _this.props, { ariaLabelPrefixWhenEnabled: _this.props.chooseDayAriaLabelPrefix, ariaLabelPrefixWhenDisabled: _this.props.disabledDayAriaLabelPrefix, key: day.valueOf(), day, onClick: _this.handleDayClick.bind(_this, day), onMouseEnter: _this.handleDayMouseEnter.bind(_this, day) }));
22774
+ return React10.createElement(Day, _assign({}, Week2.defaultProps, _this.props, { ariaLabelPrefixWhenEnabled: _this.props.chooseDayAriaLabelPrefix, ariaLabelPrefixWhenDisabled: _this.props.disabledDayAriaLabelPrefix, key: day.valueOf(), day, onClick: _this.handleDayClick.bind(_this, day), onMouseEnter: _this.handleDayMouseEnter.bind(_this, day) }));
22532
22775
  }));
22533
22776
  };
22534
22777
  _this.startOfWeek = function() {
@@ -22554,7 +22797,7 @@ var Week = (
22554
22797
  "react-datepicker__week--selected": isSameDay2(this.startOfWeek(), this.props.selected),
22555
22798
  "react-datepicker__week--keyboard-selected": this.isKeyboardSelected()
22556
22799
  };
22557
- return React9.createElement("div", { className: clsx(weekNumberClasses) }, this.renderDays());
22800
+ return React10.createElement("div", { className: clsx(weekNumberClasses) }, this.renderDays());
22558
22801
  };
22559
22802
  return Week2;
22560
22803
  }(Component)
@@ -22782,7 +23025,7 @@ var Month = (
22782
23025
  var selected = _this.props.selected ? isSelected(_this.props.selected) : void 0;
22783
23026
  var preSelection = _this.props.preSelection ? isPreSelected(_this.props.preSelection) : void 0;
22784
23027
  while (true) {
22785
- weeks.push(React9.createElement(Week, _assign({}, _this.props, { ariaLabelPrefix: _this.props.weekAriaLabelPrefix, key: i3, day: currentWeekStart, month: getMonth(_this.props.day), onDayClick: _this.handleDayClick, onDayMouseEnter: _this.handleDayMouseEnter, selected, preSelection, showWeekNumber: _this.props.showWeekNumbers })));
23028
+ weeks.push(React10.createElement(Week, _assign({}, _this.props, { ariaLabelPrefix: _this.props.weekAriaLabelPrefix, key: i3, day: currentWeekStart, month: getMonth(_this.props.day), onDayClick: _this.handleDayClick, onDayMouseEnter: _this.handleDayMouseEnter, selected, preSelection, showWeekNumber: _this.props.showWeekNumbers })));
22786
23029
  if (breakAfterNextPush)
22787
23030
  break;
22788
23031
  i3++;
@@ -23051,8 +23294,8 @@ var Month = (
23051
23294
  var _b = _this.props, showTwoColumnMonthYearPicker = _b.showTwoColumnMonthYearPicker, showFourColumnMonthYearPicker = _b.showFourColumnMonthYearPicker, day = _b.day, selected = _b.selected;
23052
23295
  var monthColumns = (_a2 = MONTH_COLUMNS[getMonthColumnsLayout(showFourColumnMonthYearPicker, showTwoColumnMonthYearPicker)]) === null || _a2 === void 0 ? void 0 : _a2.grid;
23053
23296
  return monthColumns === null || monthColumns === void 0 ? void 0 : monthColumns.map(function(month, i3) {
23054
- return React9.createElement("div", { className: "react-datepicker__month-wrapper", key: i3 }, month.map(function(m, j) {
23055
- return React9.createElement("div", { ref: _this.MONTH_REFS[m], key: j, onClick: function(event) {
23297
+ return React10.createElement("div", { className: "react-datepicker__month-wrapper", key: i3 }, month.map(function(m, j) {
23298
+ return React10.createElement("div", { ref: _this.MONTH_REFS[m], key: j, onClick: function(event) {
23056
23299
  _this.onMonthClick(event, m);
23057
23300
  }, onKeyDown: function(event) {
23058
23301
  if (isSpaceKeyDown(event)) {
@@ -23071,8 +23314,8 @@ var Month = (
23071
23314
  _this.renderQuarters = function() {
23072
23315
  var _a2 = _this.props, day = _a2.day, selected = _a2.selected;
23073
23316
  var quarters = [1, 2, 3, 4];
23074
- return React9.createElement("div", { className: "react-datepicker__quarter-wrapper" }, quarters.map(function(q3, j) {
23075
- return React9.createElement("div", { key: j, ref: _this.QUARTER_REFS[j], role: "option", onClick: function(event) {
23317
+ return React10.createElement("div", { className: "react-datepicker__quarter-wrapper" }, quarters.map(function(q3, j) {
23318
+ return React10.createElement("div", { key: j, ref: _this.QUARTER_REFS[j], role: "option", onClick: function(event) {
23076
23319
  _this.onQuarterClick(event, q3);
23077
23320
  }, onKeyDown: function(event) {
23078
23321
  _this.onQuarterKeyDown(event, q3);
@@ -23104,7 +23347,7 @@ var Month = (
23104
23347
  Month2.prototype.render = function() {
23105
23348
  var _a2 = this.props, showMonthYearPicker = _a2.showMonthYearPicker, showQuarterYearPicker = _a2.showQuarterYearPicker, day = _a2.day, _b = _a2.ariaLabelPrefix, ariaLabelPrefix = _b === void 0 ? "Month " : _b;
23106
23349
  var formattedAriaLabelPrefix = ariaLabelPrefix ? ariaLabelPrefix.trim() + " " : "";
23107
- return React9.createElement("div", { className: this.getClassNames(), onMouseLeave: !this.props.usePointerEvent ? this.handleMouseLeave : void 0, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": "".concat(formattedAriaLabelPrefix).concat(formatDate(day, "MMMM, yyyy", this.props.locale)), role: "listbox" }, showMonthYearPicker ? this.renderMonths() : showQuarterYearPicker ? this.renderQuarters() : this.renderWeeks());
23350
+ return React10.createElement("div", { className: this.getClassNames(), onMouseLeave: !this.props.usePointerEvent ? this.handleMouseLeave : void 0, onPointerLeave: this.props.usePointerEvent ? this.handleMouseLeave : void 0, "aria-label": "".concat(formattedAriaLabelPrefix).concat(formatDate(day, "MMMM, yyyy", this.props.locale)), role: "listbox" }, showMonthYearPicker ? this.renderMonths() : showQuarterYearPicker ? this.renderQuarters() : this.renderWeeks());
23108
23351
  };
23109
23352
  return Month2;
23110
23353
  }(Component)
@@ -23120,10 +23363,10 @@ var MonthDropdownOptions = (
23120
23363
  };
23121
23364
  _this.renderOptions = function() {
23122
23365
  return _this.props.monthNames.map(function(month, i3) {
23123
- return React9.createElement(
23366
+ return React10.createElement(
23124
23367
  "div",
23125
23368
  { className: _this.isSelectedMonth(i3) ? "react-datepicker__month-option react-datepicker__month-option--selected_month" : "react-datepicker__month-option", key: month, onClick: _this.onChange.bind(_this, i3), "aria-selected": _this.isSelectedMonth(i3) ? "true" : void 0 },
23126
- _this.isSelectedMonth(i3) ? React9.createElement("span", { className: "react-datepicker__month-option--selected" }, "\u2713") : "",
23369
+ _this.isSelectedMonth(i3) ? React10.createElement("span", { className: "react-datepicker__month-option--selected" }, "\u2713") : "",
23127
23370
  month
23128
23371
  );
23129
23372
  });
@@ -23137,7 +23380,7 @@ var MonthDropdownOptions = (
23137
23380
  return _this;
23138
23381
  }
23139
23382
  MonthDropdownOptions2.prototype.render = function() {
23140
- return React9.createElement(ClickOutsideWrapper, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
23383
+ return React10.createElement(ClickOutsideWrapper, { className: "react-datepicker__month-dropdown", onClickOutside: this.handleClickOutside }, this.renderOptions());
23141
23384
  };
23142
23385
  return MonthDropdownOptions2;
23143
23386
  }(Component)
@@ -23153,24 +23396,24 @@ var MonthDropdown = (
23153
23396
  };
23154
23397
  _this.renderSelectOptions = function(monthNames) {
23155
23398
  return monthNames.map(function(m, i3) {
23156
- return React9.createElement("option", { key: m, value: i3 }, m);
23399
+ return React10.createElement("option", { key: m, value: i3 }, m);
23157
23400
  });
23158
23401
  };
23159
23402
  _this.renderSelectMode = function(monthNames) {
23160
- return React9.createElement("select", { value: _this.props.month, className: "react-datepicker__month-select", onChange: function(e3) {
23403
+ return React10.createElement("select", { value: _this.props.month, className: "react-datepicker__month-select", onChange: function(e3) {
23161
23404
  return _this.onChange(parseInt(e3.target.value));
23162
23405
  } }, _this.renderSelectOptions(monthNames));
23163
23406
  };
23164
23407
  _this.renderReadView = function(visible, monthNames) {
23165
- return React9.createElement(
23408
+ return React10.createElement(
23166
23409
  "div",
23167
23410
  { key: "read", style: { visibility: visible ? "visible" : "hidden" }, className: "react-datepicker__month-read-view", onClick: _this.toggleDropdown },
23168
- React9.createElement("span", { className: "react-datepicker__month-read-view--down-arrow" }),
23169
- React9.createElement("span", { className: "react-datepicker__month-read-view--selected-month" }, monthNames[_this.props.month])
23411
+ React10.createElement("span", { className: "react-datepicker__month-read-view--down-arrow" }),
23412
+ React10.createElement("span", { className: "react-datepicker__month-read-view--selected-month" }, monthNames[_this.props.month])
23170
23413
  );
23171
23414
  };
23172
23415
  _this.renderDropdown = function(monthNames) {
23173
- return React9.createElement(MonthDropdownOptions, _assign({ key: "dropdown" }, _this.props, { monthNames, onChange: _this.onChange, onCancel: _this.toggleDropdown }));
23416
+ return React10.createElement(MonthDropdownOptions, _assign({ key: "dropdown" }, _this.props, { monthNames, onChange: _this.onChange, onCancel: _this.toggleDropdown }));
23174
23417
  };
23175
23418
  _this.renderScrollMode = function(monthNames) {
23176
23419
  var dropdownVisible = _this.state.dropdownVisible;
@@ -23209,7 +23452,7 @@ var MonthDropdown = (
23209
23452
  renderedDropdown = this.renderSelectMode(monthNames);
23210
23453
  break;
23211
23454
  }
23212
- return React9.createElement("div", { className: "react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode) }, renderedDropdown);
23455
+ return React10.createElement("div", { className: "react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode) }, renderedDropdown);
23213
23456
  };
23214
23457
  return MonthDropdown2;
23215
23458
  }(Component)
@@ -23234,10 +23477,10 @@ var MonthYearDropdownOptions = (
23234
23477
  return _this.state.monthYearsList.map(function(monthYear) {
23235
23478
  var monthYearPoint = getTime(monthYear);
23236
23479
  var isSameMonthYear = isSameYear2(_this.props.date, monthYear) && isSameMonth2(_this.props.date, monthYear);
23237
- return React9.createElement(
23480
+ return React10.createElement(
23238
23481
  "div",
23239
23482
  { className: isSameMonthYear ? "react-datepicker__month-year-option--selected_month-year" : "react-datepicker__month-year-option", key: monthYearPoint, onClick: _this.onChange.bind(_this, monthYearPoint), "aria-selected": isSameMonthYear ? "true" : void 0 },
23240
- isSameMonthYear ? React9.createElement("span", { className: "react-datepicker__month-year-option--selected" }, "\u2713") : "",
23483
+ isSameMonthYear ? React10.createElement("span", { className: "react-datepicker__month-year-option--selected" }, "\u2713") : "",
23241
23484
  formatDate(monthYear, _this.props.dateFormat, _this.props.locale)
23242
23485
  );
23243
23486
  });
@@ -23258,7 +23501,7 @@ var MonthYearDropdownOptions = (
23258
23501
  "react-datepicker__month-year-dropdown": true,
23259
23502
  "react-datepicker__month-year-dropdown--scrollable": this.props.scrollableMonthYearDropdown
23260
23503
  });
23261
- return React9.createElement(ClickOutsideWrapper, { className: dropdownClass, onClickOutside: this.handleClickOutside }, this.renderOptions());
23504
+ return React10.createElement(ClickOutsideWrapper, { className: dropdownClass, onClickOutside: this.handleClickOutside }, this.renderOptions());
23262
23505
  };
23263
23506
  return MonthYearDropdownOptions2;
23264
23507
  }(Component)
@@ -23278,7 +23521,7 @@ var MonthYearDropdown = (
23278
23521
  var options2 = [];
23279
23522
  while (!isAfter(currDate, lastDate)) {
23280
23523
  var timePoint = getTime(currDate);
23281
- options2.push(React9.createElement("option", { key: timePoint, value: timePoint }, formatDate(currDate, _this.props.dateFormat, _this.props.locale)));
23524
+ options2.push(React10.createElement("option", { key: timePoint, value: timePoint }, formatDate(currDate, _this.props.dateFormat, _this.props.locale)));
23282
23525
  currDate = addMonths(currDate, 1);
23283
23526
  }
23284
23527
  return options2;
@@ -23287,19 +23530,19 @@ var MonthYearDropdown = (
23287
23530
  _this.onChange(parseInt(event.target.value));
23288
23531
  };
23289
23532
  _this.renderSelectMode = function() {
23290
- return React9.createElement("select", { value: getTime(getStartOfMonth(_this.props.date)), className: "react-datepicker__month-year-select", onChange: _this.onSelectChange }, _this.renderSelectOptions());
23533
+ return React10.createElement("select", { value: getTime(getStartOfMonth(_this.props.date)), className: "react-datepicker__month-year-select", onChange: _this.onSelectChange }, _this.renderSelectOptions());
23291
23534
  };
23292
23535
  _this.renderReadView = function(visible) {
23293
23536
  var yearMonth = formatDate(_this.props.date, _this.props.dateFormat, _this.props.locale);
23294
- return React9.createElement(
23537
+ return React10.createElement(
23295
23538
  "div",
23296
23539
  { key: "read", style: { visibility: visible ? "visible" : "hidden" }, className: "react-datepicker__month-year-read-view", onClick: _this.toggleDropdown },
23297
- React9.createElement("span", { className: "react-datepicker__month-year-read-view--down-arrow" }),
23298
- React9.createElement("span", { className: "react-datepicker__month-year-read-view--selected-month-year" }, yearMonth)
23540
+ React10.createElement("span", { className: "react-datepicker__month-year-read-view--down-arrow" }),
23541
+ React10.createElement("span", { className: "react-datepicker__month-year-read-view--selected-month-year" }, yearMonth)
23299
23542
  );
23300
23543
  };
23301
23544
  _this.renderDropdown = function() {
23302
- return React9.createElement(MonthYearDropdownOptions, _assign({ key: "dropdown" }, _this.props, { onChange: _this.onChange, onCancel: _this.toggleDropdown }));
23545
+ return React10.createElement(MonthYearDropdownOptions, _assign({ key: "dropdown" }, _this.props, { onChange: _this.onChange, onCancel: _this.toggleDropdown }));
23303
23546
  };
23304
23547
  _this.renderScrollMode = function() {
23305
23548
  var dropdownVisible = _this.state.dropdownVisible;
@@ -23334,7 +23577,7 @@ var MonthYearDropdown = (
23334
23577
  renderedDropdown = this.renderSelectMode();
23335
23578
  break;
23336
23579
  }
23337
- return React9.createElement("div", { className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) }, renderedDropdown);
23580
+ return React10.createElement("div", { className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) }, renderedDropdown);
23338
23581
  };
23339
23582
  return MonthYearDropdown2;
23340
23583
  }(Component)
@@ -23432,7 +23675,7 @@ var Time = (
23432
23675
  return prev2;
23433
23676
  }, times[0]);
23434
23677
  return times.map(function(time) {
23435
- return React9.createElement("li", { key: time.valueOf(), onClick: _this.handleClick.bind(_this, time), className: _this.liClasses(time), ref: function(li) {
23678
+ return React10.createElement("li", { key: time.valueOf(), onClick: _this.handleClick.bind(_this, time), className: _this.liClasses(time), ref: function(li) {
23436
23679
  if (time === timeToFocus) {
23437
23680
  _this.centerLi = li;
23438
23681
  }
@@ -23443,14 +23686,14 @@ var Time = (
23443
23686
  };
23444
23687
  _this.renderTimeCaption = function() {
23445
23688
  if (_this.props.showTimeCaption === false) {
23446
- return React9.createElement(React9.Fragment, null);
23689
+ return React10.createElement(React10.Fragment, null);
23447
23690
  }
23448
- return React9.createElement(
23691
+ return React10.createElement(
23449
23692
  "div",
23450
23693
  { className: "react-datepicker__header react-datepicker__header--time ".concat(_this.props.showTimeSelectOnly ? "react-datepicker__header--time--only" : ""), ref: function(header) {
23451
23694
  _this.header = header;
23452
23695
  } },
23453
- React9.createElement("div", { className: "react-datepicker-time__header" }, _this.props.timeCaption)
23696
+ React10.createElement("div", { className: "react-datepicker-time__header" }, _this.props.timeCaption)
23454
23697
  );
23455
23698
  };
23456
23699
  return _this;
@@ -23497,17 +23740,17 @@ var Time = (
23497
23740
  var _this = this;
23498
23741
  var _a2;
23499
23742
  var height = this.state.height;
23500
- return React9.createElement(
23743
+ return React10.createElement(
23501
23744
  "div",
23502
23745
  { className: "react-datepicker__time-container ".concat(((_a2 = this.props.todayButton) !== null && _a2 !== void 0 ? _a2 : Time2.defaultProps.todayButton) ? "react-datepicker__time-container--with-today-button" : "") },
23503
23746
  this.renderTimeCaption(),
23504
- React9.createElement(
23747
+ React10.createElement(
23505
23748
  "div",
23506
23749
  { className: "react-datepicker__time" },
23507
- React9.createElement(
23750
+ React10.createElement(
23508
23751
  "div",
23509
23752
  { className: "react-datepicker__time-box" },
23510
- React9.createElement("ul", { className: "react-datepicker__time-list", ref: function(list) {
23753
+ React10.createElement("ul", { className: "react-datepicker__time-list", ref: function(list) {
23511
23754
  _this.list = list;
23512
23755
  }, style: height ? { height } : {}, role: "listbox", "aria-label": this.props.timeCaption }, this.renderTimes())
23513
23756
  )
@@ -23765,7 +24008,7 @@ var Year = (
23765
24008
  }
23766
24009
  var _b = getYearsPeriod(date, yearItemNumber), startPeriod = _b.startPeriod, endPeriod = _b.endPeriod;
23767
24010
  var _loop_1 = function(y4) {
23768
- yearsList.push(React9.createElement("div", { ref: this_1.YEAR_REFS[y4 - startPeriod], onClick: function(event) {
24011
+ yearsList.push(React10.createElement("div", { ref: this_1.YEAR_REFS[y4 - startPeriod], onClick: function(event) {
23769
24012
  _this.onYearClick(event, y4);
23770
24013
  }, onKeyDown: function(event) {
23771
24014
  if (isSpaceKeyDown(event)) {
@@ -23787,10 +24030,10 @@ var Year = (
23787
24030
  for (var y3 = startPeriod; y3 <= endPeriod; y3++) {
23788
24031
  _loop_1(y3);
23789
24032
  }
23790
- return React9.createElement(
24033
+ return React10.createElement(
23791
24034
  "div",
23792
24035
  { className: "react-datepicker__year" },
23793
- React9.createElement("div", { className: "react-datepicker__year-wrapper", onMouseLeave: !this.props.usePointerEvent ? this.props.clearSelectingDate : void 0, onPointerLeave: this.props.usePointerEvent ? this.props.clearSelectingDate : void 0 }, yearsList)
24036
+ React10.createElement("div", { className: "react-datepicker__year-wrapper", onMouseLeave: !this.props.usePointerEvent ? this.props.clearSelectingDate : void 0, onPointerLeave: this.props.usePointerEvent ? this.props.clearSelectingDate : void 0 }, yearsList)
23794
24037
  );
23795
24038
  };
23796
24039
  return Year2;
@@ -23822,10 +24065,10 @@ var YearDropdownOptions = (
23822
24065
  _this.renderOptions = function() {
23823
24066
  var selectedYear = _this.props.year;
23824
24067
  var options2 = _this.state.yearsList.map(function(year) {
23825
- return React9.createElement(
24068
+ return React10.createElement(
23826
24069
  "div",
23827
24070
  { className: selectedYear === year ? "react-datepicker__year-option react-datepicker__year-option--selected_year" : "react-datepicker__year-option", key: year, onClick: _this.onChange.bind(_this, year), "aria-selected": selectedYear === year ? "true" : void 0 },
23828
- selectedYear === year ? React9.createElement("span", { className: "react-datepicker__year-option--selected" }, "\u2713") : "",
24071
+ selectedYear === year ? React10.createElement("span", { className: "react-datepicker__year-option--selected" }, "\u2713") : "",
23829
24072
  year
23830
24073
  );
23831
24074
  });
@@ -23834,19 +24077,19 @@ var YearDropdownOptions = (
23834
24077
  if (!maxYear || !_this.state.yearsList.find(function(year) {
23835
24078
  return year === maxYear;
23836
24079
  })) {
23837
- options2.unshift(React9.createElement(
24080
+ options2.unshift(React10.createElement(
23838
24081
  "div",
23839
24082
  { className: "react-datepicker__year-option", key: "upcoming", onClick: _this.incrementYears },
23840
- React9.createElement("a", { className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming" })
24083
+ React10.createElement("a", { className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming" })
23841
24084
  ));
23842
24085
  }
23843
24086
  if (!minYear || !_this.state.yearsList.find(function(year) {
23844
24087
  return year === minYear;
23845
24088
  })) {
23846
- options2.push(React9.createElement(
24089
+ options2.push(React10.createElement(
23847
24090
  "div",
23848
24091
  { className: "react-datepicker__year-option", key: "previous", onClick: _this.decrementYears },
23849
- React9.createElement("a", { className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous" })
24092
+ React10.createElement("a", { className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous" })
23850
24093
  ));
23851
24094
  }
23852
24095
  return options2;
@@ -23894,7 +24137,7 @@ var YearDropdownOptions = (
23894
24137
  "react-datepicker__year-dropdown": true,
23895
24138
  "react-datepicker__year-dropdown--scrollable": this.props.scrollableYearDropdown
23896
24139
  });
23897
- return React9.createElement(ClickOutsideWrapper, { className: dropdownClass, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
24140
+ return React10.createElement(ClickOutsideWrapper, { className: dropdownClass, containerRef: this.dropdownRef, onClickOutside: this.handleClickOutside }, this.renderOptions());
23898
24141
  };
23899
24142
  return YearDropdownOptions2;
23900
24143
  }(Component)
@@ -23913,7 +24156,7 @@ var YearDropdown = (
23913
24156
  var maxYear = _this.props.maxDate ? getYear(_this.props.maxDate) : 2100;
23914
24157
  var options2 = [];
23915
24158
  for (var i3 = minYear; i3 <= maxYear; i3++) {
23916
- options2.push(React9.createElement("option", { key: i3, value: i3 }, i3));
24159
+ options2.push(React10.createElement("option", { key: i3, value: i3 }, i3));
23917
24160
  }
23918
24161
  return options2;
23919
24162
  };
@@ -23921,20 +24164,20 @@ var YearDropdown = (
23921
24164
  _this.onChange(parseInt(event.target.value));
23922
24165
  };
23923
24166
  _this.renderSelectMode = function() {
23924
- return React9.createElement("select", { value: _this.props.year, className: "react-datepicker__year-select", onChange: _this.onSelectChange }, _this.renderSelectOptions());
24167
+ return React10.createElement("select", { value: _this.props.year, className: "react-datepicker__year-select", onChange: _this.onSelectChange }, _this.renderSelectOptions());
23925
24168
  };
23926
24169
  _this.renderReadView = function(visible) {
23927
- return React9.createElement(
24170
+ return React10.createElement(
23928
24171
  "div",
23929
24172
  { key: "read", style: { visibility: visible ? "visible" : "hidden" }, className: "react-datepicker__year-read-view", onClick: function(event) {
23930
24173
  return _this.toggleDropdown(event);
23931
24174
  } },
23932
- React9.createElement("span", { className: "react-datepicker__year-read-view--down-arrow" }),
23933
- React9.createElement("span", { className: "react-datepicker__year-read-view--selected-year" }, _this.props.year)
24175
+ React10.createElement("span", { className: "react-datepicker__year-read-view--down-arrow" }),
24176
+ React10.createElement("span", { className: "react-datepicker__year-read-view--selected-year" }, _this.props.year)
23934
24177
  );
23935
24178
  };
23936
24179
  _this.renderDropdown = function() {
23937
- return React9.createElement(YearDropdownOptions, _assign({ key: "dropdown" }, _this.props, { onChange: _this.onChange, onCancel: _this.toggleDropdown }));
24180
+ return React10.createElement(YearDropdownOptions, _assign({ key: "dropdown" }, _this.props, { onChange: _this.onChange, onCancel: _this.toggleDropdown }));
23938
24181
  };
23939
24182
  _this.renderScrollMode = function() {
23940
24183
  var dropdownVisible = _this.state.dropdownVisible;
@@ -23984,7 +24227,7 @@ var YearDropdown = (
23984
24227
  renderedDropdown = this.renderSelectMode();
23985
24228
  break;
23986
24229
  }
23987
- return React9.createElement("div", { className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) }, renderedDropdown);
24230
+ return React10.createElement("div", { className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) }, renderedDropdown);
23988
24231
  };
23989
24232
  return YearDropdown2;
23990
24233
  }(Component)
@@ -24158,13 +24401,13 @@ var Calendar = (
24158
24401
  var startOfWeek2 = getStartOfWeek(date, _this.props.locale, _this.props.calendarStartDay);
24159
24402
  var dayNames = [];
24160
24403
  if (_this.props.showWeekNumbers) {
24161
- dayNames.push(React9.createElement("div", { key: "W", className: "react-datepicker__day-name" }, _this.props.weekLabel || "#"));
24404
+ dayNames.push(React10.createElement("div", { key: "W", className: "react-datepicker__day-name" }, _this.props.weekLabel || "#"));
24162
24405
  }
24163
24406
  return dayNames.concat([0, 1, 2, 3, 4, 5, 6].map(function(offset4) {
24164
24407
  var day = addDays(startOfWeek2, offset4);
24165
24408
  var weekDayName = _this.formatWeekday(day, _this.props.locale);
24166
24409
  var weekDayClassName = _this.props.weekDayClassName ? _this.props.weekDayClassName(day) : void 0;
24167
- return React9.createElement("div", { key: offset4, "aria-label": formatDate(day, "EEEE", _this.props.locale), className: clsx("react-datepicker__day-name", weekDayClassName) }, weekDayName);
24410
+ return React10.createElement("div", { key: offset4, "aria-label": formatDate(day, "EEEE", _this.props.locale), className: clsx("react-datepicker__day-name", weekDayClassName) }, weekDayName);
24168
24411
  }));
24169
24412
  };
24170
24413
  _this.formatWeekday = function(day, locale) {
@@ -24233,10 +24476,10 @@ var Calendar = (
24233
24476
  var isForYear = _this.props.showMonthYearPicker || _this.props.showQuarterYearPicker || _this.props.showYearPicker;
24234
24477
  var _d = _this.props, _e = _d.previousMonthButtonLabel, previousMonthButtonLabel = _e === void 0 ? Calendar2.defaultProps.previousMonthButtonLabel : _e, _f = _d.previousYearButtonLabel, previousYearButtonLabel = _f === void 0 ? Calendar2.defaultProps.previousYearButtonLabel : _f;
24235
24478
  var _g = _this.props, _h = _g.previousMonthAriaLabel, previousMonthAriaLabel = _h === void 0 ? typeof previousMonthButtonLabel === "string" ? previousMonthButtonLabel : "Previous Month" : _h, _j = _g.previousYearAriaLabel, previousYearAriaLabel = _j === void 0 ? typeof previousYearButtonLabel === "string" ? previousYearButtonLabel : "Previous Year" : _j;
24236
- return React9.createElement(
24479
+ return React10.createElement(
24237
24480
  "button",
24238
24481
  { type: "button", className: classes.join(" "), onClick: clickHandler, onKeyDown: _this.props.handleOnKeyDown, "aria-label": isForYear ? previousYearAriaLabel : previousMonthAriaLabel },
24239
- React9.createElement("span", { className: iconClasses.join(" ") }, isForYear ? previousYearButtonLabel : previousMonthButtonLabel)
24482
+ React10.createElement("span", { className: iconClasses.join(" ") }, isForYear ? previousYearButtonLabel : previousMonthButtonLabel)
24240
24483
  );
24241
24484
  };
24242
24485
  _this.increaseYear = function() {
@@ -24298,10 +24541,10 @@ var Calendar = (
24298
24541
  var isForYear = _this.props.showMonthYearPicker || _this.props.showQuarterYearPicker || _this.props.showYearPicker;
24299
24542
  var _b = _this.props, _c = _b.nextMonthButtonLabel, nextMonthButtonLabel = _c === void 0 ? Calendar2.defaultProps.nextMonthButtonLabel : _c, _d = _b.nextYearButtonLabel, nextYearButtonLabel = _d === void 0 ? Calendar2.defaultProps.nextYearButtonLabel : _d;
24300
24543
  var _e = _this.props, _f = _e.nextMonthAriaLabel, nextMonthAriaLabel = _f === void 0 ? typeof nextMonthButtonLabel === "string" ? nextMonthButtonLabel : "Next Month" : _f, _g = _e.nextYearAriaLabel, nextYearAriaLabel = _g === void 0 ? typeof nextYearButtonLabel === "string" ? nextYearButtonLabel : "Next Year" : _g;
24301
- return React9.createElement(
24544
+ return React10.createElement(
24302
24545
  "button",
24303
24546
  { type: "button", className: classes.join(" "), onClick: clickHandler, onKeyDown: _this.props.handleOnKeyDown, "aria-label": isForYear ? nextYearAriaLabel : nextMonthAriaLabel },
24304
- React9.createElement("span", { className: iconClasses.join(" ") }, isForYear ? nextYearButtonLabel : nextMonthButtonLabel)
24547
+ React10.createElement("span", { className: iconClasses.join(" ") }, isForYear ? nextYearButtonLabel : nextMonthButtonLabel)
24305
24548
  );
24306
24549
  };
24307
24550
  _this.renderCurrentMonth = function(date) {
@@ -24318,7 +24561,7 @@ var Calendar = (
24318
24561
  if (_this.props.showMonthYearDropdown) {
24319
24562
  classes.push("react-datepicker__current-month--hasMonthYearDropdown");
24320
24563
  }
24321
- return React9.createElement("h2", { className: classes.join(" ") }, formatDate(date, _this.props.dateFormat, _this.props.locale));
24564
+ return React10.createElement("h2", { className: classes.join(" ") }, formatDate(date, _this.props.dateFormat, _this.props.locale));
24322
24565
  };
24323
24566
  _this.renderYearDropdown = function(overrideHide) {
24324
24567
  if (overrideHide === void 0) {
@@ -24327,7 +24570,7 @@ var Calendar = (
24327
24570
  if (!_this.props.showYearDropdown || overrideHide) {
24328
24571
  return;
24329
24572
  }
24330
- return React9.createElement(YearDropdown, _assign({}, Calendar2.defaultProps, _this.props, { date: _this.state.date, onChange: _this.changeYear, year: getYear(_this.state.date) }));
24573
+ return React10.createElement(YearDropdown, _assign({}, Calendar2.defaultProps, _this.props, { date: _this.state.date, onChange: _this.changeYear, year: getYear(_this.state.date) }));
24331
24574
  };
24332
24575
  _this.renderMonthDropdown = function(overrideHide) {
24333
24576
  if (overrideHide === void 0) {
@@ -24336,7 +24579,7 @@ var Calendar = (
24336
24579
  if (!_this.props.showMonthDropdown || overrideHide) {
24337
24580
  return;
24338
24581
  }
24339
- return React9.createElement(MonthDropdown, _assign({}, Calendar2.defaultProps, _this.props, { month: getMonth(_this.state.date), onChange: _this.changeMonth }));
24582
+ return React10.createElement(MonthDropdown, _assign({}, Calendar2.defaultProps, _this.props, { month: getMonth(_this.state.date), onChange: _this.changeMonth }));
24340
24583
  };
24341
24584
  _this.renderMonthYearDropdown = function(overrideHide) {
24342
24585
  if (overrideHide === void 0) {
@@ -24345,7 +24588,7 @@ var Calendar = (
24345
24588
  if (!_this.props.showMonthYearDropdown || overrideHide) {
24346
24589
  return;
24347
24590
  }
24348
- return React9.createElement(MonthYearDropdown, _assign({}, Calendar2.defaultProps, _this.props, { date: _this.state.date, onChange: _this.changeMonthYear }));
24591
+ return React10.createElement(MonthYearDropdown, _assign({}, Calendar2.defaultProps, _this.props, { date: _this.state.date, onChange: _this.changeMonthYear }));
24349
24592
  };
24350
24593
  _this.handleTodayButtonClick = function(event) {
24351
24594
  _this.props.onSelect(getStartOfToday(), event);
@@ -24355,22 +24598,22 @@ var Calendar = (
24355
24598
  if (!_this.props.todayButton || _this.props.showTimeSelectOnly) {
24356
24599
  return;
24357
24600
  }
24358
- return React9.createElement("div", { className: "react-datepicker__today-button", onClick: _this.handleTodayButtonClick }, _this.props.todayButton);
24601
+ return React10.createElement("div", { className: "react-datepicker__today-button", onClick: _this.handleTodayButtonClick }, _this.props.todayButton);
24359
24602
  };
24360
24603
  _this.renderDefaultHeader = function(_a2) {
24361
24604
  var monthDate = _a2.monthDate, i3 = _a2.i;
24362
- return React9.createElement(
24605
+ return React10.createElement(
24363
24606
  "div",
24364
24607
  { className: "react-datepicker__header ".concat(_this.props.showTimeSelect ? "react-datepicker__header--has-time-select" : "") },
24365
24608
  _this.renderCurrentMonth(monthDate),
24366
- React9.createElement(
24609
+ React10.createElement(
24367
24610
  "div",
24368
24611
  { className: "react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(_this.props.dropdownMode), onFocus: _this.handleDropdownFocus },
24369
24612
  _this.renderMonthDropdown(i3 !== 0),
24370
24613
  _this.renderMonthYearDropdown(i3 !== 0),
24371
24614
  _this.renderYearDropdown(i3 !== 0)
24372
24615
  ),
24373
- React9.createElement("div", { className: "react-datepicker__day-names" }, _this.header(monthDate))
24616
+ React10.createElement("div", { className: "react-datepicker__day-names" }, _this.header(monthDate))
24374
24617
  );
24375
24618
  };
24376
24619
  _this.renderCustomHeader = function(headerArgs) {
@@ -24384,18 +24627,18 @@ var Calendar = (
24384
24627
  var prevYearButtonDisabled = yearDisabledBefore(_this.state.date, _this.props);
24385
24628
  var nextYearButtonDisabled = yearDisabledAfter(_this.state.date, _this.props);
24386
24629
  var showDayNames = !_this.props.showMonthYearPicker && !_this.props.showQuarterYearPicker && !_this.props.showYearPicker;
24387
- return React9.createElement(
24630
+ return React10.createElement(
24388
24631
  "div",
24389
24632
  { className: "react-datepicker__header react-datepicker__header--custom", onFocus: _this.props.onDropdownFocus },
24390
24633
  (_b = (_a2 = _this.props).renderCustomHeader) === null || _b === void 0 ? void 0 : _b.call(_a2, _assign(_assign({}, _this.state), { customHeaderCount: i3, monthDate, changeMonth: _this.changeMonth, changeYear: _this.changeYear, decreaseMonth: _this.decreaseMonth, increaseMonth: _this.increaseMonth, decreaseYear: _this.decreaseYear, increaseYear: _this.increaseYear, prevMonthButtonDisabled, nextMonthButtonDisabled, prevYearButtonDisabled, nextYearButtonDisabled })),
24391
- showDayNames && React9.createElement("div", { className: "react-datepicker__day-names" }, _this.header(monthDate))
24634
+ showDayNames && React10.createElement("div", { className: "react-datepicker__day-names" }, _this.header(monthDate))
24392
24635
  );
24393
24636
  };
24394
24637
  _this.renderYearHeader = function(_a2) {
24395
24638
  var monthDate = _a2.monthDate;
24396
24639
  var _b = _this.props, showYearPicker = _b.showYearPicker, _c = _b.yearItemNumber, yearItemNumber = _c === void 0 ? Calendar2.defaultProps.yearItemNumber : _c;
24397
24640
  var _d = getYearsPeriod(monthDate, yearItemNumber), startPeriod = _d.startPeriod, endPeriod = _d.endPeriod;
24398
- return React9.createElement("div", { className: "react-datepicker__header react-datepicker-year-header" }, showYearPicker ? "".concat(startPeriod, " - ").concat(endPeriod) : getYear(monthDate));
24641
+ return React10.createElement("div", { className: "react-datepicker__header react-datepicker-year-header" }, showYearPicker ? "".concat(startPeriod, " - ").concat(endPeriod) : getYear(monthDate));
24399
24642
  };
24400
24643
  _this.renderHeader = function(_a2) {
24401
24644
  var monthDate = _a2.monthDate, _b = _a2.i, i3 = _b === void 0 ? 0 : _b;
@@ -24425,13 +24668,13 @@ var Calendar = (
24425
24668
  var monthKey = "month-".concat(i3);
24426
24669
  var monthShowsDuplicateDaysEnd = i3 < monthsShown - 1;
24427
24670
  var monthShowsDuplicateDaysStart = i3 > 0;
24428
- monthList.push(React9.createElement(
24671
+ monthList.push(React10.createElement(
24429
24672
  "div",
24430
24673
  { key: monthKey, ref: function(div) {
24431
24674
  _this.monthContainer = div !== null && div !== void 0 ? div : void 0;
24432
24675
  }, className: "react-datepicker__month-container" },
24433
24676
  _this.renderHeader({ monthDate, i: i3 }),
24434
- React9.createElement(Month, _assign({}, Calendar2.defaultProps, _this.props, { containerRef: _this.containerRef, ariaLabelPrefix: _this.props.monthAriaLabelPrefix, day: monthDate, onDayClick: _this.handleDayClick, handleOnKeyDown: _this.props.handleOnDayKeyDown, handleOnMonthKeyDown: _this.props.handleOnKeyDown, onDayMouseEnter: _this.handleDayMouseEnter, onMouseLeave: _this.handleMonthMouseLeave, orderInDisplay: i3, selectingDate: _this.state.selectingDate, monthShowsDuplicateDaysEnd, monthShowsDuplicateDaysStart }))
24677
+ React10.createElement(Month, _assign({}, Calendar2.defaultProps, _this.props, { containerRef: _this.containerRef, ariaLabelPrefix: _this.props.monthAriaLabelPrefix, day: monthDate, onDayClick: _this.handleDayClick, handleOnKeyDown: _this.props.handleOnDayKeyDown, handleOnMonthKeyDown: _this.props.handleOnKeyDown, onDayMouseEnter: _this.handleDayMouseEnter, onMouseLeave: _this.handleMonthMouseLeave, orderInDisplay: i3, selectingDate: _this.state.selectingDate, monthShowsDuplicateDaysEnd, monthShowsDuplicateDaysStart }))
24435
24678
  ));
24436
24679
  }
24437
24680
  return monthList;
@@ -24441,18 +24684,18 @@ var Calendar = (
24441
24684
  return;
24442
24685
  }
24443
24686
  if (_this.props.showYearPicker) {
24444
- return React9.createElement(
24687
+ return React10.createElement(
24445
24688
  "div",
24446
24689
  { className: "react-datepicker__year--container" },
24447
24690
  _this.renderHeader({ monthDate: _this.state.date }),
24448
- React9.createElement(Year, _assign({}, Calendar2.defaultProps, _this.props, { selectingDate: _this.state.selectingDate, date: _this.state.date, onDayClick: _this.handleDayClick, clearSelectingDate: _this.clearSelectingDate, onYearMouseEnter: _this.handleYearMouseEnter, onYearMouseLeave: _this.handleYearMouseLeave }))
24691
+ React10.createElement(Year, _assign({}, Calendar2.defaultProps, _this.props, { selectingDate: _this.state.selectingDate, date: _this.state.date, onDayClick: _this.handleDayClick, clearSelectingDate: _this.clearSelectingDate, onYearMouseEnter: _this.handleYearMouseEnter, onYearMouseLeave: _this.handleYearMouseLeave }))
24449
24692
  );
24450
24693
  }
24451
24694
  return;
24452
24695
  };
24453
24696
  _this.renderTimeSection = function() {
24454
24697
  if (_this.props.showTimeSelect && (_this.state.monthContainer || _this.props.showTimeSelectOnly)) {
24455
- return React9.createElement(Time, _assign({}, Calendar2.defaultProps, _this.props, { onChange: _this.props.onTimeChange, format: _this.props.timeFormat, intervals: _this.props.timeIntervals, monthRef: _this.state.monthContainer }));
24698
+ return React10.createElement(Time, _assign({}, Calendar2.defaultProps, _this.props, { onChange: _this.props.onTimeChange, format: _this.props.timeFormat, intervals: _this.props.timeIntervals, monthRef: _this.state.monthContainer }));
24456
24699
  }
24457
24700
  return;
24458
24701
  };
@@ -24461,7 +24704,7 @@ var Calendar = (
24461
24704
  var timeValid = time && isValid2(time) && Boolean(_this.props.selected);
24462
24705
  var timeString = timeValid ? "".concat(addZero(time.getHours()), ":").concat(addZero(time.getMinutes())) : "";
24463
24706
  if (_this.props.showTimeInput) {
24464
- return React9.createElement(InputTime, _assign({}, Calendar2.defaultProps, _this.props, { date: time, timeString, onChange: _this.props.onTimeChange }));
24707
+ return React10.createElement(InputTime, _assign({}, Calendar2.defaultProps, _this.props, { date: time, timeString, onChange: _this.props.onTimeChange }));
24465
24708
  }
24466
24709
  return;
24467
24710
  };
@@ -24476,11 +24719,11 @@ var Calendar = (
24476
24719
  } else {
24477
24720
  ariaLiveMessage = "".concat(getMonthInLocale(getMonth(_this.state.date), _this.props.locale), " ").concat(getYear(_this.state.date));
24478
24721
  }
24479
- return React9.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, _this.state.isRenderAriaLiveMessage && ariaLiveMessage);
24722
+ return React10.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, _this.state.isRenderAriaLiveMessage && ariaLiveMessage);
24480
24723
  };
24481
24724
  _this.renderChildren = function() {
24482
24725
  if (_this.props.children) {
24483
- return React9.createElement("div", { className: "react-datepicker__children-container" }, _this.props.children);
24726
+ return React10.createElement("div", { className: "react-datepicker__children-container" }, _this.props.children);
24484
24727
  }
24485
24728
  return;
24486
24729
  };
@@ -24534,13 +24777,13 @@ var Calendar = (
24534
24777
  };
24535
24778
  Calendar2.prototype.render = function() {
24536
24779
  var Container = this.props.container || CalendarContainer;
24537
- return React9.createElement(
24780
+ return React10.createElement(
24538
24781
  ClickOutsideWrapper,
24539
24782
  { onClickOutside: this.handleClickOutside, style: { display: "contents" }, ignoreClass: this.props.outsideClickIgnoreClass },
24540
- React9.createElement(
24783
+ React10.createElement(
24541
24784
  "div",
24542
24785
  { style: { display: "contents" }, ref: this.containerRef },
24543
- React9.createElement(
24786
+ React10.createElement(
24544
24787
  Container,
24545
24788
  { className: clsx("react-datepicker", this.props.className, {
24546
24789
  "react-datepicker--time-only": this.props.showTimeSelectOnly
@@ -24565,11 +24808,11 @@ var CalendarIcon2 = function(_a2) {
24565
24808
  var icon = _a2.icon, _b = _a2.className, className = _b === void 0 ? "" : _b, onClick = _a2.onClick;
24566
24809
  var defaultClass = "react-datepicker__calendar-icon";
24567
24810
  if (typeof icon === "string") {
24568
- return React9.createElement("i", { className: "".concat(defaultClass, " ").concat(icon, " ").concat(className), "aria-hidden": "true", onClick });
24811
+ return React10.createElement("i", { className: "".concat(defaultClass, " ").concat(icon, " ").concat(className), "aria-hidden": "true", onClick });
24569
24812
  }
24570
- if (React9.isValidElement(icon)) {
24813
+ if (React10.isValidElement(icon)) {
24571
24814
  var iconElement_1 = icon;
24572
- return React9.cloneElement(iconElement_1, {
24815
+ return React10.cloneElement(iconElement_1, {
24573
24816
  className: "".concat(iconElement_1.props.className || "", " ").concat(defaultClass, " ").concat(className),
24574
24817
  onClick: function(event) {
24575
24818
  if (typeof iconElement_1.props.onClick === "function") {
@@ -24581,10 +24824,10 @@ var CalendarIcon2 = function(_a2) {
24581
24824
  }
24582
24825
  });
24583
24826
  }
24584
- return React9.createElement(
24827
+ return React10.createElement(
24585
24828
  "svg",
24586
24829
  { className: "".concat(defaultClass, " ").concat(className), xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", onClick },
24587
- React9.createElement("path", { d: "M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z" })
24830
+ React10.createElement("path", { d: "M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z" })
24588
24831
  );
24589
24832
  };
24590
24833
  var Portal = (
@@ -24650,12 +24893,12 @@ var TabLoop = (
24650
24893
  if (!((_a2 = this.props.enableTabLoop) !== null && _a2 !== void 0 ? _a2 : TabLoop2.defaultProps.enableTabLoop)) {
24651
24894
  return this.props.children;
24652
24895
  }
24653
- return React9.createElement(
24896
+ return React10.createElement(
24654
24897
  "div",
24655
24898
  { className: "react-datepicker__tab-loop", ref: this.tabLoopRef },
24656
- React9.createElement("div", { className: "react-datepicker__tab-loop__start", tabIndex: 0, onFocus: this.handleFocusStart }),
24899
+ React10.createElement("div", { className: "react-datepicker__tab-loop__start", tabIndex: 0, onFocus: this.handleFocusStart }),
24657
24900
  this.props.children,
24658
- React9.createElement("div", { className: "react-datepicker__tab-loop__end", tabIndex: 0, onFocus: this.handleFocusEnd })
24901
+ React10.createElement("div", { className: "react-datepicker__tab-loop__end", tabIndex: 0, onFocus: this.handleFocusEnd })
24659
24902
  );
24660
24903
  };
24661
24904
  TabLoop2.defaultProps = {
@@ -24675,7 +24918,7 @@ function withFloating(Component3) {
24675
24918
  arrow3({ element: arrowRef })
24676
24919
  ], (_a2 = props.popperModifiers) !== null && _a2 !== void 0 ? _a2 : [], true) }, props.popperProps));
24677
24920
  var componentProps = _assign(_assign({}, props), { hidePopper, popperProps: _assign(_assign({}, floatingProps), { arrowRef }) });
24678
- return React9.createElement(Component3, _assign({}, componentProps));
24921
+ return React10.createElement(Component3, _assign({}, componentProps));
24679
24922
  };
24680
24923
  return WithFloating;
24681
24924
  }
@@ -24700,14 +24943,14 @@ var PopperComponent = (
24700
24943
  var popper = void 0;
24701
24944
  if (!hidePopper) {
24702
24945
  var classes = clsx("react-datepicker-popper", className);
24703
- popper = React9.createElement(
24946
+ popper = React10.createElement(
24704
24947
  TabLoop,
24705
24948
  { enableTabLoop },
24706
- React9.createElement(
24949
+ React10.createElement(
24707
24950
  "div",
24708
24951
  { ref: popperProps.refs.setFloating, style: popperProps.floatingStyles, className: classes, "data-placement": popperProps.placement, onKeyDown: popperOnKeyDown },
24709
24952
  popperComponent,
24710
- showArrow && React9.createElement(FloatingArrow, { ref: popperProps.arrowRef, context: popperProps.context, fill: "currentColor", strokeWidth: 1, height: 8, width: 16, style: { transform: "translateY(-1px)" }, className: "react-datepicker__triangle" })
24953
+ showArrow && React10.createElement(FloatingArrow, { ref: popperProps.arrowRef, context: popperProps.context, fill: "currentColor", strokeWidth: 1, height: 8, width: 16, style: { transform: "translateY(-1px)" }, className: "react-datepicker__triangle" })
24711
24954
  )
24712
24955
  );
24713
24956
  }
@@ -24715,13 +24958,13 @@ var PopperComponent = (
24715
24958
  popper = createElement5(this.props.popperContainer, {}, popper);
24716
24959
  }
24717
24960
  if (portalId && !hidePopper) {
24718
- popper = React9.createElement(Portal, { portalId, portalHost }, popper);
24961
+ popper = React10.createElement(Portal, { portalId, portalHost }, popper);
24719
24962
  }
24720
24963
  var wrapperClasses = clsx("react-datepicker-wrapper", wrapperClassName);
24721
- return React9.createElement(
24722
- React9.Fragment,
24964
+ return React10.createElement(
24965
+ React10.Fragment,
24723
24966
  null,
24724
- React9.createElement("div", { ref: popperProps.refs.setReference, className: wrapperClasses }, targetComponent),
24967
+ React10.createElement("div", { ref: popperProps.refs.setReference, className: wrapperClasses }, targetComponent),
24725
24968
  popper
24726
24969
  );
24727
24970
  };
@@ -25340,7 +25583,7 @@ var DatePicker = (
25340
25583
  if (!_this.props.inline && !_this.isCalendarOpen()) {
25341
25584
  return null;
25342
25585
  }
25343
- return React9.createElement(Calendar, _assign({ showMonthYearDropdown: void 0, ref: function(elem) {
25586
+ return React10.createElement(Calendar, _assign({ showMonthYearDropdown: void 0, ref: function(elem) {
25344
25587
  _this.calendar = elem;
25345
25588
  } }, _this.props, _this.state, { setOpen: _this.setOpen, dateFormat: (_a2 = _this.props.dateFormatCalendar) !== null && _a2 !== void 0 ? _a2 : DatePicker2.defaultProps.dateFormatCalendar, onSelect: _this.handleSelect, onClickOutside: _this.handleCalendarClickOutside, holidays: getHolidaysMap(_this.modifyHolidays()), outsideClickIgnoreClass, onDropdownFocus: _this.handleDropdownFocus, onTimeChange: _this.handleTimeChange, className: _this.props.calendarClassName, container: _this.props.calendarContainer, handleOnKeyDown: _this.props.onKeyDown, handleOnDayKeyDown: _this.onDayKeyDown, setPreSelection: _this.setPreSelection, dropdownMode: (_b = _this.props.dropdownMode) !== null && _b !== void 0 ? _b : DatePicker2.defaultProps.dropdownMode }), _this.props.children);
25346
25589
  };
@@ -25376,13 +25619,13 @@ var DatePicker = (
25376
25619
  }));
25377
25620
  }
25378
25621
  }
25379
- return React9.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, ariaLiveMessage);
25622
+ return React10.createElement("span", { role: "alert", "aria-live": "polite", className: "react-datepicker__aria-live" }, ariaLiveMessage);
25380
25623
  };
25381
25624
  _this.renderDateInput = function() {
25382
25625
  var _a2, _b;
25383
25626
  var _c;
25384
25627
  var className = clsx(_this.props.className, (_a2 = {}, _a2[outsideClickIgnoreClass] = _this.state.open, _a2));
25385
- var customInput = _this.props.customInput || React9.createElement("input", { type: "text" });
25628
+ var customInput = _this.props.customInput || React10.createElement("input", { type: "text" });
25386
25629
  var customInputRef = _this.props.customInputRef || "ref";
25387
25630
  var _d = _this.props, _e = _d.dateFormat, dateFormat = _e === void 0 ? DatePicker2.defaultProps.dateFormat : _e, locale = _d.locale;
25388
25631
  var inputValue = typeof _this.props.value === "string" ? _this.props.value : typeof _this.state.inputValue === "string" ? _this.state.inputValue : _this.props.selectsRange ? safeDateRangeFormat(_this.props.startDate, _this.props.endDate, {
@@ -25402,7 +25645,7 @@ var DatePicker = (
25402
25645
  _this.renderClearButton = function() {
25403
25646
  var _a2 = _this.props, isClearable = _a2.isClearable, disabled = _a2.disabled, selected = _a2.selected, startDate = _a2.startDate, endDate = _a2.endDate, clearButtonTitle = _a2.clearButtonTitle, _b = _a2.clearButtonClassName, clearButtonClassName = _b === void 0 ? "" : _b, _c = _a2.ariaLabelClose, ariaLabelClose = _c === void 0 ? "Close" : _c, selectedDates = _a2.selectedDates, readOnly = _a2.readOnly;
25404
25647
  if (isClearable && !readOnly && (selected != null || startDate != null || endDate != null || (selectedDates === null || selectedDates === void 0 ? void 0 : selectedDates.length))) {
25405
- return React9.createElement("button", { type: "button", className: clsx("react-datepicker__close-icon", clearButtonClassName, { "react-datepicker__close-icon--disabled": disabled }), disabled, "aria-label": ariaLabelClose, onClick: _this.onClearClick, title: clearButtonTitle, tabIndex: -1 });
25648
+ return React10.createElement("button", { type: "button", className: clsx("react-datepicker__close-icon", clearButtonClassName, { "react-datepicker__close-icon--disabled": disabled }), disabled, "aria-label": ariaLabelClose, onClick: _this.onClearClick, title: clearButtonTitle, tabIndex: -1 });
25406
25649
  } else {
25407
25650
  return null;
25408
25651
  }
@@ -25503,10 +25746,10 @@ var DatePicker = (
25503
25746
  if (calendarIconClassname) {
25504
25747
  console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props.");
25505
25748
  }
25506
- return React9.createElement(
25749
+ return React10.createElement(
25507
25750
  "div",
25508
25751
  { className: "react-datepicker__input-container".concat(showIcon ? " react-datepicker__view-calendar-icon" : "") },
25509
- showIcon && React9.createElement(CalendarIcon2, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
25752
+ showIcon && React10.createElement(CalendarIcon2, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
25510
25753
  onClick: this.toggleCalendar
25511
25754
  } : null)),
25512
25755
  this.state.isRenderAriaLiveMessage && this.renderAriaLiveRegion(),
@@ -25519,22 +25762,22 @@ var DatePicker = (
25519
25762
  if (this.props.inline)
25520
25763
  return calendar;
25521
25764
  if (this.props.withPortal) {
25522
- var portalContainer = this.state.open ? React9.createElement(
25765
+ var portalContainer = this.state.open ? React10.createElement(
25523
25766
  TabLoop,
25524
25767
  { enableTabLoop: this.props.enableTabLoop },
25525
- React9.createElement("div", { className: "react-datepicker__portal", tabIndex: -1, onKeyDown: this.onPortalKeyDown }, calendar)
25768
+ React10.createElement("div", { className: "react-datepicker__portal", tabIndex: -1, onKeyDown: this.onPortalKeyDown }, calendar)
25526
25769
  ) : null;
25527
25770
  if (this.state.open && this.props.portalId) {
25528
- portalContainer = React9.createElement(Portal, _assign({ portalId: this.props.portalId }, this.props), portalContainer);
25771
+ portalContainer = React10.createElement(Portal, _assign({ portalId: this.props.portalId }, this.props), portalContainer);
25529
25772
  }
25530
- return React9.createElement(
25773
+ return React10.createElement(
25531
25774
  "div",
25532
25775
  null,
25533
25776
  this.renderInputContainer(),
25534
25777
  portalContainer
25535
25778
  );
25536
25779
  }
25537
- return React9.createElement(PopperComponent$1, _assign({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: calendar, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
25780
+ return React10.createElement(PopperComponent$1, _assign({}, this.props, { className: this.props.popperClassName, hidePopper: !this.isCalendarOpen(), targetComponent: this.renderInputContainer(), popperComponent: calendar, popperOnKeyDown: this.onPopperKeyDown, showArrow: this.props.showPopperArrow }));
25538
25781
  };
25539
25782
  return DatePicker2;
25540
25783
  }(Component)
@@ -25680,13 +25923,13 @@ function _objectWithoutProperties(e3, t3) {
25680
25923
  }
25681
25924
 
25682
25925
  // node_modules/react-select/dist/useStateManager-7e1e8489.esm.js
25683
- import { useState as useState14, useCallback as useCallback6 } from "react";
25926
+ import { useState as useState15, useCallback as useCallback6 } from "react";
25684
25927
  var _excluded = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
25685
25928
  function useStateManager(_ref3) {
25686
25929
  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);
25687
- var _useState = useState14(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
25688
- var _useState3 = useState14(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
25689
- var _useState5 = useState14(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
25930
+ var _useState = useState15(propsInputValue !== void 0 ? propsInputValue : defaultInputValue), _useState2 = _slicedToArray(_useState, 2), stateInputValue = _useState2[0], setStateInputValue = _useState2[1];
25931
+ var _useState3 = useState15(propsMenuIsOpen !== void 0 ? propsMenuIsOpen : defaultMenuIsOpen), _useState4 = _slicedToArray(_useState3, 2), stateMenuIsOpen = _useState4[0], setStateMenuIsOpen = _useState4[1];
25932
+ var _useState5 = useState15(propsValue !== void 0 ? propsValue : defaultValue), _useState6 = _slicedToArray(_useState5, 2), stateValue = _useState6[0], setStateValue = _useState6[1];
25690
25933
  var onChange2 = useCallback6(function(value2, actionMeta) {
25691
25934
  if (typeof propsOnChange === "function") {
25692
25935
  propsOnChange(value2, actionMeta);
@@ -25738,8 +25981,8 @@ function _extends() {
25738
25981
  }
25739
25982
 
25740
25983
  // node_modules/react-select/dist/react-select.esm.js
25741
- import * as React14 from "react";
25742
- import { forwardRef as forwardRef5, useMemo as useMemo9 } from "react";
25984
+ import * as React15 from "react";
25985
+ import { forwardRef as forwardRef5, useMemo as useMemo10 } from "react";
25743
25986
 
25744
25987
  // node_modules/@babel/runtime/helpers/esm/classCallCheck.js
25745
25988
  function _classCallCheck(a2, n4) {
@@ -25846,11 +26089,11 @@ function _toConsumableArray(r4) {
25846
26089
  }
25847
26090
 
25848
26091
  // node_modules/react-select/dist/Select-ef7c0426.esm.js
25849
- import * as React13 from "react";
25850
- import { useMemo as useMemo8, Fragment as Fragment23, useRef as useRef13, useCallback as useCallback8, useEffect as useEffect16, Component as Component2 } from "react";
26092
+ import * as React14 from "react";
26093
+ import { useMemo as useMemo9, Fragment as Fragment23, useRef as useRef13, useCallback as useCallback8, useEffect as useEffect17, Component as Component2 } from "react";
25851
26094
 
25852
26095
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
25853
- import * as React11 from "react";
26096
+ import * as React12 from "react";
25854
26097
  import { useContext as useContext7, forwardRef as forwardRef4 } from "react";
25855
26098
 
25856
26099
  // node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
@@ -27015,18 +27258,18 @@ function serializeStyles(args, registered, mergedProps) {
27015
27258
  }
27016
27259
 
27017
27260
  // node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js
27018
- import * as React10 from "react";
27261
+ import * as React11 from "react";
27019
27262
  var isBrowser3 = typeof document !== "undefined";
27020
27263
  var syncFallback = function syncFallback2(create) {
27021
27264
  return create();
27022
27265
  };
27023
- var useInsertionEffect3 = React10["useInsertionEffect"] ? React10["useInsertionEffect"] : false;
27266
+ var useInsertionEffect3 = React11["useInsertionEffect"] ? React11["useInsertionEffect"] : false;
27024
27267
  var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect3 || syncFallback;
27025
27268
 
27026
27269
  // node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js
27027
27270
  var isDevelopment3 = false;
27028
27271
  var isBrowser4 = typeof document !== "undefined";
27029
- var EmotionCacheContext = /* @__PURE__ */ React11.createContext(
27272
+ var EmotionCacheContext = /* @__PURE__ */ React12.createContext(
27030
27273
  // we're doing this to avoid preconstruct's dead code elimination in this one case
27031
27274
  // because this module is primarily intended for the browser and node
27032
27275
  // but it's also required in react native and similar environments sometimes
@@ -27052,7 +27295,7 @@ if (!isBrowser4) {
27052
27295
  cache = createCache({
27053
27296
  key: "css"
27054
27297
  });
27055
- return /* @__PURE__ */ React11.createElement(EmotionCacheContext.Provider, {
27298
+ return /* @__PURE__ */ React12.createElement(EmotionCacheContext.Provider, {
27056
27299
  value: cache
27057
27300
  }, func(props, cache));
27058
27301
  } else {
@@ -27061,7 +27304,7 @@ if (!isBrowser4) {
27061
27304
  };
27062
27305
  };
27063
27306
  }
27064
- var ThemeContext = /* @__PURE__ */ React11.createContext({});
27307
+ var ThemeContext = /* @__PURE__ */ React12.createContext({});
27065
27308
  var hasOwn = {}.hasOwnProperty;
27066
27309
  var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
27067
27310
  var createEmotionProps = function createEmotionProps2(type, props) {
@@ -27088,7 +27331,7 @@ var Insertion = function Insertion2(_ref3) {
27088
27331
  serializedNames += " " + next2.name;
27089
27332
  next2 = next2.next;
27090
27333
  }
27091
- return /* @__PURE__ */ React11.createElement("style", (_ref23 = {}, _ref23["data-emotion"] = cache.key + " " + serializedNames, _ref23.dangerouslySetInnerHTML = {
27334
+ return /* @__PURE__ */ React12.createElement("style", (_ref23 = {}, _ref23["data-emotion"] = cache.key + " " + serializedNames, _ref23.dangerouslySetInnerHTML = {
27092
27335
  __html: rules
27093
27336
  }, _ref23.nonce = cache.sheet.nonce, _ref23));
27094
27337
  }
@@ -27107,7 +27350,7 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
27107
27350
  } else if (props.className != null) {
27108
27351
  className = props.className + " ";
27109
27352
  }
27110
- var serialized = serializeStyles(registeredStyles, void 0, React11.useContext(ThemeContext));
27353
+ var serialized = serializeStyles(registeredStyles, void 0, React12.useContext(ThemeContext));
27111
27354
  className += cache.key + "-" + serialized.name;
27112
27355
  var newProps = {};
27113
27356
  for (var _key2 in props) {
@@ -27119,22 +27362,22 @@ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
27119
27362
  if (ref) {
27120
27363
  newProps.ref = ref;
27121
27364
  }
27122
- return /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement(Insertion, {
27365
+ return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(Insertion, {
27123
27366
  cache,
27124
27367
  serialized,
27125
27368
  isStringTag: typeof WrappedComponent === "string"
27126
- }), /* @__PURE__ */ React11.createElement(WrappedComponent, newProps));
27369
+ }), /* @__PURE__ */ React12.createElement(WrappedComponent, newProps));
27127
27370
  });
27128
27371
  var Emotion$1 = Emotion;
27129
27372
 
27130
27373
  // node_modules/@emotion/react/dist/emotion-react.esm.js
27131
- import * as React12 from "react";
27374
+ import * as React13 from "react";
27132
27375
  var import_extends2 = __toESM(require_extends());
27133
27376
  var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
27134
- var jsx84 = function jsx85(type, props) {
27377
+ var jsx86 = function jsx87(type, props) {
27135
27378
  var args = arguments;
27136
27379
  if (props == null || !hasOwn.call(props, "css")) {
27137
- return React12.createElement.apply(void 0, args);
27380
+ return React13.createElement.apply(void 0, args);
27138
27381
  }
27139
27382
  var argsLength = args.length;
27140
27383
  var createElementArgArray = new Array(argsLength);
@@ -27143,13 +27386,13 @@ var jsx84 = function jsx85(type, props) {
27143
27386
  for (var i3 = 2; i3 < argsLength; i3++) {
27144
27387
  createElementArgArray[i3] = args[i3];
27145
27388
  }
27146
- return React12.createElement.apply(null, createElementArgArray);
27389
+ return React13.createElement.apply(null, createElementArgArray);
27147
27390
  };
27148
27391
  (function(_jsx) {
27149
27392
  var JSX;
27150
27393
  /* @__PURE__ */ (function(_JSX) {
27151
27394
  })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
27152
- })(jsx84 || (jsx84 = {}));
27395
+ })(jsx86 || (jsx86 = {}));
27153
27396
  function css() {
27154
27397
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
27155
27398
  args[_key] = arguments[_key];
@@ -27179,7 +27422,7 @@ function _taggedTemplateLiteral(e3, t3) {
27179
27422
  }
27180
27423
 
27181
27424
  // node_modules/react-select/dist/index-641ee5b8.esm.js
27182
- import { useContext as useContext9, useRef as useRef12, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
27425
+ import { useContext as useContext9, useRef as useRef12, useState as useState16, useMemo as useMemo8, useCallback as useCallback7, createContext as createContext5 } from "react";
27183
27426
  import { createPortal as createPortal4 } from "react-dom";
27184
27427
 
27185
27428
  // node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
@@ -27526,8 +27769,8 @@ var MenuPlacer = function MenuPlacer2(props) {
27526
27769
  var children = props.children, minMenuHeight = props.minMenuHeight, maxMenuHeight = props.maxMenuHeight, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition, menuShouldScrollIntoView = props.menuShouldScrollIntoView, theme = props.theme;
27527
27770
  var _ref3 = useContext9(PortalPlacementContext) || {}, setPortalPlacement = _ref3.setPortalPlacement;
27528
27771
  var ref = useRef12(null);
27529
- var _useState = useState15(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
27530
- var _useState3 = useState15(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
27772
+ var _useState = useState16(maxMenuHeight), _useState2 = _slicedToArray(_useState, 2), maxHeight = _useState2[0], setMaxHeight = _useState2[1];
27773
+ var _useState3 = useState16(null), _useState4 = _slicedToArray(_useState3, 2), placement = _useState4[0], setPlacement = _useState4[1];
27531
27774
  var controlHeight2 = theme.spacing.controlHeight;
27532
27775
  index3(function() {
27533
27776
  var menuEl = ref.current;
@@ -27557,7 +27800,7 @@ var MenuPlacer = function MenuPlacer2(props) {
27557
27800
  };
27558
27801
  var Menu = function Menu2(props) {
27559
27802
  var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
27560
- return jsx84("div", _extends({}, getStyleProps(props, "menu", {
27803
+ return jsx86("div", _extends({}, getStyleProps(props, "menu", {
27561
27804
  menu: true
27562
27805
  }), {
27563
27806
  ref: innerRef
@@ -27579,7 +27822,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
27579
27822
  };
27580
27823
  var MenuList = function MenuList2(props) {
27581
27824
  var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
27582
- return jsx84("div", _extends({}, getStyleProps(props, "menuList", {
27825
+ return jsx86("div", _extends({}, getStyleProps(props, "menuList", {
27583
27826
  "menu-list": true,
27584
27827
  "menu-list--is-multi": isMulti
27585
27828
  }), {
@@ -27599,7 +27842,7 @@ var noOptionsMessageCSS = noticeCSS;
27599
27842
  var loadingMessageCSS = noticeCSS;
27600
27843
  var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27601
27844
  var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
27602
- return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27845
+ return jsx86("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27603
27846
  children,
27604
27847
  innerProps
27605
27848
  }), "noOptionsMessage", {
@@ -27609,7 +27852,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
27609
27852
  };
27610
27853
  var LoadingMessage = function LoadingMessage2(_ref7) {
27611
27854
  var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
27612
- return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27855
+ return jsx86("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27613
27856
  children,
27614
27857
  innerProps
27615
27858
  }), "loadingMessage", {
@@ -27631,13 +27874,13 @@ var MenuPortal = function MenuPortal2(props) {
27631
27874
  var appendTo = props.appendTo, children = props.children, controlElement = props.controlElement, innerProps = props.innerProps, menuPlacement = props.menuPlacement, menuPosition = props.menuPosition;
27632
27875
  var menuPortalRef = useRef12(null);
27633
27876
  var cleanupRef = useRef12(null);
27634
- var _useState5 = useState15(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
27635
- var portalPlacementContext = useMemo7(function() {
27877
+ var _useState5 = useState16(coercePlacement(menuPlacement)), _useState6 = _slicedToArray(_useState5, 2), placement = _useState6[0], setPortalPlacement = _useState6[1];
27878
+ var portalPlacementContext = useMemo8(function() {
27636
27879
  return {
27637
27880
  setPortalPlacement
27638
27881
  };
27639
27882
  }, []);
27640
- var _useState7 = useState15(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
27883
+ var _useState7 = useState16(null), _useState8 = _slicedToArray(_useState7, 2), computedPosition = _useState8[0], setComputedPosition = _useState8[1];
27641
27884
  var updateComputedPosition = useCallback7(function() {
27642
27885
  if (!controlElement) return;
27643
27886
  var rect = getBoundingClientObj(controlElement);
@@ -27672,7 +27915,7 @@ var MenuPortal = function MenuPortal2(props) {
27672
27915
  runAutoUpdate();
27673
27916
  }, [runAutoUpdate]);
27674
27917
  if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
27675
- var menuWrapper = jsx84("div", _extends({
27918
+ var menuWrapper = jsx86("div", _extends({
27676
27919
  ref: setMenuPortalElement
27677
27920
  }, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
27678
27921
  offset: computedPosition.offset,
@@ -27681,7 +27924,7 @@ var MenuPortal = function MenuPortal2(props) {
27681
27924
  }), "menuPortal", {
27682
27925
  "menu-portal": true
27683
27926
  }), innerProps), children);
27684
- return jsx84(PortalPlacementContext.Provider, {
27927
+ return jsx86(PortalPlacementContext.Provider, {
27685
27928
  value: portalPlacementContext
27686
27929
  }, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
27687
27930
  };
@@ -27697,7 +27940,7 @@ var containerCSS = function containerCSS2(_ref3) {
27697
27940
  };
27698
27941
  var SelectContainer = function SelectContainer2(props) {
27699
27942
  var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
27700
- return jsx84("div", _extends({}, getStyleProps(props, "container", {
27943
+ return jsx86("div", _extends({}, getStyleProps(props, "container", {
27701
27944
  "--is-disabled": isDisabled,
27702
27945
  "--is-rtl": isRtl
27703
27946
  }), innerProps), children);
@@ -27718,7 +27961,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
27718
27961
  };
27719
27962
  var ValueContainer = function ValueContainer2(props) {
27720
27963
  var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
27721
- return jsx84("div", _extends({}, getStyleProps(props, "valueContainer", {
27964
+ return jsx86("div", _extends({}, getStyleProps(props, "valueContainer", {
27722
27965
  "value-container": true,
27723
27966
  "value-container--is-multi": isMulti,
27724
27967
  "value-container--has-value": hasValue
@@ -27734,7 +27977,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
27734
27977
  };
27735
27978
  var IndicatorsContainer = function IndicatorsContainer2(props) {
27736
27979
  var children = props.children, innerProps = props.innerProps;
27737
- return jsx84("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
27980
+ return jsx86("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
27738
27981
  indicators: true
27739
27982
  }), innerProps), children);
27740
27983
  };
@@ -27755,7 +27998,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
27755
27998
  };
27756
27999
  var Svg = function Svg2(_ref3) {
27757
28000
  var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
27758
- return jsx84("svg", _extends({
28001
+ return jsx86("svg", _extends({
27759
28002
  height: size4,
27760
28003
  width: size4,
27761
28004
  viewBox: "0 0 20 20",
@@ -27765,16 +28008,16 @@ var Svg = function Svg2(_ref3) {
27765
28008
  }, props));
27766
28009
  };
27767
28010
  var CrossIcon = function CrossIcon2(props) {
27768
- return jsx84(Svg, _extends({
28011
+ return jsx86(Svg, _extends({
27769
28012
  size: 20
27770
- }, props), jsx84("path", {
28013
+ }, props), jsx86("path", {
27771
28014
  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"
27772
28015
  }));
27773
28016
  };
27774
28017
  var DownChevron = function DownChevron2(props) {
27775
- return jsx84(Svg, _extends({
28018
+ return jsx86(Svg, _extends({
27776
28019
  size: 20
27777
- }, props), jsx84("path", {
28020
+ }, props), jsx86("path", {
27778
28021
  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"
27779
28022
  }));
27780
28023
  };
@@ -27795,18 +28038,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
27795
28038
  var dropdownIndicatorCSS = baseCSS;
27796
28039
  var DropdownIndicator = function DropdownIndicator2(props) {
27797
28040
  var children = props.children, innerProps = props.innerProps;
27798
- return jsx84("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
28041
+ return jsx86("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
27799
28042
  indicator: true,
27800
28043
  "dropdown-indicator": true
27801
- }), innerProps), children || jsx84(DownChevron, null));
28044
+ }), innerProps), children || jsx86(DownChevron, null));
27802
28045
  };
27803
28046
  var clearIndicatorCSS = baseCSS;
27804
28047
  var ClearIndicator = function ClearIndicator2(props) {
27805
28048
  var children = props.children, innerProps = props.innerProps;
27806
- return jsx84("div", _extends({}, getStyleProps(props, "clearIndicator", {
28049
+ return jsx86("div", _extends({}, getStyleProps(props, "clearIndicator", {
27807
28050
  indicator: true,
27808
28051
  "clear-indicator": true
27809
- }), innerProps), children || jsx84(CrossIcon, null));
28052
+ }), innerProps), children || jsx86(CrossIcon, null));
27810
28053
  };
27811
28054
  var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
27812
28055
  var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
@@ -27822,7 +28065,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
27822
28065
  };
27823
28066
  var IndicatorSeparator = function IndicatorSeparator2(props) {
27824
28067
  var innerProps = props.innerProps;
27825
- return jsx84("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
28068
+ return jsx86("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
27826
28069
  "indicator-separator": true
27827
28070
  })));
27828
28071
  };
@@ -27846,7 +28089,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
27846
28089
  };
27847
28090
  var LoadingDot = function LoadingDot2(_ref6) {
27848
28091
  var delay = _ref6.delay, offset4 = _ref6.offset;
27849
- return jsx84("span", {
28092
+ return jsx86("span", {
27850
28093
  css: /* @__PURE__ */ css({
27851
28094
  animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
27852
28095
  backgroundColor: "currentColor",
@@ -27861,20 +28104,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
27861
28104
  };
27862
28105
  var LoadingIndicator = function LoadingIndicator2(_ref7) {
27863
28106
  var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
27864
- return jsx84("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
28107
+ return jsx86("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
27865
28108
  innerProps,
27866
28109
  isRtl,
27867
28110
  size: size4
27868
28111
  }), "loadingIndicator", {
27869
28112
  indicator: true,
27870
28113
  "loading-indicator": true
27871
- }), innerProps), jsx84(LoadingDot, {
28114
+ }), innerProps), jsx86(LoadingDot, {
27872
28115
  delay: 0,
27873
28116
  offset: isRtl
27874
- }), jsx84(LoadingDot, {
28117
+ }), jsx86(LoadingDot, {
27875
28118
  delay: 160,
27876
28119
  offset: true
27877
- }), jsx84(LoadingDot, {
28120
+ }), jsx86(LoadingDot, {
27878
28121
  delay: 320,
27879
28122
  offset: !isRtl
27880
28123
  }));
@@ -27906,7 +28149,7 @@ var css$1 = function css2(_ref3, unstyled) {
27906
28149
  };
27907
28150
  var Control = function Control2(props) {
27908
28151
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
27909
- return jsx84("div", _extends({
28152
+ return jsx86("div", _extends({
27910
28153
  ref: innerRef
27911
28154
  }, getStyleProps(props, "control", {
27912
28155
  control: true,
@@ -27928,15 +28171,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
27928
28171
  };
27929
28172
  var Group = function Group2(props) {
27930
28173
  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;
27931
- return jsx84("div", _extends({}, getStyleProps(props, "group", {
28174
+ return jsx86("div", _extends({}, getStyleProps(props, "group", {
27932
28175
  group: true
27933
- }), innerProps), jsx84(Heading, _extends({}, headingProps, {
28176
+ }), innerProps), jsx86(Heading, _extends({}, headingProps, {
27934
28177
  selectProps,
27935
28178
  theme,
27936
28179
  getStyles,
27937
28180
  getClassNames,
27938
28181
  cx
27939
- }), label), jsx84("div", null, children));
28182
+ }), label), jsx86("div", null, children));
27940
28183
  };
27941
28184
  var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
27942
28185
  var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
@@ -27958,7 +28201,7 @@ var GroupHeading = function GroupHeading2(props) {
27958
28201
  var _cleanCommonProps = cleanCommonProps(props);
27959
28202
  _cleanCommonProps.data;
27960
28203
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
27961
- return jsx84("div", _extends({}, getStyleProps(props, "groupHeading", {
28204
+ return jsx86("div", _extends({}, getStyleProps(props, "groupHeading", {
27962
28205
  "group-heading": true
27963
28206
  }), innerProps));
27964
28207
  };
@@ -28010,11 +28253,11 @@ var inputStyle = function inputStyle2(isHidden) {
28010
28253
  var Input = function Input2(props) {
28011
28254
  var cx = props.cx, value = props.value;
28012
28255
  var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
28013
- return jsx84("div", _extends({}, getStyleProps(props, "input", {
28256
+ return jsx86("div", _extends({}, getStyleProps(props, "input", {
28014
28257
  "input-container": true
28015
28258
  }), {
28016
28259
  "data-value": value || ""
28017
- }), jsx84("input", _extends({
28260
+ }), jsx86("input", _extends({
28018
28261
  className: cx({
28019
28262
  input: true
28020
28263
  }, inputClassName),
@@ -28068,35 +28311,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
28068
28311
  };
28069
28312
  var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
28070
28313
  var children = _ref4.children, innerProps = _ref4.innerProps;
28071
- return jsx84("div", innerProps, children);
28314
+ return jsx86("div", innerProps, children);
28072
28315
  };
28073
28316
  var MultiValueContainer = MultiValueGeneric;
28074
28317
  var MultiValueLabel = MultiValueGeneric;
28075
28318
  function MultiValueRemove(_ref5) {
28076
28319
  var children = _ref5.children, innerProps = _ref5.innerProps;
28077
- return jsx84("div", _extends({
28320
+ return jsx86("div", _extends({
28078
28321
  role: "button"
28079
- }, innerProps), children || jsx84(CrossIcon, {
28322
+ }, innerProps), children || jsx86(CrossIcon, {
28080
28323
  size: 14
28081
28324
  }));
28082
28325
  }
28083
28326
  var MultiValue = function MultiValue2(props) {
28084
28327
  var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
28085
28328
  var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
28086
- return jsx84(Container, {
28329
+ return jsx86(Container, {
28087
28330
  data,
28088
28331
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
28089
28332
  "multi-value": true,
28090
28333
  "multi-value--is-disabled": isDisabled
28091
28334
  })), innerProps),
28092
28335
  selectProps
28093
- }, jsx84(Label, {
28336
+ }, jsx86(Label, {
28094
28337
  data,
28095
28338
  innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
28096
28339
  "multi-value__label": true
28097
28340
  })),
28098
28341
  selectProps
28099
- }, children), jsx84(Remove, {
28342
+ }, children), jsx86(Remove, {
28100
28343
  data,
28101
28344
  innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
28102
28345
  "multi-value__remove": true
@@ -28129,7 +28372,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
28129
28372
  };
28130
28373
  var Option = function Option2(props) {
28131
28374
  var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
28132
- return jsx84("div", _extends({}, getStyleProps(props, "option", {
28375
+ return jsx86("div", _extends({}, getStyleProps(props, "option", {
28133
28376
  option: true,
28134
28377
  "option--is-disabled": isDisabled,
28135
28378
  "option--is-focused": isFocused,
@@ -28153,7 +28396,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
28153
28396
  };
28154
28397
  var Placeholder = function Placeholder2(props) {
28155
28398
  var children = props.children, innerProps = props.innerProps;
28156
- return jsx84("div", _extends({}, getStyleProps(props, "placeholder", {
28399
+ return jsx86("div", _extends({}, getStyleProps(props, "placeholder", {
28157
28400
  placeholder: true
28158
28401
  }), innerProps), children);
28159
28402
  };
@@ -28175,7 +28418,7 @@ var css3 = function css4(_ref3, unstyled) {
28175
28418
  };
28176
28419
  var SingleValue = function SingleValue2(props) {
28177
28420
  var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
28178
- return jsx84("div", _extends({}, getStyleProps(props, "singleValue", {
28421
+ return jsx86("div", _extends({}, getStyleProps(props, "singleValue", {
28179
28422
  "single-value": true,
28180
28423
  "single-value--is-disabled": isDisabled
28181
28424
  }), innerProps), children);
@@ -28277,7 +28520,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
28277
28520
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
28278
28521
  };
28279
28522
  var A11yText = function A11yText2(props) {
28280
- return jsx84("span", _extends({
28523
+ return jsx86("span", _extends({
28281
28524
  css: _ref
28282
28525
  }, props));
28283
28526
  };
@@ -28338,10 +28581,10 @@ var LiveRegion = function LiveRegion2(props) {
28338
28581
  var ariaLiveMessages = selectProps.ariaLiveMessages, getOptionLabel4 = selectProps.getOptionLabel, inputValue = selectProps.inputValue, isMulti = selectProps.isMulti, isOptionDisabled3 = selectProps.isOptionDisabled, isSearchable = selectProps.isSearchable, menuIsOpen = selectProps.menuIsOpen, options2 = selectProps.options, screenReaderStatus2 = selectProps.screenReaderStatus, tabSelectsValue = selectProps.tabSelectsValue, isLoading = selectProps.isLoading;
28339
28582
  var ariaLabel = selectProps["aria-label"];
28340
28583
  var ariaLive = selectProps["aria-live"];
28341
- var messages = useMemo8(function() {
28584
+ var messages = useMemo9(function() {
28342
28585
  return _objectSpread2(_objectSpread2({}, defaultAriaLiveMessages), ariaLiveMessages || {});
28343
28586
  }, [ariaLiveMessages]);
28344
- var ariaSelected = useMemo8(function() {
28587
+ var ariaSelected = useMemo9(function() {
28345
28588
  var message2 = "";
28346
28589
  if (ariaSelection && messages.onChange) {
28347
28590
  var option = ariaSelection.option, selectedOptions = ariaSelection.options, removedValue = ariaSelection.removedValue, removedValues = ariaSelection.removedValues, value = ariaSelection.value;
@@ -28363,7 +28606,7 @@ var LiveRegion = function LiveRegion2(props) {
28363
28606
  }
28364
28607
  return message2;
28365
28608
  }, [ariaSelection, messages, isOptionDisabled3, selectValue, getOptionLabel4]);
28366
- var ariaFocused = useMemo8(function() {
28609
+ var ariaFocused = useMemo9(function() {
28367
28610
  var focusMsg = "";
28368
28611
  var focused = focusedOption || focusedValue;
28369
28612
  var isSelected = !!(focusedOption && selectValue && selectValue.includes(focusedOption));
@@ -28382,7 +28625,7 @@ var LiveRegion = function LiveRegion2(props) {
28382
28625
  }
28383
28626
  return focusMsg;
28384
28627
  }, [focusedOption, focusedValue, getOptionLabel4, isOptionDisabled3, messages, focusableOptions, selectValue, isAppleDevice2]);
28385
- var ariaResults = useMemo8(function() {
28628
+ var ariaResults = useMemo9(function() {
28386
28629
  var resultsMsg = "";
28387
28630
  if (menuIsOpen && options2.length && !isLoading && messages.onFilter) {
28388
28631
  var resultsMessage = screenReaderStatus2({
@@ -28396,7 +28639,7 @@ var LiveRegion = function LiveRegion2(props) {
28396
28639
  return resultsMsg;
28397
28640
  }, [focusableOptions, inputValue, menuIsOpen, messages, options2, screenReaderStatus2, isLoading]);
28398
28641
  var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === "initial-input-focus";
28399
- var ariaGuidance = useMemo8(function() {
28642
+ var ariaGuidance = useMemo9(function() {
28400
28643
  var guidanceMsg = "";
28401
28644
  if (messages.guidance) {
28402
28645
  var context = focusedValue ? "value" : menuIsOpen ? "menu" : "input";
@@ -28412,18 +28655,18 @@ var LiveRegion = function LiveRegion2(props) {
28412
28655
  }
28413
28656
  return guidanceMsg;
28414
28657
  }, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
28415
- var ScreenReaderText = jsx84(Fragment23, null, jsx84("span", {
28658
+ var ScreenReaderText = jsx86(Fragment23, null, jsx86("span", {
28416
28659
  id: "aria-selection"
28417
- }, ariaSelected), jsx84("span", {
28660
+ }, ariaSelected), jsx86("span", {
28418
28661
  id: "aria-focused"
28419
- }, ariaFocused), jsx84("span", {
28662
+ }, ariaFocused), jsx86("span", {
28420
28663
  id: "aria-results"
28421
- }, ariaResults), jsx84("span", {
28664
+ }, ariaResults), jsx86("span", {
28422
28665
  id: "aria-guidance"
28423
28666
  }, ariaGuidance));
28424
- return jsx84(Fragment23, null, jsx84(A11yText$1, {
28667
+ return jsx86(Fragment23, null, jsx86(A11yText$1, {
28425
28668
  id
28426
- }, isInitialFocus && ScreenReaderText), jsx84(A11yText$1, {
28669
+ }, isInitialFocus && ScreenReaderText), jsx86(A11yText$1, {
28427
28670
  "aria-live": ariaLive,
28428
28671
  "aria-atomic": "false",
28429
28672
  "aria-relevant": "additions text",
@@ -28736,7 +28979,7 @@ var _excluded4 = ["innerRef"];
28736
28979
  function DummyInput(_ref3) {
28737
28980
  var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
28738
28981
  var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
28739
- return jsx84("input", _extends({
28982
+ return jsx86("input", _extends({
28740
28983
  ref: innerRef
28741
28984
  }, filteredProps, {
28742
28985
  css: /* @__PURE__ */ css({
@@ -28831,7 +29074,7 @@ function useScrollCapture(_ref3) {
28831
29074
  el.removeEventListener("touchstart", onTouchStart, false);
28832
29075
  el.removeEventListener("touchmove", onTouchMove, false);
28833
29076
  }, [onTouchMove, onTouchStart, onWheel]);
28834
- useEffect16(function() {
29077
+ useEffect17(function() {
28835
29078
  if (!isEnabled) return;
28836
29079
  var element = scrollTarget.current;
28837
29080
  startListening(element);
@@ -28934,7 +29177,7 @@ function useScrollLock(_ref3) {
28934
29177
  }
28935
29178
  }
28936
29179
  }, [accountForScrollbars]);
28937
- useEffect16(function() {
29180
+ useEffect17(function() {
28938
29181
  if (!isEnabled) return;
28939
29182
  var element = scrollTarget.current;
28940
29183
  addScrollLock(element);
@@ -28978,7 +29221,7 @@ function ScrollManager(_ref3) {
28978
29221
  setScrollCaptureTarget(element);
28979
29222
  setScrollLockTarget(element);
28980
29223
  };
28981
- return jsx84(Fragment23, null, lockEnabled && jsx84("div", {
29224
+ return jsx86(Fragment23, null, lockEnabled && jsx86("div", {
28982
29225
  onClick: blurSelectInput,
28983
29226
  css: _ref2$1
28984
29227
  }), children(targetRef));
@@ -28997,7 +29240,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
28997
29240
  };
28998
29241
  var RequiredInput = function RequiredInput2(_ref3) {
28999
29242
  var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
29000
- return jsx84("input", {
29243
+ return jsx86("input", {
29001
29244
  required: true,
29002
29245
  name: name2,
29003
29246
  tabIndex: -1,
@@ -30138,7 +30381,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30138
30381
  "aria-describedby": this.getElementId("placeholder")
30139
30382
  });
30140
30383
  if (!isSearchable) {
30141
- return /* @__PURE__ */ React13.createElement(DummyInput, _extends({
30384
+ return /* @__PURE__ */ React14.createElement(DummyInput, _extends({
30142
30385
  id,
30143
30386
  innerRef: this.getInputRef,
30144
30387
  onBlur: this.onInputBlur,
@@ -30151,7 +30394,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30151
30394
  value: ""
30152
30395
  }, ariaAttributes));
30153
30396
  }
30154
- return /* @__PURE__ */ React13.createElement(Input3, _extends({}, commonProps, {
30397
+ return /* @__PURE__ */ React14.createElement(Input3, _extends({}, commonProps, {
30155
30398
  autoCapitalize: "none",
30156
30399
  autoComplete: "off",
30157
30400
  autoCorrect: "off",
@@ -30179,7 +30422,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30179
30422
  var _this$props9 = this.props, controlShouldRenderValue = _this$props9.controlShouldRenderValue, isDisabled = _this$props9.isDisabled, isMulti = _this$props9.isMulti, inputValue = _this$props9.inputValue, placeholder = _this$props9.placeholder;
30180
30423
  var _this$state5 = this.state, selectValue = _this$state5.selectValue, focusedValue = _this$state5.focusedValue, isFocused = _this$state5.isFocused;
30181
30424
  if (!this.hasValue() || !controlShouldRenderValue) {
30182
- return inputValue ? null : /* @__PURE__ */ React13.createElement(Placeholder3, _extends({}, commonProps, {
30425
+ return inputValue ? null : /* @__PURE__ */ React14.createElement(Placeholder3, _extends({}, commonProps, {
30183
30426
  key: "placeholder",
30184
30427
  isDisabled,
30185
30428
  isFocused,
@@ -30192,7 +30435,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30192
30435
  return selectValue.map(function(opt, index4) {
30193
30436
  var isOptionFocused = opt === focusedValue;
30194
30437
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
30195
- return /* @__PURE__ */ React13.createElement(MultiValue3, _extends({}, commonProps, {
30438
+ return /* @__PURE__ */ React14.createElement(MultiValue3, _extends({}, commonProps, {
30196
30439
  components: {
30197
30440
  Container: MultiValueContainer2,
30198
30441
  Label: MultiValueLabel2,
@@ -30221,7 +30464,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30221
30464
  return null;
30222
30465
  }
30223
30466
  var singleValue = selectValue[0];
30224
- return /* @__PURE__ */ React13.createElement(SingleValue3, _extends({}, commonProps, {
30467
+ return /* @__PURE__ */ React14.createElement(SingleValue3, _extends({}, commonProps, {
30225
30468
  data: singleValue,
30226
30469
  isDisabled
30227
30470
  }), this.formatOptionLabel(singleValue, "value"));
@@ -30241,7 +30484,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30241
30484
  onTouchEnd: this.onClearIndicatorTouchEnd,
30242
30485
  "aria-hidden": "true"
30243
30486
  };
30244
- return /* @__PURE__ */ React13.createElement(ClearIndicator3, _extends({}, commonProps, {
30487
+ return /* @__PURE__ */ React14.createElement(ClearIndicator3, _extends({}, commonProps, {
30245
30488
  innerProps,
30246
30489
  isFocused
30247
30490
  }));
@@ -30257,7 +30500,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30257
30500
  var innerProps = {
30258
30501
  "aria-hidden": "true"
30259
30502
  };
30260
- return /* @__PURE__ */ React13.createElement(LoadingIndicator3, _extends({}, commonProps, {
30503
+ return /* @__PURE__ */ React14.createElement(LoadingIndicator3, _extends({}, commonProps, {
30261
30504
  innerProps,
30262
30505
  isDisabled,
30263
30506
  isFocused
@@ -30271,7 +30514,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30271
30514
  var commonProps = this.commonProps;
30272
30515
  var isDisabled = this.props.isDisabled;
30273
30516
  var isFocused = this.state.isFocused;
30274
- return /* @__PURE__ */ React13.createElement(IndicatorSeparator3, _extends({}, commonProps, {
30517
+ return /* @__PURE__ */ React14.createElement(IndicatorSeparator3, _extends({}, commonProps, {
30275
30518
  isDisabled,
30276
30519
  isFocused
30277
30520
  }));
@@ -30289,7 +30532,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30289
30532
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
30290
30533
  "aria-hidden": "true"
30291
30534
  };
30292
- return /* @__PURE__ */ React13.createElement(DropdownIndicator3, _extends({}, commonProps, {
30535
+ return /* @__PURE__ */ React14.createElement(DropdownIndicator3, _extends({}, commonProps, {
30293
30536
  innerProps,
30294
30537
  isDisabled,
30295
30538
  isFocused
@@ -30324,7 +30567,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30324
30567
  "aria-selected": _this4.state.isAppleDevice ? void 0 : isSelected
30325
30568
  // is not supported on Apple devices
30326
30569
  };
30327
- return /* @__PURE__ */ React13.createElement(Option3, _extends({}, commonProps, {
30570
+ return /* @__PURE__ */ React14.createElement(Option3, _extends({}, commonProps, {
30328
30571
  innerProps,
30329
30572
  data,
30330
30573
  isDisabled,
@@ -30344,7 +30587,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30344
30587
  var _data = item.data, options2 = item.options, groupIndex = item.index;
30345
30588
  var groupId = "".concat(_this4.getElementId("group"), "-").concat(groupIndex);
30346
30589
  var headingId = "".concat(groupId, "-heading");
30347
- return /* @__PURE__ */ React13.createElement(Group3, _extends({}, commonProps, {
30590
+ return /* @__PURE__ */ React14.createElement(Group3, _extends({}, commonProps, {
30348
30591
  key: groupId,
30349
30592
  data: _data,
30350
30593
  options: options2,
@@ -30366,13 +30609,13 @@ var Select = /* @__PURE__ */ function(_Component) {
30366
30609
  inputValue
30367
30610
  });
30368
30611
  if (message2 === null) return null;
30369
- menuUI = /* @__PURE__ */ React13.createElement(LoadingMessage3, commonProps, message2);
30612
+ menuUI = /* @__PURE__ */ React14.createElement(LoadingMessage3, commonProps, message2);
30370
30613
  } else {
30371
30614
  var _message = noOptionsMessage2({
30372
30615
  inputValue
30373
30616
  });
30374
30617
  if (_message === null) return null;
30375
- menuUI = /* @__PURE__ */ React13.createElement(NoOptionsMessage3, commonProps, _message);
30618
+ menuUI = /* @__PURE__ */ React14.createElement(NoOptionsMessage3, commonProps, _message);
30376
30619
  }
30377
30620
  var menuPlacementProps = {
30378
30621
  minMenuHeight,
@@ -30381,9 +30624,9 @@ var Select = /* @__PURE__ */ function(_Component) {
30381
30624
  menuPosition,
30382
30625
  menuShouldScrollIntoView
30383
30626
  };
30384
- var menuElement = /* @__PURE__ */ React13.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function(_ref4) {
30627
+ var menuElement = /* @__PURE__ */ React14.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function(_ref4) {
30385
30628
  var ref = _ref4.ref, _ref4$placerProps = _ref4.placerProps, placement = _ref4$placerProps.placement, maxHeight = _ref4$placerProps.maxHeight;
30386
- return /* @__PURE__ */ React13.createElement(Menu3, _extends({}, commonProps, menuPlacementProps, {
30629
+ return /* @__PURE__ */ React14.createElement(Menu3, _extends({}, commonProps, menuPlacementProps, {
30387
30630
  innerRef: ref,
30388
30631
  innerProps: {
30389
30632
  onMouseDown: _this4.onMenuMouseDown,
@@ -30391,13 +30634,13 @@ var Select = /* @__PURE__ */ function(_Component) {
30391
30634
  },
30392
30635
  isLoading,
30393
30636
  placement
30394
- }), /* @__PURE__ */ React13.createElement(ScrollManager, {
30637
+ }), /* @__PURE__ */ React14.createElement(ScrollManager, {
30395
30638
  captureEnabled: captureMenuScroll,
30396
30639
  onTopArrive: onMenuScrollToTop,
30397
30640
  onBottomArrive: onMenuScrollToBottom,
30398
30641
  lockEnabled: menuShouldBlockScroll
30399
30642
  }, function(scrollTargetRef) {
30400
- return /* @__PURE__ */ React13.createElement(MenuList3, _extends({}, commonProps, {
30643
+ return /* @__PURE__ */ React14.createElement(MenuList3, _extends({}, commonProps, {
30401
30644
  innerRef: function innerRef(instance2) {
30402
30645
  _this4.getMenuListRef(instance2);
30403
30646
  scrollTargetRef(instance2);
@@ -30413,7 +30656,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30413
30656
  }), menuUI);
30414
30657
  }));
30415
30658
  });
30416
- return menuPortalTarget || menuPosition === "fixed" ? /* @__PURE__ */ React13.createElement(MenuPortal3, _extends({}, commonProps, {
30659
+ return menuPortalTarget || menuPosition === "fixed" ? /* @__PURE__ */ React14.createElement(MenuPortal3, _extends({}, commonProps, {
30417
30660
  appendTo: menuPortalTarget,
30418
30661
  controlElement: this.controlRef,
30419
30662
  menuPlacement,
@@ -30427,7 +30670,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30427
30670
  var _this$props13 = this.props, delimiter2 = _this$props13.delimiter, isDisabled = _this$props13.isDisabled, isMulti = _this$props13.isMulti, name2 = _this$props13.name, required = _this$props13.required;
30428
30671
  var selectValue = this.state.selectValue;
30429
30672
  if (required && !this.hasValue() && !isDisabled) {
30430
- return /* @__PURE__ */ React13.createElement(RequiredInput$1, {
30673
+ return /* @__PURE__ */ React14.createElement(RequiredInput$1, {
30431
30674
  name: name2,
30432
30675
  onFocus: this.onValueInputFocus
30433
30676
  });
@@ -30438,29 +30681,29 @@ var Select = /* @__PURE__ */ function(_Component) {
30438
30681
  var value = selectValue.map(function(opt) {
30439
30682
  return _this5.getOptionValue(opt);
30440
30683
  }).join(delimiter2);
30441
- return /* @__PURE__ */ React13.createElement("input", {
30684
+ return /* @__PURE__ */ React14.createElement("input", {
30442
30685
  name: name2,
30443
30686
  type: "hidden",
30444
30687
  value
30445
30688
  });
30446
30689
  } else {
30447
30690
  var input = selectValue.length > 0 ? selectValue.map(function(opt, i3) {
30448
- return /* @__PURE__ */ React13.createElement("input", {
30691
+ return /* @__PURE__ */ React14.createElement("input", {
30449
30692
  key: "i-".concat(i3),
30450
30693
  name: name2,
30451
30694
  type: "hidden",
30452
30695
  value: _this5.getOptionValue(opt)
30453
30696
  });
30454
- }) : /* @__PURE__ */ React13.createElement("input", {
30697
+ }) : /* @__PURE__ */ React14.createElement("input", {
30455
30698
  name: name2,
30456
30699
  type: "hidden",
30457
30700
  value: ""
30458
30701
  });
30459
- return /* @__PURE__ */ React13.createElement("div", null, input);
30702
+ return /* @__PURE__ */ React14.createElement("div", null, input);
30460
30703
  }
30461
30704
  } else {
30462
30705
  var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : "";
30463
- return /* @__PURE__ */ React13.createElement("input", {
30706
+ return /* @__PURE__ */ React14.createElement("input", {
30464
30707
  name: name2,
30465
30708
  type: "hidden",
30466
30709
  value: _value
@@ -30473,7 +30716,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30473
30716
  var commonProps = this.commonProps;
30474
30717
  var _this$state6 = this.state, ariaSelection = _this$state6.ariaSelection, focusedOption = _this$state6.focusedOption, focusedValue = _this$state6.focusedValue, isFocused = _this$state6.isFocused, selectValue = _this$state6.selectValue;
30475
30718
  var focusableOptions = this.getFocusableOptions();
30476
- return /* @__PURE__ */ React13.createElement(LiveRegion$1, _extends({}, commonProps, {
30719
+ return /* @__PURE__ */ React14.createElement(LiveRegion$1, _extends({}, commonProps, {
30477
30720
  id: this.getElementId("live-region"),
30478
30721
  ariaSelection,
30479
30722
  focusedOption,
@@ -30491,7 +30734,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30491
30734
  var _this$props14 = this.props, className = _this$props14.className, id = _this$props14.id, isDisabled = _this$props14.isDisabled, menuIsOpen = _this$props14.menuIsOpen;
30492
30735
  var isFocused = this.state.isFocused;
30493
30736
  var commonProps = this.commonProps = this.getCommonProps();
30494
- return /* @__PURE__ */ React13.createElement(SelectContainer3, _extends({}, commonProps, {
30737
+ return /* @__PURE__ */ React14.createElement(SelectContainer3, _extends({}, commonProps, {
30495
30738
  className,
30496
30739
  innerProps: {
30497
30740
  id,
@@ -30499,7 +30742,7 @@ var Select = /* @__PURE__ */ function(_Component) {
30499
30742
  },
30500
30743
  isDisabled,
30501
30744
  isFocused
30502
- }), this.renderLiveRegion(), /* @__PURE__ */ React13.createElement(Control3, _extends({}, commonProps, {
30745
+ }), this.renderLiveRegion(), /* @__PURE__ */ React14.createElement(Control3, _extends({}, commonProps, {
30503
30746
  innerRef: this.getControlRef,
30504
30747
  innerProps: {
30505
30748
  onMouseDown: this.onControlMouseDown,
@@ -30508,9 +30751,9 @@ var Select = /* @__PURE__ */ function(_Component) {
30508
30751
  isDisabled,
30509
30752
  isFocused,
30510
30753
  menuIsOpen
30511
- }), /* @__PURE__ */ React13.createElement(ValueContainer3, _extends({}, commonProps, {
30754
+ }), /* @__PURE__ */ React14.createElement(ValueContainer3, _extends({}, commonProps, {
30512
30755
  isDisabled
30513
- }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ React13.createElement(IndicatorsContainer3, _extends({}, commonProps, {
30756
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ React14.createElement(IndicatorsContainer3, _extends({}, commonProps, {
30514
30757
  isDisabled
30515
30758
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
30516
30759
  }
@@ -30579,7 +30822,7 @@ var import_defineProperty3 = __toESM(require_defineProperty());
30579
30822
  import "react-dom";
30580
30823
  var StateManagedSelect = /* @__PURE__ */ forwardRef5(function(props, ref) {
30581
30824
  var baseSelectProps = useStateManager(props);
30582
- return /* @__PURE__ */ React14.createElement(Select, _extends({
30825
+ return /* @__PURE__ */ React15.createElement(Select, _extends({
30583
30826
  ref
30584
30827
  }, baseSelectProps));
30585
30828
  });
@@ -30587,7 +30830,7 @@ var StateManagedSelect$1 = StateManagedSelect;
30587
30830
 
30588
30831
  // src/widgets/basic/date-field/date.tsx
30589
30832
  var import_moment2 = __toESM(require_moment());
30590
- import { Fragment as Fragment24, jsx as jsx86, jsxs as jsxs55 } from "react/jsx-runtime";
30833
+ import { Fragment as Fragment24, jsx as jsx88, jsxs as jsxs57 } from "react/jsx-runtime";
30591
30834
  var DateField = (props) => {
30592
30835
  const {
30593
30836
  name: name2,
@@ -30615,8 +30858,8 @@ var DateField = (props) => {
30615
30858
  } = props;
30616
30859
  const { t: t3 } = useI18n();
30617
30860
  const InputDateCustom = forwardRef6(
30618
- ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs55("label", { className: `flex ${className}`, children: [
30619
- /* @__PURE__ */ jsx86(
30861
+ ({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs57("label", { className: `flex ${className}`, children: [
30862
+ /* @__PURE__ */ jsx88(
30620
30863
  "input",
30621
30864
  {
30622
30865
  className: `bg-transparent w-full focus-visible:outline-none outline-none border-none ${readonly && "cursor-not-allowed"}`,
@@ -30630,13 +30873,13 @@ var DateField = (props) => {
30630
30873
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
30631
30874
  }
30632
30875
  ),
30633
- isForm2 && /* @__PURE__ */ jsx86(CalendarIcon, {})
30876
+ isForm2 && /* @__PURE__ */ jsx88(CalendarIcon, {})
30634
30877
  ] })
30635
30878
  );
30636
30879
  if (!isForm && !isEditTable) {
30637
- return /* @__PURE__ */ jsx86("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30880
+ return /* @__PURE__ */ jsx88("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
30638
30881
  } else {
30639
- return /* @__PURE__ */ jsx86(
30882
+ return /* @__PURE__ */ jsx88(
30640
30883
  Controller,
30641
30884
  {
30642
30885
  name: name2 || "",
@@ -30652,14 +30895,14 @@ var DateField = (props) => {
30652
30895
  },
30653
30896
  render: ({ field, fieldState: { error: error2 } }) => {
30654
30897
  const { setError, clearErrors } = methods;
30655
- useEffect17(() => {
30898
+ useEffect18(() => {
30656
30899
  if (value) {
30657
30900
  clearErrors(name2);
30658
30901
  }
30659
30902
  }, [value, clearErrors, name2]);
30660
30903
  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;
30661
- return /* @__PURE__ */ jsxs55(Fragment24, { children: [
30662
- /* @__PURE__ */ jsx86(
30904
+ return /* @__PURE__ */ jsxs57(Fragment24, { children: [
30905
+ /* @__PURE__ */ jsx88(
30663
30906
  DatePicker,
30664
30907
  {
30665
30908
  selected: selectedDate,
@@ -30707,7 +30950,7 @@ var DateField = (props) => {
30707
30950
  minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
30708
30951
  maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
30709
30952
  showTimeInput: showTime,
30710
- customInput: /* @__PURE__ */ jsx86(
30953
+ customInput: /* @__PURE__ */ jsx88(
30711
30954
  InputDateCustom,
30712
30955
  {
30713
30956
  isForm,
@@ -30725,7 +30968,7 @@ var DateField = (props) => {
30725
30968
  increaseMonth,
30726
30969
  prevMonthButtonDisabled,
30727
30970
  nextMonthButtonDisabled
30728
- }) => /* @__PURE__ */ jsxs55(
30971
+ }) => /* @__PURE__ */ jsxs57(
30729
30972
  "div",
30730
30973
  {
30731
30974
  style: {
@@ -30734,7 +30977,7 @@ var DateField = (props) => {
30734
30977
  justifyContent: "center"
30735
30978
  },
30736
30979
  children: [
30737
- /* @__PURE__ */ jsx86(
30980
+ /* @__PURE__ */ jsx88(
30738
30981
  "button",
30739
30982
  {
30740
30983
  onClick: decreaseMonth,
@@ -30742,7 +30985,7 @@ var DateField = (props) => {
30742
30985
  children: "<"
30743
30986
  }
30744
30987
  ),
30745
- /* @__PURE__ */ jsx86(
30988
+ /* @__PURE__ */ jsx88(
30746
30989
  StateManagedSelect$1,
30747
30990
  {
30748
30991
  classNames: {
@@ -30768,7 +31011,7 @@ var DateField = (props) => {
30768
31011
  autoFocus: true
30769
31012
  }
30770
31013
  ),
30771
- /* @__PURE__ */ jsx86(
31014
+ /* @__PURE__ */ jsx88(
30772
31015
  StateManagedSelect$1,
30773
31016
  {
30774
31017
  classNames: {
@@ -30796,7 +31039,7 @@ var DateField = (props) => {
30796
31039
  }))
30797
31040
  }
30798
31041
  ),
30799
- /* @__PURE__ */ jsx86(
31042
+ /* @__PURE__ */ jsx88(
30800
31043
  "button",
30801
31044
  {
30802
31045
  onClick: increaseMonth,
@@ -30809,7 +31052,7 @@ var DateField = (props) => {
30809
31052
  )
30810
31053
  }
30811
31054
  ),
30812
- !isEditTable && error2 && /* @__PURE__ */ jsx86("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31055
+ !isEditTable && error2 && /* @__PURE__ */ jsx88("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
30813
31056
  ] });
30814
31057
  }
30815
31058
  }
@@ -30818,26 +31061,26 @@ var DateField = (props) => {
30818
31061
  };
30819
31062
 
30820
31063
  // src/widgets/basic/download-binary-field/download-binary.tsx
30821
- import { jsx as jsx87, jsxs as jsxs56 } from "react/jsx-runtime";
31064
+ import { jsx as jsx89, jsxs as jsxs58 } from "react/jsx-runtime";
30822
31065
  var DownLoadBinaryField = (props) => {
30823
31066
  const { handleFileDownload } = props;
30824
31067
  const { t: t3 } = useI18n();
30825
- return /* @__PURE__ */ jsxs56(
31068
+ return /* @__PURE__ */ jsxs58(
30826
31069
  "button",
30827
31070
  {
30828
31071
  type: "button",
30829
31072
  onClick: handleFileDownload,
30830
31073
  className: "download-binary-field flex items-center gap-1 text-blue-700 my-auto",
30831
31074
  children: [
30832
- /* @__PURE__ */ jsx87(DownloadIcon, {}),
30833
- /* @__PURE__ */ jsx87("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
31075
+ /* @__PURE__ */ jsx89(DownloadIcon, {}),
31076
+ /* @__PURE__ */ jsx89("span", { className: "text-sm italic underline text-primary", children: t3("download_file") })
30834
31077
  ]
30835
31078
  }
30836
31079
  );
30837
31080
  };
30838
31081
 
30839
31082
  // src/widgets/basic/download-file-field/download-file.tsx
30840
- import { jsx as jsx88, jsxs as jsxs57 } from "react/jsx-runtime";
31083
+ import { jsx as jsx90, jsxs as jsxs59 } from "react/jsx-runtime";
30841
31084
  var DownloadFileField = (props) => {
30842
31085
  const {
30843
31086
  readonly,
@@ -30849,15 +31092,15 @@ var DownloadFileField = (props) => {
30849
31092
  handleFileChange,
30850
31093
  handleFileDownload
30851
31094
  } = props;
30852
- return /* @__PURE__ */ jsxs57("div", { className: "", children: [
30853
- /* @__PURE__ */ jsxs57(
31095
+ return /* @__PURE__ */ jsxs59("div", { className: "", children: [
31096
+ /* @__PURE__ */ jsxs59(
30854
31097
  "label",
30855
31098
  {
30856
31099
  htmlFor: inputId,
30857
31100
  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",
30858
31101
  children: [
30859
- file ? /* @__PURE__ */ jsx88("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx88("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx88("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
30860
- /* @__PURE__ */ jsx88(
31102
+ file ? /* @__PURE__ */ jsx90("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx90("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx90("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
31103
+ /* @__PURE__ */ jsx90(
30861
31104
  "input",
30862
31105
  {
30863
31106
  id: inputId,
@@ -30871,7 +31114,7 @@ var DownloadFileField = (props) => {
30871
31114
  ]
30872
31115
  }
30873
31116
  ),
30874
- file && /* @__PURE__ */ jsx88(
31117
+ file && /* @__PURE__ */ jsx90(
30875
31118
  "button",
30876
31119
  {
30877
31120
  onClick: handleFileDownload,
@@ -30884,8 +31127,8 @@ var DownloadFileField = (props) => {
30884
31127
  };
30885
31128
 
30886
31129
  // src/widgets/basic/dropdown-field/dropdown.tsx
30887
- import { useState as useState16 } from "react";
30888
- import { jsx as jsx89, jsxs as jsxs58 } from "react/jsx-runtime";
31130
+ import { useState as useState17 } from "react";
31131
+ import { jsx as jsx91, jsxs as jsxs60 } from "react/jsx-runtime";
30889
31132
  var DropdownField = (props) => {
30890
31133
  const {
30891
31134
  options: options2,
@@ -30897,32 +31140,32 @@ var DropdownField = (props) => {
30897
31140
  dropdownClassName = "",
30898
31141
  useClickOutside: useClickOutside2
30899
31142
  } = props;
30900
- const [open, setOpen] = useState16(false);
31143
+ const [open, setOpen] = useState17(false);
30901
31144
  const dropdownRef = useClickOutside2({ handler: () => setOpen(false) });
30902
- return /* @__PURE__ */ jsxs58(
31145
+ return /* @__PURE__ */ jsxs60(
30903
31146
  "div",
30904
31147
  {
30905
31148
  ref: dropdownRef,
30906
31149
  className: `relative ${className}`,
30907
31150
  onClick: () => setOpen(!open),
30908
31151
  children: [
30909
- /* @__PURE__ */ jsxs58(
31152
+ /* @__PURE__ */ jsxs60(
30910
31153
  "div",
30911
31154
  {
30912
31155
  className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
30913
31156
  children: [
30914
31157
  selectedValue?.icon,
30915
- /* @__PURE__ */ jsx89("span", { children: selectedValue?.label }),
30916
- /* @__PURE__ */ jsx89(ChevronBottomIcon, { className: "h-4 w-4" })
31158
+ /* @__PURE__ */ jsx91("span", { children: selectedValue?.label }),
31159
+ /* @__PURE__ */ jsx91(ChevronBottomIcon, { className: "h-4 w-4" })
30917
31160
  ]
30918
31161
  }
30919
31162
  ),
30920
- open && /* @__PURE__ */ jsx89(
31163
+ open && /* @__PURE__ */ jsx91(
30921
31164
  "div",
30922
31165
  {
30923
31166
  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}`,
30924
31167
  onClick: (e3) => e3.stopPropagation(),
30925
- children: options2.map((option, index4) => /* @__PURE__ */ jsx89(
31168
+ children: options2.map((option, index4) => /* @__PURE__ */ jsx91(
30926
31169
  "div",
30927
31170
  {
30928
31171
  onClick: () => {
@@ -30942,7 +31185,7 @@ var DropdownField = (props) => {
30942
31185
  };
30943
31186
 
30944
31187
  // src/widgets/basic/fee-field/fee.tsx
30945
- import { Fragment as Fragment25, jsx as jsx90, jsxs as jsxs59 } from "react/jsx-runtime";
31188
+ import { Fragment as Fragment25, jsx as jsx92, jsxs as jsxs61 } from "react/jsx-runtime";
30946
31189
  var FeeField = (props) => {
30947
31190
  const { value, formValues } = props;
30948
31191
  const { t: t3 } = useI18n();
@@ -30953,27 +31196,27 @@ var FeeField = (props) => {
30953
31196
  )
30954
31197
  ) + " VND";
30955
31198
  const remaining_amount = formatNumberOnly(parseFloat(formValues?.amount_residual ?? 0)) + " VND";
30956
- return /* @__PURE__ */ jsxs59(Fragment25, { children: [
31199
+ return /* @__PURE__ */ jsxs61(Fragment25, { children: [
30957
31200
  value?.subtotals?.map((sub) => {
30958
31201
  if (sub?.tax_amount > 0 && sub?.tax_groups?.length > 0) {
30959
- return /* @__PURE__ */ jsxs59(Fragment25, { children: [
30960
- /* @__PURE__ */ jsxs59("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
30961
- /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31202
+ return /* @__PURE__ */ jsxs61(Fragment25, { children: [
31203
+ /* @__PURE__ */ jsxs61("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto", children: [
31204
+ /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
30962
31205
  sub?.name,
30963
31206
  ":"
30964
31207
  ] }),
30965
- /* @__PURE__ */ jsx90("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
31208
+ /* @__PURE__ */ jsx92("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
30966
31209
  ] }),
30967
- sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs59(
31210
+ sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs61(
30968
31211
  "div",
30969
31212
  {
30970
31213
  className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2",
30971
31214
  children: [
30972
- /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31215
+ /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
30973
31216
  group?.group_name,
30974
31217
  ":"
30975
31218
  ] }),
30976
- /* @__PURE__ */ jsx90("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
31219
+ /* @__PURE__ */ jsx92("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
30977
31220
  ]
30978
31221
  },
30979
31222
  `tax_groups_${group?.id}`
@@ -30981,33 +31224,33 @@ var FeeField = (props) => {
30981
31224
  ] });
30982
31225
  }
30983
31226
  }),
30984
- /* @__PURE__ */ jsxs59("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: [
30985
- /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31227
+ /* @__PURE__ */ jsxs61("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5", children: [
31228
+ /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
30986
31229
  t3("total"),
30987
31230
  ":"
30988
31231
  ] }),
30989
- /* @__PURE__ */ jsx90("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
31232
+ /* @__PURE__ */ jsx92("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
30990
31233
  ] }),
30991
- /* @__PURE__ */ jsxs59("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: [
30992
- /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31234
+ /* @__PURE__ */ jsxs61("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
31235
+ /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
30993
31236
  t3("paid_amount"),
30994
31237
  ":"
30995
31238
  ] }),
30996
- /* @__PURE__ */ jsx90("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
31239
+ /* @__PURE__ */ jsx92("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
30997
31240
  ] }),
30998
- /* @__PURE__ */ jsxs59("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: [
30999
- /* @__PURE__ */ jsxs59("div", { className: "text-[14px] leading-[21px] text-right", children: [
31241
+ /* @__PURE__ */ jsxs61("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
31242
+ /* @__PURE__ */ jsxs61("div", { className: "text-[14px] leading-[21px] text-right", children: [
31000
31243
  t3("remanining_amount"),
31001
31244
  ":"
31002
31245
  ] }),
31003
- /* @__PURE__ */ jsx90("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31246
+ /* @__PURE__ */ jsx92("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
31004
31247
  ] })
31005
31248
  ] });
31006
31249
  };
31007
31250
 
31008
31251
  // src/widgets/basic/file-upload-field/file-upload.tsx
31009
- import { useEffect as useEffect18, useRef as useRef14, useState as useState17 } from "react";
31010
- import { jsx as jsx91, jsxs as jsxs60 } from "react/jsx-runtime";
31252
+ import { useEffect as useEffect19, useRef as useRef14, useState as useState18 } from "react";
31253
+ import { jsx as jsx93, jsxs as jsxs62 } from "react/jsx-runtime";
31011
31254
  var RenderFile = ({
31012
31255
  file,
31013
31256
  onDelete,
@@ -31017,16 +31260,16 @@ var RenderFile = ({
31017
31260
  readAs: "all"
31018
31261
  });
31019
31262
  const fileTypeIcon = {
31020
- "application/pdf": /* @__PURE__ */ jsx91(PdfIcon, {}),
31021
- "application/zip": /* @__PURE__ */ jsx91(ZipIcon, {}),
31022
- "application/x-zip-compressed": /* @__PURE__ */ jsx91(ZipIcon, {}),
31023
- "application/vnd.ms-excel": /* @__PURE__ */ jsx91(ExcelIcon, {}),
31024
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx91(ExcelIcon, {})
31263
+ "application/pdf": /* @__PURE__ */ jsx93(PdfIcon, {}),
31264
+ "application/zip": /* @__PURE__ */ jsx93(ZipIcon, {}),
31265
+ "application/x-zip-compressed": /* @__PURE__ */ jsx93(ZipIcon, {}),
31266
+ "application/vnd.ms-excel": /* @__PURE__ */ jsx93(ExcelIcon, {}),
31267
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx93(ExcelIcon, {})
31025
31268
  };
31026
- return /* @__PURE__ */ jsxs60("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31027
- /* @__PURE__ */ jsx91("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31028
- /* @__PURE__ */ jsxs60("div", { children: [
31029
- /* @__PURE__ */ jsx91(
31269
+ return /* @__PURE__ */ jsxs62("div", { className: "flex gap-2 items-center bg-[#FAFAFA] rounded-[8px] p-[6px]", children: [
31270
+ /* @__PURE__ */ jsx93("div", { className: "w-6 h-6 file-icon", children: info?.type && fileTypeIcon?.[info?.type] }),
31271
+ /* @__PURE__ */ jsxs62("div", { children: [
31272
+ /* @__PURE__ */ jsx93(
31030
31273
  "div",
31031
31274
  {
31032
31275
  style: {
@@ -31036,20 +31279,20 @@ var RenderFile = ({
31036
31279
  children: file?.name || file?.display_name || info?.name
31037
31280
  }
31038
31281
  ),
31039
- /* @__PURE__ */ jsx91("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31282
+ /* @__PURE__ */ jsx93("div", { className: "text-xs text-[#666] font-semibold", children: isNaN(info?.size) ? "" : formatFileSize(info?.size) })
31040
31283
  ] }),
31041
- /* @__PURE__ */ jsxs60("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: [
31042
- /* @__PURE__ */ jsx91(
31284
+ /* @__PURE__ */ jsxs62("div", { className: "flex items-center rounded-[8px] p-[8px] gap-2 bg-white shadow-[0_2px_4px_0_rgba(27,28,29,0.04)]", children: [
31285
+ /* @__PURE__ */ jsx93(
31043
31286
  "span",
31044
31287
  {
31045
31288
  onClick: () => onDownload && onDownload(
31046
31289
  file?.data,
31047
31290
  file?.name || file?.display_name || info?.name
31048
31291
  ),
31049
- children: /* @__PURE__ */ jsx91(DownloadIcon, {})
31292
+ children: /* @__PURE__ */ jsx93(DownloadIcon, {})
31050
31293
  }
31051
31294
  ),
31052
- /* @__PURE__ */ jsx91("span", { onClick: onDelete, children: /* @__PURE__ */ jsx91(DeleteIconDanger, {}) })
31295
+ /* @__PURE__ */ jsx93("span", { onClick: onDelete, children: /* @__PURE__ */ jsx93(DeleteIconDanger, {}) })
31053
31296
  ] })
31054
31297
  ] });
31055
31298
  };
@@ -31072,9 +31315,9 @@ var FileUploadField = (props) => {
31072
31315
  } = props;
31073
31316
  const { t: t3 } = useI18n();
31074
31317
  const fileInputRef = useRef14(null);
31075
- const [selectedFiles, setSelectedFiles] = useState17([]);
31076
- const [uploadError, setUploadError] = useState17();
31077
- useEffect18(() => {
31318
+ const [selectedFiles, setSelectedFiles] = useState18([]);
31319
+ const [uploadError, setUploadError] = useState18();
31320
+ useEffect19(() => {
31078
31321
  if (selectedFiles?.length === 0 && value) {
31079
31322
  setSelectedFiles([
31080
31323
  {
@@ -31083,7 +31326,7 @@ var FileUploadField = (props) => {
31083
31326
  ]);
31084
31327
  }
31085
31328
  }, [value]);
31086
- return /* @__PURE__ */ jsx91(
31329
+ return /* @__PURE__ */ jsx93(
31087
31330
  Controller,
31088
31331
  {
31089
31332
  name: name2 || "",
@@ -31092,7 +31335,7 @@ var FileUploadField = (props) => {
31092
31335
  required: required ? { value: true, message: `${string} ${t3("must_required")}` } : false
31093
31336
  },
31094
31337
  render: ({ field: { onChange: onChange2 }, fieldState: { error: error2 } }) => {
31095
- useEffect18(() => {
31338
+ useEffect19(() => {
31096
31339
  let data = widget === "many2many_binary" ? selectedFiles : selectedFiles?.[0]?.data;
31097
31340
  if (widget !== "many2many_binary" && data && isBase64File(data)) {
31098
31341
  data = data.split(",")[1];
@@ -31108,8 +31351,8 @@ var FileUploadField = (props) => {
31108
31351
  );
31109
31352
  }
31110
31353
  }, [selectedFiles]);
31111
- return /* @__PURE__ */ jsxs60("div", { children: [
31112
- selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx91(
31354
+ return /* @__PURE__ */ jsxs62("div", { children: [
31355
+ selectedFiles?.length > 0 && selectedFiles?.map((fileItem, index4) => /* @__PURE__ */ jsx93(
31113
31356
  RenderFile,
31114
31357
  {
31115
31358
  file: fileItem,
@@ -31124,8 +31367,8 @@ var FileUploadField = (props) => {
31124
31367
  }
31125
31368
  }
31126
31369
  )),
31127
- uploadError && /* @__PURE__ */ jsx91("div", { className: "text-[#de4747]", children: uploadError }),
31128
- (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx91(
31370
+ uploadError && /* @__PURE__ */ jsx93("div", { className: "text-[#de4747]", children: uploadError }),
31371
+ (widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx93(
31129
31372
  ButtonSelectFiles,
31130
31373
  {
31131
31374
  fileInputRef,
@@ -31140,7 +31383,7 @@ var FileUploadField = (props) => {
31140
31383
  useUploadFile
31141
31384
  }
31142
31385
  ),
31143
- error2 && !isEditTable && /* @__PURE__ */ jsx91("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31386
+ error2 && !isEditTable && /* @__PURE__ */ jsx93("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31144
31387
  ] });
31145
31388
  }
31146
31389
  }
@@ -31148,8 +31391,8 @@ var FileUploadField = (props) => {
31148
31391
  };
31149
31392
 
31150
31393
  // src/widgets/basic/float-field/float.tsx
31151
- import { useEffect as useEffect19, useRef as useRef15, useState as useState18 } from "react";
31152
- import { Fragment as Fragment26, jsx as jsx92, jsxs as jsxs61 } from "react/jsx-runtime";
31394
+ import { useEffect as useEffect20, useRef as useRef15, useState as useState19 } from "react";
31395
+ import { Fragment as Fragment26, jsx as jsx94, jsxs as jsxs63 } from "react/jsx-runtime";
31153
31396
  var FloatField = (props) => {
31154
31397
  const {
31155
31398
  name: name2,
@@ -31167,9 +31410,9 @@ var FloatField = (props) => {
31167
31410
  } = props;
31168
31411
  const { t: t3 } = useI18n();
31169
31412
  if (!isForm && !isEditTable) {
31170
- return /* @__PURE__ */ jsx92("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31413
+ return /* @__PURE__ */ jsx94("span", { children: formatFloatNumber(propValue ?? defaultValue) });
31171
31414
  }
31172
- return /* @__PURE__ */ jsx92(
31415
+ return /* @__PURE__ */ jsx94(
31173
31416
  Controller,
31174
31417
  {
31175
31418
  name: name2 ?? "",
@@ -31180,12 +31423,12 @@ var FloatField = (props) => {
31180
31423
  },
31181
31424
  render: ({ field: { onChange: onChange2, value }, fieldState: { error: error2 } }) => {
31182
31425
  const { setError, clearErrors } = methods;
31183
- const [inputValue, setInputValue] = useState18(
31426
+ const [inputValue, setInputValue] = useState19(
31184
31427
  value !== void 0 && value !== null ? formatFloatNumber(value) : ""
31185
31428
  );
31186
31429
  const isDirtyRef = useRef15(false);
31187
31430
  const lastCommittedValueRef = useRef15(null);
31188
- useEffect19(() => {
31431
+ useEffect20(() => {
31189
31432
  if (isDirtyRef.current) return;
31190
31433
  const numericInput = parseFloat(inputValue?.replace(/,/g, ""));
31191
31434
  if (propValue !== void 0 && propValue !== null && !Number.isNaN(propValue) && propValue !== numericInput) {
@@ -31263,8 +31506,8 @@ var FloatField = (props) => {
31263
31506
  }
31264
31507
  isDirtyRef.current = false;
31265
31508
  };
31266
- return /* @__PURE__ */ jsxs61(Fragment26, { children: [
31267
- /* @__PURE__ */ jsx92(
31509
+ return /* @__PURE__ */ jsxs63(Fragment26, { children: [
31510
+ /* @__PURE__ */ jsx94(
31268
31511
  "input",
31269
31512
  {
31270
31513
  value: inputValue,
@@ -31283,7 +31526,7 @@ var FloatField = (props) => {
31283
31526
  `
31284
31527
  }
31285
31528
  ),
31286
- error2 && !isEditTable && /* @__PURE__ */ jsx92("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31529
+ error2 && !isEditTable && /* @__PURE__ */ jsx94("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31287
31530
  ] });
31288
31531
  }
31289
31532
  }
@@ -31291,8 +31534,8 @@ var FloatField = (props) => {
31291
31534
  };
31292
31535
 
31293
31536
  // src/widgets/basic/float-time-field/float-time.tsx
31294
- import { useState as useState19 } from "react";
31295
- import { Fragment as Fragment27, jsx as jsx93, jsxs as jsxs62 } from "react/jsx-runtime";
31537
+ import { useState as useState20 } from "react";
31538
+ import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs64 } from "react/jsx-runtime";
31296
31539
  var FloatTimeField = (props) => {
31297
31540
  const {
31298
31541
  name: name2,
@@ -31308,9 +31551,9 @@ var FloatTimeField = (props) => {
31308
31551
  const { t: t3 } = useI18n();
31309
31552
  if (!isForm) {
31310
31553
  const formatValue = value ?? 0;
31311
- return /* @__PURE__ */ jsx93("span", { children: convertFloatToTime(formatValue) });
31554
+ return /* @__PURE__ */ jsx95("span", { children: convertFloatToTime(formatValue) });
31312
31555
  }
31313
- return /* @__PURE__ */ jsx93(
31556
+ return /* @__PURE__ */ jsx95(
31314
31557
  Controller,
31315
31558
  {
31316
31559
  name: name2 ?? "",
@@ -31323,11 +31566,11 @@ var FloatTimeField = (props) => {
31323
31566
  field: { onChange: fieldOnChange, onBlur, value: value2 },
31324
31567
  fieldState: { error: error2, isDirty }
31325
31568
  }) => {
31326
- const [input, setInput] = useState19(
31569
+ const [input, setInput] = useState20(
31327
31570
  convertFloatToTime(value2 ?? defaultValue)
31328
31571
  );
31329
- const [formattedTime, setFormattedTime] = useState19("");
31330
- const [errors, setErrors] = useState19("");
31572
+ const [formattedTime, setFormattedTime] = useState20("");
31573
+ const [errors, setErrors] = useState20("");
31331
31574
  const handleInputChange = (e3) => {
31332
31575
  const raw = e3.target.value.replace(/[^\d:]/g, "");
31333
31576
  setInput(raw);
@@ -31372,8 +31615,8 @@ var FloatTimeField = (props) => {
31372
31615
  }
31373
31616
  onBlur();
31374
31617
  };
31375
- return /* @__PURE__ */ jsxs62(Fragment27, { children: [
31376
- /* @__PURE__ */ jsx93(
31618
+ return /* @__PURE__ */ jsxs64(Fragment27, { children: [
31619
+ /* @__PURE__ */ jsx95(
31377
31620
  "input",
31378
31621
  {
31379
31622
  type: "text",
@@ -31405,7 +31648,7 @@ var FloatTimeField = (props) => {
31405
31648
  readOnly: readonly
31406
31649
  }
31407
31650
  ),
31408
- (error2 || errors) && /* @__PURE__ */ jsx93("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31651
+ (error2 || errors) && /* @__PURE__ */ jsx95("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
31409
31652
  ] });
31410
31653
  }
31411
31654
  }
@@ -31413,8 +31656,8 @@ var FloatTimeField = (props) => {
31413
31656
  };
31414
31657
 
31415
31658
  // src/widgets/basic/html-field/html.tsx
31416
- import { useEffect as useEffect20, useRef as useRef16 } from "react";
31417
- import { jsx as jsx94 } from "react/jsx-runtime";
31659
+ import { useEffect as useEffect21, useRef as useRef16 } from "react";
31660
+ import { jsx as jsx96 } from "react/jsx-runtime";
31418
31661
  var HtmlField = (props) => {
31419
31662
  const {
31420
31663
  name: name2,
@@ -31428,16 +31671,16 @@ var HtmlField = (props) => {
31428
31671
  } = props;
31429
31672
  const divRef = useRef16(null);
31430
31673
  if (!isForm && !isEditTable) {
31431
- return /* @__PURE__ */ jsx94("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31674
+ return /* @__PURE__ */ jsx96("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
31432
31675
  }
31433
- return /* @__PURE__ */ jsx94(
31676
+ return /* @__PURE__ */ jsx96(
31434
31677
  Controller,
31435
31678
  {
31436
31679
  name: name2 ?? "",
31437
31680
  control: methods?.control,
31438
31681
  defaultValue,
31439
31682
  render: ({ field: { onChange: fieldOnChange, value: value2 } }) => {
31440
- useEffect20(() => {
31683
+ useEffect21(() => {
31441
31684
  if (divRef.current && divRef.current.innerHTML !== value2) {
31442
31685
  divRef.current.innerHTML = value2 || "";
31443
31686
  }
@@ -31449,7 +31692,7 @@ var HtmlField = (props) => {
31449
31692
  onChange2(newValue, "");
31450
31693
  }
31451
31694
  };
31452
- return /* @__PURE__ */ jsx94(
31695
+ return /* @__PURE__ */ jsx96(
31453
31696
  "div",
31454
31697
  {
31455
31698
  ref: divRef,
@@ -31468,28 +31711,28 @@ var HtmlField = (props) => {
31468
31711
  };
31469
31712
 
31470
31713
  // src/widgets/basic/image-field/image.tsx
31471
- import { jsx as jsx95 } from "react/jsx-runtime";
31714
+ import { jsx as jsx97 } from "react/jsx-runtime";
31472
31715
  var ImageField = (props) => {
31473
31716
  const { value, type, name: name2, baseURL } = props;
31474
31717
  if (!value) return null;
31475
31718
  if (type === "url") {
31476
- return /* @__PURE__ */ jsx95("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31719
+ return /* @__PURE__ */ jsx97("img", { src: `${baseURL}${value}`, width: 48, height: 48, alt: name2 });
31477
31720
  }
31478
- return /* @__PURE__ */ jsx95("div", { id: "qr-code", children: /* @__PURE__ */ jsx95("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31721
+ return /* @__PURE__ */ jsx97("div", { id: "qr-code", children: /* @__PURE__ */ jsx97("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
31479
31722
  };
31480
31723
 
31481
31724
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31482
- import React16, { useEffect as useEffect21, useMemo as useMemo10 } from "react";
31725
+ import React17, { useEffect as useEffect22, useMemo as useMemo11 } from "react";
31483
31726
 
31484
31727
  // src/widgets/basic/information-field/information.tsx
31485
- import { Fragment as Fragment28, jsx as jsx96, jsxs as jsxs63 } from "react/jsx-runtime";
31728
+ import { Fragment as Fragment28, jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
31486
31729
  var InfomationField = (props) => {
31487
31730
  const { value, isForm = false, showName = true, stringToColor } = props;
31488
31731
  if (!value || Array.isArray(value) && value.length === 0) {
31489
- return /* @__PURE__ */ jsx96(Fragment28, {});
31732
+ return /* @__PURE__ */ jsx98(Fragment28, {});
31490
31733
  }
31491
31734
  const inforValues = Array.isArray(value) ? value : [value];
31492
- return /* @__PURE__ */ jsx96("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx96(
31735
+ return /* @__PURE__ */ jsx98("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx98(
31493
31736
  AvatarField,
31494
31737
  {
31495
31738
  id: item.id,
@@ -31498,8 +31741,8 @@ var InfomationField = (props) => {
31498
31741
  stringToColor
31499
31742
  },
31500
31743
  item.id
31501
- )) : /* @__PURE__ */ jsxs63("div", { className: "flex gap-2 items-center w-max", children: [
31502
- /* @__PURE__ */ jsx96(
31744
+ )) : /* @__PURE__ */ jsxs65("div", { className: "flex gap-2 items-center w-max", children: [
31745
+ /* @__PURE__ */ jsx98(
31503
31746
  AvatarField,
31504
31747
  {
31505
31748
  avatarSrc: inforValues[0].image_256,
@@ -31509,12 +31752,12 @@ var InfomationField = (props) => {
31509
31752
  stringToColor
31510
31753
  }
31511
31754
  ),
31512
- showName && /* @__PURE__ */ jsx96("span", { className: "capitalize", children: inforValues[0].display_name })
31755
+ showName && /* @__PURE__ */ jsx98("span", { className: "capitalize", children: inforValues[0].display_name })
31513
31756
  ] }) });
31514
31757
  };
31515
31758
 
31516
31759
  // src/widgets/basic/many2many-tags-field/many2many-tags.tsx
31517
- import { jsx as jsx97, jsxs as jsxs64 } from "react/jsx-runtime";
31760
+ import { jsx as jsx99, jsxs as jsxs66 } from "react/jsx-runtime";
31518
31761
  var CustomMultiValue = ({ stringToColor, ...props }) => {
31519
31762
  const { selectProps, data, menuList } = props;
31520
31763
  const { relation } = selectProps;
@@ -31523,8 +31766,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31523
31766
  (childItem) => childItem?.is_display && childItem?.action?.res_model === relation
31524
31767
  )
31525
31768
  )?.[0]?.action?.id;
31526
- return /* @__PURE__ */ jsxs64("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31527
- /* @__PURE__ */ jsx97(
31769
+ return /* @__PURE__ */ jsxs66("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
31770
+ /* @__PURE__ */ jsx99(
31528
31771
  AvatarField,
31529
31772
  {
31530
31773
  id: data?.id,
@@ -31536,8 +31779,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31536
31779
  stringToColor
31537
31780
  }
31538
31781
  ),
31539
- /* @__PURE__ */ jsx97("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31540
- /* @__PURE__ */ jsx97(
31782
+ /* @__PURE__ */ jsx99("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
31783
+ /* @__PURE__ */ jsx99(
31541
31784
  "span",
31542
31785
  {
31543
31786
  className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
@@ -31545,7 +31788,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
31545
31788
  e3.stopPropagation();
31546
31789
  props.removeProps.onClick();
31547
31790
  },
31548
- children: /* @__PURE__ */ jsx97(CloseIcon, {})
31791
+ children: /* @__PURE__ */ jsx99(CloseIcon, {})
31549
31792
  }
31550
31793
  )
31551
31794
  ] });
@@ -31554,10 +31797,10 @@ var CustomMenuList = (props) => {
31554
31797
  const { options: options2, children, selectProps } = props;
31555
31798
  const { setIsShowModalMany2Many, searchable } = selectProps;
31556
31799
  const { t: t3 } = useI18n();
31557
- const limitedChildren = React16.Children.toArray(children).slice(0, 10);
31558
- return /* @__PURE__ */ jsxs64(components.MenuList, { ...props, className: "z-[99]", children: [
31800
+ const limitedChildren = React17.Children.toArray(children).slice(0, 10);
31801
+ return /* @__PURE__ */ jsxs66(components.MenuList, { ...props, className: "z-[99]", children: [
31559
31802
  limitedChildren,
31560
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs64(
31803
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs66(
31561
31804
  "button",
31562
31805
  {
31563
31806
  type: "button",
@@ -31602,7 +31845,7 @@ var Many2ManyTagField = (props) => {
31602
31845
  value: item.id,
31603
31846
  label: item.name ?? item.display_name
31604
31847
  })) : [];
31605
- return /* @__PURE__ */ jsx97(
31848
+ return /* @__PURE__ */ jsx99(
31606
31849
  InfomationField,
31607
31850
  {
31608
31851
  value: optionValue || null,
@@ -31611,7 +31854,7 @@ var Many2ManyTagField = (props) => {
31611
31854
  }
31612
31855
  );
31613
31856
  }
31614
- return /* @__PURE__ */ jsx97(
31857
+ return /* @__PURE__ */ jsx99(
31615
31858
  Controller,
31616
31859
  {
31617
31860
  name: name2 ?? "",
@@ -31621,12 +31864,12 @@ var Many2ManyTagField = (props) => {
31621
31864
  },
31622
31865
  render: ({ field, fieldState: { error: error2 } }) => {
31623
31866
  const { clearErrors } = methods;
31624
- useEffect21(() => {
31867
+ useEffect22(() => {
31625
31868
  if (field.value) {
31626
31869
  clearErrors(name2);
31627
31870
  }
31628
31871
  }, [field.value]);
31629
- const filteredValue = useMemo10(() => {
31872
+ const filteredValue = useMemo11(() => {
31630
31873
  if (!Array.isArray(field?.value)) return null;
31631
31874
  const fieldValueMapped = field.value.map((v) => ({
31632
31875
  value: v?.id,
@@ -31647,8 +31890,8 @@ var Many2ManyTagField = (props) => {
31647
31890
  onChange2?.(name2 ?? "", newValue);
31648
31891
  clearErrors(name2);
31649
31892
  };
31650
- return /* @__PURE__ */ jsxs64("div", { className: "group h-full overflow-y-auto", children: [
31651
- /* @__PURE__ */ jsx97(
31893
+ return /* @__PURE__ */ jsxs66("div", { className: "group h-full overflow-y-auto", children: [
31894
+ /* @__PURE__ */ jsx99(
31652
31895
  StateManagedSelect$1,
31653
31896
  {
31654
31897
  options: options2,
@@ -31727,7 +31970,7 @@ var Many2ManyTagField = (props) => {
31727
31970
  })
31728
31971
  },
31729
31972
  components: isUser ? {
31730
- MultiValue: (multiValueProps) => /* @__PURE__ */ jsx97(
31973
+ MultiValue: (multiValueProps) => /* @__PURE__ */ jsx99(
31731
31974
  CustomMultiValue,
31732
31975
  {
31733
31976
  ...multiValueProps,
@@ -31736,7 +31979,7 @@ var Many2ManyTagField = (props) => {
31736
31979
  ),
31737
31980
  IndicatorSeparator: () => null
31738
31981
  } : {
31739
- MenuList: (menuListProps) => /* @__PURE__ */ jsx97(
31982
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx99(
31740
31983
  CustomMenuList,
31741
31984
  {
31742
31985
  ...menuListProps,
@@ -31747,13 +31990,13 @@ var Many2ManyTagField = (props) => {
31747
31990
  }
31748
31991
  ),
31749
31992
  IndicatorSeparator: () => null,
31750
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx97(components.DropdownIndicator, { ...props2 }),
31751
- ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx97(components.ClearIndicator, { ...props2 })
31993
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx99(components.DropdownIndicator, { ...props2 }),
31994
+ ClearIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx99(components.ClearIndicator, { ...props2 })
31752
31995
  },
31753
31996
  required: !invisible && required
31754
31997
  }
31755
31998
  ),
31756
- !isEditTable && error2 && /* @__PURE__ */ jsx97("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31999
+ !isEditTable && error2 && /* @__PURE__ */ jsx99("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31757
32000
  ] });
31758
32001
  }
31759
32002
  }
@@ -31761,8 +32004,8 @@ var Many2ManyTagField = (props) => {
31761
32004
  };
31762
32005
 
31763
32006
  // src/widgets/basic/monetary-field/monetary.tsx
31764
- import { useEffect as useEffect22 } from "react";
31765
- import { Fragment as Fragment29, jsx as jsx98, jsxs as jsxs65 } from "react/jsx-runtime";
32007
+ import { useEffect as useEffect23 } from "react";
32008
+ import { Fragment as Fragment29, jsx as jsx100, jsxs as jsxs67 } from "react/jsx-runtime";
31766
32009
  var MonetaryField = (props) => {
31767
32010
  const { t: t3 } = useI18n();
31768
32011
  const {
@@ -31779,29 +32022,30 @@ var MonetaryField = (props) => {
31779
32022
  formValues,
31780
32023
  widget,
31781
32024
  placeholder,
31782
- isEditTable
32025
+ isEditTable,
32026
+ symbol = "VND"
31783
32027
  } = props;
31784
32028
  if (isForm && name2 === "amount_residual") {
31785
- return /* @__PURE__ */ jsxs65("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
31786
- /* @__PURE__ */ jsxs65("span", { className: "font-semibold", children: [
32029
+ return /* @__PURE__ */ jsxs67("div", { className: "flex justify-end gap-x-4 gap-y-2 ml-auto mt-2 lg:mt-5", children: [
32030
+ /* @__PURE__ */ jsxs67("span", { className: "font-semibold", children: [
31787
32031
  string,
31788
32032
  ":"
31789
32033
  ] }),
31790
- /* @__PURE__ */ jsx98("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
32034
+ /* @__PURE__ */ jsx100("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} ${symbol}` })
31791
32035
  ] });
31792
32036
  }
31793
32037
  if (!isForm) {
31794
- const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
32038
+ const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : symbol;
31795
32039
  if (widget === "monetary" && !formValues?.currency_id) {
31796
- return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
32040
+ return /* @__PURE__ */ jsx100("span", { children: `${formatNumberOnly(
31797
32041
  parseFloat(String(value ?? defaultValue))
31798
- )} VND` });
32042
+ )} ${symbol}` });
31799
32043
  }
31800
- return /* @__PURE__ */ jsx98("span", { children: `${formatNumberOnly(
32044
+ return /* @__PURE__ */ jsx100("span", { children: `${formatNumberOnly(
31801
32045
  parseFloat(value ?? defaultValue)
31802
32046
  )} ${currencySymbol}` });
31803
32047
  }
31804
- return /* @__PURE__ */ jsx98(
32048
+ return /* @__PURE__ */ jsx100(
31805
32049
  Controller,
31806
32050
  {
31807
32051
  name: name2 ?? "",
@@ -31815,13 +32059,13 @@ var MonetaryField = (props) => {
31815
32059
  fieldState: { error: error2 }
31816
32060
  }) => {
31817
32061
  const { setError, clearErrors } = methods;
31818
- useEffect22(() => {
32062
+ useEffect23(() => {
31819
32063
  if (value2 !== void 0 && value2 !== null && !isNaN(value2)) {
31820
32064
  clearErrors(name2);
31821
32065
  }
31822
32066
  }, [value2]);
31823
- return /* @__PURE__ */ jsxs65(Fragment29, { children: [
31824
- /* @__PURE__ */ jsx98(
32067
+ return /* @__PURE__ */ jsxs67(Fragment29, { children: [
32068
+ /* @__PURE__ */ jsx100(
31825
32069
  "input",
31826
32070
  {
31827
32071
  value: formatNumberOnly(value2),
@@ -31859,7 +32103,7 @@ var MonetaryField = (props) => {
31859
32103
  `
31860
32104
  }
31861
32105
  ),
31862
- !isEditTable && error2 && /* @__PURE__ */ jsx98("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32106
+ !isEditTable && error2 && /* @__PURE__ */ jsx100("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
31863
32107
  ] });
31864
32108
  }
31865
32109
  }
@@ -31867,14 +32111,14 @@ var MonetaryField = (props) => {
31867
32111
  };
31868
32112
 
31869
32113
  // src/widgets/basic/paid-badged-field/paid-badged.tsx
31870
- import { jsx as jsx99 } from "react/jsx-runtime";
32114
+ import { jsx as jsx101 } from "react/jsx-runtime";
31871
32115
  var PaidBadgedField = () => {
31872
- return /* @__PURE__ */ jsx99("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx99(PaidIcon, {}) });
32116
+ return /* @__PURE__ */ jsx101("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx101(PaidIcon, {}) });
31873
32117
  };
31874
32118
 
31875
32119
  // src/widgets/basic/priority-field/rating-star.tsx
31876
- import React17, { useEffect as useEffect23, useState as useState20 } from "react";
31877
- import { jsx as jsx100, jsxs as jsxs66 } from "react/jsx-runtime";
32120
+ import React18, { useEffect as useEffect24, useState as useState21 } from "react";
32121
+ import { jsx as jsx102, jsxs as jsxs68 } from "react/jsx-runtime";
31878
32122
  var RatingStarField = (props) => {
31879
32123
  const {
31880
32124
  label,
@@ -31883,9 +32127,9 @@ var RatingStarField = (props) => {
31883
32127
  onSelectPriority,
31884
32128
  id
31885
32129
  } = props;
31886
- const [rating, setRating] = useState20(defaultValue);
31887
- const [hover, setHover] = useState20(0);
31888
- useEffect23(() => {
32130
+ const [rating, setRating] = useState21(defaultValue);
32131
+ const [hover, setHover] = useState21(0);
32132
+ useEffect24(() => {
31889
32133
  setRating(defaultValue);
31890
32134
  }, [defaultValue]);
31891
32135
  const handleClick = (value) => {
@@ -31909,7 +32153,7 @@ var RatingStarField = (props) => {
31909
32153
  setHover(0);
31910
32154
  setRating(0);
31911
32155
  };
31912
- return /* @__PURE__ */ jsx100(
32156
+ return /* @__PURE__ */ jsx102(
31913
32157
  "div",
31914
32158
  {
31915
32159
  className: "flex gap-1 cursor-pointer w-fit",
@@ -31919,17 +32163,17 @@ var RatingStarField = (props) => {
31919
32163
  const starValue = index4 + 1;
31920
32164
  const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
31921
32165
  const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
31922
- return /* @__PURE__ */ jsxs66(React17.Fragment, { children: [
31923
- /* @__PURE__ */ jsx100(
32166
+ return /* @__PURE__ */ jsxs68(React18.Fragment, { children: [
32167
+ /* @__PURE__ */ jsx102(
31924
32168
  "div",
31925
32169
  {
31926
32170
  onMouseEnter: () => handleHover(starValue),
31927
32171
  onClick: () => handleClick(starValue),
31928
32172
  "data-tooltip-id": `${id}-${starValue}`,
31929
- children: /* @__PURE__ */ jsx100(StarIcon, { fill: fillColor, stroke: strokeColor })
32173
+ children: /* @__PURE__ */ jsx102(StarIcon, { fill: fillColor, stroke: strokeColor })
31930
32174
  }
31931
32175
  ),
31932
- /* @__PURE__ */ jsx100(
32176
+ /* @__PURE__ */ jsx102(
31933
32177
  M,
31934
32178
  {
31935
32179
  className: "z-50",
@@ -31945,7 +32189,7 @@ var RatingStarField = (props) => {
31945
32189
  };
31946
32190
 
31947
32191
  // src/widgets/basic/priority-field/priority.tsx
31948
- import { jsx as jsx101 } from "react/jsx-runtime";
32192
+ import { jsx as jsx103 } from "react/jsx-runtime";
31949
32193
  var PriorityField = (props) => {
31950
32194
  const {
31951
32195
  isForm,
@@ -31961,7 +32205,7 @@ var PriorityField = (props) => {
31961
32205
  const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
31962
32206
  const defaultPriority = parseInt(value) + 1;
31963
32207
  if (!isForm) {
31964
- return /* @__PURE__ */ jsx101(
32208
+ return /* @__PURE__ */ jsx103(
31965
32209
  RatingStarField,
31966
32210
  {
31967
32211
  label,
@@ -31972,7 +32216,7 @@ var PriorityField = (props) => {
31972
32216
  }
31973
32217
  );
31974
32218
  }
31975
- return /* @__PURE__ */ jsx101(
32219
+ return /* @__PURE__ */ jsx103(
31976
32220
  Controller,
31977
32221
  {
31978
32222
  name: name ?? "",
@@ -31982,7 +32226,7 @@ var PriorityField = (props) => {
31982
32226
  field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
31983
32227
  onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
31984
32228
  };
31985
- return /* @__PURE__ */ jsx101(
32229
+ return /* @__PURE__ */ jsx103(
31986
32230
  RatingStarField,
31987
32231
  {
31988
32232
  label,
@@ -31998,8 +32242,8 @@ var PriorityField = (props) => {
31998
32242
  };
31999
32243
 
32000
32244
  // src/widgets/basic/radio-group-field/radio-group.tsx
32001
- import { useEffect as useEffect24 } from "react";
32002
- import { jsx as jsx102, jsxs as jsxs67 } from "react/jsx-runtime";
32245
+ import { useEffect as useEffect25 } from "react";
32246
+ import { jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32003
32247
  var RadioGroupField = (props) => {
32004
32248
  const {
32005
32249
  name: name2,
@@ -32012,19 +32256,19 @@ var RadioGroupField = (props) => {
32012
32256
  onChange: onChange2,
32013
32257
  setValue
32014
32258
  } = props;
32015
- useEffect24(() => {
32259
+ useEffect25(() => {
32016
32260
  if (selection?.length > 0) {
32017
32261
  if (setValue) setValue(name2, selection?.[0]?.[0]);
32018
32262
  }
32019
32263
  }, [selection, name2, setValue]);
32020
32264
  if (!methods) return null;
32021
- return /* @__PURE__ */ jsx102(
32265
+ return /* @__PURE__ */ jsx104(
32022
32266
  Controller,
32023
32267
  {
32024
32268
  name: name2 ?? "",
32025
32269
  control: methods.control,
32026
- render: ({ field }) => /* @__PURE__ */ jsx102("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-1", children: [
32027
- /* @__PURE__ */ jsx102(
32270
+ render: ({ field }) => /* @__PURE__ */ jsx104("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs69("div", { className: "flex items-center gap-1", children: [
32271
+ /* @__PURE__ */ jsx104(
32028
32272
  "input",
32029
32273
  {
32030
32274
  type: "radio",
@@ -32043,7 +32287,7 @@ var RadioGroupField = (props) => {
32043
32287
  className: "custom-radio"
32044
32288
  }
32045
32289
  ),
32046
- /* @__PURE__ */ jsx102("label", { htmlFor: String(select[0]), children: select[1] })
32290
+ /* @__PURE__ */ jsx104("label", { htmlFor: String(select[0]), children: select[1] })
32047
32291
  ] }, select[0])) })
32048
32292
  }
32049
32293
  );
@@ -32051,7 +32295,7 @@ var RadioGroupField = (props) => {
32051
32295
 
32052
32296
  // src/widgets/basic/remaining-days-field/remaining-days.tsx
32053
32297
  var import_moment3 = __toESM(require_moment());
32054
- import { jsx as jsx103, jsxs as jsxs68 } from "react/jsx-runtime";
32298
+ import { jsx as jsx105, jsxs as jsxs70 } from "react/jsx-runtime";
32055
32299
  var RemainingDaysField = (props) => {
32056
32300
  const {
32057
32301
  value,
@@ -32062,14 +32306,14 @@ var RemainingDaysField = (props) => {
32062
32306
  if (!value) return null;
32063
32307
  const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
32064
32308
  const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
32065
- return /* @__PURE__ */ jsxs68("div", { className: isForm ? "mb-4" : "", children: [
32066
- /* @__PURE__ */ jsx103(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32067
- /* @__PURE__ */ jsx103(
32309
+ return /* @__PURE__ */ jsxs70("div", { className: isForm ? "mb-4" : "", children: [
32310
+ /* @__PURE__ */ jsx105(M, { id: `remainingDays_${value}`, place: "top", content: string }),
32311
+ /* @__PURE__ */ jsx105(
32068
32312
  "div",
32069
32313
  {
32070
32314
  "data-tooltip-id": `remainingDays_${value}`,
32071
32315
  className: "flex items-center w-fit cursor-context-menu",
32072
- children: /* @__PURE__ */ jsx103(
32316
+ children: /* @__PURE__ */ jsx105(
32073
32317
  "div",
32074
32318
  {
32075
32319
  className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
@@ -32082,7 +32326,7 @@ var RemainingDaysField = (props) => {
32082
32326
  };
32083
32327
 
32084
32328
  // src/widgets/basic/select-dropdown-field/select-dropdown.tsx
32085
- import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs69 } from "react/jsx-runtime";
32329
+ import { Fragment as Fragment30, jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
32086
32330
  var SelectDropdownField = (props) => {
32087
32331
  const { t: t3 } = useI18n();
32088
32332
  const {
@@ -32104,9 +32348,9 @@ var SelectDropdownField = (props) => {
32104
32348
  label: val[1]
32105
32349
  })) : [];
32106
32350
  if (!isForm && !isEditTable) {
32107
- return /* @__PURE__ */ jsx104("span", { children: options2?.find((item) => item?.value === value)?.label });
32351
+ return /* @__PURE__ */ jsx106("span", { children: options2?.find((item) => item?.value === value)?.label });
32108
32352
  } else {
32109
- return /* @__PURE__ */ jsx104(
32353
+ return /* @__PURE__ */ jsx106(
32110
32354
  Controller,
32111
32355
  {
32112
32356
  name: name2 || "",
@@ -32133,8 +32377,8 @@ var SelectDropdownField = (props) => {
32133
32377
  value: defaultValue || null,
32134
32378
  required: !invisible && required
32135
32379
  };
32136
- return /* @__PURE__ */ jsxs69(Fragment30, { children: [
32137
- /* @__PURE__ */ jsx104("div", { className: `group ${isEditTable ? "h-full" : ""}`, children: /* @__PURE__ */ jsx104(
32380
+ return /* @__PURE__ */ jsxs71(Fragment30, { children: [
32381
+ /* @__PURE__ */ jsx106("div", { className: `group ${isEditTable ? "h-full" : ""}`, children: /* @__PURE__ */ jsx106(
32138
32382
  StateManagedSelect$1,
32139
32383
  {
32140
32384
  ...commonProps,
@@ -32191,12 +32435,12 @@ var SelectDropdownField = (props) => {
32191
32435
  menuPortalTarget: typeof window !== "undefined" ? document.body : null,
32192
32436
  components: {
32193
32437
  IndicatorSeparator: () => null,
32194
- DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx104(components.DropdownIndicator, { ...props2 })
32438
+ DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx106(components.DropdownIndicator, { ...props2 })
32195
32439
  },
32196
32440
  noOptionsMessage: () => t3("no-available")
32197
32441
  }
32198
32442
  ) }),
32199
- !isEditTable && error2 && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32443
+ !isEditTable && error2 && /* @__PURE__ */ jsx106("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32200
32444
  ] });
32201
32445
  }
32202
32446
  }
@@ -32205,7 +32449,7 @@ var SelectDropdownField = (props) => {
32205
32449
  };
32206
32450
 
32207
32451
  // src/widgets/basic/textarea-field/textarea.tsx
32208
- import { jsx as jsx105 } from "react/jsx-runtime";
32452
+ import { jsx as jsx107 } from "react/jsx-runtime";
32209
32453
  var TextAreaField = (props) => {
32210
32454
  const {
32211
32455
  methods,
@@ -32229,9 +32473,9 @@ var TextAreaField = (props) => {
32229
32473
  }
32230
32474
  }) : {};
32231
32475
  if (!isForm) {
32232
- return /* @__PURE__ */ jsx105("span", { children: value && typeof value === "object" ? value.display_name : value });
32476
+ return /* @__PURE__ */ jsx107("span", { children: value && typeof value === "object" ? value.display_name : value });
32233
32477
  }
32234
- return /* @__PURE__ */ jsx105(
32478
+ return /* @__PURE__ */ jsx107(
32235
32479
  "textarea",
32236
32480
  {
32237
32481
  ...formProps,
@@ -32247,7 +32491,7 @@ var TextAreaField = (props) => {
32247
32491
  };
32248
32492
 
32249
32493
  // src/widgets/basic/toggle-button-field/toggle-button.tsx
32250
- import { jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
32494
+ import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
32251
32495
  var ToggleButtonField = (props) => {
32252
32496
  const {
32253
32497
  name: name2,
@@ -32257,13 +32501,13 @@ var ToggleButtonField = (props) => {
32257
32501
  onChange: onChange2,
32258
32502
  methods
32259
32503
  } = props;
32260
- return /* @__PURE__ */ jsx106(
32504
+ return /* @__PURE__ */ jsx108(
32261
32505
  Controller,
32262
32506
  {
32263
32507
  name: name2 ?? "",
32264
32508
  control: methods?.control,
32265
- render: ({ field }) => /* @__PURE__ */ jsx106("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs70("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32266
- /* @__PURE__ */ jsx106(
32509
+ render: ({ field }) => /* @__PURE__ */ jsx108("div", { className: "inline-flex items-center", children: /* @__PURE__ */ jsxs72("label", { className: "relative inline-block w-8 h-5 cursor-pointer", children: [
32510
+ /* @__PURE__ */ jsx108(
32267
32511
  "input",
32268
32512
  {
32269
32513
  ...field,
@@ -32282,7 +32526,7 @@ var ToggleButtonField = (props) => {
32282
32526
  checked: field.value ?? false
32283
32527
  }
32284
32528
  ),
32285
- /* @__PURE__ */ jsx106(
32529
+ /* @__PURE__ */ jsx108(
32286
32530
  "span",
32287
32531
  {
32288
32532
  style: {
@@ -32292,7 +32536,7 @@ var ToggleButtonField = (props) => {
32292
32536
  },
32293
32537
  className: `rounded-full transition duration-300
32294
32538
  `,
32295
- children: /* @__PURE__ */ jsx106(
32539
+ children: /* @__PURE__ */ jsx108(
32296
32540
  "span",
32297
32541
  {
32298
32542
  style: {
@@ -32316,8 +32560,8 @@ var ToggleButtonField = (props) => {
32316
32560
  };
32317
32561
 
32318
32562
  // src/widgets/basic/integer-field/integer.tsx
32319
- import { useEffect as useEffect25, useRef as useRef17, useState as useState21 } from "react";
32320
- import { Fragment as Fragment31, jsx as jsx107, jsxs as jsxs71 } from "react/jsx-runtime";
32563
+ import { useEffect as useEffect26, useRef as useRef17, useState as useState22 } from "react";
32564
+ import { Fragment as Fragment31, jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
32321
32565
  var IntegerField = (props) => {
32322
32566
  const {
32323
32567
  name: name2,
@@ -32336,9 +32580,9 @@ var IntegerField = (props) => {
32336
32580
  const { t: t3 } = useI18n();
32337
32581
  if (!isForm && !isEditTable) {
32338
32582
  const displayValue = value ?? defaultValue;
32339
- return /* @__PURE__ */ jsx107("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32583
+ return /* @__PURE__ */ jsx109("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
32340
32584
  }
32341
- return /* @__PURE__ */ jsx107(
32585
+ return /* @__PURE__ */ jsx109(
32342
32586
  Controller,
32343
32587
  {
32344
32588
  name: name2 || "",
@@ -32355,10 +32599,10 @@ var IntegerField = (props) => {
32355
32599
  const isDirtyRef = useRef17(false);
32356
32600
  const inputRef = useRef17(null);
32357
32601
  const lastCommittedValueRef = useRef17(null);
32358
- const [inputValue, setInputValue] = useState21(
32602
+ const [inputValue, setInputValue] = useState22(
32359
32603
  value2 !== void 0 && value2 !== null ? String(value2) : ""
32360
32604
  );
32361
- useEffect25(() => {
32605
+ useEffect26(() => {
32362
32606
  if (value2 !== void 0 && value2 !== null) {
32363
32607
  setInputValue(String(value2));
32364
32608
  clearErrors(name2);
@@ -32416,8 +32660,8 @@ var IntegerField = (props) => {
32416
32660
  inputRef.current?.blur();
32417
32661
  clearErrors(name2);
32418
32662
  };
32419
- return /* @__PURE__ */ jsxs71(Fragment31, { children: [
32420
- /* @__PURE__ */ jsx107(
32663
+ return /* @__PURE__ */ jsxs73(Fragment31, { children: [
32664
+ /* @__PURE__ */ jsx109(
32421
32665
  "input",
32422
32666
  {
32423
32667
  ref: inputRef,
@@ -32452,7 +32696,7 @@ var IntegerField = (props) => {
32452
32696
  `
32453
32697
  }
32454
32698
  ),
32455
- error2 && !isEditTable && /* @__PURE__ */ jsx107("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32699
+ error2 && !isEditTable && /* @__PURE__ */ jsx109("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
32456
32700
  ] });
32457
32701
  }
32458
32702
  }
@@ -32460,7 +32704,7 @@ var IntegerField = (props) => {
32460
32704
  };
32461
32705
 
32462
32706
  // src/widgets/basic/status-dropdown-field/status-dropdown.tsx
32463
- import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
32707
+ import { jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
32464
32708
  var StatusDropdownField = (props) => {
32465
32709
  const {
32466
32710
  buttonRef,
@@ -32472,13 +32716,13 @@ var StatusDropdownField = (props) => {
32472
32716
  handleClick,
32473
32717
  colors: colors2
32474
32718
  } = props;
32475
- return /* @__PURE__ */ jsxs72(
32719
+ return /* @__PURE__ */ jsxs74(
32476
32720
  "div",
32477
32721
  {
32478
32722
  ref: buttonRef,
32479
32723
  className: isForm ? "absolute top-7 right-6 z-10" : void 0,
32480
32724
  children: [
32481
- /* @__PURE__ */ jsx108(
32725
+ /* @__PURE__ */ jsx110(
32482
32726
  "button",
32483
32727
  {
32484
32728
  type: "button",
@@ -32486,23 +32730,23 @@ var StatusDropdownField = (props) => {
32486
32730
  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"}`
32487
32731
  }
32488
32732
  ),
32489
- isOpen && /* @__PURE__ */ jsx108("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) => {
32733
+ isOpen && /* @__PURE__ */ jsx110("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
32490
32734
  const isActive = item[0] == state;
32491
- return /* @__PURE__ */ jsxs72(
32735
+ return /* @__PURE__ */ jsxs74(
32492
32736
  "div",
32493
32737
  {
32494
32738
  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" : ""}`,
32495
32739
  onClick: () => handleClick(item[0]),
32496
32740
  children: [
32497
- /* @__PURE__ */ jsx108("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx108(CheckIcon, {}) }),
32498
- /* @__PURE__ */ jsxs72("div", { className: "flex items-center gap-2", children: [
32499
- /* @__PURE__ */ jsx108(
32741
+ /* @__PURE__ */ jsx110("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx110(CheckIcon, {}) }),
32742
+ /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2", children: [
32743
+ /* @__PURE__ */ jsx110(
32500
32744
  "div",
32501
32745
  {
32502
32746
  className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
32503
32747
  }
32504
32748
  ),
32505
- /* @__PURE__ */ jsx108("span", { className: "text-sm", children: item[1] })
32749
+ /* @__PURE__ */ jsx110("span", { className: "text-sm", children: item[1] })
32506
32750
  ] })
32507
32751
  ]
32508
32752
  },
@@ -32516,8 +32760,8 @@ var StatusDropdownField = (props) => {
32516
32760
 
32517
32761
  // src/widgets/basic/many2many-field/many2many.tsx
32518
32762
  import { createPortal as createPortal5 } from "react-dom";
32519
- import { useEffect as useEffect26 } from "react";
32520
- import { jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
32763
+ import { useEffect as useEffect27 } from "react";
32764
+ import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
32521
32765
  var Many2ManyField = (props) => {
32522
32766
  const { t: t3 } = useI18n();
32523
32767
  const {
@@ -32576,7 +32820,7 @@ var Many2ManyField = (props) => {
32576
32820
  clearSearch
32577
32821
  } = searchController;
32578
32822
  const { handleCheckBoxAll, checkedAll, selectedRowKeysRef } = tableHeadController;
32579
- useEffect26(() => {
32823
+ useEffect27(() => {
32580
32824
  const groupItems = Array.isArray(selectedTags) ? selectedTags.filter((item) => item.type === "group_by") : [];
32581
32825
  if (groupItems?.length > 0) {
32582
32826
  typeof setPageLimit === "function" && setPageLimit(80);
@@ -32591,7 +32835,7 @@ var Many2ManyField = (props) => {
32591
32835
  };
32592
32836
  }, [selectedTags]);
32593
32837
  return createPortal5(
32594
- /* @__PURE__ */ jsxs73(
32838
+ /* @__PURE__ */ jsxs75(
32595
32839
  "div",
32596
32840
  {
32597
32841
  style: {
@@ -32599,8 +32843,8 @@ var Many2ManyField = (props) => {
32599
32843
  },
32600
32844
  className: "fixed bottom-0 left-0 right-0 top-0",
32601
32845
  children: [
32602
- /* @__PURE__ */ jsx109("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32603
- /* @__PURE__ */ jsx109("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs73(
32846
+ /* @__PURE__ */ jsx111("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
32847
+ /* @__PURE__ */ jsx111("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs75(
32604
32848
  "div",
32605
32849
  {
32606
32850
  style: {
@@ -32608,12 +32852,12 @@ var Many2ManyField = (props) => {
32608
32852
  },
32609
32853
  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",
32610
32854
  children: [
32611
- /* @__PURE__ */ jsxs73("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32612
- /* @__PURE__ */ jsx109("div", { className: "text-[20px] font-semibold", children: title }),
32613
- /* @__PURE__ */ jsx109("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx109(CloseIcon, {}) })
32855
+ /* @__PURE__ */ jsxs75("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
32856
+ /* @__PURE__ */ jsx111("div", { className: "text-[20px] font-semibold", children: title }),
32857
+ /* @__PURE__ */ jsx111("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx111(CloseIcon, {}) })
32614
32858
  ] }),
32615
- /* @__PURE__ */ jsxs73("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32616
- /* @__PURE__ */ jsx109("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx109(
32859
+ /* @__PURE__ */ jsxs75("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
32860
+ /* @__PURE__ */ jsx111("div", { className: "col-span-2 flex-1", children: /* @__PURE__ */ jsx111(
32617
32861
  Search,
32618
32862
  {
32619
32863
  removeSearchItems,
@@ -32647,7 +32891,7 @@ var Many2ManyField = (props) => {
32647
32891
  groupByList
32648
32892
  }
32649
32893
  ) }),
32650
- /* @__PURE__ */ jsx109(
32894
+ /* @__PURE__ */ jsx111(
32651
32895
  PaginationView,
32652
32896
  {
32653
32897
  className: "pagination-bar col-span-1 justify-end flex-1",
@@ -32664,20 +32908,20 @@ var Many2ManyField = (props) => {
32664
32908
  }
32665
32909
  )
32666
32910
  ] }),
32667
- !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx109("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx109("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx109(
32911
+ !isLoading && isFetched || isPlaceholderData ? /* @__PURE__ */ jsx111("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx111("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx111(
32668
32912
  "div",
32669
32913
  {
32670
32914
  className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
32671
- children: /* @__PURE__ */ jsx109("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx109("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx109(
32915
+ children: /* @__PURE__ */ jsx111("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx111("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx111(
32672
32916
  "div",
32673
32917
  {
32674
32918
  className: `flex w-full items-center h-full overflow-auto `,
32675
- children: /* @__PURE__ */ jsx109("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs73(
32919
+ children: /* @__PURE__ */ jsx111("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs75(
32676
32920
  "table",
32677
32921
  {
32678
32922
  className: `relative w-full bg-white custom-dropdown `,
32679
32923
  children: [
32680
- /* @__PURE__ */ jsx109(
32924
+ /* @__PURE__ */ jsx111(
32681
32925
  TableHead,
32682
32926
  {
32683
32927
  columns,
@@ -32687,7 +32931,7 @@ var Many2ManyField = (props) => {
32687
32931
  handleCheckBoxAll
32688
32932
  }
32689
32933
  ),
32690
- rows?.length > 0 ? /* @__PURE__ */ jsx109(
32934
+ rows?.length > 0 ? /* @__PURE__ */ jsx111(
32691
32935
  TableBody,
32692
32936
  {
32693
32937
  tableGroupController,
@@ -32727,16 +32971,16 @@ var Many2ManyField = (props) => {
32727
32971
  checkedAll,
32728
32972
  context
32729
32973
  }
32730
- ) : /* @__PURE__ */ jsx109("tr", { children: /* @__PURE__ */ jsx109(
32974
+ ) : /* @__PURE__ */ jsx111("tr", { children: /* @__PURE__ */ jsx111(
32731
32975
  "td",
32732
32976
  {
32733
32977
  className: "w-full",
32734
32978
  colSpan: columns?.length + 2,
32735
- children: /* @__PURE__ */ jsx109(
32979
+ children: /* @__PURE__ */ jsx111(
32736
32980
  "div",
32737
32981
  {
32738
32982
  className: `flex flex-col items-center justify-center gap-3 py-6`,
32739
- children: /* @__PURE__ */ jsx109(EmptyTable, {})
32983
+ children: /* @__PURE__ */ jsx111(EmptyTable, {})
32740
32984
  }
32741
32985
  )
32742
32986
  }
@@ -32747,9 +32991,9 @@ var Many2ManyField = (props) => {
32747
32991
  }
32748
32992
  ) }) })
32749
32993
  }
32750
- ) }) }) : /* @__PURE__ */ jsx109(LayerLoading, {}),
32751
- /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-2 mt-auto", children: [
32752
- isDisplayCheckbox && /* @__PURE__ */ jsx109(
32994
+ ) }) }) : /* @__PURE__ */ jsx111(LayerLoading, {}),
32995
+ /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-2 mt-auto", children: [
32996
+ isDisplayCheckbox && /* @__PURE__ */ jsx111(
32753
32997
  "button",
32754
32998
  {
32755
32999
  disabled: selectedRowKeys?.length === 0,
@@ -32759,7 +33003,7 @@ var Many2ManyField = (props) => {
32759
33003
  children: t3("choose")
32760
33004
  }
32761
33005
  ),
32762
- optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx109(
33006
+ optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx111(
32763
33007
  "button",
32764
33008
  {
32765
33009
  type: "button",
@@ -32775,7 +33019,7 @@ var Many2ManyField = (props) => {
32775
33019
  children: t3("new")
32776
33020
  }
32777
33021
  ),
32778
- /* @__PURE__ */ jsx109(
33022
+ /* @__PURE__ */ jsx111(
32779
33023
  "button",
32780
33024
  {
32781
33025
  type: "button",
@@ -32796,16 +33040,16 @@ var Many2ManyField = (props) => {
32796
33040
  };
32797
33041
 
32798
33042
  // src/widgets/basic/many2one-field/many2one.tsx
32799
- import React18, { useEffect as useEffect27 } from "react";
32800
- import { Fragment as Fragment32, jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
33043
+ import React19, { useEffect as useEffect28 } from "react";
33044
+ import { Fragment as Fragment32, jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
32801
33045
  var CustomMenuList2 = (props) => {
32802
33046
  const { t: t3 } = useI18n();
32803
33047
  const { options: options2, children, selectProps } = props;
32804
33048
  const { setIsShowModalMany2Many, searchable } = selectProps;
32805
- const limitedChildren = React18.Children.toArray(children).slice(0, 10);
32806
- return /* @__PURE__ */ jsxs74(components.MenuList, { ...props, className: "z-[99]", children: [
33049
+ const limitedChildren = React19.Children.toArray(children).slice(0, 10);
33050
+ return /* @__PURE__ */ jsxs76(components.MenuList, { ...props, className: "z-[99]", children: [
32807
33051
  limitedChildren,
32808
- options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs74(
33052
+ options2?.length > 0 && (options2?.length > 10 || searchable) && /* @__PURE__ */ jsxs76(
32809
33053
  "button",
32810
33054
  {
32811
33055
  type: "button",
@@ -32848,14 +33092,14 @@ var Many2OneField = (props) => {
32848
33092
  const { t: t3 } = useI18n();
32849
33093
  if (!isForm && !isEditTable) {
32850
33094
  const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue?.id : propValue;
32851
- return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33095
+ return /* @__PURE__ */ jsxs76(Fragment32, { children: [
32852
33096
  allowShowDetail && renderDetail({
32853
33097
  idToolTip: String(name2) + Number(index4),
32854
33098
  model: options2?.model ?? relation,
32855
33099
  context: contextObject,
32856
33100
  idForm: id
32857
33101
  }),
32858
- /* @__PURE__ */ jsx110(
33102
+ /* @__PURE__ */ jsx112(
32859
33103
  "span",
32860
33104
  {
32861
33105
  className: "cursor-pointer",
@@ -32866,20 +33110,20 @@ var Many2OneField = (props) => {
32866
33110
  )
32867
33111
  ] });
32868
33112
  }
32869
- return /* @__PURE__ */ jsxs74(Fragment32, { children: [
33113
+ return /* @__PURE__ */ jsxs76(Fragment32, { children: [
32870
33114
  allowShowDetail && renderDetail({
32871
33115
  idToolTip: String(name2),
32872
33116
  model: options2?.model ?? relation,
32873
33117
  context: contextObject,
32874
33118
  idForm: methods?.getValues(name2)?.id || methods?.getValues(name2)
32875
33119
  }),
32876
- /* @__PURE__ */ jsx110(
33120
+ /* @__PURE__ */ jsx112(
32877
33121
  "div",
32878
33122
  {
32879
33123
  id: name2,
32880
33124
  "data-tooltip-id": name2,
32881
33125
  className: `inline-block w-full h-full ${readonly && "cursor-not-allowed"}`,
32882
- children: /* @__PURE__ */ jsx110(
33126
+ children: /* @__PURE__ */ jsx112(
32883
33127
  Controller,
32884
33128
  {
32885
33129
  name: name2 ?? "",
@@ -32899,13 +33143,13 @@ var Many2OneField = (props) => {
32899
33143
  const selectedOption = isForm && options2?.service && options2?.type && options2?.model ? tempSelectedOption : tempSelectedOption && options2?.length > 0 ? options2.find(
32900
33144
  (option) => option.value === tempSelectedOption?.value
32901
33145
  ) : currentValue ? currentValue : null;
32902
- useEffect27(() => {
33146
+ useEffect28(() => {
32903
33147
  if (error2 && selectedOption) {
32904
33148
  methods?.clearErrors(name2);
32905
33149
  }
32906
33150
  }, [selectedOption]);
32907
- return /* @__PURE__ */ jsxs74("div", { className: "h-full", children: [
32908
- /* @__PURE__ */ jsx110(
33151
+ return /* @__PURE__ */ jsxs76("div", { className: "h-full", children: [
33152
+ /* @__PURE__ */ jsx112(
32909
33153
  StateManagedSelect$1,
32910
33154
  {
32911
33155
  menuShouldScrollIntoView: false,
@@ -32982,7 +33226,7 @@ var Many2OneField = (props) => {
32982
33226
  })
32983
33227
  },
32984
33228
  components: {
32985
- MenuList: (menuListProps) => /* @__PURE__ */ jsx110(
33229
+ MenuList: (menuListProps) => /* @__PURE__ */ jsx112(
32986
33230
  CustomMenuList2,
32987
33231
  {
32988
33232
  ...menuListProps,
@@ -32993,13 +33237,13 @@ var Many2OneField = (props) => {
32993
33237
  }
32994
33238
  ),
32995
33239
  IndicatorSeparator: () => null,
32996
- DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx110(components.DropdownIndicator, { ...props2 })
33240
+ DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx112(components.DropdownIndicator, { ...props2 })
32997
33241
  },
32998
33242
  isDisabled: readonly,
32999
33243
  noOptionsMessage: () => t3(isFetching ? "loading" : "no-available")
33000
33244
  }
33001
33245
  ),
33002
- !isEditTable && error2 && /* @__PURE__ */ jsx110("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33246
+ !isEditTable && error2 && /* @__PURE__ */ jsx112("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
33003
33247
  ] });
33004
33248
  }
33005
33249
  }
@@ -33010,7 +33254,7 @@ var Many2OneField = (props) => {
33010
33254
  };
33011
33255
 
33012
33256
  // src/widgets/basic/status-bar-field/duration/duration.tsx
33013
- import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
33257
+ import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
33014
33258
  var StatusbarDurationField = (props) => {
33015
33259
  const {
33016
33260
  disabled,
@@ -33020,14 +33264,14 @@ var StatusbarDurationField = (props) => {
33020
33264
  defaultValue,
33021
33265
  setModalStatus
33022
33266
  } = props;
33023
- return /* @__PURE__ */ jsx111(
33267
+ return /* @__PURE__ */ jsx113(
33024
33268
  "div",
33025
33269
  {
33026
33270
  className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
33027
- children: /* @__PURE__ */ jsxs75("div", { className: "flex items-center gap-[24px]", children: [
33028
- /* @__PURE__ */ jsx111("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33271
+ children: /* @__PURE__ */ jsxs77("div", { className: "flex items-center gap-[24px]", children: [
33272
+ /* @__PURE__ */ jsx113("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
33029
33273
  const value = option?.id === defaultValue;
33030
- return /* @__PURE__ */ jsxs75(
33274
+ return /* @__PURE__ */ jsxs77(
33031
33275
  "label",
33032
33276
  {
33033
33277
  onClick: () => !disabled && handleClick(option.id),
@@ -33037,7 +33281,7 @@ var StatusbarDurationField = (props) => {
33037
33281
  ${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
33038
33282
  `,
33039
33283
  children: [
33040
- /* @__PURE__ */ jsx111(
33284
+ /* @__PURE__ */ jsx113(
33041
33285
  "input",
33042
33286
  {
33043
33287
  type: "radio",
@@ -33047,7 +33291,7 @@ var StatusbarDurationField = (props) => {
33047
33291
  }
33048
33292
  ),
33049
33293
  option?.name,
33050
- index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx111(
33294
+ index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx113(
33051
33295
  "div",
33052
33296
  {
33053
33297
  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]
@@ -33062,14 +33306,14 @@ var StatusbarDurationField = (props) => {
33062
33306
  }) }),
33063
33307
  dataResponse?.records?.some(
33064
33308
  (item) => item?.fold && item.id !== defaultValue
33065
- ) && /* @__PURE__ */ jsxs75(
33309
+ ) && /* @__PURE__ */ jsxs77(
33066
33310
  "div",
33067
33311
  {
33068
33312
  onClick: () => setModalStatus(!modelStatus),
33069
33313
  className: "w-[24px] h-[24px] cursor-pointer relative",
33070
33314
  children: [
33071
- /* @__PURE__ */ jsx111(MoreIcon, {}),
33072
- modelStatus && /* @__PURE__ */ jsx111(
33315
+ /* @__PURE__ */ jsx113(MoreIcon, {}),
33316
+ modelStatus && /* @__PURE__ */ jsx113(
33073
33317
  "div",
33074
33318
  {
33075
33319
  onClick: (e3) => e3.stopPropagation(),
@@ -33078,7 +33322,7 @@ var StatusbarDurationField = (props) => {
33078
33322
  (item) => item?.fold && item.id !== defaultValue
33079
33323
  )?.map((option) => {
33080
33324
  const value = option?.id === defaultValue;
33081
- return /* @__PURE__ */ jsx111(
33325
+ return /* @__PURE__ */ jsx113(
33082
33326
  "div",
33083
33327
  {
33084
33328
  className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
@@ -33099,15 +33343,15 @@ var StatusbarDurationField = (props) => {
33099
33343
  };
33100
33344
 
33101
33345
  // src/widgets/basic/status-bar-field/option/option.tsx
33102
- import { useMemo as useMemo11 } from "react";
33103
- import { Fragment as Fragment33, jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
33346
+ import { useMemo as useMemo12 } from "react";
33347
+ import { Fragment as Fragment33, jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
33104
33348
  var StatusBarOptionField = (props) => {
33105
33349
  const { selection, defaultValue } = props;
33106
- const memoizedStatusOptions = useMemo11(() => selection, [selection]);
33350
+ const memoizedStatusOptions = useMemo12(() => selection, [selection]);
33107
33351
  const indexInProgress = memoizedStatusOptions?.findIndex(
33108
33352
  (option) => option?.[0] === defaultValue
33109
33353
  );
33110
- return /* @__PURE__ */ jsx112(
33354
+ return /* @__PURE__ */ jsx114(
33111
33355
  "div",
33112
33356
  {
33113
33357
  style: {
@@ -33116,8 +33360,8 @@ var StatusBarOptionField = (props) => {
33116
33360
  flexWrap: "wrap"
33117
33361
  },
33118
33362
  children: memoizedStatusOptions?.map((option, index4) => {
33119
- return /* @__PURE__ */ jsxs76(Fragment33, { children: [
33120
- /* @__PURE__ */ jsxs76(
33363
+ return /* @__PURE__ */ jsxs78(Fragment33, { children: [
33364
+ /* @__PURE__ */ jsxs78(
33121
33365
  "div",
33122
33366
  {
33123
33367
  style: {
@@ -33135,7 +33379,7 @@ var StatusBarOptionField = (props) => {
33135
33379
  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" : ""
33136
33380
  },
33137
33381
  children: [
33138
- /* @__PURE__ */ jsx112(
33382
+ /* @__PURE__ */ jsx114(
33139
33383
  "span",
33140
33384
  {
33141
33385
  style: {
@@ -33147,10 +33391,10 @@ var StatusBarOptionField = (props) => {
33147
33391
  alignItems: "center",
33148
33392
  borderRadius: "100%"
33149
33393
  },
33150
- children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx112(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx112(ICCircle, {}) : /* @__PURE__ */ jsx112(ICMinus, {})
33394
+ children: index4 < indexInProgress || indexInProgress === memoizedStatusOptions?.length - 1 ? /* @__PURE__ */ jsx114(ICCheck, {}) : index4 === indexInProgress ? /* @__PURE__ */ jsx114(ICCircle, {}) : /* @__PURE__ */ jsx114(ICMinus, {})
33151
33395
  }
33152
33396
  ),
33153
- /* @__PURE__ */ jsx112(
33397
+ /* @__PURE__ */ jsx114(
33154
33398
  "span",
33155
33399
  {
33156
33400
  style: {
@@ -33163,7 +33407,7 @@ var StatusBarOptionField = (props) => {
33163
33407
  },
33164
33408
  option?.[0]
33165
33409
  ),
33166
- !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx112(
33410
+ !(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx114(
33167
33411
  "div",
33168
33412
  {
33169
33413
  style: {
@@ -33179,7 +33423,7 @@ var StatusBarOptionField = (props) => {
33179
33423
  );
33180
33424
  };
33181
33425
  var ICMinus = () => {
33182
- return /* @__PURE__ */ jsx112(
33426
+ return /* @__PURE__ */ jsx114(
33183
33427
  "svg",
33184
33428
  {
33185
33429
  xmlns: "http://www.w3.org/2000/svg",
@@ -33187,7 +33431,7 @@ var ICMinus = () => {
33187
33431
  height: "16",
33188
33432
  viewBox: "0 0 16 16",
33189
33433
  fill: "none",
33190
- children: /* @__PURE__ */ jsx112(
33434
+ children: /* @__PURE__ */ jsx114(
33191
33435
  "path",
33192
33436
  {
33193
33437
  d: "M4 8H12",
@@ -33201,7 +33445,7 @@ var ICMinus = () => {
33201
33445
  );
33202
33446
  };
33203
33447
  var ICCircle = () => {
33204
- return /* @__PURE__ */ jsx112(
33448
+ return /* @__PURE__ */ jsx114(
33205
33449
  "svg",
33206
33450
  {
33207
33451
  xmlns: "http://www.w3.org/2000/svg",
@@ -33209,12 +33453,12 @@ var ICCircle = () => {
33209
33453
  height: "8",
33210
33454
  viewBox: "0 0 8 8",
33211
33455
  fill: "none",
33212
- children: /* @__PURE__ */ jsx112("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33456
+ children: /* @__PURE__ */ jsx114("circle", { cx: "4", cy: "4", r: "4", fill: "white" })
33213
33457
  }
33214
33458
  );
33215
33459
  };
33216
33460
  var ICCheck = () => {
33217
- return /* @__PURE__ */ jsx112(
33461
+ return /* @__PURE__ */ jsx114(
33218
33462
  "svg",
33219
33463
  {
33220
33464
  xmlns: "http://www.w3.org/2000/svg",
@@ -33222,7 +33466,7 @@ var ICCheck = () => {
33222
33466
  height: "16",
33223
33467
  viewBox: "0 0 16 16",
33224
33468
  fill: "none",
33225
- children: /* @__PURE__ */ jsx112(
33469
+ children: /* @__PURE__ */ jsx114(
33226
33470
  "path",
33227
33471
  {
33228
33472
  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",
@@ -33236,7 +33480,7 @@ var ICCheck = () => {
33236
33480
  };
33237
33481
 
33238
33482
  // src/widgets/basic/date-option-field/date-option.tsx
33239
- import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
33483
+ import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
33240
33484
  var DateOptionField = (props) => {
33241
33485
  const {
33242
33486
  name: name2,
@@ -33247,19 +33491,19 @@ var DateOptionField = (props) => {
33247
33491
  string,
33248
33492
  onChange: onChange2
33249
33493
  } = props;
33250
- return /* @__PURE__ */ jsx113(
33494
+ return /* @__PURE__ */ jsx115(
33251
33495
  Controller,
33252
33496
  {
33253
33497
  name: name2 ?? "",
33254
33498
  control: methods?.control,
33255
- render: ({ field }) => /* @__PURE__ */ jsxs77(
33499
+ render: ({ field }) => /* @__PURE__ */ jsxs79(
33256
33500
  "label",
33257
33501
  {
33258
33502
  className: `cursor-pointer mr-2 w-[50px] flex items-center justify-center p-[4px] border rounded-md text-sm
33259
33503
  ${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
33260
33504
  ${readonly ? "opacity-50 pointer-events-none" : ""}`,
33261
33505
  children: [
33262
- /* @__PURE__ */ jsx113(
33506
+ /* @__PURE__ */ jsx115(
33263
33507
  "input",
33264
33508
  {
33265
33509
  type: "checkbox",
@@ -33328,6 +33572,7 @@ export {
33328
33572
  RemainingDaysField,
33329
33573
  Row,
33330
33574
  Search,
33575
+ SecureField,
33331
33576
  SelectDropdownField,
33332
33577
  StatusBarOptionField,
33333
33578
  StatusDropdownField,