{"version":3,"sources":["../../src/utils/createResizeObserver.ts"],"sourcesContent":["export function createResizeObserver(\n  targetWindow: Window & typeof globalThis,\n  callback: ResizeObserverCallback,\n): ResizeObserver {\n  // https://github.com/jsdom/jsdom/issues/3368\n  // Add the polyfill here so it is not needed for all unit tests that leverage positioning\n  if (process.env.NODE_ENV === 'test') {\n    targetWindow.ResizeObserver = class ResizeObserver {\n      public observe() {\n        // do nothing\n      }\n      public unobserve() {\n        // do nothing\n      }\n      public disconnect() {\n        // do nothing\n      }\n    };\n  }\n\n  return new targetWindow.ResizeObserver(callback);\n}\n"],"names":["createResizeObserver","targetWindow","callback","process","env","NODE_ENV","ResizeObserver","observe","unobserve","disconnect"],"mappings":";;;;+BAAgBA;;;;;;AAAT,8BACLC,YAAwC,EACxCC,QAAgC;IAEhC,6CAA6C;IAC7C,yFAAyF;IACzF,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,QAAQ;QACnCJ,aAAaK,cAAc,GAAG,MAAMA;YAC3BC,UAAU;YACf,aAAa;YACf;YACOC,YAAY;YACjB,aAAa;YACf;YACOC,aAAa;YAClB,aAAa;YACf;QACF;IACF;IAEA,OAAO,IAAIR,aAAaK,cAAc,CAACJ;AACzC"}