anima-ds-nucleus 1.0.20 → 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.
@@ -459,7 +459,7 @@ React keys must be passed directly to JSX without using spread:
459
459
  text-align: ${h?"center":"left"};
460
460
  }
461
461
  }
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]})]})]})},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:`
463
463
  @keyframes skeleton-pulse {
464
464
  0%, 100% {
465
465
  background-color: #DDDDDD;
@@ -471,8 +471,8 @@ React keys must be passed directly to JSX without using spread:
471
471
  .skeleton-animation {
472
472
  animation: skeleton-pulse 1.5s ease-in-out infinite;
473
473
  }
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})]}),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=`
475
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"}
476
476
  ${g?"":c?"border-red-500":"border-gray-300"}
477
477
  ${f}
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})]})},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;