import{f as S,g,q as x,r as E,s as F}from"./chunk-EYKTWVA3.js";import{a as P}from"./chunk-LINSHUDU.js";import{b as M}from"./chunk-PV6WMERW.js";import{B as m,C as i,H as O,K as y,L as c,h as p,o as v,p as n,s as u,w as z,y as f}from"./chunk-D3R64VAA.js";import q,{Fragment as B,memo as D,useMemo as h}from"react";function k(...e){return a=>e.reduceRight((t,o)=>o(t),a)}function H(e){let{activity:a,hideTimestamp:t,render:o,renderActivityStatus:s,renderAvatar:r,showCallout:l}=M(L,e),{hideTimestamp:b,showCallout:A}=P(),j=x(),w=F(),d=E(),C=h(()=>j(Object.freeze({activity:a})),[a,j]),T=h(()=>!!d&&d(Object.freeze({activity:a})),[a,d]),_=h(()=>o(w,Object.freeze({hideTimestamp:typeof t>"u"?b:t,renderActivityStatus:typeof s>"u"?C:s,renderAvatar:typeof r>"u"?T:r,showCallout:typeof l>"u"?A:l})),[b,t,o,C,s,w,T,r,A,l]);return q.createElement(B,null,_)}var I=D(H),R=n(e=>c(m({}),e).success),L=y(m({activity:R,children:i(f()),render:n(e=>c(u(),e).success),hideTimestamp:i(v()),renderActivityStatus:i(n(e=>c(u(),e).success)),renderAvatar:i(O([z(!1),n(e=>c(u(),e).success)])),showCallout:i(v())}),p()),U=y(m({activity:R,children:i(f())}),p());function N(...e){let a=k(...e.map(t=>t()));return S(t=>{let o=a(s=>{let r=t(s);return!!r&&(()=>r.render({}))});return s=>{let r=o(s);return r?g(I,{activity:s.activity,render:r}):void 0}})}var V=N;export{V as a};
//# sourceMappingURL=chunk-HDO3SXQ7.js.map
