galliard-ui 1.0.1 → 1.0.2

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),y=require("react");function et(e,n){const o=e.icons,r=e.aliases||Object.create(null),t=Object.create(null);function i(s){if(o[s])return t[s]=[];if(!(s in t)){t[s]=null;const c=r[s]&&r[s].parent,a=c&&i(c);a&&(t[s]=[c].concat(a))}return t[s]}return Object.keys(o).concat(Object.keys(r)).forEach(i),t}const Me=Object.freeze({left:0,top:0,width:16,height:16}),se=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ye=Object.freeze({...Me,...se}),he=Object.freeze({...ye,body:"",hidden:!1});function tt(e,n){const o={};!e.hFlip!=!n.hFlip&&(o.hFlip=!0),!e.vFlip!=!n.vFlip&&(o.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(o.rotate=r),o}function je(e,n){const o=tt(e,n);for(const r in he)r in se?r in e&&!(r in o)&&(o[r]=se[r]):r in n?o[r]=n[r]:r in e&&(o[r]=e[r]);return o}function nt(e,n,o){const r=e.icons,t=e.aliases||Object.create(null);let i={};function s(c){i=je(r[c]||t[c],i)}return s(n),o.forEach(s),je(e,i)}function Pe(e,n){const o=[];if(typeof e!="object"||typeof e.icons!="object")return o;e.not_found instanceof Array&&e.not_found.forEach(t=>{n(t,null),o.push(t)});const r=et(e);for(const t in r){const i=r[t];i&&(n(t,nt(e,t,i)),o.push(t))}return o}const ot={provider:"",aliases:{},not_found:{},...Me};function de(e,n){for(const o in n)if(o in e&&typeof e[o]!=typeof n[o])return!1;return!0}function Ae(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!de(e,ot))return null;const o=n.icons;for(const t in o){const i=o[t];if(!t||typeof i.body!="string"||!de(i,he))return null}const r=n.aliases||Object.create(null);for(const t in r){const i=r[t],s=i.parent;if(!t||typeof s!="string"||!o[s]&&!r[s]||!de(i,he))return null}return n}const we=Object.create(null);function rt(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function J(e,n){const o=we[e]||(we[e]=Object.create(null));return o[n]||(o[n]=rt(e,n))}function Fe(e,n){return Ae(n)?Pe(n,(o,r)=>{r?e.icons[o]=r:e.missing.add(o)}):[]}function it(e,n,o){try{if(typeof o.body=="string")return e.icons[n]={...o},!0}catch{}return!1}const Re=/^[a-z0-9]+(-[a-z0-9]+)*$/,ce=(e,n,o,r="")=>{const t=e.split(":");if(e.slice(0,1)==="@"){if(t.length<2||t.length>3)return null;r=t.shift().slice(1)}if(t.length>3||!t.length)return null;if(t.length>1){const c=t.pop(),a=t.pop(),u={provider:t.length>0?t[0]:r,prefix:a,name:c};return n&&!re(u)?null:u}const i=t[0],s=i.split("-");if(s.length>1){const c={provider:r,prefix:s.shift(),name:s.join("-")};return n&&!re(c)?null:c}if(o&&r===""){const c={provider:r,prefix:"",name:i};return n&&!re(c,o)?null:c}return null},re=(e,n)=>e?!!((n&&e.prefix===""||e.prefix)&&e.name):!1;let te=!1;function Le(e){return typeof e=="boolean"&&(te=e),te}function $e(e){const n=typeof e=="string"?ce(e,!0,te):e;if(n){const o=J(n.provider,n.prefix),r=n.name;return o.icons[r]||(o.missing.has(r)?null:void 0)}}function st(e,n){const o=ce(e,!0,te);if(!o)return!1;const r=J(o.provider,o.prefix);return n?it(r,o.name,n):(r.missing.add(o.name),!0)}function ct(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),te&&!n&&!e.prefix){let t=!1;return Ae(e)&&(e.prefix="",Pe(e,(i,s)=>{st(i,s)&&(t=!0)})),t}const o=e.prefix;if(!re({prefix:o,name:"a"}))return!1;const r=J(n,o);return!!Fe(r,e)}const Be=Object.freeze({width:null,height:null}),ze=Object.freeze({...Be,...se}),at=/(-?[0-9.]*[0-9]+[0-9.]*)/g,lt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Te(e,n,o){if(n===1)return e;if(o=o||100,typeof e=="number")return Math.ceil(e*n*o)/o;if(typeof e!="string")return e;const r=e.split(at);if(r===null||!r.length)return e;const t=[];let i=r.shift(),s=lt.test(i);for(;;){if(s){const c=parseFloat(i);isNaN(c)?t.push(i):t.push(Math.ceil(c*n*o)/o)}else t.push(i);if(i=r.shift(),i===void 0)return t.join("");s=!s}}function ut(e,n="defs"){let o="";const r=e.indexOf("<"+n);for(;r>=0;){const t=e.indexOf(">",r),i=e.indexOf("</"+n);if(t===-1||i===-1)break;const s=e.indexOf(">",i);if(s===-1)break;o+=e.slice(t+1,i).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:o,content:e}}function ft(e,n){return e?"<defs>"+e+"</defs>"+n:n}function dt(e,n,o){const r=ut(e);return ft(r.defs,n+r.content+o)}const pt=e=>e==="unset"||e==="undefined"||e==="none";function mt(e,n){const o={...ye,...e},r={...ze,...n},t={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,r].forEach(b=>{const p=[],m=b.hFlip,T=b.vFlip;let v=b.rotate;m?T?v+=2:(p.push("translate("+(t.width+t.left).toString()+" "+(0-t.top).toString()+")"),p.push("scale(-1 1)"),t.top=t.left=0):T&&(p.push("translate("+(0-t.left).toString()+" "+(t.height+t.top).toString()+")"),p.push("scale(1 -1)"),t.top=t.left=0);let I;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:I=t.height/2+t.top,p.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:p.unshift("rotate(180 "+(t.width/2+t.left).toString()+" "+(t.height/2+t.top).toString()+")");break;case 3:I=t.width/2+t.left,p.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}v%2===1&&(t.left!==t.top&&(I=t.left,t.left=t.top,t.top=I),t.width!==t.height&&(I=t.width,t.width=t.height,t.height=I)),p.length&&(i=dt(i,'<g transform="'+p.join(" ")+'">',"</g>"))});const s=r.width,c=r.height,a=t.width,u=t.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={},h=(b,p)=>{pt(p)||(g[b]=p.toString())};h("width",f),h("height",d);const x=[t.left,t.top,a,u];return g.viewBox=x.join(" "),{attributes:g,viewBox:x,body:i}}const ht=/\sid="(\S+)"/g,gt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let xt=0;function _t(e,n=gt){const o=[];let r;for(;r=ht.exec(e);)o.push(r[1]);if(!o.length)return e;const t="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(i=>{const s=typeof n=="function"?n(i):n+(xt++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+t+"$3")}),e=e.replace(new RegExp(t,"g"),""),e}const ge=Object.create(null);function yt(e,n){ge[e]=n}function xe(e){return ge[e]||ge[""]}function be(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,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[""]=be({resources:["https://api.iconify.design"].concat(ie)});function bt(e,n){const o=be(n);return o===null?!1:(ve[e]=o,!0)}function Ie(e){return ve[e]}const vt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ee=vt();function It(e,n){const o=Ie(e);if(!o)return 0;let r;if(!o.maxURL)r=0;else{let t=0;o.resources.forEach(s=>{t=Math.max(t,s.length)});const i=n+".json?icons=";r=o.maxURL-t-o.path.length-i.length}return r}function jt(e){return e===404}const wt=(e,n,o)=>{const r=[],t=It(e,n),i="icons";let s={type:i,provider:e,prefix:n,icons:[]},c=0;return o.forEach((a,u)=>{c+=a.length+1,c>=t&&u>0&&(r.push(s),s={type:i,provider:e,prefix:n,icons:[]},c=a.length),s.icons.push(a)}),r.push(s),r};function $t(e){if(typeof e=="string"){const n=Ie(e);if(n)return n.path}return"/"}const Tt=(e,n,o)=>{if(!Ee){o("abort",424);return}let r=$t(n.provider);switch(n.type){case"icons":{const i=n.prefix,c=n.icons.join(","),a=new URLSearchParams({icons:c});r+=i+".json?"+a.toString();break}case"custom":{const i=n.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:o("abort",400);return}let t=503;Ee(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{o(jt(s)?"abort":"next",s)});return}return t=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?o("abort",i):o("next",t)});return}setTimeout(()=>{o("success",i)})}).catch(()=>{o("next",t)})},Et={prepare:wt,send:Tt};function Ge(e,n){e.forEach(o=>{const r=o.loaderCallbacks;r&&(o.loaderCallbacks=r.filter(t=>t.id!==n))})}function Nt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let o=!1;const r=e.provider,t=e.prefix;n.forEach(i=>{const s=i.icons,c=s.pending.length;s.pending=s.pending.filter(a=>{if(a.prefix!==t)return!0;const u=a.name;if(e.icons[u])s.loaded.push({provider:r,prefix:t,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:t,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 St=0;function kt(e,n,o){const r=St++,t=Ge.bind(null,o,r);if(!n.pending.length)return t;const i={id:r,icons:n,callback:e,abort:t};return o.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),t}function Ct(e){const n={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort((t,i)=>t.provider!==i.provider?t.provider.localeCompare(i.provider):t.prefix!==i.prefix?t.prefix.localeCompare(i.prefix):t.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(t=>{if(r.name===t.name&&r.prefix===t.prefix&&r.provider===t.provider)return;r=t;const i=t.provider,s=t.prefix,c=t.name,a=o[i]||(o[i]=Object.create(null)),u=a[s]||(a[s]=J(i,s));let f;c in u.icons?f=n.loaded:s===""||u.missing.has(c)?f=n.missing:f=n.pending;const d={provider:i,prefix:s,name:c};f.push(d)}),n}function Dt(e,n=!0,o=!1){const r=[];return e.forEach(t=>{const i=typeof t=="string"?ce(t,n,o):t;i&&r.push(i)}),r}const Ot={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Mt(e,n,o,r){const t=e.resources.length,i=e.random?Math.floor(Math.random()*t):e.index;let s;if(e.random){let _=e.resources.slice(0);for(s=[];_.length>1;){const j=Math.floor(Math.random()*_.length);s.push(_[j]),_=_.slice(0,j).concat(_.slice(j+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=[],h=[];typeof r=="function"&&h.push(r);function x(){d&&(clearTimeout(d),d=null)}function b(){a==="pending"&&(a="aborted"),x(),g.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),g=[]}function p(_,j){j&&(h=[]),typeof _=="function"&&h.push(_)}function m(){return{startTime:c,payload:n,status:a,queriesSent:u,queriesPending:g.length,subscribe:p,abort:b}}function T(){a="failed",h.forEach(_=>{_(void 0,f)})}function v(){g.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),g=[]}function I(_,j,w){const S=j!=="success";switch(g=g.filter(k=>k!==_),a){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(j==="abort"){f=w,T();return}if(S){f=w,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",h.forEach(k=>{k(w)})}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 j={status:"pending",resource:_,callback:(w,S)=>{I(j,w,S)}};g.push(j),u++,d=setTimeout(N,e.rotate),o(_,n,j.callback)}return setTimeout(N),m}function qe(e){const n={...Ot,...e};let o=[];function r(){o=o.filter(c=>c().status==="pending")}function t(c,a,u){const f=Mt(n,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:t,find:i,setIndex:c=>{n.index=c},getIndex:()=>n.index,cleanup:r}}function Ne(){}const pe=Object.create(null);function Pt(e){if(!pe[e]){const n=Ie(e);if(!n)return;const o=qe(n),r={config:n,redundancy:o};pe[e]=r}return pe[e]}function At(e,n,o){let r,t;if(typeof e=="string"){const i=xe(e);if(!i)return o(void 0,424),Ne;t=i.send;const s=Pt(e);s&&(r=s.redundancy)}else{const i=be(e);if(i){r=qe(i);const s=e.resources?e.resources[0]:"",c=xe(s);c&&(t=c.send)}}return!r||!t?(o(void 0,424),Ne):r.query(n,t,o)().abort}function Se(){}function Ft(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Nt(e)}))}function Rt(e){const n=[],o=[];return e.forEach(r=>{(r.match(Re)?n:o).push(r)}),{valid:n,invalid:o}}function K(e,n,o){function r(){const t=e.pendingIcons;n.forEach(i=>{t&&t.delete(i),e.icons[i]||e.missing.add(i)})}if(o&&typeof o=="object")try{if(!Fe(e,o).length){r();return}}catch(t){console.error(t)}r(),Ft(e)}function ke(e,n){e instanceof Promise?e.then(o=>{n(o)}).catch(()=>{n(null)}):n(e)}function Lt(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:o,prefix:r}=e,t=e.iconsToLoad;if(delete e.iconsToLoad,!t||!t.length)return;const i=e.loadIcon;if(e.loadIcons&&(t.length>1||!i)){ke(e.loadIcons(t,r,o),f=>{K(e,t,f)});return}if(i){t.forEach(f=>{const d=i(f,r,o);ke(d,g=>{const h=g?{prefix:r,icons:{[f]:g}}:null;K(e,[f],h)})});return}const{valid:s,invalid:c}=Rt(t);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=>{At(o,f,d=>{K(e,f.icons,d)})})}))}const Bt=(e,n)=>{const o=Dt(e,!0,Le()),r=Ct(o);if(!r.pending.length){let a=!0;return n&&setTimeout(()=>{a&&n(r.loaded,r.missing,r.pending,Se)}),()=>{a=!1}}const t=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=t[u]||(t[u]=Object.create(null));d[f]||(d[f]=[])}),r.pending.forEach(a=>{const{provider:u,prefix:f,name:d}=a,g=J(u,f),h=g.pendingIcons||(g.pendingIcons=new Set);h.has(d)||(h.add(d),t[u][f].push(d))}),i.forEach(a=>{const u=t[a.provider][a.prefix];u.length&&Lt(a,u)}),n?kt(n,r,i):Se};function zt(e,n){const o={...e};for(const r in n){const t=n[r],i=typeof t;r in Be?(t===null||t&&(i==="string"||i==="number"))&&(o[r]=t):i===typeof o[r]&&(o[r]=r==="rotate"?t%4:t)}return o}const Gt=/[\s,]+/;function qt(e,n){n.split(Gt).forEach(o=>{switch(o.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Ut(e,n=0){const o=e.replace(/^-?[0-9.]*/,"");function r(t){for(;t<0;)t+=4;return t%4}if(o===""){const t=parseInt(e);return isNaN(t)?0:r(t)}else if(o!==e){let t=0;switch(o){case"%":t=25;break;case"deg":t=90}if(t){let i=parseFloat(e.slice(0,e.length-o.length));return isNaN(i)?0:(i=i/t,i%1===0?r(i):0)}}return n}function Yt(e,n){let o=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)o+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}function Qt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ht(e){return"data:image/svg+xml,"+Qt(e)}function Wt(e){return'url("'+Ht(e)+'")'}let ee;function Jt(){try{ee=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ee=null}}function Zt(e){return ee===void 0&&Jt(),ee?ee.createHTML(e):e}const Ue={...ze,inline:!1},Xt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Vt={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 n=De[e];for(const o in Ce)n[e+o]=Ce[o]}const Kt={...Ue,inline:!0};function Oe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const en=(e,n,o)=>{const r=n.inline?Kt:Ue,t=zt(r,n),i=n.mode||"svg",s={},c=n.style||{},a={...i==="svg"?Xt:{}};if(o){const p=ce(o,!1,!0);if(p){const m=["iconify"],T=["provider","prefix"];for(const v of T)p[v]&&m.push("iconify--"+p[v]);a.className=m.join(" ")}}for(let p in n){const m=n[p];if(m!==void 0)switch(p){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":a.ref=m;break;case"className":a[p]=(a[p]?a[p]+" ":"")+m;break;case"inline":case"hFlip":case"vFlip":t[p]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&qt(t,m);break;case"color":s.color=m;break;case"rotate":typeof m=="string"?t[p]=Ut(m):typeof m=="number"&&(t[p]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete a["aria-hidden"];break;default:r[p]===void 0&&(a[p]=m)}}const u=mt(e,t),f=u.attributes;if(t.inline&&(s.verticalAlign="-0.125em"),i==="svg"){a.style={...s,...c},Object.assign(a,f);let p=0,m=n.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),a.dangerouslySetInnerHTML={__html:Zt(_t(u.body,m?()=>m+"ID"+p++:"iconifyReact"))},y.createElement("svg",a)}const{body:d,width:g,height:h}=e,x=i==="mask"||(i==="bg"?!1:d.indexOf("currentColor")!==-1),b=Yt(d,{...f,width:g+"",height:h+""});return a.style={...s,"--svg":Wt(b),width:Oe(f.width),height:Oe(f.height),...Vt,...x?_e:Ye,...c},y.createElement("span",a)};Le(!0);yt("",Et);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const n=e.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!ct(r))&&console.error(o)}catch{console.error(o)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(let o in n){const r="IconifyProviders["+o+"] is invalid.";try{const t=n[o];if(typeof t!="object"||!t||t.resources===void 0)continue;bt(o,t)||console.error(r)}catch{console.error(r)}}}}function Qe(e){const[n,o]=y.useState(!!e.ssr),[r,t]=y.useState({});function i(h){if(h){const x=e.icon;if(typeof x=="object")return{name:"",data:x};const b=$e(x);if(b)return{name:x,data:b}}return{name:""}}const[s,c]=y.useState(i(!!e.ssr));function a(){const h=r.callback;h&&(h(),t({}))}function u(h){if(JSON.stringify(s)!==JSON.stringify(h))return a(),c(h),!0}function f(){var h;const x=e.icon;if(typeof x=="object"){u({name:"",data:x});return}const b=$e(x);if(u({name:x,data:b}))if(b===void 0){const p=Bt([x],f);t({callback:p})}else b&&((h=e.onLoad)===null||h===void 0||h.call(e,x))}y.useEffect(()=>(o(!0),a),[]),y.useEffect(()=>{n&&f()},[e.icon,n]);const{name:d,data:g}=s;return g?en({...ye,...g},e,d):e.children?e.children:e.fallback?e.fallback:y.createElement("span",{})}const D=y.forwardRef((e,n)=>Qe({...e,_ref:n}));y.forwardRef((e,n)=>Qe({inline:!0,...e,_ref:n}));const tn="_container_1s8de_36",nn="_title_1s8de_46",on="_containerInputError_1s8de_50",rn="_containerInput_1s8de_50",sn="_inputElement_1s8de_69",cn="_errorMessage_1s8de_80",an="_icon_1s8de_92",ln="_containerCustomIcon_1s8de_99",A={container:tn,title:nn,containerInputError:on,containerInput:rn,inputElement:sn,errorMessage:cn,icon:an,containerCustomIcon:ln},ne=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}},un=y.forwardRef(function({placeholder:n,value:o,setValue:r,label:t,typeInput:i,HorV:s,errorMessage:c,rounded:a,width:u,height:f,border:d,shadow:g,textSize:h,textColor:x,bgColor:b,customContainerClass:p,customInputClass:m,customIconRClass:T,customIconLClass:v,seeIconLeft:I=!0,seeIconRight:N,iconColorL:_,iconColorR:j,iconColorPass:w,iconSizeL:S,iconSizeR:k,iconSizePass:P,iconLeft:R,iconRight:L,customIconLeft:B,customIconRight:U,args:H},W){const[z,O]=y.useState(!1),G=y.useMemo(()=>ne(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:h,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:t}),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:b},children:[B?l.jsx("div",{className:`${A.containerCustomIcon} ${v}`,children:B}):I&&l.jsx(D,{icon:R??"mi:user",className:`${A.icon} ${v}`,style:{color:_,fontSize:S}}),l.jsx("input",{ref:W,className:`${A.inputElement} ${m}`,style:{fontSize:h,color:x},type:i==="password"&&z?"text":i,placeholder:n,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:w,fontSize:P,marginRight:10}}),U?l.jsx("div",{className:`${A.containerCustomIcon} ${T}`,children:U}):N&&l.jsx(D,{icon:L??"mi:user",className:`${A.icon} ${T}`,style:{color:j,fontSize:k}})]}),c!==""&&l.jsx("p",{className:A.errorMessage,children:c})]})]})}),fn="_container_pbqvr_36",dn="_containerInputError_pbqvr_50",pn="_containerInput_pbqvr_50",mn="_inputElement_pbqvr_69",hn="_errorMessage_pbqvr_80",gn="_icon_pbqvr_92",xn="_containerCustomIcon_pbqvr_99",Q={container:fn,containerInputError:dn,containerInput:pn,inputElement:mn,errorMessage:hn,icon:gn,containerCustomIcon:xn},_n=y.forwardRef(function({label:n,value:o,errorMessage:r,textSize:t,textColor:i,setValue:s,useLinkable:c,link:a,iconSize:u,seeIcon:f,icon:d,iconColor:g,customInputClass:h,customLabelClass:x,customIconClass:b,customIcon:p,args:m},T){const v=y.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} ${h}`,style:{fontSize:t,color:i},type:"checkbox",checked:o,onChange:I=>s(I.target.checked),...m}),p?l.jsx("div",{className:`${Q.containerCustomIcon} ${b}`,children:p}):f&&l.jsx(D,{icon:d??"mi:user",className:`${Q.icon} ${b}`,style:{color:g,fontSize:u}}),c?l.jsx("a",{className:x,href:a||"#",style:{fontSize:t,color:i,textDecoration:"underline"},children:n}):l.jsx("label",{htmlFor:v,className:x,style:{fontSize:t,color:i},children:n})]}),r!==""&&l.jsx("p",{className:Q.errorMessage,children:r})]})})}),yn="_container_j0rdw_36",bn="_containerInputError_j0rdw_50",vn="_containerInput_j0rdw_50",In="_errorMessage_j0rdw_80",jn="_icon_j0rdw_92",wn="_containerCustomIcon_j0rdw_99",$n="_containerInputAndOptions_j0rdw_99",Tn="_containerOptions_j0rdw_99",En="_optionElement_j0rdw_99",Nn="_containerIconOption_j0rdw_99",Sn="_containerLabel_j0rdw_111",kn="_textOption_j0rdw_141",Cn="_iconArrow_j0rdw_149",E={container:yn,containerInputError:bn,containerInput:vn,errorMessage:In,icon:jn,containerCustomIcon:wn,containerInputAndOptions:$n,containerOptions:Tn,optionElement:En,containerIconOption:Nn,containerLabel:Sn,textOption:kn,iconArrow:Cn},He=(e,n)=>{y.useEffect(()=>{const o=r=>{const t=e.current;!t||t.contains(r.target)||n(r)};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,n])},Dn=y.forwardRef(function({label:n,value:o,setValue:r,options:t,placeholder:i,errorMessage:s,orientation:c="bottom",iconInRight:a=!1,rounded:u,border:f=!0,textSize:d="1.4rem",textColor:g="#000",labelSize:h="1.4rem",labelColor:x="#000",width:b=250,height:p=40,bgColor:m,shadow:T=!1,icon:v,iconSize:I=20,iconsOptionsSize:N=20,seeIcon:_=!1,seeOptionsIcons:j=!1,iconsColor:w="#000",customIcon:S,customContainerClass:k,customInputClass:P,customLabelClass:R,customIconClass:L,customOptionClass:B},U){const[H,W]=y.useState(null),[z,O]=y.useState(!1),G=y.useRef(null),Y={valueOption:null,text:i??"Selecciona una opción",icon:"hugeicons:cursor-magic-selection-04"};He(G,()=>{O(!1)}),y.useEffect(()=>{let C=[Y,...t];W(C)},[]);const Z=y.useMemo(()=>ne(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:I},children:S}):_&&l.jsx(D,{icon:v??"icon-park-outline:dot",className:`${E.icon} ${L}`,style:{color:w,fontSize:I}}),l.jsx("label",{className:R,style:{fontSize:h,color:x},children:n})]}),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:b,height:p,border:f?"":"none",boxShadow:T?"0 0 10px #00000050":"",borderRadius:Z,backgroundColor:m},children:[j&&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:w,fontSize:N}})}),l.jsx("p",{className:E.textOption,style:{fontSize:h,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:[j&&l.jsx("div",{className:`${E.containerIconOption}`,children:C.customIcon?C.customIcon:j&&l.jsx(D,{icon:C.icon??"icon-park-outline:dot",className:`${E.icon} ${E.containerIconOption}`,style:{color:C.iconColor?C.iconColor:w,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})]})]})}),On="_container_ninia_36",Mn="_containerInputError_ninia_50",Pn="_errorMessage_ninia_80",An="_icon_ninia_92",Fn="_containerCustomIcon_ninia_99",Rn="_containerInputFile_ninia_114",Ln="_containerSelectedFile_ninia_114",Bn="_textInput_ninia_132",zn="_inputFile_ninia_142",Gn="_fileName_ninia_158",qn="_backdrop_ninia_175",M={container:On,containerInputError:Mn,errorMessage:Pn,icon:An,containerCustomIcon:Fn,containerInputFile:Rn,containerSelectedFile:Ln,textInput:Bn,inputFile:zn,fileName:Gn,backdrop:qn},me={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 me){const n=me[e];return Object.values(n).join(", ")}return}if(typeof e=="object"){const n=[];return Object.keys(e).forEach(o=>{const r=e[o],t=me[o];r&&t&&r.forEach(i=>{const s=t[i];s&&n.push(s)})}),n.join(", ")}}},Un="_btnThemeDark_nlyt3_36",Yn="_iconButton_nlyt3_58",Qn="_containerCustomIcon_nlyt3_65",Hn="_btnBorderedThemeDark_nlyt3_78",Wn="_btnThemeGreen_nlyt3_98",Jn="_btnBorderedThemeGreen_nlyt3_140",Zn="_btnThemeBlue_nlyt3_160",Xn="_btnBorderedThemeBlue_nlyt3_202",Vn="_btnThemeRed_nlyt3_222",Kn="_btnBorderedThemeRed_nlyt3_264",eo="_btnThemePurple_nlyt3_284",to="_btnBorderedThemePurple_nlyt3_326",no="_btnThemeGray_nlyt3_346",oo="_btnBorderedThemeGray_nlyt3_388",ro="_btnThemeLight_nlyt3_408",io="_btnBorderedThemeLight_nlyt3_450",so="_btnThemeYellow_nlyt3_470",co="_btnBorderedThemeYellow_nlyt3_512",oe={btnThemeDark:Un,iconButton:Yn,containerCustomIcon:Qn,btnBorderedThemeDark:Hn,btnThemeGreen:Wn,btnBorderedThemeGreen:Jn,btnThemeBlue:Zn,btnBorderedThemeBlue:Xn,btnThemeRed:Vn,btnBorderedThemeRed:Kn,btnThemePurple:eo,btnBorderedThemePurple:to,btnThemeGray:no,btnBorderedThemeGray:oo,btnThemeLight:ro,btnBorderedThemeLight:io,btnThemeYellow:so,btnBorderedThemeYellow:co},Je=y.forwardRef(function({label:n="Texto del Botón",action:o=()=>{alert("Botón presionado")},font:r,width:t,height:i,icon:s="tabler:send",seeIcon:c=!0,textSize:a,iconColor:u,iconSize:f,styleType:d="ThemeDark",rounded:g="md",borderedStyle:h=!1,iconOn:x,padding:b,shadow:p=!1,colorShadow:m,customClassButton:T,customClassLabel:v,customClassIcon:I,customIcon:N,args:_},j){const w=y.useMemo(()=>ne(g??"full"),[g]);return l.jsxs("button",{ref:j,className:`${oe[`btn${d}`]} ${h&&oe[`btnBordered${d}`]} ${T}`,style:{borderRadius:w,width:t??"auto",height:i??"auto",flexDirection:x==="left"?"row-reverse":"row",boxShadow:`${p?"0 0 7px "+(m||"#000"):""}`,padding:b},onClick:S=>{S.preventDefault(),o()},..._,children:[n&&l.jsx("p",{className:`${v}`,style:{fontSize:a,fontFamily:r},children:n}),N?l.jsx("div",{className:`${oe.containerCustomIcon} ${I}`,children:N}):c&&l.jsx(D,{icon:s,className:`${oe.iconButton} ${I}`,style:{fontSize:f,color:u}})]})}),ao=y.forwardRef(function({label:n,errorMessage:o,acceptFiles:r="*",selectedFileE:t,setSelectedFileE:i,maxMBSize:s,shadow:c=!0,textButtonCancel:a="Cancelar",width:u,height:f,bgColor:d,bgColorHover:g,labelSize:h,labelColor:x,rounded:b="md",iconSize:p=30,seeIcon:m=!0,icon:T,iconColor:v="#fff",customFIleClass:I,customSelectedClass:N,customLabelClass:_,customIconClass:j,customIcon:w,args:S},k){const P=y.useId(),R=y.useRef(0),[L,B]=y.useState(t),[U,H]=y.useState(!1),[W,z]=y.useState(null),[O,G]=y.useState(!1),Y=We(r),Z=()=>{B(null),i(null)},C=$=>{if(z(null),s){const Ke=s*1024*1024;if($.size>Ke){z(`El archivo excede el límite de ${s} MB.`),Z();return}}B($),i($)},le=$=>{$.preventDefault(),$.target.files&&$.target.files[0]?C($.target.files[0]):Z()},X=$=>{$.preventDefault(),$.stopPropagation(),R.current+=1,$.type==="dragenter"||$.type==="dragover"?G(!0):$.type==="dragleave"&&G(!1)},ue=$=>{$.preventDefault(),$.stopPropagation(),R.current-=1,R.current===0&&G(!1)},Ve=$=>{$.preventDefault(),$.stopPropagation(),G(!1),R.current=0,$.dataTransfer.files&&$.dataTransfer.files[0]&&C($.dataTransfer.files[0])},fe=y.useMemo(()=>ne(b??"lg"),[b]);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:[m&&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} ${I}`,onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),onDragEnter:X,onDragLeave:ue,onDragOver:$=>$.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:[!w||O?m&&l.jsx(D,{icon:O?"tabler:drag-drop":T??"mingcute:upload-3-fill",className:`${M.icon} ${j}`,onDragEnter:X,onDragLeave:ue,style:{color:O?d||"#6936ee":v,fontSize:p}}):l.jsx("div",{className:`${M.containerCustomIcon} ${j}`,style:{height:p??"2rem"},children:w}),l.jsx("span",{className:`${M.textInput} ${_}`,style:{fontSize:h,color:O?d||"#6936ee":x},onDragEnter:X,onDragLeave:ue,children:O?"Suelta para agregar":n??"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_6mb4o_36",uo="_containerInputError_6mb4o_50",fo="_inputElement_6mb4o_69",po="_errorMessage_6mb4o_80",mo="_icon_6mb4o_92",ho="_containerCustomIcon_6mb4o_99",go="_containerLabel_6mb4o_111",xo="_containerGroupRadio_6mb4o_127",_o="_containerRadio_6mb4o_134",F={container:lo,containerInputError:uo,inputElement:fo,errorMessage:po,icon:mo,containerCustomIcon:ho,containerLabel:go,containerGroupRadio:xo,containerRadio:_o},yo=y.forwardRef(function({label:n,labelSize:o,labelColor:r,options:t,errorMessage:i,textSize:s,textColor:c,setValue:a,name:u,HorV:f="horizontal",icon:d,iconInRight:g,iconSize:h,iconColor:x,customIcon:b,seeIcon:p=!0,customInputClass:m,customLabelClass:T,customTextClass:v,customIconLabelClass:I,customContainerRadiosClass:N},_){const j=y.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:[b?l.jsx("div",{className:`${F.containerCustomIcon} ${I}`,style:{height:h},children:b}):p&&l.jsx(D,{icon:d??"mi:user",className:`${F.icon} ${I}`,style:{color:x,fontSize:h}}),l.jsx("label",{style:{fontSize:o,color:r},className:v,children:n})]}),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:t.map((w,S)=>{const k=`${j}-${S}`;return l.jsxs("div",{className:F.containerRadio,children:[l.jsx("input",{id:k,className:`${F.inputElement} ${m}`,style:{fontSize:s,color:c},type:"radio",name:u,value:w.value,onChange:P=>a(P.target.value)}),w.customIcon?l.jsx("div",{className:`${F.containerCustomIcon} ${w.customIconClass}`,children:w.customIcon}):w.seeIcon&&l.jsx(D,{icon:w.icon??"mi:user",className:`${F.icon} ${w.customIconClass}`,style:{color:w.iconColor,fontSize:h}}),l.jsx("label",{htmlFor:k,className:T,style:{fontSize:s,color:c},children:w.label})]},j+w.value)})}),i!==""&&l.jsx("p",{className:F.errorMessage,children:i})]})]})}),bo="_container_1ckth_36",vo="_containerInputError_1ckth_50",Io="_containerInput_1ckth_50",jo="_inputElement_1ckth_69",wo="_errorMessage_1ckth_80",$o="_icon_1ckth_92",To="_containerCustomIcon_1ckth_99",Eo="_containerLabel_1ckth_111",No="_counterCharacter_1ckth_142",q={container:bo,containerInputError:vo,containerInput:Io,inputElement:jo,errorMessage:wo,icon:$o,containerCustomIcon:To,containerLabel:Eo,counterCharacter:No},So=y.forwardRef(function({placeholder:n,value:o,setValue:r,label:t,errorMessage:i,seeMaxCharCounter:s=!0,maxCharacters:c=300,resize:a=!0,rounded:u,width:f=250,height:d=100,maxWidth:g=500,maxHeight:h=500,border:x,shadow:b,textSize:p,textColor:m,bgColor:T,customContainerClass:v,customTextAreaClass:I,customIconClass:N,seeIcon:_,iconInRight:j=!1,iconColor:w,iconSize:S,icon:k,customIcon:P,args:R},L){const B=y.useMemo(()=>ne(u??"lg"),[u]);return l.jsxs("div",{className:q.container,children:[l.jsxs("div",{className:q.containerLabel,style:{flexDirection:j?"row-reverse":"row",justifyContent:j?"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:w,fontSize:S}}),l.jsx("label",{style:{fontSize:p,color:m},children:t})]}),l.jsxs("div",{className:q.containerInputError,children:[l.jsxs("div",{className:`${q.containerInput} ${v}`,style:{borderRadius:B,border:x||x===void 0?"":"none",boxShadow:b?"0 0 5px #00000075":"",backgroundColor:T,resize:a?"both":"none",width:f,height:d,minWidth:f,minHeight:d,maxWidth:g,maxHeight:h},children:[l.jsx("textarea",{ref:L,className:`${q.inputElement} ${I}`,style:{fontSize:p,color:m},placeholder:n,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,n){return new Intl.DateTimeFormat("es-MX",{timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}).formatToParts(e).reduce((r,t)=>(r[t.type]=t.value,r),{})}function Co(e){if(!e)return 0;let n;return typeof e=="string"?n=new Date(e):n=e,Math.floor(n.getTime()/1e3)}function Do(e,n=ae){if(!e)return"";const o=new Date(e*1e3),r=Ze(o,n);return`${r.year}-${r.month}-${r.day}`}function Xe(e,n=ae){if(!e)return"";const o=["ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC"],r=new Date(e*1e3),t=Ze(r,n),i=parseInt(t.month,10)-1,s=o[i]||t.month,c=t.dayPeriod?t.dayPeriod.toUpperCase().replace(/\./g,""):"";return`${t.day}/${s}/${t.year} - ${t.hour}:${t.minute} ${c}`}function Oo(e,n=ae){if(!e)return"";const o=new Date(e*1e3),t=new Intl.DateTimeFormat("es-MX",{timeZone:n,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`${t.year}-${t.month}-${t.day} ${t.hour}:${t.minute}`}function Mo(e,n=ae){return Xe(e,n).split(" - ")[0]}exports.ButtonGal=Je;exports.CheckBoxGal=_n;exports.DropDownGal=Dn;exports.InputFileGal=ao;exports.InputRadioGal=yo;exports.InputTextGal=un;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"});const l=require("react/jsx-runtime"),y=require("react");function et(e,n){const o=e.icons,r=e.aliases||Object.create(null),t=Object.create(null);function i(s){if(o[s])return t[s]=[];if(!(s in t)){t[s]=null;const c=r[s]&&r[s].parent,a=c&&i(c);a&&(t[s]=[c].concat(a))}return t[s]}return Object.keys(o).concat(Object.keys(r)).forEach(i),t}const Me=Object.freeze({left:0,top:0,width:16,height:16}),se=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ye=Object.freeze({...Me,...se}),he=Object.freeze({...ye,body:"",hidden:!1});function tt(e,n){const o={};!e.hFlip!=!n.hFlip&&(o.hFlip=!0),!e.vFlip!=!n.vFlip&&(o.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(o.rotate=r),o}function je(e,n){const o=tt(e,n);for(const r in he)r in se?r in e&&!(r in o)&&(o[r]=se[r]):r in n?o[r]=n[r]:r in e&&(o[r]=e[r]);return o}function nt(e,n,o){const r=e.icons,t=e.aliases||Object.create(null);let i={};function s(c){i=je(r[c]||t[c],i)}return s(n),o.forEach(s),je(e,i)}function Pe(e,n){const o=[];if(typeof e!="object"||typeof e.icons!="object")return o;e.not_found instanceof Array&&e.not_found.forEach(t=>{n(t,null),o.push(t)});const r=et(e);for(const t in r){const i=r[t];i&&(n(t,nt(e,t,i)),o.push(t))}return o}const ot={provider:"",aliases:{},not_found:{},...Me};function de(e,n){for(const o in n)if(o in e&&typeof e[o]!=typeof n[o])return!1;return!0}function Ae(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!de(e,ot))return null;const o=n.icons;for(const t in o){const i=o[t];if(!t||typeof i.body!="string"||!de(i,he))return null}const r=n.aliases||Object.create(null);for(const t in r){const i=r[t],s=i.parent;if(!t||typeof s!="string"||!o[s]&&!r[s]||!de(i,he))return null}return n}const we=Object.create(null);function rt(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function J(e,n){const o=we[e]||(we[e]=Object.create(null));return o[n]||(o[n]=rt(e,n))}function Fe(e,n){return Ae(n)?Pe(n,(o,r)=>{r?e.icons[o]=r:e.missing.add(o)}):[]}function it(e,n,o){try{if(typeof o.body=="string")return e.icons[n]={...o},!0}catch{}return!1}const Re=/^[a-z0-9]+(-[a-z0-9]+)*$/,ce=(e,n,o,r="")=>{const t=e.split(":");if(e.slice(0,1)==="@"){if(t.length<2||t.length>3)return null;r=t.shift().slice(1)}if(t.length>3||!t.length)return null;if(t.length>1){const c=t.pop(),a=t.pop(),u={provider:t.length>0?t[0]:r,prefix:a,name:c};return n&&!re(u)?null:u}const i=t[0],s=i.split("-");if(s.length>1){const c={provider:r,prefix:s.shift(),name:s.join("-")};return n&&!re(c)?null:c}if(o&&r===""){const c={provider:r,prefix:"",name:i};return n&&!re(c,o)?null:c}return null},re=(e,n)=>e?!!((n&&e.prefix===""||e.prefix)&&e.name):!1;let te=!1;function Le(e){return typeof e=="boolean"&&(te=e),te}function $e(e){const n=typeof e=="string"?ce(e,!0,te):e;if(n){const o=J(n.provider,n.prefix),r=n.name;return o.icons[r]||(o.missing.has(r)?null:void 0)}}function st(e,n){const o=ce(e,!0,te);if(!o)return!1;const r=J(o.provider,o.prefix);return n?it(r,o.name,n):(r.missing.add(o.name),!0)}function ct(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),te&&!n&&!e.prefix){let t=!1;return Ae(e)&&(e.prefix="",Pe(e,(i,s)=>{st(i,s)&&(t=!0)})),t}const o=e.prefix;if(!re({prefix:o,name:"a"}))return!1;const r=J(n,o);return!!Fe(r,e)}const Be=Object.freeze({width:null,height:null}),ze=Object.freeze({...Be,...se}),at=/(-?[0-9.]*[0-9]+[0-9.]*)/g,lt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Te(e,n,o){if(n===1)return e;if(o=o||100,typeof e=="number")return Math.ceil(e*n*o)/o;if(typeof e!="string")return e;const r=e.split(at);if(r===null||!r.length)return e;const t=[];let i=r.shift(),s=lt.test(i);for(;;){if(s){const c=parseFloat(i);isNaN(c)?t.push(i):t.push(Math.ceil(c*n*o)/o)}else t.push(i);if(i=r.shift(),i===void 0)return t.join("");s=!s}}function ut(e,n="defs"){let o="";const r=e.indexOf("<"+n);for(;r>=0;){const t=e.indexOf(">",r),i=e.indexOf("</"+n);if(t===-1||i===-1)break;const s=e.indexOf(">",i);if(s===-1)break;o+=e.slice(t+1,i).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:o,content:e}}function ft(e,n){return e?"<defs>"+e+"</defs>"+n:n}function dt(e,n,o){const r=ut(e);return ft(r.defs,n+r.content+o)}const pt=e=>e==="unset"||e==="undefined"||e==="none";function mt(e,n){const o={...ye,...e},r={...ze,...n},t={left:o.left,top:o.top,width:o.width,height:o.height};let i=o.body;[o,r].forEach(b=>{const p=[],m=b.hFlip,T=b.vFlip;let v=b.rotate;m?T?v+=2:(p.push("translate("+(t.width+t.left).toString()+" "+(0-t.top).toString()+")"),p.push("scale(-1 1)"),t.top=t.left=0):T&&(p.push("translate("+(0-t.left).toString()+" "+(t.height+t.top).toString()+")"),p.push("scale(1 -1)"),t.top=t.left=0);let I;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:I=t.height/2+t.top,p.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:p.unshift("rotate(180 "+(t.width/2+t.left).toString()+" "+(t.height/2+t.top).toString()+")");break;case 3:I=t.width/2+t.left,p.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}v%2===1&&(t.left!==t.top&&(I=t.left,t.left=t.top,t.top=I),t.width!==t.height&&(I=t.width,t.width=t.height,t.height=I)),p.length&&(i=dt(i,'<g transform="'+p.join(" ")+'">',"</g>"))});const s=r.width,c=r.height,a=t.width,u=t.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={},h=(b,p)=>{pt(p)||(g[b]=p.toString())};h("width",f),h("height",d);const x=[t.left,t.top,a,u];return g.viewBox=x.join(" "),{attributes:g,viewBox:x,body:i}}const ht=/\sid="(\S+)"/g,gt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let xt=0;function _t(e,n=gt){const o=[];let r;for(;r=ht.exec(e);)o.push(r[1]);if(!o.length)return e;const t="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(i=>{const s=typeof n=="function"?n(i):n+(xt++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+s+t+"$3")}),e=e.replace(new RegExp(t,"g"),""),e}const ge=Object.create(null);function yt(e,n){ge[e]=n}function xe(e){return ge[e]||ge[""]}function be(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,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[""]=be({resources:["https://api.iconify.design"].concat(ie)});function bt(e,n){const o=be(n);return o===null?!1:(ve[e]=o,!0)}function Ie(e){return ve[e]}const vt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ke=vt();function It(e,n){const o=Ie(e);if(!o)return 0;let r;if(!o.maxURL)r=0;else{let t=0;o.resources.forEach(s=>{t=Math.max(t,s.length)});const i=n+".json?icons=";r=o.maxURL-t-o.path.length-i.length}return r}function jt(e){return e===404}const wt=(e,n,o)=>{const r=[],t=It(e,n),i="icons";let s={type:i,provider:e,prefix:n,icons:[]},c=0;return o.forEach((a,u)=>{c+=a.length+1,c>=t&&u>0&&(r.push(s),s={type:i,provider:e,prefix:n,icons:[]},c=a.length),s.icons.push(a)}),r.push(s),r};function $t(e){if(typeof e=="string"){const n=Ie(e);if(n)return n.path}return"/"}const Tt=(e,n,o)=>{if(!ke){o("abort",424);return}let r=$t(n.provider);switch(n.type){case"icons":{const i=n.prefix,c=n.icons.join(","),a=new URLSearchParams({icons:c});r+=i+".json?"+a.toString();break}case"custom":{const i=n.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:o("abort",400);return}let t=503;ke(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{o(jt(s)?"abort":"next",s)});return}return t=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?o("abort",i):o("next",t)});return}setTimeout(()=>{o("success",i)})}).catch(()=>{o("next",t)})},kt={prepare:wt,send:Tt};function Ge(e,n){e.forEach(o=>{const r=o.loaderCallbacks;r&&(o.loaderCallbacks=r.filter(t=>t.id!==n))})}function Et(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let o=!1;const r=e.provider,t=e.prefix;n.forEach(i=>{const s=i.icons,c=s.pending.length;s.pending=s.pending.filter(a=>{if(a.prefix!==t)return!0;const u=a.name;if(e.icons[u])s.loaded.push({provider:r,prefix:t,name:u});else if(e.missing.has(u))s.missing.push({provider:r,prefix:t,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 Nt=0;function St(e,n,o){const r=Nt++,t=Ge.bind(null,o,r);if(!n.pending.length)return t;const i={id:r,icons:n,callback:e,abort:t};return o.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),t}function Ct(e){const n={loaded:[],missing:[],pending:[]},o=Object.create(null);e.sort((t,i)=>t.provider!==i.provider?t.provider.localeCompare(i.provider):t.prefix!==i.prefix?t.prefix.localeCompare(i.prefix):t.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(t=>{if(r.name===t.name&&r.prefix===t.prefix&&r.provider===t.provider)return;r=t;const i=t.provider,s=t.prefix,c=t.name,a=o[i]||(o[i]=Object.create(null)),u=a[s]||(a[s]=J(i,s));let f;c in u.icons?f=n.loaded:s===""||u.missing.has(c)?f=n.missing:f=n.pending;const d={provider:i,prefix:s,name:c};f.push(d)}),n}function Dt(e,n=!0,o=!1){const r=[];return e.forEach(t=>{const i=typeof t=="string"?ce(t,n,o):t;i&&r.push(i)}),r}const Ot={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Mt(e,n,o,r){const t=e.resources.length,i=e.random?Math.floor(Math.random()*t):e.index;let s;if(e.random){let _=e.resources.slice(0);for(s=[];_.length>1;){const j=Math.floor(Math.random()*_.length);s.push(_[j]),_=_.slice(0,j).concat(_.slice(j+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=[],h=[];typeof r=="function"&&h.push(r);function x(){d&&(clearTimeout(d),d=null)}function b(){a==="pending"&&(a="aborted"),x(),g.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),g=[]}function p(_,j){j&&(h=[]),typeof _=="function"&&h.push(_)}function m(){return{startTime:c,payload:n,status:a,queriesSent:u,queriesPending:g.length,subscribe:p,abort:b}}function T(){a="failed",h.forEach(_=>{_(void 0,f)})}function v(){g.forEach(_=>{_.status==="pending"&&(_.status="aborted")}),g=[]}function I(_,j,w){const N=j!=="success";switch(g=g.filter(S=>S!==_),a){case"pending":break;case"failed":if(N||!e.dataAfterTimeout)return;break;default:return}if(j==="abort"){f=w,T();return}if(N){f=w,g.length||(s.length?E():T());return}if(x(),v(),!e.random){const S=e.resources.indexOf(_.resource);S!==-1&&S!==e.index&&(e.index=S)}a="completed",h.forEach(S=>{S(w)})}function E(){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 j={status:"pending",resource:_,callback:(w,N)=>{I(j,w,N)}};g.push(j),u++,d=setTimeout(E,e.rotate),o(_,n,j.callback)}return setTimeout(E),m}function qe(e){const n={...Ot,...e};let o=[];function r(){o=o.filter(c=>c().status==="pending")}function t(c,a,u){const f=Mt(n,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:t,find:i,setIndex:c=>{n.index=c},getIndex:()=>n.index,cleanup:r}}function Ee(){}const pe=Object.create(null);function Pt(e){if(!pe[e]){const n=Ie(e);if(!n)return;const o=qe(n),r={config:n,redundancy:o};pe[e]=r}return pe[e]}function At(e,n,o){let r,t;if(typeof e=="string"){const i=xe(e);if(!i)return o(void 0,424),Ee;t=i.send;const s=Pt(e);s&&(r=s.redundancy)}else{const i=be(e);if(i){r=qe(i);const s=e.resources?e.resources[0]:"",c=xe(s);c&&(t=c.send)}}return!r||!t?(o(void 0,424),Ee):r.query(n,t,o)().abort}function Ne(){}function Ft(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Et(e)}))}function Rt(e){const n=[],o=[];return e.forEach(r=>{(r.match(Re)?n:o).push(r)}),{valid:n,invalid:o}}function K(e,n,o){function r(){const t=e.pendingIcons;n.forEach(i=>{t&&t.delete(i),e.icons[i]||e.missing.add(i)})}if(o&&typeof o=="object")try{if(!Fe(e,o).length){r();return}}catch(t){console.error(t)}r(),Ft(e)}function Se(e,n){e instanceof Promise?e.then(o=>{n(o)}).catch(()=>{n(null)}):n(e)}function Lt(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:o,prefix:r}=e,t=e.iconsToLoad;if(delete e.iconsToLoad,!t||!t.length)return;const i=e.loadIcon;if(e.loadIcons&&(t.length>1||!i)){Se(e.loadIcons(t,r,o),f=>{K(e,t,f)});return}if(i){t.forEach(f=>{const d=i(f,r,o);Se(d,g=>{const h=g?{prefix:r,icons:{[f]:g}}:null;K(e,[f],h)})});return}const{valid:s,invalid:c}=Rt(t);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=>{At(o,f,d=>{K(e,f.icons,d)})})}))}const Bt=(e,n)=>{const o=Dt(e,!0,Le()),r=Ct(o);if(!r.pending.length){let a=!0;return n&&setTimeout(()=>{a&&n(r.loaded,r.missing,r.pending,Ne)}),()=>{a=!1}}const t=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=t[u]||(t[u]=Object.create(null));d[f]||(d[f]=[])}),r.pending.forEach(a=>{const{provider:u,prefix:f,name:d}=a,g=J(u,f),h=g.pendingIcons||(g.pendingIcons=new Set);h.has(d)||(h.add(d),t[u][f].push(d))}),i.forEach(a=>{const u=t[a.provider][a.prefix];u.length&&Lt(a,u)}),n?St(n,r,i):Ne};function zt(e,n){const o={...e};for(const r in n){const t=n[r],i=typeof t;r in Be?(t===null||t&&(i==="string"||i==="number"))&&(o[r]=t):i===typeof o[r]&&(o[r]=r==="rotate"?t%4:t)}return o}const Gt=/[\s,]+/;function qt(e,n){n.split(Gt).forEach(o=>{switch(o.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Ut(e,n=0){const o=e.replace(/^-?[0-9.]*/,"");function r(t){for(;t<0;)t+=4;return t%4}if(o===""){const t=parseInt(e);return isNaN(t)?0:r(t)}else if(o!==e){let t=0;switch(o){case"%":t=25;break;case"deg":t=90}if(t){let i=parseFloat(e.slice(0,e.length-o.length));return isNaN(i)?0:(i=i/t,i%1===0?r(i):0)}}return n}function Yt(e,n){let o=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)o+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+e+"</svg>"}function Qt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ht(e){return"data:image/svg+xml,"+Qt(e)}function Wt(e){return'url("'+Ht(e)+'")'}let ee;function Jt(){try{ee=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ee=null}}function Zt(e){return ee===void 0&&Jt(),ee?ee.createHTML(e):e}const Ue={...ze,inline:!1},Xt={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Vt={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 n=De[e];for(const o in Ce)n[e+o]=Ce[o]}const Kt={...Ue,inline:!0};function Oe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const en=(e,n,o)=>{const r=n.inline?Kt:Ue,t=zt(r,n),i=n.mode||"svg",s={},c=n.style||{},a={...i==="svg"?Xt:{}};if(o){const p=ce(o,!1,!0);if(p){const m=["iconify"],T=["provider","prefix"];for(const v of T)p[v]&&m.push("iconify--"+p[v]);a.className=m.join(" ")}}for(let p in n){const m=n[p];if(m!==void 0)switch(p){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":a.ref=m;break;case"className":a[p]=(a[p]?a[p]+" ":"")+m;break;case"inline":case"hFlip":case"vFlip":t[p]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&qt(t,m);break;case"color":s.color=m;break;case"rotate":typeof m=="string"?t[p]=Ut(m):typeof m=="number"&&(t[p]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete a["aria-hidden"];break;default:r[p]===void 0&&(a[p]=m)}}const u=mt(e,t),f=u.attributes;if(t.inline&&(s.verticalAlign="-0.125em"),i==="svg"){a.style={...s,...c},Object.assign(a,f);let p=0,m=n.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),a.dangerouslySetInnerHTML={__html:Zt(_t(u.body,m?()=>m+"ID"+p++:"iconifyReact"))},y.createElement("svg",a)}const{body:d,width:g,height:h}=e,x=i==="mask"||(i==="bg"?!1:d.indexOf("currentColor")!==-1),b=Yt(d,{...f,width:g+"",height:h+""});return a.style={...s,"--svg":Wt(b),width:Oe(f.width),height:Oe(f.height),...Vt,...x?_e:Ye,...c},y.createElement("span",a)};Le(!0);yt("",kt);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const n=e.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!ct(r))&&console.error(o)}catch{console.error(o)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(let o in n){const r="IconifyProviders["+o+"] is invalid.";try{const t=n[o];if(typeof t!="object"||!t||t.resources===void 0)continue;bt(o,t)||console.error(r)}catch{console.error(r)}}}}function Qe(e){const[n,o]=y.useState(!!e.ssr),[r,t]=y.useState({});function i(h){if(h){const x=e.icon;if(typeof x=="object")return{name:"",data:x};const b=$e(x);if(b)return{name:x,data:b}}return{name:""}}const[s,c]=y.useState(i(!!e.ssr));function a(){const h=r.callback;h&&(h(),t({}))}function u(h){if(JSON.stringify(s)!==JSON.stringify(h))return a(),c(h),!0}function f(){var h;const x=e.icon;if(typeof x=="object"){u({name:"",data:x});return}const b=$e(x);if(u({name:x,data:b}))if(b===void 0){const p=Bt([x],f);t({callback:p})}else b&&((h=e.onLoad)===null||h===void 0||h.call(e,x))}y.useEffect(()=>(o(!0),a),[]),y.useEffect(()=>{n&&f()},[e.icon,n]);const{name:d,data:g}=s;return g?en({...ye,...g},e,d):e.children?e.children:e.fallback?e.fallback:y.createElement("span",{})}const D=y.forwardRef((e,n)=>Qe({...e,_ref:n}));y.forwardRef((e,n)=>Qe({inline:!0,...e,_ref:n}));const tn="_container_1rnmr_36",nn="_title_1rnmr_46",on="_containerInputError_1rnmr_50",rn="_containerInput_1rnmr_50",sn="_inputElement_1rnmr_69",cn="_errorMessage_1rnmr_80",an="_icon_1rnmr_92",ln="_containerCustomIcon_1rnmr_99",A={container:tn,title:nn,containerInputError:on,containerInput:rn,inputElement:sn,errorMessage:cn,icon:an,containerCustomIcon:ln},ne=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}},un=y.forwardRef(function({placeholder:n,value:o,setValue:r,label:t,typeInput:i,HorV:s,errorMessage:c,rounded:a,width:u,height:f,border:d,shadow:g,textSize:h,textColor:x,bgColor:b,customContainerClass:p,customInputClass:m,customIconRClass:T,customIconLClass:v,seeIconLeft:I=!0,seeIconRight:E,iconColorL:_,iconColorR:j,iconColorPass:w,iconSizeL:N,iconSizeR:S,iconSizePass:P,iconLeft:R,iconRight:L,customIconLeft:B,customIconRight:U,args:H},W){const[z,O]=y.useState(!1),G=y.useMemo(()=>ne(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:h,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:t}),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:b},children:[B?l.jsx("div",{className:`${A.containerCustomIcon} ${v}`,children:B}):I&&l.jsx(D,{icon:R??"mi:user",className:`${A.icon} ${v}`,style:{color:_,fontSize:N}}),l.jsx("input",{ref:W,className:`${A.inputElement} ${m}`,style:{fontSize:h,color:x},type:i==="password"&&z?"text":i,placeholder:n,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:w,fontSize:P,marginRight:10}}),U?l.jsx("div",{className:`${A.containerCustomIcon} ${T}`,children:U}):E&&l.jsx(D,{icon:L??"mi:user",className:`${A.icon} ${T}`,style:{color:j,fontSize:S}})]}),c!==""&&l.jsx("p",{className:A.errorMessage,children:c})]})]})}),fn="_container_rchrd_36",dn="_containerInputError_rchrd_50",pn="_containerInput_rchrd_50",mn="_inputElement_rchrd_69",hn="_errorMessage_rchrd_80",gn="_icon_rchrd_92",xn="_containerCustomIcon_rchrd_99",Q={container:fn,containerInputError:dn,containerInput:pn,inputElement:mn,errorMessage:hn,icon:gn,containerCustomIcon:xn},_n=y.forwardRef(function({label:n,value:o,errorMessage:r,textSize:t,textColor:i,setValue:s,useLinkable:c,link:a,iconSize:u,seeIcon:f,icon:d,iconColor:g,customInputClass:h,customLabelClass:x,customIconClass:b,customIcon:p,args:m},T){const v=y.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} ${h}`,style:{fontSize:t,color:i},type:"checkbox",checked:o,onChange:I=>s(I.target.checked),...m}),p?l.jsx("div",{className:`${Q.containerCustomIcon} ${b}`,children:p}):f&&l.jsx(D,{icon:d??"mi:user",className:`${Q.icon} ${b}`,style:{color:g,fontSize:u}}),c?l.jsx("a",{className:x,href:a||"#",style:{fontSize:t,color:i,textDecoration:"underline"},children:n}):l.jsx("label",{htmlFor:v,className:x,style:{fontSize:t,color:i},children:n})]}),r!==""&&l.jsx("p",{className:Q.errorMessage,children:r})]})})}),yn="_container_fo8vq_36",bn="_containerInputError_fo8vq_50",vn="_containerInput_fo8vq_50",In="_errorMessage_fo8vq_80",jn="_icon_fo8vq_92",wn="_containerCustomIcon_fo8vq_99",$n="_containerInputAndOptions_fo8vq_99",Tn="_containerOptions_fo8vq_99",kn="_optionElement_fo8vq_99",En="_containerIconOption_fo8vq_99",Nn="_containerLabel_fo8vq_111",Sn="_textOption_fo8vq_141",Cn="_iconArrow_fo8vq_149",k={container:yn,containerInputError:bn,containerInput:vn,errorMessage:In,icon:jn,containerCustomIcon:wn,containerInputAndOptions:$n,containerOptions:Tn,optionElement:kn,containerIconOption:En,containerLabel:Nn,textOption:Sn,iconArrow:Cn},He=(e,n)=>{y.useEffect(()=>{const o=r=>{const t=e.current;!t||t.contains(r.target)||n(r)};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[e,n])},Dn=y.forwardRef(function({label:n,value:o,setValue:r,options:t,placeholder:i,errorMessage:s,orientation:c="bottom",iconInRight:a=!1,rounded:u,border:f=!0,textSize:d="1.4rem",textColor:g="#000",labelSize:h="1.4rem",labelColor:x="#000",width:b=250,height:p=40,bgColor:m,shadow:T=!1,icon:v,iconSize:I=20,iconsOptionsSize:E=20,seeIcon:_=!1,seeOptionsIcons:j=!1,iconsColor:w="#000",customIcon:N,customContainerClass:S,customInputClass:P,customLabelClass:R,customIconClass:L,customOptionClass:B},U){const[H,W]=y.useState(null),[z,O]=y.useState(!1),G=y.useRef(null),Y={valueOption:null,text:i??"Selecciona una opción",icon:"hugeicons:cursor-magic-selection-04"};He(G,()=>{O(!1)}),y.useEffect(()=>{let C=[Y,...t];W(C)},[]);const Z=y.useMemo(()=>ne(u??"lg"),[u]);return l.jsxs("div",{ref:U,className:`${k.container} ${S}`,children:[l.jsxs("div",{className:k.containerLabel,style:{flexDirection:a?"row-reverse":"row",justifyContent:a?"flex-end":"flex-start"},children:[N?l.jsx("div",{className:`${k.containerCustomIcon} ${L}`,style:{height:I},children:N}):_&&l.jsx(D,{icon:v??"icon-park-outline:dot",className:`${k.icon} ${L}`,style:{color:w,fontSize:I}}),l.jsx("label",{className:R,style:{fontSize:h,color:x},children:n})]}),l.jsxs("div",{className:k.containerInputError,children:[l.jsxs("div",{ref:G,className:k.containerInputAndOptions,children:[l.jsxs("div",{onClick:C=>{C.stopPropagation(),O(!z)},className:`${k.containerInput} ${P}`,style:{width:b,height:p,border:f?"":"none",boxShadow:T?"0 0 10px #00000050":"",borderRadius:Z,backgroundColor:m},children:[j&&o?.valueOption&&l.jsx(l.Fragment,{children:o?.customIcon?l.jsx("div",{className:k.containerCustomIcon,children:o?.customIcon}):o?.icon&&l.jsx(D,{icon:o.icon,className:k.icon,style:{color:o.iconColor?o.iconColor:w,fontSize:E}})}),l.jsx("p",{className:k.textOption,style:{fontSize:h,color:x,fontWeight:o?.valueOption?"bold":""},children:o?.text?o.text:Y.text}),l.jsx(D,{icon:"ri:arrow-down-s-line",className:`${k.icon} ${k.iconArrow}`})]}),z&&l.jsx("div",{className:k.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:`${k.optionElement} ${B}`,children:[j&&l.jsx("div",{className:`${k.containerIconOption}`,children:C.customIcon?C.customIcon:j&&l.jsx(D,{icon:C.icon??"icon-park-outline:dot",className:`${k.icon} ${k.containerIconOption}`,style:{color:C.iconColor?C.iconColor:w,fontSize:E}})}),l.jsx("p",{className:k.textOption,style:{fontSize:d,color:g},children:C.text?C.text:Y.text})]},le))})]}),s!==""&&l.jsx("p",{className:k.errorMessage,children:s})]})]})}),On="_container_ljlw3_36",Mn="_containerInputError_ljlw3_50",Pn="_errorMessage_ljlw3_80",An="_icon_ljlw3_92",Fn="_containerCustomIcon_ljlw3_99",Rn="_containerInputFile_ljlw3_114",Ln="_containerSelectedFile_ljlw3_114",Bn="_textInput_ljlw3_132",zn="_inputFile_ljlw3_142",Gn="_fileName_ljlw3_158",qn="_backdrop_ljlw3_175",M={container:On,containerInputError:Mn,errorMessage:Pn,icon:An,containerCustomIcon:Fn,containerInputFile:Rn,containerSelectedFile:Ln,textInput:Bn,inputFile:zn,fileName:Gn,backdrop:qn},me={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 me){const n=me[e];return Object.values(n).join(", ")}return}if(typeof e=="object"){const n=[];return Object.keys(e).forEach(o=>{const r=e[o],t=me[o];r&&t&&r.forEach(i=>{const s=t[i];s&&n.push(s)})}),n.join(", ")}}},Un="_btnThemeDark_km3as_36",Yn="_iconButton_km3as_58",Qn="_containerCustomIcon_km3as_65",Hn="_btnBorderedThemeDark_km3as_78",Wn="_btnThemeGreen_km3as_98",Jn="_btnBorderedThemeGreen_km3as_140",Zn="_btnThemeBlue_km3as_160",Xn="_btnBorderedThemeBlue_km3as_202",Vn="_btnThemeRed_km3as_222",Kn="_btnBorderedThemeRed_km3as_264",eo="_btnThemePurple_km3as_284",to="_btnBorderedThemePurple_km3as_326",no="_btnThemeGray_km3as_346",oo="_btnBorderedThemeGray_km3as_388",ro="_btnThemeLight_km3as_408",io="_btnBorderedThemeLight_km3as_450",so="_btnThemeYellow_km3as_470",co="_btnBorderedThemeYellow_km3as_512",oe={btnThemeDark:Un,iconButton:Yn,containerCustomIcon:Qn,btnBorderedThemeDark:Hn,btnThemeGreen:Wn,btnBorderedThemeGreen:Jn,btnThemeBlue:Zn,btnBorderedThemeBlue:Xn,btnThemeRed:Vn,btnBorderedThemeRed:Kn,btnThemePurple:eo,btnBorderedThemePurple:to,btnThemeGray:no,btnBorderedThemeGray:oo,btnThemeLight:ro,btnBorderedThemeLight:io,btnThemeYellow:so,btnBorderedThemeYellow:co},Je=y.forwardRef(function({label:n="Texto del Botón",action:o=()=>{alert("Botón presionado")},font:r,width:t,height:i,icon:s="tabler:send",seeIcon:c=!0,textSize:a,iconColor:u,iconSize:f,styleType:d="ThemeDark",rounded:g="md",borderedStyle:h=!1,iconOn:x,padding:b,shadow:p=!1,colorShadow:m,customClassButton:T,customClassLabel:v,customClassIcon:I,customIcon:E,args:_},j){const w=y.useMemo(()=>ne(g??"full"),[g]);return l.jsxs("button",{ref:j,className:`${oe[`btn${d}`]} ${h&&oe[`btnBordered${d}`]} ${T}`,style:{borderRadius:w,width:t??"auto",height:i??"auto",flexDirection:x==="left"?"row-reverse":"row",boxShadow:`${p?"0 0 7px "+(m||"#000"):""}`,padding:b},onClick:N=>{N.preventDefault(),o()},..._,children:[n&&l.jsx("p",{className:`${v}`,style:{fontSize:a,fontFamily:r},children:n}),E?l.jsx("div",{className:`${oe.containerCustomIcon} ${I}`,children:E}):c&&l.jsx(D,{icon:s,className:`${oe.iconButton} ${I}`,style:{fontSize:f,color:u}})]})}),ao=y.forwardRef(function({label:n,errorMessage:o,acceptFiles:r="*",selectedFileE:t,setSelectedFileE:i,maxMBSize:s,shadow:c=!0,textButtonCancel:a="Cancelar",width:u,height:f,bgColor:d,bgColorHover:g,labelSize:h,labelColor:x,rounded:b="md",iconSize:p=30,seeIcon:m=!0,icon:T,iconColor:v="#fff",customFIleClass:I,customSelectedClass:E,customLabelClass:_,customIconClass:j,customIcon:w,args:N},S){const P=y.useId(),R=y.useRef(0),[L,B]=y.useState(t),[U,H]=y.useState(!1),[W,z]=y.useState(null),[O,G]=y.useState(!1),Y=We(r),Z=()=>{B(null),i(null)},C=$=>{if(z(null),s){const Ke=s*1024*1024;if($.size>Ke){z(`El archivo excede el límite de ${s} MB.`),Z();return}}B($),i($)},le=$=>{$.preventDefault(),$.target.files&&$.target.files[0]?C($.target.files[0]):Z()},X=$=>{$.preventDefault(),$.stopPropagation(),R.current+=1,$.type==="dragenter"||$.type==="dragover"?G(!0):$.type==="dragleave"&&G(!1)},ue=$=>{$.preventDefault(),$.stopPropagation(),R.current-=1,R.current===0&&G(!1)},Ve=$=>{$.preventDefault(),$.stopPropagation(),G(!1),R.current=0,$.dataTransfer.files&&$.dataTransfer.files[0]&&C($.dataTransfer.files[0])},fe=y.useMemo(()=>ne(b??"lg"),[b]);return l.jsx("div",{className:M.container,children:l.jsxs("div",{className:M.containerInputError,children:[L?l.jsxs("div",{className:`${M.containerSelectedFile} ${E}`,style:{boxShadow:c?"0 0 5px #00000050":"",borderRadius:fe,width:u,height:f},children:[m&&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} ${I}`,onMouseEnter:()=>H(!0),onMouseLeave:()=>H(!1),onDragEnter:X,onDragLeave:ue,onDragOver:$=>$.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:[!w||O?m&&l.jsx(D,{icon:O?"tabler:drag-drop":T??"mingcute:upload-3-fill",className:`${M.icon} ${j}`,onDragEnter:X,onDragLeave:ue,style:{color:O?d||"#6936ee":v,fontSize:p}}):l.jsx("div",{className:`${M.containerCustomIcon} ${j}`,style:{height:p??"2rem"},children:w}),l.jsx("span",{className:`${M.textInput} ${_}`,style:{fontSize:h,color:O?d||"#6936ee":x},onDragEnter:X,onDragLeave:ue,children:O?"Suelta para agregar":n??"Click o arrastra un archivo"}),l.jsx("input",{ref:S,id:P,type:"file",accept:Y,className:M.inputFile,onChange:le,...N})]}),l.jsx("p",{className:M.errorMessage,children:W||o||""})]})})}),lo="_container_6mbm0_36",uo="_containerInputError_6mbm0_50",fo="_inputElement_6mbm0_69",po="_errorMessage_6mbm0_80",mo="_icon_6mbm0_92",ho="_containerCustomIcon_6mbm0_99",go="_containerLabel_6mbm0_111",xo="_containerGroupRadio_6mbm0_127",_o="_containerRadio_6mbm0_134",F={container:lo,containerInputError:uo,inputElement:fo,errorMessage:po,icon:mo,containerCustomIcon:ho,containerLabel:go,containerGroupRadio:xo,containerRadio:_o},yo=y.forwardRef(function({label:n,labelSize:o,labelColor:r,options:t,errorMessage:i,textSize:s,textColor:c,setValue:a,name:u,HorV:f="horizontal",icon:d,iconInRight:g,iconSize:h,iconColor:x,customIcon:b,seeIcon:p=!0,customInputClass:m,customLabelClass:T,customTextClass:v,customIconLabelClass:I,customContainerRadiosClass:E},_){const j=y.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:[b?l.jsx("div",{className:`${F.containerCustomIcon} ${I}`,style:{height:h},children:b}):p&&l.jsx(D,{icon:d??"mi:user",className:`${F.icon} ${I}`,style:{color:x,fontSize:h}}),l.jsx("label",{style:{fontSize:o,color:r},className:v,children:n})]}),l.jsxs("div",{className:F.containerInputError,children:[l.jsx("div",{className:`${F.containerGroupRadio} ${E}`,style:{flexDirection:f==="vertical"?"column":"row",alignItems:f==="vertical"?"stretch":"center",justifyContent:f==="vertical"?"center":"flex-start"},children:t.map((w,N)=>{const S=`${j}-${N}`;return l.jsxs("div",{className:F.containerRadio,children:[l.jsx("input",{id:S,className:`${F.inputElement} ${m}`,style:{fontSize:s,color:c},type:"radio",name:u,value:w.value,onChange:P=>a(P.target.value)}),w.customIcon?l.jsx("div",{className:`${F.containerCustomIcon} ${w.customIconClass}`,children:w.customIcon}):w.seeIcon&&l.jsx(D,{icon:w.icon??"mi:user",className:`${F.icon} ${w.customIconClass}`,style:{color:w.iconColor,fontSize:h}}),l.jsx("label",{htmlFor:S,className:T,style:{fontSize:s,color:c},children:w.label})]},j+w.value)})}),i!==""&&l.jsx("p",{className:F.errorMessage,children:i})]})]})}),bo="_container_cj2yx_36",vo="_containerInputError_cj2yx_50",Io="_containerInput_cj2yx_50",jo="_inputElement_cj2yx_69",wo="_errorMessage_cj2yx_80",$o="_icon_cj2yx_92",To="_containerCustomIcon_cj2yx_99",ko="_containerLabel_cj2yx_111",Eo="_counterCharacter_cj2yx_142",q={container:bo,containerInputError:vo,containerInput:Io,inputElement:jo,errorMessage:wo,icon:$o,containerCustomIcon:To,containerLabel:ko,counterCharacter:Eo},No=y.forwardRef(function({placeholder:n,value:o,setValue:r,label:t,errorMessage:i,seeMaxCharCounter:s=!0,maxCharacters:c=300,resize:a=!0,rounded:u,width:f=250,height:d=100,maxWidth:g=500,maxHeight:h=500,border:x,shadow:b,textSize:p,textColor:m,bgColor:T,customContainerClass:v,customTextAreaClass:I,customIconClass:E,seeIcon:_,iconInRight:j=!1,iconColor:w,iconSize:N,icon:S,customIcon:P,args:R},L){const B=y.useMemo(()=>ne(u??"lg"),[u]);return l.jsxs("div",{className:q.container,children:[l.jsxs("div",{className:q.containerLabel,style:{flexDirection:j?"row-reverse":"row",justifyContent:j?"flex-end":"flex-start"},children:[P?l.jsx("div",{className:`${q.containerCustomIcon} ${E}`,style:{height:N},children:P}):_&&l.jsx(D,{icon:S??"mi:user",className:`${q.icon} ${E}`,style:{color:w,fontSize:N}}),l.jsx("label",{style:{fontSize:p,color:m},children:t})]}),l.jsxs("div",{className:q.containerInputError,children:[l.jsxs("div",{className:`${q.containerInput} ${v}`,style:{borderRadius:B,border:x||x===void 0?"":"none",boxShadow:b?"0 0 5px #00000075":"",backgroundColor:T,resize:a?"both":"none",width:f,height:d,minWidth:f,minHeight:d,maxWidth:g,maxHeight:h},children:[l.jsx("textarea",{ref:L,className:`${q.inputElement} ${I}`,style:{fontSize:p,color:m},placeholder:n,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})]})]})}),So=["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,n){return new Intl.DateTimeFormat("es-MX",{timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0}).formatToParts(e).reduce((r,t)=>(r[t.type]=t.value,r),{})}function Co(e){if(!e)return 0;let n;return typeof e=="string"?n=new Date(e):n=e,Math.floor(n.getTime()/1e3)}function Do(e,n=ae){if(!e)return"";const o=new Date(e*1e3),r=Ze(o,n);return`${r.year}-${r.month}-${r.day}`}function Xe(e,n=ae){if(!e)return"";const o=["ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC"],r=new Date(e*1e3),t=Ze(r,n),i=parseInt(t.month,10)-1,s=o[i]||t.month,c=t.dayPeriod?t.dayPeriod.toUpperCase().replace(/\./g,""):"";return`${t.day}/${s}/${t.year} - ${t.hour}:${t.minute} ${c}`}function Oo(e,n=ae){if(!e)return"";const o=new Date(e*1e3),t=new Intl.DateTimeFormat("es-MX",{timeZone:n,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`${t.year}-${t.month}-${t.day} ${t.hour}:${t.minute}`}function Mo(e,n=ae){return Xe(e,n).split(" - ")[0]}exports.ButtonGal=Je;exports.CheckBoxGal=_n;exports.DropDownGal=Dn;exports.InputFileGal=ao;exports.InputRadioGal=yo;exports.InputTextGal=un;exports.TIMEZONES=So;exports.TextAreaGal=No;exports.convertToUnix=Co;exports.unixToDate=Do;exports.unixToDateTime=Oo;exports.unixToDateTimeString=Xe;exports.unixToStringYMD=Mo;exports.useOnClickOutside=He;