import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Dvt as t,Mvt as n,bft as r,vft as i,xft as a,yft as o}from"./app-initial-BHB6SClA.js";function s(e){let t=(0,c.c)(20),{action:n,as:i,count:a,showDivider:o,sticky:s,title:u}=e,d=i===void 0?`div`:i,f=o===void 0?!0:o,p=d===`summary`&&`cursor-interaction list-none marker:hidden`,m=s&&`relative sticky top-0 z-10 bg-token-main-surface-primary after:pointer-events-none after:absolute after:-inset-x-3 after:top-full after:h-2 after:bg-token-main-surface-primary after:content-['']`,h=f&&`border-b border-token-border-light`,g;t[0]!==p||t[1]!==m||t[2]!==h?(g=r(`flex items-center justify-between gap-3 pr-0.5 pb-2 text-token-foreground [padding-inline-start:var(--sectioned-page-leading-inset,0.5rem)]`,p,m,h),t[0]=p,t[1]=m,t[2]=h,t[3]=g):g=t[3];let _=g,v;t[4]===a?v=t[5]:(v=a==null?null:(0,l.jsx)(`span`,{className:`text-token-input-placeholder-foreground`,children:a}),t[4]=a,t[5]=v);let y;t[6]!==v||t[7]!==u?(y=(0,l.jsxs)(l.Fragment,{children:[u,v]}),t[6]=v,t[7]=u,t[8]=y):y=t[8];let b=y,x=d,S=d===`summary`?`span`:`h2`,C=d===`summary`?`span`:`div`,w;t[9]!==S||t[10]!==b?(w=(0,l.jsx)(S,{className:`flex min-h-7 items-center gap-1.5 text-lg leading-6 font-medium`,children:b}),t[9]=S,t[10]=b,t[11]=w):w=t[11];let T;t[12]!==C||t[13]!==n?(T=n==null?null:(0,l.jsx)(C,{className:`shrink-0`,children:n}),t[12]=C,t[13]=n,t[14]=T):T=t[14];let E;return t[15]!==x||t[16]!==_||t[17]!==T||t[18]!==w?(E=(0,l.jsxs)(x,{className:_,"data-slot":`section-header`,children:[w,T]}),t[15]=x,t[16]=_,t[17]=T,t[18]=w,t[19]=E):E=t[19],E}var c,l,u=e((()=>{c=n(),a(),l=t()}));function d(e){let t=(0,f.c)(26),{actions:n,children:a,collapsible:o,disableContentInlineInset:c,count:l,id:u,title:d}=e,m=c===void 0?!1:c,h;t[0]!==n||t[1]!==o?(h=n==null?null:(0,p.jsx)(`span`,{className:`flex items-center gap-2`,onClick:e=>{o&&(e.preventDefault(),e.stopPropagation())},onKeyDown:e=>{o&&e.stopPropagation()},children:n}),t[0]=n,t[1]=o,t[2]=h):h=t[2];let g=h,_;t[3]===o?_=t[4]:(_=o?(0,p.jsx)(i,{className:`icon-2xs -rotate-90 transition-transform group-open/section:rotate-0 motion-reduce:transition-none`}):null,t[3]=o,t[4]=_);let v;t[5]!==_||t[6]!==d?(v=(0,p.jsxs)(p.Fragment,{children:[d,_]}),t[5]=_,t[6]=d,t[7]=v):v=t[7];let y=v,b=o?`details`:`section`,x;t[8]===o?x=t[9]:(x=o?{open:!0}:{},t[8]=o,t[9]=x);let S=x,C=o?`summary`:`div`,w;t[10]!==g||t[11]!==l||t[12]!==y||t[13]!==C?(w=(0,p.jsx)(s,{action:g,as:C,count:l,title:y}),t[10]=g,t[11]=l,t[12]=y,t[13]=C,t[14]=w):w=t[14];let T=!m&&`px-[var(--detail-page-inline-inset,0px)]`,E;t[15]===T?E=t[16]:(E=r(`flex flex-col gap-1`,T),t[15]=T,t[16]=E);let D;t[17]!==a||t[18]!==E?(D=(0,p.jsx)(`div`,{className:E,children:a}),t[17]=a,t[18]=E,t[19]=D):D=t[19];let O;return t[20]!==b||t[21]!==u||t[22]!==S||t[23]!==D||t[24]!==w?(O=(0,p.jsxs)(b,{...S,id:u,className:`group/section flex flex-col gap-4 [--sectioned-page-leading-inset:var(--detail-page-inline-inset,0px)]`,children:[w,D]}),t[20]=b,t[21]=u,t[22]=S,t[23]=D,t[24]=w,t[25]=O):O=t[25],O}var f,p,m=e((()=>{f=n(),a(),o(),u(),p=t()}));function h(e){let t=(0,g.c)(3),{children:n}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=r(v,`@container mx-auto w-full max-w-[var(--thread-content-max-width)] [--detail-page-inline-inset:var(--padding-row-x)] [--detail-page-section-gap:calc(var(--spacing)*6)]`),t[0]=i):i=t[0];let a;return t[1]===n?a=t[2]:(a=(0,_.jsx)(`div`,{className:i,children:n}),t[1]=n,t[2]=a),a}var g,_,v,y=e((()=>{g=n(),a(),_=t(),v=`flex flex-col gap-[var(--detail-page-section-gap)]`}));export{m as a,d as i,h as n,s as o,y as r,u as s,v as t};
//# sourceMappingURL=detail-page-CIsIvBGt.js.map