@nethesis/phone-island 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +1 -1
  2. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +1 -1
  3. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +1 -1
  4. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +1 -1
  5. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +1 -1
  6. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +1 -1
  7. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs.js.map +1 -1
  8. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs.js.map +1 -1
  9. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.mjs.js.map +1 -1
  10. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs.js.map +1 -1
  11. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs.js.map +1 -1
  12. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js +1 -1
  13. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js.map +1 -1
  14. package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js.map +1 -1
  15. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js +1 -1
  16. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js.map +1 -1
  17. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js +1 -1
  18. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js.map +1 -1
  19. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +1 -1
  20. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +1 -1
  21. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js +1 -1
  22. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js.map +1 -1
  23. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js +1 -1
  24. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js.map +1 -1
  25. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +1 -1
  26. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +1 -1
  27. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs.js.map +1 -1
  28. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js +1 -1
  29. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js.map +1 -1
  30. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js +1 -1
  31. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js.map +1 -1
  32. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs.js +1 -1
  33. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs.js.map +1 -1
  34. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +1 -1
  35. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +1 -1
  36. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js +1 -1
  37. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js.map +1 -1
  38. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js +1 -1
  39. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js.map +1 -1
  40. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +1 -1
  41. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +1 -1
  42. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +1 -1
  43. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +1 -1
  44. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +1 -1
  45. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +1 -1
  46. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js +1 -1
  47. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js.map +1 -1
  48. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js +1 -1
  49. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js.map +1 -1
  50. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +1 -1
  51. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +1 -1
  52. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js +1 -1
  53. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +1 -1
  54. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js +1 -1
  55. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js.map +1 -1
  56. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js +1 -1
  57. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js.map +1 -1
  58. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js +1 -1
  59. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +1 -1
  60. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js +1 -1
  61. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js.map +1 -1
  62. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js +1 -1
  63. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js.map +1 -1
  64. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js +1 -1
  65. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js.map +1 -1
  66. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js +1 -1
  67. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +1 -1
  68. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs.js +1 -1
  69. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs.js.map +1 -1
  70. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +1 -1
  71. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +1 -1
  72. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +1 -1
  73. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +1 -1
  74. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js +1 -1
  75. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js.map +1 -1
  76. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +1 -1
  77. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +1 -1
  78. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs.js +1 -1
  79. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs.js.map +1 -1
  80. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js +1 -1
  81. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js.map +1 -1
  82. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js +1 -1
  83. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js.map +1 -1
  84. package/dist/node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs.js +2 -0
  85. package/dist/node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs.js.map +1 -0
  86. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs.js +2 -0
  87. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs.js.map +1 -0
  88. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js +1 -1
  89. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js.map +1 -1
  90. package/dist/node_modules/motion-dom/dist/es/animation/waapi/transforms/TransformAnimation.mjs.js +2 -0
  91. package/dist/node_modules/motion-dom/dist/es/animation/waapi/transforms/TransformAnimation.mjs.js.map +1 -0
  92. package/dist/node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs.js +2 -0
  93. package/dist/node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs.js.map +1 -0
  94. package/dist/node_modules/motion-dom/dist/es/events/add-pointer-event.mjs.js +2 -0
  95. package/dist/node_modules/motion-dom/dist/es/events/add-pointer-event.mjs.js.map +1 -0
  96. package/dist/node_modules/motion-dom/dist/es/events/event-info.mjs.js +2 -0
  97. package/dist/node_modules/motion-dom/dist/es/events/event-info.mjs.js.map +1 -0
  98. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +1 -1
  99. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +1 -1
  100. package/dist/node_modules/motion-dom/dist/es/frameloop/frame-data.mjs.js +2 -0
  101. package/dist/node_modules/motion-dom/dist/es/frameloop/frame-data.mjs.js.map +1 -0
  102. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js +1 -1
  103. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js.map +1 -1
  104. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +1 -1
  105. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +1 -1
  106. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js +1 -1
  107. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js.map +1 -1
  108. package/dist/node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs.js +2 -0
  109. package/dist/node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +1 -0
  110. package/dist/node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs.js +2 -0
  111. package/dist/node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs.js.map +1 -0
  112. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +1 -1
  113. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +1 -1
  114. package/dist/node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs.js +2 -0
  115. package/dist/node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs.js.map +1 -0
  116. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +1 -1
  117. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +1 -1
  118. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js +1 -1
  119. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js.map +1 -1
  120. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js +1 -1
  121. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js.map +1 -1
  122. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs.js +1 -1
  123. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs.js.map +1 -1
  124. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs.js.map +1 -1
  125. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs.js.map +1 -1
  126. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs.js +1 -1
  127. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs.js.map +1 -1
  128. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js +1 -1
  129. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js.map +1 -1
  130. package/dist/node_modules/motion-dom/dist/es/projection/node/root.mjs.js +2 -0
  131. package/dist/node_modules/motion-dom/dist/es/projection/node/root.mjs.js.map +1 -0
  132. package/dist/node_modules/motion-dom/dist/es/projection/styles/default-scale-correctors.mjs.js +2 -0
  133. package/dist/node_modules/motion-dom/dist/es/projection/styles/default-scale-correctors.mjs.js.map +1 -0
  134. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs.js +1 -1
  135. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs.js.map +1 -1
  136. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.mjs.js +1 -1
  137. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.mjs.js.map +1 -1
  138. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs.js.map +1 -1
  139. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs.js +1 -1
  140. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs.js.map +1 -1
  141. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js +1 -1
  142. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js.map +1 -1
  143. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs.js.map +1 -1
  144. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js +1 -1
  145. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js.map +1 -1
  146. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs.js +1 -1
  147. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs.js.map +1 -1
  148. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs.js +1 -1
  149. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs.js.map +1 -1
  150. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js +1 -1
  151. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js.map +1 -1
  152. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs.js +1 -1
  153. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs.js.map +1 -1
  154. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js +1 -1
  155. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js.map +1 -1
  156. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs.js +1 -1
  157. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs.js.map +1 -1
  158. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js +1 -1
  159. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js.map +1 -1
  160. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs.js +1 -1
  161. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs.js.map +1 -1
  162. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs.js +1 -1
  163. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs.js.map +1 -1
  164. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs.js +1 -1
  165. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs.js.map +1 -1
  166. package/dist/node_modules/motion-dom/dist/es/resize/index.mjs.js +1 -1
  167. package/dist/node_modules/motion-dom/dist/es/resize/index.mjs.js.map +1 -1
  168. package/dist/node_modules/motion-dom/dist/es/scope/active.mjs.js +2 -0
  169. package/dist/node_modules/motion-dom/dist/es/scope/active.mjs.js.map +1 -0
  170. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js +1 -1
  171. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js.map +1 -1
  172. package/dist/node_modules/motion-dom/dist/es/utils/distance.mjs.js.map +1 -0
  173. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js +1 -1
  174. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js.map +1 -1
  175. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js +1 -1
  176. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js.map +1 -1
  177. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js +1 -1
  178. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js.map +1 -1
  179. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +1 -1
  180. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +1 -1
  181. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js +1 -1
  182. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js.map +1 -1
  183. package/dist/node_modules/motion-dom/dist/es/value/utils/as-number.mjs.js +2 -0
  184. package/dist/node_modules/motion-dom/dist/es/value/utils/as-number.mjs.js.map +1 -0
  185. package/dist/node_modules/motion-utils/dist/es/easing/circ.mjs.js.map +1 -1
  186. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js +1 -1
  187. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js.map +1 -1
  188. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js +1 -1
  189. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js.map +1 -1
  190. package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js +1 -1
  191. package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js.map +1 -1
  192. package/dist/package.json.js +1 -1
  193. package/package.json +3 -3
  194. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js +0 -2
  195. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js.map +0 -1
  196. package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js +0 -2
  197. package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js.map +0 -1
  198. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +0 -2
  199. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +0 -1
  200. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +0 -2
  201. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +0 -1
  202. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +0 -2
  203. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +0 -1
  204. package/dist/node_modules/framer-motion/dist/es/utils/distance.mjs.js.map +0 -1
  205. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs.js +0 -2
  206. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs.js.map +0 -1
  207. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js +0 -2
  208. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js.map +0 -1
  209. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/utils/distance.mjs.js +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../context/MotionConfigContext.mjs.js"),o=require("../../utils/use-composed-ref.mjs.js"),r=require("../../../../../motion-dom/dist/es/utils/is-html-element.mjs.js"),n=require("../../../../../../_virtual/jsx-runtime.js");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}var s=i(e);class p extends s.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(r.isHTMLElement(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const e=t.offsetParent,o=r.isHTMLElement(e)&&e.offsetWidth||0,n=r.isHTMLElement(e)&&e.offsetHeight||0,i=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(i.height),s.width=parseFloat(i.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=o-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}exports.PopChild=function({children:r,isPresent:i,anchorX:c,anchorY:u,root:f,pop:d}){const l=e.useId(),h=e.useRef(null),a=e.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:m}=e.useContext(t.MotionConfigContext),g=!1!==d?r.props?.ref??r?.ref:void 0,j=o.useComposedRefs(h,g);return e.useInsertionEffect(()=>{const{width:e,height:t,top:o,left:r,right:n,bottom:s,direction:p}=a.current;if(i||!1===d||!h.current||!e||!t)return;const g="rtl"===p,j="left"===c?g?`right: ${n}`:`left: ${r}`:g?`left: ${r}`:`right: ${n}`,x="bottom"===u?`bottom: ${s}`:`top: ${o}`;h.current.dataset.motionPopId=l;const b=document.createElement("style");m&&(b.nonce=m);const C=f??document.head;return C.appendChild(b),b.sheet&&b.sheet.insertRule(`\n [data-motion-pop-id="${l}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n ${j}px !important;\n ${x}px !important;\n }\n `),()=>{h.current?.removeAttribute("data-motion-pop-id"),C.contains(b)&&C.removeChild(b)}},[i]),n.exports.jsx(p,{isPresent:i,childRef:h,sizeRef:a,pop:d,children:!1===d?r:s.cloneElement(r,{ref:j})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../context/MotionConfigContext.mjs.js"),o=require("../../utils/use-composed-ref.mjs.js"),r=require("../../../../../motion-dom/dist/es/utils/is-html-element.mjs.js"),n=require("../../../../../../_virtual/jsx-runtime.js");function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}var s=i(e);class p extends s.Component{getSnapshotBeforeUpdate(e){const t=this.props.getElement();if(r.isHTMLElement(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const e=t.offsetParent,o=r.isHTMLElement(e)&&e.offsetWidth||0,n=r.isHTMLElement(e)&&e.offsetHeight||0,i=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(i.height),s.width=parseFloat(i.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=o-s.width-s.left,s.bottom=n-s.height-s.top,s.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}exports.PopChild=function({children:r,isPresent:i,anchorX:u,anchorY:c,root:l,pop:f,popNode:d}){const h=e.useId(),a=e.useRef(null),m=e.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=e.useContext(t.MotionConfigContext),j=!1!==f?r.props?.ref??r?.ref:void 0,x=o.useComposedRefs(a,j),b=()=>a.current||d?.current?.current;return e.useInsertionEffect(()=>{const{width:e,height:t,top:o,left:r,right:n,bottom:s,direction:p}=m.current,d=b();if(i||!1===f||!d||!e||!t)return;const a="rtl"===p,j="left"===u?a?`right: ${n}`:`left: ${r}`:a?`left: ${r}`:`right: ${n}`,x="bottom"===c?`bottom: ${s}`:`top: ${o}`;d.dataset.motionPopId=h;const C=d.ownerDocument,$=C.createElement("style");g&&($.nonce=g);const P=l??C.head;return P.appendChild($),$.sheet&&$.sheet.insertRule(`\n [data-motion-pop-id="${h}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n ${j}px !important;\n ${x}px !important;\n }\n `),()=>{d.removeAttribute("data-motion-pop-id"),P.contains($)&&P.removeChild($)}},[i]),n.exports.jsx(p,{isPresent:i,getElement:b,sizeRef:m,pop:f,children:!1===f?r:s.cloneElement(r,{ref:x})})};
2
2
  //# sourceMappingURL=PopChild.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PopChild.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.childRef.current;\n if (isHTMLElement(element) && prevProps.isPresent && !this.props.isPresent && this.props.pop !== false) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const parentHeight = isHTMLElement(parent)\n ? parent.offsetHeight || 0\n : 0;\n const computedStyle = getComputedStyle(element);\n const size = this.props.sizeRef.current;\n size.height = parseFloat(computedStyle.height);\n size.width = parseFloat(computedStyle.width);\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n size.bottom = parentHeight - size.height - size.top;\n size.direction = computedStyle.direction;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, anchorY, root, pop }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n direction: \"ltr\",\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n *\n * The composed ref is only used when popping the child out (pop !== false),\n * so we avoid reading children.props.ref otherwise. In React 18.3 that read\n * triggers a spurious \"`ref` is not a prop\" warning getter (#3745).\n */\n const childRef = pop !== false\n ? (children.props?.ref ??\n children?.ref)\n : undefined;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right, bottom, direction } = size.current;\n if (isPresent || pop === false || !ref.current || !width || !height)\n return;\n const isRTL = direction === \"rtl\";\n const x = anchorX === \"left\"\n ? (isRTL ? `right: ${right}` : `left: ${left}`)\n : (isRTL ? `left: ${left}` : `right: ${right}`);\n const y = anchorY === \"bottom\" ? `bottom: ${bottom}` : `top: ${top}`;\n ref.current.dataset.motionPopId = id;\n const style = document.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? document.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n ${y}px !important;\n }\n `);\n }\n return () => {\n ref.current?.removeAttribute(\"data-motion-pop-id\");\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, pop: pop, children: pop === false\n ? children\n : React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n"],"names":["PopChildMeasure","React","Component","getSnapshotBeforeUpdate","prevProps","parent","element","offsetParent","parentWidth","isHTMLElement","offsetWidth","parentHeight","offsetHeight","computedStyle","getComputedStyle","size","top","offsetTop","left","offsetLeft","right","width","bottom","height","direction","componentDidUpdate","props","children","isPresent","anchorX","anchorY","root","pop","id","useId","ref","useRef","childRef","current","isRTL","x","y","nonce","style","document","head","appendChild","sheet","insertRule","removeAttribute","contains","removeChild","cloneElement","composedRef"],"mappings":"4pBAqCA,MAAAA,UAAAC,EAAAC,UACIC,uBAAAA,CAAAC,uHAGQ,MAAAC,EAAAC,EAAAC,aACAC,EAAAC,EAAAA,cAAAJ,IACIA,EAAAK,eAEJC,EAAAF,EAAAA,cAAAJ,IACIA,EAAAO,gBAGJC,EAAAC,iBAAAR,0FAIAS,EAAAC,IAAAV,EAAAW,UACAF,EAAAG,KAAAZ,EAAAa,WACAJ,EAAAK,MAAAZ,EAAAO,EAAAM,MAAAN,EAAAG,KACAH,EAAAO,OAAAX,EAAAI,EAAAQ,OAAAR,EAAAC,IACAD,EAAAS,UAAAX,EAAAW,UAGJ,OAAA,KAMJC,kBAAAA,GAAA,UAGI,OAAAC,KAAAA,MAAAC,2BAIF,UAAAA,SAAAA,EAAAC,UAAAA,EAAAC,QAAAA,EAAAC,QAAAA,EAAAC,KAAAA,EAAAC,IAAAA,IACF,MAAAC,EAAAC,EAAAA,QACAC,EAAAC,SAAA,kBAEIf,MAAA,EACAE,OAAA,EACAP,IAAA,EACAE,KAAA,EACAE,MAAA,EACAE,OAAA,EACAE,UAAA,sDAWJa,GAAA,IAAAL,EAEQL,EAAAD,OAAAS,6EAeJ,MAAAd,MAAAA,EAAAE,OAAAA,EAAAP,IAAAA,EAAAE,KAAAA,EAAAE,MAAAA,EAAAE,OAAAA,EAAAE,UAAAA,GAAAT,EAAAuB,QACA,GAAAV,IAAAO,IAAAH,IAAAG,EAAAG,UAAAjB,IAAAE,SAEA,MAAAgB,EAAA,QAAAf,EACAgB,EAAA,SAAAX,EACIU,EAAAnB,UAAAA,IAAAF,SAAAA,IACAqB,EAAArB,SAAAA,cAAAE,IACJqB,EAAAnB,WAAAQ,EAAAR,WAAAA,YAAAN,4EAKA0B,IAAWC,EAAAD,MAAAA,GAEX,MAAArC,EAAA0B,GAAAa,SAAAC,KAeA,OAdAxC,EAAAyC,YAAAH,GAEAA,EAAAI,OACIJ,EAAAI,MAAAC,WAAA,+PAWJ,KACIb,EAAAG,SAAAW,gBAAA,sBACA5C,EAAA6C,SAAAP,IACItC,EAAA8C,YAAAR,KAGZ,CAAAf,4DAKYD,UAAAA,IAAAA,EAAAA,EACA1B,EAAAmD,aAAAzB,EAAA,CAAAQ,IAAAkB,KAGhB"}
1
+ {"version":3,"file":"PopChild.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { isHTMLElement } from 'motion-dom';\nimport * as React from 'react';\nimport { useId, useRef, useContext, useInsertionEffect } from 'react';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { useComposedRefs } from '../../utils/use-composed-ref.mjs';\n\n/**\n * Measurement functionality has to be within a separate component\n * to leverage snapshot lifecycle.\n */\nclass PopChildMeasure extends React.Component {\n getSnapshotBeforeUpdate(prevProps) {\n const element = this.props.getElement();\n if (isHTMLElement(element) && prevProps.isPresent && !this.props.isPresent && this.props.pop !== false) {\n const parent = element.offsetParent;\n const parentWidth = isHTMLElement(parent)\n ? parent.offsetWidth || 0\n : 0;\n const parentHeight = isHTMLElement(parent)\n ? parent.offsetHeight || 0\n : 0;\n const computedStyle = getComputedStyle(element);\n const size = this.props.sizeRef.current;\n size.height = parseFloat(computedStyle.height);\n size.width = parseFloat(computedStyle.width);\n size.top = element.offsetTop;\n size.left = element.offsetLeft;\n size.right = parentWidth - size.width - size.left;\n size.bottom = parentHeight - size.height - size.top;\n size.direction = computedStyle.direction;\n }\n return null;\n }\n /**\n * Required with getSnapshotBeforeUpdate to stop React complaining.\n */\n componentDidUpdate() { }\n render() {\n return this.props.children;\n }\n}\nfunction PopChild({ children, isPresent, anchorX, anchorY, root, pop, popNode }) {\n const id = useId();\n const ref = useRef(null);\n const size = useRef({\n width: 0,\n height: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n direction: \"ltr\",\n });\n const { nonce } = useContext(MotionConfigContext);\n /**\n * In React 19, refs are passed via props.ref instead of element.ref.\n * We check props.ref first (React 19) and fall back to element.ref (React 18).\n *\n * The composed ref is only used when popping the child out (pop !== false),\n * so we avoid reading children.props.ref otherwise. In React 18.3 that read\n * triggers a spurious \"`ref` is not a prop\" warning getter (#3745).\n */\n const childRef = pop !== false\n ? (children.props?.ref ??\n children?.ref)\n : undefined;\n const composedRef = useComposedRefs(ref, childRef);\n /**\n * The child's element: the one our ref reached or, if the child can't\n * be given a ref (for instance a function component that doesn't\n * forward it), its outermost motion component's element (#2503).\n */\n const getElement = () => ref.current || popNode?.current?.current;\n /**\n * We create and inject a style block so we can apply this explicit\n * sizing in a non-destructive manner by just deleting the style block.\n *\n * We can't apply size via render as the measurement happens\n * in getSnapshotBeforeUpdate (post-render), likewise if we apply the\n * styles directly on the DOM node, we might be overwriting\n * styles set via the style prop.\n */\n useInsertionEffect(() => {\n const { width, height, top, left, right, bottom, direction } = size.current;\n const element = getElement();\n if (isPresent || pop === false || !element || !width || !height)\n return;\n const isRTL = direction === \"rtl\";\n const x = anchorX === \"left\"\n ? (isRTL ? `right: ${right}` : `left: ${left}`)\n : (isRTL ? `left: ${left}` : `right: ${right}`);\n const y = anchorY === \"bottom\" ? `bottom: ${bottom}` : `top: ${top}`;\n element.dataset.motionPopId = id;\n /**\n * Use the element's own document so this works when rendering\n * into another window or iframe (e.g. via window.open()).\n */\n const doc = element.ownerDocument;\n const style = doc.createElement(\"style\");\n if (nonce)\n style.nonce = nonce;\n const parent = root ?? doc.head;\n parent.appendChild(style);\n if (style.sheet) {\n style.sheet.insertRule(`\n [data-motion-pop-id=\"${id}\"] {\n position: absolute !important;\n width: ${width}px !important;\n height: ${height}px !important;\n ${x}px !important;\n ${y}px !important;\n }\n `);\n }\n return () => {\n element.removeAttribute(\"data-motion-pop-id\");\n if (parent.contains(style)) {\n parent.removeChild(style);\n }\n };\n }, [isPresent]);\n return (jsx(PopChildMeasure, { isPresent: isPresent, getElement: getElement, sizeRef: size, pop: pop, children: pop === false\n ? children\n : React.cloneElement(children, { ref: composedRef }) }));\n}\n\nexport { PopChild };\n//# sourceMappingURL=PopChild.mjs.map\n"],"names":["PopChildMeasure","React","Component","getSnapshotBeforeUpdate","prevProps","parent","element","offsetParent","parentWidth","isHTMLElement","offsetWidth","parentHeight","offsetHeight","computedStyle","getComputedStyle","size","top","offsetTop","left","offsetLeft","right","width","bottom","height","direction","componentDidUpdate","props","children","id","useId","ref","useRef","childRef","pop","getElement","current","popNode","isPresent","isRTL","x","anchorX","y","anchorY","dataset","motionPopId","doc","ownerDocument","nonce","style","root","head","appendChild","sheet","insertRule","removeAttribute","contains","removeChild","cloneElement","composedRef"],"mappings":"4pBAsCA,MAAAA,UAAAC,EAAAC,UACIC,uBAAAA,CAAAC,mHAGQ,MAAAC,EAAAC,EAAAC,aACAC,EAAAC,EAAAA,cAAAJ,IACIA,EAAAK,eAEJC,EAAAF,EAAAA,cAAAJ,IACIA,EAAAO,gBAGJC,EAAAC,iBAAAR,0FAIAS,EAAAC,IAAAV,EAAAW,UACAF,EAAAG,KAAAZ,EAAAa,WACAJ,EAAAK,MAAAZ,EAAAO,EAAAM,MAAAN,EAAAG,KACAH,EAAAO,OAAAX,EAAAI,EAAAQ,OAAAR,EAAAC,IACAD,EAAAS,UAAAX,EAAAW,UAGJ,OAAA,KAMJC,kBAAAA,GAAA,UAGI,OAAAC,KAAAA,MAAAC,yGAKJ,MAAAC,EAAAC,EAAAA,QACAC,EAAAC,SAAA,kBAEIV,MAAA,EACAE,OAAA,EACAP,IAAA,EACAE,KAAA,EACAE,MAAA,EACAE,OAAA,EACAE,UAAA,sDAWJQ,GAAA,IAAAC,EAEQN,EAAAD,OAAAI,4CAURI,EAAAA,IAAAJ,EAAAK,SAAAC,GAAAD,SAAAA,yCAaI,MAAAd,MAAAA,EAAAE,OAAAA,EAAAP,IAAAA,EAAAE,KAAAA,EAAAE,MAAAA,EAAAE,OAAAA,EAAAE,UAAAA,GAAAT,EAAAoB,QACA7B,EAAA4B,IACA,GAAAG,IAAA,IAAAJ,IAAA3B,IAAAe,IAAAE,SAEA,MAAAe,EAAA,QAAAd,EACAe,EAAA,SAAAC,EACIF,EAAAlB,UAAAA,IAAAF,SAAAA,IACAoB,EAAApB,SAAAA,cAAAE,IACJqB,EAAAnB,WAAAoB,EAAApB,WAAAA,YAAAN,IAEAV,EAAAqC,QAAAC,YAAAhB,EAMA,MAAAiB,EAAAvC,EAAAwC,yCAEAC,IAAWC,EAAAD,MAAAA,GAEX,MAAA1C,EAAA4C,GAAAJ,EAAAK,KAeA,OAdA7C,EAAA8C,YAAAH,GAEAA,EAAAI,OACIJ,EAAAI,MAAAC,WAAA,+PAWJ,KACI/C,EAAAgD,gBAAA,sBACAjD,EAAAkD,SAAAP,IACI3C,EAAAmD,YAAAR,KAGZ,CAAAX,8DAKYV,UAAAA,IAAAA,EAAAA,EACA1B,EAAAwD,aAAA9B,EAAA,CAAAG,IAAA4B,KAGhB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),r=require("../../context/PresenceContext.mjs.js"),t=require("../../utils/use-constant.mjs.js"),s=require("../../utils/use-isomorphic-effect.mjs.js"),o=require("./PopChild.mjs.js"),n=require("../../../../../../_virtual/jsx-runtime.js");function u(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var i=u(e);function c(){return new Map}exports.PresenceChild=({children:u,initial:a,isPresent:f,onExitComplete:l,custom:j,presenceAffectsLayout:p,mode:d,anchorX:m,anchorY:h,root:x})=>{const P=t.useConstant(c),v=e.useId(),C=e.useRef(f),b=e.useRef(l);s.useIsomorphicLayoutEffect(()=>{C.current=f,b.current=l});let q=!0,y=e.useMemo(()=>(q=!1,{id:v,initial:a,isPresent:f,custom:j,onExitComplete:e=>{P.set(e,!0);for(const e of P.values())if(!e)return;l&&l()},register:e=>(P.set(e,!1),()=>{P.delete(e),!C.current&&!P.size&&b.current?.()})}),[f,P,l]);return p&&q&&(y={...y}),e.useMemo(()=>{P.forEach((e,r)=>P.set(r,!1))},[f]),i.useEffect(()=>{!f&&!P.size&&l&&l()},[f]),u=n.exports.jsx(o.PopChild,{pop:"popLayout"===d,isPresent:f,anchorX:m,anchorY:h,root:x,children:u}),n.exports.jsx(r.PresenceContext.Provider,{value:y,children:u})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),r=require("../../context/PresenceContext.mjs.js"),t=require("../../utils/use-constant.mjs.js"),s=require("../../utils/use-isomorphic-effect.mjs.js"),n=require("./PopChild.mjs.js"),o=require("../../../../../../_virtual/jsx-runtime.js");function u(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var i=u(e);function c(){return new Map}exports.PresenceChild=({children:u,initial:a,isPresent:f,onExitComplete:l,custom:p,presenceAffectsLayout:j,mode:d,anchorX:m,anchorY:h,root:x})=>{const P=t.useConstant(c),v=e.useId(),C=e.useRef(),b=e.useRef(f),q=e.useRef(l);s.useIsomorphicLayoutEffect(()=>{b.current=f,q.current=l});let y=!0,O=e.useMemo(()=>(y=!1,{id:v,initial:a,isPresent:f,custom:p,onExitComplete:e=>{P.set(e,!0);for(const e of P.values())if(!e)return;l&&l()},register:(e,r)=>(P.set(e,!1),r&&r.parent?.presenceContext?.id!==v&&(C.current=r),()=>{P.delete(e),!b.current&&!P.size&&q.current?.()})}),[f,P,l]);return j&&y&&(O={...O}),e.useMemo(()=>{P.forEach((e,r)=>P.set(r,!1))},[f]),i.useEffect(()=>{!f&&!P.size&&l&&l()},[f]),u=o.exports.jsx(n.PopChild,{pop:"popLayout"===d,isPresent:f,anchorX:m,anchorY:h,root:x,popNode:C,children:u}),o.exports.jsx(r.PresenceContext.Provider,{value:O,children:u})};
2
2
  //# sourceMappingURL=PresenceChild.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PresenceChild.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useRef, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, anchorY, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n // Written in a layout effect (not render) so discarded concurrent\n // renders can't leave the refs pointing at uncommitted state.\n const isPresentRef = useRef(isPresent);\n const onExitCompleteRef = useRef(onExitComplete);\n useIsomorphicLayoutEffect(() => {\n isPresentRef.current = isPresent;\n onExitCompleteRef.current = onExitComplete;\n });\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId) => {\n presenceChildren.set(childId, false);\n return () => {\n presenceChildren.delete(childId);\n !isPresentRef.current &&\n !presenceChildren.size &&\n onExitCompleteRef.current?.();\n };\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n children = (jsx(PopChild, { pop: mode === \"popLayout\", isPresent: isPresent, anchorX: anchorX, anchorY: anchorY, root: root, children: children }));\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n"],"names":["newChildrenMap","PresenceChild","children","initial","isPresent","onExitComplete","custom","presenceAffectsLayout","mode","anchorX","anchorY","root","presenceChildren","useConstant","id","useId","isPresentRef","useRef","onExitCompleteRef","current","context","useMemo","childId","set","isComplete","register","delete","isReusedContext","forEach","_","key","React","useEffect","jsx","exports","PopChild","pop","PresenceContext","Provider","value"],"mappings":"6pBAoHA,SAAAA,kBAEA,uBA5FOC,EAAAC,WAAAC,UAAAC,YAAAC,iBAAAC,SAAAC,wBAAAC,OAAAC,UAAAC,UAAAC,WAYH,MAAAC,EAAAC,cAAAb,GACAc,EAAAC,EAAAA,QAIAC,EAAAC,SAAAb,GACAc,EAAAD,SAAAZ,oCAEIW,EAAAG,QAAAf,EACAc,EAAAC,QAAAd,aAIJe,EAAAC,EAAAA,QAAA,+CAOQhB,eAAAiB,IACIV,EAAAW,IAAAD,GAAA,6BAGI,IAAAE,EAAiB,eAKzBC,SAAAH,IACIV,EAAAW,IAAAD,GAAA,GACA,KACIV,EAAAc,OAAAJ,IAGIJ,EAAAA,UAAAA,EAAAA,MAAAA,EAAAC,yBAoCpB,OAzBAZ,GAAAoB,IACIP,EAAA,IAAAA,mBAIAR,EAAAgB,QAAA,CAAAC,EAAAC,IAAAlB,EAAAW,IAAAO,GAAA,KACJ,CAAA1B,IAMA2B,EAAAC,UAAA,MACI5B,eAGIC,KACR,CAAAD,IAEAF,EAAA+B,EAAAC,QAAAD,IAAAE,WAAA,CAAAC,IAAA,cAAA5B,EAAAJ,UAAAA,EAAAK,QAAAA,EAAAC,QAAAA,EAAAC,KAAAA,EAAAT,SAAAA,IAMA+B,EAAAC,QAAAD,IAAAI,EAAAA,gBAAAC,SAAA,CAAAC,MAAAnB,EAAAlB,SAAAA"}
1
+ {"version":3,"file":"PresenceChild.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { useId, useRef, useMemo } from 'react';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PopChild } from './PopChild.mjs';\n\nconst PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, anchorY, root }) => {\n const presenceChildren = useConstant(newChildrenMap);\n const id = useId();\n /**\n * The outermost motion component within this child. popLayout falls\n * back to its element when the child can't be given a ref, for instance\n * a function component that doesn't forward refs (#2503).\n */\n const popNode = useRef();\n // Written in a layout effect (not render) so discarded concurrent\n // renders can't leave the refs pointing at uncommitted state.\n const isPresentRef = useRef(isPresent);\n const onExitCompleteRef = useRef(onExitComplete);\n useIsomorphicLayoutEffect(() => {\n isPresentRef.current = isPresent;\n onExitCompleteRef.current = onExitComplete;\n });\n let isReusedContext = true;\n let context = useMemo(() => {\n isReusedContext = false;\n return {\n id,\n initial,\n isPresent,\n custom,\n onExitComplete: (childId) => {\n presenceChildren.set(childId, true);\n for (const isComplete of presenceChildren.values()) {\n if (!isComplete)\n return; // can stop searching when any is incomplete\n }\n onExitComplete && onExitComplete();\n },\n register: (childId, node) => {\n presenceChildren.set(childId, false);\n if (node && node.parent?.presenceContext?.id !== id) {\n popNode.current = node;\n }\n return () => {\n presenceChildren.delete(childId);\n !isPresentRef.current &&\n !presenceChildren.size &&\n onExitCompleteRef.current?.();\n };\n },\n };\n }, [isPresent, presenceChildren, onExitComplete]);\n /**\n * If the presence of a child affects the layout of the components around it,\n * we want to make a new context value to ensure they get re-rendered\n * so they can detect that layout change.\n */\n if (presenceAffectsLayout && isReusedContext) {\n context = { ...context };\n }\n useMemo(() => {\n presenceChildren.forEach((_, key) => presenceChildren.set(key, false));\n }, [isPresent]);\n /**\n * If there's no `motion` components to fire exit animations, we want to remove this\n * component immediately.\n */\n React.useEffect(() => {\n !isPresent &&\n !presenceChildren.size &&\n onExitComplete &&\n onExitComplete();\n }, [isPresent]);\n children = (jsx(PopChild, { pop: mode === \"popLayout\", isPresent: isPresent, anchorX: anchorX, anchorY: anchorY, root: root, popNode: popNode, children: children }));\n return (jsx(PresenceContext.Provider, { value: context, children: children }));\n};\nfunction newChildrenMap() {\n return new Map();\n}\n\nexport { PresenceChild };\n//# sourceMappingURL=PresenceChild.mjs.map\n"],"names":["newChildrenMap","PresenceChild","children","initial","isPresent","onExitComplete","custom","presenceAffectsLayout","mode","anchorX","anchorY","root","presenceChildren","useConstant","id","useId","popNode","useRef","isPresentRef","onExitCompleteRef","current","context","useMemo","childId","set","isComplete","register","node","parent","presenceContext","delete","isReusedContext","forEach","_","key","React","useEffect","jsx","exports","PopChild","pop","PresenceContext","Provider","value"],"mappings":"6pBA+HA,SAAAA,kBAEA,uBAtGOC,EAAAC,WAAAC,UAAAC,YAAAC,iBAAAC,SAAAC,wBAAAC,OAAAC,UAAAC,UAAAC,WAYH,MAAAC,EAAAC,cAAAb,GACAc,EAAAC,EAAAA,QAOAC,EAAAC,EAAAA,SAIAC,EAAAD,SAAAb,GACAe,EAAAF,SAAAZ,oCAEIa,EAAAE,QAAAhB,EACAe,EAAAC,QAAAf,aAIJgB,EAAAC,EAAAA,QAAA,+CAOQjB,eAAAkB,IACIX,EAAAY,IAAAD,GAAA,6BAGI,IAAAE,EAAiB,eAKzBC,SAAAA,CAAAH,EAAAI,KACIf,EAAAY,IAAAD,GAAA,GACAI,GAAAA,EAAAC,QAAAC,iBAAAf,KAAAA,IACIE,EAAAI,QAAAO,GAEJ,KACIf,EAAAkB,OAAAP,IAGIJ,EAAAA,UAAAA,EAAAA,MAAAA,EAAAC,yBAoCpB,OAzBAb,GAAAwB,IACIV,EAAA,IAAAA,mBAIAT,EAAAoB,QAAA,CAAAC,EAAAC,IAAAtB,EAAAY,IAAAU,GAAA,KACJ,CAAA9B,IAMA+B,EAAAC,UAAA,MACIhC,eAGIC,KACR,CAAAD,IAEAF,EAAAmC,EAAAC,QAAAD,IAAAE,WAAA,CAAAC,IAAA,cAAAhC,EAAAJ,UAAAA,EAAAK,QAAAA,EAAAC,QAAAA,EAAAC,KAAAA,EAAAK,QAAAA,EAAAd,SAAAA,IAMAmC,EAAAC,QAAAD,IAAAI,EAAAA,gBAAAC,SAAA,CAAAC,MAAAtB,EAAAnB,SAAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../context/LayoutGroupContext.mjs.js"),r=require("../../utils/use-constant.mjs.js"),s=require("../../utils/use-isomorphic-effect.mjs.js"),n=require("./PresenceChild.mjs.js"),o=require("./use-presence.mjs.js"),i=require("./utils.mjs.js"),u=require("../../../../../../_virtual/jsx-runtime.js");exports.AnimatePresence=({children:c,custom:l,initial:a=!0,onExitComplete:d,presenceAffectsLayout:h=!0,mode:m="sync",propagate:p=!1,anchorX:f="left",anchorY:j="top",root:x})=>{const[g,y]=o.usePresence(p),C=e.useMemo(()=>i.onlyElements(c),[c]),q=p&&!g?[]:C.map(i.getChildKey),v=e.useRef(!0),w=e.useRef(C),E=r.useConstant(()=>new Map),P=e.useRef(new Set),[L,A]=e.useState(C),[K,R]=e.useState(C);s.useIsomorphicLayoutEffect(()=>{v.current=!1,w.current=C;for(let e=0;e<K.length;e++){const t=i.getChildKey(K[e]);q.includes(t)?(E.delete(t),P.current.delete(t)):!0!==E.get(t)&&E.set(t,!1)}},[K,q.length,q.join("-")]);const _=[];if(C!==L){let e=[...C];for(let t=0;t<K.length;t++){const r=K[t],s=i.getChildKey(r);q.includes(s)||(e.splice(t,0,r),_.push(r))}return"wait"===m&&_.length&&(e=_),R(i.onlyElements(e)),A(C),null}"production"!==process.env.NODE_ENV&&"wait"===m&&K.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.');const{forceRender:b}=e.useContext(t.LayoutGroupContext);return u.exports.jsx(u.exports.Fragment,{children:K.map(e=>{const t=i.getChildKey(e),r=!(p&&!g)&&(C===K||q.includes(t));return u.exports.jsx(n.PresenceChild,{isPresent:r,initial:!(v.current&&!a)&&void 0,custom:l,presenceAffectsLayout:h,mode:m,root:x,onExitComplete:r?void 0:()=>{if(P.current.has(t))return;if(!E.has(t))return;P.current.add(t),E.set(t,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(b?.(),R(w.current),p&&y?.(),d&&d())},anchorX:f,anchorY:j,children:e},t)})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../context/LayoutGroupContext.mjs.js"),r=require("../../utils/use-constant.mjs.js"),s=require("../../utils/use-isomorphic-effect.mjs.js"),n=require("./PresenceChild.mjs.js"),o=require("./use-presence.mjs.js"),i=require("./utils.mjs.js"),u=require("../../../../../../_virtual/jsx-runtime.js");exports.AnimatePresence=({children:c,custom:l,initial:a=!0,onExitComplete:d,presenceAffectsLayout:h=!0,mode:m="sync",propagate:p=!1,anchorX:f="left",anchorY:j="top",root:g})=>{const[x,y]=o.usePresence(p),C=e.useMemo(()=>i.onlyElements(c),[c]),v=p&&!x?[]:C.map(i.getChildKey),E=e.useRef(!0),q=r.useConstant(()=>new Map),w=e.useRef(new Set),[P,L]=e.useState(C),[K,A]=e.useState(C);s.useIsomorphicLayoutEffect(()=>{!p||x||K.length||y?.()},[x,p,K.length,y]);const R=e.useRef();e.useEffect(()=>()=>{const e=R.current;R.current=void 0,e?.()},[K]),s.useIsomorphicLayoutEffect(()=>{E.current=!1;for(let e=0;e<K.length;e++){const t=i.getChildKey(K[e]);v.includes(t)?(q.delete(t),w.current.delete(t)):!0!==q.get(t)&&q.set(t,!1)}},[K,v.length,v.join("-")]);const _=[];if(C!==P){let e=[...C],t=0;for(const r of K){const s=v.indexOf(i.getChildKey(r));-1===s?(e.splice(t++,0,r),_.push(r)):t=s+_.length+1}return _.every(e=>q.get(i.getChildKey(e)))?e=C:"wait"===m&&(e=_),A(i.onlyElements(e)),L(C),null}"production"!==process.env.NODE_ENV&&"wait"===m&&K.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.');const{forceRender:b}=e.useContext(t.LayoutGroupContext);return u.exports.jsx(u.exports.Fragment,{children:K.map(e=>{const t=i.getChildKey(e),r=!(p&&!x)&&(C===K||v.includes(t));return u.exports.jsx(n.PresenceChild,{isPresent:r,initial:!(E.current&&!a)&&void 0,custom:l,presenceAffectsLayout:h,mode:m,root:g,onExitComplete:r?void 0:()=>{if(w.current.has(t))return;if(!q.has(t))return;w.current.add(t),q.set(t,!0);let e=!0;q.forEach(t=>{t||(e=!1)}),e&&(b?.(),L([]),p&&y?.(),R.current=d)},anchorX:f,anchorY:j,children:e},t)})})};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", anchorY = \"top\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * A ref containing the currently present children. When all exit animations\n * are complete, we use this to re-render the component with the latest children\n * *committed* rather than the latest children *rendered*.\n */\n const pendingPresentChildren = useRef(presentChildren);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n pendingPresentChildren.current = presentChildren;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const child = renderedChildren[i];\n const key = getChildKey(child);\n if (!presentKeys.includes(key)) {\n nextChildren.splice(i, 0, child);\n exitingChildren.push(child);\n }\n }\n /**\n * If we're in \"wait\" mode, and we have exiting children, we want to\n * only render these until they've all exited.\n */\n if (mode === \"wait\" && exitingChildren.length) {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n if (exitComplete.has(key)) {\n exitingComponents.current.add(key);\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n setRenderedChildren(pendingPresentChildren.current);\n propagate && safeToRemove?.();\n onExitComplete && onExitComplete();\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, anchorY: anchorY, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n"],"names":["AnimatePresence","children","custom","initial","onExitComplete","presenceAffectsLayout","mode","propagate","anchorX","anchorY","root","presentChildren","useMemo","onlyElements","presentKeys","isParentPresent","map","getChildKey","isInitialRender","useRef","pendingPresentChildren","current","i","renderedChildren","length","exitComplete","delete","key","exitingComponents","set","join","diffedChildren","nextChildren","child","exitingChildren","push","setRenderedChildren","process","env","NODE_ENV","console","warn","isPresent","includes","jsx","PresenceChild","undefined","has","add","forEach","isExitComplete","safeToRemove"],"mappings":"odA6COA,EAAAC,WAAAC,SAAAC,WAAA,EAAAC,iBAAAC,yBAAA,EAAAC,OAAA,OAAAC,aAAA,EAAAC,UAAA,OAAAC,UAAA,MAAAC,uCAkBHC,EAAAC,EAAAA,QAAA,IAAAC,EAAAA,aAAAZ,IAAAA,IAMAa,EAAAP,IAAAQ,KAAAJ,EAAAK,IAAAC,EAAAA,aAMAC,EAAAC,UAAA,GAOAC,EAAAD,SAAAR,6HAoBIO,EAAAG,SAAA,EACAD,EAAAC,QAAAV,EAKA,IAAAW,IAAAA,IAAAA,EAAAC,EAAAC,OAAAF,IAAA,4CAQQG,EAAAC,OAAAC,GACAC,EAAAP,QAAAK,OAAAC,mBAJIF,EAAAI,IAAAF,GAAA,KAOhBJ,CAAAA,EAAAT,EAAAU,OAAAV,EAAAgB,KAAA,kBAIA,GAAAnB,IAAAoB,EAAA,CACI,IAAAC,MAAArB,GAMA,IAAAW,IAAAA,IAAAA,EAAAC,EAAAC,OAAAF,IAAA,CACI,MAAAW,EAAAV,EAAAD,GACAK,EAAAV,cAAAgB,mCAIIC,EAAAC,KAAAF,IAmBR,kCAPAG,EAAAvB,EAAAA,aAAAmB,SAOA,oBAGJK,QAAAC,IAAAC,UAEI,SAAAjC,GACAiB,EAAAC,OAAA,GAEAgB,QAAAC,KAAA,sQAeQ,MAAAd,EAAAV,cAAAgB,GAEAS,IAAAnC,IAAAQ,YAIUD,EAAA6B,SAAAhB,IA6BV,OAAAiB,EAAAA,QAAAA,IAAAC,EAAAA,cAAA,CAAAH,UAAAA,EAAAvC,UAAAe,EAAAG,UAAAlB,SAMgB2C,yGA5BZ,IAAArB,EAAAsB,IAAApB,UACIC,EAAAP,QAAA2B,IAAArB,GACAF,EAAAI,IAAAF,GAAA,YAMJF,EAAAwB,QAAAC,IACIA,sBAKAd,EAAAhB,EAAAC,SAEAd,GAAA4C"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsx, Fragment } from 'react/jsx-runtime';\nimport { useMemo, useRef, useState, useEffect, useContext } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { useConstant } from '../../utils/use-constant.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\nimport { PresenceChild } from './PresenceChild.mjs';\nimport { usePresence } from './use-presence.mjs';\nimport { onlyElements, getChildKey } from './utils.mjs';\n\n/**\n * `AnimatePresence` enables the animation of components that have been removed from the tree.\n *\n * When adding/removing more than a single child, every child **must** be given a unique `key` prop.\n *\n * Any `motion` components that have an `exit` property defined will animate out when removed from\n * the tree.\n *\n * ```jsx\n * import { motion, AnimatePresence } from 'framer-motion'\n *\n * export const Items = ({ items }) => (\n * <AnimatePresence>\n * {items.map(item => (\n * <motion.div\n * key={item.id}\n * initial={{ opacity: 0 }}\n * animate={{ opacity: 1 }}\n * exit={{ opacity: 0 }}\n * />\n * ))}\n * </AnimatePresence>\n * )\n * ```\n *\n * You can sequence exit animations throughout a tree using variants.\n *\n * If a child contains multiple `motion` components with `exit` props, it will only unmount the child\n * once all `motion` components have finished animating out. Likewise, any components using\n * `usePresence` all need to call `safeToRemove`.\n *\n * @public\n */\nconst AnimatePresence = ({ children, custom, initial = true, onExitComplete, presenceAffectsLayout = true, mode = \"sync\", propagate = false, anchorX = \"left\", anchorY = \"top\", root }) => {\n const [isParentPresent, safeToRemove] = usePresence(propagate);\n /**\n * Filter any children that aren't ReactElements. We can only track components\n * between renders with a props.key.\n */\n const presentChildren = useMemo(() => onlyElements(children), [children]);\n /**\n * Track the keys of the currently rendered children. This is used to\n * determine which children are exiting.\n */\n const presentKeys = propagate && !isParentPresent ? [] : presentChildren.map(getChildKey);\n /**\n * If `initial={false}` we only want to pass this to components in the first render.\n */\n const isInitialRender = useRef(true);\n /**\n * Track which exiting children have finished animating out.\n */\n const exitComplete = useConstant(() => new Map());\n /**\n * Track which components are currently processing exit to prevent duplicate processing.\n */\n const exitingComponents = useRef(new Set());\n /**\n * Save children to render as React state. To ensure this component is concurrent-safe,\n * we check for exiting children via an effect.\n */\n const [diffedChildren, setDiffedChildren] = useState(presentChildren);\n const [renderedChildren, setRenderedChildren] = useState(presentChildren);\n useIsomorphicLayoutEffect(() => {\n if (propagate && !isParentPresent && !renderedChildren.length) {\n safeToRemove?.();\n }\n }, [isParentPresent, propagate, renderedChildren.length, safeToRemove]);\n /**\n * When every exit completes, we re-render to remove the exited children\n * and store onExitComplete here. It fires from the cleanup of an effect\n * keyed on the rendered children, so it runs in the commit that removes\n * them (or when we unmount), after their own effect cleanups.\n */\n const pendingExitComplete = useRef();\n useEffect(() => () => {\n const callback = pendingExitComplete.current;\n pendingExitComplete.current = undefined;\n callback?.();\n }, [renderedChildren]);\n useIsomorphicLayoutEffect(() => {\n isInitialRender.current = false;\n /**\n * Update complete status of exiting children.\n */\n for (let i = 0; i < renderedChildren.length; i++) {\n const key = getChildKey(renderedChildren[i]);\n if (!presentKeys.includes(key)) {\n if (exitComplete.get(key) !== true) {\n exitComplete.set(key, false);\n }\n }\n else {\n exitComplete.delete(key);\n exitingComponents.current.delete(key);\n }\n }\n }, [renderedChildren, presentKeys.length, presentKeys.join(\"-\")]);\n const exitingChildren = [];\n if (presentChildren !== diffedChildren) {\n let nextChildren = [...presentChildren];\n /**\n * Loop through all the currently rendered components and decide which\n * are exiting.\n *\n * Exiting children are reinserted directly after the child they\n * previously followed. Splicing at their index within the previously\n * rendered children, as we used to, indexes into the wrong list: it\n * can interleave them with entering children and push present children\n * to new positions, remounting them (#3746).\n */\n let insertionIndex = 0;\n for (const child of renderedChildren) {\n const presentIndex = presentKeys.indexOf(getChildKey(child));\n if (presentIndex === -1) {\n nextChildren.splice(insertionIndex++, 0, child);\n exitingChildren.push(child);\n }\n else {\n insertionIndex = presentIndex + exitingChildren.length + 1;\n }\n }\n /**\n * Once every exiting child has finished animating out, remove them\n * all at once. Otherwise, if we're in \"wait\" mode, we want to only\n * render the exiting children until they've all exited.\n */\n if (exitingChildren.every((child) => exitComplete.get(getChildKey(child)))) {\n nextChildren = presentChildren;\n }\n else if (mode === \"wait\") {\n nextChildren = exitingChildren;\n }\n setRenderedChildren(onlyElements(nextChildren));\n setDiffedChildren(presentChildren);\n /**\n * Early return to ensure once we've set state with the latest diffed\n * children, we can immediately re-render.\n */\n return null;\n }\n if (process.env.NODE_ENV !== \"production\" &&\n mode === \"wait\" &&\n renderedChildren.length > 1) {\n console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.`);\n }\n /**\n * If we've been provided a forceRender function by the LayoutGroupContext,\n * we can use it to force a re-render amongst all surrounding components once\n * all components have finished animating out.\n */\n const { forceRender } = useContext(LayoutGroupContext);\n return (jsx(Fragment, { children: renderedChildren.map((child) => {\n const key = getChildKey(child);\n const isPresent = propagate && !isParentPresent\n ? false\n : presentChildren === renderedChildren ||\n presentKeys.includes(key);\n const onExit = () => {\n if (exitingComponents.current.has(key)) {\n return;\n }\n if (exitComplete.has(key)) {\n exitingComponents.current.add(key);\n exitComplete.set(key, true);\n }\n else {\n return;\n }\n let isEveryExitComplete = true;\n exitComplete.forEach((isExitComplete) => {\n if (!isExitComplete)\n isEveryExitComplete = false;\n });\n if (isEveryExitComplete) {\n forceRender?.();\n /**\n * Re-diff rather than setting the children to render\n * directly: this update can be applied after a\n * transition has committed new children, so any\n * children read now could be stale by then.\n */\n setDiffedChildren([]);\n propagate && safeToRemove?.();\n pendingExitComplete.current = onExitComplete;\n }\n };\n return (jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial\n ? undefined\n : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, anchorY: anchorY, children: child }, key));\n }) }));\n};\n\nexport { AnimatePresence };\n//# sourceMappingURL=index.mjs.map\n"],"names":["AnimatePresence","children","custom","initial","onExitComplete","presenceAffectsLayout","mode","propagate","anchorX","anchorY","root","presentChildren","useMemo","onlyElements","presentKeys","isParentPresent","map","getChildKey","isInitialRender","useRef","renderedChildren","length","safeToRemove","pendingExitComplete","useEffect","callback","current","undefined","i","exitComplete","delete","key","exitingComponents","set","join","diffedChildren","nextChildren","child","presentIndex","exitingChildren","push","setRenderedChildren","process","env","NODE_ENV","console","warn","isPresent","includes","jsx","PresenceChild","has","add","forEach","isExitComplete"],"mappings":"odA6COA,EAAAC,WAAAC,SAAAC,WAAA,EAAAC,iBAAAC,yBAAA,EAAAC,OAAA,OAAAC,aAAA,EAAAC,UAAA,OAAAC,UAAA,MAAAC,uCAkBHC,EAAAC,EAAAA,QAAA,IAAAC,EAAAA,aAAAZ,IAAAA,IAMAa,EAAAP,IAAAQ,KAAAJ,EAAAK,IAAAC,EAAAA,aAMAC,EAAAC,UAAA,qJAuBAJ,CAAAA,EAAAR,EAAAa,EAAAC,OAAAC,IAQA,MAAAC,EAAAJ,EAAAA,SAEAK,EAAAA,UAAA,IAAA,KAEQ,MAAAC,EAAAF,EAAAG,QACAH,EAAAG,aAAAC,SAEJ,CAAAP,qCAKAF,EAAAQ,SAAA,EAKA,IAAAE,IAAAA,IAAAA,EAAAR,EAAAC,OAAAO,IAAA,4CAQQC,EAAAC,OAAAC,GACAC,EAAAN,QAAAI,OAAAC,mBAJIF,EAAAI,IAAAF,GAAA,KAOhBX,CAAAA,EAAAN,EAAAO,OAAAP,EAAAoB,KAAA,kBAIA,GAAAvB,IAAAwB,EAAA,CACI,IAAAC,MAAAzB,OAcA,IAAA0B,MAAAA,KAAAjB,EAAA,sCAGI,IAAAkB,qBAEIC,EAAAC,KAAAH,mBA4BR,+CAXO,SAAA/B,SAIPmC,EAAA5B,EAAAA,aAAAuB,SAOA,oBAGJM,QAAAC,IAAAC,UAEI,SAAAtC,GACAc,EAAAC,OAAA,GAEAwB,QAAAC,KAAA,sQAeQ,MAAAf,EAAAd,cAAAoB,GAEAU,IAAAxC,IAAAQ,YAIUD,EAAAkC,SAAAjB,IAmCV,OAAAkB,EAAAA,QAAAA,IAAAC,EAAAA,cAAA,CAAAH,UAAAA,EAAA5C,UAAAe,EAAAQ,UAAAvB,SAMgBwB,yGAlCZ,IAAAE,EAAAsB,IAAApB,UACIC,EAAAN,QAAA0B,IAAArB,GACAF,EAAAI,IAAAF,GAAA,YAMJF,EAAAwB,QAAAC,IACIA,4BAaA/C,GAAAe,MAEAC,EAAAG,QAAAtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs"],"sourcesContent":["import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by preprending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n//# sourceMappingURL=utils.mjs.map\n"],"names":["child","key","children","filtered","Children","forEach","isValidElement","push"],"mappings":"+GAI4BA,GACxBA,EAAMC,KAAO,wBAEX,SAAuBC,GACzB,MAAMC,EAAgC,GAOtC,OAJAC,WAASC,QAAQH,EAAWF,IACpBM,EAAAA,eAAeN,IAAQG,EAASI,KAAKP,KAGtCG,CACX"}
1
+ {"version":3,"file":"utils.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs"],"sourcesContent":["import { Children, isValidElement } from 'react';\n\nconst getChildKey = (child) => child.key || \"\";\nfunction onlyElements(children) {\n const filtered = [];\n // We use forEach here instead of map as map mutates the component key by prepending `.$`\n Children.forEach(children, (child) => {\n if (isValidElement(child))\n filtered.push(child);\n });\n return filtered;\n}\n\nexport { getChildKey, onlyElements };\n//# sourceMappingURL=utils.mjs.map\n"],"names":["child","key","children","filtered","Children","forEach","isValidElement","push"],"mappings":"+GAI4BA,GACxBA,EAAMC,KAAO,wBAEX,SAAuBC,GACzB,MAAMC,EAAgC,GAOtC,OAJAC,WAASC,QAAQH,EAAWF,IACpBM,EAAAA,eAAeN,IAAQG,EAASI,KAAKP,KAGtCG,CACX"}
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutGroupContext.mjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"LayoutGroupContext.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs"],"sourcesContent":["\"use client\";\nimport { createContext } from 'react';\n\nconst LayoutGroupContext = \n/* @__PURE__ */ createContext({});\n\nexport { LayoutGroupContext };\n//# sourceMappingURL=LayoutGroupContext.mjs.map\n"],"names":["LayoutGroupContext","createContext"],"mappings":"oEAYI,MAAAA,mBAAAC,cAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"LazyContext.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/context/LazyContext.mjs"],"sourcesContent":["\"use client\";\nimport { createContext } from 'react';\n\nconst LazyContext = createContext({ strict: false });\n\nexport { LazyContext };\n//# sourceMappingURL=LazyContext.mjs.map\n"],"names":["LazyContext","createContext","strict"],"mappings":"oEAUOA,MAAAA,mBAAAC,cAAA,CAAAC,QAAA"}
1
+ {"version":3,"file":"LazyContext.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/context/LazyContext.mjs"],"sourcesContent":["\"use client\";\nimport { createContext } from 'react';\n\nconst LazyContext = /* @__PURE__ */ createContext({\n strict: false,\n});\n\nexport { LazyContext };\n//# sourceMappingURL=LazyContext.mjs.map\n"],"names":["LazyContext","createContext","strict"],"mappings":"oEAUOA,MAAAA,mBAAAC,cAAA,CACHC,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"MotionConfigContext.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs"],"sourcesContent":["\"use client\";\nimport { createContext } from 'react';\n\n/**\n * @public\n */\nconst MotionConfigContext = createContext({\n transformPagePoint: (p) => p,\n isStatic: false,\n reducedMotion: \"never\",\n});\n\nexport { MotionConfigContext };\n//# sourceMappingURL=MotionConfigContext.mjs.map\n"],"names":["MotionConfigContext","createContext","transformPagePoint","p","isStatic","reducedMotion"],"mappings":"oEA4DOA,MAAAA,mBAAAC,cAAA,CACHC,mBAAAC,GAAAA,EACAC,UAAA,EACAC,cAAA"}
1
+ {"version":3,"file":"MotionConfigContext.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs"],"sourcesContent":["\"use client\";\nimport { createContext } from 'react';\n\n/**\n * @public\n */\nconst MotionConfigContext = \n/* @__PURE__ */ createContext({\n transformPagePoint: (p) => p,\n isStatic: false,\n reducedMotion: \"never\",\n});\n\nexport { MotionConfigContext };\n//# sourceMappingURL=MotionConfigContext.mjs.map\n"],"names":["MotionConfigContext","createContext","transformPagePoint","p","isStatic","reducedMotion"],"mappings":"oEAqEI,MAAAA,mBAAAC,cAAA,CACIC,mBAAAC,GAAAA,EACAC,UAAA,EACAC,cAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchLayoutGroupContext.mjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"SwitchLayoutGroupContext.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs"],"sourcesContent":["\"use client\";\nimport { createContext } from 'react';\n\n/**\n * Internal, exported only for usage in Framer\n */\nconst SwitchLayoutGroupContext = \n/* @__PURE__ */ createContext({});\n\nexport { SwitchLayoutGroupContext };\n//# sourceMappingURL=SwitchLayoutGroupContext.mjs.map\n"],"names":["SwitchLayoutGroupContext","createContext"],"mappings":"oEA6BI,MAAAA,mBAAAC,cAAA,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("./VisualElementDragControls.mjs.js"),o=require("../../../../../motion-dom/dist/es/render/Feature.mjs.js"),e=require("../../../../../motion-utils/dist/es/noop.mjs.js");class r extends o.Feature{constructor(o){super(o),this.removeGroupControls=e.noop,this.removeListeners=e.noop,this.controls=new s.VisualElementDragControls(o)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e.noop}update(){const{dragControls:s}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};s!==o&&(this.removeGroupControls(),s&&(this.removeGroupControls=s.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}exports.DragGesture=r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../../../../motion-dom/dist/es/render/Feature.mjs.js"),o=require("../../../../../motion-utils/dist/es/noop.mjs.js"),e=require("../../../../../motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs.js");class r extends s.Feature{constructor(s){super(s),this.removeGroupControls=o.noop,this.removeListeners=o.noop,this.controls=new e.VisualElementDragControls(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||o.noop}update(){const{dragControls:s,drag:o}=this.node.getProps(),{dragControls:e,drag:r}=this.node.prevProps||{};s!==e&&(this.removeGroupControls(),s&&(this.removeGroupControls=s.subscribe(this.controls))),r&&!o&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}exports.DragGesture=r;
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/index.mjs"],"sourcesContent":["import { Feature } from 'motion-dom';\nimport { noop } from 'motion-utils';\nimport { VisualElementDragControls } from './VisualElementDragControls.mjs';\n\nclass DragGesture extends Feature {\n constructor(node) {\n super(node);\n this.removeGroupControls = noop;\n this.removeListeners = noop;\n this.controls = new VisualElementDragControls(node);\n }\n mount() {\n // If we've been provided a DragControls for manual control over the drag gesture,\n // subscribe this component to it on mount.\n const { dragControls } = this.node.getProps();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n this.removeListeners = this.controls.addListeners() || noop;\n }\n update() {\n const { dragControls } = this.node.getProps();\n const { dragControls: prevDragControls } = this.node.prevProps || {};\n if (dragControls !== prevDragControls) {\n this.removeGroupControls();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n }\n }\n unmount() {\n this.removeGroupControls();\n this.removeListeners();\n /**\n * In React 19, during list reorder reconciliation, components may\n * briefly unmount and remount while the drag is still active. If we're\n * actively dragging, we should NOT end the pan session - it will\n * continue tracking pointer events via its window-level listeners.\n *\n * The pan session will be properly cleaned up when:\n * 1. The drag ends naturally (pointerup/pointercancel)\n * 2. The component is truly removed from the DOM\n */\n if (!this.controls.isDragging) {\n this.controls.endPanSession();\n }\n }\n}\n\nexport { DragGesture };\n//# sourceMappingURL=index.mjs.map\n"],"names":["DragGesture","Feature","constructor","node","super","this","removeGroupControls","noop","removeListeners","controls","VisualElementDragControls","mount","dragControls","getProps","subscribe","addListeners","update","prevDragControls","prevProps","unmount","isDragging","endPanSession"],"mappings":"0PAIM,MAAOA,UAAoBC,EAAAA,QAM7BC,WAAAA,CAAYC,GACRC,MAAMD,GAJVE,KAAAC,oBAAgCC,OAChCF,KAAAG,gBAA4BD,OAIxBF,KAAKI,SAAW,IAAIC,EAAyBA,0BAACP,EAClD,CAEAQ,KAAAA,GAGI,MAAMC,aAAEA,GAAiBP,KAAKF,KAAKU,WAE/BD,IACAP,KAAKC,oBAAsBM,EAAaE,UAAUT,KAAKI,WAG3DJ,KAAKG,gBAAkBH,KAAKI,SAASM,gBAAkBR,EAAAA,IAC3D,CAEAS,MAAAA,GACI,MAAMJ,aAAEA,GAAiBP,KAAKF,KAAKU,YAC3BD,aAAcK,GAAqBZ,KAAKF,KAAKe,WAAa,GAE9DN,IAAiBK,IACjBZ,KAAKC,sBACDM,IACAP,KAAKC,oBAAsBM,EAAaE,UAAUT,KAAKI,WAGnE,CAEAU,OAAAA,GACId,KAAKC,sBACLD,KAAKG,kBAWAH,KAAKI,SAASW,YACff,KAAKI,SAASY,eAEtB"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/index.mjs"],"sourcesContent":["import { Feature, VisualElementDragControls } from 'motion-dom';\nimport { noop } from 'motion-utils';\n\nclass DragGesture extends Feature {\n constructor(node) {\n super(node);\n this.removeGroupControls = noop;\n this.removeListeners = noop;\n this.controls = new VisualElementDragControls(node);\n }\n mount() {\n // If we've been provided a DragControls for manual control over the drag gesture,\n // subscribe this component to it on mount.\n const { dragControls } = this.node.getProps();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n this.removeListeners = this.controls.addListeners() || noop;\n }\n update() {\n const { dragControls, drag } = this.node.getProps();\n const { dragControls: prevDragControls, drag: prevDrag } = this.node.prevProps || {};\n if (dragControls !== prevDragControls) {\n this.removeGroupControls();\n if (dragControls) {\n this.removeGroupControls = dragControls.subscribe(this.controls);\n }\n }\n /**\n * If drag is disabled mid-gesture, for instance from onDrag, end the\n * gesture as if released. This must happen before this render's\n * layout change is processed, otherwise the element is still\n * animation-blocked, so it jumps to its new layout and keeps that\n * jump as a drag offset, which release wouldn't animate away as\n * drag is now disabled.\n */\n if (prevDrag && !drag)\n this.controls.stop(undefined, undefined, prevDrag);\n }\n unmount() {\n this.removeGroupControls();\n this.removeListeners();\n /**\n * In React 19, during list reorder reconciliation, components may\n * briefly unmount and remount while the drag is still active. If we're\n * actively dragging, we should NOT end the pan session - it will\n * continue tracking pointer events via its window-level listeners.\n *\n * The pan session will be properly cleaned up when:\n * 1. The drag ends naturally (pointerup/pointercancel)\n * 2. The component is truly removed from the DOM\n */\n if (!this.controls.isDragging) {\n this.controls.endPanSession();\n }\n }\n}\n\nexport { DragGesture };\n//# sourceMappingURL=index.mjs.map\n"],"names":["DragGesture","Feature","constructor","node","super","this","removeGroupControls","noop","removeListeners","controls","VisualElementDragControls","mount","dragControls","getProps","subscribe","addListeners","update","drag","prevDragControls","prevDrag","prevProps","stop","undefined","unmount","isDragging","endPanSession"],"mappings":"wSAOM,MAAOA,UAAoBC,EAAAA,QAM7BC,WAAAA,CAAYC,GACRC,MAAMD,GAJVE,KAAAC,oBAAgCC,OAChCF,KAAAG,gBAA4BD,OAIxBF,KAAKI,SAAW,IAAIC,EAAyBA,0BAACP,EAClD,CAEAQ,KAAAA,GAGI,MAAMC,aAAEA,GAAiBP,KAAKF,KAAKU,WAE/BD,IACAP,KAAKC,oBAAsBM,EAAaE,UAAUT,KAAKI,WAG3DJ,KAAKG,gBAAkBH,KAAKI,SAASM,gBAAkBR,EAAAA,IAC3D,CAEAS,MAAAA,GACI,MAAMJ,aAAEA,EAAYK,KAAEA,GAASZ,KAAKF,KAAKU,YACjCD,aAAcM,EAAkBD,KAAME,GAC1Cd,KAAKF,KAAKiB,WAAa,GAEvBR,IAAiBM,IACjBb,KAAKC,sBACDM,IACAP,KAAKC,oBAAsBM,EAAaE,UAAUT,KAAKI,YAY3DU,IAAaF,GACbZ,KAAKI,SAASY,UAAKC,OAAWA,EAAWH,EACjD,CAEAI,OAAAA,GACIlB,KAAKC,sBACLD,KAAKG,kBAWAH,KAAKI,SAASe,YACfnB,KAAKI,SAASgB,eAEtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-drag-controls.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs"],"sourcesContent":["import { useConstant } from '../../utils/use-constant.mjs';\n\n/**\n * Can manually trigger a drag gesture on one or more `drag`-enabled `motion` components.\n *\n * ```jsx\n * const dragControls = useDragControls()\n *\n * function startDrag(event) {\n * dragControls.start(event, { snapToCursor: true })\n * }\n *\n * return (\n * <>\n * <div onPointerDown={startDrag} />\n * <motion.div drag=\"x\" dragControls={dragControls} />\n * </>\n * )\n * ```\n *\n * @public\n */\nclass DragControls {\n constructor() {\n this.componentControls = new Set();\n }\n /**\n * Subscribe a component's internal `VisualElementDragControls` to the user-facing API.\n *\n * @internal\n */\n subscribe(controls) {\n this.componentControls.add(controls);\n return () => this.componentControls.delete(controls);\n }\n /**\n * Start a drag gesture on every `motion` component that has this set of drag controls\n * passed into it via the `dragControls` prop.\n *\n * ```jsx\n * dragControls.start(e, {\n * snapToCursor: true\n * })\n * ```\n *\n * @param event - PointerEvent\n * @param options - Options\n *\n * @public\n */\n start(event, options) {\n this.componentControls.forEach((controls) => {\n controls.start(event.nativeEvent || event, options);\n });\n }\n /**\n * Cancels a drag gesture.\n *\n * ```jsx\n * dragControls.cancel()\n * ```\n *\n * @public\n */\n cancel() {\n this.componentControls.forEach((controls) => {\n controls.cancel();\n });\n }\n /**\n * Stops a drag gesture.\n *\n * ```jsx\n * dragControls.stop()\n * ```\n *\n * @public\n */\n stop() {\n this.componentControls.forEach((controls) => {\n controls.stop();\n });\n }\n}\nconst createDragControls = () => new DragControls();\n/**\n * Usually, dragging is initiated by pressing down on a `motion` component with a `drag` prop\n * and moving it. For some use-cases, for instance clicking at an arbitrary point on a video scrubber, we\n * might want to initiate that dragging from a different component than the draggable one.\n *\n * By creating a `dragControls` using the `useDragControls` hook, we can pass this into\n * the draggable component's `dragControls` prop. It exposes a `start` method\n * that can start dragging from pointer events on other components.\n *\n * ```jsx\n * const dragControls = useDragControls()\n *\n * function startDrag(event) {\n * dragControls.start(event, { snapToCursor: true })\n * }\n *\n * return (\n * <>\n * <div onPointerDown={startDrag} />\n * <motion.div drag=\"x\" dragControls={dragControls} />\n * </>\n * )\n * ```\n *\n * @public\n */\nfunction useDragControls() {\n return useConstant(createDragControls);\n}\n\nexport { DragControls, useDragControls };\n//# sourceMappingURL=use-drag-controls.mjs.map\n"],"names":["DragControls","constructor","this","componentControls","Set","subscribe","controls","add","delete","start","event","options","forEach","nativeEvent","cancel","stop","createDragControls","useDragControls","useConstant"],"mappings":"2HA2BaA,EAAbC,WAAAA,GACYC,KAAAC,kBAAoB,IAAIC,GAqEpC,CA9DIC,SAAAA,CAAUC,GAGN,OAFAJ,KAAKC,kBAAkBI,IAAID,GAEpB,IAAMJ,KAAKC,kBAAkBK,OAAOF,EAC/C,CAiBAG,KAAAA,CACIC,EACAC,GAEAT,KAAKC,kBAAkBS,QAASN,IAC5BA,EAASG,MACJC,EAA6BG,aAAeH,EAC7CC,IAGZ,CAWAG,MAAAA,GACIZ,KAAKC,kBAAkBS,QAASN,IAC5BA,EAASQ,UAEjB,CAWAC,IAAAA,GACIb,KAAKC,kBAAkBS,QAASN,IAC5BA,EAASS,QAEjB,EAGJ,MAAMC,EAAqBA,IAAM,IAAIhB,iDA4BrBiB,WACZ,OAAOC,EAAAA,YAAYF,EACvB"}
1
+ {"version":3,"file":"use-drag-controls.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs"],"sourcesContent":["import { useConstant } from '../../utils/use-constant.mjs';\n\n/**\n * Can manually trigger a drag gesture on one or more `drag`-enabled `motion` components.\n *\n * ```jsx\n * const dragControls = useDragControls()\n *\n * function startDrag(event) {\n * dragControls.start(event, { snapToCursor: true })\n * }\n *\n * return (\n * <>\n * <div onPointerDown={startDrag} />\n * <motion.div drag=\"x\" dragControls={dragControls} />\n * </>\n * )\n * ```\n *\n * @public\n */\nclass DragControls {\n constructor() {\n this.componentControls = new Set();\n }\n /**\n * Subscribe a component's internal `VisualElementDragControls` to the user-facing API.\n *\n * @internal\n */\n subscribe(controls) {\n this.componentControls.add(controls);\n return () => this.componentControls.delete(controls);\n }\n /**\n * Start a drag gesture on every `motion` component that has this set of drag controls\n * passed into it via the `dragControls` prop.\n *\n * ```jsx\n * dragControls.start(e, {\n * snapToCursor: true\n * })\n * ```\n *\n * @param event - PointerEvent\n * @param options - Options\n *\n * @public\n */\n start(event, options) {\n this.componentControls.forEach((controls) => {\n controls.start(event.nativeEvent || event, options);\n });\n }\n /**\n * Cancels a drag gesture.\n *\n * ```jsx\n * dragControls.cancel()\n * ```\n *\n * @public\n */\n cancel() {\n this.componentControls.forEach((controls) => {\n controls.cancel();\n });\n }\n /**\n * Stops a drag gesture.\n *\n * ```jsx\n * dragControls.stop()\n * ```\n *\n * @public\n */\n stop() {\n this.componentControls.forEach((controls) => {\n controls.stop();\n });\n }\n}\nconst createDragControls = () => new DragControls();\n/**\n * Usually, dragging is initiated by pressing down on a `motion` component with a `drag` prop\n * and moving it. For some use-cases, for instance clicking at an arbitrary point on a video scrubber, we\n * might want to initiate that dragging from a different component than the draggable one.\n *\n * By creating a `dragControls` using the `useDragControls` hook, we can pass this into\n * the draggable component's `dragControls` prop. It exposes a `start` method\n * that can start dragging from pointer events on other components.\n *\n * ```jsx\n * const dragControls = useDragControls()\n *\n * function startDrag(event) {\n * dragControls.start(event, { snapToCursor: true })\n * }\n *\n * return (\n * <>\n * <div onPointerDown={startDrag} />\n * <motion.div drag=\"x\" dragControls={dragControls} />\n * </>\n * )\n * ```\n *\n * @public\n */\nfunction useDragControls() {\n return useConstant(createDragControls);\n}\n\nexport { DragControls, useDragControls };\n//# sourceMappingURL=use-drag-controls.mjs.map\n"],"names":["DragControls","constructor","this","componentControls","Set","subscribe","controls","add","delete","start","event","options","forEach","nativeEvent","cancel","stop","createDragControls","useDragControls","useConstant"],"mappings":"2HAwBaA,EAAbC,WAAAA,GACYC,KAAAC,kBAAoB,IAAIC,GAqEpC,CA9DIC,SAAAA,CAAUC,GAGN,OAFAJ,KAAKC,kBAAkBI,IAAID,GAEpB,IAAMJ,KAAKC,kBAAkBK,OAAOF,EAC/C,CAiBAG,KAAAA,CACIC,EACAC,GAEAT,KAAKC,kBAAkBS,QAASN,IAC5BA,EAASG,MACJC,EAA6BG,aAAeH,EAC7CC,IAGZ,CAWAG,MAAAA,GACIZ,KAAKC,kBAAkBS,QAASN,IAC5BA,EAASQ,UAEjB,CAWAC,IAAAA,GACIb,KAAKC,kBAAkBS,QAASN,IAC5BA,EAASS,QAEjB,EAGJ,MAAMC,EAAqBA,IAAM,IAAIhB,iDA4BrBiB,WACZ,OAAOC,EAAAA,YAAYF,EACvB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../events/event-info.mjs.js"),t=require("../../../../motion-dom/dist/es/render/Feature.mjs.js"),o=require("../../../../motion-dom/dist/es/gestures/hover.mjs.js"),r=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js");function s(t,o,s){const{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===s);const i=n["onHover"+s];i&&r.frame.postRender(()=>i(o,e.extractEventInfo(o)))}class n extends t.Feature{mount(){const{current:e}=this.node;e&&(this.unmount=o.hover(e,(e,t)=>(s(this.node,t,"Start"),e=>s(this.node,e,"End"))))}unmount(){}}exports.HoverGesture=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../motion-dom/dist/es/render/Feature.mjs.js"),t=require("../../../../motion-dom/dist/es/gestures/hover.mjs.js"),o=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),s=require("../../../../motion-dom/dist/es/events/event-info.mjs.js");function r(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);const i=n["onHover"+r];i&&o.frame.postRender(()=>i(t,s.extractEventInfo(t)))}class n extends e.Feature{mount(){const{current:e}=this.node;e&&(this.unmount=t.hover(e,(e,t)=>(r(this.node,t,"Start"),e=>r(this.node,e,"End"))))}unmount(){}}exports.HoverGesture=n;
2
2
  //# sourceMappingURL=hover.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hover.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/hover.mjs"],"sourcesContent":["import { Feature, hover, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\n\nfunction handleHoverEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.animationState && props.whileHover) {\n node.animationState.setActive(\"whileHover\", lifecycle === \"Start\");\n }\n const eventName = (\"onHover\" + lifecycle);\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass HoverGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n this.unmount = hover(current, (_element, startEvent) => {\n handleHoverEvent(this.node, startEvent, \"Start\");\n return (endEvent) => handleHoverEvent(this.node, endEvent, \"End\");\n });\n }\n unmount() { }\n}\n\nexport { HoverGesture };\n//# sourceMappingURL=hover.mjs.map\n"],"names":["handleHoverEvent","node","event","lifecycle","props","animationState","whileHover","setActive","callback","frame","postRender","extractEventInfo","HoverGesture","Feature","mount","current","this","unmount","hover","_element","startEvent","endEvent"],"mappings":"wTAGA,SAASA,EACLC,EACAC,EACAC,GAEA,MAAMC,MAAEA,GAAUH,EAEdA,EAAKI,gBAAkBD,EAAME,YAC7BL,EAAKI,eAAeE,UAAU,aAA4B,UAAdJ,GAGhD,MACMK,EAAWJ,EADE,UAAYD,GAE3BK,GACAC,EAAKA,MAACC,WAAW,IAAMF,EAASN,EAAOS,mBAAiBT,IAEhE,CAEM,MAAOU,UAAqBC,EAAAA,QAC9BC,KAAAA,GACI,MAAMC,QAAEA,GAAYC,KAAKf,KACpBc,IAELC,KAAKC,QAAUC,EAAKA,MAACH,EAAS,CAACI,EAAUC,KACrCpB,EAAiBgB,KAAKf,KAAMmB,EAAY,SAEhCC,GAAarB,EAAiBgB,KAAKf,KAAMoB,EAAU,SAEnE,CAEAJ,OAAAA,GAAW"}
1
+ {"version":3,"file":"hover.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/hover.mjs"],"sourcesContent":["import { Feature, hover, frame, extractEventInfo } from 'motion-dom';\n\nfunction handleHoverEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.animationState && props.whileHover) {\n node.animationState.setActive(\"whileHover\", lifecycle === \"Start\");\n }\n const eventName = (\"onHover\" + lifecycle);\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass HoverGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n this.unmount = hover(current, (_element, startEvent) => {\n handleHoverEvent(this.node, startEvent, \"Start\");\n return (endEvent) => handleHoverEvent(this.node, endEvent, \"End\");\n });\n }\n unmount() { }\n}\n\nexport { HoverGesture };\n//# sourceMappingURL=hover.mjs.map\n"],"names":["handleHoverEvent","node","event","lifecycle","props","animationState","whileHover","setActive","callback","frame","postRender","extractEventInfo","HoverGesture","Feature","mount","current","this","unmount","hover","_element","startEvent","endEvent"],"mappings":"oVAQA,SAASA,EACLC,EACAC,EACAC,GAEA,MAAMC,MAAEA,GAAUH,EAEdA,EAAKI,gBAAkBD,EAAME,YAC7BL,EAAKI,eAAeE,UAAU,aAA4B,UAAdJ,GAGhD,MACMK,EAAWJ,EADE,UAAYD,GAE3BK,GACAC,EAAKA,MAACC,WAAW,IAAMF,EAASN,EAAOS,mBAAiBT,IAEhE,CAEM,MAAOU,UAAqBC,EAAAA,QAC9BC,KAAAA,GACI,MAAMC,QAAEA,GAAYC,KAAKf,KACpBc,IAELC,KAAKC,QAAUC,EAAKA,MAACH,EAAS,CAACI,EAAUC,KACrCpB,EAAiBgB,KAAKf,KAAMmB,EAAY,SAEhCC,GAAarB,EAAiBgB,KAAKf,KAAMoB,EAAU,SAEnE,CAEAJ,OAAAA,GAAW"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../events/add-pointer-event.mjs.js"),n=require("../../utils/get-context-window.mjs.js"),s=require("./PanSession.mjs.js"),t=require("../../../../../motion-dom/dist/es/render/Feature.mjs.js"),o=require("../../../../../motion-utils/dist/es/noop.mjs.js"),r=require("../../../../../motion-dom/dist/es/frameloop/frame.mjs.js");const i=e=>(n,s)=>{e&&r.frame.update(()=>e(n,s),!1,!0)};class a extends t.Feature{constructor(){super(...arguments),this.removePointerDownListener=o.noop}onPointerDown(e){this.session=new s.PanSession(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n.getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:t}=this.node.getProps();return{onSessionStart:i(e),onStart:i(n),onMove:i(s),onEnd:(e,n)=>{delete this.session,t&&r.frame.postRender(()=>t(e,n))}}}mount(){this.removePointerDownListener=e.addPointerEvent(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}exports.PanGesture=a;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../utils/get-context-window.mjs.js"),s=require("../../../../../motion-dom/dist/es/render/Feature.mjs.js"),n=require("../../../../../motion-utils/dist/es/noop.mjs.js"),t=require("../../../../../motion-dom/dist/es/gestures/pan/PanSession.mjs.js"),o=require("../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),r=require("../../../../../motion-dom/dist/es/events/add-pointer-event.mjs.js");const i=e=>(s,n)=>{e&&o.frame.update(()=>e(s,n),!1,!0)};class a extends s.Feature{constructor(){super(...arguments),this.removePointerDownListener=n.noop}onPointerDown(s){this.session=new t.PanSession(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:e.getContextWindow(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:s,onPan:n,onPanEnd:t}=this.node.getProps();return{onSessionStart:i(e),onStart:i(s),onMove:i(n),onEnd:(e,s)=>{delete this.session,t&&o.frame.postRender(()=>t(e,s))}}}mount(){this.removePointerDownListener=r.addPointerEvent(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}exports.PanGesture=a;
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/pan/index.mjs"],"sourcesContent":["import { Feature, frame } from 'motion-dom';\nimport { noop } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { getContextWindow } from '../../utils/get-context-window.mjs';\nimport { PanSession } from './PanSession.mjs';\n\nconst asyncHandler = (handler) => (event, info) => {\n if (handler) {\n frame.update(() => handler(event, info), false, true);\n }\n};\nclass PanGesture extends Feature {\n constructor() {\n super(...arguments);\n this.removePointerDownListener = noop;\n }\n onPointerDown(pointerDownEvent) {\n this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), {\n transformPagePoint: this.node.getTransformPagePoint(),\n contextWindow: getContextWindow(this.node),\n });\n }\n createPanHandlers() {\n const { onPanSessionStart, onPanStart, onPan, onPanEnd } = this.node.getProps();\n return {\n onSessionStart: asyncHandler(onPanSessionStart),\n onStart: asyncHandler(onPanStart),\n onMove: asyncHandler(onPan),\n onEnd: (event, info) => {\n delete this.session;\n if (onPanEnd) {\n frame.postRender(() => onPanEnd(event, info));\n }\n },\n };\n }\n mount() {\n this.removePointerDownListener = addPointerEvent(this.node.current, \"pointerdown\", (event) => this.onPointerDown(event));\n }\n update() {\n this.session && this.session.updateHandlers(this.createPanHandlers());\n }\n unmount() {\n this.removePointerDownListener();\n this.session && this.session.end();\n }\n}\n\nexport { PanGesture };\n//# sourceMappingURL=index.mjs.map\n"],"names":["asyncHandler","handler","event","info","frame","update","PanGesture","Feature","constructor","this","removePointerDownListener","noop","onPointerDown","pointerDownEvent","session","PanSession","createPanHandlers","transformPagePoint","node","getTransformPagePoint","contextWindow","getContextWindow","onPanSessionStart","onPanStart","onPan","onPanEnd","getProps","onSessionStart","onStart","onMove","onEnd","postRender","mount","addPointerEvent","current","updateHandlers","unmount","end"],"mappings":"uZAOA,MAAMA,EACDC,GAA8B,CAACC,EAAqBC,KAC7CF,GACAG,QAAMC,OAAO,IAAMJ,EAAQC,EAAOC,IAAO,GAAO,IAItD,MAAOG,UAAmBC,EAAAA,QAAhCC,WAAAA,uBAGYC,KAAAC,0BAAsCC,MA8ClD,CA5CIC,aAAAA,CAAcC,GACVJ,KAAKK,QAAU,IAAIC,EAAAA,WACfF,EACAJ,KAAKO,oBACL,CACIC,mBAAoBR,KAAKS,KAAKC,wBAC9BC,cAAeC,EAAAA,iBAAiBZ,KAAKS,OAGjD,CAEAF,iBAAAA,GACI,MAAMM,kBAAEA,EAAiBC,WAAEA,EAAUC,MAAEA,EAAKC,SAAEA,GAC1ChB,KAAKS,KAAKQ,WAEd,MAAO,CACHC,eAAgB3B,EAAasB,GAC7BM,QAAS5B,EAAauB,GACtBM,OAAQ7B,EAAawB,GACrBM,MAAOA,CAAC5B,EAAqBC,YAClBM,KAAKK,QACRW,GACArB,EAAKA,MAAC2B,WAAW,IAAMN,EAASvB,EAAOC,KAIvD,CAEA6B,KAAAA,GACIvB,KAAKC,0BAA4BuB,kBAC7BxB,KAAKS,KAAKgB,QACV,cACChC,GAAwBO,KAAKG,cAAcV,GAEpD,CAEAG,MAAAA,GACII,KAAKK,SAAWL,KAAKK,QAAQqB,eAAe1B,KAAKO,oBACrD,CAEAoB,OAAAA,GACI3B,KAAKC,4BACLD,KAAKK,SAAWL,KAAKK,QAAQuB,KACjC"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/pan/index.mjs"],"sourcesContent":["import { Feature, PanSession, frame, addPointerEvent } from 'motion-dom';\nimport { noop } from 'motion-utils';\nimport { getContextWindow } from '../../utils/get-context-window.mjs';\n\nconst asyncHandler = (handler) => (event, info) => {\n if (handler) {\n frame.update(() => handler(event, info), false, true);\n }\n};\nclass PanGesture extends Feature {\n constructor() {\n super(...arguments);\n this.removePointerDownListener = noop;\n }\n onPointerDown(pointerDownEvent) {\n this.session = new PanSession(pointerDownEvent, this.createPanHandlers(), {\n transformPagePoint: this.node.getTransformPagePoint(),\n contextWindow: getContextWindow(this.node),\n });\n }\n createPanHandlers() {\n const { onPanSessionStart, onPanStart, onPan, onPanEnd } = this.node.getProps();\n return {\n onSessionStart: asyncHandler(onPanSessionStart),\n onStart: asyncHandler(onPanStart),\n onMove: asyncHandler(onPan),\n onEnd: (event, info) => {\n delete this.session;\n if (onPanEnd) {\n frame.postRender(() => onPanEnd(event, info));\n }\n },\n };\n }\n mount() {\n this.removePointerDownListener = addPointerEvent(this.node.current, \"pointerdown\", (event) => this.onPointerDown(event));\n }\n update() {\n this.session && this.session.updateHandlers(this.createPanHandlers());\n }\n unmount() {\n this.removePointerDownListener();\n this.session && this.session.end();\n }\n}\n\nexport { PanGesture };\n//# sourceMappingURL=index.mjs.map\n"],"names":["asyncHandler","handler","event","info","frame","update","PanGesture","Feature","constructor","this","removePointerDownListener","noop","onPointerDown","pointerDownEvent","session","PanSession","createPanHandlers","transformPagePoint","node","getTransformPagePoint","contextWindow","getContextWindow","onPanSessionStart","onPanStart","onPan","onPanEnd","getProps","onSessionStart","onStart","onMove","onEnd","postRender","mount","addPointerEvent","current","updateHandlers","unmount","end"],"mappings":"geAWA,MAAMA,EACDC,GAA8B,CAACC,EAAqBC,KAC7CF,GACAG,QAAMC,OAAO,IAAMJ,EAAQC,EAAOC,IAAO,GAAO,IAItD,MAAOG,UAAmBC,EAAAA,QAAhCC,WAAAA,uBAGYC,KAAAC,0BAAsCC,MA8ClD,CA5CIC,aAAAA,CAAcC,GACVJ,KAAKK,QAAU,IAAIC,EAAAA,WACfF,EACAJ,KAAKO,oBACL,CACIC,mBAAoBR,KAAKS,KAAKC,wBAC9BC,cAAeC,EAAAA,iBAAiBZ,KAAKS,OAGjD,CAEAF,iBAAAA,GACI,MAAMM,kBAAEA,EAAiBC,WAAEA,EAAUC,MAAEA,EAAKC,SAAEA,GAC1ChB,KAAKS,KAAKQ,WAEd,MAAO,CACHC,eAAgB3B,EAAasB,GAC7BM,QAAS5B,EAAauB,GACtBM,OAAQ7B,EAAawB,GACrBM,MAAOA,CAAC5B,EAAqBC,YAClBM,KAAKK,QACRW,GACArB,EAAKA,MAAC2B,WAAW,IAAMN,EAASvB,EAAOC,KAIvD,CAEA6B,KAAAA,GACIvB,KAAKC,0BAA4BuB,kBAC7BxB,KAAKS,KAAKgB,QACV,cACChC,GAAwBO,KAAKG,cAAcV,GAEpD,CAEAG,MAAAA,GACII,KAAKK,SAAWL,KAAKK,QAAQqB,eAAe1B,KAAKO,oBACrD,CAEAoB,OAAAA,GACI3B,KAAKC,4BACLD,KAAKK,SAAWL,KAAKK,QAAQuB,KACjC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../events/event-info.mjs.js"),t=require("../../../../motion-dom/dist/es/render/Feature.mjs.js"),s=require("../../../../motion-dom/dist/es/gestures/press/index.mjs.js"),n=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js");function r(t,s,r){const{props:o}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&o.whileTap&&t.animationState.setActive("whileTap","Start"===r);const a=o["onTap"+("End"===r?"":r)];a&&n.frame.postRender(()=>a(s,e.extractEventInfo(s)))}class o extends t.Feature{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=s.press(e,(e,t)=>(r(this.node,t,"Start"),(e,{success:t})=>r(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:!1===n?.tap})}unmount(){}}exports.PressGesture=o;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../motion-dom/dist/es/render/Feature.mjs.js"),t=require("../../../../motion-dom/dist/es/gestures/press/index.mjs.js"),s=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),n=require("../../../../motion-dom/dist/es/events/event-info.mjs.js");function o(e,t,o){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===o);const i=r["onTap"+("End"===o?"":o)];i&&s.frame.postRender(()=>i(t,n.extractEventInfo(t)))}class r extends e.Feature{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:s,propagate:n}=this.node.props;this.unmount=t.press(e,(e,t)=>(o(this.node,t,"Start"),(e,{success:t})=>o(this.node,e,t?"End":"Cancel")),{useGlobalTarget:s,stopPropagation:!1===n?.tap})}unmount(){}}exports.PressGesture=r;
2
2
  //# sourceMappingURL=press.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"press.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/press.mjs"],"sourcesContent":["import { Feature, press, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\n\nfunction handlePressEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.current instanceof HTMLButtonElement && node.current.disabled) {\n return;\n }\n if (node.animationState && props.whileTap) {\n node.animationState.setActive(\"whileTap\", lifecycle === \"Start\");\n }\n const eventName = (\"onTap\" + (lifecycle === \"End\" ? \"\" : lifecycle));\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass PressGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n const { globalTapTarget, propagate } = this.node.props;\n this.unmount = press(current, (_element, startEvent) => {\n handlePressEvent(this.node, startEvent, \"Start\");\n return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? \"End\" : \"Cancel\");\n }, {\n useGlobalTarget: globalTapTarget,\n stopPropagation: propagate?.tap === false,\n });\n }\n unmount() { }\n}\n\nexport { PressGesture };\n//# sourceMappingURL=press.mjs.map\n"],"names":["handlePressEvent","node","event","lifecycle","props","current","HTMLButtonElement","disabled","animationState","whileTap","setActive","callback","frame","postRender","extractEventInfo","PressGesture","Feature","mount","this","globalTapTarget","propagate","unmount","press","_element","startEvent","endEvent","success","useGlobalTarget","stopPropagation","tap"],"mappings":"8TAGA,SAASA,EACLC,EACAC,EACAC,GAEA,MAAMC,MAAEA,GAAUH,EAElB,GAAIA,EAAKI,mBAAmBC,mBAAqBL,EAAKI,QAAQE,SAC1D,OAGAN,EAAKO,gBAAkBJ,EAAMK,UAC7BR,EAAKO,eAAeE,UAAU,WAA0B,UAAdP,GAG9C,MAKMQ,EAAWP,EALE,SAAyB,QAAdD,EAAsB,GAAKA,IAMrDQ,GACAC,EAAKA,MAACC,WAAW,IAAMF,EAAST,EAAOY,mBAAiBZ,IAEhE,CAEM,MAAOa,UAAqBC,EAAAA,QAC9BC,KAAAA,GACI,MAAMZ,QAAEA,GAAYa,KAAKjB,KACzB,IAAKI,EAAS,OAEd,MAAMc,gBAAEA,EAAeC,UAAEA,GAAcF,KAAKjB,KAAKG,MAEjDc,KAAKG,QAAUC,EAAKA,MAChBjB,EACA,CAACkB,EAAUC,KACPxB,EAAiBkB,KAAKjB,KAAMuB,EAAY,SAEjC,CAACC,GAAYC,aAChB1B,EACIkB,KAAKjB,KACLwB,EACAC,EAAU,MAAQ,WAG9B,CACIC,gBAAiBR,EACjBS,iBAAoC,IAAnBR,GAAWS,KAGxC,CAEAR,OAAAA,GAAW"}
1
+ {"version":3,"file":"press.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/gestures/press.mjs"],"sourcesContent":["import { Feature, press, frame, extractEventInfo } from 'motion-dom';\n\nfunction handlePressEvent(node, event, lifecycle) {\n const { props } = node;\n if (node.current instanceof HTMLButtonElement && node.current.disabled) {\n return;\n }\n if (node.animationState && props.whileTap) {\n node.animationState.setActive(\"whileTap\", lifecycle === \"Start\");\n }\n const eventName = (\"onTap\" + (lifecycle === \"End\" ? \"\" : lifecycle));\n const callback = props[eventName];\n if (callback) {\n frame.postRender(() => callback(event, extractEventInfo(event)));\n }\n}\nclass PressGesture extends Feature {\n mount() {\n const { current } = this.node;\n if (!current)\n return;\n const { globalTapTarget, propagate } = this.node.props;\n this.unmount = press(current, (_element, startEvent) => {\n handlePressEvent(this.node, startEvent, \"Start\");\n return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? \"End\" : \"Cancel\");\n }, {\n useGlobalTarget: globalTapTarget,\n stopPropagation: propagate?.tap === false,\n });\n }\n unmount() { }\n}\n\nexport { PressGesture };\n//# sourceMappingURL=press.mjs.map\n"],"names":["handlePressEvent","node","event","lifecycle","props","current","HTMLButtonElement","disabled","animationState","whileTap","setActive","callback","frame","postRender","extractEventInfo","PressGesture","Feature","mount","this","globalTapTarget","propagate","unmount","press","_element","startEvent","endEvent","success","useGlobalTarget","stopPropagation","tap"],"mappings":"0VAQA,SAASA,EACLC,EACAC,EACAC,GAEA,MAAMC,MAAEA,GAAUH,EAElB,GAAIA,EAAKI,mBAAmBC,mBAAqBL,EAAKI,QAAQE,SAC1D,OAGAN,EAAKO,gBAAkBJ,EAAMK,UAC7BR,EAAKO,eAAeE,UAAU,WAA0B,UAAdP,GAG9C,MAKMQ,EAAWP,EALE,SAAyB,QAAdD,EAAsB,GAAKA,IAMrDQ,GACAC,EAAKA,MAACC,WAAW,IAAMF,EAAST,EAAOY,mBAAiBZ,IAEhE,CAEM,MAAOa,UAAqBC,EAAAA,QAC9BC,KAAAA,GACI,MAAMZ,QAAEA,GAAYa,KAAKjB,KACzB,IAAKI,EAAS,OAEd,MAAMc,gBAAEA,EAAeC,UAAEA,GAAcF,KAAKjB,KAAKG,MAEjDc,KAAKG,QAAUC,EAAKA,MAChBjB,EACA,CAACkB,EAAUC,KACPxB,EAAiBkB,KAAKjB,KAAMuB,EAAY,SAEjC,CAACC,GAAYC,aAChB1B,EACIkB,KAAKjB,KACLwB,EACAC,EAAU,MAAQ,WAG9B,CACIC,gBAAiBR,EACjBS,iBAAoC,IAAnBR,GAAWS,KAGxC,CAEAR,OAAAA,GAAW"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../../../motion-dom/dist/es/render/Feature.mjs.js"),e=require("../../../../../../motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs.js");let i=0;class s extends t.Feature{constructor(){super(...arguments),this.id=i++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&!1===s){if(this.isExitComplete){const{initial:t,custom:i}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){const s=e.resolveVariant(this.node,t,i);if(s){const{transition:t,transitionEnd:e,...i}=s;for(const t in i)this.node.getValue(t)?.jump(i[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);return void(this.isExitComplete=!1)}const n=this.node.animationState.setActive("exit",!t);i&&!t&&n.then(()=>{this.isExitComplete=!0,i(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}exports.ExitAnimationFeature=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../../../motion-dom/dist/es/render/Feature.mjs.js"),e=require("../../../../../../motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs.js");let i=0;class s extends t.Feature{constructor(){super(...arguments),this.id=i++}update(){const{presenceContext:t,prevPresenceContext:i,animationState:s}=this.node;if(!t||!s)return;const{isPresent:n,onExitComplete:o}=t,r=i?.isPresent;if(n===r)return;if(n&&!1===r){if(!0===this.exit){const{initial:t}=this.node.getProps();if(t&&!Array.isArray(t)){const{transition:i,transitionEnd:s,...n}=e.resolveVariant(this.node,t)||{};for(const t in n)this.node.getValue(t)?.jump(n[t])}this.node.blockInitialAnimation=!1,s.reset(),s.animateChanges()}else s.setActive("exit",!1);return void(this.exit=void 0)}const a=this.exit=s.setActive("exit",!n);o&&!n&&a.then(()=>{this.exit===a&&(this.exit=!0,o(this.id))})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id,this.node))}unmount(){}}exports.ExitAnimationFeature=s;
2
2
  //# sourceMappingURL=exit.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exit.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs"],"sourcesContent":["import { Feature, resolveVariant } from 'motion-dom';\n\nlet id = 0;\nclass ExitAnimationFeature extends Feature {\n constructor() {\n super(...arguments);\n this.id = id++;\n this.isExitComplete = false;\n }\n update() {\n if (!this.node.presenceContext)\n return;\n const { isPresent, onExitComplete } = this.node.presenceContext;\n const { isPresent: prevIsPresent } = this.node.prevPresenceContext || {};\n if (!this.node.animationState || isPresent === prevIsPresent) {\n return;\n }\n if (isPresent && prevIsPresent === false) {\n /**\n * When re-entering, if the exit animation already completed\n * (element is at rest), reset to initial values so the enter\n * animation replays from the correct position.\n */\n if (this.isExitComplete) {\n const { initial, custom } = this.node.getProps();\n if (typeof initial === \"string\" ||\n (typeof initial === \"object\" &&\n initial !== null &&\n !Array.isArray(initial))) {\n const resolved = resolveVariant(this.node, initial, custom);\n if (resolved) {\n const { transition, transitionEnd, ...target } = resolved;\n for (const key in target) {\n this.node\n .getValue(key)\n ?.jump(target[key]);\n }\n }\n }\n this.node.animationState.reset();\n this.node.animationState.animateChanges();\n }\n else {\n this.node.animationState.setActive(\"exit\", false);\n }\n this.isExitComplete = false;\n return;\n }\n const exitAnimation = this.node.animationState.setActive(\"exit\", !isPresent);\n if (onExitComplete && !isPresent) {\n exitAnimation.then(() => {\n this.isExitComplete = true;\n onExitComplete(this.id);\n });\n }\n }\n mount() {\n const { register, onExitComplete } = this.node.presenceContext || {};\n if (onExitComplete) {\n onExitComplete(this.id);\n }\n if (register) {\n this.unmount = register(this.id);\n }\n }\n unmount() { }\n}\n\nexport { ExitAnimationFeature };\n//# sourceMappingURL=exit.mjs.map\n"],"names":["id","ExitAnimationFeature","Feature","constructor","this","isExitComplete","update","node","presenceContext","isPresent","onExitComplete","prevIsPresent","prevPresenceContext","animationState","initial","custom","getProps","Array","isArray","resolved","resolveVariant","transition","transitionEnd","target","key","getValue","jump","reset","animateChanges","setActive","exitAnimation","then","mount","register","unmount"],"mappings":"+OAEA,IAAIA,EAAK,EAEH,MAAOC,UAA6BC,EAAAA,QAA1CC,WAAAA,uBACYC,KAAAJ,GAAaA,IACbI,KAAAC,gBAAiB,CAmF7B,CAjFIC,MAAAA,GACI,IAAKF,KAAKG,KAAKC,gBAAiB,OAEhC,MAAMC,UAAEA,EAASC,eAAEA,GAAmBN,KAAKG,KAAKC,iBACxCC,UAAWE,GAAkBP,KAAKG,KAAKK,qBAAuB,GAEtE,IAAKR,KAAKG,KAAKM,gBAAkBJ,IAAcE,EAC3C,OAGJ,GAAIF,IAA+B,IAAlBE,EAAyB,CAMtC,GAAIP,KAAKC,eAAgB,CACrB,MAAMS,QAAEA,EAAOC,OAAEA,GAAWX,KAAKG,KAAKS,WAEtC,GACuB,iBAAZF,GACa,iBAAZA,GACQ,OAAZA,IACCG,MAAMC,QAAQJ,GACrB,CACE,MAAMK,EAAWC,EAAAA,eACbhB,KAAKG,KACLO,EACAC,GAEJ,GAAII,EAAU,CACV,MAAME,WAAEA,EAAUC,cAAEA,KAAkBC,GAClCJ,EACJ,IAAK,MAAMK,KAAOD,EACdnB,KAAKG,KACAkB,SAASD,IACRE,KACEH,EACIC,GAIpB,CACJ,CAEApB,KAAKG,KAAKM,eAAec,QACzBvB,KAAKG,KAAKM,eAAee,sBAEzBxB,KAAKG,KAAKM,eAAegB,UAAU,QAAQ,GAI/C,YADAzB,KAAKC,gBAAiB,EAE1B,CAEA,MAAMyB,EAAgB1B,KAAKG,KAAKM,eAAegB,UAC3C,QACCpB,GAGDC,IAAmBD,GACnBqB,EAAcC,KAAK,KACf3B,KAAKC,gBAAiB,EACtBK,EAAeN,KAAKJ,KAGhC,CAEAgC,KAAAA,GACI,MAAMC,SAAEA,EAAQvB,eAAEA,GAAmBN,KAAKG,KAAKC,iBAAmB,GAE9DE,GACAA,EAAeN,KAAKJ,IAGpBiC,IACA7B,KAAK8B,QAAUD,EAAS7B,KAAKJ,IAErC,CAEAkC,OAAAA,GAAW"}
1
+ {"version":3,"file":"exit.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs"],"sourcesContent":["import { Feature, resolveVariant } from 'motion-dom';\n\nlet id = 0;\nclass ExitAnimationFeature extends Feature {\n constructor() {\n super(...arguments);\n this.id = id++;\n }\n update() {\n const { presenceContext, prevPresenceContext, animationState } = this.node;\n if (!presenceContext || !animationState)\n return;\n const { isPresent, onExitComplete } = presenceContext;\n const prevIsPresent = prevPresenceContext?.isPresent;\n if (isPresent === prevIsPresent)\n return;\n if (isPresent && prevIsPresent === false) {\n /**\n * When re-entering after the exit completed (element is at\n * rest), replay the enter animation from initial.\n */\n if (this.exit === true) {\n const { initial } = this.node.getProps();\n if (initial && !Array.isArray(initial)) {\n const { transition, transitionEnd, ...target } = resolveVariant(this.node, initial) || {};\n for (const key in target) {\n this.node\n .getValue(key)\n ?.jump(target[key]);\n }\n }\n /**\n * A re-entering element is no longer an initial child, so\n * AnimatePresence's initial={false} mustn't block its enter.\n */\n this.node.blockInitialAnimation = false;\n animationState.reset();\n animationState.animateChanges();\n }\n else {\n animationState.setActive(\"exit\", false);\n }\n this.exit = undefined;\n return;\n }\n const exit = (this.exit = animationState.setActive(\"exit\", !isPresent));\n if (onExitComplete && !isPresent) {\n exit.then(() => {\n /**\n * An exit can resolve after the element has re-entered, e.g.\n * when its final tick lands in the stop() of the enter.\n */\n if (this.exit !== exit)\n return;\n this.exit = true;\n onExitComplete(this.id);\n });\n }\n }\n mount() {\n const { register, onExitComplete } = this.node.presenceContext || {};\n if (onExitComplete) {\n onExitComplete(this.id);\n }\n if (register) {\n this.unmount = register(this.id, this.node);\n }\n }\n unmount() { }\n}\n\nexport { ExitAnimationFeature };\n//# sourceMappingURL=exit.mjs.map\n"],"names":["id","ExitAnimationFeature","Feature","constructor","this","update","presenceContext","prevPresenceContext","animationState","node","isPresent","onExitComplete","prevIsPresent","exit","initial","getProps","Array","isArray","transition","transitionEnd","target","resolveVariant","key","getValue","jump","blockInitialAnimation","reset","animateChanges","setActive","undefined","then","mount","register","unmount"],"mappings":"+OAEA,IAAIA,EAAK,EAEH,MAAOC,UAA6BC,EAAAA,QAA1CC,WAAAA,uBACYC,KAAAJ,GAAaA,GAgFzB,CAzEIK,MAAAA,GACI,MAAMC,gBAAEA,EAAeC,oBAAEA,EAAmBC,eAAEA,GAC1CJ,KAAKK,KAET,IAAKH,IAAoBE,EAAgB,OAEzC,MAAME,UAAEA,EAASC,eAAEA,GAAmBL,EAChCM,EAAgBL,GAAqBG,UAE3C,GAAIA,IAAcE,EAAe,OAEjC,GAAIF,IAA+B,IAAlBE,EAAyB,CAKtC,IAAkB,IAAdR,KAAKS,KAAe,CACpB,MAAMC,QAAEA,GAAYV,KAAKK,KAAKM,WAE9B,GAAID,IAAYE,MAAMC,QAAQH,GAAU,CACpC,MAAMI,WAAEA,EAAUC,cAAEA,KAAkBC,GAClCC,EAAcA,eAACjB,KAAKK,KAAMK,IAAmB,CAAA,EAEjD,IAAK,MAAMQ,KAAOF,EACdhB,KAAKK,KACAc,SAASD,IACRE,KAAKJ,EAAOE,GAE1B,CAMAlB,KAAKK,KAAKgB,uBAAwB,EAClCjB,EAAekB,QACflB,EAAemB,sBAEfnB,EAAeoB,UAAU,QAAQ,GAIrC,YADAxB,KAAKS,UAAOgB,EAEhB,CAEA,MAAMhB,EAAQT,KAAKS,KAAOL,EAAeoB,UAAU,QAASlB,GAExDC,IAAmBD,GACnBG,EAAKiB,KAAK,KAKF1B,KAAKS,OAASA,IAClBT,KAAKS,MAAO,EACZF,EAAeP,KAAKJ,MAGhC,CAEA+B,KAAAA,GACI,MAAMC,SAAEA,EAAQrB,eAAEA,GAAmBP,KAAKK,KAAKH,iBAAmB,GAE9DK,GACAA,EAAeP,KAAKJ,IAGpBgC,IACA5B,KAAK6B,QAAUD,EAAS5B,KAAKJ,GAAII,KAAKK,MAE9C,CAEAwB,OAAAA,GAAW"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../../components/AnimatePresence/use-presence.mjs.js"),o=require("../../../context/LayoutGroupContext.mjs.js"),s=require("../../../context/SwitchLayoutGroupContext.mjs.js"),r=require("../../../../../../motion-dom/dist/es/projection/node/state.mjs.js"),n=require("../../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),i=require("../../../../../../motion-dom/dist/es/frameloop/microtask.mjs.js"),u=require("../../../../../../../_virtual/jsx-runtime.js");let a=!1;class p extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:o,layoutId:s}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),o&&o.register&&s&&o.register(n),a&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),r.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:o,drag:s,isPresent:r}=this.props,{projection:i}=o;return i?(i.isPresent=r,e.layoutDependency!==t&&i.setOptions({...i.options,layoutDependency:t}),a=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==r?i.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?i.promote():i.relegate()||n.frame.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:o}=e;o&&(o.options.layoutAnchor=t,o.root.didUpdate(),i.microtask.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:o}=this.props,{projection:s}=e;a=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),o&&o.deregister&&o.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}exports.MeasureLayout=function(r){const[n,i]=t.usePresence(),a=e.useContext(o.LayoutGroupContext);return u.exports.jsx(p,{...r,layoutGroup:a,switchLayoutGroup:e.useContext(s.SwitchLayoutGroupContext),isPresent:n,safeToRemove:i})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../../react/jsx-runtime.js");var e=require("react"),t=require("../../../components/AnimatePresence/use-presence.mjs.js"),o=require("../../../context/LayoutGroupContext.mjs.js"),s=require("../../../context/SwitchLayoutGroupContext.mjs.js"),r=require("../../../../../../motion-dom/dist/es/projection/node/state.mjs.js"),n=require("../../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),i=require("../../../../../../motion-dom/dist/es/frameloop/microtask.mjs.js"),u=require("../../../../../../../_virtual/jsx-runtime.js");let a=!1;const p=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:"string"==typeof e?e:"both"});class m extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:o,layoutId:s}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),o&&o.register&&s&&o.register(n),a&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,...p(this.props),onExitComplete:()=>this.safeToRemove()})),r.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layout:t,layoutDependency:o,visualElement:s,drag:r,isPresent:i}=this.props,{projection:u}=s;return u?(u.isPresent=i,e.layoutDependency===o&&e.layout===t||u.setOptions({...u.options,...p(this.props)}),a=!0,r||e.layoutDependency!==o||void 0===o||e.isPresent!==i?u.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?u.promote():u.relegate()||n.frame.postRender(()=>{const e=u.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:o}=e;o&&(o.options.layoutAnchor=t,o.root.didUpdate(),i.microtask.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:o}=this.props,{projection:s}=e;a=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),o&&o.deregister&&o.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}exports.MeasureLayout=function(r){const[n,i]=t.usePresence(),a=e.useContext(o.LayoutGroupContext);return u.exports.jsx(m,{...r,layoutGroup:a,switchLayoutGroup:e.useContext(s.SwitchLayoutGroupContext),isPresent:n,safeToRemove:i})};
2
2
  //# sourceMappingURL=MeasureLayout.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MeasureLayout.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { globalProjectionState, frame, microtask } from 'motion-dom';\nimport { useContext, Component } from 'react';\nimport { usePresence } from '../../../components/AnimatePresence/use-presence.mjs';\nimport { LayoutGroupContext } from '../../../context/LayoutGroupContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../../context/SwitchLayoutGroupContext.mjs';\n\n/**\n * Track whether we've taken any snapshots yet. If not,\n * we can safely skip notification of didUpdate.\n *\n * Difficult to capture in a test but to prevent flickering\n * we must set this to true either on update or unmount.\n * Running `next-env/layout-id` in Safari will show this behaviour if broken.\n */\nlet hasTakenAnySnapshot = false;\nclass MeasureLayoutWithContext extends Component {\n /**\n * This only mounts projection nodes for components that\n * need measuring, we might want to do it for all components\n * in order to incorporate transforms\n */\n componentDidMount() {\n const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;\n const { projection } = visualElement;\n if (projection) {\n if (layoutGroup.group)\n layoutGroup.group.add(projection);\n if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {\n switchLayoutGroup.register(projection);\n }\n if (hasTakenAnySnapshot) {\n projection.root.didUpdate();\n }\n projection.addEventListener(\"animationComplete\", () => {\n this.safeToRemove();\n });\n projection.setOptions({\n ...projection.options,\n layoutDependency: this.props.layoutDependency,\n onExitComplete: () => this.safeToRemove(),\n });\n }\n globalProjectionState.hasEverUpdated = true;\n }\n getSnapshotBeforeUpdate(prevProps) {\n const { layoutDependency, visualElement, drag, isPresent } = this.props;\n const { projection } = visualElement;\n if (!projection)\n return null;\n /**\n * TODO: We use this data in relegate to determine whether to\n * promote a previous element. There's no guarantee its presence data\n * will have updated by this point - if a bug like this arises it will\n * have to be that we markForRelegation and then find a new lead some other way,\n * perhaps in didUpdate\n */\n projection.isPresent = isPresent;\n if (prevProps.layoutDependency !== layoutDependency) {\n projection.setOptions({\n ...projection.options,\n layoutDependency,\n });\n }\n hasTakenAnySnapshot = true;\n if (drag ||\n prevProps.layoutDependency !== layoutDependency ||\n layoutDependency === undefined ||\n prevProps.isPresent !== isPresent) {\n projection.willUpdate();\n }\n else {\n this.safeToRemove();\n }\n if (prevProps.isPresent !== isPresent) {\n if (isPresent) {\n projection.promote();\n }\n else if (!projection.relegate()) {\n /**\n * If there's another stack member taking over from this one,\n * it's in charge of the exit animation and therefore should\n * be in charge of the safe to remove. Otherwise we call it here.\n */\n frame.postRender(() => {\n const stack = projection.getStack();\n if (!stack || !stack.members.length) {\n this.safeToRemove();\n }\n });\n }\n }\n return null;\n }\n componentDidUpdate() {\n const { visualElement, layoutAnchor } = this.props;\n const { projection } = visualElement;\n if (projection) {\n projection.options.layoutAnchor = layoutAnchor;\n projection.root.didUpdate();\n microtask.postRender(() => {\n if (!projection.currentAnimation && projection.isLead()) {\n this.safeToRemove();\n }\n });\n }\n }\n componentWillUnmount() {\n const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;\n const { projection } = visualElement;\n hasTakenAnySnapshot = true;\n if (projection) {\n projection.scheduleCheckAfterUnmount();\n if (layoutGroup && layoutGroup.group)\n layoutGroup.group.remove(projection);\n if (promoteContext && promoteContext.deregister)\n promoteContext.deregister(projection);\n }\n }\n safeToRemove() {\n const { safeToRemove } = this.props;\n safeToRemove && safeToRemove();\n }\n render() {\n return null;\n }\n}\nfunction MeasureLayout(props) {\n const [isPresent, safeToRemove] = usePresence();\n const layoutGroup = useContext(LayoutGroupContext);\n return (jsx(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: useContext(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));\n}\n\nexport { MeasureLayout };\n//# sourceMappingURL=MeasureLayout.mjs.map\n"],"names":["hasTakenAnySnapshot","MeasureLayoutWithContext","Component","visualElement","layoutGroup","switchLayoutGroup","layoutId","this","props","projection","group","add","register","root","didUpdate","addEventListener","layoutDependency","onExitComplete","safeToRemove","globalProjectionState","hasEverUpdated","getSnapshotBeforeUpdate","prevProps","drag","isPresent","undefined","relegate","frame","postRender","stack","getStack","options","layoutAnchor","microtask","promoteContext","remove","deregister","useContext","LayoutGroupContext"],"mappings":"umBA8BA,IAAAA,GAAA,EAEA,MAAAC,UAAAC,EAAAA,8BAOQ,MAAAC,cAAAA,EAAAC,YAAAA,EAAAC,kBAAAA,EAAAC,SAAAA,GAAAC,KAAAC,OAEAC,WAAAA,GAAAN,MAG2BC,EAAAA,OAAAA,EAAAM,MAAAC,IAAAF,qBAGnBJ,EAAAO,SAAAH,MAIAA,EAAAI,KAAAC,YAGJL,EAAAM,iBAAA,oBAAA,sDAKIC,iBAAAT,KAAAC,MAAAQ,iBACAC,eAAAA,IAAAV,KAAAW,kBAIRC,EAAAA,sBAAAC,gBAAA,EAGJC,uBAAAA,CAAAC,GACI,MAAAN,iBAAAA,EAAAb,cAAAA,EAAAoB,KAAAA,EAAAC,UAAAA,GAAAjB,KAAAC,OACAC,WAAAA,GAAAN,EAEA,OAAAM,GASAA,EAAAe,UAAAA,EAEAF,EAAAN,mBAAAA,wDASAO,gCAGIE,IAAAT,GACAM,EAAAE,YAAAA,qCAOJF,EAAAE,YAAAA,kBAGWf,EAAAiB,YAMHC,EAAAA,MAAAC,WAAA,KACI,MAAAC,EAAApB,EAAAqB,uDAQZ,MAjDiB,4EAsDjBrB,WAAAA,GAAAN,MAEIM,EAAAsB,QAAAC,aAAAA,EAEAvB,EAAAI,KAAAC,YAEAmB,EAAAA,UAAAL,WAAA,oFASJ,MAAAzB,cAAAA,EAAAC,YAAAA,EAAAC,kBAAA6B,GAAA3B,KAAAC,OAKAC,WAAAA,GAAAN,yCAMIC,GAAAA,EAAAM,OACIN,EAAAM,MAAAyB,OAAA1B,GACJyB,GAAAA,EAAAE,YACIF,EAAAE,WAAA3B,mBAKR,MAAAS,aAAAA,GAAAX,KAAAC,sBAKA,OAAA,4BAIF,SAAAA,8BAIFJ,EAAAiC,aAAAC,EAAAA,sJAWJ"}
1
+ {"version":3,"file":"MeasureLayout.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs"],"sourcesContent":["\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { globalProjectionState, frame, microtask } from 'motion-dom';\nimport { useContext, Component } from 'react';\nimport { usePresence } from '../../../components/AnimatePresence/use-presence.mjs';\nimport { LayoutGroupContext } from '../../../context/LayoutGroupContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../../context/SwitchLayoutGroupContext.mjs';\n\n/**\n * Track whether we've taken any snapshots yet. If not,\n * we can safely skip notification of didUpdate.\n *\n * Difficult to capture in a test but to prevent flickering\n * we must set this to true either on update or unmount.\n * Running `next-env/layout-id` in Safari will show this behaviour if broken.\n */\nlet hasTakenAnySnapshot = false;\n/**\n * The projection node is created with the props from the component's first\n * render, so keep these in sync as `layout` can change (or be enabled) later.\n */\nconst layoutOptions = ({ layout, layoutDependency }) => ({\n layout,\n layoutDependency,\n animationType: typeof layout === \"string\" ? layout : \"both\",\n});\nclass MeasureLayoutWithContext extends Component {\n /**\n * This only mounts projection nodes for components that\n * need measuring, we might want to do it for all components\n * in order to incorporate transforms\n */\n componentDidMount() {\n const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;\n const { projection } = visualElement;\n if (projection) {\n if (layoutGroup.group)\n layoutGroup.group.add(projection);\n if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {\n switchLayoutGroup.register(projection);\n }\n if (hasTakenAnySnapshot) {\n projection.root.didUpdate();\n }\n projection.addEventListener(\"animationComplete\", () => {\n this.safeToRemove();\n });\n projection.setOptions({\n ...projection.options,\n ...layoutOptions(this.props),\n onExitComplete: () => this.safeToRemove(),\n });\n }\n globalProjectionState.hasEverUpdated = true;\n }\n getSnapshotBeforeUpdate(prevProps) {\n const { layout, layoutDependency, visualElement, drag, isPresent } = this.props;\n const { projection } = visualElement;\n if (!projection)\n return null;\n /**\n * TODO: We use this data in relegate to determine whether to\n * promote a previous element. There's no guarantee its presence data\n * will have updated by this point - if a bug like this arises it will\n * have to be that we markForRelegation and then find a new lead some other way,\n * perhaps in didUpdate\n */\n projection.isPresent = isPresent;\n if (prevProps.layoutDependency !== layoutDependency ||\n prevProps.layout !== layout) {\n projection.setOptions({\n ...projection.options,\n ...layoutOptions(this.props),\n });\n }\n hasTakenAnySnapshot = true;\n if (drag ||\n prevProps.layoutDependency !== layoutDependency ||\n layoutDependency === undefined ||\n prevProps.isPresent !== isPresent) {\n projection.willUpdate();\n }\n else {\n this.safeToRemove();\n }\n if (prevProps.isPresent !== isPresent) {\n if (isPresent) {\n projection.promote();\n }\n else if (!projection.relegate()) {\n /**\n * If there's another stack member taking over from this one,\n * it's in charge of the exit animation and therefore should\n * be in charge of the safe to remove. Otherwise we call it here.\n */\n frame.postRender(() => {\n const stack = projection.getStack();\n if (!stack || !stack.members.length) {\n this.safeToRemove();\n }\n });\n }\n }\n return null;\n }\n componentDidUpdate() {\n const { visualElement, layoutAnchor } = this.props;\n const { projection } = visualElement;\n if (projection) {\n projection.options.layoutAnchor = layoutAnchor;\n projection.root.didUpdate();\n microtask.postRender(() => {\n if (!projection.currentAnimation && projection.isLead()) {\n this.safeToRemove();\n }\n });\n }\n }\n componentWillUnmount() {\n const { visualElement, layoutGroup, switchLayoutGroup: promoteContext, } = this.props;\n const { projection } = visualElement;\n hasTakenAnySnapshot = true;\n if (projection) {\n projection.scheduleCheckAfterUnmount();\n if (layoutGroup && layoutGroup.group)\n layoutGroup.group.remove(projection);\n if (promoteContext && promoteContext.deregister)\n promoteContext.deregister(projection);\n }\n }\n safeToRemove() {\n const { safeToRemove } = this.props;\n safeToRemove && safeToRemove();\n }\n render() {\n return null;\n }\n}\nfunction MeasureLayout(props) {\n const [isPresent, safeToRemove] = usePresence();\n const layoutGroup = useContext(LayoutGroupContext);\n return (jsx(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: useContext(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));\n}\n\nexport { MeasureLayout };\n//# sourceMappingURL=MeasureLayout.mjs.map\n"],"names":["hasTakenAnySnapshot","layoutOptions","layout","layoutDependency","animationType","MeasureLayoutWithContext","Component","visualElement","layoutGroup","switchLayoutGroup","layoutId","this","props","projection","group","add","register","root","didUpdate","addEventListener","onExitComplete","safeToRemove","globalProjectionState","hasEverUpdated","getSnapshotBeforeUpdate","prevProps","drag","isPresent","undefined","relegate","frame","postRender","stack","getStack","options","layoutAnchor","microtask","promoteContext","remove","deregister","useContext","LayoutGroupContext"],"mappings":"umBA8BA,IAAAA,GAAA,EAMA,MAAAC,EAAAA,EAAAC,SAAAC,uBAAA,6BAGIC,cAAA,iBAAAF,EAAAA,EAAA,SAGJ,MAAAG,UAAAC,EAAAA,8BAOQ,MAAAC,cAAAA,EAAAC,YAAAA,EAAAC,kBAAAA,EAAAC,SAAAA,GAAAC,KAAAC,OAEAC,WAAAA,GAAAN,MAG2BC,EAAAA,OAAAA,EAAAM,MAAAC,IAAAF,qBAGnBJ,EAAAO,SAAAH,MAIAA,EAAAI,KAAAC,YAGJL,EAAAM,iBAAA,oBAAA,yDAKIlB,OAAAW,OACAQ,eAAAA,IAAAT,KAAAU,kBAIRC,EAAAA,sBAAAC,gBAAA,EAGJC,uBAAAA,CAAAC,GACI,MAAAvB,OAAAA,EAAAC,iBAAAA,EAAAI,cAAAA,EAAAmB,KAAAA,EAAAC,UAAAA,GAAAhB,KAAAC,OAEAC,WAAAA,GAAAN,EAEA,OAAAM,GASAA,EAAAc,UAAAA,EAEAF,EAAAtB,mBAAAA,GAEIsB,EAAAvB,SAAAA,iCAIID,OAAAW,cAMRc,gCAGIE,IAAAzB,GACAsB,EAAAE,YAAAA,qCAOJF,EAAAE,YAAAA,kBAGWd,EAAAgB,YAMHC,EAAAA,MAAAC,WAAA,KACI,MAAAC,EAAAnB,EAAAoB,uDAQZ,MApDiB,4EAyDjBpB,WAAAA,GAAAN,MAEIM,EAAAqB,QAAAC,aAAAA,EAEAtB,EAAAI,KAAAC,YAEAkB,EAAAA,UAAAL,WAAA,oFASJ,MAAAxB,cAAAA,EAAAC,YAAAA,EAAAC,kBAAA4B,GAAA1B,KAAAC,OAKAC,WAAAA,GAAAN,yCAMIC,GAAAA,EAAAM,OACIN,EAAAM,MAAAwB,OAAAzB,GACJwB,GAAAA,EAAAE,YACIF,EAAAE,WAAA1B,mBAKR,MAAAQ,aAAAA,GAAAV,KAAAC,sBAKA,OAAA,4BAIF,SAAAA,8BAIFJ,EAAAgC,aAAAC,EAAAA,sJAWJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../react/jsx-runtime.js");var e=require("react"),t=require("../context/LayoutGroupContext.mjs.js"),o=require("../context/LazyContext.mjs.js"),n=require("../context/MotionConfigContext.mjs.js"),s=require("../context/MotionContext/index.mjs.js"),r=require("../context/MotionContext/create.mjs.js"),i=require("../render/dom/use-render.mjs.js"),u=require("../render/dom/utils/is-svg-component.mjs.js"),a=require("../render/html/use-html-visual-state.mjs.js"),l=require("../render/svg/use-svg-visual-state.mjs.js"),m=require("./features/definitions.mjs.js"),d=require("./features/load-features.mjs.js"),c=require("./utils/symbol.mjs.js"),j=require("./utils/use-motion-ref.mjs.js"),x=require("./utils/use-visual-element.mjs.js"),f=require("../../../../../_virtual/jsx-runtime.js"),p=require("../../../../motion-utils/dist/es/errors.mjs.js");function v({layoutId:o}){const n=e.useContext(t.LayoutGroupContext).id;return n&&void 0!==o?n+"-"+o:o}exports.createMotionComponent=function(t,{forwardMotionProps:y=!1,type:C}={},q,M){q&&d.loadFeatures(q);const g=C?"svg"===C:u.isSVGComponent(t),E=g?l.useSVGVisualState:a.useHTMLVisualState;function L(u,a){let l;const d={...e.useContext(n.MotionConfigContext),...u,layoutId:v(u)},{isStatic:c}=d,C=r.useCreateMotionContext(u),L=E(u,c);if(!c&&"undefined"!=typeof window){!function(t,n){const s=e.useContext(o.LazyContext).strict;if("production"!==process.env.NODE_ENV&&n&&s){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?p.warning(!1,e,"lazy-strict-mode"):p.invariant(!1,e,"lazy-strict-mode")}}(d,q);const n=function(e){const t=m.getInitializedFeatureDefinitions(),{drag:o,layout:n}=t;if(!o&&!n)return{};const s={...o,...n};return{MeasureLayout:o?.isEnabled(e)||n?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(d);l=n.MeasureLayout,C.visualElement=x.useVisualElement(t,L,d,M,n.ProjectionNode,g)}return f.exports.jsxs(s.MotionContext.Provider,{value:C,children:[l&&C.visualElement?f.exports.jsx(l,{visualElement:C.visualElement,...d}):null,i.useRender(t,u,j.useMotionRef(L,C.visualElement,a),L,c,y,g)]})}L.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;const h=e.forwardRef(L);return h[c.motionComponentSymbol]=t,h};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../react/jsx-runtime.js");var e=require("react"),t=require("../context/LayoutGroupContext.mjs.js"),o=require("../context/LazyContext.mjs.js"),s=require("../context/MotionConfigContext.mjs.js"),n=require("../context/MotionContext/index.mjs.js"),r=require("../context/MotionContext/create.mjs.js"),i=require("../render/dom/use-render.mjs.js"),u=require("../render/dom/utils/is-svg-component.mjs.js"),a=require("../render/html/use-html-visual-state.mjs.js"),l=require("../render/svg/use-svg-visual-state.mjs.js"),m=require("../utils/use-constant.mjs.js"),d=require("./features/definitions.mjs.js"),c=require("./features/load-features.mjs.js"),j=require("./utils/symbol.mjs.js"),x=require("./utils/use-motion-ref.mjs.js"),p=require("./utils/use-visual-element.mjs.js"),f=require("../../../../motion-dom/dist/es/projection/node/root.mjs.js"),v=require("../../../../../_virtual/jsx-runtime.js"),y=require("../../../../motion-utils/dist/es/errors.mjs.js");exports.createMotionComponent=function(q,{forwardMotionProps:C=!1,type:M}={},g,E){g&&c.loadFeatures(g);const L=M?"svg"===M:u.isSVGComponent(q),N=L?l.useSVGVisualState:a.useHTMLVisualState;function h(u,a){let l;const c=function({layoutId:o}){const s=e.useContext(t.LayoutGroupContext).id;return s&&void 0!==o?s+"-"+o:o}(u);m.useConstant(()=>!!f.rootProjectionNode.current?.sharedNodes.get(c)?.lead&&u.initial)&&(u={...u,initial:!1});const j={...e.useContext(s.MotionConfigContext),...u,layoutId:c},{isStatic:M,isValidProp:h}=j,P=r.useCreateMotionContext(u),w=N(u,M);if(!M&&"undefined"!=typeof window){!function(t,s){const n=e.useContext(o.LazyContext).strict;if("production"!==process.env.NODE_ENV&&s&&n){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?y.warning(!1,e,"lazy-strict-mode"):y.invariant(!1,e,"lazy-strict-mode")}}(j,g);const t=function(e){const t=d.getInitializedFeatureDefinitions(),{drag:o,layout:s}=t;if(!o&&!s)return{};const n={...o,...s};return{MeasureLayout:o?.isEnabled(e)||s?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(j);l=t.MeasureLayout,P.visualElement=p.useVisualElement(q,w,j,E,t.ProjectionNode,L)}return v.exports.jsxs(n.MotionContext.Provider,{value:P,children:[l&&P.visualElement?v.exports.jsx(l,{visualElement:P.visualElement,...j}):null,i.useRender(q,u,x.useMotionRef(w,P.visualElement,a),w,M,C,L,h)]})}h.displayName=`motion.${"string"==typeof q?q:`create(${q.displayName??q.name??""})`}`;const P=e.forwardRef(h);return P[j.motionComponentSymbol]=q,P};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/motion/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { warning, invariant } from 'motion-utils';\nimport { forwardRef, useContext } from 'react';\nimport { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';\nimport { LazyContext } from '../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../context/MotionContext/index.mjs';\nimport { useCreateMotionContext } from '../context/MotionContext/create.mjs';\nimport { useRender } from '../render/dom/use-render.mjs';\nimport { isSVGComponent } from '../render/dom/utils/is-svg-component.mjs';\nimport { useHTMLVisualState } from '../render/html/use-html-visual-state.mjs';\nimport { useSVGVisualState } from '../render/svg/use-svg-visual-state.mjs';\nimport { getInitializedFeatureDefinitions } from './features/definitions.mjs';\nimport { loadFeatures } from './features/load-features.mjs';\nimport { motionComponentSymbol } from './utils/symbol.mjs';\nimport { useMotionRef } from './utils/use-motion-ref.mjs';\nimport { useVisualElement } from './utils/use-visual-element.mjs';\n\n/**\n * Create a `motion` component.\n *\n * This function accepts a Component argument, which can be either a string (ie \"div\"\n * for `motion.div`), or an actual React component.\n *\n * Alongside this is a config option which provides a way of rendering the provided\n * component \"offline\", or outside the React render cycle.\n */\nfunction createMotionComponent(Component, { forwardMotionProps = false, type } = {}, preloadedFeatures, createVisualElement) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n /**\n * Determine whether to use SVG or HTML rendering based on:\n * 1. Explicit `type` option (highest priority)\n * 2. Auto-detection via `isSVGComponent`\n */\n const isSVG = type ? type === \"svg\" : isSVGComponent(Component);\n const useVisualState = isSVG ? useSVGVisualState : useHTMLVisualState;\n function MotionDOMComponent(props, externalRef) {\n /**\n * If we need to measure the element we load this functionality in a\n * separate class component in order to gain access to getSnapshotBeforeUpdate.\n */\n let MeasureLayout;\n const configAndProps = {\n ...useContext(MotionConfigContext),\n ...props,\n layoutId: useLayoutId(props),\n };\n const { isStatic } = configAndProps;\n const context = useCreateMotionContext(props);\n const visualState = useVisualState(props, isStatic);\n if (!isStatic && typeof window !== \"undefined\") {\n useStrictMode(configAndProps, preloadedFeatures);\n const layoutProjection = getProjectionFunctionality(configAndProps);\n MeasureLayout = layoutProjection.MeasureLayout;\n /**\n * Create a VisualElement for this component. A VisualElement provides a common\n * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as\n * providing a way of rendering to these APIs outside of the React render loop\n * for more performant animations and interactions\n */\n context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode, isSVG);\n }\n /**\n * The mount order and hierarchy is specific to ensure our element ref\n * is hydrated by the time features fire their effects.\n */\n return (jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps, isSVG)] }));\n }\n MotionDOMComponent.displayName = `motion.${typeof Component === \"string\"\n ? Component\n : `create(${Component.displayName ?? Component.name ?? \"\"})`}`;\n const ForwardRefMotionComponent = forwardRef(MotionDOMComponent);\n ForwardRefMotionComponent[motionComponentSymbol] = Component;\n return ForwardRefMotionComponent;\n}\nfunction useLayoutId({ layoutId }) {\n const layoutGroupId = useContext(LayoutGroupContext).id;\n return layoutGroupId && layoutId !== undefined\n ? layoutGroupId + \"-\" + layoutId\n : layoutId;\n}\nfunction useStrictMode(configAndProps, preloadedFeatures) {\n const isStrict = useContext(LazyContext).strict;\n /**\n * If we're in development mode, check to make sure we're not rendering a motion component\n * as a child of LazyMotion, as this will break the file-size benefits of using it.\n */\n if (process.env.NODE_ENV !== \"production\" &&\n preloadedFeatures &&\n isStrict) {\n const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n configAndProps.ignoreStrict\n ? warning(false, strictMessage, \"lazy-strict-mode\")\n : invariant(false, strictMessage, \"lazy-strict-mode\");\n }\n}\nfunction getProjectionFunctionality(props) {\n const featureDefinitions = getInitializedFeatureDefinitions();\n const { drag, layout } = featureDefinitions;\n if (!drag && !layout)\n return {};\n const combined = { ...drag, ...layout };\n return {\n MeasureLayout: drag?.isEnabled(props) || layout?.isEnabled(props)\n ? combined.MeasureLayout\n : undefined,\n ProjectionNode: combined.ProjectionNode,\n };\n}\n\nexport { createMotionComponent };\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutId","layoutId","layoutGroupId","undefined","preloadedFeatures","loadFeatures","isSVG","type","isSVGComponent","Component","MotionDOMComponent","props","externalRef","MeasureLayout","configAndProps","isStatic","context","useCreateMotionContext","process","env","NODE_ENV","isStrict","ignoreStrict","useStrictMode","layoutProjection","featureDefinitions","getInitializedFeatureDefinitions","drag","layout","isEnabled","getProjectionFunctionality","visualElement","useVisualElement","visualState","createVisualElement","ProjectionNode","jsxs","exports","MotionContext","Provider","value","children","jsx","useRender","useMotionRef","forwardMotionProps","displayName","name","ForwardRefMotionComponent","forwardRef","motionComponentSymbol"],"mappings":"y5BA6KA,SAAAA,GAAAC,SAAAA,kDAEI,OAAAC,QAAAC,IAAAF,EACIC,EAAAD,IAAAA,GAER,mFAnGIG,GAAAC,EAAAA,aAAAD,GAOA,MAAAE,EAAAC,EAAAC,QAAAD,EAAAC,EAAAA,eAAAC,gDAGA,SAAAC,EAAAC,EAAAC,GAQI,IAAAC,EAEA,MAAAC,EAAA,2CAEIH,EACAV,SAAAD,EAAAW,KAGJI,SAAAA,GAAAD,EAEAE,EAAAC,yBAAAN,gDAyER,SAAAG,EAAAV,8CAUI,GAAA,eAAAc,QAAAC,IAAAC,aAGIC,EAAA,4JAIAP,EAAAQ,qFAIR,CAzFYC,CAAAT,EAAAV,GAEA,MAAAoB,EAyFZ,SAAAb,GACI,MAAAc,EAAAC,EAAAA,oCACAC,KAAAA,EAAAC,OAAAA,GAAAH,EAEA,IAAAE,IAAAC,EAAsB,MAAA,CAAA,6BAKlBf,cAAAc,GAAAE,UAAAlB,IAAAiB,GAAAC,UAAAlB,wBAGQR,kCAGhB,CAxGY2B,CAAAhB,GACAD,EAAAW,EAAAX,cAQAG,EAAAe,cAAAC,mBAAAvB,EAAAwB,EAAAnB,EAAAoB,EAAAV,EAAAW,eAAA7B,GAcJ,OAAA8B,EAAAC,QAAAD,KAAAE,EAAAA,cAAAC,SAAA,CAAAC,MAAAxB,EAAAyB,SAAA,CAAA5B,GAAAG,EAAAe,cAAAW,EAAAA,QAAAA,IAAA7B,EAAA,CAAAkB,cAAAf,EAAAe,iBAAAjB,IAAA6B,KAAAA,EAAAA,UAAAlC,EAAAE,EAAAiC,EAAAA,aAAAX,EAAAjB,EAAAe,cAAAnB,GAAAqB,EAAAlB,EAAA8B,EAAAvC,MAwBJI,EAAAoC,YAAArC,2BAAAA,EAEQA,EACA,UAAAA,EAAAqC,aAAArC,EAAAsC,MAAA,QAGR,MAAAC,EAAAC,aAAAvC,GAGA,OAFEsC,EAAAE,EAAAA,uBAAAzC,EAEFuC,CACJ"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/motion/index.mjs"],"sourcesContent":["\"use client\";\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport { rootProjectionNode } from 'motion-dom';\nimport { warning, invariant } from 'motion-utils';\nimport { forwardRef, useContext } from 'react';\nimport { LayoutGroupContext } from '../context/LayoutGroupContext.mjs';\nimport { LazyContext } from '../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../context/MotionContext/index.mjs';\nimport { useCreateMotionContext } from '../context/MotionContext/create.mjs';\nimport { useRender } from '../render/dom/use-render.mjs';\nimport { isSVGComponent } from '../render/dom/utils/is-svg-component.mjs';\nimport { useHTMLVisualState } from '../render/html/use-html-visual-state.mjs';\nimport { useSVGVisualState } from '../render/svg/use-svg-visual-state.mjs';\nimport { useConstant } from '../utils/use-constant.mjs';\nimport { getInitializedFeatureDefinitions } from './features/definitions.mjs';\nimport { loadFeatures } from './features/load-features.mjs';\nimport { motionComponentSymbol } from './utils/symbol.mjs';\nimport { useMotionRef } from './utils/use-motion-ref.mjs';\nimport { useVisualElement } from './utils/use-visual-element.mjs';\n\n/**\n * Create a `motion` component.\n *\n * This function accepts a Component argument, which can be either a string (ie \"div\"\n * for `motion.div`), or an actual React component.\n *\n * Alongside this is a config option which provides a way of rendering the provided\n * component \"offline\", or outside the React render cycle.\n */\nfunction createMotionComponent(Component, { forwardMotionProps = false, type } = {}, preloadedFeatures, createVisualElement) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n /**\n * Determine whether to use SVG or HTML rendering based on:\n * 1. Explicit `type` option (highest priority)\n * 2. Auto-detection via `isSVGComponent`\n */\n const isSVG = type ? type === \"svg\" : isSVGComponent(Component);\n const useVisualState = isSVG ? useSVGVisualState : useHTMLVisualState;\n function MotionDOMComponent(props, externalRef) {\n /**\n * If we need to measure the element we load this functionality in a\n * separate class component in order to gain access to getSnapshotBeforeUpdate.\n */\n let MeasureLayout;\n const layoutId = useLayoutId(props);\n /**\n * An element that mounts with the layoutId of one that's already\n * rendered takes over from it with a shared layout animation, so\n * visually it has already entered. Mount it as if initial={false}\n * rather than replaying its entrance.\n *\n * Only when it has an initial: without one there's no entrance to\n * skip, and initial={false} would make its animate values its base\n * values, so removing them later wouldn't return it to its defaults.\n */\n if (useConstant(() => !!rootProjectionNode.current?.sharedNodes.get(layoutId)\n ?.lead && props.initial)) {\n props = { ...props, initial: false };\n }\n const configAndProps = {\n ...useContext(MotionConfigContext),\n ...props,\n layoutId,\n };\n const { isStatic, isValidProp } = configAndProps;\n const context = useCreateMotionContext(props);\n const visualState = useVisualState(props, isStatic);\n if (!isStatic && typeof window !== \"undefined\") {\n useStrictMode(configAndProps, preloadedFeatures);\n const layoutProjection = getProjectionFunctionality(configAndProps);\n MeasureLayout = layoutProjection.MeasureLayout;\n /**\n * Create a VisualElement for this component. A VisualElement provides a common\n * interface to renderer-specific APIs (ie DOM/Three.js etc) as well as\n * providing a way of rendering to these APIs outside of the React render loop\n * for more performant animations and interactions\n */\n context.visualElement = useVisualElement(Component, visualState, configAndProps, createVisualElement, layoutProjection.ProjectionNode, isSVG);\n }\n /**\n * The mount order and hierarchy is specific to ensure our element ref\n * is hydrated by the time features fire their effects.\n */\n return (jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps, isSVG, isValidProp)] }));\n }\n MotionDOMComponent.displayName = `motion.${typeof Component === \"string\"\n ? Component\n : `create(${Component.displayName ?? Component.name ?? \"\"})`}`;\n const ForwardRefMotionComponent = forwardRef(MotionDOMComponent);\n ForwardRefMotionComponent[motionComponentSymbol] = Component;\n return ForwardRefMotionComponent;\n}\nfunction useLayoutId({ layoutId }) {\n const layoutGroupId = useContext(LayoutGroupContext).id;\n return layoutGroupId && layoutId !== undefined\n ? layoutGroupId + \"-\" + layoutId\n : layoutId;\n}\nfunction useStrictMode(configAndProps, preloadedFeatures) {\n const isStrict = useContext(LazyContext).strict;\n /**\n * If we're in development mode, check to make sure we're not rendering a motion component\n * as a child of LazyMotion, as this will break the file-size benefits of using it.\n */\n if (process.env.NODE_ENV !== \"production\" &&\n preloadedFeatures &&\n isStrict) {\n const strictMessage = \"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.\";\n configAndProps.ignoreStrict\n ? warning(false, strictMessage, \"lazy-strict-mode\")\n : invariant(false, strictMessage, \"lazy-strict-mode\");\n }\n}\nfunction getProjectionFunctionality(props) {\n const featureDefinitions = getInitializedFeatureDefinitions();\n const { drag, layout } = featureDefinitions;\n if (!drag && !layout)\n return {};\n const combined = { ...drag, ...layout };\n return {\n MeasureLayout: drag?.isEnabled(props) || layout?.isEnabled(props)\n ? combined.MeasureLayout\n : undefined,\n ProjectionNode: combined.ProjectionNode,\n };\n}\n\nexport { createMotionComponent };\n//# sourceMappingURL=index.mjs.map\n"],"names":["preloadedFeatures","loadFeatures","isSVG","type","isSVGComponent","Component","MotionDOMComponent","props","externalRef","MeasureLayout","layoutId","layoutGroupId","undefined","useLayoutId","useConstant","rootProjectionNode","current","sharedNodes","get","lead","initial","configAndProps","isStatic","isValidProp","context","useCreateMotionContext","process","env","NODE_ENV","isStrict","ignoreStrict","useStrictMode","layoutProjection","featureDefinitions","getInitializedFeatureDefinitions","drag","layout","isEnabled","getProjectionFunctionality","visualElement","useVisualElement","visualState","createVisualElement","ProjectionNode","jsxs","exports","MotionContext","Provider","value","children","jsx","useRender","useMotionRef","forwardMotionProps","displayName","name","ForwardRefMotionComponent","forwardRef","motionComponentSymbol"],"mappings":"6lCAiFIA,GAAAC,EAAAA,aAAAD,GAOA,MAAAE,EAAAC,EAAAC,QAAAD,EAAAC,EAAAA,eAAAC,gDAGA,SAAAC,EAAAC,EAAAC,GAQI,IAAAC,EAEA,MAAAC,EAiGR,UAAAA,SAAAA,kDAEI,OAAAC,QAAAC,IAAAF,EACIC,EAAAD,IAAAA,GAER,CAtGQG,CAAAN,GAYAO,cAAAC,MAAAA,EAAAA,mBAAAC,SAAAC,YAAAC,IAAAR,IAIgBS,MAAAZ,EAAAa,gCAMhB,MAAAC,EAAA,2CAEId,eAIJe,SAAAA,EAAAC,YAAAA,GAAAF,EAEAG,EAAAC,yBAAAlB,gDA0ER,SAAAc,EAAArB,8CAUI,GAAA,eAAA0B,QAAAC,IAAAC,aAGIC,EAAA,4JAIAR,EAAAS,qFAIR,CA1FYC,CAAAV,EAAArB,GAEA,MAAAgC,EA0FZ,SAAAzB,GACI,MAAA0B,EAAAC,EAAAA,oCACAC,KAAAA,EAAAC,OAAAA,GAAAH,EAEA,IAAAE,IAAAC,EAAsB,MAAA,CAAA,6BAKlB3B,cAAA0B,GAAAE,UAAA9B,IAAA6B,GAAAC,UAAA9B,wBAGQK,kCAGhB,CAzGY0B,CAAAjB,GACAZ,EAAAuB,EAAAvB,cAQAe,EAAAe,cAAAC,mBAAAnC,EAAAoC,EAAApB,EAAAqB,EAAAV,EAAAW,eAAAzC,GAcJ,OAAA0C,EAAAC,QAAAD,KAAAE,EAAAA,cAAAC,SAAA,CAAAC,MAAAxB,EAAAyB,SAAA,CAAAxC,GAAAe,EAAAe,cAAAW,EAAAA,QAAAA,IAAAzC,EAAA,CAAA8B,cAAAf,EAAAe,iBAAAlB,IAAA8B,KAAAA,EAAAA,UAAA9C,EAAAE,EAAA6C,EAAAA,aAAAX,EAAAjB,EAAAe,cAAA/B,GAAAiC,EAAAnB,EAAA+B,EAAAnD,EAAAqB,MAyBJjB,EAAAgD,YAAAjD,2BAAAA,EAEQA,EACA,UAAAA,EAAAiD,aAAAjD,EAAAkD,MAAA,QAGR,MAAAC,EAAAC,aAAAnD,GAGA,OAFEkD,EAAAE,EAAAA,uBAAArD,EAEFmD,CACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"symbol.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/symbol.mjs"],"sourcesContent":["const motionComponentSymbol = Symbol.for(\"motionComponentSymbol\");\n\nexport { motionComponentSymbol };\n//# sourceMappingURL=symbol.mjs.map\n"],"names":["motionComponentSymbol","Symbol","for"],"mappings":"oEAAO,MAAMA,EAAwBC,OAAOC,IAAI"}
1
+ {"version":3,"file":"symbol.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/symbol.mjs"],"sourcesContent":["const motionComponentSymbol = /* @__PURE__ */ Symbol.for(\"motionComponentSymbol\");\n\nexport { motionComponentSymbol };\n//# sourceMappingURL=symbol.mjs.map\n"],"names":["motionComponentSymbol","Symbol","for"],"mappings":"oEAAO,MAAMA,EAAwCC,OAAOC,IACxD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("../../context/LazyContext.mjs.js"),o=require("../../context/MotionConfigContext.mjs.js"),n=require("../../context/MotionContext/index.mjs.js"),i=require("../../context/PresenceContext.mjs.js"),r=require("../../context/SwitchLayoutGroupContext.mjs.js"),a=require("../../utils/is-ref-object.mjs.js"),s=require("../../utils/use-isomorphic-effect.mjs.js"),u=require("../../../../../motion-dom/dist/es/animation/optimized-appear/data-id.mjs.js");function c(t){if(t)return!1!==t.options.allowProjection?t.projection:c(t.parent)}exports.useVisualElement=function(l,d,p,m,f,C){const{visualElement:y}=t.useContext(n.MotionContext),j=t.useContext(e.LazyContext),x=t.useContext(i.PresenceContext),M=t.useContext(o.MotionConfigContext),w=M.reducedMotion,h=M.skipAnimations,g=t.useRef(null),q=t.useRef(!1);m=m||j.renderer,!g.current&&m&&(g.current=m(l,{visualState:d,parent:y,props:p,presenceContext:x,blockInitialAnimation:!!x&&!1===x.initial,reducedMotionConfig:w,skipAnimations:h,isSVG:C}),q.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const A=g.current,S=t.useContext(r.SwitchLayoutGroupContext);!A||A.projection||!f||"html"!==A.type&&"svg"!==A.type||function(t,e,o,n){const{layoutId:i,layout:r,drag:s,dragConstraints:u,layoutScroll:l,layoutRoot:d,layoutAnchor:p,layoutCrossfade:m}=e;t.projection=new o(t.latestValues,e["data-framer-portal-id"]?void 0:c(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:Boolean(s)||u&&a.isRefObject(u),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:m,layoutScroll:l,layoutRoot:d,layoutAnchor:p})}(g.current,p,f,S);const v=t.useRef(!1);t.useInsertionEffect(()=>{A&&v.current&&A.update(p,x)});const R=p[u.optimizedAppearDataAttribute],I=t.useRef(Boolean(R)&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(R)&&window.MotionHasOptimisedAnimation?.(R));return s.useIsomorphicLayoutEffect(()=>{q.current=!0,A&&(v.current=!0,window.MotionIsMounted=!0,A.updateFeatures(),A.scheduleRenderMicrotask(),I.current&&A.animationState&&A.animationState.animateChanges())}),t.useEffect(()=>{A&&(!I.current&&A.animationState&&A.animationState.animateChanges(),I.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(R)}),I.current=!1),A.enteringChildren=void 0)}),A};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("../../context/LazyContext.mjs.js"),o=require("../../context/MotionConfigContext.mjs.js"),n=require("../../context/MotionContext/index.mjs.js"),i=require("../../context/PresenceContext.mjs.js"),r=require("../../context/SwitchLayoutGroupContext.mjs.js"),a=require("../../utils/is-ref-object.mjs.js"),s=require("../../utils/use-isomorphic-effect.mjs.js"),u=require("../../../../../motion-dom/dist/es/animation/optimized-appear/data-id.mjs.js");function c(t){if(t)return!1!==t.options.allowProjection?t.projection:c(t.parent)}exports.useVisualElement=function(l,d,p,m,f,C){const{visualElement:y}=t.useContext(n.MotionContext),x=t.useContext(e.LazyContext),j=t.useContext(i.PresenceContext),h=t.useContext(o.MotionConfigContext),M=h.reducedMotion,w=h.skipAnimations,g=t.useRef(null),S=t.useRef(!1);m=m||x.renderer,!g.current&&m&&(g.current=m(l,{visualState:d,parent:y,props:p,presenceContext:j,blockInitialAnimation:!!j&&!1===j.initial,reducedMotionConfig:M,skipAnimations:w,isSVG:C}),S.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const A=g.current,q=t.useContext(r.SwitchLayoutGroupContext);!A||A.projection||!f||"html"!==A.type&&"svg"!==A.type||function(t,e,o,n){const{layoutId:i,layout:r,drag:s,dragConstraints:u,layoutScroll:l,layoutRoot:d,layoutAnchor:p,layoutCrossfade:m}=e,f=t.projection=new o(t.latestValues,e["data-framer-portal-id"]?void 0:c(t.parent));f.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:Boolean(s)||u&&a.isRefObject(u),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:m,layoutScroll:l,layoutRoot:d,layoutAnchor:p});const C=f.getStack()?.lead;C&&!f.root.isUpdateBlocked()&&(C.willUpdate(),C.scheduleCheckAfterUnmount())}(g.current,p,f,q),t.useInsertionEffect(()=>{A&&A.props!==p&&A.update(p,j)});const k=p[u.optimizedAppearDataAttribute],v=t.useRef(Boolean(k)&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(k)&&window.MotionHasOptimisedAnimation?.(k));return s.useIsomorphicLayoutEffect(()=>{S.current&&A&&(A.animationState?.animateChanges(),A.enteringChildren=void 0)},[]),s.useIsomorphicLayoutEffect(()=>{S.current=!0,A&&(window.MotionIsMounted=!0,A.updateFeatures(),A.scheduleRenderMicrotask(),v.current&&A.animationState&&A.animationState.animateChanges())}),t.useEffect(()=>{A&&(!v.current&&A.animationState&&A.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(k)}),v.current=!1),A.enteringChildren=void 0)}),A};
2
2
  //# sourceMappingURL=use-visual-element.mjs.js.map