/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{loadCalciteComponents as t}from"../../support/componentsUtils.js";import{tsx as o}from"../../support/widget.js";const e=()=>t({alert:()=>import("@esri/calcite-components/dist/components/calcite-alert")});function i({autoCloseDuration:t,bind:e,icon:i,kind:l,message:s,onClose:n,open:a,title:r,tooltip:p,topLayerDisabled:c}){return o("calcite-alert",{autoClose:!!t,autoCloseDuration:t??"medium",bind:e,icon:i,kind:l,label:r,open:a,slot:"alerts",topLayerDisabled:c,onCalciteAlertClose:n},o("div",{slot:"title",title:p},r),s?o("div",{slot:"message"},s):null)}export{i as Alert,e as loadAlertComponents};
