1import{o as t,bg as d,q as m,r as x,j as e,dh as g,cG as p,di as h,dj as u,dk as f,S as j,dl as y,am as s}from"./index-51b326a0.js";import{D as w}from"./DialogTitle-635751c6.js";const{palette:o}=m,n={warningPrompt:{padding:0},prompt:{width:"26rem"},title:{lineHeight:0,...t("flex","flex-end","center"),padding:"1rem 1rem 0 1rem"},iconButton:{padding:0,color:o.grey.main??""},content:{padding:"0 1.5rem 1.25rem 1.5rem",...t("flex","center","center"),flexDirection:"column",gap:"1rem"},warningText:{...d(400,"1.25rem","normal"),color:o.grey.main??"",textAlign:"center",width:{lg:"19.4375rem",md:"19.4375rem",xs:"100%"}},actions:{padding:"1rem 1.5rem",...t("flex","center","center"),gap:"1rem","& button":{margin:"0 !important"}}};function D({showPrompt:i,setShowPrompt:r,setIsValuation:l}){const a=()=>{r(c=>({...c,show:!1}))};return e.jsxs(g,{onClose:a,open:i.show,sx:n.warningPrompt,PaperProps:{sx:n.prompt},children:[e.jsx(w,{sx:n.title,children:e.jsx(p,{"aria-label":"close",onClick:a,sx:n.iconButton,children:e.jsx(h,{})})}),e.jsxs(u,{sx:n.content,children:[e.jsx(f,{}),e.jsx(j,{sx:n.warningText,children:"You have unsaved changes, are you sure you want to leave this page without saving your changes?"})]}),e.jsxs(y,{sx:n.actions,children:[e.jsx(s,{variant:"primary-dark",fullWidth:!0,size:"small",onClick:()=>{l(!1),r({dirty:!1,show:!1})},children:"Yes, discard changes"}),e.jsx(s,{variant:"secondary",fullWidth:!0,size:"small",onClick:a,children:"No, cancel"})]})]})}const C=x.memo(D);export{C as default};
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.