import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Dvt as t,G$ as n,H$ as r,I$ as i,Mvt as a,R$ as o,Rft as s,V$ as c,Vft as l,W$ as u,Wft as d}from"./app-initial-BHB6SClA.js";import{r as f,t as p}from"./appgen-settings-page-CXhQKO4r.js";function m(e){let t=(0,h.c)(14),{onClose:n,projectId:a}=e,s=d(),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,g.jsx)(l,{id:`appgenSettings.dialog.title`,defaultMessage:`Site settings`,description:`Title for the Site settings dialog`}),t[0]=c):c=t[0];let f=c,m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(m={"aria-describedby":void 0},t[1]=m):m=t[1];let _;t[2]===s?_=t[3]:(_=s.formatMessage({id:`appgenSettings.dialog.close`,defaultMessage:`Close Site settings`,description:`Accessible label for closing the Site settings dialog`}),t[2]=s,t[3]=_);let v;t[4]===n?v=t[5]:(v=e=>{e||n()},t[4]=n,t[5]=v);let y;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,g.jsxs)(`div`,{className:`flex w-full flex-col px-4 pt-3`,children:[(0,g.jsx)(u,{className:`sr-only`,children:f}),(0,g.jsx)(o,{title:f,titleClassName:`truncate pr-8`})]}),t[6]=y):y=t[6];let b;t[7]!==n||t[8]!==a?(b=(0,g.jsxs)(i,{className:`!px-1 !py-1`,size:`full`,children:[y,(0,g.jsx)(p,{projectId:a,showHeader:!1,onDeleted:n})]}),t[7]=n,t[8]=a,t[9]=b):b=t[9];let x;return t[10]!==_||t[11]!==v||t[12]!==b?(x=(0,g.jsx)(r,{open:!0,contentClassName:`h-[720px] max-h-[92vh]`,contentProps:m,dialogCloseLabel:_,size:`xwide`,onOpenChange:v,children:b}),t[10]=_,t[11]=v,t[12]=b,t[13]=x):x=t[13],x}var h,g;e((()=>{h=a(),s(),n(),c(),f(),g=t()}))();export{m as AppgenSettingsDialog};
//# sourceMappingURL=appgen-settings-dialog-BZhlGIYR.js.map