import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{un as t,zt as n}from"./app-initial~avatarOverlayCompositionSurface~index-9fQ9wihu~index-BFCcxPM5~mapbox-gl-DVWlwqb~kppdhley-CabsBVhy.js";import{d as r,g as i,o as a}from"./app-initial~avatarOverlayCompositionSurface~artifact-tab-content.electron~notebook-preview-~dejrazf4-CyNQP50P.js";import{c as o,f as s,i as c,n as l,p as u,u as d}from"./app-initial~artifact-tab-content.electron~notebook-preview-panel~app-main~business-checkout~h49w84u1-C22DF0k3.js";import{r as f,t as p}from"./appgen-settings-page-BmcAEB5U.js";function m(e){let t=(0,h.c)(14),{onClose:n,projectId:a}=e,o=i(),u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,g.jsx)(r,{id:`appgenSettings.dialog.title`,defaultMessage:`Site settings`,description:`Title for the Site settings dialog`}),t[0]=u):u=t[0];let f=u,m;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(m={"aria-describedby":void 0},t[1]=m):m=t[1];let _;t[2]===o?_=t[3]:(_=o.formatMessage({id:`appgenSettings.dialog.close`,defaultMessage:`Close Site settings`,description:`Accessible label for closing the Site settings dialog`}),t[2]=o,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)(s,{className:`sr-only`,children:f}),(0,g.jsx)(c,{title:f,titleClassName:`truncate pr-8`})]}),t[6]=y):y=t[6];let b;t[7]!==n||t[8]!==a?(b=(0,g.jsxs)(l,{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)(d,{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=t(),a(),u(),o(),f(),g=n()}))();export{m as AppgenSettingsDialog};
//# sourceMappingURL=appgen-settings-dialog-DRz8pPGC.js.map