@tamagui/react-native-web-lite 3.0.0-beta.669.1 → 3.0.0-beta.719.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 (178) hide show
  1. package/dist/cjs/AccessibilityInfo/index.cjs +0 -1
  2. package/dist/cjs/ActivityIndicator/index.cjs +0 -1
  3. package/dist/cjs/Alert/index.cjs +0 -1
  4. package/dist/cjs/AppRegistry/AppContainer.cjs +0 -1
  5. package/dist/cjs/AppRegistry/index.cjs +0 -1
  6. package/dist/cjs/AppRegistry/renderApplication.cjs +0 -1
  7. package/dist/cjs/AppState/index.cjs +0 -1
  8. package/dist/cjs/Appearance/index.cjs +0 -1
  9. package/dist/cjs/BackHandler/index.cjs +0 -1
  10. package/dist/cjs/Clipboard/index.cjs +0 -1
  11. package/dist/cjs/DeviceEmitter.cjs +0 -1
  12. package/dist/cjs/DeviceInfo/index.cjs +0 -1
  13. package/dist/cjs/Dimensions/index.cjs +0 -1
  14. package/dist/cjs/FlatList.cjs +0 -1
  15. package/dist/cjs/I18nManager/index.cjs +0 -1
  16. package/dist/cjs/Image/index.cjs +0 -1
  17. package/dist/cjs/Image/types.cjs +0 -1
  18. package/dist/cjs/ImageBackground/index.cjs +0 -1
  19. package/dist/cjs/InteractionManager/TaskQueue.cjs +0 -1
  20. package/dist/cjs/InteractionManager/index.cjs +0 -1
  21. package/dist/cjs/Keyboard/index.cjs +0 -1
  22. package/dist/cjs/KeyboardAvoidingView/index.cjs +0 -1
  23. package/dist/cjs/Libraries/Pressability/Pressability.cjs +0 -1
  24. package/dist/cjs/Libraries/Pressability/usePressability.cjs +0 -1
  25. package/dist/cjs/Linking/index.cjs +0 -1
  26. package/dist/cjs/LogBox/index.cjs +0 -1
  27. package/dist/cjs/Modal/ModalAnimation.cjs +0 -1
  28. package/dist/cjs/Modal/ModalContent.cjs +0 -1
  29. package/dist/cjs/Modal/ModalPortal.cjs +0 -1
  30. package/dist/cjs/Modal/index.cjs +0 -1
  31. package/dist/cjs/NativeModules/index.cjs +0 -1
  32. package/dist/cjs/PanResponder/index.cjs +0 -1
  33. package/dist/cjs/PixelRatio/index.cjs +0 -1
  34. package/dist/cjs/Pressable/index.cjs +0 -1
  35. package/dist/cjs/RefreshControl/index.cjs +0 -1
  36. package/dist/cjs/SafeAreaView/index.cjs +0 -1
  37. package/dist/cjs/ScrollView/WebScrollView.cjs +0 -1
  38. package/dist/cjs/ScrollView/index.cjs +0 -1
  39. package/dist/cjs/SectionList.cjs +0 -1
  40. package/dist/cjs/Share/index.cjs +0 -1
  41. package/dist/cjs/StatusBar/index.cjs +0 -1
  42. package/dist/cjs/Text/index.cjs +0 -1
  43. package/dist/cjs/Text/types.cjs +0 -1
  44. package/dist/cjs/TextInput/index.cjs +0 -1
  45. package/dist/cjs/TextInput/types.cjs +0 -1
  46. package/dist/cjs/TouchableNativeFeedback.cjs +0 -1
  47. package/dist/cjs/TouchableOpacity.cjs +0 -1
  48. package/dist/cjs/TouchableWithoutFeedback.cjs +0 -1
  49. package/dist/cjs/UnimplementedView.cjs +0 -1
  50. package/dist/cjs/Vibration/index.cjs +0 -1
  51. package/dist/cjs/View/index.cjs +0 -1
  52. package/dist/cjs/View/types.cjs +0 -1
  53. package/dist/cjs/VirtualizedList.cjs +0 -1
  54. package/dist/cjs/codegenNativeCommands.cjs +0 -1
  55. package/dist/cjs/codegenNativeComponent.cjs +0 -1
  56. package/dist/cjs/createElement/index.cjs +0 -1
  57. package/dist/cjs/createReactDOMStyle.cjs +0 -1
  58. package/dist/cjs/index.cjs +0 -1
  59. package/dist/cjs/modules/requestIdleCallback.cjs +0 -1
  60. package/dist/cjs/preprocess.cjs +0 -1
  61. package/dist/cjs/render/index.cjs +0 -1
  62. package/dist/cjs/styleTypes.cjs +0 -1
  63. package/dist/cjs/types.cjs +0 -1
  64. package/dist/cjs/useColorScheme/index.cjs +0 -1
  65. package/dist/cjs/useLocaleContext/index.cjs +0 -1
  66. package/dist/cjs/useWindowDimensions/index.cjs +0 -1
  67. package/dist/cjs/vendor/react-native/Animated/Animated.cjs +0 -1
  68. package/dist/cjs/vendor/react-native/Animated/AnimatedEvent.cjs +0 -1
  69. package/dist/cjs/vendor/react-native/Animated/AnimatedImplementation.cjs +0 -1
  70. package/dist/cjs/vendor/react-native/Animated/AnimatedMock.cjs +0 -1
  71. package/dist/cjs/vendor/react-native/Animated/AnimatedPlatformConfig.cjs +0 -1
  72. package/dist/cjs/vendor/react-native/Animated/Easing.cjs +0 -1
  73. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedHelper.cjs +0 -1
  74. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedModule.cjs +0 -1
  75. package/dist/cjs/vendor/react-native/Animated/NativeAnimatedTurboModule.cjs +0 -1
  76. package/dist/cjs/vendor/react-native/Animated/SpringConfig.cjs +0 -1
  77. package/dist/cjs/vendor/react-native/Animated/animations/Animation.cjs +0 -1
  78. package/dist/cjs/vendor/react-native/Animated/animations/DecayAnimation.cjs +0 -1
  79. package/dist/cjs/vendor/react-native/Animated/animations/SpringAnimation.cjs +0 -1
  80. package/dist/cjs/vendor/react-native/Animated/animations/TimingAnimation.cjs +0 -1
  81. package/dist/cjs/vendor/react-native/Animated/bezier.cjs +0 -1
  82. package/dist/cjs/vendor/react-native/Animated/components/AnimatedFlatList.cjs +0 -1
  83. package/dist/cjs/vendor/react-native/Animated/components/AnimatedImage.cjs +0 -1
  84. package/dist/cjs/vendor/react-native/Animated/components/AnimatedScrollView.cjs +0 -1
  85. package/dist/cjs/vendor/react-native/Animated/components/AnimatedSectionList.cjs +0 -1
  86. package/dist/cjs/vendor/react-native/Animated/components/AnimatedText.cjs +0 -1
  87. package/dist/cjs/vendor/react-native/Animated/components/AnimatedView.cjs +0 -1
  88. package/dist/cjs/vendor/react-native/Animated/createAnimatedComponent.cjs +0 -1
  89. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedAddition.cjs +0 -1
  90. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedColor.cjs +0 -1
  91. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDiffClamp.cjs +0 -1
  92. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedDivision.cjs +0 -1
  93. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedInterpolation.cjs +0 -1
  94. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedModulo.cjs +0 -1
  95. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedMultiplication.cjs +0 -1
  96. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedNode.cjs +0 -1
  97. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedProps.cjs +0 -1
  98. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedStyle.cjs +0 -1
  99. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedSubtraction.cjs +0 -1
  100. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTracking.cjs +0 -1
  101. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedTransform.cjs +0 -1
  102. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValue.cjs +0 -1
  103. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedValueXY.cjs +0 -1
  104. package/dist/cjs/vendor/react-native/Animated/nodes/AnimatedWithChildren.cjs +0 -1
  105. package/dist/cjs/vendor/react-native/Animated/useAnimatedProps.cjs +0 -1
  106. package/dist/cjs/vendor/react-native/Batchinator/index.cjs +0 -1
  107. package/dist/cjs/vendor/react-native/EventEmitter/NativeEventEmitter.cjs +0 -1
  108. package/dist/cjs/vendor/react-native/EventEmitter/RCTDeviceEventEmitter.cjs +0 -1
  109. package/dist/cjs/vendor/react-native/FeatureFlags.cjs +0 -1
  110. package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +0 -1
  111. package/dist/cjs/vendor/react-native/FlatList/index.cjs +0 -1
  112. package/dist/cjs/vendor/react-native/JSEventLoopWatchdog/index.cjs +0 -1
  113. package/dist/cjs/vendor/react-native/LayoutAnimation/index.cjs +0 -1
  114. package/dist/cjs/vendor/react-native/PanResponder/index.cjs +0 -1
  115. package/dist/cjs/vendor/react-native/PooledClass/index.cjs +0 -1
  116. package/dist/cjs/vendor/react-native/ReactNative/ReactNativeFeatureFlags.cjs +0 -1
  117. package/dist/cjs/vendor/react-native/SectionList/index.cjs +0 -1
  118. package/dist/cjs/vendor/react-native/StaticContainer/index.cjs +0 -1
  119. package/dist/cjs/vendor/react-native/StaticRenderer/index.cjs +0 -1
  120. package/dist/cjs/vendor/react-native/TouchHistoryMath/index.cjs +0 -1
  121. package/dist/cjs/vendor/react-native/TurboModule/RCTExport.cjs +0 -1
  122. package/dist/cjs/vendor/react-native/TurboModule/TurboModuleRegistry.cjs +0 -1
  123. package/dist/cjs/vendor/react-native/Types/CoreEventTypes.cjs +0 -1
  124. package/dist/cjs/vendor/react-native/Utilities/Platform.cjs +0 -1
  125. package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +0 -1
  126. package/dist/cjs/vendor/react-native/Utilities/setAndForwardRef.cjs +0 -1
  127. package/dist/cjs/vendor/react-native/Utilities/useMergeRefs.cjs +0 -1
  128. package/dist/cjs/vendor/react-native/Utilities/useRefEffect.cjs +0 -1
  129. package/dist/cjs/vendor/react-native/ViewabilityHelper/index.cjs +0 -1
  130. package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +0 -1
  131. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +0 -1
  132. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +0 -1
  133. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +0 -1
  134. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +0 -1
  135. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +0 -1
  136. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +0 -1
  137. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +0 -1
  138. package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +0 -1
  139. package/dist/cjs/vendor/react-native/VirtualizedSectionList/index.cjs +0 -1
  140. package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +0 -1
  141. package/dist/cjs/vendor/react-native/emitter/EventEmitter.cjs +0 -1
  142. package/dist/cjs/vendor/react-native/emitter/EventSubscription.cjs +0 -1
  143. package/dist/cjs/vendor/react-native/emitter/_EmitterSubscription.cjs +0 -1
  144. package/dist/cjs/vendor/react-native/emitter/_EventEmitter.cjs +0 -1
  145. package/dist/cjs/vendor/react-native/emitter/_EventSubscription.cjs +0 -1
  146. package/dist/cjs/vendor/react-native/emitter/_EventSubscriptionVendor.cjs +0 -1
  147. package/dist/cjs/vendor/react-native/infoLog/index.cjs +0 -1
  148. package/dist/cjs/vendor/react-native/useRefEffect.cjs +0 -1
  149. package/dist/cjs/vendor/react-native/vendor/emitter/EventEmitter.cjs +0 -1
  150. package/dist/cjs/without-animated.cjs +0 -1
  151. package/dist/esm/AppRegistry/index.mjs.map +1 -1
  152. package/dist/esm/AppState/index.mjs.map +1 -1
  153. package/dist/esm/Dimensions/index.mjs.map +1 -1
  154. package/dist/esm/FlatList.mjs.map +1 -1
  155. package/dist/esm/Image/index.mjs.map +1 -1
  156. package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -1
  157. package/dist/esm/Linking/index.mjs.map +1 -1
  158. package/dist/esm/PixelRatio/index.mjs.map +1 -1
  159. package/dist/esm/SafeAreaView/index.mjs.map +1 -1
  160. package/dist/esm/ScrollView/WebScrollView.mjs.map +1 -1
  161. package/dist/esm/View/index.mjs.map +1 -1
  162. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.mjs.map +1 -1
  163. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.mjs.map +1 -1
  164. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.mjs.map +1 -1
  165. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.mjs.map +1 -1
  166. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.mjs.map +1 -1
  167. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.mjs.map +1 -1
  168. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.mjs.map +1 -1
  169. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.mjs.map +1 -1
  170. package/dist/esm/vendor/react-native/FlatList/index.mjs.map +1 -1
  171. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -1
  172. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -1
  173. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -1
  174. package/dist/esm/vendor/react-native/VirtualizedSectionList/index.mjs.map +1 -1
  175. package/dist/esm/vendor/react-native/emitter/_EventEmitter.mjs.map +1 -1
  176. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.mjs.map +1 -1
  177. package/dist/esm/without-animated.mjs.map +1 -1
  178. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedValue.js","names":[],"sources":["esm/vendor/react-native/Animated/nodes/AnimatedValue.js"],"sourcesContent":["import { AnimatedInterpolation } from \"./AnimatedInterpolation\";\nimport { AnimatedWithChildren } from \"./AnimatedWithChildren\";\nimport { InteractionManager } from \"@tamagui/react-native-web-internals\";\nimport { NativeAnimatedHelper } from \"../NativeAnimatedHelper\";\nconst NativeAnimatedAPI = NativeAnimatedHelper.API;\nfunction _flush(rootNode) {\n const animatedStyles = /* @__PURE__ */ new Set();\n function findAnimatedStyles(node) {\n if (typeof node.update === \"function\") {\n animatedStyles.add(node);\n } else {\n node.__getChildren().forEach(findAnimatedStyles);\n }\n }\n findAnimatedStyles(rootNode);\n animatedStyles.forEach((animatedStyle) => animatedStyle.update());\n}\nfunction _executeAsAnimatedBatch(id, operation) {\n NativeAnimatedAPI.setWaitingForIdentifier(id);\n operation();\n NativeAnimatedAPI.unsetWaitingForIdentifier(id);\n}\nclass AnimatedValue extends AnimatedWithChildren {\n _value;\n _startingValue;\n _offset;\n _animation;\n _tracking;\n constructor(value, config) {\n super();\n if (typeof value !== \"number\") {\n throw new Error(\"AnimatedValue: Attempting to set value to undefined\");\n }\n this._startingValue = this._value = value;\n this._offset = 0;\n this._animation = null;\n if (config && config.useNativeDriver) {\n this.__makeNative();\n }\n }\n __detach() {\n if (this.__isNative) {\n NativeAnimatedAPI.getValue(this.__getNativeTag(), (value) => {\n this._value = value - this._offset;\n });\n }\n this.stopAnimation();\n super.__detach();\n }\n __getValue() {\n return this._value + this._offset;\n }\n /**\n * Directly set the value. This will stop any animations running on the value\n * and update all the bound properties.\n *\n * See https://reactnative.dev/docs/animatedvalue#setvalue\n */\n setValue(value) {\n if (this._animation) {\n this._animation.stop();\n this._animation = null;\n }\n this._updateValue(\n value,\n !this.__isNative\n /* don't perform a flush for natively driven values */\n );\n if (this.__isNative) {\n _executeAsAnimatedBatch(\n this.__getNativeTag().toString(),\n () => NativeAnimatedAPI.setAnimatedNodeValue(this.__getNativeTag(), value)\n );\n }\n }\n /**\n * Sets an offset that is applied on top of whatever value is set, whether via\n * `setValue`, an animation, or `Animated.event`. Useful for compensating\n * things like the start of a pan gesture.\n *\n * See https://reactnative.dev/docs/animatedvalue#setoffset\n */\n setOffset(offset) {\n this._offset = offset;\n if (this.__isNative) {\n NativeAnimatedAPI.setAnimatedNodeOffset(this.__getNativeTag(), offset);\n }\n }\n /**\n * Merges the offset value into the base value and resets the offset to zero.\n * The final output of the value is unchanged.\n *\n * See https://reactnative.dev/docs/animatedvalue#flattenoffset\n */\n flattenOffset() {\n this._value += this._offset;\n this._offset = 0;\n if (this.__isNative) {\n NativeAnimatedAPI.flattenAnimatedNodeOffset(this.__getNativeTag());\n }\n }\n /**\n * Sets the offset value to the base value, and resets the base value to zero.\n * The final output of the value is unchanged.\n *\n * See https://reactnative.dev/docs/animatedvalue#extractoffset\n */\n extractOffset() {\n this._offset += this._value;\n this._value = 0;\n if (this.__isNative) {\n NativeAnimatedAPI.extractAnimatedNodeOffset(this.__getNativeTag());\n }\n }\n /**\n * Stops any running animation or tracking. `callback` is invoked with the\n * final value after stopping the animation, which is useful for updating\n * state to match the animation position with layout.\n *\n * See https://reactnative.dev/docs/animatedvalue#stopanimation\n */\n stopAnimation(callback) {\n this.stopTracking();\n this._animation && this._animation.stop();\n this._animation = null;\n if (callback) {\n if (this.__isNative) {\n NativeAnimatedAPI.getValue(this.__getNativeTag(), callback);\n } else {\n callback(this.__getValue());\n }\n }\n }\n /**\n * Stops any animation and resets the value to its original.\n *\n * See https://reactnative.dev/docs/animatedvalue#resetanimation\n */\n resetAnimation(callback) {\n this.stopAnimation(callback);\n this._value = this._startingValue;\n if (this.__isNative) {\n NativeAnimatedAPI.setAnimatedNodeValue(this.__getNativeTag(), this._startingValue);\n }\n }\n __onAnimatedValueUpdateReceived(value) {\n this._updateValue(\n value,\n false\n /*flush*/\n );\n }\n /**\n * Interpolates the value before updating the property, e.g. mapping 0-1 to\n * 0-10.\n */\n interpolate(config) {\n return new AnimatedInterpolation(this, config);\n }\n /**\n * Typically only used internally, but could be used by a custom Animation\n * class.\n *\n * See https://reactnative.dev/docs/animatedvalue#animate\n */\n animate(animation, callback) {\n let handle = null;\n if (animation.__isInteraction) {\n handle = InteractionManager.createInteractionHandle();\n }\n const previousAnimation = this._animation;\n this._animation && this._animation.stop();\n this._animation = animation;\n animation.start(\n this._value,\n (value) => {\n this._updateValue(\n value,\n true\n /* flush */\n );\n },\n (result) => {\n this._animation = null;\n if (handle !== null) {\n InteractionManager.clearInteractionHandle(handle);\n }\n callback && callback(result);\n },\n previousAnimation,\n this\n );\n }\n /**\n * Typically only used internally.\n */\n stopTracking() {\n this._tracking && this._tracking.__detach();\n this._tracking = null;\n }\n /**\n * Typically only used internally.\n */\n track(tracking) {\n this.stopTracking();\n this._tracking = tracking;\n this._tracking && this._tracking.update();\n }\n _updateValue(value, flush) {\n if (value === void 0) {\n throw new Error(\"AnimatedValue: Attempting to set value to undefined\");\n }\n this._value = value;\n if (flush) {\n _flush(this);\n }\n super.__callListeners(this.__getValue());\n }\n __getNativeConfig() {\n return {\n type: \"value\",\n value: this._value,\n offset: this._offset\n };\n }\n}\nvar AnimatedValue_default = AnimatedValue;\nexport {\n AnimatedValue,\n AnimatedValue_default as default\n};\n//# sourceMappingURL=AnimatedValue.js.map\n"],"mappings":";;;;;;AAIA,MAAM,oBAAoB,qBAAqB;AAC/C,SAAS,OAAO,UAAU;CACxB,MAAM,iCAAiC,IAAI,IAAI;CAC/C,SAAS,mBAAmB,MAAM;EAChC,IAAI,OAAO,KAAK,WAAW,YAAY;GACrC,eAAe,IAAI,IAAI;EACzB,OAAO;GACL,KAAK,cAAc,EAAE,QAAQ,kBAAkB;EACjD;CACF;CACA,mBAAmB,QAAQ;CAC3B,eAAe,SAAS,kBAAkB,cAAc,OAAO,CAAC;AAClE;AACA,SAAS,wBAAwB,IAAI,WAAW;CAC9C,kBAAkB,wBAAwB,EAAE;CAC5C,UAAU;CACV,kBAAkB,0BAA0B,EAAE;AAChD;AACA,IAAM,gBAAN,cAA4B,qBAAqB;CAC/C;CACA;CACA;CACA;CACA;CACA,YAAY,OAAO,QAAQ;EACzB,MAAM;EACN,IAAI,OAAO,UAAU,UAAU;GAC7B,MAAM,IAAI,MAAM,qDAAqD;EACvE;EACA,KAAK,iBAAiB,KAAK,SAAS;EACpC,KAAK,UAAU;EACf,KAAK,aAAa;EAClB,IAAI,UAAU,OAAO,iBAAiB;GACpC,KAAK,aAAa;EACpB;CACF;CACA,WAAW;EACT,IAAI,KAAK,YAAY;GACnB,kBAAkB,SAAS,KAAK,eAAe,IAAI,UAAU;IAC3D,KAAK,SAAS,QAAQ,KAAK;GAC7B,CAAC;EACH;EACA,KAAK,cAAc;EACnB,MAAM,SAAS;CACjB;CACA,aAAa;EACX,OAAO,KAAK,SAAS,KAAK;CAC5B;;;;;;;CAOA,SAAS,OAAO;EACd,IAAI,KAAK,YAAY;GACnB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wBAAwB;EACtD;EACA,MAAM,oBAAoB,KAAK;EAC/B,KAAK,cAAc,KAAK,WAAW,KAAK;EACxC,KAAK,aAAa;EAClB,UAAU,MACR,KAAK,SACJ,UAAU;GACT,KAAK,aACH,OACA,IAEF;EACF,IACC,WAAW;GACV,KAAK,aAAa;GAClB,IAAI,WAAW,MAAM;IACnB,mBAAmB,uBAAuB,MAAM;GAClD;GACA,YAAY,SAAS,MAAM;EAC7B,GACA,mBACA,IACF;CACF;;;;CAIA,eAAe;EACb,KAAK,aAAa,KAAK,UAAU,SAAS;EAC1C,KAAK,YAAY;CACnB;;;;CAIA,MAAM,UAAU;EACd,KAAK,aAAa;EAClB,KAAK,YAAY;EACjB,KAAK,aAAa,KAAK,UAAU,OAAO;CAC1C;CACA,aAAa,OAAO,OAAO;EACzB,IAAI,UAAU,KAAK,GAAG;GACpB,MAAM,IAAI,MAAM,qDAAqD;EACvE;EACA,KAAK,SAAS;EACd,IAAI,OAAO;GACT,OAAO,IAAI;EACb;EACA,MAAM,gBAAgB,KAAK,WAAW,CAAC;CACzC;CACA,oBAAoB;EAClB,OAAO;GACL,MAAM;GACN,OAAO,KAAK;GACZ,QAAQ,KAAK;EACf;CACF;AACF;AACA,IAAI,wBAAwB"}
1
+ {"version":3,"file":"AnimatedValue.js","names":[],"sources":["esm/vendor/react-native/Animated/nodes/AnimatedValue.js"],"sourcesContent":["import { AnimatedInterpolation } from \"./AnimatedInterpolation\";\nimport { AnimatedWithChildren } from \"./AnimatedWithChildren\";\nimport { InteractionManager } from \"@tamagui/react-native-web-internals\";\nimport { NativeAnimatedHelper } from \"../NativeAnimatedHelper\";\nconst NativeAnimatedAPI = NativeAnimatedHelper.API;\nfunction _flush(rootNode) {\n const animatedStyles = /* @__PURE__ */ new Set();\n function findAnimatedStyles(node) {\n if (typeof node.update === \"function\") {\n animatedStyles.add(node);\n } else {\n node.__getChildren().forEach(findAnimatedStyles);\n }\n }\n findAnimatedStyles(rootNode);\n animatedStyles.forEach((animatedStyle) => animatedStyle.update());\n}\nfunction _executeAsAnimatedBatch(id, operation) {\n NativeAnimatedAPI.setWaitingForIdentifier(id);\n operation();\n NativeAnimatedAPI.unsetWaitingForIdentifier(id);\n}\nclass AnimatedValue extends AnimatedWithChildren {\n _value;\n _startingValue;\n _offset;\n _animation;\n _tracking;\n constructor(value, config) {\n super();\n if (typeof value !== \"number\") {\n throw new Error(\"AnimatedValue: Attempting to set value to undefined\");\n }\n this._startingValue = this._value = value;\n this._offset = 0;\n this._animation = null;\n if (config && config.useNativeDriver) {\n this.__makeNative();\n }\n }\n __detach() {\n if (this.__isNative) {\n NativeAnimatedAPI.getValue(this.__getNativeTag(), (value) => {\n this._value = value - this._offset;\n });\n }\n this.stopAnimation();\n super.__detach();\n }\n __getValue() {\n return this._value + this._offset;\n }\n /**\n * Directly set the value. This will stop any animations running on the value\n * and update all the bound properties.\n *\n * See https://reactnative.dev/docs/animatedvalue#setvalue\n */\n setValue(value) {\n if (this._animation) {\n this._animation.stop();\n this._animation = null;\n }\n this._updateValue(\n value,\n !this.__isNative\n /* don't perform a flush for natively driven values */\n );\n if (this.__isNative) {\n _executeAsAnimatedBatch(\n this.__getNativeTag().toString(),\n () => NativeAnimatedAPI.setAnimatedNodeValue(this.__getNativeTag(), value)\n );\n }\n }\n /**\n * Sets an offset that is applied on top of whatever value is set, whether via\n * `setValue`, an animation, or `Animated.event`. Useful for compensating\n * things like the start of a pan gesture.\n *\n * See https://reactnative.dev/docs/animatedvalue#setoffset\n */\n setOffset(offset) {\n this._offset = offset;\n if (this.__isNative) {\n NativeAnimatedAPI.setAnimatedNodeOffset(this.__getNativeTag(), offset);\n }\n }\n /**\n * Merges the offset value into the base value and resets the offset to zero.\n * The final output of the value is unchanged.\n *\n * See https://reactnative.dev/docs/animatedvalue#flattenoffset\n */\n flattenOffset() {\n this._value += this._offset;\n this._offset = 0;\n if (this.__isNative) {\n NativeAnimatedAPI.flattenAnimatedNodeOffset(this.__getNativeTag());\n }\n }\n /**\n * Sets the offset value to the base value, and resets the base value to zero.\n * The final output of the value is unchanged.\n *\n * See https://reactnative.dev/docs/animatedvalue#extractoffset\n */\n extractOffset() {\n this._offset += this._value;\n this._value = 0;\n if (this.__isNative) {\n NativeAnimatedAPI.extractAnimatedNodeOffset(this.__getNativeTag());\n }\n }\n /**\n * Stops any running animation or tracking. `callback` is invoked with the\n * final value after stopping the animation, which is useful for updating\n * state to match the animation position with layout.\n *\n * See https://reactnative.dev/docs/animatedvalue#stopanimation\n */\n stopAnimation(callback) {\n this.stopTracking();\n this._animation && this._animation.stop();\n this._animation = null;\n if (callback) {\n if (this.__isNative) {\n NativeAnimatedAPI.getValue(this.__getNativeTag(), callback);\n } else {\n callback(this.__getValue());\n }\n }\n }\n /**\n * Stops any animation and resets the value to its original.\n *\n * See https://reactnative.dev/docs/animatedvalue#resetanimation\n */\n resetAnimation(callback) {\n this.stopAnimation(callback);\n this._value = this._startingValue;\n if (this.__isNative) {\n NativeAnimatedAPI.setAnimatedNodeValue(this.__getNativeTag(), this._startingValue);\n }\n }\n __onAnimatedValueUpdateReceived(value) {\n this._updateValue(\n value,\n false\n /*flush*/\n );\n }\n /**\n * Interpolates the value before updating the property, e.g. mapping 0-1 to\n * 0-10.\n */\n interpolate(config) {\n return new AnimatedInterpolation(this, config);\n }\n /**\n * Typically only used internally, but could be used by a custom Animation\n * class.\n *\n * See https://reactnative.dev/docs/animatedvalue#animate\n */\n animate(animation, callback) {\n let handle = null;\n if (animation.__isInteraction) {\n handle = InteractionManager.createInteractionHandle();\n }\n const previousAnimation = this._animation;\n this._animation && this._animation.stop();\n this._animation = animation;\n animation.start(\n this._value,\n (value) => {\n this._updateValue(\n value,\n true\n /* flush */\n );\n },\n (result) => {\n this._animation = null;\n if (handle !== null) {\n InteractionManager.clearInteractionHandle(handle);\n }\n callback && callback(result);\n },\n previousAnimation,\n this\n );\n }\n /**\n * Typically only used internally.\n */\n stopTracking() {\n this._tracking && this._tracking.__detach();\n this._tracking = null;\n }\n /**\n * Typically only used internally.\n */\n track(tracking) {\n this.stopTracking();\n this._tracking = tracking;\n this._tracking && this._tracking.update();\n }\n _updateValue(value, flush) {\n if (value === void 0) {\n throw new Error(\"AnimatedValue: Attempting to set value to undefined\");\n }\n this._value = value;\n if (flush) {\n _flush(this);\n }\n super.__callListeners(this.__getValue());\n }\n __getNativeConfig() {\n return {\n type: \"value\",\n value: this._value,\n offset: this._offset\n };\n }\n}\nvar AnimatedValue_default = AnimatedValue;\nexport {\n AnimatedValue,\n AnimatedValue_default as default\n};\n//# sourceMappingURL=AnimatedValue.js.map\n"],"mappings":";;;;;;AAIA,MAAM,oBAAoB,qBAAqB;AAC/C,SAAS,OAAO,UAAU;CACxB,MAAM,iCAAiC,IAAI,IAAI;CAC/C,SAAS,mBAAmB,MAAM;EAChC,IAAI,OAAO,KAAK,WAAW,YAAY;GACrC,eAAe,IAAI,IAAI;EACzB,OAAO;GACL,KAAK,cAAc,CAAC,CAAC,QAAQ,kBAAkB;EACjD;CACF;CACA,mBAAmB,QAAQ;CAC3B,eAAe,SAAS,kBAAkB,cAAc,OAAO,CAAC;AAClE;AACA,SAAS,wBAAwB,IAAI,WAAW;CAC9C,kBAAkB,wBAAwB,EAAE;CAC5C,UAAU;CACV,kBAAkB,0BAA0B,EAAE;AAChD;AACA,IAAM,gBAAN,cAA4B,qBAAqB;CAC/C;CACA;CACA;CACA;CACA;CACA,YAAY,OAAO,QAAQ;EACzB,MAAM;EACN,IAAI,OAAO,UAAU,UAAU;GAC7B,MAAM,IAAI,MAAM,qDAAqD;EACvE;EACA,KAAK,iBAAiB,KAAK,SAAS;EACpC,KAAK,UAAU;EACf,KAAK,aAAa;EAClB,IAAI,UAAU,OAAO,iBAAiB;GACpC,KAAK,aAAa;EACpB;CACF;CACA,WAAW;EACT,IAAI,KAAK,YAAY;GACnB,kBAAkB,SAAS,KAAK,eAAe,IAAI,UAAU;IAC3D,KAAK,SAAS,QAAQ,KAAK;GAC7B,CAAC;EACH;EACA,KAAK,cA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,IAAI,sBAAsB,MAAM,MAAM;CAC/C;;;;;;;CAOA,QAAQ,WAAW,UAAU;EAC3B,IAAI,SAAS;EACb,IAAI,UAAU,iBAAiB;GAC7B,SAAS,mBAAmB,wBAAwB;EACtD;EACA,MAAM,oBAAoB,KAAK;EAC/B,KAAK,cAAc,KAAK,WAAW,KAAK;EACxC,KAAK,aAAa;EAClB,UAAU,MACR,KAAK,SACJ,UAAU;GACT,KAAK,aACH,OACA,IAEF;EACF,IACC,WAAW;GACV,KAAK,aAAa;GAClB,IAAI,WAAW,MAAM;IACnB,mBAAmB,uBAAuB,MAAM;GAClD;GACA,YAAY,SAAS,MAAM;EAC7B,GACA,mBACA,IACF;CACF;;;;CAIA,eAAe;EACb,KAAK,aAAa,KAAK,UAAU,SAAS;EAC1C,KAAK,YAAY;CACnB;;;;CAIA,MAAM,UAAU;EACd,KAAK,aAAa;EAClB,KAAK,YAAY;EACjB,KAAK,aAAa,KAAK,UAAU,OAAO;CAC1C;CACA,aAAa,OAAO,OAAO;EACzB,IAAI,UAAU,KAAK,GAAG;GACpB,MAAM,IAAI,MAAM,qDAAqD;EACvE;EACA,KAAK,SAAS;EACd,IAAI,OAAO;GACT,OAAO,IAAI;EACb;EACA,MAAM,gBAAgB,KAAK,WAAW,CAAC;CACzC;CACA,oBAAoB;EAClB,OAAO;GACL,MAAM;GACN,OAAO,KAAK;GACZ,QAAQ,KAAK;EACf;CACF;AACF;AACA,IAAI,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnimatedValueXY.js","names":[],"sources":["esm/vendor/react-native/Animated/nodes/AnimatedValueXY.js"],"sourcesContent":["import { AnimatedValue } from \"./AnimatedValue\";\nimport { AnimatedWithChildren } from \"./AnimatedWithChildren\";\nimport { invariant } from \"@tamagui/react-native-web-internals\";\nlet _uniqueId = 1;\nclass AnimatedValueXY extends AnimatedWithChildren {\n constructor(valueIn) {\n super();\n const value = valueIn || { x: 0, y: 0 };\n if (typeof value.x === \"number\" && typeof value.y === \"number\") {\n this.x = new AnimatedValue(value.x);\n this.y = new AnimatedValue(value.y);\n } else {\n invariant(\n value.x instanceof AnimatedValue && value.y instanceof AnimatedValue,\n \"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues.\"\n );\n this.x = value.x;\n this.y = value.y;\n }\n this._listeners = {};\n }\n setValue(value) {\n this.x.setValue(value.x);\n this.y.setValue(value.y);\n }\n setOffset(offset) {\n this.x.setOffset(offset.x);\n this.y.setOffset(offset.y);\n }\n flattenOffset() {\n this.x.flattenOffset();\n this.y.flattenOffset();\n }\n extractOffset() {\n this.x.extractOffset();\n this.y.extractOffset();\n }\n __getValue() {\n return {\n x: this.x.__getValue(),\n y: this.y.__getValue()\n };\n }\n resetAnimation(callback) {\n this.x.resetAnimation();\n this.y.resetAnimation();\n callback && callback(this.__getValue());\n }\n stopAnimation(callback) {\n this.x.stopAnimation();\n this.y.stopAnimation();\n callback && callback(this.__getValue());\n }\n addListener(callback) {\n const id = String(_uniqueId++);\n const jointCallback = ({ value }) => {\n callback(this.__getValue());\n };\n this._listeners[id] = {\n x: this.x.addListener(jointCallback),\n y: this.y.addListener(jointCallback)\n };\n return id;\n }\n removeListener(id) {\n this.x.removeListener(this._listeners[id].x);\n this.y.removeListener(this._listeners[id].y);\n delete this._listeners[id];\n }\n removeAllListeners() {\n this.x.removeAllListeners();\n this.y.removeAllListeners();\n this._listeners = {};\n }\n getLayout() {\n return {\n left: this.x,\n top: this.y\n };\n }\n getTranslateTransform() {\n return [{ translateX: this.x }, { translateY: this.y }];\n }\n}\nvar AnimatedValueXY_default = AnimatedValueXY;\nexport {\n AnimatedValueXY,\n AnimatedValueXY_default as default\n};\n//# sourceMappingURL=AnimatedValueXY.js.map\n"],"mappings":";;;;;AAGA,IAAI,YAAY;AAChB,IAAM,kBAAN,cAA8B,qBAAqB;CACjD,YAAY,SAAS;EACnB,MAAM;EACN,MAAM,QAAQ,WAAW;GAAE,GAAG;GAAG,GAAG;EAAE;EACtC,IAAI,OAAO,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K,WAAW,IAAI,CAAC;EAC3C,OAAO,KAAK,WAAW;CACzB;CACA,qBAAqB;EACnB,KAAK,EAAE,mBAAmB;EAC1B,KAAK,EAAE,mBAAmB;EAC1B,KAAK,aAAa,CAAC;CACrB;CACA,YAAY;EACV,OAAO;GACL,MAAM,KAAK;GACX,KAAK,KAAK;EACZ;CACF;CACA,wBAAwB;EACtB,OAAO,CAAC,EAAE,YAAY,KAAK,EAAE,GAAG,EAAE,YAAY,KAAK,EAAE,CAAC;CACxD;AACF;AACA,IAAI,0BAA0B"}
1
+ {"version":3,"file":"AnimatedValueXY.js","names":[],"sources":["esm/vendor/react-native/Animated/nodes/AnimatedValueXY.js"],"sourcesContent":["import { AnimatedValue } from \"./AnimatedValue\";\nimport { AnimatedWithChildren } from \"./AnimatedWithChildren\";\nimport { invariant } from \"@tamagui/react-native-web-internals\";\nlet _uniqueId = 1;\nclass AnimatedValueXY extends AnimatedWithChildren {\n constructor(valueIn) {\n super();\n const value = valueIn || { x: 0, y: 0 };\n if (typeof value.x === \"number\" && typeof value.y === \"number\") {\n this.x = new AnimatedValue(value.x);\n this.y = new AnimatedValue(value.y);\n } else {\n invariant(\n value.x instanceof AnimatedValue && value.y instanceof AnimatedValue,\n \"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues.\"\n );\n this.x = value.x;\n this.y = value.y;\n }\n this._listeners = {};\n }\n setValue(value) {\n this.x.setValue(value.x);\n this.y.setValue(value.y);\n }\n setOffset(offset) {\n this.x.setOffset(offset.x);\n this.y.setOffset(offset.y);\n }\n flattenOffset() {\n this.x.flattenOffset();\n this.y.flattenOffset();\n }\n extractOffset() {\n this.x.extractOffset();\n this.y.extractOffset();\n }\n __getValue() {\n return {\n x: this.x.__getValue(),\n y: this.y.__getValue()\n };\n }\n resetAnimation(callback) {\n this.x.resetAnimation();\n this.y.resetAnimation();\n callback && callback(this.__getValue());\n }\n stopAnimation(callback) {\n this.x.stopAnimation();\n this.y.stopAnimation();\n callback && callback(this.__getValue());\n }\n addListener(callback) {\n const id = String(_uniqueId++);\n const jointCallback = ({ value }) => {\n callback(this.__getValue());\n };\n this._listeners[id] = {\n x: this.x.addListener(jointCallback),\n y: this.y.addListener(jointCallback)\n };\n return id;\n }\n removeListener(id) {\n this.x.removeListener(this._listeners[id].x);\n this.y.removeListener(this._listeners[id].y);\n delete this._listeners[id];\n }\n removeAllListeners() {\n this.x.removeAllListeners();\n this.y.removeAllListeners();\n this._listeners = {};\n }\n getLayout() {\n return {\n left: this.x,\n top: this.y\n };\n }\n getTranslateTransform() {\n return [{ translateX: this.x }, { translateY: this.y }];\n }\n}\nvar AnimatedValueXY_default = AnimatedValueXY;\nexport {\n AnimatedValueXY,\n AnimatedValueXY_default as default\n};\n//# sourceMappingURL=AnimatedValueXY.js.map\n"],"mappings":";;;;;AAGA,IAAI,YAAY;AAChB,IAAM,kBAAN,cAA8B,qBAAqB;CACjD,YAAY,SAAS;EACnB,MAAM;EACN,MAAM,QAAQ,WAAW;GAAE,GAAG;GAAG,GAAG;EAAE;EACtC,IAAI,OAAO,MAAM,MAAM,YAAY,OAAO,MAAM,MAAM,UAAU;GAC9D,KAAK,IAAI,IAAI,cAAc,MAAM,CAAC;GAClC,KAAK,IAAI,IAAI,cAAc,MAAM,CAAC;EACpC,OAAO;GACL,UACE,MAAM,aAAa,iBAAiB,MAAM,aAAa,eACvD,kFACF;GACA,KAAK,IAAI,MAAM;GACf,KAAK,IAAI,MAAM;EACjB;EACA,KAAK,aAAa,CAAC;CACrB;CACA,SAAS,OAAO;EACd,KAAK,EAAE,SAAS,MAAM,CAAC;EACvB,KAAK,EAAE,SAAS,MAAM,CAAC;CACzB;CACA,UAAU,QAAQ;EAChB,KAAK,EAAE,UAAU,OAAO,CAAC;EACzB,KAAK,EAAE,UAAU,OAAO,CAAC;CAC3B;CACA,gBAAgB;EACd,KAAK,EAAE,cAAc;EACrB,KAAK,EAAE,cAAc;CACvB;CACA,gBAAgB;EACd,KAAK,EAAE,cAAc;EACrB,KAAK,EAAE,cAAc;CACvB;CACA,aAAa;EACX,OAAO;GACL,GAAG,KAAK,EAAE,WAAW;GACrB,GAAG,KAAK,EAAE,WAAW;EACvB;CACF;CACA,eAAe,UAAU;EACvB,KAAK,EAAE,eAAe;EACtB,KAAK,EAAE,eAAe;EACtB,YAAY,SAAS,KAAK,WAAW,CAAC;CACxC;CACA,cAAc,UAAU;EACtB,KAAK,EAAE,cAAc;EACrB,KAAK,EAAE,cAAc;EACrB,YAAY,SAAS,KAAK,WAAW,CAAC;CACxC;CACA,YAAY,UAAU;EACpB,MAAM,KAAK,OAAO,WAAW;EAC7B,MAAM,iBAAiB,EAAE,YAAY;GACnC,SAAS,KAAK,WAAW,CAAC;EAC5B;EACA,KAAK,WAAW,MAAM;GACpB,GAAG,KAAK,EAAE,YAAY,aAAa;GACnC,GAAG,KAAK,EAAE,YAAY,aAAa;EACrC;EACA,OAAO;CACT;CACA,eAAe,IAAI;EACjB,KAAK,EAAE,eAAe,KAAK,WAAW,GAAG,CAAC,CAAC;EAC3C,KAAK,EAAE,eAAe,KAAK,WAAW,GAAG,CAAC,CAAC;EAC3C,OAAO,KAAK,WAAW;CACzB;CACA,qBAAqB;EACnB,KAAK,EAAE,mBAAmB;EAC1B,KAAK,EAAE,mBAAmB;EAC1B,KAAK,aAAa,CAAC;CACrB;CACA,YAAY;EACV,OAAO;GACL,MAAM,KAAK;GACX,KAAK,KAAK;EACZ;CACF;CACA,wBAAwB;EACtB,OAAO,CAAC,EAAE,YAAY,KAAK,EAAE,GAAG,EAAE,YAAY,KAAK,EAAE,CAAC;CACxD;AACF;AACA,IAAI,0BAA0B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["keyExtractor","defaultKeyExtractor"],"sources":["esm/vendor/react-native/FlatList/index.js"],"sourcesContent":["import { View } from \"../../../View\";\nimport { deepDiffer } from \"../deepDiffer\";\nimport { Platform } from \"../../../exports/Platform\";\nimport { invariant, StyleSheet } from \"@tamagui/react-native-web-internals\";\nimport * as React from \"react\";\nimport { VirtualizedList } from \"../VirtualizedList\";\nimport { keyExtractor as defaultKeyExtractor } from \"../VirtualizeUtils\";\nimport memoizeOne from \"memoize-one\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction removeClippedSubviewsOrDefault(removeClippedSubviews) {\n return removeClippedSubviews ?? Platform.OS === \"android\";\n}\nfunction numColumnsOrDefault(numColumns) {\n return numColumns ?? 1;\n}\nfunction isArrayLike(data) {\n return typeof Object(data).length === \"number\";\n}\nclass FlatList extends React.PureComponent {\n /**\n * Scrolls to the end of the content. May be janky without `getItemLayout` prop.\n */\n scrollToEnd(params) {\n if (this._listRef) {\n this._listRef.scrollToEnd(params);\n }\n }\n /**\n * Scrolls to the item at the specified index such that it is positioned in the viewable area\n * such that `viewPosition` 0 places it at the top, 1 at the bottom, and 0.5 centered in the\n * middle. `viewOffset` is a fixed number of pixels to offset the final target position.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToIndex(params) {\n if (this._listRef) {\n this._listRef.scrollToIndex(params);\n }\n }\n /**\n * Requires linear scan through data - use `scrollToIndex` instead if possible.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToItem(params) {\n if (this._listRef) {\n this._listRef.scrollToItem(params);\n }\n }\n /**\n * Scroll to a specific content pixel offset in the list.\n *\n * Check out [scrollToOffset](docs/virtualizedlist.html#scrolltooffset) of VirtualizedList\n */\n scrollToOffset(params) {\n if (this._listRef) {\n this._listRef.scrollToOffset(params);\n }\n }\n /**\n * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.\n * if `waitForInteractions` is true and the user has not scrolled. This is typically called by\n * taps on items or by navigation actions.\n */\n recordInteraction() {\n if (this._listRef) {\n this._listRef.recordInteraction();\n }\n }\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators() {\n if (this._listRef) {\n this._listRef.flashScrollIndicators();\n }\n }\n /**\n * Provides a handle to the underlying scroll responder.\n */\n getScrollResponder() {\n if (this._listRef) {\n return this._listRef.getScrollResponder();\n }\n }\n /**\n * Provides a reference to the underlying host component\n */\n getNativeScrollRef() {\n if (this._listRef) {\n return this._listRef.getScrollRef();\n }\n }\n getScrollableNode() {\n if (this._listRef) {\n return this._listRef.getScrollableNode();\n }\n }\n constructor(props) {\n super(props);\n this._checkProps(this.props);\n if (this.props.viewabilityConfigCallbackPairs) {\n this._virtualizedListPairs = this.props.viewabilityConfigCallbackPairs.map(\n (pair) => ({\n viewabilityConfig: pair.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n pair.onViewableItemsChanged\n )\n })\n );\n } else if (this.props.onViewableItemsChanged) {\n this._virtualizedListPairs.push({\n viewabilityConfig: this.props.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n this.props.onViewableItemsChanged\n )\n });\n }\n }\n componentDidUpdate(prevProps) {\n invariant(\n prevProps.numColumns === this.props.numColumns,\n \"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component.\"\n );\n invariant(\n prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged,\n \"Changing onViewableItemsChanged on the fly is not supported\"\n );\n invariant(\n !deepDiffer(prevProps.viewabilityConfig, this.props.viewabilityConfig),\n \"Changing viewabilityConfig on the fly is not supported\"\n );\n invariant(\n prevProps.viewabilityConfigCallbackPairs === this.props.viewabilityConfigCallbackPairs,\n \"Changing viewabilityConfigCallbackPairs on the fly is not supported\"\n );\n this._checkProps(this.props);\n }\n _listRef;\n _virtualizedListPairs = [];\n _captureRef = (ref) => {\n this._listRef = ref;\n };\n _checkProps(props) {\n const {\n getItem,\n getItemCount,\n horizontal,\n columnWrapperStyle,\n onViewableItemsChanged,\n viewabilityConfigCallbackPairs\n } = props;\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n invariant(!getItem && !getItemCount, \"FlatList does not support custom data formats.\");\n if (numColumns > 1) {\n invariant(!horizontal, \"numColumns does not support horizontal.\");\n } else {\n invariant(\n !columnWrapperStyle,\n \"columnWrapperStyle not supported for single column lists\"\n );\n }\n invariant(\n !(onViewableItemsChanged && viewabilityConfigCallbackPairs),\n \"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.\"\n );\n }\n _getItem = (data, index) => {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n if (numColumns > 1) {\n const ret = [];\n for (let kk = 0; kk < numColumns; kk++) {\n const itemIndex = index * numColumns + kk;\n if (itemIndex < data.length) {\n const item = data[itemIndex];\n ret.push(item);\n }\n }\n return ret;\n } else {\n return data[index];\n }\n };\n _getItemCount = (data) => {\n if (data != null && isArrayLike(data)) {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length;\n } else {\n return 0;\n }\n };\n _keyExtractor = (items, index) => {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n const keyExtractor = this.props.keyExtractor ?? defaultKeyExtractor;\n if (numColumns > 1) {\n invariant(\n Array.isArray(items),\n \"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.\",\n numColumns\n );\n return items.map((item, kk) => keyExtractor(item, index * numColumns + kk)).join(\":\");\n }\n return keyExtractor(items, index);\n };\n _pushMultiColumnViewable(arr, v) {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n const keyExtractor = this.props.keyExtractor ?? defaultKeyExtractor;\n v.item.forEach((item, ii) => {\n invariant(v.index != null, \"Missing index!\");\n const index = v.index * numColumns + ii;\n arr.push({ ...v, item, key: keyExtractor(item, index), index });\n });\n }\n _createOnViewableItemsChanged(onViewableItemsChanged) {\n return (info) => {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n if (onViewableItemsChanged) {\n if (numColumns > 1) {\n const changed = [];\n const viewableItems = [];\n info.viewableItems.forEach(\n (v) => this._pushMultiColumnViewable(viewableItems, v)\n );\n info.changed.forEach((v) => this._pushMultiColumnViewable(changed, v));\n onViewableItemsChanged({ viewableItems, changed });\n } else {\n onViewableItemsChanged(info);\n }\n }\n };\n }\n _renderer = (ListItemComponent, renderItem, columnWrapperStyle, numColumns, extraData) => {\n const cols = numColumnsOrDefault(numColumns);\n const render = (props) => {\n if (ListItemComponent) {\n return /* @__PURE__ */ jsx(ListItemComponent, { ...props });\n } else if (renderItem) {\n return renderItem(props);\n } else {\n return null;\n }\n };\n const renderProp = (info) => {\n if (cols > 1) {\n const { item, index } = info;\n invariant(Array.isArray(item), \"Expected array of items with numColumns > 1\");\n return /* @__PURE__ */ jsx(View, { style: [styles.row, columnWrapperStyle], children: item.map((it, kk) => {\n const element = render({\n item: it,\n index: index * cols + kk,\n separators: info.separators\n });\n return element != null ? /* @__PURE__ */ jsx(React.Fragment, { children: element }, kk) : null;\n }) });\n } else {\n return render(info);\n }\n };\n return ListItemComponent ? { ListItemComponent: renderProp } : { renderItem: renderProp };\n };\n // $FlowFixMe[missing-local-annot]\n _memoizedRenderer = memoizeOne(this._renderer);\n render() {\n const {\n numColumns,\n columnWrapperStyle,\n removeClippedSubviews: _removeClippedSubviews,\n strictMode = false,\n ...restProps\n } = this.props;\n const renderer = strictMode ? this._memoizedRenderer : this._renderer;\n return /* @__PURE__ */ jsx(\n VirtualizedList,\n {\n ...restProps,\n getItem: this._getItem,\n getItemCount: this._getItemCount,\n keyExtractor: this._keyExtractor,\n ref: this._captureRef,\n viewabilityConfigCallbackPairs: this._virtualizedListPairs,\n removeClippedSubviews: removeClippedSubviewsOrDefault(_removeClippedSubviews),\n ...renderer(\n this.props.ListItemComponent,\n this.props.renderItem,\n columnWrapperStyle,\n numColumns,\n this.props.extraData\n )\n }\n );\n }\n}\nconst styles = StyleSheet.create({\n row: { flexDirection: \"row\" }\n});\nvar FlatList_default = FlatList;\nexport {\n FlatList,\n FlatList_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;;;;;;AASA,SAAS,+BAA+B,uBAAuB;CAC7D,OAAO,yBAAy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sources":["esm/vendor/react-native/FlatList/index.js"],"sourcesContent":["import { View } from \"../../../View\";\nimport { deepDiffer } from \"../deepDiffer\";\nimport { Platform } from \"../../../exports/Platform\";\nimport { invariant, StyleSheet } from \"@tamagui/react-native-web-internals\";\nimport * as React from \"react\";\nimport { VirtualizedList } from \"../VirtualizedList\";\nimport { keyExtractor as defaultKeyExtractor } from \"../VirtualizeUtils\";\nimport memoizeOne from \"memoize-one\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction removeClippedSubviewsOrDefault(removeClippedSubviews) {\n return removeClippedSubviews ?? Platform.OS === \"android\";\n}\nfunction numColumnsOrDefault(numColumns) {\n return numColumns ?? 1;\n}\nfunction isArrayLike(data) {\n return typeof Object(data).length === \"number\";\n}\nclass FlatList extends React.PureComponent {\n /**\n * Scrolls to the end of the content. May be janky without `getItemLayout` prop.\n */\n scrollToEnd(params) {\n if (this._listRef) {\n this._listRef.scrollToEnd(params);\n }\n }\n /**\n * Scrolls to the item at the specified index such that it is positioned in the viewable area\n * such that `viewPosition` 0 places it at the top, 1 at the bottom, and 0.5 centered in the\n * middle. `viewOffset` is a fixed number of pixels to offset the final target position.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToIndex(params) {\n if (this._listRef) {\n this._listRef.scrollToIndex(params);\n }\n }\n /**\n * Requires linear scan through data - use `scrollToIndex` instead if possible.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToItem(params) {\n if (this._listRef) {\n this._listRef.scrollToItem(params);\n }\n }\n /**\n * Scroll to a specific content pixel offset in the list.\n *\n * Check out [scrollToOffset](docs/virtualizedlist.html#scrolltooffset) of VirtualizedList\n */\n scrollToOffset(params) {\n if (this._listRef) {\n this._listRef.scrollToOffset(params);\n }\n }\n /**\n * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.\n * if `waitForInteractions` is true and the user has not scrolled. This is typically called by\n * taps on items or by navigation actions.\n */\n recordInteraction() {\n if (this._listRef) {\n this._listRef.recordInteraction();\n }\n }\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators() {\n if (this._listRef) {\n this._listRef.flashScrollIndicators();\n }\n }\n /**\n * Provides a handle to the underlying scroll responder.\n */\n getScrollResponder() {\n if (this._listRef) {\n return this._listRef.getScrollResponder();\n }\n }\n /**\n * Provides a reference to the underlying host component\n */\n getNativeScrollRef() {\n if (this._listRef) {\n return this._listRef.getScrollRef();\n }\n }\n getScrollableNode() {\n if (this._listRef) {\n return this._listRef.getScrollableNode();\n }\n }\n constructor(props) {\n super(props);\n this._checkProps(this.props);\n if (this.props.viewabilityConfigCallbackPairs) {\n this._virtualizedListPairs = this.props.viewabilityConfigCallbackPairs.map(\n (pair) => ({\n viewabilityConfig: pair.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n pair.onViewableItemsChanged\n )\n })\n );\n } else if (this.props.onViewableItemsChanged) {\n this._virtualizedListPairs.push({\n viewabilityConfig: this.props.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n this.props.onViewableItemsChanged\n )\n });\n }\n }\n componentDidUpdate(prevProps) {\n invariant(\n prevProps.numColumns === this.props.numColumns,\n \"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component.\"\n );\n invariant(\n prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged,\n \"Changing onViewableItemsChanged on the fly is not supported\"\n );\n invariant(\n !deepDiffer(prevProps.viewabilityConfig, this.props.viewabilityConfig),\n \"Changing viewabilityConfig on the fly is not supported\"\n );\n invariant(\n prevProps.viewabilityConfigCallbackPairs === this.props.viewabilityConfigCallbackPairs,\n \"Changing viewabilityConfigCallbackPairs on the fly is not supported\"\n );\n this._checkProps(this.props);\n }\n _listRef;\n _virtualizedListPairs = [];\n _captureRef = (ref) => {\n this._listRef = ref;\n };\n _checkProps(props) {\n const {\n getItem,\n getItemCount,\n horizontal,\n columnWrapperStyle,\n onViewableItemsChanged,\n viewabilityConfigCallbackPairs\n } = props;\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n invariant(!getItem && !getItemCount, \"FlatList does not support custom data formats.\");\n if (numColumns > 1) {\n invariant(!horizontal, \"numColumns does not support horizontal.\");\n } else {\n invariant(\n !columnWrapperStyle,\n \"columnWrapperStyle not supported for single column lists\"\n );\n }\n invariant(\n !(onViewableItemsChanged && viewabilityConfigCallbackPairs),\n \"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.\"\n );\n }\n _getItem = (data, index) => {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n if (numColumns > 1) {\n const ret = [];\n for (let kk = 0; kk < numColumns; kk++) {\n const itemIndex = index * numColumns + kk;\n if (itemIndex < data.length) {\n const item = data[itemIndex];\n ret.push(item);\n }\n }\n return ret;\n } else {\n return data[index];\n }\n };\n _getItemCount = (data) => {\n if (data != null && isArrayLike(data)) {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n return numColumns > 1 ? Math.ceil(data.length / numColumns) : data.length;\n } else {\n return 0;\n }\n };\n _keyExtractor = (items, index) => {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n const keyExtractor = this.props.keyExtractor ?? defaultKeyExtractor;\n if (numColumns > 1) {\n invariant(\n Array.isArray(items),\n \"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.\",\n numColumns\n );\n return items.map((item, kk) => keyExtractor(item, index * numColumns + kk)).join(\":\");\n }\n return keyExtractor(items, index);\n };\n _pushMultiColumnViewable(arr, v) {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n const keyExtractor = this.props.keyExtractor ?? defaultKeyExtractor;\n v.item.forEach((item, ii) => {\n invariant(v.index != null, \"Missing index!\");\n const index = v.index * numColumns + ii;\n arr.push({ ...v, item, key: keyExtractor(item, index), index });\n });\n }\n _createOnViewableItemsChanged(onViewableItemsChanged) {\n return (info) => {\n const numColumns = numColumnsOrDefault(this.props.numColumns);\n if (onViewableItemsChanged) {\n if (numColumns > 1) {\n const changed = [];\n const viewableItems = [];\n info.viewableItems.forEach(\n (v) => this._pushMultiColumnViewable(viewableItems, v)\n );\n info.changed.forEach((v) => this._pushMultiColumnViewable(changed, v));\n onViewableItemsChanged({ viewableItems, changed });\n } else {\n onViewableItemsChanged(info);\n }\n }\n };\n }\n _renderer = (ListItemComponent, renderItem, columnWrapperStyle, numColumns, extraData) => {\n const cols = numColumnsOrDefault(numColumns);\n const render = (props) => {\n if (ListItemComponent) {\n return /* @__PURE__ */ jsx(ListItemComponent, { ...props });\n } else if (renderItem) {\n return renderItem(props);\n } else {\n return null;\n }\n };\n const renderProp = (info) => {\n if (cols > 1) {\n const { item, index } = info;\n invariant(Array.isArray(item), \"Expected array of items with numColumns > 1\");\n return /* @__PURE__ */ jsx(View, { style: [styles.row, columnWrapperStyle], children: item.map((it, kk) => {\n const element = render({\n item: it,\n index: index * cols + kk,\n separators: info.separators\n });\n return element != null ? /* @__PURE__ */ jsx(React.Fragment, { children: element }, kk) : null;\n }) });\n } else {\n return render(info);\n }\n };\n return ListItemComponent ? { ListItemComponent: renderProp } : { renderItem: renderProp };\n };\n // $FlowFixMe[missing-local-annot]\n _memoizedRenderer = memoizeOne(this._renderer);\n render() {\n const {\n numColumns,\n columnWrapperStyle,\n removeClippedSubviews: _removeClippedSubviews,\n strictMode = false,\n ...restProps\n } = this.props;\n const renderer = strictMode ? this._memoizedRenderer : this._renderer;\n return /* @__PURE__ */ jsx(\n VirtualizedList,\n {\n ...restProps,\n getItem: this._getItem,\n getItemCount: this._getItemCount,\n keyExtractor: this._keyExtractor,\n ref: this._captureRef,\n viewabilityConfigCallbackPairs: this._virtualizedListPairs,\n removeClippedSubviews: removeClippedSubviewsOrDefault(_removeClippedSubviews),\n ...renderer(\n this.props.ListItemComponent,\n this.props.renderItem,\n columnWrapperStyle,\n numColumns,\n this.props.extraData\n )\n }\n );\n }\n}\nconst styles = StyleSheet.create({\n row: { flexDirection: \"row\" }\n});\nvar FlatList_default = FlatList;\nexport {\n FlatList,\n FlatList_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;;;;;;AASA,SAAS,+BAA+B,uBAAuB;CAC7D,OAAO,yBAAyB,SAAS,OAAO;AAClD;AACA,SAAS,oBAAoB,YAAY;CACvC,OAAO,cAAc;AACvB;AACA,SAAS,YAAY,MAAM;CACzB,OAAO,OAAO,OAAO,IAAI,CAAC,CAAC,WAAW;AACxC;AACA,IAAM,WAAN,cAAuB,MAAM,cAAc;;;;CAIzC,YAAY,QAAQ;EAClB,IAAI,KAAK,UAAU;GACjB,KAAK,SAAS,YAAY,MAAM;EAClC;CACF;;;;;;;;;CASA,cAAc,QAAQ;EACpB,IAAI,KAAK,UAAU;GACjB,KAAK,SAAS,cAAc,MAAM;EACpC;CACF;;;;;;;CAOA,aAAa,QAAQ;EACnB,IAAI,KAAK,UAAU;GACjB,KAAK,SAAS,aAAa,MAAM;EACnC;CACF;;;;;;CAMA,eAAe,QAAQ;EACrB,IAAI,KAAK,UAAU;GACjB,KAAK,SAAS,eAAe,MAAM;EACrC;CACF;;;;;;CAMA,oBAAoB;EAClB,IAAI,KAAK,UAAU;GACjB,KAAK,SAAS,kBAAkB;EAClC;CACF;;;;;;CAMA,wBAAwB;EACtB,IAAI,KAAK,UAAU;GACjB,KAAK,SAAS,sBAAsB;EACtC;CACF;;;;CAIA,qBAAqB;EACnB,IAAI,KAAK,UAAU;GACjB,OAAO,KAAK,SAAS,mBAAmB;EAC1C;CACF;;;;CAIA,qBAAqB;EACnB,IAAI,KAAK,UAAU;GACjB,OAAO,KAAK,SAAS,aAAa;EACpC;CACF;CACA,oBAAoB;EAClB,IAAI,KAAK,UAAU;GACjB,OAAO,KAAK,SAAS,kBAAkB;EACzC;CACF;CACA,YAAY,OAAO;EACjB,MAAM,KAAK;EACX,KAAK,YAAY,KAAK,KAAK;EAC3B,IAAI,KAAK,MAAM,gCAAgC;GAC7C,KAA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,MAAM,SACb;EACF,CACF;CACF;AACF;AACA,MAAM,SAAS,WAAW,OAAO,EAC/B,KAAK,EAAE,eAAe,MAAM,EAC9B,CAAC;AACD,IAAI,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["esm/vendor/react-native/VirtualizeUtils/index.js"],"sourcesContent":["function elementsThatOverlapOffsets(offsets, props, getFrameMetrics, zoomScale = 1) {\n const itemCount = props.getItemCount(props.data);\n const result = [];\n for (let offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++) {\n const currentOffset = offsets[offsetIndex];\n let left = 0;\n let right = itemCount - 1;\n while (left <= right) {\n const mid = left + (right - left >>> 1);\n const frame = getFrameMetrics(mid, props);\n const scaledOffsetStart = frame.offset * zoomScale;\n const scaledOffsetEnd = (frame.offset + frame.length) * zoomScale;\n if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart) {\n right = mid - 1;\n } else if (currentOffset > scaledOffsetEnd) {\n left = mid + 1;\n } else {\n result[offsetIndex] = mid;\n break;\n }\n }\n }\n return result;\n}\nfunction newRangeCount(prev, next) {\n return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first));\n}\nfunction computeWindowedRenderLimits(props, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) {\n const itemCount = props.getItemCount(props.data);\n if (itemCount === 0) {\n return { first: 0, last: -1 };\n }\n const { offset, velocity, visibleLength, zoomScale = 1 } = scrollMetrics;\n const visibleBegin = Math.max(0, offset);\n const visibleEnd = visibleBegin + visibleLength;\n const overscanLength = (windowSize - 1) * visibleLength;\n const leadFactor = 0.5;\n const fillPreference = velocity > 1 ? \"after\" : velocity < -1 ? \"before\" : \"none\";\n const overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength);\n const overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength);\n const lastItemOffset = getFrameMetricsApprox(itemCount - 1, props).offset * zoomScale;\n if (lastItemOffset < overscanBegin) {\n return {\n first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),\n last: itemCount - 1\n };\n }\n let [overscanFirst, first, last, overscanLast] = elementsThatOverlapOffsets(\n [overscanBegin, visibleBegin, visibleEnd, overscanEnd],\n props,\n getFrameMetricsApprox,\n zoomScale\n );\n overscanFirst = overscanFirst == null ? 0 : overscanFirst;\n first = first == null ? Math.max(0, overscanFirst) : first;\n overscanLast = overscanLast == null ? itemCount - 1 : overscanLast;\n last = last == null ? Math.min(overscanLast, first + maxToRenderPerBatch - 1) : last;\n const visible = { first, last };\n let newCellCount = newRangeCount(prev, visible);\n while (true) {\n if (first <= overscanFirst && last >= overscanLast) {\n break;\n }\n const maxNewCells = newCellCount >= maxToRenderPerBatch;\n const firstWillAddMore = first <= prev.first || first > prev.last;\n const firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore);\n const lastWillAddMore = last >= prev.last || last < prev.first;\n const lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore);\n if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) {\n break;\n }\n if (firstShouldIncrement && !(fillPreference === \"after\" && lastShouldIncrement && lastWillAddMore)) {\n if (firstWillAddMore) {\n newCellCount++;\n }\n first--;\n }\n if (lastShouldIncrement && !(fillPreference === \"before\" && firstShouldIncrement && firstWillAddMore)) {\n if (lastWillAddMore) {\n newCellCount++;\n }\n last++;\n }\n }\n if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last)) {\n throw new Error(\n \"Bad window calculation \" + JSON.stringify({\n first,\n last,\n itemCount,\n overscanFirst,\n overscanLast,\n visible\n })\n );\n }\n return { first, last };\n}\nfunction keyExtractor(item, index) {\n if (typeof item === \"object\" && item?.key != null) {\n return item.key;\n }\n if (typeof item === \"object\" && item?.id != null) {\n return item.id;\n }\n return String(index);\n}\nexport {\n computeWindowedRenderLimits,\n elementsThatOverl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BAAmB,YAAY,wBAAwB,mBAAmB;GACrG,IAAI,iBAAiB;IACnB;GACF;GACA;EACF;CACF;CACA,IAAI,EAAE,QAAQ,SAAS,SAAS,KAAK,OAAO,aAAa,SAAS,iBAAiB,QAAQ,gBAAgB,SAAS,QAAQ,SAAS,QAAQ,QAAQ,OAAO;EAC1J,MAAM,IAAI,MACR,4BAA4B,KAAK,UAAU;GACzC;GACA;GACA;GACA;GACA;GACA;EACF,CAAC,CACH;CACF;CACA,OAAO;EAAE;EAAO;CAAK;AACvB;AACA,SAAS,aAAa,MAAM,OAAO;CACjC,IAAI,OAAO,SAAS,YAAY,MAAM,OAAO,MAAM;EACjD,OAAO,KAAK;CACd;CACA,IAAI,OAAO,SAAS,YAAY,MAAM,MAAM,MAAM;EAChD,OAAO,KAAK;CACd;CACA,OAAO,OAAO,KAAK;AACrB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/vendor/react-native/VirtualizeUtils/index.js"],"sourcesContent":["function elementsThatOverlapOffsets(offsets, props, getFrameMetrics, zoomScale = 1) {\n const itemCount = props.getItemCount(props.data);\n const result = [];\n for (let offsetIndex = 0; offsetIndex < offsets.length; offsetIndex++) {\n const currentOffset = offsets[offsetIndex];\n let left = 0;\n let right = itemCount - 1;\n while (left <= right) {\n const mid = left + (right - left >>> 1);\n const frame = getFrameMetrics(mid, props);\n const scaledOffsetStart = frame.offset * zoomScale;\n const scaledOffsetEnd = (frame.offset + frame.length) * zoomScale;\n if (mid === 0 && currentOffset < scaledOffsetStart || mid !== 0 && currentOffset <= scaledOffsetStart) {\n right = mid - 1;\n } else if (currentOffset > scaledOffsetEnd) {\n left = mid + 1;\n } else {\n result[offsetIndex] = mid;\n break;\n }\n }\n }\n return result;\n}\nfunction newRangeCount(prev, next) {\n return next.last - next.first + 1 - Math.max(0, 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first));\n}\nfunction computeWindowedRenderLimits(props, maxToRenderPerBatch, windowSize, prev, getFrameMetricsApprox, scrollMetrics) {\n const itemCount = props.getItemCount(props.data);\n if (itemCount === 0) {\n return { first: 0, last: -1 };\n }\n const { offset, velocity, visibleLength, zoomScale = 1 } = scrollMetrics;\n const visibleBegin = Math.max(0, offset);\n const visibleEnd = visibleBegin + visibleLength;\n const overscanLength = (windowSize - 1) * visibleLength;\n const leadFactor = 0.5;\n const fillPreference = velocity > 1 ? \"after\" : velocity < -1 ? \"before\" : \"none\";\n const overscanBegin = Math.max(0, visibleBegin - (1 - leadFactor) * overscanLength);\n const overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength);\n const lastItemOffset = getFrameMetricsApprox(itemCount - 1, props).offset * zoomScale;\n if (lastItemOffset < overscanBegin) {\n return {\n first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),\n last: itemCount - 1\n };\n }\n let [overscanFirst, first, last, overscanLast] = elementsThatOverlapOffsets(\n [overscanBegin, visibleBegin, visibleEnd, overscanEnd],\n props,\n getFrameMetricsApprox,\n zoomScale\n );\n overscanFirst = overscanFirst == null ? 0 : overscanFirst;\n first = first == null ? Math.max(0, overscanFirst) : first;\n overscanLast = overscanLast == null ? itemCount - 1 : overscanLast;\n last = last == null ? Math.min(overscanLast, first + maxToRenderPerBatch - 1) : last;\n const visible = { first, last };\n let newCellCount = newRangeCount(prev, visible);\n while (true) {\n if (first <= overscanFirst && last >= overscanLast) {\n break;\n }\n const maxNewCells = newCellCount >= maxToRenderPerBatch;\n const firstWillAddMore = first <= prev.first || first > prev.last;\n const firstShouldIncrement = first > overscanFirst && (!maxNewCells || !firstWillAddMore);\n const lastWillAddMore = last >= prev.last || last < prev.first;\n const lastShouldIncrement = last < overscanLast && (!maxNewCells || !lastWillAddMore);\n if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) {\n break;\n }\n if (firstShouldIncrement && !(fillPreference === \"after\" && lastShouldIncrement && lastWillAddMore)) {\n if (firstWillAddMore) {\n newCellCount++;\n }\n first--;\n }\n if (lastShouldIncrement && !(fillPreference === \"before\" && firstShouldIncrement && firstWillAddMore)) {\n if (lastWillAddMore) {\n newCellCount++;\n }\n last++;\n }\n }\n if (!(last >= first && first >= 0 && last < itemCount && first >= overscanFirst && last <= overscanLast && first <= visible.first && last >= visible.last)) {\n throw new Error(\n \"Bad window calculation \" + JSON.stringify({\n first,\n last,\n itemCount,\n overscanFirst,\n overscanLast,\n visible\n })\n );\n }\n return { first, last };\n}\nfunction keyExtractor(item, index) {\n if (typeof item === \"object\" && item?.key != null) {\n return item.key;\n }\n if (typeof item === \"object\" && item?.id != null) {\n return item.id;\n }\n return String(index);\n}\nexport {\n computeWindowedRenderLimits,\n elementsThatOverlapOffsets,\n keyExtractor,\n newRangeCount\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";AAAA,SAAS,2BAA2B,SAAS,OAAO,iBAAiB,YAAY,GAAG;CAClF,MAAM,YAAY,MAAM,aAAa,MAAM,IAAI;CAC/C,MAAM,SAAS,CAAC;CAChB,KAAK,IAAI,cAAc,GAAG,cAAc,QAAQ,QAAQ,eAAe;EACrE,MAAM,gBAAgB,QAAQ;EAC9B,IAAI,OAAO;EACX,IAAI,QAAQ,YAAY;EACxB,OAAO,QAAQ,OAAO;GACpB,MAAM,MAAM,QAAQ,QAAQ,SAAS;GACrC,MAAM,QAAQ,gBAAgB,KAAK,KAAK;GACxC,MAAM,oBAAoB,MAAM,SAAS;GACzC,MAAM,mBAAmB,MAAM,SAAS,MAAM,UAAU;GACxD,IAAI,QAAQ,KAAK,gBAAgB,qBAAqB,QAAQ,KAAK,iBAAiB,mBAAmB;IACrG,QAAQ,MAAM;GAChB,OAAO,IAAI,gBAAgB,iBAAiB;IAC1C,OAAO,MAAM;GACf,OAAO;IACL,OAAO,eAAe;IACtB;GACF;EACF;CACF;CACA,OAAO;AACT;AACA,SAAS,cAAc,MAAM,MAAM;CACjC,OAAO,KAAK,OAAO,KAAK,QAAQ,IAAI,KAAK,IAAI,GAAG,IAAI,KAAK,IAAI,KAAK,MAAM,KAAK,IAAI,IAAI,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B;EACpC,MAAM,mBAAmB,SAAS,KAAK,SAAS,QAAQ,KAAK;EAC7D,MAAM,uBAAuB,QAAQ,kBAAkB,CAAC,eAAe,CAAC;EACxE,MAAM,kBAAkB,QAAQ,KAAK,QAAQ,OAAO,KAAK;EACzD,MAAM,sBAAsB,OAAO,iBAAiB,CAAC,eAAe,CAAC;EACrE,IAAI,eAAe,CAAC,wBAAwB,CAAC,qBAAqB;GAChE;EACF;EACA,IAAI,wBAAwB,EAAE,mBAAmB,WAAW,uBAAuB,kBAAkB;GACnG,IAAI,kBAAkB;IACpB;GACF;GACA;EACF;EACA,IAAI,uBAAuB,EAAE,mBAAmB,YAAY,wBAAwB,mBAAmB;GACrG,IAAI,iBAAiB;IACnB;GACF;GACA;EACF;CACF;CACA,IAAI,EAAE,QAAQ,SAAS,SAAS,KAAK,OAAO,aAAa,SAAS,iBAAiB,QAAQ,gBAAgB,SAAS,QAAQ,SAAS,QAAQ,QAAQ,OAAO;EAC1J,MAAM,IAAI,MACR,4BAA4B,KAAK,UAAU;GACzC;GACA;GACA;GACA;GACA;GACA;EACF,CAAC,CACH;CACF;CACA,OAAO;EAAE;EAAO;CAAK;AACvB;AACA,SAAS,aAAa,MAAM,OAAO;CACjC,IAAI,OAAO,SAAS,YAAY,MAAM,OAAO,MAAM;EACjD,OAAO,KAAK;CACd;CACA,IAAI,OAAO,SAAS,YAAY,MAAM,MAAM,MAAM;EAChD,OAAO,KAAK;CACd;CACA,OAAO,OAAO,KAAK;AACrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"CellRenderMask.js","names":[],"sources":["esm/vendor/react-native/VirtualizedList/CellRenderMask.js"],"sourcesContent":["import { invariant } from \"@tamagui/react-native-web-internals\";\nclass CellRenderMask {\n constructor(numCells) {\n invariant(numCells >= 0, \"CellRenderMask must contain a non-negative number os cells\");\n this._numCells = numCells;\n if (numCells === 0) {\n this._regions = [];\n } else {\n this._regions = [\n {\n first: 0,\n last: numCells - 1,\n isSpacer: true\n }\n ];\n }\n }\n enumerateRegions() {\n return this._regions;\n }\n addCells(cells) {\n invariant(\n cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1,\n \"CellRenderMask.addCells called with invalid cell range\"\n );\n if (cells.last < cells.first) {\n return;\n }\n const [firstIntersect, firstIntersectIdx] = this._findRegion(cells.first);\n const [lastIntersect, lastIntersectIdx] = this._findRegion(cells.last);\n if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) {\n return;\n }\n const newLeadRegion = [];\n const newTailRegion = [];\n const newMainRegion = {\n ...cells,\n isSpacer: false\n };\n if (firstIntersect.first < newMainRegion.first) {\n if (firstIntersect.isSpacer) {\n newLeadRegion.push({\n first: firstIntersect.first,\n last: newMainRegion.first - 1,\n isSpacer: true\n });\n } else {\n newMainRegion.first = firstIntersect.first;\n }\n }\n if (lastIntersect.last > newMainRegion.last) {\n if (lastIntersect.isSpacer) {\n newTailRegion.push({\n first: newMainRegion.last + 1,\n last: lastIntersect.last,\n isSpacer: true\n });\n } else {\n newMainRegion.last = lastIntersect.last;\n }\n }\n const replacementRegions = [...newLeadRegion, newMainRegion, ...newTailRegion];\n const numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;\n this._regions.splice(firstIntersectIdx, numRegionsToDelete, ...replacementRegions);\n }\n numCells() {\n return this._numCells;\n }\n equals(other) {\n return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every(\n (region, i) => region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer\n );\n }\n _findRegion(cellIdx) {\n let firstIdx = 0;\n let lastIdx = this._regions.length - 1;\n while (firstIdx <= lastIdx) {\n const middleIdx = Math.floor((firstIdx + lastIdx) / 2);\n const middleRegion = this._regions[middleIdx];\n if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last) {\n return [middleRegion, middleIdx];\n } else if (cellIdx < middleRegion.first) {\n lastIdx = middleIdx - 1;\n } else if (cellIdx > middleRegion.last) {\n firstIdx = middleIdx + 1;\n }\n }\n invariant(false, `A region was not found containing cellIdx ${cellIdx}`);\n }\n}\nexport {\n CellRenderMask\n};\n//# sourceMappingURL=CellRenderMask.js.map\n"],"mappings":";;;AACA,IAAM,iBAAN,MAAqB;CACnB,YAAY,UAAU;EACpB,UAAU,YAAY,GAAG,4DAA4D;EACrF,KAAK,YAAY;EACjB,IAAI,aAAa,GAAG;GAClB,KAAK,WAAW,CAAC;EACnB,OAAO;GACL,KAAK,WAAW,CACd;IACE,OAAO;IACP,MAAM,WAAW;IACjB,UAAU;GACZ,CACF;EACF;CACF;CACA,mBAAmB;EACjB,OAAO,KAAK;CACd;CACA,SAAS,OAAO;EACd,UACE,MAAM,SAAS,KAAK,MAAM,QAAQ,KAAK,aAAa,MAAM,QAAQ,CAAC,KAAK,MAAM,OAAO,KAAK,aAAa,MAAM,QAAQ,MAAM,QAAQ,GACnI,wDACF;EACA,IAAI,MAAM,OAAO,MAAM,OAAO;GAC5B;EACF;EACA,MAAM,CAAC,gBAAgB,qBAAqB,KAAK,YAAY,MAAM,KAAK;EACxE,MAAM,CAAC,eAAe,oBAAoB,KAAK,YAAY,MAAM,IAAI;EACrE,IAAI,sBAAsB,oBAAoB,CAAC,eAAe,UAAU;GACtE;EACF;EACA,MAAM,gBAAgB,CAAC;EACvB,MAAM,gBAAgB,CAAC;EACvB,MAAM,gBAAgB;GACpB,GAAG;GACH,UAAU;EACZ;EACA,IAAI,eAAe,QAAQ,cAAc,OAAO;GAC9C,IAAI,eAAe,UAAU;IAC3B,cAAc,KAAK;KACjB,OAAO,eAAe;KACtB,MAAM,cAAc,QAAQ;KAC5B,UAAU;IACZ,CAAC;GACH,OAAO;IACL,cAAc,QAAQ,eAAe;GACvC;EACF;EACA,IAAI,cAAc,OAAO,cAAc,MAAM;GAC3C,IAAI,cAAc,UAAU;IAC1B,cAAc,KAAK;KACjB,OAAO,cAAc,OAAO;KAC5B,MAAM,cAAc;KACpB,UAAU;IACZ,CAAC;GACH,OAAO;IACL,cAAc,OAAO,cAAc;GACrC;EACF;EACA,MAAM,qBAAqB;GAAC,GAAG;GAAe;GAAe,GAAG;EAAa;EAC7E,MAAM,qBAAqB,mBAAmB,oBAAoB;EAClE,KAAK,SAAS,OAAO,mBAAmB,oBAAoB,GAAG,kBAAkB;CACnF;CACA,WAAW;EACT,OAAO,KAAK;CACd;CACA,OAAO,OAAO;EACZ,OAAO,KAAK,cAAc,MAAM,aAAa,KAAK,SAAS,WAAW,MAAM,SAAS,UAAU,KAAK,SAAS,OAC1G,QAAQ,MAAM,OAAO,UAAU,MAAM,SAAS,GAAG,SAAS,OAAO,SAAS,MAAM,SAAS,GAAG,QAAQ,OAAO,aAAa,MAAM,SAAS,GAAG,QAC7I;CACF;CACA,YAAY,SAAS;EACnB,IAAI,WAAW;EACf,IAAI,UAAU,KAAK,SAAS,SAAS;EACrC,OAAO,YAAY,SAAS;GAC1B,MAAM,YAAY,KAAK,OAAO,WAAW,WAAW,CAAC;GACrD,MAAM,eAAe,KAAK,SAAS;GACnC,IAAI,WAAW,aAAa,SAAS,WAAW,aAAa,MAAM;IACjE,OAAO,CAAC,cAAc,SAAS;GACjC,OAAO,IAAI,UAAU,aAAa,OAAO;IACvC,UAAU,YAAY;GACxB,OAAO,IAAI,UAAU,aAAa,MAAM;IACtC,WAAW,YAAY;GACzB;EACF;EACA,UAAU,OAAO,6CAA6C,SAAS;CACzE;AACF"}
1
+ {"version":3,"file":"CellRenderMask.js","names":[],"sources":["esm/vendor/react-native/VirtualizedList/CellRenderMask.js"],"sourcesContent":["import { invariant } from \"@tamagui/react-native-web-internals\";\nclass CellRenderMask {\n constructor(numCells) {\n invariant(numCells >= 0, \"CellRenderMask must contain a non-negative number os cells\");\n this._numCells = numCells;\n if (numCells === 0) {\n this._regions = [];\n } else {\n this._regions = [\n {\n first: 0,\n last: numCells - 1,\n isSpacer: true\n }\n ];\n }\n }\n enumerateRegions() {\n return this._regions;\n }\n addCells(cells) {\n invariant(\n cells.first >= 0 && cells.first < this._numCells && cells.last >= -1 && cells.last < this._numCells && cells.last >= cells.first - 1,\n \"CellRenderMask.addCells called with invalid cell range\"\n );\n if (cells.last < cells.first) {\n return;\n }\n const [firstIntersect, firstIntersectIdx] = this._findRegion(cells.first);\n const [lastIntersect, lastIntersectIdx] = this._findRegion(cells.last);\n if (firstIntersectIdx === lastIntersectIdx && !firstIntersect.isSpacer) {\n return;\n }\n const newLeadRegion = [];\n const newTailRegion = [];\n const newMainRegion = {\n ...cells,\n isSpacer: false\n };\n if (firstIntersect.first < newMainRegion.first) {\n if (firstIntersect.isSpacer) {\n newLeadRegion.push({\n first: firstIntersect.first,\n last: newMainRegion.first - 1,\n isSpacer: true\n });\n } else {\n newMainRegion.first = firstIntersect.first;\n }\n }\n if (lastIntersect.last > newMainRegion.last) {\n if (lastIntersect.isSpacer) {\n newTailRegion.push({\n first: newMainRegion.last + 1,\n last: lastIntersect.last,\n isSpacer: true\n });\n } else {\n newMainRegion.last = lastIntersect.last;\n }\n }\n const replacementRegions = [...newLeadRegion, newMainRegion, ...newTailRegion];\n const numRegionsToDelete = lastIntersectIdx - firstIntersectIdx + 1;\n this._regions.splice(firstIntersectIdx, numRegionsToDelete, ...replacementRegions);\n }\n numCells() {\n return this._numCells;\n }\n equals(other) {\n return this._numCells === other._numCells && this._regions.length === other._regions.length && this._regions.every(\n (region, i) => region.first === other._regions[i].first && region.last === other._regions[i].last && region.isSpacer === other._regions[i].isSpacer\n );\n }\n _findRegion(cellIdx) {\n let firstIdx = 0;\n let lastIdx = this._regions.length - 1;\n while (firstIdx <= lastIdx) {\n const middleIdx = Math.floor((firstIdx + lastIdx) / 2);\n const middleRegion = this._regions[middleIdx];\n if (cellIdx >= middleRegion.first && cellIdx <= middleRegion.last) {\n return [middleRegion, middleIdx];\n } else if (cellIdx < middleRegion.first) {\n lastIdx = middleIdx - 1;\n } else if (cellIdx > middleRegion.last) {\n firstIdx = middleIdx + 1;\n }\n }\n invariant(false, `A region was not found containing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AM,qBAAqB;GAAC,GAAG;GAAe;GAAe,GAAG;EAAa;EAC7E,MAAM,qBAAqB,mBAAmB,oBAAoB;EAClE,KAAK,SAAS,OAAO,mBAAmB,oBAAoB,GAAG,kBAAkB;CACnF;CACA,WAAW;EACT,OAAO,KAAK;CACd;CACA,OAAO,OAAO;EACZ,OAAO,KAAK,cAAc,MAAM,aAAa,KAAK,SAAS,WAAW,MAAM,SAAS,UAAU,KAAK,SAAS,OAC1G,QAAQ,MAAM,OAAO,UAAU,MAAM,SAAS,EAAE,CAAC,SAAS,OAAO,SAAS,MAAM,SAAS,EAAE,CAAC,QAAQ,OAAO,aAAa,MAAM,SAAS,EAAE,CAAC,QAC7I;CACF;CACA,YAAY,SAAS;EACnB,IAAI,WAAW;EACf,IAAI,UAAU,KAAK,SAAS,SAAS;EACrC,OAAO,YAAY,SAAS;GAC1B,MAAM,YAAY,KAAK,OAAO,WAAW,WAAW,CAAC;GACrD,MAAM,eAAe,KAAK,SAAS;GACnC,IAAI,WAAW,aAAa,SAAS,WAAW,aAAa,MAAM;IACjE,OAAO,CAAC,cAAc,SAAS;GACjC,OAAO,IAAI,UAAU,aAAa,OAAO;IACvC,UAAU,YAAY;GACxB,OAAO,IAAI,UAAU,aAAa,MAAM;IACtC,WAAW,YAAY;GACzB;EACF;EACA,UAAU,OAAO,6CAA6C,SAAS;CACzE;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["esm/vendor/react-native/VirtualizedList/index.js"],"sourcesContent":["import { isValidElement } from \"react\";\nimport { invariant } from \"@tamagui/react-native-web-internals\";\nimport { ScrollView } from \"../../../ScrollView\";\nimport { RefreshControl } from \"../../../RefreshControl\";\nimport { Batchinator } from \"../Batchinator\";\nimport { ChildListCollection } from \"./ChildListCollection\";\nimport { FillRateHelper } from \"../FillRateHelper\";\nimport { StateSafePureComponent } from \"./StateSafePureComponent\";\nimport { ViewabilityHelper } from \"../ViewabilityHelper\";\nimport { CellRenderer } from \"./VirtualizedListCellRenderer\";\nimport { VirtualizedListContext } from \"./VirtualizedListContext\";\nimport { jsx } from \"react/jsx-runtime\";\nconst __DEV__ = process.env.NODE_ENV !== \"production\";\nfunction horizontalOrDefault(horizontal) {\n return horizontal ?? false;\n}\nfunction scrollEventThrottleOrDefault(scrollEventThrottle) {\n return scrollEventThrottle ?? 50;\n}\nclass VirtualizedList extends StateSafePureComponent {\n static contextType = VirtualizedListContext;\n constructor(props) {\n super(props);\n this._nestedChildLists = new ChildListCollection();\n this._viewabilityTuples = [];\n this._scrollMetrics = {\n contentLength: 0,\n dOffset: 0,\n dt: 10,\n offset: 0,\n timestamp: 0,\n velocity: 0,\n visibleLength: 0\n };\n this._highestMeasuredFrameIndex = 0;\n this._headerLength = 0;\n this._footerLength = 0;\n this._averageCellLength = 0;\n this._hasWarned = {};\n this._fillRateHelper = new FillRateHelper(this._getFrameMetrics);\n this._updateCellsToRenderBatcher = new Batchinator(\n this._updateCellsToRender,\n this.props.updateCellsBatchingPeriod ?? 50\n );\n if (this.props.viewabilityConfig && this.props.onViewableItemsChanged) {\n this._viewabilityTuples.push({\n viewabilityHelper: new ViewabilityHelper(this.props.viewabilityConfig),\n onViewableItemsChanged: this.props.onViewableItemsChanged\n });\n }\n }\n scrollToEnd(params) {\n const animated = params ? params.animated : true;\n const veryLast = this.props.getItemCount(this.props.data) - 1;\n if (veryLast < 0) {\n return;\n }\n const frame = this.__getFrameMetricsApprox(veryLast, this.props);\n const offset = Math.max(\n 0,\n frame.offset + frame.length + this._footerLength - this._scrollMetrics.visibleLength\n );\n if (this._scrollRef == null) {\n return;\n }\n if (this._scrollRef.scrollTo == null) {\n console.warn(\n \"No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.\"\n );\n return;\n }\n this._scrollRef.scrollTo(\n horizontalOrDefault(this.props.horizontal) ? { x: offset, animated } : { y: offset, animated }\n );\n }\n scrollToIndex(params) {\n const { data, horizontal, getItemCount, getItemLayout, onScrollToIndexFailed } = this.props;\n const { animated, index, viewOffset, viewPosition } = params;\n invariant(\n index >= 0,\n `scrollToIndex out of range: requested index ${index} but minimum is 0`\n );\n invariant(\n getItemCount(data) >= 1,\n `scrollToIndex out of range: item length ${getItemCount(data)} but minimum is 1`\n );\n invariant(\n index < getItemCount(data),\n `scrollToIndex out of range: requested index ${index} is out of 0 to ${getItemCount(data) - 1}`\n );\n if (!getItemLayout && index > this._highestMeasuredFrameIndex) {\n invariant(\n !!onScrollToIndexFailed,\n \"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures.\"\n );\n onScrollToIndexFailed({\n averageItemLength: this._averageCellLength,\n highestMeasuredFrameIndex: this._highestMeasuredFrameIndex,\n index\n });\n return;\n }\n const frame = this.__getFrameMetricsApprox(Math.floor(index), this.props);\n const offset = Math.max(\n 0,\n this._getOffsetApprox(index, this.props) - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)\n ) - (viewOffset || 0);\n if (this._scrollRef == null) {\n return;\n }\n this._scrollRef.scrollTo(\n horizontalOrDefault(horizontal) ? { x: offset, animated } : { y: offset, animated }\n );\n }\n scrollToItem(params) {\n const { data, getItem, getItemCount, horizontal, onScrollToIndexFailed } = this.props;\n const { animated, item, viewPosition, viewOffset } = params;\n const index = this.props.data.indexOf(item);\n if (index !== -1) {\n this.scrollToIndex({\n animated,\n index,\n viewOffset,\n viewPosition\n });\n } else {\n const itemCount = getItemCount(data);\n for (let i = 0; i < itemCount; i++) {\n if (getItem(data, i) === item) {\n this.scrollToIndex({\n animated,\n index: i,\n viewOffset,\n viewPosition\n });\n break;\n }\n }\n }\n }\n scrollToOffset(params) {\n const { animated, offset } = params;\n if (this._scrollRef == null) {\n return;\n }\n this._scrollRef.scrollTo(\n horizontalOrDefault(this.props.horizontal) ? { x: offset, animated } : { y: offset, animated }\n );\n }\n recordInteraction() {\n this._nestedChildLists.forEach((childList) => {\n childList.recordInteraction();\n });\n this._viewabilityTuples.forEach((viewabilityTuple) => {\n viewabilityTuple.viewabilityHelper.recordInteraction();\n });\n }\n flashScrollIndicators() {\n if (this._scrollRef && this._scrollRef.flashScrollIndicators) {\n this._scrollRef.flashScrollIndicators();\n }\n }\n getScrollResponder() {\n if (this._scrollRef && this._scrollRef.getScrollResponder) {\n return this._scrollRef.getScrollResponder();\n }\n }\n getScrollableNode() {\n if (this._scrollRef && this._scrollRef.getScrollableNode) {\n return this._scrollRef.getScrollableNode();\n }\n }\n getScrollRef() {\n return this._scrollRef;\n }\n setNativeProps(props) {\n if (this._scrollRef) {\n this._scrollRef.setNativeProps(props);\n }\n }\n render() {\n const {\n ListEmptyComponent,\n ListFooterComponent,\n ListHeaderComponent,\n data,\n debug,\n disableVirtualization,\n getItem,\n getItemCount,\n getItemLayout,\n horizontal,\n keyExtractor,\n numColumns,\n onEndReached,\n onEndReachedThreshold,\n onLayout,\n onRefresh,\n onScroll,\n onScrollBeginDrag,\n onScrollEndDrag,\n onMomentumScrollBegin,\n onMomentumScrollEnd,\n onStartReached,\n onStartReachedThreshold,\n onViewableItemsChanged,\n refreshing,\n removeClippedSubviews,\n renderItem,\n viewabilityConfig,\n viewabilityConfigCallbackPairs,\n ...restProps\n } = this.props;\n const itemCount = getItemCount(data);\n if (itemCount === 0) {\n if (!ListEmptyComponent) return null;\n return isValidElement(ListEmptyComponent) ? ListEmptyComponent : /* @__PURE__ */ jsx(ListEmptyComponent, {});\n }\n return /* @__PURE__ */ jsx(\n ScrollView,\n {\n ...restProps,\n ref: this._captureRef,\n onContentSizeChange: this._onContentSizeChange,\n onLayout: this._onLayout,\n onScroll: this._onScroll,\n refreshControl: onRefresh && /* @__PURE__ */ jsx(RefreshControl, { refreshing, onRefresh }),\n scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),\n removeClippedSubviews,\n children: this._renderChildren()\n }\n );\n }\n _renderChildren() {\n const { data, getItem, getItemCount, renderItem } = this.props;\n const items = [];\n for (let i = 0; i < getItemCount(data); i++) {\n const item = getItem(data, i);\n items.push(\n /* @__PURE__ */ jsx(\n CellRenderer,\n {\n cellKey: String(i),\n index: i,\n item,\n renderItem\n },\n this.props.keyExtractor ? this.props.keyExtractor(item, i) : i\n )\n );\n }\n return items;\n }\n _captureRef = (ref) => {\n this._scrollRef = ref;\n };\n _onContentSizeChange = (width, height) => {\n };\n _onLayout = (event) => {\n };\n _onScroll = (event) => {\n };\n __getFrameMetricsApprox(index, props) {\n const frame = {\n length: this._averageCellLength,\n offset: this._averageCellLength * index\n };\n return frame;\n }\n _getOffsetApprox(index, props) {\n return this.__getFrameMetricsApprox(index, props).offset;\n }\n}\nvar VirtualizedList_default = VirtualizedList;\nexport {\n VirtualizedList,\n VirtualizedList_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;;;;;;;;;AAYA,MAAM,UAAU,QAAQ,IAAI,aAAa;AACzC,SAAS,oBAAoB,YAAY;CACvC,OAAO,cAAc;AACvB;AACA,SAAS,6BAA6B,qBAAqB;CACzD,OAAO,uBAAuB;AAChC;AACA,IAAM,kBAAN,cAA8B,uBAAuB;CACnD,OAAO,cAAc;CACrB,YAAY,OAAO;EACjB,MAAM,KAAK;EACX,KAAK,oBAAoB,IAAI,oBAAoB;EACjD,KAAK,qBAAqB,CAAC;EAC3B,KAAK,iBAAiB;GACpB,eAAe;GACf,SAAS;GACT,IAAI;GACJ,QAAQ;GACR,WAAW;GACX,UAAU;GACV,eAAe;EACjB;EACA,KAAK,6BAA6B;EAClC,KAAK,gBAAgB;EACrB,KAAK,gBAAgB;EACrB,KAAK,qBAAqB;EAC1B,KAAK,aAAa,CAAC;EACnB,KAAK,kBAAkB,IAAI,eAAe,KAAK,gBAAgB;EAC/D,KAAK,8BAA8B,IAAI,YACrC,KAAK,sBACL,KAAK,MAAM,6BAA6B,EAC1C;EACA,IAAI,KAAK,MAAM,qBAAqB,KAAK,MAAM,wBAAwB;GACrE,KAAK,mBAAmB,KAAK;IAC3B,mB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,KAAK,aAAa;CACpB;CACA,wBAAwB,OAAO,WAAW,CAC1C;CACA,aAAa,UAAU,CACvB;CACA,aAAa,UAAU,CACvB;CACA,wBAAwB,OAAO,OAAO;EACpC,MAAM,QAAQ;GACZ,QAAQ,KAAK;GACb,QAAQ,KAAK,qBAAqB;EACpC;EACA,OAAO;CACT;CACA,iBAAiB,OAAO,OAAO;EAC7B,OAAO,KAAK,wBAAwB,OAAO,KAAK,EAAE;CACpD;AACF;AACA,IAAI,0BAA0B"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/vendor/react-native/VirtualizedList/index.js"],"sourcesContent":["import { isValidElement } from \"react\";\nimport { invariant } from \"@tamagui/react-native-web-internals\";\nimport { ScrollView } from \"../../../ScrollView\";\nimport { RefreshControl } from \"../../../RefreshControl\";\nimport { Batchinator } from \"../Batchinator\";\nimport { ChildListCollection } from \"./ChildListCollection\";\nimport { FillRateHelper } from \"../FillRateHelper\";\nimport { StateSafePureComponent } from \"./StateSafePureComponent\";\nimport { ViewabilityHelper } from \"../ViewabilityHelper\";\nimport { CellRenderer } from \"./VirtualizedListCellRenderer\";\nimport { VirtualizedListContext } from \"./VirtualizedListContext\";\nimport { jsx } from \"react/jsx-runtime\";\nconst __DEV__ = process.env.NODE_ENV !== \"production\";\nfunction horizontalOrDefault(horizontal) {\n return horizontal ?? false;\n}\nfunction scrollEventThrottleOrDefault(scrollEventThrottle) {\n return scrollEventThrottle ?? 50;\n}\nclass VirtualizedList extends StateSafePureComponent {\n static contextType = VirtualizedListContext;\n constructor(props) {\n super(props);\n this._nestedChildLists = new ChildListCollection();\n this._viewabilityTuples = [];\n this._scrollMetrics = {\n contentLength: 0,\n dOffset: 0,\n dt: 10,\n offset: 0,\n timestamp: 0,\n velocity: 0,\n visibleLength: 0\n };\n this._highestMeasuredFrameIndex = 0;\n this._headerLength = 0;\n this._footerLength = 0;\n this._averageCellLength = 0;\n this._hasWarned = {};\n this._fillRateHelper = new FillRateHelper(this._getFrameMetrics);\n this._updateCellsToRenderBatcher = new Batchinator(\n this._updateCellsToRender,\n this.props.updateCellsBatchingPeriod ?? 50\n );\n if (this.props.viewabilityConfig && this.props.onViewableItemsChanged) {\n this._viewabilityTuples.push({\n viewabilityHelper: new ViewabilityHelper(this.props.viewabilityConfig),\n onViewableItemsChanged: this.props.onViewableItemsChanged\n });\n }\n }\n scrollToEnd(params) {\n const animated = params ? params.animated : true;\n const veryLast = this.props.getItemCount(this.props.data) - 1;\n if (veryLast < 0) {\n return;\n }\n const frame = this.__getFrameMetricsApprox(veryLast, this.props);\n const offset = Math.max(\n 0,\n frame.offset + frame.length + this._footerLength - this._scrollMetrics.visibleLength\n );\n if (this._scrollRef == null) {\n return;\n }\n if (this._scrollRef.scrollTo == null) {\n console.warn(\n \"No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo.\"\n );\n return;\n }\n this._scrollRef.scrollTo(\n horizontalOrDefault(this.props.horizontal) ? { x: offset, animated } : { y: offset, animated }\n );\n }\n scrollToIndex(params) {\n const { data, horizontal, getItemCount, getItemLayout, onScrollToIndexFailed } = this.props;\n const { animated, index, viewOffset, viewPosition } = params;\n invariant(\n index >= 0,\n `scrollToIndex out of range: requested index ${index} but minimum is 0`\n );\n invariant(\n getItemCount(data) >= 1,\n `scrollToIndex out of range: item length ${getItemCount(data)} but minimum is 1`\n );\n invariant(\n index < getItemCount(data),\n `scrollToIndex out of range: requested index ${index} is out of 0 to ${getItemCount(data) - 1}`\n );\n if (!getItemLayout && index > this._highestMeasuredFrameIndex) {\n invariant(\n !!onScrollToIndexFailed,\n \"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures.\"\n );\n onScrollToIndexFailed({\n averageItemLength: this._averageCellLength,\n highestMeasuredFrameIndex: this._highestMeasuredFrameIndex,\n index\n });\n return;\n }\n const frame = this.__getFrameMetricsApprox(Math.floor(index), this.props);\n const offset = Math.max(\n 0,\n this._getOffsetApprox(index, this.props) - (viewPosition || 0) * (this._scrollMetrics.visibleLength - frame.length)\n ) - (viewOffset || 0);\n if (this._scrollRef == null) {\n return;\n }\n this._scrollRef.scrollTo(\n horizontalOrDefault(horizontal) ? { x: offset, animated } : { y: offset, animated }\n );\n }\n scrollToItem(params) {\n const { data, getItem, getItemCount, horizontal, onScrollToIndexFailed } = this.props;\n const { animated, item, viewPosition, viewOffset } = params;\n const index = this.props.data.indexOf(item);\n if (index !== -1) {\n this.scrollToIndex({\n animated,\n index,\n viewOffset,\n viewPosition\n });\n } else {\n const itemCount = getItemCount(data);\n for (let i = 0; i < itemCount; i++) {\n if (getItem(data, i) === item) {\n this.scrollToIndex({\n animated,\n index: i,\n viewOffset,\n viewPosition\n });\n break;\n }\n }\n }\n }\n scrollToOffset(params) {\n const { animated, offset } = params;\n if (this._scrollRef == null) {\n return;\n }\n this._scrollRef.scrollTo(\n horizontalOrDefault(this.props.horizontal) ? { x: offset, animated } : { y: offset, animated }\n );\n }\n recordInteraction() {\n this._nestedChildLists.forEach((childList) => {\n childList.recordInteraction();\n });\n this._viewabilityTuples.forEach((viewabilityTuple) => {\n viewabilityTuple.viewabilityHelper.recordInteraction();\n });\n }\n flashScrollIndicators() {\n if (this._scrollRef && this._scrollRef.flashScrollIndicators) {\n this._scrollRef.flashScrollIndicators();\n }\n }\n getScrollResponder() {\n if (this._scrollRef && this._scrollRef.getScrollResponder) {\n return this._scrollRef.getScrollResponder();\n }\n }\n getScrollableNode() {\n if (this._scrollRef && this._scrollRef.getScrollableNode) {\n return this._scrollRef.getScrollableNode();\n }\n }\n getScrollRef() {\n return this._scrollRef;\n }\n setNativeProps(props) {\n if (this._scrollRef) {\n this._scrollRef.setNativeProps(props);\n }\n }\n render() {\n const {\n ListEmptyComponent,\n ListFooterComponent,\n ListHeaderComponent,\n data,\n debug,\n disableVirtualization,\n getItem,\n getItemCount,\n getItemLayout,\n horizontal,\n keyExtractor,\n numColumns,\n onEndReached,\n onEndReachedThreshold,\n onLayout,\n onRefresh,\n onScroll,\n onScrollBeginDrag,\n onScrollEndDrag,\n onMomentumScrollBegin,\n onMomentumScrollEnd,\n onStartReached,\n onStartReachedThreshold,\n onViewableItemsChanged,\n refreshing,\n removeClippedSubviews,\n renderItem,\n viewabilityConfig,\n viewabilityConfigCallbackPairs,\n ...restProps\n } = this.props;\n const itemCount = getItemCount(data);\n if (itemCount === 0) {\n if (!ListEmptyComponent) return null;\n return isValidElement(ListEmptyComponent) ? ListEmptyComponent : /* @__PURE__ */ jsx(ListEmptyComponent, {});\n }\n return /* @__PURE__ */ jsx(\n ScrollView,\n {\n ...restProps,\n ref: this._captureRef,\n onContentSizeChange: this._onContentSizeChange,\n onLayout: this._onLayout,\n onScroll: this._onScroll,\n refreshControl: onRefresh && /* @__PURE__ */ jsx(RefreshControl, { refreshing, onRefresh }),\n scrollEventThrottle: scrollEventThrottleOrDefault(this.props.scrollEventThrottle),\n removeClippedSubviews,\n children: this._renderChildren()\n }\n );\n }\n _renderChildren() {\n const { data, getItem, getItemCount, renderItem } = this.props;\n const items = [];\n for (let i = 0; i < getItemCount(data); i++) {\n const item = getItem(data, i);\n items.push(\n /* @__PURE__ */ jsx(\n CellRenderer,\n {\n cellKey: String(i),\n index: i,\n item,\n renderItem\n },\n this.props.keyExtractor ? this.props.keyExtractor(item, i) : i\n )\n );\n }\n return items;\n }\n _captureRef = (ref) => {\n this._scrollRef = ref;\n };\n _onContentSizeChange = (width, height) => {\n };\n _onLayout = (event) => {\n };\n _onScroll = (event) => {\n };\n __getFrameMetricsApprox(index, props) {\n const frame = {\n length: this._averageCellLength,\n offset: this._averageCellLength * index\n };\n return frame;\n }\n _getOffsetApprox(index, props) {\n return this.__getFrameMetricsApprox(index, props).offset;\n }\n}\nvar VirtualizedList_default = VirtualizedList;\nexport {\n VirtualizedList,\n VirtualizedList_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;;;;;;;;;;AAYA,MAAM,UAAU,QAAQ,IAAI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I,qBAAqC,oBAAI,oBAAoB,CAAC,CAAC;EAC7G;EACA,OAAuB,oBACrB,YACA;GACE,GAAG;GACH,KAAK,KAAK;GACV,qBAAqB,KAAK;GAC1B,UAAU,KAAK;GACf,UAAU,KAAK;GACf,gBAAgB,aAA6B,oBAAI,gBAAgB;IAAE;IAAY;GAAU,CAAC;GAC1F,qBAAqB,6BAA6B,KAAK,MAAM,mBAAmB;GAChF;GACA,UAAU,KAAK,gBAAgB;EACjC,CACF;CACF;CACA,kBAAkB;EAChB,MAAM,EAAE,MAAM,SAAS,cAAc,eAAe,KAAK;EACzD,MAAM,QAAQ,CAAC;EACf,KAAK,IAAI,IAAI,GAAG,IAAI,aAAa,IAAI,GAAG,KAAK;GAC3C,MAAM,OAAO,QAAQ,MAAM,CAAC;GAC5B,MAAM,KACY,oBACd,cACA;IACE,SAAS,OAAO,CAAC;IACjB,OAAO;IACP;IACA;GACF,GACA,KAAK,MAAM,eAAe,KAAK,MAAM,aAAa,MAAM,CAAC,IAAI,CAC/D,CACF;EACF;EACA,OAAO;CACT;CACA,eAAe,QAAQ;EACrB,KAAK,aAAa;CACpB;CACA,wBAAwB,OAAO,WAAW,CAC1C;CACA,aAAa,UAAU,CACvB;CACA,aAAa,UAAU,CACvB;CACA,wBAAwB,OAAO,OAAO;EACpC,MAAM,QAAQ;GACZ,QAAQ,KAAK;GACb,QAAQ,KAAK,qBAAqB;EACpC;EACA,OAAO;CACT;CACA,iBAAiB,OAAO,OAAO;EAC7B,OAAO,KAAK,wBAAwB,OAAO,KAAK,CAAC,CAAC;CACpD;AACF;AACA,IAAI,0BAA0B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["esm/vendor/react-native/VirtualizedSectionList/index.js"],"sourcesContent":["import { VirtualizedList } from \"../VirtualizedList\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nconst defaultProps = {\n data: [],\n key: null,\n renderItem: null,\n ItemSeparatorComponent: null,\n keyExtractor: null\n};\nclass VirtualizedSectionList extends React.PureComponent {\n scrollToLocation(params) {\n let index = params.itemIndex;\n for (let i = 0; i < params.sectionIndex; i++) {\n index += this.props.getItemCount(this.props.sections[i].data) + 2;\n }\n let viewOffset = params.viewOffset || 0;\n if (this._listRef == null) {\n return;\n }\n if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) {\n const frame = this._listRef.__getFrameMetricsApprox(\n index - params.itemIndex,\n this._listRef.props\n );\n viewOffset += frame.length;\n }\n const toIndexParams = {\n ...params,\n viewOffset,\n index\n };\n this._listRef.scrollToIndex(toIndexParams);\n }\n getListRef() {\n return this._listRef;\n }\n render() {\n const {\n ItemSeparatorComponent,\n SectionSeparatorComponent,\n renderItem: _renderItem,\n renderSectionFooter,\n renderSectionHeader,\n sections: _sections,\n stickySectionHeadersEnabled,\n ...passThroughProps\n } = this.props;\n const listHeaderOffset = this.props.ListHeaderComponent ? 1 : 0;\n const stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : void 0;\n let itemCount = 0;\n for (const section of this.props.sections) {\n if (stickyHeaderIndices != null) {\n stickyHeaderIndices.push(itemCount + listHeaderOffset);\n }\n itemCount += 2;\n itemCount += this.props.getItemCount(section.data);\n }\n const renderItem = this._renderItem(itemCount);\n return /* @__PURE__ */ jsx(\n VirtualizedList,\n {\n ...passThroughProps,\n keyExtractor: this._keyExtractor,\n stickyHeaderIndices,\n renderItem,\n data: this.props.sections,\n getItem: (sections, index) => this._getItem(this.props, sections, index),\n getItemCount: () => itemCount,\n onViewableItemsChanged: this.props.onViewableItemsChanged ? this._onViewableItemsChanged : void 0,\n ref: this._captureRef\n }\n );\n }\n _getItem(props, sections, index) {\n if (!sections) {\n return null;\n }\n let itemIdx = index - 1;\n for (let i = 0; i < sections.length; i++) {\n const section = sections[i];\n const sectionData = section.data;\n const itemCount = props.getItemCount(sectionData);\n if (itemIdx === -1 || itemIdx === itemCount) {\n return section;\n } else if (itemIdx < itemCount) {\n return props.getItem(sectionData, itemIdx);\n } else {\n itemIdx -= itemCount + 2;\n }\n }\n return null;\n }\n _keyExtractor = (item, index) => {\n const keyExtractor = this.props.keyExtractor || this._defaultKeyExtractor;\n return keyExtractor(item, index);\n };\n _defaultKeyExtractor = (item, index) => {\n return item.key != null ? item.key : String(index);\n };\n _captureRef = (ref) => {\n this._listRef = ref;\n };\n _renderItem = (itemCount) => {\n return ({ item, index }) => {\n if (index === 0 || index === itemCount - 1) {\n return null;\n }\n const renderItem = this.props.renderItem || this._defaultRenderItem;\n return renderItem({ item, index, section: item });\n };\n };\n _defaultRenderItem = ({ item }) => {\n return null;\n };\n _onViewableItemsChanged = (info) => {\n if (this.props.onViewableItemsChanged) {\n this.props.onViewableItemsChanged(info);\n }\n };\n}\nVirtualizedSectionList.defaultProps = defaultProps;\nvar VirtualizedSectionList_default = VirtualizedSectionList;\nexport {\n VirtualizedSectionList,\n VirtualizedSectionList_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;AAGA,MAAM,eAAe;CACnB,MAAM,CAAC;CACP,KAAK;CACL,YAAY;CACZ,wBAAwB;CACxB,cAAc;AAChB;AACA,IAAM,yBAAN,cAAqC,MAAM,cAAc;CACvD,iBAAiB,QAAQ;EACvB,IAAI,QAAQ,OAAO;EACnB,KAAK,IAAI,IAAI,GAAG,IAAI,OAAO,cAAc,KAAK;GAC5C,SAAS,KAAK,MAAM,aAAa,KAAK,MAAM,SAAS,GAAG,IAAI,IAAI;EAClE;EACA,IAAI,aAAa,OAAO,cAAc;EACtC,IAAI,KAAK,YAAY,MAAM;GACzB;EACF;EACA,IAAI,OAAO,YAAY,KAAK,KAAK,MAAM,6BAA6B;GAClE,MAAM,QAAQ,KAAK,SAAS,wBAC1B,QAAQ,OAAO,WACf,KAAK,SAAS,KAChB;GACA,cAAc,MAAM;EACtB;EACA,MAAM,gBAAgB;GACpB,GAAG;GACH;GACA;EACF;EACA,KAAK,SAAS,cAAc,aAAa;CAC3C;CACA,aAAa;EACX,OAAO,KAAK;CAC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ACtC,OAAO,KAAK,OAAO,OAAO,KAAK,MAAM,OAAO,KAAK;CACnD;CACA,eAAe,QAAQ;EACrB,KAAK,WAAW;CAClB;CACA,eAAe,cAAc;EAC3B,QAAQ,EAAE,MAAM,YAAY;GAC1B,IAAI,UAAU,KAAK,UAAU,YAAY,GAAG;IAC1C,OAAO;GACT;GACA,MAAM,aAAa,KAAK,MAAM,cAAc,KAAK;GACjD,OAAO,WAAW;IAAE;IAAM;IAAO,SAAS;GAAK,CAAC;EAClD;CACF;CACA,sBAAsB,EAAE,WAAW;EACjC,OAAO;CACT;CACA,2BAA2B,SAAS;EAClC,IAAI,KAAK,MAAM,wBAAwB;GACrC,KAAK,MAAM,uBAAuB,IAAI;EACxC;CACF;AACF;AACA,uBAAuB,eAAe;AACtC,IAAI,iCAAiC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/vendor/react-native/VirtualizedSectionList/index.js"],"sourcesContent":["import { VirtualizedList } from \"../VirtualizedList\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nconst defaultProps = {\n data: [],\n key: null,\n renderItem: null,\n ItemSeparatorComponent: null,\n keyExtractor: null\n};\nclass VirtualizedSectionList extends React.PureComponent {\n scrollToLocation(params) {\n let index = params.itemIndex;\n for (let i = 0; i < params.sectionIndex; i++) {\n index += this.props.getItemCount(this.props.sections[i].data) + 2;\n }\n let viewOffset = params.viewOffset || 0;\n if (this._listRef == null) {\n return;\n }\n if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) {\n const frame = this._listRef.__getFrameMetricsApprox(\n index - params.itemIndex,\n this._listRef.props\n );\n viewOffset += frame.length;\n }\n const toIndexParams = {\n ...params,\n viewOffset,\n index\n };\n this._listRef.scrollToIndex(toIndexParams);\n }\n getListRef() {\n return this._listRef;\n }\n render() {\n const {\n ItemSeparatorComponent,\n SectionSeparatorComponent,\n renderItem: _renderItem,\n renderSectionFooter,\n renderSectionHeader,\n sections: _sections,\n stickySectionHeadersEnabled,\n ...passThroughProps\n } = this.props;\n const listHeaderOffset = this.props.ListHeaderComponent ? 1 : 0;\n const stickyHeaderIndices = this.props.stickySectionHeadersEnabled ? [] : void 0;\n let itemCount = 0;\n for (const section of this.props.sections) {\n if (stickyHeaderIndices != null) {\n stickyHeaderIndices.push(itemCount + listHeaderOffset);\n }\n itemCount += 2;\n itemCount += this.props.getItemCount(section.data);\n }\n const renderItem = this._renderItem(itemCount);\n return /* @__PURE__ */ jsx(\n VirtualizedList,\n {\n ...passThroughProps,\n keyExtractor: this._keyExtractor,\n stickyHeaderIndices,\n renderItem,\n data: this.props.sections,\n getItem: (sections, index) => this._getItem(this.props, sections, index),\n getItemCount: () => itemCount,\n onViewableItemsChanged: this.props.onViewableItemsChanged ? this._onViewableItemsChanged : void 0,\n ref: this._captureRef\n }\n );\n }\n _getItem(props, sections, index) {\n if (!sections) {\n return null;\n }\n let itemIdx = index - 1;\n for (let i = 0; i < sections.length; i++) {\n const section = sections[i];\n const sectionData = section.data;\n const itemCount = props.getItemCount(sectionData);\n if (itemIdx === -1 || itemIdx === itemCount) {\n return section;\n } else if (itemIdx < itemCount) {\n return props.getItem(sectionData, itemIdx);\n } else {\n itemIdx -= itemCount + 2;\n }\n }\n return null;\n }\n _keyExtractor = (item, index) => {\n const keyExtractor = this.props.keyExtractor || this._defaultKeyExtractor;\n return keyExtractor(item, index);\n };\n _defaultKeyExtractor = (item, index) => {\n return item.key != null ? item.key : String(index);\n };\n _captureRef = (ref) => {\n this._listRef = ref;\n };\n _renderItem = (itemCount) => {\n return ({ item, index }) => {\n if (index === 0 || index === itemCount - 1) {\n return null;\n }\n const renderItem = this.props.renderItem || this._defaultRenderItem;\n return renderItem({ item, index, section: item });\n };\n };\n _defaultRenderItem = ({ item }) => {\n return null;\n };\n _onViewableItemsChanged = (info) => {\n if (this.props.onViewableItemsChanged) {\n this.props.onViewableItemsChanged(info);\n }\n };\n}\nVirtualizedSectionList.defaultProps = defaultProps;\nvar VirtualizedSectionList_default = VirtualizedSectionList;\nexport {\n VirtualizedSectionList,\n VirtualizedSectionList_default as default\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;;AAGA,MAAM,eAAe;CACnB,MAAM,CAAC;CACP,KAAK;CACL,YAAY;CACZ,wBAAwB;CACxB,cAAc;AAChB;AACA,IAAM,yBAAN,cAAqC,MAAM,cAAc;CACvD,iBAAiB,QAAQ;EACvB,IAAI,QAAQ,OAAO;EACnB,KAAK,IAAI,IAAI,GAAG,IAAI,OAAO,cAAc,KAAK;GAC5C,SAAS,KAAK,MAAM,aAAa,KAAK,MAAM,SAAS,EAAE,CAAC,IAAI,IAAI;EAClE;EACA,IAAI,aAAa,OAAO,cAAc;EACtC,IAAI,KAAK,YAAY,MAAM;GACzB;EACF;EACA,IAAI,OAAO,YAAY,KAAK,KAAK,MAAM,6BAA6B;GAClE,MAAM,QAAQ,KAAK,SAAS,wBAC1B,QAAQ,OAAO,WACf,KAAK,SAAS,KAChB;GACA,cAAc,MAAM;EACtB;EACA,MAAM,gBAAgB;GACpB,GAAG;GACH;GACA;EACF;EACA,KAAK,SAAS,cAAc,aAAa;CAC3C;CACA,aAAa;EACX,OAAO,KAAK;CACd;CACA,SAAS;EACP,MAAM,EACJ,wBACA,2BACA,YAAY,aACZ,qBACA,qBACA,UAAU,WACV,6BACA,GAAG,qBACD,KAAK;EACT,MAAM,mBAAmB,KAAK,MAAM,sBAAsB,IAAI;EAC9D,MAAM,sBAAsB,KAAK,MAAM,8BAA8B,CAAC,IAAI,KAAK;EAC/E,IAAI,YAAY;EAChB,KAAK,MAAM,WAAW,KAAK,MAAM,UAAU;GACzC,IAAI,uBAAuB,MAAM;IAC/B,oBAAoB,KAAK,YAAY,gBAAgB;GACvD;GACA,aAAa;GACb,aAAa,KAAK,MAAM,aAAa,QAAQ,IAAI;EACnD;EACA,MAAM,aAAa,KAAK,YAAY,SAAS;EAC7C,OAAuB,oBACrB,iBACA;GACE,GAAG;GACH,cAAc,KAAK;GACnB;GACA;GACA,MAA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-1 +1 @@
1
- {"version":3,"file":"_EventEmitter.js","names":[],"sources":["esm/vendor/react-native/emitter/_EventEmitter.js"],"sourcesContent":["import { invariant } from \"@tamagui/react-native-web-internals\";\nimport { EmitterSubscription } from \"./_EmitterSubscription\";\nimport { EventSubscriptionVendor } from \"./_EventSubscriptionVendor\";\nvar sparseFilterPredicate = () => true;\nclass EventEmitter {\n /**\n * @constructor\n *\n * @param {EventSubscriptionVendor} subscriber - Optional subscriber instance\n * to use. If omitted, a new subscriber will be created for the emitter.\n */\n constructor(subscriber = new EventSubscriptionVendor()) {\n this._subscriber = subscriber;\n }\n /**\n * Adds a listener to be invoked when events of the specified type are\n * emitted. An optional calling context may be provided. The data arguments\n * emitted will be passed to the listener function.\n *\n * TODO: Annotate the listener arg's type. This is tricky because listeners\n * can be invoked with varargs.\n *\n * @param {string} eventType - Name of the event to listen to\n * @param {function} listener - Function to invoke when the specified event is\n * emitted\n * @param {*} context - Optional context object to use when invoking the\n * listener\n */\n addListener(eventType, listener, context) {\n return this._subscriber.addSubscription(\n eventType,\n new EmitterSubscription(this, this._subscriber, listener, context)\n );\n }\n /**\n * Removes all of the registered listeners, including those registered as\n * listener maps.\n *\n * @param {?string} eventType - Optional name of the event whose registered\n * listeners to remove\n */\n removeAllListeners(eventType) {\n this._subscriber.removeAllSubscriptions(eventType);\n }\n /**\n * @deprecated Use `remove` on the EventSubscription from `addListener`.\n */\n removeSubscription(subscription) {\n invariant(\n subscription.emitter === this,\n \"Subscription does not belong to this emitter.\"\n );\n this._subscriber.removeSubscription(subscription);\n }\n /**\n * Returns the number of listeners that are currently registered for the given\n * event.\n *\n * @param {string} eventType - Name of the event to query\n * @returns {number}\n */\n listenerCount(eventType) {\n var subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n return subscriptions ? (\n // \"callbackfn is called only for elements of the array which actually\n // exist; it is not called for missing elements of the array.\"\n // https://www.ecma-international.org/ecma-262/9.0/index.html#sec-array.prototype.filter\n subscriptions.filter(sparseFilterPredicate).length\n ) : 0;\n }\n /**\n * Emits an event of the given type with the given data. All handlers of that\n * particular type will be notified.\n *\n * @param {string} eventType - Name of the event to emit\n * @param {...*} Arbitrary arguments to be passed to each registered listener\n *\n * @example\n * emitter.addListener('someEvent', function(message) {\n * console.log(message);\n * });\n *\n * emitter.emit('someEvent', 'abc'); // logs 'abc'\n */\n emit(eventType) {\n var subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n if (subscriptions) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n for (var i = 0, l = subscriptions.length; i < l; i++) {\n var subscription = subscriptions[i];\n if (subscription && subscription.listener) {\n subscription.listener.apply(subscription.context, args);\n }\n }\n }\n }\n /**\n * @deprecated Use `remove` on the EventSubscription from `addListener`.\n */\n removeListener(eventType, listener) {\n console.error(\n \"EventEmitter.removeListener('\" + eventType + \"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`.\"\n );\n var subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n if (subscriptions) {\n for (var i = 0, l = subscriptions.length; i < l; i++) {\n var subscription = subscriptions[i];\n if (subscription && subscription.listener === listener) {\n subscription.remove();\n }\n }\n }\n }\n}\nvar EventEmitter_default = EventEmitter;\nexport {\n EventEmitter,\n EventEmitter_default as default\n};\n//# sourceMappingURL=_EventEmitter.js.map\n"],"mappings":";;;;;AAGA,IAAI,8BAA8B;AAClC,IAAM,eAAN,MAAmB;;;;;;;CAOjB,YAAY,aAAa,IAAI,wBAAwB,GAAG;EACtD,KAAK,cAAc;CACrB;;;;;;;;;;;;;;;CAeA,YAAY,WAAW,UAAU,SAAS;EACxC,OAAO,KAAK,YAAY,gBACtB,WACA,IAAI,oBAAoB,MAAM,KAAK,aAAa,UAAU,OAAO,CACnE;CACF;;;;;;;;CAQA,mBAAmB,WAAW;EAC5B,KAAK,YAAY,uBAAuB,SAAS;CACnD;;;;CAIA,mBAAmB,cAAc;EAC/B,UACE,aAAa,YAAY,MACzB,+CACF;EACA,KAAK,YAAY,mBAAmB,YAAY;CAClD;;;;;;;;CAQA,cAAc,WAAW;EACvB,IAAI,gBAAgB,KAAK,YAAY,wBAAwB,SAAS;EACtE,OAAO,gBAIL,cAAc,OAAO,qBAAqB,EAAE,SAC1C;CACN;;;;;;;;;;;;;;;CAeA,KAAK,WAAW;EACd,IAAI,gBAAgB,KAAK,YAAY,wBAAwB,SAAS;EACtE,IAAI,eAAe;GACjB,KAAK,IAAI,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,OAAO,IAAI,OAAO,IAAI,CAAC,GAAG,OAAO,GAAG,OAAO,MAAM,QAAQ;IAC1G,KAAK,OAAO,KAAK,UAAU;GAC7B;GACA,KAAK,IAAI,IAAI,GAAG,IAAI,cAAc,QAAQ,IAAI,GAAG,KAAK;IACpD,IAAI,eAAe,cAAc;IACjC,IAAI,gBAAgB,aAAa,UAAU;KACzC,aAAa,SAAS,MAAM,aAAa,SAAS,IAAI;IACxD;GACF;EACF;CACF;;;;CAIA,eAAe,WAAW,UAAU;EAClC,QAAQ,MACN,kCAAkC,YAAY,gIAChD;EACA,IAAI,gBAAgB,KAAK,YAAY,wBAAwB,SAAS;EACtE,IAAI,eAAe;GACjB,KAAK,IAAI,IAAI,GAAG,IAAI,cAAc,QAAQ,IAAI,GAAG,KAAK;IACpD,IAAI,eAAe,cAAc;IACjC,IAAI,gBAAgB,aAAa,aAAa,UAAU;KACtD,aAAa,OAAO;IACtB;GACF;EACF;CACF;AACF;AACA,IAAI,uBAAuB"}
1
+ {"version":3,"file":"_EventEmitter.js","names":[],"sources":["esm/vendor/react-native/emitter/_EventEmitter.js"],"sourcesContent":["import { invariant } from \"@tamagui/react-native-web-internals\";\nimport { EmitterSubscription } from \"./_EmitterSubscription\";\nimport { EventSubscriptionVendor } from \"./_EventSubscriptionVendor\";\nvar sparseFilterPredicate = () => true;\nclass EventEmitter {\n /**\n * @constructor\n *\n * @param {EventSubscriptionVendor} subscriber - Optional subscriber instance\n * to use. If omitted, a new subscriber will be created for the emitter.\n */\n constructor(subscriber = new EventSubscriptionVendor()) {\n this._subscriber = subscriber;\n }\n /**\n * Adds a listener to be invoked when events of the specified type are\n * emitted. An optional calling context may be provided. The data arguments\n * emitted will be passed to the listener function.\n *\n * TODO: Annotate the listener arg's type. This is tricky because listeners\n * can be invoked with varargs.\n *\n * @param {string} eventType - Name of the event to listen to\n * @param {function} listener - Function to invoke when the specified event is\n * emitted\n * @param {*} context - Optional context object to use when invoking the\n * listener\n */\n addListener(eventType, listener, context) {\n return this._subscriber.addSubscription(\n eventType,\n new EmitterSubscription(this, this._subscriber, listener, context)\n );\n }\n /**\n * Removes all of the registered listeners, including those registered as\n * listener maps.\n *\n * @param {?string} eventType - Optional name of the event whose registered\n * listeners to remove\n */\n removeAllListeners(eventType) {\n this._subscriber.removeAllSubscriptions(eventType);\n }\n /**\n * @deprecated Use `remove` on the EventSubscription from `addListener`.\n */\n removeSubscription(subscription) {\n invariant(\n subscription.emitter === this,\n \"Subscription does not belong to this emitter.\"\n );\n this._subscriber.removeSubscription(subscription);\n }\n /**\n * Returns the number of listeners that are currently registered for the given\n * event.\n *\n * @param {string} eventType - Name of the event to query\n * @returns {number}\n */\n listenerCount(eventType) {\n var subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n return subscriptions ? (\n // \"callbackfn is called only for elements of the array which actually\n // exist; it is not called for missing elements of the array.\"\n // https://www.ecma-international.org/ecma-262/9.0/index.html#sec-array.prototype.filter\n subscriptions.filter(sparseFilterPredicate).length\n ) : 0;\n }\n /**\n * Emits an event of the given type with the given data. All handlers of that\n * particular type will be notified.\n *\n * @param {string} eventType - Name of the event to emit\n * @param {...*} Arbitrary arguments to be passed to each registered listener\n *\n * @example\n * emitter.addListener('someEvent', function(message) {\n * console.log(message);\n * });\n *\n * emitter.emit('someEvent', 'abc'); // logs 'abc'\n */\n emit(eventType) {\n var subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n if (subscriptions) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n for (var i = 0, l = subscriptions.length; i < l; i++) {\n var subscription = subscriptions[i];\n if (subscription && subscription.listener) {\n subscription.listener.apply(subscription.context, args);\n }\n }\n }\n }\n /**\n * @deprecated Use `remove` on the EventSubscription from `addListener`.\n */\n removeListener(eventType, listener) {\n console.error(\n \"EventEmitter.removeListener('\" + eventType + \"', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`.\"\n );\n var subscriptions = this._subscriber.getSubscriptionsForType(eventType);\n if (subscriptions) {\n for (var i = 0, l = subscriptions.length; i < l; i++) {\n var subscription = subscriptions[i];\n if (subscription && subscription.listener === listener) {\n subscription.remove();\n }\n }\n }\n }\n}\nvar EventEmitter_default = EventEmitter;\nexport {\n EventEmitter,\n EventEmitter_default as default\n};\n//# sourceMappingURL=_EventEmitter.js.map\n"],"mappings":";;;;;AAGA,IAAI,8BAA8B;AAClC,IAAM,eAAN,MAAmB;;;;;;;CAOjB,YAAY,aAAa,IAAI,wBAAwB,GAAG;EACtD,KAAK,cAAc;CACrB;;;;;;;;;;;;;;;CAeA,YAAY,WAAW,UAAU,SAAS;EACxC,OAAO,KAAK,YAAY,gBACtB,WACA,IAAI,oBAAoB,MAAM,KAAK,aAAa,UAAU,OAAO,CACnE;CACF;;;;;;;;CAQA,mBAAmB,WAAW;EAC5B,KAAK,YAAY,uBAAuB,SAAS;CACnD;;;;CAIA,mBAAmB,cAAc;EAC/B,UACE,aAAa,YAAY,MACzB,+CACF;EACA,KAAK,YAAY,mBAAmB,YAAY;CAClD;;;;;;;;CAQA,cAAc,WAAW;EACvB,IAAI,gBAAgB,KAAK,YAAY,wBAAwB,SAAS;EACtE,OAAO,gBAIL,cAAc,OAAO,qBAAqB,CAAC,CAAC,SAC1C;CACN;;;;;;;;;;;;;;;CAeA,KAAK,WAAW;EACd,IAAI,gBAAgB,KAAK,YAAY,wBAAwB,SAAS;EACtE,IAAI,eAAe;GACjB,KAAK,IAAI,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,OAAO,IAAI,OAAO,IAAI,CAAC,GAAG,OAAO,GAAG,OAAO,MAAM,QAAQ;IAC1G,KAAK,OAAO,KAAK,UAAU;GAC7B;GACA,KAAK,IAAI,IAAI,GAAG,IAAI,cAAc,QAAQ,IAAI,GAAG,KAAK;IACpD,IAAI,eAAe,cAAc;IACjC,IAAI,gBAAgB,aAAa,UAAU;KACzC,aAAa,SAAS,MAAM,aAAa,SAAS,IAAI;IACxD;GACF;EACF;CACF;;;;CAIA,eAAe,WAAW,UAAU;EAClC,QAAQ,MACN,kCAAkC,YAAY,gIAChD;EACA,IAAI,gBAAgB,KAAK,YAAY,wBAAwB,SAAS;EACtE,IAAI,eAAe;GACjB,KAAK,IAAI,IAAI,GAAG,IAAI,cAAc,QAAQ,IAAI,GAAG,KAAK;IACpD,IAAI,eAAe,cAAc;IACjC,IAAI,gBAAgB,aAAa,aAAa,UAAU;KACtD,aAAa,OAAO;IACtB;GACF;EACF;CACF;AACF;AACA,IAAI,uBAAuB"}
@@ -1 +1 @@
1
- {"version":3,"file":"_EventSubscriptionVendor.js","names":[],"sources":["esm/vendor/react-native/emitter/_EventSubscriptionVendor.js"],"sourcesContent":["import { invariant } from \"@tamagui/react-native-web-internals\";\nclass EventSubscriptionVendor {\n constructor() {\n this._subscriptionsForType = {};\n }\n /**\n * Adds a subscription keyed by an event type.\n *\n * @param {string} eventType\n * @param {EventSubscription} subscription\n */\n addSubscription(eventType, subscription) {\n invariant(\n subscription.subscriber === this,\n \"The subscriber of the subscription is incorrectly set.\"\n );\n if (!this._subscriptionsForType[eventType]) {\n this._subscriptionsForType[eventType] = [];\n }\n var key = this._subscriptionsForType[eventType].length;\n this._subscriptionsForType[eventType].push(subscription);\n subscription.eventType = eventType;\n subscription.key = key;\n return subscription;\n }\n /**\n * Removes a bulk set of the subscriptions.\n *\n * @param {?string} eventType - Optional name of the event type whose\n * registered supscriptions to remove, if null remove all subscriptions.\n */\n removeAllSubscriptions(eventType) {\n if (eventType == null) {\n this._subscriptionsForType = {};\n } else {\n delete this._subscriptionsForType[eventType];\n }\n }\n /**\n * Removes a specific subscription. Instead of calling this function, call\n * `subscription.remove()` directly.\n *\n * @param {object} subscription\n */\n removeSubscription(subscription) {\n var eventType = subscription.eventType;\n var key = subscription.key;\n var subscriptionsForType = this._subscriptionsForType[eventType];\n if (subscriptionsForType) {\n delete subscriptionsForType[key];\n }\n }\n /**\n * Returns the array of subscriptions that are currently registered for the\n * given event type.\n *\n * Note: This array can be potentially sparse as subscriptions are deleted\n * from it when they are removed.\n *\n * TODO: This returns a nullable array. wat?\n *\n * @param {string} eventType\n * @returns {?array}\n */\n getSubscriptionsForType(eventType) {\n return this._subscriptionsForType[eventType];\n }\n}\nvar EventSubscriptionVendor_default = EventSubscriptionVendor;\nexport {\n EventSubscriptionVendor,\n EventSubscriptionVendor_default as default\n};\n//# sourceMappingURL=_EventSubscriptionVendor.js.map\n"],"mappings":";;;AACA,IAAM,0BAAN,MAA8B;CAC5B,cAAc;EACZ,KAAK,wBAAwB,CAAC;CAChC;;;;;;;CAOA,gBAAgB,WAAW,cAAc;EACvC,UACE,aAAa,eAAe,MAC5B,wDACF;EACA,IAAI,CAAC,KAAK,sBAAsB,YAAY;GAC1C,KAAK,sBAAsB,aAAa,CAAC;EAC3C;EACA,IAAI,MAAM,KAAK,sBAAsB,WAAW;EAChD,KAAK,sBAAsB,WAAW,KAAK,YAAY;EACvD,aAAa,YAAY;EACzB,aAAa,MAAM;EACnB,OAAO;CACT;;;;;;;CAOA,uBAAuB,WAAW;EAChC,IAAI,aAAa,MAAM;GACrB,KAAK,wBAAwB,CAAC;EAChC,OAAO;GACL,OAAO,KAAK,sBAAsB;EACpC;CACF;;;;;;;CAOA,mBAAmB,cAAc;EAC/B,IAAI,YAAY,aAAa;EAC7B,IAAI,MAAM,aAAa;EACvB,IAAI,uBAAuB,KAAK,sBAAsB;EACtD,IAAI,sBAAsB;GACxB,OAAO,qBAAqB;EAC9B;CACF;;;;;;;;;;;;;CAaA,wBAAwB,WAAW;EACjC,OAAO,KAAK,sBAAsB;CACpC;AACF;AACA,IAAI,kCAAkC"}
1
+ {"version":3,"file":"_EventSubscriptionVendor.js","names":[],"sources":["esm/vendor/react-native/emitter/_EventSubscriptionVendor.js"],"sourcesContent":["import { invariant } from \"@tamagui/react-native-web-internals\";\nclass EventSubscriptionVendor {\n constructor() {\n this._subscriptionsForType = {};\n }\n /**\n * Adds a subscription keyed by an event type.\n *\n * @param {string} eventType\n * @param {EventSubscription} subscription\n */\n addSubscription(eventType, subscription) {\n invariant(\n subscription.subscriber === this,\n \"The subscriber of the subscription is incorrectly set.\"\n );\n if (!this._subscriptionsForType[eventType]) {\n this._subscriptionsForType[eventType] = [];\n }\n var key = this._subscriptionsForType[eventType].length;\n this._subscriptionsForType[eventType].push(subscription);\n subscription.eventType = eventType;\n subscription.key = key;\n return subscription;\n }\n /**\n * Removes a bulk set of the subscriptions.\n *\n * @param {?string} eventType - Optional name of the event type whose\n * registered supscriptions to remove, if null remove all subscriptions.\n */\n removeAllSubscriptions(eventType) {\n if (eventType == null) {\n this._subscriptionsForType = {};\n } else {\n delete this._subscriptionsForType[eventType];\n }\n }\n /**\n * Removes a specific subscription. Instead of calling this function, call\n * `subscription.remove()` directly.\n *\n * @param {object} subscription\n */\n removeSubscription(subscription) {\n var eventType = subscription.eventType;\n var key = subscription.key;\n var subscriptionsForType = this._subscriptionsForType[eventType];\n if (subscriptionsForType) {\n delete subscriptionsForType[key];\n }\n }\n /**\n * Returns the array of subscriptions that are currently registered for the\n * given event type.\n *\n * Note: This array can be potentially sparse as subscriptions are deleted\n * from it when they are removed.\n *\n * TODO: This returns a nullable array. wat?\n *\n * @param {string} eventType\n * @returns {?array}\n */\n getSubscriptionsForType(eventType) {\n return this._subscriptionsForType[eventType];\n }\n}\nvar EventSubscriptionVendor_default = EventSubscriptionVendor;\nexport {\n EventSubscriptionVendor,\n EventSubscriptionVendor_default as default\n};\n//# sourceMappingURL=_EventSubscriptionVendor.js.map\n"],"mappings":";;;AACA,IAAM,0BAAN,MAA8B;CAC5B,cAAc;EACZ,KAAK,wBAAwB,CAAC;CAChC;;;;;;;CAOA,gBAAgB,WAAW,cAAc;EACvC,UACE,aAAa,eAAe,MAC5B,wDACF;EACA,IAAI,CAAC,KAAK,sBAAsB,YAAY;GAC1C,KAAK,sBAAsB,aAAa,CAAC;EAC3C;EACA,IAAI,MAAM,KAAK,sBAAsB,UAAU,CAAC;EAChD,KAAK,sBAAsB,UAAU,CAAC,KAAK,YAAY;EACvD,aAAa,YAAY;EACzB,aAAa,MAAM;EACnB,OAAO;CACT;;;;;;;CAOA,uBAAuB,WAAW;EAChC,IAAI,aAAa,MAAM;GACrB,KAAK,wBAAwB,CAAC;EAChC,OAAO;GACL,OAAO,KAAK,sBAAsB;EACpC;CACF;;;;;;;CAOA,mBAAmB,cAAc;EAC/B,IAAI,YAAY,aAAa;EAC7B,IAAI,MAAM,aAAa;EACvB,IAAI,uBAAuB,KAAK,sBAAsB;EACtD,IAAI,sBAAsB;GACxB,OAAO,qBAAqB;EAC9B;CACF;;;;;;;;;;;;;CAaA,wBAAwB,WAAW;EACjC,OAAO,KAAK,sBAAsB;CACpC;AACF;AACA,IAAI,kCAAkC"}
@@ -1 +1 @@
1
- {"version":3,"file":"without-animated.js","names":["_View","_Text","_Image","_ScrollView"],"sources":["esm/without-animated.js"],"sourcesContent":["import { createContext } from \"react\";\nimport { createElement } from \"./createElement/index\";\nimport {\n AccessibilityUtil,\n canUseDOM,\n clickProps,\n createDOMProps,\n dismissKeyboard,\n flattenStyle,\n ImageLoader,\n InteractionManager,\n isWebColor,\n LocaleProvider,\n mergeRefs,\n normalizeColor,\n Platform,\n processColor,\n processStyle,\n StyleSheet,\n TextAncestorContext,\n UIManager,\n useEvent,\n useHover,\n useLayoutEffect,\n useMergeRefs,\n usePlatformMethods\n} from \"@tamagui/react-native-web-internals\";\nimport { render } from \"./render/index\";\nimport { NativeModules } from \"./NativeModules/index\";\nimport { default as default2 } from \"./vendor/react-native/EventEmitter/NativeEventEmitter\";\nimport * as TurboModuleRegistry from \"./vendor/react-native/TurboModule/TurboModuleRegistry\";\nimport { AccessibilityInfo } from \"./AccessibilityInfo/index\";\nimport { Alert } from \"./Alert/index\";\nimport { Appearance } from \"./Appearance/index\";\nimport { AppRegistry } from \"./AppRegistry/index\";\nimport { AppState } from \"./AppState/index\";\nimport { BackHandler } from \"./BackHandler/index\";\nimport { Clipboard } from \"./Clipboard/index\";\nimport { DeviceInfo } from \"./DeviceInfo/index\";\nimport { DeviceEmitter } from \"./DeviceEmitter\";\nimport { DeviceEmitter as DeviceEmitter2 } from \"./DeviceEmitter\";\nimport { Dimensions } from \"./Dimensions/index\";\nimport { I18nManager } from \"./I18nManager/index\";\nimport { Keyboard } from \"./Keyboard/index\";\nimport { Linking } from \"./Linking/index\";\nimport { PanResponder } from \"./PanResponder/index\";\nimport { PixelRatio } from \"./PixelRatio/index\";\nimport { Share } from \"./Share/index\";\nimport { Vibration } from \"./Vibration/index\";\nimport { UnimplementedView } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView2 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView3 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView4 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView5 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView6 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView7 } from \"./UnimplementedView\";\nimport { TouchableOpacity, TouchableOpacity as TouchableOpacity2 } from \"./TouchableOpacity\";\nimport { TouchableWithoutFeedback } from \"./TouchableWithoutFeedback\";\nimport { ActivityIndicator } from \"./ActivityIndicator/index\";\nimport { Image } from \"./Image/index\";\nimport { ImageBackground } from \"./ImageBackground/index\";\nimport { KeyboardAvoidingView } from \"./KeyboardAvoidingView/index\";\nimport { Modal } from \"./Modal/index\";\nimport { Pressable } from \"./Pressable/index\";\nimport { RefreshControl } from \"./RefreshControl/index\";\nimport { SafeAreaView } from \"./SafeAreaView/index\";\nimport { ScrollView } from \"./ScrollView/index\";\nimport { StatusBar } from \"./StatusBar/index\";\nimport { Text } from \"./Text/index\";\nimport { TextInput } from \"./TextInput/index\";\nimport { View } from \"./View/index\";\nimport { LogBox } from \"./LogBox/index\";\nimport { useColorScheme } from \"./useColorScheme/index\";\nimport { useLocaleContext } from \"./useLocaleContext/index\";\nimport { useWindowDimensions } from \"./useWindowDimensions/index\";\nexport * from \"@tamagui/react-native-web-internals\";\nimport { View as _View } from \"./View/index\";\nimport { Text as _Text } from \"./Text/index\";\nimport { Image as _Image } from \"./Image/index\";\nimport { ScrollView as _ScrollView } from \"./ScrollView/index\";\nimport { unstable_batchedUpdates } from \"react-dom\";\nfunction requireNativeComponent(name) {\n return function FakeComponent() {\n return null;\n };\n}\nclass AnimatedValue {\n _value;\n _offset;\n _listeners;\n _nextId;\n constructor(value = 0) {\n this._value = value;\n this._offset = 0;\n this._listeners = {};\n this._nextId = 0;\n }\n setValue(value) {\n this._value = value;\n this._notifyListeners();\n }\n setOffset(offset) {\n this._offset = offset;\n }\n flattenOffset() {\n this._value += this._offset;\n this._offset = 0;\n }\n extractOffset() {\n this._offset = this._value;\n this._value = 0;\n }\n addListener(callback) {\n const id = String(this._nextId++);\n this._listeners[id] = callback;\n return id;\n }\n removeListener(id) {\n delete this._listeners[id];\n }\n removeAllListeners() {\n this._listeners = {};\n }\n stopAnimation(callback) {\n callback?.(this._value);\n }\n resetAnimation(callback) {\n callback?.(this._value);\n }\n interpolate(config) {\n return new AnimatedValue(this._value);\n }\n _notifyListeners() {\n for (const key in this._listeners) {\n this._listeners[key]({ value: this._value });\n }\n }\n __getValue() {\n return this._value + this._offset;\n }\n}\nclass AnimatedValueXY {\n x;\n y;\n constructor(value) {\n this.x = new AnimatedValue(value?.x ?? 0);\n this.y = new AnimatedValue(value?.y ?? 0);\n }\n setValue(value) {\n this.x.setValue(value.x);\n this.y.setValue(value.y);\n }\n setOffset(offset) {\n this.x.setOffset(offset.x);\n this.y.setOffset(offset.y);\n }\n flattenOffset() {\n this.x.flattenOffset();\n this.y.flattenOffset();\n }\n stopAnimation(callback) {\n callback?.({ x: this.x._value, y: this.y._value });\n }\n addListener(callback) {\n const xId = this.x.addListener(() => {\n callback({ x: this.x._value, y: this.y._value });\n });\n this.y.addListener(() => {\n callback({ x: this.x._value, y: this.y._value });\n });\n return xId;\n }\n removeAllListeners() {\n this.x.removeAllListeners();\n this.y.removeAllListeners();\n }\n getLayout() {\n return { left: this.x, top: this.y };\n }\n getTranslateTransform() {\n return [{ translateX: this.x }, { translateY: this.y }];\n }\n}\nconst noopAnim = {\n start: (cb) => cb?.({ finished: true }),\n stop: () => {\n },\n reset: () => {\n }\n};\nconst Animated = {\n View: _View,\n Text: _Text,\n Image: _Image,\n ScrollView: _ScrollView,\n FlatList: _View,\n SectionList: _View,\n Value: AnimatedValue,\n ValueXY: AnimatedValueXY,\n timing: () => noopAnim,\n spring: () => noopAnim,\n decay: () => noopAnim,\n sequence: () => noopAnim,\n parallel: () => noopAnim,\n stagger: () => noopAnim,\n loop: () => noopAnim,\n event: () => () => {\n },\n add: (a, b) => new AnimatedValue(0),\n subtract: (a, b) => new AnimatedValue(0),\n multiply: (a, b) => new AnimatedValue(0),\n divide: (a, b) => new AnimatedValue(0),\n modulo: (a, b) => new AnimatedValue(0),\n diffClamp: (a, min, max) => new AnimatedValue(0),\n delay: () => noopAnim,\n createAnimatedComponent: (c) => c\n};\nconst Easing = {\n step0: () => 0,\n step1: () => 1,\n linear: (t) => t,\n ease: (t) => t,\n quad: (t) => t * t,\n cubic: (t) => t * t * t,\n poly: () => (t) => t,\n sin: (t) => t,\n circle: (t) => t,\n exp: (t) => t,\n elastic: () => (t) => t,\n back: () => (t) => t,\n bounce: (t) => t,\n bezier: () => (t) => t,\n in: (fn) => fn,\n out: (fn) => fn,\n inOut: (fn) => fn\n};\nconst findNodeHandle = (component) => {\n throw new Error(\"not supported - use ref instead\");\n};\nconst RootTagContext = createContext(null);\nexport {\n AccessibilityInfo,\n AccessibilityUtil,\n ActivityIndicator,\n Alert,\n Animated,\n AppRegistry,\n AppState,\n Appearance,\n BackHandler,\n Clipboard,\n DeviceEmitter,\n DeviceEmitter2 as DeviceEventEmitter,\n DeviceInfo,\n Dimensions,\n UnimplementedView as DrawerLayoutAndroid,\n Easing,\n UnimplementedView4 as FlatList,\n I18nManager,\n Image,\n ImageBackground,\n ImageLoader,\n InteractionManager,\n Keyboard,\n KeyboardAvoidingView,\n Linking,\n LocaleProvider,\n LogBox,\n Modal,\n default2 as NativeEventEmitter,\n NativeModules,\n PanResponder,\n PixelRatio,\n Platform,\n Pressable,\n RefreshControl,\n RootTagContext,\n SafeAreaView,\n ScrollView,\n UnimplementedView7 as SectionList,\n Share,\n StatusBar,\n StyleSheet,\n UnimplementedView2 as Switch,\n Text,\n TextAncestorContext,\n TextInput,\n TouchableOpacity as Touchable,\n UnimplementedView5 as TouchableHighlight,\n UnimplementedView6 as TouchableNativeFeedback,\n TouchableOpacity2 as TouchableOpacity,\n TouchableWithoutFeedback,\n TurboModuleRegistry,\n UIManager,\n Vibration,\n View,\n UnimplementedView3 as VirtualizedList,\n canUseDOM,\n clickProps,\n createDOMProps,\n dismissKeyboard,\n findNodeHandle,\n flattenStyle,\n isWebColor,\n mergeRefs,\n normalizeColor,\n processColor,\n processStyle,\n render,\n requireNativeComponent,\n unstable_batchedUpdates,\n createElement as unstable_createElement,\n useColorScheme,\n useEvent,\n useHover,\n useLayoutEffect,\n useLocaleContext,\n useMergeRefs,\n usePlatformMethods,\n useWindowDimensions\n};\n//# sourceMappingURL=without-animated.js.map\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiFA,SAAS,uBAAuB,MAAM;CACpC,O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,cAAc,CAAC;CACrC,YAAY,GAAG,KAAK,QAAQ,IAAI,cAAc,CAAC;CAC/C,aAAa;CACb,0BAA0B,MAAM;AAClC;AACA,MAAM,SAAS;CACb,aAAa;CACb,aAAa;CACb,SAAS,MAAM;CACf,OAAO,MAAM;CACb,OAAO,MAAM,IAAI;CACjB,QAAQ,MAAM,IAAI,IAAI;CACtB,aAAa,MAAM;CACnB,MAAM,MAAM;CACZ,SAAS,MAAM;CACf,MAAM,MAAM;CACZ,gBAAgB,MAAM;CACtB,aAAa,MAAM;CACnB,SAAS,MAAM;CACf,eAAe,MAAM;CACrB,KAAK,OAAO;CACZ,MAAM,OAAO;CACb,QAAQ,OAAO;AACjB;AACA,MAAM,kBAAkB,cAAc;CACpC,MAAM,IAAI,MAAM,iCAAiC;AACnD;AACA,MAAM,iBAAiB,cAAc,IAAI"}
1
+ {"version":3,"file":"without-animated.js","names":["_View","_Text","_Image","_ScrollView"],"sources":["esm/without-animated.js"],"sourcesContent":["import { createContext } from \"react\";\nimport { createElement } from \"./createElement/index\";\nimport {\n AccessibilityUtil,\n canUseDOM,\n clickProps,\n createDOMProps,\n dismissKeyboard,\n flattenStyle,\n ImageLoader,\n InteractionManager,\n isWebColor,\n LocaleProvider,\n mergeRefs,\n normalizeColor,\n Platform,\n processColor,\n processStyle,\n StyleSheet,\n TextAncestorContext,\n UIManager,\n useEvent,\n useHover,\n useLayoutEffect,\n useMergeRefs,\n usePlatformMethods\n} from \"@tamagui/react-native-web-internals\";\nimport { render } from \"./render/index\";\nimport { NativeModules } from \"./NativeModules/index\";\nimport { default as default2 } from \"./vendor/react-native/EventEmitter/NativeEventEmitter\";\nimport * as TurboModuleRegistry from \"./vendor/react-native/TurboModule/TurboModuleRegistry\";\nimport { AccessibilityInfo } from \"./AccessibilityInfo/index\";\nimport { Alert } from \"./Alert/index\";\nimport { Appearance } from \"./Appearance/index\";\nimport { AppRegistry } from \"./AppRegistry/index\";\nimport { AppState } from \"./AppState/index\";\nimport { BackHandler } from \"./BackHandler/index\";\nimport { Clipboard } from \"./Clipboard/index\";\nimport { DeviceInfo } from \"./DeviceInfo/index\";\nimport { DeviceEmitter } from \"./DeviceEmitter\";\nimport { DeviceEmitter as DeviceEmitter2 } from \"./DeviceEmitter\";\nimport { Dimensions } from \"./Dimensions/index\";\nimport { I18nManager } from \"./I18nManager/index\";\nimport { Keyboard } from \"./Keyboard/index\";\nimport { Linking } from \"./Linking/index\";\nimport { PanResponder } from \"./PanResponder/index\";\nimport { PixelRatio } from \"./PixelRatio/index\";\nimport { Share } from \"./Share/index\";\nimport { Vibration } from \"./Vibration/index\";\nimport { UnimplementedView } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView2 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView3 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView4 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView5 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView6 } from \"./UnimplementedView\";\nimport { UnimplementedView as UnimplementedView7 } from \"./UnimplementedView\";\nimport { TouchableOpacity, TouchableOpacity as TouchableOpacity2 } from \"./TouchableOpacity\";\nimport { TouchableWithoutFeedback } from \"./TouchableWithoutFeedback\";\nimport { ActivityIndicator } from \"./ActivityIndicator/index\";\nimport { Image } from \"./Image/index\";\nimport { ImageBackground } from \"./ImageBackground/index\";\nimport { KeyboardAvoidingView } from \"./KeyboardAvoidingView/index\";\nimport { Modal } from \"./Modal/index\";\nimport { Pressable } from \"./Pressable/index\";\nimport { RefreshControl } from \"./RefreshControl/index\";\nimport { SafeAreaView } from \"./SafeAreaView/index\";\nimport { ScrollView } from \"./ScrollView/index\";\nimport { StatusBar } from \"./StatusBar/index\";\nimport { Text } from \"./Text/index\";\nimport { TextInput } from \"./TextInput/index\";\nimport { View } from \"./View/index\";\nimport { LogBox } from \"./LogBox/index\";\nimport { useColorScheme } from \"./useColorScheme/index\";\nimport { useLocaleContext } from \"./useLocaleContext/index\";\nimport { useWindowDimensions } from \"./useWindowDimensions/index\";\nexport * from \"@tamagui/react-native-web-internals\";\nimport { View as _View } from \"./View/index\";\nimport { Text as _Text } from \"./Text/index\";\nimport { Image as _Image } from \"./Image/index\";\nimport { ScrollView as _ScrollView } from \"./ScrollView/index\";\nimport { unstable_batchedUpdates } from \"react-dom\";\nfunction requireNativeComponent(name) {\n return function FakeComponent() {\n return null;\n };\n}\nclass AnimatedValue {\n _value;\n _offset;\n _listeners;\n _nextId;\n constructor(value = 0) {\n this._value = value;\n this._offset = 0;\n this._listeners = {};\n this._nextId = 0;\n }\n setValue(value) {\n this._value = value;\n this._notifyListeners();\n }\n setOffset(offset) {\n this._offset = offset;\n }\n flattenOffset() {\n this._value += this._offset;\n this._offset = 0;\n }\n extractOffset() {\n this._offset = this._value;\n this._value = 0;\n }\n addListener(callback) {\n const id = String(this._nextId++);\n this._listeners[id] = callback;\n return id;\n }\n removeListener(id) {\n delete this._listeners[id];\n }\n removeAllListeners() {\n this._listeners = {};\n }\n stopAnimation(callback) {\n callback?.(this._value);\n }\n resetAnimation(callback) {\n callback?.(this._value);\n }\n interpolate(config) {\n return new AnimatedValue(this._value);\n }\n _notifyListeners() {\n for (const key in this._listeners) {\n this._listeners[key]({ value: this._value });\n }\n }\n __getValue() {\n return this._value + this._offset;\n }\n}\nclass AnimatedValueXY {\n x;\n y;\n constructor(value) {\n this.x = new AnimatedValue(value?.x ?? 0);\n this.y = new AnimatedValue(value?.y ?? 0);\n }\n setValue(value) {\n this.x.setValue(value.x);\n this.y.setValue(value.y);\n }\n setOffset(offset) {\n this.x.setOffset(offset.x);\n this.y.setOffset(offset.y);\n }\n flattenOffset() {\n this.x.flattenOffset();\n this.y.flattenOffset();\n }\n stopAnimation(callback) {\n callback?.({ x: this.x._value, y: this.y._value });\n }\n addListener(callback) {\n const xId = this.x.addListener(() => {\n callback({ x: this.x._value, y: this.y._value });\n });\n this.y.addListener(() => {\n callback({ x: this.x._value, y: this.y._value });\n });\n return xId;\n }\n removeAllListeners() {\n this.x.removeAllListeners();\n this.y.removeAllListeners();\n }\n getLayout() {\n return { left: this.x, top: this.y };\n }\n getTranslateTransform() {\n return [{ translateX: this.x }, { translateY: this.y }];\n }\n}\nconst noopAnim = {\n start: (cb) => cb?.({ finished: true }),\n stop: () => {\n },\n reset: () => {\n }\n};\nconst Animated = {\n View: _View,\n Text: _Text,\n Image: _Image,\n ScrollView: _ScrollView,\n FlatList: _View,\n SectionList: _View,\n Value: AnimatedValue,\n ValueXY: AnimatedValueXY,\n timing: () => noopAnim,\n spring: () => noopAnim,\n decay: () => noopAnim,\n sequence: () => noopAnim,\n parallel: () => noopAnim,\n stagger: () => noopAnim,\n loop: () => noopAnim,\n event: () => () => {\n },\n add: (a, b) => new AnimatedValue(0),\n subtract: (a, b) => new AnimatedValue(0),\n multiply: (a, b) => new AnimatedValue(0),\n divide: (a, b) => new AnimatedValue(0),\n modulo: (a, b) => new AnimatedValue(0),\n diffClamp: (a, min, max) => new AnimatedValue(0),\n delay: () => noopAnim,\n createAnimatedComponent: (c) => c\n};\nconst Easing = {\n step0: () => 0,\n step1: () => 1,\n linear: (t) => t,\n ease: (t) => t,\n quad: (t) => t * t,\n cubic: (t) => t * t * t,\n poly: () => (t) => t,\n sin: (t) => t,\n circle: (t) => t,\n exp: (t) => t,\n elastic: () => (t) => t,\n back: () => (t) => t,\n bounce: (t) => t,\n bezier: () => (t) => t,\n in: (fn) => fn,\n out: (fn) => fn,\n inOut: (fn) => fn\n};\nconst findNodeHandle = (component) => {\n throw new Error(\"not supported - use ref instead\");\n};\nconst RootTagContext = createContext(null);\nexport {\n AccessibilityInfo,\n AccessibilityUtil,\n ActivityIndicator,\n Alert,\n Animated,\n AppRegistry,\n AppState,\n Appearance,\n BackHandler,\n Clipboard,\n DeviceEmitter,\n DeviceEmitter2 as DeviceEventEmitter,\n DeviceInfo,\n Dimensions,\n UnimplementedView as DrawerLayoutAndroid,\n Easing,\n UnimplementedView4 as FlatList,\n I18nManager,\n Image,\n ImageBackground,\n ImageLoader,\n InteractionManager,\n Keyboard,\n KeyboardAvoidingView,\n Linking,\n LocaleProvider,\n LogBox,\n Modal,\n default2 as NativeEventEmitter,\n NativeModules,\n PanResponder,\n PixelRatio,\n Platform,\n Pressable,\n RefreshControl,\n RootTagContext,\n SafeAreaView,\n ScrollView,\n UnimplementedView7 as SectionList,\n Share,\n StatusBar,\n StyleSheet,\n UnimplementedView2 as Switch,\n Text,\n TextAncestorContext,\n TextInput,\n TouchableOpacity as Touchable,\n UnimplementedView5 as TouchableHighlight,\n UnimplementedView6 as TouchableNativeFeedback,\n TouchableOpacity2 as TouchableOpacity,\n TouchableWithoutFeedback,\n TurboModuleRegistry,\n UIManager,\n Vibration,\n View,\n UnimplementedView3 as VirtualizedList,\n canUseDOM,\n clickProps,\n createDOMProps,\n dismissKeyboard,\n findNodeHandle,\n flattenStyle,\n isWebColor,\n mergeRefs,\n normalizeColor,\n processColor,\n processStyle,\n render,\n requireNativeComponent,\n unstable_batchedUpdates,\n createElement as unstable_createElement,\n useColorScheme,\n useEvent,\n useHover,\n useLayoutEffect,\n useLocaleContext,\n useMergeRefs,\n usePlatformMethods,\n useWindowDimensions\n};\n//# sourceMappingURL=without-animated.js.map\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiFA,SAAS,uBAAuB,MAAM;CACpC,OAAO,SAAS,gBAAgB;EAC9B,OAAO;CACT;AACF;AACA,IAAM,gBAAN,MAAM,cAAc;CAClB;CACA;CACA;CACA;CACA,YAAY,QAAQ,GAAG;EACrB,KAAK,SAAS;EACd,KAAK,UAAU;EACf,KAAK,aAAa,CAAC;EACnB,KAAK,UAAU;CACjB;CACA,SAAS,OAAO;EACd,KAAK,SAAS;EACd,KAAK,iBAAiB;CACxB;CACA,UAAU,QAAQ;EAChB,KAAK,UAAU;CACjB;CACA,gBAAgB;EACd,KAAK,UAAU,KAAK;EACpB,KAAK,UAAU;CACjB;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;CACf,eAAe,MAAM;CACrB,KAAK,OAAO;CACZ,MAAM,OAAO;CACb,QAAQ,OAAO;AACjB;AACA,MAAM,kBAAkB,cAAc;CACpC,MAAM,IAAI,MAAM,iCAAiC;AACnD;AACA,MAAM,iBAAiB,cAAc,IAAI"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/react-native-web-lite",
3
- "version": "3.0.0-beta.669.1",
3
+ "version": "3.0.0-beta.719.1",
4
4
  "description": "React Native for Web",
5
5
  "keywords": [
6
6
  "react",
@@ -102,18 +102,18 @@
102
102
  "clean:build": "tamagui-build clean:build"
103
103
  },
104
104
  "dependencies": {
105
- "@tamagui/normalize-css-color": "3.0.0-beta.669.1",
106
- "@tamagui/react-native-use-pressable": "3.0.0-beta.669.1",
107
- "@tamagui/react-native-use-responder-events": "3.0.0-beta.669.1",
108
- "@tamagui/react-native-web-internals": "3.0.0-beta.669.1",
109
- "@tamagui/web": "3.0.0-beta.669.1",
105
+ "@tamagui/normalize-css-color": "3.0.0-beta.719.1",
106
+ "@tamagui/react-native-use-pressable": "3.0.0-beta.719.1",
107
+ "@tamagui/react-native-use-responder-events": "3.0.0-beta.719.1",
108
+ "@tamagui/react-native-web-internals": "3.0.0-beta.719.1",
109
+ "@tamagui/web": "3.0.0-beta.719.1",
110
110
  "invariant": "^2.2.4",
111
111
  "memoize-one": "^6.0.0"
112
112
  },
113
113
  "devDependencies": {
114
- "@tamagui/build": "3.0.0-beta.669.1",
115
- "react": ">=19",
116
- "react-dom": "*"
114
+ "@tamagui/build": "3.0.0-beta.719.1",
115
+ "react": "19.2.3",
116
+ "react-dom": "19.2.3"
117
117
  },
118
118
  "peerDependencies": {
119
119
  "react": ">=19",