prometeo-design-system 1.0.5 → 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.
@@ -8,7 +8,7 @@ export interface NavbarLinksProps {
8
8
  }) => React.ReactNode;
9
9
  title: string;
10
10
  isView?: boolean;
11
- viewAcess: () => boolean;
11
+ viewAccess: () => boolean;
12
12
  relatedPaths?: string[];
13
13
  count?: number;
14
14
  }>;
@@ -13,7 +13,7 @@ export interface INavLink {
13
13
  size: number;
14
14
  className: string;
15
15
  }) => React.ReactNode;
16
- viewAcess: () => boolean;
16
+ viewAccess: () => boolean;
17
17
  discover?: "render" | "none";
18
18
  isView?: boolean;
19
19
  relatedPaths?: string[];
@@ -1511,7 +1511,7 @@ const es = ({ sessionsShow: a, handleTokenLogin: t, onClickLogout: e, menuRef: r
1511
1511
  const l = t(s.path) || (s.relatedPaths?.some(
1512
1512
  (u) => t(u)
1513
1513
  ) ?? !1);
1514
- return s.isView && s.viewAcess() && /* @__PURE__ */ d.jsxs(
1514
+ return s.isView && s.viewAccess() && /* @__PURE__ */ d.jsxs(
1515
1515
  N.div,
1516
1516
  {
1517
1517
  initial: { opacity: 0 },
@@ -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-full flex flex-col border-r border-neutral-strong-default transition-all duration-300 ${c ? "w-16" : "w-64"}`,
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 }),
@@ -20,7 +20,7 @@
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
22
  <%s key={someKey} {...props} />`,K,st,fe,st),Jt[st+K]=!0)}if(st=null,A!==void 0&&(e(A),st=""+A),s(j)&&(e(j.key),st=""+j.key),"key"in j){A={};for(var Mr in j)Mr!=="key"&&(A[Mr]=j[Mr])}else A=j;return st&&o(A,typeof w=="function"?w.displayName||w.name||"Unknown":w),u(w,st,et,tt,i(),A,Ar,Nr)}function c(w){typeof w=="object"&&w!==null&&w.$$typeof===p&&w._store&&(w._store.validated=1)}var _=V,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),b=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),P=Symbol.for("react.client.reference"),N=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=Object.prototype.hasOwnProperty,M=Array.isArray,X=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(w){return w()}};var W,U={},G=_.react_stack_bottom_frame.bind(_,n)(),ct=X(r(n)),Jt={};ce.Fragment=h,ce.jsx=function(w,j,A,K,tt){var et=1e4>N.recentlyCreatedOwnerStacks++;return f(w,j,A,!1,K,tt,et?Error("react-stack-top-frame"):G,et?X(r(w)):ct)},ce.jsxs=function(w,j,A,K,tt){var et=1e4>N.recentlyCreatedOwnerStacks++;return f(w,j,A,!0,K,tt,et?Error("react-stack-top-frame"):G,et?X(r(w)):ct)}})()),ce}var Fr;function mn(){return Fr||(Fr=1,process.env.NODE_ENV==="production"?Oe.exports=_n():Oe.exports=pn()),Oe.exports}var d=mn();function L(...a){return un.twMerge(ln.clsx(a))}const gn={filled:{primary:L("bg-primary-default-default text-neutral-strong-default border-0 cursor-pointer flex items-center justify-center","hover:bg-primary-default-hover hover:text-neutral-strong-hover","focus:bg-primary-default-pressed focus:text-neutral-strong-focused","active:bg-primary-pressed active:text-neutral-strong-pressed","disabled:bg-primary-medium-disabled disabled:text-neutral-strong-disabled"),secondary:L("bg-neutral-strong-medium-default flex items-center justify-center text-neutral-strong-default","hover:bg-neutral-medium-hover hover:text-neutral-strong-hover","focus:bg-neutral-medium-pressed focus:text-neutral-strong-pressed","active:bg-neutral-medium-pressed","disabled:bg-primary-default-disabled disabled:text-neutral-strong-disabled")},outline:{primary:L("bg-transparent text-primary-medium-default border-1 border-primary-medium-default flex items-center justify-center","hover:bg-neutral-default-hover hover:text-primary-medium-hover hover:border-primary-medium-hover","focus:bg-neutral-default-pressed focus:text-primary-medium-pressed focus:border-primary-medium-pressed","active:bg-neutral-default-pressed active:text-primary-medium-pressed active:border-primary-medium-pressed","disabled:border-primary-disabled disabled:text-primary-disabled disabled:bg-transparent"),secondary:L("bg-transparent text-neutral-strong-default border-1 border-neutral-strong-default flex items-center justify-center","hover:bg-neutral-default-hover hover:text-neutral-strong-hover hover:border-neutral-strong-hover","focus:bg-neutral-default-pressed focus:text-neutral-strong-pressed focus:border-neutral-strong-pressed","active:bg-neutral-default-pressed active:text-neutral-strong-pressed active:border-neutral-strong-pressed","disabled:border-neutral-disabled disabled:text-neutral-disabled disabled:bg-transparent")},text:{primary:L("bg-transparent text-primary-medium-default border-0 flex items-center justify-center","hover:bg-neutral-default-hover hover:text-primary-medium-hover","focus:bg-neutral-default-pressed focus:text-primary-medium-pressed","active:bg-neutral-default-pressed active:text-primary-medium-pressed","disabled:text-primary-medium-disabled disabled:bg-transparent"),secondary:L("bg-transparent text-neutral-strong-default border-0 flex items-center justify-center","hover:bg-neutral-default-hover hover:text-primary-default-hover","focus:bg-neutral-default-pressed focus:text-primary-medium-pressed","active:bg-neutral-default-pressed active:text-primary-medium-pressed","disabled:text-primary-medium-disabled disabled:bg-transparent")}},vn={small:"h-[40px] min-w-[123px] px-2 py-3 text-sm rounded-md text-sm font-semibold",medium:"h-[48px] min-w-[134px] px-2 py-3 font-semibold text-base rounded-md",large:"h-[56px] min-w-[145px] px-4 py-3 text-base rounded-md font-semibold"};function xn({label:a,onClick:t,icon:e,classButton:r,classButtonText:i,animate:n=!0,animateIcon:s=!0,isLoading:o=!1,disabled:l=!1,type:u="button",variant:f="filled",color:c="primary",size:_="medium",children:p,Spinner:m}){const h=R.useAnimationControls(),g=()=>{!n||l||o||!s||h.start({rotate:90})},v=()=>{!n||l||o||!s||h.start({rotate:0})},y=r||L(gn[f][c],vn[_],(l||o)&&"opacity-50 cursor-not-allowed","focus:outline-none");return d.jsx(R.motion.button,{onClick:t,className:y,whileHover:n&&!l&&!o?{scale:1.05}:{},whileTap:n&&!l&&!o?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:g,onHoverEnd:v,disabled:l||o,type:u,children:o?d.jsxs("div",{className:"flex items-center gap-2",children:[m,_!=="small"&&d.jsx("span",{children:"Cargando..."})]}):p||d.jsxs("span",{className:L("flex items-center indent-1",i),children:[e&&d.jsx(R.motion.div,{animate:s?h:void 0,transition:{type:"spring",stiffness:400,damping:17},children:e}),a&&d.jsx("span",{children:a})]})})}const yn=({label:a,icon:t,onChange:e,value:r="",debounceMs:i=0,name:n,width:s="100%",height:o="56px",className:l,id:u,isFetching:f=!1,placeholder:c="",disabled:_=!1,required:p=!1,error:m,type:h="text"})=>{const g=V.useId(),v=u||g,[y,b]=V.useState(r),[T,x]=V.useState(!1),[C]=fn.useDebounce(y,i>0?i:0);V.useEffect(()=>{b(r)},[r]),V.useEffect(()=>{i>0&&C!==r&&e(C)},[C,i,e,r]);const S=N=>{const E=N.target.value;b(E),i===0&&e(E)},O=y.length>0,q=m&&!T,P=T||O;return d.jsxs("div",{className:L("relative w-72",l),style:{width:s,height:o},children:[d.jsxs("div",{className:L("relative w-72 h-full","border-2 rounded-lg transition-all duration-200","bg-white hover:bg-gray-50",!m&&!T&&"border-gray-300",!m&&T&&"border-blue-500 ring-2 ring-blue-200",q&&"border-red-500 ring-2 ring-red-200",_&&"bg-gray-100 border-gray-200 cursor-not-allowed",t?"pl-12":"pl-4","pr-4"),children:[t&&d.jsx(R.motion.div,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 z-10",animate:{y:P?[-2,0]:0,rotate:T?[0,-10,10,-10,10,0]:0},transition:{duration:.7},children:d.jsx("span",{className:L("text-lg transition-colors duration-200",!m&&!P&&"text-gray-400",!m&&P&&"text-blue-500",q&&"text-red-500",_&&"text-gray-300"),children:t})}),d.jsx("input",{id:v,type:h,className:L("w-full h-full bg-transparent border-none outline-none","text-gray-900 text-base transition-all duration-200","placeholder-transparent","pt-6 pb-2",_&&"cursor-not-allowed text-gray-400","focus:outline-none"),name:n,value:y,placeholder:T?c:"",disabled:_,required:p,onFocus:()=>x(!0),onBlur:()=>x(!1),onChange:S,"aria-invalid":!!m,"aria-describedby":m?`${v}-error`:void 0}),d.jsxs(R.motion.label,{htmlFor:v,className:L("absolute left-0 top-1/2 transform origin-left cursor-text","transition-all duration-200 pointer-events-none select-none","text-gray-500 font-medium",t?"ml-12":"ml-4",!m&&!P&&"text-gray-500",!m&&P&&"text-blue-600",q&&"text-red-500",_&&"text-gray-400"),animate:{y:P?-20:-8,scale:P?.85:1},transition:{duration:.2,ease:"easeOut"},children:[a,p&&d.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),f&&d.jsx(R.motion.div,{className:"absolute right-3 top-1/2 transform -translate-y-1/2",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:d.jsx("div",{className:L("w-5 h-5 border-2 border-gray-300 border-t-blue-500","rounded-full animate-spin")})})]}),m&&d.jsx(R.motion.span,{id:`${v}-error`,className:L("block mt-1 text-sm text-red-500 font-medium","px-1"),initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},role:"alert",children:m})]})},wn=V.memo(yn),Lt={Ticket:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Zm0-160q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm320 440H160q-33 0-56.5-23.5T80-240v-160q33 0 56.5-23.5T160-480q0-33-23.5-56.5T80-560v-160q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v160q-33 0-56.5 23.5T800-480q0 33 23.5 56.5T880-400v160q0 33-23.5 56.5T800-160Zm0-80v-102q-37-22-58.5-58.5T720-480q0-43 21.5-79.5T800-618v-102H160v102q37 22 58.5 58.5T240-480q0 43-21.5 79.5T160-342v102h640ZM480-480Z"})}),Home:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm360-80h100v-480H520v480Zm-180 0h100v-480H340v480Zm-180 0h100v-480H160v480Zm540 0h100v-480H700v480Z"})}),Notifications:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z"})}),Help:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M478-240q21 0 35.5-14.5T528-290q0-21-14.5-35.5T478-340q-21 0-35.5 14.5T428-290q0 21 14.5 35.5T478-240Zm-36-154h74q0-33 7.5-52t42.5-52q26-26 41-49.5t15-56.5q0-56-41-86t-97-30q-57 0-92.5 30T342-618l66 26q5-18 22.5-39t53.5-21q32 0 48 17.5t16 38.5q0 20-12 37.5T506-526q-44 39-54 59t-10 73Zm38 314q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),Settings:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"})}),CrevronLeft:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M680-80q-50 0-85-35t-35-85q0-6 3-28L282-392q-16 15-37 23.5t-45 8.5q-50 0-85-35t-35-85q0-50 35-85t85-35q24 0 45 8.5t37 23.5l281-164q-2-7-2.5-13.5T560-760q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35q-24 0-45-8.5T598-672L317-508q2 7 2.5 13.5t.5 14.5q0 8-.5 14.5T317-452l281 164q16-15 37-23.5t45-8.5q50 0 85 35t35 85q0 50-35 85t-85 35Zm0-80q17 0 28.5-11.5T720-200q0-17-11.5-28.5T680-240q-17 0-28.5 11.5T640-200q0 17 11.5 28.5T680-160ZM200-440q17 0 28.5-11.5T240-480q0-17-11.5-28.5T200-520q-17 0-28.5 11.5T160-480q0 17 11.5 28.5T200-440Zm480-280q17 0 28.5-11.5T720-760q0-17-11.5-28.5T680-800q-17 0-28.5 11.5T640-760q0 17 11.5 28.5T680-720Zm0 520ZM200-480Zm480-280Z"})}),ChevronDown:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z"})}),Close:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})}),UserPerson:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z"})}),Logout:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"})}),ArrowUpDown:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"})}),Filter:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})}),Stars:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"m668-380 152-130 120 10-176 153 52 227-102-62-46-198Zm-94-292-42-98 46-110 92 217-96-9ZM294-287l126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM173-120l65-281L20-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-340Z"})}),MoreVert:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"})}),Add:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"})}),Upload:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"})}),Copy:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z"})}),FaLock:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z"})}),AccountCircle:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0 360Z"})}),UserAdd:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M720-400v-120H600v-80h120v-120h80v120h120v80H800v120h-80Zm-360-80q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm80-80h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0-80Zm0 400Z"})}),AttachFile:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M720-330q0 104-73 177T470-80q-104 0-177-73t-73-177v-370q0-75 52.5-127.5T400-880q75 0 127.5 52.5T580-700v350q0 46-32 78t-78 32q-46 0-78-32t-32-78v-370h80v370q0 13 8.5 21.5T470-320q13 0 21.5-8.5T500-350v-350q-1-42-29.5-71T400-800q-42 0-71 29t-29 71v370q-1 71 49 120.5T470-160q70 0 119-49.5T640-330v-390h80v390Z"})}),HistoryActivity:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M480-80q-155 0-269-103T82-440h81q15 121 105.5 200.5T480-160q134 0 227-93t93-227q0-134-93-227t-227-93q-86 0-159.5 42.5T204-640h116v80H88q29-140 139-230t253-90q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm112-232L440-464v-216h80v184l128 128-56 56Z"})}),MessageSquare:({size:a,className:t,...e})=>d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,viewBox:"0 -960 960 960",width:a,height:a,fill:"currentColor",className:t,children:d.jsx("path",{d:"M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"})}),CloseNavBarDesktop:({size:a,className:t,...e})=>d.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,className:t,children:[d.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:a,height:a,children:d.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),d.jsx("g",{mask:"url(#mask0_977_20941)",children:d.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]})};function Tn({profileImage:a,size:t,sizeImage:e=5.5}){const[r,i]=V.useState(!1);return d.jsx(d.Fragment,{children:a&&!r?d.jsx("img",{onError:()=>{i(!0)},src:a,className:`w-${e} h-${e} rounded-full`}):d.jsx(hn,{size:t,name:a,variant:"beam",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]})})}const Ue=({user:a,isExpanded:t,onClick:e,onProfileClick:r,showOptions:i=!1,onClickLogout:n,sessions:s,handleTokenLogin:o})=>{const l=s?.filter(u=>u.email!==a?.email);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"profile-container flex my-2 rounded-md text-white-prometeo overflow-hidden flex-shrink-0 ",children:[d.jsxs(R.motion.button,{onClick:r,className:L("flex flex-1 gap-1 rounded-l-md cursor-pointer justify-center relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",t&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[d.jsx("div",{className:"profile-image-wrapper flex-shrink-0 h-10 w-10 flex items-center justify-center relative z-10",children:d.jsx(Tn,{profileImage:a?.profileImage||"",size:36})}),d.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[d.jsx("p",{className:L("profile-name font-semibold leading-tight mb-0 text-left",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.name?.length&&a?.name?.length>20?a?.name?.slice(0,10)+"..":a?.name}),d.jsx("div",{className:"flex items-center gap-1 mt-1",children:a&&a.company_id?d.jsxs(d.Fragment,{children:[d.jsx("p",{className:L("profile-options truncate text-xs mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.company_id?.name?.length&&a?.company_id?.name?.length>20?a?.company_id?.name?.slice(0,10)+"..":a?.company_id?.name}),d.jsx("p",{className:L("profile-options truncate font-bold mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),d.jsx("p",{className:L("profile-options truncate text-xs mt-0",t?"text-primary-default-default":"text-neutral-default-default"),children:a?.area?.name||a?.company_id?.name||"Sin asignar"})]}):d.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),i&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),d.jsx(R.motion.button,{onClick:e,className:`flex items-center justify-center p-3 rounded-r-md cursor-pointer relative overflow-hidden focus:outline-none min-w-[50px] \r
23
- hover:bg-neutral-medium-selected button-content-chevron`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:t?"Ocultar opciones":"Mostrar opciones","aria-label":t?"Ocultar opciones":"Mostrar opciones",children:d.jsx(R.motion.div,{animate:{rotate:t?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(R.motion.div,{transition:{duration:.2},children:d.jsx(Lt.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})]})]}),d.jsx(R.AnimatePresence,{mode:"wait",children:t&&d.jsxs(R.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden",children:[d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),l&&l?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(R.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(R.motion.div,{className:"mt-4 overflow-hidden",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(Lr,{sessions:l,handleTokenLogin:o})}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(R.motion.button,{onClick:n,className:"flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(Lt.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})]})};function Lr({sessions:a,handleTokenLogin:t}){return d.jsx("div",{className:"profile-options-container",children:a?.map(e=>d.jsx("button",{onClick:()=>t?.(e.token),children:d.jsx(Ue,{user:e},e._id)},e._id))})}const Zr=({sessionsShow:a,handleTokenLogin:t,onClickLogout:e,menuRef:r,onProfileClick:i})=>d.jsx("div",{ref:r,className:"flex bg-neutral-default-default gap-4 absolute bottom-10 left-30 border-1 border-neutral-strong-default h-72 w-60 rounded-md px-2",children:d.jsx(R.AnimatePresence,{mode:"wait",children:d.jsxs(R.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden flex flex-col justify-between items-center w-full",children:[d.jsxs(R.motion.button,{onClick:i,className:"flex h-12 w-full px-2 gap-1 rounded-md cursor-pointer mt-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(Lt.UserPerson,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Ver perfil"})]}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}}}),a&&a?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(R.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(R.motion.div,{className:"mt-4 overflow-hidden",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(Lr,{sessions:a,handleTokenLogin:t})}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(R.motion.button,{onClick:e,className:"flex h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(Lt.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})}),He=({notificationsCount:a})=>d.jsx(d.Fragment,{children:a>0&&d.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center",children:d.jsx("span",{className:"text-xs text-neutral-default-default font-medium",children:a})})}),Br=({isCollapsed:a,onToggle:t})=>d.jsx("div",{className:"p-4 flex justify-end",children:d.jsx("button",{onClick:t,title:a?"Expandir Navbar":"Contraer Navbar","aria-label":a?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:a?d.jsx(Lt.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(Lt.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),zr=({logoUrl:a,companyName:t})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:a,className:"h-2/3 rounded-full",alt:t??""})}),Ve=({links:a,isLinkActive:t,componentBadge:e,onClick:r,activeModal:i,onLinkClick:n})=>d.jsx("nav",{className:"flex flex-col gap-1",children:a?.map((s,o)=>{const l=t(s.path)||(s.relatedPaths?.some(u=>t(u))??!1);return s.isView&&s.viewAcess()&&d.jsxs(R.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:o*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:[s.path==="/notifications"&&d.jsx("button",{onClick:r,className:L("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",i?"text-primary-default-default":"text-neutral-default-default"),children:d.jsxs(R.motion.div,{className:"nav-content-wrapper flex items-center gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:i?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof s.icon=="function"?s.icon({size:24,className:L("nav-icon transition-colors duration-250 ease-out",i?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):"text"}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:s.title}),e&&s.count&&s.count>0&&e(s.count)]})}),s.path!=="/notifications"&&d.jsxs("button",{onClick:()=>{r?.(),n?.(s.path)},className:L("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",l?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(R.AnimatePresence,{mode:"wait",children:l&&d.jsx(R.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(R.motion.div,{className:"nav-content-wrapper flex items-center gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:l?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof s.icon=="function"?s.icon({size:24,className:L("nav-icon transition-colors duration-250 ease-out",l?"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&&s.count&&s.count>0&&e(s.count)]})]})]},o)})}),Ur=a=>{const t=V.useRef(null);return{isCollapsed:a,navbarRef:t}};function Ot(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Hr(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,a.__proto__=t}/*!
23
+ hover:bg-neutral-medium-selected button-content-chevron`,whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:t?"Ocultar opciones":"Mostrar opciones","aria-label":t?"Ocultar opciones":"Mostrar opciones",children:d.jsx(R.motion.div,{animate:{rotate:t?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:d.jsx(R.motion.div,{transition:{duration:.2},children:d.jsx(Lt.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})]})]}),d.jsx(R.AnimatePresence,{mode:"wait",children:t&&d.jsxs(R.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden",children:[d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),l&&l?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(R.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(R.motion.div,{className:"mt-4 overflow-hidden",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(Lr,{sessions:l,handleTokenLogin:o})}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(R.motion.button,{onClick:n,className:"flex flex-1 h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(Lt.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})]})};function Lr({sessions:a,handleTokenLogin:t}){return d.jsx("div",{className:"profile-options-container",children:a?.map(e=>d.jsx("button",{onClick:()=>t?.(e.token),children:d.jsx(Ue,{user:e},e._id)},e._id))})}const Zr=({sessionsShow:a,handleTokenLogin:t,onClickLogout:e,menuRef:r,onProfileClick:i})=>d.jsx("div",{ref:r,className:"flex bg-neutral-default-default gap-4 absolute bottom-10 left-30 border-1 border-neutral-strong-default h-72 w-60 rounded-md px-2",children:d.jsx(R.AnimatePresence,{mode:"wait",children:d.jsxs(R.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{height:{duration:.6,ease:"easeOut"},opacity:{duration:.4,delay:.2}}},exit:{height:0,opacity:0,transition:{height:{duration:.8,delay:.2,ease:"easeIn"},opacity:{duration:.3,delay:.1}}},className:"overflow-hidden flex flex-col justify-between items-center w-full",children:[d.jsxs(R.motion.button,{onClick:i,className:"flex h-12 w-full px-2 gap-1 rounded-md cursor-pointer mt-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(Lt.UserPerson,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Ver perfil"})]}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.5,ease:"easeInOut"}}}),a&&a?.length>0&&d.jsxs(d.Fragment,{children:[d.jsx(R.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:d.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),d.jsx(R.motion.div,{className:"mt-4 overflow-hidden",exit:{height:0,opacity:0,y:-10,scale:.98,transition:{height:{duration:.5,delay:.2},opacity:{duration:.3,delay:.3},y:{duration:.3,delay:.3},scale:{duration:.3,delay:.3},ease:"easeInOut"}},children:d.jsx(Lr,{sessions:a,handleTokenLogin:t})}),d.jsx(R.motion.div,{className:"flex justify-center items-center w-full mt-4",exit:{opacity:0,scaleX:0,height:0,transition:{duration:.4,delay:.15,ease:"easeInOut"}},children:d.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),d.jsxs(R.motion.button,{onClick:e,className:"flex h-12 w-full gap-1 rounded-md cursor-pointer mt-4 mb-4 px-2 items-center overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile",exit:{opacity:0,y:-8,scale:.96,transition:{duration:.5,delay:0,ease:"easeInOut"}},whileHover:{opacity:1,scale:[1,1.02,1],transition:{duration:.2}},whileTap:{scale:.98},children:[d.jsx(Lt.Logout,{size:24,className:"text-neutral-default-default"}),d.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})})}),He=({notificationsCount:a})=>d.jsx(d.Fragment,{children:a>0&&d.jsx("div",{className:"w-5 h-5 bg-primary rounded-full flex items-center justify-center",children:d.jsx("span",{className:"text-xs text-neutral-default-default font-medium",children:a})})}),Br=({isCollapsed:a,onToggle:t})=>d.jsx("div",{className:"p-4 flex justify-end",children:d.jsx("button",{onClick:t,title:a?"Expandir Navbar":"Contraer Navbar","aria-label":a?"Expandir Navbar":"Contraer Navbar",className:"cursor-pointer text-neutral-default-default hover:text-primary-default transition-colors duration-300",children:a?d.jsx(Lt.CloseNavBarDesktop,{size:24,className:"rotate-180 transition-transform duration-300"}):d.jsx(Lt.CloseNavBarDesktop,{size:24,className:"rotate-0 transition-transform duration-300"})})}),zr=({logoUrl:a,companyName:t})=>d.jsx("div",{className:"w-full flex justify-center items-center p-2 h-20",children:d.jsx("img",{src:a,className:"h-2/3 rounded-full",alt:t??""})}),Ve=({links:a,isLinkActive:t,componentBadge:e,onClick:r,activeModal:i,onLinkClick:n})=>d.jsx("nav",{className:"flex flex-col gap-1",children:a?.map((s,o)=>{const l=t(s.path)||(s.relatedPaths?.some(u=>t(u))??!1);return s.isView&&s.viewAccess()&&d.jsxs(R.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4,delay:o*.03,ease:"easeOut"},className:"relative flex justify-center w-full items-center px-3",children:[s.path==="/notifications"&&d.jsx("button",{onClick:r,className:L("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",i?"text-primary-default-default":"text-neutral-default-default"),children:d.jsxs(R.motion.div,{className:"nav-content-wrapper flex items-center gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:i?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof s.icon=="function"?s.icon({size:24,className:L("nav-icon transition-colors duration-250 ease-out",i?"text-primary-default-default":"text-neutral-default-default group-hover:text-white-prometeo")}):"text"}),d.jsx("span",{className:"nav-label whitespace-nowrap text-sm font-semibold ",children:s.title}),e&&s.count&&s.count>0&&e(s.count)]})}),s.path!=="/notifications"&&d.jsxs("button",{onClick:()=>{r?.(),n?.(s.path)},className:L("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",l?"text-primary-default-default bg-neutral-medium-selected":"text-neutral-default-default"),children:[d.jsx(R.AnimatePresence,{mode:"wait",children:l&&d.jsx(R.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(R.motion.div,{className:"nav-content-wrapper flex items-center gap-3 px-3 relative z-10 w-full",animate:{x:0},transition:{duration:.25,ease:"easeOut"},children:[d.jsx(R.motion.div,{className:"nav-icon-wrapper flex items-center justify-center flex-shrink-0",animate:{scale:l?1.05:1},transition:{duration:.25,ease:"easeOut"},children:typeof s.icon=="function"?s.icon({size:24,className:L("nav-icon transition-colors duration-250 ease-out",l?"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&&s.count&&s.count>0&&e(s.count)]})]})]},o)})}),Ur=a=>{const t=V.useRef(null);return{isCollapsed:a,navbarRef:t}};function Ot(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function Hr(a,t){a.prototype=Object.create(t.prototype),a.prototype.constructor=a,a.__proto__=t}/*!
24
24
  * GSAP 3.13.0
25
25
  * https://gsap.com
26
26
  *
@@ -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"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "1.0.5",
4
+ "version": "1.0.7",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",