1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="eb39e428-85fa-5ee2-8d0e-c4df077db5e5")}catch(e){}}(); 3import { o as __toESM } from "./rolldown-runtime.D1cXj70v.js"; 4import { c as useSyncExternalStore, d as require_rehackt } from "./vendor~index~newNavigation~AccountTierManagementPage~AdminContainer~AISystemPromptManager~C~lx5ijrxx.Ds2KGt5R.js"; 5//#region node_modules/@apollo/client/react/hooks/useReactiveVar.js 6var import_rehackt = /* @__PURE__ */ __toESM(require_rehackt(), 1); 7/** 8* Reads the value of a [reactive variable](https://www.apollographql.com/docs/react/local-state/reactive-variables/) and re-renders the containing component whenever that variable's value changes. This enables a reactive variable to trigger changes _without_ relying on the `useQuery` hook. 9* 10* @example 11* ```jsx 12* import { makeVar, useReactiveVar } from "@apollo/client"; 13* export const cartItemsVar = makeVar([]); 14* 15* export function Cart() { 16* const cartItems = useReactiveVar(cartItemsVar); 17* // ... 18* } 19* ``` 20* @since 3.2.0 21* @param rv - A reactive variable. 22* @returns The current value of the reactive variable. 23*/ 24function useReactiveVar(rv) { 25 return useSyncExternalStore(import_rehackt.useCallback(function(update) { 26 return rv.onNextChange(function onNext() { 27 update(); 28 rv.onNextChange(onNext); 29 }); 30 }, [rv]), rv, rv); 31} 32//#endregion 33export { useReactiveVar as t }; 34 35//# sourceMappingURL=useReactiveVar.mh1GCYBn.js.map 36//# debugId=eb39e428-85fa-5ee2-8d0e-c4df077db5e5
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.