@tamagui/react-native-web-lite 1.116.2 → 1.116.3

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 (202) hide show
  1. package/dist/cjs/Batchinator/index.cjs +68 -0
  2. package/dist/cjs/Batchinator/index.js +57 -0
  3. package/dist/cjs/Batchinator/index.js.map +6 -0
  4. package/dist/cjs/Batchinator/index.native.js +92 -0
  5. package/dist/cjs/Batchinator/index.native.js.map +6 -0
  6. package/dist/cjs/FlatList.cjs +196 -0
  7. package/dist/cjs/FlatList.js +193 -0
  8. package/dist/cjs/FlatList.js.map +6 -0
  9. package/dist/cjs/FlatList.native.js +256 -0
  10. package/dist/cjs/FlatList.native.js.map +6 -0
  11. package/dist/cjs/InteractionManager/TaskQueue.cjs +88 -0
  12. package/dist/cjs/InteractionManager/TaskQueue.js +76 -0
  13. package/dist/cjs/InteractionManager/TaskQueue.js.map +6 -0
  14. package/dist/cjs/InteractionManager/TaskQueue.native.js +134 -0
  15. package/dist/cjs/InteractionManager/TaskQueue.native.js.map +6 -0
  16. package/dist/cjs/InteractionManager/index.cjs +114 -0
  17. package/dist/cjs/InteractionManager/index.js +95 -0
  18. package/dist/cjs/InteractionManager/index.js.map +6 -0
  19. package/dist/cjs/InteractionManager/index.native.js +99 -0
  20. package/dist/cjs/InteractionManager/index.native.js.map +6 -0
  21. package/dist/cjs/index.cjs +7 -7
  22. package/dist/cjs/index.js +6 -6
  23. package/dist/cjs/index.js.map +1 -1
  24. package/dist/cjs/index.native.js +6 -6
  25. package/dist/cjs/index.native.js.map +1 -1
  26. package/dist/cjs/vendor/react-native/FillRateHelper/index.cjs +138 -0
  27. package/dist/cjs/vendor/react-native/FillRateHelper/index.js +124 -0
  28. package/dist/cjs/vendor/react-native/FillRateHelper/index.js.map +6 -0
  29. package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js +158 -0
  30. package/dist/cjs/vendor/react-native/FillRateHelper/index.native.js.map +6 -0
  31. package/dist/cjs/vendor/react-native/Utilities/clamp.cjs +29 -0
  32. package/dist/cjs/vendor/react-native/Utilities/clamp.js +24 -0
  33. package/dist/cjs/vendor/react-native/Utilities/clamp.js.map +6 -0
  34. package/dist/cjs/vendor/react-native/Utilities/clamp.native.js +25 -0
  35. package/dist/cjs/vendor/react-native/Utilities/clamp.native.js.map +6 -0
  36. package/dist/cjs/vendor/react-native/ViewabilityHelper.cjs +133 -0
  37. package/dist/cjs/vendor/react-native/ViewabilityHelper.js +144 -0
  38. package/dist/cjs/vendor/react-native/ViewabilityHelper.js.map +6 -0
  39. package/dist/cjs/vendor/react-native/ViewabilityHelper.native.js +199 -0
  40. package/dist/cjs/vendor/react-native/ViewabilityHelper.native.js.map +6 -0
  41. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.cjs +106 -0
  42. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js +86 -0
  43. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.js.map +6 -0
  44. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.native.js +95 -0
  45. package/dist/cjs/vendor/react-native/VirtualizeUtils/index.native.js.map +6 -0
  46. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.cjs +81 -0
  47. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js +84 -0
  48. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.js.map +6 -0
  49. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js +125 -0
  50. package/dist/cjs/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +6 -0
  51. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.cjs +56 -0
  52. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js +59 -0
  53. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.js.map +6 -0
  54. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.native.js +153 -0
  55. package/dist/cjs/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +6 -0
  56. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.cjs +80 -0
  57. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js +74 -0
  58. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +6 -0
  59. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +163 -0
  60. package/dist/cjs/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +6 -0
  61. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.cjs +164 -0
  62. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +149 -0
  63. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +6 -0
  64. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +245 -0
  65. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +6 -0
  66. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.cjs +84 -0
  67. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js +72 -0
  68. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +6 -0
  69. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +85 -0
  70. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +6 -0
  71. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.cjs +16 -0
  72. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js +14 -0
  73. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +6 -0
  74. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +15 -0
  75. package/dist/cjs/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +6 -0
  76. package/dist/cjs/vendor/react-native/VirtualizedList/index.cjs +1003 -0
  77. package/dist/cjs/vendor/react-native/VirtualizedList/index.js +1021 -0
  78. package/dist/cjs/vendor/react-native/VirtualizedList/index.js.map +6 -0
  79. package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js +1075 -0
  80. package/dist/cjs/vendor/react-native/VirtualizedList/index.native.js.map +6 -0
  81. package/dist/cjs/vendor/react-native/deepDiffer/index.cjs +41 -0
  82. package/dist/cjs/vendor/react-native/deepDiffer/index.js +47 -0
  83. package/dist/cjs/vendor/react-native/deepDiffer/index.js.map +6 -0
  84. package/dist/cjs/vendor/react-native/deepDiffer/index.native.js +48 -0
  85. package/dist/cjs/vendor/react-native/deepDiffer/index.native.js.map +6 -0
  86. package/dist/esm/Batchinator/index.js +33 -0
  87. package/dist/esm/Batchinator/index.js.map +6 -0
  88. package/dist/esm/Batchinator/index.mjs +34 -0
  89. package/dist/esm/Batchinator/index.mjs.map +1 -0
  90. package/dist/esm/Batchinator/index.native.js +67 -0
  91. package/dist/esm/Batchinator/index.native.js.map +6 -0
  92. package/dist/esm/FlatList.js +176 -0
  93. package/dist/esm/FlatList.js.map +6 -0
  94. package/dist/esm/FlatList.mjs +162 -0
  95. package/dist/esm/FlatList.mjs.map +1 -0
  96. package/dist/esm/FlatList.native.js +238 -0
  97. package/dist/esm/FlatList.native.js.map +6 -0
  98. package/dist/esm/InteractionManager/TaskQueue.js +60 -0
  99. package/dist/esm/InteractionManager/TaskQueue.js.map +6 -0
  100. package/dist/esm/InteractionManager/TaskQueue.mjs +65 -0
  101. package/dist/esm/InteractionManager/TaskQueue.mjs.map +1 -0
  102. package/dist/esm/InteractionManager/TaskQueue.native.js +117 -0
  103. package/dist/esm/InteractionManager/TaskQueue.native.js.map +6 -0
  104. package/dist/esm/InteractionManager/index.js +73 -0
  105. package/dist/esm/InteractionManager/index.js.map +6 -0
  106. package/dist/esm/InteractionManager/index.mjs +80 -0
  107. package/dist/esm/InteractionManager/index.mjs.map +1 -0
  108. package/dist/esm/InteractionManager/index.native.js +77 -0
  109. package/dist/esm/InteractionManager/index.native.js.map +6 -0
  110. package/dist/esm/index.js +2 -2
  111. package/dist/esm/index.mjs +2 -2
  112. package/dist/esm/index.native.js +2 -2
  113. package/dist/esm/vendor/react-native/FillRateHelper/index.js +108 -0
  114. package/dist/esm/vendor/react-native/FillRateHelper/index.js.map +6 -0
  115. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs +115 -0
  116. package/dist/esm/vendor/react-native/FillRateHelper/index.mjs.map +1 -0
  117. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js +141 -0
  118. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js.map +6 -0
  119. package/dist/esm/vendor/react-native/Utilities/clamp.js +8 -0
  120. package/dist/esm/vendor/react-native/Utilities/clamp.js.map +6 -0
  121. package/dist/esm/vendor/react-native/Utilities/clamp.mjs +6 -0
  122. package/dist/esm/vendor/react-native/Utilities/clamp.mjs.map +1 -0
  123. package/dist/esm/vendor/react-native/Utilities/clamp.native.js +8 -0
  124. package/dist/esm/vendor/react-native/Utilities/clamp.native.js.map +6 -0
  125. package/dist/esm/vendor/react-native/ViewabilityHelper.js +128 -0
  126. package/dist/esm/vendor/react-native/ViewabilityHelper.js.map +6 -0
  127. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs +110 -0
  128. package/dist/esm/vendor/react-native/ViewabilityHelper.mjs.map +1 -0
  129. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js +182 -0
  130. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js.map +6 -0
  131. package/dist/esm/vendor/react-native/VirtualizeUtils/index.js +70 -0
  132. package/dist/esm/vendor/react-native/VirtualizeUtils/index.js.map +6 -0
  133. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs +80 -0
  134. package/dist/esm/vendor/react-native/VirtualizeUtils/index.mjs.map +1 -0
  135. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js +71 -0
  136. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js.map +6 -0
  137. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js +68 -0
  138. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.js.map +6 -0
  139. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs +58 -0
  140. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.mjs.map +1 -0
  141. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js +104 -0
  142. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +6 -0
  143. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js +43 -0
  144. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.js.map +6 -0
  145. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs +33 -0
  146. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.mjs.map +1 -0
  147. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js +136 -0
  148. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +6 -0
  149. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js +51 -0
  150. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.js.map +6 -0
  151. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs +46 -0
  152. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.mjs.map +1 -0
  153. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +139 -0
  154. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +6 -0
  155. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js +132 -0
  156. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.js.map +6 -0
  157. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs +130 -0
  158. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.mjs.map +1 -0
  159. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +224 -0
  160. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +6 -0
  161. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js +50 -0
  162. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.js.map +6 -0
  163. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs +47 -0
  164. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.mjs.map +1 -0
  165. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +56 -0
  166. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +6 -0
  167. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js +1 -0
  168. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.js.map +6 -0
  169. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs +2 -0
  170. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.mjs.map +1 -0
  171. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +1 -0
  172. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +6 -0
  173. package/dist/esm/vendor/react-native/VirtualizedList/index.js +1016 -0
  174. package/dist/esm/vendor/react-native/VirtualizedList/index.js.map +6 -0
  175. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs +969 -0
  176. package/dist/esm/vendor/react-native/VirtualizedList/index.mjs.map +1 -0
  177. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js +1065 -0
  178. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js.map +6 -0
  179. package/dist/esm/vendor/react-native/deepDiffer/index.js +31 -0
  180. package/dist/esm/vendor/react-native/deepDiffer/index.js.map +6 -0
  181. package/dist/esm/vendor/react-native/deepDiffer/index.mjs +18 -0
  182. package/dist/esm/vendor/react-native/deepDiffer/index.mjs.map +1 -0
  183. package/dist/esm/vendor/react-native/deepDiffer/index.native.js +31 -0
  184. package/dist/esm/vendor/react-native/deepDiffer/index.native.js.map +6 -0
  185. package/package.json +6 -6
  186. package/src/Batchinator/index.tsx +78 -0
  187. package/src/FlatList.tsx +330 -0
  188. package/src/InteractionManager/TaskQueue.tsx +114 -0
  189. package/src/InteractionManager/index.tsx +139 -0
  190. package/src/index.tsx +2 -2
  191. package/src/vendor/react-native/FillRateHelper/index.tsx +218 -0
  192. package/src/vendor/react-native/Utilities/clamp.ts +21 -0
  193. package/src/vendor/react-native/ViewabilityHelper.ts +291 -0
  194. package/src/vendor/react-native/VirtualizeUtils/index.tsx +212 -0
  195. package/src/vendor/react-native/VirtualizedList/CellRenderMask.ts +147 -0
  196. package/src/vendor/react-native/VirtualizedList/ChildListCollection.tsx +73 -0
  197. package/src/vendor/react-native/VirtualizedList/StateSafePureComponent.tsx +79 -0
  198. package/src/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.tsx +210 -0
  199. package/src/vendor/react-native/VirtualizedList/VirtualizedListContext.tsx +116 -0
  200. package/src/vendor/react-native/VirtualizedList/VirtualizedListProps.ts +130 -0
  201. package/src/vendor/react-native/VirtualizedList/index.tsx +1797 -0
  202. package/src/vendor/react-native/deepDiffer/index.tsx +56 -0
@@ -0,0 +1,153 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var ChildListCollection_exports = {};
17
+ __export(ChildListCollection_exports, {
18
+ default: () => ChildListCollection
19
+ });
20
+ module.exports = __toCommonJS(ChildListCollection_exports);
21
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals");
22
+ function _class_call_check(instance, Constructor) {
23
+ if (!(instance instanceof Constructor))
24
+ throw new TypeError("Cannot call a class as a function");
25
+ }
26
+ function _defineProperties(target, props) {
27
+ for (var i = 0; i < props.length; i++) {
28
+ var descriptor = props[i];
29
+ descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
30
+ }
31
+ }
32
+ function _create_class(Constructor, protoProps, staticProps) {
33
+ return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
34
+ }
35
+ function _define_property(obj, key, value) {
36
+ return key in obj ? Object.defineProperty(obj, key, {
37
+ value,
38
+ enumerable: !0,
39
+ configurable: !0,
40
+ writable: !0
41
+ }) : obj[key] = value, obj;
42
+ }
43
+ var ChildListCollection = /* @__PURE__ */ function() {
44
+ "use strict";
45
+ function ChildListCollection2() {
46
+ _class_call_check(this, ChildListCollection2), _define_property(this, "_cellKeyToChildren", /* @__PURE__ */ new Map()), _define_property(this, "_childrenToCellKey", /* @__PURE__ */ new Map());
47
+ }
48
+ return _create_class(ChildListCollection2, [
49
+ {
50
+ key: "add",
51
+ value: function(list, cellKey) {
52
+ (0, import_react_native_web_internals.invariant)(!this._childrenToCellKey.has(list), "Trying to add already present child list");
53
+ var _this__cellKeyToChildren_get, cellLists = (_this__cellKeyToChildren_get = this._cellKeyToChildren.get(cellKey)) !== null && _this__cellKeyToChildren_get !== void 0 ? _this__cellKeyToChildren_get : /* @__PURE__ */ new Set();
54
+ cellLists.add(list), this._cellKeyToChildren.set(cellKey, cellLists), this._childrenToCellKey.set(list, cellKey);
55
+ }
56
+ },
57
+ {
58
+ key: "remove",
59
+ value: function(list) {
60
+ var cellKey = this._childrenToCellKey.get(list);
61
+ (0, import_react_native_web_internals.invariant)(cellKey != null, "Trying to remove non-present child list"), this._childrenToCellKey.delete(list);
62
+ var cellLists = this._cellKeyToChildren.get(cellKey);
63
+ (0, import_react_native_web_internals.invariant)(cellLists, "_cellKeyToChildren should contain cellKey"), cellLists.delete(list), cellLists.size === 0 && this._cellKeyToChildren.delete(cellKey);
64
+ }
65
+ },
66
+ {
67
+ key: "forEach",
68
+ value: function(fn) {
69
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
70
+ try {
71
+ for (var _iterator = this._cellKeyToChildren.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
72
+ var listSet = _step.value, _iteratorNormalCompletion1 = !0, _didIteratorError1 = !1, _iteratorError1 = void 0;
73
+ try {
74
+ for (var _iterator1 = listSet[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = !0) {
75
+ var list = _step1.value;
76
+ fn(list);
77
+ }
78
+ } catch (err) {
79
+ _didIteratorError1 = !0, _iteratorError1 = err;
80
+ } finally {
81
+ try {
82
+ !_iteratorNormalCompletion1 && _iterator1.return != null && _iterator1.return();
83
+ } finally {
84
+ if (_didIteratorError1)
85
+ throw _iteratorError1;
86
+ }
87
+ }
88
+ }
89
+ } catch (err) {
90
+ _didIteratorError = !0, _iteratorError = err;
91
+ } finally {
92
+ try {
93
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
94
+ } finally {
95
+ if (_didIteratorError)
96
+ throw _iteratorError;
97
+ }
98
+ }
99
+ }
100
+ },
101
+ {
102
+ key: "forEachInCell",
103
+ value: function(cellKey, fn) {
104
+ var _this__cellKeyToChildren_get, listSet = (_this__cellKeyToChildren_get = this._cellKeyToChildren.get(cellKey)) !== null && _this__cellKeyToChildren_get !== void 0 ? _this__cellKeyToChildren_get : [], _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
105
+ try {
106
+ for (var _iterator = listSet[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
107
+ var list = _step.value;
108
+ fn(list);
109
+ }
110
+ } catch (err) {
111
+ _didIteratorError = !0, _iteratorError = err;
112
+ } finally {
113
+ try {
114
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
115
+ } finally {
116
+ if (_didIteratorError)
117
+ throw _iteratorError;
118
+ }
119
+ }
120
+ }
121
+ },
122
+ {
123
+ key: "anyInCell",
124
+ value: function(cellKey, fn) {
125
+ var _this__cellKeyToChildren_get, listSet = (_this__cellKeyToChildren_get = this._cellKeyToChildren.get(cellKey)) !== null && _this__cellKeyToChildren_get !== void 0 ? _this__cellKeyToChildren_get : [], _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
126
+ try {
127
+ for (var _iterator = listSet[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
128
+ var list = _step.value;
129
+ if (fn(list))
130
+ return !0;
131
+ }
132
+ } catch (err) {
133
+ _didIteratorError = !0, _iteratorError = err;
134
+ } finally {
135
+ try {
136
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
137
+ } finally {
138
+ if (_didIteratorError)
139
+ throw _iteratorError;
140
+ }
141
+ }
142
+ return !1;
143
+ }
144
+ },
145
+ {
146
+ key: "size",
147
+ value: function() {
148
+ return this._childrenToCellKey.size;
149
+ }
150
+ }
151
+ ]), ChildListCollection2;
152
+ }();
153
+ //# sourceMappingURL=ChildListCollection.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/VirtualizedList/ChildListCollection.tsx"],
4
+ "mappings": "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",
5
+ "names": ["ChildListCollection", "_cellKeyToChildren", "Map", "_childrenToCellKey", "add", "list", "cellKey", "invariant", "has", "cellLists", "get", "Set", "set", "remove", "delete", "size", "forEach", "fn", "values", "listSet", "forEachInCell", "anyInCell"]
6
+ }
@@ -0,0 +1,80 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var StateSafePureComponent_exports = {};
33
+ __export(StateSafePureComponent_exports, {
34
+ default: () => StateSafePureComponent
35
+ });
36
+ module.exports = __toCommonJS(StateSafePureComponent_exports);
37
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
38
+ import_react = __toESM(require("react"));
39
+ class StateSafePureComponent extends import_react.default.PureComponent {
40
+ _inAsyncStateUpdate = !1;
41
+ constructor(props) {
42
+ super(props), this._installSetStateHooks();
43
+ }
44
+ setState(partialState, callback) {
45
+ typeof partialState == "function" ? super.setState((state, props) => {
46
+ this._inAsyncStateUpdate = !0;
47
+ let ret;
48
+ try {
49
+ ret = partialState(state, props);
50
+ } catch (err) {
51
+ throw err;
52
+ } finally {
53
+ this._inAsyncStateUpdate = !1;
54
+ }
55
+ return ret;
56
+ }, callback) : super.setState(partialState, callback);
57
+ }
58
+ _installSetStateHooks() {
59
+ const that = this;
60
+ let {
61
+ props,
62
+ state
63
+ } = this;
64
+ Object.defineProperty(this, "props", {
65
+ get() {
66
+ return (0, import_react_native_web_internals.invariant)(!that._inAsyncStateUpdate, '"this.props" should not be accessed during state updates'), props;
67
+ },
68
+ set(newProps) {
69
+ props = newProps;
70
+ }
71
+ }), Object.defineProperty(this, "state", {
72
+ get() {
73
+ return (0, import_react_native_web_internals.invariant)(!that._inAsyncStateUpdate, '"this.state" should not be accessed during state updates'), state;
74
+ },
75
+ set(newState) {
76
+ state = newState;
77
+ }
78
+ });
79
+ }
80
+ }
@@ -0,0 +1,74 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var StateSafePureComponent_exports = {};
24
+ __export(StateSafePureComponent_exports, {
25
+ default: () => StateSafePureComponent
26
+ });
27
+ module.exports = __toCommonJS(StateSafePureComponent_exports);
28
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_react = __toESM(require("react"));
29
+ class StateSafePureComponent extends import_react.default.PureComponent {
30
+ _inAsyncStateUpdate = !1;
31
+ constructor(props) {
32
+ super(props), this._installSetStateHooks();
33
+ }
34
+ setState(partialState, callback) {
35
+ typeof partialState == "function" ? super.setState((state, props) => {
36
+ this._inAsyncStateUpdate = !0;
37
+ let ret;
38
+ try {
39
+ ret = partialState(state, props);
40
+ } catch (err) {
41
+ throw err;
42
+ } finally {
43
+ this._inAsyncStateUpdate = !1;
44
+ }
45
+ return ret;
46
+ }, callback) : super.setState(partialState, callback);
47
+ }
48
+ _installSetStateHooks() {
49
+ const that = this;
50
+ let { props, state } = this;
51
+ Object.defineProperty(this, "props", {
52
+ get() {
53
+ return (0, import_react_native_web_internals.invariant)(
54
+ !that._inAsyncStateUpdate,
55
+ '"this.props" should not be accessed during state updates'
56
+ ), props;
57
+ },
58
+ set(newProps) {
59
+ props = newProps;
60
+ }
61
+ }), Object.defineProperty(this, "state", {
62
+ get() {
63
+ return (0, import_react_native_web_internals.invariant)(
64
+ !that._inAsyncStateUpdate,
65
+ '"this.state" should not be accessed during state updates'
66
+ ), state;
67
+ },
68
+ set(newState) {
69
+ state = newState;
70
+ }
71
+ });
72
+ }
73
+ }
74
+ //# sourceMappingURL=StateSafePureComponent.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/StateSafePureComponent.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,wCAA0B,gDAC1B,eAAkB;AAWlB,MAAO,+BAA2D,aAAAA,QAAM,cAGtE;AAAA,EACQ,sBAAsB;AAAA,EAE9B,YAAY,OAAc;AACxB,UAAM,KAAK,GACX,KAAK,sBAAsB;AAAA,EAC7B;AAAA,EAEA,SACE,cAIA,UACM;AACN,IAAI,OAAO,gBAAiB,aAC1B,MAAM,SAAS,CAAC,OAAO,UAAU;AAC/B,WAAK,sBAAsB;AAC3B,UAAI;AACJ,UAAI;AACF,cAAM,aAAa,OAAO,KAAK;AAAA,MACjC,SAAS,KAAK;AACZ,cAAM;AAAA,MACR,UAAE;AACA,aAAK,sBAAsB;AAAA,MAC7B;AACA,aAAO;AAAA,IACT,GAAG,QAAQ,IAEX,MAAM,SAAS,cAAc,QAAQ;AAAA,EAEzC;AAAA,EAEQ,wBAAwB;AAC9B,UAAM,OAAO;AACb,QAAI,EAAE,OAAO,MAAM,IAAI;AAEvB,WAAO,eAAe,MAAM,SAAS;AAAA,MACnC,MAAM;AACJ;AAAA,UACE,CAAC,KAAK;AAAA,UACN;AAAA,QACF,GACO;AAAA,MACT;AAAA,MACA,IAAI,UAAiB;AACnB,gBAAQ;AAAA,MACV;AAAA,IACF,CAAC,GACD,OAAO,eAAe,MAAM,SAAS;AAAA,MACnC,MAAM;AACJ;AAAA,UACE,CAAC,KAAK;AAAA,UACN;AAAA,QACF,GACO;AAAA,MACT;AAAA,MACA,IAAI,UAAiB;AACnB,gBAAQ;AAAA,MACV;AAAA,IACF,CAAC;AAAA,EACH;AACF;",
5
+ "names": ["React"]
6
+ }
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: !0 });
10
+ }, __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from == "object" || typeof from == "function")
12
+ for (let key of __getOwnPropNames(from))
13
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
+ mod
23
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
+ var StateSafePureComponent_exports = {};
25
+ __export(StateSafePureComponent_exports, {
26
+ default: () => StateSafePureComponent
27
+ });
28
+ module.exports = __toCommonJS(StateSafePureComponent_exports);
29
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals"), import_react = __toESM(require("react"));
30
+ function _assert_this_initialized(self) {
31
+ if (self === void 0)
32
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
33
+ return self;
34
+ }
35
+ function _call_super(_this, derived, args) {
36
+ return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
37
+ }
38
+ function _class_call_check(instance, Constructor) {
39
+ if (!(instance instanceof Constructor))
40
+ throw new TypeError("Cannot call a class as a function");
41
+ }
42
+ function _defineProperties(target, props) {
43
+ for (var i = 0; i < props.length; i++) {
44
+ var descriptor = props[i];
45
+ descriptor.enumerable = descriptor.enumerable || !1, descriptor.configurable = !0, "value" in descriptor && (descriptor.writable = !0), Object.defineProperty(target, descriptor.key, descriptor);
46
+ }
47
+ }
48
+ function _create_class(Constructor, protoProps, staticProps) {
49
+ return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
50
+ }
51
+ function _define_property(obj, key, value) {
52
+ return key in obj ? Object.defineProperty(obj, key, {
53
+ value,
54
+ enumerable: !0,
55
+ configurable: !0,
56
+ writable: !0
57
+ }) : obj[key] = value, obj;
58
+ }
59
+ function _get(target, property, receiver) {
60
+ return typeof Reflect < "u" && Reflect.get ? _get = Reflect.get : _get = function(target2, property2, receiver2) {
61
+ var base = _super_prop_base(target2, property2);
62
+ if (base) {
63
+ var desc = Object.getOwnPropertyDescriptor(base, property2);
64
+ return desc.get ? desc.get.call(receiver2 || target2) : desc.value;
65
+ }
66
+ }, _get(target, property, receiver || target);
67
+ }
68
+ function _get_prototype_of(o) {
69
+ return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
70
+ return o2.__proto__ || Object.getPrototypeOf(o2);
71
+ }, _get_prototype_of(o);
72
+ }
73
+ function _inherits(subClass, superClass) {
74
+ if (typeof superClass != "function" && superClass !== null)
75
+ throw new TypeError("Super expression must either be null or a function");
76
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
77
+ constructor: {
78
+ value: subClass,
79
+ writable: !0,
80
+ configurable: !0
81
+ }
82
+ }), superClass && _set_prototype_of(subClass, superClass);
83
+ }
84
+ function _possible_constructor_return(self, call) {
85
+ return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
86
+ }
87
+ function _set_prototype_of(o, p) {
88
+ return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
89
+ return o2.__proto__ = p2, o2;
90
+ }, _set_prototype_of(o, p);
91
+ }
92
+ function _super_prop_base(object, property) {
93
+ for (; !Object.prototype.hasOwnProperty.call(object, property) && (object = _get_prototype_of(object), object !== null); )
94
+ ;
95
+ return object;
96
+ }
97
+ function _type_of(obj) {
98
+ "@swc/helpers - typeof";
99
+ return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
100
+ }
101
+ function _is_native_reflect_construct() {
102
+ try {
103
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
104
+ }));
105
+ } catch {
106
+ }
107
+ return (_is_native_reflect_construct = function() {
108
+ return !!result;
109
+ })();
110
+ }
111
+ var StateSafePureComponent = /* @__PURE__ */ function(_React_PureComponent) {
112
+ "use strict";
113
+ _inherits(StateSafePureComponent2, _React_PureComponent);
114
+ function StateSafePureComponent2(props) {
115
+ _class_call_check(this, StateSafePureComponent2);
116
+ var _this;
117
+ return _this = _call_super(this, StateSafePureComponent2, [
118
+ props
119
+ ]), _define_property(_this, "_inAsyncStateUpdate", !1), _this._installSetStateHooks(), _this;
120
+ }
121
+ return _create_class(StateSafePureComponent2, [
122
+ {
123
+ key: "setState",
124
+ value: function(partialState, callback) {
125
+ var _this = this;
126
+ typeof partialState == "function" ? _get(_get_prototype_of(StateSafePureComponent2.prototype), "setState", this).call(this, function(state, props) {
127
+ _this._inAsyncStateUpdate = !0;
128
+ var ret;
129
+ try {
130
+ ret = partialState(state, props);
131
+ } catch (err) {
132
+ throw err;
133
+ } finally {
134
+ _this._inAsyncStateUpdate = !1;
135
+ }
136
+ return ret;
137
+ }, callback) : _get(_get_prototype_of(StateSafePureComponent2.prototype), "setState", this).call(this, partialState, callback);
138
+ }
139
+ },
140
+ {
141
+ key: "_installSetStateHooks",
142
+ value: function() {
143
+ var that = this, { props, state } = this;
144
+ Object.defineProperty(this, "props", {
145
+ get() {
146
+ return (0, import_react_native_web_internals.invariant)(!that._inAsyncStateUpdate, '"this.props" should not be accessed during state updates'), props;
147
+ },
148
+ set(newProps) {
149
+ props = newProps;
150
+ }
151
+ }), Object.defineProperty(this, "state", {
152
+ get() {
153
+ return (0, import_react_native_web_internals.invariant)(!that._inAsyncStateUpdate, '"this.state" should not be accessed during state updates'), state;
154
+ },
155
+ set(newState) {
156
+ state = newState;
157
+ }
158
+ });
159
+ }
160
+ }
161
+ ]), StateSafePureComponent2;
162
+ }(import_react.default.PureComponent);
163
+ //# sourceMappingURL=StateSafePureComponent.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/vendor/react-native/VirtualizedList/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/VirtualizedList/StateSafePureComponent.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AACA,wCAA0B,gDAC1B,eAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWH,IAAMA,yBAAN,yBAAA,sBAAA;;YAAMA,yBAAAA,oBAAAA;WAAAA,wBAMPC,OAAY;4BANLD,uBAAAA;;mBAOjB,YAAA,MAPiBA,yBAAAA;MAOXC;QAHR,iBAAA,OAAQC,uBAAsB,EAAA,GAI5B,MAAKC,sBAAqB;;uBARTH,yBAAAA;;MAWnBI,KAAAA;aAAAA,SACEC,cAIAC,UAAqB;;AAErB,QAAI,OAAOD,gBAAiB,aAC1B,KAAA,kBAnBeL,wBAAAA,SAAAA,GAmBTI,YAAN,IAAK,EAAA,KAAA,MAAU,SAACG,OAAON,OAAAA;AACrB,gBAAKC,sBAAsB;AAC3B,cAAIM;AACJ,cAAI;AACFA,kBAAMH,aAAaE,OAAON,KAAAA;UAC5B,SAASQ,KAAK;AACZ,kBAAMA;UACR,UAAA;AACE,kBAAKP,sBAAsB;UAC7B;AACA,iBAAOM;QACT,GAAGF,QAAAA,IAEH,KAAA,kBAhCeN,wBAAAA,SAAAA,GAgCTI,YAAN,IAAK,EAAA,KAAA,MAAUC,cAAcC,QAAAA;MAEjC;;;MAEQH,KAAAA;aAAR,WAAQA;AACN,YAAMO,OAAO,MACT,EAAET,OAAOM,MAAK,IAAK;AAEvBI,eAAOC,eAAe,MAAM,SAAS;UACnCC,MAAAA;AACEC,oEACE,CAACJ,KAAKR,qBACN,0DAAA,GAEKD;UACT;UACAc,IAAIC,UAAe;AACjBf,oBAAQe;UACV;QACF,CAAA,GACAL,OAAOC,eAAe,MAAM,SAAS;UACnCC,MAAAA;AACEC,oEACE,CAACJ,KAAKR,qBACN,0DAAA,GAEKK;UACT;UACAQ,IAAIE,UAAe;AACjBV,oBAAQU;UACV;QACF,CAAA;MACF;;MAhEmBjB;EAA6CkB,aAAAA,QAAMC,aAAa;",
5
+ "names": ["StateSafePureComponent", "props", "_inAsyncStateUpdate", "_installSetStateHooks", "setState", "partialState", "callback", "state", "ret", "err", "that", "Object", "defineProperty", "get", "invariant", "set", "newProps", "newState", "React", "PureComponent"]
6
+ }
@@ -0,0 +1,164 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var VirtualizedListCellRenderer_exports = {};
33
+ __export(VirtualizedListCellRenderer_exports, {
34
+ default: () => CellRenderer
35
+ });
36
+ module.exports = __toCommonJS(VirtualizedListCellRenderer_exports);
37
+ var import_react_native_web_internals = require("@tamagui/react-native-web-internals"),
38
+ import_react = __toESM(require("react")),
39
+ import_VirtualizedListContext = require("./VirtualizedListContext.cjs"),
40
+ import_View = __toESM(require("../../../View/index.cjs")),
41
+ import_jsx_runtime = require("react/jsx-runtime");
42
+ class CellRenderer extends import_react.default.Component {
43
+ state = {
44
+ separatorProps: {
45
+ highlighted: !1,
46
+ leadingItem: this.props.item
47
+ }
48
+ };
49
+ static getDerivedStateFromProps(props, prevState) {
50
+ return {
51
+ separatorProps: {
52
+ ...prevState.separatorProps,
53
+ leadingItem: props.item
54
+ }
55
+ };
56
+ }
57
+ _separators = {
58
+ highlight: () => {
59
+ const {
60
+ cellKey,
61
+ prevCellKey
62
+ } = this.props;
63
+ this.props.onUpdateSeparators([cellKey, prevCellKey || null], {
64
+ highlighted: !0
65
+ });
66
+ },
67
+ unhighlight: () => {
68
+ const {
69
+ cellKey,
70
+ prevCellKey
71
+ } = this.props;
72
+ this.props.onUpdateSeparators([cellKey, prevCellKey || null], {
73
+ highlighted: !1
74
+ });
75
+ },
76
+ updateProps: (select, newProps) => {
77
+ const {
78
+ cellKey,
79
+ prevCellKey
80
+ } = this.props;
81
+ this.props.onUpdateSeparators([select === "leading" ? prevCellKey || null : cellKey], newProps);
82
+ }
83
+ };
84
+ updateSeparatorProps(newProps) {
85
+ this.setState(state => ({
86
+ separatorProps: {
87
+ ...state.separatorProps,
88
+ ...newProps
89
+ }
90
+ }));
91
+ }
92
+ componentWillUnmount() {
93
+ this.props.onUnmount(this.props.cellKey);
94
+ }
95
+ _onLayout = nativeEvent => {
96
+ this.props.onCellLayout && this.props.onCellLayout(nativeEvent, this.props.cellKey, this.props.index);
97
+ };
98
+ _renderElement(renderItem, ListItemComponent, item, index) {
99
+ if (renderItem && ListItemComponent && console.warn("VirtualizedList: Both ListItemComponent and renderItem props are present. ListItemComponent will take precedence over renderItem."), ListItemComponent) return import_react.default.createElement(ListItemComponent, {
100
+ item,
101
+ index,
102
+ separators: this._separators
103
+ });
104
+ if (renderItem) return renderItem({
105
+ item,
106
+ index,
107
+ separators: this._separators
108
+ });
109
+ (0, import_react_native_web_internals.invariant)(!1, "VirtualizedList: Either ListItemComponent or renderItem props are required but none were found.");
110
+ }
111
+ render() {
112
+ const {
113
+ CellRendererComponent,
114
+ ItemSeparatorComponent,
115
+ ListItemComponent,
116
+ cellKey,
117
+ horizontal,
118
+ item,
119
+ index,
120
+ inversionStyle,
121
+ onCellFocusCapture,
122
+ onCellLayout,
123
+ renderItem
124
+ } = this.props,
125
+ element = this._renderElement(renderItem, ListItemComponent, item, index),
126
+ itemSeparator = import_react.default.isValidElement(ItemSeparatorComponent) ? ItemSeparatorComponent : ItemSeparatorComponent && /* @__PURE__ */(0, import_jsx_runtime.jsx)(ItemSeparatorComponent, {
127
+ ...this.state.separatorProps
128
+ }),
129
+ cellStyle = inversionStyle ? horizontal ? [styles.rowReverse, inversionStyle] : [styles.columnReverse, inversionStyle] : horizontal ? [styles.row, inversionStyle] : inversionStyle,
130
+ result = CellRendererComponent ? /* @__PURE__ */(0, import_jsx_runtime.jsxs)(CellRendererComponent, {
131
+ cellKey,
132
+ index,
133
+ item,
134
+ style: cellStyle,
135
+ onFocusCapture: onCellFocusCapture,
136
+ ...(onCellLayout && {
137
+ onLayout: this._onLayout
138
+ }),
139
+ children: [element, itemSeparator]
140
+ }) : /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_View.default, {
141
+ style: cellStyle,
142
+ onFocusCapture: onCellFocusCapture,
143
+ ...(onCellLayout && {
144
+ onLayout: this._onLayout
145
+ }),
146
+ children: [element, itemSeparator]
147
+ });
148
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_VirtualizedListContext.VirtualizedListCellContextProvider, {
149
+ cellKey: this.props.cellKey,
150
+ children: result
151
+ });
152
+ }
153
+ }
154
+ const styles = import_react_native_web_internals.StyleSheet.create({
155
+ row: {
156
+ flexDirection: "row"
157
+ },
158
+ rowReverse: {
159
+ flexDirection: "row-reverse"
160
+ },
161
+ columnReverse: {
162
+ flexDirection: "column-reverse"
163
+ }
164
+ });