
  import { store } from '../../_store/store.js'
  import { addScrollListener, getScrollContainer, removeScrollListener } from '../../_utils/scrollContainer.js'
  import { get } from '../../_utils/lodash-lite.js'
  import { registerResizeListener, unregisterResizeListener } from '../../_utils/resize.js'

  const updatePosition = process.browser && throttleTimer(requestAnimationFrame)

  export default {
    oncreate () {
      const { dialogId } = this.get()
      this.onResize = () => updatePosition(() => 