{
  "version": 3,
  "sources": ["../../src/html/transforms.js"],
  "sourcesContent": ["import { createBlock, parse } from '@wordpress/blocks';\nimport { create } from '@wordpress/rich-text';\n\nconst transforms = {\n\tfrom: [\n\t\t{\n\t\t\ttype: 'block',\n\t\t\tblocks: [ 'core/code' ],\n\t\t\ttransform: ( { content: html } ) => {\n\t\t\t\t// The code block may output HTML formatting, so convert it\n\t\t\t\t// to plain text, then parse it so any block delimiters become\n\t\t\t\t// editable inner blocks at their positions within the static\n\t\t\t\t// HTML, rather than inert comment text.\n\t\t\t\tconst text = create( { html } ).text;\n\t\t\t\tconst [ block ] = parse(\n\t\t\t\t\t`<!-- wp:html -->\\n${ text }\\n<!-- /wp:html -->`\n\t\t\t\t);\n\n\t\t\t\treturn block ?? createBlock( 'core/html', {}, [], [ text ] );\n\t\t\t},\n\t\t},\n\t],\n};\n\nexport default transforms;\n"],
  "mappings": ";AAAA,SAAS,aAAa,aAAa;AACnC,SAAS,cAAc;AAEvB,IAAM,aAAa;AAAA,EAClB,MAAM;AAAA,IACL;AAAA,MACC,MAAM;AAAA,MACN,QAAQ,CAAE,WAAY;AAAA,MACtB,WAAW,CAAE,EAAE,SAAS,KAAK,MAAO;AAKnC,cAAM,OAAO,OAAQ,EAAE,KAAK,CAAE,EAAE;AAChC,cAAM,CAAE,KAAM,IAAI;AAAA,UACjB;AAAA,EAAsB,IAAK;AAAA;AAAA,QAC5B;AAEA,eAAO,SAAS,YAAa,aAAa,CAAC,GAAG,CAAC,GAAG,CAAE,IAAK,CAAE;AAAA,MAC5D;AAAA,IACD;AAAA,EACD;AACD;AAEA,IAAO,qBAAQ;",
  "names": []
}
