prometeo-design-system 1.4.5 → 1.4.6

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.
@@ -1,5 +1,6 @@
1
- export default function AvatarProfile({ profileImage, sizeImage, fallbackText }: {
1
+ export default function AvatarProfile({ profileImage, sizeImage, sizeFallback, fallbackText }: {
2
2
  profileImage?: string;
3
3
  sizeImage?: string;
4
+ sizeFallback?: string;
4
5
  fallbackText?: string;
5
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -294,14 +294,15 @@ var p = ec();
294
294
  function tc({
295
295
  profileImage: n,
296
296
  sizeImage: e = "w-36 h-36",
297
- fallbackText: t = "Matias tejerina"
297
+ sizeFallback: t = "w-36 h-36",
298
+ fallbackText: r = "Matias tejerina"
298
299
  }) {
299
- const [r, i] = De(!1), a = n && n.trim() !== "" && !r, o = (s) => s.split(" ").map((l) => l.charAt(0)).join("").toUpperCase().slice(0, 2);
300
- return /* @__PURE__ */ p.jsx(p.Fragment, { children: a ? /* @__PURE__ */ p.jsx(
300
+ const [i, a] = De(!1), o = n && n.trim() !== "" && !i, s = (l) => l.split(" ").map((c) => c.charAt(0)).join("").toUpperCase().slice(0, 2);
301
+ return /* @__PURE__ */ p.jsx(p.Fragment, { children: o ? /* @__PURE__ */ p.jsx(
301
302
  "img",
302
303
  {
303
304
  onError: () => {
304
- i(!0);
305
+ a(!0);
305
306
  },
306
307
  src: n,
307
308
  className: `rounded-full object-cover ${e}`,
@@ -310,13 +311,13 @@ function tc({
310
311
  ) : /* @__PURE__ */ p.jsx(
311
312
  oe.div,
312
313
  {
313
- className: "w-full h-full flex items-center justify-center ",
314
+ className: ` flex items-center justify-center rounded-full ${t}`,
314
315
  style: { backgroundColor: "#8b5cf6" },
315
316
  initial: { opacity: 0, scale: 1.1 },
316
317
  animate: { opacity: 1, scale: 1 },
317
318
  exit: { opacity: 0, scale: 0.9 },
318
319
  transition: { duration: 0.3 },
319
- children: /* @__PURE__ */ p.jsx("span", { className: " text-white font-semibold text-2xl", children: o(t) })
320
+ children: /* @__PURE__ */ p.jsx("span", { className: " text-white font-semibold text-2xl", children: s(r) })
320
321
  },
321
322
  "initials"
322
323
  ) });
@@ -19,7 +19,7 @@
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,L,W,ee,W),ne[W+L]=!0)}if(W=null,N!==void 0&&(t(N),W=""+N),o(P)&&(t(P.key),W=""+P.key),"key"in P){N={};for(var Q in P)Q!=="key"&&(N[Q]=P[Q])}else N=P;return W&&s(N,typeof b=="function"?b.displayName||b.name||"Unknown":b),c(b,W,A,M,i(),N,z,Z)}function d(b){typeof b=="object"&&b!==null&&b.$$typeof===h&&b._store&&(b._store.validated=1)}var m=E,h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),H=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,D=Array.isArray,$=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(b){return b()}};var U,V={},X=m.react_stack_bottom_frame.bind(m,a)(),te=$(r(a)),ne={};wn.Fragment=f,wn.jsx=function(b,P,N,L,M){var A=1e4>H.recentlyCreatedOwnerStacks++;return u(b,P,N,!1,L,M,A?Error("react-stack-top-frame"):X,A?$(r(b)):te)},wn.jsxs=function(b,P,N,L,M){var A=1e4>H.recentlyCreatedOwnerStacks++;return u(b,P,N,!0,L,M,A?Error("react-stack-top-frame"):X,A?$(r(b)):te)}})()),wn}var Ca;function nc(){return Ca||(Ca=1,process.env.NODE_ENV==="production"?Jn.exports=ec():Jn.exports=tc()),Jn.exports}var p=nc();function ja({profileImage:n,sizeImage:e="w-36 h-36",fallbackText:t="Matias tejerina"}){const[r,i]=E.useState(!1),a=n&&n.trim()!==""&&!r,o=s=>s.split(" ").map(l=>l.charAt(0)).join("").toUpperCase().slice(0,2);return p.jsx(p.Fragment,{children:a?p.jsx("img",{onError:()=>{i(!0)},src:n,className:`rounded-full object-cover ${e}`,alt:"Profile"}):p.jsx(re.motion.div,{className:"w-full h-full flex items-center justify-center ",style:{backgroundColor:"#8b5cf6"},initial:{opacity:0,scale:1.1},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.3},children:p.jsx("span",{className:" text-white font-semibold text-2xl",children:o(t)})},"initials")})}function q(...n){return Kl.twMerge(ya.clsx(n))}const Oa=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ka=ya.clsx,Ur=(n,e)=>t=>{var r;if(e?.variants==null)return ka(n,t?.class,t?.className);const{variants:i,defaultVariants:a}=e,o=Object.keys(i).map(c=>{const u=t?.[c],d=a?.[c];if(u===null)return null;const m=Oa(u)||Oa(d);return i[c][m]}),s=t&&Object.entries(t).reduce((c,u)=>{let[d,m]=u;return m===void 0||(c[d]=m),c},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:m,...h}=u;return Object.entries(h).every(g=>{let[f,v]=g;return Array.isArray(v)?v.includes({...a,...s}[f]):{...a,...s}[f]===v})?[...c,d,m]:c},[]);return ka(n,o,l,t?.class,t?.className)},rc=Ur("flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",{variants:{variant:{filled:"",outline:"bg-transparent border-1",text:"bg-transparent border-0"},color:{primary:"",secondary:""},size:{small:"h-[40px] w-[123px] w-fit px-2 py-3 text-sm",medium:"h-[48px] w-[134px] w-fit px-2 py-3 text-base",large:"h-[56px] w-[145px] w-fit px-4 py-3 text-base"},disabled:{true:"opacity-50 cursor-not-allowed",false:""},loading:{true:"cursor-wait",false:""},customSize:{true:"px-4 py-2",false:""}},compoundVariants:[{variant:"filled",color:"primary",class:"bg-primary-default-default text-neutral-strong-default border-0 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"},{variant:"filled",color:"secondary",class:"bg-neutral-strong-medium-default 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"},{variant:"outline",color:"primary",class:"text-primary-medium-default border-primary-medium-default 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"},{variant:"outline",color:"secondary",class:"text-neutral-strong-default border-neutral-strong-default 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"},{variant:"text",color:"primary",class:"text-primary-medium-default 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"},{variant:"text",color:"secondary",class:"text-neutral-strong-default 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"}],defaultVariants:{variant:"filled",color:"primary",size:"medium",disabled:!1,loading:!1,customSize:!1}});function ic({label:n="Selene",onClick:e,icon:t,contentClassName:r,loadingText:i="Cargando...",animate:a=!0,animateIcon:o=!0,isLoading:s=!1,disabled:l=!1,type:c="button",variant:u="filled",color:d="primary",size:m="medium",children:h,Spinner:g,className:f,...v}){const x=re.useAnimationControls(),_=()=>{!a||l||s||!o||x.start({rotate:90})},T=()=>{!a||l||s||!o||x.start({rotate:0})},w=q(rc({variant:u,color:d,size:m,disabled:l||s,loading:s}),f);return p.jsx(re.motion.button,{onClick:e,className:w,whileHover:a&&!l&&!s?{scale:1.05}:{},whileTap:a&&!l&&!s?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:_,onHoverEnd:T,disabled:l||s,type:c,...v,children:s?p.jsxs("div",{className:"flex items-center gap-2",children:[g,m!=="small"&&p.jsx("span",{children:i})]}):h||p.jsxs("span",{className:q("flex items-center gap-2",r),children:[t&&p.jsx(re.motion.div,{animate:o?x:void 0,transition:{type:"spring",stiffness:400,damping:17},children:t}),n&&p.jsx("span",{children:n})]})})}function Pa({sessions:n,handleTokenLogin:e}){return p.jsx("div",{className:"profile-options-container w-full ",children:n?.map(t=>p.jsx("button",{className:"w-full ",onClick:()=>e?.(t.token),children:p.jsx(Qn,{children:p.jsx(Qn.Content,{onClick:()=>{console.log("hola")},isExpanded:!1,name:t.name,nameArea:t?.area?.name,nameCompany:t.company_id.name,cardProfile:p.jsx(Qn.Image,{isExpanded:!1})})})},t._id))})}const Qn=Object.assign(({children:n})=>p.jsx("div",{className:"profile-container flex rounded-md text-white-prometeo overflow-hidden flex-shrink-0 w-full min-w-0 ",children:n}),{Menu:({isExpanded:n,sessions:e,onClickLogout:t,handleTokenLogin:r})=>p.jsx(re.AnimatePresence,{mode:"wait",children:n&&p.jsxs(re.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:[p.jsx(re.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:p.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),e!==null&&p.jsxs(p.Fragment,{children:[p.jsx(re.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:p.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),p.jsx(re.motion.div,{className:"mt-4 overflow-hidden w-full ",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:p.jsx(Pa,{sessions:e,handleTokenLogin:r})}),p.jsx(re.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:p.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),p.jsxs(re.motion.button,{onClick:t,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:[p.jsx(je.Logout,{size:24,className:"text-neutral-default-default"}),p.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})}),Image:({imageUrl:n})=>p.jsx("div",{className:"flex items-center justify-center profile-image-wrapper",children:p.jsx(ja,{profileImage:n,sizeImage:"w-36 h-36"})}),Content:({isExpanded:n,name:e,nameCompany:t,nameArea:r,cardProfile:i,onClick:a})=>p.jsxs(re.motion.button,{onClick:a,className:q("flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile h-12",n&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[i,p.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[p.jsx("p",{className:q("profile-name font-semibold leading-tight mb-0 text-left",n?"text-primary-default-default":"text-neutral-default-default"),children:e?.length&&e?.length>20?e?.slice(0,10)+"..":e}),p.jsx("div",{className:"flex items-center gap-1 mt-0 ",children:t&&t?p.jsxs(p.Fragment,{children:[p.jsx("p",{className:q("profile-options truncate text-xs mt-0",n?"text-primary-default-default":"text-neutral-default-default"),children:t.length>20?t?.slice(0,10)+"..":t}),p.jsx("p",{className:q("profile-options truncate font-bold mt-0",n?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),p.jsx("p",{className:q("profile-options truncate text-xs mt-0",n?"text-primary-default-default":"text-neutral-default-default"),children:r||"Sin asignar"})]}):p.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),Separator:()=>p.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),Options:({isExpanded:n,onClick:e})=>p.jsx(re.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] hover:bg-neutral-medium-selected button-content-chevron",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:n?"Ocultar opciones":"Mostrar opciones","aria-label":n?"Ocultar opciones":"Mostrar opciones",children:p.jsx(re.motion.div,{animate:{rotate:n?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:p.jsx(re.motion.div,{transition:{duration:.2},children:p.jsx(je.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})}),je={Ticket:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,className:e,children:[p.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:n,height:n,children:p.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),p.jsx("g",{mask:"url(#mask0_977_20941)",children:p.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]}),EyeVisibility:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,...t,className:e,fill:"currentColor",children:p.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})}),EyeVisibilityOff:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,...t,className:e,fill:"currentColor",children:p.jsx("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})}),Check:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,...t,className:e,viewBox:"0 -960 960 960",fill:"currentColor",children:p.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}),Info:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,...t,className:e,fill:"currentColor",children:p.jsx("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-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"})}),Error:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,...t,className:e,fill:"currentColor",viewBox:"0 -960 960 960",children:p.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-280Zm-40-160h80v-240h-80v240Zm40 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-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),TicketFilled:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,...t,children:p.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-160Z"})}),UploadCloud:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 -960 960 960",width:n,fill:"currentColor",...t,className:e,children:p.jsx("path",{d:"M260-160q-91 0-155.5-63T40-377q0-78 47-139t123-78q25-92 100-149t170-57q117 0 198.5 81.5T760-520q69 8 114.5 59.5T920-340q0 75-52.5 127.5T740-160H520q-33 0-56.5-23.5T440-240v-206l-64 62-56-56 160-160 160 160-56 56-64-62v206h220q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-80q0-83-58.5-141.5T480-720q-83 0-141.5 58.5T280-520h-20q-58 0-99 41t-41 99q0 58 41 99t99 41h100v80H260Zm220-280Z"})})},ac=({label:n,className:e,containerClassName:t,id:r,disabled:i=!1,...a})=>{const[o,s]=Kn.useField({...a,type:"checkbox"}),[l,c]=E.useState(!1),u=s.touched&&s.error;return p.jsxs("div",{className:q("relative w-full",t),children:[p.jsxs("label",{htmlFor:r||a.name,className:q("flex items-center gap-3 cursor-pointer transition-all duration-200 ease-in-out",i?"cursor-not-allowed opacity-60":"hover:opacity-80",e),children:[p.jsxs("div",{className:"relative",children:[p.jsx("input",{id:r||a.name,type:"checkbox",name:o.name,checked:o.value||!1,onChange:o.onChange,onFocus:()=>{c(!0),a.onFocus?.()},onBlur:d=>{c(!1),a.onBlur?.(),o.onBlur(d)},disabled:i,className:q("sr-only")}),p.jsx("div",{className:q("w-5 h-5 rounded border-2 transition-all duration-200 ease-in-out flex items-center justify-center",o.value?"bg-primary-default-default border-primary-default-default":l?"border-primary-default-default bg-transparent":u?"border-error-default-default bg-transparent":"border-neutral-default-default bg-transparent hover:border-neutral-strong-default",i&&"bg-neutral-medium-default border-neutral-medium-default"),children:o.value&&p.jsx(je.Check,{size:14,className:q("text-white transition-all duration-200 ease-in-out",i&&"text-neutral-strong-default")})})]}),p.jsx("span",{className:`${l}`,children:" "}),p.jsx("span",{className:q("text-sm transition-colors duration-200 ease-in-out select-none",u&&"text-error-default-default",i&&"text-neutral-medium-default"),children:n})]}),u&&p.jsx(Kn.ErrorMessage,{name:a.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},oc=E.forwardRef(({children:n,onClose:e,className:t},r)=>{const[i,a]=E.useState(!1),o=()=>a(!0),s=()=>{a(!1),e?.()};return E.useImperativeHandle(r,()=>({open:o,close:s,isOpen:i})),p.jsx(p.Fragment,{children:i&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-[1.5px]",onClick:s,children:p.jsx("div",{className:q("bg-neutral-default-default w-3/4 h-3/4 xl:w-3/4 xl:h-10/12 rounded-lg shadow-lg border-neutral-strong-default border relative p-6",t),onClick:l=>l.stopPropagation(),children:n})})})}),sc=Object.assign(oc,{Content:({children:n,className:e})=>p.jsx("div",{className:e,children:p.jsx("div",{className:q("flex flex-col gap-4"),children:n})}),Header:({children:n,className:e})=>p.jsx("div",{className:e,children:n}),Footer:({children:n,className:e})=>p.jsx("div",{className:e,children:n}),Title:({children:n,className:e})=>p.jsx("h1",{className:e,children:n})});function wt(n,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(n?.(i),t===!1||!i.defaultPrevented)return e?.(i)}}function Da(n,e){if(typeof n=="function")return n(e);n!=null&&(n.current=e)}function Aa(...n){return e=>{let t=!1;const r=n.map(i=>{const a=Da(i,e);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():Da(n[i],null)}}}}function Rt(...n){return S.useCallback(Aa(...n),n)}function lc(n,e){const t=S.createContext(e),r=a=>{const{children:o,...s}=a,l=S.useMemo(()=>s,Object.values(s));return p.jsx(t.Provider,{value:l,children:o})};r.displayName=n+"Provider";function i(a){const o=S.useContext(t);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${a}\` must be used within \`${n}\``)}return[r,i]}function cc(n,e=[]){let t=[];function r(a,o){const s=S.createContext(o),l=t.length;t=[...t,o];const c=d=>{const{scope:m,children:h,...g}=d,f=m?.[n]?.[l]||s,v=S.useMemo(()=>g,Object.values(g));return p.jsx(f.Provider,{value:v,children:h})};c.displayName=a+"Provider";function u(d,m){const h=m?.[n]?.[l]||s,g=S.useContext(h);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=t.map(o=>S.createContext(o));return function(s){const l=s?.[n]||a;return S.useMemo(()=>({[`__scope${n}`]:{...s,[n]:l}}),[s,l])}};return i.scopeName=n,[r,uc(i,...e)]}function uc(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const r=n.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return S.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}var _n=globalThis?.document?S.useLayoutEffect:()=>{},dc=S[" useId ".trim().toString()]||(()=>{}),pc=0;function Zr(n){const[e,t]=S.useState(dc());return _n(()=>{t(r=>r??String(pc++))},[n]),n||(e?`radix-${e}`:"")}var fc=S[" useInsertionEffect ".trim().toString()]||_n;function mc({prop:n,defaultProp:e,onChange:t=()=>{},caller:r}){const[i,a,o]=hc({defaultProp:e,onChange:t}),s=n!==void 0,l=s?n:i;{const u=S.useRef(n!==void 0);S.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=S.useCallback(u=>{if(s){const d=vc(u)?u(n):u;d!==n&&o.current?.(d)}else a(u)},[s,n,a,o]);return[l,c]}function hc({defaultProp:n,onChange:e}){const[t,r]=S.useState(n),i=S.useRef(t),a=S.useRef(e);return fc(()=>{a.current=e},[e]),S.useEffect(()=>{i.current!==t&&(a.current?.(t),i.current=t)},[t,i]),[t,r,a]}function vc(n){return typeof n=="function"}function Na(n){const e=gc(n),t=S.forwardRef((r,i)=>{const{children:a,...o}=r,s=S.Children.toArray(a),l=s.find(yc);if(l){const c=l.props.children,u=s.map(d=>d===l?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:d);return p.jsx(e,{...o,ref:i,children:S.isValidElement(c)?S.cloneElement(c,void 0,u):null})}return p.jsx(e,{...o,ref:i,children:a})});return t.displayName=`${n}.Slot`,t}function gc(n){const e=S.forwardRef((t,r)=>{const{children:i,...a}=t;if(S.isValidElement(i)){const o=wc(i),s=bc(a,i.props);return i.type!==S.Fragment&&(s.ref=r?Aa(r,o):o),S.cloneElement(i,s)}return S.Children.count(i)>1?S.Children.only(null):null});return e.displayName=`${n}.SlotClone`,e}var xc=Symbol("radix.slottable");function yc(n){return S.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===xc}function bc(n,e){const t={...e};for(const r in e){const i=n[r],a=e[r];/^on[A-Z]/.test(r)?i&&a?t[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(t[r]=i):r==="style"?t[r]={...i,...a}:r==="className"&&(t[r]=[i,a].filter(Boolean).join(" "))}return{...n,...t}}function wc(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}var _c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pt=_c.reduce((n,e)=>{const t=Na(`Primitive.${e}`),r=S.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${e}`,{...n,[e]:r}},{});function Tc(n,e){n&&Ql.flushSync(()=>n.dispatchEvent(e))}function Tn(n){const e=S.useRef(n);return S.useEffect(()=>{e.current=n}),S.useMemo(()=>(...t)=>e.current?.(...t),[])}function Ec(n,e=globalThis?.document){const t=Tn(n);S.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[t,e])}var Sc="DismissableLayer",Vr="dismissableLayer.update",Cc="dismissableLayer.pointerDownOutside",jc="dismissableLayer.focusOutside",qa,Ra=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ma=S.forwardRef((n,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=n,c=S.useContext(Ra),[u,d]=S.useState(null),m=u?.ownerDocument??globalThis?.document,[,h]=S.useState({}),g=Rt(e,C=>d(C)),f=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(v),_=u?f.indexOf(u):-1,T=c.layersWithOutsidePointerEventsDisabled.size>0,w=_>=x,y=Pc(C=>{const O=C.target,j=[...c.branches].some(F=>F.contains(O));!w||j||(i?.(C),o?.(C),C.defaultPrevented||s?.())},m),k=Dc(C=>{const O=C.target;[...c.branches].some(F=>F.contains(O))||(a?.(C),o?.(C),C.defaultPrevented||s?.())},m);return Ec(C=>{_===c.layers.size-1&&(r?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},m),S.useEffect(()=>{if(u)return t&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(qa=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Ia(),()=>{t&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=qa)}},[u,m,t,c]),S.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Ia())},[u,c]),S.useEffect(()=>{const C=()=>h({});return document.addEventListener(Vr,C),()=>document.removeEventListener(Vr,C)},[]),p.jsx(pt.div,{...l,ref:g,style:{pointerEvents:T?w?"auto":"none":void 0,...n.style},onFocusCapture:wt(n.onFocusCapture,k.onFocusCapture),onBlurCapture:wt(n.onBlurCapture,k.onBlurCapture),onPointerDownCapture:wt(n.onPointerDownCapture,y.onPointerDownCapture)})});Ma.displayName=Sc;var Oc="DismissableLayerBranch",kc=S.forwardRef((n,e)=>{const t=S.useContext(Ra),r=S.useRef(null),i=Rt(e,r);return S.useEffect(()=>{const a=r.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),p.jsx(pt.div,{...n,ref:i})});kc.displayName=Oc;function Pc(n,e=globalThis?.document){const t=Tn(n),r=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){Fa(Cc,t,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",a),e.removeEventListener("click",i.current)}},[e,t]),{onPointerDownCapture:()=>r.current=!0}}function Dc(n,e=globalThis?.document){const t=Tn(n),r=S.useRef(!1);return S.useEffect(()=>{const i=a=>{a.target&&!r.current&&Fa(jc,t,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ia(){const n=new CustomEvent(Vr);document.dispatchEvent(n)}function Fa(n,e,t,{discrete:r}){const i=t.originalEvent.target,a=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:t});e&&i.addEventListener(n,e,{once:!0}),r?Tc(i,a):i.dispatchEvent(a)}var Yr="focusScope.autoFocusOnMount",Xr="focusScope.autoFocusOnUnmount",La={bubbles:!1,cancelable:!0},Ac="FocusScope",za=S.forwardRef((n,e)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=n,[s,l]=S.useState(null),c=Tn(i),u=Tn(a),d=S.useRef(null),m=Rt(e,f=>l(f)),h=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let f=function(T){if(h.paused||!s)return;const w=T.target;s.contains(w)?d.current=w:_t(d.current,{select:!0})},v=function(T){if(h.paused||!s)return;const w=T.relatedTarget;w!==null&&(s.contains(w)||_t(d.current,{select:!0}))},x=function(T){if(document.activeElement===document.body)for(const y of T)y.removedNodes.length>0&&_t(s)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const _=new MutationObserver(x);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),_.disconnect()}}},[r,s,h.paused]),S.useEffect(()=>{if(s){Ha.add(h);const f=document.activeElement;if(!s.contains(f)){const x=new CustomEvent(Yr,La);s.addEventListener(Yr,c),s.dispatchEvent(x),x.defaultPrevented||(Nc(Fc($a(s)),{select:!0}),document.activeElement===f&&_t(s))}return()=>{s.removeEventListener(Yr,c),setTimeout(()=>{const x=new CustomEvent(Xr,La);s.addEventListener(Xr,u),s.dispatchEvent(x),x.defaultPrevented||_t(f??document.body,{select:!0}),s.removeEventListener(Xr,u),Ha.remove(h)},0)}}},[s,c,u,h]);const g=S.useCallback(f=>{if(!t&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(v&&x){const _=f.currentTarget,[T,w]=qc(_);T&&w?!f.shiftKey&&x===w?(f.preventDefault(),t&&_t(T,{select:!0})):f.shiftKey&&x===T&&(f.preventDefault(),t&&_t(w,{select:!0})):x===_&&f.preventDefault()}},[t,r,h.paused]);return p.jsx(pt.div,{tabIndex:-1,...o,ref:m,onKeyDown:g})});za.displayName=Ac;function Nc(n,{select:e=!1}={}){const t=document.activeElement;for(const r of n)if(_t(r,{select:e}),document.activeElement!==t)return}function qc(n){const e=$a(n),t=Ba(e,n),r=Ba(e.reverse(),n);return[t,r]}function $a(n){const e=[],t=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function Ba(n,e){for(const t of n)if(!Rc(t,{upTo:e}))return t}function Rc(n,{upTo:e}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(e!==void 0&&n===e)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Mc(n){return n instanceof HTMLInputElement&&"select"in n}function _t(n,{select:e=!1}={}){if(n&&n.focus){const t=document.activeElement;n.focus({preventScroll:!0}),n!==t&&Mc(n)&&e&&n.select()}}var Ha=Ic();function Ic(){let n=[];return{add(e){const t=n[0];e!==t&&t?.pause(),n=Wa(n,e),n.unshift(e)},remove(e){n=Wa(n,e),n[0]?.resume()}}}function Wa(n,e){const t=[...n],r=t.indexOf(e);return r!==-1&&t.splice(r,1),t}function Fc(n){return n.filter(e=>e.tagName!=="A")}var Lc="Portal",Ua=S.forwardRef((n,e)=>{const{container:t,...r}=n,[i,a]=S.useState(!1);_n(()=>a(!0),[]);const o=t||i&&globalThis?.document?.body;return o?ba.createPortal(p.jsx(pt.div,{...r,ref:e}),o):null});Ua.displayName=Lc;function zc(n,e){return S.useReducer((t,r)=>e[t][r]??t,n)}var er=n=>{const{present:e,children:t}=n,r=$c(e),i=typeof t=="function"?t({present:r.isPresent}):S.Children.only(t),a=Rt(r.ref,Bc(i));return typeof t=="function"||r.isPresent?S.cloneElement(i,{ref:a}):null};er.displayName="Presence";function $c(n){const[e,t]=S.useState(),r=S.useRef(null),i=S.useRef(n),a=S.useRef("none"),o=n?"mounted":"unmounted",[s,l]=zc(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=tr(r.current);a.current=s==="mounted"?c:"none"},[s]),_n(()=>{const c=r.current,u=i.current;if(u!==n){const m=a.current,h=tr(c);n?l("MOUNT"):h==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&m!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,l]),_n(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,d=h=>{const f=tr(r.current).includes(CSS.escape(h.animationName));if(h.target===e&&f&&(l("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},m=h=>{h.target===e&&(a.current=tr(r.current))};return e.addEventListener("animationstart",m),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",m),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(c=>{r.current=c?getComputedStyle(c):null,t(c)},[])}}function tr(n){return n?.animationName||"none"}function Bc(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}var Gr=0;function Hc(){S.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Za()),document.body.insertAdjacentElement("beforeend",n[1]??Za()),Gr++,()=>{Gr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Gr--}},[])}function Za(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var it=function(){return it=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},it.apply(this,arguments)};function Va(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}function Mt(n,e,t,r){function i(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})}function Wc(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return n.concat(a||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var nr="right-scroll-bar-position",rr="width-before-scroll-bar",Uc="with-scroll-bars-hidden",Zc="--removed-body-scroll-bar-size";function Kr(n,e){return typeof n=="function"?n(e):n&&(n.current=e),n}function Vc(n,e){var t=E.useState(function(){return{value:n,callback:e,facade:{get current(){return t.value},set current(r){var i=t.value;i!==r&&(t.value=r,t.callback(r,i))}}}})[0];return t.callback=e,t.facade}var Yc=typeof window<"u"?S.useLayoutEffect:S.useEffect,Ya=new WeakMap;function Xc(n,e){var t=Vc(null,function(r){return n.forEach(function(i){return Kr(i,r)})});return Yc(function(){var r=Ya.get(t);if(r){var i=new Set(r),a=new Set(n),o=t.current;i.forEach(function(s){a.has(s)||Kr(s,null)}),a.forEach(function(s){i.has(s)||Kr(s,o)})}Ya.set(t,n)},[n]),t}function Gc(n){return n}function Kc(n,e){e===void 0&&(e=Gc);var t=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:n},useMedium:function(a){var o=e(a,r);return t.push(o),function(){t=t.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;t.length;){var o=t;t=[],o.forEach(a)}t={push:function(s){return a(s)},filter:function(){return t}}},assignMedium:function(a){r=!0;var o=[];if(t.length){var s=t;t=[],s.forEach(a),o=t}var l=function(){var u=o;o=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),t={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),t}}}};return i}function Jc(n){n===void 0&&(n={});var e=Kc(null);return e.options=it({async:!0,ssr:!1},n),e}var Xa=function(n){var e=n.sideCar,t=Va(n,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,it({},t))};Xa.isSideCarExport=!0;function Qc(n,e){return n.useMedium(e),Xa}var Ga=Jc(),Jr=function(){},ir=S.forwardRef(function(n,e){var t=S.useRef(null),r=S.useState({onScrollCapture:Jr,onWheelCapture:Jr,onTouchMoveCapture:Jr}),i=r[0],a=r[1],o=n.forwardProps,s=n.children,l=n.className,c=n.removeScrollBar,u=n.enabled,d=n.shards,m=n.sideCar,h=n.noRelative,g=n.noIsolation,f=n.inert,v=n.allowPinchZoom,x=n.as,_=x===void 0?"div":x,T=n.gapMode,w=Va(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=m,k=Xc([t,e]),C=it(it({},w),i);return S.createElement(S.Fragment,null,u&&S.createElement(y,{sideCar:Ga,removeScrollBar:c,shards:d,noRelative:h,noIsolation:g,inert:f,setCallbacks:a,allowPinchZoom:!!v,lockRef:t,gapMode:T}),o?S.cloneElement(S.Children.only(s),it(it({},C),{ref:k})):S.createElement(_,it({},C,{className:l,ref:k}),s))});ir.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ir.classNames={fullWidth:rr,zeroRight:nr};var eu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tu(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var e=eu();return e&&n.setAttribute("nonce",e),n}function nu(n,e){n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}function ru(n){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(n)}var iu=function(){var n=0,e=null;return{add:function(t){n==0&&(e=tu())&&(nu(e,t),ru(e)),n++},remove:function(){n--,!n&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},au=function(){var n=iu();return function(e,t){S.useEffect(function(){return n.add(e),function(){n.remove()}},[e&&t])}},Ka=function(){var n=au(),e=function(t){var r=t.styles,i=t.dynamic;return n(r,i),null};return e},ou={left:0,top:0,right:0,gap:0},Qr=function(n){return parseInt(n||"",10)||0},su=function(n){var e=window.getComputedStyle(document.body),t=e[n==="padding"?"paddingLeft":"marginLeft"],r=e[n==="padding"?"paddingTop":"marginTop"],i=e[n==="padding"?"paddingRight":"marginRight"];return[Qr(t),Qr(r),Qr(i)]},lu=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return ou;var e=su(n),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-t+e[2]-e[0])}},cu=Ka(),Qt="data-scroll-locked",uu=function(n,e,t,r){var i=n.left,a=n.top,o=n.right,s=n.gap;return t===void 0&&(t="margin"),`
22
+ <%s key={someKey} {...props} />`,L,W,ee,W),ne[W+L]=!0)}if(W=null,N!==void 0&&(t(N),W=""+N),o(P)&&(t(P.key),W=""+P.key),"key"in P){N={};for(var Q in P)Q!=="key"&&(N[Q]=P[Q])}else N=P;return W&&s(N,typeof b=="function"?b.displayName||b.name||"Unknown":b),c(b,W,A,M,i(),N,z,Z)}function d(b){typeof b=="object"&&b!==null&&b.$$typeof===h&&b._store&&(b._store.validated=1)}var m=E,h=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),H=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,D=Array.isArray,$=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(b){return b()}};var U,V={},X=m.react_stack_bottom_frame.bind(m,a)(),te=$(r(a)),ne={};wn.Fragment=f,wn.jsx=function(b,P,N,L,M){var A=1e4>H.recentlyCreatedOwnerStacks++;return u(b,P,N,!1,L,M,A?Error("react-stack-top-frame"):X,A?$(r(b)):te)},wn.jsxs=function(b,P,N,L,M){var A=1e4>H.recentlyCreatedOwnerStacks++;return u(b,P,N,!0,L,M,A?Error("react-stack-top-frame"):X,A?$(r(b)):te)}})()),wn}var Ca;function nc(){return Ca||(Ca=1,process.env.NODE_ENV==="production"?Jn.exports=ec():Jn.exports=tc()),Jn.exports}var p=nc();function ja({profileImage:n,sizeImage:e="w-36 h-36",sizeFallback:t="w-36 h-36",fallbackText:r="Matias tejerina"}){const[i,a]=E.useState(!1),o=n&&n.trim()!==""&&!i,s=l=>l.split(" ").map(c=>c.charAt(0)).join("").toUpperCase().slice(0,2);return p.jsx(p.Fragment,{children:o?p.jsx("img",{onError:()=>{a(!0)},src:n,className:`rounded-full object-cover ${e}`,alt:"Profile"}):p.jsx(re.motion.div,{className:` flex items-center justify-center rounded-full ${t}`,style:{backgroundColor:"#8b5cf6"},initial:{opacity:0,scale:1.1},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},transition:{duration:.3},children:p.jsx("span",{className:" text-white font-semibold text-2xl",children:s(r)})},"initials")})}function q(...n){return Kl.twMerge(ya.clsx(n))}const Oa=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ka=ya.clsx,Ur=(n,e)=>t=>{var r;if(e?.variants==null)return ka(n,t?.class,t?.className);const{variants:i,defaultVariants:a}=e,o=Object.keys(i).map(c=>{const u=t?.[c],d=a?.[c];if(u===null)return null;const m=Oa(u)||Oa(d);return i[c][m]}),s=t&&Object.entries(t).reduce((c,u)=>{let[d,m]=u;return m===void 0||(c[d]=m),c},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:m,...h}=u;return Object.entries(h).every(g=>{let[f,v]=g;return Array.isArray(v)?v.includes({...a,...s}[f]):{...a,...s}[f]===v})?[...c,d,m]:c},[]);return ka(n,o,l,t?.class,t?.className)},rc=Ur("flex items-center justify-center cursor-pointer focus:outline-none font-semibold rounded-md transition-colors",{variants:{variant:{filled:"",outline:"bg-transparent border-1",text:"bg-transparent border-0"},color:{primary:"",secondary:""},size:{small:"h-[40px] w-[123px] w-fit px-2 py-3 text-sm",medium:"h-[48px] w-[134px] w-fit px-2 py-3 text-base",large:"h-[56px] w-[145px] w-fit px-4 py-3 text-base"},disabled:{true:"opacity-50 cursor-not-allowed",false:""},loading:{true:"cursor-wait",false:""},customSize:{true:"px-4 py-2",false:""}},compoundVariants:[{variant:"filled",color:"primary",class:"bg-primary-default-default text-neutral-strong-default border-0 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"},{variant:"filled",color:"secondary",class:"bg-neutral-strong-medium-default 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"},{variant:"outline",color:"primary",class:"text-primary-medium-default border-primary-medium-default 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"},{variant:"outline",color:"secondary",class:"text-neutral-strong-default border-neutral-strong-default 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"},{variant:"text",color:"primary",class:"text-primary-medium-default 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"},{variant:"text",color:"secondary",class:"text-neutral-strong-default 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"}],defaultVariants:{variant:"filled",color:"primary",size:"medium",disabled:!1,loading:!1,customSize:!1}});function ic({label:n="Selene",onClick:e,icon:t,contentClassName:r,loadingText:i="Cargando...",animate:a=!0,animateIcon:o=!0,isLoading:s=!1,disabled:l=!1,type:c="button",variant:u="filled",color:d="primary",size:m="medium",children:h,Spinner:g,className:f,...v}){const x=re.useAnimationControls(),_=()=>{!a||l||s||!o||x.start({rotate:90})},T=()=>{!a||l||s||!o||x.start({rotate:0})},w=q(rc({variant:u,color:d,size:m,disabled:l||s,loading:s}),f);return p.jsx(re.motion.button,{onClick:e,className:w,whileHover:a&&!l&&!s?{scale:1.05}:{},whileTap:a&&!l&&!s?{scale:.98}:{},transition:{type:"spring",stiffness:400,damping:17},onHoverStart:_,onHoverEnd:T,disabled:l||s,type:c,...v,children:s?p.jsxs("div",{className:"flex items-center gap-2",children:[g,m!=="small"&&p.jsx("span",{children:i})]}):h||p.jsxs("span",{className:q("flex items-center gap-2",r),children:[t&&p.jsx(re.motion.div,{animate:o?x:void 0,transition:{type:"spring",stiffness:400,damping:17},children:t}),n&&p.jsx("span",{children:n})]})})}function Pa({sessions:n,handleTokenLogin:e}){return p.jsx("div",{className:"profile-options-container w-full ",children:n?.map(t=>p.jsx("button",{className:"w-full ",onClick:()=>e?.(t.token),children:p.jsx(Qn,{children:p.jsx(Qn.Content,{onClick:()=>{console.log("hola")},isExpanded:!1,name:t.name,nameArea:t?.area?.name,nameCompany:t.company_id.name,cardProfile:p.jsx(Qn.Image,{isExpanded:!1})})})},t._id))})}const Qn=Object.assign(({children:n})=>p.jsx("div",{className:"profile-container flex rounded-md text-white-prometeo overflow-hidden flex-shrink-0 w-full min-w-0 ",children:n}),{Menu:({isExpanded:n,sessions:e,onClickLogout:t,handleTokenLogin:r})=>p.jsx(re.AnimatePresence,{mode:"wait",children:n&&p.jsxs(re.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:[p.jsx(re.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:p.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})}),e!==null&&p.jsxs(p.Fragment,{children:[p.jsx(re.motion.div,{className:"mt-4",exit:{opacity:0,y:-5,height:0,transition:{duration:.4,delay:.4,ease:"easeInOut"}},children:p.jsx("span",{className:"text-neutral-medium-default font-semibold text-xs",children:"Cambiar cuenta"})}),p.jsx(re.motion.div,{className:"mt-4 overflow-hidden w-full ",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:p.jsx(Pa,{sessions:e,handleTokenLogin:r})}),p.jsx(re.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:p.jsx("div",{className:"border-b border-neutral-strong-default border-1 w-full"})})]}),p.jsxs(re.motion.button,{onClick:t,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:[p.jsx(je.Logout,{size:24,className:"text-neutral-default-default"}),p.jsx("span",{className:"text-neutral-default-default font-semibold text-sm",children:"Cerrar sesión"})]})]})}),Image:({imageUrl:n})=>p.jsx("div",{className:"flex items-center justify-center profile-image-wrapper",children:p.jsx(ja,{profileImage:n,sizeImage:"w-36 h-36"})}),Content:({isExpanded:n,name:e,nameCompany:t,nameArea:r,cardProfile:i,onClick:a})=>p.jsxs(re.motion.button,{onClick:a,className:q("flex flex-1 gap-1 rounded-l-md cursor-pointer relative overflow-hidden focus:outline-none hover:bg-neutral-medium-selected button-profile h-12",n&&"bg-neutral-medium-selected"),whileHover:{opacity:1,scale:[1,1.02,1]},whileTap:{scale:.98},transition:{duration:.2,ease:"easeInOut"},children:[i,p.jsxs("div",{className:"flex flex-col justify-center overflow-hidden flex-1 relative z-10 profile-user-info mr-2",children:[p.jsx("p",{className:q("profile-name font-semibold leading-tight mb-0 text-left",n?"text-primary-default-default":"text-neutral-default-default"),children:e?.length&&e?.length>20?e?.slice(0,10)+"..":e}),p.jsx("div",{className:"flex items-center gap-1 mt-0 ",children:t&&t?p.jsxs(p.Fragment,{children:[p.jsx("p",{className:q("profile-options truncate text-xs mt-0",n?"text-primary-default-default":"text-neutral-default-default"),children:t.length>20?t?.slice(0,10)+"..":t}),p.jsx("p",{className:q("profile-options truncate font-bold mt-0",n?"text-primary-default-default":"text-neutral-default-default"),children:"·"}),p.jsx("p",{className:q("profile-options truncate text-xs mt-0",n?"text-primary-default-default":"text-neutral-default-default"),children:r||"Sin asignar"})]}):p.jsx("span",{className:"font-semibold leading-tight ml-3 text-xs text-blue-300 text-center",children:"Sin asignar"})})]})]}),Separator:()=>p.jsx("div",{className:"w-px bg-gray-500/30 my-1 border-separator-profile"}),Options:({isExpanded:n,onClick:e})=>p.jsx(re.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] hover:bg-neutral-medium-selected button-content-chevron",whileHover:{scale:1.05},whileTap:{scale:.95},transition:{duration:.2,ease:"easeOut"},title:n?"Ocultar opciones":"Mostrar opciones","aria-label":n?"Ocultar opciones":"Mostrar opciones",children:p.jsx(re.motion.div,{animate:{rotate:n?180:0},transition:{duration:.3,ease:"easeOut"},className:"relative button-select-crevron",children:p.jsx(re.motion.div,{transition:{duration:.2},children:p.jsx(je.ChevronDown,{size:20,className:"text-prometeo-neutral "})})})})}),je={Ticket:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M240-200h120v-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})}),Boards:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})}),CrevronRight:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})}),ArrowLeft:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M400-240 160-480l240-240 56 58-142 142h486v80H314l142 142-56 58Z"})}),Shared:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M480-345 240-585l56-56 184 183 184-183 56 56-240 240Z"})}),Collapse:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M440-440v240h-80v-160H200v-80h240Zm160-320v160h160v80H520v-240h80Z"})}),Calendar:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"})}),Search:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.jsx("path",{d:"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"})}),Edit:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...t,viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,children:p.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:n,className:e,...t})=>p.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...t,className:e,children:[p.jsx("mask",{id:"mask0_977_20941",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:n,height:n,children:p.jsx("rect",{width:"24",height:"24",fill:"#D9D9D9"})}),p.jsx("g",{mask:"url(#mask0_977_20941)",children:p.jsx("path",{d:"M11 17V7L6 12L11 17ZM13 21H15V3H13V21Z",fill:"#E4E4E7"})})]}),EyeVisibility:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,...t,className:e,fill:"currentColor",children:p.jsx("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})}),EyeVisibilityOff:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,...t,className:e,fill:"currentColor",children:p.jsx("path",{d:"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})}),Check:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,...t,className:e,viewBox:"0 -960 960 960",fill:"currentColor",children:p.jsx("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})}),Info:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,...t,className:e,fill:"currentColor",children:p.jsx("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-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"})}),Error:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,...t,className:e,fill:"currentColor",viewBox:"0 -960 960 960",children:p.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-280Zm-40-160h80v-240h-80v240Zm40 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-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})}),TicketFilled:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",width:n,height:n,fill:"currentColor",className:e,...t,children:p.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-160Z"})}),UploadCloud:({size:n,className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 -960 960 960",width:n,fill:"currentColor",...t,className:e,children:p.jsx("path",{d:"M260-160q-91 0-155.5-63T40-377q0-78 47-139t123-78q25-92 100-149t170-57q117 0 198.5 81.5T760-520q69 8 114.5 59.5T920-340q0 75-52.5 127.5T740-160H520q-33 0-56.5-23.5T440-240v-206l-64 62-56-56 160-160 160 160-56 56-64-62v206h220q42 0 71-29t29-71q0-42-29-71t-71-29h-60v-80q0-83-58.5-141.5T480-720q-83 0-141.5 58.5T280-520h-20q-58 0-99 41t-41 99q0 58 41 99t99 41h100v80H260Zm220-280Z"})})},ac=({label:n,className:e,containerClassName:t,id:r,disabled:i=!1,...a})=>{const[o,s]=Kn.useField({...a,type:"checkbox"}),[l,c]=E.useState(!1),u=s.touched&&s.error;return p.jsxs("div",{className:q("relative w-full",t),children:[p.jsxs("label",{htmlFor:r||a.name,className:q("flex items-center gap-3 cursor-pointer transition-all duration-200 ease-in-out",i?"cursor-not-allowed opacity-60":"hover:opacity-80",e),children:[p.jsxs("div",{className:"relative",children:[p.jsx("input",{id:r||a.name,type:"checkbox",name:o.name,checked:o.value||!1,onChange:o.onChange,onFocus:()=>{c(!0),a.onFocus?.()},onBlur:d=>{c(!1),a.onBlur?.(),o.onBlur(d)},disabled:i,className:q("sr-only")}),p.jsx("div",{className:q("w-5 h-5 rounded border-2 transition-all duration-200 ease-in-out flex items-center justify-center",o.value?"bg-primary-default-default border-primary-default-default":l?"border-primary-default-default bg-transparent":u?"border-error-default-default bg-transparent":"border-neutral-default-default bg-transparent hover:border-neutral-strong-default",i&&"bg-neutral-medium-default border-neutral-medium-default"),children:o.value&&p.jsx(je.Check,{size:14,className:q("text-white transition-all duration-200 ease-in-out",i&&"text-neutral-strong-default")})})]}),p.jsx("span",{className:`${l}`,children:" "}),p.jsx("span",{className:q("text-sm transition-colors duration-200 ease-in-out select-none",u&&"text-error-default-default",i&&"text-neutral-medium-default"),children:n})]}),u&&p.jsx(Kn.ErrorMessage,{name:a.name,component:"span",className:"block text-error-default-default text-xs mt-1"})]})},oc=E.forwardRef(({children:n,onClose:e,className:t},r)=>{const[i,a]=E.useState(!1),o=()=>a(!0),s=()=>{a(!1),e?.()};return E.useImperativeHandle(r,()=>({open:o,close:s,isOpen:i})),p.jsx(p.Fragment,{children:i&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/30 backdrop-blur-[1.5px]",onClick:s,children:p.jsx("div",{className:q("bg-neutral-default-default w-3/4 h-3/4 xl:w-3/4 xl:h-10/12 rounded-lg shadow-lg border-neutral-strong-default border relative p-6",t),onClick:l=>l.stopPropagation(),children:n})})})}),sc=Object.assign(oc,{Content:({children:n,className:e})=>p.jsx("div",{className:e,children:p.jsx("div",{className:q("flex flex-col gap-4"),children:n})}),Header:({children:n,className:e})=>p.jsx("div",{className:e,children:n}),Footer:({children:n,className:e})=>p.jsx("div",{className:e,children:n}),Title:({children:n,className:e})=>p.jsx("h1",{className:e,children:n})});function wt(n,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(n?.(i),t===!1||!i.defaultPrevented)return e?.(i)}}function Da(n,e){if(typeof n=="function")return n(e);n!=null&&(n.current=e)}function Aa(...n){return e=>{let t=!1;const r=n.map(i=>{const a=Da(i,e);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():Da(n[i],null)}}}}function Rt(...n){return S.useCallback(Aa(...n),n)}function lc(n,e){const t=S.createContext(e),r=a=>{const{children:o,...s}=a,l=S.useMemo(()=>s,Object.values(s));return p.jsx(t.Provider,{value:l,children:o})};r.displayName=n+"Provider";function i(a){const o=S.useContext(t);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${a}\` must be used within \`${n}\``)}return[r,i]}function cc(n,e=[]){let t=[];function r(a,o){const s=S.createContext(o),l=t.length;t=[...t,o];const c=d=>{const{scope:m,children:h,...g}=d,f=m?.[n]?.[l]||s,v=S.useMemo(()=>g,Object.values(g));return p.jsx(f.Provider,{value:v,children:h})};c.displayName=a+"Provider";function u(d,m){const h=m?.[n]?.[l]||s,g=S.useContext(h);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=t.map(o=>S.createContext(o));return function(s){const l=s?.[n]||a;return S.useMemo(()=>({[`__scope${n}`]:{...s,[n]:l}}),[s,l])}};return i.scopeName=n,[r,uc(i,...e)]}function uc(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const r=n.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return S.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}var _n=globalThis?.document?S.useLayoutEffect:()=>{},dc=S[" useId ".trim().toString()]||(()=>{}),pc=0;function Zr(n){const[e,t]=S.useState(dc());return _n(()=>{t(r=>r??String(pc++))},[n]),n||(e?`radix-${e}`:"")}var fc=S[" useInsertionEffect ".trim().toString()]||_n;function mc({prop:n,defaultProp:e,onChange:t=()=>{},caller:r}){const[i,a,o]=hc({defaultProp:e,onChange:t}),s=n!==void 0,l=s?n:i;{const u=S.useRef(n!==void 0);S.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=S.useCallback(u=>{if(s){const d=vc(u)?u(n):u;d!==n&&o.current?.(d)}else a(u)},[s,n,a,o]);return[l,c]}function hc({defaultProp:n,onChange:e}){const[t,r]=S.useState(n),i=S.useRef(t),a=S.useRef(e);return fc(()=>{a.current=e},[e]),S.useEffect(()=>{i.current!==t&&(a.current?.(t),i.current=t)},[t,i]),[t,r,a]}function vc(n){return typeof n=="function"}function Na(n){const e=gc(n),t=S.forwardRef((r,i)=>{const{children:a,...o}=r,s=S.Children.toArray(a),l=s.find(yc);if(l){const c=l.props.children,u=s.map(d=>d===l?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:d);return p.jsx(e,{...o,ref:i,children:S.isValidElement(c)?S.cloneElement(c,void 0,u):null})}return p.jsx(e,{...o,ref:i,children:a})});return t.displayName=`${n}.Slot`,t}function gc(n){const e=S.forwardRef((t,r)=>{const{children:i,...a}=t;if(S.isValidElement(i)){const o=wc(i),s=bc(a,i.props);return i.type!==S.Fragment&&(s.ref=r?Aa(r,o):o),S.cloneElement(i,s)}return S.Children.count(i)>1?S.Children.only(null):null});return e.displayName=`${n}.SlotClone`,e}var xc=Symbol("radix.slottable");function yc(n){return S.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===xc}function bc(n,e){const t={...e};for(const r in e){const i=n[r],a=e[r];/^on[A-Z]/.test(r)?i&&a?t[r]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(t[r]=i):r==="style"?t[r]={...i,...a}:r==="className"&&(t[r]=[i,a].filter(Boolean).join(" "))}return{...n,...t}}function wc(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}var _c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pt=_c.reduce((n,e)=>{const t=Na(`Primitive.${e}`),r=S.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:a})});return r.displayName=`Primitive.${e}`,{...n,[e]:r}},{});function Tc(n,e){n&&Ql.flushSync(()=>n.dispatchEvent(e))}function Tn(n){const e=S.useRef(n);return S.useEffect(()=>{e.current=n}),S.useMemo(()=>(...t)=>e.current?.(...t),[])}function Ec(n,e=globalThis?.document){const t=Tn(n);S.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[t,e])}var Sc="DismissableLayer",Vr="dismissableLayer.update",Cc="dismissableLayer.pointerDownOutside",jc="dismissableLayer.focusOutside",qa,Ra=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ma=S.forwardRef((n,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=n,c=S.useContext(Ra),[u,d]=S.useState(null),m=u?.ownerDocument??globalThis?.document,[,h]=S.useState({}),g=Rt(e,C=>d(C)),f=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=f.indexOf(v),_=u?f.indexOf(u):-1,T=c.layersWithOutsidePointerEventsDisabled.size>0,w=_>=x,y=Pc(C=>{const O=C.target,j=[...c.branches].some(F=>F.contains(O));!w||j||(i?.(C),o?.(C),C.defaultPrevented||s?.())},m),k=Dc(C=>{const O=C.target;[...c.branches].some(F=>F.contains(O))||(a?.(C),o?.(C),C.defaultPrevented||s?.())},m);return Ec(C=>{_===c.layers.size-1&&(r?.(C),!C.defaultPrevented&&s&&(C.preventDefault(),s()))},m),S.useEffect(()=>{if(u)return t&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(qa=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Ia(),()=>{t&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=qa)}},[u,m,t,c]),S.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Ia())},[u,c]),S.useEffect(()=>{const C=()=>h({});return document.addEventListener(Vr,C),()=>document.removeEventListener(Vr,C)},[]),p.jsx(pt.div,{...l,ref:g,style:{pointerEvents:T?w?"auto":"none":void 0,...n.style},onFocusCapture:wt(n.onFocusCapture,k.onFocusCapture),onBlurCapture:wt(n.onBlurCapture,k.onBlurCapture),onPointerDownCapture:wt(n.onPointerDownCapture,y.onPointerDownCapture)})});Ma.displayName=Sc;var Oc="DismissableLayerBranch",kc=S.forwardRef((n,e)=>{const t=S.useContext(Ra),r=S.useRef(null),i=Rt(e,r);return S.useEffect(()=>{const a=r.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),p.jsx(pt.div,{...n,ref:i})});kc.displayName=Oc;function Pc(n,e=globalThis?.document){const t=Tn(n),r=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let l=function(){Fa(Cc,t,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",a),e.removeEventListener("click",i.current)}},[e,t]),{onPointerDownCapture:()=>r.current=!0}}function Dc(n,e=globalThis?.document){const t=Tn(n),r=S.useRef(!1);return S.useEffect(()=>{const i=a=>{a.target&&!r.current&&Fa(jc,t,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,t]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ia(){const n=new CustomEvent(Vr);document.dispatchEvent(n)}function Fa(n,e,t,{discrete:r}){const i=t.originalEvent.target,a=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:t});e&&i.addEventListener(n,e,{once:!0}),r?Tc(i,a):i.dispatchEvent(a)}var Yr="focusScope.autoFocusOnMount",Xr="focusScope.autoFocusOnUnmount",La={bubbles:!1,cancelable:!0},Ac="FocusScope",za=S.forwardRef((n,e)=>{const{loop:t=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=n,[s,l]=S.useState(null),c=Tn(i),u=Tn(a),d=S.useRef(null),m=Rt(e,f=>l(f)),h=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let f=function(T){if(h.paused||!s)return;const w=T.target;s.contains(w)?d.current=w:_t(d.current,{select:!0})},v=function(T){if(h.paused||!s)return;const w=T.relatedTarget;w!==null&&(s.contains(w)||_t(d.current,{select:!0}))},x=function(T){if(document.activeElement===document.body)for(const y of T)y.removedNodes.length>0&&_t(s)};document.addEventListener("focusin",f),document.addEventListener("focusout",v);const _=new MutationObserver(x);return s&&_.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",v),_.disconnect()}}},[r,s,h.paused]),S.useEffect(()=>{if(s){Ha.add(h);const f=document.activeElement;if(!s.contains(f)){const x=new CustomEvent(Yr,La);s.addEventListener(Yr,c),s.dispatchEvent(x),x.defaultPrevented||(Nc(Fc($a(s)),{select:!0}),document.activeElement===f&&_t(s))}return()=>{s.removeEventListener(Yr,c),setTimeout(()=>{const x=new CustomEvent(Xr,La);s.addEventListener(Xr,u),s.dispatchEvent(x),x.defaultPrevented||_t(f??document.body,{select:!0}),s.removeEventListener(Xr,u),Ha.remove(h)},0)}}},[s,c,u,h]);const g=S.useCallback(f=>{if(!t&&!r||h.paused)return;const v=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,x=document.activeElement;if(v&&x){const _=f.currentTarget,[T,w]=qc(_);T&&w?!f.shiftKey&&x===w?(f.preventDefault(),t&&_t(T,{select:!0})):f.shiftKey&&x===T&&(f.preventDefault(),t&&_t(w,{select:!0})):x===_&&f.preventDefault()}},[t,r,h.paused]);return p.jsx(pt.div,{tabIndex:-1,...o,ref:m,onKeyDown:g})});za.displayName=Ac;function Nc(n,{select:e=!1}={}){const t=document.activeElement;for(const r of n)if(_t(r,{select:e}),document.activeElement!==t)return}function qc(n){const e=$a(n),t=Ba(e,n),r=Ba(e.reverse(),n);return[t,r]}function $a(n){const e=[],t=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function Ba(n,e){for(const t of n)if(!Rc(t,{upTo:e}))return t}function Rc(n,{upTo:e}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(e!==void 0&&n===e)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Mc(n){return n instanceof HTMLInputElement&&"select"in n}function _t(n,{select:e=!1}={}){if(n&&n.focus){const t=document.activeElement;n.focus({preventScroll:!0}),n!==t&&Mc(n)&&e&&n.select()}}var Ha=Ic();function Ic(){let n=[];return{add(e){const t=n[0];e!==t&&t?.pause(),n=Wa(n,e),n.unshift(e)},remove(e){n=Wa(n,e),n[0]?.resume()}}}function Wa(n,e){const t=[...n],r=t.indexOf(e);return r!==-1&&t.splice(r,1),t}function Fc(n){return n.filter(e=>e.tagName!=="A")}var Lc="Portal",Ua=S.forwardRef((n,e)=>{const{container:t,...r}=n,[i,a]=S.useState(!1);_n(()=>a(!0),[]);const o=t||i&&globalThis?.document?.body;return o?ba.createPortal(p.jsx(pt.div,{...r,ref:e}),o):null});Ua.displayName=Lc;function zc(n,e){return S.useReducer((t,r)=>e[t][r]??t,n)}var er=n=>{const{present:e,children:t}=n,r=$c(e),i=typeof t=="function"?t({present:r.isPresent}):S.Children.only(t),a=Rt(r.ref,Bc(i));return typeof t=="function"||r.isPresent?S.cloneElement(i,{ref:a}):null};er.displayName="Presence";function $c(n){const[e,t]=S.useState(),r=S.useRef(null),i=S.useRef(n),a=S.useRef("none"),o=n?"mounted":"unmounted",[s,l]=zc(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=tr(r.current);a.current=s==="mounted"?c:"none"},[s]),_n(()=>{const c=r.current,u=i.current;if(u!==n){const m=a.current,h=tr(c);n?l("MOUNT"):h==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&m!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,l]),_n(()=>{if(e){let c;const u=e.ownerDocument.defaultView??window,d=h=>{const f=tr(r.current).includes(CSS.escape(h.animationName));if(h.target===e&&f&&(l("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",c=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},m=h=>{h.target===e&&(a.current=tr(r.current))};return e.addEventListener("animationstart",m),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(c),e.removeEventListener("animationstart",m),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:S.useCallback(c=>{r.current=c?getComputedStyle(c):null,t(c)},[])}}function tr(n){return n?.animationName||"none"}function Bc(n){let e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}var Gr=0;function Hc(){S.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Za()),document.body.insertAdjacentElement("beforeend",n[1]??Za()),Gr++,()=>{Gr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Gr--}},[])}function Za(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var it=function(){return it=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},it.apply(this,arguments)};function Va(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}function Mt(n,e,t,r){function i(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(n,e||[])).next())})}function Wc(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return n.concat(a||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var nr="right-scroll-bar-position",rr="width-before-scroll-bar",Uc="with-scroll-bars-hidden",Zc="--removed-body-scroll-bar-size";function Kr(n,e){return typeof n=="function"?n(e):n&&(n.current=e),n}function Vc(n,e){var t=E.useState(function(){return{value:n,callback:e,facade:{get current(){return t.value},set current(r){var i=t.value;i!==r&&(t.value=r,t.callback(r,i))}}}})[0];return t.callback=e,t.facade}var Yc=typeof window<"u"?S.useLayoutEffect:S.useEffect,Ya=new WeakMap;function Xc(n,e){var t=Vc(null,function(r){return n.forEach(function(i){return Kr(i,r)})});return Yc(function(){var r=Ya.get(t);if(r){var i=new Set(r),a=new Set(n),o=t.current;i.forEach(function(s){a.has(s)||Kr(s,null)}),a.forEach(function(s){i.has(s)||Kr(s,o)})}Ya.set(t,n)},[n]),t}function Gc(n){return n}function Kc(n,e){e===void 0&&(e=Gc);var t=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:n},useMedium:function(a){var o=e(a,r);return t.push(o),function(){t=t.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(r=!0;t.length;){var o=t;t=[],o.forEach(a)}t={push:function(s){return a(s)},filter:function(){return t}}},assignMedium:function(a){r=!0;var o=[];if(t.length){var s=t;t=[],s.forEach(a),o=t}var l=function(){var u=o;o=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),t={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),t}}}};return i}function Jc(n){n===void 0&&(n={});var e=Kc(null);return e.options=it({async:!0,ssr:!1},n),e}var Xa=function(n){var e=n.sideCar,t=Va(n,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,it({},t))};Xa.isSideCarExport=!0;function Qc(n,e){return n.useMedium(e),Xa}var Ga=Jc(),Jr=function(){},ir=S.forwardRef(function(n,e){var t=S.useRef(null),r=S.useState({onScrollCapture:Jr,onWheelCapture:Jr,onTouchMoveCapture:Jr}),i=r[0],a=r[1],o=n.forwardProps,s=n.children,l=n.className,c=n.removeScrollBar,u=n.enabled,d=n.shards,m=n.sideCar,h=n.noRelative,g=n.noIsolation,f=n.inert,v=n.allowPinchZoom,x=n.as,_=x===void 0?"div":x,T=n.gapMode,w=Va(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=m,k=Xc([t,e]),C=it(it({},w),i);return S.createElement(S.Fragment,null,u&&S.createElement(y,{sideCar:Ga,removeScrollBar:c,shards:d,noRelative:h,noIsolation:g,inert:f,setCallbacks:a,allowPinchZoom:!!v,lockRef:t,gapMode:T}),o?S.cloneElement(S.Children.only(s),it(it({},C),{ref:k})):S.createElement(_,it({},C,{className:l,ref:k}),s))});ir.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ir.classNames={fullWidth:rr,zeroRight:nr};var eu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tu(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var e=eu();return e&&n.setAttribute("nonce",e),n}function nu(n,e){n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}function ru(n){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(n)}var iu=function(){var n=0,e=null;return{add:function(t){n==0&&(e=tu())&&(nu(e,t),ru(e)),n++},remove:function(){n--,!n&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},au=function(){var n=iu();return function(e,t){S.useEffect(function(){return n.add(e),function(){n.remove()}},[e&&t])}},Ka=function(){var n=au(),e=function(t){var r=t.styles,i=t.dynamic;return n(r,i),null};return e},ou={left:0,top:0,right:0,gap:0},Qr=function(n){return parseInt(n||"",10)||0},su=function(n){var e=window.getComputedStyle(document.body),t=e[n==="padding"?"paddingLeft":"marginLeft"],r=e[n==="padding"?"paddingTop":"marginTop"],i=e[n==="padding"?"paddingRight":"marginRight"];return[Qr(t),Qr(r),Qr(i)]},lu=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return ou;var e=su(n),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-t+e[2]-e[0])}},cu=Ka(),Qt="data-scroll-locked",uu=function(n,e,t,r){var i=n.left,a=n.top,o=n.right,s=n.gap;return t===void 0&&(t="margin"),`
23
23
  .`.concat(Uc,` {
24
24
  overflow: hidden `).concat(r,`;
25
25
  padding-right: `).concat(s,"px ").concat(r,`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "1.4.5",
4
+ "version": "1.4.6",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",