@nethesis/phone-island 1.0.9-dev.7 → 1.0.10-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (583) hide show
  1. package/dist/App.js +1 -1
  2. package/dist/App.js.map +1 -1
  3. package/dist/_virtual/index6.js +1 -1
  4. package/dist/_virtual/index8.js +1 -1
  5. package/dist/components/SideView/hooks/useSideViewLogic.js +1 -1
  6. package/dist/components/SideView/hooks/useSideViewLogic.js.map +1 -1
  7. package/dist/components/Socket.js +1 -1
  8. package/dist/components/Socket.js.map +1 -1
  9. package/dist/components/TranscriptionView/TranscriptionView.js.map +1 -1
  10. package/dist/lib/devices/devices.js +1 -1
  11. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +1 -1
  12. package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs.js +1 -1
  13. package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.mjs.js.map +1 -1
  14. package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs.js +1 -1
  15. package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.mjs.js.map +1 -1
  16. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +1 -1
  17. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +1 -1
  18. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +1 -1
  19. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +1 -1
  20. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +1 -1
  21. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +1 -1
  22. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js.map +1 -1
  23. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs.js.map +1 -1
  24. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs.js.map +1 -1
  25. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.mjs.js.map +1 -1
  26. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs.js.map +1 -1
  27. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs.js.map +1 -1
  28. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs.js.map +1 -1
  29. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs.js +1 -1
  30. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs.js.map +1 -1
  31. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.mjs.js.map +1 -1
  32. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs.js.map +1 -1
  33. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js +1 -1
  34. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js.map +1 -1
  35. package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js.map +1 -1
  36. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +1 -1
  37. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +1 -1
  38. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js +1 -1
  39. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js.map +1 -1
  40. package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js +1 -1
  41. package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js.map +1 -1
  42. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +1 -1
  43. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +1 -1
  44. package/dist/node_modules/framer-motion/dist/es/gestures/focus.mjs.js +1 -1
  45. package/dist/node_modules/framer-motion/dist/es/gestures/focus.mjs.js.map +1 -1
  46. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js +1 -1
  47. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js.map +1 -1
  48. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +1 -1
  49. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +1 -1
  50. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js +1 -1
  51. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js.map +1 -1
  52. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +1 -1
  53. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +1 -1
  54. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js +1 -1
  55. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js.map +1 -1
  56. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs.js +1 -1
  57. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.mjs.js.map +1 -1
  58. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.mjs.js.map +1 -1
  59. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.mjs.js +1 -1
  60. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.mjs.js.map +1 -1
  61. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.mjs.js +1 -1
  62. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.mjs.js.map +1 -1
  63. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.mjs.js.map +1 -1
  64. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js +1 -1
  65. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js.map +1 -1
  66. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.mjs.js +1 -1
  67. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.mjs.js.map +1 -1
  68. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.mjs.js +1 -1
  69. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.mjs.js.map +1 -1
  70. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js +1 -1
  71. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js.map +1 -1
  72. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js.map +1 -1
  73. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +1 -1
  74. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +1 -1
  75. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs.js.map +1 -1
  76. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs.js +1 -1
  77. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs.js.map +1 -1
  78. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js +1 -1
  79. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js.map +1 -1
  80. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js +1 -1
  81. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js.map +1 -1
  82. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js +1 -1
  83. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js.map +1 -1
  84. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js +1 -1
  85. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js.map +1 -1
  86. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs.js +2 -0
  87. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs.js.map +1 -0
  88. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs.js +1 -1
  89. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs.js.map +1 -1
  90. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs.js +1 -1
  91. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs.js.map +1 -1
  92. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +1 -1
  93. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +1 -1
  94. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js +1 -1
  95. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js.map +1 -1
  96. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs.js.map +1 -1
  97. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs.js +2 -0
  98. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.mjs.js.map +1 -0
  99. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js +1 -1
  100. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js.map +1 -1
  101. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs.js.map +1 -1
  102. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs.js.map +1 -1
  103. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js +1 -1
  104. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js.map +1 -1
  105. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.mjs.js +2 -0
  106. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.mjs.js.map +1 -0
  107. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs.js.map +1 -1
  108. package/dist/node_modules/framer-motion/dist/es/utils/distance.mjs.js.map +1 -1
  109. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js.map +1 -1
  110. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.mjs.js.map +1 -1
  111. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs.js.map +1 -1
  112. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs.js +2 -0
  113. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs.js.map +1 -0
  114. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.mjs.js.map +1 -1
  115. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs.js.map +1 -1
  116. package/dist/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js +1 -1
  117. package/dist/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js.map +1 -1
  118. package/dist/node_modules/mic-check/lib/index.js +1 -1
  119. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +1 -1
  120. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +1 -1
  121. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +1 -1
  122. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +1 -1
  123. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +1 -1
  124. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +1 -1
  125. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js +1 -1
  126. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js.map +1 -1
  127. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs.js +2 -0
  128. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs.js.map +1 -0
  129. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js +2 -0
  130. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js.map +1 -0
  131. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +1 -1
  132. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +1 -1
  133. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +1 -1
  134. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js +2 -0
  135. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js.map +1 -0
  136. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js.map +1 -1
  137. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +1 -1
  138. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs.js.map +1 -1
  139. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js +1 -1
  140. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js.map +1 -1
  141. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js +2 -0
  142. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js.map +1 -0
  143. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js +2 -0
  144. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js.map +1 -0
  145. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js +2 -0
  146. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +1 -0
  147. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs.js.map +1 -0
  148. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +1 -1
  149. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +1 -1
  150. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +1 -1
  151. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +1 -1
  152. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js.map +1 -1
  153. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs.js.map +1 -1
  154. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs.js.map +1 -1
  155. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs.js.map +1 -1
  156. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs.js.map +1 -1
  157. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs.js.map +1 -1
  158. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js.map +1 -1
  159. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +1 -1
  160. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +1 -1
  161. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs.js.map +1 -0
  162. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs.js.map +1 -0
  163. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js +1 -1
  164. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js.map +1 -1
  165. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs.js +2 -0
  166. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs.js.map +1 -0
  167. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js +1 -1
  168. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js.map +1 -1
  169. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js +1 -1
  170. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js.map +1 -1
  171. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs.js +2 -0
  172. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs.js.map +1 -0
  173. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs.js +1 -1
  174. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs.js.map +1 -1
  175. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.mjs.js.map +1 -1
  176. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs.js +1 -1
  177. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.mjs.js.map +1 -1
  178. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs.js +2 -0
  179. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs.js.map +1 -0
  180. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs.js +2 -0
  181. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs.js.map +1 -0
  182. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs.js +1 -1
  183. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs.js.map +1 -1
  184. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs.js +2 -0
  185. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs.js.map +1 -0
  186. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js.map +1 -1
  187. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs.js.map +1 -1
  188. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.mjs.js.map +1 -1
  189. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js.map +1 -1
  190. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js +1 -1
  191. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js.map +1 -1
  192. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs.js +2 -0
  193. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs.js.map +1 -0
  194. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js.map +1 -1
  195. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.mjs.js +2 -0
  196. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.mjs.js.map +1 -0
  197. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js +1 -1
  198. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js.map +1 -1
  199. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.mjs.js.map +1 -1
  200. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.mjs.js.map +1 -0
  201. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +1 -1
  202. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +1 -1
  203. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js.map +1 -1
  204. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.mjs.js.map +1 -1
  205. package/dist/node_modules/motion-dom/dist/es/frameloop/order.mjs.js.map +1 -1
  206. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +1 -1
  207. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +1 -1
  208. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js.map +1 -1
  209. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs.js.map +1 -1
  210. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs.js.map +1 -1
  211. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +1 -1
  212. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +1 -1
  213. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +1 -1
  214. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +1 -1
  215. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs.js +1 -1
  216. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.mjs.js.map +1 -1
  217. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js.map +1 -1
  218. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs.js.map +1 -1
  219. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs.js.map +1 -1
  220. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.mjs.js.map +1 -1
  221. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js.map +1 -1
  222. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs.js +2 -0
  223. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs.js.map +1 -0
  224. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs.js.map +1 -0
  225. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.mjs.js.map +1 -0
  226. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs.js +2 -0
  227. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs.js.map +1 -0
  228. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs.js +2 -0
  229. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs.js.map +1 -0
  230. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs.js +2 -0
  231. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs.js.map +1 -0
  232. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.mjs.js.map +1 -0
  233. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.mjs.js.map +1 -0
  234. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs.js +2 -0
  235. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs.js.map +1 -0
  236. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs.js.map +1 -0
  237. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js +2 -0
  238. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js.map +1 -0
  239. package/dist/node_modules/motion-dom/dist/es/projection/node/state.mjs.js.map +1 -0
  240. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.mjs.js +2 -0
  241. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.mjs.js.map +1 -0
  242. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs.js +2 -0
  243. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs.js.map +1 -0
  244. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs.js +2 -0
  245. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs.js.map +1 -0
  246. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs.js +2 -0
  247. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs.js.map +1 -0
  248. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/styles/transform.mjs.js +1 -1
  249. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.mjs.js.map +1 -0
  250. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs.js.map +1 -0
  251. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs.js.map +1 -0
  252. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.mjs.js.map +1 -0
  253. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs.js.map +1 -0
  254. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.mjs.js.map +1 -0
  255. package/dist/node_modules/motion-dom/dist/es/render/Feature.mjs.js.map +1 -0
  256. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js +2 -0
  257. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js.map +1 -0
  258. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs.js +2 -0
  259. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs.js.map +1 -0
  260. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.mjs.js.map +1 -1
  261. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js +1 -1
  262. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js.map +1 -1
  263. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.mjs.js.map +1 -1
  264. package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/dom/utils/camel-to-dash.mjs.js +1 -1
  265. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs.js.map +1 -0
  266. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs.js +2 -0
  267. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs.js.map +1 -0
  268. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs.js +2 -0
  269. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs.js.map +1 -0
  270. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs.js +2 -0
  271. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs.js.map +1 -0
  272. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.mjs.js +2 -0
  273. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.mjs.js.map +1 -0
  274. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs.js +2 -0
  275. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs.js.map +1 -0
  276. package/dist/node_modules/motion-dom/dist/es/render/store.mjs.js.map +1 -0
  277. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs.js +2 -0
  278. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs.js.map +1 -0
  279. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js +2 -0
  280. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js.map +1 -0
  281. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs.js.map +1 -0
  282. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.mjs.js.map +1 -0
  283. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.mjs.js +2 -0
  284. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.mjs.js.map +1 -0
  285. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.mjs.js.map +1 -0
  286. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs.js +2 -0
  287. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs.js.map +1 -0
  288. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js +2 -0
  289. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js.map +1 -0
  290. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs.js.map +1 -0
  291. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs.js.map +1 -0
  292. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs.js +2 -0
  293. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs.js.map +1 -0
  294. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs.js +2 -0
  295. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs.js.map +1 -0
  296. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs.js.map +1 -0
  297. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs.js.map +1 -0
  298. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs.js.map +1 -1
  299. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js +1 -1
  300. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js.map +1 -1
  301. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.mjs.js +2 -0
  302. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.mjs.js.map +1 -0
  303. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.mjs.js +2 -0
  304. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.mjs.js.map +1 -0
  305. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs.js.map +1 -0
  306. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs.js.map +1 -0
  307. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs.js.map +1 -0
  308. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.mjs.js +2 -0
  309. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.mjs.js.map +1 -0
  310. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs.js.map +1 -0
  311. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs.js.map +1 -0
  312. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.mjs.js +2 -0
  313. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.mjs.js.map +1 -0
  314. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.mjs.js +2 -0
  315. package/dist/node_modules/motion-dom/dist/es/resize/handle-window.mjs.js.map +1 -0
  316. package/dist/node_modules/motion-dom/dist/es/resize/index.mjs.js +2 -0
  317. package/dist/node_modules/motion-dom/dist/es/resize/index.mjs.js.map +1 -0
  318. package/dist/node_modules/motion-dom/dist/es/stats/buffer.mjs.js.map +1 -1
  319. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js +2 -0
  320. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js.map +1 -0
  321. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js +1 -1
  322. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js.map +1 -1
  323. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.mjs.js +2 -0
  324. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.mjs.js.map +1 -0
  325. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs.js +2 -0
  326. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs.js.map +1 -0
  327. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs.js +2 -0
  328. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs.js.map +1 -0
  329. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js +1 -1
  330. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js.map +1 -1
  331. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.mjs.js +1 -1
  332. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.mjs.js.map +1 -1
  333. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs.js.map +1 -1
  334. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js.map +1 -1
  335. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.mjs.js.map +1 -1
  336. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.mjs.js.map +1 -1
  337. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js +1 -1
  338. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js.map +1 -1
  339. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.mjs.js.map +1 -1
  340. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.mjs.js.map +1 -1
  341. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.mjs.js.map +1 -1
  342. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs.js +1 -1
  343. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs.js.map +1 -1
  344. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +1 -1
  345. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +1 -1
  346. package/dist/node_modules/motion-dom/dist/es/value/types/auto.mjs.js.map +1 -1
  347. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.mjs.js.map +1 -1
  348. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js.map +1 -1
  349. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js.map +1 -1
  350. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.mjs.js +1 -1
  351. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.mjs.js.map +1 -1
  352. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js.map +1 -1
  353. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.mjs.js.map +1 -1
  354. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs.js.map +1 -1
  355. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js +1 -1
  356. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js.map +1 -1
  357. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.mjs.js +2 -0
  358. package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.mjs.js.map +1 -0
  359. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.mjs.js.map +1 -1
  360. package/dist/node_modules/motion-dom/dist/es/value/types/int.mjs.js.map +1 -1
  361. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs.js +1 -1
  362. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.mjs.js.map +1 -1
  363. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.mjs.js +1 -1
  364. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.mjs.js.map +1 -1
  365. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs.js +1 -1
  366. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.mjs.js.map +1 -1
  367. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs.js.map +1 -1
  368. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.mjs.js.map +1 -1
  369. package/dist/node_modules/motion-dom/dist/es/value/types/test.mjs.js.map +1 -1
  370. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs.js +1 -1
  371. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.mjs.js.map +1 -1
  372. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.mjs.js.map +1 -1
  373. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js.map +1 -1
  374. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.mjs.js.map +1 -1
  375. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs.js.map +1 -1
  376. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs.js.map +1 -1
  377. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.mjs.js.map +1 -1
  378. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs.js.map +1 -1
  379. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs.js.map +1 -0
  380. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs.js.map +1 -0
  381. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs.js.map +1 -0
  382. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.mjs.js.map +1 -0
  383. package/dist/node_modules/motion-utils/dist/es/array.mjs.js.map +1 -1
  384. package/dist/node_modules/motion-utils/dist/es/clamp.mjs.js.map +1 -1
  385. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.mjs.js +1 -1
  386. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.mjs.js.map +1 -1
  387. package/dist/node_modules/motion-utils/dist/es/easing/back.mjs.js.map +1 -1
  388. package/dist/node_modules/motion-utils/dist/es/easing/circ.mjs.js.map +1 -1
  389. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js.map +1 -1
  390. package/dist/node_modules/motion-utils/dist/es/easing/ease.mjs.js.map +1 -1
  391. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs.js.map +1 -1
  392. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs.js.map +1 -1
  393. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs.js.map +1 -1
  394. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs.js.map +1 -1
  395. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.mjs.js +1 -1
  396. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.mjs.js.map +1 -1
  397. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js +1 -1
  398. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js.map +1 -1
  399. package/dist/node_modules/motion-utils/dist/es/format-error-message.mjs.js +2 -0
  400. package/dist/node_modules/motion-utils/dist/es/format-error-message.mjs.js.map +1 -0
  401. package/dist/node_modules/motion-utils/dist/es/global-config.mjs.js.map +1 -1
  402. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.mjs.js.map +1 -1
  403. package/dist/node_modules/motion-utils/dist/es/is-object.mjs.js +2 -0
  404. package/dist/node_modules/motion-utils/dist/es/is-object.mjs.js.map +1 -0
  405. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.mjs.js.map +1 -1
  406. package/dist/node_modules/motion-utils/dist/es/memo.mjs.js.map +1 -1
  407. package/dist/node_modules/motion-utils/dist/es/noop.mjs.js.map +1 -1
  408. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js +1 -1
  409. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js.map +1 -1
  410. package/dist/node_modules/motion-utils/dist/es/progress.mjs.js +1 -1
  411. package/dist/node_modules/motion-utils/dist/es/progress.mjs.js.map +1 -1
  412. package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js.map +1 -1
  413. package/dist/node_modules/motion-utils/dist/es/time-conversion.mjs.js.map +1 -1
  414. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.mjs.js +1 -1
  415. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.mjs.js.map +1 -1
  416. package/dist/node_modules/motion-utils/dist/es/warn-once.mjs.js +1 -1
  417. package/dist/node_modules/motion-utils/dist/es/warn-once.mjs.js.map +1 -1
  418. package/dist/node_modules/prop-types/index.js +1 -1
  419. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  420. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1 -1
  421. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
  422. package/dist/package.json.js +1 -1
  423. package/dist/services/user.js +1 -1
  424. package/dist/services/user.js.map +1 -1
  425. package/package.json +1 -1
  426. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.mjs.js +0 -2
  427. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.mjs.js.map +0 -1
  428. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js +0 -2
  429. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js.map +0 -1
  430. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js +0 -2
  431. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js.map +0 -1
  432. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js +0 -2
  433. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js.map +0 -1
  434. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js +0 -2
  435. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +0 -1
  436. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js.map +0 -1
  437. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.mjs.js.map +0 -1
  438. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs.js.map +0 -1
  439. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js +0 -2
  440. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js.map +0 -1
  441. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs.js.map +0 -1
  442. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs.js.map +0 -1
  443. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js +0 -2
  444. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js.map +0 -1
  445. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js.map +0 -1
  446. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.mjs.js.map +0 -1
  447. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js +0 -2
  448. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js.map +0 -1
  449. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs.js +0 -2
  450. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs.js.map +0 -1
  451. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js.map +0 -1
  452. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.mjs.js.map +0 -1
  453. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js +0 -2
  454. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js.map +0 -1
  455. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js +0 -2
  456. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js.map +0 -1
  457. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js +0 -2
  458. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js.map +0 -1
  459. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.mjs.js.map +0 -1
  460. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.mjs.js.map +0 -1
  461. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs.js +0 -2
  462. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.mjs.js.map +0 -1
  463. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.mjs.js.map +0 -1
  464. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js +0 -2
  465. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js.map +0 -1
  466. package/dist/node_modules/framer-motion/dist/es/projection/node/state.mjs.js.map +0 -1
  467. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.mjs.js +0 -2
  468. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.mjs.js.map +0 -1
  469. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs.js +0 -2
  470. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs.js.map +0 -1
  471. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js +0 -2
  472. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js.map +0 -1
  473. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs.js +0 -2
  474. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs.js.map +0 -1
  475. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.mjs.js.map +0 -1
  476. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.mjs.js.map +0 -1
  477. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js.map +0 -1
  478. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.mjs.js.map +0 -1
  479. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js +0 -2
  480. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js.map +0 -1
  481. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js +0 -2
  482. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js.map +0 -1
  483. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.mjs.js +0 -2
  484. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.mjs.js.map +0 -1
  485. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js +0 -2
  486. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js.map +0 -1
  487. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs.js.map +0 -1
  488. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs.js +0 -2
  489. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs.js.map +0 -1
  490. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js +0 -2
  491. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js.map +0 -1
  492. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.mjs.js +0 -2
  493. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.mjs.js.map +0 -1
  494. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs.js +0 -2
  495. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs.js.map +0 -1
  496. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs.js +0 -2
  497. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs.js.map +0 -1
  498. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js +0 -2
  499. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js.map +0 -1
  500. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs.js +0 -2
  501. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs.js.map +0 -1
  502. package/dist/node_modules/framer-motion/dist/es/render/store.mjs.js.map +0 -1
  503. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs.js +0 -2
  504. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.mjs.js.map +0 -1
  505. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs.js +0 -2
  506. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs.js.map +0 -1
  507. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js +0 -2
  508. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js.map +0 -1
  509. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs.js.map +0 -1
  510. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs.js.map +0 -1
  511. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js +0 -2
  512. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js.map +0 -1
  513. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs.js.map +0 -1
  514. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs.js +0 -2
  515. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs.js.map +0 -1
  516. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js +0 -2
  517. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js.map +0 -1
  518. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.mjs.js.map +0 -1
  519. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.mjs.js.map +0 -1
  520. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.mjs.js.map +0 -1
  521. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs.js +0 -2
  522. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.mjs.js.map +0 -1
  523. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.mjs.js.map +0 -1
  524. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs.js +0 -2
  525. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs.js.map +0 -1
  526. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs.js.map +0 -1
  527. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.mjs.js.map +0 -1
  528. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.mjs.js +0 -2
  529. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.mjs.js.map +0 -1
  530. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.mjs.js.map +0 -1
  531. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js +0 -2
  532. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js.map +0 -1
  533. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs.js +0 -2
  534. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.mjs.js.map +0 -1
  535. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.mjs.js.map +0 -1
  536. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs.js.map +0 -1
  537. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.mjs.js.map +0 -1
  538. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.mjs.js.map +0 -1
  539. package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs.js.map +0 -1
  540. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs.js.map +0 -1
  541. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js +0 -2
  542. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js.map +0 -1
  543. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs.js +0 -2
  544. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.mjs.js.map +0 -1
  545. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js +0 -2
  546. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js.map +0 -1
  547. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js +0 -2
  548. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js.map +0 -1
  549. package/dist/utils/genericFunctions/summaryEvents.js +0 -2
  550. package/dist/utils/genericFunctions/summaryEvents.js.map +0 -1
  551. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/interfaces/visual-element.mjs.js +0 -0
  552. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/data-id.mjs.js +0 -0
  553. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/animation/optimized-appear/get-appear-id.mjs.js +0 -0
  554. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/events/add-dom-event.mjs.js +0 -0
  555. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/conversion.mjs.js +0 -0
  556. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/copy.mjs.js +0 -0
  557. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/models.mjs.js +0 -0
  558. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/geometry/utils.mjs.js +0 -0
  559. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/HTMLProjectionNode.mjs.js +0 -0
  560. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/node/state.mjs.js +0 -0
  561. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/compare-by-depth.mjs.js +0 -0
  562. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/each-axis.mjs.js +0 -0
  563. /package/dist/node_modules/{framer-motion/dist/es/render → motion-dom/dist/es/projection}/utils/flat-tree.mjs.js +0 -0
  564. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/has-transform.mjs.js +0 -0
  565. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/projection/utils/measure.mjs.js +0 -0
  566. /package/dist/node_modules/{framer-motion/dist/es/motion/features → motion-dom/dist/es/render}/Feature.mjs.js +0 -0
  567. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/store.mjs.js +0 -0
  568. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/camel-case-attrs.mjs.js +0 -0
  569. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/is-svg-tag.mjs.js +0 -0
  570. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/svg/utils/render.mjs.js +0 -0
  571. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/get-variant-context.mjs.js +0 -0
  572. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-animation-controls.mjs.js +0 -0
  573. /package/dist/node_modules/{framer-motion/dist/es/animation → motion-dom/dist/es/render}/utils/is-keyframes-target.mjs.js +0 -0
  574. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/is-variant-label.mjs.js +0 -0
  575. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/reduced-motion/state.mjs.js +0 -0
  576. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-dynamic-variants.mjs.js +0 -0
  577. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/resolve-variants.mjs.js +0 -0
  578. /package/dist/node_modules/{framer-motion/dist/es → motion-dom/dist/es/render}/utils/shallow-compare.mjs.js +0 -0
  579. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/render/utils/variant-props.mjs.js +0 -0
  580. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/value/utils/is-motion-value.mjs.js +0 -0
  581. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/value/utils/resolve-motion-value.mjs.js +0 -0
  582. /package/dist/node_modules/{framer-motion/dist/es/value/use-will-change → motion-dom/dist/es/value/will-change}/add-will-change.mjs.js +0 -0
  583. /package/dist/node_modules/{framer-motion/dist/es/value/use-will-change → motion-dom/dist/es/value/will-change}/is.mjs.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/gestures/pan/index.mjs"],"sourcesContent":["import { frame } from 'motion-dom';\nimport { noop } from 'motion-utils';\nimport { addPointerEvent } from '../../events/add-pointer-event.mjs';\nimport { Feature } from '../../motion/features/Feature.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.postRender(() => handler(event, info));\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: 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"],"names":["asyncHandler","handler","event","info","frame","postRender","PanGesture","Feature","constructor","super","arguments","this","removePointerDownListener","noop","onPointerDown","pointerDownEvent","session","PanSession","createPanHandlers","transformPagePoint","node","getTransformPagePoint","contextWindow","getContextWindow","onPanSessionStart","onPanStart","onPan","onPanEnd","getProps","onSessionStart","onStart","onMove","onEnd","mount","addPointerEvent","current","update","updateHandlers","unmount","end"],"mappings":"oYAOA,MAAMA,EAAgBC,GAAY,CAACC,EAAOC,KAClCF,GACAG,EAAKA,MAACC,YAAW,IAAMJ,EAAQC,EAAOC,IAC1C,EAEJ,MAAMG,UAAmBC,EAAAA,QACrBC,WAAAA,GACIC,SAASC,WACTC,KAAKC,0BAA4BC,MACrC,CACAC,aAAAA,CAAcC,GACVJ,KAAKK,QAAU,IAAIC,EAAAA,WAAWF,EAAkBJ,KAAKO,oBAAqB,CACtEC,mBAAoBR,KAAKS,KAAKC,wBAC9BC,cAAeC,EAAAA,iBAAiBZ,KAAKS,OAE7C,CACAF,iBAAAA,GACI,MAAMM,kBAAEA,EAAiBC,WAAEA,EAAUC,MAAEA,EAAKC,SAAEA,GAAahB,KAAKS,KAAKQ,WACrE,MAAO,CACHC,eAAgB7B,EAAawB,GAC7BM,QAAS9B,EAAayB,GACtBM,OAAQL,EACRM,MAAOA,CAAC9B,EAAOC,YACJQ,KAAKK,QACRW,GACAvB,EAAKA,MAACC,YAAW,IAAMsB,EAASzB,EAAOC,IAC3C,EAGZ,CACA8B,KAAAA,GACItB,KAAKC,0BAA4BsB,kBAAgBvB,KAAKS,KAAKe,QAAS,eAAgBjC,GAAUS,KAAKG,cAAcZ,IACrH,CACAkC,MAAAA,GACIzB,KAAKK,SAAWL,KAAKK,QAAQqB,eAAe1B,KAAKO,oBACrD,CACAoB,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, 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,QAAO,IAAMJ,EAAQC,EAAOC,KAAO,GAAO,EACpD,EAGF,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,YAAW,IAAMN,EAASvB,EAAOC,IAC3C,EAGZ,CAEA6B,KAAAA,GACIvB,KAAKC,0BAA4BuB,kBAC7BxB,KAAKS,KAAKgB,QACV,eACChC,GAAwBO,KAAKG,cAAcV,IAEpD,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/features/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;e&&(this.unmount=s.press(e,((e,t)=>(r(this.node,t,"Start"),(e,t)=>{let{success:s}=t;return r(this.node,e,s?"End":"Cancel")})),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}exports.PressGesture=o;
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"),r=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js");function n(t,s,n){const{props:o}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&o.whileTap&&t.animationState.setActive("whileTap","Start"===n);const a=o["onTap"+("End"===n?"":n)];a&&r.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:r}=this.node.props;this.unmount=s.press(e,((e,t)=>(n(this.node,t,"Start"),(e,t)=>{let{success:s}=t;return n(this.node,e,s?"End":"Cancel")})),{useGlobalTarget:t,stopPropagation:!1===r?.tap})}unmount(){}}exports.PressGesture=o;
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 { press, frame } from 'motion-dom';\nimport { extractEventInfo } from '../events/event-info.mjs';\nimport { Feature } from '../motion/features/Feature.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 this.unmount = press(current, (_element, startEvent) => {\n handlePressEvent(this.node, startEvent, \"Start\");\n return (endEvent, { success }) => handlePressEvent(this.node, endEvent, success ? \"End\" : \"Cancel\");\n }, { useGlobalTarget: this.node.props.globalTapTarget });\n }\n unmount() { }\n}\n\nexport { PressGesture };\n"],"names":["handlePressEvent","node","event","lifecycle","props","current","HTMLButtonElement","disabled","animationState","whileTap","setActive","callback","frame","postRender","extractEventInfo","PressGesture","Feature","mount","this","unmount","press","_element","startEvent","endEvent","_ref","success","useGlobalTarget","globalTapTarget"],"mappings":"2SAIA,SAASA,EAAiBC,EAAMC,EAAOC,GACnC,MAAMC,MAAEA,GAAUH,EAClB,GAAIA,EAAKI,mBAAmBC,mBAAqBL,EAAKI,QAAQE,SAC1D,OAEAN,EAAKO,gBAAkBJ,EAAMK,UAC7BR,EAAKO,eAAeE,UAAU,WAA0B,UAAdP,GAE9C,MACMQ,EAAWP,EADE,SAAyB,QAAdD,EAAsB,GAAKA,IAErDQ,GACAC,EAAKA,MAACC,YAAW,IAAMF,EAAST,EAAOY,mBAAiBZ,KAEhE,CACA,MAAMa,UAAqBC,EAAAA,QACvBC,KAAAA,GACI,MAAMZ,QAAEA,GAAYa,KAAKjB,KACpBI,IAELa,KAAKC,QAAUC,EAAKA,MAACf,GAAS,CAACgB,EAAUC,KACrCtB,EAAiBkB,KAAKjB,KAAMqB,EAAY,SACjC,CAACC,EAAQC,KAAA,IAAEC,QAAEA,GAASD,EAAA,OAAKxB,EAAiBkB,KAAKjB,KAAMsB,EAAUE,EAAU,MAAQ,SAAS,IACpG,CAAEC,gBAAiBR,KAAKjB,KAAKG,MAAMuB,kBAC1C,CACAR,OAAAA,GAAY"}
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","_ref","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,YAAW,IAAMF,EAAST,EAAOY,mBAAiBZ,KAEhE,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,GACA,CAACkB,EAAUC,KACPxB,EAAiBkB,KAAKjB,KAAMuB,EAAY,SAEjC,CAACC,EAAQC,KAAA,IAAEC,QAAEA,GAASD,EAAA,OACzB1B,EACIkB,KAAKjB,KACLwB,EACAE,EAAU,MAAQ,SACrB,IAET,CACIC,gBAAiBT,EACjBU,iBAAoC,IAAnBT,GAAWU,KAGxC,CAEAT,OAAAA,GAAW"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../Feature.mjs.js");let t=0;class n extends e.Feature{constructor(){super(...arguments),this.id=t++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then((()=>{t(this.id)}))}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}exports.ExitAnimationFeature=n;
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;
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 } from '../Feature.mjs';\n\nlet id = 0;\nclass ExitAnimationFeature extends Feature {\n constructor() {\n super(...arguments);\n this.id = id++;\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 const exitAnimation = this.node.animationState.setActive(\"exit\", !isPresent);\n if (onExitComplete && !isPresent) {\n exitAnimation.then(() => {\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"],"names":["id","ExitAnimationFeature","Feature","constructor","super","arguments","this","update","node","presenceContext","isPresent","onExitComplete","prevIsPresent","prevPresenceContext","animationState","exitAnimation","setActive","then","mount","register","unmount"],"mappings":"uGAEA,IAAIA,EAAK,EACT,MAAMC,UAA6BC,EAAAA,QAC/BC,WAAAA,GACIC,SAASC,WACTC,KAAKN,GAAKA,GACd,CACAO,MAAAA,GACI,IAAKD,KAAKE,KAAKC,gBACX,OACJ,MAAMC,UAAEA,EAASC,eAAEA,GAAmBL,KAAKE,KAAKC,iBACxCC,UAAWE,GAAkBN,KAAKE,KAAKK,qBAAuB,GACtE,IAAKP,KAAKE,KAAKM,gBAAkBJ,IAAcE,EAC3C,OAEJ,MAAMG,EAAgBT,KAAKE,KAAKM,eAAeE,UAAU,QAASN,GAC9DC,IAAmBD,GACnBK,EAAcE,MAAK,KACfN,EAAeL,KAAKN,GAAG,GAGnC,CACAkB,KAAAA,GACI,MAAMC,SAAEA,EAAQR,eAAEA,GAAmBL,KAAKE,KAAKC,iBAAmB,GAC9DE,GACAA,EAAeL,KAAKN,IAEpBmB,IACAb,KAAKc,QAAUD,EAASb,KAAKN,IAErC,CACAoB,OAAAA,GAAY"}
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,MAAK,KACf3B,KAAKC,gBAAiB,EACtBK,EAAeN,KAAKJ,GAAG,GAGnC,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,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../animation/utils/is-animation-controls.mjs.js"),n=require("../../../render/utils/animation-state.mjs.js"),e=require("../Feature.mjs.js");class i extends e.Feature{constructor(t){super(t),t.animationState||(t.animationState=n.createAnimationState(t))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();t.isAnimationControls(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}exports.AnimationFeature=i;
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/animation-state.mjs.js"),n=require("../../../../../../motion-dom/dist/es/render/utils/is-animation-controls.mjs.js");class o extends t.Feature{constructor(t){super(t),t.animationState||(t.animationState=e.createAnimationState(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();n.isAnimationControls(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}exports.AnimationFeature=o;
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/animation/index.mjs"],"sourcesContent":["import { isAnimationControls } from '../../../animation/utils/is-animation-controls.mjs';\nimport { createAnimationState } from '../../../render/utils/animation-state.mjs';\nimport { Feature } from '../Feature.mjs';\n\nclass AnimationFeature extends Feature {\n /**\n * We dynamically generate the AnimationState manager as it contains a reference\n * to the underlying animation library. We only want to load that if we load this,\n * so people can optionally code split it out using the `m` component.\n */\n constructor(node) {\n super(node);\n node.animationState || (node.animationState = createAnimationState(node));\n }\n updateAnimationControlsSubscription() {\n const { animate } = this.node.getProps();\n if (isAnimationControls(animate)) {\n this.unmountControls = animate.subscribe(this.node);\n }\n }\n /**\n * Subscribe any provided AnimationControls to the component's VisualElement\n */\n mount() {\n this.updateAnimationControlsSubscription();\n }\n update() {\n const { animate } = this.node.getProps();\n const { animate: prevAnimate } = this.node.prevProps || {};\n if (animate !== prevAnimate) {\n this.updateAnimationControlsSubscription();\n }\n }\n unmount() {\n this.node.animationState.reset();\n this.unmountControls?.();\n }\n}\n\nexport { AnimationFeature };\n"],"names":["AnimationFeature","Feature","constructor","node","super","animationState","createAnimationState","updateAnimationControlsSubscription","animate","this","getProps","isAnimationControls","unmountControls","subscribe","mount","update","prevAnimate","prevProps","unmount","reset"],"mappings":"oOAIA,MAAMA,UAAyBC,EAAAA,QAM3BC,WAAAA,CAAYC,GACRC,MAAMD,GACNA,EAAKE,iBAAmBF,EAAKE,eAAiBC,EAAoBA,qBAACH,GACvE,CACAI,mCAAAA,GACI,MAAMC,QAAEA,GAAYC,KAAKN,KAAKO,WAC1BC,EAAAA,oBAAoBH,KACpBC,KAAKG,gBAAkBJ,EAAQK,UAAUJ,KAAKN,MAEtD,CAIAW,KAAAA,GACIL,KAAKF,qCACT,CACAQ,MAAAA,GACI,MAAMP,QAAEA,GAAYC,KAAKN,KAAKO,YACtBF,QAASQ,GAAgBP,KAAKN,KAAKc,WAAa,GACpDT,IAAYQ,GACZP,KAAKF,qCAEb,CACAW,OAAAA,GACIT,KAAKN,KAAKE,eAAec,QACzBV,KAAKG,mBACT"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/animation/index.mjs"],"sourcesContent":["import { Feature, createAnimationState, isAnimationControls } from 'motion-dom';\n\nclass AnimationFeature extends Feature {\n /**\n * We dynamically generate the AnimationState manager as it contains a reference\n * to the underlying animation library. We only want to load that if we load this,\n * so people can optionally code split it out using the `m` component.\n */\n constructor(node) {\n super(node);\n node.animationState || (node.animationState = createAnimationState(node));\n }\n updateAnimationControlsSubscription() {\n const { animate } = this.node.getProps();\n if (isAnimationControls(animate)) {\n this.unmountControls = animate.subscribe(this.node);\n }\n }\n /**\n * Subscribe any provided AnimationControls to the component's VisualElement\n */\n mount() {\n this.updateAnimationControlsSubscription();\n }\n update() {\n const { animate } = this.node.getProps();\n const { animate: prevAnimate } = this.node.prevProps || {};\n if (animate !== prevAnimate) {\n this.updateAnimationControlsSubscription();\n }\n }\n unmount() {\n this.node.animationState.reset();\n this.unmountControls?.();\n }\n}\n\nexport { AnimationFeature };\n//# sourceMappingURL=index.mjs.map\n"],"names":["AnimationFeature","Feature","constructor","node","super","animationState","createAnimationState","updateAnimationControlsSubscription","animate","this","getProps","isAnimationControls","unmountControls","subscribe","mount","update","prevAnimate","prevProps","unmount","reset"],"mappings":"kUAOM,MAAOA,UAAyBC,EAAAA,QAQlCC,WAAAA,CAAYC,GACRC,MAAMD,GACNA,EAAKE,iBAALF,EAAKE,eAAmBC,EAAoBA,qBAACH,GACjD,CAEAI,mCAAAA,GACI,MAAMC,QAAEA,GAAYC,KAAKN,KAAKO,WAC1BC,EAAAA,oBAAoBH,KACpBC,KAAKG,gBAAkBJ,EAAQK,UAAUJ,KAAKN,MAEtD,CAKAW,KAAAA,GACIL,KAAKF,qCACT,CAEAQ,MAAAA,GACI,MAAMP,QAAEA,GAAYC,KAAKN,KAAKO,YACtBF,QAASQ,GAAgBP,KAAKN,KAAKc,WAAa,GACpDT,IAAYQ,GACZP,KAAKF,qCAEb,CAEAW,OAAAA,GACIT,KAAKN,KAAKE,eAAgBc,QAC1BV,KAAKG,mBACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"animations.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/animations.mjs"],"sourcesContent":["import { AnimationFeature } from './animation/index.mjs';\nimport { ExitAnimationFeature } from './animation/exit.mjs';\n\nconst animations = {\n animation: {\n Feature: AnimationFeature,\n },\n exit: {\n Feature: ExitAnimationFeature,\n },\n};\n\nexport { animations };\n"],"names":["animations","animation","Feature","AnimationFeature","exit","ExitAnimationFeature"],"mappings":"mJAGA,MAAMA,EAAa,CACfC,UAAW,CACPC,QAASC,EAAAA,kBAEbC,KAAM,CACFF,QAASG,EAAAA"}
1
+ {"version":3,"file":"animations.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/animations.mjs"],"sourcesContent":["import { AnimationFeature } from './animation/index.mjs';\nimport { ExitAnimationFeature } from './animation/exit.mjs';\n\nconst animations = {\n animation: {\n Feature: AnimationFeature,\n },\n exit: {\n Feature: ExitAnimationFeature,\n },\n};\n\nexport { animations };\n//# sourceMappingURL=animations.mjs.map\n"],"names":["animations","animation","Feature","AnimationFeature","exit","ExitAnimationFeature"],"mappings":"mJAIO,MAAMA,EAA8B,CACvCC,UAAW,CACPC,QAASC,EAAAA,kBAEbC,KAAM,CACFF,QAASG,EAAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},o={};for(const n in e)o[n]={isEnabled:o=>e[n].some((e=>!!o[e]))};exports.featureDefinitions=o;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../motion-dom/dist/es/render/VisualElement.mjs.js");const n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let t=!1;function i(){if(t)return;const i={};for(const e in n)i[e]={isEnabled:t=>n[e].some((e=>!!t[e]))};e.setFeatureDefinitions(i),t=!0}exports.getInitializedFeatureDefinitions=function(){return i(),e.getFeatureDefinitions()},exports.initFeatureDefinitions=i;
2
2
  //# sourceMappingURL=definitions.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/definitions.mjs"],"sourcesContent":["const featureProps = {\n animation: [\n \"animate\",\n \"variants\",\n \"whileHover\",\n \"whileTap\",\n \"exit\",\n \"whileInView\",\n \"whileFocus\",\n \"whileDrag\",\n ],\n exit: [\"exit\"],\n drag: [\"drag\", \"dragControls\"],\n focus: [\"whileFocus\"],\n hover: [\"whileHover\", \"onHoverStart\", \"onHoverEnd\"],\n tap: [\"whileTap\", \"onTap\", \"onTapStart\", \"onTapCancel\"],\n pan: [\"onPan\", \"onPanStart\", \"onPanSessionStart\", \"onPanEnd\"],\n inView: [\"whileInView\", \"onViewportEnter\", \"onViewportLeave\"],\n layout: [\"layout\", \"layoutId\"],\n};\nconst featureDefinitions = {};\nfor (const key in featureProps) {\n featureDefinitions[key] = {\n isEnabled: (props) => featureProps[key].some((name) => !!props[name]),\n };\n}\n\nexport { featureDefinitions };\n"],"names":["featureProps","animation","exit","drag","focus","hover","tap","pan","inView","layout","featureDefinitions","key","isEnabled","props","some","name"],"mappings":"oEAAA,MAAMA,EAAe,CACjBC,UAAW,CACP,UACA,WACA,aACA,WACA,OACA,cACA,aACA,aAEJC,KAAM,CAAC,QACPC,KAAM,CAAC,OAAQ,gBACfC,MAAO,CAAC,cACRC,MAAO,CAAC,aAAc,eAAgB,cACtCC,IAAK,CAAC,WAAY,QAAS,aAAc,eACzCC,IAAK,CAAC,QAAS,aAAc,oBAAqB,YAClDC,OAAQ,CAAC,cAAe,kBAAmB,mBAC3CC,OAAQ,CAAC,SAAU,aAEjBC,EAAqB,CAAE,EAC7B,IAAK,MAAMC,KAAOX,EACdU,EAAmBC,GAAO,CACtBC,UAAYC,GAAUb,EAAaW,GAAKG,MAAMC,KAAWF,EAAME"}
1
+ {"version":3,"file":"definitions.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/definitions.mjs"],"sourcesContent":["import { getFeatureDefinitions, setFeatureDefinitions } from 'motion-dom';\n\nconst featureProps = {\n animation: [\n \"animate\",\n \"variants\",\n \"whileHover\",\n \"whileTap\",\n \"exit\",\n \"whileInView\",\n \"whileFocus\",\n \"whileDrag\",\n ],\n exit: [\"exit\"],\n drag: [\"drag\", \"dragControls\"],\n focus: [\"whileFocus\"],\n hover: [\"whileHover\", \"onHoverStart\", \"onHoverEnd\"],\n tap: [\"whileTap\", \"onTap\", \"onTapStart\", \"onTapCancel\"],\n pan: [\"onPan\", \"onPanStart\", \"onPanSessionStart\", \"onPanEnd\"],\n inView: [\"whileInView\", \"onViewportEnter\", \"onViewportLeave\"],\n layout: [\"layout\", \"layoutId\"],\n};\nlet isInitialized = false;\n/**\n * Initialize feature definitions with isEnabled checks.\n * This must be called before any motion components are rendered.\n */\nfunction initFeatureDefinitions() {\n if (isInitialized)\n return;\n const initialFeatureDefinitions = {};\n for (const key in featureProps) {\n initialFeatureDefinitions[key] = {\n isEnabled: (props) => featureProps[key].some((name) => !!props[name]),\n };\n }\n setFeatureDefinitions(initialFeatureDefinitions);\n isInitialized = true;\n}\n/**\n * Get the current feature definitions, initializing if needed.\n */\nfunction getInitializedFeatureDefinitions() {\n initFeatureDefinitions();\n return getFeatureDefinitions();\n}\n\nexport { getInitializedFeatureDefinitions, initFeatureDefinitions };\n//# sourceMappingURL=definitions.mjs.map\n"],"names":["featureProps","animation","exit","drag","focus","hover","tap","pan","inView","layout","isInitialized","initFeatureDefinitions","initialFeatureDefinitions","key","isEnabled","props","some","name","setFeatureDefinitions","getInitializedFeatureDefinitions","getFeatureDefinitions"],"mappings":"mJAIA,MAAMA,EAAe,CACjBC,UAAW,CACP,UACA,WACA,aACA,WACA,OACA,cACA,aACA,aAEJC,KAAM,CAAC,QACPC,KAAM,CAAC,OAAQ,gBACfC,MAAO,CAAC,cACRC,MAAO,CAAC,aAAc,eAAgB,cACtCC,IAAK,CAAC,WAAY,QAAS,aAAc,eACzCC,IAAK,CAAC,QAAS,aAAc,oBAAqB,YAClDC,OAAQ,CAAC,cAAe,kBAAmB,mBAC3CC,OAAQ,CAAC,SAAU,aAGvB,IAAIC,GAAgB,EAMJC,SAAAA,IACZ,GAAID,EAAe,OAEnB,MAAME,EAAyD,CAAA,EAE/D,IAAK,MAAMC,KAAOb,EACdY,EACIC,GACA,CACAC,UAAYC,GACRf,EAAaa,GAAkCG,MAC1CC,KAAmBF,EAAME,MAK1CC,EAAqBA,sBAACN,GACtBF,GAAgB,CACpB,0CAKgBS,WAEZ,OADAR,IACOS,EAAqBA,uBAChC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../gestures/drag/index.mjs.js"),r=require("../../gestures/pan/index.mjs.js"),s=require("./layout/MeasureLayout.mjs.js"),o=require("../../projection/node/HTMLProjectionNode.mjs.js");const t={pan:{Feature:r.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:o.HTMLProjectionNode,MeasureLayout:s.MeasureLayout}};exports.drag=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../gestures/drag/index.mjs.js"),r=require("../../gestures/pan/index.mjs.js"),s=require("./layout/MeasureLayout.mjs.js"),o=require("../../../../../motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs.js");const t={pan:{Feature:r.PanGesture},drag:{Feature:e.DragGesture,ProjectionNode:o.HTMLProjectionNode,MeasureLayout:s.MeasureLayout}};exports.drag=t;
2
2
  //# sourceMappingURL=drag.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"drag.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/drag.mjs"],"sourcesContent":["import { DragGesture } from '../../gestures/drag/index.mjs';\nimport { PanGesture } from '../../gestures/pan/index.mjs';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\nimport { HTMLProjectionNode } from '../../projection/node/HTMLProjectionNode.mjs';\n\nconst drag = {\n pan: {\n Feature: PanGesture,\n },\n drag: {\n Feature: DragGesture,\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { drag };\n"],"names":["drag","pan","Feature","PanGesture","DragGesture","ProjectionNode","HTMLProjectionNode","MeasureLayout"],"mappings":"2QAKA,MAAMA,EAAO,CACTC,IAAK,CACDC,QAASC,EAAAA,YAEbH,KAAM,CACFE,QAASE,EAAWA,YACpBC,eAAgBC,EAAkBA,mBAClCC,cAAAA,EAAAA"}
1
+ {"version":3,"file":"drag.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/drag.mjs"],"sourcesContent":["import { DragGesture } from '../../gestures/drag/index.mjs';\nimport { PanGesture } from '../../gestures/pan/index.mjs';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\nimport { HTMLProjectionNode } from 'motion-dom';\n\nconst drag = {\n pan: {\n Feature: PanGesture,\n },\n drag: {\n Feature: DragGesture,\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { drag };\n//# sourceMappingURL=drag.mjs.map\n"],"names":["drag","pan","Feature","PanGesture","DragGesture","ProjectionNode","HTMLProjectionNode","MeasureLayout"],"mappings":"uSAMO,MAAMA,EAAwB,CACjCC,IAAK,CACDC,QAASC,EAAAA,YAEbH,KAAM,CACFE,QAASE,EAAWA,YACpBC,eAAgBC,EAAkBA,mBAClCC,cAAAA,EAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"gestures.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/gestures.mjs"],"sourcesContent":["import { HoverGesture } from '../../gestures/hover.mjs';\nimport { FocusGesture } from '../../gestures/focus.mjs';\nimport { PressGesture } from '../../gestures/press.mjs';\nimport { InViewFeature } from './viewport/index.mjs';\n\nconst gestureAnimations = {\n inView: {\n Feature: InViewFeature,\n },\n tap: {\n Feature: PressGesture,\n },\n focus: {\n Feature: FocusGesture,\n },\n hover: {\n Feature: HoverGesture,\n },\n};\n\nexport { gestureAnimations };\n"],"names":["gestureAnimations","inView","Feature","InViewFeature","tap","PressGesture","focus","FocusGesture","hover","HoverGesture"],"mappings":"mMAKA,MAAMA,EAAoB,CACtBC,OAAQ,CACJC,2CAASC,eAEbC,IAAK,CACDF,QAASG,EAAAA,cAEbC,MAAO,CACHJ,QAASK,EAAAA,cAEbC,MAAO,CACHN,QAASO,EAAAA"}
1
+ {"version":3,"file":"gestures.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/gestures.mjs"],"sourcesContent":["import { HoverGesture } from '../../gestures/hover.mjs';\nimport { FocusGesture } from '../../gestures/focus.mjs';\nimport { PressGesture } from '../../gestures/press.mjs';\nimport { InViewFeature } from './viewport/index.mjs';\n\nconst gestureAnimations = {\n inView: {\n Feature: InViewFeature,\n },\n tap: {\n Feature: PressGesture,\n },\n focus: {\n Feature: FocusGesture,\n },\n hover: {\n Feature: HoverGesture,\n },\n};\n\nexport { gestureAnimations };\n//# sourceMappingURL=gestures.mjs.map\n"],"names":["gestureAnimations","inView","Feature","InViewFeature","tap","PressGesture","focus","FocusGesture","hover","HoverGesture"],"mappings":"mMAMO,MAAMA,EAAqC,CAC9CC,OAAQ,CACJC,2CAASC,eAEbC,IAAK,CACDF,QAASG,EAAAA,cAEbC,MAAO,CACHJ,QAASK,EAAAA,cAEbC,MAAO,CACHN,QAASO,EAAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("../../../../../../react/jsx-runtime.js");var e=require("react"),o=require("../../../components/AnimatePresence/use-presence.mjs.js"),t=require("../../../context/LayoutGroupContext.mjs.js"),r=require("../../../context/SwitchLayoutGroupContext.mjs.js"),s=require("../../../projection/node/state.mjs.js"),i=require("../../../projection/styles/scale-border-radius.mjs.js"),n=require("../../../projection/styles/scale-box-shadow.mjs.js"),a=require("../../../projection/styles/scale-correction.mjs.js"),u=require("../../../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),d=require("../../../../../../motion-dom/dist/es/frameloop/microtask.mjs.js"),p=require("../../../../../../../_virtual/jsx-runtime.js");class c extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:o,switchLayoutGroup:t,layoutId:r}=this.props,{projection:i}=e;a.addScaleCorrector(m),i&&(o.group&&o.group.add(i),t&&t.register&&r&&t.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),s.globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:o,visualElement:t,drag:r,isPresent:s}=this.props,i=t.projection;return i?(i.isPresent=s,r||e.layoutDependency!==o||void 0===o||e.isPresent!==s?i.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?i.promote():i.relegate()||u.frame.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),d.microtask.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:o,switchLayoutGroup:t}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(r),t&&t.deregister&&t.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}const m={borderRadius:{...i.correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:i.correctBorderRadius,borderTopRightRadius:i.correctBorderRadius,borderBottomLeftRadius:i.correctBorderRadius,borderBottomRightRadius:i.correctBorderRadius,boxShadow:n.correctBoxShadow};exports.MeasureLayout=function(s){const[i,n]=o.usePresence(),a=e.useContext(t.LayoutGroupContext);return p.exports.jsx(c,{...s,layoutGroup:a,switchLayoutGroup:e.useContext(r.SwitchLayoutGroupContext),isPresent:i,safeToRemove:n})};
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})};
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 { 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';\nimport { globalProjectionState } from '../../../projection/node/state.mjs';\nimport { correctBorderRadius } from '../../../projection/styles/scale-border-radius.mjs';\nimport { correctBoxShadow } from '../../../projection/styles/scale-box-shadow.mjs';\nimport { addScaleCorrector } from '../../../projection/styles/scale-correction.mjs';\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 addScaleCorrector(defaultScaleCorrectors);\n if (projection) {\n if (layoutGroup.group)\n layoutGroup.group.add(projection);\n if (switchLayoutGroup && switchLayoutGroup.register && layoutId) {\n switchLayoutGroup.register(projection);\n }\n projection.root.didUpdate();\n projection.addEventListener(\"animationComplete\", () => {\n this.safeToRemove();\n });\n projection.setOptions({\n ...projection.options,\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.projection;\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 (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 { projection } = this.props.visualElement;\n if (projection) {\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 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}\nconst defaultScaleCorrectors = {\n borderRadius: {\n ...correctBorderRadius,\n applyTo: [\n \"borderTopLeftRadius\",\n \"borderTopRightRadius\",\n \"borderBottomLeftRadius\",\n \"borderBottomRightRadius\",\n ],\n },\n borderTopLeftRadius: correctBorderRadius,\n borderTopRightRadius: correctBorderRadius,\n borderBottomLeftRadius: correctBorderRadius,\n borderBottomRightRadius: correctBorderRadius,\n boxShadow: correctBoxShadow,\n};\n\nexport { MeasureLayout };\n"],"names":["MeasureLayoutWithContext","Component","componentDidMount","visualElement","layoutGroup","switchLayoutGroup","layoutId","this","props","projection","addScaleCorrector","defaultScaleCorrectors","group","add","register","root","didUpdate","addEventListener","safeToRemove","setOptions","options","onExitComplete","globalProjectionState","hasEverUpdated","getSnapshotBeforeUpdate","prevProps","layoutDependency","drag","isPresent","undefined","willUpdate","promote","relegate","frame","postRender","stack","getStack","members","length","componentDidUpdate","microtask","currentAnimation","isLead","componentWillUnmount","promoteContext","scheduleCheckAfterUnmount","remove","deregister","render","borderRadius","correctBorderRadius","applyTo","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","boxShadow","correctBoxShadow","usePresence","useContext","LayoutGroupContext","jsx","SwitchLayoutGroupContext"],"mappings":"8wBAYA,MAAMA,UAAiCC,EAAAA,UAMnCC,iBAAAA,GACI,MAAMC,cAAEA,EAAaC,YAAEA,EAAWC,kBAAEA,EAAiBC,SAAEA,GAAaC,KAAKC,OACnEC,WAAEA,GAAeN,EACvBO,EAAiBA,kBAACC,GACdF,IACIL,EAAYQ,OACZR,EAAYQ,MAAMC,IAAIJ,GACtBJ,GAAqBA,EAAkBS,UAAYR,GACnDD,EAAkBS,SAASL,GAE/BA,EAAWM,KAAKC,YAChBP,EAAWQ,iBAAiB,qBAAqB,KAC7CV,KAAKW,cAAc,IAEvBT,EAAWU,WAAW,IACfV,EAAWW,QACdC,eAAgBA,IAAMd,KAAKW,kBAGnCI,EAAqBA,sBAACC,gBAAiB,CAC3C,CACAC,uBAAAA,CAAwBC,GACpB,MAAMC,iBAAEA,EAAgBvB,cAAEA,EAAawB,KAAEA,EAAIC,UAAEA,GAAcrB,KAAKC,MAC5DC,EAAaN,EAAcM,WACjC,OAAKA,GASLA,EAAWmB,UAAYA,EACnBD,GACAF,EAAUC,mBAAqBA,QACVG,IAArBH,GACAD,EAAUG,YAAcA,EACxBnB,EAAWqB,aAGXvB,KAAKW,eAELO,EAAUG,YAAcA,IACpBA,EACAnB,EAAWsB,UAELtB,EAAWuB,YAMjBC,EAAKA,MAACC,YAAW,KACb,MAAMC,EAAQ1B,EAAW2B,WACpBD,GAAUA,EAAME,QAAQC,QACzB/B,KAAKW,cACT,KAIL,MApCI,IAqCf,CACAqB,kBAAAA,GACI,MAAM9B,WAAEA,GAAeF,KAAKC,MAAML,cAC9BM,IACAA,EAAWM,KAAKC,YAChBwB,EAASA,UAACN,YAAW,MACZzB,EAAWgC,kBAAoBhC,EAAWiC,UAC3CnC,KAAKW,cACT,IAGZ,CACAyB,oBAAAA,GACI,MAAMxC,cAAEA,EAAaC,YAAEA,EAAaC,kBAAmBuC,GAAoBrC,KAAKC,OAC1EC,WAAEA,GAAeN,EACnBM,IACAA,EAAWoC,4BACPzC,GAAeA,EAAYQ,OAC3BR,EAAYQ,MAAMkC,OAAOrC,GACzBmC,GAAkBA,EAAeG,YACjCH,EAAeG,WAAWtC,GAEtC,CACAS,YAAAA,GACI,MAAMA,aAAEA,GAAiBX,KAAKC,MAC9BU,GAAgBA,GACpB,CACA8B,MAAAA,GACI,OAAO,IACX,EAOJ,MAAMrC,EAAyB,CAC3BsC,aAAc,IACPC,EAAmBA,oBACtBC,QAAS,CACL,sBACA,uBACA,yBACA,4BAGRC,oBAAqBF,EAAmBA,oBACxCG,qBAAsBH,EAAmBA,oBACzCI,uBAAwBJ,EAAmBA,oBAC3CK,wBAAyBL,EAAmBA,oBAC5CM,UAAWC,EAAAA,wCAnBf,SAAuBjD,GACnB,MAAOoB,EAAWV,GAAgBwC,EAAWA,cACvCtD,EAAcuD,aAAWC,EAAAA,oBAC/B,OAAQC,EAAAA,QAAAA,IAAI7D,EAA0B,IAAKQ,EAAOJ,YAAaA,EAAaC,kBAAmBsD,EAAUA,WAACG,4BAA2BlC,UAAWA,EAAWV,aAAcA,GAC7K"}
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,qBAAA,uDAKIC,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,YAAA,KACI,MAAAC,EAAApB,EAAAqB,wDAQZ,MAjDiB,4EAsDjBrB,WAAAA,GAAAN,MAEIM,EAAAsB,QAAAC,aAAAA,EAEAvB,EAAAI,KAAAC,YAEAmB,EAAAA,UAAAL,YAAA,qFASJ,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,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../projection/node/HTMLProjectionNode.mjs.js"),o=require("./layout/MeasureLayout.mjs.js");const r={layout:{ProjectionNode:e.HTMLProjectionNode,MeasureLayout:o.MeasureLayout}};exports.layout=r;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./layout/MeasureLayout.mjs.js");const o={layout:{ProjectionNode:require("../../../../../motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs.js").HTMLProjectionNode,MeasureLayout:e.MeasureLayout}};exports.layout=o;
2
2
  //# sourceMappingURL=layout.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/layout.mjs"],"sourcesContent":["import { HTMLProjectionNode } from '../../projection/node/HTMLProjectionNode.mjs';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\n\nconst layout = {\n layout: {\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { layout };\n"],"names":["layout","ProjectionNode","HTMLProjectionNode","MeasureLayout"],"mappings":"gLAGA,MAAMA,EAAS,CACXA,OAAQ,CACJC,eAAgBC,EAAkBA,mBAClCC,cAAAA,EAAAA"}
1
+ {"version":3,"file":"layout.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/layout.mjs"],"sourcesContent":["import { HTMLProjectionNode } from 'motion-dom';\nimport { MeasureLayout } from './layout/MeasureLayout.mjs';\n\nconst layout = {\n layout: {\n ProjectionNode: HTMLProjectionNode,\n MeasureLayout,\n },\n};\n\nexport { layout };\n//# sourceMappingURL=layout.mjs.map\n"],"names":["layout","ProjectionNode","HTMLProjectionNode","MeasureLayout"],"mappings":"mHAIO,MAAMA,EAA0B,CACnCA,OAAQ,CACJC,sGAAkCC,mBAClCC,cAAAA,EAAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./definitions.mjs.js");exports.loadFeatures=function(i){for(const t in i)e.featureDefinitions[t]={...e.featureDefinitions[t],...i[t]}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./definitions.mjs.js"),i=require("../../../../../motion-dom/dist/es/render/VisualElement.mjs.js");exports.loadFeatures=function(t){const s=e.getInitializedFeatureDefinitions();for(const e in t)s[e]={...s[e],...t[e]};i.setFeatureDefinitions(s)};
2
2
  //# sourceMappingURL=load-features.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"load-features.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/load-features.mjs"],"sourcesContent":["import { featureDefinitions } from './definitions.mjs';\n\nfunction loadFeatures(features) {\n for (const key in features) {\n featureDefinitions[key] = {\n ...featureDefinitions[key],\n ...features[key],\n };\n }\n}\n\nexport { loadFeatures };\n"],"names":["features","key","featureDefinitions"],"mappings":"+HAEA,SAAsBA,GAClB,IAAK,MAAMC,KAAOD,EACdE,EAAkBA,mBAACD,GAAO,IACnBC,EAAAA,mBAAmBD,MACnBD,EAASC,GAGxB"}
1
+ {"version":3,"file":"load-features.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/features/load-features.mjs"],"sourcesContent":["import { setFeatureDefinitions } from 'motion-dom';\nimport { getInitializedFeatureDefinitions } from './definitions.mjs';\n\nfunction loadFeatures(features) {\n const featureDefinitions = getInitializedFeatureDefinitions();\n for (const key in features) {\n featureDefinitions[key] = {\n ...featureDefinitions[key],\n ...features[key],\n };\n }\n setFeatureDefinitions(featureDefinitions);\n}\n\nexport { loadFeatures };\n//# sourceMappingURL=load-features.mjs.map\n"],"names":["features","featureDefinitions","getInitializedFeatureDefinitions","key","setFeatureDefinitions"],"mappings":"0MAIM,SAAuBA,GACzB,MAAMC,EAAqBC,EAAAA,mCAE3B,IAAK,MAAMC,KAAOH,EACdC,EAAmBE,GAA0C,IACtDF,EAAmBE,MACnBH,EAASG,IAIpBC,EAAqBA,sBAACH,EAC1B"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../Feature.mjs.js"),t=require("./observers.mjs.js");const r={some:0,all:1};class s extends e.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:s,margin:n,amount:o="some",once:i}=e,u={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:r[o]};return t.observeIntersection(this.node.current,u,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:s}=this.node.getProps(),n=t?r:s;n&&n(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:r={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==r[e]}(e,t));r&&this.startObserver()}unmount(){}}exports.InViewFeature=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./observers.mjs.js"),t=require("../../../../../../motion-dom/dist/es/render/Feature.mjs.js");const r={some:0,all:1};class s extends t.Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:s,margin:i,amount:o="some",once:n}=t,a={root:s?s.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:r[o]};this.stopObserver=e.observeIntersection(this.node.current,a,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,n&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:s}=this.node.getProps(),i=t?r:s;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:r={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==r[e]}(e,t));r&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}exports.InViewFeature=s;
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs"],"sourcesContent":["import { Feature } from '../Feature.mjs';\nimport { observeIntersection } from './observers.mjs';\n\nconst thresholdNames = {\n some: 0,\n all: 1,\n};\nclass InViewFeature extends Feature {\n constructor() {\n super(...arguments);\n this.hasEnteredView = false;\n this.isInView = false;\n }\n startObserver() {\n this.unmount();\n const { viewport = {} } = this.node.getProps();\n const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n const options = {\n root: root ? root.current : undefined,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholdNames[amount],\n };\n const onIntersectionUpdate = (entry) => {\n const { isIntersecting } = entry;\n /**\n * If there's been no change in the viewport state, early return.\n */\n if (this.isInView === isIntersecting)\n return;\n this.isInView = isIntersecting;\n /**\n * Handle hasEnteredView. If this is only meant to run once, and\n * element isn't visible, early return. Otherwise set hasEnteredView to true.\n */\n if (once && !isIntersecting && this.hasEnteredView) {\n return;\n }\n else if (isIntersecting) {\n this.hasEnteredView = true;\n }\n if (this.node.animationState) {\n this.node.animationState.setActive(\"whileInView\", isIntersecting);\n }\n /**\n * Use the latest committed props rather than the ones in scope\n * when this observer is created\n */\n const { onViewportEnter, onViewportLeave } = this.node.getProps();\n const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n callback && callback(entry);\n };\n return observeIntersection(this.node.current, options, onIntersectionUpdate);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver === \"undefined\")\n return;\n const { props, prevProps } = this.node;\n const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n if (hasOptionsChanged) {\n this.startObserver();\n }\n }\n unmount() { }\n}\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n return (name) => viewport[name] !== prevViewport[name];\n}\n\nexport { InViewFeature };\n"],"names":["thresholdNames","some","all","InViewFeature","Feature","constructor","super","arguments","this","hasEnteredView","isInView","startObserver","unmount","viewport","node","getProps","root","margin","rootMargin","amount","once","options","current","undefined","threshold","observeIntersection","entry","isIntersecting","animationState","setActive","onViewportEnter","onViewportLeave","callback","mount","update","IntersectionObserver","props","prevProps","hasOptionsChanged","_ref","prevViewport","length","name","hasViewportOptionChanged"],"mappings":"uIAGA,MAAMA,EAAiB,CACnBC,KAAM,EACNC,IAAK,GAET,MAAMC,UAAsBC,EAAAA,QACxBC,WAAAA,GACIC,SAASC,WACTC,KAAKC,gBAAiB,EACtBD,KAAKE,UAAW,CACpB,CACAC,aAAAA,GACIH,KAAKI,UACL,MAAMC,SAAEA,EAAW,CAAC,GAAML,KAAKM,KAAKC,YAC9BC,KAAEA,EAAMC,OAAQC,EAAUC,OAAEA,EAAS,OAAMC,KAAEA,GAASP,EACtDQ,EAAU,CACZL,KAAMA,EAAOA,EAAKM,aAAUC,EAC5BL,aACAM,UAA6B,iBAAXL,EAAsBA,EAASnB,EAAemB,IA+BpE,OAAOM,EAAAA,oBAAoBjB,KAAKM,KAAKQ,QAASD,GA7BhBK,IAC1B,MAAMC,eAAEA,GAAmBD,EAI3B,GAAIlB,KAAKE,WAAaiB,EAClB,OAMJ,GALAnB,KAAKE,SAAWiB,EAKZP,IAASO,GAAkBnB,KAAKC,eAChC,OAEKkB,IACLnB,KAAKC,gBAAiB,GAEtBD,KAAKM,KAAKc,gBACVpB,KAAKM,KAAKc,eAAeC,UAAU,cAAeF,GAMtD,MAAMG,gBAAEA,EAAeC,gBAAEA,GAAoBvB,KAAKM,KAAKC,WACjDiB,EAAWL,EAAiBG,EAAkBC,EACpDC,GAAYA,EAASN,EAAM,GAGnC,CACAO,KAAAA,GACIzB,KAAKG,eACT,CACAuB,MAAAA,GACI,GAAoC,oBAAzBC,qBACP,OACJ,MAAMC,MAAEA,EAAKC,UAAEA,GAAc7B,KAAKM,KAC5BwB,EAAoB,CAAC,SAAU,SAAU,QAAQrC,KAO/D,SAAiCsC,GAA0D,IAAzD1B,SAAEA,EAAW,CAAC,GAAG0B,GAAI1B,SAAU2B,EAAe,CAAC,GAAGjC,UAAAkC,OAAAlC,QAAAgB,IAAAhB,UAAAgB,GAAAhB,UAAG,GAAA,GACnF,OAAQmC,GAAS7B,EAAS6B,KAAUF,EAAaE,EACrD,CAToEC,CAAyBP,EAAOC,IACxFC,GACA9B,KAAKG,eAEb,CACAC,OAAAA,GAAY"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs"],"sourcesContent":["import { Feature } from 'motion-dom';\nimport { observeIntersection } from './observers.mjs';\n\nconst thresholdNames = {\n some: 0,\n all: 1,\n};\nclass InViewFeature extends Feature {\n constructor() {\n super(...arguments);\n this.hasEnteredView = false;\n this.isInView = false;\n }\n startObserver() {\n this.stopObserver?.();\n const { viewport = {} } = this.node.getProps();\n const { root, margin: rootMargin, amount = \"some\", once } = viewport;\n const options = {\n root: root ? root.current : undefined,\n rootMargin,\n threshold: typeof amount === \"number\" ? amount : thresholdNames[amount],\n };\n const onIntersectionUpdate = (entry) => {\n const { isIntersecting } = entry;\n /**\n * If there's been no change in the viewport state, early return.\n */\n if (this.isInView === isIntersecting)\n return;\n this.isInView = isIntersecting;\n /**\n * Handle hasEnteredView. If this is only meant to run once, and\n * element isn't visible, early return. Otherwise set hasEnteredView to true.\n */\n if (once && !isIntersecting && this.hasEnteredView) {\n return;\n }\n else if (isIntersecting) {\n this.hasEnteredView = true;\n }\n if (this.node.animationState) {\n this.node.animationState.setActive(\"whileInView\", isIntersecting);\n }\n /**\n * Use the latest committed props rather than the ones in scope\n * when this observer is created\n */\n const { onViewportEnter, onViewportLeave } = this.node.getProps();\n const callback = isIntersecting ? onViewportEnter : onViewportLeave;\n callback && callback(entry);\n };\n this.stopObserver = observeIntersection(this.node.current, options, onIntersectionUpdate);\n }\n mount() {\n this.startObserver();\n }\n update() {\n if (typeof IntersectionObserver === \"undefined\")\n return;\n const { props, prevProps } = this.node;\n const hasOptionsChanged = [\"amount\", \"margin\", \"root\"].some(hasViewportOptionChanged(props, prevProps));\n if (hasOptionsChanged) {\n this.startObserver();\n }\n }\n unmount() {\n this.stopObserver?.();\n this.hasEnteredView = false;\n this.isInView = false;\n }\n}\nfunction hasViewportOptionChanged({ viewport = {} }, { viewport: prevViewport = {} } = {}) {\n return (name) => viewport[name] !== prevViewport[name];\n}\n\nexport { InViewFeature };\n//# sourceMappingURL=index.mjs.map\n"],"names":["thresholdNames","some","all","InViewFeature","Feature","constructor","this","hasEnteredView","isInView","startObserver","stopObserver","viewport","node","getProps","root","margin","rootMargin","amount","once","options","current","undefined","threshold","observeIntersection","entry","isIntersecting","animationState","setActive","onViewportEnter","onViewportLeave","callback","mount","update","IntersectionObserver","props","prevProps","hasOptionsChanged","_ref","prevViewport","arguments","length","name","hasViewportOptionChanged","unmount"],"mappings":"gLAIA,MAAMA,EAAiB,CACnBC,KAAM,EACNC,IAAK,GAGH,MAAOC,UAAsBC,EAAAA,QAAnCC,WAAAA,uBACYC,KAAAC,gBAAiB,EAEjBD,KAAAE,UAAW,CAkFvB,CA9EYC,aAAAA,GACJH,KAAKI,iBAEL,MAAMC,SAAEA,EAAW,CAAA,GAAOL,KAAKM,KAAKC,YAC9BC,KAAEA,EAAMC,OAAQC,EAAUC,OAAEA,EAAS,OAAMC,KAAEA,GAASP,EAEtDQ,EAAU,CACZL,KAAMA,EAAOA,EAAKM,aAAUC,EAC5BL,aACAM,UACsB,iBAAXL,EAAsBA,EAASjB,EAAeiB,IAuC7DX,KAAKI,aAAea,EAAAA,oBAChBjB,KAAKM,KAAKQ,QACVD,GAtC0BK,IAC1B,MAAMC,eAAEA,GAAmBD,EAK3B,GAAIlB,KAAKE,WAAaiB,EAAgB,OAQtC,GANAnB,KAAKE,SAAWiB,EAMZP,IAASO,GAAkBnB,KAAKC,eAChC,OACOkB,IACPnB,KAAKC,gBAAiB,GAGtBD,KAAKM,KAAKc,gBACVpB,KAAKM,KAAKc,eAAeC,UACrB,cACAF,GAQR,MAAMG,gBAAEA,EAAeC,gBAAEA,GAAoBvB,KAAKM,KAAKC,WACjDiB,EAAWL,EAAiBG,EAAkBC,EACpDC,GAAYA,EAASN,EAAM,GAQnC,CAEAO,KAAAA,GACIzB,KAAKG,eACT,CAEAuB,MAAAA,GACI,GAAoC,oBAAzBC,qBAAsC,OAEjD,MAAMC,MAAEA,EAAKC,UAAEA,GAAc7B,KAAKM,KAC5BwB,EAAoB,CAAC,SAAU,SAAU,QAAQnC,KAgB/D,SAAiCoC,GAEoB,IADjD1B,SAAEA,EAAW,CAAA,GAAiB0B,GAC5B1B,SAAU2B,EAAe,CAAA,GAAEC,UAAAC,OAAAD,QAAAlB,IAAAkB,aAAAA,UAAA,GAAkB,GAE/C,OAAQE,GACJ9B,EAAS8B,KAAUH,EAAaG,EACxC,CArBYC,CAAyBR,EAAOC,IAGhCC,GACA9B,KAAKG,eAEb,CAEAkC,OAAAA,GACIrC,KAAKI,iBACLJ,KAAKC,gBAAiB,EACtBD,KAAKE,UAAW,CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"observers.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs"],"sourcesContent":["/**\n * Map an IntersectionHandler callback to an element. We only ever make one handler for one\n * element, so even though these handlers might all be triggered by different\n * observers, we can keep them in the same map.\n */\nconst observerCallbacks = new WeakMap();\n/**\n * Multiple observers can be created for multiple element/document roots. Each with\n * different settings. So here we store dictionaries of observers to each root,\n * using serialised settings (threshold/margin) as lookup keys.\n */\nconst observers = new WeakMap();\nconst fireObserverCallback = (entry) => {\n const callback = observerCallbacks.get(entry.target);\n callback && callback(entry);\n};\nconst fireAllObserverCallbacks = (entries) => {\n entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n const lookupRoot = root || document;\n /**\n * If we don't have an observer lookup map for this root, create one.\n */\n if (!observers.has(lookupRoot)) {\n observers.set(lookupRoot, {});\n }\n const rootObservers = observers.get(lookupRoot);\n const key = JSON.stringify(options);\n /**\n * If we don't have an observer for this combination of root and settings,\n * create one.\n */\n if (!rootObservers[key]) {\n rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n }\n return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n const rootInteresectionObserver = initIntersectionObserver(options);\n observerCallbacks.set(element, callback);\n rootInteresectionObserver.observe(element);\n return () => {\n observerCallbacks.delete(element);\n rootInteresectionObserver.unobserve(element);\n };\n}\n\nexport { observeIntersection };\n"],"names":["observerCallbacks","WeakMap","observers","fireObserverCallback","entry","callback","get","target","fireAllObserverCallbacks","entries","forEach","element","options","rootInteresectionObserver","_ref","root","lookupRoot","document","has","set","rootObservers","key","JSON","stringify","IntersectionObserver","initIntersectionObserver","observe","delete","unobserve"],"mappings":"oEAKA,MAAMA,EAAoB,IAAIC,QAMxBC,EAAY,IAAID,QAChBE,EAAwBC,IAC1B,MAAMC,EAAWL,EAAkBM,IAAIF,EAAMG,QAC7CF,GAAYA,EAASD,EAAM,EAEzBI,EAA4BC,IAC9BA,EAAQC,QAAQP,EAAqB,8BAqBzC,SAA6BQ,EAASC,EAASP,GAC3C,MAAMQ,EApBV,SAAiCC,GAAuB,IAAtBC,KAAEA,KAASH,GAASE,EAClD,MAAME,EAAaD,GAAQE,SAItBf,EAAUgB,IAAIF,IACfd,EAAUiB,IAAIH,EAAY,CAAA,GAE9B,MAAMI,EAAgBlB,EAAUI,IAAIU,GAC9BK,EAAMC,KAAKC,UAAUX,GAQ3B,OAHKQ,EAAcC,KACfD,EAAcC,GAAO,IAAIG,qBAAqBhB,EAA0B,CAAEO,UAASH,KAEhFQ,EAAcC,EACzB,CAEsCI,CAAyBb,GAG3D,OAFAZ,EAAkBmB,IAAIR,EAASN,GAC/BQ,EAA0Ba,QAAQf,GAC3B,KACHX,EAAkB2B,OAAOhB,GACzBE,EAA0Be,UAAUjB,EAAQ,CAEpD"}
1
+ {"version":3,"file":"observers.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs"],"sourcesContent":["/**\n * Map an IntersectionHandler callback to an element. We only ever make one handler for one\n * element, so even though these handlers might all be triggered by different\n * observers, we can keep them in the same map.\n */\nconst observerCallbacks = new WeakMap();\n/**\n * Multiple observers can be created for multiple element/document roots. Each with\n * different settings. So here we store dictionaries of observers to each root,\n * using serialised settings (threshold/margin) as lookup keys.\n */\nconst observers = new WeakMap();\nconst fireObserverCallback = (entry) => {\n const callback = observerCallbacks.get(entry.target);\n callback && callback(entry);\n};\nconst fireAllObserverCallbacks = (entries) => {\n entries.forEach(fireObserverCallback);\n};\nfunction initIntersectionObserver({ root, ...options }) {\n const lookupRoot = root || document;\n /**\n * If we don't have an observer lookup map for this root, create one.\n */\n if (!observers.has(lookupRoot)) {\n observers.set(lookupRoot, {});\n }\n const rootObservers = observers.get(lookupRoot);\n const key = JSON.stringify(options);\n /**\n * If we don't have an observer for this combination of root and settings,\n * create one.\n */\n if (!rootObservers[key]) {\n rootObservers[key] = new IntersectionObserver(fireAllObserverCallbacks, { root, ...options });\n }\n return rootObservers[key];\n}\nfunction observeIntersection(element, options, callback) {\n const rootInteresectionObserver = initIntersectionObserver(options);\n observerCallbacks.set(element, callback);\n rootInteresectionObserver.observe(element);\n return () => {\n observerCallbacks.delete(element);\n rootInteresectionObserver.unobserve(element);\n };\n}\n\nexport { observeIntersection };\n//# sourceMappingURL=observers.mjs.map\n"],"names":["observerCallbacks","WeakMap","observers","fireObserverCallback","entry","callback","get","target","fireAllObserverCallbacks","entries","forEach","observeIntersection","element","options","rootInteresectionObserver","_ref","root","lookupRoot","document","has","set","rootObservers","key","JSON","stringify","IntersectionObserver","initIntersectionObserver","observe","delete","unobserve"],"mappings":"oEAWA,MAAMA,EAAoB,IAAIC,QAOxBC,EAAY,IAAID,QAKhBE,EAAwBC,IAC1B,MAAMC,EAAWL,EAAkBM,IAAIF,EAAMG,QAC7CF,GAAYA,EAASD,EAAM,EAGzBI,EAA0DC,IAC5DA,EAAQC,QAAQP,EAAqB,8BAiCzBQ,SACZC,EACAC,EACAR,GAEA,MAAMS,EAnCV,SAAiCC,GAGN,IAHOC,KAC9BA,KACGH,GACoBE,EACvB,MAAME,EAAaD,GAAQE,SAKtBhB,EAAUiB,IAAIF,IACff,EAAUkB,IAAIH,EAAY,CAAA,GAE9B,MAAMI,EAAgBnB,EAAUI,IAAIW,GAE9BK,EAAMC,KAAKC,UAAUX,GAa3B,OAPKQ,EAAcC,KACfD,EAAcC,GAAO,IAAIG,qBACrBjB,EACA,CAAEQ,UAASH,KAIZQ,EAAcC,EACzB,CAOsCI,CAAyBb,GAK3D,OAHAb,EAAkBoB,IAAIR,EAASP,GAC/BS,EAA0Ba,QAAQf,GAE3B,KACHZ,EAAkB4B,OAAOhB,GACzBE,EAA0Be,UAAUjB,EAAQ,CAEpD"}
@@ -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"),r=require("../context/MotionContext/index.mjs.js"),s=require("../context/MotionContext/create.mjs.js"),i=require("../utils/is-browser.mjs.js"),u=require("./features/definitions.mjs.js"),a=require("./features/load-features.mjs.js"),l=require("./utils/symbol.mjs.js"),m=require("./utils/use-motion-ref.mjs.js"),c=require("./utils/use-visual-element.mjs.js"),j=require("../../../../../_virtual/jsx-runtime.js"),d=require("../../../../motion-utils/dist/es/errors.mjs.js");function x(o){let{layoutId:n}=o;const r=e.useContext(t.LayoutGroupContext).id;return r&&void 0!==n?r+"-"+n:n}exports.createRendererMotionComponent=function(t){let{preloadedFeatures:f,createVisualElement:p,useRender:C,useVisualState:v,Component:y}=t;function q(t,a){let l;const q={...e.useContext(n.MotionConfigContext),...t,layoutId:x(t)},{isStatic:M}=q,E=s.useCreateMotionContext(t),L=v(t,M);if(!M&&i.isBrowser){!function(t,n){const r=e.useContext(o.LazyContext).strict;if("production"!==process.env.NODE_ENV&&n&&r){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?d.warning(!1,e):d.invariant(!1,e)}}(q,f);const t=function(e){const{drag:t,layout:o}=u.featureDefinitions;if(!t&&!o)return{};const n={...t,...o};return{MeasureLayout:t?.isEnabled(e)||o?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(q);l=t.MeasureLayout,E.visualElement=c.useVisualElement(y,L,q,p,t.ProjectionNode)}return j.exports.jsxs(r.MotionContext.Provider,{value:E,children:[l&&E.visualElement?j.exports.jsx(l,{visualElement:E.visualElement,...q}):null,C(y,t,m.useMotionRef(L,E.visualElement,a),L,M,E.visualElement)]})}f&&a.loadFeatures(f),q.displayName=`motion.${"string"==typeof y?y:`create(${y.displayName??y.name??""})`}`;const M=e.forwardRef(q);return M[l.motionComponentSymbol]=y,M};
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"),v=require("../../../../../_virtual/jsx-runtime.js"),f=require("../../../../motion-utils/dist/es/errors.mjs.js");function p(o){let{layoutId:n}=o;const s=e.useContext(t.LayoutGroupContext).id;return s&&void 0!==n?s+"-"+n:n}exports.createMotionComponent=function(t){let{forwardMotionProps:y=!1,type:C}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},q=arguments.length>2?arguments[2]:void 0,g=arguments.length>3?arguments[3]:void 0;q&&d.loadFeatures(q);const M=C?"svg"===C:u.isSVGComponent(t),h=M?l.useSVGVisualState:a.useHTMLVisualState;function E(u,a){let l;const d={...e.useContext(n.MotionConfigContext),...u,layoutId:p(u)},{isStatic:c}=d,C=r.useCreateMotionContext(u),E=h(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?f.warning(!1,e,"lazy-strict-mode"):f.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,E,d,g,n.ProjectionNode,M)}return v.exports.jsxs(s.MotionContext.Provider,{value:C,children:[l&&C.visualElement?v.exports.jsx(l,{visualElement:C.visualElement,...d}):null,i.useRender(t,u,j.useMotionRef(E,C.visualElement,a),E,c,y,M)]})}E.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;const L=e.forwardRef(E);return L[c.motionComponentSymbol]=t,L};
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 { isBrowser } from '../utils/is-browser.mjs';\nimport { featureDefinitions } 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 createRendererMotionComponent({ preloadedFeatures, createVisualElement, useRender, useVisualState, Component, }) {\n preloadedFeatures && loadFeatures(preloadedFeatures);\n function MotionComponent(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 && isBrowser) {\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);\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, context.visualElement)] }));\n }\n MotionComponent.displayName = `motion.${typeof Component === \"string\"\n ? Component\n : `create(${Component.displayName ?? Component.name ?? \"\"})`}`;\n const ForwardRefMotionComponent = forwardRef(MotionComponent);\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)\n : invariant(false, strictMessage);\n }\n}\nfunction getProjectionFunctionality(props) {\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 { createRendererMotionComponent };\n"],"names":["useLayoutId","_ref2","layoutId","layoutGroupId","useContext","LayoutGroupContext","id","undefined","_ref","preloadedFeatures","createVisualElement","useRender","useVisualState","Component","MotionComponent","props","externalRef","MeasureLayout","configAndProps","MotionConfigContext","isStatic","context","useCreateMotionContext","visualState","isBrowser","isStrict","LazyContext","strict","process","env","NODE_ENV","strictMessage","ignoreStrict","warning","invariant","useStrictMode","layoutProjection","drag","layout","featureDefinitions","combined","isEnabled","ProjectionNode","getProjectionFunctionality","visualElement","useVisualElement","jsxs","exports","MotionContext","Provider","value","children","jsx","useMotionRef","loadFeatures","displayName","name","ForwardRefMotionComponent","forwardRef","motionComponentSymbol"],"mappings":"2uBAkEA,SAASA,EAAWC,GAAe,IAAdC,SAAEA,GAAUD,EAC7B,MAAME,EAAgBC,EAAAA,WAAWC,EAAkBA,oBAAEC,GACrD,OAAOH,QAA8BI,IAAbL,EAClBC,EAAgB,IAAMD,EACtBA,CACV,uCA9CA,SAAsCM,GAAoF,IAAnFC,kBAAEA,EAAiBC,oBAAEA,EAAmBC,UAAEA,EAASC,eAAEA,EAAcC,UAAEA,GAAYL,EAEpH,SAASM,EAAgBC,EAAOC,GAK5B,IAAIC,EACJ,MAAMC,EAAiB,IAChBd,EAAAA,WAAWe,EAAAA,wBACXJ,EACHb,SAAUF,EAAYe,KAEpBK,SAAEA,GAAaF,EACfG,EAAUC,yBAAuBP,GACjCQ,EAAcX,EAAeG,EAAOK,GAC1C,IAAKA,GAAYI,YAAW,EA+BpC,SAAuBN,EAAgBT,GACnC,MAAMgB,EAAWrB,EAAAA,WAAWsB,EAAWA,aAAEC,OAKzC,GAA6B,eAAzBC,QAAQC,IAAIC,UACZrB,GACAgB,EAAU,CACV,MAAMM,EAAgB,mJACtBb,EAAec,aACTC,EAAAA,SAAQ,EAAOF,GACfG,EAASA,WAAC,EAAOH,EAC3B,CACJ,CA5CYI,CAAcjB,EAAgBT,GAC9B,MAAM2B,EA4ClB,SAAoCrB,GAChC,MAAMsB,KAAEA,EAAIC,OAAEA,GAAWC,qBACzB,IAAKF,IAASC,EACV,MAAO,CAAA,EACX,MAAME,EAAW,IAAKH,KAASC,GAC/B,MAAO,CACHrB,cAAeoB,GAAMI,UAAU1B,IAAUuB,GAAQG,UAAU1B,GACrDyB,EAASvB,mBACTV,EACNmC,eAAgBF,EAASE,eAEjC,CAvDqCC,CAA2BzB,GACpDD,EAAgBmB,EAAiBnB,cAOjCI,EAAQuB,cAAgBC,EAAgBA,iBAAChC,EAAWU,EAAaL,EAAgBR,EAAqB0B,EAAiBM,eAC3H,CAKA,OAAQI,EAAIC,QAAAD,KAACE,EAAaA,cAACC,SAAU,CAAEC,MAAO7B,EAAS8B,SAAU,CAAClC,GAAiBI,EAAQuB,cAAiBQ,EAAAA,QAAAA,IAAInC,EAAe,CAAE2B,cAAevB,EAAQuB,iBAAkB1B,IAAqB,KAAMP,EAAUE,EAAWE,EAAOsC,EAAYA,aAAC9B,EAAaF,EAAQuB,cAAe5B,GAAcO,EAAaH,EAAUC,EAAQuB,iBACnU,CAhCAnC,GAAqB6C,EAAAA,aAAa7C,GAiClCK,EAAgByC,YAAc,UAA+B,iBAAd1C,EACzCA,EACA,UAAUA,EAAU0C,aAAe1C,EAAU2C,MAAQ,QAC3D,MAAMC,EAA4BC,aAAW5C,GAE7C,OADA2C,EAA0BE,EAAAA,uBAAyB9C,EAC5C4C,CACX"}
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","_ref","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,EAAAC,GAAA,IAAAC,SAAAA,GAAAD,gDAEI,OAAAE,QAAAC,IAAAF,EACIC,EAAAD,IAAAA,GAER,2NAnGIG,GAAAC,EAAAA,aAAAD,GAOA,MAAAE,EAAAC,EAAAC,QAAAD,EAAAC,EAAAA,eAAAC,gDAGA,SAAAC,EAAAC,EAAAC,GAQI,IAAAC,EAEA,MAAAC,EAAA,2CAEIH,EACAV,SAAAF,EAAAY,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 +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"],"names":["motionComponentSymbol","Symbol","for"],"mappings":"oEAAA,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 = Symbol.for(\"motionComponentSymbol\");\n\nexport { motionComponentSymbol };\n//# sourceMappingURL=symbol.mjs.map\n"],"names":["motionComponentSymbol","Symbol","for"],"mappings":"oEAAO,MAAMA,EAAwBC,OAAOC,IAAI"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../utils/is-ref-object.mjs.js");exports.useMotionRef=function(u,o,r){return e.useCallback((e=>{e&&u.onMount&&u.onMount(e),o&&(e?o.mount(e):o.unmount()),r&&("function"==typeof r?r(e):t.isRefObject(r)&&(r.current=e))}),[o])};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useMotionRef=function(t,n,r){const u=e.useRef(r);e.useInsertionEffect((()=>{u.current=r}));const o=e.useRef(null);return e.useCallback((e=>{e&&t.onMount?.(e),n&&(e?n.mount(e):n.unmount());const r=u.current;if("function"==typeof r)if(e){const t=r(e);"function"==typeof t&&(o.current=t)}else o.current?(o.current(),o.current=null):r(e);else r&&(r.current=e)}),[n])};
2
2
  //# sourceMappingURL=use-motion-ref.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-motion-ref.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs"],"sourcesContent":["import { useCallback } from 'react';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\n\n/**\n * Creates a ref function that, when called, hydrates the provided\n * external ref and VisualElement.\n */\nfunction useMotionRef(visualState, visualElement, externalRef) {\n return useCallback((instance) => {\n if (instance) {\n visualState.onMount && visualState.onMount(instance);\n }\n if (visualElement) {\n if (instance) {\n visualElement.mount(instance);\n }\n else {\n visualElement.unmount();\n }\n }\n if (externalRef) {\n if (typeof externalRef === \"function\") {\n externalRef(instance);\n }\n else if (isRefObject(externalRef)) {\n externalRef.current = instance;\n }\n }\n }, \n /**\n * Only pass a new ref callback to React if we've received a visual element\n * factory. Otherwise we'll be mounting/remounting every time externalRef\n * or other dependencies change.\n */\n [visualElement]);\n}\n\nexport { useMotionRef };\n"],"names":["visualState","visualElement","externalRef","useCallback","instance","onMount","mount","unmount","isRefObject","current"],"mappings":"8JAOA,SAAsBA,EAAaC,EAAeC,GAC9C,OAAOC,EAAAA,aAAaC,IACZA,GACAJ,EAAYK,SAAWL,EAAYK,QAAQD,GAE3CH,IACIG,EACAH,EAAcK,MAAMF,GAGpBH,EAAcM,WAGlBL,IAC2B,mBAAhBA,EACPA,EAAYE,GAEPI,EAAAA,YAAYN,KACjBA,EAAYO,QAAUL,GAE9B,GAOJ,CAACH,GACL"}
1
+ {"version":3,"file":"use-motion-ref.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs"],"sourcesContent":["\"use client\";\nimport { useRef, useInsertionEffect, useCallback } from 'react';\n\n/**\n * Creates a ref function that, when called, hydrates the provided\n * external ref and VisualElement.\n */\nfunction useMotionRef(visualState, visualElement, externalRef) {\n /**\n * Store externalRef in a ref to avoid including it in the useCallback\n * dependency array. Including externalRef in dependencies causes issues\n * with libraries like Radix UI that create new callback refs on each render\n * when using asChild - this would cause the callback to be recreated,\n * triggering element remounts and breaking AnimatePresence exit animations.\n */\n const externalRefContainer = useRef(externalRef);\n useInsertionEffect(() => {\n externalRefContainer.current = externalRef;\n });\n // Store cleanup function returned by callback refs (React 19 feature)\n const refCleanup = useRef(null);\n return useCallback((instance) => {\n if (instance) {\n visualState.onMount?.(instance);\n }\n if (visualElement) {\n instance ? visualElement.mount(instance) : visualElement.unmount();\n }\n const ref = externalRefContainer.current;\n if (typeof ref === \"function\") {\n if (instance) {\n const cleanup = ref(instance);\n if (typeof cleanup === \"function\") {\n refCleanup.current = cleanup;\n }\n }\n else if (refCleanup.current) {\n refCleanup.current();\n refCleanup.current = null;\n }\n else {\n ref(instance);\n }\n }\n else if (ref) {\n ref.current = instance;\n }\n }, [visualElement]);\n}\n\nexport { useMotionRef };\n//# sourceMappingURL=use-motion-ref.mjs.map\n"],"names":["externalRefContainer","useRef","externalRef","current","refCleanup","useCallback","instance","visualState","onMount","visualElement","mount","unmount","ref","cleanup"],"mappings":"gIAuBI,MAAAA,EAAAC,SAAAC,8BAEIF,EAAAG,QAAAD,CAAA,IAIJ,MAAAE,EAAAH,SAAA,MAEA,OAAAI,EAAAA,aAAAC,OAGYC,EAAAC,UAAAF,OAIAA,EAAAG,EAAAC,MAAAJ,GAAAG,EAAAE,WAGJ,MAAAC,EAAAZ,EAAAG,QACA,GAAA,mBAAAS,QAEQ,MAAAC,EAAAD,EAAAN,GACA,mBAAAO,IACIT,EAAAD,QAAAU,QAEDT,EAAAD,qBAEHC,EAAAD,QAAA,oBAKFS,EAAAT,QAAAG,KAEV,CAAAG,GAGR"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("../../animation/optimized-appear/data-id.mjs.js"),o=require("../../context/LazyContext.mjs.js"),n=require("../../context/MotionConfigContext.mjs.js"),i=require("../../context/MotionContext/index.mjs.js"),r=require("../../context/PresenceContext.mjs.js"),a=require("../../context/SwitchLayoutGroupContext.mjs.js"),s=require("../../utils/is-ref-object.mjs.js"),u=require("../../utils/use-isomorphic-effect.mjs.js"),c=require("../../../../../motion-dom/dist/es/frameloop/microtask.mjs.js");function l(t){if(t)return!1!==t.options.allowProjection?t.projection:l(t.parent)}exports.useVisualElement=function(m,p,d,f,j){const{visualElement:C}=t.useContext(i.MotionContext),x=t.useContext(o.LazyContext),y=t.useContext(r.PresenceContext),M=t.useContext(n.MotionConfigContext).reducedMotion,w=t.useRef(null);f=f||x.renderer,!w.current&&f&&(w.current=f(m,{visualState:p,parent:C,props:d,presenceContext:y,blockInitialAnimation:!!y&&!1===y.initial,reducedMotionConfig:M}));const q=w.current,g=t.useContext(a.SwitchLayoutGroupContext);!q||q.projection||!j||"html"!==q.type&&"svg"!==q.type||function(t,e,o,n){const{layoutId:i,layout:r,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:m,layoutCrossfade:p}=e;t.projection=new o(t.latestValues,e["data-framer-portal-id"]?void 0:l(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:Boolean(a)||u&&s.isRefObject(u),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:p,layoutScroll:c,layoutRoot:m})}(w.current,d,j,g);const S=t.useRef(!1);t.useInsertionEffect((()=>{q&&S.current&&q.update(d,y)}));const h=d[e.optimizedAppearDataAttribute],v=t.useRef(Boolean(h)&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return u.useIsomorphicLayoutEffect((()=>{q&&(S.current=!0,window.MotionIsMounted=!0,q.updateFeatures(),c.microtask.render(q.render),v.current&&q.animationState&&q.animationState.animateChanges())})),t.useEffect((()=>{q&&(!v.current&&q.animationState&&q.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{window.MotionHandoffMarkAsComplete?.(h)})),v.current=!1))})),q};
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};
2
2
  //# sourceMappingURL=use-visual-element.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-visual-element.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs"],"sourcesContent":["import { microtask } from 'motion-dom';\nimport { useContext, useRef, useInsertionEffect, useEffect } from 'react';\nimport { optimizedAppearDataAttribute } from '../../animation/optimized-appear/data-id.mjs';\nimport { LazyContext } from '../../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../context/SwitchLayoutGroupContext.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\n\nfunction useVisualElement(Component, visualState, props, createVisualElement, ProjectionNodeConstructor) {\n const { visualElement: parent } = useContext(MotionContext);\n const lazyContext = useContext(LazyContext);\n const presenceContext = useContext(PresenceContext);\n const reducedMotionConfig = useContext(MotionConfigContext).reducedMotion;\n const visualElementRef = useRef(null);\n /**\n * If we haven't preloaded a renderer, check to see if we have one lazy-loaded\n */\n createVisualElement = createVisualElement || lazyContext.renderer;\n if (!visualElementRef.current && createVisualElement) {\n visualElementRef.current = createVisualElement(Component, {\n visualState,\n parent,\n props,\n presenceContext,\n blockInitialAnimation: presenceContext\n ? presenceContext.initial === false\n : false,\n reducedMotionConfig,\n });\n }\n const visualElement = visualElementRef.current;\n /**\n * Load Motion gesture and animation features. These are rendered as renderless\n * components so each feature can optionally make use of React lifecycle methods.\n */\n const initialLayoutGroupConfig = useContext(SwitchLayoutGroupContext);\n if (visualElement &&\n !visualElement.projection &&\n ProjectionNodeConstructor &&\n (visualElement.type === \"html\" || visualElement.type === \"svg\")) {\n createProjectionNode(visualElementRef.current, props, ProjectionNodeConstructor, initialLayoutGroupConfig);\n }\n const isMounted = useRef(false);\n useInsertionEffect(() => {\n /**\n * Check the component has already mounted before calling\n * `update` unnecessarily. This ensures we skip the initial update.\n */\n if (visualElement && isMounted.current) {\n visualElement.update(props, presenceContext);\n }\n });\n /**\n * Cache this value as we want to know whether HandoffAppearAnimations\n * was present on initial render - it will be deleted after this.\n */\n const optimisedAppearId = props[optimizedAppearDataAttribute];\n const wantsHandoff = useRef(Boolean(optimisedAppearId) &&\n !window.MotionHandoffIsComplete?.(optimisedAppearId) &&\n window.MotionHasOptimisedAnimation?.(optimisedAppearId));\n useIsomorphicLayoutEffect(() => {\n if (!visualElement)\n return;\n isMounted.current = true;\n window.MotionIsMounted = true;\n visualElement.updateFeatures();\n microtask.render(visualElement.render);\n /**\n * Ideally this function would always run in a useEffect.\n *\n * However, if we have optimised appear animations to handoff from,\n * it needs to happen synchronously to ensure there's no flash of\n * incorrect styles in the event of a hydration error.\n *\n * So if we detect a situtation where optimised appear animations\n * are running, we use useLayoutEffect to trigger animations.\n */\n if (wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n });\n useEffect(() => {\n if (!visualElement)\n return;\n if (!wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n if (wantsHandoff.current) {\n // This ensures all future calls to animateChanges() in this component will run in useEffect\n queueMicrotask(() => {\n window.MotionHandoffMarkAsComplete?.(optimisedAppearId);\n });\n wantsHandoff.current = false;\n }\n });\n return visualElement;\n}\nfunction createProjectionNode(visualElement, props, ProjectionNodeConstructor, initialPromotionConfig) {\n const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, layoutCrossfade, } = props;\n visualElement.projection = new ProjectionNodeConstructor(visualElement.latestValues, props[\"data-framer-portal-id\"]\n ? undefined\n : getClosestProjectingNode(visualElement.parent));\n visualElement.projection.setOptions({\n layoutId,\n layout,\n alwaysMeasureLayout: Boolean(drag) || (dragConstraints && isRefObject(dragConstraints)),\n visualElement,\n /**\n * TODO: Update options in an effect. This could be tricky as it'll be too late\n * to update by the time layout animations run.\n * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,\n * ensuring it gets called if there's no potential layout animations.\n *\n */\n animationType: typeof layout === \"string\" ? layout : \"both\",\n initialPromotionConfig,\n crossfade: layoutCrossfade,\n layoutScroll,\n layoutRoot,\n });\n}\nfunction getClosestProjectingNode(visualElement) {\n if (!visualElement)\n return undefined;\n return visualElement.options.allowProjection !== false\n ? visualElement.projection\n : getClosestProjectingNode(visualElement.parent);\n}\n\nexport { useVisualElement };\n"],"names":["getClosestProjectingNode","visualElement","options","allowProjection","projection","parent","Component","visualState","props","createVisualElement","ProjectionNodeConstructor","useContext","MotionContext","lazyContext","LazyContext","presenceContext","PresenceContext","reducedMotionConfig","MotionConfigContext","reducedMotion","visualElementRef","useRef","renderer","current","blockInitialAnimation","initial","initialLayoutGroupConfig","SwitchLayoutGroupContext","type","initialPromotionConfig","layoutId","layout","drag","dragConstraints","layoutScroll","layoutRoot","layoutCrossfade","latestValues","undefined","setOptions","alwaysMeasureLayout","Boolean","isRefObject","animationType","crossfade","createProjectionNode","isMounted","useInsertionEffect","update","optimisedAppearId","optimizedAppearDataAttribute","wantsHandoff","window","MotionHandoffIsComplete","MotionHasOptimisedAnimation","useIsomorphicLayoutEffect","MotionIsMounted","updateFeatures","microtask","render","animationState","animateChanges","useEffect","queueMicrotask","MotionHandoffMarkAsComplete"],"mappings":"6kBA4HA,SAASA,EAAyBC,GAC9B,GAAKA,EAEL,OAAiD,IAA1CA,EAAcC,QAAQC,gBACvBF,EAAcG,WACdJ,EAAyBC,EAAcI,OACjD,0BAvHA,SAA0BC,EAAWC,EAAaC,EAAOC,EAAqBC,GAC1E,MAAQT,cAAeI,GAAWM,EAAAA,WAAWC,EAAAA,eACvCC,EAAcF,aAAWG,EAAAA,aACzBC,EAAkBJ,aAAWK,EAAAA,iBAC7BC,EAAsBN,EAAAA,WAAWO,EAAmBA,qBAAEC,cACtDC,EAAmBC,SAAO,MAIhCZ,EAAsBA,GAAuBI,EAAYS,UACpDF,EAAiBG,SAAWd,IAC7BW,EAAiBG,QAAUd,EAAoBH,EAAW,CACtDC,cACAF,SACAG,QACAO,kBACAS,wBAAuBT,IACW,IAA5BA,EAAgBU,QAEtBR,yBAGR,MAAMhB,EAAgBmB,EAAiBG,QAKjCG,EAA2Bf,aAAWgB,EAAAA,2BACxC1B,GACCA,EAAcG,aACfM,GACwB,SAAvBT,EAAc2B,MAA0C,QAAvB3B,EAAc2B,MA0DxD,SAA8B3B,EAAeO,EAAOE,EAA2BmB,GAC3E,MAAMC,SAAEA,EAAQC,OAAEA,EAAMC,KAAEA,EAAIC,gBAAEA,EAAeC,aAAEA,EAAYC,WAAEA,EAAUC,gBAAEA,GAAqB5B,EAChGP,EAAcG,WAAa,IAAIM,EAA0BT,EAAcoC,aAAc7B,EAAM,8BACrF8B,EACAtC,EAAyBC,EAAcI,SAC7CJ,EAAcG,WAAWmC,WAAW,CAChCT,WACAC,SACAS,oBAAqBC,QAAQT,IAAUC,GAAmBS,EAAAA,YAAYT,GACtEhC,gBAQA0C,cAAiC,iBAAXZ,EAAsBA,EAAS,OACrDF,yBACAe,UAAWR,EACXF,eACAC,cAER,CAhFQU,CAAqBzB,EAAiBG,QAASf,EAAOE,EAA2BgB,GAErF,MAAMoB,EAAYzB,UAAO,GACzB0B,EAAAA,oBAAmB,KAKX9C,GAAiB6C,EAAUvB,SAC3BtB,EAAc+C,OAAOxC,EAAOO,EAChC,IAMJ,MAAMkC,EAAoBzC,EAAM0C,EAAAA,8BAC1BC,EAAe9B,EAAMA,OAACoB,QAAQQ,KAC/BG,OAAOC,0BAA0BJ,IAClCG,OAAOE,8BAA8BL,IAoCzC,OAnCAM,EAAAA,2BAA0B,KACjBtD,IAEL6C,EAAUvB,SAAU,EACpB6B,OAAOI,iBAAkB,EACzBvD,EAAcwD,iBACdC,EAAAA,UAAUC,OAAO1D,EAAc0D,QAW3BR,EAAa5B,SAAWtB,EAAc2D,gBACtC3D,EAAc2D,eAAeC,iBACjC,IAEJC,EAAAA,WAAU,KACD7D,KAEAkD,EAAa5B,SAAWtB,EAAc2D,gBACvC3D,EAAc2D,eAAeC,iBAE7BV,EAAa5B,UAEbwC,gBAAe,KACXX,OAAOY,8BAA8Bf,EAAkB,IAE3DE,EAAa5B,SAAU,GAC3B,IAEGtB,CACX"}
1
+ {"version":3,"file":"use-visual-element.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs"],"sourcesContent":["\"use client\";\nimport { optimizedAppearDataAttribute } from 'motion-dom';\nimport { useContext, useRef, useInsertionEffect, useEffect } from 'react';\nimport { LazyContext } from '../../context/LazyContext.mjs';\nimport { MotionConfigContext } from '../../context/MotionConfigContext.mjs';\nimport { MotionContext } from '../../context/MotionContext/index.mjs';\nimport { PresenceContext } from '../../context/PresenceContext.mjs';\nimport { SwitchLayoutGroupContext } from '../../context/SwitchLayoutGroupContext.mjs';\nimport { isRefObject } from '../../utils/is-ref-object.mjs';\nimport { useIsomorphicLayoutEffect } from '../../utils/use-isomorphic-effect.mjs';\n\nfunction useVisualElement(Component, visualState, props, createVisualElement, ProjectionNodeConstructor, isSVG) {\n const { visualElement: parent } = useContext(MotionContext);\n const lazyContext = useContext(LazyContext);\n const presenceContext = useContext(PresenceContext);\n const motionConfig = useContext(MotionConfigContext);\n const reducedMotionConfig = motionConfig.reducedMotion;\n const skipAnimations = motionConfig.skipAnimations;\n const visualElementRef = useRef(null);\n /**\n * Track whether the component has been through React's commit phase.\n * Used to detect when LazyMotion features load after the component has mounted.\n */\n const hasMountedOnce = useRef(false);\n /**\n * If we haven't preloaded a renderer, check to see if we have one lazy-loaded\n */\n createVisualElement =\n createVisualElement ||\n lazyContext.renderer;\n if (!visualElementRef.current && createVisualElement) {\n visualElementRef.current = createVisualElement(Component, {\n visualState,\n parent,\n props,\n presenceContext,\n blockInitialAnimation: presenceContext\n ? presenceContext.initial === false\n : false,\n reducedMotionConfig,\n skipAnimations,\n isSVG,\n });\n /**\n * If the component has already mounted before features loaded (e.g. via\n * LazyMotion with async feature loading), we need to force the initial\n * animation to run. Otherwise state changes that occurred before features\n * loaded will be lost and the element will snap to its final state.\n */\n if (hasMountedOnce.current && visualElementRef.current) {\n visualElementRef.current.manuallyAnimateOnMount = true;\n }\n }\n const visualElement = visualElementRef.current;\n /**\n * Load Motion gesture and animation features. These are rendered as renderless\n * components so each feature can optionally make use of React lifecycle methods.\n */\n const initialLayoutGroupConfig = useContext(SwitchLayoutGroupContext);\n if (visualElement &&\n !visualElement.projection &&\n ProjectionNodeConstructor &&\n (visualElement.type === \"html\" || visualElement.type === \"svg\")) {\n createProjectionNode(visualElementRef.current, props, ProjectionNodeConstructor, initialLayoutGroupConfig);\n }\n const isMounted = useRef(false);\n useInsertionEffect(() => {\n /**\n * Check the component has already mounted before calling\n * `update` unnecessarily. This ensures we skip the initial update.\n */\n if (visualElement && isMounted.current) {\n visualElement.update(props, presenceContext);\n }\n });\n /**\n * Cache this value as we want to know whether HandoffAppearAnimations\n * was present on initial render - it will be deleted after this.\n */\n const optimisedAppearId = props[optimizedAppearDataAttribute];\n const wantsHandoff = useRef(Boolean(optimisedAppearId) &&\n typeof window !== \"undefined\" &&\n !window.MotionHandoffIsComplete?.(optimisedAppearId) &&\n window.MotionHasOptimisedAnimation?.(optimisedAppearId));\n useIsomorphicLayoutEffect(() => {\n /**\n * Track that this component has mounted. This is used to detect when\n * LazyMotion features load after the component has already committed.\n */\n hasMountedOnce.current = true;\n if (!visualElement)\n return;\n isMounted.current = true;\n window.MotionIsMounted = true;\n visualElement.updateFeatures();\n visualElement.scheduleRenderMicrotask();\n /**\n * Ideally this function would always run in a useEffect.\n *\n * However, if we have optimised appear animations to handoff from,\n * it needs to happen synchronously to ensure there's no flash of\n * incorrect styles in the event of a hydration error.\n *\n * So if we detect a situtation where optimised appear animations\n * are running, we use useLayoutEffect to trigger animations.\n */\n if (wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n });\n useEffect(() => {\n if (!visualElement)\n return;\n if (!wantsHandoff.current && visualElement.animationState) {\n visualElement.animationState.animateChanges();\n }\n if (wantsHandoff.current) {\n // This ensures all future calls to animateChanges() in this component will run in useEffect\n queueMicrotask(() => {\n window.MotionHandoffMarkAsComplete?.(optimisedAppearId);\n });\n wantsHandoff.current = false;\n }\n /**\n * Now we've finished triggering animations for this element we\n * can wipe the enteringChildren set for the next render.\n */\n visualElement.enteringChildren = undefined;\n });\n return visualElement;\n}\nfunction createProjectionNode(visualElement, props, ProjectionNodeConstructor, initialPromotionConfig) {\n const { layoutId, layout, drag, dragConstraints, layoutScroll, layoutRoot, layoutAnchor, layoutCrossfade, } = props;\n visualElement.projection = new ProjectionNodeConstructor(visualElement.latestValues, props[\"data-framer-portal-id\"]\n ? undefined\n : getClosestProjectingNode(visualElement.parent));\n visualElement.projection.setOptions({\n layoutId,\n layout,\n alwaysMeasureLayout: Boolean(drag) || (dragConstraints && isRefObject(dragConstraints)),\n visualElement,\n /**\n * TODO: Update options in an effect. This could be tricky as it'll be too late\n * to update by the time layout animations run.\n * We also need to fix this safeToRemove by linking it up to the one returned by usePresence,\n * ensuring it gets called if there's no potential layout animations.\n *\n */\n animationType: typeof layout === \"string\" ? layout : \"both\",\n initialPromotionConfig,\n crossfade: layoutCrossfade,\n layoutScroll,\n layoutRoot,\n layoutAnchor,\n });\n}\nfunction getClosestProjectingNode(visualElement) {\n if (!visualElement)\n return undefined;\n return visualElement.options.allowProjection !== false\n ? visualElement.projection\n : getClosestProjectingNode(visualElement.parent);\n}\n\nexport { useVisualElement };\n//# sourceMappingURL=use-visual-element.mjs.map\n"],"names":["getClosestProjectingNode","visualElement","options","allowProjection","parent","Component","visualState","props","createVisualElement","ProjectionNodeConstructor","isSVG","lazyContext","useContext","LazyContext","presenceContext","PresenceContext","motionConfig","MotionConfigContext","reducedMotionConfig","reducedMotion","skipAnimations","visualElementRef","useRef","hasMountedOnce","current","blockInitialAnimation","initial","manuallyAnimateOnMount","initialLayoutGroupConfig","SwitchLayoutGroupContext","type","initialPromotionConfig","layoutId","layout","drag","dragConstraints","layoutScroll","layoutRoot","layoutAnchor","layoutCrossfade","projection","latestValues","undefined","setOptions","alwaysMeasureLayout","Boolean","isRefObject","animationType","crossfade","isMounted","update","optimisedAppearId","optimizedAppearDataAttribute","wantsHandoff","window","MotionHandoffIsComplete","MotionHasOptimisedAnimation","MotionIsMounted","animationState","animateChanges","MotionHandoffMarkAsComplete","enteringChildren"],"mappings":"+hBA4OA,SAAAA,EAAAC,GAOI,GAAAA,EAEA,WAAAA,EAAAC,QAAAC,6BAEIH,EAAAC,EAAAG,OACR,0BA9NM,SAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,wDAcFC,EAAAC,aAAAC,EAAAA,aACAC,EAAAF,aAAAG,EAAAA,iBACAC,EAAAJ,aAAAK,EAAAA,qBACAC,EAAAF,EAAAG,cACAC,EAAAJ,EAAAI,eAEAC,EAAAC,SAAA,MAQAC,EAAAD,UAAA,oBASAD,EAAAG,SAAAhB,IACIa,EAAAG,QAAAhB,EAAAH,EAAA,kDAKIoB,wBAAAX,IAEI,IADAA,EAAAY,gFAcJL,EAAAG,QAAAG,wBAAA,IAIR,MAAA1B,EAAAoB,EAAAG,QAMAI,EAAAhB,aAAAiB,EAAAA,2BAEA5B,GAIIA,EAAAA,aAAAA,GAAA,SAAAA,EAAA6B,MAAA,QAAA7B,EAAA6B,MA0FR,SAAA7B,EAAAM,EAAAE,EAAAsB,GAMI,MAAAC,SAAAA,EAAAC,OAAAA,EAAAC,KAAAA,EAAAC,gBAAAA,EAAAC,aAAAA,EAAAC,WAAAA,EAAAC,aAAAA,EAAAC,gBAAAA,GAAAhC,EAWAN,EAAAuC,WAAA/B,IAAAA,EAAAR,EAAAwC,aAAAlC,EAGQmC,8BAAAA,eAIRzC,EAAAuC,WAAAG,WAAA,qBAGIC,oBAAAC,QAAAX,IAAAC,GAAAW,EAAAA,YAAAX,mBAUAY,cAAA,iBAAAd,EAAAA,EAAA,gCAEAe,UAAAT,8CAKR,mBA5HI,MAAAU,EAAA3B,UAAA,8BAMIrB,GAAAgD,EAAAzB,SACIvB,EAAAiD,OAAA3C,EAAAO,MAQR,MAAAqC,EAAA5C,EAAA6C,EAAAA,8BAEAC,EAAA/B,EAAAA,OAAAuB,QAAAM,IAGQ,oBAAAG,SAAAA,OAAAC,0BAAAJ,IACAG,OAAAE,8BAAAL,IAwDR,yCAhDI5B,EAAAC,SAAA,EAEAvB,IAEAgD,EAAAzB,SAAA,EACA8B,OAAAG,iBAAA,8EAgBIxD,EAAAyD,eAAAC,uCAKJ1D,kCAGIA,EAAAyD,eAAAC,iBAGJN,EAAA7B,+BAGQ8B,OAAAM,8BAAAT,EAAA,IAGJE,EAAA7B,SAAA,GAOJvB,EAAA4D,sBAAAnB,EAAA,IAGJzC,CACJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../animation/utils/is-animation-controls.mjs.js"),n=require("../../context/MotionContext/index.mjs.js"),r=require("../../context/PresenceContext.mjs.js"),i=require("../../render/utils/is-controlling-variants.mjs.js"),s=require("../../render/utils/resolve-variants.mjs.js"),o=require("../../utils/use-constant.mjs.js"),a=require("../../value/utils/resolve-motion-value.mjs.js");function l(e,n,r,o){const l={},u=o(e,{});for(const e in u)l[e]=a.resolveMotionValue(u[e]);let{initial:c,animate:m}=e;const j=i.isControllingVariants(e),v=i.isVariantNode(e);n&&v&&!j&&!1!==e.inherit&&(void 0===c&&(c=n.initial),void 0===m&&(m=n.animate));let d=!!r&&!1===r.initial;d=d||!1===c;const f=d?m:c;if(f&&"boolean"!=typeof f&&!t.isAnimationControls(f)){const t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){const r=s.resolveVariantFromProps(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[d?t.length-1:0]}null!==t&&(l[e]=t)}for(const t in e)l[t]=e[t]}}}return l}exports.makeUseVisualState=t=>(i,s)=>{const a=e.useContext(n.MotionContext),u=e.useContext(r.PresenceContext),c=()=>function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:s}=e;return{latestValues:l(t,n,r,i),renderState:s()}}(t,i,a,u);return s?c():o.useConstant(c)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../context/MotionContext/index.mjs.js"),n=require("../../context/PresenceContext.mjs.js"),o=require("../../utils/use-constant.mjs.js"),s=require("../../../../../motion-dom/dist/es/value/utils/resolve-motion-value.mjs.js"),i=require("../../../../../motion-dom/dist/es/render/utils/is-controlling-variants.mjs.js"),r=require("../../../../../motion-dom/dist/es/render/utils/is-animation-controls.mjs.js"),a=require("../../../../../motion-dom/dist/es/render/utils/resolve-variants.mjs.js");function l(e,t,n,o){const l={},u=o(e,{});for(const e in u)l[e]=s.resolveMotionValue(u[e]);let{initial:c,animate:m}=e;const d=i.isControllingVariants(e),j=i.isVariantNode(e);t&&j&&!d&&!1!==e.inherit&&(void 0===c&&(c=t.initial),void 0===m&&(m=t.animate));let v=!!n&&!1===n.initial;v=v||!1===c;const f=v?m:c;if(f&&"boolean"!=typeof f&&!r.isAnimationControls(f)){const t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){const o=a.resolveVariantFromProps(e,t[n]);if(o){const{transitionEnd:e,transition:t,...n}=o;for(const e in n){let t=n[e];if(Array.isArray(t)){t=t[v?t.length-1:0]}null!==t&&(l[e]=t)}for(const t in e)l[t]=e[t]}}}return l}exports.makeUseVisualState=s=>(i,r)=>{const a=e.useContext(t.MotionContext),u=e.useContext(n.PresenceContext),c=()=>function(e,t,n,o){let{scrapeMotionValuesFromProps:s,createRenderState:i}=e;return{latestValues:l(t,n,o,s),renderState:i()}}(s,i,a,u);return r?c():o.useConstant(c)};
2
2
  //# sourceMappingURL=use-visual-state.mjs.js.map