/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
import { makeGenericController as t } from "@arcgis/lumina/controllers";
import { createEvent as s } from "@arcgis/lumina";
const a = t((e, r) => (r.onLoaded(() => {
  const l = e.el;
  e.listenOn(l.childElem, "calciteFlowItemClose", () => {
    e.arcgisClose.emit(), e.autoDestroyDisabled || e.destroy();
  });
}), s()));
export {
  a as u
};
