{"version":3,"sources":["../src/nodeCustomPdfViewer.tsx"],"sourcesContent":["// packages/custom-react-pdf-viewer/src/nodeCustomPdfViewer.tsx\n\nimport type { CustomPdfViewerProps } from './pdf/CustomPdfViewer';\n\n/**\n * Node/SSR-safe stub. It exists so Node environments (RunKit, SSR build steps)\n * can import the module without immediately touching window/document/pdfjs.\n *\n * If someone actually tries to *render* this on the server, we give a clear error.\n */\nexport function CustomPdfViewer(_props: CustomPdfViewerProps) {\n  throw new Error(\n    '[custom-react-pdf-viewer] CustomPdfViewer cannot run in a non-browser environment (no window/document). ' +\n      'Use it only on the client side (e.g. guard with typeof window !== \"undefined\").'\n  );\n}\n"],"mappings":"AAUO,SAASA,EAAgBC,EAA8B,CAC5D,MAAM,IAAI,MACR,yLAEF,CACF","names":["CustomPdfViewer","_props"]}