corekit-ui 0.1.5 → 0.1.8
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 +1 -1
- package/README.md +8 -8
- package/package.json +120 -132
- package/dist/index.d.ts +0 -119
- package/dist/index.js +0 -922
- package/dist/index.js.map +0 -1
- package/dist/index.umd.cjs +0 -3
- package/dist/index.umd.cjs.map +0 -1
- package/dist/vite.svg +0 -1
package/dist/index.js
DELETED
|
@@ -1,922 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(':where(._boton_3lotu_1){--ease-out-fluid: cubic-bezier(.22, 1, .36, 1);--ease-quick: cubic-bezier(.4, 0, .2, 1);--color-dur: .36s;--shadow-dur: .48s;--transform-dur: .18s;--ease-extra-smooth: cubic-bezier(.2, 0, .2, 1);--ripple-duration: .6s;--ripple-opacity: .3}._boton_3lotu_1{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--color-primary-text);contain:paint;cursor:pointer;display:inline-flex;font-size:var(--paragraph);font-weight:500;isolation:isolate;justify-content:center;line-height:normal;outline:none;overflow:hidden;position:relative;touch-action:manipulation;transition:background-color var(--color-dur) var(--ease-out-fluid),color var(--color-dur) var(--ease-out-fluid),border-color var(--color-dur) var(--ease-out-fluid),box-shadow var(--shadow-dur) var(--ease-out-fluid),opacity .22s var(--ease-out-fluid),transform var(--transform-dur) var(--ease-quick);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}._inner_3lotu_81{align-items:center;display:inline-flex;gap:.5rem;justify-content:center;position:relative;z-index:1}._start_3lotu_99,._end_3lotu_101,._label_3lotu_103,._spinner_3lotu_105{align-items:center;display:inline-flex;justify-content:center}._start_3lotu_99,._end_3lotu_101{font-size:1em;line-height:1}._start_3lotu_99 :where(svg,img),._end_3lotu_101 :where(svg,img){height:1em;display:block;flex:0 0 auto;width:1em}._ripple_3lotu_145{animation:_ripple_effect_3lotu_1 var(--ripple-duration) var(--ease-extra-smooth) forwards;background-color:color-mix(in srgb,currentcolor 80%,transparent);border-radius:50%;contain:strict;opacity:var(--ripple-opacity);pointer-events:none;position:absolute;transform:translate(-50%,-50%) scale(0);will-change:transform,opacity;z-index:0}@keyframes _ripple_effect_3lotu_1{to{opacity:0;transform:translate(-50%,-50%) scale(1)}}@media (prefers-reduced-motion: reduce){._ripple_3lotu_145{animation-duration:.3s;opacity:.18}}._tap_animation_3lotu_199{will-change:transform}._tap_animation_3lotu_199:active:not(:disabled){transform:scale(.98)}._boton_3lotu_1:focus-visible{outline:3px solid color-mix(in oklab,var(--btn-color),white 20%);outline-offset:2px}._boton_3lotu_1:focus:not(:focus-visible){outline:none}._spinner_3lotu_105{height:1em;width:1em}._modern_spinner_3lotu_243{animation:_spinner_rotate_3lotu_1 1s infinite linear;background:radial-gradient(farthest-side,currentcolor 94%,transparent) top/.16em .16em no-repeat,conic-gradient(transparent 30%,currentcolor);height:1em;border-radius:50%;width:1em;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - .16em),black 0);mask:radial-gradient(farthest-side,transparent calc(100% - .16em),black 0);will-change:transform}@keyframes _spinner_rotate_3lotu_1{to{transform:rotate(1turn)}}._loading_3lotu_279{cursor:progress;opacity:.7;pointer-events:none}._disabled_3lotu_291{cursor:not-allowed;opacity:.5;pointer-events:none}._full_width_3lotu_303{width:100%}._icon_only_3lotu_311{align-items:center;aspect-ratio:1;display:inline-flex;width:2.5rem;width:var(--icon-size, 2.5rem);justify-content:center;padding:0!important}._icon_only_3lotu_311._sm_3lotu_329{--icon-size: 2.25rem}._icon_only_3lotu_311._md_3lotu_337{--icon-size: 2.5rem}._icon_only_3lotu_311._lg_3lotu_345{--icon-size: 2.75rem}._sm_3lotu_329{font-size:.875rem;padding-top:var(--gaps-1);padding-bottom:var(--gaps-1);padding-left:var(--gaps-3);padding-right:var(--gaps-3)}._md_3lotu_337{font-size:var(--paragraph);padding-top:var(--gaps-2);padding-bottom:var(--gaps-2);padding-left:var(--gaps-4);padding-right:var(--gaps-4)}._lg_3lotu_345{font-size:var(--subtitle);padding-top:var(--gaps-2);padding-bottom:var(--gaps-2);padding-left:var(--gaps-5);padding-right:var(--gaps-5)}._radius_none_3lotu_389{border-radius:0}._radius_sm_3lotu_397{border-radius:var(--radius-1)}._radius_md_3lotu_405{border-radius:var(--radius-2)}._radius_lg_3lotu_413{border-radius:var(--radius-3)}._radius_full_3lotu_421{border-radius:var(--radius-round)}._solid_3lotu_429{background-color:var(--btn-color);color:#fff}._bordered_3lotu_439{background:transparent;border:2px solid var(--btn-text-color);color:var(--btn-text-color)}._ghost_3lotu_451{background:transparent;border:2px solid var(--btn-text-color);color:var(--btn-text-color);opacity:.9}._light_3lotu_465{background:transparent;border:none;color:var(--btn-text-color)}._faded_3lotu_477{background-color:var(--theme-faded-bg);border:2px solid var(--theme-faded-border);color:var(--btn-text-color)}._shadow_3lotu_489{background-color:var(--btn-color);box-shadow:0 12px 18px -10px color-mix(in oklab,var(--btn-shadow-color) 45%,transparent),0 16px 36px -14px color-mix(in oklab,var(--btn-shadow-color) 35%,transparent);color:#fff}._solid_3lotu_429:hover:not(:disabled):not(._loading_3lotu_279),._shadow_3lotu_489:hover:not(:disabled):not(._loading_3lotu_279){background-color:color-mix(in oklab,var(--btn-color) 96%,white 4%)}._shadow_3lotu_489:hover:not(:disabled):not(._loading_3lotu_279){box-shadow:0 12px 24px -12px color-mix(in oklab,var(--btn-shadow-color) 95%,transparent),0 22px 44px -18px color-mix(in oklab,var(--btn-shadow-color) 45%,transparent)}._bordered_3lotu_439:hover:not(:disabled):not(._loading_3lotu_279){border-color:color-mix(in oklab,var(--btn-text-color) 86%,transparent)}._ghost_3lotu_451:hover:not(:disabled):not(._loading_3lotu_279){background-color:color-mix(in oklab,var(--btn-text-color) 8%,transparent);border-color:color-mix(in oklab,var(--btn-text-color) 86%,transparent);color:var(--btn-text-color);opacity:1}._light_3lotu_465:hover:not(:disabled):not(._loading_3lotu_279){background-color:color-mix(in oklab,var(--btn-text-color) 15%,transparent);color:var(--btn-text-color)}._faded_3lotu_477:hover:not(:disabled):not(._loading_3lotu_279){background-color:color-mix(in oklab,var(--btn-text-color) 10%,var(--theme-faded-bg));border-color:color-mix(in oklab,var(--btn-text-color) 32%,var(--theme-faded-border))}._shadow_3lotu_489:active:not(:disabled):not(._loading_3lotu_279){box-shadow:0 8px 18px -12px color-mix(in oklab,var(--btn-shadow-color) 60%,transparent),0 16px 34px -20px color-mix(in oklab,var(--btn-shadow-color) 50%,transparent)}._primary_3lotu_581{--btn-color: var(--brand-6);--csstools-light-dark-toggle--0: var(--csstools-color-scheme--light) var(--brand-4);--btn-text-color: var(--csstools-light-dark-toggle--0, var(--brand-6));--btn-color-foreground: var(--base);--btn-color-light: var(--brand-1);--btn-color-faded: var(--brand-4);--btn-shadow-color: var(--brand-6)}@supports (color: light-dark(red,red)){._primary_3lotu_581{--btn-text-color: light-dark(var(--brand-6), var(--brand-4))}}@supports not (color: light-dark(tan,tan)){._primary_3lotu_581 *{--csstools-light-dark-toggle--0: var(--csstools-color-scheme--light) var(--brand-4);--btn-text-color: var(--csstools-light-dark-toggle--0, var(--brand-6))}}._secondary_3lotu_599{--btn-color: #3d6b0c;--csstools-light-dark-toggle--1: var(--csstools-color-scheme--light) var(--brand-4-secondary);--btn-text-color: var(--csstools-light-dark-toggle--1, #3d6b0c);--btn-color-foreground: var(--base);--btn-color-light: var(--brand-1-secondary);--btn-color-faded: #3d6b0c;--btn-shadow-color: #3d6b0c}@supports (color: light-dark(red,red)){._secondary_3lotu_599{--btn-text-color: light-dark(#3d6b0c, var(--brand-4-secondary))}}@supports not (color: light-dark(tan,tan)){._secondary_3lotu_599 *{--csstools-light-dark-toggle--1: var(--csstools-color-scheme--light) var(--brand-4-secondary);--btn-text-color: var(--csstools-light-dark-toggle--1, #3d6b0c)}}._success_3lotu_617{--btn-color: #246f2e;--csstools-light-dark-toggle--2: var(--csstools-color-scheme--light) var(--color-add-green-4);--btn-text-color: var(--csstools-light-dark-toggle--2, #246f2e);--btn-color-foreground: var(--base);--btn-color-light: var(--color-add-green-1);--btn-color-faded: #246f2e;--btn-shadow-color: #246f2e}@supports (color: light-dark(red,red)){._success_3lotu_617{--btn-text-color: light-dark(#246f2e, var(--color-add-green-4))}}@supports not (color: light-dark(tan,tan)){._success_3lotu_617 *{--csstools-light-dark-toggle--2: var(--csstools-color-scheme--light) var(--color-add-green-4);--btn-text-color: var(--csstools-light-dark-toggle--2, #246f2e)}}._warning_3lotu_635{--btn-color: #a04d00;--csstools-light-dark-toggle--3: var(--csstools-color-scheme--light) var(--color-add-orange-4);--btn-text-color: var(--csstools-light-dark-toggle--3, #a04d00);--btn-color-foreground: var(--base);--btn-color-light: var(--color-add-orange-1);--btn-color-faded: #a04d00;--btn-shadow-color: #a04d00}@supports (color: light-dark(red,red)){._warning_3lotu_635{--btn-text-color: light-dark(#a04d00, var(--color-add-orange-4))}}@supports not (color: light-dark(tan,tan)){._warning_3lotu_635 *{--csstools-light-dark-toggle--3: var(--csstools-color-scheme--light) var(--color-add-orange-4);--btn-text-color: var(--csstools-light-dark-toggle--3, #a04d00)}}._danger_3lotu_653{--btn-color: var(--color-add-red-6);--csstools-light-dark-toggle--4: var(--csstools-color-scheme--light) var(--color-add-red-4);--btn-text-color: var(--csstools-light-dark-toggle--4, var(--color-add-red-6));--btn-color-foreground: var(--base);--btn-color-light: var(--color-add-red-1);--btn-color-faded: var(--color-add-red-5);--btn-shadow-color: var(--color-add-red-6)}@supports (color: light-dark(red,red)){._danger_3lotu_653{--btn-text-color: light-dark(var(--color-add-red-6), var(--color-add-red-4))}}@supports not (color: light-dark(tan,tan)){._danger_3lotu_653 *{--csstools-light-dark-toggle--4: var(--csstools-color-scheme--light) var(--color-add-red-4);--btn-text-color: var(--csstools-light-dark-toggle--4, var(--color-add-red-6))}}._default_3lotu_671{--btn-color: var(--gray-6);--csstools-light-dark-toggle--5: var(--csstools-color-scheme--light) var(--gray-4);--btn-text-color: var(--csstools-light-dark-toggle--5, var(--gray-6));--btn-color-foreground: var(--base);--btn-color-light: var(--gray-2);--btn-color-faded: var(--gray-5);--btn-shadow-color: var(--gray-6)}@supports (color: light-dark(red,red)){._default_3lotu_671{--btn-text-color: light-dark(var(--gray-6), var(--gray-4))}}@supports not (color: light-dark(tan,tan)){._default_3lotu_671 *{--csstools-light-dark-toggle--5: var(--csstools-color-scheme--light) var(--gray-4);--btn-text-color: var(--csstools-light-dark-toggle--5, var(--gray-6))}}._dialog_1i8zu_1{align-items:center;background:transparent;border:none;display:flex;height:100vh;inset:0;justify-content:center;padding:0;position:fixed;width:100vw}._dialog_1i8zu_1::backdrop{-webkit-backdrop-filter:blur(.1875rem);backdrop-filter:blur(.1875rem);background-color:#000000d9}._dialog_1i8zu_1[open]{animation:_aparecer-dialog_1i8zu_1 .2s cubic-bezier(.4,0,.2,1)}@keyframes _aparecer-dialog_1i8zu_1{0%{opacity:0;transform:scale(.95) translateY(-1rem)}to{opacity:1;transform:scale(1) translateY(0)}}._modal_1i8zu_71{--csstools-light-dark-toggle--0: var(--csstools-color-scheme--light) #1e1e1e;background:#fff;background:var(--csstools-light-dark-toggle--0, #fff);background:light-dark(#fff,#1e1e1e);border-radius:1.25rem;box-shadow:0 1.5rem 3rem #00000080;display:flex;flex-direction:column;max-height:90vh;max-width:40rem;overflow-y:auto;width:90vw}._encabezado_1i8zu_95{align-items:center;display:flex;justify-content:space-between;padding:1.5rem 1.5rem 1rem}._titulo_1i8zu_109{--csstools-light-dark-toggle--1: var(--csstools-color-scheme--light) #fff;color:#1a1a1a;color:var(--csstools-light-dark-toggle--1, #1a1a1a);color:light-dark(#1a1a1a,#fff);font-size:1.125rem;font-weight:500;margin:0}._boton_cerrar_1i8zu_123{align-items:center;--csstools-light-dark-toggle--2: var(--csstools-color-scheme--light) #2a2a2a;background:#f0f0f0;background:var(--csstools-light-dark-toggle--2, #f0f0f0);background:light-dark(#f0f0f0,#2a2a2a);border:none;border-radius:.375rem;--csstools-light-dark-toggle--3: var(--csstools-color-scheme--light) #999;color:#666;color:var(--csstools-light-dark-toggle--3, #666);color:light-dark(#666,#999);cursor:pointer;display:flex;gap:.375rem;padding:.375rem .75rem;transition:all .15s ease}._boton_cerrar_1i8zu_123:hover{--csstools-light-dark-toggle--4: var(--csstools-color-scheme--light) #333;background:#e0e0e0;background:var(--csstools-light-dark-toggle--4, #e0e0e0);background:light-dark(#e0e0e0,#333);--csstools-light-dark-toggle--5: var(--csstools-color-scheme--light) #fff;color:#1a1a1a;color:var(--csstools-light-dark-toggle--5, #1a1a1a);color:light-dark(#1a1a1a,#fff)}._texto_esc_1i8zu_159{font-size:.6875rem;font-weight:600;letter-spacing:.025rem;text-transform:uppercase}._icono_x_1i8zu_173{font-size:1rem;line-height:1}._contenedor_lienzo_1i8zu_183{padding:0 1.5rem;position:relative}._area_firma_1i8zu_193{--csstools-light-dark-toggle--6: var(--csstools-color-scheme--light) #0d0d0d;background:#fafafa;background:var(--csstools-light-dark-toggle--6, #fafafa);background:light-dark(#fafafa,#0d0d0d);border-radius:1rem;overflow:hidden;position:relative}._lienzo_1i8zu_207{cursor:crosshair;display:block;height:auto;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}._lienzo_1i8zu_207:focus{--csstools-light-dark-toggle--7: var(--csstools-color-scheme--light) #4a9eff;outline:.125rem solid #007acc;outline:.125rem solid var(--csstools-light-dark-toggle--7, #007acc);outline:.125rem solid light-dark(#007acc,#4a9eff);outline-offset:.125rem}._lienzo_deshabilitado_1i8zu_235{cursor:not-allowed;opacity:.6}._barra_acciones_1i8zu_245{align-items:center;--csstools-light-dark-toggle--8: var(--csstools-color-scheme--light) #0d0d0d;background:#fafafa;background:var(--csstools-light-dark-toggle--8, #fafafa);background:light-dark(#fafafa,#0d0d0d);display:flex;justify-content:space-between;padding:.5rem 1.5rem}._grupo_izquierda_1i8zu_261{align-items:center;display:flex;gap:.5rem}._separador_1i8zu_273{--csstools-light-dark-toggle--9: var(--csstools-color-scheme--light) #444;color:#ccc;color:var(--csstools-light-dark-toggle--9, #ccc);color:light-dark(#ccc,#444);font-size:.875rem;padding:0 .25rem}._boton_accion_1i8zu_285{align-items:center;background:transparent;border:none;--csstools-light-dark-toggle--10: var(--csstools-color-scheme--light) #999;color:#666;color:var(--csstools-light-dark-toggle--10, #666);color:light-dark(#666,#999);cursor:pointer;display:flex;font-size:.875rem;font-weight:400;gap:.375rem;padding:.25rem .5rem;transition:all .15s ease}._boton_accion_1i8zu_285:disabled{cursor:not-allowed;opacity:.3}._boton_accion_1i8zu_285:hover:not(:disabled){--csstools-light-dark-toggle--11: var(--csstools-color-scheme--light) #fff;color:#1a1a1a;color:var(--csstools-light-dark-toggle--11, #1a1a1a);color:light-dark(#1a1a1a,#fff)}._boton_guardar_1i8zu_331{background:transparent;border:none;--csstools-light-dark-toggle--12: var(--csstools-color-scheme--light) #4a9eff;color:#007acc;color:var(--csstools-light-dark-toggle--12, #007acc);color:light-dark(#007acc,#4a9eff);cursor:pointer;font-size:.9375rem;font-weight:400;padding:.5rem .75rem;transition:all .15s ease}._boton_guardar_1i8zu_331:disabled{cursor:not-allowed;opacity:.3}._boton_guardar_1i8zu_331:hover:not(:disabled){--csstools-light-dark-toggle--13: var(--csstools-color-scheme--light) #6bb0ff;color:#005a9e;color:var(--csstools-light-dark-toggle--13, #005a9e);color:light-dark(#005a9e,#6bb0ff)}._icono_1i8zu_173{height:1rem;width:1rem}._contenedor_consentimiento_1i8zu_385{--csstools-light-dark-toggle--14: var(--csstools-color-scheme--light) #1a1a1a;background:#f5f5f5;background:var(--csstools-light-dark-toggle--14, #f5f5f5);background:light-dark(#f5f5f5,#1a1a1a);border-radius:.875rem;margin:1.5rem;padding:1.25rem 1.5rem}._contenedor_checkbox_1i8zu_401{align-items:center;cursor:pointer;display:flex;gap:.75rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}._checkbox_nativo_1i8zu_417{height:0;opacity:0;position:absolute;width:0}._checkbox_custom_1i8zu_431{align-items:center;--csstools-light-dark-toggle--15: var(--csstools-color-scheme--light) #3a3a3a;background:#d0d0d0;background:var(--csstools-light-dark-toggle--15, #d0d0d0);background:light-dark(#d0d0d0,#3a3a3a);border-radius:.75rem;display:flex;flex-shrink:0;height:1.5rem;justify-content:flex-start;padding:.1875rem;position:relative;transition:all .2s ease;width:2.75rem}._checkbox_custom_1i8zu_431:before{--csstools-light-dark-toggle--16: var(--csstools-color-scheme--light) #888;background:#fff;background:var(--csstools-light-dark-toggle--16, #fff);background:light-dark(#fff,#888);border-radius:50%;box-shadow:0 .125rem .25rem #0003;content:"";height:1.125rem;transition:all .2s ease;width:1.125rem}._checkbox_nativo_1i8zu_417:checked+._checkbox_custom_1i8zu_431{--csstools-light-dark-toggle--17: var(--csstools-color-scheme--light) #4a9eff;background:#4a9eff;background:var(--csstools-light-dark-toggle--17, #4a9eff);background:light-dark(#4a9eff,#4a9eff)}._checkbox_nativo_1i8zu_417:checked+._checkbox_custom_1i8zu_431:before{background:#fff;transform:translate(1.25rem)}._texto_consentimiento_1i8zu_497{--csstools-light-dark-toggle--18: var(--csstools-color-scheme--light) #aaa;color:#666;color:var(--csstools-light-dark-toggle--18, #666);color:light-dark(#666,#aaa);flex:1;font-size:.8125rem;line-height:1.5;margin:0}._contenedor_subir_1i8zu_515{margin-bottom:1.5rem;padding:0 1.5rem}._boton_subir_1i8zu_525{align-items:center;background:transparent;border:none;--csstools-light-dark-toggle--19: var(--csstools-color-scheme--light) #aaa;color:#666;color:var(--csstools-light-dark-toggle--19, #666);color:light-dark(#666,#aaa);cursor:pointer;display:inline-flex;font-size:.875rem;font-weight:400;gap:.5rem;padding:.5rem .75rem;transition:all .15s ease}._boton_subir_1i8zu_525:hover{--csstools-light-dark-toggle--20: var(--csstools-color-scheme--light) #fff;color:#1a1a1a;color:var(--csstools-light-dark-toggle--20, #1a1a1a);color:light-dark(#1a1a1a,#fff)}._input_archivo_1i8zu_561{display:none}@media (max-width: 48rem){._dialog_1i8zu_1{max-height:95vh;width:95vw}._encabezado_1i8zu_95{padding:1rem 1rem .75rem}._titulo_1i8zu_109{font-size:1rem}._contenedor_lienzo_1i8zu_183{padding:0 1rem}._barra_acciones_1i8zu_245{flex-direction:column;gap:.75rem;padding:.75rem 1rem}._grupo_izquierda_1i8zu_261,._boton_guardar_1i8zu_331{width:100%}._contenedor_consentimiento_1i8zu_385{margin:1rem;padding:1rem}._contenedor_subir_1i8zu_515{margin-bottom:1rem;padding:0 1rem}._boton_accion_1i8zu_285{font-size:.8125rem;gap:.25rem;padding:.375rem .5rem}._texto_esc_1i8zu_159{display:none}}@keyframes desvanecer_deslizar_entrada{0%{filter:blur(2px);opacity:0;transform:translateY(-8px) scale(.985) skewY(-1.2deg)}60%{filter:blur(.3px);opacity:.92;transform:translateY(2px) scale(1.012) skewY(.15deg)}to{filter:blur(0);opacity:1;transform:translateY(0) scale(1) skewY(0)}}.transicion_desvanecer_deslizar_entrada{animation:desvanecer_deslizar_entrada .38s cubic-bezier(.25,1,.5,1) forwards;backface-visibility:hidden;will-change:transform,opacity,filter}:root{--dur-enter: .8s;--dur-exit: .6s;--ease-emph: cubic-bezier(.2, .7, 0, 1);--ease-emph-in: cubic-bezier(.3, 0, .8, .15)}._contenedor_base_sg347_19{display:grid;grid-gap:var(--gaps-1);gap:var(--gaps-1);width:100%}._etiqueta_sg347_39{color:var(--color-secondary-text);font-size:var(--label);margin:.1em 0 .15em;-webkit-user-select:none;-moz-user-select:none;user-select:none}._marca_requerido_sg347_53{color:var(--system-error-color);font-size:1.25em;font-weight:700;line-height:0}._fila_acciones_sg347_67{align-items:center;display:flex;justify-content:space-between}._etiqueta_externa_sg347_79{font-size:.8em;font-weight:500;margin-bottom:.1em;padding-left:2px;padding-right:2px}._etiqueta_interna_sg347_93{color:var(--color-secondary-text);font-size:.8em;font-weight:500;margin:.05em 0}._encabezado_interno_sg347_109{align-items:center;display:grid;grid-gap:.5rem;gap:.5rem;grid-template-columns:1fr auto;padding:.4rem .9rem .15rem}._encabezado_interno_sg347_109 ._etiqueta_interna_sg347_93{min-width:0;overflow:hidden;pointer-events:none;text-overflow:ellipsis}._acciones_grupo_sg347_141{align-items:center;display:flex;flex-wrap:nowrap;gap:.5rem;min-width:0}._acciones_header_sg347_157{display:inline-flex;gap:.35rem}._encabezado_interno_sg347_109 ._acciones_grupo_sg347_141{justify-self:end;position:relative;z-index:1}._envoltorio_input_sg347_181{background:var(--surface-first);border:1px solid var(--surface-third);border-radius:var(--radius-3);overflow:visible;transition:border-color .18s,box-shadow .18s,background .18s}._label_outside_sg347_203 ._envoltorio_input_sg347_181{padding-top:var(--gaps-1)}._variante_normal_sg347_211 ._envoltorio_input_sg347_181{background:transparent;border:1px solid var(--surface-third);box-shadow:none}._variante_underlined_sg347_223 ._envoltorio_input_sg347_181{background:transparent;border:none;border-radius:0!important;box-shadow:none!important;overflow:visible;padding:0;position:relative}._variante_underlined_sg347_223 ._envoltorio_input_sg347_181:after{background:#1e90ff;background:var(--brand-6, #1e90ff);bottom:0;content:"";height:2.5px;left:0;position:absolute;right:0;transform:scaleX(0);transition:transform .4s cubic-bezier(.4,0,.2,1)}._variante_light_sg347_267 ._envoltorio_input_sg347_181{background:var(--surface-second);border:none;box-shadow:none!important}._variante_bordered_sg347_279 ._envoltorio_input_sg347_181{border-color:var(--gray-4)}._variante_faded_sg347_287 ._envoltorio_input_sg347_181{background:var(--theme-faded-bg);border-color:var(--theme-faded-border)}._radio_none_sg347_299 ._envoltorio_input_sg347_181{border-radius:0}._radio_sm_sg347_307 ._envoltorio_input_sg347_181{border-radius:var(--radius-2)}._radio_md_sg347_315 ._envoltorio_input_sg347_181{border-radius:var(--radius-3)}._radio_lg_sg347_323 ._envoltorio_input_sg347_181{border-radius:var(--radius-4)}._envoltorio_input_sg347_181:focus-within{border-color:var(--gray-4);box-shadow:0 0 0 2px var(--gray-3)}._variante_underlined_sg347_223 ._envoltorio_input_sg347_181:focus-within:after{transform:scaleX(1)}._invalido_sg347_353 ._envoltorio_input_sg347_181{border-color:var(--system-error-color)!important;box-shadow:0 0 0 3px #e6000024}._variante_light_sg347_267 ._envoltorio_input_sg347_181:focus-within{background:var(--surface-third)}._color_primary_sg347_373 ._envoltorio_input_sg347_181:focus-within{border-color:var(--brand-5);box-shadow:0 0 0 3px #0088c22e}._color_secondary_sg347_383 ._envoltorio_input_sg347_181:focus-within{border-color:var(--brand-secondary);box-shadow:0 0 0 3px #5dc3222e}._color_success_sg347_393 ._envoltorio_input_sg347_181:focus-within{border-color:var(--color-add-green-6);box-shadow:0 0 0 3px #29a35a2e}._color_warning_sg347_403 ._envoltorio_input_sg347_181:focus-within{border-color:var(--color-add-orange-6);box-shadow:0 0 0 3px #e686002e}._color_danger_sg347_413 ._envoltorio_input_sg347_181:focus-within{border-color:var(--system-error-color);box-shadow:0 0 0 3px #e600002e}._deshabilitado_sg347_425{opacity:.8;pointer-events:none}._sin_animacion_sg347_435 *{transition:none!important}._variante_light_sg347_267 ._envoltorio_input_sg347_181:hover{background:var(--surface-third)}._contenedor_interior_sg347_453{align-items:start;background:transparent;display:grid;grid-gap:.35rem;gap:.35rem;padding:0 .75rem .6rem}._inicio_sg347_469,._fin_sg347_471{align-self:start;color:var(--color-secondary-text)}._entrada_sg347_483{background:transparent;border:0;color:var(--color-primary-text);font:inherit;line-height:var(--font-lineheight-6);min-width:0;outline:none;resize:none;text-wrap:balance;width:100%}._entrada_sg347_483::-moz-placeholder{color:var(--color-placeholder);opacity:1}._entrada_sg347_483::placeholder{color:var(--color-placeholder);opacity:1}._sin_autosize_sg347_519{resize:vertical}._estado_interno_sg347_529{display:flex;justify-content:flex-end;padding:.25rem .75rem}._tam_sm_sg347_543 ._encabezado_interno_sg347_109{font-size:var(--label)}._tam_md_sg347_551 ._encabezado_interno_sg347_109{font-size:var(--paragraph)}._tam_lg_sg347_559 ._encabezado_interno_sg347_109{font-size:var(--subtitle)}._boton_tts_sg347_569,._boton_limpiar_sg347_571{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--surface-first);border:1px solid var(--surface-third);border-radius:var(--radius-3);color:var(--color-primary-text);cursor:pointer;font-size:.9rem;isolation:isolate;line-height:1;padding:.18rem .46rem;position:relative;-webkit-tap-highlight-color:transparent;transition:transform .18s,box-shadow .18s,background .18s,border-color .18s,color .18s}._boton_tts_sg347_569:hover,._boton_limpiar_sg347_571:hover{--csstools-light-dark-toggle--0: var(--csstools-color-scheme--light) var(--surface-fourth);background:var(--csstools-light-dark-toggle--0, var(--surface-third))}@supports (color: light-dark(red,red)){._boton_tts_sg347_569:hover,._boton_limpiar_sg347_571:hover{background:light-dark(var(--surface-third),var(--surface-fourth))}}._boton_tts_sg347_569:disabled{cursor:not-allowed;opacity:.55}._boton_activo_sg347_635{background:linear-gradient(180deg,var(--brand-2),var(--brand-3));border-color:var(--brand-5);box-shadow:0 0 0 2px var(--brand-3),0 8px 18px -10px #0685e059;color:var(--brand-8)}._boton_activo_sg347_635:after{animation:_btn_halo_azul_sg347_1 1.2s ease-out infinite;border-radius:inherit;box-shadow:0 0 #0685e042;content:"";inset:-4px;pointer-events:none;position:absolute;z-index:-1}._boton_activo_mic_sg347_677{background:transparent;border-color:var(--system-error-color);box-shadow:0 0 0 2px color-mix(in oklab,var(--system-error-color) 35%,transparent),0 8px 18px -10px color-mix(in oklab,var(--system-error-color) 40%,transparent);color:var(--system-error-color)}._boton_activo_mic_sg347_677:after{animation:_btn_halo_rojo_sg347_1 1.2s ease-out infinite;border-radius:inherit;box-shadow:0 0 color-mix(in oklab,var(--system-error-color) 22%,transparent);content:"";inset:-4px;pointer-events:none;position:absolute;z-index:-1}@keyframes _btn_halo_rojo_sg347_1{0%{box-shadow:0 0 color-mix(in oklab,var(--system-error-color) 18%,transparent)}70%{box-shadow:0 0 0 12px color-mix(in oklab,var(--system-error-color) 0%,transparent)}to{box-shadow:0 0 color-mix(in oklab,var(--system-error-color) 0%,transparent)}}@keyframes _btn_halo_azul_sg347_1{0%{box-shadow:0 0 #0685e038}70%{box-shadow:0 0 0 12px #0685e000}to{box-shadow:0 0 #0685e000}}._badges_wrap_sg347_783{display:none}._badges_wrap_visible_sg347_791{display:inline-grid;opacity:1}._acciones_grupo_sg347_141>._badges_wrap_visible_sg347_791{margin-left:.35rem}._badge_voz_sg347_813{align-items:center;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);--csstools-light-dark-toggle--1: var(--csstools-color-scheme--light) #0f1720;--csstools-light-dark-toggle--2: var(--csstools-color-scheme--light) #141c27;background:linear-gradient(180deg,#fff,#f6f9ff);background:linear-gradient(180deg,var(--csstools-light-dark-toggle--1, #fff),var(--csstools-light-dark-toggle--2, #f6f9ff));background:linear-gradient(180deg,light-dark(#fff,#0f1720),light-dark(#f6f9ff,#141c27));--csstools-light-dark-toggle--3: var(--csstools-color-scheme--light) #202c3c;border:1px solid #e1e9f5;border:1px solid var(--csstools-light-dark-toggle--3, #e1e9f5);border:1px solid light-dark(#e1e9f5,#202c3c);border-radius:999px;--csstools-light-dark-toggle--10: var(--csstools-color-scheme--light) #0f1720;box-shadow:0 1px #fff inset,0 4px 14px -8px #1e90ff47;box-shadow:0 1px 0 var(--csstools-light-dark-toggle--10, #fff) inset,0 4px 14px -8px #1e90ff47;box-shadow:0 1px 0 light-dark(#fff,#0f1720) inset,0 4px 14px -8px #1e90ff47;--csstools-light-dark-toggle--4: var(--csstools-color-scheme--light) #e6edf7;color:#0f1720;color:var(--csstools-light-dark-toggle--4, #0f1720);color:light-dark(#0f1720,#e6edf7);display:inline-flex;gap:.45rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}._badge_sm_sg347_845{font-size:12px;line-height:1;padding:.2rem .6rem}._badge_md_sg347_857{font-size:13px;line-height:1.05;padding:.28rem .7rem}._badge_lg_sg347_869{font-size:14px;line-height:1.1;padding:.36rem .8rem}._badge_estirada_sg347_881{display:inline-flex;flex:1;justify-content:space-between;margin-top:var(--gaps-1);max-width:100%;min-width:0;order:1}._badge_icono_sg347_901{border-radius:50%;display:grid;height:1.05em;align-items:center;justify-items:center;place-items:center;width:1.05em}._badge_icono_sg347_901 svg{height:.95em;width:.95em}._badge_texto_sg347_927{font-weight:600;letter-spacing:.01em}._badge_mic_sg347_937 ._badge_icono_sg347_901{--csstools-light-dark-toggle--5: var(--csstools-color-scheme--light) #4be896;color:#ef4444;color:var(--csstools-light-dark-toggle--5, #ef4444);color:light-dark(#ef4444,#4be896)}._badge_tts_sg347_945 ._badge_icono_sg347_901{--csstools-light-dark-toggle--6: var(--csstools-color-scheme--light) #66b5ff;color:#1e90ff;color:var(--csstools-light-dark-toggle--6, #1e90ff);color:light-dark(#1e90ff,#66b5ff)}._badge_mic_sg347_937 ._badge_ondas_sg347_955{display:inline-grid;height:1.25em;align-items:center;justify-items:center;place-items:center;position:relative;width:1.25em}._badge_mic_sg347_937 ._badge_ondas_sg347_955 span{animation:_badge_onda_sg347_955 1.8s ease-out infinite;--csstools-light-dark-toggle--7: var(--csstools-color-scheme--light) #4be896;border:2px solid #ef4444;border:2px solid var(--csstools-light-dark-toggle--7, #ef4444);border:2px solid light-dark(#ef4444,#4be896);border-radius:50%;--csstools-light-dark-toggle--8: var(--csstools-color-scheme--light) #22c55e;filter:drop-shadow(0 2px 6px rgba(239,68,68,.35));filter:drop-shadow(0 2px 6px color-mix(in oklab,light-dark(#ef4444,#22c55e) 35%,transparent));height:100%;opacity:.85;position:absolute;width:100%}@supports (color: color-mix(in lch,red,blue)){._badge_mic_sg347_937 ._badge_ondas_sg347_955 span{filter:drop-shadow(0 2px 6px color-mix(in oklab,var(--csstools-light-dark-toggle--8, #ef4444) 35%,transparent))}}._badge_tts_sg347_945 ._badge_eq_sg347_995{align-items:end;display:inline-flex;gap:2px;height:1.1em}._badge_tts_sg347_945 ._badge_eq_sg347_995 span{animation:_badge_eq_sg347_995 .9s ease-in-out infinite;--csstools-light-dark-toggle--9: var(--csstools-color-scheme--light) #66b5ff;background:#1e90ff;background:var(--csstools-light-dark-toggle--9, #1e90ff);background:light-dark(#1e90ff,#66b5ff);border-radius:2px;height:30%;width:2px}._badge_mic_sg347_937 ._badge_ondas_sg347_955 span:nth-child(2){animation-delay:.35s}._badge_mic_sg347_937 ._badge_ondas_sg347_955 span:nth-child(3){animation-delay:.7s}._badge_tts_sg347_945 ._badge_eq_sg347_995 span:nth-child(2){animation-delay:.15s}._badge_tts_sg347_945 ._badge_eq_sg347_995 span:nth-child(3){animation-delay:.3s}._badge_tts_sg347_945 ._badge_eq_sg347_995 span:nth-child(4){animation-delay:.45s}@keyframes _badge_onda_sg347_955{0%{opacity:.85;transform:scale(.15)}70%{opacity:.22}to{opacity:0;transform:scale(1.6)}}@keyframes _badge_eq_sg347_995{0%,to{height:30%}50%{height:85%}}@media (prefers-reduced-motion: reduce){._badge_mic_sg347_937 ._badge_ondas_sg347_955 span,._badge_tts_sg347_945 ._badge_eq_sg347_995 span{animation:none!important}}._descripcion_sg347_1137{color:var(--color-secondary-text);font-size:12px}._mensaje_error_sg347_1147{color:var(--system-error-color);font-size:12px}._ancho_total_sg347_1159{width:100%}')),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
import { jsx as e, jsxs as i, Fragment as Se } from "react/jsx-runtime";
|
|
3
|
-
import A from "clsx";
|
|
4
|
-
import { forwardRef as me, useRef as Q, useState as E, useCallback as $, useImperativeHandle as ye, useEffect as Z, useLayoutEffect as De, useId as Fe } from "react";
|
|
5
|
-
const Te = "_boton_3lotu_1", Be = "_inner_3lotu_81", He = "_start_3lotu_99", We = "_end_3lotu_101", $e = "_label_3lotu_103", Ve = "_spinner_3lotu_105", Oe = "_ripple_3lotu_145", Ue = "_ripple_effect_3lotu_1", Pe = "_ripple_effect_3lotu_1", Ge = "_tap_animation_3lotu_199", Xe = "_tap_animation_3lotu_199", Ye = "_modern_spinner_3lotu_243", Je = "_modern_spinner_3lotu_243", Ke = "_spinner_rotate_3lotu_1", Qe = "_spinner_rotate_3lotu_1", Ze = "_loading_3lotu_279", eo = "_disabled_3lotu_291", oo = "_full_width_3lotu_303", no = "_full_width_3lotu_303", to = "_icon_only_3lotu_311", ao = "_icon_only_3lotu_311", so = "_sm_3lotu_329", ro = "_md_3lotu_337", io = "_lg_3lotu_345", co = "_radius_none_3lotu_389", _o = "_radius_none_3lotu_389", lo = "_radius_sm_3lotu_397", uo = "_radius_sm_3lotu_397", mo = "_radius_md_3lotu_405", go = "_radius_md_3lotu_405", bo = "_radius_lg_3lotu_413", ho = "_radius_lg_3lotu_413", po = "_radius_full_3lotu_421", fo = "_radius_full_3lotu_421", vo = "_solid_3lotu_429", wo = "_bordered_3lotu_439", yo = "_ghost_3lotu_451", xo = "_light_3lotu_465", zo = "_faded_3lotu_477", No = "_shadow_3lotu_489", ko = "_primary_3lotu_581", Eo = "_secondary_3lotu_599", Co = "_success_3lotu_617", Ao = "_warning_3lotu_635", Mo = "_danger_3lotu_653", x = {
|
|
6
|
-
boton: Te,
|
|
7
|
-
inner: Be,
|
|
8
|
-
start: He,
|
|
9
|
-
end: We,
|
|
10
|
-
label: $e,
|
|
11
|
-
spinner: Ve,
|
|
12
|
-
ripple: Oe,
|
|
13
|
-
ripple_effect: Ue,
|
|
14
|
-
rippleEffect: Pe,
|
|
15
|
-
tap_animation: Ge,
|
|
16
|
-
tapAnimation: Xe,
|
|
17
|
-
modern_spinner: Ye,
|
|
18
|
-
modernSpinner: Je,
|
|
19
|
-
spinner_rotate: Ke,
|
|
20
|
-
spinnerRotate: Qe,
|
|
21
|
-
loading: Ze,
|
|
22
|
-
disabled: eo,
|
|
23
|
-
full_width: oo,
|
|
24
|
-
fullWidth: no,
|
|
25
|
-
icon_only: to,
|
|
26
|
-
iconOnly: ao,
|
|
27
|
-
sm: so,
|
|
28
|
-
md: ro,
|
|
29
|
-
lg: io,
|
|
30
|
-
radius_none: co,
|
|
31
|
-
radiusNone: _o,
|
|
32
|
-
radius_sm: lo,
|
|
33
|
-
radiusSm: uo,
|
|
34
|
-
radius_md: mo,
|
|
35
|
-
radiusMd: go,
|
|
36
|
-
radius_lg: bo,
|
|
37
|
-
radiusLg: ho,
|
|
38
|
-
radius_full: po,
|
|
39
|
-
radiusFull: fo,
|
|
40
|
-
solid: vo,
|
|
41
|
-
bordered: wo,
|
|
42
|
-
ghost: yo,
|
|
43
|
-
light: xo,
|
|
44
|
-
faded: zo,
|
|
45
|
-
shadow: No,
|
|
46
|
-
primary: ko,
|
|
47
|
-
secondary: Eo,
|
|
48
|
-
success: Co,
|
|
49
|
-
warning: Ao,
|
|
50
|
-
danger: Mo,
|
|
51
|
-
default: "_default_3lotu_671"
|
|
52
|
-
}, Lo = me(
|
|
53
|
-
({
|
|
54
|
-
variant: a = "solid",
|
|
55
|
-
color: c = "default",
|
|
56
|
-
size: z = "md",
|
|
57
|
-
radius: w = "md",
|
|
58
|
-
fullWidth: v = !1,
|
|
59
|
-
isLoading: g = !1,
|
|
60
|
-
isDisabled: h = !1,
|
|
61
|
-
isIconOnly: b = !1,
|
|
62
|
-
startContent: y,
|
|
63
|
-
endContent: M,
|
|
64
|
-
spinner: R,
|
|
65
|
-
spinnerPlacement: T,
|
|
66
|
-
disableRipple: N = !1,
|
|
67
|
-
disableAnimation: L = !1,
|
|
68
|
-
children: S,
|
|
69
|
-
className: k,
|
|
70
|
-
...l
|
|
71
|
-
}, u) => {
|
|
72
|
-
const j = Q(null), P = A(
|
|
73
|
-
x.boton,
|
|
74
|
-
x[a],
|
|
75
|
-
x[c],
|
|
76
|
-
x[z],
|
|
77
|
-
x[`radius_${w}`],
|
|
78
|
-
v && !b && x.full_width,
|
|
79
|
-
(h || l.disabled) && x.disabled,
|
|
80
|
-
b && x.icon_only,
|
|
81
|
-
g && x.loading,
|
|
82
|
-
!L && x.tap_animation,
|
|
83
|
-
k
|
|
84
|
-
), s = !!S && (!g || !b), r = (o) => {
|
|
85
|
-
if (!N && !h && !g && j.current && !window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
86
|
-
const t = j.current, m = document.createElement("span");
|
|
87
|
-
m.className = x.ripple, m.setAttribute("aria-hidden", "true");
|
|
88
|
-
const p = t.getBoundingClientRect(), D = o.clientX - p.left, B = o.clientY - p.top, f = Math.max(D, p.width - D), H = Math.max(B, p.height - B), G = Math.hypot(f, H) * 2;
|
|
89
|
-
m.style.width = m.style.height = `${G}px`, m.style.left = `${D}px`, m.style.top = `${B}px`, m.addEventListener("animationend", () => m.remove(), { once: !0 }), t.appendChild(m);
|
|
90
|
-
}
|
|
91
|
-
l.onClick?.(o);
|
|
92
|
-
};
|
|
93
|
-
return /* @__PURE__ */ e(
|
|
94
|
-
"button",
|
|
95
|
-
{
|
|
96
|
-
...l,
|
|
97
|
-
"aria-busy": g,
|
|
98
|
-
ref: (o) => {
|
|
99
|
-
j.current = o, typeof u == "function" ? u(o) : u && (u.current = o);
|
|
100
|
-
},
|
|
101
|
-
type: l.type || "button",
|
|
102
|
-
className: P,
|
|
103
|
-
disabled: h || g,
|
|
104
|
-
onClick: r,
|
|
105
|
-
children: /* @__PURE__ */ i("span", { className: x.inner, children: [
|
|
106
|
-
y && !g && /* @__PURE__ */ e("span", { className: x.start, children: y }),
|
|
107
|
-
s && /* @__PURE__ */ e("span", { className: x.label, children: S }),
|
|
108
|
-
g && /* @__PURE__ */ e("span", { className: x.spinner, children: R ?? /* @__PURE__ */ e("div", { className: x.modern_spinner }) }),
|
|
109
|
-
M && !g && /* @__PURE__ */ e("span", { className: x.end, children: M })
|
|
110
|
-
] })
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
Lo.displayName = "Boton";
|
|
116
|
-
const jo = "_dialog_1i8zu_1", qo = "_modal_1i8zu_71", Io = "_encabezado_1i8zu_95", Ro = "_titulo_1i8zu_109", So = "_boton_cerrar_1i8zu_123", Do = "_texto_esc_1i8zu_159", Fo = "_icono_x_1i8zu_173", To = "_contenedor_lienzo_1i8zu_183", Bo = "_area_firma_1i8zu_193", Ho = "_lienzo_1i8zu_207", Wo = "_lienzo_deshabilitado_1i8zu_235", $o = "_barra_acciones_1i8zu_245", Vo = "_grupo_izquierda_1i8zu_261", Oo = "_separador_1i8zu_273", Uo = "_boton_accion_1i8zu_285", Po = "_boton_guardar_1i8zu_331", Go = "_icono_1i8zu_173", Xo = "_contenedor_consentimiento_1i8zu_385", Yo = "_contenedor_checkbox_1i8zu_401", Jo = "_checkbox_nativo_1i8zu_417", Ko = "_checkbox_custom_1i8zu_431", Qo = "_texto_consentimiento_1i8zu_497", Zo = "_contenedor_subir_1i8zu_515", en = "_boton_subir_1i8zu_525", on = "_input_archivo_1i8zu_561", d = {
|
|
117
|
-
dialog: jo,
|
|
118
|
-
modal: qo,
|
|
119
|
-
encabezado: Io,
|
|
120
|
-
titulo: Ro,
|
|
121
|
-
boton_cerrar: So,
|
|
122
|
-
texto_esc: Do,
|
|
123
|
-
icono_x: Fo,
|
|
124
|
-
contenedor_lienzo: To,
|
|
125
|
-
area_firma: Bo,
|
|
126
|
-
lienzo: Ho,
|
|
127
|
-
lienzo_deshabilitado: Wo,
|
|
128
|
-
barra_acciones: $o,
|
|
129
|
-
grupo_izquierda: Vo,
|
|
130
|
-
separador: Oo,
|
|
131
|
-
boton_accion: Uo,
|
|
132
|
-
boton_guardar: Po,
|
|
133
|
-
icono: Go,
|
|
134
|
-
contenedor_consentimiento: Xo,
|
|
135
|
-
contenedor_checkbox: Yo,
|
|
136
|
-
checkbox_nativo: Jo,
|
|
137
|
-
checkbox_custom: Ko,
|
|
138
|
-
texto_consentimiento: Qo,
|
|
139
|
-
contenedor_subir: Zo,
|
|
140
|
-
boton_subir: en,
|
|
141
|
-
input_archivo: on
|
|
142
|
-
}, nn = () => {
|
|
143
|
-
const a = Q(null), [c, z] = E(!1), [w, v] = E(!0), [g, h] = E(null), [b, y] = E([]), [M, R] = E([]), T = $(() => {
|
|
144
|
-
const s = a.current, r = s?.getContext("2d");
|
|
145
|
-
s && r && (r.clearRect(0, 0, s.width, s.height), v(!0), y([]), R([]));
|
|
146
|
-
}, []), N = $(() => {
|
|
147
|
-
if (b.length === 0) return;
|
|
148
|
-
const s = b.slice(0, -1);
|
|
149
|
-
y(s);
|
|
150
|
-
const r = a.current, o = r?.getContext("2d");
|
|
151
|
-
!r || !o || (o.clearRect(0, 0, r.width, r.height), s.forEach((t) => {
|
|
152
|
-
if (!(t.puntos.length < 2)) {
|
|
153
|
-
o.strokeStyle = t.color, o.beginPath(), o.moveTo(t.puntos[0].x, t.puntos[0].y);
|
|
154
|
-
for (let m = 1; m < t.puntos.length; m++)
|
|
155
|
-
o.lineTo(t.puntos[m].x, t.puntos[m].y);
|
|
156
|
-
o.stroke();
|
|
157
|
-
}
|
|
158
|
-
}), v(s.length === 0));
|
|
159
|
-
}, [b]), L = $((s) => {
|
|
160
|
-
const r = a.current;
|
|
161
|
-
if (!r) return { x: 0, y: 0 };
|
|
162
|
-
const o = r.getBoundingClientRect(), t = r.width / o.width, m = r.height / o.height;
|
|
163
|
-
return "touches" in s ? {
|
|
164
|
-
x: (s.touches[0].clientX - o.left) * t,
|
|
165
|
-
y: (s.touches[0].clientY - o.top) * m
|
|
166
|
-
} : {
|
|
167
|
-
x: (s.clientX - o.left) * t,
|
|
168
|
-
y: (s.clientY - o.top) * m
|
|
169
|
-
};
|
|
170
|
-
}, []), S = $((s, r) => {
|
|
171
|
-
const t = a.current?.getContext("2d");
|
|
172
|
-
t && (t.beginPath(), t.moveTo(s.x, s.y), t.lineTo(r.x, r.y), t.stroke(), v(!1));
|
|
173
|
-
}, []), k = $(
|
|
174
|
-
(s) => {
|
|
175
|
-
s.preventDefault();
|
|
176
|
-
const r = L(s);
|
|
177
|
-
z(!0), h(r), R([r]);
|
|
178
|
-
},
|
|
179
|
-
[L]
|
|
180
|
-
), l = $(
|
|
181
|
-
(s) => {
|
|
182
|
-
if (!c || !g) return;
|
|
183
|
-
s.preventDefault();
|
|
184
|
-
const r = L(s);
|
|
185
|
-
S(g, r), h(r), R((o) => [...o, r]);
|
|
186
|
-
},
|
|
187
|
-
[c, g, L, S]
|
|
188
|
-
), u = $(() => {
|
|
189
|
-
if (c && M.length > 0) {
|
|
190
|
-
const r = a.current?.getContext("2d"), o = {
|
|
191
|
-
puntos: M,
|
|
192
|
-
color: r?.strokeStyle || "#000000"
|
|
193
|
-
};
|
|
194
|
-
y((t) => [...t, o]), R([]);
|
|
195
|
-
}
|
|
196
|
-
z(!1), h(null);
|
|
197
|
-
}, [c, M]), j = $(() => {
|
|
198
|
-
const s = a.current;
|
|
199
|
-
return !s || w ? null : s.toDataURL("image/png");
|
|
200
|
-
}, [w]), P = $(
|
|
201
|
-
(s, r = !0) => {
|
|
202
|
-
const o = a.current, t = o?.getContext("2d");
|
|
203
|
-
if (!(!o || !t))
|
|
204
|
-
return t.strokeStyle = s, t.lineWidth = 4, t.lineCap = "round", t.lineJoin = "round", r ? (o.addEventListener("mousedown", k), o.addEventListener("mousemove", l), o.addEventListener("mouseup", u), o.addEventListener("mouseout", u), o.addEventListener("touchstart", k), o.addEventListener("touchmove", l), o.addEventListener("touchend", u), () => {
|
|
205
|
-
o.removeEventListener("mousedown", k), o.removeEventListener("mousemove", l), o.removeEventListener("mouseup", u), o.removeEventListener("mouseout", u), o.removeEventListener("touchstart", k), o.removeEventListener("touchmove", l), o.removeEventListener("touchend", u);
|
|
206
|
-
}) : () => {
|
|
207
|
-
};
|
|
208
|
-
},
|
|
209
|
-
[k, l, u]
|
|
210
|
-
);
|
|
211
|
-
return {
|
|
212
|
-
canvasRef: a,
|
|
213
|
-
estaVacio: w,
|
|
214
|
-
limpiarCanvas: T,
|
|
215
|
-
deshacerUltimoTrazo: N,
|
|
216
|
-
puedeDeshacer: b.length > 0,
|
|
217
|
-
obtenerDatosFirma: j,
|
|
218
|
-
configurarCanvas: P
|
|
219
|
-
};
|
|
220
|
-
}, tn = ({ className: a, title: c = "Deshacer" }) => /* @__PURE__ */ i("svg", { className: a, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": !c, role: "img", children: [
|
|
221
|
-
/* @__PURE__ */ e("title", { children: c }),
|
|
222
|
-
/* @__PURE__ */ e("path", { d: "M3 7v6h6", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
223
|
-
/* @__PURE__ */ e("path", { d: "M21 17a9 9 0 00-9-9 9 9 0 00-6 2.3L3 13", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
224
|
-
] }), an = ({ className: a, title: c = "Limpiar" }) => /* @__PURE__ */ i("svg", { className: a, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": !c, role: "img", children: [
|
|
225
|
-
/* @__PURE__ */ e("title", { children: c }),
|
|
226
|
-
/* @__PURE__ */ e(
|
|
227
|
-
"path",
|
|
228
|
-
{
|
|
229
|
-
d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16",
|
|
230
|
-
strokeWidth: "2",
|
|
231
|
-
strokeLinecap: "round",
|
|
232
|
-
strokeLinejoin: "round"
|
|
233
|
-
}
|
|
234
|
-
)
|
|
235
|
-
] }), sn = ({ className: a, title: c = "Adjuntar" }) => /* @__PURE__ */ i("svg", { className: a, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": !c, role: "img", children: [
|
|
236
|
-
/* @__PURE__ */ e("title", { children: c }),
|
|
237
|
-
/* @__PURE__ */ e(
|
|
238
|
-
"path",
|
|
239
|
-
{
|
|
240
|
-
d: "M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12",
|
|
241
|
-
strokeWidth: "2",
|
|
242
|
-
strokeLinecap: "round",
|
|
243
|
-
strokeLinejoin: "round"
|
|
244
|
-
}
|
|
245
|
-
)
|
|
246
|
-
] }), rn = ({ className: a, title: c = "Cerrar" }) => /* @__PURE__ */ i("svg", { className: a, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": !c, role: "img", children: [
|
|
247
|
-
/* @__PURE__ */ e("title", { children: c }),
|
|
248
|
-
/* @__PURE__ */ e("path", { d: "M6 18L18 6M6 6l12 12", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
249
|
-
] }), cn = me(
|
|
250
|
-
({
|
|
251
|
-
isOpen: a = !1,
|
|
252
|
-
onClose: c,
|
|
253
|
-
onConfirm: z,
|
|
254
|
-
titulo: w = "Firmar el contrato",
|
|
255
|
-
textoGuardar: v = "Guardar firma",
|
|
256
|
-
textoModificar: g = "Modificar firma",
|
|
257
|
-
textoDeshacer: h = "Atrás",
|
|
258
|
-
textoLimpiar: b = "Limpiar",
|
|
259
|
-
textoAdjuntar: y = "Adjuntar firma",
|
|
260
|
-
ancho: M = 500,
|
|
261
|
-
alto: R = 200,
|
|
262
|
-
className: T,
|
|
263
|
-
textoConsentimiento: N = "Al firmar, confirmo que he leído y acepto todos los términos contractuales, los cuales se vuelven legalmente vinculantes",
|
|
264
|
-
mostrarBotonSubir: L = !1,
|
|
265
|
-
cerrarAlGuardar: S = !1
|
|
266
|
-
}, k) => {
|
|
267
|
-
const {
|
|
268
|
-
canvasRef: l,
|
|
269
|
-
estaVacio: u,
|
|
270
|
-
limpiarCanvas: j,
|
|
271
|
-
deshacerUltimoTrazo: P,
|
|
272
|
-
obtenerDatosFirma: s,
|
|
273
|
-
configurarCanvas: r,
|
|
274
|
-
puedeDeshacer: o
|
|
275
|
-
} = nn(), t = Q(null), m = Q(null), [p, D] = E(!1), [B, f] = E(!1), [H, oe] = E(!1);
|
|
276
|
-
ye(k, () => ({
|
|
277
|
-
limpiar: j,
|
|
278
|
-
obtenerDatosFirma: s,
|
|
279
|
-
estaVacio: () => u
|
|
280
|
-
})), Z(() => {
|
|
281
|
-
if (a && l.current) {
|
|
282
|
-
const _ = l.current, K = (() => {
|
|
283
|
-
const O = document.documentElement.getAttribute("data-theme"), q = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
284
|
-
return O === "dark" || O === null && q;
|
|
285
|
-
})() ? "#ffffff" : "#000000", W = r(K, !H), F = new MutationObserver(() => {
|
|
286
|
-
const O = document.documentElement.getAttribute("data-theme"), q = window.matchMedia("(prefers-color-scheme: dark)").matches, te = O === "dark" || O === null && q ? "#ffffff" : "#000000", I = _.getContext("2d");
|
|
287
|
-
I && (I.strokeStyle = te);
|
|
288
|
-
});
|
|
289
|
-
return F.observe(document.documentElement, {
|
|
290
|
-
attributes: !0,
|
|
291
|
-
attributeFilter: ["style", "class"]
|
|
292
|
-
}), () => {
|
|
293
|
-
W?.(), F.disconnect();
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
}, [a, r, l, H]), Z(() => {
|
|
297
|
-
const _ = t.current;
|
|
298
|
-
if (_)
|
|
299
|
-
return a ? (_.showModal(), document.body.style.overflow = "hidden") : (_.close(), document.body.style.overflow = ""), () => {
|
|
300
|
-
document.body.style.overflow = "";
|
|
301
|
-
};
|
|
302
|
-
}, [a]);
|
|
303
|
-
const G = $(() => {
|
|
304
|
-
c && (f(!1), D(!1), oe(!1), c());
|
|
305
|
-
}, [c]);
|
|
306
|
-
Z(() => {
|
|
307
|
-
if (!a) return;
|
|
308
|
-
const _ = (X) => {
|
|
309
|
-
X.key === "Escape" && G();
|
|
310
|
-
};
|
|
311
|
-
return document.addEventListener("keydown", _), () => {
|
|
312
|
-
document.removeEventListener("keydown", _);
|
|
313
|
-
};
|
|
314
|
-
}, [a, G]);
|
|
315
|
-
const ie = $(
|
|
316
|
-
(_) => {
|
|
317
|
-
const X = t.current;
|
|
318
|
-
if (!X) return;
|
|
319
|
-
const V = X.getBoundingClientRect();
|
|
320
|
-
(_.clientX < V.left || _.clientX > V.right || _.clientY < V.top || _.clientY > V.bottom) && G();
|
|
321
|
-
},
|
|
322
|
-
[G]
|
|
323
|
-
), de = () => {
|
|
324
|
-
const _ = s();
|
|
325
|
-
_ && z && p && (f(!0), z(_), S && c && G());
|
|
326
|
-
}, le = () => {
|
|
327
|
-
f(!1), oe(!1), j();
|
|
328
|
-
}, ee = (_) => {
|
|
329
|
-
const X = _.target.files?.[0];
|
|
330
|
-
if (!X || !l.current) return;
|
|
331
|
-
const V = new FileReader();
|
|
332
|
-
V.onload = (K) => {
|
|
333
|
-
const W = new Image();
|
|
334
|
-
W.onload = () => {
|
|
335
|
-
const F = l.current, O = F?.getContext("2d");
|
|
336
|
-
if (!F || !O) return;
|
|
337
|
-
O.clearRect(0, 0, F.width, F.height);
|
|
338
|
-
const q = F.width, Y = F.height, te = q / Y, I = W.width / W.height;
|
|
339
|
-
let ae, se, re, U;
|
|
340
|
-
I > te ? (ae = q, se = q / I, re = 0, U = (Y - se) / 2) : (se = Y, ae = Y * I, re = (q - ae) / 2, U = 0), O.drawImage(W, re, U, ae, se), oe(!0);
|
|
341
|
-
}, W.src = K.target?.result;
|
|
342
|
-
}, V.readAsDataURL(X);
|
|
343
|
-
}, J = () => {
|
|
344
|
-
m.current?.click();
|
|
345
|
-
}, ne = B || H, ce = !B && (u && !H || !p);
|
|
346
|
-
return a ? /* @__PURE__ */ e("dialog", { ref: t, className: `${d.dialog} ${T || ""}`, onClick: ie, children: /* @__PURE__ */ i("div", { className: d.modal, children: [
|
|
347
|
-
/* @__PURE__ */ i("div", { className: d.encabezado, children: [
|
|
348
|
-
/* @__PURE__ */ e("h2", { className: d.titulo, children: w }),
|
|
349
|
-
/* @__PURE__ */ i("button", { className: d.boton_cerrar, onClick: G, type: "button", "aria-label": "Cerrar", children: [
|
|
350
|
-
/* @__PURE__ */ e("span", { className: d.texto_esc, children: "ESC" }),
|
|
351
|
-
/* @__PURE__ */ e(rn, { className: d.icono_x })
|
|
352
|
-
] })
|
|
353
|
-
] }),
|
|
354
|
-
/* @__PURE__ */ e("div", { className: d.contenedor_lienzo, children: /* @__PURE__ */ i("div", { className: d.area_firma, children: [
|
|
355
|
-
/* @__PURE__ */ e(
|
|
356
|
-
"canvas",
|
|
357
|
-
{
|
|
358
|
-
ref: l,
|
|
359
|
-
className: `${d.lienzo} ${ne ? d.lienzo_deshabilitado : ""}`,
|
|
360
|
-
width: M * 2,
|
|
361
|
-
height: R * 2,
|
|
362
|
-
style: {
|
|
363
|
-
pointerEvents: ne ? "none" : "auto"
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
),
|
|
367
|
-
/* @__PURE__ */ i("div", { className: d.barra_acciones, children: [
|
|
368
|
-
/* @__PURE__ */ i("div", { className: d.grupo_izquierda, children: [
|
|
369
|
-
/* @__PURE__ */ i(
|
|
370
|
-
"button",
|
|
371
|
-
{
|
|
372
|
-
className: d.boton_accion,
|
|
373
|
-
onClick: P,
|
|
374
|
-
type: "button",
|
|
375
|
-
disabled: !o || ne,
|
|
376
|
-
title: h,
|
|
377
|
-
children: [
|
|
378
|
-
/* @__PURE__ */ e(tn, { className: d.icono }),
|
|
379
|
-
h
|
|
380
|
-
]
|
|
381
|
-
}
|
|
382
|
-
),
|
|
383
|
-
/* @__PURE__ */ e("span", { className: d.separador, children: "|" }),
|
|
384
|
-
/* @__PURE__ */ i(
|
|
385
|
-
"button",
|
|
386
|
-
{
|
|
387
|
-
className: d.boton_accion,
|
|
388
|
-
onClick: j,
|
|
389
|
-
type: "button",
|
|
390
|
-
disabled: u || ne,
|
|
391
|
-
title: b,
|
|
392
|
-
children: [
|
|
393
|
-
/* @__PURE__ */ e(an, { className: d.icono }),
|
|
394
|
-
b
|
|
395
|
-
]
|
|
396
|
-
}
|
|
397
|
-
)
|
|
398
|
-
] }),
|
|
399
|
-
/* @__PURE__ */ e(
|
|
400
|
-
"button",
|
|
401
|
-
{
|
|
402
|
-
className: d.boton_guardar,
|
|
403
|
-
onClick: B ? le : de,
|
|
404
|
-
type: "button",
|
|
405
|
-
disabled: ce,
|
|
406
|
-
children: B ? g : v
|
|
407
|
-
}
|
|
408
|
-
)
|
|
409
|
-
] })
|
|
410
|
-
] }) }),
|
|
411
|
-
/* @__PURE__ */ e("div", { className: d.contenedor_consentimiento, children: /* @__PURE__ */ i("label", { className: d.contenedor_checkbox, children: [
|
|
412
|
-
/* @__PURE__ */ e(
|
|
413
|
-
"input",
|
|
414
|
-
{
|
|
415
|
-
type: "checkbox",
|
|
416
|
-
className: d.checkbox_nativo,
|
|
417
|
-
checked: p,
|
|
418
|
-
onChange: (_) => D(_.target.checked)
|
|
419
|
-
}
|
|
420
|
-
),
|
|
421
|
-
/* @__PURE__ */ e("span", { className: d.checkbox_custom }),
|
|
422
|
-
/* @__PURE__ */ e("span", { className: d.texto_consentimiento, children: N })
|
|
423
|
-
] }) }),
|
|
424
|
-
L && /* @__PURE__ */ i("div", { className: d.contenedor_subir, children: [
|
|
425
|
-
/* @__PURE__ */ e(
|
|
426
|
-
"input",
|
|
427
|
-
{
|
|
428
|
-
ref: m,
|
|
429
|
-
type: "file",
|
|
430
|
-
accept: "image/*",
|
|
431
|
-
className: d.input_archivo,
|
|
432
|
-
onChange: ee
|
|
433
|
-
}
|
|
434
|
-
),
|
|
435
|
-
/* @__PURE__ */ i("button", { className: d.boton_subir, onClick: J, type: "button", children: [
|
|
436
|
-
/* @__PURE__ */ e(sn, { className: d.icono }),
|
|
437
|
-
y
|
|
438
|
-
] })
|
|
439
|
-
] })
|
|
440
|
-
] }) }) : null;
|
|
441
|
-
}
|
|
442
|
-
);
|
|
443
|
-
cn.displayName = "FirmaManual";
|
|
444
|
-
function ve({ mostrar: a, children: c, ...z }) {
|
|
445
|
-
const [w, v] = E(a), [g, h] = E(!1);
|
|
446
|
-
De(() => {
|
|
447
|
-
a && !w ? (v(!0), h(!0)) : a || (v(!1), h(!1));
|
|
448
|
-
}, [a, w]);
|
|
449
|
-
const b = () => {
|
|
450
|
-
g && h(!1);
|
|
451
|
-
};
|
|
452
|
-
return w ? /* @__PURE__ */ e(
|
|
453
|
-
"div",
|
|
454
|
-
{
|
|
455
|
-
...z,
|
|
456
|
-
onAnimationEnd: b,
|
|
457
|
-
className: g ? "transicion_desvanecer_deslizar_entrada" : "",
|
|
458
|
-
children: c
|
|
459
|
-
}
|
|
460
|
-
) : null;
|
|
461
|
-
}
|
|
462
|
-
function xe(a) {
|
|
463
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 16 16", ...a, children: /* @__PURE__ */ i("g", { fill: "currentColor", children: [
|
|
464
|
-
/* @__PURE__ */ e("path", { d: "M5 3a3 3 0 0 1 6 0v4a3 3 0 0 1-6 0z" }),
|
|
465
|
-
/* @__PURE__ */ e("path", { d: "M8 11a4 4 0 0 1-4-4H2a6 6 0 0 0 5 5.917V14H5v2h6v-2H9v-1.083A6 6 0 0 0 14 7h-2a4 4 0 0 1-4 4" })
|
|
466
|
-
] }) });
|
|
467
|
-
}
|
|
468
|
-
function ze(a) {
|
|
469
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", ...a, children: /* @__PURE__ */ e(
|
|
470
|
-
"path",
|
|
471
|
-
{
|
|
472
|
-
fill: "currentColor",
|
|
473
|
-
d: "M18 5.433c0-1.398-1.742-2.036-2.645-.97l-4.086 4.83A2 2 0 0 1 9.743 10H6a4 4 0 0 0-4 4v4a4 4 0 0 0 4 4h3.743a2 2 0 0 1 1.526.708l4.086 4.829c.902 1.066 2.645.428 2.645-.97zm3.433 3.743a1 1 0 0 1 1.391.258c1.465 2.13 2.238 4.324 2.238 6.566s-.773 4.436-2.238 6.567a1 1 0 1 1-1.648-1.133c1.285-1.87 1.887-3.676 1.887-5.434s-.602-3.564-1.887-5.433a1 1 0 0 1 .258-1.39m4.257-3.9a1 1 0 0 0-1.38 1.448c2.387 2.273 3.628 5.739 3.628 9.276s-1.241 7.003-3.628 9.276a1 1 0 0 0 1.38 1.448c2.863-2.727 4.247-6.761 4.247-10.724S28.554 8.003 25.69 5.276"
|
|
474
|
-
}
|
|
475
|
-
) });
|
|
476
|
-
}
|
|
477
|
-
function _n(a) {
|
|
478
|
-
return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 21", ...a, children: [
|
|
479
|
-
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "6", fill: "currentColor", opacity: ".5" }),
|
|
480
|
-
/* @__PURE__ */ e(
|
|
481
|
-
"path",
|
|
482
|
-
{
|
|
483
|
-
fill: "currentColor",
|
|
484
|
-
d: "M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 16a6 6 0 1 1 6-6a6.007 6.007 0 0 1-6 6"
|
|
485
|
-
}
|
|
486
|
-
)
|
|
487
|
-
] });
|
|
488
|
-
}
|
|
489
|
-
const dn = "_contenedor_base_sg347_19", ln = "_contenedor_base_sg347_19", un = "_etiqueta_sg347_39", mn = "_marca_requerido_sg347_53", gn = "_marca_requerido_sg347_53", bn = "_fila_acciones_sg347_67", hn = "_fila_acciones_sg347_67", pn = "_etiqueta_externa_sg347_79", fn = "_etiqueta_externa_sg347_79", vn = "_etiqueta_interna_sg347_93", wn = "_etiqueta_interna_sg347_93", yn = "_encabezado_interno_sg347_109", xn = "_encabezado_interno_sg347_109", zn = "_acciones_grupo_sg347_141", Nn = "_acciones_grupo_sg347_141", kn = "_acciones_header_sg347_157", En = "_acciones_header_sg347_157", Cn = "_envoltorio_input_sg347_181", An = "_envoltorio_input_sg347_181", Mn = "_label_outside_sg347_203", Ln = "_label_outside_sg347_203", jn = "_variante_normal_sg347_211", qn = "_variante_normal_sg347_211", In = "_variante_underlined_sg347_223", Rn = "_variante_underlined_sg347_223", Sn = "_variante_light_sg347_267", Dn = "_variante_light_sg347_267", Fn = "_variante_bordered_sg347_279", Tn = "_variante_bordered_sg347_279", Bn = "_variante_faded_sg347_287", Hn = "_variante_faded_sg347_287", Wn = "_radio_none_sg347_299", $n = "_radio_none_sg347_299", Vn = "_radio_sm_sg347_307", On = "_radio_sm_sg347_307", Un = "_radio_md_sg347_315", Pn = "_radio_md_sg347_315", Gn = "_radio_lg_sg347_323", Xn = "_radio_lg_sg347_323", Yn = "_invalido_sg347_353", Jn = "_color_primary_sg347_373", Kn = "_color_primary_sg347_373", Qn = "_color_secondary_sg347_383", Zn = "_color_secondary_sg347_383", et = "_color_success_sg347_393", ot = "_color_success_sg347_393", nt = "_color_warning_sg347_403", tt = "_color_warning_sg347_403", at = "_color_danger_sg347_413", st = "_color_danger_sg347_413", rt = "_deshabilitado_sg347_425", it = "_sin_animacion_sg347_435", ct = "_sin_animacion_sg347_435", _t = "_contenedor_interior_sg347_453", dt = "_contenedor_interior_sg347_453", lt = "_inicio_sg347_469", ut = "_fin_sg347_471", mt = "_entrada_sg347_483", gt = "_sin_autosize_sg347_519", bt = "_sin_autosize_sg347_519", ht = "_estado_interno_sg347_529", pt = "_estado_interno_sg347_529", ft = "_tam_sm_sg347_543", vt = "_tam_sm_sg347_543", wt = "_tam_md_sg347_551", yt = "_tam_md_sg347_551", xt = "_tam_lg_sg347_559", zt = "_tam_lg_sg347_559", Nt = "_boton_tts_sg347_569", kt = "_boton_tts_sg347_569", Et = "_boton_limpiar_sg347_571", Ct = "_boton_limpiar_sg347_571", At = "_boton_activo_sg347_635", Mt = "_boton_activo_sg347_635", Lt = "_btn_halo_azul_sg347_1", jt = "_btn_halo_azul_sg347_1", qt = "_boton_activo_mic_sg347_677", It = "_boton_activo_mic_sg347_677", Rt = "_btn_halo_rojo_sg347_1", St = "_btn_halo_rojo_sg347_1", Dt = "_badges_wrap_sg347_783", Ft = "_badges_wrap_sg347_783", Tt = "_badges_wrap_visible_sg347_791", Bt = "_badges_wrap_visible_sg347_791", Ht = "_badge_voz_sg347_813", Wt = "_badge_voz_sg347_813", $t = "_badge_sm_sg347_845", Vt = "_badge_sm_sg347_845", Ot = "_badge_md_sg347_857", Ut = "_badge_md_sg347_857", Pt = "_badge_lg_sg347_869", Gt = "_badge_lg_sg347_869", Xt = "_badge_estirada_sg347_881", Yt = "_badge_estirada_sg347_881", Jt = "_badge_icono_sg347_901", Kt = "_badge_icono_sg347_901", Qt = "_badge_texto_sg347_927", Zt = "_badge_texto_sg347_927", ea = "_badge_mic_sg347_937", oa = "_badge_mic_sg347_937", na = "_badge_tts_sg347_945", ta = "_badge_tts_sg347_945", aa = "_badge_ondas_sg347_955", sa = "_badge_ondas_sg347_955", ra = "_badge_onda_sg347_955", ia = "_badge_onda_sg347_955", ca = "_badge_eq_sg347_995", _a = "_badge_eq_sg347_995", da = "_descripcion_sg347_1137", la = "_mensaje_error_sg347_1147", ua = "_mensaje_error_sg347_1147", ma = "_ancho_total_sg347_1159", ga = "_ancho_total_sg347_1159", n = {
|
|
490
|
-
contenedor_base: dn,
|
|
491
|
-
contenedorBase: ln,
|
|
492
|
-
etiqueta: un,
|
|
493
|
-
marca_requerido: mn,
|
|
494
|
-
marcaRequerido: gn,
|
|
495
|
-
fila_acciones: bn,
|
|
496
|
-
filaAcciones: hn,
|
|
497
|
-
etiqueta_externa: pn,
|
|
498
|
-
etiquetaExterna: fn,
|
|
499
|
-
etiqueta_interna: vn,
|
|
500
|
-
etiquetaInterna: wn,
|
|
501
|
-
encabezado_interno: yn,
|
|
502
|
-
encabezadoInterno: xn,
|
|
503
|
-
acciones_grupo: zn,
|
|
504
|
-
accionesGrupo: Nn,
|
|
505
|
-
acciones_header: kn,
|
|
506
|
-
accionesHeader: En,
|
|
507
|
-
envoltorio_input: Cn,
|
|
508
|
-
envoltorioInput: An,
|
|
509
|
-
label_outside: Mn,
|
|
510
|
-
labelOutside: Ln,
|
|
511
|
-
variante_normal: jn,
|
|
512
|
-
varianteNormal: qn,
|
|
513
|
-
variante_underlined: In,
|
|
514
|
-
varianteUnderlined: Rn,
|
|
515
|
-
variante_light: Sn,
|
|
516
|
-
varianteLight: Dn,
|
|
517
|
-
variante_bordered: Fn,
|
|
518
|
-
varianteBordered: Tn,
|
|
519
|
-
variante_faded: Bn,
|
|
520
|
-
varianteFaded: Hn,
|
|
521
|
-
radio_none: Wn,
|
|
522
|
-
radioNone: $n,
|
|
523
|
-
radio_sm: Vn,
|
|
524
|
-
radioSm: On,
|
|
525
|
-
radio_md: Un,
|
|
526
|
-
radioMd: Pn,
|
|
527
|
-
radio_lg: Gn,
|
|
528
|
-
radioLg: Xn,
|
|
529
|
-
invalido: Yn,
|
|
530
|
-
color_primary: Jn,
|
|
531
|
-
colorPrimary: Kn,
|
|
532
|
-
color_secondary: Qn,
|
|
533
|
-
colorSecondary: Zn,
|
|
534
|
-
color_success: et,
|
|
535
|
-
colorSuccess: ot,
|
|
536
|
-
color_warning: nt,
|
|
537
|
-
colorWarning: tt,
|
|
538
|
-
color_danger: at,
|
|
539
|
-
colorDanger: st,
|
|
540
|
-
deshabilitado: rt,
|
|
541
|
-
sin_animacion: it,
|
|
542
|
-
sinAnimacion: ct,
|
|
543
|
-
contenedor_interior: _t,
|
|
544
|
-
contenedorInterior: dt,
|
|
545
|
-
inicio: lt,
|
|
546
|
-
fin: ut,
|
|
547
|
-
entrada: mt,
|
|
548
|
-
sin_autosize: gt,
|
|
549
|
-
sinAutosize: bt,
|
|
550
|
-
estado_interno: ht,
|
|
551
|
-
estadoInterno: pt,
|
|
552
|
-
tam_sm: ft,
|
|
553
|
-
tamSm: vt,
|
|
554
|
-
tam_md: wt,
|
|
555
|
-
tamMd: yt,
|
|
556
|
-
tam_lg: xt,
|
|
557
|
-
tamLg: zt,
|
|
558
|
-
boton_tts: Nt,
|
|
559
|
-
botonTts: kt,
|
|
560
|
-
boton_limpiar: Et,
|
|
561
|
-
botonLimpiar: Ct,
|
|
562
|
-
boton_activo: At,
|
|
563
|
-
botonActivo: Mt,
|
|
564
|
-
btn_halo_azul: Lt,
|
|
565
|
-
btnHaloAzul: jt,
|
|
566
|
-
boton_activo_mic: qt,
|
|
567
|
-
botonActivoMic: It,
|
|
568
|
-
btn_halo_rojo: Rt,
|
|
569
|
-
btnHaloRojo: St,
|
|
570
|
-
badges_wrap: Dt,
|
|
571
|
-
badgesWrap: Ft,
|
|
572
|
-
badges_wrap_visible: Tt,
|
|
573
|
-
badgesWrapVisible: Bt,
|
|
574
|
-
badge_voz: Ht,
|
|
575
|
-
badgeVoz: Wt,
|
|
576
|
-
badge_sm: $t,
|
|
577
|
-
badgeSm: Vt,
|
|
578
|
-
badge_md: Ot,
|
|
579
|
-
badgeMd: Ut,
|
|
580
|
-
badge_lg: Pt,
|
|
581
|
-
badgeLg: Gt,
|
|
582
|
-
badge_estirada: Xt,
|
|
583
|
-
badgeEstirada: Yt,
|
|
584
|
-
badge_icono: Jt,
|
|
585
|
-
badgeIcono: Kt,
|
|
586
|
-
badge_texto: Qt,
|
|
587
|
-
badgeTexto: Zt,
|
|
588
|
-
badge_mic: ea,
|
|
589
|
-
badgeMic: oa,
|
|
590
|
-
badge_tts: na,
|
|
591
|
-
badgeTts: ta,
|
|
592
|
-
badge_ondas: aa,
|
|
593
|
-
badgeOndas: sa,
|
|
594
|
-
badge_onda: ra,
|
|
595
|
-
badgeOnda: ia,
|
|
596
|
-
badge_eq: ca,
|
|
597
|
-
badgeEq: _a,
|
|
598
|
-
descripcion: da,
|
|
599
|
-
mensaje_error: la,
|
|
600
|
-
mensajeError: ua,
|
|
601
|
-
ancho_total: ma,
|
|
602
|
-
anchoTotal: ga
|
|
603
|
-
};
|
|
604
|
-
function we({ tipo: a, texto: c, size: z = "md", estirar: w }) {
|
|
605
|
-
const v = a === "mic";
|
|
606
|
-
return /* @__PURE__ */ i(
|
|
607
|
-
"span",
|
|
608
|
-
{
|
|
609
|
-
className: A(
|
|
610
|
-
n.badge_voz,
|
|
611
|
-
v ? n.badge_mic : n.badge_tts,
|
|
612
|
-
n[`badge_${z}`],
|
|
613
|
-
w && n.badge_estirada
|
|
614
|
-
// ⬅️
|
|
615
|
-
),
|
|
616
|
-
"data-tipo": a,
|
|
617
|
-
children: [
|
|
618
|
-
/* @__PURE__ */ e("span", { className: n.badge_icono, children: v ? /* @__PURE__ */ e(xe, {}) : /* @__PURE__ */ e(ze, {}) }),
|
|
619
|
-
/* @__PURE__ */ e("span", { className: n.badge_texto, children: c }),
|
|
620
|
-
v ? /* @__PURE__ */ i("span", { className: n.badge_ondas, "aria-hidden": "true", children: [
|
|
621
|
-
/* @__PURE__ */ e("span", {}),
|
|
622
|
-
/* @__PURE__ */ e("span", {}),
|
|
623
|
-
/* @__PURE__ */ e("span", {})
|
|
624
|
-
] }) : /* @__PURE__ */ i("span", { className: n.badge_eq, "aria-hidden": "true", children: [
|
|
625
|
-
/* @__PURE__ */ e("span", {}),
|
|
626
|
-
/* @__PURE__ */ e("span", {}),
|
|
627
|
-
/* @__PURE__ */ e("span", {}),
|
|
628
|
-
/* @__PURE__ */ e("span", {})
|
|
629
|
-
] })
|
|
630
|
-
]
|
|
631
|
-
}
|
|
632
|
-
);
|
|
633
|
-
}
|
|
634
|
-
function ba({
|
|
635
|
-
isDisabled: a,
|
|
636
|
-
isReadOnly: c,
|
|
637
|
-
value: z,
|
|
638
|
-
onChange: w,
|
|
639
|
-
redimensionar: v,
|
|
640
|
-
idioma: g = "es-ES"
|
|
641
|
-
}) {
|
|
642
|
-
const [h, b] = E(!1), [y, M] = E(!1), [R, T] = E(null), N = Q(null), L = Q(!1), S = Q(!1);
|
|
643
|
-
Z(() => {
|
|
644
|
-
L.current = y;
|
|
645
|
-
}, [y]), Z(() => {
|
|
646
|
-
S.current = h;
|
|
647
|
-
}, [h]);
|
|
648
|
-
const k = typeof window < "u" && "speechSynthesis" in window, l = typeof window < "u" && (!!window.SpeechRecognition || !!window.webkitSpeechRecognition), u = () => {
|
|
649
|
-
k && (window.speechSynthesis.cancel(), b(!1));
|
|
650
|
-
}, j = () => {
|
|
651
|
-
if (!k || !z || L.current) return;
|
|
652
|
-
if (N.current && typeof N.current.stop == "function")
|
|
653
|
-
try {
|
|
654
|
-
N.current.stop();
|
|
655
|
-
} catch {
|
|
656
|
-
}
|
|
657
|
-
window.speechSynthesis.cancel();
|
|
658
|
-
const o = new window.SpeechSynthesisUtterance(z);
|
|
659
|
-
o.lang = g, o.onstart = () => b(!0), o.onend = () => b(!1), window.speechSynthesis.speak(o);
|
|
660
|
-
}, P = () => {
|
|
661
|
-
const o = N.current;
|
|
662
|
-
if (o && typeof o.stop == "function")
|
|
663
|
-
try {
|
|
664
|
-
o.stop();
|
|
665
|
-
} catch {
|
|
666
|
-
}
|
|
667
|
-
}, s = () => {
|
|
668
|
-
if (!l || a || c || S.current) {
|
|
669
|
-
T("Dictado no disponible o está reproduciendo audio.");
|
|
670
|
-
return;
|
|
671
|
-
}
|
|
672
|
-
if (y && N.current && typeof N.current.stop == "function") {
|
|
673
|
-
try {
|
|
674
|
-
N.current.stop();
|
|
675
|
-
} catch {
|
|
676
|
-
}
|
|
677
|
-
return;
|
|
678
|
-
}
|
|
679
|
-
const o = window.SpeechRecognition || window.webkitSpeechRecognition;
|
|
680
|
-
if (!o) {
|
|
681
|
-
T("No se pudo iniciar el reconocimiento de voz.");
|
|
682
|
-
return;
|
|
683
|
-
}
|
|
684
|
-
const t = new o();
|
|
685
|
-
N.current = t, t.lang = g, t.interimResults = !0, t.continuous = !0, t.maxAlternatives = 1;
|
|
686
|
-
let m = "";
|
|
687
|
-
t.onresult = (p) => {
|
|
688
|
-
let D = "";
|
|
689
|
-
for (let f = p.resultIndex; f < p.results.length; f++) {
|
|
690
|
-
const H = p.results[f];
|
|
691
|
-
H.isFinal ? m += H[0].transcript : D += H[0].transcript;
|
|
692
|
-
}
|
|
693
|
-
const B = (m + D).trim();
|
|
694
|
-
w?.(B), v?.();
|
|
695
|
-
}, t.onerror = (p) => {
|
|
696
|
-
M(!1), T(p?.error ?? "error");
|
|
697
|
-
}, t.onend = () => M(!1), T(null), M(!0);
|
|
698
|
-
try {
|
|
699
|
-
t.start();
|
|
700
|
-
} catch {
|
|
701
|
-
}
|
|
702
|
-
}, r = () => {
|
|
703
|
-
P(), u();
|
|
704
|
-
};
|
|
705
|
-
return Z(() => () => r(), []), {
|
|
706
|
-
puedeHablar: k,
|
|
707
|
-
hablando: h,
|
|
708
|
-
escuchar: j,
|
|
709
|
-
detenerHablar: u,
|
|
710
|
-
puedeEscuchar: l,
|
|
711
|
-
escuchando: y,
|
|
712
|
-
errorDictado: R,
|
|
713
|
-
dictar: s,
|
|
714
|
-
detenerDictado: P,
|
|
715
|
-
detenerTodo: r
|
|
716
|
-
};
|
|
717
|
-
}
|
|
718
|
-
const ha = me((a, c) => {
|
|
719
|
-
const {
|
|
720
|
-
children: z,
|
|
721
|
-
variant: w = "flat",
|
|
722
|
-
color: v = "default",
|
|
723
|
-
size: g = "md",
|
|
724
|
-
radius: h = "md",
|
|
725
|
-
label: b,
|
|
726
|
-
labelPlacement: y = "inside",
|
|
727
|
-
fullWidth: M = !0,
|
|
728
|
-
value: R,
|
|
729
|
-
defaultValue: T,
|
|
730
|
-
placeholder: N,
|
|
731
|
-
startContent: L,
|
|
732
|
-
endContent: S,
|
|
733
|
-
isRequired: k = !1,
|
|
734
|
-
isReadOnly: l,
|
|
735
|
-
isDisabled: u = !1,
|
|
736
|
-
isClearable: j = !1,
|
|
737
|
-
isInvalid: P,
|
|
738
|
-
validationState: s,
|
|
739
|
-
description: r,
|
|
740
|
-
errorMessage: o,
|
|
741
|
-
validate: t,
|
|
742
|
-
minRows: m = 3,
|
|
743
|
-
maxRows: p = 8,
|
|
744
|
-
disableAutosize: D = !1,
|
|
745
|
-
disableAnimation: B = !1,
|
|
746
|
-
classNames: f,
|
|
747
|
-
id: H,
|
|
748
|
-
name: oe,
|
|
749
|
-
rows: G,
|
|
750
|
-
onChange: ie,
|
|
751
|
-
onClear: de
|
|
752
|
-
} = a, le = Fe(), ee = H ?? `ta-${le}`, J = R != null, [ne, ce] = E(T ?? ""), _ = J ? R : ne, [X, V] = E(!1), [K, W] = E(null), F = P ?? (s === "invalid" ? !0 : s === "valid" ? !1 : !!K), O = { invalido: !!F, mensaje: K };
|
|
753
|
-
Z(() => {
|
|
754
|
-
if (!t) return W(null);
|
|
755
|
-
const C = t(_);
|
|
756
|
-
C === !0 || C == null ? W(null) : W(typeof C == "string" ? C : C.message ?? "Entrada inválida");
|
|
757
|
-
}, [_, t]);
|
|
758
|
-
const q = Q(null), Y = $(() => {
|
|
759
|
-
if (!q.current || D) return;
|
|
760
|
-
const C = q.current;
|
|
761
|
-
C.style.height = "auto";
|
|
762
|
-
const Re = Math.min(Math.max(C.scrollHeight, m * 24), p * 24);
|
|
763
|
-
C.style.height = `${Re}px`;
|
|
764
|
-
}, [D, m, p]);
|
|
765
|
-
Z(() => {
|
|
766
|
-
Y();
|
|
767
|
-
}, [_, Y]), ye(c, () => q.current);
|
|
768
|
-
const {
|
|
769
|
-
puedeHablar: te,
|
|
770
|
-
hablando: I,
|
|
771
|
-
escuchar: ae,
|
|
772
|
-
detenerHablar: se,
|
|
773
|
-
puedeEscuchar: re,
|
|
774
|
-
escuchando: U,
|
|
775
|
-
errorDictado: _e,
|
|
776
|
-
dictar: Ne,
|
|
777
|
-
detenerDictado: ke
|
|
778
|
-
} = ba({
|
|
779
|
-
isDisabled: u,
|
|
780
|
-
isReadOnly: l,
|
|
781
|
-
value: _,
|
|
782
|
-
onChange: (C) => {
|
|
783
|
-
J || ce(C), ie?.(C);
|
|
784
|
-
},
|
|
785
|
-
redimensionar: Y
|
|
786
|
-
}), Ee = (C) => {
|
|
787
|
-
u || l || (J || ce(C.target.value), ie?.(C.target.value));
|
|
788
|
-
}, Ce = () => {
|
|
789
|
-
u || l || (J || ce(""), ie?.(""), de?.(), requestAnimationFrame(() => q.current?.focus()));
|
|
790
|
-
}, Ae = () => I ? se() : ae(), Me = () => U ? ke() : Ne(), ue = typeof o == "function" ? o(O) : o ?? K, Le = j && !!_ && !l && !u, ge = U || I, je = y === "inside" && (b || j || te || re), be = r ? `${ee}-desc` : void 0, he = ue || _e ? `${ee}-err` : void 0, qe = [be, he].filter(Boolean).join(" ") || void 0, Ie = A(
|
|
791
|
-
n.contenedor_base,
|
|
792
|
-
n[`variante_${w}`],
|
|
793
|
-
n[`color_${v}`],
|
|
794
|
-
n[`tam_${g}`],
|
|
795
|
-
n[`radio_${h}`],
|
|
796
|
-
M && n.ancho_total,
|
|
797
|
-
B && n.sin_animacion,
|
|
798
|
-
u && n.deshabilitado,
|
|
799
|
-
y === "outside" && n.label_outside,
|
|
800
|
-
F && n.invalido,
|
|
801
|
-
X && n.enfocado,
|
|
802
|
-
f?.base
|
|
803
|
-
), pe = () => /* @__PURE__ */ i("div", { className: n.acciones_header, children: [
|
|
804
|
-
/* @__PURE__ */ e(
|
|
805
|
-
"button",
|
|
806
|
-
{
|
|
807
|
-
type: "button",
|
|
808
|
-
className: A(n.boton_tts, I && n.boton_activo),
|
|
809
|
-
onClick: Ae,
|
|
810
|
-
disabled: !te || !I && (!_ || U),
|
|
811
|
-
title: "Escuchar",
|
|
812
|
-
"aria-pressed": I,
|
|
813
|
-
children: /* @__PURE__ */ e(ze, {})
|
|
814
|
-
}
|
|
815
|
-
),
|
|
816
|
-
re && /* @__PURE__ */ e(
|
|
817
|
-
"button",
|
|
818
|
-
{
|
|
819
|
-
type: "button",
|
|
820
|
-
className: A(n.boton_tts, U && n.boton_activo_mic),
|
|
821
|
-
onClick: Me,
|
|
822
|
-
disabled: u || l || I,
|
|
823
|
-
title: "Dictar",
|
|
824
|
-
"aria-pressed": U,
|
|
825
|
-
children: U ? /* @__PURE__ */ e(_n, { color: "red" }) : /* @__PURE__ */ e(xe, {})
|
|
826
|
-
}
|
|
827
|
-
),
|
|
828
|
-
Le && /* @__PURE__ */ e(
|
|
829
|
-
"button",
|
|
830
|
-
{
|
|
831
|
-
type: "button",
|
|
832
|
-
className: n.boton_limpiar,
|
|
833
|
-
onClick: Ce,
|
|
834
|
-
title: "Limpiar",
|
|
835
|
-
"aria-label": "Limpiar contenido",
|
|
836
|
-
children: "×"
|
|
837
|
-
}
|
|
838
|
-
)
|
|
839
|
-
] }), fe = () => /* @__PURE__ */ i(Se, { children: [
|
|
840
|
-
/* @__PURE__ */ e(ve, { mostrar: U, children: /* @__PURE__ */ e(we, { tipo: "mic", texto: "Habla ahora", size: g }) }),
|
|
841
|
-
/* @__PURE__ */ e(ve, { mostrar: I, children: /* @__PURE__ */ e(we, { tipo: "tts", texto: "Reproduciendo", size: g }) })
|
|
842
|
-
] });
|
|
843
|
-
return /* @__PURE__ */ i("div", { className: Ie, children: [
|
|
844
|
-
y === "outside" && /* @__PURE__ */ i("div", { className: n.fila_acciones, children: [
|
|
845
|
-
b && /* @__PURE__ */ i("label", { className: A(n.etiqueta, n.etiqueta_externa, f?.label), htmlFor: ee, children: [
|
|
846
|
-
b,
|
|
847
|
-
" ",
|
|
848
|
-
k && /* @__PURE__ */ e("span", { className: n.marca_requerido, children: "*" })
|
|
849
|
-
] }),
|
|
850
|
-
/* @__PURE__ */ i("div", { className: n.acciones_grupo, children: [
|
|
851
|
-
pe(),
|
|
852
|
-
/* @__PURE__ */ e(
|
|
853
|
-
"div",
|
|
854
|
-
{
|
|
855
|
-
className: A(n.badges_wrap, ge && n.badges_wrap_visible),
|
|
856
|
-
"aria-live": "polite",
|
|
857
|
-
role: "status",
|
|
858
|
-
children: fe()
|
|
859
|
-
}
|
|
860
|
-
)
|
|
861
|
-
] })
|
|
862
|
-
] }),
|
|
863
|
-
/* @__PURE__ */ i("div", { className: A(n.envoltorio_input, f?.inputWrapper), children: [
|
|
864
|
-
je && /* @__PURE__ */ i("div", { className: A(n.encabezado_interno, f?.headerWrapper), children: [
|
|
865
|
-
b && /* @__PURE__ */ i("label", { className: A(n.etiqueta_interna, f?.label), htmlFor: ee, children: [
|
|
866
|
-
b,
|
|
867
|
-
" ",
|
|
868
|
-
k && /* @__PURE__ */ e("span", { className: n.marca_requerido, children: "*" })
|
|
869
|
-
] }),
|
|
870
|
-
/* @__PURE__ */ i("div", { className: n.acciones_grupo, children: [
|
|
871
|
-
pe(),
|
|
872
|
-
/* @__PURE__ */ e(
|
|
873
|
-
"div",
|
|
874
|
-
{
|
|
875
|
-
className: A(n.badges_wrap, ge && n.badges_wrap_visible),
|
|
876
|
-
"aria-live": "polite",
|
|
877
|
-
role: "status",
|
|
878
|
-
children: fe()
|
|
879
|
-
}
|
|
880
|
-
)
|
|
881
|
-
] })
|
|
882
|
-
] }),
|
|
883
|
-
/* @__PURE__ */ i("div", { className: A(n.contenedor_interior, f?.innerWrapper), children: [
|
|
884
|
-
L && /* @__PURE__ */ e("div", { className: n.inicio, children: L }),
|
|
885
|
-
/* @__PURE__ */ e(
|
|
886
|
-
"textarea",
|
|
887
|
-
{
|
|
888
|
-
ref: q,
|
|
889
|
-
id: ee,
|
|
890
|
-
name: oe,
|
|
891
|
-
placeholder: N,
|
|
892
|
-
value: J ? _ : void 0,
|
|
893
|
-
defaultValue: J ? void 0 : T ?? "",
|
|
894
|
-
onChange: Ee,
|
|
895
|
-
onFocus: () => V(!0),
|
|
896
|
-
onBlur: () => V(!1),
|
|
897
|
-
className: A(n.entrada, D && n.sin_autosize, f?.input),
|
|
898
|
-
readOnly: l,
|
|
899
|
-
disabled: u,
|
|
900
|
-
rows: G ?? m,
|
|
901
|
-
"aria-invalid": F || void 0,
|
|
902
|
-
"aria-describedby": qe
|
|
903
|
-
}
|
|
904
|
-
),
|
|
905
|
-
S && /* @__PURE__ */ e("div", { className: n.fin, children: S })
|
|
906
|
-
] })
|
|
907
|
-
] }),
|
|
908
|
-
r && /* @__PURE__ */ e("div", { id: be, className: A(n.descripcion, f?.description), children: r }),
|
|
909
|
-
(ue || _e) && /* @__PURE__ */ i("div", { id: he, className: A(n.mensaje_error, f?.errorMessage), children: [
|
|
910
|
-
ue,
|
|
911
|
-
_e && /* @__PURE__ */ e("span", { className: n.mensaje_error, children: _e })
|
|
912
|
-
] }),
|
|
913
|
-
z
|
|
914
|
-
] });
|
|
915
|
-
});
|
|
916
|
-
ha.displayName = "TextArea";
|
|
917
|
-
export {
|
|
918
|
-
Lo as Boton,
|
|
919
|
-
cn as FirmaManual,
|
|
920
|
-
ha as TextArea
|
|
921
|
-
};
|
|
922
|
-
//# sourceMappingURL=index.js.map
|