anima-ds-nucleus 1.0.19 → 1.0.21

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.
@@ -160,7 +160,7 @@ React keys must be passed directly to JSX without using spread:
160
160
  text-white rounded-full flex items-center justify-center\r
161
161
  text-body-sm font-medium`,style:{backgroundColor:"#6D3856",borderRadius:"12px"},children:s.inicio>9?"9+":s.inicio})]})}),a.map((j,V)=>l.jsxs("div",{className:"mb-6",children:[l.jsx("div",{className:"px-4 mb-2",children:l.jsx(Z,{variant:"body-sm",className:"color-gray-500 uppercase font-medium tracking-wider",children:j.title})}),l.jsx("div",{className:"space-y-1",children:j.items.map(A=>l.jsx("div",{className:"px-4",children:l.jsxs("button",{onClick:()=>{t&&t(A.id),$()},className:`w-full flex items-center cursor-pointer px-4 justify-between py-2.5 rounded-lg transition-all duration-200 ${r===A.id?"":"color-gray-700 hover:bg-gray-100"}`,style:r===A.id?{backgroundColor:"#2D5C63"}:{},children:[l.jsxs("div",{className:"flex items-center",children:[l.jsx(x,{name:A.icon,variant:"24-outline",size:20,className:`mr-3 ${r===A.id?"color-white":"color-gray-700"}`}),l.jsx(Z,{variant:"body-md",className:`font-medium ${r===A.id?"color-white":"color-gray-700"}`,children:A.label})]}),(s[A.id]!==void 0&&s[A.id]>0||A.id==="empleados"&&2)&&l.jsx("span",{className:`px-2 py-0.5 min-w-[20px] h-5 \r
162
162
  text-white rounded-full flex items-center justify-center\r
163
- text-body-sm font-medium`,style:{backgroundColor:"#6D3856",borderRadius:"12px"},children:A.id==="empleados"?2:s[A.id]>9?"9+":s[A.id]})]})},A.id))})]},V))]})]})})]})},Me="80px",bN="40px",Ce="40px",xN="#6D3856",we="#374151",he="#9ca3af",de="#3b82f6",RN="IBM Plex Sans",EN=400,ZN="14px",yN="20px",MN="1024px",Ae="1025px",CN="700px",je="transparent",AN=({searchPlaceholder:a="Buscar empleados, reportes, configuraciones...",userName:r,userAvatar:t,notificationCount:n=0,onSearch:c,onNotificationClick:u,onUserClick:s,sidebarSections:i,sidebarActiveItem:d,onSidebarItemClick:f,sidebarItemBadges:w,sidebarCompanyName:v,sidebarCompanyLogo:b,mobileBackgroundColor:h=je,className:C="",...g})=>{const[$,p]=M.useState(""),[E,j]=M.useState(!1),V=y=>{const L=y.target.value;p(L),c&&c(L)},A=y=>{y.preventDefault(),c&&c($)},W=y=>{f&&f(y),j(!1)},_=()=>{j(!1)},G=y=>y>9?"9+":y;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
163
+ text-body-sm font-medium`,style:{backgroundColor:"#6D3856",borderRadius:"12px"},children:A.id==="empleados"?2:s[A.id]>9?"9+":s[A.id]})]})},A.id))})]},V))]})]})})]})},Me="64px",bN="40px",Ce="40px",xN="#6D3856",we="#374151",he="#9ca3af",de="#3b82f6",RN="IBM Plex Sans",EN=400,ZN="14px",yN="20px",MN="1336px",Ae="1337px",CN="700px",je="transparent",AN=({searchPlaceholder:a="Buscar empleados, reportes, configuraciones...",userName:r,userAvatar:t,notificationCount:n=0,onSearch:c,onNotificationClick:u,onUserClick:s,sidebarSections:i,sidebarActiveItem:d,onSidebarItemClick:f,sidebarItemBadges:w,sidebarCompanyName:v,sidebarCompanyLogo:b,mobileBackgroundColor:h=je,className:C="",...g})=>{const[$,p]=M.useState(""),[E,j]=M.useState(!1),V=y=>{const L=y.target.value;p(L),c&&c(L)},A=y=>{y.preventDefault(),c&&c($)},W=y=>{f&&f(y),j(!1)},_=()=>{j(!1)},G=y=>y>9?"9+":y;return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
164
164
  .header-point-container {
165
165
  height: ${Me};
166
166
  }
@@ -264,9 +264,8 @@ React keys must be passed directly to JSX without using spread:
264
264
  display: flex !important;
265
265
  align-items: center !important;
266
266
  justify-content: space-between !important;
267
- padding: 24px 24px 12px 24px !important;
268
- min-height: 64px !important;
269
- height: 64px !important;
267
+ padding: 8px 4px !important;
268
+ min-height: 48px !important;
270
269
  width: 100% !important;
271
270
  max-width: 100% !important;
272
271
  box-sizing: border-box !important;
@@ -288,7 +287,7 @@ React keys must be passed directly to JSX without using spread:
288
287
  left: 0 !important;
289
288
  right: 0 !important;
290
289
  width: 100% !important;
291
- height: calc(64px + 12px + 20px) !important;
290
+ height: calc(48px + 12px + 8px + 40px) !important;
292
291
  background-color: ${h} !important;
293
292
  background: ${h} !important;
294
293
  z-index: 0 !important;
@@ -306,8 +305,7 @@ React keys must be passed directly to JSX without using spread:
306
305
  position: relative;
307
306
  z-index: 2 !important;
308
307
  display: block;
309
- padding: 12px 24px 0 24px;
310
- margin-top: -8px;
308
+ padding: 12px 4px 8px 4px !important;
311
309
  width: 100% !important;
312
310
  max-width: 100% !important;
313
311
  box-sizing: border-box !important;
@@ -317,13 +315,13 @@ React keys must be passed directly to JSX without using spread:
317
315
  }
318
316
  .header-mobile-layout .header-search-input {
319
317
  font-size: 12px !important;
320
- padding-left: 8px !important;
321
- padding-right: 8px !important;
322
- height: 44px !important;
318
+ padding-left: 12px !important;
319
+ padding-right: 12px !important;
320
+ height: 40px !important;
323
321
  }
324
322
  .header-mobile-layout .header-search-icon-container {
325
- width: 44px !important;
326
- height: 44px !important;
323
+ width: 36px !important;
324
+ height: 40px !important;
327
325
  }
328
326
  .header-mobile-menu-icon {
329
327
  color: var(--color-neutrals-white) !important;
@@ -354,7 +352,7 @@ React keys must be passed directly to JSX without using spread:
354
352
  border-bottom: none !important;
355
353
  }
356
354
  }
357
- `}),l.jsxs("header",{className:`bg-white header-point-mobile rounded-12 header-point-container ${C}`,...g,children:[l.jsxs("div",{className:"w-full px-1",children:[l.jsxs("div",{className:"header-desktop-layout flex items-center justify-between gap-2 md:gap-4",children:[l.jsx("div",{className:"header-search-wrapper",children:l.jsxs("form",{onSubmit:A,className:"header-search-form flex items-center w-full",children:[l.jsx("input",{type:"text",value:$,onChange:V,placeholder:a,className:"header-search-input flex-1 pl-2 md:pl-4 pr-2 md:pr-4 py-2 md:py-2.5 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm md:text-base border-r-0 rounded-r-none"}),l.jsx("div",{className:"header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white border-l-0",children:l.jsx(x,{name:"MagnifyingGlassIcon",variant:"24-outline",size:20,className:"color-gray-600"})})]})}),l.jsxs("div",{className:"header-actions-wrapper flex items-center gap-3 md:gap-6",children:[n!==void 0&&l.jsxs("button",{onClick:u,className:"relative p-2 hover:bg-gray-100 rounded-lg transition-colors","aria-label":"Notificaciones",children:[l.jsx(x,{name:"BellIcon",variant:"24-outline",size:24,className:"color-gray-600"}),n>0&&l.jsx("span",{className:"absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge",children:G(n)})]}),r&&l.jsxs("button",{onClick:s,className:"flex items-center gap-3 hover:bg-gray-50 rounded-lg px-2 py-1.5 transition-colors","aria-label":"Perfil de usuario",children:[l.jsx(z0,{src:t,name:r,size:"medium",variant:"circle"}),l.jsx(Z,{variant:"body-lg",className:"color-gray-700 hidden md:block header-user-name",children:r}),l.jsx(x,{name:"ChevronDownIcon",variant:"24-outline",size:20,className:"color-gray-500 header-user-chevron hidden md:block"})]})]})]}),l.jsxs("div",{className:"header-mobile-layout",children:[l.jsxs("div",{className:"header-mobile-top-row relative",children:[l.jsx("div",{className:"flex items-center",children:l.jsx("button",{onClick:()=>j(!0),className:"p-2 hover:bg-gray-100 rounded-lg transition-colors header-mobile-menu-button cursor-pointer","aria-label":"Menú",children:l.jsx(x,{name:"Bars3Icon",variant:"24-outline",size:24,className:"header-mobile-menu-icon"})})}),l.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center h-full",children:l.jsx(Z,{variant:"h6",className:"header-mobile-point-text",children:"Point"})}),l.jsx("div",{className:"flex items-center ml-auto",children:n!==void 0&&l.jsxs("button",{onClick:u,className:"relative p-2 hover:bg-gray-100 rounded-lg transition-colors header-mobile-notification-button cursor-pointer","aria-label":"Notificaciones",children:[l.jsx(x,{name:"BellIcon",variant:"24-outline",size:24,className:"header-mobile-notification-icon"}),n>0&&l.jsx("span",{className:"absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge",children:G(n)})]})})]}),l.jsx("div",{className:"header-mobile-search-row",children:l.jsxs("form",{onSubmit:A,className:"header-search-form flex items-center w-full",children:[l.jsx("input",{type:"text",value:$,onChange:V,placeholder:a,className:"header-search-input flex-1 pl-4 pr-4 py-2 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm border-r-0 rounded-r-none"}),l.jsx("div",{className:"header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white border-l-0",children:l.jsx(x,{name:"MagnifyingGlassIcon",variant:"24-outline",size:20,className:"color-gray-600"})})]})})]})]}),E&&l.jsx("div",{className:"header-mobile-sidebar-wrapper",children:l.jsx(De,{sections:i,activeItem:d,onItemClick:W,itemBadges:w,companyName:v,companyLogo:b,isOpen:E,onClose:_})})]})]})},jN=({variant:a,logoText:r="HEXA",suiteText:t="Suite",languages:n=[{code:"es-AR",name:"Español"},{code:"en",name:"English"}],currentLanguageCode:c="es-AR",onLanguageChange:u,className:s="",...i})=>{const[d,f]=M.useState(!1),[w,v]=M.useState(null),[b,h]=M.useState(!1),C=a==="login",g=n.find(p=>p.code===c)||n[0],$=p=>{u&&u(p),f(!1)};return C?(()=>{const{style:p,...E}=i;return l.jsxs("header",{className:`w-full flex justify-between items-center bg-white ${s}`,style:{boxShadow:"0px 2px 4px -1px #0000000F, 0px 4px 6px -1px #0000001A",padding:"16px var(--mf-ds-grid-margin, 20px)",...p},...E,children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(_0,{width:36,height:40}),l.jsxs("div",{className:"flex items-center",style:{gap:"4px"},children:[l.jsx(Z,{variant:"h5",className:"font-normal",style:{color:"#2D5C63",margin:0,fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0px"},children:r}),l.jsx(Z,{variant:"h5",className:"font-normal",style:{color:"#2D5C63",margin:0,fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0px"},children:t})]})]}),n&&n.length>0&&l.jsxs("div",{className:"relative",children:[l.jsxs("div",{className:"flex items-center",style:{width:"150px",height:"40px",gap:"16px",opacity:1},children:[l.jsx(x,{name:"LanguageIcon",variant:"24-outline",size:20,style:{width:"20px",height:"20px",opacity:1}}),l.jsxs("button",{onClick:()=>f(!d),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),className:"flex items-center gap-2 text-body-md text-gray-700 bg-white hover:bg-gray-50 transition-colors",style:{width:"114px",height:"40px",padding:"8px 12px 8px 16px",gap:"8px",borderRadius:"8px",border:"1px solid #38656D",background:b?"#F9FAFB":"white",opacity:1,color:"#374151"},children:[l.jsx("span",{children:g.name}),l.jsx(x,{name:"ChevronDownIcon",variant:"24-outline",size:16,className:`transition-transform ${d?"rotate-180":""}`})]})]}),d&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>f(!1)}),l.jsx("div",{className:"absolute right-0 mt-2 bg-white z-20",style:{width:"224px",height:"112px",padding:"12px",borderRadius:"12px",border:"1px solid #E5E7EB",boxShadow:"0px 2px 4px -2px #0000001A, 0px 4px 6px -1px #0000001A",display:"flex",flexDirection:"column",gap:"8px"},children:n.map(j=>l.jsx("button",{onClick:()=>$(j.code),className:"w-full text-left transition-colors",style:{width:"200px",height:"40px",padding:0,border:"none",background:"transparent"},onMouseEnter:()=>v(j.code),onMouseLeave:()=>v(null),children:l.jsxs("div",{style:{width:"200px",height:"40px",padding:"8px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"16px",backgroundColor:g.code===j.code?"#6D3856":w===j.code?"#DDDDDD":"transparent",color:g.code===j.code?"#FFFFFF":void 0},children:[l.jsx("span",{style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"16px",lineHeight:"24px",letterSpacing:"0px",width:"144px",height:"24px",opacity:1},children:j.name}),g.code===j.code&&l.jsx("div",{style:{width:"24px",height:"24px",backgroundColor:"#FFFFFF",borderRadius:"999px",display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(x,{name:"CheckCircleIcon",variant:"24-solid",size:24,style:{width:"24px",height:"24px",color:"#6D3856"}})})]})},j.code))})]})]})]})})():l.jsxs("header",{className:`w-full flex justify-between items-center bg-white ${s}`,style:{paddingTop:"4px",paddingBottom:"4px",paddingLeft:"8px",paddingRight:"12px"},...i,children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(_0,{width:32,height:36}),l.jsxs("div",{className:"flex items-center",style:{gap:"4px"},children:[l.jsx(Z,{variant:"h6",className:"font-normal",style:{color:"#2D5C63",margin:0},children:r}),l.jsx(Z,{variant:"h6",className:"font-normal",style:{color:"#2D5C63",margin:0},children:t})]})]}),n&&n.length>0&&l.jsxs("div",{className:"relative flex items-center gap-2",children:[l.jsx(x,{name:"LanguageIcon",variant:"24-outline",size:18,style:{color:"#374151"}}),l.jsxs("button",{onClick:()=>f(!d),className:"flex items-center gap-2 px-3 py-2 text-body-md color-gray-700 bg-white hover:bg-gray-50 rounded-lg transition-colors",style:{border:"1px solid #2D5C63"},children:[l.jsx("span",{children:g.name}),l.jsx(x,{name:"ChevronDownIcon",variant:"24-outline",size:16,className:`transition-transform ${d?"rotate-180":""}`})]}),d&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>f(!1)}),l.jsx("div",{className:"absolute right-0 mt-2 w-40 bg-white rounded-lg shadow-lg z-20 py-1",style:{border:"1px solid #2D5C63"},children:n.map(p=>l.jsx("button",{onClick:()=>$(p.code),className:`w-full text-left px-4 py-2 text-body-md hover:bg-gray-50 transition-colors ${g.code===p.code?"bg-gray-50 color-brand font-medium":"color-gray-700"}`,children:p.name},p.code))})]})]})]})},$N="#6D3856",kN=({searchPlaceholder:a="Buscar empleados, reportes, configuraciones...",userName:r,userAvatar:t,notificationCount:n=0,onSearch:c,onNotificationClick:u,onUserClick:s,showBottomBorder:i=!1,bottomBorderClassName:d="border-b border-gray-200",desktopLayoutClassName:f="",desktopLayoutStyle:w,desktopSearchContainerClassName:v="",desktopSearchContainerStyle:b,className:h="",...C})=>{const[g,$]=M.useState(""),p=V=>V>9?"9+":V,E=V=>{const A=V.target.value;$(A),c&&c(A)},j=V=>{V.preventDefault(),c&&c(g)};return l.jsxs("header",{className:`bg-white ${i?d:""} ${h}`,...C,children:[l.jsx("style",{children:`
355
+ `}),l.jsxs("header",{className:`bg-white header-point-mobile rounded-12 header-point-container ${C}`,...g,children:[l.jsxs("div",{className:"w-full",style:{paddingLeft:"4px",paddingRight:"4px"},children:[l.jsxs("div",{className:"header-desktop-layout flex items-center justify-between h-16",children:[l.jsx("div",{className:"header-search-wrapper",style:{marginRight:"16px"},children:l.jsxs("form",{onSubmit:A,className:"header-search-form flex items-center w-full",children:[l.jsx("input",{type:"text",value:$,onChange:V,placeholder:a,className:"header-search-input flex-1 pl-2 md:pl-4 pr-2 md:pr-4 py-2 md:py-2.5 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm md:text-base",style:{height:"40px",borderRight:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:"#374151",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"italic",fontSize:"14px",lineHeight:"20px",letterSpacing:"0px"}}),l.jsx("div",{className:"header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white",style:{width:"40px",height:"40px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},children:l.jsx(x,{name:"MagnifyingGlassIcon",variant:"24-outline",size:20,className:"color-gray-600"})})]})}),l.jsxs("div",{className:"header-actions-wrapper flex items-center space-x-3 md:space-x-6 flex-shrink-0",style:{marginLeft:"auto",paddingRight:"0px"},children:[n!==void 0&&l.jsxs("button",{onClick:u,className:"relative ml-3 p-2 hover:bg-gray-100 rounded-lg transition-colors","aria-label":"Notificaciones",style:{transform:"translateX(12px)"},children:[l.jsx(x,{name:"BellIcon",variant:"24-outline",size:24,className:"color-gray-600"}),n>0&&l.jsx("span",{className:"absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge",children:G(n)})]}),r&&l.jsxs("button",{onClick:s,className:"flex items-center gap-3 hover:bg-gray-50 rounded-lg px-2 py-1.5 transition-colors","aria-label":"Perfil de usuario",children:[l.jsx(z0,{src:t,name:r,size:"medium",variant:"circle"}),l.jsx(Z,{variant:"body-lg",className:"color-gray-700 hidden md:block header-user-name",children:r}),l.jsx(x,{name:"ChevronDownIcon",variant:"24-outline",size:20,className:"color-gray-500 header-user-chevron hidden md:block"})]})]})]}),l.jsxs("div",{className:"header-mobile-layout",children:[l.jsxs("div",{className:"header-mobile-top-row relative",children:[l.jsx("div",{className:"flex items-center",children:l.jsx("button",{onClick:()=>j(!0),className:"p-2 hover:bg-gray-100 rounded-lg transition-colors header-mobile-menu-button cursor-pointer","aria-label":"Menú",children:l.jsx(x,{name:"Bars3Icon",variant:"24-outline",size:24,className:"header-mobile-menu-icon"})})}),l.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center h-full",children:l.jsx(Z,{variant:"h6",className:"header-mobile-point-text",children:"Point"})}),l.jsx("div",{className:"flex items-center ml-auto",children:n!==void 0&&l.jsxs("button",{onClick:u,className:"relative p-2 hover:bg-gray-100 rounded-lg transition-colors header-mobile-notification-button cursor-pointer","aria-label":"Notificaciones",children:[l.jsx(x,{name:"BellIcon",variant:"24-outline",size:24,className:"header-mobile-notification-icon"}),n>0&&l.jsx("span",{className:"absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge",children:G(n)})]})})]}),l.jsx("div",{className:"header-mobile-search-row",children:l.jsxs("form",{onSubmit:A,className:"header-search-form flex items-center w-full",children:[l.jsx("input",{type:"text",value:$,onChange:V,placeholder:a,className:"header-search-input flex-1 pl-3 pr-3 py-2 bg-white border border-gray-400 rounded-l-lg focus:outline-none text-sm",style:{height:"40px",borderRight:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:"#374151",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"italic",fontSize:"14px",lineHeight:"20px",letterSpacing:"0px"}}),l.jsx("div",{className:"header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white",style:{width:"36px",height:"40px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},children:l.jsx(x,{name:"MagnifyingGlassIcon",variant:"24-outline",size:20,className:"color-gray-600"})})]})})]})]}),E&&l.jsx("div",{className:"header-mobile-sidebar-wrapper",children:l.jsx(De,{sections:i,activeItem:d,onItemClick:W,itemBadges:w,companyName:v,companyLogo:b,isOpen:E,onClose:_})})]})]})},jN=({variant:a,logoText:r="HEXA",suiteText:t="Suite",languages:n=[{code:"es-AR",name:"Español"},{code:"en",name:"English"}],currentLanguageCode:c="es-AR",onLanguageChange:u,className:s="",...i})=>{const[d,f]=M.useState(!1),[w,v]=M.useState(null),[b,h]=M.useState(!1),C=a==="login",g=n.find(p=>p.code===c)||n[0],$=p=>{u&&u(p),f(!1)};return C?(()=>{const{style:p,...E}=i;return l.jsxs("header",{className:`w-full flex justify-between items-center bg-white ${s}`,style:{boxShadow:"0px 2px 4px -1px #0000000F, 0px 4px 6px -1px #0000001A",padding:"16px var(--mf-ds-grid-margin, 20px)",...p},...E,children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(_0,{width:36,height:40}),l.jsxs("div",{className:"flex items-center",style:{gap:"4px"},children:[l.jsx(Z,{variant:"h5",className:"font-normal",style:{color:"#2D5C63",margin:0,fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0px"},children:r}),l.jsx(Z,{variant:"h5",className:"font-normal",style:{color:"#2D5C63",margin:0,fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0px"},children:t})]})]}),n&&n.length>0&&l.jsxs("div",{className:"relative",children:[l.jsxs("div",{className:"flex items-center",style:{width:"150px",height:"40px",gap:"16px",opacity:1},children:[l.jsx(x,{name:"LanguageIcon",variant:"24-outline",size:20,style:{width:"20px",height:"20px",opacity:1}}),l.jsxs("button",{onClick:()=>f(!d),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),className:"flex items-center gap-2 text-body-md text-gray-700 bg-white hover:bg-gray-50 transition-colors",style:{width:"114px",height:"40px",padding:"8px 12px 8px 16px",gap:"8px",borderRadius:"8px",border:"1px solid #38656D",background:b?"#F9FAFB":"white",opacity:1,color:"#374151"},children:[l.jsx("span",{children:g.name}),l.jsx(x,{name:"ChevronDownIcon",variant:"24-outline",size:16,className:`transition-transform ${d?"rotate-180":""}`})]})]}),d&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>f(!1)}),l.jsx("div",{className:"absolute right-0 mt-2 bg-white z-20",style:{width:"224px",height:"112px",padding:"12px",borderRadius:"12px",border:"1px solid #E5E7EB",boxShadow:"0px 2px 4px -2px #0000001A, 0px 4px 6px -1px #0000001A",display:"flex",flexDirection:"column",gap:"8px"},children:n.map(j=>l.jsx("button",{onClick:()=>$(j.code),className:"w-full text-left transition-colors",style:{width:"200px",height:"40px",padding:0,border:"none",background:"transparent"},onMouseEnter:()=>v(j.code),onMouseLeave:()=>v(null),children:l.jsxs("div",{style:{width:"200px",height:"40px",padding:"8px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"16px",backgroundColor:g.code===j.code?"#6D3856":w===j.code?"#DDDDDD":"transparent",color:g.code===j.code?"#FFFFFF":void 0},children:[l.jsx("span",{style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"16px",lineHeight:"24px",letterSpacing:"0px",width:"144px",height:"24px",opacity:1},children:j.name}),g.code===j.code&&l.jsx("div",{style:{width:"24px",height:"24px",backgroundColor:"#FFFFFF",borderRadius:"999px",display:"flex",alignItems:"center",justifyContent:"center"},children:l.jsx(x,{name:"CheckCircleIcon",variant:"24-solid",size:24,style:{width:"24px",height:"24px",color:"#6D3856"}})})]})},j.code))})]})]})]})})():l.jsxs("header",{className:`w-full flex justify-between items-center bg-white ${s}`,style:{paddingTop:"4px",paddingBottom:"4px",paddingLeft:"8px",paddingRight:"12px"},...i,children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(_0,{width:32,height:36}),l.jsxs("div",{className:"flex items-center",style:{gap:"4px"},children:[l.jsx(Z,{variant:"h6",className:"font-normal",style:{color:"#2D5C63",margin:0},children:r}),l.jsx(Z,{variant:"h6",className:"font-normal",style:{color:"#2D5C63",margin:0},children:t})]})]}),n&&n.length>0&&l.jsxs("div",{className:"relative flex items-center gap-2",children:[l.jsx(x,{name:"LanguageIcon",variant:"24-outline",size:18,style:{color:"#374151"}}),l.jsxs("button",{onClick:()=>f(!d),className:"flex items-center gap-2 px-3 py-2 text-body-md color-gray-700 bg-white hover:bg-gray-50 rounded-lg transition-colors",style:{border:"1px solid #2D5C63"},children:[l.jsx("span",{children:g.name}),l.jsx(x,{name:"ChevronDownIcon",variant:"24-outline",size:16,className:`transition-transform ${d?"rotate-180":""}`})]}),d&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>f(!1)}),l.jsx("div",{className:"absolute right-0 mt-2 w-40 bg-white rounded-lg shadow-lg z-20 py-1",style:{border:"1px solid #2D5C63"},children:n.map(p=>l.jsx("button",{onClick:()=>$(p.code),className:`w-full text-left px-4 py-2 text-body-md hover:bg-gray-50 transition-colors ${g.code===p.code?"bg-gray-50 color-brand font-medium":"color-gray-700"}`,children:p.name},p.code))})]})]})]})},$N="#6D3856",kN=({searchPlaceholder:a="Buscar empleados, reportes, configuraciones...",userName:r,userAvatar:t,notificationCount:n=0,onSearch:c,onNotificationClick:u,onUserClick:s,showBottomBorder:i=!1,bottomBorderClassName:d="border-b border-gray-200",desktopLayoutClassName:f="",desktopLayoutStyle:w,desktopSearchContainerClassName:v="",desktopSearchContainerStyle:b,className:h="",...C})=>{const[g,$]=M.useState(""),p=V=>V>9?"9+":V,E=V=>{const A=V.target.value;$(A),c&&c(A)},j=V=>{V.preventDefault(),c&&c(g)};return l.jsxs("header",{className:`bg-white ${i?d:""} ${h}`,...C,children:[l.jsx("style",{children:`
358
356
  .header-search-input {
359
357
  border-color: #9ca3af;
360
358
  }
@@ -381,7 +379,7 @@ React keys must be passed directly to JSX without using spread:
381
379
  flex-shrink: 0;
382
380
  }
383
381
  `}),l.jsx("div",{className:"w-full",style:{paddingLeft:"4px",paddingRight:"4px"},children:l.jsxs("div",{className:`header-desktop-layout flex items-center justify-between h-16 ${f}`,style:w,children:[l.jsx("div",{className:`flex-1 mr-2 md:mr-4 ${v}`,style:{maxWidth:"none",minWidth:"0",...b||{}},children:l.jsxs("form",{onSubmit:j,className:"header-search-form flex items-center w-full",children:[l.jsx("input",{type:"text",value:g,onChange:E,placeholder:a,className:`header-search-input flex-1 pl-2 md:pl-4 pr-2 md:pr-4 py-2 md:py-2.5 bg-white border border-gray-400 rounded-l-lg \r
384
- focus:outline-none text-sm md:text-base`,style:{height:"40px",borderRight:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:"#374151",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"italic",fontSize:"14px",lineHeight:"20px",letterSpacing:"0px"}}),l.jsx("div",{className:"header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white",style:{width:"40px",height:"40px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},children:l.jsx(x,{name:"MagnifyingGlassIcon",variant:"24-outline",size:20,className:"color-gray-600"})})]})}),l.jsxs("div",{className:"header-actions-wrapper flex items-center gap-3 md:gap-6",children:[n!==void 0&&l.jsxs("button",{onClick:u,className:"relative p-2 hover:bg-gray-100 rounded-lg transition-colors","aria-label":"Notificaciones",children:[l.jsx(x,{name:"BellIcon",variant:"24-outline",size:24,className:"color-gray-600"}),n>0&&l.jsx("span",{className:"absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge",children:p(n)})]}),r&&l.jsxs("button",{onClick:s,className:"flex items-center gap-3 hover:bg-gray-50 rounded-lg px-2 py-1.5 transition-colors","aria-label":"Perfil de usuario",children:[l.jsx(z0,{src:t,name:r,size:"medium",variant:"circle"}),l.jsx(Z,{variant:"body-lg",className:"color-gray-700 hidden md:block header-user-name",children:r}),l.jsx(x,{name:"ChevronDownIcon",variant:"24-outline",size:20,className:"color-gray-500 header-user-chevron hidden md:block"})]})]})]})})]})},BN=24,LN="#FFFFFF",ON="#374151",FN="#2D5C63",HN="#FFFFFF",IN="#374151",ae="80px",U0="16px",VN="rgba(0, 0, 0, 0.1)",SN="1024px",DN="1025px",NN=[{id:"inicio",label:"Inicio",icon:"Squares2X2Icon"},{id:"docs",label:"Docs",icon:"DocumentTextIcon"},{id:"equipo",label:"Equipo",icon:"UserGroupIcon"},{id:"perfil",label:"Mi perfil",icon:"UserIcon"}],PN=({items:a=NN,activeItem:r,onItemClick:t,className:n="",...c})=>{const u=i=>{t&&t(i)},s=i=>i?`${U0} ${U0} 0 0`:"0";return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
382
+ focus:outline-none text-sm md:text-base`,style:{height:"40px",borderRight:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:"#374151",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"italic",fontSize:"14px",lineHeight:"20px",letterSpacing:"0px"}}),l.jsx("div",{className:"header-search-icon-container flex items-center justify-center border border-gray-400 rounded-r-lg bg-white",style:{width:"40px",height:"40px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0"},children:l.jsx(x,{name:"MagnifyingGlassIcon",variant:"24-outline",size:20,className:"color-gray-600"})})]})}),l.jsxs("div",{className:"header-actions-wrapper flex items-center gap-3 md:gap-6",children:[n!==void 0&&l.jsxs("button",{onClick:u,className:"relative p-2 hover:bg-gray-100 rounded-lg transition-colors","aria-label":"Notificaciones",children:[l.jsx(x,{name:"BellIcon",variant:"24-outline",size:24,className:"color-gray-600"}),n>0&&l.jsx("span",{className:"absolute -top-1 -right-1 px-1.5 py-0.5 min-w-[20px] h-5 text-white rounded-full flex items-center justify-center text-body-sm font-medium header-notification-badge",children:p(n)})]}),r&&l.jsxs("button",{onClick:s,className:"flex items-center gap-3 hover:bg-gray-50 rounded-lg px-2 py-1.5 transition-colors","aria-label":"Perfil de usuario",children:[l.jsx(z0,{src:t,name:r,size:"medium",variant:"circle"}),l.jsx(Z,{variant:"body-lg",className:"color-gray-700 hidden md:block header-user-name",children:r}),l.jsx(x,{name:"ChevronDownIcon",variant:"24-outline",size:20,className:"color-gray-500 header-user-chevron hidden md:block"})]})]})]})})]})},BN=24,LN="#FFFFFF",ON="#374151",FN="#2D5C63",HN="#FFFFFF",IN="#374151",ae="80px",U0="16px",VN="rgba(0, 0, 0, 0.1)",SN="1336px",DN="1337px",NN=[{id:"inicio",label:"Inicio",icon:"Squares2X2Icon"},{id:"docs",label:"Docs",icon:"DocumentTextIcon"},{id:"equipo",label:"Equipo",icon:"UserGroupIcon"},{id:"perfil",label:"Mi perfil",icon:"UserIcon"}],PN=({items:a=NN,activeItem:r,onItemClick:t,className:n="",...c})=>{const u=i=>{t&&t(i)},s=i=>i?`${U0} ${U0} 0 0`:"0";return l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
385
383
  .nav-point {
386
384
  border-radius: ${U0} ${U0} 0 0 !important;
387
385
  overflow: hidden !important;
@@ -461,7 +459,7 @@ React keys must be passed directly to JSX without using spread:
461
459
  text-align: ${h?"center":"left"};
462
460
  }
463
461
  }
464
- `}),l.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] grid-rows-[auto_auto] gap-x-4 gap-y-1 items-center",children:[c&&l.jsxs("div",{className:`scfd-inicio col-start-1 row-start-1 flex items-center gap-1 ${L}`,style:{paddingLeft:"8px",...U||{}},children:[l.jsx(Z,{variant:"body-md",className:K,style:{color:"#223B40",fontFamily:"IBM Plex Sans",fontWeight:700,fontStyle:"normal",fontSize:"14px",lineHeight:"20px",letterSpacing:"0%",verticalAlign:"middle",...S||{}},children:u}),s&&i?l.jsx(x,{name:i,variant:d,size:f,className:q,style:{color:"#223B40",opacity:1,transform:"rotate(0deg)",...n0||{}}}):null]}),l.jsxs("div",{className:`scfd-saludo-fecha col-start-1 col-end-3 row-start-2 flex items-center justify-between ${G}`,style:{width:"100%",minHeight:"74px",gap:"24px",opacity:1,transform:"rotate(0deg)",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"8px",boxSizing:"border-box",...y||{}},children:[l.jsx("div",{className:`scfd-greeting-wrapper min-w-0 ${V}`,style:A,children:l.jsxs(Z,{variant:"h5",className:`scfd-greeting ${J}`,style:{color:"#223B40",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"28px",lineHeight:"42px",letterSpacing:"0%",verticalAlign:"middle",...k||{}},children:[l.jsxs("span",{style:{display:"inline-block",verticalAlign:"middle",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"28px",lineHeight:"42px",letterSpacing:"0%",color:"#223B40"},children:[F,r]}),a?l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{display:"inline-block",verticalAlign:"middle"},children:", "}),l.jsx("span",{className:t0,style:{display:"inline-block",verticalAlign:"middle",color:"#223B40",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"28px",lineHeight:"42px",letterSpacing:"0%",...w0||{}},children:a})]}):null,l.jsx("span",{style:{display:"inline-block",verticalAlign:"middle"},children:Q})]})}),n&&a0?l.jsx("div",{className:`scfd-date flex items-center flex-shrink-0 ${W}`,style:_,children:l.jsx(Z,{variant:"body-lg",className:`color-gray-600 ${p0}`,style:b0,children:a0})}):null]})]})]})},Ne=({className:a="",...r})=>l.jsxs("div",{className:`bg-white ${a}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...r,children:[l.jsx("style",{children:`
462
+ `}),l.jsxs("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] grid-rows-[auto_auto] gap-x-4 gap-y-1 items-center",children:[c&&l.jsxs("div",{className:`scfd-inicio col-start-1 row-start-1 flex items-center gap-1 ${L}`,style:{paddingLeft:"8px",...U||{}},children:[l.jsx(Z,{variant:"body-md",className:K,style:{color:"#223B40",fontFamily:"IBM Plex Sans",fontWeight:700,fontStyle:"normal",fontSize:"14px",lineHeight:"20px",letterSpacing:"0%",verticalAlign:"middle",...S||{}},children:u}),s&&i?l.jsx(x,{name:i,variant:d,size:f,className:q,style:{color:"#223B40",opacity:1,transform:"rotate(0deg)",...n0||{}}}):null]}),l.jsxs("div",{className:`scfd-saludo-fecha col-start-1 col-end-3 row-start-2 flex items-center justify-between ${G}`,style:{width:"100%",minHeight:"74px",gap:"24px",opacity:1,transform:"rotate(0deg)",paddingTop:"16px",paddingBottom:"16px",paddingLeft:"8px",boxSizing:"border-box",...y||{}},children:[l.jsx("div",{className:`scfd-greeting-wrapper min-w-0 ${V}`,style:A,children:l.jsxs(Z,{variant:"h5",className:`scfd-greeting ${J}`,style:{color:"#223B40",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"28px",lineHeight:"42px",letterSpacing:"0%",verticalAlign:"middle",...k||{}},children:[l.jsxs("span",{style:{display:"inline-block",verticalAlign:"middle",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"28px",lineHeight:"42px",letterSpacing:"0%",color:"#223B40"},children:[F,r]}),a?l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{display:"inline-block",verticalAlign:"middle"},children:", "}),l.jsx("span",{className:t0,style:{display:"inline-block",verticalAlign:"middle",color:"#223B40",fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"28px",lineHeight:"42px",letterSpacing:"0%",...w0||{}},children:a})]}):null,l.jsx("span",{style:{display:"inline-block",verticalAlign:"middle"},children:Q})]})}),n&&a0?l.jsx("div",{className:`scfd-date flex items-center flex-shrink-0 ${W}`,style:_,children:l.jsx(Z,{variant:"body-lg",className:`color-gray-600 ${p0}`,style:b0,children:a0})}):null]})]})]})},eP=({className:a="",...r})=>l.jsx("div",{className:`w-full bg-white ${a}`,style:{height:"150px",border:"1px solid #c4c4c4",borderRadius:"16px",paddingTop:"24px",paddingLeft:"24px",display:"flex",flexDirection:"column"},...r,children:l.jsx(Z,{variant:"body-lg",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0%",verticalAlign:"middle",color:"#223B40"},children:"Acciones rápidas"})}),Ne=({className:a="",...r})=>l.jsxs("div",{className:`bg-white ${a}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...r,children:[l.jsx("style",{children:`
465
463
  @keyframes skeleton-pulse {
466
464
  0%, 100% {
467
465
  background-color: #DDDDDD;
@@ -473,8 +471,8 @@ React keys must be passed directly to JSX without using spread:
473
471
  .skeleton-animation {
474
472
  animation: skeleton-pulse 1.5s ease-in-out infinite;
475
473
  }
476
- `}),l.jsxs("div",{className:"h-full flex flex-col",children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},children:l.jsx("div",{className:"rounded skeleton-animation",style:{backgroundColor:"#DDDDDD",height:"20px",width:"200px"}})}),l.jsxs("div",{className:"flex-1",style:{paddingLeft:"24px",paddingRight:"24px",paddingBottom:"24px",display:"flex",flexDirection:"column",gap:"16px"},children:[l.jsx("div",{className:"rounded skeleton-animation",style:{backgroundColor:"#DDDDDD",height:"80px",width:"100%"}}),l.jsx("div",{className:"rounded skeleton-animation",style:{backgroundColor:"#DDDDDD",height:"80px",width:"100%"}}),l.jsx("div",{className:"rounded skeleton-animation",style:{backgroundColor:"#DDDDDD",height:"80px",width:"100%"}})]})]})]}),Pe=({title:a="Notificaciones",className:r="",...t})=>l.jsxs("div",{className:`bg-white ${r}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...t,children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",className:"color-gray-700",children:a})})}),l.jsxs("div",{className:"flex flex-col items-center justify-center",style:{paddingTop:"80px",paddingBottom:"24px",minHeight:"calc(476px - 60px)",display:"flex",justifyContent:"flex-start"},children:[l.jsx("div",{className:"mb-4 flex items-center justify-center",style:{width:"63.99068069458008px",height:"64px",borderRadius:"12px",paddingTop:"8px",paddingRight:"8px",paddingBottom:"8px",paddingLeft:"8px",backgroundColor:"#E6F7F0",opacity:1},children:l.jsx(x,{name:"HandThumbDownIcon",variant:"24-outline",size:32,className:"color-gray-900"})}),l.jsx(Z,{variant:"h5",className:"color-gray-900 mb-2",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"24px",lineHeight:"36px",letterSpacing:"0px",textAlign:"center"},children:"UPS..."}),l.jsx(Z,{variant:"body-lg",className:"color-gray-700 text-center",style:{fontSize:"18px",lineHeight:"27px"},children:"Parece que esta tarjeta no contiene información."})]})]}),We=({title:a="Notificaciones",errorMessage:r="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed porta elementum neque, vel vehicula nulla pharetra id.",className:t="",...n})=>l.jsxs("div",{className:`bg-white ${t}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...n,children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",className:"color-gray-700",children:a})})}),l.jsxs("div",{className:"flex flex-col items-center justify-center",style:{paddingTop:"80px",paddingBottom:"24px",minHeight:"calc(476px - 60px)",display:"flex",justifyContent:"flex-start"},children:[l.jsx("div",{className:"mb-4 flex items-center justify-center border-2 rounded-full",style:{borderColor:"#374151",width:"48px",height:"48px",opacity:1},children:l.jsx(x,{name:"XMarkIcon",variant:"24-outline",size:32,className:"color-gray-900"})}),l.jsx("div",{style:{width:"331.5px",height:"48px",opacity:1,display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"16px"},children:l.jsx(Z,{variant:"h3",style:{fontFamily:"IBM Plex Sans",fontWeight:600,fontStyle:"normal",fontSize:"32px",lineHeight:"48px",letterSpacing:"0px",textAlign:"center",color:"#2D5C63"},children:"ERROR"})}),l.jsx("div",{className:"border flex items-center justify-center",style:{width:"331.5px",height:"128px",borderRadius:"10px",borderWidth:"1px",borderColor:"#EF4444",backgroundColor:"#FEE2E2",paddingTop:"16px",paddingRight:"16px",paddingBottom:"8px",paddingLeft:"16px",opacity:1},children:l.jsx("div",{style:{width:"298px",height:"96px",opacity:1},children:l.jsx(Z,{variant:"mono-md",style:{color:"#991B1B"},children:r})})})]})]}),Te=({title:a="Notificaciones",children:r,className:t="",...n})=>l.jsxs("div",{className:`bg-white ${t}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...n,children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0%",verticalAlign:"middle",color:"#223B40",margin:0},children:a})})}),r&&l.jsx("div",{style:{width:"379.5px",height:"416px",paddingRight:"24px",paddingLeft:"24px",gap:"16px",opacity:1,display:"flex",flexDirection:"column"},children:r})]}),Ue=({title:a="Notificaciones y Alertas del Sistema de Gestión de Recursos Humanos",children:r,className:t="",...n})=>l.jsxs("div",{className:`bg-white ${t}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...n,children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0%",verticalAlign:"middle",color:"#223B40",margin:0},children:a})})}),r&&l.jsx("div",{style:{width:"379.5px",height:"416px",paddingRight:"24px",paddingLeft:"24px",gap:"16px",opacity:1,display:"flex",flexDirection:"column"},children:r})]}),ze=({title:a="Notificaciones",status:r="3 nuevas",children:t,className:n="",...c})=>l.jsxs("div",{className:`bg-white ${n}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...c,children:[l.jsxs("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:[l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0%",verticalAlign:"middle",color:"#223B40",margin:0},children:a})}),l.jsx("span",{className:"text-sm font-medium flex-shrink-0 ml-2 flex items-center justify-center",style:{width:"90px",height:"24px",borderRadius:"12px",paddingTop:"2px",paddingRight:"12px",paddingBottom:"4px",paddingLeft:"12px",backgroundColor:"#E6F7F0",color:"#2D5C63",opacity:1},children:r})]}),t&&l.jsx("div",{style:{width:"379.5px",height:"416px",paddingRight:"24px",paddingLeft:"24px",gap:"16px",opacity:1,display:"flex",flexDirection:"column"},children:t})]}),_e=({title:a="Notificaciones y Alertas del Sistema de Gestión de Recursos Humanos",status:r="3 nuevas",children:t,className:n="",...c})=>l.jsxs("div",{className:`bg-white ${n}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...c,children:[l.jsxs("div",{style:{width:"379.5px",height:"90px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:[l.jsx("div",{style:{width:"241.5px",height:"60px",opacity:1},children:l.jsx(Z,{variant:"body-md",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0%",verticalAlign:"middle",color:"#223B40",margin:0},children:a})}),l.jsx("span",{className:"text-sm font-medium flex-shrink-0 ml-2 flex items-center justify-center",style:{width:"90px",height:"24px",borderRadius:"12px",paddingTop:"2px",paddingRight:"12px",paddingBottom:"4px",paddingLeft:"12px",backgroundColor:"#E6F7F0",color:"#2D5C63",opacity:1},children:r})]}),t&&l.jsx("div",{style:{width:"379.5px",height:"416px",paddingRight:"24px",paddingLeft:"24px",gap:"16px",opacity:1,display:"flex",flexDirection:"column"},children:t})]}),eP=({loading:a=!1,error:r=null,hasData:t=null,data:n=null,variant:c="corto",title:u="Notificaciones",status:s=null,errorMessage:i=null,children:d=null,className:f="",...w})=>{if(a)return l.jsx(Ne,{className:f,...w});if(r)return l.jsx(We,{title:u,errorMessage:i||r,className:f,...w});if(!(t!==null?t:n!=null&&n!==""))return l.jsx(Pe,{title:u,className:f,...w});switch(c){case"largo":return l.jsx(Ue,{title:u,className:f,...w,children:d});case"cortoMasEstado":return l.jsx(ze,{title:u,status:s,className:f,...w,children:d});case"largoMasEstado":return l.jsx(_e,{title:u,status:s,className:f,...w,children:d});case"corto":default:return l.jsx(Te,{title:u,className:f,...w,children:d})}},aP={MuiTablePagination:{labelRowsPerPage:"Filas por página",labelDisplayedRows:({from:a,to:r,count:t})=>`${a}–${r} de ${t!==-1?t:`más de ${r}`}`},toolbarDensity:"Densidad",toolbarDensityLabel:"Densidad",toolbarDensityCompact:"Compacta",toolbarDensityStandard:"Estándar",toolbarDensityComfortable:"Cómoda",toolbarFilters:"Filtros",toolbarFiltersLabel:"Mostrar filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Mostrar filtros",toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Descargar como CSV",toolbarExportPrint:"Imprimir",toolbarColumns:"Columnas",toolbarColumnsLabel:"Seleccionar columnas",filterPanelAddFilter:"Agregar filtro",filterPanelDeleteIconLabel:"Eliminar",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"Y",filterPanelOperatorOr:"O",filterPanelColumns:"Columnas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Valor del filtro",filterPanelInputPlaceholderOperator:"Operador",noRowsLabel:"No hay datos disponibles",noResultsOverlayLabel:"No se encontraron resultados",errorOverlayDefaultLabel:"Ocurrió un error",loadingOverlayLabel:"Cargando...",footerRowSelected:a=>a!==1?`${a} filas seleccionadas`:`${a} fila seleccionada`},rP=({columns:a=[],rows:r=[],loading:t=!1,emptyMessage:n,pageSize:c=10,pageSizeOptions:u=[5,10,25,50],className:s="",...i})=>{const{t:d}=f0.useTranslation(),f=a.map(h=>{const C=h.translationKey?d(h.translationKey):h.label||h.headerName;return{...h,headerName:C,label:C}}),w=[{field:"id",headerName:d("table.id"),width:90,translationKey:"table.id"},{field:"name",headerName:d("table.name"),width:200,translationKey:"table.name"},{field:"email",headerName:d("table.email"),width:250,translationKey:"table.email"},{field:"role",headerName:d("table.role"),width:150,translationKey:"table.role"}],v=f.length>0?f:w,b={...aP,...n&&{noRowsLabel:n}};return l.jsx(a5.Box,{className:s,sx:{height:400,width:"100%"},children:l.jsx(e5.DataGrid,{rows:r,columns:v,loading:t,pageSizeOptions:u,initialState:{pagination:{paginationModel:{pageSize:c}}},localeText:b,disableRowSelectionOnClick:!0,...i})})},nP=({series:a=[],categories:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6"],showLegend:u=!0,showToolbar:s=!0,className:i="",...d})=>{const f=M.useMemo(()=>({chart:{type:"line",height:n,toolbar:{show:s,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}}},colors:c,stroke:{curve:"smooth",width:2},xaxis:{categories:r,labels:{style:{colors:"#6B7280"}}},yaxis:{labels:{style:{colors:"#6B7280"}}},legend:{show:u,position:"top",horizontalAlign:"center"},grid:{borderColor:"#E5E7EB",strokeDashArray:4},tooltip:{theme:"light"},dataLabels:{enabled:!1}}),[r,c,n,u,s]);return l.jsxs("div",{className:i,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:f,series:a,type:"line",height:n,...d})]})},tP=({series:a=[],categories:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6"],showLegend:u=!0,showToolbar:s=!0,horizontal:i=!1,className:d="",...f})=>{const w=M.useMemo(()=>({chart:{type:"bar",height:n,toolbar:{show:s,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}}},colors:c,plotOptions:{bar:{horizontal:i,borderRadius:4,columnWidth:"55%"}},xaxis:{categories:r,labels:{style:{colors:"#6B7280"}}},yaxis:{labels:{style:{colors:"#6B7280"}}},legend:{show:u,position:"top",horizontalAlign:"center"},grid:{borderColor:"#E5E7EB",strokeDashArray:4},tooltip:{theme:"light"},dataLabels:{enabled:!1}}),[r,c,n,u,s,i]);return l.jsxs("div",{className:d,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:w,series:a,type:"bar",height:n,...f})]})},lP=({series:a=[],categories:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6"],showLegend:u=!0,showToolbar:s=!0,className:i="",...d})=>{const f=M.useMemo(()=>({chart:{type:"area",height:n,toolbar:{show:s,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}}},colors:c,stroke:{curve:"smooth",width:2},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.3,stops:[0,90,100]}},xaxis:{categories:r,labels:{style:{colors:"#6B7280"}}},yaxis:{labels:{style:{colors:"#6B7280"}}},legend:{show:u,position:"top",horizontalAlign:"center"},grid:{borderColor:"#E5E7EB",strokeDashArray:4},tooltip:{theme:"light"},dataLabels:{enabled:!1}}),[r,c,n,u,s]);return l.jsxs("div",{className:i,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:f,series:a,type:"area",height:n,...d})]})},oP=({series:a=[],labels:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6","#EC4899","#06B6D4"],showLegend:u=!0,className:s="",...i})=>{const d=M.useMemo(()=>({chart:{type:"pie",height:n,toolbar:{show:!1}},colors:c,labels:r,legend:{show:u,position:"bottom"},dataLabels:{enabled:!0,formatter:f=>`${f.toFixed(1)}%`},tooltip:{theme:"light",y:{formatter:f=>`${f}`}},plotOptions:{pie:{donut:{size:"0%"}}}}),[r,c,n,u]);return l.jsxs("div",{className:s,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:d,series:a,type:"pie",height:n,...i})]})},cP=({series:a=[],labels:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6","#EC4899","#06B6D4"],showLegend:u=!0,donutSize:s="70%",className:i="",...d})=>{const f=M.useMemo(()=>({chart:{type:"donut",height:n,toolbar:{show:!1}},colors:c,labels:r,legend:{show:u,position:"bottom"},dataLabels:{enabled:!0,formatter:w=>`${w.toFixed(1)}%`},tooltip:{theme:"light",y:{formatter:w=>`${w}`}},plotOptions:{pie:{donut:{size:s,labels:{show:!0,name:{show:!0},value:{show:!0,formatter:w=>`${w}`},total:{show:!0,label:"Total",formatter:()=>a.reduce((v,b)=>v+b,0).toString()}}}}}}),[r,c,n,u,s,a]);return l.jsxs("div",{className:i,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:f,series:a,type:"donut",height:n,...d})]})},iP=({series:a=[],categories:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6"],showLegend:u=!0,showToolbar:s=!0,className:i="",...d})=>{const f=M.useMemo(()=>({chart:{type:"column",height:n,toolbar:{show:s,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}}},colors:c,plotOptions:{bar:{horizontal:!1,borderRadius:4,columnWidth:"55%",dataLabels:{position:"top"}}},xaxis:{categories:r,labels:{style:{colors:"#6B7280"}}},yaxis:{labels:{style:{colors:"#6B7280"}}},legend:{show:u,position:"top",horizontalAlign:"center"},grid:{borderColor:"#E5E7EB",strokeDashArray:4},tooltip:{theme:"light"},dataLabels:{enabled:!1}}),[r,c,n,u,s]);return l.jsxs("div",{className:i,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:f,series:a,type:"bar",height:n,...d})]})},dP=({icon:a="DocumentIcon",title:r="No hay datos",description:t="No se encontraron elementos para mostrar.",actionLabel:n,onAction:c,className:u="",...s})=>l.jsxs("div",{className:`flex flex-col items-center justify-center py-12 px-4 ${u}`,...s,children:[l.jsx("div",{className:"mb-4",children:l.jsx(x,{name:a,className:"h-16 w-16 text-gray-400"})}),l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:r}),l.jsx("p",{className:"text-sm text-gray-500 text-center max-w-sm mb-4",children:t}),n&&c&&l.jsx(s0,{variant:"primary",onClick:c,children:n})]}),sP=({title:a,value:r,change:t,changeType:n="neutral",icon:c,iconColor:u="blue",className:s="",...i})=>{const d={blue:"bg-blue-100 text-blue-600",green:"bg-green-100 text-green-600",yellow:"bg-yellow-100 text-yellow-600",red:"bg-red-100 text-red-600",purple:"bg-purple-100 text-purple-600"},f={positive:"text-green-600",negative:"text-red-600",neutral:"text-gray-600"};return l.jsx("div",{className:`bg-white rounded-lg shadow-md p-6 ${s}`,...i,children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex-1",children:[l.jsx(Z,{variant:"body2",className:"text-gray-600 mb-1",children:a}),l.jsx(Z,{variant:"h3",className:"text-gray-900 mb-2",children:r}),t&&l.jsx("div",{className:`flex items-center text-sm ${f[n]}`,children:l.jsx("span",{children:t})})]}),c&&l.jsx("div",{className:`p-3 rounded-lg ${d[u]}`,children:l.jsx(x,{name:c,className:"h-6 w-6"})})]})})},uP=({items:a=[],className:r="",...t})=>a.length===0?null:l.jsx("div",{className:r,...t,children:l.jsx("ol",{className:"relative border-l border-gray-200",children:a.map((n,c)=>{const u=c===a.length-1;return l.jsxs("li",{className:`mb-10 ml-6 ${u?"mb-0":""}`,children:[l.jsx("div",{className:"absolute w-3 h-3 bg-gray-200 rounded-full mt-1.5 -left-1.5 border border-white"}),l.jsx("time",{className:"mb-1 text-sm font-normal leading-none text-gray-400",children:n.date}),l.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:n.title}),n.description&&l.jsx("p",{className:"mb-4 text-base font-normal text-gray-500",children:n.description}),n.icon&&l.jsx("div",{className:"absolute -left-8 top-0",children:l.jsx(x,{name:n.icon,className:"h-6 w-6 text-gray-400"})})]},c)})})}),fP=({items:a=[],variant:r="default",className:t="",...n})=>{if(a.length===0)return null;const c={default:"divide-y divide-gray-200",none:""};return l.jsx("ul",{className:`${c[r]} ${t}`,...n,children:a.map((u,s)=>l.jsx("li",{className:"py-3",children:typeof u=="string"?l.jsx("span",{className:"text-gray-900",children:u}):u},s))})},wP=({tags:a=[],onRemove:r,variant:t="default",className:n="",...c})=>a.length===0?null:l.jsx("div",{className:`flex flex-wrap gap-2 ${n}`,...c,children:a.map((u,s)=>{const i=typeof u=="string"?u:u.label,d=typeof u=="string"?t:u.variant||t;return l.jsxs($e,{variant:d,children:[i,r&&l.jsx("button",{onClick:()=>r(s),className:"ml-2 hover:text-gray-800",children:"×"})]},s)})}),hP=({label:a,placeholder:r,value:t,onChange:n,error:c,required:u=!1,disabled:s=!1,variant:i,className:d="",inputClassName:f="",labelClassName:w="",labelStyle:v,...b})=>{const[h,C]=M.useState(!1),g=i==="hexa-login",p=`
474
+ `}),l.jsxs("div",{className:"h-full flex flex-col",children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},children:l.jsx("div",{className:"rounded skeleton-animation",style:{backgroundColor:"#DDDDDD",height:"20px",width:"200px"}})}),l.jsxs("div",{className:"flex-1",style:{paddingLeft:"24px",paddingRight:"24px",paddingBottom:"24px",display:"flex",flexDirection:"column",gap:"16px"},children:[l.jsx("div",{className:"rounded skeleton-animation",style:{backgroundColor:"#DDDDDD",height:"80px",width:"100%"}}),l.jsx("div",{className:"rounded skeleton-animation",style:{backgroundColor:"#DDDDDD",height:"80px",width:"100%"}}),l.jsx("div",{className:"rounded skeleton-animation",style:{backgroundColor:"#DDDDDD",height:"80px",width:"100%"}})]})]})]}),Pe=({title:a="Notificaciones",className:r="",...t})=>l.jsxs("div",{className:`bg-white ${r}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...t,children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",className:"color-gray-700",children:a})})}),l.jsxs("div",{className:"flex flex-col items-center justify-center",style:{paddingTop:"80px",paddingBottom:"24px",minHeight:"calc(476px - 60px)",display:"flex",justifyContent:"flex-start"},children:[l.jsx("div",{className:"mb-4 flex items-center justify-center",style:{width:"63.99068069458008px",height:"64px",borderRadius:"12px",paddingTop:"8px",paddingRight:"8px",paddingBottom:"8px",paddingLeft:"8px",backgroundColor:"#E6F7F0",opacity:1},children:l.jsx(x,{name:"HandThumbDownIcon",variant:"24-outline",size:32,className:"color-gray-900"})}),l.jsx(Z,{variant:"h5",className:"color-gray-900 mb-2",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"24px",lineHeight:"36px",letterSpacing:"0px",textAlign:"center"},children:"UPS..."}),l.jsx(Z,{variant:"body-lg",className:"color-gray-700 text-center",style:{fontSize:"18px",lineHeight:"27px"},children:"Parece que esta tarjeta no contiene información."})]})]}),We=({title:a="Notificaciones",errorMessage:r="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed porta elementum neque, vel vehicula nulla pharetra id.",className:t="",...n})=>l.jsxs("div",{className:`bg-white ${t}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...n,children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",className:"color-gray-700",children:a})})}),l.jsxs("div",{className:"flex flex-col items-center justify-center",style:{paddingTop:"80px",paddingBottom:"24px",minHeight:"calc(476px - 60px)",display:"flex",justifyContent:"flex-start"},children:[l.jsx("div",{className:"mb-4 flex items-center justify-center border-2 rounded-full",style:{borderColor:"#374151",width:"48px",height:"48px",opacity:1},children:l.jsx(x,{name:"XMarkIcon",variant:"24-outline",size:32,className:"color-gray-900"})}),l.jsx("div",{style:{width:"331.5px",height:"48px",opacity:1,display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"16px"},children:l.jsx(Z,{variant:"h3",style:{fontFamily:"IBM Plex Sans",fontWeight:600,fontStyle:"normal",fontSize:"32px",lineHeight:"48px",letterSpacing:"0px",textAlign:"center",color:"#2D5C63"},children:"ERROR"})}),l.jsx("div",{className:"border flex items-center justify-center",style:{width:"331.5px",height:"128px",borderRadius:"10px",borderWidth:"1px",borderColor:"#EF4444",backgroundColor:"#FEE2E2",paddingTop:"16px",paddingRight:"16px",paddingBottom:"8px",paddingLeft:"16px",opacity:1},children:l.jsx("div",{style:{width:"298px",height:"96px",opacity:1},children:l.jsx(Z,{variant:"mono-md",style:{color:"#991B1B"},children:r})})})]})]}),Te=({title:a="Notificaciones",children:r,className:t="",...n})=>l.jsxs("div",{className:`bg-white ${t}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...n,children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0%",verticalAlign:"middle",color:"#223B40",margin:0},children:a})})}),r&&l.jsx("div",{style:{width:"379.5px",height:"416px",paddingRight:"24px",paddingLeft:"24px",gap:"16px",opacity:1,display:"flex",flexDirection:"column"},children:r})]}),Ue=({title:a="Notificaciones y Alertas del Sistema de Gestión de Recursos Humanos",children:r,className:t="",...n})=>l.jsxs("div",{className:`bg-white ${t}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...n,children:[l.jsx("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0%",verticalAlign:"middle",color:"#223B40",margin:0},children:a})})}),r&&l.jsx("div",{style:{width:"379.5px",height:"416px",paddingRight:"24px",paddingLeft:"24px",gap:"16px",opacity:1,display:"flex",flexDirection:"column"},children:r})]}),ze=({title:a="Notificaciones",status:r="3 nuevas",children:t,className:n="",...c})=>l.jsxs("div",{className:`bg-white ${n}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...c,children:[l.jsxs("div",{style:{width:"379.5px",height:"60px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:[l.jsx("div",{style:{width:"331.5px",height:"30px",opacity:1},children:l.jsx(Z,{variant:"body-md",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0%",verticalAlign:"middle",color:"#223B40",margin:0},children:a})}),l.jsx("span",{className:"text-sm font-medium flex-shrink-0 ml-2 flex items-center justify-center",style:{width:"90px",height:"24px",borderRadius:"12px",paddingTop:"2px",paddingRight:"12px",paddingBottom:"4px",paddingLeft:"12px",backgroundColor:"#E6F7F0",color:"#2D5C63",opacity:1},children:r})]}),t&&l.jsx("div",{style:{width:"379.5px",height:"416px",paddingRight:"24px",paddingLeft:"24px",gap:"16px",opacity:1,display:"flex",flexDirection:"column"},children:t})]}),_e=({title:a="Notificaciones y Alertas del Sistema de Gestión de Recursos Humanos",status:r="3 nuevas",children:t,className:n="",...c})=>l.jsxs("div",{className:`bg-white ${n}`,style:{width:"379.5px",height:"476px",borderRadius:"14px",border:"1px solid #C4C4C4",opacity:1},...c,children:[l.jsxs("div",{style:{width:"379.5px",height:"90px",paddingTop:"24px",paddingRight:"24px",paddingBottom:"6px",paddingLeft:"24px",opacity:1},className:"flex items-start justify-between",children:[l.jsx("div",{style:{width:"241.5px",height:"60px",opacity:1},children:l.jsx(Z,{variant:"body-md",style:{fontFamily:"IBM Plex Sans",fontWeight:400,fontStyle:"normal",fontSize:"20px",lineHeight:"30px",letterSpacing:"0%",verticalAlign:"middle",color:"#223B40",margin:0},children:a})}),l.jsx("span",{className:"text-sm font-medium flex-shrink-0 ml-2 flex items-center justify-center",style:{width:"90px",height:"24px",borderRadius:"12px",paddingTop:"2px",paddingRight:"12px",paddingBottom:"4px",paddingLeft:"12px",backgroundColor:"#E6F7F0",color:"#2D5C63",opacity:1},children:r})]}),t&&l.jsx("div",{style:{width:"379.5px",height:"416px",paddingRight:"24px",paddingLeft:"24px",gap:"16px",opacity:1,display:"flex",flexDirection:"column"},children:t})]}),aP=({loading:a=!1,error:r=null,hasData:t=null,data:n=null,variant:c="corto",title:u="Notificaciones",status:s=null,errorMessage:i=null,children:d=null,className:f="",...w})=>{if(a)return l.jsx(Ne,{className:f,...w});if(r)return l.jsx(We,{title:u,errorMessage:i||r,className:f,...w});if(!(t!==null?t:n!=null&&n!==""))return l.jsx(Pe,{title:u,className:f,...w});switch(c){case"largo":return l.jsx(Ue,{title:u,className:f,...w,children:d});case"cortoMasEstado":return l.jsx(ze,{title:u,status:s,className:f,...w,children:d});case"largoMasEstado":return l.jsx(_e,{title:u,status:s,className:f,...w,children:d});case"corto":default:return l.jsx(Te,{title:u,className:f,...w,children:d})}},rP={MuiTablePagination:{labelRowsPerPage:"Filas por página",labelDisplayedRows:({from:a,to:r,count:t})=>`${a}–${r} de ${t!==-1?t:`más de ${r}`}`},toolbarDensity:"Densidad",toolbarDensityLabel:"Densidad",toolbarDensityCompact:"Compacta",toolbarDensityStandard:"Estándar",toolbarDensityComfortable:"Cómoda",toolbarFilters:"Filtros",toolbarFiltersLabel:"Mostrar filtros",toolbarFiltersTooltipHide:"Ocultar filtros",toolbarFiltersTooltipShow:"Mostrar filtros",toolbarExport:"Exportar",toolbarExportLabel:"Exportar",toolbarExportCSV:"Descargar como CSV",toolbarExportPrint:"Imprimir",toolbarColumns:"Columnas",toolbarColumnsLabel:"Seleccionar columnas",filterPanelAddFilter:"Agregar filtro",filterPanelDeleteIconLabel:"Eliminar",filterPanelOperators:"Operadores",filterPanelOperatorAnd:"Y",filterPanelOperatorOr:"O",filterPanelColumns:"Columnas",filterPanelInputLabel:"Valor",filterPanelInputPlaceholder:"Valor del filtro",filterPanelInputPlaceholderOperator:"Operador",noRowsLabel:"No hay datos disponibles",noResultsOverlayLabel:"No se encontraron resultados",errorOverlayDefaultLabel:"Ocurrió un error",loadingOverlayLabel:"Cargando...",footerRowSelected:a=>a!==1?`${a} filas seleccionadas`:`${a} fila seleccionada`},nP=({columns:a=[],rows:r=[],loading:t=!1,emptyMessage:n,pageSize:c=10,pageSizeOptions:u=[5,10,25,50],className:s="",...i})=>{const{t:d}=f0.useTranslation(),f=a.map(h=>{const C=h.translationKey?d(h.translationKey):h.label||h.headerName;return{...h,headerName:C,label:C}}),w=[{field:"id",headerName:d("table.id"),width:90,translationKey:"table.id"},{field:"name",headerName:d("table.name"),width:200,translationKey:"table.name"},{field:"email",headerName:d("table.email"),width:250,translationKey:"table.email"},{field:"role",headerName:d("table.role"),width:150,translationKey:"table.role"}],v=f.length>0?f:w,b={...rP,...n&&{noRowsLabel:n}};return l.jsx(a5.Box,{className:s,sx:{height:400,width:"100%"},children:l.jsx(e5.DataGrid,{rows:r,columns:v,loading:t,pageSizeOptions:u,initialState:{pagination:{paginationModel:{pageSize:c}}},localeText:b,disableRowSelectionOnClick:!0,...i})})},tP=({series:a=[],categories:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6"],showLegend:u=!0,showToolbar:s=!0,className:i="",...d})=>{const f=M.useMemo(()=>({chart:{type:"line",height:n,toolbar:{show:s,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}}},colors:c,stroke:{curve:"smooth",width:2},xaxis:{categories:r,labels:{style:{colors:"#6B7280"}}},yaxis:{labels:{style:{colors:"#6B7280"}}},legend:{show:u,position:"top",horizontalAlign:"center"},grid:{borderColor:"#E5E7EB",strokeDashArray:4},tooltip:{theme:"light"},dataLabels:{enabled:!1}}),[r,c,n,u,s]);return l.jsxs("div",{className:i,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:f,series:a,type:"line",height:n,...d})]})},lP=({series:a=[],categories:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6"],showLegend:u=!0,showToolbar:s=!0,horizontal:i=!1,className:d="",...f})=>{const w=M.useMemo(()=>({chart:{type:"bar",height:n,toolbar:{show:s,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}}},colors:c,plotOptions:{bar:{horizontal:i,borderRadius:4,columnWidth:"55%"}},xaxis:{categories:r,labels:{style:{colors:"#6B7280"}}},yaxis:{labels:{style:{colors:"#6B7280"}}},legend:{show:u,position:"top",horizontalAlign:"center"},grid:{borderColor:"#E5E7EB",strokeDashArray:4},tooltip:{theme:"light"},dataLabels:{enabled:!1}}),[r,c,n,u,s,i]);return l.jsxs("div",{className:d,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:w,series:a,type:"bar",height:n,...f})]})},oP=({series:a=[],categories:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6"],showLegend:u=!0,showToolbar:s=!0,className:i="",...d})=>{const f=M.useMemo(()=>({chart:{type:"area",height:n,toolbar:{show:s,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}}},colors:c,stroke:{curve:"smooth",width:2},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.3,stops:[0,90,100]}},xaxis:{categories:r,labels:{style:{colors:"#6B7280"}}},yaxis:{labels:{style:{colors:"#6B7280"}}},legend:{show:u,position:"top",horizontalAlign:"center"},grid:{borderColor:"#E5E7EB",strokeDashArray:4},tooltip:{theme:"light"},dataLabels:{enabled:!1}}),[r,c,n,u,s]);return l.jsxs("div",{className:i,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:f,series:a,type:"area",height:n,...d})]})},cP=({series:a=[],labels:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6","#EC4899","#06B6D4"],showLegend:u=!0,className:s="",...i})=>{const d=M.useMemo(()=>({chart:{type:"pie",height:n,toolbar:{show:!1}},colors:c,labels:r,legend:{show:u,position:"bottom"},dataLabels:{enabled:!0,formatter:f=>`${f.toFixed(1)}%`},tooltip:{theme:"light",y:{formatter:f=>`${f}`}},plotOptions:{pie:{donut:{size:"0%"}}}}),[r,c,n,u]);return l.jsxs("div",{className:s,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:d,series:a,type:"pie",height:n,...i})]})},iP=({series:a=[],labels:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6","#EC4899","#06B6D4"],showLegend:u=!0,donutSize:s="70%",className:i="",...d})=>{const f=M.useMemo(()=>({chart:{type:"donut",height:n,toolbar:{show:!1}},colors:c,labels:r,legend:{show:u,position:"bottom"},dataLabels:{enabled:!0,formatter:w=>`${w.toFixed(1)}%`},tooltip:{theme:"light",y:{formatter:w=>`${w}`}},plotOptions:{pie:{donut:{size:s,labels:{show:!0,name:{show:!0},value:{show:!0,formatter:w=>`${w}`},total:{show:!0,label:"Total",formatter:()=>a.reduce((v,b)=>v+b,0).toString()}}}}}}),[r,c,n,u,s,a]);return l.jsxs("div",{className:i,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:f,series:a,type:"donut",height:n,...d})]})},dP=({series:a=[],categories:r=[],title:t="",height:n=350,colors:c=["#3B82F6","#10B981","#F59E0B","#EF4444","#8B5CF6"],showLegend:u=!0,showToolbar:s=!0,className:i="",...d})=>{const f=M.useMemo(()=>({chart:{type:"column",height:n,toolbar:{show:s,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}}},colors:c,plotOptions:{bar:{horizontal:!1,borderRadius:4,columnWidth:"55%",dataLabels:{position:"top"}}},xaxis:{categories:r,labels:{style:{colors:"#6B7280"}}},yaxis:{labels:{style:{colors:"#6B7280"}}},legend:{show:u,position:"top",horizontalAlign:"center"},grid:{borderColor:"#E5E7EB",strokeDashArray:4},tooltip:{theme:"light"},dataLabels:{enabled:!1}}),[r,c,n,u,s]);return l.jsxs("div",{className:i,children:[t&&l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:t}),l.jsx(q0,{options:f,series:a,type:"bar",height:n,...d})]})},sP=({icon:a="DocumentIcon",title:r="No hay datos",description:t="No se encontraron elementos para mostrar.",actionLabel:n,onAction:c,className:u="",...s})=>l.jsxs("div",{className:`flex flex-col items-center justify-center py-12 px-4 ${u}`,...s,children:[l.jsx("div",{className:"mb-4",children:l.jsx(x,{name:a,className:"h-16 w-16 text-gray-400"})}),l.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:r}),l.jsx("p",{className:"text-sm text-gray-500 text-center max-w-sm mb-4",children:t}),n&&c&&l.jsx(s0,{variant:"primary",onClick:c,children:n})]}),uP=({title:a,value:r,change:t,changeType:n="neutral",icon:c,iconColor:u="blue",className:s="",...i})=>{const d={blue:"bg-blue-100 text-blue-600",green:"bg-green-100 text-green-600",yellow:"bg-yellow-100 text-yellow-600",red:"bg-red-100 text-red-600",purple:"bg-purple-100 text-purple-600"},f={positive:"text-green-600",negative:"text-red-600",neutral:"text-gray-600"};return l.jsx("div",{className:`bg-white rounded-lg shadow-md p-6 ${s}`,...i,children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex-1",children:[l.jsx(Z,{variant:"body2",className:"text-gray-600 mb-1",children:a}),l.jsx(Z,{variant:"h3",className:"text-gray-900 mb-2",children:r}),t&&l.jsx("div",{className:`flex items-center text-sm ${f[n]}`,children:l.jsx("span",{children:t})})]}),c&&l.jsx("div",{className:`p-3 rounded-lg ${d[u]}`,children:l.jsx(x,{name:c,className:"h-6 w-6"})})]})})},fP=({items:a=[],className:r="",...t})=>a.length===0?null:l.jsx("div",{className:r,...t,children:l.jsx("ol",{className:"relative border-l border-gray-200",children:a.map((n,c)=>{const u=c===a.length-1;return l.jsxs("li",{className:`mb-10 ml-6 ${u?"mb-0":""}`,children:[l.jsx("div",{className:"absolute w-3 h-3 bg-gray-200 rounded-full mt-1.5 -left-1.5 border border-white"}),l.jsx("time",{className:"mb-1 text-sm font-normal leading-none text-gray-400",children:n.date}),l.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:n.title}),n.description&&l.jsx("p",{className:"mb-4 text-base font-normal text-gray-500",children:n.description}),n.icon&&l.jsx("div",{className:"absolute -left-8 top-0",children:l.jsx(x,{name:n.icon,className:"h-6 w-6 text-gray-400"})})]},c)})})}),wP=({items:a=[],variant:r="default",className:t="",...n})=>{if(a.length===0)return null;const c={default:"divide-y divide-gray-200",none:""};return l.jsx("ul",{className:`${c[r]} ${t}`,...n,children:a.map((u,s)=>l.jsx("li",{className:"py-3",children:typeof u=="string"?l.jsx("span",{className:"text-gray-900",children:u}):u},s))})},hP=({tags:a=[],onRemove:r,variant:t="default",className:n="",...c})=>a.length===0?null:l.jsx("div",{className:`flex flex-wrap gap-2 ${n}`,...c,children:a.map((u,s)=>{const i=typeof u=="string"?u:u.label,d=typeof u=="string"?t:u.variant||t;return l.jsxs($e,{variant:d,children:[i,r&&l.jsx("button",{onClick:()=>r(s),className:"ml-2 hover:text-gray-800",children:"×"})]},s)})}),mP=({label:a,placeholder:r,value:t,onChange:n,error:c,required:u=!1,disabled:s=!1,variant:i,className:d="",inputClassName:f="",labelClassName:w="",labelStyle:v,...b})=>{const[h,C]=M.useState(!1),g=i==="hexa-login",p=`
477
475
  ${g?"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900":"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:bg-gray-100 disabled:cursor-not-allowed"}
478
476
  ${g?"":c?"border-red-500":"border-gray-300"}
479
477
  ${f}
480
- `.trim().replace(/\s+/g," ");return l.jsxs("div",{className:`w-full ${d}`,children:[a&&l.jsxs("label",{className:w||"block text-sm font-medium text-gray-700 mb-1",style:v,children:[a,u&&l.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),l.jsxs("div",{className:"relative w-full",children:[l.jsx("input",{type:h?"text":"password",placeholder:r,disabled:s,value:t,onChange:n,className:p,...b}),l.jsx("button",{type:"button",tabIndex:-1,onClick:()=>C(E=>!E),className:"absolute",style:{top:"50%",transform:"translateY(-50%)",right:"0.75rem",color:"#6b7280"},"aria-label":h?"Ocultar contraseña":"Mostrar contraseña",children:l.jsx(x,{name:h?"EyeSlashIcon":"EyeIcon",variant:"24-outline",size:18})})]}),c&&!g&&l.jsx("p",{className:"mt-1 text-sm text-red-600",children:c})]})},mP=({variant:a,onSubmit:r,loading:t=!1,onForgotPassword:n,onGoogleLogin:c,onMicrosoftLogin:u,showSocialLogin:s=!0,showDivider:i=!0,showPasswordRequirementsOnError:d=!0,labels:f,generalError:w,generalErrorTitle:v,generalErrorSubtitle:b,className:h="",...C})=>{const{t:g}=f0.useTranslation(),$=a==="hexa-login",[p,E]=M.useState({email:"",password:"",rememberMe:!1}),[j,V]=M.useState({}),A=(y,L)=>{E(U=>({...U,[y]:L})),j[y]&&V(U=>({...U,[y]:null}))},W=y=>{y.preventDefault();const L={};if(p.email||(L.email=g("form.email")+" is required"),p.password||(L.password=g("form.password")+" is required"),Object.keys(L).length>0){V(L);return}r&&r(p)},_={emailLabel:f?.emailLabel??g("form.email")??"Email",passwordLabel:f?.passwordLabel??g("form.password")??"Contraseña",rememberMeLabel:f?.rememberMeLabel??g("form.rememberMe")??"Recordarme",forgotPasswordLabel:f?.forgotPasswordLabel??g("form.forgotPassword")??"Olvidé mi contraseña",continueWithLabel:f?.continueWithLabel??"Continuar con",googleLabel:f?.googleLabel??"Google",microsoftLabel:f?.microsoftLabel??"Microsoft"},G=t?g("form.loggingIn")??"Ingresando...":g("form.login")??"Ingresar";return $?l.jsx("div",{style:{width:"427px",minHeight:"409px",borderRadius:"14px",border:"1px solid #0000001A",padding:"24px",background:"#FFFFFF",boxShadow:"0px 4px 6px -4px #0000001A, 0px 10px 15px -3px #0000001A"},children:l.jsxs("form",{onSubmit:W,className:h,...C,children:[l.jsxs("div",{className:"w-full",children:[l.jsx("label",{className:"block mb-2 font-medium text-sm",style:{color:"#2D5C63"},children:_.emailLabel}),l.jsx("input",{type:"email",value:p.email,onChange:y=>A("email",y.target.value),placeholder:"Ingresa tu correo electronico",className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900",style:{borderColor:j.email?"#ef4444":"#2D5C63"}})]}),l.jsx("div",{className:"w-full mt-4",children:l.jsx(hP,{variant:"hexa-login",label:_.passwordLabel,labelClassName:"block mb-2 font-medium text-sm",labelStyle:{color:"#2D5C63"},placeholder:g("placeholder.password"),value:p.password,onChange:y=>A("password",y.target.value),inputClassName:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900",style:{paddingRight:"2.75rem",borderColor:j.password?"#ef4444":"#2D5C63"}})}),d&&!!j.password&&l.jsx("div",{className:"rounded-lg p-4 border mt-4",style:{background:"#f5f3ff",borderColor:"#a78bfa",color:"#0c4a6e",fontFamily:"IBM Plex Mono"},children:l.jsxs("ul",{className:"list-disc list-inside text-sm space-y-1",style:{color:"#0c4a6e"},children:[l.jsx("li",{children:"Al menos 8 caracteres"}),l.jsx("li",{children:"Al menos una letra mayúscula"}),l.jsx("li",{children:"Al menos un número"}),l.jsx("li",{children:"Al menos un caracter especial"})]})}),l.jsxs("div",{className:"flex items-center justify-between mt-4",children:[l.jsxs("label",{className:"flex items-center",children:[l.jsx("input",{type:"checkbox",checked:p.rememberMe,onChange:y=>A("rememberMe",y.target.checked),className:"w-4 h-4 border-gray-300 rounded focus:outline-none focus:ring-0",style:{accentColor:"#2D5C63",borderColor:p.rememberMe?"#2D5C63":"#d1d5db"}}),l.jsx("span",{className:"ml-2 text-sm font-medium",style:{color:"#2D5C63"},children:_.rememberMeLabel})]}),l.jsx("a",{href:"#",className:"text-body-md hover:underline font-medium",style:{color:"#2D5C63"},onClick:y=>{y.preventDefault(),n&&n()},children:_.forgotPasswordLabel})]}),(w||j.general)&&l.jsxs("div",{className:"mt-4",style:{width:"377px",height:"68px",paddingTop:"12px",paddingRight:"16px",paddingBottom:"12px",paddingLeft:"16px",gap:"4px",borderRadius:"8px",borderWidth:"1px",border:"1px solid #B30808",backgroundColor:"#F8DBDB",display:"flex",flexDirection:"column"},children:[l.jsx(Z,{variant:"body2",style:{fontFamily:"'IBM Plex Mono', monospace",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"21px",letterSpacing:"0.02em",color:"#B30808",margin:0},children:v??(typeof w=="string"?w:null)??(j.general&&typeof j.general=="string"?j.general:null)??g("errors.invalidCredentials")??"Correo o contraseña incorrectos."}),l.jsx(Z,{variant:"body2",style:{fontFamily:"'IBM Plex Mono', monospace",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"21px",letterSpacing:"0.02em",color:"#B30808",margin:0},children:b??g("errors.tryAgain")??"Intentá nuevamente."})]}),l.jsx("div",{className:"mt-4",children:l.jsx(s0,{type:"submit",tipo:"Primary",color:"Teal",tamaño:"Default",className:"w-full",disabled:t,children:l.jsx("span",{style:{fontFamily:"'IBM Plex Sans', sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"16px",lineHeight:"24px",letterSpacing:"0%"},children:G})})}),i&&l.jsxs("div",{className:"flex items-center gap-3 my-6",children:[l.jsx("div",{className:"flex-1",style:{borderTop:"1px solid #2D5C63"}}),l.jsx(Z,{variant:"body2",className:"text-body-md font-medium",style:{color:"#2D5C63",whiteSpace:"nowrap"},children:_.continueWithLabel}),l.jsx("div",{className:"flex-1",style:{borderTop:"1px solid #2D5C63"}})]}),s&&l.jsxs("div",{style:{width:"377px",height:"36px",gap:"20px",marginLeft:"auto",marginRight:"auto",display:"flex"},children:[l.jsxs("button",{type:"button",onClick:c,className:"flex-1 flex items-center justify-center bg-white hover:bg-gray-50 transition-colors",style:{width:"178.5px",height:"36px",padding:"8px 43px",gap:"16px",borderRadius:"8px",border:"1px solid #38656D"},children:[l.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 48 48","aria-hidden":"true",children:[l.jsx("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303C33.651 32.659 29.227 36 24 36c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.047 6.053 29.272 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),l.jsx("path",{fill:"#FF3D00",d:"M6.306 14.691l6.571 4.819C14.655 16.108 19.002 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.047 6.053 29.272 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),l.jsx("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.197l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.205 0-9.616-3.318-11.281-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),l.jsx("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303c-.793 2.116-2.318 3.91-4.284 5.238l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})]}),l.jsx(Z,{variant:"body2",className:"text-gray-900 font-medium",children:_.googleLabel})]}),l.jsxs("button",{type:"button",onClick:u,className:"flex-1 flex items-center justify-center bg-white hover:bg-gray-50 transition-colors",style:{width:"178.5px",height:"36px",padding:"8px 43px",gap:"16px",borderRadius:"8px",border:"1px solid #38656D"},children:[l.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 48 48","aria-hidden":"true",children:[l.jsx("path",{fill:"#F25022",d:"M6 6h17v17H6z"}),l.jsx("path",{fill:"#7FBA00",d:"M25 6h17v17H25z"}),l.jsx("path",{fill:"#00A4EF",d:"M6 25h17v17H6z"}),l.jsx("path",{fill:"#FFB900",d:"M25 25h17v17H25z"})]}),l.jsx(Z,{variant:"body2",className:"text-gray-900 font-medium",children:_.microsoftLabel})]})]})]})}):l.jsxs("form",{onSubmit:W,className:`max-w-md mx-auto bg-white p-6 rounded-lg shadow-md ${h}`,...C,children:[l.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:g("form.login")}),l.jsxs("div",{className:"space-y-4",children:[l.jsx(V0,{label:g("form.email"),type:"email",placeholder:g("placeholder.email"),value:p.email,onChange:y=>A("email",y.target.value),error:j.email,required:!0}),l.jsx(V0,{label:g("form.password"),type:"password",placeholder:g("placeholder.password"),value:p.password,onChange:y=>A("password",y.target.value),error:j.password,required:!0}),l.jsx(Ie,{label:g("form.rememberMe"),checked:p.rememberMe,onChange:y=>A("rememberMe",y.target.checked)}),l.jsx(s0,{type:"submit",variant:"primary",className:"w-full",children:g("form.login")}),l.jsx("div",{className:"text-center",children:l.jsx("a",{href:"#",className:"text-sm text-blue-600 hover:underline",children:g("form.forgotPassword")})})]})]})},vP=({onSubmit:a,className:r="",...t})=>{const{t:n}=f0.useTranslation(),[c,u]=M.useState({currentPassword:"",newPassword:"",confirmPassword:""}),[s,i]=M.useState({}),[d,f]=M.useState(!1),w=(b,h)=>{u(C=>({...C,[b]:h})),s[b]&&i(C=>({...C,[b]:null})),f(!1)},v=b=>{b.preventDefault();const h={};if(c.currentPassword||(h.currentPassword=n("form.currentPassword")+" is required"),c.newPassword?c.newPassword.length<8&&(h.newPassword="Password must be at least 8 characters"):h.newPassword=n("form.newPassword")+" is required",c.confirmPassword?c.newPassword!==c.confirmPassword&&(h.confirmPassword="Passwords do not match"):h.confirmPassword="Please confirm your password",Object.keys(h).length>0){i(h);return}a&&a(c),f(!0),u({currentPassword:"",newPassword:"",confirmPassword:""})};return l.jsxs("form",{onSubmit:v,className:`max-w-md mx-auto bg-white p-6 rounded-lg shadow-md ${r}`,...t,children:[l.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:n("form.changePassword")}),d&&l.jsx(He,{variant:"success",className:"mb-4",children:"Password changed successfully!"}),l.jsxs("div",{className:"space-y-4",children:[l.jsx(V0,{label:n("form.currentPassword"),type:"password",placeholder:n("placeholder.password"),value:c.currentPassword,onChange:b=>w("currentPassword",b.target.value),error:s.currentPassword,required:!0}),l.jsx(V0,{label:n("form.newPassword"),type:"password",placeholder:n("placeholder.password"),value:c.newPassword,onChange:b=>w("newPassword",b.target.value),error:s.newPassword,helperText:"Must be at least 8 characters",required:!0}),l.jsx(V0,{label:n("form.confirmPassword"),type:"password",placeholder:n("placeholder.password"),value:c.confirmPassword,onChange:b=>w("confirmPassword",b.target.value),error:s.confirmPassword,required:!0}),l.jsxs("div",{className:"flex space-x-4",children:[l.jsx(s0,{type:"submit",variant:"primary",className:"flex-1",children:n("form.changePassword")}),l.jsx(s0,{type:"button",variant:"outline",className:"flex-1",children:n("common.cancel")})]})]})]})},gP=({onBackToLogin:a,onSubmit:r,loading:t,error:n,className:c="",variant:u="default",...s})=>{const{t:i}=f0.useTranslation(),[d,f]=M.useState(""),[w,v]=M.useState({}),[b,h]=M.useState(!1),[C,g]=M.useState(null),[$,p]=M.useState(null),E=t!==void 0?t:b,j=n!==void 0?n:$,V=y=>y&&y.includes("@"),A=y=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(y),W=()=>{const y={};return d?A(d)||(y.email=i("errors.invalidEmail")??"El mail ingresado no es válido"):y.email=i("errors.required")??"Este campo es obligatorio",v(y),Object.keys(y).length===0},_=y=>{const L=y.target.value;f(L),w.email&&v(U=>({...U,email:null})),$&&p(null)},G=async y=>{if(y.preventDefault(),!!W()){if(!r){console.warn("ForgotPassword: onSubmit prop is required");return}t===void 0&&h(!0),v({}),p(null);try{const L=await r({email:d,countryCode:null});L?.resetLink?g(L.resetLink):g("success")}catch(L){let U=i("forgotPassword.errors.sendFailed")??"Error al enviar el link. Intenta nuevamente.";L?.response?.status===404?U=L?.response?.data?.message||L?.message||"No se encontró una cuenta asociada a este correo electrónico. Por favor, verifica que el correo esté correcto.":L?.response?.status===400?U=L?.response?.data?.message||L?.message||"El correo electrónico ingresado no es válido.":L?.response?.status>=500?U="Error del servidor. Por favor, intenta más tarde.":L?.message&&(U=L.message),n===void 0&&p(U)}finally{t===void 0&&h(!1)}}};return l.jsx("div",{className:`min-h-screen flex flex-col ${c}`,style:{backgroundColor:"#f5f5f5"},...s,children:l.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:l.jsxs("div",{className:"w-full max-w-md",children:[l.jsxs("div",{className:"mb-8 text-center",children:[l.jsx(Z,{variant:"h3",className:"mb-2 font-semibold",style:{color:"#2D5C63",fontFamily:"inherit",fontWeight:400,fontStyle:"normal",fontSize:"32px",lineHeight:"48px",letterSpacing:"0px",textAlign:"center"},children:i("forgotPassword.title")??"Recuperar contraseña"}),l.jsx(Z,{variant:"body2",className:"text-gray-600",style:{fontFamily:"inherit",fontWeight:400,fontStyle:"normal",fontSize:"16px",lineHeight:"24px",letterSpacing:"0px",textAlign:"center"},children:i("forgotPassword.subtitle")??"Ingresa tu correo electrónico y te enviaremos un link para restablecer tu contraseña."})]}),l.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 shadow-md",children:[C&&!E&&l.jsxs("div",{className:"text-center space-y-4",children:[l.jsxs("div",{className:"rounded-lg p-4 border",style:{backgroundColor:"#d1fae5",borderColor:"#10b981"},children:[l.jsx(Z,{variant:"body2",className:"font-medium",style:{color:"#065f46"},children:i("forgotPassword.success.title")??"Link generado"}),l.jsx(Z,{variant:"body2",className:"mt-2",style:{color:"#047857",fontSize:"14px"},children:i("forgotPassword.success.message")??"Se ha generado un link de recuperación. Haz click en el enlace a continuación para restablecer tu contraseña."})]}),C!=="success"&&l.jsx("a",{href:C,className:"inline-block px-4 py-2 rounded-lg font-medium text-white hover:opacity-90 transition-opacity",style:{backgroundColor:"#2D5C63"},children:i("forgotPassword.success.linkLabel")??"Ir a restablecer contraseña"})]}),E&&l.jsx("div",{className:"text-center space-y-4",children:l.jsxs("div",{className:"rounded-lg p-4 border",style:{backgroundColor:"#dbeafe",borderColor:"#3b82f6"},children:[l.jsx(Z,{variant:"body2",className:"font-medium",style:{color:"#1e40af"},children:i("forgotPassword.sending")??"Enviando..."}),l.jsx(Z,{variant:"body2",className:"mt-2",style:{color:"#1e3a8a",fontSize:"14px"},children:i("forgotPassword.waitingMessage")??"Espera, estamos procesando tu solicitud..."}),l.jsx(Z,{variant:"body2",className:"mt-2",style:{color:"#1e3a8a",fontSize:"13px"},children:i("forgotPassword.waitingSubmessage")??"Hemos enviado un link de recuperación a tu correo. Esto puede tardar unos momentos."})]})}),!C&&!E&&l.jsxs(l.Fragment,{children:[a&&l.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-2 mb-6 text-body-md hover:underline font-medium cursor-pointer",style:{color:"#2D5C63"},children:[l.jsx(x,{name:"ArrowLeftIcon",variant:"24-outline",size:18}),l.jsx("span",{children:i("forgotPassword.backToLogin")??"Volver al inicio de sesión"})]}),l.jsxs("form",{onSubmit:G,className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx("label",{className:"block mb-2 font-medium text-sm",style:{color:"#2D5C63"},children:i("login.email")??i("form.email")??"Correo electrónico"}),l.jsx("input",{type:"email",placeholder:i("login.emailPlaceholder")??i("placeholder.email")??"Ingresa tu correo electrónico",value:d,onChange:_,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900",style:{borderColor:w.email?"#ef4444":"#2D5C63",borderWidth:"1px",borderStyle:"solid"}}),w.email&&l.jsx("p",{className:"mt-1 text-sm text-red-600",children:w.email})]}),j&&l.jsx("div",{className:"rounded-lg p-4 border",style:{backgroundColor:"#fecaca",borderColor:"#ef4444"},children:l.jsx(Z,{variant:"body2",className:"font-bold",style:{color:"#b91c1c"},children:j})}),l.jsx("div",{className:"pt-4",children:l.jsx(s0,{tipo:"Primary",color:"Teal",tamaño:"Default",type:"submit",className:"w-full",disabled:E||!V(d),children:l.jsx("span",{style:{fontFamily:"'IBM Plex Sans', sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"16px",lineHeight:"24px",letterSpacing:"0%"},children:E?i("forgotPassword.sending")??"Enviando...":i("forgotPassword.button")??"Enviar link"})})})]})]})]})]})})})},pP=({mode:a="user",messages:r=[],onSendMessage:t,isLoading:n=!1,className:c="",...u})=>{const{t:s}=f0.useTranslation(),[i,d]=M.useState(""),f=M.useRef(null),w=()=>{f.current?.scrollIntoView({behavior:"smooth"})};M.useEffect(()=>{w()},[r]);const v=h=>{h.preventDefault(),i.trim()&&t&&(t(i.trim()),d(""))},b=r.length>0?r:[];return l.jsxs("div",{className:`flex flex-col h-full bg-white rounded-lg shadow-md ${c}`,...u,children:[l.jsx("div",{className:"px-4 py-3 border-b border-gray-200 bg-gray-50",children:l.jsxs("div",{className:"flex items-center",children:[l.jsx("div",{className:"flex-shrink-0",children:a==="ai"?l.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center",children:l.jsx(x,{name:"Cog6ToothIcon",className:"h-6 w-6 text-white"})}):l.jsx("div",{className:"w-10 h-10 rounded-full bg-gray-300 flex items-center justify-center",children:l.jsx(x,{name:"UserIcon",className:"h-6 w-6 text-gray-600"})})}),l.jsxs("div",{className:"ml-3",children:[l.jsx("h3",{className:"text-sm font-medium text-gray-900",children:s(a==="ai"?"chat.ai":"chat.user")}),a==="ai"&&l.jsx("p",{className:"text-xs text-gray-500",children:"En línea"})]})]})}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[b.length===0?l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx("p",{className:"text-gray-400 text-sm",children:s("chat.empty")})}):b.map((h,C)=>l.jsx("div",{className:`flex ${h.sender==="user"?"justify-end":"justify-start"}`,children:l.jsxs("div",{className:`max-w-xs lg:max-w-md px-4 py-2 rounded-lg ${h.sender==="user"?"bg-blue-600 text-white":"bg-gray-100 text-gray-900"}`,children:[l.jsx("p",{className:"text-sm",children:h.text}),h.timestamp&&l.jsx("p",{className:`text-xs mt-1 ${h.sender==="user"?"text-blue-100":"text-gray-500"}`,children:new Date(h.timestamp).toLocaleTimeString("es-AR",{hour:"2-digit",minute:"2-digit"})})]})},C)),n&&l.jsx("div",{className:"flex justify-start",children:l.jsx("div",{className:"bg-gray-100 text-gray-900 px-4 py-2 rounded-lg",children:l.jsx("p",{className:"text-sm",children:s("chat.loading")})})}),l.jsx("div",{ref:f})]}),l.jsx("form",{onSubmit:v,className:"px-4 py-3 border-t border-gray-200",children:l.jsxs("div",{className:"flex space-x-2",children:[l.jsx(V0,{value:i,onChange:h=>d(h.target.value),placeholder:s("chat.placeholder"),className:"flex-1",disabled:n}),l.jsx(s0,{type:"submit",variant:"primary",disabled:!i.trim()||n,children:s("chat.send")})]})})]})},bP={"es-AR":{translation:{"common.save":"Guardar","common.cancel":"Cancelar","common.delete":"Eliminar","common.edit":"Editar","common.search":"Buscar","common.loading":"Cargando...","common.submit":"Enviar","common.back":"Volver","common.next":"Siguiente","common.previous":"Anterior","nav.home":"Inicio","nav.dashboard":"Dashboard","nav.profile":"Perfil","nav.settings":"Configuración","nav.logout":"Cerrar Sesión","form.email":"Correo electrónico","form.password":"Contraseña","form.confirmPassword":"Confirmar contraseña","form.currentPassword":"Contraseña actual","form.newPassword":"Nueva contraseña","form.rememberMe":"Recordarme","form.login":"Iniciar Sesión","form.changePassword":"Cambiar Contraseña","form.forgotPassword":"¿Olvidaste tu contraseña?","placeholder.email":"Ingresa tu correo electrónico","placeholder.password":"Ingresa tu contraseña","placeholder.search":"Buscar...","placeholder.select":"Selecciona una opción","table.actions":"Acciones","table.noData":"No hay datos disponibles","table.loading":"Cargando datos...","table.id":"ID","table.name":"Nombre","table.email":"Correo","table.role":"Rol","table.status":"Estado","table.date":"Fecha","table.edit":"Editar","table.delete":"Eliminar","table.view":"Ver","table.rowsPerPage":"Filas por página","table.density":"Densidad","table.densityLabel":"Densidad","table.densityCompact":"Compacta","table.densityStandard":"Estándar","table.densityComfortable":"Cómoda","table.filters":"Filtros","table.filtersLabel":"Mostrar filtros","table.filtersTooltipHide":"Ocultar filtros","table.filtersTooltipShow":"Mostrar filtros","table.export":"Exportar","table.exportLabel":"Exportar","table.exportCSV":"Descargar como CSV","table.exportPrint":"Imprimir","table.columns":"Columnas","table.columnsLabel":"Seleccionar columnas","table.filterPanelAddFilter":"Agregar filtro","table.filterPanelDeleteIconLabel":"Eliminar","table.filterPanelOperators":"Operadores","table.filterPanelOperatorAnd":"Y","table.filterPanelOperatorOr":"O","table.filterPanelColumns":"Columnas","table.filterPanelInputLabel":"Valor","table.filterPanelInputPlaceholder":"Valor del filtro","table.noResults":"No se encontraron resultados","table.errorOverlayDefaultLabel":"Ocurrió un error","chat.typeMessage":"Escribe un mensaje...","chat.send":"Enviar","chat.user":"Usuario","chat.ai":"Asistente IA","chat.loading":"Escribiendo...","chat.empty":"No hay mensajes aún. Comienza la conversación.","chat.placeholder":"Escribe tu mensaje aquí...","alert.success":"Éxito","alert.error":"Error","alert.warning":"Advertencia","alert.info":"Información","errors.invalidCredentials":"Correo o contraseña incorrectos.","errors.tryAgain":"Intentá nuevamente.","form.tryAgain":"Por favor, intentá nuevamente.","form.loggingIn":"Ingresando..."}},"pt-BR":{translation:{"common.save":"Salvar","common.cancel":"Cancelar","common.delete":"Excluir","common.edit":"Editar","common.search":"Buscar","common.loading":"Carregando...","common.submit":"Enviar","common.back":"Voltar","common.next":"Próximo","common.previous":"Anterior","nav.home":"Início","nav.dashboard":"Painel","nav.profile":"Perfil","nav.settings":"Configurações","nav.logout":"Sair","form.email":"E-mail","form.password":"Senha","form.confirmPassword":"Confirmar senha","form.currentPassword":"Senha atual","form.newPassword":"Nova senha","form.rememberMe":"Lembrar-me","form.login":"Entrar","form.changePassword":"Alterar Senha","form.forgotPassword":"Esqueceu sua senha?","placeholder.email":"Digite seu e-mail","placeholder.password":"Digite sua senha","placeholder.search":"Buscar...","placeholder.select":"Selecione uma opção","table.actions":"Ações","table.noData":"Nenhum dado disponível","table.loading":"Carregando dados...","table.id":"ID","table.name":"Nome","table.email":"E-mail","table.role":"Função","table.status":"Status","table.date":"Data","table.edit":"Editar","table.delete":"Excluir","table.view":"Ver","table.rowsPerPage":"Linhas por página","table.density":"Densidade","table.densityLabel":"Densidade","table.densityCompact":"Compacta","table.densityStandard":"Padrão","table.densityComfortable":"Confortável","table.filters":"Filtros","table.filtersLabel":"Mostrar filtros","table.filtersTooltipHide":"Ocultar filtros","table.filtersTooltipShow":"Mostrar filtros","table.export":"Exportar","table.exportLabel":"Exportar","table.exportCSV":"Baixar como CSV","table.exportPrint":"Imprimir","table.columns":"Colunas","table.columnsLabel":"Selecionar colunas","table.filterPanelAddFilter":"Adicionar filtro","table.filterPanelDeleteIconLabel":"Excluir","table.filterPanelOperators":"Operadores","table.filterPanelOperatorAnd":"E","table.filterPanelOperatorOr":"OU","table.filterPanelColumns":"Colunas","table.filterPanelInputLabel":"Valor","table.filterPanelInputPlaceholder":"Valor do filtro","table.noResults":"Nenhum resultado encontrado","table.errorOverlayDefaultLabel":"Ocorreu um erro","chat.typeMessage":"Digite uma mensagem...","chat.send":"Enviar","chat.user":"Usuário","chat.ai":"Assistente IA","chat.loading":"Digitando...","chat.empty":"Ainda não há mensagens. Comece a conversa.","chat.placeholder":"Digite sua mensagem aqui...","alert.success":"Sucesso","alert.error":"Erro","alert.warning":"Aviso","alert.info":"Informação","errors.invalidCredentials":"E-mail ou senha incorretos.","errors.tryAgain":"Tente novamente.","form.tryAgain":"Por favor, tente novamente.","form.loggingIn":"Entrando..."}}};se.use(f0.initReactI18next).init({resources:bP,lng:"es-AR",fallbackLng:"es-AR",interpolation:{escapeValue:!1}});const xP=({children:a,language:r="es-AR"})=>(se.language!==r&&se.changeLanguage(r),l.jsx(f0.I18nextProvider,{i18n:se,children:a}));exports.Accordion=UN;exports.Alert=He;exports.AreaChart=lP;exports.Avatar=z0;exports.Badge=$e;exports.BarChart=tP;exports.Breadcrumbs=zN;exports.Button=s0;exports.Card=eP;exports.CardError=We;exports.CardSkeleton=Ne;exports.CardTituloCorto=Te;exports.CardTituloCortoMasEstado=ze;exports.CardTituloLargo=Ue;exports.CardTituloLargoMasEstado=_e;exports.CardVacia=Pe;exports.ChangePasswordForm=vP;exports.Chat=pP;exports.Checkbox=Ie;exports.ColumnChart=iP;exports.DBGrid=rP;exports.DatePicker=fN;exports.Divider=tN;exports.DonutChart=cP;exports.Drawer=qN;exports.Dropdown=GN;exports.EmptyState=dP;exports.FileUpload=wN;exports.ForgotPassword=gP;exports.HeaderCompartido=kN;exports.HeaderConBuscador=mN;exports.HeaderCore=gN;exports.HeaderGeneral=jN;exports.HeaderPoint=AN;exports.I18nProvider=xP;exports.Icon=x;exports.Input=V0;exports.Layout=hN;exports.LineChart=nP;exports.List=fP;exports.LoginForm=mP;exports.LogoHexa=_0;exports.Modal=WN;exports.NavPoint=PN;exports.Pagination=_N;exports.PieChart=oP;exports.Progress=nN;exports.RadioButton=iN;exports.SaludoConFechaDashboard=JN;exports.Select=dN;exports.SidebarCore=vN;exports.SidebarCoreMobile=me;exports.SidebarPoint=pN;exports.SidebarPointMobile=De;exports.Skeleton=lN;exports.Spinner=rN;exports.StatCard=sP;exports.Stepper=XN;exports.Switch=uN;exports.Tabs=TN;exports.TagList=wP;exports.Textarea=sN;exports.Timeline=uP;exports.Toast=oN;exports.Tooltip=cN;exports.Typography=Z;
478
+ `.trim().replace(/\s+/g," ");return l.jsxs("div",{className:`w-full ${d}`,children:[a&&l.jsxs("label",{className:w||"block text-sm font-medium text-gray-700 mb-1",style:v,children:[a,u&&l.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),l.jsxs("div",{className:"relative w-full",children:[l.jsx("input",{type:h?"text":"password",placeholder:r,disabled:s,value:t,onChange:n,className:p,...b}),l.jsx("button",{type:"button",tabIndex:-1,onClick:()=>C(E=>!E),className:"absolute",style:{top:"50%",transform:"translateY(-50%)",right:"0.75rem",color:"#6b7280"},"aria-label":h?"Ocultar contraseña":"Mostrar contraseña",children:l.jsx(x,{name:h?"EyeSlashIcon":"EyeIcon",variant:"24-outline",size:18})})]}),c&&!g&&l.jsx("p",{className:"mt-1 text-sm text-red-600",children:c})]})},vP=({variant:a,onSubmit:r,loading:t=!1,onForgotPassword:n,onGoogleLogin:c,onMicrosoftLogin:u,showSocialLogin:s=!0,showDivider:i=!0,showPasswordRequirementsOnError:d=!0,labels:f,generalError:w,generalErrorTitle:v,generalErrorSubtitle:b,className:h="",...C})=>{const{t:g}=f0.useTranslation(),$=a==="hexa-login",[p,E]=M.useState({email:"",password:"",rememberMe:!1}),[j,V]=M.useState({}),A=(y,L)=>{E(U=>({...U,[y]:L})),j[y]&&V(U=>({...U,[y]:null}))},W=y=>{y.preventDefault();const L={};if(p.email||(L.email=g("form.email")+" is required"),p.password||(L.password=g("form.password")+" is required"),Object.keys(L).length>0){V(L);return}r&&r(p)},_={emailLabel:f?.emailLabel??g("form.email")??"Email",passwordLabel:f?.passwordLabel??g("form.password")??"Contraseña",rememberMeLabel:f?.rememberMeLabel??g("form.rememberMe")??"Recordarme",forgotPasswordLabel:f?.forgotPasswordLabel??g("form.forgotPassword")??"Olvidé mi contraseña",continueWithLabel:f?.continueWithLabel??"Continuar con",googleLabel:f?.googleLabel??"Google",microsoftLabel:f?.microsoftLabel??"Microsoft"},G=t?g("form.loggingIn")??"Ingresando...":g("form.login")??"Ingresar";return $?l.jsx("div",{style:{width:"427px",minHeight:"409px",borderRadius:"14px",border:"1px solid #0000001A",padding:"24px",background:"#FFFFFF",boxShadow:"0px 4px 6px -4px #0000001A, 0px 10px 15px -3px #0000001A"},children:l.jsxs("form",{onSubmit:W,className:h,...C,children:[l.jsxs("div",{className:"w-full",children:[l.jsx("label",{className:"block mb-2 font-medium text-sm",style:{color:"#2D5C63"},children:_.emailLabel}),l.jsx("input",{type:"email",value:p.email,onChange:y=>A("email",y.target.value),placeholder:"Ingresa tu correo electronico",className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900",style:{borderColor:j.email?"#ef4444":"#2D5C63"}})]}),l.jsx("div",{className:"w-full mt-4",children:l.jsx(mP,{variant:"hexa-login",label:_.passwordLabel,labelClassName:"block mb-2 font-medium text-sm",labelStyle:{color:"#2D5C63"},placeholder:g("placeholder.password"),value:p.password,onChange:y=>A("password",y.target.value),inputClassName:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900",style:{paddingRight:"2.75rem",borderColor:j.password?"#ef4444":"#2D5C63"}})}),d&&!!j.password&&l.jsx("div",{className:"rounded-lg p-4 border mt-4",style:{background:"#f5f3ff",borderColor:"#a78bfa",color:"#0c4a6e",fontFamily:"IBM Plex Mono"},children:l.jsxs("ul",{className:"list-disc list-inside text-sm space-y-1",style:{color:"#0c4a6e"},children:[l.jsx("li",{children:"Al menos 8 caracteres"}),l.jsx("li",{children:"Al menos una letra mayúscula"}),l.jsx("li",{children:"Al menos un número"}),l.jsx("li",{children:"Al menos un caracter especial"})]})}),l.jsxs("div",{className:"flex items-center justify-between mt-4",children:[l.jsxs("label",{className:"flex items-center",children:[l.jsx("input",{type:"checkbox",checked:p.rememberMe,onChange:y=>A("rememberMe",y.target.checked),className:"w-4 h-4 border-gray-300 rounded focus:outline-none focus:ring-0",style:{accentColor:"#2D5C63",borderColor:p.rememberMe?"#2D5C63":"#d1d5db"}}),l.jsx("span",{className:"ml-2 text-sm font-medium",style:{color:"#2D5C63"},children:_.rememberMeLabel})]}),l.jsx("a",{href:"#",className:"text-body-md hover:underline font-medium",style:{color:"#2D5C63"},onClick:y=>{y.preventDefault(),n&&n()},children:_.forgotPasswordLabel})]}),(w||j.general)&&l.jsxs("div",{className:"mt-4",style:{width:"377px",height:"68px",paddingTop:"12px",paddingRight:"16px",paddingBottom:"12px",paddingLeft:"16px",gap:"4px",borderRadius:"8px",borderWidth:"1px",border:"1px solid #B30808",backgroundColor:"#F8DBDB",display:"flex",flexDirection:"column"},children:[l.jsx(Z,{variant:"body2",style:{fontFamily:"'IBM Plex Mono', monospace",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"21px",letterSpacing:"0.02em",color:"#B30808",margin:0},children:v??(typeof w=="string"?w:null)??(j.general&&typeof j.general=="string"?j.general:null)??g("errors.invalidCredentials")??"Correo o contraseña incorrectos."}),l.jsx(Z,{variant:"body2",style:{fontFamily:"'IBM Plex Mono', monospace",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"21px",letterSpacing:"0.02em",color:"#B30808",margin:0},children:b??g("errors.tryAgain")??"Intentá nuevamente."})]}),l.jsx("div",{className:"mt-4",children:l.jsx(s0,{type:"submit",tipo:"Primary",color:"Teal",tamaño:"Default",className:"w-full",disabled:t,children:l.jsx("span",{style:{fontFamily:"'IBM Plex Sans', sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"16px",lineHeight:"24px",letterSpacing:"0%"},children:G})})}),i&&l.jsxs("div",{className:"flex items-center gap-3 my-6",children:[l.jsx("div",{className:"flex-1",style:{borderTop:"1px solid #2D5C63"}}),l.jsx(Z,{variant:"body2",className:"text-body-md font-medium",style:{color:"#2D5C63",whiteSpace:"nowrap"},children:_.continueWithLabel}),l.jsx("div",{className:"flex-1",style:{borderTop:"1px solid #2D5C63"}})]}),s&&l.jsxs("div",{style:{width:"377px",height:"36px",gap:"20px",marginLeft:"auto",marginRight:"auto",display:"flex"},children:[l.jsxs("button",{type:"button",onClick:c,className:"flex-1 flex items-center justify-center bg-white hover:bg-gray-50 transition-colors",style:{width:"178.5px",height:"36px",padding:"8px 43px",gap:"16px",borderRadius:"8px",border:"1px solid #38656D"},children:[l.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 48 48","aria-hidden":"true",children:[l.jsx("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303C33.651 32.659 29.227 36 24 36c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.047 6.053 29.272 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z"}),l.jsx("path",{fill:"#FF3D00",d:"M6.306 14.691l6.571 4.819C14.655 16.108 19.002 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.047 6.053 29.272 4 24 4 16.318 4 9.656 8.337 6.306 14.691z"}),l.jsx("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.197l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.205 0-9.616-3.318-11.281-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z"}),l.jsx("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303c-.793 2.116-2.318 3.91-4.284 5.238l.003-.002 6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917z"})]}),l.jsx(Z,{variant:"body2",className:"text-gray-900 font-medium",children:_.googleLabel})]}),l.jsxs("button",{type:"button",onClick:u,className:"flex-1 flex items-center justify-center bg-white hover:bg-gray-50 transition-colors",style:{width:"178.5px",height:"36px",padding:"8px 43px",gap:"16px",borderRadius:"8px",border:"1px solid #38656D"},children:[l.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 48 48","aria-hidden":"true",children:[l.jsx("path",{fill:"#F25022",d:"M6 6h17v17H6z"}),l.jsx("path",{fill:"#7FBA00",d:"M25 6h17v17H25z"}),l.jsx("path",{fill:"#00A4EF",d:"M6 25h17v17H6z"}),l.jsx("path",{fill:"#FFB900",d:"M25 25h17v17H25z"})]}),l.jsx(Z,{variant:"body2",className:"text-gray-900 font-medium",children:_.microsoftLabel})]})]})]})}):l.jsxs("form",{onSubmit:W,className:`max-w-md mx-auto bg-white p-6 rounded-lg shadow-md ${h}`,...C,children:[l.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:g("form.login")}),l.jsxs("div",{className:"space-y-4",children:[l.jsx(V0,{label:g("form.email"),type:"email",placeholder:g("placeholder.email"),value:p.email,onChange:y=>A("email",y.target.value),error:j.email,required:!0}),l.jsx(V0,{label:g("form.password"),type:"password",placeholder:g("placeholder.password"),value:p.password,onChange:y=>A("password",y.target.value),error:j.password,required:!0}),l.jsx(Ie,{label:g("form.rememberMe"),checked:p.rememberMe,onChange:y=>A("rememberMe",y.target.checked)}),l.jsx(s0,{type:"submit",variant:"primary",className:"w-full",children:g("form.login")}),l.jsx("div",{className:"text-center",children:l.jsx("a",{href:"#",className:"text-sm text-blue-600 hover:underline",children:g("form.forgotPassword")})})]})]})},gP=({onSubmit:a,className:r="",...t})=>{const{t:n}=f0.useTranslation(),[c,u]=M.useState({currentPassword:"",newPassword:"",confirmPassword:""}),[s,i]=M.useState({}),[d,f]=M.useState(!1),w=(b,h)=>{u(C=>({...C,[b]:h})),s[b]&&i(C=>({...C,[b]:null})),f(!1)},v=b=>{b.preventDefault();const h={};if(c.currentPassword||(h.currentPassword=n("form.currentPassword")+" is required"),c.newPassword?c.newPassword.length<8&&(h.newPassword="Password must be at least 8 characters"):h.newPassword=n("form.newPassword")+" is required",c.confirmPassword?c.newPassword!==c.confirmPassword&&(h.confirmPassword="Passwords do not match"):h.confirmPassword="Please confirm your password",Object.keys(h).length>0){i(h);return}a&&a(c),f(!0),u({currentPassword:"",newPassword:"",confirmPassword:""})};return l.jsxs("form",{onSubmit:v,className:`max-w-md mx-auto bg-white p-6 rounded-lg shadow-md ${r}`,...t,children:[l.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:n("form.changePassword")}),d&&l.jsx(He,{variant:"success",className:"mb-4",children:"Password changed successfully!"}),l.jsxs("div",{className:"space-y-4",children:[l.jsx(V0,{label:n("form.currentPassword"),type:"password",placeholder:n("placeholder.password"),value:c.currentPassword,onChange:b=>w("currentPassword",b.target.value),error:s.currentPassword,required:!0}),l.jsx(V0,{label:n("form.newPassword"),type:"password",placeholder:n("placeholder.password"),value:c.newPassword,onChange:b=>w("newPassword",b.target.value),error:s.newPassword,helperText:"Must be at least 8 characters",required:!0}),l.jsx(V0,{label:n("form.confirmPassword"),type:"password",placeholder:n("placeholder.password"),value:c.confirmPassword,onChange:b=>w("confirmPassword",b.target.value),error:s.confirmPassword,required:!0}),l.jsxs("div",{className:"flex space-x-4",children:[l.jsx(s0,{type:"submit",variant:"primary",className:"flex-1",children:n("form.changePassword")}),l.jsx(s0,{type:"button",variant:"outline",className:"flex-1",children:n("common.cancel")})]})]})]})},pP=({onBackToLogin:a,onSubmit:r,loading:t,error:n,className:c="",variant:u="default",...s})=>{const{t:i}=f0.useTranslation(),[d,f]=M.useState(""),[w,v]=M.useState({}),[b,h]=M.useState(!1),[C,g]=M.useState(null),[$,p]=M.useState(null),E=t!==void 0?t:b,j=n!==void 0?n:$,V=y=>y&&y.includes("@"),A=y=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(y),W=()=>{const y={};return d?A(d)||(y.email=i("errors.invalidEmail")??"El mail ingresado no es válido"):y.email=i("errors.required")??"Este campo es obligatorio",v(y),Object.keys(y).length===0},_=y=>{const L=y.target.value;f(L),w.email&&v(U=>({...U,email:null})),$&&p(null)},G=async y=>{if(y.preventDefault(),!!W()){if(!r){console.warn("ForgotPassword: onSubmit prop is required");return}t===void 0&&h(!0),v({}),p(null);try{const L=await r({email:d,countryCode:null});L?.resetLink?g(L.resetLink):g("success")}catch(L){let U=i("forgotPassword.errors.sendFailed")??"Error al enviar el link. Intenta nuevamente.";L?.response?.status===404?U=L?.response?.data?.message||L?.message||"No se encontró una cuenta asociada a este correo electrónico. Por favor, verifica que el correo esté correcto.":L?.response?.status===400?U=L?.response?.data?.message||L?.message||"El correo electrónico ingresado no es válido.":L?.response?.status>=500?U="Error del servidor. Por favor, intenta más tarde.":L?.message&&(U=L.message),n===void 0&&p(U)}finally{t===void 0&&h(!1)}}};return l.jsx("div",{className:`min-h-screen flex flex-col ${c}`,style:{backgroundColor:"#f5f5f5"},...s,children:l.jsx("div",{className:"flex-1 flex items-center justify-center p-4",children:l.jsxs("div",{className:"w-full max-w-md",children:[l.jsxs("div",{className:"mb-8 text-center",children:[l.jsx(Z,{variant:"h3",className:"mb-2 font-semibold",style:{color:"#2D5C63",fontFamily:"inherit",fontWeight:400,fontStyle:"normal",fontSize:"32px",lineHeight:"48px",letterSpacing:"0px",textAlign:"center"},children:i("forgotPassword.title")??"Recuperar contraseña"}),l.jsx(Z,{variant:"body2",className:"text-gray-600",style:{fontFamily:"inherit",fontWeight:400,fontStyle:"normal",fontSize:"16px",lineHeight:"24px",letterSpacing:"0px",textAlign:"center"},children:i("forgotPassword.subtitle")??"Ingresa tu correo electrónico y te enviaremos un link para restablecer tu contraseña."})]}),l.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6 shadow-md",children:[C&&!E&&l.jsxs("div",{className:"text-center space-y-4",children:[l.jsxs("div",{className:"rounded-lg p-4 border",style:{backgroundColor:"#d1fae5",borderColor:"#10b981"},children:[l.jsx(Z,{variant:"body2",className:"font-medium",style:{color:"#065f46"},children:i("forgotPassword.success.title")??"Link generado"}),l.jsx(Z,{variant:"body2",className:"mt-2",style:{color:"#047857",fontSize:"14px"},children:i("forgotPassword.success.message")??"Se ha generado un link de recuperación. Haz click en el enlace a continuación para restablecer tu contraseña."})]}),C!=="success"&&l.jsx("a",{href:C,className:"inline-block px-4 py-2 rounded-lg font-medium text-white hover:opacity-90 transition-opacity",style:{backgroundColor:"#2D5C63"},children:i("forgotPassword.success.linkLabel")??"Ir a restablecer contraseña"})]}),E&&l.jsx("div",{className:"text-center space-y-4",children:l.jsxs("div",{className:"rounded-lg p-4 border",style:{backgroundColor:"#dbeafe",borderColor:"#3b82f6"},children:[l.jsx(Z,{variant:"body2",className:"font-medium",style:{color:"#1e40af"},children:i("forgotPassword.sending")??"Enviando..."}),l.jsx(Z,{variant:"body2",className:"mt-2",style:{color:"#1e3a8a",fontSize:"14px"},children:i("forgotPassword.waitingMessage")??"Espera, estamos procesando tu solicitud..."}),l.jsx(Z,{variant:"body2",className:"mt-2",style:{color:"#1e3a8a",fontSize:"13px"},children:i("forgotPassword.waitingSubmessage")??"Hemos enviado un link de recuperación a tu correo. Esto puede tardar unos momentos."})]})}),!C&&!E&&l.jsxs(l.Fragment,{children:[a&&l.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-2 mb-6 text-body-md hover:underline font-medium cursor-pointer",style:{color:"#2D5C63"},children:[l.jsx(x,{name:"ArrowLeftIcon",variant:"24-outline",size:18}),l.jsx("span",{children:i("forgotPassword.backToLogin")??"Volver al inicio de sesión"})]}),l.jsxs("form",{onSubmit:G,className:"space-y-4",children:[l.jsxs("div",{children:[l.jsx("label",{className:"block mb-2 font-medium text-sm",style:{color:"#2D5C63"},children:i("login.email")??i("form.email")??"Correo electrónico"}),l.jsx("input",{type:"email",placeholder:i("login.emailPlaceholder")??i("placeholder.email")??"Ingresa tu correo electrónico",value:d,onChange:_,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent text-sm text-gray-900",style:{borderColor:w.email?"#ef4444":"#2D5C63",borderWidth:"1px",borderStyle:"solid"}}),w.email&&l.jsx("p",{className:"mt-1 text-sm text-red-600",children:w.email})]}),j&&l.jsx("div",{className:"rounded-lg p-4 border",style:{backgroundColor:"#fecaca",borderColor:"#ef4444"},children:l.jsx(Z,{variant:"body2",className:"font-bold",style:{color:"#b91c1c"},children:j})}),l.jsx("div",{className:"pt-4",children:l.jsx(s0,{tipo:"Primary",color:"Teal",tamaño:"Default",type:"submit",className:"w-full",disabled:E||!V(d),children:l.jsx("span",{style:{fontFamily:"'IBM Plex Sans', sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"16px",lineHeight:"24px",letterSpacing:"0%"},children:E?i("forgotPassword.sending")??"Enviando...":i("forgotPassword.button")??"Enviar link"})})})]})]})]})]})})})},bP=({mode:a="user",messages:r=[],onSendMessage:t,isLoading:n=!1,className:c="",...u})=>{const{t:s}=f0.useTranslation(),[i,d]=M.useState(""),f=M.useRef(null),w=()=>{f.current?.scrollIntoView({behavior:"smooth"})};M.useEffect(()=>{w()},[r]);const v=h=>{h.preventDefault(),i.trim()&&t&&(t(i.trim()),d(""))},b=r.length>0?r:[];return l.jsxs("div",{className:`flex flex-col h-full bg-white rounded-lg shadow-md ${c}`,...u,children:[l.jsx("div",{className:"px-4 py-3 border-b border-gray-200 bg-gray-50",children:l.jsxs("div",{className:"flex items-center",children:[l.jsx("div",{className:"flex-shrink-0",children:a==="ai"?l.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center",children:l.jsx(x,{name:"Cog6ToothIcon",className:"h-6 w-6 text-white"})}):l.jsx("div",{className:"w-10 h-10 rounded-full bg-gray-300 flex items-center justify-center",children:l.jsx(x,{name:"UserIcon",className:"h-6 w-6 text-gray-600"})})}),l.jsxs("div",{className:"ml-3",children:[l.jsx("h3",{className:"text-sm font-medium text-gray-900",children:s(a==="ai"?"chat.ai":"chat.user")}),a==="ai"&&l.jsx("p",{className:"text-xs text-gray-500",children:"En línea"})]})]})}),l.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[b.length===0?l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx("p",{className:"text-gray-400 text-sm",children:s("chat.empty")})}):b.map((h,C)=>l.jsx("div",{className:`flex ${h.sender==="user"?"justify-end":"justify-start"}`,children:l.jsxs("div",{className:`max-w-xs lg:max-w-md px-4 py-2 rounded-lg ${h.sender==="user"?"bg-blue-600 text-white":"bg-gray-100 text-gray-900"}`,children:[l.jsx("p",{className:"text-sm",children:h.text}),h.timestamp&&l.jsx("p",{className:`text-xs mt-1 ${h.sender==="user"?"text-blue-100":"text-gray-500"}`,children:new Date(h.timestamp).toLocaleTimeString("es-AR",{hour:"2-digit",minute:"2-digit"})})]})},C)),n&&l.jsx("div",{className:"flex justify-start",children:l.jsx("div",{className:"bg-gray-100 text-gray-900 px-4 py-2 rounded-lg",children:l.jsx("p",{className:"text-sm",children:s("chat.loading")})})}),l.jsx("div",{ref:f})]}),l.jsx("form",{onSubmit:v,className:"px-4 py-3 border-t border-gray-200",children:l.jsxs("div",{className:"flex space-x-2",children:[l.jsx(V0,{value:i,onChange:h=>d(h.target.value),placeholder:s("chat.placeholder"),className:"flex-1",disabled:n}),l.jsx(s0,{type:"submit",variant:"primary",disabled:!i.trim()||n,children:s("chat.send")})]})})]})},xP={"es-AR":{translation:{"common.save":"Guardar","common.cancel":"Cancelar","common.delete":"Eliminar","common.edit":"Editar","common.search":"Buscar","common.loading":"Cargando...","common.submit":"Enviar","common.back":"Volver","common.next":"Siguiente","common.previous":"Anterior","nav.home":"Inicio","nav.dashboard":"Dashboard","nav.profile":"Perfil","nav.settings":"Configuración","nav.logout":"Cerrar Sesión","form.email":"Correo electrónico","form.password":"Contraseña","form.confirmPassword":"Confirmar contraseña","form.currentPassword":"Contraseña actual","form.newPassword":"Nueva contraseña","form.rememberMe":"Recordarme","form.login":"Iniciar Sesión","form.changePassword":"Cambiar Contraseña","form.forgotPassword":"¿Olvidaste tu contraseña?","placeholder.email":"Ingresa tu correo electrónico","placeholder.password":"Ingresa tu contraseña","placeholder.search":"Buscar...","placeholder.select":"Selecciona una opción","table.actions":"Acciones","table.noData":"No hay datos disponibles","table.loading":"Cargando datos...","table.id":"ID","table.name":"Nombre","table.email":"Correo","table.role":"Rol","table.status":"Estado","table.date":"Fecha","table.edit":"Editar","table.delete":"Eliminar","table.view":"Ver","table.rowsPerPage":"Filas por página","table.density":"Densidad","table.densityLabel":"Densidad","table.densityCompact":"Compacta","table.densityStandard":"Estándar","table.densityComfortable":"Cómoda","table.filters":"Filtros","table.filtersLabel":"Mostrar filtros","table.filtersTooltipHide":"Ocultar filtros","table.filtersTooltipShow":"Mostrar filtros","table.export":"Exportar","table.exportLabel":"Exportar","table.exportCSV":"Descargar como CSV","table.exportPrint":"Imprimir","table.columns":"Columnas","table.columnsLabel":"Seleccionar columnas","table.filterPanelAddFilter":"Agregar filtro","table.filterPanelDeleteIconLabel":"Eliminar","table.filterPanelOperators":"Operadores","table.filterPanelOperatorAnd":"Y","table.filterPanelOperatorOr":"O","table.filterPanelColumns":"Columnas","table.filterPanelInputLabel":"Valor","table.filterPanelInputPlaceholder":"Valor del filtro","table.noResults":"No se encontraron resultados","table.errorOverlayDefaultLabel":"Ocurrió un error","chat.typeMessage":"Escribe un mensaje...","chat.send":"Enviar","chat.user":"Usuario","chat.ai":"Asistente IA","chat.loading":"Escribiendo...","chat.empty":"No hay mensajes aún. Comienza la conversación.","chat.placeholder":"Escribe tu mensaje aquí...","alert.success":"Éxito","alert.error":"Error","alert.warning":"Advertencia","alert.info":"Información","errors.invalidCredentials":"Correo o contraseña incorrectos.","errors.tryAgain":"Intentá nuevamente.","form.tryAgain":"Por favor, intentá nuevamente.","form.loggingIn":"Ingresando..."}},"pt-BR":{translation:{"common.save":"Salvar","common.cancel":"Cancelar","common.delete":"Excluir","common.edit":"Editar","common.search":"Buscar","common.loading":"Carregando...","common.submit":"Enviar","common.back":"Voltar","common.next":"Próximo","common.previous":"Anterior","nav.home":"Início","nav.dashboard":"Painel","nav.profile":"Perfil","nav.settings":"Configurações","nav.logout":"Sair","form.email":"E-mail","form.password":"Senha","form.confirmPassword":"Confirmar senha","form.currentPassword":"Senha atual","form.newPassword":"Nova senha","form.rememberMe":"Lembrar-me","form.login":"Entrar","form.changePassword":"Alterar Senha","form.forgotPassword":"Esqueceu sua senha?","placeholder.email":"Digite seu e-mail","placeholder.password":"Digite sua senha","placeholder.search":"Buscar...","placeholder.select":"Selecione uma opção","table.actions":"Ações","table.noData":"Nenhum dado disponível","table.loading":"Carregando dados...","table.id":"ID","table.name":"Nome","table.email":"E-mail","table.role":"Função","table.status":"Status","table.date":"Data","table.edit":"Editar","table.delete":"Excluir","table.view":"Ver","table.rowsPerPage":"Linhas por página","table.density":"Densidade","table.densityLabel":"Densidade","table.densityCompact":"Compacta","table.densityStandard":"Padrão","table.densityComfortable":"Confortável","table.filters":"Filtros","table.filtersLabel":"Mostrar filtros","table.filtersTooltipHide":"Ocultar filtros","table.filtersTooltipShow":"Mostrar filtros","table.export":"Exportar","table.exportLabel":"Exportar","table.exportCSV":"Baixar como CSV","table.exportPrint":"Imprimir","table.columns":"Colunas","table.columnsLabel":"Selecionar colunas","table.filterPanelAddFilter":"Adicionar filtro","table.filterPanelDeleteIconLabel":"Excluir","table.filterPanelOperators":"Operadores","table.filterPanelOperatorAnd":"E","table.filterPanelOperatorOr":"OU","table.filterPanelColumns":"Colunas","table.filterPanelInputLabel":"Valor","table.filterPanelInputPlaceholder":"Valor do filtro","table.noResults":"Nenhum resultado encontrado","table.errorOverlayDefaultLabel":"Ocorreu um erro","chat.typeMessage":"Digite uma mensagem...","chat.send":"Enviar","chat.user":"Usuário","chat.ai":"Assistente IA","chat.loading":"Digitando...","chat.empty":"Ainda não há mensagens. Comece a conversa.","chat.placeholder":"Digite sua mensagem aqui...","alert.success":"Sucesso","alert.error":"Erro","alert.warning":"Aviso","alert.info":"Informação","errors.invalidCredentials":"E-mail ou senha incorretos.","errors.tryAgain":"Tente novamente.","form.tryAgain":"Por favor, tente novamente.","form.loggingIn":"Entrando..."}}};se.use(f0.initReactI18next).init({resources:xP,lng:"es-AR",fallbackLng:"es-AR",interpolation:{escapeValue:!1}});const RP=({children:a,language:r="es-AR"})=>(se.language!==r&&se.changeLanguage(r),l.jsx(f0.I18nextProvider,{i18n:se,children:a}));exports.AccionesRapidas=eP;exports.Accordion=UN;exports.Alert=He;exports.AreaChart=oP;exports.Avatar=z0;exports.Badge=$e;exports.BarChart=lP;exports.Breadcrumbs=zN;exports.Button=s0;exports.Card=aP;exports.CardError=We;exports.CardSkeleton=Ne;exports.CardTituloCorto=Te;exports.CardTituloCortoMasEstado=ze;exports.CardTituloLargo=Ue;exports.CardTituloLargoMasEstado=_e;exports.CardVacia=Pe;exports.ChangePasswordForm=gP;exports.Chat=bP;exports.Checkbox=Ie;exports.ColumnChart=dP;exports.DBGrid=nP;exports.DatePicker=fN;exports.Divider=tN;exports.DonutChart=iP;exports.Drawer=qN;exports.Dropdown=GN;exports.EmptyState=sP;exports.FileUpload=wN;exports.ForgotPassword=pP;exports.HeaderCompartido=kN;exports.HeaderConBuscador=mN;exports.HeaderCore=gN;exports.HeaderGeneral=jN;exports.HeaderPoint=AN;exports.I18nProvider=RP;exports.Icon=x;exports.Input=V0;exports.Layout=hN;exports.LineChart=tP;exports.List=wP;exports.LoginForm=vP;exports.LogoHexa=_0;exports.Modal=WN;exports.NavPoint=PN;exports.Pagination=_N;exports.PieChart=cP;exports.Progress=nN;exports.RadioButton=iN;exports.SaludoConFechaDashboard=JN;exports.Select=dN;exports.SidebarCore=vN;exports.SidebarCoreMobile=me;exports.SidebarPoint=pN;exports.SidebarPointMobile=De;exports.Skeleton=lN;exports.Spinner=rN;exports.StatCard=uP;exports.Stepper=XN;exports.Switch=uN;exports.Tabs=TN;exports.TagList=hP;exports.Textarea=sN;exports.Timeline=fP;exports.Toast=oN;exports.Tooltip=cN;exports.Typography=Z;