{
  "version": 3,
  "sources": ["../src/is-collapsed.ts"],
  "sourcesContent": ["/**\n * Internal dependencies\n */\nimport type { RichTextValue } from './types';\n\n/**\n * Check if the selection of a Rich Text value is collapsed or not. Collapsed\n * means that no characters are selected, but there is a caret present. If there\n * is no selection, `undefined` will be returned. This is similar to\n * `window.getSelection().isCollapsed()`.\n *\n * @param props       The rich text value to check.\n * @param props.start\n * @param props.end\n * @return True if the selection is collapsed, false if not, undefined if there is no selection.\n */\nexport function isCollapsed( {\n\tstart,\n\tend,\n}: RichTextValue ): boolean | undefined {\n\tif ( start === undefined || end === undefined ) {\n\t\treturn;\n\t}\n\n\treturn start === end;\n}\n"],
  "mappings": ";AAgBO,SAAS,YAAa;AAAA,EAC5B;AAAA,EACA;AACD,GAAwC;AACvC,MAAK,UAAU,UAAa,QAAQ,QAAY;AAC/C;AAAA,EACD;AAEA,SAAO,UAAU;AAClB;",
  "names": []
}
