@gen-epix/ui-client-common 4.3.1 → 4.3.2

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 (86) hide show
  1. package/dist/_chunks/QueryClientProvider.js +1 -1
  2. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  3. package/dist/_chunks/QueryClientService.js +4 -5
  4. package/dist/_chunks/QueryClientService.js.map +1 -1
  5. package/dist/_chunks/query.js +7 -7
  6. package/dist/_chunks/query.js.map +1 -1
  7. package/dist/_chunks/useMutation.js +2 -2
  8. package/dist/_chunks/useMutation.js.map +1 -1
  9. package/dist/_chunks/useQueryMemo.js +5 -5
  10. package/dist/_chunks/useQueryMemo.js.map +1 -1
  11. package/dist/components/app/App/App.d.ts +1 -1
  12. package/dist/components/app/AppRouterProvider/AppRouterProvider.d.ts +1 -1
  13. package/dist/components/app/AuthenticationWrapper/AuthenticationWrapper.d.ts +1 -1
  14. package/dist/components/app/RouterRoot/RouterRoot.d.ts +1 -1
  15. package/dist/components/filters/BooleanFilterField/BooleanFilterField.d.ts +1 -1
  16. package/dist/components/filters/DateFilterField/DateFilterField.d.ts +1 -1
  17. package/dist/components/filters/GeoFilterField/GeoFilterField.d.ts +1 -1
  18. package/dist/components/filters/MultiSelectFilterField/MultiSelectFilterField.d.ts +1 -1
  19. package/dist/components/filters/NumberRangeFilterField/NumberRangeFilterField.d.ts +1 -1
  20. package/dist/components/filters/TextFilterField/TextFilterField.d.ts +1 -1
  21. package/dist/components/ui/ApplicationBar/ApplicationBar.d.ts +1 -1
  22. package/dist/components/ui/ApplicationBar/ApplicationBarActions.d.ts +1 -1
  23. package/dist/components/ui/ApplicationBar/ApplicationBarActionsFeedbackItem.d.ts +1 -1
  24. package/dist/components/ui/ApplicationBar/ApplicationBarActionsInfotem.d.ts +1 -1
  25. package/dist/components/ui/ApplicationBar/ApplicationBarActionsNotificationsItem.d.ts +1 -1
  26. package/dist/components/ui/ApplicationBar/ApplicationBarActionsOrganizationSwitcherItem.d.ts +1 -1
  27. package/dist/components/ui/ApplicationBar/ApplicationBarActionsOutagesItem.d.ts +1 -1
  28. package/dist/components/ui/ApplicationBar/ApplicationBarActionsUserItem.d.ts +1 -1
  29. package/dist/components/ui/ApplicationBar/ApplicationBarNavigationMenu.d.ts +1 -1
  30. package/dist/components/ui/ApplicationBar/UserOrganizationAdminMenuItem.d.ts +1 -1
  31. package/dist/components/ui/ApplicationBar/UserOwnOrganizationMenuItem.d.ts +1 -1
  32. package/dist/components/ui/ApplicationFooter/ApplicationFooter.d.ts +1 -1
  33. package/dist/components/ui/ApplicationFooter/ApplicationFooterLink.d.ts +1 -1
  34. package/dist/components/ui/ApplicationFooter/ApplicationFooterLinkSection.d.ts +1 -1
  35. package/dist/components/ui/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  36. package/dist/components/ui/GenericErrorMessage/GenericErrorMessage.d.ts +1 -1
  37. package/dist/components/ui/NavLink/NavLink.d.ts +1 -1
  38. package/dist/components/ui/Notifications/NotificationItem.d.ts +1 -1
  39. package/dist/components/ui/Notifications/NotificationsDrawer.d.ts +1 -1
  40. package/dist/components/ui/OutageList/OutageItem.d.ts +1 -1
  41. package/dist/components/ui/OutageList/OutageList.d.ts +1 -1
  42. package/dist/components/ui/OutageList/OutageSection.d.ts +1 -1
  43. package/dist/components/ui/Sidebar/SidebarItem.d.ts +1 -1
  44. package/dist/components/ui/Sidebar/SidebarMenu.d.ts +1 -1
  45. package/dist/components/ui/Sidebar/SidebarMenuItem.d.ts +1 -1
  46. package/dist/components/ui/SortableList/SortableList.d.ts +1 -1
  47. package/dist/components/ui/SortableList/SortableListItem.d.ts +1 -1
  48. package/dist/components/ui/SortableList/SortableListItemDragHandle.d.ts +1 -1
  49. package/dist/components/ui/SortableList/SortableOverlay.d.ts +1 -1
  50. package/dist/components/ui/SortableList/context/SortableListItemContextProvider.d.ts +1 -1
  51. package/dist/components/ui/Table/Table.d.ts +1 -1
  52. package/dist/components/ui/Table/TableActionsCell.d.ts +1 -1
  53. package/dist/components/ui/Table/TableCaption.d.ts +1 -1
  54. package/dist/components/ui/Table/TableCell.d.ts +1 -1
  55. package/dist/components/ui/Table/TableCellAsyncContent.d.ts +1 -1
  56. package/dist/components/ui/Table/TableCheckboxCell.d.ts +1 -1
  57. package/dist/components/ui/Table/TableCheckboxHeader.d.ts +1 -1
  58. package/dist/components/ui/Table/TableFilter.d.ts +1 -1
  59. package/dist/components/ui/Table/TableFiltersSidebarItem.d.ts +2 -2
  60. package/dist/components/ui/Table/TableHeader.d.ts +1 -1
  61. package/dist/components/ui/Table/TableHeaderCell.d.ts +1 -1
  62. package/dist/components/ui/Table/TableHeaderFilter.d.ts +1 -1
  63. package/dist/components/ui/Table/TableMenu.d.ts +1 -1
  64. package/dist/components/ui/Table/TableReadableIndexCell.d.ts +1 -1
  65. package/dist/components/ui/Table/TableSidebarMenu.d.ts +1 -1
  66. package/dist/components/ui/UserInactivityConfirmation/UserInactivityConfirmation.d.ts +1 -1
  67. package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContextProvider.d.ts +1 -1
  68. package/dist/hoc/withPermissions/withPermissions.d.ts +1 -1
  69. package/dist/pages/AcceptInvitationPage/AcceptInvitationPage.d.ts +1 -1
  70. package/dist/pages/AdminPage/AdminPage.d.ts +1 -1
  71. package/dist/pages/ChooseIdentityProviderPage/ChooseIdentityProviderPage.d.ts +1 -1
  72. package/dist/pages/CrudPage/CrudPage.d.ts +1 -1
  73. package/dist/pages/ErrorPage/ErrorPage.d.ts +1 -1
  74. package/dist/pages/IdentifierIssuersAdminPage/IdentifierIssuersAdminPage.d.ts +1 -1
  75. package/dist/pages/OrganizationAdminPoliciesAdminPage/OrganizationAdminPoliciesAdminPage.d.ts +1 -1
  76. package/dist/pages/OrganizationContactsAdminPage/OrganizationContactsAdminPage.d.ts +1 -1
  77. package/dist/pages/OrganizationSitesAdminPage/OrganizationSitesAdminPage.d.ts +1 -1
  78. package/dist/pages/OrganizationsAdminPage/OrganizationsAdminPage.d.ts +1 -1
  79. package/dist/pages/OutagesAdminPage/OutagesAdminPage.d.ts +1 -1
  80. package/dist/pages/PostLoginPage/PostLoginPage.d.ts +1 -1
  81. package/dist/pages/PostLogoutPage/PostLogoutPage.d.ts +1 -1
  82. package/dist/pages/RouterErrorPage/RouterErrorPage.d.ts +1 -1
  83. package/dist/pages/UserInvitationsAdminPage/UserInvitationsAdminPage.d.ts +1 -1
  84. package/dist/pages/UsersAdminPage/UsersAdminPage.d.ts +1 -1
  85. package/dist/stores/tableStore/TableStoreContextProvider.d.ts +1 -1
  86. package/package.json +17 -17
@@ -1 +1 @@
1
- {"version":3,"file":"useQueryMemo.js","names":["React","React","React"],"sources":["../../../../node_modules/.pnpm/@tanstack+query-core@5.103.1/node_modules/@tanstack/query-core/build/modern/queryObserver.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.3.0/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.3.0/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.3.0/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.3.0/node_modules/@tanstack/react-query/build/modern/suspense.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.3.0/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.1_react@19.3.0/node_modules/@tanstack/react-query/build/modern/useQuery.js","../../src/hooks/useQueryMemo/useQueryMemo.ts"],"sourcesContent":["import { timeoutManager } from \"./timeoutManager.js\";\nimport { isValidTimeout, noop, replaceData, resolveQueryValue, shallowEqualObjects, timeUntilStale } from \"./utils.js\";\nimport { isServer } from \"./environmentManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { focusManager } from \"./focusManager.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { fetchState } from \"./query.js\";\n//#region src/queryObserver.ts\n/**\n* A `QueryObserver` watches a single query in the `QueryCache` and computes a\n* `QueryObserverResult` from its state, recomputing and notifying subscribers\n* whenever the underlying query (or the observer's options) changes. It is\n* the primitive that framework adapters (e.g. `useQuery`) build their hooks\n* on top of, but it can also be used directly to observe and switch between\n* queries outside of any framework.\n*\n* @example\n* ```ts\n* const observer = new QueryObserver(queryClient, {\n* queryKey: ['posts'],\n* queryFn: fetchPosts,\n* })\n*\n* const unsubscribe = observer.subscribe((result) => {\n* console.log(result.data)\n* })\n* ```\n*/\nvar QueryObserver = class extends Subscribable {\n\t#client;\n\t#currentQuery = void 0;\n\t#currentQueryInitialState = void 0;\n\t#currentResult = void 0;\n\t#currentResultState;\n\t#currentResultOptions;\n\t#selectError;\n\t#selectFn;\n\t#selectResult;\n\t#lastQueryWithDefinedData;\n\t#staleTimeoutId;\n\t#refetchIntervalId;\n\t#currentRefetchInterval;\n\t#trackedProps = /* @__PURE__ */ new Set();\n\tconstructor(client, options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.#client = client;\n\t\tthis.#selectError = null;\n\t\tthis.bindMethods();\n\t\tthis.setOptions(options);\n\t}\n\tbindMethods() {\n\t\tthis.refetch = this.refetch.bind(this);\n\t}\n\tonSubscribe() {\n\t\tif (this.listeners.size === 1) {\n\t\t\tthis.#currentQuery.addObserver(this);\n\t\t\tif (shouldFetchOnMount(this.#currentQuery, this.options)) this.#executeFetch();\n\t\t\telse this.updateResult();\n\t\t\tthis.#updateTimers();\n\t\t}\n\t}\n\tonUnsubscribe() {\n\t\tif (!this.hasListeners()) this.destroy();\n\t}\n\t/**\n\t* Returns whether the observed query is currently stale and configured\n\t* (via the `refetchOnReconnect` option) to refetch when the network\n\t* reconnects.\n\t*/\n\tshouldFetchOnReconnect() {\n\t\treturn shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnReconnect);\n\t}\n\t/**\n\t* Returns whether the observed query is currently stale and configured\n\t* (via the `refetchOnWindowFocus` option) to refetch when the window\n\t* regains focus.\n\t*/\n\tshouldFetchOnWindowFocus() {\n\t\treturn shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnWindowFocus);\n\t}\n\t/**\n\t* Stops observing the current query: clears all listeners, cancels the\n\t* stale and refetch-interval timers, and removes this observer from the\n\t* query it was observing.\n\t*/\n\tdestroy() {\n\t\tthis.listeners = /* @__PURE__ */ new Set();\n\t\tthis.#clearStaleTimeout();\n\t\tthis.#clearRefetchInterval();\n\t\tthis.#currentQuery.removeObserver(this);\n\t}\n\t/**\n\t* Updates the observer's options. This will re-resolve the query being\n\t* observed (switching to a different query if the `queryKey` changed),\n\t* trigger a fetch if the new options require one and the observer has\n\t* subscribers, recompute the current result, and reschedule the stale and\n\t* refetch-interval timers as needed.\n\t*\n\t* @example\n\t* ```ts\n\t* observer.setOptions({ queryKey: ['posts', 1], queryFn: () => fetchPost(1) })\n\t* // later: switch to a different query, reusing the same observer\n\t* observer.setOptions({ queryKey: ['posts', 2], queryFn: () => fetchPost(2) })\n\t* ```\n\t*/\n\tsetOptions(options) {\n\t\tconst prevOptions = this.options;\n\t\tconst prevQuery = this.#currentQuery;\n\t\tthis.options = this.#client.defaultQueryOptions(options);\n\t\tif (this.options.enabled !== void 0 && typeof this.options.enabled !== \"boolean\" && typeof this.options.enabled !== \"function\" && typeof resolveQueryValue(this.options.enabled, this.#currentQuery) !== \"boolean\") throw new Error(\"Expected enabled to be a boolean or a callback that returns a boolean\");\n\t\tthis.#updateQuery();\n\t\tthis.#currentQuery.setOptions(this.options);\n\t\tif (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) this.#client.getQueryCache().notify({\n\t\t\ttype: \"observerOptionsUpdated\",\n\t\t\tquery: this.#currentQuery,\n\t\t\tobserver: this\n\t\t});\n\t\tconst mounted = this.hasListeners();\n\t\tif (mounted && shouldFetchOptionally(this.#currentQuery, prevQuery, this.options, prevOptions)) this.#executeFetch();\n\t\tthis.updateResult();\n\t\tif (mounted && (this.#currentQuery !== prevQuery || resolveQueryValue(this.options.enabled, this.#currentQuery) !== resolveQueryValue(prevOptions.enabled, this.#currentQuery) || resolveQueryValue(this.options.staleTime, this.#currentQuery) !== resolveQueryValue(prevOptions.staleTime, this.#currentQuery))) this.#updateStaleTimeout();\n\t\tconst nextRefetchInterval = this.#computeRefetchInterval();\n\t\tif (mounted && (this.#currentQuery !== prevQuery || resolveQueryValue(this.options.enabled, this.#currentQuery) !== resolveQueryValue(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) this.#updateRefetchInterval(nextRefetchInterval);\n\t}\n\t/**\n\t* Computes the result the observer would produce for the given (already-defaulted) options\n\t* right now, building the underlying `Query` if it doesn't exist yet, without waiting for a\n\t* subscription callback. Called by framework adapters on every render (e.g. `useQuery`) so the\n\t* returned value is available synchronously, ahead of `setOptions` triggering an actual fetch.\n\t*/\n\tgetOptimisticResult(options) {\n\t\tconst query = this.#client.getQueryCache().build(this.#client, options);\n\t\tconst result = this.createResult(query, options);\n\t\tif (!shallowEqualObjects(this.getCurrentResult(), result)) {\n\t\t\tthis.#currentResult = result;\n\t\t\tthis.#currentResultOptions = this.options;\n\t\t\tthis.#currentResultState = this.#currentQuery.state;\n\t\t}\n\t\treturn result;\n\t}\n\t/**\n\t* Returns the most recently computed `QueryObserverResult` for the\n\t* observed query. This is a point-in-time read; to be notified of updates\n\t* as they happen, subscribe to the observer instead (its inherited\n\t* `subscribe` method).\n\t*\n\t* @example\n\t* ```ts\n\t* const result = observer.getCurrentResult()\n\t* console.log(result.status, result.data)\n\t* ```\n\t*/\n\tgetCurrentResult() {\n\t\treturn this.#currentResult;\n\t}\n\t/**\n\t* Wraps a `QueryObserverResult` in a `Proxy` that records which properties are read, via\n\t* {@link QueryObserver#trackProp} (and an optional `onPropTracked` callback). Used by framework\n\t* adapters when `notifyOnChangeProps` is not set, to implement its default \"only re-render on\n\t* properties you actually read\" behavior.\n\t*/\n\ttrackResult(result, onPropTracked) {\n\t\treturn new Proxy(result, { get: (target, key) => {\n\t\t\tthis.trackProp(key);\n\t\t\tonPropTracked?.(key);\n\t\t\treturn Reflect.get(target, key);\n\t\t} });\n\t}\n\t/**\n\t* Records that the given `QueryObserverResult` property was read, so a subsequent update only\n\t* notifies this observer if a tracked property actually changed. Normally called indirectly via\n\t* {@link QueryObserver#trackResult}'s proxy; exposed directly for adapters that track property\n\t* access themselves (e.g. through their own reactivity system) instead of via the proxy.\n\t*/\n\ttrackProp(key) {\n\t\tthis.#trackedProps.add(key);\n\t}\n\t/**\n\t* Returns the `Query` instance this observer is currently observing.\n\t*/\n\tgetCurrentQuery() {\n\t\treturn this.#currentQuery;\n\t}\n\t/**\n\t* Refetches the observed query and returns a promise that resolves with\n\t* the resulting `QueryObserverResult`.\n\t*\n\t* @example\n\t* ```ts\n\t* const result = await observer.refetch({ cancelRefetch: false })\n\t* console.log(result.data)\n\t* ```\n\t*/\n\trefetch({ ...options } = {}) {\n\t\treturn this.fetch({ ...options });\n\t}\n\t/**\n\t* Fetches a query defined by the given options without affecting this\n\t* observer's own tracked query or result, and returns a promise that\n\t* resolves with the `QueryObserverResult` for that fetch. This is useful\n\t* for prefetching data that another observer (e.g. a query about to be\n\t* navigated to) will need, ahead of time.\n\t*\n\t* @example\n\t* ```ts\n\t* const result = await observer.fetchOptimistic({\n\t* queryKey: ['posts', 2],\n\t* queryFn: () => fetchPost(2),\n\t* })\n\t* console.log(result.data)\n\t* ```\n\t*/\n\tfetchOptimistic(options) {\n\t\tconst defaultedOptions = this.#client.defaultQueryOptions(options);\n\t\tconst query = this.#client.getQueryCache().build(this.#client, defaultedOptions);\n\t\tlet unsubscribe = () => {};\n\t\tlet resolveEarly;\n\t\tconst cachePromise = new Promise((resolve) => {\n\t\t\tresolveEarly = resolve;\n\t\t\tunsubscribe = this.#client.getQueryCache().subscribe((event) => {\n\t\t\t\tif (event.type === \"updated\" && event.query.queryHash === query.queryHash && query.state.data !== void 0) {\n\t\t\t\t\tunsubscribe();\n\t\t\t\t\tresolve(this.createResult(query, defaultedOptions));\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\treturn Promise.race([query.fetch().then(() => {\n\t\t\tconst result = this.createResult(query, defaultedOptions);\n\t\t\tresolveEarly?.(result);\n\t\t\treturn result;\n\t\t}).finally(() => {\n\t\t\tunsubscribe();\n\t\t}), cachePromise]);\n\t}\n\tfetch(fetchOptions) {\n\t\treturn this.#executeFetch({\n\t\t\t...fetchOptions,\n\t\t\tcancelRefetch: fetchOptions.cancelRefetch ?? true\n\t\t}).then(() => {\n\t\t\tthis.updateResult();\n\t\t\treturn this.#currentResult;\n\t\t});\n\t}\n\t#executeFetch(fetchOptions) {\n\t\tthis.#updateQuery();\n\t\tlet promise = this.#currentQuery.fetch(this.options, fetchOptions);\n\t\tif (!fetchOptions?.throwOnError) promise = promise.catch(noop);\n\t\treturn promise;\n\t}\n\t#shouldScheduleTimer(timeout) {\n\t\treturn !isServer() && resolveQueryValue(this.options.enabled, this.#currentQuery) !== false && isValidTimeout(timeout);\n\t}\n\t#updateStaleTimeout() {\n\t\tthis.#clearStaleTimeout();\n\t\tconst staleTime = resolveQueryValue(this.options.staleTime, this.#currentQuery);\n\t\tif (this.#currentResult.isStale || !this.#shouldScheduleTimer(staleTime)) return;\n\t\tconst timeout = timeUntilStale(this.#currentResult.dataUpdatedAt, staleTime) + 1;\n\t\tthis.#staleTimeoutId = timeoutManager.setTimeout(() => {\n\t\t\tif (!this.#currentResult.isStale) this.updateResult();\n\t\t}, timeout);\n\t}\n\t#computeRefetchInterval() {\n\t\treturn resolveQueryValue(this.options.refetchInterval, this.#currentQuery) ?? false;\n\t}\n\t#updateRefetchInterval(nextInterval) {\n\t\tthis.#clearRefetchInterval();\n\t\tthis.#currentRefetchInterval = nextInterval;\n\t\tif (this.#currentRefetchInterval === 0 || !this.#shouldScheduleTimer(this.#currentRefetchInterval)) return;\n\t\tthis.#refetchIntervalId = timeoutManager.setInterval(() => {\n\t\t\tif (this.options.refetchIntervalInBackground || focusManager.isFocused()) this.#executeFetch();\n\t\t}, this.#currentRefetchInterval);\n\t}\n\t#updateTimers() {\n\t\tthis.#updateStaleTimeout();\n\t\tthis.#updateRefetchInterval(this.#computeRefetchInterval());\n\t}\n\t#clearStaleTimeout() {\n\t\tif (this.#staleTimeoutId !== void 0) {\n\t\t\ttimeoutManager.clearTimeout(this.#staleTimeoutId);\n\t\t\tthis.#staleTimeoutId = void 0;\n\t\t}\n\t}\n\t#clearRefetchInterval() {\n\t\tif (this.#refetchIntervalId !== void 0) {\n\t\t\ttimeoutManager.clearInterval(this.#refetchIntervalId);\n\t\t\tthis.#refetchIntervalId = void 0;\n\t\t}\n\t}\n\tcreateResult(query, options) {\n\t\tconst prevQuery = this.#currentQuery;\n\t\tconst prevOptions = this.options;\n\t\tconst prevResult = this.#currentResult;\n\t\tconst prevResultState = this.#currentResultState;\n\t\tconst prevResultOptions = this.#currentResultOptions;\n\t\tconst queryInitialState = query !== prevQuery ? query.state : this.#currentQueryInitialState;\n\t\tconst { state } = query;\n\t\tlet newState = { ...state };\n\t\tlet isPlaceholderData = false;\n\t\tlet data;\n\t\tif (options._optimisticResults) {\n\t\t\tconst mounted = this.hasListeners();\n\t\t\tconst fetchOnMount = !mounted && shouldFetchOnMount(query, options);\n\t\t\tconst fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);\n\t\t\tif (fetchOnMount || fetchOptionally) newState = {\n\t\t\t\t...newState,\n\t\t\t\t...fetchState(state.data, query.options)\n\t\t\t};\n\t\t\tif (options._optimisticResults === \"isRestoring\") newState.fetchStatus = \"idle\";\n\t\t}\n\t\tlet { error, errorUpdatedAt, status } = newState;\n\t\tdata = newState.data;\n\t\tlet skipSelect = false;\n\t\tif (options.placeholderData !== void 0 && data === void 0 && status === \"pending\") {\n\t\t\tlet placeholderData;\n\t\t\tif (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {\n\t\t\t\tplaceholderData = prevResult.data;\n\t\t\t\tskipSelect = true;\n\t\t\t} else placeholderData = typeof options.placeholderData === \"function\" ? options.placeholderData(this.#lastQueryWithDefinedData?.state.data, this.#lastQueryWithDefinedData) : options.placeholderData;\n\t\t\tif (placeholderData !== void 0) {\n\t\t\t\tstatus = \"success\";\n\t\t\t\tdata = replaceData(prevResult?.data, placeholderData, options);\n\t\t\t\tisPlaceholderData = true;\n\t\t\t}\n\t\t}\n\t\tif (options.select && data !== void 0 && !skipSelect) {\n\t\t\tif (prevResult && data === prevResultState?.data && options.select === this.#selectFn) data = this.#selectResult;\n\t\t\telse try {\n\t\t\t\tthis.#selectFn = options.select;\n\t\t\t\tdata = options.select(data);\n\t\t\t\tdata = replaceData(prevResult?.data, data, options);\n\t\t\t\tthis.#selectResult = data;\n\t\t\t\tthis.#selectError = null;\n\t\t\t} catch (selectError) {\n\t\t\t\tthis.#selectError = selectError;\n\t\t\t}\n\t\t} else if (data === void 0) this.#selectError = null;\n\t\tif (this.#selectError) {\n\t\t\terror = this.#selectError;\n\t\t\tdata = this.#selectResult;\n\t\t\terrorUpdatedAt = Date.now();\n\t\t\tstatus = \"error\";\n\t\t\tisPlaceholderData = false;\n\t\t}\n\t\tconst isFetching = newState.fetchStatus === \"fetching\";\n\t\tconst isPending = status === \"pending\";\n\t\tconst isError = status === \"error\";\n\t\tconst isLoading = isPending && isFetching;\n\t\tconst hasData = data !== void 0;\n\t\treturn {\n\t\t\tstatus,\n\t\t\tfetchStatus: newState.fetchStatus,\n\t\t\tisPending,\n\t\t\tisSuccess: status === \"success\",\n\t\t\tisError,\n\t\t\tisInitialLoading: isLoading,\n\t\t\tisLoading,\n\t\t\tdata,\n\t\t\tdataUpdatedAt: newState.dataUpdatedAt,\n\t\t\terror,\n\t\t\terrorUpdatedAt,\n\t\t\tfailureCount: newState.fetchFailureCount,\n\t\t\tfailureReason: newState.fetchFailureReason,\n\t\t\terrorUpdateCount: newState.errorUpdateCount,\n\t\t\tisFetched: query.isFetched(),\n\t\t\tisFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,\n\t\t\tisFetching,\n\t\t\tisRefetching: isFetching && !isPending,\n\t\t\tisLoadingError: isError && !hasData,\n\t\t\tisPaused: newState.fetchStatus === \"paused\",\n\t\t\tisPlaceholderData,\n\t\t\tisRefetchError: isError && hasData,\n\t\t\tisStale: isStale(query, options),\n\t\t\trefetch: this.refetch,\n\t\t\tisEnabled: resolveQueryValue(options.enabled, query) !== false\n\t\t};\n\t}\n\t/**\n\t* Recomputes and stores the current result from the current query/options, notifying listeners\n\t* if it changed. Framework adapters call this right after subscribing to make sure no query\n\t* update was missed in the gap between creating the observer and subscribing to it.\n\t*/\n\tupdateResult() {\n\t\tconst prevResult = this.#currentResult;\n\t\tconst nextResult = this.createResult(this.#currentQuery, this.options);\n\t\tthis.#currentResultState = this.#currentQuery.state;\n\t\tthis.#currentResultOptions = this.options;\n\t\tif (this.#currentResultState.data !== void 0) this.#lastQueryWithDefinedData = this.#currentQuery;\n\t\tif (shallowEqualObjects(nextResult, prevResult)) return;\n\t\tthis.#currentResult = nextResult;\n\t\tconst shouldNotifyListeners = () => {\n\t\t\tif (!prevResult) return true;\n\t\t\tconst { notifyOnChangeProps } = this.options;\n\t\t\tconst notifyOnChangePropsValue = typeof notifyOnChangeProps === \"function\" ? notifyOnChangeProps() : notifyOnChangeProps;\n\t\t\tif (notifyOnChangePropsValue === \"all\" || !notifyOnChangePropsValue && !this.#trackedProps.size) return true;\n\t\t\tconst includedProps = new Set(notifyOnChangePropsValue ?? this.#trackedProps);\n\t\t\tif (this.options.throwOnError) includedProps.add(\"error\");\n\t\t\treturn Object.keys(this.#currentResult).some((key) => {\n\t\t\t\tconst typedKey = key;\n\t\t\t\treturn this.#currentResult[typedKey] !== prevResult[typedKey] && includedProps.has(typedKey);\n\t\t\t});\n\t\t};\n\t\tconst notifyListeners = shouldNotifyListeners();\n\t\tnotifyManager.batch(() => {\n\t\t\tif (notifyListeners) this.listeners.forEach((listener) => {\n\t\t\t\tlistener(this.#currentResult);\n\t\t\t});\n\t\t\tthis.#client.getQueryCache().notify({\n\t\t\t\tquery: this.#currentQuery,\n\t\t\t\ttype: \"observerResultsUpdated\"\n\t\t\t});\n\t\t});\n\t}\n\t#updateQuery() {\n\t\tconst query = this.#client.getQueryCache().build(this.#client, this.options);\n\t\tif (query === this.#currentQuery) return;\n\t\tconst prevQuery = this.#currentQuery;\n\t\tthis.#currentQuery = query;\n\t\tthis.#currentQueryInitialState = query.state;\n\t\tif (this.hasListeners()) {\n\t\t\tprevQuery?.removeObserver(this);\n\t\t\tquery.addObserver(this);\n\t\t}\n\t}\n\t/** @internal */\n\tonQueryUpdate() {\n\t\tthis.updateResult();\n\t\tif (this.hasListeners()) this.#updateTimers();\n\t}\n};\nfunction shouldLoadOnMount(query, options) {\n\treturn resolveQueryValue(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === \"error\" && resolveQueryValue(options.retryOnMount, query) === false);\n}\nfunction shouldFetchOnMount(query, options) {\n\treturn shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);\n}\nfunction shouldFetchOn(query, options, field) {\n\tif (resolveQueryValue(options.enabled, query) !== false && resolveQueryValue(options.staleTime, query) !== \"static\") {\n\t\tconst value = resolveQueryValue(field, query);\n\t\treturn value === \"always\" || value !== false && isStale(query, options);\n\t}\n\treturn false;\n}\nfunction shouldFetchOptionally(query, prevQuery, options, prevOptions) {\n\treturn (query !== prevQuery || resolveQueryValue(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== \"error\") && isStale(query, options);\n}\nfunction isStale(query, options) {\n\treturn resolveQueryValue(options.enabled, query) !== false && query.isStaleByTime(resolveQueryValue(options.staleTime, query));\n}\n//#endregion\nexport { QueryObserver };\n\n//# sourceMappingURL=queryObserver.js.map","\"use client\";\nimport * as React from \"react\";\n//#region src/IsRestoringProvider.ts\nconst IsRestoringContext = React.createContext(false);\n/**\n* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to\n* check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid\n* race conditions between the restore and mounting queries.\n*\n* @returns `true` while a persisted client is being restored, `false` otherwise.\n*/\nconst useIsRestoring = () => React.useContext(IsRestoringContext);\n/**\n* The Provider that `PersistQueryClientProvider` uses to signal whether a persisted client is currently\n* being restored, read by `useIsRestoring`.\n*/\nconst IsRestoringProvider = IsRestoringContext.Provider;\n//#endregion\nexport { IsRestoringProvider, useIsRestoring };\n\n//# sourceMappingURL=IsRestoringProvider.js.map","\"use client\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n//#region src/QueryErrorResetBoundary.tsx\n/**\n* Resets any query errors within the boundary, so queries know they can try again.\n*/\nfunction createValue() {\n\tlet isReset = false;\n\treturn {\n\t\t/**\n\t\t* Clears the reset state, so queries know not to try again until the boundary is reset again.\n\t\t*/\n\t\tclearReset: () => {\n\t\t\tisReset = false;\n\t\t},\n\t\t/**\n\t\t* Resets any query errors within the boundary, so queries know they can try again.\n\t\t*/\n\t\treset: () => {\n\t\t\tisReset = true;\n\t\t},\n\t\t/**\n\t\t* Returns whether the boundary has been reset and not yet cleared.\n\t\t*/\n\t\tisReset: () => {\n\t\t\treturn isReset;\n\t\t}\n\t};\n}\nconst QueryErrorResetBoundaryContext = React.createContext(createValue());\n/**\n* This hook will reset any query errors within the closest `QueryErrorResetBoundary`. If there is no boundary\n* defined it will reset them globally.\n*\n* @returns The boundary's {@link QueryErrorResetBoundaryValue}.\n*\n* @example\n* ```tsx\n* import { ErrorBoundary } from 'react-error-boundary'\n* import { useQueryErrorResetBoundary } from '@tanstack/react-query'\n*\n* function App({ children }: { children: React.ReactNode }) {\n* const { reset } = useQueryErrorResetBoundary()\n*\n* return (\n* <ErrorBoundary\n* onReset={reset}\n* fallbackRender={({ resetErrorBoundary }) => (\n* <div>\n* There was an error!\n* <button onClick={() => resetErrorBoundary()}>Try again</button>\n* </div>\n* )}\n* >\n* {children}\n* </ErrorBoundary>\n* )\n* }\n* ```\n*/\nconst useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);\n/**\n* When using `suspense` or `throwOnError` in your queries, you need a way to let queries know that you want to\n* try again when re-rendering after some error occurred. With the `QueryErrorResetBoundary` component you can\n* reset any query errors within the boundaries of the component.\n*\n* @returns The `children`, rendered as-is, or called with the boundary's {@link QueryErrorResetBoundaryValue}\n* if `children` is a function.\n*\n* @example\n* ```tsx\n* import { ErrorBoundary } from 'react-error-boundary'\n* import { QueryErrorResetBoundary } from '@tanstack/react-query'\n*\n* function App() {\n* return (\n* <QueryErrorResetBoundary>\n* {({ reset }) => (\n* <ErrorBoundary\n* onReset={reset}\n* fallbackRender={({ resetErrorBoundary }) => (\n* <div>\n* There was an error!\n* <button onClick={() => resetErrorBoundary()}>Try again</button>\n* </div>\n* )}\n* >\n* <Page />\n* </ErrorBoundary>\n* )}\n* </QueryErrorResetBoundary>\n* )\n* }\n* ```\n*/\nconst QueryErrorResetBoundary = ({ children }) => {\n\tconst [value] = React.useState(() => createValue());\n\treturn /* @__PURE__ */ jsx(QueryErrorResetBoundaryContext.Provider, {\n\t\tvalue,\n\t\tchildren: typeof children === \"function\" ? children(value) : children\n\t});\n};\n//#endregion\nexport { QueryErrorResetBoundary, useQueryErrorResetBoundary };\n\n//# sourceMappingURL=QueryErrorResetBoundary.js.map","\"use client\";\nimport * as React from \"react\";\nimport { shouldThrowError } from \"@tanstack/query-core\";\n//#region src/errorBoundaryUtils.ts\nconst ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {\n\tconst throwOnError = query?.state.error && typeof options.throwOnError === \"function\" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;\n\tif (options.suspense || throwOnError) {\n\t\tif (!errorResetBoundary.isReset()) options.retryOnMount = false;\n\t}\n};\nconst useClearResetErrorBoundary = (errorResetBoundary) => {\n\tReact.useEffect(() => {\n\t\terrorResetBoundary.clearReset();\n\t}, [errorResetBoundary]);\n};\nconst getHasError = ({ result, errorResetBoundary, throwOnError, query, suspense }) => {\n\treturn result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));\n};\n//#endregion\nexport { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary };\n\n//# sourceMappingURL=errorBoundaryUtils.js.map","//#region src/suspense.ts\nconst defaultThrowOnError = (_error, query) => query.state.data === void 0;\nconst ensureSuspenseTimers = (defaultedOptions) => {\n\tif (defaultedOptions.suspense) {\n\t\tconst MIN_SUSPENSE_TIME_MS = 1e3;\n\t\tconst clamp = (value) => value === \"static\" ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS);\n\t\tconst originalStaleTime = defaultedOptions.staleTime;\n\t\tdefaultedOptions.staleTime = typeof originalStaleTime === \"function\" ? (...args) => clamp(originalStaleTime(...args)) : clamp(originalStaleTime);\n\t\tif (typeof defaultedOptions.gcTime === \"number\") defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, MIN_SUSPENSE_TIME_MS);\n\t}\n};\nconst shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;\nconst fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {\n\terrorResetBoundary.clearReset();\n});\n//#endregion\nexport { defaultThrowOnError, ensureSuspenseTimers, fetchOptimistic, shouldSuspend };\n\n//# sourceMappingURL=suspense.js.map","\"use client\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport { useIsRestoring } from \"./IsRestoringProvider.js\";\nimport { useQueryErrorResetBoundary } from \"./QueryErrorResetBoundary.js\";\nimport { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary } from \"./errorBoundaryUtils.js\";\nimport { ensureSuspenseTimers, fetchOptimistic, shouldSuspend } from \"./suspense.js\";\nimport * as React from \"react\";\nimport { noop, notifyManager } from \"@tanstack/query-core\";\n//#region src/useBaseQuery.ts\nfunction useBaseQuery(options, Observer, queryClient) {\n\tif (process.env.NODE_ENV !== \"production\") {\n\t\tif (typeof options !== \"object\" || Array.isArray(options)) throw new Error(\"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\t}\n\tconst isRestoring = useIsRestoring();\n\tconst errorResetBoundary = useQueryErrorResetBoundary();\n\tconst client = useQueryClient(queryClient);\n\tconst defaultedOptions = client.defaultQueryOptions(options);\n\tconst query = client.getQueryCache().get(defaultedOptions.queryHash);\n\tif (process.env.NODE_ENV !== \"production\") {\n\t\tif (!defaultedOptions.queryFn) console.error(`[${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\t}\n\tconst subscribed = options.subscribed !== false;\n\tdefaultedOptions._optimisticResults = isRestoring ? \"isRestoring\" : subscribed ? \"optimistic\" : void 0;\n\tensureSuspenseTimers(defaultedOptions);\n\tensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);\n\tuseClearResetErrorBoundary(errorResetBoundary);\n\tconst [observer] = React.useState(() => new Observer(client, defaultedOptions));\n\tconst result = observer.getOptimisticResult(defaultedOptions);\n\tconst shouldSubscribe = !isRestoring && subscribed;\n\tReact.useSyncExternalStore(React.useCallback((onStoreChange) => {\n\t\tconst unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;\n\t\tobserver.updateResult();\n\t\treturn unsubscribe;\n\t}, [observer, shouldSubscribe]), () => observer.getCurrentResult(), () => observer.getCurrentResult());\n\tReact.useEffect(() => {\n\t\tobserver.setOptions(defaultedOptions);\n\t}, [defaultedOptions, observer]);\n\tif (shouldSuspend(defaultedOptions, result)) throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);\n\tif (getHasError({\n\t\tresult,\n\t\terrorResetBoundary,\n\t\tthrowOnError: defaultedOptions.throwOnError,\n\t\tquery,\n\t\tsuspense: defaultedOptions.suspense\n\t})) throw result.error;\n\treturn !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;\n}\n//#endregion\nexport { useBaseQuery };\n\n//# sourceMappingURL=useBaseQuery.js.map","\"use client\";\nimport { useBaseQuery } from \"./useBaseQuery.js\";\nimport { QueryObserver } from \"@tanstack/query-core\";\n//#region src/useQuery.ts\nfunction useQuery(options, queryClient) {\n\treturn useBaseQuery(options, QueryObserver, queryClient);\n}\n//#endregion\nexport { useQuery };\n\n//# sourceMappingURL=useQuery.js.map","import type {\n DefaultError,\n QueryClient,\n QueryKey,\n UseQueryOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { useQuery } from '@tanstack/react-query';\nimport { useMemo } from 'react';\n\n\nexport const useQueryMemo = <TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryResult<NoInfer<TData>, TError> => {\n const query = useQuery(options, queryClient);\n\n return useMemo(() => {\n return query;\n\n // eslint-disable-next-line react-hooks/exhaustive-deps, react-hooks/use-memo\n }, [JSON.stringify({\n data: query.data,\n error: query.error,\n isEnabled: query.isEnabled,\n isFetching: query.isFetching,\n isLoading: query.isLoading,\n isPending: query.isPending,\n })]);\n};\n"],"x_google_ignoreList":[0,1,2,3,4,5,6],"mappings":";;;;;;AA4BA,IAAI,IAAgB,cAAc,EAAa;CAC9C;CACA,KAAgB,KAAK;CACrB,KAA4B,KAAK;CACjC,KAAiB,KAAK;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,qBAAgC,IAAI,IAAI;CACxC,YAAY,GAAQ,GAA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qD,IAA/B,EAAS,YAAY,CAAM;AAC3E;;;AC1CA,SAAS,EAAS,GAAS,GAAa;CACvC,OAAO,EAAa,GAAS,GAAe,CAAW;AACxD;;;ACKA,IAAa,KAA4H,GAAkE,MAAsE;CAC/Q,IAAM,IAAQ,EAAS,GAAS,CAAW;CAE3C,OAAO,QACE,GAGN,CAAC,KAAK,UAAU;EACjB,MAAM,EAAM;EACZ,OAAO,EAAM;EACb,WAAW,EAAM;EACjB,YAAY,EAAM;EAClB,WAAW,EAAM;EACjB,WAAW,EAAM;CACnB,CAAC,CAAC,CAAC;AACL"}
1
+ {"version":3,"file":"useQueryMemo.js","names":["React","React","React"],"sources":["../../../../node_modules/.pnpm/@tanstack+query-core@5.103.2/node_modules/@tanstack/query-core/build/modern/queryObserver.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/suspense.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js","../../../../node_modules/.pnpm/@tanstack+react-query@5.103.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/useQuery.js","../../src/hooks/useQueryMemo/useQueryMemo.ts"],"sourcesContent":["import { timeoutManager } from \"./timeoutManager.js\";\nimport { isValidTimeout, noop, replaceData, resolveQueryValue, shallowEqualObjects, timeUntilStale } from \"./utils.js\";\nimport { isServer } from \"./environmentManager.js\";\nimport { Subscribable } from \"./subscribable.js\";\nimport { focusManager } from \"./focusManager.js\";\nimport { notifyManager } from \"./notifyManager.js\";\nimport { fetchState } from \"./query.js\";\n//#region src/queryObserver.ts\n/**\n* A `QueryObserver` watches a single query in the `QueryCache` and computes a\n* `QueryObserverResult` from its state, recomputing and notifying subscribers\n* whenever the underlying query (or the observer's options) changes. It is\n* the primitive that framework adapters (e.g. `useQuery`) build their hooks\n* on top of, but it can also be used directly to observe and switch between\n* queries outside of any framework.\n*\n* @example\n* ```ts\n* const observer = new QueryObserver(queryClient, {\n* queryKey: ['posts'],\n* queryFn: fetchPosts,\n* })\n*\n* const unsubscribe = observer.subscribe((result) => {\n* console.log(result.data)\n* })\n* ```\n*/\nvar QueryObserver = class extends Subscribable {\n\t#client;\n\t#currentQuery = void 0;\n\t#currentQueryInitialState = void 0;\n\t#currentResult = void 0;\n\t#currentResultState;\n\t#currentResultOptions;\n\t#selectError;\n\t#selectFn;\n\t#selectResult;\n\t#lastQueryWithDefinedData;\n\t#staleTimeoutId;\n\t#refetchIntervalId;\n\t#currentRefetchInterval;\n\t#trackedProps = /* @__PURE__ */ new Set();\n\tconstructor(client, options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.#client = client;\n\t\tthis.#selectError = null;\n\t\tthis.bindMethods();\n\t\tthis.setOptions(options);\n\t}\n\tbindMethods() {\n\t\tthis.refetch = this.refetch.bind(this);\n\t}\n\tonSubscribe() {\n\t\tif (this.listeners.size === 1) {\n\t\t\tthis.#currentQuery.addObserver(this);\n\t\t\tif (shouldFetchOnMount(this.#currentQuery, this.options)) this.#executeFetch();\n\t\t\telse this.updateResult();\n\t\t\tthis.#updateTimers();\n\t\t}\n\t}\n\tonUnsubscribe() {\n\t\tif (!this.hasListeners()) this.destroy();\n\t}\n\t/**\n\t* Returns whether the observed query is currently stale and configured\n\t* (via the `refetchOnReconnect` option) to refetch when the network\n\t* reconnects.\n\t*/\n\tshouldFetchOnReconnect() {\n\t\treturn shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnReconnect);\n\t}\n\t/**\n\t* Returns whether the observed query is currently stale and configured\n\t* (via the `refetchOnWindowFocus` option) to refetch when the window\n\t* regains focus.\n\t*/\n\tshouldFetchOnWindowFocus() {\n\t\treturn shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnWindowFocus);\n\t}\n\t/**\n\t* Stops observing the current query: clears all listeners, cancels the\n\t* stale and refetch-interval timers, and removes this observer from the\n\t* query it was observing.\n\t*/\n\tdestroy() {\n\t\tthis.listeners = /* @__PURE__ */ new Set();\n\t\tthis.#clearStaleTimeout();\n\t\tthis.#clearRefetchInterval();\n\t\tthis.#currentQuery.removeObserver(this);\n\t}\n\t/**\n\t* Updates the observer's options. This will re-resolve the query being\n\t* observed (switching to a different query if the `queryKey` changed),\n\t* trigger a fetch if the new options require one and the observer has\n\t* subscribers, recompute the current result, and reschedule the stale and\n\t* refetch-interval timers as needed.\n\t*\n\t* @example\n\t* ```ts\n\t* observer.setOptions({ queryKey: ['posts', 1], queryFn: () => fetchPost(1) })\n\t* // later: switch to a different query, reusing the same observer\n\t* observer.setOptions({ queryKey: ['posts', 2], queryFn: () => fetchPost(2) })\n\t* ```\n\t*/\n\tsetOptions(options) {\n\t\tconst prevOptions = this.options;\n\t\tconst prevQuery = this.#currentQuery;\n\t\tthis.options = this.#client.defaultQueryOptions(options);\n\t\tif (this.options.enabled !== void 0 && typeof this.options.enabled !== \"boolean\" && typeof this.options.enabled !== \"function\" && typeof resolveQueryValue(this.options.enabled, this.#currentQuery) !== \"boolean\") throw new Error(\"Expected enabled to be a boolean or a callback that returns a boolean\");\n\t\tthis.#updateQuery();\n\t\tthis.#currentQuery.setOptions(this.options);\n\t\tif (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) this.#client.getQueryCache().notify({\n\t\t\ttype: \"observerOptionsUpdated\",\n\t\t\tquery: this.#currentQuery,\n\t\t\tobserver: this\n\t\t});\n\t\tconst mounted = this.hasListeners();\n\t\tif (mounted && shouldFetchOptionally(this.#currentQuery, prevQuery, this.options, prevOptions)) this.#executeFetch();\n\t\tthis.updateResult();\n\t\tif (mounted && (this.#currentQuery !== prevQuery || resolveQueryValue(this.options.enabled, this.#currentQuery) !== resolveQueryValue(prevOptions.enabled, this.#currentQuery) || resolveQueryValue(this.options.staleTime, this.#currentQuery) !== resolveQueryValue(prevOptions.staleTime, this.#currentQuery))) this.#updateStaleTimeout();\n\t\tconst nextRefetchInterval = this.#computeRefetchInterval();\n\t\tif (mounted && (this.#currentQuery !== prevQuery || resolveQueryValue(this.options.enabled, this.#currentQuery) !== resolveQueryValue(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) this.#updateRefetchInterval(nextRefetchInterval);\n\t}\n\t/**\n\t* Computes the result the observer would produce for the given (already-defaulted) options\n\t* right now, building the underlying `Query` if it doesn't exist yet, without waiting for a\n\t* subscription callback. Called by framework adapters on every render (e.g. `useQuery`) so the\n\t* returned value is available synchronously, ahead of `setOptions` triggering an actual fetch.\n\t*/\n\tgetOptimisticResult(options) {\n\t\tconst query = this.#client.getQueryCache().build(this.#client, options);\n\t\tconst result = this.createResult(query, options);\n\t\tif (!shallowEqualObjects(this.getCurrentResult(), result)) {\n\t\t\tthis.#currentResult = result;\n\t\t\tthis.#currentResultOptions = this.options;\n\t\t\tthis.#currentResultState = this.#currentQuery.state;\n\t\t}\n\t\treturn result;\n\t}\n\t/**\n\t* Returns the most recently computed `QueryObserverResult` for the\n\t* observed query. This is a point-in-time read; to be notified of updates\n\t* as they happen, subscribe to the observer instead (its inherited\n\t* `subscribe` method).\n\t*\n\t* @example\n\t* ```ts\n\t* const result = observer.getCurrentResult()\n\t* console.log(result.status, result.data)\n\t* ```\n\t*/\n\tgetCurrentResult() {\n\t\treturn this.#currentResult;\n\t}\n\t/**\n\t* Wraps a `QueryObserverResult` in a `Proxy` that records which properties are read, via\n\t* {@link QueryObserver#trackProp} (and an optional `onPropTracked` callback). Used by framework\n\t* adapters when `notifyOnChangeProps` is not set, to implement its default \"only re-render on\n\t* properties you actually read\" behavior.\n\t*/\n\ttrackResult(result, onPropTracked) {\n\t\treturn new Proxy(result, { get: (target, key) => {\n\t\t\tthis.trackProp(key);\n\t\t\tonPropTracked?.(key);\n\t\t\treturn Reflect.get(target, key);\n\t\t} });\n\t}\n\t/**\n\t* Records that the given `QueryObserverResult` property was read, so a subsequent update only\n\t* notifies this observer if a tracked property actually changed. Normally called indirectly via\n\t* {@link QueryObserver#trackResult}'s proxy; exposed directly for adapters that track property\n\t* access themselves (e.g. through their own reactivity system) instead of via the proxy.\n\t*/\n\ttrackProp(key) {\n\t\tthis.#trackedProps.add(key);\n\t}\n\t/**\n\t* Returns the `Query` instance this observer is currently observing.\n\t*/\n\tgetCurrentQuery() {\n\t\treturn this.#currentQuery;\n\t}\n\t/**\n\t* Refetches the observed query and returns a promise that resolves with\n\t* the resulting `QueryObserverResult`.\n\t*\n\t* @example\n\t* ```ts\n\t* const result = await observer.refetch({ cancelRefetch: false })\n\t* console.log(result.data)\n\t* ```\n\t*/\n\trefetch({ ...options } = {}) {\n\t\treturn this.fetch({ ...options });\n\t}\n\t/**\n\t* Fetches a query defined by the given options without affecting this\n\t* observer's own tracked query or result, and returns a promise that\n\t* resolves with the `QueryObserverResult` for that fetch. This is useful\n\t* for prefetching data that another observer (e.g. a query about to be\n\t* navigated to) will need, ahead of time.\n\t*\n\t* @example\n\t* ```ts\n\t* const result = await observer.fetchOptimistic({\n\t* queryKey: ['posts', 2],\n\t* queryFn: () => fetchPost(2),\n\t* })\n\t* console.log(result.data)\n\t* ```\n\t*/\n\tfetchOptimistic(options) {\n\t\tconst defaultedOptions = this.#client.defaultQueryOptions(options);\n\t\tconst query = this.#client.getQueryCache().build(this.#client, defaultedOptions);\n\t\tlet unsubscribe = () => {};\n\t\tlet resolveEarly;\n\t\tconst cachePromise = new Promise((resolve) => {\n\t\t\tresolveEarly = resolve;\n\t\t\tunsubscribe = this.#client.getQueryCache().subscribe((event) => {\n\t\t\t\tif (event.type === \"updated\" && event.query.queryHash === query.queryHash && query.state.data !== void 0) {\n\t\t\t\t\tunsubscribe();\n\t\t\t\t\tresolve(this.createResult(query, defaultedOptions));\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\treturn Promise.race([query.fetch().then(() => {\n\t\t\tconst result = this.createResult(query, defaultedOptions);\n\t\t\tresolveEarly?.(result);\n\t\t\treturn result;\n\t\t}).finally(() => {\n\t\t\tunsubscribe();\n\t\t}), cachePromise]);\n\t}\n\tfetch(fetchOptions) {\n\t\treturn this.#executeFetch({\n\t\t\t...fetchOptions,\n\t\t\tcancelRefetch: fetchOptions.cancelRefetch ?? true\n\t\t}).then(() => {\n\t\t\tthis.updateResult();\n\t\t\treturn this.#currentResult;\n\t\t});\n\t}\n\t#executeFetch(fetchOptions) {\n\t\tthis.#updateQuery();\n\t\tlet promise = this.#currentQuery.fetch(this.options, fetchOptions);\n\t\tif (!fetchOptions?.throwOnError) promise = promise.catch(noop);\n\t\treturn promise;\n\t}\n\t#shouldScheduleTimer(timeout) {\n\t\treturn !isServer() && resolveQueryValue(this.options.enabled, this.#currentQuery) !== false && isValidTimeout(timeout);\n\t}\n\t#updateStaleTimeout() {\n\t\tthis.#clearStaleTimeout();\n\t\tconst staleTime = resolveQueryValue(this.options.staleTime, this.#currentQuery);\n\t\tif (this.#currentResult.isStale || !this.#shouldScheduleTimer(staleTime)) return;\n\t\tconst timeout = timeUntilStale(this.#currentResult.dataUpdatedAt, staleTime) + 1;\n\t\tthis.#staleTimeoutId = timeoutManager.setTimeout(() => {\n\t\t\tif (!this.#currentResult.isStale) this.updateResult();\n\t\t}, timeout);\n\t}\n\t#computeRefetchInterval() {\n\t\treturn resolveQueryValue(this.options.refetchInterval, this.#currentQuery) ?? false;\n\t}\n\t#updateRefetchInterval(nextInterval) {\n\t\tthis.#clearRefetchInterval();\n\t\tthis.#currentRefetchInterval = nextInterval;\n\t\tif (this.#currentRefetchInterval === 0 || !this.#shouldScheduleTimer(this.#currentRefetchInterval)) return;\n\t\tthis.#refetchIntervalId = timeoutManager.setInterval(() => {\n\t\t\tif (this.options.refetchIntervalInBackground || focusManager.isFocused()) this.#executeFetch();\n\t\t}, this.#currentRefetchInterval);\n\t}\n\t#updateTimers() {\n\t\tthis.#updateStaleTimeout();\n\t\tthis.#updateRefetchInterval(this.#computeRefetchInterval());\n\t}\n\t#clearStaleTimeout() {\n\t\tif (this.#staleTimeoutId !== void 0) {\n\t\t\ttimeoutManager.clearTimeout(this.#staleTimeoutId);\n\t\t\tthis.#staleTimeoutId = void 0;\n\t\t}\n\t}\n\t#clearRefetchInterval() {\n\t\tif (this.#refetchIntervalId !== void 0) {\n\t\t\ttimeoutManager.clearInterval(this.#refetchIntervalId);\n\t\t\tthis.#refetchIntervalId = void 0;\n\t\t}\n\t}\n\tcreateResult(query, options) {\n\t\tconst prevQuery = this.#currentQuery;\n\t\tconst prevOptions = this.options;\n\t\tconst prevResult = this.#currentResult;\n\t\tconst prevResultState = this.#currentResultState;\n\t\tconst prevResultOptions = this.#currentResultOptions;\n\t\tconst queryInitialState = query !== prevQuery ? query.state : this.#currentQueryInitialState;\n\t\tconst { state } = query;\n\t\tlet newState = { ...state };\n\t\tlet isPlaceholderData = false;\n\t\tlet data;\n\t\tif (options._optimisticResults) {\n\t\t\tconst mounted = this.hasListeners();\n\t\t\tconst fetchOnMount = !mounted && shouldFetchOnMount(query, options);\n\t\t\tconst fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);\n\t\t\tif (fetchOnMount || fetchOptionally) newState = {\n\t\t\t\t...newState,\n\t\t\t\t...fetchState(state.data, query.options)\n\t\t\t};\n\t\t\tif (options._optimisticResults === \"isRestoring\") newState.fetchStatus = \"idle\";\n\t\t}\n\t\tlet { error, errorUpdatedAt, status } = newState;\n\t\tdata = newState.data;\n\t\tlet skipSelect = false;\n\t\tif (options.placeholderData !== void 0 && data === void 0 && status === \"pending\") {\n\t\t\tlet placeholderData;\n\t\t\tif (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {\n\t\t\t\tplaceholderData = prevResult.data;\n\t\t\t\tskipSelect = true;\n\t\t\t} else placeholderData = typeof options.placeholderData === \"function\" ? options.placeholderData(this.#lastQueryWithDefinedData?.state.data, this.#lastQueryWithDefinedData) : options.placeholderData;\n\t\t\tif (placeholderData !== void 0) {\n\t\t\t\tstatus = \"success\";\n\t\t\t\tdata = replaceData(prevResult?.data, placeholderData, options);\n\t\t\t\tisPlaceholderData = true;\n\t\t\t}\n\t\t}\n\t\tif (options.select && data !== void 0 && !skipSelect) {\n\t\t\tif (prevResult && data === prevResultState?.data && options.select === this.#selectFn) data = this.#selectResult;\n\t\t\telse try {\n\t\t\t\tthis.#selectFn = options.select;\n\t\t\t\tdata = options.select(data);\n\t\t\t\tdata = replaceData(prevResult?.data, data, options);\n\t\t\t\tthis.#selectResult = data;\n\t\t\t\tthis.#selectError = null;\n\t\t\t} catch (selectError) {\n\t\t\t\tthis.#selectError = selectError;\n\t\t\t}\n\t\t} else if (data === void 0) this.#selectError = null;\n\t\tif (this.#selectError) {\n\t\t\terror = this.#selectError;\n\t\t\tdata = this.#selectResult;\n\t\t\terrorUpdatedAt = Date.now();\n\t\t\tstatus = \"error\";\n\t\t\tisPlaceholderData = false;\n\t\t}\n\t\tconst isFetching = newState.fetchStatus === \"fetching\";\n\t\tconst isPending = status === \"pending\";\n\t\tconst isError = status === \"error\";\n\t\tconst isLoading = isPending && isFetching;\n\t\tconst hasData = data !== void 0;\n\t\treturn {\n\t\t\tstatus,\n\t\t\tfetchStatus: newState.fetchStatus,\n\t\t\tisPending,\n\t\t\tisSuccess: status === \"success\",\n\t\t\tisError,\n\t\t\tisInitialLoading: isLoading,\n\t\t\tisLoading,\n\t\t\tdata,\n\t\t\tdataUpdatedAt: newState.dataUpdatedAt,\n\t\t\terror,\n\t\t\terrorUpdatedAt,\n\t\t\tfailureCount: newState.fetchFailureCount,\n\t\t\tfailureReason: newState.fetchFailureReason,\n\t\t\terrorUpdateCount: newState.errorUpdateCount,\n\t\t\tisFetched: query.isFetched(),\n\t\t\tisFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,\n\t\t\tisFetching,\n\t\t\tisRefetching: isFetching && !isPending,\n\t\t\tisLoadingError: isError && !hasData,\n\t\t\tisPaused: newState.fetchStatus === \"paused\",\n\t\t\tisPlaceholderData,\n\t\t\tisRefetchError: isError && hasData,\n\t\t\tisStale: isStale(query, options),\n\t\t\trefetch: this.refetch,\n\t\t\tisEnabled: resolveQueryValue(options.enabled, query) !== false\n\t\t};\n\t}\n\t/**\n\t* Recomputes and stores the current result from the current query/options, notifying listeners\n\t* if it changed. Framework adapters call this right after subscribing to make sure no query\n\t* update was missed in the gap between creating the observer and subscribing to it.\n\t*/\n\tupdateResult() {\n\t\tconst prevResult = this.#currentResult;\n\t\tconst nextResult = this.createResult(this.#currentQuery, this.options);\n\t\tthis.#currentResultState = this.#currentQuery.state;\n\t\tthis.#currentResultOptions = this.options;\n\t\tif (this.#currentResultState.data !== void 0) this.#lastQueryWithDefinedData = this.#currentQuery;\n\t\tif (shallowEqualObjects(nextResult, prevResult)) return;\n\t\tthis.#currentResult = nextResult;\n\t\tconst shouldNotifyListeners = () => {\n\t\t\tif (!prevResult) return true;\n\t\t\tconst { notifyOnChangeProps } = this.options;\n\t\t\tconst notifyOnChangePropsValue = typeof notifyOnChangeProps === \"function\" ? notifyOnChangeProps() : notifyOnChangeProps;\n\t\t\tif (notifyOnChangePropsValue === \"all\" || !notifyOnChangePropsValue && !this.#trackedProps.size) return true;\n\t\t\tconst includedProps = new Set(notifyOnChangePropsValue ?? this.#trackedProps);\n\t\t\tif (this.options.throwOnError) includedProps.add(\"error\");\n\t\t\treturn Object.keys(this.#currentResult).some((key) => {\n\t\t\t\tconst typedKey = key;\n\t\t\t\treturn this.#currentResult[typedKey] !== prevResult[typedKey] && includedProps.has(typedKey);\n\t\t\t});\n\t\t};\n\t\tconst notifyListeners = shouldNotifyListeners();\n\t\tnotifyManager.batch(() => {\n\t\t\tif (notifyListeners) this.listeners.forEach((listener) => {\n\t\t\t\tlistener(this.#currentResult);\n\t\t\t});\n\t\t\tthis.#client.getQueryCache().notify({\n\t\t\t\tquery: this.#currentQuery,\n\t\t\t\ttype: \"observerResultsUpdated\"\n\t\t\t});\n\t\t});\n\t}\n\t#updateQuery() {\n\t\tconst query = this.#client.getQueryCache().build(this.#client, this.options);\n\t\tif (query === this.#currentQuery) return;\n\t\tconst prevQuery = this.#currentQuery;\n\t\tthis.#currentQuery = query;\n\t\tthis.#currentQueryInitialState = query.state;\n\t\tif (this.hasListeners()) {\n\t\t\tprevQuery?.removeObserver(this);\n\t\t\tquery.addObserver(this);\n\t\t}\n\t}\n\t/** @internal */\n\tonQueryUpdate() {\n\t\tthis.updateResult();\n\t\tif (this.hasListeners()) this.#updateTimers();\n\t}\n};\nfunction shouldLoadOnMount(query, options) {\n\treturn resolveQueryValue(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === \"error\" && resolveQueryValue(options.retryOnMount, query) === false);\n}\nfunction shouldFetchOnMount(query, options) {\n\treturn shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);\n}\nfunction shouldFetchOn(query, options, field) {\n\tif (resolveQueryValue(options.enabled, query) !== false && resolveQueryValue(options.staleTime, query) !== \"static\") {\n\t\tconst value = resolveQueryValue(field, query);\n\t\treturn value === \"always\" || value !== false && isStale(query, options);\n\t}\n\treturn false;\n}\nfunction shouldFetchOptionally(query, prevQuery, options, prevOptions) {\n\treturn (query !== prevQuery || resolveQueryValue(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== \"error\") && isStale(query, options);\n}\nfunction isStale(query, options) {\n\treturn resolveQueryValue(options.enabled, query) !== false && query.isStaleByTime(resolveQueryValue(options.staleTime, query));\n}\n//#endregion\nexport { QueryObserver };\n\n//# sourceMappingURL=queryObserver.js.map","\"use client\";\nimport * as React from \"react\";\n//#region src/IsRestoringProvider.ts\nconst IsRestoringContext = React.createContext(false);\n/**\n* If you are using `PersistQueryClientProvider`, you can also use the `useIsRestoring` hook alongside it to\n* check if a restore is currently in progress. `useQuery` and friends also check this internally to avoid\n* race conditions between the restore and mounting queries.\n*\n* @returns `true` while a persisted client is being restored, `false` otherwise.\n*/\nconst useIsRestoring = () => React.useContext(IsRestoringContext);\n/**\n* The Provider that `PersistQueryClientProvider` uses to signal whether a persisted client is currently\n* being restored, read by `useIsRestoring`.\n*/\nconst IsRestoringProvider = IsRestoringContext.Provider;\n//#endregion\nexport { IsRestoringProvider, useIsRestoring };\n\n//# sourceMappingURL=IsRestoringProvider.js.map","\"use client\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n//#region src/QueryErrorResetBoundary.tsx\n/**\n* Resets any query errors within the boundary, so queries know they can try again.\n*/\nfunction createValue() {\n\tlet isReset = false;\n\treturn {\n\t\t/**\n\t\t* Clears the reset state, so queries know not to try again until the boundary is reset again.\n\t\t*/\n\t\tclearReset: () => {\n\t\t\tisReset = false;\n\t\t},\n\t\t/**\n\t\t* Resets any query errors within the boundary, so queries know they can try again.\n\t\t*/\n\t\treset: () => {\n\t\t\tisReset = true;\n\t\t},\n\t\t/**\n\t\t* Returns whether the boundary has been reset and not yet cleared.\n\t\t*/\n\t\tisReset: () => {\n\t\t\treturn isReset;\n\t\t}\n\t};\n}\nconst QueryErrorResetBoundaryContext = React.createContext(createValue());\n/**\n* This hook will reset any query errors within the closest `QueryErrorResetBoundary`. If there is no boundary\n* defined it will reset them globally.\n*\n* @returns The boundary's {@link QueryErrorResetBoundaryValue}.\n*\n* @example\n* ```tsx\n* import { ErrorBoundary } from 'react-error-boundary'\n* import { useQueryErrorResetBoundary } from '@tanstack/react-query'\n*\n* function App({ children }: { children: React.ReactNode }) {\n* const { reset } = useQueryErrorResetBoundary()\n*\n* return (\n* <ErrorBoundary\n* onReset={reset}\n* fallbackRender={({ resetErrorBoundary }) => (\n* <div>\n* There was an error!\n* <button onClick={() => resetErrorBoundary()}>Try again</button>\n* </div>\n* )}\n* >\n* {children}\n* </ErrorBoundary>\n* )\n* }\n* ```\n*/\nconst useQueryErrorResetBoundary = () => React.useContext(QueryErrorResetBoundaryContext);\n/**\n* When using `suspense` or `throwOnError` in your queries, you need a way to let queries know that you want to\n* try again when re-rendering after some error occurred. With the `QueryErrorResetBoundary` component you can\n* reset any query errors within the boundaries of the component.\n*\n* @returns The `children`, rendered as-is, or called with the boundary's {@link QueryErrorResetBoundaryValue}\n* if `children` is a function.\n*\n* @example\n* ```tsx\n* import { ErrorBoundary } from 'react-error-boundary'\n* import { QueryErrorResetBoundary } from '@tanstack/react-query'\n*\n* function App() {\n* return (\n* <QueryErrorResetBoundary>\n* {({ reset }) => (\n* <ErrorBoundary\n* onReset={reset}\n* fallbackRender={({ resetErrorBoundary }) => (\n* <div>\n* There was an error!\n* <button onClick={() => resetErrorBoundary()}>Try again</button>\n* </div>\n* )}\n* >\n* <Page />\n* </ErrorBoundary>\n* )}\n* </QueryErrorResetBoundary>\n* )\n* }\n* ```\n*/\nconst QueryErrorResetBoundary = ({ children }) => {\n\tconst [value] = React.useState(() => createValue());\n\treturn /* @__PURE__ */ jsx(QueryErrorResetBoundaryContext.Provider, {\n\t\tvalue,\n\t\tchildren: typeof children === \"function\" ? children(value) : children\n\t});\n};\n//#endregion\nexport { QueryErrorResetBoundary, useQueryErrorResetBoundary };\n\n//# sourceMappingURL=QueryErrorResetBoundary.js.map","\"use client\";\nimport * as React from \"react\";\nimport { shouldThrowError } from \"@tanstack/query-core\";\n//#region src/errorBoundaryUtils.ts\nconst ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {\n\tconst throwOnError = query?.state.error && typeof options.throwOnError === \"function\" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;\n\tif (options.suspense || throwOnError) {\n\t\tif (!errorResetBoundary.isReset()) options.retryOnMount = false;\n\t}\n};\nconst useClearResetErrorBoundary = (errorResetBoundary) => {\n\tReact.useEffect(() => {\n\t\terrorResetBoundary.clearReset();\n\t}, [errorResetBoundary]);\n};\nconst getHasError = ({ result, errorResetBoundary, throwOnError, query, suspense }) => {\n\treturn result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));\n};\n//#endregion\nexport { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary };\n\n//# sourceMappingURL=errorBoundaryUtils.js.map","//#region src/suspense.ts\nconst defaultThrowOnError = (_error, query) => query.state.data === void 0;\nconst ensureSuspenseTimers = (defaultedOptions) => {\n\tif (defaultedOptions.suspense) {\n\t\tconst MIN_SUSPENSE_TIME_MS = 1e3;\n\t\tconst clamp = (value) => value === \"static\" ? value : Math.max(value ?? MIN_SUSPENSE_TIME_MS, MIN_SUSPENSE_TIME_MS);\n\t\tconst originalStaleTime = defaultedOptions.staleTime;\n\t\tdefaultedOptions.staleTime = typeof originalStaleTime === \"function\" ? (...args) => clamp(originalStaleTime(...args)) : clamp(originalStaleTime);\n\t\tif (typeof defaultedOptions.gcTime === \"number\") defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, MIN_SUSPENSE_TIME_MS);\n\t}\n};\nconst shouldSuspend = (defaultedOptions, result) => defaultedOptions?.suspense && result.isPending;\nconst fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observer.fetchOptimistic(defaultedOptions).catch(() => {\n\terrorResetBoundary.clearReset();\n});\n//#endregion\nexport { defaultThrowOnError, ensureSuspenseTimers, fetchOptimistic, shouldSuspend };\n\n//# sourceMappingURL=suspense.js.map","\"use client\";\nimport { useQueryClient } from \"./QueryClientProvider.js\";\nimport { useIsRestoring } from \"./IsRestoringProvider.js\";\nimport { useQueryErrorResetBoundary } from \"./QueryErrorResetBoundary.js\";\nimport { ensurePreventErrorBoundaryRetry, getHasError, useClearResetErrorBoundary } from \"./errorBoundaryUtils.js\";\nimport { ensureSuspenseTimers, fetchOptimistic, shouldSuspend } from \"./suspense.js\";\nimport * as React from \"react\";\nimport { noop, notifyManager } from \"@tanstack/query-core\";\n//#region src/useBaseQuery.ts\nfunction useBaseQuery(options, Observer, queryClient) {\n\tif (process.env.NODE_ENV !== \"production\") {\n\t\tif (typeof options !== \"object\" || Array.isArray(options)) throw new Error(\"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\t}\n\tconst isRestoring = useIsRestoring();\n\tconst errorResetBoundary = useQueryErrorResetBoundary();\n\tconst client = useQueryClient(queryClient);\n\tconst defaultedOptions = client.defaultQueryOptions(options);\n\tconst query = client.getQueryCache().get(defaultedOptions.queryHash);\n\tif (process.env.NODE_ENV !== \"production\") {\n\t\tif (!defaultedOptions.queryFn) console.error(`[${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\t}\n\tconst subscribed = options.subscribed !== false;\n\tdefaultedOptions._optimisticResults = isRestoring ? \"isRestoring\" : subscribed ? \"optimistic\" : void 0;\n\tensureSuspenseTimers(defaultedOptions);\n\tensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);\n\tuseClearResetErrorBoundary(errorResetBoundary);\n\tconst [observer] = React.useState(() => new Observer(client, defaultedOptions));\n\tconst result = observer.getOptimisticResult(defaultedOptions);\n\tconst shouldSubscribe = !isRestoring && subscribed;\n\tReact.useSyncExternalStore(React.useCallback((onStoreChange) => {\n\t\tconst unsubscribe = shouldSubscribe ? observer.subscribe(notifyManager.batchCalls(onStoreChange)) : noop;\n\t\tobserver.updateResult();\n\t\treturn unsubscribe;\n\t}, [observer, shouldSubscribe]), () => observer.getCurrentResult(), () => observer.getCurrentResult());\n\tReact.useEffect(() => {\n\t\tobserver.setOptions(defaultedOptions);\n\t}, [defaultedOptions, observer]);\n\tif (shouldSuspend(defaultedOptions, result)) throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary);\n\tif (getHasError({\n\t\tresult,\n\t\terrorResetBoundary,\n\t\tthrowOnError: defaultedOptions.throwOnError,\n\t\tquery,\n\t\tsuspense: defaultedOptions.suspense\n\t})) throw result.error;\n\treturn !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;\n}\n//#endregion\nexport { useBaseQuery };\n\n//# sourceMappingURL=useBaseQuery.js.map","\"use client\";\nimport { useBaseQuery } from \"./useBaseQuery.js\";\nimport { QueryObserver } from \"@tanstack/query-core\";\n//#region src/useQuery.ts\nfunction useQuery(options, queryClient) {\n\treturn useBaseQuery(options, QueryObserver, queryClient);\n}\n//#endregion\nexport { useQuery };\n\n//# sourceMappingURL=useQuery.js.map","import type {\n DefaultError,\n QueryClient,\n QueryKey,\n UseQueryOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { useQuery } from '@tanstack/react-query';\nimport { useMemo } from 'react';\n\n\nexport const useQueryMemo = <TQueryFnData = unknown, TError = DefaultError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, queryClient?: QueryClient): UseQueryResult<NoInfer<TData>, TError> => {\n const query = useQuery(options, queryClient);\n\n return useMemo(() => {\n return query;\n\n // eslint-disable-next-line react-hooks/exhaustive-deps, react-hooks/use-memo\n }, [JSON.stringify({\n data: query.data,\n error: query.error,\n isEnabled: query.isEnabled,\n isFetching: query.isFetching,\n isLoading: query.isLoading,\n isPending: query.isPending,\n })]);\n};\n"],"x_google_ignoreList":[0,1,2,3,4,5,6],"mappings":";;;;;;AA4BA,IAAI,IAAgB,cAAc,EAAa;CAC9C;CACA,KAAgB,KAAK;CACrB,KAA4B,KAAK;CACjC,KAAiB,KAAK;CACtB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,qBAAgC,IAAI,IAAI;CACxC,YAAY,GAAQ,GAAS;EAM5B,AALA,MAAM,G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,CAAM;AAC3E;;;AC1CA,SAAS,EAAS,GAAS,GAAa;CACvC,OAAO,EAAa,GAAS,GAAe,CAAW;AACxD;;;ACKA,IAAa,KAA4H,GAAkE,MAAsE;CAC/Q,IAAM,IAAQ,EAAS,GAAS,CAAW;CAE3C,OAAO,QACE,GAGN,CAAC,KAAK,UAAU;EACjB,MAAM,EAAM;EACZ,OAAO,EAAM;EACb,WAAW,EAAM;EACjB,YAAY,EAAM;EAClB,WAAW,EAAM;EACjB,WAAW,EAAM;CACnB,CAAC,CAAC,CAAC;AACL"}
@@ -1 +1 @@
1
- export declare const App: () => import("react").JSX.Element;
1
+ export declare const App: () => import('react').JSX.Element;
@@ -1 +1 @@
1
- export declare const AppRouterProvider: () => import("react").JSX.Element;
1
+ export declare const AppRouterProvider: () => import('react').JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare const AuthenticationWrapper: ({ children }: PropsWithChildren) => import("react").JSX.Element;
2
+ export declare const AuthenticationWrapper: ({ children }: PropsWithChildren) => import('react').JSX.Element;
@@ -1 +1 @@
1
- export declare const RouterRoot: () => import("react").JSX.Element;
1
+ export declare const RouterRoot: () => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { BooleanFilter } from '../../../classes/filters/BooleanFilter';
2
2
  export type BooleanFilterFieldProps = {
3
3
  readonly filter: BooleanFilter;
4
4
  };
5
- export declare const BooleanFilterField: ({ filter }: BooleanFilterFieldProps) => import("react").JSX.Element;
5
+ export declare const BooleanFilterField: ({ filter }: BooleanFilterFieldProps) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { DateFilter } from '../../../classes/filters/DateFilter';
2
2
  export type DateFilterFieldProps = {
3
3
  readonly filter: DateFilter;
4
4
  };
5
- export declare const DateFilterField: ({ filter }: DateFilterFieldProps) => import("react").JSX.Element;
5
+ export declare const DateFilterField: ({ filter }: DateFilterFieldProps) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { GeoFilter } from '../../../classes/filters/GeoFilter';
2
2
  export type GeoFilterFieldProps = {
3
3
  readonly filter: GeoFilter;
4
4
  };
5
- export declare const GeoFilterField: ({ filter }: GeoFilterFieldProps) => import("react").JSX.Element;
5
+ export declare const GeoFilterField: ({ filter }: GeoFilterFieldProps) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { MultiSelectFilter } from '../../../classes/filters/MultiSelectFilter';
2
2
  export type MultiSelectFilterFieldProps = {
3
3
  readonly filter: MultiSelectFilter;
4
4
  };
5
- export declare const MultiSelectFilterField: ({ filter }: MultiSelectFilterFieldProps) => import("react").JSX.Element;
5
+ export declare const MultiSelectFilterField: ({ filter }: MultiSelectFilterFieldProps) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { NumberRangeFilter } from '../../../classes/filters/NumberRangeFilter';
2
2
  export type NumberRangeFilterFieldProps = {
3
3
  readonly filter: NumberRangeFilter;
4
4
  };
5
- export declare const NumberRangeFilterField: ({ filter }: NumberRangeFilterFieldProps) => import("react").JSX.Element;
5
+ export declare const NumberRangeFilterField: ({ filter }: NumberRangeFilterFieldProps) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { TextFilter } from '../../../classes/filters/TextFilter';
2
2
  export type TextFilterFieldProps = {
3
3
  readonly filter: TextFilter;
4
4
  };
5
- export declare const TextFilterField: ({ filter }: TextFilterFieldProps) => import("react").JSX.Element;
5
+ export declare const TextFilterField: ({ filter }: TextFilterFieldProps) => import('react').JSX.Element;
@@ -3,4 +3,4 @@ export type ApplicationBarProps = {
3
3
  readonly fullWidth?: boolean;
4
4
  readonly singleAction?: boolean;
5
5
  };
6
- export declare const ApplicationBar: ({ fullWidth, singleAction, }: ApplicationBarProps) => import("react").JSX.Element;
6
+ export declare const ApplicationBar: ({ fullWidth, singleAction, }: ApplicationBarProps) => import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export type ApplicationBarActionsProps = {
2
2
  readonly fullWidth?: boolean;
3
3
  };
4
- export declare const ApplicationBarActions: ({ fullWidth }: ApplicationBarActionsProps) => import("react").JSX.Element;
4
+ export declare const ApplicationBarActions: ({ fullWidth }: ApplicationBarActionsProps) => import('react').JSX.Element;
@@ -1 +1 @@
1
- export declare const ApplicationBarActionsFeedbackItem: () => import("react").JSX.Element;
1
+ export declare const ApplicationBarActionsFeedbackItem: () => import('react').JSX.Element;
@@ -1 +1 @@
1
- export declare const ApplicationBarActionsInfoItem: () => import("react").JSX.Element;
1
+ export declare const ApplicationBarActionsInfoItem: () => import('react').JSX.Element;
@@ -1 +1 @@
1
- export declare const ApplicationBarActionsNotificationsItem: () => import("react").JSX.Element;
1
+ export declare const ApplicationBarActionsNotificationsItem: () => import('react').JSX.Element;
@@ -1 +1 @@
1
- export declare const ApplicationBarActionsOrganizationSwitcherItem: () => import("react").JSX.Element;
1
+ export declare const ApplicationBarActionsOrganizationSwitcherItem: () => import('react').JSX.Element;
@@ -1 +1 @@
1
- export declare const ApplicationBarActionsOutagesItem: () => import("react").JSX.Element;
1
+ export declare const ApplicationBarActionsOutagesItem: () => import('react').JSX.Element;
@@ -1 +1 @@
1
- export declare const ApplicationBarActionsUserItem: () => import("react").JSX.Element;
1
+ export declare const ApplicationBarActionsUserItem: () => import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export type ApplicationBarNavigationMenuProps = {
2
2
  readonly fullWidth?: boolean;
3
3
  };
4
- export declare const ApplicationBarNavigationMenu: ({ fullWidth }: ApplicationBarNavigationMenuProps) => import("react").JSX.Element;
4
+ export declare const ApplicationBarNavigationMenu: ({ fullWidth }: ApplicationBarNavigationMenuProps) => import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export declare const UserOrganizationAdminMenuItem: {
2
- (props: Record<string, never>): import("react").JSX.Element;
2
+ (props: Record<string, never>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export declare const UserOwnOrganizationMenuItem: {
2
- (props: Record<string, never>): import("react").JSX.Element;
2
+ (props: Record<string, never>): import('react').JSX.Element;
3
3
  displayName: string;
4
4
  };
@@ -1,4 +1,4 @@
1
1
  export type ApplicationFooterProps = {
2
2
  readonly fullWidth?: boolean;
3
3
  };
4
- export declare const ApplicationFooter: ({ fullWidth }: ApplicationFooterProps) => import("react").JSX.Element;
4
+ export declare const ApplicationFooter: ({ fullWidth }: ApplicationFooterProps) => import('react').JSX.Element;
@@ -4,4 +4,4 @@ export type ApplicationFooterLinkProps = BoxProps<'li'> & PropsWithChildren<{
4
4
  readonly href?: string;
5
5
  readonly onClick?: () => void;
6
6
  }>;
7
- export declare const ApplicationFooterLink: ({ children, href, onClick, ...boxProps }: ApplicationFooterLinkProps) => import("react").JSX.Element;
7
+ export declare const ApplicationFooterLink: ({ children, href, onClick, ...boxProps }: ApplicationFooterLinkProps) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { PropsWithChildren } from 'react';
2
2
  export type ApplicationFooterLinkSectionProps = PropsWithChildren<{
3
3
  readonly header: string;
4
4
  }>;
5
- export declare const ApplicationFooterLinkSection: ({ children, header }: ApplicationFooterLinkSectionProps) => import("react").JSX.Element;
5
+ export declare const ApplicationFooterLinkSection: ({ children, header }: ApplicationFooterLinkSectionProps) => import('react').JSX.Element;
@@ -1 +1 @@
1
- export declare const Breadcrumbs: () => import("react").JSX.Element;
1
+ export declare const Breadcrumbs: () => import('react').JSX.Element;
@@ -2,4 +2,4 @@ export type GenericErrorMessageProps = {
2
2
  readonly error?: unknown;
3
3
  readonly shouldHideActionButtons?: boolean;
4
4
  };
5
- export declare const GenericErrorMessage: ({ error, shouldHideActionButtons }: GenericErrorMessageProps) => import("react").JSX.Element;
5
+ export declare const GenericErrorMessage: ({ error, shouldHideActionButtons }: GenericErrorMessageProps) => import('react').JSX.Element;
@@ -4,4 +4,4 @@ export interface NavLinkProps extends ReactRouterDomNavLinkProps {
4
4
  readonly activeAsText?: boolean;
5
5
  readonly children: ReactNode;
6
6
  }
7
- export declare const NavLink: ({ activeAsText, children, ...props }: NavLinkProps) => import("react").JSX.Element;
7
+ export declare const NavLink: ({ activeAsText, children, ...props }: NavLinkProps) => import('react').JSX.Element;
@@ -5,4 +5,4 @@ export type NotificationItemProps = {
5
5
  readonly onClose: (key: string) => void;
6
6
  readonly showTimestamp?: boolean;
7
7
  };
8
- export declare const NotificationItem: ({ allowClose, notification, onClose, showTimestamp }: NotificationItemProps) => import("react").JSX.Element;
8
+ export declare const NotificationItem: ({ allowClose, notification, onClose, showTimestamp }: NotificationItemProps) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ export type NotificationsDrawerProps = {
2
2
  readonly onDrawerClose: () => void;
3
3
  readonly open: boolean;
4
4
  };
5
- export declare const NotificationsDrawer: ({ onDrawerClose, open }: NotificationsDrawerProps) => import("react").JSX.Element;
5
+ export declare const NotificationsDrawer: ({ onDrawerClose, open }: NotificationsDrawerProps) => import('react').JSX.Element;
@@ -5,5 +5,5 @@ type OutageItemProps = {
5
5
  readonly severity: AlertProps['severity'];
6
6
  readonly title: string;
7
7
  };
8
- export declare const OutageItem: ({ outage, severity, title }: OutageItemProps) => import("react").JSX.Element;
8
+ export declare const OutageItem: ({ outage, severity, title }: OutageItemProps) => import('react').JSX.Element;
9
9
  export {};
@@ -4,4 +4,4 @@ export type OutageListProps = {
4
4
  readonly soonActiveOutages: CommonDbOutage[];
5
5
  readonly visibleOutages: CommonDbOutage[];
6
6
  };
7
- export declare const OutageList: ({ activeOutages, soonActiveOutages, visibleOutages }: OutageListProps) => import("react").JSX.Element;
7
+ export declare const OutageList: ({ activeOutages, soonActiveOutages, visibleOutages }: OutageListProps) => import('react').JSX.Element;
@@ -6,5 +6,5 @@ type OutageSectionProps = {
6
6
  readonly severity: AlertProps['severity'];
7
7
  readonly title: string;
8
8
  };
9
- export declare const OutageSection: ({ itemTitle, outages, severity, title }: OutageSectionProps) => import("react").JSX.Element;
9
+ export declare const OutageSection: ({ itemTitle, outages, severity, title }: OutageSectionProps) => import('react').JSX.Element;
10
10
  export {};
@@ -10,4 +10,4 @@ export type SidebarItemSharedProps = {
10
10
  readonly onClose: () => void;
11
11
  readonly open: boolean;
12
12
  };
13
- export declare const SidebarItem: ({ children, closeIcon, closeIconTooltipText, onClose, open, testIdAttributes, title, width }: SidebarItemProps) => import("react").JSX.Element;
13
+ export declare const SidebarItem: ({ children, closeIcon, closeIconTooltipText, onClose, open, testIdAttributes, title, width }: SidebarItemProps) => import('react').JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export type SidebarMenuProps = PropsWithChildren;
3
- export declare const SidebarMenu: ({ children }: SidebarMenuProps) => import("react").JSX.Element;
3
+ export declare const SidebarMenu: ({ children }: SidebarMenuProps) => import('react').JSX.Element;
@@ -9,4 +9,4 @@ export type SidebarMenuItemProps = PropsWithTestIdAttributes<{
9
9
  readonly onClick: () => void;
10
10
  readonly title: string;
11
11
  }>;
12
- export declare const SidebarMenuItem: ({ badgeColor, badgeContent, first, icon, onClick, testIdAttributes, title, }: SidebarMenuItemProps) => import("react").JSX.Element;
12
+ export declare const SidebarMenuItem: ({ badgeColor, badgeContent, first, icon, onClick, testIdAttributes, title, }: SidebarMenuItemProps) => import('react').JSX.Element;
@@ -10,5 +10,5 @@ interface Props<T extends BaseItem> {
10
10
  onChange(items: T[]): void;
11
11
  renderItemContent(item: T): ReactNode;
12
12
  }
13
- export declare const SortableList: <T extends BaseItem>({ items, onChange, renderItemContent, }: Props<T>) => import("react").JSX.Element;
13
+ export declare const SortableList: <T extends BaseItem>({ items, onChange, renderItemContent, }: Props<T>) => import('react').JSX.Element;
14
14
  export {};
@@ -5,4 +5,4 @@ export type SortableListItemProps = PropsWithChildren<{
5
5
  readonly id: UniqueIdentifier;
6
6
  readonly sx?: SxProps;
7
7
  }>;
8
- export declare const SortableListItem: ({ children, id, sx }: SortableListItemProps) => import("react").JSX.Element;
8
+ export declare const SortableListItem: ({ children, id, sx }: SortableListItemProps) => import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export type SortableListItemDragHandleProps = {
2
2
  readonly name: string;
3
3
  };
4
- export declare const SortableListItemDragHandle: ({ name }: SortableListItemDragHandleProps) => import("react").JSX.Element;
4
+ export declare const SortableListItemDragHandle: ({ name }: SortableListItemDragHandleProps) => import('react').JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { PropsWithChildren } from 'react';
2
- export declare const SortableOverlay: ({ children }: PropsWithChildren<unknown>) => import("react").JSX.Element;
2
+ export declare const SortableOverlay: ({ children }: PropsWithChildren<unknown>) => import('react').JSX.Element;
@@ -3,4 +3,4 @@ import { SortableListItemContextValue } from './SortableListItemContext';
3
3
  export type SortableListItemContextProviderProps = PropsWithChildren<{
4
4
  readonly value: SortableListItemContextValue;
5
5
  }>;
6
- export declare const SortableListItemContextProvider: (props: SortableListItemContextProviderProps) => import("react").JSX.Element;
6
+ export declare const SortableListItemContextProvider: (props: SortableListItemContextProviderProps) => import('react').JSX.Element;
@@ -27,4 +27,4 @@ export interface TableRef {
27
27
  scrollToIndex: (index: number, onScrolledToIndex?: () => void) => void;
28
28
  setVerticalScrollPosition: (position: number) => void;
29
29
  }
30
- export declare const Table: <TRowData, TDataContext = null>({ font, forceHorizontalOverflow, getRowName, headerHeight, initialVisibleItemIndex, onRangeChanged, onReadableIndexClick, onRowClick, onRowMouseEnter, onRowMouseLeave, onVerticalScrollPositionChange, onVisibleItemIndexChange, overscanMain, overscanReverse, ref, rowHeight, rowHighlightingSubject, sx, }: TableProps<TRowData, TDataContext>) => import("react").JSX.Element;
30
+ export declare const Table: <TRowData, TDataContext = null>({ font, forceHorizontalOverflow, getRowName, headerHeight, initialVisibleItemIndex, onRangeChanged, onReadableIndexClick, onRowClick, onRowMouseEnter, onRowMouseLeave, onVerticalScrollPositionChange, onVisibleItemIndexChange, overscanMain, overscanReverse, ref, rowHeight, rowHighlightingSubject, sx, }: TableProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -3,4 +3,4 @@ import { TableCellProps } from './TableCell';
3
3
  export interface TableActionsCellProps<TRowData, TDataContext = null> extends TableCellProps<TRowData, TDataContext> {
4
4
  readonly column: TableColumnActions<TRowData, TDataContext>;
5
5
  }
6
- export declare const TableActionsCell: <TRowData, TDataContext = null>(props: TableActionsCellProps<TRowData, TDataContext>) => import("react").JSX.Element;
6
+ export declare const TableActionsCell: <TRowData, TDataContext = null>(props: TableActionsCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -4,4 +4,4 @@ export type TableCaptionProps = {
4
4
  readonly component?: TypographyProps['component'];
5
5
  readonly variant: TypographyProps['variant'];
6
6
  };
7
- export declare const TableCaption: <TRowData, TDataContext = null>({ caption, component, variant }: TableCaptionProps) => import("react").JSX.Element;
7
+ export declare const TableCaption: <TRowData, TDataContext = null>({ caption, component, variant }: TableCaptionProps) => import('react').JSX.Element;
@@ -24,4 +24,4 @@ export type TableCellProps<TRowData, TDataContext = null> = PropsWithChildren<{
24
24
  readonly xOffset?: number;
25
25
  }>;
26
26
  export type TableCellRef = HTMLDivElement;
27
- export declare const TableCell: <TRowData, TDataContext = null>({ ariaSort, backgroundColor, canDrag, children, className, column, columnIndex, enabled, height, onClick, onCustomDrag, order, ref, role, row, rowIndex, sx, tabIndex, title, width, xOffset, }: TableCellProps<TRowData, TDataContext>) => import("react").JSX.Element;
27
+ export declare const TableCell: <TRowData, TDataContext = null>({ ariaSort, backgroundColor, canDrag, children, className, column, columnIndex, enabled, height, onClick, onCustomDrag, order, ref, role, row, rowIndex, sx, tabIndex, title, width, xOffset, }: TableCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export type TableCellAsyncContentProps = {
2
2
  readonly content: Promise<string> | string;
3
3
  };
4
- export declare const TableCellAsyncContent: ({ content }: TableCellAsyncContentProps) => import("react").JSX.Element;
4
+ export declare const TableCellAsyncContent: ({ content }: TableCellAsyncContentProps) => import('react').JSX.Element;
@@ -5,4 +5,4 @@ export type TableCheckboxCellProps<TRowData, TDataContext = null> = {
5
5
  readonly onCheckBoxClick: (event: ReactMouseEvent, id: string) => void;
6
6
  readonly tableColumn: TableColumnSelectable<TRowData, TDataContext>;
7
7
  };
8
- export declare const TableCheckboxCell: <TRowData, TDataContext = null>({ cell, onCheckBoxClick, tableColumn, }: TableCheckboxCellProps<TRowData, TDataContext>) => import("react").JSX.Element;
8
+ export declare const TableCheckboxCell: <TRowData, TDataContext = null>({ cell, onCheckBoxClick, tableColumn, }: TableCheckboxCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { TableColumnParams } from '../../../models/table';
2
2
  export type TableCheckboxHeaderProps<TRowData, TDataContext = null> = {
3
3
  readonly tableColumnParams: TableColumnParams<TRowData, TDataContext>;
4
4
  };
5
- export declare const TableCheckboxHeader: <TRowData, TDataContext = null>({ tableColumnParams }: TableCheckboxHeaderProps<TRowData, TDataContext>) => import("react").JSX.Element;
5
+ export declare const TableCheckboxHeader: <TRowData, TDataContext = null>({ tableColumnParams }: TableCheckboxHeaderProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -3,4 +3,4 @@ import { Filters } from '../../../models/filter';
3
3
  export type TableFilterProps = {
4
4
  readonly filter: UnwrapArray<Filters>;
5
5
  };
6
- export declare const TableFilter: ({ filter }: TableFilterProps) => import("react").JSX.Element;
6
+ export declare const TableFilter: ({ filter }: TableFilterProps) => import('react').JSX.Element;
@@ -4,6 +4,6 @@ type TableFiltersSidebarItemContentProps = Pick<TableFiltersSidebarItemProps, 'o
4
4
  export declare const TableFiltersSidebarItemIcon: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').SvgIconTypeMap<{}, "svg">> & {
5
5
  muiName: string;
6
6
  };
7
- export declare const TableFiltersSidebarItemContent: <TRowData, TDataContext = null>({ onClose }: TableFiltersSidebarItemContentProps) => import("react").JSX.Element;
8
- export declare const TableFiltersSidebarItem: ({ onClose, open }: TableFiltersSidebarItemProps) => import("react").JSX.Element;
7
+ export declare const TableFiltersSidebarItemContent: <TRowData, TDataContext = null>({ onClose }: TableFiltersSidebarItemContentProps) => import('react').JSX.Element;
8
+ export declare const TableFiltersSidebarItem: ({ onClose, open }: TableFiltersSidebarItemProps) => import('react').JSX.Element;
9
9
  export {};
@@ -5,4 +5,4 @@ export type TableHeaderProps = {
5
5
  readonly headerVariant?: TypographyProps['variant'];
6
6
  readonly showTableMenu?: boolean;
7
7
  };
8
- export declare const TableHeader: ({ header, headerComponent, headerVariant, showTableMenu }: TableHeaderProps) => import("react").JSX.Element;
8
+ export declare const TableHeader: ({ header, headerComponent, headerVariant, showTableMenu }: TableHeaderProps) => import('react').JSX.Element;
@@ -6,4 +6,4 @@ export interface TableHeaderCellProps<TRowData, TDataContext = null> extends Tab
6
6
  readonly onColumnDividerKeyDown: (event: ReactKeyboardEvent<HTMLDivElement>, column: TableColumn<TRowData, TDataContext>) => void;
7
7
  readonly onColumnDividerMouseDown: (event: ReactMouseEvent<HTMLDivElement>, column: TableColumn<TRowData, TDataContext>) => void;
8
8
  }
9
- export declare const TableHeaderCell: <TRowData, TDataContext = null>(props: TableHeaderCellProps<TRowData, TDataContext>) => import("react").JSX.Element;
9
+ export declare const TableHeaderCell: <TRowData, TDataContext = null>(props: TableHeaderCellProps<TRowData, TDataContext>) => import('react').JSX.Element;
@@ -4,4 +4,4 @@ export type TableHeaderFilterProps = {
4
4
  readonly filter: UnwrapArray<Filters>;
5
5
  readonly onFilterChange: () => void;
6
6
  };
7
- export declare const TableHeaderFilter: <TRowData, TDataContext>({ filter, onFilterChange }: TableHeaderFilterProps) => import("react").JSX.Element;
7
+ export declare const TableHeaderFilter: <TRowData, TDataContext>({ filter, onFilterChange }: TableHeaderFilterProps) => import('react').JSX.Element;
@@ -2,4 +2,4 @@ import { BoxProps } from '@mui/material';
2
2
  export type TableMenuProps = {
3
3
  readonly ContainerProps?: Partial<BoxProps>;
4
4
  };
5
- export declare const TableMenu: ({ ContainerProps }: TableMenuProps) => import("react").JSX.Element;
5
+ export declare const TableMenu: ({ ContainerProps }: TableMenuProps) => import('react').JSX.Element;
@@ -5,4 +5,4 @@ export type TableReadableIndexCellProps<TRowData, TDataContext> = {
5
5
  readonly onReadableIndexClick: (row: TRowData) => void;
6
6
  readonly tableColumn: TableColumnReadableIndex<TRowData, TDataContext>;
7
7
  };
8
- export declare const TableReadableIndexCell: <TRowData, TDataContext>({ cell, getRowName, onReadableIndexClick, tableColumn, }: TableReadableIndexCellProps<TRowData, TDataContext>) => number | import("react").JSX.Element;
8
+ export declare const TableReadableIndexCell: <TRowData, TDataContext>({ cell, getRowName, onReadableIndexClick, tableColumn, }: TableReadableIndexCellProps<TRowData, TDataContext>) => number | import('react').JSX.Element;