/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
import{B as a}from"./DVG3NA3H.js";function r(i){return i[i.openProp||"open"]}async function f(i){await i.updateComplete,r(i)?i.onBeforeOpen():i.onBeforeClose(),await i.updateComplete;let e=s(i)?i.transitionRef.value:i.transitionEl;e&&await a(e,i.transitionProp),r(i)?i.onOpen():i.onClose()}function s(i){return"transitionRef"in i}export{f as a};
