@iaclinical/components 1.0.12 → 1.0.13

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"},j={class:"flex flex-1 justify-center items-center min-w-0"},_={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"},O={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},I=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:p}){const t=o,r=p,n=e.computed(()=>{const s="flex flex-row items-center justify-between gap-2 sm:gap-4 px-3 sm:px-6 z-50 w-full",i={default:"bg-primary-700 text-primary-50",dark:"bg-secondary-900 text-white",light:"bg-white text-secondary-900 border-b border-secondary-200"},a={sm:"h-12",md:"h-14",lg:"h-16"},c=t.sticky?"sticky top-0":"",d=t.shadow?"shadow-md":"";return[s,i[t.variant],a[t.height],c,d].join(" ")});return(s,i)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(n.value)},[e.createElementVNode("div",M,[o.showMenuButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:i[0]||(i[0]=a=>r("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"},[...i[1]||(i[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(s.$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(s.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",L,[o.title&&o.titlePosition==="right"?(e.openBlock(),e.createElementBlock("div",O,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"right",{},void 0,!0)])],2))}}),z=(o,p)=>{const t=o.__vccOpts||o;for(const[r,n]of p)t[r]=n;return t},F=z(I,[["__scopeId","data-v-c5861315"]]),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]"},W=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:p}){const t=o,r=p,n=e.computed(()=>t.variant==="icon"),s=e.computed(()=>t.badge>99?"99+":t.badge.toString()),i=e.computed(()=>{const c="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",d={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"},u={full:"rounded-full",xl:"rounded-2xl",lg:"rounded-xl",md:"rounded-lg",sm:"rounded-md",none:"rounded-none"},V=t.textColor?t.textColor:"",h=e.computed(()=>{var E,$;return t.textColorHover?t.textColorHover:(E=t.textColor)!=null&&E.includes("white")||($=t.textColor)!=null&&$.includes("50")?"hover:text-black":""});return`${c} ${d[t.variant]} ${g[t.size]} ${u[t.radius]} ${V} ${h.value}`}),a=c=>{t.disabled||r("click",c)};return(c,d)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(i.value),type:o.type,disabled:o.disabled,onClick:a,"aria-label":o.ariaLabel},[e.renderSlot(c.$slots,"default"),n.value&&o.badge&&o.badge>0?(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0)],10,A))}}),P={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 p=o,t={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},r={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[p.shadow],r[p.rounded],p.bordered?"border border-gray-200":""]);return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[s.$slots.header?(e.openBlock(),e.createElementBlock("div",P,[e.renderSlot(s.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",K,[e.renderSlot(s.$slots,"default")]),s.$slots.footer?(e.openBlock(),e.createElementBlock("div",R,[e.renderSlot(s.$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:p}){const t=o,r=p,n=e.computed({get:()=>t.modelValue,set:a=>r("update:modelValue",a)}),s=()=>{n.value=!1,r("close")},i=()=>{t.closeOnBackdrop&&s()};return(a,c)=>(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:i},[e.createElementVNode("div",{class:"relative w-full rounded-lg bg-white shadow-xl sm:max-w-lg md:max-w-2xl",onClick:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",U,[e.createElementVNode("h2",G,[e.renderSlot(a.$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:s},[...c[1]||(c[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(a.$slots,"default",{},void 0,!0)]),a.$slots.footer?(e.openBlock(),e.createElementBlock("div",Z,[e.renderSlot(a.$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"},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:p}){const t=o,r=p,n=e.ref(null),s=e.ref(!1),i=e.ref(t.modelValue),a=e.ref(""),c=e.computed(()=>({sm:"w-20 h-20",md:"w-32 h-32",lg:"w-48 h-48",xl:"w-64 h-64"})[t.illustrationSize]),d=()=>{var y;(y=n.value)==null||y.click()},g=()=>{t.disabled||d()},u=y=>{t.disabled||(s.value=!0)},V=()=>{s.value=!1},h=y=>{if(a.value="",t.maxSize&&y.size>t.maxSize){const b=(t.maxSize/1048576).toFixed(2);return a.value=`El archivo excede el tamaño máximo de ${b}MB`,r("error",a.value),!1}return!0},E=y=>{var S;const B=(S=y.target.files)==null?void 0:S[0];B&&h(B)&&(i.value=B,r("update:modelValue",B),r("change",B))},$=y=>{var B;s.value=!1;const b=(B=y.dataTransfer)==null?void 0:B.files[0];b&&h(b)&&(i.value=b,r("update:modelValue",b),r("change",b))},w=()=>{i.value=null,a.value="",n.value&&(n.value.value=""),r("update:modelValue",null),r("change",null)},v=y=>{if(y===0)return"0 Bytes";const b=1024,B=["Bytes","KB","MB","GB"],S=Math.floor(Math.log(y)/Math.log(b));return Math.round(y/Math.pow(b,S)*100)/100+" "+B[S]};return(y,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative border-2 border-dashed rounded-lg p-8 transition-colors",[s.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(u,["prevent"]),onDragleave:e.withModifiers(V,["prevent"]),onDrop:e.withModifiers($,["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([c.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",re,e.toDisplayString(o.linkText),1)])]),i.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",ae,[e.createElementVNode("p",ie,e.toDisplayString(i.value.name),1),e.createElementVNode("p",ce,e.toDisplayString(v(i.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),a.value?(e.openBlock(),e.createElementBlock("p",ue,e.toDisplayString(a.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 p=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"},r={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[p.color]]),s=e.computed(()=>[r[p.color]]);return(i,a)=>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),a[0]||(a[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([s.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"},be=["innerHTML"],he={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:p}){const t=o,r=p,n=e.ref(!1),s=e.ref(null),i=e.ref(null),a=e.ref({}),c=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(" ")),d=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"),u=e.computed(()=>"px-4 py-3 border-t border-secondary-200 bg-secondary-50"),V=e.computed(()=>"py-1 overflow-y-auto flex-1 min-h-0"),h=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"),$=l=>{const x=["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"],m=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 C="";return l.color&&(C=l.color,(l.color.includes("white")||l.color.includes("50"))&&(C+=" hover:text-black")),[...x,C||T[m]].join(" ")},w=()=>{t.disabled||(n.value?y():v())},v=()=>{n.value=!0,r("open"),e.nextTick(()=>{k(),document.addEventListener("click",B),document.addEventListener("keydown",S)})},y=()=>{n.value=!1,r("close"),document.removeEventListener("click",B),document.removeEventListener("keydown",S)},b=l=>{l.disabled||(l.action&&l.action(),r("select",l),t.closeOnClick&&!l.children&&y())},B=l=>{const x=l.target;s.value&&!s.value.contains(x)&&i.value&&!i.value.contains(x)&&y()},S=l=>{l.key==="Escape"&&y()},f=l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),w())},k=()=>{if(!s.value||!i.value)return;const l=s.value.getBoundingClientRect(),x=i.value.getBoundingClientRect(),m=window.innerWidth,T=window.innerHeight;let C=0,N=0;switch(t.position){case"bottom-start":C=l.bottom+t.offset.y,N=l.left+t.offset.x;break;case"bottom-end":C=l.bottom+t.offset.y,N=l.right-x.width+t.offset.x;break;case"top-start":C=l.top-x.height-t.offset.y,N=l.left+t.offset.x;break;case"top-end":C=l.top-x.height-t.offset.y,N=l.right-x.width+t.offset.x;break;case"right-start":C=l.top+t.offset.y,N=l.right+t.offset.x;break;case"right-end":C=l.bottom-x.height+t.offset.y,N=l.right+t.offset.x;break;case"left-start":C=l.top+t.offset.y,N=l.left-x.width-t.offset.x;break;case"left-end":C=l.bottom-x.height+t.offset.y,N=l.left-x.width-t.offset.x;break}N+x.width>m&&(N=m-x.width-8),N<8&&(N=8),C+x.height>T&&(C=T-x.height-8),C<8&&(C=8),a.value={top:`${C}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",B),document.removeEventListener("keydown",S)}),e.watch(()=>t.items,()=>{n.value&&e.nextTick(k)},{deep:!0}),(l,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper",{"w-full":o.fullWidth}])},[e.createElementVNode("div",{ref_key:"triggerRef",ref:s},[e.renderSlot(l.$slots,"trigger",{isOpen:n.value,toggle:w},()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(c.value),disabled:o.disabled,onClick:w,onKeydown:f,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"},[...x[1]||(x[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:i,class:e.normalizeClass(d.value),style:e.normalizeStyle(a.value),onClick:x[0]||(x[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:y},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(V.value)},[e.renderSlot(l.$slots,"default",{close:y,isOpen:n.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(m,T)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m.id||T},[m.type==="divider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(h.value)},null,2)):m.type==="header"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(E.value)},e.toDisplayString(m.label),3)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass($(m)),disabled:m.disabled,onClick:C=>b(m)},[m.icon||l.$slots[`icon-${m.id}`]?(e.openBlock(),e.createElementBlock("span",xe,[e.renderSlot(l.$slots,`icon-${m.id}`,{item:m},()=>[typeof m.icon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.icon),{key:0,class:"w-5 h-5"})):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:m.icon,class:"w-5 h-5 inline-block"},null,8,be))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",he,[e.renderSlot(l.$slots,`item-${m.id}`,{item:m,close:y},()=>[e.createElementVNode("div",we,[e.createElementVNode("span",{class:"truncate w-full",title:m.label},e.toDisplayString(m.label),9,Ce),m.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-xs text-secondary-500 truncate w-full",title:m.description},e.toDisplayString(m.description),9,Be)):e.createCommentVNode("",!0)])],!0)]),m.suffix||m.shortcut||l.$slots[`suffix-${m.id}`]?(e.openBlock(),e.createElementBlock("span",Ee,[e.renderSlot(l.$slots,`suffix-${m.id}`,{item:m},()=>[m.shortcut?(e.openBlock(),e.createElementBlock("span",Ve,e.toDisplayString(m.shortcut),1)):m.suffix?(e.openBlock(),e.createElementBlock("span",$e,e.toDisplayString(m.suffix),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),m.children&&m.children.length>0?(e.openBlock(),e.createElementBlock("svg",Ne,[...x[2]||(x[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(u.value)},[e.renderSlot(l.$slots,"footer",{close:y},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:y})):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"},Oe=["placeholder"],Ie={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"},We={class:"truncate"},Pe={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:p}){const t=o,r=p,n=e.ref(!1),s=e.ref(""),i=e.ref(null),a=e.computed(()=>`select-${Math.random().toString(36).substr(2,9)}`),c=e.computed(()=>t.options.find(f=>f.value===t.modelValue)||null),d=e.computed(()=>{if(!t.searchable||!s.value)return t.options;const f=s.value.toLowerCase();return t.options.filter(k=>k.label.toLowerCase().includes(f))}),g=e.computed(()=>"block text-sm font-semibold text-secondary-700 mb-1"),u=e.computed(()=>{const f="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"},x=t.error?"border-danger-600 focus:ring-danger-500":"";return[f,k[t.size],l[t.variant],x].join(" ")}),V=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`),h=f=>{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=$(f)?"bg-primary-50":"";return[k,l].join(" ")},E=f=>{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 f.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`},$=f=>f.value===t.modelValue,w=()=>{t.disabled||(n.value=!n.value,n.value&&t.searchable&&e.nextTick(()=>{var f;(f=i.value)==null||f.focus()}))},v=()=>{n.value=!1,s.value=""},y=f=>{f.disabled||(r("update:modelValue",f.value),r("change",f),v())},b=f=>{f.action&&f.action(),r("action",f),v()},B=f=>{const k=f.relatedTarget;k&&k.closest(".select-wrapper")||setTimeout(()=>{v()},200)},S=f=>{f.key==="Escape"?v():(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),w())};return e.watch(n,f=>{f&&(s.value="")}),(f,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:a.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:a.value,type:"button",class:e.normalizeClass(u.value),disabled:o.disabled,"aria-expanded":n.value,"aria-haspopup":!0,onClick:w,onBlur:B,onKeydown:S},[e.createElementVNode("span",_e,e.toDisplayString(c.value?c.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,je),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(V.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:i,"onUpdate:modelValue":k[0]||(k[0]=l=>s.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,Oe),[[e.vModelText,s.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",Ie,[d.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(d.value,l=>(e.openBlock(),e.createElementBlock("button",{key:l.value,type:"button",class:e.normalizeClass(h(l)),onClick:x=>y(l)},[e.createElementVNode("div",He,[e.createElementVNode("span",We,e.toDisplayString(l.label),1),$(l)?(e.openBlock(),e.createElementBlock("svg",Pe,[...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",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(E(l)),onClick:x=>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,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:v,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:p}){const t=o,r=p,n=e.computed({get:()=>t.modelValue,set:h=>r("update:modelValue",h)}),s=()=>{t.persistent||(n.value=!1,r("close"))},i=e.computed(()=>t.position==="left"?"slide-right":"slide-left"),a=e.computed(()=>{const h="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",$=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[h,E,$].filter(Boolean).join(" ")}),c=e.computed(()=>({width:"100%",maxWidth:t.width,backgroundColor:t.backgroundColor,top:t.overlayTop,height:t.overlayTop!=="0"?`calc(100vh - ${t.overlayTop})`:"100vh"})),d={none:"",sm:"p-2",md:"p-4",lg:"p-6"},g=e.computed(()=>`flex items-center justify-between border-b border-gray-200 ${d[t.padding]}`),u=e.computed(()=>`flex-1 overflow-y-auto ${d[t.padding]}`),V=e.computed(()=>`border-t border-gray-200 ${d[t.padding]}`);return(h,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:s,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:i.value},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(a.value),style:e.normalizeStyle(c.value)},[h.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(g.value)},[e.renderSlot(h.$slots,"header",{},void 0,!0),o.closable?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s,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(u.value)},[e.renderSlot(h.$slots,"default",{},void 0,!0)],2),h.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(V.value)},[e.renderSlot(h.$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"},rt={class:"w-full border-collapse"},st={class:"w-full"},at=["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 p=o,t=e.ref(null),r=e.ref("asc"),n=a=>{t.value===a?r.value=r.value==="asc"?"desc":"asc":(t.value=a,r.value="asc")},s=e.computed(()=>{if(!t.value)return p.data;const a=[...p.data];return a.sort((c,d)=>{const g=c[t.value],u=d[t.value];return typeof g=="string"&&typeof u=="string"?r.value==="asc"?g.localeCompare(u):u.localeCompare(g):typeof g=="number"&&typeof u=="number"?r.value==="asc"?g-u:u-g:0}),a}),i=e.computed(()=>p.columns.filter(a=>!a.hideOnMobile));return(a,c)=>(e.openBlock(),e.createElementBlock("div",Ye,[e.createElementVNode("div",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(d,g)=>(e.openBlock(),e.createElementBlock("div",{key:`card-${g}`,class:"rounded-lg border border-gray-200 bg-white p-4 shadow-sm"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,u=>(e.openBlock(),e.createElementBlock("div",{key:`card-${g}-${u.key}`,class:"flex flex-col gap-1 py-1"},[e.createElementVNode("span",tt,e.toDisplayString(u.label),1),e.createElementVNode("span",ot,[e.renderSlot(a.$slots,`cell-${u.key}`,{value:d[u.key],row:d},()=>[e.createTextVNode(e.toDisplayString(d[u.key]),1)],!0)])]))),128))]))),128)),s.value.length===0?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(a.$slots,"empty",{},()=>[c[0]||(c[0]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",nt,[e.createElementVNode("table",rt,[e.createElementVNode("thead",st,[e.createElementVNode("tr",{class:e.normalizeClass(["w-full",p.headerClass||"bg-neutral-50 border-b border-gray-100"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,d=>(e.openBlock(),e.createElementBlock("th",{key:d.key,style:e.normalizeStyle(d.width?{width:d.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",d.sortable?"cursor-pointer hover:text-primary-600 select-none transition-colors":"",p.headerCellClass]),onClick:g=>d.sortable&&n(d.key)},[e.createElementVNode("div",it,[e.createElementVNode("span",null,e.toDisplayString(d.label),1),d.sortable?(e.openBlock(),e.createElementBlock("span",ct,[t.value!==d.key?(e.openBlock(),e.createElementBlock("span",dt,"⇅")):(e.openBlock(),e.createElementBlock("span",ut,e.toDisplayString(r.value==="asc"?"↑":"↓"),1))])):e.createCommentVNode("",!0)])],14,at))),128))],2)]),e.createElementVNode("tbody",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(d,g)=>(e.openBlock(),e.createElementBlock("tr",{key:g,class:e.normalizeClass(["w-full border-b border-gray-200 hover:bg-gray-50 transition-colors",p.rowClass])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,u=>(e.openBlock(),e.createElementBlock("td",{key:`${g}-${u.key}`,class:e.normalizeClass(["px-4 py-3 text-xs text-gray-600 border-l border-gray-100 first:border-l-0",p.cellClass])},[e.renderSlot(a.$slots,`cell-${u.key}`,{value:d[u.key],row:d},()=>[e.createTextVNode(e.toDisplayString(d[u.key]),1)],!0)],2))),128))],2))),128))])]),s.value.length===0?(e.openBlock(),e.createElementBlock("div",pt,[e.renderSlot(a.$slots,"empty",{},()=>[c[1]||(c[1]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),a.$slots.footer?(e.openBlock(),e.createElementBlock("div",ft,[e.renderSlot(a.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]))}}),vt=z(gt,[["__scopeId","data-v-8e7ce66d"]]),yt={class:"w-full"},kt={class:"flex flex-col sm:flex-row border-b border-gray-100",role:"tablist"},xt=["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-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",wt="text-primary-700 border-b-4 border-primary-700",Ct="text-gray-600 border-b-4 border-transparent hover:text-gray-800",Bt=e.defineComponent({__name:"Tabs",props:{modelValue:{},tabs:{}},emits:["update:modelValue"],setup(o,{emit:p}){const t=o,r=p,n=c=>t.modelValue===c,s=c=>{n(c)||r("update:modelValue",c)},i=e.computed(()=>t.modelValue),a=e.computed(()=>t.tabs.find(c=>c.value===i.value));return(c,d)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",kt,[(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([ht,n(g.value)?wt:Ct]),"aria-selected":n(g.value),role:"tab",onClick:u=>s(g.value)},e.toDisplayString(g.label),11,xt))),128))]),e.createElementVNode("div",bt,[e.renderSlot(c.$slots,i.value,{active:i.value,tab:a.value})])]))}}),Et="font-sans",Vt=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 p={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"},r={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"},s={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},i=o,a=e.computed(()=>i.variant),c=e.computed(()=>i.color),d=e.computed(()=>i.align),g=e.computed(()=>i.as||t[a.value]||"span"),u=e.computed(()=>i.weight?s[i.weight]:"");return(V,h)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.value),{class:e.normalizeClass([Et,p[a.value],n[c.value],r[d.value],u.value,{uppercase:o.uppercase||a.value==="overline",truncate:o.truncate}])},{default:e.withCtx(()=>[e.renderSlot(V.$slots,"default")]),_:3},8,["class"]))}}),$t=["data-node-id"],Nt={class:"shrink-0 size-12 rounded-full bg-[var(--neutrales/fondo-general-claro,#f7f7f7)] grid place-items-center"},St={key:1,class:"flex justify-end gap-1 px-6 pb-6 pt-4"},zt=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:p}){const t=p,r=o,n=e.computed(()=>r.variant??"info"),s=e.computed(()=>r.multiline??!1),i=e.computed(()=>r.actions??!1),a=e.computed(()=>r.nodeId??void 0),c=()=>t("close"),d=e.computed(()=>{if(r.title)return r.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(()=>r.description??""),u=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]"}}}),V=e.computed(()=>"bg-[var(--color-primario/700,#269ea4)]"),h=e.computed(()=>{const w="flex w-full items-start gap-4 flex-col";if(!r.stackOn)return`${w} sm:flex-row sm:items-center`;const v=r.stackOn,y=`${v}:flex-row ${v}:items-center`;return`${w} ${y}`}),E=e.computed(()=>{if(!r.stackOn)return"flex-col sm:flex-row items-start sm:items-center";const w=r.stackOn;return`flex-col ${w}:flex-row items-start ${w}:items-center`}),$=e.computed(()=>r.stackOn?`self-start ${r.stackOn}:self-auto`:"self-start sm:self-auto");return(w,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative w-full rounded-xl border",[u.value.border,u.value.bg]]),role:"alert","data-node-id":a.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:c},[...v[2]||(v[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":i.value}])},[e.createElementVNode("div",{class:e.normalizeClass(h.value)},[e.createElementVNode("div",Nt,[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(u.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...v[3]||(v[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(u.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...v[4]||(v[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(u.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...v[5]||(v[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(u.value.icon),stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...v[6]||(v[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":!s.value,"whitespace-pre-wrap":s.value}]])},[e.createElementVNode("div",{class:e.normalizeClass(["tracking-[0.1px] text-[color:var(--neutrales/texto-principal,#565656)] font-medium",$.value])},e.toDisplayString(d.value),3),e.createElementVNode("div",{class:e.normalizeClass(["flex-1 tracking-[0.25px] text-[color:var(--neutrales/texto-principal,#565656)]",{"overflow-hidden overflow-ellipsis":!s.value}])},[e.renderSlot(w.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(g.value),1)])],2)],2)],2)],2),i.value?(e.openBlock(),e.createElementBlock("div",St,[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:v[0]||(v[0]=y=>w.$emit("cancel"))},[e.renderSlot(w.$slots,"cancel",{},()=>[v[7]||(v[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",V.value]),onClick:v[1]||(v[1]=y=>w.$emit("accept"))},[e.renderSlot(w.$slots,"accept",{},()=>[v[8]||(v[8]=e.createTextVNode("Aceptar",-1))])],2)])):e.createCommentVNode("",!0)],10,$t))}});exports.Alert=zt;exports.AppBar=F;exports.Button=W;exports.Card=q;exports.Dialog=X;exports.FileUpload=me;exports.Loader=ve;exports.Menu=ze;exports.Select=Ze;exports.Sidebar=Xe;exports.Table=vt;exports.Tabs=Bt;exports.Text=Vt;