@shopify/shop-minis-react 0.3.4 → 0.4.0

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 (167) hide show
  1. package/dist/components/MinisContainer.js +11 -10
  2. package/dist/components/MinisContainer.js.map +1 -1
  3. package/dist/hooks/content/useContent.js +12 -18
  4. package/dist/hooks/content/useContent.js.map +1 -1
  5. package/dist/hooks/product/useCuratedProducts.js +9 -11
  6. package/dist/hooks/product/useCuratedProducts.js.map +1 -1
  7. package/dist/hooks/product/usePopularProducts.js +9 -11
  8. package/dist/hooks/product/usePopularProducts.js.map +1 -1
  9. package/dist/hooks/product/useProduct.js +11 -17
  10. package/dist/hooks/product/useProduct.js.map +1 -1
  11. package/dist/hooks/product/useProductList.js +10 -21
  12. package/dist/hooks/product/useProductList.js.map +1 -1
  13. package/dist/hooks/product/useProductLists.js +11 -13
  14. package/dist/hooks/product/useProductLists.js.map +1 -1
  15. package/dist/hooks/product/useProductMedia.js +12 -18
  16. package/dist/hooks/product/useProductMedia.js.map +1 -1
  17. package/dist/hooks/product/useProductSearch.js +34 -27
  18. package/dist/hooks/product/useProductSearch.js.map +1 -1
  19. package/dist/hooks/product/useProductVariants.js +11 -14
  20. package/dist/hooks/product/useProductVariants.js.map +1 -1
  21. package/dist/hooks/product/useProducts.js +12 -11
  22. package/dist/hooks/product/useProducts.js.map +1 -1
  23. package/dist/hooks/product/useRecommendedProducts.js +11 -13
  24. package/dist/hooks/product/useRecommendedProducts.js.map +1 -1
  25. package/dist/hooks/shop/useRecommendedShops.js +11 -13
  26. package/dist/hooks/shop/useRecommendedShops.js.map +1 -1
  27. package/dist/hooks/shop/useShop.js +12 -11
  28. package/dist/hooks/shop/useShop.js.map +1 -1
  29. package/dist/hooks/user/useBuyerAttributes.js +8 -10
  30. package/dist/hooks/user/useBuyerAttributes.js.map +1 -1
  31. package/dist/hooks/user/useCurrentUser.js +7 -9
  32. package/dist/hooks/user/useCurrentUser.js.map +1 -1
  33. package/dist/hooks/user/useFollowedShops.js +11 -14
  34. package/dist/hooks/user/useFollowedShops.js.map +1 -1
  35. package/dist/hooks/user/useOrders.js +7 -9
  36. package/dist/hooks/user/useOrders.js.map +1 -1
  37. package/dist/hooks/user/useRecentProducts.js +11 -13
  38. package/dist/hooks/user/useRecentProducts.js.map +1 -1
  39. package/dist/hooks/user/useRecentShops.js +10 -13
  40. package/dist/hooks/user/useRecentShops.js.map +1 -1
  41. package/dist/hooks/user/useSavedProducts.js +10 -13
  42. package/dist/hooks/user/useSavedProducts.js.map +1 -1
  43. package/dist/internal/reactQuery/MinisQueryProvider.js +11 -0
  44. package/dist/internal/reactQuery/MinisQueryProvider.js.map +1 -0
  45. package/dist/internal/reactQuery/queryClient.js +33 -0
  46. package/dist/internal/reactQuery/queryClient.js.map +1 -0
  47. package/dist/internal/reactQuery/useShopActionInfiniteQuery.js +52 -0
  48. package/dist/internal/reactQuery/useShopActionInfiniteQuery.js.map +1 -0
  49. package/dist/internal/reactQuery/useShopActionQuery.js +37 -0
  50. package/dist/internal/reactQuery/useShopActionQuery.js.map +1 -0
  51. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/focusManager.js +45 -0
  52. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/focusManager.js.map +1 -0
  53. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js +89 -0
  54. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js.map +1 -0
  55. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js +55 -0
  56. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js.map +1 -0
  57. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/mutation.js +198 -0
  58. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/mutation.js.map +1 -0
  59. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/mutationCache.js +99 -0
  60. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/mutationCache.js.map +1 -0
  61. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/notifyManager.js +67 -0
  62. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/notifyManager.js.map +1 -0
  63. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/onlineManager.js +39 -0
  64. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/onlineManager.js.map +1 -0
  65. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/query.js +299 -0
  66. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/query.js.map +1 -0
  67. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/queryCache.js +80 -0
  68. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/queryCache.js.map +1 -0
  69. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/queryClient.js +215 -0
  70. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/queryClient.js.map +1 -0
  71. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/queryObserver.js +300 -0
  72. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/queryObserver.js.map +1 -0
  73. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/removable.js +25 -0
  74. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/removable.js.map +1 -0
  75. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/retryer.js +76 -0
  76. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/retryer.js.map +1 -0
  77. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/subscribable.js +21 -0
  78. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/subscribable.js.map +1 -0
  79. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/thenable.js +26 -0
  80. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/thenable.js.map +1 -0
  81. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/utils.js +176 -0
  82. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/utils.js.map +1 -0
  83. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js +7 -0
  84. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js.map +1 -0
  85. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js +17 -0
  86. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js.map +1 -0
  87. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js +19 -0
  88. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js.map +1 -0
  89. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js +21 -0
  90. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js.map +1 -0
  91. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/suspense.js +18 -0
  92. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/suspense.js.map +1 -0
  93. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js +64 -0
  94. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js.map +1 -0
  95. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js +13 -0
  96. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js.map +1 -0
  97. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useQuery.js +9 -0
  98. package/dist/shop-minis-react/node_modules/.pnpm/@tanstack_react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useQuery.js.map +1 -0
  99. package/package.json +2 -7
  100. package/src/components/MinisContainer.tsx +6 -3
  101. package/src/hooks/content/useContent.ts +6 -17
  102. package/src/hooks/product/useCuratedProducts.ts +4 -6
  103. package/src/hooks/product/usePopularProducts.ts +4 -6
  104. package/src/hooks/product/useProduct.ts +6 -17
  105. package/src/hooks/product/useProductList.ts +4 -19
  106. package/src/hooks/product/useProductLists.ts +4 -6
  107. package/src/hooks/product/useProductMedia.ts +6 -17
  108. package/src/hooks/product/useProductSearch.ts +19 -15
  109. package/src/hooks/product/useProductVariants.ts +5 -13
  110. package/src/hooks/product/useProducts.ts +8 -12
  111. package/src/hooks/product/useRecommendedProducts.ts +4 -6
  112. package/src/hooks/shop/useRecommendedShops.ts +4 -6
  113. package/src/hooks/shop/useShop.ts +8 -12
  114. package/src/hooks/user/useBuyerAttributes.ts +4 -6
  115. package/src/hooks/user/useCurrentUser.ts +4 -6
  116. package/src/hooks/user/useFollowedShops.ts +5 -13
  117. package/src/hooks/user/useOrders.ts +4 -6
  118. package/src/hooks/user/useRecentProducts.ts +4 -6
  119. package/src/hooks/user/useRecentShops.ts +5 -13
  120. package/src/hooks/user/useSavedProducts.ts +5 -13
  121. package/src/internal/reactQuery/MinisQueryProvider.test.tsx +38 -0
  122. package/src/internal/reactQuery/MinisQueryProvider.tsx +16 -0
  123. package/src/internal/reactQuery/index.ts +8 -0
  124. package/src/internal/reactQuery/queryClient.test.tsx +91 -0
  125. package/src/internal/reactQuery/queryClient.ts +43 -0
  126. package/src/internal/reactQuery/useShopActionInfiniteQuery.test.tsx +357 -0
  127. package/src/internal/reactQuery/useShopActionInfiniteQuery.ts +129 -0
  128. package/src/internal/reactQuery/useShopActionQuery.test.tsx +184 -0
  129. package/src/internal/reactQuery/useShopActionQuery.ts +74 -0
  130. package/dist/internal/useShopActionsDataFetching.js +0 -79
  131. package/dist/internal/useShopActionsDataFetching.js.map +0 -1
  132. package/dist/internal/useShopActionsPaginatedDataFetching.js +0 -96
  133. package/dist/internal/useShopActionsPaginatedDataFetching.js.map +0 -1
  134. package/src/hooks/product/useProductSearch.test.ts +0 -470
  135. package/src/internal/useShopActionsDataFetching.test.ts +0 -465
  136. package/src/internal/useShopActionsDataFetching.ts +0 -150
  137. package/src/internal/useShopActionsPaginatedDataFetching.ts +0 -188
  138. package/src/stories/Accordion.stories.tsx +0 -124
  139. package/src/stories/AddToCart.stories.tsx +0 -251
  140. package/src/stories/Alert.stories.tsx +0 -38
  141. package/src/stories/AlertDialog.stories.tsx +0 -48
  142. package/src/stories/Avatar.stories.tsx +0 -29
  143. package/src/stories/Badge.stories.tsx +0 -46
  144. package/src/stories/Button.stories.tsx +0 -81
  145. package/src/stories/Card.stories.tsx +0 -40
  146. package/src/stories/Checkbox.stories.tsx +0 -44
  147. package/src/stories/FavoriteButton.stories.tsx +0 -58
  148. package/src/stories/IconButton.stories.tsx +0 -68
  149. package/src/stories/ImageContentWrapper.stories.tsx +0 -65
  150. package/src/stories/Input.stories.tsx +0 -44
  151. package/src/stories/Label.stories.tsx +0 -19
  152. package/src/stories/List.stories.tsx +0 -64
  153. package/src/stories/MerchantCard.stories.tsx +0 -127
  154. package/src/stories/ProductCard.stories.tsx +0 -92
  155. package/src/stories/ProductLink.stories.tsx +0 -46
  156. package/src/stories/ProductVariantPrice.stories.tsx +0 -70
  157. package/src/stories/Progress.stories.tsx +0 -30
  158. package/src/stories/PullToRefreshList.stories.tsx +0 -122
  159. package/src/stories/QuantitySelector.stories.tsx +0 -78
  160. package/src/stories/RadioGroup.stories.tsx +0 -51
  161. package/src/stories/Search.stories.tsx +0 -37
  162. package/src/stories/Select.stories.tsx +0 -85
  163. package/src/stories/Skeleton.stories.tsx +0 -19
  164. package/src/stories/TextInput.stories.tsx +0 -26
  165. package/src/stories/Toaster.stories.tsx +0 -46
  166. package/src/stories/Touchable.stories.tsx +0 -40
  167. package/src/stories/VideoPlayer.stories.tsx +0 -129
@@ -0,0 +1,76 @@
1
+ import { focusManager as F } from "./focusManager.js";
2
+ import { onlineManager as p } from "./onlineManager.js";
3
+ import { pendingThenable as b } from "./thenable.js";
4
+ import { isServer as j, sleep as D } from "./utils.js";
5
+ function E(e) {
6
+ return Math.min(1e3 * 2 ** e, 3e4);
7
+ }
8
+ function O(e) {
9
+ return (e ?? "online") === "online" ? p.isOnline() : !0;
10
+ }
11
+ var k = class extends Error {
12
+ constructor(e) {
13
+ super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
14
+ }
15
+ };
16
+ function q(e) {
17
+ let c = !1, o = 0, a;
18
+ const n = b(), r = () => n.status !== "pending", v = (t) => {
19
+ if (!r()) {
20
+ const i = new k(t);
21
+ u(i), e.onCancel?.(i);
22
+ }
23
+ }, R = () => {
24
+ c = !0;
25
+ }, C = () => {
26
+ c = !1;
27
+ }, m = () => F.isFocused() && (e.networkMode === "always" || p.isOnline()) && e.canRun(), d = () => O(e.networkMode) && e.canRun(), P = (t) => {
28
+ r() || (a?.(), n.resolve(t));
29
+ }, u = (t) => {
30
+ r() || (a?.(), n.reject(t));
31
+ }, h = () => new Promise((t) => {
32
+ a = (i) => {
33
+ (r() || m()) && t(i);
34
+ }, e.onPause?.();
35
+ }).then(() => {
36
+ a = void 0, r() || e.onContinue?.();
37
+ }), y = () => {
38
+ if (r())
39
+ return;
40
+ let t;
41
+ const i = o === 0 ? e.initialPromise : void 0;
42
+ try {
43
+ t = i ?? e.fn();
44
+ } catch (s) {
45
+ t = Promise.reject(s);
46
+ }
47
+ Promise.resolve(t).then(P).catch((s) => {
48
+ if (r())
49
+ return;
50
+ const l = e.retry ?? (j ? 0 : 3), f = e.retryDelay ?? E, w = typeof f == "function" ? f(o, s) : f, M = l === !0 || typeof l == "number" && o < l || typeof l == "function" && l(o, s);
51
+ if (c || !M) {
52
+ u(s);
53
+ return;
54
+ }
55
+ o++, e.onFail?.(o, s), D(w).then(() => m() ? void 0 : h()).then(() => {
56
+ c ? u(s) : y();
57
+ });
58
+ });
59
+ };
60
+ return {
61
+ promise: n,
62
+ status: () => n.status,
63
+ cancel: v,
64
+ continue: () => (a?.(), n),
65
+ cancelRetry: R,
66
+ continueRetry: C,
67
+ canStart: d,
68
+ start: () => (d() ? y() : h().then(y), n)
69
+ };
70
+ }
71
+ export {
72
+ k as CancelledError,
73
+ O as canFetch,
74
+ q as createRetryer
75
+ };
76
+ //# sourceMappingURL=retryer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retryer.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/retryer.js"],"sourcesContent":["// src/retryer.ts\nimport { focusManager } from \"./focusManager.js\";\nimport { onlineManager } from \"./onlineManager.js\";\nimport { pendingThenable } from \"./thenable.js\";\nimport { isServer, sleep } from \"./utils.js\";\nfunction defaultRetryDelay(failureCount) {\n return Math.min(1e3 * 2 ** failureCount, 3e4);\n}\nfunction canFetch(networkMode) {\n return (networkMode ?? \"online\") === \"online\" ? onlineManager.isOnline() : true;\n}\nvar CancelledError = class extends Error {\n constructor(options) {\n super(\"CancelledError\");\n this.revert = options?.revert;\n this.silent = options?.silent;\n }\n};\nfunction isCancelledError(value) {\n return value instanceof CancelledError;\n}\nfunction createRetryer(config) {\n let isRetryCancelled = false;\n let failureCount = 0;\n let continueFn;\n const thenable = pendingThenable();\n const isResolved = () => thenable.status !== \"pending\";\n const cancel = (cancelOptions) => {\n if (!isResolved()) {\n const error = new CancelledError(cancelOptions);\n reject(error);\n config.onCancel?.(error);\n }\n };\n const cancelRetry = () => {\n isRetryCancelled = true;\n };\n const continueRetry = () => {\n isRetryCancelled = false;\n };\n const canContinue = () => focusManager.isFocused() && (config.networkMode === \"always\" || onlineManager.isOnline()) && config.canRun();\n const canStart = () => canFetch(config.networkMode) && config.canRun();\n const resolve = (value) => {\n if (!isResolved()) {\n continueFn?.();\n thenable.resolve(value);\n }\n };\n const reject = (value) => {\n if (!isResolved()) {\n continueFn?.();\n thenable.reject(value);\n }\n };\n const pause = () => {\n return new Promise((continueResolve) => {\n continueFn = (value) => {\n if (isResolved() || canContinue()) {\n continueResolve(value);\n }\n };\n config.onPause?.();\n }).then(() => {\n continueFn = void 0;\n if (!isResolved()) {\n config.onContinue?.();\n }\n });\n };\n const run = () => {\n if (isResolved()) {\n return;\n }\n let promiseOrValue;\n const initialPromise = failureCount === 0 ? config.initialPromise : void 0;\n try {\n promiseOrValue = initialPromise ?? config.fn();\n } catch (error) {\n promiseOrValue = Promise.reject(error);\n }\n Promise.resolve(promiseOrValue).then(resolve).catch((error) => {\n if (isResolved()) {\n return;\n }\n const retry = config.retry ?? (isServer ? 0 : 3);\n const retryDelay = config.retryDelay ?? defaultRetryDelay;\n const delay = typeof retryDelay === \"function\" ? retryDelay(failureCount, error) : retryDelay;\n const shouldRetry = retry === true || typeof retry === \"number\" && failureCount < retry || typeof retry === \"function\" && retry(failureCount, error);\n if (isRetryCancelled || !shouldRetry) {\n reject(error);\n return;\n }\n failureCount++;\n config.onFail?.(failureCount, error);\n sleep(delay).then(() => {\n return canContinue() ? void 0 : pause();\n }).then(() => {\n if (isRetryCancelled) {\n reject(error);\n } else {\n run();\n }\n });\n });\n };\n return {\n promise: thenable,\n status: () => thenable.status,\n cancel,\n continue: () => {\n continueFn?.();\n return thenable;\n },\n cancelRetry,\n continueRetry,\n canStart,\n start: () => {\n if (canStart()) {\n run();\n } else {\n pause().then(run);\n }\n return thenable;\n }\n };\n}\nexport {\n CancelledError,\n canFetch,\n createRetryer,\n isCancelledError\n};\n//# sourceMappingURL=retryer.js.map"],"names":["defaultRetryDelay","failureCount","canFetch","networkMode","onlineManager","CancelledError","options","createRetryer","config","isRetryCancelled","continueFn","thenable","pendingThenable","isResolved","cancel","cancelOptions","error","reject","cancelRetry","continueRetry","canContinue","focusManager","canStart","resolve","value","pause","continueResolve","run","promiseOrValue","initialPromise","retry","isServer","retryDelay","delay","shouldRetry","sleep"],"mappings":";;;;AAKA,SAASA,EAAkBC,GAAc;AACvC,SAAO,KAAK,IAAI,MAAM,KAAKA,GAAc,GAAG;AAC9C;AACA,SAASC,EAASC,GAAa;AAC7B,UAAQA,KAAe,cAAc,WAAWC,EAAc,SAAQ,IAAK;AAC7E;AACG,IAACC,IAAiB,cAAc,MAAM;AAAA,EACvC,YAAYC,GAAS;AACnB,UAAM,gBAAgB,GACtB,KAAK,SAASA,GAAS,QACvB,KAAK,SAASA,GAAS;AAAA,EAC3B;AACA;AAIA,SAASC,EAAcC,GAAQ;AAC7B,MAAIC,IAAmB,IACnBR,IAAe,GACfS;AACJ,QAAMC,IAAWC,EAAiB,GAC5BC,IAAa,MAAMF,EAAS,WAAW,WACvCG,IAAS,CAACC,MAAkB;AAChC,QAAI,CAACF,EAAU,GAAI;AACjB,YAAMG,IAAQ,IAAIX,EAAeU,CAAa;AAC9C,MAAAE,EAAOD,CAAK,GACZR,EAAO,WAAWQ,CAAK;AAAA,IAC7B;AAAA,EACG,GACKE,IAAc,MAAM;AACxB,IAAAT,IAAmB;AAAA,EACpB,GACKU,IAAgB,MAAM;AAC1B,IAAAV,IAAmB;AAAA,EACpB,GACKW,IAAc,MAAMC,EAAa,UAAS,MAAOb,EAAO,gBAAgB,YAAYJ,EAAc,SAAQ,MAAOI,EAAO,OAAQ,GAChIc,IAAW,MAAMpB,EAASM,EAAO,WAAW,KAAKA,EAAO,OAAQ,GAChEe,IAAU,CAACC,MAAU;AACzB,IAAKX,EAA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AOD,CAAK,IAEZW,EAAK;AAAA,MAEf,CAAO;AAAA,IACP,CAAK;AAAA,EACF;AACD,SAAO;AAAA,IACL,SAAShB;AAAA,IACT,QAAQ,MAAMA,EAAS;AAAA,IACvB,QAAAG;AAAA,IACA,UAAU,OACRJ,IAAc,GACPC;AAAA,IAET,aAAAO;AAAA,IACA,eAAAC;AAAA,IACA,UAAAG;AAAA,IACA,OAAO,OACDA,EAAQ,IACVK,EAAK,IAELF,EAAO,EAAC,KAAKE,CAAG,GAEXhB;AAAA,EAEV;AACH;","x_google_ignoreList":[0]}
@@ -0,0 +1,21 @@
1
+ var e = class {
2
+ constructor() {
3
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
4
+ }
5
+ subscribe(s) {
6
+ return this.listeners.add(s), this.onSubscribe(), () => {
7
+ this.listeners.delete(s), this.onUnsubscribe();
8
+ };
9
+ }
10
+ hasListeners() {
11
+ return this.listeners.size > 0;
12
+ }
13
+ onSubscribe() {
14
+ }
15
+ onUnsubscribe() {
16
+ }
17
+ };
18
+ export {
19
+ e as Subscribable
20
+ };
21
+ //# sourceMappingURL=subscribable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscribable.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/subscribable.js"],"sourcesContent":["// src/subscribable.ts\nvar Subscribable = class {\n constructor() {\n this.listeners = /* @__PURE__ */ new Set();\n this.subscribe = this.subscribe.bind(this);\n }\n subscribe(listener) {\n this.listeners.add(listener);\n this.onSubscribe();\n return () => {\n this.listeners.delete(listener);\n this.onUnsubscribe();\n };\n }\n hasListeners() {\n return this.listeners.size > 0;\n }\n onSubscribe() {\n }\n onUnsubscribe() {\n }\n};\nexport {\n Subscribable\n};\n//# sourceMappingURL=subscribable.js.map"],"names":["Subscribable","listener"],"mappings":"AACG,IAACA,IAAe,MAAM;AAAA,EACvB,cAAc;AACZ,SAAK,YAA4B,oBAAI,IAAK,GAC1C,KAAK,YAAY,KAAK,UAAU,KAAK,IAAI;AAAA,EAC7C;AAAA,EACE,UAAUC,GAAU;AAClB,gBAAK,UAAU,IAAIA,CAAQ,GAC3B,KAAK,YAAa,GACX,MAAM;AACX,WAAK,UAAU,OAAOA,CAAQ,GAC9B,KAAK,cAAe;AAAA,IACrB;AAAA,EACL;AAAA,EACE,eAAe;AACb,WAAO,KAAK,UAAU,OAAO;AAAA,EACjC;AAAA,EACE,cAAc;AAAA,EAChB;AAAA,EACE,gBAAgB;AAAA,EAClB;AACA;","x_google_ignoreList":[0]}
@@ -0,0 +1,26 @@
1
+ function r() {
2
+ let n, l;
3
+ const t = new Promise((e, c) => {
4
+ n = e, l = c;
5
+ });
6
+ t.status = "pending", t.catch(() => {
7
+ });
8
+ function s(e) {
9
+ Object.assign(t, e), delete t.resolve, delete t.reject;
10
+ }
11
+ return t.resolve = (e) => {
12
+ s({
13
+ status: "fulfilled",
14
+ value: e
15
+ }), n(e);
16
+ }, t.reject = (e) => {
17
+ s({
18
+ status: "rejected",
19
+ reason: e
20
+ }), l(e);
21
+ }, t;
22
+ }
23
+ export {
24
+ r as pendingThenable
25
+ };
26
+ //# sourceMappingURL=thenable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thenable.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/thenable.js"],"sourcesContent":["// src/thenable.ts\nimport { noop } from \"./utils.js\";\nfunction pendingThenable() {\n let resolve;\n let reject;\n const thenable = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n thenable.status = \"pending\";\n thenable.catch(() => {\n });\n function finalize(data) {\n Object.assign(thenable, data);\n delete thenable.resolve;\n delete thenable.reject;\n }\n thenable.resolve = (value) => {\n finalize({\n status: \"fulfilled\",\n value\n });\n resolve(value);\n };\n thenable.reject = (reason) => {\n finalize({\n status: \"rejected\",\n reason\n });\n reject(reason);\n };\n return thenable;\n}\nfunction tryResolveSync(promise) {\n let data;\n promise.then((result) => {\n data = result;\n return result;\n }, noop)?.catch(noop);\n if (data !== void 0) {\n return { data };\n }\n return void 0;\n}\nexport {\n pendingThenable,\n tryResolveSync\n};\n//# sourceMappingURL=thenable.js.map"],"names":["pendingThenable","resolve","reject","thenable","_resolve","_reject","finalize","data","value","reason"],"mappings":"AAEA,SAASA,IAAkB;AACzB,MAAIC,GACAC;AACJ,QAAMC,IAAW,IAAI,QAAQ,CAACC,GAAUC,MAAY;AAClD,IAAAJ,IAAUG,GACVF,IAASG;AAAA,EACb,CAAG;AACD,EAAAF,EAAS,SAAS,WAClBA,EAAS,MAAM,MAAM;AAAA,EACvB,CAAG;AACD,WAASG,EAASC,GAAM;AACtB,WAAO,OAAOJ,GAAUI,CAAI,GAC5B,OAAOJ,EAAS,SAChB,OAAOA,EAAS;AAAA,EACpB;AACE,SAAAA,EAAS,UAAU,CAACK,MAAU;AAC5B,IAAAF,EAAS;AAAA,MACP,QAAQ;AAAA,MACR,OAAAE;AAAA,IACN,CAAK,GACDP,EAAQO,CAAK;AAAA,EACd,GACDL,EAAS,SAAS,CAACM,MAAW;AAC5B,IAAAH,EAAS;AAAA,MACP,QAAQ;AAAA,MACR,QAAAG;AAAA,IACN,CAAK,GACDP,EAAOO,CAAM;AAAA,EACd,GACMN;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,176 @@
1
+ var q = typeof window > "u" || "Deno" in globalThis;
2
+ function w() {
3
+ }
4
+ function F(e, t) {
5
+ return typeof e == "function" ? e(t) : e;
6
+ }
7
+ function P(e) {
8
+ return typeof e == "number" && e >= 0 && e !== 1 / 0;
9
+ }
10
+ function K(e, t) {
11
+ return Math.max(e + (t || 0) - Date.now(), 0);
12
+ }
13
+ function I(e, t) {
14
+ return typeof e == "function" ? e(t) : e;
15
+ }
16
+ function T(e, t) {
17
+ return typeof e == "function" ? e(t) : e;
18
+ }
19
+ function E(e, t) {
20
+ const {
21
+ type: r = "all",
22
+ exact: n,
23
+ fetchStatus: i,
24
+ predicate: o,
25
+ queryKey: u,
26
+ stale: s
27
+ } = e;
28
+ if (u) {
29
+ if (n) {
30
+ if (t.queryHash !== d(u, t.options))
31
+ return !1;
32
+ } else if (!j(t.queryKey, u))
33
+ return !1;
34
+ }
35
+ if (r !== "all") {
36
+ const f = t.isActive();
37
+ if (r === "active" && !f || r === "inactive" && f)
38
+ return !1;
39
+ }
40
+ return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || o && !o(t));
41
+ }
42
+ function v(e, t) {
43
+ const { exact: r, status: n, predicate: i, mutationKey: o } = e;
44
+ if (o) {
45
+ if (!t.options.mutationKey)
46
+ return !1;
47
+ if (r) {
48
+ if (h(t.options.mutationKey) !== h(o))
49
+ return !1;
50
+ } else if (!j(t.options.mutationKey, o))
51
+ return !1;
52
+ }
53
+ return !(n && t.state.status !== n || i && !i(t));
54
+ }
55
+ function d(e, t) {
56
+ return (t?.queryKeyHashFn || h)(e);
57
+ }
58
+ function h(e) {
59
+ return JSON.stringify(
60
+ e,
61
+ (t, r) => O(r) ? Object.keys(r).sort().reduce((n, i) => (n[i] = r[i], n), {}) : r
62
+ );
63
+ }
64
+ function j(e, t) {
65
+ return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => j(e[r], t[r])) : !1;
66
+ }
67
+ var k = Object.prototype.hasOwnProperty;
68
+ function p(e, t) {
69
+ if (e === t)
70
+ return e;
71
+ const r = m(e) && m(t);
72
+ if (!r && !(O(e) && O(t))) return t;
73
+ const i = (r ? e : Object.keys(e)).length, o = r ? t : Object.keys(t), u = o.length, s = r ? new Array(u) : {};
74
+ let f = 0;
75
+ for (let l = 0; l < u; l++) {
76
+ const c = r ? l : o[l], a = e[c], y = t[c];
77
+ if (a === y) {
78
+ s[c] = a, (r ? l < i : k.call(e, c)) && f++;
79
+ continue;
80
+ }
81
+ if (a === null || y === null || typeof a != "object" || typeof y != "object") {
82
+ s[c] = y;
83
+ continue;
84
+ }
85
+ const g = p(a, y);
86
+ s[c] = g, g === a && f++;
87
+ }
88
+ return i === u && f === i ? e : s;
89
+ }
90
+ function A(e, t) {
91
+ if (!t || Object.keys(e).length !== Object.keys(t).length)
92
+ return !1;
93
+ for (const r in e)
94
+ if (e[r] !== t[r])
95
+ return !1;
96
+ return !0;
97
+ }
98
+ function m(e) {
99
+ return Array.isArray(e) && e.length === Object.keys(e).length;
100
+ }
101
+ function O(e) {
102
+ if (!S(e))
103
+ return !1;
104
+ const t = e.constructor;
105
+ if (t === void 0)
106
+ return !0;
107
+ const r = t.prototype;
108
+ return !(!S(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
109
+ }
110
+ function S(e) {
111
+ return Object.prototype.toString.call(e) === "[object Object]";
112
+ }
113
+ function N(e) {
114
+ return new Promise((t) => {
115
+ setTimeout(t, e);
116
+ });
117
+ }
118
+ function H(e, t, r) {
119
+ if (typeof r.structuralSharing == "function")
120
+ return r.structuralSharing(e, t);
121
+ if (r.structuralSharing !== !1) {
122
+ if (process.env.NODE_ENV !== "production")
123
+ try {
124
+ return p(e, t);
125
+ } catch (n) {
126
+ throw console.error(
127
+ `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`
128
+ ), n;
129
+ }
130
+ return p(e, t);
131
+ }
132
+ return t;
133
+ }
134
+ function z(e, t, r = 0) {
135
+ const n = [...e, t];
136
+ return r && n.length > r ? n.slice(1) : n;
137
+ }
138
+ function D(e, t, r = 0) {
139
+ const n = [t, ...e];
140
+ return r && n.length > r ? n.slice(0, -1) : n;
141
+ }
142
+ var b = Symbol();
143
+ function M(e, t) {
144
+ return process.env.NODE_ENV !== "production" && e.queryFn === b && console.error(
145
+ `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
146
+ ), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === b ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
147
+ }
148
+ function Q(e, t) {
149
+ return typeof e == "function" ? e(...t) : !!e;
150
+ }
151
+ export {
152
+ z as addToEnd,
153
+ D as addToStart,
154
+ M as ensureQueryFn,
155
+ F as functionalUpdate,
156
+ h as hashKey,
157
+ d as hashQueryKeyByOptions,
158
+ m as isPlainArray,
159
+ O as isPlainObject,
160
+ q as isServer,
161
+ P as isValidTimeout,
162
+ v as matchMutation,
163
+ E as matchQuery,
164
+ w as noop,
165
+ j as partialMatchKey,
166
+ H as replaceData,
167
+ p as replaceEqualDeep,
168
+ T as resolveEnabled,
169
+ I as resolveStaleTime,
170
+ A as shallowEqualObjects,
171
+ Q as shouldThrowError,
172
+ b as skipToken,
173
+ N as sleep,
174
+ K as timeUntilStale
175
+ };
176
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/utils.js"],"sourcesContent":["// src/utils.ts\nvar isServer = typeof window === \"undefined\" || \"Deno\" in globalThis;\nfunction noop() {\n}\nfunction functionalUpdate(updater, input) {\n return typeof updater === \"function\" ? updater(input) : updater;\n}\nfunction isValidTimeout(value) {\n return typeof value === \"number\" && value >= 0 && value !== Infinity;\n}\nfunction timeUntilStale(updatedAt, staleTime) {\n return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);\n}\nfunction resolveStaleTime(staleTime, query) {\n return typeof staleTime === \"function\" ? staleTime(query) : staleTime;\n}\nfunction resolveEnabled(enabled, query) {\n return typeof enabled === \"function\" ? enabled(query) : enabled;\n}\nfunction matchQuery(filters, query) {\n const {\n type = \"all\",\n exact,\n fetchStatus,\n predicate,\n queryKey,\n stale\n } = filters;\n if (queryKey) {\n if (exact) {\n if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {\n return false;\n }\n } else if (!partialMatchKey(query.queryKey, queryKey)) {\n return false;\n }\n }\n if (type !== \"all\") {\n const isActive = query.isActive();\n if (type === \"active\" && !isActive) {\n return false;\n }\n if (type === \"inactive\" && isActive) {\n return false;\n }\n }\n if (typeof stale === \"boolean\" && query.isStale() !== stale) {\n return false;\n }\n if (fetchStatus && fetchStatus !== query.state.fetchStatus) {\n return false;\n }\n if (predicate && !predicate(query)) {\n return false;\n }\n return true;\n}\nfunction matchMutation(filters, mutation) {\n const { exact, status, predicate, mutationKey } = filters;\n if (mutationKey) {\n if (!mutation.options.mutationKey) {\n return false;\n }\n if (exact) {\n if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {\n return false;\n }\n } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {\n return false;\n }\n }\n if (status && mutation.state.status !== status) {\n return false;\n }\n if (predicate && !predicate(mutation)) {\n return false;\n }\n return true;\n}\nfunction hashQueryKeyByOptions(queryKey, options) {\n const hashFn = options?.queryKeyHashFn || hashKey;\n return hashFn(queryKey);\n}\nfunction hashKey(queryKey) {\n return JSON.stringify(\n queryKey,\n (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {\n result[key] = val[key];\n return result;\n }, {}) : val\n );\n}\nfunction partialMatchKey(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (a && b && typeof a === \"object\" && typeof b === \"object\") {\n return Object.keys(b).every((key) => partialMatchKey(a[key], b[key]));\n }\n return false;\n}\nvar hasOwn = Object.prototype.hasOwnProperty;\nfunction replaceEqualDeep(a, b) {\n if (a === b) {\n return a;\n }\n const array = isPlainArray(a) && isPlainArray(b);\n if (!array && !(isPlainObject(a) && isPlainObject(b))) return b;\n const aItems = array ? a : Object.keys(a);\n const aSize = aItems.length;\n const bItems = array ? b : Object.keys(b);\n const bSize = bItems.length;\n const copy = array ? new Array(bSize) : {};\n let equalItems = 0;\n for (let i = 0; i < bSize; i++) {\n const key = array ? i : bItems[i];\n const aItem = a[key];\n const bItem = b[key];\n if (aItem === bItem) {\n copy[key] = aItem;\n if (array ? i < aSize : hasOwn.call(a, key)) equalItems++;\n continue;\n }\n if (aItem === null || bItem === null || typeof aItem !== \"object\" || typeof bItem !== \"object\") {\n copy[key] = bItem;\n continue;\n }\n const v = replaceEqualDeep(aItem, bItem);\n copy[key] = v;\n if (v === aItem) equalItems++;\n }\n return aSize === bSize && equalItems === aSize ? a : copy;\n}\nfunction shallowEqualObjects(a, b) {\n if (!b || Object.keys(a).length !== Object.keys(b).length) {\n return false;\n }\n for (const key in a) {\n if (a[key] !== b[key]) {\n return false;\n }\n }\n return true;\n}\nfunction isPlainArray(value) {\n return Array.isArray(value) && value.length === Object.keys(value).length;\n}\nfunction isPlainObject(o) {\n if (!hasObjectPrototype(o)) {\n return false;\n }\n const ctor = o.constructor;\n if (ctor === void 0) {\n return true;\n }\n const prot = ctor.prototype;\n if (!hasObjectPrototype(prot)) {\n return false;\n }\n if (!prot.hasOwnProperty(\"isPrototypeOf\")) {\n return false;\n }\n if (Object.getPrototypeOf(o) !== Object.prototype) {\n return false;\n }\n return true;\n}\nfunction hasObjectPrototype(o) {\n return Object.prototype.toString.call(o) === \"[object Object]\";\n}\nfunction sleep(timeout) {\n return new Promise((resolve) => {\n setTimeout(resolve, timeout);\n });\n}\nfunction replaceData(prevData, data, options) {\n if (typeof options.structuralSharing === \"function\") {\n return options.structuralSharing(prevData, data);\n } else if (options.structuralSharing !== false) {\n if (process.env.NODE_ENV !== \"production\") {\n try {\n return replaceEqualDeep(prevData, data);\n } catch (error) {\n console.error(\n `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`\n );\n throw error;\n }\n }\n return replaceEqualDeep(prevData, data);\n }\n return data;\n}\nfunction keepPreviousData(previousData) {\n return previousData;\n}\nfunction addToEnd(items, item, max = 0) {\n const newItems = [...items, item];\n return max && newItems.length > max ? newItems.slice(1) : newItems;\n}\nfunction addToStart(items, item, max = 0) {\n const newItems = [item, ...items];\n return max && newItems.length > max ? newItems.slice(0, -1) : newItems;\n}\nvar skipToken = Symbol();\nfunction ensureQueryFn(options, fetchOptions) {\n if (process.env.NODE_ENV !== \"production\") {\n if (options.queryFn === skipToken) {\n console.error(\n `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`\n );\n }\n }\n if (!options.queryFn && fetchOptions?.initialPromise) {\n return () => fetchOptions.initialPromise;\n }\n if (!options.queryFn || options.queryFn === skipToken) {\n return () => Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`));\n }\n return options.queryFn;\n}\nfunction shouldThrowError(throwOnError, params) {\n if (typeof throwOnError === \"function\") {\n return throwOnError(...params);\n }\n return !!throwOnError;\n}\nexport {\n addToEnd,\n addToStart,\n ensureQueryFn,\n functionalUpdate,\n hashKey,\n hashQueryKeyByOptions,\n isPlainArray,\n isPlainObject,\n isServer,\n isValidTimeout,\n keepPreviousData,\n matchMutation,\n matchQuery,\n noop,\n partialMatchKey,\n replaceData,\n replaceEqualDeep,\n resolveEnabled,\n resolveStaleTime,\n shallowEqualObjects,\n shouldThrowError,\n skipToken,\n sleep,\n timeUntilStale\n};\n//# sourceMappingURL=utils.js.map"],"names":["isServer","noop","functionalUpdate","updater","input","isValidTimeout","value","timeUntilStale","updatedAt","staleTime","resolveStaleTime","query","resolveEnabled","enabled","matchQuery","filters","type","exact","fetchStatus","predicate","queryKey","stale","hashQueryKeyByOptions","partialMatchKey","isActive","matchMutation","mutation","status","mutationKey","hashKey","options","_","val","isPlainObject","result","key","a","b","hasOwn","replaceEqualDeep","array","isPlainArray","aSize","bItems","bSize","copy","equalItems","i","aItem","bItem","v","shallowEqualObjects","o","hasObjectPrototype","ctor","prot","sleep","timeout","resolve","replaceData","prevData","data","error","addToEnd","items","item","max","newItems","addToStart","skipToken","ensureQueryFn","fetchOptions","shouldThrowError","throwOnError","params"],"mappings":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AExB,CAACzC,EAAQ,WAAWA,EAAQ,YAAYuC,IACnC,MAAM,QAAQ,OAAO,IAAI,MAAM,qBAAqBvC,EAAQ,SAAS,GAAG,CAAC,IAE3EA,EAAQ;AACjB;AACA,SAAS0C,EAAiBC,GAAcC,GAAQ;AAC9C,SAAI,OAAOD,KAAiB,aACnBA,EAAa,GAAGC,CAAM,IAExB,CAAC,CAACD;AACX;","x_google_ignoreList":[0]}
@@ -0,0 +1,7 @@
1
+ import * as e from "react";
2
+ var t = e.createContext(!1), r = () => e.useContext(t);
3
+ t.Provider;
4
+ export {
5
+ r as useIsRestoring
6
+ };
7
+ //# sourceMappingURL=IsRestoringProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IsRestoringProvider.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js"],"sourcesContent":["\"use client\";\n\n// src/IsRestoringProvider.ts\nimport * as React from \"react\";\nvar IsRestoringContext = React.createContext(false);\nvar useIsRestoring = () => React.useContext(IsRestoringContext);\nvar IsRestoringProvider = IsRestoringContext.Provider;\nexport {\n IsRestoringProvider,\n useIsRestoring\n};\n//# sourceMappingURL=IsRestoringProvider.js.map"],"names":["IsRestoringContext","React","useIsRestoring"],"mappings":";AAIA,IAAIA,IAAqBC,EAAM,cAAc,EAAK,GAC9CC,IAAiB,MAAMD,EAAM,WAAWD,CAAkB;AACpCA,EAAmB;","x_google_ignoreList":[0]}
@@ -0,0 +1,17 @@
1
+ import * as r from "react";
2
+ import "react/jsx-runtime";
3
+ var o = r.createContext(
4
+ void 0
5
+ ), i = (e) => {
6
+ const t = r.useContext(o);
7
+ if (e)
8
+ return e;
9
+ if (!t)
10
+ throw new Error("No QueryClient set, use QueryClientProvider to set one");
11
+ return t;
12
+ };
13
+ export {
14
+ o as QueryClientContext,
15
+ i as useQueryClient
16
+ };
17
+ //# sourceMappingURL=QueryClientProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryClientProvider.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js"],"sourcesContent":["\"use client\";\n\n// src/QueryClientProvider.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar QueryClientContext = React.createContext(\n void 0\n);\nvar useQueryClient = (queryClient) => {\n const client = React.useContext(QueryClientContext);\n if (queryClient) {\n return queryClient;\n }\n if (!client) {\n throw new Error(\"No QueryClient set, use QueryClientProvider to set one\");\n }\n return client;\n};\nvar QueryClientProvider = ({\n client,\n children\n}) => {\n React.useEffect(() => {\n client.mount();\n return () => {\n client.unmount();\n };\n }, [client]);\n return /* @__PURE__ */ jsx(QueryClientContext.Provider, { value: client, children });\n};\nexport {\n QueryClientContext,\n QueryClientProvider,\n useQueryClient\n};\n//# sourceMappingURL=QueryClientProvider.js.map"],"names":["QueryClientContext","React","useQueryClient","queryClient","client"],"mappings":";;AAKG,IAACA,IAAqBC,EAAM;AAAA,EAC7B;AACF,GACIC,IAAiB,CAACC,MAAgB;AACpC,QAAMC,IAASH,EAAM,WAAWD,CAAkB;AAClD,MAAIG;AACF,WAAOA;AAET,MAAI,CAACC;AACH,UAAM,IAAI,MAAM,wDAAwD;AAE1E,SAAOA;AACT;","x_google_ignoreList":[0]}
@@ -0,0 +1,19 @@
1
+ import * as r from "react";
2
+ import "react/jsx-runtime";
3
+ function t() {
4
+ let e = !1;
5
+ return {
6
+ clearReset: () => {
7
+ e = !1;
8
+ },
9
+ reset: () => {
10
+ e = !0;
11
+ },
12
+ isReset: () => e
13
+ };
14
+ }
15
+ var s = r.createContext(t()), o = () => r.useContext(s);
16
+ export {
17
+ o as useQueryErrorResetBoundary
18
+ };
19
+ //# sourceMappingURL=QueryErrorResetBoundary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryErrorResetBoundary.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js"],"sourcesContent":["\"use client\";\n\n// src/QueryErrorResetBoundary.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createValue() {\n let isReset = false;\n return {\n clearReset: () => {\n isReset = false;\n },\n reset: () => {\n isReset = true;\n },\n isReset: () => {\n return isReset;\n }\n };\n}\nvar QueryErrorResetBoundaryContext = React.createContext(createValue());\nvar useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);\nvar QueryErrorResetBoundary = ({\n children\n}) => {\n const [value] = React.useState(() => createValue());\n return /* @__PURE__ */ jsx(QueryErrorResetBoundaryContext.Provider, { value, children: typeof children === \"function\" ? children(value) : children });\n};\nexport {\n QueryErrorResetBoundary,\n useQueryErrorResetBoundary\n};\n//# sourceMappingURL=QueryErrorResetBoundary.js.map"],"names":["createValue","isReset","QueryErrorResetBoundaryContext","React","useQueryErrorResetBoundary"],"mappings":";;AAKA,SAASA,IAAc;AACrB,MAAIC,IAAU;AACd,SAAO;AAAA,IACL,YAAY,MAAM;AAChB,MAAAA,IAAU;AAAA,IACX;AAAA,IACD,OAAO,MAAM;AACX,MAAAA,IAAU;AAAA,IACX;AAAA,IACD,SAAS,MACAA;AAAA,EAEV;AACH;AACA,IAAIC,IAAiCC,EAAM,cAAcH,GAAa,GAClEI,IAA6B,MAAMD,EAAM,WAAWD,CAA8B;","x_google_ignoreList":[0]}
@@ -0,0 +1,21 @@
1
+ import * as s from "react";
2
+ import { shouldThrowError as n } from "../../../../../../@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/utils.js";
3
+ var i = (r, e) => {
4
+ (r.suspense || r.throwOnError || r.experimental_prefetchInRender) && (e.isReset() || (r.retryOnMount = !1));
5
+ }, E = (r) => {
6
+ s.useEffect(() => {
7
+ r.clearReset();
8
+ }, [r]);
9
+ }, R = ({
10
+ result: r,
11
+ errorResetBoundary: e,
12
+ throwOnError: t,
13
+ query: a,
14
+ suspense: o
15
+ }) => r.isError && !e.isReset() && !r.isFetching && a && (o && r.data === void 0 || n(t, [r.error, a]));
16
+ export {
17
+ i as ensurePreventErrorBoundaryRetry,
18
+ R as getHasError,
19
+ E as useClearResetErrorBoundary
20
+ };
21
+ //# sourceMappingURL=errorBoundaryUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorBoundaryUtils.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js"],"sourcesContent":["\"use client\";\n\n// src/errorBoundaryUtils.ts\nimport * as React from \"react\";\nimport { shouldThrowError } from \"@tanstack/query-core\";\nvar ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {\n if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {\n if (!errorResetBoundary.isReset()) {\n options.retryOnMount = false;\n }\n }\n};\nvar useClearResetErrorBoundary = (errorResetBoundary) => {\n React.useEffect(() => {\n errorResetBoundary.clearReset();\n }, [errorResetBoundary]);\n};\nvar getHasError = ({\n result,\n errorResetBoundary,\n throwOnError,\n query,\n suspense\n}) => {\n return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));\n};\nexport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary\n};\n//# sourceMappingURL=errorBoundaryUtils.js.map"],"names":["ensurePreventErrorBoundaryRetry","options","errorResetBoundary","useClearResetErrorBoundary","React","getHasError","result","throwOnError","query","suspense","shouldThrowError"],"mappings":";;AAKG,IAACA,IAAkC,CAACC,GAASC,MAAuB;AACrE,GAAID,EAAQ,YAAYA,EAAQ,gBAAgBA,EAAQ,mCACjDC,EAAmB,cACtBD,EAAQ,eAAe;AAG7B,GACIE,IAA6B,CAACD,MAAuB;AACvD,EAAAE,EAAM,UAAU,MAAM;AACpB,IAAAF,EAAmB,WAAY;AAAA,EACnC,GAAK,CAACA,CAAkB,CAAC;AACzB,GACIG,IAAc,CAAC;AAAA,EACjB,QAAAC;AAAA,EACA,oBAAAJ;AAAA,EACA,cAAAK;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AACF,MACSH,EAAO,WAAW,CAACJ,EAAmB,QAAO,KAAM,CAACI,EAAO,cAAcE,MAAUC,KAAYH,EAAO,SAAS,UAAUI,EAAiBH,GAAc,CAACD,EAAO,OAAOE,CAAK,CAAC;","x_google_ignoreList":[0]}
@@ -0,0 +1,18 @@
1
+ var M = (i) => {
2
+ if (i.suspense) {
3
+ const c = (S) => S === "static" ? S : Math.max(S ?? 1e3, 1e3), s = i.staleTime;
4
+ i.staleTime = typeof s == "function" ? (...S) => c(s(...S)) : c(s), typeof i.gcTime == "number" && (i.gcTime = Math.max(
5
+ i.gcTime,
6
+ 1e3
7
+ ));
8
+ }
9
+ }, m = (i, e) => i.isLoading && i.isFetching && !e, t = (i, e) => i?.suspense && e.isPending, E = (i, e, c) => e.fetchOptimistic(i).catch(() => {
10
+ c.clearReset();
11
+ });
12
+ export {
13
+ M as ensureSuspenseTimers,
14
+ E as fetchOptimistic,
15
+ t as shouldSuspend,
16
+ m as willFetch
17
+ };
18
+ //# sourceMappingURL=suspense.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suspense.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/suspense.js"],"sourcesContent":["// src/suspense.ts\nvar defaultThrowOnError = (_error, query) => query.state.data === void 0;\nvar ensureSuspenseTimers = (defaultedOptions) => {\n if (defaultedOptions.suspense) {\n const MIN_SUSPENSE_TIME_MS = 1e3;\n const clamp = (value) => value === \"static\" ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS);\n const originalStaleTime = defaultedOptions.staleTime;\n defaultedOptions.staleTime = typeof originalStaleTime === \"function\" ? (...args) => clamp(originalStaleTime(...args)) : clamp(originalStaleTime);\n if (typeof defaultedOptions.gcTime === \"number\") {\n defaultedOptions.gcTime = Math.max(\n defaultedOptions.gcTime,\n MIN_SUSPENSE_TIME_MS\n );\n }\n }\n};\nvar willFetch = (result, isRestoring) => result.isLoading && result.isFetching && !isRestoring;\nvar shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;\nvar fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {\n errorResetBoundary.clearReset();\n});\nexport {\n defaultThrowOnError,\n ensureSuspenseTimers,\n fetchOptimistic,\n shouldSuspend,\n willFetch\n};\n//# sourceMappingURL=suspense.js.map"],"names":["ensureSuspenseTimers","defaultedOptions","clamp","value","originalStaleTime","args","willFetch","result","isRestoring","shouldSuspend","fetchOptimistic","observer","errorResetBoundary"],"mappings":"AAEG,IAACA,IAAuB,CAACC,MAAqB;AAC/C,MAAIA,EAAiB,UAAU;AAE7B,UAAMC,IAAQ,CAACC,MAAUA,MAAU,WAAWA,IAAQ,KAAK,IAAIA,KAAS,KAAsB,GAAoB,GAC5GC,IAAoBH,EAAiB;AAC3C,IAAAA,EAAiB,YAAY,OAAOG,KAAsB,aAAa,IAAIC,MAASH,EAAME,EAAkB,GAAGC,CAAI,CAAC,IAAIH,EAAME,CAAiB,GAC3I,OAAOH,EAAiB,UAAW,aACrCA,EAAiB,SAAS,KAAK;AAAA,MAC7BA,EAAiB;AAAA,MACjB;AAAA,IACD;AAAA,EAEP;AACA,GACIK,IAAY,CAACC,GAAQC,MAAgBD,EAAO,aAAaA,EAAO,cAAc,CAACC,GAC/EC,IAAgB,CAACR,GAAkBM,MAAWN,GAAkB,YAAYM,EAAO,WACnFG,IAAkB,CAACT,GAAkBU,GAAUC,MAAuBD,EAAS,gBAAgBV,CAAgB,EAAE,MAAM,MAAM;AAC/H,EAAAW,EAAmB,WAAY;AACjC,CAAC;","x_google_ignoreList":[0]}
@@ -0,0 +1,64 @@
1
+ import * as u from "react";
2
+ import { notifyManager as d } from "../../../../../../@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/notifyManager.js";
3
+ import { noop as l, isServer as g } from "../../../../../../@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/utils.js";
4
+ import { useQueryClient as q } from "./QueryClientProvider.js";
5
+ import { useQueryErrorResetBoundary as w } from "./QueryErrorResetBoundary.js";
6
+ import { ensurePreventErrorBoundaryRetry as R, useClearResetErrorBoundary as b, getHasError as E } from "./errorBoundaryUtils.js";
7
+ import { useIsRestoring as O } from "./IsRestoringProvider.js";
8
+ import { ensureSuspenseTimers as C, shouldSuspend as Q, fetchOptimistic as p, willFetch as S } from "./suspense.js";
9
+ function H(n, f, y) {
10
+ if (process.env.NODE_ENV !== "production" && (typeof n != "object" || Array.isArray(n)))
11
+ throw new Error(
12
+ 'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
13
+ );
14
+ const i = O(), o = w(), t = q(y), e = t.defaultQueryOptions(n);
15
+ t.getDefaultOptions().queries?._experimental_beforeQuery?.(
16
+ e
17
+ ), process.env.NODE_ENV !== "production" && (e.queryFn || console.error(
18
+ `[${e.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
19
+ )), e._optimisticResults = i ? "isRestoring" : "optimistic", C(e), R(e, o), b(o);
20
+ const m = !t.getQueryCache().get(e.queryHash), [r] = u.useState(
21
+ () => new f(
22
+ t,
23
+ e
24
+ )
25
+ ), s = r.getOptimisticResult(e), a = !i && n.subscribed !== !1;
26
+ if (u.useSyncExternalStore(
27
+ u.useCallback(
28
+ (c) => {
29
+ const h = a ? r.subscribe(d.batchCalls(c)) : l;
30
+ return r.updateResult(), h;
31
+ },
32
+ [r, a]
33
+ ),
34
+ () => r.getCurrentResult(),
35
+ () => r.getCurrentResult()
36
+ ), u.useEffect(() => {
37
+ r.setOptions(e);
38
+ }, [e, r]), Q(e, s))
39
+ throw p(e, r, o);
40
+ if (E({
41
+ result: s,
42
+ errorResetBoundary: o,
43
+ throwOnError: e.throwOnError,
44
+ query: t.getQueryCache().get(e.queryHash),
45
+ suspense: e.suspense
46
+ }))
47
+ throw s.error;
48
+ return t.getDefaultOptions().queries?._experimental_afterQuery?.(
49
+ e,
50
+ s
51
+ ), e.experimental_prefetchInRender && !g && S(s, i) && (m ? (
52
+ // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
53
+ p(e, r, o)
54
+ ) : (
55
+ // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
56
+ t.getQueryCache().get(e.queryHash)?.promise
57
+ ))?.catch(l).finally(() => {
58
+ r.updateResult();
59
+ }), e.notifyOnChangeProps ? s : r.trackResult(s);
60
+ }
61
+ export {
62
+ H as useBaseQuery
63
+ };
64
+ //# sourceMappingURL=useBaseQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBaseQuery.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js"],"sourcesContent":["\"use client\";\n\n// src/useBaseQuery.ts\nimport * as React from \"react\";\nimport { isServer, noop, notifyManager } from \"@tanstack/query-core\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport { useQueryErrorResetBoundary } from \"./QueryErrorResetBoundary.js\";\nimport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary\n} from \"./errorBoundaryUtils.js\";\nimport { useIsRestoring } from \"./IsRestoringProvider.js\";\nimport {\n ensureSuspenseTimers,\n fetchOptimistic,\n shouldSuspend,\n willFetch\n} from \"./suspense.js\";\nfunction useBaseQuery(options, Observer, queryClient) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof options !== \"object\" || Array.isArray(options)) {\n throw new Error(\n 'Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'\n );\n }\n }\n const isRestoring = useIsRestoring();\n const errorResetBoundary = useQueryErrorResetBoundary();\n const client = useQueryClient(queryClient);\n const defaultedOptions = client.defaultQueryOptions(options);\n client.getDefaultOptions().queries?._experimental_beforeQuery?.(\n defaultedOptions\n );\n if (process.env.NODE_ENV !== \"production\") {\n if (!defaultedOptions.queryFn) {\n console.error(\n `[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`\n );\n }\n }\n defaultedOptions._optimisticResults = isRestoring ? \"isRestoring\" : \"optimistic\";\n ensureSuspenseTimers(defaultedOptions);\n ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);\n useClearResetErrorBoundary(errorResetBoundary);\n const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);\n const [observer] = React.useState(\n () => new Observer(\n client,\n defaultedOptions\n )\n );\n const result = observer.getOptimisticResult(defaultedOptions);\n const shouldSubscribe = !isRestoring && options.subscribed !== false;\n React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => {\n const unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;\n observer.updateResult();\n return unsubscribe;\n },\n [observer, shouldSubscribe]\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult()\n );\n React.useEffect(() => {\n observer.setOptions(defaultedOptions);\n }, [defaultedOptions, observer]);\n if (shouldSuspend(defaultedOptions, result)) {\n throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);\n }\n if (getHasError({\n result,\n errorResetBoundary,\n throwOnError: defaultedOptions.throwOnError,\n query: client.getQueryCache().get(defaultedOptions.queryHash),\n suspense: defaultedOptions.suspense\n })) {\n throw result.error;\n }\n ;\n client.getDefaultOptions().queries?._experimental_afterQuery?.(\n defaultedOptions,\n result\n );\n if (defaultedOptions.experimental_prefetchInRender && !isServer && willFetch(result, isRestoring)) {\n const promise = isNewCacheEntry ? (\n // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted\n fetchOptimistic(defaultedOptions, observer, errorResetBoundary)\n ) : (\n // subscribe to the \"cache promise\" so that we can finalize the currentThenable once data comes in\n client.getQueryCache().get(defaultedOptions.queryHash)?.promise\n );\n promise?.catch(noop).finally(() => {\n observer.updateResult();\n });\n }\n return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;\n}\nexport {\n useBaseQuery\n};\n//# sourceMappingURL=useBaseQuery.js.map"],"names":["useBaseQuery","options","Observer","queryClient","isRestoring","useIsRestoring","errorResetBoundary","useQueryErrorResetBoundary","client","useQueryClient","defaultedOptions","ensureSuspenseTimers","ensurePreventErrorBoundaryRetry","useClearResetErrorBoundary","isNewCacheEntry","observer","React","result","shouldSubscribe","onStoreChange","unsubscribe","notifyManager","noop","shouldSuspend","fetchOptimistic","getHasError","isServer","willFetch"],"mappings":";;;;;;;;AAmBA,SAASA,EAAaC,GAASC,GAAUC,GAAa;AACpD,MAAI,QAAQ,IAAI,aAAa,iBACvB,OAAOF,KAAY,YAAY,MAAM,QAAQA,CAAO;AACtD,UAAM,IAAI;AAAA,MACR;AAAA,IACD;AAGL,QAAMG,IAAcC,EAAgB,GAC9BC,IAAqBC,EAA4B,GACjDC,IAASC,EAAeN,CAAW,GACnCO,IAAmBF,EAAO,oBAAoBP,CAAO;AAC3D,EAAAO,EAAO,oBAAoB,SAAS;AAAA,IAClCE;AAAA,EACD,GACG,QAAQ,IAAI,aAAa,iBACtBA,EAAiB,WACpB,QAAQ;AAAA,IACN,IAAIA,EAAiB,SAAS;AAAA,EAC/B,IAGLA,EAAiB,qBAAqBN,IAAc,gBAAgB,cACpEO,EAAq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,IAAIE,EAAiB,SAAS,GAAG;AAAA,MAEjD,MAAMY,CAAI,EAAE,QAAQ,MAAM;AACjC,IAAAP,EAAS,aAAc;AAAA,EAC7B,CAAK,GAEKL,EAAiB,sBAAqDO,IAA/BF,EAAS,YAAYE,CAAM;AAC5E;","x_google_ignoreList":[0]}
@@ -0,0 +1,13 @@
1
+ import { InfiniteQueryObserver as i } from "../../../../../../@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryObserver.js";
2
+ import { useBaseQuery as n } from "./useBaseQuery.js";
3
+ function o(e, r) {
4
+ return n(
5
+ e,
6
+ i,
7
+ r
8
+ );
9
+ }
10
+ export {
11
+ o as useInfiniteQuery
12
+ };
13
+ //# sourceMappingURL=useInfiniteQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInfiniteQuery.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useInfiniteQuery.js"],"sourcesContent":["\"use client\";\n\n// src/useInfiniteQuery.ts\nimport { InfiniteQueryObserver } from \"@tanstack/query-core\";\nimport { useBaseQuery } from \"./useBaseQuery.js\";\nfunction useInfiniteQuery(options, queryClient) {\n return useBaseQuery(\n options,\n InfiniteQueryObserver,\n queryClient\n );\n}\nexport {\n useInfiniteQuery\n};\n//# sourceMappingURL=useInfiniteQuery.js.map"],"names":["useInfiniteQuery","options","queryClient","useBaseQuery","InfiniteQueryObserver"],"mappings":";;AAKA,SAASA,EAAiBC,GAASC,GAAa;AAC9C,SAAOC;AAAA,IACLF;AAAA,IACAG;AAAA,IACAF;AAAA,EACD;AACH;","x_google_ignoreList":[0]}
@@ -0,0 +1,9 @@
1
+ import { QueryObserver as u } from "../../../../../../@tanstack_query-core@5.86.0/node_modules/@tanstack/query-core/build/modern/queryObserver.js";
2
+ import { useBaseQuery as o } from "./useBaseQuery.js";
3
+ function s(r, e) {
4
+ return o(r, u, e);
5
+ }
6
+ export {
7
+ s as useQuery
8
+ };
9
+ //# sourceMappingURL=useQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useQuery.js","sources":["../../../../../../../../../../node_modules/.pnpm/@tanstack+react-query@5.86.0_react@19.1.0/node_modules/@tanstack/react-query/build/modern/useQuery.js"],"sourcesContent":["\"use client\";\n\n// src/useQuery.ts\nimport { QueryObserver } from \"@tanstack/query-core\";\nimport { useBaseQuery } from \"./useBaseQuery.js\";\nfunction useQuery(options, queryClient) {\n return useBaseQuery(options, QueryObserver, queryClient);\n}\nexport {\n useQuery\n};\n//# sourceMappingURL=useQuery.js.map"],"names":["useQuery","options","queryClient","useBaseQuery","QueryObserver"],"mappings":";;AAKA,SAASA,EAASC,GAASC,GAAa;AACtC,SAAOC,EAAaF,GAASG,GAAeF,CAAW;AACzD;","x_google_ignoreList":[0]}