{"version":3,"file":"stubRecorderApi.mjs","names":[],"sources":["../../src/boot/stubRecorderApi.ts"],"sourcesContent":["import { noop } from '@datadog/browser-core'\nimport type { LifeCycle, RumConfiguration } from '@datadog/browser-rum-core'\nimport { getSessionReplayLink } from '../domain/getSessionReplayLink'\n\nexport function makeRecorderApiStub() {\n  let getSessionReplayLinkStrategy = noop as () => string | undefined\n  return {\n    start: noop,\n    stop: noop,\n    onRumStart(_lifeCycle: LifeCycle, configuration: RumConfiguration) {\n      getSessionReplayLinkStrategy = () => getSessionReplayLink(configuration)\n    },\n    isRecording: () => false,\n    getReplayStats: () => undefined,\n    getSessionReplayLink: () => getSessionReplayLinkStrategy(),\n  }\n}\n"],"mappings":";;;AAIA,SAAgB,sBAAsB;CACpC,IAAI,+BAA+B;CACnC,OAAO;EACL,OAAO;EACP,MAAM;EACN,WAAW,YAAuB,eAAiC;GACjE,qCAAqC,qBAAqB,aAAa;EACzE;EACA,mBAAmB;EACnB,sBAAsB,KAAA;EACtB,4BAA4B,6BAA6B;CAC3D;AACF"}