{"ast":null,"code":"\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nconst react_1 = require(\"react\");\nconst utils_js_1 = require(\"../utils.js\");\nfunction useCachedValue(getter) {\n  const ref = (0, react_1.useRef)();\n  const currentValue = ref.current;\n  if ((0, utils_js_1.isDefined)(currentValue)) {\n    return () => currentValue;\n  }\n  return () => {\n    const value = getter();\n    ref.current = value;\n    return value;\n  };\n}\nexports.default = useCachedValue;","map":{"version":3,"names":["Object","defineProperty","exports","value","react_1","require","utils_js_1","useCachedValue","getter","ref","useRef","currentValue","current","isDefined","default"],"sources":["D:/Project/UC_Trains_Voice/react-demo/node_modules/react-pdf/dist/cjs/shared/hooks/useCachedValue.js"],"sourcesContent":["\"use strict\";\n'use client';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst react_1 = require(\"react\");\nconst utils_js_1 = require(\"../utils.js\");\nfunction useCachedValue(getter) {\n    const ref = (0, react_1.useRef)();\n    const currentValue = ref.current;\n    if ((0, utils_js_1.isDefined)(currentValue)) {\n        return () => currentValue;\n    }\n    return () => {\n        const value = getter();\n        ref.current = value;\n        return value;\n    };\n}\nexports.default = useCachedValue;\n"],"mappings":"AAAA,YAAY;AACZ,YAAY;;AACZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7D,MAAMC,OAAO,GAAGC,OAAO,CAAC,OAAO,CAAC;AAChC,MAAMC,UAAU,GAAGD,OAAO,CAAC,aAAa,CAAC;AACzC,SAASE,cAAcA,CAACC,MAAM,EAAE;EAC5B,MAAMC,GAAG,GAAG,CAAC,CAAC,EAAEL,OAAO,CAACM,MAAM,EAAE,CAAC;EACjC,MAAMC,YAAY,GAAGF,GAAG,CAACG,OAAO;EAChC,IAAI,CAAC,CAAC,EAAEN,UAAU,CAACO,SAAS,EAAEF,YAAY,CAAC,EAAE;IACzC,OAAO,MAAMA,YAAY;EAC7B;EACA,OAAO,MAAM;IACT,MAAMR,KAAK,GAAGK,MAAM,CAAC,CAAC;IACtBC,GAAG,CAACG,OAAO,GAAGT,KAAK;IACnB,OAAOA,KAAK;EAChB,CAAC;AACL;AACAD,OAAO,CAACY,OAAO,GAAGP,cAAc","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}