@nethesis/phone-island 1.0.3 → 1.0.5-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 (285) 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/AudioPlayerView/Progress.js +1 -1
  6. package/dist/components/AudioPlayerView/Progress.js.map +1 -1
  7. package/dist/components/CallView/BackCall.js +1 -1
  8. package/dist/components/CallView/BackCall.js.map +1 -1
  9. package/dist/components/CallView/DisplayNameUtils.js.map +1 -1
  10. package/dist/components/CallView/Number.js +1 -1
  11. package/dist/components/CallView/Number.js.map +1 -1
  12. package/dist/components/CallView/index.js +1 -1
  13. package/dist/components/CallView/index.js.map +1 -1
  14. package/dist/components/SideView/hooks/useSideViewLogic.js.map +1 -1
  15. package/dist/components/Socket.js +1 -1
  16. package/dist/components/Socket.js.map +1 -1
  17. package/dist/components/TextScroll.js.map +1 -1
  18. package/dist/events/SocketEvents.js +1 -1
  19. package/dist/events/SocketEvents.js.map +1 -1
  20. package/dist/index.css +1 -1
  21. package/dist/lib/devices/devices.js +1 -1
  22. package/dist/lib/phone/queue.js +2 -0
  23. package/dist/lib/phone/queue.js.map +1 -0
  24. package/dist/models/currentCall.js +1 -1
  25. package/dist/models/currentCall.js.map +1 -1
  26. package/dist/models/index.js +1 -1
  27. package/dist/models/index.js.map +1 -1
  28. package/dist/models/queue.js +2 -0
  29. package/dist/models/queue.js.map +1 -0
  30. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js +1 -1
  31. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.mjs.js.map +1 -1
  32. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +1 -1
  33. package/dist/node_modules/@headlessui/react/dist/components/label/label.js +1 -1
  34. package/dist/node_modules/@headlessui/react/dist/components/label/label.js.map +1 -1
  35. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +1 -1
  36. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js.map +1 -1
  37. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +1 -1
  38. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js.map +1 -1
  39. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +1 -1
  40. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js.map +1 -1
  41. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +1 -1
  42. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js.map +1 -1
  43. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +1 -1
  44. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map +1 -1
  45. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +1 -1
  46. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map +1 -1
  47. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +1 -1
  48. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map +1 -1
  49. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +1 -1
  50. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js.map +1 -1
  51. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +1 -1
  52. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js.map +1 -1
  53. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +1 -1
  54. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js.map +1 -1
  55. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +1 -1
  56. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +1 -1
  57. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +1 -1
  58. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +1 -1
  59. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +1 -1
  60. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js.map +1 -1
  61. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +1 -1
  62. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +1 -1
  63. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +1 -1
  64. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js.map +1 -1
  65. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +1 -1
  66. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js.map +1 -1
  67. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +1 -1
  68. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +1 -1
  69. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +1 -1
  70. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +1 -1
  71. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +1 -1
  72. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +1 -1
  73. package/dist/node_modules/@headlessui/react/dist/internal/floating.js +1 -1
  74. package/dist/node_modules/@headlessui/react/dist/internal/floating.js.map +1 -1
  75. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +1 -1
  76. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +1 -1
  77. package/dist/node_modules/@headlessui/react/dist/machine.js +1 -1
  78. package/dist/node_modules/@headlessui/react/dist/machine.js.map +1 -1
  79. package/dist/node_modules/@headlessui/react/dist/react-glue.js +1 -1
  80. package/dist/node_modules/@headlessui/react/dist/react-glue.js.map +1 -1
  81. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +1 -1
  82. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +1 -1
  83. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +1 -1
  84. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +1 -1
  85. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +1 -1
  86. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +1 -1
  87. package/dist/node_modules/@headlessui/react/dist/utils/match.js +1 -1
  88. package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +1 -1
  89. package/dist/node_modules/@headlessui/react/dist/utils/render.js +1 -1
  90. package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +1 -1
  91. package/dist/node_modules/@headlessui/react/dist/utils/store.js +1 -1
  92. package/dist/node_modules/@headlessui/react/dist/utils/store.js.map +1 -1
  93. package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js +1 -1
  94. package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js.map +1 -1
  95. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js +1 -1
  96. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js.map +1 -1
  97. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js +1 -1
  98. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js.map +1 -1
  99. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js +1 -1
  100. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js.map +1 -1
  101. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js +1 -1
  102. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js.map +1 -1
  103. package/dist/node_modules/engine.io-client/build/esm/socket.js +1 -1
  104. package/dist/node_modules/engine.io-client/build/esm/socket.js.map +1 -1
  105. package/dist/node_modules/engine.io-client/build/esm/transport.js +1 -1
  106. package/dist/node_modules/engine.io-client/build/esm/transport.js.map +1 -1
  107. package/dist/node_modules/engine.io-client/build/esm/transports/polling.js +1 -1
  108. package/dist/node_modules/engine.io-client/build/esm/transports/polling.js.map +1 -1
  109. package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js +1 -1
  110. package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js.map +1 -1
  111. package/dist/node_modules/engine.io-client/build/esm/util.js +1 -1
  112. package/dist/node_modules/engine.io-client/build/esm/util.js.map +1 -1
  113. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +1 -1
  114. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js.map +1 -1
  115. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js +1 -1
  116. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.js.map +1 -1
  117. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js +1 -1
  118. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.mjs.js.map +1 -1
  119. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js +1 -1
  120. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs.js.map +1 -1
  121. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js +1 -1
  122. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +1 -1
  123. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js +1 -1
  124. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.mjs.js.map +1 -1
  125. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js +1 -1
  126. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js.map +1 -1
  127. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js +1 -1
  128. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs.js.map +1 -1
  129. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +1 -1
  130. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +1 -1
  131. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +1 -1
  132. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +1 -1
  133. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +1 -1
  134. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +1 -1
  135. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js +1 -1
  136. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js.map +1 -1
  137. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js +1 -1
  138. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.mjs.js.map +1 -1
  139. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +1 -1
  140. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +1 -1
  141. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +1 -1
  142. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +1 -1
  143. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +1 -1
  144. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +1 -1
  145. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +1 -1
  146. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +1 -1
  147. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js +1 -1
  148. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js.map +1 -1
  149. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js +1 -1
  150. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js.map +1 -1
  151. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +1 -1
  152. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +1 -1
  153. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js +1 -1
  154. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js.map +1 -1
  155. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js +1 -1
  156. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js.map +1 -1
  157. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js +1 -1
  158. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js.map +1 -1
  159. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js +1 -1
  160. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs.js.map +1 -1
  161. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js +1 -1
  162. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.mjs.js.map +1 -1
  163. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js +1 -1
  164. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.mjs.js.map +1 -1
  165. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js +1 -1
  166. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.mjs.js.map +1 -1
  167. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js +1 -1
  168. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs.js.map +1 -1
  169. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js +1 -1
  170. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.mjs.js.map +1 -1
  171. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js +1 -1
  172. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.mjs.js.map +1 -1
  173. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js +1 -1
  174. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.mjs.js.map +1 -1
  175. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js +1 -1
  176. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs.js.map +1 -1
  177. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js +1 -1
  178. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs.js.map +1 -1
  179. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +1 -1
  180. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +1 -1
  181. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js +1 -1
  182. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs.js.map +1 -1
  183. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js +1 -1
  184. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js.map +1 -1
  185. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js +1 -1
  186. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js.map +1 -1
  187. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js +1 -1
  188. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js.map +1 -1
  189. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js +1 -1
  190. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js.map +1 -1
  191. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js +1 -1
  192. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js.map +1 -1
  193. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js +1 -1
  194. package/dist/node_modules/framer-motion/dist/es/utils/delay.mjs.js.map +1 -1
  195. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js +1 -1
  196. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js.map +1 -1
  197. package/dist/node_modules/js-base64/base64.mjs.js +1 -1
  198. package/dist/node_modules/js-base64/base64.mjs.js.map +1 -1
  199. package/dist/node_modules/mic-check/lib/index.js +1 -1
  200. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +1 -1
  201. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +1 -1
  202. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +1 -1
  203. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +1 -1
  204. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +1 -1
  205. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +1 -1
  206. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js +1 -1
  207. package/dist/node_modules/motion-dom/dist/es/animation/drivers/driver-frameloop.mjs.js.map +1 -1
  208. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +1 -1
  209. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +1 -1
  210. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js +1 -1
  211. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +1 -1
  212. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js +1 -1
  213. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.mjs.js.map +1 -1
  214. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js +1 -1
  215. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.mjs.js.map +1 -1
  216. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js +1 -1
  217. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +1 -1
  218. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +1 -1
  219. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +1 -1
  220. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +1 -1
  221. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +1 -1
  222. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js +1 -1
  223. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js.map +1 -1
  224. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +1 -1
  225. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +1 -1
  226. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js +1 -1
  227. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js.map +1 -1
  228. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js +1 -1
  229. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js.map +1 -1
  230. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js +1 -1
  231. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js.map +1 -1
  232. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js +1 -1
  233. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js.map +1 -1
  234. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js +1 -1
  235. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js.map +1 -1
  236. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +1 -1
  237. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +1 -1
  238. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +1 -1
  239. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +1 -1
  240. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +1 -1
  241. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +1 -1
  242. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +1 -1
  243. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +1 -1
  244. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js +1 -1
  245. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js.map +1 -1
  246. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +1 -1
  247. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +1 -1
  248. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js +1 -1
  249. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js.map +1 -1
  250. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js +1 -1
  251. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js.map +1 -1
  252. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js +1 -1
  253. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js.map +1 -1
  254. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js +1 -1
  255. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js.map +1 -1
  256. package/dist/node_modules/prop-types/index.js +1 -1
  257. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  258. package/dist/node_modules/react-redux/es/components/Provider.js +1 -1
  259. package/dist/node_modules/react-redux/es/components/Provider.js.map +1 -1
  260. package/dist/node_modules/react-redux/es/hooks/useDispatch.js +1 -1
  261. package/dist/node_modules/react-redux/es/hooks/useDispatch.js.map +1 -1
  262. package/dist/node_modules/react-redux/es/hooks/useSelector.js +1 -1
  263. package/dist/node_modules/react-redux/es/hooks/useSelector.js.map +1 -1
  264. package/dist/node_modules/react-redux/es/hooks/useStore.js +1 -1
  265. package/dist/node_modules/react-redux/es/hooks/useStore.js.map +1 -1
  266. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js +1 -1
  267. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js.map +1 -1
  268. package/dist/node_modules/socket.io-client/build/esm/socket.js +1 -1
  269. package/dist/node_modules/socket.io-client/build/esm/socket.js.map +1 -1
  270. package/dist/node_modules/socket.io-client/build/esm/url.js +1 -1
  271. package/dist/node_modules/socket.io-client/build/esm/url.js.map +1 -1
  272. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js +1 -1
  273. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js.map +1 -1
  274. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js +1 -1
  275. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js.map +1 -1
  276. package/dist/package.json.js +1 -1
  277. package/dist/public/locales/en/translation.json.js +1 -1
  278. package/dist/public/locales/it/translation.json.js +1 -1
  279. package/dist/styles/CustomRange.styles.js.map +1 -1
  280. package/dist/styles/Island.styles.js.map +1 -1
  281. package/package.json +1 -1
  282. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.css.js +0 -2
  283. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.css.js.map +0 -1
  284. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -2
  285. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../motion/features/definitions.mjs.js"),e=require("../projection/geometry/models.mjs.js"),s=require("../utils/reduced-motion/index.mjs.js"),i=require("../utils/reduced-motion/state.mjs.js"),r=require("../value/utils/is-motion-value.mjs.js"),o=require("./store.mjs.js"),n=require("./utils/is-controlling-variants.mjs.js"),a=require("./utils/motion-values.mjs.js"),u=require("./utils/resolve-variants.mjs.js"),h=require("../../../../motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js"),l=require("../../../../motion-dom/dist/es/frameloop/sync-time.mjs.js"),d=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),p=require("../../../../motion-utils/dist/es/warn-once.mjs.js"),c=require("../../../../motion-dom/dist/es/render/utils/keys-transform.mjs.js"),m=require("../../../../motion-dom/dist/es/value/index.mjs.js"),v=require("../../../../motion-utils/dist/es/is-numerical-string.mjs.js"),V=require("../../../../motion-utils/dist/es/is-zero-value-string.mjs.js"),f=require("../../../../motion-dom/dist/es/value/types/utils/find.mjs.js"),g=require("../../../../motion-dom/dist/es/value/types/complex/index.mjs.js"),j=require("../../../../motion-dom/dist/es/value/types/utils/animatable-none.mjs.js"),M=require("../../../../motion-utils/dist/es/subscription-manager.mjs.js");const y=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];exports.VisualElement=class{scrapeMotionValuesFromProps(t,e,s){return{}}constructor({parent:t,props:e,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=h.KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=l.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,d.frame.render(this.render,!1,!0))};const{latestValues:p,renderState:c}=a;this.latestValues=p,this.baseTarget={...p},this.initialValues=e.initial?{...p}:{},this.renderState=c,this.parent=t,this.props=e,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=n.isControllingVariants(e),this.isVariantNode=n.isVariantNode(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:m,...v}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in v){const e=v[t];void 0!==p[t]&&r.isMotionValue(e)&&e.set(p[t],!1)}}mount(t){this.current=t,o.visualElementStore.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),i.hasReducedMotionListener.current||s.initPrefersReducedMotion(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i.prefersReducedMotion.current),"production"!==process.env.NODE_ENV&&p.warnOnce(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),d.cancelFrame(this.notifyUpdate),d.cancelFrame(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=c.transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&d.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)})),r=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),r(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let e="animation";for(e in t.featureDefinitions){const s=t.featureDefinitions[e];if(!s)continue;const{isEnabled:i,Feature:r}=s;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):e.createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<y.length;e++){const s=y[e];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i=t["on"+s];i&&(this.propEventSubscriptions[s]=this.on(s,i))}this.prevMotionValues=a.updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const s=this.values.get(t);e!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return void 0===s&&void 0!==e&&(s=m.motionValue(null===e?void 0:e,{owner:this}),this.addValue(t,s)),s}readValue(t,e){let s=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&&("string"==typeof s&&(v.isNumericalString(s)||V.isZeroValueString(s))?s=parseFloat(s):!f.findValueType(s)&&g.complex.test(e)&&(s=j.getAnimatableNone(t,e)),this.setBaseTarget(t,r.isMotionValue(s)?s.get():s)),r.isMotionValue(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let s;if("string"==typeof e||"object"==typeof e){const i=u.resolveVariantFromProps(this.props,e,this.presenceContext?.custom);i&&(s=i[t])}if(e&&void 0!==s)return s;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||r.isMotionValue(i)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new M.SubscriptionManager),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../motion/features/definitions.mjs.js"),e=require("../projection/geometry/models.mjs.js"),s=require("../utils/reduced-motion/index.mjs.js"),i=require("../utils/reduced-motion/state.mjs.js"),r=require("../value/utils/is-motion-value.mjs.js"),o=require("./store.mjs.js"),n=require("./utils/is-controlling-variants.mjs.js"),a=require("./utils/motion-values.mjs.js"),u=require("./utils/resolve-variants.mjs.js"),h=require("../../../../motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js"),l=require("../../../../motion-dom/dist/es/frameloop/sync-time.mjs.js"),d=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js"),p=require("../../../../motion-utils/dist/es/warn-once.mjs.js"),c=require("../../../../motion-dom/dist/es/render/utils/keys-transform.mjs.js"),m=require("../../../../motion-dom/dist/es/value/index.mjs.js"),v=require("../../../../motion-utils/dist/es/is-numerical-string.mjs.js"),V=require("../../../../motion-utils/dist/es/is-zero-value-string.mjs.js"),f=require("../../../../motion-dom/dist/es/value/types/utils/find.mjs.js"),g=require("../../../../motion-dom/dist/es/value/types/complex/index.mjs.js"),j=require("../../../../motion-dom/dist/es/value/types/utils/animatable-none.mjs.js"),M=require("../../../../motion-utils/dist/es/subscription-manager.mjs.js");const y=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];exports.VisualElement=class{scrapeMotionValuesFromProps(t,e,s){return{}}constructor(t){let{parent:e,props:s,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:a,visualState:u}=t,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=h.KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=l.time.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,d.frame.render(this.render,!1,!0))};const{latestValues:c,renderState:m}=u;this.latestValues=c,this.baseTarget={...c},this.initialValues=s.initial?{...c}:{},this.renderState=m,this.parent=e,this.props=s,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=p,this.blockInitialAnimation=Boolean(a),this.isControllingVariants=n.isControllingVariants(s),this.isVariantNode=n.isVariantNode(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:v,...V}=this.scrapeMotionValuesFromProps(s,{},this);for(const t in V){const e=V[t];void 0!==c[t]&&r.isMotionValue(e)&&e.set(c[t],!1)}}mount(t){this.current=t,o.visualElementStore.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),i.hasReducedMotionListener.current||s.initPrefersReducedMotion(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i.prefersReducedMotion.current),"production"!==process.env.NODE_ENV&&p.warnOnce(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),d.cancelFrame(this.notifyUpdate),d.cancelFrame(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=c.transformProps.has(t);s&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&d.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)})),r=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),r(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let e="animation";for(e in t.featureDefinitions){const s=t.featureDefinitions[e];if(!s)continue;const{isEnabled:i,Feature:r}=s;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):e.createBox()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<y.length;e++){const s=y[e];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i=t["on"+s];i&&(this.propEventSubscriptions[s]=this.on(s,i))}this.prevMotionValues=a.updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const s=this.values.get(t);e!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return void 0===s&&void 0!==e&&(s=m.motionValue(null===e?void 0:e,{owner:this}),this.addValue(t,s)),s}readValue(t,e){let s=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=s&&("string"==typeof s&&(v.isNumericalString(s)||V.isZeroValueString(s))?s=parseFloat(s):!f.findValueType(s)&&g.complex.test(e)&&(s=j.getAnimatableNone(t,e)),this.setBaseTarget(t,r.isMotionValue(s)?s.get():s)),r.isMotionValue(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let s;if("string"==typeof e||"object"==typeof e){const i=u.resolveVariantFromProps(this.props,e,this.presenceContext?.custom);i&&(s=i[t])}if(e&&void 0!==s)return s;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||r.isMotionValue(i)?void 0!==this.initialValues[t]&&void 0===s?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new M.SubscriptionManager),this.events[t].add(e)}notify(t){if(this.events[t]){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];this.events[t].notify(...s)}}};
2
2
  //# sourceMappingURL=VisualElement.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VisualElement.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/render/VisualElement.mjs"],"sourcesContent":["import { KeyframeResolver, time, frame, cancelFrame, transformProps, motionValue, findValueType, complex, getAnimatableNone } from 'motion-dom';\nimport { warnOnce, isNumericalString, isZeroValueString, SubscriptionManager } from 'motion-utils';\nimport { featureDefinitions } from '../motion/features/definitions.mjs';\nimport { createBox } from '../projection/geometry/models.mjs';\nimport { initPrefersReducedMotion } from '../utils/reduced-motion/index.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from '../utils/reduced-motion/state.mjs';\nimport { isMotionValue } from '../value/utils/is-motion-value.mjs';\nimport { visualElementStore } from './store.mjs';\nimport { isControllingVariants, isVariantNode } from './utils/is-controlling-variants.mjs';\nimport { updateMotionValuesFromProps } from './utils/motion-values.mjs';\nimport { resolveVariantFromProps } from './utils/resolve-variants.mjs';\n\nconst propEventHandlers = [\n \"AnimationStart\",\n \"AnimationComplete\",\n \"Update\",\n \"BeforeLayoutMeasure\",\n \"LayoutMeasure\",\n \"LayoutAnimationStart\",\n \"LayoutAnimationComplete\",\n];\n/**\n * A VisualElement is an imperative abstraction around UI elements such as\n * HTMLElement, SVGElement, Three.Object3D etc.\n */\nclass VisualElement {\n /**\n * This method takes React props and returns found MotionValues. For example, HTML\n * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.\n *\n * This isn't an abstract method as it needs calling in the constructor, but it is\n * intended to be one.\n */\n scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {\n return {};\n }\n constructor({ parent, props, presenceContext, reducedMotionConfig, blockInitialAnimation, visualState, }, options = {}) {\n /**\n * A reference to the current underlying Instance, e.g. a HTMLElement\n * or Three.Mesh etc.\n */\n this.current = null;\n /**\n * A set containing references to this VisualElement's children.\n */\n this.children = new Set();\n /**\n * Determine what role this visual element should take in the variant tree.\n */\n this.isVariantNode = false;\n this.isControllingVariants = false;\n /**\n * Decides whether this VisualElement should animate in reduced motion\n * mode.\n *\n * TODO: This is currently set on every individual VisualElement but feels\n * like it could be set globally.\n */\n this.shouldReduceMotion = null;\n /**\n * A map of all motion values attached to this visual element. Motion\n * values are source of truth for any given animated value. A motion\n * value might be provided externally by the component via props.\n */\n this.values = new Map();\n this.KeyframeResolver = KeyframeResolver;\n /**\n * Cleanup functions for active features (hover/tap/exit etc)\n */\n this.features = {};\n /**\n * A map of every subscription that binds the provided or generated\n * motion values onChange listeners to this visual element.\n */\n this.valueSubscriptions = new Map();\n /**\n * A reference to the previously-provided motion values as returned\n * from scrapeMotionValuesFromProps. We use the keys in here to determine\n * if any motion values need to be removed after props are updated.\n */\n this.prevMotionValues = {};\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n /**\n * An object containing an unsubscribe function for each prop event subscription.\n * For example, every \"Update\" event can have multiple subscribers via\n * VisualElement.on(), but only one of those can be defined via the onUpdate prop.\n */\n this.propEventSubscriptions = {};\n this.notifyUpdate = () => this.notify(\"Update\", this.latestValues);\n this.render = () => {\n if (!this.current)\n return;\n this.triggerBuild();\n this.renderInstance(this.current, this.renderState, this.props.style, this.projection);\n };\n this.renderScheduledAt = 0.0;\n this.scheduleRender = () => {\n const now = time.now();\n if (this.renderScheduledAt < now) {\n this.renderScheduledAt = now;\n frame.render(this.render, false, true);\n }\n };\n const { latestValues, renderState } = visualState;\n this.latestValues = latestValues;\n this.baseTarget = { ...latestValues };\n this.initialValues = props.initial ? { ...latestValues } : {};\n this.renderState = renderState;\n this.parent = parent;\n this.props = props;\n this.presenceContext = presenceContext;\n this.depth = parent ? parent.depth + 1 : 0;\n this.reducedMotionConfig = reducedMotionConfig;\n this.options = options;\n this.blockInitialAnimation = Boolean(blockInitialAnimation);\n this.isControllingVariants = isControllingVariants(props);\n this.isVariantNode = isVariantNode(props);\n if (this.isVariantNode) {\n this.variantChildren = new Set();\n }\n this.manuallyAnimateOnMount = Boolean(parent && parent.current);\n /**\n * Any motion values that are provided to the element when created\n * aren't yet bound to the element, as this would technically be impure.\n * However, we iterate through the motion values and set them to the\n * initial values for this component.\n *\n * TODO: This is impure and we should look at changing this to run on mount.\n * Doing so will break some tests but this isn't necessarily a breaking change,\n * more a reflection of the test.\n */\n const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);\n for (const key in initialMotionValues) {\n const value = initialMotionValues[key];\n if (latestValues[key] !== undefined && isMotionValue(value)) {\n value.set(latestValues[key], false);\n }\n }\n }\n mount(instance) {\n this.current = instance;\n visualElementStore.set(instance, this);\n if (this.projection && !this.projection.instance) {\n this.projection.mount(instance);\n }\n if (this.parent && this.isVariantNode && !this.isControllingVariants) {\n this.removeFromVariantTree = this.parent.addVariantChild(this);\n }\n this.values.forEach((value, key) => this.bindToMotionValue(key, value));\n if (!hasReducedMotionListener.current) {\n initPrefersReducedMotion();\n }\n this.shouldReduceMotion =\n this.reducedMotionConfig === \"never\"\n ? false\n : this.reducedMotionConfig === \"always\"\n ? true\n : prefersReducedMotion.current;\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(this.shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\");\n }\n if (this.parent)\n this.parent.children.add(this);\n this.update(this.props, this.presenceContext);\n }\n unmount() {\n this.projection && this.projection.unmount();\n cancelFrame(this.notifyUpdate);\n cancelFrame(this.render);\n this.valueSubscriptions.forEach((remove) => remove());\n this.valueSubscriptions.clear();\n this.removeFromVariantTree && this.removeFromVariantTree();\n this.parent && this.parent.children.delete(this);\n for (const key in this.events) {\n this.events[key].clear();\n }\n for (const key in this.features) {\n const feature = this.features[key];\n if (feature) {\n feature.unmount();\n feature.isMounted = false;\n }\n }\n this.current = null;\n }\n bindToMotionValue(key, value) {\n if (this.valueSubscriptions.has(key)) {\n this.valueSubscriptions.get(key)();\n }\n const valueIsTransform = transformProps.has(key);\n if (valueIsTransform && this.onBindTransform) {\n this.onBindTransform();\n }\n const removeOnChange = value.on(\"change\", (latestValue) => {\n this.latestValues[key] = latestValue;\n this.props.onUpdate && frame.preRender(this.notifyUpdate);\n if (valueIsTransform && this.projection) {\n this.projection.isTransformDirty = true;\n }\n });\n const removeOnRenderRequest = value.on(\"renderRequest\", this.scheduleRender);\n let removeSyncCheck;\n if (window.MotionCheckAppearSync) {\n removeSyncCheck = window.MotionCheckAppearSync(this, key, value);\n }\n this.valueSubscriptions.set(key, () => {\n removeOnChange();\n removeOnRenderRequest();\n if (removeSyncCheck)\n removeSyncCheck();\n if (value.owner)\n value.stop();\n });\n }\n sortNodePosition(other) {\n /**\n * If these nodes aren't even of the same type we can't compare their depth.\n */\n if (!this.current ||\n !this.sortInstanceNodePosition ||\n this.type !== other.type) {\n return 0;\n }\n return this.sortInstanceNodePosition(this.current, other.current);\n }\n updateFeatures() {\n let key = \"animation\";\n for (key in featureDefinitions) {\n const featureDefinition = featureDefinitions[key];\n if (!featureDefinition)\n continue;\n const { isEnabled, Feature: FeatureConstructor } = featureDefinition;\n /**\n * If this feature is enabled but not active, make a new instance.\n */\n if (!this.features[key] &&\n FeatureConstructor &&\n isEnabled(this.props)) {\n this.features[key] = new FeatureConstructor(this);\n }\n /**\n * If we have a feature, mount or update it.\n */\n if (this.features[key]) {\n const feature = this.features[key];\n if (feature.isMounted) {\n feature.update();\n }\n else {\n feature.mount();\n feature.isMounted = true;\n }\n }\n }\n }\n triggerBuild() {\n this.build(this.renderState, this.latestValues, this.props);\n }\n /**\n * Measure the current viewport box with or without transforms.\n * Only measures axis-aligned boxes, rotate and skew must be manually\n * removed with a re-render to work.\n */\n measureViewportBox() {\n return this.current\n ? this.measureInstanceViewportBox(this.current, this.props)\n : createBox();\n }\n getStaticValue(key) {\n return this.latestValues[key];\n }\n setStaticValue(key, value) {\n this.latestValues[key] = value;\n }\n /**\n * Update the provided props. Ensure any newly-added motion values are\n * added to our map, old ones removed, and listeners updated.\n */\n update(props, presenceContext) {\n if (props.transformTemplate || this.props.transformTemplate) {\n this.scheduleRender();\n }\n this.prevProps = this.props;\n this.props = props;\n this.prevPresenceContext = this.presenceContext;\n this.presenceContext = presenceContext;\n /**\n * Update prop event handlers ie onAnimationStart, onAnimationComplete\n */\n for (let i = 0; i < propEventHandlers.length; i++) {\n const key = propEventHandlers[i];\n if (this.propEventSubscriptions[key]) {\n this.propEventSubscriptions[key]();\n delete this.propEventSubscriptions[key];\n }\n const listenerName = (\"on\" + key);\n const listener = props[listenerName];\n if (listener) {\n this.propEventSubscriptions[key] = this.on(key, listener);\n }\n }\n this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps, this), this.prevMotionValues);\n if (this.handleChildMotionValue) {\n this.handleChildMotionValue();\n }\n }\n getProps() {\n return this.props;\n }\n /**\n * Returns the variant definition with a given name.\n */\n getVariant(name) {\n return this.props.variants ? this.props.variants[name] : undefined;\n }\n /**\n * Returns the defined default transition on this component.\n */\n getDefaultTransition() {\n return this.props.transition;\n }\n getTransformPagePoint() {\n return this.props.transformPagePoint;\n }\n getClosestVariantNode() {\n return this.isVariantNode\n ? this\n : this.parent\n ? this.parent.getClosestVariantNode()\n : undefined;\n }\n /**\n * Add a child visual element to our set of children.\n */\n addVariantChild(child) {\n const closestVariantNode = this.getClosestVariantNode();\n if (closestVariantNode) {\n closestVariantNode.variantChildren &&\n closestVariantNode.variantChildren.add(child);\n return () => closestVariantNode.variantChildren.delete(child);\n }\n }\n /**\n * Add a motion value and bind it to this visual element.\n */\n addValue(key, value) {\n // Remove existing value if it exists\n const existingValue = this.values.get(key);\n if (value !== existingValue) {\n if (existingValue)\n this.removeValue(key);\n this.bindToMotionValue(key, value);\n this.values.set(key, value);\n this.latestValues[key] = value.get();\n }\n }\n /**\n * Remove a motion value and unbind any active subscriptions.\n */\n removeValue(key) {\n this.values.delete(key);\n const unsubscribe = this.valueSubscriptions.get(key);\n if (unsubscribe) {\n unsubscribe();\n this.valueSubscriptions.delete(key);\n }\n delete this.latestValues[key];\n this.removeValueFromRenderState(key, this.renderState);\n }\n /**\n * Check whether we have a motion value for this key\n */\n hasValue(key) {\n return this.values.has(key);\n }\n getValue(key, defaultValue) {\n if (this.props.values && this.props.values[key]) {\n return this.props.values[key];\n }\n let value = this.values.get(key);\n if (value === undefined && defaultValue !== undefined) {\n value = motionValue(defaultValue === null ? undefined : defaultValue, { owner: this });\n this.addValue(key, value);\n }\n return value;\n }\n /**\n * If we're trying to animate to a previously unencountered value,\n * we need to check for it in our state and as a last resort read it\n * directly from the instance (which might have performance implications).\n */\n readValue(key, target) {\n let value = this.latestValues[key] !== undefined || !this.current\n ? this.latestValues[key]\n : this.getBaseTargetFromProps(this.props, key) ??\n this.readValueFromInstance(this.current, key, this.options);\n if (value !== undefined && value !== null) {\n if (typeof value === \"string\" &&\n (isNumericalString(value) || isZeroValueString(value))) {\n // If this is a number read as a string, ie \"0\" or \"200\", convert it to a number\n value = parseFloat(value);\n }\n else if (!findValueType(value) && complex.test(target)) {\n value = getAnimatableNone(key, target);\n }\n this.setBaseTarget(key, isMotionValue(value) ? value.get() : value);\n }\n return isMotionValue(value) ? value.get() : value;\n }\n /**\n * Set the base target to later animate back to. This is currently\n * only hydrated on creation and when we first read a value.\n */\n setBaseTarget(key, value) {\n this.baseTarget[key] = value;\n }\n /**\n * Find the base target for a value thats been removed from all animation\n * props.\n */\n getBaseTarget(key) {\n const { initial } = this.props;\n let valueFromInitial;\n if (typeof initial === \"string\" || typeof initial === \"object\") {\n const variant = resolveVariantFromProps(this.props, initial, this.presenceContext?.custom);\n if (variant) {\n valueFromInitial = variant[key];\n }\n }\n /**\n * If this value still exists in the current initial variant, read that.\n */\n if (initial && valueFromInitial !== undefined) {\n return valueFromInitial;\n }\n /**\n * Alternatively, if this VisualElement config has defined a getBaseTarget\n * so we can read the value from an alternative source, try that.\n */\n const target = this.getBaseTargetFromProps(this.props, key);\n if (target !== undefined && !isMotionValue(target))\n return target;\n /**\n * If the value was initially defined on initial, but it doesn't any more,\n * return undefined. Otherwise return the value as initially read from the DOM.\n */\n return this.initialValues[key] !== undefined &&\n valueFromInitial === undefined\n ? undefined\n : this.baseTarget[key];\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n return this.events[eventName].add(callback);\n }\n notify(eventName, ...args) {\n if (this.events[eventName]) {\n this.events[eventName].notify(...args);\n }\n }\n}\n\nexport { VisualElement };\n"],"names":["propEventHandlers","scrapeMotionValuesFromProps","_props","_prevProps","_visualElement","constructor","parent","props","presenceContext","reducedMotionConfig","blockInitialAnimation","visualState","options","this","current","children","Set","isVariantNode","isControllingVariants","shouldReduceMotion","values","Map","KeyframeResolver","features","valueSubscriptions","prevMotionValues","events","propEventSubscriptions","notifyUpdate","notify","latestValues","render","triggerBuild","renderInstance","renderState","style","projection","renderScheduledAt","scheduleRender","now","time","frame","baseTarget","initialValues","initial","depth","Boolean","variantChildren","manuallyAnimateOnMount","willChange","initialMotionValues","key","value","undefined","isMotionValue","set","mount","instance","visualElementStore","removeFromVariantTree","addVariantChild","forEach","bindToMotionValue","hasReducedMotionListener","initPrefersReducedMotion","prefersReducedMotion","process","env","NODE_ENV","warnOnce","add","update","unmount","cancelFrame","remove","clear","delete","feature","isMounted","has","get","valueIsTransform","transformProps","onBindTransform","removeOnChange","on","latestValue","onUpdate","preRender","isTransformDirty","removeOnRenderRequest","removeSyncCheck","window","MotionCheckAppearSync","owner","stop","sortNodePosition","other","sortInstanceNodePosition","type","updateFeatures","featureDefinitions","featureDefinition","isEnabled","Feature","FeatureConstructor","build","measureViewportBox","measureInstanceViewportBox","createBox","getStaticValue","setStaticValue","transformTemplate","prevProps","prevPresenceContext","i","length","listener","updateMotionValuesFromProps","handleChildMotionValue","getProps","getVariant","name","variants","getDefaultTransition","transition","getTransformPagePoint","transformPagePoint","getClosestVariantNode","child","closestVariantNode","addValue","existingValue","removeValue","unsubscribe","removeValueFromRenderState","hasValue","getValue","defaultValue","motionValue","readValue","target","getBaseTargetFromProps","readValueFromInstance","isNumericalString","isZeroValueString","parseFloat","findValueType","complex","test","getAnimatableNone","setBaseTarget","getBaseTarget","valueFromInitial","variant","resolveVariantFromProps","custom","eventName","callback","SubscriptionManager","args"],"mappings":"o2CAYA,MAAMA,EAAoB,CACtB,iBACA,oBACA,SACA,sBACA,gBACA,uBACA,iDAMJ,MAQIC,2BAAAA,CAA4BC,EAAQC,EAAYC,GAC5C,MAAO,EACX,CACAC,WAAAA,EAAYC,OAAEA,EAAMC,MAAEA,EAAKC,gBAAEA,EAAeC,oBAAEA,EAAmBC,sBAAEA,EAAqBC,YAAEA,GAAgBC,EAAU,CAAA,GAKhHC,KAAKC,QAAU,KAIfD,KAAKE,SAAW,IAAIC,IAIpBH,KAAKI,eAAgB,EACrBJ,KAAKK,uBAAwB,EAQ7BL,KAAKM,mBAAqB,KAM1BN,KAAKO,OAAS,IAAIC,IAClBR,KAAKS,iBAAmBA,mBAIxBT,KAAKU,SAAW,GAKhBV,KAAKW,mBAAqB,IAAIH,IAM9BR,KAAKY,iBAAmB,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B,GAcxB,OAXIC,UACqB,iBAAVA,IACN4F,EAAiBA,kBAAC5F,IAAU6F,EAAiBA,kBAAC7F,IAE/CA,EAAQ8F,WAAW9F,IAEb+F,EAAAA,cAAc/F,IAAUgG,EAAAA,QAAQC,KAAKR,KAC3CzF,EAAQkG,EAAiBA,kBAACnG,EAAK0F,IAEnChI,KAAK0I,cAAcpG,EAAKG,gBAAcF,GAASA,EAAM4B,MAAQ5B,IAE1DE,EAAAA,cAAcF,GAASA,EAAM4B,MAAQ5B,CAChD,CAKAmG,aAAAA,CAAcpG,EAAKC,GACfvC,KAAK6B,WAAWS,GAAOC,CAC3B,CAKAoG,aAAAA,CAAcrG,GACV,MAAMP,QAAEA,GAAY/B,KAAKN,MACzB,IAAIkJ,EACJ,GAAuB,iBAAZ7G,GAA2C,iBAAZA,EAAsB,CAC5D,MAAM8G,EAAUC,EAAuBA,wBAAC9I,KAAKN,MAAOqC,EAAS/B,KAAKL,iBAAiBoJ,QAC/EF,IACAD,EAAmBC,EAAQvG,GAEnC,CAIA,GAAIP,QAAgCS,IAArBoG,EACX,OAAOA,EAMX,MAAMZ,EAAShI,KAAKiI,uBAAuBjI,KAAKN,MAAO4C,GACvD,YAAeE,IAAXwF,GAAyBvF,EAAaA,cAACuF,QAMRxF,IAA5BxC,KAAK8B,cAAcQ,SACDE,IAArBoG,OACEpG,EACAxC,KAAK6B,WAAWS,GARX0F,CASf,CACAxD,EAAAA,CAAGwE,EAAWC,GAIV,OAHKjJ,KAAKa,OAAOmI,KACbhJ,KAAKa,OAAOmI,GAAa,IAAIE,EAAmBA,qBAE7ClJ,KAAKa,OAAOmI,GAAWvF,IAAIwF,EACtC,CACAjI,MAAAA,CAAOgI,KAAcG,GACbnJ,KAAKa,OAAOmI,IACZhJ,KAAKa,OAAOmI,GAAWhI,UAAUmI,EAEzC"}
1
+ {"version":3,"file":"VisualElement.mjs.js","sources":["../../../../../../node_modules/framer-motion/dist/es/render/VisualElement.mjs"],"sourcesContent":["import { KeyframeResolver, time, frame, cancelFrame, transformProps, motionValue, findValueType, complex, getAnimatableNone } from 'motion-dom';\nimport { warnOnce, isNumericalString, isZeroValueString, SubscriptionManager } from 'motion-utils';\nimport { featureDefinitions } from '../motion/features/definitions.mjs';\nimport { createBox } from '../projection/geometry/models.mjs';\nimport { initPrefersReducedMotion } from '../utils/reduced-motion/index.mjs';\nimport { hasReducedMotionListener, prefersReducedMotion } from '../utils/reduced-motion/state.mjs';\nimport { isMotionValue } from '../value/utils/is-motion-value.mjs';\nimport { visualElementStore } from './store.mjs';\nimport { isControllingVariants, isVariantNode } from './utils/is-controlling-variants.mjs';\nimport { updateMotionValuesFromProps } from './utils/motion-values.mjs';\nimport { resolveVariantFromProps } from './utils/resolve-variants.mjs';\n\nconst propEventHandlers = [\n \"AnimationStart\",\n \"AnimationComplete\",\n \"Update\",\n \"BeforeLayoutMeasure\",\n \"LayoutMeasure\",\n \"LayoutAnimationStart\",\n \"LayoutAnimationComplete\",\n];\n/**\n * A VisualElement is an imperative abstraction around UI elements such as\n * HTMLElement, SVGElement, Three.Object3D etc.\n */\nclass VisualElement {\n /**\n * This method takes React props and returns found MotionValues. For example, HTML\n * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.\n *\n * This isn't an abstract method as it needs calling in the constructor, but it is\n * intended to be one.\n */\n scrapeMotionValuesFromProps(_props, _prevProps, _visualElement) {\n return {};\n }\n constructor({ parent, props, presenceContext, reducedMotionConfig, blockInitialAnimation, visualState, }, options = {}) {\n /**\n * A reference to the current underlying Instance, e.g. a HTMLElement\n * or Three.Mesh etc.\n */\n this.current = null;\n /**\n * A set containing references to this VisualElement's children.\n */\n this.children = new Set();\n /**\n * Determine what role this visual element should take in the variant tree.\n */\n this.isVariantNode = false;\n this.isControllingVariants = false;\n /**\n * Decides whether this VisualElement should animate in reduced motion\n * mode.\n *\n * TODO: This is currently set on every individual VisualElement but feels\n * like it could be set globally.\n */\n this.shouldReduceMotion = null;\n /**\n * A map of all motion values attached to this visual element. Motion\n * values are source of truth for any given animated value. A motion\n * value might be provided externally by the component via props.\n */\n this.values = new Map();\n this.KeyframeResolver = KeyframeResolver;\n /**\n * Cleanup functions for active features (hover/tap/exit etc)\n */\n this.features = {};\n /**\n * A map of every subscription that binds the provided or generated\n * motion values onChange listeners to this visual element.\n */\n this.valueSubscriptions = new Map();\n /**\n * A reference to the previously-provided motion values as returned\n * from scrapeMotionValuesFromProps. We use the keys in here to determine\n * if any motion values need to be removed after props are updated.\n */\n this.prevMotionValues = {};\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n /**\n * An object containing an unsubscribe function for each prop event subscription.\n * For example, every \"Update\" event can have multiple subscribers via\n * VisualElement.on(), but only one of those can be defined via the onUpdate prop.\n */\n this.propEventSubscriptions = {};\n this.notifyUpdate = () => this.notify(\"Update\", this.latestValues);\n this.render = () => {\n if (!this.current)\n return;\n this.triggerBuild();\n this.renderInstance(this.current, this.renderState, this.props.style, this.projection);\n };\n this.renderScheduledAt = 0.0;\n this.scheduleRender = () => {\n const now = time.now();\n if (this.renderScheduledAt < now) {\n this.renderScheduledAt = now;\n frame.render(this.render, false, true);\n }\n };\n const { latestValues, renderState } = visualState;\n this.latestValues = latestValues;\n this.baseTarget = { ...latestValues };\n this.initialValues = props.initial ? { ...latestValues } : {};\n this.renderState = renderState;\n this.parent = parent;\n this.props = props;\n this.presenceContext = presenceContext;\n this.depth = parent ? parent.depth + 1 : 0;\n this.reducedMotionConfig = reducedMotionConfig;\n this.options = options;\n this.blockInitialAnimation = Boolean(blockInitialAnimation);\n this.isControllingVariants = isControllingVariants(props);\n this.isVariantNode = isVariantNode(props);\n if (this.isVariantNode) {\n this.variantChildren = new Set();\n }\n this.manuallyAnimateOnMount = Boolean(parent && parent.current);\n /**\n * Any motion values that are provided to the element when created\n * aren't yet bound to the element, as this would technically be impure.\n * However, we iterate through the motion values and set them to the\n * initial values for this component.\n *\n * TODO: This is impure and we should look at changing this to run on mount.\n * Doing so will break some tests but this isn't necessarily a breaking change,\n * more a reflection of the test.\n */\n const { willChange, ...initialMotionValues } = this.scrapeMotionValuesFromProps(props, {}, this);\n for (const key in initialMotionValues) {\n const value = initialMotionValues[key];\n if (latestValues[key] !== undefined && isMotionValue(value)) {\n value.set(latestValues[key], false);\n }\n }\n }\n mount(instance) {\n this.current = instance;\n visualElementStore.set(instance, this);\n if (this.projection && !this.projection.instance) {\n this.projection.mount(instance);\n }\n if (this.parent && this.isVariantNode && !this.isControllingVariants) {\n this.removeFromVariantTree = this.parent.addVariantChild(this);\n }\n this.values.forEach((value, key) => this.bindToMotionValue(key, value));\n if (!hasReducedMotionListener.current) {\n initPrefersReducedMotion();\n }\n this.shouldReduceMotion =\n this.reducedMotionConfig === \"never\"\n ? false\n : this.reducedMotionConfig === \"always\"\n ? true\n : prefersReducedMotion.current;\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(this.shouldReduceMotion !== true, \"You have Reduced Motion enabled on your device. Animations may not appear as expected.\");\n }\n if (this.parent)\n this.parent.children.add(this);\n this.update(this.props, this.presenceContext);\n }\n unmount() {\n this.projection && this.projection.unmount();\n cancelFrame(this.notifyUpdate);\n cancelFrame(this.render);\n this.valueSubscriptions.forEach((remove) => remove());\n this.valueSubscriptions.clear();\n this.removeFromVariantTree && this.removeFromVariantTree();\n this.parent && this.parent.children.delete(this);\n for (const key in this.events) {\n this.events[key].clear();\n }\n for (const key in this.features) {\n const feature = this.features[key];\n if (feature) {\n feature.unmount();\n feature.isMounted = false;\n }\n }\n this.current = null;\n }\n bindToMotionValue(key, value) {\n if (this.valueSubscriptions.has(key)) {\n this.valueSubscriptions.get(key)();\n }\n const valueIsTransform = transformProps.has(key);\n if (valueIsTransform && this.onBindTransform) {\n this.onBindTransform();\n }\n const removeOnChange = value.on(\"change\", (latestValue) => {\n this.latestValues[key] = latestValue;\n this.props.onUpdate && frame.preRender(this.notifyUpdate);\n if (valueIsTransform && this.projection) {\n this.projection.isTransformDirty = true;\n }\n });\n const removeOnRenderRequest = value.on(\"renderRequest\", this.scheduleRender);\n let removeSyncCheck;\n if (window.MotionCheckAppearSync) {\n removeSyncCheck = window.MotionCheckAppearSync(this, key, value);\n }\n this.valueSubscriptions.set(key, () => {\n removeOnChange();\n removeOnRenderRequest();\n if (removeSyncCheck)\n removeSyncCheck();\n if (value.owner)\n value.stop();\n });\n }\n sortNodePosition(other) {\n /**\n * If these nodes aren't even of the same type we can't compare their depth.\n */\n if (!this.current ||\n !this.sortInstanceNodePosition ||\n this.type !== other.type) {\n return 0;\n }\n return this.sortInstanceNodePosition(this.current, other.current);\n }\n updateFeatures() {\n let key = \"animation\";\n for (key in featureDefinitions) {\n const featureDefinition = featureDefinitions[key];\n if (!featureDefinition)\n continue;\n const { isEnabled, Feature: FeatureConstructor } = featureDefinition;\n /**\n * If this feature is enabled but not active, make a new instance.\n */\n if (!this.features[key] &&\n FeatureConstructor &&\n isEnabled(this.props)) {\n this.features[key] = new FeatureConstructor(this);\n }\n /**\n * If we have a feature, mount or update it.\n */\n if (this.features[key]) {\n const feature = this.features[key];\n if (feature.isMounted) {\n feature.update();\n }\n else {\n feature.mount();\n feature.isMounted = true;\n }\n }\n }\n }\n triggerBuild() {\n this.build(this.renderState, this.latestValues, this.props);\n }\n /**\n * Measure the current viewport box with or without transforms.\n * Only measures axis-aligned boxes, rotate and skew must be manually\n * removed with a re-render to work.\n */\n measureViewportBox() {\n return this.current\n ? this.measureInstanceViewportBox(this.current, this.props)\n : createBox();\n }\n getStaticValue(key) {\n return this.latestValues[key];\n }\n setStaticValue(key, value) {\n this.latestValues[key] = value;\n }\n /**\n * Update the provided props. Ensure any newly-added motion values are\n * added to our map, old ones removed, and listeners updated.\n */\n update(props, presenceContext) {\n if (props.transformTemplate || this.props.transformTemplate) {\n this.scheduleRender();\n }\n this.prevProps = this.props;\n this.props = props;\n this.prevPresenceContext = this.presenceContext;\n this.presenceContext = presenceContext;\n /**\n * Update prop event handlers ie onAnimationStart, onAnimationComplete\n */\n for (let i = 0; i < propEventHandlers.length; i++) {\n const key = propEventHandlers[i];\n if (this.propEventSubscriptions[key]) {\n this.propEventSubscriptions[key]();\n delete this.propEventSubscriptions[key];\n }\n const listenerName = (\"on\" + key);\n const listener = props[listenerName];\n if (listener) {\n this.propEventSubscriptions[key] = this.on(key, listener);\n }\n }\n this.prevMotionValues = updateMotionValuesFromProps(this, this.scrapeMotionValuesFromProps(props, this.prevProps, this), this.prevMotionValues);\n if (this.handleChildMotionValue) {\n this.handleChildMotionValue();\n }\n }\n getProps() {\n return this.props;\n }\n /**\n * Returns the variant definition with a given name.\n */\n getVariant(name) {\n return this.props.variants ? this.props.variants[name] : undefined;\n }\n /**\n * Returns the defined default transition on this component.\n */\n getDefaultTransition() {\n return this.props.transition;\n }\n getTransformPagePoint() {\n return this.props.transformPagePoint;\n }\n getClosestVariantNode() {\n return this.isVariantNode\n ? this\n : this.parent\n ? this.parent.getClosestVariantNode()\n : undefined;\n }\n /**\n * Add a child visual element to our set of children.\n */\n addVariantChild(child) {\n const closestVariantNode = this.getClosestVariantNode();\n if (closestVariantNode) {\n closestVariantNode.variantChildren &&\n closestVariantNode.variantChildren.add(child);\n return () => closestVariantNode.variantChildren.delete(child);\n }\n }\n /**\n * Add a motion value and bind it to this visual element.\n */\n addValue(key, value) {\n // Remove existing value if it exists\n const existingValue = this.values.get(key);\n if (value !== existingValue) {\n if (existingValue)\n this.removeValue(key);\n this.bindToMotionValue(key, value);\n this.values.set(key, value);\n this.latestValues[key] = value.get();\n }\n }\n /**\n * Remove a motion value and unbind any active subscriptions.\n */\n removeValue(key) {\n this.values.delete(key);\n const unsubscribe = this.valueSubscriptions.get(key);\n if (unsubscribe) {\n unsubscribe();\n this.valueSubscriptions.delete(key);\n }\n delete this.latestValues[key];\n this.removeValueFromRenderState(key, this.renderState);\n }\n /**\n * Check whether we have a motion value for this key\n */\n hasValue(key) {\n return this.values.has(key);\n }\n getValue(key, defaultValue) {\n if (this.props.values && this.props.values[key]) {\n return this.props.values[key];\n }\n let value = this.values.get(key);\n if (value === undefined && defaultValue !== undefined) {\n value = motionValue(defaultValue === null ? undefined : defaultValue, { owner: this });\n this.addValue(key, value);\n }\n return value;\n }\n /**\n * If we're trying to animate to a previously unencountered value,\n * we need to check for it in our state and as a last resort read it\n * directly from the instance (which might have performance implications).\n */\n readValue(key, target) {\n let value = this.latestValues[key] !== undefined || !this.current\n ? this.latestValues[key]\n : this.getBaseTargetFromProps(this.props, key) ??\n this.readValueFromInstance(this.current, key, this.options);\n if (value !== undefined && value !== null) {\n if (typeof value === \"string\" &&\n (isNumericalString(value) || isZeroValueString(value))) {\n // If this is a number read as a string, ie \"0\" or \"200\", convert it to a number\n value = parseFloat(value);\n }\n else if (!findValueType(value) && complex.test(target)) {\n value = getAnimatableNone(key, target);\n }\n this.setBaseTarget(key, isMotionValue(value) ? value.get() : value);\n }\n return isMotionValue(value) ? value.get() : value;\n }\n /**\n * Set the base target to later animate back to. This is currently\n * only hydrated on creation and when we first read a value.\n */\n setBaseTarget(key, value) {\n this.baseTarget[key] = value;\n }\n /**\n * Find the base target for a value thats been removed from all animation\n * props.\n */\n getBaseTarget(key) {\n const { initial } = this.props;\n let valueFromInitial;\n if (typeof initial === \"string\" || typeof initial === \"object\") {\n const variant = resolveVariantFromProps(this.props, initial, this.presenceContext?.custom);\n if (variant) {\n valueFromInitial = variant[key];\n }\n }\n /**\n * If this value still exists in the current initial variant, read that.\n */\n if (initial && valueFromInitial !== undefined) {\n return valueFromInitial;\n }\n /**\n * Alternatively, if this VisualElement config has defined a getBaseTarget\n * so we can read the value from an alternative source, try that.\n */\n const target = this.getBaseTargetFromProps(this.props, key);\n if (target !== undefined && !isMotionValue(target))\n return target;\n /**\n * If the value was initially defined on initial, but it doesn't any more,\n * return undefined. Otherwise return the value as initially read from the DOM.\n */\n return this.initialValues[key] !== undefined &&\n valueFromInitial === undefined\n ? undefined\n : this.baseTarget[key];\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n return this.events[eventName].add(callback);\n }\n notify(eventName, ...args) {\n if (this.events[eventName]) {\n this.events[eventName].notify(...args);\n }\n }\n}\n\nexport { VisualElement };\n"],"names":["propEventHandlers","scrapeMotionValuesFromProps","_props","_prevProps","_visualElement","constructor","_ref","parent","props","presenceContext","reducedMotionConfig","blockInitialAnimation","visualState","options","arguments","length","undefined","this","current","children","Set","isVariantNode","isControllingVariants","shouldReduceMotion","values","Map","KeyframeResolver","features","valueSubscriptions","prevMotionValues","events","propEventSubscriptions","notifyUpdate","notify","latestValues","render","triggerBuild","renderInstance","renderState","style","projection","renderScheduledAt","scheduleRender","now","time","frame","baseTarget","initialValues","initial","depth","Boolean","variantChildren","manuallyAnimateOnMount","willChange","initialMotionValues","key","value","isMotionValue","set","mount","instance","visualElementStore","removeFromVariantTree","addVariantChild","forEach","bindToMotionValue","hasReducedMotionListener","initPrefersReducedMotion","prefersReducedMotion","process","env","NODE_ENV","warnOnce","add","update","unmount","cancelFrame","remove","clear","delete","feature","isMounted","has","get","valueIsTransform","transformProps","onBindTransform","removeOnChange","on","latestValue","onUpdate","preRender","isTransformDirty","removeOnRenderRequest","removeSyncCheck","window","MotionCheckAppearSync","owner","stop","sortNodePosition","other","sortInstanceNodePosition","type","updateFeatures","featureDefinitions","featureDefinition","isEnabled","Feature","FeatureConstructor","build","measureViewportBox","measureInstanceViewportBox","createBox","getStaticValue","setStaticValue","transformTemplate","prevProps","prevPresenceContext","i","listener","updateMotionValuesFromProps","handleChildMotionValue","getProps","getVariant","name","variants","getDefaultTransition","transition","getTransformPagePoint","transformPagePoint","getClosestVariantNode","child","closestVariantNode","addValue","existingValue","removeValue","unsubscribe","removeValueFromRenderState","hasValue","getValue","defaultValue","motionValue","readValue","target","getBaseTargetFromProps","readValueFromInstance","isNumericalString","isZeroValueString","parseFloat","findValueType","complex","test","getAnimatableNone","setBaseTarget","getBaseTarget","valueFromInitial","variant","resolveVariantFromProps","custom","eventName","callback","SubscriptionManager","_len","args","Array","_key"],"mappings":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,GAAIP,QAAgChC,IAArB2I,EACX,OAAOA,EAMX,MAAMZ,EAAS9H,KAAK+H,uBAAuB/H,KAAKT,MAAO+C,GACvD,YAAevC,IAAX+H,GAAyBtF,EAAaA,cAACsF,QAMR/H,IAA5BC,KAAK8B,cAAcQ,SACDvC,IAArB2I,OACE3I,EACAC,KAAK6B,WAAWS,GARXwF,CASf,CACAvD,EAAAA,CAAGuE,EAAWC,GAIV,OAHK/I,KAAKa,OAAOiI,KACb9I,KAAKa,OAAOiI,GAAa,IAAIE,EAAmBA,qBAE7ChJ,KAAKa,OAAOiI,GAAWtF,IAAIuF,EACtC,CACA/H,MAAAA,CAAO8H,GACH,GAAI9I,KAAKa,OAAOiI,GAAY,CAAA,IAAAG,IAAAA,EAAApJ,UAAAC,OADXoJ,MAAIC,MAAAF,EAAAA,EAAAA,OAAAG,EAAA,EAAAA,EAAAH,EAAAG,IAAJF,EAAIE,EAAAvJ,GAAAA,UAAAuJ,GAEjBpJ,KAAKa,OAAOiI,GAAW9H,UAAUkI,EACrC,CACJ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../motion/index.mjs.js"),o=require("../dom/use-render.mjs.js"),r=require("../dom/utils/is-svg-component.mjs.js"),n=require("../html/config-motion.mjs.js"),t=require("../svg/config-motion.mjs.js");exports.createMotionComponentFactory=function(s,i){return function(m,{forwardMotionProps:u}={forwardMotionProps:!1}){const c={...r.isSVGComponent(m)?t.svgMotionConfig:n.htmlMotionConfig,preloadedFeatures:s,useRender:o.createUseRender(u),createVisualElement:i,Component:m};return e.createRendererMotionComponent(c)}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../motion/index.mjs.js"),o=require("../dom/use-render.mjs.js"),r=require("../dom/utils/is-svg-component.mjs.js"),n=require("../html/config-motion.mjs.js"),t=require("../svg/config-motion.mjs.js");exports.createMotionComponentFactory=function(s,i){return function(m){let{forwardMotionProps:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};const d={...r.isSVGComponent(m)?t.svgMotionConfig:n.htmlMotionConfig,preloadedFeatures:s,useRender:o.createUseRender(u),createVisualElement:i,Component:m};return e.createRendererMotionComponent(d)}};
2
2
  //# sourceMappingURL=create-factory.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-factory.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/components/create-factory.mjs"],"sourcesContent":["import { createRendererMotionComponent } from '../../motion/index.mjs';\nimport { createUseRender } from '../dom/use-render.mjs';\nimport { isSVGComponent } from '../dom/utils/is-svg-component.mjs';\nimport { htmlMotionConfig } from '../html/config-motion.mjs';\nimport { svgMotionConfig } from '../svg/config-motion.mjs';\n\nfunction createMotionComponentFactory(preloadedFeatures, createVisualElement) {\n return function createMotionComponent(Component, { forwardMotionProps } = { forwardMotionProps: false }) {\n const baseConfig = isSVGComponent(Component)\n ? svgMotionConfig\n : htmlMotionConfig;\n const config = {\n ...baseConfig,\n preloadedFeatures,\n useRender: createUseRender(forwardMotionProps),\n createVisualElement,\n Component,\n };\n return createRendererMotionComponent(config);\n };\n}\n\nexport { createMotionComponentFactory };\n"],"names":["preloadedFeatures","createVisualElement","Component","forwardMotionProps","config","isSVGComponent","svgMotionConfig","htmlMotionConfig","useRender","createUseRender","createRendererMotionComponent"],"mappings":"+TAMA,SAAsCA,EAAmBC,GACrD,OAAO,SAA+BC,GAAWC,mBAAEA,GAAuB,CAAEA,oBAAoB,IAC5F,MAGMC,EAAS,IAHIC,EAAcA,eAACH,GAC5BI,EAAAA,gBACAC,EAAAA,iBAGFP,oBACAQ,UAAWC,EAAeA,gBAACN,GAC3BF,sBACAC,aAEJ,OAAOQ,EAAAA,8BAA8BN,GAE7C"}
1
+ {"version":3,"file":"create-factory.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/components/create-factory.mjs"],"sourcesContent":["import { createRendererMotionComponent } from '../../motion/index.mjs';\nimport { createUseRender } from '../dom/use-render.mjs';\nimport { isSVGComponent } from '../dom/utils/is-svg-component.mjs';\nimport { htmlMotionConfig } from '../html/config-motion.mjs';\nimport { svgMotionConfig } from '../svg/config-motion.mjs';\n\nfunction createMotionComponentFactory(preloadedFeatures, createVisualElement) {\n return function createMotionComponent(Component, { forwardMotionProps } = { forwardMotionProps: false }) {\n const baseConfig = isSVGComponent(Component)\n ? svgMotionConfig\n : htmlMotionConfig;\n const config = {\n ...baseConfig,\n preloadedFeatures,\n useRender: createUseRender(forwardMotionProps),\n createVisualElement,\n Component,\n };\n return createRendererMotionComponent(config);\n };\n}\n\nexport { createMotionComponentFactory };\n"],"names":["preloadedFeatures","createVisualElement","Component","forwardMotionProps","arguments","length","undefined","config","isSVGComponent","svgMotionConfig","htmlMotionConfig","useRender","createUseRender","createRendererMotionComponent"],"mappings":"+TAMA,SAAsCA,EAAmBC,GACrD,OAAO,SAA+BC,GAAmE,IAAxDC,mBAAEA,GAAoBC,UAAAC,OAAA,QAAAC,IAAAF,UAAAE,GAAAF,UAAG,GAAA,CAAED,oBAAoB,GAC5F,MAGMI,EAAS,IAHIC,EAAcA,eAACN,GAC5BO,EAAAA,gBACAC,EAAAA,iBAGFV,oBACAW,UAAWC,EAAeA,gBAACT,GAC3BF,sBACAC,aAEJ,OAAOW,EAAAA,8BAA8BN,GAE7C"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../motion-utils/dist/es/warn-once.mjs.js");exports.createDOMMotionComponentProxy=function(t){if("undefined"==typeof Proxy)return t;const o=new Map;return new Proxy(((...o)=>("production"!==process.env.NODE_ENV&&e.warnOnce(!1,"motion() is deprecated. Use motion.create() instead."),t(...o))),{get:(e,n)=>"create"===n?t:(o.has(n)||o.set(n,t(n)),o.get(n))})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../motion-utils/dist/es/warn-once.mjs.js");exports.createDOMMotionComponentProxy=function(t){if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy((function(){return"production"!==process.env.NODE_ENV&&e.warnOnce(!1,"motion() is deprecated. Use motion.create() instead."),t(...arguments)}),{get:(e,o)=>"create"===o?t:(n.has(o)||n.set(o,t(o)),n.get(o))})};
2
2
  //# sourceMappingURL=create-proxy.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-proxy.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/components/create-proxy.mjs"],"sourcesContent":["import { warnOnce } from 'motion-utils';\n\nfunction createDOMMotionComponentProxy(componentFactory) {\n if (typeof Proxy === \"undefined\") {\n return componentFactory;\n }\n /**\n * A cache of generated `motion` components, e.g `motion.div`, `motion.input` etc.\n * Rather than generating them anew every render.\n */\n const componentCache = new Map();\n const deprecatedFactoryFunction = (...args) => {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, \"motion() is deprecated. Use motion.create() instead.\");\n }\n return componentFactory(...args);\n };\n return new Proxy(deprecatedFactoryFunction, {\n /**\n * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.\n * The prop name is passed through as `key` and we can use that to generate a `motion`\n * DOM component with that name.\n */\n get: (_target, key) => {\n if (key === \"create\")\n return componentFactory;\n /**\n * If this element doesn't exist in the component cache, create it and cache.\n */\n if (!componentCache.has(key)) {\n componentCache.set(key, componentFactory(key));\n }\n return componentCache.get(key);\n },\n });\n}\n\nexport { createDOMMotionComponentProxy };\n"],"names":["componentFactory","Proxy","componentCache","Map","deprecatedFactoryFunction","args","process","env","NODE_ENV","warnOnce","get","_target","key","has","set"],"mappings":"gLAEA,SAAuCA,GACnC,GAAqB,oBAAVC,MACP,OAAOD,EAMX,MAAME,EAAiB,IAAIC,IAO3B,OAAO,IAAIF,OANuBG,IAAIC,KACL,eAAzBC,QAAQC,IAAIC,UACZC,YAAS,EAAO,wDAEbT,KAAoBK,KAEa,CAMxCK,IAAKA,CAACC,EAASC,IACC,WAARA,EACOZ,GAINE,EAAeW,IAAID,IACpBV,EAAeY,IAAIF,EAAKZ,EAAiBY,IAEtCV,EAAeQ,IAAIE,KAGtC"}
1
+ {"version":3,"file":"create-proxy.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/components/create-proxy.mjs"],"sourcesContent":["import { warnOnce } from 'motion-utils';\n\nfunction createDOMMotionComponentProxy(componentFactory) {\n if (typeof Proxy === \"undefined\") {\n return componentFactory;\n }\n /**\n * A cache of generated `motion` components, e.g `motion.div`, `motion.input` etc.\n * Rather than generating them anew every render.\n */\n const componentCache = new Map();\n const deprecatedFactoryFunction = (...args) => {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, \"motion() is deprecated. Use motion.create() instead.\");\n }\n return componentFactory(...args);\n };\n return new Proxy(deprecatedFactoryFunction, {\n /**\n * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.\n * The prop name is passed through as `key` and we can use that to generate a `motion`\n * DOM component with that name.\n */\n get: (_target, key) => {\n if (key === \"create\")\n return componentFactory;\n /**\n * If this element doesn't exist in the component cache, create it and cache.\n */\n if (!componentCache.has(key)) {\n componentCache.set(key, componentFactory(key));\n }\n return componentCache.get(key);\n },\n });\n}\n\nexport { createDOMMotionComponentProxy };\n"],"names":["componentFactory","Proxy","componentCache","Map","process","env","NODE_ENV","warnOnce","arguments","get","_target","key","has","set"],"mappings":"gLAEA,SAAuCA,GACnC,GAAqB,oBAAVC,MACP,OAAOD,EAMX,MAAME,EAAiB,IAAIC,IAO3B,OAAO,IAAIF,OANuB,WAI9B,MAH6B,eAAzBG,QAAQC,IAAIC,UACZC,YAAS,EAAO,wDAEbP,KAAiBQ,aAEgB,CAMxCC,IAAKA,CAACC,EAASC,IACC,WAARA,EACOX,GAINE,EAAeU,IAAID,IACpBT,EAAeW,IAAIF,EAAKX,EAAiBW,IAEtCT,EAAeO,IAAIE,KAGtC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../value/utils/is-motion-value.mjs.js"),t=require("../VisualElement.mjs.js"),s=require("../../../../../motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js");class i extends t.VisualElement{constructor(){super(...arguments),this.KeyframeResolver=s.DOMKeyframesResolver}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:s}){delete t[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;e.isMotionValue(t)&&(this.childSubscription=t.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}exports.DOMVisualElement=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../value/utils/is-motion-value.mjs.js"),t=require("../VisualElement.mjs.js"),s=require("../../../../../motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js");class i extends t.VisualElement{constructor(){super(...arguments),this.KeyframeResolver=s.DOMKeyframesResolver}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let{vars:s,style:i}=t;delete s[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;e.isMotionValue(t)&&(this.childSubscription=t.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}exports.DOMVisualElement=i;
2
2
  //# sourceMappingURL=DOMVisualElement.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DOMVisualElement.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs"],"sourcesContent":["import { DOMKeyframesResolver } from 'motion-dom';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\nimport { VisualElement } from '../VisualElement.mjs';\n\nclass DOMVisualElement extends VisualElement {\n constructor() {\n super(...arguments);\n this.KeyframeResolver = DOMKeyframesResolver;\n }\n sortInstanceNodePosition(a, b) {\n /**\n * compareDocumentPosition returns a bitmask, by using the bitwise &\n * we're returning true if 2 in that bitmask is set to true. 2 is set\n * to true if b preceeds a.\n */\n return a.compareDocumentPosition(b) & 2 ? 1 : -1;\n }\n getBaseTargetFromProps(props, key) {\n return props.style\n ? props.style[key]\n : undefined;\n }\n removeValueFromRenderState(key, { vars, style }) {\n delete vars[key];\n delete style[key];\n }\n handleChildMotionValue() {\n if (this.childSubscription) {\n this.childSubscription();\n delete this.childSubscription;\n }\n const { children } = this.props;\n if (isMotionValue(children)) {\n this.childSubscription = children.on(\"change\", (latest) => {\n if (this.current) {\n this.current.textContent = `${latest}`;\n }\n });\n }\n }\n}\n\nexport { DOMVisualElement };\n"],"names":["DOMVisualElement","VisualElement","constructor","super","arguments","this","KeyframeResolver","DOMKeyframesResolver","sortInstanceNodePosition","a","b","compareDocumentPosition","getBaseTargetFromProps","props","key","style","undefined","removeValueFromRenderState","vars","handleChildMotionValue","childSubscription","children","isMotionValue","on","latest","current","textContent"],"mappings":"kQAIA,MAAMA,UAAyBC,EAAAA,cAC3BC,WAAAA,GACIC,SAASC,WACTC,KAAKC,iBAAmBC,sBAC5B,CACAC,wBAAAA,CAAyBC,EAAGC,GAMxB,OAAsC,EAA/BD,EAAEE,wBAAwBD,GAAS,GAAK,CACnD,CACAE,sBAAAA,CAAuBC,EAAOC,GAC1B,OAAOD,EAAME,MACPF,EAAME,MAAMD,QACZE,CACV,CACAC,0BAAAA,CAA2BH,GAAKI,KAAEA,EAAIH,MAAEA,WAC7BG,EAAKJ,UACLC,EAAMD,EACjB,CACAK,sBAAAA,GACQd,KAAKe,oBACLf,KAAKe,2BACEf,KAAKe,mBAEhB,MAAMC,SAAEA,GAAahB,KAAKQ,MACtBS,EAAAA,cAAcD,KACdhB,KAAKe,kBAAoBC,EAASE,GAAG,UAAWC,IACxCnB,KAAKoB,UACLpB,KAAKoB,QAAQC,YAAc,GAAGF,IAClC,IAGZ"}
1
+ {"version":3,"file":"DOMVisualElement.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.mjs"],"sourcesContent":["import { DOMKeyframesResolver } from 'motion-dom';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\nimport { VisualElement } from '../VisualElement.mjs';\n\nclass DOMVisualElement extends VisualElement {\n constructor() {\n super(...arguments);\n this.KeyframeResolver = DOMKeyframesResolver;\n }\n sortInstanceNodePosition(a, b) {\n /**\n * compareDocumentPosition returns a bitmask, by using the bitwise &\n * we're returning true if 2 in that bitmask is set to true. 2 is set\n * to true if b preceeds a.\n */\n return a.compareDocumentPosition(b) & 2 ? 1 : -1;\n }\n getBaseTargetFromProps(props, key) {\n return props.style\n ? props.style[key]\n : undefined;\n }\n removeValueFromRenderState(key, { vars, style }) {\n delete vars[key];\n delete style[key];\n }\n handleChildMotionValue() {\n if (this.childSubscription) {\n this.childSubscription();\n delete this.childSubscription;\n }\n const { children } = this.props;\n if (isMotionValue(children)) {\n this.childSubscription = children.on(\"change\", (latest) => {\n if (this.current) {\n this.current.textContent = `${latest}`;\n }\n });\n }\n }\n}\n\nexport { DOMVisualElement };\n"],"names":["DOMVisualElement","VisualElement","constructor","super","arguments","this","KeyframeResolver","DOMKeyframesResolver","sortInstanceNodePosition","a","b","compareDocumentPosition","getBaseTargetFromProps","props","key","style","undefined","removeValueFromRenderState","_ref","vars","handleChildMotionValue","childSubscription","children","isMotionValue","on","latest","current","textContent"],"mappings":"kQAIA,MAAMA,UAAyBC,EAAAA,cAC3BC,WAAAA,GACIC,SAASC,WACTC,KAAKC,iBAAmBC,sBAC5B,CACAC,wBAAAA,CAAyBC,EAAGC,GAMxB,OAAsC,EAA/BD,EAAEE,wBAAwBD,GAAS,GAAK,CACnD,CACAE,sBAAAA,CAAuBC,EAAOC,GAC1B,OAAOD,EAAME,MACPF,EAAME,MAAMD,QACZE,CACV,CACAC,0BAAAA,CAA2BH,EAAGI,GAAmB,IAAjBC,KAAEA,EAAIJ,MAAEA,GAAOG,SACpCC,EAAKL,UACLC,EAAMD,EACjB,CACAM,sBAAAA,GACQf,KAAKgB,oBACLhB,KAAKgB,2BACEhB,KAAKgB,mBAEhB,MAAMC,SAAEA,GAAajB,KAAKQ,MACtBU,EAAAA,cAAcD,KACdjB,KAAKgB,kBAAoBC,EAASE,GAAG,UAAWC,IACxCpB,KAAKqB,UACLrB,KAAKqB,QAAQC,YAAc,GAAGF,IAClC,IAGZ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),s=require("../html/use-props.mjs.js"),r=require("./utils/filter-props.mjs.js"),t=require("./utils/is-svg-component.mjs.js"),u=require("../svg/use-props.mjs.js"),i=require("../../value/utils/is-motion-value.mjs.js");exports.createUseRender=function(o=!1){return(n,l,p,{latestValues:m},a)=>{const j=(t.isSVGComponent(n)?u.useSVGProps:s.useHTMLProps)(l,m,a,n),c=r.filterProps(l,"string"==typeof n,o),f=n!==e.Fragment?{...c,...j,ref:p}:{},{children:q}=l,v=e.useMemo((()=>i.isMotionValue(q)?q.get():q),[q]);return e.createElement(n,{...f,children:v})}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),s=require("../html/use-props.mjs.js"),r=require("./utils/filter-props.mjs.js"),t=require("./utils/is-svg-component.mjs.js"),i=require("../svg/use-props.mjs.js"),u=require("../../value/utils/is-motion-value.mjs.js");exports.createUseRender=function(){let o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(l,n,p,m,a)=>{let{latestValues:j}=m;const c=(t.isSVGComponent(l)?i.useSVGProps:s.useHTMLProps)(n,j,a,l),v=r.filterProps(n,"string"==typeof l,o),d=l!==e.Fragment?{...v,...c,ref:p}:{},{children:f}=n,g=e.useMemo((()=>u.isMotionValue(f)?f.get():f),[f]);return e.createElement(l,{...d,children:g})}};
2
2
  //# sourceMappingURL=use-render.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-render.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/dom/use-render.mjs"],"sourcesContent":["import { Fragment, useMemo, createElement } from 'react';\nimport { useHTMLProps } from '../html/use-props.mjs';\nimport { filterProps } from './utils/filter-props.mjs';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\nimport { useSVGProps } from '../svg/use-props.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction createUseRender(forwardMotionProps = false) {\n const useRender = (Component, props, ref, { latestValues }, isStatic) => {\n const useVisualProps = isSVGComponent(Component)\n ? useSVGProps\n : useHTMLProps;\n const visualProps = useVisualProps(props, latestValues, isStatic, Component);\n const filteredProps = filterProps(props, typeof Component === \"string\", forwardMotionProps);\n const elementProps = Component !== Fragment\n ? { ...filteredProps, ...visualProps, ref }\n : {};\n /**\n * If component has been handed a motion value as its child,\n * memoise its initial value and render that. Subsequent updates\n * will be handled by the onChange handler\n */\n const { children } = props;\n const renderedChildren = useMemo(() => (isMotionValue(children) ? children.get() : children), [children]);\n return createElement(Component, {\n ...elementProps,\n children: renderedChildren,\n });\n };\n return useRender;\n}\n\nexport { createUseRender };\n"],"names":["forwardMotionProps","useRender","Component","props","ref","latestValues","isStatic","visualProps","isSVGComponent","useSVGProps","useHTMLProps","filteredProps","filterProps","elementProps","Fragment","children","renderedChildren","useMemo","isMotionValue","get","createElement"],"mappings":"0UAOA,SAAyBA,GAAqB,GAsB1C,MArBkBC,CAACC,EAAWC,EAAOC,GAAOC,gBAAgBC,KACxD,MAGMC,GAHiBC,EAAcA,eAACN,GAChCO,EAAAA,YACAC,EAAAA,cAC6BP,EAAOE,EAAcC,EAAUJ,GAC5DS,EAAgBC,EAAAA,YAAYT,EAA4B,iBAAdD,EAAwBF,GAClEa,EAAeX,IAAcY,WAC7B,IAAKH,KAAkBJ,EAAaH,OACpC,IAMAW,SAAEA,GAAaZ,EACfa,EAAmBC,EAAAA,SAAQ,IAAOC,EAAAA,cAAcH,GAAYA,EAASI,MAAQJ,GAAW,CAACA,IAC/F,OAAOK,EAAAA,cAAclB,EAAW,IACzBW,EACHE,SAAUC,GACZ,CAGV"}
1
+ {"version":3,"file":"use-render.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/dom/use-render.mjs"],"sourcesContent":["import { Fragment, useMemo, createElement } from 'react';\nimport { useHTMLProps } from '../html/use-props.mjs';\nimport { filterProps } from './utils/filter-props.mjs';\nimport { isSVGComponent } from './utils/is-svg-component.mjs';\nimport { useSVGProps } from '../svg/use-props.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\n\nfunction createUseRender(forwardMotionProps = false) {\n const useRender = (Component, props, ref, { latestValues }, isStatic) => {\n const useVisualProps = isSVGComponent(Component)\n ? useSVGProps\n : useHTMLProps;\n const visualProps = useVisualProps(props, latestValues, isStatic, Component);\n const filteredProps = filterProps(props, typeof Component === \"string\", forwardMotionProps);\n const elementProps = Component !== Fragment\n ? { ...filteredProps, ...visualProps, ref }\n : {};\n /**\n * If component has been handed a motion value as its child,\n * memoise its initial value and render that. Subsequent updates\n * will be handled by the onChange handler\n */\n const { children } = props;\n const renderedChildren = useMemo(() => (isMotionValue(children) ? children.get() : children), [children]);\n return createElement(Component, {\n ...elementProps,\n children: renderedChildren,\n });\n };\n return useRender;\n}\n\nexport { createUseRender };\n"],"names":["forwardMotionProps","arguments","length","undefined","useRender","Component","props","ref","_ref","isStatic","latestValues","visualProps","isSVGComponent","useSVGProps","useHTMLProps","filteredProps","filterProps","elementProps","Fragment","children","renderedChildren","useMemo","isMotionValue","get","createElement"],"mappings":"0UAOA,WAAqD,IAA5BA,EAAkBC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,IAAAA,UAAA,GAsBvC,MArBkBG,CAACC,EAAWC,EAAOC,EAAGC,EAAoBC,KAAa,IAA/BC,aAAEA,GAAcF,EACtD,MAGMG,GAHiBC,EAAcA,eAACP,GAChCQ,EAAAA,YACAC,EAAAA,cAC6BR,EAAOI,EAAcD,EAAUJ,GAC5DU,EAAgBC,EAAAA,YAAYV,EAA4B,iBAAdD,EAAwBL,GAClEiB,EAAeZ,IAAca,WAC7B,IAAKH,KAAkBJ,EAAaJ,OACpC,IAMAY,SAAEA,GAAab,EACfc,EAAmBC,EAAAA,SAAQ,IAAOC,EAAAA,cAAcH,GAAYA,EAASI,MAAQJ,GAAW,CAACA,IAC/F,OAAOK,EAAAA,cAAcnB,EAAW,IACzBY,EACHE,SAAUC,GACZ,CAGV"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../projection/utils/measure.mjs.js"),r=require("../dom/DOMVisualElement.mjs.js"),s=require("./utils/build-styles.mjs.js"),t=require("./utils/render.mjs.js"),o=require("./utils/scrape-motion-values.mjs.js"),i=require("../../../../../motion-dom/dist/es/render/utils/keys-transform.mjs.js"),n=require("../../../../../motion-dom/dist/es/render/dom/parse-transform.mjs.js"),u=require("../../../../../motion-dom/dist/es/animation/utils/is-css-variable.mjs.js");function a(e){return window.getComputedStyle(e)}class m extends r.DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=t.renderHTML}readValueFromInstance(e,r){if(i.transformProps.has(r))return n.readTransformValue(e,r);{const s=a(e),t=(u.isCSSVariableName(r)?s.getPropertyValue(r):s[r])||0;return"string"==typeof t?t.trim():t}}measureInstanceViewportBox(r,{transformPagePoint:s}){return e.measureViewportBox(r,s)}build(e,r,t){s.buildHTMLStyles(e,r,t.transformTemplate)}scrapeMotionValuesFromProps(e,r,s){return o.scrapeMotionValuesFromProps(e,r,s)}}exports.HTMLVisualElement=m,exports.getComputedStyle=a;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../projection/utils/measure.mjs.js"),r=require("../dom/DOMVisualElement.mjs.js"),s=require("./utils/build-styles.mjs.js"),t=require("./utils/render.mjs.js"),o=require("./utils/scrape-motion-values.mjs.js"),i=require("../../../../../motion-dom/dist/es/render/utils/keys-transform.mjs.js"),n=require("../../../../../motion-dom/dist/es/render/dom/parse-transform.mjs.js"),u=require("../../../../../motion-dom/dist/es/animation/utils/is-css-variable.mjs.js");function a(e){return window.getComputedStyle(e)}class m extends r.DOMVisualElement{constructor(){super(...arguments),this.type="html",this.renderInstance=t.renderHTML}readValueFromInstance(e,r){if(i.transformProps.has(r))return n.readTransformValue(e,r);{const s=a(e),t=(u.isCSSVariableName(r)?s.getPropertyValue(r):s[r])||0;return"string"==typeof t?t.trim():t}}measureInstanceViewportBox(r,s){let{transformPagePoint:t}=s;return e.measureViewportBox(r,t)}build(e,r,t){s.buildHTMLStyles(e,r,t.transformTemplate)}scrapeMotionValuesFromProps(e,r,s){return o.scrapeMotionValuesFromProps(e,r,s)}}exports.HTMLVisualElement=m,exports.getComputedStyle=a;
2
2
  //# sourceMappingURL=HTMLVisualElement.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HTMLVisualElement.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs"],"sourcesContent":["import { transformProps, readTransformValue, isCSSVariableName } from 'motion-dom';\nimport { measureViewportBox } from '../../projection/utils/measure.mjs';\nimport { DOMVisualElement } from '../dom/DOMVisualElement.mjs';\nimport { buildHTMLStyles } from './utils/build-styles.mjs';\nimport { renderHTML } from './utils/render.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\n\nfunction getComputedStyle(element) {\n return window.getComputedStyle(element);\n}\nclass HTMLVisualElement extends DOMVisualElement {\n constructor() {\n super(...arguments);\n this.type = \"html\";\n this.renderInstance = renderHTML;\n }\n readValueFromInstance(instance, key) {\n if (transformProps.has(key)) {\n return readTransformValue(instance, key);\n }\n else {\n const computedStyle = getComputedStyle(instance);\n const value = (isCSSVariableName(key)\n ? computedStyle.getPropertyValue(key)\n : computedStyle[key]) || 0;\n return typeof value === \"string\" ? value.trim() : value;\n }\n }\n measureInstanceViewportBox(instance, { transformPagePoint }) {\n return measureViewportBox(instance, transformPagePoint);\n }\n build(renderState, latestValues, props) {\n buildHTMLStyles(renderState, latestValues, props.transformTemplate);\n }\n scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n return scrapeMotionValuesFromProps(props, prevProps, visualElement);\n }\n}\n\nexport { HTMLVisualElement, getComputedStyle };\n"],"names":["getComputedStyle","element","window","HTMLVisualElement","DOMVisualElement","constructor","super","arguments","this","type","renderInstance","renderHTML","readValueFromInstance","instance","key","transformProps","has","readTransformValue","computedStyle","value","isCSSVariableName","getPropertyValue","trim","measureInstanceViewportBox","transformPagePoint","measureViewportBox","build","renderState","latestValues","props","buildHTMLStyles","transformTemplate","scrapeMotionValuesFromProps","prevProps","visualElement"],"mappings":"6hBAOA,SAASA,EAAiBC,GACtB,OAAOC,OAAOF,iBAAiBC,EACnC,CACA,MAAME,UAA0BC,EAAAA,iBAC5BC,WAAAA,GACIC,SAASC,WACTC,KAAKC,KAAO,OACZD,KAAKE,eAAiBC,YAC1B,CACAC,qBAAAA,CAAsBC,EAAUC,GAC5B,GAAIC,EAAcA,eAACC,IAAIF,GACnB,OAAOG,EAAkBA,mBAACJ,EAAUC,GAEnC,CACD,MAAMI,EAAgBlB,EAAiBa,GACjCM,GAASC,oBAAkBN,GAC3BI,EAAcG,iBAAiBP,GAC/BI,EAAcJ,KAAS,EAC7B,MAAwB,iBAAVK,EAAqBA,EAAMG,OAASH,CACtD,CACJ,CACAI,0BAAAA,CAA2BV,GAAUW,mBAAEA,IACnC,OAAOC,EAAkBA,mBAACZ,EAAUW,EACxC,CACAE,KAAAA,CAAMC,EAAaC,EAAcC,GAC7BC,EAAAA,gBAAgBH,EAAaC,EAAcC,EAAME,kBACrD,CACAC,2BAAAA,CAA4BH,EAAOI,EAAWC,GAC1C,OAAOF,8BAA4BH,EAAOI,EAAWC,EACzD"}
1
+ {"version":3,"file":"HTMLVisualElement.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.mjs"],"sourcesContent":["import { transformProps, readTransformValue, isCSSVariableName } from 'motion-dom';\nimport { measureViewportBox } from '../../projection/utils/measure.mjs';\nimport { DOMVisualElement } from '../dom/DOMVisualElement.mjs';\nimport { buildHTMLStyles } from './utils/build-styles.mjs';\nimport { renderHTML } from './utils/render.mjs';\nimport { scrapeMotionValuesFromProps } from './utils/scrape-motion-values.mjs';\n\nfunction getComputedStyle(element) {\n return window.getComputedStyle(element);\n}\nclass HTMLVisualElement extends DOMVisualElement {\n constructor() {\n super(...arguments);\n this.type = \"html\";\n this.renderInstance = renderHTML;\n }\n readValueFromInstance(instance, key) {\n if (transformProps.has(key)) {\n return readTransformValue(instance, key);\n }\n else {\n const computedStyle = getComputedStyle(instance);\n const value = (isCSSVariableName(key)\n ? computedStyle.getPropertyValue(key)\n : computedStyle[key]) || 0;\n return typeof value === \"string\" ? value.trim() : value;\n }\n }\n measureInstanceViewportBox(instance, { transformPagePoint }) {\n return measureViewportBox(instance, transformPagePoint);\n }\n build(renderState, latestValues, props) {\n buildHTMLStyles(renderState, latestValues, props.transformTemplate);\n }\n scrapeMotionValuesFromProps(props, prevProps, visualElement) {\n return scrapeMotionValuesFromProps(props, prevProps, visualElement);\n }\n}\n\nexport { HTMLVisualElement, getComputedStyle };\n"],"names":["getComputedStyle","element","window","HTMLVisualElement","DOMVisualElement","constructor","super","arguments","this","type","renderInstance","renderHTML","readValueFromInstance","instance","key","transformProps","has","readTransformValue","computedStyle","value","isCSSVariableName","getPropertyValue","trim","measureInstanceViewportBox","_ref","transformPagePoint","measureViewportBox","build","renderState","latestValues","props","buildHTMLStyles","transformTemplate","scrapeMotionValuesFromProps","prevProps","visualElement"],"mappings":"6hBAOA,SAASA,EAAiBC,GACtB,OAAOC,OAAOF,iBAAiBC,EACnC,CACA,MAAME,UAA0BC,EAAAA,iBAC5BC,WAAAA,GACIC,SAASC,WACTC,KAAKC,KAAO,OACZD,KAAKE,eAAiBC,YAC1B,CACAC,qBAAAA,CAAsBC,EAAUC,GAC5B,GAAIC,EAAcA,eAACC,IAAIF,GACnB,OAAOG,EAAkBA,mBAACJ,EAAUC,GAEnC,CACD,MAAMI,EAAgBlB,EAAiBa,GACjCM,GAASC,oBAAkBN,GAC3BI,EAAcG,iBAAiBP,GAC/BI,EAAcJ,KAAS,EAC7B,MAAwB,iBAAVK,EAAqBA,EAAMG,OAASH,CACtD,CACJ,CACAI,0BAAAA,CAA2BV,EAAQW,GAA0B,IAAxBC,mBAAEA,GAAoBD,EACvD,OAAOE,EAAkBA,mBAACb,EAAUY,EACxC,CACAE,KAAAA,CAAMC,EAAaC,EAAcC,GAC7BC,EAAAA,gBAAgBH,EAAaC,EAAcC,EAAME,kBACrD,CACAC,2BAAAA,CAA4BH,EAAOI,EAAWC,GAC1C,OAAOF,8BAA4BH,EAAOI,EAAWC,EACzD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../motion/utils/is-forced-motion-value.mjs.js"),r=require("../../value/utils/is-motion-value.mjs.js"),s=require("./utils/build-styles.mjs.js"),n=require("./utils/create-render-state.mjs.js");function o(e,s,n){for(const o in s)r.isMotionValue(s[o])||t.isForcedMotionValue(o,n)||(e[o]=s[o])}function i(t,r){const i={};return o(i,t.style||{},t),Object.assign(i,function({transformTemplate:t},r){return e.useMemo((()=>{const e=n.createHtmlRenderState();return s.buildHTMLStyles(e,r,t),Object.assign({},e.vars,e.style)}),[r])}(t,r)),i}exports.copyRawValuesOnly=o,exports.useHTMLProps=function(e,t){const r={},s=i(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../../motion/utils/is-forced-motion-value.mjs.js"),r=require("../../value/utils/is-motion-value.mjs.js"),s=require("./utils/build-styles.mjs.js"),n=require("./utils/create-render-state.mjs.js");function o(e,s,n){for(const o in s)r.isMotionValue(s[o])||t.isForcedMotionValue(o,n)||(e[o]=s[o])}function i(t,r){const i={};return o(i,t.style||{},t),Object.assign(i,function(t,r){let{transformTemplate:o}=t;return e.useMemo((()=>{const e=n.createHtmlRenderState();return s.buildHTMLStyles(e,r,o),Object.assign({},e.vars,e.style)}),[r])}(t,r)),i}exports.copyRawValuesOnly=o,exports.useHTMLProps=function(e,t){const r={},s=i(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r};
2
2
  //# sourceMappingURL=use-props.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-props.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/html/use-props.mjs"],"sourcesContent":["import { useMemo } from 'react';\nimport { isForcedMotionValue } from '../../motion/utils/is-forced-motion-value.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\nimport { buildHTMLStyles } from './utils/build-styles.mjs';\nimport { createHtmlRenderState } from './utils/create-render-state.mjs';\n\nfunction copyRawValuesOnly(target, source, props) {\n for (const key in source) {\n if (!isMotionValue(source[key]) && !isForcedMotionValue(key, props)) {\n target[key] = source[key];\n }\n }\n}\nfunction useInitialMotionValues({ transformTemplate }, visualState) {\n return useMemo(() => {\n const state = createHtmlRenderState();\n buildHTMLStyles(state, visualState, transformTemplate);\n return Object.assign({}, state.vars, state.style);\n }, [visualState]);\n}\nfunction useStyle(props, visualState) {\n const styleProp = props.style || {};\n const style = {};\n /**\n * Copy non-Motion Values straight into style\n */\n copyRawValuesOnly(style, styleProp, props);\n Object.assign(style, useInitialMotionValues(props, visualState));\n return style;\n}\nfunction useHTMLProps(props, visualState) {\n // The `any` isn't ideal but it is the type of createElement props argument\n const htmlProps = {};\n const style = useStyle(props, visualState);\n if (props.drag && props.dragListener !== false) {\n // Disable the ghost element when a user drags\n htmlProps.draggable = false;\n // Disable text selection\n style.userSelect =\n style.WebkitUserSelect =\n style.WebkitTouchCallout =\n \"none\";\n // Disable scrolling on the draggable direction\n style.touchAction =\n props.drag === true\n ? \"none\"\n : `pan-${props.drag === \"x\" ? \"y\" : \"x\"}`;\n }\n if (props.tabIndex === undefined &&\n (props.onTap || props.onTapStart || props.whileTap)) {\n htmlProps.tabIndex = 0;\n }\n htmlProps.style = style;\n return htmlProps;\n}\n\nexport { copyRawValuesOnly, useHTMLProps };\n"],"names":["copyRawValuesOnly","target","source","props","key","isMotionValue","isForcedMotionValue","useStyle","visualState","style","Object","assign","transformTemplate","useMemo","state","createHtmlRenderState","buildHTMLStyles","vars","useInitialMotionValues","htmlProps","drag","dragListener","draggable","userSelect","WebkitUserSelect","WebkitTouchCallout","touchAction","undefined","tabIndex","onTap","onTapStart","whileTap"],"mappings":"wSAMA,SAASA,EAAkBC,EAAQC,EAAQC,GACvC,IAAK,MAAMC,KAAOF,EACTG,EAAAA,cAAcH,EAAOE,KAAUE,EAAmBA,oBAACF,EAAKD,KACzDF,EAAOG,GAAOF,EAAOE,GAGjC,CAQA,SAASG,EAASJ,EAAOK,GACrB,MACMC,EAAQ,CAAA,EAMd,OAFAT,EAAkBS,EALAN,EAAMM,OAAS,GAKGN,GACpCO,OAAOC,OAAOF,EAdlB,UAAgCG,kBAAEA,GAAqBJ,GACnD,OAAOK,EAAOA,SAAC,KACX,MAAMC,EAAQC,EAAAA,wBAEd,OADAC,EAAAA,gBAAgBF,EAAON,EAAaI,GAC7BF,OAAOC,OAAO,CAAE,EAAEG,EAAMG,KAAMH,EAAML,MAAM,GAClD,CAACD,GACR,CAQyBU,CAAuBf,EAAOK,IAC5CC,CACX,kDACA,SAAsBN,EAAOK,GAEzB,MAAMW,EAAY,CAAA,EACZV,EAAQF,EAASJ,EAAOK,GAoB9B,OAnBIL,EAAMiB,OAA+B,IAAvBjB,EAAMkB,eAEpBF,EAAUG,WAAY,EAEtBb,EAAMc,WACFd,EAAMe,iBACFf,EAAMgB,mBACF,OAEZhB,EAAMiB,aACa,IAAfvB,EAAMiB,KACA,OACA,QAAsB,MAAfjB,EAAMiB,KAAe,IAAM,WAEzBO,IAAnBxB,EAAMyB,WACLzB,EAAM0B,OAAS1B,EAAM2B,YAAc3B,EAAM4B,YAC1CZ,EAAUS,SAAW,GAEzBT,EAAUV,MAAQA,EACXU,CACX"}
1
+ {"version":3,"file":"use-props.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/html/use-props.mjs"],"sourcesContent":["import { useMemo } from 'react';\nimport { isForcedMotionValue } from '../../motion/utils/is-forced-motion-value.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\nimport { buildHTMLStyles } from './utils/build-styles.mjs';\nimport { createHtmlRenderState } from './utils/create-render-state.mjs';\n\nfunction copyRawValuesOnly(target, source, props) {\n for (const key in source) {\n if (!isMotionValue(source[key]) && !isForcedMotionValue(key, props)) {\n target[key] = source[key];\n }\n }\n}\nfunction useInitialMotionValues({ transformTemplate }, visualState) {\n return useMemo(() => {\n const state = createHtmlRenderState();\n buildHTMLStyles(state, visualState, transformTemplate);\n return Object.assign({}, state.vars, state.style);\n }, [visualState]);\n}\nfunction useStyle(props, visualState) {\n const styleProp = props.style || {};\n const style = {};\n /**\n * Copy non-Motion Values straight into style\n */\n copyRawValuesOnly(style, styleProp, props);\n Object.assign(style, useInitialMotionValues(props, visualState));\n return style;\n}\nfunction useHTMLProps(props, visualState) {\n // The `any` isn't ideal but it is the type of createElement props argument\n const htmlProps = {};\n const style = useStyle(props, visualState);\n if (props.drag && props.dragListener !== false) {\n // Disable the ghost element when a user drags\n htmlProps.draggable = false;\n // Disable text selection\n style.userSelect =\n style.WebkitUserSelect =\n style.WebkitTouchCallout =\n \"none\";\n // Disable scrolling on the draggable direction\n style.touchAction =\n props.drag === true\n ? \"none\"\n : `pan-${props.drag === \"x\" ? \"y\" : \"x\"}`;\n }\n if (props.tabIndex === undefined &&\n (props.onTap || props.onTapStart || props.whileTap)) {\n htmlProps.tabIndex = 0;\n }\n htmlProps.style = style;\n return htmlProps;\n}\n\nexport { copyRawValuesOnly, useHTMLProps };\n"],"names":["copyRawValuesOnly","target","source","props","key","isMotionValue","isForcedMotionValue","useStyle","visualState","style","Object","assign","_ref","transformTemplate","useMemo","state","createHtmlRenderState","buildHTMLStyles","vars","useInitialMotionValues","htmlProps","drag","dragListener","draggable","userSelect","WebkitUserSelect","WebkitTouchCallout","touchAction","undefined","tabIndex","onTap","onTapStart","whileTap"],"mappings":"wSAMA,SAASA,EAAkBC,EAAQC,EAAQC,GACvC,IAAK,MAAMC,KAAOF,EACTG,EAAAA,cAAcH,EAAOE,KAAUE,EAAmBA,oBAACF,EAAKD,KACzDF,EAAOG,GAAOF,EAAOE,GAGjC,CAQA,SAASG,EAASJ,EAAOK,GACrB,MACMC,EAAQ,CAAA,EAMd,OAFAT,EAAkBS,EALAN,EAAMM,OAAS,GAKGN,GACpCO,OAAOC,OAAOF,EAdlB,SAA+BG,EAAwBJ,GAAa,IAApCK,kBAAEA,GAAmBD,EACjD,OAAOE,EAAOA,SAAC,KACX,MAAMC,EAAQC,EAAAA,wBAEd,OADAC,EAAAA,gBAAgBF,EAAOP,EAAaK,GAC7BH,OAAOC,OAAO,CAAE,EAAEI,EAAMG,KAAMH,EAAMN,MAAM,GAClD,CAACD,GACR,CAQyBW,CAAuBhB,EAAOK,IAC5CC,CACX,kDACA,SAAsBN,EAAOK,GAEzB,MAAMY,EAAY,CAAA,EACZX,EAAQF,EAASJ,EAAOK,GAoB9B,OAnBIL,EAAMkB,OAA+B,IAAvBlB,EAAMmB,eAEpBF,EAAUG,WAAY,EAEtBd,EAAMe,WACFf,EAAMgB,iBACFhB,EAAMiB,mBACF,OAEZjB,EAAMkB,aACa,IAAfxB,EAAMkB,KACA,OACA,QAAsB,MAAflB,EAAMkB,KAAe,IAAM,WAEzBO,IAAnBzB,EAAM0B,WACL1B,EAAM2B,OAAS3B,EAAM4B,YAAc5B,EAAM6B,YAC1CZ,EAAUS,SAAW,GAEzBT,EAAUX,MAAQA,EACXW,CACX"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.renderHTML=function(e,{style:t,vars:s},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in s)e.style.setProperty(t,s[t])};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.renderHTML=function(e,t,s,r){let{style:o,vars:n}=t;Object.assign(e.style,o,r&&r.getProjectionStyles(s));for(const t in n)e.style.setProperty(t,n[t])};
2
2
  //# sourceMappingURL=render.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/html/utils/render.mjs"],"sourcesContent":["function renderHTML(element, { style, vars }, styleProp, projection) {\n Object.assign(element.style, style, projection && projection.getProjectionStyles(styleProp));\n // Loop over any CSS variables and assign those.\n for (const key in vars) {\n element.style.setProperty(key, vars[key]);\n }\n}\n\nexport { renderHTML };\n"],"names":["element","style","vars","styleProp","projection","Object","assign","getProjectionStyles","key","setProperty"],"mappings":"uFAAA,SAAoBA,GAASC,MAAEA,EAAKC,KAAEA,GAAQC,EAAWC,GACrDC,OAAOC,OAAON,EAAQC,MAAOA,EAAOG,GAAcA,EAAWG,oBAAoBJ,IAEjF,IAAK,MAAMK,KAAON,EACdF,EAAQC,MAAMQ,YAAYD,EAAKN,EAAKM,GAE5C"}
1
+ {"version":3,"file":"render.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/html/utils/render.mjs"],"sourcesContent":["function renderHTML(element, { style, vars }, styleProp, projection) {\n Object.assign(element.style, style, projection && projection.getProjectionStyles(styleProp));\n // Loop over any CSS variables and assign those.\n for (const key in vars) {\n element.style.setProperty(key, vars[key]);\n }\n}\n\nexport { renderHTML };\n"],"names":["element","_ref","styleProp","projection","style","vars","Object","assign","getProjectionStyles","key","setProperty"],"mappings":"uFAAA,SAAoBA,EAAOC,EAAmBC,EAAWC,GAAY,IAAxCC,MAAEA,EAAKC,KAAEA,GAAMJ,EACxCK,OAAOC,OAAOP,EAAQI,MAAOA,EAAOD,GAAcA,EAAWK,oBAAoBN,IAEjF,IAAK,MAAMO,KAAOJ,EACdL,EAAQI,MAAMM,YAAYD,EAAKJ,EAAKI,GAE5C"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../html/utils/build-styles.mjs.js"),r=require("./path.mjs.js");exports.buildSVGAttrs=function(e,{attrX:s,attrY:i,attrScale:o,pathLength:a,pathSpacing:n=1,pathOffset:l=0,...f},m,d){if(t.buildHTMLStyles(e,f,d),m)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:u,style:v}=e;u.transform&&(v.transform=u.transform,delete u.transform),(v.transform||u.transformOrigin)&&(v.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),v.transform&&(v.transformBox="fill-box",delete u.transformBox),void 0!==s&&(u.x=s),void 0!==i&&(u.y=i),void 0!==o&&(u.scale=o),void 0!==a&&r.buildSVGPath(u,a,n,l,!1)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../html/utils/build-styles.mjs.js"),r=require("./path.mjs.js");exports.buildSVGAttrs=function(e,s,i,o){let{attrX:a,attrY:l,attrScale:n,pathLength:f,pathSpacing:m=1,pathOffset:d=0,...u}=s;if(t.buildHTMLStyles(e,u,o),i)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:v,style:x}=e;v.transform&&(x.transform=v.transform,delete v.transform),(x.transform||v.transformOrigin)&&(x.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),x.transform&&(x.transformBox="fill-box",delete v.transformBox),void 0!==a&&(v.x=a),void 0!==l&&(v.y=l),void 0!==n&&(v.scale=n),void 0!==f&&r.buildSVGPath(v,f,m,d,!1)};
2
2
  //# sourceMappingURL=build-attrs.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-attrs.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs"],"sourcesContent":["import { buildHTMLStyles } from '../../html/utils/build-styles.mjs';\nimport { buildSVGPath } from './path.mjs';\n\n/**\n * Build SVG visual attrbutes, like cx and style.transform\n */\nfunction buildSVGAttrs(state, { attrX, attrY, attrScale, pathLength, pathSpacing = 1, pathOffset = 0, \n// This is object creation, which we try to avoid per-frame.\n...latest }, isSVGTag, transformTemplate) {\n buildHTMLStyles(state, latest, transformTemplate);\n /**\n * For svg tags we just want to make sure viewBox is animatable and treat all the styles\n * as normal HTML tags.\n */\n if (isSVGTag) {\n if (state.style.viewBox) {\n state.attrs.viewBox = state.style.viewBox;\n }\n return;\n }\n state.attrs = state.style;\n state.style = {};\n const { attrs, style } = state;\n /**\n * However, we apply transforms as CSS transforms.\n * So if we detect a transform, transformOrigin we take it from attrs and copy it into style.\n */\n if (attrs.transform) {\n style.transform = attrs.transform;\n delete attrs.transform;\n }\n if (style.transform || attrs.transformOrigin) {\n style.transformOrigin = attrs.transformOrigin ?? \"50% 50%\";\n delete attrs.transformOrigin;\n }\n if (style.transform) {\n /**\n * SVG's element transform-origin uses its own median as a reference.\n * Therefore, transformBox becomes a fill-box\n */\n style.transformBox = \"fill-box\";\n delete attrs.transformBox;\n }\n // Render attrX/attrY/attrScale as attributes\n if (attrX !== undefined)\n attrs.x = attrX;\n if (attrY !== undefined)\n attrs.y = attrY;\n if (attrScale !== undefined)\n attrs.scale = attrScale;\n // Build SVG path if one has been defined\n if (pathLength !== undefined) {\n buildSVGPath(attrs, pathLength, pathSpacing, pathOffset, false);\n }\n}\n\nexport { buildSVGAttrs };\n"],"names":["state","attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset","latest","isSVGTag","transformTemplate","buildHTMLStyles","style","viewBox","attrs","transform","transformOrigin","transformBox","undefined","x","y","scale","buildSVGPath"],"mappings":"2KAMA,SAAuBA,GAAOC,MAAEA,EAAKC,MAAEA,EAAKC,UAAEA,EAASC,WAAEA,EAAUC,YAAEA,EAAc,EAACC,WAAEA,EAAa,KAEhGC,GAAUC,EAAUC,GAMnB,GALAC,EAAAA,gBAAgBV,EAAOO,EAAQE,GAK3BD,EAIA,YAHIR,EAAMW,MAAMC,UACZZ,EAAMa,MAAMD,QAAUZ,EAAMW,MAAMC,UAI1CZ,EAAMa,MAAQb,EAAMW,MACpBX,EAAMW,MAAQ,GACd,MAAME,MAAEA,EAAKF,MAAEA,GAAUX,EAKrBa,EAAMC,YACNH,EAAMG,UAAYD,EAAMC,iBACjBD,EAAMC,YAEbH,EAAMG,WAAaD,EAAME,mBACzBJ,EAAMI,gBAAkBF,EAAME,iBAAmB,iBAC1CF,EAAME,iBAEbJ,EAAMG,YAKNH,EAAMK,aAAe,kBACdH,EAAMG,mBAGHC,IAAVhB,IACAY,EAAMK,EAAIjB,QACAgB,IAAVf,IACAW,EAAMM,EAAIjB,QACIe,IAAdd,IACAU,EAAMO,MAAQjB,QAECc,IAAfb,GACAiB,EAAYA,aAACR,EAAOT,EAAYC,EAAaC,GAAY,EAEjE"}
1
+ {"version":3,"file":"build-attrs.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs"],"sourcesContent":["import { buildHTMLStyles } from '../../html/utils/build-styles.mjs';\nimport { buildSVGPath } from './path.mjs';\n\n/**\n * Build SVG visual attrbutes, like cx and style.transform\n */\nfunction buildSVGAttrs(state, { attrX, attrY, attrScale, pathLength, pathSpacing = 1, pathOffset = 0, \n// This is object creation, which we try to avoid per-frame.\n...latest }, isSVGTag, transformTemplate) {\n buildHTMLStyles(state, latest, transformTemplate);\n /**\n * For svg tags we just want to make sure viewBox is animatable and treat all the styles\n * as normal HTML tags.\n */\n if (isSVGTag) {\n if (state.style.viewBox) {\n state.attrs.viewBox = state.style.viewBox;\n }\n return;\n }\n state.attrs = state.style;\n state.style = {};\n const { attrs, style } = state;\n /**\n * However, we apply transforms as CSS transforms.\n * So if we detect a transform, transformOrigin we take it from attrs and copy it into style.\n */\n if (attrs.transform) {\n style.transform = attrs.transform;\n delete attrs.transform;\n }\n if (style.transform || attrs.transformOrigin) {\n style.transformOrigin = attrs.transformOrigin ?? \"50% 50%\";\n delete attrs.transformOrigin;\n }\n if (style.transform) {\n /**\n * SVG's element transform-origin uses its own median as a reference.\n * Therefore, transformBox becomes a fill-box\n */\n style.transformBox = \"fill-box\";\n delete attrs.transformBox;\n }\n // Render attrX/attrY/attrScale as attributes\n if (attrX !== undefined)\n attrs.x = attrX;\n if (attrY !== undefined)\n attrs.y = attrY;\n if (attrScale !== undefined)\n attrs.scale = attrScale;\n // Build SVG path if one has been defined\n if (pathLength !== undefined) {\n buildSVGPath(attrs, pathLength, pathSpacing, pathOffset, false);\n }\n}\n\nexport { buildSVGAttrs };\n"],"names":["state","_ref","isSVGTag","transformTemplate","attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset","latest","buildHTMLStyles","style","viewBox","attrs","transform","transformOrigin","transformBox","undefined","x","y","scale","buildSVGPath"],"mappings":"2KAMA,SAAuBA,EAAKC,EAEfC,EAAUC,GAAmB,IAFZC,MAAEA,EAAKC,MAAEA,EAAKC,UAAEA,EAASC,WAAEA,EAAUC,YAAEA,EAAc,EAACC,WAAEA,EAAa,KAEhGC,GAAQT,EAMP,GALAU,EAAAA,gBAAgBX,EAAOU,EAAQP,GAK3BD,EAIA,YAHIF,EAAMY,MAAMC,UACZb,EAAMc,MAAMD,QAAUb,EAAMY,MAAMC,UAI1Cb,EAAMc,MAAQd,EAAMY,MACpBZ,EAAMY,MAAQ,GACd,MAAME,MAAEA,EAAKF,MAAEA,GAAUZ,EAKrBc,EAAMC,YACNH,EAAMG,UAAYD,EAAMC,iBACjBD,EAAMC,YAEbH,EAAMG,WAAaD,EAAME,mBACzBJ,EAAMI,gBAAkBF,EAAME,iBAAmB,iBAC1CF,EAAME,iBAEbJ,EAAMG,YAKNH,EAAMK,aAAe,kBACdH,EAAMG,mBAGHC,IAAVd,IACAU,EAAMK,EAAIf,QACAc,IAAVb,IACAS,EAAMM,EAAIf,QACIa,IAAdZ,IACAQ,EAAMO,MAAQf,QAECY,IAAfX,GACAe,EAAYA,aAACR,EAAOP,EAAYC,EAAaC,GAAY,EAEjE"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../../../../../motion-dom/dist/es/value/types/numbers/units.mjs.js");const r={offset:"stroke-dashoffset",array:"stroke-dasharray"},t={offset:"strokeDashoffset",array:"strokeDasharray"};exports.buildSVGPath=function(e,o,a=1,f=0,n=!0){e.pathLength=1;const u=n?r:t;e[u.offset]=s.px.transform(-f);const i=s.px.transform(o),p=s.px.transform(a);e[u.array]=`${i} ${p}`};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../../../motion-dom/dist/es/value/types/numbers/units.mjs.js");const s={offset:"stroke-dashoffset",array:"stroke-dasharray"},e={offset:"strokeDashoffset",array:"strokeDasharray"};exports.buildSVGPath=function(r,o){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,f=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];r.pathLength=1;const i=f?s:e;r[i.offset]=t.px.transform(-n);const d=t.px.transform(o),h=t.px.transform(a);r[i.array]=`${d} ${h}`};
2
2
  //# sourceMappingURL=path.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"path.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/svg/utils/path.mjs"],"sourcesContent":["import { px } from 'motion-dom';\n\nconst dashKeys = {\n offset: \"stroke-dashoffset\",\n array: \"stroke-dasharray\",\n};\nconst camelKeys = {\n offset: \"strokeDashoffset\",\n array: \"strokeDasharray\",\n};\n/**\n * Build SVG path properties. Uses the path's measured length to convert\n * our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset\n * and stroke-dasharray attributes.\n *\n * This function is mutative to reduce per-frame GC.\n */\nfunction buildSVGPath(attrs, length, spacing = 1, offset = 0, useDashCase = true) {\n // Normalise path length by setting SVG attribute pathLength to 1\n attrs.pathLength = 1;\n // We use dash case when setting attributes directly to the DOM node and camel case\n // when defining props on a React component.\n const keys = useDashCase ? dashKeys : camelKeys;\n // Build the dash offset\n attrs[keys.offset] = px.transform(-offset);\n // Build the dash array\n const pathLength = px.transform(length);\n const pathSpacing = px.transform(spacing);\n attrs[keys.array] = `${pathLength} ${pathSpacing}`;\n}\n\nexport { buildSVGPath };\n"],"names":["dashKeys","offset","array","camelKeys","attrs","length","spacing","useDashCase","pathLength","keys","px","transform","pathSpacing"],"mappings":"2JAEA,MAAMA,EAAW,CACbC,OAAQ,oBACRC,MAAO,oBAELC,EAAY,CACdF,OAAQ,mBACRC,MAAO,wCASX,SAAsBE,EAAOC,EAAQC,EAAU,EAAGL,EAAS,EAAGM,GAAc,GAExEH,EAAMI,WAAa,EAGnB,MAAMC,EAAOF,EAAcP,EAAWG,EAEtCC,EAAMK,EAAKR,QAAUS,EAAEA,GAACC,WAAWV,GAEnC,MAAMO,EAAaE,EAAAA,GAAGC,UAAUN,GAC1BO,EAAcF,EAAAA,GAAGC,UAAUL,GACjCF,EAAMK,EAAKP,OAAS,GAAGM,KAAcI,GACzC"}
1
+ {"version":3,"file":"path.mjs.js","sources":["../../../../../../../../node_modules/framer-motion/dist/es/render/svg/utils/path.mjs"],"sourcesContent":["import { px } from 'motion-dom';\n\nconst dashKeys = {\n offset: \"stroke-dashoffset\",\n array: \"stroke-dasharray\",\n};\nconst camelKeys = {\n offset: \"strokeDashoffset\",\n array: \"strokeDasharray\",\n};\n/**\n * Build SVG path properties. Uses the path's measured length to convert\n * our custom pathLength, pathSpacing and pathOffset into stroke-dashoffset\n * and stroke-dasharray attributes.\n *\n * This function is mutative to reduce per-frame GC.\n */\nfunction buildSVGPath(attrs, length, spacing = 1, offset = 0, useDashCase = true) {\n // Normalise path length by setting SVG attribute pathLength to 1\n attrs.pathLength = 1;\n // We use dash case when setting attributes directly to the DOM node and camel case\n // when defining props on a React component.\n const keys = useDashCase ? dashKeys : camelKeys;\n // Build the dash offset\n attrs[keys.offset] = px.transform(-offset);\n // Build the dash array\n const pathLength = px.transform(length);\n const pathSpacing = px.transform(spacing);\n attrs[keys.array] = `${pathLength} ${pathSpacing}`;\n}\n\nexport { buildSVGPath };\n"],"names":["dashKeys","offset","array","camelKeys","attrs","length","spacing","arguments","undefined","useDashCase","pathLength","keys","px","transform","pathSpacing"],"mappings":"2JAEA,MAAMA,EAAW,CACbC,OAAQ,oBACRC,MAAO,oBAELC,EAAY,CACdF,OAAQ,mBACRC,MAAO,wCASX,SAAsBE,EAAOC,GAAqD,IAA7CC,EAAOC,UAAAF,OAAA,QAAAG,IAAAD,UAAA,GAAAA,UAAA,GAAG,EAAGN,EAAMM,UAAAF,OAAA,QAAAG,IAAAD,UAAA,GAAAA,UAAA,GAAG,EAAGE,IAAWF,UAAAF,OAAA,QAAAG,IAAAD,UAAA,KAAAA,UAAA,GAErEH,EAAMM,WAAa,EAGnB,MAAMC,EAAOF,EAAcT,EAAWG,EAEtCC,EAAMO,EAAKV,QAAUW,EAAEA,GAACC,WAAWZ,GAEnC,MAAMS,EAAaE,EAAAA,GAAGC,UAAUR,GAC1BS,EAAcF,EAAAA,GAAGC,UAAUP,GACjCF,EAAMO,EAAKT,OAAS,GAAGQ,KAAcI,GACzC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../animation/interfaces/visual-element.mjs.js"),t=require("../../animation/utils/is-animation-controls.mjs.js"),i=require("../../animation/utils/is-keyframes-target.mjs.js"),n=require("../../utils/shallow-compare.mjs.js"),r=require("./get-variant-context.mjs.js"),a=require("./is-variant-label.mjs.js"),s=require("./resolve-dynamic-variants.mjs.js"),o=require("./variant-props.mjs.js");const l=[...o.variantPriorityOrder].reverse(),c=o.variantPriorityOrder.length;function u(t){return i=>Promise.all(i.map((({animation:i,options:n})=>e.animateVisualElement(t,i,n))))}function m(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!n.shallowCompare(t,e)}function v(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function p(){return{animate:v(!0),whileInView:v(),whileHover:v(),whileTap:v(),whileDrag:v(),whileFocus:v(),exit:v()}}exports.checkVariantsDidChange=m,exports.createAnimationState=function(e){let o=u(e),v=p(),f=!0;const y=t=>(i,n)=>{const r=s.resolveVariant(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(r){const{transition:e,transitionEnd:t,...n}=r;i={...i,...n,...t}}return i};function d(u){const{props:p}=e,d=r.getVariantContext(e.parent)||{},A=[],h=new Set;let g={},j=1/0;for(let r=0;r<c;r++){const s=l[r],o=v[s],c=void 0!==p[s]?p[s]:d[s],V=a.isVariantLabel(c),w=s===u?o.isActive:null;!1===w&&(j=r);let P=c===d[s]&&c!==p[s]&&V;if(P&&f&&e.manuallyAnimateOnMount&&(P=!1),o.protectedKeys={...g},!o.isActive&&null===w||!c&&!o.prevProp||t.isAnimationControls(c)||"boolean"==typeof c)continue;const q=m(o.prevProp,c);let x=q||s===u&&o.isActive&&!P&&V||r>j&&V,C=!1;const b=Array.isArray(c)?c:[c];let K=b.reduce(y(s),{});!1===w&&(K={});const{prevResolvedValues:O={}}=o,S={...O,...K},E=t=>{x=!0,h.has(t)&&(C=!0,h.delete(t)),o.needsAnimating[t]=!0;const i=e.getValue(t);i&&(i.liveStyle=!1)};for(const e in S){const t=K[e],r=O[e];if(g.hasOwnProperty(e))continue;let a=!1;a=i.isKeyframesTarget(t)&&i.isKeyframesTarget(r)?!n.shallowCompare(t,r):t!==r,a?null!=t?E(e):h.add(e):void 0!==t&&h.has(e)?E(e):o.protectedKeys[e]=!0}o.prevProp=c,o.prevResolvedValues=K,o.isActive&&(g={...g,...K}),f&&e.blockInitialAnimation&&(x=!1);x&&(!(P&&q)||C)&&A.push(...b.map((e=>({animation:e,options:{type:s}}))))}if(h.size){const t={};if("boolean"!=typeof p.initial){const i=s.resolveVariant(e,Array.isArray(p.initial)?p.initial[0]:p.initial);i&&i.transition&&(t.transition=i.transition)}h.forEach((i=>{const n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null})),A.push({animation:t})}let V=Boolean(A.length);return!f||!1!==p.initial&&p.initial!==p.animate||e.manuallyAnimateOnMount||(V=!1),f=!1,V?o(A):Promise.resolve()}return{animateChanges:d,setActive:function(t,i){if(v[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach((e=>e.animationState?.setActive(t,i))),v[t].isActive=i;const n=d(t);for(const e in v)v[e].protectedKeys={};return n},setAnimateFunction:function(t){o=t(e)},getState:()=>v,reset:()=>{v=p(),f=!0}}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../animation/interfaces/visual-element.mjs.js"),t=require("../../animation/utils/is-animation-controls.mjs.js"),i=require("../../animation/utils/is-keyframes-target.mjs.js"),n=require("../../utils/shallow-compare.mjs.js"),r=require("./get-variant-context.mjs.js"),a=require("./is-variant-label.mjs.js"),s=require("./resolve-dynamic-variants.mjs.js"),o=require("./variant-props.mjs.js");const l=[...o.variantPriorityOrder].reverse(),c=o.variantPriorityOrder.length;function u(t){return i=>Promise.all(i.map((i=>{let{animation:n,options:r}=i;return e.animateVisualElement(t,n,r)})))}function m(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!n.shallowCompare(t,e)}function v(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function p(){return{animate:v(!0),whileInView:v(),whileHover:v(),whileTap:v(),whileDrag:v(),whileFocus:v(),exit:v()}}exports.checkVariantsDidChange=m,exports.createAnimationState=function(e){let o=u(e),v=p(),f=!0;const y=t=>(i,n)=>{const r=s.resolveVariant(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(r){const{transition:e,transitionEnd:t,...n}=r;i={...i,...n,...t}}return i};function d(u){const{props:p}=e,d=r.getVariantContext(e.parent)||{},A=[],h=new Set;let g={},j=1/0;for(let r=0;r<c;r++){const s=l[r],o=v[s],c=void 0!==p[s]?p[s]:d[s],V=a.isVariantLabel(c),w=s===u?o.isActive:null;!1===w&&(j=r);let P=c===d[s]&&c!==p[s]&&V;if(P&&f&&e.manuallyAnimateOnMount&&(P=!1),o.protectedKeys={...g},!o.isActive&&null===w||!c&&!o.prevProp||t.isAnimationControls(c)||"boolean"==typeof c)continue;const q=m(o.prevProp,c);let x=q||s===u&&o.isActive&&!P&&V||r>j&&V,C=!1;const b=Array.isArray(c)?c:[c];let K=b.reduce(y(s),{});!1===w&&(K={});const{prevResolvedValues:O={}}=o,S={...O,...K},E=t=>{x=!0,h.has(t)&&(C=!0,h.delete(t)),o.needsAnimating[t]=!0;const i=e.getValue(t);i&&(i.liveStyle=!1)};for(const e in S){const t=K[e],r=O[e];if(g.hasOwnProperty(e))continue;let a=!1;a=i.isKeyframesTarget(t)&&i.isKeyframesTarget(r)?!n.shallowCompare(t,r):t!==r,a?null!=t?E(e):h.add(e):void 0!==t&&h.has(e)?E(e):o.protectedKeys[e]=!0}o.prevProp=c,o.prevResolvedValues=K,o.isActive&&(g={...g,...K}),f&&e.blockInitialAnimation&&(x=!1);x&&(!(P&&q)||C)&&A.push(...b.map((e=>({animation:e,options:{type:s}}))))}if(h.size){const t={};if("boolean"!=typeof p.initial){const i=s.resolveVariant(e,Array.isArray(p.initial)?p.initial[0]:p.initial);i&&i.transition&&(t.transition=i.transition)}h.forEach((i=>{const n=e.getBaseTarget(i),r=e.getValue(i);r&&(r.liveStyle=!0),t[i]=n??null})),A.push({animation:t})}let V=Boolean(A.length);return!f||!1!==p.initial&&p.initial!==p.animate||e.manuallyAnimateOnMount||(V=!1),f=!1,V?o(A):Promise.resolve()}return{animateChanges:d,setActive:function(t,i){if(v[t].isActive===i)return Promise.resolve();e.variantChildren?.forEach((e=>e.animationState?.setActive(t,i))),v[t].isActive=i;const n=d(t);for(const e in v)v[e].protectedKeys={};return n},setAnimateFunction:function(t){o=t(e)},getState:()=>v,reset:()=>{v=p(),f=!0}}};
2
2
  //# sourceMappingURL=animation-state.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"animation-state.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/utils/animation-state.mjs"],"sourcesContent":["import { animateVisualElement } from '../../animation/interfaces/visual-element.mjs';\nimport { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { isKeyframesTarget } from '../../animation/utils/is-keyframes-target.mjs';\nimport { shallowCompare } from '../../utils/shallow-compare.mjs';\nimport { getVariantContext } from './get-variant-context.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { resolveVariant } from './resolve-dynamic-variants.mjs';\nimport { variantPriorityOrder } from './variant-props.mjs';\n\nconst reversePriorityOrder = [...variantPriorityOrder].reverse();\nconst numAnimationTypes = variantPriorityOrder.length;\nfunction animateList(visualElement) {\n return (animations) => Promise.all(animations.map(({ animation, options }) => animateVisualElement(visualElement, animation, options)));\n}\nfunction createAnimationState(visualElement) {\n let animate = animateList(visualElement);\n let state = createState();\n let isInitialRender = true;\n /**\n * This function will be used to reduce the animation definitions for\n * each active animation type into an object of resolved values for it.\n */\n const buildResolvedTypeValues = (type) => (acc, definition) => {\n const resolved = resolveVariant(visualElement, definition, type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n if (resolved) {\n const { transition, transitionEnd, ...target } = resolved;\n acc = { ...acc, ...target, ...transitionEnd };\n }\n return acc;\n };\n /**\n * This just allows us to inject mocked animation functions\n * @internal\n */\n function setAnimateFunction(makeAnimator) {\n animate = makeAnimator(visualElement);\n }\n /**\n * When we receive new props, we need to:\n * 1. Create a list of protected keys for each type. This is a directory of\n * value keys that are currently being \"handled\" by types of a higher priority\n * so that whenever an animation is played of a given type, these values are\n * protected from being animated.\n * 2. Determine if an animation type needs animating.\n * 3. Determine if any values have been removed from a type and figure out\n * what to animate those to.\n */\n function animateChanges(changedActiveType) {\n const { props } = visualElement;\n const context = getVariantContext(visualElement.parent) || {};\n /**\n * A list of animations that we'll build into as we iterate through the animation\n * types. This will get executed at the end of the function.\n */\n const animations = [];\n /**\n * Keep track of which values have been removed. Then, as we hit lower priority\n * animation types, we can check if they contain removed values and animate to that.\n */\n const removedKeys = new Set();\n /**\n * A dictionary of all encountered keys. This is an object to let us build into and\n * copy it without iteration. Each time we hit an animation type we set its protected\n * keys - the keys its not allowed to animate - to the latest version of this object.\n */\n let encounteredKeys = {};\n /**\n * If a variant has been removed at a given index, and this component is controlling\n * variant animations, we want to ensure lower-priority variants are forced to animate.\n */\n let removedVariantIndex = Infinity;\n /**\n * Iterate through all animation types in reverse priority order. For each, we want to\n * detect which values it's handling and whether or not they've changed (and therefore\n * need to be animated). If any values have been removed, we want to detect those in\n * lower priority props and flag for animation.\n */\n for (let i = 0; i < numAnimationTypes; i++) {\n const type = reversePriorityOrder[i];\n const typeState = state[type];\n const prop = props[type] !== undefined\n ? props[type]\n : context[type];\n const propIsVariant = isVariantLabel(prop);\n /**\n * If this type has *just* changed isActive status, set activeDelta\n * to that status. Otherwise set to null.\n */\n const activeDelta = type === changedActiveType ? typeState.isActive : null;\n if (activeDelta === false)\n removedVariantIndex = i;\n /**\n * If this prop is an inherited variant, rather than been set directly on the\n * component itself, we want to make sure we allow the parent to trigger animations.\n *\n * TODO: Can probably change this to a !isControllingVariants check\n */\n let isInherited = prop === context[type] &&\n prop !== props[type] &&\n propIsVariant;\n /**\n *\n */\n if (isInherited &&\n isInitialRender &&\n visualElement.manuallyAnimateOnMount) {\n isInherited = false;\n }\n /**\n * Set all encountered keys so far as the protected keys for this type. This will\n * be any key that has been animated or otherwise handled by active, higher-priortiy types.\n */\n typeState.protectedKeys = { ...encounteredKeys };\n // Check if we can skip analysing this prop early\n if (\n // If it isn't active and hasn't *just* been set as inactive\n (!typeState.isActive && activeDelta === null) ||\n // If we didn't and don't have any defined prop for this animation type\n (!prop && !typeState.prevProp) ||\n // Or if the prop doesn't define an animation\n isAnimationControls(prop) ||\n typeof prop === \"boolean\") {\n continue;\n }\n /**\n * As we go look through the values defined on this type, if we detect\n * a changed value or a value that was removed in a higher priority, we set\n * this to true and add this prop to the animation list.\n */\n const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);\n let shouldAnimateType = variantDidChange ||\n // If we're making this variant active, we want to always make it active\n (type === changedActiveType &&\n typeState.isActive &&\n !isInherited &&\n propIsVariant) ||\n // If we removed a higher-priority variant (i is in reverse order)\n (i > removedVariantIndex && propIsVariant);\n let handledRemovedValues = false;\n /**\n * As animations can be set as variant lists, variants or target objects, we\n * coerce everything to an array if it isn't one already\n */\n const definitionList = Array.isArray(prop) ? prop : [prop];\n /**\n * Build an object of all the resolved values. We'll use this in the subsequent\n * animateChanges calls to determine whether a value has changed.\n */\n let resolvedValues = definitionList.reduce(buildResolvedTypeValues(type), {});\n if (activeDelta === false)\n resolvedValues = {};\n /**\n * Now we need to loop through all the keys in the prev prop and this prop,\n * and decide:\n * 1. If the value has changed, and needs animating\n * 2. If it has been removed, and needs adding to the removedKeys set\n * 3. If it has been removed in a higher priority type and needs animating\n * 4. If it hasn't been removed in a higher priority but hasn't changed, and\n * needs adding to the type's protectedKeys list.\n */\n const { prevResolvedValues = {} } = typeState;\n const allKeys = {\n ...prevResolvedValues,\n ...resolvedValues,\n };\n const markToAnimate = (key) => {\n shouldAnimateType = true;\n if (removedKeys.has(key)) {\n handledRemovedValues = true;\n removedKeys.delete(key);\n }\n typeState.needsAnimating[key] = true;\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = false;\n };\n for (const key in allKeys) {\n const next = resolvedValues[key];\n const prev = prevResolvedValues[key];\n // If we've already handled this we can just skip ahead\n if (encounteredKeys.hasOwnProperty(key))\n continue;\n /**\n * If the value has changed, we probably want to animate it.\n */\n let valueHasChanged = false;\n if (isKeyframesTarget(next) && isKeyframesTarget(prev)) {\n valueHasChanged = !shallowCompare(next, prev);\n }\n else {\n valueHasChanged = next !== prev;\n }\n if (valueHasChanged) {\n if (next !== undefined && next !== null) {\n // If next is defined and doesn't equal prev, it needs animating\n markToAnimate(key);\n }\n else {\n // If it's undefined, it's been removed.\n removedKeys.add(key);\n }\n }\n else if (next !== undefined && removedKeys.has(key)) {\n /**\n * If next hasn't changed and it isn't undefined, we want to check if it's\n * been removed by a higher priority\n */\n markToAnimate(key);\n }\n else {\n /**\n * If it hasn't changed, we add it to the list of protected values\n * to ensure it doesn't get animated.\n */\n typeState.protectedKeys[key] = true;\n }\n }\n /**\n * Update the typeState so next time animateChanges is called we can compare the\n * latest prop and resolvedValues to these.\n */\n typeState.prevProp = prop;\n typeState.prevResolvedValues = resolvedValues;\n /**\n *\n */\n if (typeState.isActive) {\n encounteredKeys = { ...encounteredKeys, ...resolvedValues };\n }\n if (isInitialRender && visualElement.blockInitialAnimation) {\n shouldAnimateType = false;\n }\n /**\n * If this is an inherited prop we want to skip this animation\n * unless the inherited variants haven't changed on this render.\n */\n const willAnimateViaParent = isInherited && variantDidChange;\n const needsAnimating = !willAnimateViaParent || handledRemovedValues;\n if (shouldAnimateType && needsAnimating) {\n animations.push(...definitionList.map((animation) => ({\n animation: animation,\n options: { type },\n })));\n }\n }\n /**\n * If there are some removed value that haven't been dealt with,\n * we need to create a new animation that falls back either to the value\n * defined in the style prop, or the last read value.\n */\n if (removedKeys.size) {\n const fallbackAnimation = {};\n /**\n * If the initial prop contains a transition we can use that, otherwise\n * allow the animation function to use the visual element's default.\n */\n if (typeof props.initial !== \"boolean\") {\n const initialTransition = resolveVariant(visualElement, Array.isArray(props.initial)\n ? props.initial[0]\n : props.initial);\n if (initialTransition && initialTransition.transition) {\n fallbackAnimation.transition = initialTransition.transition;\n }\n }\n removedKeys.forEach((key) => {\n const fallbackTarget = visualElement.getBaseTarget(key);\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = true;\n // @ts-expect-error - @mattgperry to figure if we should do something here\n fallbackAnimation[key] = fallbackTarget ?? null;\n });\n animations.push({ animation: fallbackAnimation });\n }\n let shouldAnimate = Boolean(animations.length);\n if (isInitialRender &&\n (props.initial === false || props.initial === props.animate) &&\n !visualElement.manuallyAnimateOnMount) {\n shouldAnimate = false;\n }\n isInitialRender = false;\n return shouldAnimate ? animate(animations) : Promise.resolve();\n }\n /**\n * Change whether a certain animation type is active.\n */\n function setActive(type, isActive) {\n // If the active state hasn't changed, we can safely do nothing here\n if (state[type].isActive === isActive)\n return Promise.resolve();\n // Propagate active change to children\n visualElement.variantChildren?.forEach((child) => child.animationState?.setActive(type, isActive));\n state[type].isActive = isActive;\n const animations = animateChanges(type);\n for (const key in state) {\n state[key].protectedKeys = {};\n }\n return animations;\n }\n return {\n animateChanges,\n setActive,\n setAnimateFunction,\n getState: () => state,\n reset: () => {\n state = createState();\n isInitialRender = true;\n },\n };\n}\nfunction checkVariantsDidChange(prev, next) {\n if (typeof next === \"string\") {\n return next !== prev;\n }\n else if (Array.isArray(next)) {\n return !shallowCompare(next, prev);\n }\n return false;\n}\nfunction createTypeState(isActive = false) {\n return {\n isActive,\n protectedKeys: {},\n needsAnimating: {},\n prevResolvedValues: {},\n };\n}\nfunction createState() {\n return {\n animate: createTypeState(true),\n whileInView: createTypeState(),\n whileHover: createTypeState(),\n whileTap: createTypeState(),\n whileDrag: createTypeState(),\n whileFocus: createTypeState(),\n exit: createTypeState(),\n };\n}\n\nexport { checkVariantsDidChange, createAnimationState };\n"],"names":["reversePriorityOrder","variantPriorityOrder","reverse","numAnimationTypes","length","animateList","visualElement","animations","Promise","all","map","animation","options","animateVisualElement","checkVariantsDidChange","prev","next","Array","isArray","shallowCompare","createTypeState","isActive","protectedKeys","needsAnimating","prevResolvedValues","createState","animate","whileInView","whileHover","whileTap","whileDrag","whileFocus","exit","state","isInitialRender","buildResolvedTypeValues","type","acc","definition","resolved","resolveVariant","presenceContext","custom","undefined","transition","transitionEnd","target","animateChanges","changedActiveType","props","context","getVariantContext","parent","removedKeys","Set","encounteredKeys","removedVariantIndex","Infinity","i","typeState","prop","propIsVariant","isVariantLabel","activeDelta","isInherited","manuallyAnimateOnMount","prevProp","isAnimationControls","variantDidChange","shouldAnimateType","handledRemovedValues","definitionList","resolvedValues","reduce","allKeys","markToAnimate","key","has","delete","motionValue","getValue","liveStyle","hasOwnProperty","valueHasChanged","isKeyframesTarget","add","blockInitialAnimation","push","size","fallbackAnimation","initial","initialTransition","forEach","fallbackTarget","getBaseTarget","shouldAnimate","Boolean","resolve","setActive","variantChildren","child","animationState","setAnimateFunction","makeAnimator","getState","reset"],"mappings":"wdASA,MAAMA,EAAuB,IAAIC,wBAAsBC,UACjDC,EAAoBF,EAAoBA,qBAACG,OAC/C,SAASC,EAAYC,GACjB,OAAQC,GAAeC,QAAQC,IAAIF,EAAWG,KAAI,EAAGC,YAAWC,aAAcC,EAAoBA,qBAACP,EAAeK,EAAWC,KACjI,CA2SA,SAASE,EAAuBC,EAAMC,GAClC,MAAoB,iBAATA,EACAA,IAASD,IAEXE,MAAMC,QAAQF,KACXG,EAAcA,eAACH,EAAMD,EAGrC,CACA,SAASK,EAAgBC,GAAW,GAChC,MAAO,CACHA,WACAC,cAAe,CAAE,EACjBC,eAAgB,CAAE,EAClBC,mBAAoB,CAAC,EAE7B,CACA,SAASC,IACL,MAAO,CACHC,QAASN,GAAgB,GACzBO,YAAaP,IACbQ,WAAYR,IACZS,SAAUT,IACVU,UAAWV,IACXW,WAAYX,IACZY,KAAMZ,IAEd,+DArUA,SAA8Bd,GAC1B,IAAIoB,EAAUrB,EAAYC,GACtB2B,EAAQR,IACRS,GAAkB,EAKtB,MAAMC,EAA2BC,GAAS,CAACC,EAAKC,KAC5C,MAAMC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,cAAclB,GAC7CG,EAAczE,EAAc0E,SAASJ,GACvCG,IACAA,EAAYE,WAAY,GAE5BQ,EAAkBb,GAAOiB,GAAkB,IAAI,IAEnDtF,EAAWgF,KAAK,CAAE5E,UAAW8E,GACjC,CACA,IAAIM,EAAgBC,QAAQzF,EAAWH,QAOvC,OANI8B,IACmB,IAAlBe,EAAMyC,SAAqBzC,EAAMyC,UAAYzC,EAAMvB,SACnDpB,EAAc2D,yBACf8B,GAAgB,GAEpB7D,GAAkB,EACX6D,EAAgBrE,EAAQnB,GAAcC,QAAQyF,SACzD,CAiBA,MAAO,CACHlD,iBACAmD,UAfJ,SAAmB9D,EAAMf,GAErB,GAAIY,EAAMG,GAAMf,WAAaA,EACzB,OAAOb,QAAQyF,UAEnB3F,EAAc6F,iBAAiBP,SAASQ,GAAUA,EAAMC,gBAAgBH,UAAU9D,EAAMf,KACxFY,EAAMG,GAAMf,SAAWA,EACvB,MAAMd,EAAawC,EAAeX,GAClC,IAAK,MAAMwC,KAAO3C,EACdA,EAAM2C,GAAKtD,cAAgB,GAE/B,OAAOf,CACX,EAII+F,mBA5QJ,SAA4BC,GACxB7E,EAAU6E,EAAajG,EAC3B,EA2QIkG,SAAUA,IAAMvE,EAChBwE,MAAOA,KACHxE,EAAQR,IACRS,GAAkB,CAAI,EAGlC"}
1
+ {"version":3,"file":"animation-state.mjs.js","sources":["../../../../../../../node_modules/framer-motion/dist/es/render/utils/animation-state.mjs"],"sourcesContent":["import { animateVisualElement } from '../../animation/interfaces/visual-element.mjs';\nimport { isAnimationControls } from '../../animation/utils/is-animation-controls.mjs';\nimport { isKeyframesTarget } from '../../animation/utils/is-keyframes-target.mjs';\nimport { shallowCompare } from '../../utils/shallow-compare.mjs';\nimport { getVariantContext } from './get-variant-context.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { resolveVariant } from './resolve-dynamic-variants.mjs';\nimport { variantPriorityOrder } from './variant-props.mjs';\n\nconst reversePriorityOrder = [...variantPriorityOrder].reverse();\nconst numAnimationTypes = variantPriorityOrder.length;\nfunction animateList(visualElement) {\n return (animations) => Promise.all(animations.map(({ animation, options }) => animateVisualElement(visualElement, animation, options)));\n}\nfunction createAnimationState(visualElement) {\n let animate = animateList(visualElement);\n let state = createState();\n let isInitialRender = true;\n /**\n * This function will be used to reduce the animation definitions for\n * each active animation type into an object of resolved values for it.\n */\n const buildResolvedTypeValues = (type) => (acc, definition) => {\n const resolved = resolveVariant(visualElement, definition, type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n if (resolved) {\n const { transition, transitionEnd, ...target } = resolved;\n acc = { ...acc, ...target, ...transitionEnd };\n }\n return acc;\n };\n /**\n * This just allows us to inject mocked animation functions\n * @internal\n */\n function setAnimateFunction(makeAnimator) {\n animate = makeAnimator(visualElement);\n }\n /**\n * When we receive new props, we need to:\n * 1. Create a list of protected keys for each type. This is a directory of\n * value keys that are currently being \"handled\" by types of a higher priority\n * so that whenever an animation is played of a given type, these values are\n * protected from being animated.\n * 2. Determine if an animation type needs animating.\n * 3. Determine if any values have been removed from a type and figure out\n * what to animate those to.\n */\n function animateChanges(changedActiveType) {\n const { props } = visualElement;\n const context = getVariantContext(visualElement.parent) || {};\n /**\n * A list of animations that we'll build into as we iterate through the animation\n * types. This will get executed at the end of the function.\n */\n const animations = [];\n /**\n * Keep track of which values have been removed. Then, as we hit lower priority\n * animation types, we can check if they contain removed values and animate to that.\n */\n const removedKeys = new Set();\n /**\n * A dictionary of all encountered keys. This is an object to let us build into and\n * copy it without iteration. Each time we hit an animation type we set its protected\n * keys - the keys its not allowed to animate - to the latest version of this object.\n */\n let encounteredKeys = {};\n /**\n * If a variant has been removed at a given index, and this component is controlling\n * variant animations, we want to ensure lower-priority variants are forced to animate.\n */\n let removedVariantIndex = Infinity;\n /**\n * Iterate through all animation types in reverse priority order. For each, we want to\n * detect which values it's handling and whether or not they've changed (and therefore\n * need to be animated). If any values have been removed, we want to detect those in\n * lower priority props and flag for animation.\n */\n for (let i = 0; i < numAnimationTypes; i++) {\n const type = reversePriorityOrder[i];\n const typeState = state[type];\n const prop = props[type] !== undefined\n ? props[type]\n : context[type];\n const propIsVariant = isVariantLabel(prop);\n /**\n * If this type has *just* changed isActive status, set activeDelta\n * to that status. Otherwise set to null.\n */\n const activeDelta = type === changedActiveType ? typeState.isActive : null;\n if (activeDelta === false)\n removedVariantIndex = i;\n /**\n * If this prop is an inherited variant, rather than been set directly on the\n * component itself, we want to make sure we allow the parent to trigger animations.\n *\n * TODO: Can probably change this to a !isControllingVariants check\n */\n let isInherited = prop === context[type] &&\n prop !== props[type] &&\n propIsVariant;\n /**\n *\n */\n if (isInherited &&\n isInitialRender &&\n visualElement.manuallyAnimateOnMount) {\n isInherited = false;\n }\n /**\n * Set all encountered keys so far as the protected keys for this type. This will\n * be any key that has been animated or otherwise handled by active, higher-priortiy types.\n */\n typeState.protectedKeys = { ...encounteredKeys };\n // Check if we can skip analysing this prop early\n if (\n // If it isn't active and hasn't *just* been set as inactive\n (!typeState.isActive && activeDelta === null) ||\n // If we didn't and don't have any defined prop for this animation type\n (!prop && !typeState.prevProp) ||\n // Or if the prop doesn't define an animation\n isAnimationControls(prop) ||\n typeof prop === \"boolean\") {\n continue;\n }\n /**\n * As we go look through the values defined on this type, if we detect\n * a changed value or a value that was removed in a higher priority, we set\n * this to true and add this prop to the animation list.\n */\n const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);\n let shouldAnimateType = variantDidChange ||\n // If we're making this variant active, we want to always make it active\n (type === changedActiveType &&\n typeState.isActive &&\n !isInherited &&\n propIsVariant) ||\n // If we removed a higher-priority variant (i is in reverse order)\n (i > removedVariantIndex && propIsVariant);\n let handledRemovedValues = false;\n /**\n * As animations can be set as variant lists, variants or target objects, we\n * coerce everything to an array if it isn't one already\n */\n const definitionList = Array.isArray(prop) ? prop : [prop];\n /**\n * Build an object of all the resolved values. We'll use this in the subsequent\n * animateChanges calls to determine whether a value has changed.\n */\n let resolvedValues = definitionList.reduce(buildResolvedTypeValues(type), {});\n if (activeDelta === false)\n resolvedValues = {};\n /**\n * Now we need to loop through all the keys in the prev prop and this prop,\n * and decide:\n * 1. If the value has changed, and needs animating\n * 2. If it has been removed, and needs adding to the removedKeys set\n * 3. If it has been removed in a higher priority type and needs animating\n * 4. If it hasn't been removed in a higher priority but hasn't changed, and\n * needs adding to the type's protectedKeys list.\n */\n const { prevResolvedValues = {} } = typeState;\n const allKeys = {\n ...prevResolvedValues,\n ...resolvedValues,\n };\n const markToAnimate = (key) => {\n shouldAnimateType = true;\n if (removedKeys.has(key)) {\n handledRemovedValues = true;\n removedKeys.delete(key);\n }\n typeState.needsAnimating[key] = true;\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = false;\n };\n for (const key in allKeys) {\n const next = resolvedValues[key];\n const prev = prevResolvedValues[key];\n // If we've already handled this we can just skip ahead\n if (encounteredKeys.hasOwnProperty(key))\n continue;\n /**\n * If the value has changed, we probably want to animate it.\n */\n let valueHasChanged = false;\n if (isKeyframesTarget(next) && isKeyframesTarget(prev)) {\n valueHasChanged = !shallowCompare(next, prev);\n }\n else {\n valueHasChanged = next !== prev;\n }\n if (valueHasChanged) {\n if (next !== undefined && next !== null) {\n // If next is defined and doesn't equal prev, it needs animating\n markToAnimate(key);\n }\n else {\n // If it's undefined, it's been removed.\n removedKeys.add(key);\n }\n }\n else if (next !== undefined && removedKeys.has(key)) {\n /**\n * If next hasn't changed and it isn't undefined, we want to check if it's\n * been removed by a higher priority\n */\n markToAnimate(key);\n }\n else {\n /**\n * If it hasn't changed, we add it to the list of protected values\n * to ensure it doesn't get animated.\n */\n typeState.protectedKeys[key] = true;\n }\n }\n /**\n * Update the typeState so next time animateChanges is called we can compare the\n * latest prop and resolvedValues to these.\n */\n typeState.prevProp = prop;\n typeState.prevResolvedValues = resolvedValues;\n /**\n *\n */\n if (typeState.isActive) {\n encounteredKeys = { ...encounteredKeys, ...resolvedValues };\n }\n if (isInitialRender && visualElement.blockInitialAnimation) {\n shouldAnimateType = false;\n }\n /**\n * If this is an inherited prop we want to skip this animation\n * unless the inherited variants haven't changed on this render.\n */\n const willAnimateViaParent = isInherited && variantDidChange;\n const needsAnimating = !willAnimateViaParent || handledRemovedValues;\n if (shouldAnimateType && needsAnimating) {\n animations.push(...definitionList.map((animation) => ({\n animation: animation,\n options: { type },\n })));\n }\n }\n /**\n * If there are some removed value that haven't been dealt with,\n * we need to create a new animation that falls back either to the value\n * defined in the style prop, or the last read value.\n */\n if (removedKeys.size) {\n const fallbackAnimation = {};\n /**\n * If the initial prop contains a transition we can use that, otherwise\n * allow the animation function to use the visual element's default.\n */\n if (typeof props.initial !== \"boolean\") {\n const initialTransition = resolveVariant(visualElement, Array.isArray(props.initial)\n ? props.initial[0]\n : props.initial);\n if (initialTransition && initialTransition.transition) {\n fallbackAnimation.transition = initialTransition.transition;\n }\n }\n removedKeys.forEach((key) => {\n const fallbackTarget = visualElement.getBaseTarget(key);\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = true;\n // @ts-expect-error - @mattgperry to figure if we should do something here\n fallbackAnimation[key] = fallbackTarget ?? null;\n });\n animations.push({ animation: fallbackAnimation });\n }\n let shouldAnimate = Boolean(animations.length);\n if (isInitialRender &&\n (props.initial === false || props.initial === props.animate) &&\n !visualElement.manuallyAnimateOnMount) {\n shouldAnimate = false;\n }\n isInitialRender = false;\n return shouldAnimate ? animate(animations) : Promise.resolve();\n }\n /**\n * Change whether a certain animation type is active.\n */\n function setActive(type, isActive) {\n // If the active state hasn't changed, we can safely do nothing here\n if (state[type].isActive === isActive)\n return Promise.resolve();\n // Propagate active change to children\n visualElement.variantChildren?.forEach((child) => child.animationState?.setActive(type, isActive));\n state[type].isActive = isActive;\n const animations = animateChanges(type);\n for (const key in state) {\n state[key].protectedKeys = {};\n }\n return animations;\n }\n return {\n animateChanges,\n setActive,\n setAnimateFunction,\n getState: () => state,\n reset: () => {\n state = createState();\n isInitialRender = true;\n },\n };\n}\nfunction checkVariantsDidChange(prev, next) {\n if (typeof next === \"string\") {\n return next !== prev;\n }\n else if (Array.isArray(next)) {\n return !shallowCompare(next, prev);\n }\n return false;\n}\nfunction createTypeState(isActive = false) {\n return {\n isActive,\n protectedKeys: {},\n needsAnimating: {},\n prevResolvedValues: {},\n };\n}\nfunction createState() {\n return {\n animate: createTypeState(true),\n whileInView: createTypeState(),\n whileHover: createTypeState(),\n whileTap: createTypeState(),\n whileDrag: createTypeState(),\n whileFocus: createTypeState(),\n exit: createTypeState(),\n };\n}\n\nexport { checkVariantsDidChange, createAnimationState };\n"],"names":["reversePriorityOrder","variantPriorityOrder","reverse","numAnimationTypes","length","animateList","visualElement","animations","Promise","all","map","_ref","animation","options","animateVisualElement","checkVariantsDidChange","prev","next","Array","isArray","shallowCompare","createTypeState","isActive","arguments","undefined","protectedKeys","needsAnimating","prevResolvedValues","createState","animate","whileInView","whileHover","whileTap","whileDrag","whileFocus","exit","state","isInitialRender","buildResolvedTypeValues","type","acc","definition","resolved","resolveVariant","presenceContext","custom","transition","transitionEnd","target","animateChanges","changedActiveType","props","context","getVariantContext","parent","removedKeys","Set","encounteredKeys","removedVariantIndex","Infinity","i","typeState","prop","propIsVariant","isVariantLabel","activeDelta","isInherited","manuallyAnimateOnMount","prevProp","isAnimationControls","variantDidChange","shouldAnimateType","handledRemovedValues","definitionList","resolvedValues","reduce","allKeys","markToAnimate","key","has","delete","motionValue","getValue","liveStyle","hasOwnProperty","valueHasChanged","isKeyframesTarget","add","blockInitialAnimation","push","size","fallbackAnimation","initial","initialTransition","forEach","fallbackTarget","getBaseTarget","shouldAnimate","Boolean","resolve","setActive","variantChildren","child","animationState","setAnimateFunction","makeAnimator","getState","reset"],"mappings":"wdASA,MAAMA,EAAuB,IAAIC,wBAAsBC,UACjDC,EAAoBF,EAAoBA,qBAACG,OAC/C,SAASC,EAAYC,GACjB,OAAQC,GAAeC,QAAQC,IAAIF,EAAWG,KAAIC,IAAA,IAACC,UAAEA,EAASC,QAAEA,GAAS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A,EAAM0C,GAAKrD,cAAgB,GAE/B,OAAOlB,CACX,EAIIiG,mBA5QJ,SAA4BC,GACxB5E,EAAU4E,EAAanG,EAC3B,EA2QIoG,SAAUA,IAAMtE,EAChBuE,MAAOA,KACHvE,EAAQR,IACRS,GAAkB,CAAI,EAGlC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../motion-dom/dist/es/frameloop/sync-time.mjs.js"),t=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js");exports.delay=function(o,r){const s=e.time.now(),m=({timestamp:e})=>{const a=e-s;a>=r&&(t.cancelFrame(m),o(a-r))};return t.frame.setup(m,!0),()=>t.cancelFrame(m)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../motion-dom/dist/es/frameloop/sync-time.mjs.js"),t=require("../../../../motion-dom/dist/es/frameloop/frame.mjs.js");exports.delay=function(o,r){const s=e.time.now(),m=e=>{let{timestamp:a}=e;const i=a-s;i>=r&&(t.cancelFrame(m),o(i-r))};return t.frame.setup(m,!0),()=>t.cancelFrame(m)};
2
2
  //# sourceMappingURL=delay.mjs.js.map