@iaclinical/components 1.0.37 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iaclinical-components.cjs +1 -1
- package/dist/iaclinical-components.js +998 -920
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),fe=require("@iconify/vue"),be={class:"flex items-center gap-2 sm:gap-3 shrink-0"},ge={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"},ye={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins truncate"},he={class:"flex items-center gap-2 sm:gap-3 shrink-0"},xe={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},ke=e.defineComponent({__name:"AppBar",props:{title:{default:""},titlePosition:{default:"left"},showMenuButton:{type:Boolean,default:!0},variant:{default:"default"},sticky:{type:Boolean,default:!0},mode:{default:"sticky"},shadow:{type:Boolean,default:!1},elevation:{default:0},height:{default:"md"},density:{default:"normal"}},emits:["toggle-menu"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>{const i="flex flex-row items-center justify-between gap-2 sm:gap-4 px-3 sm:px-6 z-50 w-full",s={default:"bg-primary-500 text-primary-50",dark:"bg-secondary-900 text-white",light:"bg-white text-secondary-900 border-b border-secondary-200"},a={sm:"h-12",md:"h-14",lg:"h-16"},u={0:"",1:"shadow-sm",2:"shadow",3:"shadow-md",4:"shadow-lg",5:"shadow-xl"},k={compact:"gap-1",normal:"gap-2 sm:gap-4",prominent:"gap-3 sm:gap-6 px-6 sm:px-8"},g=t.sticky?t.mode==="fixed"?"fixed top-0 inset-x-0":"sticky top-0 inset-x-0":"",p=t.shadow?"shadow-md":u[Math.min(t.elevation,5)];return[i.replace("gap-2 sm:gap-4",k[t.density]),s[t.variant],a[t.height],g,p].join(" ")});return(i,s)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(l.value)},[e.createElementVNode("div",be,[o.showMenuButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=a=>d("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"},[...s[1]||(s[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",ge,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"left",{},void 0,!0)]),e.createElementVNode("div",ve,[o.title&&o.titlePosition==="center"?(e.openBlock(),e.createElementBlock("div",ye,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",he,[o.title&&o.titlePosition==="right"?(e.openBlock(),e.createElementBlock("div",xe,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"right",{},void 0,!0)])],2))}}),F=(o,m)=>{const t=o.__vccOpts||o;for(const[d,l]of m)t[d]=l;return t},Ce=F(ke,[["__scopeId","data-v-b7ffd034"]]),we=["type","disabled","aria-label"],Be={key:0,class:"w-4 h-4 animate-spin mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Ve={key:1,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]"},$e=e.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},radius:{default:"full"},type:{default:"button"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},badge:{default:0},ariaLabel:{default:""},textColor:{default:void 0},textColorHover:{default:void 0},compact:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>t.variant==="icon"),i=e.computed(()=>t.badge>99?"99+":t.badge.toString()),s=e.computed(()=>{const u="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",k={primary:"bg-primary-500 text-white hover:bg-primary-600 active:bg-primary-500 focus-visible:ring-primary-500",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-primary-100 focus-visible:ring-secondary-500",ghost:"hover:bg-primary-100 focus-visible:ring-secondary-500",danger:"bg-danger-600 text-white hover:bg-danger-700 focus-visible:ring-danger-600",icon:"hover:bg-primary-100 hover:text-black focus-visible:ring-secondary-500 relative",text:"bg-transparent border-0 focus-visible:ring-0 focus-visible:ring-offset-0"},g={sm:l.value?t.compact?"p-1":"p-1.5":t.compact?"h-6 px-2 text-xs":"h-8 px-3 text-sm",md:l.value?t.compact?"p-1.5":"p-2":t.compact?"h-8 px-3 text-sm":"h-10 px-4 text-base",lg:l.value?t.compact?"p-2":"p-3":t.compact?"h-10 px-4 text-base":"h-12 px-6 text-lg"},p={full:"rounded-full",xl:"rounded-2xl",lg:"rounded-xl",md:"rounded-lg",sm:"rounded-md",none:"rounded-none"},x=t.textColor?t.textColor:"",f=e.computed(()=>{var V,C;return t.textColorHover?t.textColorHover:(V=t.textColor)!=null&&V.includes("white")||(C=t.textColor)!=null&&C.includes("50")?"hover:text-black":""});return`${u} ${k[t.variant]} ${g[t.size]} ${p[t.radius]} ${x} ${f.value}`}),a=u=>{t.disabled||d("click",u)};return(u,k)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),type:o.type,disabled:o.disabled||o.loading,onClick:a,"aria-label":o.ariaLabel},[o.loading?(e.openBlock(),e.createElementBlock("svg",Be,[...k[0]||(k[0]=[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),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)])])):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default"),l.value&&o.badge&&o.badge>0?(e.openBlock(),e.createElementBlock("span",Ve,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0)],10,we))}}),Ee=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"},d=(a,u)=>{const k=a.replace(/_/g,"-");switch(u){case"filled":return`material-symbols:${k}`;case"outlined":return`ic:outline-${k}`;case"rounded":return`ic:round-${k}`;case"sharp":return`ic:sharp-${k}`;case"two-tone":return`ic:twotone-${k}`;default:return`material-symbols:${k}`}},l=e.computed(()=>d(m.name,m.variant)),i=e.computed(()=>{const a=["inline-flex items-center justify-center select-none","transition-transform duration-200"];return m.color&&(m.color.startsWith("text-")||m.color.startsWith("fill-"))&&a.push(m.color),m.spin&&a.push("animate-spin"),a.join(" ")}),s=e.computed(()=>{const a={};if(t[m.size]?(a.fontSize=t[m.size],a.width=t[m.size],a.height=t[m.size]):(a.fontSize=m.size,a.width=m.size,a.height=m.size),m.color&&!m.color.startsWith("text-")&&!m.color.startsWith("fill-")&&(a.color=m.color),m.rotate!==0){const u=`rotate(${m.rotate}deg)`;a.transform=u}return a});return(a,u)=>(e.openBlock(),e.createBlock(e.unref(fe.Icon),{icon:l.value,class:e.normalizeClass(i.value),style:e.normalizeStyle(s.value),"aria-label":o.ariaLabel,role:o.ariaLabel?"img":void 0},null,8,["icon","class","style","aria-label","role"]))}}),A=F(Ee,[["__scopeId","data-v-5f982e5c"]]),Ne={key:0,class:"relative"},ze=["for"],Se={key:0,class:"text-danger-600"},De=["id","disabled","placeholder","value","required"],Me=["disabled"],Te={key:1,class:"relative"},Ie=["for"],Le={key:0,class:"text-danger-600"},je=["id","disabled","placeholder","value","required"],Fe=["disabled"],Oe={key:2,class:"space-y-2"},Ae={key:0,class:"text-danger-600"},We={class:"grid grid-cols-1 md:grid-cols-2 gap-2"},Pe=["disabled","placeholder","value","required"],Re=["disabled"],qe=["disabled","placeholder","value","required"],Ye=["disabled"],He={key:3,class:"mt-1 text-sm text-danger-600"},Ke={key:4,class:"mt-1 text-sm text-secondary-600"},Ue={class:"flex items-center justify-between mb-4"},Ge={class:"flex items-center space-x-2"},Je=["value"],Qe=["value"],Ze={class:"grid grid-cols-7 gap-1 mb-2"},Xe={class:"grid grid-cols-7 gap-1"},_e=["disabled","onClick"],et={class:"flex justify-end space-x-2 mt-4 pt-4 border-t border-secondary-100"},tt=["disabled"],ot=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},locale:{default:"es"},showWeekNumbers:{type:Boolean,default:!1},firstDayOfWeek:{default:1},yearsPerRow:{default:4},compact:{type:Boolean,default:!1}},emits:["update:modelValue","date-select","range-select","multiple-select"],setup(o,{emit:m}){const t=o,d=e.ref([]),l=m,i=e.ref(!1),s=e.ref(null),a=e.ref(new Date().getMonth()),u=e.ref(new Date().getFullYear()),k=e.ref(`calendar-${Math.random().toString(36).substr(2,9)}`),g=e.ref(null),p=e.ref(null),x=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],f=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],V=e.computed(()=>t.compact?{sm:"xs",md:"xs",lg:"sm"}[t.size]||"xs":{sm:"xs",md:"sm",lg:"md"}[t.size]||"sm"),C=e.computed(()=>{const v=new Date().getFullYear(),B=[];for(let z=v-100;z<=v+10;z++)B.push(z);return B}),E=e.computed(()=>"ds-label"),D=e.computed(()=>t.bordered?"border border-neutral-300":""),$=e.computed(()=>{const v="w-full rounded-md transition-colors focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",B={sm:t.compact?"px-2 py-1 pr-8 text-xs":"px-3 py-1.5 pr-10 text-sm",md:t.compact?"px-3 py-1.5 pr-10 text-sm":"px-4 py-2 pr-10 text-base",lg:t.compact?"px-4 py-2 pr-10 text-base":"px-5 py-3 pr-12 text-lg"},z={primary:"focus:ring-primary-500",secondary:"focus:ring-secondary-500"},I={default:"bg-white",filled:"bg-secondary-100",outlined:"bg-transparent"},W=t.error?"border-danger-600 focus:ring-danger-500":"";return`${v} ${B[t.size]} ${I[t.variant]} ${z[t.color]} ${W}`}),N=e.computed(()=>`transition-colors text-[#565656] hover:text-[#565656] opacity-80 hover:opacity-100 ${t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"}`),S=e.computed(()=>t.compact?"min-w-72 max-w-sm":"min-w-80 max-w-sm"),M=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]}`),y=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]}`),c=e.computed(()=>{const v={primary:"bg-primary-500 hover:bg-primary-600 focus:ring-primary-500",secondary:"bg-secondary-600 hover:bg-secondary-700 focus:ring-secondary-500"};return`${t.compact?"px-2 py-1 text-xs":"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 ${v[t.color]}`}),n=e.computed(()=>{const v={primary:"text-primary-600 hover:text-primary-700 hover:bg-primary-50",secondary:"text-secondary-600 hover:text-secondary-700 hover:bg-secondary-50"};return`${t.compact?"px-2 py-1 text-xs":"px-3 py-1.5 text-sm"} border border-secondary-300 rounded-md transition-colors focus:outline-none ${v[t.color]}`}),h=e.computed(()=>t.mode==="single"&&t.modelValue&&t.modelValue instanceof Date?L(t.modelValue):""),r=e.computed(()=>t.mode==="multiple"&&Array.isArray(t.modelValue)&&t.modelValue.length>0?t.modelValue.length===1?L(t.modelValue[0]):`${t.modelValue.length} fechas seleccionadas`:""),w=e.computed(()=>t.mode==="range"&&t.modelValue&&typeof t.modelValue=="object"&&"start"in t.modelValue&&t.modelValue.start?L(t.modelValue.start):""),b=e.computed(()=>t.mode==="range"&&t.modelValue&&typeof t.modelValue=="object"&&"end"in t.modelValue&&t.modelValue.end?L(t.modelValue.end):""),O=e.computed(()=>t.mode==="single"?g.value!==null:t.mode==="multiple"?d.value.length>0:g.value!==null&&p.value!==null&&p.value>=g.value);e.computed(()=>t.mode==="range"&&g.value&&p.value?p.value<g.value:!1);const T=e.computed(()=>{const v=new Date(u.value,a.value,1),B=new Date(u.value,a.value+1,0),z=v.getDay(),I=B.getDate(),W=[],P=new Date(u.value,a.value-1,0);for(let j=z-1;j>=0;j--){const R=new Date(u.value,a.value-1,P.getDate()-j);W.push({day:R.getDate(),date:R,isCurrentMonth:!1,disabled:!1,key:`prev-${R.getDate()}`})}for(let j=1;j<=I;j++){const R=new Date(u.value,a.value,j);W.push({day:j,date:R,isCurrentMonth:!0,disabled:!1,key:`current-${j}`})}const pe=42-W.length;for(let j=1;j<=pe;j++){const R=new Date(u.value,a.value+1,j);W.push({day:j,date:R,isCurrentMonth:!1,disabled:!1,key:`next-${j}`})}return W}),L=v=>{const B=v.getDate().toString().padStart(2,"0"),z=(v.getMonth()+1).toString().padStart(2,"0"),I=v.getFullYear();switch(t.dateFormat){case"MM/DD/YYYY":return`${z}/${B}/${I}`;case"YYYY-MM-DD":return`${I}-${z}-${B}`;case"DD/MM/YYYY":default:return`${B}/${z}/${I}`}},J=v=>{var z;const B=new Date(v.getFullYear(),v.getMonth(),v.getDate());if(t.minDate){const I=new Date(t.minDate.getFullYear(),t.minDate.getMonth(),t.minDate.getDate());if(B<I)return!0}if(t.maxDate){const I=new Date(t.maxDate.getFullYear(),t.maxDate.getMonth(),t.maxDate.getDate());if(B>I)return!0}return!!((z=t.disabledDates)!=null&&z.some(I=>I.toDateString()===v.toDateString()))},ne=v=>{const B="w-8 h-8 text-sm rounded-md transition-colors focus:outline-none";if(v.disabled||J(v.date))return`${B} text-secondary-400 cursor-not-allowed`;const z=re(v.date),I=se(v.date),W=ce(v.date),P={primary:{selected:"bg-primary-600 text-white",inRange:"bg-primary-100 text-primary-900",today:"bg-primary-50 text-primary-500 border border-primary-300",default:"text-secondary-700 hover:bg-primary-50 hover:text-primary-500",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 z?`${B} ${P[t.color].selected}`:I?`${B} ${P[t.color].inRange}`:W?`${B} ${P[t.color].today}`:v.isCurrentMonth?`${B} ${P[t.color].default}`:`${B} ${P[t.color].otherMonth}`},re=v=>t.mode==="single"?g.value?q(v,g.value):!1:t.mode==="multiple"?d.value.some(B=>q(v,B)):!!(g.value&&q(v,g.value))||!!(p.value&&q(v,p.value)),se=v=>{if(t.mode!=="range"||!g.value||!p.value)return!1;const B=g.value,z=p.value;return v>B&&v<z},ce=v=>q(v,new Date),q=(v,B)=>v.toDateString()===B.toDateString(),Q=()=>{t.disabled||i.value||Y()},Z=()=>{t.disabled||i.value||Y()},X=()=>{t.disabled||oe()},_=v=>{t.disabled||(H(v),i.value||Y())},ee=v=>{t.disabled||(H(v),i.value||Y())},te=v=>{t.disabled||(H(v),oe())},H=v=>{s.value=v},oe=()=>{t.disabled||(i.value=!i.value,i.value&&U())},Y=()=>{t.disabled||(i.value=!0,U())},K=()=>{i.value=!1,s.value=null},U=()=>{t.mode==="single"?(g.value=t.modelValue instanceof Date?t.modelValue:null,p.value=null):t.mode==="multiple"?d.value=Array.isArray(t.modelValue)?[...t.modelValue]:[]:t.modelValue&&typeof t.modelValue=="object"&&"start"in t.modelValue?(g.value=t.modelValue.start,p.value=t.modelValue.end):(g.value=null,p.value=null)},ie=v=>{if(t.mode==="single")g.value=v,p.value=null;else if(t.mode==="multiple"){const B=d.value.findIndex(z=>q(z,v));B>=0?d.value.splice(B,1):d.value.push(v)}else s.value==="start"||!g.value?(g.value=v,p.value=null,s.value="end"):(s.value==="end"||!p.value)&&(v<g.value?(p.value=g.value,g.value=v):p.value=v,s.value=null)},de=()=>{if(t.mode==="single")l("update:modelValue",g.value),g.value&&l("date-select",g.value);else if(t.mode==="multiple"){const v=[...d.value].sort((B,z)=>B.getTime()-z.getTime());l("update:modelValue",v),l("multiple-select",v)}else{const v={start:g.value,end:p.value};l("update:modelValue",v),l("range-select",v)}K()},ue=()=>{a.value===0?(a.value=11,u.value--):a.value--},me=()=>{a.value===11?(a.value=0,u.value++):a.value++},le=()=>{},G=e.ref(),ae=v=>{G.value&&!G.value.contains(v.target)&&K()};return e.onMounted(()=>{document.addEventListener("click",ae)}),e.onUnmounted(()=>{document.removeEventListener("click",ae)}),e.watch(()=>t.modelValue,v=>{i.value||U()},{deep:!0}),(v,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"calendarWrapperRef",ref:G,class:"calendar-wrapper"},[o.mode==="single"?(e.openBlock(),e.createElementBlock("div",Ne,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,for:k.value,class:e.normalizeClass(E.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Se,"*")):e.createCommentVNode("",!0)],10,ze)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",D.value])},[e.createElementVNode("input",{id:k.value,class:e.normalizeClass($.value),type:"text",disabled:o.disabled,placeholder:o.placeholder||"Seleccionar fecha",value:h.value,required:o.required,readonly:!0,onClick:Q,onFocus:Z},null,42,De),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",N.value]),onClick:e.withModifiers(X,["stop"]),disabled:o.disabled},[e.createVNode(A,{name:o.iconName,size:V.value},null,8,["name","size"])],10,Me)],2)])):o.mode==="multiple"?(e.openBlock(),e.createElementBlock("div",Te,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,for:k.value,class:e.normalizeClass(E.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Le,"*")):e.createCommentVNode("",!0)],10,Ie)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",D.value])},[e.createElementVNode("input",{id:k.value,class:e.normalizeClass($.value),type:"text",disabled:o.disabled,placeholder:o.placeholder||"Seleccionar fechas",value:r.value,required:o.required,readonly:!0,onClick:Q,onFocus:Z},null,42,je),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",N.value]),onClick:e.withModifiers(X,["stop"]),disabled:o.disabled},[e.createVNode(A,{name:o.iconName,size:V.value},null,8,["name","size"])],10,Fe)],2)])):(e.openBlock(),e.createElementBlock("div",Oe,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass(E.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Ae,"*")):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",We,[e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",D.value])},[e.createElementVNode("input",{class:e.normalizeClass($.value),type:"text",disabled:o.disabled,placeholder:o.startPlaceholder||"Fecha desde",value:w.value,required:o.required,readonly:!0,onClick:B[0]||(B[0]=()=>_("start")),onFocus:B[1]||(B[1]=()=>ee("start"))},null,42,Pe),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",N.value]),onClick:B[2]||(B[2]=e.withModifiers(()=>te("start"),["stop"])),disabled:o.disabled},[e.createVNode(A,{name:o.startIconName,size:V.value},null,8,["name","size"])],10,Re)],2),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",D.value])},[e.createElementVNode("input",{class:e.normalizeClass($.value),type:"text",disabled:o.disabled,placeholder:o.endPlaceholder||"Fecha hasta",value:b.value,required:o.required,readonly:!0,onClick:B[3]||(B[3]=()=>_("end")),onFocus:B[4]||(B[4]=()=>ee("end"))},null,42,qe),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",N.value]),onClick:B[5]||(B[5]=e.withModifiers(()=>te("end"),["stop"])),disabled:o.disabled},[e.createVNode(A,{name:o.endIconName,size:V.value},null,8,["name","size"])],10,Ye)],2)])])),o.error?(e.openBlock(),e.createElementBlock("p",He,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Ke,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",{key:5,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",S.value]),onClick:B[8]||(B[8]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Ue,[e.createElementVNode("button",{type:"button",onClick:ue,class:e.normalizeClass(M.value)},[e.createVNode(A,{name:"chevron-left",size:"sm"})],2),e.createElementVNode("div",Ge,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":B[6]||(B[6]=z=>a.value=z),class:e.normalizeClass(y.value),onChange:le},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(x,(z,I)=>e.createElementVNode("option",{key:I,value:I},e.toDisplayString(z),9,Je)),64))],34),[[e.vModelSelect,a.value]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":B[7]||(B[7]=z=>u.value=z),class:e.normalizeClass(y.value),onChange:le},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,z=>(e.openBlock(),e.createElementBlock("option",{key:z,value:z},e.toDisplayString(z),9,Qe))),128))],34),[[e.vModelSelect,u.value]])]),e.createElementVNode("button",{type:"button",onClick:me,class:e.normalizeClass(M.value)},[e.createVNode(A,{name:"chevron-right",size:"sm"})],2)]),e.createElementVNode("div",Ze,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,z=>e.createElementVNode("div",{key:z,class:"text-center text-sm font-medium text-secondary-600 py-2"},e.toDisplayString(z),1)),64))]),e.createElementVNode("div",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,z=>(e.openBlock(),e.createElementBlock("button",{key:z.key,type:"button",class:e.normalizeClass(ne(z)),disabled:z.disabled||J(z.date),onClick:I=>ie(z.date)},e.toDisplayString(z.day),11,_e))),128))]),e.createElementVNode("div",et,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(n.value),onClick:K}," Cancelar ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(c.value),onClick:de,disabled:!O.value}," Confirmar ",10,tt)])],2)):e.createCommentVNode("",!0)],512))}}),lt=F(ot,[["__scopeId","data-v-18f461f5"]]),at=["role","tabindex"],nt=e.defineComponent({__name:"Card",props:{shadow:{default:"md"},rounded:{default:"lg"},bordered:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:m}){const t=o,d=m,l={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"},s=e.computed(()=>["w-full bg-white",l[t.shadow],i[t.rounded],t.bordered?"border border-gray-200":"",t.hoverable||t.clickable?"transition-all duration-200":"",t.hoverable?"hover:shadow-lg":"",t.clickable&&!t.disabled?"cursor-pointer hover:shadow-lg":"",t.clickable&&t.disabled?"opacity-50 cursor-not-allowed":""]),a=u=>{!t.disabled&&t.clickable&&d("click",u)};return(u,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),role:o.clickable?"button":void 0,tabindex:o.clickable?0:void 0,onClick:a,onKeydown:[e.withKeys(a,["enter"]),e.withKeys(a,["space"])]},[u.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.compact?"px-4 py-2":"px-6 py-4","border-b border-gray-100"])},[e.renderSlot(u.$slots,"header")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.compact?"px-4 py-2":"px-6 py-4")},[e.renderSlot(u.$slots,"default")],2),u.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([t.compact?"px-4 py-2":"px-6 py-4","border-t border-gray-100 bg-gray-50"])},[e.renderSlot(u.$slots,"footer")],2)):e.createCommentVNode("",!0)],42,at))}}),rt={class:"flex items-center justify-between border-b border-gray-100/60 px-8 py-6"},st={class:"text-xl font-semibold text-gray-900"},ct=["disabled"],it={class:"px-8 py-6"},dt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/50 rounded-lg"},ut=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},title:{default:"Diálogo"},size:{default:"md"},closeOnBackdrop:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},emits:["update:modelValue","close"],setup(o,{emit:m}){const t=o,d=m,l=e.computed({get:()=>t.modelValue,set:u=>d("update:modelValue",u)}),i=e.computed(()=>({sm:"sm:max-w-sm",md:"sm:max-w-lg md:max-w-2xl",lg:"sm:max-w-2xl md:max-w-4xl",xl:"sm:max-w-4xl md:max-w-6xl"})[t.size]),s=()=>{t.loading||(l.value=!1,d("close"))},a=()=>{t.closeOnBackdrop&&!t.loading&&s()};return(u,k)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"dialog"},{default:e.withCtx(()=>[l.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:a},[e.createElementVNode("div",{class:e.normalizeClass(["relative w-full rounded-lg bg-white shadow-xl",i.value]),onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",rt,[e.createElementVNode("h2",st,[e.renderSlot(u.$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",disabled:o.loading,onClick:s},[...k[1]||(k[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)])],8,ct)]),e.createElementVNode("div",it,[e.renderSlot(u.$slots,"default",{},void 0,!0)]),o.loading?(e.openBlock(),e.createElementBlock("div",dt,[...k[2]||(k[2]=[e.createElementVNode("div",{class:"flex items-center gap-2 text-primary-600"},[e.createElementVNode("svg",{class:"w-5 h-5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),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"})]),e.createElementVNode("span",{class:"text-sm font-medium"},"Cargando...")],-1)])])):e.createCommentVNode("",!0),u.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["border-t border-gray-100 px-8 py-6 bg-gray-50",{"opacity-50 pointer-events-none":o.loading}])},[e.renderSlot(u.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)]),_:3})]))}}),mt=F(ut,[["__scopeId","data-v-ea6db288"]]),pt=["accept","multiple","disabled"],ft={class:"flex flex-col items-center justify-center gap-4 text-center"},bt=["src","alt"],gt={key:1,class:"w-full h-full text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},vt={class:"text-center"},yt={class:"text-base font-medium text-gray-700"},ht={class:"text-primary-500"},xt={class:"flex items-center gap-3 flex-1 min-w-0"},kt={class:"flex-1 min-w-0"},Ct={class:"text-sm font-medium text-gray-900 truncate"},wt={class:"text-xs text-gray-500"},Bt={key:1,class:"text-xs text-gray-500 mt-2"},Vt={key:2,class:"text-sm text-danger-500 mt-2"},$t=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},autoUpload:{type:Boolean,default:!1},uploadUrl:{default:void 0},uploadMethod:{default:"POST"},showFileList:{type:Boolean,default:!0},directory:{type:Boolean,default:!1},progress:{default:0}},emits:["update:modelValue","change","error"],setup(o,{emit:m}){const t=o,d=m,l=e.ref(null),i=e.ref(!1),s=e.ref(t.modelValue),a=e.ref(""),u=e.computed(()=>({sm:"w-20 h-20",md:"w-32 h-32",lg:"w-48 h-48",xl:"w-64 h-64"})[t.illustrationSize]),k=()=>{var $;($=l.value)==null||$.click()},g=()=>{t.disabled||k()},p=$=>{t.disabled||(i.value=!0)},x=()=>{i.value=!1},f=$=>{if(a.value="",t.maxSize&&$.size>t.maxSize){const N=(t.maxSize/1048576).toFixed(2);return a.value=`El archivo excede el tamaño máximo de ${N}MB`,d("error",a.value),!1}return!0},V=$=>{var M;const S=(M=$.target.files)==null?void 0:M[0];S&&f(S)&&(s.value=S,d("update:modelValue",S),d("change",S))},C=$=>{var S;i.value=!1;const N=(S=$.dataTransfer)==null?void 0:S.files[0];N&&f(N)&&(s.value=N,d("update:modelValue",N),d("change",N))},E=()=>{s.value=null,a.value="",l.value&&(l.value.value=""),d("update:modelValue",null),d("change",null)},D=$=>{if($===0)return"0 Bytes";const N=1024,S=["Bytes","KB","MB","GB"],M=Math.floor(Math.log($)/Math.log(N));return Math.round($/Math.pow(N,M)*100)/100+" "+S[M]};return($,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative border-2 border-dashed rounded-lg p-8 transition-colors",[i.value?"border-primary-500 bg-primary-50":"border-gray-300 bg-white hover:border-primary-500",o.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]]),onClick:g,onDragover:e.withModifiers(p,["prevent"]),onDragleave:e.withModifiers(x,["prevent"]),onDrop:e.withModifiers(C,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:l,type:"file",accept:o.accept,multiple:o.multiple,disabled:o.disabled,class:"hidden",onChange:V},null,40,pt),e.createElementVNode("div",ft,[e.createElementVNode("div",{class:e.normalizeClass([u.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,bt)):(e.openBlock(),e.createElementBlock("svg",gt,[...N[1]||(N[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",vt,[e.createElementVNode("p",yt,[e.createTextVNode(e.toDisplayString(o.mainText)+" ",1),e.createElementVNode("span",ht,e.toDisplayString(o.linkText),1)])]),s.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:N[0]||(N[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",xt,[N[2]||(N[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",kt,[e.createElementVNode("p",Ct,e.toDisplayString(s.value.name),1),e.createElementVNode("p",wt,e.toDisplayString(D(s.value.size)),1)])]),o.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(E,["stop"]),class:"ml-3 text-gray-400 hover:text-danger-500 transition-colors"},[...N[3]||(N[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",Bt,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("p",Vt,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])],34))}}),Et={class:"input-wrapper"},Nt=["for"],zt={key:0,class:"text-danger-600"},St={class:"relative flex items-center"},Dt=["id","type","disabled","placeholder","value","required","readonly"],Mt={key:1,class:"absolute right-3 flex items-center gap-2"},Tt={key:2,class:"absolute right-3 top-1/2 -translate-y-1/2 text-danger-600"},It={key:1,class:"mt-1 text-sm text-danger-600"},Lt={key:2,class:"text-sm",style:{color:"#565656"}},jt=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:{},clearable:{type:Boolean,default:!1},prefix:{default:void 0},suffix:{default:void 0},compact:{type:Boolean,default:!1}},emits:["update:modelValue","blur","focus","clear"],setup(o,{emit:m}){const t=o,d=m,l=e.ref(`input-${Math.random().toString(36).substr(2,9)}`),i=e.computed(()=>"ds-label"),s=e.computed(()=>{const x="w-full rounded-md transition-all focus:outline-none focus:ring-2 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",f={sm:t.compact?"h-6 px-2 text-xs":"h-8 px-3 text-sm",md:t.compact?"h-8 px-3 text-sm":"h-10 px-4 text-base",lg:t.compact?"h-10 px-4 text-base":"h-12 px-5 text-lg"},V=t.prefix?"pl-9":"",C=t.clearable||t.error&&!t.suffix&&!t.clearable?"pr-10":"";return`${x} ${f[t.size]} ${V} ${C} bg-white border rounded-md transition-all`}),a=e.computed(()=>{const x=t.error?"#dc2626":"#565656",f=t.variant==="outlined"?"2px":"1px";return t.error,t.error,{borderColor:x,borderWidth:f,borderStyle:"solid"}}),u=x=>{const f=x.target;d("update:modelValue",f.value)},k=x=>{d("blur",x)},g=x=>{d("focus",x)},p=()=>{d("update:modelValue",""),d("clear")};return(x,f)=>(e.openBlock(),e.createElementBlock("div",Et,[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:l.value,class:e.normalizeClass(i.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",zt,"*")):e.createCommentVNode("",!0)],10,Nt)):e.createCommentVNode("",!0),e.createElementVNode("div",St,[o.prefix?(e.openBlock(),e.createElementBlock("span",{key:0,class:"absolute left-3 text-sm",style:e.normalizeStyle({color:o.error?"#dc2626":"#565656"})},e.toDisplayString(o.prefix),5)):e.createCommentVNode("",!0),e.createElementVNode("input",{id:l.value,class:e.normalizeClass(s.value),style:e.normalizeStyle(a.value),type:o.type,disabled:o.disabled,placeholder:o.placeholder,value:o.modelValue,required:o.required,readonly:o.readonly,onInput:u,onBlur:k,onFocus:g},null,46,Dt),o.clearable||o.suffix?(e.openBlock(),e.createElementBlock("div",Mt,[o.clearable&&o.modelValue?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"transition-colors",style:e.normalizeStyle({color:o.error?"#dc2626":"#565656",cursor:"pointer",opacity:"1"}),"aria-label":"Limpiar",onClick:p},[...f[0]||(f[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor"},[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)])],4)):e.createCommentVNode("",!0),o.suffix&&!o.clearable?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-sm",style:e.normalizeStyle({color:o.error?"#dc2626":"#565656"})},e.toDisplayString(o.suffix),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.error&&!o.suffix&&!o.clearable?(e.openBlock(),e.createElementBlock("span",Tt,[...f[1]||(f[1]=[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",It,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Lt,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0)]))}}),Ft=F(jt,[["__scopeId","data-v-37a70082"]]),Ot=["stroke-width"],At={class:"w-full h-full rounded-lg overflow-hidden",style:{"background-color":"#f7f7f7"}},Wt=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"},d={primary:"bg-primary-700",secondary:"bg-secondary-500",success:"bg-success-500",warning:"bg-warning-500",danger:"bg-danger-500",info:"bg-info-500"},l=e.computed(()=>[t[m.color]]),i=e.computed(()=>[d[m.color]]);return(s,a)=>o.type==="circular"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.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,Ot),a[0]||(a[0]=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1))],4))],2)):o.type==="linear"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full",style:e.normalizeStyle({height:o.height})},[e.createElementVNode("div",At,[e.createElementVNode("div",{class:e.normalizeClass([[i.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)}}),Pt=F(Wt,[["__scopeId","data-v-f369fb46"]]),Rt=["disabled","aria-expanded"],qt=["disabled","onClick"],Yt={key:0,class:"flex-shrink-0"},Ht={class:"flex-1 min-w-0 mr-2"},Kt={class:"flex flex-col items-start"},Ut=["title"],Gt=["title"],Jt={key:1,class:"flex-shrink-0"},Qt={key:0,class:"text-xs text-secondary-400 font-mono whitespace-nowrap"},Zt={key:1},Xt={key:2,class:"w-4 h-4 ml-2 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},_t=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},size:{default:"md"},closeOnSelect:{type:Boolean,default:!0},openDelay:{default:0},closeDelay:{default:100}},emits:["open","close","select"],setup(o,{emit:m}){let t=null,d=null;const l=o,i=m,s=e.ref(!1),a=e.ref(null),u=e.ref(null),k=e.ref({}),g=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(" ")),p=e.computed(()=>[...["fixed bg-white rounded-lg shadow-lg border border-secondary-200","flex flex-col","focus:outline-none"],`z-${l.zIndex}`].join(" ")),x=e.computed(()=>"px-4 py-3 border-b border-secondary-200 bg-secondary-50"),f=e.computed(()=>"px-4 py-3 border-t border-secondary-200 bg-secondary-50"),V=e.computed(()=>"py-1 overflow-y-auto flex-1 min-h-0"),C=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"),D=r=>{const w=["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",O={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 T="";return r.color&&(T=r.color,(r.color.includes("white")||r.color.includes("50"))&&(T+=" hover:text-black")),[...w,T||O[b]].join(" ")},$=()=>{l.disabled||(s.value?S():(d&&clearTimeout(d),t=setTimeout(()=>{N()},l.openDelay)))},N=()=>{s.value=!0,i("open"),e.nextTick(()=>{h(),document.addEventListener("click",y),document.addEventListener("keydown",c)})},S=()=>{t&&clearTimeout(t),d=setTimeout(()=>{s.value=!1,i("close"),document.removeEventListener("click",y),document.removeEventListener("keydown",c)},l.closeDelay)},M=r=>{r.disabled||(r.action&&r.action(),i("select",r),(l.closeOnClick||l.closeOnSelect)&&!r.children&&S())},y=r=>{const w=r.target;a.value&&!a.value.contains(w)&&u.value&&!u.value.contains(w)&&S()},c=r=>{r.key==="Escape"&&S()},n=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),$())},h=()=>{if(!a.value||!u.value)return;const r=a.value.getBoundingClientRect(),w=u.value.getBoundingClientRect(),b=window.innerWidth,O=window.innerHeight;let T=0,L=0;switch(l.position){case"bottom-start":T=r.bottom+l.offset.y,L=r.left+l.offset.x;break;case"bottom-end":T=r.bottom+l.offset.y,L=r.right-w.width+l.offset.x;break;case"top-start":T=r.top-w.height-l.offset.y,L=r.left+l.offset.x;break;case"top-end":T=r.top-w.height-l.offset.y,L=r.right-w.width+l.offset.x;break;case"right-start":T=r.top+l.offset.y,L=r.right+l.offset.x;break;case"right-end":T=r.bottom-w.height+l.offset.y,L=r.right+l.offset.x;break;case"left-start":T=r.top+l.offset.y,L=r.left-w.width-l.offset.x;break;case"left-end":T=r.bottom-w.height+l.offset.y,L=r.left-w.width-l.offset.x;break}L+w.width>b&&(L=b-w.width-8),L<8&&(L=8),T+w.height>O&&(T=O-w.height-8),T<8&&(T=8),k.value={top:`${T}px`,left:`${L}px`,width:l.width==="auto"?`${Math.max(r.width,240)}px`:l.width,maxHeight:l.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",y),document.removeEventListener("keydown",c)}),e.watch(()=>l.items,()=>{s.value&&e.nextTick(h)},{deep:!0}),(r,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper",{"w-full":o.fullWidth}])},[e.createElementVNode("div",{ref_key:"triggerRef",ref:a},[e.renderSlot(r.$slots,"trigger",{isOpen:s.value,toggle:$},()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(g.value),disabled:o.disabled,onClick:$,onKeydown:n,tabindex:0,role:"button","aria-expanded":s.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",s.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...w[1]||(w[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,Rt)],!0)],512),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:u,class:e.normalizeClass(p.value),style:e.normalizeStyle(k.value),onClick:w[0]||(w[0]=e.withModifiers(()=>{},["stop"]))},[r.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(x.value)},[e.renderSlot(r.$slots,"header",{close:S},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(V.value)},[e.renderSlot(r.$slots,"default",{close:S,isOpen:s.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(b,O)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:b.id||O},[b.type==="divider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(C.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(D(b)),disabled:b.disabled,onClick:T=>M(b)},[b.icon||r.$slots[`icon-${b.id}`]?(e.openBlock(),e.createElementBlock("span",Yt,[e.renderSlot(r.$slots,`icon-${b.id}`,{item:b},()=>[typeof b.icon=="string"?(e.openBlock(),e.createBlock(A,{key:0,name:b.icon,size:"sm"},null,8,["name"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.icon),{key:1,class:"w-5 h-5"}))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ht,[e.renderSlot(r.$slots,`item-${b.id}`,{item:b,close:S},()=>[e.createElementVNode("div",Kt,[e.createElementVNode("span",{class:"truncate w-full",title:b.label},e.toDisplayString(b.label),9,Ut),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,Gt)):e.createCommentVNode("",!0)])],!0)]),b.suffix||b.shortcut||r.$slots[`suffix-${b.id}`]?(e.openBlock(),e.createElementBlock("span",Jt,[e.renderSlot(r.$slots,`suffix-${b.id}`,{item:b},()=>[b.shortcut?(e.openBlock(),e.createElementBlock("span",Qt,e.toDisplayString(b.shortcut),1)):b.suffix?(e.openBlock(),e.createElementBlock("span",Zt,e.toDisplayString(b.suffix),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),b.children&&b.children.length>0?(e.openBlock(),e.createElementBlock("svg",Xt,[...w[2]||(w[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,qt))],64))),128))],!0)],2),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(f.value)},[e.renderSlot(r.$slots,"footer",{close:S},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.value&&o.overlay?(e.openBlock(),e.createElementBlock("div",{key:1,class:"fixed inset-0 bg-black/20 z-40",onClick:S})):e.createCommentVNode("",!0)]))],2))}}),eo=F(_t,[["__scopeId","data-v-ad88f878"]]),to=["for"],oo={key:0,class:"text-danger-600"},lo=["id","disabled","aria-expanded"],ao={class:"flex-1 text-left truncate"},no={key:0,class:"flex items-center justify-center gap-2 p-6 text-secondary-600"},ro={key:1,class:"p-2 border-b border-secondary-200"},so=["placeholder"],co={key:2,class:"max-h-64 overflow-y-auto"},io={key:0,class:"px-4 py-3 text-sm text-secondary-500 text-center"},uo=["onClick"],mo={class:"flex items-center justify-between w-full"},po={class:"truncate"},fo={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"},bo={key:0,class:"border-t border-secondary-200 my-1"},go=["onClick"],vo=["innerHTML"],yo={key:1,class:"mt-1 text-sm text-danger-600"},ho={key:2,class:"mt-1 text-sm text-secondary-600"},xo=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},loading:{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},compact:{type:Boolean,default:!1}},emits:["update:modelValue","change","action"],setup(o,{emit:m}){const t=o,d=m,l=e.ref(!1),i=e.ref(""),s=e.ref(null),a=e.computed(()=>`select-${Math.random().toString(36).substr(2,9)}`),u=e.computed(()=>t.options.find(c=>c.value===t.modelValue)||null),k=e.computed(()=>{if(!t.searchable||!i.value)return t.options;const c=i.value.toLowerCase();return t.options.filter(n=>n.label.toLowerCase().includes(c))}),g=e.computed(()=>"ds-label"),p=e.computed(()=>t.bordered?"border border-neutral-300 rounded-md":"rounded-md"),x=e.computed(()=>{const c="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",n={sm:t.compact?"px-2 py-1 text-xs":"px-3 py-1.5 text-sm",md:t.compact?"px-3 py-1.5 text-sm":"px-4 py-2 text-base",lg:t.compact?"px-4 py-2 text-base":"px-5 py-3 text-lg"},h={default:"bg-white",outline:"bg-transparent",filled:"bg-secondary-100"},r=t.error?"border-danger-600 focus:ring-danger-500":"";return[c,n[t.size],h[t.variant],r].join(" ")}),f=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`),V=c=>{const n="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",h=E(c)?"bg-primary-50":"";return[n,h].join(" ")},C=c=>{const n="w-full px-4 py-2 text-left text-sm font-semibold transition-colors focus:outline-none flex items-center gap-3";return c.variant==="danger"?`${n} text-danger-600 hover:bg-danger-50 focus:bg-danger-50`:`${n} text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50`},E=c=>c.value===t.modelValue,D=()=>{t.disabled||t.loading||(l.value=!l.value,l.value&&t.searchable&&e.nextTick(()=>{var c;(c=s.value)==null||c.focus()}))},$=()=>{l.value=!1,i.value=""},N=c=>{c.disabled||(d("update:modelValue",c.value),d("change",c),$())},S=c=>{c.action&&c.action(),d("action",c),$()},M=c=>{const n=c.relatedTarget;n&&n.closest(".select-wrapper")||setTimeout(()=>{$()},200)},y=c=>{c.key==="Escape"?$():(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),D())};return e.watch(l,c=>{c&&(i.value="")}),(c,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-wrapper",{"w-full":o.fullWidth}])},[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:a.value,class:e.normalizeClass(g.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",oo,"*")):e.createCommentVNode("",!0)],10,to)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative",p.value])},[e.createElementVNode("button",{id:a.value,type:"button",class:e.normalizeClass(x.value),disabled:o.disabled,"aria-expanded":l.value,"aria-haspopup":!0,onClick:D,onBlur:M,onKeydown:y},[e.createElementVNode("span",ao,e.toDisplayString(u.value?u.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",l.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[...n[3]||(n[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,lo),l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(f.value),onClick:n[2]||(n[2]=e.withModifiers(()=>{},["stop"]))},[o.loading?(e.openBlock(),e.createElementBlock("div",no,[...n[4]||(n[4]=[e.createElementVNode("svg",{class:"w-5 h-5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),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"})],-1),e.createElementVNode("span",null,"Cargando...",-1)])])):o.searchable?(e.openBlock(),e.createElementBlock("div",ro,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:s,"onUpdate:modelValue":n[0]||(n[0]=h=>i.value=h),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:n[1]||(n[1]=e.withModifiers(()=>{},["stop"]))},null,40,so),[[e.vModelText,i.value]])])):e.createCommentVNode("",!0),o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",co,[k.value.length===0?(e.openBlock(),e.createElementBlock("div",io,e.toDisplayString(o.emptyText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,h=>(e.openBlock(),e.createElementBlock("button",{key:h.value,type:"button",class:e.normalizeClass(V(h)),onClick:r=>N(h)},[e.createElementVNode("div",mo,[e.createElementVNode("span",po,e.toDisplayString(h.label),1),E(h)?(e.openBlock(),e.createElementBlock("svg",fo,[...n[5]||(n[5]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)])],10,uo))),128)),o.actionItems.length>0?(e.openBlock(),e.createElementBlock("div",bo)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actionItems,h=>(e.openBlock(),e.createElementBlock("button",{key:h.id,type:"button",class:e.normalizeClass(C(h)),onClick:r=>S(h)},[h.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:h.icon},null,8,vo)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(h.label),1)],10,go))),128))],64))]))],2)):e.createCommentVNode("",!0)],2),o.error?(e.openBlock(),e.createElementBlock("p",yo,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",ho,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:$,class:"fixed inset-0 z-40"})):e.createCommentVNode("",!0)],2))}}),ko=F(xo,[["__scopeId","data-v-7fce9a5d"]]),Co=["title"],wo={key:0,class:"space-y-1"},Bo=["href","onClick","aria-current"],Vo={key:2},$o=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"},items:{default:()=>[]},activeItem:{default:null},keepOpen:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1},mini:{type:Boolean,default:!1},miniWidth:{default:"5rem"},bordered:{type:Boolean,default:!1},scrimOpacity:{default:.5}},emits:["update:modelValue","update:activeItem","update:collapsed","close","open","itemClick","toggleCollapse"],setup(o,{emit:m}){const t=o,d=e.ref(t.collapsed),l=e.computed(()=>t.mini||d.value),i=m,s=e.computed({get:()=>t.modelValue,set:y=>i("update:modelValue",y)}),a=(y=!1)=>{const c=t.keepOpen&&!y;!t.persistent&&!c&&(s.value=!1,i("close"))},u=()=>{d.value=!d.value,i("update:collapsed",d.value),i("toggleCollapse")};e.watch(()=>t.collapsed,y=>{d.value=y},{immediate:!0});const k=(y,c)=>{c.id&&i("update:activeItem",c.id),c.onClick&&(y.preventDefault(),c.onClick(c)),i("itemClick",c),!t.keepOpen&&!t.persistent&&a()},g=y=>y.active!==void 0?y.active:t.activeItem&&y.id?t.activeItem===y.id:!1,p=y=>{const c=l.value?"flex items-center justify-center p-3 rounded-lg transition-all duration-200":"flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-200 text-sm font-medium",n=g(y)?l.value?"bg-primary-100 text-primary-700":"bg-primary-100 text-primary-700 border-l-4 border-primary-600":"text-gray-700 hover:bg-gray-100 hover:text-gray-900";return`${c} ${n}`},x=y=>{const c="w-5 h-5 flex-shrink-0",n=g(y)?"text-primary-600":"text-gray-500";return`${c} ${n}`},f=e.computed(()=>t.position==="left"?"slide-right":"slide-left"),V=e.computed(()=>{const y="fixed top-0 h-full z-50 flex flex-col w-full max-w-full sm:max-w-none transition-all duration-300",c=t.position==="left"?"left-0":"right-0",n=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)]":"",h=t.bordered?"border-r border-gray-200":"";return[y,c,n,h].filter(Boolean).join(" ")}),C=e.computed(()=>({width:"100%",maxWidth:t.mini||d.value?t.miniWidth:t.width,backgroundColor:t.backgroundColor,top:t.overlayTop,height:t.overlayTop!=="0"?`calc(100vh - ${t.overlayTop})`:"100vh"})),E={none:"",sm:"p-2",md:"p-4",lg:"p-6"},D=e.computed(()=>`flex items-center justify-between border-b border-gray-200 ${l.value?"p-2":E[t.padding]}`),$=e.computed(()=>l.value?"flex gap-1 items-center":"flex gap-2 items-center"),N=e.computed(()=>l.value?"p-1.5 hover:bg-gray-100 rounded-md transition-colors":"p-2 hover:bg-gray-100 rounded-md transition-colors"),S=e.computed(()=>`flex-1 overflow-y-auto ${E[t.padding]}`),M=e.computed(()=>`border-t border-gray-200 ${E[t.padding]}`);return(y,c)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[s.value&&o.overlay&&!o.keepOpen?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:c[0]||(c[0]=n=>a()),class:"fixed inset-0 z-40",style:e.normalizeStyle({top:o.overlayTop,backgroundColor:`rgba(0, 0, 0, ${o.scrimOpacity||.5})`})},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:f.value},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(V.value),style:e.normalizeStyle(C.value)},[y.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(D.value)},[e.renderSlot(y.$slots,"header",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass($.value)},[o.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u,class:e.normalizeClass(N.value),title:d.value?"Expandir":"Contraer","aria-label":"Toggle sidebar collapse"},[...c[2]||(c[2]=[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:"M15 19l-7-7 7-7"})],-1)])],10,Co)):e.createCommentVNode("",!0),o.closable?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:c[1]||(c[1]=n=>a(!0)),class:e.normalizeClass(N.value),"aria-label":"Cerrar menú"},[...c[3]||(c[3]=[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)])],2)):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(S.value)},[o.items&&o.items.length?(e.openBlock(),e.createElementBlock("nav",wo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,n=>(e.openBlock(),e.createElementBlock("a",{key:n.id||n.label,href:n.href,onClick:h=>k(h,n),class:e.normalizeClass(p(n)),"aria-current":g(n)?"page":void 0},[n.icon&&typeof n.icon=="string"?(e.openBlock(),e.createBlock(A,{key:0,name:n.icon,size:"md",class:e.normalizeClass(x(n))},null,8,["name","class"])):n.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{key:1,class:e.normalizeClass(x(n))},null,8,["class"])):e.createCommentVNode("",!0),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Vo,e.toDisplayString(n.label),1))],10,Bo))),128))])):e.createCommentVNode("",!0),e.renderSlot(y.$slots,"default",{},void 0,!0)],2),y.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(M.value)},[e.renderSlot(y.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),Eo=F($o,[["__scopeId","data-v-1431a87b"]]),No={class:"w-full space-y-4"},zo={class:"flex flex-col gap-3 md:hidden"},So={key:0,class:"flex items-center gap-2 px-1 text-sm text-gray-600"},Do=["checked","indeterminate"],Mo={key:0,class:"flex items-center gap-2 pb-2"},To=["checked","onChange","aria-label"],Io={class:"text-[11px] uppercase tracking-wide text-gray-400"},Lo={class:"text-sm text-gray-700"},jo={key:1,class:"rounded-lg border border-dashed border-gray-200 bg-white p-4 text-gray-400 text-center"},Fo={class:"hidden md:block w-full overflow-x-auto"},Oo={class:"w-full border-collapse"},Ao={class:"w-full"},Wo={key:0,class:"px-3 py-3 text-left text-xs font-semibold text-gray-700 border-l border-gray-100 first:border-l-0 w-10"},Po=["checked","indeterminate"],Ro=["onClick"],qo={class:"flex items-center gap-2"},Yo={key:0,class:"text-xs text-gray-400"},Ho={key:0},Ko={key:1},Uo={class:"w-full"},Go=["checked","onChange","aria-label"],Jo={key:0,class:"flex items-center justify-center py-12 text-gray-400"},Qo={key:0,class:"w-full px-6 py-4 bg-white"},Zo=e.defineComponent({__name:"Table",props:{columns:{},data:{},headerClass:{default:void 0},headerCellClass:{default:void 0},cellClass:{default:void 0},rowClass:{default:void 0},selectable:{type:Boolean,default:!1},selectedKeys:{default:()=>[]},rowKey:{default:"id"},striped:{type:Boolean,default:!1},density:{default:"normal"},hover:{type:Boolean,default:!0}},emits:["update:selectedKeys"],setup(o,{emit:m}){const t=o,d=e.computed(()=>({compact:"py-1.5",normal:"py-3",spacious:"py-5"})[t.density]),l=e.computed(()=>t.striped),i=e.computed(()=>t.hover),s=m,a=e.ref(null),u=e.ref("asc"),k=n=>{a.value===n?u.value=u.value==="asc"?"desc":"asc":(a.value=n,u.value="asc")},g=e.computed(()=>{if(!a.value)return t.data;const n=[...t.data];return n.sort((h,r)=>{const w=h[a.value],b=r[a.value];return typeof w=="string"&&typeof b=="string"?u.value==="asc"?w.localeCompare(b):b.localeCompare(w):typeof w=="number"&&typeof b=="number"?u.value==="asc"?w-b:b-w:0}),n}),p=e.computed(()=>t.columns.filter(n=>!n.hideOnMobile)),x=e.computed(()=>t.selectable),f=e.computed({get:()=>t.selectedKeys||[],set:n=>s("update:selectedKeys",n)}),V=(n,h)=>{const r=t.rowKey;return(r&&n?n[r]:void 0)??h},C=e.computed(()=>g.value.map((n,h)=>V(n,h))),E=e.computed(()=>C.value.length>0&&C.value.every(n=>f.value.includes(n))),D=e.computed(()=>!E.value&&f.value.length>0),$=n=>{x.value&&(f.value=n?[...C.value]:[])},N=(n,h)=>{const r=V(n,h);return f.value.includes(r)},S=(n,h,r)=>{if(!x.value)return;const w=V(n,h),b=new Set(f.value);r?b.add(w):b.delete(w),f.value=Array.from(b)},M=n=>{const h=n.target;return!!(h!=null&&h.checked)},y=n=>{$(M(n))},c=(n,h,r)=>{S(n,h,M(r))};return(n,h)=>(e.openBlock(),e.createElementBlock("div",No,[e.createElementVNode("div",zo,[x.value?(e.openBlock(),e.createElementBlock("div",So,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary-600 focus:ring-primary-500",checked:E.value,indeterminate:D.value,onChange:y,"aria-label":"Seleccionar todas las filas"},null,40,Do),h[0]||(h[0]=e.createElementVNode("span",null,"Seleccionar todas",-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(r,w)=>(e.openBlock(),e.createElementBlock("div",{key:`card-${w}`,class:"rounded-lg border border-gray-200 bg-white p-4 shadow-sm"},[x.value?(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary-600 focus:ring-primary-500",checked:N(r,w),onChange:b=>c(r,w,b),"aria-label":`Seleccionar fila ${w+1}`},null,40,To),h[1]||(h[1]=e.createElementVNode("span",{class:"text-sm text-gray-700"},"Seleccionar fila",-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,b=>(e.openBlock(),e.createElementBlock("div",{key:`card-${w}-${b.key}`,class:"flex flex-col gap-1 py-1"},[e.createElementVNode("span",Io,e.toDisplayString(b.label),1),e.createElementVNode("span",Lo,[e.renderSlot(n.$slots,`cell-${b.key}`,{value:r[b.key],row:r},()=>[e.createTextVNode(e.toDisplayString(r[b.key]),1)],!0)])]))),128))]))),128)),g.value.length===0?(e.openBlock(),e.createElementBlock("div",jo,[e.renderSlot(n.$slots,"empty",{},()=>[h[2]||(h[2]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Fo,[e.createElementVNode("table",Oo,[e.createElementVNode("thead",Ao,[e.createElementVNode("tr",{class:e.normalizeClass(["w-full bg-neutral-50 border-b border-gray-100",t.headerClass||""])},[x.value?(e.openBlock(),e.createElementBlock("th",Wo,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary-600 focus:ring-primary-500",checked:E.value,indeterminate:D.value,onChange:y,"aria-label":"Seleccionar todas las filas"},null,40,Po)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,r=>(e.openBlock(),e.createElementBlock("th",{key:r.key,style:e.normalizeStyle(r.width?{width:r.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",r.sortable?"cursor-pointer hover:text-primary-600 select-none transition-colors":"",t.headerClass,t.headerCellClass]),onClick:w=>r.sortable&&k(r.key)},[e.createElementVNode("div",qo,[e.createElementVNode("span",null,e.toDisplayString(r.label),1),r.sortable?(e.openBlock(),e.createElementBlock("span",Yo,[a.value!==r.key?(e.openBlock(),e.createElementBlock("span",Ho,"⇅")):(e.openBlock(),e.createElementBlock("span",Ko,e.toDisplayString(u.value==="asc"?"↑":"↓"),1))])):e.createCommentVNode("",!0)])],14,Ro))),128))],2)]),e.createElementVNode("tbody",Uo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(r,w)=>(e.openBlock(),e.createElementBlock("tr",{key:w,class:e.normalizeClass(["w-full border-b border-gray-200 transition-colors bg-white",l.value&&w%2===1?"bg-gray-50":"",i.value?"hover:bg-blue-50":"",t.rowClass,d.value])},[x.value?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(["px-3 text-xs text-gray-600 border-l border-gray-100 first:border-l-0 w-10",d.value])},[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary-600 focus:ring-primary-500",checked:N(r,w),onChange:b=>c(r,w,b),"aria-label":`Seleccionar fila ${w+1}`},null,40,Go)],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,b=>(e.openBlock(),e.createElementBlock("td",{key:`${w}-${b.key}`,class:e.normalizeClass(["px-4 text-xs text-gray-600 border-l border-gray-100 first:border-l-0 bg-white",t.rowClass,t.cellClass,d.value])},[e.renderSlot(n.$slots,`cell-${b.key}`,{value:r[b.key],row:r},()=>[e.createTextVNode(e.toDisplayString(r[b.key]),1)],!0)],2))),128))],2))),128))])]),g.value.length===0?(e.openBlock(),e.createElementBlock("div",Jo,[e.renderSlot(n.$slots,"empty",{},()=>[h[3]||(h[3]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",Qo,[e.renderSlot(n.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]))}}),Xo=F(Zo,[["__scopeId","data-v-9020135c"]]),_o={class:"tabs-wrapper"},el=["aria-selected","onClick"],tl=e.defineComponent({__name:"Tabs",props:{modelValue:{},tabs:{},headerClass:{},contentClass:{},variant:{default:"default"},compact:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>t.compact?"relative w-full sm:w-auto text-left sm:text-center px-3 sm:px-4 py-2 text-sm tracking-wide transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500":"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"),i=e.computed(()=>({default:"border-b-3",bordered:"border border-secondary-200 rounded-t-lg",pill:"rounded-full bg-secondary-100 mx-1"})[t.variant]),s=e.computed(()=>({default:"border-b border-gray-200",bordered:"gap-0",pill:"gap-2 bg-white p-1 rounded-full border border-secondary-200"})[t.variant]),a=e.computed(()=>({default:"text-primary-600 border-primary-600 font-semibold",bordered:"text-primary-600 border-primary-600 bg-primary-50 font-semibold",pill:"text-white bg-primary-600 font-semibold"})[t.variant]),u=e.computed(()=>({default:"hover:text-secondary-700 border-transparent font-normal",bordered:"text-secondary-600 hover:text-primary-600 font-normal",pill:"text-secondary-600 hover:text-secondary-900 font-normal"})[t.variant]),k=f=>t.modelValue===f,g=f=>{k(f)||d("update:modelValue",f)},p=e.computed(()=>t.modelValue),x=e.computed(()=>t.tabs.find(f=>f.value===p.value));return(f,V)=>(e.openBlock(),e.createElementBlock("div",_o,[e.createElementVNode("div",{class:e.normalizeClass(["tabs-header",o.headerClass])},[e.createElementVNode("div",{class:e.normalizeClass(["tabs-container",s.value]),role:"tablist"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,C=>(e.openBlock(),e.createElementBlock("button",{key:C.value,type:"button",class:e.normalizeClass([l.value,i.value,k(C.value)?a.value:u.value]),"aria-selected":k(C.value),role:"tab",onClick:E=>g(C.value)},e.toDisplayString(C.label),11,el))),128))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["tabs-content",o.contentClass]),role:"tabpanel"},[e.renderSlot(f.$slots,p.value,{active:p.value,tab:x.value},void 0,!0)],2)]))}}),ol=F(tl,[["__scopeId","data-v-17d67e55"]]),ll="font-sans",al=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"},d={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},l={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"},i={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},s=o,a=e.computed(()=>s.variant),u=e.computed(()=>s.align),k=e.computed(()=>s.as||t[a.value]||"span"),g=e.computed(()=>s.color&&s.color.startsWith("#")),p=e.computed(()=>g.value?"":l[s.color]||l.default),x=e.computed(()=>g.value?{color:s.color}:{}),f=e.computed(()=>s.weight?{fontWeight:{light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800}[s.weight]}:{}),V=e.computed(()=>s.weight?i[s.weight]:"");return(C,E)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{class:e.normalizeClass([ll,m[a.value],p.value,d[u.value],V.value,{uppercase:o.uppercase||a.value==="overline",truncate:o.truncate}]),style:e.normalizeStyle([x.value,f.value])},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default")]),_:3},8,["class","style"]))}}),nl={class:"w-full flex items-center justify-between gap-3 py-2"},rl={key:0,class:"text-xs pagination-text"},sl={key:0},cl={class:"ml-auto inline-flex items-center gap-1",role:"navigation","aria-label":"Pagination"},il=["disabled"],dl=["aria-label","onClick"],ul=["disabled"],ml=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:""},compact:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>{const p=Math.ceil(t.totalItems/t.pageSize);return p>0?p:1}),i=e.computed(()=>{const p=Number(t.modelValue||1);return p<1?1:p>l.value?l.value:p}),s=e.computed(()=>t.totalItems===0?0:(i.value-1)*t.pageSize+1),a=e.computed(()=>Math.min(i.value*t.pageSize,t.totalItems)),u=e.computed(()=>`Mostrando ${s.value} a ${a.value} de ${t.totalItems}`),k=e.computed(()=>{const p=l.value,x=Math.max(3,t.maxPages),f=i.value;if(p<=x)return Array.from({length:p},($,N)=>N+1);const V=Math.floor(x/2);let C=Math.max(1,f-V),E=Math.min(p,C+x-1);C=Math.max(1,Math.min(C,E-x+1));const D=[];C>1&&(D.push(1),C>2&&D.push("…"));for(let $=C;$<=E;$++)D.push($);return E<p&&(E<p-1&&D.push("…"),D.push(p)),D});function g(p){const x=Math.max(1,Math.min(p,l.value));x!==i.value&&(d("update:modelValue",x),d("change",x))}return(p,x)=>(e.openBlock(),e.createElementBlock("div",nl,[o.showSummary?(e.openBlock(),e.createElementBlock("div",rl,[e.renderSlot(p.$slots,"summary",{start:s.value,end:a.value,total:o.totalItems},()=>[e.createTextVNode(e.toDisplayString(u.value)+" ",1),o.itemLabel?(e.openBlock(),e.createElementBlock("span",sl,e.toDisplayString(o.itemLabel),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",cl,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([t.compact?"h-6 px-2 text-xs":"h-8 px-3","rounded-full pagination-text hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed"]),disabled:i.value<=1,onClick:x[0]||(x[0]=f=>g(i.value-1)),"aria-label":"Anterior"},e.toDisplayString(o.previousText),11,il),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(f,V)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`page-${V}-${f}`},[f==="…"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([t.compact?"h-6 min-w-6 px-1":"h-8 min-w-8 px-2","inline-flex items-center justify-center pagination-text"])}," … ",2)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","aria-label":`Página ${f}`,class:e.normalizeClass([t.compact?"h-6 min-w-6 px-2 text-xs":"h-8 min-w-8 px-3","rounded-full transition-colors",f===i.value?"bg-primary-500 text-white font-semibold":"pagination-text hover:bg-secondary-100"]),onClick:C=>g(Number(f))},e.toDisplayString(f),11,dl))],64))),128)),e.createElementVNode("button",{type:"button",class:e.normalizeClass([t.compact?"h-6 px-2 text-xs":"h-8 px-3","rounded-full pagination-text hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed"]),disabled:i.value>=l.value,onClick:x[1]||(x[1]=f=>g(i.value+1)),"aria-label":"Siguiente"},e.toDisplayString(o.nextText),11,ul)])]))}}),pl=F(ml,[["__scopeId","data-v-621d6bba"]]),fl=e.defineComponent({__name:"Tooltip",props:{content:{default:""},position:{default:"top"},backgroundColor:{default:"bg-gray-900"},textColor:{default:"text-white"},size:{default:"md"},trigger:{default:"hover"},openDelay:{default:0},closeDelay:{default:100}},setup(o){const m=o,t=e.ref(!1);let d=null,l=null;const i=()=>{m.trigger==="hover"&&(clearTimeout(l),d=setTimeout(()=>{t.value=!0},m.openDelay))},s=()=>{m.trigger==="hover"&&(clearTimeout(d),l=setTimeout(()=>{t.value=!1},m.closeDelay))},a=()=>{m.trigger==="click"&&(t.value=!t.value)},u=()=>{m.trigger==="focus"&&(t.value=!0)},k=()=>{m.trigger==="focus"&&(t.value=!1)},g={sm:"px-2 py-1 text-xs",md:"px-3 py-2 text-sm",lg:"px-4 py-3 text-base"},p={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},x=e.computed(()=>`absolute w-0 h-0 border-solid border-4 border-transparent ${{top:"bottom-[-8px] rotate-180 left-1/2 -translate-x-1/2",bottom:"top-[-8px] rotate-180 left-1/2 -translate-x-1/2",left:"right-[-8px] rotate-180 top-1/2 -translate-y-1/2",right:"left-[-8px] rotate-180 top-1/2 -translate-y-1/2"}[m.position]}`),f=e.computed(()=>({"bg-gray-900":"#111827","bg-primary-500":"#0ea5e9","bg-green-600":"#16a34a","bg-yellow-600":"#ca8a04","bg-danger-600":"#dc2626"})[m.backgroundColor]||"#111827"),V=e.computed(()=>({top:`transparent transparent ${f.value} transparent`,bottom:`${f.value} transparent transparent transparent`,left:`transparent ${f.value} transparent transparent`,right:`transparent transparent transparent ${f.value}`})[m.position]),C=e.computed(()=>`absolute ${p[m.position]} ${m.textColor} ${g[m.size]} rounded-md shadow-lg whitespace-nowrap z-50`);return(E,D)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-flex",onMouseenter:i,onMouseleave:s,onClick:a,onFocus:u,onBlur:k},[e.renderSlot(E.$slots,"default"),e.createVNode(e.Transition,{"enter-active-class":"transition-opacity duration-200","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(C.value),style:e.normalizeStyle({backgroundColor:f.value}),role:"tooltip"},[e.renderSlot(E.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(o.content),1)]),e.createElementVNode("div",{class:e.normalizeClass(x.value),style:e.normalizeStyle({borderColor:V.value})},null,6)],6)):e.createCommentVNode("",!0)]),_:3})],32))}}),bl={class:"truncate"},gl=["aria-label","disabled"],vl=e.defineComponent({__name:"Chip",props:{label:{default:""},color:{default:"default"},variant:{default:"filled"},size:{default:"md"},closable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{default:void 0},closeAriaLabel:{default:"Cerrar"},compact:{type:Boolean,default:!1}},emits:["click","close"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>!!t.icon),i=e.computed(()=>t.icon||""),s=e.computed(()=>({sm:t.compact?"h-6 text-xs px-2 gap-1 font-semibold leading-none":"h-7 text-xs px-3 gap-1.5 font-semibold leading-none",md:t.compact?"h-7 text-xs px-2.5 gap-1.5 font-semibold leading-none":"h-8 text-sm px-3.5 gap-2 font-semibold leading-none"})),a={default:{filled:"bg-gray-100 text-gray-800 border border-gray-200",outlined:"bg-white text-gray-800 border border-gray-300",tonal:"bg-gray-50 text-gray-800 border border-gray-100"},primary:{filled:"bg-primary-600 text-white border border-primary-600",outlined:"bg-white text-primary-500 border border-primary-300",tonal:"bg-primary-50 text-primary-500 border border-primary-100"},secondary:{filled:"bg-secondary-600 text-white border border-secondary-600",outlined:"bg-white text-secondary-700 border border-secondary-300",tonal:"bg-secondary-50 text-secondary-700 border border-secondary-100"},success:{filled:"bg-emerald-600 text-white border border-emerald-600",outlined:"bg-white text-emerald-700 border border-emerald-300",tonal:"bg-emerald-50 text-emerald-600 border border-emerald-200"},warning:{filled:"bg-amber-500 text-white border border-amber-500",outlined:"bg-white text-amber-700 border border-amber-300",tonal:"bg-amber-50 text-amber-800 border border-amber-100"},error:{filled:"bg-rose-600 text-white border border-rose-600",outlined:"bg-white text-rose-700 border border-rose-300",tonal:"bg-rose-50 text-rose-700 border border-rose-100"},info:{filled:"bg-sky-600 text-white border border-sky-600",outlined:"bg-white text-sky-700 border border-sky-300",tonal:"bg-sky-50 text-sky-700 border border-sky-100"}},u=e.computed(()=>{const x=a[t.color]??a.default,f=x[t.variant]??x.filled;return["inline-flex items-center select-none","transition-colors duration-150","max-w-full",s.value[t.size],"rounded-full",t.disabled?"opacity-60 cursor-not-allowed":"cursor-default",f].join(" ")}),k=e.computed(()=>"text-current flex items-center"),g=()=>{t.disabled||d("close")},p=()=>{t.disabled||d("click")};return(x,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value),role:"status",onClick:p},[l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(k.value)},[e.createVNode(A,{name:i.value,size:"sm"},null,8,["name"])],2)):e.createCommentVNode("",!0),e.createElementVNode("span",bl,[e.renderSlot(x.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])]),o.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"shrink-0 rounded-full p-1 hover:bg-black/5 focus:outline-none focus:ring-2 focus:ring-primary-500","aria-label":o.closeAriaLabel,onClick:e.withModifiers(g,["stop"]),disabled:o.disabled},[e.createVNode(A,{name:"close",size:"sm"})],8,gl)):e.createCommentVNode("",!0)],2))}}),yl={class:"checkbox-wrapper"},hl=["for"],xl={key:0,class:"relative inline-block"},kl=["id","checked","disabled"],Cl={key:1,class:"relative inline-flex items-center"},wl=["id","checked","disabled"],Bl=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean,default:!1},label:{},variant:{default:"checkbox"},disabled:{type:Boolean,default:!1},size:{default:"md"},color:{default:"primary"}},emits:["update:modelValue","change"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>`checkbox-${Math.random().toString(36).substr(2,9)}`),i={primary:{50:"#f1fbfc",100:"#d3f4f6",200:"#bfecef",500:"#56ced4",600:"#3bb8be",700:"#269ea4",800:"#1e8287"},secondary:{50:"#f8f2eb",100:"#f3e6d7",200:"#eacead",500:"#b76c15",600:"#89510f",700:"#6c3e0c",800:"#512d08"},danger:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534"}},s=c=>{if(t.color.startsWith("#"))return t.color;const n=i[t.color];return n?n[c]:i.primary[c]},a=(c,n)=>{const h=parseInt(c.replace("#",""),16),r=Math.round(2.55*n),w=(h>>16)+r,b=(h>>8&255)+r,O=(h&255)+r;return"#"+(16777216+(w<255?w<1?0:w:255)*65536+(b<255?b<1?0:b:255)*256+(O<255?O<1?0:O:255)).toString(16).slice(1)},u={sm:{box:"w-4 h-4",icon:"w-3 h-3",label:"text-sm"},md:{box:"w-5 h-5",icon:"w-4 h-4",label:"text-base"},lg:{box:"w-6 h-6",icon:"w-5 h-5",label:"text-lg"}},k={sm:{track:"w-9 h-5",thumb:"w-6 h-6",label:"text-sm",offsetActive:"15px",offsetInactive:"-1px"},md:{track:"w-11 h-6",thumb:"w-7 h-7",label:"text-base",offsetActive:"18px",offsetInactive:"-1px"},lg:{track:"w-14 h-8",thumb:"w-9 h-9",label:"text-lg",offsetActive:"22px",offsetInactive:"-1px"}},g=e.computed(()=>u[t.size]),p=e.computed(()=>k[t.size]),x=e.computed(()=>t.variant==="switch"?p.value.label:g.value.label),f=e.computed(()=>["appearance-none rounded cursor-pointer transition-all duration-200",g.value.box,t.disabled?"opacity-50 cursor-not-allowed":""]),V=e.computed(()=>{const c=t.color.startsWith("#")?t.color:s(500);return{border:"2px solid",borderColor:t.modelValue?c:"#9ca3af",backgroundColor:t.modelValue?c:"white"}}),C=e.computed(()=>["text-white",g.value.icon,"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"]),E=e.computed(()=>["rounded-full transition-all duration-300 flex items-center relative",p.value.track,t.disabled?"opacity-50 cursor-not-allowed":""]),D=e.computed(()=>{const c=t.color.startsWith("#")?a(t.color,60):s(200);return{backgroundColor:t.modelValue?c:"#cbd5e1"}}),$=e.computed(()=>["rounded-full shadow-lg transition-all duration-300 absolute",p.value.thumb]),N=e.computed(()=>{const c=t.color.startsWith("#")?a(t.color,-30):s(700),n=t.color.startsWith("#")?a(t.color,-40):s(800);return{top:"50%",transform:"translateY(-50%)",left:t.modelValue?p.value.offsetActive:p.value.offsetInactive,backgroundColor:t.modelValue?c:"#ffffff",border:t.modelValue?`2px solid ${n}`:"2px solid #e5e7eb"}}),S=e.computed(()=>["select-none",x.value,t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]),M=e.computed(()=>({color:"#565656"})),y=c=>{const h=c.target.checked;d("update:modelValue",h),d("change",h)};return(c,n)=>(e.openBlock(),e.createElementBlock("div",yl,[e.createElementVNode("label",{for:l.value,class:"flex items-center cursor-pointer gap-2"},[o.variant==="switch"?(e.openBlock(),e.createElementBlock("div",xl,[e.createElementVNode("input",{id:l.value,type:"checkbox",checked:o.modelValue,disabled:o.disabled,class:"sr-only",onChange:y},null,40,kl),e.createElementVNode("div",{class:e.normalizeClass(E.value),style:e.normalizeStyle(D.value)},[e.createElementVNode("div",{class:e.normalizeClass($.value),style:e.normalizeStyle(N.value)},null,6)],6)])):(e.openBlock(),e.createElementBlock("div",Cl,[e.createElementVNode("input",{id:l.value,type:"checkbox",checked:o.modelValue,disabled:o.disabled,class:e.normalizeClass(f.value),style:e.normalizeStyle(V.value),onChange:y},null,46,wl),o.modelValue?(e.openBlock(),e.createElementBlock("svg",{key:0,class:e.normalizeClass(["absolute pointer-events-none",C.value]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[...n[0]||(n[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])],2)):e.createCommentVNode("",!0)])),o.label?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(S.value),style:e.normalizeStyle(M.value)},e.toDisplayString(o.label),7)):e.createCommentVNode("",!0)],8,hl)]))}}),Vl=F(Bl,[["__scopeId","data-v-0d2c6db5"]]),$l={class:"slider-wrapper"},El=["for"],Nl={class:"relative w-full"},zl=["id","min","max","step","value","disabled"],Sl=e.defineComponent({__name:"Slider",props:{modelValue:{default:0},min:{default:0},max:{default:100},step:{default:1},label:{default:void 0},disabled:{type:Boolean,default:!1},size:{default:"md"},color:{default:"primary"}},emits:["update:modelValue","change"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>`slider-${Math.random().toString(36).slice(2,9)}`),i={primary:{50:"#f1fbfc",100:"#d3f4f6",200:"#bfecef",500:"#56ced4",600:"#3bb8be",700:"#269ea4",800:"#1e8287"},secondary:{50:"#f8f2eb",100:"#f3e6d7",200:"#eacead",500:"#b76c15",600:"#89510f",700:"#6c3e0c",800:"#512d08"},danger:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534"}},s=V=>{if(typeof t.color=="string"&&t.color.startsWith("#"))return t.color;const C=i[t.color];return C?C[V]:i.primary[V]},a=(V,C)=>{const E=parseInt(V.replace("#",""),16),D=Math.round(2.55*C),$=(E>>16)+D,N=(E>>8&255)+D,S=(E&255)+D;return"#"+(16777216+($<255?$<1?0:$:255)*65536+(N<255?N<1?0:N:255)*256+(S<255?S<1?0:S:255)).toString(16).slice(1)},u=e.computed(()=>({sm:{trackHeight:"0.375rem",thumbSize:"1.1rem",shadow:"0 3px 8px rgba(0,0,0,0.2)"},md:{trackHeight:"0.5rem",thumbSize:"1.3rem",shadow:"0 4px 10px rgba(0,0,0,0.22)"},lg:{trackHeight:"0.625rem",thumbSize:"1.5rem",shadow:"0 5px 12px rgba(0,0,0,0.24)"}})[t.size]),k=e.computed(()=>{const V=t.max-t.min;return V<=0?0:(Math.min(t.max,Math.max(t.min,t.modelValue))-t.min)/V*100}),g=e.computed(()=>[t.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"]),p=e.computed(()=>{const V=s(500),C=typeof t.color=="string"&&t.color.startsWith("#")?a(t.color,-20):s(700),E=typeof t.color=="string"&&t.color.startsWith("#")?a(t.color,-30):s(800),D=typeof t.color=="string"&&t.color.startsWith("#")?a(t.color,55):s(200),$=Math.min(100,Math.max(0,k.value));return{background:`linear-gradient(90deg, ${V} 0%, ${V} ${$}%, #e5e7eb ${$}%, #e5e7eb 100%)`,"--slider-track-height":u.value.trackHeight,"--slider-thumb-size":u.value.thumbSize,"--slider-thumb-color":C,"--slider-thumb-border":`2px solid ${E}`,"--slider-thumb-shadow":u.value.shadow,"--slider-track-active":D}}),x=V=>{const C=V.target,E=Number(C.value);d("update:modelValue",E)},f=V=>{const C=V.target,E=Number(C.value);d("change",E)};return(V,C)=>(e.openBlock(),e.createElementBlock("div",$l,[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:l.value,class:"mb-2 block text-sm font-medium",style:{color:"#565656"}},e.toDisplayString(o.label),9,El)):e.createCommentVNode("",!0),e.createElementVNode("div",Nl,[e.createElementVNode("input",{id:l.value,type:"range",min:o.min,max:o.max,step:o.step,value:o.modelValue,disabled:o.disabled,class:e.normalizeClass(["slider-input w-full",g.value]),style:e.normalizeStyle(p.value),onInput:x,onChange:f},null,46,zl)])]))}}),Dl=F(Sl,[["__scopeId","data-v-89541d1a"]]),Ml=["data-node-id"],Tl={key:0,class:"shrink-0 size-12 rounded-full bg-[var(--neutrales/fondo-general-claro,#f7f7f7)] grid place-items-center"},Il={key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#0064ff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ll={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#ff600a","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},jl={key:2,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#3ac29e","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Fl={key:3,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#ff4235","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ol={key:1,class:"flex flex-wrap items-center justify-end gap-2 px-6 pb-6 pt-4"},Al=e.defineComponent({__name:"Alert",props:{variant:{default:"info"},title:{},description:{},closable:{type:Boolean,default:!1},multiline:{type:Boolean,default:!1},actions:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},nodeId:{default:void 0},stackOn:{default:void 0},autoClose:{default:void 0}},emits:["close","accept","cancel"],setup(o,{emit:m}){const t=m;let d=null;const l=o,i=e.computed(()=>l.variant),s=e.computed(()=>l.multiline),a=e.computed(()=>l.actions),u=e.computed(()=>l.nodeId),k=e.computed(()=>l.showIcon),g=()=>{p(),t("close")},p=()=>{d!==null&&(clearTimeout(d),d=null)};e.onMounted(()=>{l.autoClose&&l.autoClose>0&&(d=setTimeout(()=>{t("close")},l.autoClose))}),e.onUnmounted(()=>{p()});const x=e.computed(()=>!!l.title),f=e.computed(()=>l.title??""),V=e.computed(()=>l.description??""),C=e.computed(()=>{switch(i.value){case"info":return{border:"border-[var(--semantica/info,#0064ff)]",bg:"bg-[#faf9fd] outline outline-1 outline-[rgba(105,78,214,0.4)]"};case"warning":return{border:"border-[var(--semantica/warning,#ff9100)]",bg:"bg-[#fffcfa] outline outline-1 outline-[rgba(255,96,10,0.3)]"};case"success":return{border:"border-[var(--semantica/succes,#00b45e)]",bg:"bg-[#f7fbf9] outline outline-1 outline-[rgba(0,135,68,0.5)]"};case"error":return{border:"border-[var(--semantica/error,#ff4235)]",bg:"bg-[#fdf7f9] outline outline-1 outline-[rgba(214,0,64,0.5)]"}}}),E=e.computed(()=>"bg-[var(--color-primario/500,#56ced4)]"),D=e.computed(()=>{const M="flex w-full items-start gap-4 flex-col";if(!l.stackOn)return`${M} sm:flex-row sm:items-center`;const y=l.stackOn,c=`${y}:flex-row ${y}:items-center`;return`${M} ${c}`}),$=e.computed(()=>{if(!l.stackOn)return"flex-col sm:flex-row items-start sm:items-center";const M=l.stackOn;return`flex-col ${M}:flex-row items-start ${M}:items-center`}),N=e.computed(()=>{if(!l.stackOn)return"flex-col sm:flex-row sm:items-center w-full";const M=l.stackOn;return`flex-col ${M}:flex-row ${M}:items-center w-full`}),S=e.computed(()=>l.stackOn?`self-start ${l.stackOn}:self-auto`:"self-start sm:self-auto");return(M,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative w-full rounded-xl border",[C.value.border,C.value.bg]]),role:"alert","data-node-id":u.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:g},[...y[2]||(y[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":a.value}])},[e.createElementVNode("div",{class:e.normalizeClass(D.value)},[k.value?(e.openBlock(),e.createElementBlock("div",Tl,[i.value==="info"?(e.openBlock(),e.createElementBlock("svg",Il,[...y[3]||(y[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)])])):i.value==="warning"?(e.openBlock(),e.createElementBlock("svg",Ll,[...y[4]||(y[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)])])):i.value==="success"?(e.openBlock(),e.createElementBlock("svg",jl,[...y[5]||(y[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)])])):(e.openBlock(),e.createElementBlock("svg",Fl,[...y[6]||(y[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)])]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex-1 flex gap-4 text-[14px]",[$.value,o.closable?"pr-6":"",{"whitespace-nowrap":!s.value,"whitespace-pre-wrap":s.value}]])},[e.createElementVNode("div",{class:e.normalizeClass(["flex flex-1 gap-3 items-start",N.value])},[x.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tracking-[0.1px] text-[color:var(--neutrales/texto-principal,#565656)] font-medium",S.value])},e.toDisplayString(f.value),3)):e.createCommentVNode("",!0),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(M.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(V.value),1)])],2)],2)],2)],2)],2),a.value?(e.openBlock(),e.createElementBlock("div",Ol,[e.createElementVNode("button",{type:"button",class:"px-3 py-1.5 rounded-lg text-sm tracking-[0.25px] font-semibold text-[color:var(--neutrales/texto-principal,#565656)]",onClick:y[0]||(y[0]=c=>M.$emit("cancel"))},[e.renderSlot(M.$slots,"cancel",{},()=>[y[7]||(y[7]=e.createTextVNode("Cancelar",-1))])]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["px-3 py-1.5 rounded-lg text-sm tracking-[0.25px] font-semibold text-white",E.value]),onClick:y[1]||(y[1]=c=>M.$emit("accept"))},[e.renderSlot(M.$slots,"accept",{},()=>[y[8]||(y[8]=e.createTextVNode("Aceptar",-1))])],2)])):e.createCommentVNode("",!0)],10,Ml))}});exports.Alert=Al;exports.AppBar=Ce;exports.Button=$e;exports.Calendar=lt;exports.Card=nt;exports.Checkbox=Vl;exports.Chip=vl;exports.Dialog=mt;exports.FileUpload=$t;exports.Icon=A;exports.Input=Ft;exports.Loader=Pt;exports.Menu=eo;exports.Pagination=pl;exports.Select=ko;exports.Sidebar=Eo;exports.Slider=Dl;exports.Table=Xo;exports.Tabs=ol;exports.Text=al;exports.Tooltip=fl;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),fe=require("@iconify/vue"),be={class:"flex items-center gap-2 sm:gap-3 shrink-0"},ge={key:1,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},ye={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"},he={class:"flex items-center gap-2 sm:gap-3 shrink-0"},xe={key:0,class:"text-base sm:text-lg font-bold text-primary-50 font-poppins whitespace-nowrap"},ke=e.defineComponent({__name:"AppBar",props:{title:{default:""},titlePosition:{default:"left"},showMenuButton:{type:Boolean,default:!0},variant:{default:"default"},sticky:{type:Boolean,default:!0},mode:{default:"sticky"},shadow:{type:Boolean,default:!1},elevation:{default:0},height:{default:"md"},density:{default:"normal"}},emits:["toggle-menu"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>{const c="flex flex-row items-center justify-between gap-2 sm:gap-4 px-3 sm:px-6 z-50 w-full",s={default:"bg-primary-500 text-primary-50",dark:"bg-secondary-900 text-white",light:"bg-white text-secondary-900 border-b border-secondary-200"},a={sm:"h-12",md:"h-14",lg:"h-16"},u={0:"",1:"shadow-sm",2:"shadow",3:"shadow-md",4:"shadow-lg",5:"shadow-xl"},k={compact:"gap-1",normal:"gap-2 sm:gap-4",prominent:"gap-3 sm:gap-6 px-6 sm:px-8"},b=t.sticky?t.mode==="fixed"?"fixed top-0 inset-x-0":"sticky top-0 inset-x-0":"",p=t.shadow?"shadow-md":u[Math.min(t.elevation,5)];return[c.replace("gap-2 sm:gap-4",k[t.density]),s[t.variant],a[t.height],b,p].join(" ")});return(c,s)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(l.value)},[e.createElementVNode("div",be,[o.showMenuButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=a=>d("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"},[...s[1]||(s[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",ge,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"left",{},void 0,!0)]),e.createElementVNode("div",ye,[o.title&&o.titlePosition==="center"?(e.openBlock(),e.createElementBlock("div",ve,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",he,[o.title&&o.titlePosition==="right"?(e.openBlock(),e.createElementBlock("div",xe,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"right",{},void 0,!0)])],2))}}),F=(o,m)=>{const t=o.__vccOpts||o;for(const[d,l]of m)t[d]=l;return t},Ce=F(ke,[["__scopeId","data-v-b7ffd034"]]),we=["type","disabled","aria-label"],Be={key:0,class:"w-4 h-4 animate-spin mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},Ve={key:1,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]"},$e=e.defineComponent({__name:"Button",props:{variant:{default:"primary"},size:{default:"md"},radius:{default:"full"},type:{default:"button"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},badge:{default:0},ariaLabel:{default:""},textColor:{default:void 0},textColorHover:{default:void 0},compact:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>t.variant==="icon"),c=e.computed(()=>t.badge>99?"99+":t.badge.toString()),s=e.computed(()=>{const u="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",k={primary:"bg-primary-500 text-white hover:bg-primary-600 active:bg-primary-500 focus-visible:ring-primary-500",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-primary-100 focus-visible:ring-secondary-500",ghost:"hover:bg-primary-100 focus-visible:ring-secondary-500",danger:"bg-danger-600 text-white hover:bg-danger-700 focus-visible:ring-danger-600",icon:"hover:bg-primary-100 hover:text-black focus-visible:ring-secondary-500 relative",text:"bg-transparent border-0 focus-visible:ring-0 focus-visible:ring-offset-0"},b={sm:l.value?t.compact?"p-1":"p-1.5":t.compact?"h-6 px-2 text-xs":"h-8 px-3 text-sm",md:l.value?t.compact?"p-1.5":"p-2":t.compact?"h-8 px-3 text-sm":"h-10 px-4 text-base",lg:l.value?t.compact?"p-2":"p-3":t.compact?"h-10 px-4 text-base":"h-12 px-6 text-lg"},p={full:"rounded-full",xl:"rounded-2xl",lg:"rounded-xl",md:"rounded-lg",sm:"rounded-md",none:"rounded-none"},y=t.textColor?t.textColor:"",f=e.computed(()=>{var V,C;return t.textColorHover?t.textColorHover:(V=t.textColor)!=null&&V.includes("white")||(C=t.textColor)!=null&&C.includes("50")?"hover:text-black":""});return`${u} ${k[t.variant]} ${b[t.size]} ${p[t.radius]} ${y} ${f.value}`}),a=u=>{t.disabled||d("click",u)};return(u,k)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),type:o.type,disabled:o.disabled||o.loading,onClick:a,"aria-label":o.ariaLabel},[o.loading?(e.openBlock(),e.createElementBlock("svg",Be,[...k[0]||(k[0]=[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),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)])])):e.createCommentVNode("",!0),e.renderSlot(u.$slots,"default"),l.value&&o.badge&&o.badge>0?(e.openBlock(),e.createElementBlock("span",Ve,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)],10,we))}}),Ee=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"},d=(a,u)=>{const k=a.replace(/_/g,"-");switch(u){case"filled":return`material-symbols:${k}`;case"outlined":return`ic:outline-${k}`;case"rounded":return`ic:round-${k}`;case"sharp":return`ic:sharp-${k}`;case"two-tone":return`ic:twotone-${k}`;default:return`material-symbols:${k}`}},l=e.computed(()=>d(m.name,m.variant)),c=e.computed(()=>{const a=["inline-flex items-center justify-center select-none","transition-transform duration-200"];return m.color&&(m.color.startsWith("text-")||m.color.startsWith("fill-"))&&a.push(m.color),m.spin&&a.push("animate-spin"),a.join(" ")}),s=e.computed(()=>{const a={};if(t[m.size]?(a.fontSize=t[m.size],a.width=t[m.size],a.height=t[m.size]):(a.fontSize=m.size,a.width=m.size,a.height=m.size),m.color&&!m.color.startsWith("text-")&&!m.color.startsWith("fill-")&&(a.color=m.color),m.rotate!==0){const u=`rotate(${m.rotate}deg)`;a.transform=u}return a});return(a,u)=>(e.openBlock(),e.createBlock(e.unref(fe.Icon),{icon:l.value,class:e.normalizeClass(c.value),style:e.normalizeStyle(s.value),"aria-label":o.ariaLabel,role:o.ariaLabel?"img":void 0},null,8,["icon","class","style","aria-label","role"]))}}),A=F(Ee,[["__scopeId","data-v-5f982e5c"]]),Ne={key:0,class:"relative"},ze=["for"],Se={key:0,class:"text-danger-600"},De=["id","disabled","placeholder","value","required"],Me=["disabled"],Te={key:1,class:"relative"},Ie=["for"],je={key:0,class:"text-danger-600"},Le=["id","disabled","placeholder","value","required"],Fe=["disabled"],Oe={key:2,class:"space-y-2"},Ae={key:0,class:"text-danger-600"},We={class:"grid grid-cols-1 md:grid-cols-2 gap-2"},Pe=["disabled","placeholder","value","required"],Re=["disabled"],qe=["disabled","placeholder","value","required"],Ye=["disabled"],He={key:3,class:"mt-1 text-sm text-danger-600"},Ke={key:4,class:"mt-1 text-sm text-secondary-600"},Ue={class:"flex items-center justify-between mb-4"},Ge={class:"flex items-center space-x-2"},Je=["value"],Qe=["value"],Ze={class:"grid grid-cols-7 gap-1 mb-2"},Xe={class:"grid grid-cols-7 gap-1"},_e=["disabled","onClick"],et={class:"flex justify-end space-x-2 mt-4 pt-4 border-t border-secondary-100"},tt=["disabled"],ot=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},locale:{default:"es"},showWeekNumbers:{type:Boolean,default:!1},firstDayOfWeek:{default:1},yearsPerRow:{default:4},compact:{type:Boolean,default:!1}},emits:["update:modelValue","date-select","range-select","multiple-select"],setup(o,{emit:m}){const t=o,d=e.ref([]),l=m,c=e.ref(!1),s=e.ref(null),a=e.ref(new Date().getMonth()),u=e.ref(new Date().getFullYear()),k=e.ref(`calendar-${Math.random().toString(36).substr(2,9)}`),b=e.ref(null),p=e.ref(null),y=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],f=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],V=e.computed(()=>t.compact?{sm:"xs",md:"xs",lg:"sm"}[t.size]||"xs":{sm:"xs",md:"sm",lg:"md"}[t.size]||"sm"),C=e.computed(()=>{const v=new Date().getFullYear(),B=[];for(let z=v-100;z<=v+10;z++)B.push(z);return B}),E=e.computed(()=>"ds-label"),D=e.computed(()=>t.bordered?"border border-neutral-300":""),$=e.computed(()=>{const v="w-full rounded-md transition-colors focus:outline-none focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",B={sm:t.compact?"px-2 py-1 pr-8 text-xs":"px-3 py-1.5 pr-10 text-sm",md:t.compact?"px-3 py-1.5 pr-10 text-sm":"px-4 py-2 pr-10 text-base",lg:t.compact?"px-4 py-2 pr-10 text-base":"px-5 py-3 pr-12 text-lg"},z={primary:"focus:ring-primary-500",secondary:"focus:ring-secondary-500"},I={default:"bg-white",filled:"bg-secondary-100",outlined:"bg-transparent"},W=t.error?"border-danger-600 focus:ring-danger-500":"";return`${v} ${B[t.size]} ${I[t.variant]} ${z[t.color]} ${W}`}),N=e.computed(()=>`transition-colors text-[#565656] hover:text-[#565656] opacity-80 hover:opacity-100 ${t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"}`),S=e.computed(()=>t.compact?"min-w-72 max-w-sm":"min-w-80 max-w-sm"),M=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]}`),h=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]}`),i=e.computed(()=>{const v={primary:"bg-primary-500 hover:bg-primary-600 focus:ring-primary-500",secondary:"bg-secondary-600 hover:bg-secondary-700 focus:ring-secondary-500"};return`${t.compact?"px-2 py-1 text-xs":"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 ${v[t.color]}`}),n=e.computed(()=>{const v={primary:"text-primary-600 hover:text-primary-700 hover:bg-primary-50",secondary:"text-secondary-600 hover:text-secondary-700 hover:bg-secondary-50"};return`${t.compact?"px-2 py-1 text-xs":"px-3 py-1.5 text-sm"} border border-secondary-300 rounded-md transition-colors focus:outline-none ${v[t.color]}`}),x=e.computed(()=>t.mode==="single"&&t.modelValue&&t.modelValue instanceof Date?j(t.modelValue):""),r=e.computed(()=>t.mode==="multiple"&&Array.isArray(t.modelValue)&&t.modelValue.length>0?t.modelValue.length===1?j(t.modelValue[0]):`${t.modelValue.length} fechas seleccionadas`:""),w=e.computed(()=>t.mode==="range"&&t.modelValue&&typeof t.modelValue=="object"&&"start"in t.modelValue&&t.modelValue.start?j(t.modelValue.start):""),g=e.computed(()=>t.mode==="range"&&t.modelValue&&typeof t.modelValue=="object"&&"end"in t.modelValue&&t.modelValue.end?j(t.modelValue.end):""),O=e.computed(()=>t.mode==="single"?b.value!==null:t.mode==="multiple"?d.value.length>0:b.value!==null&&p.value!==null&&p.value>=b.value);e.computed(()=>t.mode==="range"&&b.value&&p.value?p.value<b.value:!1);const T=e.computed(()=>{const v=new Date(u.value,a.value,1),B=new Date(u.value,a.value+1,0),z=v.getDay(),I=B.getDate(),W=[],P=new Date(u.value,a.value-1,0);for(let L=z-1;L>=0;L--){const R=new Date(u.value,a.value-1,P.getDate()-L);W.push({day:R.getDate(),date:R,isCurrentMonth:!1,disabled:!1,key:`prev-${R.getDate()}`})}for(let L=1;L<=I;L++){const R=new Date(u.value,a.value,L);W.push({day:L,date:R,isCurrentMonth:!0,disabled:!1,key:`current-${L}`})}const pe=42-W.length;for(let L=1;L<=pe;L++){const R=new Date(u.value,a.value+1,L);W.push({day:L,date:R,isCurrentMonth:!1,disabled:!1,key:`next-${L}`})}return W}),j=v=>{const B=v.getDate().toString().padStart(2,"0"),z=(v.getMonth()+1).toString().padStart(2,"0"),I=v.getFullYear();switch(t.dateFormat){case"MM/DD/YYYY":return`${z}/${B}/${I}`;case"YYYY-MM-DD":return`${I}-${z}-${B}`;case"DD/MM/YYYY":default:return`${B}/${z}/${I}`}},J=v=>{var z;const B=new Date(v.getFullYear(),v.getMonth(),v.getDate());if(t.minDate){const I=new Date(t.minDate.getFullYear(),t.minDate.getMonth(),t.minDate.getDate());if(B<I)return!0}if(t.maxDate){const I=new Date(t.maxDate.getFullYear(),t.maxDate.getMonth(),t.maxDate.getDate());if(B>I)return!0}return!!((z=t.disabledDates)!=null&&z.some(I=>I.toDateString()===v.toDateString()))},ne=v=>{const B="w-8 h-8 text-sm rounded-md transition-colors focus:outline-none";if(v.disabled||J(v.date))return`${B} text-secondary-400 cursor-not-allowed`;const z=re(v.date),I=se(v.date),W=ce(v.date),P={primary:{selected:"bg-primary-600 text-white",inRange:"bg-primary-100 text-primary-900",today:"bg-primary-50 text-primary-500 border border-primary-300",default:"text-secondary-700 hover:bg-primary-50 hover:text-primary-500",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 z?`${B} ${P[t.color].selected}`:I?`${B} ${P[t.color].inRange}`:W?`${B} ${P[t.color].today}`:v.isCurrentMonth?`${B} ${P[t.color].default}`:`${B} ${P[t.color].otherMonth}`},re=v=>t.mode==="single"?b.value?q(v,b.value):!1:t.mode==="multiple"?d.value.some(B=>q(v,B)):!!(b.value&&q(v,b.value))||!!(p.value&&q(v,p.value)),se=v=>{if(t.mode!=="range"||!b.value||!p.value)return!1;const B=b.value,z=p.value;return v>B&&v<z},ce=v=>q(v,new Date),q=(v,B)=>v.toDateString()===B.toDateString(),Q=()=>{t.disabled||c.value||Y()},Z=()=>{t.disabled||c.value||Y()},X=()=>{t.disabled||oe()},_=v=>{t.disabled||(H(v),c.value||Y())},ee=v=>{t.disabled||(H(v),c.value||Y())},te=v=>{t.disabled||(H(v),oe())},H=v=>{s.value=v},oe=()=>{t.disabled||(c.value=!c.value,c.value&&U())},Y=()=>{t.disabled||(c.value=!0,U())},K=()=>{c.value=!1,s.value=null},U=()=>{t.mode==="single"?(b.value=t.modelValue instanceof Date?t.modelValue:null,p.value=null):t.mode==="multiple"?d.value=Array.isArray(t.modelValue)?[...t.modelValue]:[]:t.modelValue&&typeof t.modelValue=="object"&&"start"in t.modelValue?(b.value=t.modelValue.start,p.value=t.modelValue.end):(b.value=null,p.value=null)},ie=v=>{if(t.mode==="single")b.value=v,p.value=null;else if(t.mode==="multiple"){const B=d.value.findIndex(z=>q(z,v));B>=0?d.value.splice(B,1):d.value.push(v)}else s.value==="start"||!b.value?(b.value=v,p.value=null,s.value="end"):(s.value==="end"||!p.value)&&(v<b.value?(p.value=b.value,b.value=v):p.value=v,s.value=null)},de=()=>{if(t.mode==="single")l("update:modelValue",b.value),b.value&&l("date-select",b.value);else if(t.mode==="multiple"){const v=[...d.value].sort((B,z)=>B.getTime()-z.getTime());l("update:modelValue",v),l("multiple-select",v)}else{const v={start:b.value,end:p.value};l("update:modelValue",v),l("range-select",v)}K()},ue=()=>{a.value===0?(a.value=11,u.value--):a.value--},me=()=>{a.value===11?(a.value=0,u.value++):a.value++},le=()=>{},G=e.ref(),ae=v=>{G.value&&!G.value.contains(v.target)&&K()};return e.onMounted(()=>{document.addEventListener("click",ae)}),e.onUnmounted(()=>{document.removeEventListener("click",ae)}),e.watch(()=>t.modelValue,v=>{c.value||U()},{deep:!0}),(v,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"calendarWrapperRef",ref:G,class:"calendar-wrapper"},[o.mode==="single"?(e.openBlock(),e.createElementBlock("div",Ne,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,for:k.value,class:e.normalizeClass(E.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Se,"*")):e.createCommentVNode("",!0)],10,ze)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",D.value])},[e.createElementVNode("input",{id:k.value,class:e.normalizeClass($.value),type:"text",disabled:o.disabled,placeholder:o.placeholder||"Seleccionar fecha",value:x.value,required:o.required,readonly:!0,onClick:Q,onFocus:Z},null,42,De),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",N.value]),onClick:e.withModifiers(X,["stop"]),disabled:o.disabled},[e.createVNode(A,{name:o.iconName,size:V.value},null,8,["name","size"])],10,Me)],2)])):o.mode==="multiple"?(e.openBlock(),e.createElementBlock("div",Te,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,for:k.value,class:e.normalizeClass(E.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",je,"*")):e.createCommentVNode("",!0)],10,Ie)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",D.value])},[e.createElementVNode("input",{id:k.value,class:e.normalizeClass($.value),type:"text",disabled:o.disabled,placeholder:o.placeholder||"Seleccionar fechas",value:r.value,required:o.required,readonly:!0,onClick:Q,onFocus:Z},null,42,Le),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",N.value]),onClick:e.withModifiers(X,["stop"]),disabled:o.disabled},[e.createVNode(A,{name:o.iconName,size:V.value},null,8,["name","size"])],10,Fe)],2)])):(e.openBlock(),e.createElementBlock("div",Oe,[o.label&&o.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass(E.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Ae,"*")):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",We,[e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",D.value])},[e.createElementVNode("input",{class:e.normalizeClass($.value),type:"text",disabled:o.disabled,placeholder:o.startPlaceholder||"Fecha desde",value:w.value,required:o.required,readonly:!0,onClick:B[0]||(B[0]=()=>_("start")),onFocus:B[1]||(B[1]=()=>ee("start"))},null,42,Pe),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",N.value]),onClick:B[2]||(B[2]=e.withModifiers(()=>te("start"),["stop"])),disabled:o.disabled},[e.createVNode(A,{name:o.startIconName,size:V.value},null,8,["name","size"])],10,Re)],2),e.createElementVNode("div",{class:e.normalizeClass(["relative rounded-md",D.value])},[e.createElementVNode("input",{class:e.normalizeClass($.value),type:"text",disabled:o.disabled,placeholder:o.endPlaceholder||"Fecha hasta",value:g.value,required:o.required,readonly:!0,onClick:B[3]||(B[3]=()=>_("end")),onFocus:B[4]||(B[4]=()=>ee("end"))},null,42,qe),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["absolute right-3 top-1/2 -translate-y-1/2",N.value]),onClick:B[5]||(B[5]=e.withModifiers(()=>te("end"),["stop"])),disabled:o.disabled},[e.createVNode(A,{name:o.endIconName,size:V.value},null,8,["name","size"])],10,Ye)],2)])])),o.error?(e.openBlock(),e.createElementBlock("p",He,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Ke,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("div",{key:5,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",S.value]),onClick:B[8]||(B[8]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Ue,[e.createElementVNode("button",{type:"button",onClick:ue,class:e.normalizeClass(M.value)},[e.createVNode(A,{name:"chevron-left",size:"sm"})],2),e.createElementVNode("div",Ge,[e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":B[6]||(B[6]=z=>a.value=z),class:e.normalizeClass(h.value),onChange:le},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(y,(z,I)=>e.createElementVNode("option",{key:I,value:I},e.toDisplayString(z),9,Je)),64))],34),[[e.vModelSelect,a.value]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":B[7]||(B[7]=z=>u.value=z),class:e.normalizeClass(h.value),onChange:le},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,z=>(e.openBlock(),e.createElementBlock("option",{key:z,value:z},e.toDisplayString(z),9,Qe))),128))],34),[[e.vModelSelect,u.value]])]),e.createElementVNode("button",{type:"button",onClick:me,class:e.normalizeClass(M.value)},[e.createVNode(A,{name:"chevron-right",size:"sm"})],2)]),e.createElementVNode("div",Ze,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,z=>e.createElementVNode("div",{key:z,class:"text-center text-sm font-medium text-secondary-600 py-2"},e.toDisplayString(z),1)),64))]),e.createElementVNode("div",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,z=>(e.openBlock(),e.createElementBlock("button",{key:z.key,type:"button",class:e.normalizeClass(ne(z)),disabled:z.disabled||J(z.date),onClick:I=>ie(z.date)},e.toDisplayString(z.day),11,_e))),128))]),e.createElementVNode("div",et,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(n.value),onClick:K}," Cancelar ",2),e.createElementVNode("button",{type:"button",class:e.normalizeClass(i.value),onClick:de,disabled:!O.value}," Confirmar ",10,tt)])],2)):e.createCommentVNode("",!0)],512))}}),lt=F(ot,[["__scopeId","data-v-18f461f5"]]),at=["role","tabindex"],nt=e.defineComponent({__name:"Card",props:{shadow:{default:"md"},rounded:{default:"lg"},bordered:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},compact:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:m}){const t=o,d=m,l={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"},s=e.computed(()=>["w-full bg-white",l[t.shadow],c[t.rounded],t.bordered?"border border-gray-200":"",t.hoverable||t.clickable?"transition-all duration-200":"",t.hoverable?"hover:shadow-lg":"",t.clickable&&!t.disabled?"cursor-pointer hover:shadow-lg":"",t.clickable&&t.disabled?"opacity-50 cursor-not-allowed":""]),a=u=>{!t.disabled&&t.clickable&&d("click",u)};return(u,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(s.value),role:o.clickable?"button":void 0,tabindex:o.clickable?0:void 0,onClick:a,onKeydown:[e.withKeys(a,["enter"]),e.withKeys(a,["space"])]},[u.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.compact?"px-4 py-2":"px-6 py-4","border-b border-gray-100"])},[e.renderSlot(u.$slots,"header")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.compact?"px-4 py-2":"px-6 py-4")},[e.renderSlot(u.$slots,"default")],2),u.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([t.compact?"px-4 py-2":"px-6 py-4","border-t border-gray-100 bg-gray-50"])},[e.renderSlot(u.$slots,"footer")],2)):e.createCommentVNode("",!0)],42,at))}}),rt={class:"flex items-center justify-between border-b border-gray-100/60 px-8 py-6"},st={class:"text-xl font-semibold text-gray-900"},ct=["disabled"],it={class:"px-8 py-6"},dt={key:0,class:"absolute inset-0 flex items-center justify-center bg-white/50 rounded-lg"},ut=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},title:{default:"Diálogo"},size:{default:"md"},closeOnBackdrop:{type:Boolean,default:!0},loading:{type:Boolean,default:!1}},emits:["update:modelValue","close"],setup(o,{emit:m}){const t=o,d=m,l=e.computed({get:()=>t.modelValue,set:u=>d("update:modelValue",u)}),c=e.computed(()=>({sm:"sm:max-w-sm",md:"sm:max-w-lg md:max-w-2xl",lg:"sm:max-w-2xl md:max-w-4xl",xl:"sm:max-w-4xl md:max-w-6xl"})[t.size]),s=()=>{t.loading||(l.value=!1,d("close"))},a=()=>{t.closeOnBackdrop&&!t.loading&&s()};return(u,k)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"dialog"},{default:e.withCtx(()=>[l.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:a},[e.createElementVNode("div",{class:e.normalizeClass(["relative w-full rounded-lg bg-white shadow-xl",c.value]),onClick:k[0]||(k[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",rt,[e.createElementVNode("h2",st,[e.renderSlot(u.$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",disabled:o.loading,onClick:s},[...k[1]||(k[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)])],8,ct)]),e.createElementVNode("div",it,[e.renderSlot(u.$slots,"default",{},void 0,!0)]),o.loading?(e.openBlock(),e.createElementBlock("div",dt,[...k[2]||(k[2]=[e.createElementVNode("div",{class:"flex items-center gap-2 text-primary-600"},[e.createElementVNode("svg",{class:"w-5 h-5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),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"})]),e.createElementVNode("span",{class:"text-sm font-medium"},"Cargando...")],-1)])])):e.createCommentVNode("",!0),u.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["border-t border-gray-100 px-8 py-6 bg-gray-50",{"opacity-50 pointer-events-none":o.loading}])},[e.renderSlot(u.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)]),_:3})]))}}),mt=F(ut,[["__scopeId","data-v-ea6db288"]]),pt=["accept","multiple","disabled"],ft={class:"flex flex-col items-center justify-center gap-4 text-center"},bt=["src","alt"],gt={key:1,class:"w-full h-full text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},yt={class:"text-center"},vt={class:"text-base font-medium text-gray-700"},ht={class:"text-primary-500"},xt={class:"flex items-center gap-3 flex-1 min-w-0"},kt={class:"flex-1 min-w-0"},Ct={class:"text-sm font-medium text-gray-900 truncate"},wt={class:"text-xs text-gray-500"},Bt={key:1,class:"text-xs text-gray-500 mt-2"},Vt={key:2,class:"text-sm text-danger-500 mt-2"},$t=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},autoUpload:{type:Boolean,default:!1},uploadUrl:{default:void 0},uploadMethod:{default:"POST"},showFileList:{type:Boolean,default:!0},directory:{type:Boolean,default:!1},progress:{default:0}},emits:["update:modelValue","change","error"],setup(o,{emit:m}){const t=o,d=m,l=e.ref(null),c=e.ref(!1),s=e.ref(t.modelValue),a=e.ref(""),u=e.computed(()=>({sm:"w-20 h-20",md:"w-32 h-32",lg:"w-48 h-48",xl:"w-64 h-64"})[t.illustrationSize]),k=()=>{var $;($=l.value)==null||$.click()},b=()=>{t.disabled||k()},p=$=>{t.disabled||(c.value=!0)},y=()=>{c.value=!1},f=$=>{if(a.value="",t.maxSize&&$.size>t.maxSize){const N=(t.maxSize/1048576).toFixed(2);return a.value=`El archivo excede el tamaño máximo de ${N}MB`,d("error",a.value),!1}return!0},V=$=>{var M;const S=(M=$.target.files)==null?void 0:M[0];S&&f(S)&&(s.value=S,d("update:modelValue",S),d("change",S))},C=$=>{var S;c.value=!1;const N=(S=$.dataTransfer)==null?void 0:S.files[0];N&&f(N)&&(s.value=N,d("update:modelValue",N),d("change",N))},E=()=>{s.value=null,a.value="",l.value&&(l.value.value=""),d("update:modelValue",null),d("change",null)},D=$=>{if($===0)return"0 Bytes";const N=1024,S=["Bytes","KB","MB","GB"],M=Math.floor(Math.log($)/Math.log(N));return Math.round($/Math.pow(N,M)*100)/100+" "+S[M]};return($,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative border-2 border-dashed rounded-lg p-8 transition-colors",[c.value?"border-primary-500 bg-primary-50":"border-gray-300 bg-white hover:border-primary-500",o.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]]),onClick:b,onDragover:e.withModifiers(p,["prevent"]),onDragleave:e.withModifiers(y,["prevent"]),onDrop:e.withModifiers(C,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:l,type:"file",accept:o.accept,multiple:o.multiple,disabled:o.disabled,class:"hidden",onChange:V},null,40,pt),e.createElementVNode("div",ft,[e.createElementVNode("div",{class:e.normalizeClass([u.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,bt)):(e.openBlock(),e.createElementBlock("svg",gt,[...N[1]||(N[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",yt,[e.createElementVNode("p",vt,[e.createTextVNode(e.toDisplayString(o.mainText)+" ",1),e.createElementVNode("span",ht,e.toDisplayString(o.linkText),1)])]),s.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:N[0]||(N[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",xt,[N[2]||(N[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",kt,[e.createElementVNode("p",Ct,e.toDisplayString(s.value.name),1),e.createElementVNode("p",wt,e.toDisplayString(D(s.value.size)),1)])]),o.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers(E,["stop"]),class:"ml-3 text-gray-400 hover:text-danger-500 transition-colors"},[...N[3]||(N[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",Bt,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createElementBlock("p",Vt,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])],34))}}),Et=["src","alt","title","loading"],Nt=e.defineComponent({__name:"Image",props:{src:{},alt:{default:""},title:{default:""},width:{},height:{},objectFit:{default:"cover"},objectPosition:{default:"center"},rounded:{default:"md"},shadow:{default:"none"},bordered:{type:Boolean,default:!1},borderColor:{},opacity:{default:100},loading:{default:"lazy"},class:{default:""}},emits:["load","error"],setup(o,{emit:m}){const t=o,d=m,l={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},c={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},s={cover:"object-cover",contain:"object-contain",fill:"object-fill","scale-down":"object-scale-down"},a={center:"object-center",top:"object-top",bottom:"object-bottom",left:"object-left",right:"object-right","top-left":"object-top-left","top-right":"object-top-right","bottom-left":"object-bottom-left","bottom-right":"object-bottom-right"},u=e.computed(()=>["w-full h-full",l[t.rounded],c[t.shadow],s[t.objectFit],a[t.objectPosition],t.bordered?`border border-${t.borderColor||"gray-200"}`:"",t.class]),k=e.computed(()=>{const y={opacity:t.opacity/100};return t.width&&(y.width=typeof t.width=="number"?`${t.width}px`:t.width),t.height&&(y.height=typeof t.height=="number"?`${t.height}px`:t.height),y}),b=()=>{d("load")},p=y=>{d("error",y)};return(y,f)=>(e.openBlock(),e.createElementBlock("img",{src:o.src,alt:o.alt,title:o.title,class:e.normalizeClass(u.value),loading:o.loading,style:e.normalizeStyle(k.value),onLoad:b,onError:p},null,46,Et))}}),zt={class:"input-wrapper"},St=["for"],Dt={key:0,class:"text-danger-600"},Mt={class:"relative flex items-center"},Tt=["id","type","disabled","placeholder","value","required","readonly"],It={key:1,class:"absolute right-3 flex items-center gap-2"},jt={key:2,class:"absolute right-3 top-1/2 -translate-y-1/2 text-danger-600"},Lt={key:1,class:"mt-1 text-sm text-danger-600"},Ft={key:2,class:"text-sm",style:{color:"#565656"}},Ot=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:{},clearable:{type:Boolean,default:!1},prefix:{default:void 0},suffix:{default:void 0},compact:{type:Boolean,default:!1}},emits:["update:modelValue","blur","focus","clear"],setup(o,{emit:m}){const t=o,d=m,l=e.ref(`input-${Math.random().toString(36).substr(2,9)}`),c=e.computed(()=>"ds-label"),s=e.computed(()=>{const y="w-full rounded-md transition-all focus:outline-none focus:ring-2 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50",f={sm:t.compact?"h-6 px-2 text-xs":"h-8 px-3 text-sm",md:t.compact?"h-8 px-3 text-sm":"h-10 px-4 text-base",lg:t.compact?"h-10 px-4 text-base":"h-12 px-5 text-lg"},V=t.prefix?"pl-9":"",C=t.clearable||t.error&&!t.suffix&&!t.clearable?"pr-10":"";return`${y} ${f[t.size]} ${V} ${C} bg-white border rounded-md transition-all`}),a=e.computed(()=>{const y=t.error?"#dc2626":"#565656",f=t.variant==="outlined"?"2px":"1px";return t.error,t.error,{borderColor:y,borderWidth:f,borderStyle:"solid"}}),u=y=>{const f=y.target;d("update:modelValue",f.value)},k=y=>{d("blur",y)},b=y=>{d("focus",y)},p=()=>{d("update:modelValue",""),d("clear")};return(y,f)=>(e.openBlock(),e.createElementBlock("div",zt,[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:l.value,class:e.normalizeClass(c.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",Dt,"*")):e.createCommentVNode("",!0)],10,St)):e.createCommentVNode("",!0),e.createElementVNode("div",Mt,[o.prefix?(e.openBlock(),e.createElementBlock("span",{key:0,class:"absolute left-3 text-sm",style:e.normalizeStyle({color:o.error?"#dc2626":"#565656"})},e.toDisplayString(o.prefix),5)):e.createCommentVNode("",!0),e.createElementVNode("input",{id:l.value,class:e.normalizeClass(s.value),style:e.normalizeStyle(a.value),type:o.type,disabled:o.disabled,placeholder:o.placeholder,value:o.modelValue,required:o.required,readonly:o.readonly,onInput:u,onBlur:k,onFocus:b},null,46,Tt),o.clearable||o.suffix?(e.openBlock(),e.createElementBlock("div",It,[o.clearable&&o.modelValue?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"transition-colors",style:e.normalizeStyle({color:o.error?"#dc2626":"#565656",cursor:"pointer",opacity:"1"}),"aria-label":"Limpiar",onClick:p},[...f[0]||(f[0]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor"},[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)])],4)):e.createCommentVNode("",!0),o.suffix&&!o.clearable?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-sm",style:e.normalizeStyle({color:o.error?"#dc2626":"#565656"})},e.toDisplayString(o.suffix),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.error&&!o.suffix&&!o.clearable?(e.openBlock(),e.createElementBlock("span",jt,[...f[1]||(f[1]=[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",Lt,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Ft,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0)]))}}),At=F(Ot,[["__scopeId","data-v-37a70082"]]),Wt=["stroke-width"],Pt={class:"w-full h-full rounded-lg overflow-hidden",style:{"background-color":"#f7f7f7"}},Rt=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"},d={primary:"bg-primary-700",secondary:"bg-secondary-500",success:"bg-success-500",warning:"bg-warning-500",danger:"bg-danger-500",info:"bg-info-500"},l=e.computed(()=>[t[m.color]]),c=e.computed(()=>[d[m.color]]);return(s,a)=>o.type==="circular"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.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,Wt),a[0]||(a[0]=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1))],4))],2)):o.type==="linear"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full",style:e.normalizeStyle({height:o.height})},[e.createElementVNode("div",Pt,[e.createElementVNode("div",{class:e.normalizeClass([[c.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)}}),qt=F(Rt,[["__scopeId","data-v-f369fb46"]]),Yt=["disabled","aria-expanded"],Ht=["disabled","onClick"],Kt={key:0,class:"flex-shrink-0"},Ut={class:"flex-1 min-w-0 mr-2"},Gt={class:"flex flex-col items-start"},Jt=["title"],Qt=["title"],Zt={key:1,class:"flex-shrink-0"},Xt={key:0,class:"text-xs text-secondary-400 font-mono whitespace-nowrap"},_t={key:1},eo={key:2,class:"w-4 h-4 ml-2 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},to=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},size:{default:"md"},closeOnSelect:{type:Boolean,default:!0},openDelay:{default:0},closeDelay:{default:100}},emits:["open","close","select"],setup(o,{emit:m}){let t=null,d=null;const l=o,c=m,s=e.ref(!1),a=e.ref(null),u=e.ref(null),k=e.ref({}),b=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(" ")),p=e.computed(()=>[...["fixed bg-white rounded-lg shadow-lg border border-secondary-200","flex flex-col","focus:outline-none"],`z-${l.zIndex}`].join(" ")),y=e.computed(()=>"px-4 py-3 border-b border-secondary-200 bg-secondary-50"),f=e.computed(()=>"px-4 py-3 border-t border-secondary-200 bg-secondary-50"),V=e.computed(()=>"py-1 overflow-y-auto flex-1 min-h-0"),C=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"),D=r=>{const w=["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"],g=r.variant||"default",O={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 T="";return r.color&&(T=r.color,(r.color.includes("white")||r.color.includes("50"))&&(T+=" hover:text-black")),[...w,T||O[g]].join(" ")},$=()=>{l.disabled||(s.value?S():(d&&clearTimeout(d),t=setTimeout(()=>{N()},l.openDelay)))},N=()=>{s.value=!0,c("open"),e.nextTick(()=>{x(),document.addEventListener("click",h),document.addEventListener("keydown",i)})},S=()=>{t&&clearTimeout(t),d=setTimeout(()=>{s.value=!1,c("close"),document.removeEventListener("click",h),document.removeEventListener("keydown",i)},l.closeDelay)},M=r=>{r.disabled||(r.action&&r.action(),c("select",r),(l.closeOnClick||l.closeOnSelect)&&!r.children&&S())},h=r=>{const w=r.target;a.value&&!a.value.contains(w)&&u.value&&!u.value.contains(w)&&S()},i=r=>{r.key==="Escape"&&S()},n=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),$())},x=()=>{if(!a.value||!u.value)return;const r=a.value.getBoundingClientRect(),w=u.value.getBoundingClientRect(),g=window.innerWidth,O=window.innerHeight;let T=0,j=0;switch(l.position){case"bottom-start":T=r.bottom+l.offset.y,j=r.left+l.offset.x;break;case"bottom-end":T=r.bottom+l.offset.y,j=r.right-w.width+l.offset.x;break;case"top-start":T=r.top-w.height-l.offset.y,j=r.left+l.offset.x;break;case"top-end":T=r.top-w.height-l.offset.y,j=r.right-w.width+l.offset.x;break;case"right-start":T=r.top+l.offset.y,j=r.right+l.offset.x;break;case"right-end":T=r.bottom-w.height+l.offset.y,j=r.right+l.offset.x;break;case"left-start":T=r.top+l.offset.y,j=r.left-w.width-l.offset.x;break;case"left-end":T=r.bottom-w.height+l.offset.y,j=r.left-w.width-l.offset.x;break}j+w.width>g&&(j=g-w.width-8),j<8&&(j=8),T+w.height>O&&(T=O-w.height-8),T<8&&(T=8),k.value={top:`${T}px`,left:`${j}px`,width:l.width==="auto"?`${Math.max(r.width,240)}px`:l.width,maxHeight:l.maxHeight,minWidth:"240px"}};return e.onMounted(()=>{window.addEventListener("scroll",x,!0),window.addEventListener("resize",x)}),e.onUnmounted(()=>{window.removeEventListener("scroll",x,!0),window.removeEventListener("resize",x),document.removeEventListener("click",h),document.removeEventListener("keydown",i)}),e.watch(()=>l.items,()=>{s.value&&e.nextTick(x)},{deep:!0}),(r,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper",{"w-full":o.fullWidth}])},[e.createElementVNode("div",{ref_key:"triggerRef",ref:a},[e.renderSlot(r.$slots,"trigger",{isOpen:s.value,toggle:$},()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(b.value),disabled:o.disabled,onClick:$,onKeydown:n,tabindex:0,role:"button","aria-expanded":s.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",s.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[...w[1]||(w[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,Yt)],!0)],512),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:u,class:e.normalizeClass(p.value),style:e.normalizeStyle(k.value),onClick:w[0]||(w[0]=e.withModifiers(()=>{},["stop"]))},[r.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(y.value)},[e.renderSlot(r.$slots,"header",{close:S},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(V.value)},[e.renderSlot(r.$slots,"default",{close:S,isOpen:s.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(g,O)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:g.id||O},[g.type==="divider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(C.value)},null,2)):g.type==="header"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(E.value)},e.toDisplayString(g.label),3)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(D(g)),disabled:g.disabled,onClick:T=>M(g)},[g.icon||r.$slots[`icon-${g.id}`]?(e.openBlock(),e.createElementBlock("span",Kt,[e.renderSlot(r.$slots,`icon-${g.id}`,{item:g},()=>[typeof g.icon=="string"?(e.openBlock(),e.createBlock(A,{key:0,name:g.icon,size:"sm"},null,8,["name"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.icon),{key:1,class:"w-5 h-5"}))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ut,[e.renderSlot(r.$slots,`item-${g.id}`,{item:g,close:S},()=>[e.createElementVNode("div",Gt,[e.createElementVNode("span",{class:"truncate w-full",title:g.label},e.toDisplayString(g.label),9,Jt),g.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-xs text-secondary-500 truncate w-full",title:g.description},e.toDisplayString(g.description),9,Qt)):e.createCommentVNode("",!0)])],!0)]),g.suffix||g.shortcut||r.$slots[`suffix-${g.id}`]?(e.openBlock(),e.createElementBlock("span",Zt,[e.renderSlot(r.$slots,`suffix-${g.id}`,{item:g},()=>[g.shortcut?(e.openBlock(),e.createElementBlock("span",Xt,e.toDisplayString(g.shortcut),1)):g.suffix?(e.openBlock(),e.createElementBlock("span",_t,e.toDisplayString(g.suffix),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),g.children&&g.children.length>0?(e.openBlock(),e.createElementBlock("svg",eo,[...w[2]||(w[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,Ht))],64))),128))],!0)],2),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(f.value)},[e.renderSlot(r.$slots,"footer",{close:S},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.value&&o.overlay?(e.openBlock(),e.createElementBlock("div",{key:1,class:"fixed inset-0 bg-black/20 z-40",onClick:S})):e.createCommentVNode("",!0)]))],2))}}),oo=F(to,[["__scopeId","data-v-ad88f878"]]),lo=["for"],ao={key:0,class:"text-danger-600"},no=["id","disabled","aria-expanded"],ro={class:"flex-1 text-left truncate"},so={key:0,class:"flex items-center justify-center gap-2 p-6 text-secondary-600"},co={key:1,class:"p-2 border-b border-secondary-200"},io=["placeholder"],uo={key:2,class:"max-h-64 overflow-y-auto"},mo={key:0,class:"px-4 py-3 text-sm text-secondary-500 text-center"},po=["onClick"],fo={class:"flex items-center justify-between w-full"},bo={class:"truncate"},go={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"},yo={key:0,class:"border-t border-secondary-200 my-1"},vo=["onClick"],ho=["innerHTML"],xo={key:1,class:"mt-1 text-sm text-danger-600"},ko={key:2,class:"mt-1 text-sm text-secondary-600"},Co=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},loading:{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},compact:{type:Boolean,default:!1}},emits:["update:modelValue","change","action"],setup(o,{emit:m}){const t=o,d=m,l=e.ref(!1),c=e.ref(""),s=e.ref(null),a=e.computed(()=>`select-${Math.random().toString(36).substr(2,9)}`),u=e.computed(()=>t.options.find(i=>i.value===t.modelValue)||null),k=e.computed(()=>{if(!t.searchable||!c.value)return t.options;const i=c.value.toLowerCase();return t.options.filter(n=>n.label.toLowerCase().includes(i))}),b=e.computed(()=>"ds-label"),p=e.computed(()=>t.bordered?"border border-neutral-300 rounded-md":"rounded-md"),y=e.computed(()=>{const i="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",n={sm:t.compact?"px-2 py-1 text-xs":"px-3 py-1.5 text-sm",md:t.compact?"px-3 py-1.5 text-sm":"px-4 py-2 text-base",lg:t.compact?"px-4 py-2 text-base":"px-5 py-3 text-lg"},x={default:"bg-white",outline:"bg-transparent",filled:"bg-secondary-100"},r=t.error?"border-danger-600 focus:ring-danger-500":"";return[i,n[t.size],x[t.variant],r].join(" ")}),f=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`),V=i=>{const n="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",x=E(i)?"bg-primary-50":"";return[n,x].join(" ")},C=i=>{const n="w-full px-4 py-2 text-left text-sm font-semibold transition-colors focus:outline-none flex items-center gap-3";return i.variant==="danger"?`${n} text-danger-600 hover:bg-danger-50 focus:bg-danger-50`:`${n} text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50`},E=i=>i.value===t.modelValue,D=()=>{t.disabled||t.loading||(l.value=!l.value,l.value&&t.searchable&&e.nextTick(()=>{var i;(i=s.value)==null||i.focus()}))},$=()=>{l.value=!1,c.value=""},N=i=>{i.disabled||(d("update:modelValue",i.value),d("change",i),$())},S=i=>{i.action&&i.action(),d("action",i),$()},M=i=>{const n=i.relatedTarget;n&&n.closest(".select-wrapper")||setTimeout(()=>{$()},200)},h=i=>{i.key==="Escape"?$():(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),D())};return e.watch(l,i=>{i&&(c.value="")}),(i,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-wrapper",{"w-full":o.fullWidth}])},[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:a.value,class:e.normalizeClass(b.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",ao,"*")):e.createCommentVNode("",!0)],10,lo)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["relative",p.value])},[e.createElementVNode("button",{id:a.value,type:"button",class:e.normalizeClass(y.value),disabled:o.disabled,"aria-expanded":l.value,"aria-haspopup":!0,onClick:D,onBlur:M,onKeydown:h},[e.createElementVNode("span",ro,e.toDisplayString(u.value?u.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",l.value?"rotate-180":""]),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[...n[3]||(n[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,no),l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(f.value),onClick:n[2]||(n[2]=e.withModifiers(()=>{},["stop"]))},[o.loading?(e.openBlock(),e.createElementBlock("div",so,[...n[4]||(n[4]=[e.createElementVNode("svg",{class:"w-5 h-5 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),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"})],-1),e.createElementVNode("span",null,"Cargando...",-1)])])):o.searchable?(e.openBlock(),e.createElementBlock("div",co,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:s,"onUpdate:modelValue":n[0]||(n[0]=x=>c.value=x),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:n[1]||(n[1]=e.withModifiers(()=>{},["stop"]))},null,40,io),[[e.vModelText,c.value]])])):e.createCommentVNode("",!0),o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",uo,[k.value.length===0?(e.openBlock(),e.createElementBlock("div",mo,e.toDisplayString(o.emptyText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,x=>(e.openBlock(),e.createElementBlock("button",{key:x.value,type:"button",class:e.normalizeClass(V(x)),onClick:r=>N(x)},[e.createElementVNode("div",fo,[e.createElementVNode("span",bo,e.toDisplayString(x.label),1),E(x)?(e.openBlock(),e.createElementBlock("svg",go,[...n[5]||(n[5]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)])],10,po))),128)),o.actionItems.length>0?(e.openBlock(),e.createElementBlock("div",yo)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actionItems,x=>(e.openBlock(),e.createElementBlock("button",{key:x.id,type:"button",class:e.normalizeClass(C(x)),onClick:r=>S(x)},[x.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:x.icon},null,8,ho)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(x.label),1)],10,vo))),128))],64))]))],2)):e.createCommentVNode("",!0)],2),o.error?(e.openBlock(),e.createElementBlock("p",xo,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",ko,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:$,class:"fixed inset-0 z-40"})):e.createCommentVNode("",!0)],2))}}),wo=F(Co,[["__scopeId","data-v-7fce9a5d"]]),Bo=["title"],Vo={key:0,class:"space-y-1"},$o=["href","onClick","aria-current"],Eo={key:2},No=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"},items:{default:()=>[]},activeItem:{default:null},keepOpen:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1},mini:{type:Boolean,default:!1},miniWidth:{default:"5rem"},bordered:{type:Boolean,default:!1},scrimOpacity:{default:.5}},emits:["update:modelValue","update:activeItem","update:collapsed","close","open","itemClick","toggleCollapse"],setup(o,{emit:m}){const t=o,d=e.ref(t.collapsed),l=e.computed(()=>t.mini||d.value),c=m,s=e.computed({get:()=>t.modelValue,set:h=>c("update:modelValue",h)}),a=(h=!1)=>{const i=t.keepOpen&&!h;!t.persistent&&!i&&(s.value=!1,c("close"))},u=()=>{d.value=!d.value,c("update:collapsed",d.value),c("toggleCollapse")};e.watch(()=>t.collapsed,h=>{d.value=h},{immediate:!0});const k=(h,i)=>{i.id&&c("update:activeItem",i.id),i.onClick&&(h.preventDefault(),i.onClick(i)),c("itemClick",i),!t.keepOpen&&!t.persistent&&a()},b=h=>h.active!==void 0?h.active:t.activeItem&&h.id?t.activeItem===h.id:!1,p=h=>{const i=l.value?"flex items-center justify-center p-3 rounded-lg transition-all duration-200":"flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-200 text-sm font-medium",n=b(h)?l.value?"bg-primary-100 text-primary-700":"bg-primary-100 text-primary-700 border-l-4 border-primary-600":"text-gray-700 hover:bg-gray-100 hover:text-gray-900";return`${i} ${n}`},y=h=>{const i="w-5 h-5 flex-shrink-0",n=b(h)?"text-primary-600":"text-gray-500";return`${i} ${n}`},f=e.computed(()=>t.position==="left"?"slide-right":"slide-left"),V=e.computed(()=>{const h="fixed top-0 h-full z-50 flex flex-col w-full max-w-full sm:max-w-none transition-all duration-300",i=t.position==="left"?"left-0":"right-0",n=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)]":"",x=t.bordered?"border-r border-gray-200":"";return[h,i,n,x].filter(Boolean).join(" ")}),C=e.computed(()=>({width:"100%",maxWidth:t.mini||d.value?t.miniWidth:t.width,backgroundColor:t.backgroundColor,top:t.overlayTop,height:t.overlayTop!=="0"?`calc(100vh - ${t.overlayTop})`:"100vh"})),E={none:"",sm:"p-2",md:"p-4",lg:"p-6"},D=e.computed(()=>`flex items-center justify-between border-b border-gray-200 ${l.value?"p-2":E[t.padding]}`),$=e.computed(()=>l.value?"flex gap-1 items-center":"flex gap-2 items-center"),N=e.computed(()=>l.value?"p-1.5 hover:bg-gray-100 rounded-md transition-colors":"p-2 hover:bg-gray-100 rounded-md transition-colors"),S=e.computed(()=>`flex-1 overflow-y-auto ${E[t.padding]}`),M=e.computed(()=>`border-t border-gray-200 ${E[t.padding]}`);return(h,i)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[s.value&&o.overlay&&!o.keepOpen?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:i[0]||(i[0]=n=>a()),class:"fixed inset-0 z-40",style:e.normalizeStyle({top:o.overlayTop,backgroundColor:`rgba(0, 0, 0, ${o.scrimOpacity||.5})`})},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:f.value},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(V.value),style:e.normalizeStyle(C.value)},[h.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(D.value)},[e.renderSlot(h.$slots,"header",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass($.value)},[o.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:u,class:e.normalizeClass(N.value),title:d.value?"Expandir":"Contraer","aria-label":"Toggle sidebar collapse"},[...i[2]||(i[2]=[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:"M15 19l-7-7 7-7"})],-1)])],10,Bo)):e.createCommentVNode("",!0),o.closable?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:i[1]||(i[1]=n=>a(!0)),class:e.normalizeClass(N.value),"aria-label":"Cerrar menú"},[...i[3]||(i[3]=[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)])],2)):e.createCommentVNode("",!0)],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(S.value)},[o.items&&o.items.length?(e.openBlock(),e.createElementBlock("nav",Vo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,n=>(e.openBlock(),e.createElementBlock("a",{key:n.id||n.label,href:n.href,onClick:x=>k(x,n),class:e.normalizeClass(p(n)),"aria-current":b(n)?"page":void 0},[n.icon&&typeof n.icon=="string"?(e.openBlock(),e.createBlock(A,{key:0,name:n.icon,size:"md",class:e.normalizeClass(y(n))},null,8,["name","class"])):n.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.icon),{key:1,class:e.normalizeClass(y(n))},null,8,["class"])):e.createCommentVNode("",!0),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Eo,e.toDisplayString(n.label),1))],10,$o))),128))])):e.createCommentVNode("",!0),e.renderSlot(h.$slots,"default",{},void 0,!0)],2),h.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(M.value)},[e.renderSlot(h.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),zo=F(No,[["__scopeId","data-v-1431a87b"]]),So={class:"w-full space-y-4"},Do={class:"flex flex-col gap-3 md:hidden"},Mo={key:0,class:"flex items-center gap-2 px-1 text-sm text-gray-600"},To=["checked","indeterminate"],Io={key:0,class:"flex items-center gap-2 pb-2"},jo=["checked","onChange","aria-label"],Lo={class:"text-[11px] uppercase tracking-wide text-gray-400"},Fo={class:"text-sm text-gray-700"},Oo={key:1,class:"rounded-lg border border-dashed border-gray-200 bg-white p-4 text-gray-400 text-center"},Ao={class:"hidden md:block w-full overflow-x-auto"},Wo={class:"w-full border-collapse"},Po={class:"w-full"},Ro={key:0,class:"px-3 py-3 text-left text-xs font-semibold text-gray-700 border-l border-gray-100 first:border-l-0 w-10"},qo=["checked","indeterminate"],Yo=["onClick"],Ho={class:"flex items-center gap-2"},Ko={key:0,class:"text-xs text-gray-400"},Uo={key:0},Go={key:1},Jo={class:"w-full"},Qo=["checked","onChange","aria-label"],Zo={key:0,class:"flex items-center justify-center py-12 text-gray-400"},Xo={key:0,class:"w-full px-6 py-4 bg-white"},_o=e.defineComponent({__name:"Table",props:{columns:{},data:{},headerClass:{default:void 0},headerCellClass:{default:void 0},cellClass:{default:void 0},rowClass:{default:void 0},selectable:{type:Boolean,default:!1},selectedKeys:{default:()=>[]},rowKey:{default:"id"},striped:{type:Boolean,default:!1},density:{default:"normal"},hover:{type:Boolean,default:!0}},emits:["update:selectedKeys"],setup(o,{emit:m}){const t=o,d=e.computed(()=>({compact:"py-1.5",normal:"py-3",spacious:"py-5"})[t.density]),l=e.computed(()=>t.striped),c=e.computed(()=>t.hover),s=m,a=e.ref(null),u=e.ref("asc"),k=n=>{a.value===n?u.value=u.value==="asc"?"desc":"asc":(a.value=n,u.value="asc")},b=e.computed(()=>{if(!a.value)return t.data;const n=[...t.data];return n.sort((x,r)=>{const w=x[a.value],g=r[a.value];return typeof w=="string"&&typeof g=="string"?u.value==="asc"?w.localeCompare(g):g.localeCompare(w):typeof w=="number"&&typeof g=="number"?u.value==="asc"?w-g:g-w:0}),n}),p=e.computed(()=>t.columns.filter(n=>!n.hideOnMobile)),y=e.computed(()=>t.selectable),f=e.computed({get:()=>t.selectedKeys||[],set:n=>s("update:selectedKeys",n)}),V=(n,x)=>{const r=t.rowKey;return(r&&n?n[r]:void 0)??x},C=e.computed(()=>b.value.map((n,x)=>V(n,x))),E=e.computed(()=>C.value.length>0&&C.value.every(n=>f.value.includes(n))),D=e.computed(()=>!E.value&&f.value.length>0),$=n=>{y.value&&(f.value=n?[...C.value]:[])},N=(n,x)=>{const r=V(n,x);return f.value.includes(r)},S=(n,x,r)=>{if(!y.value)return;const w=V(n,x),g=new Set(f.value);r?g.add(w):g.delete(w),f.value=Array.from(g)},M=n=>{const x=n.target;return!!(x!=null&&x.checked)},h=n=>{$(M(n))},i=(n,x,r)=>{S(n,x,M(r))};return(n,x)=>(e.openBlock(),e.createElementBlock("div",So,[e.createElementVNode("div",Do,[y.value?(e.openBlock(),e.createElementBlock("div",Mo,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary-600 focus:ring-primary-500",checked:E.value,indeterminate:D.value,onChange:h,"aria-label":"Seleccionar todas las filas"},null,40,To),x[0]||(x[0]=e.createElementVNode("span",null,"Seleccionar todas",-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(r,w)=>(e.openBlock(),e.createElementBlock("div",{key:`card-${w}`,class:"rounded-lg border border-gray-200 bg-white p-4 shadow-sm"},[y.value?(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary-600 focus:ring-primary-500",checked:N(r,w),onChange:g=>i(r,w,g),"aria-label":`Seleccionar fila ${w+1}`},null,40,jo),x[1]||(x[1]=e.createElementVNode("span",{class:"text-sm text-gray-700"},"Seleccionar fila",-1))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,g=>(e.openBlock(),e.createElementBlock("div",{key:`card-${w}-${g.key}`,class:"flex flex-col gap-1 py-1"},[e.createElementVNode("span",Lo,e.toDisplayString(g.label),1),e.createElementVNode("span",Fo,[e.renderSlot(n.$slots,`cell-${g.key}`,{value:r[g.key],row:r},()=>[e.createTextVNode(e.toDisplayString(r[g.key]),1)],!0)])]))),128))]))),128)),b.value.length===0?(e.openBlock(),e.createElementBlock("div",Oo,[e.renderSlot(n.$slots,"empty",{},()=>[x[2]||(x[2]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ao,[e.createElementVNode("table",Wo,[e.createElementVNode("thead",Po,[e.createElementVNode("tr",{class:e.normalizeClass(["w-full bg-neutral-50 border-b border-gray-100",t.headerClass||""])},[y.value?(e.openBlock(),e.createElementBlock("th",Ro,[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary-600 focus:ring-primary-500",checked:E.value,indeterminate:D.value,onChange:h,"aria-label":"Seleccionar todas las filas"},null,40,qo)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,r=>(e.openBlock(),e.createElementBlock("th",{key:r.key,style:e.normalizeStyle(r.width?{width:r.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",r.sortable?"cursor-pointer hover:text-primary-600 select-none transition-colors":"",t.headerClass,t.headerCellClass]),onClick:w=>r.sortable&&k(r.key)},[e.createElementVNode("div",Ho,[e.createElementVNode("span",null,e.toDisplayString(r.label),1),r.sortable?(e.openBlock(),e.createElementBlock("span",Ko,[a.value!==r.key?(e.openBlock(),e.createElementBlock("span",Uo,"⇅")):(e.openBlock(),e.createElementBlock("span",Go,e.toDisplayString(u.value==="asc"?"↑":"↓"),1))])):e.createCommentVNode("",!0)])],14,Yo))),128))],2)]),e.createElementVNode("tbody",Jo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,(r,w)=>(e.openBlock(),e.createElementBlock("tr",{key:w,class:e.normalizeClass(["w-full border-b border-gray-200 transition-colors bg-white",l.value&&w%2===1?"bg-gray-50":"",c.value?"hover:bg-blue-50":"",t.rowClass,d.value])},[y.value?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(["px-3 text-xs text-gray-600 border-l border-gray-100 first:border-l-0 w-10",d.value])},[e.createElementVNode("input",{type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-primary-600 focus:ring-primary-500",checked:N(r,w),onChange:g=>i(r,w,g),"aria-label":`Seleccionar fila ${w+1}`},null,40,Qo)],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,g=>(e.openBlock(),e.createElementBlock("td",{key:`${w}-${g.key}`,class:e.normalizeClass(["px-4 text-xs text-gray-600 border-l border-gray-100 first:border-l-0 bg-white",t.rowClass,t.cellClass,d.value])},[e.renderSlot(n.$slots,`cell-${g.key}`,{value:r[g.key],row:r},()=>[e.createTextVNode(e.toDisplayString(r[g.key]),1)],!0)],2))),128))],2))),128))])]),b.value.length===0?(e.openBlock(),e.createElementBlock("div",Zo,[e.renderSlot(n.$slots,"empty",{},()=>[x[3]||(x[3]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0)]),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",Xo,[e.renderSlot(n.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]))}}),el=F(_o,[["__scopeId","data-v-9020135c"]]),tl={class:"tabs-wrapper"},ol=["aria-selected","onClick"],ll=e.defineComponent({__name:"Tabs",props:{modelValue:{},tabs:{},headerClass:{},contentClass:{},variant:{default:"default"},compact:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>t.compact?"relative w-full sm:w-auto text-left sm:text-center px-3 sm:px-4 py-2 text-sm tracking-wide transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500":"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"),c=e.computed(()=>({default:"border-b-3",bordered:"border border-secondary-200 rounded-t-lg",pill:"rounded-full bg-secondary-100 mx-1"})[t.variant]),s=e.computed(()=>({default:"border-b border-gray-200",bordered:"gap-0",pill:"gap-2 bg-white p-1 rounded-full border border-secondary-200"})[t.variant]),a=e.computed(()=>({default:"text-primary-600 border-primary-600 font-semibold",bordered:"text-primary-600 border-primary-600 bg-primary-50 font-semibold",pill:"text-white bg-primary-600 font-semibold"})[t.variant]),u=e.computed(()=>({default:"hover:text-secondary-700 border-transparent font-normal",bordered:"text-secondary-600 hover:text-primary-600 font-normal",pill:"text-secondary-600 hover:text-secondary-900 font-normal"})[t.variant]),k=f=>t.modelValue===f,b=f=>{k(f)||d("update:modelValue",f)},p=e.computed(()=>t.modelValue),y=e.computed(()=>t.tabs.find(f=>f.value===p.value));return(f,V)=>(e.openBlock(),e.createElementBlock("div",tl,[e.createElementVNode("div",{class:e.normalizeClass(["tabs-header",o.headerClass])},[e.createElementVNode("div",{class:e.normalizeClass(["tabs-container",s.value]),role:"tablist"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,C=>(e.openBlock(),e.createElementBlock("button",{key:C.value,type:"button",class:e.normalizeClass([l.value,c.value,k(C.value)?a.value:u.value]),"aria-selected":k(C.value),role:"tab",onClick:E=>b(C.value)},e.toDisplayString(C.label),11,ol))),128))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["tabs-content",o.contentClass]),role:"tabpanel"},[e.renderSlot(f.$slots,p.value,{active:p.value,tab:y.value},void 0,!0)],2)]))}}),al=F(ll,[["__scopeId","data-v-17d67e55"]]),nl="font-sans",rl=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"},d={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},l={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"},c={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},s=o,a=e.computed(()=>s.variant),u=e.computed(()=>s.align),k=e.computed(()=>s.as||t[a.value]||"span"),b=e.computed(()=>s.color&&s.color.startsWith("#")),p=e.computed(()=>b.value?"":l[s.color]||l.default),y=e.computed(()=>b.value?{color:s.color}:{}),f=e.computed(()=>s.weight?{fontWeight:{light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800}[s.weight]}:{}),V=e.computed(()=>s.weight?c[s.weight]:"");return(C,E)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{class:e.normalizeClass([nl,m[a.value],p.value,d[u.value],V.value,{uppercase:o.uppercase||a.value==="overline",truncate:o.truncate}]),style:e.normalizeStyle([y.value,f.value])},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default")]),_:3},8,["class","style"]))}}),sl={class:"w-full flex items-center justify-between gap-3 py-2"},cl={key:0,class:"text-xs pagination-text"},il={key:0},dl={class:"ml-auto inline-flex items-center gap-1",role:"navigation","aria-label":"Pagination"},ul=["disabled"],ml=["aria-label","onClick"],pl=["disabled"],fl=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:""},compact:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>{const p=Math.ceil(t.totalItems/t.pageSize);return p>0?p:1}),c=e.computed(()=>{const p=Number(t.modelValue||1);return p<1?1:p>l.value?l.value:p}),s=e.computed(()=>t.totalItems===0?0:(c.value-1)*t.pageSize+1),a=e.computed(()=>Math.min(c.value*t.pageSize,t.totalItems)),u=e.computed(()=>`Mostrando ${s.value} a ${a.value} de ${t.totalItems}`),k=e.computed(()=>{const p=l.value,y=Math.max(3,t.maxPages),f=c.value;if(p<=y)return Array.from({length:p},($,N)=>N+1);const V=Math.floor(y/2);let C=Math.max(1,f-V),E=Math.min(p,C+y-1);C=Math.max(1,Math.min(C,E-y+1));const D=[];C>1&&(D.push(1),C>2&&D.push("…"));for(let $=C;$<=E;$++)D.push($);return E<p&&(E<p-1&&D.push("…"),D.push(p)),D});function b(p){const y=Math.max(1,Math.min(p,l.value));y!==c.value&&(d("update:modelValue",y),d("change",y))}return(p,y)=>(e.openBlock(),e.createElementBlock("div",sl,[o.showSummary?(e.openBlock(),e.createElementBlock("div",cl,[e.renderSlot(p.$slots,"summary",{start:s.value,end:a.value,total:o.totalItems},()=>[e.createTextVNode(e.toDisplayString(u.value)+" ",1),o.itemLabel?(e.openBlock(),e.createElementBlock("span",il,e.toDisplayString(o.itemLabel),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("nav",dl,[e.createElementVNode("button",{type:"button",class:e.normalizeClass([t.compact?"h-6 px-2 text-xs":"h-8 px-3","rounded-full pagination-text hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed"]),disabled:c.value<=1,onClick:y[0]||(y[0]=f=>b(c.value-1)),"aria-label":"Anterior"},e.toDisplayString(o.previousText),11,ul),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,(f,V)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`page-${V}-${f}`},[f==="…"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([t.compact?"h-6 min-w-6 px-1":"h-8 min-w-8 px-2","inline-flex items-center justify-center pagination-text"])}," … ",2)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","aria-label":`Página ${f}`,class:e.normalizeClass([t.compact?"h-6 min-w-6 px-2 text-xs":"h-8 min-w-8 px-3","rounded-full transition-colors",f===c.value?"bg-primary-500 text-white font-semibold":"pagination-text hover:bg-secondary-100"]),onClick:C=>b(Number(f))},e.toDisplayString(f),11,ml))],64))),128)),e.createElementVNode("button",{type:"button",class:e.normalizeClass([t.compact?"h-6 px-2 text-xs":"h-8 px-3","rounded-full pagination-text hover:bg-secondary-100 disabled:opacity-50 disabled:cursor-not-allowed"]),disabled:c.value>=l.value,onClick:y[1]||(y[1]=f=>b(c.value+1)),"aria-label":"Siguiente"},e.toDisplayString(o.nextText),11,pl)])]))}}),bl=F(fl,[["__scopeId","data-v-621d6bba"]]),gl=e.defineComponent({__name:"Tooltip",props:{content:{default:""},position:{default:"top"},backgroundColor:{default:"bg-gray-900"},textColor:{default:"text-white"},size:{default:"md"},trigger:{default:"hover"},openDelay:{default:0},closeDelay:{default:100}},setup(o){const m=o,t=e.ref(!1);let d=null,l=null;const c=()=>{m.trigger==="hover"&&(clearTimeout(l),d=setTimeout(()=>{t.value=!0},m.openDelay))},s=()=>{m.trigger==="hover"&&(clearTimeout(d),l=setTimeout(()=>{t.value=!1},m.closeDelay))},a=()=>{m.trigger==="click"&&(t.value=!t.value)},u=()=>{m.trigger==="focus"&&(t.value=!0)},k=()=>{m.trigger==="focus"&&(t.value=!1)},b={sm:"px-2 py-1 text-xs",md:"px-3 py-2 text-sm",lg:"px-4 py-3 text-base"},p={top:"bottom-full left-1/2 -translate-x-1/2 mb-2",bottom:"top-full left-1/2 -translate-x-1/2 mt-2",left:"right-full top-1/2 -translate-y-1/2 mr-2",right:"left-full top-1/2 -translate-y-1/2 ml-2"},y=e.computed(()=>`absolute w-0 h-0 border-solid border-4 border-transparent ${{top:"bottom-[-8px] rotate-180 left-1/2 -translate-x-1/2",bottom:"top-[-8px] rotate-180 left-1/2 -translate-x-1/2",left:"right-[-8px] rotate-180 top-1/2 -translate-y-1/2",right:"left-[-8px] rotate-180 top-1/2 -translate-y-1/2"}[m.position]}`),f=e.computed(()=>({"bg-gray-900":"#111827","bg-primary-500":"#0ea5e9","bg-green-600":"#16a34a","bg-yellow-600":"#ca8a04","bg-danger-600":"#dc2626"})[m.backgroundColor]||"#111827"),V=e.computed(()=>({top:`transparent transparent ${f.value} transparent`,bottom:`${f.value} transparent transparent transparent`,left:`transparent ${f.value} transparent transparent`,right:`transparent transparent transparent ${f.value}`})[m.position]),C=e.computed(()=>`absolute ${p[m.position]} ${m.textColor} ${b[m.size]} rounded-md shadow-lg whitespace-nowrap z-50`);return(E,D)=>(e.openBlock(),e.createElementBlock("div",{class:"relative inline-flex",onMouseenter:c,onMouseleave:s,onClick:a,onFocus:u,onBlur:k},[e.renderSlot(E.$slots,"default"),e.createVNode(e.Transition,{"enter-active-class":"transition-opacity duration-200","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition-opacity duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(C.value),style:e.normalizeStyle({backgroundColor:f.value}),role:"tooltip"},[e.renderSlot(E.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(o.content),1)]),e.createElementVNode("div",{class:e.normalizeClass(y.value),style:e.normalizeStyle({borderColor:V.value})},null,6)],6)):e.createCommentVNode("",!0)]),_:3})],32))}}),yl={class:"truncate"},vl=["aria-label","disabled"],hl=e.defineComponent({__name:"Chip",props:{label:{default:""},color:{default:"default"},variant:{default:"filled"},size:{default:"md"},closable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{default:void 0},closeAriaLabel:{default:"Cerrar"},compact:{type:Boolean,default:!1}},emits:["click","close"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>!!t.icon),c=e.computed(()=>t.icon||""),s=e.computed(()=>({sm:t.compact?"h-6 text-xs px-2 gap-1 font-semibold leading-none":"h-7 text-xs px-3 gap-1.5 font-semibold leading-none",md:t.compact?"h-7 text-xs px-2.5 gap-1.5 font-semibold leading-none":"h-8 text-sm px-3.5 gap-2 font-semibold leading-none"})),a={default:{filled:"bg-gray-100 text-gray-800 border border-gray-200",outlined:"bg-white text-gray-800 border border-gray-300",tonal:"bg-gray-50 text-gray-800 border border-gray-100"},primary:{filled:"bg-primary-600 text-white border border-primary-600",outlined:"bg-white text-primary-500 border border-primary-300",tonal:"bg-primary-50 text-primary-500 border border-primary-100"},secondary:{filled:"bg-secondary-600 text-white border border-secondary-600",outlined:"bg-white text-secondary-700 border border-secondary-300",tonal:"bg-secondary-50 text-secondary-700 border border-secondary-100"},success:{filled:"bg-emerald-600 text-white border border-emerald-600",outlined:"bg-white text-emerald-700 border border-emerald-300",tonal:"bg-emerald-50 text-emerald-600 border border-emerald-200"},warning:{filled:"bg-amber-500 text-white border border-amber-500",outlined:"bg-white text-amber-700 border border-amber-300",tonal:"bg-amber-50 text-amber-800 border border-amber-100"},error:{filled:"bg-rose-600 text-white border border-rose-600",outlined:"bg-white text-rose-700 border border-rose-300",tonal:"bg-rose-50 text-rose-700 border border-rose-100"},info:{filled:"bg-sky-600 text-white border border-sky-600",outlined:"bg-white text-sky-700 border border-sky-300",tonal:"bg-sky-50 text-sky-700 border border-sky-100"}},u=e.computed(()=>{const y=a[t.color]??a.default,f=y[t.variant]??y.filled;return["inline-flex items-center select-none","transition-colors duration-150","max-w-full",s.value[t.size],"rounded-full",t.disabled?"opacity-60 cursor-not-allowed":"cursor-default",f].join(" ")}),k=e.computed(()=>"text-current flex items-center"),b=()=>{t.disabled||d("close")},p=()=>{t.disabled||d("click")};return(y,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value),role:"status",onClick:p},[l.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(k.value)},[e.createVNode(A,{name:c.value,size:"sm"},null,8,["name"])],2)):e.createCommentVNode("",!0),e.createElementVNode("span",yl,[e.renderSlot(y.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])]),o.closable?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"shrink-0 rounded-full p-1 hover:bg-black/5 focus:outline-none focus:ring-2 focus:ring-primary-500","aria-label":o.closeAriaLabel,onClick:e.withModifiers(b,["stop"]),disabled:o.disabled},[e.createVNode(A,{name:"close",size:"sm"})],8,vl)):e.createCommentVNode("",!0)],2))}}),xl={class:"checkbox-wrapper"},kl=["for"],Cl={key:0,class:"relative inline-block"},wl=["id","checked","disabled"],Bl={key:1,class:"relative inline-flex items-center"},Vl=["id","checked","disabled"],$l=e.defineComponent({__name:"Checkbox",props:{modelValue:{type:Boolean,default:!1},label:{},variant:{default:"checkbox"},disabled:{type:Boolean,default:!1},size:{default:"md"},color:{default:"primary"}},emits:["update:modelValue","change"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>`checkbox-${Math.random().toString(36).substr(2,9)}`),c={primary:{50:"#f1fbfc",100:"#d3f4f6",200:"#bfecef",500:"#56ced4",600:"#3bb8be",700:"#269ea4",800:"#1e8287"},secondary:{50:"#f8f2eb",100:"#f3e6d7",200:"#eacead",500:"#b76c15",600:"#89510f",700:"#6c3e0c",800:"#512d08"},danger:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534"}},s=i=>{if(t.color.startsWith("#"))return t.color;const n=c[t.color];return n?n[i]:c.primary[i]},a=(i,n)=>{const x=parseInt(i.replace("#",""),16),r=Math.round(2.55*n),w=(x>>16)+r,g=(x>>8&255)+r,O=(x&255)+r;return"#"+(16777216+(w<255?w<1?0:w:255)*65536+(g<255?g<1?0:g:255)*256+(O<255?O<1?0:O:255)).toString(16).slice(1)},u={sm:{box:"w-4 h-4",icon:"w-3 h-3",label:"text-sm"},md:{box:"w-5 h-5",icon:"w-4 h-4",label:"text-base"},lg:{box:"w-6 h-6",icon:"w-5 h-5",label:"text-lg"}},k={sm:{track:"w-9 h-5",thumb:"w-6 h-6",label:"text-sm",offsetActive:"15px",offsetInactive:"-1px"},md:{track:"w-11 h-6",thumb:"w-7 h-7",label:"text-base",offsetActive:"18px",offsetInactive:"-1px"},lg:{track:"w-14 h-8",thumb:"w-9 h-9",label:"text-lg",offsetActive:"22px",offsetInactive:"-1px"}},b=e.computed(()=>u[t.size]),p=e.computed(()=>k[t.size]),y=e.computed(()=>t.variant==="switch"?p.value.label:b.value.label),f=e.computed(()=>["appearance-none rounded cursor-pointer transition-all duration-200",b.value.box,t.disabled?"opacity-50 cursor-not-allowed":""]),V=e.computed(()=>{const i=t.color.startsWith("#")?t.color:s(500);return{border:"2px solid",borderColor:t.modelValue?i:"#9ca3af",backgroundColor:t.modelValue?i:"white"}}),C=e.computed(()=>["text-white",b.value.icon,"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"]),E=e.computed(()=>["rounded-full transition-all duration-300 flex items-center relative",p.value.track,t.disabled?"opacity-50 cursor-not-allowed":""]),D=e.computed(()=>{const i=t.color.startsWith("#")?a(t.color,60):s(200);return{backgroundColor:t.modelValue?i:"#cbd5e1"}}),$=e.computed(()=>["rounded-full shadow-lg transition-all duration-300 absolute",p.value.thumb]),N=e.computed(()=>{const i=t.color.startsWith("#")?a(t.color,-30):s(700),n=t.color.startsWith("#")?a(t.color,-40):s(800);return{top:"50%",transform:"translateY(-50%)",left:t.modelValue?p.value.offsetActive:p.value.offsetInactive,backgroundColor:t.modelValue?i:"#ffffff",border:t.modelValue?`2px solid ${n}`:"2px solid #e5e7eb"}}),S=e.computed(()=>["select-none",y.value,t.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"]),M=e.computed(()=>({color:"#565656"})),h=i=>{const x=i.target.checked;d("update:modelValue",x),d("change",x)};return(i,n)=>(e.openBlock(),e.createElementBlock("div",xl,[e.createElementVNode("label",{for:l.value,class:"flex items-center cursor-pointer gap-2"},[o.variant==="switch"?(e.openBlock(),e.createElementBlock("div",Cl,[e.createElementVNode("input",{id:l.value,type:"checkbox",checked:o.modelValue,disabled:o.disabled,class:"sr-only",onChange:h},null,40,wl),e.createElementVNode("div",{class:e.normalizeClass(E.value),style:e.normalizeStyle(D.value)},[e.createElementVNode("div",{class:e.normalizeClass($.value),style:e.normalizeStyle(N.value)},null,6)],6)])):(e.openBlock(),e.createElementBlock("div",Bl,[e.createElementVNode("input",{id:l.value,type:"checkbox",checked:o.modelValue,disabled:o.disabled,class:e.normalizeClass(f.value),style:e.normalizeStyle(V.value),onChange:h},null,46,Vl),o.modelValue?(e.openBlock(),e.createElementBlock("svg",{key:0,class:e.normalizeClass(["absolute pointer-events-none",C.value]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[...n[0]||(n[0]=[e.createElementVNode("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])],2)):e.createCommentVNode("",!0)])),o.label?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(S.value),style:e.normalizeStyle(M.value)},e.toDisplayString(o.label),7)):e.createCommentVNode("",!0)],8,kl)]))}}),El=F($l,[["__scopeId","data-v-0d2c6db5"]]),Nl={class:"slider-wrapper"},zl=["for"],Sl={class:"relative w-full"},Dl=["id","min","max","step","value","disabled"],Ml=e.defineComponent({__name:"Slider",props:{modelValue:{default:0},min:{default:0},max:{default:100},step:{default:1},label:{default:void 0},disabled:{type:Boolean,default:!1},size:{default:"md"},color:{default:"primary"}},emits:["update:modelValue","change"],setup(o,{emit:m}){const t=o,d=m,l=e.computed(()=>`slider-${Math.random().toString(36).slice(2,9)}`),c={primary:{50:"#f1fbfc",100:"#d3f4f6",200:"#bfecef",500:"#56ced4",600:"#3bb8be",700:"#269ea4",800:"#1e8287"},secondary:{50:"#f8f2eb",100:"#f3e6d7",200:"#eacead",500:"#b76c15",600:"#89510f",700:"#6c3e0c",800:"#512d08"},danger:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534"}},s=V=>{if(typeof t.color=="string"&&t.color.startsWith("#"))return t.color;const C=c[t.color];return C?C[V]:c.primary[V]},a=(V,C)=>{const E=parseInt(V.replace("#",""),16),D=Math.round(2.55*C),$=(E>>16)+D,N=(E>>8&255)+D,S=(E&255)+D;return"#"+(16777216+($<255?$<1?0:$:255)*65536+(N<255?N<1?0:N:255)*256+(S<255?S<1?0:S:255)).toString(16).slice(1)},u=e.computed(()=>({sm:{trackHeight:"0.375rem",thumbSize:"1.1rem",shadow:"0 3px 8px rgba(0,0,0,0.2)"},md:{trackHeight:"0.5rem",thumbSize:"1.3rem",shadow:"0 4px 10px rgba(0,0,0,0.22)"},lg:{trackHeight:"0.625rem",thumbSize:"1.5rem",shadow:"0 5px 12px rgba(0,0,0,0.24)"}})[t.size]),k=e.computed(()=>{const V=t.max-t.min;return V<=0?0:(Math.min(t.max,Math.max(t.min,t.modelValue))-t.min)/V*100}),b=e.computed(()=>[t.disabled?"cursor-not-allowed opacity-50":"cursor-pointer"]),p=e.computed(()=>{const V=s(500),C=typeof t.color=="string"&&t.color.startsWith("#")?a(t.color,-20):s(700),E=typeof t.color=="string"&&t.color.startsWith("#")?a(t.color,-30):s(800),D=typeof t.color=="string"&&t.color.startsWith("#")?a(t.color,55):s(200),$=Math.min(100,Math.max(0,k.value));return{background:`linear-gradient(90deg, ${V} 0%, ${V} ${$}%, #e5e7eb ${$}%, #e5e7eb 100%)`,"--slider-track-height":u.value.trackHeight,"--slider-thumb-size":u.value.thumbSize,"--slider-thumb-color":C,"--slider-thumb-border":`2px solid ${E}`,"--slider-thumb-shadow":u.value.shadow,"--slider-track-active":D}}),y=V=>{const C=V.target,E=Number(C.value);d("update:modelValue",E)},f=V=>{const C=V.target,E=Number(C.value);d("change",E)};return(V,C)=>(e.openBlock(),e.createElementBlock("div",Nl,[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:l.value,class:"mb-2 block text-sm font-medium",style:{color:"#565656"}},e.toDisplayString(o.label),9,zl)):e.createCommentVNode("",!0),e.createElementVNode("div",Sl,[e.createElementVNode("input",{id:l.value,type:"range",min:o.min,max:o.max,step:o.step,value:o.modelValue,disabled:o.disabled,class:e.normalizeClass(["slider-input w-full",b.value]),style:e.normalizeStyle(p.value),onInput:y,onChange:f},null,46,Dl)])]))}}),Tl=F(Ml,[["__scopeId","data-v-89541d1a"]]),Il=["data-node-id"],jl={key:0,class:"shrink-0 size-12 rounded-full bg-[var(--neutrales/fondo-general-claro,#f7f7f7)] grid place-items-center"},Ll={key:0,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#0064ff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Fl={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#ff600a","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ol={key:2,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#3ac29e","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Al={key:3,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#ff4235","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Wl={key:1,class:"flex flex-wrap items-center justify-end gap-2 px-6 pb-6 pt-4"},Pl=e.defineComponent({__name:"Alert",props:{variant:{default:"info"},title:{},description:{},closable:{type:Boolean,default:!1},multiline:{type:Boolean,default:!1},actions:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},nodeId:{default:void 0},stackOn:{default:void 0},autoClose:{default:void 0}},emits:["close","accept","cancel"],setup(o,{emit:m}){const t=m;let d=null;const l=o,c=e.computed(()=>l.variant),s=e.computed(()=>l.multiline),a=e.computed(()=>l.actions),u=e.computed(()=>l.nodeId),k=e.computed(()=>l.showIcon),b=()=>{p(),t("close")},p=()=>{d!==null&&(clearTimeout(d),d=null)};e.onMounted(()=>{l.autoClose&&l.autoClose>0&&(d=setTimeout(()=>{t("close")},l.autoClose))}),e.onUnmounted(()=>{p()});const y=e.computed(()=>!!l.title),f=e.computed(()=>l.title??""),V=e.computed(()=>l.description??""),C=e.computed(()=>{switch(c.value){case"info":return{border:"border-[var(--semantica/info,#0064ff)]",bg:"bg-[#faf9fd] outline outline-1 outline-[rgba(105,78,214,0.4)]"};case"warning":return{border:"border-[var(--semantica/warning,#ff9100)]",bg:"bg-[#fffcfa] outline outline-1 outline-[rgba(255,96,10,0.3)]"};case"success":return{border:"border-[var(--semantica/succes,#00b45e)]",bg:"bg-[#f7fbf9] outline outline-1 outline-[rgba(0,135,68,0.5)]"};case"error":return{border:"border-[var(--semantica/error,#ff4235)]",bg:"bg-[#fdf7f9] outline outline-1 outline-[rgba(214,0,64,0.5)]"}}}),E=e.computed(()=>"bg-[var(--color-primario/500,#56ced4)]"),D=e.computed(()=>{const M="flex w-full items-start gap-4 flex-col";if(!l.stackOn)return`${M} sm:flex-row sm:items-center`;const h=l.stackOn,i=`${h}:flex-row ${h}:items-center`;return`${M} ${i}`}),$=e.computed(()=>{if(!l.stackOn)return"flex-col sm:flex-row items-start sm:items-center";const M=l.stackOn;return`flex-col ${M}:flex-row items-start ${M}:items-center`}),N=e.computed(()=>{if(!l.stackOn)return"flex-col sm:flex-row sm:items-center w-full";const M=l.stackOn;return`flex-col ${M}:flex-row ${M}:items-center w-full`}),S=e.computed(()=>l.stackOn?`self-start ${l.stackOn}:self-auto`:"self-start sm:self-auto");return(M,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative w-full rounded-xl border",[C.value.border,C.value.bg]]),role:"alert","data-node-id":u.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:b},[...h[2]||(h[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":a.value}])},[e.createElementVNode("div",{class:e.normalizeClass(D.value)},[k.value?(e.openBlock(),e.createElementBlock("div",jl,[c.value==="info"?(e.openBlock(),e.createElementBlock("svg",Ll,[...h[3]||(h[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)])])):c.value==="warning"?(e.openBlock(),e.createElementBlock("svg",Fl,[...h[4]||(h[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)])])):c.value==="success"?(e.openBlock(),e.createElementBlock("svg",Ol,[...h[5]||(h[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)])])):(e.openBlock(),e.createElementBlock("svg",Al,[...h[6]||(h[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)])]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["flex-1 flex gap-4 text-[14px]",[$.value,o.closable?"pr-6":"",{"whitespace-nowrap":!s.value,"whitespace-pre-wrap":s.value}]])},[e.createElementVNode("div",{class:e.normalizeClass(["flex flex-1 gap-3 items-start",N.value])},[y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tracking-[0.1px] text-[color:var(--neutrales/texto-principal,#565656)] font-medium",S.value])},e.toDisplayString(f.value),3)):e.createCommentVNode("",!0),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(M.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(V.value),1)])],2)],2)],2)],2)],2),a.value?(e.openBlock(),e.createElementBlock("div",Wl,[e.createElementVNode("button",{type:"button",class:"px-3 py-1.5 rounded-lg text-sm tracking-[0.25px] font-semibold text-[color:var(--neutrales/texto-principal,#565656)]",onClick:h[0]||(h[0]=i=>M.$emit("cancel"))},[e.renderSlot(M.$slots,"cancel",{},()=>[h[7]||(h[7]=e.createTextVNode("Cancelar",-1))])]),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["px-3 py-1.5 rounded-lg text-sm tracking-[0.25px] font-semibold text-white",E.value]),onClick:h[1]||(h[1]=i=>M.$emit("accept"))},[e.renderSlot(M.$slots,"accept",{},()=>[h[8]||(h[8]=e.createTextVNode("Aceptar",-1))])],2)])):e.createCommentVNode("",!0)],10,Il))}});exports.Alert=Pl;exports.AppBar=Ce;exports.Button=$e;exports.Calendar=lt;exports.Card=nt;exports.Checkbox=El;exports.Chip=hl;exports.Dialog=mt;exports.FileUpload=$t;exports.Icon=A;exports.Image=Nt;exports.Input=At;exports.Loader=qt;exports.Menu=oo;exports.Pagination=bl;exports.Select=wo;exports.Sidebar=zo;exports.Slider=Tl;exports.Table=el;exports.Tabs=al;exports.Text=rl;exports.Tooltip=gl;
|