{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.isCursorAtEnd = isCursorAtEnd;\nexports.isCursorAtStart = isCursorAtStart;\nvar _selectionRange = require(\"./selectionRange\");\nvar _getValue2 = require(\"./getValue\");\nfunction isCursorAtEnd(element) {\n  var _getValue;\n  const {\n    selectionStart,\n    selectionEnd\n  } = (0, _selectionRange.getSelectionRange)(element);\n  return selectionStart === selectionEnd && (selectionStart != null ? selectionStart : /* istanbul ignore next */\n  0) === ((_getValue = (0, _getValue2.getValue)(element)) != null ? _getValue : /* istanbul ignore next */\n  '').length;\n}\nfunction isCursorAtStart(element) {\n  const {\n    selectionStart,\n    selectionEnd\n  } = (0, _selectionRange.getSelectionRange)(element);\n  return selectionStart === selectionEnd && (selectionStart != null ? selectionStart : /* istanbul ignore next */\n  0) === 0;\n}","map":{"version":3,"names":["Object","defineProperty","exports","value","isCursorAtEnd","isCursorAtStart","_selectionRange","require","_getValue2","element","_getValue","selectionStart","selectionEnd","getSelectionRange","getValue","length"],"sources":["C:/Users/user/Desktop/000newport/node_modules/@testing-library/user-event/dist/utils/edit/cursorPosition.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.isCursorAtEnd = isCursorAtEnd;\nexports.isCursorAtStart = isCursorAtStart;\n\nvar _selectionRange = require(\"./selectionRange\");\n\nvar _getValue2 = require(\"./getValue\");\n\nfunction isCursorAtEnd(element) {\n  var _getValue;\n\n  const {\n    selectionStart,\n    selectionEnd\n  } = (0, _selectionRange.getSelectionRange)(element);\n  return selectionStart === selectionEnd && (selectionStart != null ? selectionStart :\n  /* istanbul ignore next */\n  0) === ((_getValue = (0, _getValue2.getValue)(element)) != null ? _getValue :\n  /* istanbul ignore next */\n  '').length;\n}\n\nfunction isCursorAtStart(element) {\n  const {\n    selectionStart,\n    selectionEnd\n  } = (0, _selectionRange.getSelectionRange)(element);\n  return selectionStart === selectionEnd && (selectionStart != null ? selectionStart :\n  /* istanbul ignore next */\n  0) === 0;\n}"],"mappings":"AAAA,YAAY;;AAEZA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAC3CC,KAAK,EAAE;AACT,CAAC,CAAC;AACFD,OAAO,CAACE,aAAa,GAAGA,aAAa;AACrCF,OAAO,CAACG,eAAe,GAAGA,eAAe;AAEzC,IAAIC,eAAe,GAAGC,OAAO,CAAC,kBAAkB,CAAC;AAEjD,IAAIC,UAAU,GAAGD,OAAO,CAAC,YAAY,CAAC;AAEtC,SAASH,aAAaA,CAACK,OAAO,EAAE;EAC9B,IAAIC,SAAS;EAEb,MAAM;IACJC,cAAc;IACdC;EACF,CAAC,GAAG,CAAC,CAAC,EAAEN,eAAe,CAACO,iBAAiB,EAAEJ,OAAO,CAAC;EACnD,OAAOE,cAAc,KAAKC,YAAY,IAAI,CAACD,cAAc,IAAI,IAAI,GAAGA,cAAc,GAClF;EACA,CAAC,MAAM,CAAC,CAACD,SAAS,GAAG,CAAC,CAAC,EAAEF,UAAU,CAACM,QAAQ,EAAEL,OAAO,CAAC,KAAK,IAAI,GAAGC,SAAS,GAC3E;EACA,EAAE,EAAEK,MAAM;AACZ;AAEA,SAASV,eAAeA,CAACI,OAAO,EAAE;EAChC,MAAM;IACJE,cAAc;IACdC;EACF,CAAC,GAAG,CAAC,CAAC,EAAEN,eAAe,CAACO,iBAAiB,EAAEJ,OAAO,CAAC;EACnD,OAAOE,cAAc,KAAKC,YAAY,IAAI,CAACD,cAAc,IAAI,IAAI,GAAGA,cAAc,GAClF;EACA,CAAC,MAAM,CAAC;AACV"},"metadata":{},"sourceType":"script","externalDependencies":[]}