import{b as L}from"./chunk-4CC4CF3L.mjs";import{h as C,i as P,q as b,r as R,s as w}from"./chunk-722QYHIQ.mjs";import{a as S}from"./chunk-RLEJOP6E.mjs";function F(...e){return o=>e.reduceRight((t,a)=>a(t),o)}import{boolean as T,custom as c,function_ as s,literal as H,never as E,object as l,optional as i,pipe as I,readonly as N,safeParse as d,union as _}from"valibot";import M,{Fragment as z,memo as O,useMemo as y}from"react";function W(e){let{activity:o,hideTimestamp:t,render:a,renderActivityStatus:n,renderAvatar:r,showCallout:p}=L(x,e),{hideTimestamp:u,showCallout:f}=S(),v=b(),A=w(),m=R(),h=y(()=>v(Object.freeze({activity:o})),[o,v]),g=y(()=>!!m&&m(Object.freeze({activity:o})),[o,m]),k=y(()=>a(A,Object.freeze({hideTimestamp:typeof t>"u"?u:t,renderActivityStatus:typeof n>"u"?h:n,renderAvatar:typeof r>"u"?g:r,showCallout:typeof p>"u"?f:p})),[u,t,a,h,n,A,g,r,f,p]);return M.createElement(z,null,k)}var B=O(W);var j=c(e=>d(l({}),e).success),x=I(l({activity:j,children:i(E()),render:c(e=>d(s(),e).success),hideTimestamp:i(T()),renderActivityStatus:i(c(e=>d(s(),e).success)),renderAvatar:i(_([H(!1),c(e=>d(s(),e).success)])),showCallout:i(T())}),N()),re=I(l({activity:j,children:i(E())}),N());function D(...e){let o=F(...e.map(t=>t()));return C(t=>{let a=o(n=>{let r=t(n);return!!r&&(()=>r.render({}))});return n=>{let r=a(n);return r?P(B,{activity:n.activity,render:r}):void 0}})}var oe=D;export{oe as a};
//# sourceMappingURL=chunk-S4VU4PXB.mjs.map