lizaui 12.0.19 → 12.0.20

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 (121) hide show
  1. package/dist/button-group/index.cjs.js +1 -1
  2. package/dist/button-group/index.es.js +2 -2
  3. package/dist/button-v2/index.cjs.js +3 -3
  4. package/dist/button-v2/index.es.js +3 -3
  5. package/dist/chunks/{Button-DK8vIKEw.js → Button-B-wLEikV.js} +5 -5
  6. package/dist/chunks/{Button-DK8vIKEw.js.map → Button-B-wLEikV.js.map} +1 -1
  7. package/dist/chunks/{Button-daStTTzk.js → Button-DdtCMsXJ.js} +5 -5
  8. package/dist/chunks/{Button-daStTTzk.js.map → Button-DdtCMsXJ.js.map} +1 -1
  9. package/dist/chunks/{FocusScope-BJBTKF3R.js → FocusScope-BVEv8CgQ.js} +3 -3
  10. package/dist/chunks/{FocusScope-BJBTKF3R.js.map → FocusScope-BVEv8CgQ.js.map} +1 -1
  11. package/dist/chunks/{FocusScope-D-jCzxHq.js → FocusScope-Txa6B8J4.js} +3 -3
  12. package/dist/chunks/{FocusScope-D-jCzxHq.js.map → FocusScope-Txa6B8J4.js.map} +1 -1
  13. package/dist/chunks/{I18nProvider-8HiWALvM.js → I18nProvider-BUfkOEhQ.js} +2 -2
  14. package/dist/chunks/{I18nProvider-8HiWALvM.js.map → I18nProvider-BUfkOEhQ.js.map} +1 -1
  15. package/dist/chunks/{I18nProvider-DSyuLrKX.js → I18nProvider-Dfr8Km7j.js} +2 -2
  16. package/dist/chunks/{I18nProvider-DSyuLrKX.js.map → I18nProvider-Dfr8Km7j.js.map} +1 -1
  17. package/dist/chunks/{ProgressBar-BiWM84v5.js → ProgressBar-BPfa9vzz.js} +5 -5
  18. package/dist/chunks/{ProgressBar-BiWM84v5.js.map → ProgressBar-BPfa9vzz.js.map} +1 -1
  19. package/dist/chunks/{ProgressBar-CYj13G9N.js → ProgressBar-D0THM7Dn.js} +5 -5
  20. package/dist/chunks/{ProgressBar-CYj13G9N.js.map → ProgressBar-D0THM7Dn.js.map} +1 -1
  21. package/dist/chunks/{VisuallyHidden-BbvdASBh.js → VisuallyHidden-CiBoSB1U.js} +3 -3
  22. package/dist/chunks/{VisuallyHidden-BbvdASBh.js.map → VisuallyHidden-CiBoSB1U.js.map} +1 -1
  23. package/dist/chunks/{VisuallyHidden-C-WtISJo.js → VisuallyHidden-paROiuP0.js} +3 -3
  24. package/dist/chunks/{VisuallyHidden-C-WtISJo.js.map → VisuallyHidden-paROiuP0.js.map} +1 -1
  25. package/dist/chunks/{button-group-CAIXp_CY.js → button-group-CGyXDmwt.js} +2 -2
  26. package/dist/chunks/{button-group-CAIXp_CY.js.map → button-group-CGyXDmwt.js.map} +1 -1
  27. package/dist/chunks/{button-group-CXxfE0Nh.js → button-group-CJ72SS4c.js} +2 -2
  28. package/dist/chunks/{button-group-CXxfE0Nh.js.map → button-group-CJ72SS4c.js.map} +1 -1
  29. package/dist/chunks/{compose-zqddfADC.js → compose-Cfw0sImv.js} +2 -2
  30. package/dist/chunks/{compose-zqddfADC.js.map → compose-Cfw0sImv.js.map} +1 -1
  31. package/dist/chunks/{compose-DVjlikkg.js → compose-Ch-3fhek.js} +2 -2
  32. package/dist/chunks/{compose-DVjlikkg.js.map → compose-Ch-3fhek.js.map} +1 -1
  33. package/dist/chunks/{focusSafely-kwqdsDlJ.js → focusSafely--u_yGz_7.js} +2 -2
  34. package/dist/chunks/{focusSafely-kwqdsDlJ.js.map → focusSafely--u_yGz_7.js.map} +1 -1
  35. package/dist/chunks/{focusSafely-CoIRf3xM.js → focusSafely-Cxp4n3zg.js} +2 -2
  36. package/dist/chunks/{focusSafely-CoIRf3xM.js.map → focusSafely-Cxp4n3zg.js.map} +1 -1
  37. package/dist/chunks/mergeRefs-Y9oG13yB.js +24 -0
  38. package/dist/chunks/mergeRefs-Y9oG13yB.js.map +1 -0
  39. package/dist/chunks/mergeRefs-t6d4XvXq.js +25 -0
  40. package/dist/chunks/mergeRefs-t6d4XvXq.js.map +1 -0
  41. package/dist/chunks/{number-apyCzMO6.js → number-DDpsLN2d.js} +2 -2
  42. package/dist/chunks/{number-apyCzMO6.js.map → number-DDpsLN2d.js.map} +1 -1
  43. package/dist/chunks/{number-ClNYm70x.js → number-DigQ78uS.js} +2 -2
  44. package/dist/chunks/{number-ClNYm70x.js.map → number-DigQ78uS.js.map} +1 -1
  45. package/dist/chunks/{radio-group-dNkQoY2h.js → radio-group-4o00BMkw.js} +13 -12
  46. package/dist/chunks/{radio-group-dNkQoY2h.js.map → radio-group-4o00BMkw.js.map} +1 -1
  47. package/dist/chunks/{radio-group-V6X0yA63.js → radio-group-voOEmmYI.js} +14 -13
  48. package/dist/chunks/{radio-group-V6X0yA63.js.map → radio-group-voOEmmYI.js.map} +1 -1
  49. package/dist/chunks/{useFormReset-Cf2fzi86.js → useFormReset-BL4MH85g.js} +2 -2
  50. package/dist/chunks/{useFormReset-Cf2fzi86.js.map → useFormReset-BL4MH85g.js.map} +1 -1
  51. package/dist/chunks/{useFormReset-Bwwr8ivc.js → useFormReset-YYNrlE-8.js} +2 -2
  52. package/dist/chunks/{useFormReset-Bwwr8ivc.js.map → useFormReset-YYNrlE-8.js.map} +1 -1
  53. package/dist/chunks/{useHover-Dn1CIUT8.js → useHover-COOv7KTv.js} +3 -3
  54. package/dist/chunks/{useHover-Dn1CIUT8.js.map → useHover-COOv7KTv.js.map} +1 -1
  55. package/dist/chunks/{useHover-B3gEex-2.js → useHover-_Q7y99al.js} +3 -3
  56. package/dist/chunks/{useHover-B3gEex-2.js.map → useHover-_Q7y99al.js.map} +1 -1
  57. package/dist/chunks/{useLabel-todYehRc.js → useLabel-DgF69V6e.js} +2 -2
  58. package/dist/chunks/{useLabel-todYehRc.js.map → useLabel-DgF69V6e.js.map} +1 -1
  59. package/dist/chunks/{useLabel-ClsFWJD0.js → useLabel-DjFU7E9u.js} +2 -2
  60. package/dist/chunks/{useLabel-ClsFWJD0.js.map → useLabel-DjFU7E9u.js.map} +1 -1
  61. package/dist/chunks/{useMove-C6JNYkjM.js → useMove-D5nRSeRO.js} +3 -3
  62. package/dist/chunks/{useMove-C6JNYkjM.js.map → useMove-D5nRSeRO.js.map} +1 -1
  63. package/dist/chunks/{useMove-BifTPO2Z.js → useMove-KCXqjWm-.js} +3 -3
  64. package/dist/chunks/{useMove-BifTPO2Z.js.map → useMove-KCXqjWm-.js.map} +1 -1
  65. package/dist/chunks/{usePress-BtBLddLY.js → usePress-4yjnfhQ_.js} +4 -4
  66. package/dist/chunks/{usePress-BtBLddLY.js.map → usePress-4yjnfhQ_.js.map} +1 -1
  67. package/dist/chunks/{usePress-D_rPVnKY.js → usePress-BnXPCNhr.js} +4 -4
  68. package/dist/chunks/{usePress-D_rPVnKY.js.map → usePress-BnXPCNhr.js.map} +1 -1
  69. package/dist/chunks/{useProgressBar--b8hyT4v.js → useProgressBar-D2OaXApL.js} +4 -4
  70. package/dist/chunks/{useProgressBar--b8hyT4v.js.map → useProgressBar-D2OaXApL.js.map} +1 -1
  71. package/dist/chunks/{useProgressBar-B1VDzYE6.js → useProgressBar-DJZIQMyS.js} +4 -4
  72. package/dist/chunks/{useProgressBar-B1VDzYE6.js.map → useProgressBar-DJZIQMyS.js.map} +1 -1
  73. package/dist/chunks/{useSlot-DnUNwd8f.js → useSlot-CEcR5EcL.js} +4 -4
  74. package/dist/chunks/{useSlot-DnUNwd8f.js.map → useSlot-CEcR5EcL.js.map} +1 -1
  75. package/dist/chunks/{useSlot-Dwd3MQYT.js → useSlot-YqT3Ml-j.js} +4 -4
  76. package/dist/chunks/{useSlot-Dwd3MQYT.js.map → useSlot-YqT3Ml-j.js.map} +1 -1
  77. package/dist/chunks/{utils-Ki_DdjNi.js → utils-B3shU_E6.js} +7 -28
  78. package/dist/chunks/utils-B3shU_E6.js.map +1 -0
  79. package/dist/chunks/{utils-GD-7Nve2.js → utils-DvHk9ofL.js} +5 -26
  80. package/dist/chunks/utils-DvHk9ofL.js.map +1 -0
  81. package/dist/components/scroll-shadow/index.d.ts +22 -0
  82. package/dist/components/scroll-shadow/index.d.ts.map +1 -0
  83. package/dist/components/scroll-shadow/scroll-shadow.d.ts +33 -0
  84. package/dist/components/scroll-shadow/scroll-shadow.d.ts.map +1 -0
  85. package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts +70 -0
  86. package/dist/components/scroll-shadow/scroll-shadow.styles.d.ts.map +1 -0
  87. package/dist/components/scroll-shadow/use-safe-layout-effect.d.ts +3 -0
  88. package/dist/components/scroll-shadow/use-safe-layout-effect.d.ts.map +1 -0
  89. package/dist/components/scroll-shadow/use-scroll-shadow.d.ts +12 -0
  90. package/dist/components/scroll-shadow/use-scroll-shadow.d.ts.map +1 -0
  91. package/dist/data-table/index.cjs.js +12 -11
  92. package/dist/data-table/index.cjs.js.map +1 -1
  93. package/dist/data-table/index.es.js +11 -10
  94. package/dist/data-table/index.es.js.map +1 -1
  95. package/dist/index.cjs.js +3 -3
  96. package/dist/index.es.js +3 -3
  97. package/dist/lizaui.css +174 -0
  98. package/dist/meter/index.cjs.js +4 -4
  99. package/dist/meter/index.es.js +4 -4
  100. package/dist/progress-bar/index.cjs.js +2 -2
  101. package/dist/progress-bar/index.es.js +2 -2
  102. package/dist/radio/index.cjs.js +2 -2
  103. package/dist/radio/index.es.js +2 -2
  104. package/dist/radio-group/index.cjs.js +1 -1
  105. package/dist/radio-group/index.es.js +2 -2
  106. package/dist/scroll-shadow/index.cjs.js +394 -0
  107. package/dist/scroll-shadow/index.cjs.js.map +1 -0
  108. package/dist/scroll-shadow/index.es.js +394 -0
  109. package/dist/scroll-shadow/index.es.js.map +1 -0
  110. package/dist/scroll-shadow.d.ts +2 -0
  111. package/dist/slider/index.cjs.js +9 -9
  112. package/dist/slider/index.es.js +9 -9
  113. package/dist/toggle-switch/index.cjs.js +9 -8
  114. package/dist/toggle-switch/index.cjs.js.map +1 -1
  115. package/dist/toggle-switch/index.es.js +8 -7
  116. package/dist/toggle-switch/index.es.js.map +1 -1
  117. package/dist/toolbar/index.cjs.js +4 -4
  118. package/dist/toolbar/index.es.js +4 -4
  119. package/package.json +7 -1
  120. package/dist/chunks/utils-GD-7Nve2.js.map +0 -1
  121. package/dist/chunks/utils-Ki_DdjNi.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const buttonGroup = require("../chunks/button-group-CXxfE0Nh.js");
3
+ const buttonGroup = require("../chunks/button-group-CJ72SS4c.js");
4
4
  const ButtonGroup = Object.assign(buttonGroup.ButtonGroupRoot, {
5
5
  Root: buttonGroup.ButtonGroupRoot,
6
6
  Separator: buttonGroup.ButtonGroupSeparator
@@ -1,5 +1,5 @@
1
- import { B as ButtonGroupRoot, a as ButtonGroupSeparator } from "../chunks/button-group-CAIXp_CY.js";
2
- import { b, c, d } from "../chunks/button-group-CAIXp_CY.js";
1
+ import { B as ButtonGroupRoot, a as ButtonGroupSeparator } from "../chunks/button-group-CGyXDmwt.js";
2
+ import { b, c, d } from "../chunks/button-group-CGyXDmwt.js";
3
3
  const ButtonGroup = Object.assign(ButtonGroupRoot, {
4
4
  Root: ButtonGroupRoot,
5
5
  Separator: ButtonGroupSeparator
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const buttonGroup = require("../chunks/button-group-CXxfE0Nh.js");
3
+ const buttonGroup = require("../chunks/button-group-CJ72SS4c.js");
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
5
  const React = require("react");
6
- const Button = require("../chunks/Button-daStTTzk.js");
6
+ const Button = require("../chunks/Button-DdtCMsXJ.js");
7
7
  const tv = require("../chunks/tv-CLVUgvdm.js");
8
8
  const ripple = require("../chunks/ripple-DhT-tKza.js");
9
- const compose = require("../chunks/compose-zqddfADC.js");
9
+ const compose = require("../chunks/compose-Cfw0sImv.js");
10
10
  const buttonV2Variants = tv.tv({
11
11
  base: "button-v2",
12
12
  defaultVariants: {
@@ -1,10 +1,10 @@
1
- import { c as ButtonGroupContext, b as BUTTON_GROUP_CHILD } from "../chunks/button-group-CAIXp_CY.js";
1
+ import { c as ButtonGroupContext, b as BUTTON_GROUP_CHILD } from "../chunks/button-group-CGyXDmwt.js";
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import { useContext, useCallback } from "react";
4
- import { $ as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../chunks/Button-DK8vIKEw.js";
4
+ import { $ as $7705c033048f6da7$export$353f5b6fc5456de1 } from "../chunks/Button-B-wLEikV.js";
5
5
  import { t as tv } from "../chunks/tv-CBcwbOk5.js";
6
6
  import { u as useRipple, R as Ripple } from "../chunks/ripple-II020Q8I.js";
7
- import { a as composeTwRenderProps } from "../chunks/compose-DVjlikkg.js";
7
+ import { a as composeTwRenderProps } from "../chunks/compose-Ch-3fhek.js";
8
8
  const buttonV2Variants = tv({
9
9
  base: "button-v2",
10
10
  defaultVariants: {
@@ -1,8 +1,8 @@
1
- import { d as $bbaa08b3cd72f041$export$9d1611c77c2fe928, $ as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, b as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, g as $390e54f620492c70$export$f680877a34711e37, c as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-Ki_DdjNi.js";
2
- import { $ as $6c0095e7e99364f2$export$e9f3bf65a26ce129 } from "./ProgressBar-CYj13G9N.js";
1
+ import { d as $bbaa08b3cd72f041$export$9d1611c77c2fe928, $ as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, b as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, g as $390e54f620492c70$export$f680877a34711e37, c as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-B3shU_E6.js";
2
+ import { $ as $6c0095e7e99364f2$export$e9f3bf65a26ce129 } from "./ProgressBar-D0THM7Dn.js";
3
3
  import { $ as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f } from "./filterDOMProps-DqJGvnmf.js";
4
- import { e as $d1116acdf220c2da$export$4c014de7c8940b4c, f as $0c4a58759813079a$export$4e328f61c538687f, g as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-B3gEex-2.js";
5
- import { $ as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-D_rPVnKY.js";
4
+ import { e as $d1116acdf220c2da$export$4c014de7c8940b4c, f as $0c4a58759813079a$export$4e328f61c538687f, g as $e969f22b6713ca4a$export$ae780daf29e6d456 } from "./useHover-_Q7y99al.js";
5
+ import { $ as $d27d541f9569d26d$export$45712eceda6fad21 } from "./usePress-BnXPCNhr.js";
6
6
  import React__default, { forwardRef, useContext, createContext, useRef, useEffect } from "react";
7
7
  if (typeof HTMLTemplateElement !== "undefined") {
8
8
  Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
@@ -268,4 +268,4 @@ export {
268
268
  $a46cf152bb926da5$export$a9b970dcc4ae71a9 as b,
269
269
  $7705c033048f6da7$export$24d547caef80ccd1 as c
270
270
  };
271
- //# sourceMappingURL=Button-DK8vIKEw.js.map
271
+ //# sourceMappingURL=Button-B-wLEikV.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button-DK8vIKEw.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/collections/Hidden.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/button/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Button.mjs"],"sourcesContent":["import $iuCOg$react, {createContext as $iuCOg$createContext, useContext as $iuCOg$useContext, forwardRef as $iuCOg$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $d7f64c32b702fe2c$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $iuCOg$createContext)(false);\nfunction $d7f64c32b702fe2c$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement((0, $iuCOg$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $iuCOg$react).createElement($d7f64c32b702fe2c$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement(\"template\", null, children);\n}\nfunction $d7f64c32b702fe2c$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n // oxlint-disable-next-line react/react-compiler\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $iuCOg$forwardRef)(Wrapper);\n}\nfunction $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59() {\n return (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$d7f64c32b702fe2c$export$94b6d0abf7d33e8c as HiddenContext, $d7f64c32b702fe2c$export$8dc98ba7eadeaa56 as Hidden, $d7f64c32b702fe2c$export$86427a43e3e48ebb as createHideableComponent, $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.mjs.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $a46cf152bb926da5$var$liveAnnouncer = null;\nfunction $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer = new $a46cf152bb926da5$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n if (// @ts-ignore\n !(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($a46cf152bb926da5$var$liveAnnouncer?.isAttached()) $a46cf152bb926da5$var$liveAnnouncer?.announce(message, assertiveness, timeout);\n }, 100);\n else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $a46cf152bb926da5$export$d10ae4f68404609a(assertiveness) {\n if ($a46cf152bb926da5$var$liveAnnouncer) $a46cf152bb926da5$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $a46cf152bb926da5$export$d8686216b8b81b2f() {\n if ($a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer.destroy();\n $a46cf152bb926da5$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $a46cf152bb926da5$var$LiveAnnouncer {\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n isAttached() {\n return this.node?.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') this.assertiveLog?.appendChild(node);\n else this.politeLog?.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n}\n\n\nexport {$a46cf152bb926da5$export$a9b970dcc4ae71a9 as announce, $a46cf152bb926da5$export$d10ae4f68404609a as clearAnnouncer, $a46cf152bb926da5$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.mjs.map\n","import {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {usePress as $d27d541f9569d26d$export$45712eceda6fad21} from \"../interactions/usePress.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $ac4318a9c075bb9f$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)(props, ref);\n if (allowFocusWhenDisabled) // oxlint-disable-next-line react/react-compiler\n focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(focusableProps, pressProps, (0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$ac4318a9c075bb9f$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $6c0095e7e99364f2$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $9s8kH$announce} from \"react-aria/private/live-announcer/LiveAnnouncer\";\nimport {useButton as $9s8kH$useButton} from \"react-aria/useButton\";\nimport {createHideableComponent as $9s8kH$createHideableComponent} from \"react-aria/private/collections/Hidden\";\nimport {filterDOMProps as $9s8kH$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $9s8kH$mergeProps} from \"react-aria/mergeProps\";\nimport $9s8kH$react, {createContext as $9s8kH$createContext, useRef as $9s8kH$useRef, useEffect as $9s8kH$useEffect} from \"react\";\nimport {useFocusRing as $9s8kH$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $9s8kH$useHover} from \"react-aria/useHover\";\nimport {useId as $9s8kH$useId} from \"react-aria/useId\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\nconst $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $9s8kH$createContext)({});\nconst $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $9s8kH$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $9s8kH$useButton)(props, ref);\n buttonProps = $7705c033048f6da7$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $9s8kH$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9s8kH$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending ?? false\n };\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $9s8kH$useId)(buttonProps.id);\n let progressId = (0, $9s8kH$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $9s8kH$useRef)(isPending);\n (0, $9s8kH$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $9s8kH$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $9s8kH$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $9s8kH$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).button, {\n ...(0, $9s8kH$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $6c0095e7e99364f2$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $7705c033048f6da7$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $7705c033048f6da7$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$7705c033048f6da7$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$7705c033048f6da7$export$24d547caef80ccd1 as ButtonContext, $7705c033048f6da7$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.mjs.map\n"],"names":["$iuCOg$createContext","$iuCOg$useContext","$iuCOg$react","$iuCOg$forwardRef","$9s8kH$createContext","$9s8kH$createHideableComponent","$9s8kH$useButton","$9s8kH$useFocusRing","$9s8kH$useHover","$9s8kH$useId","$9s8kH$useRef","$9s8kH$useEffect","$9s8kH$announce","$9s8kH$filterDOMProps","$9s8kH$react","$9s8kH$mergeProps"],"mappings":";;;;;;AAmBA,IAAI,OAAO,wBAAwB,aAAa;AAC5C,SAAO,eAAe,oBAAoB,WAAW,cAAc;AAAA,IAC/D,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,KAAK,WAAW;AACZ,aAAO,KAAK,QAAQ;AAAA,IACxB;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,eAAe;AAAA,IAChE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM;AAClB,aAAO,KAAK,QAAQ,YAAY,IAAI;AAAA,IACxC;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,eAAe;AAAA,IAChE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM;AAClB,aAAO,KAAK,QAAQ,YAAY,IAAI;AAAA,IACxC;AAAA,EACR,CA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AA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,IAAI;AAAA,IAChB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;AAED,MAAM,gDAAgD;AACtD,SAAS,6CAA6C,OAAO,WAAW;AACpE,MAAI,WAAW;AACX,eAAU,OAAO,MAAM,KAAI,IAAI,WAAW,IAAI,KAAK,CAAC,8CAA8C,KAAK,GAAG,EAAG,OAAM,GAAG,IAAI;AAC1H,UAAM,OAAO;AACb,UAAM,SAAS;AAAA,EACnB;AACA,SAAO;AACX;","x_google_ignoreList":[0,1,2,3]}
1
+ {"version":3,"file":"Button-B-wLEikV.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/collections/Hidden.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/button/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Button.mjs"],"sourcesContent":["import $iuCOg$react, {createContext as $iuCOg$createContext, useContext as $iuCOg$useContext, forwardRef as $iuCOg$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $d7f64c32b702fe2c$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $iuCOg$createContext)(false);\nfunction $d7f64c32b702fe2c$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement((0, $iuCOg$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $iuCOg$react).createElement($d7f64c32b702fe2c$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement(\"template\", null, children);\n}\nfunction $d7f64c32b702fe2c$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n // oxlint-disable-next-line react/react-compiler\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $iuCOg$forwardRef)(Wrapper);\n}\nfunction $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59() {\n return (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$d7f64c32b702fe2c$export$94b6d0abf7d33e8c as HiddenContext, $d7f64c32b702fe2c$export$8dc98ba7eadeaa56 as Hidden, $d7f64c32b702fe2c$export$86427a43e3e48ebb as createHideableComponent, $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.mjs.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $a46cf152bb926da5$var$liveAnnouncer = null;\nfunction $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer = new $a46cf152bb926da5$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n if (// @ts-ignore\n !(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($a46cf152bb926da5$var$liveAnnouncer?.isAttached()) $a46cf152bb926da5$var$liveAnnouncer?.announce(message, assertiveness, timeout);\n }, 100);\n else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $a46cf152bb926da5$export$d10ae4f68404609a(assertiveness) {\n if ($a46cf152bb926da5$var$liveAnnouncer) $a46cf152bb926da5$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $a46cf152bb926da5$export$d8686216b8b81b2f() {\n if ($a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer.destroy();\n $a46cf152bb926da5$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $a46cf152bb926da5$var$LiveAnnouncer {\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n isAttached() {\n return this.node?.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') this.assertiveLog?.appendChild(node);\n else this.politeLog?.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n}\n\n\nexport {$a46cf152bb926da5$export$a9b970dcc4ae71a9 as announce, $a46cf152bb926da5$export$d10ae4f68404609a as clearAnnouncer, $a46cf152bb926da5$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.mjs.map\n","import {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {usePress as $d27d541f9569d26d$export$45712eceda6fad21} from \"../interactions/usePress.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $ac4318a9c075bb9f$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)(props, ref);\n if (allowFocusWhenDisabled) // oxlint-disable-next-line react/react-compiler\n focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(focusableProps, pressProps, (0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$ac4318a9c075bb9f$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $6c0095e7e99364f2$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $9s8kH$announce} from \"react-aria/private/live-announcer/LiveAnnouncer\";\nimport {useButton as $9s8kH$useButton} from \"react-aria/useButton\";\nimport {createHideableComponent as $9s8kH$createHideableComponent} from \"react-aria/private/collections/Hidden\";\nimport {filterDOMProps as $9s8kH$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $9s8kH$mergeProps} from \"react-aria/mergeProps\";\nimport $9s8kH$react, {createContext as $9s8kH$createContext, useRef as $9s8kH$useRef, useEffect as $9s8kH$useEffect} from \"react\";\nimport {useFocusRing as $9s8kH$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $9s8kH$useHover} from \"react-aria/useHover\";\nimport {useId as $9s8kH$useId} from \"react-aria/useId\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\nconst $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $9s8kH$createContext)({});\nconst $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $9s8kH$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $9s8kH$useButton)(props, ref);\n buttonProps = $7705c033048f6da7$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $9s8kH$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9s8kH$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending ?? false\n };\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $9s8kH$useId)(buttonProps.id);\n let progressId = (0, $9s8kH$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $9s8kH$useRef)(isPending);\n (0, $9s8kH$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $9s8kH$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $9s8kH$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $9s8kH$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).button, {\n ...(0, $9s8kH$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $6c0095e7e99364f2$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $7705c033048f6da7$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $7705c033048f6da7$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$7705c033048f6da7$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$7705c033048f6da7$export$24d547caef80ccd1 as ButtonContext, $7705c033048f6da7$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.mjs.map\n"],"names":["$iuCOg$createContext","$iuCOg$useContext","$iuCOg$react","$iuCOg$forwardRef","$9s8kH$createContext","$9s8kH$createHideableComponent","$9s8kH$useButton","$9s8kH$useFocusRing","$9s8kH$useHover","$9s8kH$useId","$9s8kH$useRef","$9s8kH$useEffect","$9s8kH$announce","$9s8kH$filterDOMProps","$9s8kH$react","$9s8kH$mergeProps"],"mappings":";;;;;;AAmBA,IAAI,OAAO,wBAAwB,aAAa;AAC5C,SAAO,eAAe,oBAAoB,WAAW,cAAc;AAAA,IAC/D,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,KAAK,WAAW;AACZ,aAAO,KAAK,QAAQ;AAAA,IACxB;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,eAAe;AAAA,IAChE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM;AAClB,aAAO,KAAK,QAAQ,YAAY,IAAI;AAAA,IACxC;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,eAAe;AAAA,IAChE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM;AAClB,aAAO,KAAK,QAAQ,YAAY,IAAI;AAAA,IACxC;AAAA,EACR,CAAK;AACD,SAAO,eAAe,oBAAoB,WAAW,gBAAgB;AAAA,IACjE,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,OAAO,SAAS,MAAM,OAAO;AACzB,aAAO,KAAK,QAAQ,aAAa,MAAM,KAAK;AAAA,IAChD;AAAA,EACR,CAAK;AACL;AACA,MAAM,4CAA8DA,8BAAsB,KAAK;AAC/F,SAAS,0CAA0C,OAAO;AACtD,MAAI,WAAeC,WAAmB,yCAAyC;AAC/E,MAAI;AACJ,WAAyBC,+BAAc,cAAkBA,eAAc,UAAU,MAAM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google_ignoreList":[0,1,2,3]}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
- const utils = require("./utils-GD-7Nve2.js");
3
- const ProgressBar = require("./ProgressBar-BiWM84v5.js");
2
+ const utils = require("./utils-DvHk9ofL.js");
3
+ const ProgressBar = require("./ProgressBar-BPfa9vzz.js");
4
4
  const filterDOMProps = require("./filterDOMProps-JgzPXl3Q.js");
5
- const useHover = require("./useHover-Dn1CIUT8.js");
6
- const usePress = require("./usePress-BtBLddLY.js");
5
+ const useHover = require("./useHover-COOv7KTv.js");
6
+ const usePress = require("./usePress-4yjnfhQ_.js");
7
7
  const React = require("react");
8
8
  if (typeof HTMLTemplateElement !== "undefined") {
9
9
  Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
@@ -267,4 +267,4 @@ exports.$7705c033048f6da7$export$24d547caef80ccd1 = $7705c033048f6da7$export$24d
267
267
  exports.$7705c033048f6da7$export$353f5b6fc5456de1 = $7705c033048f6da7$export$353f5b6fc5456de1;
268
268
  exports.$a46cf152bb926da5$export$a9b970dcc4ae71a9 = $a46cf152bb926da5$export$a9b970dcc4ae71a9;
269
269
  exports.$d7f64c32b702fe2c$export$8dc98ba7eadeaa56 = $d7f64c32b702fe2c$export$8dc98ba7eadeaa56;
270
- //# sourceMappingURL=Button-daStTTzk.js.map
270
+ //# sourceMappingURL=Button-DdtCMsXJ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button-daStTTzk.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/collections/Hidden.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/button/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Button.mjs"],"sourcesContent":["import $iuCOg$react, {createContext as $iuCOg$createContext, useContext as $iuCOg$useContext, forwardRef as $iuCOg$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $d7f64c32b702fe2c$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $iuCOg$createContext)(false);\nfunction $d7f64c32b702fe2c$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement((0, $iuCOg$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $iuCOg$react).createElement($d7f64c32b702fe2c$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement(\"template\", null, children);\n}\nfunction $d7f64c32b702fe2c$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n // oxlint-disable-next-line react/react-compiler\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $iuCOg$forwardRef)(Wrapper);\n}\nfunction $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59() {\n return (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$d7f64c32b702fe2c$export$94b6d0abf7d33e8c as HiddenContext, $d7f64c32b702fe2c$export$8dc98ba7eadeaa56 as Hidden, $d7f64c32b702fe2c$export$86427a43e3e48ebb as createHideableComponent, $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.mjs.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $a46cf152bb926da5$var$liveAnnouncer = null;\nfunction $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer = new $a46cf152bb926da5$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n if (// @ts-ignore\n !(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($a46cf152bb926da5$var$liveAnnouncer?.isAttached()) $a46cf152bb926da5$var$liveAnnouncer?.announce(message, assertiveness, timeout);\n }, 100);\n else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $a46cf152bb926da5$export$d10ae4f68404609a(assertiveness) {\n if ($a46cf152bb926da5$var$liveAnnouncer) $a46cf152bb926da5$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $a46cf152bb926da5$export$d8686216b8b81b2f() {\n if ($a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer.destroy();\n $a46cf152bb926da5$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $a46cf152bb926da5$var$LiveAnnouncer {\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n isAttached() {\n return this.node?.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') this.assertiveLog?.appendChild(node);\n else this.politeLog?.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n}\n\n\nexport {$a46cf152bb926da5$export$a9b970dcc4ae71a9 as announce, $a46cf152bb926da5$export$d10ae4f68404609a as clearAnnouncer, $a46cf152bb926da5$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.mjs.map\n","import {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {usePress as $d27d541f9569d26d$export$45712eceda6fad21} from \"../interactions/usePress.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $ac4318a9c075bb9f$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)(props, ref);\n if (allowFocusWhenDisabled) // oxlint-disable-next-line react/react-compiler\n focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(focusableProps, pressProps, (0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$ac4318a9c075bb9f$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $6c0095e7e99364f2$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $9s8kH$announce} from \"react-aria/private/live-announcer/LiveAnnouncer\";\nimport {useButton as $9s8kH$useButton} from \"react-aria/useButton\";\nimport {createHideableComponent as $9s8kH$createHideableComponent} from \"react-aria/private/collections/Hidden\";\nimport {filterDOMProps as $9s8kH$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $9s8kH$mergeProps} from \"react-aria/mergeProps\";\nimport $9s8kH$react, {createContext as $9s8kH$createContext, useRef as $9s8kH$useRef, useEffect as $9s8kH$useEffect} from \"react\";\nimport {useFocusRing as $9s8kH$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $9s8kH$useHover} from \"react-aria/useHover\";\nimport {useId as $9s8kH$useId} from \"react-aria/useId\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\nconst $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $9s8kH$createContext)({});\nconst $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $9s8kH$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $9s8kH$useButton)(props, ref);\n buttonProps = $7705c033048f6da7$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $9s8kH$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9s8kH$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending ?? false\n };\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $9s8kH$useId)(buttonProps.id);\n let progressId = (0, $9s8kH$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $9s8kH$useRef)(isPending);\n (0, $9s8kH$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $9s8kH$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $9s8kH$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $9s8kH$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).button, {\n ...(0, $9s8kH$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $6c0095e7e99364f2$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $7705c033048f6da7$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $7705c033048f6da7$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$7705c033048f6da7$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$7705c033048f6da7$export$24d547caef80ccd1 as ButtonContext, $7705c033048f6da7$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.mjs.map\n"],"names":["$iuCOg$createContext","$iuCOg$useContext","$iuCOg$react","$iuCOg$forwardRef","$d27d541f9569d26d$export$45712eceda6fad21","$d1116acdf220c2da$export$4c014de7c8940b4c","$bbaa08b3cd72f041$export$9d1611c77c2fe928","$8e9d2fae0ecb9001$export$457c3d6518dd4c6f","$9s8kH$createContext","$9s8kH$createHideableComponent","$7230ffa83bc0c2cf$export$29f1550f4b0d4415","$9s8kH$useButton","$9s8kH$useFocusRing","$9s8kH$useHover","$7230ffa83bc0c2cf$export$4d86445c2cf5e3","$9s8kH$useId","$9s8kH$useRef","$9s8kH$useEffect","$9s8kH$announce","$9s8kH$filterDOMProps","$9s8kH$react","$7230ffa83bc0c2cf$export$df3a06d6289f983e","$9s8kH$mergeProps","$6c0095e7e99364f2$export$e9f3bf65a26ce129"],"mappings":";;;;;;;AAmBA,IAAI,OAAO,wBAAwB,aAAa;AAC5C,SAAO,eAAe,oBAAoB,WAAW,cAAc;AAAA,IAC/D,cAAc;AAAA,IACd,YAAY;AA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B,SAAyBC,sBAAc,cAAkBC,MAAAA,0CAA2C,QAAQ;AAAA,IACxG,GAAOC,MAAAA,0CAAmB,UAAU,aAAa,aAAa,YAAY,UAAU;AAAA;AAAA;AAAA,IAGpF,MAAM,YAAY,SAAS,YAAY,YAAY,WAAW,YAAY;AAAA,IAC1E,IAAI;AAAA,IACJ;AAAA,IACA,mBAAmB;AAAA,IACnB,MAAM,MAAM,QAAQ;AAAA,IACpB,iBAAiB,YAAY,SAAS,YAAY,eAAe;AAAA,IACjE,iBAAiB,MAAM,cAAc;AAAA,IACrC,gBAAgB,aAAa,aAAa;AAAA,IAC1C,gBAAgB,aAAa;AAAA,IAC7B,gBAAgB,aAAa;AAAA,IAC7B,gBAAgB,aAAa;AAAA,IAC7B,sBAAsB,kBAAkB;AAAA,EAChD,GAAyBF,sBAAc,cAAkBG,YAAAA,0CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,IAAI;AAAA,IAChB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;AAED,MAAM,gDAAgD;AACtD,SAAS,6CAA6C,OAAO,WAAW;AACpE,MAAI,WAAW;AACX,eAAU,OAAO,MAAM,KAAI,IAAI,WAAW,IAAI,KAAK,CAAC,8CAA8C,KAAK,GAAG,EAAG,OAAM,GAAG,IAAI;AAC1H,UAAM,OAAO;AACb,UAAM,SAAS;AAAA,EACnB;AACA,SAAO;AACX;;;;;","x_google_ignoreList":[0,1,2,3]}
1
+ {"version":3,"file":"Button-DdtCMsXJ.js","sources":["../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/collections/Hidden.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/live-announcer/LiveAnnouncer.mjs","../../node_modules/.pnpm/react-aria@3.53.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/button/useButton.mjs","../../node_modules/.pnpm/react-aria-components@1.22.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria-components/dist/private/Button.mjs"],"sourcesContent":["import $iuCOg$react, {createContext as $iuCOg$createContext, useContext as $iuCOg$useContext, forwardRef as $iuCOg$forwardRef} from \"react\";\n\n/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n// React doesn't understand the <template> element, which doesn't have children like a normal element.\n// It will throw an error during hydration when it expects the firstChild to contain content rendered\n// on the server, when in reality, the browser will have placed this inside the `content` document fragment.\n// This monkey patches the firstChild property for our special hidden template elements to work around this error.\n// does the same for appendChild/removeChild/insertBefore as per the issue below\n// See https://github.com/facebook/react/issues/19932\nif (typeof HTMLTemplateElement !== 'undefined') {\n Object.defineProperty(HTMLTemplateElement.prototype, 'firstChild', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.content.firstChild;\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'appendChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.appendChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'removeChild', {\n configurable: true,\n enumerable: true,\n value: function(node) {\n return this.content.removeChild(node);\n }\n });\n Object.defineProperty(HTMLTemplateElement.prototype, 'insertBefore', {\n configurable: true,\n enumerable: true,\n value: function(node, child) {\n return this.content.insertBefore(node, child);\n }\n });\n}\nconst $d7f64c32b702fe2c$export$94b6d0abf7d33e8c = /*#__PURE__*/ (0, $iuCOg$createContext)(false);\nfunction $d7f64c32b702fe2c$export$8dc98ba7eadeaa56(props) {\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) // Don't hide again if we are already hidden.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement((0, $iuCOg$react).Fragment, null, props.children);\n let children = /*#__PURE__*/ (0, $iuCOg$react).createElement($d7f64c32b702fe2c$export$94b6d0abf7d33e8c.Provider, {\n value: true\n }, props.children);\n // In SSR, portals are not supported by React. Instead, always render into a <template>\n // element, which the browser will never display to the user. In addition, the\n // content is not part of the accessible DOM tree, so it won't affect ids or other accessibility attributes.\n return /*#__PURE__*/ (0, $iuCOg$react).createElement(\"template\", null, children);\n}\nfunction $d7f64c32b702fe2c$export$86427a43e3e48ebb(fn) {\n let Wrapper = (props, ref)=>{\n let isHidden = (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n if (isHidden) return null;\n // oxlint-disable-next-line react/react-compiler\n return fn(props, ref);\n };\n // @ts-ignore - for react dev tools\n Wrapper.displayName = fn.displayName || fn.name;\n return (0, $iuCOg$forwardRef)(Wrapper);\n}\nfunction $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59() {\n return (0, $iuCOg$useContext)($d7f64c32b702fe2c$export$94b6d0abf7d33e8c);\n}\n\n\nexport {$d7f64c32b702fe2c$export$94b6d0abf7d33e8c as HiddenContext, $d7f64c32b702fe2c$export$8dc98ba7eadeaa56 as Hidden, $d7f64c32b702fe2c$export$86427a43e3e48ebb as createHideableComponent, $d7f64c32b702fe2c$export$b5d7cc18bb8d2b59 as useIsHidden};\n//# sourceMappingURL=Hidden.mjs.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ /* Inspired by https://github.com/AlmeroSteyn/react-aria-live */ const $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY = 7000;\nlet $a46cf152bb926da5$var$liveAnnouncer = null;\nfunction $a46cf152bb926da5$export$a9b970dcc4ae71a9(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!$a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer = new $a46cf152bb926da5$var$LiveAnnouncer();\n // wait for the live announcer regions to be added to the dom, then announce\n // otherwise Safari won't announce the message if it's added too quickly\n // found most times less than 100ms were not consistent when announcing with Safari\n // IS_REACT_ACT_ENVIRONMENT is used by React 18. Previous versions checked for the `jest` global.\n // https://github.com/reactwg/react-18/discussions/102\n // if we're in a test environment, announce without waiting\n if (// @ts-ignore\n !(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{\n if ($a46cf152bb926da5$var$liveAnnouncer?.isAttached()) $a46cf152bb926da5$var$liveAnnouncer?.announce(message, assertiveness, timeout);\n }, 100);\n else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n } else $a46cf152bb926da5$var$liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction $a46cf152bb926da5$export$d10ae4f68404609a(assertiveness) {\n if ($a46cf152bb926da5$var$liveAnnouncer) $a46cf152bb926da5$var$liveAnnouncer.clear(assertiveness);\n}\nfunction $a46cf152bb926da5$export$d8686216b8b81b2f() {\n if ($a46cf152bb926da5$var$liveAnnouncer) {\n $a46cf152bb926da5$var$liveAnnouncer.destroy();\n $a46cf152bb926da5$var$liveAnnouncer = null;\n }\n}\n// LiveAnnouncer is implemented using vanilla DOM, not React. That's because as of React 18\n// ReactDOM.render is deprecated, and the replacement, ReactDOM.createRoot is moved into a\n// subpath import `react-dom/client`. That makes it hard for us to support multiple React versions.\n// As a global API, we can't use portals without introducing a breaking API change. LiveAnnouncer\n// is simple enough to implement without React, so that's what we do here.\n// See this discussion for more details: https://github.com/reactwg/react-18/discussions/125#discussioncomment-2382638\nclass $a46cf152bb926da5$var$LiveAnnouncer {\n constructor(){\n this.node = null;\n this.assertiveLog = null;\n this.politeLog = null;\n if (typeof document !== 'undefined') {\n this.node = document.createElement('div');\n this.node.dataset.liveAnnouncer = 'true';\n // copied from VisuallyHidden\n Object.assign(this.node.style, {\n border: 0,\n clip: 'rect(0 0 0 0)',\n clipPath: 'inset(50%)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n width: '1px',\n whiteSpace: 'nowrap'\n });\n this.assertiveLog = this.createLog('assertive');\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog('polite');\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n }\n isAttached() {\n return this.node?.isConnected;\n }\n createLog(ariaLive) {\n let node = document.createElement('div');\n node.setAttribute('role', 'log');\n node.setAttribute('aria-live', ariaLive);\n node.setAttribute('aria-relevant', 'additions');\n return node;\n }\n destroy() {\n if (!this.node) return;\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = 'assertive', timeout = $a46cf152bb926da5$var$LIVEREGION_TIMEOUT_DELAY) {\n if (!this.node) return;\n let node = document.createElement('div');\n if (typeof message === 'object') {\n // To read an aria-labelledby, the element must have an appropriate role, such as img.\n node.setAttribute('role', 'img');\n node.setAttribute('aria-labelledby', message['aria-labelledby']);\n } else node.textContent = message;\n if (assertiveness === 'assertive') this.assertiveLog?.appendChild(node);\n else this.politeLog?.appendChild(node);\n if (message !== '') setTimeout(()=>{\n node.remove();\n }, timeout);\n }\n clear(assertiveness) {\n if (!this.node) return;\n if ((!assertiveness || assertiveness === 'assertive') && this.assertiveLog) this.assertiveLog.innerHTML = '';\n if ((!assertiveness || assertiveness === 'polite') && this.politeLog) this.politeLog.innerHTML = '';\n }\n}\n\n\nexport {$a46cf152bb926da5$export$a9b970dcc4ae71a9 as announce, $a46cf152bb926da5$export$d10ae4f68404609a as clearAnnouncer, $a46cf152bb926da5$export$d8686216b8b81b2f as destroyAnnouncer};\n//# sourceMappingURL=LiveAnnouncer.mjs.map\n","import {filterDOMProps as $8e9d2fae0ecb9001$export$457c3d6518dd4c6f} from \"../utils/filterDOMProps.mjs\";\nimport {mergeProps as $bbaa08b3cd72f041$export$9d1611c77c2fe928} from \"../utils/mergeProps.mjs\";\nimport {useFocusable as $d1116acdf220c2da$export$4c014de7c8940b4c} from \"../interactions/useFocusable.mjs\";\nimport {usePress as $d27d541f9569d26d$export$45712eceda6fad21} from \"../interactions/usePress.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nfunction $ac4318a9c075bb9f$export$ea18c227d4417cc3(props, ref) {\n let { elementType: elementType = 'button', isDisabled: isDisabled, onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onPressUp: onPressUp, onPressChange: onPressChange, preventFocusOnPress: preventFocusOnPress, allowFocusWhenDisabled: // @ts-ignore - undocumented\n allowFocusWhenDisabled, onClick: onClick, href: href, target: target, rel: rel, type: type = 'button' } = props;\n let additionalProps;\n if (elementType === 'button') additionalProps = {\n type: type,\n disabled: isDisabled,\n form: props.form,\n formAction: props.formAction,\n formEncType: props.formEncType,\n formMethod: props.formMethod,\n formNoValidate: props.formNoValidate,\n formTarget: props.formTarget,\n name: props.name,\n value: props.value\n };\n else additionalProps = {\n role: 'button',\n href: elementType === 'a' && !isDisabled ? href : undefined,\n target: elementType === 'a' ? target : undefined,\n type: elementType === 'input' ? type : undefined,\n disabled: elementType === 'input' ? isDisabled : undefined,\n 'aria-disabled': !isDisabled || elementType === 'input' ? undefined : isDisabled,\n rel: elementType === 'a' ? rel : undefined\n };\n let { pressProps: pressProps, isPressed: isPressed } = (0, $d27d541f9569d26d$export$45712eceda6fad21)({\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onPressChange: onPressChange,\n onPress: onPress,\n onPressUp: onPressUp,\n onClick: onClick,\n isDisabled: isDisabled,\n preventFocusOnPress: preventFocusOnPress,\n ref: ref\n });\n let { focusableProps: focusableProps } = (0, $d1116acdf220c2da$export$4c014de7c8940b4c)(props, ref);\n if (allowFocusWhenDisabled) // oxlint-disable-next-line react/react-compiler\n focusableProps.tabIndex = isDisabled ? -1 : focusableProps.tabIndex;\n let buttonProps = (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(focusableProps, pressProps, (0, $8e9d2fae0ecb9001$export$457c3d6518dd4c6f)(props, {\n labelable: true\n }));\n return {\n isPressed: isPressed,\n buttonProps: (0, $bbaa08b3cd72f041$export$9d1611c77c2fe928)(additionalProps, buttonProps, {\n 'aria-haspopup': props['aria-haspopup'],\n 'aria-expanded': props['aria-expanded'],\n 'aria-controls': props['aria-controls'],\n 'aria-pressed': props['aria-pressed'],\n 'aria-current': props['aria-current'],\n 'aria-disabled': props['aria-disabled']\n })\n };\n}\n\n\nexport {$ac4318a9c075bb9f$export$ea18c227d4417cc3 as useButton};\n//# sourceMappingURL=useButton.mjs.map\n","import {dom as $7230ffa83bc0c2cf$export$df3a06d6289f983e, useContextProps as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, useRenderProps as $7230ffa83bc0c2cf$export$4d86445c2cf5e3} from \"./utils.mjs\";\nimport {ProgressBarContext as $6c0095e7e99364f2$export$e9f3bf65a26ce129} from \"./ProgressBar.mjs\";\nimport {announce as $9s8kH$announce} from \"react-aria/private/live-announcer/LiveAnnouncer\";\nimport {useButton as $9s8kH$useButton} from \"react-aria/useButton\";\nimport {createHideableComponent as $9s8kH$createHideableComponent} from \"react-aria/private/collections/Hidden\";\nimport {filterDOMProps as $9s8kH$filterDOMProps} from \"react-aria/filterDOMProps\";\nimport {mergeProps as $9s8kH$mergeProps} from \"react-aria/mergeProps\";\nimport $9s8kH$react, {createContext as $9s8kH$createContext, useRef as $9s8kH$useRef, useEffect as $9s8kH$useEffect} from \"react\";\nimport {useFocusRing as $9s8kH$useFocusRing} from \"react-aria/useFocusRing\";\nimport {useHover as $9s8kH$useHover} from \"react-aria/useHover\";\nimport {useId as $9s8kH$useId} from \"react-aria/useId\";\n\n/*\n * Copyright 2022 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\n\n\n\n\n\nconst $7705c033048f6da7$export$24d547caef80ccd1 = /*#__PURE__*/ (0, $9s8kH$createContext)({});\nconst $7705c033048f6da7$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $9s8kH$createHideableComponent)(function Button(props, ref) {\n [props, ref] = (0, $7230ffa83bc0c2cf$export$29f1550f4b0d4415)(props, ref, $7705c033048f6da7$export$24d547caef80ccd1);\n let ctx = props;\n let { isPending: isPending } = ctx;\n let { buttonProps: buttonProps, isPressed: isPressed } = (0, $9s8kH$useButton)(props, ref);\n buttonProps = $7705c033048f6da7$var$useDisableInteractions(buttonProps, isPending);\n let { focusProps: focusProps, isFocused: isFocused, isFocusVisible: isFocusVisible } = (0, $9s8kH$useFocusRing)(props);\n let { hoverProps: hoverProps, isHovered: isHovered } = (0, $9s8kH$useHover)({\n ...props,\n isDisabled: props.isDisabled || isPending\n });\n let renderValues = {\n isHovered: isHovered,\n isPressed: (ctx.isPressed || isPressed) && !isPending,\n isFocused: isFocused,\n isFocusVisible: isFocusVisible,\n isDisabled: props.isDisabled || false,\n isPending: isPending ?? false\n };\n let renderProps = (0, $7230ffa83bc0c2cf$export$4d86445c2cf5e3)({\n ...props,\n values: renderValues,\n defaultClassName: 'react-aria-Button'\n });\n let buttonId = (0, $9s8kH$useId)(buttonProps.id);\n let progressId = (0, $9s8kH$useId)();\n let ariaLabelledby = buttonProps['aria-labelledby'];\n if (isPending) {\n // aria-labelledby wins over aria-label\n // https://www.w3.org/TR/accname-1.2/#computation-steps\n if (ariaLabelledby) ariaLabelledby = `${ariaLabelledby} ${progressId}`;\n else if (buttonProps['aria-label']) ariaLabelledby = `${buttonId} ${progressId}`;\n }\n let wasPending = (0, $9s8kH$useRef)(isPending);\n (0, $9s8kH$useEffect)(()=>{\n let message = {\n 'aria-labelledby': ariaLabelledby || buttonId\n };\n if (!wasPending.current && isFocused && isPending) (0, $9s8kH$announce)(message, 'assertive');\n else if (wasPending.current && isFocused && !isPending) (0, $9s8kH$announce)(message, 'assertive');\n wasPending.current = isPending;\n }, [\n isPending,\n isFocused,\n ariaLabelledby,\n buttonId\n ]);\n let DOMProps = (0, $9s8kH$filterDOMProps)(props, {\n global: true\n });\n delete DOMProps.onClick;\n return /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $7230ffa83bc0c2cf$export$df3a06d6289f983e).button, {\n ...(0, $9s8kH$mergeProps)(DOMProps, renderProps, buttonProps, focusProps, hoverProps),\n // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).\n // We do this by changing the button's type to button.\n type: buttonProps.type === 'submit' && isPending ? 'button' : buttonProps.type,\n id: buttonId,\n ref: ref,\n \"aria-labelledby\": ariaLabelledby,\n slot: props.slot || undefined,\n \"aria-disabled\": isPending ? 'true' : buttonProps['aria-disabled'],\n \"data-disabled\": props.isDisabled || undefined,\n \"data-pressed\": renderValues.isPressed || undefined,\n \"data-hovered\": isHovered || undefined,\n \"data-focused\": isFocused || undefined,\n \"data-pending\": isPending || undefined,\n \"data-focus-visible\": isFocusVisible || undefined\n }, /*#__PURE__*/ (0, $9s8kH$react).createElement((0, $6c0095e7e99364f2$export$e9f3bf65a26ce129).Provider, {\n value: {\n id: progressId\n }\n }, renderProps.children));\n});\n// Events to preserve when isPending is true (for tooltips and other overlays)\nconst $7705c033048f6da7$var$PRESERVED_EVENT_PATTERN = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;\nfunction $7705c033048f6da7$var$useDisableInteractions(props, isPending) {\n if (isPending) {\n for(const key in props)if (key.startsWith('on') && !$7705c033048f6da7$var$PRESERVED_EVENT_PATTERN.test(key)) props[key] = undefined;\n props.href = undefined;\n props.target = undefined;\n }\n return props;\n}\n\n\nexport {$7705c033048f6da7$export$24d547caef80ccd1 as ButtonContext, $7705c033048f6da7$export$353f5b6fc5456de1 as Button};\n//# sourceMappingURL=Button.mjs.map\n"],"names":["$iuCOg$createContext","$iuCOg$useContext","$iuCOg$react","$iuCOg$forwardRef","$d27d541f9569d26d$export$45712eceda6fad21","$d1116acdf220c2da$export$4c014de7c8940b4c","$bbaa08b3cd72f041$export$9d1611c77c2fe928","$8e9d2fae0ecb9001$export$457c3d6518dd4c6f","$9s8kH$createContext","$9s8kH$createHideableComponent","$7230ffa83bc0c2cf$export$29f1550f4b0d4415","$9s8kH$useButton","$9s8kH$useFocusRing","$9s8kH$useHover","$7230ffa83bc0c2cf$export$4d86445c2cf5e3","$9s8kH$useId","$9s8kH$useRef","$9s8kH$useEffect","$9s8kH$announce","$9s8kH$filterDOMProps","$9s8kH$react","$7230ffa83bc0c2cf$export$df3a06d6289f983e","$9s8kH$mergeProps","$6c0095e7e99364f2$export$e9f3bf65a26ce129"],"mappings":";;;;;;;AAmBA,IAAI,OAAO,wBAAwB,aAAa;AAC5C,SAAO,eAAe,oBAAoB,W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7C,QAAQ;AAAA,EAChB,CAAK;AACD,SAAO,SAAS;AAChB,SAAyBC,sBAAc,cAAkBC,MAAAA,0CAA2C,QAAQ;AAAA,IACxG,GAAOC,MAAAA,0CAAmB,UAAU,aAAa,aAAa,YAAY,UAAU;AAAA;AAAA;AAAA,IAGpF,MAAM,YAAY,SAAS,YAAY,YAAY,WAAW,YAAY;AAAA,IAC1E,IAAI;AAAA,IACJ;AAAA,IACA,mBAAmB;AAAA,IACnB,MAAM,MAAM,QAAQ;AAAA,IACpB,iBAAiB,YAAY,SAAS,YAAY,eAAe;AAAA,IACjE,iBAAiB,MAAM,cAAc;AAAA,IACrC,gBAAgB,aAAa,aAAa;AAAA,IAC1C,gBAAgB,aAAa;AAAA,IAC7B,gBAAgB,aAAa;AAAA,IAC7B,gBAAgB,aAAa;AAAA,IAC7B,sBAAsB,kBAAkB;AAAA,EAChD,GAAyBF,sBAAc,cAAkBG,YAAAA,0CAA2C,UAAU;AAAA,IACtG,OAAO;AAAA,MACH,IAAI;AAAA,IAChB;AAAA,EACA,GAAO,YAAY,QAAQ,CAAC;AAC5B,CAAC;AAED,MAAM,gDAAgD;AACtD,SAAS,6CAA6C,OAAO,WAAW;AACpE,MAAI,WAAW;AACX,eAAU,OAAO,MAAM,KAAI,IAAI,WAAW,IAAI,KAAK,CAAC,8CAA8C,KAAK,GAAG,EAAG,OAAM,GAAG,IAAI;AAC1H,UAAM,OAAO;AACb,UAAM,SAAS;AAAA,EACnB;AACA,SAAO;AACX;;;;;","x_google_ignoreList":[0,1,2,3]}
@@ -1,5 +1,5 @@
1
- import { b as $6a20a7989e6c817a$export$98658e8c59125e6a, c as $23f2114a1b82827e$export$4282f70798064fe0, d as $3b8b240c1bf84ab9$export$bebd5a1431fec25d, e as $3b8b240c1bf84ab9$export$4c063cf1350e6fed, f as $d447af545b77c9f1$export$b204af158042fbac, $ as $d447af545b77c9f1$export$f21a1ffae260145a, g as $23f2114a1b82827e$export$cd4e5573fbe2b576, a as $23f2114a1b82827e$export$e58f029f0fbfdb29, h as $2add3ce32c6007eb$export$a11b0059900ceec8, i as $2add3ce32c6007eb$export$6446a186d09e379e, j as $f192c2f16961cbe0$export$80f3e147d781571c, k as $8f5a2122b0992be3$export$630ff653c5ada6a9 } from "./focusSafely-kwqdsDlJ.js";
2
- import { f as $c4867b2f328c2698$export$e5c5a5f917a5871c } from "./utils-Ki_DdjNi.js";
1
+ import { b as $6a20a7989e6c817a$export$98658e8c59125e6a, c as $23f2114a1b82827e$export$4282f70798064fe0, d as $3b8b240c1bf84ab9$export$bebd5a1431fec25d, e as $3b8b240c1bf84ab9$export$4c063cf1350e6fed, f as $d447af545b77c9f1$export$b204af158042fbac, $ as $d447af545b77c9f1$export$f21a1ffae260145a, g as $23f2114a1b82827e$export$cd4e5573fbe2b576, a as $23f2114a1b82827e$export$e58f029f0fbfdb29, h as $2add3ce32c6007eb$export$a11b0059900ceec8, i as $2add3ce32c6007eb$export$6446a186d09e379e, j as $f192c2f16961cbe0$export$80f3e147d781571c, k as $8f5a2122b0992be3$export$630ff653c5ada6a9 } from "./focusSafely--u_yGz_7.js";
2
+ import { f as $c4867b2f328c2698$export$e5c5a5f917a5871c } from "./utils-B3shU_E6.js";
3
3
  import React__default, { useRef, useContext, useMemo, useEffect } from "react";
4
4
  class $654b97e09f2a30c1$export$63eb3ababa9c55c4 {
5
5
  constructor(doc, root, whatToShow, filter) {
@@ -822,4 +822,4 @@ export {
822
822
  $535772f9d2c1f38d$export$2d6ec8fc375ceafa as a,
823
823
  $535772f9d2c1f38d$export$20e40289641fbbb6 as b
824
824
  };
825
- //# sourceMappingURL=FocusScope-BJBTKF3R.js.map
825
+ //# sourceMappingURL=FocusScope-BVEv8CgQ.js.map