"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/jsx-runtime.js"),g=require("../../../utils/index.js"),j=require("../styles.js"),p=require("./ModalHeader.js"),u=require("./ModalActions.js"),M=require("./DialogLoading.js");function h({children:m,onClose:c,pinnedFooter:x,action:r,variant:a,hideCloseIcon:R,title:o,primaryAction:s,dismissAction:l,stackedActionButtons:i,isLoading:E,...n}){const d=g.getId(n["data-testid"]),t=g.getId(n["data-trackid"]);return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[o&&o.text&&e.jsxRuntimeExports.jsx(p.ModalHeader,{onClose:c,hideCloseIcon:R,mode:o.mode,variant:a,"data-testid":d("dialog-header"),"data-trackid":t("dialog-header"),children:o.text}),e.jsxRuntimeExports.jsxs(j.StyledModalContent,{pinnedFooter:x,stackedActionButtons:i,action:r,"data-testid":d("dialog-content"),"data-trackid":t("dialog-content"),variant:a,children:[E?e.jsxRuntimeExports.jsx(M.DialogLoading,{"data-testid":d("dialog-loading"),"data-trackid":t("dialog-loading")}):e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:m}),r&&e.jsxRuntimeExports.jsxs(j.ModalFooter,{pinnedFooter:x,stackedActionButtons:i,"data-testid":d("dialog-footer"),"data-trackid":t("dialog-footer"),variant:a,children:[r==="confirm"&&s&&l&&e.jsxRuntimeExports.jsx(u.ModalActions,{primaryAction:s,dismissAction:l,variant:a,stackedActionButtons:i,"data-testid":d(),"data-trackid":t()}),r==="acknowledge"&&s&&e.jsxRuntimeExports.jsx(u.ModalActions,{primaryAction:s,variant:a,stackedActionButtons:i,"data-testid":d(),"data-trackid":t()})]})]})]})}exports.DialogContent=h;
