@shopify/shop-minis-react 0.3.2 → 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 (205) hide show
  1. package/dist/components/MinisContainer.js +11 -10
  2. package/dist/components/MinisContainer.js.map +1 -1
  3. package/dist/components/atoms/content-wrapper.js.map +1 -1
  4. package/dist/components/atoms/video-player.js +28 -26
  5. package/dist/components/atoms/video-player.js.map +1 -1
  6. package/dist/components/commerce/product-card.js +106 -79
  7. package/dist/components/commerce/product-card.js.map +1 -1
  8. package/dist/components/commerce/product-link.js +124 -137
  9. package/dist/components/commerce/product-link.js.map +1 -1
  10. package/dist/components/commerce/search.js +20 -20
  11. package/dist/components/commerce/search.js.map +1 -1
  12. package/dist/components/ui/sonner.js +3 -1
  13. package/dist/components/ui/sonner.js.map +1 -1
  14. package/dist/hooks/content/useContent.js +12 -18
  15. package/dist/hooks/content/useContent.js.map +1 -1
  16. package/dist/hooks/navigation/useNavigateWithTransition.js +10 -11
  17. package/dist/hooks/navigation/useNavigateWithTransition.js.map +1 -1
  18. package/dist/hooks/product/useCuratedProducts.js +9 -11
  19. package/dist/hooks/product/useCuratedProducts.js.map +1 -1
  20. package/dist/hooks/product/usePopularProducts.js +9 -11
  21. package/dist/hooks/product/usePopularProducts.js.map +1 -1
  22. package/dist/hooks/product/useProduct.js +11 -17
  23. package/dist/hooks/product/useProduct.js.map +1 -1
  24. package/dist/hooks/product/useProductList.js +10 -21
  25. package/dist/hooks/product/useProductList.js.map +1 -1
  26. package/dist/hooks/product/useProductLists.js +11 -13
  27. package/dist/hooks/product/useProductLists.js.map +1 -1
  28. package/dist/hooks/product/useProductMedia.js +12 -18
  29. package/dist/hooks/product/useProductMedia.js.map +1 -1
  30. package/dist/hooks/product/useProductSearch.js +34 -27
  31. package/dist/hooks/product/useProductSearch.js.map +1 -1
  32. package/dist/hooks/product/useProductVariants.js +11 -14
  33. package/dist/hooks/product/useProductVariants.js.map +1 -1
  34. package/dist/hooks/product/useProducts.js +12 -11
  35. package/dist/hooks/product/useProducts.js.map +1 -1
  36. package/dist/hooks/product/useRecommendedProducts.js +11 -13
  37. package/dist/hooks/product/useRecommendedProducts.js.map +1 -1
  38. package/dist/hooks/shop/useRecommendedShops.js +11 -13
  39. package/dist/hooks/shop/useRecommendedShops.js.map +1 -1
  40. package/dist/hooks/shop/useShop.js +12 -11
  41. package/dist/hooks/shop/useShop.js.map +1 -1
  42. package/dist/hooks/user/useBuyerAttributes.js +8 -10
  43. package/dist/hooks/user/useBuyerAttributes.js.map +1 -1
  44. package/dist/hooks/user/useCurrentUser.js +7 -9
  45. package/dist/hooks/user/useCurrentUser.js.map +1 -1
  46. package/dist/hooks/user/useFollowedShops.js +11 -14
  47. package/dist/hooks/user/useFollowedShops.js.map +1 -1
  48. package/dist/hooks/user/useOrders.js +7 -9
  49. package/dist/hooks/user/useOrders.js.map +1 -1
  50. package/dist/hooks/user/useRecentProducts.js +11 -13
  51. package/dist/hooks/user/useRecentProducts.js.map +1 -1
  52. package/dist/hooks/user/useRecentShops.js +10 -13
  53. package/dist/hooks/user/useRecentShops.js.map +1 -1
  54. package/dist/hooks/user/useSavedProducts.js +10 -13
  55. package/dist/hooks/user/useSavedProducts.js.map +1 -1
  56. package/dist/index.js +269 -264
  57. package/dist/index.js.map +1 -1
  58. package/dist/internal/components/product-review-stars.js +78 -0
  59. package/dist/internal/components/product-review-stars.js.map +1 -0
  60. package/dist/internal/reactQuery/MinisQueryProvider.js +11 -0
  61. package/dist/internal/reactQuery/MinisQueryProvider.js.map +1 -0
  62. package/dist/internal/reactQuery/queryClient.js +33 -0
  63. package/dist/internal/reactQuery/queryClient.js.map +1 -0
  64. package/dist/internal/reactQuery/useShopActionInfiniteQuery.js +52 -0
  65. package/dist/internal/reactQuery/useShopActionInfiniteQuery.js.map +1 -0
  66. package/dist/internal/reactQuery/useShopActionQuery.js +37 -0
  67. package/dist/internal/reactQuery/useShopActionQuery.js.map +1 -0
  68. package/dist/mocks.js +178 -107
  69. package/dist/mocks.js.map +1 -1
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. 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
  96. 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
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. 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
  107. 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
  108. 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
  109. 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
  110. 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
  111. 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
  112. 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
  113. 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
  114. 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
  115. 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
  116. 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
  117. 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
  118. package/dist/shop-minis-react/node_modules/.pnpm/lucide-react@0.513.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/star-half.js +21 -0
  119. package/dist/shop-minis-react/node_modules/.pnpm/lucide-react@0.513.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/star-half.js.map +1 -0
  120. package/dist/shop-minis-react/node_modules/.pnpm/sonner@2.0.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/sonner/dist/index.js +4 -4
  121. package/dist/shop-minis-react/node_modules/.pnpm/sonner@2.0.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/sonner/dist/index.js.map +1 -1
  122. package/package.json +2 -7
  123. package/src/components/MinisContainer.tsx +6 -3
  124. package/src/components/atoms/content-wrapper.tsx +1 -1
  125. package/src/components/atoms/video-player.tsx +7 -0
  126. package/src/components/commerce/product-card.test.tsx +135 -0
  127. package/src/components/commerce/product-card.tsx +39 -5
  128. package/src/components/commerce/product-link.test.tsx +15 -3
  129. package/src/components/commerce/product-link.tsx +9 -25
  130. package/src/components/commerce/search.tsx +2 -2
  131. package/src/components/index.ts +1 -0
  132. package/src/components/ui/sonner.tsx +2 -2
  133. package/src/hooks/content/useContent.ts +6 -17
  134. package/src/hooks/navigation/useNavigateWithTransition.test.ts +46 -7
  135. package/src/hooks/navigation/useNavigateWithTransition.ts +4 -1
  136. package/src/hooks/product/useCuratedProducts.ts +4 -6
  137. package/src/hooks/product/usePopularProducts.ts +4 -6
  138. package/src/hooks/product/useProduct.ts +6 -17
  139. package/src/hooks/product/useProductList.ts +4 -19
  140. package/src/hooks/product/useProductLists.ts +4 -6
  141. package/src/hooks/product/useProductMedia.ts +6 -17
  142. package/src/hooks/product/useProductSearch.ts +19 -15
  143. package/src/hooks/product/useProductVariants.ts +5 -13
  144. package/src/hooks/product/useProducts.ts +8 -12
  145. package/src/hooks/product/useRecommendedProducts.ts +4 -6
  146. package/src/hooks/shop/useRecommendedShops.ts +4 -6
  147. package/src/hooks/shop/useShop.ts +8 -12
  148. package/src/hooks/user/useBuyerAttributes.ts +4 -6
  149. package/src/hooks/user/useCurrentUser.ts +4 -6
  150. package/src/hooks/user/useFollowedShops.ts +5 -13
  151. package/src/hooks/user/useOrders.ts +4 -6
  152. package/src/hooks/user/useRecentProducts.ts +4 -6
  153. package/src/hooks/user/useRecentShops.ts +5 -13
  154. package/src/hooks/user/useSavedProducts.ts +5 -13
  155. package/src/internal/components/product-review-stars.test.tsx +90 -0
  156. package/src/internal/components/product-review-stars.tsx +113 -0
  157. package/src/internal/reactQuery/MinisQueryProvider.test.tsx +38 -0
  158. package/src/internal/reactQuery/MinisQueryProvider.tsx +16 -0
  159. package/src/internal/reactQuery/index.ts +8 -0
  160. package/src/internal/reactQuery/queryClient.test.tsx +91 -0
  161. package/src/internal/reactQuery/queryClient.ts +43 -0
  162. package/src/internal/reactQuery/useShopActionInfiniteQuery.test.tsx +357 -0
  163. package/src/internal/reactQuery/useShopActionInfiniteQuery.ts +129 -0
  164. package/src/internal/reactQuery/useShopActionQuery.test.tsx +184 -0
  165. package/src/internal/reactQuery/useShopActionQuery.ts +74 -0
  166. package/src/mocks.ts +10 -2
  167. package/src/providers/ImagePickerProvider.test.tsx +3 -9
  168. package/dist/internal/useShopActionsDataFetching.js +0 -79
  169. package/dist/internal/useShopActionsDataFetching.js.map +0 -1
  170. package/dist/internal/useShopActionsPaginatedDataFetching.js +0 -96
  171. package/dist/internal/useShopActionsPaginatedDataFetching.js.map +0 -1
  172. package/src/hooks/product/useProductSearch.test.ts +0 -470
  173. package/src/internal/useShopActionsDataFetching.test.ts +0 -465
  174. package/src/internal/useShopActionsDataFetching.ts +0 -150
  175. package/src/internal/useShopActionsPaginatedDataFetching.ts +0 -188
  176. package/src/stories/Accordion.stories.tsx +0 -124
  177. package/src/stories/AddToCart.stories.tsx +0 -251
  178. package/src/stories/Alert.stories.tsx +0 -38
  179. package/src/stories/AlertDialog.stories.tsx +0 -48
  180. package/src/stories/Avatar.stories.tsx +0 -29
  181. package/src/stories/Badge.stories.tsx +0 -46
  182. package/src/stories/Button.stories.tsx +0 -81
  183. package/src/stories/Card.stories.tsx +0 -40
  184. package/src/stories/Checkbox.stories.tsx +0 -44
  185. package/src/stories/FavoriteButton.stories.tsx +0 -58
  186. package/src/stories/IconButton.stories.tsx +0 -68
  187. package/src/stories/ImageContentWrapper.stories.tsx +0 -65
  188. package/src/stories/Input.stories.tsx +0 -44
  189. package/src/stories/Label.stories.tsx +0 -19
  190. package/src/stories/List.stories.tsx +0 -64
  191. package/src/stories/MerchantCard.stories.tsx +0 -127
  192. package/src/stories/ProductCard.stories.tsx +0 -92
  193. package/src/stories/ProductLink.stories.tsx +0 -46
  194. package/src/stories/ProductVariantPrice.stories.tsx +0 -70
  195. package/src/stories/Progress.stories.tsx +0 -30
  196. package/src/stories/PullToRefreshList.stories.tsx +0 -122
  197. package/src/stories/QuantitySelector.stories.tsx +0 -78
  198. package/src/stories/RadioGroup.stories.tsx +0 -51
  199. package/src/stories/Search.stories.tsx +0 -37
  200. package/src/stories/Select.stories.tsx +0 -85
  201. package/src/stories/Skeleton.stories.tsx +0 -19
  202. package/src/stories/TextInput.stories.tsx +0 -26
  203. package/src/stories/Toaster.stories.tsx +0 -46
  204. package/src/stories/Touchable.stories.tsx +0 -40
  205. package/src/stories/VideoPlayer.stories.tsx +0 -129
@@ -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":"AACG,IAACA,IAAW,OAAO,SAAW,OAAe,UAAU;AAC1D,SAASC,IAAO;AAChB;AACA,SAASC,EAAiBC,GAASC,GAAO;AACxC,SAAO,OAAOD,KAAY,aAAaA,EAAQC,CAAK,IAAID;AAC1D;AACA,SAASE,EAAeC,GAAO;AAC7B,SAAO,OAAOA,KAAU,YAAYA,KAAS,KAAKA,MAAU;AAC9D;AACA,SAASC,EAAeC,GAAWC,GAAW;AAC5C,SAAO,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@
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,EAAqBD,CAAgB,GACrCE,EAAgCF,GAAkBJ,CAAkB,GACpEO,EAA2BP,CAAkB;AAC7C,QAAMQ,IAAkB,CAACN,EAAO,cAAe,EAAC,IAAIE,EAAiB,SAAS,GACxE,CAACK,CAAQ,IAAIC,EAAM;AAAA,IACvB,MAAM,IAAId;AAAA,MACRM;AAAA,MACAE;AAAA,IACN;AAAA,EACG,GACKO,IAASF,EAAS,oBAAoBL,CAAgB,GACtDQ,IAAkB,CAACd,KAAeH,EAAQ,eAAe;AAgB/D,MAfAe,EAAM;AAAA,IACJA,EAAM;AAAA,MACJ,CAACG,MAAkB;AACjB,cAAMC,IAAcF,IAAkBH,EAAS,UAAUM,EAAc,WAAWF,CAAa,CAAC,IAAIG;AACpG,eAAAP,EAAS,aAAc,GAChBK;AAAA,MACR;AAAA,MACD,CAACL,GAAUG,CAAe;AAAA,IAC3B;AAAA,IACD,MAAMH,EAAS,iBAAkB;AAAA,IACjC,MAAMA,EAAS,iBAAgB;AAAA,EAChC,GACDC,EAAM,UAAU,MAAM;AACpB,IAAAD,EAAS,WAAWL,CAAgB;AAAA,EACxC,GAAK,CAACA,GAAkBK,CAAQ,CAAC,GAC3BQ,EAAcb,GAAkBO,CAAM;AACxC,UAAMO,EAAgBd,GAAkBK,GAAUT,CAAkB;AAEtE,MAAImB,EAAY;AAAA,IACd,QAAAR;AAAA,IACA,oBAAAX;AAAA,IACA,cAAcI,EAAiB;AAAA,IAC/B,OAAOF,EAAO,cAAa,EAAG,IAAIE,EAAiB,SAAS;AAAA,IAC5D,UAAUA,EAAiB;AAAA,EAC/B,CAAG;AACC,UAAMO,EAAO;AAGf,SAAAT,EAAO,oBAAoB,SAAS;AAAA,IAClCE;AAAA,IACAO;AAAA,EACD,GACGP,EAAiB,iCAAiC,CAACgB,KAAYC,EAAUV,GAAQb,CAAW,MAC9EU;AAAA;AAAA,IAEdU,EAAgBd,GAAkBK,GAAUT,CAAkB;AAAA;AAAA;AAAA,IAG9DE,EAAO,cAAe,EAAC,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]}
@@ -0,0 +1,21 @@
1
+ import a from "../createLucideIcon.js";
2
+ /**
3
+ * @license lucide-react v0.513.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const t = [
9
+ [
10
+ "path",
11
+ {
12
+ d: "M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2",
13
+ key: "2ksp49"
14
+ }
15
+ ]
16
+ ], e = a("star-half", t);
17
+ export {
18
+ t as __iconNode,
19
+ e as default
20
+ };
21
+ //# sourceMappingURL=star-half.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"star-half.js","sources":["../../../../../../../../../../node_modules/.pnpm/lucide-react@0.513.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/star-half.js"],"sourcesContent":["/**\n * @license lucide-react v0.513.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\n \"path\",\n {\n d: \"M12 18.338a2.1 2.1 0 0 0-.987.244L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16l2.309-4.679A.53.53 0 0 1 12 2\",\n key: \"2ksp49\"\n }\n ]\n];\nconst StarHalf = createLucideIcon(\"star-half\", __iconNode);\n\nexport { __iconNode, StarHalf as default };\n//# sourceMappingURL=star-half.js.map\n"],"names":["__iconNode","StarHalf","createLucideIcon"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASK,MAACA,IAAa;AAAA,EACjB;AAAA,IACE;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,KAAK;AAAA,IACX;AAAA,EACA;AACA,GACMC,IAAWC,EAAiB,aAAaF,CAAU;","x_google_ignoreList":[0]}
@@ -260,8 +260,7 @@ const E = new ae(), oe = (r, o) => {
260
260
  ...o,
261
261
  id: e
262
262
  }), e;
263
- }, se = (r) => r && typeof r == "object" && "ok" in r && typeof r.ok == "boolean" && "status" in r && typeof r.status == "number", ne = oe, re = () => E.toasts, ie = () => E.getActiveToasts();
264
- Object.assign(ne, {
263
+ }, se = (r) => r && typeof r == "object" && "ok" in r && typeof r.ok == "boolean" && "status" in r && typeof r.status == "number", ne = oe, re = () => E.toasts, ie = () => E.getActiveToasts(), xe = Object.assign(ne, {
265
264
  success: E.success,
266
265
  info: E.info,
267
266
  warning: E.warning,
@@ -564,7 +563,7 @@ function be(r, o) {
564
563
  }) : h(N);
565
564
  }), e;
566
565
  }
567
- const xe = /* @__PURE__ */ a.forwardRef(function(o, e) {
566
+ const Ee = /* @__PURE__ */ a.forwardRef(function(o, e) {
568
567
  const { invert: s, position: D = "bottom-right", hotkey: c = [
569
568
  "altKey",
570
569
  "KeyT"
@@ -738,6 +737,7 @@ const xe = /* @__PURE__ */ a.forwardRef(function(o, e) {
738
737
  }));
739
738
  });
740
739
  export {
741
- xe as Toaster
740
+ Ee as Toaster,
741
+ xe as toast
742
742
  };
743
743
  //# sourceMappingURL=index.js.map