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