@road-labs/map-sdk 0.0.24 → 0.0.25

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),m=require("react"),Lo=require("react-dom/client"),Je=require("react-dom"),Ho="app-module_container",Vo="app-module_loader",In={container:Ho,loader:Vo};function $o(e){const[t,r]=m.useState(!1),o=m.useMemo(()=>new IntersectionObserver(([i])=>{i.isIntersecting&&(r(!0),o.disconnect())}),[e]);return m.useEffect(()=>{if(e.current)return o.observe(e.current),()=>o.disconnect()},[e.current]),t}function Fo(e){const t=e;return["nl","nl-be","nl-nl"].includes(t)?"nl":["en","en-us","en-eg","en-au","en-gb","en-ca","en-nz","en-ie","en-za","en-jm","en-bz","en-tt"].includes(t)?"en":["de","de-ch","de-at","de-lu","de-li","de-de"].includes(t)?"de":["fr","fr-be","fr-ca","fr-fr","fr-lu","fr-ch"].includes(t)?"fr":["it","it-ch","it-it"].includes(t)?"it":["es","es-ar","es-bo","es-cl","es-co","es-cr","es-do","es-ec","es-sv","es-gt","es-hn","es-mx","es-ni","es-pa","es-py","es-pe","es-pr","es-es","es-uy","es-ve"].includes(t)?"es":"en"}const Bo={"search.placeholder":"Enter a location...","cdrPrice.flatFee":"{{total}} / session","tariffPriceComponent.dynamicTariffHeader":"Dynamic Tariff - {{date}}","tariffPriceComponent.flat":"{{total}} / session","tariffPriceComponent.time":"{{total}} / hour","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / hour idle fee","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. wait time before idle fee","tariffPriceComponent.noTariff":"No tariff available","tariffPriceComponent.baseTariff":"Base Tariff","tariffPriceComponent.active":"Active now","tariffPriceComponent.currentPrice":"Current price","filters.header":"Filters","filters.dcChargers":"Fast Chargers","filters.efluxChargers":"E-Flux Chargers","filters.noAdditionalFee":"Without additional fee per session","filters.available":"Available","filters.charging":"Charging","filters.notAvailable":"Not Available","filters.chargingPower":"Charging Power [kW]","filters.connectorType":"Connector Type","filters.apply":"Apply Filters","filters.clearAll":"Clear All Filters","filters.onlyShow":"Only Show","filters.statusHeading":"Status","filters.chargingAccessibility":"Vehicle Accessibility","filters.accessibilityAll":"All vehicles","filters.accessibilityTesla":"Tesla only","filters.allAccessibility":"All accessibility types","evse.statusAvailable":"Available","evse.statusCharging":"Charging","evse.statusUnavailable":"Unavailable","evse.statusRemoved":"Removed","evse.statusPlanned":"Planned","evse.statusReserved":"Reserved","evse.statusInoperative":"Inoperative","evse.statusOutOfOrder":"Out of Order","evse.statusError":"Error","evse.statusUnknown":"Unknown","locationType.onStreet":"On Street","locationType.parkingGarage":"Parking Garage","locationType.undergroundGarage":"Underground Garage","locationType.parkingLot":"Parking Lot","locationType.other":"Other","locationType.unknown":"Unknown","tariffPriceComponent.viewTariff":"View Tariff notes","tariffNote.subHeader":"Tariff notes","tariffNote.eFluxScheduledTariffNote":"A scheduled tariff overrides base tariff prices for specific time period.","tariffNote.dynamicScheduledTariffNote":"Dynamic price is adjusted automatically based on energy market price (1 hour interval).","tariffNote.scheduledTariffNote":"A scheduled tariff overrides base tariff prices for specific time period.","tariffNote.baseTariffNote":"Tariffs shown here have been sent to E-Flux by roaming partner. Accuracy may vary depending on provider.","tariff.congestionPricing":"Congestion pricing may apply","tariff.fullDetailsHeader":"Tariff details","tariff.lastUpdated":"Last updated {{date}}","tariff.report":"Report","tariff.reportThanks":"Thanks for reporting","tariff.reportError":"Couldn't send, try again","evse.pricing":"Pricing","dynamicTariffs.subHeader":"Hourly Prices","location.viewAllHourlyPrices":"View All Hourly Prices","location.operatorInfo":"Operator","location.operator":"Operator","location.suboperator":"Suboperator","location.owner":"Owner","location.openingHours":"Opening hours","location.open24_7":"Open 24/7","location.openNow":"Open now","location.closedNow":"Closed","location.closed":"Closed","location.opensAt":"opens {{time}}","location.closesAt":"until {{time}}","location.chargingWhenClosed":"Charging available when closed","location.exceptionalClosings":"Exceptional closings","location.exceptionalOpenings":"Exceptional openings","location.visitWebsite":"Website","weekday.mon":"Mon","weekday.tue":"Tue","weekday.wed":"Wed","weekday.thu":"Thu","weekday.fri":"Fri","weekday.sat":"Sat","weekday.sun":"Sun","backButton.backTo":"Back To"},zo={"search.placeholder":"Voer een locatie in...","cdrPrice.flatFee":"{{total}} / sessie","tariffPriceComponent.dynamicTariffHeader":"Dynamisch Tarief - {{date}}","tariffPriceComponent.flat":"{{total}} / sessie","tariffPriceComponent.time":"{{total}} / uur","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / uur blokkeertarief","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. wachttijd voor blokkeertarief","tariffPriceComponent.noTariff":"Geen beschikbaar tarief","tariffPriceComponent.baseTariff":"Basistarief","tariffPriceComponent.active":"Nu actief","tariffPriceComponent.currentPrice":"Huidige prijs","filters.header":"Filters","filters.dcChargers":"DC-laders","filters.efluxChargers":"E-Flux-laders","filters.noAdditionalFee":"Zonder extra kosten per sessie","filters.available":"Beschikbaar","filters.charging":"Laden","filters.notAvailable":"Niet beschikbaar","filters.chargingPower":"Laadvermogen [kW]","filters.connectorType":"Aansluitingstype","filters.apply":"Filters toepassen","filters.clearAll":"Alle filters wissen","filters.onlyShow":"Alleen tonen","filters.statusHeading":"Status","filters.chargingAccessibility":"Voertuigtoegang","filters.accessibilityAll":"Alle voertuigen","filters.accessibilityTesla":"Alleen Tesla","filters.allAccessibility":"Alle toegankelijkheidstypes","evse.statusAvailable":"Beschikbaar","evse.statusCharging":"Laden","evse.statusUnavailable":"Niet beschikbaar","evse.statusError":"Fout","evse.statusRemoved":"Verwijderd","evse.statusPlanned":"Gepland","evse.statusReserved":"Gereserveerd","evse.statusInoperative":"Inoperative","evse.statusOutOfOrder":"Uit van orde","evse.statusUnknown":"Onbekend","locationType.onStreet":"Op straat","locationType.parkingGarage":"Parkeergarage","locationType.undergroundGarage":"Ondergrondse garage","locationType.parkingLot":"Parkeerterrein","locationType.other":"Anders","locationType.unknown":"Onbekend","tariffPriceComponent.viewTariff":"Tariefnotitie bekijken","tariffNote.subHeader":"Tariefnotities","tariffNote.eFluxScheduledTariffNote":"Een gepland tarief overschrijft de basis tariefprijzen voor een specifieke periode.","tariffNote.dynamicScheduledTariffNote":"De dynamische prijs wordt automatisch aangepast op basis van de energiemarktprijs (interval van 1 uur).","tariffNote.scheduledTariffNote":"Een gepland tarief overschrijft de basis tariefprijzen voor een specifieke periode.","tariffNote.baseTariffNote":"De hier getoonde tarieven zijn door de roamingpartner aan E-Flux verstrekt. De nauwkeurigheid kan variëren afhankelijk van de aanbieder.","tariff.congestionPricing":"Congestietarief kan van toepassing zijn","tariff.fullDetailsHeader":"Tariefdetails","tariff.lastUpdated":"Laatst bijgewerkt {{date}}","tariff.report":"Rapporteren","tariff.reportThanks":"Bedankt voor de melding","tariff.reportError":"Versturen mislukt, probeer opnieuw","evse.pricing":"Tarieven","dynamicTariffs.subHeader":"Uurtarieven","location.viewAllHourlyPrices":"Bekijk Alle Uurprijzen","location.operatorInfo":"Exploitant","location.operator":"Exploitant","location.suboperator":"Subexploitant","location.owner":"Eigenaar","location.openingHours":"Openingstijden","location.open24_7":"24/7 geopend","location.openNow":"Nu open","location.closedNow":"Gesloten","location.closed":"Gesloten","location.opensAt":"opent om {{time}}","location.closesAt":"tot {{time}}","location.chargingWhenClosed":"Laden mogelijk wanneer gesloten","location.exceptionalClosings":"Uitzonderlijke sluitingen","location.exceptionalOpenings":"Uitzonderlijke openingen","location.visitWebsite":"Website","weekday.mon":"Ma","weekday.tue":"Di","weekday.wed":"Wo","weekday.thu":"Do","weekday.fri":"Vr","weekday.sat":"Za","weekday.sun":"Zo","backButton.backTo":"Terug Naar"},Uo={"search.placeholder":"Geben Sie einen Ort ein...","cdrPrice.flatFee":"{{total}} / Sitzung","tariffPriceComponent.dynamicTariffHeader":"Dynamischer Tarif - {{date}}","tariffPriceComponent.flat":"{{total}} / Sitzung","tariffPriceComponent.time":"{{total}} / Stunde","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / Stunde Blockiergebühr","tariffPriceComponent.parkingTimeWait":"{{minutes}} Min. Wartezeit vor der Blockiergebühr","tariffPriceComponent.noTariff":"Kein Tarif verfügbar","tariffPriceComponent.baseTariff":"Grundtarif","tariffPriceComponent.active":"Aktuell aktiv","tariffPriceComponent.currentPrice":"Aktueller Preis","filters.header":"Filter","filters.dcChargers":"Gleichstrom-Ladegeräte","filters.efluxChargers":"E-Flux-Ladegeräte","filters.noAdditionalFee":"Ohne zusätzliche Gebühr pro Sitzung","filters.available":"Verfügbar","filters.charging":"Lädt","filters.notAvailable":"Nicht verfügbar","filters.chargingPower":"Ladeleistung [kW]","filters.connectorType":"Steckertyp","filters.apply":"Filter anwenden","filters.clearAll":"Alle Filter löschen","filters.onlyShow":"Nur anzeigen","filters.statusHeading":"Status","filters.chargingAccessibility":"Fahrzeugzugänglichkeit","filters.accessibilityAll":"Alle Fahrzeuge","filters.accessibilityTesla":"Nur Tesla","filters.allAccessibility":"Alle Zugänglichkeitstypen","evse.statusAvailable":"Verfügbar","evse.statusCharging":"Lädt","evse.statusUnavailable":"Nicht verfügbar","evse.statusRemoved":"Entfernt","evse.statusPlanned":"Geplant","evse.statusReserved":"Reserviert","evse.statusInoperative":"Inoperative","evse.statusOutOfOrder":"Ausgeschaltet","evse.statusError":"Fehler","evse.statusUnknown":"Unbekannt","evse.pricing":"Preisbildung","locationType.onStreet":"Straße","locationType.parkingGarage":"Parkhaus","locationType.undergroundGarage":"Tiefgarage","locationType.parkingLot":"Parkplatz","locationType.other":"Andere","locationType.unknown":"Unbekannt","tariffPriceComponent.viewTariff":"Tarif anzeigen","tariffNote.subHeader":"Tarifhinweise","tariffNote.eFluxScheduledTariffNote":"Ein geplanter Tarif überschreibt die Basistarifpreise für einen bestimmten Zeitraum.","tariffNote.dynamicScheduledTariffNote":"Der dynamische Preis wird automatisch basierend auf dem Energiepreis auf dem Markt angepasst (im Intervall von 1 Stunde).","tariffNote.scheduledTariffNote":"Ein geplanter Tarif überschreibt die Basistarifpreise für einen bestimmten Zeitraum.","tariffNote.baseTariffNote":"Die hier angezeigten Tarife wurden von einem Roaming-Partner an E-Flux gesendet. Die Genauigkeit kann je nach Anbieter variieren.","tariff.congestionPricing":"Überlastungstarif kann anfallen","tariff.fullDetailsHeader":"Tarifdetails","tariff.lastUpdated":"Zuletzt aktualisiert {{date}}","tariff.report":"Melden","tariff.reportThanks":"Danke für die Meldung","tariff.reportError":"Senden fehlgeschlagen, erneut versuchen","dynamicTariffs.subHeader":"Stundentarife","location.viewAllHourlyPrices":"Alle Stundenpreise anzeigen","location.operatorInfo":"Betreiber","location.operator":"Betreiber","location.suboperator":"Unterbetreiber","location.owner":"Eigentümer","location.openingHours":"Öffnungszeiten","location.open24_7":"24/7 geöffnet","location.openNow":"Jetzt geöffnet","location.closedNow":"Geschlossen","location.closed":"Geschlossen","location.opensAt":"öffnet um {{time}}","location.closesAt":"bis {{time}}","location.chargingWhenClosed":"Laden auch außerhalb der Öffnungszeiten möglich","location.exceptionalClosings":"Ausnahmsweise geschlossen","location.exceptionalOpenings":"Ausnahmsweise geöffnet","location.visitWebsite":"Website","weekday.mon":"Mo","weekday.tue":"Di","weekday.wed":"Mi","weekday.thu":"Do","weekday.fri":"Fr","weekday.sat":"Sa","weekday.sun":"So","backButton.backTo":"Zurück zu"},Yo={"search.placeholder":"Entrez un lieu...","cdrPrice.flatFee":"{{total}} / session","tariffPriceComponent.dynamicTariffHeader":"Tarif Dynamique - {{date}}","tariffPriceComponent.flat":"{{total}} / session","tariffPriceComponent.time":"{{total}} / heure","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / frais d'occupation par heure","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. avant frais d'occupation","tariffPriceComponent.noTariff":"Aucun tarif disponible","tariffPriceComponent.baseTariff":"Tarif de base","tariffPriceComponent.active":"Actuellement actif","tariffPriceComponent.currentPrice":"Prix actuel","filters.header":"Filtres","filters.dcChargers":"Chargeurs à courant continu","filters.efluxChargers":"Chargeurs E-Flux","filters.noAdditionalFee":"Sans frais supplémentaires par séance","filters.available":"Disponible","filters.charging":"En charge","filters.notAvailable":"Indisponible","filters.chargingPower":"Puissance de charge [kW]","filters.connectorType":"Type de connecteur","filters.apply":"Appliquer les filtres","filters.clearAll":"Effacer tous les filtres","filters.onlyShow":"Afficher uniquement","filters.statusHeading":"Statut","filters.chargingAccessibility":"Accessibilité véhicule","filters.accessibilityAll":"Tous véhicules","filters.accessibilityTesla":"Tesla seulement","filters.allAccessibility":"Tous types d'accessibilité","evse.statusAvailable":"Disponible","evse.statusCharging":"En charge","evse.statusUnavailable":"Indisponible","evse.statusRemoved":"Supprimé","evse.statusPlanned":"Planifié","evse.statusReserved":"Réservé","evse.statusInoperative":"Hors service","evse.statusOutOfOrder":"En panne","evse.statusError":"Erreur","evse.statusUnknown":"Inconnu","evse.pricing":"Tarification","locationType.onStreet":"Dans la rue","locationType.parkingGarage":"Parking couvert","locationType.undergroundGarage":"Parking souterrain","locationType.parkingLot":"Parking","locationType.other":"Autre","locationType.unknown":"Inconnu","tariffPriceComponent.viewTariff":"Voir le tarif","tariffNote.subHeader":"Notes tarifaires","tariffNote.eFluxScheduledTariffNote":"Un tarif programmé remplace les prix de base du tarif pour une période spécifique.","tariffNote.dynamicScheduledTariffNote":"Le prix dynamique est ajusté automatiquement en fonction du prix du marché de l'énergie (intervalle d'une heure).","tariffNote.scheduledTariffNote":"Un tarif programmé remplace les prix de base du tarif pour une période spécifique.","tariffNote.baseTariffNote":"Les tarifs affichés ici ont été transmis à E-Flux par le partenaire d'itinérance. La précision peut varier en fonction du fournisseur.","tariff.congestionPricing":"Tarification de congestion peut s'appliquer","tariff.fullDetailsHeader":"Détails du tarif","tariff.lastUpdated":"Mis à jour {{date}}","tariff.report":"Signaler","tariff.reportThanks":"Merci pour le signalement","tariff.reportError":"Échec de l'envoi, réessayez","dynamicTariffs.subHeader":"Tarifs horaires","location.viewAllHourlyPrices":"Voir tous les tarifs horaires","location.operatorInfo":"Opérateur","location.operator":"Opérateur","location.suboperator":"Sous-opérateur","location.owner":"Propriétaire","location.openingHours":"Heures d'ouverture","location.open24_7":"Ouvert 24h/24, 7j/7","location.openNow":"Ouvert","location.closedNow":"Fermé","location.closed":"Fermé","location.opensAt":"ouvre à {{time}}","location.closesAt":"jusqu'à {{time}}","location.chargingWhenClosed":"Recharge possible hors des heures d'ouverture","location.exceptionalClosings":"Fermetures exceptionnelles","location.exceptionalOpenings":"Ouvertures exceptionnelles","location.visitWebsite":"Site web","weekday.mon":"Lun","weekday.tue":"Mar","weekday.wed":"Mer","weekday.thu":"Jeu","weekday.fri":"Ven","weekday.sat":"Sam","weekday.sun":"Dim","backButton.backTo":"Retour à"},Wo={"search.placeholder":"Inserisci una posizione...","cdrPrice.flatFee":"{{total}} / sessione","tariffPriceComponent.dynamicTariffHeader":"Tariffa dinamica - {{date}}","tariffPriceComponent.flat":"{{total}} / sessione","tariffPriceComponent.time":"{{total}} / ora","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / ora tariffa di inattività","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. tempo di attesa prima della tariffa di inattività","tariffPriceComponent.noTariff":"Nessuna tariffa disponibile","tariffPriceComponent.baseTariff":"Tariffa base","tariffPriceComponent.active":"Attivo ora","tariffPriceComponent.currentPrice":"Prezzo attuale","filters.header":"Filtri","filters.dcChargers":"Caricabatterie DC","filters.efluxChargers":"Caricabatterie E-Flux","filters.noAdditionalFee":"Senza costi aggiuntivi per sessione","filters.available":"Disponibile","filters.charging":"In carica","filters.notAvailable":"Non disponibile","filters.chargingPower":"Potenza di ricarica [kW]","filters.connectorType":"Tipo di connettore","filters.apply":"Applica filtri","filters.clearAll":"Cancella tutti i filtri","filters.onlyShow":"Mostra solo","filters.statusHeading":"Stato","filters.chargingAccessibility":"Accessibilità del veicolo","filters.accessibilityAll":"Tutti i veicoli","filters.accessibilityTesla":"Solo Tesla","filters.allAccessibility":"Tutti i tipi di accessibilità","evse.statusAvailable":"Disponibile","evse.statusCharging":"In carica","evse.statusUnavailable":"Non disponibile","evse.statusRemoved":"Rimossa","evse.statusPlanned":"Pianificata","evse.statusReserved":"Réservé","evse.statusInoperative":"Inoperativo","evse.statusOutOfOrder":"Fuori servizio","evse.statusError":"Errore","evse.statusUnknown":"Sconosciuto","locationType.onStreet":"In strada","locationType.parkingGarage":"Garage per il parcheggio","locationType.undergroundGarage":"Garage sotterraneo","locationType.parkingLot":"Parcheggio","locationType.other":"Altro","locationType.unknown":"Sconosciuto","tariffPriceComponent.viewTariff":"Visualizza note tariffarie","tariffNote.subHeader":"Note tariffarie","tariffNote.eFluxScheduledTariffNote":"Una tariffa programmata sostituisce i prezzi della tariffa base per un periodo di tempo specifico.","tariffNote.dynamicScheduledTariffNote":"Il prezzo dinamico si regola automaticamente in base al prezzo del mercato dell'energia (intervallo di 1 ora).","tariffNote.scheduledTariffNote":"Una tariffa programmata sostituisce i prezzi della tariffa base per un periodo di tempo specifico.","tariffNote.baseTariffNote":"Le tariffe mostrate qui sono state inviate a E-Flux dal partner di roaming. L'accuratezza può variare a seconda del fornitore.","tariff.congestionPricing":"Potrebbero essere applicate tariffe di congestione","tariff.fullDetailsHeader":"Dettagli tariffa","tariff.lastUpdated":"Ultimo aggiornamento {{date}}","tariff.report":"Segnala","tariff.reportThanks":"Grazie per la segnalazione","tariff.reportError":"Invio non riuscito, riprova","evse.pricing":"Prezzi","dynamicTariffs.subHeader":"Prezzi orari","location.viewAllHourlyPrices":"Visualizza tutti i prezzi orari","location.operatorInfo":"Operatore","location.operator":"Operatore","location.suboperator":"Sub-operatore","location.owner":"Proprietario","location.openingHours":"Orari di apertura","location.open24_7":"Aperto 24/7","location.openNow":"Aperto ora","location.closedNow":"Chiuso","location.closed":"Chiuso","location.opensAt":"apre alle {{time}}","location.closesAt":"fino alle {{time}}","location.chargingWhenClosed":"Ricarica disponibile anche da chiuso","location.exceptionalClosings":"Chiusure eccezionali","location.exceptionalOpenings":"Aperture eccezionali","location.visitWebsite":"Sito web","weekday.mon":"Lun","weekday.tue":"Mar","weekday.wed":"Mer","weekday.thu":"Gio","weekday.fri":"Ven","weekday.sat":"Sab","weekday.sun":"Dom","backButton.backTo":"Torna a"},Ko={"search.placeholder":"Ingrese una ubicación...","cdrPrice.flatFee":"{{total}} / sesión","tariffPriceComponent.dynamicTariffHeader":"Tarifa Dinámica - {{date}}","tariffPriceComponent.flat":"{{total}} / sesión","tariffPriceComponent.time":"{{total}} / hora","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / hora tarifa de inactividad","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. tiempo de espera antes de la tarifa de inactividad","tariffPriceComponent.noTariff":"Tarifa no disponible","tariffPriceComponent.baseTariff":"Tarifa Base","tariffPriceComponent.active":"Activo ahora","tariffPriceComponent.currentPrice":"Precio actual","filters.header":"Filtros","filters.dcChargers":"Cargadores DC","filters.efluxChargers":"Cargadores E-Flux","filters.noAdditionalFee":"Sin tarifa adicional por sesión","filters.available":"Disponible","filters.charging":"Cargando","filters.notAvailable":"No Disponible","filters.chargingPower":"Potencia de Carga [kW]","filters.connectorType":"Tipo de Conector","filters.apply":"Aplicar Filtros","filters.clearAll":"Limpiar Todos los Filtros","filters.onlyShow":"Mostrar Solo","filters.statusHeading":"Estado","filters.chargingAccessibility":"Accesibilidad del vehículo","filters.accessibilityAll":"Todos los vehículos","filters.accessibilityTesla":"Solo Tesla","filters.allAccessibility":"Todos los tipos de accesibilidad","evse.statusRemoved":"Eliminado","evse.statusPlanned":"Planificado","evse.statusReserved":"Reservado","evse.statusInoperative":"Fuera de servicio","evse.statusOutOfOrder":"Averiado","evse.statusAvailable":"Disponible","evse.statusCharging":"Cargando","evse.statusUnavailable":"No Disponible","evse.statusError":"Error","evse.statusUnknown":"Desconocido","locationType.onStreet":"En la calle","locationType.parkingGarage":"Garaje para Estacionar","locationType.undergroundGarage":"Garaje Subterráneo","locationType.parkingLot":"Estacionamiento","locationType.other":"Otro","locationType.unknown":"Desconocido","tariffPriceComponent.viewTariff":"Ver notas de tarifas","tariffNote.subHeader":"Notas de Tarifas","tariffNote.eFluxScheduledTariffNote":"Una tarifa programada anula los precios de la tarifa base para un período de tiempo específico.","tariffNote.dynamicScheduledTariffNote":"El precio dinámico se ajusta automáticamente según el precio del mercado de la energía (intervalo de 1 hora).","tariffNote.scheduledTariffNote":"Una tarifa programada anula los precios de la tarifa base para un período de tiempo específico.","tariffNote.baseTariffNote":"Las tarifas mostradas aquí han sido enviadas a E-Flux por el socio de roaming. La precisión puede variar según el proveedor.","tariff.congestionPricing":"Puede aplicarse tarifa por congestión","tariff.fullDetailsHeader":"Detalles de la tarifa","tariff.lastUpdated":"Última actualización {{date}}","tariff.report":"Reportar","tariff.reportThanks":"Gracias por reportarlo","tariff.reportError":"Error al enviar, inténtalo de nuevo","evse.pricing":"Precios","dynamicTariffs.subHeader":"Precios por Hora","location.viewAllHourlyPrices":"Ver Todos los Precios por Hora","location.operatorInfo":"Operador","location.operator":"Operador","location.suboperator":"Suboperador","location.owner":"Propietario","location.openingHours":"Horario de apertura","location.open24_7":"Abierto 24/7","location.openNow":"Abierto ahora","location.closedNow":"Cerrado","location.closed":"Cerrado","location.opensAt":"abre a las {{time}}","location.closesAt":"hasta las {{time}}","location.chargingWhenClosed":"Carga disponible cuando está cerrado","location.exceptionalClosings":"Cierres excepcionales","location.exceptionalOpenings":"Aperturas excepcionales","location.visitWebsite":"Sitio web","weekday.mon":"Lun","weekday.tue":"Mar","weekday.wed":"Mié","weekday.thu":"Jue","weekday.fri":"Vie","weekday.sat":"Sáb","weekday.sun":"Dom","backButton.backTo":"Volver a"},Go={en:Bo,nl:zo,de:Uo,fr:Yo,it:Wo,es:Ko};async function it(e,t){try{const r=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json",...t.version&&{version:t.version},...t.authorization&&t.version==="v2"&&{Authorization:`Bearer ${t.authorization}`}},...t});switch(r.status){case 200:return r.json();case 400:throw new Error("Bad request");case 404:throw new Error("Not Found");case 500:throw new Error("Server Error");case 503:throw new Error("Timeout!");default:throw new Error(`Unexpected status: ${r.status}`)}}catch(r){if(r instanceof DOMException)return null;throw r}}async function qo(e,t,r,o,{precision:i,bbox:n,...a}){return it(`${e}/1/map/search`,{method:"POST",version:t,authorization:r,body:JSON.stringify({gridPrecision:i,bbox:n,...o?.length>0&&{locationIds:o},...a,...a?.operatorOnly?{operator:[a.operatorOnly]}:{},...a?.chargingAccessibility&&a.chargingAccessibility!=="ALL"&&{chargingAccessibility:a.chargingAccessibility}})})}async function Zo(e,t,r,{origin:o,ids:i}){return it(`${e}/1/map/tariff`,{method:"POST",version:t,authorization:r,body:JSON.stringify({connection_id:o.connectionId,country_code:o.countryCode,party_id:o.partyId,tariff_ids:i})})}async function Jo(e,t,r,{ids:o,status:i}){return it(`${e}/1/map/locations`,{method:"POST",version:t,authorization:r,body:JSON.stringify({ids:o,...t==="v2"?{status:i}:{}})})}async function Xo(e,t,r,{type:o,country_code:i,party_id:n,location_id:a,evse_uid:l}){return it(`${e}/1/map/report-problem`,{method:"POST",version:t,authorization:r,body:JSON.stringify({type:o,country_code:i,party_id:n,location_id:a,evse_uid:l})})}async function Qo(e,t,r){return(await it(`${e}/1/map/config`,{version:t,authorization:r}))?.data}const nn=m.createContext({isReady:!1,setPlace:()=>{},t:e=>`Translate ${e}`,language:"en"}),ei=({children:e,...t})=>{const[r,o]=m.useState(t.options),[i,n]=m.useState({preferredOperators:t.options.preferredOperators,showOperatorOnly:t.options.showOperatorOnly,showNoAdditionalFeeFilter:t.options.showNoAdditionalFeeFilter,showPublishingModeFilter:t.options.showPublishingModeFilter,showVehicleAvailabilityFilter:t.options.showVehicleAvailabilityFilter}),[a,l]=m.useState(),[c,u]=m.useState(),[d,f]=m.useState(t.options.position),[p,E]=m.useState({}),[w,T]=m.useState([t.options.locationId].filter(Boolean)),[v,S]=m.useState([]),[C,_]=m.useState({type:"success"}),[x,g]=m.useState(!1),I=window.location.search.includes("debug=true");I&&console.log("map-context options",t.options);const W=m.useMemo(()=>Fo(t.options.language||"en"),[t.options.language]),j=m.useMemo(()=>(h,b)=>Go[W][h].replace(/\{\{(\w+)\}\}/g,(P,V)=>b[V]),[W]),z=(()=>{if(t.options.apiRoot&&t.options.apiRoot.includes(".dev"))return t.options.apiRoot;switch(t.options.version){case"v2":return"http://localhost:8080";default:return"https://api.road.io"}})();let A=t.options.version,L=t.options.authorization;const Z=window.location.search.split("map_key=")[1];Z&&(L=Z,A="v2");const D=qo.bind(null,z,A,L,t.options.limitToLocationIds||[]),O=Jo.bind(null,z,A,L),ee=Zo.bind(null,z,A,L),Q=Xo.bind(null,z,A,L);async function fe({ids:h,status:b}){_({type:"loading"});try{const{data:P}=await O({ids:h,...A==="v2"?{status:b}:{}});return S(P.filter(V=>V?.evses?.length)),_({type:"success"}),P}catch(P){_({type:"error",error:P})}}m.useEffect(()=>{t.options.locationId&&fe({ids:[t.options.locationId],status:p.status}).then(h=>{if(h?.length){const b=h[0];b.geoLocation?.coordinates&&f({lng:b.geoLocation?.coordinates[0],lat:b.geoLocation?.coordinates[1]})}})},[t.options.locationId]),m.useEffect(()=>{Qo(z,A,L).then(h=>{I&&console.log("retrieved remote config",h),n({...h,...i}),o({googleApiKey:h.googleMapsApiKey,...r,...h}),!r.locationId&&!r?.position?.lat&&h.ipLatitude?(I&&console.debug("setting position from ip latitude and longitude"),f({lat:h.ipLatitude,lng:h.ipLongitude})):r.locationId||(I&&console.debug("setting position from options position"),f(r?.position?.lat?r.position:{lat:52.3676,lng:4.9041}))}).catch(h=>l(h))},[]),m.useEffect(()=>{w?.length&&fe({ids:w,status:p.status})},[w]),m.useEffect(()=>{const{theming:h,shadowRoot:b}=t.options;if(b){const P=b.querySelectorAll("#road-map-styles")[0]||document.createElement("style");P.setAttribute("type","text/css"),P.setAttribute("id","road-map-styles"),P.innerHTML=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),m=require("react"),Lo=require("react-dom/client"),Je=require("react-dom"),Ho="app-module_container",Vo="app-module_loader",In={container:Ho,loader:Vo};function $o(e){const[t,r]=m.useState(!1),o=m.useMemo(()=>new IntersectionObserver(([i])=>{i.isIntersecting&&(r(!0),o.disconnect())}),[e]);return m.useEffect(()=>{if(e.current)return o.observe(e.current),()=>o.disconnect()},[e.current]),t}function Fo(e){const t=e;return["nl","nl-be","nl-nl"].includes(t)?"nl":["en","en-us","en-eg","en-au","en-gb","en-ca","en-nz","en-ie","en-za","en-jm","en-bz","en-tt"].includes(t)?"en":["de","de-ch","de-at","de-lu","de-li","de-de"].includes(t)?"de":["fr","fr-be","fr-ca","fr-fr","fr-lu","fr-ch"].includes(t)?"fr":["it","it-ch","it-it"].includes(t)?"it":["es","es-ar","es-bo","es-cl","es-co","es-cr","es-do","es-ec","es-sv","es-gt","es-hn","es-mx","es-ni","es-pa","es-py","es-pe","es-pr","es-es","es-uy","es-ve"].includes(t)?"es":"en"}const Bo={"search.placeholder":"Enter a location...","cdrPrice.flatFee":"{{total}} / session","tariffPriceComponent.dynamicTariffHeader":"Dynamic Tariff - {{date}}","tariffPriceComponent.flat":"{{total}} / session","tariffPriceComponent.time":"{{total}} / hour","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / hour idle fee","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. wait time before idle fee","tariffPriceComponent.noTariff":"No tariff available","tariffPriceComponent.baseTariff":"Base Tariff","tariffPriceComponent.active":"Active now","tariffPriceComponent.currentPrice":"Current price","filters.header":"Filters","filters.dcChargers":"Fast Chargers","filters.efluxChargers":"E-Flux Chargers","filters.noAdditionalFee":"Without additional fee per session","filters.available":"Available","filters.charging":"Charging","filters.notAvailable":"Not Available","filters.chargingPower":"Charging Power [kW]","filters.connectorType":"Connector Type","filters.apply":"Apply Filters","filters.clearAll":"Clear All Filters","filters.onlyShow":"Only Show","filters.statusHeading":"Status","filters.chargingAccessibility":"Vehicle Accessibility","filters.accessibilityAll":"All vehicles","filters.accessibilityTesla":"Tesla only","filters.allAccessibility":"All accessibility types","evse.statusAvailable":"Available","evse.statusCharging":"Charging","evse.statusUnavailable":"Unavailable","evse.statusRemoved":"Removed","evse.statusPlanned":"Planned","evse.statusReserved":"Reserved","evse.statusInoperative":"Inoperative","evse.statusOutOfOrder":"Out of Order","evse.statusError":"Error","evse.statusUnknown":"Unknown","locationType.onStreet":"On Street","locationType.parkingGarage":"Parking Garage","locationType.undergroundGarage":"Underground Garage","locationType.parkingLot":"Parking Lot","locationType.other":"Other","locationType.unknown":"Unknown","tariffPriceComponent.viewTariff":"View Tariff notes","tariffNote.subHeader":"Tariff notes","tariffNote.eFluxScheduledTariffNote":"A scheduled tariff overrides base tariff prices for specific time period.","tariffNote.dynamicScheduledTariffNote":"Dynamic price is adjusted automatically based on energy market price (1 hour interval).","tariffNote.scheduledTariffNote":"A scheduled tariff overrides base tariff prices for specific time period.","tariffNote.baseTariffNote":"Tariffs shown here have been sent to E-Flux by roaming partner. Accuracy may vary depending on provider.","tariff.congestionPricing":"Congestion pricing may apply","tariff.fullDetailsHeader":"Tariff details","tariff.lastUpdated":"Last updated {{date}}","tariff.report":"Report","tariff.reportThanks":"Thanks for reporting","tariff.reportError":"Couldn't send, try again","evse.pricing":"Pricing","dynamicTariffs.subHeader":"Hourly Prices","location.viewAllHourlyPrices":"View All Hourly Prices","location.operatorInfo":"Operator","location.operator":"Operator","location.suboperator":"Suboperator","location.owner":"Owner","location.openingHours":"Opening hours","location.open24_7":"Open 24/7","location.openNow":"Open now","location.closedNow":"Closed","location.closed":"Closed","location.opensAt":"opens {{time}}","location.closesAt":"until {{time}}","location.chargingWhenClosed":"Charging available when closed","location.exceptionalClosings":"Exceptional closings","location.exceptionalOpenings":"Exceptional openings","location.visitWebsite":"Website","weekday.mon":"Mon","weekday.tue":"Tue","weekday.wed":"Wed","weekday.thu":"Thu","weekday.fri":"Fri","weekday.sat":"Sat","weekday.sun":"Sun","backButton.backTo":"Back To"},zo={"search.placeholder":"Voer een locatie in...","cdrPrice.flatFee":"{{total}} / sessie","tariffPriceComponent.dynamicTariffHeader":"Dynamisch Tarief - {{date}}","tariffPriceComponent.flat":"{{total}} / sessie","tariffPriceComponent.time":"{{total}} / uur","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / uur blokkeertarief","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. wachttijd voor blokkeertarief","tariffPriceComponent.noTariff":"Geen beschikbaar tarief","tariffPriceComponent.baseTariff":"Basistarief","tariffPriceComponent.active":"Nu actief","tariffPriceComponent.currentPrice":"Huidige prijs","filters.header":"Filters","filters.dcChargers":"DC-laders","filters.efluxChargers":"E-Flux-laders","filters.noAdditionalFee":"Zonder extra kosten per sessie","filters.available":"Beschikbaar","filters.charging":"Laden","filters.notAvailable":"Niet beschikbaar","filters.chargingPower":"Laadvermogen [kW]","filters.connectorType":"Aansluitingstype","filters.apply":"Filters toepassen","filters.clearAll":"Alle filters wissen","filters.onlyShow":"Alleen tonen","filters.statusHeading":"Status","filters.chargingAccessibility":"Voertuigtoegang","filters.accessibilityAll":"Alle voertuigen","filters.accessibilityTesla":"Alleen Tesla","filters.allAccessibility":"Alle toegankelijkheidstypes","evse.statusAvailable":"Beschikbaar","evse.statusCharging":"Laden","evse.statusUnavailable":"Niet beschikbaar","evse.statusError":"Fout","evse.statusRemoved":"Verwijderd","evse.statusPlanned":"Gepland","evse.statusReserved":"Gereserveerd","evse.statusInoperative":"Inoperative","evse.statusOutOfOrder":"Uit van orde","evse.statusUnknown":"Onbekend","locationType.onStreet":"Op straat","locationType.parkingGarage":"Parkeergarage","locationType.undergroundGarage":"Ondergrondse garage","locationType.parkingLot":"Parkeerterrein","locationType.other":"Anders","locationType.unknown":"Onbekend","tariffPriceComponent.viewTariff":"Tariefnotitie bekijken","tariffNote.subHeader":"Tariefnotities","tariffNote.eFluxScheduledTariffNote":"Een gepland tarief overschrijft de basis tariefprijzen voor een specifieke periode.","tariffNote.dynamicScheduledTariffNote":"De dynamische prijs wordt automatisch aangepast op basis van de energiemarktprijs (interval van 1 uur).","tariffNote.scheduledTariffNote":"Een gepland tarief overschrijft de basis tariefprijzen voor een specifieke periode.","tariffNote.baseTariffNote":"De hier getoonde tarieven zijn door de roamingpartner aan E-Flux verstrekt. De nauwkeurigheid kan variëren afhankelijk van de aanbieder.","tariff.congestionPricing":"Congestietarief kan van toepassing zijn","tariff.fullDetailsHeader":"Tariefdetails","tariff.lastUpdated":"Laatst bijgewerkt {{date}}","tariff.report":"Rapporteren","tariff.reportThanks":"Bedankt voor de melding","tariff.reportError":"Versturen mislukt, probeer opnieuw","evse.pricing":"Tarieven","dynamicTariffs.subHeader":"Uurtarieven","location.viewAllHourlyPrices":"Bekijk Alle Uurprijzen","location.operatorInfo":"Exploitant","location.operator":"Exploitant","location.suboperator":"Subexploitant","location.owner":"Eigenaar","location.openingHours":"Openingstijden","location.open24_7":"24/7 geopend","location.openNow":"Nu open","location.closedNow":"Gesloten","location.closed":"Gesloten","location.opensAt":"opent om {{time}}","location.closesAt":"tot {{time}}","location.chargingWhenClosed":"Laden mogelijk wanneer gesloten","location.exceptionalClosings":"Uitzonderlijke sluitingen","location.exceptionalOpenings":"Uitzonderlijke openingen","location.visitWebsite":"Website","weekday.mon":"Ma","weekday.tue":"Di","weekday.wed":"Wo","weekday.thu":"Do","weekday.fri":"Vr","weekday.sat":"Za","weekday.sun":"Zo","backButton.backTo":"Terug Naar"},Uo={"search.placeholder":"Geben Sie einen Ort ein...","cdrPrice.flatFee":"{{total}} / Sitzung","tariffPriceComponent.dynamicTariffHeader":"Dynamischer Tarif - {{date}}","tariffPriceComponent.flat":"{{total}} / Sitzung","tariffPriceComponent.time":"{{total}} / Stunde","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / Stunde Blockiergebühr","tariffPriceComponent.parkingTimeWait":"{{minutes}} Min. Wartezeit vor der Blockiergebühr","tariffPriceComponent.noTariff":"Kein Tarif verfügbar","tariffPriceComponent.baseTariff":"Grundtarif","tariffPriceComponent.active":"Aktuell aktiv","tariffPriceComponent.currentPrice":"Aktueller Preis","filters.header":"Filter","filters.dcChargers":"Gleichstrom-Ladegeräte","filters.efluxChargers":"E-Flux-Ladegeräte","filters.noAdditionalFee":"Ohne zusätzliche Gebühr pro Sitzung","filters.available":"Verfügbar","filters.charging":"Lädt","filters.notAvailable":"Nicht verfügbar","filters.chargingPower":"Ladeleistung [kW]","filters.connectorType":"Steckertyp","filters.apply":"Filter anwenden","filters.clearAll":"Alle Filter löschen","filters.onlyShow":"Nur anzeigen","filters.statusHeading":"Status","filters.chargingAccessibility":"Fahrzeugzugänglichkeit","filters.accessibilityAll":"Alle Fahrzeuge","filters.accessibilityTesla":"Nur Tesla","filters.allAccessibility":"Alle Zugänglichkeitstypen","evse.statusAvailable":"Verfügbar","evse.statusCharging":"Lädt","evse.statusUnavailable":"Nicht verfügbar","evse.statusRemoved":"Entfernt","evse.statusPlanned":"Geplant","evse.statusReserved":"Reserviert","evse.statusInoperative":"Inoperative","evse.statusOutOfOrder":"Ausgeschaltet","evse.statusError":"Fehler","evse.statusUnknown":"Unbekannt","evse.pricing":"Preisbildung","locationType.onStreet":"Straße","locationType.parkingGarage":"Parkhaus","locationType.undergroundGarage":"Tiefgarage","locationType.parkingLot":"Parkplatz","locationType.other":"Andere","locationType.unknown":"Unbekannt","tariffPriceComponent.viewTariff":"Tarif anzeigen","tariffNote.subHeader":"Tarifhinweise","tariffNote.eFluxScheduledTariffNote":"Ein geplanter Tarif überschreibt die Basistarifpreise für einen bestimmten Zeitraum.","tariffNote.dynamicScheduledTariffNote":"Der dynamische Preis wird automatisch basierend auf dem Energiepreis auf dem Markt angepasst (im Intervall von 1 Stunde).","tariffNote.scheduledTariffNote":"Ein geplanter Tarif überschreibt die Basistarifpreise für einen bestimmten Zeitraum.","tariffNote.baseTariffNote":"Die hier angezeigten Tarife wurden von einem Roaming-Partner an E-Flux gesendet. Die Genauigkeit kann je nach Anbieter variieren.","tariff.congestionPricing":"Überlastungstarif kann anfallen","tariff.fullDetailsHeader":"Tarifdetails","tariff.lastUpdated":"Zuletzt aktualisiert {{date}}","tariff.report":"Melden","tariff.reportThanks":"Danke für die Meldung","tariff.reportError":"Senden fehlgeschlagen, erneut versuchen","dynamicTariffs.subHeader":"Stundentarife","location.viewAllHourlyPrices":"Alle Stundenpreise anzeigen","location.operatorInfo":"Betreiber","location.operator":"Betreiber","location.suboperator":"Unterbetreiber","location.owner":"Eigentümer","location.openingHours":"Öffnungszeiten","location.open24_7":"24/7 geöffnet","location.openNow":"Jetzt geöffnet","location.closedNow":"Geschlossen","location.closed":"Geschlossen","location.opensAt":"öffnet um {{time}}","location.closesAt":"bis {{time}}","location.chargingWhenClosed":"Laden auch außerhalb der Öffnungszeiten möglich","location.exceptionalClosings":"Ausnahmsweise geschlossen","location.exceptionalOpenings":"Ausnahmsweise geöffnet","location.visitWebsite":"Website","weekday.mon":"Mo","weekday.tue":"Di","weekday.wed":"Mi","weekday.thu":"Do","weekday.fri":"Fr","weekday.sat":"Sa","weekday.sun":"So","backButton.backTo":"Zurück zu"},Yo={"search.placeholder":"Entrez un lieu...","cdrPrice.flatFee":"{{total}} / session","tariffPriceComponent.dynamicTariffHeader":"Tarif Dynamique - {{date}}","tariffPriceComponent.flat":"{{total}} / session","tariffPriceComponent.time":"{{total}} / heure","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / frais d'occupation par heure","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. avant frais d'occupation","tariffPriceComponent.noTariff":"Aucun tarif disponible","tariffPriceComponent.baseTariff":"Tarif de base","tariffPriceComponent.active":"Actuellement actif","tariffPriceComponent.currentPrice":"Prix actuel","filters.header":"Filtres","filters.dcChargers":"Chargeurs à courant continu","filters.efluxChargers":"Chargeurs E-Flux","filters.noAdditionalFee":"Sans frais supplémentaires par séance","filters.available":"Disponible","filters.charging":"En charge","filters.notAvailable":"Indisponible","filters.chargingPower":"Puissance de charge [kW]","filters.connectorType":"Type de connecteur","filters.apply":"Appliquer les filtres","filters.clearAll":"Effacer tous les filtres","filters.onlyShow":"Afficher uniquement","filters.statusHeading":"Statut","filters.chargingAccessibility":"Accessibilité véhicule","filters.accessibilityAll":"Tous véhicules","filters.accessibilityTesla":"Tesla seulement","filters.allAccessibility":"Tous types d'accessibilité","evse.statusAvailable":"Disponible","evse.statusCharging":"En charge","evse.statusUnavailable":"Indisponible","evse.statusRemoved":"Supprimé","evse.statusPlanned":"Planifié","evse.statusReserved":"Réservé","evse.statusInoperative":"Hors service","evse.statusOutOfOrder":"En panne","evse.statusError":"Erreur","evse.statusUnknown":"Inconnu","evse.pricing":"Tarification","locationType.onStreet":"Dans la rue","locationType.parkingGarage":"Parking couvert","locationType.undergroundGarage":"Parking souterrain","locationType.parkingLot":"Parking","locationType.other":"Autre","locationType.unknown":"Inconnu","tariffPriceComponent.viewTariff":"Voir le tarif","tariffNote.subHeader":"Notes tarifaires","tariffNote.eFluxScheduledTariffNote":"Un tarif programmé remplace les prix de base du tarif pour une période spécifique.","tariffNote.dynamicScheduledTariffNote":"Le prix dynamique est ajusté automatiquement en fonction du prix du marché de l'énergie (intervalle d'une heure).","tariffNote.scheduledTariffNote":"Un tarif programmé remplace les prix de base du tarif pour une période spécifique.","tariffNote.baseTariffNote":"Les tarifs affichés ici ont été transmis à E-Flux par le partenaire d'itinérance. La précision peut varier en fonction du fournisseur.","tariff.congestionPricing":"Tarification de congestion peut s'appliquer","tariff.fullDetailsHeader":"Détails du tarif","tariff.lastUpdated":"Mis à jour {{date}}","tariff.report":"Signaler","tariff.reportThanks":"Merci pour le signalement","tariff.reportError":"Échec de l'envoi, réessayez","dynamicTariffs.subHeader":"Tarifs horaires","location.viewAllHourlyPrices":"Voir tous les tarifs horaires","location.operatorInfo":"Opérateur","location.operator":"Opérateur","location.suboperator":"Sous-opérateur","location.owner":"Propriétaire","location.openingHours":"Heures d'ouverture","location.open24_7":"Ouvert 24h/24, 7j/7","location.openNow":"Ouvert","location.closedNow":"Fermé","location.closed":"Fermé","location.opensAt":"ouvre à {{time}}","location.closesAt":"jusqu'à {{time}}","location.chargingWhenClosed":"Recharge possible hors des heures d'ouverture","location.exceptionalClosings":"Fermetures exceptionnelles","location.exceptionalOpenings":"Ouvertures exceptionnelles","location.visitWebsite":"Site web","weekday.mon":"Lun","weekday.tue":"Mar","weekday.wed":"Mer","weekday.thu":"Jeu","weekday.fri":"Ven","weekday.sat":"Sam","weekday.sun":"Dim","backButton.backTo":"Retour à"},Wo={"search.placeholder":"Inserisci una posizione...","cdrPrice.flatFee":"{{total}} / sessione","tariffPriceComponent.dynamicTariffHeader":"Tariffa dinamica - {{date}}","tariffPriceComponent.flat":"{{total}} / sessione","tariffPriceComponent.time":"{{total}} / ora","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / ora tariffa di inattività","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. tempo di attesa prima della tariffa di inattività","tariffPriceComponent.noTariff":"Nessuna tariffa disponibile","tariffPriceComponent.baseTariff":"Tariffa base","tariffPriceComponent.active":"Attivo ora","tariffPriceComponent.currentPrice":"Prezzo attuale","filters.header":"Filtri","filters.dcChargers":"Caricabatterie DC","filters.efluxChargers":"Caricabatterie E-Flux","filters.noAdditionalFee":"Senza costi aggiuntivi per sessione","filters.available":"Disponibile","filters.charging":"In carica","filters.notAvailable":"Non disponibile","filters.chargingPower":"Potenza di ricarica [kW]","filters.connectorType":"Tipo di connettore","filters.apply":"Applica filtri","filters.clearAll":"Cancella tutti i filtri","filters.onlyShow":"Mostra solo","filters.statusHeading":"Stato","filters.chargingAccessibility":"Accessibilità del veicolo","filters.accessibilityAll":"Tutti i veicoli","filters.accessibilityTesla":"Solo Tesla","filters.allAccessibility":"Tutti i tipi di accessibilità","evse.statusAvailable":"Disponibile","evse.statusCharging":"In carica","evse.statusUnavailable":"Non disponibile","evse.statusRemoved":"Rimossa","evse.statusPlanned":"Pianificata","evse.statusReserved":"Réservé","evse.statusInoperative":"Inoperativo","evse.statusOutOfOrder":"Fuori servizio","evse.statusError":"Errore","evse.statusUnknown":"Sconosciuto","locationType.onStreet":"In strada","locationType.parkingGarage":"Garage per il parcheggio","locationType.undergroundGarage":"Garage sotterraneo","locationType.parkingLot":"Parcheggio","locationType.other":"Altro","locationType.unknown":"Sconosciuto","tariffPriceComponent.viewTariff":"Visualizza note tariffarie","tariffNote.subHeader":"Note tariffarie","tariffNote.eFluxScheduledTariffNote":"Una tariffa programmata sostituisce i prezzi della tariffa base per un periodo di tempo specifico.","tariffNote.dynamicScheduledTariffNote":"Il prezzo dinamico si regola automaticamente in base al prezzo del mercato dell'energia (intervallo di 1 ora).","tariffNote.scheduledTariffNote":"Una tariffa programmata sostituisce i prezzi della tariffa base per un periodo di tempo specifico.","tariffNote.baseTariffNote":"Le tariffe mostrate qui sono state inviate a E-Flux dal partner di roaming. L'accuratezza può variare a seconda del fornitore.","tariff.congestionPricing":"Potrebbero essere applicate tariffe di congestione","tariff.fullDetailsHeader":"Dettagli tariffa","tariff.lastUpdated":"Ultimo aggiornamento {{date}}","tariff.report":"Segnala","tariff.reportThanks":"Grazie per la segnalazione","tariff.reportError":"Invio non riuscito, riprova","evse.pricing":"Prezzi","dynamicTariffs.subHeader":"Prezzi orari","location.viewAllHourlyPrices":"Visualizza tutti i prezzi orari","location.operatorInfo":"Operatore","location.operator":"Operatore","location.suboperator":"Sub-operatore","location.owner":"Proprietario","location.openingHours":"Orari di apertura","location.open24_7":"Aperto 24/7","location.openNow":"Aperto ora","location.closedNow":"Chiuso","location.closed":"Chiuso","location.opensAt":"apre alle {{time}}","location.closesAt":"fino alle {{time}}","location.chargingWhenClosed":"Ricarica disponibile anche da chiuso","location.exceptionalClosings":"Chiusure eccezionali","location.exceptionalOpenings":"Aperture eccezionali","location.visitWebsite":"Sito web","weekday.mon":"Lun","weekday.tue":"Mar","weekday.wed":"Mer","weekday.thu":"Gio","weekday.fri":"Ven","weekday.sat":"Sab","weekday.sun":"Dom","backButton.backTo":"Torna a"},Ko={"search.placeholder":"Ingrese una ubicación...","cdrPrice.flatFee":"{{total}} / sesión","tariffPriceComponent.dynamicTariffHeader":"Tarifa Dinámica - {{date}}","tariffPriceComponent.flat":"{{total}} / sesión","tariffPriceComponent.time":"{{total}} / hora","tariffPriceComponent.energy":"{{total}} / kWh","tariffPriceComponent.parkingTime":"{{total}} / hora tarifa de inactividad","tariffPriceComponent.parkingTimeWait":"{{minutes}} min. tiempo de espera antes de la tarifa de inactividad","tariffPriceComponent.noTariff":"Tarifa no disponible","tariffPriceComponent.baseTariff":"Tarifa Base","tariffPriceComponent.active":"Activo ahora","tariffPriceComponent.currentPrice":"Precio actual","filters.header":"Filtros","filters.dcChargers":"Cargadores DC","filters.efluxChargers":"Cargadores E-Flux","filters.noAdditionalFee":"Sin tarifa adicional por sesión","filters.available":"Disponible","filters.charging":"Cargando","filters.notAvailable":"No Disponible","filters.chargingPower":"Potencia de Carga [kW]","filters.connectorType":"Tipo de Conector","filters.apply":"Aplicar Filtros","filters.clearAll":"Limpiar Todos los Filtros","filters.onlyShow":"Mostrar Solo","filters.statusHeading":"Estado","filters.chargingAccessibility":"Accesibilidad del vehículo","filters.accessibilityAll":"Todos los vehículos","filters.accessibilityTesla":"Solo Tesla","filters.allAccessibility":"Todos los tipos de accesibilidad","evse.statusRemoved":"Eliminado","evse.statusPlanned":"Planificado","evse.statusReserved":"Reservado","evse.statusInoperative":"Fuera de servicio","evse.statusOutOfOrder":"Averiado","evse.statusAvailable":"Disponible","evse.statusCharging":"Cargando","evse.statusUnavailable":"No Disponible","evse.statusError":"Error","evse.statusUnknown":"Desconocido","locationType.onStreet":"En la calle","locationType.parkingGarage":"Garaje para Estacionar","locationType.undergroundGarage":"Garaje Subterráneo","locationType.parkingLot":"Estacionamiento","locationType.other":"Otro","locationType.unknown":"Desconocido","tariffPriceComponent.viewTariff":"Ver notas de tarifas","tariffNote.subHeader":"Notas de Tarifas","tariffNote.eFluxScheduledTariffNote":"Una tarifa programada anula los precios de la tarifa base para un período de tiempo específico.","tariffNote.dynamicScheduledTariffNote":"El precio dinámico se ajusta automáticamente según el precio del mercado de la energía (intervalo de 1 hora).","tariffNote.scheduledTariffNote":"Una tarifa programada anula los precios de la tarifa base para un período de tiempo específico.","tariffNote.baseTariffNote":"Las tarifas mostradas aquí han sido enviadas a E-Flux por el socio de roaming. La precisión puede variar según el proveedor.","tariff.congestionPricing":"Puede aplicarse tarifa por congestión","tariff.fullDetailsHeader":"Detalles de la tarifa","tariff.lastUpdated":"Última actualización {{date}}","tariff.report":"Reportar","tariff.reportThanks":"Gracias por reportarlo","tariff.reportError":"Error al enviar, inténtalo de nuevo","evse.pricing":"Precios","dynamicTariffs.subHeader":"Precios por Hora","location.viewAllHourlyPrices":"Ver Todos los Precios por Hora","location.operatorInfo":"Operador","location.operator":"Operador","location.suboperator":"Suboperador","location.owner":"Propietario","location.openingHours":"Horario de apertura","location.open24_7":"Abierto 24/7","location.openNow":"Abierto ahora","location.closedNow":"Cerrado","location.closed":"Cerrado","location.opensAt":"abre a las {{time}}","location.closesAt":"hasta las {{time}}","location.chargingWhenClosed":"Carga disponible cuando está cerrado","location.exceptionalClosings":"Cierres excepcionales","location.exceptionalOpenings":"Aperturas excepcionales","location.visitWebsite":"Sitio web","weekday.mon":"Lun","weekday.tue":"Mar","weekday.wed":"Mié","weekday.thu":"Jue","weekday.fri":"Vie","weekday.sat":"Sáb","weekday.sun":"Dom","backButton.backTo":"Volver a"},Go={en:Bo,nl:zo,de:Uo,fr:Yo,it:Wo,es:Ko};async function it(e,t){try{const r=await fetch(e,{method:"GET",headers:{"Content-Type":"application/json",...t.version&&{version:t.version},...t.authorization&&t.version==="v2"&&{Authorization:`Bearer ${t.authorization}`}},...t});switch(r.status){case 200:return r.json();case 400:throw new Error("Bad request");case 404:throw new Error("Not Found");case 500:throw new Error("Server Error");case 503:throw new Error("Timeout!");default:throw new Error(`Unexpected status: ${r.status}`)}}catch(r){if(r instanceof DOMException)return null;throw r}}async function qo(e,t,r,o,{precision:i,bbox:n,...a}){return it(`${e}/1/map/search`,{method:"POST",version:t,authorization:r,body:JSON.stringify({gridPrecision:i,bbox:n,...o?.length>0&&{locationIds:o},...a,...a?.operatorOnly?{operator:[a.operatorOnly]}:{},...a?.chargingAccessibility&&a.chargingAccessibility!=="ALL"&&{chargingAccessibility:a.chargingAccessibility}})})}async function Zo(e,t,r,{origin:o,ids:i}){return it(`${e}/1/map/tariff`,{method:"POST",version:t,authorization:r,body:JSON.stringify({connection_id:o.connectionId,country_code:o.countryCode,party_id:o.partyId,tariff_ids:i})})}async function Jo(e,t,r,{ids:o,status:i}){return it(`${e}/1/map/locations`,{method:"POST",version:t,authorization:r,body:JSON.stringify({ids:o,...t==="v2"?{status:i}:{}})})}async function Xo(e,t,r,{type:o,country_code:i,party_id:n,location_id:a,evse_uid:l}){return it(`${e}/1/map/report-problem`,{method:"POST",version:t,authorization:r,body:JSON.stringify({type:o,country_code:i,party_id:n,location_id:a,evse_uid:l})})}async function Qo(e,t,r){return(await it(`${e}/1/map/config`,{version:t,authorization:r}))?.data}const nn=m.createContext({isReady:!1,setPlace:()=>{},t:e=>`Translate ${e}`,language:"en"}),ei=({children:e,...t})=>{const[r,o]=m.useState(t.options),[i,n]=m.useState({preferredOperators:t.options.preferredOperators,showOperatorOnly:t.options.showOperatorOnly,showNoAdditionalFeeFilter:t.options.showNoAdditionalFeeFilter,showPublishingModeFilter:t.options.showPublishingModeFilter,showVehicleAvailabilityFilter:t.options.showVehicleAvailabilityFilter}),[a,l]=m.useState(),[c,u]=m.useState(),[d,f]=m.useState(t.options.position),[p,E]=m.useState({}),[w,T]=m.useState([t.options.locationId].filter(Boolean)),[v,S]=m.useState([]),[C,_]=m.useState({type:"success"}),[x,g]=m.useState(!1),I=window.location.search.includes("debug=true");I&&console.log("map-context options",t.options);const W=m.useMemo(()=>Fo(t.options.language||"en"),[t.options.language]),j=m.useMemo(()=>(h,b)=>Go[W][h].replace(/\{\{(\w+)\}\}/g,(P,V)=>b[V]),[W]),z=(()=>{if(t.options.apiRoot&&t.options.apiRoot.includes(".dev"))return t.options.apiRoot;switch(t.options.version){case"v2":return"https://roaming.road.io/v2/map-search";default:return"https://api.road.io"}})();let A=t.options.version,L=t.options.authorization;const Z=window.location.search.split("map_key=")[1];Z&&(L=Z,A="v2");const D=qo.bind(null,z,A,L,t.options.limitToLocationIds||[]),O=Jo.bind(null,z,A,L),ee=Zo.bind(null,z,A,L),Q=Xo.bind(null,z,A,L);async function fe({ids:h,status:b}){_({type:"loading"});try{const{data:P}=await O({ids:h,...A==="v2"?{status:b}:{}});return S(P.filter(V=>V?.evses?.length)),_({type:"success"}),P}catch(P){_({type:"error",error:P})}}m.useEffect(()=>{t.options.locationId&&fe({ids:[t.options.locationId],status:p.status}).then(h=>{if(h?.length){const b=h[0];b.geoLocation?.coordinates&&f({lng:b.geoLocation?.coordinates[0],lat:b.geoLocation?.coordinates[1]})}})},[t.options.locationId]),m.useEffect(()=>{Qo(z,A,L).then(h=>{I&&console.log("retrieved remote config",h),n({...h,...i}),o({googleApiKey:h.googleMapsApiKey,...r,...h}),!r.locationId&&!r?.position?.lat&&h.ipLatitude?(I&&console.debug("setting position from ip latitude and longitude"),f({lat:h.ipLatitude,lng:h.ipLongitude})):r.locationId||(I&&console.debug("setting position from options position"),f(r?.position?.lat?r.position:{lat:52.3676,lng:4.9041}))}).catch(h=>l(h))},[]),m.useEffect(()=>{w?.length&&fe({ids:w,status:p.status})},[w]),m.useEffect(()=>{const{theming:h,shadowRoot:b}=t.options;if(b){const P=b.querySelectorAll("#road-map-styles")[0]||document.createElement("style");P.setAttribute("type","text/css"),P.setAttribute("id","road-map-styles"),P.innerHTML=`
2
2
  :host {
3
3
  --roadmap-brand-color: ${h?.brandColor||"#6102d3"};
4
4
  --roadmap-background-color: ${h?.backgroundColor||"#ffffff"};