import{c as y,u as S,au as h,j as m,av as R,b,r as x,aw as E,ax as g,ay as P,az as I}from"./index-26FXPGkN.js";const _=()=>{const e=y.c(12),{t}=S();let a;e[0]!==t?(a=t("nodata.noProjects.title"),e[0]=t,e[1]=a):a=e[1];let r;e[2]!==t?(r=t("nodata.noProjects.description"),e[2]=t,e[3]=r):r=e[3];let o;e[4]!==t?(o=t("nodata.noProjects.action"),e[4]=t,e[5]=o):o=e[5];let s;e[6]!==o?(s=[{buttonText:o,handleClick:h}],e[6]=o,e[7]=s):s=e[7];let c;return e[8]!==a||e[9]!==r||e[10]!==s?(c=m.jsx(R,{title:a,description:r,buttons:s}),e[8]=a,e[9]=r,e[10]=s,e[11]=c):c=e[11],c},C=()=>{const e=y.c(8),t=b(),[a,r]=x.useState(!1),{myProjects:o,otherProjects:s,isLoading:c,isSuccess:l}=E();let u,d;if(e[0]!==l||e[1]!==o||e[2]!==t||e[3]!==s?(u=()=>{var j,p;const n=localStorage.getItem(g);if(n){localStorage.removeItem(g),t(decodeURIComponent(n),{replace:!0});return}if(l&&o.length>0){const i=(j=o.at(0))==null?void 0:j.Id;i&&P(i)}else if(l&&s.length>0){const i=(p=s.at(0))==null?void 0:p.Id;i&&P(i)}r(!0)},d=[o,s,l,t],e[0]=l,e[1]=o,e[2]=t,e[3]=s,e[4]=u,e[5]=d):(u=e[4],d=e[5]),x.useEffect(u,d),c||!a){let n;return e[6]===Symbol.for("react.memo_cache_sentinel")?(n=m.jsx(I,{}),e[6]=n):n=e[6],n}let f;return e[7]===Symbol.for("react.memo_cache_sentinel")?(f=m.jsx(_,{}),e[7]=f):f=e[7],f};export{C as default};
