{"version":3,"file":"not-mounted-BarqHZtl.cjs","sources":["../../src/not-mounted.ts"],"sourcesContent":["import type { BridgeResult } from '@simplepdf/embed';\n\n// Calls made before <EmbedPDF> mounts resolve to a real Result (not undefined), keeping\n// the \"every method returns a BridgeResult\" contract uniform everywhere. Shared by the\n// imperative actions (useEmbed) and the agentic tools (useEmbedTools); zod-free.\nexport const notMounted = (): Promise<BridgeResult<never>> =>\n  Promise.resolve({\n    success: false,\n    error: {\n      code: 'unexpected:iframe_not_mounted',\n      message:\n        'the editor is not mounted yet: attach embedRef to <EmbedPDF ref={embedRef} /> and call after it renders',\n    },\n  });\n"],"names":["Promise","resolve","success","error","code","message"],"mappings":"gCAK0B,WACxB,OAAAA,QAAQC,QAAQ,CACdC,SAAS,EACTC,MAAO,CACLC,KAAM,gCACNC,QACE,4GALN"}