import{n as e}from"./rolldown-runtime-Czos8NxU.js";import{Tl as t,vl as n}from"./app-initial~app-main~worktree-init-v2-page~appgen-settings-page~page~appgen-publication-ter~fzo5ij6p-BKVLyD1q.js";import{nx as r,rx as i}from"./app-initial~app-main~new-thread-panel-page-BZHGOlMi.js";import{n as a,t as o}from"./page-search-input-a2-XgvYV.js";function s(e){let t=(0,l.c)(29),{children:n,contentClassName:i,controls:a,headerVariant:s,scrollContainerRef:c,search:d,subtitle:f,title:p,titleRef:m}=e,h=s===`inset`?`gap-2 px-2`:`gap-1`,g;t[0]===h?g=t[1]:(g=r(`flex flex-col`,h),t[0]=h,t[1]=g);let _;t[2]!==p||t[3]!==m?(_=(0,u.jsx)(`h1`,{ref:m,className:`heading-xl font-normal text-token-foreground`,children:p}),t[2]=p,t[3]=m,t[4]=_):_=t[4];let v;t[5]===f?v=t[6]:(v=(0,u.jsx)(`div`,{className:`text-lg leading-6 text-token-text-secondary`,children:f}),t[5]=f,t[6]=v);let y;t[7]!==g||t[8]!==_||t[9]!==v?(y=(0,u.jsx)(`div`,{className:`mx-auto w-full max-w-[var(--thread-content-max-width)] px-panel pt-panel pb-4`,children:(0,u.jsxs)(`div`,{className:g,children:[_,v]})}),t[7]=g,t[8]=_,t[9]=v,t[10]=y):y=t[10];let b;t[11]===d.className?b=t[12]:(b=r(`w-full min-w-0`,d.className),t[11]=d.className,t[12]=b);let x;t[13]!==d||t[14]!==b?(x=(0,u.jsx)(`div`,{className:`sticky top-0 z-30 bg-token-main-surface-primary after:pointer-events-none after:absolute after:top-full after:right-0 after:left-0 after:h-8 after:bg-linear-to-b after:from-token-main-surface-primary after:to-transparent after:content-['']`,children:(0,u.jsx)(`div`,{className:`mx-auto w-full max-w-[var(--thread-content-max-width)] px-panel pb-2`,children:(0,u.jsx)(o,{...d,className:b,variant:`composer`})})}),t[13]=d,t[14]=b,t[15]=x):x=t[15];let S;t[16]===i?S=t[17]:(S=r(`mx-auto flex min-h-0 w-full max-w-[var(--thread-content-max-width)] flex-1 flex-col px-panel pt-5 pb-panel`,i),t[16]=i,t[17]=S);let C;t[18]!==n||t[19]!==a||t[20]!==S?(C=(0,u.jsxs)(`div`,{className:S,children:[a,n]}),t[18]=n,t[19]=a,t[20]=S,t[21]=C):C=t[21];let w;t[22]!==y||t[23]!==x||t[24]!==C?(w=(0,u.jsxs)(`div`,{className:`flex min-h-full w-full flex-col`,children:[y,x,C]}),t[22]=y,t[23]=x,t[24]=C,t[25]=w):w=t[25];let T;return t[26]!==c||t[27]!==w?(T=(0,u.jsx)(`div`,{ref:c,className:`relative h-full min-h-0 flex-1 overflow-y-auto [scrollbar-gutter:stable]`,children:w}),t[26]=c,t[27]=w,t[28]=T):T=t[28],T}function c(e){let t=(0,l.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,u.jsx)(`div`,{className:`flex items-center justify-between gap-4 px-3 pb-2`,children:n}),t[0]=n,t[1]=r),r}var l,u,d=e((()=>{l=t(),i(),a(),u=n()}));export{s as n,d as r,c as t};
//# sourceMappingURL=searchable-page-layout-BnRQr8Ga.js.map