@iaclinical/components 1.0.4 → 1.0.6

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 CHANGED
@@ -54,12 +54,50 @@ En tu archivo principal (ej. `main.ts` o `main.js`):
54
54
  import { createApp } from "vue";
55
55
  import App from "./App.vue";
56
56
 
57
- // Importar estilos de la librería
57
+ // Importar estilos de la librería (incluye la fuente Poppins)
58
58
  import "@iaclinical/components/style.css";
59
59
 
60
60
  createApp(App).mount("#app");
61
61
  ```
62
62
 
63
+ **Nota sobre las fuentes**: El archivo `style.css` incluye automáticamente la fuente **Poppins** que utiliza el Design System. Las fuentes se cargan desde la carpeta `fonts/` del paquete, por lo que no necesitas instalarlas por separado.
64
+
65
+ ### 3. Configuración de fuentes (Opcional)
66
+
67
+ Si tu bundler (Vite, Webpack, etc.) no copia automáticamente la carpeta `fonts/`, necesitarás configurarlo para que copie los archivos:
68
+
69
+ **Para Vite:**
70
+
71
+ ```javascript
72
+ // vite.config.js
73
+ import { defineConfig } from 'vite'
74
+ import vue from '@vitejs/plugin-vue'
75
+
76
+ export default defineConfig({
77
+ plugins: [vue()],
78
+ // Las fuentes se copiarán automáticamente desde node_modules/@iaclinical/components/dist/fonts/
79
+ })
80
+ ```
81
+
82
+ **Para Webpack:**
83
+
84
+ ```javascript
85
+ // webpack.config.js
86
+ module.exports = {
87
+ module: {
88
+ rules: [
89
+ {
90
+ test: /\.(woff|woff2)$/,
91
+ type: 'asset/resource',
92
+ generator: {
93
+ filename: 'fonts/[name][ext]'
94
+ }
95
+ }
96
+ ]
97
+ }
98
+ }
99
+ ```
100
+
63
101
  ## 🚀 Uso Básico
64
102
 
65
103
  ### Importación de Componentes
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),T={class:"flex items-center gap-4"},M={key:1,class:"text-lg font-bold text-primary-50 font-poppins"},D={class:"flex-1 flex justify-center"},L={class:"flex items-center gap-3"},j=e.defineComponent({__name:"AppBar",props:{title:{default:""},showMenuButton:{type:Boolean,default:!0},variant:{default:"default"},sticky:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},height:{default:"md"}},emits:["toggle-menu"],setup(o,{emit:p}){const t=o,i=p,n=e.computed(()=>{const r="flex items-center justify-between px-6 z-50",s={default:"bg-primary-700 text-primary-50",dark:"bg-secondary-900 text-white",light:"bg-white text-secondary-900 border-b border-secondary-200"},c={sm:"h-12",md:"h-14",lg:"h-16"},a=t.sticky?"sticky top-0":"",f=t.shadow?"shadow-md":"";return[r,s[t.variant],c[t.height],a,f].join(" ")});return(r,s)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(n.value)},[e.createElementVNode("div",T,[o.showMenuButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=c=>i("toggle-menu")),class:"p-2 hover:bg-primary-600 rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Toggle menu"},[...s[1]||(s[1]=[e.createElementVNode("svg",{class:"w-6 h-6 text-primary-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})],-1)])])):e.createCommentVNode("",!0),o.title?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"left",{},void 0,!0)]),e.createElementVNode("div",D,[e.renderSlot(r.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",L,[e.renderSlot(r.$slots,"right",{},void 0,!0)])],2))}}),S=(o,p)=>{const t=o.__vccOpts||o;for(const[i,n]of p)t[i]=n;return t},O=S(j,[["__scopeId","data-v-8c81fc6d"]]),I=["type","disabled","aria-label"],F={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:""}},emits:["click"],setup(o,{emit:p}){const t=o,i=p,n=e.computed(()=>t.variant==="icon"),r=e.computed(()=>t.badge>99?"99+":t.badge.toString()),s=e.computed(()=>{const a="inline-flex items-center justify-center font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",f={primary:"bg-primary-500 text-white hover:bg-primary-600 active:bg-primary-700 focus-visible:ring-primary-700",secondary:"bg-secondary-200 text-secondary-900 hover:bg-secondary-300 focus-visible:ring-secondary-500",outline:"border border-secondary-300 bg-transparent hover:bg-secondary-100 focus-visible:ring-secondary-500",ghost:"hover:bg-secondary-100 focus-visible:ring-secondary-500",danger:"bg-danger-600 text-white hover:bg-danger-700 focus-visible:ring-danger-600",icon:"hover:bg-secondary-100 focus-visible:ring-secondary-500 relative"},g={sm:n.value?"p-1.5":"h-8 px-3 text-sm",md:n.value?"p-2":"h-10 px-4 text-base",lg:n.value?"p-3":"h-12 px-6 text-lg"},w={full:"rounded-full",xl:"rounded-2xl",lg:"rounded-xl",md:"rounded-lg",sm:"rounded-md",none:"rounded-none"};return`${a} ${f[t.variant]} ${g[t.size]} ${w[t.radius]}`}),c=a=>{t.disabled||i("click",a)};return(a,f)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),type:o.type,disabled:o.disabled,onClick:c,"aria-label":o.ariaLabel},[e.renderSlot(a.$slots,"default"),n.value&&o.badge&&o.badge>0?(e.openBlock(),e.createElementBlock("span",F,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)],10,I))}}),A={key:0,class:"border-b border-gray-100 px-6 py-4"},W={class:"px-6 py-4"},K={key:1,class:"border-t border-gray-100 px-6 py-4 bg-gray-50"},R=e.defineComponent({__name:"Card",props:{shadow:{default:"md"},rounded:{default:"lg"},bordered:{type:Boolean,default:!1}},setup(o){const p=o,t={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},i={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},n=e.computed(()=>["w-full bg-white",t[p.shadow],i[p.rounded],p.bordered?"border border-gray-200":""]);return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[r.$slots.header?(e.openBlock(),e.createElementBlock("div",A,[e.renderSlot(r.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",W,[e.renderSlot(r.$slots,"default")]),r.$slots.footer?(e.openBlock(),e.createElementBlock("div",K,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),q={class:"flex items-center justify-between border-b border-gray-100 px-8 py-6"},P={class:"text-xl font-semibold text-gray-900"},U={class:"px-8 py-6"},G={key:0,class:"border-t border-gray-100 px-8 py-6 bg-gray-50"},Q=e.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean,default:!1},title:{default:"Diálogo"},closeOnBackdrop:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(o,{emit:p}){const t=o,i=p,n=e.computed({get:()=>t.modelValue,set:c=>i("update:modelValue",c)}),r=()=>{n.value=!1},s=()=>{t.closeOnBackdrop&&r()};return(c,a)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"dialog"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:s},[e.createElementVNode("div",{class:"relative w-full max-w-2xl rounded-lg bg-white shadow-xl",onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",q,[e.createElementVNode("h2",P,[e.renderSlot(c.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)]),e.createElementVNode("button",{type:"button",class:"inline-flex items-center justify-center rounded-md p-1 text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Cerrar diálogo",onClick:r},[...a[1]||(a[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",U,[e.renderSlot(c.$slots,"default",{},void 0,!0)]),c.$slots.footer?(e.openBlock(),e.createElementBlock("div",G,[e.renderSlot(c.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:3})]))}}),J=S(Q,[["__scopeId","data-v-091e8739"]]),X=["accept","multiple","disabled"],Y={class:"flex flex-col items-center justify-center gap-4 text-center"},Z={class:"w-32 h-32 flex items-center justify-center"},ee=["src","alt"],te={key:1,class:"w-full h-full text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},oe={class:"text-center"},le={class:"text-base font-medium text-gray-700"},ne={class:"text-primary-700"},se={class:"flex items-center gap-3 flex-1 min-w-0"},ae={class:"flex-1 min-w-0"},re={class:"text-sm font-medium text-gray-900 truncate"},ie={class:"text-xs text-gray-500"},ce={key:1,class:"text-xs text-gray-500 mt-2"},de={key:2,class:"text-sm text-danger-500 mt-2"},ue=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"},mainText:{default:"Suelta aquí un archivo o"},linkText:{default:"selecciónalo desde tu equipo"},helperText:{default:""},maxSize:{default:void 0}},emits:["update:modelValue","change","error"],setup(o,{emit:p}){const t=o,i=p,n=e.ref(null),r=e.ref(!1),s=e.ref(t.modelValue),c=e.ref(""),a=()=>{var k;(k=n.value)==null||k.click()},f=()=>{t.disabled||a()},g=k=>{t.disabled||(r.value=!0)},w=()=>{r.value=!1},E=k=>{if(c.value="",t.maxSize&&k.size>t.maxSize){const m=(t.maxSize/1048576).toFixed(2);return c.value=`El archivo excede el tamaño máximo de ${m}MB`,i("error",c.value),!1}return!0},b=k=>{var C;const v=(C=k.target.files)==null?void 0:C[0];v&&E(v)&&(s.value=v,i("update:modelValue",v),i("change",v))},V=k=>{var v;r.value=!1;const m=(v=k.dataTransfer)==null?void 0:v.files[0];m&&E(m)&&(s.value=m,i("update:modelValue",m),i("change",m))},$=()=>{s.value=null,c.value="",n.value&&(n.value.value=""),i("update:modelValue",null),i("change",null)},N=k=>{if(k===0)return"0 Bytes";const m=1024,v=["Bytes","KB","MB","GB"],C=Math.floor(Math.log(k)/Math.log(m));return Math.round(k/Math.pow(m,C)*100)/100+" "+v[C]};return(k,m)=>(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(g,["prevent"]),onDragleave:e.withModifiers(w,["prevent"]),onDrop:e.withModifiers(V,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:n,type:"file",accept:o.accept,multiple:o.multiple,disabled:o.disabled,class:"hidden",onChange:b},null,40,X),e.createElementVNode("div",Y,[e.createElementVNode("div",Z,[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,ee)):(e.openBlock(),e.createElementBlock("svg",te,[...m[1]||(m[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)])]))]),e.createElementVNode("div",oe,[e.createElementVNode("p",le,[e.createTextVNode(e.toDisplayString(o.mainText)+" ",1),e.createElementVNode("span",ne,e.toDisplayString(o.linkText),1)])]),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"w-full max-w-md bg-gray-50 rounded-lg p-4 flex items-center justify-between",onClick:m[0]||(m[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",se,[m[2]||(m[2]=e.createElementVNode("svg",{class:"w-6 h-6 text-gray-600 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})],-1)),e.createElementVNode("div",ae,[e.createElementVNode("p",re,e.toDisplayString(s.value.name),1),e.createElementVNode("p",ie,e.toDisplayString(N(s.value.size)),1)])]),o.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers($,["stop"]),class:"ml-3 text-gray-400 hover:text-danger-500 transition-colors"},[...m[3]||(m[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",ce,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("p",de,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)])],34))}}),me=["stroke-width"],pe={class:"w-full h-full rounded-lg overflow-hidden",style:{"background-color":"#f7f7f7"}},fe=e.defineComponent({__name:"Loader",props:{type:{default:"circular"},size:{default:"40px"},height:{default:"4px"},color:{default:"primary"},strokeWidth:{default:4},progress:{default:void 0}},setup(o){const p=o,t={primary:"text-primary-700",secondary:"text-secondary-500",success:"text-success-500",warning:"text-warning-500",danger:"text-danger-500",info:"text-info-500"},i={primary:"bg-primary-700",secondary:"bg-secondary-500",success:"bg-success-500",warning:"bg-warning-500",danger:"bg-danger-500",info:"bg-info-500"},n=e.computed(()=>[t[p.color]]),r=e.computed(()=>[i[p.color]]);return(s,c)=>o.type==="circular"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.value)},[(e.openBlock(),e.createElementBlock("svg",{class:"animate-spin",style:e.normalizeStyle({width:o.size,height:o.size}),viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":o.strokeWidth,fill:"none"},null,8,me),c[0]||(c[0]=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1))],4))],2)):o.type==="linear"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full",style:e.normalizeStyle({height:o.height})},[e.createElementVNode("div",pe,[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)}}),ge=S(fe,[["__scopeId","data-v-8df4ec38"]]),ye=["disabled","aria-expanded"],he=["disabled","onClick"],ke={key:0,class:"flex-shrink-0"},be=["innerHTML"],ve={class:"flex-1 min-w-0 mr-2"},xe={class:"flex flex-col items-start"},Be=["title"],we=["title"],Ce={key:1,class:"flex-shrink-0"},Ee={key:0,class:"text-xs text-secondary-400 font-mono whitespace-nowrap"},Ve={key:1},$e={key:2,class:"w-4 h-4 ml-2 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Ne=e.defineComponent({__name:"Menu",props:{items:{default:()=>[]},triggerText:{default:"Menu"},showChevron:{type:Boolean,default:!0},position:{default:"bottom-start"},align:{default:"start"},offset:{default:()=>({x:0,y:4})},width:{default:"auto"},maxHeight:{default:"400px"},closeOnClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},teleport:{type:Boolean,default:!0},zIndex:{default:50}},emits:["open","close","select"],setup(o,{emit:p}){const t=o,i=p,n=e.ref(!1),r=e.ref(null),s=e.ref(null),c=e.ref({}),a=e.computed(()=>["inline-flex items-center justify-center px-4 py-2 text-sm font-medium","bg-white border border-secondary-300 rounded-md","hover:bg-secondary-50 focus:outline-none focus:ring-2 focus:ring-primary-500","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors"].join(" ")),f=e.computed(()=>[...["fixed bg-white rounded-lg shadow-lg border border-secondary-200","flex flex-col","focus:outline-none"],`z-${t.zIndex}`].join(" ")),g=e.computed(()=>"px-4 py-3 border-b border-secondary-200 bg-secondary-50"),w=e.computed(()=>"px-4 py-3 border-t border-secondary-200 bg-secondary-50"),E=e.computed(()=>"py-1 overflow-y-auto flex-1 min-h-0"),b=e.computed(()=>"my-1 border-t border-secondary-200"),V=e.computed(()=>"px-4 py-2 text-xs font-semibold text-secondary-500 uppercase tracking-wider"),$=l=>{const h=["w-full flex items-center gap-3 px-4 py-2 text-sm text-left","transition-colors focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"],d=l.variant||"default",z={default:"text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50",danger:"text-danger-600 hover:bg-danger-50 focus:bg-danger-50",success:"text-success-600 hover:bg-success-50 focus:bg-success-50",warning:"text-warning-600 hover:bg-warning-50 focus:bg-warning-50"};return[...h,z[d]].join(" ")},N=()=>{t.disabled||(n.value?m():k())},k=()=>{n.value=!0,i("open"),e.nextTick(()=>{y(),document.addEventListener("click",C),document.addEventListener("keydown",_)})},m=()=>{n.value=!1,i("close"),document.removeEventListener("click",C),document.removeEventListener("keydown",_)},v=l=>{l.disabled||(l.action&&l.action(),i("select",l),t.closeOnClick&&!l.children&&m())},C=l=>{const h=l.target;r.value&&!r.value.contains(h)&&s.value&&!s.value.contains(h)&&m()},_=l=>{l.key==="Escape"&&m()},u=l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),N())},y=()=>{if(!r.value||!s.value)return;const l=r.value.getBoundingClientRect(),h=s.value.getBoundingClientRect(),d=window.innerWidth,z=window.innerHeight;let x=0,B=0;switch(t.position){case"bottom-start":x=l.bottom+t.offset.y,B=l.left+t.offset.x;break;case"bottom-end":x=l.bottom+t.offset.y,B=l.right-h.width+t.offset.x;break;case"top-start":x=l.top-h.height-t.offset.y,B=l.left+t.offset.x;break;case"top-end":x=l.top-h.height-t.offset.y,B=l.right-h.width+t.offset.x;break;case"right-start":x=l.top+t.offset.y,B=l.right+t.offset.x;break;case"right-end":x=l.bottom-h.height+t.offset.y,B=l.right+t.offset.x;break;case"left-start":x=l.top+t.offset.y,B=l.left-h.width-t.offset.x;break;case"left-end":x=l.bottom-h.height+t.offset.y,B=l.left-h.width-t.offset.x;break}B+h.width>d&&(B=d-h.width-8),B<8&&(B=8),x+h.height>z&&(x=z-h.height-8),x<8&&(x=8),c.value={top:`${x}px`,left:`${B}px`,width:t.width==="auto"?`${Math.max(l.width,240)}px`:t.width,maxHeight:t.maxHeight,minWidth:"240px"}};return e.onMounted(()=>{window.addEventListener("scroll",y,!0),window.addEventListener("resize",y)}),e.onUnmounted(()=>{window.removeEventListener("scroll",y,!0),window.removeEventListener("resize",y),document.removeEventListener("click",C),document.removeEventListener("keydown",_)}),e.watch(()=>t.items,()=>{n.value&&e.nextTick(y)},{deep:!0}),(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper",{"w-full":o.fullWidth}])},[e.createElementVNode("div",{ref_key:"triggerRef",ref:r},[e.renderSlot(l.$slots,"trigger",{isOpen:n.value,toggle:N},()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(a.value),disabled:o.disabled,onClick:N,onKeydown:u,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"},[...h[1]||(h[1]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2)):e.createCommentVNode("",!0)],42,ye)],!0)],512),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:s,class:e.normalizeClass(f.value),style:e.normalizeStyle(c.value),onClick:h[0]||(h[0]=e.withModifiers(()=>{},["stop"]))},[l.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(g.value)},[e.renderSlot(l.$slots,"header",{close:m},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(E.value)},[e.renderSlot(l.$slots,"default",{close:m,isOpen:n.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(d,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d.id||z},[d.type==="divider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(b.value)},null,2)):d.type==="header"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(V.value)},e.toDisplayString(d.label),3)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass($(d)),disabled:d.disabled,onClick:x=>v(d)},[d.icon||l.$slots[`icon-${d.id}`]?(e.openBlock(),e.createElementBlock("span",ke,[e.renderSlot(l.$slots,`icon-${d.id}`,{item:d},()=>[typeof d.icon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon),{key:0,class:"w-5 h-5"})):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:d.icon,class:"w-5 h-5 inline-block"},null,8,be))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",ve,[e.renderSlot(l.$slots,`item-${d.id}`,{item:d,close:m},()=>[e.createElementVNode("div",xe,[e.createElementVNode("span",{class:"truncate w-full",title:d.label},e.toDisplayString(d.label),9,Be),d.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-xs text-secondary-500 truncate w-full",title:d.description},e.toDisplayString(d.description),9,we)):e.createCommentVNode("",!0)])],!0)]),d.suffix||d.shortcut||l.$slots[`suffix-${d.id}`]?(e.openBlock(),e.createElementBlock("span",Ce,[e.renderSlot(l.$slots,`suffix-${d.id}`,{item:d},()=>[d.shortcut?(e.openBlock(),e.createElementBlock("span",Ee,e.toDisplayString(d.shortcut),1)):d.suffix?(e.openBlock(),e.createElementBlock("span",Ve,e.toDisplayString(d.suffix),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),d.children&&d.children.length>0?(e.openBlock(),e.createElementBlock("svg",$e,[...h[2]||(h[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,he))],64))),128))],!0)],2),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(w.value)},[e.renderSlot(l.$slots,"footer",{close:m},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:m})):e.createCommentVNode("",!0)]))],2))}}),Se=S(Ne,[["__scopeId","data-v-e155a86b"]]),ze=["for"],_e={key:0,class:"text-danger-600"},Te={class:"relative"},Me=["id","disabled","aria-expanded"],De={class:"flex-1 text-left truncate"},Le={key:0,class:"p-2 border-b border-secondary-200"},je=["placeholder"],Oe={class:"max-h-64 overflow-y-auto"},Ie={key:0,class:"px-4 py-3 text-sm text-secondary-500 text-center"},Fe=["onClick"],He={class:"flex items-center justify-between w-full"},Ae={class:"truncate"},We={key:0,class:"w-5 h-5 text-primary-600 flex-shrink-0 ml-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ke={key:0,class:"border-t border-secondary-200 my-1"},Re=["onClick"],qe=["innerHTML"],Pe={key:1,class:"mt-1 text-sm text-danger-600"},Ue={key:2,class:"mt-1 text-sm text-secondary-600"},Ge=e.defineComponent({__name:"Select",props:{modelValue:{default:null},options:{default:()=>[]},actionItems:{default:()=>[]},label:{default:""},placeholder:{default:"Seleccionar..."},size:{default:"md"},variant:{default:"default"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Buscar..."},emptyText:{default:"No hay opciones disponibles"},error:{default:""},helperText:{default:""},fullWidth:{type:Boolean,default:!1},menuPosition:{default:"bottom"}},emits:["update:modelValue","change","action"],setup(o,{emit:p}){const t=o,i=p,n=e.ref(!1),r=e.ref(""),s=e.ref(null),c=e.computed(()=>`select-${Math.random().toString(36).substr(2,9)}`),a=e.computed(()=>t.options.find(u=>u.value===t.modelValue)||null),f=e.computed(()=>{if(!t.searchable||!r.value)return t.options;const u=r.value.toLowerCase();return t.options.filter(y=>y.label.toLowerCase().includes(u))}),g=e.computed(()=>"block text-sm font-semibold text-secondary-700 mb-1"),w=e.computed(()=>{const u="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",y={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"},h=t.error?"border-danger-600 focus:ring-danger-500":"";return[u,y[t.size],l[t.variant],h].join(" ")}),E=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`),b=u=>{const y="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=$(u)?"bg-primary-50":"";return[y,l].join(" ")},V=u=>{const y="w-full px-4 py-2 text-left text-sm font-semibold transition-colors focus:outline-none flex items-center gap-3";return u.variant==="danger"?`${y} text-danger-600 hover:bg-danger-50 focus:bg-danger-50`:`${y} text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50`},$=u=>u.value===t.modelValue,N=()=>{t.disabled||(n.value=!n.value,n.value&&t.searchable&&e.nextTick(()=>{var u;(u=s.value)==null||u.focus()}))},k=()=>{n.value=!1,r.value=""},m=u=>{u.disabled||(i("update:modelValue",u.value),i("change",u),k())},v=u=>{u.action&&u.action(),i("action",u),k()},C=u=>{const y=u.relatedTarget;y&&y.closest(".select-wrapper")||setTimeout(()=>{k()},200)},_=u=>{u.key==="Escape"?k():(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),N())};return e.watch(n,u=>{u&&(r.value="")}),(u,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-wrapper",{"w-full":o.fullWidth}])},[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:c.value,class:e.normalizeClass(g.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",_e,"*")):e.createCommentVNode("",!0)],10,ze)):e.createCommentVNode("",!0),e.createElementVNode("div",Te,[e.createElementVNode("button",{id:c.value,type:"button",class:e.normalizeClass(w.value),disabled:o.disabled,"aria-expanded":n.value,"aria-haspopup":!0,onClick:N,onBlur:C,onKeydown:_},[e.createElementVNode("span",De,e.toDisplayString(a.value?a.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"},[...y[3]||(y[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,Me),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(E.value),onClick:y[2]||(y[2]=e.withModifiers(()=>{},["stop"]))},[o.searchable?(e.openBlock(),e.createElementBlock("div",Le,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:s,"onUpdate:modelValue":y[0]||(y[0]=l=>r.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:y[1]||(y[1]=e.withModifiers(()=>{},["stop"]))},null,40,je),[[e.vModelText,r.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",Oe,[f.value.length===0?(e.openBlock(),e.createElementBlock("div",Ie,e.toDisplayString(o.emptyText),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,l=>(e.openBlock(),e.createElementBlock("button",{key:l.value,type:"button",class:e.normalizeClass(b(l)),onClick:h=>m(l)},[e.createElementVNode("div",He,[e.createElementVNode("span",Ae,e.toDisplayString(l.label),1),$(l)?(e.openBlock(),e.createElementBlock("svg",We,[...y[4]||(y[4]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)])],10,Fe))),128)),o.actionItems.length>0?(e.openBlock(),e.createElementBlock("div",Ke)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actionItems,l=>(e.openBlock(),e.createElementBlock("button",{key:l.id,type:"button",class:e.normalizeClass(V(l)),onClick:h=>v(l)},[l.icon?(e.openBlock(),e.createElementBlock("svg",{key:0,class:"w-4 h-4 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",innerHTML:l.icon},null,8,qe)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.label),1)],10,Re))),128))],64))])],2)):e.createCommentVNode("",!0)]),o.error?(e.openBlock(),e.createElementBlock("p",Pe,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Ue,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:k,class:"fixed inset-0 z-40"})):e.createCommentVNode("",!0)],2))}}),Qe=S(Ge,[["__scopeId","data-v-f016a03c"]]),Je=e.defineComponent({__name:"Sidebar",props:{modelValue:{type:Boolean,default:!1},position:{default:"left"},width:{default:"16rem"},overlay:{type:Boolean,default:!0},overlayTop:{default:"0"},closable:{type:Boolean,default:!0},persistent:{type:Boolean,default:!1},backgroundColor:{default:"white"},shadow:{type:Boolean,default:!0},padding:{default:"md"}},emits:["update:modelValue","close","open"],setup(o,{emit:p}){const t=o,i=p,n=e.computed({get:()=>t.modelValue,set:b=>i("update:modelValue",b)}),r=()=>{t.persistent||(n.value=!1,i("close"))},s=e.computed(()=>t.position==="left"?"slide-right":"slide-left"),c=e.computed(()=>{const b="fixed top-0 h-full z-50 flex flex-col",V=t.position==="left"?"left-0":"right-0",$=t.shadow?t.position==="left"?"shadow-[2px_0_8px_rgba(0,0,0,0.1)]":"shadow-[-2px_0_8px_rgba(0,0,0,0.1)]":"";return[b,V,$].filter(Boolean).join(" ")}),a=e.computed(()=>({width:t.width,backgroundColor:t.backgroundColor,top:t.overlayTop,height:t.overlayTop!=="0"?`calc(100vh - ${t.overlayTop})`:"100vh"})),f={none:"",sm:"p-2",md:"p-4",lg:"p-6"},g=e.computed(()=>`flex items-center justify-between border-b border-gray-200 ${f[t.padding]}`),w=e.computed(()=>`flex-1 overflow-y-auto ${f[t.padding]}`),E=e.computed(()=>`border-t border-gray-200 ${f[t.padding]}`);return(b,V)=>(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: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:s.value},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(c.value),style:e.normalizeStyle(a.value)},[b.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(g.value)},[e.renderSlot(b.$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ú"},[...V[0]||(V[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(w.value)},[e.renderSlot(b.$slots,"default",{},void 0,!0)],2),b.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(E.value)},[e.renderSlot(b.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),Xe=S(Je,[["__scopeId","data-v-fffb0e44"]]),Ye={class:"w-full overflow-x-auto"},Ze={class:"w-full border-collapse"},et={class:"w-full"},tt={class:"bg-white border-b border-gray-100 w-full"},ot=["onClick"],lt={class:"flex items-center gap-2"},nt={key:0,class:"text-xs text-gray-400"},st={key:0},at={key:1},rt={class:"w-full"},it={key:0,class:"flex items-center justify-center py-12 text-gray-400"},ct={key:1,class:"w-full px-6 py-4 bg-white"},dt=e.defineComponent({__name:"Table",props:{columns:{},data:{}},setup(o){const p=o,t=e.ref(null),i=e.ref("asc"),n=s=>{t.value===s?i.value=i.value==="asc"?"desc":"asc":(t.value=s,i.value="asc")},r=e.computed(()=>{if(!t.value)return p.data;const s=[...p.data];return s.sort((c,a)=>{const f=c[t.value],g=a[t.value];return typeof f=="string"&&typeof g=="string"?i.value==="asc"?f.localeCompare(g):g.localeCompare(f):typeof f=="number"&&typeof g=="number"?i.value==="asc"?f-g:g-f:0}),s});return(s,c)=>(e.openBlock(),e.createElementBlock("div",Ye,[e.createElementVNode("table",Ze,[e.createElementVNode("thead",et,[e.createElementVNode("tr",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,a=>(e.openBlock(),e.createElementBlock("th",{key:a.key,style:e.normalizeStyle(a.width?{width:a.width}:{}),class:e.normalizeClass(["px-8 py-4 text-left text-base font-semibold text-gray-900 border-0",a.sortable?"cursor-pointer hover:text-primary-700 select-none transition-colors":""]),onClick:f=>a.sortable&&n(a.key)},[e.createElementVNode("div",lt,[e.createElementVNode("span",null,e.toDisplayString(a.label),1),a.sortable?(e.openBlock(),e.createElementBlock("span",nt,[t.value!==a.key?(e.openBlock(),e.createElementBlock("span",st,"⇅")):(e.openBlock(),e.createElementBlock("span",at,e.toDisplayString(i.value==="asc"?"↑":"↓"),1))])):e.createCommentVNode("",!0)])],14,ot))),128))])]),e.createElementVNode("tbody",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(a,f)=>(e.openBlock(),e.createElementBlock("tr",{key:f,class:"w-full hover:bg-gray-50 transition-colors"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,g=>(e.openBlock(),e.createElementBlock("td",{key:`${f}-${g.key}`,class:"px-8 py-4 text-base text-gray-700 border-0"},[e.renderSlot(s.$slots,`cell-${g.key}`,{value:a[g.key],row:a},()=>[e.createTextVNode(e.toDisplayString(a[g.key]),1)],!0)]))),128))]))),128))])]),r.value.length===0?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(s.$slots,"empty",{},()=>[c[0]||(c[0]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0),s.$slots.footer?(e.openBlock(),e.createElementBlock("div",ct,[e.renderSlot(s.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]))}}),ut=S(dt,[["__scopeId","data-v-6b3ff0a8"]]),mt={class:"w-full"},pt={class:"flex border-b border-gray-100",role:"tablist"},ft=["aria-selected","onClick"],gt={role:"tabpanel"},yt="relative px-6 py-3 text-base font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",ht="text-primary-700 border-b-4 border-primary-700",kt="text-gray-600 border-b-4 border-transparent hover:text-gray-800",bt=e.defineComponent({__name:"Tabs",props:{modelValue:{},tabs:{}},emits:["update:modelValue"],setup(o,{emit:p}){const t=o,i=p,n=a=>t.modelValue===a,r=a=>{n(a)||i("update:modelValue",a)},s=e.computed(()=>t.modelValue),c=e.computed(()=>t.tabs.find(a=>a.value===s.value));return(a,f)=>(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("div",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,type:"button",class:e.normalizeClass([yt,n(g.value)?ht:kt]),"aria-selected":n(g.value),role:"tab",onClick:w=>r(g.value)},e.toDisplayString(g.label),11,ft))),128))]),e.createElementVNode("div",gt,[e.renderSlot(a.$slots,s.value,{active:s.value,tab:c.value})])]))}}),vt="font-sans",xt=e.defineComponent({__name:"Text",props:{variant:{default:"body1"},as:{},color:{default:"default"},align:{default:"left"},uppercase:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},weight:{}},setup(o){const p={h1:"text-[40px] leading-[57px] tracking-[0px] font-extrabold",h2:"text-[40px] leading-[57px] tracking-[0px] font-bold",h3:"text-[28px] leading-[39px] tracking-[0px] font-extrabold",h4:"text-[21px] leading-[29px] tracking-[0px] font-extrabold",h5:"text-[16px] leading-[22px] tracking-[0px] font-extrabold",h6:"text-[13px] leading-[18px] tracking-[0px] font-extrabold",subtitle1:"text-[16px] leading-[24px] tracking-[0.15px] font-medium",subtitle2:"text-[14px] leading-[21px] tracking-[0.1px] font-medium",subtitle3:"text-[12px] leading-[18px] tracking-[0.1px] font-medium",subtitle4:"text-[10px] leading-[15px] tracking-[0.1px] font-medium",body1:"text-[16px] leading-[24px] tracking-[0.5px] font-light",body2:"text-[14px] leading-[21px] tracking-[0.25px] font-light",body3:"text-[12px] leading-[18px] tracking-[0.25px] font-light",body4:"text-[10px] leading-[15px] tracking-[0.25px] font-light",button1:"text-[14px] leading-[24px] tracking-[1.25px] font-bold",button2:"text-[14px] leading-[20px] tracking-[1.25px] font-bold",button3:"text-[12px] leading-[18px] tracking-[1.25px] font-bold",caption:"text-[12px] leading-[18px] tracking-[0.4px] font-normal",overline:"text-[10px] leading-[15px] tracking-[1.5px] font-medium"},t={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",body1:"p",body2:"p",body3:"p",body4:"p",button1:"span",button2:"span",button3:"span",caption:"span",overline:"span"},i={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"},r={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},s=o,c=e.computed(()=>s.variant),a=e.computed(()=>s.color),f=e.computed(()=>s.align),g=e.computed(()=>s.as||t[c.value]||"span"),w=e.computed(()=>s.weight?r[s.weight]:"");return(E,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.value),{class:e.normalizeClass([vt,p[c.value],n[a.value],i[f.value],w.value,{uppercase:o.uppercase||c.value==="overline",truncate:o.truncate}])},{default:e.withCtx(()=>[e.renderSlot(E.$slots,"default")]),_:3},8,["class"]))}});exports.AppBar=O;exports.Button=H;exports.Card=R;exports.Dialog=J;exports.FileUpload=ue;exports.Loader=ge;exports.Menu=Se;exports.Select=Qe;exports.Sidebar=Xe;exports.Table=ut;exports.Tabs=bt;exports.Text=xt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_={class:"flex items-center gap-4"},D={key:1,class:"text-lg font-bold text-primary-50 font-poppins"},M={class:"flex-1 flex justify-center"},L={key:0,class:"text-lg font-bold text-primary-50 font-poppins"},j={class:"flex items-center gap-3"},O={key:0,class:"text-lg font-bold text-primary-50 font-poppins"},I=e.defineComponent({__name:"AppBar",props:{title:{default:""},titlePosition:{default:"left"},showMenuButton:{type:Boolean,default:!0},variant:{default:"default"},sticky:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},height:{default:"md"}},emits:["toggle-menu"],setup(o,{emit:p}){const t=o,i=p,n=e.computed(()=>{const r="flex items-center justify-between px-6 z-50",s={default:"bg-primary-700 text-primary-50",dark:"bg-secondary-900 text-white",light:"bg-white text-secondary-900 border-b border-secondary-200"},c={sm:"h-12",md:"h-14",lg:"h-16"},a=t.sticky?"sticky top-0":"",f=t.shadow?"shadow-md":"";return[r,s[t.variant],c[t.height],a,f].join(" ")});return(r,s)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(n.value)},[e.createElementVNode("div",_,[o.showMenuButton?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:s[0]||(s[0]=c=>i("toggle-menu")),class:"p-2 hover:bg-primary-600 rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Toggle menu"},[...s[1]||(s[1]=[e.createElementVNode("svg",{class:"w-6 h-6 text-primary-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})],-1)])])):e.createCommentVNode("",!0),o.title&&o.titlePosition==="left"?(e.openBlock(),e.createElementBlock("div",D,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"left",{},void 0,!0)]),e.createElementVNode("div",M,[o.title&&o.titlePosition==="center"?(e.openBlock(),e.createElementBlock("div",L,e.toDisplayString(o.title),1)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"center",{},void 0,!0)]),e.createElementVNode("div",j,[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))}}),S=(o,p)=>{const t=o.__vccOpts||o;for(const[i,n]of p)t[i]=n;return t},F=S(I,[["__scopeId","data-v-883474b5"]]),H=["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]"},A=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:""}},emits:["click"],setup(o,{emit:p}){const t=o,i=p,n=e.computed(()=>t.variant==="icon"),r=e.computed(()=>t.badge>99?"99+":t.badge.toString()),s=e.computed(()=>{const a="inline-flex items-center justify-center font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",f={primary:"bg-primary-500 text-white hover:bg-primary-600 active:bg-primary-700 focus-visible:ring-primary-700",secondary:"bg-secondary-200 text-secondary-900 hover:bg-secondary-300 focus-visible:ring-secondary-500",outline:"border border-secondary-300 bg-transparent hover:bg-secondary-100 focus-visible:ring-secondary-500",ghost:"hover:bg-secondary-100 focus-visible:ring-secondary-500",danger:"bg-danger-600 text-white hover:bg-danger-700 focus-visible:ring-danger-600",icon:"hover:bg-secondary-100 focus-visible:ring-secondary-500 relative",text:"bg-transparent border-0 focus-visible:ring-0 focus-visible:ring-offset-0"},g={sm:n.value?"p-1.5":"h-8 px-3 text-sm",md:n.value?"p-2":"h-10 px-4 text-base",lg:n.value?"p-3":"h-12 px-6 text-lg"},w={full:"rounded-full",xl:"rounded-2xl",lg:"rounded-xl",md:"rounded-lg",sm:"rounded-md",none:"rounded-none"};return`${a} ${f[t.variant]} ${g[t.size]} ${w[t.radius]}`}),c=a=>{t.disabled||i("click",a)};return(a,f)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(s.value),type:o.type,disabled:o.disabled,onClick:c,"aria-label":o.ariaLabel},[e.renderSlot(a.$slots,"default"),n.value&&o.badge&&o.badge>0?(e.openBlock(),e.createElementBlock("span",P,e.toDisplayString(r.value),1)):e.createCommentVNode("",!0)],10,H))}}),W={key:0,class:"border-b border-gray-100 px-6 py-4"},K={class:"px-6 py-4"},R={key:1,class:"border-t border-gray-100 px-6 py-4 bg-gray-50"},q=e.defineComponent({__name:"Card",props:{shadow:{default:"md"},rounded:{default:"lg"},bordered:{type:Boolean,default:!1}},setup(o){const p=o,t={none:"",sm:"shadow-sm",md:"shadow",lg:"shadow-lg",xl:"shadow-xl"},i={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},n=e.computed(()=>["w-full bg-white",t[p.shadow],i[p.rounded],p.bordered?"border border-gray-200":""]);return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[r.$slots.header?(e.openBlock(),e.createElementBlock("div",W,[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",R,[e.renderSlot(r.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),U={class:"flex items-center justify-between border-b border-gray-100 px-8 py-6"},G={class:"text-xl font-semibold text-gray-900"},Q={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"],setup(o,{emit:p}){const t=o,i=p,n=e.computed({get:()=>t.modelValue,set:c=>i("update:modelValue",c)}),r=()=>{n.value=!1},s=()=>{t.closeOnBackdrop&&r()};return(c,a)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"dialog"},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:s},[e.createElementVNode("div",{class:"relative w-full max-w-2xl rounded-lg bg-white shadow-xl",onClick:a[0]||(a[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",U,[e.createElementVNode("h2",G,[e.renderSlot(c.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)]),e.createElementVNode("button",{type:"button",class:"inline-flex items-center justify-center rounded-md p-1 text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500","aria-label":"Cerrar diálogo",onClick:r},[...a[1]||(a[1]=[e.createElementVNode("svg",{class:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])])]),e.createElementVNode("div",Q,[e.renderSlot(c.$slots,"default",{},void 0,!0)]),c.$slots.footer?(e.openBlock(),e.createElementBlock("div",J,[e.renderSlot(c.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:3})]))}}),Y=S(X,[["__scopeId","data-v-091e8739"]]),Z=["accept","multiple","disabled"],ee={class:"flex flex-col items-center justify-center gap-4 text-center"},te={class:"w-32 h-32 flex items-center justify-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"},se={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"},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"},mainText:{default:"Suelta aquí un archivo o"},linkText:{default:"selecciónalo desde tu equipo"},helperText:{default:""},maxSize:{default:void 0}},emits:["update:modelValue","change","error"],setup(o,{emit:p}){const t=o,i=p,n=e.ref(null),r=e.ref(!1),s=e.ref(t.modelValue),c=e.ref(""),a=()=>{var k;(k=n.value)==null||k.click()},f=()=>{t.disabled||a()},g=k=>{t.disabled||(r.value=!0)},w=()=>{r.value=!1},E=k=>{if(c.value="",t.maxSize&&k.size>t.maxSize){const m=(t.maxSize/1048576).toFixed(2);return c.value=`El archivo excede el tamaño máximo de ${m}MB`,i("error",c.value),!1}return!0},b=k=>{var C;const v=(C=k.target.files)==null?void 0:C[0];v&&E(v)&&(s.value=v,i("update:modelValue",v),i("change",v))},V=k=>{var v;r.value=!1;const m=(v=k.dataTransfer)==null?void 0:v.files[0];m&&E(m)&&(s.value=m,i("update:modelValue",m),i("change",m))},$=()=>{s.value=null,c.value="",n.value&&(n.value.value=""),i("update:modelValue",null),i("change",null)},N=k=>{if(k===0)return"0 Bytes";const m=1024,v=["Bytes","KB","MB","GB"],C=Math.floor(Math.log(k)/Math.log(m));return Math.round(k/Math.pow(m,C)*100)/100+" "+v[C]};return(k,m)=>(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(g,["prevent"]),onDragleave:e.withModifiers(w,["prevent"]),onDrop:e.withModifiers(V,["prevent"])},[e.createElementVNode("input",{ref_key:"fileInput",ref:n,type:"file",accept:o.accept,multiple:o.multiple,disabled:o.disabled,class:"hidden",onChange:b},null,40,Z),e.createElementVNode("div",ee,[e.createElementVNode("div",te,[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,[...m[1]||(m[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)])]))]),e.createElementVNode("div",ne,[e.createElementVNode("p",se,[e.createTextVNode(e.toDisplayString(o.mainText)+" ",1),e.createElementVNode("span",ae,e.toDisplayString(o.linkText),1)])]),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"w-full max-w-md bg-gray-50 rounded-lg p-4 flex items-center justify-between",onClick:m[0]||(m[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",re,[m[2]||(m[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(s.value.name),1),e.createElementVNode("p",de,e.toDisplayString(N(s.value.size)),1)])]),o.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,onClick:e.withModifiers($,["stop"]),class:"ml-3 text-gray-400 hover:text-danger-500 transition-colors"},[...m[3]||(m[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),c.value?(e.openBlock(),e.createElementBlock("p",me,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)])],34))}}),fe=["stroke-width"],ge={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 p=o,t={primary:"text-primary-700",secondary:"text-secondary-500",success:"text-success-500",warning:"text-warning-500",danger:"text-danger-500",info:"text-info-500"},i={primary:"bg-primary-700",secondary:"bg-secondary-500",success:"bg-success-500",warning:"bg-warning-500",danger:"bg-danger-500",info:"bg-info-500"},n=e.computed(()=>[t[p.color]]),r=e.computed(()=>[i[p.color]]);return(s,c)=>o.type==="circular"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(n.value)},[(e.openBlock(),e.createElementBlock("svg",{class:"animate-spin",style:e.normalizeStyle({width:o.size,height:o.size}),viewBox:"0 0 24 24"},[e.createElementVNode("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":o.strokeWidth,fill:"none"},null,8,fe),c[0]||(c[0]=e.createElementVNode("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1))],4))],2)):o.type==="linear"?(e.openBlock(),e.createElementBlock("div",{key:1,class:"w-full",style:e.normalizeStyle({height:o.height})},[e.createElementVNode("div",ge,[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=S(ye,[["__scopeId","data-v-8df4ec38"]]),ke=["disabled","aria-expanded"],be=["disabled","onClick"],ve={key:0,class:"flex-shrink-0"},xe=["innerHTML"],Be={class:"flex-1 min-w-0 mr-2"},we={class:"flex flex-col items-start"},Ce=["title"],Ee=["title"],Ve={key:1,class:"flex-shrink-0"},$e={key:0,class:"text-xs text-secondary-400 font-mono whitespace-nowrap"},Ne={key:1},Se={key:2,class:"w-4 h-4 ml-2 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},ze=e.defineComponent({__name:"Menu",props:{items:{default:()=>[]},triggerText:{default:"Menu"},showChevron:{type:Boolean,default:!0},position:{default:"bottom-start"},align:{default:"start"},offset:{default:()=>({x:0,y:4})},width:{default:"auto"},maxHeight:{default:"400px"},closeOnClick:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},teleport:{type:Boolean,default:!0},zIndex:{default:50}},emits:["open","close","select"],setup(o,{emit:p}){const t=o,i=p,n=e.ref(!1),r=e.ref(null),s=e.ref(null),c=e.ref({}),a=e.computed(()=>["inline-flex items-center justify-center px-4 py-2 text-sm font-medium","bg-white border border-secondary-300 rounded-md","hover:bg-secondary-50 focus:outline-none focus:ring-2 focus:ring-primary-500","disabled:opacity-50 disabled:cursor-not-allowed","transition-colors"].join(" ")),f=e.computed(()=>[...["fixed bg-white rounded-lg shadow-lg border border-secondary-200","flex flex-col","focus:outline-none"],`z-${t.zIndex}`].join(" ")),g=e.computed(()=>"px-4 py-3 border-b border-secondary-200 bg-secondary-50"),w=e.computed(()=>"px-4 py-3 border-t border-secondary-200 bg-secondary-50"),E=e.computed(()=>"py-1 overflow-y-auto flex-1 min-h-0"),b=e.computed(()=>"my-1 border-t border-secondary-200"),V=e.computed(()=>"px-4 py-2 text-xs font-semibold text-secondary-500 uppercase tracking-wider"),$=l=>{const h=["w-full flex items-center gap-3 px-4 py-2 text-sm text-left","transition-colors focus:outline-none","disabled:opacity-50 disabled:cursor-not-allowed"],d=l.variant||"default",z={default:"text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50",danger:"text-danger-600 hover:bg-danger-50 focus:bg-danger-50",success:"text-success-600 hover:bg-success-50 focus:bg-success-50",warning:"text-warning-600 hover:bg-warning-50 focus:bg-warning-50"};return[...h,z[d]].join(" ")},N=()=>{t.disabled||(n.value?m():k())},k=()=>{n.value=!0,i("open"),e.nextTick(()=>{y(),document.addEventListener("click",C),document.addEventListener("keydown",T)})},m=()=>{n.value=!1,i("close"),document.removeEventListener("click",C),document.removeEventListener("keydown",T)},v=l=>{l.disabled||(l.action&&l.action(),i("select",l),t.closeOnClick&&!l.children&&m())},C=l=>{const h=l.target;r.value&&!r.value.contains(h)&&s.value&&!s.value.contains(h)&&m()},T=l=>{l.key==="Escape"&&m()},u=l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),N())},y=()=>{if(!r.value||!s.value)return;const l=r.value.getBoundingClientRect(),h=s.value.getBoundingClientRect(),d=window.innerWidth,z=window.innerHeight;let x=0,B=0;switch(t.position){case"bottom-start":x=l.bottom+t.offset.y,B=l.left+t.offset.x;break;case"bottom-end":x=l.bottom+t.offset.y,B=l.right-h.width+t.offset.x;break;case"top-start":x=l.top-h.height-t.offset.y,B=l.left+t.offset.x;break;case"top-end":x=l.top-h.height-t.offset.y,B=l.right-h.width+t.offset.x;break;case"right-start":x=l.top+t.offset.y,B=l.right+t.offset.x;break;case"right-end":x=l.bottom-h.height+t.offset.y,B=l.right+t.offset.x;break;case"left-start":x=l.top+t.offset.y,B=l.left-h.width-t.offset.x;break;case"left-end":x=l.bottom-h.height+t.offset.y,B=l.left-h.width-t.offset.x;break}B+h.width>d&&(B=d-h.width-8),B<8&&(B=8),x+h.height>z&&(x=z-h.height-8),x<8&&(x=8),c.value={top:`${x}px`,left:`${B}px`,width:t.width==="auto"?`${Math.max(l.width,240)}px`:t.width,maxHeight:t.maxHeight,minWidth:"240px"}};return e.onMounted(()=>{window.addEventListener("scroll",y,!0),window.addEventListener("resize",y)}),e.onUnmounted(()=>{window.removeEventListener("scroll",y,!0),window.removeEventListener("resize",y),document.removeEventListener("click",C),document.removeEventListener("keydown",T)}),e.watch(()=>t.items,()=>{n.value&&e.nextTick(y)},{deep:!0}),(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper",{"w-full":o.fullWidth}])},[e.createElementVNode("div",{ref_key:"triggerRef",ref:r},[e.renderSlot(l.$slots,"trigger",{isOpen:n.value,toggle:N},()=>[e.createElementVNode("button",{type:"button",class:e.normalizeClass(a.value),disabled:o.disabled,onClick:N,onKeydown:u,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"},[...h[1]||(h[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,ke)],!0)],512),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[n.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"menuRef",ref:s,class:e.normalizeClass(f.value),style:e.normalizeStyle(c.value),onClick:h[0]||(h[0]=e.withModifiers(()=>{},["stop"]))},[l.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(g.value)},[e.renderSlot(l.$slots,"header",{close:m},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(E.value)},[e.renderSlot(l.$slots,"default",{close:m,isOpen:n.value},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.items,(d,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d.id||z},[d.type==="divider"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(b.value)},null,2)):d.type==="header"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(V.value)},e.toDisplayString(d.label),3)):(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass($(d)),disabled:d.disabled,onClick:x=>v(d)},[d.icon||l.$slots[`icon-${d.id}`]?(e.openBlock(),e.createElementBlock("span",ve,[e.renderSlot(l.$slots,`icon-${d.id}`,{item:d},()=>[typeof d.icon!="string"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon),{key:0,class:"w-5 h-5"})):(e.openBlock(),e.createElementBlock("span",{key:1,innerHTML:d.icon,class:"w-5 h-5 inline-block"},null,8,xe))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Be,[e.renderSlot(l.$slots,`item-${d.id}`,{item:d,close:m},()=>[e.createElementVNode("div",we,[e.createElementVNode("span",{class:"truncate w-full",title:d.label},e.toDisplayString(d.label),9,Ce),d.description?(e.openBlock(),e.createElementBlock("span",{key:0,class:"text-xs text-secondary-500 truncate w-full",title:d.description},e.toDisplayString(d.description),9,Ee)):e.createCommentVNode("",!0)])],!0)]),d.suffix||d.shortcut||l.$slots[`suffix-${d.id}`]?(e.openBlock(),e.createElementBlock("span",Ve,[e.renderSlot(l.$slots,`suffix-${d.id}`,{item:d},()=>[d.shortcut?(e.openBlock(),e.createElementBlock("span",$e,e.toDisplayString(d.shortcut),1)):d.suffix?(e.openBlock(),e.createElementBlock("span",Ne,e.toDisplayString(d.suffix),1)):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),d.children&&d.children.length>0?(e.openBlock(),e.createElementBlock("svg",Se,[...h[2]||(h[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,be))],64))),128))],!0)],2),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(w.value)},[e.renderSlot(l.$slots,"footer",{close:m},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:m})):e.createCommentVNode("",!0)]))],2))}}),Te=S(ze,[["__scopeId","data-v-e155a86b"]]),_e=["for"],De={key:0,class:"text-danger-600"},Me={class:"relative"},Le=["id","disabled","aria-expanded"],je={class:"flex-1 text-left truncate"},Oe={key:0,class:"p-2 border-b border-secondary-200"},Ie=["placeholder"],Fe={class:"max-h-64 overflow-y-auto"},He={key:0,class:"px-4 py-3 text-sm text-secondary-500 text-center"},Pe=["onClick"],Ae={class:"flex items-center justify-between w-full"},We={class:"truncate"},Ke={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"},qe=["onClick"],Ue=["innerHTML"],Ge={key:1,class:"mt-1 text-sm text-danger-600"},Qe={key:2,class:"mt-1 text-sm text-secondary-600"},Je=e.defineComponent({__name:"Select",props:{modelValue:{default:null},options:{default:()=>[]},actionItems:{default:()=>[]},label:{default:""},placeholder:{default:"Seleccionar..."},size:{default:"md"},variant:{default:"default"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Buscar..."},emptyText:{default:"No hay opciones disponibles"},error:{default:""},helperText:{default:""},fullWidth:{type:Boolean,default:!1},menuPosition:{default:"bottom"}},emits:["update:modelValue","change","action"],setup(o,{emit:p}){const t=o,i=p,n=e.ref(!1),r=e.ref(""),s=e.ref(null),c=e.computed(()=>`select-${Math.random().toString(36).substr(2,9)}`),a=e.computed(()=>t.options.find(u=>u.value===t.modelValue)||null),f=e.computed(()=>{if(!t.searchable||!r.value)return t.options;const u=r.value.toLowerCase();return t.options.filter(y=>y.label.toLowerCase().includes(u))}),g=e.computed(()=>"block text-sm font-semibold text-secondary-700 mb-1"),w=e.computed(()=>{const u="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",y={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"},h=t.error?"border-danger-600 focus:ring-danger-500":"";return[u,y[t.size],l[t.variant],h].join(" ")}),E=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`),b=u=>{const y="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=$(u)?"bg-primary-50":"";return[y,l].join(" ")},V=u=>{const y="w-full px-4 py-2 text-left text-sm font-semibold transition-colors focus:outline-none flex items-center gap-3";return u.variant==="danger"?`${y} text-danger-600 hover:bg-danger-50 focus:bg-danger-50`:`${y} text-secondary-700 hover:bg-secondary-50 focus:bg-secondary-50`},$=u=>u.value===t.modelValue,N=()=>{t.disabled||(n.value=!n.value,n.value&&t.searchable&&e.nextTick(()=>{var u;(u=s.value)==null||u.focus()}))},k=()=>{n.value=!1,r.value=""},m=u=>{u.disabled||(i("update:modelValue",u.value),i("change",u),k())},v=u=>{u.action&&u.action(),i("action",u),k()},C=u=>{const y=u.relatedTarget;y&&y.closest(".select-wrapper")||setTimeout(()=>{k()},200)},T=u=>{u.key==="Escape"?k():(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),N())};return e.watch(n,u=>{u&&(r.value="")}),(u,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["select-wrapper",{"w-full":o.fullWidth}])},[o.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:c.value,class:e.normalizeClass(g.value)},[e.createTextVNode(e.toDisplayString(o.label)+" ",1),o.required?(e.openBlock(),e.createElementBlock("span",De,"*")):e.createCommentVNode("",!0)],10,_e)):e.createCommentVNode("",!0),e.createElementVNode("div",Me,[e.createElementVNode("button",{id:c.value,type:"button",class:e.normalizeClass(w.value),disabled:o.disabled,"aria-expanded":n.value,"aria-haspopup":!0,onClick:N,onBlur:C,onKeydown:T},[e.createElementVNode("span",je,e.toDisplayString(a.value?a.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"},[...y[3]||(y[3]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"},null,-1)])],2))],42,Le),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(E.value),onClick:y[2]||(y[2]=e.withModifiers(()=>{},["stop"]))},[o.searchable?(e.openBlock(),e.createElementBlock("div",Oe,[e.withDirectives(e.createElementVNode("input",{ref_key:"searchInput",ref:s,"onUpdate:modelValue":y[0]||(y[0]=l=>r.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:y[1]||(y[1]=e.withModifiers(()=>{},["stop"]))},null,40,Ie),[[e.vModelText,r.value]])])):e.createCommentVNode("",!0),e.createElementVNode("div",Fe,[f.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(f.value,l=>(e.openBlock(),e.createElementBlock("button",{key:l.value,type:"button",class:e.normalizeClass(b(l)),onClick:h=>m(l)},[e.createElementVNode("div",Ae,[e.createElementVNode("span",We,e.toDisplayString(l.label),1),$(l)?(e.openBlock(),e.createElementBlock("svg",Ke,[...y[4]||(y[4]=[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},null,-1)])])):e.createCommentVNode("",!0)])],10,Pe))),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(V(l)),onClick:h=>v(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,Ue)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.label),1)],10,qe))),128))],64))])],2)):e.createCommentVNode("",!0)]),o.error?(e.openBlock(),e.createElementBlock("p",Ge,e.toDisplayString(o.error),1)):o.helperText?(e.openBlock(),e.createElementBlock("p",Qe,e.toDisplayString(o.helperText),1)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",{key:3,onClick:k,class:"fixed inset-0 z-40"})):e.createCommentVNode("",!0)],2))}}),Xe=S(Je,[["__scopeId","data-v-f016a03c"]]),Ye=e.defineComponent({__name:"Sidebar",props:{modelValue:{type:Boolean,default:!1},position:{default:"left"},width:{default:"16rem"},overlay:{type:Boolean,default:!0},overlayTop:{default:"0"},closable:{type:Boolean,default:!0},persistent:{type:Boolean,default:!1},backgroundColor:{default:"white"},shadow:{type:Boolean,default:!0},padding:{default:"md"}},emits:["update:modelValue","close","open"],setup(o,{emit:p}){const t=o,i=p,n=e.computed({get:()=>t.modelValue,set:b=>i("update:modelValue",b)}),r=()=>{t.persistent||(n.value=!1,i("close"))},s=e.computed(()=>t.position==="left"?"slide-right":"slide-left"),c=e.computed(()=>{const b="fixed top-0 h-full z-50 flex flex-col",V=t.position==="left"?"left-0":"right-0",$=t.shadow?t.position==="left"?"shadow-[2px_0_8px_rgba(0,0,0,0.1)]":"shadow-[-2px_0_8px_rgba(0,0,0,0.1)]":"";return[b,V,$].filter(Boolean).join(" ")}),a=e.computed(()=>({width:t.width,backgroundColor:t.backgroundColor,top:t.overlayTop,height:t.overlayTop!=="0"?`calc(100vh - ${t.overlayTop})`:"100vh"})),f={none:"",sm:"p-2",md:"p-4",lg:"p-6"},g=e.computed(()=>`flex items-center justify-between border-b border-gray-200 ${f[t.padding]}`),w=e.computed(()=>`flex-1 overflow-y-auto ${f[t.padding]}`),E=e.computed(()=>`border-t border-gray-200 ${f[t.padding]}`);return(b,V)=>(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: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:s.value},{default:e.withCtx(()=>[n.value?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(c.value),style:e.normalizeStyle(a.value)},[b.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(g.value)},[e.renderSlot(b.$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ú"},[...V[0]||(V[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(w.value)},[e.renderSlot(b.$slots,"default",{},void 0,!0)],2),b.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(E.value)},[e.renderSlot(b.$slots,"footer",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),Ze=S(Ye,[["__scopeId","data-v-fffb0e44"]]),et={class:"w-full overflow-x-auto"},tt={class:"w-full border-collapse"},ot={class:"w-full"},lt={class:"bg-white border-b border-gray-100 w-full"},nt=["onClick"],st={class:"flex items-center gap-2"},at={key:0,class:"text-xs text-gray-400"},rt={key:0},it={key:1},ct={class:"w-full"},dt={key:0,class:"flex items-center justify-center py-12 text-gray-400"},ut={key:1,class:"w-full px-6 py-4 bg-white"},mt=e.defineComponent({__name:"Table",props:{columns:{},data:{}},setup(o){const p=o,t=e.ref(null),i=e.ref("asc"),n=s=>{t.value===s?i.value=i.value==="asc"?"desc":"asc":(t.value=s,i.value="asc")},r=e.computed(()=>{if(!t.value)return p.data;const s=[...p.data];return s.sort((c,a)=>{const f=c[t.value],g=a[t.value];return typeof f=="string"&&typeof g=="string"?i.value==="asc"?f.localeCompare(g):g.localeCompare(f):typeof f=="number"&&typeof g=="number"?i.value==="asc"?f-g:g-f:0}),s});return(s,c)=>(e.openBlock(),e.createElementBlock("div",et,[e.createElementVNode("table",tt,[e.createElementVNode("thead",ot,[e.createElementVNode("tr",lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,a=>(e.openBlock(),e.createElementBlock("th",{key:a.key,style:e.normalizeStyle(a.width?{width:a.width}:{}),class:e.normalizeClass(["px-8 py-4 text-left text-base font-semibold text-gray-900 border-0",a.sortable?"cursor-pointer hover:text-primary-700 select-none transition-colors":""]),onClick:f=>a.sortable&&n(a.key)},[e.createElementVNode("div",st,[e.createElementVNode("span",null,e.toDisplayString(a.label),1),a.sortable?(e.openBlock(),e.createElementBlock("span",at,[t.value!==a.key?(e.openBlock(),e.createElementBlock("span",rt,"⇅")):(e.openBlock(),e.createElementBlock("span",it,e.toDisplayString(i.value==="asc"?"↑":"↓"),1))])):e.createCommentVNode("",!0)])],14,nt))),128))])]),e.createElementVNode("tbody",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(a,f)=>(e.openBlock(),e.createElementBlock("tr",{key:f,class:"w-full hover:bg-gray-50 transition-colors"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,g=>(e.openBlock(),e.createElementBlock("td",{key:`${f}-${g.key}`,class:"px-8 py-4 text-base text-gray-700 border-0"},[e.renderSlot(s.$slots,`cell-${g.key}`,{value:a[g.key],row:a},()=>[e.createTextVNode(e.toDisplayString(a[g.key]),1)],!0)]))),128))]))),128))])]),r.value.length===0?(e.openBlock(),e.createElementBlock("div",dt,[e.renderSlot(s.$slots,"empty",{},()=>[c[0]||(c[0]=e.createTextVNode("No hay datos disponibles",-1))],!0)])):e.createCommentVNode("",!0),s.$slots.footer?(e.openBlock(),e.createElementBlock("div",ut,[e.renderSlot(s.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)]))}}),pt=S(mt,[["__scopeId","data-v-6b3ff0a8"]]),ft={class:"w-full"},gt={class:"flex border-b border-gray-100",role:"tablist"},yt=["aria-selected","onClick"],ht={role:"tabpanel"},kt="relative px-6 py-3 text-base font-semibold tracking-wide transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",bt="text-primary-700 border-b-4 border-primary-700",vt="text-gray-600 border-b-4 border-transparent hover:text-gray-800",xt=e.defineComponent({__name:"Tabs",props:{modelValue:{},tabs:{}},emits:["update:modelValue"],setup(o,{emit:p}){const t=o,i=p,n=a=>t.modelValue===a,r=a=>{n(a)||i("update:modelValue",a)},s=e.computed(()=>t.modelValue),c=e.computed(()=>t.tabs.find(a=>a.value===s.value));return(a,f)=>(e.openBlock(),e.createElementBlock("div",ft,[e.createElementVNode("div",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.tabs,g=>(e.openBlock(),e.createElementBlock("button",{key:g.value,type:"button",class:e.normalizeClass([kt,n(g.value)?bt:vt]),"aria-selected":n(g.value),role:"tab",onClick:w=>r(g.value)},e.toDisplayString(g.label),11,yt))),128))]),e.createElementVNode("div",ht,[e.renderSlot(a.$slots,s.value,{active:s.value,tab:c.value})])]))}}),Bt="font-sans",wt=e.defineComponent({__name:"Text",props:{variant:{default:"body1"},as:{},color:{default:"default"},align:{default:"left"},uppercase:{type:Boolean,default:!1},truncate:{type:Boolean,default:!1},weight:{}},setup(o){const p={h1:"text-[40px] leading-[57px] tracking-[0px] font-extrabold",h2:"text-[40px] leading-[57px] tracking-[0px] font-bold",h3:"text-[28px] leading-[39px] tracking-[0px] font-extrabold",h4:"text-[21px] leading-[29px] tracking-[0px] font-extrabold",h5:"text-[16px] leading-[22px] tracking-[0px] font-extrabold",h6:"text-[13px] leading-[18px] tracking-[0px] font-extrabold",subtitle1:"text-[16px] leading-[24px] tracking-[0.15px] font-medium",subtitle2:"text-[14px] leading-[21px] tracking-[0.1px] font-medium",subtitle3:"text-[12px] leading-[18px] tracking-[0.1px] font-medium",subtitle4:"text-[10px] leading-[15px] tracking-[0.1px] font-medium",body1:"text-[16px] leading-[24px] tracking-[0.5px] font-light",body2:"text-[14px] leading-[21px] tracking-[0.25px] font-light",body3:"text-[12px] leading-[18px] tracking-[0.25px] font-light",body4:"text-[10px] leading-[15px] tracking-[0.25px] font-light",button1:"text-[14px] leading-[24px] tracking-[1.25px] font-bold",button2:"text-[14px] leading-[20px] tracking-[1.25px] font-bold",button3:"text-[12px] leading-[18px] tracking-[1.25px] font-bold",caption:"text-[12px] leading-[18px] tracking-[0.4px] font-normal",overline:"text-[10px] leading-[15px] tracking-[1.5px] font-medium"},t={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",body1:"p",body2:"p",body3:"p",body4:"p",button1:"span",button2:"span",button3:"span",caption:"span",overline:"span"},i={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"},r={light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold"},s=o,c=e.computed(()=>s.variant),a=e.computed(()=>s.color),f=e.computed(()=>s.align),g=e.computed(()=>s.as||t[c.value]||"span"),w=e.computed(()=>s.weight?r[s.weight]:"");return(E,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.value),{class:e.normalizeClass([Bt,p[c.value],n[a.value],i[f.value],w.value,{uppercase:o.uppercase||c.value==="overline",truncate:o.truncate}])},{default:e.withCtx(()=>[e.renderSlot(E.$slots,"default")]),_:3},8,["class"]))}});exports.AppBar=F;exports.Button=A;exports.Card=q;exports.Dialog=Y;exports.FileUpload=pe;exports.Loader=he;exports.Menu=Te;exports.Select=Xe;exports.Sidebar=Ze;exports.Table=pt;exports.Tabs=xt;exports.Text=wt;