Files
sigpro-ui/dist/sigpro-ui.esm.min.js
natxocc 627bfd78ad
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
Toast tiene el ancho para cada uno
2026-04-27 18:20:10 +02:00

8 lines
36 KiB
JavaScript

var zt=Object.defineProperty;var St=(t)=>t;function Bt(t,n){this[t]=St.bind(null,n)}var _t=(t,n)=>{for(var o in n)zt(t,o,{get:n[o],enumerable:!0,configurable:!0,set:Bt.bind(n,o)})};var lt={};_t(lt,{Tooltip:()=>Hn,Toggle:()=>Vn,Toast:()=>gn,Timeline:()=>In,Textrotate:()=>Yn,Textarea:()=>Un,Tabs:()=>qn,TableItems:()=>Gn,Table:()=>Zn,SwapToggle:()=>At,SwapOn:()=>Tt,SwapOff:()=>Wt,Swap:()=>Lt,Steps:()=>Qn,Step:()=>Mn,Stats:()=>Bn,Stat:()=>Pn,Stack:()=>Sn,SkeletonText:()=>zn,Skeleton:()=>Xn,Select:()=>On,RatingItems:()=>Kn,Rating:()=>Jn,Range:()=>$n,Radio:()=>Wn,Radial:()=>Tn,Progress:()=>An,Navbar:()=>Ln,Modal:()=>kn,Menu:()=>jn,Loading:()=>Cn,ListRows:()=>dn,List:()=>Nn,Kbd:()=>En,Input:()=>kt,Indicator:()=>yn,Icon:()=>m,Fileinput:()=>wn,Fieldset:()=>bn,Fab:()=>en,DropdownContent:()=>R,DropdownButton:()=>jt,Dropdown:()=>F,DrawerToggle:()=>un,DrawerSide:()=>an,DrawerOverlay:()=>_n,DrawerContent:()=>ln,Drawer:()=>fn,Divider:()=>sn,Datepicker:()=>on,Colorpicker:()=>rn,ColorPalette:()=>Ct,Checkbox:()=>nn,ChatImage:()=>tn,ChatHeader:()=>pt,ChatFooter:()=>ht,ChatBubble:()=>vt,Chat:()=>ct,CarouselItem:()=>Rt,Carousel:()=>Ft,CardTitle:()=>xt,CardBody:()=>Dt,CardActions:()=>mt,Card:()=>Ht,Calendar:()=>dt,Button:()=>Nt,Badge:()=>Vt,Autocomplete:()=>gt,Alert:()=>It,Accordion:()=>Yt});var z=(t)=>typeof t==="function",rt=(t)=>t&&typeof t==="object",q=Array.isArray,S=typeof document<"u"?document:null,st=(t)=>t?._isRuntime?t.container:t instanceof Node?t:S.createTextNode(t==null?"":String(t)),W=null,K=null,I=!1,V=0,H=new Set,it=new WeakMap,tt=Symbol("iter"),nt=new WeakMap,Z=(t)=>{if(!t||t._disposed)return;t._disposed=!0;let n=[t];while(n.length){let o=n.pop();if(o._cleanups)o._cleanups.forEach((u)=>u()),o._cleanups.clear();if(o._children)o._children.forEach((u)=>n.push(u)),o._children.clear();if(o._deps)o._deps.forEach((u)=>u.delete(o)),o._deps.clear()}},U=(t)=>{if(K)(K._cleanups||=new Set).add(t)},Pt=(t)=>{let n=W;W=null;try{return t()}finally{W=n}},g=(t,n=!1)=>{let o=()=>{if(o._disposed)return;if(o._deps)o._deps.forEach((_)=>_.delete(o));if(o._cleanups)o._cleanups.forEach((_)=>_()),o._cleanups.clear();let u=W,f=K;W=K=o;try{return o._result=t()}catch(_){console.error("[SigPro]",_)}finally{W=u,K=f}};if(o._deps=o._cleanups=o._children=null,o._disposed=!1,o._isComputed=n,o._depth=W?W._depth+1:0,o._mounts=[],o._parent=K,K)(K._children||=new Set).add(o);return o},bt=()=>{if(I)return;I=!0;let t=Array.from(H).sort((n,o)=>n._depth-o._depth);H.clear();for(let n of t)if(!n._disposed)n();I=!1},Qt=(t)=>{V++;try{return t()}finally{if(V--,V===0&&H.size>0&&!I)bt()}},X=(t,n=!1)=>{if(!n&&W&&!W._disposed)t.add(W),(W._deps||=new Set).add(t);else if(n&&t.size>0){let o=!1;for(let u of t){if(u===W||u._disposed)continue;if(u._isComputed){if(u._dirty=!0,u._subs)X(u._subs,!0)}else H.add(u),o=!0}if(o&&!I&&V===0)queueMicrotask(bt)}},k=(t,n=null)=>{let o=new Set;if(z(t)){let u,f=()=>{if(f._dirty){let _=W;W=f;try{let l=t();if(!Object.is(u,l))u=l,X(o,!0)}finally{W=_}f._dirty=!1}return X(o),u};if(f._isComputed=!0,f._subs=o,f._dirty=!0,f._deps=null,f._disposed=!1,f.stop=()=>{},K)U(f.stop);return f}if(n)try{t=JSON.parse(localStorage.getItem(n))??t}catch(u){}return(...u)=>{if(u.length){let f=z(u[0])?u[0](t):u[0];if(!Object.is(t,f)){if(t=f,n)localStorage.setItem(n,JSON.stringify(t));X(o,!0)}}return X(o),t}},wt=(t)=>{if(!rt(t))return t;let n=it.get(t);if(n)return n;let o=new Map,u=(_)=>{let l=o.get(_);if(!l)o.set(_,l=new Set);return l},f=new Proxy(t,{get(_,l,a){if(typeof l!=="symbol")X(u(l));return wt(Reflect.get(_,l,a))},set(_,l,a,s){let i=Reflect.has(_,l),y=Reflect.get(_,l,s),N=Reflect.set(_,l,a,s);if(N&&!Object.is(y,a)){if(X(u(l),!0),!i)X(u(tt),!0)}return N},deleteProperty(_,l){let a=Reflect.deleteProperty(_,l);if(a)X(u(l),!0),X(u(tt),!0);return a},ownKeys(_){return X(u(tt)),Reflect.ownKeys(_)}});return it.set(t,f),f},G=(t,n)=>{if(n===void 0){let u=g(t);return u(),()=>Z(u)}let o=g(()=>{let u=Array.isArray(t)?t.map((f)=>f()):t();Pt(()=>n(u))});return o(),()=>Z(o)},ot=(t)=>{if(!t)return;if(t._cleanups)t._cleanups.forEach((n)=>n()),t._cleanups.clear();if(t._ownerEffect)Z(t._ownerEffect);if(t.childNodes)t.childNodes.forEach((n)=>ot(n))},Mt=/^\s*(javascript|data|vbscript):/i,Zt=(t)=>t==="src"||t==="href"||t.startsWith("on"),et=(t,n)=>{if(n==null||n===!1)return null;if(Zt(t)){let o=String(n);if(Mt.test(o))return console.warn(`[SigPro] Bloqueado protocolo peligroso en ${t}`),"#"}return n},r=(t,n={},o=[])=>{if(n instanceof Node||q(n)||!rt(n))o=n,n={};if(z(t)){let l=g(()=>{let y=t(n,{children:o,emit:(N,...d)=>n[`on${N[0].toUpperCase()}${N.slice(1)}`]?.(...d)});return l._result=y,y});l();let a=l._result;if(a==null)return null;let s=a instanceof Node||q(a)&&a.every((y)=>y instanceof Node)?a:S.createTextNode(String(a)),i=(y)=>{if(rt(y)&&!y._isRuntime)y._mounts=l._mounts||[],y._cleanups=l._cleanups||new Set,y._ownerEffect=l};return q(s)?s.forEach(i):i(s),s}let u=/^(svg|path|circle|rect|line|poly(line|gon)|g|defs|text(path)?|tspan|use|symbol|image|marker|ellipse)$/i.test(t),f=u?S.createElementNS("http://www.w3.org/2000/svg",t):S.createElement(t);f._cleanups=new Set;for(let l in n){if(!n.hasOwnProperty(l))continue;let a=n[l];if(l==="ref"){z(a)?a(f):a.current=f;continue}if(u&&l.startsWith("xlink:")){a==null?f.removeAttributeNS("http://www.w3.org/1999/xlink",l.slice(6)):f.setAttributeNS("http://www.w3.org/1999/xlink",l.slice(6),a);continue}if(l.startsWith("on")){let s=l.slice(2).toLowerCase();f.addEventListener(s,a);let i=()=>f.removeEventListener(s,a);f._cleanups.add(i),U(i)}else if(z(a)){let s=g(()=>{let i=et(l,a());if(l==="class")f.className=i||"";else if(i==null)f.removeAttribute(l);else if(l in f&&!u)f[l]=i;else f.setAttribute(l,i===!0?"":i)});if(s(),f._cleanups.add(()=>Z(s)),U(()=>Z(s)),/^(INPUT|TEXTAREA|SELECT)$/.test(f.tagName)&&(l==="value"||l==="checked")){let i=l==="checked"?"change":"input";f.addEventListener(i,(y)=>a(y.target[l]))}}else{let s=et(l,a);if(s!=null)if(l in f&&!u)f[l]=s;else f.setAttribute(l,s===!0?"":s)}}let _=(l)=>{if(q(l))return l.forEach(_);if(z(l)){let a=S.createTextNode("");f.appendChild(a);let s=[],i=g(()=>{let y=l(),N=(q(y)?y:[y]).map(st);s.forEach((C)=>{if(C._isRuntime)C.destroy();else ot(C);if(C.parentNode)C.remove()});let d=a;for(let C=N.length-1;C>=0;C--){let w=N[C];if(w.parentNode!==d.parentNode)d.parentNode?.insertBefore(w,d);if(w._mounts)w._mounts.forEach((E)=>E());d=w}s=N});i(),f._cleanups.add(()=>Z(i)),U(()=>Z(i))}else{let a=st(l);if(f.appendChild(a),a._mounts)a._mounts.forEach((s)=>s())}};return _(o),f},x=(t)=>{let n=new Set,o=K,u=W,f=S.createElement("div");f.style.display="contents",f.setAttribute("role","presentation"),K={_cleanups:n},W=null;let _=(l)=>{if(!l)return;if(l._isRuntime)n.add(l.destroy),f.appendChild(l.container);else if(q(l))l.forEach(_);else f.appendChild(l instanceof Node?l:S.createTextNode(String(l==null?"":l)))};try{_(t({onCleanup:(l)=>n.add(l)}))}finally{K=o,W=u}return{_isRuntime:!0,container:f,destroy:()=>{n.forEach((l)=>l()),ot(f),f.remove()}}},ft=(t,n,o=null)=>{let u=S.createTextNode(""),f=r("div",{style:"display:contents"},[u]),_=null;return G(()=>!!(z(t)?t():t),(l)=>{if(_)_.destroy(),_=null;let a=l?n:o;if(a)_=x(()=>z(a)?a():a),f.insertBefore(_.container,u)}),U(()=>_?.destroy()),f},Gt=({name:t,duration:n=200,scale:o,slide:u,rotate:f,blur:_},l)=>{let a=typeof l==="function"?l():l;if(!(a instanceof Node))return a;if(t)return a.style.animation=`${t}-in ${n}ms`,a;let s=o||u||f||_,i=[o?"scale(0.95)":"",u?"translateY(-10px)":"",f?"rotate(-2deg)":""].filter(Boolean).join(" ");if(a.style.transition=`all ${n}ms ease`,a.style.opacity="0",s)a.style.transform=i;if(_)a.style.filter="blur(4px)";return requestAnimationFrame(()=>{if(a.style.opacity="1",s)a.style.transform="none";if(_)a.style.filter="none"}),a},M=(t,n,o)=>{let u=S.createTextNode(""),f=r("div",{style:"display:contents"},[u]),_=new Map;return G(()=>(z(t)?t():t)||[],(l)=>{let a=new Map,s=[],i=l||[];for(let N=0;N<i.length;N++){let d=i[N],C=o?d?.[o]??N:d?.id??N,w=_.get(C);if(!w)w=x(()=>n(d,N));else _.delete(C);a.set(C,w),s.push(w)}_.forEach((N)=>N.destroy());let y=u;for(let N=s.length-1;N>=0;N--){let d=s[N].container;if(d.nextSibling!==y)f.insertBefore(d,y);y=d}_=a}),f},Y=(t)=>{let n=()=>window.location.hash.slice(1)||"/",o=k(n()),u=()=>o(n());window.addEventListener("hashchange",u),U(()=>window.removeEventListener("hashchange",u));let f=r("div",{class:"router-hook"}),_=null;return G([o],()=>{let l=o(),a=t.find((s)=>{let i=s.path.split("/").filter(Boolean),y=l.split("/").filter(Boolean);return i.length===y.length&&i.every((N,d)=>N[0]===":"||N===y[d])})||t.find((s)=>s.path==="*");if(a){_?.destroy();let s={};a.path.split("/").filter(Boolean).forEach((i,y)=>{if(i[0]===":")s[i.slice(1)]=l.split("/").filter(Boolean)[y]}),Y.params(s),_=x(()=>z(a.component)?a.component(s):a.component),f.replaceChildren(_.container)}}),f};Y.params=k({});Y.to=(t)=>window.location.hash=t.replace(/^#?\/?/,"#/");Y.back=()=>window.history.back();Y.path=()=>window.location.hash.replace(/^#/,"")||"/";var qt=({url:t,method:n="GET",headers:o={}})=>{let u=k(!1),f=k(null),_=k(null),l=null,a=null;return{run:async(s=null)=>{l?.abort(),clearTimeout(a),l=new AbortController,a=setTimeout(()=>l.abort(),1e4),u(!0),f(null);try{let i=s instanceof FormData,y=await fetch(t,{method:n,headers:i?o:{"Content-Type":"application/json",...o},body:i?s:s?JSON.stringify(s):void 0,signal:l.signal}),N=await y.text(),d=N?JSON.parse(N):null;if(!y.ok)throw Error(d?.message||y.statusText);return _(d),d}catch(i){if(i.name!=="AbortError")f(i.message);throw i}finally{u(!1),clearTimeout(a),l=null,a=null}},abort:()=>l?.abort(),loading:u,error:f,data:_}},ut=(t,n)=>{let o=typeof n==="string"?S.querySelector(n):n;if(!o)return;if(nt.has(o))nt.get(o).destroy();let u=x(z(t)?t:()=>t);return o.replaceChildren(u.container),nt.set(o,u),u},Ut=Object.freeze({$:k,$$:wt,watch:G,h:r,when:ft,each:M,fx:Gt,router:Y,req:qt,mount:ut,batch:Qt});if(typeof window<"u")Object.assign(window,Ut),"a abbr article aside audio b blockquote br button canvas caption cite code col colgroup datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hr i iframe img input ins kbd label legend li main mark meter nav object ol optgroup option output p picture pre progress section select slot small source span strong sub summary sup svg table tbody td template textarea tfoot th thead time tr u ul video".split(" ").forEach((t)=>{window[t]=(n,o)=>r(t,n,o)});var L=(t)=>typeof t==="function"?t():t,Q=(t,n="label")=>t&&typeof t==="object"?t[n]:t,e=(...t)=>t.filter(Boolean).join(" ").trim(),A=(t)=>typeof t==="function",yt=(t,n,o="label",u=String(n).toLowerCase())=>!n?L(t):L(t).filter((f)=>String(f&&typeof f==="object"?f[o]:f).toLowerCase().includes(u)),Et=(t)=>`${t}-${Math.random().toString(36).slice(2,9)}`,D=()=>document.activeElement?.blur();var Yt=(t)=>{let n=t.name||Et("acc");return M(t.items,(o)=>{return r("div",{class:e("collapse",t.class)},[r("input",{type:"radio",name:n,checked:o.open||void 0}),o.title?r("div",{class:e("collapse-title",`${o.classTitle??" font-semibold"}`)},o.title):null,o.content?r("div",{class:e("collapse-content text-sm",`${o.classContent??" font-semibold"}`)},o.content):null])})},It=(t,n)=>r("div",{...t,class:e("alert",t.class)},n),gt=({items:t,value:n,onselect:o,placeholder:u="...",...f})=>{let _=k(L(n)||""),l=k(()=>yt(t,_())),a=(s)=>{let i=Q(s),y=typeof s==="string"?s:s.value;if(_(i),A(n))n(y);o?.(s),D()};return F({class:"w-full"},[r("div",{tabindex:"0",role:"button",class:"w-full"},kt({...f,placeholder:u,value:_,left:r("span",{class:"icon-[lucide--search]"}),oninput:(s)=>{if(_(s.target.value),A(n))n(s.target.value)}})),R({class:"p-2 bg-base-100 rounded-box shadow-xl w-full max-h-60 overflow-y-auto border border-base-300 z-50"},r("ul",{class:"menu flex-col flex-nowrap w-full p-0"},[M(l,(s)=>r("li",{},[r("a",{onmousedown:(i)=>i.preventDefault(),onclick:()=>a(s)},Q(s))]),(s)=>Q(s)),()=>l().length===0?r("li",{class:"p-4 opacity-50 text-center"},"Sin resultados"):null]))])},Vt=(t,n)=>r("span",{...t,class:e("badge",t.class)},n),Nt=(t,n)=>r("button",{...t,class:e("btn",t.class)},n),dt=(t)=>{let n=k(new Date),o=k(null),u=k(0),f=k(0),_=new Date,l=`${_.getFullYear()}-${String(_.getMonth()+1).padStart(2,"0")}-${String(_.getDate()).padStart(2,"0")}`,a=(w)=>`${w.getFullYear()}-${String(w.getMonth()+1).padStart(2,"0")}-${String(w.getDate()).padStart(2,"0")}`,s=()=>L(t.range)===!0,i=()=>L(t.value),y=(w)=>{let E=a(w),J=i();if(s())if(!J?.start||J.start&&J.end)t.onChange?.({start:E,end:null,...t.hour&&{startHour:u()}});else{let B=J.start,O=E<B?{start:E,end:B}:{start:B,end:E};if(t.hour)O.startHour=J.startHour??u(),O.endHour=f();t.onChange?.(O)}else t.onChange?.(t.hour?`${E}T${String(u()).padStart(2,"0")}:00:00`:E)},N=(w)=>{let E=n();n(new Date(E.getFullYear(),E.getMonth()+w,1))},d=(w)=>{let E=n();n(new Date(E.getFullYear()+w,E.getMonth(),1))},C=({value:w,onChange:E})=>r("div",{class:"flex-1"},[r("div",{class:"flex gap-2 items-center"},[r("input",{type:"range",min:0,max:23,value:w,class:"range range-xs flex-1",oninput:(J)=>E(+J.target.value)}),r("span",{class:"text-sm font-mono min-w-[48px] text-center"},()=>String(L(w)).padStart(2,"0")+":00")])]);return r("div",{class:e("p-4 bg-base-100 border border-base-300 shadow-2xl rounded-box w-80 select-none",t.class)},[r("div",{class:"flex justify-between items-center mb-4 gap-1"},[r("div",{class:"flex gap-0.5"},[r("button",{type:"button",class:"btn btn-ghost btn-xs px-1",onclick:()=>d(-1)},r("span",{class:"icon-[lucide--chevrons-left]"})),r("button",{type:"button",class:"btn btn-ghost btn-xs px-1",onclick:()=>N(-1)},r("span",{class:"icon-[lucide--chevron-left]"}))]),r("span",{class:"font-bold uppercase flex-1 text-center"},()=>n().toLocaleString("es-ES",{month:"short",year:"numeric"})),r("div",{class:"flex gap-0.5"},[r("button",{type:"button",class:"btn btn-ghost btn-xs px-1",onclick:()=>N(1)},r("span",{class:"icon-[lucide--chevron-right]"})),r("button",{type:"button",class:"btn btn-ghost btn-xs px-1",onclick:()=>d(1)},r("span",{class:"icon-[lucide--chevrons-right]"}))])]),r("div",{class:"grid grid-cols-7 gap-1",onmouseleave:()=>o(null)},[...["L","M","X","J","V","S","D"].map((w)=>r("div",{class:"text-[10px] opacity-40 font-bold text-center"},w)),()=>{let w=n(),E=w.getFullYear(),J=w.getMonth(),B=new Date(E,J,1).getDay(),O=B===0?6:B-1,c=new Date(E,J+1,0).getDate(),b=[];for(let j=0;j<O;j++)b.push(r("div"));for(let j=1;j<=c;j++){let T=new Date(E,J,j),$=a(T);b.push(r("button",{type:"button",class:()=>{let P=i(),v=o(),Ot=typeof P==="string"?P.split("T")[0]===$:P?.start===$,Xt=P?.end===$,h=!1;if(s()&&P?.start){let p=P.start;if(!P.end&&v)h=$>p&&$<=v||$<p&&$>=v;else if(P.end)h=$>p&&$<P.end}return e("btn btn-xs p-0 aspect-square min-h-0 h-auto font-normal relative",Ot||Xt?"btn-primary z-10":h?"bg-primary/20 border-none rounded-none":"btn-ghost",$===l?"ring-1 ring-primary ring-inset font-black text-primary":"")},onmouseenter:()=>s()&&o($),onclick:()=>y(T)},j.toString()))}return b}]),t.hour?r("div",{class:"mt-3 pt-2 border-t border-base-300"},s()?r("div",{class:"flex gap-4"},[C({value:u,onChange:(w)=>u(w)}),C({value:f,onChange:(w)=>f(w)})]):C({value:u,onChange:(w)=>u(w)})):null])},Ht=(t,n)=>r("div",{...t,class:e("card",t.class)},n),xt=(t,n)=>r("div",{...t,class:e("card-title",t.class)},n),Dt=(t,n)=>r("div",{...t,class:e("card-body",t.class)},n),mt=(t,n)=>r("div",{...t,class:e("card-actions",t.class)},n),Ft=(t,n)=>r("div",{...t,class:e("carousel",t.class)},n),Rt=(t,n)=>r("div",{...t,class:e("carousel-item",t.class)},n),ct=(t,n)=>r("div",{...t,class:e("chat",t.class)},n),vt=(t,n)=>r("div",{...t,class:e("chat-bubble",t.class)},n),ht=(t,n)=>r("div",{...t,class:e("chat-footer",t.class)},n),pt=(t,n)=>r("div",{...t,class:e("chat-header",t.class)},n),tn=(t,n)=>r("div",{...t,class:e("chat-image avatar",t.class)},r("div",{class:"w-10 rounded-full"},typeof n==="string"?r("img",{src:n,alt:"avatar"}):n)),nn=(t)=>r("input",{...t,type:"checkbox",class:e("checkbox",t.class)}),rn=(t)=>{let n=()=>L(t.value)||"#000000";return F({},[jt({class:"btn"},[r("div",{class:"size-5 rounded-sm",style:()=>`background-color: ${n()}`}),t.label&&r("span",{},t.label)]),R({class:"p-3 bg-base-100 rounded-box shadow-xl w-64"},Ct({value:t.value,onchange:(o)=>{A(t.value)?t.value(o):t.onchange?.(o)}}))])},Ct=(t)=>{let n=()=>L(t.value)||"#000000",o=["#000","#1A1A1A","#333","#4D4D4D","#666","#808080","#B3B3B3","#FFF","#450a0a","#7f1d1d","#991b1b","#b91c1c","#dc2626","#ef4444","#f87171","#fca5a5","#431407","#7c2d12","#9a3412","#c2410c","#ea580c","#f97316","#fb923c","#ffedd5","#713f12","#a16207","#ca8a04","#eab308","#facc15","#fde047","#fef08a","#fff9c4","#064e3b","#065f46","#059669","#10b981","#34d399","#4ade80","#84cc16","#d9f99d","#082f49","#075985","#0284c7","#0ea5e9","#38bdf8","#7dd3fc","#22d3ee","#cffafe","#1e1b4b","#312e81","#4338ca","#4f46e5","#6366f1","#818cf8","#a5b4fc","#e0e7ff","#2e1065","#4c1d95","#6d28d9","#7c3aed","#8b5cf6","#a855f7","#d946ef","#fae8ff"],u=(f)=>A(t.value)?t.value(f):t.onchange?.(f);return r("div",{class:"grid grid-cols-8 gap-1"},o.map((f)=>r("button",{type:"button",style:`background-color: ${f}`,class:()=>{return`size-6 rounded-sm cursor-pointer transition-all hover:scale-125 hover:z-10 active:scale-95 outline-none border border-black/5 p-0 min-h-0 ${n().toLowerCase()===f.toLowerCase()?"ring-2 ring-offset-1 ring-primary z-10 scale-110":""}`},onclick:()=>{u(f),D()}})))},on=(t)=>{let n=k(""),o=()=>L(t.range)===!0;G(()=>{let f=L(t.value);if(!f)return n("");let _="";if(typeof f==="string")_=t.hour&&f.includes("T")?f.replace("T"," "):f;else if(f.start&&f.end){let l=t.hour&&f.startHour!=null?`${f.start} ${String(f.startHour).padStart(2,"0")}:00`:f.start,a=t.hour&&f.endHour!=null?`${f.end} ${String(f.endHour).padStart(2,"0")}:00`:f.end;_=`${l} - ${a}`}else if(f.start)_=`${t.hour&&f.startHour!=null?`${f.start} ${String(f.startHour).padStart(2,"0")}:00`:f.start}...`;n(_)});let u=(f)=>{if(A(t.value))t.value(f);else t.onChange?.(f);if(!o()||f?.end!=null)D()};return F({class:e("w-full",t.class)},[r("label",{tabindex:"0",role:"button",class:"input input-bordered flex items-center gap-2 cursor-pointer"},[r("span",{class:"icon-[lucide--calendar] shrink-0"}),r("span",{class:()=>`grow text-left truncate ${!n()?"opacity-50":""}`},()=>n()||t.placeholder||(o()?"Seleccionar rango...":"Seleccionar fecha...")),()=>n()?r("button",{type:"button",class:"btn btn-ghost btn-xs btn-circle -mr-2",onmousedown:(f)=>{if(f.preventDefault(),f.stopPropagation(),A(t.value))t.value(null);else t.onChange?.(null);n("")}},r("span",{class:"icon-[lucide--x] opacity-50"})):null]),R({class:"p-0 bg-base-100 rounded-box shadow-xl"},dt({value:t.value,range:o(),hour:t.hour,onChange:u}))])},fn=(t,n)=>div({...t,class:e("drawer",t.class)},n),un=(t)=>input({...t,type:"checkbox",class:"drawer-toggle",checked:()=>L(t.checked),onchange:(n)=>A(t.checked)&&t.checked(n.target.checked)}),ln=(t,n)=>div({...t,class:e("drawer-content",t.class)},n),an=(t,n)=>div({...t,class:e("drawer-side",t.class)},n),_n=(t)=>label({...t,for:t.for,class:e("drawer-overlay",t.class)}),sn=(t)=>r("div",{...t,class:e("divider",t.class)}),F=(t,n)=>r("div",{...t,class:e("dropdown",t.class)},n),jt=(t,n)=>r("div",{...t,tabindex:"0",role:"button",class:e("btn",t.class)},n),R=(t,n)=>r("div",{...t,tabindex:"0",class:e("dropdown-content",t.class)},n),en=(t,n)=>r("div",{class:"fab"},[r("div",{tabindex:"0",role:"button",class:e("btn",t.class)},m(t.icon)),n]),bn=(t,n)=>r("fieldset",{class:e("fieldset",t.class)},[r("legend",{class:"fieldset-legend"},t.label),n]),wn=(t)=>{let n=k([]),o=k(!1),u=k(null),f=(t.max||2)*1024*1024,_=(a)=>{let s=Array.from(a);if(u(null),s.some((y)=>y.size>f)){u(`Máx ${t.max||2}MB`);return}let i=[...n(),...s];if(n(i),A(t.onselect))t.onselect(i);else if(A(t.value))t.value(i)},l=(a)=>{let s=n().filter((i,y)=>y!==a);if(n(s),A(t.onselect))t.onselect(s);else if(A(t.value))t.value(s)};return r("div",{class:e("fieldset w-full p-0",t.class)},[r("label",{class:()=>`relative flex items-center justify-between w-full h-12 px-4 border-2 border-dashed rounded-lg cursor-pointer transition-all duration-200 ${o()?"border-primary bg-primary/10":"border-base-content/20 bg-base-100 hover:bg-base-200"}`,ondragover:(a)=>{a.preventDefault(),o(!0)},ondragleave:()=>o(!1),ondrop:(a)=>{a.preventDefault(),o(!1),_(a.dataTransfer.files)}},[r("div",{class:"flex items-center gap-3 w-full"},[r("span",{class:"icon-[lucide--upload]"}),r("span",{class:"text-sm opacity-70 truncate grow text-left"},"Arrastra o selecciona archivos..."),r("span",{class:"text-[10px] opacity-40 shrink-0"},`Máx ${t.max||2}MB`)]),r("input",{type:"file",multiple:!0,accept:t.accept||"*",class:"hidden",onchange:(a)=>_(a.target.files)})]),()=>u()&&r("span",{class:"text-[10px] text-error mt-1 px-1 font-medium"},u()),ft(()=>n().length>0,()=>r("ul",{class:"mt-2 space-y-1"},M(n,(a,s)=>r("li",{class:"flex items-center justify-between p-1.5 pl-3 text-xs bg-base-200/50 rounded-md border border-base-300"},[r("div",{class:"flex items-center gap-2 truncate"},[r("span",{class:"opacity-50"},"\uD83D\uDCC4"),r("span",{class:"truncate font-medium max-w-[200px]"},a.name),r("span",{class:"text-[9px] opacity-40"},`(${(a.size/1024).toFixed(0)} KB)`)]),r("button",{type:"button",class:"btn btn-ghost btn-xs btn-circle",onclick:(i)=>{i.preventDefault(),l(s)}},r("span",{class:"icon-[lucide--x]"}))]))))])},m=(t)=>r("span",{class:t.startsWith("icon-")?t:""},t.startsWith("icon-")?null:t),yn=(t,n)=>r("div",{...t,class:e("indicator",t.class)},[t.value&&r("span",{class:e("indicator-item badge",t.class)},t.value),n]),kt=(t)=>{let{label:n,icon:o,float:u,placeholder:f,value:_,left:l,right:a,rule:s,hint:i,content:y,...N}=t,d=k(!1),C=t.type==="password",w=s??null,E=()=>C?L(d)?"text":"password":t.type||"search";return r("label",{class:u?"floating-label":""},[u?r("span",{},n):null,r("label",{pattern:w,class:()=>e("input validator",t.class)},[n&&!u?r("span",{class:"label"},n):null,l??null,r("input",{...N,type:E,class:"grow",pattern:w,placeholder:f||n||" ",value:_}),a??null,C?Lt({class:"ml-2"},[At({value:d,class:"swap-rotate"}),Tt({},m("icon-[lucide--eye]")),Wt({},m("icon-[lucide--eye-off]"))]):null]),i?r("div",{class:"validator-hint"},i):null])},En=(t,n)=>r("kbd",{...t,class:e("kbd",t.class)},n),Nn=(t,n)=>r("ul",{...t,class:e("list",t.class)},n),dn=(t)=>()=>(L(t.items)||[]).map((n,o)=>r("li",{class:e("list-row",t.class,n?.class)},typeof t.render==="function"?t.render(n,o):n)),Cn=(t,n)=>r("span",{...t,class:e("loading loading-spinner",t.class)},n),jn=(t)=>{if(t.children!==void 0)return r("ul",{class:e("menu",t.class),...t},t.children);let{items:n}=t,o=(u)=>u.children?r("li",{},r("details",{open:u.open||void 0},[r("summary",{},Q(u)),r("ul",{},M(()=>L(u.children)||[],o))])):r("li",{},r("a",{href:u.href,onclick:u.onclick?(f)=>{if(!u.href)f.preventDefault();u.onclick(f)}:null},Q(u)));return r("ul",{class:e("menu",t.class)},M(()=>L(n)||[],o))},kn=(t)=>{let n=null;G(()=>{let u=L(t.open);if(!n)return;u?n.showModal():n.close()});let o=()=>A(t.open)&&t.open(!1);return r("dialog",{...t,ref:(u)=>n=u,class:e("modal",t.class),onclose:o,oncancel:o},[r("div",{class:"modal-box"},[t.title&&r("h3",{class:"text-lg font-bold"},t.title),t.children,r("div",{class:"modal-action"},[t.actions||Nt({class:"btn",onclick:o},"Cerrar")])]),r("form",{method:"dialog",class:"modal-backdrop"},[r("button",{},"close")])])},Ln=(t,n)=>r("div",{...t,class:e("navbar",t.class)},n),An=(t)=>r("progress",{...t,class:e("progress",t.class)}),Tn=(t,n)=>r("div",{...t,class:e("radial-progress",t.class),style:`--value:${t.value??0};${t.style??""}`,role:"progressbar","aria-valuenow":t.value??0},n??`${t.value??0}%`),Wn=(t)=>r("input",{...t,type:"radio",class:e("radio",t.class)}),$n=(t)=>r("input",{...t,type:"range",class:e("range",t.class)}),Jn=(t,n)=>r("div",{...t,class:"rating"},n),Kn=(t)=>[...Array(t.count)].map((n,o)=>r("input",{class:e("mask",t.class),name:t.name,type:"radio",checked:()=>L(t.value)===o,onchange:()=>A(t.value)?t.value(o):t.onchange?.(o)})),On=(t,n)=>{if(n!==void 0)return r("select",{class:e("select",t.class),...t},n);let{label:o,float:u,placeholder:f,placeholderDisabled:_=!0,value:l,left:a,right:s,hint:i,items:y,keyFn:N,...d}=t,C=()=>{let w=L(y)||[];return[...f?[{disabled:_,label:f,value:""}]:[],...w]};return r("label",{class:u?"floating-label":""},[u?r("span",{},o):null,r("label",{class:e("select",d.class)},[!u&&o?r("span",{class:"label"},o):null,a??null,r("select",{value:()=>L(l),onchange:(w)=>A(l)?l(w.target.value):d.onchange?.(w)},M(C,(w)=>{let E=Q(w,w.value!==void 0?"value":void 0),J=Q(w,"label");return r("option",{value:E,disabled:w.disabled||void 0},J)})),s??null]),i?r("div",{class:"validator-hint"},i):null])},Xn=(t)=>r("div",{...t,class:e("skeleton",t.class)}),zn=(t)=>r("span",{...t,class:e("skeleton skeleton-text",t.class)}),Sn=(t,n)=>r("div",{...t,class:e("stack",t.class)},n),Bn=(t,n)=>r("div",{...t,class:e("stats shadow",t.class)},n),Pn=(t)=>r("div",{...t,class:e("stat",t.class)},[t.title?r("div",{class:"stat-title"},t.title):null,t.value?r("div",{class:"stat-value"},t.value):null,t.desc?r("div",{class:"stat-desc"},t.desc):null]),Qn=(t,n)=>r("ul",{...t,class:e("steps",t.class)},n),Mn=(t,n)=>r("li",{...t,class:e("step",t.class),"data-content":t.dataContent},n),Lt=(t,n)=>r("label",{...t,class:e("swap",t.class)},n),At=(t)=>r("input",{type:"checkbox",checked:()=>L(t.value),onchange:(n)=>A(t.value)&&t.value(n.target.checked),class:t.class}),Tt=(t,n)=>r("div",{...t,class:e("swap-on",t.class)},n),Wt=(t,n)=>r("div",{...t,class:e("swap-off",t.class)},n),Zn=(t,n)=>r("table",{...t,class:e("table",t.class)},n),Gn=({items:t,columns:n=[],header:o=!0})=>{let u=o!==!1&&n.some((_)=>_.label)?r("thead",{},r("tr",{},n.map((_)=>r("th",{class:_.class},_.label)))):null,f=r("tbody",{},()=>{return(L(t)||[]).map((l,a)=>r("tr",{},n.map((s)=>{let i=s.render?s.render(l,a):l[s.key];return r("td",{class:s.class},i)})))});return[u,f].filter(Boolean)},qn=(t,n)=>{if(!t.items){let{class:i,...y}=t;return r("div",{...y,class:e("tabs",i)},n)}let{items:o,activeIndex:u,onClose:f,class:_,...l}=t,a=(i)=>A(i)?i():i,s=f||(A(o)?(i,y)=>{let d=a(o).filter((C,w)=>w!==i);if(o(d),u()>=d.length)u(Math.max(0,d.length-1))}:null);return r("div",{...l,class:e("tabs",_)},()=>{return(a(o)||[]).flatMap((y,N)=>{let d=()=>u()===N,C=r("button",{class:()=>`tab ${d()?"tab-active":""} ${y.class||""}`,onclick:(E)=>{E.preventDefault(),u(N),y.onclick?.(E)}},[Q(y),y.closable?r("span",{class:"ml-1 inline-flex items-center justify-center w-4 h-4 rounded-full hover:bg-base-300 text-base-content/60 hover:text-base-content cursor-pointer",onclick:(E)=>{E.stopPropagation(),s?.(N,y)}},r("span",{class:"icon-[lucide--x] w-3 h-3"})):null]),w=r("div",{class:"tab-content bg-base-100 border-base-300 p-6",style:()=>`display: ${d()?"block":"none"};`},A(y.content)?y.content():y.content);return[C,w]})})},Un=(t)=>r("textarea",{...t,class:e("textarea",t.class)}),Yn=(t,n)=>r("span",{...t,class:e("text-rotate",t.class)},n),In=(t,n)=>r("ul",{...t,class:e("timeline",t.class)},n),gn=(t,n="alert-success",o=3500)=>{let u=document.getElementById("sigpro-toast-container");if(!u)u=r("div",{id:"sigpro-toast-container",class:"fixed top-0 right-0 z-[9999] p-4 flex flex-col items-end gap-2 pointer-events-none"}),document.body.appendChild(u);let f=r("div",{style:"display: contents"});u.appendChild(f);let _,l,a,i=ut(()=>{let y=k(!1),N=k(!1);_=()=>{if(N())return;clearTimeout(l),clearTimeout(a),N(!0),setTimeout(()=>{if(i.destroy(),f.remove(),!u.hasChildNodes())u.remove()},300)},a=setTimeout(()=>y(!0),0);let d=typeof t==="function"?L(t):t,C=typeof d==="string"?r("span",{},d):d;return r("div",{class:()=>{let w=`alert alert-soft ${n} shadow-lg transition-all duration-300 inline-flex w-auto whitespace-nowrap pointer-events-auto`;if(N())return`${w} translate-x-full opacity-0`;if(y())return`${w} translate-x-0 opacity-100`;return`${w} translate-x-10 opacity-0`}},[C,r("button",{class:"btn btn-xs btn-circle btn-ghost",onclick:_},r("span",{class:"icon-[lucide--x]"}))])},f);if(o>0)l=setTimeout(_,o);return _},Vn=(t)=>r("input",{...t,type:"checkbox",class:e("toggle",t.class)}),Hn=(t,n)=>r("div",{...t,class:e("tooltip",t.class),"data-tip":t.tip},n);var at={};_t(at,{Editor:()=>xn});var xn=(t)=>{let{value:n,class:o}=t,u=null,f=null,_=k(!1),l=k(""),a=k(0),s=k(0),i=k(!1),y=["\uD83D\uDE00","\uD83D\uDE0A","\uD83D\uDE09","\uD83E\uDDD0","\uD83D\uDE2E","\uD83E\uDD14","\uD83D\uDE05","\uD83D\uDE02","\uD83D\uDE0D","\uD83D\uDE18","\uD83E\uDD70","\uD83D\uDC4D","\uD83D\uDC4E","\uD83D\uDC4C","\uD83E\uDD1D","\uD83E\uDD1E","\uD83D\uDC4B","\uD83D\uDC4F","\uD83D\uDE4C","\uD83D\uDE4F","\uD83D\uDCAA","☝️","\uD83D\uDC47","\uD83D\uDC48","\uD83D\uDC49","\uD83D\uDD95","✅","⚠️","\uD83D\uDE80","\uD83D\uDCE2","✉️","❤️"],N=()=>{let b=window.getSelection();if(b.getRangeAt&&b.rangeCount)f=b.getRangeAt(0)},d=()=>{if(f){let b=window.getSelection();b.removeAllRanges(),b.addRange(f)}},C=()=>{if(s(s()+1),u)a(u.innerText.length)},w=()=>{if(!u)return;let b=u.innerHTML;if(A(n))n(b);else t.onchange?.(b);C()},E=(b,j=null)=>{if(!u)return;if(u.focus(),f)d();document.execCommand(b,!1,j),f=null,w()},J=(b)=>{let j=document.createElement("div");j.style="position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.9);z-index:9999;display:flex;align-items:center;justify-content:center;cursor:zoom-out;";let T=document.createElement("img");T.src=b,T.style="max-width:95%;max-height:95%;box-shadow:0 0 30px rgba(0,0,0,0.5);border-radius:4px;",j.onclick=()=>document.body.removeChild(j),j.appendChild(T),document.body.appendChild(j)},B=(b)=>{if(!b)return;let j=new FileReader;j.onload=(T)=>{if(b.type.startsWith("image/")){let $=`<div style="display:inline-block; resize:both; overflow:hidden; vertical-align:bottom; line-height:0; width:200px; height:auto; border:1px dashed #ccc; padding:2px; cursor:pointer;" class="resizable-img-container"><img src="${T.target.result}" style="width:100%; height:100%; object-fit:contain; pointer-events:none;"></div>&nbsp;`;E("insertHTML",$)}else{let $=`<a href="${T.target.result}" download="${b.name}" contenteditable="false" style="display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border:1px solid #ccc; border-radius:4px; background:#f9f9f9; text-decoration:none; color:#333; font-size:12px; margin:2px; cursor:pointer;"><span class="icon-[lucide--paperclip] w-3 h-3"></span>${b.name}</a>&nbsp;`;E("insertHTML",$)}},j.readAsDataURL(b)},O=(b,j=null)=>{if(s(),!u||_())return!1;try{if(b==="formatBlock"){let T=window.getSelection().getRangeAt(0).commonAncestorContainer;while(T&&T!==u){if(T.nodeType===1&&T.tagName===j)return!0;T=T.parentNode}return!1}return document.queryCommandState(b)}catch(T){return!1}},c=r("div",{class:"flex flex-wrap items-center gap-1 p-2 border-b border-base-300 bg-base-200 sticky top-0 z-20"},[r("div",{class:"flex flex-wrap gap-1 flex-1 items-center"},[r("button",{type:"button",class:()=>`btn btn-ghost btn-xs ${O("bold")?"btn-active bg-primary/20":""}`,onclick:()=>E("bold")},r("span",{class:"icon-[lucide--bold]"})),r("button",{type:"button",class:()=>`btn btn-ghost btn-xs ${O("italic")?"btn-active bg-primary/20":""}`,onclick:()=>E("italic")},r("span",{class:"icon-[lucide--italic]"})),r("button",{type:"button",class:()=>`btn btn-ghost btn-xs ${O("underline")?"btn-active bg-primary/20":""}`,onclick:()=>E("underline")},r("span",{class:"icon-[lucide--underline]"})),r("input",{type:"color",class:"w-5 h-5 p-0 border-0 bg-transparent cursor-pointer",oninput:(b)=>E("foreColor",b.target.value)}),r("span",{class:"w-px h-5 bg-base-300 mx-1"}),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>E("justifyLeft")},r("span",{class:"icon-[lucide--align-left]"})),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>E("justifyCenter")},r("span",{class:"icon-[lucide--align-center]"})),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>E("justifyRight")},r("span",{class:"icon-[lucide--align-right]"})),r("span",{class:"w-px h-5 bg-base-300 mx-1"}),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>E("insertUnorderedList")},r("span",{class:"icon-[lucide--list]"})),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>E("insertOrderedList")},r("span",{class:"icon-[lucide--list-ordered]"})),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>E("outdent")},r("span",{class:"icon-[lucide--indent-decrease]"})),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>E("indent")},r("span",{class:"icon-[lucide--indent-increase]"})),r("button",{type:"button",class:()=>`btn btn-ghost btn-xs ${O("formatBlock","BLOCKQUOTE")?"btn-active":""}`,onclick:()=>E("formatBlock",O("formatBlock","BLOCKQUOTE")?"P":"BLOCKQUOTE")},r("span",{class:"icon-[lucide--quote]"})),r("span",{class:"w-px h-5 bg-base-300 mx-1"}),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>{let b=window.prompt("URL:");if(b)E("createLink",b)}},r("span",{class:"icon-[lucide--link]"})),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>{let b=document.createElement("input");b.type="file",b.onchange=(j)=>B(j.target.files[0]),b.click()}},r("span",{class:"icon-[lucide--paperclip]"})),r("div",{class:"relative"},[r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:(b)=>{b.stopPropagation(),N(),i(!i())}},r("span",{class:"icon-[lucide--smile]"})),r("div",{class:"absolute top-full left-0 mt-1 p-2 bg-base-100 border border-base-300 shadow-xl rounded-box w-52 z-50 flex flex-wrap gap-1",style:()=>i()?"display:flex":"display:none"},y.map((b)=>r("span",{class:"cursor-pointer hover:bg-base-200 p-1 rounded text-lg",onclick:(j)=>{j.stopPropagation(),E("insertText",b),i(!1)}},b)))]),r("span",{class:"w-px h-5 bg-base-300 mx-1"}),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>E("undo")},r("span",{class:"icon-[lucide--undo-2]"})),r("button",{type:"button",class:"btn btn-ghost btn-xs",onclick:()=>E("redo")},r("span",{class:"icon-[lucide--redo-2]"}))]),r("button",{type:"button",class:()=>`btn btn-ghost btn-xs ${_()?"btn-active":""}`,onclick:()=>{if(!_())l(u?.innerHTML||"");else if(u)u.innerHTML=l(),w();_(!_())}},r("span",{class:"icon-[lucide--code-2]"}))]);if(typeof document<"u"&&!document.getElementById("editor-styles")){let b=document.createElement("style");b.id="editor-styles",b.textContent=`
[contenteditable="true"] div,
[contenteditable="true"] p {
margin: 0;
padding: 0;
}
`,document.head.appendChild(b)}return r("div",{class:e("border border-base-300 rounded-box bg-base-100 overflow-hidden shadow-sm flex flex-col",o)},[c,r("div",{class:"relative flex-1 flex flex-col",onclick:()=>i(!1)},[r("div",{ref:(b)=>{if(!u&&b)u=b,b.innerHTML=L(n)||"",document.execCommand("defaultParagraphSeparator",!1,"br"),b.addEventListener("click",(j)=>{let T=j.target.closest(".resizable-img-container");if(T){let $=T.querySelector("img");if($)J($.src)}})},style:()=>`min-height:22rem;${_()?"display:none":""}`,class:"p-4 outline-none text-base-content leading-relaxed [&>div]:m-0 [&>p]:m-0 [&>div]:min-h-[1em] [&_.resizable-img-container]:hover:border-primary [&_blockquote]:border-l-4 [&_blockquote]:border-base-300 [&_blockquote]:pl-4 [&_blockquote]:italic [&_ul]:list-disc [&_ul]:pl-8 [&_ol]:list-decimal [&_ol]:pl-8",contenteditable:"true",oninput:w,onkeydown:(b)=>{if(b.key==="Tab")b.preventDefault(),E("indent")},onkeyup:()=>{C(),N()},onclick:(b)=>{C(),N(),b.stopPropagation()},onmouseup:()=>{w(),N()},onpaste:(b)=>{b.preventDefault();let j=b.clipboardData.getData("text/plain");E("insertText",j)},ondragover:(b)=>b.preventDefault(),ondrop:(b)=>{b.preventDefault(),B(b.dataTransfer.files[0])}}),r("textarea",{class:"w-full flex-1 min-h-[22rem] p-4 outline-none font-mono text-sm bg-base-200 border-0",style:()=>_()?"":"display:none",value:l,oninput:(b)=>{if(l(b.target.value),u)u.innerHTML=b.target.value;t.onchange?.(b.target.value)}})]),r("div",{class:"px-3 py-1 border-t border-base-300 bg-base-100/50 text-[10px] text-right text-base-content/60 italic"},[r("span",()=>`${a()} caracteres`)])])};var Dn={es:{close:"Cerrar",confirm:"Confirmar",cancel:"Cancelar",search:"Buscar...",loading:"Cargando...",nodata:"Sin datos"},en:{close:"Close",confirm:"Confirm",cancel:"Cancel",search:"Search...",loading:"Loading...",nodata:"No data"}},$t=k("es"),Jt=(t)=>$t(t),Kt=(t)=>()=>Dn[$t()][t]||t;var mn={...lt,...at},Fn={Locale:Jt,tt:Kt};if(typeof window<"u")Object.entries({...mn,...Fn}).forEach(([t,n])=>{Object.defineProperty(window,t,{value:n,writable:!1,configurable:!0,enumerable:!0})}),console.log("SigProUI DX installed");export{Fn as Utils,mn as Components};