@eightshift/ui-components 5.0.0 → 5.0.1

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.
Files changed (144) hide show
  1. package/dist/Button-wERNNG0T.js +185 -0
  2. package/dist/Collection-CKsHTyhc.js +2363 -0
  3. package/dist/Color-BhgbJF5x.js +2452 -0
  4. package/dist/ColorSwatch-Bcn6oRSg.js +64 -0
  5. package/dist/ComboBox-D1LPUwWP.js +1906 -0
  6. package/dist/Dialog-D190gMbE.js +2298 -0
  7. package/dist/FieldError-DeUh5Wkw.js +42 -0
  8. package/dist/FocusScope-C-plSxbS.js +831 -0
  9. package/dist/Form-Cq3fu75_.js +5 -0
  10. package/dist/Group-C5iZpSAM.js +48 -0
  11. package/dist/Heading-D-Pboe4p.js +16 -0
  12. package/dist/Hidden-rE6uR-lr.js +41 -0
  13. package/dist/Input--mF4XVE1.js +133 -0
  14. package/dist/Label-Fp6AwSRn.js +17 -0
  15. package/dist/List-CZMUbkFU.js +593 -0
  16. package/dist/ListBox-4oW9kh3R.js +582 -0
  17. package/dist/NumberFormatter-DA8u1Ot7.js +140 -0
  18. package/dist/OverlayArrow-BpB9uB_I.js +637 -0
  19. package/dist/RSPContexts-2lR5GG9p.js +14 -0
  20. package/dist/Select-aab027f3.esm-BKIJGje-.js +2469 -0
  21. package/dist/Separator-B88tj5YD.js +323 -0
  22. package/dist/Slider-CyJzC1bp.js +853 -0
  23. package/dist/Text-DRpwWot2.js +16 -0
  24. package/dist/VisuallyHidden-DsKYcRQ_.js +48 -0
  25. package/dist/_commonjsHelpers-CUmg6egw.js +6 -0
  26. package/dist/assets/index.css +57 -0
  27. package/dist/assets/style-admin.css +5864 -0
  28. package/dist/assets/style-editor.css +5864 -0
  29. package/dist/assets/style.css +5870 -0
  30. package/dist/assets/wp-font-enhancements.css +8 -0
  31. package/dist/assets/wp-ui-enhancements.css +377 -0
  32. package/dist/components/animated-visibility/animated-visibility.js +105 -0
  33. package/dist/components/base-control/base-control.js +86 -0
  34. package/dist/components/breakpoint-preview/breakpoint-preview.js +161 -0
  35. package/dist/components/button/button.js +387 -0
  36. package/dist/components/checkbox/checkbox.js +320 -0
  37. package/dist/components/color-pickers/color-picker.js +272 -0
  38. package/dist/components/color-pickers/color-swatch.js +59 -0
  39. package/dist/components/color-pickers/gradient-editor.js +534 -0
  40. package/dist/components/color-pickers/solid-color-picker.js +1567 -0
  41. package/dist/components/component-toggle/component-toggle.js +161 -0
  42. package/dist/components/container-panel/container-panel.js +131 -0
  43. package/dist/components/draggable/draggable-context.js +5 -0
  44. package/dist/components/draggable/draggable-handle.js +46 -0
  45. package/dist/components/draggable/draggable.js +6979 -0
  46. package/dist/components/draggable-list/draggable-list-context.js +5 -0
  47. package/dist/components/draggable-list/draggable-list-item.js +77 -0
  48. package/dist/components/draggable-list/draggable-list.js +151 -0
  49. package/dist/components/expandable/expandable.js +342 -0
  50. package/dist/components/index.js +137 -0
  51. package/dist/components/input-field/input-field.js +231 -0
  52. package/dist/components/item-collection/item-collection.js +59 -0
  53. package/dist/components/layout/hstack.js +30 -0
  54. package/dist/components/layout/vstack.js +30 -0
  55. package/dist/components/link-input/link-input.js +291 -0
  56. package/dist/components/matrix-align/matrix-align.js +134 -0
  57. package/dist/components/menu/menu.js +285 -0
  58. package/dist/components/modal/modal.js +305 -0
  59. package/dist/components/notice/notice.js +123 -0
  60. package/dist/components/number-picker/number-picker.js +292 -0
  61. package/dist/components/option-select/option-select.js +264 -0
  62. package/dist/components/options-panel/options-panel.js +158 -0
  63. package/dist/components/placeholders/file-placeholder.js +42 -0
  64. package/dist/components/placeholders/image-placeholder.js +88 -0
  65. package/dist/components/placeholders/media-placeholder.js +63 -0
  66. package/dist/components/popover/popover.js +207 -0
  67. package/dist/components/radio/radio.js +579 -0
  68. package/dist/components/repeater/repeater-context.js +5 -0
  69. package/dist/components/repeater/repeater-item.js +119 -0
  70. package/dist/components/repeater/repeater.js +280 -0
  71. package/dist/components/responsive/mini-responsive.js +498 -0
  72. package/dist/components/responsive/responsive-legacy.js +343 -0
  73. package/dist/components/responsive/responsive.js +583 -0
  74. package/dist/components/responsive-preview/responsive-preview.js +123 -0
  75. package/dist/components/rich-label/rich-label.js +66 -0
  76. package/dist/components/select/async-multi-select.js +157 -0
  77. package/dist/components/select/async-single-select.js +137 -0
  78. package/dist/components/select/custom-select-default-components.js +38 -0
  79. package/dist/components/select/multi-select-components.js +8 -0
  80. package/dist/components/select/multi-select.js +151 -0
  81. package/dist/components/select/react-select-component-wrappers.js +90 -0
  82. package/dist/components/select/shared.js +26 -0
  83. package/dist/components/select/single-select.js +131 -0
  84. package/dist/components/select/styles.js +49 -0
  85. package/dist/components/select/v2/async-select.js +297 -0
  86. package/dist/components/select/v2/shared.js +24 -0
  87. package/dist/components/select/v2/single-select.js +991 -0
  88. package/dist/components/slider/column-config-slider.js +210 -0
  89. package/dist/components/slider/slider.js +345 -0
  90. package/dist/components/slider/utils.js +94 -0
  91. package/dist/components/spacer/spacer.js +97 -0
  92. package/dist/components/tabs/tabs.js +704 -0
  93. package/dist/components/toggle/switch.js +156 -0
  94. package/dist/components/toggle/toggle.js +64 -0
  95. package/dist/components/toggle-button/toggle-button.js +343 -0
  96. package/dist/components/tooltip/tooltip.js +527 -0
  97. package/dist/context-BYWrbm1z.js +92 -0
  98. package/dist/default-i18n-CT_oS1Fy.js +922 -0
  99. package/dist/filterDOMProps-EDDcM64A.js +28 -0
  100. package/dist/icons/block-icon.js +42 -0
  101. package/dist/icons/generic-color-swatch.js +113 -0
  102. package/dist/icons/icons.js +30371 -0
  103. package/dist/icons/index.js +11 -0
  104. package/dist/icons/jsx-svg.js +50 -0
  105. package/dist/index-641ee5b8.esm-BPU8rMZr.js +3137 -0
  106. package/dist/index-CFozsmNS.js +28321 -0
  107. package/dist/index-wl5606BX.js +44 -0
  108. package/dist/index.js +139 -0
  109. package/dist/lite-DVmmD_-j.js +7 -0
  110. package/dist/modifiers.esm-BuJQPI1X.js +31 -0
  111. package/dist/multi-select-components-Sp-JEFEX.js +3744 -0
  112. package/dist/number-GajL10e1.js +36 -0
  113. package/dist/react-jsx-parser.min-DZCiis5V.js +11753 -0
  114. package/dist/react-select-async.esm-D937XTWW.js +107 -0
  115. package/dist/react-select.esm-Ciai3aKf.js +15 -0
  116. package/dist/style-admin.js +1 -0
  117. package/dist/style-editor.js +1 -0
  118. package/dist/style.js +1 -0
  119. package/dist/textSelection-CCcyjiRP.js +46 -0
  120. package/dist/useButton-BOHxkGQF.js +50 -0
  121. package/dist/useEvent-D5o_CqDH.js +23 -0
  122. package/dist/useFocusRing-nMG2uzxS.js +107 -0
  123. package/dist/useFormReset-DlmRL87g.js +22 -0
  124. package/dist/useFormValidation-D0_aaK-e.js +224 -0
  125. package/dist/useHover-VO5tcIli.js +890 -0
  126. package/dist/useLabel-BKH4fVA4.js +27 -0
  127. package/dist/useLabels-ntF3rFY0.js +23 -0
  128. package/dist/useListState-Cq2Nvr-v.js +161 -0
  129. package/dist/useLocalizedStringFormatter-CGzwx1a0.js +121 -0
  130. package/dist/useNumberField-C9dmERhP.js +1207 -0
  131. package/dist/useNumberFormatter-MrRLgvhj.js +13 -0
  132. package/dist/usePress-DjNo5790.js +677 -0
  133. package/dist/useSingleSelectListState--r3AAhRj.js +38 -0
  134. package/dist/useToggle-CQaXLe-O.js +59 -0
  135. package/dist/useToggleState-C3DLdez5.js +19 -0
  136. package/dist/utilities/array-helpers.js +56 -0
  137. package/dist/utilities/debounce-throttle.js +123 -0
  138. package/dist/utilities/es-dash.js +382 -0
  139. package/dist/utilities/index.js +27 -0
  140. package/dist/utilities/text-helpers.js +136 -0
  141. package/dist/utils-B94NDG0v.js +370 -0
  142. package/dist/wp/wp-font-enhancements.js +1 -0
  143. package/dist/wp/wp-ui-enhancements.js +1 -0
  144. package/package.json +8 -8
@@ -0,0 +1,1207 @@
1
+ import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715, g as $03deb23ff14920c4$export$4eaf04e54aa8eed6, p as $a1ea59d68270f0dd$export$f8168d8dd8fd66e6, L as $c87311424ea30a05$export$186c6964ca17d99, v as $c87311424ea30a05$export$a11b0059900ceec8, c as $c87311424ea30a05$export$fedb369cb70207f1 } from "./useHover-VO5tcIli.js";
2
+ import { $ as $9446cca9a3875146$export$cb6e0bb50bc19463, a as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./number-GajL10e1.js";
3
+ import { $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, b as $e5be200c675c3b3a$export$a763b9476acd3eb } from "./useFormValidation-D0_aaK-e.js";
4
+ import { $ as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DA8u1Ot7.js";
5
+ import { useCallback, useState, useMemo, useEffect, useRef } from "react";
6
+ import { f as $8ae05eaa5c114e9c$export$7f54fc3180508a52, d as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $bdb11010cef70236$export$f680877a34711e37, p as $ff5963eb1fccf552$export$e08e3b67e392101e } from "./utils-B94NDG0v.js";
7
+ import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-EDDcM64A.js";
8
+ import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-DlmRL87g.js";
9
+ import { a as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusRing-nMG2uzxS.js";
10
+ import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-D5o_CqDH.js";
11
+ import { b as $2d73ec29415bd339$export$712718f7aec83d5 } from "./Input--mF4XVE1.js";
12
+ import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-CGzwx1a0.js";
13
+ import { $ as $a916eb452884faea$export$b7a616150fdb9f44 } from "./useNumberFormatter-MrRLgvhj.js";
14
+ import { c as $319e236875307eab$export$d10ae4f68404609a, b as $319e236875307eab$export$a9b970dcc4ae71a9 } from "./Button-wERNNG0T.js";
15
+ function $7d0a636d7a4dcefd$export$2123ff2b87c81ca(props, ref) {
16
+ let { onScroll, isDisabled } = props;
17
+ let onScrollHandler = useCallback((e) => {
18
+ if (e.ctrlKey) return;
19
+ e.preventDefault();
20
+ e.stopPropagation();
21
+ if (onScroll) onScroll({
22
+ deltaX: e.deltaX,
23
+ deltaY: e.deltaY
24
+ });
25
+ }, [
26
+ onScroll
27
+ ]);
28
+ $e9faafb641e167db$export$90fc3a17d93f704c(ref, "wheel", isDisabled ? void 0 : onScrollHandler);
29
+ }
30
+ const $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX = new RegExp("^.*\\(.*\\).*$");
31
+ const $6c7bd7858deea686$var$NUMBERING_SYSTEMS = [
32
+ "latn",
33
+ "arab",
34
+ "hanidec",
35
+ "deva",
36
+ "beng"
37
+ ];
38
+ class $6c7bd7858deea686$export$cd11ab140839f11d {
39
+ /**
40
+ * Parses the given string to a number. Returns NaN if a valid number could not be parsed.
41
+ */
42
+ parse(value) {
43
+ return $6c7bd7858deea686$var$getNumberParserImpl(this.locale, this.options, value).parse(value);
44
+ }
45
+ /**
46
+ * Returns whether the given string could potentially be a valid number. This should be used to
47
+ * validate user input as the user types. If a `minValue` or `maxValue` is provided, the validity
48
+ * of the minus/plus sign characters can be checked.
49
+ */
50
+ isValidPartialNumber(value, minValue, maxValue) {
51
+ return $6c7bd7858deea686$var$getNumberParserImpl(this.locale, this.options, value).isValidPartialNumber(value, minValue, maxValue);
52
+ }
53
+ /**
54
+ * Returns a numbering system for which the given string is valid in the current locale.
55
+ * If no numbering system could be detected, the default numbering system for the current
56
+ * locale is returned.
57
+ */
58
+ getNumberingSystem(value) {
59
+ return $6c7bd7858deea686$var$getNumberParserImpl(this.locale, this.options, value).options.numberingSystem;
60
+ }
61
+ constructor(locale, options = {}) {
62
+ this.locale = locale;
63
+ this.options = options;
64
+ }
65
+ }
66
+ const $6c7bd7858deea686$var$numberParserCache = /* @__PURE__ */ new Map();
67
+ function $6c7bd7858deea686$var$getNumberParserImpl(locale, options, value) {
68
+ let defaultParser = $6c7bd7858deea686$var$getCachedNumberParser(locale, options);
69
+ if (!locale.includes("-nu-") && !defaultParser.isValidPartialNumber(value)) {
70
+ for (let numberingSystem of $6c7bd7858deea686$var$NUMBERING_SYSTEMS) if (numberingSystem !== defaultParser.options.numberingSystem) {
71
+ let parser = $6c7bd7858deea686$var$getCachedNumberParser(locale + (locale.includes("-u-") ? "-nu-" : "-u-nu-") + numberingSystem, options);
72
+ if (parser.isValidPartialNumber(value)) return parser;
73
+ }
74
+ }
75
+ return defaultParser;
76
+ }
77
+ function $6c7bd7858deea686$var$getCachedNumberParser(locale, options) {
78
+ let cacheKey = locale + (options ? Object.entries(options).sort((a, b) => a[0] < b[0] ? -1 : 1).join() : "");
79
+ let parser = $6c7bd7858deea686$var$numberParserCache.get(cacheKey);
80
+ if (!parser) {
81
+ parser = new $6c7bd7858deea686$var$NumberParserImpl(locale, options);
82
+ $6c7bd7858deea686$var$numberParserCache.set(cacheKey, parser);
83
+ }
84
+ return parser;
85
+ }
86
+ class $6c7bd7858deea686$var$NumberParserImpl {
87
+ parse(value) {
88
+ let fullySanitizedValue = this.sanitize(value);
89
+ if (this.symbols.group)
90
+ fullySanitizedValue = $6c7bd7858deea686$var$replaceAll(fullySanitizedValue, this.symbols.group, "");
91
+ if (this.symbols.decimal) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.decimal, ".");
92
+ if (this.symbols.minusSign) fullySanitizedValue = fullySanitizedValue.replace(this.symbols.minusSign, "-");
93
+ fullySanitizedValue = fullySanitizedValue.replace(this.symbols.numeral, this.symbols.index);
94
+ if (this.options.style === "percent") {
95
+ let isNegative = fullySanitizedValue.indexOf("-");
96
+ fullySanitizedValue = fullySanitizedValue.replace("-", "");
97
+ let index = fullySanitizedValue.indexOf(".");
98
+ if (index === -1) index = fullySanitizedValue.length;
99
+ fullySanitizedValue = fullySanitizedValue.replace(".", "");
100
+ if (index - 2 === 0) fullySanitizedValue = `0.${fullySanitizedValue}`;
101
+ else if (index - 2 === -1) fullySanitizedValue = `0.0${fullySanitizedValue}`;
102
+ else if (index - 2 === -2) fullySanitizedValue = "0.00";
103
+ else fullySanitizedValue = `${fullySanitizedValue.slice(0, index - 2)}.${fullySanitizedValue.slice(index - 2)}`;
104
+ if (isNegative > -1) fullySanitizedValue = `-${fullySanitizedValue}`;
105
+ }
106
+ let newValue = fullySanitizedValue ? +fullySanitizedValue : NaN;
107
+ if (isNaN(newValue)) return NaN;
108
+ if (this.options.style === "percent") {
109
+ var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
110
+ let options = {
111
+ ...this.options,
112
+ style: "decimal",
113
+ minimumFractionDigits: Math.min(((_this_options_minimumFractionDigits = this.options.minimumFractionDigits) !== null && _this_options_minimumFractionDigits !== void 0 ? _this_options_minimumFractionDigits : 0) + 2, 20),
114
+ maximumFractionDigits: Math.min(((_this_options_maximumFractionDigits = this.options.maximumFractionDigits) !== null && _this_options_maximumFractionDigits !== void 0 ? _this_options_maximumFractionDigits : 0) + 2, 20)
115
+ };
116
+ return new $6c7bd7858deea686$export$cd11ab140839f11d(this.locale, options).parse(new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this.locale, options).format(newValue));
117
+ }
118
+ if (this.options.currencySign === "accounting" && $6c7bd7858deea686$var$CURRENCY_SIGN_REGEX.test(value)) newValue = -1 * newValue;
119
+ return newValue;
120
+ }
121
+ sanitize(value) {
122
+ value = value.replace(this.symbols.literals, "");
123
+ if (this.symbols.minusSign) value = value.replace("-", this.symbols.minusSign);
124
+ if (this.options.numberingSystem === "arab") {
125
+ if (this.symbols.decimal) {
126
+ value = value.replace(",", this.symbols.decimal);
127
+ value = value.replace(String.fromCharCode(1548), this.symbols.decimal);
128
+ }
129
+ if (this.symbols.group) value = $6c7bd7858deea686$var$replaceAll(value, ".", this.symbols.group);
130
+ }
131
+ if (this.options.locale === "fr-FR" && this.symbols.group) {
132
+ value = $6c7bd7858deea686$var$replaceAll(value, " ", this.symbols.group);
133
+ value = $6c7bd7858deea686$var$replaceAll(value, /\u00A0/g, this.symbols.group);
134
+ }
135
+ return value;
136
+ }
137
+ isValidPartialNumber(value, minValue = -Infinity, maxValue = Infinity) {
138
+ value = this.sanitize(value);
139
+ if (this.symbols.minusSign && value.startsWith(this.symbols.minusSign) && minValue < 0) value = value.slice(this.symbols.minusSign.length);
140
+ else if (this.symbols.plusSign && value.startsWith(this.symbols.plusSign) && maxValue > 0) value = value.slice(this.symbols.plusSign.length);
141
+ if (this.symbols.group && value.startsWith(this.symbols.group)) return false;
142
+ if (this.symbols.decimal && value.indexOf(this.symbols.decimal) > -1 && this.options.maximumFractionDigits === 0) return false;
143
+ if (this.symbols.group) value = $6c7bd7858deea686$var$replaceAll(value, this.symbols.group, "");
144
+ value = value.replace(this.symbols.numeral, "");
145
+ if (this.symbols.decimal) value = value.replace(this.symbols.decimal, "");
146
+ return value.length === 0;
147
+ }
148
+ constructor(locale, options = {}) {
149
+ this.locale = locale;
150
+ this.formatter = new Intl.NumberFormat(locale, options);
151
+ this.options = this.formatter.resolvedOptions();
152
+ this.symbols = $6c7bd7858deea686$var$getSymbols(locale, this.formatter, this.options, options);
153
+ var _this_options_minimumFractionDigits, _this_options_maximumFractionDigits;
154
+ if (this.options.style === "percent" && (((_this_options_minimumFractionDigits = this.options.minimumFractionDigits) !== null && _this_options_minimumFractionDigits !== void 0 ? _this_options_minimumFractionDigits : 0) > 18 || ((_this_options_maximumFractionDigits = this.options.maximumFractionDigits) !== null && _this_options_maximumFractionDigits !== void 0 ? _this_options_maximumFractionDigits : 0) > 18)) console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
155
+ }
156
+ }
157
+ const $6c7bd7858deea686$var$nonLiteralParts = /* @__PURE__ */ new Set([
158
+ "decimal",
159
+ "fraction",
160
+ "integer",
161
+ "minusSign",
162
+ "plusSign",
163
+ "group"
164
+ ]);
165
+ const $6c7bd7858deea686$var$pluralNumbers = [
166
+ 0,
167
+ 4,
168
+ 2,
169
+ 1,
170
+ 11,
171
+ 20,
172
+ 3,
173
+ 7,
174
+ 100,
175
+ 21,
176
+ 0.1,
177
+ 1.1
178
+ ];
179
+ function $6c7bd7858deea686$var$getSymbols(locale, formatter, intlOptions, originalOptions) {
180
+ var _allParts_find, _posAllParts_find, _decimalParts_find, _allParts_find1;
181
+ let symbolFormatter = new Intl.NumberFormat(locale, {
182
+ ...intlOptions,
183
+ // Resets so we get the full range of symbols
184
+ minimumSignificantDigits: 1,
185
+ maximumSignificantDigits: 21,
186
+ roundingIncrement: 1,
187
+ roundingPriority: "auto",
188
+ roundingMode: "halfExpand"
189
+ });
190
+ let allParts = symbolFormatter.formatToParts(-10000.111);
191
+ let posAllParts = symbolFormatter.formatToParts(10000.111);
192
+ let pluralParts = $6c7bd7858deea686$var$pluralNumbers.map((n) => symbolFormatter.formatToParts(n));
193
+ var _allParts_find_value;
194
+ let minusSign = (_allParts_find_value = (_allParts_find = allParts.find((p) => p.type === "minusSign")) === null || _allParts_find === void 0 ? void 0 : _allParts_find.value) !== null && _allParts_find_value !== void 0 ? _allParts_find_value : "-";
195
+ let plusSign = (_posAllParts_find = posAllParts.find((p) => p.type === "plusSign")) === null || _posAllParts_find === void 0 ? void 0 : _posAllParts_find.value;
196
+ if (!plusSign && ((originalOptions === null || originalOptions === void 0 ? void 0 : originalOptions.signDisplay) === "exceptZero" || (originalOptions === null || originalOptions === void 0 ? void 0 : originalOptions.signDisplay) === "always")) plusSign = "+";
197
+ let decimalParts = new Intl.NumberFormat(locale, {
198
+ ...intlOptions,
199
+ minimumFractionDigits: 2,
200
+ maximumFractionDigits: 2
201
+ }).formatToParts(1e-3);
202
+ let decimal = (_decimalParts_find = decimalParts.find((p) => p.type === "decimal")) === null || _decimalParts_find === void 0 ? void 0 : _decimalParts_find.value;
203
+ let group = (_allParts_find1 = allParts.find((p) => p.type === "group")) === null || _allParts_find1 === void 0 ? void 0 : _allParts_find1.value;
204
+ let allPartsLiterals = allParts.filter((p) => !$6c7bd7858deea686$var$nonLiteralParts.has(p.type)).map((p) => $6c7bd7858deea686$var$escapeRegex(p.value));
205
+ let pluralPartsLiterals = pluralParts.flatMap((p) => p.filter((p2) => !$6c7bd7858deea686$var$nonLiteralParts.has(p2.type)).map((p2) => $6c7bd7858deea686$var$escapeRegex(p2.value)));
206
+ let sortedLiterals = [
207
+ .../* @__PURE__ */ new Set([
208
+ ...allPartsLiterals,
209
+ ...pluralPartsLiterals
210
+ ])
211
+ ].sort((a, b) => b.length - a.length);
212
+ let literals = sortedLiterals.length === 0 ? new RegExp("[\\p{White_Space}]", "gu") : new RegExp(`${sortedLiterals.join("|")}|[\\p{White_Space}]`, "gu");
213
+ let numerals = [
214
+ ...new Intl.NumberFormat(intlOptions.locale, {
215
+ useGrouping: false
216
+ }).format(9876543210)
217
+ ].reverse();
218
+ let indexes = new Map(numerals.map((d, i) => [
219
+ d,
220
+ i
221
+ ]));
222
+ let numeral = new RegExp(`[${numerals.join("")}]`, "g");
223
+ let index = (d) => String(indexes.get(d));
224
+ return {
225
+ minusSign,
226
+ plusSign,
227
+ decimal,
228
+ group,
229
+ literals,
230
+ numeral,
231
+ index
232
+ };
233
+ }
234
+ function $6c7bd7858deea686$var$replaceAll(str, find, replace) {
235
+ if (str.replaceAll) return str.replaceAll(find, replace);
236
+ return str.split(find).join(replace);
237
+ }
238
+ function $6c7bd7858deea686$var$escapeRegex(string) {
239
+ return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
240
+ }
241
+ function $de67e98908f0c6ee$export$7f629e9dc1ecf37c(props) {
242
+ let { minValue, maxValue, step, formatOptions, value, defaultValue = NaN, onChange, locale, isDisabled, isReadOnly } = props;
243
+ if (value === null) value = NaN;
244
+ if (value !== void 0 && !isNaN(value)) {
245
+ if (step !== void 0 && !isNaN(step)) value = $9446cca9a3875146$export$cb6e0bb50bc19463(value, minValue, maxValue, step);
246
+ else value = $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, minValue, maxValue);
247
+ }
248
+ if (!isNaN(defaultValue)) {
249
+ if (step !== void 0 && !isNaN(step)) defaultValue = $9446cca9a3875146$export$cb6e0bb50bc19463(defaultValue, minValue, maxValue, step);
250
+ else defaultValue = $9446cca9a3875146$export$7d15b64cf5a3a4c4(defaultValue, minValue, maxValue);
251
+ }
252
+ let [numberValue, setNumberValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, isNaN(defaultValue) ? NaN : defaultValue, onChange);
253
+ let [inputValue, setInputValue] = useState(() => isNaN(numberValue) ? "" : new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, formatOptions).format(numberValue));
254
+ let numberParser = useMemo(() => new $6c7bd7858deea686$export$cd11ab140839f11d(locale, formatOptions), [
255
+ locale,
256
+ formatOptions
257
+ ]);
258
+ let numberingSystem = useMemo(() => numberParser.getNumberingSystem(inputValue), [
259
+ numberParser,
260
+ inputValue
261
+ ]);
262
+ let formatter = useMemo(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(locale, {
263
+ ...formatOptions,
264
+ numberingSystem
265
+ }), [
266
+ locale,
267
+ formatOptions,
268
+ numberingSystem
269
+ ]);
270
+ let intlOptions = useMemo(() => formatter.resolvedOptions(), [
271
+ formatter
272
+ ]);
273
+ let format = useCallback((value2) => isNaN(value2) || value2 === null ? "" : formatter.format(value2), [
274
+ formatter
275
+ ]);
276
+ let validation = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
277
+ ...props,
278
+ value: numberValue
279
+ });
280
+ let clampStep = step !== void 0 && !isNaN(step) ? step : 1;
281
+ if (intlOptions.style === "percent" && (step === void 0 || isNaN(step))) clampStep = 0.01;
282
+ let [prevValue, setPrevValue] = useState(numberValue);
283
+ let [prevLocale, setPrevLocale] = useState(locale);
284
+ let [prevFormatOptions, setPrevFormatOptions] = useState(formatOptions);
285
+ if (!Object.is(numberValue, prevValue) || locale !== prevLocale || formatOptions !== prevFormatOptions) {
286
+ setInputValue(format(numberValue));
287
+ setPrevValue(numberValue);
288
+ setPrevLocale(locale);
289
+ setPrevFormatOptions(formatOptions);
290
+ }
291
+ let parsedValue = useMemo(() => numberParser.parse(inputValue), [
292
+ numberParser,
293
+ inputValue
294
+ ]);
295
+ let commit = () => {
296
+ if (!inputValue.length) {
297
+ setNumberValue(NaN);
298
+ setInputValue(value === void 0 ? "" : format(numberValue));
299
+ return;
300
+ }
301
+ if (isNaN(parsedValue)) {
302
+ setInputValue(format(numberValue));
303
+ return;
304
+ }
305
+ let clampedValue;
306
+ if (step === void 0 || isNaN(step)) clampedValue = $9446cca9a3875146$export$7d15b64cf5a3a4c4(parsedValue, minValue, maxValue);
307
+ else clampedValue = $9446cca9a3875146$export$cb6e0bb50bc19463(parsedValue, minValue, maxValue, step);
308
+ clampedValue = numberParser.parse(format(clampedValue));
309
+ setNumberValue(clampedValue);
310
+ setInputValue(format(value === void 0 ? clampedValue : numberValue));
311
+ };
312
+ let safeNextStep = (operation, minMax = 0) => {
313
+ let prev = parsedValue;
314
+ if (isNaN(prev)) {
315
+ let newValue = isNaN(minMax) ? 0 : minMax;
316
+ return $9446cca9a3875146$export$cb6e0bb50bc19463(newValue, minValue, maxValue, clampStep);
317
+ } else {
318
+ let newValue = $9446cca9a3875146$export$cb6e0bb50bc19463(prev, minValue, maxValue, clampStep);
319
+ if (operation === "+" && newValue > prev || operation === "-" && newValue < prev) return newValue;
320
+ return $9446cca9a3875146$export$cb6e0bb50bc19463($de67e98908f0c6ee$var$handleDecimalOperation(operation, prev, clampStep), minValue, maxValue, clampStep);
321
+ }
322
+ };
323
+ let increment = () => {
324
+ let newValue = safeNextStep("+", minValue);
325
+ if (newValue === numberValue) setInputValue(format(newValue));
326
+ setNumberValue(newValue);
327
+ validation.commitValidation();
328
+ };
329
+ let decrement = () => {
330
+ let newValue = safeNextStep("-", maxValue);
331
+ if (newValue === numberValue) setInputValue(format(newValue));
332
+ setNumberValue(newValue);
333
+ validation.commitValidation();
334
+ };
335
+ let incrementToMax = () => {
336
+ if (maxValue != null) {
337
+ setNumberValue($9446cca9a3875146$export$cb6e0bb50bc19463(maxValue, minValue, maxValue, clampStep));
338
+ validation.commitValidation();
339
+ }
340
+ };
341
+ let decrementToMin = () => {
342
+ if (minValue != null) {
343
+ setNumberValue(minValue);
344
+ validation.commitValidation();
345
+ }
346
+ };
347
+ let canIncrement = useMemo(() => !isDisabled && !isReadOnly && (isNaN(parsedValue) || maxValue === void 0 || isNaN(maxValue) || $9446cca9a3875146$export$cb6e0bb50bc19463(parsedValue, minValue, maxValue, clampStep) > parsedValue || $de67e98908f0c6ee$var$handleDecimalOperation("+", parsedValue, clampStep) <= maxValue), [
348
+ isDisabled,
349
+ isReadOnly,
350
+ minValue,
351
+ maxValue,
352
+ clampStep,
353
+ parsedValue
354
+ ]);
355
+ let canDecrement = useMemo(() => !isDisabled && !isReadOnly && (isNaN(parsedValue) || minValue === void 0 || isNaN(minValue) || $9446cca9a3875146$export$cb6e0bb50bc19463(parsedValue, minValue, maxValue, clampStep) < parsedValue || $de67e98908f0c6ee$var$handleDecimalOperation("-", parsedValue, clampStep) >= minValue), [
356
+ isDisabled,
357
+ isReadOnly,
358
+ minValue,
359
+ maxValue,
360
+ clampStep,
361
+ parsedValue
362
+ ]);
363
+ let validate = (value2) => numberParser.isValidPartialNumber(value2, minValue, maxValue);
364
+ return {
365
+ ...validation,
366
+ validate,
367
+ increment,
368
+ incrementToMax,
369
+ decrement,
370
+ decrementToMin,
371
+ canIncrement,
372
+ canDecrement,
373
+ minValue,
374
+ maxValue,
375
+ numberValue: parsedValue,
376
+ setNumberValue,
377
+ setInputValue,
378
+ inputValue,
379
+ commit
380
+ };
381
+ }
382
+ function $de67e98908f0c6ee$var$handleDecimalOperation(operator, value1, value2) {
383
+ let result = operator === "+" ? value1 + value2 : value1 - value2;
384
+ if (value1 % 1 !== 0 || value2 % 1 !== 0) {
385
+ const value1Decimal = value1.toString().split(".");
386
+ const value2Decimal = value2.toString().split(".");
387
+ const value1DecimalLength = value1Decimal[1] && value1Decimal[1].length || 0;
388
+ const value2DecimalLength = value2Decimal[1] && value2Decimal[1].length || 0;
389
+ const multiplier = Math.pow(10, Math.max(value1DecimalLength, value2DecimalLength));
390
+ value1 = Math.round(value1 * multiplier);
391
+ value2 = Math.round(value2 * multiplier);
392
+ result = operator === "+" ? value1 + value2 : value1 - value2;
393
+ result /= multiplier;
394
+ }
395
+ return result;
396
+ }
397
+ function $d841c8010a73d545$var$supportsNativeBeforeInputEvent() {
398
+ return typeof window !== "undefined" && window.InputEvent && typeof InputEvent.prototype.getTargetRanges === "function";
399
+ }
400
+ function $d841c8010a73d545$export$4f384c9210e583c3(props, state, inputRef) {
401
+ let onBeforeInputFallback = $8ae05eaa5c114e9c$export$7f54fc3180508a52((e) => {
402
+ let input = inputRef.current;
403
+ if (!input) return;
404
+ let nextValue = null;
405
+ switch (e.inputType) {
406
+ case "historyUndo":
407
+ case "historyRedo":
408
+ return;
409
+ case "insertLineBreak":
410
+ return;
411
+ case "deleteContent":
412
+ case "deleteByCut":
413
+ case "deleteByDrag":
414
+ nextValue = input.value.slice(0, input.selectionStart) + input.value.slice(input.selectionEnd);
415
+ break;
416
+ case "deleteContentForward":
417
+ nextValue = input.selectionEnd === input.selectionStart ? input.value.slice(0, input.selectionStart) + input.value.slice(input.selectionEnd + 1) : input.value.slice(0, input.selectionStart) + input.value.slice(input.selectionEnd);
418
+ break;
419
+ case "deleteContentBackward":
420
+ nextValue = input.selectionEnd === input.selectionStart ? input.value.slice(0, input.selectionStart - 1) + input.value.slice(input.selectionStart) : input.value.slice(0, input.selectionStart) + input.value.slice(input.selectionEnd);
421
+ break;
422
+ case "deleteSoftLineBackward":
423
+ case "deleteHardLineBackward":
424
+ nextValue = input.value.slice(input.selectionStart);
425
+ break;
426
+ default:
427
+ if (e.data != null) nextValue = input.value.slice(0, input.selectionStart) + e.data + input.value.slice(input.selectionEnd);
428
+ break;
429
+ }
430
+ if (nextValue == null || !state.validate(nextValue)) e.preventDefault();
431
+ });
432
+ useEffect(() => {
433
+ if (!$d841c8010a73d545$var$supportsNativeBeforeInputEvent() || !inputRef.current) return;
434
+ let input = inputRef.current;
435
+ input.addEventListener("beforeinput", onBeforeInputFallback, false);
436
+ return () => {
437
+ input.removeEventListener("beforeinput", onBeforeInputFallback, false);
438
+ };
439
+ }, [
440
+ inputRef,
441
+ onBeforeInputFallback
442
+ ]);
443
+ let onBeforeInput = !$d841c8010a73d545$var$supportsNativeBeforeInputEvent() ? (e) => {
444
+ let nextValue = e.target.value.slice(0, e.target.selectionStart) + e.data + e.target.value.slice(e.target.selectionEnd);
445
+ if (!state.validate(nextValue)) e.preventDefault();
446
+ } : null;
447
+ let { labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps, ...validation } = $2d73ec29415bd339$export$712718f7aec83d5(props, inputRef);
448
+ let compositionStartState = useRef(null);
449
+ return {
450
+ inputProps: $3ef42575df84b30b$export$9d1611c77c2fe928(textFieldProps, {
451
+ onBeforeInput,
452
+ onCompositionStart() {
453
+ let { value, selectionStart, selectionEnd } = inputRef.current;
454
+ compositionStartState.current = {
455
+ value,
456
+ selectionStart,
457
+ selectionEnd
458
+ };
459
+ },
460
+ onCompositionEnd() {
461
+ if (inputRef.current && !state.validate(inputRef.current.value)) {
462
+ let { value, selectionStart, selectionEnd } = compositionStartState.current;
463
+ inputRef.current.value = value;
464
+ inputRef.current.setSelectionRange(selectionStart, selectionEnd);
465
+ state.setInputValue(value);
466
+ }
467
+ }
468
+ }),
469
+ labelProps,
470
+ descriptionProps,
471
+ errorMessageProps,
472
+ ...validation
473
+ };
474
+ }
475
+ var $ed6aae4e5f766f1e$exports = {};
476
+ $ed6aae4e5f766f1e$exports = {
477
+ "Empty": `فارغ`
478
+ };
479
+ var $38854e2b175151fa$exports = {};
480
+ $38854e2b175151fa$exports = {
481
+ "Empty": `Изпразни`
482
+ };
483
+ var $15b25ab20f3945b2$exports = {};
484
+ $15b25ab20f3945b2$exports = {
485
+ "Empty": `Prázdné`
486
+ };
487
+ var $692a4298b6b649a2$exports = {};
488
+ $692a4298b6b649a2$exports = {
489
+ "Empty": `Tom`
490
+ };
491
+ var $1c6e1539193f1243$exports = {};
492
+ $1c6e1539193f1243$exports = {
493
+ "Empty": `Leer`
494
+ };
495
+ var $1e8678632c464b6d$exports = {};
496
+ $1e8678632c464b6d$exports = {
497
+ "Empty": `Άδειο`
498
+ };
499
+ var $4adc85d9bf5b9eed$exports = {};
500
+ $4adc85d9bf5b9eed$exports = {
501
+ "Empty": `Empty`
502
+ };
503
+ var $41c4b2bb61dafbca$exports = {};
504
+ $41c4b2bb61dafbca$exports = {
505
+ "Empty": `Vacío`
506
+ };
507
+ var $405f8b24f5dd2a60$exports = {};
508
+ $405f8b24f5dd2a60$exports = {
509
+ "Empty": `Tühjenda`
510
+ };
511
+ var $7efe3ed02b9b9dd4$exports = {};
512
+ $7efe3ed02b9b9dd4$exports = {
513
+ "Empty": `Tyhjä`
514
+ };
515
+ var $99fc4c101d92daf3$exports = {};
516
+ $99fc4c101d92daf3$exports = {
517
+ "Empty": `Vide`
518
+ };
519
+ var $f9e155e6e8cacaa2$exports = {};
520
+ $f9e155e6e8cacaa2$exports = {
521
+ "Empty": `ריק`
522
+ };
523
+ var $c31b5e8e9a249fd5$exports = {};
524
+ $c31b5e8e9a249fd5$exports = {
525
+ "Empty": `Prazno`
526
+ };
527
+ var $9c5435bc17499bd9$exports = {};
528
+ $9c5435bc17499bd9$exports = {
529
+ "Empty": `Üres`
530
+ };
531
+ var $6d1fc8e84d8165e1$exports = {};
532
+ $6d1fc8e84d8165e1$exports = {
533
+ "Empty": `Vuoto`
534
+ };
535
+ var $46ea6b3641b83e71$exports = {};
536
+ $46ea6b3641b83e71$exports = {
537
+ "Empty": `空`
538
+ };
539
+ var $0e3cc9a288289dc5$exports = {};
540
+ $0e3cc9a288289dc5$exports = {
541
+ "Empty": `비어 있음`
542
+ };
543
+ var $4ff2bb25c0089ffb$exports = {};
544
+ $4ff2bb25c0089ffb$exports = {
545
+ "Empty": `Tuščias`
546
+ };
547
+ var $6cf33cd4c010a2fb$exports = {};
548
+ $6cf33cd4c010a2fb$exports = {
549
+ "Empty": `Tukšs`
550
+ };
551
+ var $5a9f8486f8b8837e$exports = {};
552
+ $5a9f8486f8b8837e$exports = {
553
+ "Empty": `Tom`
554
+ };
555
+ var $583f94d807f6ecea$exports = {};
556
+ $583f94d807f6ecea$exports = {
557
+ "Empty": `Leeg`
558
+ };
559
+ var $cc4dcfeea2b4050d$exports = {};
560
+ $cc4dcfeea2b4050d$exports = {
561
+ "Empty": `Pusty`
562
+ };
563
+ var $68ac2954d56e12b4$exports = {};
564
+ $68ac2954d56e12b4$exports = {
565
+ "Empty": `Vazio`
566
+ };
567
+ var $fdb0616f309780b0$exports = {};
568
+ $fdb0616f309780b0$exports = {
569
+ "Empty": `Vazio`
570
+ };
571
+ var $fe1eccf4ee1d6f52$exports = {};
572
+ $fe1eccf4ee1d6f52$exports = {
573
+ "Empty": `Gol`
574
+ };
575
+ var $a38b6c4e18725976$exports = {};
576
+ $a38b6c4e18725976$exports = {
577
+ "Empty": `Не заполнено`
578
+ };
579
+ var $6c14ae2b766b652c$exports = {};
580
+ $6c14ae2b766b652c$exports = {
581
+ "Empty": `Prázdne`
582
+ };
583
+ var $8f1c9692e16dc5eb$exports = {};
584
+ $8f1c9692e16dc5eb$exports = {
585
+ "Empty": `Prazen`
586
+ };
587
+ var $d2aa7abea627cafa$exports = {};
588
+ $d2aa7abea627cafa$exports = {
589
+ "Empty": `Prazno`
590
+ };
591
+ var $676b82e4b56408e6$exports = {};
592
+ $676b82e4b56408e6$exports = {
593
+ "Empty": `Tomt`
594
+ };
595
+ var $14c9042552d7ce08$exports = {};
596
+ $14c9042552d7ce08$exports = {
597
+ "Empty": `Boş`
598
+ };
599
+ var $393254ebcb66c9f5$exports = {};
600
+ $393254ebcb66c9f5$exports = {
601
+ "Empty": `Пусто`
602
+ };
603
+ var $d49d621f310cf6ce$exports = {};
604
+ $d49d621f310cf6ce$exports = {
605
+ "Empty": `空`
606
+ };
607
+ var $94b60c866ca5dfe6$exports = {};
608
+ $94b60c866ca5dfe6$exports = {
609
+ "Empty": `空白`
610
+ };
611
+ var $a99895ee3dc79e61$exports = {};
612
+ $a99895ee3dc79e61$exports = {
613
+ "ar-AE": $ed6aae4e5f766f1e$exports,
614
+ "bg-BG": $38854e2b175151fa$exports,
615
+ "cs-CZ": $15b25ab20f3945b2$exports,
616
+ "da-DK": $692a4298b6b649a2$exports,
617
+ "de-DE": $1c6e1539193f1243$exports,
618
+ "el-GR": $1e8678632c464b6d$exports,
619
+ "en-US": $4adc85d9bf5b9eed$exports,
620
+ "es-ES": $41c4b2bb61dafbca$exports,
621
+ "et-EE": $405f8b24f5dd2a60$exports,
622
+ "fi-FI": $7efe3ed02b9b9dd4$exports,
623
+ "fr-FR": $99fc4c101d92daf3$exports,
624
+ "he-IL": $f9e155e6e8cacaa2$exports,
625
+ "hr-HR": $c31b5e8e9a249fd5$exports,
626
+ "hu-HU": $9c5435bc17499bd9$exports,
627
+ "it-IT": $6d1fc8e84d8165e1$exports,
628
+ "ja-JP": $46ea6b3641b83e71$exports,
629
+ "ko-KR": $0e3cc9a288289dc5$exports,
630
+ "lt-LT": $4ff2bb25c0089ffb$exports,
631
+ "lv-LV": $6cf33cd4c010a2fb$exports,
632
+ "nb-NO": $5a9f8486f8b8837e$exports,
633
+ "nl-NL": $583f94d807f6ecea$exports,
634
+ "pl-PL": $cc4dcfeea2b4050d$exports,
635
+ "pt-BR": $68ac2954d56e12b4$exports,
636
+ "pt-PT": $fdb0616f309780b0$exports,
637
+ "ro-RO": $fe1eccf4ee1d6f52$exports,
638
+ "ru-RU": $a38b6c4e18725976$exports,
639
+ "sk-SK": $6c14ae2b766b652c$exports,
640
+ "sl-SI": $8f1c9692e16dc5eb$exports,
641
+ "sr-SP": $d2aa7abea627cafa$exports,
642
+ "sv-SE": $676b82e4b56408e6$exports,
643
+ "tr-TR": $14c9042552d7ce08$exports,
644
+ "uk-UA": $393254ebcb66c9f5$exports,
645
+ "zh-CN": $d49d621f310cf6ce$exports,
646
+ "zh-TW": $94b60c866ca5dfe6$exports
647
+ };
648
+ function $parcel$interopDefault$1(a) {
649
+ return a && a.__esModule ? a.default : a;
650
+ }
651
+ function $d2e8511e6f209edf$export$e908e06f4b8e3402(props) {
652
+ const _async = useRef(void 0);
653
+ let { value, textValue, minValue, maxValue, isDisabled, isReadOnly, isRequired, onIncrement, onIncrementPage, onDecrement, onDecrementPage, onDecrementToMin, onIncrementToMax } = props;
654
+ const stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault$1($a99895ee3dc79e61$exports), "@react-aria/spinbutton");
655
+ const clearAsync = () => clearTimeout(_async.current);
656
+ useEffect(() => {
657
+ return () => clearAsync();
658
+ }, []);
659
+ let onKeyDown = (e) => {
660
+ if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || isReadOnly) return;
661
+ switch (e.key) {
662
+ case "PageUp":
663
+ if (onIncrementPage) {
664
+ e.preventDefault();
665
+ onIncrementPage === null || onIncrementPage === void 0 ? void 0 : onIncrementPage();
666
+ break;
667
+ }
668
+ // fallthrough!
669
+ case "ArrowUp":
670
+ case "Up":
671
+ if (onIncrement) {
672
+ e.preventDefault();
673
+ onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
674
+ }
675
+ break;
676
+ case "PageDown":
677
+ if (onDecrementPage) {
678
+ e.preventDefault();
679
+ onDecrementPage === null || onDecrementPage === void 0 ? void 0 : onDecrementPage();
680
+ break;
681
+ }
682
+ // fallthrough
683
+ case "ArrowDown":
684
+ case "Down":
685
+ if (onDecrement) {
686
+ e.preventDefault();
687
+ onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
688
+ }
689
+ break;
690
+ case "Home":
691
+ if (onDecrementToMin) {
692
+ e.preventDefault();
693
+ onDecrementToMin === null || onDecrementToMin === void 0 ? void 0 : onDecrementToMin();
694
+ }
695
+ break;
696
+ case "End":
697
+ if (onIncrementToMax) {
698
+ e.preventDefault();
699
+ onIncrementToMax === null || onIncrementToMax === void 0 ? void 0 : onIncrementToMax();
700
+ }
701
+ break;
702
+ }
703
+ };
704
+ let isFocused = useRef(false);
705
+ let onFocus = () => {
706
+ isFocused.current = true;
707
+ };
708
+ let onBlur = () => {
709
+ isFocused.current = false;
710
+ };
711
+ let ariaTextValue = textValue === "" ? stringFormatter.format("Empty") : (textValue || `${value}`).replace("-", "−");
712
+ useEffect(() => {
713
+ if (isFocused.current) {
714
+ $319e236875307eab$export$d10ae4f68404609a("assertive");
715
+ $319e236875307eab$export$a9b970dcc4ae71a9(ariaTextValue, "assertive");
716
+ }
717
+ }, [
718
+ ariaTextValue
719
+ ]);
720
+ const onIncrementPressStart = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
721
+ clearAsync();
722
+ onIncrement === null || onIncrement === void 0 ? void 0 : onIncrement();
723
+ _async.current = window.setTimeout(() => {
724
+ if (maxValue === void 0 || isNaN(maxValue) || value === void 0 || isNaN(value) || value < maxValue) onIncrementPressStart(60);
725
+ }, initialStepDelay);
726
+ });
727
+ const onDecrementPressStart = $8ae05eaa5c114e9c$export$7f54fc3180508a52((initialStepDelay) => {
728
+ clearAsync();
729
+ onDecrement === null || onDecrement === void 0 ? void 0 : onDecrement();
730
+ _async.current = window.setTimeout(() => {
731
+ if (minValue === void 0 || isNaN(minValue) || value === void 0 || isNaN(value) || value > minValue) onDecrementPressStart(60);
732
+ }, initialStepDelay);
733
+ });
734
+ let cancelContextMenu = (e) => {
735
+ e.preventDefault();
736
+ };
737
+ let { addGlobalListener, removeAllGlobalListeners } = $03deb23ff14920c4$export$4eaf04e54aa8eed6();
738
+ return {
739
+ spinButtonProps: {
740
+ role: "spinbutton",
741
+ "aria-valuenow": value !== void 0 && !isNaN(value) ? value : void 0,
742
+ "aria-valuetext": ariaTextValue,
743
+ "aria-valuemin": minValue,
744
+ "aria-valuemax": maxValue,
745
+ "aria-disabled": isDisabled || void 0,
746
+ "aria-readonly": isReadOnly || void 0,
747
+ "aria-required": isRequired || void 0,
748
+ onKeyDown,
749
+ onFocus,
750
+ onBlur
751
+ },
752
+ incrementButtonProps: {
753
+ onPressStart: () => {
754
+ onIncrementPressStart(400);
755
+ addGlobalListener(window, "contextmenu", cancelContextMenu);
756
+ },
757
+ onPressEnd: () => {
758
+ clearAsync();
759
+ removeAllGlobalListeners();
760
+ },
761
+ onFocus,
762
+ onBlur
763
+ },
764
+ decrementButtonProps: {
765
+ onPressStart: () => {
766
+ onDecrementPressStart(400);
767
+ addGlobalListener(window, "contextmenu", cancelContextMenu);
768
+ },
769
+ onPressEnd: () => {
770
+ clearAsync();
771
+ removeAllGlobalListeners();
772
+ },
773
+ onFocus,
774
+ onBlur
775
+ }
776
+ };
777
+ }
778
+ var $fb78e0f6ab6349ed$exports = {};
779
+ $fb78e0f6ab6349ed$exports = {
780
+ "decrease": (args) => `خفض ${args.fieldLabel}`,
781
+ "increase": (args) => `زيادة ${args.fieldLabel}`,
782
+ "numberField": `حقل رقمي`
783
+ };
784
+ var $2776acdd9959a647$exports = {};
785
+ $2776acdd9959a647$exports = {
786
+ "decrease": (args) => `Намаляване ${args.fieldLabel}`,
787
+ "increase": (args) => `Усилване ${args.fieldLabel}`,
788
+ "numberField": `Номер на полето`
789
+ };
790
+ var $741954410a365ad3$exports = {};
791
+ $741954410a365ad3$exports = {
792
+ "decrease": (args) => `Snížit ${args.fieldLabel}`,
793
+ "increase": (args) => `Zvýšit ${args.fieldLabel}`,
794
+ "numberField": `Číselné pole`
795
+ };
796
+ var $8321ed0f8ab642f0$exports = {};
797
+ $8321ed0f8ab642f0$exports = {
798
+ "decrease": (args) => `Reducer ${args.fieldLabel}`,
799
+ "increase": (args) => `Øg ${args.fieldLabel}`,
800
+ "numberField": `Talfelt`
801
+ };
802
+ var $92978e0c4ecafa32$exports = {};
803
+ $92978e0c4ecafa32$exports = {
804
+ "decrease": (args) => `${args.fieldLabel} verringern`,
805
+ "increase": (args) => `${args.fieldLabel} erhöhen`,
806
+ "numberField": `Nummernfeld`
807
+ };
808
+ var $ac5ff71962864a84$exports = {};
809
+ $ac5ff71962864a84$exports = {
810
+ "decrease": (args) => `Μείωση ${args.fieldLabel}`,
811
+ "increase": (args) => `Αύξηση ${args.fieldLabel}`,
812
+ "numberField": `Πεδίο αριθμού`
813
+ };
814
+ var $efe4685e2440d8be$exports = {};
815
+ $efe4685e2440d8be$exports = {
816
+ "decrease": (args) => `Decrease ${args.fieldLabel}`,
817
+ "increase": (args) => `Increase ${args.fieldLabel}`,
818
+ "numberField": `Number field`
819
+ };
820
+ var $e50a9a48739b90e1$exports = {};
821
+ $e50a9a48739b90e1$exports = {
822
+ "decrease": (args) => `Reducir ${args.fieldLabel}`,
823
+ "increase": (args) => `Aumentar ${args.fieldLabel}`,
824
+ "numberField": `Campo de número`
825
+ };
826
+ var $6e0d5294ecbb8ab6$exports = {};
827
+ $6e0d5294ecbb8ab6$exports = {
828
+ "decrease": (args) => `Vähenda ${args.fieldLabel}`,
829
+ "increase": (args) => `Suurenda ${args.fieldLabel}`,
830
+ "numberField": `Numbri väli`
831
+ };
832
+ var $e7129d65f607f77f$exports = {};
833
+ $e7129d65f607f77f$exports = {
834
+ "decrease": (args) => `Vähennä ${args.fieldLabel}`,
835
+ "increase": (args) => `Lisää ${args.fieldLabel}`,
836
+ "numberField": `Numerokenttä`
837
+ };
838
+ var $d72adf5b20573e34$exports = {};
839
+ $d72adf5b20573e34$exports = {
840
+ "decrease": (args) => `Diminuer ${args.fieldLabel}`,
841
+ "increase": (args) => `Augmenter ${args.fieldLabel}`,
842
+ "numberField": `Champ de nombre`
843
+ };
844
+ var $a25c707e88b844a7$exports = {};
845
+ $a25c707e88b844a7$exports = {
846
+ "decrease": (args) => `הקטן ${args.fieldLabel}`,
847
+ "increase": (args) => `הגדל ${args.fieldLabel}`,
848
+ "numberField": `שדה מספר`
849
+ };
850
+ var $69b41140b9a4ca54$exports = {};
851
+ $69b41140b9a4ca54$exports = {
852
+ "decrease": (args) => `Smanji ${args.fieldLabel}`,
853
+ "increase": (args) => `Povećaj ${args.fieldLabel}`,
854
+ "numberField": `Polje broja`
855
+ };
856
+ var $81dab28f37f59d1a$exports = {};
857
+ $81dab28f37f59d1a$exports = {
858
+ "decrease": (args) => `${args.fieldLabel} csökkentése`,
859
+ "increase": (args) => `${args.fieldLabel} növelése`,
860
+ "numberField": `Számmező`
861
+ };
862
+ var $866555b31f2d7711$exports = {};
863
+ $866555b31f2d7711$exports = {
864
+ "decrease": (args) => `Riduci ${args.fieldLabel}`,
865
+ "increase": (args) => `Aumenta ${args.fieldLabel}`,
866
+ "numberField": `Campo numero`
867
+ };
868
+ var $dafcd55d52b9d371$exports = {};
869
+ $dafcd55d52b9d371$exports = {
870
+ "decrease": (args) => `${args.fieldLabel}を縮小`,
871
+ "increase": (args) => `${args.fieldLabel}を拡大`,
872
+ "numberField": `数値フィールド`
873
+ };
874
+ var $f090c1f8c5da0145$exports = {};
875
+ $f090c1f8c5da0145$exports = {
876
+ "decrease": (args) => `${args.fieldLabel} 감소`,
877
+ "increase": (args) => `${args.fieldLabel} 증가`,
878
+ "numberField": `번호 필드`
879
+ };
880
+ var $6f10f3a13360a75c$exports = {};
881
+ $6f10f3a13360a75c$exports = {
882
+ "decrease": (args) => `Sumažinti ${args.fieldLabel}`,
883
+ "increase": (args) => `Padidinti ${args.fieldLabel}`,
884
+ "numberField": `Numerio laukas`
885
+ };
886
+ var $47432cefd4b7bd1b$exports = {};
887
+ $47432cefd4b7bd1b$exports = {
888
+ "decrease": (args) => `Samazināšana ${args.fieldLabel}`,
889
+ "increase": (args) => `Palielināšana ${args.fieldLabel}`,
890
+ "numberField": `Skaitļu lauks`
891
+ };
892
+ var $dc578a950a2bf23d$exports = {};
893
+ $dc578a950a2bf23d$exports = {
894
+ "decrease": (args) => `Reduser ${args.fieldLabel}`,
895
+ "increase": (args) => `Øk ${args.fieldLabel}`,
896
+ "numberField": `Tallfelt`
897
+ };
898
+ var $353f1bfca4dc395a$exports = {};
899
+ $353f1bfca4dc395a$exports = {
900
+ "decrease": (args) => `${args.fieldLabel} verlagen`,
901
+ "increase": (args) => `${args.fieldLabel} verhogen`,
902
+ "numberField": `Getalveld`
903
+ };
904
+ var $241bc0bbd870e982$exports = {};
905
+ $241bc0bbd870e982$exports = {
906
+ "decrease": (args) => `Zmniejsz ${args.fieldLabel}`,
907
+ "increase": (args) => `Zwiększ ${args.fieldLabel}`,
908
+ "numberField": `Pole numeru`
909
+ };
910
+ var $da3005c7bd72b0a8$exports = {};
911
+ $da3005c7bd72b0a8$exports = {
912
+ "decrease": (args) => `Diminuir ${args.fieldLabel}`,
913
+ "increase": (args) => `Aumentar ${args.fieldLabel}`,
914
+ "numberField": `Campo de número`
915
+ };
916
+ var $cf48bfc540882310$exports = {};
917
+ $cf48bfc540882310$exports = {
918
+ "decrease": (args) => `Diminuir ${args.fieldLabel}`,
919
+ "increase": (args) => `Aumentar ${args.fieldLabel}`,
920
+ "numberField": `Campo numérico`
921
+ };
922
+ var $b63a28c481ab9ee3$exports = {};
923
+ $b63a28c481ab9ee3$exports = {
924
+ "decrease": (args) => `Scădere ${args.fieldLabel}`,
925
+ "increase": (args) => `Creștere ${args.fieldLabel}`,
926
+ "numberField": `Câmp numeric`
927
+ };
928
+ var $19f9df95c2464ab6$exports = {};
929
+ $19f9df95c2464ab6$exports = {
930
+ "decrease": (args) => `Уменьшение ${args.fieldLabel}`,
931
+ "increase": (args) => `Увеличение ${args.fieldLabel}`,
932
+ "numberField": `Числовое поле`
933
+ };
934
+ var $b272932a685e8482$exports = {};
935
+ $b272932a685e8482$exports = {
936
+ "decrease": (args) => `Znížiť ${args.fieldLabel}`,
937
+ "increase": (args) => `Zvýšiť ${args.fieldLabel}`,
938
+ "numberField": `Číselné pole`
939
+ };
940
+ var $cbaf8b5b61f9e544$exports = {};
941
+ $cbaf8b5b61f9e544$exports = {
942
+ "decrease": (args) => `Upadati ${args.fieldLabel}`,
943
+ "increase": (args) => `Povečajte ${args.fieldLabel}`,
944
+ "numberField": `Številčno polje`
945
+ };
946
+ var $e0a3af6ac1449b2f$exports = {};
947
+ $e0a3af6ac1449b2f$exports = {
948
+ "decrease": (args) => `Smanji ${args.fieldLabel}`,
949
+ "increase": (args) => `Povećaj ${args.fieldLabel}`,
950
+ "numberField": `Polje broja`
951
+ };
952
+ var $71e167d2458a6019$exports = {};
953
+ $71e167d2458a6019$exports = {
954
+ "decrease": (args) => `Minska ${args.fieldLabel}`,
955
+ "increase": (args) => `Öka ${args.fieldLabel}`,
956
+ "numberField": `Nummerfält`
957
+ };
958
+ var $3719245abc082946$exports = {};
959
+ $3719245abc082946$exports = {
960
+ "decrease": (args) => `${args.fieldLabel} azalt`,
961
+ "increase": (args) => `${args.fieldLabel} arttır`,
962
+ "numberField": `Sayı alanı`
963
+ };
964
+ var $2ccc589e2f51824d$exports = {};
965
+ $2ccc589e2f51824d$exports = {
966
+ "decrease": (args) => `Зменшити ${args.fieldLabel}`,
967
+ "increase": (args) => `Збільшити ${args.fieldLabel}`,
968
+ "numberField": `Поле номера`
969
+ };
970
+ var $e1103cb9b4c13942$exports = {};
971
+ $e1103cb9b4c13942$exports = {
972
+ "decrease": (args) => `降低 ${args.fieldLabel}`,
973
+ "increase": (args) => `提高 ${args.fieldLabel}`,
974
+ "numberField": `数字字段`
975
+ };
976
+ var $448607634f80dccb$exports = {};
977
+ $448607634f80dccb$exports = {
978
+ "decrease": (args) => `縮小 ${args.fieldLabel}`,
979
+ "increase": (args) => `放大 ${args.fieldLabel}`,
980
+ "numberField": `數字欄位`
981
+ };
982
+ var $280a227d7cb94b92$exports = {};
983
+ $280a227d7cb94b92$exports = {
984
+ "ar-AE": $fb78e0f6ab6349ed$exports,
985
+ "bg-BG": $2776acdd9959a647$exports,
986
+ "cs-CZ": $741954410a365ad3$exports,
987
+ "da-DK": $8321ed0f8ab642f0$exports,
988
+ "de-DE": $92978e0c4ecafa32$exports,
989
+ "el-GR": $ac5ff71962864a84$exports,
990
+ "en-US": $efe4685e2440d8be$exports,
991
+ "es-ES": $e50a9a48739b90e1$exports,
992
+ "et-EE": $6e0d5294ecbb8ab6$exports,
993
+ "fi-FI": $e7129d65f607f77f$exports,
994
+ "fr-FR": $d72adf5b20573e34$exports,
995
+ "he-IL": $a25c707e88b844a7$exports,
996
+ "hr-HR": $69b41140b9a4ca54$exports,
997
+ "hu-HU": $81dab28f37f59d1a$exports,
998
+ "it-IT": $866555b31f2d7711$exports,
999
+ "ja-JP": $dafcd55d52b9d371$exports,
1000
+ "ko-KR": $f090c1f8c5da0145$exports,
1001
+ "lt-LT": $6f10f3a13360a75c$exports,
1002
+ "lv-LV": $47432cefd4b7bd1b$exports,
1003
+ "nb-NO": $dc578a950a2bf23d$exports,
1004
+ "nl-NL": $353f1bfca4dc395a$exports,
1005
+ "pl-PL": $241bc0bbd870e982$exports,
1006
+ "pt-BR": $da3005c7bd72b0a8$exports,
1007
+ "pt-PT": $cf48bfc540882310$exports,
1008
+ "ro-RO": $b63a28c481ab9ee3$exports,
1009
+ "ru-RU": $19f9df95c2464ab6$exports,
1010
+ "sk-SK": $b272932a685e8482$exports,
1011
+ "sl-SI": $cbaf8b5b61f9e544$exports,
1012
+ "sr-SP": $e0a3af6ac1449b2f$exports,
1013
+ "sv-SE": $71e167d2458a6019$exports,
1014
+ "tr-TR": $3719245abc082946$exports,
1015
+ "uk-UA": $2ccc589e2f51824d$exports,
1016
+ "zh-CN": $e1103cb9b4c13942$exports,
1017
+ "zh-TW": $448607634f80dccb$exports
1018
+ };
1019
+ function $parcel$interopDefault(a) {
1020
+ return a && a.__esModule ? a.default : a;
1021
+ }
1022
+ function $81397a9303501bda$export$23f548e970bdf099(props, state, inputRef) {
1023
+ let { id, decrementAriaLabel, incrementAriaLabel, isDisabled, isReadOnly, isRequired, minValue, maxValue, autoFocus, label, formatOptions, onBlur = () => {
1024
+ }, onFocus, onFocusChange, onKeyDown, onKeyUp, description, errorMessage, isWheelDisabled, ...otherProps } = props;
1025
+ let { increment, incrementToMax, decrement, decrementToMin, numberValue, inputValue, commit, commitValidation } = state;
1026
+ const stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($280a227d7cb94b92$exports), "@react-aria/numberfield");
1027
+ let inputId = $bdb11010cef70236$export$f680877a34711e37(id);
1028
+ let { focusProps } = $a1ea59d68270f0dd$export$f8168d8dd8fd66e6({
1029
+ onBlur() {
1030
+ commit();
1031
+ }
1032
+ });
1033
+ let numberFormatter = $a916eb452884faea$export$b7a616150fdb9f44(formatOptions);
1034
+ let intlOptions = useMemo(() => numberFormatter.resolvedOptions(), [
1035
+ numberFormatter
1036
+ ]);
1037
+ let textValueFormatter = $a916eb452884faea$export$b7a616150fdb9f44({
1038
+ ...formatOptions,
1039
+ currencySign: void 0
1040
+ });
1041
+ let textValue = useMemo(() => isNaN(numberValue) ? "" : textValueFormatter.format(numberValue), [
1042
+ textValueFormatter,
1043
+ numberValue
1044
+ ]);
1045
+ let { spinButtonProps, incrementButtonProps: incButtonProps, decrementButtonProps: decButtonProps } = $d2e8511e6f209edf$export$e908e06f4b8e3402({
1046
+ isDisabled,
1047
+ isReadOnly,
1048
+ isRequired,
1049
+ maxValue,
1050
+ minValue,
1051
+ onIncrement: increment,
1052
+ onIncrementToMax: incrementToMax,
1053
+ onDecrement: decrement,
1054
+ onDecrementToMin: decrementToMin,
1055
+ value: numberValue,
1056
+ textValue
1057
+ });
1058
+ let [focusWithin, setFocusWithin] = useState(false);
1059
+ let { focusWithinProps } = $9ab94262bd0047c7$export$420e68273165f4ec({
1060
+ isDisabled,
1061
+ onFocusWithinChange: setFocusWithin
1062
+ });
1063
+ let onWheel = useCallback((e) => {
1064
+ if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) return;
1065
+ if (e.deltaY > 0) increment();
1066
+ else if (e.deltaY < 0) decrement();
1067
+ }, [
1068
+ decrement,
1069
+ increment
1070
+ ]);
1071
+ let scrollingDisabled = isWheelDisabled || isDisabled || isReadOnly || !focusWithin;
1072
+ $7d0a636d7a4dcefd$export$2123ff2b87c81ca({
1073
+ onScroll: onWheel,
1074
+ isDisabled: scrollingDisabled
1075
+ }, inputRef);
1076
+ var _intlOptions_maximumFractionDigits;
1077
+ let hasDecimals = ((_intlOptions_maximumFractionDigits = intlOptions.maximumFractionDigits) !== null && _intlOptions_maximumFractionDigits !== void 0 ? _intlOptions_maximumFractionDigits : 0) > 0;
1078
+ let hasNegative = state.minValue === void 0 || isNaN(state.minValue) || state.minValue < 0;
1079
+ let inputMode = "numeric";
1080
+ if ($c87311424ea30a05$export$186c6964ca17d99()) {
1081
+ if (hasNegative) inputMode = "text";
1082
+ else if (hasDecimals) inputMode = "decimal";
1083
+ } else if ($c87311424ea30a05$export$a11b0059900ceec8()) {
1084
+ if (hasNegative) inputMode = "numeric";
1085
+ else if (hasDecimals) inputMode = "decimal";
1086
+ }
1087
+ let onChange = (value) => {
1088
+ if (state.validate(value)) state.setInputValue(value);
1089
+ };
1090
+ let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
1091
+ let onKeyDownEnter = useCallback((e) => {
1092
+ if (e.key === "Enter") {
1093
+ commit();
1094
+ commitValidation();
1095
+ } else e.continuePropagation();
1096
+ }, [
1097
+ commit,
1098
+ commitValidation
1099
+ ]);
1100
+ let { isInvalid, validationErrors, validationDetails } = state.displayValidation;
1101
+ let { labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps } = $d841c8010a73d545$export$4f384c9210e583c3({
1102
+ ...otherProps,
1103
+ ...domProps,
1104
+ name: void 0,
1105
+ label,
1106
+ autoFocus,
1107
+ isDisabled,
1108
+ isReadOnly,
1109
+ isRequired,
1110
+ validate: void 0,
1111
+ [$e5be200c675c3b3a$export$a763b9476acd3eb]: state,
1112
+ value: inputValue,
1113
+ defaultValue: void 0,
1114
+ autoComplete: "off",
1115
+ "aria-label": props["aria-label"] || void 0,
1116
+ "aria-labelledby": props["aria-labelledby"] || void 0,
1117
+ id: inputId,
1118
+ type: "text",
1119
+ inputMode,
1120
+ onChange,
1121
+ onBlur,
1122
+ onFocus,
1123
+ onFocusChange,
1124
+ onKeyDown: useMemo(() => $ff5963eb1fccf552$export$e08e3b67e392101e(onKeyDownEnter, onKeyDown), [
1125
+ onKeyDownEnter,
1126
+ onKeyDown
1127
+ ]),
1128
+ onKeyUp,
1129
+ description,
1130
+ errorMessage
1131
+ }, state, inputRef);
1132
+ $99facab73266f662$export$5add1d006293d136(inputRef, state.numberValue, state.setNumberValue);
1133
+ let inputProps = $3ef42575df84b30b$export$9d1611c77c2fe928(spinButtonProps, focusProps, textFieldProps, {
1134
+ // override the spinbutton role, we can't focus a spin button with VO
1135
+ role: null,
1136
+ // ignore aria-roledescription on iOS so that required state will announce when it is present
1137
+ "aria-roledescription": !$c87311424ea30a05$export$fedb369cb70207f1() ? stringFormatter.format("numberField") : null,
1138
+ "aria-valuemax": null,
1139
+ "aria-valuemin": null,
1140
+ "aria-valuenow": null,
1141
+ "aria-valuetext": null,
1142
+ autoCorrect: "off",
1143
+ spellCheck: "false"
1144
+ });
1145
+ if (props.validationBehavior === "native") inputProps["aria-required"] = void 0;
1146
+ let onButtonPressStart = (e) => {
1147
+ var _inputRef_current;
1148
+ if (document.activeElement === inputRef.current) return;
1149
+ if (e.pointerType === "mouse") (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
1150
+ else e.target.focus();
1151
+ };
1152
+ let fieldLabel = props["aria-label"] || (typeof props.label === "string" ? props.label : "");
1153
+ let ariaLabelledby;
1154
+ if (!fieldLabel) ariaLabelledby = props.label != null ? labelProps.id : props["aria-labelledby"];
1155
+ let incrementId = $bdb11010cef70236$export$f680877a34711e37();
1156
+ let decrementId = $bdb11010cef70236$export$f680877a34711e37();
1157
+ let incrementButtonProps = $3ef42575df84b30b$export$9d1611c77c2fe928(incButtonProps, {
1158
+ "aria-label": incrementAriaLabel || stringFormatter.format("increase", {
1159
+ fieldLabel
1160
+ }).trim(),
1161
+ id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,
1162
+ "aria-labelledby": ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,
1163
+ "aria-controls": inputId,
1164
+ excludeFromTabOrder: true,
1165
+ preventFocusOnPress: true,
1166
+ allowFocusWhenDisabled: true,
1167
+ isDisabled: !state.canIncrement,
1168
+ onPressStart: onButtonPressStart
1169
+ });
1170
+ let decrementButtonProps = $3ef42575df84b30b$export$9d1611c77c2fe928(decButtonProps, {
1171
+ "aria-label": decrementAriaLabel || stringFormatter.format("decrease", {
1172
+ fieldLabel
1173
+ }).trim(),
1174
+ id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,
1175
+ "aria-labelledby": ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,
1176
+ "aria-controls": inputId,
1177
+ excludeFromTabOrder: true,
1178
+ preventFocusOnPress: true,
1179
+ allowFocusWhenDisabled: true,
1180
+ isDisabled: !state.canDecrement,
1181
+ onPressStart: onButtonPressStart
1182
+ });
1183
+ return {
1184
+ groupProps: {
1185
+ ...focusWithinProps,
1186
+ role: "group",
1187
+ "aria-disabled": isDisabled,
1188
+ "aria-invalid": isInvalid ? "true" : void 0
1189
+ },
1190
+ labelProps,
1191
+ inputProps,
1192
+ incrementButtonProps,
1193
+ decrementButtonProps,
1194
+ errorMessageProps,
1195
+ descriptionProps,
1196
+ isInvalid,
1197
+ validationErrors,
1198
+ validationDetails
1199
+ };
1200
+ }
1201
+ export {
1202
+ $de67e98908f0c6ee$export$7f629e9dc1ecf37c as $,
1203
+ $81397a9303501bda$export$23f548e970bdf099 as a,
1204
+ $d2e8511e6f209edf$export$e908e06f4b8e3402 as b,
1205
+ $7d0a636d7a4dcefd$export$2123ff2b87c81ca as c,
1206
+ $d841c8010a73d545$export$4f384c9210e583c3 as d
1207
+ };