rebill-web-components-sdk 1.13.21 → 1.13.22
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/dist/cjs/card-fields-wrapper_11.cjs.entry.js +1 -1
- package/dist/cjs/{google-maps.service-CZcMzFBX.js → google-maps.service-DgIZjibV.js} +54 -14
- package/dist/cjs/google-maps.service-DgIZjibV.js.map +1 -0
- package/dist/cjs/index-C-VTnc0I.js.map +1 -1
- package/dist/cjs/rebill-change-card.cjs.entry.js +1 -1
- package/dist/cjs/rebill-checkout.cjs.entry.js +1 -1
- package/dist/cjs/rebill-renewal.cjs.entry.js +1 -1
- package/dist/collection/utils/google-maps.service.js +52 -12
- package/dist/collection/utils/google-maps.service.js.map +1 -1
- package/dist/components/p-8BpuJ_V5.js.map +1 -1
- package/dist/components/{p-8MtEW13e.js → p-Bt9U0G__.js} +54 -14
- package/dist/components/p-Bt9U0G__.js.map +1 -0
- package/dist/components/{p-C8zfxcyS.js → p-C2IqZfrd.js} +3 -3
- package/dist/components/{p-C8zfxcyS.js.map → p-C2IqZfrd.js.map} +1 -1
- package/dist/components/rebill-address-search.js +1 -1
- package/dist/components/rebill-address.js +1 -1
- package/dist/components/rebill-change-card.js +2 -2
- package/dist/components/rebill-checkout.js +2 -2
- package/dist/components/rebill-renewal.js +2 -2
- package/dist/esm/card-fields-wrapper_11.entry.js +1 -1
- package/dist/esm/{google-maps.service-C2nYpE_A.js → google-maps.service-Lr2NbC5i.js} +54 -14
- package/dist/esm/google-maps.service-Lr2NbC5i.js.map +1 -0
- package/dist/esm/index-D8cwEAmw.js.map +1 -1
- package/dist/esm/rebill-change-card.entry.js +1 -1
- package/dist/esm/rebill-checkout.entry.js +1 -1
- package/dist/esm/rebill-renewal.entry.js +1 -1
- package/dist/rebill-web-components-sdk/{p-bf15156a.entry.js → p-1c1cb576.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-c327a984.entry.js → p-247a086e.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-b9a3b27f.entry.js → p-43dc2877.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-D8cwEAmw.js.map +1 -1
- package/dist/rebill-web-components-sdk/p-Lr2NbC5i.js +2 -0
- package/dist/rebill-web-components-sdk/p-Lr2NbC5i.js.map +1 -0
- package/dist/rebill-web-components-sdk/{p-f3859b65.entry.js → p-b72a46fd.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/google-maps.service-CZcMzFBX.js.map +0 -1
- package/dist/components/p-8MtEW13e.js.map +0 -1
- package/dist/esm/google-maps.service-C2nYpE_A.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-C2nYpE_A.js +0 -2
- package/dist/rebill-web-components-sdk/p-C2nYpE_A.js.map +0 -1
- /package/dist/rebill-web-components-sdk/{p-bf15156a.entry.js.map → p-1c1cb576.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-c327a984.entry.js.map → p-247a086e.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-b9a3b27f.entry.js.map → p-43dc2877.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-f3859b65.entry.js.map → p-b72a46fd.entry.js.map} +0 -0
|
@@ -7,7 +7,7 @@ var index$1 = require('./index-Br1gvsLU.js');
|
|
|
7
7
|
var config = require('./config-B8NfAWpj.js');
|
|
8
8
|
var assets = require('./assets-DxsAikMY.js');
|
|
9
9
|
var colorClassMapper = require('./color-class-mapper-Cviu2q1o.js');
|
|
10
|
-
var googleMaps_service = require('./google-maps.service-
|
|
10
|
+
var googleMaps_service = require('./google-maps.service-DgIZjibV.js');
|
|
11
11
|
var index_esm = require('./index.esm-4vgDEvoy.js');
|
|
12
12
|
var installmentUtils = require('./installment-utils-D-M2r2Pm.js');
|
|
13
13
|
var getPaymentMethodDisplayName = require('./get-payment-method-display-name-D2TLqJJ_.js');
|
|
@@ -21,17 +21,27 @@ class GoogleMapsService {
|
|
|
21
21
|
}
|
|
22
22
|
return originalAttachShadow.call(this, init);
|
|
23
23
|
};
|
|
24
|
-
// Interceptar showModal() para evitar
|
|
25
|
-
//
|
|
26
|
-
// Usamos .show() en su lugar para que quede en el flujo normal del DOM
|
|
27
|
-
// y podamos estilizarlo con CSS.
|
|
24
|
+
// Interceptar showModal() para evitar el dialog fullscreen de Google en mobile.
|
|
25
|
+
// Bloqueamos la apertura completamente. El input inline + listbox funcionan sin él.
|
|
28
26
|
const originalShowModal = HTMLDialogElement.prototype.showModal;
|
|
29
27
|
HTMLDialogElement.prototype.showModal = function () {
|
|
30
28
|
const isGoogleDialog = this.classList.contains('full-window-autocomplete-dialog') ||
|
|
31
29
|
this.closest('gmp-place-autocomplete') !== null;
|
|
32
30
|
if (isGoogleDialog) {
|
|
33
|
-
//
|
|
31
|
+
// Guardar foco y scroll ANTES de abrir
|
|
32
|
+
const prev = document.activeElement;
|
|
33
|
+
const scrollX = window.scrollX;
|
|
34
|
+
const scrollY = window.scrollY;
|
|
34
35
|
this.show();
|
|
36
|
+
// Quitar foco del input del dialog sin causar scroll
|
|
37
|
+
const input = this.querySelector('input');
|
|
38
|
+
if (input)
|
|
39
|
+
input.blur();
|
|
40
|
+
if (prev && prev !== document.body) {
|
|
41
|
+
prev.focus({ preventScroll: true });
|
|
42
|
+
}
|
|
43
|
+
// Restaurar scroll
|
|
44
|
+
window.scrollTo(scrollX, scrollY);
|
|
35
45
|
return;
|
|
36
46
|
}
|
|
37
47
|
return originalShowModal.call(this);
|
|
@@ -108,6 +118,37 @@ class GoogleMapsService {
|
|
|
108
118
|
// Insertar en el container; el CSS del padre lo posiciona como overlay
|
|
109
119
|
containerElement.appendChild(placeAutocomplete);
|
|
110
120
|
await new Promise(resolve => setTimeout(resolve, 300));
|
|
121
|
+
// Asegurar que el input inline del shadow DOM esté habilitado en mobile
|
|
122
|
+
// y bloquear el .focus() automático que Google hace sobre él
|
|
123
|
+
const patchGoogleInput = () => {
|
|
124
|
+
const googleInput = placeAutocomplete.shadowRoot?.querySelector('input');
|
|
125
|
+
if (!googleInput || googleInput.__rebillPatched)
|
|
126
|
+
return;
|
|
127
|
+
googleInput.disabled = false;
|
|
128
|
+
googleInput.style.display = 'block';
|
|
129
|
+
googleInput.style.pointerEvents = 'auto';
|
|
130
|
+
googleInput.style.visibility = 'visible';
|
|
131
|
+
googleInput.style.opacity = '1';
|
|
132
|
+
// Reemplazar .focus() en este input específico:
|
|
133
|
+
// Solo permitir focus si el usuario hizo click/tap en el container del address
|
|
134
|
+
const originalInputFocus = googleInput.focus.bind(googleInput);
|
|
135
|
+
let userClickedAddress = false;
|
|
136
|
+
containerElement.addEventListener('pointerdown', () => {
|
|
137
|
+
userClickedAddress = true;
|
|
138
|
+
setTimeout(() => { userClickedAddress = false; }, 300);
|
|
139
|
+
});
|
|
140
|
+
googleInput.focus = (opts) => {
|
|
141
|
+
if (userClickedAddress) {
|
|
142
|
+
originalInputFocus(opts);
|
|
143
|
+
}
|
|
144
|
+
// Si no fue click del usuario, ignorar (evita robo de foco)
|
|
145
|
+
};
|
|
146
|
+
googleInput.__rebillPatched = true;
|
|
147
|
+
};
|
|
148
|
+
patchGoogleInput();
|
|
149
|
+
setTimeout(patchGoogleInput, 500);
|
|
150
|
+
setTimeout(patchGoogleInput, 1000);
|
|
151
|
+
setTimeout(patchGoogleInput, 2000);
|
|
111
152
|
// Inyectar estilos Rebill en el shadow DOM (modo open vía setupShadowDOMPatch)
|
|
112
153
|
this.injectRebillStyles(placeAutocomplete);
|
|
113
154
|
// Ocultar elementos de branding de Google que se renderizan fuera del Shadow DOM
|
|
@@ -298,7 +339,8 @@ class GoogleMapsService {
|
|
|
298
339
|
border: 1.5px solid #E5E7EB !important;
|
|
299
340
|
padding: 10px 14px !important;
|
|
300
341
|
padding-right: 40px !important;
|
|
301
|
-
font-size
|
|
342
|
+
/* 16px evita auto-zoom en mobile (iOS/Android hacen zoom si font-size < 16px) */
|
|
343
|
+
font-size: 16px !important;
|
|
302
344
|
line-height: 20px !important;
|
|
303
345
|
font-weight: 400 !important;
|
|
304
346
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
|
@@ -461,9 +503,8 @@ class GoogleMapsService {
|
|
|
461
503
|
font-family: inherit !important;
|
|
462
504
|
}
|
|
463
505
|
|
|
464
|
-
/* FIX mobile:
|
|
465
|
-
|
|
466
|
-
Lo forzamos a ser inline dentro del contenedor. */
|
|
506
|
+
/* FIX mobile: El dialog se abre con .show() (no showModal) para evitar
|
|
507
|
+
el #top-layer. Lo contenemos inline dentro del componente. */
|
|
467
508
|
dialog,
|
|
468
509
|
.full-window-autocomplete-dialog,
|
|
469
510
|
[class*="full-window"] {
|
|
@@ -471,8 +512,8 @@ class GoogleMapsService {
|
|
|
471
512
|
top: 0 !important;
|
|
472
513
|
left: 0 !important;
|
|
473
514
|
width: 100% !important;
|
|
474
|
-
height:
|
|
475
|
-
max-height:
|
|
515
|
+
height: 38.33px !important;
|
|
516
|
+
max-height: 38.33px !important;
|
|
476
517
|
margin: 0 !important;
|
|
477
518
|
padding: 0 !important;
|
|
478
519
|
border: none !important;
|
|
@@ -481,7 +522,6 @@ class GoogleMapsService {
|
|
|
481
522
|
z-index: 10 !important;
|
|
482
523
|
}
|
|
483
524
|
|
|
484
|
-
/* El backdrop del dialog (si existiera) */
|
|
485
525
|
dialog::backdrop {
|
|
486
526
|
display: none !important;
|
|
487
527
|
}
|
|
@@ -577,6 +617,6 @@ class GoogleMapsService {
|
|
|
577
617
|
}
|
|
578
618
|
|
|
579
619
|
exports.GoogleMapsService = GoogleMapsService;
|
|
580
|
-
//# sourceMappingURL=google-maps.service-
|
|
620
|
+
//# sourceMappingURL=google-maps.service-DgIZjibV.js.map
|
|
581
621
|
|
|
582
|
-
//# sourceMappingURL=google-maps.service-
|
|
622
|
+
//# sourceMappingURL=google-maps.service-DgIZjibV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-maps.service-DgIZjibV.js","sources":["src/utils/google-maps.service.ts"],"sourcesContent":["export interface AddressComponents {\n address: string;\n city: string;\n state: string;\n country: string;\n zip: string;\n addInformation?: string;\n formattedAddress?: string; // Dirección completa de Google para usar como fallback\n}\n\nexport class GoogleMapsService {\n private static instance: GoogleMapsService;\n private isLoaded: boolean = false;\n private loadPromise: Promise<boolean> | null = null;\n\n static getInstance(): GoogleMapsService {\n if (!GoogleMapsService.instance) {\n GoogleMapsService.instance = new GoogleMapsService();\n GoogleMapsService.setupShadowDOMPatch();\n }\n return GoogleMapsService.instance;\n }\n\n private static setupShadowDOMPatch() {\n if ((window as any).gmpShadowPatched) return;\n\n const originalAttachShadow = Element.prototype.attachShadow;\n\n Element.prototype.attachShadow = function (init: ShadowRootInit) {\n if (this.localName === 'gmp-place-autocomplete') {\n return originalAttachShadow.call(this, { ...init, mode: 'open' });\n }\n return originalAttachShadow.call(this, init);\n };\n\n // Interceptar showModal() para evitar el dialog fullscreen de Google en mobile.\n // Bloqueamos la apertura completamente. El input inline + listbox funcionan sin él.\n const originalShowModal = HTMLDialogElement.prototype.showModal;\n HTMLDialogElement.prototype.showModal = function () {\n const isGoogleDialog =\n this.classList.contains('full-window-autocomplete-dialog') ||\n this.closest('gmp-place-autocomplete') !== null;\n\n if (isGoogleDialog) {\n // Guardar foco y scroll ANTES de abrir\n const prev = document.activeElement as HTMLElement | null;\n const scrollX = window.scrollX;\n const scrollY = window.scrollY;\n\n this.show();\n\n // Quitar foco del input del dialog sin causar scroll\n const input = this.querySelector('input');\n if (input) input.blur();\n if (prev && prev !== document.body) {\n prev.focus({ preventScroll: true });\n }\n\n // Restaurar scroll\n window.scrollTo(scrollX, scrollY);\n return;\n }\n return originalShowModal.call(this);\n };\n\n (window as any).gmpShadowPatched = true;\n }\n\n async waitForAPI(): Promise<boolean> {\n if (this.isLoaded && window.google) {\n return true;\n }\n\n if (this.loadPromise) {\n return this.loadPromise;\n }\n\n this.loadPromise = new Promise(resolve => {\n let attempts = 0;\n const maxAttempts = 100; // 10 seconds max wait\n\n const checkAPI = () => {\n attempts++;\n\n if (window.google) {\n this.isLoaded = true;\n resolve(true);\n } else if (attempts >= maxAttempts) {\n console.error('Google Maps API failed to load within timeout');\n resolve(false);\n } else {\n setTimeout(checkAPI, 100);\n }\n };\n checkAPI();\n });\n\n return this.loadPromise;\n }\n\n /**\n * Crea autocomplete usando la nueva API de Google Places (PlaceAutocompleteElement).\n * containerElement: donde se inserta (ej. search-input-container). Debe tener position: relative.\n * inputElement: input para sincronizar valor al seleccionar y para focus/blur.\n * Retorna el elemento y una función destroy para limpiar al desmontar.\n */\n async createAutocomplete(\n containerElement: HTMLElement,\n inputElement: HTMLInputElement,\n onPlaceSelected: (address: AddressComponents) => void,\n options?: {\n placeholder?: string;\n componentRestrictions?: { country: string | string[] };\n error?: string;\n disabled?: boolean;\n },\n ): Promise<{\n element: HTMLElement;\n destroy: () => void;\n syncToGoogle: (value?: string) => void;\n setError: (error?: string) => void;\n setDisabled: (disabled: boolean) => void;\n } | null> {\n const isReady = await this.waitForAPI();\n if (!isReady) {\n console.error('Google Maps API not available');\n return null;\n }\n\n try {\n // Nueva API: importLibrary carga Places (New)\n await google.maps.importLibrary('places');\n\n const elementOptions: google.maps.places.PlaceAutocompleteElementOptions = {\n types: ['address'],\n };\n\n if (options?.componentRestrictions?.country) {\n const countries = Array.isArray(options.componentRestrictions.country)\n ? options.componentRestrictions.country\n : [options.componentRestrictions.country];\n elementOptions.componentRestrictions = { country: countries };\n }\n\n const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(elementOptions);\n\n if (options?.placeholder) {\n placeAutocomplete.setAttribute('placeholder', options.placeholder);\n }\n\n // Agregar clase error si existe\n if (options?.error) {\n placeAutocomplete.classList.add('error');\n }\n\n // Deshabilitar si corresponde\n if (options?.disabled) {\n placeAutocomplete.setAttribute('disabled', 'true');\n const googleInput = placeAutocomplete.shadowRoot?.querySelector('input');\n if (googleInput) googleInput.disabled = true;\n }\n\n // Insertar en el container; el CSS del padre lo posiciona como overlay\n containerElement.appendChild(placeAutocomplete);\n await new Promise(resolve => setTimeout(resolve, 300));\n\n // Asegurar que el input inline del shadow DOM esté habilitado en mobile\n // y bloquear el .focus() automático que Google hace sobre él\n const patchGoogleInput = () => {\n const googleInput = placeAutocomplete.shadowRoot?.querySelector('input');\n if (!googleInput || (googleInput as any).__rebillPatched) return;\n\n googleInput.disabled = false;\n googleInput.style.display = 'block';\n googleInput.style.pointerEvents = 'auto';\n googleInput.style.visibility = 'visible';\n googleInput.style.opacity = '1';\n\n // Reemplazar .focus() en este input específico:\n // Solo permitir focus si el usuario hizo click/tap en el container del address\n const originalInputFocus = googleInput.focus.bind(googleInput);\n let userClickedAddress = false;\n\n containerElement.addEventListener('pointerdown', () => {\n userClickedAddress = true;\n setTimeout(() => { userClickedAddress = false; }, 300);\n });\n\n googleInput.focus = (opts?: FocusOptions) => {\n if (userClickedAddress) {\n originalInputFocus(opts);\n }\n // Si no fue click del usuario, ignorar (evita robo de foco)\n };\n\n (googleInput as any).__rebillPatched = true;\n };\n\n patchGoogleInput();\n setTimeout(patchGoogleInput, 500);\n setTimeout(patchGoogleInput, 1000);\n setTimeout(patchGoogleInput, 2000);\n\n // Inyectar estilos Rebill en el shadow DOM (modo open vía setupShadowDOMPatch)\n this.injectRebillStyles(placeAutocomplete);\n\n // Ocultar elementos de branding de Google que se renderizan fuera del Shadow DOM\n this.hideGoogleBranding();\n\n // Sincronizar valor del input → Google (SOLO una dirección)\n let isSyncing = false;\n const syncToGoogle = (value?: string) => {\n if (isSyncing) return;\n isSyncing = true;\n\n const val = value ?? inputElement.value;\n const googleInput = placeAutocomplete.shadowRoot?.querySelector('input');\n if (googleInput) {\n googleInput.value = val;\n // Disparar eventos para que Google detecte el cambio\n googleInput.dispatchEvent(new Event('input', { bubbles: true }));\n googleInput.dispatchEvent(new Event('change', { bubbles: true }));\n }\n\n setTimeout(() => {\n isSyncing = false;\n }, 50);\n };\n\n const inputHandler = () => {\n if (!isSyncing) {\n syncToGoogle();\n }\n };\n inputElement.addEventListener('input', inputHandler);\n\n // Sincronizar valor inicial\n setTimeout(() => syncToGoogle(), 100);\n\n // Evento correcto: gmp-select (no gmp-placeselect)\n const selectHandler = async (ev: Event) => {\n const evt = ev as CustomEvent & {\n placePrediction?: { toPlace: () => Promise<google.maps.places.Place> };\n };\n const placePrediction = evt.placePrediction ?? (evt.detail as any)?.placePrediction;\n if (!placePrediction) return;\n const place = await placePrediction.toPlace();\n await place.fetchFields({\n fields: ['addressComponents', 'formattedAddress'],\n });\n\n if (place.addressComponents) {\n const address = this.parseAddressComponentsNew(\n place.addressComponents as any[],\n place.formattedAddress ?? undefined,\n );\n\n address.formattedAddress = place.formattedAddress ?? undefined;\n\n // Forzar actualización del input de Google con solo calle + número\n // Esto sobrescribe el texto completo que Google pone automáticamente\n setTimeout(() => {\n const googleInput = placeAutocomplete.shadowRoot?.querySelector('input');\n if (googleInput && address.address) {\n googleInput.value = address.address;\n }\n }, 10);\n\n onPlaceSelected(address);\n }\n };\n\n placeAutocomplete.addEventListener('gmp-select', selectHandler);\n\n const setError = (error?: string) => {\n if (error) {\n placeAutocomplete.classList.add('error');\n } else {\n placeAutocomplete.classList.remove('error');\n }\n };\n\n const setDisabled = (disabled: boolean) => {\n if (disabled) {\n placeAutocomplete.setAttribute('disabled', 'true');\n } else {\n placeAutocomplete.removeAttribute('disabled');\n }\n const googleInput = placeAutocomplete.shadowRoot?.querySelector('input');\n if (googleInput) {\n googleInput.disabled = disabled;\n }\n };\n\n const destroy = () => {\n inputElement.removeEventListener('input', inputHandler);\n placeAutocomplete.removeEventListener('gmp-select', selectHandler);\n placeAutocomplete.remove();\n containerElement.classList.remove('autocomplete-active');\n };\n\n return { element: placeAutocomplete, destroy, syncToGoogle, setError, setDisabled };\n } catch (error) {\n console.error('Failed to create Google Maps PlaceAutocompleteElement:', error);\n return null;\n }\n }\n\n private hideGoogleBranding() {\n // Inyectar CSS global para ocultar branding de Google\n const globalStyleId = 'rebill-hide-google-branding';\n if (document.getElementById(globalStyleId)) return;\n\n const style = document.createElement('style');\n style.id = globalStyleId;\n style.textContent = `\n /* Ocultar TODOS los elementos de branding de Google Maps */\n gmp-internal-attribution,\n gmp-internal-dialog,\n gmp-place-autocomplete::part(attribution),\n gmp-place-autocomplete + *,\n gmp-place-autocomplete ~ *,\n a[href*=\"maps.google.com\"],\n a[title*=\"Google Maps\"],\n [aria-label*=\"Google Maps\"],\n div:has(> a[href*=\"google.com\"]),\n .dismissButton {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n height: 0 !important;\n max-height: 0 !important;\n overflow: hidden !important;\n position: absolute !important;\n left: -9999px !important;\n }\n `;\n document.head.appendChild(style);\n\n // Remover elementos de branding continuamente (Google los puede agregar dinámicamente)\n const removeGoogleBranding = () => {\n // Remover Web Components de Google\n document.querySelectorAll('gmp-internal-attribution, gmp-internal-dialog').forEach(el => {\n el.remove();\n });\n\n // Remover links y elementos con \"Google Maps\"\n document\n .querySelectorAll('a[href*=\"maps.google.com\"], a[title*=\"Google Maps\"]')\n .forEach(el => {\n const parent = el.closest('div');\n if (parent && parent.textContent?.includes('Google Maps')) {\n parent.style.display = 'none';\n }\n el.remove();\n });\n\n // Remover cualquier SVG con aria-label=\"Google Maps\"\n document.querySelectorAll('svg[aria-label*=\"Google Maps\"]').forEach(el => {\n el.remove();\n });\n };\n\n // Ejecutar inmediatamente y periódicamente\n removeGoogleBranding();\n setInterval(removeGoogleBranding, 500);\n\n // Observer para elementos que se agregan dinámicamente\n const observer = new MutationObserver(() => {\n removeGoogleBranding();\n });\n observer.observe(document.body, { childList: true, subtree: true });\n }\n\n private injectRebillStyles(placeAutocomplete: HTMLElement) {\n const shadow = placeAutocomplete.shadowRoot;\n if (!shadow) {\n console.warn('Shadow DOM not available - styles cannot be injected');\n return;\n }\n\n const style = document.createElement('style');\n style.textContent = `\n /* Resetear TODO */\n * {\n box-sizing: border-box !important;\n }\n\n :host {\n display: block !important;\n width: 100% !important;\n height: 38.33px !important;\n max-height: 38.33px !important;\n font-family: inherit !important;\n border: none !important;\n outline: none !important;\n box-shadow: none !important;\n background: transparent !important;\n overflow: visible !important;\n }\n\n /* Contenedores - resetear */\n div, span, ul, li {\n all: revert !important;\n }\n\n /* INPUT PRINCIPAL - Copiar estilos exactos de rebill-input-text */\n input {\n display: block !important;\n width: 100% !important;\n height: 38.33px !important;\n min-height: 38.33px !important;\n box-sizing: border-box !important;\n border-radius: 8px !important;\n border: 1.5px solid #E5E7EB !important;\n padding: 10px 14px !important;\n padding-right: 40px !important;\n /* 16px evita auto-zoom en mobile (iOS/Android hacen zoom si font-size < 16px) */\n font-size: 16px !important;\n line-height: 20px !important;\n font-weight: 400 !important;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;\n color: #111827 !important;\n background-color: #FFFFFF !important;\n outline: none !important;\n transition: all 0.2s ease !important;\n -webkit-appearance: none !important;\n appearance: none !important;\n }\n\n input::placeholder {\n color: #9CA3AF !important;\n opacity: 1 !important;\n }\n\n input:focus {\n border-color: var(--rebill-color-primary) !important;\n box-shadow: none !important;\n }\n\n input:disabled {\n background-color: var(--rebill-color-background) !important;\n border-color: var(--rebill-color-disabled) !important;\n color: var(--rebill-color-text-secondary) !important;\n cursor: not-allowed !important;\n opacity: 0.7 !important;\n }\n\n input:disabled:focus {\n border-color: var(--rebill-color-disabled) !important;\n box-shadow: none !important;\n }\n\n /* Estado de error - border rojo igual que inputs de Rebill */\n :host(.error) input,\n :host([error]) input {\n border-color: var(--rebill-color-error, #EF4444) !important;\n }\n\n :host(.error) input:focus,\n :host([error]) input:focus {\n border-color: var(--rebill-color-error, #EF4444) !important;\n box-shadow: 0 0 0 2px var(--rebill-color-error-light, rgba(239, 68, 68, 0.1)) !important;\n }\n\n /* Ocultar elementos decorativos de Google */\n [class*=\"icon\"],\n [class*=\"suffix\"],\n [class*=\"prefix\"],\n [class*=\"logo\"],\n [class*=\"powered\"],\n [class*=\"google\"],\n [class*=\"branding\"],\n [class*=\"divider\"],\n [class*=\"separator\"],\n [aria-label*=\"Google\"],\n [aria-label*=\"clear\"],\n [aria-label*=\"Clear\"],\n button,\n svg,\n a[href*=\"google.com\"] {\n display: none !important;\n visibility: hidden !important;\n opacity: 0 !important;\n height: 0 !important;\n width: 0 !important;\n overflow: hidden !important;\n }\n\n /* Ocultar elementos hermanos del input EXCEPTO error-message */\n input + *:not(.error-message),\n input ~ *:not(.error-message) {\n display: none !important;\n }\n\n /* Dropdown - Estilo Rebill */\n [role=\"listbox\"] {\n position: absolute !important;\n z-index: 9999 !important;\n margin-top: 4px !important;\n width: 100% !important;\n max-height: 300px !important;\n overflow-y: auto !important;\n background: #FFFFFF !important;\n border: 1px solid #E5E7EB !important;\n border-radius: 8px !important;\n box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;\n padding: 0 !important;\n }\n\n ul {\n list-style: none !important;\n padding: 0 !important;\n margin: 0 !important;\n }\n\n /* Ocultar contenedor de atribuciones */\n .attributions,\n [role=\"presentation\"],\n div:has(> gmp-internal-attribution) {\n display: none !important;\n height: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n border: none !important;\n }\n\n /* Ocultar UL vacío cuando no hay sugerencias */\n ul:empty {\n display: none !important;\n }\n\n [role=\"option\"] {\n padding: 0.75rem !important;\n cursor: pointer !important;\n color: var(--rebill-color-text-primary) !important;\n font-size: 0.875rem !important;\n font-weight: 400 !important;\n border-bottom: 1px solid var(--rebill-color-border) !important;\n list-style: none !important;\n list-style-type: none !important;\n transition: background-color 0.15s ease !important;\n background-color: transparent !important;\n }\n\n [role=\"option\"]::before,\n [role=\"option\"]::marker {\n display: none !important;\n content: none !important;\n }\n\n [role=\"option\"]:last-child {\n border-bottom: none !important;\n }\n\n [role=\"option\"]:hover,\n [role=\"option\"][aria-selected=\"true\"] {\n background-color: #f0f9ff !important;\n }\n\n /* Texto dentro - mismo color que la opción */\n [role=\"option\"] * {\n color: var(--rebill-color-text-primary) !important;\n font-family: inherit !important;\n font-weight: inherit !important;\n }\n\n /* Ocultar botón de cerrar (X) */\n button[aria-label*=\"dismiss\"],\n button[aria-label*=\"close\"],\n .dismiss,\n .close-button {\n display: none !important;\n }\n\n /* Texto dentro de las sugerencias */\n [role=\"option\"] * {\n color: inherit !important;\n font-family: inherit !important;\n }\n\n /* FIX mobile: El dialog se abre con .show() (no showModal) para evitar\n el #top-layer. Lo contenemos inline dentro del componente. */\n dialog,\n .full-window-autocomplete-dialog,\n [class*=\"full-window\"] {\n position: absolute !important;\n top: 0 !important;\n left: 0 !important;\n width: 100% !important;\n height: 38.33px !important;\n max-height: 38.33px !important;\n margin: 0 !important;\n padding: 0 !important;\n border: none !important;\n background: transparent !important;\n overflow: visible !important;\n z-index: 10 !important;\n }\n\n dialog::backdrop {\n display: none !important;\n }\n `;\n shadow.appendChild(style);\n }\n\n private parseAddressComponentsNew(\n components: any[],\n formattedAddress?: string,\n ): AddressComponents {\n const getComponent = (type: string, useShortName = false) => {\n const component = components.find((c: any) => c.types.includes(type));\n return component ? (useShortName ? component.shortText : component.longText) : '';\n };\n\n const streetNumber = getComponent('street_number');\n const route = getComponent('route');\n const city = getComponent('locality');\n const state = getComponent('administrative_area_level_1');\n const country = getComponent('country', true);\n const zip = getComponent('postal_code');\n\n let addressLine = '';\n\n // Países donde el número va ANTES de la calle (ej: \"600 Fifth Avenue\")\n const numberFirstCountries = ['US', 'CA', 'GB', 'AU', 'NZ', 'IE'];\n const isNumberFirst = numberFirstCountries.includes(country);\n\n // Prioridad 1: Usar street_number + route si ambos existen\n if (streetNumber && route) {\n // Formato según el país\n addressLine = isNumberFirst\n ? `${streetNumber} ${route}`.trim() // USA: \"600 Fifth Avenue\"\n : `${route} ${streetNumber}`.trim(); // LATAM: \"Avenida Carlos Tejedor 600\"\n } else if (route) {\n // Si solo hay route, usarlo\n addressLine = route;\n } else if (streetNumber) {\n // Si solo hay número, usarlo\n addressLine = streetNumber;\n }\n\n // Si ya tenemos una dirección de los componentes, usarla\n if (addressLine.length > 0) {\n return {\n address: addressLine,\n city,\n state,\n country,\n zip,\n };\n }\n\n // Prioridad 2: Extraer de formattedAddress\n if (formattedAddress) {\n // Separar por coma y tomar solo la primera parte (calle + número)\n const parts = formattedAddress.split(',').map(p => p.trim());\n const firstPart = parts[0] ?? '';\n\n // Verificar si la primera parte no contiene el nombre de la ciudad\n // Esto previene que se incluya ciudad en la dirección\n const containsCity = city && firstPart.toLowerCase().includes(city.toLowerCase());\n const containsState = state && firstPart.toLowerCase().includes(state.toLowerCase());\n\n if (firstPart.length > 0 && !containsCity && !containsState && /[0-9A-Za-z]/.test(firstPart)) {\n addressLine = firstPart;\n }\n }\n\n return {\n address: addressLine,\n city,\n state,\n country,\n zip,\n };\n }\n\n static loadGoogleMapsScript(googleMapsApiKey?: string) {\n // Use new API key\n const apiKey = googleMapsApiKey || 'AIzaSyB9pS5LHbPKjnmMQ89BQHD0SVZXVsi95pk';\n\n if (!apiKey) {\n console.warn('Google Maps API key not provided. Address autocomplete will not be available.');\n return;\n }\n\n // Check if script is already loaded\n if (document.querySelector('script[src*=\"maps.googleapis.com\"]')) {\n return;\n }\n\n const script = document.createElement('script');\n // Nueva API: loading=async, Places se carga vía importLibrary en createAutocomplete\n script.src = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&loading=async&callback=initGoogleMaps`;\n script.async = true;\n script.defer = true;\n\n // Add global callback for when Google Maps is ready\n (window as any).initGoogleMaps = () => {\n delete (window as any).initGoogleMaps; // Clean up\n };\n\n script.onerror = () => {\n console.error(\n 'Failed to load Google Maps script. Please check your API key and network connection.',\n );\n };\n\n document.head.appendChild(script);\n }\n}\n"],"names":[],"mappings":";;MAUa,iBAAiB,CAAA;IACpB,OAAO,QAAQ;IACf,QAAQ,GAAY,KAAK;IACzB,WAAW,GAA4B,IAAI;AAEnD,IAAA,OAAO,WAAW,GAAA;AAChB,QAAA,IAAI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