@iaclinical/components 1.0.24 → 1.0.26

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"),me=require("@iconify/vue"),pe={class:"flex items-center gap-2 sm:gap-3 shrink-0"},fe={key:1,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},ge={class:"flex flex-1 justify-center items-center min-w-0"},ve={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins truncate"},ye={class:"flex items-center gap-2 sm:gap-3 shrink-0"},be={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},he=e.defineComponent({__name:"AppBar",props:{title:{default:""},titlePosition:{default:"left"},showMenuButton:{type:Boolean,default:!0},variant:{default:"default"},sticky:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},height:{default:"md"}},emits:["toggle-menu"],setup(o,{emit:m}){const t=o,i=m,a=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",c={default:"bg-primary-700 text-primary-50",dark:"bg-secondary-900 text-white",light:"bg-white text-secondary-900 border-b border-secondary-200"},l={sm:"h-12",md:"h-14",lg:"h-16"},f=t.sticky?"sticky top-0":"",n=t.shadow?"shadow-md":"";return[s,c[t.variant],l[t.height],f,n].join(" ")});return(s,c)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(a.value)},[e.createElementVNode("div",pe,[o.showMenuButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:c[0]||(c[0]=l=>i("toggle-menu")),class:"p-1.5 sm:p-2 hover:bg-primary-600 rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Toggle menu"},[...c[1]||(c[1]=[e.createElementVNode("svg",{class:"w-5 h-5 sm:w-6 sm:h-6 text-primary-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})],-1)])])):e.createCommentVNode("",!0),o.title&&o.titlePosition==="left"?(e.openBlock(),e.createElementBlock("div",fe,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"left",{},void 0,!0)]),e.createElementVNode("div",ge,[o.title&&o.titlePosition==="center"?(e.openBlock(),e.createElementBlock("div",ve,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",ye,[o.title&&o.titlePosition==="right"?(e.openBlock(),e.createElementBlock("div",be,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"right",{},void 0,!0)])],2))}}),I=(o,m)=>{const t=o.__vccOpts||o;for(const[i,a]of m)t[i]=a;return t},xe=I(he,[["__scopeId","data-v-c5861315"]]),ke=["type","disabled","aria-label"],Ce={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]"},we=e.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},radius:{default:"full"},type:{default:"button"},disabled:{type:Boolean,default:!1},badge:{default:0},ariaLabel:{default:""},textColor:{default:void 0},textColorHover:{default:void 0}},emits:["click"],setup(o,{emit:m}){const t=o,i=m,a=e.computed(()=>t.variant==="icon"),s=e.computed(()=>t.badge>99?"99+":t.badge.toString()),c=e.computed(()=>{const f="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",n={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 hover:text-secondary-800 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"},d={sm:a.value?"p-1.5":"h-8 px-3 text-sm",md:a.value?"p-2":"h-10 px-4 text-base",lg:a.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"},w=t.textColor?t.textColor:"",k=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`${f} ${n[t.variant]} ${d[t.size]} ${u[t.radius]} ${w} ${k.value}`}),l=f=>{t.disabled||i("click",f)};return(f,n)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(c.value),type:o.type,disabled:o.disabled,onClick:l,"aria-label":o.ariaLabel},[e.renderSlot(f.$slots,"default"),a.value&&o.badge&&o.badge>0?(e.openBlock(),e.createElementBlock("span",Ce,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0)],10,ke))}}),Be=e.defineComponent({__name:"Icon",props:{name:{},size:{default:"md"},color:{default:"currentColor"},variant:{default:"filled"},rotate:{default:0},spin:{type:Boolean,default:!1},ariaLabel:{}},setup(o){const m=o,t={xs:"16px",sm:"18px",md:"20px",lg:"24px",xl:"30px","2xl":"36px"},i=(l,f)=>{const n=l.replace(/_/g,"-");switch(f){case"filled":return`material-symbols:${n}`;case"outlined":return`ic:outline-${n}`;case"rounded":return`ic:round-${n}`;case"sharp":return`ic:sharp-${n}`;case"two-tone":return`ic:twotone-${n}`;default:return`material-symbols:${n}`}},a=e.computed(()=>i(m.name,m.variant)),s=e.computed(()=>{const l=["inline-flex items-center justify-center select-none","transition-transform duration-200"];return m.color&&(m.color.startsWith("text-")||m.color.startsWith("fill-"))&&l.push(m.color),m.spin&&l.push("animate-spin"),l.join(" ")}),c=e.computed(()=>{const l={};if(t[m.size]?(l.fontSize=t[m.size],l.width=t[m.size],l.height=t[m.size]):(l.fontSize=m.size,l.width=m.size,l.height=m.size),m.color&&!m.color.startsWith("text-")&&!m.color.startsWith("fill-")&&(l.color=m.color),m.rotate!==0){const f=`rotate(${m.rotate}deg)`;l.transform=f}return l});return(l,f)=>(e.openBlock(),e.createBlock(e.unref(me.Icon),{icon:a.value,class:e.normalizeClass(s.value),style:e.normalizeStyle(c.value),"aria-label":o.ariaLabel,role:o.ariaLabel?"img":void 0},null,8,["icon","class","style","aria-label","role"]))}}),P=I(Be,[["__scopeId","data-v-5f982e5c"]]),Ve={key:0,class:"relative"},$e=["for"],Ee={key:0,class:"text-danger-600"},Ne=["id","disabled","placeholder","value","required"],ze=["disabled"],Se={key:1,class:"space-y-2"},De={key:0,class:"text-danger-600"},Me={class:"grid grid-cols-1 md:grid-cols-2 gap-2"},Te=["disabled","placeholder","value","required"],Ie=["disabled"],Le=["disabled","placeholder","value","required"],je=["disabled"],Fe={key:2,class:"mt-1 text-sm text-danger-600"},Oe={key:3,class:"mt-1 text-sm text-secondary-600"},Pe={class:"flex items-center justify-between mb-4"},qe={class:"flex items-center space-x-2"},Ae=["value"],Ye=["value"],_e={class:"grid grid-cols-7 gap-1 mb-2"},Re={class:"grid grid-cols-7 gap-1"},We=["disabled","onClick"],He={class:"flex justify-end space-x-2 mt-4 pt-4 border-t border-secondary-100"},Ke=["disabled"],Ue=e.defineComponent({__name:"Calendar",props:{modelValue:{},mode:{default:"single"},label:{},showLabel:{type:Boolean,default:!0},labelColor:{default:"text-secondary-700"},placeholder:{},startPlaceholder:{},endPlaceholder:{},size:{default:"md"},variant:{default:"default"},color:{default:"primary"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{},helperText:{},iconName:{default:"calendar"},startIconName:{default:"calendar"},endIconName:{default:"calendar"},minDate:{},maxDate:{},disabledDates:{},dateFormat:{default:"DD/MM/YYYY"},bordered:{type:Boolean,default:!0}},emits:["update:modelValue","date-select","range-select"],setup(o,{emit:m}){const t=o,i=m,a=e.ref(!1),s=e.ref(null),c=e.ref(new Date().getMonth()),l=e.ref(new Date().getFullYear()),f=e.ref(`calendar-${Math.random().toString(36).substr(2,9)}`),n=e.ref(null),d=e.ref(null),u=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],w=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],k=e.computed(()=>({sm:"xs",md:"sm",lg:"md"})[t.size]||"sm"),E=e.computed(()=>{const p=new Date().getFullYear(),b=[];for(let C=p-100;C<=p+10;C++)b.push(C);return b}),$=e.computed(()=>`block text-sm font-medium ${t.labelColor} mb-1`),B=e.computed(()=>t.bordered?"border border-neutral-300":""),x=e.computed(()=>{const p="w-full rounded-md transition-colors focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",b={sm:"px-3 py-1.5 pr-10 text-sm",md:"px-4 py-2 pr-10 text-base",lg:"px-5 py-3 pr-12 text-lg"},C={primary:"focus:ring-primary-500",secondary:"focus:ring-secondary-500"},S={default:"bg-white",filled:"bg-secondary-100",outlined:"bg-transparent"},L=t.error?"border-danger-600 focus:ring-danger-500":"";return`${p} ${b[t.size]} ${S[t.variant]} ${C[t.color]} ${L}`}),v=e.computed(()=>`transition-colors ${{primary:"text-primary-600 hover:text-primary-700",secondary:"text-secondary-600 hover:text-secondary-700"}[t.color]} ${t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"}`),V=e.computed(()=>"min-w-80 max-w-sm"),z=e.computed(()=>`p-2 rounded-md transition-colors ${{primary:"text-primary-600 hover:text-primary-700 hover:bg-primary-50",secondary:"text-secondary-600 hover:text-secondary-700 hover:bg-secondary-50"}[t.color]}`),T=e.computed(()=>`px-2 py-1 text-sm border border-secondary-300 rounded-md focus:outline-none focus:ring-1 ${{primary:"focus:border-primary-500 focus:ring-primary-500",secondary:"focus:border-secondary-500 focus:ring-secondary-500"}[t.color]}`),q=e.computed(()=>`px-3 py-1.5 text-sm text-white rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-offset-1 disabled:opacity-50 disabled:cursor-not-allowed ${{primary:"bg-primary-600 hover:bg-primary-700 focus:ring-primary-500",secondary:"bg-secondary-600 hover:bg-secondary-700 focus:ring-secondary-500"}[t.color]}`),h=e.computed(()=>`px-3 py-1.5 text-sm border border-secondary-300 rounded-md transition-colors focus:outline-none ${{primary:"text-primary-600 hover:text-primary-700 hover:bg-primary-50",secondary:"text-secondary-600 hover:text-secondary-700 hover:bg-secondary-50"}[t.color]}`),r=e.computed(()=>t.mode==="single"&&t.modelValue&&t.modelValue instanceof Date?D(t.modelValue):""),g=e.computed(()=>t.mode==="range"&&t.modelValue&&typeof t.modelValue=="object"&&"start"in t.modelValue&&t.modelValue.start?D(t.modelValue.start):""),y=e.computed(()=>t.mode==="range"&&t.modelValue&&typeof t.modelValue=="object"&&"end"in t.modelValue&&t.modelValue.end?D(t.modelValue.end):""),j=e.computed(()=>t.mode==="single"?n.value!==null:n.value!==null&&d.value!==null&&d.value>=n.value);e.computed(()=>t.mode==="range"&&n.value&&d.value?d.value<n.value:!1);const N=e.computed(()=>{const p=new Date(l.value,c.value,1),b=new Date(l.value,c.value+1,0),C=p.getDay(),S=b.getDate(),L=[],O=new Date(l.value,c.value-1,0);for(let M=C-1;M>=0;M--){const F=new Date(l.value,c.value-1,O.getDate()-M);L.push({day:F.getDate(),date:F,isCurrentMonth:!1,disabled:!0,key:`prev-${F.getDate()}`})}for(let M=1;M<=S;M++){const F=new Date(l.value,c.value,M);L.push({day:M,date:F,isCurrentMonth:!0,disabled:!1,key:`current-${M}`})}const ue=42-L.length;for(let M=1;M<=ue;M++){const F=new Date(l.value,c.value+1,M);L.push({day:M,date:F,isCurrentMonth:!1,disabled:!0,key:`next-${M}`})}return L}),D=p=>{const b=p.getDate().toString().padStart(2,"0"),C=(p.getMonth()+1).toString().padStart(2,"0"),S=p.getFullYear();switch(t.dateFormat){case"MM/DD/YYYY":return`${C}/${b}/${S}`;case"YYYY-MM-DD":return`${S}-${C}-${b}`;case"DD/MM/YYYY":default:return`${b}/${C}/${S}`}},K=p=>{var C;const b=new Date(p.getFullYear(),p.getMonth(),p.getDate());if(t.minDate){const S=new Date(t.minDate.getFullYear(),t.minDate.getMonth(),t.minDate.getDate());if(b<S)return!0}if(t.maxDate){const S=new Date(t.maxDate.getFullYear(),t.maxDate.getMonth(),t.maxDate.getDate());if(b>S)return!0}return!!((C=t.disabledDates)!=null&&C.some(S=>S.toDateString()===p.toDateString()))},ee=p=>{const b="w-8 h-8 text-sm rounded-md transition-colors focus:outline-none";if(!p.isCurrentMonth||p.disabled||K(p.date))return`${b} text-secondary-400 cursor-not-allowed`;const C=te(p.date),S=oe(p.date),L=le(p.date),O={primary:{selected:"bg-primary-600 text-white",inRange:"bg-primary-100 text-primary-900",today:"bg-primary-50 text-primary-700 border border-primary-300",default:"text-secondary-700 hover:bg-primary-50 hover:text-primary-700"},secondary:{selected:"bg-secondary-600 text-white",inRange:"bg-secondary-100 text-secondary-900",today:"bg-secondary-50 text-secondary-700 border border-secondary-300",default:"text-secondary-700 hover:bg-secondary-50 hover:text-secondary-700"}};return C?`${b} ${O[t.color].selected}`:S?`${b} ${O[t.color].inRange}`:L?`${b} ${O[t.color].today}`:`${b} ${O[t.color].default}`},te=p=>t.mode==="single"?n.value?A(p,n.value):!1:!!(n.value&&A(p,n.value))||!!(d.value&&A(p,d.value)),oe=p=>{if(t.mode!=="range"||!n.value||!d.value)return!1;const b=n.value,C=d.value;return p>b&&p<C},le=p=>A(p,new Date),A=(p,b)=>p.toDateString()===b.toDateString(),ae=()=>{t.disabled||a.value||Y()},ne=()=>{t.disabled||a.value||Y()},re=()=>{t.disabled||Q()},U=p=>{t.disabled||(_(p),a.value||Y())},J=p=>{t.disabled||(_(p),a.value||Y())},G=p=>{t.disabled||(_(p),Q())},_=p=>{s.value=p},Q=()=>{t.disabled||(a.value=!a.value,a.value&&W())},Y=()=>{t.disabled||(a.value=!0,W())},R=()=>{a.value=!1,s.value=null},W=()=>{t.mode==="single"?(n.value=t.modelValue instanceof Date?t.modelValue:null,d.value=null):t.modelValue&&typeof t.modelValue=="object"&&"start"in t.modelValue?(n.value=t.modelValue.start,d.value=t.modelValue.end):(n.value=null,d.value=null)},se=p=>{t.mode==="single"?(n.value=p,d.value=null):s.value==="start"||!n.value?(n.value=p,d.value=null,s.value="end"):(s.value==="end"||!d.value)&&(p<n.value?(d.value=n.value,n.value=p):d.value=p,s.value=null)},ie=()=>{if(t.mode==="single")i("update:modelValue",n.value),n.value&&i("date-select",n.value);else{const p={start:n.value,end:d.value};i("update:modelValue",p),i("range-select",p)}R()},ce=()=>{c.value===0?(c.value=11,l.value--):c.value--},de=()=>{c.value===11?(c.value=0,l.value++):c.value++},Z=()=>{},H=e.ref(),X=p=>{H.value&&!H.value.contains(p.target)&&R()};return e.onMounted(()=>{document.addEventListener("click",X)}),e.onUnmounted(()=>{document.removeEventListener("click",X)}),e.watch(()=>t.modelValue,p=>{a.value||W()},{deep:!0}),(p,b)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"calendarWrapperRef",ref:H,class:"calendar-wrapper"},[o.mode==="single"?(e.openBlock(),e.createElementBlock("div",Ve,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,for:f.value,class:e.normalizeClass($.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Ee,"*")):e.createCommentVNode("",!0)],10,$e)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",B.value])},[e.createElementVNode("input",{id:f.value,class:e.normalizeClass(x.value),type:"text",disabled:o.disabled,placeholder:o.placeholder||"Seleccionar fecha",value:r.value,required:o.required,readonly:!0,onClick:ae,onFocus:ne},null,42,Ne),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",v.value]),onClick:e.withModifiers(re,["stop"]),disabled:o.disabled},[e.createVNode(P,{name:o.iconName,size:k.value},null,8,["name","size"])],10,ze)],2)])):(e.openBlock(),e.createElementBlock("div",Se,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass($.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",De,"*")):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Me,[e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",B.value])},[e.createElementVNode("input",{class:e.normalizeClass(x.value),type:"text",disabled:o.disabled,placeholder:o.startPlaceholder||"Fecha desde",value:g.value,required:o.required,readonly:!0,onClick:b[0]||(b[0]=()=>U("start")),onFocus:b[1]||(b[1]=()=>J("start"))},null,42,Te),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",v.value]),onClick:b[2]||(b[2]=e.withModifiers(()=>G("start"),["stop"])),disabled:o.disabled},[e.createVNode(P,{name:o.startIconName,size:k.value},null,8,["name","size"])],10,Ie)],2),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",B.value])},[e.createElementVNode("input",{class:e.normalizeClass(x.value),type:"text",disabled:o.disabled,placeholder:o.endPlaceholder||"Fecha hasta",value:y.value,required:o.required,readonly:!0,onClick:b[3]||(b[3]=()=>U("end")),onFocus:b[4]||(b[4]=()=>J("end"))},null,42,Le),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",v.value]),onClick:b[5]||(b[5]=e.withModifiers(()=>G("end"),["stop"])),disabled:o.disabled},[e.createVNode(P,{name:o.endIconName,size:k.value},null,8,["name","size"])],10,je)],2)])])),o.error?(e.openBlock(),e.createElementBlock("p",Fe,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Oe,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["absolute top-full mt-1 left-0 bg-white rounded-lg shadow-lg border border-secondary-200 z-50 overflow-hidden p-4",V.value]),onClick:b[8]||(b[8]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Pe,[e.createElementVNode("button",{type:"button",onClick:ce,class:e.normalizeClass(z.value)},[e.createVNode(P,{name:"chevron-left",size:"sm"})],2),e.createElementVNode("div",qe,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":b[6]||(b[6]=C=>c.value=C),class:e.normalizeClass(T.value),onChange:Z},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,(C,S)=>e.createElementVNode("option",{key:S,value:S},e.toDisplayString(C),9,Ae)),64))],34),[[e.vModelSelect,c.value]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":b[7]||(b[7]=C=>l.value=C),class:e.normalizeClass(T.value),onChange:Z},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,C=>(e.openBlock(),e.createElementBlock("option",{key:C,value:C},e.toDisplayString(C),9,Ye))),128))],34),[[e.vModelSelect,l.value]])]),e.createElementVNode("button",{type:"button",onClick:de,class:e.normalizeClass(z.value)},[e.createVNode(P,{name:"chevron-right",size:"sm"})],2)]),e.createElementVNode("div",_e,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(w,C=>e.createElementVNode("div",{key:C,class:"text-center text-sm font-medium text-secondary-600 py-2"},e.toDisplayString(C),1)),64))]),e.createElementVNode("div",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,C=>(e.openBlock(),e.createElementBlock("button",{key:C.key,type:"button",class:e.normalizeClass(ee(C)),disabled:C.disabled||K(C.date),onClick:S=>se(C.date)},e.toDisplayString(C.day),11,We))),128))]),e.createElementVNode("div",He,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(h.value),onClick:R}," Cancelar ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(q.value),onClick:ie,disabled:!j.value}," Confirmar ",10,Ke)])],2)):e.createCommentVNode("",!0)],512))}}),Je=I(Ue,[["__scopeId","data-v-38b6f181"]]),Ge={key:0,class:"border-b border-gray-100 px-6 py-4"},Qe={class:"px-6 py-4"},Ze={key:1,class:"border-t border-gray-100 px-6 py-4 bg-gray-50"},Xe=e.defineComponent({__name:"Card",props:{shadow:{default:"md"},rounded:{default:"lg"},bordered:{type:Boolean,default:!1}},setup(o){const m=o,t={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},i={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},a=e.computed(()=>["w-full bg-white",t[m.shadow],i[m.rounded],m.bordered?"border border-gray-200":""]);return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[s.$slots.header?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(s.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",Qe,[e.renderSlot(s.$slots,"default")]),s.$slots.footer?(e.openBlock(),e.createElementBlock("div",Ze,[e.renderSlot(s.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),et={class:"flex items-center justify-between border-b border-gray-100/60 px-8 py-6"},tt={class:"text-xl font-semibold text-gray-900"},ot={class:"px-8 py-6"},lt={key:0,class:"border-t border-gray-100 px-8 py-6 bg-gray-50"},at=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},title:{default:"Diálogo"},closeOnBackdrop:{type:Boolean,default:!0}},emits:["update:modelValue","close"],setup(o,{emit:m}){const t=o,i=m,a=e.computed({get:()=>t.modelValue,set:l=>i("update:modelValue",l)}),s=()=>{a.value=!1,i("close")},c=()=>{t.closeOnBackdrop&&s()};return(l,f)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"dialog"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 px-4",onClick:c},[e.createElementVNode("div",{class:"relative w-full rounded-lg bg-white shadow-xl sm:max-w-lg md:max-w-2xl",onClick:f[0]||(f[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",et,[e.createElementVNode("h2",tt,[e.renderSlot(l.$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},[...f[1]||(f[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",ot,[e.renderSlot(l.$slots,"default",{},void 0,!0)]),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(l.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:3})]))}}),nt=I(at,[["__scopeId","data-v-37e19754"]]),rt=["accept","multiple","disabled"],st={class:"flex flex-col items-center justify-center gap-4 text-center"},it=["src","alt"],ct={key:1,class:"w-full h-full text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},dt={class:"text-center"},ut={class:"text-base font-medium text-gray-700"},mt={class:"text-primary-700"},pt={class:"flex items-center gap-3 flex-1 min-w-0"},ft={class:"flex-1 min-w-0"},gt={class:"text-sm font-medium text-gray-900 truncate"},vt={class:"text-xs text-gray-500"},yt={key:1,class:"text-xs text-gray-500 mt-2"},bt={key:2,class:"text-sm text-danger-500 mt-2"},ht=e.defineComponent({__name:"FileUpload",props:{modelValue:{default:null},accept:{default:"*"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},illustration:{default:void 0},illustrationAlt:{default:"Subir archivo"},illustrationSize:{default:"md"},mainText:{default:"Suelta aquí un archivo o"},linkText:{default:"selecciónalo desde tu equipo"},helperText:{default:""},maxSize:{default:void 0}},emits:["update:modelValue","change","error"],setup(o,{emit:m}){const t=o,i=m,a=e.ref(null),s=e.ref(!1),c=e.ref(t.modelValue),l=e.ref(""),f=e.computed(()=>({sm:"w-20 h-20",md:"w-32 h-32",lg:"w-48 h-48",xl:"w-64 h-64"})[t.illustrationSize]),n=()=>{var v;(v=a.value)==null||v.click()},d=()=>{t.disabled||n()},u=v=>{t.disabled||(s.value=!0)},w=()=>{s.value=!1},k=v=>{if(l.value="",t.maxSize&&v.size>t.maxSize){const V=(t.maxSize/1048576).toFixed(2);return l.value=`El archivo excede el tamaño máximo de ${V}MB`,i("error",l.value),!1}return!0},E=v=>{var T;const z=(T=v.target.files)==null?void 0:T[0];z&&k(z)&&(c.value=z,i("update:modelValue",z),i("change",z))},$=v=>{var z;s.value=!1;const V=(z=v.dataTransfer)==null?void 0:z.files[0];V&&k(V)&&(c.value=V,i("update:modelValue",V),i("change",V))},B=()=>{c.value=null,l.value="",a.value&&(a.value.value=""),i("update:modelValue",null),i("change",null)},x=v=>{if(v===0)return"0 Bytes";const V=1024,z=["Bytes","KB","MB","GB"],T=Math.floor(Math.log(v)/Math.log(V));return Math.round(v/Math.pow(V,T)*100)/100+" "+z[T]};return(v,V)=>(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:d,onDragover:e.withModifiers(u,["prevent"]),onDragleave:e.withModifiers(w,["prevent"]),onDrop:e.withModifiers($,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:a,type:"file",accept:o.accept,multiple:o.multiple,disabled:o.disabled,class:"hidden",onChange:E},null,40,rt),e.createElementVNode("div",st,[e.createElementVNode("div",{class:e.normalizeClass([f.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,it)):(e.openBlock(),e.createElementBlock("svg",ct,[...V[1]||(V[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",dt,[e.createElementVNode("p",ut,[e.createTextVNode(e.toDisplayString(o.mainText)+" ",1),e.createElementVNode("span",mt,e.toDisplayString(o.linkText),1)])]),c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"w-full max-w-md bg-gray-50 rounded-lg p-4 flex items-center justify-between",onClick:V[0]||(V[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",pt,[V[2]||(V[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",ft,[e.createElementVNode("p",gt,e.toDisplayString(c.value.name),1),e.createElementVNode("p",vt,e.toDisplayString(x(c.value.size)),1)])]),o.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(B,["stop"]),class:"ml-3 text-gray-400 hover:text-danger-500 transition-colors"},[...V[3]||(V[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",yt,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("p",bt,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0)])],34))}}),xt={class:"input-wrapper"},kt=["for"],Ct={key:0,class:"text-danger-600"},wt={class:"relative"},Bt=["id","type","disabled","placeholder","value","required","readonly"],Vt={key:0,class:"absolute right-3 top-1/2 -translate-y-1/2 text-danger-600"},$t={key:1,class:"mt-1 text-sm text-danger-600"},Et={key:2,class:"mt-1 text-sm text-secondary-600"},Nt=e.defineComponent({__name:"Input",props:{modelValue:{default:""},label:{},type:{default:"text"},size:{default:"md"},variant:{default:"default"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},placeholder:{},error:{},helperText:{}},emits:["update:modelValue","blur","focus"],setup(o,{emit:m}){const t=o,i=m,a=e.ref(`input-${Math.random().toString(36).substr(2,9)}`),s=e.computed(()=>"block text-sm font-medium text-secondary-700 mb-1"),c=e.computed(()=>{const d="w-full rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",u={sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-base",lg:"h-12 px-5 text-lg"},w={default:"border border-secondary-300 bg-white focus:border-primary-500 focus:ring-primary-500",filled:"border-0 bg-secondary-100 focus:bg-white focus:ring-primary-500",outlined:"border-2 border-secondary-300 bg-transparent focus:border-primary-500 focus:ring-primary-500"},k=t.error?"border-danger-500 focus:border-danger-500 focus:ring-danger-500 pr-10":"";return`${d} ${u[t.size]} ${w[t.variant]} ${k}`}),l=d=>{const u=d.target;i("update:modelValue",u.value)},f=d=>{i("blur",d)},n=d=>{i("focus",d)};return(d,u)=>(e.openBlock(),e.createElementBlock("div",xt,[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:a.value,class:e.normalizeClass(s.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Ct,"*")):e.createCommentVNode("",!0)],10,kt)):e.createCommentVNode("",!0),e.createElementVNode("div",wt,[e.createElementVNode("input",{id:a.value,class:e.normalizeClass(c.value),type:o.type,disabled:o.disabled,placeholder:o.placeholder,value:o.modelValue,required:o.required,readonly:o.readonly,onInput:l,onBlur:f,onFocus:n},null,42,Bt),o.error?(e.openBlock(),e.createElementBlock("span",Vt,[...u[0]||(u[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)])])):e.createCommentVNode("",!0)]),o.error?(e.openBlock(),e.createElementBlock("p",$t,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Et,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0)]))}}),zt=I(Nt,[["__scopeId","data-v-e3a37613"]]),St=["stroke-width"],Dt={class:"w-full h-full rounded-lg overflow-hidden",style:{"background-color":"#f7f7f7"}},Mt=e.defineComponent({__name:"Loader",props:{type:{default:"circular"},size:{default:"40px"},height:{default:"4px"},color:{default:"primary"},strokeWidth:{default:4},progress:{default:void 0}},setup(o){const m=o,t={primary:"text-primary-700",secondary:"text-secondary-500",success:"text-success-500",warning:"text-warning-500",danger:"text-danger-500",info:"text-info-500"},i={primary:"bg-primary-700",secondary:"bg-secondary-500",success:"bg-success-500",warning:"bg-warning-500",danger:"bg-danger-500",info:"bg-info-500"},a=e.computed(()=>[t[m.color]]),s=e.computed(()=>[i[m.color]]);return(c,l)=>o.type==="circular"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.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,St),l[0]||(l[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",Dt,[e.createElementVNode("div",{class:e.normalizeClass([[s.value,{"animate-linear-loader":o.progress===void 0}],"h-full rounded-lg"]),style:e.normalizeStyle({width:o.progress!==void 0?`${Math.min(Math.max(o.progress,0),100)}%`:"100%"})},null,6)])],4)):e.createCommentVNode("",!0)}}),Tt=I(Mt,[["__scopeId","data-v-f369fb46"]]),It=["disabled","aria-expanded"],Lt=["disabled","onClick"],jt={key:0,class:"flex-shrink-0"},Ft=["innerHTML"],Ot={class:"flex-1 min-w-0 mr-2"},Pt={class:"flex flex-col items-start"},qt=["title"],At=["title"],Yt={key:1,class:"flex-shrink-0"},_t={key:0,class:"text-xs text-secondary-400 font-mono whitespace-nowrap"},Rt={key:1},Wt={key:2,class:"w-4 h-4 ml-2 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ht=e.defineComponent({__name:"Menu",props:{items:{default:()=>[]},triggerText:{default:"Menu"},showChevron:{type:Boolean,default:!0},position:{default:"bottom-start"},align:{default:"start"},offset:{default:()=>({x:0,y:4})},width:{default:"auto"},maxHeight:{default:"400px"},closeOnClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},teleport:{type:Boolean,default:!0},zIndex:{default:50}},emits:["open","close","select"],setup(o,{emit:m}){const t=o,i=m,a=e.ref(!1),s=e.ref(null),c=e.ref(null),l=e.ref({}),f=e.computed(()=>["inline-flex items-center justify-center px-4 py-2 text-sm font-medium","bg-white border border-secondary-300 rounded-md text-secondary-700","hover:bg-secondary-100 hover:text-secondary-900 hover:border-secondary-400","focus:outline-none focus:ring-2 focus:ring-primary-500","disabled:opacity-50 disabled:cursor-not-allowed","transition-all duration-200"].join(" ")),n=e.computed(()=>[...["fixed bg-white rounded-lg shadow-lg border border-secondary-200","flex flex-col","focus:outline-none"],`z-${t.zIndex}`].join(" ")),d=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"),w=e.computed(()=>"py-1 overflow-y-auto flex-1 min-h-0"),k=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"),$=r=>{const g=["w-full flex items-center gap-3 px-4 py-2.5 text-sm text-left","transition-all duration-150 focus:outline-none cursor-pointer","disabled:opacity-50 disabled:cursor-not-allowed"],y=r.variant||"default",j={default:"text-secondary-700 hover:bg-secondary-100 hover:text-secondary-900 focus:bg-secondary-100",danger:"text-danger-600 hover:bg-danger-100 hover:text-danger-700 focus:bg-danger-100",success:"text-success-600 hover:bg-success-100 hover:text-success-700 focus:bg-success-100",warning:"text-warning-600 hover:bg-warning-100 hover:text-warning-700 focus:bg-warning-100"};let N="";return r.color&&(N=r.color,(r.color.includes("white")||r.color.includes("50"))&&(N+=" hover:text-black")),[...g,N||j[y]].join(" ")},B=()=>{t.disabled||(a.value?v():x())},x=()=>{a.value=!0,i("open"),e.nextTick(()=>{h(),document.addEventListener("click",z),document.addEventListener("keydown",T)})},v=()=>{a.value=!1,i("close"),document.removeEventListener("click",z),document.removeEventListener("keydown",T)},V=r=>{r.disabled||(r.action&&r.action(),i("select",r),t.closeOnClick&&!r.children&&v())},z=r=>{const g=r.target;s.value&&!s.value.contains(g)&&c.value&&!c.value.contains(g)&&v()},T=r=>{r.key==="Escape"&&v()},q=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),B())},h=()=>{if(!s.value||!c.value)return;const r=s.value.getBoundingClientRect(),g=c.value.getBoundingClientRect(),y=window.innerWidth,j=window.innerHeight;let N=0,D=0;switch(t.position){case"bottom-start":N=r.bottom+t.offset.y,D=r.left+t.offset.x;break;case"bottom-end":N=r.bottom+t.offset.y,D=r.right-g.width+t.offset.x;break;case"top-start":N=r.top-g.height-t.offset.y,D=r.left+t.offset.x;break;case"top-end":N=r.top-g.height-t.offset.y,D=r.right-g.width+t.offset.x;break;case"right-start":N=r.top+t.offset.y,D=r.right+t.offset.x;break;case"right-end":N=r.bottom-g.height+t.offset.y,D=r.right+t.offset.x;break;case"left-start":N=r.top+t.offset.y,D=r.left-g.width-t.offset.x;break;case"left-end":N=r.bottom-g.height+t.offset.y,D=r.left-g.width-t.offset.x;break}D+g.width>y&&(D=y-g.width-8),D<8&&(D=8),N+g.height>j&&(N=j-g.height-8),N<8&&(N=8),l.value={top:`${N}px`,left:`${D}px`,width:t.width==="auto"?`${Math.max(r.width,240)}px`:t.width,maxHeight:t.maxHeight,minWidth:"240px"}};return e.onMounted(()=>{window.addEventListener("scroll",h,!0),window.addEventListener("resize",h)}),e.onUnmounted(()=>{window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h),document.removeEventListener("click",z),document.removeEventListener("keydown",T)}),e.watch(()=>t.items,()=>{a.value&&e.nextTick(h)},{deep:!0}),(r,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper",{"w-full":o.fullWidth}])},[e.createElementVNode("div",{ref_key:"triggerRef",ref:s},[e.renderSlot(r.$slots,"trigger",{isOpen:a.value,toggle:B},()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(f.value),disabled:o.disabled,onClick:B,onKeydown:q,tabindex:0,role:"button","aria-expanded":a.value,"aria-haspopup":!0},[e.renderSlot(r.$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",a.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...g[1]||(g[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,It)],!0)],512),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:c,class:e.normalizeClass(n.value),style:e.normalizeStyle(l.value),onClick:g[0]||(g[0]=e.withModifiers(()=>{},["stop"]))},[r.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(d.value)},[e.renderSlot(r.$slots,"header",{close:v},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(w.value)},[e.renderSlot(r.$slots,"default",{close:v,isOpen:a.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(y,j)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y.id||j},[y.type==="divider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(k.value)},null,2)):y.type==="header"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(E.value)},e.toDisplayString(y.label),3)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass($(y)),disabled:y.disabled,onClick:N=>V(y)},[y.icon||r.$slots[`icon-${y.id}`]?(e.openBlock(),e.createElementBlock("span",jt,[e.renderSlot(r.$slots,`icon-${y.id}`,{item:y},()=>[typeof y.icon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.icon),{key:0,class:"w-5 h-5"})):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:y.icon,class:"w-5 h-5 inline-block"},null,8,Ft))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ot,[e.renderSlot(r.$slots,`item-${y.id}`,{item:y,close:v},()=>[e.createElementVNode("div",Pt,[e.createElementVNode("span",{class:"truncate w-full",title:y.label},e.toDisplayString(y.label),9,qt),y.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-xs text-secondary-500 truncate w-full",title:y.description},e.toDisplayString(y.description),9,At)):e.createCommentVNode("",!0)])],!0)]),y.suffix||y.shortcut||r.$slots[`suffix-${y.id}`]?(e.openBlock(),e.createElementBlock("span",Yt,[e.renderSlot(r.$slots,`suffix-${y.id}`,{item:y},()=>[y.shortcut?(e.openBlock(),e.createElementBlock("span",_t,e.toDisplayString(y.shortcut),1)):y.suffix?(e.openBlock(),e.createElementBlock("span",Rt,e.toDisplayString(y.suffix),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),y.children&&y.children.length>0?(e.openBlock(),e.createElementBlock("svg",Wt,[...g[2]||(g[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,Lt))],64))),128))],!0)],2),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(u.value)},[e.renderSlot(r.$slots,"footer",{close:v},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.value&&o.overlay?(e.openBlock(),e.createElementBlock("div",{key:1,class:"fixed inset-0 bg-black/20 z-40",onClick:v})):e.createCommentVNode("",!0)]))],2))}}),Kt=I(Ht,[["__scopeId","data-v-61176297"]]),Ut=["for"],Jt={key:0,class:"text-danger-600"},Gt=["id","disabled","aria-expanded"],Qt={class:"flex-1 text-left truncate"},Zt={key:0,class:"p-2 border-b border-secondary-200"},Xt=["placeholder"],eo={class:"max-h-64 overflow-y-auto"},to={key:0,class:"px-4 py-3 text-sm text-secondary-500 text-center"},oo=["onClick"],lo={class:"flex items-center justify-between w-full"},ao={class:"truncate"},no={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"},ro={key:0,class:"border-t border-secondary-200 my-1"},so=["onClick"],io=["innerHTML"],co={key:1,class:"mt-1 text-sm text-danger-600"},uo={key:2,class:"mt-1 text-sm text-secondary-600"},mo=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"},bordered:{type:Boolean,default:!0}},emits:["update:modelValue","change","action"],setup(o,{emit:m}){const t=o,i=m,a=e.ref(!1),s=e.ref(""),c=e.ref(null),l=e.computed(()=>`select-${Math.random().toString(36).substr(2,9)}`),f=e.computed(()=>t.options.find(h=>h.value===t.modelValue)||null),n=e.computed(()=>{if(!t.searchable||!s.value)return t.options;const h=s.value.toLowerCase();return t.options.filter(r=>r.label.toLowerCase().includes(h))}),d=e.computed(()=>"block text-sm font-semibold text-secondary-700 mb-1"),u=e.computed(()=>t.bordered?"border border-neutral-300 rounded-md":"rounded-md"),w=e.computed(()=>{const h="w-full rounded-md flex items-center justify-between gap-2 transition-colors focus:outline-none focus:ring-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed",r={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg"},g={default:"bg-white",outline:"bg-transparent",filled:"bg-secondary-100"},y=t.error?"border-danger-600 focus:ring-danger-500":"";return[h,r[t.size],g[t.variant],y].join(" ")}),k=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`),E=h=>{const r="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",g=B(h)?"bg-primary-50":"";return[r,g].join(" ")},$=h=>{const r="w-full px-4 py-2 text-left text-sm font-semibold transition-colors focus:outline-none flex items-center gap-3";return h.variant==="danger"?`${r} text-danger-600 hover:bg-danger-50 focus:bg-danger-50`:`${r} text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50`},B=h=>h.value===t.modelValue,x=()=>{t.disabled||(a.value=!a.value,a.value&&t.searchable&&e.nextTick(()=>{var h;(h=c.value)==null||h.focus()}))},v=()=>{a.value=!1,s.value=""},V=h=>{h.disabled||(i("update:modelValue",h.value),i("change",h),v())},z=h=>{h.action&&h.action(),i("action",h),v()},T=h=>{const r=h.relatedTarget;r&&r.closest(".select-wrapper")||setTimeout(()=>{v()},200)},q=h=>{h.key==="Escape"?v():(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),x())};return e.watch(a,h=>{h&&(s.value="")}),(h,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-wrapper",{"w-full":o.fullWidth}])},[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:l.value,class:e.normalizeClass(d.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Jt,"*")):e.createCommentVNode("",!0)],10,Ut)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative",u.value])},[e.createElementVNode("button",{id:l.value,type:"button",class:e.normalizeClass(w.value),disabled:o.disabled,"aria-expanded":a.value,"aria-haspopup":!0,onClick:x,onBlur:T,onKeydown:q},[e.createElementVNode("span",Qt,e.toDisplayString(f.value?f.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",a.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[...r[3]||(r[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,Gt),a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(k.value),onClick:r[2]||(r[2]=e.withModifiers(()=>{},["stop"]))},[o.searchable?(e.openBlock(),e.createElementBlock("div",Zt,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:c,"onUpdate:modelValue":r[0]||(r[0]=g=>s.value=g),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:r[1]||(r[1]=e.withModifiers(()=>{},["stop"]))},null,40,Xt),[[e.vModelText,s.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",eo,[n.value.length===0?(e.openBlock(),e.createElementBlock("div",to,e.toDisplayString(o.emptyText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,type:"button",class:e.normalizeClass(E(g)),onClick:y=>V(g)},[e.createElementVNode("div",lo,[e.createElementVNode("span",ao,e.toDisplayString(g.label),1),B(g)?(e.openBlock(),e.createElementBlock("svg",no,[...r[4]||(r[4]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)])],10,oo))),128)),o.actionItems.length>0?(e.openBlock(),e.createElementBlock("div",ro)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actionItems,g=>(e.openBlock(),e.createElementBlock("button",{key:g.id,type:"button",class:e.normalizeClass($(g)),onClick:y=>z(g)},[g.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:g.icon},null,8,io)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(g.label),1)],10,so))),128))],64))])],2)):e.createCommentVNode("",!0)],2),o.error?(e.openBlock(),e.createElementBlock("p",co,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",uo,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:v,class:"fixed inset-0 z-40"})):e.createCommentVNode("",!0)],2))}}),po=I(mo,[["__scopeId","data-v-edef6efe"]]),fo=e.defineComponent({__name:"Sidebar",props:{modelValue:{type:Boolean,default:!1},position:{default:"left"},width:{default:"16rem"},overlay:{type:Boolean,default:!0},overlayTop:{default:"0"},closable:{type:Boolean,default:!0},persistent:{type:Boolean,default:!1},backgroundColor:{default:"white"},shadow:{type:Boolean,default:!0},padding:{default:"md"}},emits:["update:modelValue","close","open"],setup(o,{emit:m}){const t=o,i=m,a=e.computed({get:()=>t.modelValue,set:k=>i("update:modelValue",k)}),s=()=>{t.persistent||(a.value=!1,i("close"))},c=e.computed(()=>t.position==="left"?"slide-right":"slide-left"),l=e.computed(()=>{const k="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[k,E,$].filter(Boolean).join(" ")}),f=e.computed(()=>({width:"100%",maxWidth:t.width,backgroundColor:t.backgroundColor,top:t.overlayTop,height:t.overlayTop!=="0"?`calc(100vh - ${t.overlayTop})`:"100vh"})),n={none:"",sm:"p-2",md:"p-4",lg:"p-6"},d=e.computed(()=>`flex items-center justify-between border-b border-gray-200 ${n[t.padding]}`),u=e.computed(()=>`flex-1 overflow-y-auto ${n[t.padding]}`),w=e.computed(()=>`border-t border-gray-200 ${n[t.padding]}`);return(k,E)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.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:c.value},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(l.value),style:e.normalizeStyle(f.value)},[k.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(d.value)},[e.renderSlot(k.$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(k.$slots,"default",{},void 0,!0)],2),k.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(w.value)},[e.renderSlot(k.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),go=I(fo,[["__scopeId","data-v-b208234c"]]),vo={class:"w-full space-y-4"},yo={class:"flex flex-col gap-3 md:hidden"},bo={class:"text-[11px] uppercase tracking-wide text-gray-400"},ho={class:"text-sm text-gray-700"},xo={key:0,class:"rounded-lg border border-dashed border-gray-200 bg-white p-4 text-gray-400 text-center"},ko={class:"hidden md:block w-full overflow-x-auto"},Co={class:"w-full border-collapse"},wo={class:"w-full"},Bo=["onClick"],Vo={class:"flex items-center gap-2"},$o={key:0,class:"text-xs text-gray-400"},Eo={key:0},No={key:1},zo={class:"w-full"},So={key:0,class:"flex items-center justify-center py-12 text-gray-400"},Do={key:0,class:"w-full px-6 py-4 bg-white"},Mo=e.defineComponent({__name:"Table",props:{columns:{},data:{},headerClass:{default:void 0},headerCellClass:{default:void 0},cellClass:{default:void 0},rowClass:{default:void 0}},setup(o){const m=o,t=e.ref(null),i=e.ref("asc"),a=l=>{t.value===l?i.value=i.value==="asc"?"desc":"asc":(t.value=l,i.value="asc")},s=e.computed(()=>{if(!t.value)return m.data;const l=[...m.data];return l.sort((f,n)=>{const d=f[t.value],u=n[t.value];return typeof d=="string"&&typeof u=="string"?i.value==="asc"?d.localeCompare(u):u.localeCompare(d):typeof d=="number"&&typeof u=="number"?i.value==="asc"?d-u:u-d:0}),l}),c=e.computed(()=>m.columns.filter(l=>!l.hideOnMobile));return(l,f)=>(e.openBlock(),e.createElementBlock("div",vo,[e.createElementVNode("div",yo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(n,d)=>(e.openBlock(),e.createElementBlock("div",{key:`card-${d}`,class:"rounded-lg border border-gray-200 bg-white p-4 shadow-sm"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,u=>(e.openBlock(),e.createElementBlock("div",{key:`card-${d}-${u.key}`,class:"flex flex-col gap-1 py-1"},[e.createElementVNode("span",bo,e.toDisplayString(u.label),1),e.createElementVNode("span",ho,[e.renderSlot(l.$slots,`cell-${u.key}`,{value:n[u.key],row:n},()=>[e.createTextVNode(e.toDisplayString(n[u.key]),1)],!0)])]))),128))]))),128)),s.value.length===0?(e.openBlock(),e.createElementBlock("div",xo,[e.renderSlot(l.$slots,"empty",{},()=>[f[0]||(f[0]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ko,[e.createElementVNode("table",Co,[e.createElementVNode("thead",wo,[e.createElementVNode("tr",{class:e.normalizeClass(["w-full",m.headerClass||"bg-neutral-50 border-b border-gray-100"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,n=>(e.openBlock(),e.createElementBlock("th",{key:n.key,style:e.normalizeStyle(n.width?{width:n.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",n.sortable?"cursor-pointer hover:text-primary-600 select-none transition-colors":"",m.headerCellClass]),onClick:d=>n.sortable&&a(n.key)},[e.createElementVNode("div",Vo,[e.createElementVNode("span",null,e.toDisplayString(n.label),1),n.sortable?(e.openBlock(),e.createElementBlock("span",$o,[t.value!==n.key?(e.openBlock(),e.createElementBlock("span",Eo,"⇅")):(e.openBlock(),e.createElementBlock("span",No,e.toDisplayString(i.value==="asc"?"↑":"↓"),1))])):e.createCommentVNode("",!0)])],14,Bo))),128))],2)]),e.createElementVNode("tbody",zo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(n,d)=>(e.openBlock(),e.createElementBlock("tr",{key:d,class:e.normalizeClass(["w-full border-b border-gray-200 hover:bg-gray-50 transition-colors",m.rowClass])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,u=>(e.openBlock(),e.createElementBlock("td",{key:`${d}-${u.key}`,class:e.normalizeClass(["px-4 py-3 text-xs text-gray-600 border-l border-gray-100 first:border-l-0",m.cellClass])},[e.renderSlot(l.$slots,`cell-${u.key}`,{value:n[u.key],row:n},()=>[e.createTextVNode(e.toDisplayString(n[u.key]),1)],!0)],2))),128))],2))),128))])]),s.value.length===0?(e.openBlock(),e.createElementBlock("div",So,[e.renderSlot(l.$slots,"empty",{},()=>[f[1]||(f[1]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",Do,[e.renderSlot(l.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]))}}),To=I(Mo,[["__scopeId","data-v-8e7ce66d"]]),Io={class:"tabs-wrapper"},Lo={class:"tabs-container",role:"tablist"},jo=["aria-selected","onClick"],Fo="relative w-full sm:w-auto text-left sm:text-center px-4 sm:px-6 py-3 text-base font-semibold tracking-wide transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500 border-b-2",Oo="text-primary-600 border-primary-600",Po="hover:text-secondary-700 border-gray-100",qo=e.defineComponent({__name:"Tabs",props:{modelValue:{},tabs:{},headerClass:{},contentClass:{}},emits:["update:modelValue"],setup(o,{emit:m}){const t=o,i=m,a=f=>t.modelValue===f,s=f=>{a(f)||i("update:modelValue",f)},c=e.computed(()=>t.modelValue),l=e.computed(()=>t.tabs.find(f=>f.value===c.value));return(f,n)=>(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("div",{class:e.normalizeClass(["tabs-header",o.headerClass])},[e.createElementVNode("div",Lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,d=>(e.openBlock(),e.createElementBlock("button",{key:d.value,type:"button",class:e.normalizeClass([Fo,a(d.value)?Oo:Po]),"aria-selected":a(d.value),role:"tab",onClick:u=>s(d.value)},e.toDisplayString(d.label),11,jo))),128))])],2),e.createElementVNode("div",{class:e.normalizeClass(["tabs-content",o.contentClass]),role:"tabpanel"},[e.renderSlot(f.$slots,c.value,{active:c.value,tab:l.value},void 0,!0)],2)]))}}),Ao=I(qo,[["__scopeId","data-v-8cf75dcf"]]),Yo="font-sans",_o=e.defineComponent({__name:"Text",props:{variant:{default:"body1"},as:{},color:{default:"default"},align:{default:"left"},uppercase:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},weight:{}},setup(o){const m={h1:"text-[40px] leading-[57px] tracking-[0px] font-extrabold",h2:"text-[40px] leading-[57px] tracking-[0px] font-bold",h3:"text-[28px] leading-[39px] tracking-[0px] font-extrabold",h4:"text-[21px] leading-[29px] tracking-[0px] font-extrabold",h5:"text-[16px] leading-[22px] tracking-[0px] font-extrabold",h6:"text-[13px] leading-[18px] tracking-[0px] font-extrabold",subtitle1:"text-[16px] leading-[24px] tracking-[0.15px] font-medium",subtitle2:"text-[14px] leading-[21px] tracking-[0.1px] font-medium",subtitle3:"text-[12px] leading-[18px] tracking-[0.1px] font-medium",subtitle4:"text-[10px] leading-[15px] tracking-[0.1px] font-medium",body1:"text-[16px] leading-[24px] tracking-[0.5px] font-light",body2:"text-[14px] leading-[21px] tracking-[0.25px] font-light",body3:"text-[12px] leading-[18px] tracking-[0.25px] font-light",body4:"text-[10px] leading-[15px] tracking-[0.25px] font-light",button1:"text-[14px] leading-[24px] tracking-[1.25px] font-bold",button2:"text-[14px] leading-[20px] tracking-[1.25px] font-bold",button3:"text-[12px] leading-[18px] tracking-[1.25px] font-bold",caption:"text-[12px] leading-[18px] tracking-[0.4px] font-normal",overline:"text-[10px] leading-[15px] tracking-[1.5px] font-medium"},t={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",body1:"p",body2:"p",body3:"p",body4:"p",button1:"span",button2:"span",button3:"span",caption:"span",overline:"span"},i={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},a={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"},c=o,l=e.computed(()=>c.variant),f=e.computed(()=>c.color),n=e.computed(()=>c.align),d=e.computed(()=>c.as||t[l.value]||"span"),u=e.computed(()=>c.weight?s[c.weight]:"");return(w,k)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.value),{class:e.normalizeClass([Yo,m[l.value],a[f.value],i[n.value],u.value,{uppercase:o.uppercase||l.value==="overline",truncate:o.truncate}])},{default:e.withCtx(()=>[e.renderSlot(w.$slots,"default")]),_:3},8,["class"]))}}),Ro={class:"w-full flex items-center justify-between gap-3 py-2"},Wo={key:0,class:"text-xs text-secondary-600"},Ho={key:0},Ko={class:"ml-auto inline-flex items-center gap-1",role:"navigation","aria-label":"Pagination"},Uo=["disabled"],Jo={key:0,class:"h-8 min-w-8 px-2 inline-flex items-center justify-center text-secondary-500"},Go=["aria-label","onClick"],Qo=["disabled"],Zo=e.defineComponent({__name:"Pagination",props:{modelValue:{default:1},totalItems:{default:0},pageSize:{default:10},maxPages:{default:5},previousText:{default:"Anterior"},nextText:{default:"Siguiente"},showSummary:{type:Boolean,default:!0},itemLabel:{default:""}},emits:["update:modelValue","change"],setup(o,{emit:m}){const t=o,i=m,a=e.computed(()=>{const u=Math.ceil(t.totalItems/t.pageSize);return u>0?u:1}),s=e.computed(()=>{const u=Number(t.modelValue||1);return u<1?1:u>a.value?a.value:u}),c=e.computed(()=>t.totalItems===0?0:(s.value-1)*t.pageSize+1),l=e.computed(()=>Math.min(s.value*t.pageSize,t.totalItems)),f=e.computed(()=>`Mostrando ${c.value} a ${l.value} de ${t.totalItems}`),n=e.computed(()=>{const u=a.value,w=Math.max(3,t.maxPages),k=s.value;if(u<=w)return Array.from({length:u},(v,V)=>V+1);const E=Math.floor(w/2);let $=Math.max(1,k-E),B=Math.min(u,$+w-1);$=Math.max(1,Math.min($,B-w+1));const x=[];$>1&&(x.push(1),$>2&&x.push("…"));for(let v=$;v<=B;v++)x.push(v);return B<u&&(B<u-1&&x.push("…"),x.push(u)),x});function d(u){const w=Math.max(1,Math.min(u,a.value));w!==s.value&&(i("update:modelValue",w),i("change",w))}return(u,w)=>(e.openBlock(),e.createElementBlock("div",Ro,[o.showSummary?(e.openBlock(),e.createElementBlock("div",Wo,[e.renderSlot(u.$slots,"summary",{start:c.value,end:l.value,total:o.totalItems},()=>[e.createTextVNode(e.toDisplayString(f.value),1),o.itemLabel?(e.openBlock(),e.createElementBlock("span",Ho,e.toDisplayString(o.itemLabel),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Ko,[e.createElementVNode("button",{type:"button",class:"h-8 px-3 rounded-full text-sm font-semibold text-secondary-700 hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed",disabled:s.value<=1,onClick:w[0]||(w[0]=k=>d(s.value-1)),"aria-label":"Anterior"},e.toDisplayString(o.previousText),9,Uo),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(k,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`page-${E}-${k}`},[k==="…"?(e.openBlock(),e.createElementBlock("span",Jo," … ")):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","aria-label":`Página ${k}`,class:e.normalizeClass(["h-8 min-w-8 px-3 rounded-full text-sm font-semibold transition-colors",k===s.value?"bg-primary-500 text-white":"text-secondary-700 hover:bg-secondary-100"]),onClick:$=>d(k)},e.toDisplayString(k),11,Go))],64))),128)),e.createElementVNode("button",{type:"button",class:"h-8 px-3 rounded-full text-sm font-semibold text-secondary-700 hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed",disabled:s.value>=a.value,onClick:w[1]||(w[1]=k=>d(s.value+1)),"aria-label":"Siguiente"},e.toDisplayString(o.nextText),9,Qo)])]))}}),Xo=I(Zo,[["__scopeId","data-v-87417cc4"]]),el=["data-node-id"],tl={class:"shrink-0 size-12 rounded-full bg-[var(--neutrales/fondo-general-claro,#f7f7f7)] grid place-items-center"},ol={key:1,class:"flex justify-end gap-1 px-6 pb-6 pt-4"},ll=e.defineComponent({__name:"Alert",props:{variant:{},title:{},description:{},closable:{type:Boolean},multiline:{type:Boolean},actions:{type:Boolean},nodeId:{},stackOn:{}},emits:["close","accept","cancel"],setup(o,{emit:m}){const t=m,i=o,a=e.computed(()=>i.variant??"info"),s=e.computed(()=>i.multiline??!1),c=e.computed(()=>i.actions??!1),l=e.computed(()=>i.nodeId??void 0),f=()=>t("close"),n=e.computed(()=>{if(i.title)return i.title;switch(a.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"}}),d=e.computed(()=>i.description??""),u=e.computed(()=>{switch(a.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]"}}}),w=e.computed(()=>"bg-[var(--color-primario/700,#269ea4)]"),k=e.computed(()=>{const B="flex w-full items-start gap-4 flex-col";if(!i.stackOn)return`${B} sm:flex-row sm:items-center`;const x=i.stackOn,v=`${x}:flex-row ${x}:items-center`;return`${B} ${v}`}),E=e.computed(()=>{if(!i.stackOn)return"flex-col sm:flex-row items-start sm:items-center";const B=i.stackOn;return`flex-col ${B}:flex-row items-start ${B}:items-center`}),$=e.computed(()=>i.stackOn?`self-start ${i.stackOn}:self-auto`:"self-start sm:self-auto");return(B,x)=>(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":l.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:f},[...x[2]||(x[2]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["p-6",{"pb-0":c.value}])},[e.createElementVNode("div",{class:e.normalizeClass(k.value)},[e.createElementVNode("div",tl,[a.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"},[...x[3]||(x[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)):a.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"},[...x[4]||(x[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)):a.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"},[...x[5]||(x[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"},[...x[6]||(x[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(n.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(B.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(d.value),1)])],2)],2)],2)],2),c.value?(e.openBlock(),e.createElementBlock("div",ol,[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:x[0]||(x[0]=v=>B.$emit("cancel"))},[e.renderSlot(B.$slots,"cancel",{},()=>[x[7]||(x[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",w.value]),onClick:x[1]||(x[1]=v=>B.$emit("accept"))},[e.renderSlot(B.$slots,"accept",{},()=>[x[8]||(x[8]=e.createTextVNode("Aceptar",-1))])],2)])):e.createCommentVNode("",!0)],10,el))}});exports.Alert=ll;exports.AppBar=xe;exports.Button=we;exports.Calendar=Je;exports.Card=Xe;exports.Dialog=nt;exports.FileUpload=ht;exports.Icon=P;exports.Input=zt;exports.Loader=Tt;exports.Menu=Kt;exports.Pagination=Xo;exports.Select=po;exports.Sidebar=go;exports.Table=To;exports.Tabs=Ao;exports.Text=_o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),me=require("@iconify/vue"),pe={class:"flex items-center gap-2 sm:gap-3 shrink-0"},fe={key:1,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},ve={class:"flex flex-1 justify-center items-center min-w-0"},ge={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins truncate"},ye={class:"flex items-center gap-2 sm:gap-3 shrink-0"},be={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},he=e.defineComponent({__name:"AppBar",props:{title:{default:""},titlePosition:{default:"left"},showMenuButton:{type:Boolean,default:!0},variant:{default:"default"},sticky:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},height:{default:"md"}},emits:["toggle-menu"],setup(o,{emit:m}){const t=o,c=m,a=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"},l={sm:"h-12",md:"h-14",lg:"h-16"},f=t.sticky?"sticky top-0":"",n=t.shadow?"shadow-md":"";return[s,i[t.variant],l[t.height],f,n].join(" ")});return(s,i)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(a.value)},[e.createElementVNode("div",pe,[o.showMenuButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:i[0]||(i[0]=l=>c("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",fe,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"left",{},void 0,!0)]),e.createElementVNode("div",ve,[o.title&&o.titlePosition==="center"?(e.openBlock(),e.createElementBlock("div",ge,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",ye,[o.title&&o.titlePosition==="right"?(e.openBlock(),e.createElementBlock("div",be,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(s.$slots,"right",{},void 0,!0)])],2))}}),I=(o,m)=>{const t=o.__vccOpts||o;for(const[c,a]of m)t[c]=a;return t},xe=I(he,[["__scopeId","data-v-c5861315"]]),ke=["type","disabled","aria-label"],Ce={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]"},we=e.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},radius:{default:"full"},type:{default:"button"},disabled:{type:Boolean,default:!1},badge:{default:0},ariaLabel:{default:""},textColor:{default:void 0},textColorHover:{default:void 0}},emits:["click"],setup(o,{emit:m}){const t=o,c=m,a=e.computed(()=>t.variant==="icon"),s=e.computed(()=>t.badge>99?"99+":t.badge.toString()),i=e.computed(()=>{const f="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",n={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 hover:text-secondary-800 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"},d={sm:a.value?"p-1.5":"h-8 px-3 text-sm",md:a.value?"p-2":"h-10 px-4 text-base",lg:a.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"},w=t.textColor?t.textColor:"",x=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`${f} ${n[t.variant]} ${d[t.size]} ${u[t.radius]} ${w} ${x.value}`}),l=f=>{t.disabled||c("click",f)};return(f,n)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(i.value),type:o.type,disabled:o.disabled,onClick:l,"aria-label":o.ariaLabel},[e.renderSlot(f.$slots,"default"),a.value&&o.badge&&o.badge>0?(e.openBlock(),e.createElementBlock("span",Ce,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0)],10,ke))}}),Be=e.defineComponent({__name:"Icon",props:{name:{},size:{default:"md"},color:{default:"currentColor"},variant:{default:"filled"},rotate:{default:0},spin:{type:Boolean,default:!1},ariaLabel:{}},setup(o){const m=o,t={xs:"16px",sm:"18px",md:"20px",lg:"24px",xl:"30px","2xl":"36px"},c=(l,f)=>{const n=l.replace(/_/g,"-");switch(f){case"filled":return`material-symbols:${n}`;case"outlined":return`ic:outline-${n}`;case"rounded":return`ic:round-${n}`;case"sharp":return`ic:sharp-${n}`;case"two-tone":return`ic:twotone-${n}`;default:return`material-symbols:${n}`}},a=e.computed(()=>c(m.name,m.variant)),s=e.computed(()=>{const l=["inline-flex items-center justify-center select-none","transition-transform duration-200"];return m.color&&(m.color.startsWith("text-")||m.color.startsWith("fill-"))&&l.push(m.color),m.spin&&l.push("animate-spin"),l.join(" ")}),i=e.computed(()=>{const l={};if(t[m.size]?(l.fontSize=t[m.size],l.width=t[m.size],l.height=t[m.size]):(l.fontSize=m.size,l.width=m.size,l.height=m.size),m.color&&!m.color.startsWith("text-")&&!m.color.startsWith("fill-")&&(l.color=m.color),m.rotate!==0){const f=`rotate(${m.rotate}deg)`;l.transform=f}return l});return(l,f)=>(e.openBlock(),e.createBlock(e.unref(me.Icon),{icon:a.value,class:e.normalizeClass(s.value),style:e.normalizeStyle(i.value),"aria-label":o.ariaLabel,role:o.ariaLabel?"img":void 0},null,8,["icon","class","style","aria-label","role"]))}}),P=I(Be,[["__scopeId","data-v-5f982e5c"]]),Ve={key:0,class:"relative"},$e=["for"],Ee={key:0,class:"text-danger-600"},Ne=["id","disabled","placeholder","value","required"],ze=["disabled"],Se={key:1,class:"space-y-2"},De={key:0,class:"text-danger-600"},Me={class:"grid grid-cols-1 md:grid-cols-2 gap-2"},Te=["disabled","placeholder","value","required"],Ie=["disabled"],Le=["disabled","placeholder","value","required"],je=["disabled"],Fe={key:2,class:"mt-1 text-sm text-danger-600"},Oe={key:3,class:"mt-1 text-sm text-secondary-600"},Pe={class:"flex items-center justify-between mb-4"},qe={class:"flex items-center space-x-2"},Ae=["value"],Ye=["value"],_e={class:"grid grid-cols-7 gap-1 mb-2"},Re={class:"grid grid-cols-7 gap-1"},We=["disabled","onClick"],He={class:"flex justify-end space-x-2 mt-4 pt-4 border-t border-secondary-100"},Ke=["disabled"],Ue=e.defineComponent({__name:"Calendar",props:{modelValue:{},mode:{default:"single"},label:{},showLabel:{type:Boolean,default:!0},placeholder:{},startPlaceholder:{},endPlaceholder:{},size:{default:"md"},variant:{default:"default"},color:{default:"primary"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{},helperText:{},iconName:{default:"calendar_month"},startIconName:{default:"calendar_month"},endIconName:{default:"calendar_month"},minDate:{},maxDate:{},disabledDates:{},dateFormat:{default:"DD/MM/YYYY"},bordered:{type:Boolean,default:!0}},emits:["update:modelValue","date-select","range-select"],setup(o,{emit:m}){const t=o,c=m,a=e.ref(!1),s=e.ref(null),i=e.ref(new Date().getMonth()),l=e.ref(new Date().getFullYear()),f=e.ref(`calendar-${Math.random().toString(36).substr(2,9)}`),n=e.ref(null),d=e.ref(null),u=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],w=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],x=e.computed(()=>({sm:"xs",md:"sm",lg:"md"})[t.size]||"sm"),E=e.computed(()=>{const p=new Date().getFullYear(),y=[];for(let C=p-100;C<=p+10;C++)y.push(C);return y}),$=e.computed(()=>"ds-label"),B=e.computed(()=>t.bordered?"border border-neutral-300":""),k=e.computed(()=>{const p="w-full rounded-md transition-colors focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",y={sm:"px-3 py-1.5 pr-10 text-sm",md:"px-4 py-2 pr-10 text-base",lg:"px-5 py-3 pr-12 text-lg"},C={primary:"focus:ring-primary-500",secondary:"focus:ring-secondary-500"},S={default:"bg-white",filled:"bg-secondary-100",outlined:"bg-transparent"},L=t.error?"border-danger-600 focus:ring-danger-500":"";return`${p} ${y[t.size]} ${S[t.variant]} ${C[t.color]} ${L}`}),g=e.computed(()=>`transition-colors text-[#565656] hover:text-[#565656] opacity-80 hover:opacity-100 ${t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"}`),V=e.computed(()=>"min-w-80 max-w-sm"),z=e.computed(()=>`p-2 rounded-md transition-colors ${{primary:"text-primary-600 hover:text-primary-700 hover:bg-primary-50",secondary:"text-secondary-600 hover:text-secondary-700 hover:bg-secondary-50"}[t.color]}`),T=e.computed(()=>`px-2 py-1 text-sm border border-secondary-300 rounded-md focus:outline-none focus:ring-1 ${{primary:"focus:border-primary-500 focus:ring-primary-500",secondary:"focus:border-secondary-500 focus:ring-secondary-500"}[t.color]}`),q=e.computed(()=>`px-3 py-1.5 text-sm text-white rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-offset-1 disabled:opacity-50 disabled:cursor-not-allowed ${{primary:"bg-primary-600 hover:bg-primary-700 focus:ring-primary-500",secondary:"bg-secondary-600 hover:bg-secondary-700 focus:ring-secondary-500"}[t.color]}`),h=e.computed(()=>`px-3 py-1.5 text-sm border border-secondary-300 rounded-md transition-colors focus:outline-none ${{primary:"text-primary-600 hover:text-primary-700 hover:bg-primary-50",secondary:"text-secondary-600 hover:text-secondary-700 hover:bg-secondary-50"}[t.color]}`),r=e.computed(()=>t.mode==="single"&&t.modelValue&&t.modelValue instanceof Date?D(t.modelValue):""),v=e.computed(()=>t.mode==="range"&&t.modelValue&&typeof t.modelValue=="object"&&"start"in t.modelValue&&t.modelValue.start?D(t.modelValue.start):""),b=e.computed(()=>t.mode==="range"&&t.modelValue&&typeof t.modelValue=="object"&&"end"in t.modelValue&&t.modelValue.end?D(t.modelValue.end):""),j=e.computed(()=>t.mode==="single"?n.value!==null:n.value!==null&&d.value!==null&&d.value>=n.value);e.computed(()=>t.mode==="range"&&n.value&&d.value?d.value<n.value:!1);const N=e.computed(()=>{const p=new Date(l.value,i.value,1),y=new Date(l.value,i.value+1,0),C=p.getDay(),S=y.getDate(),L=[],F=new Date(l.value,i.value-1,0);for(let M=C-1;M>=0;M--){const O=new Date(l.value,i.value-1,F.getDate()-M);L.push({day:O.getDate(),date:O,isCurrentMonth:!1,disabled:!1,key:`prev-${O.getDate()}`})}for(let M=1;M<=S;M++){const O=new Date(l.value,i.value,M);L.push({day:M,date:O,isCurrentMonth:!0,disabled:!1,key:`current-${M}`})}const ue=42-L.length;for(let M=1;M<=ue;M++){const O=new Date(l.value,i.value+1,M);L.push({day:M,date:O,isCurrentMonth:!1,disabled:!1,key:`next-${M}`})}return L}),D=p=>{const y=p.getDate().toString().padStart(2,"0"),C=(p.getMonth()+1).toString().padStart(2,"0"),S=p.getFullYear();switch(t.dateFormat){case"MM/DD/YYYY":return`${C}/${y}/${S}`;case"YYYY-MM-DD":return`${S}-${C}-${y}`;case"DD/MM/YYYY":default:return`${y}/${C}/${S}`}},K=p=>{var C;const y=new Date(p.getFullYear(),p.getMonth(),p.getDate());if(t.minDate){const S=new Date(t.minDate.getFullYear(),t.minDate.getMonth(),t.minDate.getDate());if(y<S)return!0}if(t.maxDate){const S=new Date(t.maxDate.getFullYear(),t.maxDate.getMonth(),t.maxDate.getDate());if(y>S)return!0}return!!((C=t.disabledDates)!=null&&C.some(S=>S.toDateString()===p.toDateString()))},ee=p=>{const y="w-8 h-8 text-sm rounded-md transition-colors focus:outline-none";if(p.disabled||K(p.date))return`${y} text-secondary-400 cursor-not-allowed`;const C=te(p.date),S=oe(p.date),L=le(p.date),F={primary:{selected:"bg-primary-600 text-white",inRange:"bg-primary-100 text-primary-900",today:"bg-primary-50 text-primary-700 border border-primary-300",default:"text-secondary-700 hover:bg-primary-50 hover:text-primary-700",otherMonth:"text-secondary-400 hover:bg-primary-50 hover:text-primary-600"},secondary:{selected:"bg-secondary-600 text-white",inRange:"bg-secondary-100 text-secondary-900",today:"bg-secondary-50 text-secondary-700 border border-secondary-300",default:"text-secondary-700 hover:bg-secondary-50 hover:text-secondary-700",otherMonth:"text-secondary-400 hover:bg-secondary-50 hover:text-secondary-600"}};return C?`${y} ${F[t.color].selected}`:S?`${y} ${F[t.color].inRange}`:L?`${y} ${F[t.color].today}`:p.isCurrentMonth?`${y} ${F[t.color].default}`:`${y} ${F[t.color].otherMonth}`},te=p=>t.mode==="single"?n.value?A(p,n.value):!1:!!(n.value&&A(p,n.value))||!!(d.value&&A(p,d.value)),oe=p=>{if(t.mode!=="range"||!n.value||!d.value)return!1;const y=n.value,C=d.value;return p>y&&p<C},le=p=>A(p,new Date),A=(p,y)=>p.toDateString()===y.toDateString(),ae=()=>{t.disabled||a.value||Y()},ne=()=>{t.disabled||a.value||Y()},re=()=>{t.disabled||Q()},U=p=>{t.disabled||(_(p),a.value||Y())},J=p=>{t.disabled||(_(p),a.value||Y())},G=p=>{t.disabled||(_(p),Q())},_=p=>{s.value=p},Q=()=>{t.disabled||(a.value=!a.value,a.value&&W())},Y=()=>{t.disabled||(a.value=!0,W())},R=()=>{a.value=!1,s.value=null},W=()=>{t.mode==="single"?(n.value=t.modelValue instanceof Date?t.modelValue:null,d.value=null):t.modelValue&&typeof t.modelValue=="object"&&"start"in t.modelValue?(n.value=t.modelValue.start,d.value=t.modelValue.end):(n.value=null,d.value=null)},se=p=>{t.mode==="single"?(n.value=p,d.value=null):s.value==="start"||!n.value?(n.value=p,d.value=null,s.value="end"):(s.value==="end"||!d.value)&&(p<n.value?(d.value=n.value,n.value=p):d.value=p,s.value=null)},ie=()=>{if(t.mode==="single")c("update:modelValue",n.value),n.value&&c("date-select",n.value);else{const p={start:n.value,end:d.value};c("update:modelValue",p),c("range-select",p)}R()},ce=()=>{i.value===0?(i.value=11,l.value--):i.value--},de=()=>{i.value===11?(i.value=0,l.value++):i.value++},Z=()=>{},H=e.ref(),X=p=>{H.value&&!H.value.contains(p.target)&&R()};return e.onMounted(()=>{document.addEventListener("click",X)}),e.onUnmounted(()=>{document.removeEventListener("click",X)}),e.watch(()=>t.modelValue,p=>{a.value||W()},{deep:!0}),(p,y)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"calendarWrapperRef",ref:H,class:"calendar-wrapper"},[o.mode==="single"?(e.openBlock(),e.createElementBlock("div",Ve,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,for:f.value,class:e.normalizeClass($.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Ee,"*")):e.createCommentVNode("",!0)],10,$e)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",B.value])},[e.createElementVNode("input",{id:f.value,class:e.normalizeClass(k.value),type:"text",disabled:o.disabled,placeholder:o.placeholder||"Seleccionar fecha",value:r.value,required:o.required,readonly:!0,onClick:ae,onFocus:ne},null,42,Ne),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",g.value]),onClick:e.withModifiers(re,["stop"]),disabled:o.disabled},[e.createVNode(P,{name:o.iconName,size:x.value},null,8,["name","size"])],10,ze)],2)])):(e.openBlock(),e.createElementBlock("div",Se,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass($.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",De,"*")):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Me,[e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",B.value])},[e.createElementVNode("input",{class:e.normalizeClass(k.value),type:"text",disabled:o.disabled,placeholder:o.startPlaceholder||"Fecha desde",value:v.value,required:o.required,readonly:!0,onClick:y[0]||(y[0]=()=>U("start")),onFocus:y[1]||(y[1]=()=>J("start"))},null,42,Te),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",g.value]),onClick:y[2]||(y[2]=e.withModifiers(()=>G("start"),["stop"])),disabled:o.disabled},[e.createVNode(P,{name:o.startIconName,size:x.value},null,8,["name","size"])],10,Ie)],2),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",B.value])},[e.createElementVNode("input",{class:e.normalizeClass(k.value),type:"text",disabled:o.disabled,placeholder:o.endPlaceholder||"Fecha hasta",value:b.value,required:o.required,readonly:!0,onClick:y[3]||(y[3]=()=>U("end")),onFocus:y[4]||(y[4]=()=>J("end"))},null,42,Le),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",g.value]),onClick:y[5]||(y[5]=e.withModifiers(()=>G("end"),["stop"])),disabled:o.disabled},[e.createVNode(P,{name:o.endIconName,size:x.value},null,8,["name","size"])],10,je)],2)])])),o.error?(e.openBlock(),e.createElementBlock("p",Fe,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Oe,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(["absolute top-full mt-1 left-0 bg-white rounded-lg shadow-lg border border-secondary-200 z-50 overflow-hidden p-4",V.value]),onClick:y[8]||(y[8]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Pe,[e.createElementVNode("button",{type:"button",onClick:ce,class:e.normalizeClass(z.value)},[e.createVNode(P,{name:"chevron-left",size:"sm"})],2),e.createElementVNode("div",qe,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":y[6]||(y[6]=C=>i.value=C),class:e.normalizeClass(T.value),onChange:Z},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,(C,S)=>e.createElementVNode("option",{key:S,value:S},e.toDisplayString(C),9,Ae)),64))],34),[[e.vModelSelect,i.value]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":y[7]||(y[7]=C=>l.value=C),class:e.normalizeClass(T.value),onChange:Z},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,C=>(e.openBlock(),e.createElementBlock("option",{key:C,value:C},e.toDisplayString(C),9,Ye))),128))],34),[[e.vModelSelect,l.value]])]),e.createElementVNode("button",{type:"button",onClick:de,class:e.normalizeClass(z.value)},[e.createVNode(P,{name:"chevron-right",size:"sm"})],2)]),e.createElementVNode("div",_e,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(w,C=>e.createElementVNode("div",{key:C,class:"text-center text-sm font-medium text-secondary-600 py-2"},e.toDisplayString(C),1)),64))]),e.createElementVNode("div",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,C=>(e.openBlock(),e.createElementBlock("button",{key:C.key,type:"button",class:e.normalizeClass(ee(C)),disabled:C.disabled||K(C.date),onClick:S=>se(C.date)},e.toDisplayString(C.day),11,We))),128))]),e.createElementVNode("div",He,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(h.value),onClick:R}," Cancelar ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(q.value),onClick:ie,disabled:!j.value}," Confirmar ",10,Ke)])],2)):e.createCommentVNode("",!0)],512))}}),Je=I(Ue,[["__scopeId","data-v-aac22628"]]),Ge={key:0,class:"border-b border-gray-100 px-6 py-4"},Qe={class:"px-6 py-4"},Ze={key:1,class:"border-t border-gray-100 px-6 py-4 bg-gray-50"},Xe=e.defineComponent({__name:"Card",props:{shadow:{default:"md"},rounded:{default:"lg"},bordered:{type:Boolean,default:!1}},setup(o){const m=o,t={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},c={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},a=e.computed(()=>["w-full bg-white",t[m.shadow],c[m.rounded],m.bordered?"border border-gray-200":""]);return(s,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value)},[s.$slots.header?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(s.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",Qe,[e.renderSlot(s.$slots,"default")]),s.$slots.footer?(e.openBlock(),e.createElementBlock("div",Ze,[e.renderSlot(s.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),et={class:"flex items-center justify-between border-b border-gray-100/60 px-8 py-6"},tt={class:"text-xl font-semibold text-gray-900"},ot={class:"px-8 py-6"},lt={key:0,class:"border-t border-gray-100 px-8 py-6 bg-gray-50"},at=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},title:{default:"Diálogo"},closeOnBackdrop:{type:Boolean,default:!0}},emits:["update:modelValue","close"],setup(o,{emit:m}){const t=o,c=m,a=e.computed({get:()=>t.modelValue,set:l=>c("update:modelValue",l)}),s=()=>{a.value=!1,c("close")},i=()=>{t.closeOnBackdrop&&s()};return(l,f)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"dialog"},{default:e.withCtx(()=>[a.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:f[0]||(f[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",et,[e.createElementVNode("h2",tt,[e.renderSlot(l.$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},[...f[1]||(f[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",ot,[e.renderSlot(l.$slots,"default",{},void 0,!0)]),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(l.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:3})]))}}),nt=I(at,[["__scopeId","data-v-37e19754"]]),rt=["accept","multiple","disabled"],st={class:"flex flex-col items-center justify-center gap-4 text-center"},it=["src","alt"],ct={key:1,class:"w-full h-full text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},dt={class:"text-center"},ut={class:"text-base font-medium text-gray-700"},mt={class:"text-primary-700"},pt={class:"flex items-center gap-3 flex-1 min-w-0"},ft={class:"flex-1 min-w-0"},vt={class:"text-sm font-medium text-gray-900 truncate"},gt={class:"text-xs text-gray-500"},yt={key:1,class:"text-xs text-gray-500 mt-2"},bt={key:2,class:"text-sm text-danger-500 mt-2"},ht=e.defineComponent({__name:"FileUpload",props:{modelValue:{default:null},accept:{default:"*"},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},illustration:{default:void 0},illustrationAlt:{default:"Subir archivo"},illustrationSize:{default:"md"},mainText:{default:"Suelta aquí un archivo o"},linkText:{default:"selecciónalo desde tu equipo"},helperText:{default:""},maxSize:{default:void 0}},emits:["update:modelValue","change","error"],setup(o,{emit:m}){const t=o,c=m,a=e.ref(null),s=e.ref(!1),i=e.ref(t.modelValue),l=e.ref(""),f=e.computed(()=>({sm:"w-20 h-20",md:"w-32 h-32",lg:"w-48 h-48",xl:"w-64 h-64"})[t.illustrationSize]),n=()=>{var g;(g=a.value)==null||g.click()},d=()=>{t.disabled||n()},u=g=>{t.disabled||(s.value=!0)},w=()=>{s.value=!1},x=g=>{if(l.value="",t.maxSize&&g.size>t.maxSize){const V=(t.maxSize/1048576).toFixed(2);return l.value=`El archivo excede el tamaño máximo de ${V}MB`,c("error",l.value),!1}return!0},E=g=>{var T;const z=(T=g.target.files)==null?void 0:T[0];z&&x(z)&&(i.value=z,c("update:modelValue",z),c("change",z))},$=g=>{var z;s.value=!1;const V=(z=g.dataTransfer)==null?void 0:z.files[0];V&&x(V)&&(i.value=V,c("update:modelValue",V),c("change",V))},B=()=>{i.value=null,l.value="",a.value&&(a.value.value=""),c("update:modelValue",null),c("change",null)},k=g=>{if(g===0)return"0 Bytes";const V=1024,z=["Bytes","KB","MB","GB"],T=Math.floor(Math.log(g)/Math.log(V));return Math.round(g/Math.pow(V,T)*100)/100+" "+z[T]};return(g,V)=>(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:d,onDragover:e.withModifiers(u,["prevent"]),onDragleave:e.withModifiers(w,["prevent"]),onDrop:e.withModifiers($,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:a,type:"file",accept:o.accept,multiple:o.multiple,disabled:o.disabled,class:"hidden",onChange:E},null,40,rt),e.createElementVNode("div",st,[e.createElementVNode("div",{class:e.normalizeClass([f.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,it)):(e.openBlock(),e.createElementBlock("svg",ct,[...V[1]||(V[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",dt,[e.createElementVNode("p",ut,[e.createTextVNode(e.toDisplayString(o.mainText)+" ",1),e.createElementVNode("span",mt,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:V[0]||(V[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",pt,[V[2]||(V[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",ft,[e.createElementVNode("p",vt,e.toDisplayString(i.value.name),1),e.createElementVNode("p",gt,e.toDisplayString(k(i.value.size)),1)])]),o.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(B,["stop"]),class:"ml-3 text-gray-400 hover:text-danger-500 transition-colors"},[...V[3]||(V[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",yt,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("p",bt,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0)])],34))}}),xt={class:"input-wrapper"},kt=["for"],Ct={key:0,class:"text-danger-600"},wt={class:"relative"},Bt=["id","type","disabled","placeholder","value","required","readonly"],Vt={key:0,class:"absolute right-3 top-1/2 -translate-y-1/2 text-danger-600"},$t={key:1,class:"mt-1 text-sm text-danger-600"},Et={key:2,class:"mt-1 text-sm text-secondary-600"},Nt=e.defineComponent({__name:"Input",props:{modelValue:{default:""},label:{},type:{default:"text"},size:{default:"md"},variant:{default:"default"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},placeholder:{},error:{},helperText:{}},emits:["update:modelValue","blur","focus"],setup(o,{emit:m}){const t=o,c=m,a=e.ref(`input-${Math.random().toString(36).substr(2,9)}`),s=e.computed(()=>"ds-label"),i=e.computed(()=>{const d="w-full rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",u={sm:"h-8 px-3 text-sm",md:"h-10 px-4 text-base",lg:"h-12 px-5 text-lg"},w={default:"border border-secondary-300 bg-white focus:border-primary-500 focus:ring-primary-500",filled:"border-0 bg-secondary-100 focus:bg-white focus:ring-primary-500",outlined:"border-2 border-secondary-300 bg-transparent focus:border-primary-500 focus:ring-primary-500"},x=t.error?"border-danger-500 focus:border-danger-500 focus:ring-danger-500 pr-10":"";return`${d} ${u[t.size]} ${w[t.variant]} ${x}`}),l=d=>{const u=d.target;c("update:modelValue",u.value)},f=d=>{c("blur",d)},n=d=>{c("focus",d)};return(d,u)=>(e.openBlock(),e.createElementBlock("div",xt,[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:a.value,class:e.normalizeClass(s.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Ct,"*")):e.createCommentVNode("",!0)],10,kt)):e.createCommentVNode("",!0),e.createElementVNode("div",wt,[e.createElementVNode("input",{id:a.value,class:e.normalizeClass(i.value),type:o.type,disabled:o.disabled,placeholder:o.placeholder,value:o.modelValue,required:o.required,readonly:o.readonly,onInput:l,onBlur:f,onFocus:n},null,42,Bt),o.error?(e.openBlock(),e.createElementBlock("span",Vt,[...u[0]||(u[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)])])):e.createCommentVNode("",!0)]),o.error?(e.openBlock(),e.createElementBlock("p",$t,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Et,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0)]))}}),zt=I(Nt,[["__scopeId","data-v-fac43d65"]]),St=["stroke-width"],Dt={class:"w-full h-full rounded-lg overflow-hidden",style:{"background-color":"#f7f7f7"}},Mt=e.defineComponent({__name:"Loader",props:{type:{default:"circular"},size:{default:"40px"},height:{default:"4px"},color:{default:"primary"},strokeWidth:{default:4},progress:{default:void 0}},setup(o){const m=o,t={primary:"text-primary-700",secondary:"text-secondary-500",success:"text-success-500",warning:"text-warning-500",danger:"text-danger-500",info:"text-info-500"},c={primary:"bg-primary-700",secondary:"bg-secondary-500",success:"bg-success-500",warning:"bg-warning-500",danger:"bg-danger-500",info:"bg-info-500"},a=e.computed(()=>[t[m.color]]),s=e.computed(()=>[c[m.color]]);return(i,l)=>o.type==="circular"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.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,St),l[0]||(l[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",Dt,[e.createElementVNode("div",{class:e.normalizeClass([[s.value,{"animate-linear-loader":o.progress===void 0}],"h-full rounded-lg"]),style:e.normalizeStyle({width:o.progress!==void 0?`${Math.min(Math.max(o.progress,0),100)}%`:"100%"})},null,6)])],4)):e.createCommentVNode("",!0)}}),Tt=I(Mt,[["__scopeId","data-v-f369fb46"]]),It=["disabled","aria-expanded"],Lt=["disabled","onClick"],jt={key:0,class:"flex-shrink-0"},Ft=["innerHTML"],Ot={class:"flex-1 min-w-0 mr-2"},Pt={class:"flex flex-col items-start"},qt=["title"],At=["title"],Yt={key:1,class:"flex-shrink-0"},_t={key:0,class:"text-xs text-secondary-400 font-mono whitespace-nowrap"},Rt={key:1},Wt={key:2,class:"w-4 h-4 ml-2 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ht=e.defineComponent({__name:"Menu",props:{items:{default:()=>[]},triggerText:{default:"Menu"},showChevron:{type:Boolean,default:!0},position:{default:"bottom-start"},align:{default:"start"},offset:{default:()=>({x:0,y:4})},width:{default:"auto"},maxHeight:{default:"400px"},closeOnClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},teleport:{type:Boolean,default:!0},zIndex:{default:50}},emits:["open","close","select"],setup(o,{emit:m}){const t=o,c=m,a=e.ref(!1),s=e.ref(null),i=e.ref(null),l=e.ref({}),f=e.computed(()=>["inline-flex items-center justify-center px-4 py-2 text-sm font-medium","bg-white border border-secondary-300 rounded-md text-secondary-700","hover:bg-secondary-100 hover:text-secondary-900 hover:border-secondary-400","focus:outline-none focus:ring-2 focus:ring-primary-500","disabled:opacity-50 disabled:cursor-not-allowed","transition-all duration-200"].join(" ")),n=e.computed(()=>[...["fixed bg-white rounded-lg shadow-lg border border-secondary-200","flex flex-col","focus:outline-none"],`z-${t.zIndex}`].join(" ")),d=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"),w=e.computed(()=>"py-1 overflow-y-auto flex-1 min-h-0"),x=e.computed(()=>"my-1 border-t border-secondary-200"),E=e.computed(()=>"px-4 py-2 text-xs font-semibold text-secondary-500 uppercase tracking-wider"),$=r=>{const v=["w-full flex items-center gap-3 px-4 py-2.5 text-sm text-left","transition-all duration-150 focus:outline-none cursor-pointer","disabled:opacity-50 disabled:cursor-not-allowed"],b=r.variant||"default",j={default:"text-secondary-700 hover:bg-secondary-100 hover:text-secondary-900 focus:bg-secondary-100",danger:"text-danger-600 hover:bg-danger-100 hover:text-danger-700 focus:bg-danger-100",success:"text-success-600 hover:bg-success-100 hover:text-success-700 focus:bg-success-100",warning:"text-warning-600 hover:bg-warning-100 hover:text-warning-700 focus:bg-warning-100"};let N="";return r.color&&(N=r.color,(r.color.includes("white")||r.color.includes("50"))&&(N+=" hover:text-black")),[...v,N||j[b]].join(" ")},B=()=>{t.disabled||(a.value?g():k())},k=()=>{a.value=!0,c("open"),e.nextTick(()=>{h(),document.addEventListener("click",z),document.addEventListener("keydown",T)})},g=()=>{a.value=!1,c("close"),document.removeEventListener("click",z),document.removeEventListener("keydown",T)},V=r=>{r.disabled||(r.action&&r.action(),c("select",r),t.closeOnClick&&!r.children&&g())},z=r=>{const v=r.target;s.value&&!s.value.contains(v)&&i.value&&!i.value.contains(v)&&g()},T=r=>{r.key==="Escape"&&g()},q=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),B())},h=()=>{if(!s.value||!i.value)return;const r=s.value.getBoundingClientRect(),v=i.value.getBoundingClientRect(),b=window.innerWidth,j=window.innerHeight;let N=0,D=0;switch(t.position){case"bottom-start":N=r.bottom+t.offset.y,D=r.left+t.offset.x;break;case"bottom-end":N=r.bottom+t.offset.y,D=r.right-v.width+t.offset.x;break;case"top-start":N=r.top-v.height-t.offset.y,D=r.left+t.offset.x;break;case"top-end":N=r.top-v.height-t.offset.y,D=r.right-v.width+t.offset.x;break;case"right-start":N=r.top+t.offset.y,D=r.right+t.offset.x;break;case"right-end":N=r.bottom-v.height+t.offset.y,D=r.right+t.offset.x;break;case"left-start":N=r.top+t.offset.y,D=r.left-v.width-t.offset.x;break;case"left-end":N=r.bottom-v.height+t.offset.y,D=r.left-v.width-t.offset.x;break}D+v.width>b&&(D=b-v.width-8),D<8&&(D=8),N+v.height>j&&(N=j-v.height-8),N<8&&(N=8),l.value={top:`${N}px`,left:`${D}px`,width:t.width==="auto"?`${Math.max(r.width,240)}px`:t.width,maxHeight:t.maxHeight,minWidth:"240px"}};return e.onMounted(()=>{window.addEventListener("scroll",h,!0),window.addEventListener("resize",h)}),e.onUnmounted(()=>{window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h),document.removeEventListener("click",z),document.removeEventListener("keydown",T)}),e.watch(()=>t.items,()=>{a.value&&e.nextTick(h)},{deep:!0}),(r,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper",{"w-full":o.fullWidth}])},[e.createElementVNode("div",{ref_key:"triggerRef",ref:s},[e.renderSlot(r.$slots,"trigger",{isOpen:a.value,toggle:B},()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(f.value),disabled:o.disabled,onClick:B,onKeydown:q,tabindex:0,role:"button","aria-expanded":a.value,"aria-haspopup":!0},[e.renderSlot(r.$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",a.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...v[1]||(v[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,It)],!0)],512),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[a.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:i,class:e.normalizeClass(n.value),style:e.normalizeStyle(l.value),onClick:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))},[r.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(d.value)},[e.renderSlot(r.$slots,"header",{close:g},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(w.value)},[e.renderSlot(r.$slots,"default",{close:g,isOpen:a.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(b,j)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:b.id||j},[b.type==="divider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(x.value)},null,2)):b.type==="header"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(E.value)},e.toDisplayString(b.label),3)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass($(b)),disabled:b.disabled,onClick:N=>V(b)},[b.icon||r.$slots[`icon-${b.id}`]?(e.openBlock(),e.createElementBlock("span",jt,[e.renderSlot(r.$slots,`icon-${b.id}`,{item:b},()=>[typeof b.icon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.icon),{key:0,class:"w-5 h-5"})):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:b.icon,class:"w-5 h-5 inline-block"},null,8,Ft))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ot,[e.renderSlot(r.$slots,`item-${b.id}`,{item:b,close:g},()=>[e.createElementVNode("div",Pt,[e.createElementVNode("span",{class:"truncate w-full",title:b.label},e.toDisplayString(b.label),9,qt),b.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-xs text-secondary-500 truncate w-full",title:b.description},e.toDisplayString(b.description),9,At)):e.createCommentVNode("",!0)])],!0)]),b.suffix||b.shortcut||r.$slots[`suffix-${b.id}`]?(e.openBlock(),e.createElementBlock("span",Yt,[e.renderSlot(r.$slots,`suffix-${b.id}`,{item:b},()=>[b.shortcut?(e.openBlock(),e.createElementBlock("span",_t,e.toDisplayString(b.shortcut),1)):b.suffix?(e.openBlock(),e.createElementBlock("span",Rt,e.toDisplayString(b.suffix),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("svg",Wt,[...v[2]||(v[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,Lt))],64))),128))],!0)],2),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(u.value)},[e.renderSlot(r.$slots,"footer",{close:g},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.value&&o.overlay?(e.openBlock(),e.createElementBlock("div",{key:1,class:"fixed inset-0 bg-black/20 z-40",onClick:g})):e.createCommentVNode("",!0)]))],2))}}),Kt=I(Ht,[["__scopeId","data-v-61176297"]]),Ut=["for"],Jt={key:0,class:"text-danger-600"},Gt=["id","disabled","aria-expanded"],Qt={class:"flex-1 text-left truncate"},Zt={key:0,class:"p-2 border-b border-secondary-200"},Xt=["placeholder"],eo={class:"max-h-64 overflow-y-auto"},to={key:0,class:"px-4 py-3 text-sm text-secondary-500 text-center"},oo=["onClick"],lo={class:"flex items-center justify-between w-full"},ao={class:"truncate"},no={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"},ro={key:0,class:"border-t border-secondary-200 my-1"},so=["onClick"],io=["innerHTML"],co={key:1,class:"mt-1 text-sm text-danger-600"},uo={key:2,class:"mt-1 text-sm text-secondary-600"},mo=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"},bordered:{type:Boolean,default:!0}},emits:["update:modelValue","change","action"],setup(o,{emit:m}){const t=o,c=m,a=e.ref(!1),s=e.ref(""),i=e.ref(null),l=e.computed(()=>`select-${Math.random().toString(36).substr(2,9)}`),f=e.computed(()=>t.options.find(h=>h.value===t.modelValue)||null),n=e.computed(()=>{if(!t.searchable||!s.value)return t.options;const h=s.value.toLowerCase();return t.options.filter(r=>r.label.toLowerCase().includes(h))}),d=e.computed(()=>"ds-label"),u=e.computed(()=>t.bordered?"border border-neutral-300 rounded-md":"rounded-md"),w=e.computed(()=>{const h="w-full rounded-md flex items-center justify-between gap-2 transition-colors focus:outline-none focus:ring-2 focus:ring-primary-500 disabled:opacity-50 disabled:cursor-not-allowed",r={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg"},v={default:"bg-white",outline:"bg-transparent",filled:"bg-secondary-100"},b=t.error?"border-danger-600 focus:ring-danger-500":"";return[h,r[t.size],v[t.variant],b].join(" ")}),x=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`),E=h=>{const r="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",v=B(h)?"bg-primary-50":"";return[r,v].join(" ")},$=h=>{const r="w-full px-4 py-2 text-left text-sm font-semibold transition-colors focus:outline-none flex items-center gap-3";return h.variant==="danger"?`${r} text-danger-600 hover:bg-danger-50 focus:bg-danger-50`:`${r} text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50`},B=h=>h.value===t.modelValue,k=()=>{t.disabled||(a.value=!a.value,a.value&&t.searchable&&e.nextTick(()=>{var h;(h=i.value)==null||h.focus()}))},g=()=>{a.value=!1,s.value=""},V=h=>{h.disabled||(c("update:modelValue",h.value),c("change",h),g())},z=h=>{h.action&&h.action(),c("action",h),g()},T=h=>{const r=h.relatedTarget;r&&r.closest(".select-wrapper")||setTimeout(()=>{g()},200)},q=h=>{h.key==="Escape"?g():(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),k())};return e.watch(a,h=>{h&&(s.value="")}),(h,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-wrapper",{"w-full":o.fullWidth}])},[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:l.value,class:e.normalizeClass(d.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Jt,"*")):e.createCommentVNode("",!0)],10,Ut)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative",u.value])},[e.createElementVNode("button",{id:l.value,type:"button",class:e.normalizeClass(w.value),disabled:o.disabled,"aria-expanded":a.value,"aria-haspopup":!0,onClick:k,onBlur:T,onKeydown:q},[e.createElementVNode("span",Qt,e.toDisplayString(f.value?f.value.label:o.placeholder),1),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["w-5 h-5 flex-shrink-0 transition-transform text-[#565656] opacity-80",a.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[...r[3]||(r[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,Gt),a.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(x.value),onClick:r[2]||(r[2]=e.withModifiers(()=>{},["stop"]))},[o.searchable?(e.openBlock(),e.createElementBlock("div",Zt,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:i,"onUpdate:modelValue":r[0]||(r[0]=v=>s.value=v),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:r[1]||(r[1]=e.withModifiers(()=>{},["stop"]))},null,40,Xt),[[e.vModelText,s.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",eo,[n.value.length===0?(e.openBlock(),e.createElementBlock("div",to,e.toDisplayString(o.emptyText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,v=>(e.openBlock(),e.createElementBlock("button",{key:v.value,type:"button",class:e.normalizeClass(E(v)),onClick:b=>V(v)},[e.createElementVNode("div",lo,[e.createElementVNode("span",ao,e.toDisplayString(v.label),1),B(v)?(e.openBlock(),e.createElementBlock("svg",no,[...r[4]||(r[4]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)])],10,oo))),128)),o.actionItems.length>0?(e.openBlock(),e.createElementBlock("div",ro)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actionItems,v=>(e.openBlock(),e.createElementBlock("button",{key:v.id,type:"button",class:e.normalizeClass($(v)),onClick:b=>z(v)},[v.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:v.icon},null,8,io)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(v.label),1)],10,so))),128))],64))])],2)):e.createCommentVNode("",!0)],2),o.error?(e.openBlock(),e.createElementBlock("p",co,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",uo,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:g,class:"fixed inset-0 z-40"})):e.createCommentVNode("",!0)],2))}}),po=I(mo,[["__scopeId","data-v-4b6dade4"]]),fo=e.defineComponent({__name:"Sidebar",props:{modelValue:{type:Boolean,default:!1},position:{default:"left"},width:{default:"16rem"},overlay:{type:Boolean,default:!0},overlayTop:{default:"0"},closable:{type:Boolean,default:!0},persistent:{type:Boolean,default:!1},backgroundColor:{default:"white"},shadow:{type:Boolean,default:!0},padding:{default:"md"}},emits:["update:modelValue","close","open"],setup(o,{emit:m}){const t=o,c=m,a=e.computed({get:()=>t.modelValue,set:x=>c("update:modelValue",x)}),s=()=>{t.persistent||(a.value=!1,c("close"))},i=e.computed(()=>t.position==="left"?"slide-right":"slide-left"),l=e.computed(()=>{const x="fixed top-0 h-full z-50 flex flex-col w-full max-w-full sm:max-w-none",E=t.position==="left"?"left-0":"right-0",$=t.shadow?t.position==="left"?"shadow-[2px_0_8px_rgba(0,0,0,0.1)]":"shadow-[-2px_0_8px_rgba(0,0,0,0.1)]":"";return[x,E,$].filter(Boolean).join(" ")}),f=e.computed(()=>({width:"100%",maxWidth:t.width,backgroundColor:t.backgroundColor,top:t.overlayTop,height:t.overlayTop!=="0"?`calc(100vh - ${t.overlayTop})`:"100vh"})),n={none:"",sm:"p-2",md:"p-4",lg:"p-6"},d=e.computed(()=>`flex items-center justify-between border-b border-gray-200 ${n[t.padding]}`),u=e.computed(()=>`flex-1 overflow-y-auto ${n[t.padding]}`),w=e.computed(()=>`border-t border-gray-200 ${n[t.padding]}`);return(x,E)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[a.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(()=>[a.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(l.value),style:e.normalizeStyle(f.value)},[x.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(d.value)},[e.renderSlot(x.$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(x.$slots,"default",{},void 0,!0)],2),x.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(w.value)},[e.renderSlot(x.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),vo=I(fo,[["__scopeId","data-v-b208234c"]]),go={class:"w-full space-y-4"},yo={class:"flex flex-col gap-3 md:hidden"},bo={class:"text-[11px] uppercase tracking-wide text-gray-400"},ho={class:"text-sm text-gray-700"},xo={key:0,class:"rounded-lg border border-dashed border-gray-200 bg-white p-4 text-gray-400 text-center"},ko={class:"hidden md:block w-full overflow-x-auto"},Co={class:"w-full border-collapse"},wo={class:"w-full"},Bo=["onClick"],Vo={class:"flex items-center gap-2"},$o={key:0,class:"text-xs text-gray-400"},Eo={key:0},No={key:1},zo={class:"w-full"},So={key:0,class:"flex items-center justify-center py-12 text-gray-400"},Do={key:0,class:"w-full px-6 py-4 bg-white"},Mo=e.defineComponent({__name:"Table",props:{columns:{},data:{},headerClass:{default:void 0},headerCellClass:{default:void 0},cellClass:{default:void 0},rowClass:{default:void 0}},setup(o){const m=o,t=e.ref(null),c=e.ref("asc"),a=l=>{t.value===l?c.value=c.value==="asc"?"desc":"asc":(t.value=l,c.value="asc")},s=e.computed(()=>{if(!t.value)return m.data;const l=[...m.data];return l.sort((f,n)=>{const d=f[t.value],u=n[t.value];return typeof d=="string"&&typeof u=="string"?c.value==="asc"?d.localeCompare(u):u.localeCompare(d):typeof d=="number"&&typeof u=="number"?c.value==="asc"?d-u:u-d:0}),l}),i=e.computed(()=>m.columns.filter(l=>!l.hideOnMobile));return(l,f)=>(e.openBlock(),e.createElementBlock("div",go,[e.createElementVNode("div",yo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(n,d)=>(e.openBlock(),e.createElementBlock("div",{key:`card-${d}`,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-${d}-${u.key}`,class:"flex flex-col gap-1 py-1"},[e.createElementVNode("span",bo,e.toDisplayString(u.label),1),e.createElementVNode("span",ho,[e.renderSlot(l.$slots,`cell-${u.key}`,{value:n[u.key],row:n},()=>[e.createTextVNode(e.toDisplayString(n[u.key]),1)],!0)])]))),128))]))),128)),s.value.length===0?(e.openBlock(),e.createElementBlock("div",xo,[e.renderSlot(l.$slots,"empty",{},()=>[f[0]||(f[0]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ko,[e.createElementVNode("table",Co,[e.createElementVNode("thead",wo,[e.createElementVNode("tr",{class:e.normalizeClass(["w-full",m.headerClass||"bg-neutral-50 border-b border-gray-100"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,n=>(e.openBlock(),e.createElementBlock("th",{key:n.key,style:e.normalizeStyle(n.width?{width:n.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",n.sortable?"cursor-pointer hover:text-primary-600 select-none transition-colors":"",m.headerCellClass]),onClick:d=>n.sortable&&a(n.key)},[e.createElementVNode("div",Vo,[e.createElementVNode("span",null,e.toDisplayString(n.label),1),n.sortable?(e.openBlock(),e.createElementBlock("span",$o,[t.value!==n.key?(e.openBlock(),e.createElementBlock("span",Eo,"⇅")):(e.openBlock(),e.createElementBlock("span",No,e.toDisplayString(c.value==="asc"?"↑":"↓"),1))])):e.createCommentVNode("",!0)])],14,Bo))),128))],2)]),e.createElementVNode("tbody",zo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(n,d)=>(e.openBlock(),e.createElementBlock("tr",{key:d,class:e.normalizeClass(["w-full border-b border-gray-200 hover:bg-gray-50 transition-colors",m.rowClass])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,u=>(e.openBlock(),e.createElementBlock("td",{key:`${d}-${u.key}`,class:e.normalizeClass(["px-4 py-3 text-xs text-gray-600 border-l border-gray-100 first:border-l-0",m.cellClass])},[e.renderSlot(l.$slots,`cell-${u.key}`,{value:n[u.key],row:n},()=>[e.createTextVNode(e.toDisplayString(n[u.key]),1)],!0)],2))),128))],2))),128))])]),s.value.length===0?(e.openBlock(),e.createElementBlock("div",So,[e.renderSlot(l.$slots,"empty",{},()=>[f[1]||(f[1]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",Do,[e.renderSlot(l.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]))}}),To=I(Mo,[["__scopeId","data-v-8e7ce66d"]]),Io={class:"tabs-wrapper"},Lo={class:"tabs-container",role:"tablist"},jo=["aria-selected","onClick"],Fo="relative w-full sm:w-auto text-left sm:text-center px-4 sm:px-6 py-3 text-base tracking-wide transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500 border-b-3",Oo="text-primary-600 border-primary-600 font-semibold",Po="hover:text-secondary-700 border-transparent font-normal",qo=e.defineComponent({__name:"Tabs",props:{modelValue:{},tabs:{},headerClass:{},contentClass:{}},emits:["update:modelValue"],setup(o,{emit:m}){const t=o,c=m,a=f=>t.modelValue===f,s=f=>{a(f)||c("update:modelValue",f)},i=e.computed(()=>t.modelValue),l=e.computed(()=>t.tabs.find(f=>f.value===i.value));return(f,n)=>(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("div",{class:e.normalizeClass(["tabs-header",o.headerClass])},[e.createElementVNode("div",Lo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,d=>(e.openBlock(),e.createElementBlock("button",{key:d.value,type:"button",class:e.normalizeClass([Fo,a(d.value)?Oo:Po]),"aria-selected":a(d.value),role:"tab",onClick:u=>s(d.value)},e.toDisplayString(d.label),11,jo))),128))])],2),e.createElementVNode("div",{class:e.normalizeClass(["tabs-content",o.contentClass]),role:"tabpanel"},[e.renderSlot(f.$slots,i.value,{active:i.value,tab:l.value},void 0,!0)],2)]))}}),Ao=I(qo,[["__scopeId","data-v-c7c56f28"]]),Yo="font-sans",_o=e.defineComponent({__name:"Text",props:{variant:{default:"body1"},as:{},color:{default:"default"},align:{default:"left"},uppercase:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},weight:{}},setup(o){const m={h1:"text-[40px] leading-[57px] tracking-[0px] font-extrabold",h2:"text-[40px] leading-[57px] tracking-[0px] font-bold",h3:"text-[28px] leading-[39px] tracking-[0px] font-extrabold",h4:"text-[21px] leading-[29px] tracking-[0px] font-extrabold",h5:"text-[16px] leading-[22px] tracking-[0px] font-extrabold",h6:"text-[13px] leading-[18px] tracking-[0px] font-extrabold",subtitle1:"text-[16px] leading-[24px] tracking-[0.15px] font-medium",subtitle2:"text-[14px] leading-[21px] tracking-[0.1px] font-medium",subtitle3:"text-[12px] leading-[18px] tracking-[0.1px] font-medium",subtitle4:"text-[10px] leading-[15px] tracking-[0.1px] font-medium",body1:"text-[16px] leading-[24px] tracking-[0.5px] font-light",body2:"text-[14px] leading-[21px] tracking-[0.25px] font-light",body3:"text-[12px] leading-[18px] tracking-[0.25px] font-light",body4:"text-[10px] leading-[15px] tracking-[0.25px] font-light",button1:"text-[14px] leading-[24px] tracking-[1.25px] font-bold",button2:"text-[14px] leading-[20px] tracking-[1.25px] font-bold",button3:"text-[12px] leading-[18px] tracking-[1.25px] font-bold",caption:"text-[12px] leading-[18px] tracking-[0.4px] font-normal",overline:"text-[10px] leading-[15px] tracking-[1.5px] font-medium"},t={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",body1:"p",body2:"p",body3:"p",body4:"p",button1:"span",button2:"span",button3:"span",caption:"span",overline:"span"},c={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},a={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,l=e.computed(()=>i.variant),f=e.computed(()=>i.align),n=e.computed(()=>i.as||t[l.value]||"span"),d=e.computed(()=>i.color&&i.color.startsWith("#")),u=e.computed(()=>d.value?"":a[i.color]||a.default),w=e.computed(()=>d.value?{color:i.color}:{}),x=e.computed(()=>i.weight?s[i.weight]:"");return(E,$)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),{class:e.normalizeClass([Yo,m[l.value],u.value,c[f.value],x.value,{uppercase:o.uppercase||l.value==="overline",truncate:o.truncate}]),style:e.normalizeStyle(w.value)},{default:e.withCtx(()=>[e.renderSlot(E.$slots,"default")]),_:3},8,["class","style"]))}}),Ro={class:"w-full flex items-center justify-between gap-3 py-2"},Wo={key:0,class:"text-xs text-secondary-600"},Ho={key:0},Ko={class:"ml-auto inline-flex items-center gap-1",role:"navigation","aria-label":"Pagination"},Uo=["disabled"],Jo={key:0,class:"h-8 min-w-8 px-2 inline-flex items-center justify-center text-secondary-500"},Go=["aria-label","onClick"],Qo=["disabled"],Zo=e.defineComponent({__name:"Pagination",props:{modelValue:{default:1},totalItems:{default:0},pageSize:{default:10},maxPages:{default:5},previousText:{default:"Anterior"},nextText:{default:"Siguiente"},showSummary:{type:Boolean,default:!0},itemLabel:{default:""}},emits:["update:modelValue","change"],setup(o,{emit:m}){const t=o,c=m,a=e.computed(()=>{const u=Math.ceil(t.totalItems/t.pageSize);return u>0?u:1}),s=e.computed(()=>{const u=Number(t.modelValue||1);return u<1?1:u>a.value?a.value:u}),i=e.computed(()=>t.totalItems===0?0:(s.value-1)*t.pageSize+1),l=e.computed(()=>Math.min(s.value*t.pageSize,t.totalItems)),f=e.computed(()=>`Mostrando ${i.value} a ${l.value} de ${t.totalItems}`),n=e.computed(()=>{const u=a.value,w=Math.max(3,t.maxPages),x=s.value;if(u<=w)return Array.from({length:u},(g,V)=>V+1);const E=Math.floor(w/2);let $=Math.max(1,x-E),B=Math.min(u,$+w-1);$=Math.max(1,Math.min($,B-w+1));const k=[];$>1&&(k.push(1),$>2&&k.push("…"));for(let g=$;g<=B;g++)k.push(g);return B<u&&(B<u-1&&k.push("…"),k.push(u)),k});function d(u){const w=Math.max(1,Math.min(u,a.value));w!==s.value&&(c("update:modelValue",w),c("change",w))}return(u,w)=>(e.openBlock(),e.createElementBlock("div",Ro,[o.showSummary?(e.openBlock(),e.createElementBlock("div",Wo,[e.renderSlot(u.$slots,"summary",{start:i.value,end:l.value,total:o.totalItems},()=>[e.createTextVNode(e.toDisplayString(f.value),1),o.itemLabel?(e.openBlock(),e.createElementBlock("span",Ho,e.toDisplayString(o.itemLabel),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",Ko,[e.createElementVNode("button",{type:"button",class:"h-8 px-3 rounded-full text-sm font-semibold text-secondary-700 hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed",disabled:s.value<=1,onClick:w[0]||(w[0]=x=>d(s.value-1)),"aria-label":"Anterior"},e.toDisplayString(o.previousText),9,Uo),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(x,E)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`page-${E}-${x}`},[x==="…"?(e.openBlock(),e.createElementBlock("span",Jo," … ")):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","aria-label":`Página ${x}`,class:e.normalizeClass(["h-8 min-w-8 px-3 rounded-full text-sm font-semibold transition-colors",x===s.value?"bg-primary-500 text-white":"text-secondary-700 hover:bg-secondary-100"]),onClick:$=>d(x)},e.toDisplayString(x),11,Go))],64))),128)),e.createElementVNode("button",{type:"button",class:"h-8 px-3 rounded-full text-sm font-semibold text-secondary-700 hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed",disabled:s.value>=a.value,onClick:w[1]||(w[1]=x=>d(s.value+1)),"aria-label":"Siguiente"},e.toDisplayString(o.nextText),9,Qo)])]))}}),Xo=I(Zo,[["__scopeId","data-v-87417cc4"]]),el=["data-node-id"],tl={class:"shrink-0 size-12 rounded-full bg-[var(--neutrales/fondo-general-claro,#f7f7f7)] grid place-items-center"},ol={key:1,class:"flex justify-end gap-1 px-6 pb-6 pt-4"},ll=e.defineComponent({__name:"Alert",props:{variant:{},title:{},description:{},closable:{type:Boolean},multiline:{type:Boolean},actions:{type:Boolean},nodeId:{},stackOn:{}},emits:["close","accept","cancel"],setup(o,{emit:m}){const t=m,c=o,a=e.computed(()=>c.variant??"info"),s=e.computed(()=>c.multiline??!1),i=e.computed(()=>c.actions??!1),l=e.computed(()=>c.nodeId??void 0),f=()=>t("close"),n=e.computed(()=>{if(c.title)return c.title;switch(a.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"}}),d=e.computed(()=>c.description??""),u=e.computed(()=>{switch(a.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]"}}}),w=e.computed(()=>"bg-[var(--color-primario/700,#269ea4)]"),x=e.computed(()=>{const B="flex w-full items-start gap-4 flex-col";if(!c.stackOn)return`${B} sm:flex-row sm:items-center`;const k=c.stackOn,g=`${k}:flex-row ${k}:items-center`;return`${B} ${g}`}),E=e.computed(()=>{if(!c.stackOn)return"flex-col sm:flex-row items-start sm:items-center";const B=c.stackOn;return`flex-col ${B}:flex-row items-start ${B}:items-center`}),$=e.computed(()=>c.stackOn?`self-start ${c.stackOn}:self-auto`:"self-start sm:self-auto");return(B,k)=>(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":l.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:f},[...k[2]||(k[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(x.value)},[e.createElementVNode("div",tl,[a.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"},[...k[3]||(k[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)):a.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"},[...k[4]||(k[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)):a.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"},[...k[5]||(k[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"},[...k[6]||(k[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(n.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(B.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(d.value),1)])],2)],2)],2)],2),i.value?(e.openBlock(),e.createElementBlock("div",ol,[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:k[0]||(k[0]=g=>B.$emit("cancel"))},[e.renderSlot(B.$slots,"cancel",{},()=>[k[7]||(k[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",w.value]),onClick:k[1]||(k[1]=g=>B.$emit("accept"))},[e.renderSlot(B.$slots,"accept",{},()=>[k[8]||(k[8]=e.createTextVNode("Aceptar",-1))])],2)])):e.createCommentVNode("",!0)],10,el))}});exports.Alert=ll;exports.AppBar=xe;exports.Button=we;exports.Calendar=Je;exports.Card=Xe;exports.Dialog=nt;exports.FileUpload=ht;exports.Icon=P;exports.Input=zt;exports.Loader=Tt;exports.Menu=Kt;exports.Pagination=Xo;exports.Select=po;exports.Sidebar=vo;exports.Table=To;exports.Tabs=Ao;exports.Text=_o;