{"version":3,"file":"index.cjs","names":["metadata","__","initBlock"],"sources":["../../src/preformatted/index.js"],"sourcesContent":["import { __ } from '@wordpress/i18n';\nimport { preformatted as icon } from '@wordpress/icons';\nimport initBlock from '../utils/init-block';\nimport edit from './edit';\nimport metadata from './block.json';\nimport save from './save';\nimport transforms from './transforms';\n\nconst { name } = metadata;\n\nexport { metadata, name };\n\nexport const settings = {\n\ticon,\n\texample: {\n\t\tattributes: {\n\t\t\t/* eslint-disable @wordpress/i18n-no-collapsible-whitespace */\n\t\t\t// translators: Sample content for the Preformatted block. Can be replaced with a more locale-adequate work.\n\t\t\tcontent: __(\n\t\t\t\t'EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\\nWindow, very small in the distance, illuminated.\\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;'\n\t\t\t),\n\t\t\t/* eslint-enable @wordpress/i18n-no-collapsible-whitespace */\n\t\t},\n\t},\n\ttransforms,\n\tedit,\n\tsave,\n\tmerge( attributes, attributesToMerge ) {\n\t\treturn {\n\t\t\tcontent: attributes.content + '\\n\\n' + attributesToMerge.content,\n\t\t};\n\t},\n};\n\nexport const init = () => initBlock( { name, metadata, settings } );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,MAAM,EAAE,SAASA,aAAAA;AAIjB,MAAa,WAAW;CACvB,MAAA,iBAAA;CACA,SAAS,EACR,YAAY,EAGX,UAAA,GAASC,gBAAAA,GAAAA,CACR,wQACD,EAED,EACD;CACA,YAAA,gBAAA;CACA,MAAA,WAAA;CACA,MAAA,WAAA;CACA,MAAO,YAAY,mBAAoB;EACtC,OAAO,EACN,SAAS,WAAW,UAAU,SAAS,kBAAkB,QAC1D;CACD;AACD;AAEA,MAAa,cAAA,GAAaC,uBAAAA,QAAAA,CAAW;CAAE;CAAM,UAAA,aAAA;CAAU;AAAS,CAAE"}