levannta-ui 1.0.43-react18 → 1.0.44-react18

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.
package/dist/index.umd.js CHANGED
@@ -27,5 +27,5 @@ Check the top-level render call using <`+o+">.")}return s}}function Qe(e,s){{if(
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ge,Y,st,Y),rr[Y+ge]=!0}}return e===i?Qr(M):qr(M),M}}function et(e,s,o){return tr(e,s,o,!0)}function rt(e,s,o){return tr(e,s,o,!1)}var tt=rt,nt=et;X.Fragment=i,X.jsx=tt,X.jsxs=nt}()),X}process.env.NODE_ENV==="production"?ie.exports=nr():ie.exports=sr();var r=ie.exports;function xe(t){var a,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(a=0;a<l;a++)t[a]&&(n=xe(t[a]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function ar(){for(var t,a,n=0,i="",l=arguments.length;n<l;n++)(t=arguments[n])&&(a=xe(t))&&(i&&(i+=" "),i+=a);return i}const je=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,we=ar,W=(t,a)=>n=>{var i;if((a==null?void 0:a.variants)==null)return we(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:l,defaultVariants:v}=a,f=Object.keys(l).map(g=>{const h=n==null?void 0:n[g],j=v==null?void 0:v[g];if(h===null)return null;const u=je(h)||je(j);return l[g][u]}),d=n&&Object.entries(n).reduce((g,h)=>{let[j,u]=h;return u===void 0||(g[j]=u),g},{}),c=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,h)=>{let{class:j,className:u,...m}=h;return Object.entries(m).every(y=>{let[R,p]=y;return Array.isArray(p)?p.includes({...v,...d}[R]):{...v,...d}[R]===p})?[...g,j,u]:g},[]);return we(t,f,c,n==null?void 0:n.class,n==null?void 0:n.className)},ye=W("button",{variants:{variant:{outlined:"button-outlined",filled:"button-filled",icon:"button-icon"},color:{primary:"button-color-primary",secondary:"button-color-secondary",error:"button-color-error",clear:"button-color-clear"},size:{sm:"button-size-sm",md:"button-size-md",lg:"button-size-lg",xl:"button-size-xl"},pill:{true:"button-pill"},active:{true:"button-active"},iconLeft:{true:"button-with-icon-left"},iconRight:{true:"button-with-icon-right"},iconLeftJustified:{true:"button-with-icon-left button-with-icon-left-justified"},iconRightJustified:{true:"button-with-icon-right button-with-icon-right-justified"},iconOnly:{true:"button-icon-only"}},defaultVariants:{variant:"filled",color:"primary",size:"md"},compoundVariants:[{variant:"outlined",color:"primary",className:"button-outlined-primary"},{variant:"outlined",color:"secondary",className:"button-outlined-secondary"},{variant:"outlined",color:"error",className:"button-outlined-error"},{variant:"outlined",color:"clear",className:"button-outlined-clear"},{variant:"filled",color:"primary",className:"button-filled-primary"},{variant:"filled",color:"secondary",className:"button-filled-secondary"},{variant:"filled",color:"error",className:"button-filled-error"},{variant:"filled",color:"clear",className:"button-filled-clear"},{variant:"icon",color:"primary",className:"button-icon-primary"},{variant:"icon",color:"secondary",className:"button-icon-secondary"},{variant:"icon",color:"error",className:"button-icon-error"},{variant:"icon",color:"clear",className:"button-icon-clear"}]}),le=x.forwardRef(({className:t,variant:a,color:n,size:i,pill:l,active:v,iconLeft:f,iconRight:d,iconLeftJustified:c,iconRightJustified:g,iconOnly:h,width:j,children:u,style:m,...y},R)=>{const p={...m||{},...j?{width:j}:{}};return r.jsxs("button",{className:ye({variant:a,color:n,size:i,pill:l,active:v,iconLeft:!!f,iconRight:!!d,iconLeftJustified:!!c,iconRightJustified:!!g,iconOnly:!!h,className:t}),style:p,ref:R,...y,children:[f&&r.jsx("span",{className:"button-icon-left",children:f}),c&&r.jsx("span",{className:"button-icon-left",children:c}),h?r.jsx("span",{children:h}):u,d&&r.jsx("span",{className:"button-icon-right",children:d}),g&&r.jsx("span",{className:"button-icon-right",children:g})]})});le.displayName="Button";const ir=({className:t})=>r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:r.jsx("path",{d:"M8.12 9.29006L12 13.1701L15.88 9.29006C16.27 8.90006 16.9 8.90006 17.29 9.29006C17.68 9.68006 17.68 10.3101 17.29 10.7001L12.7 15.2901C12.31 15.6801 11.68 15.6801 11.29 15.2901L6.7 10.7001C6.31 10.3101 6.31 9.68006 6.7 9.29006C7.09 8.91006 7.73 8.90006 8.12 9.29006Z",fill:"#F9FAFB"})}),lr=()=>{try{const t=require("react-router-dom");return t!=null&&t.Link?t.Link:null}catch{return null}},Ne=({to:t,href:a,className:n,onClick:i,children:l})=>{const v=lr();return v?x.createElement(v,{to:t,className:n,onClick:i},l):x.createElement("a",{href:a||t,className:n,onClick:i},l)},or=({icon:t,url:a,label:n,submenu:i,collapsed:l,active:v,activePath:f,isOpen:d,onToggle:c,onExpand:g,onSetActive:h,isMobile:j=!1})=>{const u=i&&i.length>0,m=u&&i.some(p=>p.url===f),y=v||d&&u||m||a===f,R=p=>{if(p.preventDefault(),j&&u){c();return}if(h&&h(a),l&&g){g();return}u&&!l&&c()};return r.jsx("div",{className:`sidebar-item ${d?"open":""} `,children:r.jsxs("div",{className:`sidebar-item-wrapper ${y&&!l?"active":""}`,children:[r.jsxs(Ne,{to:a,href:a,className:`sidebar-link sidebar-collapsed ${y?"active-text":""}`,onClick:R,children:[r.jsx("div",{className:`sidebar-icon ${y?"active-text":""}`,children:t}),(!l||j)&&r.jsxs("div",{className:"sidebar-content",children:[r.jsx("span",{className:"sidebar-label",children:n}),u&&r.jsx("span",{className:"submenu-arrow",children:r.jsx(ir,{className:`${y?"active-text":""}`})})]})]}),u&&(!l||j)&&r.jsx("div",{className:"submenu",children:i.map((p,I)=>{const S=p.url===f;return r.jsx(Ne,{to:p.url,href:p.url,className:`submenu-item ${S?"active-text":""}`,onClick:()=>h&&h(p.url),children:r.jsx("span",{className:"submenu-label",children:p.label})},I)})})]})})},cr=({className:t})=>r.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[r.jsx("circle",{cx:"14",cy:"14",r:"14",fill:"#00F7AA"}),r.jsx("path",{d:"M10.8383 7.82832C10.3833 8.28332 10.3833 9.01832 10.8383 9.47332L15.365 14L10.8383 18.5267C10.3833 18.9817 10.3833 19.7167 10.8383 20.1717C11.2933 20.6267 12.0283 20.6267 12.4833 20.1717L17.8383 14.8167C18.2933 14.3617 18.2933 13.6267 17.8383 13.1717L12.4833 7.81665C12.04 7.37332 11.2933 7.37332 10.8383 7.82832Z",fill:"#002244"})]}),Ce=()=>r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{className:"hamburger-icon",children:[r.jsx("line",{x1:"4",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line top-line"}),r.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line middle-line"}),r.jsx("line",{x1:"4",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line bottom-line"})]})}),ur=({logo:t,logoCollapsed:a,items:n,logoutIcon:i,onLogout:l,logoutLabel:v="Cerrar sesión",collapsed:f=!1,onToggle:d,activePath:c,onActiveChange:g})=>{const[h,j]=x.useState(f),[u,m]=x.useState(null),[y,R]=x.useState(c),[p,I]=x.useState(!1),[S,F]=x.useState(!1),[$,ee]=x.useState(!1);x.useEffect(()=>{const C=()=>{ee(window.innerWidth<=768)};return C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[]),x.useEffect(()=>{var C;if(c){R(c);const k=n.findIndex(L=>{var z;return L.url===c||((z=L.submenu)==null?void 0:z.some(D=>D.url===c))});k!==-1&&((C=n[k].submenu)!=null&&C.length?m(k):m(null))}},[c,n]);const U=()=>{j(!h),d&&d()},Z=()=>{var C;if(h)if(j(!1),d&&d(),y){const k=n.findIndex(L=>{var z;return L.url===y||((z=L.submenu)==null?void 0:z.some(D=>D.url===y))});k!==-1&&((C=n[k].submenu)!=null&&C.length)?m(k):m(null)}else m(null)},q=C=>{m(u===C?null:C),$&&I(!0)},G=C=>{R(C);const k=n.findIndex(L=>{var z;return L.url===C||((z=L.submenu)==null?void 0:z.some(D=>D.url===C))});if(k!==-1){const L=n[k];L.submenu&&L.submenu.length>0?m(k):m(null)}else m(null);g&&g(C),$&&(n.some(z=>{var D;return(D=z.submenu)==null?void 0:D.some(re=>re.url===C)})||(F(!0),setTimeout(()=>{I(!1),F(!1)},500)))},P=()=>{p?(F(!0),setTimeout(()=>{I(!1),F(!1)},500)):I(!0)};return r.jsxs(r.Fragment,{children:[$&&r.jsxs("div",{className:"mobile-navbar",children:[r.jsx("div",{className:"mobile-logo",children:t}),r.jsx("button",{className:`mobile-menu-button ${p?"open":""}`,onClick:P,"aria-label":"Toggle mobile menu",children:r.jsx(Ce,{})})]}),!$&&r.jsx("button",{className:`mobile-menu-button ${p?"open":""}`,onClick:P,"aria-label":"Toggle mobile menu",style:{display:"none"},children:r.jsx(Ce,{})}),$&&(p||S)&&r.jsx("div",{className:`sidebar-overlay ${p?"visible":""}`,onClick:P}),r.jsxs("div",{className:`sidebar-wrapper ${p?"mobile-open":""} ${S?"mobile-closing":""}`,children:[r.jsxs("div",{className:`sidebar ${!$&&h?"sidebar-collapsed":""} ${$?"sidebar-mobile":""}`,children:[!$&&r.jsx("div",{className:"sidebar-header",children:r.jsx("div",{className:"sidebar-logo",children:h?r.jsx("span",{className:"logo-text",children:a}):r.jsx("span",{className:"logo-text",children:t})})}),$&&(p||S)&&r.jsxs("div",{className:"mobile-header",children:[r.jsx("div",{className:"mobile-logo-menu",children:t}),r.jsx("button",{className:"mobile-close-button",onClick:P,"aria-label":"Close menu",children:"×"})]}),r.jsx("div",{className:"sidebar-menu",children:n.map((C,k)=>r.jsx(or,{icon:C.icon,url:C.url,label:C.label,submenu:C.submenu,collapsed:h,active:C.active||C.url===y,activePath:y,isOpen:u===k,onToggle:()=>q(k),onExpand:Z,onSetActive:G,isMobile:$},k))}),l&&r.jsx("div",{className:"sidebar-footer",children:r.jsxs("button",{className:"logout-button",onClick:l,children:[i,!h&&r.jsx("span",{children:v})]})})]}),!$&&r.jsx("button",{className:`sidebar-toggle-icon${h?" collapsed":""}`,onClick:U,"aria-label":"Toggle sidebar",children:r.jsx(cr,{})})]})]})},dr=({isOpen:t,onClose:a,title:n="",children:i,position:l="right",size:v="medium",enableSwipeToClose:f=!0})=>{const[d,c]=x.useState(!1),g=x.useRef(null),h=x.useRef(0),j=x.useRef(0),u=50,m=()=>{!d&&t&&(c(!0),setTimeout(()=>{c(!1),a()},500))},y=p=>{f&&(h.current=p.touches[0].clientX,j.current=p.touches[0].clientY)},R=p=>{if(!f||!p.changedTouches[0])return;const I=p.changedTouches[0].clientX,S=p.changedTouches[0].clientY,F=I-h.current,$=S-j.current;(l==="right"&&F>u||l==="left"&&F<-u||l==="top"&&$<-u||l==="bottom"&&$>u)&&m()};return x.useEffect(()=>{t&&c(!1)},[t]),x.useEffect(()=>(t&&!d?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t,d]),!t&&!d?null:r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`drawer-overlay ${d?"fade-out":"fade-in"}`,onClick:m}),r.jsxs("div",{ref:g,className:`drawer drawer-${l} drawer-${v} ${d?"drawer-closing":"drawer-open"}`,onTouchStart:y,onTouchEnd:R,children:[r.jsxs("div",{className:`drawer-header ${n?"has-title":"no-title"}`,children:[n&&r.jsx("h2",{className:"drawer-title",children:n}),r.jsx("button",{className:"drawer-close",onClick:m,"aria-label":"Cerrar",children:"✕"})]}),r.jsx("div",{className:"drawer-content",children:i})]})]})},fr=W("modal-container",{variants:{size:{s:"modal-size-s",m:"modal-size-m",l:"modal-size-l"}},defaultVariants:{size:"m"}}),hr=({title:t,children:a,active:n,onClose:i,size:l})=>{const v=x.useRef(null);x.useEffect(()=>{const d=c=>{c.key==="Escape"&&i()};return n&&document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)}},[n,i]);const f=d=>{v.current&&d.target===v.current&&i()};return n?r.jsx("div",{className:"modal-backdrop",ref:v,onClick:f,children:r.jsxs("div",{className:fr({size:l}),children:[r.jsxs("div",{className:"modal-header",children:[r.jsx("h2",{children:t}),r.jsx("button",{className:"modal-close",onClick:i,"aria-label":"Cerrar",children:"×"})]}),r.jsx("hr",{className:"modal-divider"}),r.jsx("div",{className:"modal-content",children:a})]})}):null},vr=({isOpen:t,onToggle:a,title:n,subtitle:i,children:l})=>r.jsxs("div",{className:`collapsible ${t?"open":""}`,children:[r.jsxs("div",{className:"collapsible-header",onClick:a,children:[r.jsxs("div",{className:"collapsible-header-content",children:[r.jsx("h3",{className:"collapsible-title",children:n}),i&&r.jsx("p",{className:"collapsible-subtitle",children:i})]}),r.jsx("div",{className:`collapsible-arrow ${t?"open":""}`,children:r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7 10L12 15L17 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r.jsx("div",{className:`collapsible-content ${t?"open":""}`,children:l})]}),mr=({children:t})=>r.jsx("div",{className:"card",children:t}),_e=W("tab-base",{variants:{size:{xs:"tab-size-xs",sm:"tab-size-sm",md:"tab-size-md",lg:"tab-size-lg",xl:"tab-size-xl"},state:{default:"tab-state-default",hover:"tab-state-hover",focus:"tab-state-focus",active:"tab-state-active",disabled:"tab-state-disabled"},outline:{true:"tab-outline-true",false:"tab-outline-false"},iconAlignment:{none:"tab-icon-none",left:"tab-icon-left"}},defaultVariants:{size:"md",state:"default",outline:!1,iconAlignment:"none"}}),ke=x.forwardRef(({className:t,size:a,state:n,outline:i,iconAlignment:l,children:v,icon:f,active:d=!1,disabled:c=!1,...g},h)=>{const j=c?"disabled":d?"active":n||"default",u=f?l||"left":"none";return r.jsxs("button",{className:_e({size:a,state:j,outline:i,iconAlignment:u,className:t}),ref:h,disabled:c,...g,children:[f&&u==="left"&&r.jsx("span",{className:"tab-icon",children:f}),r.jsx("span",{className:"tab-content",children:v})]})});ke.displayName="Tab";const Ee=({children:t,defaultActiveIndex:a=0,activeIndex:n,onTabChange:i,className:l="",variant:v="default",size:f="md",outline:d=!1})=>{const[c,g]=x.useState(a),h=n!==void 0?n:c,j=m=>{n===void 0&&g(m),i==null||i(m)},u=["tab-group",`tab-group-${v}`,l].filter(Boolean).join(" ");return r.jsx("div",{className:u,role:"tablist",children:x.Children.map(t,(m,y)=>x.isValidElement(m)?x.cloneElement(m,{...m.props,active:y===h,size:m.props.size||f,outline:m.props.outline!==void 0?m.props.outline:d,onClick:R=>{var p,I;m.props.disabled||(j(y),(I=(p=m.props).onClick)==null||I.call(p,R))},role:"tab","aria-selected":y===h,"aria-controls":`tabpanel-${y}`,id:`tab-${y}`,tabIndex:y===h?0:-1}):m)})};Ee.displayName="TabGroup";const gr=({buttonsData:t,size:a="sm"})=>{const[n,i]=x.useState(0),l=(v,f)=>{v.onClick(),i(f)};return r.jsx("div",{className:"toggle-button-container",children:t.map((v,f)=>r.jsx("div",{className:`toggle-button-inner ${n===f?"active":""} ${a}`,onClick:()=>l(v,f),children:r.jsx("span",{children:v.label})},f))})},Se=({className:t})=>r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:r.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),br=({size:t=24,className:a=""})=>r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[r.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),r.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),r.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),r.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),pr=({size:t=24,className:a=""})=>r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[r.jsx("path",{d:"M11.4 2H2v9.4h9.4V2Z",fill:"#F25022"}),r.jsx("path",{d:"M22 2h-9.4v9.4H22V2Z",fill:"#7FBA00"}),r.jsx("path",{d:"M11.4 12.6H2V22h9.4v-9.4Z",fill:"#00A4EF"}),r.jsx("path",{d:"M22 12.6h-9.4V22H22v-9.4Z",fill:"#FFB900"})]}),xr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M14.71 6.71L13.3 5.3L7.71 10.89C7.32 11.28 7.32 11.91 7.71 12.3L13.3 17.89L14.71 16.48L9.83 11.6L14.71 6.71Z",fill:"currentColor"})}),jr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M9.29 17.29L10.7 18.7L16.29 13.11C16.68 12.72 16.68 12.09 16.29 11.7L10.7 6.11L9.29 7.52L14.17 12.4L9.29 17.29Z",fill:"currentColor"})}),wr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M7.41 8.59L12 13.17L16.59 8.59L18 10L12 16L6 10L7.41 8.59Z",fill:"currentColor"})}),yr=({className:t="",size:a=24,color:n="currentColor"})=>r.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[r.jsx("rect",{x:"3",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"3",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"3",y:"17",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"17",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"17",width:"4",height:"4",rx:"0.5",fill:n})]}),Te=W("input",{variants:{size:{sm:"input-size-sm",md:"input-size-md",lg:"input-size-lg"},state:{default:"input-state-default",focused:"input-state-focused",filled:"input-state-filled",error:"input-state-error",success:"input-state-success",disabled:"input-state-disabled"},hasLeadingIcon:{true:"input-with-leading-icon"},hasTrailingIcon:{true:"input-with-trailing-icon"}},defaultVariants:{size:"md",state:"default"}}),Re=x.forwardRef(({className:t,size:a,state:n,leadingIcon:i,trailingIcon:l,hintText:v,onClear:f,placeholder:d="Placeholder",value:c,onChange:g,...h},j)=>{const u=!!i,m=!!l,y=c&&c.toString().length>0;let R=n;return n==="default"&&y&&(R="filled"),r.jsxs("div",{className:"input-container",children:[r.jsxs("div",{className:"input-wrapper",children:[u&&r.jsx("span",{className:"input-leading-icon",children:i}),r.jsx("input",{className:Te({size:a,state:R,hasLeadingIcon:u,hasTrailingIcon:m,className:t}),placeholder:d,value:c,ref:j,...h}),m&&r.jsx("span",{className:"input-trailing-icon",children:l}),f&&c&&c.toString().length>0&&r.jsx("button",{type:"button",className:"input-clear-button",onClick:f,"aria-label":"Clear input",children:r.jsx(Se,{})})]}),v&&r.jsx("div",{className:`input-hint input-hint-${R}`,children:v})]})});Re.displayName="Input";const Le=W("alert",{variants:{variant:{info:"alert-info",warning:"alert-warning",success:"alert-success",error:"alert-error"}},defaultVariants:{variant:"info"}}),Ie=x.forwardRef(({className:t,variant:a,title:n,description:i,children:l,onDismiss:v,icon:f,...d},c)=>{const g={info:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),warning:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),success:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),error:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},h=f||(a?g[a]:g.info);return r.jsxs("div",{className:Le({variant:a,className:t}),ref:c,...d,children:[r.jsx("div",{className:"alert-icon",children:h}),r.jsxs("div",{className:"alert-content",children:[n&&r.jsx("div",{className:"alert-title",children:n}),i&&r.jsx("div",{className:"alert-description",children:i}),l&&r.jsx("div",{className:"alert-children",children:l})]}),r.jsx("button",{className:"alert-dismiss",onClick:v,"aria-label":"Cerrar alerta",children:r.jsx(Se,{})})]})});Ie.displayName="Alert";const Nr=W("social-login",{variants:{variant:{filled:"social-login-filled",outlined:"social-login-outlined"},size:{xs:"social-login-size-xs",sm:"social-login-size-sm",md:"social-login-size-md",lg:"social-login-size-lg",xl:"social-login-size-xl"},state:{default:"social-login-state-default",hover:"social-login-state-hover",focus:"social-login-state-focus",active:"social-login-state-active",disabled:"social-login-state-disabled"},pill:{true:"social-login-pill"},iconAlignment:{left:"social-login-icon-left",leftJustified:"social-login-icon-left-justified"},provider:{google:"social-login-provider-google",microsoft:"social-login-provider-microsoft"}},defaultVariants:{variant:"filled",size:"md",state:"default",iconAlignment:"left",provider:"google"}}),Cr={google:"Continuar con Google",microsoft:"Continuar con Microsoft"},_r={google:br,microsoft:pr},Oe=x.forwardRef(({className:t,variant:a,size:n,state:i,pill:l,iconAlignment:v,provider:f,children:d,disabled:c,onClick:g,...h},j)=>{const u=_r[f],m=d||Cr[f],y=c?"disabled":i,p={xs:16,sm:18,md:20,lg:22,xl:24}[n||"md"];return r.jsxs("button",{className:Nr({variant:a,size:n,state:y,pill:l,iconAlignment:v,provider:f,className:t}),disabled:c,onClick:g,ref:j,...h,children:[r.jsx("span",{className:"social-login-icon",children:r.jsx(u,{size:p})}),r.jsx("span",{className:"social-login-text",children:m})]})});Oe.displayName="SocialLogin";const kr=W("progress-bar",{variants:{variant:{default:"progress-bar-default",gradient:"progress-bar-gradient",striped:"progress-bar-striped"},size:{sm:"progress-bar-size-sm",md:"progress-bar-size-md",lg:"progress-bar-size-lg"},color:{primary:"progress-bar-color-primary",secondary:"progress-bar-color-secondary",success:"progress-bar-color-success",warning:"progress-bar-color-warning",error:"progress-bar-color-error"},animated:{true:"progress-bar-animated"}},defaultVariants:{variant:"default",size:"md",color:"primary"}}),Er=x.forwardRef(({className:t,variant:a,size:n,color:i,animated:l,amount:v,total:f,showPercentage:d=!1,label:c,height:g,style:h,...j},u)=>{const m=Math.min(Math.max(v/f*100,0),100),y={...h||{},...g?{height:g}:{}},R={width:`${m}%`};return r.jsxs("div",{className:kr({variant:a,size:n,color:i,animated:l,className:t}),style:y,ref:u,role:"progressbar","aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":f,"aria-label":c||`Progreso: ${v} de ${f}`,...j,children:[r.jsx("div",{className:"progress-bar-track",children:r.jsx("div",{className:"progress-bar-fill",style:R})}),(d||c)&&r.jsx("div",{className:"progress-bar-text",children:c||`${Math.round(m)}%`})]})}),Sr=(t,a)=>`/logos/${`${t}_${a}.png`}`,oe=x.forwardRef(({type:t="logo",color:a="color",alt:n,className:i,...l},v)=>{const f=Sr(t,a),d=n||(t==="logo"?"Levannta logo":"Levannta isologo");return r.jsx("img",{ref:v,className:["logo",i].filter(Boolean).join(" "),src:f,alt:d,...l})});oe.displayName="Logo";const Tr=({title:t,children:a,className:n,showLogo:i=!0,logoProps:l,...v})=>{const f=["header",n].filter(Boolean).join(" ");return r.jsx("header",{className:f,...v,children:r.jsxs("div",{className:"header-content-wrapper",children:[r.jsx("h1",{className:"header-title",children:t}),i&&r.jsx(oe,{className:"header-logo",type:(l==null?void 0:l.type)??"logo",color:(l==null?void 0:l.color)??"color",width:(l==null?void 0:l.width)??240,height:l==null?void 0:l.height,alt:l==null?void 0:l.alt}),a&&r.jsx("div",{className:"header-children",children:a})]})})},Rr=W("pagination",{variants:{size:{xs:"pagination-size-xs",sm:"pagination-size-sm",md:"pagination-size-md",lg:"pagination-size-lg"}},defaultVariants:{size:"md"}}),$e=x.forwardRef(({className:t,size:a,currentPage:n,totalPages:i,itemsPerPage:l,totalItems:v,itemsPerPageOptions:f=[10,20,50,100],onPageChange:d,onItemsPerPageChange:c,resultsLabel:g="Resultados",ofLabel:h="de",pageLabel:j="Página",prevDisabled:u,nextDisabled:m,...y},R)=>{const[p,I]=x.useState(!1),S=x.useRef(null),F=u??n<=1,$=m??n>=i,U={xs:20,sm:20,md:22,lg:24}[a||"md"],Z=a==="lg"||a==="md"?28:24,q=()=>{!F&&d&&d(n-1)},G=()=>{!$&&d&&d(n+1)},P=k=>{c&&c(k),I(!1)},C=()=>{I(!p)};return x.useEffect(()=>{const k=L=>{S.current&&!S.current.contains(L.target)&&I(!1)};return p&&document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[p]),r.jsxs("div",{className:Rr({size:a,className:t}),ref:R,...y,children:[r.jsxs("div",{className:"pagination-results-section",children:[r.jsx("div",{className:"pagination-results",children:r.jsx("span",{className:"pagination-results-text",children:g})}),r.jsx("div",{className:"pagination-items-selector",ref:S,children:r.jsxs("div",{className:"pagination-items-dropdown",children:[r.jsxs("button",{className:"pagination-items-display",onClick:C,type:"button","aria-expanded":p,"aria-haspopup":"listbox",children:[r.jsx("span",{className:"pagination-items-text",children:l}),r.jsx(wr,{size:Z,className:`pagination-chevron-down ${p?"open":""}`})]}),p&&r.jsx("div",{className:"pagination-dropdown-menu",role:"listbox",children:f.map(k=>r.jsx("button",{className:`pagination-dropdown-item ${k===l?"selected":""}`,onClick:()=>P(k),type:"button",role:"option","aria-selected":k===l,children:k},k))})]})}),r.jsx("div",{className:"pagination-total",children:r.jsxs("span",{className:"pagination-total-text",children:[h," ",v]})})]}),r.jsxs("div",{className:"pagination-navigation",children:[r.jsx("button",{className:`pagination-nav-button ${F?"disabled":""}`,onClick:q,disabled:F,type:"button","aria-label":"Página anterior",children:r.jsx(xr,{size:U})}),r.jsx("div",{className:"pagination-page-info",children:r.jsxs("span",{className:"pagination-page-text",children:[j," ",n," ",h," ",i]})}),r.jsx("button",{className:`pagination-nav-button ${$?"disabled":""}`,onClick:G,disabled:$,type:"button","aria-label":"Página siguiente",children:r.jsx(jr,{size:U})})]})]})});$e.displayName="Pagination";const Lr=({icon:t,title:a,options:n=[],onChange:i,className:l=""})=>{const[v,f]=x.useState(!1),d=x.useRef(null);x.useEffect(()=>{const u=m=>{d.current&&!d.current.contains(m.target)&&f(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]);const c=()=>{f(!v)},g=u=>{var m;u.disabled||(f(!1),i==null||i(u),(m=u.onSelect)==null||m.call(u))},h=a,j=t||r.jsx(yr,{size:20,color:"#00D4AA"});return r.jsxs("div",{className:`selector-container ${l}`,ref:d,children:[r.jsxs("div",{className:`selector ${v?"selector--open":""}`,onClick:c,children:[r.jsx("div",{className:"selector__icon",children:j}),r.jsx("div",{className:"selector__title",children:h}),r.jsx("div",{className:"selector__chevron",children:r.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`selector__chevron-icon ${v?"selector__chevron-icon--open":""}`,children:r.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),v&&n.length>0&&r.jsx("div",{className:"selector__dropdown",children:r.jsx("div",{className:"selector__dropdown-content",children:n.map(u=>r.jsxs("div",{className:`selector__option ${u.active?"selector__option--selected":""} ${u.disabled?"selector__option--disabled":""}`,onClick:()=>g(u),children:[u.icon&&r.jsx("div",{className:"selector__option-icon",children:u.icon}),r.jsxs("div",{className:"selector__option-content",children:[r.jsx("div",{className:"selector__option-title",children:u.title}),u.subtitle&&r.jsx("div",{className:"selector__option-subtitle",children:u.subtitle})]})]},u.id))})})]})},Ir=({title:t,subtitle:a,buttonText:n,buttonVariant:i="filled",onClick:l,image:v="src/assets/images/default_card_wallpaper.png",icon:f,disabled:d=!1,className:c="",size:g="md"})=>r.jsxs("div",{className:`cardcta-container cardcta-size-${g} ${c}`,style:{backgroundImage:`url('${v}')`,backgroundSize:"cover",backgroundPosition:"center",position:"relative",overflow:"hidden"},children:[r.jsx("div",{className:"cardcta-gradient-overlay"}),d&&r.jsx("div",{className:"cardcta-bg-disabled"}),r.jsxs("div",{className:"cardcta-overlay",children:[r.jsx("div",{className:"cardcta-icon",children:f}),r.jsx("h3",{className:"cardcta-title",children:t}),a&&r.jsx("p",{className:"cardcta-subtitle",children:a}),r.jsx(le,{onClick:l,variant:i,size:"sm",disabled:d,children:d?r.jsx("span",{children:"Próximamente"}):n})]})]});E.Alert=Ie,E.Button=le,E.Card=mr,E.CardCTA=Ir,E.Collapsible=vr,E.Drawer=dr,E.Header=Tr,E.Input=Re,E.Logo=oe,E.Modal=hr,E.Pagination=$e,E.ProgressBar=Er,E.Selector=Lr,E.Sidebar=ur,E.SocialLogin=Oe,E.Tab=ke,E.TabGroup=Ee,E.ToggleButton=gr,E.alertVariants=Le,E.buttonVariants=ye,E.inputVariants=Te,E.tabVariants=_e,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
30
+ <%s key={someKey} {...props} />`,ge,Y,st,Y),rr[Y+ge]=!0}}return e===i?Qr(M):qr(M),M}}function et(e,s,o){return tr(e,s,o,!0)}function rt(e,s,o){return tr(e,s,o,!1)}var tt=rt,nt=et;X.Fragment=i,X.jsx=tt,X.jsxs=nt}()),X}process.env.NODE_ENV==="production"?ie.exports=nr():ie.exports=sr();var r=ie.exports;function xe(t){var a,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(a=0;a<l;a++)t[a]&&(n=xe(t[a]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function ar(){for(var t,a,n=0,i="",l=arguments.length;n<l;n++)(t=arguments[n])&&(a=xe(t))&&(i&&(i+=" "),i+=a);return i}const je=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,we=ar,W=(t,a)=>n=>{var i;if((a==null?void 0:a.variants)==null)return we(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:l,defaultVariants:v}=a,f=Object.keys(l).map(g=>{const h=n==null?void 0:n[g],j=v==null?void 0:v[g];if(h===null)return null;const u=je(h)||je(j);return l[g][u]}),d=n&&Object.entries(n).reduce((g,h)=>{let[j,u]=h;return u===void 0||(g[j]=u),g},{}),c=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,h)=>{let{class:j,className:u,...m}=h;return Object.entries(m).every(y=>{let[R,p]=y;return Array.isArray(p)?p.includes({...v,...d}[R]):{...v,...d}[R]===p})?[...g,j,u]:g},[]);return we(t,f,c,n==null?void 0:n.class,n==null?void 0:n.className)},ye=W("button",{variants:{variant:{outlined:"button-outlined",filled:"button-filled",icon:"button-icon"},color:{primary:"button-color-primary",secondary:"button-color-secondary",error:"button-color-error",clear:"button-color-clear"},size:{sm:"button-size-sm",md:"button-size-md",lg:"button-size-lg",xl:"button-size-xl"},pill:{true:"button-pill"},active:{true:"button-active"},iconLeft:{true:"button-with-icon-left"},iconRight:{true:"button-with-icon-right"},iconLeftJustified:{true:"button-with-icon-left button-with-icon-left-justified"},iconRightJustified:{true:"button-with-icon-right button-with-icon-right-justified"},iconOnly:{true:"button-icon-only"}},defaultVariants:{variant:"filled",color:"primary",size:"md"},compoundVariants:[{variant:"outlined",color:"primary",className:"button-outlined-primary"},{variant:"outlined",color:"secondary",className:"button-outlined-secondary"},{variant:"outlined",color:"error",className:"button-outlined-error"},{variant:"outlined",color:"clear",className:"button-outlined-clear"},{variant:"filled",color:"primary",className:"button-filled-primary"},{variant:"filled",color:"secondary",className:"button-filled-secondary"},{variant:"filled",color:"error",className:"button-filled-error"},{variant:"filled",color:"clear",className:"button-filled-clear"},{variant:"icon",color:"primary",className:"button-icon-primary"},{variant:"icon",color:"secondary",className:"button-icon-secondary"},{variant:"icon",color:"error",className:"button-icon-error"},{variant:"icon",color:"clear",className:"button-icon-clear"}]}),le=x.forwardRef(({className:t,variant:a,color:n,size:i,pill:l,active:v,iconLeft:f,iconRight:d,iconLeftJustified:c,iconRightJustified:g,iconOnly:h,width:j,children:u,style:m,...y},R)=>{const p={...m||{},...j?{width:j}:{}};return r.jsxs("button",{className:ye({variant:a,color:n,size:i,pill:l,active:v,iconLeft:!!f,iconRight:!!d,iconLeftJustified:!!c,iconRightJustified:!!g,iconOnly:!!h,className:t}),style:p,ref:R,...y,children:[f&&r.jsx("span",{className:"button-icon-left",children:f}),c&&r.jsx("span",{className:"button-icon-left",children:c}),h?r.jsx("span",{children:h}):u,d&&r.jsx("span",{className:"button-icon-right",children:d}),g&&r.jsx("span",{className:"button-icon-right",children:g})]})});le.displayName="Button";const ir=({className:t})=>r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:r.jsx("path",{d:"M8.12 9.29006L12 13.1701L15.88 9.29006C16.27 8.90006 16.9 8.90006 17.29 9.29006C17.68 9.68006 17.68 10.3101 17.29 10.7001L12.7 15.2901C12.31 15.6801 11.68 15.6801 11.29 15.2901L6.7 10.7001C6.31 10.3101 6.31 9.68006 6.7 9.29006C7.09 8.91006 7.73 8.90006 8.12 9.29006Z",fill:"#F9FAFB"})}),lr=()=>{try{const t=require("react-router-dom");return t!=null&&t.Link?t.Link:null}catch{return null}},Ne=({to:t,href:a,className:n,onClick:i,children:l})=>{const v=lr();return v?x.createElement(v,{to:t,className:n,onClick:i},l):x.createElement("a",{href:a||t,className:n,onClick:i},l)},or=({icon:t,url:a,label:n,submenu:i,collapsed:l,active:v,activePath:f,isOpen:d,onToggle:c,onExpand:g,onSetActive:h,isMobile:j=!1})=>{const u=i&&i.length>0,m=u&&i.some(p=>p.url===f),y=v||d&&u||m||a===f,R=p=>{if(p.preventDefault(),j&&u){c();return}if(h&&h(a),l&&g){g();return}u&&!l&&c()};return r.jsx("div",{className:`sidebar-item ${d?"open":""} `,children:r.jsxs("div",{className:`sidebar-item-wrapper ${y&&!l?"active":""}`,children:[r.jsxs(Ne,{to:a,href:a,className:`sidebar-link sidebar-collapsed ${y?"active-text":""}`,onClick:R,children:[r.jsx("div",{className:`sidebar-icon ${y?"active-text":""}`,children:t}),(!l||j)&&r.jsxs("div",{className:"sidebar-content",children:[r.jsx("span",{className:"sidebar-label",children:n}),u&&r.jsx("span",{className:"submenu-arrow",children:r.jsx(ir,{className:`${y?"active-text":""}`})})]})]}),u&&(!l||j)&&r.jsx("div",{className:"submenu",children:i.map((p,I)=>{const S=p.url===f;return r.jsx(Ne,{to:p.url,href:p.url,className:`submenu-item ${S?"active-text":""}`,onClick:()=>h&&h(p.url),children:r.jsx("span",{className:"submenu-label",children:p.label})},I)})})]})})},cr=({className:t})=>r.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[r.jsx("circle",{cx:"14",cy:"14",r:"14",fill:"#00F7AA"}),r.jsx("path",{d:"M10.8383 7.82832C10.3833 8.28332 10.3833 9.01832 10.8383 9.47332L15.365 14L10.8383 18.5267C10.3833 18.9817 10.3833 19.7167 10.8383 20.1717C11.2933 20.6267 12.0283 20.6267 12.4833 20.1717L17.8383 14.8167C18.2933 14.3617 18.2933 13.6267 17.8383 13.1717L12.4833 7.81665C12.04 7.37332 11.2933 7.37332 10.8383 7.82832Z",fill:"#002244"})]}),Ce=()=>r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{className:"hamburger-icon",children:[r.jsx("line",{x1:"4",y1:"6",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line top-line"}),r.jsx("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line middle-line"}),r.jsx("line",{x1:"4",y1:"18",x2:"20",y2:"18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",className:"hamburger-line bottom-line"})]})}),ur=({logo:t,logoCollapsed:a,items:n,logoutIcon:i,onLogout:l,logoutLabel:v="Cerrar sesión",collapsed:f=!1,onToggle:d,activePath:c,onActiveChange:g})=>{const[h,j]=x.useState(f),[u,m]=x.useState(null),[y,R]=x.useState(c),[p,I]=x.useState(!1),[S,F]=x.useState(!1),[$,ee]=x.useState(!1);x.useEffect(()=>{const C=()=>{ee(window.innerWidth<=768)};return C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[]),x.useEffect(()=>{var C;if(c){R(c);const k=n.findIndex(L=>{var z;return L.url===c||((z=L.submenu)==null?void 0:z.some(D=>D.url===c))});k!==-1&&((C=n[k].submenu)!=null&&C.length?m(k):m(null))}},[c,n]);const U=()=>{j(!h),d&&d()},Z=()=>{var C;if(h)if(j(!1),d&&d(),y){const k=n.findIndex(L=>{var z;return L.url===y||((z=L.submenu)==null?void 0:z.some(D=>D.url===y))});k!==-1&&((C=n[k].submenu)!=null&&C.length)?m(k):m(null)}else m(null)},q=C=>{m(u===C?null:C),$&&I(!0)},G=C=>{R(C);const k=n.findIndex(L=>{var z;return L.url===C||((z=L.submenu)==null?void 0:z.some(D=>D.url===C))});if(k!==-1){const L=n[k];L.submenu&&L.submenu.length>0?m(k):m(null)}else m(null);g&&g(C),$&&(n.some(z=>{var D;return(D=z.submenu)==null?void 0:D.some(re=>re.url===C)})||(F(!0),setTimeout(()=>{I(!1),F(!1)},500)))},P=()=>{p?(F(!0),setTimeout(()=>{I(!1),F(!1)},500)):I(!0)};return r.jsxs(r.Fragment,{children:[$&&r.jsxs("div",{className:"mobile-navbar",children:[r.jsx("div",{className:"mobile-logo",children:t}),r.jsx("button",{className:`mobile-menu-button ${p?"open":""}`,onClick:P,"aria-label":"Toggle mobile menu",children:r.jsx(Ce,{})})]}),!$&&r.jsx("button",{className:`mobile-menu-button ${p?"open":""}`,onClick:P,"aria-label":"Toggle mobile menu",style:{display:"none"},children:r.jsx(Ce,{})}),$&&(p||S)&&r.jsx("div",{className:`sidebar-overlay ${p?"visible":""}`,onClick:P}),r.jsxs("div",{className:`sidebar-wrapper ${p?"mobile-open":""} ${S?"mobile-closing":""}`,children:[r.jsxs("div",{className:`sidebar ${!$&&h?"sidebar-collapsed":""} ${$?"sidebar-mobile":""}`,children:[!$&&r.jsx("div",{className:"sidebar-header",children:r.jsx("div",{className:"sidebar-logo",children:h?r.jsx("span",{className:"logo-text",children:a}):r.jsx("span",{className:"logo-text",children:t})})}),$&&(p||S)&&r.jsxs("div",{className:"mobile-header",children:[r.jsx("div",{className:"mobile-logo-menu",children:t}),r.jsx("button",{className:"mobile-close-button",onClick:P,"aria-label":"Close menu",children:"×"})]}),r.jsx("div",{className:"sidebar-menu",children:n.map((C,k)=>r.jsx(or,{icon:C.icon,url:C.url,label:C.label,submenu:C.submenu,collapsed:h,active:C.active||C.url===y,activePath:y,isOpen:u===k,onToggle:()=>q(k),onExpand:Z,onSetActive:G,isMobile:$},k))}),l&&r.jsx("div",{className:"sidebar-footer",children:r.jsxs("button",{className:"logout-button",onClick:l,children:[i,!h&&r.jsx("span",{children:v})]})})]}),!$&&r.jsx("button",{className:`sidebar-toggle-icon${h?" collapsed":""}`,onClick:U,"aria-label":"Toggle sidebar",children:r.jsx(cr,{})})]})]})},dr=({isOpen:t,onClose:a,title:n="",children:i,position:l="right",size:v="medium",enableSwipeToClose:f=!0})=>{const[d,c]=x.useState(!1),g=x.useRef(null),h=x.useRef(0),j=x.useRef(0),u=50,m=()=>{!d&&t&&(c(!0),setTimeout(()=>{c(!1),a()},500))},y=p=>{f&&(h.current=p.touches[0].clientX,j.current=p.touches[0].clientY)},R=p=>{if(!f||!p.changedTouches[0])return;const I=p.changedTouches[0].clientX,S=p.changedTouches[0].clientY,F=I-h.current,$=S-j.current;(l==="right"&&F>u||l==="left"&&F<-u||l==="top"&&$<-u||l==="bottom"&&$>u)&&m()};return x.useEffect(()=>{t&&c(!1)},[t]),x.useEffect(()=>(t&&!d?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t,d]),!t&&!d?null:r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`drawer-overlay ${d?"fade-out":"fade-in"}`,onClick:m}),r.jsxs("div",{ref:g,className:`drawer drawer-${l} drawer-${v} ${d?"drawer-closing":"drawer-open"}`,onTouchStart:y,onTouchEnd:R,children:[r.jsxs("div",{className:`drawer-header ${n?"has-title":"no-title"}`,children:[n&&r.jsx("h2",{className:"drawer-title",children:n}),r.jsx("button",{className:"drawer-close",onClick:m,"aria-label":"Cerrar",children:"✕"})]}),r.jsx("div",{className:"drawer-content",children:i})]})]})},fr=W("modal-container",{variants:{size:{s:"modal-size-s",m:"modal-size-m",l:"modal-size-l"}},defaultVariants:{size:"m"}}),hr=({title:t,children:a,active:n,onClose:i,size:l})=>{const v=x.useRef(null);x.useEffect(()=>{const d=c=>{c.key==="Escape"&&i()};return n&&document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)}},[n,i]);const f=d=>{v.current&&d.target===v.current&&i()};return n?r.jsx("div",{className:"modal-backdrop",ref:v,onClick:f,children:r.jsxs("div",{className:fr({size:l}),children:[r.jsxs("div",{className:"modal-header",children:[r.jsx("h2",{children:t}),r.jsx("button",{className:"modal-close",onClick:i,"aria-label":"Cerrar",children:"×"})]}),r.jsx("hr",{className:"modal-divider"}),r.jsx("div",{className:"modal-content",children:a})]})}):null},vr=({isOpen:t,onToggle:a,title:n,subtitle:i,children:l})=>r.jsxs("div",{className:`collapsible ${t?"open":""}`,children:[r.jsxs("div",{className:"collapsible-header",onClick:a,children:[r.jsxs("div",{className:"collapsible-header-content",children:[r.jsx("h3",{className:"collapsible-title",children:n}),i&&r.jsx("p",{className:"collapsible-subtitle",children:i})]}),r.jsx("div",{className:`collapsible-arrow ${t?"open":""}`,children:r.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7 10L12 15L17 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),r.jsx("div",{className:`collapsible-content ${t?"open":""}`,children:l})]}),mr=({children:t})=>r.jsx("div",{className:"card",children:t}),_e=W("tab-base",{variants:{size:{xs:"tab-size-xs",sm:"tab-size-sm",md:"tab-size-md",lg:"tab-size-lg",xl:"tab-size-xl"},state:{default:"tab-state-default",hover:"tab-state-hover",focus:"tab-state-focus",active:"tab-state-active",disabled:"tab-state-disabled"},outline:{true:"tab-outline-true",false:"tab-outline-false"},iconAlignment:{none:"tab-icon-none",left:"tab-icon-left"}},defaultVariants:{size:"md",state:"default",outline:!1,iconAlignment:"none"}}),ke=x.forwardRef(({className:t,size:a,state:n,outline:i,iconAlignment:l,children:v,icon:f,active:d=!1,disabled:c=!1,...g},h)=>{const j=c?"disabled":d?"active":n||"default",u=f?l||"left":"none";return r.jsxs("button",{className:_e({size:a,state:j,outline:i,iconAlignment:u,className:t}),ref:h,disabled:c,...g,children:[f&&u==="left"&&r.jsx("span",{className:"tab-icon",children:f}),r.jsx("span",{className:"tab-content",children:v})]})});ke.displayName="Tab";const Ee=({children:t,defaultActiveIndex:a=0,activeIndex:n,onTabChange:i,className:l="",variant:v="default",size:f="md",outline:d=!1})=>{const[c,g]=x.useState(a),h=n!==void 0?n:c,j=m=>{n===void 0&&g(m),i==null||i(m)},u=["tab-group",`tab-group-${v}`,l].filter(Boolean).join(" ");return r.jsx("div",{className:u,role:"tablist",children:x.Children.map(t,(m,y)=>x.isValidElement(m)?x.cloneElement(m,{...m.props,active:y===h,size:m.props.size||f,outline:m.props.outline!==void 0?m.props.outline:d,onClick:R=>{var p,I;m.props.disabled||(j(y),(I=(p=m.props).onClick)==null||I.call(p,R))},role:"tab","aria-selected":y===h,"aria-controls":`tabpanel-${y}`,id:`tab-${y}`,tabIndex:y===h?0:-1}):m)})};Ee.displayName="TabGroup";const gr=({buttonsData:t,size:a="sm"})=>{const[n,i]=x.useState(0),l=(v,f)=>{v.onClick(),i(f)};return r.jsx("div",{className:"toggle-button-container",children:t.map((v,f)=>r.jsx("div",{className:`toggle-button-inner ${n===f?"active":""} ${a}`,onClick:()=>l(v,f),children:r.jsx("span",{children:v.label})},f))})},Se=({className:t})=>r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:r.jsx("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),br=({size:t=24,className:a=""})=>r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[r.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),r.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),r.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),r.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),pr=({size:t=24,className:a=""})=>r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:[r.jsx("path",{d:"M11.4 2H2v9.4h9.4V2Z",fill:"#F25022"}),r.jsx("path",{d:"M22 2h-9.4v9.4H22V2Z",fill:"#7FBA00"}),r.jsx("path",{d:"M11.4 12.6H2V22h9.4v-9.4Z",fill:"#00A4EF"}),r.jsx("path",{d:"M22 12.6h-9.4V22H22v-9.4Z",fill:"#FFB900"})]}),xr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M14.71 6.71L13.3 5.3L7.71 10.89C7.32 11.28 7.32 11.91 7.71 12.3L13.3 17.89L14.71 16.48L9.83 11.6L14.71 6.71Z",fill:"currentColor"})}),jr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M9.29 17.29L10.7 18.7L16.29 13.11C16.68 12.72 16.68 12.09 16.29 11.7L10.7 6.11L9.29 7.52L14.17 12.4L9.29 17.29Z",fill:"currentColor"})}),wr=({size:t=24,className:a})=>r.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:r.jsx("path",{d:"M7.41 8.59L12 13.17L16.59 8.59L18 10L12 16L6 10L7.41 8.59Z",fill:"currentColor"})}),yr=({className:t="",size:a=24,color:n="currentColor"})=>r.jsxs("svg",{width:a,height:a,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[r.jsx("rect",{x:"3",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"3",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"3",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"10",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"3",y:"17",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"10",y:"17",width:"4",height:"4",rx:"0.5",fill:n}),r.jsx("rect",{x:"17",y:"17",width:"4",height:"4",rx:"0.5",fill:n})]}),Te=W("input",{variants:{size:{sm:"input-size-sm",md:"input-size-md",lg:"input-size-lg"},state:{default:"input-state-default",focused:"input-state-focused",filled:"input-state-filled",error:"input-state-error",success:"input-state-success",disabled:"input-state-disabled"},hasLeadingIcon:{true:"input-with-leading-icon"},hasTrailingIcon:{true:"input-with-trailing-icon"}},defaultVariants:{size:"md",state:"default"}}),Re=x.forwardRef(({className:t,size:a,state:n,leadingIcon:i,trailingIcon:l,hintText:v,onClear:f,placeholder:d="Placeholder",value:c,onChange:g,...h},j)=>{const u=!!i,m=!!l,y=c&&c.toString().length>0;let R=n;return n==="default"&&y&&(R="filled"),r.jsxs("div",{className:"input-container",children:[r.jsxs("div",{className:"input-wrapper",children:[u&&r.jsx("span",{className:"input-leading-icon",children:i}),r.jsx("input",{className:Te({size:a,state:R,hasLeadingIcon:u,hasTrailingIcon:m,className:t}),placeholder:d,value:c,ref:j,...h}),m&&r.jsx("span",{className:"input-trailing-icon",children:l}),f&&c&&c.toString().length>0&&r.jsx("button",{type:"button",className:"input-clear-button",onClick:f,"aria-label":"Clear input",children:r.jsx(Se,{})})]}),v&&r.jsx("div",{className:`input-hint input-hint-${R}`,children:v})]})});Re.displayName="Input";const Le=W("alert",{variants:{variant:{info:"alert-info",warning:"alert-warning",success:"alert-success",error:"alert-error"}},defaultVariants:{variant:"info"}}),Ie=x.forwardRef(({className:t,variant:a,title:n,description:i,children:l,onDismiss:v,icon:f,...d},c)=>{const g={info:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),warning:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),success:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),error:r.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("circle",{cx:"10",cy:"10",r:"9",stroke:"currentColor",strokeWidth:"2",fill:"none"}),r.jsx("path",{d:"M10 6v4m0 4h.01",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})},h=f||(a?g[a]:g.info);return r.jsxs("div",{className:Le({variant:a,className:t}),ref:c,...d,children:[r.jsx("div",{className:"alert-icon",children:h}),r.jsxs("div",{className:"alert-content",children:[n&&r.jsx("div",{className:"alert-title",children:n}),i&&r.jsx("div",{className:"alert-description",children:i}),l&&r.jsx("div",{className:"alert-children",children:l})]}),r.jsx("button",{className:"alert-dismiss",onClick:v,"aria-label":"Cerrar alerta",children:r.jsx(Se,{})})]})});Ie.displayName="Alert";const Nr=W("social-login",{variants:{variant:{filled:"social-login-filled",outlined:"social-login-outlined"},size:{xs:"social-login-size-xs",sm:"social-login-size-sm",md:"social-login-size-md",lg:"social-login-size-lg",xl:"social-login-size-xl"},state:{default:"social-login-state-default",hover:"social-login-state-hover",focus:"social-login-state-focus",active:"social-login-state-active",disabled:"social-login-state-disabled"},pill:{true:"social-login-pill"},iconAlignment:{left:"social-login-icon-left",leftJustified:"social-login-icon-left-justified"},provider:{google:"social-login-provider-google",microsoft:"social-login-provider-microsoft"}},defaultVariants:{variant:"filled",size:"md",state:"default",iconAlignment:"left",provider:"google"}}),Cr={google:"Continuar con Google",microsoft:"Continuar con Microsoft"},_r={google:br,microsoft:pr},Oe=x.forwardRef(({className:t,variant:a,size:n,state:i,pill:l,iconAlignment:v,provider:f,children:d,disabled:c,onClick:g,...h},j)=>{const u=_r[f],m=d||Cr[f],y=c?"disabled":i,p={xs:16,sm:18,md:20,lg:22,xl:24}[n||"md"];return r.jsxs("button",{className:Nr({variant:a,size:n,state:y,pill:l,iconAlignment:v,provider:f,className:t}),disabled:c,onClick:g,ref:j,...h,children:[r.jsx("span",{className:"social-login-icon",children:r.jsx(u,{size:p})}),r.jsx("span",{className:"social-login-text",children:m})]})});Oe.displayName="SocialLogin";const kr=W("progress-bar",{variants:{variant:{default:"progress-bar-default",gradient:"progress-bar-gradient",striped:"progress-bar-striped"},size:{sm:"progress-bar-size-sm",md:"progress-bar-size-md",lg:"progress-bar-size-lg"},color:{primary:"progress-bar-color-primary",secondary:"progress-bar-color-secondary",success:"progress-bar-color-success",warning:"progress-bar-color-warning",error:"progress-bar-color-error"},animated:{true:"progress-bar-animated"}},defaultVariants:{variant:"default",size:"md",color:"primary"}}),Er=x.forwardRef(({className:t,variant:a,size:n,color:i,animated:l,amount:v,total:f,showPercentage:d=!1,label:c,height:g,style:h,...j},u)=>{const m=Math.min(Math.max(v/f*100,0),100),y={...h||{},...g?{height:g}:{}},R={width:`${m}%`};return r.jsxs("div",{className:kr({variant:a,size:n,color:i,animated:l,className:t}),style:y,ref:u,role:"progressbar","aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":f,"aria-label":c||`Progreso: ${v} de ${f}`,...j,children:[r.jsx("div",{className:"progress-bar-track",children:r.jsx("div",{className:"progress-bar-fill",style:R})}),(d||c)&&r.jsx("div",{className:"progress-bar-text",children:c||`${Math.round(m)}%`})]})}),Sr=(t,a)=>`/logos/${`${t}_${a}.png`}`,oe=x.forwardRef(({type:t="logo",color:a="color",alt:n,className:i,...l},v)=>{const f=Sr(t,a),d=n||(t==="logo"?"Levannta logo":"Levannta isologo");return r.jsx("img",{ref:v,className:["logo",i].filter(Boolean).join(" "),src:f,alt:d,...l})});oe.displayName="Logo";const Tr=({title:t,children:a,className:n,showLogo:i=!0,logoProps:l,...v})=>{const f=["header",n].filter(Boolean).join(" ");return r.jsx("header",{className:f,...v,children:r.jsxs("div",{className:"header-content-wrapper",children:[r.jsx("h1",{className:"header-title",children:t}),i&&r.jsx(oe,{className:"header-logo",type:(l==null?void 0:l.type)??"logo",color:(l==null?void 0:l.color)??"color",width:(l==null?void 0:l.width)??240,height:l==null?void 0:l.height,alt:l==null?void 0:l.alt}),a&&r.jsx("div",{className:"header-children",children:a})]})})},Rr=W("pagination",{variants:{size:{xs:"pagination-size-xs",sm:"pagination-size-sm",md:"pagination-size-md",lg:"pagination-size-lg"}},defaultVariants:{size:"md"}}),$e=x.forwardRef(({className:t,size:a,currentPage:n,totalPages:i,itemsPerPage:l,totalItems:v,itemsPerPageOptions:f=[10,20,50,100],onPageChange:d,onItemsPerPageChange:c,resultsLabel:g="Resultados",ofLabel:h="de",pageLabel:j="Página",prevDisabled:u,nextDisabled:m,...y},R)=>{const[p,I]=x.useState(!1),S=x.useRef(null),F=u??n<=1,$=m??n>=i,U={xs:20,sm:20,md:22,lg:24}[a||"md"],Z=a==="lg"||a==="md"?28:24,q=()=>{!F&&d&&d(n-1)},G=()=>{!$&&d&&d(n+1)},P=k=>{c&&c(k),I(!1)},C=()=>{I(!p)};return x.useEffect(()=>{const k=L=>{S.current&&!S.current.contains(L.target)&&I(!1)};return p&&document.addEventListener("mousedown",k),()=>{document.removeEventListener("mousedown",k)}},[p]),r.jsxs("div",{className:Rr({size:a,className:t}),ref:R,...y,children:[r.jsxs("div",{className:"pagination-results-section",children:[r.jsx("div",{className:"pagination-results",children:r.jsx("span",{className:"pagination-results-text",children:g})}),r.jsx("div",{className:"pagination-items-selector",ref:S,children:r.jsxs("div",{className:"pagination-items-dropdown",children:[r.jsxs("button",{className:"pagination-items-display",onClick:C,type:"button","aria-expanded":p,"aria-haspopup":"listbox",children:[r.jsx("span",{className:"pagination-items-text",children:l}),r.jsx(wr,{size:Z,className:`pagination-chevron-down ${p?"open":""}`})]}),p&&r.jsx("div",{className:"pagination-dropdown-menu",role:"listbox",children:f.map(k=>r.jsx("button",{className:`pagination-dropdown-item ${k===l?"selected":""}`,onClick:()=>P(k),type:"button",role:"option","aria-selected":k===l,children:k},k))})]})}),r.jsx("div",{className:"pagination-total",children:r.jsxs("span",{className:"pagination-total-text",children:[h," ",v]})})]}),r.jsxs("div",{className:"pagination-navigation",children:[r.jsx("button",{className:`pagination-nav-button ${F?"disabled":""}`,onClick:q,disabled:F,type:"button","aria-label":"Página anterior",children:r.jsx(xr,{size:U})}),r.jsx("div",{className:"pagination-page-info",children:r.jsxs("span",{className:"pagination-page-text",children:[j," ",n," ",h," ",i]})}),r.jsx("button",{className:`pagination-nav-button ${$?"disabled":""}`,onClick:G,disabled:$,type:"button","aria-label":"Página siguiente",children:r.jsx(jr,{size:U})})]})]})});$e.displayName="Pagination";const Lr=({icon:t,title:a,options:n=[],onChange:i,className:l=""})=>{const[v,f]=x.useState(!1),d=x.useRef(null);x.useEffect(()=>{const u=m=>{d.current&&!d.current.contains(m.target)&&f(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]);const c=()=>{f(!v)},g=u=>{var m;u.disabled||(f(!1),i==null||i(u),(m=u.onSelect)==null||m.call(u))},h=a,j=t||r.jsx(yr,{size:20,color:"#00D4AA"});return r.jsxs("div",{className:`selector-container ${l}`,ref:d,children:[r.jsxs("div",{className:`selector ${v?"selector--open":""}`,onClick:c,children:[r.jsx("div",{className:"selector__icon",children:j}),r.jsx("div",{className:"selector__title",children:h}),r.jsx("div",{className:"selector__chevron",children:r.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`selector__chevron-icon ${v?"selector__chevron-icon--open":""}`,children:r.jsx("path",{d:"M1 1L6 6L11 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),v&&n.length>0&&r.jsx("div",{className:"selector__dropdown",children:r.jsx("div",{className:"selector__dropdown-content",children:n.map(u=>r.jsxs("div",{className:`selector__option ${u.active?"selector__option--selected":""} ${u.disabled?"selector__option--disabled":""}`,onClick:()=>g(u),children:[u.icon&&r.jsx("div",{className:"selector__option-icon",children:u.icon}),r.jsxs("div",{className:"selector__option-content",children:[r.jsx("div",{className:"selector__option-title",children:u.title}),u.subtitle&&r.jsx("div",{className:"selector__option-subtitle",children:u.subtitle})]})]},u.id))})})]})},Ir=({title:t,subtitle:a,buttonText:n,buttonVariant:i="filled",onClick:l,image:v="src/assets/images/default_card_wallpaper.png",icon:f,disabled:d=!1,className:c="",size:g="md"})=>r.jsxs("div",{className:`cardcta-container cardcta-size-${g} ${c}`,style:{backgroundImage:`url('${v}')`,backgroundSize:"cover",backgroundPosition:"center",position:"relative",overflow:"hidden"},children:[r.jsx("div",{className:"cardcta-gradient-overlay"}),d&&r.jsx("div",{className:"cardcta-bg-disabled"}),r.jsxs("div",{className:"cardcta-overlay",children:[r.jsx("div",{className:"cardcta-icon",children:f}),r.jsx("h3",{className:"cardcta-title",children:t}),a&&r.jsx("p",{className:"cardcta-subtitle",children:a}),r.jsx(le,{onClick:l,size:"sm",disabled:d,variant:i,children:d?r.jsx("span",{children:"Próximamente"}):n})]})]});E.Alert=Ie,E.Button=le,E.Card=mr,E.CardCTA=Ir,E.Collapsible=vr,E.Drawer=dr,E.Header=Tr,E.Input=Re,E.Logo=oe,E.Modal=hr,E.Pagination=$e,E.ProgressBar=Er,E.Selector=Lr,E.Sidebar=ur,E.SocialLogin=Oe,E.Tab=ke,E.TabGroup=Ee,E.ToggleButton=gr,E.alertVariants=Le,E.buttonVariants=ye,E.inputVariants=Te,E.tabVariants=_e,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
31
31
  //# sourceMappingURL=index.umd.js.map