@dronico/droni-kit 1.18.0 → 1.18.1
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/CHANGELOG.md +7 -0
- package/dist/droni-kit.cjs.js +1 -1
- package/dist/droni-kit.es.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.18.1](https://github.com/Droni-app/droni-kit/compare/v1.18.0...v1.18.1) (2026-05-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* type button on Tabs ([475072c](https://github.com/Droni-app/droni-kit/commit/475072c678011d9e48b0cfd4b0f73d7b7646fd9d))
|
|
7
|
+
|
|
1
8
|
# [1.18.0](https://github.com/Droni-app/droni-kit/compare/v1.17.0...v1.18.0) (2026-05-26)
|
|
2
9
|
|
|
3
10
|
|
package/dist/droni-kit.cjs.js
CHANGED
|
@@ -351,4 +351,4 @@
|
|
|
351
351
|
dk:text-amber-600
|
|
352
352
|
dk:hover:bg-amber-50
|
|
353
353
|
dk:dark:text-amber-100
|
|
354
|
-
dk:dark:hover:bg-amber-800`}},f=e.computed(()=>{var v;const a=(((v=x[r.variant])==null?void 0:v[r.color])||"")+" "+x[r.variant].base,l=c[r.size]||"",u=r.block?"dk:block":"dk:inline-block",b=s[r.rounded]||"";return[Ze,a,l,u,b].join(" ")});return(a,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.value),e.mergeProps(k.value,{class:f.value,title:r.title}),{default:e.withCtx(()=>[r.loading?(e.openBlock(),e.createElementBlock("span",Ye,"Cargando...")):e.renderSlot(a.$slots,"default",{key:0})]),_:3},16,["class","title"]))}}),et={key:0,class:"dk:relative dk:overflow-hidden dk:rounded-t-lg"},tt=["src","alt"],dt=e.defineComponent({__name:"DuiCard",props:{size:{default:"m"},image:{default:void 0},title:{default:void 0},subtitle:{default:void 0},to:{default:void 0},nuxt:{type:Boolean,default:!1}},setup(d){const r=d,t=()=>r.to?I(r.to,r.nuxt):"div",k=()=>r.to?I(r.to,r.nuxt):"h3",c=()=>{const n=t();return K(r.to,n)},s={s:{padding:"dk:p-3",spacing:"dk:space-y-2",titleSize:"dk:text-base",subtitleSize:"dk:text-sm",contentSize:"dk:text-sm"},m:{padding:"dk:p-4",spacing:"dk:space-y-3",titleSize:"dk:text-lg",subtitleSize:"dk:text-base",contentSize:"dk:text-base"},l:{padding:"dk:p-6",spacing:"dk:space-y-4",titleSize:"dk:text-xl",subtitleSize:"dk:text-lg",contentSize:"dk:text-lg"}},x=e.computed(()=>["dk:relative dk:bg-gradient-to-br dk:from-white/80 dk:via-white/70 dk:to-gray-50/80","dk:dark:from-gray-700/60 dk:dark:via-gray-800/60 dk:dark:to-gray-900/60","dk:backdrop-blur-md dk:backdrop-brightness-110","dk:rounded-xl dk:border dk:border-white/40 dk:dark:border-white/10","dk:shadow-xl dk:shadow-black/10 dk:dark:shadow-black/30","dk:transition-all dk:duration-300","dk:hover:shadow-2xl dk:hover:shadow-black/15 dk:dark:hover:shadow-black/40","dk:hover:border-white/50 dk:dark:hover:border-white/20","dk:hover:backdrop-brightness-125 dk:dark:hover:backdrop-brightness-110","dk:overflow-hidden","dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5","dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent","dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent"].join(" ")),f=e.computed(()=>["dk:w-full dk:h-48 dk:object-cover","dk:relative dk:z-10"].join(" ")),a=e.computed(()=>{const n=s[r.size];return[n.padding,n.spacing,"dk:relative dk:z-10"].join(" ")}),l=e.computed(()=>[s[r.size].spacing].join(" ")),u=e.computed(()=>{const o=[s[r.size].titleSize,"dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100","dk:line-clamp-2"];return r.to&&o.push("dk:no-underline dk:hover:underline dk:transition-colors","dk:hover:text-blue-600 dk:dark:hover:text-blue-400"),o.join(" ")}),b=e.computed(()=>{const n=["dk:block","dk:transition-transform dk:duration-300","dk:hover:scale-105","dk:relative dk:z-10"];return r.to&&n.push("dk:no-underline"),n.join(" ")}),v=e.computed(()=>[s[r.size].subtitleSize,"dk:text-gray-600 dk:dark:text-gray-400","dk:line-clamp-3"].join(" ")),B=e.computed(()=>[s[r.size].contentSize,"dk:text-gray-700 dk:dark:text-gray-300"].join(" ")),p=e.computed(()=>["dk:border-t dk:border-gray-300/40 dk:dark:border-white/10","dk:pt-3 dk:mt-3","dk:relative dk:z-10"].join(" "));return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(x.value)},[d.image?(e.openBlock(),e.createElementBlock("div",et,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t()),e.mergeProps(c(),{class:b.value}),{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.image,alt:d.title||"Card image",class:e.normalizeClass(f.value)},null,10,tt)]),_:1},16,["class"]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(a.value)},[d.title||d.subtitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.value)},[d.title?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k()),e.mergeProps({key:0},c(),{class:u.value}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.title),1)]),_:1},16,["class"])):e.createCommentVNode("",!0),d.subtitle?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(v.value)},e.toDisplayString(d.subtitle),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),n.$slots.default?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(B.value)},[e.renderSlot(n.$slots,"default")],2)):e.createCommentVNode("",!0),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(p.value)},[e.renderSlot(n.$slots,"footer")],2)):e.createCommentVNode("",!0)],2)],2))}}),rt=["aria-labelledby","aria-describedby"],ot=e.defineComponent({__name:"DuiModal",props:{modelValue:{type:Boolean,default:!1},title:{default:void 0},description:{default:void 0},size:{default:"md"},variant:{default:"solid"},color:{default:"neutral"},rounded:{default:"all"},showClose:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},persistent:{type:Boolean,default:!1},centered:{type:Boolean,default:!0},scrollable:{type:Boolean,default:!0},blurBackdrop:{type:Boolean,default:!0},zIndex:{default:50}},emits:["update:modelValue","open","close","backdrop","escape"],setup(d,{emit:r}){const t=d,k=r,c=Math.random().toString(36).slice(2,10),s=`dui-modal-title-${c}`,x=`dui-modal-description-${c}`,f={all:"dk:rounded-xl",top:"dk:rounded-t-xl",bottom:"dk:rounded-b-xl",left:"dk:rounded-l-xl",right:"dk:rounded-r-xl",none:"dk:rounded-none"},a={xs:"dk:w-full dk:max-w-xs",sm:"dk:w-full dk:max-w-md",md:"dk:w-full dk:max-w-xl",lg:"dk:w-full dk:max-w-3xl",xl:"dk:w-full dk:max-w-5xl",full:"dk:h-[calc(100vh-2rem)] dk:w-[calc(100vw-2rem)] dk:max-w-none"},l={solid:{base:"dk:border dk:shadow-xl",neutral:"dk:bg-white dk:text-zinc-900 dk:border-zinc-200 dk:dark:bg-zinc-900 dk:dark:text-zinc-100 dk:dark:border-zinc-700",primary:"dk:bg-slate-50 dk:text-slate-900 dk:border-slate-200 dk:dark:bg-slate-900 dk:dark:text-slate-100 dk:dark:border-slate-700",secondary:"dk:bg-pink-50 dk:text-pink-900 dk:border-pink-200 dk:dark:bg-pink-900 dk:dark:text-pink-100 dk:dark:border-pink-700",success:"dk:bg-emerald-50 dk:text-emerald-900 dk:border-emerald-200 dk:dark:bg-emerald-900 dk:dark:text-emerald-100 dk:dark:border-emerald-700",warning:"dk:bg-amber-50 dk:text-amber-900 dk:border-amber-200 dk:dark:bg-amber-900 dk:dark:text-amber-100 dk:dark:border-amber-700",danger:"dk:bg-rose-50 dk:text-rose-900 dk:border-rose-200 dk:dark:bg-rose-900 dk:dark:text-rose-100 dk:dark:border-rose-700"},outline:{base:"dk:border-2 dk:shadow-lg dk:bg-white/95 dk:dark:bg-zinc-900/95",neutral:"dk:text-zinc-900 dk:border-zinc-300 dk:dark:text-zinc-100 dk:dark:border-zinc-600",primary:"dk:text-slate-900 dk:border-slate-400 dk:dark:text-slate-100 dk:dark:border-slate-500",secondary:"dk:text-pink-900 dk:border-pink-400 dk:dark:text-pink-100 dk:dark:border-pink-500",success:"dk:text-emerald-900 dk:border-emerald-400 dk:dark:text-emerald-100 dk:dark:border-emerald-500",warning:"dk:text-amber-900 dk:border-amber-400 dk:dark:text-amber-100 dk:dark:border-amber-500",danger:"dk:text-rose-900 dk:border-rose-400 dk:dark:text-rose-100 dk:dark:border-rose-500"},ghost:{base:"dk:border dk:shadow-xl dk:backdrop-blur-md",neutral:"dk:bg-white/85 dk:text-zinc-900 dk:border-zinc-300/70 dk:dark:bg-zinc-900/75 dk:dark:text-zinc-100 dk:dark:border-zinc-600/60",primary:"dk:bg-slate-100/85 dk:text-slate-900 dk:border-slate-300/70 dk:dark:bg-slate-900/70 dk:dark:text-slate-100 dk:dark:border-slate-600/60",secondary:"dk:bg-pink-100/85 dk:text-pink-900 dk:border-pink-300/70 dk:dark:bg-pink-900/70 dk:dark:text-pink-100 dk:dark:border-pink-600/60",success:"dk:bg-emerald-100/85 dk:text-emerald-900 dk:border-emerald-300/70 dk:dark:bg-emerald-900/70 dk:dark:text-emerald-100 dk:dark:border-emerald-600/60",warning:"dk:bg-amber-100/85 dk:text-amber-900 dk:border-amber-300/70 dk:dark:bg-amber-900/70 dk:dark:text-amber-100 dk:dark:border-amber-600/60",danger:"dk:bg-rose-100/85 dk:text-rose-900 dk:border-rose-300/70 dk:dark:bg-rose-900/70 dk:dark:text-rose-100 dk:dark:border-rose-600/60"}},u=e.computed(()=>["dk:fixed dk:inset-0 dk:bg-black/55",t.blurBackdrop?"dk:backdrop-blur-[2px]":""].join(" ")),b=e.computed(()=>["dk:flex dk:min-h-full dk:w-full dk:p-4",t.centered?"dk:items-center":"dk:items-start dk:pt-8","dk:justify-center"].join(" ")),v=e.computed(()=>{const y=l[t.variant].base,C=l[t.variant][t.color],S=f[t.rounded],T=a[t.size];return["dk:relative dk:flex dk:flex-col dk:overflow-hidden",y,C,S,T].join(" ")}),B=e.computed(()=>["dk:flex dk:items-start dk:justify-between dk:gap-3 dk:px-5 dk:pt-5 dk:pb-3","dk:border-b dk:border-current/10"].join(" ")),p=e.computed(()=>["dk:px-5 dk:py-4",t.scrollable?"dk:max-h-[65vh] dk:overflow-y-auto":""].join(" ")),n=e.computed(()=>["dk:px-5 dk:py-4 dk:border-t dk:border-current/10","dk:flex dk:items-center dk:justify-end dk:gap-2"].join(" "));function o(){if(typeof document>"u")return;const y=document.body,S=Number(y.dataset.duiModalCount||"0")+1;y.dataset.duiModalCount=String(S),S===1&&(y.style.overflow="hidden")}function i(){if(typeof document>"u")return;const y=document.body,C=Number(y.dataset.duiModalCount||"0"),S=Math.max(0,C-1);y.dataset.duiModalCount=String(S),S===0&&(y.style.overflow="")}function h(y){k("update:modelValue",!1),k("close",y)}function m(){k("backdrop"),!(t.persistent||!t.closeOnBackdrop)&&h("backdrop")}function g(y){y.key!=="Escape"||!t.modelValue||(k("escape"),!(t.persistent||!t.closeOnEsc)&&h("escape"))}return e.watch(()=>t.modelValue,(y,C)=>{y&&!C&&(o(),k("open")),!y&&C&&i()}),e.onMounted(()=>{t.modelValue&&o(),typeof window<"u"&&window.addEventListener("keydown",g)}),e.onBeforeUnmount(()=>{t.modelValue&&i(),typeof window<"u"&&window.removeEventListener("keydown",g)}),(y,C)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{"enter-active-class":"dk:transition-opacity dk:duration-200","leave-active-class":"dk:transition-opacity dk:duration-200","enter-from-class":"dk:opacity-0","leave-to-class":"dk:opacity-0"},{default:e.withCtx(()=>[t.modelValue?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({zIndex:String(t.zIndex)}),class:e.normalizeClass(u.value),onClick:m},[e.createElementVNode("div",{class:e.normalizeClass(b.value)},[e.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-labelledby":t.title?s:void 0,"aria-describedby":t.description?x:void 0,class:e.normalizeClass(v.value),onClick:C[1]||(C[1]=e.withModifiers(()=>{},["stop"]))},[y.$slots.header||t.title||t.description||t.showClose?(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass(B.value)},[e.createElementVNode("div",null,[e.renderSlot(y.$slots,"header",{},()=>[t.title?(e.openBlock(),e.createElementBlock("h2",{key:0,id:s,class:"dk:text-lg dk:font-semibold"},e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("p",{key:1,id:x,class:"dk:mt-1 dk:text-sm dk:opacity-80"},e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"dk:inline-flex dk:h-8 dk:w-8 dk:items-center dk:justify-center dk:rounded dk:text-current dk:opacity-70 dk:transition-opacity dk:hover:opacity-100 dk:focus-visible:opacity-100 dk:outline-none dk:ring-2 dk:ring-current/30","aria-label":"Cerrar modal",onClick:C[0]||(C[0]=S=>h("button"))},[...C[2]||(C[2]=[e.createElementVNode("span",{"aria-hidden":"true"},"×",-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("section",{class:e.normalizeClass(p.value)},[e.renderSlot(y.$slots,"default")],2),y.$slots.footer?(e.openBlock(),e.createElementBlock("footer",{key:1,class:e.normalizeClass(n.value)},[e.renderSlot(y.$slots,"footer")],2)):e.createCommentVNode("",!0)],10,rt)],2)],6)):e.createCommentVNode("",!0)]),_:3})]))}}),at=["aria-describedby"],nt={class:"dk:inline-flex dk:items-center"},kt=e.defineComponent({__name:"DuiTooltip",props:{modelValue:{type:Boolean,default:void 0},text:{default:""},fallbackTriggerText:{default:"Tooltip"},trigger:{default:"hover"},placement:{default:"top"},variant:{default:"solid"},color:{default:"neutral"},size:{default:"md"},rounded:{default:"all"},disabled:{type:Boolean,default:!1},interactive:{type:Boolean,default:!0},arrow:{type:Boolean,default:!0},showDelay:{default:120},hideDelay:{default:90},offset:{default:10},zIndex:{default:60},flip:{type:Boolean,default:!0},viewportPadding:{default:8},maxWidth:{default:"md"},teleportTo:{default:"body"}},emits:["update:modelValue","open","close"],setup(d,{emit:r}){const t=d,k=r,c=e.ref(null),s=e.ref(null),x=e.ref(!1),f=e.computed(()=>t.modelValue!==void 0),a=e.computed(()=>f.value?!!t.modelValue:x.value),l=e.ref(t.placement),u=e.ref({top:0,left:0}),b=e.ref(!1);let v=null,B=null;const p=`dui-tooltip-${Math.random().toString(36).slice(2,10)}`,n={all:"dk:rounded-md",top:"dk:rounded-t-md",bottom:"dk:rounded-b-md",left:"dk:rounded-l-md",right:"dk:rounded-r-md",none:"dk:rounded-none"},o={sm:"dk:px-2 dk:py-1 dk:text-xs",md:"dk:px-2.5 dk:py-1.5 dk:text-sm",lg:"dk:px-3 dk:py-2 dk:text-base"},i={xs:"dk:max-w-40",sm:"dk:max-w-56",md:"dk:max-w-72",lg:"dk:max-w-96",full:"dk:max-w-[min(92vw,42rem)]"};function h(w){return typeof w=="string"&&w in i}const m={solid:{base:"dk:border dk:shadow-lg",neutral:"dk:bg-zinc-900 dk:text-zinc-100 dk:border-zinc-700 dk:dark:bg-zinc-200 dk:dark:text-zinc-900 dk:dark:border-zinc-300",primary:"dk:bg-slate-900 dk:text-slate-100 dk:border-slate-700 dk:dark:bg-slate-200 dk:dark:text-slate-900 dk:dark:border-slate-300",secondary:"dk:bg-pink-900 dk:text-pink-100 dk:border-pink-700 dk:dark:bg-pink-200 dk:dark:text-pink-900 dk:dark:border-pink-300",success:"dk:bg-emerald-900 dk:text-emerald-100 dk:border-emerald-700 dk:dark:bg-emerald-200 dk:dark:text-emerald-900 dk:dark:border-emerald-300",warning:"dk:bg-amber-900 dk:text-amber-100 dk:border-amber-700 dk:dark:bg-amber-200 dk:dark:text-amber-900 dk:dark:border-amber-300",danger:"dk:bg-rose-900 dk:text-rose-100 dk:border-rose-700 dk:dark:bg-rose-200 dk:dark:text-rose-900 dk:dark:border-rose-300"},outline:{base:"dk:border dk:shadow-md dk:bg-white/95 dk:dark:bg-zinc-900/95",neutral:"dk:text-zinc-900 dk:border-zinc-300 dk:dark:text-zinc-100 dk:dark:border-zinc-600",primary:"dk:text-slate-900 dk:border-slate-400 dk:dark:text-slate-100 dk:dark:border-slate-500",secondary:"dk:text-pink-900 dk:border-pink-400 dk:dark:text-pink-100 dk:dark:border-pink-500",success:"dk:text-emerald-900 dk:border-emerald-400 dk:dark:text-emerald-100 dk:dark:border-emerald-500",warning:"dk:text-amber-900 dk:border-amber-400 dk:dark:text-amber-100 dk:dark:border-amber-500",danger:"dk:text-rose-900 dk:border-rose-400 dk:dark:text-rose-100 dk:dark:border-rose-500"}},g=e.computed(()=>{const w=n[t.rounded],z=o[t.size],V=m[t.variant].base,$=m[t.variant][t.color],E=h(t.maxWidth)?i[t.maxWidth]:"";return["dk:fixed dk:pointer-events-auto dk:leading-tight dk:select-text dk:cursor-default","dk:break-words dk:whitespace-normal",w,z,V,$,E].join(" ")}),y=e.computed(()=>{const w={top:`${u.value.top}px`,left:`${u.value.left}px`,zIndex:String(t.zIndex)};return typeof t.maxWidth=="number"?w.maxWidth=`${t.maxWidth}px`:typeof t.maxWidth=="string"&&!h(t.maxWidth)&&(w.maxWidth=t.maxWidth),w}),C=e.computed(()=>{const w=m[t.variant][t.color],z=l.value,V={top:"dk:-bottom-1.5 dk:left-1/2 dk:-translate-x-1/2 dk:rotate-45","top-start":"dk:-bottom-1.5 dk:left-3 dk:rotate-45","top-end":"dk:-bottom-1.5 dk:right-3 dk:rotate-45",bottom:"dk:-top-1.5 dk:left-1/2 dk:-translate-x-1/2 dk:rotate-45","bottom-start":"dk:-top-1.5 dk:left-3 dk:rotate-45","bottom-end":"dk:-top-1.5 dk:right-3 dk:rotate-45",left:"dk:-right-1.5 dk:top-1/2 dk:-translate-y-1/2 dk:rotate-45","left-start":"dk:-right-1.5 dk:top-3 dk:rotate-45","left-end":"dk:-right-1.5 dk:bottom-3 dk:rotate-45",right:"dk:-left-1.5 dk:top-1/2 dk:-translate-y-1/2 dk:rotate-45","right-start":"dk:-left-1.5 dk:top-3 dk:rotate-45","right-end":"dk:-left-1.5 dk:bottom-3 dk:rotate-45"};return["dk:absolute dk:block dk:h-3 dk:w-3",w,V[z]||V.top].join(" ")});function S(){v&&(clearTimeout(v),v=null),B&&(clearTimeout(B),B=null)}function T(w,z){t.disabled||(f.value?k("update:modelValue",w):x.value=w,w?(k("open",z),e.nextTick(()=>{M()})):k("close",z))}function P(w){S(),v=setTimeout(()=>{T(!0,w)},Math.max(0,t.showDelay))}function L(w){S(),B=setTimeout(()=>{w==="hover"&&t.interactive&&b.value||T(!1,w)},Math.max(0,t.hideDelay))}function q(w){return{top:"bottom","top-start":"bottom-start","top-end":"bottom-end",bottom:"top","bottom-start":"top-start","bottom-end":"top-end",left:"right","left-start":"right-start","left-end":"right-end",right:"left","right-start":"left-start","right-end":"left-end"}[w]}function _(w,z,V){const[$,E]=w.split("-"),j=t.offset;let N=0,D=0;$==="top"&&(N=z.top-V.height-j,E==="start"?D=z.left:E==="end"?D=z.right-V.width:D=z.left+z.width/2-V.width/2),$==="bottom"&&(N=z.bottom+j,E==="start"?D=z.left:E==="end"?D=z.right-V.width:D=z.left+z.width/2-V.width/2),$==="left"&&(D=z.left-V.width-j,E==="start"?N=z.top:E==="end"?N=z.bottom-V.height:N=z.top+z.height/2-V.height/2),$==="right"&&(D=z.right+j,E==="start"?N=z.top:E==="end"?N=z.bottom-V.height:N=z.top+z.height/2-V.height/2);const O=t.viewportPadding,de=window.innerWidth,re=window.innerHeight;return N=Math.min(Math.max(O,N),re-V.height-O),D=Math.min(Math.max(O,D),de-V.width-O),{top:N,left:D}}function G(w,z,V){if(!t.flip)return!1;const[$]=w.split("-"),E=t.offset,j=t.viewportPadding;return $==="top"?z.top-V.height-E<j:$==="bottom"?z.bottom+V.height+E>window.innerHeight-j:$==="left"?z.left-V.width-E<j:z.right+V.width+E>window.innerWidth-j}function M(){if(!c.value||!s.value)return;const w=c.value.getBoundingClientRect(),z=s.value.getBoundingClientRect();let V=t.placement;G(V,w,z)&&(V=q(V)),l.value=V,u.value=_(V,w,z)}function J(){t.trigger==="hover"&&P("hover")}function X(w){var z;if(t.trigger==="hover"){if(t.interactive){const V=w.relatedTarget;if(V&&((z=s.value)!=null&&z.contains(V)))return}L("hover")}}function Y(){t.trigger!=="focus"&&t.trigger!=="hover"||P("focus")}function Z(){t.trigger!=="focus"&&t.trigger!=="hover"||L("focus")}function R(w){t.trigger==="click"&&(w.stopPropagation(),a.value?L("click"):P("click"))}function ee(){t.interactive&&(b.value=!0,S())}function te(w){var V;if(!t.interactive)return;const z=w.relatedTarget;z&&((V=c.value)!=null&&V.contains(z))||(b.value=!1,L("hover"))}function H(w){var V,$;if(t.trigger!=="click"||!a.value)return;const z=w.target;(V=c.value)!=null&&V.contains(z)||($=s.value)!=null&&$.contains(z)||L("outside")}return e.watch(()=>t.modelValue,w=>{f.value&&w&&e.nextTick(M)}),e.watch(()=>t.placement,()=>{a.value&&e.nextTick(M)}),e.watch(a,w=>{w&&e.nextTick(M)}),e.onMounted(()=>{typeof window>"u"||(window.addEventListener("resize",M),window.addEventListener("scroll",M,!0),window.addEventListener("click",H))}),e.onBeforeUnmount(()=>{S(),!(typeof window>"u")&&(window.removeEventListener("resize",M),window.removeEventListener("scroll",M,!0),window.removeEventListener("click",H))}),(w,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("span",{ref_key:"triggerRef",ref:c,class:"dk:relative dk:inline-flex dk:max-w-full","aria-describedby":a.value?p:void 0,onMouseenter:J,onMouseleave:X,onFocusin:Y,onFocusout:Z,onClick:R},[e.renderSlot(w.$slots,"trigger",{},()=>[e.renderSlot(w.$slots,"default",{},()=>[e.createElementVNode("span",nt,e.toDisplayString(t.fallbackTriggerText),1)])])],40,at),(e.openBlock(),e.createBlock(e.Teleport,{to:t.teleportTo},[e.createVNode(e.Transition,{"enter-active-class":"dk:transition-opacity dk:duration-150","leave-active-class":"dk:transition-opacity dk:duration-100","enter-from-class":"dk:opacity-0","leave-to-class":"dk:opacity-0"},{default:e.withCtx(()=>[a.value&&!t.disabled?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:s,id:p,role:"tooltip",class:e.normalizeClass(g.value),style:e.normalizeStyle(y.value),onMouseenter:ee,onMouseleave:te},[e.renderSlot(w.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),t.arrow?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-hidden":"true",class:e.normalizeClass(C.value)},null,2)):e.createCommentVNode("",!0)],38)):e.createCommentVNode("",!0)]),_:3})],8,["to"]))],64))}}),lt=["open"],st=["onClick"],it={class:"dui-acc-title"},ct={class:"dui-acc-panel"},ut=e.defineComponent({__name:"DuiAccordion",props:{items:{},modelValue:{default:void 0},multiple:{type:Boolean,default:!1},variant:{default:"bordered"},color:{default:"neutral"},size:{default:"md"},flush:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,c=e.ref([]);function s(){return t.modelValue===void 0?c.value:Array.isArray(t.modelValue)?t.modelValue:t.modelValue?[t.modelValue]:[]}function x(h){return s().includes(h)}function f(h,m){if(m)return;const g=s();let y;t.multiple?y=g.includes(h)?g.filter(C=>C!==h):[...g,h]:y=g.includes(h)?[]:[h],c.value=y,k("update:modelValue",t.multiple?y:y[0]??""),k("change",h)}const a={sm:{summary:"dk:px-3 dk:py-2.5 dk:text-sm dk:gap-2",content:"dk:px-3 dk:pt-0 dk:pb-3 dk:text-sm",icon:"dk:text-base",chevron:"dk:w-3.5 dk:h-3.5"},md:{summary:"dk:px-4 dk:py-3.5 dk:text-sm dk:gap-2.5",content:"dk:px-4 dk:pt-0 dk:pb-4 dk:text-sm",icon:"dk:text-lg",chevron:"dk:w-4 dk:h-4"},lg:{summary:"dk:px-5 dk:py-4 dk:text-base dk:gap-3",content:"dk:px-5 dk:pt-0 dk:pb-5 dk:text-base",icon:"dk:text-xl",chevron:"dk:w-5 dk:h-5"}},l={neutral:"dk:bg-zinc-50 dk:dark:bg-zinc-800/60",primary:"dk:bg-slate-50 dk:dark:bg-slate-800/60",secondary:"dk:bg-pink-50 dk:dark:bg-pink-900/30",success:"dk:bg-emerald-50 dk:dark:bg-emerald-900/30",warning:"dk:bg-amber-50 dk:dark:bg-amber-900/30",danger:"dk:bg-rose-50 dk:dark:bg-rose-900/30"},u={neutral:"dk:text-zinc-900 dk:dark:text-zinc-50",primary:"dk:text-slate-800 dk:dark:text-slate-100",secondary:"dk:text-pink-800 dk:dark:text-pink-100",success:"dk:text-emerald-800 dk:dark:text-emerald-100",warning:"dk:text-amber-800 dk:dark:text-amber-100",danger:"dk:text-rose-800 dk:dark:text-rose-100"},b={neutral:"dk:text-zinc-500 dk:dark:text-zinc-400",primary:"dk:text-slate-500 dk:dark:text-slate-400",secondary:"dk:text-pink-500 dk:dark:text-pink-400",success:"dk:text-emerald-500 dk:dark:text-emerald-400",warning:"dk:text-amber-500 dk:dark:text-amber-400",danger:"dk:text-rose-500 dk:dark:text-rose-400"},v=e.computed(()=>t.variant==="separated"?"dk:flex dk:flex-col dk:gap-2":t.variant==="ghost"?"dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700/60":t.flush?"dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700":"dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:rounded-xl dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700 dk:overflow-hidden dk:shadow-sm"),B=e.computed(()=>t.variant==="separated"?"dk:rounded-xl dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:overflow-hidden dk:shadow-sm dk:bg-white dk:dark:bg-zinc-900":t.variant==="ghost"?"":"dk:bg-white dk:dark:bg-zinc-900");function p(h,m){const g=a[t.size],y=x(h),C=["dk:flex dk:w-full dk:items-center dk:select-none dk:outline-none","dk:transition-colors dk:duration-150",g.summary],S=y?[l[t.color],u[t.color]]:["dk:text-zinc-700 dk:dark:text-zinc-300","dk:hover:bg-zinc-50 dk:dark:hover:bg-zinc-800/50 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"],T="dk:focus-visible:ring-2 dk:focus-visible:ring-inset dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500",P=m?"dk:opacity-40 dk:cursor-not-allowed dk:pointer-events-none":"dk:cursor-pointer";return[...C,...S,T,P].join(" ")}function n(h){const m=a[t.size];return["dk:flex-shrink-0 dk:transition-transform dk:duration-250 dk:ease-in-out dk:ml-auto",x(h)?"dk:rotate-180 "+b[t.color]:"dk:text-zinc-400 dk:dark:text-zinc-500",m.chevron].join(" ")}const o=e.computed(()=>["dk:flex-shrink-0 dk:leading-none",a[t.size].icon].join(" ")),i=e.computed(()=>[a[t.size].content,"dk:text-zinc-600 dk:dark:text-zinc-400 dk:leading-relaxed"].join(" "));return(h,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(v.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.items,(g,y)=>(e.openBlock(),e.createElementBlock("details",{key:g.value??y,open:x(g.value??String(y)),class:e.normalizeClass(B.value),onToggle:m[0]||(m[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("summary",{class:e.normalizeClass(p(g.value??String(y),g.disabled)),onClick:e.withModifiers(C=>f(g.value??String(y),g.disabled),["prevent"])},[g.icon?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-hidden":"true",class:e.normalizeClass(o.value)},e.toDisplayString(g.icon),3)):e.createCommentVNode("",!0),e.createElementVNode("span",it,e.toDisplayString(g.title),1),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(n(g.value??String(y))),viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[...m[1]||(m[1]=[e.createElementVNode("polyline",{points:"4 6 8 10 12 6"},null,-1)])],2))],10,st),e.createElementVNode("div",ct,[e.createElementVNode("div",{class:e.normalizeClass(i.value)},[e.renderSlot(h.$slots,g.value??String(y),{},()=>[e.createElementVNode("p",null,e.toDisplayString(g.content),1)],!0)],2)])],42,lt))),128))],2))}}),mt=F(ut,[["__scopeId","data-v-9bd77ff3"]]),bt=["aria-label"],pt=e.defineComponent({inheritAttrs:!1,__name:"DuiBadge",props:{label:{default:void 0},color:{default:"neutral"},variant:{default:"soft"},size:{default:"sm"},rounded:{default:"full"},dot:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},href:{default:void 0}},emits:["dismiss"],setup(d,{emit:r}){const t=d,k=r,c={xs:"dk:text-[10px] dk:leading-none dk:px-1.5 dk:py-0.5 dk:gap-1",sm:"dk:text-xs dk:leading-none dk:px-2 dk:py-1 dk:gap-1",md:"dk:text-sm dk:px-2.5 dk:py-1 dk:gap-1.5",lg:"dk:text-base dk:px-3 dk:py-1.5 dk:gap-2"},s={full:"dk:rounded-full",md:"dk:rounded-md",none:"dk:rounded-none"},x={soft:{neutral:"dk:bg-zinc-100 dk:text-zinc-700 dk:dark:bg-zinc-800 dk:dark:text-zinc-300",primary:"dk:bg-slate-100 dk:text-slate-700 dk:dark:bg-slate-800 dk:dark:text-slate-300",secondary:"dk:bg-pink-100 dk:text-pink-700 dk:dark:bg-pink-900/50 dk:dark:text-pink-300",success:"dk:bg-emerald-100 dk:text-emerald-700 dk:dark:bg-emerald-900/50 dk:dark:text-emerald-300",warning:"dk:bg-amber-100 dk:text-amber-700 dk:dark:bg-amber-900/50 dk:dark:text-amber-300",danger:"dk:bg-rose-100 dk:text-rose-700 dk:dark:bg-rose-900/50 dk:dark:text-rose-300"},solid:{neutral:"dk:bg-zinc-600 dk:text-white dk:dark:bg-zinc-500",primary:"dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500",secondary:"dk:bg-pink-600 dk:text-white dk:dark:bg-pink-500",success:"dk:bg-emerald-600 dk:text-white dk:dark:bg-emerald-500",warning:"dk:bg-amber-500 dk:text-white dk:dark:bg-amber-400",danger:"dk:bg-rose-600 dk:text-white dk:dark:bg-rose-500"},outline:{neutral:"dk:border dk:border-zinc-400 dk:text-zinc-700 dk:dark:border-zinc-500 dk:dark:text-zinc-300",primary:"dk:border dk:border-slate-400 dk:text-slate-700 dk:dark:border-slate-500 dk:dark:text-slate-300",secondary:"dk:border dk:border-pink-400 dk:text-pink-700 dk:dark:border-pink-500 dk:dark:text-pink-300",success:"dk:border dk:border-emerald-400 dk:text-emerald-700 dk:dark:border-emerald-500 dk:dark:text-emerald-300",warning:"dk:border dk:border-amber-400 dk:text-amber-700 dk:dark:border-amber-500 dk:dark:text-amber-300",danger:"dk:border dk:border-rose-400 dk:text-rose-700 dk:dark:border-rose-500 dk:dark:text-rose-300"}},f={neutral:"dk:bg-zinc-500 dk:dark:bg-zinc-400",primary:"dk:bg-slate-500 dk:dark:bg-slate-400",secondary:"dk:bg-pink-500 dk:dark:bg-pink-400",success:"dk:bg-emerald-500 dk:dark:bg-emerald-400",warning:"dk:bg-amber-500 dk:dark:bg-amber-400",danger:"dk:bg-rose-500 dk:dark:bg-rose-400"},a=e.computed(()=>{const v="dk:inline-flex dk:items-center dk:font-medium dk:whitespace-nowrap dk:select-none",B=c[t.size],p=s[t.rounded],n=x[t.variant][t.color],o=t.href?"dk:cursor-pointer dk:hover:opacity-80 dk:transition-opacity":"";return[v,B,p,n,o].join(" ")}),l=e.computed(()=>["dk:rounded-full dk:flex-shrink-0",{xs:"dk:w-1.5 dk:h-1.5",sm:"dk:w-2 dk:h-2",md:"dk:w-2 dk:h-2",lg:"dk:w-2.5 dk:h-2.5"}[t.size],f[t.color]].join(" ")),u=e.computed(()=>"dk:flex-shrink-0 dk:flex dk:items-center"),b=e.computed(()=>["dk:-mr-0.5 dk:flex-shrink-0 dk:inline-flex dk:items-center dk:justify-center","dk:rounded-full dk:w-3.5 dk:h-3.5 dk:text-sm dk:leading-none","dk:opacity-60 dk:hover:opacity-100 dk:transition-opacity dk:outline-none","dk:hover:bg-black/10 dk:dark:hover:bg-white/10"].join(" "));return(v,B)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.href?"a":"span"),e.mergeProps({href:d.href,class:a.value},v.$attrs),{default:e.withCtx(()=>[v.$slots.icon||d.dot?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-hidden":"true",class:e.normalizeClass(u.value)},[d.dot?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(l.value)},null,2)):e.renderSlot(v.$slots,"icon",{key:1})],2)):e.createCommentVNode("",!0),e.renderSlot(v.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),d.dismissible?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(b.value),"aria-label":d.label?`Quitar ${d.label}`:"Quitar",onClick:B[0]||(B[0]=e.withModifiers(p=>k("dismiss"),["prevent"]))}," × ",10,bt)):e.createCommentVNode("",!0)]),_:3},16,["href","class"]))}}),gt=["onKeydown"],ft=["aria-label"],ht=e.defineComponent({__name:"DuiDropdown",props:{modelValue:{type:Boolean,default:void 0},placement:{default:"bottom-start"},variant:{default:"solid"},color:{default:"neutral"},size:{default:"md"},rounded:{default:"all"},minWidth:{default:"10rem"},ariaLabel:{default:"Menu"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","open","close"],setup(d,{emit:r}){const t=d,k=r,c=e.ref(null),s=e.ref(!1),x=e.computed(()=>t.modelValue!==void 0?t.modelValue:s.value);function f(){if(t.disabled)return;const n=!x.value;s.value=n,k("update:modelValue",n),k(n?"open":"close")}function a(){s.value=!1,k("update:modelValue",!1),k("close")}function l(n){c.value&&!c.value.contains(n.target)&&a()}e.onMounted(()=>document.addEventListener("mousedown",l)),e.onBeforeUnmount(()=>document.removeEventListener("mousedown",l));const u={"bottom-start":"dk:top-full dk:left-0 dk:mt-1 dk:origin-top-left","bottom-end":"dk:top-full dk:right-0 dk:mt-1 dk:origin-top-right",bottom:"dk:top-full dk:left-1/2 dk:-translate-x-1/2 dk:mt-1 dk:origin-top","top-start":"dk:bottom-full dk:left-0 dk:mb-1 dk:origin-bottom-left","top-end":"dk:bottom-full dk:right-0 dk:mb-1 dk:origin-bottom-right",top:"dk:bottom-full dk:left-1/2 dk:-translate-x-1/2 dk:mb-1 dk:origin-bottom"},b={all:"dk:rounded-xl",sm:"dk:rounded-lg",none:"dk:rounded-none"},v={solid:{neutral:"dk:bg-white dk:dark:bg-zinc-900 dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:text-zinc-800 dk:dark:text-zinc-200",primary:"dk:bg-slate-50 dk:dark:bg-slate-900 dk:border dk:border-slate-200 dk:dark:border-slate-700 dk:text-slate-800 dk:dark:text-slate-200",secondary:"dk:bg-pink-50 dk:dark:bg-pink-900 dk:border dk:border-pink-200 dk:dark:border-pink-700 dk:text-pink-800 dk:dark:text-pink-200",success:"dk:bg-emerald-50 dk:dark:bg-emerald-900 dk:border dk:border-emerald-200 dk:dark:border-emerald-700 dk:text-emerald-800 dk:dark:text-emerald-200",warning:"dk:bg-amber-50 dk:dark:bg-amber-900 dk:border dk:border-amber-200 dk:dark:border-amber-700 dk:text-amber-800 dk:dark:text-amber-200",danger:"dk:bg-rose-50 dk:dark:bg-rose-900 dk:border dk:border-rose-200 dk:dark:border-rose-700 dk:text-rose-800 dk:dark:text-rose-200"},outline:{neutral:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-zinc-300 dk:dark:border-zinc-600 dk:text-zinc-800 dk:dark:text-zinc-200",primary:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-slate-400 dk:dark:border-slate-500 dk:text-slate-800 dk:dark:text-slate-200",secondary:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-pink-400 dk:dark:border-pink-500 dk:text-pink-800 dk:dark:text-pink-200",success:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-emerald-400 dk:dark:border-emerald-500 dk:text-emerald-800 dk:dark:text-emerald-200",warning:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-amber-400 dk:dark:border-amber-500 dk:text-amber-800 dk:dark:text-amber-200",danger:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-rose-400 dk:dark:border-rose-500 dk:text-rose-800 dk:dark:text-rose-200"},ghost:{neutral:"dk:bg-white/85 dk:dark:bg-zinc-900/75 dk:backdrop-blur-md dk:border dk:border-zinc-300/70 dk:dark:border-zinc-600/60 dk:text-zinc-800 dk:dark:text-zinc-200",primary:"dk:bg-slate-100/85 dk:dark:bg-slate-900/70 dk:backdrop-blur-md dk:border dk:border-slate-300/70 dk:dark:border-slate-600/60 dk:text-slate-800 dk:dark:text-slate-200",secondary:"dk:bg-pink-100/85 dk:dark:bg-pink-900/70 dk:backdrop-blur-md dk:border dk:border-pink-300/70 dk:dark:border-pink-600/60 dk:text-pink-800 dk:dark:text-pink-200",success:"dk:bg-emerald-100/85 dk:dark:bg-emerald-900/70 dk:backdrop-blur-md dk:border dk:border-emerald-300/70 dk:dark:border-emerald-600/60 dk:text-emerald-800 dk:dark:text-emerald-200",warning:"dk:bg-amber-100/85 dk:dark:bg-amber-900/70 dk:backdrop-blur-md dk:border dk:border-amber-300/70 dk:dark:border-amber-600/60 dk:text-amber-800 dk:dark:text-amber-200",danger:"dk:bg-rose-100/85 dk:dark:bg-rose-900/70 dk:backdrop-blur-md dk:border dk:border-rose-300/70 dk:dark:border-rose-600/60 dk:text-rose-800 dk:dark:text-rose-200"}},B=e.computed(()=>({minWidth:t.minWidth})),p=e.computed(()=>["dk:absolute dk:z-50 dk:shadow-lg dk:py-1",u[t.placement],b[t.rounded],v[t.variant][t.color]].join(" "));return(n,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:c,class:"dk:relative dk:inline-block"},[e.createElementVNode("div",{onClick:f,onKeydown:[e.withKeys(e.withModifiers(f,["prevent"]),["enter"]),e.withKeys(e.withModifiers(f,["prevent"]),["space"])]},[e.renderSlot(n.$slots,"trigger")],40,gt),e.createVNode(e.Transition,{"enter-active-class":"dk:transition-all dk:duration-150 dk:ease-out","leave-active-class":"dk:transition-all dk:duration-100 dk:ease-in","enter-from-class":"dk:opacity-0 dk:scale-95","leave-to-class":"dk:opacity-0 dk:scale-95"},{default:e.withCtx(()=>[x.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(p.value),style:e.normalizeStyle(B.value),role:"menu","aria-label":d.ariaLabel},[e.renderSlot(n.$slots,"default")],14,ft)):e.createCommentVNode("",!0)]),_:3})],512))}}),xt={class:"dk:flex-1 dk:truncate"},vt={key:1,class:"dk:ml-auto dk:opacity-60 dk:text-xs"},yt=e.defineComponent({__name:"DuiDropdownItem",props:{label:{default:void 0},icon:{default:void 0},href:{default:void 0},target:{default:void 0},disabled:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},size:{default:"md"}},emits:["click"],setup(d,{emit:r}){const t=d,k=r,c=e.computed(()=>t.href?{href:t.href,target:t.target}:{type:"button",disabled:t.disabled}),s={sm:"dk:px-3 dk:py-1 dk:text-xs",md:"dk:px-3 dk:py-2 dk:text-sm",lg:"dk:px-4 dk:py-2.5 dk:text-base"},x=e.computed(()=>{const l="dk:flex dk:w-full dk:items-center dk:gap-2 dk:transition-colors dk:duration-100 dk:outline-none dk:text-left dk:select-none",u=s[t.size],b=t.danger?"dk:text-rose-600 dk:dark:text-rose-400 dk:hover:bg-rose-50 dk:dark:hover:bg-rose-900/40 dk:focus-visible:bg-rose-50 dk:dark:focus-visible:bg-rose-900/40":"dk:hover:bg-black/5 dk:dark:hover:bg-white/10 dk:focus-visible:bg-black/5 dk:dark:focus-visible:bg-white/10",v=t.disabled?"dk:opacity-50 dk:cursor-not-allowed dk:pointer-events-none":"dk:cursor-pointer";return[l,u,b,v].join(" ")}),f=e.computed(()=>"dk:flex-shrink-0 dk:w-4 dk:h-4 dk:flex dk:items-center dk:justify-center dk:opacity-70");function a(l){t.disabled||k("click",l)}return(l,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.href?"a":"button"),e.mergeProps(c.value,{class:x.value,role:"menuitem","aria-disabled":d.disabled,onClick:a}),{default:e.withCtx(()=>[l.$slots.icon||d.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(f.value),"aria-hidden":"true"},[e.renderSlot(l.$slots,"icon",{},()=>[e.createTextVNode(e.toDisplayString(d.icon),1)])],2)):e.createCommentVNode("",!0),e.createElementVNode("span",xt,[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)])]),l.$slots.trailing?(e.openBlock(),e.createElementBlock("span",vt,[e.renderSlot(l.$slots,"trailing")])):e.createCommentVNode("",!0)]),_:3},16,["class","aria-disabled"]))}}),zt={},wt={class:"dk:my-1 dk:border-current/10",role:"separator","aria-orientation":"horizontal"};function Ct(d,r){return e.openBlock(),e.createElementBlock("hr",wt)}const Bt=F(zt,[["render",Ct]]),Vt=["aria-label"],St=["disabled","aria-label"],Et={key:0,class:"dk:hidden dk:sm:inline"},$t=["aria-label","aria-current","onClick"],Nt=["disabled","aria-label"],Dt={key:0,class:"dk:hidden dk:sm:inline"},jt=e.defineComponent({__name:"DuiPagination",props:{modelValue:{},total:{},perPage:{default:10},siblingCount:{default:1},showBoundary:{type:Boolean,default:!0},color:{default:"primary"},variant:{default:"solid"},size:{default:"md"},rounded:{default:"md"},showLabels:{type:Boolean,default:!1},prevLabel:{default:"Anterior"},nextLabel:{default:"Siguiente"},ariaLabel:{default:"Paginacion"}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,c=e.computed(()=>Math.max(1,Math.ceil(t.total/t.perPage)));function s(n){n<1||n>c.value||n===t.modelValue||(k("update:modelValue",n),k("change",n))}const x=e.computed(()=>{const n=c.value,o=t.modelValue,i=t.siblingCount,h=t.showBoundary?1:0;if(n<=2*i+2*h+3)return Array.from({length:n},(C,S)=>S+1);const m=[];for(let C=1;C<=h;C++)m.push(C);const g=Math.max(h+1,o-i),y=Math.min(n-h,o+i);g>h+1&&m.push("...");for(let C=g;C<=y;C++)m.push(C);y<n-h&&m.push("...");for(let C=n-h+1;C<=n;C++)m.push(C);return m}),f={sm:"dk:w-7 dk:h-7 dk:text-xs",md:"dk:w-9 dk:h-9 dk:text-sm",lg:"dk:w-11 dk:h-11 dk:text-base"},a={full:"dk:rounded-full",md:"dk:rounded-lg",none:"dk:rounded-none"},l={solid:{neutral:"dk:bg-zinc-700 dk:text-white dk:dark:bg-zinc-500",primary:"dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500",secondary:"dk:bg-pink-600 dk:text-white dk:dark:bg-pink-500",success:"dk:bg-emerald-600 dk:text-white dk:dark:bg-emerald-500",warning:"dk:bg-amber-500 dk:text-white dk:dark:bg-amber-400",danger:"dk:bg-rose-600 dk:text-white dk:dark:bg-rose-500"},outline:{neutral:"dk:border-2 dk:border-zinc-600 dk:text-zinc-700 dk:dark:border-zinc-400 dk:dark:text-zinc-200",primary:"dk:border-2 dk:border-slate-600 dk:text-slate-700 dk:dark:border-slate-400 dk:dark:text-slate-200",secondary:"dk:border-2 dk:border-pink-600 dk:text-pink-700 dk:dark:border-pink-400 dk:dark:text-pink-200",success:"dk:border-2 dk:border-emerald-600 dk:text-emerald-700 dk:dark:border-emerald-400 dk:dark:text-emerald-200",warning:"dk:border-2 dk:border-amber-500 dk:text-amber-700 dk:dark:border-amber-400 dk:dark:text-amber-200",danger:"dk:border-2 dk:border-rose-600 dk:text-rose-700 dk:dark:border-rose-400 dk:dark:text-rose-200"},ghost:{neutral:"dk:bg-zinc-100 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",primary:"dk:bg-slate-100 dk:text-slate-800 dk:dark:bg-slate-700 dk:dark:text-slate-100",secondary:"dk:bg-pink-100 dk:text-pink-800 dk:dark:bg-pink-800 dk:dark:text-pink-100",success:"dk:bg-emerald-100 dk:text-emerald-800 dk:dark:bg-emerald-800 dk:dark:text-emerald-100",warning:"dk:bg-amber-100 dk:text-amber-800 dk:dark:bg-amber-700 dk:dark:text-amber-100",danger:"dk:bg-rose-100 dk:text-rose-800 dk:dark:bg-rose-800 dk:dark:text-rose-100"}},u=e.computed(()=>"dk:flex dk:items-center dk:gap-1 dk:flex-wrap"),b=e.computed(()=>{const n=f[t.size],o=a[t.rounded];return["dk:inline-flex dk:items-center dk:justify-center dk:font-medium dk:transition-colors dk:duration-150 dk:outline-none dk:select-none dk:cursor-pointer dk:disabled:cursor-not-allowed dk:disabled:pointer-events-none",n,o,"dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400"].join(" ")}),v=e.computed(()=>[b.value,"dk:text-zinc-600 dk:dark:text-zinc-400","dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700","dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"].join(" "));function B(n){return n===t.modelValue?[b.value,l[t.variant][t.color]].join(" "):[b.value,"dk:text-zinc-600 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"].join(" ")}const p=e.computed(()=>["dk:inline-flex dk:items-center dk:justify-center dk:text-zinc-400 dk:select-none",f[t.size]].join(" "));return(n,o)=>(e.openBlock(),e.createElementBlock("nav",{"aria-label":d.ariaLabel,class:e.normalizeClass(u.value)},[e.createElementVNode("button",{type:"button",disabled:d.modelValue<=1,"aria-label":d.prevLabel,class:e.normalizeClass([v.value,d.modelValue<=1?"dk:opacity-40 dk:cursor-not-allowed":""]),onClick:o[0]||(o[0]=i=>s(d.modelValue-1))},[o[2]||(o[2]=e.createElementVNode("svg",{class:"dk:w-4 dk:h-4",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("polyline",{points:"10 4 6 8 10 12"})],-1)),d.showLabels?(e.openBlock(),e.createElementBlock("span",Et,e.toDisplayString(d.prevLabel),1)):e.createCommentVNode("",!0)],10,St),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,i=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:i},[i==="..."?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(p.value),"aria-hidden":"true"},"…",2)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","aria-label":`Pagina ${i}`,"aria-current":d.modelValue===i?"page":void 0,class:e.normalizeClass(B(i)),onClick:h=>s(i)},e.toDisplayString(i),11,$t))],64))),128)),e.createElementVNode("button",{type:"button",disabled:d.modelValue>=c.value,"aria-label":d.nextLabel,class:e.normalizeClass([v.value,d.modelValue>=c.value?"dk:opacity-40 dk:cursor-not-allowed":""]),onClick:o[1]||(o[1]=i=>s(d.modelValue+1))},[d.showLabels?(e.openBlock(),e.createElementBlock("span",Dt,e.toDisplayString(d.nextLabel),1)):e.createCommentVNode("",!0),o[3]||(o[3]=e.createElementVNode("svg",{class:"dk:w-4 dk:h-4",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("polyline",{points:"6 4 10 8 6 12"})],-1))],10,Nt)],10,Vt))}}),Tt=e.defineComponent({__name:"DuiSkeleton",props:{variant:{default:"text"},width:{default:void 0},height:{default:void 0},animation:{default:"pulse"}},setup(d){const r=d;function t(f){if(f!==void 0)return typeof f=="number"?`${f}px`:f}const k=e.computed(()=>({width:t(r.width),height:t(r.height)})),c={pulse:"dui-skeleton-pulse",wave:"dui-skeleton-wave",none:""},s={text:"dk:block dk:h-4 dk:w-full dk:rounded",circular:"dk:block dk:w-10 dk:h-10 dk:rounded-full",rectangular:"dk:block dk:w-full dk:h-20 dk:rounded-none",rounded:"dk:block dk:w-full dk:h-20 dk:rounded-xl"},x=e.computed(()=>["dk:bg-zinc-200 dk:dark:bg-zinc-700",s[r.variant],c[r.animation]].join(" "));return(f,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(x.value),style:e.normalizeStyle(k.value),"aria-hidden":"true",role:"presentation"},null,6))}}),Mt=F(Tt,[["__scopeId","data-v-8c9c6005"]]),Pt=["aria-label"],Lt=["id","aria-controls","aria-selected","disabled","onClick","onKeydown"],_t={key:0,"aria-hidden":"true",class:"dk:flex-shrink-0"},At=["id","aria-labelledby","tabindex","hidden"],It=e.defineComponent({__name:"DuiTabs",props:{modelValue:{},tabs:{},variant:{default:"underline"},color:{default:"primary"},size:{default:"md"},fullWidth:{type:Boolean,default:!1},ariaLabel:{default:"Tabs"}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,c=Math.random().toString(36).slice(2,8);function s(p,n){n||(k("update:modelValue",p),k("change",p))}function x(p,n){const o=t.tabs.filter(h=>!h.disabled).map(h=>h.value),i=o.indexOf(n);if(p.key==="ArrowRight"||p.key==="ArrowDown"){p.preventDefault();const h=o[(i+1)%o.length];s(h)}if(p.key==="ArrowLeft"||p.key==="ArrowUp"){p.preventDefault();const h=o[(i-1+o.length)%o.length];s(h)}p.key==="Home"&&(p.preventDefault(),s(o[0])),p.key==="End"&&(p.preventDefault(),s(o[o.length-1]))}const f={sm:"dk:text-xs dk:px-3 dk:py-1.5",md:"dk:text-sm dk:px-4 dk:py-2",lg:"dk:text-base dk:px-5 dk:py-2.5"},a={neutral:{underline:"dk:border-zinc-600 dk:text-zinc-700 dk:dark:border-zinc-400 dk:dark:text-zinc-200",pills:"dk:bg-zinc-600 dk:text-white dk:dark:bg-zinc-500",boxed:"dk:bg-white dk:text-zinc-700 dk:dark:bg-zinc-800 dk:dark:text-zinc-200 dk:shadow-sm"},primary:{underline:"dk:border-slate-600 dk:text-slate-700 dk:dark:border-slate-400 dk:dark:text-slate-200",pills:"dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500",boxed:"dk:bg-white dk:text-slate-700 dk:dark:bg-zinc-800 dk:dark:text-slate-200 dk:shadow-sm"},secondary:{underline:"dk:border-pink-600 dk:text-pink-700 dk:dark:border-pink-400 dk:dark:text-pink-200",pills:"dk:bg-pink-600 dk:text-white dk:dark:bg-pink-500",boxed:"dk:bg-white dk:text-pink-700 dk:dark:bg-zinc-800 dk:dark:text-pink-200 dk:shadow-sm"},success:{underline:"dk:border-emerald-600 dk:text-emerald-700 dk:dark:border-emerald-400 dk:dark:text-emerald-200",pills:"dk:bg-emerald-600 dk:text-white dk:dark:bg-emerald-500",boxed:"dk:bg-white dk:text-emerald-700 dk:dark:bg-zinc-800 dk:dark:text-emerald-200 dk:shadow-sm"},warning:{underline:"dk:border-amber-500 dk:text-amber-700 dk:dark:border-amber-400 dk:dark:text-amber-200",pills:"dk:bg-amber-500 dk:text-white dk:dark:bg-amber-400",boxed:"dk:bg-white dk:text-amber-700 dk:dark:bg-zinc-800 dk:dark:text-amber-200 dk:shadow-sm"},danger:{underline:"dk:border-rose-600 dk:text-rose-700 dk:dark:border-rose-400 dk:dark:text-rose-200",pills:"dk:bg-rose-600 dk:text-white dk:dark:bg-rose-500",boxed:"dk:bg-white dk:text-rose-700 dk:dark:bg-zinc-800 dk:dark:text-rose-200 dk:shadow-sm"}},l=e.computed(()=>"dk:w-full"),u=e.computed(()=>{const p="dk:flex dk:items-center dk:gap-0.5",n=t.fullWidth?"dk:w-full":"",o={underline:"dk:border-b dk:border-zinc-200 dk:dark:border-zinc-700",pills:"dk:gap-1",boxed:"dk:bg-zinc-100 dk:dark:bg-zinc-800 dk:p-1 dk:rounded-xl dk:gap-1"}[t.variant];return[p,n,o].join(" ")});function b(p,n){const o="dk:inline-flex dk:items-center dk:gap-1.5 dk:font-medium dk:transition-all dk:duration-150 dk:outline-none dk:select-none dk:rounded-t",i=f[t.size],h=t.modelValue===p,m=n?"dk:opacity-40 dk:cursor-not-allowed":"dk:cursor-pointer",g="dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500";if(t.variant==="underline"){const S=h?`dk:border-b-2 ${a[t.color].underline}`:"dk:border-b-2 dk:border-transparent dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200 dk:hover:border-zinc-300 dk:dark:hover:border-zinc-600";return[o,i,S,m,g].join(" ")}if(t.variant==="pills"){const S=h?`dk:rounded-lg ${a[t.color].pills}`:"dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200";return[o,i,S,m,g].join(" ")}const y=h?`dk:rounded-lg ${a[t.color].boxed}`:"dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-black/5 dk:dark:hover:bg-white/5 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200",C=t.fullWidth?"dk:flex-1 dk:text-center dk:justify-center":"";return[o,i,y,m,g,C].join(" ")}const v=e.computed(()=>"dk:ml-1 dk:inline-flex dk:items-center dk:justify-center dk:rounded-full dk:bg-current/15 dk:text-current dk:text-[10px] dk:font-semibold dk:px-1.5 dk:py-px dk:leading-none"),B=e.computed(()=>[{sm:"dk:pt-3",md:"dk:pt-4",lg:"dk:pt-5"}[t.size],"dk:outline-none"].join(" "));return(p,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.createElementVNode("div",{class:e.normalizeClass(u.value),role:"tablist","aria-label":d.ariaLabel},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.tabs,o=>(e.openBlock(),e.createElementBlock("button",{key:o.value,id:`tab-${e.unref(c)}-${o.value}`,"aria-controls":`panel-${e.unref(c)}-${o.value}`,"aria-selected":d.modelValue===o.value,disabled:o.disabled,role:"tab",class:e.normalizeClass(b(o.value,o.disabled)),onClick:i=>s(o.value,o.disabled),onKeydown:i=>x(i,o.value)},[o.icon?(e.openBlock(),e.createElementBlock("span",_t,e.toDisplayString(o.icon),1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.label)+" ",1),o.badge!==void 0?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(v.value)},e.toDisplayString(o.badge),3)):e.createCommentVNode("",!0)],42,Lt))),128))],10,Pt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.tabs,o=>(e.openBlock(),e.createElementBlock("div",{key:o.value,id:`panel-${e.unref(c)}-${o.value}`,"aria-labelledby":`tab-${e.unref(c)}-${o.value}`,role:"tabpanel",tabindex:d.modelValue===o.value?0:-1,hidden:d.modelValue!==o.value,class:e.normalizeClass(B.value)},[e.renderSlot(p.$slots,o.value)],10,At))),128))],2))}}),W=e.reactive({toasts:[]});function A(d){const r=Math.random().toString(36).slice(2,10),t={id:r,title:d.title,message:d.message,color:d.color??"neutral",duration:d.duration??4e3,closable:d.closable??!0,icon:d.icon};return W.toasts.push(t),t.duration>0&&setTimeout(()=>Q(r),t.duration),r}function Q(d){const r=W.toasts.findIndex(t=>t.id===d);r!==-1&&W.toasts.splice(r,1)}function Wt(){W.toasts.splice(0)}function Ft(){return{toasts:e.readonly(W.toasts),add:A,remove:Q,clear:Wt,success:(d,r)=>A({...r,message:d,color:"success"}),error:(d,r)=>A({...r,message:d,color:"danger"}),warning:(d,r)=>A({...r,message:d,color:"warning"}),info:(d,r)=>A({...r,message:d,color:"primary"})}}const Ot={key:0,"aria-hidden":"true",class:"dk:flex-shrink-0 dk:text-lg"},Kt={class:"dk:flex-1 dk:min-w-0"},qt={key:0,class:"dk:text-sm dk:font-semibold dk:leading-snug"},Ut=["onClick"],Ht="dk:flex-shrink-0 dk:flex dk:items-center dk:justify-center dk:w-5 dk:h-5 dk:rounded dk:text-current dk:opacity-70 dk:hover:opacity-100 dk:transition-opacity dk:text-base dk:leading-none dk:outline-none dk:ring-1 dk:ring-current/30 dk:focus-visible:ring-2",Qt=e.defineComponent({__name:"DuiToast",props:{position:{default:"top-right"},maxToasts:{default:5},zIndex:{default:9999}},setup(d){const r=d,{toasts:t,remove:k}=Ft(),c=e.computed(()=>t.slice(0,r.maxToasts)),s={"top-right":"dk:top-4 dk:right-4 dk:items-end","top-left":"dk:top-4 dk:left-4 dk:items-start","top-center":"dk:top-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center","bottom-right":"dk:bottom-4 dk:right-4 dk:items-end","bottom-left":"dk:bottom-4 dk:left-4 dk:items-start","bottom-center":"dk:bottom-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center"},x=e.computed(()=>["dk:fixed dk:pointer-events-none",s[r.position],`dk:z-[${r.zIndex}]`].join(" ")),f=e.computed(()=>"dk:relative dk:flex dk:flex-col dk:gap-2 dk:w-80 dk:max-w-[calc(100vw-2rem)]"),a={neutral:"dk:bg-zinc-800 dk:dark:bg-zinc-700 dk:text-white dk:border-zinc-600",primary:"dk:bg-slate-700 dk:dark:bg-slate-700 dk:text-white dk:border-slate-500",secondary:"dk:bg-pink-600 dk:dark:bg-pink-700 dk:text-white dk:border-pink-400",success:"dk:bg-emerald-600 dk:dark:bg-emerald-700 dk:text-white dk:border-emerald-400",warning:"dk:bg-amber-600 dk:dark:bg-amber-700 dk:text-white dk:border-amber-400",danger:"dk:bg-rose-600 dk:dark:bg-rose-700 dk:text-white dk:border-rose-400"},l={neutral:"dk:bg-zinc-300",primary:"dk:bg-slate-300",secondary:"dk:bg-pink-200",success:"dk:bg-emerald-200",warning:"dk:bg-amber-200",danger:"dk:bg-rose-200"};function u(v){return["dk:pointer-events-auto dk:flex dk:items-start dk:gap-3","dk:rounded-xl dk:border dk:px-4 dk:py-3 dk:shadow-xl",a[v]].join(" ")}function b(v){return["dk:flex-shrink-0 dk:w-2 dk:h-2 dk:rounded-full dk:mt-1",l[v]].join(" ")}return(v,B)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",{class:e.normalizeClass(x.value),"aria-live":"polite","aria-atomic":"false"},[e.createVNode(e.TransitionGroup,{tag:"div",class:e.normalizeClass(f.value),"enter-active-class":"dk:transition-all dk:duration-300 dk:ease-out","leave-active-class":"dk:transition-all dk:duration-200 dk:ease-in dk:absolute dk:w-full","enter-from-class":"dk:opacity-0 dk:translate-y-2 dk:scale-95","leave-to-class":"dk:opacity-0 dk:scale-95","move-class":"dk:transition-all dk:duration-300"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,p=>(e.openBlock(),e.createElementBlock("div",{key:p.id,role:"alert",class:e.normalizeClass(u(p.color))},[p.icon?(e.openBlock(),e.createElementBlock("span",Ot,e.toDisplayString(p.icon),1)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(b(p.color)),"aria-hidden":"true"},null,2)),e.createElementVNode("div",Kt,[p.title?(e.openBlock(),e.createElementBlock("p",qt,e.toDisplayString(p.title),1)):e.createCommentVNode("",!0),e.createElementVNode("p",{class:e.normalizeClass(["dk:text-sm dk:leading-snug",{"dk:opacity-80":p.title}])},e.toDisplayString(p.message),3)]),p.closable?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(Ht),"aria-label":"Cerrar notificacion",onClick:n=>e.unref(k)(p.id)}," × ",8,Ut)):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["class"])],2)]))}}),Gt={key:0,class:"dk:flex dk:items-center dk:gap-4 dk:flex-shrink-0"},Jt={class:"dk:hidden dk:md:flex dk:items-center dk:flex-1"},Xt={key:0,class:"dk:relative dk:group"},Yt={class:"dk:absolute dk:left-0 dk:top-full dk:min-w-56 dk:py-2 dk:mt-1 dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:from-gray-700/90 dk:dark:to-gray-800/90 dk:backdrop-blur-md dk:rounded-lg dk:shadow-lg dk:border dk:border-white/40 dk:dark:border-white/10 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50"},Zt={key:1,class:"dk:hidden dk:md:flex dk:items-center dk:gap-2 dk:flex-shrink-0"},Rt={class:"dk:w-6 dk:h-6 dk:stroke-gray-900 dk:dark:stroke-white",fill:"none",viewBox:"0 0 24 24"},ed=["d"],td={class:"dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:from-gray-700/90 dk:dark:to-gray-800/90 dk:backdrop-blur-md dk:border-t dk:border-white/40 dk:dark:border-white/10 dk:shadow-lg dk:dark:shadow-black/30 dk:z-40"},dd={class:"dk:px-4 dk:py-3 dk:space-y-2"},rd={key:0},od=["onClick"],ad={class:"dk:flex dk:items-center"},nd={class:"dk:ml-4 dk:mt-2 dk:space-y-1"},kd={key:0,class:"dk:pt-3 dk:border-t dk:border-white/20 dk:dark:border-white/10"},ld=e.defineComponent({__name:"DuiNavbar",props:{items:{default:()=>[]},size:{default:"m"},nuxt:{type:Boolean,default:!1},itemsAlignment:{default:"left"},underlineColor:{default:"primary"}},setup(d){const r=d,t=e.ref(!1),k=e.reactive({}),c=i=>I(i.to,r.nuxt),s=i=>{const h=c(i);return K(i.to,h)},x=()=>{t.value=!t.value},f=()=>{t.value=!1,Object.keys(k).forEach(i=>{k[i]=!1})},a=i=>{k[i]=!k[i]},l={s:{height:"dk:h-12",padding:"dk:px-3",text:"dk:text-sm",itemPadding:"dk:px-2 dk:py-1.5"},m:{height:"dk:h-16",padding:"dk:px-4",text:"dk:text-base",itemPadding:"dk:px-3 dk:py-2"},l:{height:"dk:h-20",padding:"dk:px-6",text:"dk:text-lg",itemPadding:"dk:px-4 dk:py-3"}},u=e.computed(()=>{const i=l[r.size];return["dk:relative dk:bg-gradient-to-b dk:from-white/80 dk:via-white/70 dk:to-gray-50/80","dk:dark:from-gray-700/60 dk:dark:via-gray-800/60 dk:dark:to-gray-900/60","dk:backdrop-blur-md dk:backdrop-brightness-110","dk:border-b dk:border-white/40 dk:dark:border-white/10","dk:shadow-lg dk:shadow-black/10 dk:dark:shadow-black/30","dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5","dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent","dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent","dk:flex dk:items-center dk:w-full dk:gap-4",i.height,i.padding,i.text].join(" ")}),b=e.computed(()=>["dk:flex dk:items-center dk:space-x-1 dk:flex-1",{left:"dk:justify-start",center:"dk:justify-center",right:"dk:justify-end"}[r.itemsAlignment]].join(" ")),v=()=>{const i={neutral:"dk:before:from-zinc-500 dk:before:to-zinc-600 dk:dark:before:from-zinc-400 dk:dark:before:to-zinc-500",primary:"dk:before:from-slate-600 dk:before:to-slate-700 dk:dark:before:from-slate-400 dk:dark:before:to-slate-500",secondary:"dk:before:from-pink-500 dk:before:to-pink-600 dk:dark:before:from-pink-400 dk:dark:before:to-pink-500",success:"dk:before:from-emerald-500 dk:before:to-emerald-600 dk:dark:before:from-emerald-400 dk:dark:before:to-emerald-500",danger:"dk:before:from-rose-500 dk:before:to-rose-600 dk:dark:before:from-rose-400 dk:dark:before:to-rose-500",warning:"dk:before:from-amber-500 dk:before:to-amber-600 dk:dark:before:from-amber-400 dk:dark:before:to-amber-500"};return i[r.underlineColor]||i.primary},B=e.computed(()=>{const i=l[r.size],h=v();return(m,g=!0)=>{const y=m.active??!1,C=g?"dk:pl-3":"dk:pl-2",S="dk:pr-3",T=g?"dk:pl-2":"dk:pl-1",P="dk:pr-2",L=g?"dk:pl-4":"dk:pl-3",q="dk:pr-4";let _="";return i.itemPadding.includes("px-2")?_=`${T} ${P} dk:py-1.5`:i.itemPadding.includes("px-4")?_=`${L} ${q} dk:py-3`:_=`${C} ${S} dk:py-2`,["dk:flex dk:items-center dk:relative dk:transition-all dk:duration-300","dk:text-gray-700 dk:hover:text-gray-900 dk:dark:text-gray-300 dk:dark:hover:text-gray-100","dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-blue-400 dk:focus:ring-opacity-50 dk:dark:focus:ring-blue-300","dk:no-underline","dk:before:absolute dk:before:bottom-0 dk:before:left-0 dk:before:h-0.5","dk:before:bg-gradient-to-r",h,"dk:before:transition-all dk:before:duration-300",y?"dk:before:w-full dk:text-gray-900 dk:dark:text-gray-100":"dk:before:w-0 dk:hover:before:w-full",_].join(" ")}}),p=e.computed(()=>["dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm dk:whitespace-nowrap","dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-white/50 dk:dark:hover:bg-white/10","dk:dark:text-gray-300 dk:dark:hover:text-gray-100","dk:transition-all dk:duration-200 dk:no-underline","dk:border-l-2 dk:border-transparent dk:hover:border-blue-500"].join(" ")),n=e.computed(()=>["dk:flex dk:items-center dk:justify-start dk:w-full dk:text-left dk:px-3 dk:py-2","dk:text-gray-700 dk:hover:text-gray-900 dk:rounded-lg","dk:bg-white/10 dk:hover:bg-white/25 dk:dark:bg-white/5 dk:dark:hover:bg-white/15","dk:dark:text-gray-300 dk:dark:hover:text-gray-100","dk:border dk:border-white/20 dk:dark:border-white/10 dk:hover:border-white/40 dk:dark:hover:border-white/20","dk:transition-all dk:duration-200 dk:no-underline"].join(" ")),o=e.computed(()=>["dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg","dk:text-gray-600 dk:hover:text-gray-800 dk:hover:bg-white/30 dk:dark:hover:bg-white/10","dk:dark:text-gray-400 dk:dark:hover:text-gray-200","dk:border-l-2 dk:border-transparent dk:hover:border-blue-500","dk:transition-all dk:duration-200 dk:no-underline"].join(" "));return(i,h)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(u.value)},[i.$slots.brand?(e.openBlock(),e.createElementBlock("div",Gt,[e.renderSlot(i.$slots,"brand")])):e.createCommentVNode("",!0),e.createElementVNode("div",Jt,[e.createElementVNode("div",{class:e.normalizeClass(b.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m.label},[m.children&&m.children.length>0?(e.openBlock(),e.createElementBlock("div",Xt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(m)),e.mergeProps({ref_for:!0},s(m),{class:B.value(m,!0)}),{default:e.withCtx(()=>[m.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([m.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label)+" ",1),h[0]||(h[0]=e.createElementVNode("svg",{class:"dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1))]),_:2},1040,["class"])),e.createElementVNode("div",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.children,g=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(g)),e.mergeProps({key:g.label},{ref_for:!0},s(g),{class:p.value}),{default:e.withCtx(()=>[g.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([g.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(g.label),1)]),_:2},1040,["class"]))),128))])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(m)),e.mergeProps({key:1,ref_for:!0},s(m),{class:B.value(m,!1)}),{default:e.withCtx(()=>[m.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([m.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label),1)]),_:2},1040,["class"]))],64))),128))],2)]),i.$slots.actions?(e.openBlock(),e.createElementBlock("div",Zt,[e.renderSlot(i.$slots,"actions")])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",onClick:x,class:"dk:md:hidden dk:ml-auto dk:flex-shrink-0 dk:p-2 dk:rounded-md dk:hover:bg-gray-100 dk:dark:hover:bg-gray-700 dk:transition-colors"},[(e.openBlock(),e.createElementBlock("svg",Rt,[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:t.value?"M6 18L18 6M6 6l12 12":"M4 6h16M4 12h16M4 18h16"},null,8,ed)]))]),e.withDirectives(e.createElementVNode("div",td,[e.createElementVNode("div",dd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m.label},[m.children&&m.children.length>0?(e.openBlock(),e.createElementBlock("div",rd,[e.createElementVNode("button",{type:"button",onClick:g=>a(m.label),class:e.normalizeClass([n.value,"dk:justify-between"])},[e.createElementVNode("div",ad,[m.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([m.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label),1)]),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0",k[m.label]?"dk: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))],10,od),e.withDirectives(e.createElementVNode("div",nd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.children,g=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(g)),e.mergeProps({key:g.label},{ref_for:!0},s(g),{class:o.value,onClick:f}),{default:e.withCtx(()=>[g.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([g.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(g.label),1)]),_:2},1040,["class"]))),128))],512),[[e.vShow,k[m.label]]])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(m)),e.mergeProps({key:1,ref_for:!0},s(m),{class:n.value,onClick:f}),{default:e.withCtx(()=>[m.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([m.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label),1)]),_:2},1040,["class"]))],64))),128)),i.$slots.actions?(e.openBlock(),e.createElementBlock("div",kd,[e.renderSlot(i.$slots,"actions")])):e.createCommentVNode("",!0)])],512),[[e.vShow,t.value]])],2))}});exports.DuiAccordion=mt;exports.DuiAction=Re;exports.DuiAlert=Le;exports.DuiBadge=pt;exports.DuiButton=U;exports.DuiCard=dt;exports.DuiCheckbox=Ce;exports.DuiDropdown=ht;exports.DuiDropdownItem=yt;exports.DuiDropdownSeparator=Bt;exports.DuiInput=se;exports.DuiLabel=ye;exports.DuiModal=ot;exports.DuiNavbar=ld;exports.DuiPagination=jt;exports.DuiRadio=$e;exports.DuiSelect=ge;exports.DuiSkeleton=Mt;exports.DuiSwitch=Me;exports.DuiTable=Xe;exports.DuiTabs=It;exports.DuiTextarea=ue;exports.DuiToast=Qt;exports.DuiTooltip=kt;
|
|
354
|
+
dk:dark:hover:bg-amber-800`}},f=e.computed(()=>{var v;const a=(((v=x[r.variant])==null?void 0:v[r.color])||"")+" "+x[r.variant].base,l=c[r.size]||"",u=r.block?"dk:block":"dk:inline-block",b=s[r.rounded]||"";return[Ze,a,l,u,b].join(" ")});return(a,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.value),e.mergeProps(k.value,{class:f.value,title:r.title}),{default:e.withCtx(()=>[r.loading?(e.openBlock(),e.createElementBlock("span",Ye,"Cargando...")):e.renderSlot(a.$slots,"default",{key:0})]),_:3},16,["class","title"]))}}),et={key:0,class:"dk:relative dk:overflow-hidden dk:rounded-t-lg"},tt=["src","alt"],dt=e.defineComponent({__name:"DuiCard",props:{size:{default:"m"},image:{default:void 0},title:{default:void 0},subtitle:{default:void 0},to:{default:void 0},nuxt:{type:Boolean,default:!1}},setup(d){const r=d,t=()=>r.to?I(r.to,r.nuxt):"div",k=()=>r.to?I(r.to,r.nuxt):"h3",c=()=>{const n=t();return K(r.to,n)},s={s:{padding:"dk:p-3",spacing:"dk:space-y-2",titleSize:"dk:text-base",subtitleSize:"dk:text-sm",contentSize:"dk:text-sm"},m:{padding:"dk:p-4",spacing:"dk:space-y-3",titleSize:"dk:text-lg",subtitleSize:"dk:text-base",contentSize:"dk:text-base"},l:{padding:"dk:p-6",spacing:"dk:space-y-4",titleSize:"dk:text-xl",subtitleSize:"dk:text-lg",contentSize:"dk:text-lg"}},x=e.computed(()=>["dk:relative dk:bg-gradient-to-br dk:from-white/80 dk:via-white/70 dk:to-gray-50/80","dk:dark:from-gray-700/60 dk:dark:via-gray-800/60 dk:dark:to-gray-900/60","dk:backdrop-blur-md dk:backdrop-brightness-110","dk:rounded-xl dk:border dk:border-white/40 dk:dark:border-white/10","dk:shadow-xl dk:shadow-black/10 dk:dark:shadow-black/30","dk:transition-all dk:duration-300","dk:hover:shadow-2xl dk:hover:shadow-black/15 dk:dark:hover:shadow-black/40","dk:hover:border-white/50 dk:dark:hover:border-white/20","dk:hover:backdrop-brightness-125 dk:dark:hover:backdrop-brightness-110","dk:overflow-hidden","dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5","dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent","dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent"].join(" ")),f=e.computed(()=>["dk:w-full dk:h-48 dk:object-cover","dk:relative dk:z-10"].join(" ")),a=e.computed(()=>{const n=s[r.size];return[n.padding,n.spacing,"dk:relative dk:z-10"].join(" ")}),l=e.computed(()=>[s[r.size].spacing].join(" ")),u=e.computed(()=>{const o=[s[r.size].titleSize,"dk:font-semibold dk:text-gray-900 dk:dark:text-gray-100","dk:line-clamp-2"];return r.to&&o.push("dk:no-underline dk:hover:underline dk:transition-colors","dk:hover:text-blue-600 dk:dark:hover:text-blue-400"),o.join(" ")}),b=e.computed(()=>{const n=["dk:block","dk:transition-transform dk:duration-300","dk:hover:scale-105","dk:relative dk:z-10"];return r.to&&n.push("dk:no-underline"),n.join(" ")}),v=e.computed(()=>[s[r.size].subtitleSize,"dk:text-gray-600 dk:dark:text-gray-400","dk:line-clamp-3"].join(" ")),B=e.computed(()=>[s[r.size].contentSize,"dk:text-gray-700 dk:dark:text-gray-300"].join(" ")),p=e.computed(()=>["dk:border-t dk:border-gray-300/40 dk:dark:border-white/10","dk:pt-3 dk:mt-3","dk:relative dk:z-10"].join(" "));return(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(x.value)},[d.image?(e.openBlock(),e.createElementBlock("div",et,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t()),e.mergeProps(c(),{class:b.value}),{default:e.withCtx(()=>[e.createElementVNode("img",{src:d.image,alt:d.title||"Card image",class:e.normalizeClass(f.value)},null,10,tt)]),_:1},16,["class"]))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(a.value)},[d.title||d.subtitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.value)},[d.title?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k()),e.mergeProps({key:0},c(),{class:u.value}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.title),1)]),_:1},16,["class"])):e.createCommentVNode("",!0),d.subtitle?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(v.value)},e.toDisplayString(d.subtitle),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),n.$slots.default?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(B.value)},[e.renderSlot(n.$slots,"default")],2)):e.createCommentVNode("",!0),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(p.value)},[e.renderSlot(n.$slots,"footer")],2)):e.createCommentVNode("",!0)],2)],2))}}),rt=["aria-labelledby","aria-describedby"],ot=e.defineComponent({__name:"DuiModal",props:{modelValue:{type:Boolean,default:!1},title:{default:void 0},description:{default:void 0},size:{default:"md"},variant:{default:"solid"},color:{default:"neutral"},rounded:{default:"all"},showClose:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},persistent:{type:Boolean,default:!1},centered:{type:Boolean,default:!0},scrollable:{type:Boolean,default:!0},blurBackdrop:{type:Boolean,default:!0},zIndex:{default:50}},emits:["update:modelValue","open","close","backdrop","escape"],setup(d,{emit:r}){const t=d,k=r,c=Math.random().toString(36).slice(2,10),s=`dui-modal-title-${c}`,x=`dui-modal-description-${c}`,f={all:"dk:rounded-xl",top:"dk:rounded-t-xl",bottom:"dk:rounded-b-xl",left:"dk:rounded-l-xl",right:"dk:rounded-r-xl",none:"dk:rounded-none"},a={xs:"dk:w-full dk:max-w-xs",sm:"dk:w-full dk:max-w-md",md:"dk:w-full dk:max-w-xl",lg:"dk:w-full dk:max-w-3xl",xl:"dk:w-full dk:max-w-5xl",full:"dk:h-[calc(100vh-2rem)] dk:w-[calc(100vw-2rem)] dk:max-w-none"},l={solid:{base:"dk:border dk:shadow-xl",neutral:"dk:bg-white dk:text-zinc-900 dk:border-zinc-200 dk:dark:bg-zinc-900 dk:dark:text-zinc-100 dk:dark:border-zinc-700",primary:"dk:bg-slate-50 dk:text-slate-900 dk:border-slate-200 dk:dark:bg-slate-900 dk:dark:text-slate-100 dk:dark:border-slate-700",secondary:"dk:bg-pink-50 dk:text-pink-900 dk:border-pink-200 dk:dark:bg-pink-900 dk:dark:text-pink-100 dk:dark:border-pink-700",success:"dk:bg-emerald-50 dk:text-emerald-900 dk:border-emerald-200 dk:dark:bg-emerald-900 dk:dark:text-emerald-100 dk:dark:border-emerald-700",warning:"dk:bg-amber-50 dk:text-amber-900 dk:border-amber-200 dk:dark:bg-amber-900 dk:dark:text-amber-100 dk:dark:border-amber-700",danger:"dk:bg-rose-50 dk:text-rose-900 dk:border-rose-200 dk:dark:bg-rose-900 dk:dark:text-rose-100 dk:dark:border-rose-700"},outline:{base:"dk:border-2 dk:shadow-lg dk:bg-white/95 dk:dark:bg-zinc-900/95",neutral:"dk:text-zinc-900 dk:border-zinc-300 dk:dark:text-zinc-100 dk:dark:border-zinc-600",primary:"dk:text-slate-900 dk:border-slate-400 dk:dark:text-slate-100 dk:dark:border-slate-500",secondary:"dk:text-pink-900 dk:border-pink-400 dk:dark:text-pink-100 dk:dark:border-pink-500",success:"dk:text-emerald-900 dk:border-emerald-400 dk:dark:text-emerald-100 dk:dark:border-emerald-500",warning:"dk:text-amber-900 dk:border-amber-400 dk:dark:text-amber-100 dk:dark:border-amber-500",danger:"dk:text-rose-900 dk:border-rose-400 dk:dark:text-rose-100 dk:dark:border-rose-500"},ghost:{base:"dk:border dk:shadow-xl dk:backdrop-blur-md",neutral:"dk:bg-white/85 dk:text-zinc-900 dk:border-zinc-300/70 dk:dark:bg-zinc-900/75 dk:dark:text-zinc-100 dk:dark:border-zinc-600/60",primary:"dk:bg-slate-100/85 dk:text-slate-900 dk:border-slate-300/70 dk:dark:bg-slate-900/70 dk:dark:text-slate-100 dk:dark:border-slate-600/60",secondary:"dk:bg-pink-100/85 dk:text-pink-900 dk:border-pink-300/70 dk:dark:bg-pink-900/70 dk:dark:text-pink-100 dk:dark:border-pink-600/60",success:"dk:bg-emerald-100/85 dk:text-emerald-900 dk:border-emerald-300/70 dk:dark:bg-emerald-900/70 dk:dark:text-emerald-100 dk:dark:border-emerald-600/60",warning:"dk:bg-amber-100/85 dk:text-amber-900 dk:border-amber-300/70 dk:dark:bg-amber-900/70 dk:dark:text-amber-100 dk:dark:border-amber-600/60",danger:"dk:bg-rose-100/85 dk:text-rose-900 dk:border-rose-300/70 dk:dark:bg-rose-900/70 dk:dark:text-rose-100 dk:dark:border-rose-600/60"}},u=e.computed(()=>["dk:fixed dk:inset-0 dk:bg-black/55",t.blurBackdrop?"dk:backdrop-blur-[2px]":""].join(" ")),b=e.computed(()=>["dk:flex dk:min-h-full dk:w-full dk:p-4",t.centered?"dk:items-center":"dk:items-start dk:pt-8","dk:justify-center"].join(" ")),v=e.computed(()=>{const y=l[t.variant].base,C=l[t.variant][t.color],S=f[t.rounded],T=a[t.size];return["dk:relative dk:flex dk:flex-col dk:overflow-hidden",y,C,S,T].join(" ")}),B=e.computed(()=>["dk:flex dk:items-start dk:justify-between dk:gap-3 dk:px-5 dk:pt-5 dk:pb-3","dk:border-b dk:border-current/10"].join(" ")),p=e.computed(()=>["dk:px-5 dk:py-4",t.scrollable?"dk:max-h-[65vh] dk:overflow-y-auto":""].join(" ")),n=e.computed(()=>["dk:px-5 dk:py-4 dk:border-t dk:border-current/10","dk:flex dk:items-center dk:justify-end dk:gap-2"].join(" "));function o(){if(typeof document>"u")return;const y=document.body,S=Number(y.dataset.duiModalCount||"0")+1;y.dataset.duiModalCount=String(S),S===1&&(y.style.overflow="hidden")}function i(){if(typeof document>"u")return;const y=document.body,C=Number(y.dataset.duiModalCount||"0"),S=Math.max(0,C-1);y.dataset.duiModalCount=String(S),S===0&&(y.style.overflow="")}function h(y){k("update:modelValue",!1),k("close",y)}function m(){k("backdrop"),!(t.persistent||!t.closeOnBackdrop)&&h("backdrop")}function g(y){y.key!=="Escape"||!t.modelValue||(k("escape"),!(t.persistent||!t.closeOnEsc)&&h("escape"))}return e.watch(()=>t.modelValue,(y,C)=>{y&&!C&&(o(),k("open")),!y&&C&&i()}),e.onMounted(()=>{t.modelValue&&o(),typeof window<"u"&&window.addEventListener("keydown",g)}),e.onBeforeUnmount(()=>{t.modelValue&&i(),typeof window<"u"&&window.removeEventListener("keydown",g)}),(y,C)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{"enter-active-class":"dk:transition-opacity dk:duration-200","leave-active-class":"dk:transition-opacity dk:duration-200","enter-from-class":"dk:opacity-0","leave-to-class":"dk:opacity-0"},{default:e.withCtx(()=>[t.modelValue?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({zIndex:String(t.zIndex)}),class:e.normalizeClass(u.value),onClick:m},[e.createElementVNode("div",{class:e.normalizeClass(b.value)},[e.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-labelledby":t.title?s:void 0,"aria-describedby":t.description?x:void 0,class:e.normalizeClass(v.value),onClick:C[1]||(C[1]=e.withModifiers(()=>{},["stop"]))},[y.$slots.header||t.title||t.description||t.showClose?(e.openBlock(),e.createElementBlock("header",{key:0,class:e.normalizeClass(B.value)},[e.createElementVNode("div",null,[e.renderSlot(y.$slots,"header",{},()=>[t.title?(e.openBlock(),e.createElementBlock("h2",{key:0,id:s,class:"dk:text-lg dk:font-semibold"},e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("p",{key:1,id:x,class:"dk:mt-1 dk:text-sm dk:opacity-80"},e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])]),t.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"dk:inline-flex dk:h-8 dk:w-8 dk:items-center dk:justify-center dk:rounded dk:text-current dk:opacity-70 dk:transition-opacity dk:hover:opacity-100 dk:focus-visible:opacity-100 dk:outline-none dk:ring-2 dk:ring-current/30","aria-label":"Cerrar modal",onClick:C[0]||(C[0]=S=>h("button"))},[...C[2]||(C[2]=[e.createElementVNode("span",{"aria-hidden":"true"},"×",-1)])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("section",{class:e.normalizeClass(p.value)},[e.renderSlot(y.$slots,"default")],2),y.$slots.footer?(e.openBlock(),e.createElementBlock("footer",{key:1,class:e.normalizeClass(n.value)},[e.renderSlot(y.$slots,"footer")],2)):e.createCommentVNode("",!0)],10,rt)],2)],6)):e.createCommentVNode("",!0)]),_:3})]))}}),at=["aria-describedby"],nt={class:"dk:inline-flex dk:items-center"},kt=e.defineComponent({__name:"DuiTooltip",props:{modelValue:{type:Boolean,default:void 0},text:{default:""},fallbackTriggerText:{default:"Tooltip"},trigger:{default:"hover"},placement:{default:"top"},variant:{default:"solid"},color:{default:"neutral"},size:{default:"md"},rounded:{default:"all"},disabled:{type:Boolean,default:!1},interactive:{type:Boolean,default:!0},arrow:{type:Boolean,default:!0},showDelay:{default:120},hideDelay:{default:90},offset:{default:10},zIndex:{default:60},flip:{type:Boolean,default:!0},viewportPadding:{default:8},maxWidth:{default:"md"},teleportTo:{default:"body"}},emits:["update:modelValue","open","close"],setup(d,{emit:r}){const t=d,k=r,c=e.ref(null),s=e.ref(null),x=e.ref(!1),f=e.computed(()=>t.modelValue!==void 0),a=e.computed(()=>f.value?!!t.modelValue:x.value),l=e.ref(t.placement),u=e.ref({top:0,left:0}),b=e.ref(!1);let v=null,B=null;const p=`dui-tooltip-${Math.random().toString(36).slice(2,10)}`,n={all:"dk:rounded-md",top:"dk:rounded-t-md",bottom:"dk:rounded-b-md",left:"dk:rounded-l-md",right:"dk:rounded-r-md",none:"dk:rounded-none"},o={sm:"dk:px-2 dk:py-1 dk:text-xs",md:"dk:px-2.5 dk:py-1.5 dk:text-sm",lg:"dk:px-3 dk:py-2 dk:text-base"},i={xs:"dk:max-w-40",sm:"dk:max-w-56",md:"dk:max-w-72",lg:"dk:max-w-96",full:"dk:max-w-[min(92vw,42rem)]"};function h(w){return typeof w=="string"&&w in i}const m={solid:{base:"dk:border dk:shadow-lg",neutral:"dk:bg-zinc-900 dk:text-zinc-100 dk:border-zinc-700 dk:dark:bg-zinc-200 dk:dark:text-zinc-900 dk:dark:border-zinc-300",primary:"dk:bg-slate-900 dk:text-slate-100 dk:border-slate-700 dk:dark:bg-slate-200 dk:dark:text-slate-900 dk:dark:border-slate-300",secondary:"dk:bg-pink-900 dk:text-pink-100 dk:border-pink-700 dk:dark:bg-pink-200 dk:dark:text-pink-900 dk:dark:border-pink-300",success:"dk:bg-emerald-900 dk:text-emerald-100 dk:border-emerald-700 dk:dark:bg-emerald-200 dk:dark:text-emerald-900 dk:dark:border-emerald-300",warning:"dk:bg-amber-900 dk:text-amber-100 dk:border-amber-700 dk:dark:bg-amber-200 dk:dark:text-amber-900 dk:dark:border-amber-300",danger:"dk:bg-rose-900 dk:text-rose-100 dk:border-rose-700 dk:dark:bg-rose-200 dk:dark:text-rose-900 dk:dark:border-rose-300"},outline:{base:"dk:border dk:shadow-md dk:bg-white/95 dk:dark:bg-zinc-900/95",neutral:"dk:text-zinc-900 dk:border-zinc-300 dk:dark:text-zinc-100 dk:dark:border-zinc-600",primary:"dk:text-slate-900 dk:border-slate-400 dk:dark:text-slate-100 dk:dark:border-slate-500",secondary:"dk:text-pink-900 dk:border-pink-400 dk:dark:text-pink-100 dk:dark:border-pink-500",success:"dk:text-emerald-900 dk:border-emerald-400 dk:dark:text-emerald-100 dk:dark:border-emerald-500",warning:"dk:text-amber-900 dk:border-amber-400 dk:dark:text-amber-100 dk:dark:border-amber-500",danger:"dk:text-rose-900 dk:border-rose-400 dk:dark:text-rose-100 dk:dark:border-rose-500"}},g=e.computed(()=>{const w=n[t.rounded],z=o[t.size],V=m[t.variant].base,$=m[t.variant][t.color],E=h(t.maxWidth)?i[t.maxWidth]:"";return["dk:fixed dk:pointer-events-auto dk:leading-tight dk:select-text dk:cursor-default","dk:break-words dk:whitespace-normal",w,z,V,$,E].join(" ")}),y=e.computed(()=>{const w={top:`${u.value.top}px`,left:`${u.value.left}px`,zIndex:String(t.zIndex)};return typeof t.maxWidth=="number"?w.maxWidth=`${t.maxWidth}px`:typeof t.maxWidth=="string"&&!h(t.maxWidth)&&(w.maxWidth=t.maxWidth),w}),C=e.computed(()=>{const w=m[t.variant][t.color],z=l.value,V={top:"dk:-bottom-1.5 dk:left-1/2 dk:-translate-x-1/2 dk:rotate-45","top-start":"dk:-bottom-1.5 dk:left-3 dk:rotate-45","top-end":"dk:-bottom-1.5 dk:right-3 dk:rotate-45",bottom:"dk:-top-1.5 dk:left-1/2 dk:-translate-x-1/2 dk:rotate-45","bottom-start":"dk:-top-1.5 dk:left-3 dk:rotate-45","bottom-end":"dk:-top-1.5 dk:right-3 dk:rotate-45",left:"dk:-right-1.5 dk:top-1/2 dk:-translate-y-1/2 dk:rotate-45","left-start":"dk:-right-1.5 dk:top-3 dk:rotate-45","left-end":"dk:-right-1.5 dk:bottom-3 dk:rotate-45",right:"dk:-left-1.5 dk:top-1/2 dk:-translate-y-1/2 dk:rotate-45","right-start":"dk:-left-1.5 dk:top-3 dk:rotate-45","right-end":"dk:-left-1.5 dk:bottom-3 dk:rotate-45"};return["dk:absolute dk:block dk:h-3 dk:w-3",w,V[z]||V.top].join(" ")});function S(){v&&(clearTimeout(v),v=null),B&&(clearTimeout(B),B=null)}function T(w,z){t.disabled||(f.value?k("update:modelValue",w):x.value=w,w?(k("open",z),e.nextTick(()=>{M()})):k("close",z))}function P(w){S(),v=setTimeout(()=>{T(!0,w)},Math.max(0,t.showDelay))}function L(w){S(),B=setTimeout(()=>{w==="hover"&&t.interactive&&b.value||T(!1,w)},Math.max(0,t.hideDelay))}function q(w){return{top:"bottom","top-start":"bottom-start","top-end":"bottom-end",bottom:"top","bottom-start":"top-start","bottom-end":"top-end",left:"right","left-start":"right-start","left-end":"right-end",right:"left","right-start":"left-start","right-end":"left-end"}[w]}function _(w,z,V){const[$,E]=w.split("-"),j=t.offset;let N=0,D=0;$==="top"&&(N=z.top-V.height-j,E==="start"?D=z.left:E==="end"?D=z.right-V.width:D=z.left+z.width/2-V.width/2),$==="bottom"&&(N=z.bottom+j,E==="start"?D=z.left:E==="end"?D=z.right-V.width:D=z.left+z.width/2-V.width/2),$==="left"&&(D=z.left-V.width-j,E==="start"?N=z.top:E==="end"?N=z.bottom-V.height:N=z.top+z.height/2-V.height/2),$==="right"&&(D=z.right+j,E==="start"?N=z.top:E==="end"?N=z.bottom-V.height:N=z.top+z.height/2-V.height/2);const O=t.viewportPadding,de=window.innerWidth,re=window.innerHeight;return N=Math.min(Math.max(O,N),re-V.height-O),D=Math.min(Math.max(O,D),de-V.width-O),{top:N,left:D}}function G(w,z,V){if(!t.flip)return!1;const[$]=w.split("-"),E=t.offset,j=t.viewportPadding;return $==="top"?z.top-V.height-E<j:$==="bottom"?z.bottom+V.height+E>window.innerHeight-j:$==="left"?z.left-V.width-E<j:z.right+V.width+E>window.innerWidth-j}function M(){if(!c.value||!s.value)return;const w=c.value.getBoundingClientRect(),z=s.value.getBoundingClientRect();let V=t.placement;G(V,w,z)&&(V=q(V)),l.value=V,u.value=_(V,w,z)}function J(){t.trigger==="hover"&&P("hover")}function X(w){var z;if(t.trigger==="hover"){if(t.interactive){const V=w.relatedTarget;if(V&&((z=s.value)!=null&&z.contains(V)))return}L("hover")}}function Y(){t.trigger!=="focus"&&t.trigger!=="hover"||P("focus")}function Z(){t.trigger!=="focus"&&t.trigger!=="hover"||L("focus")}function R(w){t.trigger==="click"&&(w.stopPropagation(),a.value?L("click"):P("click"))}function ee(){t.interactive&&(b.value=!0,S())}function te(w){var V;if(!t.interactive)return;const z=w.relatedTarget;z&&((V=c.value)!=null&&V.contains(z))||(b.value=!1,L("hover"))}function H(w){var V,$;if(t.trigger!=="click"||!a.value)return;const z=w.target;(V=c.value)!=null&&V.contains(z)||($=s.value)!=null&&$.contains(z)||L("outside")}return e.watch(()=>t.modelValue,w=>{f.value&&w&&e.nextTick(M)}),e.watch(()=>t.placement,()=>{a.value&&e.nextTick(M)}),e.watch(a,w=>{w&&e.nextTick(M)}),e.onMounted(()=>{typeof window>"u"||(window.addEventListener("resize",M),window.addEventListener("scroll",M,!0),window.addEventListener("click",H))}),e.onBeforeUnmount(()=>{S(),!(typeof window>"u")&&(window.removeEventListener("resize",M),window.removeEventListener("scroll",M,!0),window.removeEventListener("click",H))}),(w,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("span",{ref_key:"triggerRef",ref:c,class:"dk:relative dk:inline-flex dk:max-w-full","aria-describedby":a.value?p:void 0,onMouseenter:J,onMouseleave:X,onFocusin:Y,onFocusout:Z,onClick:R},[e.renderSlot(w.$slots,"trigger",{},()=>[e.renderSlot(w.$slots,"default",{},()=>[e.createElementVNode("span",nt,e.toDisplayString(t.fallbackTriggerText),1)])])],40,at),(e.openBlock(),e.createBlock(e.Teleport,{to:t.teleportTo},[e.createVNode(e.Transition,{"enter-active-class":"dk:transition-opacity dk:duration-150","leave-active-class":"dk:transition-opacity dk:duration-100","enter-from-class":"dk:opacity-0","leave-to-class":"dk:opacity-0"},{default:e.withCtx(()=>[a.value&&!t.disabled?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"tooltipRef",ref:s,id:p,role:"tooltip",class:e.normalizeClass(g.value),style:e.normalizeStyle(y.value),onMouseenter:ee,onMouseleave:te},[e.renderSlot(w.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),t.arrow?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-hidden":"true",class:e.normalizeClass(C.value)},null,2)):e.createCommentVNode("",!0)],38)):e.createCommentVNode("",!0)]),_:3})],8,["to"]))],64))}}),lt=["open"],st=["onClick"],it={class:"dui-acc-title"},ct={class:"dui-acc-panel"},ut=e.defineComponent({__name:"DuiAccordion",props:{items:{},modelValue:{default:void 0},multiple:{type:Boolean,default:!1},variant:{default:"bordered"},color:{default:"neutral"},size:{default:"md"},flush:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,c=e.ref([]);function s(){return t.modelValue===void 0?c.value:Array.isArray(t.modelValue)?t.modelValue:t.modelValue?[t.modelValue]:[]}function x(h){return s().includes(h)}function f(h,m){if(m)return;const g=s();let y;t.multiple?y=g.includes(h)?g.filter(C=>C!==h):[...g,h]:y=g.includes(h)?[]:[h],c.value=y,k("update:modelValue",t.multiple?y:y[0]??""),k("change",h)}const a={sm:{summary:"dk:px-3 dk:py-2.5 dk:text-sm dk:gap-2",content:"dk:px-3 dk:pt-0 dk:pb-3 dk:text-sm",icon:"dk:text-base",chevron:"dk:w-3.5 dk:h-3.5"},md:{summary:"dk:px-4 dk:py-3.5 dk:text-sm dk:gap-2.5",content:"dk:px-4 dk:pt-0 dk:pb-4 dk:text-sm",icon:"dk:text-lg",chevron:"dk:w-4 dk:h-4"},lg:{summary:"dk:px-5 dk:py-4 dk:text-base dk:gap-3",content:"dk:px-5 dk:pt-0 dk:pb-5 dk:text-base",icon:"dk:text-xl",chevron:"dk:w-5 dk:h-5"}},l={neutral:"dk:bg-zinc-50 dk:dark:bg-zinc-800/60",primary:"dk:bg-slate-50 dk:dark:bg-slate-800/60",secondary:"dk:bg-pink-50 dk:dark:bg-pink-900/30",success:"dk:bg-emerald-50 dk:dark:bg-emerald-900/30",warning:"dk:bg-amber-50 dk:dark:bg-amber-900/30",danger:"dk:bg-rose-50 dk:dark:bg-rose-900/30"},u={neutral:"dk:text-zinc-900 dk:dark:text-zinc-50",primary:"dk:text-slate-800 dk:dark:text-slate-100",secondary:"dk:text-pink-800 dk:dark:text-pink-100",success:"dk:text-emerald-800 dk:dark:text-emerald-100",warning:"dk:text-amber-800 dk:dark:text-amber-100",danger:"dk:text-rose-800 dk:dark:text-rose-100"},b={neutral:"dk:text-zinc-500 dk:dark:text-zinc-400",primary:"dk:text-slate-500 dk:dark:text-slate-400",secondary:"dk:text-pink-500 dk:dark:text-pink-400",success:"dk:text-emerald-500 dk:dark:text-emerald-400",warning:"dk:text-amber-500 dk:dark:text-amber-400",danger:"dk:text-rose-500 dk:dark:text-rose-400"},v=e.computed(()=>t.variant==="separated"?"dk:flex dk:flex-col dk:gap-2":t.variant==="ghost"?"dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700/60":t.flush?"dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700":"dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:rounded-xl dk:divide-y dk:divide-zinc-200 dk:dark:divide-zinc-700 dk:overflow-hidden dk:shadow-sm"),B=e.computed(()=>t.variant==="separated"?"dk:rounded-xl dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:overflow-hidden dk:shadow-sm dk:bg-white dk:dark:bg-zinc-900":t.variant==="ghost"?"":"dk:bg-white dk:dark:bg-zinc-900");function p(h,m){const g=a[t.size],y=x(h),C=["dk:flex dk:w-full dk:items-center dk:select-none dk:outline-none","dk:transition-colors dk:duration-150",g.summary],S=y?[l[t.color],u[t.color]]:["dk:text-zinc-700 dk:dark:text-zinc-300","dk:hover:bg-zinc-50 dk:dark:hover:bg-zinc-800/50 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"],T="dk:focus-visible:ring-2 dk:focus-visible:ring-inset dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500",P=m?"dk:opacity-40 dk:cursor-not-allowed dk:pointer-events-none":"dk:cursor-pointer";return[...C,...S,T,P].join(" ")}function n(h){const m=a[t.size];return["dk:flex-shrink-0 dk:transition-transform dk:duration-250 dk:ease-in-out dk:ml-auto",x(h)?"dk:rotate-180 "+b[t.color]:"dk:text-zinc-400 dk:dark:text-zinc-500",m.chevron].join(" ")}const o=e.computed(()=>["dk:flex-shrink-0 dk:leading-none",a[t.size].icon].join(" ")),i=e.computed(()=>[a[t.size].content,"dk:text-zinc-600 dk:dark:text-zinc-400 dk:leading-relaxed"].join(" "));return(h,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(v.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.items,(g,y)=>(e.openBlock(),e.createElementBlock("details",{key:g.value??y,open:x(g.value??String(y)),class:e.normalizeClass(B.value),onToggle:m[0]||(m[0]=e.withModifiers(()=>{},["prevent"]))},[e.createElementVNode("summary",{class:e.normalizeClass(p(g.value??String(y),g.disabled)),onClick:e.withModifiers(C=>f(g.value??String(y),g.disabled),["prevent"])},[g.icon?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-hidden":"true",class:e.normalizeClass(o.value)},e.toDisplayString(g.icon),3)):e.createCommentVNode("",!0),e.createElementVNode("span",it,e.toDisplayString(g.title),1),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(n(g.value??String(y))),viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[...m[1]||(m[1]=[e.createElementVNode("polyline",{points:"4 6 8 10 12 6"},null,-1)])],2))],10,st),e.createElementVNode("div",ct,[e.createElementVNode("div",{class:e.normalizeClass(i.value)},[e.renderSlot(h.$slots,g.value??String(y),{},()=>[e.createElementVNode("p",null,e.toDisplayString(g.content),1)],!0)],2)])],42,lt))),128))],2))}}),mt=F(ut,[["__scopeId","data-v-9bd77ff3"]]),bt=["aria-label"],pt=e.defineComponent({inheritAttrs:!1,__name:"DuiBadge",props:{label:{default:void 0},color:{default:"neutral"},variant:{default:"soft"},size:{default:"sm"},rounded:{default:"full"},dot:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!1},href:{default:void 0}},emits:["dismiss"],setup(d,{emit:r}){const t=d,k=r,c={xs:"dk:text-[10px] dk:leading-none dk:px-1.5 dk:py-0.5 dk:gap-1",sm:"dk:text-xs dk:leading-none dk:px-2 dk:py-1 dk:gap-1",md:"dk:text-sm dk:px-2.5 dk:py-1 dk:gap-1.5",lg:"dk:text-base dk:px-3 dk:py-1.5 dk:gap-2"},s={full:"dk:rounded-full",md:"dk:rounded-md",none:"dk:rounded-none"},x={soft:{neutral:"dk:bg-zinc-100 dk:text-zinc-700 dk:dark:bg-zinc-800 dk:dark:text-zinc-300",primary:"dk:bg-slate-100 dk:text-slate-700 dk:dark:bg-slate-800 dk:dark:text-slate-300",secondary:"dk:bg-pink-100 dk:text-pink-700 dk:dark:bg-pink-900/50 dk:dark:text-pink-300",success:"dk:bg-emerald-100 dk:text-emerald-700 dk:dark:bg-emerald-900/50 dk:dark:text-emerald-300",warning:"dk:bg-amber-100 dk:text-amber-700 dk:dark:bg-amber-900/50 dk:dark:text-amber-300",danger:"dk:bg-rose-100 dk:text-rose-700 dk:dark:bg-rose-900/50 dk:dark:text-rose-300"},solid:{neutral:"dk:bg-zinc-600 dk:text-white dk:dark:bg-zinc-500",primary:"dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500",secondary:"dk:bg-pink-600 dk:text-white dk:dark:bg-pink-500",success:"dk:bg-emerald-600 dk:text-white dk:dark:bg-emerald-500",warning:"dk:bg-amber-500 dk:text-white dk:dark:bg-amber-400",danger:"dk:bg-rose-600 dk:text-white dk:dark:bg-rose-500"},outline:{neutral:"dk:border dk:border-zinc-400 dk:text-zinc-700 dk:dark:border-zinc-500 dk:dark:text-zinc-300",primary:"dk:border dk:border-slate-400 dk:text-slate-700 dk:dark:border-slate-500 dk:dark:text-slate-300",secondary:"dk:border dk:border-pink-400 dk:text-pink-700 dk:dark:border-pink-500 dk:dark:text-pink-300",success:"dk:border dk:border-emerald-400 dk:text-emerald-700 dk:dark:border-emerald-500 dk:dark:text-emerald-300",warning:"dk:border dk:border-amber-400 dk:text-amber-700 dk:dark:border-amber-500 dk:dark:text-amber-300",danger:"dk:border dk:border-rose-400 dk:text-rose-700 dk:dark:border-rose-500 dk:dark:text-rose-300"}},f={neutral:"dk:bg-zinc-500 dk:dark:bg-zinc-400",primary:"dk:bg-slate-500 dk:dark:bg-slate-400",secondary:"dk:bg-pink-500 dk:dark:bg-pink-400",success:"dk:bg-emerald-500 dk:dark:bg-emerald-400",warning:"dk:bg-amber-500 dk:dark:bg-amber-400",danger:"dk:bg-rose-500 dk:dark:bg-rose-400"},a=e.computed(()=>{const v="dk:inline-flex dk:items-center dk:font-medium dk:whitespace-nowrap dk:select-none",B=c[t.size],p=s[t.rounded],n=x[t.variant][t.color],o=t.href?"dk:cursor-pointer dk:hover:opacity-80 dk:transition-opacity":"";return[v,B,p,n,o].join(" ")}),l=e.computed(()=>["dk:rounded-full dk:flex-shrink-0",{xs:"dk:w-1.5 dk:h-1.5",sm:"dk:w-2 dk:h-2",md:"dk:w-2 dk:h-2",lg:"dk:w-2.5 dk:h-2.5"}[t.size],f[t.color]].join(" ")),u=e.computed(()=>"dk:flex-shrink-0 dk:flex dk:items-center"),b=e.computed(()=>["dk:-mr-0.5 dk:flex-shrink-0 dk:inline-flex dk:items-center dk:justify-center","dk:rounded-full dk:w-3.5 dk:h-3.5 dk:text-sm dk:leading-none","dk:opacity-60 dk:hover:opacity-100 dk:transition-opacity dk:outline-none","dk:hover:bg-black/10 dk:dark:hover:bg-white/10"].join(" "));return(v,B)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.href?"a":"span"),e.mergeProps({href:d.href,class:a.value},v.$attrs),{default:e.withCtx(()=>[v.$slots.icon||d.dot?(e.openBlock(),e.createElementBlock("span",{key:0,"aria-hidden":"true",class:e.normalizeClass(u.value)},[d.dot?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(l.value)},null,2)):e.renderSlot(v.$slots,"icon",{key:1})],2)):e.createCommentVNode("",!0),e.renderSlot(v.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),d.dismissible?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:e.normalizeClass(b.value),"aria-label":d.label?`Quitar ${d.label}`:"Quitar",onClick:B[0]||(B[0]=e.withModifiers(p=>k("dismiss"),["prevent"]))}," × ",10,bt)):e.createCommentVNode("",!0)]),_:3},16,["href","class"]))}}),gt=["onKeydown"],ft=["aria-label"],ht=e.defineComponent({__name:"DuiDropdown",props:{modelValue:{type:Boolean,default:void 0},placement:{default:"bottom-start"},variant:{default:"solid"},color:{default:"neutral"},size:{default:"md"},rounded:{default:"all"},minWidth:{default:"10rem"},ariaLabel:{default:"Menu"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","open","close"],setup(d,{emit:r}){const t=d,k=r,c=e.ref(null),s=e.ref(!1),x=e.computed(()=>t.modelValue!==void 0?t.modelValue:s.value);function f(){if(t.disabled)return;const n=!x.value;s.value=n,k("update:modelValue",n),k(n?"open":"close")}function a(){s.value=!1,k("update:modelValue",!1),k("close")}function l(n){c.value&&!c.value.contains(n.target)&&a()}e.onMounted(()=>document.addEventListener("mousedown",l)),e.onBeforeUnmount(()=>document.removeEventListener("mousedown",l));const u={"bottom-start":"dk:top-full dk:left-0 dk:mt-1 dk:origin-top-left","bottom-end":"dk:top-full dk:right-0 dk:mt-1 dk:origin-top-right",bottom:"dk:top-full dk:left-1/2 dk:-translate-x-1/2 dk:mt-1 dk:origin-top","top-start":"dk:bottom-full dk:left-0 dk:mb-1 dk:origin-bottom-left","top-end":"dk:bottom-full dk:right-0 dk:mb-1 dk:origin-bottom-right",top:"dk:bottom-full dk:left-1/2 dk:-translate-x-1/2 dk:mb-1 dk:origin-bottom"},b={all:"dk:rounded-xl",sm:"dk:rounded-lg",none:"dk:rounded-none"},v={solid:{neutral:"dk:bg-white dk:dark:bg-zinc-900 dk:border dk:border-zinc-200 dk:dark:border-zinc-700 dk:text-zinc-800 dk:dark:text-zinc-200",primary:"dk:bg-slate-50 dk:dark:bg-slate-900 dk:border dk:border-slate-200 dk:dark:border-slate-700 dk:text-slate-800 dk:dark:text-slate-200",secondary:"dk:bg-pink-50 dk:dark:bg-pink-900 dk:border dk:border-pink-200 dk:dark:border-pink-700 dk:text-pink-800 dk:dark:text-pink-200",success:"dk:bg-emerald-50 dk:dark:bg-emerald-900 dk:border dk:border-emerald-200 dk:dark:border-emerald-700 dk:text-emerald-800 dk:dark:text-emerald-200",warning:"dk:bg-amber-50 dk:dark:bg-amber-900 dk:border dk:border-amber-200 dk:dark:border-amber-700 dk:text-amber-800 dk:dark:text-amber-200",danger:"dk:bg-rose-50 dk:dark:bg-rose-900 dk:border dk:border-rose-200 dk:dark:border-rose-700 dk:text-rose-800 dk:dark:text-rose-200"},outline:{neutral:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-zinc-300 dk:dark:border-zinc-600 dk:text-zinc-800 dk:dark:text-zinc-200",primary:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-slate-400 dk:dark:border-slate-500 dk:text-slate-800 dk:dark:text-slate-200",secondary:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-pink-400 dk:dark:border-pink-500 dk:text-pink-800 dk:dark:text-pink-200",success:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-emerald-400 dk:dark:border-emerald-500 dk:text-emerald-800 dk:dark:text-emerald-200",warning:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-amber-400 dk:dark:border-amber-500 dk:text-amber-800 dk:dark:text-amber-200",danger:"dk:bg-white/95 dk:dark:bg-zinc-900/95 dk:border-2 dk:border-rose-400 dk:dark:border-rose-500 dk:text-rose-800 dk:dark:text-rose-200"},ghost:{neutral:"dk:bg-white/85 dk:dark:bg-zinc-900/75 dk:backdrop-blur-md dk:border dk:border-zinc-300/70 dk:dark:border-zinc-600/60 dk:text-zinc-800 dk:dark:text-zinc-200",primary:"dk:bg-slate-100/85 dk:dark:bg-slate-900/70 dk:backdrop-blur-md dk:border dk:border-slate-300/70 dk:dark:border-slate-600/60 dk:text-slate-800 dk:dark:text-slate-200",secondary:"dk:bg-pink-100/85 dk:dark:bg-pink-900/70 dk:backdrop-blur-md dk:border dk:border-pink-300/70 dk:dark:border-pink-600/60 dk:text-pink-800 dk:dark:text-pink-200",success:"dk:bg-emerald-100/85 dk:dark:bg-emerald-900/70 dk:backdrop-blur-md dk:border dk:border-emerald-300/70 dk:dark:border-emerald-600/60 dk:text-emerald-800 dk:dark:text-emerald-200",warning:"dk:bg-amber-100/85 dk:dark:bg-amber-900/70 dk:backdrop-blur-md dk:border dk:border-amber-300/70 dk:dark:border-amber-600/60 dk:text-amber-800 dk:dark:text-amber-200",danger:"dk:bg-rose-100/85 dk:dark:bg-rose-900/70 dk:backdrop-blur-md dk:border dk:border-rose-300/70 dk:dark:border-rose-600/60 dk:text-rose-800 dk:dark:text-rose-200"}},B=e.computed(()=>({minWidth:t.minWidth})),p=e.computed(()=>["dk:absolute dk:z-50 dk:shadow-lg dk:py-1",u[t.placement],b[t.rounded],v[t.variant][t.color]].join(" "));return(n,o)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:c,class:"dk:relative dk:inline-block"},[e.createElementVNode("div",{onClick:f,onKeydown:[e.withKeys(e.withModifiers(f,["prevent"]),["enter"]),e.withKeys(e.withModifiers(f,["prevent"]),["space"])]},[e.renderSlot(n.$slots,"trigger")],40,gt),e.createVNode(e.Transition,{"enter-active-class":"dk:transition-all dk:duration-150 dk:ease-out","leave-active-class":"dk:transition-all dk:duration-100 dk:ease-in","enter-from-class":"dk:opacity-0 dk:scale-95","leave-to-class":"dk:opacity-0 dk:scale-95"},{default:e.withCtx(()=>[x.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(p.value),style:e.normalizeStyle(B.value),role:"menu","aria-label":d.ariaLabel},[e.renderSlot(n.$slots,"default")],14,ft)):e.createCommentVNode("",!0)]),_:3})],512))}}),xt={class:"dk:flex-1 dk:truncate"},vt={key:1,class:"dk:ml-auto dk:opacity-60 dk:text-xs"},yt=e.defineComponent({__name:"DuiDropdownItem",props:{label:{default:void 0},icon:{default:void 0},href:{default:void 0},target:{default:void 0},disabled:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},size:{default:"md"}},emits:["click"],setup(d,{emit:r}){const t=d,k=r,c=e.computed(()=>t.href?{href:t.href,target:t.target}:{type:"button",disabled:t.disabled}),s={sm:"dk:px-3 dk:py-1 dk:text-xs",md:"dk:px-3 dk:py-2 dk:text-sm",lg:"dk:px-4 dk:py-2.5 dk:text-base"},x=e.computed(()=>{const l="dk:flex dk:w-full dk:items-center dk:gap-2 dk:transition-colors dk:duration-100 dk:outline-none dk:text-left dk:select-none",u=s[t.size],b=t.danger?"dk:text-rose-600 dk:dark:text-rose-400 dk:hover:bg-rose-50 dk:dark:hover:bg-rose-900/40 dk:focus-visible:bg-rose-50 dk:dark:focus-visible:bg-rose-900/40":"dk:hover:bg-black/5 dk:dark:hover:bg-white/10 dk:focus-visible:bg-black/5 dk:dark:focus-visible:bg-white/10",v=t.disabled?"dk:opacity-50 dk:cursor-not-allowed dk:pointer-events-none":"dk:cursor-pointer";return[l,u,b,v].join(" ")}),f=e.computed(()=>"dk:flex-shrink-0 dk:w-4 dk:h-4 dk:flex dk:items-center dk:justify-center dk:opacity-70");function a(l){t.disabled||k("click",l)}return(l,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.href?"a":"button"),e.mergeProps(c.value,{class:x.value,role:"menuitem","aria-disabled":d.disabled,onClick:a}),{default:e.withCtx(()=>[l.$slots.icon||d.icon?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(f.value),"aria-hidden":"true"},[e.renderSlot(l.$slots,"icon",{},()=>[e.createTextVNode(e.toDisplayString(d.icon),1)])],2)):e.createCommentVNode("",!0),e.createElementVNode("span",xt,[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(d.label),1)])]),l.$slots.trailing?(e.openBlock(),e.createElementBlock("span",vt,[e.renderSlot(l.$slots,"trailing")])):e.createCommentVNode("",!0)]),_:3},16,["class","aria-disabled"]))}}),zt={},wt={class:"dk:my-1 dk:border-current/10",role:"separator","aria-orientation":"horizontal"};function Ct(d,r){return e.openBlock(),e.createElementBlock("hr",wt)}const Bt=F(zt,[["render",Ct]]),Vt=["aria-label"],St=["disabled","aria-label"],Et={key:0,class:"dk:hidden dk:sm:inline"},$t=["aria-label","aria-current","onClick"],Nt=["disabled","aria-label"],Dt={key:0,class:"dk:hidden dk:sm:inline"},jt=e.defineComponent({__name:"DuiPagination",props:{modelValue:{},total:{},perPage:{default:10},siblingCount:{default:1},showBoundary:{type:Boolean,default:!0},color:{default:"primary"},variant:{default:"solid"},size:{default:"md"},rounded:{default:"md"},showLabels:{type:Boolean,default:!1},prevLabel:{default:"Anterior"},nextLabel:{default:"Siguiente"},ariaLabel:{default:"Paginacion"}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,c=e.computed(()=>Math.max(1,Math.ceil(t.total/t.perPage)));function s(n){n<1||n>c.value||n===t.modelValue||(k("update:modelValue",n),k("change",n))}const x=e.computed(()=>{const n=c.value,o=t.modelValue,i=t.siblingCount,h=t.showBoundary?1:0;if(n<=2*i+2*h+3)return Array.from({length:n},(C,S)=>S+1);const m=[];for(let C=1;C<=h;C++)m.push(C);const g=Math.max(h+1,o-i),y=Math.min(n-h,o+i);g>h+1&&m.push("...");for(let C=g;C<=y;C++)m.push(C);y<n-h&&m.push("...");for(let C=n-h+1;C<=n;C++)m.push(C);return m}),f={sm:"dk:w-7 dk:h-7 dk:text-xs",md:"dk:w-9 dk:h-9 dk:text-sm",lg:"dk:w-11 dk:h-11 dk:text-base"},a={full:"dk:rounded-full",md:"dk:rounded-lg",none:"dk:rounded-none"},l={solid:{neutral:"dk:bg-zinc-700 dk:text-white dk:dark:bg-zinc-500",primary:"dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500",secondary:"dk:bg-pink-600 dk:text-white dk:dark:bg-pink-500",success:"dk:bg-emerald-600 dk:text-white dk:dark:bg-emerald-500",warning:"dk:bg-amber-500 dk:text-white dk:dark:bg-amber-400",danger:"dk:bg-rose-600 dk:text-white dk:dark:bg-rose-500"},outline:{neutral:"dk:border-2 dk:border-zinc-600 dk:text-zinc-700 dk:dark:border-zinc-400 dk:dark:text-zinc-200",primary:"dk:border-2 dk:border-slate-600 dk:text-slate-700 dk:dark:border-slate-400 dk:dark:text-slate-200",secondary:"dk:border-2 dk:border-pink-600 dk:text-pink-700 dk:dark:border-pink-400 dk:dark:text-pink-200",success:"dk:border-2 dk:border-emerald-600 dk:text-emerald-700 dk:dark:border-emerald-400 dk:dark:text-emerald-200",warning:"dk:border-2 dk:border-amber-500 dk:text-amber-700 dk:dark:border-amber-400 dk:dark:text-amber-200",danger:"dk:border-2 dk:border-rose-600 dk:text-rose-700 dk:dark:border-rose-400 dk:dark:text-rose-200"},ghost:{neutral:"dk:bg-zinc-100 dk:text-zinc-800 dk:dark:bg-zinc-700 dk:dark:text-zinc-100",primary:"dk:bg-slate-100 dk:text-slate-800 dk:dark:bg-slate-700 dk:dark:text-slate-100",secondary:"dk:bg-pink-100 dk:text-pink-800 dk:dark:bg-pink-800 dk:dark:text-pink-100",success:"dk:bg-emerald-100 dk:text-emerald-800 dk:dark:bg-emerald-800 dk:dark:text-emerald-100",warning:"dk:bg-amber-100 dk:text-amber-800 dk:dark:bg-amber-700 dk:dark:text-amber-100",danger:"dk:bg-rose-100 dk:text-rose-800 dk:dark:bg-rose-800 dk:dark:text-rose-100"}},u=e.computed(()=>"dk:flex dk:items-center dk:gap-1 dk:flex-wrap"),b=e.computed(()=>{const n=f[t.size],o=a[t.rounded];return["dk:inline-flex dk:items-center dk:justify-center dk:font-medium dk:transition-colors dk:duration-150 dk:outline-none dk:select-none dk:cursor-pointer dk:disabled:cursor-not-allowed dk:disabled:pointer-events-none",n,o,"dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400"].join(" ")}),v=e.computed(()=>[b.value,"dk:text-zinc-600 dk:dark:text-zinc-400","dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700","dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"].join(" "));function B(n){return n===t.modelValue?[b.value,l[t.variant][t.color]].join(" "):[b.value,"dk:text-zinc-600 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-900 dk:dark:hover:text-zinc-100"].join(" ")}const p=e.computed(()=>["dk:inline-flex dk:items-center dk:justify-center dk:text-zinc-400 dk:select-none",f[t.size]].join(" "));return(n,o)=>(e.openBlock(),e.createElementBlock("nav",{"aria-label":d.ariaLabel,class:e.normalizeClass(u.value)},[e.createElementVNode("button",{type:"button",disabled:d.modelValue<=1,"aria-label":d.prevLabel,class:e.normalizeClass([v.value,d.modelValue<=1?"dk:opacity-40 dk:cursor-not-allowed":""]),onClick:o[0]||(o[0]=i=>s(d.modelValue-1))},[o[2]||(o[2]=e.createElementVNode("svg",{class:"dk:w-4 dk:h-4",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("polyline",{points:"10 4 6 8 10 12"})],-1)),d.showLabels?(e.openBlock(),e.createElementBlock("span",Et,e.toDisplayString(d.prevLabel),1)):e.createCommentVNode("",!0)],10,St),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,i=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:i},[i==="..."?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(p.value),"aria-hidden":"true"},"…",2)):(e.openBlock(),e.createElementBlock("button",{key:1,type:"button","aria-label":`Pagina ${i}`,"aria-current":d.modelValue===i?"page":void 0,class:e.normalizeClass(B(i)),onClick:h=>s(i)},e.toDisplayString(i),11,$t))],64))),128)),e.createElementVNode("button",{type:"button",disabled:d.modelValue>=c.value,"aria-label":d.nextLabel,class:e.normalizeClass([v.value,d.modelValue>=c.value?"dk:opacity-40 dk:cursor-not-allowed":""]),onClick:o[1]||(o[1]=i=>s(d.modelValue+1))},[d.showLabels?(e.openBlock(),e.createElementBlock("span",Dt,e.toDisplayString(d.nextLabel),1)):e.createCommentVNode("",!0),o[3]||(o[3]=e.createElementVNode("svg",{class:"dk:w-4 dk:h-4",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[e.createElementVNode("polyline",{points:"6 4 10 8 6 12"})],-1))],10,Nt)],10,Vt))}}),Tt=e.defineComponent({__name:"DuiSkeleton",props:{variant:{default:"text"},width:{default:void 0},height:{default:void 0},animation:{default:"pulse"}},setup(d){const r=d;function t(f){if(f!==void 0)return typeof f=="number"?`${f}px`:f}const k=e.computed(()=>({width:t(r.width),height:t(r.height)})),c={pulse:"dui-skeleton-pulse",wave:"dui-skeleton-wave",none:""},s={text:"dk:block dk:h-4 dk:w-full dk:rounded",circular:"dk:block dk:w-10 dk:h-10 dk:rounded-full",rectangular:"dk:block dk:w-full dk:h-20 dk:rounded-none",rounded:"dk:block dk:w-full dk:h-20 dk:rounded-xl"},x=e.computed(()=>["dk:bg-zinc-200 dk:dark:bg-zinc-700",s[r.variant],c[r.animation]].join(" "));return(f,a)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(x.value),style:e.normalizeStyle(k.value),"aria-hidden":"true",role:"presentation"},null,6))}}),Mt=F(Tt,[["__scopeId","data-v-8c9c6005"]]),Pt=["aria-label"],Lt=["id","aria-controls","aria-selected","disabled","onClick","onKeydown"],_t={key:0,"aria-hidden":"true",class:"dk:flex-shrink-0"},At=["id","aria-labelledby","tabindex","hidden"],It=e.defineComponent({__name:"DuiTabs",props:{modelValue:{},tabs:{},variant:{default:"underline"},color:{default:"primary"},size:{default:"md"},fullWidth:{type:Boolean,default:!1},ariaLabel:{default:"Tabs"}},emits:["update:modelValue","change"],setup(d,{emit:r}){const t=d,k=r,c=Math.random().toString(36).slice(2,8);function s(p,n){n||(k("update:modelValue",p),k("change",p))}function x(p,n){const o=t.tabs.filter(h=>!h.disabled).map(h=>h.value),i=o.indexOf(n);if(p.key==="ArrowRight"||p.key==="ArrowDown"){p.preventDefault();const h=o[(i+1)%o.length];s(h)}if(p.key==="ArrowLeft"||p.key==="ArrowUp"){p.preventDefault();const h=o[(i-1+o.length)%o.length];s(h)}p.key==="Home"&&(p.preventDefault(),s(o[0])),p.key==="End"&&(p.preventDefault(),s(o[o.length-1]))}const f={sm:"dk:text-xs dk:px-3 dk:py-1.5",md:"dk:text-sm dk:px-4 dk:py-2",lg:"dk:text-base dk:px-5 dk:py-2.5"},a={neutral:{underline:"dk:border-zinc-600 dk:text-zinc-700 dk:dark:border-zinc-400 dk:dark:text-zinc-200",pills:"dk:bg-zinc-600 dk:text-white dk:dark:bg-zinc-500",boxed:"dk:bg-white dk:text-zinc-700 dk:dark:bg-zinc-800 dk:dark:text-zinc-200 dk:shadow-sm"},primary:{underline:"dk:border-slate-600 dk:text-slate-700 dk:dark:border-slate-400 dk:dark:text-slate-200",pills:"dk:bg-slate-600 dk:text-white dk:dark:bg-slate-500",boxed:"dk:bg-white dk:text-slate-700 dk:dark:bg-zinc-800 dk:dark:text-slate-200 dk:shadow-sm"},secondary:{underline:"dk:border-pink-600 dk:text-pink-700 dk:dark:border-pink-400 dk:dark:text-pink-200",pills:"dk:bg-pink-600 dk:text-white dk:dark:bg-pink-500",boxed:"dk:bg-white dk:text-pink-700 dk:dark:bg-zinc-800 dk:dark:text-pink-200 dk:shadow-sm"},success:{underline:"dk:border-emerald-600 dk:text-emerald-700 dk:dark:border-emerald-400 dk:dark:text-emerald-200",pills:"dk:bg-emerald-600 dk:text-white dk:dark:bg-emerald-500",boxed:"dk:bg-white dk:text-emerald-700 dk:dark:bg-zinc-800 dk:dark:text-emerald-200 dk:shadow-sm"},warning:{underline:"dk:border-amber-500 dk:text-amber-700 dk:dark:border-amber-400 dk:dark:text-amber-200",pills:"dk:bg-amber-500 dk:text-white dk:dark:bg-amber-400",boxed:"dk:bg-white dk:text-amber-700 dk:dark:bg-zinc-800 dk:dark:text-amber-200 dk:shadow-sm"},danger:{underline:"dk:border-rose-600 dk:text-rose-700 dk:dark:border-rose-400 dk:dark:text-rose-200",pills:"dk:bg-rose-600 dk:text-white dk:dark:bg-rose-500",boxed:"dk:bg-white dk:text-rose-700 dk:dark:bg-zinc-800 dk:dark:text-rose-200 dk:shadow-sm"}},l=e.computed(()=>"dk:w-full"),u=e.computed(()=>{const p="dk:flex dk:items-center dk:gap-0.5",n=t.fullWidth?"dk:w-full":"",o={underline:"dk:border-b dk:border-zinc-200 dk:dark:border-zinc-700",pills:"dk:gap-1",boxed:"dk:bg-zinc-100 dk:dark:bg-zinc-800 dk:p-1 dk:rounded-xl dk:gap-1"}[t.variant];return[p,n,o].join(" ")});function b(p,n){const o="dk:inline-flex dk:items-center dk:gap-1.5 dk:font-medium dk:transition-all dk:duration-150 dk:outline-none dk:select-none dk:rounded-t",i=f[t.size],h=t.modelValue===p,m=n?"dk:opacity-40 dk:cursor-not-allowed":"dk:cursor-pointer",g="dk:focus-visible:ring-2 dk:focus-visible:ring-offset-1 dk:focus-visible:ring-slate-400 dk:dark:focus-visible:ring-slate-500";if(t.variant==="underline"){const S=h?`dk:border-b-2 ${a[t.color].underline}`:"dk:border-b-2 dk:border-transparent dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200 dk:hover:border-zinc-300 dk:dark:hover:border-zinc-600";return[o,i,S,m,g].join(" ")}if(t.variant==="pills"){const S=h?`dk:rounded-lg ${a[t.color].pills}`:"dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-zinc-100 dk:dark:hover:bg-zinc-700 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200";return[o,i,S,m,g].join(" ")}const y=h?`dk:rounded-lg ${a[t.color].boxed}`:"dk:rounded-lg dk:text-zinc-500 dk:dark:text-zinc-400 dk:hover:bg-black/5 dk:dark:hover:bg-white/5 dk:hover:text-zinc-700 dk:dark:hover:text-zinc-200",C=t.fullWidth?"dk:flex-1 dk:text-center dk:justify-center":"";return[o,i,y,m,g,C].join(" ")}const v=e.computed(()=>"dk:ml-1 dk:inline-flex dk:items-center dk:justify-center dk:rounded-full dk:bg-current/15 dk:text-current dk:text-[10px] dk:font-semibold dk:px-1.5 dk:py-px dk:leading-none"),B=e.computed(()=>[{sm:"dk:pt-3",md:"dk:pt-4",lg:"dk:pt-5"}[t.size],"dk:outline-none"].join(" "));return(p,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[e.createElementVNode("div",{class:e.normalizeClass(u.value),role:"tablist","aria-label":d.ariaLabel},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.tabs,o=>(e.openBlock(),e.createElementBlock("button",{key:o.value,type:"button",id:`tab-${e.unref(c)}-${o.value}`,"aria-controls":`panel-${e.unref(c)}-${o.value}`,"aria-selected":d.modelValue===o.value,disabled:o.disabled,role:"tab",class:e.normalizeClass(b(o.value,o.disabled)),onClick:i=>s(o.value,o.disabled),onKeydown:i=>x(i,o.value)},[o.icon?(e.openBlock(),e.createElementBlock("span",_t,e.toDisplayString(o.icon),1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.label)+" ",1),o.badge!==void 0?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(v.value)},e.toDisplayString(o.badge),3)):e.createCommentVNode("",!0)],42,Lt))),128))],10,Pt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.tabs,o=>(e.openBlock(),e.createElementBlock("div",{key:o.value,id:`panel-${e.unref(c)}-${o.value}`,"aria-labelledby":`tab-${e.unref(c)}-${o.value}`,role:"tabpanel",tabindex:d.modelValue===o.value?0:-1,hidden:d.modelValue!==o.value,class:e.normalizeClass(B.value)},[e.renderSlot(p.$slots,o.value)],10,At))),128))],2))}}),W=e.reactive({toasts:[]});function A(d){const r=Math.random().toString(36).slice(2,10),t={id:r,title:d.title,message:d.message,color:d.color??"neutral",duration:d.duration??4e3,closable:d.closable??!0,icon:d.icon};return W.toasts.push(t),t.duration>0&&setTimeout(()=>Q(r),t.duration),r}function Q(d){const r=W.toasts.findIndex(t=>t.id===d);r!==-1&&W.toasts.splice(r,1)}function Wt(){W.toasts.splice(0)}function Ft(){return{toasts:e.readonly(W.toasts),add:A,remove:Q,clear:Wt,success:(d,r)=>A({...r,message:d,color:"success"}),error:(d,r)=>A({...r,message:d,color:"danger"}),warning:(d,r)=>A({...r,message:d,color:"warning"}),info:(d,r)=>A({...r,message:d,color:"primary"})}}const Ot={key:0,"aria-hidden":"true",class:"dk:flex-shrink-0 dk:text-lg"},Kt={class:"dk:flex-1 dk:min-w-0"},qt={key:0,class:"dk:text-sm dk:font-semibold dk:leading-snug"},Ut=["onClick"],Ht="dk:flex-shrink-0 dk:flex dk:items-center dk:justify-center dk:w-5 dk:h-5 dk:rounded dk:text-current dk:opacity-70 dk:hover:opacity-100 dk:transition-opacity dk:text-base dk:leading-none dk:outline-none dk:ring-1 dk:ring-current/30 dk:focus-visible:ring-2",Qt=e.defineComponent({__name:"DuiToast",props:{position:{default:"top-right"},maxToasts:{default:5},zIndex:{default:9999}},setup(d){const r=d,{toasts:t,remove:k}=Ft(),c=e.computed(()=>t.slice(0,r.maxToasts)),s={"top-right":"dk:top-4 dk:right-4 dk:items-end","top-left":"dk:top-4 dk:left-4 dk:items-start","top-center":"dk:top-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center","bottom-right":"dk:bottom-4 dk:right-4 dk:items-end","bottom-left":"dk:bottom-4 dk:left-4 dk:items-start","bottom-center":"dk:bottom-4 dk:left-1/2 dk:-translate-x-1/2 dk:items-center"},x=e.computed(()=>["dk:fixed dk:pointer-events-none",s[r.position],`dk:z-[${r.zIndex}]`].join(" ")),f=e.computed(()=>"dk:relative dk:flex dk:flex-col dk:gap-2 dk:w-80 dk:max-w-[calc(100vw-2rem)]"),a={neutral:"dk:bg-zinc-800 dk:dark:bg-zinc-700 dk:text-white dk:border-zinc-600",primary:"dk:bg-slate-700 dk:dark:bg-slate-700 dk:text-white dk:border-slate-500",secondary:"dk:bg-pink-600 dk:dark:bg-pink-700 dk:text-white dk:border-pink-400",success:"dk:bg-emerald-600 dk:dark:bg-emerald-700 dk:text-white dk:border-emerald-400",warning:"dk:bg-amber-600 dk:dark:bg-amber-700 dk:text-white dk:border-amber-400",danger:"dk:bg-rose-600 dk:dark:bg-rose-700 dk:text-white dk:border-rose-400"},l={neutral:"dk:bg-zinc-300",primary:"dk:bg-slate-300",secondary:"dk:bg-pink-200",success:"dk:bg-emerald-200",warning:"dk:bg-amber-200",danger:"dk:bg-rose-200"};function u(v){return["dk:pointer-events-auto dk:flex dk:items-start dk:gap-3","dk:rounded-xl dk:border dk:px-4 dk:py-3 dk:shadow-xl",a[v]].join(" ")}function b(v){return["dk:flex-shrink-0 dk:w-2 dk:h-2 dk:rounded-full dk:mt-1",l[v]].join(" ")}return(v,B)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",{class:e.normalizeClass(x.value),"aria-live":"polite","aria-atomic":"false"},[e.createVNode(e.TransitionGroup,{tag:"div",class:e.normalizeClass(f.value),"enter-active-class":"dk:transition-all dk:duration-300 dk:ease-out","leave-active-class":"dk:transition-all dk:duration-200 dk:ease-in dk:absolute dk:w-full","enter-from-class":"dk:opacity-0 dk:translate-y-2 dk:scale-95","leave-to-class":"dk:opacity-0 dk:scale-95","move-class":"dk:transition-all dk:duration-300"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,p=>(e.openBlock(),e.createElementBlock("div",{key:p.id,role:"alert",class:e.normalizeClass(u(p.color))},[p.icon?(e.openBlock(),e.createElementBlock("span",Ot,e.toDisplayString(p.icon),1)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(b(p.color)),"aria-hidden":"true"},null,2)),e.createElementVNode("div",Kt,[p.title?(e.openBlock(),e.createElementBlock("p",qt,e.toDisplayString(p.title),1)):e.createCommentVNode("",!0),e.createElementVNode("p",{class:e.normalizeClass(["dk:text-sm dk:leading-snug",{"dk:opacity-80":p.title}])},e.toDisplayString(p.message),3)]),p.closable?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(Ht),"aria-label":"Cerrar notificacion",onClick:n=>e.unref(k)(p.id)}," × ",8,Ut)):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["class"])],2)]))}}),Gt={key:0,class:"dk:flex dk:items-center dk:gap-4 dk:flex-shrink-0"},Jt={class:"dk:hidden dk:md:flex dk:items-center dk:flex-1"},Xt={key:0,class:"dk:relative dk:group"},Yt={class:"dk:absolute dk:left-0 dk:top-full dk:min-w-56 dk:py-2 dk:mt-1 dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:from-gray-700/90 dk:dark:to-gray-800/90 dk:backdrop-blur-md dk:rounded-lg dk:shadow-lg dk:border dk:border-white/40 dk:dark:border-white/10 dk:opacity-0 dk:invisible dk:group-hover:opacity-100 dk:group-hover:visible dk:transition-all dk:duration-200 dk:z-50"},Zt={key:1,class:"dk:hidden dk:md:flex dk:items-center dk:gap-2 dk:flex-shrink-0"},Rt={class:"dk:w-6 dk:h-6 dk:stroke-gray-900 dk:dark:stroke-white",fill:"none",viewBox:"0 0 24 24"},ed=["d"],td={class:"dk:md:hidden dk:absolute dk:top-full dk:left-0 dk:w-full dk:bg-gradient-to-b dk:from-white/95 dk:to-gray-50/95 dk:dark:from-gray-700/90 dk:dark:to-gray-800/90 dk:backdrop-blur-md dk:border-t dk:border-white/40 dk:dark:border-white/10 dk:shadow-lg dk:dark:shadow-black/30 dk:z-40"},dd={class:"dk:px-4 dk:py-3 dk:space-y-2"},rd={key:0},od=["onClick"],ad={class:"dk:flex dk:items-center"},nd={class:"dk:ml-4 dk:mt-2 dk:space-y-1"},kd={key:0,class:"dk:pt-3 dk:border-t dk:border-white/20 dk:dark:border-white/10"},ld=e.defineComponent({__name:"DuiNavbar",props:{items:{default:()=>[]},size:{default:"m"},nuxt:{type:Boolean,default:!1},itemsAlignment:{default:"left"},underlineColor:{default:"primary"}},setup(d){const r=d,t=e.ref(!1),k=e.reactive({}),c=i=>I(i.to,r.nuxt),s=i=>{const h=c(i);return K(i.to,h)},x=()=>{t.value=!t.value},f=()=>{t.value=!1,Object.keys(k).forEach(i=>{k[i]=!1})},a=i=>{k[i]=!k[i]},l={s:{height:"dk:h-12",padding:"dk:px-3",text:"dk:text-sm",itemPadding:"dk:px-2 dk:py-1.5"},m:{height:"dk:h-16",padding:"dk:px-4",text:"dk:text-base",itemPadding:"dk:px-3 dk:py-2"},l:{height:"dk:h-20",padding:"dk:px-6",text:"dk:text-lg",itemPadding:"dk:px-4 dk:py-3"}},u=e.computed(()=>{const i=l[r.size];return["dk:relative dk:bg-gradient-to-b dk:from-white/80 dk:via-white/70 dk:to-gray-50/80","dk:dark:from-gray-700/60 dk:dark:via-gray-800/60 dk:dark:to-gray-900/60","dk:backdrop-blur-md dk:backdrop-brightness-110","dk:border-b dk:border-white/40 dk:dark:border-white/10","dk:shadow-lg dk:shadow-black/10 dk:dark:shadow-black/30","dk:before:absolute dk:before:top-0 dk:before:left-0 dk:before:right-0 dk:before:h-0.5","dk:before:bg-gradient-to-r dk:before:from-white/60 dk:before:via-white/40 dk:before:to-transparent","dk:dark:before:from-white/20 dk:dark:before:via-white/10 dk:dark:before:to-transparent","dk:flex dk:items-center dk:w-full dk:gap-4",i.height,i.padding,i.text].join(" ")}),b=e.computed(()=>["dk:flex dk:items-center dk:space-x-1 dk:flex-1",{left:"dk:justify-start",center:"dk:justify-center",right:"dk:justify-end"}[r.itemsAlignment]].join(" ")),v=()=>{const i={neutral:"dk:before:from-zinc-500 dk:before:to-zinc-600 dk:dark:before:from-zinc-400 dk:dark:before:to-zinc-500",primary:"dk:before:from-slate-600 dk:before:to-slate-700 dk:dark:before:from-slate-400 dk:dark:before:to-slate-500",secondary:"dk:before:from-pink-500 dk:before:to-pink-600 dk:dark:before:from-pink-400 dk:dark:before:to-pink-500",success:"dk:before:from-emerald-500 dk:before:to-emerald-600 dk:dark:before:from-emerald-400 dk:dark:before:to-emerald-500",danger:"dk:before:from-rose-500 dk:before:to-rose-600 dk:dark:before:from-rose-400 dk:dark:before:to-rose-500",warning:"dk:before:from-amber-500 dk:before:to-amber-600 dk:dark:before:from-amber-400 dk:dark:before:to-amber-500"};return i[r.underlineColor]||i.primary},B=e.computed(()=>{const i=l[r.size],h=v();return(m,g=!0)=>{const y=m.active??!1,C=g?"dk:pl-3":"dk:pl-2",S="dk:pr-3",T=g?"dk:pl-2":"dk:pl-1",P="dk:pr-2",L=g?"dk:pl-4":"dk:pl-3",q="dk:pr-4";let _="";return i.itemPadding.includes("px-2")?_=`${T} ${P} dk:py-1.5`:i.itemPadding.includes("px-4")?_=`${L} ${q} dk:py-3`:_=`${C} ${S} dk:py-2`,["dk:flex dk:items-center dk:relative dk:transition-all dk:duration-300","dk:text-gray-700 dk:hover:text-gray-900 dk:dark:text-gray-300 dk:dark:hover:text-gray-100","dk:focus:outline-none dk:focus:ring-2 dk:focus:ring-blue-400 dk:focus:ring-opacity-50 dk:dark:focus:ring-blue-300","dk:no-underline","dk:before:absolute dk:before:bottom-0 dk:before:left-0 dk:before:h-0.5","dk:before:bg-gradient-to-r",h,"dk:before:transition-all dk:before:duration-300",y?"dk:before:w-full dk:text-gray-900 dk:dark:text-gray-100":"dk:before:w-0 dk:hover:before:w-full",_].join(" ")}}),p=e.computed(()=>["dk:block dk:w-full dk:text-left dk:px-4 dk:py-2 dk:text-sm dk:whitespace-nowrap","dk:text-gray-700 dk:hover:text-gray-900 dk:hover:bg-white/50 dk:dark:hover:bg-white/10","dk:dark:text-gray-300 dk:dark:hover:text-gray-100","dk:transition-all dk:duration-200 dk:no-underline","dk:border-l-2 dk:border-transparent dk:hover:border-blue-500"].join(" ")),n=e.computed(()=>["dk:flex dk:items-center dk:justify-start dk:w-full dk:text-left dk:px-3 dk:py-2","dk:text-gray-700 dk:hover:text-gray-900 dk:rounded-lg","dk:bg-white/10 dk:hover:bg-white/25 dk:dark:bg-white/5 dk:dark:hover:bg-white/15","dk:dark:text-gray-300 dk:dark:hover:text-gray-100","dk:border dk:border-white/20 dk:dark:border-white/10 dk:hover:border-white/40 dk:dark:hover:border-white/20","dk:transition-all dk:duration-200 dk:no-underline"].join(" ")),o=e.computed(()=>["dk:block dk:w-full dk:text-left dk:px-3 dk:py-2 dk:text-sm dk:rounded-lg","dk:text-gray-600 dk:hover:text-gray-800 dk:hover:bg-white/30 dk:dark:hover:bg-white/10","dk:dark:text-gray-400 dk:dark:hover:text-gray-200","dk:border-l-2 dk:border-transparent dk:hover:border-blue-500","dk:transition-all dk:duration-200 dk:no-underline"].join(" "));return(i,h)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(u.value)},[i.$slots.brand?(e.openBlock(),e.createElementBlock("div",Gt,[e.renderSlot(i.$slots,"brand")])):e.createCommentVNode("",!0),e.createElementVNode("div",Jt,[e.createElementVNode("div",{class:e.normalizeClass(b.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m.label},[m.children&&m.children.length>0?(e.openBlock(),e.createElementBlock("div",Xt,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(m)),e.mergeProps({ref_for:!0},s(m),{class:B.value(m,!0)}),{default:e.withCtx(()=>[m.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([m.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label)+" ",1),h[0]||(h[0]=e.createElementVNode("svg",{class:"dk:w-4 dk:h-4 dk:ml-1 dk:transform dk:group-hover:rotate-180 dk:transition-transform",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1))]),_:2},1040,["class"])),e.createElementVNode("div",Yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.children,g=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(g)),e.mergeProps({key:g.label},{ref_for:!0},s(g),{class:p.value}),{default:e.withCtx(()=>[g.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([g.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(g.label),1)]),_:2},1040,["class"]))),128))])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(m)),e.mergeProps({key:1,ref_for:!0},s(m),{class:B.value(m,!1)}),{default:e.withCtx(()=>[m.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([m.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label),1)]),_:2},1040,["class"]))],64))),128))],2)]),i.$slots.actions?(e.openBlock(),e.createElementBlock("div",Zt,[e.renderSlot(i.$slots,"actions")])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",onClick:x,class:"dk:md:hidden dk:ml-auto dk:flex-shrink-0 dk:p-2 dk:rounded-md dk:hover:bg-gray-100 dk:dark:hover:bg-gray-700 dk:transition-colors"},[(e.openBlock(),e.createElementBlock("svg",Rt,[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:t.value?"M6 18L18 6M6 6l12 12":"M4 6h16M4 12h16M4 18h16"},null,8,ed)]))]),e.withDirectives(e.createElementVNode("div",td,[e.createElementVNode("div",dd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.items,m=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m.label},[m.children&&m.children.length>0?(e.openBlock(),e.createElementBlock("div",rd,[e.createElementVNode("button",{type:"button",onClick:g=>a(m.label),class:e.normalizeClass([n.value,"dk:justify-between"])},[e.createElementVNode("div",ad,[m.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([m.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label),1)]),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["dk:w-4 dk:h-4 dk:transform dk:transition-transform dk:flex-shrink-0",k[m.label]?"dk: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))],10,od),e.withDirectives(e.createElementVNode("div",nd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.children,g=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(g)),e.mergeProps({key:g.label},{ref_for:!0},s(g),{class:o.value,onClick:f}),{default:e.withCtx(()=>[g.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([g.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(g.label),1)]),_:2},1040,["class"]))),128))],512),[[e.vShow,k[m.label]]])])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(m)),e.mergeProps({key:1,ref_for:!0},s(m),{class:n.value,onClick:f}),{default:e.withCtx(()=>[m.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([m.icon,"dk:mr-2"])},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(m.label),1)]),_:2},1040,["class"]))],64))),128)),i.$slots.actions?(e.openBlock(),e.createElementBlock("div",kd,[e.renderSlot(i.$slots,"actions")])):e.createCommentVNode("",!0)])],512),[[e.vShow,t.value]])],2))}});exports.DuiAccordion=mt;exports.DuiAction=Re;exports.DuiAlert=Le;exports.DuiBadge=pt;exports.DuiButton=U;exports.DuiCard=dt;exports.DuiCheckbox=Ce;exports.DuiDropdown=ht;exports.DuiDropdownItem=yt;exports.DuiDropdownSeparator=Bt;exports.DuiInput=se;exports.DuiLabel=ye;exports.DuiModal=ot;exports.DuiNavbar=ld;exports.DuiPagination=jt;exports.DuiRadio=$e;exports.DuiSelect=ge;exports.DuiSkeleton=Mt;exports.DuiSwitch=Me;exports.DuiTable=Xe;exports.DuiTabs=It;exports.DuiTextarea=ue;exports.DuiToast=Qt;exports.DuiTooltip=kt;
|
package/dist/droni-kit.es.js
CHANGED
|
@@ -2695,6 +2695,7 @@ const Wt = /* @__PURE__ */ ke(Ed, [["render", Nd]]), Fd = ["aria-label"], Kd = [
|
|
|
2695
2695
|
}, [
|
|
2696
2696
|
(r(!0), a(I, null, N(d.tabs, (k) => (r(), a("button", {
|
|
2697
2697
|
key: k.value,
|
|
2698
|
+
type: "button",
|
|
2698
2699
|
id: `tab-${R(g)}-${k.value}`,
|
|
2699
2700
|
"aria-controls": `panel-${R(g)}-${k.value}`,
|
|
2700
2701
|
"aria-selected": d.modelValue === k.value,
|