prometeo-design-system 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3892,7 +3892,7 @@ const Fe = (a, t, e, r) => t && (Array.isArray(t) ? t.length > 0 : t) ? a.to(t,
|
|
|
3892
3892
|
"div",
|
|
3893
3893
|
{
|
|
3894
3894
|
ref: p,
|
|
3895
|
-
className: `bg-neutral-default-default overflow-hidden h-
|
|
3895
|
+
className: `bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 ${c ? "w-16" : "w-64"}`,
|
|
3896
3896
|
children: [
|
|
3897
3897
|
/* @__PURE__ */ d.jsx(rs, { isCollapsed: c, onToggle: T }),
|
|
3898
3898
|
/* @__PURE__ */ d.jsx(is, { logoUrl: a?.company_id.logo || "", companyName: a?.company_id.name }),
|
|
@@ -34,4 +34,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
34
34
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
35
35
|
* Subject to the terms at https://gsap.com/standard-license
|
|
36
36
|
* @author: Jack Doyle, jack@greensock.com
|
|
37
|
-
*/var Li,Dt,se,qr,Vt,Zi,Cr,ps=function(){return typeof window<"u"},Pt={},Yt=180/Math.PI,ae=Math.PI/180,oe=Math.atan2,Bi=1e8,Sr=/([A-Z])/g,ms=/(left|right|width|margin|padding|x)/i,gs=/[\s,\(]\S/,St={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Or=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},vs=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},xs=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},ys=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},zi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Ui=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},ws=function(t,e,r){return t.style[e]=r},Ts=function(t,e,r){return t.style.setProperty(e,r)},bs=function(t,e,r){return t._gsap[e]=r},qs=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Cs=function(t,e,r,i,n){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(n,s)},Ss=function(t,e,r,i,n){var s=t._gsap;s[e]=r,s.renderTransform(n,s)},z="transform",ht=z+"Origin",Os=function a(t,e){var r=this,i=this.target,n=i.style,s=i._gsap;if(t in Pt&&n){if(this.tfm=this.tfm||{},t!=="transform")t=St[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return r.tfm[o]=kt(i,o)}):this.tfm[t]=s.x?s[t]:kt(i,t),t===ht&&(this.tfm.zOrigin=s.zOrigin);else return St.transform.split(",").forEach(function(o){return a.call(r,o,e)});if(this.props.indexOf(z)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ht,e,"")),t=z}(n||e)&&this.props.push(t,e,n[t])},Hi=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},js=function(){var t=this.props,e=this.target,r=e.style,i=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?t[n+1]===2?e[t[n]](t[n+2]):e[t[n]]=t[n+2]:t[n+2]?r[t[n]]=t[n+2]:r.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Sr,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Cr(),(!n||!n.isStart)&&!r[z]&&(Hi(r),i.zOrigin&&r[ht]&&(r[ht]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Vi=function(t,e){var r={target:t,props:[],revert:js,save:Os};return t._gsap||ft.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(i){return r.save(i)}),r},Yi,jr=function(t,e){var r=Dt.createElementNS?Dt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Dt.createElement(t);return r&&r.style?r:Dt.createElement(t)},Tt=function a(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Sr,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&a(t,le(e)||e,1)||""},Xi="O,Moz,ms,Ms,Webkit".split(","),le=function(t,e,r){var i=e||Vt,n=i.style,s=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(Xi[s]+t in n););return s<0?null:(s===3?"ms":s>=0?Xi[s]:"")+t},Pr=function(){ps()&&window.document&&(Li=window,Dt=Li.document,se=Dt.documentElement,Vt=jr("div")||{style:{}},jr("div"),z=le(z),ht=z+"Origin",Vt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Yi=!!le("perspective"),Cr=ft.core.reverting,qr=1)},Wi=function(t){var e=t.ownerSVGElement,r=jr("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),n;i.style.display="block",r.appendChild(i),se.appendChild(r);try{n=i.getBBox()}catch{}return r.removeChild(i),se.removeChild(r),n},Gi=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Ji=function(t){var e,r;try{e=t.getBBox()}catch{e=Wi(t),r=1}return e&&(e.width||e.height)||r||(e=Wi(t)),e&&!e.width&&!e.x&&!e.y?{x:+Gi(t,["x","cx","x1"])||0,y:+Gi(t,["y","cy","y1"])||0,width:0,height:0}:e},Qi=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Ji(t))},Xt=function(t,e){if(e){var r=t.style,i;e in Pt&&e!==ht&&(e=z),r.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),r.removeProperty(i==="--"?e:e.replace(Sr,"-$1").toLowerCase())):r.removeAttribute(e)}},It=function(t,e,r,i,n,s){var o=new ut(t._pt,e,r,0,1,s?Ui:zi);return t._pt=o,o.b=i,o.e=n,t._props.push(r),o},Ki={deg:1,rad:1,turn:1},Ps={grid:1,flex:1},Ft=function a(t,e,r,i){var n=parseFloat(r)||0,s=(r+"").trim().substr((n+"").length)||"px",o=Vt.style,l=ms.test(e),u=t.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(l?"Width":"Height"),c=100,_=i==="px",p=i==="%",m,h,g,v;if(i===s||!n||Ki[i]||Ki[s])return n;if(s!=="px"&&!_&&(n=a(t,e,r,"px")),v=t.getCTM&&Qi(t),(p||s==="%")&&(Pt[e]||~e.indexOf("adius")))return m=v?t.getBBox()[l?"width":"height"]:t[f],Y(p?n/m*c:n/100*m);if(o[l?"width":"height"]=c+(_?s:i),h=i!=="rem"&&~e.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,v&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Dt||!h.appendChild)&&(h=Dt.body),g=h._gsap,g&&p&&g.width&&l&&g.time===vt.time&&!g.uncache)return Y(n/g.width*c);if(p&&(e==="height"||e==="width")){var y=t.style[e];t.style[e]=c+i,m=t[f],y?t.style[e]=y:Xt(t,e)}else(p||s==="%")&&!Ps[Tt(h,"display")]&&(o.position=Tt(t,"position")),h===t&&(o.position="static"),h.appendChild(Vt),m=Vt[f],h.removeChild(Vt),o.position="absolute";return l&&p&&(g=Zt(h),g.time=vt.time,g.width=h[f]),Y(_?m*n/c:m&&n?c/m*n:0)},kt=function(t,e,r,i){var n;return qr||Pr(),e in St&&e!=="transform"&&(e=St[e],~e.indexOf(",")&&(e=e.split(",")[0])),Pt[e]&&e!=="transform"?(n=Ce(t,i),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:Be(Tt(t,ht))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Ze[e]&&Ze[e](t,e,r)||Tt(t,e)||ei(t,e)||(e==="opacity"?1:0))),r&&!~(n+"").trim().indexOf(" ")?Ft(t,e,n,r)+r:n},ks=function(t,e,r,i){if(!r||r==="none"){var n=le(e,t,1),s=n&&Tt(t,n,1);s&&s!==r?(e=n,r=s):e==="borderColor"&&(r=Tt(t,"borderTopColor"))}var o=new ut(this._pt,t.style,e,0,1,Mi),l=0,u=0,f,c,_,p,m,h,g,v,y,b,T,x;if(o.b=r,o.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Tt(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=t.style[e],t.style[e]=i,i=Tt(t,e)||i,h?t.style[e]=h:Xt(t,e)),f=[r,i],Ci(f),r=f[0],i=f[1],_=r.match(Kt)||[],x=i.match(Kt)||[],x.length){for(;c=Kt.exec(i);)g=c[0],y=i.substring(l,c.index),m?m=(m+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(m=1),g!==(h=_[u++]||"")&&(p=parseFloat(h)||0,T=h.substr((p+"").length),g.charAt(1)==="="&&(g=$t(p,g)+T),v=parseFloat(g),b=g.substr((v+"").length),l=Kt.lastIndex-b.length,b||(b=b||dt.units[e]||T,l===i.length&&(i+=b,o.e+=b)),T!==b&&(p=Ft(t,e,h,b)||0),o._pt={_next:o._pt,p:y||u===1?y:",",s:p,c:v-p,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=e==="display"&&i==="none"?Ui:zi;return Wr.test(i)&&(o.e=0),this._pt=o,o},$i={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Rs=function(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(t=r,r=i,i=t),e[0]=$i[r]||r,e[1]=$i[i]||i,e.join(" ")},Es=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r=e.t,i=r.style,n=e.u,s=r._gsap,o,l,u;if(n==="all"||n===!0)i.cssText="",l=1;else for(n=n.split(","),u=n.length;--u>-1;)o=n[u],Pt[o]&&(l=1,o=o==="transformOrigin"?ht:z),Xt(r,o);l&&(Xt(r,z),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Ce(r,1),s.uncache=1,Hi(i)))}},Ze={clearProps:function(t,e,r,i,n){if(n.data!=="isFromStart"){var s=t._pt=new ut(t._pt,e,r,0,0,Es);return s.u=i,s.pr=-10,s.tween=n,t._props.push(r),1}}},qe=[1,0,0,1,0,0],tn={},en=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},rn=function(t){var e=Tt(t,z);return en(e)?qe:e.substr(7).match(Xr).map(Y)},kr=function(t,e){var r=t._gsap||Zt(t),i=t.style,n=rn(t),s,o,l,u;return r.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?qe:n):(n===qe&&!t.offsetParent&&t!==se&&!r.svg&&(l=i.display,i.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,o=t.nextElementSibling,se.appendChild(t)),n=rn(t),l?i.display=l:Xt(t,"display"),u&&(o?s.insertBefore(t,o):s?s.appendChild(t):se.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Rr=function(t,e,r,i,n,s){var o=t._gsap,l=n||kr(t,!0),u=o.xOrigin||0,f=o.yOrigin||0,c=o.xOffset||0,_=o.yOffset||0,p=l[0],m=l[1],h=l[2],g=l[3],v=l[4],y=l[5],b=e.split(" "),T=parseFloat(b[0])||0,x=parseFloat(b[1])||0,C,S,O,q;r?l!==qe&&(S=p*g-m*h)&&(O=T*(g/S)+x*(-h/S)+(h*y-g*v)/S,q=T*(-m/S)+x*(p/S)-(p*y-m*v)/S,T=O,x=q):(C=Ji(t),T=C.x+(~b[0].indexOf("%")?T/100*C.width:T),x=C.y+(~(b[1]||b[0]).indexOf("%")?x/100*C.height:x)),i||i!==!1&&o.smooth?(v=T-u,y=x-f,o.xOffset=c+(v*p+y*h)-v,o.yOffset=_+(v*m+y*g)-y):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=x,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!r,t.style[ht]="0px 0px",s&&(It(s,o,"xOrigin",u,T),It(s,o,"yOrigin",f,x),It(s,o,"xOffset",c,o.xOffset),It(s,o,"yOffset",_,o.yOffset)),t.setAttribute("data-svg-origin",T+" "+x)},Ce=function(t,e){var r=t._gsap||new Pi(t);if("x"in r&&!e&&!r.uncache)return r;var i=t.style,n=r.scaleX<0,s="px",o="deg",l=getComputedStyle(t),u=Tt(t,ht)||"0",f,c,_,p,m,h,g,v,y,b,T,x,C,S,O,q,P,N,E,M,X,W,U,G,ct,Jt,w,j,A,K,tt,et;return f=c=_=h=g=v=y=b=T=0,p=m=1,r.svg=!!(t.getCTM&&Qi(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[z]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[z]!=="none"?l[z]:"")),i.scale=i.rotate=i.translate="none"),S=kr(t,r.svg),r.svg&&(r.uncache?(ct=t.getBBox(),u=r.xOrigin-ct.x+"px "+(r.yOrigin-ct.y)+"px",G=""):G=!e&&t.getAttribute("data-svg-origin"),Rr(t,G||u,!!G||r.originIsAbsolute,r.smooth!==!1,S)),x=r.xOrigin||0,C=r.yOrigin||0,S!==qe&&(N=S[0],E=S[1],M=S[2],X=S[3],f=W=S[4],c=U=S[5],S.length===6?(p=Math.sqrt(N*N+E*E),m=Math.sqrt(X*X+M*M),h=N||E?oe(E,N)*Yt:0,y=M||X?oe(M,X)*Yt+h:0,y&&(m*=Math.abs(Math.cos(y*ae))),r.svg&&(f-=x-(x*N+C*M),c-=C-(x*E+C*X))):(et=S[6],K=S[7],w=S[8],j=S[9],A=S[10],tt=S[11],f=S[12],c=S[13],_=S[14],O=oe(et,A),g=O*Yt,O&&(q=Math.cos(-O),P=Math.sin(-O),G=W*q+w*P,ct=U*q+j*P,Jt=et*q+A*P,w=W*-P+w*q,j=U*-P+j*q,A=et*-P+A*q,tt=K*-P+tt*q,W=G,U=ct,et=Jt),O=oe(-M,A),v=O*Yt,O&&(q=Math.cos(-O),P=Math.sin(-O),G=N*q-w*P,ct=E*q-j*P,Jt=M*q-A*P,tt=X*P+tt*q,N=G,E=ct,M=Jt),O=oe(E,N),h=O*Yt,O&&(q=Math.cos(O),P=Math.sin(O),G=N*q+E*P,ct=W*q+U*P,E=E*q-N*P,U=U*q-W*P,N=G,W=ct),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,v=180-v),p=Y(Math.sqrt(N*N+E*E+M*M)),m=Y(Math.sqrt(U*U+et*et)),O=oe(W,U),y=Math.abs(O)>2e-4?O*Yt:0,T=tt?1/(tt<0?-tt:tt):0),r.svg&&(G=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!en(Tt(t,z)),G&&t.setAttribute("transform",G))),Math.abs(y)>90&&Math.abs(y)<270&&(n?(p*=-1,y+=h<=0?180:-180,h+=h<=0?180:-180):(m*=-1,y+=y<=0?180:-180)),e=e||r.uncache,r.x=f-((r.xPercent=f&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+s,r.y=c-((r.yPercent=c&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-c)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+s,r.z=_+s,r.scaleX=Y(p),r.scaleY=Y(m),r.rotation=Y(h)+o,r.rotationX=Y(g)+o,r.rotationY=Y(v)+o,r.skewX=y+o,r.skewY=b+o,r.transformPerspective=T+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!e&&r.zOrigin||0)&&(i[ht]=Be(u)),r.xOffset=r.yOffset=0,r.force3D=dt.force3D,r.renderTransform=r.svg?Ns:Yi?nn:As,r.uncache=0,r},Be=function(t){return(t=t.split(" "))[0]+" "+t[1]},Er=function(t,e,r){var i=nt(e);return Y(parseFloat(e)+parseFloat(Ft(t,"x",r+"px",i)))+i},As=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,nn(t,e)},Wt="0deg",Se="0px",Gt=") ",nn=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.z,u=r.rotation,f=r.rotationY,c=r.rotationX,_=r.skewX,p=r.skewY,m=r.scaleX,h=r.scaleY,g=r.transformPerspective,v=r.force3D,y=r.target,b=r.zOrigin,T="",x=v==="auto"&&t&&t!==1||v===!0;if(b&&(c!==Wt||f!==Wt)){var C=parseFloat(f)*ae,S=Math.sin(C),O=Math.cos(C),q;C=parseFloat(c)*ae,q=Math.cos(C),s=Er(y,s,S*q*-b),o=Er(y,o,-Math.sin(C)*-b),l=Er(y,l,O*q*-b+b)}g!==Se&&(T+="perspective("+g+Gt),(i||n)&&(T+="translate("+i+"%, "+n+"%) "),(x||s!==Se||o!==Se||l!==Se)&&(T+=l!==Se||x?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+Gt),u!==Wt&&(T+="rotate("+u+Gt),f!==Wt&&(T+="rotateY("+f+Gt),c!==Wt&&(T+="rotateX("+c+Gt),(_!==Wt||p!==Wt)&&(T+="skew("+_+", "+p+Gt),(m!==1||h!==1)&&(T+="scale("+m+", "+h+Gt),y.style[z]=T||"translate(0, 0)"},Ns=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.rotation,u=r.skewX,f=r.skewY,c=r.scaleX,_=r.scaleY,p=r.target,m=r.xOrigin,h=r.yOrigin,g=r.xOffset,v=r.yOffset,y=r.forceCSS,b=parseFloat(s),T=parseFloat(o),x,C,S,O,q;l=parseFloat(l),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,l+=f),l||u?(l*=ae,u*=ae,x=Math.cos(l)*c,C=Math.sin(l)*c,S=Math.sin(l-u)*-_,O=Math.cos(l-u)*_,u&&(f*=ae,q=Math.tan(u-f),q=Math.sqrt(1+q*q),S*=q,O*=q,f&&(q=Math.tan(f),q=Math.sqrt(1+q*q),x*=q,C*=q)),x=Y(x),C=Y(C),S=Y(S),O=Y(O)):(x=c,O=_,C=S=0),(b&&!~(s+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(b=Ft(p,"x",s,"px"),T=Ft(p,"y",o,"px")),(m||h||g||v)&&(b=Y(b+m-(m*x+h*S)+g),T=Y(T+h-(m*C+h*O)+v)),(i||n)&&(q=p.getBBox(),b=Y(b+i/100*q.width),T=Y(T+n/100*q.height)),q="matrix("+x+","+C+","+S+","+O+","+b+","+T+")",p.setAttribute("transform",q),y&&(p.style[z]=q)},Ms=function(t,e,r,i,n){var s=360,o=$(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?Yt:1),u=l-i,f=i+u+"deg",c,_;return o&&(c=n.split("_")[1],c==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),c==="cw"&&u<0?u=(u+s*Bi)%s-~~(u/s)*s:c==="ccw"&&u>0&&(u=(u-s*Bi)%s-~~(u/s)*s)),t._pt=_=new ut(t._pt,e,r,i,u,vs),_.e=f,_.u="deg",t._props.push(r),_},sn=function(t,e){for(var r in e)t[r]=e[r];return t},Ds=function(t,e,r){var i=sn({},r._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=r.style,o,l,u,f,c,_,p,m;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[z]=e,o=Ce(r,1),Xt(r,z),r.setAttribute("transform",u)):(u=getComputedStyle(r)[z],s[z]=e,o=Ce(r,1),s[z]=u);for(l in Pt)u=i[l],f=o[l],u!==f&&n.indexOf(l)<0&&(p=nt(u),m=nt(f),c=p!==m?Ft(r,l,u,m):parseFloat(u),_=parseFloat(f),t._pt=new ut(t._pt,o,l,c,_-c,Or),t._pt.u=m||0,t._props.push(l));sn(o,i)};lt("padding,margin,Width,Radius",function(a,t){var e="Top",r="Right",i="Bottom",n="Left",s=(t<3?[e,r,i,n]:[e+n,e+r,i+r,i+n]).map(function(o){return t<2?a+o:"border"+o+a});Ze[t>1?"border"+a:a]=function(o,l,u,f,c){var _,p;if(arguments.length<4)return _=s.map(function(m){return kt(o,m,u)}),p=_.join(" "),p.split(_[0]).length===5?_[0]:p;_=(f+"").split(" "),p={},s.forEach(function(m,h){return p[m]=_[h]=_[h]||_[(h-1)/2|0]}),o.init(l,p,c)}});var an={name:"css",register:Pr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s=this._props,o=t.style,l=r.vars.startAt,u,f,c,_,p,m,h,g,v,y,b,T,x,C,S,O;qr||Pr(),this.styles=this.styles||Vi(t),O=this.styles.props,this.tween=r;for(h in e)if(h!=="autoRound"&&(f=e[h],!(pt[h]&&ki(h,e,r,i,t,n)))){if(p=typeof f,m=Ze[h],p==="function"&&(f=f.call(r,i,t,n),p=typeof f),p==="string"&&~f.indexOf("random(")&&(f=ve(f)),m)m(this,t,h,f,r)&&(S=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(h)+"").trim(),f+="",Nt.lastIndex=0,Nt.test(u)||(g=nt(u),v=nt(f)),v?g!==v&&(u=Ft(t,h,u,v)+v):g&&(f+=g),this.add(o,"setProperty",u,f,i,n,0,0,h),s.push(h),O.push(h,0,o[h]);else if(p!=="undefined"){if(l&&h in l?(u=typeof l[h]=="function"?l[h].call(r,i,t,n):l[h],$(u)&&~u.indexOf("random(")&&(u=ve(u)),nt(u+"")||u==="auto"||(u+=dt.units[h]||nt(kt(t,h))||""),(u+"").charAt(1)==="="&&(u=kt(t,h))):u=kt(t,h),_=parseFloat(u),y=p==="string"&&f.charAt(1)==="="&&f.substr(0,2),y&&(f=f.substr(2)),c=parseFloat(f),h in St&&(h==="autoAlpha"&&(_===1&&kt(t,"visibility")==="hidden"&&c&&(_=0),O.push("visibility",0,o.visibility),It(this,o,"visibility",_?"inherit":"hidden",c?"inherit":"hidden",!c)),h!=="scale"&&h!=="transform"&&(h=St[h],~h.indexOf(",")&&(h=h.split(",")[0]))),b=h in Pt,b){if(this.styles.save(h),p==="string"&&f.substring(0,6)==="var(--"&&(f=Tt(t,f.substring(4,f.indexOf(")"))),c=parseFloat(f)),T||(x=t._gsap,x.renderTransform&&!e.parseTransform||Ce(t,e.parseTransform),C=e.smoothOrigin!==!1&&x.smooth,T=this._pt=new ut(this._pt,o,z,0,1,x.renderTransform,x,0,-1),T.dep=1),h==="scale")this._pt=new ut(this._pt,x,"scaleY",x.scaleY,(y?$t(x.scaleY,y+c):c)-x.scaleY||0,Or),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){O.push(ht,0,o[ht]),f=Rs(f),x.svg?Rr(t,f,0,C,0,this):(v=parseFloat(f.split(" ")[2])||0,v!==x.zOrigin&&It(this,x,"zOrigin",x.zOrigin,v),It(this,o,h,Be(u),Be(f)));continue}else if(h==="svgOrigin"){Rr(t,f,1,C,0,this);continue}else if(h in tn){Ms(this,x,h,_,y?$t(_,y+f):f);continue}else if(h==="smoothOrigin"){It(this,x,"smooth",x.smooth,f);continue}else if(h==="force3D"){x[h]=f;continue}else if(h==="transform"){Ds(this,f,t);continue}}else h in o||(h=le(h)||h);if(b||(c||c===0)&&(_||_===0)&&!gs.test(f)&&h in o)g=(u+"").substr((_+"").length),c||(c=0),v=nt(f)||(h in dt.units?dt.units[h]:g),g!==v&&(_=Ft(t,h,u,v)),this._pt=new ut(this._pt,b?x:o,h,_,(y?$t(_,y+c):c)-_,!b&&(v==="px"||h==="zIndex")&&e.autoRound!==!1?ys:Or),this._pt.u=v||0,g!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=xs);else if(h in o)ks.call(this,t,h,u,y?y+f:f);else if(h in t)this.add(t,h,u||t[h],y?y+f:f,i,n);else if(h!=="parseTransform"){tr(h,f);continue}b||(h in o?O.push(h,0,o[h]):typeof t[h]=="function"?O.push(h,2,t[h]()):O.push(h,1,u||t[h])),s.push(h)}}S&&Di(this)},render:function(t,e){if(e.tween._time||!Cr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:kt,aliases:St,getSetter:function(t,e,r){var i=St[e];return i&&i.indexOf(",")<0&&(e=i),e in Pt&&e!==ht&&(t._gsap.x||kt(t,"x"))?r&&Zi===r?e==="scale"?qs:bs:(Zi=r||{})&&(e==="scale"?Cs:Ss):t.style&&!We(t.style[e])?ws:~e.indexOf("-")?Ts:xr(t,e)},core:{_removeProperty:Xt,_getMatrix:kr}};ft.utils.checkPrefix=le,ft.core.getStyleSaver=Vi,(function(a,t,e,r){var i=lt(a+","+t+","+e,function(n){Pt[n]=1});lt(t,function(n){dt.units[n]="deg",tn[n]=1}),St[i[13]]=a+","+t,lt(r,function(n){var s=n.split(":");St[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),lt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){dt.units[a]="px"}),ft.registerPlugin(an);var ue=ft.registerPlugin(an)||ft;ue.core.Tween;const ze=(a,t,e,r)=>t&&(Array.isArray(t)?t.length>0:t)?a.to(t,e,r):a,on=(a,t)=>{cn.useGSAP(()=>{const e=ue.timeline({defaults:{duration:.7,ease:"power1.out"}}),r={navbar:a.current,navLabels:ue.utils.toArray(".nav-label"),navIconWrappers:ue.utils.toArray(".nav-icon-wrapper"),navIcons:ue.utils.toArray(".nav-icon"),navLinkItems:ue.utils.toArray(".nav-link-item"),logoutButton:document.querySelector(".logout-button"),logoutLabel:document.querySelector(".logout-label"),logoutIcon:document.querySelector(".logout-icon"),profileContainer:document.querySelector(".profile-container"),profileName:document.querySelector(".profile-name"),profileOptions:document.querySelector(".profile-options"),profileImageWrapper:document.querySelector(".profile-image-wrapper"),coverImageProfile:document.querySelector(".cover-image-profile"),navContentWrapper:document.querySelector(".nav-content-wrapper-active"),buttonCrevron:document.querySelector(".button-select-crevron"),separatorProfile:document.querySelector(".border-separator-profile"),buttonProfile:document.querySelector(".button-profile"),profileUserInfo:document.querySelector(".profile-user-info"),buttonContentChevron:document.querySelector(".button-content-chevron")};t?Is(e,r):Fs(e,r)},{scope:a,dependencies:[t]})},Is=(a,t)=>{a.to(t.navbar,{width:"6rem"},.2).to(t.profileUserInfo,{display:"none"},0).to(t.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},.1).to(t.navLabels,{opacity:0,width:30,marginLeft:0},0).to(t.navIcons,{scale:.9},0).to(t.navContentWrapper,{backgroundColor:"transparent"},0),ze(a,t.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="none"}},0),ze(a,t.buttonContentChevron,{display:"none"},0).to(t.separatorProfile,{display:"none"},0).to(t.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(t.buttonProfile,{height:"3rem",width:"3rem",borderRadius:"50px",margin:0,padding:0,borderTopLeftRadius:"50px",borderTopRightRadius:"50px",borderBottomLeftRadius:"50px",borderBottomRightRadius:"50px",duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},0)},Fs=(a,t)=>{a.to(t.navLinkItems,{borderRadius:"10px",duration:.3},0).to(t.navbar,{width:"20rem"},-1),ze(a,t.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="flex"}},0),ze(a,t.buttonContentChevron,{display:"flex"},0).to(t.buttonContentChevron,{display:"flex"},0).to(t.separatorProfile,{display:"flex"},0).to(t.profileUserInfo,{display:"flex"},.3).to(t.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(t.navLinkItems,{width:"100%",justifyContent:"flex-start"},.2).to(t.separatorProfile,{display:"flex"},0).to(t.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(t.navIcons,{scale:1},.3)},Ls=({user:a,sessions:t,handleLogout:e,handleTokenLogin:r,pageLinks:i,utilLinks:n,isActiveModalNotification:s,handleNotificationClick:o,handleProfileClick:l,onLinkClick:u,isLinkActive:f})=>{const[c,_]=V.useState(!1),{navbarRef:p}=Ur(c);on(p,c);const[m,h]=V.useState(!1),[g,v]=V.useState(!1),y=V.useRef(null);V.useEffect(()=>{const C=S=>{y.current&&!y.current.contains(S.target)&&g&&v(!1)};return g&&document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}},[g,v]),V.useEffect(()=>{c&&h(!1)},[c]);const b=()=>{v(!g)},T=()=>{v(!1),_(!c)},x=()=>{h(c?!1:!m)};return d.jsxs("div",{ref:p,className:`bg-neutral-default-default overflow-hidden h-full flex flex-col border-r border-neutral-strong-default transition-all duration-300 ${c?"w-16":"w-64"}`,children:[d.jsx(Br,{isCollapsed:c,onToggle:T}),d.jsx(zr,{logoUrl:a?.company_id.logo||"",companyName:a?.company_id.name}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mb-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx(Ve,{links:i,isLinkActive:f,componentBadge:C=>d.jsx(He,{notificationsCount:C||0}),onLinkClick:u}),d.jsx("div",{className:"flex-grow"}),d.jsx(Ve,{links:n,componentBadge:C=>d.jsx(He,{notificationsCount:C||0}),onClick:o,isLinkActive:f,activeModal:s,onLinkClick:u}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mt-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx("div",{className:"px-3 py-2",children:d.jsx(Ue,{sessions:t,user:a,isExpanded:m,showOptions:!0,onProfileClick:c?b:l,onClick:x,onClickLogout:()=>e(a),handleTokenLogin:C=>{r(C),h(!1)}})}),c&&!m&&g&&d.jsx(d.Fragment,{children:d.jsx(Zr,{sessionsShow:t,handleTokenLogin:r,onClickLogout:()=>e(a),menuRef:y,onProfileClick:l})})]})},Zs=({children:a})=>d.jsxs("div",{className:"flex h-screen w-full",children:[a,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(dn.Outlet,{})})]}),Bs=(a,t=!0)=>{const e=V.useRef(null);return V.useEffect(()=>{if(!t)return;const r=i=>{e.current&&!e.current.contains(i.target)&&a()};return document.addEventListener("mousedown",r,{capture:!0}),document.addEventListener("touchstart",r,{capture:!0}),()=>{document.removeEventListener("mousedown",r,{capture:!0}),document.removeEventListener("touchstart",r,{capture:!0})}},[a,t]),e};D.Badge=He,D.Button=xn,D.CompanyLogo=zr,D.Icons=Lt,D.Input=wn,D.LayoutGeneric=Zs,D.Menu=Zr,D.NavbarCollapseButton=Br,D.NavbarLinks=Ve,D.Sidebar=Ls,D.UserProfile=Ue,D.useClickOutside=Bs,D.useNavbarAnimations=on,D.useNavbarCollapse=Ur,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|
|
37
|
+
*/var Li,Dt,se,qr,Vt,Zi,Cr,ps=function(){return typeof window<"u"},Pt={},Yt=180/Math.PI,ae=Math.PI/180,oe=Math.atan2,Bi=1e8,Sr=/([A-Z])/g,ms=/(left|right|width|margin|padding|x)/i,gs=/[\s,\(]\S/,St={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Or=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},vs=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},xs=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},ys=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},zi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Ui=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},ws=function(t,e,r){return t.style[e]=r},Ts=function(t,e,r){return t.style.setProperty(e,r)},bs=function(t,e,r){return t._gsap[e]=r},qs=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},Cs=function(t,e,r,i,n){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(n,s)},Ss=function(t,e,r,i,n){var s=t._gsap;s[e]=r,s.renderTransform(n,s)},z="transform",ht=z+"Origin",Os=function a(t,e){var r=this,i=this.target,n=i.style,s=i._gsap;if(t in Pt&&n){if(this.tfm=this.tfm||{},t!=="transform")t=St[t]||t,~t.indexOf(",")?t.split(",").forEach(function(o){return r.tfm[o]=kt(i,o)}):this.tfm[t]=s.x?s[t]:kt(i,t),t===ht&&(this.tfm.zOrigin=s.zOrigin);else return St.transform.split(",").forEach(function(o){return a.call(r,o,e)});if(this.props.indexOf(z)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ht,e,"")),t=z}(n||e)&&this.props.push(t,e,n[t])},Hi=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},js=function(){var t=this.props,e=this.target,r=e.style,i=e._gsap,n,s;for(n=0;n<t.length;n+=3)t[n+1]?t[n+1]===2?e[t[n]](t[n+2]):e[t[n]]=t[n+2]:t[n+2]?r[t[n]]=t[n+2]:r.removeProperty(t[n].substr(0,2)==="--"?t[n]:t[n].replace(Sr,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),n=Cr(),(!n||!n.isStart)&&!r[z]&&(Hi(r),i.zOrigin&&r[ht]&&(r[ht]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Vi=function(t,e){var r={target:t,props:[],revert:js,save:Os};return t._gsap||ft.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach(function(i){return r.save(i)}),r},Yi,jr=function(t,e){var r=Dt.createElementNS?Dt.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Dt.createElement(t);return r&&r.style?r:Dt.createElement(t)},Tt=function a(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(Sr,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&a(t,le(e)||e,1)||""},Xi="O,Moz,ms,Ms,Webkit".split(","),le=function(t,e,r){var i=e||Vt,n=i.style,s=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);s--&&!(Xi[s]+t in n););return s<0?null:(s===3?"ms":s>=0?Xi[s]:"")+t},Pr=function(){ps()&&window.document&&(Li=window,Dt=Li.document,se=Dt.documentElement,Vt=jr("div")||{style:{}},jr("div"),z=le(z),ht=z+"Origin",Vt.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Yi=!!le("perspective"),Cr=ft.core.reverting,qr=1)},Wi=function(t){var e=t.ownerSVGElement,r=jr("svg",e&&e.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),n;i.style.display="block",r.appendChild(i),se.appendChild(r);try{n=i.getBBox()}catch{}return r.removeChild(i),se.removeChild(r),n},Gi=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Ji=function(t){var e,r;try{e=t.getBBox()}catch{e=Wi(t),r=1}return e&&(e.width||e.height)||r||(e=Wi(t)),e&&!e.width&&!e.x&&!e.y?{x:+Gi(t,["x","cx","x1"])||0,y:+Gi(t,["y","cy","y1"])||0,width:0,height:0}:e},Qi=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Ji(t))},Xt=function(t,e){if(e){var r=t.style,i;e in Pt&&e!==ht&&(e=z),r.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),r.removeProperty(i==="--"?e:e.replace(Sr,"-$1").toLowerCase())):r.removeAttribute(e)}},It=function(t,e,r,i,n,s){var o=new ut(t._pt,e,r,0,1,s?Ui:zi);return t._pt=o,o.b=i,o.e=n,t._props.push(r),o},Ki={deg:1,rad:1,turn:1},Ps={grid:1,flex:1},Ft=function a(t,e,r,i){var n=parseFloat(r)||0,s=(r+"").trim().substr((n+"").length)||"px",o=Vt.style,l=ms.test(e),u=t.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(l?"Width":"Height"),c=100,_=i==="px",p=i==="%",m,h,g,v;if(i===s||!n||Ki[i]||Ki[s])return n;if(s!=="px"&&!_&&(n=a(t,e,r,"px")),v=t.getCTM&&Qi(t),(p||s==="%")&&(Pt[e]||~e.indexOf("adius")))return m=v?t.getBBox()[l?"width":"height"]:t[f],Y(p?n/m*c:n/100*m);if(o[l?"width":"height"]=c+(_?s:i),h=i!=="rem"&&~e.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,v&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===Dt||!h.appendChild)&&(h=Dt.body),g=h._gsap,g&&p&&g.width&&l&&g.time===vt.time&&!g.uncache)return Y(n/g.width*c);if(p&&(e==="height"||e==="width")){var y=t.style[e];t.style[e]=c+i,m=t[f],y?t.style[e]=y:Xt(t,e)}else(p||s==="%")&&!Ps[Tt(h,"display")]&&(o.position=Tt(t,"position")),h===t&&(o.position="static"),h.appendChild(Vt),m=Vt[f],h.removeChild(Vt),o.position="absolute";return l&&p&&(g=Zt(h),g.time=vt.time,g.width=h[f]),Y(_?m*n/c:m&&n?c/m*n:0)},kt=function(t,e,r,i){var n;return qr||Pr(),e in St&&e!=="transform"&&(e=St[e],~e.indexOf(",")&&(e=e.split(",")[0])),Pt[e]&&e!=="transform"?(n=Ce(t,i),n=e!=="transformOrigin"?n[e]:n.svg?n.origin:Be(Tt(t,ht))+" "+n.zOrigin+"px"):(n=t.style[e],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Ze[e]&&Ze[e](t,e,r)||Tt(t,e)||ei(t,e)||(e==="opacity"?1:0))),r&&!~(n+"").trim().indexOf(" ")?Ft(t,e,n,r)+r:n},ks=function(t,e,r,i){if(!r||r==="none"){var n=le(e,t,1),s=n&&Tt(t,n,1);s&&s!==r?(e=n,r=s):e==="borderColor"&&(r=Tt(t,"borderTopColor"))}var o=new ut(this._pt,t.style,e,0,1,Mi),l=0,u=0,f,c,_,p,m,h,g,v,y,b,T,x;if(o.b=r,o.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=Tt(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=t.style[e],t.style[e]=i,i=Tt(t,e)||i,h?t.style[e]=h:Xt(t,e)),f=[r,i],Ci(f),r=f[0],i=f[1],_=r.match(Kt)||[],x=i.match(Kt)||[],x.length){for(;c=Kt.exec(i);)g=c[0],y=i.substring(l,c.index),m?m=(m+1)%5:(y.substr(-5)==="rgba("||y.substr(-5)==="hsla(")&&(m=1),g!==(h=_[u++]||"")&&(p=parseFloat(h)||0,T=h.substr((p+"").length),g.charAt(1)==="="&&(g=$t(p,g)+T),v=parseFloat(g),b=g.substr((v+"").length),l=Kt.lastIndex-b.length,b||(b=b||dt.units[e]||T,l===i.length&&(i+=b,o.e+=b)),T!==b&&(p=Ft(t,e,h,b)||0),o._pt={_next:o._pt,p:y||u===1?y:",",s:p,c:v-p,m:m&&m<4||e==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=e==="display"&&i==="none"?Ui:zi;return Wr.test(i)&&(o.e=0),this._pt=o,o},$i={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Rs=function(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(t=r,r=i,i=t),e[0]=$i[r]||r,e[1]=$i[i]||i,e.join(" ")},Es=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r=e.t,i=r.style,n=e.u,s=r._gsap,o,l,u;if(n==="all"||n===!0)i.cssText="",l=1;else for(n=n.split(","),u=n.length;--u>-1;)o=n[u],Pt[o]&&(l=1,o=o==="transformOrigin"?ht:z),Xt(r,o);l&&(Xt(r,z),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Ce(r,1),s.uncache=1,Hi(i)))}},Ze={clearProps:function(t,e,r,i,n){if(n.data!=="isFromStart"){var s=t._pt=new ut(t._pt,e,r,0,0,Es);return s.u=i,s.pr=-10,s.tween=n,t._props.push(r),1}}},qe=[1,0,0,1,0,0],tn={},en=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},rn=function(t){var e=Tt(t,z);return en(e)?qe:e.substr(7).match(Xr).map(Y)},kr=function(t,e){var r=t._gsap||Zt(t),i=t.style,n=rn(t),s,o,l,u;return r.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?qe:n):(n===qe&&!t.offsetParent&&t!==se&&!r.svg&&(l=i.display,i.display="block",s=t.parentNode,(!s||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,o=t.nextElementSibling,se.appendChild(t)),n=rn(t),l?i.display=l:Xt(t,"display"),u&&(o?s.insertBefore(t,o):s?s.appendChild(t):se.removeChild(t))),e&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Rr=function(t,e,r,i,n,s){var o=t._gsap,l=n||kr(t,!0),u=o.xOrigin||0,f=o.yOrigin||0,c=o.xOffset||0,_=o.yOffset||0,p=l[0],m=l[1],h=l[2],g=l[3],v=l[4],y=l[5],b=e.split(" "),T=parseFloat(b[0])||0,x=parseFloat(b[1])||0,C,S,O,q;r?l!==qe&&(S=p*g-m*h)&&(O=T*(g/S)+x*(-h/S)+(h*y-g*v)/S,q=T*(-m/S)+x*(p/S)-(p*y-m*v)/S,T=O,x=q):(C=Ji(t),T=C.x+(~b[0].indexOf("%")?T/100*C.width:T),x=C.y+(~(b[1]||b[0]).indexOf("%")?x/100*C.height:x)),i||i!==!1&&o.smooth?(v=T-u,y=x-f,o.xOffset=c+(v*p+y*h)-v,o.yOffset=_+(v*m+y*g)-y):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=x,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!r,t.style[ht]="0px 0px",s&&(It(s,o,"xOrigin",u,T),It(s,o,"yOrigin",f,x),It(s,o,"xOffset",c,o.xOffset),It(s,o,"yOffset",_,o.yOffset)),t.setAttribute("data-svg-origin",T+" "+x)},Ce=function(t,e){var r=t._gsap||new Pi(t);if("x"in r&&!e&&!r.uncache)return r;var i=t.style,n=r.scaleX<0,s="px",o="deg",l=getComputedStyle(t),u=Tt(t,ht)||"0",f,c,_,p,m,h,g,v,y,b,T,x,C,S,O,q,P,N,E,M,X,W,U,G,ct,Jt,w,j,A,K,tt,et;return f=c=_=h=g=v=y=b=T=0,p=m=1,r.svg=!!(t.getCTM&&Qi(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[z]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[z]!=="none"?l[z]:"")),i.scale=i.rotate=i.translate="none"),S=kr(t,r.svg),r.svg&&(r.uncache?(ct=t.getBBox(),u=r.xOrigin-ct.x+"px "+(r.yOrigin-ct.y)+"px",G=""):G=!e&&t.getAttribute("data-svg-origin"),Rr(t,G||u,!!G||r.originIsAbsolute,r.smooth!==!1,S)),x=r.xOrigin||0,C=r.yOrigin||0,S!==qe&&(N=S[0],E=S[1],M=S[2],X=S[3],f=W=S[4],c=U=S[5],S.length===6?(p=Math.sqrt(N*N+E*E),m=Math.sqrt(X*X+M*M),h=N||E?oe(E,N)*Yt:0,y=M||X?oe(M,X)*Yt+h:0,y&&(m*=Math.abs(Math.cos(y*ae))),r.svg&&(f-=x-(x*N+C*M),c-=C-(x*E+C*X))):(et=S[6],K=S[7],w=S[8],j=S[9],A=S[10],tt=S[11],f=S[12],c=S[13],_=S[14],O=oe(et,A),g=O*Yt,O&&(q=Math.cos(-O),P=Math.sin(-O),G=W*q+w*P,ct=U*q+j*P,Jt=et*q+A*P,w=W*-P+w*q,j=U*-P+j*q,A=et*-P+A*q,tt=K*-P+tt*q,W=G,U=ct,et=Jt),O=oe(-M,A),v=O*Yt,O&&(q=Math.cos(-O),P=Math.sin(-O),G=N*q-w*P,ct=E*q-j*P,Jt=M*q-A*P,tt=X*P+tt*q,N=G,E=ct,M=Jt),O=oe(E,N),h=O*Yt,O&&(q=Math.cos(O),P=Math.sin(O),G=N*q+E*P,ct=W*q+U*P,E=E*q-N*P,U=U*q-W*P,N=G,W=ct),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,v=180-v),p=Y(Math.sqrt(N*N+E*E+M*M)),m=Y(Math.sqrt(U*U+et*et)),O=oe(W,U),y=Math.abs(O)>2e-4?O*Yt:0,T=tt?1/(tt<0?-tt:tt):0),r.svg&&(G=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!en(Tt(t,z)),G&&t.setAttribute("transform",G))),Math.abs(y)>90&&Math.abs(y)<270&&(n?(p*=-1,y+=h<=0?180:-180,h+=h<=0?180:-180):(m*=-1,y+=y<=0?180:-180)),e=e||r.uncache,r.x=f-((r.xPercent=f&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+s,r.y=c-((r.yPercent=c&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-c)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+s,r.z=_+s,r.scaleX=Y(p),r.scaleY=Y(m),r.rotation=Y(h)+o,r.rotationX=Y(g)+o,r.rotationY=Y(v)+o,r.skewX=y+o,r.skewY=b+o,r.transformPerspective=T+s,(r.zOrigin=parseFloat(u.split(" ")[2])||!e&&r.zOrigin||0)&&(i[ht]=Be(u)),r.xOffset=r.yOffset=0,r.force3D=dt.force3D,r.renderTransform=r.svg?Ns:Yi?nn:As,r.uncache=0,r},Be=function(t){return(t=t.split(" "))[0]+" "+t[1]},Er=function(t,e,r){var i=nt(e);return Y(parseFloat(e)+parseFloat(Ft(t,"x",r+"px",i)))+i},As=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,nn(t,e)},Wt="0deg",Se="0px",Gt=") ",nn=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.z,u=r.rotation,f=r.rotationY,c=r.rotationX,_=r.skewX,p=r.skewY,m=r.scaleX,h=r.scaleY,g=r.transformPerspective,v=r.force3D,y=r.target,b=r.zOrigin,T="",x=v==="auto"&&t&&t!==1||v===!0;if(b&&(c!==Wt||f!==Wt)){var C=parseFloat(f)*ae,S=Math.sin(C),O=Math.cos(C),q;C=parseFloat(c)*ae,q=Math.cos(C),s=Er(y,s,S*q*-b),o=Er(y,o,-Math.sin(C)*-b),l=Er(y,l,O*q*-b+b)}g!==Se&&(T+="perspective("+g+Gt),(i||n)&&(T+="translate("+i+"%, "+n+"%) "),(x||s!==Se||o!==Se||l!==Se)&&(T+=l!==Se||x?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+Gt),u!==Wt&&(T+="rotate("+u+Gt),f!==Wt&&(T+="rotateY("+f+Gt),c!==Wt&&(T+="rotateX("+c+Gt),(_!==Wt||p!==Wt)&&(T+="skew("+_+", "+p+Gt),(m!==1||h!==1)&&(T+="scale("+m+", "+h+Gt),y.style[z]=T||"translate(0, 0)"},Ns=function(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,s=r.x,o=r.y,l=r.rotation,u=r.skewX,f=r.skewY,c=r.scaleX,_=r.scaleY,p=r.target,m=r.xOrigin,h=r.yOrigin,g=r.xOffset,v=r.yOffset,y=r.forceCSS,b=parseFloat(s),T=parseFloat(o),x,C,S,O,q;l=parseFloat(l),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,l+=f),l||u?(l*=ae,u*=ae,x=Math.cos(l)*c,C=Math.sin(l)*c,S=Math.sin(l-u)*-_,O=Math.cos(l-u)*_,u&&(f*=ae,q=Math.tan(u-f),q=Math.sqrt(1+q*q),S*=q,O*=q,f&&(q=Math.tan(f),q=Math.sqrt(1+q*q),x*=q,C*=q)),x=Y(x),C=Y(C),S=Y(S),O=Y(O)):(x=c,O=_,C=S=0),(b&&!~(s+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(b=Ft(p,"x",s,"px"),T=Ft(p,"y",o,"px")),(m||h||g||v)&&(b=Y(b+m-(m*x+h*S)+g),T=Y(T+h-(m*C+h*O)+v)),(i||n)&&(q=p.getBBox(),b=Y(b+i/100*q.width),T=Y(T+n/100*q.height)),q="matrix("+x+","+C+","+S+","+O+","+b+","+T+")",p.setAttribute("transform",q),y&&(p.style[z]=q)},Ms=function(t,e,r,i,n){var s=360,o=$(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?Yt:1),u=l-i,f=i+u+"deg",c,_;return o&&(c=n.split("_")[1],c==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),c==="cw"&&u<0?u=(u+s*Bi)%s-~~(u/s)*s:c==="ccw"&&u>0&&(u=(u-s*Bi)%s-~~(u/s)*s)),t._pt=_=new ut(t._pt,e,r,i,u,vs),_.e=f,_.u="deg",t._props.push(r),_},sn=function(t,e){for(var r in e)t[r]=e[r];return t},Ds=function(t,e,r){var i=sn({},r._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=r.style,o,l,u,f,c,_,p,m;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),s[z]=e,o=Ce(r,1),Xt(r,z),r.setAttribute("transform",u)):(u=getComputedStyle(r)[z],s[z]=e,o=Ce(r,1),s[z]=u);for(l in Pt)u=i[l],f=o[l],u!==f&&n.indexOf(l)<0&&(p=nt(u),m=nt(f),c=p!==m?Ft(r,l,u,m):parseFloat(u),_=parseFloat(f),t._pt=new ut(t._pt,o,l,c,_-c,Or),t._pt.u=m||0,t._props.push(l));sn(o,i)};lt("padding,margin,Width,Radius",function(a,t){var e="Top",r="Right",i="Bottom",n="Left",s=(t<3?[e,r,i,n]:[e+n,e+r,i+r,i+n]).map(function(o){return t<2?a+o:"border"+o+a});Ze[t>1?"border"+a:a]=function(o,l,u,f,c){var _,p;if(arguments.length<4)return _=s.map(function(m){return kt(o,m,u)}),p=_.join(" "),p.split(_[0]).length===5?_[0]:p;_=(f+"").split(" "),p={},s.forEach(function(m,h){return p[m]=_[h]=_[h]||_[(h-1)/2|0]}),o.init(l,p,c)}});var an={name:"css",register:Pr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s=this._props,o=t.style,l=r.vars.startAt,u,f,c,_,p,m,h,g,v,y,b,T,x,C,S,O;qr||Pr(),this.styles=this.styles||Vi(t),O=this.styles.props,this.tween=r;for(h in e)if(h!=="autoRound"&&(f=e[h],!(pt[h]&&ki(h,e,r,i,t,n)))){if(p=typeof f,m=Ze[h],p==="function"&&(f=f.call(r,i,t,n),p=typeof f),p==="string"&&~f.indexOf("random(")&&(f=ve(f)),m)m(this,t,h,f,r)&&(S=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(h)+"").trim(),f+="",Nt.lastIndex=0,Nt.test(u)||(g=nt(u),v=nt(f)),v?g!==v&&(u=Ft(t,h,u,v)+v):g&&(f+=g),this.add(o,"setProperty",u,f,i,n,0,0,h),s.push(h),O.push(h,0,o[h]);else if(p!=="undefined"){if(l&&h in l?(u=typeof l[h]=="function"?l[h].call(r,i,t,n):l[h],$(u)&&~u.indexOf("random(")&&(u=ve(u)),nt(u+"")||u==="auto"||(u+=dt.units[h]||nt(kt(t,h))||""),(u+"").charAt(1)==="="&&(u=kt(t,h))):u=kt(t,h),_=parseFloat(u),y=p==="string"&&f.charAt(1)==="="&&f.substr(0,2),y&&(f=f.substr(2)),c=parseFloat(f),h in St&&(h==="autoAlpha"&&(_===1&&kt(t,"visibility")==="hidden"&&c&&(_=0),O.push("visibility",0,o.visibility),It(this,o,"visibility",_?"inherit":"hidden",c?"inherit":"hidden",!c)),h!=="scale"&&h!=="transform"&&(h=St[h],~h.indexOf(",")&&(h=h.split(",")[0]))),b=h in Pt,b){if(this.styles.save(h),p==="string"&&f.substring(0,6)==="var(--"&&(f=Tt(t,f.substring(4,f.indexOf(")"))),c=parseFloat(f)),T||(x=t._gsap,x.renderTransform&&!e.parseTransform||Ce(t,e.parseTransform),C=e.smoothOrigin!==!1&&x.smooth,T=this._pt=new ut(this._pt,o,z,0,1,x.renderTransform,x,0,-1),T.dep=1),h==="scale")this._pt=new ut(this._pt,x,"scaleY",x.scaleY,(y?$t(x.scaleY,y+c):c)-x.scaleY||0,Or),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){O.push(ht,0,o[ht]),f=Rs(f),x.svg?Rr(t,f,0,C,0,this):(v=parseFloat(f.split(" ")[2])||0,v!==x.zOrigin&&It(this,x,"zOrigin",x.zOrigin,v),It(this,o,h,Be(u),Be(f)));continue}else if(h==="svgOrigin"){Rr(t,f,1,C,0,this);continue}else if(h in tn){Ms(this,x,h,_,y?$t(_,y+f):f);continue}else if(h==="smoothOrigin"){It(this,x,"smooth",x.smooth,f);continue}else if(h==="force3D"){x[h]=f;continue}else if(h==="transform"){Ds(this,f,t);continue}}else h in o||(h=le(h)||h);if(b||(c||c===0)&&(_||_===0)&&!gs.test(f)&&h in o)g=(u+"").substr((_+"").length),c||(c=0),v=nt(f)||(h in dt.units?dt.units[h]:g),g!==v&&(_=Ft(t,h,u,v)),this._pt=new ut(this._pt,b?x:o,h,_,(y?$t(_,y+c):c)-_,!b&&(v==="px"||h==="zIndex")&&e.autoRound!==!1?ys:Or),this._pt.u=v||0,g!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=xs);else if(h in o)ks.call(this,t,h,u,y?y+f:f);else if(h in t)this.add(t,h,u||t[h],y?y+f:f,i,n);else if(h!=="parseTransform"){tr(h,f);continue}b||(h in o?O.push(h,0,o[h]):typeof t[h]=="function"?O.push(h,2,t[h]()):O.push(h,1,u||t[h])),s.push(h)}}S&&Di(this)},render:function(t,e){if(e.tween._time||!Cr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:kt,aliases:St,getSetter:function(t,e,r){var i=St[e];return i&&i.indexOf(",")<0&&(e=i),e in Pt&&e!==ht&&(t._gsap.x||kt(t,"x"))?r&&Zi===r?e==="scale"?qs:bs:(Zi=r||{})&&(e==="scale"?Cs:Ss):t.style&&!We(t.style[e])?ws:~e.indexOf("-")?Ts:xr(t,e)},core:{_removeProperty:Xt,_getMatrix:kr}};ft.utils.checkPrefix=le,ft.core.getStyleSaver=Vi,(function(a,t,e,r){var i=lt(a+","+t+","+e,function(n){Pt[n]=1});lt(t,function(n){dt.units[n]="deg",tn[n]=1}),St[i[13]]=a+","+t,lt(r,function(n){var s=n.split(":");St[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),lt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){dt.units[a]="px"}),ft.registerPlugin(an);var ue=ft.registerPlugin(an)||ft;ue.core.Tween;const ze=(a,t,e,r)=>t&&(Array.isArray(t)?t.length>0:t)?a.to(t,e,r):a,on=(a,t)=>{cn.useGSAP(()=>{const e=ue.timeline({defaults:{duration:.7,ease:"power1.out"}}),r={navbar:a.current,navLabels:ue.utils.toArray(".nav-label"),navIconWrappers:ue.utils.toArray(".nav-icon-wrapper"),navIcons:ue.utils.toArray(".nav-icon"),navLinkItems:ue.utils.toArray(".nav-link-item"),logoutButton:document.querySelector(".logout-button"),logoutLabel:document.querySelector(".logout-label"),logoutIcon:document.querySelector(".logout-icon"),profileContainer:document.querySelector(".profile-container"),profileName:document.querySelector(".profile-name"),profileOptions:document.querySelector(".profile-options"),profileImageWrapper:document.querySelector(".profile-image-wrapper"),coverImageProfile:document.querySelector(".cover-image-profile"),navContentWrapper:document.querySelector(".nav-content-wrapper-active"),buttonCrevron:document.querySelector(".button-select-crevron"),separatorProfile:document.querySelector(".border-separator-profile"),buttonProfile:document.querySelector(".button-profile"),profileUserInfo:document.querySelector(".profile-user-info"),buttonContentChevron:document.querySelector(".button-content-chevron")};t?Is(e,r):Fs(e,r)},{scope:a,dependencies:[t]})},Is=(a,t)=>{a.to(t.navbar,{width:"6rem"},.2).to(t.profileUserInfo,{display:"none"},0).to(t.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},.1).to(t.navLabels,{opacity:0,width:30,marginLeft:0},0).to(t.navIcons,{scale:.9},0).to(t.navContentWrapper,{backgroundColor:"transparent"},0),ze(a,t.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="none"}},0),ze(a,t.buttonContentChevron,{display:"none"},0).to(t.separatorProfile,{display:"none"},0).to(t.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(t.buttonProfile,{height:"3rem",width:"3rem",borderRadius:"50px",margin:0,padding:0,borderTopLeftRadius:"50px",borderTopRightRadius:"50px",borderBottomLeftRadius:"50px",borderBottomRightRadius:"50px",duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},0)},Fs=(a,t)=>{a.to(t.navLinkItems,{borderRadius:"10px",duration:.3},0).to(t.navbar,{width:"20rem"},-1),ze(a,t.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{t.buttonCrevron.style.display="flex"}},0),ze(a,t.buttonContentChevron,{display:"flex"},0).to(t.buttonContentChevron,{display:"flex"},0).to(t.separatorProfile,{display:"flex"},0).to(t.profileUserInfo,{display:"flex"},.3).to(t.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(t.navLinkItems,{width:"100%",justifyContent:"flex-start"},.2).to(t.separatorProfile,{display:"flex"},0).to(t.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(t.navIcons,{scale:1},.3)},Ls=({user:a,sessions:t,handleLogout:e,handleTokenLogin:r,pageLinks:i,utilLinks:n,isActiveModalNotification:s,handleNotificationClick:o,handleProfileClick:l,onLinkClick:u,isLinkActive:f})=>{const[c,_]=V.useState(!1),{navbarRef:p}=Ur(c);on(p,c);const[m,h]=V.useState(!1),[g,v]=V.useState(!1),y=V.useRef(null);V.useEffect(()=>{const C=S=>{y.current&&!y.current.contains(S.target)&&g&&v(!1)};return g&&document.addEventListener("mousedown",C),()=>{document.removeEventListener("mousedown",C)}},[g,v]),V.useEffect(()=>{c&&h(!1)},[c]);const b=()=>{v(!g)},T=()=>{v(!1),_(!c)},x=()=>{h(c?!1:!m)};return d.jsxs("div",{ref:p,className:`bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 ${c?"w-16":"w-64"}`,children:[d.jsx(Br,{isCollapsed:c,onToggle:T}),d.jsx(zr,{logoUrl:a?.company_id.logo||"",companyName:a?.company_id.name}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mb-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx(Ve,{links:i,isLinkActive:f,componentBadge:C=>d.jsx(He,{notificationsCount:C||0}),onLinkClick:u}),d.jsx("div",{className:"flex-grow"}),d.jsx(Ve,{links:n,componentBadge:C=>d.jsx(He,{notificationsCount:C||0}),onClick:o,isLinkActive:f,activeModal:s,onLinkClick:u}),d.jsx("div",{className:"px-3 flex justify-center items-center w-full mt-4",children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),d.jsx("div",{className:"px-3 py-2",children:d.jsx(Ue,{sessions:t,user:a,isExpanded:m,showOptions:!0,onProfileClick:c?b:l,onClick:x,onClickLogout:()=>e(a),handleTokenLogin:C=>{r(C),h(!1)}})}),c&&!m&&g&&d.jsx(d.Fragment,{children:d.jsx(Zr,{sessionsShow:t,handleTokenLogin:r,onClickLogout:()=>e(a),menuRef:y,onProfileClick:l})})]})},Zs=({children:a})=>d.jsxs("div",{className:"flex h-screen w-full",children:[a,d.jsx("main",{className:"w-full h-full overflow-y-auto",children:d.jsx(dn.Outlet,{})})]}),Bs=(a,t=!0)=>{const e=V.useRef(null);return V.useEffect(()=>{if(!t)return;const r=i=>{e.current&&!e.current.contains(i.target)&&a()};return document.addEventListener("mousedown",r,{capture:!0}),document.addEventListener("touchstart",r,{capture:!0}),()=>{document.removeEventListener("mousedown",r,{capture:!0}),document.removeEventListener("touchstart",r,{capture:!0})}},[a,t]),e};D.Badge=He,D.Button=xn,D.CompanyLogo=zr,D.Icons=Lt,D.Input=wn,D.LayoutGeneric=Zs,D.Menu=Zr,D.NavbarCollapseButton=Br,D.NavbarLinks=Ve,D.Sidebar=Ls,D.UserProfile=Ue,D.useClickOutside=Bs,D.useNavbarAnimations=on,D.useNavbarCollapse=Ur,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|