galliard-ui 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,11 +5,8 @@
5
5
 
6
6
  **Galliard UI** es una librería de componentes React moderna, construida con TypeScript y Sass, diseñada para ser ligera, accesible y fácil de integrar, y tambien altamente personalizable para adecuarse a cada proyecto.
7
7
 
8
- <div align="center">
9
- <a href="TU_LINK_DE_VERCEL_AQUI" target="_blank">
10
- <img src="https://www.google.com/search?q=https://img.shields.io/badge/-%25F0%259F%2593%2596%2520Get%2520Started%2520%2526%2520Documentation-0070f3%3Fstyle%3Dfor-the-badge%26logo%3Dstorybook%26logoColor%3Dwhite" alt="Get Started" />
11
- </a>
12
- </div>
8
+ ## DOCS
9
+ [**Explorar Galliard UI**](https://galliard-ui-docs.vercel.app/)
13
10
 
14
11
  ## 🚀 Instalación
15
12
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const l=require("react/jsx-runtime"),b=require("react");function en(e,t){const o=e.icons,r=e.aliases||Object.create(null),n=Object.create(null);function i(s){if(o[s])return n[s]=[];if(!(s in n)){n[s]=null;const c=r[s]&&r[s].parent,a=c&&i(c);a&&(n[s]=[c].concat(a))}return n[s]}return Object.keys(o).concat(Object.keys(r)).forEach(i),n}const Me=Object.freeze({left:0,top:0,width:16,height:16}),se=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),be=Object.freeze({...Me,...se}),me=Object.freeze({...be,body:"",hidden:!1});function nn(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(o.rotate=r),o}function Ie(e,t){const o=nn(e,t);for(const r in me)r in se?r in e&&!(r in o)&&(o[r]=se[r]):r in t?o[r]=t[r]:r in e&&(o[r]=e[r]);return o}function tn(e,t,o){const r=e.icons,n=e.aliases||Object.create(null);let i={};function s(c){i=Ie(r[c]||n[c],i)}return s(t),o.forEach(s),Ie(e,i)}function Pe(e,t){const o=[];if(typeof e!="object"||typeof e.icons!="object")return o;e.not_found instanceof Array&&e.not_found.forEach(n=>{t(n,null),o.push(n)});const r=en(e);for(const n in r){const i=r[n];i&&(t(n,tn(e,n,i)),o.push(n))}return o}const on={provider:"",aliases:{},not_found:{},...Me};function de(e,t){for(const o in t)if(o in e&&typeof e[o]!=typeof t[o])return!1;return!0}function Ae(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!de(e,on))return null;const o=t.icons;for(const n in o){const i=o[n];if(!n||typeof i.body!="string"||!de(i,me))return null}const r=t.aliases||Object.create(null);for(const n in r){const i=r[n],s=i.parent;if(!n||typeof s!="string"||!o[s]&&!r[s]||!de(i,me))return null}return t}const $e=Object.create(null);function rn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function J(e,t){const o=$e[e]||($e[e]=Object.create(null));return o[t]||(o[t]=rn(e,t))}function Fe(e,t){return Ae(t)?Pe(t,(o,r)=>{r?e.icons[o]=r:e.missing.add(o)}):[]}function sn(e,t,o){try{if(typeof o.body=="string")return e.icons[t]={...o},!0}catch{}return!1}const Re=/^[a-z0-9]+(-[a-z0-9]+)*$/,ce=(e,t,o,r="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const c=n.pop(),a=n.pop(),u={provider:n.length>0?n[0]:r,prefix:a,name:c};return t&&!re(u)?null:u}const i=n[0],s=i.split("-");if(s.length>1){const c={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!re(c)?null:c}if(o&&r===""){const c={provider:r,prefix:"",name:i};return t&&!re(c,o)?null:c}return null},re=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;let ne=!1;function Le(e){return typeof e=="boolean"&&(ne=e),ne}function we(e){const t=typeof e=="string"?ce(e,!0,ne):e;if(t){const o=J(t.provider,t.prefix),r=t.name;return o.icons[r]||(o.missing.has(r)?null:void 0)}}function cn(e,t){const o=ce(e,!0,ne);if(!o)return!1;const r=J(o.provider,o.prefix);return t?sn(r,o.name,t):(r.missing.add(o.name),!0)}function an(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),ne&&!t&&!e.prefix){let n=!1;return Ae(e)&&(e.prefix="",Pe(e,(i,s)=>{cn(i,s)&&(n=!0)})),n}const o=e.prefix;if(!re({prefix:o,name:"a"}))return!1;const r=J(t,o);return!!Fe(r,e)}const Be=Object.freeze({width:null,height:null}),ze=Object.freeze({...Be,...se}),ln=/(-?[0-9.]*[0-9]+[0-9.]*)/g,un=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Te(e,t,o){if(t===1)return e;if(o=o||100,typeof e=="number")return Math.ceil(e*t*o)/o;if(typeof e!="string")return e;const r=e.split(ln);if(r===null||!r.length)return e;const n=[];let i=r.shift(),s=un.test(i);for(;;){if(s){const c=parseFloat(i);isNaN(c)?n.push(i):n.push(Math.ceil(c*t*o)/o)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");s=!s}}function fn(e,t="defs"){let o="";const r=e.indexOf("<"+t);for(;r>=0;){const n=e.indexOf(">",r),i=e.indexOf("</"+t);if(n===-1||i===-1)break;const s=e.indexOf(">",i);if(s===-1)break;o+=e.slice(n+1,i).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:o,content:e}}function dn(e,t){return e?"<defs>"+e+"</defs>"+t:t}function pn(e,t,o){const r=fn(e);return dn(r.defs,t+r.content+o)}const hn=e=>e==="unset"||e==="undefined"||e==="none";function mn(e,t){const o={...be,...e},r={...ze,...t},n={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,r].forEach(y=>{const p=[],h=y.hFlip,T=y.vFlip;let v=y.rotate;h?T?v+=2:(p.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),p.push("scale(-1 1)"),n.top=n.left=0):T&&(p.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),p.push("scale(1 -1)"),n.top=n.left=0);let j;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:j=n.height/2+n.top,p.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:p.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,p.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}v%2===1&&(n.left!==n.top&&(j=n.left,n.left=n.top,n.top=j),n.width!==n.height&&(j=n.width,n.width=n.height,n.height=j)),p.length&&(i=pn(i,'<g transform="'+p.join(" ")+'">',"</g>"))});const s=r.width,c=r.height,a=n.width,u=n.height;let f,d;s===null?(d=c===null?"1em":c==="auto"?u:c,f=Te(d,a/u)):(f=s==="auto"?a:s,d=c===null?Te(f,u/a):c==="auto"?u:c);const g={},m=(y,p)=>{hn(p)||(g[y]=p.toString())};m("width",f),m("height",d);const x=[n.left,n.top,a,u];return g.viewBox=x.join(" "),{attributes:g,viewBox:x,body:i}}const gn=/\sid="(\S+)"/g,xn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _n=0;function bn(e,t=xn){const o=[];let r;for(;r=gn.exec(e);)o.push(r[1]);if(!o.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(i=>{const s=typeof t=="function"?t(i):t+(_n++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}const ge=Object.create(null);function yn(e,t){ge[e]=t}function xe(e){return ge[e]||ge[""]}function ye(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const ve=Object.create(null),V=["https://api.simplesvg.com","https://api.unisvg.com"],ie=[];for(;V.length>0;)V.length===1||Math.random()>.5?ie.push(V.shift()):ie.push(V.pop());ve[""]=ye({resources:["https://api.iconify.design"].concat(ie)});function vn(e,t){const o=ye(t);return o===null?!1:(ve[e]=o,!0)}function je(e){return ve[e]}const jn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ee=jn();function In(e,t){const o=je(e);if(!o)return 0;let r;if(!o.maxURL)r=0;else{let n=0;o.resources.forEach(s=>{n=Math.max(n,s.length)});const i=t+".json?icons=";r=o.maxURL-n-o.path.length-i.length}return r}function $n(e){return e===404}const wn=(e,t,o)=>{const r=[],n=In(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},c=0;return o.forEach((a,u)=>{c+=a.length+1,c>=n&&u>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},c=a.length),s.icons.push(a)}),r.push(s),r};function Tn(e){if(typeof e=="string"){const t=je(e);if(t)return t.path}return"/"}const En=(e,t,o)=>{if(!Ee){o("abort",424);return}let r=Tn(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});r+=i+".json?"+a.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:o("abort",400);return}let n=503;Ee(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{o($n(s)?"abort":"next",s)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?o("abort",i):o("next",n)});return}setTimeout(()=>{o("success",i)})}).catch(()=>{o("next",n)})},Nn={prepare:wn,send:En};function Ge(e,t){e.forEach(o=>{const r=o.loaderCallbacks;r&&(o.loaderCallbacks=r.filter(n=>n.id!==t))})}function Sn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const r=e.provider,n=e.prefix;t.forEach(i=>{const s=i.icons,c=s.pending.length;s.pending=s.pending.filter(a=>{if(a.prefix!==n)return!0;const u=a.name;if(e.icons[u])s.loaded.push({provider:r,prefix:n,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:n,name:u});else return o=!0,!0;return!1}),s.pending.length!==c&&(o||Ge([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let kn=0;function Cn(e,t,o){const r=kn++,n=Ge.bind(null,o,r);if(!t.pending.length)return n;const i={id:r,icons:t,callback:e,abort:n};return o.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),n}function Dn(e){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort((n,i)=>n.provider!==i.provider?n.provider.localeCompare(i.provider):n.prefix!==i.prefix?n.prefix.localeCompare(i.prefix):n.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;const i=n.provider,s=n.prefix,c=n.name,a=o[i]||(o[i]=Object.create(null)),u=a[s]||(a[s]=J(i,s));let f;c in u.icons?f=t.loaded:s===""||u.missing.has(c)?f=t.missing:f=t.pending;const d={provider:i,prefix:s,name:c};f.push(d)}),t}function On(e,t=!0,o=!1){const r=[];return e.forEach(n=>{const i=typeof n=="string"?ce(n,t,o):n;i&&r.push(i)}),r}const Mn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Pn(e,t,o,r){const n=e.resources.length,i=e.random?Math.floor(Math.random()*n):e.index;let s;if(e.random){let _=e.resources.slice(0);for(s=[];_.length>1;){const I=Math.floor(Math.random()*_.length);s.push(_[I]),_=_.slice(0,I).concat(_.slice(I+1))}s=s.concat(_)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let a="pending",u=0,f,d=null,g=[],m=[];typeof r=="function"&&m.push(r);function x(){d&&(clearTimeout(d),d=null)}function y(){a==="pending"&&(a="aborted"),x(),g.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),g=[]}function p(_,I){I&&(m=[]),typeof _=="function"&&m.push(_)}function h(){return{startTime:c,payload:t,status:a,queriesSent:u,queriesPending:g.length,subscribe:p,abort:y}}function T(){a="failed",m.forEach(_=>{_(void 0,f)})}function v(){g.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),g=[]}function j(_,I,$){const S=I!=="success";switch(g=g.filter(k=>k!==_),a){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=$,T();return}if(S){f=$,g.length||(s.length?N():T());return}if(x(),v(),!e.random){const k=e.resources.indexOf(_.resource);k!==-1&&k!==e.index&&(e.index=k)}a="completed",m.forEach(k=>{k($)})}function N(){if(a!=="pending")return;x();const _=s.shift();if(_===void 0){if(g.length){d=setTimeout(()=>{x(),a==="pending"&&(v(),T())},e.timeout);return}T();return}const I={status:"pending",resource:_,callback:($,S)=>{j(I,$,S)}};g.push(I),u++,d=setTimeout(N,e.rotate),o(_,t,I.callback)}return setTimeout(N),h}function qe(e){const t={...Mn,...e};let o=[];function r(){o=o.filter(c=>c().status==="pending")}function n(c,a,u){const f=Pn(t,c,a,(d,g)=>{r(),u&&u(d,g)});return o.push(f),f}function i(c){return o.find(a=>c(a))||null}return{query:n,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ne(){}const pe=Object.create(null);function An(e){if(!pe[e]){const t=je(e);if(!t)return;const o=qe(t),r={config:t,redundancy:o};pe[e]=r}return pe[e]}function Fn(e,t,o){let r,n;if(typeof e=="string"){const i=xe(e);if(!i)return o(void 0,424),Ne;n=i.send;const s=An(e);s&&(r=s.redundancy)}else{const i=ye(e);if(i){r=qe(i);const s=e.resources?e.resources[0]:"",c=xe(s);c&&(n=c.send)}}return!r||!n?(o(void 0,424),Ne):r.query(t,n,o)().abort}function Se(){}function Rn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Sn(e)}))}function Ln(e){const t=[],o=[];return e.forEach(r=>{(r.match(Re)?t:o).push(r)}),{valid:t,invalid:o}}function K(e,t,o){function r(){const n=e.pendingIcons;t.forEach(i=>{n&&n.delete(i),e.icons[i]||e.missing.add(i)})}if(o&&typeof o=="object")try{if(!Fe(e,o).length){r();return}}catch(n){console.error(n)}r(),Rn(e)}function ke(e,t){e instanceof Promise?e.then(o=>{t(o)}).catch(()=>{t(null)}):t(e)}function Bn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:o,prefix:r}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const i=e.loadIcon;if(e.loadIcons&&(n.length>1||!i)){ke(e.loadIcons(n,r,o),f=>{K(e,n,f)});return}if(i){n.forEach(f=>{const d=i(f,r,o);ke(d,g=>{const m=g?{prefix:r,icons:{[f]:g}}:null;K(e,[f],m)})});return}const{valid:s,invalid:c}=Ln(n);if(c.length&&K(e,c,null),!s.length)return;const a=r.match(Re)?xe(o):null;if(!a){K(e,s,null);return}a.prepare(o,r,s).forEach(f=>{Fn(o,f,d=>{K(e,f.icons,d)})})}))}const zn=(e,t)=>{const o=On(e,!0,Le()),r=Dn(o);if(!r.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(r.loaded,r.missing,r.pending,Se)}),()=>{a=!1}}const n=Object.create(null),i=[];let s,c;return r.pending.forEach(a=>{const{provider:u,prefix:f}=a;if(f===c&&u===s)return;s=u,c=f,i.push(J(u,f));const d=n[u]||(n[u]=Object.create(null));d[f]||(d[f]=[])}),r.pending.forEach(a=>{const{provider:u,prefix:f,name:d}=a,g=J(u,f),m=g.pendingIcons||(g.pendingIcons=new Set);m.has(d)||(m.add(d),n[u][f].push(d))}),i.forEach(a=>{const u=n[a.provider][a.prefix];u.length&&Bn(a,u)}),t?Cn(t,r,i):Se};function Gn(e,t){const o={...e};for(const r in t){const n=t[r],i=typeof n;r in Be?(n===null||n&&(i==="string"||i==="number"))&&(o[r]=n):i===typeof o[r]&&(o[r]=r==="rotate"?n%4:n)}return o}const qn=/[\s,]+/;function Un(e,t){t.split(qn).forEach(o=>{switch(o.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Yn(e,t=0){const o=e.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(o===""){const n=parseInt(e);return isNaN(n)?0:r(n)}else if(o!==e){let n=0;switch(o){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(e.slice(0,e.length-o.length));return isNaN(i)?0:(i=i/n,i%1===0?r(i):0)}}return t}function Qn(e,t){let o=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)o+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}function Hn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Wn(e){return"data:image/svg+xml,"+Hn(e)}function Jn(e){return'url("'+Wn(e)+'")'}let ee;function Zn(){try{ee=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ee=null}}function Xn(e){return ee===void 0&&Zn(),ee?ee.createHTML(e):e}const Ue={...ze,inline:!1},Vn={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Kn={display:"inline-block"},_e={backgroundColor:"currentColor"},Ye={backgroundColor:"transparent"},Ce={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},De={WebkitMask:_e,mask:_e,background:Ye};for(const e in De){const t=De[e];for(const o in Ce)t[e+o]=Ce[o]}const et={...Ue,inline:!0};function Oe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const nt=(e,t,o)=>{const r=t.inline?et:Ue,n=Gn(r,t),i=t.mode||"svg",s={},c=t.style||{},a={...i==="svg"?Vn:{}};if(o){const p=ce(o,!1,!0);if(p){const h=["iconify"],T=["provider","prefix"];for(const v of T)p[v]&&h.push("iconify--"+p[v]);a.className=h.join(" ")}}for(let p in t){const h=t[p];if(h!==void 0)switch(p){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":a.ref=h;break;case"className":a[p]=(a[p]?a[p]+" ":"")+h;break;case"inline":case"hFlip":case"vFlip":n[p]=h===!0||h==="true"||h===1;break;case"flip":typeof h=="string"&&Un(n,h);break;case"color":s.color=h;break;case"rotate":typeof h=="string"?n[p]=Yn(h):typeof h=="number"&&(n[p]=h);break;case"ariaHidden":case"aria-hidden":h!==!0&&h!=="true"&&delete a["aria-hidden"];break;default:r[p]===void 0&&(a[p]=h)}}const u=mn(e,n),f=u.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),i==="svg"){a.style={...s,...c},Object.assign(a,f);let p=0,h=t.id;return typeof h=="string"&&(h=h.replace(/-/g,"_")),a.dangerouslySetInnerHTML={__html:Xn(bn(u.body,h?()=>h+"ID"+p++:"iconifyReact"))},b.createElement("svg",a)}const{body:d,width:g,height:m}=e,x=i==="mask"||(i==="bg"?!1:d.indexOf("currentColor")!==-1),y=Qn(d,{...f,width:g+"",height:m+""});return a.style={...s,"--svg":Jn(y),width:Oe(f.width),height:Oe(f.height),...Kn,...x?_e:Ye,...c},b.createElement("span",a)};Le(!0);yn("",Nn);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!an(r))&&console.error(o)}catch{console.error(o)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let o in t){const r="IconifyProviders["+o+"] is invalid.";try{const n=t[o];if(typeof n!="object"||!n||n.resources===void 0)continue;vn(o,n)||console.error(r)}catch{console.error(r)}}}}function Qe(e){const[t,o]=b.useState(!!e.ssr),[r,n]=b.useState({});function i(m){if(m){const x=e.icon;if(typeof x=="object")return{name:"",data:x};const y=we(x);if(y)return{name:x,data:y}}return{name:""}}const[s,c]=b.useState(i(!!e.ssr));function a(){const m=r.callback;m&&(m(),n({}))}function u(m){if(JSON.stringify(s)!==JSON.stringify(m))return a(),c(m),!0}function f(){var m;const x=e.icon;if(typeof x=="object"){u({name:"",data:x});return}const y=we(x);if(u({name:x,data:y}))if(y===void 0){const p=zn([x],f);n({callback:p})}else y&&((m=e.onLoad)===null||m===void 0||m.call(e,x))}b.useEffect(()=>(o(!0),a),[]),b.useEffect(()=>{t&&f()},[e.icon,t]);const{name:d,data:g}=s;return g?nt({...be,...g},e,d):e.children?e.children:e.fallback?e.fallback:b.createElement("span",{})}const D=b.forwardRef((e,t)=>Qe({...e,_ref:t}));b.forwardRef((e,t)=>Qe({inline:!0,...e,_ref:t}));const tt="_container_j1lh3_26",ot="_title_j1lh3_46",rt="_containerInputError_j1lh3_50",it="_containerInput_j1lh3_50",st="_inputElement_j1lh3_69",ct="_errorMessage_j1lh3_80",at="_icon_j1lh3_92",lt="_containerCustomIcon_j1lh3_99",A={container:tt,title:ot,containerInputError:rt,containerInput:it,inputElement:st,errorMessage:ct,icon:at,containerCustomIcon:lt},te=e=>{switch(e){case"none":return 0;case"sm":return 5;case"md":return 10;case"lg":return 15;case"full":return 9999;default:return 0}},ut=b.forwardRef(function({placeholder:t,value:o,setValue:r,label:n,typeInput:i,HorV:s,errorMessage:c,rounded:a,width:u,height:f,border:d,shadow:g,textSize:m,textColor:x,bgColor:y,customContainerClass:p,customInputClass:h,customIconRClass:T,customIconLClass:v,seeIconLeft:j=!0,seeIconRight:N,iconColorL:_,iconColorR:I,iconColorPass:$,iconSizeL:S,iconSizeR:k,iconSizePass:P,iconLeft:R,iconRight:L,customIconLeft:B,customIconRight:U,args:H},W){const[z,O]=b.useState(!1),G=b.useMemo(()=>te(a??"full"),[a]);return l.jsxs("div",{className:A.container,style:{flexDirection:s==="horizontal"?"row":"column"},children:[l.jsx("label",{className:A.title,style:{fontSize:m,color:x,height:s==="horizontal"?35:"auto",display:s==="horizontal"?"flex":"block",alignItems:s==="horizontal"?"center":"initial",marginRight:s==="horizontal"?10:0,marginBottom:s==="vertical"?5:0},children:n}),l.jsxs("div",{className:A.containerInputError,children:[l.jsxs("div",{className:`${A.containerInput} ${p}`,style:{borderRadius:G,width:!u&&i==="datetime-local"?"auto":u,height:f,border:d||d===void 0?"":"none",boxShadow:g?"0 0 5px #00000075":"",backgroundColor:y},children:[B?l.jsx("div",{className:`${A.containerCustomIcon} ${v}`,children:B}):j&&l.jsx(D,{icon:R??"mi:user",className:`${A.icon} ${v}`,style:{color:_,fontSize:S}}),l.jsx("input",{ref:W,className:`${A.inputElement} ${h}`,style:{fontSize:m,color:x},type:i==="password"&&z?"text":i,placeholder:t,value:o,onChange:Y=>r?.(Y.target.value),...H}),i==="password"&&l.jsx(D,{onClick:()=>O(!z),icon:z?"fluent:eye-20-filled":"fluent:eye-hide-20-filled",className:`${A.icon}`,style:{color:$,fontSize:P,marginRight:10,cursor:i=="password"?"pointer":"default"}}),U?l.jsx("div",{className:`${A.containerCustomIcon} ${T}`,children:U}):N&&l.jsx(D,{icon:L??"mi:user",className:`${A.icon} ${T}`,style:{color:I,fontSize:k}})]}),c!==""&&l.jsx("p",{className:A.errorMessage,children:c})]})]})}),ft="_container_5daeb_26",dt="_containerInputError_5daeb_50",pt="_containerInput_5daeb_50",ht="_inputElement_5daeb_69",mt="_errorMessage_5daeb_80",gt="_icon_5daeb_92",xt="_containerCustomIcon_5daeb_99",Q={container:ft,containerInputError:dt,containerInput:pt,inputElement:ht,errorMessage:mt,icon:gt,containerCustomIcon:xt},_t=b.forwardRef(function({label:t,value:o,errorMessage:r,textSize:n,textColor:i,setValue:s,useLinkable:c,link:a,iconSize:u,seeIcon:f,icon:d,iconColor:g,customInputClass:m,customLabelClass:x,customIconClass:y,customIcon:p,args:h},T){const v=b.useId();return l.jsx("div",{ref:T,className:Q.container,children:l.jsxs("div",{className:Q.containerInputError,children:[l.jsxs("div",{className:Q.containerInput,children:[l.jsx("input",{className:`${Q.inputElement} ${m}`,style:{fontSize:n,color:i},type:"checkbox",checked:o,onChange:j=>s(j.target.checked),...h}),p?l.jsx("div",{className:`${Q.containerCustomIcon} ${y}`,children:p}):f&&l.jsx(D,{icon:d??"mi:user",className:`${Q.icon} ${y}`,style:{color:g,fontSize:u}}),c?l.jsx("a",{className:x,href:a||"#",style:{fontSize:n,color:i,textDecoration:"underline"},children:t}):l.jsx("label",{htmlFor:v,className:x,style:{fontSize:n,color:i},children:t})]}),r!==""&&l.jsx("p",{className:Q.errorMessage,children:r})]})})}),bt="_container_v1dbe_26",yt="_containerInputError_v1dbe_51",vt="_containerInput_v1dbe_51",jt="_errorMessage_v1dbe_81",It="_icon_v1dbe_93",$t="_containerCustomIcon_v1dbe_100",wt="_containerInputAndOptions_v1dbe_100",Tt="_containerOptions_v1dbe_100",Et="_optionElement_v1dbe_100",Nt="_containerIconOption_v1dbe_100",St="_containerLabel_v1dbe_112",kt="_textOption_v1dbe_142",Ct="_iconArrow_v1dbe_150",E={container:bt,containerInputError:yt,containerInput:vt,errorMessage:jt,icon:It,containerCustomIcon:$t,containerInputAndOptions:wt,containerOptions:Tt,optionElement:Et,containerIconOption:Nt,containerLabel:St,textOption:kt,iconArrow:Ct},He=(e,t)=>{b.useEffect(()=>{const o=r=>{const n=e.current;!n||n.contains(r.target)||t(r)};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t])},Dt=b.forwardRef(function({label:t,value:o,setValue:r,options:n,placeholder:i,errorMessage:s,orientation:c="bottom",iconInRight:a=!1,rounded:u,border:f=!0,textSize:d="1.4em",textColor:g="#000",labelSize:m="1.4em",labelColor:x="#000",width:y=250,height:p=40,bgColor:h,shadow:T=!1,icon:v,iconSize:j=20,iconsOptionsSize:N=20,seeIcon:_=!1,seeOptionsIcons:I=!1,iconsColor:$="#000",customIcon:S,customContainerClass:k,customInputClass:P,customLabelClass:R,customIconClass:L,customOptionClass:B},U){const[H,W]=b.useState(null),[z,O]=b.useState(!1),G=b.useRef(null),Y={valueOption:null,text:i??"Selecciona una opción",icon:"hugeicons:cursor-magic-selection-04"};He(G,()=>{O(!1)}),b.useEffect(()=>{let C=[Y,...n];W(C)},[]);const Z=b.useMemo(()=>te(u??"lg"),[u]);return l.jsxs("div",{ref:U,className:`${E.container} ${k}`,children:[l.jsxs("div",{className:E.containerLabel,style:{flexDirection:a?"row-reverse":"row",justifyContent:a?"flex-end":"flex-start"},children:[S?l.jsx("div",{className:`${E.containerCustomIcon} ${L}`,style:{height:j},children:S}):_&&l.jsx(D,{icon:v??"icon-park-outline:dot",className:`${E.icon} ${L}`,style:{color:$,fontSize:j}}),l.jsx("label",{className:R,style:{fontSize:m,color:x},children:t})]}),l.jsxs("div",{className:E.containerInputError,children:[l.jsxs("div",{ref:G,className:E.containerInputAndOptions,children:[l.jsxs("div",{onClick:C=>{C.stopPropagation(),O(!z)},className:`${E.containerInput} ${P}`,style:{width:y,height:p,border:f?"":"none",boxShadow:T?"0 0 10px #00000050":"",borderRadius:Z,backgroundColor:h},children:[I&&o?.valueOption&&l.jsx(l.Fragment,{children:o?.customIcon?l.jsx("div",{className:E.containerCustomIcon,children:o?.customIcon}):o?.icon&&l.jsx(D,{icon:o.icon,className:E.icon,style:{color:o.iconColor?o.iconColor:$,fontSize:N}})}),l.jsx("p",{className:E.textOption,style:{fontSize:m,color:x,fontWeight:o?.valueOption?"bold":""},children:o?.text?o.text:Y.text}),l.jsx(D,{icon:"ri:arrow-down-s-line",className:`${E.icon} ${E.iconArrow}`})]}),z&&l.jsx("div",{className:E.containerOptions,style:{top:c==="bottom"?"calc(100% + 10px)":c==="left"||c==="right"?0:"",left:c==="right"?"calc(100% + 10px)":c==="top"||c==="bottom"?0:"",bottom:c==="top"?"calc(100% + 10px)":"",right:c==="left"?"calc(100% + 10px)":""},children:H?.map((C,le)=>l.jsxs("div",{onClick:X=>{X.stopPropagation(),O(!1),r(C)},className:`${E.optionElement} ${B}`,children:[I&&l.jsx("div",{className:`${E.containerIconOption}`,children:C.customIcon?C.customIcon:I&&l.jsx(D,{icon:C.icon??"icon-park-outline:dot",className:`${E.icon} ${E.containerIconOption}`,style:{color:C.iconColor?C.iconColor:$,fontSize:N}})}),l.jsx("p",{className:E.textOption,style:{fontSize:d,color:g},children:C.text?C.text:Y.text})]},le))})]}),s!==""&&l.jsx("p",{className:E.errorMessage,children:s})]})]})}),Ot="_container_1nag4_26",Mt="_containerInputError_1nag4_50",Pt="_errorMessage_1nag4_80",At="_icon_1nag4_92",Ft="_containerCustomIcon_1nag4_99",Rt="_containerInputFile_1nag4_114",Lt="_containerSelectedFile_1nag4_114",Bt="_textInput_1nag4_132",zt="_inputFile_1nag4_142",Gt="_fileName_1nag4_158",qt="_backdrop_1nag4_175",M={container:Ot,containerInputError:Mt,errorMessage:Pt,icon:At,containerCustomIcon:Ft,containerInputFile:Rt,containerSelectedFile:Lt,textInput:Bt,inputFile:zt,fileName:Gt,backdrop:qt},he={images:{common:"image/png, image/jpeg, image/gif, image/webp",png:"image/png",jpg:"image/jpeg, image/jpg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif",ico:"image/x-icon, image/vnd.microsoft.icon",tiff:"image/tiff",bmp:"image/bmp",heic:"image/heic, image/heif"},docs:{pdf:"application/pdf",word:".doc, .docx, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document",excel:".xls, .xlsx, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",powerpoint:".ppt, .pptx, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation",odt:"application/vnd.oasis.opendocument.text",ods:"application/vnd.oasis.opendocument.spreadsheet",odp:"application/vnd.oasis.opendocument.presentation",txt:"text/plain",rtf:"application/rtf",csv:"text/csv",markdown:"text/markdown, .md",epub:"application/epub+zip"},archives:{zip:"application/zip, application/x-zip-compressed",rar:"application/x-rar-compressed, .rar",sevenZ:"application/x-7z-compressed",tar:"application/x-tar",gz:"application/gzip",iso:"application/x-iso9660-image, .iso"},media:{audio:"audio/*",video:"video/*",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg, video/ogg",mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime",avi:"video/x-msvideo"},fonts:{woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf, application/x-font-ttf",otf:"font/otf, application/x-font-opentype",eot:"application/vnd.ms-fontobject"},code:{html:"text/html",css:"text/css",js:"text/javascript, application/javascript, .mjs",ts:"application/typescript, .ts, .tsx",json:"application/json",xml:"application/xml, text/xml",python:"text/x-python, .py",java:"text/x-java-source, .java, application/java-archive, .jar",csharp:"text/plain, .cs",cpp:"text/x-c++, .cpp, .h, .hpp",c:"text/x-c, .c",php:"application/x-httpd-php, .php",sql:"application/sql, .sql",sh:"application/x-sh, .sh",yaml:"text/yaml, .yaml, .yml"}},We=e=>{if(Array.isArray(e))return e.map(o=>We(o)).filter(o=>o!==void 0).join(", ");if(e!=="*"){if(typeof e=="string"){if(e in he){const t=he[e];return Object.values(t).join(", ")}return}if(typeof e=="object"){const t=[];return Object.keys(e).forEach(o=>{const r=e[o],n=he[o];r&&n&&r.forEach(i=>{const s=n[i];s&&t.push(s)})}),t.join(", ")}}},Ut="_btnThemeDark_1hn8j_26",Yt="_iconButton_1hn8j_58",Qt="_containerCustomIcon_1hn8j_65",Ht="_btnBorderedThemeDark_1hn8j_78",Wt="_btnThemeGreen_1hn8j_98",Jt="_btnBorderedThemeGreen_1hn8j_150",Zt="_btnThemeBlue_1hn8j_170",Xt="_btnBorderedThemeBlue_1hn8j_222",Vt="_btnThemeRed_1hn8j_242",Kt="_btnBorderedThemeRed_1hn8j_294",eo="_btnThemePurple_1hn8j_314",no="_btnBorderedThemePurple_1hn8j_366",to="_btnThemeGray_1hn8j_386",oo="_btnBorderedThemeGray_1hn8j_438",ro="_btnThemeLight_1hn8j_458",io="_btnBorderedThemeLight_1hn8j_510",so="_btnThemeYellow_1hn8j_530",co="_btnBorderedThemeYellow_1hn8j_582",oe={btnThemeDark:Ut,iconButton:Yt,containerCustomIcon:Qt,btnBorderedThemeDark:Ht,btnThemeGreen:Wt,btnBorderedThemeGreen:Jt,btnThemeBlue:Zt,btnBorderedThemeBlue:Xt,btnThemeRed:Vt,btnBorderedThemeRed:Kt,btnThemePurple:eo,btnBorderedThemePurple:no,btnThemeGray:to,btnBorderedThemeGray:oo,btnThemeLight:ro,btnBorderedThemeLight:io,btnThemeYellow:so,btnBorderedThemeYellow:co},Je=b.forwardRef(function({label:t="Texto del Botón",action:o=()=>{alert("Botón presionado")},font:r,width:n,height:i,icon:s="tabler:send",seeIcon:c=!0,textSize:a,iconColor:u,iconSize:f,styleType:d="ThemeDark",rounded:g="md",borderedStyle:m=!1,iconOn:x,padding:y,shadow:p=!1,colorShadow:h,customClassButton:T,customClassLabel:v,customClassIcon:j,customIcon:N,args:_},I){const $=b.useMemo(()=>te(g??"full"),[g]);return l.jsxs("button",{ref:I,className:`${oe[`btn${d}`]} ${m&&oe[`btnBordered${d}`]} ${T}`,style:{borderRadius:$,width:n??"auto",height:i??"auto",flexDirection:x==="left"?"row-reverse":"row",boxShadow:`${p?"0 0 7px "+(h||"#000"):""}`,padding:y},onClick:S=>{S.preventDefault(),o()},..._,children:[t&&l.jsx("p",{className:`${v}`,style:{fontSize:a,fontFamily:r},children:t}),N?l.jsx("div",{className:`${oe.containerCustomIcon} ${j}`,children:N}):c&&l.jsx(D,{icon:s,className:`${oe.iconButton} ${j}`,style:{fontSize:f,color:u}})]})}),ao=b.forwardRef(function({label:t,errorMessage:o,acceptFiles:r="*",selectedFileE:n,setSelectedFileE:i,maxMBSize:s,shadow:c=!0,textButtonCancel:a="Cancelar",width:u,height:f,bgColor:d,bgColorHover:g,labelSize:m,labelColor:x,rounded:y="md",iconSize:p=30,seeIcon:h=!0,icon:T,iconColor:v="#fff",customFIleClass:j,customSelectedClass:N,customLabelClass:_,customIconClass:I,customIcon:$,args:S},k){const P=b.useId(),R=b.useRef(0),[L,B]=b.useState(n),[U,H]=b.useState(!1),[W,z]=b.useState(null),[O,G]=b.useState(!1),Y=We(r),Z=()=>{B(null),i(null)},C=w=>{if(z(null),s){const Ke=s*1024*1024;if(w.size>Ke){z(`El archivo excede el límite de ${s} MB.`),Z();return}}B(w),i(w)},le=w=>{w.preventDefault(),w.target.files&&w.target.files[0]?C(w.target.files[0]):Z()},X=w=>{w.preventDefault(),w.stopPropagation(),R.current+=1,w.type==="dragenter"||w.type==="dragover"?G(!0):w.type==="dragleave"&&G(!1)},ue=w=>{w.preventDefault(),w.stopPropagation(),R.current-=1,R.current===0&&G(!1)},Ve=w=>{w.preventDefault(),w.stopPropagation(),G(!1),R.current=0,w.dataTransfer.files&&w.dataTransfer.files[0]&&C(w.dataTransfer.files[0])},fe=b.useMemo(()=>te(y??"lg"),[y]);return l.jsx("div",{className:M.container,children:l.jsxs("div",{className:M.containerInputError,children:[L?l.jsxs("div",{className:`${M.containerSelectedFile} ${N}`,style:{boxShadow:c?"0 0 5px #00000050":"",borderRadius:fe,width:u,height:f},children:[h&&l.jsx(D,{icon:"uim:paperclip",className:M.icon}),l.jsx("p",{className:M.fileName,children:L?.name}),l.jsx("div",{className:M.backdrop,style:{borderRadius:fe},children:l.jsx(Je,{styleType:"ThemeRed",action:Z,label:a,rounded:"full",icon:"fa:trash",iconSize:"1.4rem",iconColor:"#fff",textSize:12,padding:"7px"})})]}):l.jsxs("label",{htmlFor:P,className:`${M.containerInputFile} ${j}`,onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),onDragEnter:X,onDragLeave:ue,onDragOver:w=>w.preventDefault(),onDrop:Ve,style:{boxShadow:c?"0 0 5px #00000050":"",borderRadius:fe,backgroundColor:O?"#fff":U?g:d,borderColor:O?d||"#6936ee":"",width:u,height:f},children:[!$||O?h&&l.jsx(D,{icon:O?"tabler:drag-drop":T??"mingcute:upload-3-fill",className:`${M.icon} ${I}`,onDragEnter:X,onDragLeave:ue,style:{color:O?d||"#6936ee":v,fontSize:p}}):l.jsx("div",{className:`${M.containerCustomIcon} ${I}`,style:{height:p??"2rem"},children:$}),l.jsx("span",{className:`${M.textInput} ${_}`,style:{fontSize:m,color:O?d||"#6936ee":x},onDragEnter:X,onDragLeave:ue,children:O?"Suelta para agregar":t??"Click o arrastra un archivo"}),l.jsx("input",{ref:k,id:P,type:"file",accept:Y,className:M.inputFile,onChange:le,...S})]}),l.jsx("p",{className:M.errorMessage,children:W||o||""})]})})}),lo="_container_sbkx2_26",uo="_containerInputError_sbkx2_50",fo="_inputElement_sbkx2_69",po="_errorMessage_sbkx2_80",ho="_icon_sbkx2_92",mo="_containerCustomIcon_sbkx2_99",go="_containerLabel_sbkx2_111",xo="_containerGroupRadio_sbkx2_127",_o="_containerRadio_sbkx2_134",F={container:lo,containerInputError:uo,inputElement:fo,errorMessage:po,icon:ho,containerCustomIcon:mo,containerLabel:go,containerGroupRadio:xo,containerRadio:_o},bo=b.forwardRef(function({label:t,labelSize:o,labelColor:r,options:n,errorMessage:i,textSize:s,textColor:c,setValue:a,name:u,HorV:f="horizontal",icon:d,iconInRight:g,iconSize:m,iconColor:x,customIcon:y,seeIcon:p=!0,customInputClass:h,customLabelClass:T,customTextClass:v,customIconLabelClass:j,customContainerRadiosClass:N},_){const I=b.useId();return l.jsxs("div",{ref:_,className:F.container,children:[l.jsxs("div",{className:F.containerLabel,style:{flexDirection:g?"row-reverse":"row",justifyContent:g?"flex-end":"flex-start"},children:[y?l.jsx("div",{className:`${F.containerCustomIcon} ${j}`,style:{height:m},children:y}):p&&l.jsx(D,{icon:d??"mi:user",className:`${F.icon} ${j}`,style:{color:x,fontSize:m}}),l.jsx("label",{style:{fontSize:o,color:r},className:v,children:t})]}),l.jsxs("div",{className:F.containerInputError,children:[l.jsx("div",{className:`${F.containerGroupRadio} ${N}`,style:{flexDirection:f==="vertical"?"column":"row",alignItems:f==="vertical"?"stretch":"center",justifyContent:f==="vertical"?"center":"flex-start"},children:n.map(($,S)=>{const k=`${I}-${S}`;return l.jsxs("div",{className:F.containerRadio,children:[l.jsx("input",{id:k,className:`${F.inputElement} ${h}`,style:{fontSize:s,color:c},type:"radio",name:u,value:$.value,onChange:P=>a(P.target.value)}),$.customIcon?l.jsx("div",{className:`${F.containerCustomIcon} ${$.customIconClass}`,children:$.customIcon}):$.seeIcon&&l.jsx(D,{icon:$.icon??"mi:user",className:`${F.icon} ${$.customIconClass}`,style:{color:$.iconColor,fontSize:m}}),l.jsx("label",{htmlFor:k,className:T,style:{fontSize:s,color:c},children:$.label})]},I+$.value)})}),i!==""&&l.jsx("p",{className:F.errorMessage,children:i})]})]})}),yo="_container_msjnc_26",vo="_containerInputError_msjnc_50",jo="_containerInput_msjnc_50",Io="_inputElement_msjnc_69",$o="_errorMessage_msjnc_80",wo="_icon_msjnc_92",To="_containerCustomIcon_msjnc_99",Eo="_containerLabel_msjnc_111",No="_counterCharacter_msjnc_142",q={container:yo,containerInputError:vo,containerInput:jo,inputElement:Io,errorMessage:$o,icon:wo,containerCustomIcon:To,containerLabel:Eo,counterCharacter:No},So=b.forwardRef(function({placeholder:t,value:o,setValue:r,label:n,errorMessage:i,seeMaxCharCounter:s=!0,maxCharacters:c=300,resize:a=!0,rounded:u,width:f=250,height:d=100,maxWidth:g=500,maxHeight:m=500,border:x,shadow:y,textSize:p,textColor:h,bgColor:T,customContainerClass:v,customTextAreaClass:j,customIconClass:N,seeIcon:_,iconInRight:I=!1,iconColor:$,iconSize:S,icon:k,customIcon:P,args:R},L){const B=b.useMemo(()=>te(u??"lg"),[u]);return l.jsxs("div",{className:q.container,children:[l.jsxs("div",{className:q.containerLabel,style:{flexDirection:I?"row-reverse":"row",justifyContent:I?"flex-end":"flex-start"},children:[P?l.jsx("div",{className:`${q.containerCustomIcon} ${N}`,style:{height:S},children:P}):_&&l.jsx(D,{icon:k??"mi:user",className:`${q.icon} ${N}`,style:{color:$,fontSize:S}}),l.jsx("label",{style:{fontSize:p,color:h},children:n})]}),l.jsxs("div",{className:q.containerInputError,children:[l.jsxs("div",{className:`${q.containerInput} ${v}`,style:{borderRadius:B,border:x||x===void 0?"":"none",boxShadow:y?"0 0 5px #00000075":"",backgroundColor:T,resize:a?"both":"none",width:f,height:d,minWidth:f,minHeight:d,maxWidth:g,maxHeight:m},children:[l.jsx("textarea",{ref:L,className:`${q.inputElement} ${j}`,style:{fontSize:p,color:h},placeholder:t,value:o,maxLength:c,onChange:U=>r?.(U.target.value),...R}),s&&l.jsxs("p",{className:q.counterCharacter,children:[o?o?.length:0,"/",c]})]}),i!==""&&l.jsx("p",{className:q.errorMessage,children:i})]})]})}),ko=["America/Mexico_City","America/New_York","America/Los_Angeles","America/Bogota","America/Argentina/Buenos_Aires","America/Sao_Paulo","Europe/Madrid","Europe/London","Europe/Paris","Asia/Tokyo","Asia/Shanghai","Australia/Sydney","UTC"],ae="America/Mexico_City";function Ze(e,t){return new Intl.DateTimeFormat("es-MX",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}).formatToParts(e).reduce((r,n)=>(r[n.type]=n.value,r),{})}function Co(e){if(!e)return 0;let t;return typeof e=="string"?t=new Date(e):t=e,Math.floor(t.getTime()/1e3)}function Do(e,t=ae){if(!e)return"";const o=new Date(e*1e3),r=Ze(o,t);return`${r.year}-${r.month}-${r.day}`}function Xe(e,t=ae){if(!e)return"";const o=["ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC"],r=new Date(e*1e3),n=Ze(r,t),i=parseInt(n.month,10)-1,s=o[i]||n.month,c=n.dayPeriod?n.dayPeriod.toUpperCase().replace(/\./g,""):"";return`${n.day}/${s}/${n.year} - ${n.hour}:${n.minute} ${c}`}function Oo(e,t=ae){if(!e)return"";const o=new Date(e*1e3),n=new Intl.DateTimeFormat("es-MX",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(o).reduce((i,s)=>(i[s.type]=s.value,i),{});return`${n.year}-${n.month}-${n.day} ${n.hour}:${n.minute}`}function Mo(e,t=ae){return Xe(e,t).split(" - ")[0]}exports.ButtonGal=Je;exports.CheckBoxGal=_t;exports.DropDownGal=Dt;exports.InputFileGal=ao;exports.InputRadioGal=bo;exports.InputTextGal=ut;exports.TIMEZONES=ko;exports.TextAreaGal=So;exports.convertToUnix=Co;exports.unixToDate=Do;exports.unixToDateTime=Oo;exports.unixToDateTimeString=Xe;exports.unixToStringYMD=Mo;exports.useOnClickOutside=He;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const l=require("react/jsx-runtime"),y=require("react");function nn(e,t){const o=e.icons,r=e.aliases||Object.create(null),n=Object.create(null);function i(s){if(o[s])return n[s]=[];if(!(s in n)){n[s]=null;const c=r[s]&&r[s].parent,a=c&&i(c);a&&(n[s]=[c].concat(a))}return n[s]}return Object.keys(o).concat(Object.keys(r)).forEach(i),n}const Me=Object.freeze({left:0,top:0,width:16,height:16}),le=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),be=Object.freeze({...Me,...le}),ge=Object.freeze({...be,body:"",hidden:!1});function tn(e,t){const o={};!e.hFlip!=!t.hFlip&&(o.hFlip=!0),!e.vFlip!=!t.vFlip&&(o.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(o.rotate=r),o}function $e(e,t){const o=tn(e,t);for(const r in ge)r in le?r in e&&!(r in o)&&(o[r]=le[r]):r in t?o[r]=t[r]:r in e&&(o[r]=e[r]);return o}function on(e,t,o){const r=e.icons,n=e.aliases||Object.create(null);let i={};function s(c){i=$e(r[c]||n[c],i)}return s(t),o.forEach(s),$e(e,i)}function Pe(e,t){const o=[];if(typeof e!="object"||typeof e.icons!="object")return o;e.not_found instanceof Array&&e.not_found.forEach(n=>{t(n,null),o.push(n)});const r=nn(e);for(const n in r){const i=r[n];i&&(t(n,on(e,n,i)),o.push(n))}return o}const rn={provider:"",aliases:{},not_found:{},...Me};function pe(e,t){for(const o in t)if(o in e&&typeof e[o]!=typeof t[o])return!1;return!0}function Ae(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!pe(e,rn))return null;const o=t.icons;for(const n in o){const i=o[n];if(!n||typeof i.body!="string"||!pe(i,ge))return null}const r=t.aliases||Object.create(null);for(const n in r){const i=r[n],s=i.parent;if(!n||typeof s!="string"||!o[s]&&!r[s]||!pe(i,ge))return null}return t}const we=Object.create(null);function sn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function X(e,t){const o=we[e]||(we[e]=Object.create(null));return o[t]||(o[t]=sn(e,t))}function Re(e,t){return Ae(t)?Pe(t,(o,r)=>{r?e.icons[o]=r:e.missing.add(o)}):[]}function cn(e,t,o){try{if(typeof o.body=="string")return e.icons[t]={...o},!0}catch{}return!1}const Le=/^[a-z0-9]+(-[a-z0-9]+)*$/,ue=(e,t,o,r="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const c=n.pop(),a=n.pop(),u={provider:n.length>0?n[0]:r,prefix:a,name:c};return t&&!ce(u)?null:u}const i=n[0],s=i.split("-");if(s.length>1){const c={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!ce(c)?null:c}if(o&&r===""){const c={provider:r,prefix:"",name:i};return t&&!ce(c,o)?null:c}return null},ce=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;let oe=!1;function Be(e){return typeof e=="boolean"&&(oe=e),oe}function Te(e){const t=typeof e=="string"?ue(e,!0,oe):e;if(t){const o=X(t.provider,t.prefix),r=t.name;return o.icons[r]||(o.missing.has(r)?null:void 0)}}function an(e,t){const o=ue(e,!0,oe);if(!o)return!1;const r=X(o.provider,o.prefix);return t?cn(r,o.name,t):(r.missing.add(o.name),!0)}function ln(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),oe&&!t&&!e.prefix){let n=!1;return Ae(e)&&(e.prefix="",Pe(e,(i,s)=>{an(i,s)&&(n=!0)})),n}const o=e.prefix;if(!ce({prefix:o,name:"a"}))return!1;const r=X(t,o);return!!Re(r,e)}const ze=Object.freeze({width:null,height:null}),Ge=Object.freeze({...ze,...le}),un=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ee(e,t,o){if(t===1)return e;if(o=o||100,typeof e=="number")return Math.ceil(e*t*o)/o;if(typeof e!="string")return e;const r=e.split(un);if(r===null||!r.length)return e;const n=[];let i=r.shift(),s=fn.test(i);for(;;){if(s){const c=parseFloat(i);isNaN(c)?n.push(i):n.push(Math.ceil(c*t*o)/o)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");s=!s}}function dn(e,t="defs"){let o="";const r=e.indexOf("<"+t);for(;r>=0;){const n=e.indexOf(">",r),i=e.indexOf("</"+t);if(n===-1||i===-1)break;const s=e.indexOf(">",i);if(s===-1)break;o+=e.slice(n+1,i).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:o,content:e}}function pn(e,t){return e?"<defs>"+e+"</defs>"+t:t}function mn(e,t,o){const r=dn(e);return pn(r.defs,t+r.content+o)}const hn=e=>e==="unset"||e==="undefined"||e==="none";function gn(e,t){const o={...be,...e},r={...Ge,...t},n={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,r].forEach(b=>{const d=[],h=b.hFlip,w=b.vFlip;let v=b.rotate;h?w?v+=2:(d.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),d.push("scale(-1 1)"),n.top=n.left=0):w&&(d.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),d.push("scale(1 -1)"),n.top=n.left=0);let I;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:I=n.height/2+n.top,d.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:d.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:I=n.width/2+n.left,d.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}v%2===1&&(n.left!==n.top&&(I=n.left,n.left=n.top,n.top=I),n.width!==n.height&&(I=n.width,n.width=n.height,n.height=I)),d.length&&(i=mn(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const s=r.width,c=r.height,a=n.width,u=n.height;let f,m;s===null?(m=c===null?"1em":c==="auto"?u:c,f=Ee(m,a/u)):(f=s==="auto"?a:s,m=c===null?Ee(f,u/a):c==="auto"?u:c);const p={},g=(b,d)=>{hn(d)||(p[b]=d.toString())};g("width",f),g("height",m);const _=[n.left,n.top,a,u];return p.viewBox=_.join(" "),{attributes:p,viewBox:_,body:i}}const xn=/\sid="(\S+)"/g,_n="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yn=0;function bn(e,t=_n){const o=[];let r;for(;r=xn.exec(e);)o.push(r[1]);if(!o.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(i=>{const s=typeof t=="function"?t(i):t+(yn++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}const xe=Object.create(null);function vn(e,t){xe[e]=t}function _e(e){return xe[e]||xe[""]}function ve(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const je=Object.create(null),ee=["https://api.simplesvg.com","https://api.unisvg.com"],ae=[];for(;ee.length>0;)ee.length===1||Math.random()>.5?ae.push(ee.shift()):ae.push(ee.pop());je[""]=ve({resources:["https://api.iconify.design"].concat(ae)});function jn(e,t){const o=ve(t);return o===null?!1:(je[e]=o,!0)}function Ie(e){return je[e]}const In=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ne=In();function $n(e,t){const o=Ie(e);if(!o)return 0;let r;if(!o.maxURL)r=0;else{let n=0;o.resources.forEach(s=>{n=Math.max(n,s.length)});const i=t+".json?icons=";r=o.maxURL-n-o.path.length-i.length}return r}function wn(e){return e===404}const Tn=(e,t,o)=>{const r=[],n=$n(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},c=0;return o.forEach((a,u)=>{c+=a.length+1,c>=n&&u>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},c=a.length),s.icons.push(a)}),r.push(s),r};function En(e){if(typeof e=="string"){const t=Ie(e);if(t)return t.path}return"/"}const Nn=(e,t,o)=>{if(!Ne){o("abort",424);return}let r=En(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});r+=i+".json?"+a.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:o("abort",400);return}let n=503;Ne(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{o(wn(s)?"abort":"next",s)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?o("abort",i):o("next",n)});return}setTimeout(()=>{o("success",i)})}).catch(()=>{o("next",n)})},Sn={prepare:Tn,send:Nn};function qe(e,t){e.forEach(o=>{const r=o.loaderCallbacks;r&&(o.loaderCallbacks=r.filter(n=>n.id!==t))})}function kn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let o=!1;const r=e.provider,n=e.prefix;t.forEach(i=>{const s=i.icons,c=s.pending.length;s.pending=s.pending.filter(a=>{if(a.prefix!==n)return!0;const u=a.name;if(e.icons[u])s.loaded.push({provider:r,prefix:n,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:n,name:u});else return o=!0,!0;return!1}),s.pending.length!==c&&(o||qe([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let Cn=0;function Dn(e,t,o){const r=Cn++,n=qe.bind(null,o,r);if(!t.pending.length)return n;const i={id:r,icons:t,callback:e,abort:n};return o.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),n}function Fn(e){const t={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort((n,i)=>n.provider!==i.provider?n.provider.localeCompare(i.provider):n.prefix!==i.prefix?n.prefix.localeCompare(i.prefix):n.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;const i=n.provider,s=n.prefix,c=n.name,a=o[i]||(o[i]=Object.create(null)),u=a[s]||(a[s]=X(i,s));let f;c in u.icons?f=t.loaded:s===""||u.missing.has(c)?f=t.missing:f=t.pending;const m={provider:i,prefix:s,name:c};f.push(m)}),t}function On(e,t=!0,o=!1){const r=[];return e.forEach(n=>{const i=typeof n=="string"?ue(n,t,o):n;i&&r.push(i)}),r}const Mn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Pn(e,t,o,r){const n=e.resources.length,i=e.random?Math.floor(Math.random()*n):e.index;let s;if(e.random){let x=e.resources.slice(0);for(s=[];x.length>1;){const $=Math.floor(Math.random()*x.length);s.push(x[$]),x=x.slice(0,$).concat(x.slice($+1))}s=s.concat(x)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let a="pending",u=0,f,m=null,p=[],g=[];typeof r=="function"&&g.push(r);function _(){m&&(clearTimeout(m),m=null)}function b(){a==="pending"&&(a="aborted"),_(),p.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),p=[]}function d(x,$){$&&(g=[]),typeof x=="function"&&g.push(x)}function h(){return{startTime:c,payload:t,status:a,queriesSent:u,queriesPending:p.length,subscribe:d,abort:b}}function w(){a="failed",g.forEach(x=>{x(void 0,f)})}function v(){p.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),p=[]}function I(x,$,k){const E=$!=="success";switch(p=p.filter(j=>j!==x),a){case"pending":break;case"failed":if(E||!e.dataAfterTimeout)return;break;default:return}if($==="abort"){f=k,w();return}if(E){f=k,p.length||(s.length?S():w());return}if(_(),v(),!e.random){const j=e.resources.indexOf(x.resource);j!==-1&&j!==e.index&&(e.index=j)}a="completed",g.forEach(j=>{j(k)})}function S(){if(a!=="pending")return;_();const x=s.shift();if(x===void 0){if(p.length){m=setTimeout(()=>{_(),a==="pending"&&(v(),w())},e.timeout);return}w();return}const $={status:"pending",resource:x,callback:(k,E)=>{I($,k,E)}};p.push($),u++,m=setTimeout(S,e.rotate),o(x,t,$.callback)}return setTimeout(S),h}function Ue(e){const t={...Mn,...e};let o=[];function r(){o=o.filter(c=>c().status==="pending")}function n(c,a,u){const f=Pn(t,c,a,(m,p)=>{r(),u&&u(m,p)});return o.push(f),f}function i(c){return o.find(a=>c(a))||null}return{query:n,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Se(){}const me=Object.create(null);function An(e){if(!me[e]){const t=Ie(e);if(!t)return;const o=Ue(t),r={config:t,redundancy:o};me[e]=r}return me[e]}function Rn(e,t,o){let r,n;if(typeof e=="string"){const i=_e(e);if(!i)return o(void 0,424),Se;n=i.send;const s=An(e);s&&(r=s.redundancy)}else{const i=ve(e);if(i){r=Ue(i);const s=e.resources?e.resources[0]:"",c=_e(s);c&&(n=c.send)}}return!r||!n?(o(void 0,424),Se):r.query(t,n,o)().abort}function ke(){}function Ln(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,kn(e)}))}function Bn(e){const t=[],o=[];return e.forEach(r=>{(r.match(Le)?t:o).push(r)}),{valid:t,invalid:o}}function ne(e,t,o){function r(){const n=e.pendingIcons;t.forEach(i=>{n&&n.delete(i),e.icons[i]||e.missing.add(i)})}if(o&&typeof o=="object")try{if(!Re(e,o).length){r();return}}catch(n){console.error(n)}r(),Ln(e)}function Ce(e,t){e instanceof Promise?e.then(o=>{t(o)}).catch(()=>{t(null)}):t(e)}function zn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:o,prefix:r}=e,n=e.iconsToLoad;if(delete e.iconsToLoad,!n||!n.length)return;const i=e.loadIcon;if(e.loadIcons&&(n.length>1||!i)){Ce(e.loadIcons(n,r,o),f=>{ne(e,n,f)});return}if(i){n.forEach(f=>{const m=i(f,r,o);Ce(m,p=>{const g=p?{prefix:r,icons:{[f]:p}}:null;ne(e,[f],g)})});return}const{valid:s,invalid:c}=Bn(n);if(c.length&&ne(e,c,null),!s.length)return;const a=r.match(Le)?_e(o):null;if(!a){ne(e,s,null);return}a.prepare(o,r,s).forEach(f=>{Rn(o,f,m=>{ne(e,f.icons,m)})})}))}const Gn=(e,t)=>{const o=On(e,!0,Be()),r=Fn(o);if(!r.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(r.loaded,r.missing,r.pending,ke)}),()=>{a=!1}}const n=Object.create(null),i=[];let s,c;return r.pending.forEach(a=>{const{provider:u,prefix:f}=a;if(f===c&&u===s)return;s=u,c=f,i.push(X(u,f));const m=n[u]||(n[u]=Object.create(null));m[f]||(m[f]=[])}),r.pending.forEach(a=>{const{provider:u,prefix:f,name:m}=a,p=X(u,f),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(m)||(g.add(m),n[u][f].push(m))}),i.forEach(a=>{const u=n[a.provider][a.prefix];u.length&&zn(a,u)}),t?Dn(t,r,i):ke};function qn(e,t){const o={...e};for(const r in t){const n=t[r],i=typeof n;r in ze?(n===null||n&&(i==="string"||i==="number"))&&(o[r]=n):i===typeof o[r]&&(o[r]=r==="rotate"?n%4:n)}return o}const Un=/[\s,]+/;function Yn(e,t){t.split(Un).forEach(o=>{switch(o.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Qn(e,t=0){const o=e.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(o===""){const n=parseInt(e);return isNaN(n)?0:r(n)}else if(o!==e){let n=0;switch(o){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(e.slice(0,e.length-o.length));return isNaN(i)?0:(i=i/n,i%1===0?r(i):0)}}return t}function Hn(e,t){let o=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)o+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}function Wn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Jn(e){return"data:image/svg+xml,"+Wn(e)}function Zn(e){return'url("'+Jn(e)+'")'}let te;function Xn(){try{te=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{te=null}}function Vn(e){return te===void 0&&Xn(),te?te.createHTML(e):e}const Ye={...Ge,inline:!1},Kn={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},et={display:"inline-block"},ye={backgroundColor:"currentColor"},Qe={backgroundColor:"transparent"},De={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Fe={WebkitMask:ye,mask:ye,background:Qe};for(const e in Fe){const t=Fe[e];for(const o in De)t[e+o]=De[o]}const nt={...Ye,inline:!0};function Oe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const tt=(e,t,o)=>{const r=t.inline?nt:Ye,n=qn(r,t),i=t.mode||"svg",s={},c=t.style||{},a={...i==="svg"?Kn:{}};if(o){const d=ue(o,!1,!0);if(d){const h=["iconify"],w=["provider","prefix"];for(const v of w)d[v]&&h.push("iconify--"+d[v]);a.className=h.join(" ")}}for(let d in t){const h=t[d];if(h!==void 0)switch(d){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":a.ref=h;break;case"className":a[d]=(a[d]?a[d]+" ":"")+h;break;case"inline":case"hFlip":case"vFlip":n[d]=h===!0||h==="true"||h===1;break;case"flip":typeof h=="string"&&Yn(n,h);break;case"color":s.color=h;break;case"rotate":typeof h=="string"?n[d]=Qn(h):typeof h=="number"&&(n[d]=h);break;case"ariaHidden":case"aria-hidden":h!==!0&&h!=="true"&&delete a["aria-hidden"];break;default:r[d]===void 0&&(a[d]=h)}}const u=gn(e,n),f=u.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),i==="svg"){a.style={...s,...c},Object.assign(a,f);let d=0,h=t.id;return typeof h=="string"&&(h=h.replace(/-/g,"_")),a.dangerouslySetInnerHTML={__html:Vn(bn(u.body,h?()=>h+"ID"+d++:"iconifyReact"))},y.createElement("svg",a)}const{body:m,width:p,height:g}=e,_=i==="mask"||(i==="bg"?!1:m.indexOf("currentColor")!==-1),b=Hn(m,{...f,width:p+"",height:g+""});return a.style={...s,"--svg":Zn(b),width:Oe(f.width),height:Oe(f.height),...et,..._?ye:Qe,...c},y.createElement("span",a)};Be(!0);vn("",Sn);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!ln(r))&&console.error(o)}catch{console.error(o)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let o in t){const r="IconifyProviders["+o+"] is invalid.";try{const n=t[o];if(typeof n!="object"||!n||n.resources===void 0)continue;jn(o,n)||console.error(r)}catch{console.error(r)}}}}function He(e){const[t,o]=y.useState(!!e.ssr),[r,n]=y.useState({});function i(g){if(g){const _=e.icon;if(typeof _=="object")return{name:"",data:_};const b=Te(_);if(b)return{name:_,data:b}}return{name:""}}const[s,c]=y.useState(i(!!e.ssr));function a(){const g=r.callback;g&&(g(),n({}))}function u(g){if(JSON.stringify(s)!==JSON.stringify(g))return a(),c(g),!0}function f(){var g;const _=e.icon;if(typeof _=="object"){u({name:"",data:_});return}const b=Te(_);if(u({name:_,data:b}))if(b===void 0){const d=Gn([_],f);n({callback:d})}else b&&((g=e.onLoad)===null||g===void 0||g.call(e,_))}y.useEffect(()=>(o(!0),a),[]),y.useEffect(()=>{t&&f()},[e.icon,t]);const{name:m,data:p}=s;return p?tt({...be,...p},e,m):e.children?e.children:e.fallback?e.fallback:y.createElement("span",{})}const F=y.forwardRef((e,t)=>He({...e,_ref:t}));y.forwardRef((e,t)=>He({inline:!0,...e,_ref:t}));const ot="_container_j1lh3_26",rt="_title_j1lh3_46",it="_containerInputError_j1lh3_50",st="_containerInput_j1lh3_50",ct="_inputElement_j1lh3_69",at="_errorMessage_j1lh3_80",lt="_icon_j1lh3_92",ut="_containerCustomIcon_j1lh3_99",R={container:ot,title:rt,containerInputError:it,containerInput:st,inputElement:ct,errorMessage:at,icon:lt,containerCustomIcon:ut},re=e=>{switch(e){case"none":return 0;case"sm":return 5;case"md":return 10;case"lg":return 15;case"full":return 9999;default:return 0}},ft=y.forwardRef(function({placeholder:t,value:o,setValue:r,label:n,typeInput:i,HorV:s,errorMessage:c,font:a,fontLabel:u,rounded:f,width:m,height:p,border:g,shadow:_,textSize:b,textColor:d,bgColor:h,customContainerClass:w,customInputClass:v,customIconRClass:I,customIconLClass:S,seeIconLeft:x=!0,seeIconRight:$,iconColorL:k,iconColorR:E,iconColorPass:j,iconSizeL:O,iconSizeR:A,iconSizePass:M,iconLeft:Y,iconRight:z,customIconLeft:Q,customIconRight:G,args:W},J){const[C,B]=y.useState(!1),Z=y.useMemo(()=>re(f??"full"),[f]);return l.jsxs("div",{className:R.container,style:{flexDirection:s==="horizontal"?"row":"column"},children:[l.jsx("label",{className:R.title,style:{fontSize:b,color:d,height:s==="horizontal"?35:"auto",display:s==="horizontal"?"flex":"block",alignItems:s==="horizontal"?"center":"initial",marginRight:s==="horizontal"?10:0,marginBottom:s==="vertical"?5:0,fontFamily:u},children:n}),l.jsxs("div",{className:R.containerInputError,children:[l.jsxs("div",{className:`${R.containerInput} ${w}`,style:{borderRadius:Z,width:!m&&i==="datetime-local"?"auto":m,height:p,border:g||g===void 0?"":"none",boxShadow:_?"0 0 5px #00000075":"",backgroundColor:h},children:[Q?l.jsx("div",{className:`${R.containerCustomIcon} ${S}`,children:Q}):x&&l.jsx(F,{icon:Y??"mi:user",className:`${R.icon} ${S}`,style:{color:k,fontSize:O}}),l.jsx("input",{ref:J,className:`${R.inputElement} ${v}`,style:{fontSize:b,color:d,fontFamily:a},type:i==="password"&&C?"text":i,placeholder:t,value:o,onChange:q=>r?.(q.target.value),...W}),i==="password"&&l.jsx(F,{onClick:()=>B(!C),icon:C?"fluent:eye-20-filled":"fluent:eye-hide-20-filled",className:`${R.icon}`,style:{color:j,fontSize:M,marginRight:10,cursor:i=="password"?"pointer":"default"}}),G?l.jsx("div",{className:`${R.containerCustomIcon} ${I}`,children:G}):$&&l.jsx(F,{icon:z??"mi:user",className:`${R.icon} ${I}`,style:{color:E,fontSize:A}})]}),c!==""&&l.jsx("p",{className:R.errorMessage,children:c})]})]})}),dt="_container_5daeb_26",pt="_containerInputError_5daeb_50",mt="_containerInput_5daeb_50",ht="_inputElement_5daeb_69",gt="_errorMessage_5daeb_80",xt="_icon_5daeb_92",_t="_containerCustomIcon_5daeb_99",H={container:dt,containerInputError:pt,containerInput:mt,inputElement:ht,errorMessage:gt,icon:xt,containerCustomIcon:_t},yt=y.forwardRef(function({label:t,value:o,errorMessage:r,textSize:n,textColor:i,setValue:s,useLinkable:c,link:a,font:u,iconSize:f,seeIcon:m,icon:p,iconColor:g,customInputClass:_,customLabelClass:b,customIconClass:d,customIcon:h,args:w},v){const I=y.useId();return l.jsx("div",{ref:v,className:H.container,children:l.jsxs("div",{className:H.containerInputError,children:[l.jsxs("div",{className:H.containerInput,children:[l.jsx("input",{className:`${H.inputElement} ${_}`,style:{fontSize:n,color:i},type:"checkbox",checked:o,onChange:S=>s(S.target.checked),...w}),h?l.jsx("div",{className:`${H.containerCustomIcon} ${d}`,children:h}):m&&l.jsx(F,{icon:p??"mi:user",className:`${H.icon} ${d}`,style:{color:g,fontSize:f}}),c?l.jsx("a",{className:b,href:a||"#",style:{fontSize:n,color:i,textDecoration:"underline",fontFamily:u},children:t}):l.jsx("label",{htmlFor:I,className:b,style:{fontSize:n,color:i,fontFamily:u},children:t})]}),r!==""&&l.jsx("p",{className:H.errorMessage,children:r})]})})}),bt="_container_v1dbe_26",vt="_containerInputError_v1dbe_51",jt="_containerInput_v1dbe_51",It="_errorMessage_v1dbe_81",$t="_icon_v1dbe_93",wt="_containerCustomIcon_v1dbe_100",Tt="_containerInputAndOptions_v1dbe_100",Et="_containerOptions_v1dbe_100",Nt="_optionElement_v1dbe_100",St="_containerIconOption_v1dbe_100",kt="_containerLabel_v1dbe_112",Ct="_textOption_v1dbe_142",Dt="_iconArrow_v1dbe_150",N={container:bt,containerInputError:vt,containerInput:jt,errorMessage:It,icon:$t,containerCustomIcon:wt,containerInputAndOptions:Tt,containerOptions:Et,optionElement:Nt,containerIconOption:St,containerLabel:kt,textOption:Ct,iconArrow:Dt},We=(e,t)=>{y.useEffect(()=>{const o=r=>{const n=e.current;!n||n.contains(r.target)||t(r)};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,t])},Ft=y.forwardRef(function({label:t,value:o,setValue:r,options:n,placeholder:i,errorMessage:s,orientation:c="bottom",iconInRight:a=!1,font:u,fontLabel:f,rounded:m,border:p=!0,textSize:g="1.4em",textColor:_="#000",labelSize:b="1.4em",labelColor:d="#000",width:h=250,height:w=40,bgColor:v,shadow:I=!1,icon:S,iconSize:x=20,iconsOptionsSize:$=20,seeIcon:k=!1,seeOptionsIcons:E=!1,iconsColor:j="#000",customIcon:O,customContainerClass:A,customInputClass:M,customLabelClass:Y,customIconClass:z,customOptionClass:Q},G){const[W,J]=y.useState(null),[C,B]=y.useState(!1),Z=y.useRef(null),q={valueOption:null,text:i??"Selecciona una opción",icon:"hugeicons:cursor-magic-selection-04"};We(Z,()=>{B(!1)}),y.useEffect(()=>{let D=[q,...n];J(D)},[]);const ie=y.useMemo(()=>re(m??"lg"),[m]);return l.jsxs("div",{ref:G,className:`${N.container} ${A}`,children:[l.jsxs("div",{className:N.containerLabel,style:{flexDirection:a?"row-reverse":"row",justifyContent:a?"flex-end":"flex-start"},children:[O?l.jsx("div",{className:`${N.containerCustomIcon} ${z}`,style:{height:x},children:O}):k&&l.jsx(F,{icon:S??"icon-park-outline:dot",className:`${N.icon} ${z}`,style:{color:j,fontSize:x}}),l.jsx("label",{className:Y,style:{fontSize:b,color:d,fontFamily:f},children:t})]}),l.jsxs("div",{className:N.containerInputError,children:[l.jsxs("div",{ref:Z,className:N.containerInputAndOptions,children:[l.jsxs("div",{onClick:D=>{D.stopPropagation(),B(!C)},className:`${N.containerInput} ${M}`,style:{width:h,height:w,border:p?"":"none",boxShadow:I?"0 0 10px #00000050":"",borderRadius:ie,backgroundColor:v},children:[E&&o?.valueOption&&l.jsx(l.Fragment,{children:o?.customIcon?l.jsx("div",{className:N.containerCustomIcon,children:o?.customIcon}):o?.icon&&l.jsx(F,{icon:o.icon,className:N.icon,style:{color:o.iconColor?o.iconColor:j,fontSize:$}})}),l.jsx("p",{className:N.textOption,style:{fontSize:b,color:d,fontWeight:o?.valueOption?"bold":"",fontFamily:u},children:o?.text?o.text:q.text}),l.jsx(F,{icon:"ri:arrow-down-s-line",className:`${N.icon} ${N.iconArrow}`})]}),C&&l.jsx("div",{className:N.containerOptions,style:{top:c==="bottom"?"calc(100% + 10px)":c==="left"||c==="right"?0:"",left:c==="right"?"calc(100% + 10px)":c==="top"||c==="bottom"?0:"",bottom:c==="top"?"calc(100% + 10px)":"",right:c==="left"?"calc(100% + 10px)":""},children:W?.map((D,V)=>l.jsxs("div",{onClick:K=>{K.stopPropagation(),B(!1),r(D)},className:`${N.optionElement} ${Q}`,children:[E&&l.jsx("div",{className:`${N.containerIconOption}`,children:D.customIcon?D.customIcon:E&&l.jsx(F,{icon:D.icon??"icon-park-outline:dot",className:`${N.icon} ${N.containerIconOption}`,style:{color:D.iconColor?D.iconColor:j,fontSize:$}})}),l.jsx("p",{className:N.textOption,style:{fontSize:g,color:_,fontFamily:u},children:D.text?D.text:q.text})]},V))})]}),s!==""&&l.jsx("p",{className:N.errorMessage,children:s})]})]})}),Ot="_container_1nag4_26",Mt="_containerInputError_1nag4_50",Pt="_errorMessage_1nag4_80",At="_icon_1nag4_92",Rt="_containerCustomIcon_1nag4_99",Lt="_containerInputFile_1nag4_114",Bt="_containerSelectedFile_1nag4_114",zt="_textInput_1nag4_132",Gt="_inputFile_1nag4_142",qt="_fileName_1nag4_158",Ut="_backdrop_1nag4_175",P={container:Ot,containerInputError:Mt,errorMessage:Pt,icon:At,containerCustomIcon:Rt,containerInputFile:Lt,containerSelectedFile:Bt,textInput:zt,inputFile:Gt,fileName:qt,backdrop:Ut},he={images:{common:"image/png, image/jpeg, image/gif, image/webp",png:"image/png",jpg:"image/jpeg, image/jpg",gif:"image/gif",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif",ico:"image/x-icon, image/vnd.microsoft.icon",tiff:"image/tiff",bmp:"image/bmp",heic:"image/heic, image/heif"},docs:{pdf:"application/pdf",word:".doc, .docx, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document",excel:".xls, .xlsx, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",powerpoint:".ppt, .pptx, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation",odt:"application/vnd.oasis.opendocument.text",ods:"application/vnd.oasis.opendocument.spreadsheet",odp:"application/vnd.oasis.opendocument.presentation",txt:"text/plain",rtf:"application/rtf",csv:"text/csv",markdown:"text/markdown, .md",epub:"application/epub+zip"},archives:{zip:"application/zip, application/x-zip-compressed",rar:"application/x-rar-compressed, .rar",sevenZ:"application/x-7z-compressed",tar:"application/x-tar",gz:"application/gzip",iso:"application/x-iso9660-image, .iso"},media:{audio:"audio/*",video:"video/*",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg, video/ogg",mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime",avi:"video/x-msvideo"},fonts:{woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf, application/x-font-ttf",otf:"font/otf, application/x-font-opentype",eot:"application/vnd.ms-fontobject"},code:{html:"text/html",css:"text/css",js:"text/javascript, application/javascript, .mjs",ts:"application/typescript, .ts, .tsx",json:"application/json",xml:"application/xml, text/xml",python:"text/x-python, .py",java:"text/x-java-source, .java, application/java-archive, .jar",csharp:"text/plain, .cs",cpp:"text/x-c++, .cpp, .h, .hpp",c:"text/x-c, .c",php:"application/x-httpd-php, .php",sql:"application/sql, .sql",sh:"application/x-sh, .sh",yaml:"text/yaml, .yaml, .yml"}},Je=e=>{if(Array.isArray(e))return e.map(o=>Je(o)).filter(o=>o!==void 0).join(", ");if(e!=="*"){if(typeof e=="string"){if(e in he){const t=he[e];return Object.values(t).join(", ")}return}if(typeof e=="object"){const t=[];return Object.keys(e).forEach(o=>{const r=e[o],n=he[o];r&&n&&r.forEach(i=>{const s=n[i];s&&t.push(s)})}),t.join(", ")}}},Yt="_btnThemeDark_1hn8j_26",Qt="_iconButton_1hn8j_58",Ht="_containerCustomIcon_1hn8j_65",Wt="_btnBorderedThemeDark_1hn8j_78",Jt="_btnThemeGreen_1hn8j_98",Zt="_btnBorderedThemeGreen_1hn8j_150",Xt="_btnThemeBlue_1hn8j_170",Vt="_btnBorderedThemeBlue_1hn8j_222",Kt="_btnThemeRed_1hn8j_242",eo="_btnBorderedThemeRed_1hn8j_294",no="_btnThemePurple_1hn8j_314",to="_btnBorderedThemePurple_1hn8j_366",oo="_btnThemeGray_1hn8j_386",ro="_btnBorderedThemeGray_1hn8j_438",io="_btnThemeLight_1hn8j_458",so="_btnBorderedThemeLight_1hn8j_510",co="_btnThemeYellow_1hn8j_530",ao="_btnBorderedThemeYellow_1hn8j_582",se={btnThemeDark:Yt,iconButton:Qt,containerCustomIcon:Ht,btnBorderedThemeDark:Wt,btnThemeGreen:Jt,btnBorderedThemeGreen:Zt,btnThemeBlue:Xt,btnBorderedThemeBlue:Vt,btnThemeRed:Kt,btnBorderedThemeRed:eo,btnThemePurple:no,btnBorderedThemePurple:to,btnThemeGray:oo,btnBorderedThemeGray:ro,btnThemeLight:io,btnBorderedThemeLight:so,btnThemeYellow:co,btnBorderedThemeYellow:ao},Ze=y.forwardRef(function({label:t="Texto del Botón",action:o=()=>{alert("Botón presionado")},font:r,width:n,height:i,bgColor:s,txtColor:c,icon:a="tabler:send",seeIcon:u=!0,textSize:f,iconColor:m,iconSize:p,styleType:g="ThemeDark",rounded:_="md",borderedStyle:b=!1,iconOn:d,padding:h,shadow:w=!1,colorShadow:v,customClassButton:I,customClassLabel:S,customClassIcon:x,customIcon:$,args:k},E){const j=y.useMemo(()=>re(_??"full"),[_]);return l.jsxs("button",{ref:E,className:`${se[`btn${g}`]} ${b&&se[`btnBordered${g}`]} ${I}`,style:{borderRadius:j,width:n??"auto",height:i??"auto",flexDirection:d==="left"?"row-reverse":"row",boxShadow:`${w?"0 0 7px "+(v||"#000"):""}`,padding:h,background:s},onClick:O=>{O.preventDefault(),o()},...k,children:[t&&l.jsx("p",{className:`${S}`,style:{fontSize:f,fontFamily:r,color:c},children:t}),$?l.jsx("div",{className:`${se.containerCustomIcon} ${x}`,children:$}):u&&l.jsx(F,{icon:a,className:`${se.iconButton} ${x}`,style:{fontSize:p,color:m}})]})}),lo=y.forwardRef(function({label:t,errorMessage:o,acceptFiles:r="*",selectedFileE:n,setSelectedFileE:i,maxMBSize:s,shadow:c=!0,textButtonCancel:a="Cancelar",font:u,width:f,height:m,bgColor:p,bgColorHover:g,labelSize:_,labelColor:b,rounded:d="md",iconSize:h=30,seeIcon:w=!0,icon:v,iconColor:I="#fff",customFIleClass:S,customSelectedClass:x,customLabelClass:$,customIconClass:k,customIcon:E,args:j},O){const A=y.useId(),M=y.useRef(0),[Y,z]=y.useState(n),[Q,G]=y.useState(!1),[W,J]=y.useState(null),[C,B]=y.useState(!1),Z=Je(r),q=()=>{z(null),i(null)},ie=T=>{if(J(null),s){const en=s*1024*1024;if(T.size>en){J(`El archivo excede el límite de ${s} MB.`),q();return}}z(T),i(T)},D=T=>{T.preventDefault(),T.target.files&&T.target.files[0]?ie(T.target.files[0]):q()},V=T=>{T.preventDefault(),T.stopPropagation(),M.current+=1,T.type==="dragenter"||T.type==="dragover"?B(!0):T.type==="dragleave"&&B(!1)},K=T=>{T.preventDefault(),T.stopPropagation(),M.current-=1,M.current===0&&B(!1)},Ke=T=>{T.preventDefault(),T.stopPropagation(),B(!1),M.current=0,T.dataTransfer.files&&T.dataTransfer.files[0]&&ie(T.dataTransfer.files[0])},de=y.useMemo(()=>re(d??"lg"),[d]);return l.jsx("div",{className:P.container,children:l.jsxs("div",{className:P.containerInputError,children:[Y?l.jsxs("div",{className:`${P.containerSelectedFile} ${x}`,style:{boxShadow:c?"0 0 5px #00000050":"",borderRadius:de,width:f,height:m},children:[w&&l.jsx(F,{icon:"uim:paperclip",className:P.icon}),l.jsx("p",{className:P.fileName,style:{fontFamily:u},children:Y?.name}),l.jsx("div",{className:P.backdrop,style:{borderRadius:de},children:l.jsx(Ze,{styleType:"ThemeRed",action:q,label:a,rounded:"full",icon:"fa:trash",iconSize:"1.4rem",iconColor:"#fff",textSize:12,padding:"7px"})})]}):l.jsxs("label",{htmlFor:A,className:`${P.containerInputFile} ${S}`,onMouseEnter:()=>G(!0),onMouseLeave:()=>G(!1),onDragEnter:V,onDragLeave:K,onDragOver:T=>T.preventDefault(),onDrop:Ke,style:{boxShadow:c?"0 0 5px #00000050":"",borderRadius:de,backgroundColor:C?"#fff":Q?g:p,borderColor:C?p||"#6936ee":"",width:f,height:m,fontFamily:u},children:[!E||C?w&&l.jsx(F,{icon:C?"tabler:drag-drop":v??"mingcute:upload-3-fill",className:`${P.icon} ${k}`,onDragEnter:V,onDragLeave:K,style:{color:C?p||"#6936ee":I,fontSize:h}}):l.jsx("div",{className:`${P.containerCustomIcon} ${k}`,style:{height:h??"2rem"},children:E}),l.jsx("span",{className:`${P.textInput} ${$}`,style:{fontSize:_,color:C?p||"#6936ee":b,fontFamily:u},onDragEnter:V,onDragLeave:K,children:C?"Suelta para agregar":t??"Click o arrastra un archivo"}),l.jsx("input",{ref:O,id:A,type:"file",accept:Z,className:P.inputFile,onChange:D,...j})]}),l.jsx("p",{className:P.errorMessage,children:W||o||""})]})})}),uo="_container_sbkx2_26",fo="_containerInputError_sbkx2_50",po="_inputElement_sbkx2_69",mo="_errorMessage_sbkx2_80",ho="_icon_sbkx2_92",go="_containerCustomIcon_sbkx2_99",xo="_containerLabel_sbkx2_111",_o="_containerGroupRadio_sbkx2_127",yo="_containerRadio_sbkx2_134",L={container:uo,containerInputError:fo,inputElement:po,errorMessage:mo,icon:ho,containerCustomIcon:go,containerLabel:xo,containerGroupRadio:_o,containerRadio:yo},bo=y.forwardRef(function({label:t,labelSize:o,labelColor:r,options:n,errorMessage:i,textSize:s,textColor:c,setValue:a,name:u,font:f,fontLabel:m,HorV:p="horizontal",icon:g,iconInRight:_,iconSize:b,iconColor:d,customIcon:h,seeIcon:w=!0,customInputClass:v,customLabelClass:I,customTextClass:S,customIconLabelClass:x,customContainerRadiosClass:$},k){const E=y.useId();return l.jsxs("div",{ref:k,className:L.container,children:[l.jsxs("div",{className:L.containerLabel,style:{flexDirection:_?"row-reverse":"row",justifyContent:_?"flex-end":"flex-start"},children:[h?l.jsx("div",{className:`${L.containerCustomIcon} ${x}`,style:{height:b},children:h}):w&&l.jsx(F,{icon:g??"mi:user",className:`${L.icon} ${x}`,style:{color:d,fontSize:b}}),l.jsx("label",{style:{fontSize:o,color:r,fontFamily:m},className:S,children:t})]}),l.jsxs("div",{className:L.containerInputError,children:[l.jsx("div",{className:`${L.containerGroupRadio} ${$}`,style:{flexDirection:p==="vertical"?"column":"row",alignItems:p==="vertical"?"stretch":"center",justifyContent:p==="vertical"?"center":"flex-start"},children:n.map((j,O)=>{const A=`${E}-${O}`;return l.jsxs("div",{className:L.containerRadio,children:[l.jsx("input",{id:A,className:`${L.inputElement} ${v}`,style:{fontSize:s,color:c},type:"radio",name:u,value:j.value,onChange:M=>a(M.target.value)}),j.customIcon?l.jsx("div",{className:`${L.containerCustomIcon} ${j.customIconClass}`,children:j.customIcon}):j.seeIcon&&l.jsx(F,{icon:j.icon??"mi:user",className:`${L.icon} ${j.customIconClass}`,style:{color:j.iconColor,fontSize:b}}),l.jsx("label",{htmlFor:A,className:I,style:{fontSize:s,color:c,fontFamily:f},children:j.label})]},E+j.value)})}),i!==""&&l.jsx("p",{className:L.errorMessage,children:i})]})]})}),vo="_container_msjnc_26",jo="_containerInputError_msjnc_50",Io="_containerInput_msjnc_50",$o="_inputElement_msjnc_69",wo="_errorMessage_msjnc_80",To="_icon_msjnc_92",Eo="_containerCustomIcon_msjnc_99",No="_containerLabel_msjnc_111",So="_counterCharacter_msjnc_142",U={container:vo,containerInputError:jo,containerInput:Io,inputElement:$o,errorMessage:wo,icon:To,containerCustomIcon:Eo,containerLabel:No,counterCharacter:So},ko=y.forwardRef(function({placeholder:t,value:o,setValue:r,label:n,errorMessage:i,seeMaxCharCounter:s=!0,maxCharacters:c=300,resize:a=!0,font:u,fontLabel:f,rounded:m,width:p=250,height:g=100,maxWidth:_=500,maxHeight:b=500,border:d,shadow:h,textSize:w,textColor:v,bgColor:I,customContainerClass:S,customTextAreaClass:x,customIconClass:$,seeIcon:k,iconInRight:E=!1,iconColor:j,iconSize:O,icon:A,customIcon:M,args:Y},z){const Q=y.useMemo(()=>re(m??"lg"),[m]);return l.jsxs("div",{className:U.container,children:[l.jsxs("div",{className:U.containerLabel,style:{flexDirection:E?"row-reverse":"row",justifyContent:E?"flex-end":"flex-start"},children:[M?l.jsx("div",{className:`${U.containerCustomIcon} ${$}`,style:{height:O},children:M}):k&&l.jsx(F,{icon:A??"mi:user",className:`${U.icon} ${$}`,style:{color:j,fontSize:O}}),l.jsx("label",{style:{fontSize:w,color:v,fontFamily:f},children:n})]}),l.jsxs("div",{className:U.containerInputError,children:[l.jsxs("div",{className:`${U.containerInput} ${S}`,style:{borderRadius:Q,border:d||d===void 0?"":"none",boxShadow:h?"0 0 5px #00000075":"",backgroundColor:I,resize:a?"both":"none",width:p,height:g,minWidth:p,minHeight:g,maxWidth:_,maxHeight:b},children:[l.jsx("textarea",{ref:z,className:`${U.inputElement} ${x}`,style:{fontSize:w,color:v,fontFamily:u},placeholder:t,value:o,maxLength:c,onChange:G=>r?.(G.target.value),...Y}),s&&l.jsxs("p",{className:U.counterCharacter,children:[o?o?.length:0,"/",c]})]}),i!==""&&l.jsx("p",{className:U.errorMessage,children:i})]})]})}),Co=["America/Mexico_City","America/New_York","America/Los_Angeles","America/Bogota","America/Argentina/Buenos_Aires","America/Sao_Paulo","Europe/Madrid","Europe/London","Europe/Paris","Asia/Tokyo","Asia/Shanghai","Australia/Sydney","UTC"],fe="America/Mexico_City";function Xe(e,t){return new Intl.DateTimeFormat("es-MX",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}).formatToParts(e).reduce((r,n)=>(r[n.type]=n.value,r),{})}function Do(e){if(!e)return 0;let t;return typeof e=="string"?t=new Date(e):t=e,Math.floor(t.getTime()/1e3)}function Fo(e,t=fe){if(!e)return"";const o=new Date(e*1e3),r=Xe(o,t);return`${r.year}-${r.month}-${r.day}`}function Ve(e,t=fe){if(!e)return"";const o=["ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC"],r=new Date(e*1e3),n=Xe(r,t),i=parseInt(n.month,10)-1,s=o[i]||n.month,c=n.dayPeriod?n.dayPeriod.toUpperCase().replace(/\./g,""):"";return`${n.day}/${s}/${n.year} - ${n.hour}:${n.minute} ${c}`}function Oo(e,t=fe){if(!e)return"";const o=new Date(e*1e3),n=new Intl.DateTimeFormat("es-MX",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(o).reduce((i,s)=>(i[s.type]=s.value,i),{});return`${n.year}-${n.month}-${n.day} ${n.hour}:${n.minute}`}function Mo(e,t=fe){return Ve(e,t).split(" - ")[0]}exports.ButtonGal=Ze;exports.CheckBoxGal=yt;exports.DropDownGal=Ft;exports.InputFileGal=lo;exports.InputRadioGal=bo;exports.InputTextGal=ft;exports.TIMEZONES=Co;exports.TextAreaGal=ko;exports.convertToUnix=Do;exports.unixToDate=Fo;exports.unixToDateTime=Oo;exports.unixToDateTimeString=Ve;exports.unixToStringYMD=Mo;exports.useOnClickOutside=We;