galliard-ui 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 EL4toCARMINE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # Galliard UI
2
+
3
+ ![License](https://img.shields.io/badge/license-MIT-blue.svg)
4
+ ![Version](https://img.shields.io/badge/version-1.0.0-green.svg)
5
+
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
+
8
+ ## 🚀 Instalación
9
+
10
+ Instala Galliard UI en tu proyecto:
11
+
12
+ ```bash
13
+ npm install galliard-ui
14
+ # o
15
+ yarn add galliard-ui
@@ -0,0 +1,411 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ import { default as default_2 } from 'react';
3
+ import { ForwardRefExoticComponent } from 'react';
4
+ import { InputHTMLAttributes } from 'react';
5
+ import { RefAttributes } from 'react';
6
+ import { RefObject } from 'react';
7
+ import { TextareaHTMLAttributes } from 'react';
8
+
9
+ export declare type AcceptProp = MixedCategory | MixedCategory[];
10
+
11
+ declare interface BaseProps {
12
+ setError?: (error: string) => void;
13
+ nameInput?: string;
14
+ canBeNull?: boolean;
15
+ }
16
+
17
+ declare interface BoolValidation extends BaseProps {
18
+ typeInput: 'bool';
19
+ value: boolean | null | undefined;
20
+ mustBeTrue?: boolean;
21
+ }
22
+
23
+ export declare const ButtonGal: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
24
+
25
+ export declare interface ButtonProps {
26
+ label?: string;
27
+ action: () => void;
28
+ textSize?: string | number;
29
+ font?: 'OpenSansLight' | 'OpenSansRegular' | 'OpenSansSemiBold' | 'OpenSansBold' | 'OpenSansBolder';
30
+ width?: string | number;
31
+ height?: string | number;
32
+ icon?: string;
33
+ seeIcon?: boolean;
34
+ iconSize?: string | number;
35
+ iconColor?: string;
36
+ iconOn?: 'left' | 'right';
37
+ styleType?: 'ThemeDark' | 'ThemeLight' | 'ThemeGreen' | 'ThemeRed' | 'ThemeBlue' | 'ThemeYellow' | 'ThemePurple' | 'ThemeGray';
38
+ rounded?: "none" | "sm" | "md" | "lg" | "full";
39
+ borderedStyle?: boolean;
40
+ padding?: string | number;
41
+ shadow?: boolean;
42
+ colorShadow?: string;
43
+ customClassButton?: string;
44
+ customClassLabel?: string;
45
+ customClassIcon?: string;
46
+ customIcon?: React.ReactNode;
47
+ args?: ButtonHTMLAttributes<HTMLButtonElement>;
48
+ }
49
+
50
+ export declare const CheckBoxGal: ForwardRefExoticComponent<CheckProps & RefAttributes<HTMLInputElement>>;
51
+
52
+ export declare interface CheckProps {
53
+ label: string;
54
+ value: boolean;
55
+ setValue: (value: boolean) => void;
56
+ textSize?: number | string;
57
+ textColor?: string;
58
+ errorMessage?: string;
59
+ useLinkable?: boolean;
60
+ link?: string;
61
+ iconSize?: string | number;
62
+ seeIcon: boolean;
63
+ icon?: string;
64
+ iconColor?: string;
65
+ customInputClass?: string;
66
+ customLabelClass?: string;
67
+ customIconClass?: string;
68
+ customIcon?: React.ReactNode;
69
+ args?: InputHTMLAttributes<HTMLInputElement>;
70
+ }
71
+
72
+ declare type CompatibleInputTypes = 'text' | 'email' | 'password' | 'url' | 'tel' | 'number' | 'date' | 'time' | 'datetime-local' | 'search';
73
+
74
+ export declare function convertToUnix(dateString: string | Date): number;
75
+
76
+ declare interface DataValidation extends BaseProps {
77
+ typeInput: 'data';
78
+ value: any | null | undefined;
79
+ }
80
+
81
+ declare interface DateValidation extends BaseProps {
82
+ typeInput: 'date' | 'date-time';
83
+ value: Date | string | number | null | undefined;
84
+ min?: Date;
85
+ max?: Date;
86
+ }
87
+
88
+ export declare const DropDownGal: ForwardRefExoticComponent<DropDownProps & RefAttributes<HTMLInputElement>>;
89
+
90
+ export declare interface DropDownProps {
91
+ label?: string;
92
+ value: OptionsDropModel | null;
93
+ setValue: (value: OptionsDropModel | null) => void;
94
+ options: OptionsDropModel[];
95
+ placeholder?: string;
96
+ errorMessage?: string;
97
+ iconInRight?: boolean;
98
+ orientation?: 'top' | 'left' | 'right' | 'bottom';
99
+ rounded?: "none" | "sm" | "md" | "lg" | "full";
100
+ border?: boolean;
101
+ textSize?: number | string;
102
+ textColor?: string;
103
+ labelSize?: number | string;
104
+ labelColor?: string;
105
+ width?: number | string;
106
+ height?: number | string;
107
+ bgColor?: string;
108
+ shadow?: boolean;
109
+ icon?: string;
110
+ iconSize?: string | number;
111
+ iconsOptionsSize?: string | number;
112
+ seeIcon?: boolean;
113
+ seeOptionsIcons?: boolean;
114
+ iconsColor?: string;
115
+ customIcon?: React.ReactNode;
116
+ customContainerClass?: string;
117
+ customInputClass?: string;
118
+ customLabelClass?: string;
119
+ customIconClass?: string;
120
+ customOptionClass?: string;
121
+ }
122
+
123
+ declare interface EmailValidation extends BaseProps {
124
+ typeInput: 'email';
125
+ value: string | null | undefined;
126
+ }
127
+
128
+ declare type Event_2 = MouseEvent | TouchEvent;
129
+
130
+ declare const FileCatalog: {
131
+ readonly images: {
132
+ readonly common: "image/png, image/jpeg, image/gif, image/webp";
133
+ readonly png: "image/png";
134
+ readonly jpg: "image/jpeg, image/jpg";
135
+ readonly gif: "image/gif";
136
+ readonly svg: "image/svg+xml";
137
+ readonly webp: "image/webp";
138
+ readonly avif: "image/avif";
139
+ readonly ico: "image/x-icon, image/vnd.microsoft.icon";
140
+ readonly tiff: "image/tiff";
141
+ readonly bmp: "image/bmp";
142
+ readonly heic: "image/heic, image/heif";
143
+ };
144
+ readonly docs: {
145
+ readonly pdf: "application/pdf";
146
+ readonly word: ".doc, .docx, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document";
147
+ readonly excel: ".xls, .xlsx, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
148
+ readonly powerpoint: ".ppt, .pptx, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation";
149
+ readonly odt: "application/vnd.oasis.opendocument.text";
150
+ readonly ods: "application/vnd.oasis.opendocument.spreadsheet";
151
+ readonly odp: "application/vnd.oasis.opendocument.presentation";
152
+ readonly txt: "text/plain";
153
+ readonly rtf: "application/rtf";
154
+ readonly csv: "text/csv";
155
+ readonly markdown: "text/markdown, .md";
156
+ readonly epub: "application/epub+zip";
157
+ };
158
+ readonly archives: {
159
+ readonly zip: "application/zip, application/x-zip-compressed";
160
+ readonly rar: "application/x-rar-compressed, .rar";
161
+ readonly sevenZ: "application/x-7z-compressed";
162
+ readonly tar: "application/x-tar";
163
+ readonly gz: "application/gzip";
164
+ readonly iso: "application/x-iso9660-image, .iso";
165
+ };
166
+ readonly media: {
167
+ readonly audio: "audio/*";
168
+ readonly video: "video/*";
169
+ readonly mp3: "audio/mpeg";
170
+ readonly wav: "audio/wav";
171
+ readonly ogg: "audio/ogg, video/ogg";
172
+ readonly mp4: "video/mp4";
173
+ readonly webm: "video/webm";
174
+ readonly mov: "video/quicktime";
175
+ readonly avi: "video/x-msvideo";
176
+ };
177
+ readonly fonts: {
178
+ readonly woff: "font/woff";
179
+ readonly woff2: "font/woff2";
180
+ readonly ttf: "font/ttf, application/x-font-ttf";
181
+ readonly otf: "font/otf, application/x-font-opentype";
182
+ readonly eot: "application/vnd.ms-fontobject";
183
+ };
184
+ readonly code: {
185
+ readonly html: "text/html";
186
+ readonly css: "text/css";
187
+ readonly js: "text/javascript, application/javascript, .mjs";
188
+ readonly ts: "application/typescript, .ts, .tsx";
189
+ readonly json: "application/json";
190
+ readonly xml: "application/xml, text/xml";
191
+ readonly python: "text/x-python, .py";
192
+ readonly java: "text/x-java-source, .java, application/java-archive, .jar";
193
+ readonly csharp: "text/plain, .cs";
194
+ readonly cpp: "text/x-c++, .cpp, .h, .hpp";
195
+ readonly c: "text/x-c, .c";
196
+ readonly php: "application/x-httpd-php, .php";
197
+ readonly sql: "application/sql, .sql";
198
+ readonly sh: "application/x-sh, .sh";
199
+ readonly yaml: "text/yaml, .yaml, .yml";
200
+ };
201
+ };
202
+
203
+ export declare const InputFileGal: ForwardRefExoticComponent<InputFileProps & RefAttributes<HTMLInputElement>>;
204
+
205
+ export declare interface InputFileProps {
206
+ label?: string;
207
+ acceptFiles?: AcceptProp;
208
+ textButtonCancel?: string;
209
+ errorMessage?: string;
210
+ selectedFileE: File | null;
211
+ setSelectedFileE: (e: File | null) => void;
212
+ maxMBSize?: number;
213
+ shadow?: boolean;
214
+ width?: string | number;
215
+ height?: string | number;
216
+ bgColor?: string;
217
+ bgColorHover?: string;
218
+ labelSize?: number | string;
219
+ labelColor?: string;
220
+ rounded?: "none" | "sm" | "md" | "lg" | "full";
221
+ iconSize?: string | number;
222
+ seeIcon?: boolean;
223
+ icon?: string;
224
+ iconColor?: string;
225
+ customFIleClass?: string;
226
+ customSelectedClass?: string;
227
+ customLabelClass?: string;
228
+ customIconClass?: string;
229
+ customIcon?: React.ReactNode;
230
+ args?: InputHTMLAttributes<HTMLInputElement>;
231
+ }
232
+
233
+ export declare interface InputProps {
234
+ placeholder?: string;
235
+ value?: string;
236
+ setValue?: (text: string) => void;
237
+ label?: string;
238
+ typeInput?: CompatibleInputTypes;
239
+ errorMessage?: string;
240
+ rounded?: "none" | "sm" | "md" | "lg" | "full";
241
+ width?: string | number;
242
+ height?: string | number;
243
+ shadow?: boolean;
244
+ border?: boolean;
245
+ textSize?: number | string;
246
+ textColor?: string;
247
+ bgColor?: string;
248
+ HorV?: "horizontal" | "vertical";
249
+ customContainerClass?: string;
250
+ customInputClass?: string;
251
+ customIconRClass?: string;
252
+ customIconLClass?: string;
253
+ seeIconLeft?: boolean;
254
+ seeIconRight?: boolean;
255
+ iconColorL?: string;
256
+ iconColorR?: string;
257
+ iconColorPass?: string;
258
+ iconSizeL?: number;
259
+ iconSizeR?: number;
260
+ iconSizePass?: number;
261
+ iconLeft?: string;
262
+ iconRight?: string;
263
+ customIconLeft?: React.ReactNode;
264
+ customIconRight?: React.ReactNode;
265
+ args?: InputHTMLAttributes<HTMLInputElement>;
266
+ }
267
+
268
+ export declare const InputRadioGal: ForwardRefExoticComponent<RadioProps & RefAttributes<HTMLInputElement>>;
269
+
270
+ export declare const InputTextGal: ForwardRefExoticComponent<InputProps & RefAttributes<HTMLInputElement>>;
271
+
272
+ declare type MixedCategory = NameCategory | NameAttributesCategory | '*';
273
+
274
+ export declare type NameAttributesCategory = {
275
+ [K in NameCategory]?: (keyof typeof FileCatalog[K])[];
276
+ };
277
+
278
+ export declare type NameCategory = keyof typeof FileCatalog;
279
+
280
+ declare interface NumberValidation extends BaseProps {
281
+ typeInput: 'num';
282
+ value: number | null | undefined;
283
+ min?: number;
284
+ max?: number;
285
+ isInteger?: boolean;
286
+ needBeEqualTo?: number;
287
+ }
288
+
289
+ export declare interface OptionsDropModel {
290
+ valueOption: number | string | null;
291
+ text: string;
292
+ icon?: string;
293
+ iconColor?: string;
294
+ customIcon?: React.ReactNode;
295
+ }
296
+
297
+ declare interface PassValidation extends BaseProps {
298
+ typeInput: 'pass';
299
+ value: string | null | undefined;
300
+ }
301
+
302
+ declare interface PhoneValidation extends BaseProps {
303
+ typeInput: 'phone';
304
+ value: string | null | undefined;
305
+ }
306
+
307
+ declare interface PropsOptions {
308
+ value: string | number;
309
+ label: string;
310
+ seeIcon: boolean;
311
+ icon?: string;
312
+ iconColor?: string;
313
+ customIcon?: default_2.ReactNode;
314
+ customIconClass?: string;
315
+ }
316
+
317
+ export declare interface RadioProps {
318
+ label: string;
319
+ name: string;
320
+ options: PropsOptions[];
321
+ setValue: (value: string) => void;
322
+ textSize?: number | string;
323
+ textColor?: string;
324
+ labelSize?: number | string;
325
+ labelColor?: string;
326
+ errorMessage?: string;
327
+ iconInRight?: boolean;
328
+ HorV?: 'horizontal' | 'vertical';
329
+ icon?: string;
330
+ iconSize?: string | number;
331
+ iconColor?: string;
332
+ seeIcon?: boolean;
333
+ customIcon?: default_2.ReactElement;
334
+ customInputClass?: string;
335
+ customLabelClass?: string;
336
+ customTextClass?: string;
337
+ customIconLabelClass?: string;
338
+ customContainerRadiosClass?: string;
339
+ }
340
+
341
+ declare type SupportedTimeZone = typeof TIMEZONES[number];
342
+
343
+ export declare const TextAreaGal: ForwardRefExoticComponent<TextAreaProps & RefAttributes<HTMLTextAreaElement>>;
344
+
345
+ export declare interface TextAreaProps {
346
+ placeholder?: string;
347
+ value?: string;
348
+ setValue?: (text: string) => void;
349
+ label?: string;
350
+ errorMessage?: string;
351
+ seeMaxCharCounter?: boolean;
352
+ maxCharacters?: number;
353
+ rounded?: "none" | "sm" | "md" | "lg";
354
+ width?: string | number;
355
+ height?: string | number;
356
+ maxWidth?: string | number;
357
+ maxHeight?: string | number;
358
+ shadow?: boolean;
359
+ border?: boolean;
360
+ textSize?: number | string;
361
+ textColor?: string;
362
+ bgColor?: string;
363
+ iconInRight?: boolean;
364
+ resize?: boolean;
365
+ customContainerClass?: string;
366
+ customTextAreaClass?: string;
367
+ customIconClass?: string;
368
+ seeIcon?: boolean;
369
+ iconColor?: string;
370
+ iconSize?: number;
371
+ icon?: string;
372
+ customIcon?: React.ReactNode;
373
+ args?: TextareaHTMLAttributes<HTMLTextAreaElement>;
374
+ }
375
+
376
+ declare interface TextValidation extends BaseProps {
377
+ typeInput: 'text';
378
+ value: string | null | undefined;
379
+ maxLength?: number;
380
+ minLength?: number;
381
+ regex?: RegExp;
382
+ needBeEqualTo?: string;
383
+ }
384
+
385
+ declare interface TimeValidation extends BaseProps {
386
+ typeInput: 'time';
387
+ value: Date | string | number | null | undefined;
388
+ min?: Date;
389
+ max?: Date;
390
+ }
391
+
392
+ export declare const TIMEZONES: readonly ["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"];
393
+
394
+ export declare function unixToDate(unixTime: number | null | undefined, timeZone?: SupportedTimeZone): string;
395
+
396
+ export declare function unixToDateTime(unixTime: number | null | undefined, timeZone?: SupportedTimeZone): string;
397
+
398
+ export declare function unixToDateTimeString(unixTime: number | null | undefined, timeZone?: SupportedTimeZone): string;
399
+
400
+ export declare function unixToStringYMD(unixTimestamp: number | null | undefined, timeZone?: SupportedTimeZone): string;
401
+
402
+ declare interface UrlValidation extends BaseProps {
403
+ typeInput: 'url';
404
+ value: string | null | undefined;
405
+ }
406
+
407
+ export declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T | null>, handler: (event: Event_2) => void) => void;
408
+
409
+ export declare type ValidateProps = TextValidation | EmailValidation | PhoneValidation | UrlValidation | PassValidation | NumberValidation | BoolValidation | DateValidation | TimeValidation | DataValidation;
410
+
411
+ export { }
package/dist/index.cjs ADDED
@@ -0,0 +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;