1import{a as u}from"/build/_shared/chunk-CCXUG7EA.js";import{b as i}from"/build/_shared/chunk-GLNX7PBK.js";import{I as v,U as s,Z as p,ga as o,t as f}from"/build/_shared/chunk-FES3B5QL.js";import{g as h}from"/build/_shared/chunk-XC7SPKRF.js";import{a as g}from"/build/_shared/chunk-G3QUQOKW.js";import{e as b}from"/build/_shared/chunk-O3BUCIVF.js";var x="/build/_assets/styles-CV5LJ2NV.css";var a=b(g()),ee=()=>[{rel:"stylesheet",href:x}];function ae({cancelBtnText:C="Cancel",cancelButtonProps:n={},centered:M,children:S,className:w,closeButtonProps:R,confirmBtnText:N="Confirm",confirmButtonProps:t={},contentClassName:k,"data-autofocus":z=!1,"data-testid":T,fullScreen:I,hideCloseButton:A,hideHeaderDivider:E=!1,hideModalHeader:P=!1,id:y,ignoreFocusTitleOnLoad:H=!1,onCancel:B,onClose:D,onConfirm:O,opened:L,showButtonsDivider:G=!1,size:J,styles:e,title:r,titleProps:V,transitionProps:X,useLegacy640widthStyle:j,useSmallHeader:F,zIndex:K,...Q}){let d=h(`(max-width: ${u.MOBILE})`,!0,{getInitialValueInEffect:!1}),l=(n==null?void 0:n.onClick)||B,m=(t==null?void 0:t.onClick)||O;return(0,a.jsxs)(o.Root,{styles:{root:e==null?void 0:e.root,inner:e==null?void 0:e.inner,content:e==null?void 0:e.content,header:e==null?void 0:e.header,overlay:e==null?void 0:e.overlay,title:e==null?void 0:e.title,body:e==null?void 0:e.body,close:e==null?void 0:e.close},transitionProps:X,centered:M,className:i(w,d&&"is-mobile",j&&"mantine-modal-fixed-width",F&&"swiftly-modal-small-header"),fullScreen:I,"data-testid":T,id:y,"data-autofocus":z,opened:L,onClose:D,size:J,zIndex:K,onClick:c=>c.stopPropagation(),onKeyDown:c=>c.stopPropagation(),...Q,children:[(0,a.jsx)(o.Overlay,{}),(0,a.jsxs)(o.Content,{className:i("mantine-modal",k),style:{borderRadius:i(!d&&"12px",d&&"0")},children:[!P&&r?(0,a.jsxs)(o.Header,{className:"sw-modal-header",children:[r&&(0,a.jsx)(o.Title,{...V,...!H&&{tabIndex:0,role:"heading","data-autofocus":!0},className:"mantine-modal-title",children:r}),!A&&(0,a.jsx)(o.CloseButton,{...R,"aria-label":"Close modal","data-testid":"modal-close-btn"})]}):null,!E&&(0,a.jsx)(p,{}),(0,a.jsxs)(o.Body,{style:{maxHeight:i(!d&&"640px",d&&"none")},children:[(0,a.jsx)(f,{className:"modal-content",children:S}),(0,a.jsxs)(v,{className:i("bottom-action-bar",d&&"mobile"),justify:l&&i(m?"flex-end":"flex-start"),children:[l&&(0,a.jsx)(s,{variant:"light",color:"accents-primary",...n,onClick:l,children:(n==null?void 0:n.children)||C}),G&&(0,a.jsx)(p,{"data-testid":"modal-buttons-divider",orientation:"vertical",size:"xs"}),m&&(0,a.jsx)(s,{variant:"filled",color:"accents-primary",...t,onClick:m,children:(t==null?void 0:t.children)||N})]})]})]})]})}export{ee as a,ae as b};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.