prometeo-design-system 1.2.7 → 1.2.8

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.
@@ -4450,7 +4450,7 @@ const qo = (i, e) => {
4450
4450
  }
4451
4451
  )
4452
4452
  ] }) });
4453
- }, Oo = ({ children: i, className: e }) => /* @__PURE__ */ d.jsx("div", { className: S("h-16 flex justify-center items-center", e), children: i }), Co = ({ children: i, className: e }) => /* @__PURE__ */ d.jsx("div", { className: S("flex-1 overflow-y-auto p-4", e), children: i }), So = ({ children: i, className: e }) => /* @__PURE__ */ d.jsx("div", { className: S("p-4 border-t border-neutral-strong-default", e), children: i }), ko = ({ className: i }) => /* @__PURE__ */ d.jsx("div", { className: S("flex-1", i) }), ul = Object.assign(bn, {
4453
+ }, Oo = ({ children: i, className: e }) => /* @__PURE__ */ d.jsx("div", { className: S("h-16 ", e), children: i }), Co = ({ children: i, className: e }) => /* @__PURE__ */ d.jsx("div", { className: S("flex-1 overflow-y-auto p-4", e), children: i }), So = ({ children: i, className: e }) => /* @__PURE__ */ d.jsx("div", { className: S("p-4 border-t border-neutral-strong-default", e), children: i }), ko = ({ className: i }) => /* @__PURE__ */ d.jsx("div", { className: S("flex-1", i) }), ul = Object.assign(bn, {
4454
4454
  Root: bn,
4455
4455
  Header: Oo,
4456
4456
  Content: Co,
@@ -45,4 +45,4 @@ React keys must be passed directly to JSX without using spread:
45
45
  * Copyright 2008-2025, GreenSock. All rights reserved.
46
46
  * Subject to the terms at https://gsap.com/standard-license
47
47
  * @author: Jack Doyle, jack@greensock.com
48
- */var ii,Ue,ft,Lr,Ke,si,Br,ua=function(){return typeof window<"u"},Fe={},et=180/Math.PI,ht=Math.PI/180,pt=Math.atan2,ai=1e8,zr=/([A-Z])/g,ca=/(left|right|width|margin|padding|x)/i,da=/[\s,\(]\S/,Me={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Vr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},fa=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ha=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},pa=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},oi=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},li=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},ma=function(e,t,r){return e.style[t]=r},_a=function(e,t,r){return e.style.setProperty(t,r)},ga=function(e,t,r){return e._gsap[t]=r},va=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},xa=function(e,t,r,n,s){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(s,a)},ya=function(e,t,r,n,s){var a=e._gsap;a[t]=r,a.renderTransform(s,a)},X="transform",ge=X+"Origin",ba=function i(e,t){var r=this,n=this.target,s=n.style,a=n._gsap;if(e in Fe&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Me[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Ie(n,o)}):this.tfm[e]=a.x?a[e]:Ie(n,e),e===ge&&(this.tfm.zOrigin=a.zOrigin);else return Me.transform.split(",").forEach(function(o){return i.call(r,o,t)});if(this.props.indexOf(X)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(ge,t,"")),e=X}(s||t)&&this.props.push(e,t,s[e])},ui=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},wa=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?t[e[s]](e[s+2]):t[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(zr,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)n[a]=this.tfm[a];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=Br(),(!s||!s.isStart)&&!r[X]&&(ui(r),n.zOrigin&&r[ge]&&(r[ge]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},ci=function(e,t){var r={target:e,props:[],revert:wa,save:ba};return e._gsap||_e.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(n){return r.save(n)}),r},di,Hr=function(e,t){var r=Ue.createElementNS?Ue.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ue.createElement(e);return r&&r.style?r:Ue.createElement(e)},Se=function i(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(zr,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&i(e,mt(t)||t,1)||""},fi="O,Moz,ms,Ms,Webkit".split(","),mt=function(e,t,r){var n=t||Ke,s=n.style,a=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(fi[a]+e in s););return a<0?null:(a===3?"ms":a>=0?fi[a]:"")+e},Ur=function(){ua()&&window.document&&(ii=window,Ue=ii.document,ft=Ue.documentElement,Ke=Hr("div")||{style:{}},Hr("div"),X=mt(X),ge=X+"Origin",Ke.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",di=!!mt("perspective"),Br=_e.core.reverting,Lr=1)},hi=function(e){var t=e.ownerSVGElement,r=Hr("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0),s;n.style.display="block",r.appendChild(n),ft.appendChild(r);try{s=n.getBBox()}catch{}return r.removeChild(n),ft.removeChild(r),s},pi=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},mi=function(e){var t,r;try{t=e.getBBox()}catch{t=hi(e),r=1}return t&&(t.width||t.height)||r||(t=hi(e)),t&&!t.width&&!t.x&&!t.y?{x:+pi(e,["x","cx","x1"])||0,y:+pi(e,["y","cy","y1"])||0,width:0,height:0}:t},_i=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&mi(e))},tt=function(e,t){if(t){var r=e.style,n;t in Fe&&t!==ge&&(t=X),r.removeProperty?(n=t.substr(0,2),(n==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(n==="--"?t:t.replace(zr,"-$1").toLowerCase())):r.removeAttribute(t)}},$e=function(e,t,r,n,s,a){var o=new me(e._pt,t,r,0,1,a?li:oi);return e._pt=o,o.b=n,o.e=s,e._props.push(r),o},gi={deg:1,rad:1,turn:1},Ta={grid:1,flex:1},Ye=function i(e,t,r,n){var s=parseFloat(r)||0,a=(r+"").trim().substr((s+"").length)||"px",o=Ke.style,l=ca.test(t),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,p=n==="px",m=n==="%",g,h,_,x;if(n===a||!s||gi[n]||gi[a])return s;if(a!=="px"&&!p&&(s=i(e,t,r,"px")),x=e.getCTM&&_i(e),(m||a==="%")&&(Fe[t]||~t.indexOf("adius")))return g=x?e.getBBox()[l?"width":"height"]:e[c],J(m?s/g*f:s/100*g);if(o[l?"width":"height"]=f+(p?a:n),h=n!=="rem"&&~t.indexOf("adius")||n==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Ue||!h.appendChild)&&(h=Ue.body),_=h._gsap,_&&m&&_.width&&l&&_.time===Te.time&&!_.uncache)return J(s/_.width*f);if(m&&(t==="height"||t==="width")){var v=e.style[t];e.style[t]=f+n,g=e[c],v?e.style[t]=v:tt(e,t)}else(m||a==="%")&&!Ta[Se(h,"display")]&&(o.position=Se(e,"position")),h===e&&(o.position="static"),h.appendChild(Ke),g=Ke[c],h.removeChild(Ke),o.position="absolute";return l&&m&&(_=We(h),_.time=Te.time,_.width=h[c]),J(p?g*s/f:g&&s?f/g*s:0)},Ie=function(e,t,r,n){var s;return Lr||Ur(),t in Me&&t!=="transform"&&(t=Me[t],~t.indexOf(",")&&(t=t.split(",")[0])),Fe[t]&&t!=="transform"?(s=Mt(e,n),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:sr(Se(e,ge))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||n||~(s+"").indexOf("calc("))&&(s=ir[t]&&ir[t](e,t,r)||Se(e,t)||yn(e,t)||(t==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Ye(e,t,s,r)+r:s},ja=function(e,t,r,n){if(!r||r==="none"){var s=mt(t,e,1),a=s&&Se(e,s,1);a&&a!==r?(t=s,r=a):t==="borderColor"&&(r=Se(e,"borderTopColor"))}var o=new me(this._pt,e.style,t,0,1,ei),l=0,u=0,c,f,p,m,g,h,_,x,v,b,T,y;if(o.b=r,o.e=n,r+="",n+="",n.substring(0,6)==="var(--"&&(n=Se(e,n.substring(4,n.indexOf(")")))),n==="auto"&&(h=e.style[t],e.style[t]=n,n=Se(e,t)||n,h?e.style[t]=h:tt(e,t)),c=[r,n],Hn(c),r=c[0],n=c[1],p=r.match(st)||[],y=n.match(st)||[],y.length){for(;f=st.exec(n);)_=f[0],v=n.substring(l,f.index),g?g=(g+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(g=1),_!==(h=p[u++]||"")&&(m=parseFloat(h)||0,T=h.substr((m+"").length),_.charAt(1)==="="&&(_=at(m,_)+T),x=parseFloat(_),b=_.substr((x+"").length),l=st.lastIndex-b.length,b||(b=b||ve.units[t]||T,l===n.length&&(n+=b,o.e+=b)),T!==b&&(m=Ye(e,t,h,b)||0),o._pt={_next:o._pt,p:v||u===1?v:",",s:m,c:x-m,m:g&&g<4||t==="zIndex"?Math.round:0});o.c=l<n.length?n.substring(l,n.length):""}else o.r=t==="display"&&n==="none"?li:oi;return hn.test(n)&&(o.e=0),this._pt=o,o},vi={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},qa=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(e=r,r=n,n=e),t[0]=vi[r]||r,t[1]=vi[n]||n,t.join(" ")},Ca=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,s=t.u,a=r._gsap,o,l,u;if(s==="all"||s===!0)n.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)o=s[u],Fe[o]&&(l=1,o=o==="transformOrigin"?ge:X),tt(r,o);l&&(tt(r,X),a&&(a.svg&&r.removeAttribute("transform"),n.scale=n.rotate=n.translate="none",Mt(r,1),a.uncache=1,ui(n)))}},ir={clearProps:function(e,t,r,n,s){if(s.data!=="isFromStart"){var a=e._pt=new me(e._pt,t,r,0,0,Ca);return a.u=n,a.pr=-10,a.tween=s,e._props.push(r),1}}},Et=[1,0,0,1,0,0],xi={},yi=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},bi=function(e){var t=Se(e,X);return yi(t)?Et:t.substr(7).match(fn).map(J)},$r=function(e,t){var r=e._gsap||We(e),n=e.style,s=bi(e),a,o,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Et:s):(s===Et&&!e.offsetParent&&e!==ft&&!r.svg&&(l=n.display,n.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,ft.appendChild(e)),s=bi(e),l?n.display=l:tt(e,"display"),u&&(o?a.insertBefore(e,o):a?a.appendChild(e):ft.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Yr=function(e,t,r,n,s,a){var o=e._gsap,l=s||$r(e,!0),u=o.xOrigin||0,c=o.yOrigin||0,f=o.xOffset||0,p=o.yOffset||0,m=l[0],g=l[1],h=l[2],_=l[3],x=l[4],v=l[5],b=t.split(" "),T=parseFloat(b[0])||0,y=parseFloat(b[1])||0,j,C,O,q;r?l!==Et&&(C=m*_-g*h)&&(O=T*(_/C)+y*(-h/C)+(h*v-_*x)/C,q=T*(-g/C)+y*(m/C)-(m*v-g*x)/C,T=O,y=q):(j=mi(e),T=j.x+(~b[0].indexOf("%")?T/100*j.width:T),y=j.y+(~(b[1]||b[0]).indexOf("%")?y/100*j.height:y)),n||n!==!1&&o.smooth?(x=T-u,v=y-c,o.xOffset=f+(x*m+v*h)-x,o.yOffset=p+(x*g+v*_)-v):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=y,o.smooth=!!n,o.origin=t,o.originIsAbsolute=!!r,e.style[ge]="0px 0px",a&&($e(a,o,"xOrigin",u,T),$e(a,o,"yOrigin",c,y),$e(a,o,"xOffset",f,o.xOffset),$e(a,o,"yOffset",p,o.yOffset)),e.setAttribute("data-svg-origin",T+" "+y)},Mt=function(e,t){var r=e._gsap||new Wn(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,s=r.scaleX<0,a="px",o="deg",l=getComputedStyle(e),u=Se(e,ge)||"0",c,f,p,m,g,h,_,x,v,b,T,y,j,C,O,q,M,R,I,F,z,H,V,U,se,fe,w,k,Z,Q,te,P;return c=f=p=h=_=x=v=b=T=0,m=g=1,r.svg=!!(e.getCTM&&_i(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[X]=(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[X]!=="none"?l[X]:"")),n.scale=n.rotate=n.translate="none"),C=$r(e,r.svg),r.svg&&(r.uncache?(se=e.getBBox(),u=r.xOrigin-se.x+"px "+(r.yOrigin-se.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),Yr(e,U||u,!!U||r.originIsAbsolute,r.smooth!==!1,C)),y=r.xOrigin||0,j=r.yOrigin||0,C!==Et&&(R=C[0],I=C[1],F=C[2],z=C[3],c=H=C[4],f=V=C[5],C.length===6?(m=Math.sqrt(R*R+I*I),g=Math.sqrt(z*z+F*F),h=R||I?pt(I,R)*et:0,v=F||z?pt(F,z)*et+h:0,v&&(g*=Math.abs(Math.cos(v*ht))),r.svg&&(c-=y-(y*R+j*F),f-=j-(y*I+j*z))):(P=C[6],Q=C[7],w=C[8],k=C[9],Z=C[10],te=C[11],c=C[12],f=C[13],p=C[14],O=pt(P,Z),_=O*et,O&&(q=Math.cos(-O),M=Math.sin(-O),U=H*q+w*M,se=V*q+k*M,fe=P*q+Z*M,w=H*-M+w*q,k=V*-M+k*q,Z=P*-M+Z*q,te=Q*-M+te*q,H=U,V=se,P=fe),O=pt(-F,Z),x=O*et,O&&(q=Math.cos(-O),M=Math.sin(-O),U=R*q-w*M,se=I*q-k*M,fe=F*q-Z*M,te=z*M+te*q,R=U,I=se,F=fe),O=pt(I,R),h=O*et,O&&(q=Math.cos(O),M=Math.sin(O),U=R*q+I*M,se=H*q+V*M,I=I*q-R*M,V=V*q-H*M,R=U,H=se),_&&Math.abs(_)+Math.abs(h)>359.9&&(_=h=0,x=180-x),m=J(Math.sqrt(R*R+I*I+F*F)),g=J(Math.sqrt(V*V+P*P)),O=pt(H,V),v=Math.abs(O)>2e-4?O*et:0,T=te?1/(te<0?-te:te):0),r.svg&&(U=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!yi(Se(e,X)),U&&e.setAttribute("transform",U))),Math.abs(v)>90&&Math.abs(v)<270&&(s?(m*=-1,v+=h<=0?180:-180,h+=h<=0?180:-180):(g*=-1,v+=v<=0?180:-180)),t=t||r.uncache,r.x=c-((r.xPercent=c&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=f-((r.yPercent=f&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=p+a,r.scaleX=J(m),r.scaleY=J(g),r.rotation=J(h)+o,r.rotationX=J(_)+o,r.rotationY=J(x)+o,r.skewX=v+o,r.skewY=b+o,r.transformPerspective=T+a,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(n[ge]=sr(u)),r.xOffset=r.yOffset=0,r.force3D=ve.force3D,r.renderTransform=r.svg?Sa:di?wi:Oa,r.uncache=0,r},sr=function(e){return(e=e.split(" "))[0]+" "+e[1]},Wr=function(e,t,r){var n=ce(t);return J(parseFloat(t)+parseFloat(Ye(e,"x",r+"px",n)))+n},Oa=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,wi(e,t)},rt="0deg",At="0px",nt=") ",wi=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.z,u=r.rotation,c=r.rotationY,f=r.rotationX,p=r.skewX,m=r.skewY,g=r.scaleX,h=r.scaleY,_=r.transformPerspective,x=r.force3D,v=r.target,b=r.zOrigin,T="",y=x==="auto"&&e&&e!==1||x===!0;if(b&&(f!==rt||c!==rt)){var j=parseFloat(c)*ht,C=Math.sin(j),O=Math.cos(j),q;j=parseFloat(f)*ht,q=Math.cos(j),a=Wr(v,a,C*q*-b),o=Wr(v,o,-Math.sin(j)*-b),l=Wr(v,l,O*q*-b+b)}_!==At&&(T+="perspective("+_+nt),(n||s)&&(T+="translate("+n+"%, "+s+"%) "),(y||a!==At||o!==At||l!==At)&&(T+=l!==At||y?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+nt),u!==rt&&(T+="rotate("+u+nt),c!==rt&&(T+="rotateY("+c+nt),f!==rt&&(T+="rotateX("+f+nt),(p!==rt||m!==rt)&&(T+="skew("+p+", "+m+nt),(g!==1||h!==1)&&(T+="scale("+g+", "+h+nt),v.style[X]=T||"translate(0, 0)"},Sa=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.rotation,u=r.skewX,c=r.skewY,f=r.scaleX,p=r.scaleY,m=r.target,g=r.xOrigin,h=r.yOrigin,_=r.xOffset,x=r.yOffset,v=r.forceCSS,b=parseFloat(a),T=parseFloat(o),y,j,C,O,q;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=ht,u*=ht,y=Math.cos(l)*f,j=Math.sin(l)*f,C=Math.sin(l-u)*-p,O=Math.cos(l-u)*p,u&&(c*=ht,q=Math.tan(u-c),q=Math.sqrt(1+q*q),C*=q,O*=q,c&&(q=Math.tan(c),q=Math.sqrt(1+q*q),y*=q,j*=q)),y=J(y),j=J(j),C=J(C),O=J(O)):(y=f,O=p,j=C=0),(b&&!~(a+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(b=Ye(m,"x",a,"px"),T=Ye(m,"y",o,"px")),(g||h||_||x)&&(b=J(b+g-(g*y+h*C)+_),T=J(T+h-(g*j+h*O)+x)),(n||s)&&(q=m.getBBox(),b=J(b+n/100*q.width),T=J(T+s/100*q.height)),q="matrix("+y+","+j+","+C+","+O+","+b+","+T+")",m.setAttribute("transform",q),v&&(m.style[X]=q)},ka=function(e,t,r,n,s){var a=360,o=ie(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?et:1),u=l-n,c=n+u+"deg",f,p;return o&&(f=s.split("_")[1],f==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),f==="cw"&&u<0?u=(u+a*ai)%a-~~(u/a)*a:f==="ccw"&&u>0&&(u=(u-a*ai)%a-~~(u/a)*a)),e._pt=p=new me(e._pt,t,r,n,u,fa),p.e=c,p.u="deg",e._props.push(r),p},Ti=function(e,t){for(var r in t)e[r]=t[r];return e},Pa=function(e,t,r){var n=Ti({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=r.style,o,l,u,c,f,p,m,g;n.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),a[X]=t,o=Mt(r,1),tt(r,X),r.setAttribute("transform",u)):(u=getComputedStyle(r)[X],a[X]=t,o=Mt(r,1),a[X]=u);for(l in Fe)u=n[l],c=o[l],u!==c&&s.indexOf(l)<0&&(m=ce(u),g=ce(c),f=m!==g?Ye(r,l,u,g):parseFloat(u),p=parseFloat(c),e._pt=new me(e._pt,o,l,f,p-f,Vr),e._pt.u=g||0,e._props.push(l));Ti(o,n)};pe("padding,margin,Width,Radius",function(i,e){var t="Top",r="Right",n="Bottom",s="Left",a=(e<3?[t,r,n,s]:[t+s,t+r,n+r,n+s]).map(function(o){return e<2?i+o:"border"+o+i});ir[e>1?"border"+i:i]=function(o,l,u,c,f){var p,m;if(arguments.length<4)return p=a.map(function(g){return Ie(o,g,u)}),m=p.join(" "),m.split(p[0]).length===5?p[0]:m;p=(c+"").split(" "),m={},a.forEach(function(g,h){return m[g]=p[h]=p[h]||p[(h-1)/2|0]}),o.init(l,m,f)}});var ji={name:"css",register:Ur,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,s){var a=this._props,o=e.style,l=r.vars.startAt,u,c,f,p,m,g,h,_,x,v,b,T,y,j,C,O;Lr||Ur(),this.styles=this.styles||ci(e),O=this.styles.props,this.tween=r;for(h in t)if(h!=="autoRound"&&(c=t[h],!(ye[h]&&Xn(h,t,r,n,e,s)))){if(m=typeof c,g=ir[h],m==="function"&&(c=c.call(r,n,e,s),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=Ct(c)),g)g(this,e,h,c,r)&&(C=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),c+="",Ve.lastIndex=0,Ve.test(u)||(_=ce(u),x=ce(c)),x?_!==x&&(u=Ye(e,h,u,x)+x):_&&(c+=_),this.add(o,"setProperty",u,c,n,s,0,0,h),a.push(h),O.push(h,0,o[h]);else if(m!=="undefined"){if(l&&h in l?(u=typeof l[h]=="function"?l[h].call(r,n,e,s):l[h],ie(u)&&~u.indexOf("random(")&&(u=Ct(u)),ce(u+"")||u==="auto"||(u+=ve.units[h]||ce(Ie(e,h))||""),(u+"").charAt(1)==="="&&(u=Ie(e,h))):u=Ie(e,h),p=parseFloat(u),v=m==="string"&&c.charAt(1)==="="&&c.substr(0,2),v&&(c=c.substr(2)),f=parseFloat(c),h in Me&&(h==="autoAlpha"&&(p===1&&Ie(e,"visibility")==="hidden"&&f&&(p=0),O.push("visibility",0,o.visibility),$e(this,o,"visibility",p?"inherit":"hidden",f?"inherit":"hidden",!f)),h!=="scale"&&h!=="transform"&&(h=Me[h],~h.indexOf(",")&&(h=h.split(",")[0]))),b=h in Fe,b){if(this.styles.save(h),m==="string"&&c.substring(0,6)==="var(--"&&(c=Se(e,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),T||(y=e._gsap,y.renderTransform&&!t.parseTransform||Mt(e,t.parseTransform),j=t.smoothOrigin!==!1&&y.smooth,T=this._pt=new me(this._pt,o,X,0,1,y.renderTransform,y,0,-1),T.dep=1),h==="scale")this._pt=new me(this._pt,y,"scaleY",y.scaleY,(v?at(y.scaleY,v+f):f)-y.scaleY||0,Vr),this._pt.u=0,a.push("scaleY",h),h+="X";else if(h==="transformOrigin"){O.push(ge,0,o[ge]),c=qa(c),y.svg?Yr(e,c,0,j,0,this):(x=parseFloat(c.split(" ")[2])||0,x!==y.zOrigin&&$e(this,y,"zOrigin",y.zOrigin,x),$e(this,o,h,sr(u),sr(c)));continue}else if(h==="svgOrigin"){Yr(e,c,1,j,0,this);continue}else if(h in xi){ka(this,y,h,p,v?at(p,v+c):c);continue}else if(h==="smoothOrigin"){$e(this,y,"smooth",y.smooth,c);continue}else if(h==="force3D"){y[h]=c;continue}else if(h==="transform"){Pa(this,c,e);continue}}else h in o||(h=mt(h)||h);if(b||(f||f===0)&&(p||p===0)&&!da.test(c)&&h in o)_=(u+"").substr((p+"").length),f||(f=0),x=ce(c)||(h in ve.units?ve.units[h]:_),_!==x&&(p=Ye(e,h,u,x)),this._pt=new me(this._pt,b?y:o,h,p,(v?at(p,v+f):f)-p,!b&&(x==="px"||h==="zIndex")&&t.autoRound!==!1?pa:Vr),this._pt.u=x||0,_!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=ha);else if(h in o)ja.call(this,e,h,u,v?v+c:c);else if(h in e)this.add(e,h,u||e[h],v?v+c:c,n,s);else if(h!=="parseTransform"){_r(h,c);continue}b||(h in o?O.push(h,0,o[h]):typeof e[h]=="function"?O.push(h,2,e[h]()):O.push(h,1,u||e[h])),a.push(h)}}C&&ti(this)},render:function(e,t){if(t.tween._time||!Br())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Ie,aliases:Me,getSetter:function(e,t,r){var n=Me[t];return n&&n.indexOf(",")<0&&(t=n),t in Fe&&t!==ge&&(e._gsap.x||Ie(e,"x"))?r&&si===r?t==="scale"?va:ga:(si=r||{})&&(t==="scale"?xa:ya):e.style&&!cr(e.style[t])?ma:~t.indexOf("-")?_a:Rr(e,t)},core:{_removeProperty:tt,_getMatrix:$r}};_e.utils.checkPrefix=mt,_e.core.getStyleSaver=ci,(function(i,e,t,r){var n=pe(i+","+e+","+t,function(s){Fe[s]=1});pe(e,function(s){ve.units[s]="deg",xi[s]=1}),Me[n[13]]=i+","+e,pe(r,function(s){var a=s.split(":");Me[a[1]]=n[a[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"),pe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ve.units[i]="px"}),_e.registerPlugin(ji);var je=_e.registerPlugin(ji)||_e;je.core.Tween;const Na=(i,e)=>{Qr.useGSAP(()=>{if(!i.current)return;const t=i.current,r=document.querySelector('[data-main-content="true"]');if(e){je.fromTo(t,{width:"0rem",opacity:0},{width:"40rem",opacity:1,duration:.4,ease:"power2.out"}),r&&je.to(r,{marginLeft:t.offsetWidth+"px",duration:.4,ease:"power2.out"});const n=t.querySelectorAll(".secondary-bar-content > *");n.length>0&&je.fromTo(n,{y:20,opacity:0},{y:0,opacity:1,duration:.3,stagger:.05,delay:.1,ease:"power1.out"})}else je.to(t,{width:"0rem",opacity:0,duration:.3,ease:"power2.in"}),r&&je.to(r,{marginLeft:"0px",duration:.3,ease:"power2.in"})},{scope:i,dependencies:[e]})},qi=({children:i,isOpen:e=!1,className:t="",width:r="w-96",action:n,primarySidebarCollapsed:s,onClose:a})=>{const o=E.useRef(null),[l,u]=E.useState({left:0,width:0}),{primarySidebarRef:c}=ln();return E.useLayoutEffect(()=>{if(c?.current){const f=c.current.getBoundingClientRect();u({left:f.width,width:f.width})}},[c,e,s]),Na(o,e),d.jsx(d.Fragment,{children:e&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 bg-black/95 z-20",style:{left:l.left},onClick:a}),d.jsx("div",{ref:o,className:S("h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0","absolute top-0 z-30",r,t),style:{left:l.left},"data-action":n,children:d.jsx("div",{className:"secondary-bar-content",children:i})})]})})},Ea=Object.assign(qi,{Root:qi,Header:({children:i,className:e})=>d.jsx("div",{className:S("h-16 flex justify-center items-center",e),children:i}),Content:({children:i,className:e})=>d.jsx("div",{className:S("flex-1 overflow-y-auto p-4",e),children:i}),Footer:({children:i,className:e})=>d.jsx("div",{className:S("p-4 border-t border-neutral-strong-default",e),children:i}),Spacer:({className:i})=>d.jsx("div",{className:S("flex-1",i)})}),ar=(i,e,t,r)=>e&&(Array.isArray(e)?e.length>0:e)?i.to(e,t,r):i,Ma=(i,e,t)=>{Qr.useGSAP(()=>{if(!i.current)return;const r=je.timeline({defaults:{duration:.7,ease:"power1.out"}}),n={navbar:i.current,navLabels:je.utils.toArray(".nav-label"),navIconWrappers:je.utils.toArray(".nav-icon-wrapper"),navIcons:je.utils.toArray(".nav-icon"),navLinkItems:je.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"),logo:{contenedor:document.querySelector(".container-logo"),icon:document.querySelector(".icon-logo"),text:document.querySelector(".text-logo")},sidebarHeader:document.querySelector(".sidebar-header"),containerIconcollapsade:document.querySelector(".container-icon-collapsade"),secondaryBar:document.querySelector(".secondary-bar"),secondaryBarContent:je.utils.toArray(".secondary-bar *")};e?Aa(r,n):Ra(r,n),n.secondaryBar&&Da(n.secondaryBar)},{scope:i,dependencies:[e,t]})},Aa=(i,e)=>{i.to(e.navbar,{width:"6rem",duration:.2,ease:"bounce.out"}).to(e.logo.contenedor,{width:48,duration:.2}).to(e.logo.text,{opacity:0,scale:.8,duration:.5,ease:"back.in(1.2)"},-1).set(e.logo.text,{display:"none"}).to(e.sidebarHeader,{justifyContent:"center",display:"flex"},-1).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.6,ease:"power1.inOut"}).to(e.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},-1).to(e.navLabels,{opacity:0,width:30,marginLeft:0},0).to(e.navIcons,{scale:.95,ease:"elastic.out(1, 0.3)"},0),ar(i,e.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="none"}},0),ar(i,e.buttonContentChevron,{display:"none"},-1).to(e.separatorProfile,{display:"none"},-1).to(e.profileUserInfo,{display:"none"},-1).to(e.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(e.buttonProfile,{height:"3rem",width:"3rem",margin:0,padding:0,duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},-1).to(e.containerIconcollapsade,{justifyContent:"center",marginRight:0},"=-1")},Ra=(i,e)=>{i.to(e.navbar,{width:"20rem"},-1).to(e.navLinkItems,{borderRadius:"10px",duration:.3,width:"100%",justifyContent:"flex-start"},-1),ar(i,e.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="flex"}},0),ar(i,e.buttonContentChevron,{display:"flex"},0).to(e.logo.contenedor,{width:185},-1).set(e.logo.text,{display:"flex"},-1).to(e.logo.text,{opacity:1,duration:0,ease:"back.in(1)"}).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.3,ease:"power1.inOut"}).to(e.sidebarHeader,{justifyContent:"start",display:"flex"},-1).to(e.containerIconcollapsade,{justifyContent:"end",marginRight:20},-1).to(e.separatorProfile,{display:"flex"},0).to(e.profileUserInfo,{display:"flex"},-1).to(e.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(e.separatorProfile,{display:"flex"},0).to(e.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(e.navIcons,{scale:1},.3)},Da=(i,e)=>{je.to(i,{x:"-100%",opacity:0,duration:.3,ease:"power2.in"})},Xr=E.forwardRef(({children:i,isCollapsed:e=!1,className:t=""},r)=>{const n=E.useRef(null),{registerPrimarySidebar:s}=ln(),a=E.useCallback(o=>{n.current=o,typeof r=="function"?r(o):r&&(r.current=o)},[r]);return E.useEffect(()=>{n.current&&s(n)},[s]),Ma(n,e,!1),d.jsx("div",{ref:a,className:`bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-50 flex-shrink-0 ${e?"w-16":"w-64"} ${t}`,children:i})});Xr.displayName="SidebarRoot";const Fa=Object.assign(Xr,{Root:Xr,CollapseButton:({isCollapsed:i,onToggleCollapse:e})=>d.jsx("div",{className:S("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade",i&&""),children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(le.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(le.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),Header:({children:i,className:e})=>d.jsx("div",{className:`${e} sidebar-header`,children:i}),Divider:({className:i})=>d.jsx("div",{className:S("px-3 flex justify-center items-center w-full mb-4",i),children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Content:({children:i,className:e})=>d.jsx("div",{className:e,children:i}),Spacer:({className:i,size:e="auto"})=>{const t=()=>{switch(e){case"auto":return"flex-grow";case"small":return"h-2 w-2";case"medium":return"h-4 w-4";case"large":return"h-8 w-8"}};return d.jsx("div",{className:S(t(),i)})},Footer:({children:i,className:e})=>d.jsx("div",{className:e,children:i})}),Ia=()=>{const[i,e]=E.useState(!1),[t,r]=E.useState(!1),n=()=>{e(!1),o()},s=()=>{e(!0),r(!1)},a=()=>{r(!0)},o=()=>{r(!1)};return{isCollapsed:i,setIsCollapsed:e,toggleCollapse:()=>{i?n():s()},expandSidebar:n,collapseSidebar:s,activeSecondaryBar:t,openSecondaryBar:a,closeSecondaryBar:o,toggleSecondaryBar:()=>{r(c=>!c)}}},Za=({children:i,icon:e,label:t,href:r,onClick:n,isActive:s=!1,className:a})=>{const o=r?"a":"button";return d.jsxs(o,{href:r,onClick:n,className:S("nav-link-item","flex items-center w-full px-3 py-2 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default",s&&"bg-neutral-medium-default",a),children:[e&&d.jsx("div",{className:"nav-icon-wrapper mr-3 flex-shrink-0",children:d.jsx("div",{className:"nav-icon flex items-center justify-center w-5 h-5",children:e})}),t&&d.jsx("span",{className:"nav-label text-sm text-neutral-strong-default",children:t}),i]})},La=E.createContext(void 0),Ba=()=>{const i=E.useContext(La);if(!i)throw new Error("useSidebar must be used within a Sidebar.Root");return i},za=({user:i,className:e,onProfileClick:t})=>{const{isCollapsed:r}=Ba(),[n,s]=E.useState(!1),a=()=>{r?t?.():s(!n)};return d.jsxs("div",{className:S("profile-container",e),children:[d.jsxs("button",{onClick:a,className:S("button-profile","flex items-center w-full p-3 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default"),children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 mr-3",children:d.jsx("div",{className:"cover-image-profile w-10 h-10 rounded-full bg-primary-default-default flex items-center justify-center text-white text-sm font-semibold",children:i.profileImage?d.jsx("img",{src:i.profileImage,alt:i.name,className:"w-full h-full rounded-full object-cover"}):i.name.charAt(0).toUpperCase()})}),d.jsxs("div",{className:"profile-user-info flex-1 min-w-0",children:[d.jsx("div",{className:"profile-name text-sm font-medium text-neutral-strong-default truncate",children:i.name}),d.jsx("div",{className:"text-xs text-neutral-medium-default truncate",children:i.email})]}),d.jsx("div",{className:"button-content-chevron ml-2 flex-shrink-0",children:d.jsx("div",{className:"button-select-crevron w-4 h-4 text-neutral-medium-default",children:n?"▲":"▼"})})]}),n&&!r&&d.jsx("div",{className:"profile-options mt-2 pl-3 space-y-1",children:d.jsxs("button",{className:"logout-button flex items-center w-full px-3 py-2 text-left text-sm text-neutral-strong-default hover:bg-neutral-medium-default rounded-lg",children:[d.jsx("span",{className:"logout-icon mr-2",children:"🚪"}),d.jsx("span",{className:"logout-label",children:"Cerrar sesión"})]})}),d.jsx("div",{className:"border-separator-profile mt-3 border-t border-neutral-strong-default"})]})},Va=({count:i,maxCount:e=9,className:t="",size:r="medium",variant:n="primary",showZero:s=!1})=>{const a=i,o=a>e?`+${e}`:a;if(a===0&&!s)return null;const l={small:"w-4 h-4 text-xs",medium:"w-5 h-5 text-xs",large:"w-6 h-6 text-sm"},u={primary:"bg-primary-default-default text-neutral-strong-default",secondary:"bg-neutral-medium-default text-neutral-strong-default",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white"};return d.jsx("div",{className:S("rounded-full flex items-center justify-center font-medium",l[r],u[n],t),children:d.jsx("span",{children:o})})},Ha=({linkActions:i,componentBadge:e,onClick:t,activeAction:r,counts:n={}})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((s,a)=>s.viewAccess()&&d.jsx(D.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:a*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:d.jsxs("button",{onClick:()=>{t?.(s.action)},className:S("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",r===s.action?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(D.AnimatePresence,{mode:"wait",children:r===s.action&&d.jsx(D.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(D.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:(r===s.action,0)},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(D.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:r===s.action?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof s.icon=="function"?s.icon({size:24,className:S("nav-icon transition-colors duration-250 ease-out",r===s.action?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:s.title})]}),e&&typeof e=="function"&&n[s.action]&&n[s.action]>0&&e(n[s.action])]})]})},a))}),Ua=({links:i,isLinkActive:e,componentBadge:t,onLinkClick:r})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((n,s)=>{const a=e(n.path)||(n.relatedPaths?.some(o=>e(o))??!1);return n.isView&&n.viewAccess()&&d.jsx(D.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:s*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:d.jsxs("button",{onClick:()=>{r?.(n.path)},className:S("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",a?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(D.AnimatePresence,{mode:"wait",children:a&&d.jsx(D.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(D.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(D.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:a?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof n.icon=="function"?n.icon({size:24,className:S("nav-icon transition-colors duration-250 ease-out",a?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:n.title})]}),t&&n.count&&n.count>0&&t(n.count)]})]})},s)})}),$a=({isActiveModalNotification:i,setIsActiveModalNotification:e})=>({handleNotificationClick:()=>{e(!0)},isActiveModalNotification:i}),Ya=i=>{const e=E.useRef(null);return{isCollapsed:i,navbarRef:e}},Wa=({isCollapsed:i,onToggle:e})=>d.jsx("div",{className:"",children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(le.CloseNavBarDesktop,{size:34,className:"rotate-180 transition-transform duration-300"}):d.jsx(le.CloseNavBarDesktop,{size:34,className:"rotate-0 transition-transform duration-300"})})}),Xa=({logoUrl:i,companyName:e})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:i,className:"h-2/3 rounded-full",alt:e??""})}),Ga=(i,e=!0)=>{const t=E.useRef(null);return E.useEffect(()=>{if(!e)return;const r=n=>{t.current&&!t.current.contains(n.target)&&i()};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})}},[i,e]),t};N.Avatar=rn,N.Badge=Va,N.Button=Ri,N.CardProfile=Ft,N.ChangueAccount=an,N.CheckboxFormik=Di,N.CompanyLogo=Xa,N.Header=Ii,N.Icons=le,N.Input=os,N.InputFormik=ls,N.LayoutGeneric=ms,N.Logo=us,N.Menu=cs,N.NavBarActions=Ha,N.NavbarCollapseButton=Wa,N.NavbarLinks=Ua,N.NavigationLink=Za,N.Pagination=ds,N.ProfileSection=za,N.ProgressBar=ps,N.SecondaryBar=Ea,N.Select=hs,N.Sidebar=Fa,N.SidebarProvider=_s,N.Spinner=or,N.useActionsNavbar=$a,N.useClickOutside=Ga,N.useNavbarCollapse=Ya,N.useSidebarState=Ia,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
48
+ */var ii,Ue,ft,Lr,Ke,si,Br,ua=function(){return typeof window<"u"},Fe={},et=180/Math.PI,ht=Math.PI/180,pt=Math.atan2,ai=1e8,zr=/([A-Z])/g,ca=/(left|right|width|margin|padding|x)/i,da=/[\s,\(]\S/,Me={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Vr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},fa=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},ha=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},pa=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},oi=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},li=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},ma=function(e,t,r){return e.style[t]=r},_a=function(e,t,r){return e.style.setProperty(t,r)},ga=function(e,t,r){return e._gsap[t]=r},va=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},xa=function(e,t,r,n,s){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(s,a)},ya=function(e,t,r,n,s){var a=e._gsap;a[t]=r,a.renderTransform(s,a)},X="transform",ge=X+"Origin",ba=function i(e,t){var r=this,n=this.target,s=n.style,a=n._gsap;if(e in Fe&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Me[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Ie(n,o)}):this.tfm[e]=a.x?a[e]:Ie(n,e),e===ge&&(this.tfm.zOrigin=a.zOrigin);else return Me.transform.split(",").forEach(function(o){return i.call(r,o,t)});if(this.props.indexOf(X)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(ge,t,"")),e=X}(s||t)&&this.props.push(e,t,s[e])},ui=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},wa=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?t[e[s]](e[s+2]):t[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(zr,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)n[a]=this.tfm[a];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),s=Br(),(!s||!s.isStart)&&!r[X]&&(ui(r),n.zOrigin&&r[ge]&&(r[ge]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},ci=function(e,t){var r={target:e,props:[],revert:wa,save:ba};return e._gsap||_e.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(n){return r.save(n)}),r},di,Hr=function(e,t){var r=Ue.createElementNS?Ue.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ue.createElement(e);return r&&r.style?r:Ue.createElement(e)},Se=function i(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(zr,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&i(e,mt(t)||t,1)||""},fi="O,Moz,ms,Ms,Webkit".split(","),mt=function(e,t,r){var n=t||Ke,s=n.style,a=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(fi[a]+e in s););return a<0?null:(a===3?"ms":a>=0?fi[a]:"")+e},Ur=function(){ua()&&window.document&&(ii=window,Ue=ii.document,ft=Ue.documentElement,Ke=Hr("div")||{style:{}},Hr("div"),X=mt(X),ge=X+"Origin",Ke.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",di=!!mt("perspective"),Br=_e.core.reverting,Lr=1)},hi=function(e){var t=e.ownerSVGElement,r=Hr("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=e.cloneNode(!0),s;n.style.display="block",r.appendChild(n),ft.appendChild(r);try{s=n.getBBox()}catch{}return r.removeChild(n),ft.removeChild(r),s},pi=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},mi=function(e){var t,r;try{t=e.getBBox()}catch{t=hi(e),r=1}return t&&(t.width||t.height)||r||(t=hi(e)),t&&!t.width&&!t.x&&!t.y?{x:+pi(e,["x","cx","x1"])||0,y:+pi(e,["y","cy","y1"])||0,width:0,height:0}:t},_i=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&mi(e))},tt=function(e,t){if(t){var r=e.style,n;t in Fe&&t!==ge&&(t=X),r.removeProperty?(n=t.substr(0,2),(n==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(n==="--"?t:t.replace(zr,"-$1").toLowerCase())):r.removeAttribute(t)}},$e=function(e,t,r,n,s,a){var o=new me(e._pt,t,r,0,1,a?li:oi);return e._pt=o,o.b=n,o.e=s,e._props.push(r),o},gi={deg:1,rad:1,turn:1},Ta={grid:1,flex:1},Ye=function i(e,t,r,n){var s=parseFloat(r)||0,a=(r+"").trim().substr((s+"").length)||"px",o=Ke.style,l=ca.test(t),u=e.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,p=n==="px",m=n==="%",g,h,_,x;if(n===a||!s||gi[n]||gi[a])return s;if(a!=="px"&&!p&&(s=i(e,t,r,"px")),x=e.getCTM&&_i(e),(m||a==="%")&&(Fe[t]||~t.indexOf("adius")))return g=x?e.getBBox()[l?"width":"height"]:e[c],J(m?s/g*f:s/100*g);if(o[l?"width":"height"]=f+(p?a:n),h=n!=="rem"&&~t.indexOf("adius")||n==="em"&&e.appendChild&&!u?e:e.parentNode,x&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Ue||!h.appendChild)&&(h=Ue.body),_=h._gsap,_&&m&&_.width&&l&&_.time===Te.time&&!_.uncache)return J(s/_.width*f);if(m&&(t==="height"||t==="width")){var v=e.style[t];e.style[t]=f+n,g=e[c],v?e.style[t]=v:tt(e,t)}else(m||a==="%")&&!Ta[Se(h,"display")]&&(o.position=Se(e,"position")),h===e&&(o.position="static"),h.appendChild(Ke),g=Ke[c],h.removeChild(Ke),o.position="absolute";return l&&m&&(_=We(h),_.time=Te.time,_.width=h[c]),J(p?g*s/f:g&&s?f/g*s:0)},Ie=function(e,t,r,n){var s;return Lr||Ur(),t in Me&&t!=="transform"&&(t=Me[t],~t.indexOf(",")&&(t=t.split(",")[0])),Fe[t]&&t!=="transform"?(s=Mt(e,n),s=t!=="transformOrigin"?s[t]:s.svg?s.origin:sr(Se(e,ge))+" "+s.zOrigin+"px"):(s=e.style[t],(!s||s==="auto"||n||~(s+"").indexOf("calc("))&&(s=ir[t]&&ir[t](e,t,r)||Se(e,t)||yn(e,t)||(t==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Ye(e,t,s,r)+r:s},ja=function(e,t,r,n){if(!r||r==="none"){var s=mt(t,e,1),a=s&&Se(e,s,1);a&&a!==r?(t=s,r=a):t==="borderColor"&&(r=Se(e,"borderTopColor"))}var o=new me(this._pt,e.style,t,0,1,ei),l=0,u=0,c,f,p,m,g,h,_,x,v,b,T,y;if(o.b=r,o.e=n,r+="",n+="",n.substring(0,6)==="var(--"&&(n=Se(e,n.substring(4,n.indexOf(")")))),n==="auto"&&(h=e.style[t],e.style[t]=n,n=Se(e,t)||n,h?e.style[t]=h:tt(e,t)),c=[r,n],Hn(c),r=c[0],n=c[1],p=r.match(st)||[],y=n.match(st)||[],y.length){for(;f=st.exec(n);)_=f[0],v=n.substring(l,f.index),g?g=(g+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(g=1),_!==(h=p[u++]||"")&&(m=parseFloat(h)||0,T=h.substr((m+"").length),_.charAt(1)==="="&&(_=at(m,_)+T),x=parseFloat(_),b=_.substr((x+"").length),l=st.lastIndex-b.length,b||(b=b||ve.units[t]||T,l===n.length&&(n+=b,o.e+=b)),T!==b&&(m=Ye(e,t,h,b)||0),o._pt={_next:o._pt,p:v||u===1?v:",",s:m,c:x-m,m:g&&g<4||t==="zIndex"?Math.round:0});o.c=l<n.length?n.substring(l,n.length):""}else o.r=t==="display"&&n==="none"?li:oi;return hn.test(n)&&(o.e=0),this._pt=o,o},vi={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},qa=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(e=r,r=n,n=e),t[0]=vi[r]||r,t[1]=vi[n]||n,t.join(" ")},Ca=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,s=t.u,a=r._gsap,o,l,u;if(s==="all"||s===!0)n.cssText="",l=1;else for(s=s.split(","),u=s.length;--u>-1;)o=s[u],Fe[o]&&(l=1,o=o==="transformOrigin"?ge:X),tt(r,o);l&&(tt(r,X),a&&(a.svg&&r.removeAttribute("transform"),n.scale=n.rotate=n.translate="none",Mt(r,1),a.uncache=1,ui(n)))}},ir={clearProps:function(e,t,r,n,s){if(s.data!=="isFromStart"){var a=e._pt=new me(e._pt,t,r,0,0,Ca);return a.u=n,a.pr=-10,a.tween=s,e._props.push(r),1}}},Et=[1,0,0,1,0,0],xi={},yi=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},bi=function(e){var t=Se(e,X);return yi(t)?Et:t.substr(7).match(fn).map(J)},$r=function(e,t){var r=e._gsap||We(e),n=e.style,s=bi(e),a,o,l,u;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?Et:s):(s===Et&&!e.offsetParent&&e!==ft&&!r.svg&&(l=n.display,n.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,ft.appendChild(e)),s=bi(e),l?n.display=l:tt(e,"display"),u&&(o?a.insertBefore(e,o):a?a.appendChild(e):ft.removeChild(e))),t&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Yr=function(e,t,r,n,s,a){var o=e._gsap,l=s||$r(e,!0),u=o.xOrigin||0,c=o.yOrigin||0,f=o.xOffset||0,p=o.yOffset||0,m=l[0],g=l[1],h=l[2],_=l[3],x=l[4],v=l[5],b=t.split(" "),T=parseFloat(b[0])||0,y=parseFloat(b[1])||0,j,C,O,q;r?l!==Et&&(C=m*_-g*h)&&(O=T*(_/C)+y*(-h/C)+(h*v-_*x)/C,q=T*(-g/C)+y*(m/C)-(m*v-g*x)/C,T=O,y=q):(j=mi(e),T=j.x+(~b[0].indexOf("%")?T/100*j.width:T),y=j.y+(~(b[1]||b[0]).indexOf("%")?y/100*j.height:y)),n||n!==!1&&o.smooth?(x=T-u,v=y-c,o.xOffset=f+(x*m+v*h)-x,o.yOffset=p+(x*g+v*_)-v):o.xOffset=o.yOffset=0,o.xOrigin=T,o.yOrigin=y,o.smooth=!!n,o.origin=t,o.originIsAbsolute=!!r,e.style[ge]="0px 0px",a&&($e(a,o,"xOrigin",u,T),$e(a,o,"yOrigin",c,y),$e(a,o,"xOffset",f,o.xOffset),$e(a,o,"yOffset",p,o.yOffset)),e.setAttribute("data-svg-origin",T+" "+y)},Mt=function(e,t){var r=e._gsap||new Wn(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,s=r.scaleX<0,a="px",o="deg",l=getComputedStyle(e),u=Se(e,ge)||"0",c,f,p,m,g,h,_,x,v,b,T,y,j,C,O,q,M,R,I,F,z,H,V,U,se,fe,w,k,Z,Q,te,P;return c=f=p=h=_=x=v=b=T=0,m=g=1,r.svg=!!(e.getCTM&&_i(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(n[X]=(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[X]!=="none"?l[X]:"")),n.scale=n.rotate=n.translate="none"),C=$r(e,r.svg),r.svg&&(r.uncache?(se=e.getBBox(),u=r.xOrigin-se.x+"px "+(r.yOrigin-se.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),Yr(e,U||u,!!U||r.originIsAbsolute,r.smooth!==!1,C)),y=r.xOrigin||0,j=r.yOrigin||0,C!==Et&&(R=C[0],I=C[1],F=C[2],z=C[3],c=H=C[4],f=V=C[5],C.length===6?(m=Math.sqrt(R*R+I*I),g=Math.sqrt(z*z+F*F),h=R||I?pt(I,R)*et:0,v=F||z?pt(F,z)*et+h:0,v&&(g*=Math.abs(Math.cos(v*ht))),r.svg&&(c-=y-(y*R+j*F),f-=j-(y*I+j*z))):(P=C[6],Q=C[7],w=C[8],k=C[9],Z=C[10],te=C[11],c=C[12],f=C[13],p=C[14],O=pt(P,Z),_=O*et,O&&(q=Math.cos(-O),M=Math.sin(-O),U=H*q+w*M,se=V*q+k*M,fe=P*q+Z*M,w=H*-M+w*q,k=V*-M+k*q,Z=P*-M+Z*q,te=Q*-M+te*q,H=U,V=se,P=fe),O=pt(-F,Z),x=O*et,O&&(q=Math.cos(-O),M=Math.sin(-O),U=R*q-w*M,se=I*q-k*M,fe=F*q-Z*M,te=z*M+te*q,R=U,I=se,F=fe),O=pt(I,R),h=O*et,O&&(q=Math.cos(O),M=Math.sin(O),U=R*q+I*M,se=H*q+V*M,I=I*q-R*M,V=V*q-H*M,R=U,H=se),_&&Math.abs(_)+Math.abs(h)>359.9&&(_=h=0,x=180-x),m=J(Math.sqrt(R*R+I*I+F*F)),g=J(Math.sqrt(V*V+P*P)),O=pt(H,V),v=Math.abs(O)>2e-4?O*et:0,T=te?1/(te<0?-te:te):0),r.svg&&(U=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!yi(Se(e,X)),U&&e.setAttribute("transform",U))),Math.abs(v)>90&&Math.abs(v)<270&&(s?(m*=-1,v+=h<=0?180:-180,h+=h<=0?180:-180):(g*=-1,v+=v<=0?180:-180)),t=t||r.uncache,r.x=c-((r.xPercent=c&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-c)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=f-((r.yPercent=f&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=p+a,r.scaleX=J(m),r.scaleY=J(g),r.rotation=J(h)+o,r.rotationX=J(_)+o,r.rotationY=J(x)+o,r.skewX=v+o,r.skewY=b+o,r.transformPerspective=T+a,(r.zOrigin=parseFloat(u.split(" ")[2])||!t&&r.zOrigin||0)&&(n[ge]=sr(u)),r.xOffset=r.yOffset=0,r.force3D=ve.force3D,r.renderTransform=r.svg?Sa:di?wi:Oa,r.uncache=0,r},sr=function(e){return(e=e.split(" "))[0]+" "+e[1]},Wr=function(e,t,r){var n=ce(t);return J(parseFloat(t)+parseFloat(Ye(e,"x",r+"px",n)))+n},Oa=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,wi(e,t)},rt="0deg",At="0px",nt=") ",wi=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.z,u=r.rotation,c=r.rotationY,f=r.rotationX,p=r.skewX,m=r.skewY,g=r.scaleX,h=r.scaleY,_=r.transformPerspective,x=r.force3D,v=r.target,b=r.zOrigin,T="",y=x==="auto"&&e&&e!==1||x===!0;if(b&&(f!==rt||c!==rt)){var j=parseFloat(c)*ht,C=Math.sin(j),O=Math.cos(j),q;j=parseFloat(f)*ht,q=Math.cos(j),a=Wr(v,a,C*q*-b),o=Wr(v,o,-Math.sin(j)*-b),l=Wr(v,l,O*q*-b+b)}_!==At&&(T+="perspective("+_+nt),(n||s)&&(T+="translate("+n+"%, "+s+"%) "),(y||a!==At||o!==At||l!==At)&&(T+=l!==At||y?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+nt),u!==rt&&(T+="rotate("+u+nt),c!==rt&&(T+="rotateY("+c+nt),f!==rt&&(T+="rotateX("+f+nt),(p!==rt||m!==rt)&&(T+="skew("+p+", "+m+nt),(g!==1||h!==1)&&(T+="scale("+g+", "+h+nt),v.style[X]=T||"translate(0, 0)"},Sa=function(e,t){var r=t||this,n=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.rotation,u=r.skewX,c=r.skewY,f=r.scaleX,p=r.scaleY,m=r.target,g=r.xOrigin,h=r.yOrigin,_=r.xOffset,x=r.yOffset,v=r.forceCSS,b=parseFloat(a),T=parseFloat(o),y,j,C,O,q;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=ht,u*=ht,y=Math.cos(l)*f,j=Math.sin(l)*f,C=Math.sin(l-u)*-p,O=Math.cos(l-u)*p,u&&(c*=ht,q=Math.tan(u-c),q=Math.sqrt(1+q*q),C*=q,O*=q,c&&(q=Math.tan(c),q=Math.sqrt(1+q*q),y*=q,j*=q)),y=J(y),j=J(j),C=J(C),O=J(O)):(y=f,O=p,j=C=0),(b&&!~(a+"").indexOf("px")||T&&!~(o+"").indexOf("px"))&&(b=Ye(m,"x",a,"px"),T=Ye(m,"y",o,"px")),(g||h||_||x)&&(b=J(b+g-(g*y+h*C)+_),T=J(T+h-(g*j+h*O)+x)),(n||s)&&(q=m.getBBox(),b=J(b+n/100*q.width),T=J(T+s/100*q.height)),q="matrix("+y+","+j+","+C+","+O+","+b+","+T+")",m.setAttribute("transform",q),v&&(m.style[X]=q)},ka=function(e,t,r,n,s){var a=360,o=ie(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?et:1),u=l-n,c=n+u+"deg",f,p;return o&&(f=s.split("_")[1],f==="short"&&(u%=a,u!==u%(a/2)&&(u+=u<0?a:-a)),f==="cw"&&u<0?u=(u+a*ai)%a-~~(u/a)*a:f==="ccw"&&u>0&&(u=(u-a*ai)%a-~~(u/a)*a)),e._pt=p=new me(e._pt,t,r,n,u,fa),p.e=c,p.u="deg",e._props.push(r),p},Ti=function(e,t){for(var r in t)e[r]=t[r];return e},Pa=function(e,t,r){var n=Ti({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=r.style,o,l,u,c,f,p,m,g;n.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),a[X]=t,o=Mt(r,1),tt(r,X),r.setAttribute("transform",u)):(u=getComputedStyle(r)[X],a[X]=t,o=Mt(r,1),a[X]=u);for(l in Fe)u=n[l],c=o[l],u!==c&&s.indexOf(l)<0&&(m=ce(u),g=ce(c),f=m!==g?Ye(r,l,u,g):parseFloat(u),p=parseFloat(c),e._pt=new me(e._pt,o,l,f,p-f,Vr),e._pt.u=g||0,e._props.push(l));Ti(o,n)};pe("padding,margin,Width,Radius",function(i,e){var t="Top",r="Right",n="Bottom",s="Left",a=(e<3?[t,r,n,s]:[t+s,t+r,n+r,n+s]).map(function(o){return e<2?i+o:"border"+o+i});ir[e>1?"border"+i:i]=function(o,l,u,c,f){var p,m;if(arguments.length<4)return p=a.map(function(g){return Ie(o,g,u)}),m=p.join(" "),m.split(p[0]).length===5?p[0]:m;p=(c+"").split(" "),m={},a.forEach(function(g,h){return m[g]=p[h]=p[h]||p[(h-1)/2|0]}),o.init(l,m,f)}});var ji={name:"css",register:Ur,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,s){var a=this._props,o=e.style,l=r.vars.startAt,u,c,f,p,m,g,h,_,x,v,b,T,y,j,C,O;Lr||Ur(),this.styles=this.styles||ci(e),O=this.styles.props,this.tween=r;for(h in t)if(h!=="autoRound"&&(c=t[h],!(ye[h]&&Xn(h,t,r,n,e,s)))){if(m=typeof c,g=ir[h],m==="function"&&(c=c.call(r,n,e,s),m=typeof c),m==="string"&&~c.indexOf("random(")&&(c=Ct(c)),g)g(this,e,h,c,r)&&(C=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),c+="",Ve.lastIndex=0,Ve.test(u)||(_=ce(u),x=ce(c)),x?_!==x&&(u=Ye(e,h,u,x)+x):_&&(c+=_),this.add(o,"setProperty",u,c,n,s,0,0,h),a.push(h),O.push(h,0,o[h]);else if(m!=="undefined"){if(l&&h in l?(u=typeof l[h]=="function"?l[h].call(r,n,e,s):l[h],ie(u)&&~u.indexOf("random(")&&(u=Ct(u)),ce(u+"")||u==="auto"||(u+=ve.units[h]||ce(Ie(e,h))||""),(u+"").charAt(1)==="="&&(u=Ie(e,h))):u=Ie(e,h),p=parseFloat(u),v=m==="string"&&c.charAt(1)==="="&&c.substr(0,2),v&&(c=c.substr(2)),f=parseFloat(c),h in Me&&(h==="autoAlpha"&&(p===1&&Ie(e,"visibility")==="hidden"&&f&&(p=0),O.push("visibility",0,o.visibility),$e(this,o,"visibility",p?"inherit":"hidden",f?"inherit":"hidden",!f)),h!=="scale"&&h!=="transform"&&(h=Me[h],~h.indexOf(",")&&(h=h.split(",")[0]))),b=h in Fe,b){if(this.styles.save(h),m==="string"&&c.substring(0,6)==="var(--"&&(c=Se(e,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),T||(y=e._gsap,y.renderTransform&&!t.parseTransform||Mt(e,t.parseTransform),j=t.smoothOrigin!==!1&&y.smooth,T=this._pt=new me(this._pt,o,X,0,1,y.renderTransform,y,0,-1),T.dep=1),h==="scale")this._pt=new me(this._pt,y,"scaleY",y.scaleY,(v?at(y.scaleY,v+f):f)-y.scaleY||0,Vr),this._pt.u=0,a.push("scaleY",h),h+="X";else if(h==="transformOrigin"){O.push(ge,0,o[ge]),c=qa(c),y.svg?Yr(e,c,0,j,0,this):(x=parseFloat(c.split(" ")[2])||0,x!==y.zOrigin&&$e(this,y,"zOrigin",y.zOrigin,x),$e(this,o,h,sr(u),sr(c)));continue}else if(h==="svgOrigin"){Yr(e,c,1,j,0,this);continue}else if(h in xi){ka(this,y,h,p,v?at(p,v+c):c);continue}else if(h==="smoothOrigin"){$e(this,y,"smooth",y.smooth,c);continue}else if(h==="force3D"){y[h]=c;continue}else if(h==="transform"){Pa(this,c,e);continue}}else h in o||(h=mt(h)||h);if(b||(f||f===0)&&(p||p===0)&&!da.test(c)&&h in o)_=(u+"").substr((p+"").length),f||(f=0),x=ce(c)||(h in ve.units?ve.units[h]:_),_!==x&&(p=Ye(e,h,u,x)),this._pt=new me(this._pt,b?y:o,h,p,(v?at(p,v+f):f)-p,!b&&(x==="px"||h==="zIndex")&&t.autoRound!==!1?pa:Vr),this._pt.u=x||0,_!==x&&x!=="%"&&(this._pt.b=u,this._pt.r=ha);else if(h in o)ja.call(this,e,h,u,v?v+c:c);else if(h in e)this.add(e,h,u||e[h],v?v+c:c,n,s);else if(h!=="parseTransform"){_r(h,c);continue}b||(h in o?O.push(h,0,o[h]):typeof e[h]=="function"?O.push(h,2,e[h]()):O.push(h,1,u||e[h])),a.push(h)}}C&&ti(this)},render:function(e,t){if(t.tween._time||!Br())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:Ie,aliases:Me,getSetter:function(e,t,r){var n=Me[t];return n&&n.indexOf(",")<0&&(t=n),t in Fe&&t!==ge&&(e._gsap.x||Ie(e,"x"))?r&&si===r?t==="scale"?va:ga:(si=r||{})&&(t==="scale"?xa:ya):e.style&&!cr(e.style[t])?ma:~t.indexOf("-")?_a:Rr(e,t)},core:{_removeProperty:tt,_getMatrix:$r}};_e.utils.checkPrefix=mt,_e.core.getStyleSaver=ci,(function(i,e,t,r){var n=pe(i+","+e+","+t,function(s){Fe[s]=1});pe(e,function(s){ve.units[s]="deg",xi[s]=1}),Me[n[13]]=i+","+e,pe(r,function(s){var a=s.split(":");Me[a[1]]=n[a[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"),pe("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ve.units[i]="px"}),_e.registerPlugin(ji);var je=_e.registerPlugin(ji)||_e;je.core.Tween;const Na=(i,e)=>{Qr.useGSAP(()=>{if(!i.current)return;const t=i.current,r=document.querySelector('[data-main-content="true"]');if(e){je.fromTo(t,{width:"0rem",opacity:0},{width:"40rem",opacity:1,duration:.4,ease:"power2.out"}),r&&je.to(r,{marginLeft:t.offsetWidth+"px",duration:.4,ease:"power2.out"});const n=t.querySelectorAll(".secondary-bar-content > *");n.length>0&&je.fromTo(n,{y:20,opacity:0},{y:0,opacity:1,duration:.3,stagger:.05,delay:.1,ease:"power1.out"})}else je.to(t,{width:"0rem",opacity:0,duration:.3,ease:"power2.in"}),r&&je.to(r,{marginLeft:"0px",duration:.3,ease:"power2.in"})},{scope:i,dependencies:[e]})},qi=({children:i,isOpen:e=!1,className:t="",width:r="w-96",action:n,primarySidebarCollapsed:s,onClose:a})=>{const o=E.useRef(null),[l,u]=E.useState({left:0,width:0}),{primarySidebarRef:c}=ln();return E.useLayoutEffect(()=>{if(c?.current){const f=c.current.getBoundingClientRect();u({left:f.width,width:f.width})}},[c,e,s]),Na(o,e),d.jsx(d.Fragment,{children:e&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 bg-black/95 z-20",style:{left:l.left},onClick:a}),d.jsx("div",{ref:o,className:S("h-screen bg-neutral-default-default border-r-1 border-neutral-strong-default flex flex-col secondary-bar flex-shrink-0","absolute top-0 z-30",r,t),style:{left:l.left},"data-action":n,children:d.jsx("div",{className:"secondary-bar-content",children:i})})]})})},Ea=Object.assign(qi,{Root:qi,Header:({children:i,className:e})=>d.jsx("div",{className:S("h-16 ",e),children:i}),Content:({children:i,className:e})=>d.jsx("div",{className:S("flex-1 overflow-y-auto p-4",e),children:i}),Footer:({children:i,className:e})=>d.jsx("div",{className:S("p-4 border-t border-neutral-strong-default",e),children:i}),Spacer:({className:i})=>d.jsx("div",{className:S("flex-1",i)})}),ar=(i,e,t,r)=>e&&(Array.isArray(e)?e.length>0:e)?i.to(e,t,r):i,Ma=(i,e,t)=>{Qr.useGSAP(()=>{if(!i.current)return;const r=je.timeline({defaults:{duration:.7,ease:"power1.out"}}),n={navbar:i.current,navLabels:je.utils.toArray(".nav-label"),navIconWrappers:je.utils.toArray(".nav-icon-wrapper"),navIcons:je.utils.toArray(".nav-icon"),navLinkItems:je.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"),logo:{contenedor:document.querySelector(".container-logo"),icon:document.querySelector(".icon-logo"),text:document.querySelector(".text-logo")},sidebarHeader:document.querySelector(".sidebar-header"),containerIconcollapsade:document.querySelector(".container-icon-collapsade"),secondaryBar:document.querySelector(".secondary-bar"),secondaryBarContent:je.utils.toArray(".secondary-bar *")};e?Aa(r,n):Ra(r,n),n.secondaryBar&&Da(n.secondaryBar)},{scope:i,dependencies:[e,t]})},Aa=(i,e)=>{i.to(e.navbar,{width:"6rem",duration:.2,ease:"bounce.out"}).to(e.logo.contenedor,{width:48,duration:.2}).to(e.logo.text,{opacity:0,scale:.8,duration:.5,ease:"back.in(1.2)"},-1).set(e.logo.text,{display:"none"}).to(e.sidebarHeader,{justifyContent:"center",display:"flex"},-1).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.6,ease:"power1.inOut"}).to(e.navLinkItems,{justifyContent:"center",alignItems:"center",width:"3rem",height:"3rem",display:"flex"},-1).to(e.navLabels,{opacity:0,width:30,marginLeft:0},0).to(e.navIcons,{scale:.95,ease:"elastic.out(1, 0.3)"},0),ar(i,e.buttonCrevron,{width:0,opacity:0,duration:.7,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="none"}},0),ar(i,e.buttonContentChevron,{display:"none"},-1).to(e.separatorProfile,{display:"none"},-1).to(e.profileUserInfo,{display:"none"},-1).to(e.navLinkItems,{borderRadius:"8px",duration:.7,ease:"power1.out"},.8).to(e.buttonProfile,{height:"3rem",width:"3rem",margin:0,padding:0,duration:.3,ease:"power2.out",display:"flex",justifyContent:"center",alignItems:"center"},-1).to(e.containerIconcollapsade,{justifyContent:"center",marginRight:0},"=-1")},Ra=(i,e)=>{i.to(e.navbar,{width:"20rem"},-1).to(e.navLinkItems,{borderRadius:"10px",duration:.3,width:"100%",justifyContent:"flex-start"},-1),ar(i,e.buttonCrevron,{width:"auto",opacity:1,duration:0,ease:"power1.out",onComplete:()=>{e.buttonCrevron.style.display="flex"}},0),ar(i,e.buttonContentChevron,{display:"flex"},0).to(e.logo.contenedor,{width:185},-1).set(e.logo.text,{display:"flex"},-1).to(e.logo.text,{opacity:1,duration:0,ease:"back.in(1)"}).to(e.logo.icon,{keyframes:{"0%":{scale:1},"33%":{scale:1.5},"66%":{scale:.5},"100%":{scale:1}},duration:.3,ease:"power1.inOut"}).to(e.sidebarHeader,{justifyContent:"start",display:"flex"},-1).to(e.containerIconcollapsade,{justifyContent:"end",marginRight:20},-1).to(e.separatorProfile,{display:"flex"},0).to(e.profileUserInfo,{display:"flex"},-1).to(e.buttonProfile,{borderTopLeftRadius:"0.375rem",borderBottomLeftRadius:"0.375rem",borderTopRightRadius:"0",borderBottomRightRadius:"0",duration:0},-1).to(e.separatorProfile,{display:"flex"},0).to(e.navLabels,{opacity:1,width:"auto",scaleX:1},0).to(e.navIcons,{scale:1},.3)},Da=(i,e)=>{je.to(i,{x:"-100%",opacity:0,duration:.3,ease:"power2.in"})},Xr=E.forwardRef(({children:i,isCollapsed:e=!1,className:t=""},r)=>{const n=E.useRef(null),{registerPrimarySidebar:s}=ln(),a=E.useCallback(o=>{n.current=o,typeof r=="function"?r(o):r&&(r.current=o)},[r]);return E.useEffect(()=>{n.current&&s(n)},[s]),Ma(n,e,!1),d.jsx("div",{ref:a,className:`bg-neutral-default-default overflow-hidden h-screen flex flex-col border-r border-neutral-strong-default transition-all duration-300 relative z-50 flex-shrink-0 ${e?"w-16":"w-64"} ${t}`,children:i})});Xr.displayName="SidebarRoot";const Fa=Object.assign(Xr,{Root:Xr,CollapseButton:({isCollapsed:i,onToggleCollapse:e})=>d.jsx("div",{className:S("flex mt-5 mb-4 justify-end mr-5 container-icon-collapsade",i&&""),children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(le.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(le.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),Header:({children:i,className:e})=>d.jsx("div",{className:`${e} sidebar-header`,children:i}),Divider:({className:i})=>d.jsx("div",{className:S("px-3 flex justify-center items-center w-full mb-4",i),children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),Content:({children:i,className:e})=>d.jsx("div",{className:e,children:i}),Spacer:({className:i,size:e="auto"})=>{const t=()=>{switch(e){case"auto":return"flex-grow";case"small":return"h-2 w-2";case"medium":return"h-4 w-4";case"large":return"h-8 w-8"}};return d.jsx("div",{className:S(t(),i)})},Footer:({children:i,className:e})=>d.jsx("div",{className:e,children:i})}),Ia=()=>{const[i,e]=E.useState(!1),[t,r]=E.useState(!1),n=()=>{e(!1),o()},s=()=>{e(!0),r(!1)},a=()=>{r(!0)},o=()=>{r(!1)};return{isCollapsed:i,setIsCollapsed:e,toggleCollapse:()=>{i?n():s()},expandSidebar:n,collapseSidebar:s,activeSecondaryBar:t,openSecondaryBar:a,closeSecondaryBar:o,toggleSecondaryBar:()=>{r(c=>!c)}}},Za=({children:i,icon:e,label:t,href:r,onClick:n,isActive:s=!1,className:a})=>{const o=r?"a":"button";return d.jsxs(o,{href:r,onClick:n,className:S("nav-link-item","flex items-center w-full px-3 py-2 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default",s&&"bg-neutral-medium-default",a),children:[e&&d.jsx("div",{className:"nav-icon-wrapper mr-3 flex-shrink-0",children:d.jsx("div",{className:"nav-icon flex items-center justify-center w-5 h-5",children:e})}),t&&d.jsx("span",{className:"nav-label text-sm text-neutral-strong-default",children:t}),i]})},La=E.createContext(void 0),Ba=()=>{const i=E.useContext(La);if(!i)throw new Error("useSidebar must be used within a Sidebar.Root");return i},za=({user:i,className:e,onProfileClick:t})=>{const{isCollapsed:r}=Ba(),[n,s]=E.useState(!1),a=()=>{r?t?.():s(!n)};return d.jsxs("div",{className:S("profile-container",e),children:[d.jsxs("button",{onClick:a,className:S("button-profile","flex items-center w-full p-3 text-left","hover:bg-neutral-medium-default transition-colors rounded-lg","focus:outline-none focus:ring-2 focus:ring-primary-default-default"),children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 mr-3",children:d.jsx("div",{className:"cover-image-profile w-10 h-10 rounded-full bg-primary-default-default flex items-center justify-center text-white text-sm font-semibold",children:i.profileImage?d.jsx("img",{src:i.profileImage,alt:i.name,className:"w-full h-full rounded-full object-cover"}):i.name.charAt(0).toUpperCase()})}),d.jsxs("div",{className:"profile-user-info flex-1 min-w-0",children:[d.jsx("div",{className:"profile-name text-sm font-medium text-neutral-strong-default truncate",children:i.name}),d.jsx("div",{className:"text-xs text-neutral-medium-default truncate",children:i.email})]}),d.jsx("div",{className:"button-content-chevron ml-2 flex-shrink-0",children:d.jsx("div",{className:"button-select-crevron w-4 h-4 text-neutral-medium-default",children:n?"▲":"▼"})})]}),n&&!r&&d.jsx("div",{className:"profile-options mt-2 pl-3 space-y-1",children:d.jsxs("button",{className:"logout-button flex items-center w-full px-3 py-2 text-left text-sm text-neutral-strong-default hover:bg-neutral-medium-default rounded-lg",children:[d.jsx("span",{className:"logout-icon mr-2",children:"🚪"}),d.jsx("span",{className:"logout-label",children:"Cerrar sesión"})]})}),d.jsx("div",{className:"border-separator-profile mt-3 border-t border-neutral-strong-default"})]})},Va=({count:i,maxCount:e=9,className:t="",size:r="medium",variant:n="primary",showZero:s=!1})=>{const a=i,o=a>e?`+${e}`:a;if(a===0&&!s)return null;const l={small:"w-4 h-4 text-xs",medium:"w-5 h-5 text-xs",large:"w-6 h-6 text-sm"},u={primary:"bg-primary-default-default text-neutral-strong-default",secondary:"bg-neutral-medium-default text-neutral-strong-default",success:"bg-green-500 text-white",warning:"bg-yellow-500 text-black",danger:"bg-red-500 text-white"};return d.jsx("div",{className:S("rounded-full flex items-center justify-center font-medium",l[r],u[n],t),children:d.jsx("span",{children:o})})},Ha=({linkActions:i,componentBadge:e,onClick:t,activeAction:r,counts:n={}})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((s,a)=>s.viewAccess()&&d.jsx(D.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:a*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:d.jsxs("button",{onClick:()=>{t?.(s.action)},className:S("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",r===s.action?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(D.AnimatePresence,{mode:"wait",children:r===s.action&&d.jsx(D.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(D.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:(r===s.action,0)},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(D.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:r===s.action?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof s.icon=="function"?s.icon({size:24,className:S("nav-icon transition-colors duration-250 ease-out",r===s.action?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:s.title})]}),e&&typeof e=="function"&&n[s.action]&&n[s.action]>0&&e(n[s.action])]})]})},a))}),Ua=({links:i,isLinkActive:e,componentBadge:t,onLinkClick:r})=>d.jsx("nav",{className:"flex flex-col gap-1",children:i?.map((n,s)=>{const a=e(n.path)||(n.relatedPaths?.some(o=>e(o))??!1);return n.isView&&n.viewAccess()&&d.jsx(D.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:s*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:d.jsxs("button",{onClick:()=>{r?.(n.path)},className:S("nav-link-item flex rounded-lg cursor-pointer relative overflow-hidden h-10 ","transition-all duration-300 ease-out w-full","group hover:bg-neutral-medium-selected",a?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(D.AnimatePresence,{mode:"wait",children:a&&d.jsx(D.motion.div,{layoutId:"nav-active-bg",className:"absolute inset-0 bg-neutral-medium-selected rounded-lg",initial:!1,animate:{opacity:1},exit:{opacity:0},transition:{type:"tween",duration:.25,ease:"easeInOut"}})}),d.jsxs(D.motion.div,{className:"nav-content-wrapper flex items-center justify-between gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(D.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:a?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof n.icon=="function"?n.icon({size:24,className:S("nav-icon transition-colors duration-250 ease-out",a?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):null}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:n.title})]}),t&&n.count&&n.count>0&&t(n.count)]})]})},s)})}),$a=({isActiveModalNotification:i,setIsActiveModalNotification:e})=>({handleNotificationClick:()=>{e(!0)},isActiveModalNotification:i}),Ya=i=>{const e=E.useRef(null);return{isCollapsed:i,navbarRef:e}},Wa=({isCollapsed:i,onToggle:e})=>d.jsx("div",{className:"",children:d.jsx("button",{onClick:e,title:i?"Expandir Navbar":"Contraer Navbar","aria-label":i?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:i?d.jsx(le.CloseNavBarDesktop,{size:34,className:"rotate-180 transition-transform duration-300"}):d.jsx(le.CloseNavBarDesktop,{size:34,className:"rotate-0 transition-transform duration-300"})})}),Xa=({logoUrl:i,companyName:e})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:i,className:"h-2/3 rounded-full",alt:e??""})}),Ga=(i,e=!0)=>{const t=E.useRef(null);return E.useEffect(()=>{if(!e)return;const r=n=>{t.current&&!t.current.contains(n.target)&&i()};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})}},[i,e]),t};N.Avatar=rn,N.Badge=Va,N.Button=Ri,N.CardProfile=Ft,N.ChangueAccount=an,N.CheckboxFormik=Di,N.CompanyLogo=Xa,N.Header=Ii,N.Icons=le,N.Input=os,N.InputFormik=ls,N.LayoutGeneric=ms,N.Logo=us,N.Menu=cs,N.NavBarActions=Ha,N.NavbarCollapseButton=Wa,N.NavbarLinks=Ua,N.NavigationLink=Za,N.Pagination=ds,N.ProfileSection=za,N.ProgressBar=ps,N.SecondaryBar=Ea,N.Select=hs,N.Sidebar=Fa,N.SidebarProvider=_s,N.Spinner=or,N.useActionsNavbar=$a,N.useClickOutside=Ga,N.useNavbarCollapse=Ya,N.useSidebarState=Ia,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "1.2.7",
4
+ "version": "1.2.8",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",