{
  "version": 3,
  "sources": ["../../../../src/lib/ui/hooks/useGetEmbedDefinition.ts"],
  "sourcesContent": ["import { useEditor } from '@tldraw/editor'\nimport { EmbedShapeUtil } from '../../shapes/embed/EmbedShapeUtil'\n\n/** @internal */\nexport function useGetEmbedShapeUtil() {\n\tconst editor = useEditor()\n\treturn editor.getShapeUtil('embed') as EmbedShapeUtil | undefined\n}\n\n/** @public */\nexport function useGetEmbedDefinition() {\n\tconst embedUtil = useGetEmbedShapeUtil()\n\treturn (url: string) => {\n\t\treturn embedUtil ? embedUtil.getEmbedDefinition(url) : undefined\n\t}\n}\n"],
  "mappings": "AAAA,SAAS,iBAAiB;AAInB,SAAS,uBAAuB;AACtC,QAAM,SAAS,UAAU;AACzB,SAAO,OAAO,aAAa,OAAO;AACnC;AAGO,SAAS,wBAAwB;AACvC,QAAM,YAAY,qBAAqB;AACvC,SAAO,CAAC,QAAgB;AACvB,WAAO,YAAY,UAAU,mBAAmB,GAAG,IAAI;AAAA,EACxD;AACD;",
  "names": []
}
