import{B as e,D as t,E as n,F as r,G as i,H as a,It as o,M as s,Mt as c,P as l,Q as u,U as d,V as f,W as p,Y as m,Z as h,_t as g,at as _,d as ee,ft as v,ht as y,jt as b,mt as x,ot as te,pt as S,s as C,st as w,tt as T,u as E,x as D}from"./BA99CCI5.js";import"./xihTtKlq.js";import"./DGo8yE5j.js";import{t as ne}from"./BB59mDRy.js";import{t as re}from"./CfTYE2PK2.js";var ie=i(`<svg role="img" viewBox="0 0 24 24" fill="currentColor"><path></path></svg>`),ae=p(`<span><!></span>`),oe=p(`<span class="ml-1.5 text-xs text-neutral-400 dark:text-neutral-500"> </span>`),O=p(`<span class="mt-0.5 block text-xs leading-snug text-neutral-400 dark:text-neutral-500"> </span>`),k=p(`<span><span> <!></span> <!></span>`),A=p(`<div><!></div>`),j=p(`<div><button><!> <!> <!></button> <!></div>`);function M(i,p){let M=l(p);c(p,!1);let N=y(),P=y(),F=y(),I=y(),L=y(),R=y(),z=C(p,`icon`,8,void 0),se=C(p,`label`,8),B=C(p,`secondaryText`,8,``),V=C(p,`description`,8,``),H=C(p,`disabled`,8,!1),U=C(p,`danger`,8,!1),W=C(p,`selected`,8,!1),G=C(p,`highlighted`,8,!1),K=C(p,`compact`,8,!1),ce=C(p,`checkIcon`,8,ne),le=C(p,`checkColor`,8,`accent`),q=C(p,`labelClass`,8,``),J=C(p,`labelTransform`,8,`none`),ue=C(p,`customContent`,8,!1);_(()=>h(z()),()=>{g(N,z()&&typeof z()==`object`&&`path`in z())}),_(()=>h(K()),()=>{g(P,K()?`gap-2 px-2 py-1 text-xs`:`gap-3 px-3 py-2`)}),_(()=>h(K()),()=>{g(F,K()?`first:rounded-t-lg last:rounded-b-lg`:`first:rounded-t-xl last:rounded-b-xl`)}),_(()=>(h(H()),h(U()),h(G())),()=>{g(I,H()?`cursor-not-allowed text-neutral-400 dark:text-neutral-500`:U()?`text-red-600 hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-900 ${G()?`bg-red-50 dark:bg-red-900`:``}`:`text-neutral-700 hover:bg-neutral-50 dark:text-neutral-200 dark:hover:bg-neutral-700 ${G()?`bg-neutral-100 dark:bg-neutral-700`:``}`)}),_(()=>h(K()),()=>{g(L,K()?12:16)}),_(()=>h(J()),()=>{g(R,J()===`capitalize`?`capitalize`:J()===`uppercase`?`uppercase`:J()===`lowercase`?`lowercase`:``)}),te(),ee();var Y=j(),X=v(Y),Z=v(X),Q=t=>{var n=d(),r=S(n),i=e=>{var t=ie(),n=v(t);o(t),w(()=>{D(t,`width`,u(L)),D(t,`height`,u(L)),D(n,`d`,(h(z()),T(()=>z().path)))}),a(e,t)},c=e=>{var t=d(),n=S(t);s(n,z,(e,t)=>{t(e,{get size(){return u(L)}})}),a(e,t)};e(r,e=>{u(N)?e(i):e(c,-1)}),a(t,n)};e(Z,e=>{z()&&e(Q)});var $=x(Z,2),de=e=>{var t=ae(),i=v(t);r(i,p,`default`,{},null),o(t),w(()=>n(t,1,`min-w-0 flex-1 ${q()??``}`)),a(e,t)},fe=r=>{var i=k(),s=v(i),c=v(s,!0),l=x(c),d=e=>{var t=oe(),n=v(t,!0);o(t),w(()=>f(n,B())),a(e,t)};e(l,e=>{B()&&e(d)}),o(s);var p=x(s,2),m=e=>{var t=O(),n=v(t,!0);o(t),w(()=>f(n,V())),a(e,t)};e(p,e=>{V()&&e(m)}),o(i),w(()=>{n(i,1,`min-w-0 flex-1 ${q()??``}`),n(s,1,t(u(R))),f(c,se())}),a(r,i)};e($,e=>{ue()?e(de):e(fe,-1)});var pe=x($,2);re(pe,{get icon(){return ce()},get checked(){return W()},shape:`circle`,get color(){return le()},get compact(){return K()}}),o(X);var me=x(X,2),he=e=>{var t=A(),i=v(t);r(i,p,`actions`,{},null),o(t),w(()=>n(t,1,`flex items-center ${K()?`pr-2`:`pr-3`}`)),a(e,t)};e(me,e=>{T(()=>M.actions)&&e(he)}),o(Y),w(()=>{n(Y,1,`flex w-full items-center border-b border-neutral-200/50 last:border-b-0 dark:border-neutral-700/40 ${u(F)??``}`),n(X,1,`flex min-w-0 flex-1 items-center text-left transition-colors ${u(P)??``} ${u(I)??``}`),X.disabled=H()}),m(`click`,X,function(e){E.call(this,p,e)}),m(`mouseenter`,X,function(e){E.call(this,p,e)}),a(i,Y),b()}export{M as t};