@iaclinical/components 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),M={class:"flex items-center gap-4"},D={key:1,class:"text-lg font-bold text-primary-50 font-poppins"},j={class:"flex-1 flex justify-center"},_={key:0,class:"text-lg font-bold text-primary-50 font-poppins"},L={class:"flex items-center gap-3"},I={key:0,class:"text-lg font-bold text-primary-50 font-poppins"},O=e.defineComponent({__name:"AppBar",props:{title:{default:""},titlePosition:{default:"left"},showMenuButton:{type:Boolean,default:!0},variant:{default:"default"},sticky:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},height:{default:"md"}},emits:["toggle-menu"],setup(o,{emit:u}){const t=o,s=u,n=e.computed(()=>{const a="flex items-center justify-between px-6 z-50",r={default:"bg-primary-700 text-primary-50",dark:"bg-secondary-900 text-white",light:"bg-white text-secondary-900 border-b border-secondary-200"},c={sm:"h-12",md:"h-14",lg:"h-16"},i=t.sticky?"sticky top-0":"",f=t.shadow?"shadow-md":"";return[a,r[t.variant],c[t.height],i,f].join(" ")});return(a,r)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(n.value)},[e.createElementVNode("div",M,[o.showMenuButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[0]||(r[0]=c=>s("toggle-menu")),class:"p-2 hover:bg-primary-600 rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Toggle menu"},[...r[1]||(r[1]=[e.createElementVNode("svg",{class:"w-6 h-6 text-primary-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})],-1)])])):e.createCommentVNode("",!0),o.title&&o.titlePosition==="left"?(e.openBlock(),e.createElementBlock("div",D,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"left",{},void 0,!0)]),e.createElementVNode("div",j,[o.title&&o.titlePosition==="center"?(e.openBlock(),e.createElementBlock("div",_,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",L,[o.title&&o.titlePosition==="right"?(e.openBlock(),e.createElementBlock("div",I,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"right",{},void 0,!0)])],2))}}),z=(o,u)=>{const t=o.__vccOpts||o;for(const[s,n]of u)t[s]=n;return t},F=z(O,[["__scopeId","data-v-883474b5"]]),A=["type","disabled","aria-label"],H={key:0,class:"absolute top-0 right-0 inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-bold leading-none text-white transform translate-x-1/2 -translate-y-1/2 bg-danger-600 rounded-full min-w-[1.25rem]"},P=e.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},radius:{default:"full"},type:{default:"button"},disabled:{type:Boolean,default:!1},badge:{default:0},ariaLabel:{default:""},textColor:{default:void 0},textColorHover:{default:void 0}},emits:["click"],setup(o,{emit:u}){const t=o,s=u,n=e.computed(()=>t.variant==="icon"),a=e.computed(()=>t.badge>99?"99+":t.badge.toString()),r=e.computed(()=>{const i="inline-flex items-center justify-center font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",f={primary:"bg-primary-500 text-white hover:bg-primary-600 active:bg-primary-700 focus-visible:ring-primary-700",secondary:"bg-secondary-200 text-secondary-900 hover:bg-secondary-300 focus-visible:ring-secondary-500",outline:"border border-secondary-300 bg-transparent hover:bg-secondary-100 focus-visible:ring-secondary-500",ghost:"hover:bg-secondary-100 focus-visible:ring-secondary-500",danger:"bg-danger-600 text-white hover:bg-danger-700 focus-visible:ring-danger-600",icon:"hover:bg-secondary-100 focus-visible:ring-secondary-500 relative",text:"bg-transparent border-0 focus-visible:ring-0 focus-visible:ring-offset-0"},g={sm:n.value?"p-1.5":"h-8 px-3 text-sm",md:n.value?"p-2":"h-10 px-4 text-base",lg:n.value?"p-3":"h-12 px-6 text-lg"},b={full:"rounded-full",xl:"rounded-2xl",lg:"rounded-xl",md:"rounded-lg",sm:"rounded-md",none:"rounded-none"},B=t.textColor?t.textColor:"",x=e.computed(()=>{var p,E;return t.textColorHover?t.textColorHover:(p=t.textColor)!=null&&p.includes("white")||(E=t.textColor)!=null&&E.includes("50")?"hover:text-black":""});return`${i} ${f[t.variant]} ${g[t.size]} ${b[t.radius]} ${B} ${x.value}`}),c=i=>{t.disabled||s("click",i)};return(i,f)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(r.value),type:o.type,disabled:o.disabled,onClick:c,"aria-label":o.ariaLabel},[e.renderSlot(i.$slots,"default"),n.value&&o.badge&&o.badge>0?(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)],10,A))}}),W={key:0,class:"border-b border-gray-100 px-6 py-4"},K={class:"px-6 py-4"},R={key:1,class:"border-t border-gray-100 px-6 py-4 bg-gray-50"},q=e.defineComponent({__name:"Card",props:{shadow:{default:"md"},rounded:{default:"lg"},bordered:{type:Boolean,default:!1}},setup(o){const u=o,t={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},s={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},n=e.computed(()=>["w-full bg-white",t[u.shadow],s[u.rounded],u.bordered?"border border-gray-200":""]);return(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[a.$slots.header?(e.openBlock(),e.createElementBlock("div",W,[e.renderSlot(a.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",K,[e.renderSlot(a.$slots,"default")]),a.$slots.footer?(e.openBlock(),e.createElementBlock("div",R,[e.renderSlot(a.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),U={class:"flex items-center justify-between border-b border-gray-100/60 px-8 py-6"},G={class:"text-xl font-semibold text-gray-900"},Q={class:"px-8 py-6"},Z={key:0,class:"border-t border-gray-100 px-8 py-6 bg-gray-50"},J=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},title:{default:"Diálogo"},closeOnBackdrop:{type:Boolean,default:!0}},emits:["update:modelValue","close"],setup(o,{emit:u}){const t=o,s=u,n=e.computed({get:()=>t.modelValue,set:c=>s("update:modelValue",c)}),a=()=>{n.value=!1,s("close")},r=()=>{t.closeOnBackdrop&&a()};return(c,i)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"dialog"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:r},[e.createElementVNode("div",{class:"relative w-full max-w-2xl rounded-lg bg-white shadow-xl",onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",U,[e.createElementVNode("h2",G,[e.renderSlot(c.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)]),e.createElementVNode("button",{type:"button",class:"inline-flex items-center justify-center rounded-md p-1 text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Cerrar diálogo",onClick:a},[...i[1]||(i[1]=[e.createElementVNode("svg",{class:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),e.createElementVNode("div",Q,[e.renderSlot(c.$slots,"default",{},void 0,!0)]),c.$slots.footer?(e.openBlock(),e.createElementBlock("div",Z,[e.renderSlot(c.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:3})]))}}),X=z(J,[["__scopeId","data-v-ce4f3dd4"]]),Y=["accept","multiple","disabled"],ee={class:"flex flex-col items-center justify-center gap-4 text-center"},te=["src","alt"],oe={key:1,class:"w-full h-full text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},le={class:"text-center"},ne={class:"text-base font-medium text-gray-700"},re={class:"text-primary-700"},se={class:"flex items-center gap-3 flex-1 min-w-0"},ae={class:"flex-1 min-w-0"},ie={class:"text-sm font-medium text-gray-900 truncate"},ce={class:"text-xs text-gray-500"},de={key:1,class:"text-xs text-gray-500 mt-2"},ue={key:2,class:"text-sm text-danger-500 mt-2"},me=e.defineComponent({__name:"FileUpload",props:{modelValue:{default:null},accept:{default:"*"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},illustration:{default:void 0},illustrationAlt:{default:"Subir archivo"},illustrationSize:{default:"md"},mainText:{default:"Suelta aquí un archivo o"},linkText:{default:"selecciónalo desde tu equipo"},helperText:{default:""},maxSize:{default:void 0}},emits:["update:modelValue","change","error"],setup(o,{emit:u}){const t=o,s=u,n=e.ref(null),a=e.ref(!1),r=e.ref(t.modelValue),c=e.ref(""),i=e.computed(()=>({sm:"w-20 h-20",md:"w-32 h-32",lg:"w-48 h-48",xl:"w-64 h-64"})[t.illustrationSize]),f=()=>{var k;(k=n.value)==null||k.click()},g=()=>{t.disabled||f()},b=k=>{t.disabled||(a.value=!0)},B=()=>{a.value=!1},x=k=>{if(c.value="",t.maxSize&&k.size>t.maxSize){const h=(t.maxSize/1048576).toFixed(2);return c.value=`El archivo excede el tamaño máximo de ${h}MB`,s("error",c.value),!1}return!0},p=k=>{var $;const C=($=k.target.files)==null?void 0:$[0];C&&x(C)&&(r.value=C,s("update:modelValue",C),s("change",C))},E=k=>{var C;a.value=!1;const h=(C=k.dataTransfer)==null?void 0:C.files[0];h&&x(h)&&(r.value=h,s("update:modelValue",h),s("change",h))},S=()=>{r.value=null,c.value="",n.value&&(n.value.value=""),s("update:modelValue",null),s("change",null)},N=k=>{if(k===0)return"0 Bytes";const h=1024,C=["Bytes","KB","MB","GB"],$=Math.floor(Math.log(k)/Math.log(h));return Math.round(k/Math.pow(h,$)*100)/100+" "+C[$]};return(k,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative border-2 border-dashed rounded-lg p-8 transition-colors",[a.value?"border-primary-700 bg-primary-50":"border-gray-300 bg-white hover:border-primary-500",o.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]]),onClick:g,onDragover:e.withModifiers(b,["prevent"]),onDragleave:e.withModifiers(B,["prevent"]),onDrop:e.withModifiers(E,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:n,type:"file",accept:o.accept,multiple:o.multiple,disabled:o.disabled,class:"hidden",onChange:p},null,40,Y),e.createElementVNode("div",ee,[e.createElementVNode("div",{class:e.normalizeClass([i.value,"flex items-center justify-center"])},[o.illustration?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.illustration,alt:o.illustrationAlt,class:"max-w-full max-h-full object-contain"},null,8,te)):(e.openBlock(),e.createElementBlock("svg",oe,[...h[1]||(h[1]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},null,-1)])]))],2),e.createElementVNode("div",le,[e.createElementVNode("p",ne,[e.createTextVNode(e.toDisplayString(o.mainText)+" ",1),e.createElementVNode("span",re,e.toDisplayString(o.linkText),1)])]),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"w-full max-w-md bg-gray-50 rounded-lg p-4 flex items-center justify-between",onClick:h[0]||(h[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",se,[h[2]||(h[2]=e.createElementVNode("svg",{class:"w-6 h-6 text-gray-600 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)),e.createElementVNode("div",ae,[e.createElementVNode("p",ie,e.toDisplayString(r.value.name),1),e.createElementVNode("p",ce,e.toDisplayString(N(r.value.size)),1)])]),o.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(S,["stop"]),class:"ml-3 text-gray-400 hover:text-danger-500 transition-colors"},[...h[3]||(h[3]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])]))])):e.createCommentVNode("",!0),o.helperText?(e.openBlock(),e.createElementBlock("p",de,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("p",ue,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)])],34))}}),pe=["stroke-width"],fe={class:"w-full h-full rounded-lg overflow-hidden",style:{"background-color":"#f7f7f7"}},ge=e.defineComponent({__name:"Loader",props:{type:{default:"circular"},size:{default:"40px"},height:{default:"4px"},color:{default:"primary"},strokeWidth:{default:4},progress:{default:void 0}},setup(o){const u=o,t={primary:"text-primary-700",secondary:"text-secondary-500",success:"text-success-500",warning:"text-warning-500",danger:"text-danger-500",info:"text-info-500"},s={primary:"bg-primary-700",secondary:"bg-secondary-500",success:"bg-success-500",warning:"bg-warning-500",danger:"bg-danger-500",info:"bg-info-500"},n=e.computed(()=>[t[u.color]]),a=e.computed(()=>[s[u.color]]);return(r,c)=>o.type==="circular"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.value)},[(e.openBlock(),e.createElementBlock("svg",{class:"animate-spin",style:e.normalizeStyle({width:o.size,height:o.size}),viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":o.strokeWidth,fill:"none"},null,8,pe),c[0]||(c[0]=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1))],4))],2)):o.type==="linear"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full",style:e.normalizeStyle({height:o.height})},[e.createElementVNode("div",fe,[e.createElementVNode("div",{class:e.normalizeClass([a.value,"h-full rounded-lg animate-linear-loader"]),style:e.normalizeStyle({width:o.progress?`${o.progress}%`:void 0})},null,6)])],4)):e.createCommentVNode("",!0)}}),ve=z(ge,[["__scopeId","data-v-8df4ec38"]]),ye=["disabled","aria-expanded"],ke=["disabled","onClick"],xe={key:0,class:"flex-shrink-0"},he=["innerHTML"],be={class:"flex-1 min-w-0 mr-2"},we={class:"flex flex-col items-start"},Ce=["title"],Be=["title"],Ee={key:1,class:"flex-shrink-0"},Ve={key:0,class:"text-xs text-secondary-400 font-mono whitespace-nowrap"},$e={key:1},Ne={key:2,class:"w-4 h-4 ml-2 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Se=e.defineComponent({__name:"Menu",props:{items:{default:()=>[]},triggerText:{default:"Menu"},showChevron:{type:Boolean,default:!0},position:{default:"bottom-start"},align:{default:"start"},offset:{default:()=>({x:0,y:4})},width:{default:"auto"},maxHeight:{default:"400px"},closeOnClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},teleport:{type:Boolean,default:!0},zIndex:{default:50}},emits:["open","close","select"],setup(o,{emit:u}){const t=o,s=u,n=e.ref(!1),a=e.ref(null),r=e.ref(null),c=e.ref({}),i=e.computed(()=>["inline-flex items-center justify-center px-4 py-2 text-sm font-medium","bg-white border border-secondary-300 rounded-md","hover:bg-secondary-50 focus:outline-none focus:ring-2 focus:ring-primary-500","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors"].join(" ")),f=e.computed(()=>[...["fixed bg-white rounded-lg shadow-lg border border-secondary-200","flex flex-col","focus:outline-none"],`z-${t.zIndex}`].join(" ")),g=e.computed(()=>"px-4 py-3 border-b border-secondary-200 bg-secondary-50"),b=e.computed(()=>"px-4 py-3 border-t border-secondary-200 bg-secondary-50"),B=e.computed(()=>"py-1 overflow-y-auto flex-1 min-h-0"),x=e.computed(()=>"my-1 border-t border-secondary-200"),p=e.computed(()=>"px-4 py-2 text-xs font-semibold text-secondary-500 uppercase tracking-wider"),E=l=>{const y=["w-full flex items-center gap-3 px-4 py-2 text-sm text-left","transition-colors focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"],d=l.variant||"default",T={default:"text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50",danger:"text-danger-600 hover:bg-danger-50 focus:bg-danger-50",success:"text-success-600 hover:bg-success-50 focus:bg-success-50",warning:"text-warning-600 hover:bg-warning-50 focus:bg-warning-50"};let w="";return l.color&&(w=l.color,(l.color.includes("white")||l.color.includes("50"))&&(w+=" hover:text-black")),[...y,w||T[d]].join(" ")},S=()=>{t.disabled||(n.value?k():N())},N=()=>{n.value=!0,s("open"),e.nextTick(()=>{v(),document.addEventListener("click",C),document.addEventListener("keydown",$)})},k=()=>{n.value=!1,s("close"),document.removeEventListener("click",C),document.removeEventListener("keydown",$)},h=l=>{l.disabled||(l.action&&l.action(),s("select",l),t.closeOnClick&&!l.children&&k())},C=l=>{const y=l.target;a.value&&!a.value.contains(y)&&r.value&&!r.value.contains(y)&&k()},$=l=>{l.key==="Escape"&&k()},m=l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),S())},v=()=>{if(!a.value||!r.value)return;const l=a.value.getBoundingClientRect(),y=r.value.getBoundingClientRect(),d=window.innerWidth,T=window.innerHeight;let w=0,V=0;switch(t.position){case"bottom-start":w=l.bottom+t.offset.y,V=l.left+t.offset.x;break;case"bottom-end":w=l.bottom+t.offset.y,V=l.right-y.width+t.offset.x;break;case"top-start":w=l.top-y.height-t.offset.y,V=l.left+t.offset.x;break;case"top-end":w=l.top-y.height-t.offset.y,V=l.right-y.width+t.offset.x;break;case"right-start":w=l.top+t.offset.y,V=l.right+t.offset.x;break;case"right-end":w=l.bottom-y.height+t.offset.y,V=l.right+t.offset.x;break;case"left-start":w=l.top+t.offset.y,V=l.left-y.width-t.offset.x;break;case"left-end":w=l.bottom-y.height+t.offset.y,V=l.left-y.width-t.offset.x;break}V+y.width>d&&(V=d-y.width-8),V<8&&(V=8),w+y.height>T&&(w=T-y.height-8),w<8&&(w=8),c.value={top:`${w}px`,left:`${V}px`,width:t.width==="auto"?`${Math.max(l.width,240)}px`:t.width,maxHeight:t.maxHeight,minWidth:"240px"}};return e.onMounted(()=>{window.addEventListener("scroll",v,!0),window.addEventListener("resize",v)}),e.onUnmounted(()=>{window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v),document.removeEventListener("click",C),document.removeEventListener("keydown",$)}),e.watch(()=>t.items,()=>{n.value&&e.nextTick(v)},{deep:!0}),(l,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper",{"w-full":o.fullWidth}])},[e.createElementVNode("div",{ref_key:"triggerRef",ref:a},[e.renderSlot(l.$slots,"trigger",{isOpen:n.value,toggle:S},()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(i.value),disabled:o.disabled,onClick:S,onKeydown:m,tabindex:0,role:"button","aria-expanded":n.value,"aria-haspopup":!0},[e.renderSlot(l.$slots,"trigger-content",{},()=>[e.createTextVNode(e.toDisplayString(o.triggerText),1)],!0),o.showChevron?(e.openBlock(),e.createElementBlock("svg",{key:0,class:e.normalizeClass(["w-4 h-4 ml-2 transition-transform",n.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...y[1]||(y[1]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2)):e.createCommentVNode("",!0)],42,ye)],!0)],512),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:r,class:e.normalizeClass(f.value),style:e.normalizeStyle(c.value),onClick:y[0]||(y[0]=e.withModifiers(()=>{},["stop"]))},[l.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(g.value)},[e.renderSlot(l.$slots,"header",{close:k},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(B.value)},[e.renderSlot(l.$slots,"default",{close:k,isOpen:n.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(d,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d.id||T},[d.type==="divider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(x.value)},null,2)):d.type==="header"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(p.value)},e.toDisplayString(d.label),3)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(E(d)),disabled:d.disabled,onClick:w=>h(d)},[d.icon||l.$slots[`icon-${d.id}`]?(e.openBlock(),e.createElementBlock("span",xe,[e.renderSlot(l.$slots,`icon-${d.id}`,{item:d},()=>[typeof d.icon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon),{key:0,class:"w-5 h-5"})):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:d.icon,class:"w-5 h-5 inline-block"},null,8,he))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",be,[e.renderSlot(l.$slots,`item-${d.id}`,{item:d,close:k},()=>[e.createElementVNode("div",we,[e.createElementVNode("span",{class:"truncate w-full",title:d.label},e.toDisplayString(d.label),9,Ce),d.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-xs text-secondary-500 truncate w-full",title:d.description},e.toDisplayString(d.description),9,Be)):e.createCommentVNode("",!0)])],!0)]),d.suffix||d.shortcut||l.$slots[`suffix-${d.id}`]?(e.openBlock(),e.createElementBlock("span",Ee,[e.renderSlot(l.$slots,`suffix-${d.id}`,{item:d},()=>[d.shortcut?(e.openBlock(),e.createElementBlock("span",Ve,e.toDisplayString(d.shortcut),1)):d.suffix?(e.openBlock(),e.createElementBlock("span",$e,e.toDisplayString(d.suffix),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),d.children&&d.children.length>0?(e.openBlock(),e.createElementBlock("svg",Ne,[...y[2]||(y[2]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])])):e.createCommentVNode("",!0)],10,ke))],64))),128))],!0)],2),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(b.value)},[e.renderSlot(l.$slots,"footer",{close:k},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),n.value&&o.overlay?(e.openBlock(),e.createElementBlock("div",{key:1,class:"fixed inset-0 bg-black/20 z-40",onClick:k})):e.createCommentVNode("",!0)]))],2))}}),ze=z(Se,[["__scopeId","data-v-335f2699"]]),Te=["for"],Me={key:0,class:"text-danger-600"},De={class:"relative"},je=["id","disabled","aria-expanded"],_e={class:"flex-1 text-left truncate"},Le={key:0,class:"p-2 border-b border-secondary-200"},Ie=["placeholder"],Oe={class:"max-h-64 overflow-y-auto"},Fe={key:0,class:"px-4 py-3 text-sm text-secondary-500 text-center"},Ae=["onClick"],He={class:"flex items-center justify-between w-full"},Pe={class:"truncate"},We={key:0,class:"w-5 h-5 text-primary-600 flex-shrink-0 ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ke={key:0,class:"border-t border-secondary-200 my-1"},Re=["onClick"],qe=["innerHTML"],Ue={key:1,class:"mt-1 text-sm text-danger-600"},Ge={key:2,class:"mt-1 text-sm text-secondary-600"},Qe=e.defineComponent({__name:"Select",props:{modelValue:{default:null},options:{default:()=>[]},actionItems:{default:()=>[]},label:{default:""},placeholder:{default:"Seleccionar..."},size:{default:"md"},variant:{default:"default"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Buscar..."},emptyText:{default:"No hay opciones disponibles"},error:{default:""},helperText:{default:""},fullWidth:{type:Boolean,default:!1},menuPosition:{default:"bottom"}},emits:["update:modelValue","change","action"],setup(o,{emit:u}){const t=o,s=u,n=e.ref(!1),a=e.ref(""),r=e.ref(null),c=e.computed(()=>`select-${Math.random().toString(36).substr(2,9)}`),i=e.computed(()=>t.options.find(m=>m.value===t.modelValue)||null),f=e.computed(()=>{if(!t.searchable||!a.value)return t.options;const m=a.value.toLowerCase();return t.options.filter(v=>v.label.toLowerCase().includes(m))}),g=e.computed(()=>"block text-sm font-semibold text-secondary-700 mb-1"),b=e.computed(()=>{const m="w-full flex items-center justify-between gap-2 border rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed",v={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg"},l={default:"bg-white border-secondary-300 hover:border-secondary-400",outline:"bg-transparent border-secondary-300 hover:border-primary-500",filled:"bg-secondary-100 border-transparent hover:bg-secondary-200"},y=t.error?"border-danger-600 focus:ring-danger-500":"";return[m,v[t.size],l[t.variant],y].join(" ")}),B=e.computed(()=>`absolute ${t.menuPosition==="top"?"bottom-full mb-1":"top-full mt-1"} left-0 right-0 bg-white rounded-lg shadow-lg border border-secondary-200 z-50 overflow-hidden`),x=m=>{const v="w-full px-4 py-2 text-left hover:bg-primary-50 transition-colors focus:outline-none focus:bg-primary-50 disabled:opacity-50 disabled:cursor-not-allowed",l=E(m)?"bg-primary-50":"";return[v,l].join(" ")},p=m=>{const v="w-full px-4 py-2 text-left text-sm font-semibold transition-colors focus:outline-none flex items-center gap-3";return m.variant==="danger"?`${v} text-danger-600 hover:bg-danger-50 focus:bg-danger-50`:`${v} text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50`},E=m=>m.value===t.modelValue,S=()=>{t.disabled||(n.value=!n.value,n.value&&t.searchable&&e.nextTick(()=>{var m;(m=r.value)==null||m.focus()}))},N=()=>{n.value=!1,a.value=""},k=m=>{m.disabled||(s("update:modelValue",m.value),s("change",m),N())},h=m=>{m.action&&m.action(),s("action",m),N()},C=m=>{const v=m.relatedTarget;v&&v.closest(".select-wrapper")||setTimeout(()=>{N()},200)},$=m=>{m.key==="Escape"?N():(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),S())};return e.watch(n,m=>{m&&(a.value="")}),(m,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-wrapper",{"w-full":o.fullWidth}])},[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:c.value,class:e.normalizeClass(g.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Me,"*")):e.createCommentVNode("",!0)],10,Te)):e.createCommentVNode("",!0),e.createElementVNode("div",De,[e.createElementVNode("button",{id:c.value,type:"button",class:e.normalizeClass(b.value),disabled:o.disabled,"aria-expanded":n.value,"aria-haspopup":!0,onClick:S,onBlur:C,onKeydown:$},[e.createElementVNode("span",_e,e.toDisplayString(i.value?i.value.label:o.placeholder),1),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w-5 h-5 flex-shrink-0 transition-transform text-secondary-600",n.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[...v[3]||(v[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,je),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(B.value),onClick:v[2]||(v[2]=e.withModifiers(()=>{},["stop"]))},[o.searchable?(e.openBlock(),e.createElementBlock("div",Le,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:r,"onUpdate:modelValue":v[0]||(v[0]=l=>a.value=l),type:"text",class:"w-full px-3 py-2 text-sm border border-secondary-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500",placeholder:o.searchPlaceholder,onKeydown:v[1]||(v[1]=e.withModifiers(()=>{},["stop"]))},null,40,Ie),[[e.vModelText,a.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",Oe,[f.value.length===0?(e.openBlock(),e.createElementBlock("div",Fe,e.toDisplayString(o.emptyText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,l=>(e.openBlock(),e.createElementBlock("button",{key:l.value,type:"button",class:e.normalizeClass(x(l)),onClick:y=>k(l)},[e.createElementVNode("div",He,[e.createElementVNode("span",Pe,e.toDisplayString(l.label),1),E(l)?(e.openBlock(),e.createElementBlock("svg",We,[...v[4]||(v[4]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)])],10,Ae))),128)),o.actionItems.length>0?(e.openBlock(),e.createElementBlock("div",Ke)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actionItems,l=>(e.openBlock(),e.createElementBlock("button",{key:l.id,type:"button",class:e.normalizeClass(p(l)),onClick:y=>h(l)},[l.icon?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"w-4 h-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",innerHTML:l.icon},null,8,qe)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.label),1)],10,Re))),128))],64))])],2)):e.createCommentVNode("",!0)]),o.error?(e.openBlock(),e.createElementBlock("p",Ue,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Ge,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:N,class:"fixed inset-0 z-40"})):e.createCommentVNode("",!0)],2))}}),Ze=z(Qe,[["__scopeId","data-v-f016a03c"]]),Je=e.defineComponent({__name:"Sidebar",props:{modelValue:{type:Boolean,default:!1},position:{default:"left"},width:{default:"16rem"},overlay:{type:Boolean,default:!0},overlayTop:{default:"0"},closable:{type:Boolean,default:!0},persistent:{type:Boolean,default:!1},backgroundColor:{default:"white"},shadow:{type:Boolean,default:!0},padding:{default:"md"}},emits:["update:modelValue","close","open"],setup(o,{emit:u}){const t=o,s=u,n=e.computed({get:()=>t.modelValue,set:x=>s("update:modelValue",x)}),a=()=>{t.persistent||(n.value=!1,s("close"))},r=e.computed(()=>t.position==="left"?"slide-right":"slide-left"),c=e.computed(()=>{const x="fixed top-0 h-full z-50 flex flex-col",p=t.position==="left"?"left-0":"right-0",E=t.shadow?t.position==="left"?"shadow-[2px_0_8px_rgba(0,0,0,0.1)]":"shadow-[-2px_0_8px_rgba(0,0,0,0.1)]":"";return[x,p,E].filter(Boolean).join(" ")}),i=e.computed(()=>({width:t.width,backgroundColor:t.backgroundColor,top:t.overlayTop,height:t.overlayTop!=="0"?`calc(100vh - ${t.overlayTop})`:"100vh"})),f={none:"",sm:"p-2",md:"p-4",lg:"p-6"},g=e.computed(()=>`flex items-center justify-between border-b border-gray-200 ${f[t.padding]}`),b=e.computed(()=>`flex-1 overflow-y-auto ${f[t.padding]}`),B=e.computed(()=>`border-t border-gray-200 ${f[t.padding]}`);return(x,p)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[n.value&&o.overlay?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:a,class:"fixed inset-0 bg-black/50 z-40",style:e.normalizeStyle({top:o.overlayTop})},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:r.value},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(c.value),style:e.normalizeStyle(i.value)},[x.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(g.value)},[e.renderSlot(x.$slots,"header",{},void 0,!0),o.closable?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a,class:"p-2 hover:bg-gray-100 rounded-md transition-colors","aria-label":"Cerrar menú"},[...p[0]||(p[0]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(b.value)},[e.renderSlot(x.$slots,"default",{},void 0,!0)],2),x.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(B.value)},[e.renderSlot(x.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),Xe=z(Je,[["__scopeId","data-v-fffb0e44"]]),Ye={class:"w-full overflow-x-auto"},et={class:"w-full border-collapse"},tt={class:"w-full"},ot=["onClick"],lt={class:"flex items-center gap-2"},nt={key:0,class:"text-xs text-gray-400"},rt={key:0},st={key:1},at={class:"w-full"},it={key:0,class:"flex items-center justify-center py-12 text-gray-400"},ct={key:1,class:"w-full px-6 py-4 bg-white"},dt=e.defineComponent({__name:"Table",props:{columns:{},data:{},headerClass:{default:void 0},headerCellClass:{default:void 0},cellClass:{default:void 0},rowClass:{default:void 0}},setup(o){const u=o,t=e.ref(null),s=e.ref("asc"),n=r=>{t.value===r?s.value=s.value==="asc"?"desc":"asc":(t.value=r,s.value="asc")},a=e.computed(()=>{if(!t.value)return u.data;const r=[...u.data];return r.sort((c,i)=>{const f=c[t.value],g=i[t.value];return typeof f=="string"&&typeof g=="string"?s.value==="asc"?f.localeCompare(g):g.localeCompare(f):typeof f=="number"&&typeof g=="number"?s.value==="asc"?f-g:g-f:0}),r});return(r,c)=>(e.openBlock(),e.createElementBlock("div",Ye,[e.createElementVNode("table",et,[e.createElementVNode("thead",tt,[e.createElementVNode("tr",{class:e.normalizeClass(["w-full",u.headerClass||"bg-neutral-50 border-b border-gray-100"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,i=>(e.openBlock(),e.createElementBlock("th",{key:i.key,style:e.normalizeStyle(i.width?{width:i.width}:{}),class:e.normalizeClass(["px-4 py-3 text-left text-xs font-semibold text-gray-700 border-l border-gray-100 first:border-l-0",i.sortable?"cursor-pointer hover:text-primary-600 select-none transition-colors":"",u.headerCellClass]),onClick:f=>i.sortable&&n(i.key)},[e.createElementVNode("div",lt,[e.createElementVNode("span",null,e.toDisplayString(i.label),1),i.sortable?(e.openBlock(),e.createElementBlock("span",nt,[t.value!==i.key?(e.openBlock(),e.createElementBlock("span",rt,"⇅")):(e.openBlock(),e.createElementBlock("span",st,e.toDisplayString(s.value==="asc"?"↑":"↓"),1))])):e.createCommentVNode("",!0)])],14,ot))),128))],2)]),e.createElementVNode("tbody",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(i,f)=>(e.openBlock(),e.createElementBlock("tr",{key:f,class:e.normalizeClass(["w-full border-b border-gray-200 hover:bg-gray-50 transition-colors",u.rowClass])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,g=>(e.openBlock(),e.createElementBlock("td",{key:`${f}-${g.key}`,class:e.normalizeClass(["px-4 py-3 text-xs text-gray-600 border-l border-gray-100 first:border-l-0",u.cellClass])},[e.renderSlot(r.$slots,`cell-${g.key}`,{value:i[g.key],row:i},()=>[e.createTextVNode(e.toDisplayString(i[g.key]),1)],!0)],2))),128))],2))),128))])]),a.value.length===0?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(r.$slots,"empty",{},()=>[c[0]||(c[0]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",ct,[e.renderSlot(r.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]))}}),ut=z(dt,[["__scopeId","data-v-017c9d24"]]),mt={class:"w-full"},pt={class:"flex border-b border-gray-100",role:"tablist"},ft=["aria-selected","onClick"],gt={role:"tabpanel"},vt="relative px-6 py-3 text-base font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",yt="text-primary-700 border-b-4 border-primary-700",kt="text-gray-600 border-b-4 border-transparent hover:text-gray-800",xt=e.defineComponent({__name:"Tabs",props:{modelValue:{},tabs:{}},emits:["update:modelValue"],setup(o,{emit:u}){const t=o,s=u,n=i=>t.modelValue===i,a=i=>{n(i)||s("update:modelValue",i)},r=e.computed(()=>t.modelValue),c=e.computed(()=>t.tabs.find(i=>i.value===r.value));return(i,f)=>(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("div",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,type:"button",class:e.normalizeClass([vt,n(g.value)?yt:kt]),"aria-selected":n(g.value),role:"tab",onClick:b=>a(g.value)},e.toDisplayString(g.label),11,ft))),128))]),e.createElementVNode("div",gt,[e.renderSlot(i.$slots,r.value,{active:r.value,tab:c.value})])]))}}),ht="font-sans",bt=e.defineComponent({__name:"Text",props:{variant:{default:"body1"},as:{},color:{default:"default"},align:{default:"left"},uppercase:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},weight:{}},setup(o){const u={h1:"text-[40px] leading-[57px] tracking-[0px] font-extrabold",h2:"text-[40px] leading-[57px] tracking-[0px] font-bold",h3:"text-[28px] leading-[39px] tracking-[0px] font-extrabold",h4:"text-[21px] leading-[29px] tracking-[0px] font-extrabold",h5:"text-[16px] leading-[22px] tracking-[0px] font-extrabold",h6:"text-[13px] leading-[18px] tracking-[0px] font-extrabold",subtitle1:"text-[16px] leading-[24px] tracking-[0.15px] font-medium",subtitle2:"text-[14px] leading-[21px] tracking-[0.1px] font-medium",subtitle3:"text-[12px] leading-[18px] tracking-[0.1px] font-medium",subtitle4:"text-[10px] leading-[15px] tracking-[0.1px] font-medium",body1:"text-[16px] leading-[24px] tracking-[0.5px] font-light",body2:"text-[14px] leading-[21px] tracking-[0.25px] font-light",body3:"text-[12px] leading-[18px] tracking-[0.25px] font-light",body4:"text-[10px] leading-[15px] tracking-[0.25px] font-light",button1:"text-[14px] leading-[24px] tracking-[1.25px] font-bold",button2:"text-[14px] leading-[20px] tracking-[1.25px] font-bold",button3:"text-[12px] leading-[18px] tracking-[1.25px] font-bold",caption:"text-[12px] leading-[18px] tracking-[0.4px] font-normal",overline:"text-[10px] leading-[15px] tracking-[1.5px] font-medium"},t={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",body1:"p",body2:"p",body3:"p",body4:"p",button1:"span",button2:"span",button3:"span",caption:"span",overline:"span"},s={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},n={default:"text-secondary-900",muted:"text-secondary-600",primary:"text-primary-600",secondary:"text-secondary-700",danger:"text-danger-600",success:"text-success-600",warning:"text-warning-600"},a={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},r=o,c=e.computed(()=>r.variant),i=e.computed(()=>r.color),f=e.computed(()=>r.align),g=e.computed(()=>r.as||t[c.value]||"span"),b=e.computed(()=>r.weight?a[r.weight]:"");return(B,x)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.value),{class:e.normalizeClass([ht,u[c.value],n[i.value],s[f.value],b.value,{uppercase:o.uppercase||c.value==="overline",truncate:o.truncate}])},{default:e.withCtx(()=>[e.renderSlot(B.$slots,"default")]),_:3},8,["class"]))}}),wt=["data-node-id"],Ct={class:"flex w-full items-center gap-4 px-0 py-6"},Bt={class:"shrink-0 size-12 rounded-full bg-[var(--neutrales/fondo-general-claro,#f7f7f7)] grid place-items-center"},Et={class:"tracking-[0.1px] text-[color:var(--neutrales/texto-principal,#565656)] font-medium"},Vt={key:1,class:"flex justify-end gap-1 px-0 pt-4 pb-0"},$t=e.defineComponent({__name:"Alert",props:{variant:{},title:{},description:{},closable:{type:Boolean},multiline:{type:Boolean},actions:{type:Boolean},nodeId:{}},emits:["close","accept","cancel"],setup(o,{emit:u}){const t=u,s=o,n=e.computed(()=>s.variant??"info"),a=e.computed(()=>s.multiline??!1),r=e.computed(()=>s.actions??!1),c=e.computed(()=>s.nodeId??void 0),i=()=>t("close"),f=e.computed(()=>{if(s.title)return s.title;switch(n.value){case"info":return"Alerta de información";case"warning":return"Alerta de advertencia";case"success":return"Alerta de éxito";case"error":return"Alerta de error"}}),g=e.computed(()=>s.description??""),b=e.computed(()=>{switch(n.value){case"info":return{border:"border-[var(--semantica/info,#0064ff)]",bg:"bg-[#faf9fd] outline outline-1 outline-[rgba(105,78,214,0.4)]",icon:"text-[#0064ff]"};case"warning":return{border:"border-[var(--semantica/warning,#ff9100)]",bg:"bg-[#fffcfa] outline outline-1 outline-[rgba(255,96,10,0.3)]",icon:"text-[#ff600a]"};case"success":return{border:"border-[var(--semantica/succes,#00b45e)]",bg:"bg-[#f7fbf9] outline outline-1 outline-[rgba(0,135,68,0.5)]",icon:"text-[#3ac29e]"};case"error":return{border:"border-[var(--semantica/error,#ff4235)]",bg:"bg-[#fdf7f9] outline outline-1 outline-[rgba(214,0,64,0.5)]",icon:"text-[#ff4235]"}}}),B=e.computed(()=>"bg-[var(--color-primario/700,#269ea4)]");return(x,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative w-full rounded-xl border",[b.value.border,b.value.bg]]),role:"alert","data-node-id":c.value},[o.closable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"absolute top-3 right-3 text-[color:var(--neutrales/texto-principal,#565656)]/70 hover:opacity-100 opacity-70","aria-label":"Cerrar",onClick:i},[...p[2]||(p[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Ct,[e.createElementVNode("div",Bt,[n.value==="info"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:e.normalizeClass(b.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[3]||(p[3]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("line",{x1:"12",y1:"16",x2:"12",y2:"12"},null,-1),e.createElementVNode("line",{x1:"12",y1:"8",x2:"12",y2:"8"},null,-1)])],2)):n.value==="warning"?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:e.normalizeClass(b.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[4]||(p[4]=[e.createElementVNode("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z"},null,-1),e.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),e.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"17"},null,-1)])],2)):n.value==="success"?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:e.normalizeClass(b.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[5]||(p[5]=[e.createElementVNode("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},null,-1),e.createElementVNode("polyline",{points:"22 4 12 14.01 9 11.01"},null,-1)])],2)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:e.normalizeClass(b.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[6]||(p[6]=[e.createElementVNode("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},null,-1),e.createElementVNode("line",{x1:"12",y1:"8",x2:"12",y2:"12"},null,-1),e.createElementVNode("line",{x1:"12",y1:"16",x2:"12",y2:"16"},null,-1)])],2))]),e.createElementVNode("div",{class:e.normalizeClass(["flex-1 flex items-center gap-4 text-[14px] pr-6",{"whitespace-nowrap":!a.value,"whitespace-pre-wrap":a.value}])},[e.createElementVNode("div",Et,e.toDisplayString(f.value),1),e.createElementVNode("div",{class:e.normalizeClass(["flex-1 tracking-[0.25px] text-[color:var(--neutrales/texto-principal,#565656)]",{"overflow-hidden overflow-ellipsis":!a.value}])},[e.renderSlot(x.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(g.value),1)])],2)],2)]),r.value?(e.openBlock(),e.createElementBlock("div",Vt,[e.createElementVNode("button",{type:"button",class:"px-4 py-1.5 rounded-[18px] text-[14px] tracking-[1.25px] font-bold text-[color:var(--neutrales/texto-principal,#565656)]",onClick:p[0]||(p[0]=E=>x.$emit("cancel"))},[e.renderSlot(x.$slots,"cancel",{},()=>[p[7]||(p[7]=e.createTextVNode("Cancelar",-1))])]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["px-4 py-1.5 rounded-[18px] text-[14px] tracking-[1.25px] font-bold text-white",B.value]),onClick:p[1]||(p[1]=E=>x.$emit("accept"))},[e.renderSlot(x.$slots,"accept",{},()=>[p[8]||(p[8]=e.createTextVNode("Aceptar",-1))])],2)])):e.createCommentVNode("",!0)],10,wt))}});exports.Alert=$t;exports.AppBar=F;exports.Button=P;exports.Card=q;exports.Dialog=X;exports.FileUpload=me;exports.Loader=ve;exports.Menu=ze;exports.Select=Ze;exports.Sidebar=Xe;exports.Table=ut;exports.Tabs=xt;exports.Text=bt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),M={class:"flex items-center gap-2 sm:gap-3 shrink-0"},D={key:1,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},_={class:"flex flex-1 justify-center items-center min-w-0"},j={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins truncate"},L={class:"flex items-center gap-2 sm:gap-3 shrink-0"},I={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},O=e.defineComponent({__name:"AppBar",props:{title:{default:""},titlePosition:{default:"left"},showMenuButton:{type:Boolean,default:!0},variant:{default:"default"},sticky:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},height:{default:"md"}},emits:["toggle-menu"],setup(o,{emit:m}){const t=o,s=m,n=e.computed(()=>{const a="flex flex-row items-center justify-between gap-2 sm:gap-4 px-3 sm:px-6 z-50 w-full",c={default:"bg-primary-700 text-primary-50",dark:"bg-secondary-900 text-white",light:"bg-white text-secondary-900 border-b border-secondary-200"},r={sm:"h-12",md:"h-14",lg:"h-16"},d=t.sticky?"sticky top-0":"",u=t.shadow?"shadow-md":"";return[a,c[t.variant],r[t.height],d,u].join(" ")});return(a,c)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(n.value)},[e.createElementVNode("div",M,[o.showMenuButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:c[0]||(c[0]=r=>s("toggle-menu")),class:"p-1.5 sm:p-2 hover:bg-primary-600 rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Toggle menu"},[...c[1]||(c[1]=[e.createElementVNode("svg",{class:"w-5 h-5 sm:w-6 sm:h-6 text-primary-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})],-1)])])):e.createCommentVNode("",!0),o.title&&o.titlePosition==="left"?(e.openBlock(),e.createElementBlock("div",D,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"left",{},void 0,!0)]),e.createElementVNode("div",_,[o.title&&o.titlePosition==="center"?(e.openBlock(),e.createElementBlock("div",j,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",L,[o.title&&o.titlePosition==="right"?(e.openBlock(),e.createElementBlock("div",I,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"right",{},void 0,!0)])],2))}}),z=(o,m)=>{const t=o.__vccOpts||o;for(const[s,n]of m)t[s]=n;return t},F=z(O,[["__scopeId","data-v-c5861315"]]),A=["type","disabled","aria-label"],P={key:0,class:"absolute top-0 right-0 inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-bold leading-none text-white transform translate-x-1/2 -translate-y-1/2 bg-danger-600 rounded-full min-w-[1.25rem]"},H=e.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},radius:{default:"full"},type:{default:"button"},disabled:{type:Boolean,default:!1},badge:{default:0},ariaLabel:{default:""},textColor:{default:void 0},textColorHover:{default:void 0}},emits:["click"],setup(o,{emit:m}){const t=o,s=m,n=e.computed(()=>t.variant==="icon"),a=e.computed(()=>t.badge>99?"99+":t.badge.toString()),c=e.computed(()=>{const d="inline-flex items-center justify-center font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",u={primary:"bg-primary-500 text-white hover:bg-primary-600 active:bg-primary-700 focus-visible:ring-primary-700",secondary:"bg-secondary-200 text-secondary-900 hover:bg-secondary-300 focus-visible:ring-secondary-500",outline:"border border-secondary-300 bg-transparent hover:bg-secondary-100 focus-visible:ring-secondary-500",ghost:"hover:bg-secondary-100 focus-visible:ring-secondary-500",danger:"bg-danger-600 text-white hover:bg-danger-700 focus-visible:ring-danger-600",icon:"hover:bg-secondary-100 focus-visible:ring-secondary-500 relative",text:"bg-transparent border-0 focus-visible:ring-0 focus-visible:ring-offset-0"},f={sm:n.value?"p-1.5":"h-8 px-3 text-sm",md:n.value?"p-2":"h-10 px-4 text-base",lg:n.value?"p-3":"h-12 px-6 text-lg"},i={full:"rounded-full",xl:"rounded-2xl",lg:"rounded-xl",md:"rounded-lg",sm:"rounded-md",none:"rounded-none"},h=t.textColor?t.textColor:"",x=e.computed(()=>{var E,C;return t.textColorHover?t.textColorHover:(E=t.textColor)!=null&&E.includes("white")||(C=t.textColor)!=null&&C.includes("50")?"hover:text-black":""});return`${d} ${u[t.variant]} ${f[t.size]} ${i[t.radius]} ${h} ${x.value}`}),r=d=>{t.disabled||s("click",d)};return(d,u)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(c.value),type:o.type,disabled:o.disabled,onClick:r,"aria-label":o.ariaLabel},[e.renderSlot(d.$slots,"default"),n.value&&o.badge&&o.badge>0?(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)],10,A))}}),W={key:0,class:"border-b border-gray-100 px-6 py-4"},R={class:"px-6 py-4"},K={key:1,class:"border-t border-gray-100 px-6 py-4 bg-gray-50"},q=e.defineComponent({__name:"Card",props:{shadow:{default:"md"},rounded:{default:"lg"},bordered:{type:Boolean,default:!1}},setup(o){const m=o,t={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},s={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},n=e.computed(()=>["w-full bg-white",t[m.shadow],s[m.rounded],m.bordered?"border border-gray-200":""]);return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[a.$slots.header?(e.openBlock(),e.createElementBlock("div",W,[e.renderSlot(a.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",R,[e.renderSlot(a.$slots,"default")]),a.$slots.footer?(e.openBlock(),e.createElementBlock("div",K,[e.renderSlot(a.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),U={class:"flex items-center justify-between border-b border-gray-100/60 px-8 py-6"},G={class:"text-xl font-semibold text-gray-900"},Q={class:"px-8 py-6"},Z={key:0,class:"border-t border-gray-100 px-8 py-6 bg-gray-50"},J=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},title:{default:"Diálogo"},closeOnBackdrop:{type:Boolean,default:!0}},emits:["update:modelValue","close"],setup(o,{emit:m}){const t=o,s=m,n=e.computed({get:()=>t.modelValue,set:r=>s("update:modelValue",r)}),a=()=>{n.value=!1,s("close")},c=()=>{t.closeOnBackdrop&&a()};return(r,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"dialog"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 px-4",onClick:c},[e.createElementVNode("div",{class:"relative w-full rounded-lg bg-white shadow-xl sm:max-w-lg md:max-w-2xl",onClick:d[0]||(d[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",U,[e.createElementVNode("h2",G,[e.renderSlot(r.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)]),e.createElementVNode("button",{type:"button",class:"inline-flex items-center justify-center rounded-md p-1 text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Cerrar diálogo",onClick:a},[...d[1]||(d[1]=[e.createElementVNode("svg",{class:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),e.createElementVNode("div",Q,[e.renderSlot(r.$slots,"default",{},void 0,!0)]),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",Z,[e.renderSlot(r.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:3})]))}}),X=z(J,[["__scopeId","data-v-37e19754"]]),Y=["accept","multiple","disabled"],ee={class:"flex flex-col items-center justify-center gap-4 text-center"},te=["src","alt"],oe={key:1,class:"w-full h-full text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},le={class:"text-center"},ne={class:"text-base font-medium text-gray-700"},ae={class:"text-primary-700"},se={class:"flex items-center gap-3 flex-1 min-w-0"},re={class:"flex-1 min-w-0"},ie={class:"text-sm font-medium text-gray-900 truncate"},ce={class:"text-xs text-gray-500"},de={key:1,class:"text-xs text-gray-500 mt-2"},ue={key:2,class:"text-sm text-danger-500 mt-2"},me=e.defineComponent({__name:"FileUpload",props:{modelValue:{default:null},accept:{default:"*"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},illustration:{default:void 0},illustrationAlt:{default:"Subir archivo"},illustrationSize:{default:"md"},mainText:{default:"Suelta aquí un archivo o"},linkText:{default:"selecciónalo desde tu equipo"},helperText:{default:""},maxSize:{default:void 0}},emits:["update:modelValue","change","error"],setup(o,{emit:m}){const t=o,s=m,n=e.ref(null),a=e.ref(!1),c=e.ref(t.modelValue),r=e.ref(""),d=e.computed(()=>({sm:"w-20 h-20",md:"w-32 h-32",lg:"w-48 h-48",xl:"w-64 h-64"})[t.illustrationSize]),u=()=>{var v;(v=n.value)==null||v.click()},f=()=>{t.disabled||u()},i=v=>{t.disabled||(a.value=!0)},h=()=>{a.value=!1},x=v=>{if(r.value="",t.maxSize&&v.size>t.maxSize){const B=(t.maxSize/1048576).toFixed(2);return r.value=`El archivo excede el tamaño máximo de ${B}MB`,s("error",r.value),!1}return!0},E=v=>{var S;const $=(S=v.target.files)==null?void 0:S[0];$&&x($)&&(c.value=$,s("update:modelValue",$),s("change",$))},C=v=>{var $;a.value=!1;const B=($=v.dataTransfer)==null?void 0:$.files[0];B&&x(B)&&(c.value=B,s("update:modelValue",B),s("change",B))},w=()=>{c.value=null,r.value="",n.value&&(n.value.value=""),s("update:modelValue",null),s("change",null)},p=v=>{if(v===0)return"0 Bytes";const B=1024,$=["Bytes","KB","MB","GB"],S=Math.floor(Math.log(v)/Math.log(B));return Math.round(v/Math.pow(B,S)*100)/100+" "+$[S]};return(v,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative border-2 border-dashed rounded-lg p-8 transition-colors",[a.value?"border-primary-700 bg-primary-50":"border-gray-300 bg-white hover:border-primary-500",o.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]]),onClick:f,onDragover:e.withModifiers(i,["prevent"]),onDragleave:e.withModifiers(h,["prevent"]),onDrop:e.withModifiers(C,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:n,type:"file",accept:o.accept,multiple:o.multiple,disabled:o.disabled,class:"hidden",onChange:E},null,40,Y),e.createElementVNode("div",ee,[e.createElementVNode("div",{class:e.normalizeClass([d.value,"flex items-center justify-center"])},[o.illustration?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.illustration,alt:o.illustrationAlt,class:"max-w-full max-h-full object-contain"},null,8,te)):(e.openBlock(),e.createElementBlock("svg",oe,[...B[1]||(B[1]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},null,-1)])]))],2),e.createElementVNode("div",le,[e.createElementVNode("p",ne,[e.createTextVNode(e.toDisplayString(o.mainText)+" ",1),e.createElementVNode("span",ae,e.toDisplayString(o.linkText),1)])]),c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"w-full max-w-md bg-gray-50 rounded-lg p-4 flex items-center justify-between",onClick:B[0]||(B[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",se,[B[2]||(B[2]=e.createElementVNode("svg",{class:"w-6 h-6 text-gray-600 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)),e.createElementVNode("div",re,[e.createElementVNode("p",ie,e.toDisplayString(c.value.name),1),e.createElementVNode("p",ce,e.toDisplayString(p(c.value.size)),1)])]),o.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(w,["stop"]),class:"ml-3 text-gray-400 hover:text-danger-500 transition-colors"},[...B[3]||(B[3]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)])]))])):e.createCommentVNode("",!0),o.helperText?(e.openBlock(),e.createElementBlock("p",de,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("p",ue,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)])],34))}}),pe=["stroke-width"],fe={class:"w-full h-full rounded-lg overflow-hidden",style:{"background-color":"#f7f7f7"}},ge=e.defineComponent({__name:"Loader",props:{type:{default:"circular"},size:{default:"40px"},height:{default:"4px"},color:{default:"primary"},strokeWidth:{default:4},progress:{default:void 0}},setup(o){const m=o,t={primary:"text-primary-700",secondary:"text-secondary-500",success:"text-success-500",warning:"text-warning-500",danger:"text-danger-500",info:"text-info-500"},s={primary:"bg-primary-700",secondary:"bg-secondary-500",success:"bg-success-500",warning:"bg-warning-500",danger:"bg-danger-500",info:"bg-info-500"},n=e.computed(()=>[t[m.color]]),a=e.computed(()=>[s[m.color]]);return(c,r)=>o.type==="circular"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.value)},[(e.openBlock(),e.createElementBlock("svg",{class:"animate-spin",style:e.normalizeStyle({width:o.size,height:o.size}),viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":o.strokeWidth,fill:"none"},null,8,pe),r[0]||(r[0]=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1))],4))],2)):o.type==="linear"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full",style:e.normalizeStyle({height:o.height})},[e.createElementVNode("div",fe,[e.createElementVNode("div",{class:e.normalizeClass([a.value,"h-full rounded-lg animate-linear-loader"]),style:e.normalizeStyle({width:o.progress?`${o.progress}%`:void 0})},null,6)])],4)):e.createCommentVNode("",!0)}}),ve=z(ge,[["__scopeId","data-v-8df4ec38"]]),ye=["disabled","aria-expanded"],xe=["disabled","onClick"],ke={key:0,class:"flex-shrink-0"},be=["innerHTML"],he={class:"flex-1 min-w-0 mr-2"},we={class:"flex flex-col items-start"},Be=["title"],Ce=["title"],Ee={key:1,class:"flex-shrink-0"},Ve={key:0,class:"text-xs text-secondary-400 font-mono whitespace-nowrap"},$e={key:1},Ne={key:2,class:"w-4 h-4 ml-2 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Se=e.defineComponent({__name:"Menu",props:{items:{default:()=>[]},triggerText:{default:"Menu"},showChevron:{type:Boolean,default:!0},position:{default:"bottom-start"},align:{default:"start"},offset:{default:()=>({x:0,y:4})},width:{default:"auto"},maxHeight:{default:"400px"},closeOnClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},teleport:{type:Boolean,default:!0},zIndex:{default:50}},emits:["open","close","select"],setup(o,{emit:m}){const t=o,s=m,n=e.ref(!1),a=e.ref(null),c=e.ref(null),r=e.ref({}),d=e.computed(()=>["inline-flex items-center justify-center px-4 py-2 text-sm font-medium","bg-white border border-secondary-300 rounded-md","hover:bg-secondary-50 focus:outline-none focus:ring-2 focus:ring-primary-500","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors"].join(" ")),u=e.computed(()=>[...["fixed bg-white rounded-lg shadow-lg border border-secondary-200","flex flex-col","focus:outline-none"],`z-${t.zIndex}`].join(" ")),f=e.computed(()=>"px-4 py-3 border-b border-secondary-200 bg-secondary-50"),i=e.computed(()=>"px-4 py-3 border-t border-secondary-200 bg-secondary-50"),h=e.computed(()=>"py-1 overflow-y-auto flex-1 min-h-0"),x=e.computed(()=>"my-1 border-t border-secondary-200"),E=e.computed(()=>"px-4 py-2 text-xs font-semibold text-secondary-500 uppercase tracking-wider"),C=l=>{const b=["w-full flex items-center gap-3 px-4 py-2 text-sm text-left","transition-colors focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"],g=l.variant||"default",T={default:"text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50",danger:"text-danger-600 hover:bg-danger-50 focus:bg-danger-50",success:"text-success-600 hover:bg-success-50 focus:bg-success-50",warning:"text-warning-600 hover:bg-warning-50 focus:bg-warning-50"};let V="";return l.color&&(V=l.color,(l.color.includes("white")||l.color.includes("50"))&&(V+=" hover:text-black")),[...b,V||T[g]].join(" ")},w=()=>{t.disabled||(n.value?v():p())},p=()=>{n.value=!0,s("open"),e.nextTick(()=>{k(),document.addEventListener("click",$),document.addEventListener("keydown",S)})},v=()=>{n.value=!1,s("close"),document.removeEventListener("click",$),document.removeEventListener("keydown",S)},B=l=>{l.disabled||(l.action&&l.action(),s("select",l),t.closeOnClick&&!l.children&&v())},$=l=>{const b=l.target;a.value&&!a.value.contains(b)&&c.value&&!c.value.contains(b)&&v()},S=l=>{l.key==="Escape"&&v()},y=l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),w())},k=()=>{if(!a.value||!c.value)return;const l=a.value.getBoundingClientRect(),b=c.value.getBoundingClientRect(),g=window.innerWidth,T=window.innerHeight;let V=0,N=0;switch(t.position){case"bottom-start":V=l.bottom+t.offset.y,N=l.left+t.offset.x;break;case"bottom-end":V=l.bottom+t.offset.y,N=l.right-b.width+t.offset.x;break;case"top-start":V=l.top-b.height-t.offset.y,N=l.left+t.offset.x;break;case"top-end":V=l.top-b.height-t.offset.y,N=l.right-b.width+t.offset.x;break;case"right-start":V=l.top+t.offset.y,N=l.right+t.offset.x;break;case"right-end":V=l.bottom-b.height+t.offset.y,N=l.right+t.offset.x;break;case"left-start":V=l.top+t.offset.y,N=l.left-b.width-t.offset.x;break;case"left-end":V=l.bottom-b.height+t.offset.y,N=l.left-b.width-t.offset.x;break}N+b.width>g&&(N=g-b.width-8),N<8&&(N=8),V+b.height>T&&(V=T-b.height-8),V<8&&(V=8),r.value={top:`${V}px`,left:`${N}px`,width:t.width==="auto"?`${Math.max(l.width,240)}px`:t.width,maxHeight:t.maxHeight,minWidth:"240px"}};return e.onMounted(()=>{window.addEventListener("scroll",k,!0),window.addEventListener("resize",k)}),e.onUnmounted(()=>{window.removeEventListener("scroll",k,!0),window.removeEventListener("resize",k),document.removeEventListener("click",$),document.removeEventListener("keydown",S)}),e.watch(()=>t.items,()=>{n.value&&e.nextTick(k)},{deep:!0}),(l,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper",{"w-full":o.fullWidth}])},[e.createElementVNode("div",{ref_key:"triggerRef",ref:a},[e.renderSlot(l.$slots,"trigger",{isOpen:n.value,toggle:w},()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(d.value),disabled:o.disabled,onClick:w,onKeydown:y,tabindex:0,role:"button","aria-expanded":n.value,"aria-haspopup":!0},[e.renderSlot(l.$slots,"trigger-content",{},()=>[e.createTextVNode(e.toDisplayString(o.triggerText),1)],!0),o.showChevron?(e.openBlock(),e.createElementBlock("svg",{key:0,class:e.normalizeClass(["w-4 h-4 ml-2 transition-transform",n.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...b[1]||(b[1]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2)):e.createCommentVNode("",!0)],42,ye)],!0)],512),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:c,class:e.normalizeClass(u.value),style:e.normalizeStyle(r.value),onClick:b[0]||(b[0]=e.withModifiers(()=>{},["stop"]))},[l.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(f.value)},[e.renderSlot(l.$slots,"header",{close:v},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(h.value)},[e.renderSlot(l.$slots,"default",{close:v,isOpen:n.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(g,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:g.id||T},[g.type==="divider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(x.value)},null,2)):g.type==="header"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(E.value)},e.toDisplayString(g.label),3)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(C(g)),disabled:g.disabled,onClick:V=>B(g)},[g.icon||l.$slots[`icon-${g.id}`]?(e.openBlock(),e.createElementBlock("span",ke,[e.renderSlot(l.$slots,`icon-${g.id}`,{item:g},()=>[typeof g.icon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.icon),{key:0,class:"w-5 h-5"})):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:g.icon,class:"w-5 h-5 inline-block"},null,8,be))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",he,[e.renderSlot(l.$slots,`item-${g.id}`,{item:g,close:v},()=>[e.createElementVNode("div",we,[e.createElementVNode("span",{class:"truncate w-full",title:g.label},e.toDisplayString(g.label),9,Be),g.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-xs text-secondary-500 truncate w-full",title:g.description},e.toDisplayString(g.description),9,Ce)):e.createCommentVNode("",!0)])],!0)]),g.suffix||g.shortcut||l.$slots[`suffix-${g.id}`]?(e.openBlock(),e.createElementBlock("span",Ee,[e.renderSlot(l.$slots,`suffix-${g.id}`,{item:g},()=>[g.shortcut?(e.openBlock(),e.createElementBlock("span",Ve,e.toDisplayString(g.shortcut),1)):g.suffix?(e.openBlock(),e.createElementBlock("span",$e,e.toDisplayString(g.suffix),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),g.children&&g.children.length>0?(e.openBlock(),e.createElementBlock("svg",Ne,[...b[2]||(b[2]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)])])):e.createCommentVNode("",!0)],10,xe))],64))),128))],!0)],2),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(i.value)},[e.renderSlot(l.$slots,"footer",{close:v},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),n.value&&o.overlay?(e.openBlock(),e.createElementBlock("div",{key:1,class:"fixed inset-0 bg-black/20 z-40",onClick:v})):e.createCommentVNode("",!0)]))],2))}}),ze=z(Se,[["__scopeId","data-v-335f2699"]]),Te=["for"],Me={key:0,class:"text-danger-600"},De={class:"relative"},_e=["id","disabled","aria-expanded"],je={class:"flex-1 text-left truncate"},Le={key:0,class:"p-2 border-b border-secondary-200"},Ie=["placeholder"],Oe={class:"max-h-64 overflow-y-auto"},Fe={key:0,class:"px-4 py-3 text-sm text-secondary-500 text-center"},Ae=["onClick"],Pe={class:"flex items-center justify-between w-full"},He={class:"truncate"},We={key:0,class:"w-5 h-5 text-primary-600 flex-shrink-0 ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Re={key:0,class:"border-t border-secondary-200 my-1"},Ke=["onClick"],qe=["innerHTML"],Ue={key:1,class:"mt-1 text-sm text-danger-600"},Ge={key:2,class:"mt-1 text-sm text-secondary-600"},Qe=e.defineComponent({__name:"Select",props:{modelValue:{default:null},options:{default:()=>[]},actionItems:{default:()=>[]},label:{default:""},placeholder:{default:"Seleccionar..."},size:{default:"md"},variant:{default:"default"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Buscar..."},emptyText:{default:"No hay opciones disponibles"},error:{default:""},helperText:{default:""},fullWidth:{type:Boolean,default:!1},menuPosition:{default:"bottom"}},emits:["update:modelValue","change","action"],setup(o,{emit:m}){const t=o,s=m,n=e.ref(!1),a=e.ref(""),c=e.ref(null),r=e.computed(()=>`select-${Math.random().toString(36).substr(2,9)}`),d=e.computed(()=>t.options.find(y=>y.value===t.modelValue)||null),u=e.computed(()=>{if(!t.searchable||!a.value)return t.options;const y=a.value.toLowerCase();return t.options.filter(k=>k.label.toLowerCase().includes(y))}),f=e.computed(()=>"block text-sm font-semibold text-secondary-700 mb-1"),i=e.computed(()=>{const y="w-full flex items-center justify-between gap-2 border rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed",k={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg"},l={default:"bg-white border-secondary-300 hover:border-secondary-400",outline:"bg-transparent border-secondary-300 hover:border-primary-500",filled:"bg-secondary-100 border-transparent hover:bg-secondary-200"},b=t.error?"border-danger-600 focus:ring-danger-500":"";return[y,k[t.size],l[t.variant],b].join(" ")}),h=e.computed(()=>`absolute ${t.menuPosition==="top"?"bottom-full mb-1":"top-full mt-1"} left-0 right-0 bg-white rounded-lg shadow-lg border border-secondary-200 z-50 overflow-hidden`),x=y=>{const k="w-full px-4 py-2 text-left hover:bg-primary-50 transition-colors focus:outline-none focus:bg-primary-50 disabled:opacity-50 disabled:cursor-not-allowed",l=C(y)?"bg-primary-50":"";return[k,l].join(" ")},E=y=>{const k="w-full px-4 py-2 text-left text-sm font-semibold transition-colors focus:outline-none flex items-center gap-3";return y.variant==="danger"?`${k} text-danger-600 hover:bg-danger-50 focus:bg-danger-50`:`${k} text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50`},C=y=>y.value===t.modelValue,w=()=>{t.disabled||(n.value=!n.value,n.value&&t.searchable&&e.nextTick(()=>{var y;(y=c.value)==null||y.focus()}))},p=()=>{n.value=!1,a.value=""},v=y=>{y.disabled||(s("update:modelValue",y.value),s("change",y),p())},B=y=>{y.action&&y.action(),s("action",y),p()},$=y=>{const k=y.relatedTarget;k&&k.closest(".select-wrapper")||setTimeout(()=>{p()},200)},S=y=>{y.key==="Escape"?p():(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),w())};return e.watch(n,y=>{y&&(a.value="")}),(y,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-wrapper",{"w-full":o.fullWidth}])},[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:r.value,class:e.normalizeClass(f.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Me,"*")):e.createCommentVNode("",!0)],10,Te)):e.createCommentVNode("",!0),e.createElementVNode("div",De,[e.createElementVNode("button",{id:r.value,type:"button",class:e.normalizeClass(i.value),disabled:o.disabled,"aria-expanded":n.value,"aria-haspopup":!0,onClick:w,onBlur:$,onKeydown:S},[e.createElementVNode("span",je,e.toDisplayString(d.value?d.value.label:o.placeholder),1),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w-5 h-5 flex-shrink-0 transition-transform text-secondary-600",n.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[...k[3]||(k[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,_e),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(h.value),onClick:k[2]||(k[2]=e.withModifiers(()=>{},["stop"]))},[o.searchable?(e.openBlock(),e.createElementBlock("div",Le,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:c,"onUpdate:modelValue":k[0]||(k[0]=l=>a.value=l),type:"text",class:"w-full px-3 py-2 text-sm border border-secondary-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary-500",placeholder:o.searchPlaceholder,onKeydown:k[1]||(k[1]=e.withModifiers(()=>{},["stop"]))},null,40,Ie),[[e.vModelText,a.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",Oe,[u.value.length===0?(e.openBlock(),e.createElementBlock("div",Fe,e.toDisplayString(o.emptyText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,l=>(e.openBlock(),e.createElementBlock("button",{key:l.value,type:"button",class:e.normalizeClass(x(l)),onClick:b=>v(l)},[e.createElementVNode("div",Pe,[e.createElementVNode("span",He,e.toDisplayString(l.label),1),C(l)?(e.openBlock(),e.createElementBlock("svg",We,[...k[4]||(k[4]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)])],10,Ae))),128)),o.actionItems.length>0?(e.openBlock(),e.createElementBlock("div",Re)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actionItems,l=>(e.openBlock(),e.createElementBlock("button",{key:l.id,type:"button",class:e.normalizeClass(E(l)),onClick:b=>B(l)},[l.icon?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"w-4 h-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",innerHTML:l.icon},null,8,qe)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.label),1)],10,Ke))),128))],64))])],2)):e.createCommentVNode("",!0)]),o.error?(e.openBlock(),e.createElementBlock("p",Ue,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Ge,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:p,class:"fixed inset-0 z-40"})):e.createCommentVNode("",!0)],2))}}),Ze=z(Qe,[["__scopeId","data-v-f016a03c"]]),Je=e.defineComponent({__name:"Sidebar",props:{modelValue:{type:Boolean,default:!1},position:{default:"left"},width:{default:"16rem"},overlay:{type:Boolean,default:!0},overlayTop:{default:"0"},closable:{type:Boolean,default:!0},persistent:{type:Boolean,default:!1},backgroundColor:{default:"white"},shadow:{type:Boolean,default:!0},padding:{default:"md"}},emits:["update:modelValue","close","open"],setup(o,{emit:m}){const t=o,s=m,n=e.computed({get:()=>t.modelValue,set:x=>s("update:modelValue",x)}),a=()=>{t.persistent||(n.value=!1,s("close"))},c=e.computed(()=>t.position==="left"?"slide-right":"slide-left"),r=e.computed(()=>{const x="fixed top-0 h-full z-50 flex flex-col w-full max-w-full sm:max-w-none",E=t.position==="left"?"left-0":"right-0",C=t.shadow?t.position==="left"?"shadow-[2px_0_8px_rgba(0,0,0,0.1)]":"shadow-[-2px_0_8px_rgba(0,0,0,0.1)]":"";return[x,E,C].filter(Boolean).join(" ")}),d=e.computed(()=>({width:"100%",maxWidth:t.width,backgroundColor:t.backgroundColor,top:t.overlayTop,height:t.overlayTop!=="0"?`calc(100vh - ${t.overlayTop})`:"100vh"})),u={none:"",sm:"p-2",md:"p-4",lg:"p-6"},f=e.computed(()=>`flex items-center justify-between border-b border-gray-200 ${u[t.padding]}`),i=e.computed(()=>`flex-1 overflow-y-auto ${u[t.padding]}`),h=e.computed(()=>`border-t border-gray-200 ${u[t.padding]}`);return(x,E)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[n.value&&o.overlay?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:a,class:"fixed inset-0 bg-black/50 z-40",style:e.normalizeStyle({top:o.overlayTop})},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:c.value},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(r.value),style:e.normalizeStyle(d.value)},[x.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(f.value)},[e.renderSlot(x.$slots,"header",{},void 0,!0),o.closable?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:a,class:"p-2 hover:bg-gray-100 rounded-md transition-colors","aria-label":"Cerrar menú"},[...E[0]||(E[0]=[e.createElementVNode("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(i.value)},[e.renderSlot(x.$slots,"default",{},void 0,!0)],2),x.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(h.value)},[e.renderSlot(x.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),Xe=z(Je,[["__scopeId","data-v-b208234c"]]),Ye={class:"w-full space-y-4"},et={class:"flex flex-col gap-3 md:hidden"},tt={class:"text-[11px] uppercase tracking-wide text-gray-400"},ot={class:"text-sm text-gray-700"},lt={key:0,class:"rounded-lg border border-dashed border-gray-200 bg-white p-4 text-gray-400 text-center"},nt={class:"hidden md:block w-full overflow-x-auto"},at={class:"w-full border-collapse"},st={class:"w-full"},rt=["onClick"],it={class:"flex items-center gap-2"},ct={key:0,class:"text-xs text-gray-400"},dt={key:0},ut={key:1},mt={class:"w-full"},pt={key:0,class:"flex items-center justify-center py-12 text-gray-400"},ft={key:0,class:"w-full px-6 py-4 bg-white"},gt=e.defineComponent({__name:"Table",props:{columns:{},data:{},headerClass:{default:void 0},headerCellClass:{default:void 0},cellClass:{default:void 0},rowClass:{default:void 0}},setup(o){const m=o,t=e.ref(null),s=e.ref("asc"),n=r=>{t.value===r?s.value=s.value==="asc"?"desc":"asc":(t.value=r,s.value="asc")},a=e.computed(()=>{if(!t.value)return m.data;const r=[...m.data];return r.sort((d,u)=>{const f=d[t.value],i=u[t.value];return typeof f=="string"&&typeof i=="string"?s.value==="asc"?f.localeCompare(i):i.localeCompare(f):typeof f=="number"&&typeof i=="number"?s.value==="asc"?f-i:i-f:0}),r}),c=e.computed(()=>m.columns.filter(r=>!r.hideOnMobile));return(r,d)=>(e.openBlock(),e.createElementBlock("div",Ye,[e.createElementVNode("div",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,f)=>(e.openBlock(),e.createElementBlock("div",{key:`card-${f}`,class:"rounded-lg border border-gray-200 bg-white p-4 shadow-sm"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,i=>(e.openBlock(),e.createElementBlock("div",{key:`card-${f}-${i.key}`,class:"flex flex-col gap-1 py-1"},[e.createElementVNode("span",tt,e.toDisplayString(i.label),1),e.createElementVNode("span",ot,[e.renderSlot(r.$slots,`cell-${i.key}`,{value:u[i.key],row:u},()=>[e.createTextVNode(e.toDisplayString(u[i.key]),1)],!0)])]))),128))]))),128)),a.value.length===0?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(r.$slots,"empty",{},()=>[d[0]||(d[0]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",nt,[e.createElementVNode("table",at,[e.createElementVNode("thead",st,[e.createElementVNode("tr",{class:e.normalizeClass(["w-full",m.headerClass||"bg-neutral-50 border-b border-gray-100"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,u=>(e.openBlock(),e.createElementBlock("th",{key:u.key,style:e.normalizeStyle(u.width?{width:u.width}:{}),class:e.normalizeClass(["px-4 py-3 text-left text-xs font-semibold text-gray-700 border-l border-gray-100 first:border-l-0",u.sortable?"cursor-pointer hover:text-primary-600 select-none transition-colors":"",m.headerCellClass]),onClick:f=>u.sortable&&n(u.key)},[e.createElementVNode("div",it,[e.createElementVNode("span",null,e.toDisplayString(u.label),1),u.sortable?(e.openBlock(),e.createElementBlock("span",ct,[t.value!==u.key?(e.openBlock(),e.createElementBlock("span",dt,"⇅")):(e.openBlock(),e.createElementBlock("span",ut,e.toDisplayString(s.value==="asc"?"↑":"↓"),1))])):e.createCommentVNode("",!0)])],14,rt))),128))],2)]),e.createElementVNode("tbody",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(u,f)=>(e.openBlock(),e.createElementBlock("tr",{key:f,class:e.normalizeClass(["w-full border-b border-gray-200 hover:bg-gray-50 transition-colors",m.rowClass])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,i=>(e.openBlock(),e.createElementBlock("td",{key:`${f}-${i.key}`,class:e.normalizeClass(["px-4 py-3 text-xs text-gray-600 border-l border-gray-100 first:border-l-0",m.cellClass])},[e.renderSlot(r.$slots,`cell-${i.key}`,{value:u[i.key],row:u},()=>[e.createTextVNode(e.toDisplayString(u[i.key]),1)],!0)],2))),128))],2))),128))])]),a.value.length===0?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(r.$slots,"empty",{},()=>[d[1]||(d[1]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",ft,[e.renderSlot(r.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]))}}),vt=z(gt,[["__scopeId","data-v-8e7ce66d"]]),yt={class:"w-full"},xt={class:"tabs-container flex flex-col sm:flex-row",role:"tablist"},kt=["aria-selected","onClick"],bt={role:"tabpanel"},ht="relative w-full sm:w-auto text-left sm:text-center px-4 sm:px-6 py-3 text-base font-semibold tracking-wide transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500 border-b-2",wt="text-primary-600 border-primary-600",Bt="hover:text-secondary-700 border-gray-100",Ct=e.defineComponent({__name:"Tabs",props:{modelValue:{},tabs:{}},emits:["update:modelValue"],setup(o,{emit:m}){const t=o,s=m,n=d=>t.modelValue===d,a=d=>{n(d)||s("update:modelValue",d)},c=e.computed(()=>t.modelValue),r=e.computed(()=>t.tabs.find(d=>d.value===c.value));return(d,u)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,f=>(e.openBlock(),e.createElementBlock("button",{key:f.value,type:"button",class:e.normalizeClass([ht,n(f.value)?wt:Bt]),"aria-selected":n(f.value),role:"tab",onClick:i=>a(f.value)},e.toDisplayString(f.label),11,kt))),128))]),e.createElementVNode("div",bt,[e.renderSlot(d.$slots,c.value,{active:c.value,tab:r.value},void 0,!0)])]))}}),Et=z(Ct,[["__scopeId","data-v-b5a754bd"]]),Vt="font-sans",$t=e.defineComponent({__name:"Text",props:{variant:{default:"body1"},as:{},color:{default:"default"},align:{default:"left"},uppercase:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},weight:{}},setup(o){const m={h1:"text-[40px] leading-[57px] tracking-[0px] font-extrabold",h2:"text-[40px] leading-[57px] tracking-[0px] font-bold",h3:"text-[28px] leading-[39px] tracking-[0px] font-extrabold",h4:"text-[21px] leading-[29px] tracking-[0px] font-extrabold",h5:"text-[16px] leading-[22px] tracking-[0px] font-extrabold",h6:"text-[13px] leading-[18px] tracking-[0px] font-extrabold",subtitle1:"text-[16px] leading-[24px] tracking-[0.15px] font-medium",subtitle2:"text-[14px] leading-[21px] tracking-[0.1px] font-medium",subtitle3:"text-[12px] leading-[18px] tracking-[0.1px] font-medium",subtitle4:"text-[10px] leading-[15px] tracking-[0.1px] font-medium",body1:"text-[16px] leading-[24px] tracking-[0.5px] font-light",body2:"text-[14px] leading-[21px] tracking-[0.25px] font-light",body3:"text-[12px] leading-[18px] tracking-[0.25px] font-light",body4:"text-[10px] leading-[15px] tracking-[0.25px] font-light",button1:"text-[14px] leading-[24px] tracking-[1.25px] font-bold",button2:"text-[14px] leading-[20px] tracking-[1.25px] font-bold",button3:"text-[12px] leading-[18px] tracking-[1.25px] font-bold",caption:"text-[12px] leading-[18px] tracking-[0.4px] font-normal",overline:"text-[10px] leading-[15px] tracking-[1.5px] font-medium"},t={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",body1:"p",body2:"p",body3:"p",body4:"p",button1:"span",button2:"span",button3:"span",caption:"span",overline:"span"},s={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},n={default:"text-secondary-900",muted:"text-secondary-600",primary:"text-primary-600",secondary:"text-secondary-700",danger:"text-danger-600",success:"text-success-600",warning:"text-warning-600"},a={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},c=o,r=e.computed(()=>c.variant),d=e.computed(()=>c.color),u=e.computed(()=>c.align),f=e.computed(()=>c.as||t[r.value]||"span"),i=e.computed(()=>c.weight?a[c.weight]:"");return(h,x)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value),{class:e.normalizeClass([Vt,m[r.value],n[d.value],s[u.value],i.value,{uppercase:o.uppercase||r.value==="overline",truncate:o.truncate}])},{default:e.withCtx(()=>[e.renderSlot(h.$slots,"default")]),_:3},8,["class"]))}}),Nt={class:"w-full flex items-center justify-between gap-3 py-2"},St={key:0,class:"text-xs text-secondary-600"},zt={key:0},Tt={class:"ml-auto inline-flex items-center gap-1",role:"navigation","aria-label":"Pagination"},Mt=["disabled"],Dt={key:0,class:"h-8 min-w-8 px-2 inline-flex items-center justify-center text-secondary-500"},_t=["aria-label","onClick"],jt=["disabled"],Lt=e.defineComponent({__name:"Pagination",props:{modelValue:{default:1},totalItems:{default:0},pageSize:{default:10},maxPages:{default:5},previousText:{default:"Anterior"},nextText:{default:"Siguiente"},showSummary:{type:Boolean,default:!0},itemLabel:{default:""}},emits:["update:modelValue","change"],setup(o,{emit:m}){const t=o,s=m,n=e.computed(()=>{const i=Math.ceil(t.totalItems/t.pageSize);return i>0?i:1}),a=e.computed(()=>{const i=Number(t.modelValue||1);return i<1?1:i>n.value?n.value:i}),c=e.computed(()=>t.totalItems===0?0:(a.value-1)*t.pageSize+1),r=e.computed(()=>Math.min(a.value*t.pageSize,t.totalItems)),d=e.computed(()=>`Mostrando ${c.value} a ${r.value} de ${t.totalItems}`),u=e.computed(()=>{const i=n.value,h=Math.max(3,t.maxPages),x=a.value;if(i<=h)return Array.from({length:i},(v,B)=>B+1);const E=Math.floor(h/2);let C=Math.max(1,x-E),w=Math.min(i,C+h-1);C=Math.max(1,Math.min(C,w-h+1));const p=[];C>1&&(p.push(1),C>2&&p.push("…"));for(let v=C;v<=w;v++)p.push(v);return w<i&&(w<i-1&&p.push("…"),p.push(i)),p});function f(i){const h=Math.max(1,Math.min(i,n.value));h!==a.value&&(s("update:modelValue",h),s("change",h))}return(i,h)=>(e.openBlock(),e.createElementBlock("div",Nt,[o.showSummary?(e.openBlock(),e.createElementBlock("div",St,[e.renderSlot(i.$slots,"summary",{start:c.value,end:r.value,total:o.totalItems},()=>[e.createTextVNode(e.toDisplayString(d.value),1),o.itemLabel?(e.openBlock(),e.createElementBlock("span",zt,e.toDisplayString(o.itemLabel),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Tt,[e.createElementVNode("button",{type:"button",class:"h-8 px-3 rounded-full text-sm font-semibold text-secondary-700 hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed",disabled:a.value<=1,onClick:h[0]||(h[0]=x=>f(a.value-1)),"aria-label":"Anterior"},e.toDisplayString(o.previousText),9,Mt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(x,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`page-${E}-${x}`},[x==="…"?(e.openBlock(),e.createElementBlock("span",Dt," … ")):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","aria-label":`Página ${x}`,class:e.normalizeClass(["h-8 min-w-8 px-3 rounded-full text-sm font-semibold transition-colors",x===a.value?"bg-primary-500 text-white":"text-secondary-700 hover:bg-secondary-100"]),onClick:C=>f(x)},e.toDisplayString(x),11,_t))],64))),128)),e.createElementVNode("button",{type:"button",class:"h-8 px-3 rounded-full text-sm font-semibold text-secondary-700 hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed",disabled:a.value>=n.value,onClick:h[1]||(h[1]=x=>f(a.value+1)),"aria-label":"Siguiente"},e.toDisplayString(o.nextText),9,jt)])]))}}),It=z(Lt,[["__scopeId","data-v-87417cc4"]]),Ot=["data-node-id"],Ft={class:"shrink-0 size-12 rounded-full bg-[var(--neutrales/fondo-general-claro,#f7f7f7)] grid place-items-center"},At={key:1,class:"flex justify-end gap-1 px-6 pb-6 pt-4"},Pt=e.defineComponent({__name:"Alert",props:{variant:{},title:{},description:{},closable:{type:Boolean},multiline:{type:Boolean},actions:{type:Boolean},nodeId:{},stackOn:{}},emits:["close","accept","cancel"],setup(o,{emit:m}){const t=m,s=o,n=e.computed(()=>s.variant??"info"),a=e.computed(()=>s.multiline??!1),c=e.computed(()=>s.actions??!1),r=e.computed(()=>s.nodeId??void 0),d=()=>t("close"),u=e.computed(()=>{if(s.title)return s.title;switch(n.value){case"info":return"Alerta de información";case"warning":return"Alerta de advertencia";case"success":return"Alerta de éxito";case"error":return"Alerta de error"}}),f=e.computed(()=>s.description??""),i=e.computed(()=>{switch(n.value){case"info":return{border:"border-[var(--semantica/info,#0064ff)]",bg:"bg-[#faf9fd] outline outline-1 outline-[rgba(105,78,214,0.4)]",icon:"text-[#0064ff]"};case"warning":return{border:"border-[var(--semantica/warning,#ff9100)]",bg:"bg-[#fffcfa] outline outline-1 outline-[rgba(255,96,10,0.3)]",icon:"text-[#ff600a]"};case"success":return{border:"border-[var(--semantica/succes,#00b45e)]",bg:"bg-[#f7fbf9] outline outline-1 outline-[rgba(0,135,68,0.5)]",icon:"text-[#3ac29e]"};case"error":return{border:"border-[var(--semantica/error,#ff4235)]",bg:"bg-[#fdf7f9] outline outline-1 outline-[rgba(214,0,64,0.5)]",icon:"text-[#ff4235]"}}}),h=e.computed(()=>"bg-[var(--color-primario/700,#269ea4)]"),x=e.computed(()=>{const w="flex w-full items-start gap-4 flex-col";if(!s.stackOn)return`${w} sm:flex-row sm:items-center`;const p=s.stackOn,v=`${p}:flex-row ${p}:items-center`;return`${w} ${v}`}),E=e.computed(()=>{if(!s.stackOn)return"flex-col sm:flex-row items-start sm:items-center";const w=s.stackOn;return`flex-col ${w}:flex-row items-start ${w}:items-center`}),C=e.computed(()=>s.stackOn?`self-start ${s.stackOn}:self-auto`:"self-start sm:self-auto");return(w,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative w-full rounded-xl border",[i.value.border,i.value.bg]]),role:"alert","data-node-id":r.value},[o.closable?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"absolute top-3 right-3 text-[color:var(--neutrales/texto-principal,#565656)]/70 hover:opacity-100 opacity-70","aria-label":"Cerrar",onClick:d},[...p[2]||(p[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["p-6",{"pb-0":c.value}])},[e.createElementVNode("div",{class:e.normalizeClass(x.value)},[e.createElementVNode("div",Ft,[n.value==="info"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:e.normalizeClass(i.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[3]||(p[3]=[e.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),e.createElementVNode("line",{x1:"12",y1:"16",x2:"12",y2:"12"},null,-1),e.createElementVNode("line",{x1:"12",y1:"8",x2:"12",y2:"8"},null,-1)])],2)):n.value==="warning"?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:e.normalizeClass(i.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[4]||(p[4]=[e.createElementVNode("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z"},null,-1),e.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),e.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"17"},null,-1)])],2)):n.value==="success"?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:e.normalizeClass(i.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[5]||(p[5]=[e.createElementVNode("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"},null,-1),e.createElementVNode("polyline",{points:"22 4 12 14.01 9 11.01"},null,-1)])],2)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:e.normalizeClass(i.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[6]||(p[6]=[e.createElementVNode("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},null,-1),e.createElementVNode("line",{x1:"12",y1:"8",x2:"12",y2:"12"},null,-1),e.createElementVNode("line",{x1:"12",y1:"16",x2:"12",y2:"16"},null,-1)])],2))]),e.createElementVNode("div",{class:e.normalizeClass(["flex-1 flex gap-4 text-[14px]",[E.value,o.closable?"pr-6":"",{"whitespace-nowrap":!a.value,"whitespace-pre-wrap":a.value}]])},[e.createElementVNode("div",{class:e.normalizeClass(["tracking-[0.1px] text-[color:var(--neutrales/texto-principal,#565656)] font-medium",C.value])},e.toDisplayString(u.value),3),e.createElementVNode("div",{class:e.normalizeClass(["flex-1 tracking-[0.25px] text-[color:var(--neutrales/texto-principal,#565656)]",{"overflow-hidden overflow-ellipsis":!a.value}])},[e.renderSlot(w.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(f.value),1)])],2)],2)],2)],2),c.value?(e.openBlock(),e.createElementBlock("div",At,[e.createElementVNode("button",{type:"button",class:"px-4 py-1.5 rounded-[18px] text-[14px] tracking-[1.25px] font-bold text-[color:var(--neutrales/texto-principal,#565656)]",onClick:p[0]||(p[0]=v=>w.$emit("cancel"))},[e.renderSlot(w.$slots,"cancel",{},()=>[p[7]||(p[7]=e.createTextVNode("Cancelar",-1))])]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["px-4 py-1.5 rounded-[18px] text-[14px] tracking-[1.25px] font-bold text-white",h.value]),onClick:p[1]||(p[1]=v=>w.$emit("accept"))},[e.renderSlot(w.$slots,"accept",{},()=>[p[8]||(p[8]=e.createTextVNode("Aceptar",-1))])],2)])):e.createCommentVNode("",!0)],10,Ot))}});exports.Alert=Pt;exports.AppBar=F;exports.Button=H;exports.Card=q;exports.Dialog=X;exports.FileUpload=me;exports.Loader=ve;exports.Menu=ze;exports.Pagination=It;exports.Select=Ze;exports.Sidebar=Xe;exports.Table=vt;exports.Tabs=Et;exports.Text=$t;