{
  "version": 3,
  "sources": ["../src/insert-object.js"],
  "sourcesContent": ["/**\n * Internal dependencies\n */\n\nimport { insert } from './insert';\nimport { OBJECT_REPLACEMENT_CHARACTER } from './special-characters';\n\n/** @typedef {import('./types').RichTextValue} RichTextValue */\n/** @typedef {import('./types').RichTextFormat} RichTextFormat */\n\n/**\n * Insert a format as an object into a Rich Text value at the given\n * `startIndex`. Any content between `startIndex` and `endIndex` will be\n * removed. Indices are retrieved from the selection if none are provided.\n *\n * @param {RichTextValue}  value          Value to modify.\n * @param {RichTextFormat} formatToInsert Format to insert as object.\n * @param {number}         [startIndex]   Start index.\n * @param {number}         [endIndex]     End index.\n *\n * @return {RichTextValue} A new value with the object inserted.\n */\nexport function insertObject( value, formatToInsert, startIndex, endIndex ) {\n\tconst valueToInsert = {\n\t\tformats: [ , ],\n\t\treplacements: [ formatToInsert ],\n\t\ttext: OBJECT_REPLACEMENT_CHARACTER,\n\t};\n\n\treturn insert( value, valueToInsert, startIndex, endIndex );\n}\n"],
  "mappings": ";AAIA,SAAS,cAAc;AACvB,SAAS,oCAAoC;AAiBtC,SAAS,aAAc,OAAO,gBAAgB,YAAY,UAAW;AAC3E,QAAM,gBAAgB;AAAA,IACrB,SAAS,CAAE,CAAE;AAAA,IACb,cAAc,CAAE,cAAe;AAAA,IAC/B,MAAM;AAAA,EACP;AAEA,SAAO,OAAQ,OAAO,eAAe,YAAY,QAAS;AAC3D;",
  "names": []
}
